PageSourceSearch

https://motionapp.com/components-bundle-b0229c841e33.js

js motionapp.com collected 2026-09-24 18:46:50 UTC 1,528,387 bytes, 2 lines download raw bytes

1/*! For license information please see components.js.LICENSE.txt */
2!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MotionComponents=t():e.MotionComponents=t()}(this,()=>(()=>{var e,t,n,r,a={32:e=>{e.exports={}},506:e=>{e.exports={}},522:e=>{e.exports={}},568:e=>{e.exports={}},573:e=>{e.exports={}},672:e=>{e.exports={}},708:e=>{e.exports={}},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},1098:e=>{e.exports={}},1133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,a.default)(e),s="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:a}=e;s?t(r,a,e):a&&(n=n||{},n[r]=a)}),n};const a=r(n(5077))},1247:(e,t,n)=>{"use strict";var r=n(9982),a=n(6540),s=n(961);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function u(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function d(e){if(l(e)!==e)throw Error(i(188))}function h(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=h(e)))return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope");var S=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var C=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var T=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}var L=Symbol.for("react.client.reference");function I(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===L?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case k:return"Suspense";case N:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case v:return"Portal";case w:return e.displayName||"Context";case x:return(e._context.displayName||"Context")+".Consumer";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:I(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return I(e(t))}catch(e){}}return null}var M=Array.isArray,P=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},D=[],F=-1;function U(e){return{current:e}}function $(e){0>F||(e.current=D[F],D[F]=null,F--)}function B(e,t){F++,D[F]=e.current,e.current=t}var H,z,q=U(null),G=U(null),W=U(null),Y=U(null);function V(e,t){switch(B(W,t),B(G,e),B(q,null),t.nodeType){case 9:case 11:e=(e
vendor: 11,308 bytes, line 2
2=t.documentElement)&&(e=e.namespaceURI)?gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=bd(t=gd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(q),B(q,e)}function K(){$(q),$(G),$(W)}function Q(e){null!==e.memoizedState&&B(Y,e);var t=q.current,n=bd(t,e.type);t!==n&&(B(G,e),B(q,n))}function X(e){G.current===e&&($(q),$(G)),Y.current===e&&($(Y),uh._currentValue=R)}function J(e){if(void 0===H)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);H=t&&t[1]||"",z=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+H+e+z}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=r.DetermineComponentFrameRoot(),i=s[0],o=s[1];if(i&&o){var l=i.split("\n"),c=o.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==c[a]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?J(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return J(e.type);case 16:return J("Lazy");case 13:return e.child!==t&&null!==t?J("Suspense Fallback"):J("Suspense");case 19:return J("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return J("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var re=Object.prototype.hasOwnProperty,ae=r.unstable_scheduleCallback,se=r.unstable_cancelCallback,ie=r.unstable_shouldYield,oe=r.unstable_requestPaint,le=r.unstable_now,ce=r.unstable_getCurrentPriorityLevel,ue=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,he=r.unstable_NormalPriority,pe=r.unstable_LowPriority,me=r.unstable_IdlePriority,fe=r.log,ve=r.unstable_setDisableYieldValue,ge=null,be=null;function ye(e){if("function"==typeof fe&&ve(e),be&&"function"==typeof be.setStrictMode)try{be.setStrictMode(ge,e)}catch(e){}}var xe=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(we(e)/_e|0)|0},we=Math.log,_e=Math.LN2,ke=256,Ne=262144,Ee=4194304;function je(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Se(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,s=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var o=134217727&r;return 0!==o?0!==(r=o&~s)?a=je(r):0!==(i&=o)?a=je(i):n||0!==(n=o&~e)&&(a=je(n)):0!==(o=r&~s)?a=je(o):0!==i?a=je(i):n||0!==(n=r&~e)&&(a=je(n)),0===a?0:0!==t&&t!==a&&0===(t&s)&&((s=a&-a)>=(n=t&-t)||32===s&&4194048&n)?t:a}function Ce(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Te(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ae(){var e=Ee;return!(62914560&(Ee<<=1))&&(Ee=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ie(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Me(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-xe(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Pe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xe(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function Oe(e,t){var n=t&-t;return 0!==((n=42&n?1:Re(n))&(e.suspendedLanes|t))?0:n}function Re(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function De(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Fe(){var e=O.p;return 0!==e?e:void 0===(e=window.event)?32:jh(e.type)}function Ue(e,t){var n=O.p;try{return O.p=e,t()}finally{O.p=n}}var $e=Math.random().toString(36).slice(2),Be="__reactFiber$"+$e,He="__reactProps$"+$e,ze="__reactContainer$"+$e,qe="__reactEvents$"+$e,Ge="__reactListeners$"+$e,We="__reactHandles$"+$e,Ye="__reactResources$"+$e,Ve="__reactMarker$"+$e;function Ke(e){delete e[Be],delete e[He],delete e[qe],delete e[Ge],delete e[We]}function Qe(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ze]||n[Be]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Rd(e);null!==e;){if(n=e[Be])return n;e=Rd(e)}return t}n=(e=n).parentNode}return null}function Xe(e){if(e=e[Be]||e[ze]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Je(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function Ze(e){var t=e[Ye];return t||(t=e[Ye]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Ve]=!0}var tt=new Set,nt={};function rt(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var st=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),it={},ot={};function lt(e,t,n){if(a=t,re.call(ot,a)||!re.call(it,a)&&(st.test(a)?ot[a]=!0:(it[a]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var a}function ct(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ut(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ft(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var vt=/[\n"\\]/g;function gt(e){return e.replace(vt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function bt(e,t,n,r,a,s,i,o){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?xt(e,i,dt(t)):null!=n?xt(e,i,dt(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=s&&(e.defaultChecked=!!s),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.name=""+dt(o):e.removeAttribute("name")}function yt(e,t,n,r,a,s,i,o){if(null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s&&(e.type=s),null!=t||null!=n){if(("submit"===s||"reset"===s)&&null==t)return void pt(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i),pt(e)}function xt(e,t,n){"number"===t&&ft(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function _t(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function kt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(i(92));if(M(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),pt(e)}function Nt(e,t){if(t){var n=e.firstChild;
vendor: 4,144 bytes, line 2
2if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function St(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&jt(e,a,r)}else for(var s in t)t.hasOwnProperty(s)&&jt(e,s,t[s])}function Ct(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
2-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),At=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Lt(e){return At.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function It(){}var Mt=null;function Pt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ot=null,Rt=null;function Dt(e){var t=Xe(e);if(t&&(e=t.stateNode)){var n=e[He]||null;e:switch(e=t.stateNode,t.type){case"input":if(bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+gt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[He]||null;if(!a)throw Error(i(90));bt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&mt(r)}break e;case"textarea":_t(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&wt(e,!!n.multiple,t,!1)}}}var Ft=!1;function Ut(e,t,n){if(Ft)return e(t,n);Ft=!0;try{return e(t)}finally{if(Ft=!1,(null!==Ot||null!==Rt)&&(Zc(),Ot&&(t=Ot,e=Rt,Rt=Ot=null,Dt(t),e)))for(t=0;t<e.length;t++)Dt(e[t])}}function $t(e,t){var n=e.stateNode;if(null===n)return null;var r=n[He]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Bt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ht=!1;if(Bt)try{var zt={};Object.defineProperty(zt,"passive",{get:function(){Ht=!0}}),window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,zt)}catch(e){Ht=!1}var qt=null,Gt=null,Wt=null;function Yt(){if(Wt)return Wt;var e,t,n=Gt,r=n.length,a="value"in qt?qt.value:qt.textContent,s=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[s-t];t++);return Wt=a.slice(e,1<t?1-t:void 0)}function Vt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Kt(){return!0}function Qt(){return!1}function Xt(e){function t(t,n,r,a,s){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Kt:Qt,this.isPropagationStopped=Qt,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kt)},persist:function(){},isPersistent:Kt}),t}var Jt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Xt(tn),rn=p({},tn,{view:0,detail:0}),an=Xt(rn),sn=p({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 146,372 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Jt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Jt=0,en=e),Jt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),on=Xt(sn),ln=Xt(p({},sn,{dataTransfer:0})),cn=Xt(p({},rn,{relatedTarget:0})),un=Xt(p({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Xt(p({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Xt(p({},tn,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=fn[e])&&!!t[e]}function gn(){return vn}var bn=Xt(p({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Vt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Vt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Vt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yn=Xt(p({},sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=Xt(p({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),wn=Xt(p({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=Xt(p({},sn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),kn=Xt(p({},tn,{newState:0,oldState:0})),Nn=[9,13,27,32],En=Bt&&"CompositionEvent"in window,jn=null;Bt&&"documentMode"in document&&(jn=document.documentMode);var Sn=Bt&&"TextEvent"in window&&!jn,Cn=Bt&&(!En||jn&&8<jn&&11>=jn),Tn=String.fromCharCode(32),An=!1;function Ln(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function In(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Mn=!1,Pn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function On(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Pn[e.type]:"textarea"===t}function Rn(e,t,n,r){Ot?Rt?Rt.push(r):Rt=[r]:Ot=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dn=null,Fn=null;function Un(e){Ku(e,0)}function $n(e){if(mt(Je(e)))return e}function Bn(e,t){if("change"===e)return t}var Hn=!1;if(Bt){var zn;if(Bt){var qn="oninput"in document;if(!qn){var Gn=document.createElement("div");Gn.setAttribute("oninput","return;"),qn="function"==typeof Gn.oninput}zn=qn}else zn=!1;Hn=zn&&(!document.documentMode||9<document.documentMode)}function Wn(){Dn&&(Dn.detachEvent("onpropertychange",Yn),Fn=Dn=null)}function Yn(e){if("value"===e.propertyName&&$n(Fn)){var t=[];Rn(t,Fn,e,Pt(e)),Ut(Un,t)}}function Vn(e,t,n){"focusin"===e?(Wn(),Fn=n,(Dn=t).attachEvent("onpropertychange",Yn)):"focusout"===e&&Wn()}function Kn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Fn)}function Qn(e,t){if("click"===e)return $n(t)}function Xn(e,t){if("input"===e||"change"===e)return $n(t)}var Jn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Jn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!re.call(t,a)||!Jn(e[a],t[a]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=ft((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ft((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sr=Bt&&"documentMode"in document&&11>=document.documentMode,ir=null,or=null,lr=null,cr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;cr||null==ir||ir!==ft(r)||(r="selectionStart"in(r=ir)&&ar(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Zn(lr,r)||(lr=r,0<(r=rd(or,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ir)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},mr={};function fr(e){if(pr[e])return pr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in mr)return pr[e]=n[t];return e}Bt&&(mr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var vr=fr("animationend"),gr=fr("animationiteration"),br=fr("animationstart"),yr=fr("transitionrun"),xr=fr("transitionstart"),wr=fr("transitioncancel"),_r=fr("transitionend"),kr=new Map,Nr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Er(e,t){kr.set(e,t),rt(t,[e])}Nr.push("scrollEnd");var jr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Sr=[],Cr=0,Tr=0;function Ar(){for(var e=Cr,t=Tr=Cr=0;t<e;){var n=Sr[t];Sr[t++]=null;var r=Sr[t];Sr[t++]=null;var a=Sr[t];Sr[t++]=null;var s=Sr[t];if(Sr[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==s&&Pr(n,a,s)}}function Lr(e,t,n,r){Sr[Cr++]=e,Sr[Cr++]=t,Sr[Cr++]=n,Sr[Cr++]=r,Tr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Ir(e,t,n,r){return Lr(e,t,n,r),Or(e)}function Mr(e,t){return Lr(e,null,null,t),Or(e)}function Pr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,s=e.return;null!==s;)s.childLanes|=n,null!==(r=s.alternate)&&(r.childLanes|=n),22===s.tag&&(null===(e=s.stateNode)||1&e._visibility||(a=!0)),e=s,s=s.return;return 3===e.tag?(s=e.stateNode,a&&null!==t&&(a=31-xe(n),null===(r=(e=s.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),s):null}function Or(e){if(50<qc)throw qc=0,Gc=null,Error(i(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Rr={};function Dr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fr(e,t,n,r){return new Dr(e,t,n,r)}function Ur(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $r(e,t){var n=e.alternate;return null===n?((n=Fr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,n,r,a,s){var o=0;if(r=e,"function"==typeof e)Ur(e)&&(o=1);else if("string"==typeof e)o=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,q.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case S:return(e=Fr(31,n,t,a)).elementType=S,e.lanes=s,e;case g:return zr(n.children,a,s,t);case b:o=8,a|=24;break;case y:return(e=Fr(12,n,t,2|a)).elementType=y,e.lanes=s,e;case k:return(e=Fr(13,n,t,a)).elementType=k,e.lanes=s,e;case N:return(e=Fr(19,n,t,a)).elementType=N,e.lanes=s,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:o=10;break e;case x:o=9;break e;case _:o=11;break e;case E:o=14;break e;case j:o=16,r=null;break e}o=29,n=Error(i(130,null===e?"null":typeof e,"")),r=null}return(t=Fr(o,n,t,a)).elementType=e,t.type=r,t.lanes=s,t}function zr(e,t,n,r){return(e=Fr(7,e,r,t)).lanes=n,e}function qr(e,t,n){return(e=Fr(6,e,null,t)).lanes=n,e}function Gr(e){var t=Fr(18,null,null,0);return t.stateNode=e,t}function Wr(e,t,n){return(t=Fr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yr=new WeakMap;function Vr(e,t){if("object"==typeof e&&null!==e){var n=Yr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Yr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Kr=[],Qr=0,Xr=null,Jr=0,Zr=[],ea=0,ta=null,na=1,ra="";function aa(e,t){Kr[Qr++]=Jr,Kr[Qr++]=Xr,Xr=e,Jr=t}function sa(e,t,n){Zr[ea++]=na,Zr[ea++]=ra,Zr[ea++]=ta,ta=e;var r=na;e=ra;var a=32-xe(r)-1;r&=~(1<<a),n+=1;var s=32-xe(t)+a;if(30<s){var i=a-a%5;s=(r&(1<<i)-1).toString(32),r>>=i,a-=i,na=1<<32-xe(t)+a|n<<a|r,ra=s+e}else na=1<<s|n<<a|r,ra=e}function ia(e){null!==e.return&&(aa(e,1),sa(e,1,0))}function oa(e){for(;e===Xr;)Xr=Kr[--Qr],Kr[Qr]=null,Jr=Kr[--Qr],Kr[Qr]=null;for(;e===ta;)ta=Zr[--ea],Zr[ea]=null,ra=Zr[--ea],Zr[ea]=null,na=Zr[--ea],Zr[ea]=null}function la(e,t){Zr[ea++]=na,Zr[ea++]=ra,Zr[ea++]=ta,na=t.id,ra=t.overflow,ta=e}var ca=null,ua=null,da=!1,ha=null,pa=!1,ma=Error(i(519));function fa(e){throw wa(Vr(Error(i(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),ma}function va(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[He]=r,n){case"dialog":Qu("cancel",t),Qu("close",t);break;case"iframe":case"object":case"embed":Qu("load",t);break;case"video":case"audio":for(n=0;n<Yu.length;n++)Qu(Yu[n],t);break;case"source":Qu("error",t);break;case"img":case"image":case"link":Qu("error",t),Qu("load",t);break;case"details":Qu("toggle",t);break;case"input":Qu("invalid",t),yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Qu("invalid",t);break;case"textarea":Qu("invalid",t),kt(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||cd(t.textContent,n)?(null!=r.popover&&(Qu("beforetoggle",t),Qu("toggle",t)),null!=r.onScroll&&Qu("scroll",t),null!=r.onScrollEnd&&Qu("scrollend",t),null!=r.onClick&&(t.onclick=It),t=!0):t=!1,t||fa(e,!0)}function ga(e){for(ca=e.return;ca;)switch(ca.tag){case 5:case 31:case 13:return void(pa=!1);case 27:case 3:return void(pa=!0);default:ca=ca.return}}function ba(e){if(e!==ca)return!1;if(!da)return ga(e),da=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||yd(e.type,e.memoizedProps)),t=!t),t&&ua&&fa(e),ga(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));ua=Od(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));ua=Od(e)}else 27===n?(n=ua,jd(e.type)?(e=Pd,Pd=null,ua=e):ua=n):ua=ca?Md(e.stateNode.nextSibling):null;return!0}function ya(){ua=ca=null,da=!1}function xa(){var e=ha;return null!==e&&(null===Ac?Ac=e:Ac.push.apply(Ac,e),ha=null),e}function wa(e){null===ha?ha=[e]:ha.push(e)}var _a=U(null),ka=null,Na=null;function Ea(e,t,n){B(_a,t._currentValue),t._currentValue=n}function ja(e){e._currentValue=_a.current,$(_a)}function Sa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var s=a.dependencies;if(null!==s){var o=a.child;s=s.firstContext;e:for(;null!==s;){var l=s;s=a;for(var c=0;c<t.length;c++)if(l.context===t[c]){s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Sa(s.return,n,e),r||(o=null);break e}s=l.next}}else if(18===a.tag){if(null===(o=a.return))throw Error(i(341));o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),Sa(o,n,e),o=null}else o=a.child;if(null!==o)o.return=a;else for(o=a;null!==o;){if(o===e){o=null;break}if(null!==(a=o.sibling)){a.return=o.return,o=a;break}o=o.return}a=o}}function Ta(e,t,n,r){e=null;for(var a=t,s=!1;null!==a;){if(!s)if(524288&a.flags)s=!0;else if(262144&a.flags)break;if(10===a.tag){var o=a.alternate;if(null===o)throw Error(i(387));if(null!==(o=o.memoizedProps)){var l=a.type;Jn(a.pendingProps.value,o.value)||(null!==e?e.push(l):e=[l])}}else if(a===Y.current){if(null===(o=a.alternate))throw Error(i(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(uh):e=[uh])}a=a.return}null!==e&&Ca(t,e,n,r),t.flags|=262144}function Aa(e){for(e=e.firstContext;null!==e;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function La(e){ka=e,Na=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Ia(e){return Pa(ka,e)}function Ma(e,t){return null===ka&&La(e),Pa(e,t)}function Pa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Na){if(null===e)throw Error(i(308));Na=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Na=Na.next=t;return n}var Oa="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ra=r.unstable_scheduleCallback,Da=r.unstable_NormalPriority,Fa={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ua(){return{controller:new Oa,data:new Map,refCount:0}}function $a(e){e.refCount--,0===e.refCount&&Ra(Da,function(){e.controller.abort()})}var Ba=null,Ha=0,za=0,qa=null;function Ga(){if(0===--Ha&&null!==Ba){null!==qa&&(qa.status="fulfilled");var e=Ba;Ba=null,za=0,qa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Wa=P.S;P.S=function(e,t){Mc=le(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Ba){var n=Ba=[];Ha=0,za=Hu(),qa={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ha++,t.then(Ga,Ga)}(0,t),null!==Wa&&Wa(e,t)};var Ya=U(null);function Va(){var e=Ya.current;return null!==e?e:mc.pooledCache}function Ka(e,t){B(Ya,null===t?Ya.current:t.pool)}function Qa(){var e=Va();return null===e?null:{parent:Fa._currentValue,pool:e}}var Xa=Error(i(460)),Ja=Error(i(474)),Za=Error(i(542)),es={then:function(){}};function ts(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ns(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(It,It),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw is(e=t.reason),e;default:if("string"==typeof t.status)t.then(It,It);else{if(null!==(e=mc)&&100<e.shellSuspendCounter)throw Error(i(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw is(e=t.reason),e}throw as=t,Xa}}function rs(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw as=e,Xa;throw e}}var as=null;function ss(){if(null===as)throw Error(i(459));var e=as;return as=null,e}function is(e){if(e===Xa||e===Za)throw Error(i(483))}var os=null,ls=0;function cs(e){var t=ls;return ls+=1,null===os&&(os=[]),ns(os,e,t)}function us(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ds(e,t){if(t.$$typeof===m)throw Error(i(525));throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hs(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=$r(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=qr(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var s=n.type;return s===g?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===j&&rs(s)===t.type)?(us(t=a(t,n.props),n),t.return=e,t):(us(t=Hr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wr(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,s){return null===t||7!==t.tag?((t=zr(n,e.mode,r,s)).return=e,t):((t=a(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=qr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return us(n=Hr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case v:return(t=Wr(t,e.mode,n)).return=e,t;case j:return h(e,t=rs(t),n)}if(M(t)||A(t))return(t=zr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return h(e,cs(t),n);if(t.$$typeof===w)return h(e,Ma(e,t),n);ds(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===a?c(e,t,n,r):null;case v:return n.key===a?u(e,t,n,r):null;case j:return p(e,t,n=rs(n),r)}if(M(n)||A(n))return null!==a?null:d(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,cs(n),r);if(n.$$typeof===w)return p(e,t,Ma(e,n),r);ds(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case v:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case j:return m(e,t,n,r=rs(r),a)}if(M(r)||A(r))return d(t,e=e.get(n)||null,r,a,null);if("function"==typeof r.then)return m(e,t,n,cs(r),a);if(r.$$typeof===w)return m(e,t,n,Ma(t,r),a);ds(t,r)}return null}function b(l,c,u,d){if("object"==typeof u&&null!==u&&u.type===g&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case f:e:{for(var y=u.key;null!==c;){if(c.key===y){if((y=u.type)===g){if(7===c.tag){n(l,c.sibling),(d=a(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===y||"object"==typeof y&&null!==y&&y.$$typeof===j&&rs(y)===c.type){n(l,c.sibling),us(d=a(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===g?((d=zr(u.props.children,l.mode,d,u.key)).return=l,l=d):(us(d=Hr(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return o(l);case v:e:{for(y=u.key;null!==c;){if(c.key===y){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=a(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Wr(u,l.mode,d)).return=l,l=d}return o(l);case j:return b(l,c,u=rs(u),d)}if(M(u))return function(a,i,o,l){for(var c=null,u=null,d=i,f=i=0,v=null;null!==d&&f<o.length;f++){d.index>f?(v=d,d=null):v=d.sibling;var g=p(a,d,o[f],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(a,d),i=s(g,i,f),null===u?c=g:u.sibling=g,u=g,d=v}if(f===o.length)return n(a,d),da&&aa(a,f),c;if(null===d){for(;f<o.length;f++)null!==(d=h(a,o[f],l))&&(i=s(d,i,f),null===u?c=d:u.sibling=d,u=d);return da&&aa(a,f),c}for(d=r(d);f<o.length;f++)null!==(v=m(d,a,f,o[f],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?f:v.key),i=s(v,i,f),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach(function(e){return t(a,e)}),da&&aa(a,f),c}(l,c,u,d);if(A(u)){if("function"!=typeof(y=A(u)))throw Error(i(150));return function(a,o,l,c){if(null==l)throw Error(i(151));for(var u=null,d=null,f=o,v=o=0,g=null,b=l.next();null!==f&&!b.done;v++,b=l.next()){f.index>v?(g=f,f=null):g=f.sibling;var y=p(a,f,b.value,c);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(a,f),o=s(y,o,v),null===d?u=y:d.sibling=y,d=y,f=g}if(b.done)return n(a,f),da&&aa(a,v),u;if(null===f){for(;!b.done;v++,b=l.next())null!==(b=h(a,b.value,c))&&(o=s(b,o,v),null===d?u=b:d.sibling=b,d=b);return da&&aa(a,v),u}for(f=r(f);!b.done;v++,b=l.next())null!==(b=m(f,a,v,b.value,c))&&(e&&null!==b.alternate&&f.delete(null===b.key?v:b.key),o=s(b,o,v),null===d?u=b:d.sibling=b,d=b);return e&&f.forEach(function(e){return t(a,e)}),da&&aa(a,v),u}(l,c,u=y.call(u),d)}if("function"==typeof u.then)return b(l,c,cs(u),d);if(u.$$typeof===w)return b(l,c,Ma(l,u),d);ds(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=a(c,u)).return=l,l=d):(n(l,c),(d=qr(u,l.mode,d)).return=l,l=d),o(l)):n(l,c)}return function(e,t,n,r){try{ls=0;var a=b(e,t,n,r);return os=null,a}catch(t){if(t===Xa||t===Za)throw t;var s=Fr(29,t,null,e.mode);return s.lanes=r,s.return=e,s}}}var ps=hs(!0),ms=hs(!1),fs=!1;function vs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bs(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ys(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&pc){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Or(e),Pr(e,null,n),t}return Lr(e,r,t,n),Or(e)}function xs(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Pe(e,n)}}function ws(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===s?a=s=i:s=s.next=i,n=n.next}while(null!==n);null===s?a=s=t:s=s.next=t}else a=s=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var _s=!1;function ks(){if(_s&&null!==qa)throw qa}function Ns(e,t,n,r){_s=!1;var a=e.updateQueue;fs=!1;var s=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(null!==o){a.shared.pending=null;var l=o,c=l.next;l.next=null,null===i?s=c:i.next=c,i=l;var u=e.alternate;null!==u&&(o=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===o?u.firstBaseUpdate=c:o.next=c,u.lastBaseUpdate=l)}if(null!==s){var d=a.baseState;for(i=0,u=c=l=null,o=s;;){var h=-536870913&o.lane,m=h!==o.lane;if(m?(vc&h)===h:(r&h)===h){0!==h&&h===za&&(_s=!0),null!==u&&(u=u.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var f=e,v=o;h=t;var g=n;switch(v.tag){case 1:if("function"==typeof(f=v.payload)){d=f.call(g,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=v.payload)?f.call(g,d,h):f))break e;d=p({},d,h);break e;case 2:fs=!0}}null!==(h=o.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=a.callbacks)?a.callbacks=[h]:m.push(h))}else m={lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(c=u=m,l=d):u=u.next=m,i|=h;if(null===(o=o.next)){if(null===(o=a.shared.pending))break;o=(m=o).next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null===s&&(a.shared.lanes=0),Nc|=i,e.lanes=i,e.memoizedState=d}}function Es(e,t){if("function"!=typeof e)throw Error(i(191,e));e.call(t)}function js(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Es(n[e],t)}var Ss=U(null),Cs=U(0);function Ts(e,t){B(Cs,e=_c),B(Ss,t),_c=e|t.baseLanes}function As(){B(Cs,_c),B(Ss,Ss.current)}function Ls(){_c=Cs.current,$(Ss),$(Cs)}var Is=U(null),Ms=null;function Ps(e){var t=e.alternate;B(Us,1&Us.current),B(Is,e),null===Ms&&(null===t||null!==Ss.current||null!==t.memoizedState)&&(Ms=e)}function Os(e){B(Us,Us.current),B(Is,e),null===Ms&&(Ms=e)}function Rs(e){22===e.tag?(B(Us,Us.current),B(Is,e),null===Ms&&(Ms=e)):Ds()}function Ds(){B(Us,Us.current),B(Is,Is.current)}function Fs(e){$(Is),Ms===e&&(Ms=null),$(Us)}var Us=U(0);function $s(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ld(n)||Id(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bs=0,Hs=null,zs=null,qs=null,Gs=!1,Ws=!1,Ys=!1,Vs=0,Ks=0,Qs=null,Xs=0;function Js(){throw Error(i(321))}function Zs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function ei(e,t,n,r,a,s){return Bs=s,Hs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=null===e||null===e.memoizedState?vo:go,Ys=!1,s=n(r,a),Ys=!1,Ws&&(s=ni(t,n,r,a)),ti(e),s}function ti(e){P.H=fo;var t=null!==zs&&null!==zs.next;if(Bs=0,qs=zs=Hs=null,Gs=!1,Ks=0,Qs=null,t)throw Error(i(300));null===e||Mo||null!==(e=e.dependencies)&&Aa(e)&&(Mo=!0)}function ni(e,t,n,r){Hs=e;var a=0;do{if(Ws&&(Qs=null),Ks=0,Ws=!1,25<=a)throw Error(i(301));if(a+=1,qs=zs=null,null!=e.updateQueue){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,null!=s.memoCache&&(s.memoCache.index=0)}P.H=bo,s=t(n,r)}while(Ws);return s}function ri(){var e=P.H,t=e.useState()[0];return t="function"==typeof t.then?ci(t):t,e=e.useState()[0],(null!==zs?zs.memoizedState:null)!==e&&(Hs.flags|=1024),t}function ai(){var e=0!==Vs;return Vs=0,e}function si(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ii(e){if(Gs){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Gs=!1}Bs=0,qs=zs=Hs=null,Ws=!1,Ks=Vs=0,Qs=null}function oi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qs?Hs.memoizedState=qs=e:qs=qs.next=e,qs}function li(){if(null===zs){var e=Hs.alternate;e=null!==e?e.memoizedState:null}else e=zs.next;var t=null===qs?Hs.memoizedState:qs.next;if(null!==t)qs=t,zs=e;else{if(null===e){if(null===Hs.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(zs=e).memoizedState,baseState:zs.baseState,baseQueue:zs.baseQueue,queue:zs.queue,next:null},null===qs?Hs.memoizedState=qs=e:qs=qs.next=e}return qs}function ci(e){var t=Ks;return Ks+=1,null===Qs&&(Qs=[]),e=ns(Qs,e,t),t=Hs,null===(null===qs?t.memoizedState:qs.next)&&(t=t.alternate,P.H=null===t||null===t.memoizedState?vo:go),e}function ui(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ci(e);if(e.$$typeof===w)return Ia(e)}throw Error(i(438,String(e)))}function di(e){var t=null,n=Hs.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Hs.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Hs.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=C;return t.index++,n}function hi(e,t){return"function"==typeof t?t(e):t}function pi(e){return mi(li(),zs,e)}function mi(e,t,n){var r=e.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,s=r.pending;if(null!==s){if(null!==a){var o=a.next;a.next=s.next,s.next=o}t.baseQueue=a=s,r.pending=null}if(s=e.baseState,null===a)e.memoizedState=s;else{var l=o=null,c=null,u=t=a.next,d=!1;do{var h=-536870913&u.lane;if(h!==u.lane?(vc&h)===h:(Bs&h)===h){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===za&&(d=!0);else{if((Bs&p)===p){u=u.next,p===za&&(d=!0);continue}h={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=h,o=s):c=c.next=h,Hs.lanes|=p,Nc|=p}h=u.action,Ys&&n(s,h),s=u.hasEagerState?u.eagerState:n(s,h)}else p={lane:h,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,o=s):c=c.next=p,Hs.lanes|=h,Nc|=h;u=u.next}while(null!==u&&u!==t);if(null===c?o=s:c.next=l,!Jn(s,e.memoizedState)&&(Mo=!0,d&&null!==(n=qa)))throw n;e.memoizedState=s,e.baseState=o,e.baseQueue=c,r.lastRenderedState=s}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function fi(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,s=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do{s=e(s,o.action),o=o.next}while(o!==a);Jn(s,t.memoizedState)||(Mo=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function vi(e,t,n){var r=Hs,a=li(),s=da;if(s){if(void 0===n)throw Error(i(407));n=n()}else n=t();var o=!Jn((zs||a).memoizedState,n);if(o&&(a.memoizedState=n,Mo=!0),a=a.queue,Bi(yi.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||null!==qs&&1&qs.memoizedState.tag){if(r.flags|=2048,Ri(9,{destroy:void 0},bi.bind(null,r,a,n,t),null),null===mc)throw Error(i(349));s||127&Bs||gi(r,t,n)}return n}function gi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Hs.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Hs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function bi(e,t,n,r){t.value=n,t.getSnapshot=r,xi(t)&&wi(e)}function yi(e,t,n){return n(function(){xi(t)&&wi(e)})}function xi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch(e){return!0}}function wi(e){var t=Mr(e,2);null!==t&&Vc(t,0,2)}function _i(e){var t=oi();if("function"==typeof e){var n=e;if(e=n(),Ys){ye(!0);try{n()}finally{ye(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t}function ki(e,t,n,r){return e.baseState=n,mi(e,zs,"function"==typeof r?r:hi)}function Ni(e,t,n,r,a){if(ho(e))throw Error(i(485));if(null!==(e=t.action)){var s={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){s.listeners.push(e)}};null!==P.T?n(!0):s.isTransition=!1,r(s),null===(n=t.pending)?(s.next=t.pending=s,Ei(t,s)):(s.next=n.next,t.pending=n.next=s)}}function Ei(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var s=P.T,i={};P.T=i;try{var o=n(a,r),l=P.S;null!==l&&l(i,o),ji(e,t,o)}catch(n){Ci(e,t,n)}finally{null!==s&&null!==i.types&&(s.types=i.types),P.T=s}}else try{ji(e,t,s=n(a,r))}catch(n){Ci(e,t,n)}}function ji(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Si(e,t,n)},function(n){return Ci(e,t,n)}):Si(e,t,n)}function Si(e,t,n){t.status="fulfilled",t.value=n,Ti(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Ei(e,n)))}function Ci(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Ti(t),t=t.next}while(t!==r)}e.action=null}function Ti(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ai(e,t){return t}function Li(e,t){if(da){var n=mc.formState;if(null!==n){e:{var r=Hs;if(da){if(ua){t:{for(var a=ua,s=pa;8!==a.nodeType;){if(!s){a=null;break t}if(null===(a=Md(a.nextSibling))){a=null;break t}}a="F!"===(s=a.data)||"F"===s?a:null}if(a){ua=Md(a.nextSibling),r="F!"===a.data;break e}}fa(r)}r=!1}r&&(t=n[0])}}return(n=oi()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:t},n.queue=r,n=lo.bind(null,Hs,r),r.dispatch=n,r=_i(!1),s=uo.bind(null,Hs,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=oi()).queue=a,n=Ni.bind(null,Hs,a,s,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ii(e){return Mi(li(),zs,e)}function Mi(e,t,n){if(t=mi(e,t,Ai)[0],e=pi(hi)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=ci(t)}catch(e){if(e===Xa)throw Za;throw e}else r=t;var a=(t=li()).queue,s=a.dispatch;return n!==t.memoizedState&&(Hs.flags|=2048,Ri(9,{destroy:void 0},Pi.bind(null,a,n),null)),[r,s,e]}function Pi(e,t){e.action=t}function Oi(e){var t=li(),n=zs;if(null!==n)return Mi(t,n,e);li(),t=t.memoizedState;var r=(n=li()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ri(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Hs.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Hs.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Di(){return li().memoizedState}function Fi(e,t,n,r){var a=oi();Hs.flags|=e,a.memoizedState=Ri(1|t,{destroy:void 0},n,void 0===r?null:r)}function Ui(e,t,n,r){var a=li();r=void 0===r?null:r;var s=a.memoizedState.inst;null!==zs&&null!==r&&Zs(r,zs.memoizedState.deps)?a.memoizedState=Ri(t,s,n,r):(Hs.flags|=e,a.memoizedState=Ri(1|t,s,n,r))}function $i(e,t){Fi(8390656,8,e,t)}function Bi(e,t){Ui(2048,8,e,t)}function Hi(e){var t=li().memoizedState;return function(e){Hs.flags|=4;var t=Hs.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Hs.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&pc)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function zi(e,t){return Ui(4,2,e,t)}function qi(e,t){return Ui(4,4,e,t)}function Gi(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Wi(e,t,n){n=null!=n?n.concat([e]):null,Ui(4,4,Gi.bind(null,t,e),n)}function Yi(){}function Vi(e,t){var n=li();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Zs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ki(e,t){var n=li();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Zs(t,r[1]))return r[0];if(r=e(),Ys){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[r,t],r}function Qi(e,t,n){return void 0===n||1073741824&Bs&&!(261930&vc)?e.memoizedState=t:(e.memoizedState=n,e=Yc(),Hs.lanes|=e,Nc|=e,n)}function Xi(e,t,n,r){return Jn(n,t)?n:null!==Ss.current?(e=Qi(e,n,r),Jn(e,t)||(Mo=!0),e):42&Bs&&(!(1073741824&Bs)||261930&vc)?(e=Yc(),Hs.lanes|=e,Nc|=e,t):(Mo=!0,e.memoizedState=n)}function Ji(e,t,n,r,a){var s=O.p;O.p=0!==s&&8>s?s:8;var i,o,l,c=P.T,u={};P.T=u,uo(e,!1,t,n);try{var d=a(),h=P.S;null!==h&&h(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?co(e,t,(i=r,o=[],l={status:"pending",value:null,reason:null,then:function(e){o.push(e)}},d.then(function(){l.status="fulfilled",l.value=i;for(var e=0;e<o.length;e++)(0,o[e])(i)},function(e){for(l.status="rejected",l.reason=e,e=0;e<o.length;e++)(0,o[e])(void 0)}),l),Wc()):co(e,t,r,Wc())}catch(n){co(e,t,{then:function(){},status:"rejected",reason:n},Wc())}finally{O.p=s,null!==c&&null!==u.types&&(c.types=u.types),P.T=c}}function Zi(){}function eo(e,t,n,r){if(5!==e.tag)throw Error(i(476));var a=to(e).queue;Ji(e,a,t,R,null===n?Zi:function(){return no(e),n(r)})}function to(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:R},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function no(e){var t=to(e);null===t.next&&(t=e.alternate.memoizedState),co(e,t.next.queue,{},Wc())}function ro(){return Ia(uh)}function ao(){return li().memoizedState}function so(){return li().memoizedState}function io(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Wc(),r=ys(t,e=bs(n),n);return null!==r&&(Vc(r,0,n),xs(r,t,n)),t={cache:Ua()},void(e.payload=t)}t=t.return}}function oo(e,t,n){var r=Wc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ho(e)?po(t,n):null!==(n=Ir(e,t,n,r))&&(Vc(n,0,r),mo(n,t,r))}function lo(e,t,n){co(e,t,n,Wc())}function co(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ho(e))po(t,a);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var i=t.lastRenderedState,o=s(i,n);if(a.hasEagerState=!0,a.eagerState=o,Jn(o,i))return Lr(e,t,a,0),null===mc&&Ar(),!1}catch(e){}if(null!==(n=Ir(e,t,a,r)))return Vc(n,0,r),mo(n,t,r),!0}return!1}function uo(e,t,n,r){if(r={lane:2,revertLane:Hu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ho(e)){if(t)throw Error(i(479))}else null!==(t=Ir(e,n,r,2))&&Vc(t,0,2)}function ho(e){var t=e.alternate;return e===Hs||null!==t&&t===Hs}function po(e,t){Ws=Gs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mo(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Pe(e,n)}}var fo={readContext:Ia,use:ui,useCallback:Js,useContext:Js,useEffect:Js,useImperativeHandle:Js,useLayoutEffect:Js,useInsertionEffect:Js,useMemo:Js,useReducer:Js,useRef:Js,useState:Js,useDebugValue:Js,useDeferredValue:Js,useTransition:Js,useSyncExternalStore:Js,useId:Js,useHostTransitionStatus:Js,useFormState:Js,useActionState:Js,useOptimistic:Js,useMemoCache:Js,useCacheRefresh:Js};fo.useEffectEvent=Js;var vo={readContext:Ia,use:ui,useCallback:function(e,t){return oi().memoizedState=[e,void 0===t?null:t],e},useContext:Ia,useEffect:$i,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Fi(4194308,4,Gi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){Fi(4,2,e,t)},useMemo:function(e,t){var n=oi();t=void 0===t?null:t;var r=e();if(Ys){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=oi();if(void 0!==n){var a=n(t);if(Ys){ye(!0);try{n(t)}finally{ye(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=oo.bind(null,Hs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},oi().memoizedState=e},useState:function(e){var t=(e=_i(e)).queue,n=lo.bind(null,Hs,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Yi,useDeferredValue:function(e,t){return Qi(oi(),e,t)},useTransition:function(){var e=_i(!1);return e=Ji.bind(null,Hs,e.queue,!0,!1),oi().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Hs,a=oi();if(da){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===mc)throw Error(i(349));127&vc||gi(r,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,$i(yi.bind(null,r,s,e),[e]),r.flags|=2048,Ri(9,{destroy:void 0},bi.bind(null,r,s,n,t),null),n},useId:function(){var e=oi(),t=mc.identifierPrefix;if(da){var n=ra;t="_"+t+"R_"+(n=(na&~(1<<32-xe(na)-1)).toString(32)+n),0<(n=Vs++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Xs++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ro,useFormState:Li,useActionState:Li,useOptimistic:function(e){var t=oi();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=uo.bind(null,Hs,!0,n),n.dispatch=t,[e,t]},useMemoCache:di,useCacheRefresh:function(){return oi().memoizedState=io.bind(null,Hs)},useEffectEvent:function(e){var t=oi(),n={impl:e};return t.memoizedState=n,function(){if(2&pc)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},go={readContext:Ia,use:ui,useCallback:Vi,useContext:Ia,useEffect:Bi,useImperativeHandle:Wi,useInsertionEffect:zi,useLayoutEffect:qi,useMemo:Ki,useReducer:pi,useRef:Di,useState:function(){return pi(hi)},useDebugValue:Yi,useDeferredValue:function(e,t){return Xi(li(),zs.memoizedState,e,t)},useTransition:function(){var e=pi(hi)[0],t=li().memoizedState;return["boolean"==typeof e?e:ci(e),t]},useSyncExternalStore:vi,useId:ao,useHostTransitionStatus:ro,useFormState:Ii,useActionState:Ii,useOptimistic:function(e,t){return ki(li(),0,e,t)},useMemoCache:di,useCacheRefresh:so};go.useEffectEvent=Hi;var bo={readContext:Ia,use:ui,useCallback:Vi,useContext:Ia,useEffect:Bi,useImperativeHandle:Wi,useInsertionEffect:zi,useLayoutEffect:qi,useMemo:Ki,useReducer:fi,useRef:Di,useState:function(){return fi(hi)},useDebugValue:Yi,useDeferredValue:function(e,t){var n=li();return null===zs?Qi(n,e,t):Xi(n,zs.memoizedState,e,t)},useTransition:function(){var e=fi(hi)[0],t=li().memoizedState;return["boolean"==typeof e?e:ci(e),t]},useSyncExternalStore:vi,useId:ao,useHostTransitionStatus:ro,useFormState:Oi,useActionState:Oi,useOptimistic:function(e,t){var n=li();return null!==zs?ki(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:di,useCacheRefresh:so};function yo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}bo.useEffectEvent=Hi;var xo={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Wc(),a=bs(r);a.payload=t,null!=n&&(a.callback=n),null!==(t=ys(e,a,r))&&(Vc(t,0,r),xs(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Wc(),a=bs(r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ys(e,a,r))&&(Vc(t,0,r),xs(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wc(),r=bs(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=ys(e,r,n))&&(Vc(t,0,n),xs(t,e,n))}};function wo(e,t,n,r,a,s,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,i):!(t.prototype&&t.prototype.isPureReactComponent&&Zn(n,r)&&Zn(a,s))}function _o(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xo.enqueueReplaceState(t,t.state,null)}function ko(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=p({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}function No(e){jr(e)}function Eo(e){console.error(e)}function jo(e){jr(e)}function So(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Co(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function To(e,t,n){return(n=bs(n)).tag=3,n.payload={element:null},n.callback=function(){So(e,t)},n}function Ao(e){return(e=bs(e)).tag=3,e}function Lo(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var s=r.value;e.payload=function(){return a(s)},e.callback=function(){Co(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){Co(t,n,r),"function"!=typeof a&&(null===Rc?Rc=new Set([this]):Rc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Io=Error(i(461)),Mo=!1;function Po(e,t,n,r){t.child=null===e?ms(t,null,n,r):ps(t,e.child,n,r)}function Oo(e,t,n,r,a){n=n.render;var s=t.ref;if("ref"in r){var i={};for(var o in r)"ref"!==o&&(i[o]=r[o])}else i=r;return La(t),r=ei(e,t,n,i,s,a),o=ai(),null===e||Mo?(da&&o&&ia(t),t.flags|=1,Po(e,t,r,a),t.child):(si(e,t,a),al(e,t,a))}function Ro(e,t,n,r,a){if(null===e){var s=n.type;return"function"!=typeof s||Ur(s)||void 0!==s.defaultProps||null!==n.compare?((e=Hr(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Do(e,t,s,r,a))}if(s=e.child,!sl(e,a)){var i=s.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(i,r)&&e.ref===t.ref)return al(e,t,a)}return t.flags|=1,(e=$r(s,r)).ref=t.ref,e.return=t,t.child=e}function Do(e,t,n,r,a){if(null!==e){var s=e.memoizedProps;if(Zn(s,r)&&e.ref===t.ref){if(Mo=!1,t.pendingProps=r=s,!sl(e,a))return t.lanes=e.lanes,al(e,t,a);131072&e.flags&&(Mo=!0)}}return qo(e,t,n,r,a)}function Fo(e,t,n,r){var a=r.children,s=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(s=null!==s?s.baseLanes|n:n,null!==e){for(r=t.child=e.child,a=0;null!==r;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~s}else r=0,t.child=null;return $o(e,t,s,n,r)}if(!(536870912&n))return r=t.lanes=536870912,$o(e,t,null!==s?s.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ka(0,null!==s?s.cachePool:null),null!==s?Ts(t,s):As(),Rs(t)}else null!==s?(Ka(0,s.cachePool),Ts(t,s),Ds(),t.memoizedState=null):(null!==e&&Ka(0,null),As(),Ds());return Po(e,t,a,n),t.child}function Uo(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $o(e,t,n,r,a){var s=Va();return s=null===s?null:{parent:Fa._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},null!==e&&Ka(0,null),As(),Rs(t),null!==e&&Ta(e,t,r,!0),t.childLanes=a,null}function Bo(e,t){return(t=Zo({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Ho(e,t,n){return ps(t,e.child,null,n),(e=Bo(t,t.pendingProps)).flags|=2,Fs(t),t.memoizedState=null,e}function zo(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(i(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function qo(e,t,n,r,a){return La(t),n=ei(e,t,n,r,void 0,a),r=ai(),null===e||Mo?(da&&r&&ia(t),t.flags|=1,Po(e,t,n,a),t.child):(si(e,t,a),al(e,t,a))}function Go(e,t,n,r,a,s){return La(t),t.updateQueue=null,n=ni(t,r,n,a),ti(e),r=ai(),null===e||Mo?(da&&r&&ia(t),t.flags|=1,Po(e,t,n,s),t.child):(si(e,t,s),al(e,t,s))}function Wo(e,t,n,r,a){if(La(t),null===t.stateNode){var s=Rr,i=n.contextType;"object"==typeof i&&null!==i&&(s=Ia(i)),s=new n(r,s),t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,s.updater=xo,t.stateNode=s,s._reactInternals=t,(s=t.stateNode).props=r,s.state=t.memoizedState,s.refs={},vs(t),i=n.contextType,s.context="object"==typeof i&&null!==i?Ia(i):Rr,s.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(yo(t,n,i,r),s.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof s.getSnapshotBeforeUpdate||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||(i=s.state,"function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),i!==s.state&&xo.enqueueReplaceState(s,s.state,null),Ns(t,r,s,a),ks(),s.state=t.memoizedState),"function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){s=t.stateNode;var o=t.memoizedProps,l=ko(n,o);s.props=l;var c=s.context,u=n.contextType;i=Rr,"object"==typeof u&&null!==u&&(i=Ia(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof s.getSnapshotBeforeUpdate,o=t.pendingProps!==o,u||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o||c!==i)&&_o(t,s,r,i),fs=!1;var h=t.memoizedState;s.state=h,Ns(t,r,s,a),ks(),c=t.memoizedState,o||h!==c||fs?("function"==typeof d&&(yo(t,n,d,r),c=t.memoizedState),(l=fs||wo(t,n,l,r,h,c,i))?(u||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=i,r=l):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,gs(e,t),u=ko(n,i=t.memoizedProps),s.props=u,d=t.pendingProps,h=s.context,c=n.contextType,l=Rr,"object"==typeof c&&null!==c&&(l=Ia(c)),(c="function"==typeof(o=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(i!==d||h!==l)&&_o(t,s,r,l),fs=!1,h=t.memoizedState,s.state=h,Ns(t,r,s,a),ks();var p=t.memoizedState;i!==d||h!==p||fs||null!==e&&null!==e.dependencies&&Aa(e.dependencies)?("function"==typeof o&&(yo(t,n,o,r),p=t.memoizedState),(u=fs||wo(t,n,u,r,h,p,l)||null!==e&&null!==e.dependencies&&Aa(e.dependencies))?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,p,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return s=r,zo(e,t),r=!!(128&t.flags),s||r?(s=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:s.render(),t.flags|=1,null!==e&&r?(t.child=ps(t,e.child,null,a),t.child=ps(t,null,n,a)):Po(e,t,n,a),t.memoizedState=s.state,e=t.child):e=al(e,t,a),e}function Yo(e,t,n,r){return ya(),t.flags|=256,Po(e,t,n,r),t.child}var Vo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ko(e){return{baseLanes:e,cachePool:Qa()}}function Qo(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Sc),e}function Xo(e,t,n){var r,a=t.pendingProps,s=!1,o=!!(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&!!(2&Us.current)),r&&(s=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(da){if(s?Ps(t):Ds(),(e=ua)?null!==(e=null!==(e=Ad(e,pa))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ta?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},(n=Gr(e)).return=t,t.child=n,ca=t,ua=null):e=null,null===e)throw fa(t);return Id(e)?t.lanes=32:t.lanes=536870912,null}var l=a.children;return a=a.fallback,s?(Ds(),l=Zo({mode:"hidden",children:l},s=t.mode),a=zr(a,s,n,null),l.return=t,a.return=t,l.sibling=a,t.child=l,(a=t.child).memoizedState=Ko(n),a.childLanes=Qo(e,r,n),t.memoizedState=Vo,Uo(null,a)):(Ps(t),Jo(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(o)256&t.flags?(Ps(t),t.flags&=-257,t=el(e,t,n)):null!==t.memoizedState?(Ds(),t.child=e.child,t.flags|=128,t=null):(Ds(),l=a.fallback,s=t.mode,a=Zo({mode:"visible",children:a.children},s),(l=zr(l,s,n,null)).flags|=2,a.return=t,l.return=t,a.sibling=l,t.child=a,ps(t,e.child,null,n),(a=t.child).memoizedState=Ko(n),a.childLanes=Qo(e,r,n),t.memoizedState=Vo,t=Uo(null,a));else if(Ps(t),Id(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var u=r.dgst;r=u,(a=Error(i(419))).stack="",a.digest=r,wa({value:a,source:null,stack:null}),t=el(e,t,n)}else if(Mo||Ta(e,t,n,!1),r=0!==(n&e.childLanes),Mo||r){if(null!==(r=mc)&&0!==(a=Oe(r,n))&&a!==c.retryLane)throw c.retryLane=a,Mr(e,a),Vc(r,0,a),Io;Ld(l)||iu(),t=el(e,t,n)}else Ld(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,ua=Md(l.nextSibling),ca=t,da=!0,ha=null,pa=!1,null!==e&&la(t,e),(t=Jo(t,a.children)).flags|=4096);return t}return s?(Ds(),l=a.fallback,s=t.mode,u=(c=e.child).sibling,(a=$r(c,{mode:"hidden",children:a.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=$r(u,l):(l=zr(l,s,n,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,Uo(null,a),a=t.child,null===(l=e.child.memoizedState)?l=Ko(n):(null!==(s=l.cachePool)?(c=Fa._currentValue,s=s.parent!==c?{parent:c,pool:c}:s):s=Qa(),l={baseLanes:l.baseLanes|n,cachePool:s}),a.memoizedState=l,a.childLanes=Qo(e,r,n),t.memoizedState=Vo,Uo(e.child,a)):(Ps(t),e=(n=e.child).sibling,(n=$r(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Jo(e,t){return(t=Zo({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zo(e,t){return(e=Fr(22,e,null,t)).lanes=0,e}function el(e,t,n){return ps(t,e.child,null,n),(e=Jo(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sa(e.return,t,n)}function nl(e,t,n,r,a,s){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.treeForkCount=s)}function rl(e,t,n){var r=t.pendingProps,a=r.revealOrder,s=r.tail;r=r.children;var i=Us.current,o=!!(2&i);if(o?(i=1&i|2,t.flags|=128):i&=1,B(Us,i),Po(e,t,r,n),r=da?Jr:0,!o&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,n,t);else if(19===e.tag)tl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===$s(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),nl(t,!1,a,n,s,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===$s(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}nl(t,!0,n,null,s,r);break;case"together":nl(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function al(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ta(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=$r(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$r(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Aa(e))}function il(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Mo=!0;else{if(!(sl(e,n)||128&t.flags))return Mo=!1,function(e,t,n){switch(t.tag){case 3:V(t,t.stateNode.containerInfo),Ea(0,Fa,e.memoizedState.cache),ya();break;case 27:case 5:Q(t);break;case 4:V(t,t.stateNode.containerInfo);break;case 10:Ea(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Os(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Ps(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Xo(e,t,n):(Ps(t),null!==(e=al(e,t,n))?e.sibling:null);Ps(t);break;case 19:var a=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ta(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return rl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),B(Us,Us.current),r)break;return null;case 22:return t.lanes=0,Fo(e,t,n,t.pendingProps);case 24:Ea(0,Fa,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Mo=!!(131072&e.flags)}else Mo=!1,da&&1048576&t.flags&&sa(t,Jr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=rs(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var a=e.$$typeof;if(a===_){t.tag=11,t=Oo(null,t,e,r,n);break e}if(a===E){t.tag=14,t=Ro(null,t,e,r,n);break e}}throw t=I(e)||e,Error(i(306,t,""))}Ur(e)?(r=ko(e,r),t.tag=1,t=Wo(null,t,e,r,n)):(t.tag=0,t=qo(null,t,e,r,n))}return t;case 0:return qo(e,t,t.type,t.pendingProps,n);case 1:return Wo(e,t,r=t.type,a=ko(r,t.pendingProps),n);case 3:e:{if(V(t,t.stateNode.containerInfo),null===e)throw Error(i(387));r=t.pendingProps;var s=t.memoizedState;a=s.element,gs(e,t),Ns(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Ea(0,Fa,r),r!==s.cache&&Ca(t,[Fa],n,!0),ks(),r=o.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Yo(e,t,r,n);break e}if(r!==a){wa(a=Vr(Error(i(424)),t)),t=Yo(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ua=Md(e.firstChild),ca=t,da=!0,ha=null,pa=!0,n=ms(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ya(),r===a){t=al(e,t,n);break e}Po(e,t,r,n)}t=t.child}return t;case 26:return zo(e,t),null===e?(n=Gd(t.type,null,t.pendingProps,null))?t.memoizedState=n:da||(n=t.type,e=t.pendingProps,(r=vd(W.current).createElement(n))[Be]=t,r[He]=e,hd(r,n,e),et(r),t.stateNode=r):t.memoizedState=Gd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Q(t),null===e&&da&&(r=t.stateNode=Dd(t.type,t.pendingProps,W.current),ca=t,pa=!0,a=ua,jd(t.type)?(Pd=a,ua=Md(r.firstChild)):ua=a),Po(e,t,t.pendingProps.children,n),zo(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&da&&((a=r=ua)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ve])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(s=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(s!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((s=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var s=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===s)return e}if(null===(e=Md(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,pa))?(t.stateNode=r,ca=t,ua=Md(r.firstChild),pa=!1,a=!0):a=!1),a||fa(t)),Q(t),a=t.type,s=t.pendingProps,o=null!==e?e.memoizedProps:null,r=s.children,yd(a,s)?r=null:null!==o&&yd(a,o)&&(t.flags|=32),null!==t.memoizedState&&(a=ei(e,t,ri,null,null,n),uh._currentValue=a),zo(e,t),Po(e,t,r,n),t.child;case 6:return null===e&&da&&((e=n=ua)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Md(e.nextSibling)))return null}return e}(n,t.pendingProps,pa))?(t.stateNode=n,ca=t,ua=null,e=!0):e=!1),e||fa(t)),null;case 13:return Xo(e,t,n);case 4:return V(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ps(t,null,r,n):Po(e,t,r,n),t.child;case 11:return Oo(e,t,t.type,t.pendingProps,n);case 7:return Po(e,t,t.pendingProps,n),t.child;case 8:case 12:return Po(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ea(0,t.type,r.value),Po(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,La(t),r=r(a=Ia(a)),t.flags|=1,Po(e,t,r,n),t.child;case 14:return Ro(e,t,t.type,t.pendingProps,n);case 15:return Do(e,t,t.type,t.pendingProps,n);case 19:return rl(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,a=!!(128&t.flags);if(t.flags&=-129,null===e){if(da){if("hidden"===r.mode)return e=Bo(t,r),t.lanes=536870912,Uo(null,e);if(Os(t),(e=ua)?null!==(e=null!==(e=Ad(e,pa))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ta?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},(n=Gr(e)).return=t,t.child=n,ca=t,ua=null):e=null,null===e)throw fa(t);return t.lanes=536870912,null}return Bo(t,r)}var s=e.memoizedState;if(null!==s){var o=s.dehydrated;if(Os(t),a)if(256&t.flags)t.flags&=-257,t=Ho(e,t,n);else{if(null===t.memoizedState)throw Error(i(558));t.child=e.child,t.flags|=128,t=null}else if(Mo||Ta(e,t,n,!1),a=0!==(n&e.childLanes),Mo||a){if(null!==(r=mc)&&0!==(o=Oe(r,n))&&o!==s.retryLane)throw s.retryLane=o,Mr(e,o),Vc(r,0,o),Io;iu(),t=Ho(e,t,n)}else e=s.treeContext,ua=Md(o.nextSibling),ca=t,da=!0,ha=null,pa=!1,null!==e&&la(t,e),(t=Bo(t,r)).flags|=4096;return t}return(e=$r(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Fo(e,t,n,t.pendingProps);case 24:return La(t),r=Ia(Fa),null===e?(null===(a=Va())&&(a=mc,s=Ua(),a.pooledCache=s,s.refCount++,null!==s&&(a.pooledCacheLanes|=n),a=s),t.memoizedState={parent:r,cache:a},vs(t),Ea(0,Fa,a)):(0!==(e.lanes&n)&&(gs(e,t),Ns(t,null,null,n),ks()),a=e.memoizedState,s=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Ea(0,Fa,r)):(r=s.cache,Ea(0,Fa,r),r!==a.cache&&Ca(t,[Fa],n,!0))),Po(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ol(e){e.flags|=4}function ll(e,t,n,r,a){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&a)===a)if(e.stateNode.complete)e.flags|=8192;else{if(!ru())throw as=es,Ja;e.flags|=8192}}else e.flags&=-16777217}function cl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!ah(t)){if(!ru())throw as=es,Ja;e.flags|=8192}}function ul(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ae():536870912,e.lanes|=t,Cc|=t)}function dl(e,t){if(!da)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pl(e,t,n){var r=t.pendingProps;switch(oa(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ja(Fa),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ba(t)?ol(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,xa())),hl(t),null;case 26:var a=t.type,s=t.memoizedState;return null===e?(ol(t),null!==s?(hl(t),cl(t,s)):(hl(t),ll(t,a,0,0,n))):s?s!==e.memoizedState?(ol(t),hl(t),cl(t,s)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&ol(t),hl(t),ll(t,a,0,0,n)),null;case 27:if(X(t),n=W.current,a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ol(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return hl(t),null}e=q.current,ba(t)?va(t):(e=Dd(a,r,n),t.stateNode=e,ol(t))}return hl(t),null;case 5:if(X(t),a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ol(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return hl(t),null}if(s=q.current,ba(t))va(t);else{var o=vd(W.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":(s=o.createElement("div")).innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?s.multiple=!0:r.size&&(s.size=r.size);break;default:s="string"==typeof r.is?o.createElement(a,{is:r.is}):o.createElement(a)}}s[Be]=t,s[He]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)s.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(hd(s,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ol(t)}}return hl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ol(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=W.current,ba(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(a=ca))switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||cd(e.nodeValue,n)))||fa(t,!0)}else(e=vd(e).createTextNode(r))[Be]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=ba(t),null!==n){if(null===e){if(!r)throw Error(i(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(i(557));e[Be]=t}else ya(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=xa(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Fs(t),t):(Fs(t),null);if(128&t.flags)throw Error(i(558))}return hl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ba(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[Be]=t}else ya(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),a=!1}else a=xa(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(Fs(t),t):(Fs(t),null)}return Fs(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool),s=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(s=r.memoizedState.cachePool.pool),s!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ul(t,t.updateQueue),hl(t),null);case 4:return K(),null===e&&Zu(t.stateNode.containerInfo),hl(t),null;case 10:return ja(t.type),hl(t),null;case 19:if($(Us),null===(r=t.memoizedState))return hl(t),null;if(a=!!(128&t.flags),null===(s=r.rendering))if(a)dl(r,!1);else{if(0!==kc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=$s(e))){for(t.flags|=128,dl(r,!1),e=s.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return B(Us,1&Us.current|2),da&&aa(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&le()>Pc&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=$s(s))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),dl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!da)return hl(t),null}else 2*le()-r.renderingStartTime>Pc&&536870912!==n&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(e=r.last)?e.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=le(),e.sibling=null,n=Us.current,B(Us,a?1&n|2:1&n),da&&aa(t,r.treeForkCount),e):(hl(t),null);case 22:case 23:return Fs(t),Ls(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&ul(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&$(Ya),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ja(Fa),hl(t),null;case 25:case 30:return null}throw Error(i(156,t.tag))}function ml(e,t){switch(oa(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ja(Fa),K(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(Fs(t),null===t.alternate)throw Error(i(340));ya()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Fs(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));ya()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return $(Us),null;case 4:return K(),null;case 10:return ja(t.type),null;case 22:case 23:return Fs(t),Ls(),null!==e&&$(Ya),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return ja(Fa),null;default:return null}}function fl(e,t){switch(oa(t),t.tag){case 3:ja(Fa),K();break;case 26:case 27:case 5:X(t);break;case 4:K();break;case 31:null!==t.memoizedState&&Fs(t);break;case 13:Fs(t);break;case 19:$(Us);break;case 10:ja(t.type);break;case 22:case 23:Fs(t),Ls(),null!==e&&$(Ya);break;case 24:ja(Fa)}}function vl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var s=n.create,i=n.inst;r=s(),i.destroy=r}n=n.next}while(n!==a)}}catch(e){ku(t,t.return,e)}}function gl(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var s=a.next;r=s;do{if((r.tag&e)===e){var i=r.inst,o=i.destroy;if(void 0!==o){i.destroy=void 0,a=t;var l=n,c=o;try{c()}catch(e){ku(a,l,e)}}}r=r.next}while(r!==s)}}catch(e){ku(t,t.return,e)}}function bl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{js(t,n)}catch(t){ku(e,e.return,t)}}}function yl(e,t,n){n.props=ko(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){ku(e,t,n)}}function xl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){ku(e,t,n)}}function wl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){ku(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){ku(e,t,n)}else n.current=null}function _l(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){ku(e,e.return,t)}}function kl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,s=null,o=null,l=null,c=null,u=null,d=null;for(m in n){var h=n[m];if(n.hasOwnProperty(m)&&null!=h)switch(m){case"checked":case"value":break;case"defaultValue":c=h;default:r.hasOwnProperty(m)||ud(e,t,m,null,r,h)}}for(var p in r){var m=r[p];if(h=n[p],r.hasOwnProperty(p)&&(null!=m||null!=h))switch(p){case"type":s=m;break;case"name":a=m;break;case"checked":u=m;break;case"defaultChecked":d=m;break;case"value":o=m;break;case"defaultValue":l=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(i(137,t));break;default:m!==h&&ud(e,t,p,m,r,h)}}return void bt(e,o,l,c,u,d,s,a);case"select":for(s in m=o=l=p=null,n)if(c=n[s],n.hasOwnProperty(s)&&null!=c)switch(s){case"value":break;case"multiple":m=c;default:r.hasOwnProperty(s)||ud(e,t,s,null,r,c)}for(a in r)if(s=r[a],c=n[a],r.hasOwnProperty(a)&&(null!=s||null!=c))switch(a){case"value":p=s;break;case"defaultValue":l=s;break;case"multiple":o=s;default:s!==c&&ud(e,t,a,s,r,c)}return t=l,n=o,r=m,void(null!=p?wt(e,!!n,p,!1):!!r!=!!n&&(null!=t?wt(e,!!n,t,!0):wt(e,!!n,n?[]:"",!1)));case"textarea":for(l in m=p=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ud(e,t,l,null,r,a)}for(o in r)if(a=r[o],s=n[o],r.hasOwnProperty(o)&&(null!=a||null!=s))switch(o){case"value":p=a;break;case"defaultValue":m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(i(91));break;default:a!==s&&ud(e,t,o,a,r,s)}return void _t(e,p,m);case"option":for(var f in n)p=n[f],n.hasOwnProperty(f)&&null!=p&&!r.hasOwnProperty(f)&&("selected"===f?e.selected=!1:ud(e,t,f,null,r,p));for(c in r)p=r[c],m=n[c],!r.hasOwnProperty(c)||p===m||null==p&&null==m||("selected"===c?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:ud(e,t,c,p,r,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&ud(e,t,v,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(null!=p||null!=m))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,t));break;default:ud(e,t,u,p,r,m)}return;default:if(Ct(t)){for(var g in n)p=n[g],n.hasOwnProperty(g)&&void 0!==p&&!r.hasOwnProperty(g)&&dd(e,t,g,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||void 0===p&&void 0===m||dd(e,t,d,p,r,m);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!r.hasOwnProperty(b)&&ud(e,t,b,null,r,p);for(h in r)p=r[h],m=n[h],!r.hasOwnProperty(h)||p===m||null==p&&null==m||ud(e,t,h,p,r,m)}(r,e.type,n,t),r[He]=t}catch(t){ku(e,e.return,t)}}function Nl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&jd(e.type)||4===e.tag}function El(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Nl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&jd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function jl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=It));else if(4!==r&&(27===r&&jd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(jl(e,t,n),e=e.sibling;null!==e;)jl(e,t,n),e=e.sibling}function Sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&jd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Sl(e,t,n),e=e.sibling;null!==e;)Sl(e,t,n),e=e.sibling}function Cl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);hd(t,r,n),t[Be]=e,t[He]=n}catch(t){ku(e,e.return,t)}}var Tl=!1,Al=!1,Ll=!1,Il="function"==typeof WeakSet?WeakSet:Set,Ml=null;function Pl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Vl(e,n),4&r&&vl(5,n);break;case 1:if(Vl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){ku(n,n.return,e)}else{var a=ko(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ku(n,n.return,e)}}64&r&&bl(n),512&r&&xl(n,n.return);break;case 3:if(Vl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{js(e,t)}catch(e){ku(n,n.return,e)}}break;case 27:null===t&&4&r&&Cl(n);case 26:case 5:Vl(e,n),null===t&&4&r&&_l(n),512&r&&xl(n,n.return);break;case 12:Vl(e,n);break;case 31:Vl(e,n),4&r&&$l(e,n);break;case 13:Vl(e,n),4&r&&Bl(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Su.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Tl)){t=null!==t&&null!==t.memoizedState||Al,a=Tl;var s=Al;Tl=r,(Al=t)&&!s?Ql(e,n,!!(8772&n.subtreeFlags)):Vl(e,n),Tl=a,Al=s}break;case 30:break;default:Vl(e,n)}}function Ol(e){var t=e.alternate;null!==t&&(e.alternate=null,Ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ke(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Rl=null,Dl=!1;function Fl(e,t,n){for(n=n.child;null!==n;)Ul(e,t,n),n=n.sibling}function Ul(e,t,n){if(be&&"function"==typeof be.onCommitFiberUnmount)try{be.onCommitFiberUnmount(ge,n)}catch(e){}switch(n.tag){case 26:Al||wl(n,t),Fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Al||wl(n,t);var r=Rl,a=Dl;jd(n.type)&&(Rl=n.stateNode,Dl=!1),Fl(e,t,n),Fd(n.stateNode),Rl=r,Dl=a;break;case 5:Al||wl(n,t);case 6:if(r=Rl,a=Dl,Rl=null,Fl(e,t,n),Dl=a,null!==(Rl=r))if(Dl)try{(9===Rl.nodeType?Rl.body:"HTML"===Rl.nodeName?Rl.ownerDocument.body:Rl).removeChild(n.stateNode)}catch(e){ku(n,t,e)}else try{Rl.removeChild(n.stateNode)}catch(e){ku(n,t,e)}break;case 18:null!==Rl&&(Dl?(Sd(9===(e=Rl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),qh(e)):Sd(Rl,n.stateNode));break;case 4:r=Rl,a=Dl,Rl=n.stateNode.containerInfo,Dl=!0,Fl(e,t,n),Rl=r,Dl=a;break;case 0:case 11:case 14:case 15:gl(2,n,t),Al||gl(4,n,t),Fl(e,t,n);break;case 1:Al||(wl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&yl(n,t,r)),Fl(e,t,n);break;case 21:Fl(e,t,n);break;case 22:Al=(r=Al)||null!==n.memoizedState,Fl(e,t,n),Al=r;break;default:Fl(e,t,n)}}function $l(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{qh(e)}catch(e){ku(t,t.return,e)}}}function Bl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{qh(e)}catch(e){ku(t,t.return,e)}}function Hl(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Il),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Il),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Cu.bind(null,e,t);t.then(r,r)}})}function zl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r],s=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 27:if(jd(l.type)){Rl=l.stateNode,Dl=!1;break e}break;case 5:Rl=l.stateNode,Dl=!1;break e;case 3:case 4:Rl=l.stateNode.containerInfo,Dl=!0;break e}l=l.return}if(null===Rl)throw Error(i(160));Ul(s,o,a),Rl=null,Dl=!1,null!==(s=a.alternate)&&(s.return=null),a.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Gl(t,e),t=t.sibling}var ql=null;function Gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zl(t,e),Wl(e),4&r&&(gl(3,e,e.return),vl(3,e),gl(5,e,e.return));break;case 1:zl(t,e),Wl(e),512&r&&(Al||null===n||wl(n,n.return)),64&r&&Tl&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var a=ql;if(zl(t,e),Wl(e),512&r&&(Al||null===n||wl(n,n.return)),4&r){var s=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":(!(s=a.getElementsByTagName("title")[0])||s[Ve]||s[Be]||"http://www.w3.org/2000/svg"===s.namespaceURI||s.hasAttribute("itemprop"))&&(s=a.createElement(r),a.head.insertBefore(s,a.querySelector("head > title"))),hd(s,r,n),s[Be]=e,et(s),r=s;break e;case"link":var o=nh("link","href",a).get(r+(n.href||""));if(o)for(var l=0;l<o.length;l++)if((s=o[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&s.getAttribute("rel")===(null==n.rel?null:n.rel)&&s.getAttribute("title")===(null==n.title?null:n.title)&&s.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(l,1);break t}hd(s=a.createElement(r),r,n),a.head.appendChild(s);break;case"meta":if(o=nh("meta","content",a).get(r+(n.content||"")))for(l=0;l<o.length;l++)if((s=o[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&s.getAttribute("name")===(null==n.name?null:n.name)&&s.getAttribute("property")===(null==n.property?null:n.property)&&s.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&s.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(l,1);break t}hd(s=a.createElement(r),r,n),a.head.appendChild(s);break;default:throw Error(i(468,r))}s[Be]=e,et(s),r=s}e.stateNode=r}else rh(a,e.type,e.stateNode);else e.stateNode=Xd(a,r,e.memoizedProps);else s!==r?(null===s?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):s.count--,null===r?rh(a,e.type,e.stateNode):Xd(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&kl(e,e.memoizedProps,n.memoizedProps)}break;case 27:zl(t,e),Wl(e),512&r&&(Al||null===n||wl(n,n.return)),null!==n&&4&r&&kl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(zl(t,e),Wl(e),512&r&&(Al||null===n||wl(n,n.return)),32&e.flags){a=e.stateNode;try{Nt(a,"")}catch(t){ku(e,e.return,t)}}4&r&&null!=e.stateNode&&kl(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&r&&(Ll=!0);break;case 6:if(zl(t,e),Wl(e),4&r){if(null===e.stateNode)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){ku(e,e.return,t)}}break;case 3:if(th=null,a=ql,ql=Bd(t.containerInfo),zl(t,e),ql=a,Wl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qh(t.containerInfo)}catch(t){ku(e,e.return,t)}Ll&&(Ll=!1,Yl(e));break;case 4:r=ql,ql=Bd(e.stateNode.containerInfo),zl(t,e),Wl(e),ql=r;break;case 12:default:zl(t,e),Wl(e);break;case 31:case 19:zl(t,e),Wl(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Hl(e,r));break;case 13:zl(t,e),Wl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Ic=le()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Hl(e,r));break;case 22:a=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Tl,d=Al;if(Tl=u||a,Al=d||c,zl(t,e),Al=d,Tl=u,Wl(e),8192&r)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||c||Tl||Al||Kl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(s=c.stateNode,a)"function"==typeof(o=s.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{l=c.stateNode;var h=c.memoizedProps.style,p=null!=h&&h.hasOwnProperty("display")?h.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){ku(c,c.return,e)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(e){ku(c,c.return,e)}}}else if(18===t.tag){if(null===n){c=t;try{var m=c.stateNode;a?Cd(m,!0):Cd(c.stateNode,!1)}catch(e){ku(c,c.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Hl(e,n));case 30:case 21:}}function Wl(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Nl(r)){n=r;break}r=r.return}if(null==n)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Sl(e,El(e),a);break;case 5:var s=n.stateNode;32&n.flags&&(Nt(s,""),n.flags&=-33),Sl(e,El(e),s);break;case 3:case 4:var o=n.stateNode.containerInfo;jl(e,El(e),o);break;default:throw Error(i(161))}}catch(t){ku(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Yl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Yl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Vl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Pl(e,t.alternate,t),t=t.sibling}function Kl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:gl(4,t,t.return),Kl(t);break;case 1:wl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&yl(t,t.return,n),Kl(t);break;case 27:Fd(t.stateNode);case 26:case 5:wl(t,t.return),Kl(t);break;case 22:null===t.memoizedState&&Kl(t);break;default:Kl(t)}e=e.sibling}}function Ql(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,a=e,s=t,i=s.flags;switch(s.tag){case 0:case 11:case 15:Ql(a,s,n),vl(4,s);break;case 1:if(Ql(a,s,n),"function"==typeof(a=(r=s).stateNode).componentDidMount)try{a.componentDidMount()}catch(e){ku(r,r.return,e)}if(null!==(a=(r=s).updateQueue)){var o=r.stateNode;try{var l=a.shared.hiddenCallbacks;if(null!==l)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)Es(l[a],o)}catch(e){ku(r,r.return,e)}}n&&64&i&&bl(s),xl(s,s.return);break;case 27:Cl(s);case 26:case 5:Ql(a,s,n),n&&null===r&&4&i&&_l(s),xl(s,s.return);break;case 12:Ql(a,s,n);break;case 31:Ql(a,s,n),n&&4&i&&$l(a,s);break;case 13:Ql(a,s,n),n&&4&i&&Bl(a,s);break;case 22:null===s.memoizedState&&Ql(a,s,n),xl(s,s.return);break;case 30:break;default:Ql(a,s,n)}t=t.sibling}}function Xl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&$a(n))}function Jl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&$a(e))}function Zl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ec(e,t,n,r),t=t.sibling}function ec(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Zl(e,t,n,r),2048&a&&vl(9,t);break;case 1:case 31:case 13:default:Zl(e,t,n,r);break;case 3:Zl(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&$a(e)));break;case 12:if(2048&a){Zl(e,t,n,r),e=t.stateNode;try{var s=t.memoizedProps,i=s.id,o=s.onPostCommit;"function"==typeof o&&o(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){ku(t,t.return,e)}}else Zl(e,t,n,r);break;case 23:break;case 22:s=t.stateNode,i=t.alternate,null!==t.memoizedState?2&s._visibility?Zl(e,t,n,r):nc(e,t):2&s._visibility?Zl(e,t,n,r):(s._visibility|=2,tc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&a&&Xl(i,t);break;case 24:Zl(e,t,n,r),2048&a&&Jl(t.alternate,t)}}function tc(e,t,n,r,a){for(a=a&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var s=e,i=t,o=n,l=r,c=i.flags;switch(i.tag){case 0:case 11:case 15:tc(s,i,o,l,a),vl(8,i);break;case 23:break;case 22:var u=i.stateNode;null!==i.memoizedState?2&u._visibility?tc(s,i,o,l,a):nc(s,i):(u._visibility|=2,tc(s,i,o,l,a)),a&&2048&c&&Xl(i.alternate,i);break;case 24:tc(s,i,o,l,a),a&&2048&c&&Jl(i.alternate,i);break;default:tc(s,i,o,l,a)}t=t.sibling}}function nc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:nc(n,r),2048&a&&Xl(r.alternate,r);break;case 24:nc(n,r),2048&a&&Jl(r.alternate,r);break;default:nc(n,r)}t=t.sibling}}var rc=8192;function ac(e,t,n){if(e.subtreeFlags&rc)for(e=e.child;null!==e;)sc(e,t,n),e=e.sibling}function sc(e,t,n){switch(e.tag){case 26:ac(e,t,n),e.flags&rc&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var a=Wd(r.href),s=t.querySelector(Yd(a));if(s)return null!==(t=s._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=ih.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,void et(s);s=t.ownerDocument||t,r=Vd(r),(a=Ud.get(a))&&Zd(r,a),et(s=s.createElement("link"));var i=s;i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),hd(s,"link",r),n.instance=s}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=ih.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,ql,e.memoizedState,e.memoizedProps);break;case 5:default:ac(e,t,n);break;case 3:case 4:var r=ql;ql=Bd(e.stateNode.containerInfo),ac(e,t,n),ql=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=rc,rc=16777216,ac(e,t,n),rc=r):ac(e,t,n))}}function ic(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function oc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ml=r,uc(r,e)}ic(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lc(e),e=e.sibling}function lc(e){switch(e.tag){case 0:case 11:case 15:oc(e),2048&e.flags&&gl(9,e,e.return);break;case 3:case 12:default:oc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,cc(e)):oc(e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ml=r,uc(r,e)}ic(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:gl(8,t,t.return),cc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,cc(t));break;default:cc(t)}e=e.sibling}}function uc(e,t){for(;null!==Ml;){var n=Ml;switch(n.tag){case 0:case 11:case 15:gl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:$a(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Ml=r;else e:for(n=e;null!==Ml;){var a=(r=Ml).sibling,s=r.return;if(Ol(r),r===n){Ml=null;break e}if(null!==a){a.return=s,Ml=a;break e}Ml=s}}}var dc={getCacheForType:function(e){var t=Ia(Fa),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ia(Fa).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,pc=0,mc=null,fc=null,vc=0,gc=0,bc=null,yc=!1,xc=!1,wc=!1,_c=0,kc=0,Nc=0,Ec=0,jc=0,Sc=0,Cc=0,Tc=null,Ac=null,Lc=!1,Ic=0,Mc=0,Pc=1/0,Oc=null,Rc=null,Dc=0,Fc=null,Uc=null,$c=0,Bc=0,Hc=null,zc=null,qc=0,Gc=null;function Wc(){return 2&pc&&0!==vc?vc&-vc:null!==P.T?Hu():Fe()}function Yc(){if(0===Sc)if(536870912&vc&&!da)Sc=536870912;else{var e=Ne;!(3932160&(Ne<<=1))&&(Ne=262144),Sc=e}return null!==(e=Is.current)&&(e.flags|=32),Sc}function Vc(e,t,n){(e!==mc||2!==gc&&9!==gc)&&null===e.cancelPendingCommit||(tu(e,0),Jc(e,vc,Sc,!1)),Ie(e,n),2&pc&&e===mc||(e===mc&&(!(2&pc)&&(Ec|=n),4===kc&&Jc(e,vc,Sc,!1)),Ou(e))}function Kc(e,t,n){if(6&pc)throw Error(i(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ce(e,t),a=r?function(e,t){var n=pc;pc|=2;var r=au(),a=su();mc!==e||vc!==t?(Oc=null,Pc=le()+500,tu(e,t)):xc=Ce(e,t);e:for(;;)try{if(0!==gc&&null!==fc){t=fc;var s=bc;t:switch(gc){case 1:gc=0,bc=null,hu(e,t,s,1);break;case 2:case 9:if(ts(s)){gc=0,bc=null,du(t);break}t=function(){2!==gc&&9!==gc||mc!==e||(gc=7),Ou(e)},s.then(t,t);break e;case 3:gc=7;break e;case 4:gc=5;break e;case 7:ts(s)?(gc=0,bc=null,du(t)):(gc=0,bc=null,hu(e,t,s,7));break;case 5:var o=null;switch(fc.tag){case 26:o=fc.memoizedState;case 5:case 27:var l=fc;if(o?ah(o):l.stateNode.complete){gc=0,bc=null;var c=l.sibling;if(null!==c)fc=c;else{var u=l.return;null!==u?(fc=u,pu(u)):fc=null}break t}}gc=0,bc=null,hu(e,t,s,5);break;case 6:gc=0,bc=null,hu(e,t,s,6);break;case 8:eu(),kc=6;break e;default:throw Error(i(462))}}cu();break}catch(t){nu(e,t)}return Na=ka=null,P.H=r,P.A=a,pc=n,null!==fc?0:(mc=null,vc=0,Ar(),kc)}(e,t):ou(e,t,!0),s=r;;){if(0===a){xc&&!r&&Jc(e,t,0,!1);break}if(n=e.current.alternate,!s||Xc(n)){if(2===a){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=0!=(o=-536870913&e.pendingLanes)?o:536870912&o?536870912:0;if(0!==o){t=o;e:{var l=e;a=Tc;var c=l.current.memoizedState.isDehydrated;if(c&&(tu(l,o).flags|=256),2!==(o=ou(l,o,!1))){if(wc&&!c){l.errorRecoveryDisabledLanes|=s,Ec|=s,a=4;break e}s=Ac,Ac=a,null!==s&&(null===Ac?Ac=s:Ac.push.apply(Ac,s))}a=o}if(s=!1,2!==a)continue}}if(1===a){tu(e,0),Jc(e,t,0,!0);break}e:{switch(r=e,s=a){case 0:case 1:throw Error(i(345));case 4:if((4194048&t)!==t)break;case 6:Jc(r,t,Sc,!yc);break e;case 2:Ac=null;break;case 3:case 5:break;default:throw Error(i(329))}if((62914560&t)===t&&10<(a=Ic+300-le())){if(Jc(r,t,Sc,!yc),0!==Se(r,0,!0))break e;$c=t,r.timeoutHandle=wd(Qc.bind(null,r,n,Ac,Oc,Lc,t,Sc,Ec,Cc,yc,s,"Throttled",-0,0),a)}else Qc(r,n,Ac,Oc,Lc,t,Sc,Ec,Cc,yc,s,null,-0,0)}break}a=ou(e,t,!1),s=!1}Ou(e)}function Qc(e,t,n,r,a,s,i,o,l,c,u,d,h,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){sc(t,s,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:It});var m=(62914560&s)===s?Ic-le():(4194048&s)===s?Mc-le():0;if(null!==(m=function(e,t){return e.stylesheets&&0===e.count&&lh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===sh&&(sh=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],s=a.transferSize,i=a.initiatorType,o=a.duration;if(s&&o&&pd(i)){for(i=0,o=a.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>o)break;var u=l.transferSize,d=l.initiatorType;u&&pd(d)&&(i+=u*((l=l.responseEnd)<o?1:(o-c)/(l-c)))}if(--r,t+=8*(s+i)/(a.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var a=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}(d,m)))return $c=s,e.cancelPendingCommit=m(fu.bind(null,e,t,s,n,r,a,i,o,l,u,d,null,h,p)),void Jc(e,s,i,!c)}fu(e,t,s,n,r,a,i,o,l)}function Xc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],s=a.getSnapshot;a=a.value;try{if(!Jn(s(),a))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jc(e,t,n,r){t&=~jc,t&=~Ec,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var s=31-xe(a),i=1<<s;r[s]=-1,a&=~i}0!==n&&Me(e,n,t)}function Zc(){return!!(6&pc)||(Ru(0,!1),!1)}function eu(){if(null!==fc){if(0===gc)var e=fc.return;else Na=ka=null,ii(e=fc),os=null,ls=0,e=fc;for(;null!==e;)fl(e.alternate,e),e=e.return;fc=null}}function tu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,_d(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),$c=0,eu(),mc=e,fc=n=$r(e.current,null),vc=t,gc=0,bc=null,yc=!1,xc=Ce(e,t),wc=!1,Cc=Sc=jc=Ec=Nc=kc=0,Ac=Tc=null,Lc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-xe(r),s=1<<a;t|=e[a],r&=~s}return _c=t,Ar(),n}function nu(e,t){Hs=null,P.H=fo,t===Xa||t===Za?(t=ss(),gc=3):t===Ja?(t=ss(),gc=4):gc=t===Io?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,bc=t,null===fc&&(kc=1,So(e,Vr(t,e.current)))}function ru(){var e=Is.current;return null===e||((4194048&vc)===vc?null===Ms:!!((62914560&vc)===vc||536870912&vc)&&e===Ms)}function au(){var e=P.H;return P.H=fo,null===e?fo:e}function su(){var e=P.A;return P.A=dc,e}function iu(){kc=4,yc||(4194048&vc)!==vc&&null!==Is.current||(xc=!0),!(134217727&Nc)&&!(134217727&Ec)||null===mc||Jc(mc,vc,Sc,!1)}function ou(e,t,n){var r=pc;pc|=2;var a=au(),s=su();mc===e&&vc===t||(Oc=null,tu(e,t)),t=!1;var i=kc;e:for(;;)try{if(0!==gc&&null!==fc){var o=fc,l=bc;switch(gc){case 8:eu(),i=6;break e;case 3:case 2:case 9:case 6:null===Is.current&&(t=!0);var c=gc;if(gc=0,bc=null,hu(e,o,l,c),n&&xc){i=0;break e}break;default:c=gc,gc=0,bc=null,hu(e,o,l,c)}}lu(),i=kc;break}catch(t){nu(e,t)}return t&&e.shellSuspendCounter++,Na=ka=null,pc=r,P.H=a,P.A=s,null===fc&&(mc=null,vc=0,Ar()),i}function lu(){for(;null!==fc;)uu(fc)}function cu(){for(;null!==fc&&!ie();)uu(fc)}function uu(e){var t=il(e.alternate,e,_c);e.memoizedProps=e.pendingProps,null===t?pu(e):fc=t}function du(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Go(n,t,t.pendingProps,t.type,void 0,vc);break;case 11:t=Go(n,t,t.pendingProps,t.type.render,t.ref,vc);break;case 5:ii(t);default:fl(n,t),t=il(n,t=fc=Br(t,_c),_c)}e.memoizedProps=e.pendingProps,null===t?pu(e):fc=t}function hu(e,t,n,r){Na=ka=null,ii(t),os=null,ls=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Ta(t,n,a,!0),null!==(n=Is.current)){switch(n.tag){case 31:case 13:return null===Ms?iu():null===n.alternate&&0===kc&&(kc=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===es?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Nu(e,r,a)),!1;case 22:return n.flags|=65536,r===es?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Nu(e,r,a)),!1}throw Error(i(435,n.tag))}return Nu(e,r,a),iu(),!1}if(da)return null!==(t=Is.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ma&&wa(Vr(e=Error(i(422),{cause:r}),n))):(r!==ma&&wa(Vr(t=Error(i(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=Vr(r,n),ws(e,a=To(e.stateNode,r,a)),4!==kc&&(kc=2)),!1;var s=Error(i(520),{cause:r});if(s=Vr(s,n),null===Tc?Tc=[s]:Tc.push(s),4!==kc&&(kc=2),null===t)return!0;r=Vr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,ws(n,e=To(n.stateNode,r,e)),!1;case 1:if(t=n.type,s=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===s||"function"!=typeof s.componentDidCatch||null!==Rc&&Rc.has(s))))return n.flags|=65536,a&=-a,n.lanes|=a,Lo(a=Ao(a),e,n,r),ws(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,vc))return kc=1,So(e,Vr(n,e.current)),void(fc=null)}catch(t){if(null!==a)throw fc=a,t;return kc=1,So(e,Vr(n,e.current)),void(fc=null)}32768&t.flags?(da||1===r?e=!0:xc||536870912&vc?e=!1:(yc=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=Is.current)&&13===r.tag&&(r.flags|=16384)),mu(t,e)):pu(t)}function pu(e){var t=e;do{if(32768&t.flags)return void mu(t,yc);e=t.return;var n=pl(t.alternate,t,_c);if(null!==n)return void(fc=n);if(null!==(t=t.sibling))return void(fc=t);fc=t=e}while(null!==t);0===kc&&(kc=5)}function mu(e,t){do{var n=ml(e.alternate,e);if(null!==n)return n.flags&=32767,void(fc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(fc=e);fc=e=n}while(null!==e);kc=6,fc=null}function fu(e,t,n,r,a,s,o,l,c){e.cancelPendingCommit=null;do{xu()}while(0!==Dc);if(6&pc)throw Error(i(327));if(null!==t){if(t===e.current)throw Error(i(177));if(s=t.lanes|t.childLanes,function(e,t,n,r,a,s){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-xe(n),d=1<<u;o[u]=0,l[u]=-1;var h=c[u];if(null!==h)for(c[u]=null,u=0;u<h.length;u++){var p=h[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Me(e,r,0),0!==s&&0===a&&0!==e.tag&&(e.suspendedLanes|=s&~(i&~t))}(e,n,s|=Tr,o,l,c),e===mc&&(fc=mc=null,vc=0),Uc=t,Fc=e,$c=n,Bc=s,Hc=a,zc=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(he,function(){return wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=P.T,P.T=null,a=O.p,O.p=2,o=pc,pc|=4;try{!function(e,t){if(e=e.containerInfo,md=yh,ar(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var m;h!==n||0!==a&&3!==h.nodeType||(l=o+a),h!==s||0!==r&&3!==h.nodeType||(c=o+r),3===h.nodeType&&(o+=h.nodeValue.length),null!==(m=h.firstChild);)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++u===a&&(l=o),p===s&&++d===r&&(c=o),null!==(m=h.nextSibling))break;p=(h=p).parentNode}h=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(fd={focusedElem:e,selectionRange:n},yh=!1,Ml=t;null!==Ml;)if(e=(t=Ml).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ml=e;else for(;null!==Ml;){switch(s=(t=Ml).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(a=e[n]).ref.impl=a.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==s){e=void 0,n=t,a=s.memoizedProps,s=s.memoizedState,r=n.stateNode;try{var f=ko(n.type,a);e=r.getSnapshotBeforeUpdate(f,s),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){ku(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Td(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Td(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(i(163))}if(null!==(e=t.sibling)){e.return=t.return,Ml=e;break}Ml=t.return}}(e,t)}finally{pc=o,O.p=a,P.T=r}}Dc=1,vu(),gu(),bu()}}function vu(){if(1===Dc){Dc=0;var e=Fc,t=Uc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=P.T,P.T=null;var r=O.p;O.p=2;var a=pc;pc|=4;try{Gl(t,e);var s=fd,i=rr(e.containerInfo),o=s.focusedElem,l=s.selectionRange;if(i!==o&&o&&o.ownerDocument&&nr(o.ownerDocument.documentElement,o)){if(null!==l&&ar(o)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(u,o.value.length);else{var d=o.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),m=o.textContent.length,f=Math.min(l.start,m),v=void 0===l.end?f:Math.min(l.end,m);!p.extend&&f>v&&(i=v,v=f,f=i);var g=tr(o,f),b=tr(o,v);if(g&&b&&(1!==p.rangeCount||p.anchorNode!==g.node||p.anchorOffset!==g.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var y=d.createRange();y.setStart(g.node,g.offset),p.removeAllRanges(),f>v?(p.addRange(y),p.extend(b.node,b.offset)):(y.setEnd(b.node,b.offset),p.addRange(y))}}}}for(d=[],p=o;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof o.focus&&o.focus(),o=0;o<d.length;o++){var x=d[o];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}yh=!!md,fd=md=null}finally{pc=a,O.p=r,P.T=n}}e.current=t,Dc=2}}function gu(){if(2===Dc){Dc=0;var e=Fc,t=Uc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=P.T,P.T=null;var r=O.p;O.p=2;var a=pc;pc|=4;try{Pl(e,t.alternate,t)}finally{pc=a,O.p=r,P.T=n}}Dc=3}}function bu(){if(4===Dc||3===Dc){Dc=0,oe();var e=Fc,t=Uc,n=$c,r=zc;10256&t.subtreeFlags||10256&t.flags?Dc=5:(Dc=0,Uc=Fc=null,yu(e,e.pendingLanes));var a=e.pendingLanes;if(0===a&&(Rc=null),De(n),t=t.stateNode,be&&"function"==typeof be.onCommitFiberRoot)try{be.onCommitFiberRoot(ge,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=P.T,a=O.p,O.p=2,P.T=null;try{for(var s=e.onRecoverableError,i=0;i<r.length;i++){var o=r[i];s(o.value,{componentStack:o.stack})}}finally{P.T=t,O.p=a}}3&$c&&xu(),Ou(e),a=e.pendingLanes,261930&n&&42&a?e===Gc?qc++:(qc=0,Gc=e):qc=0,Ru(0,!1)}}function yu(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,$a(t))}function xu(){return vu(),gu(),bu(),wu()}function wu(){if(5!==Dc)return!1;var e=Fc,t=Bc;Bc=0;var n=De($c),r=P.T,a=O.p;try{O.p=32>n?32:n,P.T=null,n=Hc,Hc=null;var s=Fc,o=$c;if(Dc=0,Uc=Fc=null,$c=0,6&pc)throw Error(i(331));var l=pc;if(pc|=4,lc(s.current),ec(s,s.current,o,n),pc=l,Ru(0,!1),be&&"function"==typeof be.onPostCommitFiberRoot)try{be.onPostCommitFiberRoot(ge,s)}catch(e){}return!0}finally{O.p=a,P.T=r,yu(e,t)}}function _u(e,t,n){t=Vr(n,t),null!==(e=ys(e,t=To(e.stateNode,t,2),2))&&(Ie(e,2),Ou(e))}function ku(e,t,n){if(3===e.tag)_u(e,e,n);else for(;null!==t;){if(3===t.tag){_u(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Rc||!Rc.has(r))){e=Vr(n,e),null!==(r=ys(t,n=Ao(2),2))&&(Lo(n,r,t,e),Ie(r,2),Ou(r));break}}t=t.return}}function Nu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(wc=!0,a.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mc===e&&(vc&n)===n&&(4===kc||3===kc&&(62914560&vc)===vc&&300>le()-Ic?!(2&pc)&&tu(e,0):jc|=n,Cc===vc&&(Cc=0)),Ou(e)}function ju(e,t){0===t&&(t=Ae()),null!==(e=Mr(e,t))&&(Ie(e,t),Ou(e))}function Su(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ju(e,n)}function Cu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),ju(e,n)}var Tu=null,Au=null,Lu=!1,Iu=!1,Mu=!1,Pu=0;function Ou(e){e!==Au&&null===e.next&&(null===Au?Tu=Au=e:Au=Au.next=e),Iu=!0,Lu||(Lu=!0,Nd(function(){6&pc?ae(ue,Du):Fu()}))}function Ru(e,t){if(!Mu&&Iu){Mu=!0;do{for(var n=!1,r=Tu;null!==r;){if(!t)if(0!==e){var a=r.pendingLanes;if(0===a)var s=0;else{var i=r.suspendedLanes,o=r.pingedLanes;s=(1<<31-xe(42|e)+1)-1,s=201326741&(s&=a&~(i&~o))?201326741&s|1:s?2|s:0}0!==s&&(n=!0,Bu(r,s))}else s=vc,!(3&(s=Se(r,r===mc?s:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ce(r,s)||(n=!0,Bu(r,s));r=r.next}}while(n);Mu=!1}}function Du(){Fu()}function Fu(){Iu=Lu=!1;var e,t=0;0!==Pu&&((e=window.event)&&"popstate"===e.type?e!==xd&&(xd=e,1):(xd=null,0))&&(t=Pu);for(var n=le(),r=null,a=Tu;null!==a;){var s=a.next,i=Uu(a,n);0===i?(a.next=null,null===r?Tu=s:r.next=s,null===s&&(Au=r)):(r=a,(0!==t||3&i)&&(Iu=!0)),a=s}0!==Dc&&5!==Dc||Ru(t,!1),0!==Pu&&(Pu=0)}function Uu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,s=-62914561&e.pendingLanes;0<s;){var i=31-xe(s),o=1<<i,l=a[i];-1===l?0!==(o&n)&&0===(o&r)||(a[i]=Te(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}if(n=vc,n=Se(e,e===(t=mc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===gc||9===gc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ce(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),De(n)){case 2:case 8:n=de;break;case 32:default:n=he;break;case 268435456:n=me}return r=$u.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function $u(e,t){if(0!==Dc&&5!==Dc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=vc;return 0===(r=Se(e,e===mc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Kc(e,r,t),Uu(e,le()),null!=e.callbackNode&&e.callbackNode===n?$u.bind(null,e):null)}function Bu(e,t){if(xu())return null;Kc(e,t,!0)}function Hu(){if(0===Pu){var e=za;0===e&&(e=ke,!(261888&(ke<<=1))&&(ke=256)),Pu=e}return Pu}function zu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Lt(""+e)}function qu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Gu=0;Gu<Nr.length;Gu++){var Wu=Nr[Gu];Er(Wu.toLowerCase(),"on"+(Wu[0].toUpperCase()+Wu.slice(1)))}Er(vr,"onAnimationEnd"),Er(gr,"onAnimationIteration"),Er(br,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(yr,"onTransitionRun"),Er(xr,"onTransitionStart"),Er(wr,"onTransitionCancel"),Er(_r,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Vu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yu));function Ku(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var o=r[i],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==s&&a.isPropagationStopped())break e;s=o,a.currentTarget=c;try{s(a)}catch(e){jr(e)}a.currentTarget=null,s=l}else for(i=0;i<r.length;i++){if(l=(o=r[i]).instance,c=o.currentTarget,o=o.listener,l!==s&&a.isPropagationStopped())break e;s=o,a.currentTarget=c;try{s(a)}catch(e){jr(e)}a.currentTarget=null,s=l}}}}function Qu(e,t){var n=t[qe];void 0===n&&(n=t[qe]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Xu(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Ju="_reactListening"+Math.random().toString(36).slice(2);function Zu(e){if(!e[Ju]){e[Ju]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Vu.has(t)||Xu(t,!1,e),Xu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ju]||(t[Ju]=!0,Xu("selectionchange",!1,t))}}function ed(e,t,n,r){switch(jh(t)){case 2:var a=xh;break;case 8:a=wh;break;default:a=_h}n=a.bind(null,t,n,e),a=void 0,!Ht||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function td(e,t,n,r,a){var s=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var o=r.stateNode.containerInfo;if(o===a)break;if(4===i)for(i=r.return;null!==i;){var c=i.tag;if((3===c||4===c)&&i.stateNode.containerInfo===a)return;i=i.return}for(;null!==o;){if(null===(i=Qe(o)))return;if(5===(c=i.tag)||6===c||26===c||27===c){r=s=i;continue e}o=o.parentNode}}r=r.return}Ut(function(){var r=s,a=Pt(n),i=[];e:{var o=kr.get(e);if(void 0!==o){var c=nn,u=e;switch(e){case"keypress":if(0===Vt(n))break e;case"keydown":case"keyup":c=bn;break;case"focusin":u="focus",c=cn;break;case"focusout":u="blur",c=cn;break;case"beforeblur":case"afterblur":c=cn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=on;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=xn;break;case vr:case gr:case br:c=un;break;case _r:c=wn;break;case"scroll":case"scrollend":c=an;break;case"wheel":c=_n;break;case"copy":case"cut":case"paste":c=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=yn;break;case"toggle":case"beforetoggle":c=kn}var d=!!(4&t),h=!d&&("scroll"===e||"scrollend"===e),p=d?null!==o?o+"Capture":null:o;d=[];for(var m,f=r;null!==f;){var v=f;if(m=v.stateNode,5!==(v=v.tag)&&26!==v&&27!==v||null===m||null===p||null!=(v=$t(f,p))&&d.push(nd(f,v,m)),h)break;f=f.return}0<d.length&&(o=new c(o,u,null,n,a),i.push({event:o,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===Mt||!(u=n.relatedTarget||n.fromElement)||!Qe(u)&&!u[ze])&&(c||o)&&(o=a.window===a?a:(o=a.ownerDocument)?o.defaultView||o.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Qe(u):null)&&(h=l(u),d=u.tag,u!==h||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=on,v="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(d=yn,v="onPointerLeave",p="onPointerEnter",f="pointer"),h=null==c?o:Je(c),m=null==u?o:Je(u),(o=new d(v,f+"leave",c,n,a)).target=h,o.relatedTarget=m,v=null,Qe(a)===r&&((d=new d(p,f+"enter",u,n,a)).target=m,d.relatedTarget=h,v=d),h=v,c&&u)e:{for(d=ad,f=u,m=0,v=p=c;v;v=d(v))m++;v=0;for(var g=f;g;g=d(g))v++;for(;0<m-v;)p=d(p),m--;for(;0<v-m;)f=d(f),v--;for(;m--;){if(p===f||null!==f&&p===f.alternate){d=p;break e}p=d(p),f=d(f)}d=null}else d=null;null!==c&&sd(i,o,c,d,!1),null!==u&&null!==h&&sd(i,h,u,d,!0)}if("select"===(c=(o=r?Je(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===c&&"file"===o.type)var b=Bn;else if(On(o))if(Hn)b=Xn;else{b=Kn;var y=Vn}else!(c=o.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type?r&&Ct(r.elementType)&&(b=Bn):b=Qn;switch(b&&(b=b(e,r))?Rn(i,b,n,a):(y&&y(e,o,r),"focusout"===e&&r&&"number"===o.type&&null!=r.memoizedProps.value&&xt(o,"number",o.value)),y=r?Je(r):window,e){case"focusin":(On(y)||"true"===y.contentEditable)&&(ir=y,or=r,lr=null);break;case"focusout":lr=or=ir=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,ur(i,n,a);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":ur(i,n,a)}var x;if(En)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Mn?Ln(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Cn&&"ko"!==n.locale&&(Mn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Mn&&(x=Yt()):(Gt="value"in(qt=a)?qt.value:qt.textContent,Mn=!0)),0<(y=rd(r,w)).length&&(w=new hn(w,e,null,n,a),i.push({event:w,listeners:y}),(x||null!==(x=In(n)))&&(w.data=x))),(x=Sn?function(e,t){switch(e){case"compositionend":return In(t);case"keypress":return 32!==t.which?null:(An=!0,Tn);case"textInput":return(e=t.data)===Tn&&An?null:e;default:return null}}(e,n):function(e,t){if(Mn)return"compositionend"===e||!En&&Ln(e,t)?(e=Yt(),Wt=Gt=qt=null,Mn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(w=rd(r,"onBeforeInput")).length&&(y=new hn("onBeforeInput","beforeinput",null,n,a),i.push({event:y,listeners:w}),y.data=x),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var s=zu((a[He]||null).action),i=r.submitter;i&&null!==(t=(t=i[He]||null)?zu(t.formAction):i.getAttribute("formAction"))&&(s=t,i=null);var o=new nn("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Pu){var e=i?qu(a,i):new FormData(a);eo(n,{pending:!0,data:e,method:a.method,action:s},null,e)}}else"function"==typeof s&&(o.preventDefault(),e=i?qu(a,i):new FormData(a),eo(n,{pending:!0,data:e,method:a.method,action:s},s,e))},currentTarget:a}]})}}(i,e,r,n,a)}Ku(i,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,s=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===s||(null!=(a=$t(e,n))&&r.unshift(nd(e,a,s)),null!=(a=$t(e,t))&&r.push(nd(e,a,s))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sd(e,t,n,r,a){for(var s=t._reactName,i=[];null!==n&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(o=o.tag,null!==l&&l===r)break;5!==o&&26!==o&&27!==o||null===c||(l=c,a?null!=(c=$t(n,s))&&i.unshift(nd(n,c,l)):a||null!=(c=$t(n,s))&&i.push(nd(n,c,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var id=/\r\n?/g,od=/\u0000|\uFFFD/g;function ld(e){return("string"==typeof e?e:""+e).replace(id,"\n").replace(od,"")}function cd(e,t){return t=ld(t),ld(e)===t}function ud(e,t,n,r,a,s){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||Nt(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&Nt(e,""+r);break;case"className":ct(e,"class",r);break;case"tabIndex":ct(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ct(e,n,r);break;case"style":St(e,r,s);break;case"data":if("object"!==t){ct(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Lt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof s&&("formAction"===n?("input"!==t&&ud(e,t,"name",a.name,a,null),ud(e,t,"formEncType",a.formEncType,a,null),ud(e,t,"formMethod",a.formMethod,a,null),ud(e,t,"formTarget",a.formTarget,a,null)):(ud(e,t,"encType",a.encType,a,null),ud(e,t,"method",a.method,a,null),ud(e,t,"target",a.target,a,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Lt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=It);break;case"onScroll":null!=r&&Qu("scroll",e);break;case"onScrollEnd":null!=r&&Qu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Lt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Qu("beforetoggle",e),Qu("toggle",e),lt(e,"popover",r);break;case"xlinkActuate":ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ut(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ut(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ut(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ut(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":lt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&lt(e,n=Tt.get(n)||n,r)}}function dd(e,t,n,r,a,s){switch(n){case"style":St(e,r,s);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(i(60));e.innerHTML=n}}break;case"children":"string"==typeof r?Nt(e,r):("number"==typeof r||"bigint"==typeof r)&&Nt(e,""+r);break;case"onScroll":null!=r&&Qu("scroll",e);break;case"onScrollEnd":null!=r&&Qu("scrollend",e);break;case"onClick":null!=r&&(e.onclick=It);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(s=null!=(s=e[He]||null)?s[n]:null)&&e.removeEventListener(t,s,a),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):lt(e,n,r):("function"!=typeof s&&null!==s&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qu("error",e),Qu("load",e);var r,a=!1,s=!1;for(r in n)if(n.hasOwnProperty(r)){var o=n[r];if(null!=o)switch(r){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ud(e,t,r,o,n,null)}}return s&&ud(e,t,"srcSet",n.srcSet,n,null),void(a&&ud(e,t,"src",n.src,n,null));case"input":Qu("invalid",e);var l=r=o=s=null,c=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":s=d;break;case"type":o=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(i(137,t));break;default:ud(e,t,a,d,n,null)}}return void yt(e,r,l,c,u,o,s,!1);case"select":for(s in Qu("invalid",e),a=o=r=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":r=l;break;case"defaultValue":o=l;break;case"multiple":a=l;default:ud(e,t,s,l,n,null)}return t=r,n=o,e.multiple=!!a,void(null!=t?wt(e,!!a,t,!1):null!=n&&wt(e,!!a,n,!0));case"textarea":for(o in Qu("invalid",e),r=s=a=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":a=l;break;case"defaultValue":s=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(i(91));break;default:ud(e,t,o,l,n,null)}return void kt(e,a,s,r);case"option":for(c in n)n.hasOwnProperty(c)&&null!=(a=n[c])&&("selected"===c?e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a:ud(e,t,c,a,n,null));return;case"dialog":Qu("beforetoggle",e),Qu("toggle",e),Qu("cancel",e),Qu("close",e);break;case"iframe":case"object":Qu("load",e);break;case"video":case"audio":for(a=0;a<Yu.length;a++)Qu(Yu[a],e);break;case"image":Qu("error",e),Qu("load",e);break;case"details":Qu("toggle",e);break;case"embed":case"source":case"link":Qu("error",e),Qu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ud(e,t,u,a,n,null)}return;default:if(Ct(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(a=n[d])&&dd(e,t,d,a,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(a=n[l])&&ud(e,t,l,a,n,null)}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,fd=null;function vd(e){return 9===e.nodeType?e:e.ownerDocument}function gd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function yd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var xd=null,wd="function"==typeof setTimeout?setTimeout:void 0,_d="function"==typeof clearTimeout?clearTimeout:void 0,kd="function"==typeof Promise?Promise:void 0,Nd="function"==typeof queueMicrotask?queueMicrotask:void 0!==kd?function(e){return kd.resolve(null).then(e).catch(Ed)}:wd;function Ed(e){setTimeout(function(){throw e})}function jd(e){return"head"===e}function Sd(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)||"/&"===n){if(0===r)return e.removeChild(a),void qh(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Fd(e.ownerDocument.documentElement);else if("head"===n){Fd(n=e.ownerDocument.head);for(var s=n.firstChild;s;){var i=s.nextSibling,o=s.nodeName;s[Ve]||"SCRIPT"===o||"STYLE"===o||"LINK"===o&&"stylesheet"===s.rel.toLowerCase()||n.removeChild(s),s=i}}else"body"===n&&Fd(e.ownerDocument.body);n=a}while(n);qh(t)}function Cd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Td(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Td(n),Ke(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Ad(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Md(e.nextSibling)))return null}return e}function Ld(e){return"$?"===e.data||"$~"===e.data}function Id(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Md(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Pd=null;function Od(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Md(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Rd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Dd(e,t,n){switch(t=vd(n),e){case"html":if(!(e=t.documentElement))throw Error(i(452));return e;case"head":if(!(e=t.head))throw Error(i(453));return e;case"body":if(!(e=t.body))throw Error(i(454));return e;default:throw Error(i(451))}}function Fd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ke(e)}var Ud=new Map,$d=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Hd=O.d;O.d={f:function(){var e=Hd.f(),t=Zc();return e||t},r:function(e){var t=Xe(e);null!==t&&5===t.tag&&"form"===t.type?no(t):Hd.r(e)},D:function(e){Hd.D(e),qd("dns-prefetch",e,null)},C:function(e,t){Hd.C(e,t),qd("preconnect",e,t)},L:function(e,t,n){Hd.L(e,t,n);var r=zd;if(r&&e&&t){var a='link[rel="preload"][as="'+gt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+gt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(a+='[imagesizes="'+gt(n.imageSizes)+'"]')):a+='[href="'+gt(e)+'"]';var s=a;switch(t){case"style":s=Wd(e);break;case"script":s=Kd(e)}Ud.has(s)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Ud.set(s,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(Yd(s))||"script"===t&&r.querySelector(Qd(s))||(hd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Hd.m(e,t);var n=zd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+gt(r)+'"][href="'+gt(e)+'"]',s=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Kd(e)}if(!Ud.has(s)&&(e=p({rel:"modulepreload",href:e},t),Ud.set(s,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Qd(s)))return}hd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Hd.X(e,t);var n=zd;if(n&&e){var r=Ze(n).hoistableScripts,a=Kd(e),s=r.get(a);s||((s=n.querySelector(Qd(a)))||(e=p({src:e,async:!0},t),(t=Ud.get(a))&&eh(e,t),et(s=n.createElement("script")),hd(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(a,s))}},S:function(e,t,n){Hd.S(e,t,n);var r=zd;if(r&&e){var a=Ze(r).hoistableStyles,s=Wd(e);t=t||"default";var i=a.get(s);if(!i){var o={loading:0,preload:null};if(i=r.querySelector(Yd(s)))o.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ud.get(s))&&Zd(e,n);var l=i=r.createElement("link");et(l),hd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Jd(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(s,i)}}},M:function(e,t){Hd.M(e,t);var n=zd;if(n&&e){var r=Ze(n).hoistableScripts,a=Kd(e),s=r.get(a);s||((s=n.querySelector(Qd(a)))||(e=p({src:e,async:!0,type:"module"},t),(t=Ud.get(a))&&eh(e,t),et(s=n.createElement("script")),hd(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(a,s))}}};var zd="undefined"==typeof document?null:document;function qd(e,t,n){var r=zd;if(r&&"string"==typeof t&&t){var a=gt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"==typeof n&&(a+='[crossorigin="'+n+'"]'),$d.has(a)||($d.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(hd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function Gd(e,t,n,r){var a,s,o,l,c=(c=W.current)?Bd(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Wd(n.href),(r=(n=Ze(c).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Wd(n.href);var u=Ze(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Yd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Ud.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ud.set(e,n),u||(a=c,s=e,o=n,l=d.state,a.querySelector('link[rel="preload"][as="style"]['+s+"]")?l.loading=1:(s=a.createElement("link"),l.preload=s,s.addEventListener("load",function(){return l.loading|=1}),s.addEventListener("error",function(){return l.loading|=2}),hd(s,"link",o),et(s),a.head.appendChild(s))))),t&&null===r)throw Error(i(528,""));return d}if(t&&null!==r)throw Error(i(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Kd(n),(r=(n=Ze(c).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Wd(e){return'href="'+gt(e)+'"'}function Yd(e){return'link[rel="stylesheet"]['+e+"]"}function Vd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Kd(e){return'[src="'+gt(e)+'"]'}function Qd(e){return"script[async]"+e}function Xd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+gt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),hd(r,"style",a),Jd(r,n.precedence,e),t.instance=r;case"stylesheet":a=Wd(n.href);var s=e.querySelector(Yd(a));if(s)return t.state.loading|=4,t.instance=s,et(s),s;r=Vd(n),(a=Ud.get(a))&&Zd(r,a),et(s=(e.ownerDocument||e).createElement("link"));var o=s;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),hd(s,"link",r),t.state.loading|=4,Jd(s,n.precedence,e),t.instance=s;case"script":return s=Kd(n.src),(a=e.querySelector(Qd(s)))?(t.instance=a,et(a),a):(r=n,(a=Ud.get(s))&&eh(r=p({},n),a),et(a=(e=e.ownerDocument||e).createElement("script")),hd(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(i(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Jd(r,n.precedence,e));return t.instance}function Jd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,s=a,i=0;i<r.length;i++){var o=r[i];if(o.dataset.precedence===t)s=o;else if(s!==a)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function eh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var th=null;function nh(e,t,n){if(null===th){var r=new Map,a=th=new Map;a.set(n,r)}else(r=(a=th).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var s=n[a];if(!(s[Ve]||s[Be]||"link"===e&&"stylesheet"===s.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==s.namespaceURI){var i=s.getAttribute(t)||"";i=e+i;var o=r.get(i);o?o.push(s):r.set(i,[s])}}return r}function rh(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function ah(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var sh=0;function ih(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)lh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var oh=null;function lh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,oh=new Map,t.forEach(ch,e),oh=null,ih.call(e))}function ch(e,t){if(!(4&t.state.loading)){var n=oh.get(e);if(n)var r=n.get(null);else{n=new Map,oh.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<a.length;s++){var i=a[s];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(a=t.instance).getAttribute("data-precedence"),(s=n.get(i)||r)===r&&n.set(null,a),n.set(i,a),this.count++,r=ih.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),s?s.parentNode.insertBefore(a,s.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var uh={$$typeof:w,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function dh(e,t,n,r,a,s,i,o,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=s,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function hh(e,t,n,r,a,s,i,o,l,c,u,d){return e=new dh(e,t,n,i,l,c,u,d,o),t=1,!0===s&&(t|=24),s=Fr(3,null,null,t),e.current=s,s.stateNode=e,(t=Ua()).refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:r,isDehydrated:n,cache:t},vs(s),e}function ph(e){return e?e=Rr:Rr}function mh(e,t,n,r,a,s){a=ph(a),null===r.context?r.context=a:r.pendingContext=a,(r=bs(t)).payload={element:n},null!==(s=void 0===s?null:s)&&(r.callback=s),null!==(n=ys(e,r,t))&&(Vc(n,0,t),xs(n,e,t))}function fh(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vh(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function gh(e){if(13===e.tag||31===e.tag){var t=Mr(e,67108864);null!==t&&Vc(t,0,67108864),vh(e,67108864)}}function bh(e){if(13===e.tag||31===e.tag){var t=Wc(),n=Mr(e,t=Re(t));null!==n&&Vc(n,0,t),vh(e,t)}}var yh=!0;function xh(e,t,n,r){var a=P.T;P.T=null;var s=O.p;try{O.p=2,_h(e,t,n,r)}finally{O.p=s,P.T=a}}function wh(e,t,n,r){var a=P.T;P.T=null;var s=O.p;try{O.p=8,_h(e,t,n,r)}finally{O.p=s,P.T=a}}function _h(e,t,n,r){if(yh){var a=kh(r);if(null===a)td(e,t,r,Nh,n),Oh(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Ch=Rh(Ch,e,t,n,r,a),!0;case"dragenter":return Th=Rh(Th,e,t,n,r,a),!0;case"mouseover":return Ah=Rh(Ah,e,t,n,r,a),!0;case"pointerover":var s=a.pointerId;return Lh.set(s,Rh(Lh.get(s)||null,e,t,n,r,a)),!0;case"gotpointercapture":return s=a.pointerId,Ih.set(s,Rh(Ih.get(s)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Oh(e,r),4&t&&-1<Ph.indexOf(e)){for(;null!==a;){var s=Xe(a);if(null!==s)switch(s.tag){case 3:if((s=s.stateNode).current.memoizedState.isDehydrated){var i=je(s.pendingLanes);if(0!==i){var o=s;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var l=1<<31-xe(i);o.entanglements[1]|=l,i&=~l}Ou(s),!(6&pc)&&(Pc=le()+500,Ru(0,!1))}}break;case 31:case 13:null!==(o=Mr(s,2))&&Vc(o,0,2),Zc(),vh(s,2)}if(null===(s=kh(r))&&td(e,t,r,Nh,n),s===a)break;a=s}null!==a&&r.stopPropagation()}else td(e,t,r,null,n)}}function kh(e){return Eh(e=Pt(e))}var Nh=null;function Eh(e){if(Nh=null,null!==(e=Qe(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(31===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Nh=e,null}function jh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ce()){case ue:return 2;case de:return 8;case he:case pe:return 32;case me:return 268435456;default:return 32}default:return 32}}var Sh=!1,Ch=null,Th=null,Ah=null,Lh=new Map,Ih=new Map,Mh=[],Ph="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Oh(e,t){switch(e){case"focusin":case"focusout":Ch=null;break;case"dragenter":case"dragleave":Th=null;break;case"mouseover":case"mouseout":Ah=null;break;case"pointerover":case"pointerout":Lh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ih.delete(t.pointerId)}}function Rh(e,t,n,r,a,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[a]},null!==t&&null!==(t=Xe(t))&&gh(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.pu
2sh(a),e)}function Dh(e){var t=Qe(e.target);if(null!==t){var n=l(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void Ue(e.priority,function(){bh(n)})}else if(31===t){if(null!==(t=u(n)))return e.blockedOn=t,void Ue(e.priority,function(){bh(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Fh(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=kh(e.nativeEvent);if(null!==n)return null!==(t=Xe(n))&&gh(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Mt=r,n.target.dispatchEvent(r),Mt=null,t.shift()}return!0}function Uh(e,t,n){Fh(e)&&n.delete(t)}function $h(){Sh=!1,null!==Ch&&Fh(Ch)&&(Ch=null),null!==Th&&Fh(Th)&&(Th=null),null!==Ah&&Fh(Ah)&&(Ah=null),Lh.forEach(Uh),Ih.forEach(Uh)}function Bh(e,t){e.blockedOn===t&&(e.blockedOn=null,Sh||(Sh=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,$h)))}var Hh=null;function zh(e){Hh!==e&&(Hh=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Hh===e&&(Hh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!=typeof r){if(null===Eh(r||n))continue;break}var s=Xe(n);null!==s&&(e.splice(t,3),t-=3,eo(s,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function qh(e){function t(t){return Bh(t,e)}null!==Ch&&Bh(Ch,e),null!==Th&&Bh(Th,e),null!==Ah&&Bh(Ah,e),Lh.forEach(t),Ih.forEach(t);for(var n=0;n<Mh.length;n++){var r=Mh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Mh.length&&null===(n=Mh[0]).blockedOn;)Dh(n),null===n.blockedOn&&Mh.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],s=n[r+1],i=a[He]||null;if("function"==typeof s)i||zh(n);else if(i){var o=null;if(s&&s.hasAttribute("formAction")){if(a=s,i=s[He]||null)o=i.formAction;else if(null!==Eh(a))continue}else o=i.action;"function"==typeof o?n[r+1]=o:(n.splice(r,3),r-=3),zh(n)}}}function Gh(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return a=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==a&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==a&&(a(),a=null)}}}function Wh(e){this._internalRoot=e}function Yh(e){this._internalRoot=e}Yh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));mh(t.current,Wc(),e,t,null,null)},Yh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),Zc(),t[ze]=null}},Yh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mh.length&&0!==t&&t<Mh[n].priority;n++);Mh.splice(n,0,e),0===n&&Dh(e)}};var Vh=a.version;if("19.2.1"!==Vh)throw Error(i(527,Vh,"19.2.1"));O.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(r=a.return)){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return d(a),e;if(s===r)return d(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var o=!1,c=a.child;c;){if(c===n){o=!0,n=a,r=s;break}if(c===r){o=!0,r=a,n=s;break}c=c.sibling}if(!o){for(c=s.child;c;){if(c===n){o=!0,n=s,r=a;break}if(c===r){o=!0,r=s,n=a;break}c=c.sibling}if(!o)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?h(e):null)?null:e.stateNode};var Kh={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qh.isDisabled&&Qh.supportsFiber)try{ge=Qh.inject(Kh),be=Qh}catch(e){}}t.createRoot=function(e,t){if(!o(e))throw Error(i(299));var n=!1,r="",a=No,s=Eo,l=jo;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=hh(e,1,!1,null,0,n,r,null,a,s,l,Gh),e[ze]=t.current,Zu(e),new Wh(t)},t.hydrateRoot=function(e,t,n){if(!o(e))throw Error(i(299));var r=!1,a="",s=No,l=Eo,c=jo,u=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=hh(e,1,!0,t,0,r,a,u,s,l,c,Gh)).context=ph(null),n=t.current,(a=bs(r=Re(r=Wc()))).callback=null,ys(n,a,r),n=r,t.current.lanes=n,Ie(t,n),Ou(t),e[ze]=t.current,Zu(e),new Yh(t)}},1340:e=>{e.exports={}},1480:e=>{e.exports={}},1615:e=>{e.exports={}},1666:(e,t,n)=>{var r;function a(e){function n(){if(n.enabled){var e=n,a=+new Date,s=a-(r||a);e.diff=s,e.prev=r,e.curr=a,r=a;for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var l=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var a=t.formatters[r];if("function"==typeof a){var s=i[l];n=a.call(e,s),i.splice(l,1),l--}return n}),t.formatArgs.call(e,i),(n.log||t.log||console.log.bind(console)).apply(e,i)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}
2(t=e.exports=a.debug=a.default=a).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,a=0;a<r;a++)n[a]&&("-"===(e=n[a].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(4005),t.names=[],t.skips=[],t.formatters={}},1729:(e,t,n)=>{var r=n(5149)("jsonp");e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),t||(t={});var i,o,l=t.prefix||"__jp",c=t.name||l+a++,u=t.param||"callback",d=null!=t.timeout?t.timeout:6e4,h=encodeURIComponent,p=document.getElementsByTagName("script")[0]||document.head;function m(){i.parentNode&&i.parentNode.removeChild(i),window[c]=s,o&&clearTimeout(o)}return d&&(o=setTimeout(function(){m(),n&&n(new Error("Timeout"))},d)),window[c]=function(e){r("jsonp got",e),m(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+u+"="+h(c)).replace("?&","?"),r('jsonp req "%s"',e),(i=document.createElement("script")).src=e,p.parentNode.insertBefore(i,p),function(){window[c]&&m()}};var a=0;function s(){}},1760:e=>{e.exports={}},2061:e=>{e.exports={}},2100:e=>{e.exports={}},2124:e=>{e.exports={}},2166:e=>{e.exports={}},2170:e=>{e.exports={}},2244:e=>{e.exports={}},2308:e=>{e.exports={}},2564:e=>{e.exports={}},2588:e=>{e.exports={}},2590:e=>{e.exports={}},2606:e=>{e.exports={}},2636:e=>{e.exports={}},2638:e=>{e.exports={}},2682:e=>{e.exports={}},2849:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},i=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,a=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!s)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(a)return a(e,n).value}return e[n]};e.exports=function e(){var t,n,r,a,c,u,d=arguments[0],h=1,p=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=l(d,n),d!==(a=l(t,n))&&(m&&a&&(i(a)||(c=s(a)))?(c?(c=!1,u=r&&s(r)?r:[]):u=r&&i(r)?r:{},o(d,{name:n,newValue:e(m,u,a)})):void 0!==a&&o(d,{name:n,newValue:a}));return d}},3244:e=>{e.exports={}},3361:e=>{e.exports={}},3384:e=>{e.exports={}},3396:e=>{e.exports={}},3476:e=>{e.exports={}},3720:e=>{e.exports={}},3769:e=>{e.exports={}},3820:e=>{e.exports={}},3850:e=>{e.exports={}},4005:e=>{var t=1e3,n=60*t,r=60*n,a=24*r;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,i){i=i||{};var o,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(s){var i=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return i*a;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(e);if("number"===l&&!1===isNaN(e))return i.long?s(o=e,a,"day")||s(o,r,"hour")||s(o,n,"minute")||s(o,t,"second")||o+" ms":function(e){return e>=a?Math.round(e/a)+"d":e>=r?Math.round(e/r)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},4082:e=>{e.exports={}},4178:e=>{e.exports={}},4216:e=>{e.exports={}},4368:e=>{e.exports={}},4392:e=>{e.exports={}},4400:e=>{e.exports={}},4413:e=>{e.exports={}},4464:e=>{e.exports={}},4477:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<s(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var o=2*(r+1)-1,l=e[o],c=o+1,u=e[c];if(0>s(l,n))c<a&&0>s(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[o]=n,r=o);else{if(!(c<a&&0>s(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,p=3,m=!1,f=!1,v=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function _(e){if(v=!1,w(e),!f)if(null!==r(c))f=!0,N||(N=!0,k());else{var t=r(u);null!==t&&I(_,t.startTime-e)}}var k,N=!1,E=-1,j=5,S=-1;function C(){return!(!g&&t.unstable_now()-S<j)}function T(){if(g=!1,N){var e=t.unstable_now();S=e;var n=!0;try{e:{f=!1,v&&(v=!1,y(E),E=-1),m=!0;var s=p;try{t:{for(w(e),h=r(c);null!==h&&!(h.expirationTime>e&&C());){var i=h.callback;if("function"==typeof i){h.callback=null,p=h.priorityLevel;var o=i(h.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof o){h.callback=o,w(e),n=!0;break t}h===r(c)&&a(c),w(e)}else a(c);h=r(c)}if(null!==h)n=!0;else{var l=r(u);null!==l&&I(_,l.startTime-e),n=!1}}break e}finally{h=null,p=s,m=!1}n=void 0}}finally{n?k():N=!1}}}if("function"==typeof x)k=function(){x(T)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,L=A.port2;A.port1.onmessage=T,k=function(){L.postMessage(null)}}else k=function(){b(T,0)};function I(e,n){E=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){g=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,a,s){var i=t.unstable_now();switch(s="object"==typeof s&&null!==s&&"number"==typeof(s=s.delay)&&0<s?i+s:i,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>i?(e.sortIndex=s,n(u,e),null===r(c)&&e===r(u)&&(v?(y(E),E=-1):v=!0,I(_,s-i))):(e.sortIndex=o,n(c,e),f||m||(f=!0,N||(N=!0,k()))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},4534:e=>{e.exports={}},4606:e=>{e.exports={}}
2,4848:(e,t,n)=>{"use strict";e.exports=n(9698)},4880:e=>{e.exports={}},4916:e=>{e.exports={}},4945:e=>{e.exports={}},5043:e=>{e.exports={}},5077:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,h=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function m(){var e={line:d,column:h};return function(t){return t.position=new f(e),b(),t}}function f(e){this.start=e,this.end={line:d,column:h},this.source=l.source}function v(t){var n=new Error(l.source+":"+d+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=h,n.source=e,!l.silent)throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){g(r)}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return h+=2,p(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function w(){var e=m(),n=g(a);if(n){if(x(),!g(s))return v("property missing ':'");var r=g(i),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return g(o),l}}return f.prototype.content=e,b(),function(){var e,t=[];for(y(t);e=w();)!1!==e&&(t.push(e),y(t));return t}()}},5140:e=>{e.exports={}},5149:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(1666)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(s=a))}),e.splice(s,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},5229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),a=n(8917);function s(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,a.camelCase)(e,t)]=r)}),n):n}s.default=s,e.exports=s},5338:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1247)},5462:e=>{e.exports={}},5820:e=>{e.exports={}},5836:e=>{e.exports={}},5935:e=>{e.exports={}},6006:e=>{e.exports={}},6144:e=>{e.exports={}},6221:(e,t,n)=>{"use strict";var r=n(6540);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var i={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal"),l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(a(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,i.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&i.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=c(n,t.crossOrigin),a="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?i.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:s}):"script"===n&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&i.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"str
2ing"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else i.d.m(e)},t.requestFormReset=function(e){i.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.2.1"},6316:e=>{e.exports={}},6388:e=>{e.exports={}},6404:e=>{e.exports={}},6424:e=>{e.exports={}},6515:e=>{e.exports={}},6528:e=>{e.exports={}},6540:(e,t,n)=>{"use strict";e.exports=n(9869)},6552:e=>{e.exports={}},6744:e=>{e.exports={}},6912:e=>{e.exports={}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},7032:e=>{e.exports={}},7240:e=>{e.exports={}},7370:e=>{e.exports={}},7431:e=>{e.exports={}},7532:e=>{e.exports={}},7716:e=>{e.exports={}},8010:e=>{e.exports={}},8180:e=>{e.exports={}},8188:e=>{e.exports={}},8302:e=>{e.exports={}},8393:e=>{e.exports={}},8412:e=>{e.exports={}},8577:e=>{e.exports={}},8704:e=>{e.exports={}},8880:e=>{e.exports={}},8884:e=>{e.exports={}},8904:e=>{e.exports={}},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,a=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||a.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,l):e.replace(s,l)).replace(r,o))}},9128:e=>{e.exports={}},9267:e=>{e.exports={}},9580:e=>{e.exports={}},9698:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(e,t,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),"key"in t)for(var s in r={},t)"key"!==s&&(r[s]=t[s]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:a,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=a,t.jsxs=a},9869:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),m=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function y(){}function x(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var w=x.prototype=new y;w.constructor=x,v(w,b.prototype),w.isPureReactComponent=!0;var _=Array.isArray;function k(){}var N={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function j(e,t,r){var a=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==a?a:null,props:r}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function A(e,t,a,s,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(o){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0;break;case h:return A((u=e._init)(e._payload),t,a,s,i)}}if(u)return i=i(e),u=""===s?"."+T(e,0):s,_(i)?(a="",null!=u&&(a=u.replace(C,"$&/")+"/"),A(i,t,a,"",function(e){return e})):null!=i&&(S(i)&&(l=i,c=a+(null==i.key||e&&e.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+u,i=j(l.type,c,l.props)),t.push(i)),1;u=0;var d,p=""===s?".":s+":";if(_(e))for(var f=0;f<e.length;f++)u+=A(s=e[f],t,a,o=p+T(s,f),i);else if("function"==typeof(f=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=m&&d[m]||d["@@iterator"])?d:null))for(e=f.call(e),f=0;!(s=e.next()).done;)u+=A(s=s.value,t,a,o=p+T(s,f++),i);else if("object"===o){if("function"==typeof e.then)return A(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,a,s,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function L(e,t,n){if(null==e)return e;var r=[],a=0;return A(e,r,"","",function(e){return t.call(n,e,a++)}),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},P={map:L,forEach:function(e,t,n){L(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return L(e,function(){t++}),t},toArray:function(e){return L(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=p,t.Children=P,t.Component=b,t.Fragment=a,t.Profiler=i,t.PureComponent=x,t.StrictMode=s,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return N.H.useMemoCache(e)}}
2,t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=v({},e.props),a=e.key;if(null!=t)for(s in void 0!==t.key&&(a=""+t.key),t)!E.call(t,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===t.ref||(r[s]=t[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var i=Array(s),o=0;o<s;o++)i[o]=arguments[o+2];r.children=i}return j(e.type,a,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},t.createElement=function(e,t,n){var r,a={},s=null;if(null!=t)for(r in void 0!==t.key&&(s=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var o=Array(i),l=0;l<i;l++)o[l]=arguments[l+2];a.children=o}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return j(e,s,a)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.T,n={};N.T=n;try{var r=e(),a=N.S;null!==a&&a(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,M)}catch(e){M(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),N.T=t}},t.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},t.use=function(e){return N.H.use(e)},t.useActionState=function(e,t,n){return N.H.useActionState(e,t,n)},t.useCallback=function(e,t){return N.H.useCallback(e,t)},t.useContext=function(e){return N.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return N.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return N.H.useEffect(e,t)},t.useEffectEvent=function(e){return N.H.useEffectEvent(e)},t.useId=function(){return N.H.useId()},t.useImperativeHandle=function(e,t,n){return N.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.H.useMemo(e,t)},t.useOptimistic=function(e,t){return N.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return N.H.useReducer(e,t,n)},t.useRef=function(e){return N.H.useRef(e)},t.useState=function(e){return N.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.H.useTransition()},t.version="19.2.1"},9982:(e,t,n)=>{"use strict";e.exports=n(4477)},9996:e=>{e.exports={}}},s={};function i(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return a[e].call(n.exports,n,n.exports,i),n.exports}i.m=a,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);i.r(a);var s={};e=e||[null,t({}),t([]),t(t)];for(var o=2&r&&n;("object"==typeof o||"function"==typeof o)&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,i.d(a,s),a},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,n)=>(i.f[n](e,t),t),[])),i.u=e=>e+".components.js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="MotionComponents:",i.l=(e,t,a,s)=>{if(n[e])n[e].push(t);else{var o,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+a){o=d;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",i.nc&&o.setAttribute("nonce",i.nc),o.setAttribute("data-webpack",r+a),o.src=e),n[e]=[t];var h=(t,r)=>{o.onerror=o.onload=null,clearTimeout(p);var a=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach(e
2=>e(r)),t)return t(r)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=h.bind(null,o.onerror),o.onload=h.bind(null,o.onload),l&&document.head.appendChild(o)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={792:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise((n,a)=>r=e[t]=[n,a]);n.push(r[2]=a);var s=i.p+i.u(t),o=new Error;i.l(s,n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",o.name="ChunkLoadError",o.type=a,o.request=s,r[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,a,[s,o,l]=n,c=0;if(s.some(t=>0!==e[t])){for(r in o)i.o(o,r)&&(i.m[r]=o[r]);l&&l(i)}for(t&&t(n);c<s.length;c++)a=s[c],i.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=this.webpackChunkMotionComponents=this.webpackChunkMotionComponents||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o={};return(()=>{"use strict";i.r(o),i.d(o,{hydrateAllIslands:()=>Z_,hydrateAllSsrRoots:()=>J_,hydrateIsland:()=>X_});var e={};i.r(e),i.d(e,{boolean:()=>K,booleanish:()=>Q,commaOrSpaceSeparated:()=>te,commaSeparated:()=>ee,number:()=>J,overloadedBoolean:()=>X,spaceSeparated:()=>Z});var t={};i.r(t),i.d(t,{attentionMarkers:()=>In,contentInitial:()=>jn,disable:()=>Mn,document:()=>En,flow:()=>Cn,flowInitial:()=>Sn,insideSpan:()=>Ln,string:()=>Tn,text:()=>An});var n=i(6540),r=i.t(n,2),a=i(5338),s=i(4848);i(9267),i(1615);class l{static buildQueryString(e,t,n,r){const a=[];return e&&a.push(`status=${encodeURIComponent(e)}`),t&&t.length>0&&t.forEach((e,t)=>{a.push(`sort[${t}]=${encodeURIComponent(e.field)}:${e.order}`)}),n&&n.length>0&&n.forEach(e=>{a.push(`filters[${encodeURIComponent(e.field)}][${encodeURIComponent(e.operator)}]=${encodeURIComponent(e.value)}`)}),r&&r.length>0&&r.forEach((e,t)=>{a.push(`populate[${t}]=${encodeURIComponent(e)}`)}),a.join("&")}}const c={production:"https://sapi.motionapp.com",staging:"https://sapi-staging.motionapp.com",development:"http://localhost:1337"};const u=()=>"undefined"!=typeof window,d=()=>u()?window.location.href:"",h=()=>u()?window.location.hostname:"",p=e=>{if("string"==typeof e&&e.length>0){const t=new URL(e);if(t.pathname)return t.pathname}return u()?window.location.pathname:""},m=()=>u()?window.location.search:"",f=()=>u()?window.location.protocol:"https:",v=()=>u()?window.location.host:"",g=()=>{if("undefined"!=typeof process&&process.env){const e=process.env.ENABLE_PRODUCTION_MODE;if(void 0!==e)return"true"===e||"1"===e;const t="production";if("production"===t)return!0;if(t&&"production"!==t)return!1}const e=h();return"motionapp.com"===e||"runneth.com"===e},b=e=>{if(!u()||"undefined"==typeof localStorage)return null;try{return localStorage.getItem(e)}catch(e){return console.warn("localStorage.getItem failed:",e),null}},y=(e,t)=>{if(!u()||"undefined"==typeof localStorage)return!1;try{return localStorage.setItem(e,t),!0}catch(e){return console.warn("localStorage.setItem failed:",e),!1}},x={get cookie(){return u()&&"undefined"!=typeof document?document.cookie:""},get title(){return u()&&"undefined"!=typeof document?document.title:""},get readyState(){return u()&&"undefined"!=typeof document?document.readyState:"complete"},createElement:e=>u()&&"undefined"!=typeof document?document.createElement(e):null,querySelector:e=>u()&&"undefined"!=typeof document?document.querySelector(e):null,getElementById:e=>u()&&"undefined"!=typeof document?document.getElementById(e):null,addEventListener:(e,t)=>{u()&&"undefined"!=typeof document&&document.addEventListener(e,t)},removeEventListener:(e,t)=>{u()&&"undefined"!=typeof document&&document.removeEventListener(e,t)}},w={scrollTo:(e,t)=>{u()&&window.scrollTo(e,t)},get scrollY(){return u()?window.scrollY:0},addEventListener:(e,t,n)=>{u()&&window.addEventListener(e,t,n)},removeEventListener:(e,t)=>{u()&&window.removeEventListener(e,t)},get dataLayer(){return u()?(window.dataLayer||(window.dataLayer=[]),window.dataLayer):[]},setLocationHref:e=>{u()&&(window.location.href=e)}},_=e=>{return t=void 0,n=void 0,a=function*(){if(!u()||"undefined"==typeof navigator||!navigator.clipboard)return!1;try{return yield navigator.clipboard.writeText(e),!0}catch(e){return console.warn("navigator.clipboard.writeText failed:",e),!1}},new((r=void 0)||(r=Promise))(function(e,s){function i(e){try{l(a.next(e))}catch(e){s(e)}}function o(e){try{l(a.throw(e))}catch(e){s(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(t.value).then(i,o)}l((a=a.apply(t,n||[])).next())});var t,n,r,a},k=e=>{const t=null!=e?e:m();return new URLSearchParams(t)},N="motion-2-0.webflow.io",E=e=>e&&function(e){try{return!function(e){const t=e.toLowerCase();return!("localhost"===t||"127.0.0.1"===t||"[::1]"===t||"::1"===t||!(t.endsWith(".railway.internal")||t.endsWith(".internal")||t.endsWith(".local")||/^10\.\d+\.\d+\.\d+$/.test(t)||/^192\.168\.\d+\.\d+$/.test(t)||/^172\.(1[6-9]|2\d|3[0-1])\.\d+\.\d+$/.test(t)))}(new URL(e).hostname)}catch(e){return!1}}(e)?e.replace(/\/+$/,""):(()=>{var e;const t=v(),n=h(),r=f();if("motionapp.com"===n||"runneth.com"===n||"draft.motionapp.com"===n||"draft.runneth.com"===n)return c.production;if(n.endsWith(".motionapp.com")||n.endsWith(".runneth.com")||t===N||n===N)return c.staging;if(n)return`${r}//${n}:1337`;if("undefined"!=typeof process&&process.env){const t=(null!==(e=process.env.ENVIRONMENT_NAME)&&void 0!==e?e:"").toLowerCase();return"production"===t||"staging"===t||"development"===t?c[t]:c.staging}return c.development})();
2class j{static fetchAuthors(e){return t=this,n=void 0,a=function*(){const{baseUrl:t,status:n,slug:r,sortOptions:a=this.DEFAULT_SORT_OPTIONS,populateOptions:s=this.DEFAULT_POPULATE_OPTIONS}=e,i=[];r&&i.push({field:"slug",operator:"$eq",value:r});const o=`/api/authors?${l.buildQueryString(n,a,i.length>0?i:void 0,s)}`,c=`${t}${o}`;g()||console.log("apiPathAndQueryString",`${o}`);try{const e=yield fetch(c);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=yield e.json();return g()||console.log("returned:",t.data),t.data||[]}catch(e){throw console.error("Error fetching authors:",e),e instanceof Error?e:new Error("Failed to fetch authors")}},new((r=void 0)||(r=Promise))(function(e,s){function i(e){try{l(a.next(e))}catch(e){s(e)}}function o(e){try{l(a.throw(e))}catch(e){s(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(t.value).then(i,o)}l((a=a.apply(t,n||[])).next())});var t,n,r,a}}j.DEFAULT_SORT_OPTIONS=[{field:"name",order:"asc"}],j.DEFAULT_POPULATE_OPTIONS=["avatar"];class S{static getSlug(e,t,n){const r=null!=t?t:p(),a=null!=n?n:m();let s=new URLSearchParams(a).get("slug");const i=r.split("/"),o=i.indexOf(e);return o>-1&&(s=i.slice(o+1).join("/")),s}}const C=(e,t=1900)=>{const[r,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let n=null;return e?n=setTimeout(()=>{a(!0)},t):a(!1),()=>{n&&clearTimeout(n)}},[e,t]),r};i(8577),i(573);const T=({block:e})=>(0,s.jsx)("div",{className:"shared-h1-subhead-holder",children:(0,s.jsx)("p",{className:"shared-h1-subhead",children:e.h1subhead})});i(2588);const A=({block:e})=>{var t,r;const a=e.wistia_video_id,i=null!==(t=e.title)&&void 0!==t?t:"Video",o=null!==(r=e.padding_top)&&void 0!==r?r:"56.25%";return(0,n.useEffect)(()=>{if(!x.querySelector('script[src*="fast.wistia.com"]')){const e=x.createElement("script");if(e){e.src="https://fast.wistia.com/assets/external/E-v1.js",e.async=!0;const t=x.querySelector("body");t&&t.appendChild(e)}}},[]),a?(0,s.jsx)("div",{className:"shared-video-wistia",children:(0,s.jsx)("div",{className:"wistia_responsive_padding",style:{paddingTop:o},children:(0,s.jsx)("div",{className:"wistia_responsive_wrapper",children:(0,s.jsx)("iframe",{src:`https://fast.wistia.net/embed/iframe/${a}?seo=false&videoFoam=true&muted=true`,title:i,allow:"autoplay; fullscreen",className:"wistia_embed",name:"wistia_embed",allowFullScreen:!0,width:"100%",height:"100%"})})})}):null};i(9580);const L=({block:e})=>{const t=(e,t)=>(0,s.jsx)("span",{children:e.text},t),n=(e,n)=>{switch(e.type){case"heading":return((e,n)=>{const r=e.children.map((e,n)=>t(e,n)),a="drop-block-rich-text-heading";switch(e.level){case 1:return(0,s.jsx)("h1",{className:a,children:r},n);case 2:return(0,s.jsx)("h2",{className:a,children:r},n);case 3:default:return(0,s.jsx)("h3",{className:a,children:r},n);case 4:return(0,s.jsx)("h4",{className:a,children:r},n);case 5:return(0,s.jsx)("h5",{className:a,children:r},n);case 6:return(0,s.jsx)("h6",{className:a,children:r},n)}})(e,n);case"list":return((e,n)=>{const r="ordered"===e.format?"ol":"ul";return(0,s.jsx)(r,{className:"drop-block-rich-text-list",children:e.children.map((e,n)=>((e,n)=>(0,s.jsx)("li",{className:"drop-block-rich-text-list-item",children:e.children.map((e,n)=>t(e,n))},n))(e,n))},n)})(e,n);case"paragraph":return((e,t)=>{const n=e.children.map(e=>{var t;return null!==(t=e.text)&&void 0!==t?t:""}).join("");return 0===n.length?(0,s.jsx)("p",{className:"drop-block-rich-text-paragraph empty-paragraph",children:" "},t):(0,s.jsx)("p",{className:"drop-block-rich-text-paragraph",children:n},t)})(e,n);default:return null}};return(0,s.jsx)("div",{className:"drop-block-shared-rich-text-blocks",children:e.richtextblocks.map((e,t)=>n(e,t))})};i(6515);const I=({block:e,onClick:t,unfurlUrl:n})=>{const r="drop-block-shared-button "+("hollow"===e.buttonstyle?"drop-block-shared-button-hollow":"");return n?(0,s.jsx)("a",{href:n,className:r,rel:"noopener noreferrer",children:e.text}):e.url?(0,s.jsx)("a",{href:e.url,className:r,target:"_blank",rel:"noopener noreferrer",children:e.text}):(0,s.jsx)("div",{className:r,onClick:t,children:e.text})};i(6424);const M=({block:e,dropSlug:t})=>(0,s.jsx)("div",{className:"drop-block-button-holder",children:e.button.map(e=>(0,s.jsx)(I,{block:e,unfurlUrl:e.unfurler?`/releases/${t}`:void 0},e.id))});function P(){}function O(){}function R(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,s=!1;for(;!s;){-1===r&&(r=n.length,s=!0);const e=n.slice(a,r).trim();!e&&s||t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function D(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const F=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,U=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$={};function B(e,t){return((t||$).jsx?U:F).test(e)}const H=/[ \t\n\f\r]/g;function z(e){return""===e.replace(H,"")}class q{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function G(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new q(n,r,t)}function W(e){return e.toLowerCase()}q.prototype.normal={},q.prototype.property={},q.prototype.space=void 0;class Y{constructor(e,t){this.attribute=t,this.property=e}}Y.prototype.attribute="",Y.prototype.booleanish=!1,Y.prototype.boolean=!1,Y.prototype.commaOrSpaceSeparated=!1,Y.prototype.commaSeparated=!1,Y.prototype.defined=!1,Y.prototype.mustUseProperty=!1,Y.prototype.number=!1,Y.prototype.overloadedBoolean=!1,Y.prototype.property="",Y.prototype.spaceSeparated=!1,Y.prototype.space=void 0;let V=0;const K=ne(),Q=ne(),X=ne(),J=ne(),Z=ne(),ee=ne(),te=ne();function ne(){return 2**++V}const re=Object.keys(e);class ae extends Y{constructor(t,n,r,a){let s=-1;if(super(t,n),se(this,"space",a),"number"==typeof r)for(;++s<re.length;){const t=re[s];se(this,re[s],(r&e[t])===e[t])}}}function se(e,t,n){n&&(e[t]=n)}function ie(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new ae(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[W(r)]=r,n[W(s.attribute)]=r}return new q(t,n,e.space)}ae.prototype.defined=!0;const oe=ie({properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControl
vendor: 5,314 bytes, line 2
2s:Z,ariaCurrent:null,ariaDescribedBy:Z,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:Z,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:Z,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Z,ariaLevel:J,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:Z,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:Z,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:Q,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function le(e,t){return t in e?e[t]:t}function ce(e,t){return le(e,t.toLowerCase())}const ue=ie({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ee,acceptCharset:Z,accessKey:Z,action:null,allow:null,allowFullScreen:K,allowPaymentRequest:K,allowUserMedia:K,alt:null,as:null,async:K,autoCapitalize:null,autoComplete:Z,autoFocus:K,autoPlay:K,blocking:Z,capture:null,charSet:null,checked:K,cite:null,className:Z,cols:J,colSpan:null,content:null,contentEditable:Q,controls:K,controlsList:Z,coords:J|ee,crossOrigin:null,data:null,dateTime:null,decoding:null,default:K,defer:K,dir:null,dirName:null,disabled:K,download:X,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:K,formTarget:null,headers:Z,height:J,hidden:X,high:J,href:null,hrefLang:null,htmlFor:Z,httpEquiv:Z,id:null,imageSizes:null,imageSrcSet:null,inert:K,inputMode:null,integrity:null,is:null,isMap:K,itemId:null,itemProp:Z,itemRef:Z,itemScope:K,itemType:Z,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:K,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:K,muted:K,name:null,nonce:null,noModule:K,noValidate:K,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:K,optimum:J,pattern:null,ping:Z,placeholder:null,playsInline:K,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:K,referrerPolicy:null,rel:Z,required:K,reversed:K,rows:J,rowSpan:J,sandbox:Z,scope:null,scoped:K,seamless:K,selected:K,shadowRootClonable:K,shadowRootDelegatesFocus:K,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:K,useMap:null,value:Q,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Z,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:K,declare:K,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:K,noHref:K,noShade:K,noWrap:K,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:K,disableRemotePlayback:K,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:ce}),de=ie({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
2dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:te,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Z,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
2dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:K,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ee,g2:ee,glyphName:ee,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:te,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:J,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Z,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:te,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:te,rev:te,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:te,requiredFeatures:te,requiredFonts:te,requiredFormats:te,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:te,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:te,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:te,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:le}),he=ie({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>
vendor: 4,316 bytes, line 2
2"xlink:"+t.slice(5).toLowerCase()}),pe=ie({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ce}),me=ie({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),fe=G([oe,ue,he,pe,me],"html"),ve=G([oe,de,he,pe,me],"svg"),ge=/[A-Z]/g,be=/-[a-z]/g,ye=/^data[-\w.:]+$/i;function xe(e,t){const n=W(t);let r=t,a=Y;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ye.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(be,_e);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!be.test(e)){let n=e.replace(ge,we);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=ae}return new a(r,t)}function we(e){return"-"+e.toLowerCase()}function _e(e){return e.charAt(1).toUpperCase()}const ke={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function Ne(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ee(e){return e.join(" ").trim()}var je=i(5229);const Se=Te("end"),Ce=Te("start");function Te(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Ae(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ie(e.position):"start"in e||"end"in e?Ie(e):"line"in e||"column"in e?Le(e):"":""}function Le(e){return Me(e&&e.line)+":"+Me(e&&e.column)}function Ie(e){return Le(e&&e.start)+"-"+Le(e&&e.end)}function Me(e){return e&&"number"==typeof e?e:1}class Pe extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},s=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(s=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=i?i.line:void 0,this.name=Ae(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Pe.prototype.file="",Pe.prototype.name="",Pe.prototype.reason="",Pe.prototype.message="",Pe.prototype.stack="",Pe.prototype.column=void 0,Pe.prototype.line=void 0,Pe.prototype.ancestors=void 0,Pe.prototype.cause=void 0,Pe.prototype.fatal=void 0,Pe.prototype.place=void 0,Pe.prototype.ruleId=void 0,Pe.prototype.source=void 0;const Oe={}.hasOwnProperty,Re=new Map,De=/[A-Z]/g,Fe=new Set(["table","tbody","thead","tfoot","tr"]),Ue=new Set(["td","th"]),$e="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Be(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=ve,e.schema=a),e.ancestors.push(t);const s=We(e,t.tagName,!1),i=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&Oe.call(t.properties,a)){const s=Ge(e,a,t.properties[a]);if(s){const[a,i]=s;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof i&&Ue.has(t.tagName)?r=i:n[a]=i}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let o=qe(e,t);return Fe.has(t.tagName)&&(o=o.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&z(t.value):z(t));var t})),He(e,i,s,t),ze(i,o),e.ancestors.pop(),e.schema=r,e.create(t,s,i,n)}
vendor: 4,247 bytes, line 2
2(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Ye(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=ve,e.schema=a),e.ancestors.push(t);const s=null===t.name?e.Fragment:We(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];P(t.type);const a=t.expression;P(a.type);const s=a.properties[0];P(s.type),Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Ye(e,t.position);else{const a=r.name;let s;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];P(t.type),s=e.evaluater.evaluateExpression(t.expression)}else Ye(e,t.position);else s=null===r.value||r.value;n[a]=s}return n}(e,t),o=qe(e,t);return He(e,i,s,t),ze(i,o),e.ancestors.pop(),e.schema=r,e.create(t,s,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ye(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return ze(r,qe(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function He(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ze(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function qe(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Re;for(;++r<t.children.length;){const s=t.children[r];let i;if(e.passKeys){const e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){const t=a.get(e)||0;i=e+"-"+t,a.set(e,t+1)}}const o=Be(e,s,i);void 0!==o&&n.push(o)}return n}function Ge(e,t,n){const r=xe(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?D(n):Ee(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return je(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new Pe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=$e+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Oe.call(e,n)&&(t[Ve(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ke[r.property]||r.property:r.attribute,n]}}function We(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=B(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=B(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Oe.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ye(e)}function Ye(e,t){const n=new Pe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=$e+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ve(e){let t=e.replace(De,Ke);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Ke(e){return"-"+e.toLowerCase()}const Qe={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Xe={};function Je(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ze(e.children,t,n)}return Array.isArray(e)?Ze(e,t,n):""}function Ze(e,t,n){const r=[];let a=-1;for(;++a<e.length;
vendor: 6,314 bytes, line 2
2)r[a]=Je(e[a],t,n);return r.join("")}function et(e,t,n,r){const a=e.length;let s,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function tt(e,t){return e.length>0?(et(e,e.length,0,t),e):t}class nt{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&rt(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),rt(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),rt(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);rt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);rt(this.left,t.reverse())}}}function rt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function at(e){const t={};let n,r,a,s,i,o,l,c=-1;const u=new nt(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(o=n[1]._tokenizer.events,a=0,a<o.length&&"lineEndingBlank"===o[a][1].type&&(a+=2),a<o.length&&"content"===o[a][1].type))for(;++a<o.length&&"content"!==o[a][1].type;)"chunkText"===o[a][1].type&&(o[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,st(u,c)),c=t[c],l=!0);else if(n[1]._container){for(a=c,r=void 0;a--;)if(s=u.get(a),"lineEnding"===s[1].type||"lineEndingBlank"===s[1].type)"enter"===s[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=a);else if("linePrefix"!==s[1].type&&"listItemIndent"!==s[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return et(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function st(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const s=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const o=i.events,l=[],c={};let u,d,h=-1,p=n,m=0,f=0;const v=[f];for(;p;){for(;e.get(++a)[1]!==p;);s.push(a),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&i.defineSkip(p.start),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++h<o.length;)"exit"===o[h][0]&&"enter"===o[h-1][0]&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(f=h+1,v.push(f),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(i.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),h=v.length;h--;){const t=o.slice(v[h],v[h+1]),n=s.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),h=-1;++h<l.length;)c[m+l[h][0]]=m+l[h][1],m+=l[h][1]-l[h][0]-1;return c}const it={}.hasOwnProperty;function ot(e,t){let n;for(n in t){const r=(it.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){it.call(r,s)||(r[s]=[]);const e=a[s];lt(r[s],Array.isArray(e)?e:e?[e]:[])}}}function lt(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);et(e,0,0,r)}const ct=wt(/[A-Za-z]/),ut=wt(/[\dA-Za-z]/),dt=wt(/[#-'*+\--9=?A-Z^-~]/);function ht(e){return null!==e&&(e<32||127===e)}const pt=wt(/\d/),mt=wt(/[\dA-Fa-f]/),ft=wt(/[!-/:-@[-`{-~]/);function vt(e){return null!==e&&e<-2}function gt(e){return null!==e&&(e<0||32===e)}function bt(e){return-2===e||-1===e||32===e}const yt=wt(/\p{P}|\p{S}/u),xt=wt(/\s/);function wt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function _t(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let s=0;return function(r){return bt(r)?(e.enter(n),i(r)):t(r)};function i(r){return bt(r)&&s++<a?(e.consume(r),i):(e.exit(n),t(r))}}const kt={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),_t(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):vt(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}},Nt={tokenize:function(e){const t=this,n=[];let r,a,s,i=0;return o;function o(r){if(i<n.length){const a=n[i];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(r)}return c(r)}function l(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let a,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){a=t.events[s][1].end;break}g(i);let o=n;for(;o<t.events.length;)t.events[o][1].end={...a},o++;return et(t.events,s+1,0,t.events.slice(n)),t.events.length=o,c(e)}return o(e)}function c(a){if(i===n.length){if(!r)return h(a);if(r.currentConstruct&&r.currentConstruct.concrete)return m(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Et,u,d)(a)}function u(e){return r&&b(),g(i),h(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,m
vendor: 36,852 bytes, line 2
2(e)}function h(n){return t.containerState={},e.attempt(Et,p,m)(n)}function p(e){return i++,n.push([t.currentConstruct,t.containerState]),h(e)}function m(n){return null===n?(r&&b(),g(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),f(n))}function f(n){return null===n?(v(e.exit("chunkFlow"),!0),g(0),void e.consume(n)):vt(n)?(e.consume(n),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(n),f)}function v(e,n){const o=t.sliceStream(e);if(n&&o.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(o),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<s&&(!r.events[e][1].end||r.events[e][1].end.offset>s))return;const n=t.events.length;let a,o,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){o=t.events[l][1].end;break}a=!0}for(g(i),e=n;e<t.events.length;)t.events[e][1].end={...o},e++;et(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function g(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Et={tokenize:function(e,t,n){return _t(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},jt={partial:!0,tokenize:function(e,t,n){return function(t){return bt(t)?_t(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||vt(e)?t(e):n(e)}}},St={resolve:function(e){return at(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):vt(t)?e.check(Ct,s,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function s(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Ct={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_t(e,a,"linePrefix")};function a(a){if(null===a||vt(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}},Tt={tokenize:function(e){const t=this,n=e.attempt(jt,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,_t(e,e.attempt(this.parser.constructs.flow,r,e.attempt(St,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},At={resolveAll:Pt()},Lt=Mt("string"),It=Mt("text");function Mt(e){return{resolveAll:Pt("text"===e?Ot:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,s,i);return s;function s(e){return l(e)?a(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),o;t.consume(e)}function o(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Pt(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function Ot(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let s,i=a.length,o=-1,l=0;for(;i--;){const e=a[i];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)s=!0,l++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const a={type:n===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const Rt={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,s(e)}(t)};function s(s){return s===r?(e.enter("thematicBreakSequence"),i(s)):a>=3&&(null===s||vt(s))?(e.exit("thematicBreak"),t(s)):n(s)}function i(t){return t===r?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),bt(t)?_t(e,s,"whitespace")(t):s(t))}}},Dt={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(jt,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_t(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!bt(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ut,t,a)(n))});function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,_t(e,e.attempt(Dt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:pt(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(Rt,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(t)}return n(t)};function o(t){return pt(t)&&++i<10?(e.consume(t),o):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(jt,r.interrupt?n:c,e.attempt(Ft,d,u))}function c(e){return r.containerState.initialBlankLine=!0,s++,d(e)}function u(t){return bt(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Ft={partial:!0,tokenize:function(e,t,n){const r=this;return _t(e,function(e){const a=r.events[r.events.length-1];return!bt(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Ut={partial:!0,tokenize:function(e,t,n){const r=this;return _t(e,function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},$t={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return bt(t)?_t(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)};function a(r){return e.attempt($t,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return bt(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function Bt(e,t,n,r,a,s,i,o,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(a),e.enter(s),e.consume(t),e.exit(s),d):null===t||32===t||41===t||ht(t)?n(t):(e.enter(r),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),m(t))};function d(n){return 62===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(o),d(t)):null===t||60===t||vt(t)?n(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function m(a){return u||null!==a&&41!==a&&!gt(a)?u<c&&40===a?(e.consume(a),u++,m):41===a?(e.consume(a),u--,m):null===a||32===a||40===a||ht(a)?n(a):(e.consume(a),92===a?f:m):(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(r),t(a))}function f(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function Ht(e,t,n,r,a,s){const i=this;let o,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(s),c};function c(d){return l>999||null===d||91===d||93===d&&!o||94===d&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(s),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):vt(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||vt(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!bt(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function zt(e,t,n,r,a,s){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,o):n(t)};function o(n){return n===i?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(s),l(n))}function l(t){return t===i?(e.exit(s),o(i)):null===t?n(t):vt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_t(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||vt(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function qt(e,t){let n;return function r(a){return vt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):bt(a)?_t(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}function Gt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wt={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return Ht.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function s(t){return a=Gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return gt(t)?qt(e,o)(t):o(t)}function o(t){return Bt(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Yt,c,c)(t)}function c(t){return bt(t)?_t(e,u,"whitespace")(t):u(t)}function u(s){return null===s||vt(s)?(e.exit("definition"),r.parser.defined.push(a),t(s)):n(s)}}},Yt={partial:!0,tokenize:function(e,t,n){return function(t){return gt(t)?qt(e,r)(t):n(t)};function r(t){return zt(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return bt(t)?_t(e,s,"whitespace")(t):s(t)}function s(e){return null===e||vt(e)?t(e):n(e)}}},Vt={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),_t(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?s(e):n(e)}function s(t){return null===t?o(t):vt(t)?e.attempt(Kt,s,o)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||vt(t)?(e.exit("codeFlowValue"),s(t)):(e.consume(t),i)}function o(n){return e.exit("codeIndented"),t(n)}}},Kt={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):vt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):_t(e,s,"linePrefix",5)(t)}function s(e){const s=r.events[r.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):vt(e)?a(e):n(e)}}},Qt={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,s=3;return"whitespace"===e[s][1].type&&(s+=2),a-2>s&&"whitespace"===e[a][1].type&&(a-=2),"atxHeadingSequence"===e[a][1].type&&(s===a-1||a-4>s&&"whitespace"===e[a-2][1].type)&&(a-=s+1===a?2:4),a>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[a][1].end},r={type:"chunkText",start:e[s][1].start,end:e[a][1].end,contentType:"text"},et(e,s,a-s+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||gt(t)?(e.exit("atxHeadingSequence"),s(t)):n(t)}function s(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||vt(n)?(e.exit("atxHeading"),t(n)):bt(n)?_t(e,s,"whitespace")(n):(e.enter("atxHeadingText"),o(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),s(t))}function o(t){return null===t||35===t||gt(t)?(e.exit("atxHeadingText"),s(t)):(e.consume(t),o)}}},Xt={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),a||"definition"!==e[s][1].type||(a=s);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=i,e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let i,o=r.events.length;for(;o--;)if("lineEnding"!==r.events[o][1].type&&"linePrefix"!==r.events[o][1].type&&"content"!==r.events[o][1].type){i="paragraph"===r.events[o][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!i?n(t):(e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),s(t)}(t))};function s(t){return t===a?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),bt(t)?_t(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||vt(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},Jt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Zt=["pre","script","style","textarea"],en={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let a,s,i,o,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),s=!0,p):63===o?(e.consume(o),a=3,r.interrupt?t:P):ct(o)?(e.consume(o),i=String.fromCharCode(o),m):n(o)}function u(s){return 45===s?(e.consume(s),a=2,d):91===s?(e.consume(s),a=5,o=0,h):ct(s)?(e.consume(s),a=4,r.interrupt?t:P):n(s)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:P):n(a)}function h(a){return a==="CDATA[".charCodeAt(o++)?(e.consume(a),6===o?r.interrupt?t:j:h):n(a)}function p(t){return ct(t)?(e.consume(t),i=String.fromCharCode(t),m):n(t)}function m(o){if(null===o||47===o||62===o||gt(o)){const l=47===o,c=i.toLowerCase();return l||s||!Zt.includes(c)?Jt.includes(i.toLowerCase())?(a=6,l?(e.consume(o),f):r.interrupt?t(o):j(o)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(o):s?v(o):g(o)):(a=1,r.interrupt?t(o):j(o))}return 45===o||ut(o)?(e.consume(o),i+=String.fromCharCode(o),m):n(o)}function f(a){return 62===a?(e.consume(a),r.interrupt?t:j):n(a)}function v(t){return bt(t)?(e.consume(t),v):N(t)}function g(t){return 47===t?(e.consume(t),N):58===t||95===t||ct(t)?(e.consume(t),b):bt(t)?(e.consume(t),g):N(t)}function b(t){return 45===t||46===t||58===t||95===t||ut(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),x):bt(t)?(e.consume(t),y):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):bt(t)?(e.consume(t),x):_(t)}function w(t){return t===l?(e.consume(t),l=null,k):null===t||vt(t)?n(t):(e.consume(t),w)}function _(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||gt(t)?y(t):(e.consume(t),_)}function k(e){return 47===e||62===e||bt(e)?g(e):n(e)}function N(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||vt(t)?j(t):bt(t)?(e.consume(t),E):n(t)}function j(t){return 45===t&&2===a?(e.consume(t),A):60===t&&1===a?(e.consume(t),L):62===t&&4===a?(e.consume(t),O):63===t&&3===a?(e.consume(t),P):93===t&&5===a?(e.consume(t),M):!vt(t)||6!==a&&7!==a?null===t||vt(t)?(e.exit("htmlFlowData"),S(t)):(e.consume(t),j):(e.exit("htmlFlowData"),e.check(tn,R,S)(t))}function S(t){return e.check(nn,C,R)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||vt(t)?S(t):(e.enter("htmlFlowData"),j(t))}function A(t){return 45===t?(e.consume(t),P):j(t)}function L(t){return 47===t?(e.consume(t),i="",I):j(t)}function I(t){if(62===t){const n=i.toLowerCase();return Zt.includes(n)?(e.consume(t),O):j(t)}return ct(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),I):j(t)}function M(t){return 93===t?(e.consume(t),P):j(t)}function P(t){return 62===t?(e.consume(t),O):45===t&&2===a?(e.consume(t),P):j(t)}function O(t){return null===t||vt(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),O)}function R(n){return e.exit("htmlFlow"),t(n)}}},tn={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(jt,t,n)}}},nn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return vt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},an={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),bt(t)?_t(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===s?(a++,e.consume(t),c):a>=o?(e.exit("codeFencedFenceSequence"),bt(t)?_t(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||vt(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let s,i=0,o=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===s?(o++,e.consume(t),l):o<3?n(t):(e.exit("codeFencedFenceSequence"),bt(t)?_t(e,c,"whitespace")(t):c(t))}function c(n){return null===n||vt(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(rn,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||vt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):bt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_t(e,d,"whitespace")(t)):96===t&&t===s?n(t):(e.consume(t),u)}function d(t){return null===t||vt(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||vt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===s?n(t):(e.consume(t),h)}function p(t){return e.attempt(a,b,m)(t)}function m(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return i>0&&bt(t)?_t(e,v,"linePrefix",i+1)(t):v(t)}function v(t){return null===t||vt(t)?e.check(rn,p,b)(t):(e.enter("codeFlowValue"),g(t))}function g(t){return null===t||vt(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),g)}function b(n){return e.exit("codeFenced"),t(n)}}},sn=document.createElement("i");function on(e){const t="&"+e+";";sn.innerHTML=t;const n=sn.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const ln={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,s,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=ut,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=mt,c):(e.enter("characterReferenceValue"),a=7,s=pt,c(t))}function c(o){if(59===o&&i){const a=e.exit("characterReferenceValue");return s!==ut||on(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return s(o)&&i++<a?(e.consume(o),c):n(o)}}},cn={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return ft(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},un={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),_t(e,t,"linePrefix")}}};function dn(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const hn={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&et(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,a,s,i=e.length,o=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(a=i);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+o+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=tt(s,e.slice(r+1,r+o+3)),s=tt(s,[["enter",u,t]]),s=tt(s,dn(t.parser.constructs.insideSpan.null,e.slice(r+o+4,a-3),t)),s=tt(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=tt(s,e.slice(a+1)),s=tt(s,[["exit",l,t]]),et(e,r,e.length,s),e},tokenize:function(e,t,n){const r=this;let a,s,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return function(t){return a?a._inactive?u(t):(s=r.parser.defined.includes(Gt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(pn,c,s?c:u)(t):91===t?e.attempt(mn,c,s?l:u)(t):s?c(t):u(t)}function l(t){return e.attempt(fn,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},pn={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return gt(t)?qt(e,a)(t):a(t)}function a(t){return 41===t?c(t):Bt(e,s,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function s(t){return gt(t)?qt(e,o)(t):c(t)}function i(e){return n(e)}function o(t){return 34===t||39===t||40===t?zt(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return gt(t)?qt(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},mn={tokenize:function(e,t,n){const r=this;return function(t){return Ht.call(r,e,a,s,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(Gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function s(e){return n(e)}}},fn={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},vn={name:"labelStartImage",resolveAll:hn.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),s):n(t)}function s(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function gn(e){return null===e||gt(e)||xt(e)?1:yt(e)?2:void 0}const bn={name:"attention",resolveAll:function(e,t){let n,r,a,s,i,o,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},h={...e[u][1].start};yn(d,-o),yn(h,o),s={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:o>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:h},a={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:o>1?"strong":"emphasis",start:{...s.start},end:{...i.end}},e[n][1].end={...s.start},e[u][1].start={...i.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=tt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=tt(l,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=tt(l,dn(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=tt(l,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=tt(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,et(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=gn(r);let s;return function(t){return s=t,e.enter("attentionSequence"),i(t)};function i(o){if(o===s)return e.consume(o),i;const l=e.exit("attentionSequence"),c=gn(o),u=!c||2===c&&a||n.includes(o),d=!a||2===a&&c||n.includes(r);return l._open=Boolean(42===s?u:u&&(a||!d)),l._close=Boolean(42===s?d:d&&(c||!u)),t(o)}}};function yn(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const xn={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return ct(t)?(e.consume(t),s):64===t?n(t):l(t)}function s(e){return 43===e||45===e||46===e||ut(e)?(r=1,i(e)):l(e)}function i(t){return 58===t?(e.consume(t),r=0,o):(43===t||45===t||46===t||ut(t))&&r++<32?(e.consume(t),i):(r=0,l(t))}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||ht(r)?n(r):(e.consume(r),o)}function l(t){return 64===t?(e.consume(t),c):dt(t)?(e.consume(t),l):n(t)}function c(e){return ut(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||ut(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},wn={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,s,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),b):ct(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),s=0,p):ct(t)?(e.consume(t),g):n(t)}function c(t){return 45===t?(e.consume(t),h):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):vt(t)?(i=u,I(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),h):u(t)}function h(e){return 62===e?L(e):45===e?d(e):u(e)}function p(t){return t==="CDATA[".charCodeAt(s++)?(e.consume(t),6===s?m:p):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),f):vt(t)?(i=m,I(t)):(e.consume(t),m)}function f(t){return 93===t?(e.consume(t),v):m(t)}function v(t){return 62===t?L(t):93===t?(e.consume(t),v):m(t)}function g(t){return null===t||62===t?L(t):vt(t)?(i=g,I(t)):(e.consume(t),g)}function b(t){return null===t?n(t):63===t?(e.consume(t),y):vt(t)?(i=b,I(t)):(e.consume(t),b)}function y(e){return 62===e?L(e):b(e)}function x(t){return ct(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||ut(t)?(e.consume(t),w):_(t)}function _(t){return vt(t)?(i=_,I(t)):bt(t)?(e.consume(t),_):L(t)}function k(t){return 45===t||ut(t)?(e.consume(t),k):47===t||62===t||gt(t)?N(t):n(t)}function N(t){return 47===t?(e.consume(t),L):58===t||95===t||ct(t)?(e.consume(t),E):vt(t)?(i=N,I(t)):bt(t)?(e.consume(t),N):L(t)}function E(t){return 45===t||46===t||58===t||95===t||ut(t)?(e.consume(t),E):j(t)}function j(t){return 61===t?(e.consume(t),S):vt(t)?(i=j,I(t)):bt(t)?(e.consume(t),j):N(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,C):vt(t)?(i=S,I(t)):bt(t)?(e.consume(t),S):(e.consume(t),T)}function C(t){return t===a?(e.consume(t),a=void 0,A):null===t?n(t):vt(t)?(i=C,I(t)):(e.consume(t),C)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||gt(t)?N(t):(e.consume(t),T)}function A(e){return 47===e||62===e||gt(e)?N(e):n(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return bt(t)?_t(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),i(t)}}},_n={name:"labelStartLink",resolveAll:hn.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},kn={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return vt(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Nn={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}for(t=a-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,s=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),s++,i):(e.exit("codeTextSequence"),o(t))}function o(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):96===t?(a=e.enter("codeTextSequence"),r=0,c(t)):vt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||vt(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}},En={42:Dt,43:Dt,45:Dt,48:Dt,49:Dt,50:Dt,51:Dt,52:Dt,53:Dt,54:Dt,55:Dt,56:Dt,57:Dt,62:$t},jn={91:Wt},Sn={[-2]:Vt,[-1]:Vt,32:Vt},Cn={35:Qt,42:Rt,45:[Xt,Rt],60:en,61:Xt,95:Rt,96:an,126:an},Tn={38:ln,92:cn},An={[-5]:un,[-4]:un,[-3]:un,33:vn,38:ln,42:bn,60:[xn,wn],91:_n,92:[kn,cn],93:hn,95:bn,96:Nn},Ln={null:[bn,At]},In={null:[42,95]},Mn={null:[]};function Pn(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},s=[];let i=[],o=[],l=!0;const c={attempt:g(function(e,t){b(e,t.from)}),check:g(v),consume:function(e){vt(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=m(),u.events.push(["enter",n,u]),o.push(n),n},exit:function(e){const t=o.pop();return t.end=m(),u.events.push(["exit",t,u]),t},interrupt:g(v,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,y()},events:[],now:m,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const s=e[n];let i;if("string"==typeof s)i=s;else switch(s){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&a)continue;i=" ";break;default:i=String.fromCharCode(s)}a=-2===s,r.push(i)}return r.join("")}(p(e),t)},sliceStream:p,write:function(e){return i=tt(i,e),function(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}(),null!==i[i.length-1]?[]:(b(t,0),u.events=dn(s,u.events,u),u.events)}};let d,h=t.tokenize.call(u,c);return t.resolveAll&&s.push(t),u;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,s)];else{if(i=e.slice(n,a),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}s>0&&i.push(e[a].slice(0,s))}return i}(i,e)}function m(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:s}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:s}}function f(e){l=void 0,d=e,h=h(e)}function v(e,t){t.restore()}function g(e,t){return function(n,a,s){let i,d,h,p;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return i=e,d=0,0===e.length?s:v(e[d])}function v(e){return function(n){return p=function(){const e=m(),t=u.previous,n=u.currentConstruct,a=u.events.length,s=Array.from(o);return{from:a,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=a,o=s,y()}}}(),h=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,g,b)(n)}}function g(t){return l=!0,e(h,p),a}
2function b(e){return l=!0,p.restore(),++d<i.length?v(i[d]):s}}}function b(e,t){e.resolveAll&&!s.includes(e)&&s.push(e),e.resolve&&et(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function y(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const On=/[\0\t\n\r]/g;function Rn(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const Dn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fn(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Rn(n.slice(t?2:1),t?16:10)}return on(n)||e}const Un={}.hasOwnProperty;function $n(e,n,r){return"string"!=typeof n&&(r=n,n=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(b),autolinkProtocol:u,autolinkEmail:u,atxHeading:a(f),blockQuote:a(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:a(m),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(m,s),codeText:a(function(){return{type:"inlineCode",value:""}},s),codeTextData:u,data:u,codeFlowValue:u,definition:a(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:a(v),hardBreakTrailing:a(v),htmlFlow:a(g,s),htmlFlowData:u,htmlText:a(g,s),htmlTextData:u,image:a(function(){return{type:"image",title:null,url:"",alt:null}}),label:s,link:a(b),listItem:a(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:a(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:a(y),paragraph:a(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(f),strong:a(function(){return{type:"strong",children:[]}}),thematicBreak:a(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=Rn(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=on(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=Bn(e.end)},codeFenced:o(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:o(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:o(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Gt(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(h),hardBreakTrailing:o(h),htmlFlow:o(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:o(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:o(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Dn,Fn)}(t),n.identifier=Gt(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Bn(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
vendor: 5,185 bytes, line 2
2ype)&&(u.call(this,e),d.call(this,e))},link:o(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Gt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};Hn(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let a={type:"root",children:[]};const o={stack:[a],tokenStack:[],config:t,enter:i,exit:l,buffer:s,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];Un.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||qn).call(o,void 0,e[0])}for(a.position={start:Bn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Bn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)a=t.transforms[d](a)||a;return a};function r(e,t,n){let r,a,s,i,o=t-1,l=-1,c=!1;for(;++o<=n;){const t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||l||s||(s=o),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=o;for(a=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}s&&(!a||s<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||o,0,["exit",r,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(o,0,["enter",a,t[2]]),o++,n++,s=void 0,i=!0}}}return e[t][1]._spread=c,n}function a(e,t){return function(n){i.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function i(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Bn(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Ae({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||qn).call(this,e,r[0])),n.position.end=Bn(e.end)}function c(){return function(e){return Je(e,"boolean"!=typeof Xe.includeImageAlt||Xe.includeImageAlt,"boolean"!=typeof Xe.includeHtml||Xe.includeHtml)}(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Bn(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Bn(e.end)}function h(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function v(){return{type:"break"}}function g(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(r)(function(e){for(;!at(e););return e}(function(e){const n=function(e){const t={};let n=-1;for(;++n<e.length;)ot(t,e[n]);return t}([t,...(e||{}).extensions||[]]),r={constructs:n,content:a(kt),defined:[],document:a(Nt),flow:a(Tt),lazy:{},string:a(Lt),text:a(It)};return r;function a(e){return function(t){return Pn(r,e,t)}}}(r).document().write(function(){let e,t=1,n="",r=!0;return function(a,s,i){const o=[];let l,c,u,d,h;for(a=n+("string"==typeof a?a.toString():new TextDecoder(s||void 0).decode(a)),u=0,n="",r&&(65279===a.charCo
vendor: 3,625 bytes, line 2
2deAt(0)&&u++,r=void 0);u<a.length;){if(On.lastIndex=u,l=On.exec(a),d=l&&void 0!==l.index?l.index:a.length,h=a.charCodeAt(d),!l){n=a.slice(u);break}if(10===h&&u===d&&e)o.push(-3),e=void 0;else switch(e&&(o.push(-5),e=void 0),u<d&&(o.push(a.slice(u,d)),t+=d-u),h){case 0:o.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),o.push(-2);t++<c;)o.push(-1);break;case 10:o.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&o.push(-5),n&&o.push(n),o.push(null)),o}}()(e,n,!0))))}function Bn(e){return{line:e.line,column:e.column,offset:e.offset}}function Hn(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Hn(e,r):zn(e,r)}}function zn(e,t){let n;for(n in t)if(Un.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function qn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ae({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ae({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ae({start:t.start,end:t.end})+") is still open")}function Gn(e){const t=this;t.parser=function(n){return $n(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Wn="object"==typeof self?self:globalThis,Yn=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[s,i]=t[a];switch(s){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new Wn[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new Wn[s](i),a)};return r})(new Map,e)(0),Vn="",{toString:Kn}={},{keys:Qn}=Object,Xn=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Kn.call(e).slice(8,-1);switch(n){case"Array":return[1,Vn];case"Object":return[2,Vn];case"Date":return[3,Vn];case"RegExp":return[4,Vn];case"Map":return[5,Vn];case"Set":return[6,Vn];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Jn=([e,t])=>0===e&&("function"===t||"symbol"===t),Zn=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},s=r=>{if(n.has(r))return n.get(r);let[i,o]=Xn(r);switch(i){case 0:{let t=r;switch(o){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);t=null;break;case"undefined":return a([-1],r)}return a([i,t],r)}case 1:{if(o){let e=r;return"DataView"===o?e=new Uint8Array(r.buffer):"ArrayBuffer"===o&&(e=new Uint8Array(r)),a([o,[...e]],r)}const e=[],t=a([i,e],r);for(const t of r)e.push(s(t));return t}case 2:{if(o)switch(o){case"BigInt":return a([o,r.toString()],r);case"Boolean":case"Number":case"String":return a([o,r.valueOf()],r)}if(t&&"toJSON"in r)return s(r.toJSON());const n=[],l=a([i,n],r);for(const t of Qn(r))!e&&Jn(Xn(r[t]))||n.push([s(t),s(r[t])]);return l}case 3:return a([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([i,{source:e,flags:t}],r)}case 5:{const t=[],n=a([i,t],r);
vendor: 10,428 bytes, line 2
2for(const[n,a]of r)(e||!Jn(Xn(n))&&!Jn(Xn(a)))&&t.push([s(n),s(a)]);return n}case 6:{const t=[],n=a([i,t],r);for(const n of r)!e&&Jn(Xn(n))||t.push(s(n));return n}}const{message:l}=r;return a([i,{name:o,message:l}],r)};return s})(!(t||n),!!t,new Map,r)(e),r},er="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Yn(Zn(e,t)):structuredClone(e):(e,t)=>Yn(Zn(e,t));function tr(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const s=e.charCodeAt(n);let i="";if(37===s&&ut(e.charCodeAt(n+1))&&ut(e.charCodeAt(n+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(i=String.fromCharCode(s));else if(s>55295&&s<57344){const t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(i=String.fromCharCode(s,t),a=1):i="�"}else i=String.fromCharCode(s);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function nr(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function rr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const ar=function(e){if(null==e)return ir;if("function"==typeof e)return sr(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ar(e[n]);return sr(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return sr(function(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0})}(e);if("string"==typeof e)return t=e,sr(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function sr(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function ir(){return!0}const or=[],lr=!1;function cr(e,t,n,r){let a,s,i;"function"==typeof t&&"function"!=typeof n?(s=void 0,i=t,a=n):(s=t,i=n,a=r),function(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const s=ar(a),i=r?-1:1;!function e(a,o,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,h=or;if((!t||s(a,o,l[l.length-1]||void 0))&&(h=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?or:[e]}(n(a,l)),h[0]===lr))return h;if("children"in a&&a.children){const t=a;if(t.children&&"skip"!==h[0])for(u=(r?t.children.length:-1)+i,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===lr)return c;u="number"==typeof c[1]?c[1]:u+i}}return h}}(e,void 0,[])()}(e,s,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},a)}function ur(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),s=a[0];s&&"text"===s.type?s.value="["+s.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&"text"===i.type?i.value+=r:a.push({type:"text",value:r}),a}function dr(e){const t=e.spread;return null==t?e.children.length>1:t}function hr(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const s=[];for(;r;)s.push(pr(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return s.push(pr(t.slice(a),a>0,!1)),s.join("")}function pr(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const mr={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=tr(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let i,o=e.footnoteCounts.get(r);void 0===o?(o=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=s+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ur(e,t);const a={src:tr(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){const n={src:tr(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ur(e,t);const a={href:tr(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){const n={href:tr(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=dr(n[r])}return t}(n):dr(t),s={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const e=r[o];(a||0!==o||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}const l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:s,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Ce(t.children[1]),i=Se(t.children[t.children.length-1]);s&&i&&(r.position={start:s,end:i}),a.push(r)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",s=n&&"table"===n.type?n.align:void 0,i=s?s.length:t.children.length;let o=-1;const l=[];for(;++o<i;){const n=t.children[o],r={},i=s?s[o]:void 0;i&&(r.align=i);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:hr(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:fr,yaml:fr,definition:fr,footnoteDefinition:fr};function fr(){}const vr={}.hasOwnProperty,gr={};function br(e,t){e.position&&(t.position=function(e){const t=Ce(e),n=Se(e);if(t&&n)return{start:t,end:n}}(e))}function yr(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}
vendor: 3,285 bytes, line 2
2),"element"===n.type&&a&&Object.assign(n.properties,er(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function xr(e,t){const n=t.data||{},r=!("value"in t)||vr.call(n,"hProperties")||vr.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function wr(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function _r(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function kr(e,t){const n=function(e,t){const n=t||gr,r=new Map,a=new Map,s=new Map,i={...mr,...n.handlers},o={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=o.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=_r(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=_r(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:yr,definitionById:r,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=o.handlers[n];if(vr.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=er(n);return r.children=o.all(e),r}return er(e)}return(o.options.unknownHandler||xr)(o,e,t)},options:n,patch:br,wrap:wr};return cr(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||nr,r=e.options.footnoteBackLabel||rr,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const s=e.all(a),i=String(a.identifier).toUpperCase(),c=tr(i.toLowerCase());let u=0;const d=[],h=e.footnoteCounts.get(i);for(;void 0!==h&&++u<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=s[s.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else s.push(...d);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(s,!0)};e.patch(a,m),o.push(m)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...er(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)}
vendor: 6,333 bytes, line 2
2,{type:"text",value:"\n"}]}}(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&s.children.push({type:"text",value:"\n"},a),s}function Nr(e,t){return e&&"run"in e?async function(n,r){const a=kr(n,{file:r,...t});await e.run(a,r)}:function(n,r){return kr(n,{file:r,...e||t})}}function Er(e){if(e)throw e}var jr=i(2849);function Sr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const Cr=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Mr(e);let n,r=0,a=-1,s=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else a<0&&(n=!0,a=s+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else i<0&&(n=!0,i=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(a=s):(o=-1,a=i));return r===a?a=i:a<0&&(a=e.length),e.slice(r,a)},Tr=function(e){if(Mr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},Ar=function(e){Mr(e);let t,n=e.length,r=-1,a=0,s=-1,i=0;for(;n--;){const o=e.codePointAt(n);if(47!==o)r<0&&(t=!0,r=n+1),46===o?s<0?s=n:1!==i&&(i=1):s>-1&&(i=-1);else if(t){a=n+1;break}}return s<0||r<0||0===i||1===i&&s===r-1&&s===a+1?"":e.slice(s,r)},Lr=function(...e){let t,n=-1;for(;++n<e.length;)Mr(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Mr(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",s=0,i=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===o);else if(i!==l-1&&2===o){if(a.length<2||2!==s||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",s=0):(a=a.slice(0,r),s=a.length-1-a.lastIndexOf("/")),i=l,o=0;continue}}else if(a.length>0){a="",s=0,i=l,o=0;continue}t&&(a=a.length>0?a+"/..":"..",s=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),s=l-i-1;i=l,o=0}else 46===n&&o>-1?o++:o=-1}return a}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},Ir="/";function Mr(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Pr=function(){return"/"};function Or(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const Rr=["history","path","basename","stem","extname","dirname"];class Dr{constructor(e){let t;t=e?Or(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Pr(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Rr.length;){const e=Rr[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Rr.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Cr(this.path):void 0}set basename(e){Ur(e,"basename"),Fr(e,"basename"),this.path=Lr(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Tr(this.path):void 0}set dirname(e){$r(this.basename,"dirname"),this.path=Lr(e||"",this.basename)}get extname(){return"string"==typeof this.path?Ar(this.path):void 0}set extname(e){if(Fr(e,"extname"),$r(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Lr(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Or(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!Or(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),Ur(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Cr(this.path,this.extname):void 0}set stem(e){Ur(e,"stem"),Fr(e,"stem"),this.path=Lr(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Pe(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Fr(e,t){if(e&&e.includes(Ir))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ir+"`")}function Ur(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function $r(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Br=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Hr={}.hasOwnProperty;class zr extends Br{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(s,...i){const o=e[++n];let l=-1;if(s)r(s);else{for(;++l<t.length;)null!==i[l]&&void 0!==i[l]||(i[l]=t[l]);t=i,o?function(e,t){let n;return function(...t){const s=e.length>t.length;let i;
vendor: 7,004 bytes, line 2
2s&&t.push(r);try{i=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(i&&i.then&&"function"==typeof i.then?i.then(a,r):i instanceof Error?r(i):a(i))};function r(e,...r){n||(n=!0,t(e,...r))}function a(e){r(null,e)}}(o,a)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new zr;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(jr(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Yr("data",this.frozen),this.namespace[e]=t,this):Hr.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Yr("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Qr(e),n=this.parser||this.Parser;return Gr("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Gr("process",this.parser||this.Parser),Wr("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const s=Qr(e),i=n.parse(s);function o(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,s,function(e,t,r){if(e||!t||!r)return o(e);const a=t,s=n.stringify(a,r);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(s)?r.result=s:r.value=s,o(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Gr("processSync",this.parser||this.Parser),Wr("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Er(e),t=r}),Kr("processSync","process",n),t}run(e,t,n){Vr(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,s){const i=Qr(t);r.run(e,i,function(t,r,i){const o=r||e;t?s(t):a?a(o):n(void 0,o,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Er(e),n=t,r=!0}),Kr("runSync","run",r),n}stringify(e,t){this.freeze();const n=Qr(t),r=this.compiler||this.Compiler;return Wr("stringify",r),Vr(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Yr("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):s(e)}return this;function a(e){if("function"==typeof e)o(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;o(t,n)}else s(e)}}function s(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=jr(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)a(e[t])}}function o(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...s]=t;const i=n[a][1];Sr(i)&&Sr(r)&&(r=jr(!0,i,r)),n[a]=[e,r,...s]}}}}const qr=(new zr).freeze();function Gr(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Wr(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Yr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Vr(e){if(!Sr(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Kr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qr(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Dr(e)}const Xr=[],Jr={allowDangerousHtml:!0},Zr=/^(https?|ircs?|mailto|xmpp)$/i,ea=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ta(e){const t=function(e){const t=e.rehypePlugins||Xr,n=e.remarkPlugins||Xr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Jr}:Jr;return qr().use(Gn).use(n).use(Nr,r).use(t)}(e),n=function(e){const t=e.children||"",n=new Dr;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||na;for(const e of ea)Object.hasOwn(t,e.from)&&O((e.from,e.to&&e.to,e.id));return cr(e,function(e,t,a){if("raw"===e.type&&a&&"number"==typeof t)return o?a.children.splice(t,1):a.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Qe)if(Object.hasOwn(Qe,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Qe[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let s=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!s&&r&&"number"==typeof t&&(s=!r(e,t,a)),s&&a&&"number"==typeof t)return l&&e.children?a.children.splice(t,1,...e.children):a.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,a,s){const i=Array.isArray(a.children),o=Ce(n);return t(r,a,s,i,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");
vendor: 17,976 bytes, line 2
2if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");a=t.jsx,s=t.jsxs,r=function(e,t,n,r){const i=Array.isArray(n.children)?s:a;return r?i(t,n,r):i(t,n)}}var a,s;const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ve:fe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=Be(i,e,void 0);return o&&"string"!=typeof o?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}(e,{Fragment:s.Fragment,components:a,ignoreInvalidStyle:!0,jsx:s.jsx,jsxs:s.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function na(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||Zr.test(e.slice(0,t))?e:""}const ra=/[#.]/g;function aa(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...s){let i;if(null==n){i={type:"root",children:[]};const e=a;s.unshift(e)}else{i=function(e,t){const n=e||"",r={};let a,s,i=0;for(;i<n.length;){ra.lastIndex=i;const e=ra.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?"#"===a?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:s=t,i+=t.length),e&&(a=e[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}(n,t);const o=i.tagName.toLowerCase(),l=r?r.get(o):void 0;if(i.tagName=l||o,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const e of n){const n=t[e];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;const e=n;for(const t of e)if("number"!=typeof t&&"string"!=typeof t)return!0}}return!(!("children"in e)||!Array.isArray(e.children))}(a))s.unshift(a);else for(const[t,n]of Object.entries(a))sa(e,i.properties,t,n)}for(const e of s)ia(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function sa(e,t,n,r){const a=xe(e,n);let s;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;s=r}else s="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?Ne(r):a.commaSeparated?R(r):a.commaOrSpaceSeparated?Ne(R(r).join(" ")):oa(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(s)){const e=[];for(const t of s)e.push(oa(a,a.property,t));s=e}"className"===a.property&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[a.property]=s}}function ia(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)ia(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?ia(e,t.children):e.push(t)}}function oa(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||W(n)===W(t)))return!0}return n}const la=aa(fe,"div"),ca=aa(ve,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function ua(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const da={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ha={}.hasOwnProperty,pa=Object.prototype;function ma(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},va(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:fa(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=ua(t,e),a=-1===r?t.length+1:r+1;if(e===a)break;n.push(a)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let a=n[r];if(void 0===a){const e=ua(t,n[r-1]);a=-1===e?t.length+1:e+1,n[r]=a}if(a>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),a=r.toPoint(0),s=r.toPoint(t.length);n.position={start:a,end:s}}return n}case"#documentType":return n={type:"doctype"},va(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},va(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===da.svg?ve:fe;let r=-1;const a={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;ha.call(pa,n)||(a[n]=e.value)}const s=("svg"===e.schema.space?ca:la)(t.tagName,a,fa(e,t.childNodes));if(va(e,t,s),"template"===s.tagName){const n=t,r=n.sourceCodeLocation,a=r&&r.startTag&&ga(r.startTag),i=r&&r.endTag&&ga(r.endTag),o=ma(e,n.content);a&&i&&e.file&&(o.position={start:a.end,end:i.start}),s.content=o}return e.schema=n,s}(e,t),n}}function fa(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=ma(e,t[n]);r.push(a)}return r}function va(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=ga(n);if("element"===t.type){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const r={};let a;if(n.attrs)for(a in n.attrs)ha.call(n.attrs,a)&&(r[xe(e.schema,a).property]=ga(n.attrs[a]));n.startTag;const s=ga(n.startTag),i=n.endTag?ga(n.endTag):void 0,o={opening:s};i&&(o.closing=i),o.properties=r,t.data={position:o}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function ga(e){const t=ba({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=ba({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function ba(e){return e.line&&e.column?e:void 0}const ya={}.hasOwnProperty;function xa(e,t){const n=t||{};function r(t,...n){let a=r.invalid;const s=r.handlers;if(t&&ya.call(t,e)){const n=String(t[e]);a=ya.call(s,n)?s[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const wa={},_a={}.hasOwnProperty,ka=xa("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ea(e.children,n,t),ja(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=ve);const a=[];let s;if(e.properties)for(s in e.properties)if("children"!==s&&_a.call(e.properties,s)){const t=Na(r,s,e.properties[s]);t&&a.push(t)}const i=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:da[i],childNodes:[],parentNode:null};return o.childNodes=Ea(e.children,o,r),ja(e,o),"template"===e.tagName&&e.content&&(o.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ea(e.children,n,t),ja(e,n),n}(e.content,r)),o},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ja(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ja(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ja(e,t),t}}});function Na(e,t,n){const r=xe(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?D(n):Ee(n));const a={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=r.attribute.slice(0,e)),a.namespace=da[r.space]}return a}function Ea(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const s=ka(e[r],n);s.parentNode=t,a.push(s)}return a}function ja(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Sa=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ca=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ta="�";var Aa;!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"}(Aa||(Aa={}));const La="[CDATA[",Ia="doctype",Ma="script";function Pa(e){return e>=55296&&e<=57343}function Oa(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Ra(e){return e>=64976&&e<=65007||Ca.has(e)}var Da,Fa;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(Da||(Da={}));class Ua{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:a}=this,s=r+t,i=a+t;return{code:e,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Aa.EOF;return this._err(Da.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Aa.EOF;const n=this.html.charCodeAt(t);return n===Aa.CARRIAGE_RETURN?Aa.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Aa.EOF;let e=this.html.charCodeAt(this.pos);return e===Aa.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Aa.LINE_FEED):e===Aa.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Pa(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===Aa.LINE_FEED||e===Aa.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Oa(e)?this._err(Da.controlCharacterInInputStream):Ra(e)&&this._err(Da.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function $a(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(Fa||(Fa={}));const Ba=new Uint16Array(
vendor: 5,444 bytes, line 2
2'ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms�„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;æ«§ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapÓºÓ¾cr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpÔ¦Ôªon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋ĀipÕªÕ¯sts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0Ö£mallSquare;旼erySmallSquare;斪Ͱֺ\0Ö¿\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0Ú²f;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgÜ´Ü·r;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyÞ±Þµrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āeyß¶ß»dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;
vendor: 4,564 bytes, line 2
2쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;
vendor: 6,122 bytes, line 2
2쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;
vendor: 10,520 bytes, line 2
2䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(
vendor: 34,048 bytes, line 2
2e=>e.charCodeAt(0)));const Ha=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var za,qa,Ga,Wa,Ya,Va,Ka,Qa,Xa,Ja;function Za(e){return e>=za.ZERO&&e<=za.NINE}function es(e){return e>=za.UPPER_A&&e<=za.UPPER_F||e>=za.LOWER_A&&e<=za.LOWER_F}function ts(e){return e===za.EQUALS||function(e){return e>=za.UPPER_A&&e<=za.UPPER_Z||e>=za.LOWER_A&&e<=za.LOWER_Z||Za(e)}(e)}String.fromCodePoint,function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(za||(za={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(qa||(qa={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(Ga||(Ga={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Wa||(Wa={}));class ns{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Ga.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Wa.Strict}startEntity(e){this.decodeMode=e,this.state=Ga.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Ga.EntityStart:return e.charCodeAt(t)===za.NUM?(this.state=Ga.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Ga.NamedEntity,this.stateNamedEntity(e,t));case Ga.NumericStart:return this.stateNumericStart(e,t);case Ga.NumericDecimal:return this.stateNumericDecimal(e,t);case Ga.NumericHex:return this.stateNumericHex(e,t);case Ga.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===za.LOWER_X?(this.state=Ga.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Ga.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const a=n-t;this.result=this.result*Math.pow(r,a)+Number.parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Za(r)&&!es(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Za(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===za.SEMI)this.consumed+=1;else if(this.decodeMode===Wa.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Ha.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==za.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],a=(r&qa.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);if(this.treeIndex=rs(n,r,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return 0===this.result||this.decodeMode===Wa.Attribute&&(0===a||ts(s))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],a=(r&qa.VALUE_LENGTH)>>14,0!==a){if(s===za.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Wa.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&qa.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~qa.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Ga.NamedEntity:return 0===this.result||this.decodeMode===Wa.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Ga.NumericDecimal:return this.emitNumericEntity(0,2);case Ga.NumericHex:return this.emitNumericEntity(0,3);case Ga.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ga.EntityStart:return 0}}}function rs(e,t,n,r){const a=(t&qa.BRANCH_LENGTH)>>7,s=t&qa.JUMP_TABLE;if(0===a)return 0!==s&&r===s?n:-1;if(s){const t=r-s;return t<0||t>=a?-1:e[n+t]-1}let i=n,o=i+a-1;for(;i<=o;){const t=i+o>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+a];o=t-1}}return-1}(Ja=Ya||(Ya={})).HTML="http://www.w3.org/1999/xhtml",Ja.MATHML="http://www.w3.org/1998/Math/MathML",Ja.SVG="http://www.w3.org/2000/svg",Ja.XLINK="http://www.w3.org/1999/xlink",Ja.XML="http://www.w3.org/XML/1998/namespace",Ja.XMLNS="http://www.w3.org/2000/xmlns/",function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(Va||(Va={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Ka||(Ka={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(Qa||(Qa={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(Xa||(Xa={}));const as=new Map([[Qa.A,Xa.A],[Qa.ADDRESS,Xa.ADDRESS],[Qa.ANNOTATION_XML,Xa.ANNOTATION_XML],[Qa.APPLET,Xa.APPLET],[Qa.AREA,Xa.AREA],[Qa.ARTICLE,Xa.ARTICLE],[Qa.ASIDE,Xa.ASIDE],[Qa.B,Xa.B],[Qa.BASE,Xa.BASE],[Qa.BASEFONT,Xa.BASEFONT],[Qa.BGSOUND,Xa.BGSOUND],[Qa.BIG,Xa.BIG],[Qa.BLOCKQUOTE,Xa.BLOCKQUOTE],[Qa.BODY,Xa.BODY],[Qa.BR,Xa.BR],[Qa.BUTTON,Xa.BUTTON],[Qa.CAPTION,Xa.CAPTION],[Qa.CENTER,Xa.CENTER],[Qa.CODE,Xa.CODE],[Qa.COL,Xa.COL],[Qa.COLGROUP,Xa.COLGROUP],[Qa.DD,Xa.DD],[Qa.DESC,Xa.DESC],[Qa.DETAILS,Xa.DETAILS],[Qa.DIALOG,Xa.DIALOG],[Qa.DIR,Xa.DIR],[Qa.DIV,Xa.DIV],[Qa.DL,Xa.DL],[Qa.DT,Xa.DT],[Qa.EM,Xa.EM],[Qa.EMBED,Xa.EMBED],[Qa.FIELDSET,Xa.FIELDSET],[Qa.FIGCAPTION,Xa.FIGCAPTION],[Qa.FIGURE,Xa.FIGURE],[Qa.FONT,Xa.FONT],[Qa.FOOTER,Xa.FOOTER],[Qa.FOREIGN_OBJECT,Xa.FOREIGN_OBJECT],[Qa.FORM,Xa.FORM],[Qa.FRAME,Xa.FRAME],[Qa.FRAMESET,Xa.FRAMESET],[Qa.H1,Xa.H1],[Qa.H2,Xa.H2],[Qa.H3,Xa.H3],[Qa.H4,Xa.H4],[Qa.H5,Xa.H5],[Qa.H6,Xa.H6],[Qa.HEAD,Xa.HEAD],[Qa.HEADER,Xa.HEADER],[Qa.HGROUP,Xa.HGROUP],[Qa.HR,Xa.HR],[Qa.HTML,Xa.HTML],[Qa.I,Xa.I],[Qa.IMG,Xa.IMG],[Qa.IMAGE,Xa.IMAGE],[Qa.INPUT,Xa.INPUT],[Qa.IFRAME,Xa.IFRAME],[Qa.KEYGEN,Xa.KEYGEN],[Qa.LABEL,Xa.LABEL],[Qa.LI,Xa.LI],[Qa.LINK,Xa.LINK],[Qa.LISTING,Xa.LISTING],[Qa.MAIN,Xa.MAIN],[Qa.MALIGNMARK,Xa.MALIGNMARK],[Qa.MARQUEE,Xa.MARQUEE],[Qa.MATH,Xa.MATH],[Qa.MENU,Xa.MENU],[Qa.META,Xa.META],[Qa.MGLYPH,Xa.MGLYPH],[Qa.MI,Xa.MI],[Qa.MO,Xa.MO],[Qa.MN,Xa.MN],[Qa.MS,Xa.MS],[Qa.MTEXT,Xa.MTEXT],[Qa.NAV,Xa.NAV],[Qa.NOBR,Xa.NOBR],[Qa.NOFRAMES,Xa.NOFRAMES],[Qa.NOEMBED,Xa.NOEMBED],[Qa.NOSCRIPT,Xa.NOSCRIPT],[Qa.OBJECT,Xa.OBJECT],[Qa.OL,Xa.OL],[Qa.OPTGROUP,Xa.OPTGROUP],[Qa.OPTION,Xa.OPTION],[Qa.P,Xa.P],[Qa.PARAM,Xa.PARAM],[Qa.PLAINTEXT,Xa.PLAINTEXT],[Qa.PRE,Xa.PRE],[Qa.RB,Xa.RB],[Qa.RP,Xa.RP],[Qa.RT,Xa.RT],[Qa.RTC,Xa.RTC],[Qa.RUBY,Xa.RUBY],[Qa.S,Xa.S],[Qa.SCRIPT,Xa.SCRIPT],[Qa.SEARCH,Xa.SEARCH],[Qa.SECTION,Xa.SECTION],[Qa.SELECT,Xa.SELECT],[Qa.SOURCE,Xa.SOURCE],[Qa.SMALL,Xa.SMALL],[Qa.SPAN,Xa.SPAN],[Qa.STRIKE,Xa.STRIKE],[Qa.STRONG,Xa.STRONG],[Qa.STYLE,Xa.STYLE],[Qa.SUB,Xa.SUB],[Qa.SUMMARY,Xa.SUMMARY],[Qa.SUP,Xa.SUP],[Qa.TABLE,Xa.TABLE],[Qa.TBODY,Xa.TBODY],[Qa.TEMPLATE,Xa.TEMPLATE],[Qa.TEXTAREA,Xa.TEXTAREA],[Qa.TFOOT,Xa.TFOOT],[Qa.TD,Xa.TD],[Qa.TH,Xa.TH],[Qa.THEAD,Xa.THEAD],[Qa.TITLE,Xa.TITLE],[Qa.TR,Xa.TR],[Qa.TRACK,Xa.TRACK],[Qa.TT,Xa.TT],[Qa.U,Xa.U],[Qa.UL,Xa.UL],[Qa.SVG,Xa.SVG],[Qa.VAR,Xa.VAR],[Qa.WBR,Xa.WBR],[Qa.XMP,Xa.XMP]]);function ss(e){var t;return null!==(t=as.get(e))&&void 0!==t?t:Xa.UNKNOWN}const is=Xa,os={[Ya.HTML]:new Set([is.ADDRESS,is.APPLET,is.AREA,is.ARTICLE,is.ASIDE,is.BASE,is.BASEFONT,is.BGSOUND,is.BLOCKQUOTE,is.BODY,is.BR,is.BUTTON,is.CAPTION,is.CENTER,is.COL,is.COLGROUP,is.DD,is.DETAILS,is.DIR,is.DIV,is.DL,is.DT,is.EMBED,is.FIELDSET,is.FIGCAPTION,is.FIGURE,is.FOOTER,is.FORM,is.FRAME,is.FRAMESET,is.H1,is.H2,is.H3,is.H4,is.H5,is.H6,is.HEAD,is.HEADER,is.HGROUP,is.HR,is.HTML,is.IFRAME,is.IMG,is.INPUT,is.LI,is.LINK,is.LISTING,is.MAIN,is.MARQUEE,is.MENU,is.META,is.NAV,is.NOEMBED,is.NOFRAMES,is.NOSCRIPT,is.OBJECT,is.OL,is.P,is.PARAM,is.PLAINTEXT,is.PRE,is.SCRIPT,is.SECTION,is.SELECT,is.SOURCE,is.STYLE,is.SUMMARY,is.TABLE,is.TBODY,is.TD,is.TEMPLATE,is.TEXTAREA,is.TFOOT,is.TH,is.THEAD,is.TITLE,is.TR,is.TRACK,is.UL,is.WBR,is.XMP]),[Ya.MATHML]:new Set([is.MI,is.MO,is.MN,is.MS,is.MTEXT,is.ANNOTATION_XML]),[Ya.SVG]:new Set([is.TITLE,is.FOREIGN_OBJECT,is.DESC]),[Ya.XLINK]:new Set,[Ya.XML]:new Set,[Ya.XMLNS]:new Set},ls=new Set([is.H1,is.H2,is.H3,is.H4,is.H5,is.H6]);var cs;new Set([Qa.STYLE,Qa.SCRIPT,Qa.XMP,Qa.IFRAME,Qa.NOEMBED,Qa.NOFRAMES,Qa.PLAINTEXT]),function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(cs||(cs={}));const us={DATA:cs.DATA,RCDATA:cs.RCDATA,RAWTEXT:cs.RAWTEXT,SCRIPT_DATA:cs.SCRIPT_DATA,PLAINTEXT:cs.PLAINTEXT,CDATA_SECTION:cs.CDATA_SECTION};function ds(e){return e>=Aa.LATIN_CAPITAL_A&&e<=Aa.LATIN_CAPITAL_Z}function hs(e){return function(e){return e>=Aa.LATIN_SMALL_A&&e<=Aa.LATIN_SMALL_Z}(e)||ds(e)}function ps(e){return hs(e)||function(e){return e>=Aa.DIGIT_0&&e<=Aa.DIGIT_9}(e)}function ms(e){return e+32}function fs(e){return e===Aa.SPACE||e===Aa.LINE_FEED||e===Aa.TABULATION||e===Aa.FORM_FEED}function vs(e){return fs(e)||e===Aa.SOLIDUS||e===Aa.GREATER_THAN_SIGN}class gs{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=cs.DATA,this.returnState=cs.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Ua(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ns(Ba,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Da.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(Da.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===Aa.NULL?Da.nullCharacterReference:e>1114111?Da.characterReferenceOutsideUnicodeRange:Pa(e)?Da.surrogateCharacterReference:Ra(e)?Da.noncharacterCharacterReference:Oa(e)||e===Aa.CARRIAGE_RETURN?Da.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Fa.START_TAG,tagName:"",tagID:Xa.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Fa.END_TAG,tagName:"",tagID:Xa.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Fa.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Fa.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;null===$a(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(Da.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=ss(e.tagName),e.type===Fa.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(Da.endTagWithAttributes),e.selfClosing&&this._err(Da.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Fa.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Fa.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Fa.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Fa.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=fs(e)?Fa.WHITESPACE_CHARACTER:e===Aa.NULL?Fa.NULL_CHARACTER:Fa.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Fa.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=cs.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Wa.Attribute:Wa.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===cs.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===cs.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===cs.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case cs.DATA:this._stateData(e);break;case cs.RCDATA:this._stateRcdata(e);break;case cs.RAWTEXT:this._stateRawtext(e);break;case cs.SCRIPT_DATA:this._stateScriptData(e);break;case cs.PLAINTEXT:this._statePlaintext(e);break;case cs.TAG_OPEN:this._stateTagOpen(e);break;case cs.END_TAG_OPEN:this._stateEndTagOpen(e);break;case cs.TAG_NAME:this._stateTagName(e);break;case cs.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case cs.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case cs.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case cs.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case cs.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case cs.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case cs.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case cs.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case cs.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case cs.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case cs.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case cs.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case cs.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case cs.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case cs.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case cs.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case cs.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case cs.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case cs.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case cs.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case cs.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case cs.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case cs.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case cs.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case cs.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case cs.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case cs.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case cs.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case cs.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case cs.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case cs.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case cs.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case cs.BOGUS_COMMENT:this._stateBogusComment(e);break;case cs.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case cs.COMMENT_START:this._stateCommentStart(e);break;case cs.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case cs.COMMENT:this._stateComment(e);break;case cs.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case cs.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case cs.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case cs.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case cs.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case cs.COMMENT_END:this._stateCommentEnd(e);break;case cs.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case cs.DOCTYPE:this._stateDoctype(e);break;case cs.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case cs.DOCTYPE_NAME:this._stateDoctypeName(e);break;case cs.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case cs.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case cs.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case cs.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case cs.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case cs.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case cs.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case cs.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case cs.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case cs.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case cs.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case cs.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case cs.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case cs.CDATA_SECTION:this._stateCdataSection(e);break;case cs.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case cs.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case cs.CHARACTER_REFERENCE:this._stateCharacterReference();break;case cs.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Aa.LESS_THAN_SIGN:this.state=cs.TAG_OPEN;break;case Aa.AMPERSAND:this._startCharacterReference();break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this._emitCodePoint(e);break;case Aa.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Aa.AMPERSAND:this._startCharacterReference();break;case Aa.LESS_THAN_SIGN:this.state=cs.RCDATA_LESS_THAN_SIGN;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this._emitChars(Ta);break;case Aa.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Aa.LESS_THAN_SIGN:this.state=cs.RAWTEXT_LESS_THAN_SIGN;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this._emitChars(Ta);break;case Aa.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Aa.LESS_THAN_SIGN:this.state=cs.SCRIPT_DATA_LESS_THAN_SIGN;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this._emitChars(Ta);break;case Aa.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Aa.NULL:this._err(Da.unexpectedNullCharacter),this._emitChars(Ta);break;case Aa.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(hs(e))this._createStartTagToken(),this.state=cs.TAG_NAME,this._stateTagName(e);else switch(e){case Aa.EXCLAMATION_MARK:this.state=cs.MARKUP_DECLARATION_OPEN;break;case Aa.SOLIDUS:this.state=cs.END_TAG_OPEN;break;case Aa.QUESTION_MARK:this._err(Da.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=cs.BOGUS_COMMENT,this._stateBogusComment(e);break;case Aa.EOF:this._err(Da.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Da.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=cs.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(hs(e))this._createEndTagToken(),this.state=cs.TAG_NAME,this._stateTagName(e);else switch(e){case Aa.GREATER_THAN_SIGN:this._err(Da.missingEndTagName),this.state=cs.DATA;break;case Aa.EOF:this._err(Da.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(Da.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=cs.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:this.state=cs.BEFORE_ATTRIBUTE_NAME;break;case Aa.SOLIDUS:this.state=cs.SELF_CLOSING_START_TAG;break;case Aa.GREATER_THAN_SIGN:this.state=cs.DATA,this.emitCurrentTagToken();break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),t.tagName+=Ta;break;case Aa.EOF:this._err(Da.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(ds(e)?ms(e):e)}}_stateRcdataLessThanSign(e){e===Aa.SOLIDUS?this.state=cs.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=cs.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){hs(e)?(this.state=cs.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=cs.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=cs.BEFORE_ATTRIBUTE_NAME,
vendor: 15,961 bytes, line 2
2!1;case Aa.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=cs.SELF_CLOSING_START_TAG,!1;case Aa.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=cs.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cs.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Aa.SOLIDUS?this.state=cs.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=cs.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){hs(e)?(this.state=cs.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=cs.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cs.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Aa.SOLIDUS:this.state=cs.SCRIPT_DATA_END_TAG_OPEN;break;case Aa.EXCLAMATION_MARK:this.state=cs.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=cs.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){hs(e)?(this.state=cs.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=cs.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cs.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Aa.HYPHEN_MINUS?(this.state=cs.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=cs.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Aa.HYPHEN_MINUS?(this.state=cs.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=cs.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Aa.HYPHEN_MINUS:this.state=cs.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case Aa.LESS_THAN_SIGN:this.state=cs.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this._emitChars(Ta);break;case Aa.EOF:this._err(Da.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Aa.HYPHEN_MINUS:this.state=cs.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case Aa.LESS_THAN_SIGN:this.state=cs.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this.state=cs.SCRIPT_DATA_ESCAPED,this._emitChars(Ta);break;case Aa.EOF:this._err(Da.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cs.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Aa.HYPHEN_MINUS:this._emitChars("-");break;case Aa.LESS_THAN_SIGN:this.state=cs.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Aa.GREATER_THAN_SIGN:this.state=cs.SCRIPT_DATA,this._emitChars(">");break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this.state=cs.SCRIPT_DATA_ESCAPED,this._emitChars(Ta);break;case Aa.EOF:this._err(Da.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cs.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Aa.SOLIDUS?this.state=cs.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:hs(e)?(this._emitChars("<"),this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=cs.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){hs(e)?(this.state=cs.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=cs.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=cs.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Ma,!1)&&vs(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=cs.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Aa.HYPHEN_MINUS:this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case Aa.LESS_THAN_SIGN:this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this._emitChars(Ta);break;case Aa.EOF:this._err(Da.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Aa.HYPHEN_MINUS:this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case Aa.LESS_THAN_SIGN:this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ta);break;case Aa.EOF:this._err(Da.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Aa.HYPHEN_MINUS:this._emitChars("-");break;case Aa.LESS_THAN_SIGN:this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Aa.GREATER_THAN_SIGN:this.state=cs.SCRIPT_DATA,this._emitChars(">");break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ta);break;case Aa.EOF:this._err(Da.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Aa.SOLIDUS?(this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Ma,!1)&&vs(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=cs.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=cs.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:break;case Aa.SOLIDUS:case Aa.GREATER_THAN_SIGN:case Aa.EOF:this.state=cs.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Aa.EQUALS_SIGN:this._err(Da.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=cs.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=cs.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:case Aa.SOLIDUS:case Aa.GREATER_THAN_SIGN:case Aa.EOF:this._leaveAttrName(),this.state=cs.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Aa.EQUALS_SIGN:this._leaveAttrName(),this.state=cs.BEFORE_ATTRIBUTE_VALUE;break;case Aa.QUOTATION_MARK:case Aa.APOSTROPHE:case Aa.LESS_THAN_SIGN:this._err(Da.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this.currentAttr.name+=Ta;break;default:this.currentAttr.name+=String.fromCodePoint(ds(e)?ms(e):e)}}_stateAfterAttributeName(e){switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:break;case Aa.SOLIDUS:this.state=cs.SELF_CLOSING_START_TAG;break;case Aa.EQUALS_SIGN:this.state=cs.BEFORE_ATTRIBUTE_VALUE;break;case Aa.GREATER_THAN_SIGN:this.state=cs.DATA,this.emitCurrentTagToken();break;case Aa.EOF:this._err(Da.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=cs.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:break;case Aa.QUOTATION_MARK:this.state=cs.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Aa.APOSTROPHE:this.state=cs.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Aa.GREATER_THAN_SIGN:this._err(Da.missingAttributeValue),this.state=cs.DATA,this.emitCurrentTagToken();break;default:this.state=cs.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Aa.QUOTATION_MARK:this.state=cs.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Aa.AMPERSAND:this._startCharacterReference();break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this.currentAttr.value+=Ta;break;case Aa.EOF:this._err(Da.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Aa.APOSTROPHE:this.state=cs.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Aa.AMPERSAND:this._startCharacterReference();break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this.currentAttr.value+=Ta;break;case Aa.EOF:this._err(Da.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:this._leaveAttrValue(),this.state=cs.BEFORE_ATTRIBUTE_NAME;break;case Aa.AMPERSAND:this._startCharacterReference();break;case Aa.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=cs.DATA,this.emitCurrentTagToken();break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this.currentAttr.value+=Ta;break;case Aa.QUOTATION_MARK:case Aa.APOSTROPHE:case Aa.LESS_THAN_SIGN:case Aa.EQUALS_SIGN:case Aa.GRAVE_ACCENT:this._err(Da.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Aa.EOF:this._err(Da.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:this._leaveAttrValue(),this.state=cs.BEFORE_ATTRIBUTE_NAME;break;case Aa.SOLIDUS:this._leaveAttrValue(),this.state=cs.SELF_CLOSING_START_TAG;break;case Aa.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=cs.DATA,this.emitCurrentTagToken();break;case Aa.EOF:this._err(Da.eofInTag),this._emitEOFToken();break;default:this._err(Da.missingWhitespaceBetweenAttributes),this.state=cs.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Aa.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=cs.DATA,this.emitCurrentTagToken();break;case Aa.EOF:this._err(Da.eofInTag),this._emitEOFToken();break;default:this._err(Da.unexpectedSolidusInTag),this.state=cs.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Aa.GREATER_THAN_SIGN:this.state=cs.DATA,this.emitCurrentComment(t);break;case Aa.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),t.data+=Ta;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=cs.COMMENT_START):this._consumeSequenceIfMatch(Ia,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=cs.DOCTYPE):this._consumeSequenceIfMatch(La,!0)?this.inForeignNode?this.state=cs.CDATA_SECTION:(this._err(Da.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=cs.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Da.incorrectlyOpenedComment),this._createCommentToken(2),this.state=cs.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Aa.HYPHEN_MINUS:this.state=cs.COMMENT_START_DASH;break;case Aa.GREATER_THAN_SIGN:{this._err(Da.abruptClosingOfEmptyComment),this.state=cs.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=cs.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Aa.HYPHEN_MINUS:this.state=cs.COMMENT_END;break;case Aa.GREATER_THAN_SIGN:this._err(Da.abruptClosingOfEmptyComment),this.state=cs.DATA,this.emitCurrentComment(t);break;case Aa.EOF:this._err(Da.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=cs.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case Aa.HYPHEN_MINUS:this.state=cs.COMMENT_END_DASH;break;case Aa.LESS_THAN_SIGN:t.data+="<",this.state=cs.COMMENT_LESS_THAN_SIGN;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),t.data+=Ta;break;case Aa.EOF:this._err(Da.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Aa.EXCLAMATION_MARK:t.data+="!",this.state=cs.COMMENT_LESS_THAN_SIGN_BANG;break;case Aa.LESS_THAN_SIGN:t.data+="<";break;default:this.state=cs.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Aa.HYPHEN_MINUS?this.state=cs.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=cs.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Aa.HYPHEN_MINUS?this.state=cs.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=cs.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Aa.GREATER_THAN_SIGN&&e!==Aa.EOF&&this._err(Da.nestedComment),this.state=cs.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Aa.HYPHEN_MINUS:this.state=cs.COMMENT_END;break;case Aa.EOF:this._err(Da.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=cs.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Aa.GREATER_THAN_SIGN:this.state=cs.DATA,this.emitCurrentComment(t);break;case Aa.EXCLAMATION_MARK:this.state=cs.COMMENT_END_BANG;break;case Aa.HYPHEN_MINUS:t.data+="-";break;case Aa.EOF:this._err(Da.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=cs.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Aa.HYPHEN_MINUS:t.data+="--!",this.state=cs.COMMENT_END_DASH;break;case Aa.GREATER_THAN_SIGN:this._err(Da.incorrectlyClosedComment),this.state=cs.DATA,this.emitCurrentComment(t);break;case Aa.EOF:this._err(Da.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=cs.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:this.state=cs.BEFORE_DOCTYPE_NAME;break;case Aa.GREATER_THAN_SIGN:this.state=cs.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Aa.EOF:{this._err(Da.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(Da.missingWhitespaceBeforeDoctypeName),this.state=cs.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ds(e))this._createDoctypeToken(String.fromCharCode(ms(e))),this.state=cs.DOCTYPE_NAME;else switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),this._createDoctypeToken(Ta),this.state=cs.DOCTYPE_NAME;break;case Aa.GREATER_THAN_SIGN:{this._err(Da.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=cs.DATA;break}case Aa.EOF:{this._err(Da.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=cs.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:this.state=cs.AFTER_DOCTYPE_NAME;break;case Aa.GREATER_THAN_SIGN:this.state=cs.DATA,this.emitCurrentDoctype(t);break;
vendor: 4,273 bytes, line 2
2case Aa.NULL:this._err(Da.unexpectedNullCharacter),t.name+=Ta;break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(ds(e)?ms(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:break;case Aa.GREATER_THAN_SIGN:this.state=cs.DATA,this.emitCurrentDoctype(t);break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=cs.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=cs.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Da.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=cs.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:this.state=cs.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Aa.QUOTATION_MARK:this._err(Da.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=cs.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Aa.APOSTROPHE:this._err(Da.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=cs.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Aa.GREATER_THAN_SIGN:this._err(Da.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cs.DATA,this.emitCurrentDoctype(t);break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Da.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cs.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:break;case Aa.QUOTATION_MARK:t.publicId="",this.state=cs.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Aa.APOSTROPHE:t.publicId="",this.state=cs.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Aa.GREATER_THAN_SIGN:this._err(Da.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cs.DATA,this.emitCurrentDoctype(t);break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Da.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=cs.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Aa.QUOTATION_MARK:this.state=cs.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),t.publicId+=Ta;break;case Aa.GREATER_THAN_SIGN:this._err(Da.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cs.DATA;break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Aa.APOSTROPHE:this.state=cs.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),t.publicId+=Ta;break;case Aa.GREATER_THAN_SIGN:this._err(Da.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cs.DATA;break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:this.state=cs.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Aa.GREATER_THAN_SIGN:this.state=cs.DATA,this.emitCurrentDoctype(t);break;case Aa.QUOTATION_MARK:this._err(Da.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=cs.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Aa.APOSTROPHE:this._err(Da.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=cs.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;
vendor: 5,099 bytes, line 2
2default:this._err(Da.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cs.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:break;case Aa.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=cs.DATA;break;case Aa.QUOTATION_MARK:t.systemId="",this.state=cs.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Aa.APOSTROPHE:t.systemId="",this.state=cs.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Da.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cs.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:this.state=cs.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Aa.QUOTATION_MARK:this._err(Da.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=cs.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Aa.APOSTROPHE:this._err(Da.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=cs.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Aa.GREATER_THAN_SIGN:this._err(Da.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cs.DATA,this.emitCurrentDoctype(t);break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Da.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cs.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:break;case Aa.QUOTATION_MARK:t.systemId="",this.state=cs.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Aa.APOSTROPHE:t.systemId="",this.state=cs.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Aa.GREATER_THAN_SIGN:this._err(Da.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cs.DATA,this.emitCurrentDoctype(t);break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Da.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=cs.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Aa.QUOTATION_MARK:this.state=cs.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),t.systemId+=Ta;break;case Aa.GREATER_THAN_SIGN:this._err(Da.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cs.DATA;break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Aa.APOSTROPHE:this.state=cs.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter),t.systemId+=Ta;break;case Aa.GREATER_THAN_SIGN:this._err(Da.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=cs.DATA;break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Aa.SPACE:case Aa.LINE_FEED:case Aa.TABULATION:case Aa.FORM_FEED:break;case Aa.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=cs.DATA;break;case Aa.EOF:this._err(Da.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Da.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=cs.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Aa.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=cs.DATA;break;case Aa.NULL:this._err(Da.unexpectedNullCharacter);break;case Aa.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Aa.RIGHT_SQUARE_BRACKET:this.state=cs.CDATA_SECTION_BRACKET;break;case Aa.EOF:this._err(Da.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Aa.RIGHT_SQUARE_BRACKET?this.state=cs.CDATA_SECTION_END:(this._emitChars("]"),this.state=cs.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Aa.GREATER_THAN_SIGN:this.state=cs.DATA;break;case Aa.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=cs.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}
vendor: 4,196 bytes, line 2
20===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(Aa.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ps(this.preprocessor.peek(1))?cs.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){ps(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Aa.SEMICOLON&&this._err(Da.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const bs=new Set([Xa.DD,Xa.DT,Xa.LI,Xa.OPTGROUP,Xa.OPTION,Xa.P,Xa.RB,Xa.RP,Xa.RT,Xa.RTC]),ys=new Set([...bs,Xa.CAPTION,Xa.COLGROUP,Xa.TBODY,Xa.TD,Xa.TFOOT,Xa.TH,Xa.THEAD,Xa.TR]),xs=new Set([Xa.APPLET,Xa.CAPTION,Xa.HTML,Xa.MARQUEE,Xa.OBJECT,Xa.TABLE,Xa.TD,Xa.TEMPLATE,Xa.TH]),ws=new Set([...xs,Xa.OL,Xa.UL]),_s=new Set([...xs,Xa.BUTTON]),ks=new Set([Xa.ANNOTATION_XML,Xa.MI,Xa.MN,Xa.MO,Xa.MS,Xa.MTEXT]),Ns=new Set([Xa.DESC,Xa.FOREIGN_OBJECT,Xa.TITLE]),Es=new Set([Xa.TR,Xa.TEMPLATE,Xa.HTML]),js=new Set([Xa.TBODY,Xa.TFOOT,Xa.THEAD,Xa.TEMPLATE,Xa.HTML]),Ss=new Set([Xa.TABLE,Xa.TEMPLATE,Xa.HTML]),Cs=new Set([Xa.TD,Xa.TH]);class Ts{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Xa.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===Xa.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ya.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Ya.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ls,Ya.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Cs,Ya.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Ss,Ya.HTML)}clearBackToTableBodyContext(){this.clearBackTo(js,Ya.HTML)}clearBackToTableRowContext(){this.clearBackTo(Es,Ya.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Xa.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Xa.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Ya.HTML:if(r===e)return!0;
vendor: 10,306 bytes, line 2
2if(t.has(r))return!1;break;case Ya.SVG:if(Ns.has(r))return!1;break;case Ya.MATHML:if(ks.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,xs)}hasInListItemScope(e){return this.hasInDynamicScope(e,ws)}hasInButtonScope(e){return this.hasInDynamicScope(e,_s)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Ya.HTML:if(ls.has(t))return!0;if(xs.has(t))return!1;break;case Ya.SVG:if(Ns.has(t))return!1;break;case Ya.MATHML:if(ks.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ya.HTML)switch(this.tagIDs[t]){case e:return!0;case Xa.TABLE:case Xa.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Ya.HTML)switch(this.tagIDs[e]){case Xa.TBODY:case Xa.THEAD:case Xa.TFOOT:return!0;case Xa.TABLE:case Xa.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ya.HTML)switch(this.tagIDs[t]){case e:return!0;case Xa.OPTION:case Xa.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&bs.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&ys.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&ys.has(this.currentTagId);)this.pop()}}var As;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(As||(As={}));const Ls={type:As.Marker};class Is{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,a=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===As.Marker)break;const{element:i}=t;if(this.treeAdapter.getTagName(i)===a&&this.treeAdapter.getNamespaceURI(i)===s){const t=this.treeAdapter.getAttrList(i);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map(e=>[e.name,e.value]));let a=0;for(let e=0;e<n.length;e++){const t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(a+=1,a>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(Ls)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:As.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:As.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Ls);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===As.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===As.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===As.Element&&t.element===e)}}const Ms={createDocument:()=>({nodeName:"#document",mode:Ka.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const a=e.childNodes.find(e=>"#documentType"===e.nodeName);if(a)a.name=t,a.publicId=n,a.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ms.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ms.isTextNode(n))return void(n.value+=t)}Ms.appendChild(e,Ms.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ms.isTextNode(r)?r.value+=t:Ms.insertBefore(e,Ms.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Ps="html",Os=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Rs=[...Os,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ds=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Fs=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Us=[...Fs,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function $s(e,t){return t.some(t=>e.startsWith(t))}const Bs=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Hs=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ya.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ya.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ya.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ya.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ya.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ya.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ya.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ya.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ya.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ya.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ya.XMLNS}]]),zs=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),qs=new Set([Xa.B,Xa.BIG,Xa.BLOCKQUOTE,Xa.BODY,Xa.BR,Xa.CENTER,Xa.CODE,Xa.DD,Xa.DIV,Xa.DL,Xa.DT,Xa.EM,Xa.EMBED,X
vendor: 9,645 bytes, line 2
2a.H1,Xa.H2,Xa.H3,Xa.H4,Xa.H5,Xa.H6,Xa.HEAD,Xa.HR,Xa.I,Xa.IMG,Xa.LI,Xa.LISTING,Xa.MENU,Xa.META,Xa.NOBR,Xa.OL,Xa.P,Xa.PRE,Xa.RUBY,Xa.S,Xa.SMALL,Xa.SPAN,Xa.STRONG,Xa.STRIKE,Xa.SUB,Xa.SUP,Xa.TABLE,Xa.TT,Xa.U,Xa.UL,Xa.VAR]);function Gs(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function Ws(e){for(let t=0;t<e.attrs.length;t++){const n=Bs.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function Ys(e){for(let t=0;t<e.attrs.length;t++){const n=Hs.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}var Vs;!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(Vs||(Vs={}));const Ks={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Qs=new Set([Xa.TABLE,Xa.TBODY,Xa.TFOOT,Xa.THEAD,Xa.TR]),Xs={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ms,onParseError:null};class Js{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Vs.INITIAL,this.originalInsertionMode=Vs.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Xs,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new gs(this.options,this),this.activeFormattingElements=new Is(this.treeAdapter),this.fragmentContextID=n?ss(this.treeAdapter.getTagName(n)):Xa.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new Ts(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...Xs,...t};null!=e||(e=n.treeAdapter.createElement(Qa.TEMPLATE,Ya.HTML,[]));const r=n.treeAdapter.createElement("documentmock",Ya.HTML,[]),a=new this(n,r,e);return a.fragmentContextID===Xa.TEMPLATE&&a.tmplInsertionModeStack.unshift(Vs.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const a=null!==(r=e.location)&&void 0!==r?r:Ks,s={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(e,t,n){var r,a;null===(a=(r=this.treeAdapter).onItemPush)||void 0===a||a.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===Ya.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Ya.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Vs.TEXT}switchToPlaintextParsing(){this.insertionMode=Vs.TEXT,this.originalInsertionMode=Vs.IN_BODY,this.tokenizer.state=us.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Qa.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ya.HTML)switch(this.fragmentContextID){case Xa.TITLE:case Xa.TEXTAREA:this.tokenizer.state=us.RCDATA;break;case Xa.STYLE:case Xa.XMP:case Xa.IFRAME:case Xa.NOEMBED:case Xa.NOFRAMES:case Xa.NOSCRIPT:this.tokenizer.state=us.RAWTEXT;break;case Xa.SCRIPT:this.tokenizer.state=us.SCRIPT_DATA;break;case Xa.PLAINTEXT:this.tokenizer.state=us.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,Ya.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Ya.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Qa.HTML,Ya.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Xa.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,s=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===Fa.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==Xa.SVG||this.treeAdapter.getTagName(t)!==Qa.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Ya.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Xa.MGLYPH||e.tagID===Xa.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,Ya.HTML))}_processToken(e){switch(e.type){case Fa.CHARACTER:this.onCharacter(e);break;case Fa.NULL_CHARACTER:this.onNullCharacter(e);break;case Fa.COMMENT:this.onComment(e);break;case Fa.DOCTYPE:this.onDoctype(e);break;case Fa.START_TAG:this._processStartTag(e);break;case Fa.END_TAG:this.onEndTag(e);break;case Fa.EOF:this.onEof(e);break;case Fa.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return function(e,t,n,r){return(!r||r===Ya.HTML)&&function(e,t,n){if(t===Ya.MATHML&&e===Xa.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===Va.ENCODING){const t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===Ya.SVG&&(e===Xa.FOREIGN_OBJECT||e===Xa.DESC||e===Xa.TITLE)}
vendor: 15,838 bytes, line 2
2(e,t,n)||(!r||r===Ya.MATHML)&&function(e,t){return t===Ya.MATHML&&(e===Xa.MI||e===Xa.MO||e===Xa.MN||e===Xa.MS||e===Xa.MTEXT)}(e,t)}(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(e=>e.type===As.Marker||this.openElements.contains(e.element));for(let n=-1===t?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Vs.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Xa.P),this.openElements.popUntilTagNamePopped(Xa.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Xa.TR:return void(this.insertionMode=Vs.IN_ROW);case Xa.TBODY:case Xa.THEAD:case Xa.TFOOT:return void(this.insertionMode=Vs.IN_TABLE_BODY);case Xa.CAPTION:return void(this.insertionMode=Vs.IN_CAPTION);case Xa.COLGROUP:return void(this.insertionMode=Vs.IN_COLUMN_GROUP);case Xa.TABLE:return void(this.insertionMode=Vs.IN_TABLE);case Xa.BODY:return void(this.insertionMode=Vs.IN_BODY);case Xa.FRAMESET:return void(this.insertionMode=Vs.IN_FRAMESET);case Xa.SELECT:return void this._resetInsertionModeForSelect(e);case Xa.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Xa.HTML:return void(this.insertionMode=this.headElement?Vs.AFTER_HEAD:Vs.BEFORE_HEAD);case Xa.TD:case Xa.TH:if(e>0)return void(this.insertionMode=Vs.IN_CELL);break;case Xa.HEAD:if(e>0)return void(this.insertionMode=Vs.IN_HEAD)}this.insertionMode=Vs.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Xa.TEMPLATE)break;if(e===Xa.TABLE)return void(this.insertionMode=Vs.IN_SELECT_IN_TABLE)}this.insertionMode=Vs.IN_SELECT}_isElementCausesFosterParenting(e){return Qs.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case Xa.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Ya.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case Xa.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return os[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Vs.INITIAL:li(this,e);break;case Vs.BEFORE_HTML:ci(this,e);break;case Vs.BEFORE_HEAD:ui(this,e);break;case Vs.IN_HEAD:pi(this,e);break;case Vs.IN_HEAD_NO_SCRIPT:mi(this,e);break;case Vs.AFTER_HEAD:fi(this,e);break;case Vs.IN_BODY:case Vs.IN_CAPTION:case Vs.IN_CELL:case Vs.IN_TEMPLATE:bi(this,e);break;case Vs.TEXT:case Vs.IN_SELECT:case Vs.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Vs.IN_TABLE:case Vs.IN_TABLE_BODY:case Vs.IN_ROW:Si(this,e);break;case Vs.IN_TABLE_TEXT:Ii(this,e);break;case Vs.IN_COLUMN_GROUP:Ri(this,e);break;case Vs.AFTER_BODY:Gi(this,e);break;case Vs.AFTER_AFTER_BODY:Wi(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=Ta,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Vs.INITIAL:li(this,e);break;case Vs.BEFORE_HTML:ci(this,e);break;case Vs.BEFORE_HEAD:ui(this,e);break;case Vs.IN_HEAD:pi(this,e);break;case Vs.IN_HEAD_NO_SCRIPT:mi(this,e);break;case Vs.AFTER_HEAD:fi(this,e);break;case Vs.TEXT:this._insertCharacters(e);break;case Vs.IN_TABLE:case Vs.IN_TABLE_BODY:case Vs.IN_ROW:Si(this,e);break;case Vs.IN_COLUMN_GROUP:Ri(this,e);break;case Vs.AFTER_BODY:Gi(this,e);break;case Vs.AFTER_AFTER_BODY:Wi(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)ii(this,e);else switch(this.insertionMode){case Vs.INITIAL:case Vs.BEFORE_HTML:case Vs.BEFORE_HEAD:case Vs.IN_HEAD:case Vs.IN_HEAD_NO_SCRIPT:case Vs.AFTER_HEAD:case Vs.IN_BODY:case Vs.IN_TABLE:case Vs.IN_CAPTION:case Vs.IN_COLUMN_GROUP:case Vs.IN_TABLE_BODY:case Vs.IN_ROW:case Vs.IN_CELL:case Vs.IN_SELECT:case Vs.IN_SELECT_IN_TABLE:case Vs.IN_TEMPLATE:case Vs.IN_FRAMESET:case Vs.AFTER_FRAMESET:ii(this,e);break;case Vs.IN_TABLE_TEXT:Mi(this,e);break;case Vs.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Vs.AFTER_AFTER_BODY:case Vs.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Vs.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ka.QUIRKS:function(e){if(e.name!==Ps)return Ka.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Ka.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),Ds.has(n))return Ka.QUIRKS;let e=null===t?Rs:Os;if($s(n,e))return Ka.QUIRKS;if(e=null===t?Fs:Us,$s(n,e))return Ka.LIMITED_QUIRKS}return Ka.NO_QUIRKS}(t);(function(e){return e.name===Ps&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,Da.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Vs.BEFORE_HTML}(this,e);break;case Vs.BEFORE_HEAD:case Vs.IN_HEAD:case Vs.IN_HEAD_NO_SCRIPT:case Vs.AFTER_HEAD:this._err(e,Da.misplacedDoctype);break;case Vs.IN_TABLE_TEXT:Mi(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Da.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===Xa.FONT&&e.attrs.some(({name:e})=>e===Va.COLOR||e===Va.SIZE||e===Va.FACE)||qs.has(t)}(t))Yi(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ya.MATHML?Gs(t):r===Ya.SVG&&(function(e){const t=zs.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=ss(e.tagName))}(t),Ws(t)),Ys(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Vs.INITIAL:li(this,e);break;case Vs.BEFORE_HTML:!function(e,t){t.tagID===Xa.HTML?(e._insertElement(t,Ya.HTML),e.insertionMode=Vs.BEFORE_HEAD):ci(e,t)}(this,e);break;case Vs.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Xa.HTML:ki(e,t);break;case Xa.HEAD:e._insertElement(t,Ya.HTML),e.headElement=e.openElements.current,e.insertionMode=Vs.IN_HEAD;break;default:ui(e,t)}}(this,e);break;case Vs.IN_HEAD:di(this,e);break;case Vs.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Xa.HTML:ki(e,t);break;case Xa.BASEFONT:case Xa.BGSOUND:case Xa.HEAD:case Xa.LINK:case Xa.META:case Xa.NOFRAMES:case Xa.STYLE:di(e,t);break;case Xa.NOSCRIPT:e._err(t,Da.nestedNoscriptInHead);break;default:mi(e,t)}}(this,e);break;case Vs.AFTER_HEAD:!function(e,t){switch(t.tagID){case Xa.HTML:ki(e,t);break;case Xa.BODY:e._insertElement(t,Ya.HTML),e.framesetOk=!1,e.insertionMode=Vs.IN_BODY;break;case Xa.FRAMESET:e._insertElement(t,Ya.HTML),e.insertionMode=Vs.IN_FRAMESET;break;case Xa.BASE:case Xa.BASEFONT:case Xa.BGSOUND:case Xa.LINK:case Xa.META:case Xa.NOFRAMES:case Xa.SCRIPT:case Xa.STYLE:case Xa.TEMPLATE:case Xa.TITLE:e._err(t,Da.abandonedHeadElementChild),e.openElements.push(e.headElement,Xa.HEAD),di(e,t),e.openElements.remove(e.headElement);break;case Xa.HEAD:e._err(t,Da.misplacedStartTagForHeadElement);break;default:fi(e,t)}}(this,e);break;case Vs.IN_BODY:ki(this,e);break;case Vs.IN_TABLE:Ci(this,e);break;case Vs.IN_TABLE_TEXT:Mi(this,e);break;case Vs.IN_CAPTION:!function(e,t){const n=t.tagID;Pi.has(n)?e.openElements.hasInTableScope(Xa.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Xa.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Vs.IN_TABLE,Ci(e,t)):ki(e,t)}(this,e);break;case Vs.IN_COLUMN_GROUP:Oi(this,e);break;case Vs.IN_TABLE_BODY:Di(this,e);break;case Vs.IN_ROW:Ui(this,e);break;case Vs.IN_CELL:!function(e,t){const n=t.tagID;Pi.has(n)?(e.openElements.hasInTableScope(Xa.TD)||e.openElements.hasInTableScope(Xa.TH))&&(e._closeTableCell(),Ui(e,t)):ki(e,t)}(this,e);break;case Vs.IN_SELECT:Bi(this,e);break;case Vs.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Xa.CAPTION||n===Xa.TABLE||n===Xa.TBODY||n===Xa.TFOOT||n===Xa.THEAD||n===Xa.TR||n===Xa.TD||n===Xa.TH?(e.openElements.popUntilTagNamePopped(Xa.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Bi(e,t)}(this,e);break;case Vs.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Xa.BASE:case Xa.BASEFONT:case Xa.BGSOUND:case Xa.LINK:case Xa.META:case Xa.NOFRAMES:case Xa.SCRIPT:case Xa.STYLE:case Xa.TEMPLATE:case Xa.TITLE:di(e,t);break;case Xa.CAPTION:case Xa.COLGROUP:case Xa.TBODY:case Xa.TFOOT:case Xa.THEAD:e.tmplInsertionModeStack[0]=Vs.IN_TABLE,e.insertionMode=Vs.IN_TABLE,Ci(e,t);break;case Xa.COL:e.tmplInsertionModeStack[0]=Vs.IN_COLUMN_GROUP,e.insertionMode=Vs.IN_COLUMN_GROUP,Oi(e,t);break;case Xa.TR:e.tmplInsertionModeStack[0]=Vs.IN_TABLE_BODY,e.insertionMode=Vs.IN_TABLE_BODY,Di(e,t);break;case Xa.TD:case Xa.TH:e.tmplInsertionModeStack[0]=Vs.IN_ROW,e.insertionMode=Vs.IN_ROW,Ui(e,t);break;default:e.tmplInsertionModeStack[0]=Vs.IN_BODY,e.insertionMode=Vs.IN_BODY,ki(e,t)}}(this,e);break;case Vs.AFTER_BODY:!function(e,t){t.tagID===Xa.HTML?ki(e,t):Gi(e,t)}(this,e);break;case Vs.IN_FRAMESET:!function(e,t){switch(t.tagID){case Xa.HTML:ki(e,t);break;case Xa.FRAMESET:e._insertElement(t,Ya.HTML);break;case Xa.FRAME:e._appendElement(t,Ya.HTML),t.ackSelfClosing=!0;break;case Xa.NOFRAMES:di(e,t)}}(this,e);break;case Vs.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Xa.HTML:ki(e,t);break;case Xa.NOFRAMES:di(e,t)}}(this,e);break;case Vs.AFTER_AFTER_BODY:!function(e,t){t.tagID===Xa.HTML?ki(e,t):Wi(e,t)}(this,e);break;case Vs.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Xa.HTML:ki(e,t);break;case Xa.NOFRAMES:di(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Xa.P||t.tagID===Xa.BR)return Yi(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Ya.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Vs.INITIAL:li(this,e);break;case Vs.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==Xa.HTML&&n!==Xa.HEAD&&n!==Xa.BODY&&n!==Xa.BR||ci(e,t)}(this,e);break;case Vs.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===Xa.HEAD||n===Xa.BODY||n===Xa.HTML||n===Xa.BR?ui(e,t):e._err(t,Da.endTagWithoutMatchingOpenElement)}(this,e);break;case Vs.IN_HEAD:!function(e,t){switch(t.tagID){case Xa.HEAD:e.openElements.pop(),e.insertionMode=Vs.AFTER_HEAD;break;case Xa.BODY:case Xa.BR:case Xa.HTML:pi(e,t);break;case Xa.TEMPLATE:hi(e,t);break;default:e._err(t,Da.endTagWithoutMatchingOpenElement)}}(this,e);break;case Vs.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Xa.NOSCRIPT:e.openElements.pop(),e.insertionMode=Vs.IN_HEAD;break;case Xa.BR:mi(e,t);break;default:e._err(t,Da.endTagWithoutMatchingOpenElement)}}(this,e);break;case Vs.AFTER_HEAD:!function(e,t){switch(t.tagID){case Xa.BODY:case Xa.HTML:case Xa.BR:fi(e,t);break;case Xa.TEMPLATE:hi(e,t);break;default:e._err(t,Da.endTagWithoutMatchingOpenElement)}}(this,e);break;case Vs.IN_BODY:Ei(this,e);break;case Vs.TEXT:!function(e,t){var n;t.tagID===Xa.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Vs.IN_TABLE:Ti(this,e);break;case Vs.IN_TABLE_TEXT:Mi(this,e);break;case Vs.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Xa.CAPTION:case Xa.TABLE:e.openElements.hasInTableScope(Xa.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Xa.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Vs.IN_TABLE,n===Xa.TABLE&&Ti(e,t));break;case Xa.BODY:case Xa.COL:case Xa.COLGROUP:case Xa.HTML:case Xa.TBODY:case Xa.TD:case Xa.TFOOT:case Xa.TH:case Xa.THEAD:case Xa.TR:break;default:Ei(e,t)}}(this,e);break;case Vs.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case Xa.COLGROUP:e.openElements.currentTagId===Xa.COLGROUP&&(e.openElements.pop(),e.insertionMode=Vs.IN_TABLE);break;case Xa.TEMPLATE:hi(e,t);break;case Xa.COL:break;default:Ri(e,t)}}(this,e);break;case Vs.IN_TABLE_BODY:Fi(this,e);break;case Vs.IN_ROW:$i(this,e);break;case Vs.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case Xa.TD:case Xa.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Vs.IN_ROW);break;case Xa.TABLE:case Xa.TBODY:case Xa.TFOOT:case Xa.THEAD:case Xa.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),$i(e,t));break;case Xa.BODY:case Xa.CAPTION:case Xa.COL:case Xa.COLGROUP:case Xa.HTML:break;default:Ei(e,t)}}(this,e);break;case Vs.IN_SELECT:Hi(this,e);break;case Vs.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Xa.CAPTION||n===Xa.TABLE||n===Xa.TBODY||n===Xa.TFOOT||n===Xa.THEAD||n===Xa.TR||n===Xa.TD||n===Xa.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Xa.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Hi(e,t)}(this,e);break;case Vs.IN_TEMPLATE:!function(e,t){t.tagID===Xa.TEMPLATE&&hi(e,t)}(this,e);break;case Vs.AFTER_BODY:qi(this,e);break;case Vs.IN_FRAMESET:!function(e,t){t.tagID!==Xa.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===Xa.FRAMESET||(e.insertionMode=Vs.AFTER_FRAMESET))}(this,e);break;case Vs.AFTER_FRAMESET:!function(e,t){t.tagID===Xa.HTML&&(e.insertionMode=Vs.AFTER_AFTER_FRAMESET)}(this,e);break;case Vs.AFTER_AFTER_BODY:Wi(this,e)}}onEof(e){switch(this.insertionMode){case Vs.INITIAL:li(this,e);break;case Vs.BEFORE_HTML:ci(this,e);break;case Vs.BEFORE_HEAD:ui(this,e);break;case Vs.IN_HEAD:pi(this,e);break;case Vs.IN_HEAD_NO_SCRIPT:mi(this,e);break;case Vs.AFTER_HEAD:fi(this,e);break;case Vs.IN_BODY:case Vs.IN_TABLE:case Vs.IN_CAPTION:case Vs.IN_COLUMN_GROUP:case Vs.IN_TABLE_BODY:case Vs.IN_ROW:case Vs.IN_CELL:case Vs.IN_SELECT:case Vs.IN_SELECT_IN_TABLE:ji(this,e);break;case Vs.TEXT:!function(e,t){e._err(t,Da.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Vs.IN_TABLE_TEXT:Mi(this,e);break;case Vs.IN_TEMPLATE:zi(this,e);break;case Vs.AFTER_BODY:case Vs.IN_FRAMESET:case Vs.AFTER_FRAMESET:case Vs.AFTER_AFTER_BODY:case Vs.AFTER_AFTER_FRAMESET:oi(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCo
vendor: 27,272 bytes, line 2
2deAt(0)===Aa.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Vs.IN_HEAD:case Vs.IN_HEAD_NO_SCRIPT:case Vs.AFTER_HEAD:case Vs.TEXT:case Vs.IN_COLUMN_GROUP:case Vs.IN_SELECT:case Vs.IN_SELECT_IN_TABLE:case Vs.IN_FRAMESET:case Vs.AFTER_FRAMESET:this._insertCharacters(e);break;case Vs.IN_BODY:case Vs.IN_CAPTION:case Vs.IN_CELL:case Vs.IN_TEMPLATE:case Vs.AFTER_BODY:case Vs.AFTER_AFTER_BODY:case Vs.AFTER_AFTER_FRAMESET:gi(this,e);break;case Vs.IN_TABLE:case Vs.IN_TABLE_BODY:case Vs.IN_ROW:Si(this,e);break;case Vs.IN_TABLE_TEXT:Li(this,e)}}}function Zs(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ni(e,t),n}function ei(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function ti(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let s=0,i=a;i!==n;s++,i=a){a=e.openElements.getCommonAncestor(i);const n=e.activeFormattingElements.getElementEntry(i),o=n&&s>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(i)):(i=ni(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function ni(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function ri(e,t,n){const r=ss(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);r===Xa.TEMPLATE&&a===Ya.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function ai(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,s=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,a.tagID)}function si(e,t){for(let n=0;n<8;n++){const n=Zs(e,t);if(!n)break;const r=ei(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const a=ti(e,r,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),s&&ri(e,s,a),ai(e,r,n)}}function ii(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function oi(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function li(e,t){e._err(t,Da.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ka.QUIRKS),e.insertionMode=Vs.BEFORE_HTML,e._processToken(t)}function ci(e,t){e._insertFakeRootElement(),e.insertionMode=Vs.BEFORE_HEAD,e._processToken(t)}function ui(e,t){e._insertFakeElement(Qa.HEAD,Xa.HEAD),e.headElement=e.openElements.current,e.insertionMode=Vs.IN_HEAD,e._processToken(t)}function di(e,t){switch(t.tagID){case Xa.HTML:ki(e,t);break;case Xa.BASE:case Xa.BASEFONT:case Xa.BGSOUND:case Xa.LINK:case Xa.META:e._appendElement(t,Ya.HTML),t.ackSelfClosing=!0;break;case Xa.TITLE:e._switchToTextParsing(t,us.RCDATA);break;case Xa.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,us.RAWTEXT):(e._insertElement(t,Ya.HTML),e.insertionMode=Vs.IN_HEAD_NO_SCRIPT);break;case Xa.NOFRAMES:case Xa.STYLE:e._switchToTextParsing(t,us.RAWTEXT);break;case Xa.SCRIPT:e._switchToTextParsing(t,us.SCRIPT_DATA);break;case Xa.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Vs.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Vs.IN_TEMPLATE);break;case Xa.HEAD:e._err(t,Da.misplacedStartTagForHeadElement);break;default:pi(e,t)}}function hi(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==Xa.TEMPLATE&&e._err(t,Da.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Xa.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Da.endTagWithoutMatchingOpenElement)}function pi(e,t){e.openElements.pop(),e.insertionMode=Vs.AFTER_HEAD,e._processToken(t)}function mi(e,t){const n=t.type===Fa.EOF?Da.openElementsLeftAfterEof:Da.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Vs.IN_HEAD,e._processToken(t)}function fi(e,t){e._insertFakeElement(Qa.BODY,Xa.BODY),e.insertionMode=Vs.IN_BODY,vi(e,t)}function vi(e,t){switch(t.type){case Fa.CHARACTER:bi(e,t);break;case Fa.WHITESPACE_CHARACTER:gi(e,t);break;case Fa.COMMENT:ii(e,t);break;case Fa.START_TAG:ki(e,t);break;case Fa.END_TAG:Ei(e,t);break;case Fa.EOF:ji(e,t)}}function gi(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function bi(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function yi(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ya.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function xi(e){const t=$a(e,Va.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function wi(e,t){e._switchToTextParsing(t,us.RAWTEXT)}function _i(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ya.HTML)}function ki(e,t){switch(t.tagID){case Xa.I:case Xa.S:case Xa.B:case Xa.U:case Xa.EM:case Xa.TT:case Xa.BIG:case Xa.CODE:case Xa.FONT:case Xa.SMALL:case Xa.STRIKE:case Xa.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ya.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Xa.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Qa.A);n&&(si(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ya.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Xa.H1:case Xa.H2:case Xa.H3:case Xa.H4:case Xa.H5:case Xa.H6:!function(e,t){e.openElements.hasInButtonScope(Xa.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&ls.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Ya.HTML)}(e,t);break;case Xa.P:case Xa.DL:case Xa.OL:case Xa.UL:case Xa.DIV:case Xa.DIR:case Xa.NAV:case Xa.MAIN:case Xa.MENU:case Xa.ASIDE:case Xa.CENTER:case Xa.FIGURE:case Xa.FOOTER:case Xa.HEADER:case Xa.HGROUP:case Xa.DIALOG:case Xa.DETAILS:case Xa.ADDRESS:case Xa.ARTICLE:case Xa.SEARCH:case Xa.SECTION:case Xa.SUMMARY:case Xa.FIELDSET:case Xa.BLOCKQUOTE:case Xa.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(Xa.P)&&e._closePElement(),e._insertElement(t,Ya.HTML)}(e,t);break;case Xa.LI:case Xa.DD:case Xa.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.tagIDs[t];if(n===Xa.LI&&r===Xa.LI||(n===Xa.DD||n===Xa.DT)&&(r===Xa.DD||r===Xa.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==Xa.ADDRESS&&r!==Xa.DIV&&r!==Xa.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(Xa.P)&&e._closePElement(),e._insertElement(t,Ya.HTML)}(e,t);break;case Xa.BR:case Xa.IMG:case Xa.WBR:case Xa.AREA:case Xa.EMBED:case Xa.KEYGEN:yi(e,t);break;case Xa.HR:!function(e,t){e.openElements.hasInButtonScope(Xa.P)&&e._closePElement(),e._appendElement(t,Ya.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case Xa.RB:case Xa.RTC:!function(e,t){e.openElements.hasInScope(Xa.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ya.HTML)}(e,t);break;case Xa.RT:case Xa.RP:!function(e,t){e.openElements.hasInScope(Xa.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Xa.RTC),e._insertElement(t,Ya.HTML)}(e,t);break;case Xa.PRE:case Xa.LISTING:!function(e,t){e.openElements.hasInButtonScope(Xa.P)&&e._closePElement(),e._insertElement(t,Ya.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Xa.XMP:!function(e,t){e.openElements.hasInButtonScope(Xa.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,us.RAWTEXT)}(e,t);break;case Xa.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Ws(t),Ys(t),t.selfClosing?e._appendElement(t,Ya.SVG):e._insertElement(t,Ya.SVG),t.ackSelfClosing=!0}(e,t);break;case Xa.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case Xa.BASE:case Xa.LINK:case Xa.META:case Xa.STYLE:case Xa.TITLE:case Xa.SCRIPT:case Xa.BGSOUND:case Xa.BASEFONT:case Xa.TEMPLATE:di(e,t);break;case Xa.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Xa.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Xa.P)&&e._closePElement(),e._insertElement(t,Ya.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case Xa.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Xa.NOBR)&&(si(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ya.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Xa.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Gs(t),Ys(t),t.selfClosing?e._appendElement(t,Ya.MATHML):e._insertElement(t,Ya.MATHML),t.ackSelfClosing=!0}(e,t);break;case Xa.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ka.QUIRKS&&e.openElements.hasInButtonScope(Xa.P)&&e._closePElement(),e._insertElement(t,Ya.HTML),e.framesetOk=!1,e.insertionMode=Vs.IN_TABLE}(e,t);break;case Xa.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ya.HTML),xi(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Xa.PARAM:case Xa.TRACK:case Xa.SOURCE:!function(e,t){e._appendElement(t,Ya.HTML),t.ackSelfClosing=!0}(e,t);break;case Xa.IMAGE:!function(e,t){t.tagName=Qa.IMG,t.tagID=Xa.IMG,yi(e,t)}(e,t);break;case Xa.BUTTON:!function(e,t){e.openElements.hasInScope(Xa.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Xa.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ya.HTML),e.framesetOk=!1}(e,t);break;case Xa.APPLET:case Xa.OBJECT:case Xa.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ya.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case Xa.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,us.RAWTEXT)}(e,t);break;case Xa.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ya.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Vs.IN_TABLE||e.insertionMode===Vs.IN_CAPTION||e.insertionMode===Vs.IN_TABLE_BODY||e.insertionMode===Vs.IN_ROW||e.insertionMode===Vs.IN_CELL?Vs.IN_SELECT_IN_TABLE:Vs.IN_SELECT}(e,t);break;case Xa.OPTION:case Xa.OPTGROUP:!function(e,t){e.openElements.currentTagId===Xa.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ya.HTML)}(e,t);break;case Xa.NOEMBED:case Xa.NOFRAMES:wi(e,t);break;case Xa.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ya.HTML),e.insertionMode=Vs.IN_FRAMESET)}(e,t);break;case Xa.TEXTAREA:!function(e,t){e._insertElement(t,Ya.HTML),e.skipNextNewLine=!0,e.tokenizer.state=us.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Vs.TEXT}(e,t);break;case Xa.NOSCRIPT:e.options.scriptingEnabled?wi(e,t):_i(e,t);break;case Xa.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(Xa.P)&&e._closePElement(),e._insertElement(t,Ya.HTML),e.tokenizer.state=us.PLAINTEXT}(e,t);break;case Xa.COL:case Xa.TH:case Xa.TD:case Xa.TR:case Xa.HEAD:case Xa.FRAME:case Xa.TBODY:case Xa.TFOOT:case Xa.THEAD:case Xa.CAPTION:case Xa.COLGROUP:break;default:_i(e,t)}}function Ni(e,t){const n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const a=e.openElements.items[t],s=e.openElements.tagIDs[t];if(r===s&&(r!==Xa.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(a,s))break}}function Ei(e,t){switch(t.tagID){case Xa.A:case Xa.B:case Xa.I:case Xa.S:case Xa.U:case Xa.EM:case Xa.TT:case Xa.BIG:case Xa.CODE:case Xa.FONT:case Xa.NOBR:case Xa.SMALL:case Xa.STRIKE:case Xa.STRONG:si(e,t);break;case Xa.P:!function(e){e.openElements.hasInButtonScope(Xa.P)||e._insertFakeElement(Qa.P,Xa.P),e._closePElement()}(e);break;case Xa.DL:case Xa.UL:case Xa.OL:case Xa.DIR:case Xa.DIV:case Xa.NAV:case Xa.PRE:case Xa.MAIN:case Xa.MENU:case Xa.ASIDE:case Xa.BUTTON:case Xa.CENTER:case Xa.FIGURE:case Xa.FOOTER:case Xa.HEADER:case Xa.HGROUP:case Xa.DIALOG:case Xa.ADDRESS:case Xa.ARTICLE:case Xa.DETAILS:case Xa.SEARCH:case Xa.SECTION:case Xa.SUMMARY:case Xa.LISTING:case Xa.FIELDSET:case Xa.BLOCKQUOTE:case Xa.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Xa.LI:!function(e){e.openElements.hasInListItemScope(Xa.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Xa.LI),e.openElements.popUntilTagNamePopped(Xa.LI))}(e);break;case Xa.DD:case Xa.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Xa.H1:case Xa.H2:case Xa.H3:case Xa.H4:case Xa.H5:case Xa.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Xa.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Qa.BR,Xa.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Xa.BODY:!function(e,t){if(e.openElements.hasInScope(Xa.BODY)&&(e.insertionMode=Vs.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case Xa.HTML:!function(e,t){e.openElements.hasInScope(Xa.BODY)&&(e.insertionMode=Vs.AFTER_BODY,qi(e,t))}(e,t);break;case Xa.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Xa.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Xa.FORM):n&&e.openElements.remove(n))}(e);break;case Xa.APPLET:case Xa.OBJECT:case Xa.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case Xa.TEMPLATE:hi(e,t);break;default:Ni(e,t)}}function ji(e,t){e.tmplInsertionModeStack.length>0?zi(e,t):oi(e,t)}function Si(e,t){if(void 0!==e.openElements.currentTagId&&Qs.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Vs.IN_TABLE_TEXT,t.type){case Fa.CHARACTER:Ii(e,t);break;case Fa.WHITESPACE_CHARACTER:Li(e,t)}else Ai(e,t)}function Ci(e,t){switch(t.tagID){case Xa.TD:case Xa.TH:case Xa.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Qa.TBODY,Xa.TBODY),e.insertionMode=Vs.IN_TABLE_BODY,Di(e,t)}(e,t);break;case Xa.STYLE:case Xa.SCRIPT:case Xa.TEMPLATE:di(e,t);break;case Xa.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Qa.COLGROUP,Xa.COLGROUP),e.insertionMode=Vs.IN_COLUMN_GROUP,Oi(e,t)}(e,t);break;case Xa.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Ya.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case Xa.TABLE:!function(e,t){e.openElements.hasInTableScope(Xa.TABLE)&&(e.openElements.popUntilTagNamePopped(Xa.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Xa.TBODY:case Xa.TFOOT:case Xa.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ya.HTML),e.insertionMode=Vs.IN_TABLE_BODY}(e,t);break;case Xa.INPUT:!function(e,t){xi(t)?e._appendElement(t,Ya.HTML):Ai(e,t),t.ackSelfClosing=!0}(e,t);break;case Xa.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ya.HTML),e.insertionMode=Vs.IN_CAPTION}(e,t);break;case Xa.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ya.HTML),e.insertionMode=Vs.IN_COLUMN_GROUP}(e,t);break;default:Ai(e,t)}}function Ti(e,t){switch(t.tagID){case Xa.TABLE:e.openElements.hasInTableScope(Xa.TABLE)&&(e.openElements.popUntilTagNamePopped(Xa.TABLE),e._resetInsertionMode());break;case Xa.TEMPLATE:hi(e,t);break;case Xa.BODY:case Xa.CAPTION:case Xa.COL:case Xa.COLGROUP:case Xa.HTML:case Xa.TBODY:case Xa.TD:case Xa.TFOOT:case Xa.TH:case Xa.THEAD:case Xa.TR:break;default:Ai(e,t)}}function Ai(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,vi(e,t),e.fosterParentingEnabled=n}function Li(e,t){e.pendingCharacterTokens.push(t)}function Ii(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Mi(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Ai(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Pi=new Set([Xa.CAPTION,Xa.COL,Xa.COLGROUP,Xa.TBODY,Xa.TD,Xa.TFOOT,Xa.TH,Xa.THEAD,Xa.TR]);function Oi(e,t){switch(t.tagID){case Xa.HTML:ki(e,t);break;case Xa.COL:e._appendElement(t,Ya.HTML),t.ackSelfClosing=!0;break;case Xa.TEMPLATE:di(e,t);break;default:Ri(e,t)}}function Ri(e,t){e.openElements.currentTagId===Xa.COLGROUP&&(e.openElements.pop(),e.insertionMode=Vs.IN_TABLE,e._processToken(t))}function Di(e,t){switch(t.tagID){case Xa.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ya.HTML),e.insertionMode=Vs.IN_ROW;break;case Xa.TH:case Xa.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Qa.TR,Xa.TR),e.insertionMode=Vs.IN_ROW,Ui(e,t);break;case Xa.CAPTION:case Xa.COL:case Xa.COLGROUP:case Xa.TBODY:case Xa.TFOOT:case Xa.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Vs.IN_TABLE,Ci(e,t));break;default:Ci(e,t)}}function Fi(e,t){const n=t.tagID;switch(t.tagID){case Xa.TBODY:case Xa.TFOOT:case Xa.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Vs.IN_TABLE);break;case Xa.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Vs.IN_TABLE,Ti(e,t));break;case Xa.BODY:case Xa.CAPTION:case Xa.COL:case Xa.COLGROUP:case Xa.HTML:case Xa.TD:case Xa.TH:case Xa.TR:break;default:Ti(e,t)}}function Ui(e,t){switch(t.tagID){case Xa.TH:case Xa.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ya.HTML),e.insertionMode=Vs.IN_CELL,e.activeFormattingElements.insertMarker();break;case Xa.CAPTION:case Xa.COL:case Xa.COLGROUP:case Xa.TBODY:case Xa.TFOOT:case Xa.THEAD:case Xa.TR:e.openElements.hasInTableScope(Xa.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Vs.IN_TABLE_BODY,Di(e,t));break;default:Ci(e,t)}}function $i(e,t){switch(t.tagID){case Xa.TR:e.openElements.hasInTableScope(Xa.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Vs.IN_TABLE_BODY);break;case Xa.TABLE:e.openElements.hasInTableScope(Xa.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Vs.IN_TABLE_BODY,Fi(e,t));break;case Xa.TBODY:case Xa.TFOOT:case Xa.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Xa.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Vs.IN_TABLE_BODY,Fi(e,t));break;case Xa.BODY:case Xa.CAPTION:case Xa.COL:case Xa.COLGROUP:case Xa.HTML:case Xa.TD:case Xa.TH:break;default:Ti(e,t)}}function Bi(e,t){switch(t.tagID){case Xa.HTML:ki(e,t);break;case Xa.OPTION:e.openElements.currentTagId===Xa.OPTION&&e.openElements.pop(),e._insertElement(t,Ya.HTML);break;case Xa.OPTGROUP:e.openElements.currentTagId===Xa.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Xa.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ya.HTML);break;case Xa.HR:e.openElements.currentTagId===Xa.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Xa.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Ya.HTML),t.ackSelfClosing=!0;break;case Xa.INPUT:case Xa.KEYGEN:case Xa.TEXTAREA:case Xa.SELECT:e.openElements.hasInSelectScope(Xa.SELECT)&&(e.openElements.popUntilTagNamePopped(Xa.SELECT),e._resetInsertionMode(),t.tagID!==Xa.SELECT&&e._processStartTag(t));break;case Xa.SCRIPT:case Xa.TEMPLATE:di(e,t)}}function Hi(e,t){switch(t.tagID){case Xa.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===Xa.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Xa.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===Xa.OPTGROUP&&e.openElements.pop();break;case Xa.OPTION:e.openElements.currentTagId===Xa.OPTION&&e.openElements.pop();break;case Xa.SELECT:e.openElements.hasInSelectScope(Xa.SELECT)&&(e.openElements.popUntilTagNamePopped(Xa.SELECT),e._resetInsertionMode());break;case Xa.TEMPLATE:hi(e,t)}}function zi(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Xa.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):oi(e,t)}function qi(e,t){var n;if(t.tagID===Xa.HTML){if(e.fragmentContext||(e.insertionMode=Vs.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Xa.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else Gi(e,t)}function Gi(e,t){e.insertionMode=Vs.IN_BODY,vi(e,t)}function Wi(e,t){e.insertionMode=Vs.IN_BODY,vi(e,t)}function Yi(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ya.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),String.prototype.codePointAt,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]]),new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]),new Set([Qa.AREA,Qa.BASE,Qa.BASEFONT,Qa.BGSOUND,Qa.BR,Qa.COL,Qa.EMBED,Qa.FRAME,Qa.HR,Qa.IMG,Qa.INPUT,Qa.KEYGEN,Qa.LINK,Qa.META,Qa.PARAM,Qa.SOURCE,Qa.TRACK,Qa.WBR]);const Vi=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Ki=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Qi={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Xi(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=xa("type",{handlers:{root:Zi,element:eo,text:to,comment:ro,doctype:no,raw:ao},unknown:so}),a={parser:n?new Js(Qi):Js.getFragmentParser(void 0,Qi),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),io(a,Ce());const s=function(e,t){const n=t||{};return ma({file:n.file||void 0,location:!1,schema:"svg"===n.space?ve:fe,verbose:n.verbose||!1},e)}(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&cr(s,"comment",function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t)return n.children[t]=r.value.stitch,t}),"root"===s.type&&1===s.children.length&&s.children[0].type===e.type?s.children[0]:s}function Ji(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Zi(e,t){Ji(e.children,t)}function eo(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===us.PLAINTEXT)return;io(t,Ce(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:da.html;a===da.html&&"svg"===n&&(a=da.svg);const s=(o={...e,children:[]},ka(o,"svg"===({space:a===da.svg?"svg":"html"}||wa).space?ve:fe)),i={type:Fa.START_TAG,tagName:n,tagID:ss(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:lo(e)};var o;t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),Ji(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Sa.includes(n))return;if(t.parser.tokenizer.state===us.PLAINTEXT)return;io(t,Se(e));const r={type:Fa.END_TAG,tagName:n,tagID:ss(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:lo(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==us.RCDATA&&t.parser.tokenizer.state!==us.RAWTEXT&&t.parser.tokenizer.state!==us.SCRIPT_DATA||(t.parser.tokenizer.state=us.DATA)}(e,t)}function to(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Fa.CHARACTER,chars:e.value,location:lo(e)};io(t,Ce(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function no(e,t){const n={type:Fa.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:lo(e)};io(t,Ce(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ro(e,t){const n=e.value,r={type:Fa.COMMENT,data:n,location:lo(e)};io(t,Ce(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ao(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,oo(t,Ce(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Vi,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function so(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";
2throw Ki.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}!function(e,t){t.stitches=!0;const n=function(e){return er("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=Xi({type:"root",children:e.children},t.options);n.children=r.children}ro({type:"comment",value:{stitch:n}},t)}(n,t)}function io(e,t){oo(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=us.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function oo(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function lo(e){const t=Ce(e)||{line:void 0,column:void 0,offset:void 0},n=Se(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function co(e){return function(t,n){return Xi(t,{...e,file:n})}}const uo=(0,n.createContext)({}),ho=uo.Provider;i(1340);const po="whitelisted-locations-for-url-recreation";class mo{static fetchDataPoint(e,t){return n=this,r=arguments,s=function*(e,t,n=fetch,r){var a;const s=[{field:"slug",operator:"$eq",value:e}],i=`${t}/api/datapoints?${l.buildQueryString(r,void 0,s)}`;g()||console.log("DataService.fetchDataPoint apiUri",i);try{const e=yield n(i);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return null!==(a=(yield e.json()).data)&&void 0!==a?a:[]}catch(t){throw console.error(`DataService: Error fetching data point "${e}":`,t),t instanceof Error?t:new Error(`Failed to fetch data point "${e}"`)}},new((a=void 0)||(a=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:new a(function(t){t(e)})}(t.value).then(i,o)}l((s=s.apply(n,r||[])).next())});var n,r,a,s}static isUrlWhitelisted(e,t){return t.some(t=>e.startsWith(t))}}const fo=({baseUrl:e,block:t,class:r,grabLinkFromQueryString:a,onClick:i,text:o,unfurlUrl:l,url:c})=>{var d;let h=("shared-button "+("hollow"===(null==t?void 0:t.buttonstyle)?"shared-button-hollow":"")).trim();(null==r?void 0:r.length)&&(h=`${h} ${r}`);let p=(null==t?void 0:t.text)||"";(null==o?void 0:o.length)&&(p=o);let m=l||(null==t?void 0:t.url)||"";(null==c?void 0:c.length)&&(m=c);const[f,v]=(0,n.useState)(m);return(0,n.useEffect)(()=>{var t,n,r,s;a&&u()&&(t=void 0,n=void 0,s=function*(){var t,n,r;try{const a=E(e),s=g()?"published":"draft",i=yield mo.fetchDataPoint(po,a,fetch,s),o=null!==(r=null===(n=null===(t=null==i?void 0:i[0])||void 0===t?void 0:t.json)||void 0===n?void 0:n.whitelist)&&void 0!==r?r:[],l=new URLSearchParams(window.location.search).get("link");if(l)try{const e=atob(l);if(mo.isUrlWhitelisted(e,o))return void v(e)}catch(e){}m&&mo.isUrlWhitelisted(m,o)?v(m):v("")}catch(e){console.error("SharedButton: error resolving URL from query string",e)}},new((r=void 0)||(r=Promise))(function(e,a){function i(e){try{l(s.next(e))}catch(e){a(e)}}function o(e){try{l(s.throw(e))}catch(e){a(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(t.value).then(i,o)}l((s=s.apply(t,n||[])).next())}))},[a,e]),(null==f?void 0:f.length)?(0,s.jsx)("a",{href:f,className:h,target:null!==(d=null==t?void 0:t.target)&&void 0!==d?d:"_self",rel:"noopener noreferrer",children:p}):(0,s.jsx)("div",{className:h,onClick:i,children:p})};var vo=i(961),go=i(6942),bo=i(1729),yo=Object.defineProperty,xo=Object.defineProperties,wo=Object.getOwnPropertyDescriptors,_o=Object.getOwnPropertySymbols,ko=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable,Eo=(e,t,n)=>t in e?yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jo=(e,t)=>{for(var n in t||(t={}
2))ko.call(t,n)&&Eo(e,n,t[n]);if(_o)for(var n of _o(t))No.call(t,n)&&Eo(e,n,t[n]);return e},So=(e,t)=>xo(e,wo(t)),Co=(e,t)=>{var n={};for(var r in e)ko.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_o)for(var r of _o(e))t.indexOf(r)<0&&No.call(e,r)&&(n[r]=e[r]);return n};function To(e){return t=>{var n=t,{bgStyle:r={},borderRadius:a=0,iconFillColor:i="white",round:o=!1,size:l=64}=n,c=Co(n,["bgStyle","borderRadius","iconFillColor","round","size"]);return(0,s.jsxs)("svg",So(jo({viewBox:"0 0 64 64",width:l,height:l},c),{children:[o?(0,s.jsx)("circle",{cx:"32",cy:"32",r:"32",fill:e.color,style:r}):(0,s.jsx)("rect",{width:"64",height:"64",rx:a,ry:a,fill:e.color,style:r}),(0,s.jsx)("path",{d:e.path,fill:i})]}))}}To({color:"#1185FE",path:"M21.945 18.886C26.015 21.941 30.393 28.137 32 31.461 33.607 28.137 37.985 21.941 42.055 18.886 44.992 16.681 49.75 14.975 49.75 20.403 49.75 21.487 49.128 29.51 48.764 30.813 47.497 35.341 42.879 36.496 38.772 35.797 45.951 37.019 47.778 41.067 43.833 45.114 36.342 52.801 33.066 43.186 32.227 40.722 32.073 40.27 32.001 40.059 32 40.238 31.999 40.059 31.927 40.27 31.773 40.722 30.934 43.186 27.658 52.801 20.167 45.114 16.222 41.067 18.049 37.019 25.228 35.797 21.121 36.496 16.503 35.341 15.236 30.813 14.872 29.51 14.25 21.487 14.25 20.403 14.25 14.975 19.008 16.681 21.945 18.886Z"});
2class Ao extends Error{constructor(e){super(e),this.name="AssertionError"}}function Lo(e,t){if(!e)throw new Ao(t)}function Io(e){const t=Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`);return t.length>0?`?${t.join("&")}`:""}function Mo(e){var t=e,{beforeOnClick:n,children:r,className:a,disabled:i,disabledStyle:o={opacity:.6},forwardedRef:l,htmlTitle:c,networkLink:u,networkName:d,onClick:h,onShareWindowClose:p,openShareDialogOnClick:m=!0,opts:f,resetButtonStyle:v=!0,style:g,title:b,url:y,windowHeight:x=400,windowPosition:w="windowCenter",windowWidth:_=550}=t,k=Co(t,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","htmlTitle","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","title","url","windowHeight","windowPosition","windowWidth"]);const N=go("react-share__ShareButton",{"react-share__ShareButton--disabled":!!i,disabled:!!i},a),E=jo(jo(v?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},g),i&&o);return(0,s.jsx)("button",So(jo({},k),{className:N,onClick:async e=>{const t=u(y,f);if(!i){if(e.preventDefault(),n){const e=n();(r=e)&&("object"==typeof r||"function"==typeof r)&&"then"in r&&"function"==typeof r.then&&await e}var r,a,s;m&&function(e,t,n){var r=t,{height:a,width:s}=r,i=Co(r,["height","width"]);const o=jo({height:a,width:s,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},i),l=window.open(e,"",Object.keys(o).map(e=>`${e}=${o[e]}`).join(", "));if(n){const e=window.setInterval(()=>{try{(null===l||l.closed)&&(window.clearInterval(e),n(l))}catch(e){console.error(e)}},1e3)}}(t,jo({height:x,width:_},"windowCenter"===w?(a=_,s=x,{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-a/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-s/2}):((e,t)=>({top:(window.screen.height-t)/2,left:(window.screen.width-e)/2}))(_,x)),p),h&&h(e,t)}},ref:l,style:E,title:c,children:r}))}function Po(e,t,r,a){const i=(n,i)=>{const o=r(n),l=jo({},n);return Object.keys(o).forEach(e=>{delete l[e]}),(0,s.jsx)(Mo,So(jo(jo({},a),l),{forwardedRef:i,networkName:e,networkLink:t,opts:o}))};return i.displayName=`ShareButton-${e}`,(0,n.forwardRef)(i)}Po("bluesky",function(e,{title:t,separator:n}){return Lo(e,"bluesky.url"),"https://bsky.app/intent/compose"+Io({text:t?t+n+e:e})},e=>({title:e.title,separator:e.separator||" "}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"}),To({color:"#7f7f7f",path:"M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"}),Po("email",function(e,{subject:t,body:n,separator:r}){return"mailto:"+Io({subject:t,body:n?n+r+e:e})},e=>({subject:e.subject,body:e.body,separator:e.separator||" "}),{openShareDialogOnClick:!1,onClick:(e,t)=>{window.location.href=t}});const Oo=To({color:"#0965FE",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"});To({color:"#0A7CFF",path:"M 53.066406 21.871094 C 52.667969 21.339844 51.941406 21.179688 51.359375 21.496094 L 37.492188 29.058594 L 28.867188 21.660156 C 28.339844 21.207031 27.550781 21.238281 27.054688 21.730469 L 11.058594 37.726562 C 10.539062 38.25 10.542969 39.09375 11.0625 39.613281 C 11.480469 40.027344 12.121094 40.121094 12.640625 39.839844 L 26.503906 32.28125 L 35.136719 39.679688 C 35.667969 40.132812 36.457031 40.101562 36.949219 39.609375 L 52.949219 23.613281 C 53.414062 23.140625 53.464844 22.398438 53.066406 21.871094 Z M 53.066406 21.871094"}),Po("facebookmessenger",function(e,{appId:t,redirectUri:n,to:r}){return"https://www.facebook.com/dialog/send"+Io({link:e,redirect_uri:n||e,app_id:t,to:r})},e=>({appId:e.appId,redirectUri:e.redirectUri,to:e.to}),{windowWidth:1e3,windowHeight:820});const Ro=Po("facebook",function(e,{hashtag:t}){return Lo(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+Io({u:e,hashtag:t})},e=>({hashtag:e.hashtag}),{windowWidth:550,windowHeight:400});function Do(e){var t=e,{children:r=e=>e,className:a,getCount:i,url:o}=t,l=Co(t,["children","className","getCount","url"]);const c=function(){const e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),(0,n.useCallback)(()=>e.current,[])}
2(),[u,d]=(0,n.useState)(void 0),[h,p]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{p(!0),i(o,e=>{c()&&(d(e),p(!1))})},[o]),(0,s.jsx)("span",So(jo({className:go("react-share__ShareCount",a)},l),{children:!h&&void 0!==u&&r(u)}))}function Fo(e){const t=t=>(0,s.jsx)(Do,jo({getCount:e},t));return t.displayName=`ShareCount(${e.name})`,t}Fo(function(e,t){bo(`https://graph.facebook.com/?id=${e}&fields=og_object{engagement}`,(e,n)=>{t(!e&&n&&n.og_object&&n.og_object.engagement?n.og_object.engagement.count:void 0)})}),To({color:"#009ad9",path:"M 36.164062 33.554688 C 34.988281 32.234375 33.347656 31.5 31.253906 31.34375 C 33.125 30.835938 34.476562 30.09375 35.335938 29.09375 C 36.191406 28.09375 36.609375 26.78125 36.609375 25.101562 C 36.628906 23.875 36.332031 22.660156 35.75 21.578125 C 35.160156 20.558594 34.292969 19.71875 33.253906 19.160156 C 32.304688 18.640625 31.175781 18.265625 29.847656 18.042969 C 28.523438 17.824219 26.195312 17.730469 22.867188 17.730469 L 14.769531 17.730469 L 14.769531 47.269531 L 23.113281 47.269531 C 26.46875 47.269531 28.886719 47.15625 30.367188 46.929688 C 31.851562 46.695312 33.085938 46.304688 34.085938 45.773438 C 35.289062 45.148438 36.28125 44.179688 36.933594 42.992188 C 37.597656 41.796875 37.933594 40.402344 37.933594 38.816406 C 37.933594 36.621094 37.347656 34.867188 36.164062 33.554688 Z M 22.257812 24.269531 L 23.984375 24.269531 C 25.988281 24.269531 27.332031 24.496094 28.015625 24.945312 C 28.703125 25.402344 29.042969 26.183594 29.042969 27.285156 C 29.042969 28.390625 28.664062 29.105469 27.9375 29.550781 C 27.210938 29.992188 25.84375 30.199219 23.855469 30.199219 L 22.257812 30.199219 Z M 29.121094 41.210938 C 28.328125 41.691406 26.976562 41.925781 25.078125 41.925781 L 22.257812 41.925781 L 22.257812 35.488281 L 25.195312 35.488281 C 27.144531 35.488281 28.496094 35.738281 29.210938 36.230469 C 29.925781 36.726562 30.304688 37.582031 30.304688 38.832031 C 30.304688 40.078125 29.914062 40.742188 29.105469 41.222656 Z M 29.121094 41.210938 M 46.488281 39.792969 C 44.421875 39.792969 42.742188 41.46875 42.742188 43.535156 C 42.742188 45.605469 44.421875 47.28125 46.488281 47.28125 C 48.554688 47.28125 50.230469 45.605469 50.230469 43.535156 C 50.230469 41.46875 48.554688 39.792969 46.488281 39.792969 Z M 46.488281 39.792969 M 43.238281 17.730469 L 49.738281 17.730469 L 49.738281 37.429688 L 43.238281 37.429688 Z M 43.238281 17.730469 "}),Po("hatena",function(e,{title:t}){return Lo(e,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&url=${e}&title=${t}`},e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"}),Fo(function(e,t){bo("https://bookmark.hatenaapis.com/count/entry"+Io({url:e}),(e,n)=>{t(null!=n?n:void 0)})}),To({color:"#1F1F1F",path:"M35.688 43.012c0 2.425.361 2.785 3.912 3.056V48H24.401v-1.932c3.555-.27 3.912-.63 3.912-3.056V20.944c0-2.379-.36-2.785-3.912-3.056V16H39.6v1.888c-3.55.27-3.912.675-3.912 3.056v22.068h.001z"}),Po("instapaper",function(e,{title:t,description:n}){return Lo(e,"instapaper.url"),"http://www.instapaper.com/hello2"+Io({url:e,title:t,description:n})},e=>({title:e.title,description:e.description}),{windowWidth:500,windowHeight:500,windowPosition:"windowCenter"}),To({color:"#00b800",path:"M52.62 30.138c0 3.693-1.432 7.019-4.42 10.296h.001c-4.326 4.979-14 11.044-16.201 11.972-2.2.927-1.876-.591-1.786-1.112l.294-1.765c.069-.527.142-1.343-.066-1.865-.232-.574-1.146-.872-1.817-1.016-9.909-1.31-17.245-8.238-17.245-16.51 0-9.226 9.251-16.733 20.62-16.733 11.37 0 20.62 7.507 20.62 16.733zM27.81 25.68h-1.446a.402.402 0 0 0-.402.401v8.985c0 .221.18.4.402.4h1.446a.401.401 0 0 0 .402-.4v-8.985a.402.402 0 0 0-.402-.401zm9.956 0H36.32a.402.402 0 0 0-.402.401v5.338L31.8 25.858a.39.39 0 0 0-.031-.04l-.002-.003-.024-.025-.008-.007a.313.313 0 0 0-.032-.026.255.255 0 0 1-.021-.014l-.012-.007-.021-.012-.013-.006-.023-.01-.013-.005-.024-.008-.014-.003-.023-.005-.017-.002-.021-.003-.021-.002h-1.46a.402.402 0 0 0-.402.401v8.985c0 .221.18.4.402.4h1.446a.401.401 0 0 0 .402-.4v-5.337l4.123 5.568c.028.04.063.072.101.099l.004.003a.236.236 0 0 0 .025.015l.012.006.019.01a.154.154 0 0 1 .019.008l.012.004.028.01.005.001a.442.442 0 0 0 .104.013h1.446a.4.4 0 0 0 .401-.4v-8.985a.402.402 0 0 0-.401-.401zm-13.442 7.537h-3.93v-7.136a.401.401 0 0 0-.401-.401h-1.447a.4.4 0 0 0-.401.401v8.984a.392.392 0 0 0 .123.29c.072.068.17.111.278.111h5.778a.4.4 0 0 0 .401-.401v-1.447a.401.401 0 0 0-.401-.401zm21.429-5.287c.222 0 .401-.18.401-.402v-1.446a.401.401 0 0 0-.401-.402h-5.778a.398.398 0 0 0-.279.113l-.005.004-.006.008a.397.397 0 0 0-.111.276v8.984c0 .108.043.206.112.278l.005.006a.401.401 0 0 0 .284.117h5.778a.4.4 0 0 0 .401-.401v-1.447a.401.401 0 0 0-.401-.401h-3.93v-1.519h3.93c.222 0 .401-.18.401-.402V29.85a.401.401 0 0 0-.401-.402h-3.93V27.93h3.93z"}),Po("line",function(e,{title:t}){return Lo(e,"line.url"),"https://social-plugins.line.me/lineit/share"+Io({url:e,text:t})},e=>({title:e.title}),{windowWidth:500,windowHeight:500});const Uo=To({color:"#0077B5",path:"M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z"}),$o=Po("linkedin",function(e,{title:t,summary:n,source:r}){return Lo(e,"linkedin.url"),"https://linkedin.com/shareArticle"+Io({url:e,mini:"true",title:t,summary:n,source:r})},({title:e,summary:t,source:n})=>({title:e,summary:t,source:n}),{windowWidth:750,windowHeight:600});To({color:"#21A5D8",path:"M18.3407821,28.1764706 L21.9441341,31.789916 L33.0055865,42.882353 C33.0055865,42.882353 33.0893855,42.9663866 33.0893855,42.9663866 L46.6648046,47 C46.6648046,47 46.6648046,47 46.7486034,47 C46.8324022,47 46.8324022,47 46.9162012,46.9159664 C47,46.8319327 47,46.8319327 47,46.7478991 L42.9776536,33.1344537 C42.9776536,33.1344537 42.9776536,33.1344537 42.8938548,33.0504202 L31.1620111,21.3697479 L31.1620111,21.3697479 L28.1452514,18.2605042 C27.3072626,17.4201681 26.5530726,17 25.7150838,17 C24.2905028,17 23.0335195,18.3445378 21.5251397,19.8571429 C21.273743,20.1092437 20.9385475,20.4453781 20.6871508,20.697479 C20.3519553,21.0336134 20.1005586,21.2857143 19.849162,21.5378151 C18.3407821,22.9663866 17.0837989,24.2268908 17,25.7394958 C17.0837989,26.4957983 17.5027933,27.3361345 18.3407821,28.1764706 Z M39.9012319,39.6134454 C39.7336341,39.4453781 39.4822374,37.6806724 40.2364275,36.8403362 
2C40.9906174,36.0840337 41.6610084,36 42.1638017,36 C42.3313995,36 42.4989973,36 42.5827961,36 L44.8453659,43.5630253 L43.5883828,44.8235295 L36.0464833,42.5546218 C35.9626843,42.2184874 35.8788855,41.2100841 36.8844722,40.2016807 C37.2196676,39.8655463 37.8900587,39.6134454 38.5604498,39.6134454 C39.147042,39.6134454 39.5660364,39.7815126 39.5660364,39.7815126 C39.6498353,39.8655463 39.8174331,39.8655463 39.8174331,39.7815126 C39.9850307,39.7815126 39.9850307,39.697479 39.9012319,39.6134454 Z"}),Po("livejournal",function(e,{title:t,description:n}){return Lo(e,"livejournal.url"),"https://www.livejournal.com/update.bml"+Io({subject:t,event:n})},e=>({title:e.title,description:e.description}),{windowWidth:660,windowHeight:460}),To({color:"#168DE2",path:"M39.7107745,17 C41.6619755,17 43.3204965,18.732852 43.3204965,21.0072202 C43.3204965,23.2815885 41.7595357,25.0144404 39.7107745,25.0144404 C37.7595732,25.0144404 36.1010522,23.2815885 36.1010522,21.0072202 C36.1010522,18.732852 37.7595732,17 39.7107745,17 Z M24.3938451,17 C26.3450463,17 28.0035672,18.732852 28.0035672,21.0072202 C28.0035672,23.2815885 26.4426063,25.0144404 24.3938451,25.0144404 C22.4426439,25.0144404 20.7841229,23.2815885 20.7841229,21.0072202 C20.7841229,18.732852 22.4426439,17 24.3938451,17 Z M51.9057817,43.4259928 C51.7106617,44.0758123 51.4179815,44.6173285 50.9301812,44.9422383 C50.637501,45.1588448 50.2472607,45.267148 49.8570205,45.267148 C49.07654,45.267148 48.3936197,44.833935 48.0033795,44.0758123 L46.2472985,40.7184115 L45.759498,41.2599278 C42.5400162,44.9422383 37.466893,47 32.0035297,47 C26.5401664,47 21.5646034,44.9422383 18.2475614,41.2599278 L17.7597611,40.7184115 L16.00368,44.0758123 C15.6134398,44.833935 14.9305194,45.267148 14.1500389,45.267148 C13.7597986,45.267148 13.3695584,45.1588448 13.0768782,44.9422383 C12.0037176,44.2924187 11.7110374,42.7761733 12.2963978,41.5848375 L16.7841605,33.0288807 C17.1744007,32.270758 17.8573211,31.8375453 18.6378016,31.8375453 C19.0280418,31.8375453 19.4182821,31.9458485 19.7109623,32.1624548 C20.7841229,32.8122743 21.0768031,34.3285197 20.4914427,35.5198555 L20.1012025,36.2779783 L20.2963226,36.602888 C22.4426439,39.9602888 27.0279667,42.234657 31.9059697,42.234657 C36.7839727,42.234657 41.3692955,40.068592 43.5156167,36.602888 L43.7107367,36.2779783 L43.3204965,35.6281587 C43.0278165,35.0866425 42.9302562,34.436823 43.1253765,33.7870035 C43.3204965,33.137184 43.6131767,32.5956678 44.100977,32.270758 C44.3936572,32.0541515 44.7838975,31.9458485 45.1741377,31.9458485 C45.9546182,31.9458485 46.6375385,32.3790613 47.0277787,33.137184 L51.5155415,41.6931408 C52.003342,42.234657 52.100902,42.8844765 51.9057817,43.4259928 Z"}),Po("mailru",function(e,{title:t,description:n,imageUrl:r}){return Lo(e,"mailru.url"),"https://connect.mail.ru/share"+Io({url:e,title:t,description:n,image_url:r})},e=>({title:e.title,description:e.description,imageUrl:e.imageUrl}),{windowWidth:660,windowHeight:460}),To({color:"#F97400",path:"M39,30c-1,0-3,2-7,2s-6-2-7-2c-1.1,0-2,0.9-2,2c0,1,0.6,1.5,1,1.7c1.2,0.7,5,2.3,5,2.3l-4.3,5.4   c0,0-0.8,0.9-0.8,1.6c0,1.1,0.9,2,2,2c1,0,1.5-0.7,1.5-0.7S32,39,32,39c0,0,4.5,5.3,4.5,5.3S37,45,38,45c1.1,0,2-0.9,2-2   c0-0.6-0.8-1.6-0.8-1.6L35,36c0,0,3.8-1.6,5-2.3c0.4-0.3,1-0.7,1-1.7C41,30.9,40.1,30,39,30z M32,15c-3.9,0-7,3.1-7,7s3.1,7,7,7c3.9,0,7-3.1,7-7S35.9,15,32,15z M32,25.5   c-1.9,0-3.5-1.6-3.5-3.5c0-1.9,1.6-3.5,3.5-3.5c1.9,0,3.5,1.6,3.5,3.5C35.5,23.9,33.9,22.5,35,22.5z "}),Po("ok",function(e,{title:t,description:n,image:r}){return Lo(e,"ok.url"),"https://connect.ok.ru/offer"+Io({url:e,title:t,description:n,imageUrl:r})},e=>({title:e.title,description:e.description,image:e.image}),{windowWidth:588,windowHeight:480,windowPosition:"screenCenter"}),Fo(function(e,t){window.OK||(window.OK={Share:{count:function(e,t){var n,r;null==(r=(n=window.OK.callbacks)[e])||r.call(n,t)}},callbacks:[]});const n=window.OK.callbacks.length;return window.ODKL={updateCount(e,t){var n,r;const a=""===e?0:parseInt(e.replace("react-share-",""),10);null==(r=(n=window.OK.callbacks)[a])||r.call(n,""===t?void 0:parseInt(t,10))}}
2,window.OK.callbacks.push(t),bo("https://connect.ok.ru/dk"+Io({"st.cmd":"extLike",uid:`react-share-${n}`,ref:e}))}),To({color:"#E60023",path:"M32,16c-8.8,0-16,7.2-16,16c0,6.6,3.9,12.2,9.6,14.7c0-1.1,0-2.5,0.3-3.7 c0.3-1.3,2.1-8.7,2.1-8.7s-0.5-1-0.5-2.5c0-2.4,1.4-4.1,3.1-4.1c1.5,0,2.2,1.1,2.2,2.4c0,1.5-0.9,3.7-1.4,5.7 c-0.4,1.7,0.9,3.1,2.5,3.1c3,0,5.1-3.9,5.1-8.5c0-3.5-2.4-6.1-6.7-6.1c-4.9,0-7.9,3.6-7.9,7.7c0,1.4,0.4,2.4,1.1,3.1 c0.3,0.3,0.3,0.5,0.2,0.9c-0.1,0.3-0.3,1-0.3,1.3c-0.1,0.4-0.4,0.6-0.8,0.4c-2.2-0.9-3.3-3.4-3.3-6.1c0-4.5,3.8-10,11.4-10 c6.1,0,10.1,4.4,10.1,9.2c0,6.3-3.5,11-8.6,11c-1.7,0-3.4-0.9-3.9-2c0,0-0.9,3.7-1.1,4.4c-0.3,1.2-1,2.5-1.6,3.4 c1.4,0.4,3,0.7,4.5,0.7c8.8,0,16-7.2,16-16C48,23.2,40.8,16,32,16z"}),Po("pinterest",function(e,{media:t,description:n,pinId:r}){return r?`https://pinterest.com/pin/${r}/repin/x/`:(Lo(e,"pinterest.url"),Lo(t,"pinterest.media"),"https://pinterest.com/pin/create/button/"+Io({url:e,media:t,description:n}))},e=>({media:e.media,description:e.description,pinId:e.pinId}),{windowWidth:1e3,windowHeight:730}),Fo(function(e,t){bo("https://api.pinterest.com/v1/urls/count.json"+Io({url:e}),(e,n)=>{t(n?n.count:void 0)})}),To({color:"#EF3F56",path:"M41.084 29.065l-7.528 7.882a2.104 2.104 0 0 1-1.521.666 2.106 2.106 0 0 1-1.522-.666l-7.528-7.882c-.876-.914-.902-2.43-.065-3.384.84-.955 2.228-.987 3.1-.072l6.015 6.286 6.022-6.286c.88-.918 2.263-.883 3.102.071.841.938.82 2.465-.06 3.383l-.015.002zm6.777-10.976C47.463 16.84 46.361 16 45.14 16H18.905c-1.2 0-2.289.82-2.716 2.044-.125.363-.189.743-.189 1.125v10.539l.112 2.096c.464 4.766 2.73 8.933 6.243 11.838.06.053.125.102.19.153l.04.033c1.882 1.499 3.986 2.514 6.259 3.014a14.662 14.662 0 0 0 6.13.052c.118-.042.235-.065.353-.087.03 0 .065-.022.098-.042a15.395 15.395 0 0 0 6.011-2.945l.039-.045.18-.153c3.502-2.902 5.765-7.072 6.248-11.852L48 29.674v-10.52c0-.366-.041-.728-.161-1.08l.022.015z"}),Po("pocket",function(e,{title:t}){return Lo(e,"pocket.url"),"https://getpocket.com/save"+Io({url:e,title:t})},e=>({title:e.title}),{windowWidth:500,windowHeight:500}),To({color:"#FF5700",path:"M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344"}),Po("reddit",function(e,{title:t}){return Lo(e,"reddit.url"),"https://www.reddit.com/web/submit"+Io({url:e,title:t})},e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"}),Po("gab",function(e,{title:t}){return Lo(e,"gab.url"),"https://gab.com/compose"+Io({url:e,text:t})},e=>({title:e.title}),{windowWidth:660,windowHeight:640,windowPosition:"windowCenter"}),To({color:"#00d178",path:"m17.0506,23.97457l5.18518,0l0,14.23933c0,6.82699 -3.72695,10.09328 -9.33471,10.09328c-2.55969,0 -4.82842,-0.87286 -6.22084,-2.0713l2.07477,-3.88283c1.19844,0.81051 2.33108,1.29543 3.85511,1.29543c2.75366,0 4.44049,-1.97432 4.44049,-4.82149l0,-0.87286c-1.16728,1.39242 -2.81947,2.0713 -4.63446,2.0713c-4.44048,0 -7.81068,-3.68885 -7.81068,-8.28521c0,-4.59289 3.37019,-8.28174 7.81068,-8.28174c1.81499,0 3.46718,0.67888 4.63446,2.0713l0,-1.55521zm-3.62997,11.39217c1.97777,0 3.62997,-1.6522 3.62997,-3.62652c0,-1.97432 -1.6522,-3.62305 -3.62997,-3.62305c-1.97778,0 -3.62997,1.64873 -3.62997,3.62305c0,1.97432 1.65219,3.62652 3.62997,3.62652zm25.7077,4.13913l-5.18518,0l0,-1.29197c-1.00448,1.13264 -2.3969,1.81152 -4.21188,1.81152c-3.62997,0 -5.63893,-2.52504 -5.63893,-5.4034c0,-4.27076 5.251,-5.85715 9.78846,-4.49937c-0.09698,-1.39241 -0.9733,-2.39343 -2.78829,-2.39343c-1.26426,0 -2.72248,0.48492 -3.62997,1.00102l-1.5552,-3.72003c1.19844,-0.77587 3.40136,-1.55174 5.96452,-1.55174c3.78931,0 7.25648,2.13365 7.25648,7.95962l0,8.08777zm-5.18518,-6.14809c-2.42806,-0.77587 -4.66563,-0.3533 -4.66563,1.36124c0,1.00101 0.84168,1.6799 1.84616,1.6799c1.20191,0 2.56315,-0.96984 2.81947,-3.04115zm13.00626,-17.66495l0,9.83695c1.16727,-1.39242 2.81946,-2.0713 4.63445,-2.0713c4.44048,0 7.81068,3.68885 7.81068,8.28174c0,4.59636 -3.37019,8.28521 -7.81068,8.28521c-1.81499,0 -3.46718,-0.67888 -4.63445,-2.0713l0,1.55174l-5.18519,0l0,-23.81304l5.18519,0zm3.62997,19.67391c1.97777,0 3.62997,-1.6522 3.62997,-3.62652c0,-1.97432 -1.6522,-3.62305 -3.62997,-3.62305c-1.97778,0 -3.62997,1.64873 -3.62997,3.62305c0,1.97432 1.65219,3.62652 3.62997,3.62652zm0,0"}),Fo(function(e,t){bo(`https://www.reddit.com/api/info.json?limit=1&url=${e}`,{param:"jsonp"},(e,n)=>{t(!e&&n&&n.data&&n.data.children.length>0&&n.data.children[0].data.score?n.data.children[0].data.score:void 0)})}),To({color:"#25A3E3",path:"m45.90873,15.44335c-0.6901,-0.0281 -1.37668,0.14048 -1.96142,0.41265c-0.84989,0.32661 -8.63939,3.33986 -16.5237,6.39174c-3.9685,1.53296 -7.93349,3.06593 -10.98537,4.24067c-3.05012,1.1765 -5.34694,2.05098 -5.4681,2.09312c-0.80775,0.28096 -1.89996,0.63566 -2.82712,1.72788
2c-0.23354,0.27218 -0.46884,0.62161 -0.58825,1.10275c-0.11941,0.48114 -0.06673,1.09222 0.16682,1.5716c0.46533,0.96052 1.25376,1.35737 2.18443,1.71383c3.09051,0.99037 6.28638,1.93508 8.93263,2.8236c0.97632,3.44171 1.91401,6.89571 2.84116,10.34268c0.30554,0.69185 0.97105,0.94823 1.65764,0.95525l-0.00351,0.03512c0,0 0.53908,0.05268 1.06412,-0.07375c0.52679,-0.12292 1.18879,-0.42846 1.79109,-0.99212c0.662,-0.62161 2.45836,-2.38812 3.47683,-3.38552l7.6736,5.66477l0.06146,0.03512c0,0 0.84989,0.59703 2.09312,0.68132c0.62161,0.04214 1.4399,-0.07726 2.14229,-0.59176c0.70766,-0.51626 1.1765,-1.34683 1.396,-2.29506c0.65673,-2.86224 5.00979,-23.57745 5.75257,-27.00686l-0.02107,0.08077c0.51977,-1.93157 0.32837,-3.70159 -0.87096,-4.74991c-0.60054,-0.52152 -1.2924,-0.7498 -1.98425,-0.77965l0,0.00176zm-0.2072,3.29069c0.04741,0.0439 0.0439,0.0439 0.00351,0.04741c-0.01229,-0.00351 0.14048,0.2072 -0.15804,1.32576l-0.01229,0.04214l-0.00878,0.03863c-0.75858,3.50668 -5.15554,24.40802 -5.74203,26.96472c-0.08077,0.34417 -0.11414,0.31959 -0.09482,0.29852c-0.1756,-0.02634 -0.50045,-0.16506 -0.52679,-0.1756l-13.13468,-9.70175c4.4988,-4.33199 9.09945,-8.25307 13.744,-12.43229c0.8218,-0.41265 0.68483,-1.68573 -0.29852,-1.70681c-1.04305,0.24584 -1.92279,0.99564 -2.8798,1.47502c-5.49971,3.2626 -11.11882,6.13186 -16.55882,9.49279c-2.792,-0.97105 -5.57873,-1.77704 -8.15298,-2.57601c2.2336,-0.89555 4.00889,-1.55579 5.75608,-2.23009c3.05188,-1.1765 7.01687,-2.7042 10.98537,-4.24067c7.94051,-3.06944 15.92667,-6.16346 16.62028,-6.43037l0.05619,-0.02283l0.05268,-0.02283c0.19316,-0.0878 0.30378,-0.09658 0.35471,-0.10009c0,0 -0.01756,-0.05795 -0.00351,-0.04566l-0.00176,0zm-20.91715,22.0638l2.16687,1.60145c-0.93418,0.91311 -1.81743,1.77353 -2.45485,2.38812l0.28798,-3.98957"}),Po("telegram",function(e,{title:t}){return Lo(e,"telegram.url"),"https://telegram.me/share/url"+Io({url:e,text:t})},e=>({title:e.title}),{windowWidth:550,windowHeight:400}),To({color:"#000000",path:"M41.4569 31.0027C41.2867 30.9181 41.1138 30.8366 40.9386 30.7586C40.6336 24.9274 37.5624 21.5891 32.4055 21.5549C32.3821 21.5548 32.3589 21.5548 32.3355 21.5548C29.251 21.5548 26.6857 22.9207 25.1067 25.4063L27.9429 27.4247C29.1224 25.5681 30.9736 25.1723 32.3369 25.1723C32.3526 25.1723 32.3684 25.1723 32.384 25.1724C34.082 25.1837 35.3633 25.6958 36.1926 26.6947C36.7961 27.4218 37.1997 28.4267 37.3996 29.6949C35.8941 29.4294 34.266 29.3478 32.5255 29.4513C27.6225 29.7443 24.4705 32.711 24.6822 36.8332C24.7896 38.9242 25.7937 40.7231 27.5094 41.8982C28.96 42.8916 30.8282 43.3774 32.7699 43.2674C35.3341 43.1216 37.3456 42.1066 38.749 40.2507C39.8148 38.8413 40.4889 37.0149 40.7865 34.7136C42.0085 35.4787 42.9142 36.4855 43.4144 37.6959C44.2649 39.7534 44.3145 43.1344 41.6553 45.8908C39.3255 48.3055 36.525 49.3501 32.2926 49.3824C27.5977 49.3463 24.0471 47.7842 21.7385 44.7396C19.5768 41.8886 18.4595 37.7706 18.4179 32.5C18.4595 27.2293 19.5768 23.1113 21.7385 20.2604C24.0471 17.2157 27.5977 15.6537 32.2925 15.6175C37.0215 15.654 40.634 17.2235 43.0309 20.2829C44.2062 21.7831 45.0923 23.6698 45.6764 25.8696L49 24.9496C48.2919 22.2419 47.1778 19.9087 45.6616 17.9736C42.5888 14.0514 38.0947 12.0417 32.3041 12H32.2809C26.5022 12.0415 22.0584 14.0589 19.073 17.9961C16.4165 21.4997 15.0462 26.3747 15.0001 32.4856L15 32.5L15.0001 32.5144C15.0462 38.6252 16.4165 43.5004 19.073 47.004C22.0584 50.941 26.5022 52.9586 32.2809 53H32.3041C37.4418 52.9631 41.0632 51.5676 44.0465 48.4753C47.9496 44.4297 47.8321 39.3587 46.5457 36.2457C45.6227 34.0134 43.8631 32.2002 41.4569 31.0027ZM32.5863 39.6551C30.4374 39.7807 28.205 38.78 28.0949 36.6367C28.0133 35.0476 29.185 33.2743 32.7182 33.0631C33.1228 33.0389 33.5199 33.027 33.9099 33.027C35.1933 33.027 36.3939 33.1564 37.4854 33.4039C37.0783 38.6788 34.6902 39.5353 32.5863 39.6551Z"}),Po("threads",function(e,{title:t}){return Lo(e,"threads.url"),"https://threads.net/intent/post"+Io({url:e,text:t})},e=>({title:e.title}),{windowWidth:550,windowHeight:600}),To({color:"#34526f",path:"M39.2,41c-0.6,0.3-1.6,0.5-2.4,0.5c-2.4,0.1-2.9-1.7-2.9-3v-9.3h6v-4.5h-6V17c0,0-4.3,0-4.4,0 c-0.1,0-0.2,0.1-0.2,0.2c-0.3,2.3-1.4,6.4-5.9,8.1v3.9h3V39c0,3.4,2.5,8.1,9,8c2.2,0,4.7-1,5.2-1.8L39.2,41z"}),Po("tumblr",function(e,{title:t,caption:n,tags:r,posttype:a}){return Lo(e,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+Io({canonicalUrl:e,title:t,caption:n,tags:r,posttype:a})},e=>({title:e.title,tags:(e.tags||[]).join(","),caption:e.caption,posttype:e.posttype||"link"}),{windowWidth:660,windowHeight:460}),Fo(function(e,t){return bo("https://api.tumblr.com/v2/share/stats"+Io({url:e}),(e,n)=>{t(!e&&n&&n.response?n.response.note_count:void 0)})});const Bo=To({color:"#00aced",path:"M48,22.1c-1.2,0.5-2.4,0.9-3.8,1c1.4-0.8,2.4-2.1,2.9-3.6c-1.3,0.8-2.7,1.3-4.2,1.6 C41.7,19.8,40,19,38.2,19c-3.6,0-6.6,2.9-6.6,6.6c0,0.5,0.1,1,0.2,1.5c-5.5-0.3-10.3-2.9-13.5-6.9c-0.6,1-0.9,2.1-0.9,3.3 c0,2.3,1.2,4.3,2.9,5.5c-1.1,0-2.1-0.3-3-0.8c0,0,0,0.1,0,0.1c0,3.2,2.3,5.8,5.3,6.4c-0.6,0.1-1.1,0.2-1.7,0.2c-0.4,0-0.8,0-1.2-0.1 c0.8,2.6,3.3,4.5,6.1,4.6c-2.2,1.8-5.1,2.8-8.2,2.8c-0.5,0-1.1,0-1.6-0.1c2.9,1.9,6.4,2.9,10.1,2.9c12.1,0,18.7-10,18.7-18.7 c0-0.3,0-0.6,0-0.8C46,24.5,47.1,23.4,48,22.1z"}),Ho=Po("twitter",function(e,{title:t,via:n,hashtags:r=[],related:a=[]}){return Lo(e,"twitter.url"),Lo(Array.isArray(r),"twitter.hashtags is not an array"),Lo(Array.isArray(a),"twitter.related is not an array"),"https://twitter.com/intent/tweet"+Io({url:e,text:t,via:n,hashtags:r.length>0?r.join(","):void 0,related:a.length>0?a.join(","):void 0})},e=>({hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}),{windowWidth:550,windowHeight:400});To({color:"#7360f2",path:"m31.0,12.3c9.0,0.2 16.4,6.2 18.0,15.2c0.2,1.5 0.3,3.0 0.4,4.6a1.0,1.0 0 0 1 -0.8,1.2l-0.1,0a1.1,1.1 0 0 1 -1.0,-1.2l0,0c-0.0,-1.2 -0.1,-2.5 -0.3,-3.8a16.1,16.1 0 0 0 -13.0,-13.5c-1.0,-0.1 -2.0,-0.2 -3.0,-0.3c-0.6,-0.0 -1.4,-0.1 -1.6,-0.8a1.1,1.1 0 0 1 0.9,-1.2l0.6,0l0.0,-0.0zm10.6,39.2a19.9,19.9 0 0 1 -2.1,-0.6c-6.9,-2.9 -13.2,-6.6 -18.3,-12.2a47.5,47.5 0 0 1 -7.0,-10.7c-0.8,-1.8 -1.6,-3.7 -2.4,-5.6c-0.6,-1.7 0.3,-3.4 1.4,-4.7a11.3,11.3 0 0 1 3.7,-2.8a2.4,2.4 0 0 1 3.0,0.7a39.0,39.0 0 0 1 4.7,6.5a3.1,3.1 0 0 1 -0.8,4.2c-0.3,0.2 -0.6,0.5 -1.0,0.8a3.3,3.3 0 0 0 -0.7,0.7a2.1,2.1 0 0 0 -0.1,1.9c1.7,4.9 4.7,8.7 9.7,10.8a5.0,5.0 0 0 0 2.5,0.6c1.5,-0.1 2.0,-1.8 3.1,-2.7a2.9,2.9 0 0 1 3.5,-0.1c1.1,0.7 2.2,1.4 3.3,2.2a37.8,37.8 0 0 1 3.1,2.4a2.4,2.4 0 0 1 0.7,3.0a10.4,10.4 0 0 1 -4.4,4.8a10.8,10.8 0 0 1 -1.9,0.6c-0.7,-0.2 0.6,-0.2 0,0l0.0,0l0,-0.0zm3.1,-21.4a4.2,4.2 0 0 1 -0.0,0.6a1.0,1.0 0 0 1 -1.9,0.1a2.7,2.7 0 0 1 -0.1,-0.8a10.9,10.9 0 0 0 -1.4,-5.5a10.2,10.2 0 0 0 -4.2,-4.0a12.3,12.3 0 0 0 -3.4,-1.0c-0.5,-0.0 -1.0,-0.1 -1.5,-0.2a0.9,0.9 0 0 1 -0.9,-1.0l0,-0.
21a0.9,0.9 0 0 1 0.9,-0.9l0.1,0a14.1,14.1 0 0 1 5.9,1.5a11.9,11.9 0 0 1 6.5,9.3c0,0.1 0.0,0.3 0.0,0.5c0,0.4 0.0,0.9 0.0,1.5l0,0l0.0,0.0zm-5.6,-0.2a1.1,1.1 0 0 1 -1.2,-0.9l0,-0.1a11.3,11.3 0 0 0 -0.2,-1.4a4.0,4.0 0 0 0 -1.5,-2.3a3.9,3.9 0 0 0 -1.2,-0.5c-0.5,-0.1 -1.1,-0.1 -1.6,-0.2a1.0,1.0 0 0 1 -0.8,-1.1l0,0l0,0a1.0,1.0 0 0 1 1.1,-0.8c3.4,0.2 6.0,2.0 6.3,6.2a2.8,2.8 0 0 1 0,0.8a0.8,0.8 0 0 1 -0.8,0.7l0,0l0.0,-0.0z"}),Po("viber",function(e,{title:t,separator:n}){return Lo(e,"viber.url"),"viber://forward"+Io({text:t?t+n+e:e})},e=>({title:e.title,separator:e.separator||" "}),{windowWidth:660,windowHeight:460}),To({color:"#4C75A3",path:"M44.94,44.84h-0.2c-2.17-.36-3.66-1.92-4.92-3.37C39.1,40.66,38,38.81,36.7,39c-1.85.3-.93,3.52-1.71,4.9-0.62,1.11-3.29.91-5.12,0.71-5.79-.62-8.75-3.77-11.35-7.14A64.13,64.13,0,0,1,11.6,26a10.59,10.59,0,0,1-1.51-4.49C11,20.7,12.56,21,14.11,21c1.31,0,3.36-.29,4.32.2C19,21.46,19.57,23,20,24a37.18,37.18,0,0,0,3.31,5.82c0.56,0.81,1.41,2.35,2.41,2.14s1.06-2.63,1.1-4.18c0-1.77,0-4-.5-4.9S25,22,24.15,21.47c0.73-1.49,2.72-1.63,5.12-1.63,2,0,4.84-.23,5.62,1.12s0.25,3.85.2,5.71c-0.06,2.09-.41,4.25,1,5.21,1.09-.12,1.68-1.2,2.31-2A28,28,0,0,0,41.72,24c0.44-1,.91-2.65,1.71-3,1.21-.47,3.15-0.1,4.92-0.1,1.46,0,4.05-.41,4.52.61,0.39,0.85-.75,3-1.1,3.57a61.88,61.88,0,0,1-4.12,5.61c-0.58.78-1.78,2-1.71,3.27,0.05,0.94,1,1.67,1.71,2.35a33.12,33.12,0,0,1,3.92,4.18c0.47,0.62,1.5,2,1.4,2.76C52.66,45.81,46.88,44.24,44.94,44.84Z"}),Po("vk",function(e,{title:t,image:n,noParse:r,noVkLinks:a}){return Lo(e,"vk.url"),"https://vk.com/share.php"+Io({url:e,title:t,image:n,noparse:r?1:0,no_vk_links:a?1:0})},e=>({title:e.title,image:e.image,noParse:e.noParse,noVkLinks:e.noVkLinks}),{windowWidth:660,windowHeight:460}),Fo(function(e,t){window.VK||(window.VK={}),window.VK.Share={count:(e,t)=>{var n,r;return null==(r=null==(n=window.VK.callbacks)?void 0:n[e])?void 0:r.call(n,t)}},window.VK.callbacks=[];const n=window.VK.callbacks.length;return window.VK.callbacks.push(t),bo("https://vk.com/share.php"+Io({act:"count",index:n,url:e}))}),To({color:"#DF2029",path:"M40.9756152,15.0217119 C40.5000732,15.0546301 39.9999314,15.1204666 39.5325878,15.2192213 C38.6634928,15.4085016 38.0977589,16.2643757 38.2863368,17.1284787 C38.4667163,18.0008129 39.3194143,18.5686519 40.1885094,18.3793715 C42.8613908,17.8115326 45.7720411,18.6427174 47.7316073,20.8153207 C49.6911735,22.996153 50.2077122,25.975254 49.3714112,28.5840234 C49.1008441,29.4316684 49.5763861,30.3533789 50.4208857,30.6249537 C51.2653852,30.8965286 52.1754769,30.4192153 52.4542425,29.5715703 C53.6349013,25.9011885 52.9133876,21.7699494 50.1585171,18.7085538 C48.0923641,16.4042776 45.2063093,15.1533848 42.3530505,15.0217119 C41.8775084,14.9970227 41.4511594,14.9887937 40.9756152,15.0217119 Z M27.9227762,19.8277737 C24.9957268,20.140498 20.863421,22.4365431 17.2312548,26.0822378 C13.2711279,30.0571148 11,34.2871065 11,37.9328012 C11,44.9032373 19.8713401,49.125 28.5786978,49.125 C39.9917329,49.125 47.600423,42.4261409 47.600423,37.1427636 C47.600423,33.9496952 44.9603397,32.1638816 42.549827,31.4149913 C41.9594976,31.2339421 41.5167516,31.1434164 41.8283133,30.3616079 C42.5006339,28.66632 42.6236176,27.1932286 41.8939054,26.1480742 C40.5328692,24.1894405 36.7203236,24.2881952 32.448635,26.0822378 C32.448635,26.0822378 31.1203949,26.6912261 31.4647526,25.6213825 C32.1206742,23.4981576 32.0304845,21.712342 31.0056075,20.6836478 C30.2840938,19.9512176 29.2510184,19.6878718 27.9227762,19.8277737 Z M42.0906819,20.6836478 C41.6233383,20.6589586 41.1723917,20.716566 40.7132466,20.8153207 C39.9671353,20.9716828 39.4997917,21.7781784 39.6637721,22.5270687 C39.8277525,23.275959 40.5574647,23.7450433 41.303576,23.5804521 C42.1972686,23.3911718 43.2057485,23.6380596 43.8616701,24.3704897 C44.5175916,25.1029198 44.6733735,26.0657797 44.3864073,26.9381118 C44.1486363,27.6705419 44.5093932,28.4770397 45.2391054,28.7156963 C45.9688176,28.9461239 46.780521,28.5922524 47.0100936,27.8598223 C47.584026,26.0740087 47.2396661,24.0248493 45.8950269,22.5270687 C44.886547,21.4078489 43.4845162,20.7494842 42.0906819,20.6836478 Z M29.496988,29.9665891 C35.3100922,30.1723275 39.9917329,33.0691319 40.3852858,37.0769272 C40.8362324,41.6607904 35.5970585,45.9319315 28.6442899,46.6232144 C21.6915214,47.3144973 15.6488446,44.154347 15.197898,39.5787128 C14.7469514,34.9948495 20.059916,30.7237084 27.004486,30.0324256 C27.8735831,29.950131 28.6688875,29.9336709 29.496988,29.9665891 Z M25.5614586,34.3776322 C23.183744,34.5916017 20.9372116,35.9577073 19.9205332,37.9328012 C18.5348994,40.6238672 19.9041362,43.6029661 23.0689567,44.582284 C26.340366,45.5945202 30.1857056,44.0638213 31.5303448,41.1587879 C32.8503864,38.3195909 31.1613894,35.3734082 27.9227762,34.5751416 C27.1438688,34.3776322 26.356763,34.3035667 25.5614586,34.3776322 Z M24.052839,38.7228388 C24.3316067,38.7310678 24.5857748,38.8215935 24.8399449,38.9203482 C25.8648218,39.3400561 26.1845841,40.4428158 25.5614586,41.4221338 C24.9219361,42.3932227 23.5690963,42.8623069 22.5442194,42.4096807 C21.5357395,41.9652856 21.2487754,40.8542948 21.8882979,39.9078951 C22.3638421,39.2001542 23.2247386,38.714
26097 24.052839,38.7228388 Z"}),Po("weibo",function(e,{title:t,image:n}){return Lo(e,"weibo.url"),"http://service.weibo.com/share/share.php"+Io({url:e,title:t,pic:n})},e=>({title:e.title,image:e.image}),{windowWidth:660,windowHeight:550,windowPosition:"screenCenter"}),To({color:"#25D366",path:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,0.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915"}),Po("whatsapp",function(e,{title:t,separator:n}){return Lo(e,"whatsapp.url"),"https://"+(/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)?"api":"web")+".whatsapp.com/send"+Io({text:t?t+n+e:e})},e=>({title:e.title,separator:e.separator||" "}),{windowWidth:550,windowHeight:400}),To({color:"#4326c4",path:"M34.019,10.292c0.21,0.017,0.423,0.034,0.636,0.049 c3.657,0.262,6.976,1.464,9.929,3.635c3.331,2.448,5.635,5.65,6.914,9.584c0.699,2.152,0.983,4.365,0.885,6.623 c-0.136,3.171-1.008,6.13-2.619,8.867c-0.442,0.75-0.908,1.492-1.495,2.141c-0.588,0.651-1.29,1.141-2.146,1.383 c-1.496,0.426-3.247-0.283-3.961-1.642c-0.26-0.494-0.442-1.028-0.654-1.548c-1.156-2.838-2.311-5.679-3.465-8.519 c-0.017-0.042-0.037-0.082-0.065-0.145c-0.101,0.245-0.192,0.472-0.284,0.698c-1.237,3.051-2.475,6.103-3.711,9.155 c-0.466,1.153-1.351,1.815-2.538,2.045c-1.391,0.267-2.577-0.154-3.496-1.247c-0.174-0.209-0.31-0.464-0.415-0.717 c-2.128-5.22-4.248-10.442-6.37-15.665c-0.012-0.029-0.021-0.059-0.036-0.104c0.054-0.003,0.103-0.006,0.15-0.006 c1.498-0.001,2.997,0,4.495-0.004c0.12-0.001,0.176,0.03,0.222,0.146c1.557,3.846,3.117,7.691,4.679,11.536 c0.018,0.046,0.039,0.091,0.067,0.159c0.273-0.673,0.536-1.32,0.797-1.968c1.064-2.627,2.137-5.25,3.19-7.883 c0.482-1.208,1.376-1.917,2.621-2.135c1.454-0.255,2.644,0.257,3.522,1.449c0.133,0.18,0.229,0.393,0.313,0.603 c1.425,3.495,2.848,6.991,4.269,10.488c0.02,0.047,0.04,0.093,0.073,0.172c0.196-0.327,0.385-0.625,0.559-0.935 c0.783-1.397,1.323-2.886,1.614-4.461c0.242-1.312,0.304-2.634,0.187-3.962c-0.242-2.721-1.16-5.192-2.792-7.38 c-2.193-2.939-5.086-4.824-8.673-5.625c-1.553-0.346-3.124-0.405-4.705-0.257c-3.162,0.298-6.036,1.366-8.585,3.258 c-3.414,2.534-5.638,5.871-6.623,10.016c-0.417,1.76-0.546,3.547-0.384,5.348c0.417,4.601,2.359,8.444,5.804,11.517 c2.325,2.073,5.037,3.393,8.094,3.989c1.617,0.317,3.247,0.395,4.889,0.242c1-0.094,1.982-0.268,2.952-0.529 c0.04-0.01,0.081-0.018,0.128-0.028c0,1.526,0,3.047,0,4.586c-0.402,0.074-0.805,0.154-1.21,0.221 c-0.861,0.14-1.728,0.231-2.601,0.258c-0.035,0.002-0.071,0.013-0.108,0.021c-0.493,0-0.983,0-1.476,0 c-0.049-0.007-0.1-0.018-0.149-0.022c-0.315-0.019-0.629-0.033-0.945-0.058c-1.362-0.105-2.702-0.346-4.017-0.716 c-3.254-0.914-6.145-2.495-8.66-4.752c-2.195-1.971-3.926-4.29-5.176-6.963c-1.152-2.466-1.822-5.057-1.993-7.774 c-0.014-0.226-0.033-0.451-0.05-0.676c0-0.502,0-1.003,0-1.504c0.008-0.049,0.02-0.099,0.022-0.148 c0.036-1.025,0.152-2.043,0.338-3.052c0.481-2.616,1.409-5.066,2.8-7.331c2.226-3.625,5.25-6.386,9.074-8.254 c2.536-1.24,5.217-1.947,8.037-2.12
26c0.23-0.015,0.461-0.034,0.691-0.051C33.052,10.292,33.535,10.292,34.019,10.292z"}),Po("workplace",function(e,{quote:t,hashtag:n}){return Lo(e,"workplace.url"),"https://work.facebook.com/sharer.php"+Io({u:e,quote:t,hashtag:n})},e=>({quote:e.quote,hashtag:e.hashtag}),{windowWidth:550,windowHeight:400}),To({color:"#000000",path:"M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z"});const zo=()=>g()?"https://wapi.motionapp.com/api/form":"https://wapi-staging.motionapp.com/api/form",qo=e=>`${zo()}/status/${e}`;var Go=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const Wo="An error occurred while submitting the form. Please try again.",Yo="Submissions from this email address are not permitted",Vo=/^Error in 'fields\.([^']+)'\.?\s*/i,Ko=/^Required field '([^']+)'/i,Qo=/^(?:fields\.)?([A-Za-z][A-Za-z0-9_]*)$/;function Xo(e){return new Promise(t=>setTimeout(t,e))}function Jo(e){const t=new Set,n=[];for(const r of e){const e=r.trim();e&&!t.has(e)&&(t.add(e),n.push(e))}return n}function Zo(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function el(e){var t;return Object.assign(Object.assign({ok:!1},e),{fieldErrors:null!==(t=e.fieldErrors)&&void 0!==t?t:[]})}function tl(e){if("string"==typeof e){const t=e.trim();return t?{field:null,message:t}:null}if(!Zo(e))return null;const t="string"==typeof e.message?e.message.trim():"";if(!t)return null;const n="string"==typeof e.errorType&&e.errorType?e.errorType:void 0,r=t.match(Vo);if(r){const e=t.slice(r[0].length).trim();return{field:r[1],message:"BLOCKED_EMAIL"===n?Yo:e||t,errorType:n}}const a=t.match(Ko);if(a)return{field:a[1],message:t,errorType:n};let s=null;if("string"==typeof e.in){const t=e.in.trim().match(Qo);t&&(s=t[1])}return{field:s,message:"BLOCKED_EMAIL"===n?Yo:t,errorType:n}}function nl(e){const t=[],n=[];for(const r of e){const e=tl(r);e&&(e.field?t.push({field:e.field,message:e.message,errorType:e.errorType}):n.push(e.message))}return{errors:n,fieldErrors:t}}function rl(e){if(!Array.isArray(e))return{errors:[],fieldErrors:[]};const t=[],n=[];for(const r of e){if("error"!==(null==r?void 0:r.level))continue;const e=Zo(r.details)?r.details:null;let a=!1;if(e&&Array.isArray(e.hubspotErrors)){const r=nl(e.hubspotErrors);for(const e of r.fieldErrors)t.push(e),a=!0;for(const e of r.errors)n.push(e),a=!0}!a&&e&&"string"==typeof e.hubspotMessage&&e.hubspotMessage&&(n.push(e.hubspotMessage),a=!0),!a&&e&&"string"==typeof e.error&&e.error&&(n.push(e.error),a=!0),!a&&"string"==typeof r.message&&r.message&&n.push(r.message)}return{errors:Jo(n),fieldErrors:al(t)}}function al(e){const t=new Set,n=[];for(const r of e){const e=`${r.field}\0${r.message}`;t.has(e)||(t.add(e),n.push(r))}return n}function sl(e,t){const n=function(e,t){const n=new Set(t.filter(Boolean)),r={},a=[],s=e=>n.has(e)?e:"firstname"!==e&&"lastname"!==e||!n.has("name")?null:"name";for(const t of e){const e=s(t.field);e?r[e]?r[e].includes(t.message)||(r[e]=`${r[e]} ${t.message}`):r[e]=t.message:a.push(t.message)}return{byInputName:r,unmappedMessages:a}}(e.fieldErrors,t);return{formErrors:Jo([...e.errors,...n.unmappedMessages]),fieldErrorsByName:n.byInputName}}function il(e,t){return el({submissionId:t,errors:e.errors.length>0||e.fieldErrors.length>0?e.errors:[Wo],fieldErrors:e.fieldErrors})}function ol(e){return Go(this,void 0,void 0,function*(){try{return yield e.json()}catch(e){return null}})}function ll(e){return Go(this,void 0,void 0,function*(){let t;try{t=yield fetch(e.submitUrl,{method:"POST",headers:e.headers,body:JSON.stringify(e.body)})}catch(e){const t=e instanceof Error?e.message:"";return el({errors:t?[`${Wo} ${t}`]:[Wo]})}if(200!==t.status&&201!==t.status)return il(function(e){if(!Zo(e))return{errors:[],fieldErrors:[]};const t=Array.isArray(e.errors)?nl(e.errors):{errors:[],fieldErrors:[]},n=[...t.errors];return 0===t.fieldErrors.length&&"string"==typeof e.message&&e.message&&n.push(e.message),{errors:Jo(n),fieldErrors:al(t.fieldErrors)}}(yield ol(t)));const n=yield ol(t),r=!n||"string"!=typeof n.id&&"number"!=typeof n.id?"":String(n.id);return r?function(e){return Go(this,void 0,void 0,function*(){yield Xo(1e3);const t=Date.now()+45e3;let n=!1;for(;Date.now()<t;){try{const t=yield fetch(qo(e),{method:"GET",headers:{Accept:"application/json"}});if(404===t.status&&!n)return console.warn("Form status endpoint returned 404; treating intake as success.",{submissionId:e}),{ok:!0,submissionId:e};if(!t.ok){yield Xo(1e3);continue}n=!0;const r=yield ol(t),a=null==r?void 0:r.status;if("processed"===a)return{ok:!0,submissionId:e};if("error"===a)return il(rl(null==r?void 0:r.processing_log),e)}catch(e){}yield Xo(1e3)}return el({submissionId:e,errors:["Your submission is still processing. Please try again in a moment."]})})}(r):{ok:!0,submissionId:""}})}const cl="motion_registration_submissions",ul="motion:identities-unlocked";class dl{static getStoredRegistrations(){const e=b(cl);if(!e)return{registrations:[]};try{return JSON.parse(e)}catch(e){return console.warn("Failed to parse stored registrations:",e),{registrations:[]}}}static saveRegistrations(e){try{return y(cl,JSON.stringify(e))}catch(e){return console.warn("Failed to save registrations:",e),!1}}static recordSubmission(e){var t,n,r,a;const s=null!==(n=null===(t=e.identity)||void 0===t?void 0:t.documentId)&&void 0!==n?n:`form-${e.id}`,i=(null!==(r=e.registration_unlocks)&&void 0!==r?r:[]).filter(e=>!!(null==e?void 0:e.documentId)).map(e=>e.documentId),o=(null!==(a=e.submission_unlocks)&&void 0!==a?a:[]).filter(e=>!!(null==e?void 0:e.documentId)).map(e=>e.documentId),l=Array.from(new Set([...i,...o])),c=this.getStoredRegistrations(),u=c.registrations.findIndex(e=>e.formIdentityDocumentId===s),d={formIdentityDocumentId:s,unlockedIdentityDocumentIds:l,timestamp:Date.now()};return u>=0?c.registrations[u]=d:c.registrations.push(d),this.saveRegistrations(c)?(this.dispatchUnlockEvent(s,l),l):null}static dispatchUnlockEventWithoutPersisting(e){var t,n,r,a;const s=null!==(n=null===(t=e.identity)||void 0===t?void 0:t.documentId)&&void 0!==n?n:`form-${e.id}`,i=(null!==(r=e.registration_unlocks)&&void 0!==r?r:[]).filter(e=>!!(null==e?void 0:e.documentId)).map(e=>e.documentId),o=(null!==(a=e.submission_unlocks)&&void 0!==a?a:[]).filter(e=>!!(null==e?void 0:e.documentId)).map(e=>e.documentId),l=Array.from(new Set([...i,...o]));l.length>0&&u()&&this.dispatchUnlockEvent(s,l)}static dispatchUnlockEvent(e,t){if(!u())return;const n=new CustomEvent(ul,{detail:{formIdentityDocumentId:e,unlockedIdentityDocumentIds:t}});window.dispatchEvent(n)}
2static isFormSubmitted(e){return this.getStoredRegistrations().registrations.some(t=>t.formIdentityDocumentId===e)}static getAllUnlockedIdentityDocumentIds(){const e=this.getStoredRegistrations(),t=new Set;for(const n of e.registrations)for(const e of n.unlockedIdentityDocumentIds)t.add(e);return Array.from(t)}static isIdentityUnlocked(e){return this.getAllUnlockedIdentityDocumentIds().includes(e)}static clearAllRegistrations(){return(e=>{if(!u()||"undefined"==typeof localStorage)return!1;try{return localStorage.removeItem(e),!0}catch(e){return console.warn("localStorage.removeItem failed:",e),!1}})(cl)}}const hl=["Don't know"];let pl=null;function ml(e){return t=this,n=void 0,a=function*(){const t=function(e,t){const n=(null!=e?e:"").trim();return n||(null!=t?t:"").trim()||"3812"}(e.routerId,e.routeDefault),{data:n,scriptSrc:r}=e;var a,s;if(u()&&t&&!function(e,t){var n;const r=null!==(n=e.ad_spend)&&void 0!==n?n:"";return t.includes(r)}(n,(a=e.skipAdSpend,Array.isArray(a)?a.map(e=>String(e)):hl)))try{yield(s=r||"https://app.revenuehero.io/scheduler.prod.min.js",u()?window.RevenueHero?Promise.resolve():pl||(pl=new Promise((e,t)=>{const n=document.querySelector(`script[data-revenuehero="true"], script[src="${s}"]`);if(n)return window.RevenueHero?void e():(n.addEventListener("load",()=>e()),void n.addEventListener("error",()=>t(new Error("RevenueHero: scheduler script failed to load"))));const r=document.createElement("script");r.src=s,r.async=!0,r.dataset.revenuehero="true",r.addEventListener("load",()=>e()),r.addEventListener("error",()=>{pl=null,t(new Error("RevenueHero: scheduler script failed to load"))}),document.head.appendChild(r)}),pl):Promise.reject(new Error("RevenueHero: not in a browser")));const e=new(yield function(e=8e3){return new Promise((t,n)=>{const r=Date.now(),a=()=>{u()&&window.RevenueHero?t(window.RevenueHero):Date.now()-r>e?n(new Error("RevenueHero: global not available")):setTimeout(a,100)};a()})}())({routerId:t}),a=yield e.submit(n);a&&e.dialog.open(a)}catch(e){"undefined"!=typeof console&&console.warn&&console.warn("[revenuehero] failed to open scheduler",e)}},new((r=void 0)||(r=Promise))(function(e,s){function i(e){try{l(a.next(e))}catch(e){s(e)}}function o(e){try{l(a.throw(e))}catch(e){s(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(t.value).then(i,o)}l((a=a.apply(t,n||[])).next())});var t,n,r,a}const fl=(0,n.createContext)(null),vl=({mods:e=null,children:t})=>(0,s.jsx)(fl.Provider,{value:e,children:t});i(6144);const gl=({className:e})=>(0,s.jsx)("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,s.jsx)("path",{d:"M1 9.41431H15.8571M9 1.41431L17 9.41431L9 17.4143",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square",strokeLinejoin:"bevel"})});function bl(e){if(!e)return[];const t=e.trim();if(t.startsWith("["))try{const e=JSON.parse(t);if(Array.isArray(e))return e.map(e=>String(e)).filter(Boolean)}catch(e){}return t.split(";").map(e=>e.trim()).filter(Boolean)}function yl(e){return e.join(";")}const xl=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);function wl(e,t){var n,r;const a=e.visible_when_input;if(!a)return!0;const s=(null!==(n=e.visible_when_values)&&void 0!==n?n:[]).map(e=>{var t,n;return(null!==(n=null!==(t=e.value)&&void 0!==t?t:e.label)&&void 0!==n?n:"").toString()}).filter(e=>e.length>0);if(0===s.length)return!0;const i=null!==(r=t[a])&&void 0!==r?r:"";return!!s.includes(i)||bl(i).some(e=>s.includes(e))}function _l(e,t){var n;if(!e.name)return!0;if(!wl(e,t))return!0;const r=t[e.name]||"",a=null!==(n=e.required)&&void 0!==n&&n;return"checkbox"===e.type?!a||"true"===r:"multi-select"===e.type?!a||bl(r).length>0:!(a&&!r.trim()||"email"===e.type&&r.trim()&&!xl(r.trim()))}const kl=()=>(0,s.jsx)("span",{className:"events-form-required","aria-hidden":"true",children:"*"}),Nl=({baseUrl:e,block:t,onSuccess:r})=>{var a,i,o,l,c,u,h,m,g,b,y,_,k,N,E,j;const S=(0,n.useContext)(fl),C={};null===(a=t.input)||void 0===a||a.forEach(e=>{e.name&&(C[e.name]="")});
2const[T,A]=(0,n.useState)(C),[L,I]=(0,n.useState)(!1),[M,P]=(0,n.useState)(!1),[O,R]=(0,n.useState)(!1),[D,F]=(0,n.useState)(""),[U,$]=(0,n.useState)([]),[B,H]=(0,n.useState)({}),z=(0,n.useMemo)(()=>{var e;return(null!==(e=t.input)&&void 0!==e?e:[]).map(e=>e.name).filter(e=>!!e)},[t.input]),q=(e,t)=>{A(n=>Object.assign(Object.assign({},n),{[e]:t})),(e=>{H(t=>{if(!t[e])return t;const n=Object.assign({},t);return delete n[e],n})})(e)},G=e=>{t.revenuehero_enabled&&ml({data:e,routerId:t.revenuehero_router_id,skipAdSpend:t.revenuehero_skip_ad_spend,routeDefault:null==S?void 0:S.revenuehero_router_id})},W=t=>{var n;return t?(null===(n=t.url)||void 0===n?void 0:n.startsWith("http"))?t.url:`${e}${t.url}`:null},Y=W(t.header_image),V=W(t.title_image),K=W(t.submission_success_title_image),Q=(0,n.useMemo)(()=>!t.input||0===t.input.length||t.input.every(e=>_l(e,T)),[T,t.input]),X=!!(null===(i=t.hubspot_form_id)||void 0===i?void 0:i.value),J=X&&L||M,Z=(0,n.useMemo)(()=>{if(!t.input||0===t.input.length)return{rows:new Map,ungrouped:[]};const e=new Map,n=[];return t.input.forEach(t=>{if(null!==t.row&&void 0!==t.row){const n=t.row;e.has(n)||e.set(n,[]),e.get(n).push(t)}else n.push(t)}),{rows:e,ungrouped:n}},[t.input]),ee=(e,t,n=!1)=>{const r=(e.label||(n?e.placeholder:void 0)||"").replace(/\s*\*+\s*$/,"").trim();return r?(0,s.jsxs)("label",{htmlFor:t,className:"events-form-label",children:[r,e.required?(0,s.jsx)(kl,{}):null]}):null},te=e=>{var n,r,a,i,o,l;if(!e.name)return null;const c=e.type||"text",u=T[e.name]||"",d="name"===e.name&&D||B[e.name]||"",h=O?function(e,t){if(!e.name||_l(e,t))return"";const n=(t[e.name]||"").trim();return"email"===e.type&&n&&!xl(n)?"Invalid email address":"This field is required"}(e,T):"",p=d||h,m=`events-form-${t.id}-${e.name}-error`,f=`events-form-${t.id}-${e.name}`,v=X&&L||M,g=!!p||O&&!_l(e,T),b=["events-form-input-wrapper","checkbox"===c?"events-form-checkbox-wrapper":"","multi-select"===c?"events-form-multiselect-wrapper":"","textarea"===c?"events-form-textarea-wrapper":"",g?"is-invalid":""].filter(Boolean).join(" "),y=g?{"aria-invalid":!0,"aria-describedby":p?m:void 0}:{},x=p?(0,s.jsx)("div",{id:m,className:"events-form-input-error",role:"alert",children:p}):null;if("checkbox"===c)return(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("label",{htmlFor:f,className:"events-form-checkbox",children:[(0,s.jsx)("input",Object.assign({type:"checkbox",id:f,name:e.name,checked:"true"===u,onChange:t=>q(e.name,t.target.checked?"true":""),className:"events-form-checkbox-input",required:null!==(n=e.required)&&void 0!==n&&n,disabled:v},y)),(0,s.jsxs)("span",{children:[e.label||e.placeholder,e.required?(0,s.jsx)(kl,{}):null]})]}),x]},e.id);if("select"===c)return(0,s.jsxs)("div",{className:b,children:[ee(e,f),(0,s.jsxs)("select",Object.assign({id:f,name:e.name,value:u,onChange:t=>q(e.name,t.target.value),className:"events-form-input events-form-select"+(u?"":" is-placeholder"),required:null!==(r=e.required)&&void 0!==r&&r,disabled:v},y,{children:[e.placeholder&&(0,s.jsx)("option",{value:"",disabled:!0,children:e.placeholder}),(null!==(a=e.options)&&void 0!==a?a:[]).map((e,t)=>{var n,r,a,i;const o=null!==(r=null!==(n=e.value)&&void 0!==n?n:e.label)&&void 0!==r?r:"";return(0,s.jsx)("option",{value:o,children:null!==(a=e.label)&&void 0!==a?a:o},null!==(i=e.id)&&void 0!==i?i:t)})]})),x]},e.id);if("multi-select"===c){const t=bl(T[e.name]||""),n=n=>{const r=t.includes(n)?t.filter(e=>e!==n):[...t,n];q(e.name,yl(r))};return(0,s.jsxs)("div",{className:b,children:[ee(e,void 0,!0),(0,s.jsx)("div",{className:"events-form-multiselect-options",role:"group",children:(null!==(i=e.options)&&void 0!==i?i:[]).map((r,a)=>{var i,o,l,c;const u=null!==(o=null!==(i=r.value)&&void 0!==i?i:r.label)&&void 0!==o?o:"",d=t.includes(u);return(0,s.jsxs)("label",{className:"events-form-multiselect-option"+(d?" is-checked":""),children:[(0,s.jsx)("input",{type:"checkbox",name:e.name,value:u,checked:d,onChange:()=>n(u),className:"events-form-multiselect-checkbox",disabled:v}),(0,s.jsx)("span",{children:null!==(l=r.label)&&void 0!==l?l:u})]}
2,null!==(c=r.id)&&void 0!==c?c:a)})}),x]},e.id)}return"textarea"===c?(0,s.jsxs)("div",{className:b,children:[ee(e,f),(0,s.jsx)("textarea",Object.assign({id:f,name:e.name,placeholder:e.placeholder,value:u,onChange:t=>q(e.name,t.target.value),className:"events-form-input events-form-textarea",required:null!==(o=e.required)&&void 0!==o&&o,disabled:v,rows:4},y)),x]},e.id):(0,s.jsxs)("div",{className:b,children:[ee(e,f),(0,s.jsx)("input",Object.assign({type:c,id:f,name:e.name,placeholder:e.placeholder,value:u,onChange:t=>{q(e.name,t.target.value),"name"===e.name&&D&&F("")},className:"events-form-input",required:null!==(l=e.required)&&void 0!==l&&l,disabled:v},y)),x]},e.id)},ne=null!==(o=t.share_url)&&void 0!==o?o:`${f()}//${v()}${p()}`,re=null!==(l=t.submission_success_share_text)&&void 0!==l?l:"Check this out",ae=null!==(c=t.actual_share_text)&&void 0!==c?c:re,se=null!==(u=t.actual_share_text_twitter)&&void 0!==u?u:ae,ie=null!==(h=t.actual_share_text_facebook)&&void 0!==h?h:ae,oe=null!==(m=t.actual_share_text_linkedin)&&void 0!==m?m:ae,le=M&&K?K:V,ce=le?null:M&&null!==(g=t.submission_success_title)&&void 0!==g?g:t.title,ue=M&&t.submission_success_body?t.submission_success_body:t.body,de=M&&t.submission_success_share_text,he=Boolean(null===(b=t.config)||void 0===b?void 0:b.footerBeforeSubmit),pe=t.footer?(0,s.jsx)("div",{className:"events-form-footer",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.footer})}):null;return(0,s.jsxs)("div",{className:"events-form",children:[Y&&(0,s.jsx)("div",{className:"events-form-header-image",children:(0,s.jsx)("img",{src:Y,alt:(null===(y=t.header_image)||void 0===y?void 0:y.alternativeText)||(null===(_=t.header_image)||void 0===_?void 0:_.caption)||"Form header",className:"events-form-header-image-img"})}),le?(0,s.jsx)("div",{className:"events-form-title-image",children:(0,s.jsx)("img",{src:le,alt:(M&&t.submission_success_title_image?(null===(k=t.submission_success_title_image)||void 0===k?void 0:k.alternativeText)||(null===(N=t.submission_success_title_image)||void 0===N?void 0:N.caption):(null===(E=t.title_image)||void 0===E?void 0:E.alternativeText)||(null===(j=t.title_image)||void 0===j?void 0:j.caption))||"Form title",className:"events-form-title-image-img "+(M?"success":"")})}):ce&&(0,s.jsx)("h2",{className:"events-form-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:ce})}),ue&&(0,s.jsx)("div",{className:"events-form-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:ue})}),(0,s.jsx)("div",{className:"events-form-form-container",children:de?(0,s.jsxs)("div",{className:"events-form-share-buttons",children:[t.submission_success_share_text&&(0,s.jsx)("div",{className:"events-form-share-text-box",children:(0,s.jsx)("div",{className:"events-form-share-text-content",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.submission_success_share_text})})}),(0,s.jsx)("div",{className:"events-form-share-button-container twitter-button",children:(0,s.jsx)(Ho,{url:ne,title:se,className:"events-form-share-button events-form-button",children:(0,s.jsxs)("div",{className:"events-form-button",children:[(0,s.jsx)("span",{children:"Tweet this"}),(0,s.jsx)(gl,{className:"events-form-button-arrow"})]})})}),(0,s.jsxs)("div",{className:"events-form-share-social-row",children:[(0,s.jsx)("span",{className:"events-form-share-social-label",children:"Post on Facebook or LinkedIn"}),(0,s.jsxs)("div",{className:"events-form-share-social-icons",children:[(0,s.jsx)(Ro,{url:ne,title:ie,className:"events-form-share-button",children:(0,s.jsx)(Oo,{size:27,round:!0})}),(0,s.jsx)($o,{url:ne,summary:oe,source:ne,className:"events-form-share-button",children:(0,s.jsx)(Uo,{size:27,round:!0})})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("form",{onSubmit:e=>{return n=void 0,a=void 0,i=function*(){var n,a,s,i,o,l,c,u;if(e.preventDefault(),R(!0),F(""),$([]),H({}),!(null===(n=t.hubspot_form_id)||void 0===n?void 0:n.value)){if(!Q)return;return P(!0),dl.dispatchUnlockEventWithoutPersisting(t),G(T),void(null==r||r())}if(!Q)return;I(!0),P(!1);const h=x.cookie.split(";").find(e=>e.includes("hubspotutk")),p="string"==typeof h?h.split("=")[1]:void 0,m=t.hubspot_form_id.value,f=e=>e.replace(/[\u2012-\u2015\u2212]/g,"-").replace(/[\u2018\u2019\u201A\u201B]/g,"'").replace(/[\u201C\u201D\u201E\u201F]/g,'"').replace(/\u2026/g,"...").replace(/[^\u
20000-\u00FF]/g,""),v=f(d()),g=f(x.title),b={"Content-Type":"application/json","x-hubspot-form-id":m,"x-hubspot-page-uri":v,"x-hubspot-page-name":g,"x-form-source":"events.form"};b["x-hubspot-utk"]=null!=p?p:"";const y=Object.assign({},T);for(const e of null!==(a=t.input)&&void 0!==a?a:[])"multi-select"===e.type&&e.name&&null!=y[e.name]&&(y[e.name]=yl(bl(y[e.name])));if(null===(s=t.input)||void 0===s||s.forEach(e=>{e.name&&!wl(e,T)&&delete y[e.name]}),m&&y.name){const e=y.name.trim().split(/\s+/);if(e.length>0&&(y.firstname=e[0].trim(),y.lastname=e.slice(1).map(e=>e.trim()).join(" ")||""),delete y.name,!y.firstname||!y.lastname)return F("Both first name and last name are required."),void I(!1)}(null===(i=t.latest_lead_source)||void 0===i?void 0:i.value)&&(y.latest_lead_source=t.latest_lead_source.value);const _=`${zo()}/${m}`;try{const e=yield ll({submitUrl:_,headers:b,body:y});if(!e.ok){const t=sl(e,z);return H(t.fieldErrorsByName),$(t.formErrors),void I(!1)}const n=w.dataLayer,a={event:"form_submit",formType:null!==(l=null===(o=t.analytics_form_type)||void 0===o?void 0:o.value)&&void 0!==l?l:"event",latestLeadSource:null===(c=t.latest_lead_source)||void 0===c?void 0:c.value,formName:"events.form",data:y,headers:b,hubSpotFormId:m,hubspotutk:p,pageUri:v,pageName:g};n.push(a),console.log("Pushed to dataLayer",a),dl.recordSubmission(t),I(!1),P(!0),$([]),H({}),G(y),r&&r()}catch(e){console.error("Error submitting form:",e),H({}),$(["An error occurred while submitting the form. Please try again. "+(null!==(u=null==e?void 0:e.message)&&void 0!==u?u:"")]),I(!1)}},new((s=void 0)||(s=Promise))(function(e,t){function r(e){try{l(i.next(e))}catch(e){t(e)}}function o(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof s?e:new s(function(t){t(e)})}(t.value).then(r,o)}l((i=i.apply(n,a||[])).next())});var n,a,s,i},noValidate:!0,className:["events-form-form",J?"events-form-form-disabled":"",Q?"":"is-form-invalid"].filter(
2Boolean).join(" "),children:[t.input&&t.input.length>0&&(0,s.jsx)("div",{className:"events-form-inputs",children:(()=>{if(!t.input||0===t.input.length)return null;const e=Array.from(Z.rows.keys()).sort((e,t)=>e-t),n=[];return e.forEach(e=>{const t=(Z.rows.get(e)||[]).filter(e=>wl(e,T));0!==t.length&&n.push((0,s.jsx)("div",{className:"events-form-input-row",children:t.map(te)},`row-${e}`))}),Z.ungrouped.filter(e=>wl(e,T)).forEach((e,t)=>{n.push((0,s.jsx)("div",{className:"events-form-input-row",children:te(e)},`row-ungrouped-${t}`))}),n})()}),U.length>0&&(0,s.jsx)("div",{className:"events-form-message events-form-message-error",children:U.map(e=>(0,s.jsx)("div",{className:"events-form-error-row",children:e},e))}),he?pe:null,(0,s.jsxs)("div",{className:"events-form-button-container",children:[(0,s.jsx)("button",{type:"submit",className:["events-form-button",J?"disabled":"",Q?"":"is-form-invalid"].filter(Boolean).join(" "),disabled:J,children:L?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"events-form-spinner"}),(0,s.jsx)("span",{children:"Please wait..."})]}):M?"Submitted!":t.submit_button_text||"Submit"}),!Q&&!J&&(0,s.jsx)("span",{className:"events-form-button-catcher","aria-hidden":"true",onClick:()=>R(!0)})]})]}),M&&!de&&!t.submission_success_body&&!t.submission_success_title&&(0,s.jsx)("div",{className:"events-form-message events-form-message-success",children:"Thank you! Your submission has been received."})]})}),he?null:pe]})};var El=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function jl(e){return null!=e&&String(e).trim().length>0}function Sl(e){var t,n,r;e.type=function(e){return"generic"===e||"event-registration"===e||"post-event-video-recordings-on-demand"===e?e:"generic"}(e.type),e.render=null!==(t=e.render)&&void 0!==t&&t,e.form_submission_closes_popup=null!==(n=e.form_submission_closes_popup)&&void 0!==n&&n,e.disable_after_registration_close_date=null===(r=e.disable_after_registration_close_date)||void 0===r||r}function Cl(e){var t;const n=null===(t=e.base)||void 0===t?void 0:t.register_button,{base:r}=e,a=El(e,["base"]);if(!n){const e=Object.assign({},a);return Sl(e),e}const{base:s}=n,i=El(n,["base"]),o=Object.assign(Object.assign({},i),{__component:e.__component,id:e.id}),l=["popup_opener_text","popup_opener_text_after_registration","class","title","subtitle","after_button_body","popup_class","popup_opener_text_when_disabled","popup_opener_link_href_when_disabled","registration_close_date"];for(const t of l)jl(e[t])&&(o[t]=e[t]);for(const t of["render","form_submission_closes_popup","disable_after_registration_close_date"]){const n=e[t];null!=n&&(o[t]=n)}return null!=e.type&&void 0!==e.type&&String(e.type).length>0&&(o.type=e.type),null!==e.identity&&void 0!==e.identity&&(o.identity=e.identity),null!==e.shared_form&&void 0!==e.shared_form&&(o.shared_form=e.shared_form),null!==e.form&&void 0!==e.form&&(o.form=e.form),Array.isArray(e.images)&&e.images.length>0?o.images=e.images:(!Array.isArray(o.images)||0===o.images.length)&&Array.isArray(i.images)&&i.images.length>0&&(o.images=i.images),Sl(o),o}const Tl={p:"span",h1:"span",h2:"span",h3:"span",h4:"span",h5:"span",h6:"span"},Al=({baseUrl:e,registerButton:t,dates:r=[]})=>{var a,i,o,l,c,d;
2const h=Cl(t),[p,m]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),g=(0,n.useRef)(null),b=(0,n.useRef)([]);(0,n.useEffect)(()=>{var e;(null===(e=h.identity)||void 0===e?void 0:e.documentId)&&dl.isIdentityUnlocked(h.identity.documentId)&&v(!0)},[null===(a=h.identity)||void 0===a?void 0:a.documentId]),(0,n.useEffect)(()=>{const e=e=>{var t;const n=e,{unlockedIdentityDocumentIds:r}=n.detail;b.current=r,(null===(t=h.identity)||void 0===t?void 0:t.documentId)&&r.includes(h.identity.documentId)&&v(!0)};return window.addEventListener(ul,e),()=>{window.removeEventListener(ul,e)}},[null===(i=h.identity)||void 0===i?void 0:i.documentId]);const y=(()=>{var e,t;let n=null!==(e=h.registration_close_date)&&void 0!==e?e:null;if(!n){const e=r.find(e=>"event-registration"===h.type&&"event-registration-close"===e.type);n=null!==(t=null==e?void 0:e.date)&&void 0!==t?t:null}if(!n)return!1;const a=new Date(n);return new Date>a})(),w=h.disable_after_registration_close_date&&y,_=(null===(o=h.popup_opener_text_when_disabled)||void 0===o?void 0:o.trim().length)?h.popup_opener_text_when_disabled:"Registration is now closed",k=null===(l=h.shared_form)||void 0===l?void 0:l.form,N=h.form;let E=null!=k?k:N;k&&(null==N?void 0:N.hubspot_form_id)&&(E=Object.assign(Object.assign({},k),{hubspot_form_id:N.hubspot_form_id}));const j=()=>{m(!1),b.current.length>0&&u()&&setTimeout(()=>{const e=b.current[0];if(e){const t=(e=>{if(!u())return null;const t=document.getElementById(e);if(t)return t;const n=t=>{var r;const a=null===(r=t.getElementById)||void 0===r?void 0:r.call(t,e);if(a)return a;const s=Array.from(t.querySelectorAll("*"));for(let e=0;e<s.length;e++){const t=s[e];if(t.shadowRoot){const e=n(t.shadowRoot);if(e)return e}}return null},r=Array.from(document.querySelectorAll("*"));for(let e=0;e<r.length;e++){const t=r[e];if(t.shadowRoot){const e=n(t.shadowRoot);if(e)return e}}return null})(`identity-${e}`);if(t){const e=t.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:e,behavior:"smooth"})}}b.current=[]},100)};if((0,n.useEffect)(()=>{const e=e=>{"Escape"===e.key&&p&&j()};return p&&x.addEventListener("keydown",e),()=>{x.removeEventListener("keydown",e)}},[p]),!h.render)return null;const S=null===(c=h.popup_opener_link_href_when_disabled)||void 0===c?void 0:c.trim();if(w&&S)return(0,s.jsxs)(s.Fragment,{children:[h.title&&(0,s.jsx)("h3",{className:"register-button-title",children:h.title}),h.subtitle&&(0,s.jsx)("div",{className:"register-button-subtitle",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:h.subtitle})}),(0,s.jsx)("a",{className:"register-button",href:S,target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:Tl,children:_})}),h.after_button_body&&(0,s.jsx)("div",{className:"register-button-after-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:h.after_button_body})})]});if(!h.popup_opener_text)return null;const C=f?h.popup_opener_text_after_registration||"You've registered!":w?_:h.popup_opener_text;return(0,s.jsxs)(s.Fragment,{children:[h.title&&(0,s.jsx)("h3",{className:"register-button-title",children:h.title}),h.subtitle&&(0,s.jsx)("div",{className:"register-button-subtitle",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:h.subtitle})}),(0,s.jsx)("button",{ref:g,className:"register-button "+(w?"registration-closed":""),onClick:()=>{E&&(f||w||m(!0))},type:"button",disabled:f||w,children:(0,s.jsx)(ta,{rehypePlugins:[co],components:Tl,children:C})}),h.after_button_body&&(0,s.jsx)("div",{className:"register-button-after-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:h.after_button_body})}),p&&u()&&(0,vo.createPortal)((0,s.jsx)("div",{className:`register-button-popup-overlay popup-overlay-${null!==(d=h.popup_class)&&void 0!==d?d:""}`,onMouseDown:j,onTouchStart:j,children:(0,s.jsxs)("div",{className:"register-button-popup-content",onMouseDown:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{className:"register-button-popup-close",onClick:j,type:"button","aria-label":"Close popup",children:"×"}),E&&(0,s.jsx)(Nl,{baseUrl:e,block:E,onSuccess:()=>{v(!0),h.form_submission_closes_popup&&setTimeout(()=>{j()},50)}})]})}),(()=>{if(!g.current)return document.body;const e=g.current.getRootNode();if(e instanceof ShadowRoot){const t=e.querySelector('[data-root="true"]');if(t)return t}else{const e=g.current.closest('[data-root="true"]');if(e)return e}return document.body})())]})};var Ll=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Il(e,t,n){return e&&t?(0,s.jsx)("div",{className:"shared-rich-text-register",children:(0,s.jsx)(Al,{baseUrl:e,registerButton:t,dates:n})}):null}const Ml=e=>{var{className:t,children:r,"data-hover-definition":a,node:i}=e,o=Ll(e,["className","children","data-hover-definition","node"]);
2const[l,c]=(0,n.useState)(!1),u=(0,n.useContext)(uo);if(!(null==t?void 0:t.split(" ").includes("hover-for-definition"))||!a||!u[a])return(0,s.jsx)("span",Object.assign({className:t,"data-hover-definition":a},o,{children:r}));const d=u[a];return(0,s.jsxs)("span",{className:"hover-definition-wrapper",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[(0,s.jsx)("span",Object.assign({className:t,"data-hover-definition":a},o,{children:r})),l&&(0,s.jsx)("span",{className:"hover-definition-wrapper__tooltip",role:"tooltip",children:(h=d.definition,h.split(/(\*\*[^*]+\*\*)/).map((e,t)=>{const r=e.match(/^\*\*([^*]+)\*\*$/);return r?(0,s.jsx)("strong",{children:r[1]},t):(0,s.jsx)(n.Fragment,{children:e},t)}))})]});var h},Pl=({baseUrl:e,block:t,dates:r=[]})=>{var a,i;const o=(0,n.useRef)(null);if("eyebrow-title-tags-buttons"===t.layout){const n=null!==(a=t.tags)&&void 0!==a?a:[],l=null!==(i=t.buttons)&&void 0!==i?i:[];return(0,s.jsxs)("div",{className:`shared-rich-text shared-rich-text--etb ${t.class?t.class:""}`.trim(),ref:o,children:[t.eyebrow&&(0,s.jsx)("p",{className:"srt-eyebrow",children:t.eyebrow}),t.title&&(0,s.jsx)("h2",{className:"srt-title",children:t.title}),n.length>0&&(0,s.jsx)("div",{className:"srt-tags",children:n.map((e,t)=>{var n;return(0,s.jsxs)("span",{className:`srt-tag ${e.class?e.class:""}`.trim(),children:[(0,s.jsx)("span",{className:"srt-tag-ck","aria-hidden":"true",children:"✓"}),e.tag]},null!==(n=e.id)&&void 0!==n?n:t)})}),l.length>0&&(0,s.jsx)("div",{className:"shared-rich-text-buttons",children:l.map(t=>(0,s.jsx)(fo,{baseUrl:e,block:t},t.id))}),Il(e,t.register_button,r)]})}return(0,s.jsxs)("div",{className:`shared-rich-text ${t.class?t.class:""}`,ref:o,children:[t.tags&&t.tags.length>0&&(0,s.jsx)("div",{className:"shared-rich-text-tags",children:t.tags.map((e,t)=>{var n;return(0,s.jsx)("span",{className:`shared-rich-text-tag ${e.class?e.class:""}`.trim(),children:e.tag},null!==(n=e.id)&&void 0!==n?n:t)})}),t.title&&(0,s.jsx)("div",{className:"shared-rich-text-title",children:t.title}),t.body&&(0,s.jsx)("div",{className:"shared-rich-text-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:e=>{const{children:t,className:r}=e,a=Ll(e,["children","className"]),i=(e=>{if(!e)return!0;const t=e=>{if("string"==typeof e)return e;if("number"==typeof e)return String(e);if(Array.isArray(e))return e.map(t).join("");if(n.isValidElement(e)){const n=e.props;if(null==n?void 0:n.children)return t(n.children);if("string"==typeof(null==n?void 0:n.children))return n.children}return""};return""===t(e).replace(/&nbsp;/g,"").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').trim()})(t);return(0,s.jsx)("p",Object.assign({},a,{className:i?`${r||""} empty`.trim():r,children:t}))},span:Ml},children:t.body})}),t.buttons&&t.buttons.length>0&&(0,s.jsx)("div",{className:"shared-rich-text-buttons",children:t.buttons.map(t=>(0,s.jsx)(fo,{baseUrl:e,block:t},t.id))}),Il(e,t.register_button,r)]})};i(3361);const Ol=({baseUrl:e,block:t})=>{var n,r,a,i,o,l,c;let u=null!==(r=null===(n=t.questionprefixicon)||void 0===n?void 0:n.url)&&void 0!==r?r:null===(o=null===(i=null===(a=t.questionprefixicon)||void 0===a?void 0:a.formats)||void 0===i?void 0:i.large)||void 0===o?void 0:o.url;return u&&!u.includes("http")&&(u=`${e}${u}`),(0,s.jsxs)("div",{className:"drop-block-question-answer-block",children:[(0,s.jsxs)("div",{className:"drop-block-question-answer-question-wrapper",children:[u&&(0,s.jsx)("img",{src:u,alt:(null===(l=t.questionprefixicon)||void 0===l?void 0:l.alternativeText)||(null===(c=t.questionprefixicon)||void 0===c?void 0:c.name)||"Icon",className:"drop-block-question-answer-question-icon"}),(0,s.jsx)("div",{className:"drop-block-question-answer-question",children:t.question})]}),(0,s.jsx)("div",{className:"drop-block-question-answer-answer",children:t.answer})]})};i(3396);const Rl=({baseUrl:e,block:t})=>(0,s.jsx)("div",{className:"drop-block-question-answer-blocks-holder",children:t.questionanswerblock.map(t=>(0,s.jsx)(Ol,{baseUrl:e,block:t},t.id))});i(568),i(6912);
2var Dl=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const Fl={titleLine:{paddingRem:1,radiusRem:12,strength:.2},year:{paddingRem:1,radiusRem:12,strength:.22},subtext:{paddingRem:1,radiusRem:10,strength:.18},blackDownArrow:{paddingRem:.5,radiusRem:5,strength:.1}},Ul=[80,71,235],$l=[216,214,250];function Bl(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}function Hl(e){return Math.max(0,Math.min(1,e))}function zl(e,t,n){return{x:Math.max(e.left,Math.min(t,e.right)),y:Math.max(e.top,Math.min(n,e.bottom))}}function ql(e,t,n,r){const a=zl(e,t,n),s=t-a.x,i=n-a.y;return s*s+i*i<=r*r}function Gl(e,t){const n=Hl(e),r=Math.exp(-t);return(Math.exp(-t*n)-r)/(1-r)}function Wl(e,t,n){return e+(t-e)*n}function Yl(e,t,n){return n<=0?0:e*Math.pow(.5,t/n)}const Vl=({data:e})=>{const[t,r]=(0,n.useState)(!1),a=(0,n.useRef)(null),i=(0,n.useRef)(null),o=(0,n.useRef)(null),l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useRef)(null),h=(0,n.useRef)(null);(0,n.useEffect)(()=>{r(!0)},[]);const p=(0,n.useMemo)(()=>{if(!e)return null;if("string"==typeof e)try{return JSON.parse(e)}catch(e){return null}return e},[e]),m=(0,n.useMemo)(()=>{var e,t,n,r,a,s,i;const o=null!==(e=null==p?void 0:p.dotSettings)&&void 0!==e?e:{},l=e=>"number"==typeof e&&Number.isFinite(e)?e:void 0,c=Math.max(.1,null!==(t=l(o.minDefaultPx))&&void 0!==t?t:7),u=Math.max(c,Math.max(.1,null!==(n=l(o.maxDefaultPx))&&void 0!==n?n:20)),d=Math.max(.01,null!==(r=l(o.hoverMaxScale))&&void 0!==r?r:1.75),h=Math.max(0,null!==(a=l(o.maxDisplacementRatioOfGrid))&&void 0!==a?a:.125);return{halfLifeSeconds:Math.max(0,null!==(s=l(o.halfLifeSeconds))&&void 0!==s?s:2.5),minDefaultPx:c,maxDefaultPx:u,hoverMaxScale:d,springScaleAtFullActivation:Math.max(0,null!==(i=l(o.springScaleAtFullActivation))&&void 0!==i?i:.25),maxDisplacementRatioOfGrid:h}},[p]),f=(0,n.useMemo)(()=>{var e,t,n,r,a,s,i;const o=null!==(e=null==p?void 0:p.assetUrls)&&void 0!==e?e:{};return{blackDownArrow:null!==(t=o.blackDownArrow)&&void 0!==t?t:"/uploads/images/black-down-arrow.svg",gradientTop:null!==(n=o.gradientTop)&&void 0!==n?n:"/uploads/images/cb2026-gradient-top.svg",gradientBottom:null!==(r=o.gradientBottom)&&void 0!==r?r:"/uploads/images/cb2026-gradient-bottom.svg",year2026:null!==(a=o.year2026)&&void 0!==a?a:"/uploads/images/cb2026.svg",motionLogo:null!==(s=o.motionLogo)&&void 0!==s?s:"",zip:null!==(i=o.zip)&&void 0!==i?i:""}},[p]),v=(0,n.useRef)({W:0,H:0,gridSpacingX:57,gridSpacingY:44,circles:[],repulsors:[],mouse:{x:-1e3,y:-1e3,active:!1},rafId:0,frame:0,lastT:Bl(),remPx:16,cursorRadiusPx:432,maxDisplacementPx:1*Math.min(57,44)*m.maxDisplacementRatioOfGrid,hasDrawnOnce:!1,fontReady:!1,canRevealCanvas:!1}),g=(0,n.useCallback)((e,t)=>{const n=[],r=Math.ceil(e/57)+2,a=Math.ceil(t/44)+2,s=(e-57*(r-1))/2,i=(t-44*(a-1))/2;for(let e=0;e<a;e++)for(let t=0;t<r;t++){const r=s+57*t+57*(e%2==1?.5:0),a=i+44*e+0,o=m.minDefaultPx+Math.random()*(m.maxDefaultPx-m.minDefaultPx);n.push({homeX:r,homeY:a,x:r,y:a,vx:0,vy:0,baseRadius:o,radius:o,cursorActivation:0,heroBypass:0})}return n},[m.maxDefaultPx,m.minDefaultPx]);return(0,n.useEffect)(()=>{var e;if(!t)return;const n=a.current,r=i.current;if(!n||!r)return;const s=r.getContext("2d");if(!s)return;const p=v.current;p.fontReady=!1,p.canRevealCanvas=!1,n.dataset.ready="0";const f=()=>{const e=n.getBoundingClientRect(),t=(()=>{const e=window.getComputedStyle(document.documentElement).fontSize,t=Number.parseFloat(e);return Number.isFinite(t)&&t>0?t:16})();p.remPx=t,p.cursorRadiusPx=27*t,p.gridSpacingX=57,p.gridSpacingY=44,p.maxDisplacementPx=Math.min(p.gridSpacingX,p.gridSpacingY)*m.maxDisplacementRatioOfGrid;const r=[],a=l.current;if(a){const n=Array.from(a.querySelectorAll(".creative-benchmarks-hero__titleLine")),s=Fl.titleLine,i=s.paddingRem*t;for(const a of n){const n=a.getBoundingClientRect();r.push({rect:{left:n.left-e.left-i,top:n.top-e.top-i,right:n.right-e.left+i,bottom:n.bottom-e.top+i},radiusPx:s.radiusRem*t,strength:s.strength})}}const s=[{el:o.current,cfg:Fl.titleLine},{el:c.current,cfg:Fl.year},{el:u.current,cfg:Fl.subtext},{el:h.current,cfg:Fl.subtext},{el:d.current,cfg:Fl.blackDownArrow}];for(const n of s){if(!n.el)continue;const a=n.el.getBoundingClientRect(),s=n.cfg.paddingRem*t;r.push({rect:{left:a.left-e.left-s,top:a.top-e.top-s,right:a.right-e.left+s,bottom:a.bottom-e.top+s}
2,radiusPx:n.cfg.radiusRem*t,strength:n.cfg.strength})}p.repulsors=r},b=e=>{const t=e.x-e.homeX,n=e.y-e.homeY,r=Math.sqrt(t*t+n*n),a=p.maxDisplacementPx;if(r>a&&r>1e-4){const s=a/r;e.x=e.homeX+t*s,e.y=e.homeY+n*s,e.vx*=.6,e.vy*=.6}},y=()=>{const e=p.circles;if(e.length<2)return;const t=Math.max(24,Math.min(p.gridSpacingX,p.gridSpacingY)),n=Math.max(1,Math.ceil(p.W/t)),r=Math.max(1,Math.ceil(p.H/t)),a=new Map,s=(e,a)=>{const s=Math.max(0,Math.min(n-1,Math.floor(e/t)));return Math.max(0,Math.min(r-1,Math.floor(a/t)))*n+s};for(let t=0;t<e.length;t++){const n=e[t],r=s(n.x,n.y),i=a.get(r);i?i.push(t):a.set(r,[t])}a.forEach((t,s)=>{const i=(e=>{const t=e%n,a=Math.floor(e/n),s=[];for(let e=-1;e<=1;e++)for(let i=-1;i<=1;i++){const o=t+i,l=a+e;o<0||o>=n||l<0||l>=r||s.push(l*n+o)}return s})(s);for(const n of i){const r=a.get(n);if(r)for(const n of t)for(const t of r){if(t<=n)continue;const r=e[n],a=e[t];if(Math.max(r.cursorActivation,a.cursorActivation)>.02)continue;const s=a.x-r.x,i=a.y-r.y,o=Math.sqrt(s*s+i*i),l=r.radius+a.radius+2;if(o>1e-4&&o<l){const e=(l-o)/o,t=s*e*.5,n=i*e*.5;a.x+=t,a.y+=n,r.x-=t,r.y-=n}}}});for(const t of e)b(t)},x=(e,t=!1)=>{p.frame%10==0&&f(),p.frame+=1;const n=e-p.lastT,r=Math.min(.05,Math.max(.001,n/1e3)),a=Math.min(2,n/16.67);p.lastT=e;const s=.001*e;for(let e=0;e<p.circles.length;e++){const n=p.circles[e];let i=0,o=0,l=0,c=0,u=0,d=0;if(!t&&p.mouse.active&&(c=p.mouse.x-n.x,u=p.mouse.y-n.y,d=Math.sqrt(c*c+u*u),d>.001&&d<p.cursorRadiusPx&&(l=Gl(d/p.cursorRadiusPx,5.5))),t)n.cursorActivation=0;else if(l>n.cursorActivation){const e=1-Math.pow(.65,a);n.cursorActivation+=(l-n.cursorActivation)*e}else n.cursorActivation=Yl(n.cursorActivation,r,m.halfLifeSeconds);if(!t){const t=1-1*Hl(l);i+=0*Math.sin(.9*s+.15*e)*t,o+=0*Math.cos(.8*s+.12*e)*t}const h=1-.9*Hl(l),f=Wl(1,m.springScaleAtFullActivation,Hl(n.cursorActivation));i+=.006*(n.homeX-n.x)*h*f,o+=.006*(n.homeY-n.y)*h*f;for(const e of p.repulsors){const t=zl(e.rect,n.x,n.y),r=n.x-t.x,a=n.y-t.y,s=Math.sqrt(r*r+a*a);if(!(s<=.001)&&s<e.radiusPx){const t=Math.pow(1-s/e.radiusPx,2)*e.strength;i+=r/s*t,o+=a/s*t}}if(l>1e-4&&d>.001){const e=.95*l;i+=c/d*e,o+=u/d*e}const v=Math.max(l,n.cursorActivation)>.08?1:0,g=v>n.heroBypass?.25:.03;if(n.heroBypass+=(v-n.heroBypass)*g,l>1e-4){const e=.22*l;i+=-n.vx*e,o+=-n.vy*e}const y=l>0?.9+(.7-.9)*Hl(l):.9;n.vx=(n.vx+i*a)*y,n.vy=(n.vy+o*a)*y,n.x+=n.vx*a,n.y+=n.vy*a,!t&&p.mouse.active&&l>.75&&d<1.25&&(n.x+=.35*(p.mouse.x-n.x),n.y+=.35*(p.mouse.y-n.y),n.vx*=.2,n.vy*=.2);const x=m.maxDefaultPx*m.hoverMaxScale,w=Hl(n.cursorActivation),_=n.baseRadius+(x-n.baseRadius)*w;n.radius+=.12*(_-n.radius),b(n)}for(let e=0;e<2;e++)y()};let w=0;const _=()=>{if(!p.fontReady)return;const e=n.getBoundingClientRect(),t=Math.floor(e.width),a=Math.floor(e.height);t===p.W&&a===p.H||(p.W=t,p.H=a,r.width=t,r.height=a,p.circles=g(t,a),f(),0!==p.repulsors.length&&(p.circles=p.circles.filter(e=>{for(const t of p.repulsors)if(ql(t.rect,e.homeX,e.homeY,e.baseRadius+1))return!1;return!0})),(()=>{const e=p.mouse;p.mouse={x:-1e3,y:-1e3,active:!1};for(let e=0;e<80;e++){x(Bl()+16.67*e,!0);for(let e=0;e<2;e++)y()}p.mouse=e})())},k=()=>{x(Bl()),(()=>{s.clearRect(0,0,p.W,p.H);const e=[...p.circles].sort((e,t)=>e.cursorActivation-t.cursorActivation),t=e=>{const t=Hl(e.cursorActivation),[n,r,a]=function(e,t,n){return[Math.round(e[0]+(t[0]-e[0])*n),Math.round(e[1]+(t[1]-e[1])*n),Math.round(e[2]+(t[2]-e[2])*n)]}($l,Ul,t);s.beginPath(),s.arc(e.x,e.y,e.radius,0,2*Math.PI),s.fillStyle=`rgb(${n}, ${r}, ${a})`,s.fill()};for(const n of e){if(n.heroBypass>=.5)continue;let e=!1;for(const t of p.repulsors)if(ql(t.rect,n.x,n.y,n.radius+1)){e=!0;break}e||t(n)}if(p.repulsors.length>0){s.save(),s.globalCompositeOperation="destination-out";for(const e of p.repulsors){const t=e.rect.right-e.rect.left,n=e.rect.bottom-e.rect.top;s.fillRect(e.rect.left,e.rect.top,t,n)}s.restore()}for(const n of e)n.heroBypass<.5||t(n);!p.hasDrawnOnce&&p.canRevealCanvas&&(p.hasDrawnOnce=!0,r.style.opacity="1",n.dataset.ready="1")})(),p.rafId=requestAnimationFrame(k)},N=new ResizeObserver(()=>{_()});N.observe(n);const E=()=>{w&&cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var e,t;
2const r=null!==(t=null===(e=window.visualViewport)||void 0===e?void 0:e.height)&&void 0!==t?t:window.innerHeight,a=n.getBoundingClientRect().top,s=Math.max(0,a),i=Math.max(0,Math.floor(r-s)),o=Number.parseFloat(n.style.minHeight);(!Number.isFinite(o)||Math.abs(o-i)>1)&&(n.style.minHeight=`${i}px`)}),requestAnimationFrame(_)};window.addEventListener("resize",E),window.addEventListener("orientationchange",E),null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",E),E(),requestAnimationFrame(E),setTimeout(E,50);const j=e=>{const t=n.getBoundingClientRect();p.mouse.x=e.clientX-t.left,p.mouse.y=e.clientY-t.top,p.mouse.active=!0},S=()=>{p.mouse.active=!1};let C=null,T=0,A=0,L=0,I="undecided";const M=e=>{const t=n.getBoundingClientRect();p.mouse.x=e.clientX-t.left,p.mouse.y=e.clientY-t.top,p.mouse.active=!0},P=e=>{if(1!==e.touches.length)return C=null,I="scroll",void(p.mouse.active=!1);const t=e.touches[0];C=t.identifier,T=t.clientX,A=t.clientY,L=Bl(),I="undecided",M(t)},O=e=>{if(null==C)return;const t=Array.from(e.touches).find(e=>e.identifier===C);if(!t)return;const n=t.clientX-T,r=t.clientY-A,a=Math.abs(n),s=Math.abs(r),i=Math.sqrt(n*n+r*r),o=Bl()-L;"undecided"===I&&(o>=120&&i<10?I="interact":i>=10&&(I=s>1.15*a?"scroll":"interact")),"interact"===I?(e.preventDefault(),M(t)):p.mouse.active=!1},R=e=>{null!=C?Array.from(e.touches).some(e=>e.identifier===C)||(C=null,I="undecided",p.mouse.active=!1):p.mouse.active=!1};n.addEventListener("mousemove",j),n.addEventListener("mouseleave",S),n.addEventListener("touchstart",P,{passive:!0}),n.addEventListener("touchmove",O,{passive:!1}),n.addEventListener("touchend",R),n.addEventListener("touchcancel",R);let D,F=!1;return Dl(void 0,void 0,void 0,function*(){yield Dl(void 0,void 0,void 0,function*(){E(),yield new Promise(e=>requestAnimationFrame(()=>e())),yield new Promise(e=>requestAnimationFrame(()=>e()))}),yield Dl(void 0,void 0,void 0,function*(){const e=document.fonts;if(!(null==e?void 0:e.load))return;const t=new Promise(e=>{setTimeout(e,1500)});try{yield Promise.race([Promise.all([e.load('700 80px "Epilogue"'),e.load('700 64px "Epilogue"'),e.ready]).then(()=>{}),t])}catch(e){}}),yield Dl(void 0,void 0,void 0,function*(){const e=l.current,t=u.current;if(!e&&!t)return;const n=()=>{var n,r,a,s;const i=null==e?void 0:e.getBoundingClientRect(),o=null==t?void 0:t.getBoundingClientRect();return{w1:null!==(n=null==i?void 0:i.width)&&void 0!==n?n:0,h1:null!==(r=null==i?void 0:i.height)&&void 0!==r?r:0,w2:null!==(a=null==o?void 0:o.width)&&void 0!==a?a:0,h2:null!==(s=null==o?void 0:o.height)&&void 0!==s?s:0}},r=(e,t)=>Math.abs(e-t)<=.5,a=(e,t)=>r(e.w1,t.w1)&&r(e.h1,t.h1)&&r(e.w2,t.w2)&&r(e.h2,t.h2);let s=0,i=n();const o=Bl();for(;!F&&Bl()-o<1e3;){yield new Promise(e=>requestAnimationFrame(()=>e()));const e=n();if(a(i,e)?s+=1:s=0,i=e,s>=3)return}}),F||(p.fontReady=!0,D=window.setTimeout(()=>{p.canRevealCanvas=!0},55),_(),k())}),()=>{var e;F=!0,D&&window.clearTimeout(D),N.disconnect(),cancelAnimationFrame(p.rafId),w&&cancelAnimationFrame(w),window.removeEventListener("resize",E),window.removeEventListener("orientationchange",E),null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",E),n.removeEventListener("mousemove",j),n.removeEventListener("mouseleave",S),n.removeEventListener("touchstart",P),n.removeEventListener("touchmove",O),n.removeEventListener("touchend",R),n.removeEventListener("touchcancel",R)}},[m,g,t]),(0,s.jsxs)("div",{ref:a,className:"creative-benchmarks-hero",children:[(0,s.jsxs)("div",{className:"creative-benchmarks-hero__bg","aria-hidden":!0,children:[(0,s.jsx)("img",{className:"creative-benchmarks-hero__gradientSvg creative-benchmarks-hero__gradientSvg--top",src:f.gradientTop,alt:"","aria-hidden":!0}),(0,s.jsx)("img",{className:"creative-benchmarks-hero__gradientSvg creative-benchmarks-hero__gradientSvg--bottom",src:f.gradientBottom,alt:"","aria-hidden":!0})]}),t?(0,s.jsx)("canvas",{ref:i,className:"creative-benchmarks-hero__canvas"}):null,(0,s.jsxs)("div",{className:"creative-benchmarks-hero__content",children:[(0,s.jsx)("img",{ref:o,className:"creative-benchmarks-hero__motionLogo",src:f.motionLogo,alt:"Motion"}),(0,s.jsxs)("h1",{ref:l,className:"creative-benchmarks-hero__title",children:[(0,s.jsx)("span",{className:"creative-benchmarks-hero__titleLine",children:"CREATIVE"}),(0,s.jsx)("span",{className:"creative-benchmarks-hero__titleLine creative-benchmarks-hero__titleLine--italic",children:"BENCHMARKS"})]}),(0,s.jsx)("div",{ref:c,className:"creative-benchmarks-hero__year","aria-label":"2026",children:(0,s.jsx)("img",{src:f.year2026,alt:"2026"})}),(0,s.jsx)("p",{ref:u,className:"creative-benchmarks-hero__subtext",children:"See where you stand next to the best advertisers in the world."}),f.zip&&(0,s.jsx)("a",{ref:h,className:"creative-benchmarks-hero__downloadBtn",href:f.zip,download:!0,children:"Share with ChatGPT/Claude"}),(0,s.jsx)("div",{ref:d,className:"creative-benchmarks-hero__downarrow","aria-label":"",children:(0,s.jsx)("img",{src:f.blackDownArrow,alt:""})})]})]})};i(5836);const Kl=16,Ql=({data:e})=>
2{const t=(0,n.useRef)(null),[r,a]=(0,n.useState)(0),[i,o]=(0,n.useState)({width:0,height:0}),[l,c]=(0,n.useState)(0),u=(0,n.useRef)(null),d=(0,n.useRef)(!1),h=(0,n.useMemo)(()=>{const t=null==e?void 0:e.preloadAssets;return!Array.isArray(t)||t.length<3?["/uploads/images/shooting-ad-animation-image-001.png","/uploads/images/shooting-ad-animation-image-002.png","/uploads/images/shooting-ad-animation-image-003.png"]:t.slice(0,3).map(e=>String(null!=e?e:""))},[null==e?void 0:e.preloadAssets]),p=(0,n.useMemo)(()=>h.map(e=>{return(t=e)?t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")?t:`${"undefined"!=typeof window?window.location.origin:""}/${t}`:"";var t}),[h]),m=(0,n.useMemo)(()=>{if(i.width<=0)return{row1:0,row2:0,row3:0};const e=Math.ceil(i.width/22)+4;return{row1:e,row2:e,row3:e}},[i.width]),f=(0,n.useCallback)(()=>{const e=t.current;if(!e)return;const n=e.getBoundingClientRect();o({width:n.width,height:n.height})},[]);(0,n.useEffect)(()=>{f();const e=new ResizeObserver(f);return t.current&&e.observe(t.current),window.addEventListener("resize",f),window.addEventListener("orientationchange",f),()=>{e.disconnect(),window.removeEventListener("resize",f),window.removeEventListener("orientationchange",f)}},[f]),(0,n.useEffect)(()=>{const e=t.current;if(!e)return;const n=()=>{const t=(()=>{var t,n;const r=null!==(n=null===(t=window.visualViewport)||void 0===t?void 0:t.height)&&void 0!==n?n:window.innerHeight,a=e.getBoundingClientRect(),s=a.top+a.height/2,i=.666*r,o=r-.5*a.height,l=o-(i-a.height/2);if(l<=0)return s<=i?1:0;const c=(o-a.top)/l;return Math.max(0,Math.min(1,c))})();t>=1&&(d.current=!0,c(e=>Math.min(1,e+.08)));const r=d.current?1:t;a(r),u.current=requestAnimationFrame(n)};return u.current=requestAnimationFrame(n),()=>{u.current&&cancelAnimationFrame(u.current)}},[]);const v=(0,n.useMemo)(()=>{const e=.56*i.height;return Math.min(e,258)},[i.height]),g=v*(145/258),b=r*i.width*.85,y=r*i.width*.25,x=r*i.width*.55,w="37.5%",_="62.5%",k=r>=.98,N=.85*i.width+g/2;return(0,s.jsxs)("div",{ref:t,className:"cb2026-shooting-ads","aria-hidden":!0,children:[(0,s.jsx)("div",{className:"cb2026-shooting-ads__bg"}),(0,s.jsx)("div",{className:"cb2026-shooting-ads__dots-row cb2026-shooting-ads__dots-row--1",style:{width:`${b+.5*g}px`,top:w},children:Array.from({length:m.row1},(e,t)=>(0,s.jsx)("div",{className:"cb2026-shooting-ads__dot",style:{left:22*t+"px",width:Kl,height:Kl}},`r1-${t}`))}),(0,s.jsx)("div",{className:"cb2026-shooting-ads__dots-row cb2026-shooting-ads__dots-row--2",style:{width:`${y+.5*g}px`,top:"50%"},children:Array.from({length:m.row2}
2,(e,t)=>(0,s.jsx)("div",{className:"cb2026-shooting-ads__dot",style:{left:22*t+"px",width:Kl,height:Kl}},`r2-${t}`))}),(0,s.jsx)("div",{className:"cb2026-shooting-ads__dots-row cb2026-shooting-ads__dots-row--3",style:{width:`${x+.5*g}px`,top:_},children:Array.from({length:m.row3},(e,t)=>(0,s.jsx)("div",{className:"cb2026-shooting-ads__dot",style:{left:22*t+"px",width:Kl,height:Kl}},`r3-${t}`))}),(0,s.jsx)("div",{className:"cb2026-shooting-ads__burst",style:{left:`${N}px`,top:w,transform:"translate(-50%, -50%)",opacity:k?l:0,filter:"blur(75px)"},"aria-hidden":!0}),(0,s.jsx)("div",{className:"cb2026-shooting-ads__card cb2026-shooting-ads__card--1",style:{left:`${b}px`,top:w,width:g,height:v,transform:"translateY(-50%) rotate(-11.556deg)"},children:p[0]&&(0,s.jsx)("img",{src:p[0],alt:"",className:"cb2026-shooting-ads__card-img"})}),(0,s.jsx)("div",{className:"cb2026-shooting-ads__card cb2026-shooting-ads__card--2",style:{left:`${y}px`,top:"50%",width:g,height:v,transform:"translateY(-50%) rotate(-11.556deg)"},children:p[1]&&(0,s.jsx)("img",{src:p[1],alt:"",className:"cb2026-shooting-ads__card-img"})}),(0,s.jsx)("div",{className:"cb2026-shooting-ads__card cb2026-shooting-ads__card--3",style:{left:`${x}px`,top:_,width:g,height:v,transform:"translateY(-50%) rotate(-11.556deg)"},children:p[2]&&(0,s.jsx)("img",{src:p[2],alt:"",className:"cb2026-shooting-ads__card-img"})})]})};i(522),i(4413);const Xl=()=>{const e=(0,n.useRef)(null),[t,r]=(0,n.useState)(0),a=(0,n.useCallback)(()=>{if(!e.current||!u())return;const t=e.current.getBoundingClientRect(),n=(window.innerHeight/2-(t.top+t.height/2))/(.6*t.height),a=Math.max(0,Math.min(1,n));r(a)},[]);(0,n.useEffect)(()=>{if(!u())return;a();const e=()=>{requestAnimationFrame(a)};return window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",a,{passive:!0}),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",a)}},[a]);const i=(()=>{const e=[{x:15,y:5},{x:18,y:15},{x:25,y:25},{x:35,y:38},{x:50,y:50},{x:65,y:62},{x:75,y:75},{x:80,y:85},{x:85,y:95}],n=e.length-1,r=t*n,a=Math.min(Math.floor(r),n-1),s=r-a,i=e[a],o=e[a+1];return{x:i.x+(o.x-i.x)*s,y:i.y+(o.y-i.y)*s}})(),o=t>.85?1-(t-.85)/.15:1;return(0,s.jsx)("div",{className:"tube-001",ref:e,children:(0,s.jsxs)("svg",{className:"tube-001__svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",children:[(0,s.jsx)("path",{className:"tube-001__tube-outer",d:"M 10 0 \n                       Q 10 10, 15 20 \n                       Q 25 40, 40 50 \n                       Q 55 60, 70 70 \n                       Q 85 80, 90 100",fill:"none",strokeWidth:"12"}),(0,s.jsx)("path",{className:"tube-001__tube-inner",d:"M 10 0 \n                       Q 10 10, 15 20 \n                       Q 25 40, 40 50 \n                       Q 55 60, 70 70 \n                       Q 85 80, 90 100",fill:"none",strokeWidth:"6"}),(0,s.jsx)("circle",{className:"tube-001__ball",cx:i.x,cy:i.y,r:"4",style:{opacity:o}}),(0,s.jsx)("circle",{className:"tube-001__ball-highlight",cx:i.x-1,cy:i.y-1,r:"1.5",style:{opacity:.6*o}})]})})};i(8904);const Jl=()=>{const e=(0,n.useRef)(null),[t,r]=(0,n.useState)(0),a=(0,n.useCallback)(()=>{if(!e.current||!u())return;const t=e.current.getBoundingClientRect(),n=(window.innerHeight/2-(t.top+t.height/2))/(.6*t.height),a=Math.max(0,Math.min(1,n));r(a)},[]);(0,n.useEffect)(()=>{if(!u())return;a();const e=()=>{requestAnimationFrame(a)};return window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",a,{passive:!0}),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",a)}},[a]);const i=(()=>{const e=[{x:16,y:5},{x:25,y:8},{x:55,y:10},{x:85,y:15},{x:85,y:25},{x:55,y:35},{x:18,y:40},{x:18,y:45},{x:55,y:52},{x:85,y:56},{x:85,y:62},{x:55,y:68},{x:18,y:72},{x:18,y:78},{x:55,y:85},{x:85,y:92},{x:92,y:98}],n=e.length-1,r=t*n,a=Math.min(Math.floor(r),n-1),s=r-a,i=e[a],o=e[a+1];return{x:i.x+(o.x-i.x)*s,y:i.y+(o.y-i.y)*s}})(),o=t>.85?1-(t-.85)/.15:1,l=720*t;return(0,s.jsx)("div",{className:"tube-002",ref:e,children:(0,s.jsxs)("svg",{className:"tube-002__svg",viewBox:"0 0 1270 1176",preserveAspectRatio:"xMidYMid meet",children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"tube002-gradient",x1:"635",y1:"0",x2:"635",y2:"1176",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#B6C5FE"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#D8F88B"})]}),(0,s.jsx)("filter",{id:"tube002-blur",x:"-20%",y:"-20%",width:"140%",height:"140%",children:(0,s.jsx)("feGaussianBlur",{stdDeviation:"4",result:"blur"})})]}),(0,s.jsx)("path",{className:"tube-002__tube",d:"M140 0C140 69.8916 196.658 126.55 266.55 126.55H1102.73C1195.11 126.55 1270 201.44 1270 293.822C1270 386.204 1195.11 461.095 1102.73 461.095H167.773C152.435 461.095 140 473.529 140 488.868C140 504.207 152.435 516.641 167.773 516.642H1102.23C1194.89 516.642 1270 591.756 1270 684.415C1270 777.074 1194.89 852.188 1102.23 852.188H517V852.189H167.773C152.435 852.19 140 864.624 140 879.963C140 895.302 152.435 907.736 167.773 907.736H1001.74C1149.89 907.736 1270 1027.84 1270 1176H1130C1130 1105.16 1072.57 1047.74 1001.74 1047.74H167.773C75.1147 1047.74 0 972.622 0 879.963C0.000129402 787.304 75.1148 712.19 167.7
273 712.189H423V712.188H1102.23C1117.57 712.188 1130 699.754 1130 684.415C1130 669.076 1117.57 656.642 1102.23 656.642H167.773C75.1147 656.641 0 581.527 0 488.868C0.000129402 396.21 75.1148 321.095 167.773 321.095H1102.73C1117.79 321.095 1130 308.884 1130 293.822C1130 278.76 1117.79 266.55 1102.73 266.55H266.55C119.338 266.55 0 147.211 0 0H140Z",fill:"url(#tube002-gradient)"}),(0,s.jsxs)("g",{className:"tube-002__ball-group",style:{transform:`translate(${i.x/100*1270}px, ${i.y/100*1176}px) rotate(${l}deg)`,opacity:o,transformOrigin:"0 0"},children:[(0,s.jsx)("path",{className:"tube-002__ball-glow",d:"M0 -52L1.7962 -34.273L5.4355 -51.7151L5.3688 -33.8975L10.8114 -50.8637L8.8827 -33.1506L16.0689 -49.4549L12.2992 -32.0405L21.1503 -47.5044L15.581 -30.5793L26 -45.0333L18.692 -28.7832L30.5648 -42.0689L21.5983 -26.6716L34.7948 -38.6435L24.2679 -24.2679L38.6435 -34.7948L26.6716 -21.5983L42.0689 -30.5648L28.7832 -18.692L45.033 -26L30.5793 -15.581L47.504 -21.1503L32.0405 -12.2992L49.455 -16.0689L33.1506 -8.8827L50.864 -10.8114L33.8975 -5.3688L51.715 -5.4355L34.273 -1.7962L52 0L34.273 1.7962L51.715 5.4355L33.8975 5.3688L50.864 10.8114L33.1506 8.8827L49.455 16.0689L32.0405 12.2992L47.504 21.1503L30.5793 15.581L45.033 26L28.7832 18.692L42.0689 30.5648L26.6716 21.5983L38.6435 34.7948L24.2679 24.2679L34.7948 38.6435L21.5983 26.6716L30.5648 42.0689L18.692 28.7832L26 45.033L15.581 30.5793L21.1503 47.504L12.2992 32.0405L16.0689 49.455L8.8827 33.1506L10.8114 50.864L5.3688 33.8975L5.4355 51.715L1.7962 34.273L0 52L-1.7962 34.273L-5.4355 51.715L-5.3688 33.8975L-10.8114 50.864L-8.8827 33.1506L-16.0689 49.455L-12.2992 32.0405L-21.1503 47.504L-15.581 30.5793L-26 45.033L-18.692 28.7832L-30.5648 42.0689L-21.5983 26.6716L-34.7948 38.6435L-24.2679 24.2679L-38.6435 34.7948L-26.6716 21.5983L-42.0689 30.5648L-28.7832 18.692L-45.033 26L-30.5793 15.581L-47.504 21.1503L-32.0405 12.2992L-49.455 16.0689L-33.1506 8.8827L-50.864 10.8114L-33.8975 5.3688L-51.715 5.4355L-34.273 1.7962L-52 0L-34.273 -1.7962L-51.715 -5.4355L-33.8975 -5.3688L-50.864 -10.8114L-33.1506 -8.8827L-49.455 -16.0689L-32.0405 -12.2992L-47.504 -21.1503L-30.5793 -15.581L-45.033 -26L-28.7832 -18.692L-42.0689 -30.5648L-26.6716 -21.5983L-38.6435 -34.7948L-24.2679 -24.2679L-34.7948 -38.6435L-21.5983 -26.6716L-30.5648 -42.0689L-18.692 -28.7832L-26 -45.033L-15.581 -30.5793L-21.1503 -47.504L-12.2992 -32.0405L-16.0689 -49.455L-8.8827 -33.1506L-10.8114 -50.864L-5.3688 -33.8975L-5.4355 -51.715L-1.7962 -34.273L0 -52Z",filter:"url(#tube002-blur)"}),(0,s.jsx)("path",{className:"tube-002__ball",d:"M0 -52L1.7962 -34.273L5.4355 -51.7151L5.3688 -33.8975L10.8114 -50.8637L8.8827 -33.1506L16.0689 -49.4549L12.2992 -32.0405L21.1503 -47.5044L15.581 -30.5793L26 -45.0333L18.692 -28.7832L30.5648 -42.0689L21.5983 -26.6716L34.7948 -38.6435L24.2679 -24.2679L38.6435 -34.7948L26.6716 -21.5983L42.0689 -30.5648L28.7832 -18.692L45.033 -26L30.5793 -15.581L47.504 -21.1503L32.0405 -12.2992L49.455 -16.0689L33.1506 -8.8827L50.864 -10.8114L33.8975 -5.3688L51.715 -5.4355L34.273 -1.7962L52 0L34.273 1.7962L51.715 5.4355L33.8975 5.3688L50.864 10.8114L33.1506 8.8827L49.455 16.0689L32.0405 12.2992L47.504 21.1503L30.5793 15.581L45.033 26L28.7832 18.692L42.0689 30.5648L26.6716 21.5983L38.6435 34.7948L24.2679 24.2679L34.7948 38.6435L21.5983 26.6716L30.5648 42.0689L18.692 28.7832L26 45.033L15.581 30.5793L21.1503 47.504L12.2992 32.0405L16.0689 49.455L8.8827 33.1506L10.8114 50.864L5.3688 33.8975L5.4355 51.715L1.7962 34.273L0 52L-1.7962 34.273L-5.4355 51.715L-5.3688 33.8975L-10.8114 50.864L-8.8827 33.1506L-16.0689 49.455L-12.2992 32.0405L-21.1503 47.504L-15.581 30.5793L-26 45.033L-18.692 28.7832L-30.5648 42.0689L-21.5983 26.6716L-34.7948 38.6435L-24.2679 24.2679L-38.6435 34.7948L-26.6716 21.5983L-42.0689 30.5648L-28.7832 18.692L-45.033 26L-30.5793 15.581L-47.504 21.1503L-32.0405 12.2992L-49.455 16.0689L-33.1506 8.8827L-50.864 10.8114L-33.8975 5.3688L-51.715 5.4355L-34.273 1.7962L-52 0L-34.273 -1.7962L-51.715 -5.4355L-33.8975 -5.3688L-50.864 -10.8114L-33.1506 -8.8827L-49.455 -16.0689L-32.0405 -12.2992L-47.504 -21.1503L-30.5793 -15.581L-45.033 -26L-28.7832 -18.692L-42.0689 -30.5648L-26.6716 -21.5983L-38.6435 -34.7948L-24.2679 -24.2679L-34.7948 -38.6435L-21.5983 -26.6716L-30.5648 -42.0689L-18.692 -28.7832L-26 -45.033L-15.581 -30.5793L-21.1503 -47.504L-12.2992 -32.0405L-16.0689 -49.455L-8.8827 -33.1506L-10.8114 -50.864L-5.3688 -33.8975L-5.4355 -51.715L-1.7962 -34.273L0 -52Z"})]})]})})},Zl=({versionName:e})=>{switch(e){case"tube-001":return(0,s.jsx)(Xl,{});case"tube-002":return(0,s.jsx)(Jl,{});default:return console.warn(`Unknown version: ${e}, defaulting to tube-001`),(0,s.jsx)(Xl,{})}};i(3384);
2const ec="America/New_York";function tc(e,t){var n,r,a,s,i,o;const l=new Intl.DateTimeFormat("en-US",{timeZone:t,hour:"numeric",minute:"numeric",hour12:!0}).formatToParts(e);return{hour:null!==(r=null===(n=l.find(e=>"hour"===e.type))||void 0===n?void 0:n.value)&&void 0!==r?r:"",minute:null!==(s=null===(a=l.find(e=>"minute"===e.type))||void 0===a?void 0:a.value)&&void 0!==s?s:"00",dayPeriod:null!==(o=null===(i=l.find(e=>"dayPeriod"===e.type))||void 0===i?void 0:i.value)&&void 0!==o?o:""}}function nc(e,t){const{hour:n,minute:r,dayPeriod:a}=tc(e,t);return"00"===r?`${n} ${a}`:`${n}:${r} ${a}`}function rc(e){const t=e%100;if(t>=11&&t<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}const ac=({baseUrl:e,block:t,dates:r=[],hideRegisterButtons:a=!1})=>{var i,o,l,c,u,d,h,p,m;const[f,v]=(0,n.useState)(!1),g=(0,n.useRef)(null),b=(0,n.useRef)(null),y=t=>t?t.url.startsWith("http")?t.url:`${e}${t.url}`:null,x=t.background_image,w=y(x),_=t.background_image_small_screen,k=y(_),[N,E]=(0,n.useState)(new Set);(0,n.useEffect)(()=>{const e=[];if(w&&e.push(w),k&&e.push(k),0===e.length)return void v(!0);const t=setTimeout(()=>{var e,t;const n=[];(null===(e=g.current)||void 0===e?void 0:e.complete)&&w&&n.push(w),(null===(t=b.current)||void 0===t?void 0:t.complete)&&k&&n.push(k),n.length>0&&E(e=>{const t=new Set(e);return n.forEach(e=>t.add(e)),t})},0);return()=>clearTimeout(t)},[w,k]),(0,n.useEffect)(()=>{const e=[];w&&e.push(w),k&&e.push(k),0!==e.length?e.every(e=>N.has(e))&&v(!0):v(!0)},[N,w,k]);const j=e=>{E(t=>{const n=new Set(t);return n.add(e),n})},S=t.presents_image,C=y(S),T=t.title_image,A=y(T),L=t.title_image_small_screen,I=y(L),M=null===(i=r.find(e=>"event-start-date"===e.type))||void 0===i?void 0:i.date,P=null===(o=r.find(e=>"event-end-date"===e.type))||void 0===o?void 0:o.date,O="subtitle1-date-subtitle2"===t.layout?"subtitle1-date-subtitle2":"default",R=function(e,t,n){if(!t)return null;try{return"start-date-time-end-time-1"===e?function(e,t){const n=new Date(e),r=new Intl.DateTimeFormat("en-US",{timeZone:ec,month:"long"}).format(n),a=Number(new Intl.DateTimeFormat("en-US",{timeZone:ec,day:"numeric"}).format(n)),s=e=>{const{hour:t,minute:n,dayPeriod:r}=tc(e,ec);return"00"===n?`${t}${r}`:`${t}:${n} ${r}`},i=s(n);if(!t)return`${r} ${rc(a)} · ${i} EDT`;const o=s(new Date(t));return`${r} ${rc(a)} · ${i} - ${o} EDT`}(t,n):function(e){const t=new Date(e);return`${new Intl.DateTimeFormat("en-US",{timeZone:ec,month:"short",day:"numeric"}).format(t)} @ ${nc(t,"America/Los_Angeles")} PT | ${nc(t,ec)} ET`}(t)}catch(e){return t}}(t.start_end_dates_format,M,P),D=t.subtitle?(0,s.jsx)("div",{className:"events-hero-subtitle",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.subtitle})}):null,F=R?(0,s.jsx)("div",{className:"events-hero-date-time",children:R}):null,U="subtitle1-date-subtitle2"===O&&t.subtitle_2?(0,s.jsx)("div",{className:"events-hero-subtitle-2",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.subtitle_2})}):null,$=["tl","tr","bl","br"],B=null===(l=t.data)||void 0===l?void 0:l.callouts,H=Array.isArray(B)?B.filter(e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.label):[],z="string"==typeof(null===(c=t.data)||void 0===c?void 0:c.wordmark)&&t.data.wordmark.trim()?t.data.wordmark:"cmnycv2-hero"===t.class?"chief marketer":"",q=T&&A?(0,s.jsx)("div",{className:"events-hero-title-image large-screen",children:(0,s.jsx)("img",{src:A,alt:(null===(u=t.title_image)||void 0===u?void 0:u.alternativeText)||(null===(d=t.title_image)||void 0===d?void 0:d.caption)||t.title||"Event title",className:"events-hero-title-image-img",width:T.width,height:T.height,fetchPriority:"high"})}):null,G=L&&I?(0,s.jsx)("div",{className:"events-hero-title-image small-screen",children:(0,s.jsx)("img",{src:I,alt:null===(h=t.title_image_small_screen)||void 0===h?void 0:h.caption,className:"events-hero-title-image-img",width:L.width,height:L.height,fetchPriority:"high"})}):null,W=!q&&t.title?(0,s.jsx)("h1",{className:"events-hero-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.title})}):null,Y=z?(0,s.jsx)("p",{className:"events-hero-wordmark",children:z}):null,V=H.length>0||Y?(0,s.jsxs)("div",{className:"events-hero-lockup",children:[H.map((e,t)=>{const n=((e,t)=>"string"==typeof e.slot&&e.slot?e.slot:"string"==typeof e.id&&e.id&&!/^\d+$/.test(e.id)?e.id:$[t])(e,t);return(0,s.jsx)("p",{className:"events-hero-callout"+(n?` events-hero-callout-${n}`:""),children:e.label},null!=n?n:`callout-${t}`)}),null!=Y?Y:(0,s.jsxs)(s.Fragment,{children:[q,G,W]}),(Y||q)&&t.title?(0,s.jsx)("h1",{className:"events-hero-title is-visually-hidden",children:t.title}):null]}):(0,s.jsxs)(s.Fragment,{children:[q,W,G]});return(0,s.jsxs)("div",{className:"events-hero"+("default"!==O?` layout-${O}`:""),style:{opacity:f?1:0,transition:"opacity 0.3s ease-in-out"},children:[(w||k)&&(0,s.jsxs)("div",{className:"events-hero-media",children:[x&&w&&(0,s.jsx)("img",{ref:g,className:"events-hero-background large-screen",alt:null===(p=t.background_image)||void 0===p?void 0:p.caption,src:w,width:x.width,height:x.height,fetchPriority:"high",onLoad:()=>j(w)}),_&&k&&(0,s.jsx)("img",{ref:b,className:"events-hero-background small-screen",alt:null===(m=t.background_image_small_screen)||void 0===m?void 0:m.caption,src:k,width:_.width,height:_.height,fetchPriority:"high",onLoad:()=>j(k)})]}),(0,s.jsxs)("div",{className:"events-hero-content",children:[t.eyebrow&&(0,s.jsx)("p",{className:"events-hero-eyebrow",children:t.eyebrow}),S&&C&&(0,s.jsx)("div",{className:"events-hero-presents",children:(0,s.jsx)("img",{src:C,alt:"Presents",className:"events-hero-presents-image",width:S.width,height:S.height,fetchPriority:"high"})}
2),V,"subtitle1-date-subtitle2"===O?(0,s.jsxs)("div",{className:"events-hero-copy",children:[D,F,U]}):(0,s.jsxs)(s.Fragment,{children:[D,F]}),!a&&t.register_button&&t.register_button.length>0&&(0,s.jsx)("div",{className:"events-hero-register-buttons",children:t.register_button.map(t=>{const n=Cl(t);return n.render?(0,s.jsx)("div",{className:"events-hero-register-button"+(n.class?` ${n.class}`:""),children:(0,s.jsx)(Al,{baseUrl:e,registerButton:t,dates:r})},t.id):null})})]})]})};i(6528);const sc=.315,ic=.525,oc={cloud1:45,cloud2:80,cloud3:35,cloud4:45,cloud5:150,cloud7:40},lc={cloud1:[{progress:0,x:0,y:0},{progress:"viewport-height",x:0,y:0},{progress:1,x:32,y:20}],cloud2:[{progress:0,x:0,y:0},{progress:"viewport-height",x:0,y:0},{progress:1,x:-27,y:0}],cloud3:[{progress:0,x:0,y:0},{progress:"viewport-height",x:0,y:0},{progress:1,x:17,y:0}],cloud4:[{progress:0,x:0,y:0},{progress:"viewport-height",x:0,y:0},{progress:1,x:-15,y:-79}],cloud5:[{progress:0,x:0,y:0},{progress:"viewport-height",x:0,y:0},{progress:1,x:42,y:-75}],cloud7:[{progress:0,x:0,y:0},{progress:"viewport-height",x:0,y:0},{progress:1,x:-102,y:-100}]},cc=[{progress:0,x:48,y:-6,opacity:0,scale:.75},{progress:{base:"viewport-touch",offset:0},x:48,y:-6,opacity:1,scale:.75},{progress:{base:"viewport-touch",offset:.4},x:54,y:-1,opacity:1,scale:.75},{progress:{base:"viewport-touch",offset:.5},x:57,y:0,opacity:1,scale:.75},{progress:1,x:61.5,y:2.5,opacity:1,scale:.75}],uc=[{progress:0,scale:3,bottom:0,translateY:0},{progress:"viewport-touch",scale:3,bottom:0,translateY:0},{progress:1,scale:3,bottom:0,translateY:0}],dc=[{progress:"viewport-height",opacity:0,scale:.75,translateYPercent:0},{progress:"opacity-end",opacity:1,scale:.8125,translateYPercent:-3.75},{progress:ic,opacity:1,scale:1,translateYPercent:-15}],hc=[{progress:"viewport-height",opacity:0,scale:.75,translateYPercent:0},{progress:"opacity-end",opacity:1,scale:.8125,translateYPercent:-3.75},{progress:.85,opacity:1,scale:1,translateYPercent:-15}],pc=[{progress:.595,opacity:0},{progress:.665,opacity:1}],mc=[{progress:.85,opacity:0},{progress:.92,opacity:1}],fc={hills1:[{progress:0,translateY:0,scale:1},{progress:"viewport-touch",translateY:0,scale:1},{progress:1,translateY:3,scale:1}],hills2:[{progress:0,translateY:0,scale:1},{progress:"viewport-touch",translateY:0,scale:1},{progress:1,translateY:0,scale:1}],hills3:[{progress:0,translateX:0,translateY:0,scale:1},{progress:"viewport-touch",translateX:0,translateY:0,scale:1},{progress:1,translateX:-3,translateY:8,scale:1}],greenery:[{progress:0,translateY:0,scale:1},{progress:"viewport-touch",translateY:0,scale:1},{progress:1,translateY:6.1,scale:1}]},vc={desktop:{clouds:lc,hero:dc,registerButtons:pc,terrain:uc,terrainItems:fc,wanderer:cc,gated:{clouds:lc,hero:dc,registerButtons:pc,terrain:uc,terrainItems:fc,wanderer:cc}},mobile:{clouds:lc,hero:hc,registerButtons:mc,terrain:uc,terrainItems:fc,wanderer:cc,gated:{clouds:lc,hero:hc,registerButtons:mc,terrain:uc,terrainItems:fc,wanderer:cc}}};var gc=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const bc=({hero:e,data:t,baseUrl:r="",gated:a=!1,dates:i=[]})=>{const o="small_",l=(0,n.useRef)(null),c=(0,n.useRef)(null),d=(0,n.useRef)(null),h=(0,n.useRef)(null),p=(0,n.useRef)(null),[m,f]=(0,n.useState)(0),[v,g]=(0,n.useState)(0),[b,y]=(0,n.useState)({width:1920,height:1080}),[x,w]=(0,n.useState)(!1),[_,k]=(0,n.useState)(1630),[N,E]=(0,n.useState)(!1),[j,S]=(0,n.useState)(!1),[C,T]=(0,n.use
2State)(null),[A,L]=(0,n.useState)(!1),[I,M]=(0,n.useState)(!1),[P,O]=(0,n.useState)(!1),[R,D]=(0,n.useState)(!1),[F,U]=(0,n.useState)(null),[$,B]=(0,n.useState)(null),[H,z]=(0,n.useState)(0),q=b.width<=991,G=q?.75:.25,W=(0,n.useMemo)(()=>{const e=q?vc.mobile:vc.desktop;return a?e.gated:e},[q,a]),Y=(0,n.useRef)(!1),V=(0,n.useRef)(!1),K=(0,n.useCallback)(e=>e?e.startsWith("http")?e:`${r}${e}`:null,[r]),Q=(0,n.useCallback)(e=>{if(!e)return null;try{let t;t=e.startsWith("http://")||e.startsWith("https://")?new URL(e):new URL(e,r||("undefined"!=typeof window?window.location.origin:""));const n=t.pathname.split("/").filter(e=>e),a=n[n.length-1],s=n.slice(0,-1).join("/"),i=`${o}${a}`,l=s?`/${s}/${i}`:`/${i}`;return`${t.origin}${l}${t.search}`}catch(t){const n=e.lastIndexOf("/");return-1===n?`${o}${e}`:`${e.substring(0,n+1)}${o}${e.substring(n+1)}`}},[r,o]),X=(0,n.useCallback)(e=>new Promise(t=>{const n=new Image;let r=!1;const a=e=>{r||(r=!0,t(e))};if(n.src=e,n.complete&&n.naturalWidth>0)return void a(!0);const s=Date.now();n.onload=()=>{const e=Date.now()-s;a(e<50&&n.naturalWidth>0)},n.onerror=()=>{a(!1)},setTimeout(()=>{r||a(!1)},50)}),[]),J=(0,n.useCallback)(()=>{if(!l.current||!u())return;const e=window.scrollY,t=5*window.innerHeight,n=Math.min(1,Math.max(0,e/t)),r=M
2ath.min(1,Math.max(0,(e-t)/100));f(n),g(r),w(!0)},[]),Z=(0,n.useCallback)(()=>{if(!u())return;const e=window.innerWidth,t=window.innerHeight;y(n=>n.width!==e||n.height!==t?{width:e,height:t}:n)},[]);(0,n.useEffect)(()=>{if(!u())return;J(),Z();const e=()=>{requestAnimationFrame(J)},t=()=>{requestAnimationFrame(()=>{Z(),J()})},n=()=>{setTimeout(()=>{t()},100)};return window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",t,{passive:!0}),window.addEventListener("orientationchange",n,{passive:!0}),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",t),window.removeEventListener("orientationchange",n)}},[J,Z]),(0,n.useEffect)(()=>{if(!u()||!x)return;if(!(window.scrollY<=55))return O(!1),void L(!0);O(!0);const e=setTimeout(()=>{L(!0)},1250);return()=>clearTimeout(e)},[x]),(0,n.useEffect)(()=>{if(!u()||!P)return;const e=()=>{window.scrollY<=55||I||M(!0)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e)}},[P,I]),(0,n.useEffect)(()=>{if(u()&&N&&x&&A&&!I){const e=setTimeout(()=>{M(!0)},355);return()=>clearTimeout(e)}},[N,x,A,I]);const ee=(0,n.useRef)(!1),te=(0,n.useRef)(!1),ne=(0,n.useRef)(null),re=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!u())return;if(a)return;const e=()=>{ee.current&&j&&A&&(()=>{if(Y.current||te.current)return;if(ne.current)return;const e=5*window.innerHeight,t=window.scrollY;if(t>=e)return;let n;t<=55&&(n=555,ne.current=setTimeout(()=>{if(Y.current||te.current)return;const e=5*window.innerHeight;if(window.scrollY>=e)return;Y.current=!0,re.current=!0;const t=window.scrollY,n=e,r=performance.now(),a=e=>{if(te.current||!re.current)return void(re.current=!1);const s=e-r,i=Math.min(s/7e3,1);let o;o=i<.5?Math.pow(2*i,3)/2:1-Math.pow(2*(1-i),2)/2;const l=t+(n-t)*o;window.scrollTo(0,l),i<1?requestAnimationFrame(a):re.current=!1};requestAnimationFrame(a)},555))})()},t=()=>{ee.current||(ee.current=!0,e())},n=()=>{"visible"!==document.visibilityState||ee.current||(ee.current=!0,e())};(document.hasFocus()||"visible"===document.visibilityState)&&(ee.current=!0),window.addEventListener("focus",t),document.addEventListener("visibilitychange",n),e();const r=()=>{te.current=!0,re.current=!1,ne.current&&(clearTimeout(ne.current),ne.current=null),window.removeEventListener("wheel",r),window.removeEventListener("touchstart",r),window.removeEventListener("keydown",r)};return window.addEventListener("wheel",r,{passive:!0,once:!0}),window.addEventListener("touchstart",r,{passive:!0,once:!0}),window.addEventListener("keydown",r,{once:!0}),()=>{window.removeEventListener("focus",t),document.removeEventListener("visibilitychange",n),ne.current&&clearTimeout(ne.current),re.current=!1,window.removeEventListener("wheel",r),window.removeEventListener("touchstart",r),window.removeEventListener("keydown",r)}},[j,a,A]),(0,n.useEffect)(()=>{if(!u()||!a||!N)return;if(V.current)return;V.current=!0,Y.current=!0,te.current=!0;const e=window.innerHeight,t=window.innerWidth,n=5*e;if(!(window.scrollY<=55))return void D(!0);const r=()=>{D(!0),window.removeEventListener("scrollend",r)};window.addEventListener("scrollend",r);const s=n-(t<=991?5:255);requestAnimationFrame(()=>{window.scrollTo(0,s)});const i=setTimeout(()=>{window.removeEventListener("scrollend",r),D(!0)},500);return()=>{window.removeEventListener("scrollend",r),clearTimeout(i)}},[a,N]),(0,n.useLayoutEffect)(()=>{if(!u()||!d.current)return;const e=d.current.scrollWidth;e>0&&e!==_&&k(e)},[m,b,_]),(0,n.useLayoutEffect)(()=>{if(!u()||!h.current)return;const e=h.current;e.naturalWidth>0&&e.naturalHeight>0&&!F&&U({naturalWidth:e.naturalWidth,naturalHeight:e.naturalHeight})},[N,F]),(0,n.useLayoutEffect)(()=>{if(!(u()&&p.current&&h.current&&c.current))return;if(!N||$)return;const e=c.current.getBoundingClientRect(),t=p.current.getBoundingClientRect(),n=h.current.getBoundingClientRect(),r=e.height;if(r>0){const a=(t.bottom-e.top)/r,s=n.top-e.top;
2B({registerButtonsBottomPercent:a,hills1TopPercent:s/r})}},[N,$]),(0,n.useEffect)(()=>{if(!u()||!l.current)return;const e=l.current.closest(".event");if(!e)return;const t=v;return e.style.setProperty("--absolute-hero-nav-opacity",String(t)),e.style.setProperty("--absolute-hero-nav-transform",`translateY(${-100*(1-t)}%)`),()=>{e.style.removeProperty("--absolute-hero-nav-opacity"),e.style.removeProperty("--absolute-hero-nav-transform")}},[v]);const ae=(0,n.useCallback)((e,t,n,r,a)=>e<=t?r:e>=n?a:r+(e-t)/(n-t)*(a-r),[]),se=(0,n.useCallback)((e,t,n,r)=>{var a,s,i,o,l,c,u,d,h,p,m,f,v,g,b,y,x,w,_,k;const N=e<=t?0:e>=n?1:(e-t)/(n-t);if(void 0!==r[0].progress){if(N<=(null!==(a=r[0].progress)&&void 0!==a?a:0)){const e=r[0];return{x:e.x,y:e.y,opacity:null!==(s=e.opacity)&&void 0!==s?s:1,scale:null!==(i=e.scale)&&void 0!==i?i:1}}const e=r[r.length-1];if(N>=(null!==(o=e.progress)&&void 0!==o?o:1))return{x:e.x,y:e.y,opacity:null!==(l=e.opacity)&&void 0!==l?l:1,scale:null!==(c=e.scale)&&void 0!==c?c:1};for(let e=0;e<r.length-1;e++){const t=r[e],n=r[e+1],a=null!==(u=t.progress)&&void 0!==u?u:0,s=null!==(d=n.progress)&&void 0!==d?d:1;if(N>=a&&N<=s){const e=(N-a)/(s-a),r=null!==(h=t.opacity)&&void 0!==h?h:1,i=null!==(p=n.opacity)&&void 0!==p?p:1,o=null!==(m=t.scale)&&void 0!==m?m:1,l=null!==(f=n.scale)&&void 0!==f?f:1;return{x:t.x+(n.x-t.x)*e,y:t.y+(n.y-t.y)*e,opacity:r+(i-r)*e,scale:o+(l-o)*e}}}}if(N<=0){const e=r[0];return{x:e.x,y:e.y,opacity:null!==(v=e.opacity)&&void 0!==v?v:1,scale:null!==(g=e.scale)&&void 0!==g?g:1}}if(N>=1){const e=r[r.length-1];return{x:e.x,y:e.y,opacity:null!==(b=e.opacity)&&void 0!==b?b:1,scale:null!==(y=e.scale)&&void 0!==y?y:1}}const E=r.length-1,j=N*E,S=Math.min(Math.ceil(j),E-1),C=j-S,T=r[S],A=r[S+1],L=null!==(x=T.opacity)&&void 0!==x?x:1,I=null!==(w=A.opacity)&&void 0!==w?w:1,M=null!==(_=T.scale)&&void 0!==_?_:1,P=null!==(k=A.scale)&&void 0!==k?k:1;return{x:T.x+(A.x-T.x)*C,y:T.y+(A.y-T.y)*C,opacity:L+(I-L)*C,scale:M+(P-M)*C}},[]),ie=(0,n.useMemo)(()=>{const e=b.height/1.587*3*1.05*.9;return Math.max(e,800)},[b.height]),oe=(0,n.useMemo)(()=>{const e=1.587,t=b.width,n=Math.min(t,ie),r=b.height,a=r>n*e;let s,i;a?(s=n,i=n*e):(s=r/e,i=r);let o=.25*n,l=o*e;const c=.7*r;l>c&&(l=c,o=l/e);const u=Math.min(300,.5*r);l<u&&(l=u,o=l/e);const d=o/s;let h,p,f,v;h=a?sc:0+(r/e-o)/(n-o)*.315,h=Math.max(0,Math.min(sc,h)),m<=h?(p=s,f=i,v=ae(m,0,h,d,1)):a?(p=n,f=ae(m,h,ic,i,r),v=1):(f=r,p=m<=sc?ae(m,h,sc,s,n):n,v=1);const g=Math.ceil(p),y=Math.ceil(f),w=g*v,_=y*v,k=Math.ceil((t-w)/2),E=Math.ceil((r-_)/2),j=_>=r,S=Math.abs(3*H),C=m>=h?Math.min(1,(m-h)/(1-h)):0,T=Math.ceil(S*C),L=E-30-20,I=E+_+30,M=y+T,P=s*d,O=i*d,R=Math.ceil((t-P)/2),D=Math.ceil((r-O)/2);return{width:`${g}px`,height:`${M}px`,left:`${k}px`,top:j?"0":`${E}px`,bottom:j?"0":"auto",transform:`scale(${v})`,transformOrigin:"top left",heightExtensionPx:T,topPx:E,leftPx:k,heightPx:y,scale:v,visualWidth:w,visualHeight:_,viewportTouchProgress:h,windowFillsViewport:j,windowReady:N&&x&&A,visibility:N&&x&&A?"visible":"hidden",opacity:N&&x&&A?1:0,presentsTop:`${L}px`,dateTop:`${I}px`,initialWidth:`${Math.ceil(s)}px`,initialHeight:`${Math.ceil(i)}px`,initialLeft:`${R}px`,initialTop:`${D}px`,initialTransform:`scale(${d})`,initialTransformOrigin:"top left"}},[m,b,x,N,A,ae,ie,H]),le=((0,n.useMemo)(()=>{const e=Math.min(b.width,ie),t=b.height,n=.25*e,r=(e-n)/.315;let a;return a=t>1.587*e?ic:0+(t/1.587-n)/(e-n)*.315,a=Math.max(0,Math.min(ic,a)),a+e/2/(r/2)},[b,ie]),(0,n.useCallback)(()=>{const e=1.587,t=Math.min(b.width,ie),n=b.height;let r=.25*t,a=r*e;const s=.7*n;a>s&&(a=s,r=a/e);const i=Math.min(300,.5*n);a<i&&(a=i,r=a/e);const o=n>t*e,l=o?t*e:n;let c,u;c=o?sc:0+(n/e-r)/(t-r)*.315,c=Math.max(0,Math.min(sc,c)),u=o?n-l<=0?c:ic:c,u=Math.max(0,Math.min(ic,u));const d=(t-r)/.315,h=t/2/(d/2);let p=0,f=1;if(m>=sc&&(f=(t+(m-sc)*d)/t),m>=u){const e=m-u;p=100*-Math.min(1,e/h)}return{translateYPercent:p,scale:f}},[m,b,ie])),ce=(0,n.useMemo)(()=>{const{translateYPercent:e,scale:t}=le();return{transform:`translateY(${e}%) scale(${t})`}},[le]),ue=(0,n.useMemo)(()=>{const{translateYPercent:e,scale:t}
2=le();return{transform:`translateY(${e}%) scale(${t})`,top:"-1px",left:"-1px",width:"calc(100% + 2px)"}},[le]),de=(0,n.useMemo)(()=>ae(m,0,.01225,1,0),[m,ae]),he=(0,n.useMemo)(()=>{const e=1.587,t=Math.min(b.width,ie),n=b.height,r=.25*t,a=n>t*e;let s,i,o;s=a?t:n/e,a?i=sc:(i=0+(n/e-r)/(t-r)*.315,i=Math.max(0,Math.min(sc,i))),o=m<=i?s:a?t:ae(m,i,sc,s,t);const l=0+(n/e/t*100-25)/75*.315,c=Math.max(0,Math.min(sc,l)),u=(e,t)=>{var n;const r=(e=>e.map(e=>Object.assign(Object.assign({},e),{progress:"viewport-height"===e.progress?c:e.progress})))(t),a=se(m,0,1,r),s=(null!==(n=oc[e])&&void 0!==n?n:50)/100*o;return{transform:`translate(${a.x}%, ${a.y}%) scale(${a.scale})`,opacity:a.opacity,maxWidth:`${Math.ceil(s)}px`}};return{cloud1:u("cloud1",W.clouds.cloud1),cloud2:u("cloud2",W.clouds.cloud2),cloud3:u("cloud3",W.clouds.cloud3),cloud4:u("cloud4",W.clouds.cloud4),cloud5:u("cloud5",W.clouds.cloud5),cloud7:u("cloud7",W.clouds.cloud7)}},[m,se,b,ae,ie,W]),pe=(0,n.useMemo)(()=>{const e=Math.min(b.width,ie),t=0+(b.height/1.587/e*100-25)/75*.315,n=Math.max(0,Math.min(sc,t)),r=W.hero,a=r.find(e=>"number"==typeof e.progress&&e.progress>0),s="number"==typeof(null==a?void 0:a.progress)?a.progress:ic,i=n+.25*(s-n),o=r.map(e=>{return Object.assign(Object.assign({},e),{progress:(t=e.progress,"viewport-height"===t?n:"opacity-end"===t?i:t)});var t}).sort((e,t)=>e.progress-t.progress);let l=o[0],c=o[o.length-1];for(let e=0;e<o.length-1;e++)if(m>=o[e].progress&&m<=o[e+1].progress){l=o[e],c=o[e+1];break}m<o[0].progress&&(l=o[0],c=o[0]),m>o[o.length-1].progress&&(l=o[o.length-1],c=o[o.length-1]);const u=ae(m,l.progress,c.progress,l.opacity,c.opacity),d=ae(m,l.progress,c.progress,l.scale,c.scale),h=ae(m,l.progress,c.progress,l.translateYPercent,c.translateYPercent),p=W.registerButtons,f=p[0],v=p[p.length-1];return{opacity:u,transform:`translate(-50%, calc(-50% + ${h}vh)) scale(${d})`,registerButtonsOpacity:ae(m,f.progress,v.progress,f.opacity,v.opacity)}},[m,ae,b,ie,W]),me=(0,n.useMemo)(()=>{const e=Math.min(b.width,ie),t=0+(b.height/1.587/e*100-25)/75*.315,n=Math.max(0,Math.min(sc,t)),r=Math.min(n,.315),a=W.wanderer.map(e=>{return Object.assign(Object.assign({},e),{progress:(t=e.progress,"number"==typeof t?t:"viewport-touch"===t?r:"object"==typeof t&&"viewport-touch"===t.base?r+t.offset:0)});var t}),s=se(m,0,1,a);return{opacity:s.opacity,left:`${s.x}%`,bottom:`${s.y}%`,scale:s.scale}},[m,se,b,ie,W]),fe=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!u())return;const e=()=>{const e=window.innerWidth,t=window.innerHeight,n=t/1.587*3*1.05,r=Math.max(.9*n,800),a=Math.min(e,r),s=t/1.587,i=Math.min(a,s),o=(e=>{var t;const n=e.viewportHeight;let r;r=void 0!==e.registerButtonsBottomPercent?n*e.registerButtonsBottomPercent:.4785*n+278;const a=null!==(t=e.finalTerrainCssWidth)&&void 0!==t?t:e.terrainCssWidth;let s;s=void 0!==e.hills1TopPercent?n*e.hills1TopPercent:e.hills1NaturalWidth&&e.hills1NaturalHeight?n-3*a/(e.hills1NaturalWidth/e.hills1NaturalHeight):n-3*a*1.05/2.878;const i=s-r;let o=0;return i>0&&(o=-(i-0)),i<-0&&(o=-0-i),o/=6,o})({terrainWidth:1630,viewportWidth:a,viewportHeight:t,windowWidth:a,windowHeight:t,terrainCssWidth:i,terrainScale:3,finalTerrainCssWidth:i,hills1NaturalWidth:void 0,hills1NaturalHeight:void 0,registerButtonsBottomPercent:void 0,hills1TopPercent:void 0});z(o),fe.current=!0},t=setTimeout(e,100),n=()=>{requestAnimationFrame(e)},r=()=>{setTimeout(()=>{n()},100)};return window.addEventListener("resize",n,{passive:!0}),window.addEventListener("orientationchange",r,{passive:!0}),()=>{clearTimeout(t),window.removeEventListener("resize",n),window.removeEventListener("orientationchange",r)}},[]);const ve=H,ge=(0,n.useMemo)(()=>{const e=1.587,t=Math.min(b.width,ie),n=b.height,r=.25*t,a=n>t*e;let s,i,o,l;a?(s=t,i=t*e):(s=n/e,i=n),a?o=sc:(o=0+(n/e-r)/(t-r)*.315,o=Math.max(0,Math.min(sc,o))),l=m<=o?s:a?t:ae(m,o,sc,s,t);const c=n/e,u=Math.min(l,c);let d;d=m<=o?i:a?ae(m,o,ic,i,n):n;const h=Math.min(t,c),p=e=>({terrainWidth:_,viewportWidth:t,viewportHeight:n,windowWidth:l,windowHeight:d,terrainCssWidth:u,terrainScale:e,finalTerrainCssWidth:h});let f=p(3);
2const v=0+(n/e/t*100-25)/75*.315,g=Math.max(0,Math.min(sc,v)),y=sc,x=Math.min(g,y),w=W.terrain.map(e=>{let t;t="viewport-height"===e.progress?g:"viewport-width"===e.progress?y:"viewport-touch"===e.progress?x:e.progress;const n=(e=>"function"==typeof e?e(f):e)(e.scale);return f=p(n),Object.assign(Object.assign({},e),{progress:t,scale:n,translateY:e.translateY})});w.sort((e,t)=>e.progress-t.progress);const k=[];for(const e of w)k.length>0&&Math.abs(e.progress-k[k.length-1].progress)<.001?k[k.length-1]=e:k.push(e);let N=k[0].scale,E=k[0].bottom,j=k[0].translateY;for(let e=0;e<k.length-1;e++){const t=k[e],n=k[e+1];if(m>=t.progress&&m<=n.progress){N=ae(m,t.progress,n.progress,t.scale,n.scale),E=ae(m,t.progress,n.progress,t.bottom,n.bottom),j=ae(m,t.progress,n.progress,t.translateY,n.translateY);break}m>n.progress&&(N=n.scale,E=n.bottom,j=n.translateY)}return{bottom:`${E}px`,width:`${Math.ceil(u)}px`,left:"50%",transform:`translateX(-50%) scale(${N}) translateY(${j}px)`,translateYPixels:j}},[m,ae,b,_,ie,W]),be=(0,n.useMemo)(()=>{const e=Math.min(b.width,ie),t=0+(b.height/1.587/e*100-25)/75*.315,n=Math.max(0,Math.min(sc,t)),r=Math.min(n,.315),a=W.terrainItems,s=e=>{const{translateX:t,translateY:n,scale:s}=(e=>{var t,n,s,i,o,l,c,u,d,h;const p=a[e];if(!p||0===p.length)return{translateX:0,translateY:0,scale:1};const f=p.map(e=>{return Object.assign(Object.assign({},e),{progress:(t=e.progress,"viewport-touch"===t?r:t)});var t}).sort((e,t)=>e.progress-t.progress);if(m<=f[0].progress)return{translateX:null!==(t=f[0].translateX)&&void 0!==t?t:0,translateY:f[0].translateY,scale:null!==(n=f[0].scale)&&void 0!==n?n:1};if(m>=f[f.length-1].progress){const e=f[f.length-1];return{translateX:null!==(s=e.translateX)&&void 0!==s?s:0,translateY:e.translateY,scale:null!==(i=e.scale)&&void 0!==i?i:1}}for(let e=0;e<f.length-1;e++){const t=f[e],n=f[e+1];if(m>=t.progress&&m<=n.progress){const e=(m-t.progress)/(n.progress-t.progress),r=null!==(o=t.translateX)&&void 0!==o?o:0,a=null!==(l=n.translateX)&&void 0!==l?l:0,s=null!==(c=t.scale)&&void 0!==c?c:1,i=null!==(u=n.scale)&&void 0!==u?u:1;return{translateX:r+(a-r)*e,translateY:t.translateY+(n.translateY-t.translateY)*e,scale:s+(i-s)*e}}}return{translateX:null!==(d=f[0].translateX)&&void 0!==d?d:0,translateY:f[0].translateY,scale:null!==(h=f[0].scale)&&void 0!==h?h:1}})(e);let i="";return 0!==t&&(i+=`translateX(${t}%) `),i+=`translateY(${n}%)`,1!==s&&(i+=` scale(${s})`),i};return{hills1:{transform:s("hills1")},hills2:{transform:s("hills2")},hills3:{transform:s("hills3")},greenery:{transform:s("greenery")}}},[m,b,ie,W]),ye=(0,n.useMemo)(()=>{var e,n,r,a,s,i,o,l,c,u,d,h,p,m,f,v,g,b,y,x,w;const _=e=>K(e)||null;return{hills:{hills1:_(null===(n=null===(e=null==t?void 0:t.assetUrls)||void 0===e?void 0:e.hills)||void 0===n?void 0:n.hills1),hills2:_(null===(a=null===(r=null==t?void 0:t.assetUrls)||void 0===r?void 0:r.hills)||void 0===a?void 0:a.hills2),hills3:_(null===(i=null===(s=null==t?void 0:t.assetUrls)||void 0===s?void 0:s.hills)||void 0===i?void 0:i.hills3)},clouds:{cloud1:_(null===(l=null===(o=null==t?void 0:t.assetUrls)||void 0===o?void 0:o.clouds)||void 0===l?void 0:l.cloud1),cloud2:_(null===(u=null===(c=null==t?void 0:t.assetUrls)||void 0===c?void 0:c.clouds)||void 0===u?void 0:u.cloud2),cloud3:_(null===(h=null===(d=null==t?void 0:t.assetUrls)||void 0===d?void 0:d.clouds)||void 0===h?void 0:h.cloud3),cloud4:_(null===(m=null===(p=null==t?void 0:t.assetUrls)||void 0===p?void 0:p.clouds)||void 0===m?void 0:m.cloud4),cloud5:_(null===(v=null===(f=null==t?void 0:t.assetUrls)||void 0===f?void 0:f.clouds)||void 0===v?void 0:v.cloud5),cloud7:_(null===(b=null===(g=null==t?void 0:t.assetUrls)||void 0===g?void 0:g.clouds)||void 0===b?void 0:b.cloud7)},greenery:_(null===(y=null==t?void 0:t.assetUrls)||void 0===y?void 0:y.greenery),wanderer:_(null===(x=null==t?void 0:t.assetUrls)||void 0===x?void 0:x.wanderer),motionPresents:_(null===(w=null==t?void 0:t.assetUrls)||void 0===w?void 0:w.motionPresents)}},[t,K]);(0,n.useEffect)(()=>{if(!u())return E(!0),S(!0),void T({hills:{hills1:ye.hills.hills1,hills2:ye.hills.hills2,hills3:ye.hills.hills3},clouds:{cloud1:ye.clouds.cloud1,cloud2:ye.clouds.cloud2,cloud3:ye.clouds.cloud3,cloud4:ye.clouds.cloud4,cloud5:ye.clouds.cloud5,cloud7:ye.clouds.cloud7},greenery:ye.greenery,wanderer:ye.wanderer,motionPresents:ye.motionPresents});const e=[ye.hills.hills1,ye.hills.hills2,ye.hills.hills3,ye.clouds.cloud1,ye.clouds.cloud2,ye.clouds.cloud3,ye.clouds.cloud4,ye.clouds.cloud5,ye.clouds.cloud7,ye.greenery,ye.wanderer].filter(e=>null!==e),t=e=>new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{n.decode?n.decode().then(()=>t()).catch(()=>t()):t()},n.onerror=()=>t()});return gc(void 0,void 0,void 0,function*(){const n=()=>
2{if(!document.fonts)return Promise.resolve();const e=()=>{try{const e=['1em "Instrument Serif"',"1em Instrument Serif","1em Instrument",'1em "Instrument"','400 1em "Instrument Serif"',"400 1em Instrument Serif"],t=["1em Inter",'1em "Inter"',"1em inter","400 1em Inter",'400 1em "Inter"'].some(e=>document.fonts.check(e)),n=e.some(e=>document.fonts.check(e));return t&&n}catch(e){return!0}};return e()?Promise.resolve():new Promise(t=>{const n=Date.now(),r=()=>{const a=Date.now()-n;e()||a>=2e3?t():setTimeout(r,50)};r()})};if(yield gc(void 0,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>X(e)))).every(e=>e)})){const r=e.map(e=>t(e));ye.motionPresents&&r.push(t(ye.motionPresents)),yield Promise.all(r),T({hills:{hills1:ye.hills.hills1,hills2:ye.hills.hills2,hills3:ye.hills.hills3},clouds:{cloud1:ye.clouds.cloud1,cloud2:ye.clouds.cloud2,cloud3:ye.clouds.cloud3,cloud4:ye.clouds.cloud4,cloud5:ye.clouds.cloud5,cloud7:ye.clouds.cloud7},greenery:ye.greenery,wanderer:ye.wanderer,motionPresents:ye.motionPresents}),yield n(),E(!0),S(!0)}else{const r=e.map(e=>Q(e)).filter(e=>null!==e).map(e=>t(e)),a=ye.motionPresents?t(ye.motionPresents):Promise.resolve();yield Promise.all([...r,a]),T({hills:{hills1:Q(ye.hills.hills1),hills2:Q(ye.hills.hills2),hills3:Q(ye.hills.hills3)},clouds:{cloud1:Q(ye.clouds.cloud1),cloud2:Q(ye.clouds.cloud2),cloud3:Q(ye.clouds.cloud3),cloud4:Q(ye.clouds.cloud4),cloud5:Q(ye.clouds.cloud5),cloud7:Q(ye.clouds.cloud7)},greenery:Q(ye.greenery),wanderer:Q(ye.wanderer),motionPresents:ye.motionPresents}),yield n(),yield new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(e))),E(!0),gc(void 0,void 0,void 0,function*(){const n=Date.now(),r=e.map(e=>t(e));ye.motionPresents&&r.push(t(ye.motionPresents));const a=Promise.all(r),s=new Promise(e=>{const t=Date.now()-n,r=Math.max(0,0-t);setTimeout(e,r)});yield Promise.all([a,s]),T({hills:{hills1:ye.hills.hills1,hills2:ye.hills.hills2,hills3:ye.hills.hills3},clouds:{cloud1:ye.clouds.cloud1,cloud2:ye.clouds.cloud2,cloud3:ye.clouds.cloud3,cloud4:ye.clouds.cloud4,cloud5:ye.clouds.cloud5,cloud7:ye.clouds.cloud7},greenery:ye.greenery,wanderer:ye.wanderer,motionPresents:ye.motionPresents}),S(!0)})}}),()=>{}},[ye,Q,X]);const xe=m>=.99,we=(0,n.useMemo)(()=>Math.ceil(Math.abs(3*ve)),[ve]),_e=(0,n.useMemo)(()=>{const e=Math.abs(3*ve),t=oe.viewportTouchProgress||.5,n=m>=t?Math.min(1,(m-t)/(1-t)):0,r=Math.ceil(e*n),a=b.width<=991;let s=a?`${b.height}px`:"100dvh";return m>=t&&(s=a?`${b.height+we}px`:`calc(100dvh + ${we}px)`),{height:s,overflow:v>0?"visible":"hidden",heightExtensionPx:r,fullHeightExtensionPx:we}},[b,v,ve,m,oe.viewportTouchProgress,we]);return(0,s.jsxs)("div",{className:`absolute-hero ${a?"absolute-hero-is-gated":""} ${xe?"absolute-hero--complete":""}`,ref:l,children:[(0,s.jsxs)("div",{className:"absolute-hero__fixed-container",style:_e,children:[(0,s.jsx)("div",{className:"absolute-hero__background"}),(0,s.jsx)("div",{className:"absolute-hero__intro",style:{visibility:x?"visible":"hidden",opacity:x?de:0,top:oe.presentsTop,transition:"opacity 0.3s ease-in-out",display:a&&!R?"none":void 0},children:(null==C?void 0:C.motionPresents)||ye.motionPresents?(0,s.jsx)("img",{src:(null==C?void 0:C.motionPresents)||ye.motionPresents||"",alt:"Motion Presents",className:"absolute-hero__intro-presents-image",fetchPriority:"high"}):(0,s.jsxs)("div",{className:"absolute-hero__intro-presents",children:[(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"#2539C8",children:[(0,s.jsx)("rect",{x:"2",y:"4",width:"4",height:"16",rx:"1"}),(0,s.jsx)("rect",{x:"8",y:"8",width:"4",height:"12",rx:"1"}),(0,s.jsx)("rect",{x:"14",y:"6",width:"4",height:"14",rx:"1"})]}),(0,s.jsx)("span",{className:"absolute-hero__intro-presents-motion",children:"Motion"}),(0,s.jsx)("span",{className:"absolute-hero__intro-presents-text",children:"Presents"})]})}),(0,s.jsx)("div",{className:"absolute-hero__date",style:{visibility:x?"visible":"hidden",opacity:x?de:0,top:oe.dateTop,transition:"opacity 0.3s ease-in-out",display:a&&!R?"none":void 0},children:"03.2026"}),x&&P&&(()=>{const e=oe.initialWidth,t=oe.initialHeight,n=oe.initialLeft,r=oe.initialTop,a=oe.initialTransform,i=oe.initialTransformOrigin;return(0,s.jsx)("div",{className:"absolute-hero__window-outline",style:{width:`calc(${e} + 2px)`,height:`calc(${t} + 2px)`,left:`calc(${n} - 1px)`,top:`calc(${r} - 1px)`,transform:a,transformOrigin:i,opacity:I?0:1,transition:"opacity 0.3s ease-out",willChange:"opacity, transform",backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden"},children:(0,s.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 100 158.7",preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,transform:"translateZ(0)",WebkitTransform:"translateZ(0)"},children:(0,s.jsx)("path",{d:"M 1 157.7 \n                                   L 1 50 \n                                   A 49 49 0 0 1 99 50 \n                                   L 99 157.7 \n                                   L 1 157.7 Z",fill:"none",stroke:"white",strokeWidth:G,strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.5,className:"absolute-hero__window-outline-path",style:{strokeDasharray:"500",strokeDashoffset:"500",animation:"windowOutlineTrace 1250ms ease-out forwards"}})})})}
2)(),(0,s.jsxs)("div",{ref:c,className:"absolute-hero__window",style:{width:oe.width,height:oe.height,left:oe.left,top:oe.top,bottom:oe.bottom,transform:oe.transform,transformOrigin:oe.transformOrigin,visibility:oe.visibility,opacity:oe.opacity,transition:"opacity 0.555s ease-in-out, visibility 0s linear 0s, height 0ms linear",pointerEvents:pe.registerButtonsOpacity>=1?"auto":"none","--translate-y-offset":`${_e.heightExtensionPx||0}px`,"--window-styles-height":`${oe.height}`},children:[(0,s.jsx)("div",{className:"absolute-hero__sky"}),e&&(0,s.jsx)("div",{className:"absolute-hero__hero-content",style:{opacity:pe.opacity,transform:pe.transform},children:(0,s.jsx)(ac,{baseUrl:r,block:e,hideRegisterButtons:!0})}),(0,s.jsx)("div",{className:"absolute-hero__landscape",children:(0,s.jsxs)("div",{ref:d,className:"absolute-hero__terrain",style:{bottom:ge.bottom,width:ge.width,left:ge.left,transform:ge.transform},children:[((null==C?void 0:C.clouds.cloud7)||ye.clouds.cloud7)&&(0,s.jsx)("img",{src:(null==C?void 0:C.clouds.cloud7)||ye.clouds.cloud7||"",alt:"",className:"absolute-hero__cloud absolute-hero__cloud--7",style:he.cloud7,fetchPriority:"high"}),((null==C?void 0:C.hills.hills1)||ye.hills.hills1)&&(0,s.jsx)("img",{ref:h,src:(null==C?void 0:C.hills.hills1)||ye.hills.hills1||"",alt:"",className:"absolute-hero__hills absolute-hero__hills--1",style:be.hills1,fetchPriority:"high"}),((null==C?void 0:C.clouds.cloud1)||ye.clouds.cloud1)&&(0,s.jsx)("img",{src:(null==C?void 0:C.clouds.cloud1)||ye.clouds.cloud1||"",alt:"",className:"absolute-hero__cloud absolute-hero__cloud--1",style:he.cloud1,fetchPriority:"high"}),((null==C?void 0:C.hills.hills2)||ye.hills.hills2)&&(0,s.jsx)("img",{src:(null==C?void 0:C.hills.hills2)||ye.hills.hills2||"",alt:"",className:"absolute-hero__hills absolute-hero__hills--2",style:be.hills2,fetchPriority:"high"}),((null==C?void 0:C.clouds.cloud2)||ye.clouds.cloud2)&&(0,s.jsx)("img",{src:(null==C?void 0:C.clouds.cloud2)||ye.clouds.cloud2||"",alt:"",className:"absolute-hero__cloud absolute-hero__cloud--2",style:he.cloud2,fetchPriority:"high"}),((null==C?void 0:C.hills.hills3)||ye.hills.hills3)&&(0,s.jsx)("img",{src:(null==C?void 0:C.hills.hills3)||ye.hills.hills3||"",alt:"",className:"absolute-hero__hills absolute-hero__hills--3",style:be.hills3,fetchPriority:"high"}),((null==C?void 0:C.greenery)||ye.greenery)&&(0,s.jsx)("img",{src:(null==C?void 0:C.greenery)||ye.greenery||"",alt:"",className:"absolute-hero__greenery",style:be.greenery,fetchPriority:"high"}),((null==C?void 0:C.wanderer)||ye.wanderer)&&(0,s.jsx)("img",{src:(null==C?void 0:C.wanderer)||ye.wanderer||"",alt:"Wanderer on the path",className:"absolute-hero__wanderer",style:{opacity:me.opacity,left:me.left,bottom:me.bottom,transform:`scale(${me.scale})`},fetchPriority:"high"}),((null==C?void 0:C.clouds.cloud4)||ye.clouds.cloud4)&&(0,s.jsx)("img",{src:(null==C?void 0:C.clouds.cloud4)||ye.clouds.cloud4||"",alt:"",className:"absolute-hero__cloud absolute-hero__cloud--4",style:he.cloud4,fetchPriority:"high"}),((null==C?void 0:C.clouds.cloud5)||ye.clouds.cloud5)&&(0,s.jsx)("img",{src:(null==C?void 0:C.clouds.cloud5)||ye.clouds.cloud5||"",alt:"",className:"absolute-hero__cloud absolute-hero__cloud--5",style:he.cloud5,fetchPriority:"high"})]})}),(null==e?void 0:e.register_button)&&e.register_button.length>0&&(0,s.jsx)("div",{ref:p,className:"absolute-hero__register-buttons absolute-hero__register-buttons-independent",style:{opacity:pe.registerButtonsOpacity},children:e.register_button.map(e=>{const t=Cl(e);return t.render?(0,s.jsx)("div",{className:"events-hero-register-button"+(t.class?` ${t.class}`:""),children:(0,s.jsx)(Al,{baseUrl:r,registerButton:e,dates:i})},e.id):null})}),(0,s.jsx)("div",{className:"absolute-hero__arch-overlay arch-overlay-backing",style:ue}),(0,s.jsx)("div",{className:"absolute-hero__arch-overlay",style:ce})]})]}),(0,s.jsx)("div",{className:"absolute-hero__scroll-spacer",style:{height:m<(oe.viewportTouchProgress||.5)?`calc(500vh + ${we}px)`:"500vh"}})]})},yc=({versionName:e,hero:t,data:n,baseUrl:r="",gated:a=!1,dates:i=[]})=>("absolute-hero"===e||console.warn(`Unknown version: ${e}, defaulting to absolute-hero`),(0,s.jsx)(bc,{hero:t,data:n,baseUrl:r,gated:a,dates:i}));i(2244),i(4392);const xc={prefix:"/uploads/2026-creative-strategy-summit/rocky/rocky_",start:1e3,end:1394,padding:4,ext:"webp",fps:24.6875,loopFps:10,rewindFrames:10}
2,wc={baseColor:"#FE9D6C",blobColor:"#9C97FF",gradientAngleDeg:110},_c={targetCount:2,minLifeMs:700,maxLifeMs:1700,minSpawnDelayMs:600,maxSpawnDelayMs:1900,minSizePx:95,maxSizePx:155},kc={spawnIntervalMs:180,lifeMs:700,clusterRadiusPx:140,maxConcurrent:7,minSizePx:22,maxSizePx:70},Nc={enabled:!0,amplitudePx:8,durationSec:5,easing:"ease-in-out"},Ec=[{id:"organic-growth",title:"Organic Growth",icon:"snowflake",lines:["01.........ADAPTIVE","02..NEW ENVIRONMENT"],box:{xPercent:100,yPercent:35},anchor:{xPercent:59,yPercent:35},side:"left",startFrame:75},{id:"terra-firma",title:"Terra Firma",icon:"terra",lines:["01.....SOLID GROUND","02.....LOAD BEARING"],box:{xPercent:93,yPercent:65.5},anchor:{xPercent:52.42,yPercent:63},side:"left",startFrame:160},{id:"crystallizing",title:"Crystallizing",icon:"crystal",lines:["01..........CLARITY","02...........OUTPUT"],box:{xPercent:2.86,yPercent:52.87},anchor:{xPercent:27.11,yPercent:51},side:"right",startFrame:240},{id:"bloom",title:"Bloom",icon:"snowflake",lines:["01............SCALE","02...........GROWTH"],box:{xPercent:95,yPercent:8},anchor:{xPercent:49,yPercent:25},side:"left",startFrame:320}],jc={headlineLeft:"NEW WORLD. NEW PLAYBOOK",dates:"June 24–25 · 1:00 PM – 5:00 PM ET",eventTypeBadge:"2 Day Virtual Event",descriptionRight:"The annual event where Creative Strategy’s highest performers share the workflows and discoveries defining the future of the industry."};function Sc(e,t,n){var r,a;const s=null!==(r=e.padding)&&void 0!==r?r:4,i=null!==(a=e.ext)&&void 0!==a?a:"webp",o=String(n).padStart(s,"0"),l=`${e.prefix}${o}.${i}`;return l.startsWith("http")?l:`${t}${l}`}var Cc=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};let Tc=1;const Ac=()=>Tc++,Lc=(e,t)=>e+Math.random()*(t-e),Ic=(e,t)=>Math.floor(Lc(e,t+1)),Mc=({kind:e})=>"crystal"===e?(0,s.jsxs)("svg",{viewBox:"0 0 14 17",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeMiterlimit:"10",children:[(0,s.jsx)("path",{d:"M7 0.041L13.809 8.405L7 16.768L0.187 8.405L7 0.041Z",vectorEffect:"non-scaling-stroke"}),(0,s.jsx)("path",{d:"M6.976 0.316L10.561 8.418L7 16.546L3.439 8.391L6.976 0.316Z",vectorEffect:"non-scaling-stroke"}),(0,s.jsx)("path",{d:"M0.187 8.405H13.809",vectorEffect:"non-scaling-stroke"})]}):"terra"===e?(0,s.jsxs)("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1",children:[(0,s.jsx)("circle",{cx:"7",cy:"7",r:"6.75",vectorEffect:"non-scaling-stroke"}),(0,s.jsx)("ellipse",{cx:"7",cy:"7",rx:"4.75",ry:"6.75",vectorEffect:"non-scaling-stroke"}),(0,s.jsx)("ellipse",{cx:"7",cy:"7",rx:"1.75",ry:"6.75",vectorEffect:"non-scaling-stroke"})]}):(0,s.jsx)("svg",{viewBox:"0 0 15.5877 14.5836",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeMiterlimit:"10",children:(0,s.jsx)("path",{vectorEffect:"non-scaling-stroke",d:"M12.3822 12.9538C11.9485 13.996 10.7742 14.4862 9.74936 14.1048C9.01782 13.8322 8.62261 12.8691 8.52862 12.0937C8.38933 10.945 8.49691 9.77906 8.25344 8.75518C8.20021 8.52955 7.92504 8.42648 7.73253 8.45969C7.50265 8.49978 7.3509 8.67959 7.31919 8.93041C7.23313 9.59238 7.19576 10.2406 7.18104 10.9152C7.16858 11.4592 7.13688 11.9757 7.02363 12.5037C6.96135 12.7935 6.84584 13.0477 6.71562 13.3054C6.43364 13.8609 5.93765 14.2102 5.30009 14.2319C4.38737 14.2629 3.52333 13.6994 3.20852 12.8175C3.08962 12.4842 3.10547 12.1017 3.19946 11.7684C3.435 10.9347 4.38623 10.2944 5.10532 9.77906C5.66247 9.37936 6.1947 8.98538 6.69523 8.51925C6.87529 8.35204 6.95116 8.13787 6.84471 7.92484C6.73826 7.71182 6.52197 7.57438 6.2819 7.65341C5.18459 8.01188 4.3851 8.57651 3.36593 9.03005C2.1667 9.56375 0.873475 9.25796 0.46354 8.02105C0.248381 7.37281 0.341239 6.6593 0.722864 6.09696C1.18942 5.41208 2.15764 5.20135 2.9424 5.44186C3.39877 5.58158 3.80983 5.77628 4.23336 6.00076C4.88223 6.34435 5.51299 6.67075 6.20376 6.9147C6.45516 7.00289 6.68504 6.92272 6.81527 6.71542C6.96022 6.48522 6.88774 6.24127 6.68278 6.05344C6.19923 5.61022 5.69078 5.22654 5.15515 4.84287C4.6716 4.497 4.2175 4.17517 3.79058 3.75943C3.24249 3.22458 2.95373 2.42975 3.2289 1.68417C3.55957 0.782827 4.51873 0.266303 5.44391 0.367088C6.02371 0.430079 6.45969 0.779392 6.71901 1.28446C6.85717 1.55361 6.97267 1.82275 7.03043 2.12511C7.12555 2.62216 7.16405 3.10891 7.16745 3.61627C7.17198 4.34696 7.20822 5.05361 7.32825 5.77285C7.36676 6.00305 7.52869 6.17026 7.73932 6.20691C7.93296 6.24012 8.19342 6.13476 8.25344 5.91257C8.69848 4.26908 8.12095 2.42746 9.05293 1.05541C9.68142 0.130013 11.0811 0.13803 11.9247 0.943168C12.4524 1.44709 12.6416 2.18695 12.4071 2.88329C12.2814 3.25779 12.0538 3.56473 11.7639 3.83502C10.9259 4.6184 9.88978 5.17157 8.9125 6.09124C8.71546 6.27677 8.6713 6.51499 8.79813 6.73145C8.93629 6.96509 9.17523 7.01778 9.43795 6.92501C10.6983 6.47949 11.5148 5.8095 12.5589 5.42239C12.8239 5.32389 13.0991 5.30328 13.3867 5.30901C13.9869 5.3216 14.5712 5.57929 14.8985 6.10727C15.3684 6.86316 15.3492 7.85956 14.8464 8.58682C14.3017 9.37478 13.1591 9.44579 12.2803 9.05181C11.2442 8.58796 10.4968 8.00845 9.32584 7.63623C9.09482 7.56293 8.8842 7.69808 8.78228 7.88476C8.66564 8.09778 8.73245 8.33142 8.9159 8.50321C9.40171 8.95789 9.92602 9.33469 10.4594 9.7344L11.4559 10.4811C11.6903 10.6564 11.8874 10.8591 12.0719 11.0927C12.4785 11.6058 12.6517 12.3102 12.3834 12.9549L12.3822 12.9538Z"})}),Pc=({hero:e,data:t,baseUrl:r="",gated:a=!1,dates:i=[]})=>{var o,l,c,d,h,p,m,f,v,g,b,y,x,w,_;
2const k=null!==(l=null===(o=null==t?void 0:t.assetUrls)||void 0===o?void 0:o.rocky)&&void 0!==l?l:xc,N=Object.assign(Object.assign({},wc),null!==(c=null==t?void 0:t.background)&&void 0!==c?c:{}),E=null!==(d=null==t?void 0:t.annotations)&&void 0!==d?d:Ec,j=Object.assign(Object.assign({},_c),null!==(h=null==t?void 0:t.inversion)&&void 0!==h?h:{}),S=Object.assign(Object.assign({},kc),null!==(p=null==t?void 0:t.hoverInversion)&&void 0!==p?p:{}),C=Object.assign(Object.assign({},Nc),null!==(m=null==t?void 0:t.float)&&void 0!==m?m:{}),T=Object.assign(Object.assign({},jc),null!==(f=null==t?void 0:t.bottomCopy)&&void 0!==f?f:{}),[A,L]=(0,n.useState)({ready:!1,isCoarsePointer:!1,isLikelyMobileDevice:!1,staticRockQueryEnabled:!1,staticRockQueryForce:!1});(0,n.useEffect)(()=>{var e,t;if(!u())return;const n=window.navigator,r=null!==(e=null==n?void 0:n.userAgent)&&void 0!==e?e:"",a="function"==typeof window.matchMedia&&window.matchMedia("(pointer: coarse)").matches,s=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile/i.test(r),i=(null!==(t=null==n?void 0:n.maxTouchPoints)&&void 0!==t?t:0)>1,o=window.innerWidth<=991,l=a||s||i&&o,c=new URLSearchParams(window.location.search).get("rockyStatic");let d=!1,h=!1;if(null!==c){const e=c.trim().toLowerCase();"force"===e||"desktop"===e?(d=!0,h=!0):d=""===e||"1"===e||"true"===e||"yes"===e||"on"===e}L({ready:!0,isCoarsePointer:a,isLikelyMobileDevice:l,staticRockQueryEnabled:d,staticRockQueryForce:h})},[]);const I=function(e){if("boolean"==typeof e)return e;if("number"==typeof e)return 0!==e;if("string"==typeof e){const t=e.trim().toLowerCase();return"1"===t||"true"===t||"yes"===t||"on"===t}return!1}(null==t?void 0:t.staticRockOnMobile),M=A.staticRockQueryEnabled&&(A.isLikelyMobileDevice||A.staticRockQueryForce)||I&&A.ready&&A.isLikelyMobileDevice,P=I&&!A.ready&&!A.staticRockQueryEnabled;(0,n.useEffect)(()=>{if(!u())return;if("undefined"==typeof console||"function"!=typeof console.log)return;const e=null==t?void 0:t.staticRockOnMobile;console.log("[rocky] staticRockOnMobile status",{staticRockOnMobileRaw:e,staticRockOnMobileRawType:typeof e,staticRockOnMobileTruthyLike:I,runtimeFlagsReady:A.ready,staticRockQueryEnabled:A.staticRockQueryEnabled,staticRockQueryForce:A.staticRockQueryForce,isCoarsePointer:A.isCoarsePointer,isLikelyMobileDevice:A.isLikelyMobileDevice,shouldUseStaticRockFrame:M,userAgent:window.navigator.userAgent,viewport:{w:window.innerWidth,h:window.innerHeight}})},[null==t?void 0:t.staticRockOnMobile,I,A.ready,A.staticRockQueryEnabled,A.staticRockQueryForce,A.isCoarsePointer,A.isLikelyMobileDevice,M]);const O=Math.max(0,"number"==typeof(null==t?void 0:t.initialDelayMs)?t.initialDelayMs:3e3),R=Math.max(1,k.end-k.start+1),D=Math.max(0,R-1),F=M?D:0,U=(0,n.useMemo)(()=>M?[]:E,[M,E]),$=Math.max(1,null!==(g=null!==(v=k.fps)&&void 0!==v?v:xc.fps)&&void 0!==g?g:24),B=Math.max(1,null!==(y=null!==(b=k.loopFps)&&void 0!==b?b:xc.loopFps)&&void 0!==y?y:Math.round($/2)),H=Math.max(2,null!==(w=null!==(x=k.rewindFrames)&&void 0!==x?x:xc.rewindFrames)&&void 0!==w?w:10),z=(0,n.useMemo)(()=>function(e,t){const n=[];for(let r=e.start;r<=e.end;r++)n.push(Sc(e,t,r));return n}(k,r),[k.prefix,k.start,k.end,k.padding,k.ext,r]),q=(0,n.useRef)(null),G=(0,n.useRef)(null),W=(0,n.useRef)(null),Y=(0,n.useRef)(null),V=(0,n.useRef)(null),K=(0,n.useRef)(null),Q=(0,n.useRef)([]);Q.current.length!==R&&(Q.current=new Array(R).fill(!1));const X=(0,n.useRef)([]);X.current.length!==R&&(X.current=new Array(R));const[J,Z]=(0,n.useState)(0),[ee,te]=(0,n.useState)(M?D:0),[ne,re]=(0,n.useState)(0),ae=(0,n.useMemo)(()=>{const e=z[F];if(!e)return"";if(ne<=0)return e;const t=e.includes("?")?"&":"?";return`${e}${t}rocky_retry=${ne}`},[z,F,ne]),se=(0,n.useCallback)(e=>{e<0||e>=R||Q.current[e]||(Q.current[e]=!0,Z(e=>{let t=e;for(;t+1<R&&Q.current[t+1];)t++;return t}))},[R]);(0,n.useEffect)(()=>{if(!u())return;let e=!1;const t=(t,n)=>new Promise(r=>{const a=new Image;a.fetchPriority=n,a.decoding="async",a.src=z[t];const s=()=>
2{if(e)return r();X.current[t]=a,se(t),r()};a.onload=()=>{if(e)return r();a.decode?a.decode().then(s).catch(s):s()},a.onerror=()=>{"undefined"!=typeof console&&console.warn&&console.warn(`[rocky] frame ${t} failed to load: ${z[t]}`),se(t),r()}});return M?(te(D),t(D,"high").then(()=>{e||Z(D)}),()=>{e=!0}):(t(0,"high").then(()=>Cc(void 0,void 0,void 0,function*(){const n="undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(pointer: coarse)").matches;let r=1;const a=new Array(n?2:6).fill(0).map(()=>Cc(void 0,void 0,void 0,function*(){for(;!e;){const e=r++;if(e>=R)return;yield t(e,"low")}}));yield Promise.all(a)})),()=>{e=!0})},[z,se,R,M,D]);const ie=(0,n.useRef)(J);(0,n.useEffect)(()=>{ie.current=J},[J]);const oe=(0,n.useRef)({wCss:0,hCss:0,dpr:1}),[le,ce]=(0,n.useState)(!1),[ue,de]=(0,n.useState)(!1);(0,n.useEffect)(()=>{de(!M)},[M,F]),(0,n.useEffect)(()=>{if(!M)return;const e=K.current;e&&e.complete&&e.naturalWidth>0&&de(!0)},[M,F]);const he=!P&&(M?ue:le),pe=(0,n.useCallback)(()=>{const e=V.current,t=Y.current;if(!e||!t)return;const n=t.getBoundingClientRect(),r=Math.max(1,Math.floor(n.width)),a=Math.max(1,Math.floor(n.height)),s=Math.max(1,Math.min(2,window.devicePixelRatio||1)),i=Math.round(r*s),o=Math.round(a*s);e.width===i&&e.height===o||(e.width=i,e.height=o),oe.current={wCss:r,hCss:a,dpr:s}},[]),me=(0,n.useRef)(-1),fe=(0,n.useCallback)((e,t=!1)=>{const n=V.current;if(!n)return;if(!t&&me.current===e)return;const r=X.current[e];if(!r||!r.complete||0===r.naturalWidth)return;const a=n.getContext("2d");if(!a)return;const{dpr:s}=oe.current,i=n.width,o=n.height,l=r.naturalWidth,c=r.naturalHeight,u=Math.min(i/l,o/c),d=l*u,h=c*u,p=(i-d)/2,m=(o-h)/2;a.clearRect(0,0,i,o),a.drawImage(r,p,m,d,h),me.current=e,ce(e=>e||!0)},[]),ve=(0,n.useRef)(0),ge=(0,n.useRef)(0);(0,n.useEffect)(()=>{ve.current=0,ge.current=0},[M,D]),(0,n.useEffect)(()=>{if(!u())return;if(P)return;let e=!1;const t=M?D:0,n=z[t];if(!n)return;const r=()=>{const e=X.current[t];return!!e&&e.complete&&e.naturalWidth>0},a=()=>{const r=ve.current;if(r>=8)return;const a=Date.now(),s=Math.min(1e4,Math.round(1200*Math.pow(1.5,r)));if(a-ge.current<s)return;if(ge.current=a,ve.current=r+1,M)return de(!1),re(a),void("undefined"!=typeof console&&console.warn&&console.warn(`[rocky] retrying static fallback frame (attempt ${r+1})`));const i=n.includes("?")?"&":"?",o=`${n}${i}rocky_retry=${a}`,l=new Image;l.fetchPriority="high",l.decoding="async";const c=()=>{e||(X.current[t]=l,fe(t,!0),"undefined"!=typeof console&&console.info&&console.info(`[rocky] recovered critical frame ${t} on retry ${r+1}`))};l.onload=()=>{e||(l.decode?l.decode().then(c).catch(c):c())},l.onerror=()=>{e||"undefined"!=typeof console&&console.warn&&console.warn(`[rocky] critical frame retry failed (attempt ${r+1})`)},l.src=o},s=()=>
2{if(!e&&(()=>{if("undefined"==typeof document)return!0;const e="visible"===document.visibilityState,t="function"!=typeof document.hasFocus||document.hasFocus();return e&&t})()){if(M){const e=K.current;return e&&e.complete&&e.naturalWidth>0||r()?void(ue||de(!0)):void a()}le&&me.current>=0||r()&&(fe(t,!0),me.current>=0)||a()}},i=()=>s();s();const o=window.setInterval(s,2e3);return"undefined"!=typeof document&&document.addEventListener("visibilitychange",i),window.addEventListener("focus",i),window.addEventListener("pageshow",i),()=>{e=!0,window.clearInterval(o),"undefined"!=typeof document&&document.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i),window.removeEventListener("pageshow",i)}},[z,le,fe,M,ue,D,P]),(0,n.useEffect)(()=>{if(!u())return;pe(),fe(me.current>=0?me.current:0,!0);const e=Y.current;if(!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>{pe(),fe(me.current>=0?me.current:0,!0)});return t.observe(e),()=>t.disconnect()},[pe,fe]),(0,n.useEffect)(()=>{J>=0&&fe(ee,!0)},[J,ee,fe]),(0,n.useEffect)(()=>{if(!u())return;if(M)return te(D),void fe(D,!0);const e=1e3/$,t=1e3/B;let n=0,r=performance.now(),a=0,s=1,i=!1;const o=l=>{const c=i?t:e,u=l-r;if(u>=c){const e=Math.floor(u/c),t=Math.min(4,e);r=e>t?l:l-(u-t*c);for(let e=0;e<t;e++)if(i){const e=Math.max(0,R-1-H),t=R-1;a+=s,a<=e?(a=e,s=1):a>=t&&(a=t,s=-1)}else{const e=Math.min(R-1,ie.current);a<e&&(a+=1),a>=R-1&&(i=!0,s=-1,r=l)}fe(a),te(a)}n=requestAnimationFrame(o)},l=()=>{"undefined"==typeof document||document.hidden||(r=performance.now())};return"undefined"!=typeof document&&document.addEventListener("visibilitychange",l),window.addEventListener("focus",l),window.addEventListener("pageshow",l),n=requestAnimationFrame(o),()=>{cancelAnimationFrame(n),"undefined"!=typeof document&&document.removeEventListener("visibilitychange",l),window.removeEventListener("focus",l),window.removeEventListener("pageshow",l)}},[$,B,R,H,fe,M,D]);const[be,ye]=(0,n.useState)([]),xe=(0,n.useRef)(j);xe.current=j,(0,n.useEffect)(()=>{M&&ye([])},[M]),(0,n.useEffect)(()=>{if(!u())return;if(M)return;let e=!1,t=null;const n=()=>
2{if(e)return;const n=xe.current,a=Ic(n.minSpawnDelayMs,n.maxSpawnDelayMs);t=setTimeout(r,a)},r=()=>{if(e)return;const t=xe.current,r=A.isCoarsePointer?Math.max(2,Math.round(.5*t.targetCount)):t.targetCount;ye(e=>{if(e.filter(e=>e.id<1e9).length>=r+1)return e;const n=performance.now(),a=Ic(t.minLifeMs,t.maxLifeMs),s=Ic(t.minSizePx,t.maxSizePx),i={id:Ac(),xPercent:Lc(28,72),yPercent:Lc(30,78),sizePx:s,state:"in",bornAt:n,leaveAt:n+a,removeAt:n+a+260,flickerOffsetMs:-Ic(0,1600)};return[...e,i]}),n()};return n(),()=>{e=!0,t&&clearTimeout(t)}},[A.isCoarsePointer,M]),(0,n.useEffect)(()=>{if(!u())return;const e=setInterval(()=>{const e=performance.now();ye(t=>{let n=!1;const r=t.filter(t=>e>=t.removeAt?(n=!0,!1):("in"===t.state&&e>=t.leaveAt&&(t.state="out",n=!0),!0));return n?[...r]:t})},80);return()=>clearInterval(e)},[]);const we=(0,n.useRef)(0),_e=(0,n.useRef)(S);_e.current=S;const ke=(0,n.useCallback)(e=>{if(M)return;if("mouse"!==e.pointerType)return;const t=W.current;if(!t)return;const n=_e.current,r=performance.now();if(r-we.current<n.spawnIntervalMs)return;we.current=r;const a=t.getBoundingClientRect(),s=(e.clientX-a.left)/a.width*100,i=(e.clientY-a.top)/a.height*100,o=n.clusterRadiusPx/Math.min(a.width,a.height)*100;ye(e=>{const t=e.filter(e=>e.id>=1e9);if(t.length>=n.maxConcurrent)return e;const l=Ic(n.minSizePx,n.maxSizePx),c=Math.min(a.width,a.height),u=l/c*100,d=(()=>{for(let e=0;e<6;e++){const e=Math.random()*Math.PI*2,n=Math.random()*o,r=Math.max(2,Math.min(98,s+Math.cos(e)*n)),a=Math.max(2,Math.min(98,i+Math.sin(e)*n));if(!t.some(e=>{const t=e.sizePx/c*100,n=(u+t)/2*.7,s=r-e.xPercent,i=a-e.yPercent;return s*s+i*i<n*n}))return{x:r,y:a}}return null})();if(!d)return e;const h=n.lifeMs+Ic(-120,120),p={id:Ac()+1e9,xPercent:d.x,yPercent:d.y,sizePx:l,state:"in",bornAt:r,leaveAt:r+h,removeAt:r+h+260,flickerOffsetMs:-Ic(0,1600)};return[...e,p]})},[M]),[Ne,Ee]=(0,n.useState)(0),[je,Se]=(0,n.useState)("waiting"),[Ce,Te]=(0,n.use
2State)(0),[Ae,Le]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!u())return;const e=setTimeout(()=>Le(!0),O);return()=>clearTimeout(e)},[O]);const Ie=(0,n.useMemo)(()=>U.length?U[Ne%U.length].lines.reduce((e,t)=>e+t.length,0):0,[U,Ne]);(0,n.useEffect)(()=>{var e;if(!u()||!U.length)return;if("waiting"!==je)return;if(!Ae)return;const t=U[Ne%U.length],n=Math.max(0,null!==(e=t.startFrame)&&void 0!==e?e:0);ee<n||Se("opening")},[je,Ae,ee,Ne,U]),(0,n.useEffect)(()=>{if(!u()||!U.length)return;let e=null;return"opening"===je?e=setTimeout(()=>{Te(0),Se("typing")},380):"typing"===je?Ce<Ie?e=setTimeout(()=>Te(e=>e+1),28):Se("holding"):"holding"===je?e=setTimeout(()=>Se("leaving"),1700):"leaving"===je&&(e=setTimeout(()=>{Ee(e=>(e+1)%U.length),Te(0),Se("waiting")},280)),()=>{e&&clearTimeout(e)}},[je,Ce,Ie,U.length]),(0,n.useEffect)(()=>{if(!u()||!q.current)return;const e=q.current.closest(".event");if(!e)return;const t=()=>{const t=q.current;if(!t)return;const n=window.innerHeight,r=t.getBoundingClientRect(),a=.5*n,s=Math.min(1,Math.max(0,(a-r.bottom)/(a-0)));e.style.setProperty("--rocky-nav-opacity",String(s)),e.style.setProperty("--rocky-nav-transform",`translateY(${-100*(1-s)}%)`)};t();const n=()=>requestAnimationFrame(t);return window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n,{passive:!0}),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n),e.style.removeProperty("--rocky-nav-opacity"),e.style.removeProperty("--rocky-nav-transform")}},[]);const Me=U.length?U[Ne%U.length]:null,[Pe,Oe]=(0,n.useState)({w:0,h:0}),[Re,De]=(0,n.useState)(null),Fe=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!u()||!W.current)return;const e=W.current,t=()=>{const t=e.getBoundingClientRect();Oe(e=>Math.abs(e.w-t.width)>.5||Math.abs(e.h-t.height)>.5?{w:t.width,h:t.height}:e)};if(t(),"undefined"!=typeof ResizeObserver){const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()}return window.addEventListener("resize",t,{passive:!0}),()=>window.removeEventListener("resize",t)},[]),(0,n.useEffect)(()=>{if(!u())return;const e=Fe.current,t=W.current;if(!e||!t)return;const n=()=>{const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();if(n.width<=0)return;const a={left:n.left-r.left,top:n.top-r.top,width:n.width,height:n.height>0?n.height:75};De(e=>e?Math.abs(e.left-a.left)>.5||Math.abs(e.top-a.top)>.5||Math.abs(e.width-a.width)>.5||Math.abs(e.height-a.height)>.5?a:e:a)};if(n(),"undefined"!=typeof ResizeObserver){const r=new ResizeObserver(n);return r.observe(e),r.observe(t),()=>r.disconnect()}return window.addEventListener("resize",n,{passive:!0}),()=>window.removeEventListener("resize",n)},[null==Me?void 0:Me.id]);const Ue=(0,n.useMemo)(()=>{var e;if(!Me)return null;const{anchor:t,side:n="left"}=Me;if(!Re||!Pe.w||!Pe.h)return null;const r=Pe.w,a=Pe.h,{left:s,top:i,width:o,height:l}=Re,c="right"===n?s+o:s,u=i+l/2,d=c,h=t.xPercent/100*r,p=t.yPercent/100*a,m=null!==(e=Me.bendPercent)&&void 0!==e?e:55;return{d:`M ${d} ${u} L ${c+(100-Math.min(100,Math.max(0,m)))/100*(h-c)} ${u} L ${h} ${p}`,anchorX:h,anchorY:p}},[Me,Pe,Re]),$e=(()=>{var t;const n=null===(t=null==e?void 0:e.presents_image)||void 0===t?void 0:t.url;return n?n.startsWith("http")?n:`${r}${n}`:null})();return(0,s.jsx)("div",{className:"rocky-hero",ref:q,children:(0,s.jsxs)("div",{ref:G,"data-rocky-static-frame":M?"true":"false",className:"rocky-stage"+(C.enabled?" is-floating":""),style:{"--rocky-base-color":N.baseColor,"--rocky-blob-color":N.blobColor,"--rocky-gradient-angle":`${N.gradientAngleDeg}deg`,"--rocky-float-amplitude":`${C.amplitudePx}px`,"--rocky-float-duration":`${C.durationSec}s`,"--rocky-float-easing":C.easing},children:[(0,s.jsxs)("div",{className:"rocky-bg","aria-hidden":"true",children:[(0,s.jsx)("div",{className:"rocky-bg-blob"}),(0,s.jsx)("div",{className:"rocky-bg-blob rocky-bg-blob-secondary"}),(0,s.jsx)("div",{className:"rocky-bg-noise"})]}),(0,s.jsx)("div",{className:"rocky-rock-stage",children:(0,s.jsxs)("div",{ref:W,className:"rocky-rock-area",onPointerMove:ke,children:[(0,s.jsxs)("div",{className:"rocky-frames"+(he?" is-visible":""),ref:Y,children:[z.length>0&&(0,s.jsx)("img",{ref:K,src:ae,alt:"",className:"rocky-frame rocky-frame-fallback"+(M?ue?" is-active is-static-mobile":" is-static-mobile":le?"":" is-active"),fetchPriority:"high",decoding:"async",draggable:!1,onLoad:()=>{M&&de(!0)}}),!M&&(0,s.jsx)("canvas",{ref:V,className:"rocky-frame-canvas","aria-hidden":"true","data-clarity-mask":"True","data-clarity-unmask":"False","data-hj-suppress":"","data-fs-exclude":"","data-mp-do-not-record":""})]}),!M&&(0,s.jsx)("div",{className:"rocky-inversion-layer","aria-hidden":"true",children:be.map(e=>(0,s.jsx)("div",{className:"rocky-inversion-block"+("in"===e.state?" is-active":"")+("out"===e.state?" is-leaving":""),style:{left:`${e.xPercent}%`,top:`${e.yPercent}%`,width:`${e.sizePx}px`,height:`${e.sizePx}px`,animationDelay:`${e.flickerOffsetMs}ms`}},e.id))}),Me&&Ue&&(0,s.jsxs)("svg",{className:"rocky-annotation-lines",viewBox:`0 0 ${Pe.w||600} ${Pe.h||750}`,preserveAspectRatio:"none","aria-hidden":"true",children:[(0,s.jsx)("path",{d:Ue.d,className:"rocky-annotation-line"+("typing"===je||"holding"===je?" is-in":""),vectorEffect:"non-scaling-stroke"}),(0,s.jsxs)("g",{transform:`translate(${Ue.anchorX} ${Ue.anchorY})`,children:[(0,s.jsx)("circle",{className:"rocky-annotation-dot-ring"+("typing"===je||"holding"===je?" is-in":""),cx:"0",cy:"0",r:"3",vectorEffect:"non-scaling-stroke"}),(0,s.jsx)("circle",{className:"rocky-annotation-dot"+("typing"===je||"holding"===je?" is-in":""),cx:"0",cy:"0",r:"7.5"})]},Me.id)]}),Me&&(0,s.jsx)("div",{ref:Fe,className:"rocky-annotation"+("opening"===je||"typing"===je||"holding"===je?" is-in":""),style:{left:`${Me.box.xPercent}%`,top:`${Me.box.yPercent}%`},children:(0,s.jsxs)("div",{className:"rocky-annotation-shell",children:[(0,s.jsxs)("div",{className:"rocky-annotation-header",children:[(0,s.jsx)("span",{children:Me.title}),null!==Me.icon&&(0,s.jsx)("span",{className:"rocky-annotation-icon","aria-hidden":"true",children:(0,s.jsx)(Mc,{kind:null!==(_=Me.icon)&&void 0!==_?_:"snowflake"})})]}),(0,s.jsx)("div",{className:"rocky-annotation-body",children:(e=>{const t="opening"===je?0:Ce,n=e.lines.map(e=>e.length);let r=0;return e.lines.map((e,a)=>{const i=Math.max(0,t-r),o=e.slice(0,Math.min(e.length,i));r+=e.length;const l=i>0&&i<n[a]+1&&r>t,c="typing"===je&&l;return(0,s.jsxs)("span",{children:[o,c&&(0,s.jsx)("span",{className:"rocky-annotation-caret"})]},a)})})(Me)})]})})]})}),(0,s.jsxs)("div",{className:"rocky-intro",children:[$e?(0,s.jsx)("div",{className:"rocky-presents",children:(0,s.jsx)("img",{src:$e,alt:"Motion presents"})}):(0,s.jsx)("div",{className:"rocky-presents",children:(0,s.jsx)("span",{children:"Motion presents"})}),(0,s.jsxs)("div",{className:"rocky-intro-hero",children:[e&&(0,s.jsx)(ac,{baseUrl:r,block:e,hideRegisterButtons:!0}),(null==e?void 0:e.register_button)&&e.register_button.length>0&&(0,s.jsx)("div",{className:"rocky-register-buttons",children:e.register_button.map(e=>{const t=Cl(e);return t.render?(0,s.jsx)("div",{className:"events-hero-register-button"+(t.class?` ${t.class}`:""),children:(0,s.jsx)(Al,{baseUrl:r,registerButton:e,dates:i})},e.id):null})})]})]}),(0,s.jsxs)("div",{className:"rocky-bottom",children:[(0,s.jsxs)("div",{className:"rocky-bottom-left",children:[T.headlineLeft&&(0,s.jsx)("div",{className:"rocky-bottom-headline",children:T.headlineLeft}),T.dates&&(0,s.jsx)("div",{className:"rocky-bottom-dates",children:T.dates}),T.eventTypeBadge&&(0,s.jsx)("div",{className:"rocky-bottom-badge",children:T.eventTypeBadge})]}),T.descriptionRight&&(0,s.jsx)("div",{className:"rocky-bottom-right",children:T.descriptionRight})]}),(0,s.jsx)("div",{className:"rocky-scroll-arrow","aria-hidden":"true",children:(0,s.jsx)("svg",{viewBox:"0 0 14.7279 25",fill:"none",children:(0,s.jsx)("g",{transform:"translate(14.7279, 0) rotate(90)",children:(0,s.jsx)("path",{d:"M24.7071 8.07107C25.0976 7.68054 25.0976 7.04738 24.7071 6.65685L18.3431 0.292893
2C17.9526 -0.097631 17.3195 -0.097631 16.9289 0.292893C16.5384 0.683418 16.5384 1.31658 16.9289 1.70711L22.5858 7.36396L16.9289 13.0208C16.5384 13.4113 16.5384 14.0445 16.9289 14.435C17.3195 14.8256 17.9526 14.8256 18.3431 14.435L24.7071 8.07107ZM0 7.36396V8.36396H24V7.36396V6.36396H0V7.36396Z",fill:"currentColor"})})})})]})})},Oc=({versionName:e,hero:t,data:n,baseUrl:r="",gated:a=!1,dates:i=[]})=>{switch(e){case"rocky":case"rocky-v1":return(0,s.jsx)(Pc,{hero:t,data:n,baseUrl:r,gated:a,dates:i});default:return console.warn(`Unknown summit hero version: ${e}, defaulting to rocky`),(0,s.jsx)(Pc,{hero:t,data:n,baseUrl:r,gated:a,dates:i})}};i(672),i(4916);const Rc={designWidth:1840,designHeight:1640,items:[{id:"fallback-quote-1",kind:"quote",x:80,y:80,width:480,height:160,z:1,quote:"I am so impressed with this. You guys are MASSIVELY overdelivering for a free program",author:"Jason Wagg"},{id:"fallback-quote-2",kind:"quote",x:700,y:260,width:480,height:160,z:2,quote:"This is SOLID advice y'all and exactly what I incorporate at Caraway!!",author:"Janae LeVander"}]},Dc=(e,t,n)=>Math.min(n,Math.max(t,e)),Fc=e=>"number"==typeof e&&Number.isFinite(e),Uc=(e,t)=>{if(e)return e.startsWith("http")?e:t?`${t}${e}`:e},$c=({data:e,baseUrl:t=""})=>{const r=(0,n.useMemo)(()=>(e=>{if(!e||"object"!=typeof e)return Rc;if(!Array.isArray(e.items))return Rc;const t=e.items.map((e,t)=>((e,t)=>{if(!e||"object"!=typeof e)return null;if(!(Fc(e.x)&&Fc(e.y)&&Fc(e.width)&&Fc(e.height)))return null;const n="image"===e.kind?"image":"quote"===e.kind?"quote":null;return n?{id:"string"==typeof e.id&&e.id.length>0?e.id:`item-${t}`,kind:n,x:e.x,y:e.y,width:e.width,height:e.height,z:Fc(e.z)?e.z:t+1,imageUrl:"string"==typeof e.imageUrl?e.imageUrl:void 0,quote:"string"==typeof e.quote?e.quote:void 0,author:"string"==typeof e.author?e.author:void 0}:null})(e,t)).filter(e=>null!==e);if(0===t.length)return Rc;const n=Math.min(...t.map(e=>e.x)),r=Math.min(...t.map(e=>e.y)),a=n<0?-n:0,s=r>0?-r:0,i=t.map(e=>Object.assign(Object.assign({},e),{x:e.x+a,y:e.y+s})),o=Fc(e.designWidth)?e.designWidth:Rc.designWidth,l=Fc(e.designHeight)?e.designHeight:Rc.designHeight,c=Math.max(...i.map(e=>e.x+e.width)),u=Math.max(...i.map(e=>e.y+e.height));return{designWidth:Math.max(320,o+a,c),designHeight:Math.max(320,l+s,u),items:i}}
2)(e),[e]),[a,i]=(0,n.useState)(r.items),[o,l]=(0,n.useState)(1),[c,u]=(0,n.useState)(null),d=(0,n.useRef)(null),h=(0,n.useRef)(1),p=(0,n.useRef)(null),m=(0,n.useRef)(r);h.current=o,m.current=r,(0,n.useEffect)(()=>{i(r.items)},[r]),(0,n.useEffect)(()=>{const e=d.current;if(!e)return;const t=()=>{const t=e.getBoundingClientRect(),n=t.width>0?t.width/r.designWidth:1;l(n)};t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[r.designWidth]);const f=e=>{const t=p.current;if(!t||t.pointerId!==e.pointerId)return;e.preventDefault();const n=m.current,r=h.current||1,a=(e.clientX-t.startClientX)/r,s=(e.clientY-t.startClientY)/r;i(e=>e.map(e=>{if(e.id!==t.itemId)return e;const r=Math.max(0,n.designWidth-e.width),i=Math.max(0,n.designHeight-e.height);return Object.assign(Object.assign({},e),{x:Dc(t.startX+a,0,r),y:Dc(t.startY+s,0,i)})}))},v=e=>{const t=p.current;if(t&&t.pointerId===e.pointerId){p.current=null,u(null);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch(e){}}},g=(0,n.useMemo)(()=>{const e=[...a].sort((e,t)=>e.y-t.y||e.x-t.x||e.z-t.z),t=e.find(e=>"image"===e.kind);if(!t)return e.slice(0,6);const n=e.filter(e=>e.id!==t.id);return[t,...n].slice(0,6)},[a]);return(0,s.jsxs)("div",{className:"summit-coffee-table-v1",children:[(0,s.jsx)("div",{className:"coffee-table-viewport",ref:d,style:{height:r.designHeight*o+"px"},children:(0,s.jsx)("div",{className:"coffee-table-scene",style:{width:`${r.designWidth}px`,height:`${r.designHeight}px`,transform:`scale(${o})`},children:a.map(e=>{var n,r;const o=Uc(e.imageUrl,t),l=["coffee-item","image"===e.kind?"coffee-item-image":"coffee-item-quote",c===e.id?"is-dragging":""].join(" ").trim();return(0,s.jsx)("div",{className:l,style:{left:`${e.x}px`,top:`${e.y}px`,width:`${e.width}px`,height:`${e.height}px`,zIndex:e.z},onPointerDown:t=>((e,t)=>{if(0!==t.button)return;t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId);const n=a.find(t=>t.id===e);if(!n)return;const r=Math.max(...a.map(e=>e.z),0)+1;i(t=>t.map(t=>t.id===e?Object.assign(Object.assign({},t),{z:r}):t)),p.current={itemId:e,pointerId:t.pointerId,startClientX:t.clientX,startClientY:t.clientY,startX:n.x,startY:n.y},u(e)})(e.id,t),onPointerMove:f,onPointerUp:v,onPointerCancel:v,children:"image"===e.kind?(0,s.jsx)("div",{className:"coffee-item-image-inner",children:o?(0,s.jsx)("img",{src:o,alt:"",draggable:!1}):(0,s.jsx)("div",{className:"coffee-item-image-empty"})}):(0,s.jsxs)("div",{className:"coffee-item-quote-inner",children:[(0,s.jsx)("p",{className:"coffee-item-quote-text",children:null!==(n=e.quote)&&void 0!==n?n:""}),(0,s.jsx)("p",{className:"coffee-item-quote-author",children:null!==(r=e.author)&&void 0!==r?r:""})]})},e.id)})})}),(0,s.jsx)("div",{className:"coffee-table-mobile-list",children:g.map(e=>{var n,r;const a=Uc(e.imageUrl,t),i=["coffee-mobile-item","image"===e.kind?"coffee-mobile-item-image":"coffee-mobile-item-quote"].join(" ");return(0,s.jsx)("div",{className:i,children:"image"===e.kind?(0,s.jsx)("div",{className:"coffee-mobile-image-inner",children:a?(0,s.jsx)("img",{src:a,alt:"",draggable:!1}):(0,s.jsx)("div",{className:"coffee-mobile-image-empty"})}):(0,s.jsxs)("div",{className:"coffee-mobile-quote-inner",children:[(0,s.jsx)("p",{className:"coffee-mobile-quote-text",children:null!==(n=e.quote)&&void 0!==n?n:""}),(0,s.jsx)("p",{className:"coffee-mobile-quote-author",children:null!==(r=e.author)&&void 0!==r?r:""})]})},`mobile-${e.id}`)})})]})},Bc=({versionName:e,data:t,baseUrl:n=""})=>{switch(e){case"coffee-table":case"coffee-table-v1":return(0,s.jsx)($c,{data:t,baseUrl:n});default:return console.warn(`Unknown coffee-table version: ${e}, defaulting to coffee-table-v1`),(0,s.jsx)($c,{data:t,baseUrl:n})}},Hc=["Slack","Figma","Notion","Asana","Google Drive","Frame.io"],zc=(e,t)=>e.startsWith("http")?e:`${t}${e}`,qc=({data:e,baseUrl:t=""})=>{var n;const r="number"==typeof(null==e?void 0:e.speed)&&e.speed>0?e.speed:38,a="ccw"===(null==e?void 0:e.direction)?"ccw":"cw",i=Array.isArray(null==e?void 0:e.logos)?e.logos.filter(
2Boolean):[],o=(null==e?void 0:e.centerLogo)?zc(String(e.centerLogo),t):null,l=null!==(n=null==e?void 0:e.centerLabel)&&void 0!==n?n:"Runneth",c=Array.isArray(null==e?void 0:e.tools)&&e.tools.length?e.tools:Hc,u=i.length>0,d=u?Array.from({length:Math.max(18,i.length)},(e,n)=>zc(i[n%i.length],t)):[];if(u){const e=360/d.length;return(0,s.jsxs)("div",{className:"runneth-orbit runneth-orbit-logos",style:{"--runneth-orbit-speed":`${r}s`},children:[(0,s.jsx)("div",{className:"runneth-orbit-wheel",children:(0,s.jsx)("div",{className:"runneth-orbit-stage",children:(0,s.jsx)("div",{className:`runneth-orbit-ring runneth-orbit-${a}`,children:d.map((t,n)=>{const r=e*n;return(0,s.jsx)("span",{className:"runneth-orbit-icon",style:{transform:`rotate(${r}deg) translateY(calc(-1 * var(--runneth-orbit-radius)))`},children:(0,s.jsx)("img",{src:t,alt:"","aria-hidden":"true",loading:"lazy"})},`logo-${n}`)})})})}),(0,s.jsx)("div",{className:"runneth-orbit-core",children:o?(0,s.jsx)("img",{className:"runneth-orbit-core-logo",src:o,alt:l}):(0,s.jsx)("span",{className:"runneth-orbit-core-label",children:l})})]})}const h=c.map((e,t)=>({angle:360/c.length*t,key:`${e}-${t}`,node:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"runneth-orbit-chip-dot","aria-hidden":"true"}),(0,s.jsx)("span",{className:"runneth-orbit-chip-label",children:e})]})}));return(0,s.jsxs)("div",{className:"runneth-orbit",style:{"--runneth-orbit-speed":`${r}s`},children:[(0,s.jsx)("div",{className:"runneth-orbit-wheel",children:(0,s.jsx)("div",{className:"runneth-orbit-stage",children:(0,s.jsx)("div",{className:`runneth-orbit-ring runneth-orbit-${a}`,children:h.map(({angle:e,node:t,key:n})=>(0,s.jsx)("div",{className:"runneth-orbit-slot",style:{transform:`rotate(${e}deg) translateY(calc(-1 * var(--runneth-orbit-radius)))`},children:(0,s.jsx)("div",{className:"runneth-orbit-chip",style:{transform:`rotate(${-e}deg)`},children:t})},n))})})}),(0,s.jsx)("div",{className:"runneth-orbit-core",children:o?(0,s.jsx)("img",{className:"runneth-orbit-core-logo",src:o,alt:l}):(0,s.jsx)("span",{className:"runneth-orbit-core-label",children:l})})]})},Gc=({versionName:e,data:t,baseUrl:n})=>(0,s.jsx)(qc,{data:t,baseUrl:n});function Wc(e,t){return e?e.includes("http")?e:`${t}${e}`:null}function Yc(e,t){var n;if(!e)return null;const r=null!==(n=e.image)&&void 0!==n?n:e.smallscreen;return Wc(null==r?void 0:r.url,t)}const Vc="https://projects.motionapp.com/signup",Kc=[{label:"Activate Runneth",href:Vc,style:"primary"},{label:"Talk to sales",href:Vc,style:"secondary"}],Qc=()=>(0,s.jsxs)("svg",{className:"runneth-froggy-wordmark",viewBox:"0 0 400 87",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Runneth",children:[(0,s.jsxs)("g",{fill:"url(#runneth-froggy-wordmark-grad)",children:[(0,s.jsx)("path",{d:"M3.85744 85.477C1.72703 85.477 0 83.7434 0 81.6048V28.8129C0 26.6743 1.72704 24.9406 3.85744 24.9406H15.5564C17.6868 24.9406 19.4138 26.6743 19.4138 28.8129V37.1776C19.4138 38.3319 21.4558 38.6127 21.8764 37.5384C25.7651 27.6045 31.4492 24.5929 38.8758 24.6998C40.8298 24.7279 42.2944 26.418 42.2944 28.3797V43.9837C42.2944 46.1222 40.5673 47.8559 38.4369 47.8559H27.4552C23.4607 47.8559 20.2225 51.1065 20.2225 55.1164V81.6048C20.2225 83.7434 18.4955 85.477 16.365 85.477H3.85744Z"}),(0,s.jsx)("path",{d:"M266.208 87C247.371 87 235.123 74.1203 235.123 55.736C235.123 37.3517 248.064 23.419 266.439 23.419C284.813 23.419 296.139 35.9472 296.139 54.0973V55.8455C296.139 57.9841 294.412 59.7177 292.281 59.7177H256.025C255.167 59.7177 254.493 60.4649 254.629 61.3157C255.882 69.1768 260.04 73.3003 266.439 73.3003C270.557 73.3003 273.705 71.4732 275.344 68.3637C276.211 66.7181 277.721 65.3382 279.576 65.3382H290.69C293.103 65.3382 294.94 67.5553 294.089 69.8214C290.125 80.3664 279.647 87 266.208 87ZM255.022 47.1237C254.798 48.0019 255.484 48.8269 256.387 48.8269H275.373C276.223 48.8269 276.895 48.0917 276.764 47.2487C275.716 40.5269 272.018 36.8831 266.325 36.8831C260.674 36.8831 256.693 40.5721 255.022 47.1237Z"}),(0,s.jsx)("path",{d:"M328.852 86.1806C328.851 86.1802 328.85 86.1799 328.85 86.1799C312.905 86.1791 305.855 79.8556 305.855 65.1039V41.4982C305.855 40.6963 305.208 40.0461 304.409 40.0461H299.774C297.643 40.0461 295.916 38.3125 295.916 36.1739V28.8129C295.916 26.6743 297.643 24.9406 299.774 24.9406H304.409C305.208 24.9406 305.855 24.2905 305.855 23.4885V13.2401C305.855 11.1016 307.582 9.3679 309.713 9.3679H322.336C324.466 9.3679 326.193 11.1016 326.193 13.2401V23.4885C326.193 24.2905 326.841 24.9406 327.64 24.9406H334.47C336.6 24.9406 338.327 26.6743 338.327 28.8129V36.1739C338.327 38.3125 336.6 40.0461 334.47 40.0461H327.64C326.841 40.0461 326.193 40.6963 326.193 41.4982V64.5182C326.193 69.0843 328.159 71.0758 333.589 71.0758C333.729 71.0758 333.87 71.0743 334.013 71.0715C336.143 71.0299 337.863 72.5752 337.863 74.7138V82.1816C337.863 84.1326 336.418 85.7895 334.481 85.9464C332.658 86.0941 330.756 86.1812 328.854 86.1813C328.853 86.1813 328.853 86.1811 328.852 86.1806Z"}),(0,s.jsx)("path",{d:"M345.616 85.477C343.486 85.477 341.759 83.7434 341.759 81.6048V3.87225C341.759 1.73367 343.48
26 0 345.616 0H357.661C359.791 0 361.518 1.73366 361.518 3.87225V30.9331C361.518 31.9232 362.926 32.3361 363.545 31.5653C367.643 26.4634 373.549 23.7691 380.703 23.7691C386.596 23.7691 391.103 25.2907 394.453 28.5695C397.689 31.9655 400 37.4688 400 45.6652V81.6048C400 83.7434 398.273 85.477 396.143 85.477H383.52C381.389 85.477 379.662 83.7434 379.662 81.6048V51.0514C379.662 46.7196 378.737 44.2608 377.351 42.855C375.963 41.3334 374.115 40.6305 371.805 40.6305C365.565 40.6305 361.981 45.5481 361.981 53.9788V81.6048C361.981 83.7434 360.254 85.477 358.124 85.477H345.616Z"}),(0,s.jsx)("path",{d:"M87.54 24.9406C85.4096 24.9406 83.6826 26.6743 83.6826 28.8129V55.2674C83.6826 55.2674 83.6826 55.2771 83.6826 55.2826V61.9409C83.6826 66.7178 79.8245 70.5907 75.0658 70.5907C70.3071 70.5907 66.4491 66.7178 66.4491 61.9409V28.8129C66.4491 26.6743 64.722 24.9406 62.5916 24.9406H49.9838C47.8534 24.9406 46.1263 26.6743 46.1263 28.8129V65.6883C46.1263 78.9194 53.0598 86.6472 65.0788 86.6472C72.5862 86.6472 78.4106 83.7233 82.3505 78.078C82.9408 77.2322 84.4926 77.6252 84.4926 78.658V81.6048C84.4926 83.7434 86.2197 85.477 88.3501 85.477H100.049C102.179 85.477 103.906 83.7434 103.906 81.6048V28.8129C103.906 26.6743 102.179 24.9406 100.049 24.9406H87.54Z"}),(0,s.jsx)("path",{d:"M167.356 45.6666C167.356 37.4702 165.046 31.9669 161.81 28.5709C158.458 25.2921 153.952 23.7705 148.058 23.7705C140.726 23.7705 134.717 26.5361 130.591 31.9247C129.981 32.7211 128.527 32.3143 128.527 31.3099V28.8143C128.527 26.6757 126.8 24.942 124.67 24.942H112.971C110.841 24.942 109.114 26.6757 109.114 28.8142V81.6062C109.114 83.7448 110.841 85.4784 112.971 85.4784H125.431C127.561 85.4784 129.288 83.7448 129.288 81.6062V48.7359C129.288 43.8184 133.26 39.8311 138.159 39.8311C143.058 39.8311 147.03 43.8184 147.03 48.7359V81.6062C147.03 83.7448 148.757 85.4784 150.887 85.4784H163.499C165.629 85.4784 167.356 83.7448 167.356 81.6062V45.6666Z"}),(0,s.jsx)("path",{d:"M230.88 45.6666C230.88 37.4702 228.569 31.9669 225.333 28.5709C221.981 25.2921 217.475 23.7705 211.581 23.7705C204.249 23.7705 198.24 26.5361 194.114 31.9247C193.504 32.7211 192.051 32.3143 192.051 31.3099V28.8143C192.051 26.6757 190.324 24.942 188.193 24.942H176.494C174.364 24.942 172.637 26.6757 172.637 28.8142V81.6062C172.637 83.7448 174.364 85.4784 176.494 85.4784H188.954C191.084 85.4784 192.811 83.7448 192.811 81.6062V48.7359C192.811 43.8184 196.783 39.8311 201.682 39.8311C206.581 39.8311 210.553 43.8184 210.553 48.7359V81.6062C210.553 83.7448 212.28 85.4784 214.41 85.4784H227.022C229.153 85.4784 230.88 83.7448 230.88 81.6062V45.6666Z"})]}),(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"runneth-froggy-wordmark-grad",x1:"0",y1:"0",x2:"391.758",y2:"115.062",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#AEE1ED"}),(0,s.jsx)("stop",{offset:"0.504808",stopColor:"#CEFF5B"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#FFF95C"})]})})]}),Xc=()=>(0,s.jsx)("svg",{className:"runneth-froggy-motion-logo",viewBox:"0 0 100 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Motion",children:(0,s.jsxs)("g",{fill:"currentColor",children:[(0,s.jsx)("path",{d:"M36.8956 18.226V8.11458L41.0023 16.141H43.1312L47.238 8.11458V18.226H49.9348V3.56887H46.7224L42.0899 12.8639L37.3951 3.56887H34.1987V18.2181H36.8956V18.226ZM57.0365 18.4726C57.9882 18.4843 58.9254 18.2462 59.7495 17.7835C60.5592 17.3275 61.2256 16.6656 61.677 15.8689C62.1633 15.0002 62.4077 14.023 62.386 13.0342C62.4077 12.0454 62.1633 11.0683 61.677 10.1995C61.2223 9.39636 60.5504 8.72928 59.734 8.27038C58.9175 7.81149 57.9876 7.57822 57.0446 7.5958C56.0995 7.57815 55.1673 7.81124 54.3482 8.27C53.5292 8.72875 52.8543 9.39583 52.3961 10.1995C51.9062 11.0673 51.6584 12.0445 51.677 13.0342C51.6562 14.0229 51.9006 14.9998 52.386 15.8689C52.842 16.6731 53.5156 17.3408 54.3339 17.7997C55.1521 18.2587 56.0839 18.4914 57.0285 18.4726H57.0365ZM57.0365 16.1489C56.6933 16.1492 56.3538 16.0797 56.0399 15.9448C55.726 15.81 55.4446 15.6127 55.2138 15.3658C54.7062 14.847 54.4444 14.0639 54.4444 13.0342C54.4444 12.0045 54.6982 11.2214 55.2138 10.7026C55.4454 10.4559 55.7273 10.2588 56.0417 10.1239C56.3561 9.98904 56.6959 9.91939 57.0396 9.91939C57.3832 9.91939 57.723 9.98904 58.0374 10.1239C58.3518 10.2588 58.6337 10.4559 58.8653 10.7026C59.383 11.2214 59.6448 12.0045 59.6448 13.0342C59.6448 14.0639 59.383 14.847 58.8653 15.3658C58.6334 15.615 58.3498 15.8137 58.0332 15.9487C57.7166 16.0836 57.3742 16.1519 57.0285 16.1489H57.0365ZM70.1281 18.226V15.9453H68.823C68.2859 15.9453 67.9093 15.8513 67.6931 15.6634C67.4736 15.4676 67.3688 15.127 67.3688 14.6258V10.0801H70.1886V7.84246H67.3648V5.05865H64.9882L64.672 7.84246H62.8855V10.082H64.672V14.6004C64.672 15.9551 65.0023 16.8974 65.6629 17.4272C66.3235 17.9571 67.1963 18.2181 68.2812 18.2103H70.1201L70.1281 18.226ZM73.254 6.23326C73.4756 6.24174 73.6968 6.20696 73.9043 6.13097C74.1119 6.05498 74.3017 5.93932 74.4625 5.79082C74.6173 5.64946 74.7396 5.47778 74.8212 5.28712C74.9028 5.09646 74.9418 4.89115 74.9358 4.68474C74.942 4.47917 74.903 4.27469 74.8214 4.08495C74.7397 3.89522 74.6174 3.72461 74.4625 3.58453C74.1337 3.29231 73.6991 3.13882 73.254 3.15775C72.8097 3.14384 72.377 3.29666 72.0456 3.58453C71.8909 3.72439 71.7687 3.89468 71.
26871 4.08406C71.6055 4.27343 71.5663 4.47754 71.5723 4.68278C71.5662 4.88919 71.6053 5.0945 71.6869 5.28517C71.7684 5.47583 71.8907 5.6475 72.0456 5.78887C72.2063 5.93753 72.3961 6.05343 72.6036 6.12975C72.8111 6.20607 73.0323 6.24126 73.254 6.23326ZM74.6035 18.226V7.8503H71.9066V18.226H74.6035ZM81.7313 18.4726C82.6836 18.4842 83.6215 18.2462 84.4463 17.7835C85.2549 17.3269 85.9205 16.665 86.3718 15.8689C86.8581 15.0002 87.1025 14.023 87.0808 13.0342C87.1025 12.0454 86.8581 11.0683 86.3718 10.1995C85.9171 9.39636 85.2452 8.72928 84.4288 8.27038C83.6123 7.81149 82.6824 7.57822 81.7394 7.5958C80.7943 7.57815 79.8621 7.81124 79.043 8.27C78.224 8.72875 77.5491 9.39583 77.0909 10.1995C76.601 11.0673 76.3532 12.0445 76.3718 13.0342C76.351 14.0229 76.5953 14.9998 77.0808 15.8689C77.5322 16.663 78.1952 17.3244 79.0002 17.7835C79.829 18.2507 80.7734 18.4889 81.7313 18.4726ZM81.7313 16.1489C81.3897 16.1483 81.052 16.0784 80.7399 15.9435C80.4277 15.8087 80.148 15.6119 79.9186 15.3658C79.4091 14.847 79.1473 14.0639 79.1473 13.0342C79.1473 12.0045 79.401 11.2214 79.9186 10.7026C80.1502 10.4559 80.4322 10.2588 80.7466 10.1239C81.0609 9.98904 81.4008 9.91939 81.7444 9.91939C82.088 9.91939 82.4279 9.98904 82.7423 10.1239C83.0566 10.2588 83.3386 10.4559 83.5702 10.7026C84.0818 11.2195 84.3416 12.0025 84.3416 13.0342C84.3416 14.0659 84.0778 14.847 83.5621 15.3658C83.3313 15.6147 83.0487 15.8132 82.7331 15.9481C82.4175 16.0831 82.0761 16.1515 81.7313 16.1489ZM91.4695 18.226V12.8639C91.4695 11.9183 91.7132 11.1783 92.1946 10.6419C92.4258 10.3841 92.7135 10.1799 93.0366 10.0444C93.3597 9.90887 93.71 9.84548 94.0616 9.85887C94.831 9.85887 95.3996 10.0971 95.7676 10.5734C96.1361 11.0491 96.3114 11.7304 96.3114 12.6251V18.226H99.0002V12.3529C99.0002 10.7868 98.6396 9.6122 97.9226 8.79585C97.2056 7.9795 96.2066 7.57818 94.9015 7.57818C94.1453 7.55816 93.3988 7.74686 92.7484 8.12241C92.1487 8.47506 91.6609 8.98179 91.3386 9.58675L91.1372 7.82485H88.7625V18.2181H91.4695V18.226Z"}),(0,s.jsx)("path",{d:"M25.5047 4.49679L14.8965 0.0137228C14.8842 0.00782894 14.8714 0.00323441 14.8582 1.91072e-05C14.8436 -0.000246622 14.829 0.00235683 14.8155 0.00767378C14.8019 0.0129907 14.7896 0.0209119 14.7793 0.0309636C14.7689 0.0410153 14.7608 0.052991 14.7553 0.0661745C14.7498 0.079358 14.7471 0.0934783 14.7474 0.107691V1.56811L18.7011 3.23801C19.2626 3.4744 19.7406 3.86552 20.076 4.36304C20.4114 4.86055 20.5895 5.44267 20.5883 6.03748V18.5294L26.3949 20.9843L26.4312 20.9961H26.4433C26.4577 20.9961 26.472 20.9933 26.4853 20.9878C26.4987 20.9824 26.5108 20.9744 26.5209 20.9644C26.531 20.9544 26.539 20.9425 26.5443 20.9294C26.5497 20.9164 26.5523 20.9024 26.552 20.8884V6.03748C26.5529 5.70897 26.454 5.3875 26.2677 5.11341C26.0814 4.83931 25.816 4.62481 25.5047 4.49679Z"}),(0,s.jsx)("path",{d:"M10.7616 4.4968L0.159379 0.0137289L0.119097 0.00198284H0.107012C0.0928181 0.00110399 0.0785993 0.0032801 0.0653699 0.00835597C0.0521404 0.0134318 0.0402259 0.0212824 0.0304764 0.0313479C0.0199619 0.0411227 0.0118013 0.0530362 0.00657834 0.0662355C0.00135539 0.0794348 -0.000800604 0.0935933 0.000265095 0.107697V14.9586C-0.000440102 15.2868 0.0975546 15.608 0.282197 15.8828C0.466839 16.1576 0.730078 16.3739 1.03954 16.5052L11.6458 20.9882L11.682 21H11.6941C11.7087 21.0002 11.7232 20.9976 11.7368 20.9923C11.7504 20.987 11.7627 20.9791 11.773 20.969C11.7834 20.959 11.7915 20.947 11.797 20.9338C11.8025 20.9206 11.8051 20.9065 11.8049 20.8923V6.03945C11.806 5.71115 11.7077 5.3898 11.5221 5.11546C11.3366 4.84113 11.0721 4.62596 10.7616 4.4968Z"}),(0,s.jsx)("path",{d:"M18.1311 4.4968L14.7374 3.06182L7.51683 0.00981033H7.49871H7.48259C7.46751 0.0103156 7.45269 0.013705 7.43896 0.0197847C7.42522 0.0258645 7.41286 0.0345154 7.40257 0.0452427C7.39229 0.0559699 7.38427 0.0685632 7.379 0.0823023C7.37372 0.0960414 7.37128 0.110657 7.37182 0.125313V1.57595L11.3255 3.23801C11.8877 3.47424 12.3664 3.86553 12.7021 4.36346C13.0379 4.86138 13.2161 5.44408 13.2147 6.03944V18.5333L19.0193 20.9843L19.0556 20.9961H19.0677C19.0821 20.9961 19.0964 20.9933 19.1097 20.9878C19.1231 20.9824 19.1352 20.9744 19.1453 20.9644C19.1554 20.9544 19.1634 20.9425 19.1687 20.9294C19.1741 20.9164 19.1767 20.9024 19.1764 20.8884V6.03748C19.1775 5.70919 19.0789 5.38788 18.893 5.11381C18.707 4.83974 18.442 4.62511 18.1311 4.4968Z"})]})}),Jc=({data:e,baseUrl:t=""})=>{var r,a,i;const o=(0,n.useRef)(null),l=(0,n.useRef)(null),c=Wc(null==e?void 0:e.videoUrl,t),d=null!==(r=null==e?void 0:e.subt
2itle)&&void 0!==r?r:"The AI brain for marketing",h=Array.isArray(null==e?void 0:e.ctas)&&e.ctas.length>0?e.ctas:(null==e?void 0:e.ctaLabel)?[{label:e.ctaLabel,href:null!==(a=e.ctaHref)&&void 0!==a?a:Vc,style:"primary"}]:Kc,p=null!==(i=null==e?void 0:e.afterburnText)&&void 0!==i?i:"by",m=!1!==(null==e?void 0:e.loopVideo),[f,v]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!u()||!o.current)return;const e=o.current.closest(".runneth-site");if(!e)return;const t=()=>{const t=o.current;if(!t)return;const n=window.innerHeight,r=t.getBoundingClientRect(),a=.5*n,s=Math.min(1,Math.max(0,(a-r.bottom)/(a-0)));e.style.setProperty("--runneth-nav-opacity",String(s)),e.style.setProperty("--runneth-nav-transform",`translateY(${-100*(1-s)}%)`)};t();const n=()=>requestAnimationFrame(t);return window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n,{passive:!0}),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n),e.style.removeProperty("--runneth-nav-opacity"),e.style.removeProperty("--runneth-nav-transform")}},[]),(0,s.jsxs)("div",{className:"runneth-froggy"+(f?" is-ended":""),ref:o,children:[c&&(0,s.jsx)("video",{ref:l,className:"runneth-froggy-video",src:c,autoPlay:!0,muted:!0,playsInline:!0,loop:m,preload:"auto",tabIndex:-1,"aria-hidden":"true",disablePictureInPicture:!0,controlsList:"nodownload nofullscreen noremoteplayback noplaybackrate",onEnded:()=>{m||v(!0)}}),(0,s.jsxs)("div",{className:"runneth-froggy-content",children:[(0,s.jsxs)("div",{className:"runneth-froggy-title-group",children:[(0,s.jsx)(Qc,{}),(0,s.jsx)("p",{className:"runneth-froggy-subtitle",children:d})]}),(0,s.jsx)("div",{className:"runneth-froggy-ctas",children:h.map((e,t)=>{var n;return(0,s.jsx)("a",{className:"runneth-froggy-cta runneth-froggy-cta-"+("secondary"===e.style?"secondary":"primary"),href:e.href,target:null!==(n=e.target)&&void 0!==n?n:"_self",rel:"_blank"===e.target?"noopener noreferrer":void 0,children:e.label},`${e.label}-${t}`)})}),(0,s.jsxs)("div",{className:"runneth-froggy-afterburn",children:[(0,s.jsx)("span",{className:"runneth-froggy-afterburn-text",children:p}),(0,s.jsx)(Xc,{})]})]}),!m&&c&&(0,s.jsxs)("button",{type:"button",className:"runneth-froggy-replay",onClick:()=>{var e;const t=l.current;t&&(v(!1),t.currentTime=0,null===(e=t.play())||void 0===e||e.catch(()=>{}))},"aria-hidden":!f,tabIndex:f?0:-1,children:[(0,s.jsx)("svg",{className:"runneth-froggy-replay-icon",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M12 5V1.8a0.3 0.3 0 0 0-0.51-0.21L6.7 6.38a0.3 0.3 0 0 0 0 0.43l4.79 4.79A0.3 0.3 0 0 0 12 11.4V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"})}),(0,s.jsx)("span",{className:"runneth-froggy-replay-label",children:"replay"})]})]})},Zc=({versionName:e,data:t,baseUrl:n})=>(0,s.jsx)(Jc,{data:t,baseUrl:n}),eu=(e,t)=>{if(e)return e.startsWith("http")?e:`${t}${e}`},tu=({data:e,baseUrl:t=""})=>{var r,a,o,l,c,u,d,h,p,m,f,v;const g=(0,n.useRef)(null),b=null!==(a=null!==(r=null==e?void 0:e.headlineHighlight)&&void 0!==r?r:null==e?void 0:e.titleHighlight)&&void 0!==a?a:"",y=null!==(o=null==e?void 0:e.headlinePrefix)&&void 0!==o?o:"",x=null!==(c=null!==(l=null==e?void 0:e.headlineRest)&&void 0!==l?l:null==e?void 0:e.titleRest)&&void 0!==c?c:"",w=null!==(u=null==e?void 0:e.headlineSubtitle)&&void 0!==u?u:"",_=null!==(d=null==e?void 0:e.postAnimationTitle)&&void 0!==d?d:"",k=null!==(p=null!==(h=null==e?void 0:e.postAnimationBody)&&void 0!==h?h:null==e?void 0:e.body)&&void 0!==p?p:"",N=null==e?void 0:e.comparisonCards,E=Array.isArray(N)?N:[],j=null!==(v=null===(f=null===(m=E[0])||void 0===m?void 0:m.rows)||void 0===f?void 0:f.map((e,t)=>({label:e.label,statuses:E.map(e=>{var n,r;return null===(r=null===(n=e.rows)||void 0===n?void 0:n[t])||void 0===r?void 0:r.status})})))&&void 0!==v?v:[],S=(null==e?void 0:e.brain)&&"object"==typeof e.brain?e.brain:null;(0,n.useEffect)(()=>{const n=g.current;if(!n||!S||0===Object.keys(S).length)return;let r=null,a=null,s=!1;return i.e(529).then(i.bind(i,1513)).then(({createBrainScene:i})=>{var o,l,c;if(s||!n.isConnected)return;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches,d=null==e?void 0:e.synapseColors,h=Array.isArray(d)&&3===d.length?d:void 0,p=null==e?void 0:e.popups,m=Array.isArray(p)?p.filter(e=>e&&"object"==typeof e).map(e=>Object.assign(Object.assign({},e),{avatarUrl:eu(e.avatarUrl,t)})):void 0;r=i(n,{brain:S,centerLabel:null!==(o=null==e?void 0:e.centerLabel)&&void 0!==o?o:"Your brain",backgroundColor:null!==(l=null==e?void 0:e.backgroundColor)&&void 0!==l?l:"#1C180E",centerColor:null!==(c=null==e?void 0:e.centerColor)&&void 0!==c?c:"#CEFF5B",synapseColors:h,popups:m,reducedMotion:u}),a=new IntersectionObserver(([e])=>null==r?void 0:r.setRunning(e.isIntersecting),{threshold:.05}),a.observe(n)}),()=>{s=!0,null==a||a.disconnect(),null==r||r.destroy(),r=null}},[]);const C=Boolean(y||b||x||w),T=Boolean(_||k),A=E.length>0&&j.length>0,L=e=>{const t="check"===e;return(0,s.jsx)("span",{"aria-label":t?"Included":"Not included",className:"runneth-brain-comparison-status "+(t?"is-check":"is-cross"),role:"img",children:t?(0,s.jsxs)("svg",{"aria-hidden":"true",className:"runneth-brain-comparison-status-svg","data-node-id":"1638:15111",fill:"none",focu
2sable:"false",viewBox:"0 0 28 28",children:[(0,s.jsx)("rect",{width:"28",height:"28",rx:"8",fill:"#CEFF5B",fillOpacity:"0.1"}),(0,s.jsx)("rect",{x:"0.5",y:"0.5",width:"27",height:"27",rx:"7.5",stroke:"#CEFF5B",strokeOpacity:"0.2"}),(0,s.jsx)("path",{d:"M19.2185 10.0864L12.0436 17.2614L8.78223 14",stroke:"#CEFF5B",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,s.jsxs)("svg",{"aria-hidden":"true",className:"runneth-brain-comparison-status-svg","data-node-id":"1638:15114",fill:"none",focusable:"false",viewBox:"0 0 28 28",children:[(0,s.jsx)("rect",{width:"28",height:"28",rx:"8",fill:"#343434"}),(0,s.jsx)("rect",{x:"0.6",y:"0.6",width:"26.8",height:"26.8",rx:"7.4",stroke:"#9A989A",strokeOpacity:"0.1",strokeWidth:"1.2"}),(0,s.jsx)("path",{d:"M10.4121 10.4126L17.5871 17.5876M17.5871 10.4126L10.4121 17.5876",stroke:"#F6F6F6",strokeOpacity:"0.7",strokeWidth:"1.2",strokeLinecap:"round"})]})})};return(0,s.jsxs)("div",{className:"runneth-brain",children:[C&&(0,s.jsxs)("div",{className:"runneth-brain-row runneth-brain-hero-copy",children:[(0,s.jsxs)("h2",{className:"runneth-brain-title",children:[y&&(0,s.jsxs)("span",{className:"runneth-brain-title-prefix",children:[y," "]}),b&&(0,s.jsxs)("span",{className:"runneth-brain-title-highlight",children:[b," "]}),x]}),w&&(0,s.jsx)("p",{className:"runneth-brain-subtitle",children:w})]}),(0,s.jsx)("div",{className:"runneth-brain-frame",children:(0,s.jsx)("div",{className:"runneth-brain-canvas",ref:g})}),T&&(0,s.jsx)("div",{className:"runneth-brain-row runneth-brain-after-copy",children:(0,s.jsxs)("div",{className:"runneth-brain-body",children:[_&&(0,s.jsx)("h3",{className:"runneth-brain-body-title",children:_}),k&&(0,s.jsx)(ta,{rehypePlugins:[co],children:k})]})}),A&&(0,s.jsx)("div",{className:"runneth-brain-row",children:(0,s.jsxs)("div",{className:"runneth-brain-comparison",role:"table","aria-label":"AI marketing system comparison",children:[(0,s.jsx)("div",{className:"runneth-brain-comparison-featured-bg","data-node-id":"1638:15097","aria-hidden":"true"}),(0,s.jsxs)("div",{className:"runneth-brain-comparison-header","data-node-id":"1638:15098",role:"row",children:[(0,s.jsx)("span",{className:"runneth-brain-comparison-label-spacer","aria-hidden":"true"}),E.map((e,t)=>{var n;return(0,s.jsx)("div",{className:"runneth-brain-comparison-heading "+(e.featured?"is-featured":""),role:"columnheader",children:e.eyebrow&&(0,s.jsx)("span",{className:"runneth-brain-comparison-eyebrow",children:e.eyebrow})},`${null!==(n=e.eyebrow)&&void 0!==n?n:"heading"}-${t}`)})]}),(0,s.jsx)("div",{className:"runneth-brain-comparison-body",role:"rowgroup",children:j.map((e,t)=>{var n;return(0,s.jsxs)("div",{className:"runneth-brain-comparison-row",role:"row",children:[(0,s.jsx)("div",{className:"runneth-brain-comparison-label",role:"rowheader",children:e.label}),e.statuses.map((t,n)=>{var r,a;return(0,s.jsx)("div",{className:"runneth-brain-comparison-cell "+((null===(r=E[n])||void 0===r?void 0:r.featured)?"is-featured":""),role:"cell",children:L(t)},`${null!==(a=e.label)&&void 0!==a?a:"row"}-${n}`)})]},`${null!==(n=e.label)&&void 0!==n?n:"row"}-${t}`)})})]})})]})},nu=({versionName:e,data:t,baseUrl:n=""})=>(0,s.jsx)(tu,{data:t,baseUrl:n}),ru=["Brand voice","Slack connected","Customer reviews","Your KPIs","Meta Ads connected","Media buyer","Winning hooks","TikTok connected","Benchmarks","Lifecycle marketer","Google Drive connected","Attribution windows","Graphic designer","Naming conventions","HubSpot connected","Copywriter","Personas","Competitor watch","Growth lead","Klaviyo connected","Creative QA","Customer research analyst","Performance analyst","Email analyst","White-space map","Notion connected","Asana connected","Daily reports","Creative dashboard","Closed-loop pipeline","Institutional memory"],au=[[.1,"Day 1","Your brand voice and first tools, synced."],[.28,"1 Week","Customer language, claims, and your stack connected."],[.52,"Month 1","Winning hooks, benchmarks, and routines take shape."],[.8,"Month 6","Patterns connect across every tool and teammate."],[2,"Year 1","A full institutional brain. Your marketing, compounding."]],su=({data:e,eyebrow:t,title:r})=>{var a,i,o,l,c;const u=(0,n.useRef)(null),d=null!==(a=null==e?void 0:e.lead)&&void 0!==a?a:"",h=Array.isArray(null==e?void 0:e.stages)&&e.stages.length>0?e.stages:au,p=Array.isArray(null==e?void 0:e.labels)&&e.labels.length>
20?e.labels:ru,[m,f]=(0,n.useState)({label:null!==(o=null===(i=h[0])||void 0===i?void 0:i[1])&&void 0!==o?o:"",sub:null!==(c=null===(l=h[0])||void 0===l?void 0:l[2])&&void 0!==c?c:""});return(0,n.useEffect)(()=>{const e=u.current;if(!e)return;const t=e.getContext("2d");if(!t)return;const n=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;let r=11;const a=()=>(r=1103515245*r+12345&2147483647,r/2147483647),s=.36,i=(e,t)=>{const n=e-.5,r=t-.46,a=Math.atan2(r,n),i=1+.07*Math.sin(7*a)+.04*Math.sin(3*a),o=e-.5,l=t-.83;return!(!(n*n/(s*s)+r*r/.09<=i*i)&&!(o*o/.0144+l*l/(.07*.07)<=1)||Math.abs(n)<.014&&r<.06)},o=[];let l=0;for(;o.length<300&&l<8e4;){l++;const e=a(),t=.06+.9*a();if(!i(e,t))continue;const n=Math.hypot((e-.5)/s,(t-.46)/.3),r=Math.min(1,.82*n+.18*a());o.push({x:e,y:t,birth:r,r:1.5+2.7*a(),blue:a()<.15,ph:6.28*a()})}const c=[];for(let e=0;e<o.length;e++){const t=[];for(let n=0;n<o.length;n++){if(n===e)continue;const r=o[e].x-o[n].x,a=o[e].y-o[n].y;t.push([r*r+a*a,n])}t.sort((e,t)=>e[0]-t[0]);const n=4+(a()<.6?2:0);for(let r=0;r<n&&r<t.length;r++)t[r][1]>e&&t[r][0]<.026&&c.push([e,t[r][1],a()<.24])}const d=o.map((e,t)=>[e.birth,t]).sort((e,t)=>e[0]-t[0]);for(let e=0;e<p.length;e++){const t=.03+e/(p.length-1)*.92,n=d[Math.floor(t*(d.length-1))][1];o[n].label=p[e]}let m=0,v=0,g=1;const b=()=>{g=Math.min(2,window.devicePixelRatio||1);const n=e.getBoundingClientRect();m=n.width,v=n.height,e.width=m*g,e.height=v*g,t.setTransform(g,0,0,g,0,0)},y=performance.now(),x=(e,t)=>Math.max(0,Math.min(1,(t-e)/.07));let w=-1,_=0,k=!0;const N=e=>{if(!k)return;const r=(e-y)%28200;let a=r<23e3?r/23e3:1;n&&(a=1);let s=1;n||(r<500?s=r/500:r>27100&&(s=Math.max(0,(28200-r)/1100))),t.clearRect(0,0,m,v);for(let e=0;e<c.length;e++){const n=o[c[e][0]],r=o[c[e][1]],i=c[e][2],l=Math.min(x(n.birth,a),x(r.birth,a))*s;l<=0||(t.lineWidth=i?1.9:1.1,t.strokeStyle=(n.blue||r.blue?"rgba(174,225,237,":"rgba(206,255,91,")+((i?.6:.3)*l).toFixed(3)+")",t.beginPath(),t.moveTo(n.x*m,n.y*v),t.lineTo(r.x*m,r.y*v),t.stroke())}for(let r=0;r<o.length;r++){const i=o[r],l=x(i.birth,a)*s;if(l<=0)continue;const c=n?0:1.1*Math.sin(e/1600+i.ph);t.globalAlpha=l,t.fillStyle=i.blue?"#AEE1ED":"#CEFF5B",t.beginPath(),t.arc(i.x*m,i.y*v+c,i.r*(.5+.5*l),0,6.2832),t.fill(),t.globalAlpha=1}t.font="600 13px Inter, ui-sans-serif, sans-serif",t.textBaseline="middle";for(let e=0;e<o.length;e++){const n=o[e];if(!n.label)continue;const r=a-n.birth;if(r<0||r>.18)continue;let i=r<.03?r/.03:r>.12?Math.max(0,(.18-r)/.06):1;if(i*=s,i<=0)continue;const l=n.x<.8;t.textAlign=l?"left":"right",t.globalAlpha=i,t.shadowColor="rgba(0,0,0,0.65)",t.shadowBlur=6,t.fillStyle=n.label.indexOf("connected")>=0?"#AEE1ED":"#CEFF5B",t.fillText(n.label,n.x*m+(l?9:-9),n.y*v-9),t.shadowBlur=0,t.globalAlpha=1}t.textAlign="left",(e=>{let t=h.findIndex(t=>e<t[0]);t<0&&(t=h.length-1),t!==w&&(w=t,f({label:h[t][1],sub:h[t][2]}))})(a),_=requestAnimationFrame(N)};b(),window.addEventListener("resize",b);const E=new IntersectionObserver(([e])=>{e.isIntersecting?k||(k=!0,_=requestAnimationFrame(N)):(k=!1,cancelAnimationFrame(_))},{threshold:.02});return E.observe(e),_=requestAnimationFrame(N),()=>{k=!1,cancelAnimationFrame(_),E.disconnect(),window.removeEventListener("resize",b)}},[]),(0,s.jsxs)("div",{className:"runneth-brain-compounds",children:[(t||r||d)&&(0,s.jsxs)("div",{className:"rbc-head",children:[t&&(0,s.jsx)("p",{className:"rbc-kicker",children:t}),r&&(0,s.jsx)("h2",{className:"rbc-title",children:r}),d&&(0,s.jsx)("p",{className:"rbc-lead",children:d})]}),(0,s.jsxs)("div",{className:"rbc-wrap",children:[(0,s.jsx)("canvas",{ref:u,className:"rbc-canvas",role:"img","aria-label":"The Runneth brain growing denser over time as more tools, people, and context connect, from day one to a full brain at year one"}),(0,s.jsxs)("div",{className:"rbc-stage",children:[(0,s.jsxs)("p",{className:"rbc-label",children:[(0,s.jsx)("span",{className:"rbc-dot","aria-hidden":"true"}),m.label]}),(0,s.jsx)("p",{className:"rbc-sub",children:m.sub})]})]})]})},iu=({versionName:e,data:t,eyebrow:n,title:r})=>(0,s.jsx)(su,{data:t,eyebrow:n,title:r}),ou=(e,t)=>{if(e)return e.startsWith("http")?e:`${t}${e}`},lu=e=>{var t;return"string"==typeof e?{name:e}:{name:null!==(t=e.name)&&void 0!==t?t:"",private:e.private,unread:e.unread}},cu=({src:e})=>e?(0,s.jsx)("img",{className:"rs-heading-slack-icon",src:e,alt:"",loading:"lazy",decoding:"async","aria-hidden":"true"}):null,uu=(e,t)=>
2{const n=e.indexOf("Slack");if(-1===n)return e;const r=e.slice(0,n),a=e.slice(n+5);return(0,s.jsxs)(s.Fragment,{children:[r,(0,s.jsxs)("span",{className:"rs-heading-slack-word",children:[(0,s.jsx)(cu,{src:t}),"Slack"]}),a]})},du=({src:e})=>{const t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{const e=t.current;if(!e)return;if(e.muted=!0,"undefined"==typeof IntersectionObserver)return void e.play().catch(()=>{});const n=new IntersectionObserver(([t])=>{t&&(t.isIntersecting?e.play().catch(()=>{}):e.pause())},{threshold:.35});return n.observe(e),()=>n.disconnect()},[]),(0,s.jsx)("video",{ref:t,src:e,"aria-hidden":"true",loop:!0,muted:!0,playsInline:!0,preload:"metadata"})},hu={home:(0,s.jsx)("path",{d:"M3.5 10.5 12 4l8.5 6.5M5.5 9.2V20h13V9.2"}),dm:(0,s.jsx)("path",{d:"M4 5.5h16v10H10l-4 3.2V15.5H4z"}),activity:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,s.jsx)("path",{d:"M14.8 12.2c.5-3-1.6-5.4-4.4-5.2-3 .2-5.1 2.8-4.6 5.8.5 3 3.3 5 6.3 4.6 2-.3 3.6-1.6 4.3-3.4"})]}),files:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M13.5 3.5H7a1.5 1.5 0 0 0-1.5 1.5v14A1.5 1.5 0 0 0 7 20.5h10a1.5 1.5 0 0 0 1.5-1.5V8.5z"}),(0,s.jsx)("path",{d:"M13.5 3.5V8.5h5"})]}),more:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"6",cy:"12",r:"1.4"}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"1.4"}),(0,s.jsx)("circle",{cx:"18",cy:"12",r:"1.4"})]}),threads:(0,s.jsx)("path",{d:"M20 14.5a2 2 0 0 1-2 2H8l-4 3.5V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z"}),huddles:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M4 13v-1a8 8 0 0 1 16 0v1"}),(0,s.jsx)("path",{d:"M4 13h2.5v5H6a2 2 0 0 1-2-2zM20 13h-2.5v5H18a2 2 0 0 0 2-2z"})]}),recap:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,s.jsx)("path",{d:"M12 7.5V12l3 2"})]}),drafts:(0,s.jsx)("path",{d:"M21 3 10.5 13.5M21 3l-7 18-3.5-7.5L3 10z"}),lock:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("rect",{x:"5",y:"10.5",width:"14",height:"9",rx:"1.5"}),(0,s.jsx)("path",{d:"M8 10.5V8a4 4 0 0 1 8 0v2.5"})]}),huddle:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M4 13v-1a8 8 0 0 1 16 0v1"}),(0,s.jsx)("path",{d:"M4 13h2.5v5H6a2 2 0 0 1-2-2zM20 13h-2.5v5H18a2 2 0 0 0 2-2z"})]}),bell:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M6 16V11a6 6 0 0 1 12 0v5l1.5 2.5H4.5z"}),(0,s.jsx)("path",{d:"M10 19a2 2 0 0 0 4 0"})]}),search:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"6"}),(0,s.jsx)("path",{d:"m20 20-4.3-4.3"})]}),kebab:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"12",cy:"5.5",r:"1.4"}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"1.4"}),(0,s.jsx)("circle",{cx:"12",cy:"18.5",r:"1.4"})]}),plus:(0,s.jsx)("path",{d:"M12 5v14M5 12h14"}),text:(0,s.jsx)("path",{d:"M5 6h14M5 6v2M19 6v2M12 6v12M9.5 18h5"}),link:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M9.5 14.5 14.5 9.5"}),(0,s.jsx)("path",{d:"M11 7.5 12.5 6a3.5 3.5 0 0 1 5 5l-1.5 1.5"}),(0,s.jsx)("path",{d:"M13 16.5 11.5 18a3.5 3.5 0 0 1-5-5L8 11.5"})]}),"list-ordered":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M10 7h9M10 12h9M10 17h9"}),(0,s.jsx)("path",{d:"M4 6.5 5.5 6v3M4 16h2l-2 2h2"})]}),"list-bullet":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M9 7h11M9 12h11M9 17h11"}),(0,s.jsx)("circle",{cx:"5",cy:"7",r:"1"}),(0,s.jsx)("circle",{cx:"5",cy:"12",r:"1"}),(0,s.jsx)("circle",{cx:"5",cy:"17",r:"1"})]}),code:(0,s.jsx)("path",{d:"m9 8-4 4 4 4M15 8l4 4-4 4"}),"code-block":(0,s.jsx)("path",{d:"M6.5 7.5h11v9h-11zM9 10l-2 2 2 2M15 10l2 2-2 2"}),emoji:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,s.jsx)("path",{d:"M8.5 14.5a4 4 0 0 0 7 0"}),(0,s.jsx)("circle",{cx:"9",cy:"10",r:"0.6"}),(0,s.jsx)("circle",{cx:"15",cy:"10",r:"0.6"})]}),mention:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"3.2"}),(0,s.jsx)("path",{d:"M15.2 12.2c.5-3-1.6-5.4-4.4-5.2-3 .2-5.1 2.8-4.6 5.8.5 3 3.3 5 6.3 4.6 2-.3 3.6-1.6 4.3-3.4"})]}),video:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("rect",{x:"3.5",y:"7",width:"11",height:"10",rx:"2"}),(0,s.jsx)("path",{d:"M14.5 11 20 8v8l-5.5-3z"})]}),mic:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("rect",{x:"9.5",y:"4",width:"5",height:"9.5",rx:"2.5"}),(0,s.jsx)("path",{d:"M6.5 11.5a5.5 5.5 0 0 0 11 0M12 17v3"})]}),send:(0,s.jsx)("path",{d:"M21 3 10.5 13.5M21 3l-7 18-3.5-7.5L3 10z"})},pu={bold:{viewBox:"0 0 10.5306 13.4849",d:"M8.87857e-07 0.632107C8.87857e-07 0.464462 0.0665976 0.303683 0.185141 0.18514C0.303684 0.0665967 0.464463 
20 0.632108 0H5.97805C6.78446 0.000196304 7.56278 0.29623 8.1655 0.831992C8.76821 1.36776 9.15343 2.10601 9.24815 2.90685C9.26547 3.0158 9.27309 3.12608 9.2709 3.23639L9.27174 3.29286C9.2723 3.8022 9.15451 4.30472 8.92766 4.76076C8.70081 5.2168 8.3711 5.6139 7.96455 5.92073C8.8256 6.2341 9.5488 6.84066 10.0073 7.63401C10.4658 8.42735 10.6303 9.35681 10.4719 10.2593C10.3135 11.1618 9.84237 11.9797 9.14116 12.5696C8.43994 13.1594 7.55342 13.4835 6.63712 13.4849H0.632108C0.464463 13.4849 0.303684 13.4183 0.185141 13.2998C0.0665976 13.1813 8.87857e-07 13.0205 8.87857e-07 12.8528V6.32107C-0.000103426 6.25883 0.00898464 6.19692 0.0269708 6.13734C0.00906656 6.07802 -2.0621e-05 6.0164 8.87857e-07 5.95445V0.632107ZM2.10702 5.32234H5.13524C5.37403 5.32234 5.61048 5.27531 5.83109 5.18393C6.05171 5.09254 6.25216 4.9586 6.42101 4.78975C6.58986 4.6209 6.7238 4.42045 6.81518 4.19984C6.90656 3.97922 6.9536 3.74277 6.9536 3.50398C6.9536 3.26519 6.90656 3.02874 6.81518 2.80812C6.7238 2.58751 6.58986 2.38705 6.42101 2.2182C6.25216 2.04935 6.05171 1.91541 5.83109 1.82403C5.61048 1.73265 5.37403 1.68562 5.13524 1.68562H2.10702V5.32234ZM5.68896 6.95318H2.10702V11.5886H5.68896C6.30366 11.5886 6.89318 11.3444 7.32784 10.9098C7.7625 10.4751 8.00669 9.8856 8.00669 9.2709C8.00669 8.6562 7.7625 8.06668 7.32784 7.63202C6.89318 7.19736 6.30366 6.95318 5.68896 6.95318Z"},italic:{viewBox:"0 0 10.1137 13.4849",d:"M2.52843 0.632107C2.52843 0.464462 2.59502 0.303683 2.71357 0.18514C2.83211 0.0665967 2.99289 0 3.16053 0H9.4816C9.64925 3.53286e-09 9.81003 0.0665967 9.92857 0.18514C10.0471 0.303683 10.1137 0.464462 10.1137 0.632107C10.1137 0.799752 10.0471 0.960531 9.92857 1.07907C9.81003 1.19762 9.64925 1.26421 9.4816 1.26421H6.99532L4.80401 12.2207H6.95318C7.12082 12.2207 7.2816 12.2873 7.40014 12.4059C7.51869 12.5244 7.58528 12.6852 7.58528 12.8528C7.58528 13.0205 7.51869 13.1813 7.40014 13.2998C7.2816 13.4183 7.12082 13.4849 6.95318 13.4849H0.632107C0.464462 13.4849 0.303683 13.4183 0.18514 13.2998C0.0665967 13.1813 0 13.0205 0 12.8528C0 12.6852 0.0665967 12.5244 0.18514 12.4059C0.303683 12.2873 0.464462 12.2207 0.632107 12.2207H3.11839L5.3097 1.26421H3.16053C2.99289 1.26421 2.83211 1.19762 2.71357 1.07907C2.59502 0.960531 2.52843 0.799752 2.52843 0.632107Z"},strikethrough:{viewBox:"0 0 13.4849 13.431",d:"M8.19295 1.49719C7.42599 1.21569 6.48373 1.19378 5.63502 1.40111C4.36238 1.74413 3.62998 2.96958 3.81118 4.05596C3.97637 5.04626 5.00544 6.26749 8.00669 6.26749C8.01428 6.26764 8.02186 6.26792 8.02944 6.26833H12.8528C13.0205 6.26833 13.1813 6.33493 13.2998 6.45347C13.4183 6.57202 13.4849 6.7328 13.4849 6.90044C13.4849 7.06809 13.4183 7.22886 13.2998 7.34741C13.1813 7.46595 13.0205 7.53255 12.8528 7.53255H0.632107C0.464462 7.53255 0.303683 7.46595 0.18514 7.34741C0.0665967 7.22886 0 7.06809 0 6.90044C0 6.7328 0.0665967 6.57202 0.18514 6.45347C0.303683 6.33493 0.464462 6.26833 0.632107 6.26833H3.71679C3.07625 5.72135 2.69193 5.03109 2.56383 4.26498C2.27137 2.50856 3.43445 0.680509 5.3156 0.179038L5.3215 0.177352L5.3274 0.175667C6.38259 -0.0830756 7.58613 -0.0704336 8.62699 0.310516C9.68219 0.69568 10.5966 1.47444 10.9346 2.73275C10.9739 2.89314 10.9488 3.06252 10.8648 3.20466C10.7808 3.34681 10.6445 3.45044 10.485 3.49338C10.3256 3.53632 10.1557 3.51517 10.0116 3.43445C9.86757 3.35373 9.76083 3.21985 9.71422 3.06145C9.50352 2.28185 8.94726 1.77363 8.19295 1.49719ZM10.6944 9.17855C10.6638 9.09928 10.6176 9.02698 10.5585 8.96598C10.4994 8.90497 10.4285 8.85651 10.3503 8.82349C10.272 8.79048 10.1879 8.77357 10.1029 8.7738C10.0179 8.77403 9.93391 8.79138 9.85581 8.82482C9.77771 8.85826 9.70715 8.9071 9.64835 8.96842C9.58955 9.02975 9.54371 9.10229 9.51358 9.18173C9.48345 9.26116 9.46964 9.34586 9.47298 9.43075C9.47632 9.51564 9.49674 9.59899 9.53301 9.67581C9.7631 10.2152 9.68978 10.6914 9.42345 11.0867C9.14279 11.5013 8.61604 11.8663 7.88954 12.0449C7.056 12.2498 6.2115 12.184 5.33667 11.9404C4.55285 11.7213 3.97722 11.1524 3.77073 10.3855C3.72412 10.227 3.61738 10.0932 3.47333 10.0124C3.32929 9.93173 3.15937 9.91058 2.99993 9.95352C2.84049 9.99646 2.70419 10.1001 2.62017 10.2422C2.53615 10.3844 2.51108 10.5538 2.55034 10.7142C2.87735 11.9286 3.80023 12.8237 4.99702 13.1583C6.01934 13.4432 7.09224 13.5426 8.19126 13.2721C9.15206 13.0361 9.97802 12.5228 10.4702 11.7946C10.9759 11.0462 11.0964 10.1158 10.6944 9.17855Z"},link:{viewBox:"0 0 14.4114 14.4114",d:"M9.14919 1.94233C9.58385 1.5077 10.1734 1.26352 10.788 1.26352C11.4027 1.26352 11.9922 1.5077 12.4269 1.94233L12.469 1.98447C12.6844 2.19971 12.8552 2.45526 12.9717 2.73653C13.0883 3.0178 13.1482 3.31928 13.1482 3.62374C13.1482 3.9282 13.0883 4.22967 12.9717 4.51094C12.8552 4.79221 12.6844 5.04776 12.469 5.263L9.78888 7.94313C9.56702 8.16493 9.30243 8.33938 9.01116 8.45591C8.71989 8.57244 8.40799 8.62862 8.09437 8.62105C7.78074 8.61349 7.47191 8.54233 7.1866 8.4119C6.90128 8.28146 6.64542 8.09446 6.4345 7.86222L6.40922 7.83357C6.35333 7.77214 6.28588 7.72232 6.21074 7.68696C6.13559 7.6516 6.05422 7.63139 5.97126 7.62747C5.80372 7.61957 5.6399 7.67855 5.51584 7.79143C5.39178 7.90431 5.31765 8.06185 5.30975 8.22939C5.30184 8.39693 5.36082 8.56075 5.4737 8.6848L5.49899 8.71262C5.82501 9.07133 6.22046 9.36014 6.66137 9.56155C7.10229 9.76297 7.5795 9.87279 8.0641 9.88437C8.5487 9.89596 9.03061 9.80906 9.48064 9.62894C9.93067 9.44883 10.3395 9.17924 10.6823 8.83651L13.3624 6.15638C14.034 5.48465 14.4114 4.57364 14.4114 3.62374C14.4114 2.67383 14.034 1.76282 13.3624 1.09109L13.3203 1.04895C12.6485 0.377315 11.7375 0 10.7876 0C9.83771 0 8.9267 0.377315 8.25497 1.04895L6.75899 2.54494C6.69688 2.60281 6.64707 2.67259 6.61252 2.75013C6.57797 2.82767 6.5594 2.91137 6.5579 2.99625C6.5564 3.08112 6.57201 3.16542 6.60381 3.24413C6.6356 3.32284 6.68292 3.39434 6.74294 3.45436C6.80296 3.51439 6.87446 3.56171 6.95317 3.5935C7.03188 3.62529 7.11618 3.6409 7.20106 3.6394C7.28593 3.63791 7.36963 3.61933 7.44717 3.58478C7.52471 3.55023 7.59449 3.50042 7.65236 3.43832L9.14919 1.94233ZM5.263 12.469C5.04776 12.6844 4.79221 12.8552 4.51094 12.9717C4.22967 13.0883 3.9282 13.1482 3.62374 13.1482C3.31928 13.1482 3.0178 13.0883 2.73653 12.9717C2.45526 12.8552 2.19971 12.6844 1.98447 12.469L1.94233 12.4269C1.727 12.2116 1.55618 11.9561 1.43963 11.6748C1.32309 11.3935 1.2631 11.0921 1.2631 10.7876C1.2631 10.4832 1.32309 10.1817 1.43963 9.90041C1.55618 9.61914 1.727 9.36358 1.94233 9.14835L4.62246 6.46822C4.84433 6.24642 5.10891 6.07197 5.40019 5.95544C5.69146 5.83891 6.00336 5.78273 6.31698 5.79029C6.63061 5.79786 6.93943 5.86902 7.22475 5.99945C7.51007 6.12989 7.76593 6.31689 7.97684 6.54913L8.00213 6.57694C8.1149 6.701 8.27233 6.77517 8.43979 6.78316C8.60725 6.79114 8.77103 
26.73227 8.89509 6.6195C9.01914 6.50673 9.09332 6.3493 9.1013 6.18184C9.10929 6.01438 9.05042 5.8506 8.93765 5.72654L8.91236 5.69789C8.58628 5.33923 8.19078 5.05049 7.74984 4.84915C7.30889 4.64781 6.83167 4.53807 6.34707 4.52656C5.86247 4.51506 5.38058 4.60203 4.93058 4.78222C4.48057 4.96241 4.07183 5.23206 3.72909 5.57484L1.04895 8.25497C0.377315 8.9267 0 9.83771 0 10.7876C0 11.7375 0.377315 12.6485 1.04895 13.3203L1.09109 13.3624C1.76282 14.034 2.67383 14.4114 3.62374 14.4114C4.57364 14.4114 5.48465 14.034 6.15638 13.3624L7.65236 11.8664C7.76402 11.7466 7.8248 11.5881 7.82192 11.4243C7.81903 11.2606 7.75269 11.1043 7.63687 10.9885C7.52106 10.8727 7.36482 10.8064 7.20106 10.8035C7.0373 10.8006 6.87881 10.8614 6.75899 10.973L5.263 12.469Z"},"list-ordered":{viewBox:"0 0 14.3278 13.4848",d:"M1.93172 0.0790386C1.98599 0.11808 2.03019 0.169473 2.06067 0.228971C2.09115 0.28847 2.10704 0.354367 2.10702 0.421219V3.37105H2.94983C3.0616 3.37105 3.16878 3.41545 3.24781 3.49448C3.32684 3.57351 3.37124 3.68069 3.37124 3.79246C3.37124 3.90422 3.32684 4.01141 3.24781 4.09043C3.16878 4.16946 3.0616 4.21386 2.94983 4.21386H0.421405C0.309641 4.21386 0.202455 4.16946 0.123427 4.09043C0.0443978 4.01141 0 3.90422 0 3.79246C0 3.68069 0.0443978 3.57351 0.123427 3.49448C0.202455 3.41545 0.309641 3.37105 0.421405 3.37105H1.26421V1.00613L0.554568 1.24212C0.449934 1.27263 0.337544 1.26142 0.240998 1.21084C0.144453 1.16025 0.0712628 1.07423 0.0367957 0.970827C0.00232852 0.867425 0.00926585 0.754691 0.056151 0.656296C0.103036 0.5579 0.186222 0.481498 0.288241 0.443132L1.55245 0.0217275C1.6157 0.000592647 1.68305 -0.00523261 1.74899 0.00473049C1.81492 0.0146936 1.87754 0.0401607 1.93172 0.0790386ZM5.26756 1.26403C5.09991 1.26403 4.93913 1.33062 4.82059 1.44917C4.70205 1.56771 4.63545 1.72849 4.63545 1.89614C4.63545 2.06378 4.70205 2.22456 4.82059 2.3431C4.93913 2.46165 5.09991 2.52824 5.26756 2.52824H13.6956C13.8633 2.52824 14.0241 2.46165 14.1426 2.3431C14.2612 2.22456 14.3278 2.06378 14.3278 1.89614C14.3278 1.72849 14.2612 1.56771 14.1426 1.44917C14.0241 1.33062 13.8633 1.26403 13.6956 1.26403H5.26756ZM4.63545 7.37439C4.63545 7.20675 4.70205 7.04597 4.82059 6.92743C4.93913 6.80889 5.09991 6.74229 5.26756 6.74229H13.6956C13.8633 6.74229 14.0241 6.80889 14.1426 6.92743C14.2612 7.04597 14.3278 7.20675 14.3278 7.37439C14.3278 7.54204 14.2612 7.70282 14.1426 7.82136C14.0241 7.9399 13.8633 8.0065 13.6956 8.0065H5.26756C5.09991 8.0065 4.93913 7.9399 4.82059 7.82136C4.70205 7.70282 4.63545 7.54204 4.63545 7.37439ZM4.63545 12.8527C4.63545 12.685 4.70205 12.5242 4.82059 12.4057C4.93913 12.2871 5.09991 12.2205 5.26756 12.2205H13.6956C13.8633 12.2205 14.0241 12.2871 14.1426 12.4057C14.2612 12.5242 14.3278 12.685 14.3278 12.8527C14.3278 13.0203 14.2612 13.1811 14.1426 13.2996C14.0241 13.4182 13.8633 13.4848 13.6956 13.4848H5.26756C5.09991 13.4848 4.93913 13.4182 4.82059 13.2996C4.70205 13.1811 4.63545 13.0203 4.63545 12.8527ZM1.01727 10.0208C1.09591 9.91834 1.19712 9.83538 1.31304 9.77837C1.42895 9.72137 1.55645 9.69185 1.68562 9.69212C2.09859 9.69212 2.31773 10.0124 2.31773 10.3242C2.31773 10.3782 2.28991 10.4877 2.17192 10.6689C2.0234 10.8833 1.85584 11.0839 1.67129 11.2682C1.45553 11.4932 1.20606 11.73 0.938047 11.9829L0.86388 12.0537C0.613471 12.2874 0.366501 12.5248 0.12305 12.7658C0.0642529 12.8248 0.0242507 12.8999 0.00809462 12.9816C-0.00806144 13.0633 0.000353167 13.148 0.0322759 13.2249C0.0641986 13.3018 0.118198 13.3675 0.187455 13.4138C0.256713 13.4601 0.338122 13.4847 0.421405 13.4848H2.94983C3.0616 13.4848 3.16878 13.4404 3.24781 13.3613C3.32684 13.2823 3.37124 13.1751 3.37124 13.0634C3.37124 12.9516 3.32684 12.8444 3.24781 12.7654C3.16878 12.6863 3.0616 12.642 2.94983 12.642H1.46817L1.51706 12.5956C1.78338 12.3444 2.04718 12.0941 2.27896 11.8522C2.50039 11.6297 2.70097 11.3874 2.87819 11.1283C3.0299 10.8948 3.16053 10.6192 3.16053 10.3242C3.16053 9.66094 2.67002 8.84931 1.68562 8.84931C1.36579 8.84894 1.05247 8.93967 0.78232 9.11086C0.512169 9.28206 0.296357 9.52665 0.160134 9.81601C0.136504 9.8661 0.12297 9.92034 0.120304 9.97565C0.117638 10.031 0.125893 10.
20863 0.144598 10.1384C0.163303 10.1905 0.192091 10.2384 0.229318 10.2794C0.266545 10.3204 0.311483 10.3537 0.361565 10.3773C0.411648 10.401 0.465894 10.4145 0.521207 10.4172C0.57652 10.4198 0.631816 10.4116 0.683938 10.3929C0.736061 10.3742 0.783989 10.3454 0.824986 10.3081C0.865983 10.2709 0.899246 10.226 0.922876 10.1759C0.948642 10.1209 0.980292 10.0689 1.01727 10.0208Z"},"list-bullet":{viewBox:"0 0 13.9064 13.4849",d:"M1.68562 0.842809C1.68562 1.06634 1.59682 1.28071 1.43877 1.43877C1.28071 1.59682 1.06634 1.68562 0.842809 1.68562C0.619282 1.68562 0.40491 1.59682 0.246853 1.43877C0.0887957 1.28071 0 1.06634 0 0.842809C0 0.619282 0.0887957 0.40491 0.246853 0.246853C0.40491 0.0887957 0.619282 0 0.842809 0C1.06634 0 1.28071 0.0887957 1.43877 0.246853C1.59682 0.40491 1.68562 0.619282 1.68562 0.842809ZM4.21405 0.842809C4.21405 0.675164 4.28064 0.514385 4.39919 0.395842C4.51773 0.277299 4.67851 0.210702 4.84615 0.210702H13.2742C13.4419 0.210702 13.6027 0.277299 13.7212 0.395842C13.8398 0.514385 13.9064 0.675164 13.9064 0.842809C13.9064 1.01045 13.8398 1.17123 13.7212 1.28978C13.6027 1.40832 13.4419 1.47492 13.2742 1.47492H4.84615C4.67851 1.47492 4.51773 1.40832 4.39919 1.28978C4.28064 1.17123 4.21405 1.01045 4.21405 0.842809ZM4.84615 6.11037C4.67851 6.11037 4.51773 6.17696 4.39919 6.29551C4.28064 6.41405 4.21405 6.57483 4.21405 6.74247C4.21405 6.91012 4.28064 7.0709 4.39919 7.18944C4.51773 7.30798 4.67851 7.37458 4.84615 7.37458H13.2742C13.4419 7.37458 13.6027 7.30798 13.7212 7.18944C13.8398 7.0709 13.9064 6.91012 13.9064 6.74247C13.9064 6.57483 13.8398 6.41405 13.7212 6.29551C13.6027 6.17696 13.4419 6.11037 13.2742 6.11037H4.84615ZM4.84615 12.01C4.67851 12.01 4.51773 12.0766 4.39919 12.1952C4.28064 12.3137 4.21405 12.4745 4.21405 12.6421C4.21405 12.8098 4.28064 12.9706 4.39919 13.0891C4.51773 13.2076 4.67851 13.2742 4.84615 13.2742H13.2742C13.4419 13.2742 13.6027 13.2076 13.7212 13.0891C13.8398 12.9706 13.9064 12.8098 13.9064 12.6421C13.9064 12.4745 13.8398 12.3137 13.7212 12.1952C13.6027 12.0766 13.4419 12.01 13.2742 12.01H4.84615ZM0.842809 7.58528C1.06634 7.58528 1.28071 7.49649 1.43877 7.33843C1.59682 7.18037 1.68562 6.966 1.68562 6.74247C1.68562 6.51895 1.59682 6.30457 1.43877 6.14652C1.28071 5.98846 1.06634 5.89966 0.842809 5.89966C0.619282 5.89966 0.40491 5.98846 0.246853 6.14652C0.0887957 6.30457 0 6.51895 0 6.74247C0 6.966 0.0887957 7.18037 0.246853 7.33843C0.40491 7.49649 0.619282 7.58528 0.842809 7.58528ZM0.842809 13.4849C1.06634 13.4849 1.28071 13.3962 1.43877 13.2381C1.59682 13.08 1.68562 12.8657 1.68562 12.6421C1.68562 12.4186 1.59682 12.2042 1.43877 12.0462C1.28071 11.8881 1.06634 11.7993 0.842809 11.7993C0.619282 11.7993 0.40491 11.8881 0.246853 12.0462C0.0887957 12.2042 0 12.4186 0 12.6421C0 12.8657 0.0887957 13.08 0.246853 13.2381C0.40491 13.3962 0.619282 13.4849 0.842809 13.4849Z"},code:{viewBox:"0 0 16.0131 13.4865",d:"M10.0976 0.781216C10.1369 0.618041 10.1098 0.445922 10.0222 0.302722C9.93467 0.159522 9.79381 0.0569716 9.63063 0.0176309C9.46746 -0.0217098 9.29534 0.00538155 9.15214 0.0929453C9.00894 0.180509 8.90639 0.321372 8.86705 0.484547L5.91722 12.7053C5.87788 12.8685 5.90497 13.0406 5.99253 13.1838C6.0801 13.327 6.22096 13.4295 6.38413 13.4689C6.54731 13.5082 6.71943 13.4811 6.86263 13.3936C7.00583 13.306 7.10838 13.1651 7.14772 13.0019L10.0976 0.781216ZM4.4364 2.70114C4.31434 2.58627 4.15166 2.52458 3.98413 2.52964C3.8166 2.5347 3.65793 2.60609 3.54302 2.72811L0.171788 6.31004C0.0614424 6.4273 0 6.58224 0 6.74325C0 6.90426 0.0614424 7.0592 0.171788 7.17645L3.54302 10.7584C3.65875 10.8769 3.81637 10.9453 3.98198 10.9487C4.14759 10.9522 4.30794 10.8906 4.42855 10.777C4.54916 10.6635 4.62038 10.5071 4.6269 10.3416C4.63341 10.1761 4.57469 10.0146 4.46337 9.89198L1.5009 6.74325L4.46421 3.59451C4.57908 3.47245 4.64077 3.30977 4.63571 3.14224C4.63065 2.97471 4.55842 2.81604 4.4364 2.70114ZM11.5767 2.70114C11.6987 2.58627 11.8614 2.52458 12.029 2.52964C12.1965 2.5347 12.3552 2.60609 12.4701 2.72811L15.8413 6.31004C15.9516 6.4273 16.0131 6.58224 16.0131 6.74325C16.0131 6.90426 15.9516 7.0592 15.8413 7.17645L12.4701 10.7584C12.3543 10.8769 12.1967 10.9453 12.0311 10.9487C11.8655 10.9522 11.7051 10.8906 11.5845 10.777C11.4639 10.6635 11.3927 10.5071 11.3862 10.3416C11.3797 10.1761 11.4384 10.0146 11.5497 9.89198L14.5139 6.74325L11.5506 3.59451C11.4357 3.47245 11.374 3.30977 11.3791 3.14224C11.3841 2.97471 11.4555 2.81604 11.5775 2.70114H11.5767Z"},"code-block":{viewBox:"0 0 15.3798 13.6977",d:"M7.13033 0.832197C7.15657 0.753393 7.16702 0.670195 7.1611 0.587352C7.15517 0.504508 7.13299 0.423643 7.09582 0.349372C7.05864 0.275101 7.0072 0.20888 6.94444 0.154489C6.88167 0.100098 6.8088 0.0586021 6.73 0.0323711C6.6512 0.00614012 6.568 -0.00431247 6.48515 0.00161011C6.40231 0.00753268 6.32145 0.0297144 6.24718 0.0668889C6.1729 0.104063 6.10668 0.155503 6.05229 0.21827C5.9979 0.281036 5.95641 0.353902 5.93017 0.432705L3.82315 6.75377C3.77018 6.91292 3.78259 7.0866 3.85767 7.2366C3.93275 7.3866 4.06433 7.50062 4.22349 7.5536C4.38264 7.60658 4.55631 7.59416 4.70631 7.51908C4.85631 7.44401 4.97034 7.31242 5.02331 7.15327L7.13033 0.832197ZM12.2192 1.05554C12.0516 1.05554 11.8908 1.12214 11.7722 1.24068C11.6537 1.35922 11.5871 1.52 11.5871 1.68765C11.5871 1.85529 11.6537 2.01607 11.7722 2.13462C11.8908 2.25316 12.0516 2.31976 12.2192 2.31976H13.9048C13.9607 2.31976 14.0143 2.34195 14.0538 2.38147C14.0933 2.42098 14.1155 2.47458 14.1155 2.53046V12.2228C14.1155 12.2786 14.0933 12.3322 14.0538 12.3718C14.0143 12.4113 13.9607 12.4335 13.9048 12.4335H2.94832C2.89243 12.4335 2.83884 12.4113 2.79933 12.3718C2.75981 12.3322 2.73761 12.2786 2.73761 12.2228V9.27293C2.73761 9.10529 2.67102 8.94451 2.55247 8.82596C2.43393 8.70742 2.27315 8.64082 2.10551 8.64082C1.93786 8.64082 1.77708 8.70742 1.65854 8.82596C1.54 8.94451 1.4734 9.10529 1.4734 9.27293V12.2228C1.4734 13.0369 2.13416 13.6977 2.94832 13.6977H13.9048C14.296 13.6977 14.6712 13.5423 14.9478 13.2657C15.2244 12.9891 15.3798 12.6139 15.3798 12.2228V2.53046C15.3798 2.13929 15.2244 1.76413 14.9478 1.48753C14.6712 1.21093 14.296 1.05554 13.9048 1.05554H12.2192ZM9.10925 1.47695C9.05526 1.41112 8.98853 1.35688 8.91306 1.31748C8.8376 1.27808 8.75495 1.25433 8.67008 1.24765C8.58521 1.24098 8.49986 1.25151 8.41916 1.27863C8.33846 1.30575 8.26408 1.34889 8.20046 1.40546C8.13684 
21.46204 8.08531 1.53088 8.04895 1.60786C8.01259 1.68484 7.99216 1.76837 7.98888 1.85344C7.98559 1.93851 7.99953 2.02336 8.02984 2.10292C8.06016 2.18247 8.10624 2.25508 8.1653 2.31638L9.47672 3.79383L8.1653 5.26875C8.10751 5.33029 8.06264 5.40279 8.03332 5.48196C8.00401 5.56113 7.99085 5.64537 7.99463 5.72971C7.9984 5.81405 8.01903 5.89678 8.05531 5.97301C8.09158 6.04925 8.14275 6.11745 8.20581 6.17358C8.26887 6.22971 8.34254 6.27265 8.42246 6.29985C8.50238 6.32704 8.58694 6.33796 8.67115 6.33194C8.75536 6.32592 8.83751 6.3031 8.91276 6.26481C8.988 6.22653 9.05481 6.17356 9.10925 6.10903L10.7949 4.21439C10.8976 4.09871 10.9543 3.94938 10.9543 3.79467C10.9543 3.63997 10.8976 3.49063 10.7949 3.37495L9.10925 1.47695ZM2.73677 6.16128C2.61154 6.27247 2.4473 6.32942 2.28011 6.31962C2.11293 6.30982 1.95647 6.23408 1.84508 6.10903L0.15946 4.21439C0.0567353 4.09871 0 3.94938 0 3.79467C0 3.63997 0.0567353 3.49063 0.15946 3.37495L1.84508 1.47695C1.89907 1.41112 1.9658 1.35688 2.04126 1.31748C2.11673 1.27808 2.19938 1.25433 2.28425 1.24765C2.36912 1.24098 2.45447 1.25151 2.53516 1.27863C2.61586 1.30575 2.69025 1.34889 2.75387 1.40546C2.81749 1.46204 2.86902 1.53088 2.90538 1.60786C2.94174 1.68484 2.96217 1.76837 2.96545 1.85344C2.96874 1.93851 2.9548 2.02336 2.92448 2.10292C2.89417 2.18247 2.84809 2.25508 2.78902 2.31638L1.47677 3.79383L2.78902 5.26875C2.84434 5.3308 2.88687 5.40315 2.91418 5.48165C2.9415 5.56016 2.95306 5.64329 2.94821 5.72627C2.94335 5.80926 2.92218 5.89047 2.8859 5.96526C2.84962 6.04005 2.79894 6.1061 2.73677 6.16128Z"},"footer-plus":{viewBox:"0 0 10.5351 10.5351",fillOpacity:.7,d:"M5.79431 0.526756C5.79431 0.387051 5.73882 0.253069 5.64003 0.154283C5.54124 0.0554973 5.40726 0 5.26756 0C5.12785 0 4.99387 0.0554973 4.89508 0.154283C4.7963 0.253069 4.7408 0.387051 4.7408 0.526756V4.7408H0.527458C0.387754 4.7408 0.253069 4.7963 0.154283 4.89508C0.0554973 4.99387 0 5.12785 0 5.26756C0 5.40726 0.0554973 5.54124 0.154283 5.64003C0.253069 5.73882 0.387051 5.79431 0.526756 5.79431H4.7408V10.0084C4.7408 10.1481 4.7963 10.282 4.89508 10.3808C4.99387 10.4796 5.12785 10.5351 5.26756 10.5351C5.40726 10.5351 5.54124 10.4796 5.64003 10.3808C5.73882 10.282 5.79431 10.1481 5.79431 10.0084V5.79431H10.0084C10.1481 5.79431 10.282 5.73882 10.3808 5.64003C10.4796 5.54124 10.5351 5.40726 10.5351 5.26756C10.5351 5.12785 10.4796 4.99387 10.3808 4.89508C10.282 4.7963 10.1481 4.7408 10.0084 4.7408H5.79431V0.526756Z"},"footer-formatting":{viewBox:"0 0 16.8526 12.5011",fillOpacity:.7,d:"M5.84636 0.864024C5.45951 -0.297367 3.81181 -0.284725 3.44182 0.882566L0.025916 11.6705C-0.0210109 11.8293 -0.00375267 12.0002 0.0739801 12.1464C0.151713 12.2926 0.283713 12.4025 0.441599 12.4524C0.599486 12.5023 0.7706
251 12.4882 0.918294 12.4133C1.06594 12.3383 1.17827 12.2084 1.23113 12.0515L2.15907 9.12187H7.26649L8.24668 12.0607C8.27208 12.1405 8.31307 12.2144 8.36728 12.2782C8.42148 12.342 8.48782 12.3944 8.56244 12.4324C8.63706 12.4703 8.71847 12.4931 8.80195 12.4993C8.88543 12.5055 8.96932 12.4951 9.04875 12.4687C9.12817 12.4422 9.20155 12.4002 9.26462 12.3452C9.32769 12.2901 9.3792 12.2231 9.41616 12.148C9.45311 12.0729 9.47478 11.9912 9.47991 11.9076C9.48503 11.8241 9.4735 11.7403 9.44599 11.6613L5.8472 0.864867L5.84636 0.864024ZM6.84509 7.85765L4.64704 1.26436L2.5594 7.85765H6.84509ZM12.0688 3.19102C12.8914 2.88805 13.7908 2.86406 14.6284 3.12275C15.2725 3.32157 15.836 3.72148 16.2363 4.26386C16.6365 4.80623 16.8525 5.46256 16.8526 6.13664V11.861C16.8526 12.0286 16.786 12.1894 16.6675 12.308C16.5489 12.4265 16.3881 12.4931 16.2205 12.4931C16.0529 12.4931 15.8921 12.4265 15.7735 12.308C15.655 12.1894 15.5884 12.0286 15.5884 11.861V11.2331C14.8726 11.7697 14.0568 12.158 13.1889 12.3751C12.7008 12.4971 12.1873 12.4706 11.7143 12.299C11.2413 12.1274 10.8304 11.8184 10.5341 11.4118C9.13921 9.49439 10.5088 6.80414 12.8804 6.80414H15.5884V6.13664C15.5884 5.30731 15.0481 4.57491 14.2559 4.3305C13.683 4.15363 13.0679 4.17022 12.5054 4.3777L12.3014 4.45271C12.0379 4.54975 11.7996 4.70482 11.6041 4.90644C11.4086 5.10806 11.2609 5.35106 11.1721 5.61747L11.1316 5.73968C11.077 5.89664 10.9628 6.02579 10.8137 6.09916C10.6645 6.17253 10.4925 6.18422 10.3348 6.13169C10.1772 6.07917 10.0465 5.96667 9.97117 5.81853C9.89583 5.67039 9.88187 5.49854 9.93229 5.34018L9.97275 5.21798C10.1215 4.77178 10.3688 4.36475 10.6962 4.02702C11.0235 3.68928 11.4227 3.42949 11.864 3.26687L12.0688 3.19102ZM15.5884 8.06836H12.8804C11.5429 8.06836 10.77 9.58626 11.5572 10.6684C11.8581 11.0822 12.3832 11.2727 12.8821 11.1488C13.642 10.9587 14.352 10.6072 14.9639 10.1181L15.5884 9.61828V8.06836Z"},"footer-emoji":{viewBox:"0 0 15.1706 15.1706",fillOpacity:.7,d:"M1.26421 7.58528C1.26421 5.90883 1.93018 4.30104 3.11561 3.11561C4.30104 1.93018 5.90883 1.26421 7.58528 1.26421C9.26173 1.26421 10.8695 1.93018 12.055 3.11561C13.2404 4.30104 13.9064 5.90883 13.9064 7.58528C13.9064 9.26173 13.2404 10.8695 12.055 12.055C10.8695 13.2404 9.26173 13.9064 7.58528 13.9064C5.90883 13.9064 4.30104 13.2404 3.11561 12.055C1.93018 10.8695 1.26421 9.26173 1.26421 7.58528ZM7.58528 0C5.57354 0 3.64419 0.799162 2.22168 2.22168C0.799162 3.64419 0 5.57354 0 7.58528C0 9.59702 0.799162 11.5264 2.22168 12.9489C3.64419 14.3714 5.57354 15.1706 7.58528 15.1706C9.59702 15.1706 11.5264 14.3714 12.9489 12.9489C14.3714 11.5264 15.1706 9.59702 15.1706 7.58528C15.1706 5.57354 14.3714 3.64419 12.9489 2.22168C11.5264 0.799162 9.59702 0 7.58528 0ZM5.47826 7.16388C5.81355 7.16388 6.13511 7.03068 6.37219 6.7936C6.60928 6.55651 6.74247 6.23495 6.74247 5.89966C6.74247 5.56437 6.60928 5.24282 6.37219 5.00573C6.13511 4.76864 5.81355 4.63545 5.47826 4.63545C5.14297 4.63545 4.82141 4.76864 4.58433 5.00573C4.34724 5.24282 4.21405 5.56437 4.21405 5.89966C4.21405 6.23495 4.34724 6.55651 4.58433 6.7936C4.82141 7.03068 5.14297 7.16388 5.47826 7.16388ZM10.9565 5.89966C10.9565 6.06568 10.9238 6.23008 10.8603 6.38346C10.7968 6.53684 10.7036 6.67621 10.5862 6.7936C10.4688 6.91099 10.3295 7.00411 10.1761 7.06765C10.0227 7.13118 9.85832 7.16388 9.69231 7.16388C9.52629 7.16388 9.36189 7.13118 9.20851 7.06765C9.05513 7.00411 8.91576 6.91099 8.79837 6.7936C8.68098 6.67621 8.58786 6.53684 8.52432 6.38346C8.46079 6.23008 8.42809 6.06568 8.42809 5.89966C8.42809 5.56437 8.56129 5.24282 8.79837 5.00573C9.03546 4.76864 9.35702 4.63545 9.69231 4.63545C10.0276 4.63545 10.3492 4.76864 10.5862 5.00573C10.8233 5.24282 10.9565 5.56437 10.9565 5.89966ZM5.57518 9.07368C5.55007 8.99387 5.50936 8.91983 5.45541 8.85587C5.40147 8.79191 5.33536 8.73929 5.26092 8.70108C5.18649 8.66286 5.1052 8.6398 5.02179 8.63324C4.93837 8.62668 4.85448 8.63674 4.77499 8.66285C4.69549 8.68896 4.62197 8.73059 4.55868 8.78533C4.4954 8.84007 4.44362 8.90683 4.40633 8.98174C4.36905 9.05665 4.34701 9.13821 4.34149 9.22171C4.33597 9.3052 4.34708 9.38895 4.37418 9.46812C4.88492 11.0239 6.26039 11.7993 7.60804 11.7993C8.95569 11.7993 10.3303 11.0239 10.8427 9.46812C10.8698 9.38895 10.881 9.3052 10.8754 9.22171C10.8699 9.13821 10.8479 9.05665 10.8106 8.98174
2C10.7733 8.90683 10.7215 8.84007 10.6582 8.78533C10.595 8.73059 10.5214 8.68896 10.4419 8.66285C10.3624 8.63674 10.2785 8.62668 10.1951 8.63324C10.1117 8.6398 10.0304 8.66286 9.956 8.70108C9.88156 8.73929 9.81545 8.79191 9.76151 8.85587C9.70756 8.91983 9.66685 8.99387 9.64174 9.07368C9.32147 10.0471 8.47866 10.5351 7.60804 10.5351C6.73742 10.5351 5.89545 10.0463 5.57518 9.07368Z"},"footer-mention":{viewBox:"0 0 15.1706 15.1706",fillOpacity:.7,d:"M1.26422 7.58473C1.26422 5.90828 1.93019 4.30049 3.11562 3.11506C4.30105 1.92963 5.90884 1.26367 7.58529 1.26367C9.26174 1.26367 10.8695 1.92963 12.055 3.11506C13.2404 4.30049 13.9064 5.90828 13.9064 7.58473V8.12835C13.9064 8.99138 13.2068 9.69176 12.343 9.69176C12.087 9.69176 11.8416 9.59009 11.6606 9.40911C11.4796 9.22813 11.3779 8.98268 11.3779 8.72674V4.8456C11.3787 4.68463 11.3179 4.52944 11.2082 4.4117C11.0984 4.29396 10.9478 4.22254 10.7872 4.212C10.6266 4.20147 10.468 4.25261 10.3438 4.355C10.2196 4.4574 10.1391 4.60332 10.1188 4.76301C9.55559 4.25736 8.85399 3.93179 8.10424 3.82817C7.35449 3.72456 6.59089 3.84764 5.91166 4.18158C5.23244 4.51552 4.66867 5.04505 4.29288 5.70205C3.91709 6.35904 3.74647 7.11345 3.80297 7.86821C3.85946 8.62298 4.1405 9.34357 4.60991 9.9373C5.07932 10.531 5.71565 10.9707 6.43702 11.1998C7.15838 11.4289 7.9318 11.437 8.65777 11.2229C9.38374 11.0088 10.029 10.5824 10.5107 9.99854C10.716 10.2945 10.9901 10.5362 11.3093 10.703C11.6286 10.8697 11.9836 10.9565 12.3438 10.956C13.0936 10.9557 13.8126 10.6577 14.3427 10.1275C14.8728 9.59722 15.1706 8.87813 15.1706 8.12835V7.58473C15.1705 5.88562 14.5999 4.23576 13.5503 2.8996C12.5007 1.56344 11.0328 0.618377 9.3821 0.215892C7.73135 -0.186594 5.99326 -0.0231891 4.44645 0.679913C2.89965 1.38301 1.63369 2.5851 0.851521 4.09347C0.0693499 5.60183 -0.18374 7.32914 0.13282 8.9985C0.44938 10.6679 1.31726 12.1826 2.59734 13.2999C3.87741 14.4172 5.49556 15.0724 7.19238 15.1604C8.88921 15.2484 10.5665 14.7642 11.9553 13.7853C12.0251 13.7383 12.0849 13.6778 12.1311 13.6074C12.1772 13.5369 12.2089 13.458 12.2241 13.3752C12.2393 13.2923 12.2379 13.2073 12.2198 13.125C12.2017 13.0428 12.1673 12.965 12.1188 12.8962C12.0702 12.8274 12.0084 12.769 11.9369 12.7245C11.8655 12.6799 11.7858 12.6501 11.7027 12.6367C11.6195 12.6234 11.5345 12.6267 11.4527 12.6467C11.3709 12.6666 11.2939 12.7027 11.2262 12.7528C10.2796 13.4199 9.16788 13.814 8.01248 13.8923C6.85708 13.9706 5.70238 13.7299 4.67443 13.1966C3.64648 12.6634 2.78478 11.8579 2.1834 10.8683C1.58201 9.87862 1.26405 8.74278 1.26422 7.58473ZM7.58529 10.1132C8.25587 10.1132 8.89899 9.84677 9.37316 9.3726C9.84733 8.89843 10.1137 8.25531 10.1137 7.58473C10.1137 6.91415 9.84733 6.27104 9.37316 5.79687C8.89899 5.32269 8.25587 5.05631 7.58529 5.05631C6.91471 5.05631 6.2716 5.32269 5.79742 5.79687C5.32325 6.27104 5.05686 6.91415 5.05686 7.58473C5.05686 8.25531 5.32325 8.89843 5.79742 9.3726C6.2716 9.84677 6.91471 10.1132 7.58529 10.1132Z"},"footer-video":{viewBox:"0 0 14.7492 11.7993",fillOpacity:.7,d:"M1.89632 1.26421C1.72868 1.26421 1.5679 1.33081 1.44935 1.44935C1.33081 1.5679 1.26421 1.72868 1.26421 1.89632V9.90301C1.26421 10.2519 1.5474 10.5351 1.89632 10.5351H9.0602C9.22784 10.5351 9.38862 10.4685 9.50716 10.35C9.62571 10.2314 9.69231 10.0707 9.69231 9.90301V7.72013C9.69232 7.60926 9.72149 7.50035 9.7769 7.40432C9.83231 7.30829 9.912 7.22852 10.008 7.17301C10.1039 7.11751 10.2128 7.08823 10.3237 7.08811C10.4346 7.08798 10.5435 7.11702 10.6396 7.17231L13.4849 8.80988V2.98944L10.6396 4.62787C10.5435 4.68319 10.4344 4.71223 10.3235 4.71207C10.2126 4.7119 10.1036 4.68255 10.0076 4.62695C9.91161 4.57134 9.83193 4.49145 9.77658 4.39531C9.72124 4.29916 9.69217 4.19014 9.69231 4.0792V1.89632C9.69231 1.72868 9.62571 1.5679 9.50716 1.44935C9.38862 1.33081 9.22784 1.26421 9.0602 1.26421H1.89632ZM0 1.89632C0 1.39339 0.19979 0.911048 0.555419 0.555419C0.911048 0.19979 1.39339 0 1.89632 0H9.0602C9.56313 0 10.0455 0.19979 10.4011 0.555419C10.7567 0.911048 10.9565 1.39339 10.9565 1.89632V2.98692L13.1697 1.71259C13.3299 1.62032 13.5115 1.57181 13.6964 1.57193C13.8812 1.57205 14.0627 1.62081 14.2228 1.71329C14.3828 1.80578 14.5157 1.93875 14.6081 2.09884C14.7005 2.25893 14.7491 2.44051 14.7492 2.62535V9.17398C14.7491 9.35882 14.7005 9.5404 14.6081 9.70049C14.5157 9.86058 14.3828 9.99355 14.2228 10.086C14.0627 10.1785 13.8812 10.2273 13.6964 10.2274C13.5115 10.2275 13.3299 10.179 13.1697 10.0867L10.9565 8.81241V9.90301C10.9565 10.4059 10.7567 10.8883 10.4011 11.2439C10.0455 11.5995 9.56313 11.7993 9.0602 11.7993H1.89632C1.39339 11.7993 0.911048 11.5995 0.555419 11.2439C0.19979 10.8883 0 10.4059 0 9.90301V1.89632Z"},"footer-mic":{viewBox:"0 0 10.9565 13.4849",fillOpacity:.7,d:"M5.47826 0C4.69592 0 3.94561 0.310785 3.39241 0.863986C2.83921 1.41719 2.52843 2.16749 2.52843 2.94983V5.47826C2.52843 5.86564 2.60473 6.24922 2.75297 6.60711C2.90121 6.965 3.1185 7.29019 3.39241 7.56411C3.66633 7.83802 3.99152 8.05531 4.34941 8.20355C4.7073 8.35179 5.09088 8.42809 5.47826 8.42809C5.86564 8.42809 6.24922 8.35179 6.60711 8.20355C6.965 8.05531 7.29019 7.83802 7.56411 7.56411C7.83802 7.29019 8.05531 6.965 8.20355 6.60711C8.35179 6.24922 8.42809 5.86564 8.42809 5.47826V2.94983C8.42809 2.16749 8.11731 1.41719 7.56411 0.863986C7.0109 0.310785 6.2606 0 5.47826 0ZM3.79264 2.94983C3.79264 2.50278 3.97023 2.07403 4.28635 1.75792C4.60246 1.44181 5.03121 1.26421 5.47826 1.26421C5.92531 1.26421 6.35406 1.44181 6.67017 1.75792C6.98629 2.07403 7.16388 2.50278 7.16388 2.94983V5.47826C7.16388 5.92531 6.98629 6.35406 6.67017 6.67017C6.35406 6.98629 5.92531 7.16388 5.47826 7.16388C5.03121 7.16388 4.60246 6.98629 4.28635 6.67017C3.97023 6.35406 3.79264 5.92531 3.79264 5.47826V2.94983ZM1.26421 5.26756C1.26421 5.09991 1.19762 4.93913 1.07907 4.82059C0.960531 4.70205 0.799752 4.63545 0.632107 4.63545C0.464462 4.63545 0.303683 4.70205 0.18514 4.82059C0.0665967 4.93913 0 5.09991 0 5.26756V5.47826C9.84284e-05 6.82174 0.493795 8.11835 1.38726 9.12167C2.28072 10.125 3.51167 10.7651 4.84615 10.9203V12.2207H3.58194C3.41429 12.2207 3.25351 12.2873 3.13497 12.4059C3.01643 12.5244 2.94983 12.6852 2.94983 12.8528C2.94983 13.0205 3.01643 13.1813 3.13497 13.2998C3.25351 13.4183 3.41429 13.4849 3.58194 13.4849H7.37458C7.54223 13.4849 7.703 13.4183 7.82155 13.2998C7.94009 13.1813 8.00669 13.0205 8.00669 12.8528C8.00669 12.6852 7.94009 12.5244 7.82155 12.4059C7.703 12.2873 7.54223 12.2207 7.37458 12.2207H6.11037V10.9203C7.44485 10.7651 8.6758 10.125 9.56926 9.12167C10.4627 8.11835 10.9564 6.82174 10.9565 5.47826V5.26756C10.9565 5.09991 10.8899 4.93913 10.7714 4.82059C10.6528 4.70205 10.4921 4.63545 10.3244 4.63545C10.1568 4.63545 9.99599 4.70205 9.87745 4.82059C9.7589 4.93913 9.69231 5.09991 9.69231 5.26756V5.47826C9.69231 6.59589 9.24833 7.66775 8.45804 8.45804C7.66775 9.24833 6.59589 9.69231 5.47826 9.69231C4.36062 9.69231 3.28877 9.24833 2.49848 8.45804C1.70819 7.66
2775 1.26421 6.59589 1.26421 5.47826V5.26756Z"},"footer-shortcut":{viewBox:"0 0 14.3278 14.3278",fillOpacity:.7,d:"M2.52843 1.26421H11.7993C12.1346 1.26421 12.4562 1.39741 12.6933 1.63449C12.9303 1.87158 13.0635 2.19314 13.0635 2.52843V11.7993C13.0635 12.1346 12.9303 12.4562 12.6933 12.6933C12.4562 12.9303 12.1346 13.0635 11.7993 13.0635H2.52843C2.19314 13.0635 1.87158 12.9303 1.63449 12.6933C1.39741 12.4562 1.26421 12.1346 1.26421 11.7993V2.52843C1.26421 2.19314 1.39741 1.87158 1.63449 1.63449C1.87158 1.39741 2.19314 1.26421 2.52843 1.26421ZM0 2.52843C0 1.85785 0.266387 1.21473 0.740559 0.740559C1.21473 0.266387 1.85785 0 2.52843 0H11.7993C12.4699 0 13.113 0.266387 13.5872 0.740559C14.0614 1.21473 14.3278 1.85785 14.3278 2.52843V11.7993C14.3278 12.4699 14.0614 13.113 13.5872 13.5872C13.113 14.0614 12.4699 14.3278 11.7993 14.3278H2.52843C1.85785 14.3278 1.21473 14.0614 0.740559 13.5872C0.266387 13.113 0 12.4699 0 11.7993V2.52843ZM9.8103 3.70078C9.89654 3.55775 9.92267 3.38642 9.88299 3.22419C9.84331 3.06196 9.74105 2.92203 9.59853 2.83496C9.45601 2.7479 9.28483 2.72077 9.12238 2.7595C8.95992 2.79824 8.8194 2.89969 8.7315 3.0417L4.09605 10.627C4.00981 10.77 3.98368 10.9413 4.02336 11.1036C4.06304 11.2658 4.16531 11.4057 4.30782 11.4928C4.45034 11.5799 4.62152 11.607 4.78398 11.5683C4.94643 11.5295 5.08695 11.4281 5.17485 11.2861L9.8103 3.70078Z"}},mu=({name:e,className:t,fill:n})=>{var r;const a=pu[e];if(a)return(0,s.jsx)("svg",{className:t,viewBox:a.viewBox,"aria-hidden":"true",focusable:"false",fill:"none",style:{overflow:"visible"},children:(0,s.jsx)("path",{fill:"white",fillOpacity:null!==(r=a.fillOpacity)&&void 0!==r?r:.3,fillRule:"evenodd",clipRule:"evenodd",d:a.d})});const i=hu[e];return i?(0,s.jsx)("svg",{className:t,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:n?"currentColor":"none",stroke:n?"none":"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",children:i}):null},fu=({data:e,baseUrl:t=""})=>{var r,a,i,o,l,c,u,d,h,p,m,f,v;const g=null!==(r=null==e?void 0:e.variant)&&void 0!==r?r:"iphone",b=null!==(a=null==e?void 0:e.members)&&void 0!==a?a:{},y=Array.isArray(null==e?void 0:e.messages)?e.messages:[],x="desktop"!==g&&!1!==(null==e?void 0:e.autoscroll),w="number"==typeof(null==e?void 0:e.scrollDuration)&&e.scrollDuration>0?e.scrollDuration:22,_=ou(null==e?void 0:e.deviceImage,t),k=null==e?void 0:e.workspace,[N,E]=(0,n.useState)(!1),j=(0,n.useRef)(null),S=(0,n.useRef)(null),C=(0,n.useRef)(0),T=x&&!N,A=null!==(o=null===(i=y[0])||void 0===i?void 0:i.body)&&void 0!==o?o:"";(0,n.useEffect)(()=>{N&&j.current&&(j.current.scrollTop=C.current)},[N]),(0,n.useEffect)(()=>{if(T)return;const e=j.current;if(!e)return;let t=!0;const n=()=>{t&&(e.scrollTop=0)};n();const r=[window.requestAnimationFrame(n),window.requestAnimationFrame(()=>window.requestAnimationFrame(n))];let a=null;if("undefined"!=typeof ResizeObserver){const t=e.firstElementChild;a=new ResizeObserver(n),a.observe(e),t instanceof HTMLElement&&a.observe(t)}const s=window.setTimeout(()=>{t=!1,null==a||a.disconnect()},1200);return()=>{t=!1,r.forEach(e=>window.cancelAnimationFrame(e)),null==a||a.disconnect(),window.clearTimeout(s)}},[T,g,null==k?void 0:k.activeChannel,y.length,A]),(0,n.useEffect)(()=>{if(!T)return;const e=j.current,t=S.current;if(!e||!t||"undefined"==typeof ResizeObserver)return;const n=()=>{const n=Math.max(0,e.scrollHeight-e.clientHeight);t.style.setProperty("--rs-scroll-distance",`${n}px`)};n();const r=new ResizeObserver(n);return r.observe(e),r.observe(t),()=>r.disconnect()},[T,y.length]);const L=(0,s.jsx)("div",{className:"rs-thread",children:y.map((e,n)=>((e,n)=>{var r,a,i,o;const l=e.author&&b[e.author]||{},c=ou(l.avatar,t),u=null!==(a=null!==(r=l.name)&&void 0!==r?r:e.author)&&void 0!==a?a:"",d=(Array.isArray(e.images)?e.images:[]).map(e=>ou(e,t)).filter(e=>Boolean(e)),h=(Array.isArray(e.attachmentGrid)?e.attachmentGrid:[]).map(e=>ou(e,t)).filter(e=>Boolean(e)),p=(Array.isArray(e.replyAvatars)?e.replyAvatars:[]).map(e=>ou(e,t)).filter(e=>Boolean(e)),m=(Array.isArray(e.cards)?e.cards:[]).map(e=>Object.assign(Object.assign({},e),{image:ou(e.image,t)})).filter(e=>e.title||e.subtitle||e.body||e.image),f=p.length>0||e.replyText||e.replyMeta,v=(null!==(i=e.body)&&void 0!==i?i:"").includes("rs-report"),g=!(0!==d.length||0!==h.length||0!==m.length||v||e.afterCardsBody||e.attachmentLabel||e.attachmentDuration||e.fileNameConvention||e.fileCount||e.fileDownloadLabel||f);return(0,s.jsxs)("div",{className:"rs-message"+(g?" is-simple":""),children:[(0,s.jsx)("div",{className:"rs-avatar",children:c?(0,s.jsx)("img",{src:c,alt:"","aria-hidden":"true",loading:"lazy"}):(0,s.jsx)("span",{className:"rs-avatar-fallback","aria-hidden":"true",children:u.slice(0,1).toUpperCase()})}),(0,s.jsxs)("div",{className:"rs-body",children:[(0,s.jsxs)("div",{className:"rs-meta",children:[(0,s.jsxs)("span",{className:"rs-name",children:[u,l.isBot&&(0,s.jsx)("span",{className:"rs-badge",children:"APP"})]}),e.time&&(0,s.jsx)("span",{className:"rs-time",children:e.time})]}),(0,s.jsx)("div",{className:"rs-text",dangerouslySetInnerHTML:{__html:null!==(o=e.body)&&void 0!==o?o:""}}),e.attachmentLabel&&(0,s.jsxs)("div",{className:"rs-attachment-label",children:[(0,s.jsx)("span",{children:e.attachmentLabel}),(0,s.jsx)("span",{className:"rs-attachment-caret","aria-hidden":"true"})]}),e.fileNameConvention&&(0,s.jsx)("div",{className:"rs-file-name-convention",children:e.fileNameConvention}),(e.fileCount||e.fileDownloadLabel)&&(0,s.jsxs)("div",{className:"rs-file-meta-row",children:[e.fileCount&&(0,s.jsxs)("span",{className:"rs-file-count",children:[e.fileCount,(0,s.jsx)("span",{className:"rs-attachment-caret","aria-hidden":"true"})]}),e.fileDownloadLabel&&(0,s.jsxs)("span",{className:"rs-file-download",children:[(0,s.jsx)("span",{className:"rs-file-download-icon","aria-hidden":"true"}),e.fileDownloadLabel]})]}),d.length>0&&(0,s.jsx)("div",{className:"rs-attachments"+(e.imageWide?" rs-attachments-wide":""),children:d.map((t,n)=>{return(0,s.jsxs)("span",{className:"rs-attachment",children:[(r=t,/\.(mp4|webm|mov)(?:[?#].*)?$/i.test(r)?(0,s.jsx)(du,{src:t}):(0,s.jsx)("img",{src:t,alt:"","aria-hidden":"true",loading:"lazy"})),0===n&&e.attachmentDuration&&(0,s.jsxs)("span",{className:"rs-attachment-duration","aria-hidden":"true",children:[(0,s.jsx)("span",{className:"rs-attachment-play"}),e.attachmentDuration]})]},`att-${n}`);var r})}),h.length>0&&(0,s.jsx)("div",{className:"rs-attachment-grid",children:h.map((e,t)=>(0,s.jsx)("span",{className:"rs-attachment-grid-item",children:(0,s.jsx)("img",{src:e,alt:"","aria-hidden":"true",loading:"lazy"})},`grid-att-${t}`))}),f&&(0,s.jsxs)("div",{className:"rs-reply-meta",children:[p.length>0&&(0,s.jsx)("span",{className:"rs-reply-avatars","aria-hidden":"true",children:p.map((e,t)=>(0,s.jsx)("img",{src:e,alt:"",loading:"lazy"},`reply-av-${t}`))}),e.replyText&&(0,s.jsx)("span",{className:"rs-reply-link",children:e.replyText}),e.replyMeta&&(0,s.jsx)("span",{className:"rs-reply-muted",children:e.replyMeta})]}),m.length>0&&(0,s.jsx)("div",{className:"rs-card-attachments",children:m.map((e,t)=>(0,s.jsxs)("article",{className:"rs-card-attachment",children:[e.image&&(0,s.jsx)("img",{className:"rs-card-attachment-img",src:e.image,alt:"","aria-hidden":"true",loading:"lazy"}),(e.title||e.subtitle)&&(0,s.jsxs)("div",{className:"rs-card-attachment-copy",children:[e.title&&(0,s.jsx)("strong",{children:e.title}
2),e.subtitle&&(0,s.jsx)("span",{children:e.subtitle})]}),e.body&&(0,s.jsx)("p",{className:"rs-card-attachment-body",children:e.body})]},`card-${t}`))}),e.afterCardsBody&&(0,s.jsx)("div",{className:"rs-text rs-text-after-cards",dangerouslySetInnerHTML:{__html:e.afterCardsBody}})]})]},n)})(e,`m-${n}`))}),I=T?(0,s.jsx)("div",{className:"rs-track",ref:S,style:{"--rs-scroll-duration":`${w}s`},children:L}):L,M=(0,s.jsx)("div",{className:`rs-panel${T?" rs-panel-auto":""}${N?" rs-panel-taken":""}`,onClick:x?()=>{if(!x||N)return;const e=S.current;if(e&&"undefined"!=typeof window){const t=window.getComputedStyle(e).transform;if(t&&"none"!==t)try{const e=new DOMMatrix(t);C.current=Math.max(0,-e.m42)}catch(e){C.current=0}}E(!0)}:void 0,children:(0,s.jsx)("div",{className:"rs-scroll",ref:j,children:I})}),P=(e,t)=>(0,s.jsx)(s.Fragment,{children:(null!=e?e:[]).map((e,n)=>{var r;const a=null!==(r=e.tone)&&void 0!==r?r:"text";return(0,s.jsx)("span",{className:`rs-terminal-text-${a}`,children:e.text},`${t}-${n}`)})}),O=(e,t)=>e?(0,s.jsxs)("div",{className:"rs-terminal-line",children:[e.prompt&&(0,s.jsx)("span",{className:"rs-terminal-prompt-path",children:e.prompt}),e.glyph&&(0,s.jsx)("span",{className:"rs-terminal-prompt-glyph",children:e.glyph}),P(e.segments,t)]},t):null,R=null!==(l=null==e?void 0:e.railIcons)&&void 0!==l?l:{},D=null!==(u=(null!==(c=null==e?void 0:e.railBadges)&&void 0!==c?c:{}).activity)&&void 0!==u?u:"1",F=[{label:"Home",icon:"home",asset:ou(R.home,t)},{label:"DMs",icon:"dm",asset:ou(R.dm,t)},{label:"Activity",icon:"activity",asset:ou(R.activity,t),badge:null==D?void 0:String(D)},{label:"Files",icon:"files",asset:ou(R.files,t)},{label:"More",icon:"more",asset:ou(R.more,t)}],U=null!==(d=null==e?void 0:e.sidebarNavIcons)&&void 0!==d?d:{},$=[{label:"Threads",icon:"threads",asset:ou(U.threads,t)},{label:"Huddles",icon:"huddles",asset:ou(U.huddles,t)},{label:"Recap",icon:"recap",asset:ou(U.recap,t)},{label:"Drafts & sent",icon:"drafts",asset:ou(U.drafts,t)}],B=null!==(h=null==e?void 0:e.headerTabIcons)&&void 0!==h?h:{},H=[{label:"Messages",icon:"dm",asset:ou(B.messages,t)},{label:"Add canvas",icon:"plus",asset:ou(B.addCanvas,t)},{label:"Files",icon:"files",asset:ou(B.files,t)}],z=ou(B.plus,t),q=()=>{var n,r,a,i;const o=Array.isArray(null==k?void 0:k.channels)?k.channels:[],l=Array.isArray(null==k?void 0:k.apps)?k.apps:[],c=null!==(n=null==k?void 0:k.activeChannel)&&void 0!==n?n:"",u=null!==(r=null==e?void 0:e.channelIcons)&&void 0!==r?r:{},d=ou(u.caret,t),h=ou(u.hashMuted,t),p=ou(u.hashActive,t),m=ou(u.lock,t),f=ou(null==k?void 0:k.appsIcon,t),v=null!==(a=null==k?void 0:k.headerIcons)&&void 0!==a?a:{},g=ou(v.more,t),b=ou(v.compose,t);return(0,s.jsxs)("aside",{className:"rs-sidebar",children:[(0,s.jsx)("div",{className:"rs-sidebar-header",children:(0,s.jsxs)("div",{className:"rs-workspace",children:[(0,s.jsx)("span",{className:"rs-workspace-name",children:null!==(i=null==k?void 0:k.name)&&void 0!==i?i:"Slack"}),(0,s.jsxs)("span",{className:"rs-workspace-actions","aria-hidden":"true",children:[g?(0,s.jsx)("img",{className:"rs-ws-ic rs-ws-img rs-ws-img-more",src:g,alt:"",loading:"lazy"}):(0,s.jsx)(mu,{name:"kebab",className:"rs-ws-ic"}),(0,s.jsx)("span",{className:"rs-ws-compose",children:b?(0,s.jsx)("img",{className:"rs-ws-compose-img",src:b,alt:"",loading:"lazy"}):(0,s.jsx)(mu,{name:"drafts",className:"rs-ws-ic"})})]})]})}),(0,s.jsx)("div",{className:"rs-sidebar-nav-section",children:(0,s.jsx)("ul",{className:"rs-nav",children:$.map((e,t)=>(0,s.jsxs)("li",{className:"rs-nav-item",children:[e.asset?(0,s.jsx)("img",{className:`rs-nav-ic rs-nav-img rs-nav-ic-${e.icon}`,src:e.asset,alt:"","aria-hidden":"true",loading:"lazy"}):(0,s.jsx)(mu,{name:e.icon,className:`rs-nav-ic rs-nav-ic-${e.icon}`}),e.label]},`nav-${t}`))})}),(0,s.jsxs)("div",{className:"rs-sidebar-channels-section",children:[(0,s.jsxs)("div",{className:"rs-sidebar-label",children:[(0,s.jsx)("span",{className:"rs-open-channels-button","aria-hidden":"true",children:d?(0,s.jsx)("img",{className:"rs-sidebar-label-icon",src:d,alt:"",loading:"lazy"}):(0,s.jsx)("span",{className:"rs-caret"})}),"Channels"]}),(0,s.jsx)("ul",{className:"rs-channels",children:o.map((e,t)=>{const n=lu(e),r=n.name===c,a=n.private?m:r||n.unread?p:h;return(0,s.jsxs)("li",{className:`rs-channel${r?" is-active":""}${n.unread?" is-unread":""}`,children:[a?(0,s.jsx)("img",{className:"rs-ch-ic rs-ch-img",src:a,alt:"","aria-hidden":"true",loading:"lazy"}):n.private?(0,s.jsx)(mu,{name:"lock",className:"rs-ch-ic"}):(0,s.jsx)("span",{className:"rs-hash","aria-hidden":"true",children:"#"}),n.name]},`ch-${t}`)})})]}),l.length>0&&(0,s.jsxs)("div",{className:"rs-sidebar-apps-section",children:[(0,s.jsxs)("div",{className:"rs-apps-heading",children:[f?(0,s.jsx)("img",{className:"rs-apps-heading-icon",src:f,alt:"","aria-hidden":"true",loading:"lazy"}):(0,s.jsx)("span",{className:"rs-apps-grid","aria-hidden":"true"}),"Apps"]}),(0,s.jsx)("ul",{className:"rs-apps",children:l.map((e,n)=>{var r,a;
2const i=ou(e.avatar,t),o=(null!==(r=e.name)&&void 0!==r?r:"?").slice(0,1).toUpperCase();return(0,s.jsxs)("li",{className:"rs-app",children:[i?(0,s.jsx)("img",{className:"rs-app-av",src:i,alt:"","aria-hidden":"true"}):(0,s.jsx)("span",{className:"rs-app-av rs-app-tile","data-app":(null!==(a=e.name)&&void 0!==a?a:"").toLowerCase(),"aria-hidden":"true",children:o}),e.name]},`app-${n}`)})})]})]})},G=()=>{var t,n;const r=null!==(t=null==k?void 0:k.activeChannel)&&void 0!==t?t:"channel",a=null!==(n=null==e?void 0:e.composerPlaceholder)&&void 0!==n?n:`Message ${r}`;return(null==e?void 0:e.showComposer)||(null==e?void 0:e.composerPlaceholder)?(0,s.jsxs)("div",{className:"rs-composer","aria-hidden":"true",children:[(0,s.jsxs)("div",{className:"rs-composer-toolbar",children:[(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"bold"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"italic"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"strikethrough"})}),(0,s.jsx)("span",{className:"rs-tool-sep"}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"link"})}),(0,s.jsx)("span",{className:"rs-tool-sep"}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"list-ordered"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"list-bullet"})}),(0,s.jsx)("span",{className:"rs-tool-sep"}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"code"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"code-block"})})]}),(0,s.jsx)("div",{className:"rs-composer-input",children:a}),(0,s.jsxs)("div",{className:"rs-composer-footer",children:[(0,s.jsxs)("span",{className:"rs-composer-footer-tools",children:[(0,s.jsx)("span",{className:"rs-tool rs-tool-plus",children:(0,s.jsx)(mu,{name:"footer-plus"})}),(0,s.jsxs)("span",{className:"rs-composer-footer-group",children:[(0,s.jsx)("span",{className:"rs-tool rs-tool-formatting",children:(0,s.jsx)(mu,{name:"footer-formatting"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"footer-emoji"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"footer-mention"})}),(0,s.jsx)("span",{className:"rs-tool-sep"}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"footer-video"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"footer-mic"})}),(0,s.jsx)("span",{className:"rs-tool-sep"}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"footer-shortcut"})})]})]}),(0,s.jsx)("span",{className:"rs-composer-send",children:(0,s.jsx)(mu,{name:"send"})})]})]}):null};if("terminal"===g){const n=null!==(p=null==e?void 0:e.terminal)&&void 0!==p?p:{},r=Array.isArray(n.lines)?n.lines:[],a=Array.isArray(n.statusRows)?n.statusRows:[],i=ou(n.logoUrl,t);return(0,s.jsx)("div",{className:"runneth-slack runneth-slack-terminal",children:(0,s.jsxs)("div",{className:"rs-terminal-window",children:[(0,s.jsxs)("div",{className:"rs-terminal-bar",children:[(0,s.jsxs)("div",{className:"rs-terminal-controls","aria-hidden":"true",children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{}),(0,s.jsx)("span",{})]}),n.title&&(0,s.jsx)("div",{className:"rs-terminal-title",children:n.title}),n.badge&&(0,s.jsx)("div",{className:"rs-terminal-badge",children:n.badge})]}),(0,s.jsxs)("div",{className:"rs-terminal-body",children:[(0,s.jsx)("div",{className:"rs-terminal-lines",children:r.map((e,t)=>O(e,`line-${t}`))}),(0,s.jsxs)("div",{className:"rs-terminal-brand",children:[i&&(0,s.jsx)("img",{className:"rs-terminal-logo",src:i,alt:null!==(m=n.logoAlt)&&void 0!==m?m:"","aria-hidden":!n.logoAlt||void 0,loading:"lazy"}),n.version&&(0,s.jsx)("div",{className:"rs-terminal-version",children:n.version})]}),a.length>0&&(0,s.jsx)("div",{className:"rs-terminal-status",children:a.map((e,t)=>{var n;return(0,s.jsxs)("div",{className:"rs-terminal-status-row",children:[(0,s.jsx)("span",{className:"rs-terminal-check",children:null!==(n=e.check)&&void 0!==n?n:""}),e.label&&(0,s.jsx)("span",{className:"rs-terminal-text-muted",children:e.label}),P(e.segments,`status-${t}`)]},`status-${t}`)})}),O(n.bottomPrompt,"bottom-prompt")]})]})})}if("iphone"===g)return(0,s.jsx)("div",{className:"runneth-slack runneth-slack-iphone",children:(0,s.jsxs)("div",{className:"rs-device",children:[(0,s.jsx)("div",{className:"rs-screen",children:M}),_&&(0,s.jsx)("img",{className:"rs-frame",src:_,alt:"","aria-hidden":"true"})]})});if("laptop"===g)return(0,s.jsx)("div",{className:"runneth-slack runneth-slack-laptop",children:(0,s.jsx)("div",{className:"rs-laptop",children:(0,s.jsxs)("div",{className:"rs-chrome",children:[k&&(0,s.jsxs)("aside",{className:"rs-sidebar",children:[k.name&&(0,s.jsx)("div",{className:"rs-workspace",children:k.name}),Array.isArray(k.channels)&&(0,s.jsx)("ul",{className:"rs-channels",children:k.channels.map((e,t)=>{const n=lu(e);return(0,s.jsxs)("li",{className:"rs-channel"+(n.name===k.activeChannel?" is-active":""),children:[(0,s.jsx)("span",{className:"rs-hash",children:"#"}),n.name]},`ch-${t}`)})}),Array.isArray(k.apps)&&k.apps.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"rs-sidebar-label",children:"Apps"}),(0,s.jsx)("ul",{className:"rs-apps",children:k.apps.map((e,n)=>{const r=ou(e.avatar,t);return(0,s.jsxs)("li",{className:"rs-app",children:[r?(0,s.jsx)("img",{src:r,alt:"","aria-hidden":"true"}):(0,s.jsx)("span",{className:"rs-app-dot","aria-hidden":"true"}),e.name]},`app-${n}`)})})]})]}),(0,s.jsxs)("div",{className:"rs-main",children:[(null==k?void 0:k.activeChannel)&&(0,s.jsxs)("div",{className:"rs-channel-head",children:[(0,s.jsx)("span",{className:"rs-hash",children:"#"}),k.activeChannel]}),M]})]})})});if("desktop"===g){const n=ou(null==e?void 0:e.headingSlackIconUrl,t);return(0,s.jsxs)("div",{className:"runneth-slack runneth-slack-desktop",children:[(null==e?void 0:e.heading)&&(0,s.jsx)("h2",{className:"rs-desktop-heading",children:uu(e.heading,n)}),(0,s.jsx)("div",{className:"rs-desktop-window",children:(0,s.jsxs)("div",{className:"rs-chrome",children:[(0,s.jsx)("nav",{className:"rs-rail","aria-hidden":"true",children:F.map((e,t)=>(0,s.jsxs)("span",{className:`rs-rail-item${0===t?" is-active":""}${e.asset?" has-asset":""}`,children:[e.badge?(0,s.jsxs)("span",{className:"rs-rail-alert",children:[(0,s.jsx)("span",{className:"rs-rail-badge-row",children:(0,s.jsx)("span",{className:"rs-rail-badge",children:e.badge})}),(0,s.jsx)("span",{className:`rs-rail-icon rs-rail-icon-${e.icon}`,children:e.asset?(0,s.jsx)("img",{className:"rs-rail-img",src:e.asset,alt:"","aria-hidden":"true",loading:"lazy"}):(0,s.jsx)(mu,{name:e.icon})})]}):(0,s.jsx)("span",{className:`rs-rail-icon rs-rail-icon-${e.icon}`,children:"more"===e.icon?(0,s.jsxs)("span",{className:"rs-rail-more-dots","aria-hidden":"true",children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{}),(0,s.jsx)("span",{})]}):e.asset?(0,s.jsx)("img",{className:"rs-rail-img",src:e.asset,alt:"","aria-hidden":"true",loading:"lazy"}):(0,s.jsx)(mu,{name:e.icon})}),(0,s.jsx)("span",{className:"rs-rail-label",children:e.label})]},`rail-${t}`))}),q(),(0,s.jsxs)("div",{className:"rs-main",children:[(null==e?void 0:e.showChannelHeader)&&(null==k?void 0:k.activeChannel)?(0,s.jsx)("header",{className:"rs-desktop-channel-head",children:(0,s.jsxs)("span",{className:"rs-desktop-channel-title",children:[(0,s.jsx)("span",{className:"rs-hash","aria-hidden":"true",children:"#"}),k.activeChannel]})}):null,(0,s.jsxs)("nav",{className:"rs-tabs","aria-hidden":"true",children:[H.map((e,t)=>(0,s.jsxs)("span",{className:"rs-tab"+(0===t?" is-active":""),children:[e.asset?(0,s.jsx)("img",{className:"rs-tab-ic rs-tab-img",src:e.asset,alt:"","aria-hidden":"true",loading:"lazy"}):(0,s.jsx)(mu,{name:e.icon,className:"rs-tab-ic"}),e.label]},`tab-${t}`)),(0,s.jsx)("span",{className:"rs-tab-plus",children:z?(0,s.jsx)("img",{className:"rs-tab-plus-img",src:z,alt:"","aria-hidden":"true",loading:"lazy"}):(0,s.jsx)(mu,{name:"plus"})})]}),M,G()]})]})})]})}if("ipad"===g){const n=Array.isArray(null==k?void 0:k.channels)?k.channels:[],r=Array.isArray(null==k?void 0:k.apps)?k.apps:[],a=null!==(f=null==k?void 0:k.activeChannel)&&void 0!==f?f:"",i=ou(null==e?void 0:e.wallpaper,t),o=[{label:"Home",icon:"home"},{label:"DMs",icon:"dm"},{label:"Activity",icon:"activity"},{label:"Files",icon:"files"},{label:"More",icon:"more"}],l=[{label:"Threads",icon:"threads"},{label:"Huddles",icon:"huddles"},{label:"Recap",icon:"recap"},{label:"Drafts & sent",icon:"drafts"}],c=["Messages","Add canvas","Files","Pins"];return(0,s.jsx)("div",{className:"runneth-slack runneth-slack-ipad",children:(0,s.jsx)("div",{className:"rs-ipa
2d",children:(0,s.jsx)("div",{className:"rs-ipad-screen",style:i?{backgroundImage:`url(${i})`}:void 0,children:(0,s.jsxs)("div",{className:"rs-chrome",children:[(0,s.jsx)("nav",{className:"rs-rail","aria-hidden":"true",children:o.map((e,t)=>(0,s.jsxs)("span",{className:"rs-rail-item"+(0===t?" is-active":""),children:[(0,s.jsx)("span",{className:"rs-rail-icon",children:(0,s.jsx)(mu,{name:e.icon})}),(0,s.jsx)("span",{className:"rs-rail-label",children:e.label})]},`rail-${t}`))}),(0,s.jsxs)("aside",{className:"rs-sidebar",children:[(0,s.jsxs)("div",{className:"rs-workspace",children:[(0,s.jsx)("span",{className:"rs-workspace-name",children:null!==(v=null==k?void 0:k.name)&&void 0!==v?v:"Slack"}),(0,s.jsxs)("span",{className:"rs-workspace-actions","aria-hidden":"true",children:[(0,s.jsx)(mu,{name:"kebab",className:"rs-ws-ic"}),(0,s.jsx)(mu,{name:"drafts",className:"rs-ws-ic"})]})]}),(0,s.jsx)("ul",{className:"rs-nav",children:l.map((e,t)=>(0,s.jsxs)("li",{className:"rs-nav-item",children:[(0,s.jsx)(mu,{name:e.icon,className:"rs-nav-ic"}),e.label]},`nav-${t}`))}),(0,s.jsxs)("div",{className:"rs-sidebar-label",children:[(0,s.jsx)("span",{className:"rs-caret","aria-hidden":"true"}),"Channels"]}),(0,s.jsx)("ul",{className:"rs-channels",children:n.map((e,t)=>{const n=lu(e);return(0,s.jsxs)("li",{className:`rs-channel${n.name===a?" is-active":""}${n.unread?" is-unread":""}`,children:[n.private?(0,s.jsx)(mu,{name:"lock",className:"rs-ch-ic"}):(0,s.jsx)("span",{className:"rs-hash","aria-hidden":"true",children:"#"}),n.name]},`ch-${t}`)})}),r.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"rs-sidebar-label",children:[(0,s.jsx)("span",{className:"rs-caret","aria-hidden":"true"}),"Apps"]}),(0,s.jsx)("ul",{className:"rs-apps",children:r.map((e,n)=>{var r,a;const i=ou(e.avatar,t),o=(null!==(r=e.name)&&void 0!==r?r:"?").slice(0,1).toUpperCase();return(0,s.jsxs)("li",{className:"rs-app",children:[i?(0,s.jsx)("img",{className:"rs-app-av",src:i,alt:"","aria-hidden":"true"}):(0,s.jsx)("span",{className:"rs-app-av rs-app-tile","data-app":(null!==(a=e.name)&&void 0!==a?a:"").toLowerCase(),"aria-hidden":"true",children:o}),e.name]},`app-${n}`)})})]})]}),(0,s.jsxs)("div",{className:"rs-main",children:[(0,s.jsxs)("header",{className:"rs-channel-head",children:[(0,s.jsxs)("span",{className:"rs-channel-title",children:[(0,s.jsx)("span",{className:"rs-hash","aria-hidden":"true",children:"#"}),a]}),(0,s.jsxs)("span",{className:"rs-head-actions","aria-hidden":"true",children:[(0,s.jsx)(mu,{name:"huddle",className:"rs-head-ic"}),(0,s.jsx)(mu,{name:"bell",className:"rs-head-ic"}),(0,s.jsx)(mu,{name:"search",className:"rs-head-ic"}),(0,s.jsx)(mu,{name:"kebab",className:"rs-head-ic"})]})]}),(0,s.jsxs)("nav",{className:"rs-tabs","aria-hidden":"true",children:[c.map((e,t)=>(0,s.jsx)("span",{className:"rs-tab"+(0===t?" is-active":""),children:e},`tab-${t}`)),(0,s.jsx)("span",{className:"rs-tab rs-tab-plus",children:(0,s.jsx)(mu,{name:"plus"})})]}),M,(0,s.jsxs)("div",{className:"rs-composer","aria-hidden":"true",children:[(0,s.jsxs)("div",{className:"rs-composer-toolbar",children:[(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"bold"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"italic"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"strikethrough"})}),(0,s.jsx)("span",{className:"rs-tool-sep"}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"link"})}),(0,s.jsx)("span",{className:"rs-tool-sep"}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"list-ordered"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"list-bullet"})}),(0,s.jsx)("span",{className:"rs-tool-sep"}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"code"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"code-block"})})]}),(0,s.jsxs)("div",{className:"rs-composer-input",children:["Message ",a]}),(0,s.jsxs)("div",{className:"rs-composer-footer",children:[(0,s.jsxs)("span",{className:"rs-composer-footer-tools",children:[(0,s.jsx)("span",{className:"rs-tool rs-tool-plus",children:(0,s.jsx)(mu,{name:"footer-plus"})}),(0,s.jsxs)("span",{className:"rs-composer-footer-group",children:[(0,s.jsx)("span",{className:"rs-tool rs-tool-formatting",children:(0,s.jsx)(mu,{name:"footer-formatting"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"footer-emoji"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"footer-mention"})}),(0,s.jsx)("span",{className:"rs-tool-sep"}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"footer-video"})}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"footer-mic"})}),(0,s.jsx)("span",{className:"rs-tool-sep"}),(0,s.jsx)("span",{className:"rs-tool",children:(0,s.jsx)(mu,{name:"footer-shortcut"})})]})]}),(0,s.jsx)("span",{className:"rs-composer-send",children:(0,s.jsx)(mu,{name:"send"})})]})]})]})]})})})})}return(0,s.jsx)("div",{className:"runneth-slack runneth-slack-bare",children:M})}
2,vu=({versionName:e,data:t,baseUrl:n,eyebrow:r,title:a})=>{const i=(t&&"string"==typeof t.lead?t.lead:"")||"";return Boolean(r||a||i)?(0,s.jsxs)("div",{className:"runneth-slack-section",children:[(0,s.jsxs)("div",{className:"runneth-slack-head",children:[r&&(0,s.jsx)("p",{className:"rs-kicker",children:r}),a&&(0,s.jsx)("h2",{className:"rs-h",children:a}),i&&(0,s.jsx)("p",{className:"rs-lead",children:i})]}),(0,s.jsx)(fu,{data:t,baseUrl:n})]}):(0,s.jsx)(fu,{data:t,baseUrl:n})},gu=[{id:"file-system",title:"Your file system",body:"Runneth has a real filesystem with your company's memory, brand context, saved preferences, and a per-customer configuration that's unique, secure, and owned by you.",position:"left-top"},{id:"persistent-memory",title:"Persistent memory",body:"Runneth is one brain across your entire team. Nothing lives in a private chat. All context, previous team decisions, and new insights are stored, referenced, and remembered every time you open a new chat.",position:"right-middle"},{id:"tools-integrations",title:"Tools and integrations",body:"With your own machine, Runneth can connect to everything: your Motion data, Notion, Asana, your asset library. It can do real work just like an employee with access to internal systems.",position:"left-bottom"}],bu=({data:e,baseUrl:t=""})=>{const n=Wc("string"==typeof(null==e?void 0:e.illustrationUrl)?e.illustrationUrl:null,t),r="string"==typeof(null==e?void 0:e.illustrationAlt)?e.illustrationAlt:"Exploded Runneth machine stack",a=(e=>{if(!Array.isArray(e))return gu;const t=e.map((e,t)=>{if(!e||"object"!=typeof e)return null;const n=e,r="string"==typeof n.title?n.title:"",a="string"==typeof n.body?n.body:"",s=(e=>"left-top"===e||"right-middle"===e||"left-bottom"===e)(n.position)?n.position:null;return r&&a&&s?{id:"string"==typeof n.id?n.id:`callout-${t}`,title:r,body:a,position:s}:null}).filter(e=>null!==e);return t.length>0?t:gu})(null==e?void 0:e.callouts);return(0,s.jsxs)("div",{className:"runneth-machine-stack",children:[(0,s.jsx)("div",{className:"runneth-machine-art","aria-hidden":!n,children:n?(0,s.jsx)("img",{className:"runneth-machine-img",src:n,alt:r,loading:"lazy"}):(0,s.jsx)("div",{className:"runneth-machine-placeholder","aria-label":r})}),a.map(e=>(0,s.jsxs)("section",{className:`runneth-machine-callout runneth-machine-callout-${e.position}`,children:[(0,s.jsx)("h3",{children:e.title}),(0,s.jsx)("p",{children:e.body})]},e.id))]})},yu=({versionName:e,data:t,baseUrl:n})=>(0,s.jsx)(bu,{data:t,baseUrl:n}),xu=({data:e})=>{var t,n;const r=e,a=Array.isArray(r)?r:null!==(n=null!==(t=null==r?void 0:r.columns)&&void 0!==t?t:null==r?void 0:r.items)&&void 0!==n?n:[];return a.length?(0,s.jsx)("div",{className:"rn-flashmeta",children:a.map((e,t)=>{const n=Array.isArray(e.content)?e.content[0]:e.n,r=Array.isArray(e.content)?e.content[1]:e.l;return(0,s.jsxs)("div",{className:"rn-flashmeta-col",style:{animationDelay:.12*t+"s"},children:[(0,s.jsx)("div",{className:"rn-flashmeta-n",children:n}),(0,s.jsx)("div",{className:"rn-flashmeta-l",children:r})]},t)})}):null},wu=["How many ads did we ship this week?","What personas had the lowest CAC this month?","What are competitors testing right now?"],_u=(e,t)=>"number"==typeof e&&Number.isFinite(e)&&e>=0?e:t,ku=({data:e,baseUrl:t=""})=>{var r;const a="string"==typeof(null==e?void 0:e.heading)?e.heading:"What can I answer for you?",i=(0,n.useMemo)(()=>(e=>{if(!Array.isArray(e))return wu;const t=e.filter(e=>"string"==typeof e&&e.trim().length>0);return t.length>0?t:wu})(null==e?void 0:e.prompts),[null==e?void 0:e.prompts]),o=null!==(r=i[0])&&void 0!==r?r:"",l=Wc("string"==typeof(null==e?void 0:e.backgroundUrl)?e.backgroundUrl:null,t),c=_u(null==e?void 0:e.typingSpeedMs,24),u=_u(null==e?void 0:e.holdMs,900),d=_u(null==e?void 0:e.sendHoldMs,260),[h,p]=(0,n.useState)(0),[m,f]=(0,n.useState)(o),[v,g]=(0,n.useState)("holding"),[b,y]=(0,n.useState)(!1),[x,w]=(0,n.useState)(!1),_=(0,n.useRef)(null);return(0,n.useEffect)(()=>{var e;if("undefined"==typeof window)return;const t=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>y(t.matches);return n(),null===(e=t.addEventListener)||void 0===e||e.call(t,"change",n),(
2)=>{var e;return null===(e=t.removeEventListener)||void 0===e?void 0:e.call(t,"change",n)}},[]),(0,n.useEffect)(()=>{p(0),f(o),g("holding")},[o]),(0,n.useEffect)(()=>{const e=_.current;if(!e||"undefined"==typeof window)return;if(!("IntersectionObserver"in window))return void w(!0);const t=new IntersectionObserver(([e])=>w(e.isIntersecting),{threshold:.25});return t.observe(e),()=>t.disconnect()},[]),(0,n.useEffect)(()=>{var e;if(!x||b||0===i.length)return;const t=null!==(e=i[h])&&void 0!==e?e:o;let n;return"holding"===v?n=window.setTimeout(()=>g("sending"),u):"sending"===v?n=window.setTimeout(()=>{f(""),p(e=>(e+1)%i.length),g("typing")},d):"typing"===v&&(n=window.setTimeout(()=>{m.length<t.length?f(t.slice(0,m.length+1)):g("holding")},c)),()=>{void 0!==n&&window.clearTimeout(n)}},[m,o,u,x,v,h,i,b,d,c]),(0,s.jsx)("div",{className:"runneth-prompt",ref:_,children:(0,s.jsx)("div",{className:"runneth-prompt-panel",style:l?{backgroundImage:`url(${l})`}:void 0,children:(0,s.jsxs)("div",{className:"runneth-prompt-content",children:[(0,s.jsx)("h2",{children:a}),(0,s.jsx)("div",{className:"runneth-prompt-input-slot",children:(0,s.jsx)("div",{className:"runneth-prompt-input-shell",children:(0,s.jsx)("div",{className:"runneth-prompt-input-banner",children:(0,s.jsxs)("div",{className:"runneth-prompt-input-inner",children:[(0,s.jsxs)("div",{className:"runneth-prompt-copy",children:[(0,s.jsx)("span",{className:"runneth-prompt-plus","aria-hidden":"true"}),(0,s.jsxs)("span",{className:"runneth-prompt-text",children:[m,!b&&"typing"===v&&(0,s.jsx)("span",{className:"runneth-prompt-caret","aria-hidden":"true"})]})]}),(0,s.jsxs)("div",{className:"runneth-prompt-actions",children:[(0,s.jsx)("button",{className:"runneth-prompt-action runneth-prompt-mic",type:"button","aria-label":"Voice input",tabIndex:-1,children:(0,s.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",children:[(0,s.jsx)("path",{d:"M12 14.5a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v5.5a3 3 0 0 0 3 3Z"}),(0,s.jsx)("path",{d:"M6.5 11.5a5.5 5.5 0 0 0 11 0M12 17v3M9.5 20h5"})]})}),(0,s.jsx)("button",{className:"runneth-prompt-action runneth-prompt-send "+("sending"===v?"is-sending":""),type:"button","aria-label":"Send prompt",tabIndex:-1,children:(0,s.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",children:[(0,s.jsx)("path",{d:"M12 19V5"}),(0,s.jsx)("path",{d:"M6.75 10.25 12 5l5.25 5.25"})]})})]})]})})})})]})})})},Nu=({versionName:e,data:t,baseUrl:n})=>(0,s.jsx)(ku,{data:t,baseUrl:n}),Eu=({cubeSize:e=230})=>{const t=(0,n.useRef)(null),r=(0,n.useRef)(null),a=(0,n.useRef)(null),i=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useEffect)(()=>{const e=t.current;if(!e)return;const n=e.getContext("2d");if(!n)return;const s=r.current,l=a.current,c="function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;let u=0,d=0,h=1,p=11;const m=()=>(p=1103515245*p+12345&2147483647,p/2147483647),f=.36,v=(e,t)=>{const n=e-.5,r=t-.46,a=Math.atan2(r,n),s=1+.07*Math.sin(7*a)+.04*Math.sin(3*a),i=e-.5,o=t-.83;return!(!(n*n/(f*f)+r*r/.09<=s*s)&&!(i*i/.0144+o*o/(.07*.07)<=1)||Math.abs(n)<.014&&r<.06)},g=[];let b=0;for(;g.length<300&&b<8e4;){b++;const e=m(),t=.06+.9*m();if(!v(e,t))continue;const n=Math.hypot((e-.5)/f,(t-.46)/.3),r=Math.min(1,.82*n+.18*m());g.push({x:e,y:t,birth:r,r:1.5+2.7*m(),blue:m()<.15,ph:6.28*m()})}const y=[];for(let e=0;e<g.length;e++){const t=[];for(let n=0;n<g.length;n++){if(n===e)continue;const r=g[e].x-g[n].x,a=g[e].y-g[n].y;t.push([r*r+a*a,n])}t.sort((e,t)=>e[0]-t[0]);const n=4+(m()<.6?2:0);for(let r=0;r<n&&r<t.length;r++)t[r][1]>e&&t[r][0]<.026&&y.push([e,t[r][1],m()<.24])}const x=["Brand voice","Slack connected","Customer reviews","Your KPIs","Meta Ads connected","Media buyer","Winning hooks","TikTok connected","Benchmarks","Lifecycle marketer","Google Drive connected","Attribution windows","Graphic designer","Naming conventions","HubSpot connected","Copywriter","Personas","Competitor watch","Growth lead","Klaviyo connected","Creative QA","Customer research analyst","Performance analyst","Email analyst","White-space map","Notion connected","Asana connected","Daily reports","Creative dashboard","Closed-loop pipeline","Institutional memory"],w=g.map((e,t)=>[e.birth,t]).sort((e,t)=>
2e[0]-t[0]);for(let e=0;e<x.length;e++){const t=.03+e/(x.length-1)*.92,n=w[Math.floor(t*(w.length-1))][1];g[n].label=x[e]}const _=()=>{h=Math.min(2,window.devicePixelRatio||1);const t=e.getBoundingClientRect();u=t.width,d=t.height,e.width=u*h,e.height=d*h,n.setTransform(h,0,0,h,0,0)},k=performance.now(),N=(e,t)=>Math.max(0,Math.min(1,(t-e)/.07)),E=[[.1,"Day 1","Your brand voice and first tools, synced."],[.28,"1 Week","Customer language, claims, and your stack connected."],[.52,"Month 1","Winning hooks, benchmarks, and routines take shape."],[.8,"Month 6","Patterns connect across every tool and teammate."],[2,"Year 1","A full institutional brain. Your marketing, compounding."]];let j=-1,S=0;const C=e=>{const t=(e-k)%28200;let r=t<23e3?t/23e3:1;c&&(r=1);let a=1;c||(t<500?a=t/500:t>27100&&(a=Math.max(0,(28200-t)/1100))),n.clearRect(0,0,u,d);for(let e=0;e<y.length;e++){const t=g[y[e][0]],s=g[y[e][1]],i=y[e][2],o=Math.min(N(t.birth,r),N(s.birth,r))*a;o<=0||(n.lineWidth=i?1.9:1.1,n.strokeStyle=(t.blue||s.blue?"rgba(174,225,237,":"rgba(206,255,91,")+((i?.6:.3)*o).toFixed(3)+")",n.beginPath(),n.moveTo(t.x*u,t.y*d),n.lineTo(s.x*u,s.y*d),n.stroke())}for(let t=0;t<g.length;t++){const s=g[t],i=N(s.birth,r)*a;if(i<=0)continue;const o=c?0:1.1*Math.sin(e/1600+s.ph);n.globalAlpha=i,n.fillStyle=s.blue?"#AEE1ED":"#CEFF5B",n.beginPath(),n.arc(s.x*u,s.y*d+o,s.r*(.5+.5*i),0,6.2832),n.fill(),n.globalAlpha=1}n.textAlign="left",(e=>{let t=E.findIndex(t=>e<t[0]);t<0&&(t=E.length-1),t!==j&&(j=t,s&&(s.innerHTML='<span class="rn-bs-dot"></span>'+E[t][1]),l&&(l.textContent=E[t][2]))})(r),S=requestAnimationFrame(C)};let T;window.addEventListener("resize",_),_(),S=requestAnimationFrame(C);const A=i.current,L=(e,t,n)=>Math.max(t,Math.min(n,e));if(!c&&A){let e=64,t=6.4;T=window.setInterval(()=>{e=L(e+(7*Math.random()-3.5),41,89),t=L(t+(.4*Math.random()-.2),4.4,7.7),A.innerHTML=Math.round(e)+"%<br />"+t.toFixed(1)+"GB/8GB<br />47.2GB/60GB"},1700)}const I=o.current;let M=0;const P=e=>{if(!I)return;const t=e.clientX/window.innerWidth-.5,n=e.clientY/window.innerHeight-.5;cancelAnimationFrame(M),M=requestAnimationFrame(()=>{I.style.transform=`rotateX(${(4*-n).toFixed(2)}deg) rotateY(${(6*t).toFixed(2)}deg)`})};return c||window.addEventListener("mousemove",P,{passive:!0}),()=>{cancelAnimationFrame(S),cancelAnimationFrame(M),window.removeEventListener("resize",_),window.removeEventListener("mousemove",P),T&&clearInterval(T)}},[]),(0,s.jsxs)("div",{className:"rn-machine-stage",children:[(0,s.jsx)("div",{className:"rn-stage",style:{"--cube-size":`${e}px`},children:(0,s.jsx)("div",{className:"rn-tilt",ref:o,children:(0,s.jsxs)("div",{className:"rn-cube rn-float",children:[(0,s.jsx)("span",{className:"rn-face rn-faceBack"}),(0,s.jsx)("span",{className:"rn-face rn-faceLeft"}),(0,s.jsx)("span",{className:"rn-face rn-faceBottom"}),(0,s.jsx)("span",{className:"rn-face rn-faceTop",children:(0,s.jsx)("span",{className:"rn-topInset"})}),(0,s.jsx)("span",{className:"rn-face rn-faceRight"}),(0,s.jsxs)("span",{className:"rn-face rn-faceFront",children:[(0,s.jsx)("canvas",{ref:t,className:"rn-brain-canvas",role:"img","aria-label":"The brain growing denser inside your machine over time, from day one to a full brain at year one",width:480,height:521}),(0,s.jsx)("svg",{className:"rn-lettermark",viewBox:"0 24 43 62",fill:"currentColor",children:(0,s.jsx)("path",{d:"M 0.854 85.218 C 0.382 85.218 0 84.836 0 84.365 L 0 25.719 C 0 25.247 0.382 24.865 0.854 24.865 L 18.576 24.865 C 19.047 24.865 19.429 25.247 19.429 25.719 L 19.429 43.778 C 19.429 44.032 19.812 44.074 19.875 43.827 C 24.065 27.298 31.337 23.766 41.572 24.783 C 42.003 24.825 42.328 25.191 42.328 25.623 L 42.328 46.857 C 42.328 47.329 41.946 47.711 41.475 47.711 L 21.839 47.711 C 20.955 47.711 20.239 48.428 20.239 49.312 L 20.239 84.365 C 20.239 84.836 19.856 85.218 19.385 85.218 L 0.854 85.218 Z"})}),(0,s.jsx)("span",{className:"rn-powerDot"}),(0,s.jsxs)("div",{className:"rn-stats",children:[(0,s.jsxs)("div",{className:"rn-statsLabels",children:["CPU",(0,s.jsx)("br",{}),"MEM",(0,s.jsx)("br",{}),"DSK"]}),(0,s.jsxs)("div",{className:"rn-statsValues",ref:i,children:["66%",(0,s.jsx)("br",{}),"6.6GB/8GB",(0,s.jsx)("br",{}),"47.2GB/60GB"]})]})]})]})})}),(0,s.jsxs)("div",{className:"rn-bs",children:[(0,s.jsxs)("p",{className:"rn-bs-label",ref:r,children:[(0,s.jsx)("span",{className:"rn-bs-dot"}),"Day 1"]}
2),(0,s.jsx)("p",{className:"rn-bs-sub",ref:a,children:"Your brand voice and first tools, synced."})]})]})},ju={core:{icon:"🧠",label:"Marketing\nBrain"},nodes:[{name:"Research",tiles:["Reddit","Trustpilot","Twitter"]},{name:"Ideate & Brief",tiles:["Notion","Asana","Jira"]},{name:"Create",tiles:["Canva","Higgsfield","Arcads"]},{name:"Manage Assets",tiles:["Google Drive","Dropbox","Frame.io"]},{name:"Launch & Analyze",tiles:["Meta","TikTok","Google Ads"]},{name:"Enrich",tiles:["Shopify","Stripe","Google Analytics"]}],more:{k:"Plus everything else you can run on",tiles:["Klaviyo","Monday.com","Pinterest","Snapchat"],extra:"+ 30 more"}};function Su(e){var t;const n=e.split(/[^A-Za-z0-9]+/).filter(Boolean);return n.length>=2?(n[0][0]+n[1][0]).toUpperCase():(null!==(t=n[0])&&void 0!==t?t:"").slice(0,2).toUpperCase()}const Cu=({tile:e,baseUrl:t})=>{const n=function(e){var t;return"string"==typeof e?e:null!==(t=e.label)&&void 0!==t?t:""}(e),r=function(e,t){var n;const r="string"==typeof e?null:null!==(n=e.image)&&void 0!==n?n:null;return r?r.startsWith("http")?r:`${t}${r}`:null}(e,t);return(0,s.jsx)("span",{className:"rn-fly-tile",title:n,children:r?(0,s.jsx)("img",{src:r,alt:n,loading:"lazy"}):(0,s.jsx)("span",{className:"rn-fly-mono",children:Su(n)})})},Tu=({data:e,baseUrl:t="",eyebrow:r,title:a})=>{var i,o,l,c;const u=null!==(i=null==e?void 0:e.core)&&void 0!==i?i:ju.core,d=(null==e?void 0:e.nodes)&&e.nodes.length>0?e.nodes:ju.nodes,h=null!==(o=null==e?void 0:e.more)&&void 0!==o?o:ju.more,p=d.map((e,t)=>{const n=(60*t-90)*(Math.PI/180);return{x:Math.round(280+200*Math.cos(n)),y:Math.round(280+200*Math.sin(n))}});return(0,s.jsxs)("div",{className:"rn-fly-section",children:[(r||a)&&(0,s.jsxs)("div",{className:"rn-fly-head",children:[r&&(0,s.jsx)("span",{className:"rn-fly-k",children:r}),a&&(0,s.jsx)("h3",{className:"rn-fly-title",children:a})]}),(0,s.jsx)("div",{className:"rn-fly-wrap",children:(0,s.jsxs)("div",{className:"rn-fly",children:[(0,s.jsxs)("svg",{className:"rn-fly-spokes",viewBox:"0 0 560 560",preserveAspectRatio:"xMidYMid meet","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"280",cy:"280",r:200,fill:"none",stroke:"#3a3220",strokeWidth:"2",strokeDasharray:"4 7"}),p.map((e,t)=>(0,s.jsx)("line",{x1:"280",y1:"280",x2:e.x,y2:e.y,stroke:"rgba(206,255,91,.3)",strokeWidth:"2"},t))]}),(0,s.jsxs)("div",{className:"rn-fly-core",children:[u.icon&&(0,s.jsx)("span",{className:"rn-fly-core-ic",children:u.icon}),u.label&&(0,s.jsx)("span",{className:"rn-fly-core-t",children:u.label.split("\n").map((e,t)=>(0,s.jsxs)(n.Fragment,{children:[t>0&&(0,s.jsx)("br",{}),e]},t))})]}),d.map((e,n)=>{var r;const a=60*n,i=null!==(r=e.tiles)&&void 0!==r?r:[];return(0,s.jsxs)("div",{className:"rn-fly-node",style:{transform:`translate(-50%,-50%) rotate(${a}deg) translateY(-200px) rotate(${-a}deg)`},children:[e.name&&(0,s.jsx)("div",{className:"rn-fly-sname",children:e.name}),(0,s.jsx)("div",{className:"rn-fly-tiles",children:i.map((e,n)=>(0,s.jsx)(Cu,{tile:e,baseUrl:t},n))})]},n)})]})}),h&&((null===(l=h.tiles)||void 0===l?void 0:l.length)||h.k)&&(0,s.jsxs)("div",{className:"rn-fly-more",children:[h.k&&(0,s.jsx)("div",{className:"rn-fly-more-k",children:h.k}),(0,s.jsxs)("div",{className:"rn-fly-more-tiles",children:[(null!==(c=h.tiles)&&void 0!==c?c:[]).map((e,n)=>(0,s.jsx)(Cu,{tile:e,baseUrl:t},n)),h.extra&&(0,s.jsx)("span",{className:"rn-fly-more-txt",children:h.extra})]})]})]})},Au=[{title:"Notion",path:"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v
213.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"},{title:"Google Drive",path:"M12.01 1.485c-2.082 0-3.754.02-3.743.047.01.02 1.708 3.001 3.774 6.62l3.76 6.574h3.76c2.081 0 3.753-.02 3.742-.047-.005-.02-1.708-3.001-3.775-6.62l-3.76-6.574zm-4.76 1.73a789.828 789.861 0 0 0-3.63 6.319L0 15.868l1.89 3.298 1.885 3.297 3.62-6.335 3.618-6.33-1.88-3.287C8.1 4.704 7.255 3.22 7.25 3.214zm2.259 12.653-.203.348c-.114.198-.96 1.672-1.88 3.287a423.93 423.948 0 0 1-1.698 2.97c-.01.026 3.24.042 7.222.042h7.244l1.796-3.157c.992-1.734 1.85-3.23 1.906-3.323l.104-.167h-7.249z"},{title:"Slack",path:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"},{title:"HubSpot",path:"M18.164 7.93V5.084a2.198 2.198 0 001.267-1.978v-.067A2.2 2.2 0 0017.238.845h-.067a2.2 2.2 0 00-2.193 2.193v.067a2.196 2.196 0 001.252 1.973l.013.006v2.852a6.22 6.22 0 00-2.969 1.31l.012-.01-7.828-6.095A2.497 2.497 0 104.3 4.656l-.012.006 7.697 5.991a6.176 6.176 0 00-1.038 3.446c0 1.343.425 2.588 1.147 3.607l-.013-.02-2.342 2.343a1.968 1.968 0 00-.58-.095h-.002a2.033 2.033 0 102.033 2.033 1.978 1.978 0 00-.1-.595l.005.014 2.317-2.317a6.247 6.247 0 104.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 113.215-3.207v.002a3.206 3.206 0 01-3.207 3.207z"},{title:"Meta",path:"M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z"},{title:"TikTok",path:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08
2-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"},{title:"Asana",path:"M18.78 12.653c-2.882 0-5.22 2.336-5.22 5.22s2.338 5.22 5.22 5.22 5.22-2.34 5.22-5.22-2.336-5.22-5.22-5.22zm-13.56 0c-2.88 0-5.22 2.337-5.22 5.22s2.338 5.22 5.22 5.22 5.22-2.338 5.22-5.22-2.336-5.22-5.22-5.22zm12-6.525c0 2.883-2.337 5.22-5.22 5.22-2.882 0-5.22-2.337-5.22-5.22 0-2.88 2.338-5.22 5.22-5.22 2.883 0 5.22 2.34 5.22 5.22z"}],Lu=[-78,-52,-26,0,26,52,78],Iu=({data:e,baseUrl:t="",eyebrow:n,title:r})=>{var a,i,o;const l=null!==(a=null==e?void 0:e.coreImage)&&void 0!==a?a:null,c=l?l.startsWith("http")?l:`${t}${l}`:null,u=null!==(i=null==e?void 0:e.background)&&void 0!==i?i:null,d=u?u.startsWith("http")?u:`${t}${u}`:null,h=null!==(o=null==e?void 0:e.steps)&&void 0!==o?o:[];return(0,s.jsxs)(s.Fragment,{children:[d&&(0,s.jsx)("div",{className:"rn-secarc-bg","aria-hidden":"true",style:{backgroundImage:`url(${d})`}}),(0,s.jsxs)("div",{className:"rn-wrap rn-secarc",children:[n&&(0,s.jsx)("p",{className:"rn-secarc-k",children:n}),r&&(0,s.jsx)("h2",{className:"rn-secarc-h",children:r}),(null==e?void 0:e.lead)&&(0,s.jsx)("p",{className:"rn-secarc-lead",children:e.lead}),(0,s.jsxs)("div",{className:"rn-arc",children:[(0,s.jsx)("div",{className:"rn-arc-core",children:c?(0,s.jsx)("img",{src:c,alt:"Runneth"}):(0,s.jsx)("span",{className:"rn-arc-core-r",children:"R"})}),Au.map((e,t)=>{var n;const r=null!==(n=Lu[t])&&void 0!==n?n:0;return(0,s.jsx)("span",{className:"rn-arc-ai",title:e.title,style:{transform:`rotate(${r}deg) translateY(-210px) rotate(${-r}deg)`},children:(0,s.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:e.title}),(0,s.jsx)("path",{d:e.path})]})},e.title)})]}),(null==e?void 0:e.lock)&&(0,s.jsxs)("div",{className:"rn-arc-lock",children:[(0,s.jsx)("span",{className:"lk",children:"✓"})," ",e.lock]}),h.length>0&&(0,s.jsxs)("div",{className:"rn-flow",children:[(null==e?void 0:e.flowHead)&&(0,s.jsx)("p",{className:"rn-flow-h",children:e.flowHead}),(0,s.jsx)("div",{className:"rn-flow-steps",children:h.map((e,t)=>(0,s.jsxs)("div",{className:"rn-fstep",children:[(0,s.jsx)("span",{className:"num",children:t+1}),(0,s.jsx)("div",{className:"ftext",children:e})]},t))})]})]})]})},Mu=({data:e})=>{var t,r;const a=null!==(t=null==e?void 0:e.items)&&void 0!==t?t:[],i=a.length||1,o=null!==(r=null==e?void 0:e.duration_label)&&void 0!==r?r:"",l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(1),[d,h]=(0,n.useState)(1);return(0,n.useEffect)(()=>{let e=0;const t=()=>{e=0;const t=l.current,n=c.current;if(!t||!n)return;const r=t.getBoundingClientRect(),a=r.height-window.innerHeight,s=a>0?(o=-r.top/a,Math.min(1,Math.max(0,o))):1;var o;n.style.transform=`scaleX(${s})`;const d=Math.min(i,Math.floor(s*i)+1);d!==u.current&&(u.current=d,h(d))},n=()=>{e||(e=requestAnimationFrame(t))};return t(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n),()=>{e&&cancelAnimationFrame(e),window.removeEventListener("scroll",n),window.removeEventListener("resize",n)}},[i]),(0,s.jsx)("div",{className:"abtcsched",ref:l,style:{"--abtcsched-steps":i},children:(0,s.jsxs)("div",{className:"abtcsched-stage",children:[(0,s.jsx)("div",{className:"abtcsched-lines","aria-hidden":"true"}),(0,s.jsxs)("div",{className:"rn-wrap abtcsched-inner",children:[((null==e?void 0:e.title)||(null==e?void 0:e.title_highlight))&&(0,s.jsxs)("h2",{className:"abtcsched-title",children:[null==e?void 0:e.title,(null==e?void 0:e.title)&&(null==e?void 0:e.title_highlight)?" ":"",(null==e?void 0:e.title_highlight)&&(0,s.jsx)("span",{className:"abtcsched-grad",children:e.title_highlight})]}),(null==e?void 0:e.subtitle)&&(0,s.jsx)("p",{className:"abtcsched-sub",children:e.subt
2itle}),a.length>0&&(0,s.jsxs)("div",{className:"abtcsched-frame",children:[(0,s.jsxs)("div",{className:"abtcsched-meter",children:[(0,s.jsxs)("span",{className:"abtcsched-num",children:[String(d).padStart(2,"0"),"/"]}),o&&(0,s.jsx)("span",{className:"abtcsched-weeks",children:o}),(0,s.jsx)("span",{className:"abtcsched-bar",children:(0,s.jsx)("span",{className:"abtcsched-fill",ref:c})})]}),(0,s.jsx)("div",{className:"abtcsched-copies",children:a.map((e,t)=>(0,s.jsxs)("div",{className:"abtcsched-copy"+(t+1===d?" is-active":""),"aria-hidden":t+1!==d,children:[e.title&&(0,s.jsx)("h3",{className:"abtcsched-item-title",children:e.title}),e.body&&(0,s.jsx)("p",{className:"abtcsched-item-body",children:e.body})]},t))})]})]})]})})},Pu=()=>(0,s.jsx)("svg",{className:"abtcspk-arrow",viewBox:"0 0 16.9384 16.9403",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M15.9384 0C16.4906 0 16.9384 0.447715 16.9384 1V14.7412C16.9384 15.2935 16.4906 15.7412 15.9384 15.7412H15.5721C15.0199 15.7412 14.5721 15.2935 14.5721 14.7412V6.45523C14.5721 5.56432 13.495 5.11816 12.865 5.74812L1.96577 16.6474C1.57525 17.0379 0.942081 17.0379 0.551557 16.6474L0.292893 16.3887C-0.0976208 15.9982 -0.0976327 15.3651 0.292867 14.9745L11.1933 4.07329C11.8232 3.44331 11.3771 2.36621 10.4862 2.36621H2.03991C1.48763 2.36621 1.03991 1.9185 1.03991 1.36621V1C1.03991 0.447715 1.48763 0 2.03991 0H15.9384Z",fill:"currentColor"})}),Ou=({versionName:e="",data:t,baseUrl:n="",registerButton:r})=>(0,s.jsxs)("div",{className:`abtcspk ${e}`.trim(),children:[(null==t?void 0:t.title)&&(0,s.jsxs)("h3",{className:"abtcspk-title",children:[(0,s.jsx)(Pu,{}),(0,s.jsx)("span",{className:"abtcspk-title-text",children:t.title})]}),(0,s.jsxs)("div",{className:"abtcspk-rows",children:[(null==t?void 0:t.duration)&&(0,s.jsxs)("div",{className:"abtcspk-row",children:[(0,s.jsx)("span",{className:"abtcspk-chip",children:"Duration"}),(0,s.jsx)("span",{className:"abtcspk-strong",children:t.duration})]}),(null==t?void 0:t.body)&&(0,s.jsx)("p",{className:"abtcspk-body",children:t.body}),(null==t?void 0:t.result)&&(0,s.jsxs)("div",{className:"abtcspk-row abtcspk-row-top",children:[(0,s.jsx)("span",{className:"abtcspk-chip",children:"Result"}),(0,s.jsx)("span",{className:"abtcspk-muted",children:t.result})]}),(null==t?void 0:t.time)&&(0,s.jsxs)("div",{className:"abtcspk-row",children:[(0,s.jsx)("span",{className:"abtcspk-chip",children:"Time"}),(0,s.jsx)("span",{className:"abtcspk-strong",children:t.time})]})]}),r&&(0,s.jsx)("div",{className:"abtcspk-cta",children:(0,s.jsx)(Al,{baseUrl:n,registerButton:r})})]}),Ru=(e,t)=>{if(e)return e.startsWith("http")?e:`${t}${e}`},Du=({html:e})=>e?(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}):null,Fu=({card:e,baseUrl:t})=>{var n,r;const a=Ru(e.avatar,t);return(0,s.jsxs)("div",{className:`frw-hero-slack frw-hp-${null!==(n=e.pos)&&void 0!==n?n:"tl"}`,children:[a&&(0,s.jsx)("img",{className:"frw-hs-av",src:a,alt:e.name||""}),(0,s.jsxs)("div",{className:"frw-hs-body",children:[(0,s.jsxs)("div",{className:"frw-hs-head",children:[e.name&&(0,s.jsx)("span",{className:"frw-hs-name",children:e.name}),e.app&&(0,s.jsx)("span",{className:"frw-hs-app",children:"App"}),e.time&&(0,s.jsx)("span",{className:"frw-hs-time",children:e.time})]}),e.body&&(0,s.jsx)("div",{className:"frw-hs-text",children:(0,s.jsx)(Du,{html:e.body})}),e.scale&&(0,s.jsxs)("div",{className:"frw-hs-scale",children:[(0,s.jsxs)("div",{className:"frw-hs-scale-info",children:[e.scale.title&&(0,s.jsx)("div",{className:"frw-hs-scale-title",children:e.scale.title}),(null!==(r=e.scale.lines)&&void 0!==r?r:[]).map(e=>(0,s.jsx)("div",{className:"frw-hs-scale-line",children:e},e))]}),e.scale.thumb&&(0,s.jsx)("img",{className:"frw-hs-scale-thumb",src:Ru(e.scale.thumb,t),alt:""})]})]})]})},Uu=({card:e,baseUrl:t})=>{var n;const r=Ru(e.image,t),a=Ru(e.avatar,t);return(0,s.jsxs)("div",{className:`frw-hero-ugc frw-hp-${null!==(n=e.pos)&&void 0!==n?n:"bl"}`,children:[r&&(0,s.jsx)("img",{src:r,alt:""}),(0,s.jsxs)("div",{className:"frw-ugc-msg",children:[a&&(0,s.jsx)("img",{className:"frw-hs-av",src:a,alt:e.name||""}),(0,s.jsxs)("div",{className:"frw-hs-body",children:[(0,s.jsxs)("div",{className:"frw-hs-head",children:[e.name&&(0,s.jsx)("span",{className:"frw-hs-name",children:e.name}
2),e.time&&(0,s.jsx)("span",{className:"frw-hs-time",children:e.time})]}),e.body&&(0,s.jsx)("div",{className:"frw-hs-text",children:(0,s.jsx)(Du,{html:e.body})})]})]})]})},$u=({versionName:e,data:t,title:r,baseUrl:a="",registerButton:i})=>{var o,l,c;const d=(0,n.useRef)(null),h=null!==(o=null==t?void 0:t.cards)&&void 0!==o?o:[],p=(null===(l=null==t?void 0:t.howItWorksUrl)||void 0===l?void 0:l.trim())||"",m=(null===(c=null==t?void 0:t.howItWorksLabel)||void 0===c?void 0:c.trim())||"See how it works",[f,v]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!u()||!d.current)return;const e=d.current.closest(".runneth-site");if(!e)return;const t=()=>{const t=d.current;if(!t)return;const n=window.innerHeight,r=t.getBoundingClientRect(),a=.5*n,s=Math.min(1,Math.max(0,(a-r.bottom)/(a-0)));e.style.setProperty("--runneth-nav-opacity",String(s)),e.style.setProperty("--runneth-nav-transform",`translateY(${-100*(1-s)}%)`)};t();const n=()=>requestAnimationFrame(t);return window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n,{passive:!0}),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n),e.style.removeProperty("--runneth-nav-opacity"),e.style.removeProperty("--runneth-nav-transform")}},[]),(0,n.useEffect)(()=>{if(!f)return;const e=e=>{"Escape"===e.key&&v(!1)},t=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",e),()=>{document.body.style.overflow=t,document.removeEventListener("keydown",e)}},[f]);const g=!!i||!!p;return(0,s.jsxs)("div",{className:`frw-hero ${null!=e?e:""}`.trim(),ref:d,children:[(0,s.jsxs)("div",{className:"frw-hero-inner",children:[r&&(0,s.jsx)("h1",{children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:r})}),(null==t?void 0:t.subtitle)&&(0,s.jsx)("p",{className:"frw-hero-sub",children:t.subtitle}),g&&(0,s.jsxs)("div",{className:"frw-hero-actions",children:[i&&(0,s.jsx)(Al,{baseUrl:a,registerButton:i}),p&&(0,s.jsx)("button",{type:"button",className:"frw-hero-ghost",onClick:()=>v(!0),children:m})]})]}),(0,s.jsx)("div",{className:"frw-hero-props",children:h.map((e,t)=>"ugc"===e.type?(0,s.jsx)(Uu,{card:e,baseUrl:a},t):(0,s.jsx)(Fu,{card:e,baseUrl:a},t))}),f&&u()&&(0,vo.createPortal)((0,s.jsx)("div",{className:"frw-lb",role:"dialog","aria-modal":"true","aria-label":m,onClick:()=>v(!1),children:(0,s.jsxs)("div",{className:"frw-lb-frame",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{type:"button",className:"frw-lb-close","aria-label":"Close",onClick:()=>v(!1),children:"✕"}),(0,s.jsx)("iframe",{title:m,src:p})]})}),document.body)]})},Bu=({versionName:e,data:t})=>{var n;const r=null!==(n=null==t?void 0:t.rows)&&void 0!==n?n:[];return(0,s.jsx)("div",{className:`frw-fs ${null!=e?e:""}`.trim(),children:(0,s.jsxs)("div",{className:"frw-fs-window",children:[(0,s.jsxs)("div",{className:"frw-fs-bar",children:[(0,s.jsx)("span",{className:"frw-fs-dot"}),(0,s.jsx)("span",{className:"frw-fs-dot"}),(0,s.jsx)("span",{className:"frw-fs-dot"}),(null==t?void 0:t.title)&&(0,s.jsx)("span",{className:"frw-fs-name",children:t.title})]}),(0,s.jsx)("div",{className:"frw-fs-body",children:r.map((e,t)=>{var n,r;return(0,s.jsx)("div",{className:`frw-fs-row frw-fs-${"file"===e.kind?"file":"folder"}${e.indent?` l${e.indent}`:""}`,style:{animationDelay:40*t+"ms"},children:"folder"===e.kind?`📁 ${null!==(n=e.label)&&void 0!==n?n:""}`:e.label},`${null!==(r=e.label)&&void 0!==r?r:"row"}-${t}`)})})]})})},Hu=({versionName:e,data:t,baseUrl:n=""})=>{var r;const a=null!==(r=null==t?void 0:t.items)&&void 0!==r?r:[];return(0,s.jsx)("div",{className:`frw-int ${null!=e?e:""}`.trim(),children:(0,s.jsx)("div",{className:"frw-int-wrap",children:(0,s.jsx)("div",{className:"frw-int-scroll",children:(0,s.jsx)("div",{className:"frw-int-grid",children:a.map((e,t)=>{var r;const a=((e,t)=>{if(e)return e.startsWith("http")?e:`${t}${e}`})(e.icon,n);return(0,s.jsxs)("div",{className:"frw-int-card"+(e.badge?" is-featured":""),children:[(0,s.jsxs)("div",{className:"frw-int-top",children:[(0,s.jsx)("div",{className:"frw-int-ic",children:a&&(0,s.jsx)("img",{src:a,alt:e.name||""})}),e.badge&&(0,s.jsx)("span",{className:"frw-int-rec",children:e.badge})]}),(0,s.jsx)("div",{className:"frw-int-name",children:e.name}),(0,s.jsx)("div",{className:"frw-int-cat",children:e.category})]}
2,`${null!==(r=e.name)&&void 0!==r?r:"int"}-${t}`)})})})})})},zu=(e,t)=>{if(e)return e.startsWith("http")?e:`${t}${e}`},qu=({html:e})=>e?(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}):null,Gu=({versionName:e,data:t,baseUrl:r=""})=>{var a;const i=null!==(a=null==t?void 0:t.cards)&&void 0!==a?a:[],[o,l]=(0,n.useState)(0),[c,u]=(0,n.useState)(!0),d=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(i.length<2)return;const e=window.setInterval(()=>{l(e=>(e+1)%i.length)},5e3);return()=>window.clearInterval(e)},[i.length]);const h=zu(null==t?void 0:t.video,r),p=zu(null==t?void 0:t.poster,r);return(0,s.jsx)("div",{className:`frw-ad ${null!=e?e:""}`.trim(),children:(0,s.jsxs)("div",{className:"frw-ad-embed"+(c?" is-playing":""),children:[h&&(0,s.jsx)("video",{ref:d,src:h,poster:p,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"auto",onClick:()=>{const e=d.current;e&&(e.paused?e.play():e.pause())},onPlay:()=>u(!0),onPause:()=>u(!1)}),(0,s.jsx)("button",{className:"frw-ad-play",type:"button","aria-label":"Play video",onClick:e=>{e.stopPropagation();const t=d.current;t&&t.play()}}),(0,s.jsx)("div",{className:"frw-ad-cycle",children:i.map((e,t)=>{var n,a;return(0,s.jsx)("div",{className:`frw-afb-card frw-afb-pos-${null!==(n=e.pos)&&void 0!==n?n:"tl"}${t===o?" is-active":""}`,children:(null!==(a=e.messages)&&void 0!==a?a:[]).map((e,t)=>{const n=zu(e.avatar,r);return(0,s.jsxs)("div",{className:"frw-afb-msg",children:[(0,s.jsx)("div",{className:"frw-afb-avatar",children:n&&(0,s.jsx)("img",{src:n,alt:e.name||""})}),(0,s.jsxs)("div",{className:"frw-afb-body",children:[(0,s.jsxs)("div",{className:"frw-afb-head",children:[e.name&&(0,s.jsx)("span",{className:"frw-afb-name",children:e.name}),e.app&&(0,s.jsx)("span",{className:"frw-afb-app",children:"App"}),e.time&&(0,s.jsx)("span",{className:"frw-afb-time",children:e.time})]}),e.body&&(0,s.jsx)("div",{className:"frw-afb-text",children:(0,s.jsx)(qu,{html:e.body})})]})]},t)})},t)})})]})})},Wu=({versionName:e,data:t,baseUrl:n=""})=>{var r;const a=null!==(r=null==t?void 0:t.rows)&&void 0!==r?r:[];return(0,s.jsxs)("div",{className:`frw-dash ${null!=e?e:""}`.trim(),children:[(0,s.jsxs)("div",{className:"frw-dash-bar",children:[(0,s.jsx)("span",{className:"frw-dash-dot"}),(0,s.jsx)("span",{className:"frw-dash-dot"}),(0,s.jsx)("span",{className:"frw-dash-dot"}),(null==t?void 0:t.windowTitle)&&(0,s.jsx)("span",{className:"frw-dash-title",children:t.windowTitle})]}),(0,s.jsxs)("div",{className:"frw-tad-head",children:[(null==t?void 0:t.heading)&&(0,s.jsx)("span",{className:"frw-tad-title",children:t.heading}),(null==t?void 0:t.range)&&(0,s.jsx)("span",{className:"frw-tad-range",children:t.range})]}),(0,s.jsx)("div",{className:"frw-tad-list",children:a.map((e,t)=>{var r;const a=((e,t)=>{if(e)return e.startsWith("http")?e:`${t}${e}`})(e.thumb,n);return(0,s.jsxs)("div",{className:"frw-tad-row"+(e.featured?" is-featured":""),children:[null!=e.rank&&(0,s.jsx)("span",{className:"frw-tad-rank",children:e.rank}),a&&(0,s.jsx)("img",{className:"frw-tad-thumb",src:a,alt:e.name||""}),(0,s.jsxs)("div",{className:"frw-tad-meta",children:[(0,s.jsx)("div",{className:"frw-tad-name",children:e.name}),e.sub&&(0,s.jsx)("div",{className:"frw-tad-sub",children:e.sub})]}),(0,s.jsxs)("div",{className:"frw-tad-metric",children:[(0,s.jsx)("div",{className:"frw-tad-num",children:e.metric}),e.metricLabel&&(0,s.jsx)("div",{className:"frw-tad-lab",children:e.metricLabel})]})]},`${null!==(r=e.name)&&void 0!==r?r:"ad"}-${t}`)})})]})},Yu=({html:e})=>e?(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}):null,Vu=({versionName:e,data:t,baseUrl:n=""})=>{var r;const a=null!==(r=null==t?void 0:t.rows)&&void 0!==r?r:[];return(0,s.jsxs)("div",{className:`frw-ao ${null!=e?e:""}`.trim(),children:[(0,s.jsxs)("div",{className:"frw-ao-bar",children:[(0,s.jsx)("span",{className:"frw-ao-dot"}),(null==t?void 0:t.title)&&(0,s.jsx)("span",{className:"frw-ao-title",children:t.title})]}),(0,s.jsx)("div",{className:"frw-ao-track",children:a.map((e,t)=>{var r,a;const i="deliver"===e.kind,o=((e,t)=>{if(e)return e.startsWith("http")?e:`${t}${e}`})(null===(r=e.message)||void 0===r?void 0:r.avatar,n);return(0,s.jsxs)("div",{className:"frw-ao-row"+(i?" is-deliver":" is-run"),children:[e.time&&(0,s.jsx)("span",{className:"frw-ao-time",children:e.time}),i&&e.message?(0,s.jsxs)("div",{className:"frw-sl-msg",children:[(0,s.jsx)("div",{className:"frw-sl-av",children:o&&(0,s.jsx)("img",{src:o,alt:e.message.name||""})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"frw-sl-head",children:[e.message.name&&(0,s.jsx)("span",{className:"frw-sl-name",children:e.message.name}),e.message.app&&(0,s.jsx)("span",{className:"frw-sl-app",children:"App"}),e.message.time&&(0,s.jsx)("span",{className:"frw-sl-time",children:e.message.time})]}),e.message.body&&(0,s.jsx)("div",{className:"frw-sl-text",children:(0,s.jsx)(Yu,{html:e.message.body})})]})]}):(0,s.jsxs)("div",{className:"frw-ao-body",children:[(0,s.jsx)("span",{className:"frw-ao-spin"}),e.text,e.tag&&(0,s.jsx)("span",{className:"frw-ao-tag",children:e.tag})]})]},`${null!==(a=e.time)&&void 0!==a?a:"row"}-${t}`)})})]})};i(5140);const Ku=[{label:"CUSTOMERS",left:"50%",top:"4%",size:84,ringSize:108,background:"#AEE1ED"},{label:"CREATIVE",left:"88%",top:"32%",size:84,ringSize:108,background:"#FFFFFF"},{label:"ROUTINES",left:"76%",top:"82%",size:84,ringSize:108,background:"#FFF95C"},{label:"PERFORMANCE",left:"24%",top:"82%",size:100,ringSize:116,background:"#CEFF5B"},{label:"BRAND",left:"12%",top:"32%",size:84,ringSize:108,background:"#CEFF5B"}],Qu=[{role:"HEAD OF GROWTH",text:"@runneth, watch this Loom to learn how we 
2calculate iROAS",avatar:"https://runt-media.motionapp.com/webeth/ultimaitum-avatar-1-bae57.jpg",left:"78%",top:"6%",width:240},{role:"CMO",text:"@runneth, is our messaging hitting? Compare us to competitors.",avatar:"https://runt-media.motionapp.com/webeth/ultimaitum-avatar-2-c7aa5.jpg",left:"-14%",top:"46%",width:230},{role:"DESIGNER",text:"@runneth, can you find product b-roll for our Summer 2026 Collection?",avatar:"https://runt-media.motionapp.com/webeth/ultimaitum-avatar-3-e7f69.jpg",left:"62%",top:"52%",width:240}],Xu=()=>((0,n.useEffect)(()=>{if(document.getElementById("utq-fonts"))return;const e=document.createElement("link");e.id="utq-fonts",e.rel="stylesheet",e.href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Anton&family=Space+Mono:wght@400;700&display=swap",document.head.appendChild(e)},[]),(0,s.jsxs)("div",{className:"utb-wrap",children:[(0,s.jsxs)("div",{className:"utb-stage",children:[(0,s.jsx)("div",{className:"utb-ring","aria-hidden":"true",children:(0,s.jsx)("div",{className:"utb-ring-core"})}),(0,s.jsx)("svg",{className:"utb-orbit",viewBox:"0 0 460 460","aria-hidden":"true",children:(0,s.jsx)("circle",{cx:"230",cy:"230",r:"188",fill:"none",stroke:"rgba(255, 255, 255, 0.45)",strokeWidth:"1.2",strokeDasharray:"4 5.6"})}),(0,s.jsxs)("div",{className:"utb-center",children:[(0,s.jsx)("div",{className:"utb-center-lead",children:"Your Shared"}),(0,s.jsxs)("div",{className:"utb-center-title",children:["Marketing",(0,s.jsx)("br",{}),"Brain"]})]}),Ku.map(e=>(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)("div",{className:"utb-node-ring","aria-hidden":"true",style:{left:e.left,top:e.top,width:e.ringSize,height:e.ringSize}}),(0,s.jsx)("div",{className:"utb-node",style:{left:e.left,top:e.top,width:e.size,height:e.size,background:e.background},children:e.label})]},e.label))]}),Qu.map(e=>(0,s.jsxs)("div",{className:"utb-chip",style:{left:e.left,top:e.top,width:e.width},children:[(0,s.jsx)("img",{src:e.avatar,alt:"",className:"utb-chip-avatar"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"utb-chip-role",children:e.role}),(0,s.jsx)("div",{className:"utb-chip-text",children:e.text})]})]},e.role))]})),Ju=({block:e,baseUrl:t="",gated:n=!1,dates:r=[]})=>{var a,i,o;const l=null!==(i=null===(a=e.animation)||void 0===a?void 0:a.name)&&void 0!==i?i:"",c=null!==(o=e.name)&&void 0!==o?o:"",u=`${l?`${l} - `:""}${null!=c?c:""}`;switch(l){case"2026-creative-benchmarks-hero":return(0,s.jsx)(Vl,{versionName:c,data:e.data});case"creative-benchmarks-2026-shooting-ads":return(0,s.jsx)(Ql,{versionName:c,data:e.data,baseUrl:t});case"2026-creative-strategy-bootcamp-ball":return(0,s.jsx)(Zl,{versionName:c});case"2026-creative-strategy-bootcamp-hero":return(0,s.jsx)(yc,{versionName:c,hero:e.hero,data:e.data,baseUrl:t,gated:n,dates:r});case"2026-creative-strategy-summit-hero":return(0,s.jsx)(Oc,{versionName:c,hero:e.hero,data:e.data,baseUrl:t,gated:n,dates:r});case"2026-creative-strategy-summit-coffee-table":return(0,s.jsx)(Bc,{versionName:c,data:e.data,baseUrl:t});case"runneth-tool-orbit":return(0,s.jsx)(Gc,{versionName:c,data:e.data,baseUrl:t});case"froggy":return(0,s.jsx)(Zc,{versionName:c,data:e.data,baseUrl:t});case"runneth-brain":return(0,s.jsx)(nu,{versionName:c,data:e.data,baseUrl:t});case"runneth-brain-compounds":return(0,s.jsx)(iu,{versionName:c,data:e.data,eyebrow:e.eyebrow,title:e.title});case"runneth-slack-thread":return(0,s.jsx)(vu,{versionName:c,data:e.data,baseUrl:t,eyebrow:e.eyebrow,title:e.title});case"runneth-machine-stack":return(0,s.jsx)(yu,{versionName:c,data:e.data,baseUrl:t});case"flash-meta":return(0,s.jsx)(xu,{versionName:c,data:e.data});case"machine-stage":return(0,s.jsx)(Eu,{data:e.data});case"fly-wheel":return(0,s.jsx)(Tu,{data:e.data,baseUrl:t,eyebrow:e.eyebrow,title:e.title});case"runneth-prompt-input":return(0,s.jsx)(Nu,{versionName:c,data:e.data,baseUrl:t});case"abtc-schedule":return(0,s.jsx)(Mu,{versionName:c,data:e.data});case"abtc-speaker-card":return(0,s.jsx)(Ou,{versionName:c,data:e.data,baseUrl:t,registerButton:e.register_button});case"security-arc":return(0,s.jsx)(Iu,{data:e.data,baseUrl:t,eyebrow:e.eyebrow,title:e.title});case"five-reasons-why-hero":return(0,s.jsx)($u,{versionName:c,data:e.data,title:e.title,baseUrl:t,registerButton:e.register_button});case"file-folder":return(0,s.jsx)(Bu,{versionName:c,data:e.data});case"integrations-list":return(0,s.jsx)(Hu,{versionName:c,data:e.data,baseUrl:t});case"visual-with-thought-bubbles":return(0,s.jsx)(Gu,{versionName:c,data:e.data,baseUrl:t});case"five-reasons-why-2026-08-14-visual-1":return(0,s.jsx)(Wu,{versionName:c,data:e.data,baseUrl:t});case"five-reasons-why-2026-08-14-visual-2":return(0,s.jsx)(Vu,{versionName:c,data:e.data,baseUrl:t});case"ultimaitum-brain":return(0,s.jsx)(Xu,{versionName:c,data:e.data,baseUrl:t});default:return(0,s.jsx)("div",{className:`shared-animation shared-animation-placeholder ${null!=l?l:""} ${null!=c?c:""}`,children:(0,s.jsxs)("span",{children:["ANIMATION",(0,s.jsx)("br",{}),"PLACEHOLDER",(0,s.jsx)("br",{}),u]})})}};i(6744);const Zu=({block:e,baseUrl:t,facade:r=!1})=>{var a,i,o,l,c,u,d,h,p,m,f,v,g,b,y;const w=e.external_video_id,_=null!==(a=e.title)&&void 0!==a?a:"Video",k=e.type,N=(0,n.useRef)(null),[E,j]=(0,n.use
2State)(!1),[S,C]=(0,n.useState)(null),T=null!==(i=e.tags)&&void 0!==i?i:[],A=null!==(o=e.buttons)&&void 0!==o?o:[],L=null!==(u=null===(c=null===(l=e.placeholder_image)||void 0===l?void 0:l[0])||void 0===c?void 0:c.image)&&void 0!==u?u:null;let I=null!==(d=null==L?void 0:L.url)&&void 0!==d?d:null;I&&!I.startsWith("http")&&t&&(I=`${t}${I}`);const M=T.length>0||A.length>0||Boolean(e.body)||Boolean(I),P=e.playback_speed?parseFloat(e.playback_speed.slice(1)):1;let O=null!==(h=e.padding_top)&&void 0!==h?h:void 0;void 0===O&&"wistia"===e.type&&(O="56.25%");const R=!0===e.loop||null==e.loop&&!0===e.autoplay;(0,n.useEffect)(()=>{if("wistia"===k&&!x.querySelector('script[src*="fast.wistia.com"]')){const e=x.createElement("script");if(e){e.src="https://fast.wistia.com/assets/external/E-v1.js",e.async=!0;const t=x.querySelector("body");t&&t.appendChild(e)}}},[k]);const D=null!==(v=null===(f=null===(m=null===(p=e.placeholder_image)||void 0===p?void 0:p[0])||void 0===m?void 0:m.image)||void 0===f?void 0:f.url)&&void 0!==v?v:null;if((0,n.useEffect)(()=>{if(!r||E||D)return;if("wistia"!==k||!w)return;let e=!1;const t=`https://fast.wistia.com/oembed?url=${encodeURIComponent(`https://fast.wistia.com/medias/${w}`)}&format=json`;return fetch(t).then(e=>e.ok?e.json():null).then(t=>{if(e||!(null==t?void 0:t.thumbnail_url))return;const n=String(t.thumbnail_url).replace(/image_crop_resized=\d+x\d+/,"image_crop_resized=1280x720");C(n)}).catch(()=>{}),()=>{e=!0}},[r,E,D,k,w]),!w&&!M&&!e.title)return null;let F=w?(()=>{switch(k){case"wistia":{let t=`https://fast.wistia.net/embed/iframe/${w}?seo=false&videoFoam=true${!1===e.muted?"":"&muted=true"}`;return!0===e.autoplay?t+="&autoPlay=true":!1===e.autoplay&&(t+="&autoPlay=false"),1!==P&&(t+=`&playbackRate=${P}`),R&&(t+="&endVideoBehavior=loop"),!0===e.hide_controls?t+=["controlsVisibleOnLoad=false","playbar=false","playButton=false","smallPlayButton=false","volumeControl=false","fullscreenButton=false","settingsControl=false"].map(e=>`&${e}`).join(""):!1===e.hide_controls&&(t+=["controlsVisibleOnLoad=true","playbar=true","playButton=true","smallPlayButton=true","volumeControl=true","fullscreenButton=true","settingsControl=true"].map(e=>`&${e}`).join("")),t}case"youtube":{let t=`https://www.youtube.com/embed/${w}?rel=0`;return e.playback_speed&&(t+="&enablejsapi=1"),!0===e.autoplay?t+="&autoplay=1":!1===e.autoplay&&(t+="&autoplay=0"),R&&w&&(t+=`&loop=1&playlist=${w}`),t}default:return""}})():"";const U=Boolean(F);r&&E&&F&&(/autoPlay=false/.test(F)?F=F.replace(/autoPlay=false/,"autoPlay=true"):/autoPlay=true|autoplay=1/.test(F)||(F+="youtube"===k?"&autoplay=1":"&autoPlay=true"));const $=null!=I?I:S,B=r&&U&&!E,H=Boolean(e.poster_label)||!I&&M;return(0,s.jsxs)("div",{className:`shared-video ${e.type}`,children:[T.length>0&&(0,s.jsx)("div",{className:"shared-video-tags",children:T.map((e,t)=>{var n;return(0,s.jsx)("span",{className:`shared-video-tag ${e.class?e.class:""}`.trim(),children:e.tag},null!==(n=e.id)&&void 0!==n?n:t)})}),e.title&&(0,s.jsx)("div",{className:"shared-video-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:e.title})}),e.body&&(0,s.jsx)("div",{className:"shared-video-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:e.body})}),B?(0,s.jsx)("button",{type:"button",className:"shared-video__facade",style:$?{backgroundImage:`url(${$})`}:void 0,onClick:()=>j(!0),"aria-label":`Play ${_}`,children:(0,s.jsx)("span",{className:"shared-video__facade-play","aria-hidden":"true"})}):U?(0,s.jsx)("div",{className:"shared-video__responsive-padding",style:{paddingTop:O},children:(0,s.jsx)("div",{className:"shared-video__responsive-wrapper",children:(0,s.jsx)("iframe",{ref:N,src:F,title:_,allow:(()=>{switch(k){case"wistia":return"autoplay; fullscreen; muted";case"youtube":return"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";default:return"autoplay; fullscreen"}})(),className:"shared-video__iframe",allowFullScreen:!0,onLoad:()=>{var t;"youtube"===k&&e.playback_speed&&(null===(t=N.current)||void 0===t?void 0:t.contentWindow)&&N.current.contentWindow.postMessage(JSON.stringify({event:"command",func:"setPlaybackRate",args:[P]}),"*")}})})}):I||M?(0,s.jsxs)("div",{className:"shared-video-placeholder",children:[I&&(0,s.jsx)("img",{className:"shared-video-poster-img",src:I,alt:null!==(y=null===(b=null===(g=e.placeholder_image)||void 0===g?void 0:g[0])||void 0===b?void 0:b.caption)&&void 0!==y?y:""}),H&&(0,s.jsx)("span",{className:"shared-video-play","aria-hidden":"true"}),H&&e.poster_label&&(0,s.jsx)("span",{className:"shared-video-vlabel",children:e.poster_label})]}):null,(A.length>0||e.button_preamble)&&(0,s.jsxs)("div",{className:"shared-video-cta",children:[e.button_preamble&&(0,s.jsx)("p",{className:"shared-video-preamble",children:e.button_preamble}),A.length>0&&(0,s.jsx)("div",{className:"shared-video-buttons",children:A.map((e,n)=>{var r;return(0,s.jsx)(fo,{baseUrl:t,block:e},null!==(r=e.id)&&void 0!==r?r:n)})})]})]})};i(7431);const ed=({baseUrl:e,carousel:t})=>
2{const[r,a]=(0,n.useState)(0),[i,o]=(0,n.useState)(!1),l=t=>{var n,r,a;let s=null!==(n=t.url)&&void 0!==n?n:null===(a=null===(r=t.formats)||void 0===r?void 0:r.large)||void 0===a?void 0:a.url;return s&&!s.includes("http")&&(s=`${e}${s}`),s},c=t.map(e=>({media:e,url:l(e)})).filter(e=>void 0!==e.url);if((0,n.useEffect)(()=>{if(c.length<=1)return;const e=setInterval(()=>{a(e=>(e+1)%c.length),o(!1)},3e3);return()=>clearInterval(e)},[c.length]),(0,n.useEffect)(()=>{o(!1)},[r]),0===c.length)return null;const u=c[r],d=(t=>{var n,r,a,s,i;let o=null!==(a=null===(r=null===(n=t.formats)||void 0===n?void 0:n.small)||void 0===r?void 0:r.url)&&void 0!==a?a:null===(i=null===(s=t.formats)||void 0===s?void 0:s.thumbnail)||void 0===i?void 0:i.url;return o&&!o.includes("http")&&(o=`${e}${o}`),o})(u.media);return(0,s.jsx)("div",{className:"shared-tai-carousel",children:(0,s.jsxs)("div",{className:"shared-tai-carousel-image-wrapper",children:[d&&(0,s.jsx)("img",{src:d,alt:u.media.alternativeText||u.media.name||"Carousel image",className:"shared-tai-carousel-image shared-tai-carousel-placeholder "+(i?"fade-out":"")}),(0,s.jsx)("img",{src:u.url,alt:u.media.alternativeText||u.media.name||"Carousel image",className:"shared-tai-carousel-image "+(i?"loaded":"loading"),onLoad:()=>{o(!0)}}),c.length>1&&(0,s.jsx)("div",{className:"shared-tai-carousel-indicators",children:c.map((e,t)=>(0,s.jsx)("button",{className:"shared-tai-carousel-indicator "+(t===r?"active":""),onClick:()=>(e=>{a(e),o(!1)})(t),"aria-label":`Go to slide ${t+1}`},t))})]})})};i(6006);const td=({baseUrl:e,block:t})=>{var r,a,i,o,l,c,u,d,h,p,m;const[f,v]=(0,n.useState)(!1),g=(0,n.useRef)(null),b=(0,n.useRef)(null),[y,x]=(0,n.useState)(!1);(0,n.useEffect)(()=>{var e;(null===(e=g.current)||void 0===e?void 0:e.complete)&&v(!0)},[]),(0,n.useEffect)(()=>{const e=b.current;if(!e||"undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(x(!0),t.disconnect())},{threshold:.4});return t.observe(e),()=>t.disconnect()},[]);const w=t=>{if(t)return t.startsWith("http")?t:`${e}${t}`},_=null!==(a=null!==(r=t.image)&&void 0!==r?r:t.smallscreen)&&void 0!==a?a:null,k=t.image&&t.smallscreen?t.smallscreen:null,N=w(null!==(i=null==_?void 0:_.url)&&void 0!==i?i:null===(l=null===(o=null==_?void 0:_.formats)||void 0===o?void 0:o.large)||void 0===l?void 0:l.url),E=w(null==k?void 0:k.url),j=w(null!==(d=null===(u=null===(c=null==_?void 0:_.formats)||void 0===c?void 0:c.small)||void 0===u?void 0:u.url)&&void 0!==d?d:null===(p=null===(h=null==_?void 0:_.formats)||void 0===h?void 0:h.thumbnail)||void 0===p?void 0:p.url),S=k?" large-screen":"",C=Boolean(t.carousel&&t.carousel.length>0),T=C||Boolean(t.video||t.animation||N);return(0,s.jsxs)("div",{className:`shared-tai ${null!==(m=t.class)&&void 0!==m?m:""}`.trim(),children:[t.title&&(0,s.jsx)("div",{className:"shared-tai-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.title})}),(0,s.jsxs)("div",{className:"shared-tai-content",children:[t.text&&(0,s.jsx)("div",{className:"shared-tai-text",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.text})}),t.register_button&&(0,s.jsx)("div",{className:"shared-tai-cta",children:(0,s.jsx)(Al,{baseUrl:e,registerButton:t.register_button})}),C?(0,s.jsx)(ed,{baseUrl:e,carousel:t.carousel}):T?(0,s.jsx)("div",{className:"shared-tai-visual"+(y?" is-inview":""),ref:b,children:t.video?(0,s.jsx)(Zu,{block:t.video,baseUrl:e}):t.animation?(0,s.jsx)(Ju,{block:t.animation,baseUrl:e}):(0,s.jsxs)(s.Fragment,{children:[j&&(0,s.jsx)("img",{src:j,alt:(null==_?void 0:_.alternativeText)||(null==_?void 0:_.name)||"",className:`shared-tai-img shared-tai-placeholder${S} ${f?"fade-out":""}`.trim()}),_&&N&&(0,s.jsx)("img",{ref:g,src:N,alt:_.alternativeText||_.name||"",className:`shared-tai-img${S} ${f?"loaded":"loading"}`.trim(),width:_.width,height:_.height,loading:"lazy",onLoad:()=>v(!0)}),k&&E&&(0,s.jsx)("img",{src:E,alt:k.alternativeText||k.name||"",className:"shared-tai-img small-screen",width:k.width,height:k.height,loading:"lazy"})]})}):null]})]})};i(4082);const nd=({baseUrl:e,block:t})=>(0,s.jsx)("div",{className:"shared-tai-collection",children:t.textandimage.map(t=>(0,s.jsx)(td,{baseUrl:e,block:t},t.id))});i(506);const rd=({baseUrl:e,block:t})=>{var n,r,a,i,o,l,c,u,d,h,p,m,f,v,g;let b=null!==(r=null===(n=t.graphical_accompaniment)||void 0===n?void 0:n.url)&&void 0!==r?r:null===(o=null===(i=null===(a=t.graphical_accompaniment)||void 0===a?void 0:a.formats)||void 0===i?void 0:i.large)||void 0===o?void 0:o.url;b&&!b.includes("http")&&(b=`${e}${b}`);let y=null!==(c=null===(l=t.graphical_accompaniment_mobile)||void 0===l?void 0:l.url)&&void 0!==c?c:null===(h=null===(d=null===(u=t.graphical_accompaniment_mobile)||void 0===u?void 0:u.formats)||void 0===d?void 0:d.large)||void 0===h?void 0:h.url;return y&&!y.includes("http")&&(y=`${e}${y}
2`),(0,s.jsxs)("div",{className:"drop-block-try-it-out",children:[b&&(0,s.jsx)("div",{className:"drop-block-try-it-out-image-wrapper large-screen",children:(0,s.jsx)("img",{src:b,alt:(null===(p=t.graphical_accompaniment)||void 0===p?void 0:p.alternativeText)||(null===(m=t.graphical_accompaniment)||void 0===m?void 0:m.name)||"Graphical accompaniment",className:"drop-block-try-it-out-image large-screen"})}),y&&(0,s.jsx)("div",{className:"drop-block-try-it-out-image-wrapper small-screen",children:(0,s.jsx)("img",{src:y,alt:(null===(f=t.graphical_accompaniment_mobile)||void 0===f?void 0:f.alternativeText)||(null===(v=t.graphical_accompaniment_mobile)||void 0===v?void 0:v.name)||"Graphical accompaniment",className:"drop-block-try-it-out-image"})}),(0,s.jsxs)("div",{className:"drop-block-try-it-out-content",children:[(0,s.jsx)("h2",{className:"drop-block-try-it-out-title",children:t.title}),(0,s.jsx)("div",{className:"drop-block-try-it-out-info",children:(0,s.jsx)(ta,{children:t.info})}),(null===(g=t.buttonholder)||void 0===g?void 0:g.button)&&t.buttonholder.button.length>0&&(0,s.jsx)("div",{className:"drop-block-try-it-out-buttons",children:t.buttonholder.button.map(e=>(0,s.jsx)(I,{block:e},e.id))})]})]})};i(5043),i(7032);const ad=e=>!!e&&(e instanceof HTMLImageElement?e.complete:e instanceof HTMLVideoElement&&e.readyState>=3),sd=e=>"video/mp4"===e?"is-video":"is-image",id=({src:e,mime:t,alt:r="",className:a,width:i,height:o,onLoad:l,style:c})=>{const u="video/mp4"===t,[d,h]=(0,n.useState)(!1),p=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!u||"undefined"==typeof window)return;let e=null,t=null;const n=()=>{const n=(()=>{if("complete"!==document.readyState)return!1;if("undefined"!=typeof document&&"fonts"in document&&document.fonts&&"loaded"!==document.fonts.status)return!1;if("undefined"!=typeof performance&&performance.getEntriesByType)try{const e=performance.getEntriesByType("resource").filter(e=>{const t=e.name.toLowerCase();return t.includes(".woff")||t.includes(".ttf")||t.includes(".otf")||t.includes(".eot")||t.match(/\.(jpg|jpeg|png|gif|webp|svg|avif)(\?|$)/i)});if(e.length>0){const t=performance.now();return e.every(e=>{const n=t-e.startTime;return e.transferSize>0||n>54e3})}}catch(e){}return"complete"===document.readyState})(),r=!(!p.current||!e)&&p.current.getBoundingClientRect().top<window.innerHeight+100;(n||r)&&(h(!0),e&&(e.disconnect(),e=null),t&&(clearInterval(t),t=null))};return p.current&&"IntersectionObserver"in window&&(e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&n()})},{rootMargin:"100px"}),e.observe(p.current)),t=setInterval(n,500),n(),()=>{e&&e.disconnect(),t&&clearInterval(t)}},[u]),u?(0,s.jsx)("video",{ref:p,src:d?e:void 0,className:a,width:i,height:o,onLoadedData:l,style:Object.assign(Object.assign({},c),{pointerEvents:"none"}),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"none","data-fetchpriority":"low"}):(0,s.jsx)("img",{src:e,alt:r,className:a,width:i,height:o,onLoad:l,style:c,fetchPriority:"low"})},od=[{name:"Doctor Youn",handle:"@doctoryoun",description:"Doctor Youn is a plastic surgeon who shares videos explaining cosmetic..",topic:"plastic surgery",followers:"10.2M",spend:"$1M+",avatarSrc:"https://runt-media.motionapp.com/webeth/f9ad839f-95ec-496e-8c9d-ef397a89c7e8-16106.bin"},{name:"Np.Miranda",handle:"@np.miranda",description:"Np.Miranda is a nurse practitioner who shares detailed morning wellness...",topic:"wellness routines",followers:"2.6M",spend:"$1M+",avatarSrc:"https://runt-media.motionapp.com/webeth/1ead0239-fbd9-4945-b341-fe14baecbdcd-49072.bin"},{name:"Tammy Weatherhead",handle:"@tamsskyn",description:"Tammy Weatherhead posts short videos on holistic wellness practices, skincare...",topic:"holistic wellness",followers:"1.1M",spend:"$100k–$250k",avatarSrc:"https://runt-media.motionapp.com/webeth/d5832e4e-1720-4609-bdbd-792612fde78d-cb956.bin"}],ld=[{rank:1,name:"Mel Robbins",handle:"@melrobbins",total:"18.2M",meta:"12.4M",tiktok:"5.8M",spend:"$250k–$500k",topics:["personal finance","medical advice","setting boundaries"],avatarSrc:"https://runt-media.motionapp.com/webeth/fb3ef815-24c5-4697-9f38-0eb075fcf5db-433ac.bin"},{rank:2,name:"DoctorSood, M.D.",handle:"@doctorsood",total:"5M",meta:"2.2M",tiktok:"2.8M",spend:"$500k–$1M",topics:["product recalls","gut health","mold exposure"],avatarSrc:"https://runt-media.motionapp.com/webeth/d42e3453-21dd-4a40-9d87-eb7d39bb820f-4d99d.bin"},{rank:3,name:"Dr. James DiNicolantonio",handle:"@drjamesdinic",total:"3.8M",meta:"3.7M",tiktok:"96.8K",spend:"$1M+",topics:["health trends","longevity supplements","sauna benefits"],avatarSrc:"https://runt-media.motionapp.com/webeth/5bbd9d31-61d5-4d56-ae6c-069bdd77f9b3-abffb.bin"},{rank:4,name:"The Skinny Confidential",handle:"@laurynbosstick",total:"3M",meta:"2.2M",tiktok:"759.6K",spend:"$500k–$1M",topics:["holistic health","wellness routines","brand building"],avatarSrc:"https://runt-media.motionapp.com/webeth/77b41fef-ce45-4c13-a1b5-922efc96af51-bcf5d.bin"},{rank:5,name:"Chris Williamson",handle:"@chriswillx",total:"3.6M",meta:"3.2M",tiktok:"465.9K",spend:"$10k–$50k",topics:["relationship advice","biohacking","longevity"],avatarSrc:"https://runt-media.motionapp.com/webeth/29248189-e463-496f-b1a1-5fbc1a15922e-15eec.bin"},{rank:6,name:"Radhi Devlukia",handle:"@radhidevlukia",total:"2.6M",meta:"2.4M",tiktok:"213.6K",
2spend:"$250k–$500k",topics:["natural remedies","athletic recovery","hair health"],avatarSrc:"https://runt-media.motionapp.com/webeth/0b35490b-674a-487a-a688-a04a417a7fd3-86b0d.bin"}],cd=({label:e,tone:t,src:n,size:r="large"})=>(0,s.jsx)("span",{className:["ct-avatar",t?`ct-avatar-${t}`:"","small"===r?"ct-avatar-small":""].filter(Boolean).join(" "),"aria-hidden":"true",children:n?(0,s.jsx)("img",{src:n,alt:""}):e}),ud=()=>(0,s.jsx)("svg",{className:"ct-plus-icon",viewBox:"0 0 8 8","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M4 1v6M1 4h6"})}),dd=()=>(0,s.jsxs)("div",{className:"creator-tracking-visual","aria-label":"Creator tracking dashboard preview",children:[(0,s.jsxs)("section",{className:"ct-recommendations","aria-label":"Creators recommended for you",children:[(0,s.jsx)("h2",{children:"Creators recommended for you"}),(0,s.jsx)("div",{className:"ct-card-grid",children:od.map(e=>(0,s.jsxs)("article",{className:"ct-rec-card",children:[(0,s.jsxs)("div",{className:"ct-rec-content",children:[(0,s.jsxs)("div",{className:"ct-rec-header",children:[(0,s.jsxs)("div",{className:"ct-profile",children:[(0,s.jsx)(cd,{label:e.name,src:e.avatarSrc}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{children:e.name}),(0,s.jsx)("p",{children:e.handle})]})]}),(0,s.jsx)("button",{className:"ct-icon-button",type:"button","aria-label":`Add ${e.name}`,children:(0,s.jsx)(ud,{})})]}),(0,s.jsx)("p",{className:"ct-rec-description",children:e.description}),(0,s.jsx)("span",{className:"ct-chip",children:(0,s.jsx)("span",{className:"ct-chip-text",children:e.topic})})]}),(0,s.jsxs)("div",{className:"ct-rec-stats",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:e.followers}),(0,s.jsx)("span",{children:"Followers"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:e.spend}),(0,s.jsx)("span",{children:"Partnership spend"})]})]})]},e.handle))})]}),(0,s.jsxs)("section",{className:"ct-top-creators","aria-label":"Top creators in Health and Wellness",children:[(0,s.jsxs)("h2",{children:["Top creators in ",(0,s.jsx)("span",{children:"Health & Wellness"}),(0,s.jsx)("svg",{className:"ct-chevron",viewBox:"0 0 10 10","aria-hidden":"true",children:(0,s.jsx)("path",{d:"m2.25 3.75 2.75 2.5 2.75-2.5"})})]}),(0,s.jsxs)("div",{className:"ct-table",role:"table","aria-label":"Top creators",children:[(0,s.jsxs)("div",{className:"ct-table-row ct-table-head",role:"row",children:[(0,s.jsxs)("div",{className:"ct-head-creator-group",role:"columnheader",children:[(0,s.jsx)("span",{children:"#"}),(0,s.jsx)("span",{children:"Creator"})]}),(0,s.jsx)("div",{role:"columnheader",children:"Total followers"}),(0,s.jsx)("div",{role:"columnheader",children:"Meta"}),(0,s.jsx)("div",{role:"columnheader",children:"TikTok"}),(0,s.jsx)("div",{role:"columnheader",children:"Partnership spend"}),(0,s.jsx)("div",{role:"columnheader",children:"Topics"}),(0,s.jsx)("div",{role:"columnheader","aria-label":"Action"})]}),ld.map(e=>(0,s.jsxs)("div",{className:"ct-table-row",role:"row",children:[(0,s.jsxs)("div",{className:"ct-creator-group",role:"cell",children:[(0,s.jsx)("span",{className:"ct-rank",children:e.rank}),(0,s.jsxs)("div",{className:"ct-creator-cell",children:[(0,s.jsx)(cd,{label:e.name,src:e.avatarSrc,size:"small"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:e.name}),(0,s.jsx)("span",{children:e.handle})]})]})]}),(0,s.jsx)("div",{className:"ct-total",role:"cell",children:e.total}),(0,s.jsx)("div",{className:"ct-meta-cell",role:"cell",children:e.meta}),(0,s.jsx)("div",{className:"ct-tiktok-cell",role:"cell",children:e.tiktok}),(0,s.jsx)("div",{className:"ct-spend-cell",role:"cell",children:e.spend}),(0,s.jsx)("div",{className:"ct-topic-list",role:"cell",children:e.topics.map(e=>(0,s.jsx)("span",{className:"ct-chip",children:(0,s.jsx)("span",{className:"ct-chip-text",children:e})},e))}),(0,s.jsx)("div",{className:"ct-action-cell",role:"cell",children:(0,s.jsxs)("button",{className:"ct-follow-button",type:"button",children:[(0,s.jsx)(ud,{}),(0,s.jsx)("span",{className:"ct-follow-label",children:"Follow"})]})})]},e.handle))]})]})]}),hd=({baseUrl:e,block:t})=>{var r,a,i,o,l,c,u,d,h;
2const[p,m]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),g=(0,n.useRef)(null),b="runneth-creator-tracking"===t.class;(0,n.useEffect)(()=>{if(g.current){const e=g.current.querySelector(".large-screen"),t=g.current.querySelector(".small-screen");ad(e)&&m(!0),ad(t)&&v(!0)}},[null===(r=t.image)||void 0===r?void 0:r.url,null===(a=t.smallscreen)||void 0===a?void 0:a.url]);const y=p&&f;let x=t.image,w=null==x?void 0:x.url;w&&!w.includes("http")&&(w=`${e}${w}`);let _=(null==x?void 0:x.alternativeText)||(null==x?void 0:x.name)||"Image";const k=null!==(i=t.smallscreen)&&void 0!==i?i:x;let N=null==k?void 0:k.url;N&&!N.includes("http")&&(N=`${e}${N}`);let E=(null==k?void 0:k.alternativeText)||(null==k?void 0:k.name)||"Image";if(w&&!N&&(N=w,E=_),!w&&N&&(x=k,w=N,_=E),!(b||w&&N))return null;const j=null!==(c=null===(l=null===(o=t.image)||void 0===o?void 0:o.formats)||void 0===l?void 0:l.thumbnail)&&void 0!==c?c:null===(d=null===(u=t.image)||void 0===u?void 0:u.formats)||void 0===d?void 0:d.small;let S=null==j?void 0:j.url;S&&!S.includes("http")&&(S=`${e}${S}`);const C=t.caption,T=null!=t.href&&t.href.length>0,A=null!==(h=t.href_target)&&void 0!==h?h:"_blank",L=T?Object.assign({href:t.href,target:A},"_blank"===A&&{rel:"noopener noreferrer"}):null,I=b?(0,s.jsx)("div",{className:"shared-image-image-holder shared-image-creator-tracking-holder",children:(0,s.jsx)(dd,{})}):(0,s.jsxs)("div",{className:`shared-image-image-holder ${sd(null==x?void 0:x.mime)}`,children:[j&&S&&(0,s.jsx)("img",{src:S,alt:_,className:"shared-image-img shared-image-placeholder "+(y?"fade-out":""),width:j.width,height:j.height}),x&&w&&(0,s.jsx)(id,{src:w,mime:x.mime,alt:_,className:"shared-image-img large-screen "+(y?"loaded":"loading"),onLoad:()=>{m(!0)},width:x.width,height:x.height}),k&&N&&(0,s.jsx)(id,{src:N,mime:k.mime,alt:E,className:"shared-image-img small-screen "+(y?"loaded":"loading"),onLoad:()=>{v(!0)},width:k.width,height:k.height})]}),M="tags-top"===t.layout,P=t.title&&(0,s.jsx)("h1",{className:"shared-image-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.title})}),O=t.body&&(0,s.jsx)("div",{className:"shared-image-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})}),R=t.tags&&t.tags.length>0&&(0,s.jsx)("ul",{className:"shared-image-tags",children:t.tags.map(t=>{var n,r,a,i;let o=null===(n=t.image)||void 0===n?void 0:n.url;return o&&!o.includes("http")&&(o=`${e}${o}`),(0,s.jsxs)("li",{className:`shared-image-tag ${null!==(r=t.class)&&void 0!==r?r:""}`,children:[t.tag&&(0,s.jsx)("span",{className:"shared-image-tag-text",children:t.tag}),o&&(0,s.jsx)("img",{src:o,alt:"",className:"shared-image-tag-icon",width:null===(a=t.image)||void 0===a?void 0:a.width,height:null===(i=t.image)||void 0===i?void 0:i.height})]},t.id)})});return(0,s.jsxs)("div",{ref:g,className:`shared-image${M?" shared-image-tags-top":""} ${t.class?t.class:""}`.trim(),children:[M?(0,s.jsxs)(s.Fragment,{children:[R,P,O]}):(0,s.jsxs)(s.Fragment,{children:[P,O,R]}),(0,s.jsxs)("div",{className:"shared-image-container",children:[(0,s.jsx)("div",{className:"shared-image-background-div-1"}),L?(0,s.jsx)("a",Object.assign({},L,{className:"shared-image-link",children:I})):I]}),C&&(0,s.jsx)("div",{className:"shared-image-caption",children:C})]})},pd=({block:e})=>(0,s.jsx)("h1",{className:"shared-h1",children:e.h1}),md=({baseUrl:e,drop:t,blocks:r,onUnfurl:a,requestUri:i})=>{const o=(0,n.useCallback)(e=>{const t=(()=>{const e=k().get("unfurled");return e?e.split(",").filter(e=>""!==e.trim()):[]})();if(t.includes(e))return!0;const n=S.getSlug("releases",p(i),m());return!(!n||n!==e)},[i]),[l,c]=(0,n.useState)(()=>o(t.slug));(0,n.useEffect)(()=>{const e=()=>{const e=o(t.slug);c(e)};return w.addEventListener("popstate",e),()=>{w.removeEventListener("popstate",e)}},[t.slug,o]);const u=(0,n.useMemo)(()=>r.findIndex(e=>"shared.fold"===e.__component),[r]),d=(0,n.useMemo)(()=>r.findIndex(e=>"shared.button"===e.__component&&!0===e.unfurler),[r]);return(0,s.jsx)("div",{className:"drop-blocks",children:r.map((n,r)=>{const a=-1!==u&&r>u&&!l,i=r===d&&"shared.button"===n.__component,o=a||i&&l;switch(n.__component){case"shared.h1":return(0,s.jsx)("div",{className:"drop-block left-right-padding "+(o?"hidden":""),children:(0,s.jsx)(pd,{block:n})},`${n.__component}-${n.id}`);case"shared.h1-subhead":return(0,s.jsx)("div",{className:"drop-block left-right-padding "+(o?"hidden":""),children:(0,s.jsx)(T,{block:n})},`${n.__component}-${n.id}`);case"shared.image":return(0,s.jsx)("div",{className:"drop-block small-screen-left-right-padding "+(o?"hidden":""),children:(0,s.jsx)(hd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"shared.video-wistia":return(0,s.jsx)("div",{className:"drop-block small-screen-left-right-padding "+(o?"hidden":""),children:(0,s.jsx)(A,{block:n})},`${n.__component}-${n.id}`);case"shared.rich-text-blocks":return(0,s.jsx)("div",{className:"drop-block left-right-padding "+(o?"hidden":""),children:(0,s.jsx)(L,{block:n})},`${n.__component}-${n.id}`);case"shared.button":return(0,s.jsx)("div",{className:"drop-block left-right-padding "+(o?"hidden":""),children:(0,s.jsx)(I,{block:n,unfurlUrl:i?`/releases/${t.slug}`:void 0})},`${n.__component}-${n.id}`);case"shared.button-holder":return(0,s.jsx)("div",{className:"drop-block left-right-padding "+(o?"hidden":""),children:(0,s.jsx)(M,{block:n,dropSlug:t.slug})},`${n.__component}-${n.id}`);case"shared.rich-text":return(0,s.jsx)("div",{className:"drop-block left-right-padding "+(o?"hidden":""),children:(0,s.jsx)(Pl,{block:n})},`${n.__component}-${n.id}`);case"shared.question-answer-blocks-holder":return(0,s.jsx)("div",{className:"drop-block small-screen-left-right-padding "+(o?"hidden":""),children:(0,s.jsx)(Rl,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"shared.text-and-image-collection":return(0,s.jsx)("div",{className:"drop-block left-right-padding "+(o?"hidden":""),children:(0,s.jsx)(nd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"drops.try-it-out":return(0,s.jsx)("div",{className:"drop-block "+(o?"hidden":""),children:(0,s.jsx)(rd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);default:return null}})})},fd=({baseUrl:e,drop:t,requestUri:r})=>{var a,i;const o=(0,n.useCallback)(e=>{const t=(()=>{const e=k().get("unfurled");return e?e.split(",").filter(e=>""!==e.trim()):[]})();if(t.includes(e))return!0;const n=S.getSlug("releases",p(r),m());return!(!n||n!==e)}
2,[r]),[l,c]=(0,n.useState)(()=>o(t.slug));(0,n.useEffect)(()=>{const e=()=>{const e=o(t.slug);c(e)};return w.addEventListener("popstate",e),()=>{w.removeEventListener("popstate",e)}},[t.slug,o]);const u=(d=null!==(i=null!==(a=t.publication_date)&&void 0!==a?a:t.publishedAt)&&void 0!==i?i:t.createdAt,new Date(d).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}));var d;const h="drop"+(l?" unfurled":"");return(0,s.jsxs)("article",{className:h,children:[(0,s.jsx)("div",{className:"drop-date-holder",children:(0,s.jsx)("div",{className:"drop-date",children:u})}),(0,s.jsx)(md,{baseUrl:e,drop:t,blocks:t.blocks||[],onUnfurl:()=>{c(!0)},requestUri:r})]})};class vd{static fetchDrops(e,t){return n=this,r=void 0,s=function*(){const{baseUrl:n,status:r,slug:a,sortOptions:s=this.DEFAULT_SORT_OPTIONS,populateOptions:i=this.DEFAULT_POPULATE_OPTIONS}=e,o=[];a&&o.push({field:"slug",operator:"$eq",value:a});const c=`/api/drops?${l.buildQueryString(r,s,o.length>0?o:void 0,i)}`,u=`${n}${c}`;g()||console.log("apiPathAndQueryString",`${c}`);try{const e=yield t(u);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=yield e.json();return g()||console.log("returned:",n.data),{response:e,data:n}}catch(e){throw console.error("Error fetching drops:",e),e instanceof Error?e:new Error("Failed to fetch drops")}},new((a=void 0)||(a=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:new a(function(t){t(e)})}(t.value).then(i,o)}l((s=s.apply(n,r||[])).next())});var n,r,a,s}}vd.DEFAULT_SORT_OPTIONS=[{field:"publication_date",order:"desc"},{field:"publishedAt",order:"desc"},{field:"createdAt",order:"desc"}],vd.DEFAULT_POPULATE_OPTIONS=["cover","blocks","blocks.image","blocks.graphical_accompaniment","blocks.questionanswerblock","blocks.questionanswerblock.questionprefixicon","blocks.textandimage","blocks.textandimage.image","blocks.textandimage.carousel","blocks.buttonholder.button","blocks.graphical_accompaniment_mobile","blocks.smallscreen","blocks.button"];i(4368),i(708),i(3850),i(4178);const gd=({baseUrl:e,block:t})=>{var r,a,i,o;const l=Math.max(1,null!==(r=t.scroll_speed)&&void 0!==r?r:100),[c,u]=(0,n.use
2State)(0),[d,h]=(0,n.useState)(!1),[p,m]=(0,n.useState)(0),[f,v]=(0,n.useState)(!1),[g,b]=(0,n.useState)(0),[y,x]=(0,n.useState)(0),w=(0,n.useRef)(null),_=(0,n.useRef)(null),k=(0,n.useRef)(!1),N=(0,n.useRef)(null),E=(0,n.useRef)(0),j=(0,n.useRef)(!1),S=(0,n.useRef)(null),C=(0,n.useRef)(null),T=(0,n.useRef)(0),A=(0,n.useRef)(!1),L="slider"===t.style,I="slider-infinite"===t.style,M=L||I,P=t.image&&t.image.length>0,O=!0===t.autoscroll,R=(null===(a=t.image)||void 0===a?void 0:a.length)||0,D=p*R,F=(0,n.useMemo)(()=>{if(!(I&&p&&g&&R))return 1;const e=Math.ceil(g/D)+2;return Math.max(2,e)},[I,p,g,R,D]),U=(0,n.useMemo)(()=>{const e=t.image;if(!(null==e?void 0:e.length))return[];if(!I)return e.map((e,t)=>({image:e,index:t,key:`item-${t}`}));const n=[];for(let t=0;t<F;t++)e.forEach((e,r)=>{n.push({image:e,index:r,key:`set${t}-item${r}`})});return n},[t.image,I,F]),$=(0,n.useCallback)(()=>{if(!_.current)return 0;const e=getComputedStyle(_.current),t=e.transform||e.webkitTransform;if(!t||"none"===t)return 0;const n=t.match(/matrix\(([^)]+)\)/);if(n){const e=n[1].split(",").map(e=>e.trim());return-(parseFloat(e[4])||0)}const r=t.match(/translateX\(([^)]+)\)/);return r?-(parseFloat(r[1])||0):0},[]),B=(0,n.useCallback)((e,t,n,r="ease-out")=>{if(!_.current)return;const a=_.current;a.style.transition=t?`transform ${null!=n?n:300}ms ${r}`:"none",a.style.transform=`translate3d(-${e}px, 0, 0)`,E.current=e},[]),H=(0,n.useCallback)(e=>{if(D<=0)return e;let t=e%D;return t<0&&(t+=D),t},[D]),z=(0,n.useRef)(!1),q=(0,n.useCallback)(()=>{if(!_.current||D<=0||!d)return;N.current&&(clearTimeout(N.current),N.current=null);const e=D/l*1e3,t=H(E.current);t!==E.current&&B(t,!1);const n=t+D;B(n,!0,e,"linear"),j.current=!0,N.current=setTimeout(()=>{const e=H(n);B(e,!1),j.current=!1,z.current&&!k.current&&(N.current=setTimeout(()=>{q()},20))},e)},[D,l,-1,d,B,H]),G=(0,n.useCallback)(()=>{if(!w.current||!_.current)return;const e=w.current.clientWidth;b(e);const t=_.current.scrollWidth,n=getComputedStyle(w.current),r=parseFloat(n.paddingRight)||0;x(r);const a=_.current.querySelectorAll(".shared-image-gallery-item"),s=a[0],i=a[a.length-1],o=parseFloat(getComputedStyle(_.current).gap)||0,l=s?s.offsetWidth+o:0;if(m(l),I)l>0&&R>0&&(h(!0),u(1/0),0===E.current&&B(0,!1),!O||f||k.current||v(!0));else if(t>e){h(!0);const a=(i?i.offsetLeft+i.offsetWidth:t)-(e-((parseFloat(n.paddingLeft)||0)+r));u(Math.max(0,a));const s=Math.min(E.current,Math.max(0,a));B(s,!1),!O||f||k.current||v(!0)}else h(!1),u(0),B(0,!1),v(!1)},[I,O,f,R,B]);(0,n.useEffect)(()=>{if(!M||!P)return;const e=w.current,t=_.current;if(!e||!t)return;let n,r;const a=()=>{n=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>{G()})})};a(),r=setTimeout(G,100);const s=new ResizeObserver(()=>a());return s.observe(e),s.observe(t),window.addEventListener("resize",G),()=>{cancelAnimationFrame(n),clearTimeout(r),s.disconnect(),window.removeEventListener("resize",G)}},[M,P,G,null===(i=t.image)||void 0===i?void 0:i.length]),(0,n.useEffect)(()=>{if(!f||!d)return z.current=!1,void(N.current&&(clearTimeout(N.current),N.current=null));if(z.current=!0,I&&D>0)q();else if(c>0){const e=()=>{if(!f||k.current)return;const t=E.current,n=c,r=Math.abs(n-t),a=r/l*1e3;r<=0?N.current=setTimeout(()=>{B(0,!1),N.current=setTimeout(()=>{f&&!k.current&&e()},500)},1e3):(B(n,!0,a,"linear"),j.current=!0,N.current=setTimeout(()=>{j.current=!1,N.current=setTimeout(()=>{B(0,!1),N.current=setTimeout(()=>{f&&!k.current&&e()},500)},1e3)},a))};e()}return()=>{N.current&&(clearTimeout(N.current),N.current=null)}},[f,d,I,D,c,l,-1,q,B]);const W=(0,n.useCallback)(()=>{if(k.current=!0,z.current=!1,v(!1),N.current&&(clearTimeout(N.current),N.current=null),_.current&&j.current){const e=$();_.current.style.transition="none",_.current.style.transform=`translate3d(-${e}px, 0, 0)`,E.current=e,j.current=!1}},[$]),Y=(0,n.useCallback)((e,t={})=>{let n=e;if(t.clamp&&(n=Math.max(t.clamp.min,Math.min(t.clamp.max,n))),t.wrapAfter&&D>0){const e=E.current;n<0?(B(e+D,!1),n+=D):n>=2*D&&(B(e-D,!1),n-=D)}B(n,!0,300),j.current=!0,setTimeout(()=>{if(j.current=!1,t.wrapAfter&&D>0){const e=E.current;let t=e;e>=D?t=e-D:e<0&&(t=e+D),t<p&&t>=0&&(t+=D),t!==e&&B(t,!1)}},300)},[D,B,p]),V=(0,n.useCallback)(()=>
2{if(!d||p<=0||!w.current||!_.current)return;if(f)W();else if(j.current)return;const e=E.current,t=getComputedStyle(_.current),n=parseFloat(t.paddingLeft)||0,r=Math.floor((e+n)/p),a=r*p-n,s=(Math.abs(e-a)<1?r-1:r)*p+n;Y(s,I?{wrapAfter:!0}:{clamp:{min:0,max:c}})},[d,p,I,c,f,W,Y]),K=(0,n.useCallback)(()=>{if(!d||p<=0||!w.current||!_.current)return;if(f)W();else if(j.current)return;const e=E.current,t=getComputedStyle(_.current),n=parseFloat(t.paddingRight)||0,r=g-y,a=e+r,s=Math.floor(a/p);Y((((s+1)*p<=a+1?s+1:s)+1)*p-r+n,I?{wrapAfter:!0}:{clamp:{min:0,max:c}})},[d,p,g,y,I,c,f,W,Y]),Q=(0,n.useRef)(d);Q.current=d;const X=(0,n.useRef)(f);X.current=f;const J=(0,n.useRef)(c);J.current=c;const Z=(0,n.useRef)(g);Z.current=g;const ee=(0,n.useRef)(y);ee.current=y,(0,n.useEffect)(()=>{const e=w.current;if(!e||!M)return;const t=e=>{if(!Q.current)return;const t=e.touches[0];S.current=t.clientX,C.current=t.clientY,T.current=E.current,A.current=!1,_.current&&j.current&&(T.current=$())},n=e=>{if(null===S.current||null===C.current||!Q.current)return;const t=e.touches[0],n=t.clientX-S.current,r=t.clientY-C.current;if(!A.current&&Math.abs(r)>Math.abs(n))S.current=null;else{if(!A.current&&Math.abs(n)>10&&(A.current=!0,X.current&&W(),_.current&&j.current)){const e=$();_.current.style.transition="none",_.current.style.transform=`translate3d(-${e}px, 0, 0)`,E.current=e,T.current=e,j.current=!1}if(A.current){e.preventDefault();let t=T.current-n;if(!I)if(t<0)t*=.3;else if(t>J.current){const e=t-J.current;t=J.current+.3*e}B(t,!1)}}},r=e=>{if(null===S.current||!A.current||!Q.current)return S.current=null,C.current=null,void(A.current=!1);const t=e.changedTouches[0].clientX-S.current,n=Math.abs(t),r=T.current,a=Math.round(r/p);if(S.current=null,C.current=null,A.current=!1,n>=50){let e;if(t>0){const t=Math.floor(r/p),n=t*p;e=(Math.abs(r-n)<1?t-1:t)*p}else{const t=Z.current-ee.current,n=r+t,a=Math.floor(n/p);e=(((a+1)*p<=n+1?a+1:a)+1)*p-t}Y(e,I?{wrapAfter:!0}:{clamp:{min:0,max:J.current}})}else{const e=a*p;
2if(I)Y(e,{wrapAfter:!0});else{const t=Math.max(0,Math.min(J.current,e));B(t,!0,300)}}};return e.addEventListener("touchstart",t,{passive:!0}),e.addEventListener("touchmove",n,{passive:!1}),e.addEventListener("touchend",r,{passive:!0}),()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchmove",n),e.removeEventListener("touchend",r)}},[M,I,p,W,Y,B,$]);const te=(t,n,r="",a)=>{var i,o,l;const c=null!==(o=null!==(i=t.title)&&void 0!==i?i:t.caption)&&void 0!==o?o:null,u=null!==(l=t.class)&&void 0!==l?l:"",d=void 0!==a?a%2==0?"shared-image-gallery-item-stagger-down":"shared-image-gallery-item-stagger-up":"";return(0,s.jsxs)("div",{className:`shared-image-gallery-item ${u} ${d}`.trim(),children:[c&&(0,s.jsx)("div",{className:"shared-image-gallery-item-label",children:(0,s.jsx)("span",{className:"shared-image-gallery-item-label-text",children:c})}),(0,s.jsx)("div",{className:"shared-image-gallery-item-image",children:(0,s.jsx)(hd,{baseUrl:e,block:t})})]},`${r}${t.id}`)};if(M){const e=d;return(0,s.jsxs)("div",{className:`shared-image-gallery shared-image-gallery-slider ${I?"shared-image-gallery-slider-infinite":""} ${t.class?t.class:""}`,children:[(0,s.jsxs)("div",{className:"shared-image-gallery-header",children:[t.title&&(0,s.jsx)("h2",{className:"shared-image-gallery-title",children:t.title}),(t.subtitle||t.body)&&(0,s.jsxs)("div",{className:"shared-image-gallery-subtitle-and-body",children:[t.subtitle&&(0,s.jsx)("div",{className:"shared-image-gallery-subtitle",children:t.subtitle}),t.body&&(0,s.jsx)("div",{className:"shared-image-gallery-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})})]}),e&&(0,s.jsxs)("div",{className:"shared-image-gallery-slider-nav-buttons-container",children:[(0,s.jsx)("button",{className:"shared-image-gallery-slider-nav shared-image-gallery-slider-nav-prev",onClick:V,"aria-label":"Previous",children:(0,s.jsxs)("svg",{width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"0.5",y:"0.5",width:"51",height:"51",rx:"25.5",stroke:"#0A2CC2"}),(0,s.jsx)("path",{d:"M19.152 24.9066C18.5894 25.3052 18.5894 26.1401 19.152 26.5387L28.422 33.1049C29.0842 33.574 30 33.1004 30 32.2889L30 19.1564C30 18.3449 29.0842 17.8713 28.422 18.3404L19.152 24.9066Z",fill:"#0A2CC2"})]})}),(0,s.jsx)("button",{className:"shared-image-gallery-slider-nav shared-image-gallery-slider-nav-next",onClick:K,"aria-label":"Next",children:(0,s.jsxs)("svg",{width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"-0.5",y:"0.5",width:"51",height:"51",rx:"25.5",transform:"matrix(-1 0 0 1 51 0)",stroke:"#0A2CC2"}),(0,s.jsx)("path",{d:"M32.848 24.9066C33.4106 25.3052 33.4106 26.1401 32.848 26.5387L23.578 33.1049C22.9158 33.574 22 33.1004 22 32.2889L22 19.1564C22 18.3449 22.9158 17.8713 23.578 18.3404L32.848 24.9066Z",fill:"#0A2CC2"})]})})]})]}),(0,s.jsx)("div",{className:"shared-image-gallery-slider-container",ref:w,children:(0,s.jsx)("div",{ref:_,className:"shared-image-gallery-slider-track "+(d||I?"":"shared-image-gallery-slider-track-centered"),style:{position:"relative"},children:U.map(({image:e,index:t,key:n},r)=>te(e,0,n+"-",r))})})]})}return(0,s.jsxs)("div",{className:`shared-image-gallery ${t.class?t.class:""}`,children:[(t.title||t.subtitle||t.body)&&(0,s.jsxs)("div",{className:"shared-image-gallery-header",children:[t.title&&(0,s.jsx)("h2",{className:"shared-image-gallery-title",children:t.title}),(0,s.jsxs)("div",{className:"shared-image-gallery-subtitle-and-body",children:[t.subtitle&&(0,s.jsx)("div",{className:"shared-image-gallery-subtitle",children:t.subtitle}),t.body&&(0,s.jsx)("div",{className:"shared-image-gallery-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})})]})]}),(0,s.jsx)("div",{className:"shared-image-gallery-items",children:null===(o=t.image)||void 0===o?void 0:o.map((e,t)=>te(e,0,"",t))})]})};i(2606);const bd=({baseUrl:e,block:t,dates:r=[]})=>{var a,i,o;const l=Math.max(1,null!==(a=t.scroll_speed)&&void 0!==a?a:100),[c,u]=(0,n.use
2State)(0),[d,h]=(0,n.useState)(!1),[p,m]=(0,n.useState)(0),[f,v]=(0,n.useState)(!1),[g,b]=(0,n.useState)(0),[y,x]=(0,n.useState)(0),[w,_]=(0,n.useState)(0),k=(0,n.useRef)(0);k.current=w;const N=(0,n.useRef)(null),E=(0,n.useRef)(null),j=(0,n.useRef)(!1),S=(0,n.useRef)(null),C=(0,n.useRef)(0),T=(0,n.useRef)(!1),A=(0,n.useRef)(null),L=(0,n.useRef)(null),I=(0,n.useRef)(0),M=(0,n.useRef)(!1),P="slider"===t.style,O="slider-infinite"===t.style,R="slider-dots"===t.style,D=P||O||R,F=t.people&&t.people.length>0,U=!0===t.autoscroll,$=(null===(i=t.people)||void 0===i?void 0:i.length)||0,B=p*$,H=(0,n.useMemo)(()=>{if(!(O&&p&&g&&$))return 1;const e=Math.ceil(g/B)+2;return Math.max(2,e)},[O,p,g,$,B]),z=(0,n.useMemo)(()=>{const e=t.people;if(!(null==e?void 0:e.length))return[];if(!O)return e.map((e,t)=>({person:e,index:t,key:`item-${t}`}));const n=[];for(let t=0;t<H;t++)e.forEach((e,r)=>{n.push({person:e,index:r,key:`set${t}-item${r}`})});return n},[t.people,O,H]),q=(0,n.useCallback)((e,t,n,r="ease-out")=>{if(!E.current)return;const a=E.current;if(t){const e=null!=n?n:300;a.style.transition=`left ${e}ms ${r}`}else a.style.transition="none";a.style.left=`-${e}px`,C.current=e},[]),G=(0,n.useCallback)(e=>{if(B<=0)return e;let t=e%B;return t<0&&(t+=B),t},[B]),W=(0,n.useRef)(!1),Y=(0,n.useCallback)(()=>{if(!E.current||B<=0||!d)return;S.current&&(clearTimeout(S.current),S.current=null);const e=B/l*1e3,t=G(C.current);t!==C.current&&q(t,!1);const n=t+B;q(n,!0,e,"linear"),T.current=!0,S.current=setTimeout(()=>{const e=G(n);q(e,!1),T.current=!1,W.current&&!j.current&&(S.current=setTimeout(()=>{Y()},20))},e)},[B,l,-1,d,q,G]),V=(0,n.useCallback)(()=>{if(!N.current||!E.current)return;const e=N.current.clientWidth;b(e);const t=E.current.scrollWidth,n=getComputedStyle(N.current),r=parseFloat(n.paddingLeft)||0,a=parseFloat(n.paddingRight)||0;x(a);const s=E.current.querySelectorAll(".shared-lineup-item"),i=s[0],o=s[s.length-1],l=parseFloat(getComputedStyle(E.current).gap)||0,c=i?i.offsetWidth+l:0;if(m(c),O)c>0&&$>0&&(h(!0),u(1/0),0===C.current&&q(0,!1),!U||f||j.current||v(!0));else if(t>e){h(!0);const n=(o?o.offsetLeft+o.offsetWidth:t)-(e-(r+a));u(Math.max(0,n));const s=Math.min(C.current,Math.max(0,n));q(s,!1),!U||f||j.current||v(!0)}else h(!1),u(0),q(0,!1),v(!1)},[O,U,f,$,q]);(0,n.useEffect)(()=>{if(!D||!F)return;const e=N.current,t=E.current;if(!e||!t)return;let n,r;const a=()=>{n=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>{V()})})};a(),r=setTimeout(V,100);const s=new ResizeObserver(()=>{a()});return s.observe(e),s.observe(t),window.addEventListener("resize",V),()=>{cancelAnimationFrame(n),clearTimeout(r),s.disconnect(),window.removeEventListener("resize",V)}},[D,F,V,null===(o=t.people)||void 0===o?void 0:o.length]),(0,n.useEffect)(()=>{if(!R){if(!f||!d)return W.current=!1,void(S.current&&(clearTimeout(S.current),S.current=null));if(W.current=!0,O&&B>0)Y();else if(c>0){const e=()=>{if(!f||j.current)return;const t=C.current,n=c,r=Math.abs(n-t),a=r/l*1e3;r<=0?S.current=setTimeout(()=>{q(0,!1),S.current=setTimeout(()=>{f&&!j.current&&e()},500)},1e3):(q(n,!0,a,"linear"),T.current=!0,S.current=setTimeout(()=>{T.current=!1,S.current=setTimeout(()=>{q(0,!1),S.current=setTimeout(()=>{f&&!j.current&&e()},500)},1e3)},a))};e()}return()=>{S.current&&(clearTimeout(S.current),S.current=null)}}},[R,f,d,O,B,c,l,-1,Y,q]);const K=t=>t?t.url.startsWith("http")?t.url:`${e}${t.url}`:null,Q=(0,n.useCallback)(()=>{if(j.current=!0,W.current=!1,v(!1),S.current&&(clearTimeout(S.current),S.current=null),E.current&&T.current){const e=getComputedStyle(E.current),t=parseFloat(e.left)||0;E.current.style.transition="none",E.current.style.left=`${t}px`,C.current=-t,T.current=!1}},[]),X=300,J=(0,n.useCallback)((e,t={})=>{let n=e;if(t.clamp&&(n=Math.max(t.clamp.min,Math.min(t.clamp.max,n))),t.wrapAfter&&B>0){const e=C.current;n<0?(q(e+B,!1),n+=B):n>=2*B&&(q(e-B,!1),n-=B)}q(n,!0,X),T.current=!0,setTimeout(()=>{if(T.current=!1,t.wrapAfter&&B>0){const e=C.current;let t=e;e>=B?t=e-B:e<0&&(t=e+B),t<p&&t>=0&&(t+=B),t!==e&&q(t,!1)}},X)},[B,q,p]),Z=(0,n.useCallback)((e,t={})=>{if(p<=0||$<=0)return;t.manual&&Q();
2const n=Math.max(0,Math.min($-1,e)),r=Math.min(n*p,Math.max(0,c));_(n),q(r,!0,X),T.current=!0,setTimeout(()=>{T.current=!1},X)},[p,$,c,Q,q]),ee=(0,n.useRef)(Z);ee.current=Z,(0,n.useEffect)(()=>{if(!R||!f||!d||p<=0||$<=1)return;const e=t.scroll_speed&&t.scroll_speed>0?t.scroll_speed:5e3,n=setInterval(()=>{j.current||ee.current((k.current+1)%$)},e);return()=>clearInterval(n)},[R,f,d,p,$,t.scroll_speed]);const te=(0,n.useCallback)(()=>{if(!d||p<=0||!N.current||!E.current)return;if(f)Q();else if(T.current)return;const e=C.current,t=getComputedStyle(E.current),n=parseFloat(t.paddingLeft)||0,r=Math.floor((e+n)/p),a=r*p-n,s=(Math.abs(e-a)<1?r-1:r)*p+n;J(s,O?{wrapAfter:!0}:{clamp:{min:0,max:c}})},[d,p,O,c,f,Q,J]),ne=(0,n.useCallback)(()=>{if(!d||p<=0||!N.current||!E.current)return;if(f)Q();else if(T.current)return;const e=C.current,t=getComputedStyle(E.current),n=parseFloat(t.paddingRight)||0,r=g-y,a=e+r,s=Math.floor(a/p);J((((s+1)*p<=a+1?s+1:s)+1)*p-r+n,O?{wrapAfter:!0}:{clamp:{min:0,max:c}})},[d,p,g,y,O,c,f,Q,J]),re=(0,n.useRef)(d);re.current=d;const ae=(0,n.useRef)(f);ae.current=f;const se=(0,n.useRef)(c);se.current=c;const ie=(0,n.useRef)(g);ie.current=g;const oe=(0,n.useRef)(y);oe.current=y,(0,n.useEffect)(()=>{const e=N.current;if(!e||!D)return;const t=e=>{if(!re.current)return;const t=e.touches[0];if(A.current=t.clientX,L.current=t.clientY,I.current=C.current,M.current=!1,E.current&&T.current){const e=getComputedStyle(E.current),t=parseFloat(e.left)||0;I.current=-t}},n=e=>{if(null===A.current||null===L.current||!re.current)return;const t=e.touches[0],n=t.clientX-A.current,r=t.clientY-L.current;if(!M.current&&Math.abs(r)>Math.abs(n))A.current=null;else{if(!M.current&&Math.abs(n)>10&&(M.current=!0,ae.current&&Q(),E.current&&T.current)){const e=getComputedStyle(E.current),t=parseFloat(e.left)||0;E.current.style.transition="none",E.current.style.left=`${t}px`,C.current=-t,I.current=-t,T.current=!1}if(M.current){e.preventDefault();let t=I.current-n;if(!O)if(t<0)t*=.3;else if(t>se.current){const e=t-se.current;t=se.current+.3*e}q(t,!1)}}},r=e=>{if(null===A.current||!M.current||!re.current)return A.current=null,L.current=null,void(M.current=!1);const t=e.changedTouches[0].clientX-A.current,n=Math.abs(t),r=I.current,a=Math.round(r/p);if(A.current=null,L.current=null,M.current=!1,R)n>=50?ee.current(k.current+(t<0?1:-1),{manual:!0}):ee.current(k.current,{manual:!0});else if(n>=50){let e;if(t>0){const t=Math.floor(r/p),n=t*p;e=(Math.abs(r-n)<1?t-1:t)*p}else{const t=ie.current-oe.current,n=r+t,a=Math.floor(n/p);e=(((a+1)*p<=n+1?a+1:a)+1)*p-t}J(e,O?{wrapAfter:!0}:{clamp:{min:0,max:se.current}})}else{const e=a*p;if(O)J(e,{wrapAfter:!0});else{const t=Math.max(0,Math.min(se.current,e));q(t,!0,X)}}};return e.addEventListener("touchstart",t,{passive:!0}),e.addEventListener("touchmove",n,{passive:!1}),e.addEventListener("touchend",r,{passive:!0}),()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchmove",n),e.removeEventListener("touchend",r)}},[D,O,R,p,Q,J,q]);const le=(e,n,r="")=>{var a,i,o,l,c,u,d,h,p,m,f,v,g,b,y,x,w,_,k,N,E,j,S;const C=null!==(a=e.avatar)&&void 0!==a?a:null===(i=e.author)||void 0===i?void 0:i.avatar,T=K(C);let A;t.avatar_aspect_ratio?A=parseFloat(t.avatar_aspect_ratio):C&&(A=C.height/C.width);const L=A||void 0,I=L?100*L+"%":void 0,M=null!==(o=e.title)&&void 0!==o?o:null===(l=e.author)||void 0===l?void 0:l.title,P=null!==(d=null!==(c=e.bio)&&void 0!==c?c:null===(u=e.author)||void 0===u?void 0:u.bio)&&void 0!==d?d:null,O=null!==(m=null!==(p=null===(h=e.author)||void 0===h?void 0:h.name)&&void 0!==p?p:e.name)&&void 0!==m?m:null,R=null!==(f=e.company_name)&&void 0!==f?f:null,D=null!==(b=null!==(g=null===(v=e.author)||void 0===v?void 0:v.linkedin_url)&&void 0!==g?g:e.linkedin_url)&&void 0!==b?b:null,F=null!==(w=null!==(x=null===(y=e.author)||void 0===y?void 0:y.twitter_url)&&void 0!==x?x:e.twitter_url)&&void 0!==w?w:null,U=null!==(_=e.class)&&void 0!==_?_:"";if("v004"===t.person_layout){const t=null===(N=null===(k=e.logo)||void 0===k?void 0:k.image)||void 0===N?void 0:N.image,n=t?K(t):null;return(0,s.jsxs)("div",{className:`shared-lineup-item shared-lineup-item-layout-v004 ${U}`,children:[(0,s.jsxs)("div",{className:"shared-lineup-portrait",children:[T&&(0,s.jsx)("img",{src:T,alt:O||"Person",className:"shared-lineup-avatar-img",width:null==C?void 0:C.width,height:null==C?void 0:C.height}),(0,s.jsx)("div",{className:"shared-lineup-scrim","aria-hidden":"true"})]}),(0,s.jsxs)("div",{className:"shared-lineup-avatar-nameplate",children:[(O||M)&&(0,s.jsxs)("div",{className:"shared-lineup-avatar-copy",children:[O&&(0,s.jsx)("div",{className:"shared-lineup-avatar-name",children:O}),M&&(0,s.jsx)("div",{className:"shared-lineup-avatar-title",children:M})]}),n&&(0,s.jsx)("div",{className:"shared-lineup-item-contents-logo",children:(0,s.jsx)("img",{src:n,alt:"",className:"shared-lineup-item-contents-logo-image"})})]})]},`${r}${e.id}`)}
2if("v003"===t.person_layout){const n=O?O.trim().split(/\s+/):[],a=null!==(E=n[0])&&void 0!==E?E:"",i=n.slice(1).join(" ");return(0,s.jsxs)("div",{className:`shared-lineup-item shared-lineup-item-layout-v003 ${U}`,children:[(0,s.jsxs)("div",{className:"shared-lineup-portrait",children:[(0,s.jsx)("div",{className:"shared-lineup-avatar-container",children:(0,s.jsx)("div",{className:"shared-lineup-avatar",style:{paddingTop:I},children:T&&(0,s.jsx)("img",{src:T,alt:O||"Person avatar",className:"shared-lineup-avatar-img",width:null==C?void 0:C.width,height:null==C?void 0:C.height})})}),O&&(0,s.jsxs)("div",{className:"shared-lineup-avatar-nameplate",children:[(0,s.jsx)("span",{className:"shared-lineup-avatar-name shared-lineup-avatar-name-first",children:a}),i&&(0,s.jsx)("span",{className:"shared-lineup-avatar-name shared-lineup-avatar-name-last",children:i})]})]}),(0,s.jsxs)("div",{className:"shared-lineup-item-contents",children:[(M||R)&&(0,s.jsxs)("div",{className:"shared-lineup-item-contents-titleblock",children:[M&&(0,s.jsx)("div",{className:"shared-lineup-item-contents-title",children:M}),R&&(0,s.jsx)("div",{className:"shared-lineup-item-contents-company",children:R})]}),P&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"shared-lineup-item-contents-divider","aria-hidden":"true"}),(0,s.jsx)("div",{className:"shared-lineup-item-contents-bio",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:P})})]}),t.display_socials&&(0,s.jsxs)("div",{className:"shared-lineup-item-contents-socials",children:[D&&(0,s.jsx)("a",{href:D,target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",className:"shared-lineup-social-link shared-lineup-social-link-linkedin"}),F&&(0,s.jsx)("a",{href:F,target:"_blank",rel:"noopener noreferrer","aria-label":"X",className:"shared-lineup-social-link shared-lineup-social-link-x"})]})]})]},`${r}${e.id}`)}return"v002"===t.person_layout?(0,s.jsxs)("div",{className:`shared-lineup-item shared-lineup-item-layout-v002 ${U}`,children:[T&&(0,s.jsx)("div",{className:"shared-lineup-avatar",style:{paddingTop:I},children:(0,s.jsx)("img",{src:T,alt:O||"Person avatar",className:"shared-lineup-avatar-img"})}),(0,s.jsxs)("div",{className:"shared-lineup-item-contents",children:[(0,s.jsx)("div",{className:"shared-lineup-item-contents-name",children:O}),M&&(0,s.jsx)("div",{className:"shared-lineup-item-contents-title",children:M}),P&&(0,s.jsx)("div",{className:"shared-lineup-item-contents-bio",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:P})}),(null===(S=null===(j=e.logo)||void 0===j?void 0:j.image)||void 0===S?void 0:S.image)&&(0,s.jsx)("div",{className:"shared-lineup-item-contents-logo",children:(0,s.jsx)("img",{src:K(e.logo.image.image),alt:"",className:"shared-lineup-item-contents-logo-image"})})]})]},`${r}${e.id}`):"v001"===t.person_layout?(0,s.jsxs)("div",{className:`shared-lineup-item shared-lineup-item-layout-v001 ${U}`,children:[(0,s.jsxs)("div",{className:"shared-lineup-portrait",children:[(0,s.jsxs)("div",{className:"shared-lineup-avatar-nameplate",children:[O&&(0,s.jsx)("div",{className:"shared-lineup-avatar-name",children:O}),M&&(0,s.jsx)("div",{className:"shared-lineup-avatar-title",children:M})]}),(0,s.jsx)("div",{className:"shared-lineup-avatar-container",children:(0,s.jsx)("div",{className:"shared-lineup-avatar",style:{paddingTop:I},children:T&&(0,s.jsx)("img",{src:T,alt:O||"Person avatar",className:"shared-lineup-avatar-img",width:null==C?void 0:C.width,height:null==C?void 0:C.height})})})]}),(0,s.jsxs)("div",{className:"shared-lineup-item-contents",children:[P&&(0,s.jsx)("div",{className:"shared-lineup-item-contents-bio",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:P})}),t.display_socials&&(0,s.jsxs)("div",{className:"shared-lineup-item-contents-socials",children:[D&&(0,s.jsx)("a",{href:D,target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("img",{src:"https://runt-media.motionapp.com/strapi/strapi_lineup_linkedin_icon_c8a5f82aa4.png",alt:"LinkedIn"})}),F&&(0,s.jsx)("a",{href:F,target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("img",{src:"https://runt-media.motionapp.com/strapi/strapi_lineup_x_icon_9f345226b0.png",alt:"Twitter"})})]})]})]},`${r}${e.id}`):(0,s.jsxs)("div",{className:`shared-lineup-item shared-lineup-item-layout-v000 ${U}`,children:[T&&(0,s.jsxs)("div",{className:"shared-lineup-avatar",style:{paddingTop:I},children:[(0,s.jsx)("img",{src:T,alt:O||"Person avatar",className:"shared-lineup-avatar-img"}),(0,s.jsx)("div",{className:"shared-lineup-avatar-nameplate",children:(0,s.jsx)("span",{className:"shared-lineup-avatar-nameplate-text",children:O})})]}),(0,s.jsxs)("div",{className:"shared-lineup-item-contents",children:[M&&(0,s.jsx)("div",{className:"shared-lineup-item-contents-title",children:M}),P&&(0,s.jsx)("div",{className:"shared-lineup-item-contents-bio",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:P})}
2),t.display_socials&&(0,s.jsxs)("div",{className:"shared-lineup-item-contents-socials",children:[D&&(0,s.jsx)("a",{href:D,target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("img",{src:"https://runt-media.motionapp.com/strapi/strapi_lineup_linkedin_icon_c8a5f82aa4.png",alt:"LinkedIn"})}),F&&(0,s.jsx)("a",{href:F,target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("img",{src:"https://runt-media.motionapp.com/strapi/strapi_lineup_x_icon_9f345226b0.png",alt:"Twitter"})})]})]})]},`${r}${e.id}`)};if(!0===t.hide)return null;if("legacy-event-001"===t.person_layout)return(0,s.jsx)("div",{className:`shared-lineup shared-lineup-legacy-event-001 ${t.class?t.class:""}`.trim(),children:(0,s.jsxs)("div",{className:"shared-lineup-legacy-grid",children:[(0,s.jsxs)("div",{className:"shared-lineup-legacy-speakers",children:[(0,s.jsx)("h2",{className:"shared-lineup-legacy-heading",children:"Speakers"}),(0,s.jsx)("div",{className:"shared-lineup-legacy-speaker-list",children:t.people.map((e,t)=>{var n,r,a,i,o,l,c,u,d,h;const p=null!==(a=null!==(n=e.avatar)&&void 0!==n?n:null===(r=e.author)||void 0===r?void 0:r.avatar)&&void 0!==a?a:void 0,m=K(null!=p?p:void 0),f=null!==(l=null!==(o=null===(i=e.author)||void 0===i?void 0:i.name)&&void 0!==o?o:e.name)&&void 0!==l?l:null,v=null!==(d=null!==(c=e.title)&&void 0!==c?c:null===(u=e.author)||void 0===u?void 0:u.title)&&void 0!==d?d:null;return(0,s.jsxs)("div",{className:"shared-lineup-legacy-speaker",children:[m&&(0,s.jsx)("img",{src:m,alt:f||"Speaker",className:"shared-lineup-legacy-avatar",width:null==p?void 0:p.width,height:null==p?void 0:p.height,loading:"lazy"}),(0,s.jsxs)("div",{className:"shared-lineup-legacy-speaker-text",children:[f&&(0,s.jsx)("div",{className:"shared-lineup-legacy-speaker-name",children:f}),v&&(0,s.jsx)("div",{className:"shared-lineup-legacy-speaker-title",children:v})]})]},`${null!==(h=e.id)&&void 0!==h?h:t}`)})})]}),(0,s.jsxs)("div",{className:"shared-lineup-legacy-details",children:[t.title&&(0,s.jsx)("h2",{className:"shared-lineup-legacy-heading",children:t.title}),t.body&&(0,s.jsx)("div",{className:"shared-lineup-legacy-details-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})})]})]})});if(D){const e=d&&!R;return(0,s.jsxs)("div",{className:`shared-lineup shared-lineup-slider ${O?"shared-lineup-slider-infinite":""} ${R?"shared-lineup-slider-dots":""} ${t.class?t.class:""}`,children:[(0,s.jsxs)("div",{className:"shared-lineup-header",children:[t.timeslot&&(0,s.jsx)("div",{className:"shared-lineup-timeslot",children:t.timeslot}),t.title&&(0,s.jsx)("h2",{className:"shared-lineup-title",children:t.title}),(0,s.jsxs)("div",{className:"shared-lineup-subtitle-and-body",children:[t.subtitle&&(0,s.jsx)("div",{className:"shared-lineup-subtitle",children:t.subtitle}),t.body&&(0,s.jsx)("div",{className:"shared-lineup-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})})]}),e&&(0,s.jsxs)("div",{className:"shared-lineup-slider-nav-buttons-container",children:[(0,s.jsx)("button",{className:"shared-lineup-slider-nav shared-lineup-slider-nav-prev",onClick:te,"aria-label":"Previous",children:(0,s.jsxs)("svg",{width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"0.5",y:"0.5",width:"51",height:"51",rx:"25.5",stroke:"#0A2CC2"}),(0,s.jsx)("path",{d:"M19.152 24.9066C18.5894 25.3052 18.5894 26.1401 19.152 26.5387L28.422 33.1049C29.0842 33.574 30 33.1004 30 32.2889L30 19.1564C30 18.3449 29.0842 17.8713 28.422 18.3404L19.152 24.9066Z",fill:"#0A2CC2"})]})}),(0,s.jsx)("button",{className:"shared-lineup-slider-nav shared-lineup-slider-nav-next",onClick:ne,"aria-label":"Next",children:(0,s.jsxs)("svg",{width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"-0.5",y:"0.5",width:"51",height:"51",rx:"25.5",transform:"matrix(-1 0 0 1 51 0)",stroke:"#0A2CC2"}),(0,s.jsx)("path",{d:"M32.848 24.9066C33.4106 25.3052 33.4106 26.1401 32.848 26.5387L23.578 33.1049C22.9158 33.574 22 33.1004 22 32.2889L22 19.1564C22 18.3449 22.9158 17.8713 23.578 18.3404L32.848 24.9066Z",fill:"#0A2CC2"})]})})]})]}),(0,s.jsx)("div",{className:"shared-lineup-slider-container",ref:N,children:(0,s.jsx)("div",{ref:E,className:"shared-lineup-slider-track "+(d||O?"":"shared-lineup-slider-track-centered"),style:{position:"relative"},children:z.map(({person:e,index:t,key:n})=>le(e,0,n+"-"))})}),R&&$>1&&(0,s.jsx)("div",{className:"shared-lineup-dots",children:t.people.map((e,t)=>{var n;return(0,s.jsx)("button",{type:"button",className:"shared-lineup-dot"+(t===w?" is-active":""),"aria-label":`Go to slide ${t+1}`,"aria-current":t===w,onClick:()=>Z(t,{manual:!0})},null!==(n=e.id)&&void 0!==n?n:t)})})]})}return(0,s.jsxs)("div",{className:`shared-lineup ${t.class?t.class:""}`,children:[(t.timeslot||t.title||t.subtitle||t.body)&&(0,s.jsxs)("div",{className:"shared-lineup-header",children:[t.timeslot&&(0,s.jsx)("div",{className:"shared-lineup-timeslot",children:t.timeslot}),t.title&&(0,s.jsx)("h2",{className:"shared-lineup-title",children:t.title}),(0,s.jsxs)("div",{className:"shared-lineup-subtitle-and-body",children:[t.subtitle&&(0,s.jsx)("div",{className:"shared-lineup-subtitle",children:t.subtitle}),t.body&&(0,s.jsx)("div",{className:"shared-lineup-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})})]})]}),(0,s.jsx)("div",{className:"shared-lineup-items",children:t.people.map((e,t)=>le(e))}),t.register_button&&(0,s.jsx)("div",{className:"shared-lineup-register",children:(0,s.jsx)(Al,{baseUrl:e,registerButton:t.register_button,dates:r})})]})},yd=({baseUrl:e,logo:t})=>{var n,r,a,i,o;const l=null===(r=null===(n=t.logo)||void 0===n?void 0:n.image)||void 0===r?void 0:r.image;if(!l)return null;const c=(u=l.url).startsWith("http")?u:`${e}${u}`;var u;const d=null!==(o=null!==(a=t.name)&&void 0!==a?a:null===(i=t.logo)||void 0===i?void 0:i.name)&&void 0!==o?o:"Logo";return(0,s.jsx)("div",{className:"shared-logos-logo",children:(0,s.jsx)("img",{src:c,alt:d,className:"shared-logos-logo-image",width:l.width,height:l.height})})},xd=({baseUrl:e,block:t,loop:n=!1})=>{var r;if(!0===t.hide)return null;const a=null!==(r=t.logos)&&void 0!==r?r:[];if(0===a.length)return null;const i=t.title||t.title_smallscreen,o=t=>a.map((n,r)=>{var a;return(0,s.jsx)(yd,{baseUrl:e,logo:n},`${t}${null!==(a=n.id)&&void 0!==a?a:r}`)}),l=n?(0,s.jsx)("div",{className:"shared-logos-marquee",children:(0,s.jsxs)("div",{className:"shared-logos-track",children:[o(""),(0,s.jsx)("span",{className:"shared-logos-dup",hidden:!0,"aria-hidden":"true",children:o("dup-")})]})}):(0,s.jsx)("div",{className:"shared-logos-grid",children:o("")});return(0,s.jsxs)("div",{className:"shared-logos"+(n?" shared-logos-loop":""),children:[i&&(0,s.jsxs)("div",{className:"shared-logos-header",children:[t.title&&(0,s.jsx)("h2",{className:"shared-logos-title shared-logos-title-default",children:t.title}),t.title_smallscreen&&(0,s.jsx)("h2",{className:"shared-logos-title shared-logos-title-smallscreen",children:t.title_smallscreen})]}),l]})};i(7532);const wd="event-registration",_d=({baseUrl:e,block:t,event:r})=>{var a,i,o,l,c,d,h;const p=(null===(i=null===(a=null==r?void 0:r.event_category)||void 0===a?void 0:a.name)||void 0===i?void 0:i.trim())||null,m=null!==(c=null===(l=null===(o=t.slider)||void 0===o?void 0:o.image)||void 0===l?void 0:l.filter(e=>null!=e))&&void 0!==c?c:[],f=m.length,v=f>1,g=(null===(d=t.event_datetime_string_override_avoid)||void 0===d?void 0:d.trim())||null,b=(null==r?void 0:r.start_date)?function(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return null;
2const n="America/New_York",r=new Intl.DateTimeFormat("en-US",{month:"long",timeZone:n}).format(t),a=Number(new Intl.DateTimeFormat("en-US",{day:"numeric",timeZone:n}).format(t)),s=new Intl.DateTimeFormat("en-US",{year:"numeric",timeZone:n}).format(t),i=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0,timeZone:n}).format(t);return r&&a&&s?`${r} ${a}${function(e){const t=e%100;if(t>=11&&t<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(a)}, ${s} | ${i} ET`:null}(r.start_date):null,y=null!=g?g:b,x=null!==(h=t.register_button)&&void 0!==h?h:null,w=(null==r?void 0:r.registration_close_date)?[{type:"event-registration-close",date:r.registration_close_date}]:[],_=v?[m[f-1],...m,m[0]]:m,[k,N]=(0,n.useState)(v?1:0),[E,j]=(0,n.useState)(!0),[S,C]=(0,n.useState)(!1),T=(0,n.useRef)(null),A=(0,n.useRef)(!1),L=(0,n.useRef)(null),I=(0,n.useRef)(k);I.current=k;const M=v?(k-1+f)%f:k,P=(0,n.useCallback)(e=>{j(!0),N(e)},[]),O=(0,n.useCallback)(()=>{v&&(j(!0),N(e=>e+1))},[v]),R=(0,n.useCallback)(()=>{v&&(j(!0),N(e=>e-1))},[v]),D=(0,n.useCallback)(()=>{v&&(k===_.length-1?(j(!1),N(1)):0===k&&(j(!1),N(f)))},[v,k,_.length,f]);(0,n.useEffect)(()=>{if(E)return;const e=requestAnimationFrame(()=>{requestAnimationFrame(()=>j(!0))});return()=>cancelAnimationFrame(e)},[E]),(0,n.useEffect)(()=>{if(v&&u())return L.current||(L.current=setInterval(()=>{"undefined"!=typeof document&&document.hidden||A.current||O()},2e3)),()=>{L.current&&(clearInterval(L.current),L.current=null)}},[v,O]),(0,n.useEffect)(()=>{if(!v||!u())return;const e=()=>{if(document.hidden)return;const e=I.current;if(e<1||e>f){const t=((e-1)%f+f)%f;j(!1),N(t+1)}};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[v,f]);const F=(0,n.useRef)(null),U=_.length>0?100*k:0;return(0,s.jsxs)("div",{className:"classic-hero",children:[(0,s.jsxs)("div",{className:"classic-hero-content",children:[p&&(0,s.jsx)("div",{className:"classic-hero-badge",children:p}),t.title&&(0,s.jsx)("h1",{className:"classic-hero-title",children:t.title}),y&&(0,s.jsx)("div",{className:"classic-hero-date",children:y}),t.body&&(0,s.jsx)("div",{className:"classic-hero-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})}),x?(0,s.jsx)("div",{className:"classic-hero-register",children:(0,s.jsx)(Al,{baseUrl:e,registerButton:x,dates:w})}):(0,s.jsx)("a",{href:`#${wd}`,className:"classic-hero-button",onClick:e=>{if(!u())return;const t=document.getElementById(wd);t&&(e.preventDefault(),window.history&&"function"==typeof window.history.pushState?window.history.pushState(null,"",`#${wd}`):window.location.hash=wd,t.scrollIntoView({behavior:"smooth",block:"start"}))},children:"Watch now"})]}),f>0&&(0,s.jsx)("div",{className:"classic-hero-media",children:(0,s.jsxs)("div",{className:("classic-hero-slider "+(S?"is-controls-visible":"")).trim(),onMouseEnter:()=>{A.current=!0},onMouseLeave:()=>{A.current=!1},onTouchStart:e=>{var t,n,r;C(!0),r=null!==(n=null===(t=e.touches[0])||void 0===t?void 0:t.clientX)&&void 0!==n?n:0,A.current=!0,F.current=r},onTouchEnd:e=>{var t,n;return(e=>{const t=F.current;if(F.current=null,A.current=!1,null==t||!v)return;const n=e-t;Math.abs(n)<40||(n<0?O():R())})(null!==(n=null===(t=e.changedTouches[0])||void 0===t?void 0:t.clientX)&&void 0!==n?n:0)},children:[(0,s.jsx)("div",{className:"classic-hero-slider-mask",children:(0,s.jsx)("div",{ref:T,className:"classic-hero-slider-track",style:{transform:`translate3d(-${U}%, 0, 0)`,transition:E?"transform 600ms ease":"none"},onTransitionEnd:D,children:_.map((t,n)=>(0,s.jsx)("div",{className:"classic-hero-slide",children:(0,s.jsx)(hd,{baseUrl:e,block:t})},`classic-hero-slide-${n}`))})}),v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",className:"classic-hero-arrow classic-hero-arrow-prev","aria-label":"Previous slide",onClick:R,children:(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M3.31066 8.75001L9.03033 14.4697L7.96967 15.5303L0.439339 8.00001L7.96967 0.469676L9.03033 1.53034L3.31066 7.25001L15.5 7.25L1
25.5 8.75L3.31066 8.75001Z",fill:"currentColor"})})}),(0,s.jsx)("button",{type:"button",className:"classic-hero-arrow classic-hero-arrow-next","aria-label":"Next slide",onClick:O,children:(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M12.6893 7.25L6.96967 1.53033L8.03033 0.469666L15.5607 8L8.03033 15.5303L6.96967 14.4697L12.6893 8.75H0.5V7.25H12.6893Z",fill:"currentColor"})})}),(0,s.jsx)("div",{className:"classic-hero-dots",children:m.map((e,t)=>(0,s.jsx)("button",{type:"button",className:("classic-hero-dot "+(t===M?"is-active":"")).trim(),"aria-label":`Go to slide ${t+1}`,onClick:()=>P(v?t+1:t)},`classic-hero-dot-${t}`))})]})]})})]})};i(2308);const kd=e=>{const t=new Date,n=e.getTime()-t.getTime();return n<=0?{days:0,hours:0,minutes:0,seconds:0,isExpired:!0}:{days:Math.floor(n/864e5),hours:Math.floor(n/36e5%24),minutes:Math.floor(n/6e4%60),seconds:Math.floor(n/1e3%60),isExpired:!1}},Nd=({block:e,event:t})=>{const r=(0,n.useMemo)(()=>t.registration_close_date?new Date(t.registration_close_date):null,[t.registration_close_date]),[a,i]=(0,n.useState)(null);if((0,n.useEffect)(()=>{if(!r)return void i({days:0,hours:0,minutes:0,seconds:0,isExpired:!0});i(kd(r));const e=setInterval(()=>{i(kd(r))},1e3);return()=>clearInterval(e)},[r]),"countdown_to_registration_close"!==e.type)return null;if(!e.registration_close_countdown_ticker_format)return null;if(!t.registration_close_date)return null;const o=e=>e.toString().padStart(2,"0"),l=(e,t)=>`${e}s`;return(0,s.jsxs)("div",{className:`shared-registration-information ${e.class?e.class:""} ${(null==a?void 0:a.isExpired)?"expired":""}`,children:[e.rich_text_before_countdown_ticker&&(0,s.jsx)("div",{className:"rich-text-before-countdown",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:e.rich_text_before_countdown_ticker})}),a?"days-hours-minutes-seconds"===e.registration_close_countdown_ticker_format?(0,s.jsxs)("div",{className:"countdown-ticker",children:[(0,s.jsxs)("div",{className:"countdown-unit countdown-days",children:[(0,s.jsx)("span",{className:"countdown-value",children:o(a.days)}),(0,s.jsx)("span",{className:"countdown-label",children:l("day",a.days)})]}),(0,s.jsx)("div",{className:"countdown-separator"}),(0,s.jsxs)("div",{className:"countdown-unit countdown-hours",children:[(0,s.jsx)("span",{className:"countdown-value",children:o(a.hours)}),(0,s.jsx)("span",{className:"countdown-label",children:l("hour",a.hours)})]}),(0,s.jsx)("div",{className:"countdown-separator"}),(0,s.jsxs)("div",{className:"countdown-unit countdown-minutes",children:[(0,s.jsx)("span",{className:"countdown-value",children:o(a.minutes)}),(0,s.jsx)("span",{className:"countdown-label",children:l("minute",a.minutes)})]}),(0,s.jsx)("div",{className:"countdown-separator"}),(0,s.jsxs)("div",{className:"countdown-unit countdown-seconds",children:[(0,s.jsx)("span",{className:"countdown-value",children:o(a.seconds)}),(0,s.jsx)("span",{className:"countdown-label",children:l("second",a.seconds)})]})]}):null:(0,s.jsxs)("div",{className:"countdown-ticker countdown-ticker-loading",children:[(0,s.jsxs)("div",{className:"countdown-unit countdown-days",children:[(0,s.jsx)("span",{className:"countdown-value",children:"--"}),(0,s.jsx)("span",{className:"countdown-label",children:"days"})]}),(0,s.jsx)("div",{className:"countdown-separator"}),(0,s.jsxs)("div",{className:"countdown-unit countdown-hours",children:[(0,s.jsx)("span",{className:"countdown-value",children:"--"}),(0,s.jsx)("span",{className:"countdown-label",children:"hours"})]}),(0,s.jsx)("div",{className:"countdown-separator"}),(0,s.jsxs)("div",{className:"countdown-unit countdown-minutes",children:[(0,s.jsx)("span",{className:"countdown-value",children:"--"}),(0,s.jsx)("span",{className:"countdown-label",children:"minutes"})]}),(0,s.jsx)("div",{className:"countdown-separator"}),(0,s.jsxs)("div",{className:"countdown-unit countdown-seconds",children:[(0,s.jsx)("span",{className:"countdown-value",children:"--"}),(0,s.jsx)("span",{className:"countdown-label",children:"seconds"})]})]}),e.rich_text_after_countdown_ticker&&(0,s.jsx)("div",{className:"rich-text-after-countdown",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:e.rich_text_after_countdown_ticker})})]})},Ed='<svg viewBox="0 0 24 24" fill="#050505" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M17.5 3h3l-6.6 7.5L21.7 21h-6.1l-4.3-5.6L6.3 21H3.3l7-8L2.6 3h6.2l3.9 5.2L17.5 3zm-1.1 16h1.7L7.7 4.8H5.9L16.4 19z"></path></svg>',jd={tiktok:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="#25F4EE" d="M15.6 3.7c.3 2.1 1.6 3.6 3.7 3.9v2.6c-1.4.1-2.7-.3-3.8-1.1v5.9c0 3.6-2.6 6.2-6 6.2-3.3 0-5.8-2.4-5.8-5.6 0-3.1 2.4-5.6 5.6-5.6.4 0 .8 0 1.2.1v2.8c-.4-.1-.7-.2-1.1-.2-1.6 0-2.9 1.3-2.9 2.9 0 1.7 1.2 2.9 2.8 2.9 1.7 0 3-1.3 3-3.3V3.7h2.9z"></path><path fill="#FE2C55" d="M17.4 3.3c.3 2.1 1.6 3.6 3.7 3.9v2.6c-1.4.1-2.7-.3-3.8-1.1v5.9c0 3.6-2.6 6.2-6 6.2-3.3 0-5.8-2.4-5.8-5.6 0-3.1 2.4-5.6 5.6-5.6.4 0 .8 0 1.2.1v2.8c-.4-.1-.7-.2-1.1-.2-1.6 0-2.9 1.3-2.9 2.9 0 1.7 1.2 2.9 2.8 2.9 1.7 0 3-1.3 3-3.3V3.3h2.9z"></path><path fill="#010101" d="M16.5 3.5c.3 2.1 1.6 3.6 3.7 3.9v2.6c-1.4.1-2.7-.3-3.8-1.1v5.9c0 3.6-2.6 6.2-6 6.2-3.3 0-5.8-2.4-5.8-5.6 0-3.1 2.4-5.6 5.6-5.6.4 0 .8 0 1.2.1v2.8c-.4-.1-.7-.2-1.1-.2-1.6 0-2.9 1.3-2.9 2.9 0 1.7 1.2 2.9 2.8 2.9 1.7 0 3-1.3 3-3.3V3.5h2.9z"></path></svg>',instagram:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><defs><linearGradient id="rnIgGrad" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#FEDA75"></stop><stop offset="0.3" stop-color="#FA7E1E"></stop><stop offset="0.6" stop-color="#D62976"></stop><stop offset="0.8" stop-color="#962FBF"></stop><stop offset="1" stop-color="#4F5BD5"></stop></linearGradient></defs><rect x="3" y="3" width="18" height="18" rx="5.4" fill="none" stroke="url
2(#rnIgGrad)" stroke-width="2"></rect><circle cx="12" cy="12" r="4" fill="none" stroke="url(#rnIgGrad)" stroke-width="2"></circle><circle cx="17.2" cy="6.8" r="1.3" fill="url(#rnIgGrad)"></circle></svg>',x:Ed,twitter:Ed,linkedin:'<svg viewBox="0 0 24 24" fill="#0A66C2" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M4.98 3.5A2.5 2.5 0 002.5 6 2.5 2.5 0 005 8.5 2.5 2.5 0 007.5 6 2.5 2.5 0 004.98 3.5zM3 9h4v12H3V9zm6 0h3.8v1.7h.05c.53-1 1.83-2.05 3.77-2.05C20.4 8.65 22 10.6 22 14v7h-4v-6.2c0-1.5-.03-3.4-2.08-3.4-2.08 0-2.4 1.6-2.4 3.25V21H9V9z"></path></svg>',github:'<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"></path></svg>',youtube:'<svg viewBox="0 0 24 24" fill="#FF0000" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.6 12 3.6 12 3.6s-7.5 0-9.4.5A3 3 0 0 0 .5 6.2 31 31 0 0 0 0 12a31 31 0 0 0 .5 5.8 3 3 0 0 0 2.1 2.1c1.9.5 9.4.5 9.4.5s7.5 0 9.4-.5a3 3 0 0 0 2.1-2.1A31 31 0 0 0 24 12a31 31 0 0 0-.5-5.8zM9.6 15.6V8.4L15.8 12l-6.2 3.6z"></path></svg>'};function Sd(e){var t;const n=(null!=e?e:"").trim().toLowerCase();return null!==(t=jd[n])&&void 0!==t?t:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>'}const Cd=({baseUrl:e,card:t})=>{var n,r,a,i,o,l,c,u,d,h,p;const m=t=>t?t.url.startsWith("http")?t.url:`${e}${t.url}`:null,f=null===(n=t.image)||void 0===n?void 0:n.image,v=m(f);if("customer-story"===t.layout){const n=Boolean(null===(r=t.video)||void 0===r?void 0:r.external_video_id);return(0,s.jsxs)("div",{className:`events-card layout-customer-story ${t.class?t.class:""}`,children:[(0,s.jsx)("div",{className:"customer-story-media",children:n?(0,s.jsx)(Zu,{block:t.video,baseUrl:e,facade:!0}):(0,s.jsx)("span",{className:"customer-story-watch",children:"watch video"})}),(0,s.jsxs)("div",{className:"customer-story-content",children:[v&&(0,s.jsx)("div",{className:"customer-story-banner",children:(0,s.jsx)("img",{src:v,alt:t.title||"Customer logo",width:null==f?void 0:f.width,height:null==f?void 0:f.height})}),t.title&&(0,s.jsx)("h3",{className:"events-card-title",children:t.title}),t.body&&(0,s.jsx)("div",{className:"events-card-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})}),t.tags&&t.tags.length>0&&(0,s.jsx)("div",{className:"customer-story-tags",children:t.tags.map(e=>{var t;const n=m(null!==(t=e.image)&&void 0!==t?t:void 0);return(0,s.jsxs)("span",{className:`customer-story-tag ${e.class?e.class:""}`,children:[n&&(0,s.jsx)("img",{className:"customer-story-tag-icon",src:n,alt:""}),e.tag]},e.id)})})]})]})}const g=t.person,b=null!==(a=null==g?void 0:g.avatar)&&void 0!==a?a:null===(i=null==g?void 0:g.author)||void 0===i?void 0:i.avatar,y=m(b),x=null!==(o=null==g?void 0:g.name)&&void 0!==o?o:null===(l=null==g?void 0:g.author)||void 0===l?void 0:l.name,w=null!==(c=null==g?void 0:g.title)&&void 0!==c?c:null===(u=null==g?void 0:g.author)||void 0===u?void 0:u.title,_=null!==(d=null==g?void 0:g.class)&&void 0!==d?d:"",k=`events-card ${t.class?t.class:""}`.trim(),N=(0,s.jsxs)(s.Fragment,{children:[t.icon&&(0,s.jsx)("span",{className:"events-card-icon","aria-hidden":"true",dangerouslySetInnerHTML:{__html:Sd(t.icon)}}),v&&(0,s.jsxs)("div",{className:"events-card-image-container",children:[(0,s.jsx)("img",{src:v,alt:t.title||"Card image",className:"events-card-image",width:null==f?void 0:f.width,height:null==f?void 0:f.height}),(null===(h=t.image)||void 0===h?void 0:h.caption)&&(0,s.jsx)("div",{className:"events-card-image-caption",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.image.caption})})]}),(0,s.jsxs)("div",{className:"events-card-content",children:[t.eyebrow&&(0,s.jsx)("div",{className:"events-card-eyebrow",children:t.eyebrow}),t.timeslot&&(0,s.jsx)("span",{className:"events-card-timeslot",children:t.timeslot}),t.title&&(0,s.jsx)("h3",{className:"events-card-title",children:t.title}),t.body&&(0,s.jsx)("div",{className:"events-card-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})}),g&&(0,s.jsxs)("div",{className:`events-card-person ${_}`,children:[(0,s.jsx)("div",{className:"events-card-person-avatar",children:y&&(0,s.jsx)("img",{src:y,alt:x||"Person avatar",className:"events-card-person-avatar-img",width:null==b?void 0:b.width,height:null==b?void 0:b.height})}),(0,s.jsxs)("div",{className:"events-card-person-info",children:[x&&(0,s.jsx)("div",{className:"events-card-person-name",children:x}),w&&(0,s.jsx)("div",{className:"events-card-person-title",children:w})]})]})]})]});if(t.href){const e=null!==(p=t.href_target)&&void 0!==p?p:"_self";return(0,s.jsx)("a",Object.assign({className:`${k} events-card-linked`,href:t.href,target:e},"_blank"===e?{rel:"noopener noreferrer"}:{},{children:N}))}return(0,s.jsx)("div",{className:k,children:N})},Td=({baseUrl:e,block:t})=>{var n,r,a;const i=null!==(n=t.layout)&&void 0!==n?n:"default",o=(null!==(r=t.cards)&&void 0!==r?r:[]).filter(e=>!0!==e.hide),l=t=>t?t.url.startsWith("http")?t.url:`${e}${t.url}`:null,c=null===(a=t.background_image)||void 0===a?void 0:a.image,u=l(c),d=u?{backgroundImage:`url(${u})`}:{},h=()=>(t.eyebrow||t.title||t.subtitle)&&(0,s.jsxs)("div",{className:"events-card-list-header",children:[t.eyebrow&&(0,s.jsx)("p",{className:"events-card-list-eyebrow",children:t.eyebrow}),t.title&&(0,s.jsx)("h2",{className:"events-card-list-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.title})}),t.subtitle&&(0,s.jsx)("p",{className:"events-card-list-subtitle",children:t.subtitle})]}),p=()=>t.body&&(0,s.jsx)("div",{className:"events-card-list-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})}),m=()=>(0,s.jsx)("div",{className:"events-card-list-cards",children:o.map(t=>(0,s.jsx)(Cd,{baseUrl:e,card:t},t.id))}),f=(e,t)=>{const n=null==e?void 0:e.image;if(!n)return null;const r=l(n);if(!r)return null;let a="number"==typeof e.id?`events-card-list-image-container-${e.id}`:"events-card-list-image-container";return"number"==typeof t&&(a=`${a}-${t}`),(0,s.jsx)("div",{className:"events-card-list-image-container "+("number"==typeof t?`events-card-list-image-container-${t}`:""),children:(0,s.jsx)("div",{className:`events-card-list-image ${sd(n.mime)}`,children:(0,s.jsx)(id,{src:r,mime:n.mime,alt:"",width:n.width,height:n.height})})},a)},v=()=>t.images&&t.images.length>0&&(0,s.jsx)("div",{className:"events-card-list-images",children:t.images.map((e,t)=>f(e,t))});
2if("marquee"===i){const n=o,r=Math.ceil(n.length/2),a=[n.slice(0,r),n.slice(r)].filter(e=>e.length>0);return(0,s.jsxs)("div",{className:`events-card-list layout-${i} ${t.class?t.class:""}`,children:[h(),p(),a.length>0&&(0,s.jsx)("div",{className:"events-card-list-marquee",style:d,children:a.map((t,n)=>(0,s.jsx)("div",{className:"events-card-list-marquee-row",children:[0,1].map(n=>(0,s.jsx)("div",{className:"events-card-list-marquee-group","aria-hidden":1===n,children:t.map(t=>(0,s.jsx)(Cd,{baseUrl:e,card:t},`${n}-${t.id}`))},n))},n))})]})}return"image-on-right"===i?(0,s.jsxs)("div",{className:`events-card-list layout-${i} ${t.class?t.class:""}`,style:d,children:[(0,s.jsxs)("div",{className:"events-card-list-content",children:[h(),p(),m()]}),f(t.image),v()]}):"images-at-end-of-content-block"===i?(0,s.jsx)("div",{className:`events-card-list layout-${i} ${t.class?t.class:""}`,style:d,children:(0,s.jsxs)("div",{className:"events-card-list-content",children:[h(),p(),m(),f(t.image),v()]})}):"image-on-left"===i?(0,s.jsxs)("div",{className:`events-card-list layout-${i} ${t.class?t.class:""}`,style:d,children:[f(t.image),v(),(0,s.jsxs)("div",{className:"events-card-list-content",children:[h(),p(),m()]})]}):"body-on-right"===i?(0,s.jsxs)("div",{className:`events-card-list layout-${i} ${t.class?t.class:""}`,style:d,children:[h(),(0,s.jsxs)("div",{className:"events-card-list-content",children:[m(),p()]})]}):"body-and-cards-on-right"===i?(0,s.jsxs)("div",{className:`events-card-list layout-${i} ${t.class?t.class:""}`,style:d,children:[h(),(0,s.jsxs)("div",{className:"events-card-list-content",children:[p(),m()]})]}):"left-title-image-right-cards"===i?(0,s.jsxs)("div",{className:`events-card-list layout-${i} ${t.class?t.class:""}`,style:d,children:[(0,s.jsxs)("div",{className:"events-card-list-header-and-image",children:[h(),f(t.image),v()]}),(0,s.jsx)("div",{className:"events-card-list-content",children:m()})]}):(0,s.jsxs)("div",{className:`events-card-list layout-${null!=i?i:"default"} ${t.class?t.class:""}`,style:d,children:[h(),p(),m()]})},Ad=({block:e})=>{var t,r;const a=null!==(t=e.count_from_int)&&void 0!==t?t:0,i=null!==(r=e.count_to_int)&&void 0!==r?r:100,[o,l]=(0,n.use
2State)(a),[c,u]=(0,n.useState)(!1),d=(0,n.useRef)(null),h=(0,n.useCallback)(()=>{if(c)return;u(!0);const e=performance.now(),t=a,n=i-t,r=a=>{const s=a-e,i=Math.min(s/2e3,1),o=(c=i,1-Math.pow(1-c,4));var c;const u=Math.round(t+n*o);l(u),i<1&&requestAnimationFrame(r)};requestAnimationFrame(r)},[a,i,c]);return(0,n.useEffect)(()=>{const e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&!c&&h()})},{threshold:.5,rootMargin:"0px"}),t=d.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[h,c]),(0,s.jsx)("div",{ref:d,className:"shared-visual-counter",children:(0,s.jsx)("span",{className:"shared-visual-counter-number",children:(p=o,p.toLocaleString()).split("").map((e,t)=>(0,s.jsx)("span",{className:"shared-visual-counter-char",children:e},t))})});var p},Ld=({baseUrl:e="",block:t})=>{var r;const a=(0,n.useRef)(null),i=(0,n.useMemo)(()=>{var n;if(!t.html)return"";const r=null!==(n=t.data)&&void 0!==n?n:{};return function(e,t,n){return t&&"object"==typeof t?e.replace(/\{\{([^}]+)\}\}/g,(e,r)=>{const a=r.trim(),s=function(e,t){if(!e||"object"!=typeof e)return;const n=t.split(".");let r=e;for(const e of n){if(null==r||"object"!=typeof r)return;r=r[e]}return r}(t,a);return null==s||"string"!=typeof s?"":n&&!s.startsWith("http")&&s.startsWith("/")?`${n.replace(/\/$/,"")}${s}`:s}):e}(t.html,r,e)},[t.html,t.data,e]);return(0,n.useEffect)(()=>{if(!t.javascript||!a.current)return;const e=document.createElement("script");return e.textContent=t.javascript,e.async=!1,a.current.appendChild(e),()=>{e.remove()}},[t.javascript]),t.html?(0,s.jsx)("div",{ref:a,className:`shared-html ${null!==(r=t.class)&&void 0!==r?r:""}`.trim(),children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})}):null};i(8412);const Id=()=>(0,s.jsxs)("svg",{width:"18",height:"12",viewBox:"0 0 18 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,s.jsx)("rect",{y:"0",width:"18",height:"1.5",fill:"currentColor"}),(0,s.jsx)("rect",{y:"5.25",width:"18",height:"1.5",fill:"currentColor"}),(0,s.jsx)("rect",{y:"10.5",width:"18",height:"1.5",fill:"currentColor"})]}),Md=()=>(0,s.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,s.jsx)("line",{x1:"1.06",y1:"1.06",x2:"16.94",y2:"16.94",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,s.jsx)("line",{x1:"16.94",y1:"1.06",x2:"1.06",y2:"16.94",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});function Pd(e){let t;try{t=new URL(e).pathname}catch(n){t=e.split("?")[0].split("#")[0]}return t.length>1&&t.endsWith("/")?t.slice(0,-1):t}const Od=({member:e,baseUrl:t,candidateCurrentPaths:n=[],activeContentDocumentId:r})=>{var a,i,o,l,c,u,d,h,p,m,f,v;const g=null!==(c=null!==(o=null===(i=null===(a=e.navigation_item)||void 0===a?void 0:a.route)||void 0===i?void 0:i.full_path)&&void 0!==o?o:null===(l=e.navigation_item)||void 0===l?void 0:l.link)&&void 0!==c?c:null,b=null!==(p=null!==(h=null!==(u=e.text)&&void 0!==u?u:null===(d=e.navigation_item)||void 0===d?void 0:d.text)&&void 0!==h?h:e.name)&&void 0!==p?p:"",y=(null===(f=null===(m=e.icon)||void 0===m?void 0:m.image)||void 0===f?void 0:f.url)?t&&!e.icon.image.url.startsWith("http")?`${t.replace(/\/$/,"")}${e.icon.image.url}`:e.icon.image.url:null,x=function(e){var t;const n=null===(t=e.navigation_item)||void 0===t?void 0:t.route;return n?"object"==typeof n.event&&null!==n.event?n.event.documentId:"object"==typeof n.drop&&null!==n.drop?n.drop.documentId:"object"==typeof n.report&&null!==n.report?n.report.documentId:null:null}(e),w=null!=r&&null!==x&&x===r||null!=g&&n.length>0&&n.includes(Pd(g)),_=(0,s.jsxs)(s.Fragment,{children:[y&&(0,s.jsx)("span",{className:"shared-navigation__icon",children:(0,s.jsx)("img",{src:y,alt:"","aria-hidden":"true"})}),(0,s.jsx)("span",{className:"shared-navigation__item-text",children:b})]}),k=["shared-navigation__item",g?"":"shared-navigation__item--no-link",w?"shared-navigation__item--active":""].filter(Boolean).join(" ");return g?(0,s.jsx)("a",{className:k,href:g,target:null!==(v=e.anchor_target)&&void 0!==v?v:"_self",children:_}):(0,s.jsx)("span",{className:k,children:_})};
2function Rd(e,t,n){var r,a,s,i;const o=null===(i=null===(s=null===(a=null===(r=e.config)||void 0===r?void 0:r.children)||void 0===a?void 0:a[t.documentId])||void 0===s?void 0:s.index)||void 0===i?void 0:i[n];return"number"==typeof o?o:null}function Dd(e,t){var n;return[...null!==(n=e.children)&&void 0!==n?n:[]].map((n,r)=>({child:n,sourceIndex:r,configuredIndex:Rd(e,n,t)})).sort((e,t)=>null!==e.configuredIndex&&null!==t.configuredIndex&&e.configuredIndex!==t.configuredIndex?e.configuredIndex-t.configuredIndex:e.sourceIndex-t.sourceIndex).map(e=>e.child)}const Fd=({group:e,baseUrl:t,candidateCurrentPaths:n,activeContentDocumentId:r})=>{var a,i,o;const l=null!==(i=null!==(a=e.text)&&void 0!==a?a:e.name)&&void 0!==i?i:"",c=null!==(o=e.children)&&void 0!==o?o:[];return(0,s.jsxs)("div",{className:"shared-navigation__group",children:[l&&(0,s.jsx)("p",{className:"shared-navigation__group-title",children:l}),(0,s.jsx)("ul",{className:"shared-navigation__group-items",children:c.map(e=>(0,s.jsx)("li",{className:"shared-navigation__group-item",children:(0,s.jsx)(Od,{member:e,baseUrl:t,candidateCurrentPaths:n,activeContentDocumentId:r})},e.id))})]})},Ud=({block:e,baseUrl:t,navigation:r,currentPath:a,activeContentDocumentId:i})=>{var o,l,c;const[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(()=>"undefined"==typeof window?"desktop":window.matchMedia("(max-width: 991px)").matches?"smallscreen":"desktop"),m=(0,n.useRef)(null),f=(0,n.useRef)(null),v=(0,n.useCallback)(()=>{const e=m.current,t=f.current;if(!e||!t)return;const n=e.getBoundingClientRect().height,r=window.innerHeight;t.style.height=r-n+"px"},[]);(0,n.useEffect)(()=>{v();const e=new ResizeObserver(v);return m.current&&e.observe(m.current),window.addEventListener("resize",v),window.addEventListener("orientationchange",v),()=>{e.disconnect(),window.removeEventListener("resize",v),window.removeEventListener("orientationchange",v)}},[v]),(0,n.useEffect)(()=>{if("undefined"==typeof window)return;const e=()=>{p(window.matchMedia("(max-width: 991px)").matches?"smallscreen":"desktop")};return e(),window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[]),(0,n.useEffect)(()=>{if(!u)return;const e=requestAnimationFrame(v);return()=>cancelAnimationFrame(e)},[u,v]);const g=null!==(l=null!==(o=null==r?void 0:r.text)&&void 0!==o?o:null==r?void 0:r.name)&&void 0!==l?l:"",b=(0,n.useMemo)(()=>r?Dd(r,h):[],[r,h]),y=null!==(c=e.class)&&void 0!==c?c:"",x=y.includes("mobile-header"),w=y.includes("sidenav"),_=[];if(a){const e=Pd(a);e&&_.push(e)}if("undefined"!=typeof window){const e=Pd(window.location.pathname);e&&!_.includes(e)&&_.push(e);const t=Pd(window.location.href);t&&!_.includes(t)&&_.push(t)}if(!r)return null;const k=(0,s.jsx)("div",{className:"shared-navigation__groups",children:b.map(e=>{const n=Dd(e,h);return(0,s.jsx)(Fd,{group:Object.assign(Object.assign({},e),{children:n}),baseUrl:t,candidateCurrentPaths:_,activeContentDocumentId:i},e.id)})});return x?(0,s.jsxs)("nav",{className:`shared-navigation shared-navigation--mobile-header ${u?"shared-navigation--open":""} ${y}`,"aria-label":g||"Navigation",children:[(0,s.jsxs)("div",{className:"shared-navigation__mobile-bar",ref:m,children:[(0,s.jsx)("span",{className:"shared-navigation__mobile-title",children:g}),(0,s.jsx)("button",{className:"shared-navigation__mobile-toggle","aria-expanded":u,"aria-label":u?"Close navigation":"Open navigation",onClick:()=>d(e=>!e),children:u?(0,s.jsx)(Md,{}):(0,s.jsx)(Id,{})})]}),u&&(0,s.jsx)("div",{className:"shared-navigation__mobile-drawer",ref:f,children:k})]}):w?(0,s.jsxs)("nav",{className:`shared-navigation shared-navigation--sidenav ${u?"shared-navigation--open":""} ${y}`,"aria-label":g||"Navigation",children:[(0,s.jsxs)("div",{className:"shared-navigation__mobile-bar",ref:m,children:[(0,s.jsx)("span",{className:"shared-navigation__mobile-title",children:g}),(0,s.jsx)("button",{className:"shared-navigation__mobile-toggle","aria-expanded":u,"aria-label":u?"Close navigation":"Open navigation",onClick:()=>d(e=>!e),children:u?(0,s.jsx)(Md,{}):(0,s.jsx)(Id,{})})]}),(0,s.jsx)("div",{className:"shared-navigation__mobile-drawer",ref:f,children:k})]}):(0,s.jsx)("nav",{className:`shared-navigation ${y}`,"aria-label":g||"Navigation",children:k})},$d=({baseUrl:e,block:t})=>{var n,r,a,i,o;const l=null!==(r=null===(n=t.base)||void 0===n?void 0:n.demo_trial)&&void 0!==r?r:null,c=t.header?t.header:null==l?void 0:l.header,u=t.body?t.body:null==l?void 0:l.body,d=t.graphical_accompaniment?t.graphical_accompaniment:null==l?void 0:l.graphical_accompaniment,h=t.class?t.class:null==l?void 0:l.class,p=(null===(a=t.button)||void 0===a?void 0:a.length)?t.button:null!==(i=null==l?void 0:l.button)&&void 0!==i?i:[],m=null!==(o=t.tags)&&void 0!==o?o:[];return(0,s.jsx)("div",{className:`shared-demo-trial ${h||""}`,children:(0,s.jsxs)("div",{className:"shared-demo-trial-inner",children:[(0,s.jsxs)("div",{className:"shared-demo-trial-content",children:[m.length>0&&(0,s.jsx)("div",{className:"shared-demo-trial-tags",children:m.map((e,t)=>{var n;return(0,s.jsx)("span",{className:`shared-demo-trial-tag ${e.class?e.class:""}`.trim(),children:e.tag},null!==(n=e.id)&&void 0!==n?n:t)})}),c&&(0,s.jsx)("div",{className:"shared-demo-trial-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:c})}),u&&(0,s.jsx)("div",{className:"shared-demo-trial-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:u})}),p.length>0&&(0,s.jsx)("div",{className:"shared-demo-trial-buttons",children:p.map(e=>(0,s.jsx)(I,{block:e},e.id))})]}),d&&(0,s.jsx)("div",{className:"shared-demo-trial-image",children:(0,s.jsx)(hd,{baseUrl:e,block:d})})]})})};i(3244);const Bd=({baseUrl:e,block:t})=>{var n,r,a,i,o,l,c,u,d,h,p,m,f,v,g,b;const y=null!==(n=t.person)&&void 0!==n?n:void 0,x=null!==(i=null!==(r=null==y?void 0:y.avatar)&&void 0!==r?r:null===(a=null==y?void 0:y.author)||void 0===a?void 0:a.avatar)&&void 0!==i?i:void 0,w=(null===(l=null===(o=t.data)||void 0===o?void 0:o.avatarUrl)||void 0===l?void 0:l.trim())||null,_=(null==(T=w?{url:w}
2:x)?void 0:T.url)?T.url.startsWith("http")?T.url:`${e}${T.url}`:null,k=w?null===(c=t.data)||void 0===c?void 0:c.avatarWidth:null==x?void 0:x.width,N=w?null===(u=t.data)||void 0===u?void 0:u.avatarHeight:null==x?void 0:x.height,E=null!==(p=null!==(d=null==y?void 0:y.name)&&void 0!==d?d:null===(h=null==y?void 0:y.author)||void 0===h?void 0:h.name)&&void 0!==p?p:null,j=null!==(v=null!==(m=null==y?void 0:y.title)&&void 0!==m?m:null===(f=null==y?void 0:y.author)||void 0===f?void 0:f.title)&&void 0!==v?v:null,S=(null===(b=null===(g=t.data)||void 0===g?void 0:g.legacyBgColour)||void 0===b?void 0:b.trim())||void 0,C=t.body?(e=>e.trim().replace(/^[\u201C\u201D"']+/,"").replace(/[\u201C\u201D"']+$/,"").trim())(t.body):"";var T;return(0,s.jsx)("div",{className:"shared-quote",children:(0,s.jsx)("div",{className:"shared-quote-container",children:(0,s.jsx)("div",{className:"shared-quote-card",style:S?{backgroundColor:S}:void 0,children:(0,s.jsxs)("div",{className:"shared-quote-item",children:[C&&(0,s.jsxs)("blockquote",{className:"shared-quote-body",children:["“",C,"”"]}),(_||E||j)&&(0,s.jsxs)("figcaption",{className:"shared-quote-attribution",children:[_&&(0,s.jsx)("div",{className:"shared-quote-avatar",children:(0,s.jsx)("img",{src:_,alt:E||"Speaker",width:k,height:N})}),(0,s.jsxs)("div",{className:"shared-quote-attribution-text",children:[E&&(0,s.jsx)("span",{className:"shared-quote-name",children:E}),j&&(0,s.jsx)("span",{className:"shared-quote-title",children:j})]})]})]})})})})};i(5820);const Hd=e=>{const t=e.trim();return"✓"===t||"✔"===t?(0,s.jsx)("span",{className:"tk yes",children:"✓"}):"×"===t||"✗"===t||"✘"===t?(0,s.jsx)("span",{className:"tk no",children:"×"}):e},zd=({block:e})=>{const{json:t,class:n}=e;if(!(e=>{if(!e||"object"!=typeof e)return!1;const t=e;return Array.isArray(t.headers)&&t.headers.every(e=>"string"==typeof e)&&Array.isArray(t.rows)&&t.rows.every(e=>Array.isArray(e)&&e.every(e=>"string"==typeof e))})(t))return(0,s.jsx)("div",{className:`shared-table error ${null!=n?n:""}`,children:(0,s.jsxs)("p",{className:"error-message",children:["Table data is missing or malformed. Expected ",(0,s.jsx)("code",{children:"{ headers: string[], rows: string[][] }"}),"."]})});const{headers:r,rows:a}=t,i=r.length,o=a.findIndex(e=>e.length!==i);return-1!==o?(0,s.jsx)("div",{className:`shared-table error ${null!=n?n:""}`,children:(0,s.jsxs)("p",{className:"error-message",children:["Data integrity error: row ",o+1," has ",a[o].length," cell",1!==a[o].length?"s":""," but there are ",i," header",1!==i?"s":"","."]})}):(0,s.jsx)("div",{className:`shared-table ${null!=n?n:""}`,children:(0,s.jsx)("div",{className:"scroll-wrapper",children:(0,s.jsxs)("table",{children:[(0,s.jsx)("thead",{children:(0,s.jsx)("tr",{children:r.map((e,t)=>(0,s.jsx)("th",{children:e},t))})}),(0,s.jsx)("tbody",{children:a.map((e,t)=>(0,s.jsx)("tr",{children:e.map((e,t)=>(0,s.jsx)("td",{children:Hd(e)},t))},t))})]})})})};var qd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Gd(e){return null!=e&&String(e).trim().length>0}function Wd(e){return null!=e}function Yd(e){return Array.isArray(e)&&e.length>0}const Vd=["body","footer","submit_button_text","title","submission_success_title","submission_success_body","submission_success_share_text","actual_share_text","actual_share_text_twitter","actual_share_text_facebook","actual_share_text_linkedin","share_url","layout","revenuehero_router_id"],Kd=["revenuehero_enabled"],Qd=["identity","header_image","hubspot_form_id","title_image","analytics_form_type","latest_lead_source","submission_success_title_image","config"],Xd=["input","registration_unlocks","submission_unlocks"];i(2170);const Jd=({baseUrl:e,block:t})=>{var n,r;const a=function(e){var t;const n=null===(t=e.base)||void 0===t?void 0:t.registration_form,{base:r}=e,a=qd(e,["base"]);if(!n)return Object.assign({},a);const s=n,{base:i}=s,o=qd(s,["base"]),l=Object.assign(Object.assign({},o),{__component:e.__component,id:e.id});for(const t of Vd)Gd(e[t])&&(l[t]=e[t]);for(const t of Kd)Wd(e[t])&&(l[t]=e[t]);for(const t of Qd)Wd(e[t])&&(l[t]=e[t]);for(const t of Xd)Yd(e[t])&&(l[t]=e[t]);return l}(t),i=null!==(n=a.layout)&&void 0!==n?n:"default",o=(null===(r=a.config)||void 0===r?void 0:r.elementId)||void 0;if("legacy-events-watch-now"===i){const{body:t}=a,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(a,["body"]);return(0,s.jsx)("div",{id:o,className:"events-registration-form events-registration-form-legacy",children:(0,s.jsx)("div",{className:"events-registration-form-container",children:(0,s.jsxs)("div",{className:"events-registration-form-grid",children:[(0,s.jsx)("div",{className:"events-registration-form-copy",children:t&&(0,s.jsx)(ta,{rehypePlugins:[co],children:t})}),(0,s.jsx)("div",{className:"events-registration-form-card",children:(0,s.jsx)(Nl,{baseUrl:e,block:n})})]})})})}return(0,s.jsx)("div",{id:o,className:"events-registration-form",children:(0,s.jsx)(Nl,{baseUrl:e,block:a})})},Zd=({baseUrl:e,event:t,blocks:r,gated:a=!1,currentPath:i})=>
2{const[o,l]=(0,n.useState)([]),[c,u]=(0,n.useState)(!1);(0,n.useEffect)(()=>{const e=dl.getAllUnlockedIdentityDocumentIds();l(e),u(!0)},[]),(0,n.useEffect)(()=>{const e=e=>{const t=e,{unlockedIdentityDocumentIds:n}=t.detail;l(e=>{const t=new Set([...e,...n]);return Array.from(t)})};return window.addEventListener(ul,e),()=>{window.removeEventListener(ul,e)}},[]);const d=e=>!!(a&&"does-not-render-when-gated"===e.gate_behaviour||!a&&"only-renders-when-gated"===e.gate_behaviour),h=[...t.start_date?[{type:"event-start-date",date:t.start_date}]:[],...t.registration_close_date?[{type:"event-registration-close",date:t.registration_close_date}]:[]],p=n=>{var r,l;switch(n.__component){case"shared.image":return(0,s.jsx)("div",{className:`event-block event-block-image ${n.class?n.class:""}`,children:(0,s.jsx)(hd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"shared.rich-text":return(0,s.jsx)("div",{className:`event-block event-block-rich-text ${n.class?n.class:""}`,children:(0,s.jsx)(Pl,{baseUrl:e,block:n,dates:h})},`${n.__component}-${n.id}`);case"shared.lineup":return!0===n.hide?null:(0,s.jsx)("div",{className:`event-block event-block-lineup ${n.class?n.class:""}`,children:(0,s.jsx)(bd,{baseUrl:e,block:n,dates:h})},`${n.__component}-${n.id}`);case"shared.image-gallery":return(0,s.jsx)("div",{className:`event-block event-block-image-gallery ${n.class?n.class:""}`,children:(0,s.jsx)(gd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"shared.logos":return!0===n.hide?null:(0,s.jsx)("div",{className:`event-block event-block-logos ${n.class?n.class:""}`,children:(0,s.jsx)(xd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"events.hero":return d(n)?null:(0,s.jsx)("div",{className:`event-block event-block-hero ${n.class?n.class:""}`,children:(0,s.jsx)(ac,{baseUrl:e,block:n,dates:[...h,...t.end_date?[{type:"event-end-date",date:t.end_date}]:[]]})},`${n.__component}-${n.id}`);case"events.classic-hero":return(0,s.jsx)("div",{className:"event-block event-block-classic-hero",children:(0,s.jsx)(_d,{baseUrl:e,block:n,event:t})},`${n.__component}-${n.id}`);case"shared.registration-information":return(0,s.jsx)("div",{className:`event-block event-block-registration-information ${n.class?n.class:""}`,children:(0,s.jsx)(Nd,{block:n,event:t})},`${n.__component}-${n.id}`);case"shared.video":return(e=>{var t;return!e.must_be_unlocked_to_render||!!c&&!!(null===(t=e.identity)||void 0===t?void 0:t.documentId)&&o.includes(e.identity.documentId)})(n)?(0,s.jsx)("div",{id:(null===(r=n.identity)||void 0===r?void 0:r.documentId)?`identity-${n.identity.documentId}`:void 0,className:`event-block event-block-video ${n.class?n.class:""}`,children:(0,s.jsx)(Zu,{block:n})},`${n.__component}-${n.id}`):null;case"events.card-list":return(0,s.jsx)("div",{className:`event-block event-block-card-list layout-${null!==(l=n.layout)&&void 0!==l?l:"default"} ${n.class?n.class:""}`,children:(0,s.jsx)(Td,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"shared.animation":return d(n)?null:(0,s.jsx)("div",{className:`event-block event-block-animation ${n.name?n.name:""}`,children:(0,s.jsx)(Ju,{block:n,baseUrl:e,gated:a,dates:[...t.start_date?[{type:"event-start-date",date:t.start_date}]:[],...t.registration_close_date?[{type:"event-registration-close",date:t.registration_close_date}]:[]]})},`${n.__component}-${n.id}`);case"shared.register-button-pop":{const r=Cl(n);return r.render?(0,s.jsxs)("div",{className:"event-block event-block-register-button"+(r.class?` ${r.class}`:""),children:[(0,s.jsx)(Al,{baseUrl:e,registerButton:n,dates:[...t.start_date?[{type:"event-start-date",date:t.start_date}]:[],...t.registration_close_date?[{type:"event-registration-close",date:t.registration_close_date}]:[]]}),r.images&&r.images.length>0&&(0,s.jsx)("div",{className:"register-button-images",children:r.images.map((t,n)=>{var r;return(0,s.jsx)("div",{className:"register-button-image-item",children:(0,s.jsx)(hd,{baseUrl:e,block:t})},`${null!==(r=t.id)&&void 0!==r?r:n}`)})})]},`${n.__component}-${n.id}`):null}case"shared.visual-counter":return(0,s.jsx)("div",{className:"event-block event-block-visual-counter",children:(0,s.jsx)(Ad,{block:n})},`${n.__component}-${n.id}`);case"shared.html":return(0,s.jsx)("div",{className:`event-block event-block-html ${n.class?n.class:""}`,children:(0,s.jsx)(Ld,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"shared.navigation":return(0,s.jsx)("div",{className:`event-block event-block-navigation ${n.class?n.class:""}`,children:(0,s.jsx)(Ud,{block:n,baseUrl:e,navigation:t.navigation,currentPath:i})},`${n.__component}-${n.id}`);case"shared.demo-trial":return(0,s.jsx)("div",{className:`event-block report-block-demo-trial ${n.class?n.class:""}`,children:(0,s.jsx)($d,{baseUrl:e,block:n},`${n.__component}-${n.id}`)},`${n.__component}-${n.id}`);case"shared.button":return(0,s.jsx)("div",{className:"event-block event-block-button",children:(0,s.jsx)(fo,{block:n})},`${n.__component}-${n.id}`);case"shared.table":return(0,s.jsx)("div",{className:`event-block event-block-table ${n.class?n.class:""}`,children:(0,s.jsx)(zd,{block:n})},`${n.__component}-${n.id}`);case"shared.quote":return(0,s.jsx)("div",{className:"event-block event-block-quote",children:(0,s.jsx)(Bd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"events.registration-form":return(0,s.jsx)("div",{className:"event-block event-block-registration-form",children:(0,s.jsx)(Jd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);default:return null}},m=r.findIndex(e=>{var t;return"shared.navigation"===e.__component&&"string"==typeof e.class&&(null!==(t=e.class)&&void 0!==t?t:"").includes("sidenav")});if(-1===m)return(0,s.jsx)("div",{className:"event-blocks",children:r.map(p)});const f=r.slice(0,m),v=r[m],g=r.slice(m+1);return(0,s.jsxs)("div",{className:"event-blocks",children:[f.map(p),(0,s.jsxs)("div",{className:"event-blocks__sidenav-layout",children:[(0,s.jsx)("div",{className:"event-blocks__sidenav-column",children:p(v)}),(0,s.jsx)("div",{className:"event-blocks__main-column",children:g.map(p)})]})]})};i(8880);class eh{static fetchNavigationHeader(e,t){return n=this,r=void 0,s=function*(){const{baseUrl:n,status:r,populateOptions:a=this.DEFAULT_POPULATE_OPTIONS}=e,s=`/api/navigation-header?${l.buildQueryString(r,void 0,void 0,a)}`,i=`${n}${s}`;g()||console.log("fetchNavigationHeader apiPathAndQueryString",`${s}`);try{const e=yield t(i);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}. apiUri: ${i}`);const n=yield e.json();return g()||console.log("fetchNavigationHeader returned:",n.data),{response:e,data:n}}catch(e){throw console.error("NavigationHeaderService: Error fetching navigation header:",e),e instanceof Error?e:new Error("Failed to fetch navigation header")}},new((a=void 0)||(a=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:ne
2w a(function(t){t(e)})}(t.value).then(i,o)}l((s=s.apply(n,r||[])).next())});var n,r,a,s}}eh.DEFAULT_POPULATE_OPTIONS=["logo","logo.image","logo.smallscreen","logos","logos.image","logos.smallscreen","navigation_members","navigation_members.navigation_item","navigation_members.navigation_item.route","navigation_members.navigation_item.route.event","navigation_members.navigation_item.route.drop","navigation_members.navigation_item.route.report","navigation_members.navigation_item.image.image","navigation_members.children","navigation_members.children.navigation_item","navigation_members.children.navigation_item.route","navigation_members.children.navigation_item.route.event","navigation_members.children.navigation_item.route.drop","navigation_members.children.navigation_item.route.report","navigation_members.children.navigation_item.image.image","navigation_members.children.children","navigation_members.children.children.navigation_item","navigation_members.children.children.navigation_item.route","navigation_members.children.children.navigation_item.route.event","navigation_members.children.children.navigation_item.route.drop","navigation_members.children.children.navigation_item.route.report","navigation_members.children.children.navigation_item.image.image","navigation","navigation.navigation_item","navigation.navigation_item.route","navigation.navigation_item.route.event","navigation.navigation_item.route.drop","navigation.navigation_item.route.report","navigation.navigation_item.image.image","navigation.navigation_item.image.smallscreen","navigation.children","navigation.children.navigation_item","navigation.children.navigation_item.route","navigation.children.navigation_item.route.event","navigation.children.navigation_item.route.drop","navigation.children.navigation_item.route.report","navigation.children.navigation_item.image.image","navigation.children.navigation_item.image.smallscreen","navigation.children.children","navigation.children.children.navigation_item","navigation.children.children.navigation_item.route","navigation.children.children.navigation_item.route.event","navigation.children.children.navigation_item.route.drop","navigation.children.children.navigation_item.route.report","navigation.children.children.navigation_item.image.image","navigation.children.children.navigation_item.image.smallscreen","navigation.children.children.children","navigation.children.children.children.navigation_item","navigation.children.children.children.navigation_item.route","navigation.children.children.children.navigation_item.route.event","navigation.children.children.children.navigation_item.route.drop","navigation.children.children.children.navigation_item.route.report","navigation.children.children.children.navigation_item.image.image","navigation.children.children.children.navigation_item.image.smallscreen"];var th=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};class nh{static fetchEvents(e,t){return th(this,void 0,void 0,function*(){const{baseUrl:n,status:r,slug:a,sortOptions:s=this.DEFAULT_SORT_OPTIONS,populateOptions:i=this.DEFAULT_POPULATE_OPTIONS}=e,o=[];a&&o.push({field:"slug",operator:"$eq",value:a});const c=`/api/events?${l.buildQueryString(r,s,o.length>0?o:void 0,i)}`,u=`${n}${c}`;g()||console.log("apiPathAndQueryString",`${c}`);try{const e=yield t(u);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=yield e.json();return g()||console.log("Got:",n.data),{response:e,data:n}}catch(e){throw console.error("Error fetching events:",e),e instanceof Error?e:new Error("Failed to fetch events")}})}static fetchPagedEvents(e,t){return th(this,void 0,void 0,function*(){const{baseUrl:n,status:r,page:a=1,pageSize:s=24,site:i="motion"}=e,o=new URLSearchParams;r&&o.set("status",r),o.set("page",String(Math.max(a,1))),o.set("pageSize",String(Math.max(s,1))),o.set("site",i);const l=`${n}/api/events/paged?${o.toString()}`;g()||console.log("fetchPagedEvents apiUri",l);try{const e=yield t(l);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=yield e.json();return{response:e,data:n}}catch(e){throw console.error("Error fetching paged events:",e),e instanceof Error?e:new Error("Failed to fetch paged events")}})}static fetchEvent(e,t){return th(this,void 0,void 0,function*(){const{baseUrl:n,status:r,slug:a}=e;if(!a)throw new Error("Either routerPath or slug is required for fetchEvent");const s=new URLSearchParams;a&&s.set("slug",a),r&&s.set("status",r);const i=`${n}/api/events/populated?${s.toString()}`;g()||console.log("fetchEvent apiUri",i);try{const e=yield t(i);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=yield e.json();return g()||console.log("fetchEvent Got:",n.data),{response:e,data:n}}catch(e){throw console.error("Error fetching event:",e),e instanceof Error?e:new Error("Failed to fetch event")}})}static fetchFeaturedEvent(e,t){return th(this,void 0,void 0,function*(){const{baseUrl:n,status:r}=e,a=`${n}/api/featured-event?${l.buildQueryString(r,void 0,void 0,this.FEATURED_EVENT_POPULATE)}`,s=yield t(a);if(404===s.status)return{response:s,data:{data:null}};if(!s.ok)throw new Error(`HTTP error! status: ${s.status}. apiUri: ${a}`);const i=yield s.json();return{response:s,data:i}})}static fetchEventsPage(e,t){return th(this,void 0,void 0,function*(){const{baseUrl:n,status:r}=e,a=new URLSearchParams;r&&a.set("status",r);const s=`${n}/api/events-page/populated?${a.toString()}`,i=yield t(s);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}. apiUri: ${s}`);const o=yield i.json();return{response:i,data:o}})}}nh.DEFAULT_SORT_OPTIONS=[{field:"publish_date",order:"desc"},{field:"publishedAt",order:"desc"},{field:"createdAt",order:"desc"}
2],nh.DEFAULT_POPULATE_OPTIONS=["cover_image","tile_image","event_category","navigation.children.children.icon.image","navigation.children.children.navigation_item","blocks.analytics_form_type","blocks.header_image","blocks.hubspot_form_id","blocks.input","blocks.latest_lead_source","blocks.navigation","blocks.person","blocks.placeholder_image","blocks.registration_unlocks","blocks.submission_success_title_image","blocks.submission_unlocks","blocks.tags","blocks.image.image","blocks.image.smallscreen","blocks.images.image","blocks.images.smallscreen","blocks.slider","blocks.slider.image","blocks.slider.image.image","blocks.slider.image.smallscreen","blocks.smallscreen","blocks.background_image","blocks.background_image.image","blocks.background_image_small_screen","blocks.presents_image","blocks.title_image","blocks.title_image_small_screen","blocks.register_button","blocks.register_button.shared_form","blocks.register_button.shared_form.form.header_image","blocks.register_button.shared_form.form.title_image","blocks.register_button.shared_form.form.input","blocks.register_button.shared_form.form.hubspot_form_id","blocks.register_button.shared_form.form.analytics_form_type","blocks.register_button.shared_form.form.latest_lead_source","blocks.register_button.shared_form.form.submission_success_title_image","blocks.register_button.shared_form.form.registration_unlocks","blocks.register_button.shared_form.form.identity","blocks.register_button.identity","blocks.register_button.form","blocks.register_button.form.header_image","blocks.register_button.form.title_image","blocks.register_button.form.input","blocks.register_button.form.hubspot_form_id","blocks.register_button.form.analytics_form_type","blocks.register_button.form.latest_lead_source","blocks.register_button.form.submission_success_title_image","blocks.register_button.form.registration_unlocks","blocks.register_button.form.identity","blocks.register_button.base","blocks.register_button.base.register_button","blocks.register_button.base.register_button.shared_form","blocks.register_button.base.register_button.shared_form.form.header_image","blocks.register_button.base.register_button.shared_form.form.title_image","blocks.register_button.base.register_button.shared_form.form.input","blocks.register_button.base.register_button.shared_form.form.hubspot_form_id","blocks.register_button.base.register_button.shared_form.form.analytics_form_type","blocks.register_button.base.register_button.shared_form.form.latest_lead_source","blocks.register_button.base.register_button.shared_form.form.submission_success_title_image","blocks.register_button.base.register_button.shared_form.form.registration_unlocks","blocks.register_button.base.register_button.shared_form.form.identity","blocks.register_button.base.register_button.identity","blocks.register_button.base.register_button.form","blocks.register_button.base.register_button.form.header_image","blocks.register_button.base.register_button.form.title_image","blocks.register_button.base.register_button.form.input","blocks.register_button.base.register_button.form.hubspot_form_id","blocks.register_button.base.register_button.form.analytics_form_type","blocks.register_button.base.register_button.form.latest_lead_source","blocks.register_button.base.register_button.form.submission_success_title_image","blocks.register_button.base.register_button.form.registration_unlocks","blocks.register_button.base.register_button.form.identity","blocks.people","blocks.people.avatar","blocks.people.author","blocks.people.author.avatar","blocks.people.logo.image.image","blocks.identity","blocks.cards","blocks.cards.image.image","blocks.cards.image.smallscreen","blocks.cards.person.avatar","blocks.cards.person.author.avatar","blocks.animation","blocks.hero","blocks.hero.register_button","blocks.hero.register_button.shared_form","blocks.hero.register_button.shared_form.form.header_image","blocks.hero.register_button.shared_form.form.title_image","blocks.hero.register_button.shared_form.form.input","blocks.hero.register_button.shared_form.form.hubspot_form_id","blocks.hero.register_button.shared_form.form.analytics_form_type","blocks.hero.register_button.shared_form.form.latest_lead_source","blocks.hero.register_button.shared_form.form.submission_success_title_image","blocks.hero.register_button.shared_form.form.registration_unlocks","blocks.hero.register_button.shared_form.form.identity","blocks.hero.register_button.identity","blocks.hero.register_button.form","blocks.hero.register_button.form.header_image","blocks.hero.register_button.form.title_image","blocks.hero.register_button.form.input","blocks.hero.register_button.form.hubspot_form_id","blocks.hero.register_button.form.analytics_form_type","blocks.hero.register_button.form.latest_lead_source","blocks.hero.register_button.form.submission_success_title_image","blocks.hero.register_button.form.registration_unlocks","blocks.hero.register_button.form.identity","blocks.hero.register_button.base","blocks.hero.register_button.base.register_button","blocks.hero.register_button.base.register_button.shared_form","blocks.hero.register_button.base.register_button.shared_form.form.header_image","blocks.hero.register_button.base.register_button.shared_form.form.title_image","blocks.hero.register_button.base.register_button.shared_form.form.input","blocks.hero.register_button.base.register_button.shared_form.form.hubspot_form_id","blocks.hero.register_button.base.register_button.shared_form.form.analytics_form_type","blocks.hero.register_button.base.register_button.shared_form.form.latest_lead_source","blocks.hero.register_button.base.register_button.shared_form.form.submission_success_title_image","blocks.hero.register_button.base.register_button.shared_form.form.registration_unlocks","blocks.hero.register_button.base.register_button.shared_form.form.identity","blocks.hero.register_button.base.register_button.identity","blocks.hero.register_button.base.register_button.form","blocks.hero.register_button.base.register_button.form.header_image","blocks.hero.register_button.base.register_button.form.title_image","blocks.hero.register_button.base.register_button.form.input","blocks.hero.register_button.base.register_button.form.hubspot_form_id","blocks.hero.register_button.base.register_button.form.analytics_form_type","blocks.hero.register_button.base.register_button.form.latest_lead_source","blocks.hero.register_button.base.register_button.form.submission_success_title_image","blocks.hero.register_button.base.register_button.form.registration_unlocks","blocks.hero.register_button.base.register_button.form.identity","blocks.hero.presents_image","blocks.shared_form","blocks.shared_form.form.header_image","blocks.shared_form.form.title_image","blocks.shared_form.form.input","blocks.shared_form.form.hubspot_form_id","blocks.shared_form.form.analytics_form_type","blocks.shared_form.form.latest_lead_source","blocks.shared_form.form.submission_success_title_image","blocks.shared_form.form.registration_unlocks","blocks.shared_form.form.identity","blocks.form","blocks.form.header_image","blocks.form.title_image","blocks.form.input","blocks.form.hubspot_form_id","blocks.form.analytics_form_type","blocks.form.latest_lead_source","blocks.form.submission_success_title_image","blocks.form.registration_unlocks","blocks.form.identity","blocks.logos","blocks.logos.logo.image.image","blocks.graphical_accompaniment.image","blocks.graphical_accompaniment.smallscreen","blocks.button","blocks.buttons","blocks.base.demo_trial.graphical_accompaniment.image","blocks.base.demo_trial.graphical_accompaniment.smallscreen","blocks.base.demo_trial.button"],nh.FEATURED_EVENT_POPULATE=["event","event.cover_image","event.tile_image","event.event_category","event.nav_header_featured_event_image","event.nav_header_featured_event_image.image"];
2var rh=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};class ah{static fetchPage(e,t){return rh(this,arguments,void 0,function*(e,t,n=fetch){const{baseUrl:r,status:a}=t,s=new URLSearchParams;a&&s.set("status",a);const i=`${r}/api/motionapp-pages/${e}/populated?${s.toString()}`,o=yield n(i);if(!o.ok)throw new Error(`HTTP error! status: ${o.status}. apiUri: ${i}`);const l=yield o.json();return{response:o,data:l}})}static fetchRobotsTxt(e){return rh(this,arguments,void 0,function*(e,t=fetch){const{baseUrl:n,status:r}=e,a=new URLSearchParams;r&&a.set("status",r);const s=`${n}/api/motionapp-robots-txt?${a.toString()}`,i=yield t(s);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}. apiUri: ${s}`);const o=yield i.json();return{response:i,data:o}})}static publicPathForPage(e,t){var n;const r=null==t?void 0:t.trim();if(r)return r.startsWith("/")?r:`/${r}`;const a=null===(n=e.slug)||void 0===n?void 0:n.trim().replace(/^\/+/,"");return a?`/${a}`:null}static fetchFeaturedPage(e){return rh(this,arguments,void 0,function*(e,t=fetch){var n,r,a;const{baseUrl:s,status:i}=e,o=`${s}/api/featured-page?${l.buildQueryString(i,void 0,void 0,this.FEATURED_PAGE_POPULATE)}`,c=yield t(o);if(404===c.status)return{responses:[c],data:null,page:null,fullPath:null};if(!c.ok)throw new Error(`HTTP error! status: ${c.status}. apiUri: ${o}`);const u=(yield c.json()).data,d=null!==(n=null==u?void 0:u.page)&&void 0!==n?n:null;if(!(null==d?void 0:d.documentId))return{responses:[c],data:u,page:null,fullPath:null};const h=(null===(r=d.slug)||void 0===r?void 0:r.trim().replace(/^\/+/,""))||null,p=new URLSearchParams;i&&p.set("status",i);let m=0;p.set(`filters[$or][${m}][motionapp_page][documentId][$eq]`,d.documentId),m+=1,h&&(p.set(`filters[$or][${m}][full_path][$eq]`,`/${h}`),m+=1,p.set(`filters[$or][${m}][path][$eq]`,h)),p.set("fields[0]","full_path"),p.set("fields[1]","target"),p.set("pagination[pageSize]","5");const f=`${s}/api/routes?${p.toString()}`,v=yield t(f),g=[c,v];if(!v.ok)return{responses:g,data:u,page:d,fullPath:this.publicPathForPage(d)};const b=null!==(a=(yield v.json()).data)&&void 0!==a?a:[],y=e=>{var t;return(null===(t=null==e?void 0:e.full_path)||void 0===t?void 0:t.trim())||null},x=b.find(e=>"webflow"===e.target&&y(e)),w=b.find(e=>y(e));return{responses:g,data:u,page:d,fullPath:this.publicPathForPage(d,y(null!=x?x:w))}})}}ah.FEATURED_PAGE_POPULATE=["page","page.og_image","page.og_image.image","page.nav_header_featured_page_image","page.nav_header_featured_page_image.image"];var sh=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};class ih{static fetchReports(e,t){return sh(this,void 0,void 0,function*(){const{baseUrl:n,status:r,slug:a,sortOptions:s=this.DEFAULT_SORT_OPTIONS,populateOptions:i=this.DEFAULT_POPULATE_OPTIONS}=e,o=[];a&&o.push({field:"slug",operator:"$eq",value:a});const c=`/api/reports?${l.buildQueryString(r,s,o.length>0?o:void 0,i)}`,u=`${n}${c}`;g()||(console.log("fetchReports apiUri",`${u}`),console.log("fetchReports apiPathAndQueryString",`${c}`));try{const e=yield t(u);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=yield e.json();return g()||console.log("fetchReports returned:",n.data),{response:e,data:n}}catch(e){throw console.error("Error fetching reports:",e),e instanceof Error?e:new Error("Failed to fetch reports")}})}static fetchFeaturedReport(e,t){return sh(this,void 0,void 0,function*(){const{baseUrl:n,status:r}=e,a=`${n}/api/featured-report?${l.buildQueryString(r,void 0,void 0,this.FEATURED_REPORT_POPULATE)}`,s=yield t(a);if(404===s.status)return{response:s,data:{data:null}};if(!s.ok)throw new Error(`HTTP error! status: ${s.status}. apiUri: ${a}`);const i=yield s.json();return{response:s,data:i}})}}ih.DEFAULT_SORT_OPTIONS=[{field:"publication_date",order:"desc"},{field:"publishedAt",order:"desc"},{field:"createdAt",order:"desc"}],ih.DEFAULT_POPULATE_OPTIONS=["cover","data","blocks.background_image","blocks.base","blocks.buttons","blocks.hero","blocks.person","blocks.placeholder_image","blocks.register_button","blocks.tags","blocks.image","blocks.image.image","blocks.smallscreen","authors.avatar","authors.avatar_small_format","blocks.hubspot_form_id","blocks.analytics_form_type","blocks.latest_lead_source","gate.header_image","gate.hubspot_form_id","gate.analytics_form_type","gate.latest_lead_source","gate.input","gate.logo","blocks.animation","blocks.chart","blocks.form.form.input","blocks.form.form.submission_unlocks","blocks.graphical_accompaniment.image","blocks.graphical_accompaniment.smallscreen","blocks.button","blocks.identity","blocks.media.file"],ih.FEATURED_REPORT_POPULATE=["report","report.cover"];
2var oh=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};function lh(e){const t=null==e?void 0:e.trim();return t&&t.length>0?t:null}function ch(e,t){return(null==e?void 0:e.trim())||t}function uh(e,t){var n,r,a,s,i,o,l,c,u,d;return{title:(null!==(n=e.title)&&void 0!==n?n:"").trim(),description:(null===(s=null!==(a=null!==(r=e.nav_header_featured_event_description)&&void 0!==r?r:e.description_short)&&void 0!==a?a:"")||void 0===s?void 0:s.trim())||null,imageUrl:lh(null!==(u=null!==(l=null===(o=null===(i=e.nav_header_featured_event_image)||void 0===i?void 0:i.image)||void 0===o?void 0:o.url)&&void 0!==l?l:null===(c=e.tile_image)||void 0===c?void 0:c.url)&&void 0!==u?u:null===(d=e.cover_image)||void 0===d?void 0:d.url),link:ch(t,e.slug?`/events/${e.slug}`:null)}}function dh(e,t){var n,r,a;return{title:(null!==(n=e.title)&&void 0!==n?n:"").trim(),description:(null!==(r=e.description)&&void 0!==r?r:"").trim()||null,imageUrl:lh(null===(a=e.cover)||void 0===a?void 0:a.url),link:ch(t,e.slug?`/reports/${e.slug}`:null)}}function hh(e,t){var n,r,a,s,i,o,l,c,u;return{title:(null!==(n=e.title)&&void 0!==n?n:"").trim(),description:(null===(s=null!==(a=null!==(r=e.nav_header_featured_page_description)&&void 0!==r?r:e.meta_description)&&void 0!==a?a:"")||void 0===s?void 0:s.trim())||null,imageUrl:lh(null!==(l=null===(o=null===(i=e.nav_header_featured_page_image)||void 0===i?void 0:i.image)||void 0===o?void 0:o.url)&&void 0!==l?l:null===(u=null===(c=e.og_image)||void 0===c?void 0:c.image)||void 0===u?void 0:u.url),link:ah.publicPathForPage(e,t)}}function ph(e,t,n,r){return oh(this,void 0,void 0,function*(){var a;const s=new URLSearchParams;e.status&&s.set("status",e.status),s.set(`filters[${n}][documentId][$eq]`,r),s.set("fields[0]","full_path"),s.set("fields[1]","target"),s.set("pagination[pageSize]","5");const i=`${e.baseUrl}/api/routes?${s.toString()}`,o=yield t(i);if(!o.ok)return{response:o,fullPath:null};const l=null!==(a=(yield o.json()).data)&&void 0!==a?a:[],c=e=>{var t;return(null===(t=null==e?void 0:e.full_path)||void 0===t?void 0:t.trim())||null},u=l.find(e=>"webflow"===e.target&&c(e)),d=l.find(e=>c(e));return{response:o,fullPath:c(null!=u?u:d)}})}class mh{static fetch(e,t){return oh(this,void 0,void 0,function*(){var n,r,a,s;const i=[];let o=null;try{const a=yield nh.fetchFeaturedEvent(e,t);i.push(a.response),o=null!==(n=a.data.data)&&void 0!==n?n:null;const s=null!==(r=null==o?void 0:o.event)&&void 0!==r?r:null;if(s){let n=null;if(s.documentId)try{const r=yield ph(e,t,"event",s.documentId);i.push(r.response),n=r.fullPath}catch(e){console.error("FeaturedNavService: Error resolving featured event route:",e)}return{content:uh(s,n),featuredEvent:o,responses:i}}}catch(e){console.error("FeaturedNavService: Error fetching featured event:",e)}try{const n=yield ih.fetchFeaturedReport(e,t);i.push(n.response);const r=null!==(s=null===(a=n.data.data)||void 0===a?void 0:a.report)&&void 0!==s?s:null;if(r){let n=null;if(r.documentId)try{const a=yield ph(e,t,"report",r.documentId);i.push(a.response),n=a.fullPath}catch(e){console.error("FeaturedNavService: Error resolving featured report route:",e)}return{content:dh(r,n),featuredEvent:o,responses:i}}}catch(e){console.error("FeaturedNavService: Error fetching featured report:",e)}try{const n=yield ah.fetchFeaturedPage(e,t);if(i.push(...n.responses),n.page)return{content:hh(n.page,n.fullPath),featuredEvent:o,responses:i}}catch(e){console.error("FeaturedNavService: Error fetching featured page:",e)}return{content:null,featuredEvent:o,responses:i}})}}var fh=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};
2const vh=e=>{var t;return e?"undefined"!=typeof window&&(null===(t=null===window||void 0===window?void 0:window.location)||void 0===t?void 0:t.origin)?new URL(e,window.location.origin).href:e:null},gh=e=>{var t,n;return vh(null!==(n=null===(t=null==e?void 0:e.route)||void 0===t?void 0:t.full_path)&&void 0!==n?n:null==e?void 0:e.link)},bh=e=>{var t;const n="string"==typeof e.text?e.text.trim():"";if(n.length>0)return n;const r="string"==typeof(null===(t=e.navigation_item)||void 0===t?void 0:t.text)?e.navigation_item.text.trim():"";return r.length>0?r:""},yh=({baseUrl:e,initialData:t,featuredNav:r,featuredEvent:a,mode:i="default",jobBoardUser:o,jobBoardAuthLoading:l=!1,onLoginClick:c,onSignupClick:u,onLogoutClick:d,theme:h="white"})=>{var p,m,f;const v=E(e),b=g()?"published":"draft",[y,x]=(0,n.useState)(null!=t?t:null),[w,_]=(0,n.useState)(void 0===t),[k,N]=(0,n.useState)(null),[j,S]=(0,n.useState)(null),C=null==r&&void 0===a&&"jobboard"!==i,T=r||(void 0!==a?a?uh(a):null:j),[A,L]=(0,n.useState)(!1),[I,M]=(0,n.useState)(null),P=(0,n.useRef)(null);(0,n.useEffect)(()=>{const e=P.current;if(!e)return;const t=()=>{e.style.height="";const t=e.querySelector(".nav-v2-mobile-submenu-panel");t&&(t.style.height="",t.style.overflowY="")};if(A){if(I){const t=requestAnimationFrame(()=>{const t=e.querySelector(".nav-v2-mobile-submenu-panel");if(!t)return;const n=t.scrollHeight,r=e.getBoundingClientRect().top,a=window.innerHeight-r,s=Math.min(n,a);e.style.height=`${s}px`,t.style.height=`${s}px`,t.style.overflowY=n>a?"auto":""});return()=>cancelAnimationFrame(t)}t()}else t()},[I,A]),(0,n.useEffect)(()=>{const e=e=>{"Escape"===e.key&&L(!1)};return A?(document.addEventListener("keydown",e),document.body.style.overflow="hidden"):document.body.style.overflow="",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=""}},[A]);const O=()=>{A?(L(!1),M(null)):L(!0)},R=()=>{L(!1),M(null)},D=(e,t,n)=>{if(!t||"undefined"==typeof window)return;if(n&&"_self"!==n||e.defaultPrevented)return;if(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let r=null;try{r=new URL(t,window.location.origin)}catch(e){return}if(r.origin!==window.location.origin)return;if(!r.pathname.startsWith("/creative-strategy/jobs"))return;e.preventDefault();const a=`${r.pathname}${r.search}${r.hash}`;window.history.pushState({},"",a),window.dispatchEvent(new PopStateEvent("popstate"))};if((0,n.useEffect)(()=>{void 0===t&&fh(void 0,void 0,void 0,function*(){try{_(!0),N(null);const e=yield eh.fetchNavigationHeader({baseUrl:v,status:b},fetch);x(e.data.data)}catch(e){N(e instanceof Error?e.message:"Failed to fetch navigation header"),console.error("NavigationHeader: Error fetching navigation header:",e)}finally{_(!1)}})},[v,b,t]),(0,n.useEffect)(()=>{if(!C)return;let e=!1;return fh(void 0,void 0,void 0,function*(){try{const t=yield mh.fetch({baseUrl:v,status:b},fetch);e||S(t.content)}catch(e){console.error("NavigationHeader: Error fetching featured nav content:",e)}}),()=>{e=!0}},[C,v,b]),w)return(0,s.jsxs)("div",{className:"navigation-header-shell",children:[(0,s.jsx)("header",{className:"navigation-header navigation-header-layout-spacer navigation-header-loading",children:(0,s.jsx)("div",{className:"navigation-header-container",children:(0,s.jsx)("div",{className:"navigation-header-placeholder"})})}),(0,s.jsx)("header",{className:"navigation-header navigation-header-layout-floating navigation-header-loading",children:(0,s.jsx)("div",{className:"navigation-header-container",children:(0,s.jsx)("div",{className:"navigation-header-placeholder"})})})]});if(k||!y)return null;const F=y.logo,U=y.logos,$="jobboard"===i?"/creative-strategy/jobs":"/",B=(e,t="/",n)=>{var r,a,o,l,c,u,d,h,p;const m=(e=>{var t;const n=null===(t=null==e?void 0:e.image)||void 0===t?void 0:t.url;return n?n.includes("http")?n:`${v}${n}`:null})(e);if(!e||!m)return null;const f=t&&null!==(r=vh(t))&&void 0!==r?r:void 0,g="jobboard"===i&&0===n;return(0,s.jsxs)("div",{className:`navigation-header-logo navigation-header-logo-index-${n} ${g?"navigation-header-logo--jobboard":""}`,children:[f?(0,s.jsx)("a",{href:f,className:"navigation-header-logo-link",onClick:e=>D(e,f,"_self"),children:(0,s.jsx)("img",{src:m,alt:null!==(o=null===(a=e.image)||void 0===a?void 0:a.alternativeText)&&void 0!==o?o:"Logo",className:"navigation-header-logo-image",width:null===(l=e.image)||void 0===l?void 0:l.width,height:null===(c=e.image)||void 0===c?void 0:c.height})}):(0,s.jsx)("img",{src:m,alt:null!==(d=null===(u=e.image)||void 0===u?void 0:u.alternativeText)&&void 0!==d?d:"Logo",className:"navigation-header-logo-image",width:null===(h=e.image)||void 0===h?void 0:h.width,height:null===(p=e.image)||void 0===p?void 0:p.height}),g&&(0,s.jsx)("span",{className:"navigation-header-logo-jobs-pill",children:"Jobs"})]},`nav-header-logo-key-${e.id}`)},H="jobboard"===i?[]:[...null!==(p=y.navigation_members)&&void 0!==p?p:[]],z=[],q={};if("jobboard"===i){const e=null!==o,t=!0===(null==o?void 0:o.isJobPoster)||!0===(null==o?void 0:o.isSuperuser);if(z.push({id:-201,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-201,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",link:"/creative-strategy/jobs"},type:"normal",bucket:0,class:"",text:"Find a job",index:0,index_smallscreen:0}),t&&z.push({id:-202,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-202,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",link:"/creative-strategy/jobs/post-job"},type:"normal",bucket:0,class:"",text:"Post a job",index:1,index_smallscreen:1}),H.push(...z),e){const e=!0===(null==o?void 0:o.isJobPoster),t=[{id:-11,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-11,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",link:"/creative-strategy/jobs/profile"},type:"normal",bucket:1,class:"",text:"Edit Profile",index:0,index_smallscreen:0}];e&&t.push({id:-12,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-12,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",link:"/creative-strategy/jobs/organizations"},type:"normal",bucket:1,class:"",text:"Organizations",index:1,index_smallscreen:1},{id:-13,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-13,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",link:"/creative-strategy/jobs/post-job"},type:"normal",bucket:1,class:"",text:"Post a job",index:2,index_
2smallscreen:2}),(null==o?void 0:o.isSuperuser)&&t.push({id:-15,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-15,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",link:"/creative-strategy/jobs/admin"},type:"normal",bucket:1,class:"",text:"Superadmin panel",index:e?3:2,index_smallscreen:e?3:2}),t.push({id:-14,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-14,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:""},type:"normal",bucket:1,class:"",text:"Log out",index:e?(null==o?void 0:o.isSuperuser)?4:3:(null==o?void 0:o.isSuperuser)?3:1,index_smallscreen:e?(null==o?void 0:o.isSuperuser)?4:3:(null==o?void 0:o.isSuperuser)?3:1}),H.push({id:-10,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-10,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:""},type:"normal",bucket:1,class:"nav-account-menu",text:null!==(m=null==o?void 0:o.name)&&void 0!==m?m:"My Account",index:0,index_smallscreen:0,children:t}),d&&(q[-14]=d)}else l?(H.push({id:-101,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-101,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:""},type:"normal",bucket:1,class:"nav-auth-ghost",text:"",index:0,index_smallscreen:0}),H.push({id:-102,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-102,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:""},type:"normal",bucket:1,class:"nav-auth-ghost nav-auth-ghost-wide",text:"",index:1,index_smallscreen:1})):(H.push({id:-2,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-2,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:""},type:"normal",bucket:1,class:"button-2",text:"Log in",index:0,index_smallscreen:0}),H.push({id:-3,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:"",navigation_item:{id:-3,documentId:"0",createdAt:"",updatedAt:"",publishedAt:"",name:""},type:"normal",bucket:1,class:"",text:"Sign up",index:1,index_smallscreen:1}),c&&(q[-2]=c),u&&(q[-3]=u))}const G="jobboard"===i?H.filter(e=>{var t;return 1===(null!==(t=e.bucket)&&void 0!==t?t:0)}):[],W=(e,t)=>{var n;if(!T)return null;if(!((e,t)=>{const n=e=>{var t;const n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:"normal";return"feature"===n||"featured-event"===n||"featured-report"===n||"featured-page"===n};return n(e)||n(t)})(e,t))return null;const r=T.imageUrl?T.imageUrl.includes("http")?T.imageUrl:`${v}${T.imageUrl}`:null,a=e.navigation_item,s=T.link||(null===(n=null==a?void 0:a.route)||void 0===n?void 0:n.full_path)||(null==a?void 0:a.link)||null;return{title:T.title,description:T.description,imageUrl:r,link:vh(s)}},Y=(e,t=0)=>{var n,r,a,l;const c=e.navigation_item,u=null!==(n=e.children)&&void 0!==n?n:[],d=u.length>0,h=null!==(r=e.type)&&void 0!==r?r:"normal",p=null!==(a=e.class)&&void 0!==a?a:"",m=p.includes("nav-auth-ghost"),f=gh(c),g=q[e.id],b=u.filter(e=>{var t;return"normal"===(null!==(t=e.type)&&void 0!==t?t:"normal")}),y=u.filter(e=>"feature"===e.type),x=y.length>0,w=()=>{var t,n,r,a,l,u,h,p;const f=-10===e.id&&"jobboard"===i&&!!o;return(0,s.jsxs)("span",{className:"navigation-header-link-inner",children:[(null==c?void 0:c.image)&&(0,s.jsx)("img",{src:(null===(n=null===(t=c.image.image)||void 0===t?void 0:t.url)||void 0===n?void 0:n.includes("http"))?c.image.image.url:`${v}${null===(r=c.image.image)||void 0===r?void 0:r.url}`,alt:null!==(l=null===(a=c.image.image)||void 0===a?void 0:a.alternativeText)&&void 0!==l?l:"",className:"navigation-header-item-image"}),f?(0,s.jsxs)("span",{className:"navigation-header-account-chip",children:[o.avatarUrl?(0,s.jsx)("img",{src:o.avatarUrl,alt:"",className:"navigation-header-account-avatar"}):(0,s.jsx)("span",{className:"navigation-header-account-avatar navigation-header-account-avatar-fallback",children:(null!==(h=null===(u=o.name)||void 0===u?void 0:u.charAt(0))&&void 0!==h?h:"U").toUpperCase()}),(0,s.jsx)("span",{className:"navigation-header-item-text",children:null!==(p=o.name)&&void 0!==p?p:"My Account"})]}):m?(0,s.jsx)("span",{className:"navigation-header-auth-ghost-pill","aria-hidden":!0}):(0,s.jsx)("span",{className:"navigation-header-item-text",children:bh(e)}),d&&!m&&(0,s.jsx)("span",{className:"navigation-header-dropdown-icon",children:(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})},_=void 0!==g;return(0,s.jsxs)("li",{className:`navigation-header-member navigation-header-member-depth-${t} navigation-header-member-type-${h} ${p}`,children:[f&&!_&&(0,s.jsx)("a",{href:f,className:"navigation-header-link","data-resolved-link":f,target:null!==(l=e.anchor_target)&&void 0!==l?l:"_self",onClick:t=>{var n;return D(t,f,null!==(n=e.anchor_target)&&void 0!==n?n:"_self")},children:w()}),(_||!f)&&(0,s.jsx)("div",{className:"navigation-header-link",onClick:_?e=>{g&&(e.preventDefault(),g())}:void 0,style:_?{cursor:"pointer"}:void 0,children:w()}),d&&(0,s.jsxs)("div",{className:"navigation-header-children "+(x?"has-feature":""),children:[(0,s.jsx)("ul",{className:"navigation-header-children-normal",children:b.map(e=>Y(e,t+1))}),x&&(0,s.jsx)("div",{className:"navigation-header-children-feature",children:y.map(e=>(e=>{var t,n,r,a,i,o,l,c,u,d;const h=e.navigation_item,p=W(e),m=null!==(t=null==p?void 0:p.link)&&void 0!==t?t:gh(h),f=null!==(n=e.class)&&void 0!==n?n:"";let g=null===(a=null===(r=null==h?void 0:h.image)||void 0===r?void 0:r.image)||void 0===a?void 0:a.url;g&&!g.includes("http")&&(g=`${v}${g}`),(null==p?void 0:p.imageUrl)&&(g=p.imageUrl);const b=(null==p?void 0:p.title)||bh(e),y=p?p.description:null!==(i=null==h?void 0:h.body)&&void 0!==i?i:null,x=m?(0,s.jsx)("a",{href:m,className:"navigation-header-feature-title",target:null!==(o=e.anchor_target)&&void 0!==o?o:"_self",onClick:t=>{var n;return D(t,m,null!==(n=e.anchor_target)&&void 0!==n?n:"_self")},children:b}):(0,s.jsx)("div",{className:"navigation-header-feature-title",children:b}),w=g?(0,s.jsx)("img",{src:g,alt:null!==(u=null===(c=null===(l=null==h?void 0:h.image)||void 0===l?void 0:l.image)||void 0===c?void 0:c.alternativeText)&&void 0!==u?u:b,className:"navigation-header-feature-image"}):null,_=(0,s.jsxs)("div",{className:"navigation-header-feature-content",children:[x,(0,s.jsxs)("div",{className:"navigation-header-feature-content-inner",children:[m?(0,s.jsx)("a",{href:m,className:"navigation-header-feature-content-link",target:null!==(d=e.anchor_target)&&void 0!==d?d:"_self",onClick:t=>{var n;return D(t,m,null!==(n=e.anchor_target)&&void 0!==n?n:"_self")},children:w}):w,y&&(0,s.jsx)("div",{className:"navigation-header-feature-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:y})})]})]});return(0,s.jsx)("div",{className:`navigation-header-feature-member ${f}`,children:_},e.id)})(e))})]})]},e.id)},V=(e,t)=>[...e].sort((e,n)=>{var r,a;return(null!==(r=e[t])&&void 0!==r?r:Number.MAX_SAFE_INTEGER)-(null!==(a=n[t])&&void 0!==a?a:Number.MAX_SAFE_INTEGER)}),K=H.reduce((e,t)=>
2{var n;const r=null!==(n=t.bucket)&&void 0!==n?n:0;return e[r]||(e[r]=[]),e[r].push(t),e},{});Object.keys(K).forEach(e=>{K[Number(e)]=V(K[Number(e)],"index")});const Q=Object.keys(K).map(Number).sort((e,t)=>e-t),X=H.reduce((e,t)=>{var n;const r=null!==(n=t.bucket)&&void 0!==n?n:0;return e[r]||(e[r]=[]),e[r].push(t),e},{});Object.keys(X).forEach(e=>{X[Number(e)]=V(X[Number(e)],"index_smallscreen")});const J=Object.keys(X).map(Number).sort((e,t)=>e-t),Z=({member:e,depth:t=0})=>{var r,a,i,o;const[l,c]=(0,n.useState)(!1),u=e.navigation_item,d=null!==(r=e.children)&&void 0!==r?r:[],h=d.length>0,p=null!==(a=e.type)&&void 0!==a?a:"normal",m=null!==(i=e.class)&&void 0!==i?i:"",f=m.includes("nav-auth-ghost"),v=gh(u),g=q[e.id],b=void 0!==g,y=e=>{e.preventDefault(),e.stopPropagation(),c(!l)},x=(0,s.jsxs)(s.Fragment,{children:[f?(0,s.jsx)("span",{className:"navigation-header-auth-ghost-pill","aria-hidden":!0}):(0,s.jsx)("span",{className:"navigation-header-mobile-link-text",children:bh(e)}),h&&!f&&(0,s.jsx)("span",{className:"navigation-header-mobile-dropdown-icon "+(l?"expanded":""),onClick:y,children:(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]});return(0,s.jsxs)("li",{className:`navigation-header-mobile-member navigation-header-mobile-member-depth-${t} navigation-header-mobile-member-type-${p} ${m} ${h?"has-children":""} ${l?"is-expanded":""}`,children:[b?(0,s.jsx)("div",{className:"navigation-header-mobile-link",onClick:e=>{g&&(e.preventDefault(),R(),g())},style:{cursor:"pointer"},children:x}):v&&!h?(0,s.jsx)("a",{href:v,className:"navigation-header-mobile-link",onClick:t=>{var n;R(),D(t,v,null!==(n=e.anchor_target)&&void 0!==n?n:"_self")},target:null!==(o=e.anchor_target)&&void 0!==o?o:"_self",children:x}):(0,s.jsx)("div",{className:"navigation-header-mobile-link",onClick:h?y:void 0,children:x}),h&&(0,s.jsx)("ul",{className:"navigation-header-mobile-children "+(l?"is-visible":""),children:d.map(e=>(0,s.jsx)(Z,{member:e,depth:t+1},e.id))})]})},ee=null!==(f=null==y?void 0:y.navigation)&&void 0!==f?f:null,te=e=>{if(!ee)return{};const t=((e,t)=>{var n,r,a,s,i;const o=null!==(n=e.children)&&void 0!==n?n:[],l=null!==(a=null===(r=e.config)||void 0===r?void 0:r.buckets)&&void 0!==a?a:[],c=null!==(i=null===(s=e.config)||void 0===s?void 0:s.children)&&void 0!==i?i:{};if(0===l.length)return[o];const u=l.map(()=>[]);o.forEach(e=>{var n,r,a,s,i,o;const l=c[e.documentId],d=t?null!==(a=null!==(r=null===(n=null==l?void 0:l.bucket)||void 0===n?void 0:n.smallscreen)&&void 0!==r?r:e.bucket)&&void 0!==a?a:0:null!==(o=null!==(i=null===(s=null==l?void 0:l.bucket)||void 0===s?void 0:s.desktop)&&void 0!==i?i:e.bucket)&&void 0!==o?o:0,h=Math.min(Math.max(d,0),u.length-1);u[h].push(e)});const d=t?"smallscreen":"desktop";return u.forEach(e=>{e.sort((e,n)=>{var r,a,s,i,o,l;const u=c[e.documentId],h=c[n.documentId];return(null!==(s=null!==(a=null===(r=null==u?void 0:u.index)||void 0===r?void 0:r[d])&&void 0!==a?a:t?e.index_smallscreen:e.index)&&void 0!==s?s:Number.MAX_SAFE_INTEGER)-(null!==(l=null!==(o=null===(i=null==h?void 0:h.index)||void 0===i?void 0:i[d])&&void 0!==o?o:t?n.index_smallscreen:n.index)&&void 0!==l?l:Number.MAX_SAFE_INTEGER)})}),u})(ee,e),n={};return t.forEach((e,t)=>{n[t]=e}),n},ne=()=>(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M4.5 2.5L8 6L4.5 9.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),re=()=>(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),ae=e=>{var t;const n=null!==(t=e.children)&&void 0!==t?t:[];return n.length>0&&n.some(e=>{var t,n;return(null!==(n=null===(t=e.children)||void 0===t?void 0:t.length)&&void 0!==n?n:0)>0})},se=(e,t,n=!1)=>{var r,a,s,i;const o=n?(null!==(r=e.children)&&void 0!==r?r:[]).filter(e=>{var t,n;return(null!==(n=null===(t=e.children)||void 0===t?void 0:t.length)&&void 0!==n?n:0)>0}):null!==(a=e.children)&&void 0!==a?a:[],l=null!==(i=null===(s=e.config)||void 0===s?void 0:s.children)&&void 0!==i?i:{},c=t?"smallscreen":"desktop";
2return[...o].sort((e,n)=>{var r,a,s,i,o,u;const d=l[e.documentId],h=l[n.documentId];return(null!==(s=null!==(a=null===(r=null==d?void 0:d.index)||void 0===r?void 0:r[c])&&void 0!==a?a:t?e.index_smallscreen:e.index)&&void 0!==s?s:Number.MAX_SAFE_INTEGER)-(null!==(u=null!==(o=null===(i=null==h?void 0:h.index)||void 0===i?void 0:i[c])&&void 0!==o?o:t?n.index_smallscreen:n.index)&&void 0!==u?u:Number.MAX_SAFE_INTEGER)})},ie=(e,t=!1,n)=>{var r,a,i,o,l,c,u,d,h,p,m,f,g,b,y,x,w;const _=e.navigation_item,k=W(e,n),N=null!==(r=null==k?void 0:k.link)&&void 0!==r?r:gh(_),E=(null==k?void 0:k.title)||bh(e),j=k?k.description:null==_?void 0:_.body,S=t?null!==(o=null===(i=null===(a=null==_?void 0:_.image)||void 0===a?void 0:a.smallscreen)||void 0===i?void 0:i.url)&&void 0!==o?o:null===(c=null===(l=null==_?void 0:_.image)||void 0===l?void 0:l.image)||void 0===c?void 0:c.url:null!==(h=null===(d=null===(u=null==_?void 0:_.image)||void 0===u?void 0:u.image)||void 0===d?void 0:d.url)&&void 0!==h?h:null===(m=null===(p=null==_?void 0:_.image)||void 0===p?void 0:p.smallscreen)||void 0===m?void 0:m.url;let C=S?S.includes("http")?S:`${v}${S}`:null;(null==k?void 0:k.imageUrl)&&(C=k.imageUrl);const T=null!==(x=t?null===(g=null===(f=null==_?void 0:_.image)||void 0===f?void 0:f.smallscreen)||void 0===g?void 0:g.alternativeText:null===(y=null===(b=null==_?void 0:_.image)||void 0===b?void 0:b.image)||void 0===y?void 0:y.alternativeText)&&void 0!==x?x:E,A=(0,s.jsxs)(s.Fragment,{children:[E&&(0,s.jsx)("span",{className:"nav-v2-multicol-item-title",children:E}),j&&(0,s.jsx)("p",{className:"nav-v2-multicol-item-body",children:j}),C&&(0,s.jsx)("img",{src:C,alt:T,className:"nav-v2-multicol-item-image"})]});return N?(0,s.jsx)("a",{href:N,className:"nav-v2-multicol-item",target:null!==(w=e.anchor_target)&&void 0!==w?w:"_self",onClick:t=>{var n;return D(t,N,null!==(n=e.anchor_target)&&void 0!==n?n:"_self")},children:A},e.id):(0,s.jsx)("div",{className:"nav-v2-multicol-item",children:A},e.id)},oe=e=>{const t=se(e,!1,!0);return 0===t.length?null:(0,s.jsx)("div",{className:"nav-v2-multicol-dropdown",children:t.map((e,t)=>(0,s.jsxs)(n.Fragment,{children:[t>0&&(0,s.jsx)("div",{className:"nav-v2-multicol-divider","aria-hidden":"true"}),(0,s.jsxs)("div",{className:"nav-v2-multicol-column",children:[(0,s.jsx)("div",{className:"nav-v2-multicol-column-header",children:bh(e)}),(0,s.jsx)("div",{className:"nav-v2-multicol-column-items",children:se(e,!1).map(t=>ie(t,!1,e))})]})]},e.id))})},le=e=>{var t,n,r;if(!ae(e))return Y(e,0);const a=e.navigation_item,i=null!==(t=e.type)&&void 0!==t?t:"normal",o=null!==(n=e.class)&&void 0!==n?n:"",l=gh(a),c=(0,s.jsxs)("span",{className:"navigation-header-link-inner",children:[(0,s.jsx)("span",{className:"navigation-header-item-text",children:bh(e)}),(0,s.jsx)("span",{className:"navigation-header-dropdown-icon",children:(0,s.jsx)(re,{})})]});return(0,s.jsxs)("li",{className:`navigation-header-member navigation-header-member-depth-0 navigation-header-member-type-${i} ${o} nav-v2-has-multi-column`,children:[l?(0,s.jsx)("a",{href:l,className:"navigation-header-link",target:null!==(r=e.anchor_target)&&void 0!==r?r:"_self",onClick:t=>{var n;return D(t,l,null!==(n=e.anchor_target)&&void 0!==n?n:"_self")},children:c}):(0,s.jsx)("div",{className:"navigation-header-link",children:c}),(0,s.jsx)("div",{className:"navigation-header-children nav-v2-multicol-dropdown-wrapper",children:oe(e)})]},e.id)},ce=e=>{const t=se(e,!0,!0),r=bh(e);return(0,s.jsxs)("div",{className:"nav-v2-mobile-submenu",children:[r&&(0,s.jsx)("div",{className:"nav-v2-mobile-submenu-name",children:r}),(0,s.jsx)("div",{className:"nav-v2-mobile-submenu-content",children:t.map((e,t)=>(0,s.jsxs)(n.Fragment,{children:[t>0&&(0,s.jsx)("hr",{className:"nav-v2-mobile-section-divider"}),(0,s.jsxs)("div",{className:"nav-v2-mobile-section",children:[(0,s.jsx)("div",{className:"nav-v2-mobile-section-header",children:bh(e)}),(0,s.jsx)("div",{className:"nav-v2-mobile-section-items",children:se(e,!0).map(t=>ie(t,!0,e))})]})]},e.id))})]})},ue=({member:e})=>{var t,n;if(!ae(e))return(0,s.jsx)(Z,{member:e,depth:0});const r=null!==(t=e.type)&&void 0!==t?t:"normal",a=null!==(n=e.class)&&void 0!==n?n:"";return(0,s.jsx)("li",{className:`navigation-header-mobile-member navigation-header-mobile-member-depth-0 navigation-header-mobile-member-type-${r} ${a} nav-v2-mobile-has-submenu`,children:(0,s.jsxs)("div",{className:"navigation-header-mobile-link",onClick:()=>M(e),role:"button","aria-expanded":!1,children:[(0,s.jsx)("span",{className:"navigation-header-mobile-link-text",children:bh(e)}),(0,s.jsx)("span",{className:"navigation-header-mobile-dropdown-icon",children:(0,s.jsx)(ne,{})})]})})}
2,de=te(!1),he=te(!0),pe=Object.keys(de).map(Number).sort((e,t)=>e-t),me=Object.keys(he).map(Number).sort((e,t)=>e-t),fe=!!(ee&&A&&I),ve=e=>(0,s.jsxs)("header",{className:`navigation-header navigation-header-layout-${e} ${h} ${A?"mobile-menu-open":""} ${fe?"nav-v2-submenu-header-mode":""}`,children:[(0,s.jsxs)("div",{className:"navigation-header-container",children:[ee&&(0,s.jsx)("button",{type:"button",className:"nav-v2-mobile-back-arrow",onClick:()=>M(null),"aria-label":"Back",children:(0,s.jsx)("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M1 7H17M1 7L7 1M1 7L7 13",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}),U&&U.length>0?(0,s.jsx)("div",{className:"navigation-header-logos",children:U.map((e,t)=>B(e,$,t)).filter(Boolean)}):F?B(F,$,0):null,ee?"jobboard"===i?(0,s.jsxs)("nav",{className:"navigation-header-nav navigation-header-nav-desktop",children:[z.length>0&&(0,s.jsx)("ul",{className:"navigation-header-members navigation-header-bucket-0",children:z.map(e=>le(e))}),G.length>0&&(0,s.jsx)("ul",{className:"navigation-header-members navigation-header-bucket-1",children:G.map(e=>le(e))})]}):(0,s.jsx)("nav",{className:"navigation-header-nav navigation-header-nav-desktop",children:pe.map(e=>(0,s.jsx)("ul",{className:`navigation-header-members navigation-header-bucket-${e}`,children:de[e].map(e=>le(e))},e))}):(0,s.jsx)("nav",{className:"navigation-header-nav navigation-header-nav-desktop",children:Q.map(e=>(0,s.jsx)("ul",{className:`navigation-header-members navigation-header-bucket-${e}`,children:K[e].map(e=>Y(e))},e))}),(0,s.jsx)("button",{type:"button",className:"navigation-header-mobile-toggle",onClick:O,"aria-label":A?"Close menu":"Open menu","aria-expanded":A,children:(0,s.jsxs)("span",{className:"navigation-header-hamburger",children:[(0,s.jsx)("span",{className:"navigation-header-hamburger-line"}),(0,s.jsx)("span",{className:"navigation-header-hamburger-line"}),(0,s.jsx)("span",{className:"navigation-header-hamburger-line"})]})})]}),(0,s.jsx)("div",{className:"navigation-header-mobile-overlay",onClick:R}),ee?"jobboard"===i?(0,s.jsxs)("nav",{ref:P,className:"navigation-header-nav-mobile nav-v2-mobile-nav "+(I?"nav-v2-submenu-open":""),children:[(0,s.jsxs)("div",{className:"nav-v2-mobile-main-panel",children:[z.length>0&&(0,s.jsx)("ul",{className:"navigation-header-mobile-members navigation-header-mobile-bucket-0",children:z.map(e=>(0,s.jsx)(ue,{member:e},e.id))}),G.length>0&&(0,s.jsx)("ul",{className:"navigation-header-mobile-members navigation-header-mobile-bucket-1",children:G.map(e=>(0,s.jsx)(ue,{member:e},e.id))})]}),(0,s.jsx)("div",{className:"nav-v2-mobile-submenu-panel",children:I&&ce(I)})]}):(0,s.jsxs)("nav",{ref:P,className:"navigation-header-nav-mobile nav-v2-mobile-nav "+(I?"nav-v2-submenu-open":""),children:[(0,s.jsx)("div",{className:"nav-v2-mobile-main-panel",children:me.map(e=>(0,s.jsx)("ul",{className:`navigation-header-mobile-members navigation-header-mobile-bucket-${e}`,children:he[e].map(e=>(0,s.jsx)(ue,{member:e},e.id))},e))}),(0,s.jsx)("div",{className:"nav-v2-mobile-submenu-panel",children:I&&ce(I)})]}):(0,s.jsx)("nav",{className:"navigation-header-nav-mobile",children:J.map(e=>(0,s.jsx)("ul",{className:`navigation-header-mobile-members navigation-header-mobile-bucket-${e}`,children:X[e].map(e=>(0,s.jsx)(Z,{member:e},e.id))},e))})]});return(0,s.jsxs)("div",{className:"navigation-header-shell",children:[ve("spacer"),ve("floating")]})};i(8180);const xh=({baseUrl:e,event:t})=>{var n,r;const a=function(e){var t,n,r,a,s,i,o,l,c,u,d,h;const p=e.event_category;if(!p||"object"!=typeof p)return null;const m=p,f=(null!==(n=null!==(t=m.name)&&void 0!==t?t:m.slug)&&void 0!==n?n:"").trim();if(f.length>0)return f;const v=p,g=(null!==(h=null!==(u=null!==(o=null!==(s=null===(a=null===(r=v.data)||void 0===r?void 0:r.attributes)||void 0===a?void 0:a.name)&&void 0!==s?s:null===(i=v.data)||void 0===i?void 0:i.name)&&void 0!==o?o:null===(c=null===(l=v.data)||void 0===l?void 0:l.attributes)||void 0===c?void 0:c.slug)&&void 0!==u?u:null===(d=v.data)||void 0===d?void 0:d.slug)&&void 0!==h?h:"").trim();return g.length>
20?g:null}(t),i=function(e){const t="string"==typeof e.description_short?e.description_short.trim():"";if(t.length>0)return t;const n="string"==typeof e.description?e.description.trim():"";return n.length>0?n:null}(t),o=function(e,t){var n,r,a,s,i,o,l;const c=null!==(n=e.tile_image)&&void 0!==n?n:e.cover_image,u=null!==(l=null!==(s=null===(a=null===(r=null==c?void 0:c.formats)||void 0===r?void 0:r.medium)||void 0===a?void 0:a.url)&&void 0!==s?s:null===(o=null===(i=null==c?void 0:c.formats)||void 0===i?void 0:i.large)||void 0===o?void 0:o.url)&&void 0!==l?l:null==c?void 0:c.url;return u?u.startsWith("http")?u:`${t}${u}`:null}(t,e);let l=function(e){return"string"==typeof e&&e.toLowerCase().includes("live")}(a)?"category-wrapper upcoming-live-text is-small-mobile":"category-wrapper";return l=`${l} ${null!==(r=null===(n=t.event_category)||void 0===n?void 0:n.slug)&&void 0!==r?r:""}`,(0,s.jsx)("li",{className:"events-index-card-item",children:(0,s.jsxs)("a",{href:`/events/${t.slug}`,className:"events-index-card",children:[o&&(0,s.jsx)("img",{className:"events-index-card-image",src:o,alt:t.title||t.slug}),(0,s.jsx)("div",{className:"events-index-card-body",children:(0,s.jsxs)("div",{className:"margin-top-small",children:[a&&(0,s.jsx)("div",{className:l,children:a}),(0,s.jsx)("h3",{className:"heading-tiny",children:t.title||t.slug}),i&&(0,s.jsx)("div",{className:"text-size-small",children:i})]})})]})})};i(2100);function wh(e){var t,n,r;const a=null!==(r=null!==(n=null!==(t=e.publish_date)&&void 0!==t?t:e.start_date)&&void 0!==n?n:e.createdAt)&&void 0!==r?r:null;if(!a)return 0;const s=new Date(a).getTime();return Number.isNaN(s)?0:s}const _h=({baseUrl:e,currentSlug:t,limit:r=3})=>{const a=g()?"published":"draft",[i,o]=(0,n.useState)([]);return(0,n.useEffect)(()=>{let n=!1;return s=void 0,i=void 0,c=function*(){var s;try{const i=yield nh.fetchPagedEvents({baseUrl:e,status:a,page:1,pageSize:100},fetch);if(n)return;const l=(null!==(s=i.data.data)&&void 0!==s?s:[]).filter(e=>!0===e.listed).filter(e=>!t||e.slug!==t).sort((e,t)=>wh(t)-wh(e)).slice(0,r);o(l)}catch(e){console.error("Error fetching related content events:",e)}},new((l=void 0)||(l=Promise))(function(e,t){function n(e){try{a(c.next(e))}catch(e){t(e)}}function r(e){try{a(c.throw(e))}catch(e){t(e)}}function a(t){t.done?e(t.value):function(e){return e instanceof l?e:new l(function(t){t(e)})}(t.value).then(n,r)}a((c=c.apply(s,i||[])).next())}),()=>{n=!0};var s,i,l,c},[e,a,t,r]),0===i.length?null:(0,s.jsx)("section",{className:"legacy-related-content",children:(0,s.jsxs)("div",{className:"legacy-related-content-container",children:[(0,s.jsx)("h2",{className:"legacy-related-content-title",children:"Related content"}),(0,s.jsx)("ul",{className:"legacy-related-content-grid",children:i.map(t=>(0,s.jsx)(xh,{baseUrl:e,event:t},t.id))})]})})};function kh(e){var t,n;const r=null===(n=null===(t=e.mods)||void 0===t?void 0:t.template)||void 0===n?void 0:n.include;return!(!r||!Array.isArray(r))&&r.includes("header")}const Nh=({baseUrl:e,gated:t=!1,event:n,header:r,featuredNav:a,featuredEvent:i,currentPath:o,routeExcludesHeader:l=!1})=>{var c,u,d,h,p,m,f,v;const g=kh(n)&&!l,b=null!==(d=null===(u=null===(c=n.mods)||void 0===c?void 0:c.template)||void 0===u?void 0:u.headerTheme)&&void 0!==d?d:void 0,y=!0===(null===(p=null===(h=n.mods)||void 0===h?void 0:h.template)||void 0===p?void 0:p.includeLegacyRelatedContent),x=["event",null!==(m=n.type)&&void 0!==m?m:"",null!==(f=n.class)&&void 0!==f?f:"",t?"gated":"",n.layout?`event-layout-${n.layout}`:""].filter(Boolean).join(" "),w=[...n.start_date?[{type:"event-start-date",date:n.start_date}]:[],...n.end_date?[{type:"event-end-date",date:n.end_date}]:[],...n.registration_close_date?[{type:"event-registration-close",date:n.registration_close_date}]:[]];return"sidenav-001"===n.layout?(0,s.jsxs)("article",{className:x,children:[g&&(0,s.jsx)(yh,{baseUrl:e,initialData:r,theme:b,featuredNav:a,featuredEvent:i}),n.navigation&&(0,s.jsx)("div",{className:"event-mobile-nav",children:(0,s.jsx)(Ud,{block:{__component:"shared.navigation",id:0,class:"mobile-header"},baseUrl:e,navigation:n.navigation,currentPath:o,activeContentDocumentId:n.documentId})}),n.hero&&(0,s.jsx)("div",{className:`event-hero event-block event-block-hero ${null!==(v=n.hero.class)&&void 0!==v?v:""}`,children:(0,s.jsx)(ac,{baseUrl:e,block:n.hero,dates:w})}),(0,s.jsxs)("div",{className:"event-sidenav-layout",children:[n.navigation&&(0,s.jsx)("div",{className:"event-sidenav-column",children:(0,s.jsx)(Ud,{block:{__component:"shared.navigation",id:0,class:"sidenav"},baseUrl:e,navigation:n.navigation,currentPath:o,activeContentDocumentId:n.documentId})}),(0,s.jsx)("div",{className:"event-main-column",children:(0,s.jsx)(Zd,{baseUrl:e,event:n,blocks:n.blocks||[],gated:t,currentPath:o})})]}),y&&(0,s.jsx)(_h,{baseUrl:e,currentSlug:n.slug})]}):(0,s.jsxs)("article",{className:x,children:[g&&(0,s.jsx)(yh,{baseUrl:e,initialData:r,theme:b,featuredNav:a,featuredEvent:i}),(0,s.jsx)(Zd,{baseUrl:e,event:n,blocks:n.blocks||[],gated:t,currentPath:o}),y&&(0,s.jsx)(_h,{baseUrl:e,currentSlug:n.slug})]})};function Eh(e){return"string"==typeof e&&e.toLowerCase().includes("live")}i(2564);const jh=({baseUrl:e,event:t})=>{var n,r,a,i,o,l;const c=function(e){var t,n,r,a;const s=(null!==(a=null!==(n=null===(t=e.event_category)||void 0===t?void 0:t.name)&&void 0!==n?n:null===(r=e.event_category)||void 0===r?void 0:r.slug)&&void 0!==a?a:"").trim();return s.length>0?s:null}(t),u=function(e,t){var n,r,a,s,i,o,l;const c=null!==(n=e.cover_image)&&void 0!==n?n:e.tile_image,u=null!==(l=null!==(s=null===(a=null===(r=null==c?void 0:c.formats)||void 0===r?void 0:r.large)||void 0===a?void 0:a.url)&&void 0!==s?s:null===(o=null===(i=null==c?void 0:c.formats)||void 0===i?void 0:i.medium)||void 0===o?void 0:o.url)&&void 0!==l?l:null==c?void 0:c.url;return u?u.startsWith("http")?u:`${t}${u}`:null}(t,e),d=null!==(a=null!==(r=null!==(n=t.featured_event_description)&&void 0!==n?n:t.description)&&void 0!==r?r:t.description_short)&&void 0!==a?a:"",h=(null!==(i=t.featured_event_button_text)&&void 0!==i?i:"").trim()||"Learn more",p=["events-featured-hero-badge","badge-text",Eh(c)?"is-live-event":"",null!==(l=null===(o=t.event_category)||void 0===o?void 0:o.slug)&&void 0!==l?l:""].filter(
2Boolean).join(" ");return(0,s.jsx)("section",{className:"events-featured-hero",children:(0,s.jsxs)("a",{href:`/events/${t.slug}`,className:"events-featured-hero-grid",children:[u&&(0,s.jsx)("div",{className:"events-featured-hero-media",children:(0,s.jsx)("img",{className:"events-featured-hero-image",src:u,alt:t.title||t.slug})}),(0,s.jsxs)("div",{className:"events-featured-hero-content",children:[c&&(0,s.jsx)("div",{className:p,children:c}),(0,s.jsx)("h1",{className:"events-featured-hero-title",children:t.title||t.slug}),d&&(0,s.jsx)("p",{className:"events-featured-hero-description",children:d}),(0,s.jsx)("span",{className:"events-featured-hero-button",children:h})]})]})})};i(8188);class Sh{static fetchNavigationFooter(e,t){return n=this,r=void 0,s=function*(){const{baseUrl:n,status:r,populateOptions:a=this.DEFAULT_POPULATE_OPTIONS}=e,s=`/api/navigation-footer?${l.buildQueryString(r,void 0,void 0,a)}`,i=`${n}${s}`;g()||console.log("fetchNavigationFooter apiPathAndQueryString",`${s}`);try{const e=yield t(i);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}. apiUri: ${i}`);const n=yield e.json();return g()||console.log("fetchNavigationFooter returned:",n.data),{response:e,data:n}}catch(e){throw console.error("NavigationFooterService: Error fetching navigation footer:",e),e instanceof Error?e:new Error("Failed to fetch navigation footer")}},new((a=void 0)||(a=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:new a(function(t){t(e)})}(t.value).then(i,o)}l((s=s.apply(n,r||[])).next())});var n,r,a,s}}Sh.DEFAULT_POPULATE_OPTIONS=["logos","logos.image","logos.smallscreen","navigation","navigation.navigation_item","navigation.navigation_item.route","navigation.navigation_item.route.event","navigation.navigation_item.route.drop","navigation.navigation_item.route.report","navigation.navigation_item.image.image","navigation.navigation_item.image.smallscreen","navigation.children","navigation.children.navigation_item","navigation.children.navigation_item.route","navigation.children.navigation_item.route.event","navigation.children.navigation_item.route.drop","navigation.children.navigation_item.route.report","navigation.children.navigation_item.image.image","navigation.children.navigation_item.image.smallscreen","navigation.children.children","navigation.children.children.navigation_item","navigation.children.children.navigation_item.route","navigation.children.children.navigation_item.route.event","navigation.children.children.navigation_item.route.drop","navigation.children.children.navigation_item.route.report","navigation.children.children.navigation_item.image.image","navigation.children.children.navigation_item.image.smallscreen"];function Ch(e,t,n){var r,a,s,i;const o=null===(i=null===(s=null===(a=null===(r=e.config)||void 0===r?void 0:r.children)||void 0===a?void 0:a[t.documentId])||void 0===s?void 0:s.index)||void 0===i?void 0:i[n];if("number"==typeof o)return o;const l="desktop"===n?t.index:t.index_smallscreen;return"number"==typeof l?l:Number.MAX_SAFE_INTEGER}function Th(e,t){var n;const r=[...null!==(n=e.children)&&void 0!==n?n:[]].sort((n,r)=>Ch(e,n,t)-Ch(e,r,t)).map(e=>Th(e,t));return Object.assign(Object.assign({},e),{children:r})}const Ah=({baseUrl:e,initialData:t})=>{var r,a,i,o,l,c,u,d;const h=E(e),p=g()?"published":"draft",[m,f]=(0,n.useState)(null!=t?t:null),[v,b]=(0,n.useState)(void 0===t),[y,x]=(0,n.useState)(null),[w,_]=(0,n.use
2State)(()=>"undefined"==typeof window?"desktop":window.matchMedia("(max-width: 991px)").matches?"smallscreen":"desktop");if((0,n.useEffect)(()=>{if(void 0!==t)return;let e=!1;return n=void 0,r=void 0,s=function*(){try{const t=yield Sh.fetchNavigationFooter({baseUrl:h,status:p},fetch);e||(f(t.data.data),b(!1))}catch(t){e||(x(t instanceof Error?t.message:"Failed to load footer"),b(!1))}},new((a=void 0)||(a=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:new a(function(t){t(e)})}(t.value).then(i,o)}l((s=s.apply(n,r||[])).next())}),()=>{e=!0};var n,r,a,s},[h,p,t]),(0,n.useEffect)(()=>{if("undefined"==typeof window)return;const e=()=>{_(window.matchMedia("(max-width: 991px)").matches?"smallscreen":"desktop")};return e(),window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[]),v)return(0,s.jsx)("footer",{className:"navigation-footer",children:(0,s.jsx)("div",{className:"footer-loading",children:(0,s.jsx)("div",{className:"footer-loading-shimmer"})})});if(y||!m)return null;const k=m.navigation?Th(m.navigation,w):null,N=null!==(r=null==k?void 0:k.children)&&void 0!==r?r:[],j=N.length>1?N.slice(0,-1):N,S=N.length>1?N[N.length-1]:null,C=null!==(a=null==S?void 0:S.children)&&void 0!==a?a:[],T=null!==(i=m.logos)&&void 0!==i?i:[],A=T.length>0?T[0]:null;let L=null!==(l=null===(o=null==A?void 0:A.image)||void 0===o?void 0:o.url)&&void 0!==l?l:null;L&&!L.includes("http")&&(L=`${h}${L}`);const I=null!==(u=null!==(c=null==A?void 0:A.caption)&&void 0!==c?c:null==A?void 0:A.title)&&void 0!==u?u:"Logo",M=null!==(d=null==A?void 0:A.href)&&void 0!==d?d:"/",P=(new Date).getFullYear();return(0,s.jsxs)("footer",{className:"navigation-footer",children:[(0,s.jsxs)("div",{className:"footer-container",children:[L&&(0,s.jsx)("a",{href:M,className:"footer-logo",children:(0,s.jsx)("img",{src:L,alt:I})}),j.length>0&&(0,s.jsx)("div",{className:"footer-columns",children:j.map(e=>{var t,n,r,a,i,o,l;const c=null!==(o=null!==(a=null!==(r=null!==(t=e.text)&&void 0!==t?t:null===(n=e.navigation_item)||void 0===n?void 0:n.text)&&void 0!==r?r:e.name)&&void 0!==a?a:null===(i=e.navigation_item)||void 0===i?void 0:i.name)&&void 0!==o?o:null,u=null!==(l=e.children)&&void 0!==l?l:[];return(0,s.jsxs)("div",{className:"footer-column",children:[c&&(0,s.jsx)("h3",{className:"footer-column-heading",children:c}),u.length>0&&(0,s.jsx)("ul",{className:"footer-column-links",children:u.map(e=>{var t,n,r,a,i,o,l,c,u,d,h,p,m,f,v;const g=null!==(r=null!==(t=e.text)&&void 0!==t?t:null===(n=e.navigation_item)||void 0===n?void 0:n.text)&&void 0!==r?r:null,b=null!==(u=null!==(l=null!==(o=null!==(a=e.text)&&void 0!==a?a:null===(i=e.navigation_item)||void 0===i?void 0:i.text)&&void 0!==o?o:e.name)&&void 0!==l?l:null===(c=e.navigation_item)||void 0===c?void 0:c.name)&&void 0!==u?u:"",y=null!==(f=null!==(p=null===(h=null===(d=e.navigation_item)||void 0===d?void 0:d.route)||void 0===h?void 0:h.full_path)&&void 0!==p?p:null===(m=e.navigation_item)||void 0===m?void 0:m.link)&&void 0!==f?f:"#",x=null!==(v=e.anchor_target)&&void 0!==v?v:void 0,w=!!g&&/<[^>]+>/.test(g);return(0,s.jsx)("li",{children:w&&g?(0,s.jsx)("a",{className:"footer-link",href:y,target:x,rel:"_blank"===x?"noopener noreferrer":void 0,dangerouslySetInnerHTML:{__html:g}}):(0,s.jsx)("a",{className:"footer-link",href:y,target:x,rel:"_blank"===x?"noopener noreferrer":void 0,children:b||y})},e.id)})})]},e.id)})}),m.tagline&&(0,s.jsx)("div",{className:"footer-tagline",children:m.tagline})]}),(0,s.jsx)("div",{className:"footer-bottom",children:(0,s.jsxs)("div",{className:"footer-bottom-inner",children:[(0,s.jsxs)("span",{className:"footer-copyright",children:["© ",P," Motion Creative Cloud Inc."]}),C.length>0&&(0,s.jsx)("div",{className:"footer-legal-links",children:C.map(e=>{var t,n,r,a,i,o,l,c,u,d,h,p,m;const f=(null!==(o=null!==(a=null!==(r=null!==(t=e.text)&&void 0!==t?t:null===(n=e.navigation_item)||void 0===n?void 0:n.text)&&void 0!==r?r:e.name)&&void 0!==a?a:null===(i=e.navigation_item)||void 0===i?void 0:i.name)&&void 0!==o?o:"")||(null===(l=e.navigation_item)||void 0===l?void 0:l.link)||"Legal link",v=null!==(p=null!==(d=null===(u=null===(c=e.navigation_item)||void 0===c?void 0:c.route)||void 0===u?void 0:u.full_path)&&void 0!==d?d:null===(h=e.navigation_item)||void 0===h?void 0:h.link)&&void 0!==p?p:"#",g=null!==(m=e.anchor_target)&&void 0!==m?m:void 0;return(0,s.jsx)("a",{className:"footer-legal-link",href:v,target:g,rel:"_blank"===g?"noopener noreferrer":void 0,"aria-label":f,children:f},e.id)})})]})})]})};function Lh(e,t){return e?"all"===e||e===t:"motion"===t}
2var Ih=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};i(3476),i(4880);const Mh=({baseUrl:e,faq:t,level:r=0,index:a,unfurledDocumentIds:i})=>{const o=(0,n.useCallback)(()=>{if(void 0!==i)return i;const e=k().get("unfurled");return e?e.split(",").filter(e=>""!==e.trim()):[]},[i]),l=(0,n.useMemo)(()=>"page"!==t.type||0!==r,[t.type,r]),c=e=>{if(!e)return null;const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString().split("T")[0]},d=(0,n.useCallback)(e=>{let t=e.updatedAt;if(e.faqs&&e.faqs.length>0)for(const n of e.faqs){const e=d(n);new Date(e)>new Date(t)&&(t=e)}return t},[]),h=(0,n.useMemo)(()=>c(t.publication_date),[t.publication_date]),p=(0,n.useMemo)(()=>c(d(t)),[t,d]),m=(0,n.useCallback)(e=>!l||!!o().includes(e),[l,o]),[f,v]=(0,n.useState)(()=>m(t.documentId));(0,n.useEffect)(()=>{const e=()=>{const e=m(t.documentId);v(e)};return w.addEventListener("popstate",e),()=>{w.removeEventListener("popstate",e)}},[t.documentId,m]);let g=`faq faq-level-${r}`;return t.style_class&&(g=`${g} ${t.style_class}`),l&&f&&(g=`${g} unfurled`),g=l?`${g} is-collapsible`:`${g} is-not-collapsible`,(0,s.jsx)("article",{className:g,children:(0,s.jsxs)("div",{className:"faq-content",children:[(0,s.jsxs)("div",{className:"faq-header",onClick:()=>{if("page"===t.type&&0===r)return;const e=!f;v(e),((e,t)=>{if(!u())return;const n=k(),r=o();let a;a=t?r.includes(e)?r:[...r,e]:r.filter(t=>t!==e),a.length>0?n.set("unfurled",a.join(",")):n.delete("unfurled");const s=n.toString(),i=window.location.pathname+(s?`?${s}`:"");window.history.pushState({},"",i)})(t.documentId,e)},children:[(0,s.jsx)("div",{className:"faq-header-content",children:t.question&&t.question.trim()&&(0,s.jsxs)("div",{className:"faq-question",children:["page"!==t.type&&void 0!==a&&(0,s.jsx)("div",{className:"faq-question-number",children:(0,s.jsxs)("p",{children:[a+1,"."]})}),(0,s.jsx)("div",{className:"faq-question-content",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.question})})]})}),l&&(0,s.jsx)("div",{className:"faq-toggle-icon",children:f?"−":"+"})]}),(0,s.jsx)("div",{className:"faq-answer "+(f?"is-unfurled":"is-collapsed"),children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.answer})}),"page"===t.type&&h&&(0,s.jsxs)("div",{className:"faq-dates",children:[(0,s.jsxs)("div",{className:"faq-date faq-date-published",children:[(0,s.jsx)("span",{className:"faq-date-label",children:"Publish date:"}),(0,s.jsx)("span",{className:"faq-date-value",children:h})]}),p&&(0,s.jsxs)("div",{className:"faq-date faq-date-updated",children:[(0,s.jsx)("span",{className:"faq-date-label",children:"Last Updated:"}),(0,s.jsx)("span",{className:"faq-date-value",children:p})]})]}),t.faqs&&t.faqs.length>0&&(0,s.jsx)("div",{className:"faq-nested",children:t.faqs.map((t,n)=>(0,s.jsx)(Mh,{baseUrl:e,faq:t,level:r+1,index:n,unfurledDocumentIds:i},t.id))})]})})},Ph=Mh;class Oh{static fetchFaqs(e,t){return n=this,r=void 0,s=function*(){const{baseUrl:n,status:r,slug:a,sortOptions:s=this.DEFAULT_SORT_OPTIONS,populateOptions:i=this.DEFAULT_POPULATE_OPTIONS}=e,o=[];a&&o.push({field:"slug",operator:"$eq",value:a});const c=`/api/faqs?${l.buildQueryString(r,s,o.length>0?o:void 0,i)}`,u=`${n}${c}`;g()||(console.log("fetchFaqs apiUri",`${u}`),console.log("fetchFaqs apiPathAndQueryString",`${c}`));try{const e=yield t(u);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=yield e.json();return g()||console.log("fetchFaqs returned:",n.data),{response:e,data:n}}catch(e){throw console.error("Error fetching FAQs (service):",e),e instanceof Error?e:new Error("Failed to fetch FAQs")}},new((a=void 0)||(a=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:new a(function(t){t(e)})}(t.value).then(i,o)}l((s=s.apply(n,r||[])).next())});var n,r,a,s}}Oh.DEFAULT_SORT_OPTIONS=[{field:"publishedAt",order:"desc"},{field:"createdAt",order:"desc"}],Oh.DEFAULT_POPULATE_OPTIONS=["faqs","faqs.faqs"];var Rh="popstate";function Dh(e={}){return function(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,i=a.history,o="POP",l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){o="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:o,location:p.location,delta:t})}function h(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),Fh(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:Hh(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==c&&(c=0,i.replaceState({...i.state,idx:c},""));let p={get action(){return o},get location(){return e(a,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Rh,d),l=e,()=>{a.removeEventListener(Rh,d),l=null}},createHref:e=>t(a,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){o="PUSH";let r=Bh(p.location,e,t);n&&n(r,e),c=u()+1;let d=$h(r,c),h=p.createHref(r);try{i.pushState(d,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(h)}s&&l&&l({action:o,location:p.location,delta:1})},replace:function(e,t){o="REPLACE";let r=Bh(p.location,e,t);n&&n(r,e),c=u();let a=$h(r,c),d=p.createHref(r);i.replaceState(a,"",d),s&&l&&l({action:o,location:p.location,delta:0})},go:e=>i.go(e)};return p}(function(e,t){let{pathname:n,search:r,hash:a}=e.location;return Bh("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:Hh(t)},null,e)}function Fh(e,t){if(!1===e||null==e)throw new Error(t)}function Uh(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function $h(e,t){return{usr:e.state,key:e.key,idx:t}}function Bh(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?zh(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Hh({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"
2===n.charAt(0)?n:"#"+n),e}function zh(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function qh(e,t,n="/"){return function(e,t,n,r){let a=ap(("string"==typeof t?zh(t):t).pathname||"/",n);if(null==a)return null;let s=Gh(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(s);let i=null;for(let e=0;null==i&&e<s.length;++e){let t=rp(a);i=tp(s[e],t,r)}return i}(e,t,n,!1)}function Gh(e,t=[],n=[],r="",a=!1){let s=(e,s,i=a,o)=>{let l={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&i)return;Fh(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let c=up([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(Fh(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Gh(e.children,t,u,c,i)),(null!=e.path||e.index)&&t.push({path:c,score:ep(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of Wh(e.path))s(e,t,!0,n);else s(e,t)}),t}function Wh(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(0===r.length)return a?[s,""]:[s];let i=Wh(r.join("/")),o=[];return o.push(...i.map(e=>""===e?s:[s,e].join("/"))),a&&o.push(...i),o.map(t=>e.startsWith("/")&&""===t?"/":t)}new WeakMap;var Yh=/^:[\w-]+$/,Vh=3,Kh=2,Qh=1,Xh=10,Jh=-2,Zh=e=>"*"===e;function ep(e,t){let n=e.split("/"),r=n.length;return n.some(Zh)&&(r+=Jh),t&&(r+=Kh),n.filter(e=>!Zh(e)).reduce((e,t)=>e+(Yh.test(t)?Vh:""===t?Qh:Xh),r)}function tp(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",i=[];for(let e=0;e<r.length;++e){let o=r[e],l=e===r.length-1,c="/"===s?t:t.slice(s.length)||"/",u=np({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},c),d=o.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=np({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(a,u.params),i.push({params:a,pathname:up([s,u.pathname]),pathnameBase:dp(up([s,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(s=up([s,u.pathnameBase]))}return i}function np(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){Uh("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],i=s.replace(/(.)\/+$/,"$1"),o=a.slice(1),l=r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=o[r]||"";i=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const a=o[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:s,pathnameBase:i,pattern:e}}function rp(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return Uh(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ap(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var sp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ip(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function op(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lp(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function cp(e,t,n,r=!1){let a;"string"==typeof e?a=zh(e):(a={...e},Fh(!a.pathname||!a.pathname.includes("?"),op("?","pathname","search",a)),Fh(!a.pathname||!a.pathname.includes("#"),op("#","pathname","hash",a)),Fh(!a.search||!a.search.includes("#"),op("#","search","hash",a)));let s,i=""===e||""===a.pathname,o=i?"/":a.pathname;if(null==o)s=n;else{let e=t.length-1;if(!r&&o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}s=e>=0?t[e]:"/"}let l=function(e,t="/"){let n,{pathname:r,search:a="",hash:s=""}="string"==typeof e?zh(e):e;if(r)if(i=r,sp.test(i))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),Uh(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${r}`)}n=r.startsWith("/")?ip(r.substring(1),"/"):ip(r,t)}else n=t;var i;return{pathname:n,search:hp(a),hash:pp(s)}}(a,s),c=o&&"/"!==o&&o.endsWith("/"),u=(i||"."===o)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var up=e=>e.join("/").replace(/\/\/+/g,"/"),dp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hp=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",pp=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function mp(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function fp(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var vp=["POST","PUT","PATCH","DELETE"],gp=(new Set(vp),["GET",...vp]);new Set(gp),Symbol("ResetLoaderData");var bp=n.createContext(null);bp.displayName="DataRouter";var yp=n.createContext(null);yp.displayName="DataRouterState";n.createContext(!1);var xp=n.createContext({isTransitioning:!1});xp.displayName="ViewTransition",n.createContext(new Map).displayName="Fetchers",n.createContext(null).displayName="Await";var wp=n.createContext(null);wp.displayName="Navigation";var _p=n.createContext(null);_p.displayName="Location";var kp=n.createContext({outlet:null,matches:[],isDataRoute:!1});kp.displayName="Route";var Np=n.createContext(null);function Ep(){return null!=n.useContext(_p)}function jp(){return Fh(Ep(),"useLocation() may be used only in the context of a <Router> component."),n.useContext(_p).location}Np.displayName="RouteError";var Sp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Cp(e){n.useContext(wp).static||n.useLayoutEffect(e)}function Tp(){let{isDataRoute:e}=n.useContext(kp);return e?function(){let{router:e}=function(e){let t=n.useContext(bp);return Fh(t,Dp(e)),t}("useNavigate"),t=Fp("useNavigate"),r=n.useRef(!1);return Cp(()=>{r.current=!0}),n.useCallback(async(n,a={})=>{Uh(r.current,Sp),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...a}))},[e,t])}():function(){Fh(Ep(),"useNavigate() may be used only in the context of a <Router> component.");let e=n.useContext(bp),{basename:t,navigator:r}=n.useContext(wp),{matches:a}=n.useContext(kp),{pathname:s}=jp(),i=JSON.stringify(lp(a)),o=n.useRef(!1);return Cp(()=>{o.current=!0}),n.useCallback((n,a={})=>
2{if(Uh(o.current,Sp),!o.current)return;if("number"==typeof n)return void r.go(n);let l=cp(n,JSON.parse(i),s,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:up([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,i,s,e])}()}function Ap(){let{matches:e}=n.useContext(kp),t=e[e.length-1];return t?t.params:{}}function Lp(e,{relative:t}={}){let{matches:r}=n.useContext(kp),{pathname:a}=jp(),s=JSON.stringify(lp(r));return n.useMemo(()=>cp(e,JSON.parse(s),a,"path"===t),[e,s,a,t])}function Ip(e,t,r,a,s){Fh(Ep(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=n.useContext(wp),{matches:o}=n.useContext(kp),l=o[o.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",h=l&&l.route;{let e=h&&h.path||"";$p(u,!h||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,m=jp();if(t){let e="string"==typeof t?zh(t):t;Fh("/"===d||e.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=m;let f=p.pathname||"/",v=f;if("/"!==d){let e=d.replace(/^\//,"").split("/");v="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=qh(e,{pathname:v});Uh(h||null!=g,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Uh(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=function(e,t=[],r=null,a=null){if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let s=e,i=r?.errors;if(null!=i){let e=s.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);Fh(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),s=s.slice(0,Math.min(s.length,e+1))}let o=!1,l=-1;if(r)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){o=!0,s=l>=0?s.slice(0,l+1):[s[0]];break}}}let c=r&&a?(e,t)=>{a(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:fp(r.matches),errorInfo:t})}:void 0;return s.reduceRight((e,a,u)=>{let d,h=!1,p=null,m=null;r&&(d=i&&a.route.id?i[a.route.id]:void 0,p=a.route.errorElement||Pp,o&&(l<0&&0===u?($p("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,m=null):l===u&&(h=!0,m=a.route.hydrateFallbackElement||null)));let f=t.concat(s.slice(0,u+1)),v=()=>{let t;return t=d?p:h?m:a.route.Component?n.createElement(a.route.Component,null):a.route.element?a.route.element:e,n.createElement(Rp,{match:a,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(a.route.ErrorBoundary||a.route.errorElement||0===u)?n.createElement(Op,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:v(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:c}):v()},null)}(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:up([d,i.encodeLocation?i.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:up([d,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,r,a,s);return t&&b?n.createElement(_p.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},b):b}function Mp(){let e=function(){let e=n.useContext(Np),t=function(e){let t=n.useContext(yp);return Fh(t,Dp(e)),t}("useRouteError"),r=Fp("useRouteError");return void 0!==e?e:t.errors?.[r]}(),t=mp(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=n.createElement(n.Fragment,null,n.createElement("p",null,"💿 Hey developer 👋"),n.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",n.createElement("code",{style:i},"ErrorBoundary")," or"," ",n.createElement("code",{style:i},"errorElement")," prop on your route.")),n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application 
2Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:s},r):null,o)}n.createContext(null);var Pp=n.createElement(Mp,null),Op=class extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return void 0!==this.state.error?n.createElement(kp.Provider,{value:this.props.routeContext},n.createElement(Np.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Rp({routeContext:e,match:t,children:r}){let a=n.useContext(bp);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),n.createElement(kp.Provider,{value:e},r)}function Dp(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fp(e){let t=function(e){let t=n.useContext(kp);return Fh(t,Dp(e)),t}(e),r=t.matches[t.matches.length-1];return Fh(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}var Up={};function $p(e,t,n){t||Up[e]||(Up[e]=!0,Uh(!1,n))}function Bp({basename:e,children:t,initialEntries:r,initialIndex:a,unstable_useTransitions:s}){let i=n.useRef();null==i.current&&(i.current=function(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:a=!1}=e;t=n.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let s=l(null==r?t.length-1:r),i="POP",o=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[s]}function u(e,n=null,r){let a=Bh(t?c().pathname:"/",e,n,r);return Uh("/"===a.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function d(e){return"string"==typeof e?e:Hh(e)}return{get index(){return s},get action(){return i},get location(){return c()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?zh(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=u(e,n);s+=1,t.splice(s,t.length,r),a&&o&&o({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=u(e,n);t[s]=r,a&&o&&o({action:i,location:r,delta:0})},go(e){i="POP";let n=l(s+e),r=t[n];s=n,o&&o({action:i,location:r,delta:e})},listen:e=>(o=e,()=>{o=null})}}({initialEntries:r,initialIndex:a,v5Compat:!0}));let o=i.current,[l,c]=n.useState({action:o.action,location:o.location}),u=n.useCallback(e=>{!1===s?c(e):n.startTransition(()=>c(e))},[s]);return n.useLayoutEffect(()=>o.listen(u),[o,u]),n.createElement(zp,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,unstable_useTransitions:!0===s})}function Hp(e){Fh(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function zp({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:s,static:i=!1,unstable_useTransitions:o}){Fh(!Ep(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=n.useMemo(()=>({basename:l,navigator:s,static:i,unstable_useTransitions:o,future:{}}),[l,s,i,o]);"string"==typeof r&&(r=zh(r));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:m="default"}=r,f=n.useMemo(()=>{let e=ap(u,l);return null==e?null:{location:{pathname:e,search:d,hash:h,state:p,key:m},navigationType:a}},[l,u,d,h,p,m,a]);return Uh(null!=f,`<Router basename="${l}"> is not able to match the URL "${u}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),null==f?null:n.createElement(wp.Provider,{value:c},n.createElement(_p.Provider,{children:t,value:f}))}function qp({children:e,location:t}){return Ip(Gp(e),t)}function Gp(e,t=[]){let r=[];
2return n.Children.forEach(e,(e,a)=>{if(!n.isValidElement(e))return;let s=[...t,a];if(e.type===n.Fragment)return void r.push.apply(r,Gp(e.props.children,s));Fh(e.type===Hp,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Fh(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=Gp(e.props.children,s)),r.push(i)}),r}r.useOptimistic,n.memo(function({routes:e,future:t,state:n,unstable_onError:r}){return Ip(e,void 0,n,r,t)}),n.Component;var Wp="get",Yp="application/x-www-form-urlencoded";function Vp(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function Kp(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var Qp=null,Xp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jp(e){return null==e||Xp.has(e)?e:(Uh(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yp}"`),null)}function Zp(e,t){if(!1===e||null==e)throw new Error(t)}function em(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function tm(e,t,n,r,a,s){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,o=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===s?t.filter((e,t)=>i(e,t)||o(e,t)):"data"===s?t.filter((t,s)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,s)||o(t,s))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function nm(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1),[...new Set(r)];var r}function rm(){let e=n.useContext(bp);return Zp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function am(){let e=n.useContext(yp);return Zp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var sm=n.createContext(void 0);function im(){let e=n.useContext(sm);return Zp(e,"You must render this element inside a <HydratedRouter> element"),e}function om(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function lm({page:e,...t}){let{router:r}=rm(),a=n.useMemo(()=>qh(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n.createElement(um,{page:e,matches:a,...t}):null}function cm(e){let{manifest:t,routeModules:r}=im(),[a,s]=n.useState([]);return n.useEffect(()=>{let n=!1;return async function(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce((e,a)=>{if(t&&!function(e){return null!=e&&"string"==typeof e.page}(a)&&"script"===a.as&&a.href&&r.has(a.href))return e;let s=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(a));return n.has(s)||(n.add(s),e.push({key:s,link:a})),e},[])}((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.
2isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(em).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||s(e)}),()=>{n=!0}},[e,t,r]),a}function um({page:e,matches:t,...r}){let a=jp(),{manifest:s,routeModules:i}=im(),{basename:o}=rm(),{loaderData:l,matches:c}=am(),u=n.useMemo(()=>tm(e,t,c,s,a,"data"),[e,t,c,s,a]),d=n.useMemo(()=>tm(e,t,c,s,a,"assets"),[e,t,c,s,a]),h=n.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let n=new Set,r=!1;if(t.forEach(e=>{let t=s.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in l&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?r=!0:n.add(e.route.id))}),0===n.size)return[];let c=function(e,t,n){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname=`_root.${n}`:t&&"/"===ap(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}(e,o,"data");return r&&n.size>0&&c.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[o,l,a,s,u,t,e,i]),p=n.useMemo(()=>nm(d,s),[d,s]),m=cm(d);return n.createElement(n.Fragment,null,h.map(e=>n.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),p.map(e=>n.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),m.map(({key:e,link:t})=>n.createElement("link",{key:e,nonce:r.nonce,...t})))}sm.displayName="FrameworkContext";function dm(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}n.Component;var hm="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{hm&&(window.__reactRouterVersion="7.10.1")}catch(e){}function pm({basename:e,children:t,unstable_useTransitions:r,window:a}){let s=n.useRef();null==s.current&&(s.current=Dh({window:a,v5Compat:!0}));let i=s.current,[o,l]=n.useState({action:i.action,location:i.location}),c=n.useCallback(e=>{!1===r?l(e):n.startTransition(()=>l(e))},[r]);return n.useLayoutEffect(()=>i.listen(c),[i,c]),n.createElement(zp,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,unstable_useTransitions:!0===r})}var mm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fm=n.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:a,reloadDocument:s,replace:i,state:o,target:l,to:c,preventScrollReset:u,viewTransition:d,...h},p){let m,{basename:f,unstable_useTransitions:v}=n.useContext(wp),g="string"==typeof c&&mm.test(c),b=!1;if("string"==typeof c&&g&&(m=c,hm))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=ap(t.pathname,f);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:b=!0}catch(e){Uh(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=function(e,{relative:t}={}){Fh(Ep(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=n.useContext(wp),{hash:s,pathname:i,search:o}=Lp(e,{relative:t}),l=i;return"/"!==r&&(l="/"===i?r:up([r,i])),a.createHref({pathname:l,search:o,hash:s})}(c,{relative:a}),[x,w,_]=function(e,t){let r=n.useContext(sm),[a,s]=n.useState(!1),[i,o]=n.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:h}=t,p=n.useRef(null);n.useEffect(()=>{if("render"===e&&o(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),n.useEffect(()=>{if(a){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[a]);let m=()=>{s(!0)},f=()=>{s(!1),o(!1)};return r?"intent"!==e?[i,p,{}]:[i,p,{onFocus:om(l,m),onBlur:om(c,f),onMouseEnter:om(u,m),onMouseLeave:om(d,f),onTouchStart:om(h,m)}]:[!1,p,{}]}(r,h),k=function(e,{target:t,replace:r,state:a,preventScrollReset:s,relative:i,viewTransition:o,unstable_useTransitions:l}={}){let c=Tp(),u=jp(),d=Lp(e,{relative:i});return n.useCallback(h=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(h,t)){h.preventDefault();let t=void 0!==r?r:Hh(u)===Hh(d),p=()=>c(e,{replace:t,state:a,preventScrollReset:s,relative:i,viewTransition:o});l?n.startTransition(()=>p()):p()}},[u,c,d,r,a,t,e,s,i,o,l])}(c,{replace:i,state:o,target:l,preventScrollReset:u,relative:a,viewTransition:d,unstable_useTransitions:v}),N=n.createElement("a",{...h,..._,href:m||y,onClick:b||s?e:function(t){e&&e(t),t.defaultPrevented||k(t)},ref:dm(p,w),target:l,"data-discover":g||"render"!==t?void 0:"true"});return x&&!g?n.createElement(n.Fragment,null,N,n.createElement(lm,{page:y})):N});fm.displayName="Link";var vm=n.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:a=!1,style:s,to:i,viewTransition:o,children:l,...c},u){let d=Lp(i,{relative:c.relative}),h=jp(),p=n.useContext(yp),{navigator:m,basename:f}=n.useContext(wp),v=null!=p&&function(e,{relative:t}={}){let r=n.useContext(xp);Fh(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=bm("useViewTransitionState"),s=Lp(e,{relative:t});if(!r.isTransitioning)return!1;let i=ap(r.currentLocation.pathname,a)||r.currentLocation.pathname,o=ap(r.
2nextLocation.pathname,a)||r.nextLocation.pathname;return null!=np(s.pathname,o)||null!=np(s.pathname,i)}(d)&&!0===o,g=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,b=h.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(b=b.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&f&&(y=ap(y,f)||y);const x="/"!==g&&g.endsWith("/")?g.length-1:g.length;let w,_=b===g||!a&&b.startsWith(g)&&"/"===b.charAt(x),k=null!=y&&(y===g||!a&&y.startsWith(g)&&"/"===y.charAt(g.length)),N={isActive:_,isPending:k,isTransitioning:v},E=_?e:void 0;w="function"==typeof r?r(N):[r,_?"active":null,k?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof s?s(N):s;return n.createElement(fm,{...c,"aria-current":E,className:w,ref:u,style:j,to:i,viewTransition:o},"function"==typeof l?l(N):l)});vm.displayName="NavLink";var gm=n.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:s,state:i,method:o=Wp,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:h,...p},m)=>{let{unstable_useTransitions:f}=n.useContext(wp),v=function(){let{router:e}=bm("useSubmit"),{basename:t}=n.useContext(wp),r=Fp("useRouteId"),a=e.fetch,s=e.navigate;return n.useCallback(async(e,n={})=>{let{action:i,method:o,encType:l,formData:c,body:u}=function(e,t){let n,r,a,s,i;if(function(e){return Vp(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?ap(i,t):null,n=e.getAttribute("method")||Wp,a=Jp(e.getAttribute("enctype"))||Yp,s=new FormData(e)}else if(function(e){return Vp(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Vp(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let o=e.getAttribute("formaction")||i.getAttribute("action");if(r=o?ap(o,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Wp,a=Jp(e.getAttribute("formenctype"))||Jp(i.getAttribute("enctype"))||Yp,s=new FormData(i,e),!function(){if(null===Qp)try{new FormData(document.createElement("form"),0),Qp=!1}catch(e){Qp=!0}return Qp}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";s.append(`${e}x`,"0"),s.append(`${e}y`,"0")}else t&&s.append(t,r)}}else{if(Vp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Wp,r=null,a=Yp,i=e}return s&&"text/plain"===a&&(i=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:i}}(e,t);if(!1===n.navigate){let e=n.fetcherKey||wm();await a(e,r,n.action||i,{preventScrollReset:n.preventScrollReset,formData:c,body:u,formMethod:n.method||o,formEncType:n.encType||l,flushSync:n.flushSync})}else await s(n.action||i,{preventScrollReset:n.preventScrollReset,formData:c,body:u,formMethod:n.method||o,formEncType:n.encType||l,replace:n.replace,state:n.state,fromRouteId:r,flushSync:n.flushSync,viewTransition:n.viewTransition})},[a,s,t,r])}(),g=function(e,{relative:t}={}){let{basename:r}=n.useContext(wp),a=n.useContext(kp);Fh(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),i={...Lp(e||".",{relative:t})},o=jp();if(null==e){i.search=o.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();i.search=n?`?${n}`:""}}return e&&"."!==e||!s.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(i.pathname="/"===i.pathname?r:up([r,i.pathname])),Hh(i)}(l,{relative:u}),b="get"===o.toLowerCase()?"get":"post",y="string"==typeof l&&mm.test(l);return n.createElement("form",{ref:m,method:b,action:g,onSubmit:a?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let a=e.nativeEvent.submitter,l=a?.getAttribute("formmethod")||o,p=()=>v(a||e.currentTarget,{fetcherKey:t,method:l,navigate:r,replace:s,state:i,relative:u,preventScrollReset:d,viewTransition:h});f&&!1!==r?n.startTransition(()=>p()):p()},...p,"data-discover":y||"render"!==e?void 0:"true"})});function bm(e){let t=n.useContext(bp);return Fh(t,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}function ym(e){Uh("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=n.useRef(Kp(e)),r=n.useRef(!1),a=jp(),s=n.useMemo(()=>function(e,t){let n=Kp(e);return t&&t.forEach((e,r)=>
2{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(a.search,r.current?null:t.current),[a.search]),i=Tp(),o=n.useCallback((e,t)=>{const n=Kp("function"==typeof e?e(new URLSearchParams(s)):e);r.current=!0,i("?"+n,t)},[i,s]);return[s,o]}gm.displayName="Form";var xm=0,wm=()=>`__${String(++xm)}__`;i(2638),i(5462),i(7716);const _m=({baseUrl:e,block:t,authors:n})=>n&&0!==n.length?(0,s.jsx)("div",{className:"shared-authors",children:n.map(t=>{var n;const r=(a=null!==(n=t.avatar_square)&&void 0!==n?n:t.avatar)?a.url.startsWith("http")?a.url:`${e}${a.url}`:null;var a;return(0,s.jsxs)("div",{className:"shared-authors-item",children:[r&&(0,s.jsx)("div",{className:"shared-authors-avatar",children:(0,s.jsx)("img",{src:r,alt:t.name||"Author avatar",className:"shared-authors-avatar-img"})}),(0,s.jsxs)("div",{className:"shared-authors-text",children:[(0,s.jsx)("span",{className:"shared-authors-by",children:"By "}),t.linkedin_url?(0,s.jsx)("a",{href:t.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"shared-authors-name shared-authors-name-link",children:t.name}):(0,s.jsx)("span",{className:"shared-authors-name",children:t.name})]})]},t.id)})}):null,km=({block:e,report:t})=>{var r,a,i;
2const[o,l]=(0,n.useState)(!1),c=null!==(a=null!==(r=t.publication_date)&&void 0!==r?r:t.publishedAt)&&void 0!==a?a:t.createdAt;if(!c)return null;const u=(e=>new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}))(c),d=`${f()}//${v()}${p()}`,h=null!==(i=t.title)&&void 0!==i?i:"Check this out",m=()=>{l(!1)};return(0,s.jsxs)("div",{className:"shared-published-date",children:[(0,s.jsx)("div",{className:"shared-published-date-text",children:u}),(0,s.jsxs)("div",{className:"shared-published-date-share",onClick:()=>{l(!0)},children:[(0,s.jsx)("span",{children:"Share"}),(0,s.jsx)("img",{src:"https://cdn.prod.website-files.com/61ba3b439a672312697272c7/6916b5e5186f5dcfa541ec20_Share.png",alt:"Share"})]}),o&&(0,s.jsx)("div",{className:"shared-published-date-share-popup-overlay",onClick:m,children:(0,s.jsxs)("div",{className:"shared-published-date-share-popup",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"shared-published-date-share-popup-header",children:[(0,s.jsx)("h3",{children:"Share"}),(0,s.jsx)("button",{className:"shared-published-date-share-popup-close",onClick:m,"aria-label":"Close",children:"×"})]}),(0,s.jsxs)("div",{className:"shared-published-date-share-popup-buttons",children:[(0,s.jsxs)(Ho,{url:d,title:h,className:"shared-published-date-share-button",children:[(0,s.jsx)(Bo,{size:48,round:!0}),(0,s.jsx)("span",{children:"Twitter (X)"})]}),(0,s.jsxs)(Ro,{url:d,className:"shared-published-date-share-button",children:[(0,s.jsx)(Oo,{size:48,round:!0}),(0,s.jsx)("span",{children:"Facebook"})]}),(0,s.jsxs)($o,{url:d,title:h,className:"shared-published-date-share-button",children:[(0,s.jsx)(Uo,{size:48,round:!0}),(0,s.jsx)("span",{children:"LinkedIn"})]})]})]})})]})};i(2124);const Nm=({block:e,onSuccess:t})=>{var r,a;const[i,o]=(0,n.useState)(""),[l,c]=(0,n.useState)(!1),[u,h]=(0,n.useState)(!1),[p,m]=(0,n.use
2State)([]),[f,v]=(0,n.useState)(""),[g,b]=(0,n.useState)(!1),y=null!==(r=e.__component)&&void 0!==r?r:"shared.subscribe",_=!!i.trim()&&(e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))(i.trim()),k=g&&!_?i.trim()?"Invalid email address":"This field is required":"",N=f||k,E=!!N,j=!(null===(a=e.hubspot_form_id)||void 0===a?void 0:a.value)||l||u;return(0,s.jsxs)("div",{className:"shared-subscribe",children:[e.callout&&(0,s.jsx)("div",{className:"shared-subscribe-callout",children:e.callout}),(0,s.jsxs)("div",{className:"shared-subscribe-form-container",children:[(0,s.jsxs)("form",{onSubmit:n=>{return r=void 0,a=void 0,l=function*(){var r,a,s,l,u;if(n.preventDefault(),b(!0),m([]),v(""),!(null===(r=e.hubspot_form_id)||void 0===r?void 0:r.value))return;if(!_)return;c(!0),h(!1);const p=x.cookie.split(";").find(e=>e.includes("hubspotutk")),f="string"==typeof p?p.split("=")[1]:void 0,g=e.hubspot_form_id.value,y=d(),k=x.title,N={"Content-Type":"application/json","x-hubspot-form-id":g,"x-hubspot-page-uri":y,"x-hubspot-page-name":k,"x-form-source":"subscribe"};N["x-hubspot-utk"]=null!=f?f:"";const E={email:i};(null===(a=e.latest_lead_source)||void 0===a?void 0:a.value)&&(E.latest_lead_source=e.latest_lead_source.value);try{const n=`${zo()}/${g}`;console.log("formSubmitUrl",n);const r=yield ll({submitUrl:n,headers:N,body:E});if(!r.ok){const e=sl(r,["email"]);return v(e.fieldErrorsByName.email||""),m(e.formErrors),void c(!1)}const a=w.dataLayer,d={event:"form_submit",formType:null!==(l=null===(s=e.analytics_form_type)||void 0===s?void 0:s.value)&&void 0!==l?l:"newsletter",formName:"subscribe",data:{email:i},headers:N,hubSpotFormId:g,hubspotutk:f,pageUri:y,pageName:k,latestLeadSource:null===(u=e.latest_lead_source)||void 0===u?void 0:u.value};a.push(d),console.log("Pushed to dataLayer",d),c(!1),h(!0),m([]),v(""),o(""),t&&t()}catch(e){console.error("Error submitting form:",e),m(["An error occurred while submitting the form. Please try again."]),c(!1)}},new((s=void 0)||(s=Promise))(function(e,t){function n(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):function(e){return e instanceof s?e:new s(function(t){t(e)})}(t.value).then(n,i)}o((l=l.apply(r,a||[])).next())});var r,a,s,l},noValidate:!0,className:"shared-subscribe-form "+(j?"shared-subscribe-form-disabled":""),children:[(0,s.jsx)("input",{type:"email",value:i,onChange:e=>{o(e.target.value),f&&v("")},placeholder:"Enter your email",className:"shared-subscribe-email-input"+(E?" is-invalid":""),required:!0,disabled:j,name:`${y}-${e.id}-email`,"aria-invalid":E||void 0,"aria-describedby":N?`${y}-${e.id}-email-error`:void 0}),(0,s.jsxs)("span",{className:"shared-subscribe-button-hit",children:[(0,s.jsx)("button",{type:"submit",className:"shared-subscribe-button"+(_||j?"":" is-form-invalid"),disabled:j,children:l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"shared-subscribe-spinner"}),(0,s.jsx)("span",{children:"Please wait..."})]}):"Subscribe"}),!_&&!j&&(0,s.jsx)("span",{className:"shared-subscribe-button-catcher","aria-hidden":"true",onClick:()=>b(!0)})]})]}),N&&(0,s.jsx)("div",{id:`${y}-${e.id}-email-error`,className:"shared-subscribe-input-error",role:"alert",children:N}),l&&(0,s.jsxs)("div",{className:"shared-subscribe-message shared-subscribe-message-loading",children:[(0,s.jsx)("span",{className:"shared-subscribe-spinner"}),(0,s.jsx)("span",{children:"Please wait..."})]}),u&&(0,s.jsx)("div",{className:"shared-subscribe-message shared-subscribe-message-success",children:"Thank you! Your submission has been received."}),p.length>0&&(0,s.jsx)("div",{className:"shared-subscribe-message shared-subscribe-message-error",children:p.map(e=>(0,s.jsx)("div",{className:"shared-subscribe-error-row",children:e},e))})]})]})},Em=({block:e})=>{const{columns:t}=e.data,r=Math.max(...t.map(e=>e.rows.length),0);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:`shared-flex-table large-screen ${e.class||""}`,children:[(0,s.jsx)("div",{className:"shared-flex-table-header",children:t.map((e,t)=>(0,s.jsx)("div",{className:`shared-flex-table-header-cell column-${t+1}`,children:e.header},t))}),(0,s.jsx)("div",{className:"shared-flex-table-body",children:Array.from({length:r}).map((e,n)=>(0,s.jsx)("div",{className:"shared-flex-table-row",children:t.map((e,t)=>(0,s.jsx)("div",{className:`shared-flex-table-cell column-${t+1}`,children:e.rows[n]||""},t))},n))})]}),(0,s.jsx)("div",{className:`shared-flex-table small-screen ${e.class||""}`,children:(0,s.jsx)("div",{className:"shared-flex-table-body",children:t.map((e,t)=>(0,s.jsx)(n.Fragment,{children:(0,s.jsxs)("div",{className:"shared-flex-table-col",children:[(0,s.jsx)("div",{className:`shared-flex-table-header-cell column-${t+1}`,children:e.header}),e.rows.map((e,n)=>(0,s.jsx)("div",{className:`shared-flex-table-cell column-${t+1}`,children:e},n))]})},t))})})]})};const jm=({block:e})=>
2{const[t,r]=(0,n.useState)(!1);return(0,s.jsxs)("div",{className:"shared-code",children:[(0,s.jsxs)("div",{className:"shared-code-copy-button-wrapper",children:[t&&(0,s.jsx)("div",{className:"shared-code-copied-message",children:"Copied!"}),(0,s.jsx)("button",{className:"shared-code-copy-button",onClick:()=>{return t=void 0,n=void 0,s=function*(){try{const t=x.createElement("div");if(!t)return void console.error("Failed to create element");t.innerHTML=e.contents;const n=t.textContent||t.innerText||"";(yield _(n))&&(r(!0),setTimeout(()=>r(!1),2e3))}catch(e){console.error("Failed to copy:",e)}},new((a=void 0)||(a=Promise))(function(e,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:new a(function(t){t(e)})}(t.value).then(i,o)}l((s=s.apply(t,n||[])).next())});var t,n,a,s},"aria-label":"Copy code",children:(0,s.jsx)("img",{src:"https://cdn.prod.website-files.com/61ba3b439a672312697272c7/6916b600a35551ba4ffc210c_copy.png",alt:t?"Copied!":"Copy"})})]}),(0,s.jsx)("div",{className:"shared-code-contents",dangerouslySetInnerHTML:{__html:e.contents}})]})};i(4400);const Sm=(e,t)=>{if(e)return e.startsWith("http")?e:`${t}${e}`},Cm=({baseUrl:e="",block:t})=>{var r;const a=(null!==(r=t.media)&&void 0!==r?r:[]).filter(e=>
2!0!==e.hide),i=(0,n.useRef)(null),[o,l]=(0,n.useState)(0),[c,u]=(0,n.useState)(!0),[d,h]=(0,n.useState)(!1),[p,m]=(0,n.useState)(0),f=a.length-1,v=(0,n.useCallback)(()=>{const e=i.current;if(!e)return;const t=Array.from(e.querySelectorAll(".rmg-card"));let n=0,r=1/0;t.forEach((t,a)=>{const s=Math.abs(t.offsetLeft-e.scrollLeft);s<r&&(r=s,n=a)}),l(n)},[]),g=(0,n.useCallback)(e=>{const t=i.current;if(!t)return;const n=Array.from(t.querySelectorAll(".rmg-card"))[e];n&&t.scrollTo({left:n.offsetLeft,behavior:"smooth"}),l(e)},[]);(0,n.useEffect)(()=>{const e=i.current;if(e)return v(),e.addEventListener("scroll",v,{passive:!0}),window.addEventListener("resize",v),()=>{e.removeEventListener("scroll",v),window.removeEventListener("resize",v)}},[v]),(0,n.useEffect)(()=>{const e=i.current;if(!e)return;let t=!1,n=0,r=0,a=!1;const s=s=>{u(!1),"mouse"===s.pointerType&&(t=!0,a=!1,n=s.clientX,r=e.scrollLeft,e.classList.add("is-dragging"))},o=s=>{if(!t)return;const i=s.clientX-n;Math.abs(i)>4&&(a=!0),e.scrollLeft=r-i},l=()=>{t&&(t=!1,e.classList.remove("is-dragging"))},c=e=>{a&&(e.preventDefault(),e.stopPropagation(),a=!1)},d=()=>u(!1);return e.addEventListener("pointerdown",s),window.addEventListener("pointermove",o),window.addEventListener("pointerup",l),e.addEventListener("click",c,!0),e.addEventListener("wheel",d,{passive:!0}),()=>{e.removeEventListener("pointerdown",s),window.removeEventListener("pointermove",o),window.removeEventListener("pointerup",l),e.removeEventListener("click",c,!0),e.removeEventListener("wheel",d)}},[]);const b=(0,n.useCallback)(()=>{if(o>=f)return h(!0),void u(!1);g(o+1),m(e=>e+1)},[o,f,g]),y=(0,n.useCallback)(e=>{g(e),h(!1),u(!0),m(e=>e+1)},[g]),x=(0,n.useCallback)(()=>{if(d)return g(0),h(!1),u(!0),void m(e=>e+1);u(e=>!e),m(e=>e+1)},[d,g]);if(0===a.length)return null;const w=t.title,_=t.subtitle,k=t.image_aspect_ratio?{"--rmg-aspect":t.image_aspect_ratio}:void 0,N=c&&!d;return(0,s.jsxs)("div",{className:"rmg rmg-applerip",style:k,children:[(w||_)&&(0,s.jsxs)("div",{className:"rmg-header",children:[w&&(0,s.jsx)("h2",{className:"rmg-title",children:w}),_&&(0,s.jsx)("p",{className:"rmg-subtitle",children:_})]}),(0,s.jsx)("div",{className:"rmg-viewport",children:(0,s.jsx)("div",{className:"rmg-track",ref:i,children:a.map((t,n)=>{var r,i,o,l,c;const u=Sm(null===(r=t.background_image)||void 0===r?void 0:r.url,e),d=t.file,h=null!==(o=null===(i=null==d?void 0:d.mime)||void 0===i?void 0:i.startsWith("video/"))&&void 0!==o&&o,p=Sm(null==d?void 0:d.url,e),m=t.class?` ${t.class}`:"";return(0,s.jsxs)("article",{className:`rmg-card${m}`,"aria-roledescription":"slide","aria-label":`${n+1} of ${a.length}`,children:[u&&(0,s.jsx)("div",{className:"rmg-card-bg",style:{backgroundImage:`url(${u})`},"aria-hidden":"true"}),(0,s.jsxs)("div",{className:"rmg-card-inner",children:[t.title&&(0,s.jsx)("p",{className:"rmg-card-title",children:t.title}),t.body&&(0,s.jsx)("div",{className:"rmg-card-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})}),(0,s.jsx)("div",{className:"rmg-card-media",children:t.animation?(0,s.jsx)(Ju,{block:t.animation,baseUrl:e}):p&&h?(0,s.jsx)("video",{className:"rmg-card-video",src:p,autoPlay:!0,muted:!0,loop:!0,playsInline:!0}):p?(0,s.jsx)("img",{className:"rmg-card-img",src:p,alt:null!==(c=null!==(l=null==d?void 0:d.alternativeText)&&void 0!==l?l:t.title)&&void 0!==c?c:""}):null})]})]},`${t.id}-${n}`)})})}),(0,s.jsxs)("div",{className:"rmg-controls",children:[(0,s.jsx)("div",{className:"rmg-dots",role:"tablist","aria-label":"Gallery slides",children:a.map((e,t)=>{const n=t===o;return(0,s.jsx)("button",{type:"button",className:`rmg-dot${n?" is-active":""}${n&&N?" is-counting":""}`,role:"tab","aria-selected":n,"aria-label":`Go to slide ${t+1}`,onClick:()=>y(t),children:n&&(0,s.jsx)("span",{className:"rmg-dot-fill",style:N?{animationDuration:"6000ms"}:void 0,onAnimationEnd:N?b:void 0},`fill-${t}-${p}`)},`dot-${t}`)})}),(0,s.jsx)("button",{type:"button",className:"rmg-playpause","aria-label":d?"Replay":c?"Pause":"Play",onClick:x,children:d?(0,s.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M20 11a8 8 0 10-1.6 4.8M20 5v4h-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):c?(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"
2currentColor","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"6",y:"5",width:"4",height:"14",rx:"1"}),(0,s.jsx)("rect",{x:"14",y:"5",width:"4",height:"14",rx:"1"})]}):(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M8 5l11 7-11 7V5z"})})})]})]})},Tm=(e,t)=>{if(e)return e.startsWith("http")?e:`${t}${e}`},Am=(e,t)=>t<=0?0:e<0?t-1:e>=t?0:e,Lm=({baseUrl:e="",block:t})=>{var r,a,i,o,l,c,u,d,h,p,m,f,v;const g=(0,n.useMemo)(()=>{var e;return(null!==(e=t.media)&&void 0!==e?e:[]).filter(e=>!0!==e.hide)},[t.media]),[b,y]=(0,n.useState)(0),x=(0,n.useRef)(null),w=(0,n.useRef)([]),_=(0,n.useRef)(null),k=Am(b,g.length),N=g[k];(0,n.useEffect)(()=>{w.current=w.current.slice(0,g.length)},[g.length]),(0,n.useEffect)(()=>()=>{null!==_.current&&window.cancelAnimationFrame(_.current)},[]);const E=(0,n.useCallback)(e=>{const t=x.current,n=w.current[Am(e,g.length)];t&&n&&(null!==_.current&&window.cancelAnimationFrame(_.current),_.current=window.requestAnimationFrame(()=>{_.current=null;const e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),a=t.scrollLeft+r.left-e.left-(t.clientWidth-r.width)/2,s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;t.scrollTo({left:Math.max(0,a),behavior:s?"auto":"smooth"})}))},[g.length]),j=(0,n.useCallback)(e=>{const t=Am(e,g.length);y(t),E(t)},[g.length,E]),S=(0,n.useCallback)((e,t)=>{"ArrowRight"===e.key?(e.preventDefault(),j(t+1)):"ArrowLeft"===e.key?(e.preventDefault(),j(t-1)):"Home"===e.key?(e.preventDefault(),j(0)):"End"===e.key&&(e.preventDefault(),j(g.length-1))},[j,g.length]);if(!N||0===g.length)return null;const C=null!==(r=N.data)&&void 0!==r?r:{},T=Tm(null===(a=N.background_image)||void 0===a?void 0:a.url,e),A=N.file,L=Tm(null==A?void 0:A.url,e),I=Tm(C.iPadFrameUrl,e),M=Tm(C.iPadScreenshotUrl,e),P=Tm(C.voicePromptImageUrl,e),O=C.video,R=null!==(o=null===(i=null==A?void 0:A.mime)||void 0===i?void 0:i.startsWith("video/"))&&void 0!==o&&o,D="runneth-routine-briefing"===N.class&&Boolean(I&&M),F=Object.assign(Object.assign(Object.assign({},C.panelHeight?{"--routines-panel-height":`${C.panelHeight}px`}:{}),C.slackShellHeight?{"--routines-slack-shell-height":`${C.slackShellHeight}px`}:{}),C.backgroundPosition?{"--routines-bg-position":C.backgroundPosition}:{});return(0,s.jsx)("section",{className:`rmg-routines ${null!==(l=t.class)&&void 0!==l?l:""}`.trim(),children:(0,s.jsxs)("div",{className:"routines-container",children:[(0,s.jsxs)("div",{className:"routines-header",children:[N.title&&(0,s.jsx)("h2",{className:"routines-title",children:N.title}),(0,s.jsx)("div",{ref:x,className:"routines-tabs",role:"tablist","aria-label":null!==(c=t.title)&&void 0!==c?c:"Runneth routines",children:g.map((e,n)=>{var r,a,i,o;const l=null!==(o=null!==(i=null!==(a=null===(r=e.data)||void 0===r?void 0:r.tabLabel)&&void 0!==a?a:e.caption)&&void 0!==i?i:e.title)&&void 0!==o?o:`Tab ${n+1}`,c=n===k;return(0,s.jsx)("button",{ref:e=>{w.current[n]=e},id:`routines-tab-${t.id}-${n}`,type:"button",role:"tab","aria-selected":c,"aria-controls":`routines-panel-${t.id}`,className:"routines-tab"+(c?" is-active":""),onClick:()=>j(n),onKeyDown:e=>S(e,n),children:l},`${e.id}-${n}`)})})]}),(0,s.jsxs)("div",{id:`routines-panel-${t.id}`,className:"routines-content",role:"tabpanel","aria-labelledby":`routines-tab-${t.id}-${k}`,children:[N.body&&(0,s.jsx)("div",{className:"routines-copy",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:N.body})}),(0,s.jsxs)("article",{className:`routines-panel ${null!==(u=N.class)&&void 0!==u?u:""}`.trim(),style:F,children:[T&&(0,s.jsx)("div",{className:"routines-panel-bg",style:{backgroundImage:`url(${T})`},"aria-hidden":"true"}),(0,s.jsx)("div",{className:"routines-panel-inner",children:D?(0,s.jsxs)("div",{className:"routine-briefing-device",role:"img","aria-label":null!==(d=N.title)&&void 0!==d?d:"",children:[(0,s.jsx)("img",{className:"routine-briefing-ipad",src:I,alt:"",loading:"lazy","aria-hidden":"true"}),(0,s.jsx)("img",{className:"routine-briefing-screen",src:M,alt:"",loading:"lazy","aria-hidden":"true"}),P&&(0,s.jsx)("img",{className:"routine-briefing-prompt-image",src:P,alt:"",loading:"lazy","aria-hidden":"true"})]}):(null==O?void 0:O.externalId)?(0,s.jsx)("div",{className:"routines-panel-video-embed",children:(0,s.jsx)(Zu,{baseUrl:e,block:{__component:"shared.video",id:N.id,type:null!==(h=O.type)&&void 0!==h?h:"wistia",external_video_id:O.externalId,autoplay:O.autoplay,hide_controls:"boolean"==typeof O.controls?!O.controls:void 0,muted:O.muted,padding_top:null!==(p=O.paddingTop)&&void 0!==p?p:null,title:null!==(m=N.title)&&void 0!==m?m:null,must_be_unlocked_to_render:!1}})}):N.animation&&!1!==C.slackShellChrome?(0,s.jsxs)("div",{className:"routines-slack-shell",children:[(0,s.jsxs)("div",{className:"routines-slack-bar","aria-hidden":"true",children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{}),(0,s.jsx)("span",{})]}),(0,s.jsx)(Ju,{block:N.animation,baseUrl:e})]}):N.animation?(0,s.jsx)(Ju,{block:N.animation,baseUrl:e}):L&&R?(0,s.jsx)("video",{className:"routines-panel-video",src:L,autoPlay:!0,muted:!0,loop:!0,playsInl
2ine:!0}):L?(0,s.jsx)("img",{className:"routines-panel-img",src:L,alt:null!==(v=null!==(f=null==A?void 0:A.alternativeText)&&void 0!==f?f:N.title)&&void 0!==v?v:"",loading:"lazy"}):null})]})]})]})})},Im=({baseUrl:e="",block:t})=>{var n;const r=(null!==(n=t.media)&&void 0!==n?n:[]).find(e=>!0!==(null==e?void 0:e.hide)),a=t.class&&"runneth-cli"!==t.class?t.class:"";return(0,s.jsx)("section",{className:`runneth-cli ${a}`.trim(),children:(0,s.jsxs)("div",{className:"runneth-cli-container",children:[(0,s.jsxs)("div",{className:"runneth-cli-copy",children:[t.title&&(0,s.jsx)("h2",{className:"runneth-cli-title",children:t.title}),t.body&&(0,s.jsx)("div",{className:"runneth-cli-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})})]}),(null==r?void 0:r.animation)&&(0,s.jsx)("div",{className:"runneth-cli-display",children:(0,s.jsx)(Ju,{block:r.animation,baseUrl:e})})]})})},Mm=({baseUrl:e="",block:t})=>{var r;const a=(null!==(r=t.media)&&void 0!==r?r:[]).filter(e=>!0!==(null==e?void 0:e.hide)),[i,o]=(0,n.useState)(0),l=a.length,c=(0,n.useRef)(null),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),m=!0===t.autoscroll&&!h&&l>1;(0,n.useEffect)(()=>{const e=c.current;if(!e||"undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver(e=>d(e.some(e=>e.isIntersecting)),{threshold:.4});return t.observe(e),()=>t.disconnect()},[]),(0,n.useEffect)(()=>{if(!m||!u)return;const e=t.scroll_speed&&t.scroll_speed>0?t.scroll_speed:4,n=setInterval(()=>{o(e=>(e+1)%l)},1e3*e);return()=>clearInterval(n)},[m,u,l,t.scroll_speed]);const f=()=>p(!0);return(0,s.jsxs)("div",{className:"abtc-stack-gallery",children:[(t.title||t.subtitle)&&(0,s.jsxs)("div",{className:"abtc-stack-header",children:[t.title&&(0,s.jsx)("h2",{className:"abtc-stack-title",children:t.title}),t.subtitle&&(0,s.jsx)("p",{className:"abtc-stack-subtitle",children:t.subtitle})]}),(0,s.jsx)("div",{className:"abtc-stack",ref:c,onClickCapture:f,onKeyDownCapture:f,children:a.map((t,n)=>{var r,a;const c=(n-i+l)%l,u=0===c,d=()=>o(n);return(0,s.jsx)("div",{className:`abtc-stack-item pos-${c}${u?" is-front":""} ${null!==(r=t.class)&&void 0!==r?r:""}`.trim(),onClick:u?void 0:d,role:u?void 0:"button",tabIndex:u?void 0:0,"aria-label":u?void 0:"Bring card to front",onKeyDown:u?void 0:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d())},children:t.animation&&(0,s.jsx)(Ju,{block:t.animation,baseUrl:e})},null!==(a=t.id)&&void 0!==a?a:n)})})]})},Pm=({src:e})=>{const t=(0,n.useRef)(null),r=(0,n.useRef)(null),a=(0,n.useCallback)(e=>{t.current=e,e&&(e.setAttribute("muted",""),e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.muted=!0,e.defaultMuted=!0)},[]);return(0,n.useEffect)(()=>{const e=t.current,n=r.current;if(!e||!n)return;let a=!1;const s=()=>{a||(e.setAttribute("muted",""),e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.muted=!0,e.defaultMuted=!0,e.play().catch(()=>{}))},i=()=>s();e.addEventListener("canplay",i),e.addEventListener("loadeddata",i);const o=new IntersectionObserver(t=>{const n=t[0];n&&(n.isIntersecting?s():e.pause())},{threshold:[0,.01,.25,.5,1],rootMargin:"80px 0px"});o.observe(n);const l=()=>{"visible"===document.visibilityState&&s()};return document.addEventListener("visibilitychange",l),requestAnimationFrame(()=>{requestAnimationFrame(()=>{a||s()})}),()=>{a=!0,o.disconnect(),e.removeEventListener("canplay",i),e.removeEventListener("loadeddata",i),document.removeEventListener("visibilitychange",l),e.pause()}},[e]),(0,s.jsx)("div",{ref:r,className:"shared-media-gallery-video-host",children:(0,s.jsx)("video",{ref:a,src:e,muted:!0,loop:!0,playsInline:!0,preload:"auto",autoPlay:!0})})},Om=({baseUrl:e,block:t})=>{var r,a,i,o,l;const c=Math.max(1,null!==(r=t.scroll_speed)&&void 0!==r?r:100),[u,d]=(0,n.useState)(0),[h,p]=(0,n.useState)(!1),[m,f]=(0,n.useState)(0),[v,g]=(0,n.useState)(!1),[b,y]=(0,n.useState)(0),[x,w]=(0,n.useState)(0),_=(0,n.useRef)(null),k=(0,n.useRef)(null),N=(0,n.useRef)(!1),E=(0,n.useRef)(null),j=(0,n.useRef)(0),S=(0,n.useRef)(!1),C=(0,n.useRef)(null),T=(0,n.useRef)(null),A=(0,n.useRef)(0),L=(0,n.useRef)(!1),I="slider"===t.mode,M="slider-infinite"===t.mode,P=I||M,O=t.media&&t.media.length>0,R=!0===t.autoscroll,D=(null===(a=t.media)||void 0===a?void 0:a.length)||0,F=m*D,U=null===(i=t.data)||void 0===i?void 0:i.pill,$=(0,n.useMemo)(()=>
2{if(!(M&&m&&b&&D))return 1;const e=Math.ceil(b/F)+2;return Math.max(2,e)},[M,m,b,D,F]),B=(0,n.useMemo)(()=>{const e=t.media;if(!(null==e?void 0:e.length))return[];if(!M)return e.map((e,t)=>({media:e,index:t,key:`item-${t}`}));const n=[];for(let t=0;t<$;t++)e.forEach((e,r)=>{n.push({media:e,index:r,key:`set${t}-item${r}`})});return n},[t.media,M,$]),H=(0,n.useCallback)(()=>{if(!k.current)return 0;const e=getComputedStyle(k.current),t=e.transform||e.webkitTransform;if(!t||"none"===t)return 0;const n=t.match(/matrix\(([^)]+)\)/);if(n){const e=n[1].split(",").map(e=>e.trim());return-(parseFloat(e[4])||0)}const r=t.match(/translateX\(([^)]+)\)/);return r?-(parseFloat(r[1])||0):0},[]),z=(0,n.useCallback)((e,t,n,r="ease-out")=>{if(!k.current)return;const a=k.current;a.style.transition=t?`transform ${null!=n?n:300}ms ${r}`:"none",a.style.transform=`translate3d(-${e}px, 0, 0)`,j.current=e},[]),q=(0,n.useCallback)(e=>{if(F<=0)return e;let t=e%F;return t<0&&(t+=F),t},[F]),G=(0,n.useRef)(!1),W=(0,n.useCallback)(()=>{if(!k.current||F<=0||!h)return;E.current&&(clearTimeout(E.current),E.current=null);const e=F/c*1e3,t=q(j.current);t!==j.current&&z(t,!1);const n=t+F;z(n,!0,e,"linear"),S.current=!0,E.current=setTimeout(()=>{const e=q(n);z(e,!1),S.current=!1,G.current&&!N.current&&(E.current=setTimeout(()=>{W()},20))},e)},[F,c,-1,h,z,q]),Y=(0,n.useCallback)(()=>{if(!_.current||!k.current)return;const e=_.current.clientWidth;y(e);const t=k.current.scrollWidth,n=getComputedStyle(_.current),r=parseFloat(n.paddingRight)||0;w(r);const a=k.current.querySelectorAll(".shared-media-gallery-item"),s=a[0],i=a[a.length-1],o=parseFloat(getComputedStyle(k.current).gap)||0,l=s?s.offsetWidth+o:0;if(f(l),M)l>0&&D>0&&(p(!0),d(1/0),0===j.current&&z(0,!1),!R||v||N.current||g(!0));else if(t>e){p(!0);const a=(i?i.offsetLeft+i.offsetWidth:t)-(e-((parseFloat(n.paddingLeft)||0)+r));d(Math.max(0,a));const s=Math.min(j.current,Math.max(0,a));z(s,!1),!R||v||N.current||g(!0)}else p(!1),d(0),z(0,!1),g(!1)},[M,R,v,D,z]);(0,n.useEffect)(()=>{if(!P||!O)return;const e=_.current,t=k.current;if(!e||!t)return;let n,r;const a=()=>{n=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>{Y()})})};a(),r=setTimeout(Y,100);const s=new ResizeObserver(()=>a());return s.observe(e),s.observe(t),window.addEventListener("resize",Y),()=>{cancelAnimationFrame(n),clearTimeout(r),s.disconnect(),window.removeEventListener("resize",Y)}},[P,O,Y,null===(o=t.media)||void 0===o?void 0:o.length]),(0,n.useEffect)(()=>{if(!v||!h)return G.current=!1,void(E.current&&(clearTimeout(E.current),E.current=null));if(G.current=!0,M&&F>0)W();else if(u>0){const e=()=>{if(!v||N.current)return;const t=j.current,n=u,r=Math.abs(n-t),a=r/c*1e3;r<=0?E.current=setTimeout(()=>{z(0,!1),E.current=setTimeout(()=>{v&&!N.current&&e()},500)},1e3):(z(n,!0,a,"linear"),S.current=!0,E.current=setTimeout(()=>{S.current=!1,E.current=setTimeout(()=>{z(0,!1),E.current=setTimeout(()=>{v&&!N.current&&e()},500)},1e3)},a))};e()}return()=>{E.current&&(clearTimeout(E.current),E.current=null)}},[v,h,M,F,u,c,-1,W,z]);const V=(0,n.useCallback)(()=>{if(N.current=!0,G.current=!1,g(!1),E.current&&(clearTimeout(E.current),E.current=null),k.current&&S.current){const e=H();k.current.style.transition="none",k.current.style.transform=`translate3d(-${e}px, 0, 0)`,j.current=e,S.current=!1}},[H]),K=(0,n.useCallback)((e,t={})=>{let n=e;if(t.clamp&&(n=Math.max(t.clamp.min,Math.min(t.clamp.max,n))),t.wrapAfter&&F>0){const e=j.current;n<0?(z(e+F,!1),n+=F):n>=2*F&&(z(e-F,!1),n-=F)}z(n,!0,300),S.current=!0,setTimeout(()=>{if(S.current=!1,t.wrapAfter&&F>0){const e=j.current;let t=e;e>=F?t=e-F:e<0&&(t=e+F),t<m&&t>=0&&(t+=F),t!==e&&z(t,!1)}},300)},[F,z,m]),Q=(0,n.useCallback)(()=>{if(!h||m<=0||!_.current||!k.current)return;if(v)V();else if(S.current)return;const e=j.current,t=getComputedStyle(k.current),n=parseFloat(t.paddingLeft)||0,r=Math.floor((e+n)/m),a=r*m-n,s=(Math.abs(e-a)<1?r-1:r)*m+n;K(s,M?{wrapAfter:!0}:{clamp:{min:0,max:u}})},[h,m,M,u,v,V,K]),X=(0,n.useCallback)(()=>{if(!h||m<=0||!_.current||!k.current)return;if(v)V();else if(S.current)return;const e=j.current,t=getComputedStyle(k.current),n=parseFloat(t.paddingRight)||0,r=b-x,a=e+r,s=Math.floor(a/m);K((((s+1)*m<=a+1?s+1:s)+1)*m-r+n,M?{wrapAfter:!0}:{clamp:{min:0,max:u}})},[h,m,b,x,M,u,v,V,K]),J=(0,n.useRef)(h);J.current=h;const Z=(0,n.useRef)(v);Z.current=v;const ee=(0,n.useRef)(u);ee.current=u;const te=(0,n.useRef)(b);te.current=b;const ne=(0,n.useRef)(x);ne.current=x,(0,n.useEffect)(()=>{const e=_.current;if(!e||!P)return;const t=e=>{if(!J.current)return;const t=e.touches[0];C.current=t.clientX,T.current=t.clientY,A.current=j.current,L.current=!1,k.current&&S.current&&(A.current=H())},n=e=>{if(null===C.current||null===T.current||!J.current)return;const t=e.touches[0],n=t.clientX-C.current,r=t.clientY-T.current;if(!L.current&&Math.abs(r)>Math.abs(n))C.current=null;else{if(!L.current&&Math.abs(n)>10&&(L.current=!0,Z.current&&V(),k.current&&S.current)){const e=H();k.current.style.transition="none",k.current.style.transform=`translate3d(-${e}px, 0, 0)`,j.current=e,A.current=e,S.current=!1}if(L.current){e.preventDefault();let t=A.current-n;if(!M)if(t<0)t*=.3;else if(t>ee.current){const e=t-ee.current;t=ee.current+.3*e}z(t,!1)}}},r=e=>{if(null===C.current||!L.current||!J.current)return C.current=null,T.current=null,void(L.current=!1);const t=e.changedTouches[0].clientX-C.current,n=Math.abs(t),r=A.current,a=Math.round(r/m);if(C.current=null,T.current=null,L.current=!1,n>=50){let e;if(t>0){const t=Math.floor(r/m),n=t*m;e=(Math.abs(r-n)<1?t-1:t)*m}else{const t=te.current-ne.current,n=r+t,a=Math.floor(n/m);e=(((a+1)*m<=n+1?a+1:a)+1)*m-t}K(e,M?{wrapAfter:!0}:{clamp:{min:0,max:ee.current}})}else{const e=a*m;if(M)K(e,{wrapAfter:!0});else{const t=Math.max(0,Math.min(ee.current,e));z(t,!0,300)}}};return e.addEventListener("touchstart",t,{passive:!0}),e.addEventListener("touchmove",n,{passive:!1}),e.addEventListener("touchend",r,{passive:!0}),()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchmove",n),e.removeEventListener("touchend",r)}},[P,M,m,V,K,z,H]);const re=(t,n,r="",a)=>{var i,o,l,c,u,d,h,p,m,f,v;const g=t.file,b=(null==g?void 0:g.mime)?g.mime.startsWith("video/"):/\.(mp4|webm|mov|m4v)(\?|#|$)/i.test(null!==(i=t.file_url)&&void 0!==i?i:""),y=null!==(l=null!==(o=t.t
2itle)&&void 0!==o?o:t.caption)&&void 0!==l?l:null,x=null!==(c=t.class)&&void 0!==c?c:"",w=void 0!==a?a%2==0?"shared-media-gallery-item-stagger-down":"shared-media-gallery-item-stagger-up":"",_=null===(u=t.data)||void 0===u?void 0:u.pill,k=null!==(d=null==_?void 0:_.value)&&void 0!==d?d:null==U?void 0:U.value,N=null==U?void 0:U.label,E=null!==(h=null==U?void 0:U.valuePostfix)&&void 0!==h?h:"";let j=null!==(m=null!==(p=null==g?void 0:g.url)&&void 0!==p?p:t.file_url)&&void 0!==m?m:void 0;j&&!j.includes("http")&&(j=`${e}${j}`);const S=null!==(f=t.anchor_href)&&void 0!==f?f:null,C=null!==(v=t.anchor_target)&&void 0!==v?v:"_blank",T=S?Object.assign({href:S,target:C},"_blank"===C&&{rel:"noopener noreferrer"}):null,A=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"shared-media-gallery-item-media",children:b?j&&(0,s.jsx)(Pm,{src:j}):j&&(0,s.jsx)("img",{src:j,alt:(null==g?void 0:g.alternativeText)||(null==g?void 0:g.name)||""})}),U&&(0,s.jsxs)("div",{className:"shared-media-gallery-item-pill",children:[N&&(0,s.jsx)("span",{className:"shared-media-gallery-item-pill-label",children:N}),(0,s.jsxs)("span",{className:"shared-media-gallery-item-pill-value",children:[k,E]})]})]});return(0,s.jsxs)("div",{className:`shared-media-gallery-item ${x} ${w}`.trim(),children:[y&&(0,s.jsx)("div",{className:"shared-media-gallery-item-label",children:(0,s.jsx)("span",{className:"shared-media-gallery-item-label-text",children:y})}),T?(0,s.jsx)("a",Object.assign({},T,{className:"shared-media-gallery-item-media-wrapper",children:A})):(0,s.jsx)("div",{className:"shared-media-gallery-item-media-wrapper",children:A})]},`${r}${t.id}`)};if(P){const e=h;return(0,s.jsxs)("div",{className:`shared-media-gallery shared-media-gallery-slider ${M?"shared-media-gallery-slider-infinite":""} ${t.class?t.class:""}`,children:[(0,s.jsxs)("div",{className:"shared-media-gallery-header",children:[t.title&&(0,s.jsx)("h2",{className:"shared-media-gallery-title",children:t.title}),(t.subtitle||t.body)&&(0,s.jsxs)("div",{className:"shared-media-gallery-subtitle-and-body",children:[t.subtitle&&(0,s.jsx)("div",{className:"shared-media-gallery-subtitle",children:t.subtitle}),t.body&&(0,s.jsx)("div",{className:"shared-media-gallery-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})})]}),e&&(0,s.jsxs)("div",{className:"shared-media-gallery-slider-nav-buttons-container",children:[(0,s.jsx)("button",{className:"shared-media-gallery-slider-nav shared-media-gallery-slider-nav-prev",onClick:Q,"aria-label":"Previous",children:(0,s.jsxs)("svg",{width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"0.5",y:"0.5",width:"51",height:"51",rx:"25.5",stroke:"#0A2CC2"}),(0,s.jsx)("path",{d:"M19.152 24.9066C18.5894 25.3052 18.5894 26.1401 19.152 26.5387L28.422 33.1049C29.0842 33.574 30 33.1004 30 32.2889L30 19.1564C30 18.3449 29.0842 17.8713 28.422 18.3404L19.152 24.9066Z",fill:"#0A2CC2"})]})}),(0,s.jsx)("button",{className:"shared-media-gallery-slider-nav shared-media-gallery-slider-nav-next",onClick:X,"aria-label":"Next",children:(0,s.jsxs)("svg",{width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"-0.5",y:"0.5",width:"51",height:"51",rx:"25.5",transform:"matrix(-1 0 0 1 51 0)",stroke:"#0A2CC2"}),(0,s.jsx)("path",{d:"M32.848 24.9066C33.4106 25.3052 33.4106 26.1401 32.848 26.5387L23.578 33.1049C22.9158 33.574 22 33.1004 22 32.2889L22 19.1564C22 18.3449 22.9158 17.8713 23.578 18.3404L32.848 24.9066Z",fill:"#0A2CC2"})]})})]})]}),(0,s.jsx)("div",{className:"shared-media-gallery-slider-container",ref:_,children:(0,s.jsx)("div",{ref:k,className:"shared-media-gallery-slider-track "+(h||M?"":"shared-media-gallery-slider-track-centered"),style:{position:"relative"},children:B.map(({media:e,index:t,key:n},r)=>re(e,0,n+"-",r))})})]})}return(0,s.jsxs)("div",{className:`shared-media-gallery ${t.class?t.class:""}`,children:[(t.title||t.subtitle||t.body)&&(0,s.jsxs)("div",{className:"shared-media-gallery-header",children:[t.title&&(0,s.jsx)("h2",{className:"shared-media-gallery-title",children:t.title}),(0,s.jsxs)("div",{className:"shared-media-gallery-subtitle-and-body",children:[t.subtitle&&(0,s.jsx)("div",{className:"shared-media-gallery-subtitle",children:t.subtitle}),t.body&&(0,s.jsx)("div",{className:"shared-media-gallery-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.body})})]})]}),(0,s.jsx)("div",{className:"shared-media-gallery-items",children:null===(l=t.media)||void 0===l?void 0:l.map((e,t)=>re(e,0,"",t))})]})},Rm=({baseUrl:e,block:t})=>{const n=Array.isArray(t.media)&&t.media.some(e=>!0===(null==e?void 0:e.hide))?Object.assign(Object.assign({},t),{media:t.media.filter(e=>!0!==(null==e?void 0:e.hide))}):t;return"applerip"===n.layout?(0,s.jsx)(Cm,{baseUrl:e,block:n}):"routines"===n.layout?(0,s.jsx)(Lm,{baseUrl:e,block:n}):"cli"===n.layout?(0,s.jsx)(Im,{baseUrl:e,block:n}):"stack"===n.layout?(0,s.jsx)(Mm,{baseUrl:e,block:n}):(0,s.jsx)(Om,{baseUrl:e,block:n})};
2var Dm=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};class Fm{static fetchCharts(e){return Dm(this,void 0,void 0,function*(){const{baseUrl:t,status:n,documentId:r,populateOptions:a=this.DEFAULT_POPULATE_OPTIONS}=e,s=[];r&&s.push({field:"documentId",operator:"$eq",value:r});const i=`/api/charts?${l.buildQueryString(n,void 0,s.length>0?s:void 0,a)}`,o=`${t}${i}`;g()||(console.log("fetchCharts apiUri",`${o}`),console.log("fetchCharts apiPathAndQueryString",`${i}`));try{const e=yield fetch(o);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=yield e.json();return g()||console.log("fetchCharts returned:",t.data),{response:e,data:t}}catch(e){throw console.error("Error fetching charts:",e),e instanceof Error?e:new Error("Failed to fetch charts")}})}static fetchChartByDocumentId(e){return Dm(this,void 0,void 0,function*(){var t,n;const{data:r}=yield this.fetchCharts({baseUrl:e.baseUrl,status:e.status,documentId:e.documentId,populateOptions:e.populateOptions});return null!==(n=null===(t=r.data)||void 0===t?void 0:t[0])&&void 0!==n?n:null})}}Fm.DEFAULT_POPULATE_OPTIONS=["data","gated_by","form.form.header_image","form.form.title_image","form.form.input","form.form.hubspot_form_id","form.form.analytics_form_type","form.form.latest_lead_source","form.form.submission_success_title_image","form.form.registration_unlocks","form.form.submission_unlocks","form.form.identity"];function Um(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n<a||void 0===n&&a>=a)&&(n=a)}return n}function $m(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n>a||void 0===n&&a>=a)&&(n=a)}return n}function Bm(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}function Hm(e){return e}i(9996);var zm=1e-6;function qm(e){return"translate("+e+",0)"}function Gm(e){return"translate(0,"+e+")"}function Wm(e){return t=>+e(t)}function Ym(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Vm(){return!this.__axis}function Km(e,t){var n=[],r=null,a=null,s=6,i=6,o=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",d=1===e||3===e?qm:Gm;function h(h){var p=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,m=null==a?t.tickFormat?t.tickFormat.apply(t,n):Hm:a,f=Math.max(s,0)+o,v=t.range(),g=+v[0]+l,b=+v[v.length-1]+l,y=(t.bandwidth?Ym:Wm)(t.copy(),l),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),_=x.selectAll(".tick").data(p,t).order(),k=_.exit(),N=_.enter().append("g").attr("class","tick"),E=_.select("line"),j=_.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(N),E=E.merge(N.append("line").attr("stroke","currentColor").attr(u+"2",c*s)),j=j.merge(N.append("text").attr("fill","currentColor").attr(u,c*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),_=_.transition(h),E=E.transition(h),j=j.transition(h),k=k.transition(h).attr("opacity",zm).attr("transform",function(e){return isFinite(e=y(e))?d(e+l):this.getAttribute("transform")}),N.attr("opacity",zm).attr("transform",function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+l)})),k.remove(),w.attr("d",4===e||2===e?i?"M"+c*i+","+g+"H"+l+"V"+b+"H"+c*i:"M"+l+","+g+"V"+b:i?"M"+g+","+c*i+"V"+l+"H"+b+"V"+c*i:"M"+g+","+l+"H"+b),_.attr("opacity",1).attr("transform",function(e){return d(y(e)+l)}),E.attr(u+"2",c*s),j.attr(u,c*f).text(m),x.filter(Vm).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),x.each(function(){this.__axis=y})}return h.scale=function(e){return arguments.length?(t=e,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),h):n.slice()},h.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),h):r&&r.slice()},h.tickFormat=function(e){return arguments.length?(a=e,h):a},h.tickSize=function(e){return arguments.length?(s=i=+e,h):s},h.tickSizeInner=function(e){return arguments.length?(s=+e,h):s},h.tickSizeOuter=function(e){return arguments.length?(i=+e,h):i},h.tickPadding=function(e){return arguments.length?(o=+e,h):o},h.offset=function(e){return arguments.length?(l=+e,h):l},h}function Qm(e){return Km(3,e)}function Xm(e){return Km(4,e)}function Jm(){}function Zm(e){return null==e?Jm:function(){return this.querySelector(e)}}function ef(){return[]}function tf(e){return null==e?ef:function(){return this.querySelectorAll(e)}}function nf(e){return function(){return this.matches(e)}}function rf(e){return function(t){return t.matches(e)}}var af=Array.prototype.find;function sf(){return this.firstElementChild}var of=Array.prototype.filter;function lf(){return Array.from(this.children)}function cf(e){return new Array(e.length)}function uf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function df(e,t,n,r,a,s){for(var i,o=0,l=t.length,c=s.length;o<c;++o)(i=t[o])?(i.__data__=s[o],r[o]=i):n[o]=new uf(e,s[o]);for(;o<l;
vendor: 37,077 bytes, line 2
2++o)(i=t[o])&&(a[o]=i)}function hf(e,t,n,r,a,s,i){var o,l,c,u=new Map,d=t.length,h=s.length,p=new Array(d);for(o=0;o<d;++o)(l=t[o])&&(p[o]=c=i.call(l,l.__data__,o,t)+"",u.has(c)?a[o]=l:u.set(c,l));for(o=0;o<h;++o)c=i.call(e,s[o],o,s)+"",(l=u.get(c))?(r[o]=l,l.__data__=s[o],u.delete(c)):n[o]=new uf(e,s[o]);for(o=0;o<d;++o)(l=t[o])&&u.get(p[o])===l&&(a[o]=l)}function pf(e){return e.__data__}function mf(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function ff(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}uf.prototype={constructor:uf,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var vf="http://www.w3.org/1999/xhtml";const gf={svg:"http://www.w3.org/2000/svg",xhtml:vf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function bf(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),gf.hasOwnProperty(t)?{space:gf[t],local:e}:e}function yf(e){return function(){this.removeAttribute(e)}}function xf(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wf(e,t){return function(){this.setAttribute(e,t)}}function _f(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function kf(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Nf(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Ef(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function jf(e){return function(){this.style.removeProperty(e)}}function Sf(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Cf(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Tf(e,t){return e.style.getPropertyValue(t)||Ef(e).getComputedStyle(e,null).getPropertyValue(t)}function Af(e){return function(){delete this[e]}}function Lf(e,t){return function(){this[e]=t}}function If(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Mf(e){return e.trim().split(/^|\s+/)}function Pf(e){return e.classList||new Of(e)}function Of(e){this._node=e,this._names=Mf(e.getAttribute("class")||"")}function Rf(e,t){for(var n=Pf(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function Df(e,t){for(var n=Pf(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function Ff(e){return function(){Rf(this,e)}}function Uf(e){return function(){Df(this,e)}}function $f(e,t){return function(){(t.apply(this,arguments)?Rf:Df)(this,e)}}function Bf(){this.textContent=""}function Hf(e){return function(){this.textContent=e}}function zf(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function qf(){this.innerHTML=""}function Gf(e){return function(){this.innerHTML=e}}function Wf(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Yf(){this.nextSibling&&this.parentNode.appendChild(this)}function Vf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Kf(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===vf&&t.documentElement.namespaceURI===vf?t.createElement(e):t.createElementNS(n,e)}}function Qf(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Xf(e){var t=bf(e);return(t.local?Qf:Kf)(t)}function Jf(){return null}function Zf(){var e=this.parentNode;e&&e.removeChild(this)}function ev(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tv(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nv(e){return function(){var t=this.__on;if(t){for(var n,r=0,a=-1,s=t.length;r<s;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++a]=n:this.removeEventListener(n.type,n.listener,n.options);++a?t.length=a:delete this.__on}}}function rv(e,t,n){return function(){var r,a=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(a)for(var i=0,o=a.length;i<o;++i)if((r=a[i]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=s,r.options=n),void(r.value=t);this.addEventListener(e.type,s,n),r={type:e.type,name:e.name,value:t,listener:s,options:n},a?a.push(r):this.__on=[r]}}function av(e,t,n){var r=Ef(e),a=r.CustomEvent;"function"==typeof a?a=new a(t,n):(a=r.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function sv(e,t){return function(){return av(this,e,t)}}function iv(e,t){return function(){return av(this,e,t.apply(this,arguments))}}Of.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ov=[null];function lv(e,t){this._groups=e,this._parents=t}function cv(){return new lv([[document.documentElement]],ov)}lv.prototype=cv.prototype={constructor:lv,select:function(e){"function"!=typeof e&&(e=Zm(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var s,i,o=t[a],l=o.length,c=r[a]=new Array(l),u=0;u<l;++u)(s=o[u])&&(i=e.call(s,s.__data__,u,o))&&("__data__"in s&&(i.__data__=s.__data__),c[u]=i);return new lv(r,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t);var t}}(e):tf(e);for(var t=this._groups,n=t.length,r=[],a=[],s=0;s<n;++s)for(var i,o=t[s],l=o.length,c=0;c<l;++c)(i=o[c])&&(r.push(e.call(i,i.__data__,c,o)),a.push(i));return new lv(r,a)},selectChild:function(e){return this.select(null==e?sf:function(e){return function(){return af.call(this.children,e)}}("function"==typeof e?e:rf(e)))},selectChildren:function(e){return this.selectAll(null==e?lf:function(e){return function(){return of.call(this.children,e)}}("function"==typeof e?e:rf(e)))},filter:function(e){"function"!=typeof e&&(e=nf(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var s,i=t[a],o=i.length,l=r[a]=[],c=0;c<o;++c)(s=i[c])&&e.call(s,s.__data__,c,i)&&l.push(s);return new lv(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,pf);var n,r=t?hf:df,a=this._parents,s=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var i=s.length,o=new Array(i),l=new Array(i),c=new Array(i),u=0;u<i;++u){var d=a[u],h=s[u],p=h.length,m=mf(e.call(d,d&&d.__data__,u,a)),f=m.length,v=l[u]=new Array(f),g=o[u]=new Array(f);r(d,h,v,g,c[u]=new Array(p),m,t);for(var b,y,x=0,w=0;x<f;++x)if(b=v[x]){for(x>=w&&(w=x+1);!(y=g[w])&&++w<f;);b._next=y||null}}return(o=new lv(o,a))._enter=l,o._exit=c,o},enter:function(){return new lv(this._enter||this._groups.map(cf),this._parents)},exit:function(){return new lv(this._exit||this._groups.map(cf),this._parents)},join:function(e,t,n){var r=this.enter(),a=this,s=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(a=t(a))&&(a=a.selection()),null==n?s.remove():n(s),r&&a?r.merge(a).order():a},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,a=n.length,s=r.length,i=Math.min(a,s),o=new Array(a),l=0;l<i;++l)for(var c,u=n[l],d=r[l],h=u.length,p=o[l]=new Array(h),m=0;m<h;++m)(c=u[m]||d[m])&&(p[m]=c);for(;l<a;++l)o[l]=n[l];return new lv(o,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,a=e[t],s=a.length-1,i=a[s];--s>=0;)(r=a[s])&&(i&&4^r.compareDocumentPosition(i)&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ff);for(var n=this._groups,r=n.length,a=new Array(r),s=0;s<r;++s){for(var i,o=n[s],l=o.length,c=a[s]=new Array(l),u=0;u<l;++u)(i=o[u])&&(c[u]=i);c.sort(t)}return new lv(a,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,s=r.length;a<s;++a){var i=r[a];if(i)return i}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var a,s=t[n],i=0,o=s.length;i<o;++i)(a=s[i])&&e.call(a,a.__data__,i,s);return this},attr:function(e,t){var n=bf(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?xf:yf:"function"==typeof t?n.local?Nf:kf:n.local?_f:wf)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?jf:"function"==typeof t?Cf:Sf)(e,t,null==n?"":n)):Tf(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Af:"function"==typeof t?If:Lf)(e,t)):this.node()[e]},classed:function(e,t){var n=Mf(e+"");if(arguments.length<2){for(var r=Pf(this.node()),a=-1,s=n.length;++a<s;)if(!r.contains(n[a]))return!1;return!0}return this.each(("function"==typeof t?$f:t?Ff:Uf)(n,t))},text:function(e){return arguments.length?this.each(null==e?Bf:("function"==typeof e?zf:Hf)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?qf:("function"==typeof e?Wf:Gf)(e)):this.node().innerHTML},raise:function(){return this.each(Yf)},lower:function(){return this.each(Vf)},append:function(e){var t="function"==typeof e?e:Xf(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:Xf(e),r=null==t?Jf:"function"==typeof t?t:Zm(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Zf)},clone:function(e){return this.select(e?tv:ev)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,a,s=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),i=s.length;if(!(arguments.length<2)){for(o=t?rv:nv,r=0;r<i;++r)this.each(o(s[r],t,n));return this}var o=this.node().__on;if(o)for(var l,c=0,u=o.length;c<u;++c)for(r=0,l=o[c];r<i;++r)if((a=s[r]).type===l.type&&a.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?iv:sv)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,a=e[t],s=0,i=a.length;s<i;++s)(r=a[s])&&(yield r)}};const uv=cv;var dv={value:()=>{}};function hv(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new pv(r)}function pv(e){this._=e}function mv(e,t){for(var n,r=0,a=e.length;r<a;++r)if((n=e[r]).name===t)return n.value}function fv(e,t,n){for(var r=0,a=e.length;r<a;++r)if(e[r].name===t){e[r]=dv,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}pv.prototype=hv.prototype={constructor:pv,on:function(e,t){var n,r,a=this._,s=(r=a,(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),i=-1,o=s.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i<o;)if(n=(e=s[i]).type)a[n]=fv(a[n],e.name,t);else if(null==t)for(n in a)a[n]=fv(a[n],e.name,null);return this}for(;++i<o;)if((n=(e=s[i]).type)&&(n=mv(a[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new pv(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,a=new Array(n),s=0;s<n;++s)a[s]=arguments[s+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=0,n=(r=this._[e]).length;s<n;++s)r[s].value.apply(t,a)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,s=r.length;a<s;++a)r[a].value.apply(t,n)}};const vv=hv;var gv,bv,yv=0,xv=0,wv=0,_v=0,kv=0,Nv=0,Ev="object"==typeof performance&&performance.now?performance:Date,jv="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Sv(){return kv||(jv(Cv),kv=Ev.now()+Nv)}function Cv(){kv=0}function Tv(){this._call=this._time=this._next=null}function Av(e,t,n){var r=new Tv;return r.restart(e,t,n),r}function Lv(){kv=(_v=Ev.now())+Nv,yv=xv=0;try{!function(){Sv(),++yv;for(var e,t=gv;t;)(e=kv-t._time)>=0&&t._call.call(void 0,e),t=t._next;--yv}()}finally{yv=0,function(){for(var e,t,n=gv,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:gv=t);bv=e,Mv(r)}(),kv=0}}function Iv(){var e=Ev.now(),t=e-_v;t>1e3&&(Nv-=t,_v=e)}function Mv(e){yv||(xv&&(xv=clearTimeout(xv)),e-kv>24?(e<1/0&&(xv=setTimeout(Lv,e-Ev.now()-Nv)),wv&&(wv=clearInterval(wv))):(wv||(_v=Ev.now(),wv=setInterval(Iv,1e3)),yv=1,jv(Lv)))}function Pv(e,t,n){var r=new Tv;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}Tv.prototype=Av.prototype={constructor:Tv,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Sv():+n)+(null==t?0:+t),this._next||bv===this||(bv?bv._next=this:gv=this,bv=this),this._call=e,this._time=n,Mv()},stop:function(){this._call&&(this._call=null,this._time=1/0,Mv())}};var Ov=vv("start","end","cancel","interrupt"),Rv=[];function Dv(e,t,n,r,a,s){var i=e.__transition;if(i){if(n in i)return}else e.__transition={};!function(e,t,n){var r,a=e.__transition;function s(l){var c,u,d,h;if(1!==n.state)return o();for(c in a)if((h=a[c]).name===n.name){if(3===h.state)return Pv(s);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete a[c]):+c<t&&(h.state=6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete a[c])}if(Pv(function(){3===n.state&&(n.state=4,n.timer.restart(i,n.delay,n.time),i(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function i(t){for(var a=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(o),n.state=5,1),s=-1,i=r.length;++s<i;)r[s].call(e,a);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),o())}function o(){for(var r in n.state=6,n.timer.stop(),delete a[t],a)return;delete e.__transition}a[t]=n,n.timer=Av(function(e){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:a,on:Ov,tween:Rv,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function Fv(e,t){var n=$v(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Uv(e,t){var n=$v(e,t);if(n.state>3)throw new Error("too late; already running");return n}function $v(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Bv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Hv,zv=180/Math.PI,qv={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Gv(e,t,n,r,a,s){var i,o,l;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,i=-i),{translateX:a,translateY:s,rotate:Math.atan2(t,e)*zv,skewX:Math.atan(l)*zv,scaleX:i,scaleY:o}}function Wv(e,t,n,r){function a(e){return e.length?e.pop()+" ":""}return function(s,i){var o=[],l=[];return s=e(s),i=e(i),function(e,r,a,s,i,o){if(e!==a||r!==s){var l=i.push("translate(",null,t,null,n);o.push({i:l-4,x:Bv(e,a)},{i:l-2,x:Bv(r,s)})}else(a||s)&&i.push("translate("+a+t+s+n)}(s.translateX,s.translateY,i.translateX,i.translateY,o,l),function(e,t,n,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:n.push(a(n)+"rotate(",null,r)-2,x:Bv(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}(s.rotate,i.rotate,o,l),function(e,t,n,s){e!==t?s.push({i:n.push(a(n)+"skewX(",null,r)-2,x:Bv(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}(s.skewX,i.skewX,o,l),function(e,t,n,r,s,i){if(e!==n||t!==r){var o=s.push(a(s)+"scale(",null,",",null,")");i.push({i:o-4,x:Bv(e,n)},{i:o-2,x:Bv(t,r)})}else 1===n&&1===r||s.push(a(s)+"scale("+n+","+r+")")}(s.scaleX,s.scaleY,i.scaleX,i.scaleY,o,l),s=i=null,function(e){for(var t,n=-1,r=l.length;++n<r;)o[(t=l[n]).i]=t.x(e);return o.join("")}}}var Yv=Wv(function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?qv:Gv(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),Vv=Wv(function(e){return null==e?qv:(Hv||(Hv=document.createElementNS("http://www.w3.org/2000/svg","g")),Hv.setAttribute("transform",e),(e=Hv.transform.baseVal.consolidate())?Gv((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):qv)},", ",")",")");function Kv(e,t){var n,r;return function(){var a=Uv(this,e),s=a.tween;if(s!==n)for(var i=0,o=(r=n=s).length;i<o;++i)if(r[i].name===t){(r=r.slice()).splice(i,1);break}a.tween=r}}function Qv(e,t,n){var r,a;if("function"!=typeof n)throw new Error;return function(){var s=Uv(this,e),i=s.tween;if(i!==r){a=(r=i).slice();for(var o={name:t,value:n},l=0,c=a.length;l<c;++l)if(a[l].name===t){a[l]=o;break}l===c&&a.push(o)}s.tween=a}}function Xv(e,t,n){var r=e._id;return e.each(function(){var e=Uv(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return $v(e,r).value[t]}}function Jv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Zv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function eg(){}var tg=.7,ng=1/tg,rg="\\s*([+-]?\\d+)\\s*",ag="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ig=/^#([0-9a-f]{3,8})$/,og=new RegExp(`^rgb\\(${rg},${rg},${rg}\\)$`),lg=new RegExp(`^rgb\\(${sg},${sg},${sg}\\)$`),cg=new RegExp(`^rgba\\(${rg},${rg},${rg},${ag}\\)$`),ug=new RegExp(`^rgba\\(${sg},${sg},${sg},${ag}\\)$`),dg=new RegExp(`^hsl\\(${ag},${sg},${sg}\\)$`),hg=new RegExp(`^hsla\\(${ag},${sg},${sg},${ag}\\)$`),pg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function mg(){return this.rgb().formatHex()}function fg(){return this.rgb().formatRgb()}function vg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ig.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?gg(t):3===n?new xg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?bg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?bg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=og.exec(e))?new xg(t[1],t[2],t[3],1):(t=lg.exec(e))?new xg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=cg.exec(e))?bg(t[1],t[2],t[3],t[4]):(t=ug.exec(e))?bg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dg.exec(e))?jg(t[1],t[2]/100,t[3]/100,1):(t=hg.exec(e))?jg(t[1],t[2]/100,t[3]/100,t[4]):pg.hasOwnProperty(e)?gg(pg[e]):"transparent"===e?new xg(NaN,NaN,NaN,0):null}function gg(e){return new xg(e>>16&255,e>>8&255,255&e,1)}function bg(e,t,n,r){return r<=0&&(e=t=n=NaN),new xg(e,t,n,r)}function yg(e,t,n,r){return 1===arguments.length?((a=e)instanceof eg||(a=vg(a)),a?new xg((a=a.rgb()).r,a.g,a.b,a.opacity):new xg):new xg(e,t,n,null==r?1:r);var a}function xg(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function wg(){return`#${Eg(this.r)}${Eg(this.g)}${Eg(this.b)}`}function _g(){const e=kg(this.opacity);return`${1===e?"rgb(":"rgba("}${Ng(this.r)}, ${Ng(this.g)}, ${Ng(this.b)}${1===e?")":`, ${e})`}`}function kg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ng(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eg(e){return((e=Ng(e))<16?"0":"")+e.toString(16)}function jg(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cg(e,t,n,r)}function Sg(e){if(e instanceof Cg)return new Cg(e.h,e.s,e.l,e.opacity);if(e instanceof eg||(e=vg(e)),!e)return new Cg;if(e instanceof Cg)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),s=Math.max(t,n,r),i=NaN,o=s-a,l=(s+a)/2;return o?(i=t===s?(n-r)/o+6*(n<r):n===s?(r-t)/o+2:(t-n)/o+4,o/=l<.5?s+a:2-s-a,i*=60):o=l>0&&l<1?0:i,new Cg(i,o,l,e.opacity)}function Cg(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Tg(e){return(e=(e||0)%360)<0?e+360:e}function Ag(e){return Math.max(0,Math.min(1,e||0))}function Lg(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ig(e,t,n,r,a){var s=e*e,i=s*e;return((1-3*e+3*s-i)*t+(4-6*s+3*i)*n+(1+3*e+3*s-3*i)*r+i*a)/6}Jv(eg,vg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:mg,formatHex:mg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Sg(this).formatHsl()},formatRgb:fg,toString:fg}),Jv(xg,yg,Zv(eg,{brighter(e){return e=null==e?ng:Math.pow(ng,e),new xg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?tg:Math.pow(tg,e),new xg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xg(Ng(this.r),Ng(this.g),Ng(this.b),kg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wg,formatHex:wg,formatHex8:function(){return`#${Eg(this.r)}${Eg(this.g)}${Eg(this.b)}${Eg(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_g,toString:_g})),Jv(Cg,function(e,t,n,r){return 1===arguments.length?Sg(e):new Cg(e,t,n,null==r?1:r)},Zv(eg,{brighter(e){return e=null==e?ng:Math.pow(ng,e),new Cg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?tg:Math.pow(tg,e),new Cg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new xg(Lg(e>=240?e-240:e+120,a,r),Lg(e,a,r),Lg(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Cg(Tg(this.h),Ag(this.s),Ag(this.l),kg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=kg(this.opacity);return`${1===e?"hsl(":"hsla("}${Tg(this.h)}, ${100*Ag(this.s)}%, ${100*Ag(this.l)}%${1===e?")":`, ${e})`}`}}));const Mg=e=>()=>e;function Pg(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Mg(isNaN(e)?t:e)}const Og=function e(t){var n=function(e){return 1===(e=+e)?Pg:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Mg(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=yg(e)).r,(t=yg(t)).r),a=n(e.g,t.g),s=n(e.b,t.b),i=Pg(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=s(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function Rg(e){return function(t){var n,r,a=t.length,s=new Array(a),i=new Array(a),o=new Array(a);for(n=0;n<a;++n)r=yg(t[n]),s[n]=r.r||0,i[n]=r.g||0,o[n]=r.b||0;return s=e(s),i=e(i),o=e(o),r.opacity=1,function(e){return r.r=s(e),r.g=i(e),r.b=o(e),r+""}}}Rg(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],s=e[r+1],i=r>0?e[r-1]:2*a-s,o=r<t-1?e[r+2]:2*s-a;return Ig((n-r/t)*t,i,a,s,o)}}),Rg(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),a=e[(r+t-1)%t],s=e[r%t],i=e[(r+1)%t],o=e[(r+2)%t];return Ig((n-r/t)*t,a,s,i,o)}});var Dg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fg=new RegExp(Dg.source,"g");function Ug(e,t){var n,r,a,s=Dg.lastIndex=Fg.lastIndex=0,i=-1,o=[],l=[];for(e+="",t+="";(n=Dg.exec(e))&&(r=Fg.exec(t));)(a=r.index)>s&&(a=t.slice(s,a),o[i]?o[i]+=a:o[++i]=a),(n=n[0])===(r=r[0])?o[i]?o[i]+=r:o[++i]=r:(o[++i]=null,l.push({i,x:Bv(n,r)})),s=Fg.lastIndex;return s<t.length&&(a=t.slice(s),o[i]?o[i]+=a:o[++i]=a),o.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)o[(n=l[r]).i]=n.x(e);return o.join("")})}function $g(e,t){var n;return("number"==typeof t?Bv:t instanceof vg?Og:(n=vg(t))?(t=n,Og):Ug)(e,t)}function Bg(e){return function(){this.removeAttribute(e)}}function Hg(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zg(e,t,n){var r,a,s=n+"";return function(){var i=this.getAttribute(e);return i===s?null:i===r?a:a=t(r=i,n)}}function qg(e,t,n){var r,a,s=n+"";return function(){var i=this.getAttributeNS(e.space,e.local);return i===s?null:i===r?a:a=t(r=i,n)}}function Gg(e,t,n){var r,a,s;return function(){var i,o,l=n(this);if(null!=l)return(i=this.getAttribute(e))===(o=l+"")?null:i===r&&o===a?s:(a=o,s=t(r=i,l));this.removeAttribute(e)}}function Wg(e,t,n){var r,a,s;return function(){var i,o,l=n(this);if(null!=l)return(i=this.getAttributeNS(e.space,e.local))===(o=l+"")?null:i===r&&o===a?s:(a=o,s=t(r=i,l));this.removeAttributeNS(e.space,e.local)}}function Yg(e,t){var n,r;function a(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,a)),n}return a._value=t,a}function Vg(e,t){var n,r;function a(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,a)),n}return a._value=t,a}function Kg(e,t){return function(){Fv(this,e).delay=+t.apply(this,arguments)}}function Qg(e,t){return t=+t,function(){Fv(this,e).delay=t}}function Xg(e,t){return function(){Uv(this,e).duration=+t.apply(this,arguments)}}function Jg(e,t){return t=+t,function(){Uv(this,e).duration=t}}var Zg=uv.prototype.constructor;function eb(e){return function(){this.style.removeProperty(e)}}var tb=0;function nb(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function rb(){return++tb}var ab=uv.prototype;function sb(e){return--e*e*e+1}nb.prototype=function(e){return uv().transition(e)}.prototype={constructor:nb,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Zm(e));for(var r=this._groups,a=r.length,s=new Array(a),i=0;i<a;++i)for(var o,l,c=r[i],u=c.length,d=s[i]=new Array(u),h=0;h<u;++h)(o=c[h])&&(l=e.call(o,o.__data__,h,c))&&("__data__"in o&&(l.__data__=o.__data__),d[h]=l,Dv(d[h],t,n,h,d,$v(o,n)));return new nb(s,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=tf(e));for(var r=this._groups,a=r.length,s=[],i=[],o=0;o<a;++o)for(var l,c=r[o],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,p=e.call(l,l.__data__,d,c),m=$v(l,n),f=0,v=p.length;f<v;++f)(h=p[f])&&Dv(h,t,n,f,p,m);s.push(p),i.push(l)}return new nb(s,i,t,n)},selectChild:ab.selectChild,selectChildren:ab.selectChildren,filter:function(e){"function"!=typeof e&&(e=nf(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var s,i=t[a],o=i.length,l=r[a]=[],c=0;c<o;++c)(s=i[c])&&e.call(s,s.__data__,c,i)&&l.push(s);return new nb(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,a=n.length,s=Math.min(r,a),i=new Array(r),o=0;o<s;++o)for(var l,c=t[o],u=n[o],d=c.length,h=i[o]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;o<r;++o)i[o]=t[o];return new nb(i,this._parents,this._name,this._id)},selection:function(){return new Zg(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=rb(),r=this._groups,a=r.length,s=0;s<a;++s)for(var i,o=r[s],l=o.length,c=0;c<l;++c)if(i=o[c]){var u=$v(i,t);Dv(i,e,n,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new nb(r,this._parents,e,n)},call:ab.call,nodes:ab.nodes,node:ab.node,size:ab.size,empty:ab.empty,each:ab.each,on:function(e,t){var n=this._id;return arguments.length<2?$v(this.node(),n).on.on(e):this.each(function(e,t,n){var r,a,s=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?Fv:Uv;return function(){var i=s(this,e),o=i.on;o!==r&&(a=(r=o).copy()).on(t,n),i.on=a}}(n,e,t))},attr:function(e,t){var n=bf(e),r="transform"===n?Vv:$g;return this.attrTween(e,"function"==typeof t?(n.local?Wg:Gg)(n,r,Xv(this,"attr."+e,t)):null==t?(n.local?Hg:Bg)(n):(n.local?qg:zg)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=bf(e);return this.tween(n,(r.local?Yg:Vg)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Yv:$g;return null==t?this.styleTween(e,function(e,t){var n,r,a;return function(){var s=Tf(this,e),i=(this.style.removeProperty(e),Tf(this,e));return s===i?null:s===n&&i===r?a:a=t(n=s,r=i)}}(e,r)).on("end.style."+e,eb(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,a,s;return function(){var i=Tf(this,e),o=n(this),l=o+"";return null==o&&(this.style.removeProperty(e),l=o=Tf(this,e)),i===l?null:i===r&&l===a?s:(a=l,s=t(r=i,o))}}(e,r,Xv(this,"style."+e,t))).each(function(e,t){var n,r,a,s,i="style."+t,o="end."+i;return function(){var l=Uv(this,e),c=l.on,u=null==l.value[i]?s||(s=eb(t)):void 0;c===n&&a===u||(r=(n=c).copy()).on(o,a=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,a,s=n+"";return function(){var i=Tf(this,e);return i===s?null:i===r?a:a=t(r=i,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,a;function s(){var s=t.apply(this,arguments);return s!==a&&(r=(a=s)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,s,n)),r}return s._value=t,s}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Xv(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,a=$v(this.node(),n).tween,s=0,i=a.length;s<i;++s)if((r=a[s]).name===e)return r.value;return null}return this.each((null==t?Kv:Qv)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Kg:Qg)(t,e)):$v(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Xg:Jg)(t,e)):$v(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){Uv(this,e).ease=t}}(t,e)):$v(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;Uv(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,a=n.size();return new Promise(function(s,i){var o={value:i},l={value:function(){0===--a&&s()}};n.each(function(){var n=Uv(this,r),a=n.on;a!==e&&((t=(e=a).copy())._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),n.on=t}),0===a&&s()})},[Symbol.iterator]:ab[Symbol.iterator]};var ib={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function ob(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}uv.prototype.interrupt=function(e){return this.each(function(){!function(e,t){var n,r,a,s=e.__transition,i=!0;if(s){for(a in t=null==t?null:t+"",s)(n=s[a]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete s[a]):i=!1;i&&delete e.__transition}}(this,e)})},uv.prototype.transition=function(e){var t,n;e instanceof nb?(t=e._id,e=e._name):(t=rb(),(n=ib).time=Sv(),e=null==e?null:e+"");for(var r=this._groups,a=r.length,s=0;s<a;++s)for(var i,o=r[s],l=o.length,c=0;c<l;++c)(i=o[c])&&Dv(i,e,t,c,o,n||ob(i,t));return new nb(r,this._parents,e,t)};const{abs:lb,max:cb,min:ub}=Math;function db(e){return{type:e}}["w","e"].map(db),["n","s"].map(db),["n","w","e","s","nw","ne","sw","se"].map(db);const hb=e=>+e;function pb(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function mb(e){return(e=pb(Math.abs(e)))?e[1]:NaN}var fb,vb=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gb(e){if(!(t=vb.exec(e)))throw new Error("invalid format: "+e);var t;return new bb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function bb(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function yb(e,t){var n=pb(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}gb.prototype=bb.prototype,bb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?""
vendor: 2,281 bytes, line 2
2:Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const xb={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>yb(100*e,t),r:yb,s:function(e,t){var n=pb(e,t);if(!n)return fb=void 0,e.toPrecision(t);var r=n[0],a=n[1],s=a-(fb=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,i=r.length;return s===i?r:s>i?r+new Array(s-i+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+pb(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wb(e){return e}var _b,kb,Nb,Eb=Array.prototype.map,jb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Sb(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}_b=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?wb:(t=Eb.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var a=e.length,s=[],i=0,o=t[0],l=0;a>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),s.push(e.substring(a-=o,a+o)),!((l+=o+1)>r));)o=t[i=(i+1)%t.length];return s.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",o=void 0===e.numerals?wb:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Eb.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e,t){var n=(e=gb(e)).fill,d=e.align,h=e.sign,p=e.symbol,m=e.zero,f=e.width,v=e.comma,g=e.precision,b=e.trim,y=e.type;"n"===y?(v=!0,y="g"):xb[y]||(void 0===g&&(g=12),b=!0,y="g"),(m||"0"===n&&"="===d)&&(m=!0,n="0",d="=");var x=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?a:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():""),w=("$"===p?s:/[%p]/.test(y)?l:"")+(t&&void 0!==t.suffix?t.suffix:""),_=xb[y],k=/[defgprs%]/.test(y);function N(e){var t,a,s,l=x,p=w;if("c"===y)p=_(e)+p,e="";else{var N=(e=+e)<0||1/e<0;
vendor: 5,196 bytes, line 2
2if(e=isNaN(e)?u:_(Math.abs(e),g),b&&(e=function(e){e:for(var t,n=e.length,r=1,a=-1;r<n;++r)switch(e[r]){case".":a=t=r;break;case"0":0===a&&(a=r),t=r;break;default:if(!+e[r])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),N&&0===+e&&"+"!==h&&(N=!1),l=(N?"("===h?h:c:"-"===h||"("===h?"":h)+l,p=("s"!==y||isNaN(e)||void 0===fb?"":jb[8+fb/3])+p+(N&&"("===h?")":""),k)for(t=-1,a=e.length;++t<a;)if(48>(s=e.charCodeAt(t))||s>57){p=(46===s?i+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}v&&!m&&(e=r(e,1/0));var E=l.length+e.length+p.length,j=E<f?new Array(f-E+1).join(n):"";switch(v&&m&&(e=r(j+e,j.length?f-p.length:1/0),j=""),d){case"<":e=l+e+p+j;break;case"=":e=l+j+e+p;break;case"^":e=j.slice(0,E=j.length>>1)+l+e+p+j.slice(E);break;default:e=j+l+e+p}return o(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),N.toString=function(){return e+""},N}return{format:d,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(mb(t)/3))),r=Math.pow(10,-n),a=d(((e=gb(e)).type="f",e),{suffix:jb[8+n/3]});return function(e){return a(r*e)}}}}({thousands:",",grouping:[3],currency:["$",""]}),kb=_b.format,Nb=_b.formatPrefix;class Cb extends Map{constructor(e,t=Ab){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(Tb(this,e))}has(e){return super.has(Tb(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function Tb({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Ab(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const Lb=Symbol("implicit");function Ib(){var e=new Cb,t=[],n=[],r=Lb;function a(a){let s=e.get(a);if(void 0===s){if(r!==Lb)return r;e.set(a,s=t.push(a)-1)}return n[s%n.length]}return a.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Cb;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return a},a.range=function(e){return arguments.length?(n=Array.from(e),a):n.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.copy=function(){return Ib(t,n).unknown(r)},Sb.apply(a,arguments),a}function Mb(){var e,t,n=Ib().unknown(void 0),r=n.domain,a=n.range,s=0,i=1,o=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=i<s,h=d?i:s,p=d?s:i;e=(p-h)/Math.max(1,n-l+2*c),o&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*u,t=e*(1-l),o&&(h=Math.round(h),t=Math.round(t));var m=function(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),s=new Array(a);++r<a;)s[r]=e+r*n;return s}(n).map(function(t){return h+e*t});return a(d?m.reverse():m)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([s,i]=e,s=+s,i=+i,d()):[s,i]},n.rangeRound=function(e){return[s,i]=e,s=+s,i=+i,o=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(o=!!e,d()):o},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return Mb(r(),[s,i]).round(o).paddingInner(l).paddingOuter(c).align(u)},Sb.apply(d(),arguments)}const Pb=Math.sqrt(50),Ob=Math.sqrt(10),Rb=Math.sqrt(2);function Db(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),s=r/Math.pow(10,a),i=s>=Pb?10:s>=Ob?5:s>=Rb?2:1;let o,l,c;return a<0?(c=Math.pow(10,-a)/i,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,a)*i,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?Db(e,t,2*n):[o,l,c]}function Fb(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[a,s,i]=r?Db(t,e,n):Db(e,t,n);if(!(s>=a))return[];const o=s-a+1,l=new Array(o);if(r)if(i<0)for(let e=0;e<o;++e)l[e]=(s-e)/-i;else for(let e=0;e<o;++e)l[e]=(s-e)*i;else if(i<0)for(let e=0;e<o;++e)l[e]=(a+e)/-i;else for(let e=0;e<o;++e)l[e]=(a+e)*i;return l}function Ub(e,t,n){return Db(e=+e,t=+t,n=+n)[2]}function $b(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Bb(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Hb(e){let t,n,r;function a(e,r,a=0,s=e.length){if(a<s){if(0!==t(r,r))return s;do{const t=a+s>>>1;n(e[t],r)<0?a=t+1:s=t}while(a<s)}return a}return 2!==e.length?(t=$b,n=(t,n)=>$b(e(t),n),r=(t,n)=>e(t)-n):(t=e===$b||e===Bb?e:zb,n=e,r=e),{left:a,center:function(e,t,n=0,s=e.length){const i=a(e,t,n,s-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r,a=0,s=e.length){if(a<s){if(0!==t(r,r))return s;do{const t=a+s>>>1;n(e[t],r)<=0?a=t+1:s=t}while(a<s)}return a}}}function zb(){return 0}const qb=Hb($b),Gb=qb.right,Wb=(qb.left,Hb(function(e){return null===e?NaN:+e}).center,Gb);function Yb(e,t){var n,r=t?t.length:0,a=e?Math.min(r,e.length):0,s=new Array(a),i=new Array(r);for(n=0;n<a;
2++n)s[n]=Xb(e[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(e){for(n=0;n<a;++n)i[n]=s[n](e);return i}}function Vb(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Kb(e,t){var n,r={},a={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Xb(e[n],t[n]):a[n]=t[n];return function(e){for(n in r)a[n]=r[n](e);return a}}function Qb(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,a=t.slice();return function(s){for(n=0;n<r;++n)a[n]=e[n]*(1-s)+t[n]*s;return a}}function Xb(e,t){var n,r,a=typeof t;return null==t||"boolean"===a?Mg(t):("number"===a?Bv:"string"===a?(n=vg(t))?(t=n,Og):Ug:t instanceof vg?Og:t instanceof Date?Vb:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Yb:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Kb:Bv:Qb))(e,t)}function Jb(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Zb(e){return+e}var ey=[0,1];function ty(e){return e}function ny(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function ry(e,t,n){var r=e[0],a=e[1],s=t[0],i=t[1];return a<r?(r=ny(a,r),s=n(i,s)):(r=ny(r,a),s=n(s,i)),function(e){return s(r(e))}}function ay(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),s=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)a[i]=ny(e[i],e[i+1]),s[i]=n(t[i],t[i+1]);return function(t){var n=Wb(e,t,1,r)-1;return s[n](a[n](t))}}function sy(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function iy(){var e,t,n,r,a,s,i=ey,o=ey,l=Xb,c=ty;function u(){var e,t,n,l=Math.min(i.length,o.length);return c!==ty&&(e=i[0],t=i[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?ay:ry,a=s=null,d}function d(t){return null==t||isNaN(t=+t)?n:(a||(a=r(i.map(e),o,l)))(e(c(t)))}return d.invert=function(n){return c(t((s||(s=r(o,i.map(e),Bv)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,Zb),u()):i.slice()},d.range=function(e){return arguments.length?(o=Array.from(e),u()):o.slice()},d.rangeRound=function(e){return o=Array.from(e),l=Jb,u()},d.clamp=function(e){return arguments.length?(c=!!e||ty,u()):c!==ty},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function oy(){var e=iy()(ty,ty);return e.copy=function(){return sy(e,oy())},Sb.apply(e,arguments),function(e){var t=e.domain;return e.ticks=function(e){var n=t();return Fb(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var a,s=function(e,t,n){n=+n;const r=(t=+t)<(e=+e),a=r?Ub(t,e,n):Ub(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}(e,t,n);switch((r=gb(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mb(t)/3)))-mb(Math.abs(e)))}(s,i))||(r.precision=a),Nb(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,mb(t)-mb(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=function(e){return Math.max(0,-mb(Math.abs(e)))}(s))||(r.precision=a-2*("%"===r.type))}return kb(r)}(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,a,s=t(),i=0,o=s.length-1,l=s[i],c=s[o],u=10;for(c<l&&(a=l,l=c,c=a,a=i,i=o,o=a);u-- >0;){if((a=Ub(l,c,n))===r)return s[i]=l,s[o]=c,t(s);if(a>0)l=Math.floor(l/a)*a,c=Math.ceil(c/a)*a;else{if(!(a<0))break;l=Math.ceil(l*a)/a,c=Math.floor(c*a)/a}r=a}return e},e}(e)}function ly(e){return Math.log(e)}function cy(e){return Math.exp(e)}function uy(e){return-Math.log(-e)}function dy(e){return-Math.exp(-e)}function hy(e){return isFinite(e)?+("1e"+e):e<0?0:e}function py(e){return(t,n)=>-e(-t,n)}function my(){const e=function(e){const t=e(ly,cy),n=t.domain;let r,a,s=10;function i(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(s),a=function(e){return 10===e?hy:e===Math.E?Math.exp:t=>Math.pow(e,t)}(s),n()[0]<0?(r=py(r),a=py(a),e(uy,dy)):e(ly,cy),t}return t.base=function(e){return arguments.length?(s=+e,i()):s},t.domain=function(e){return arguments.length?(n(e),i()):n()},t.ticks=e=>{const t=n();let i=t[0],o=t[t.length-1];const l=o<i;l&&([i,o]=[o,i]);let c,u,d=r(i),h=r(o);const p=null==e?10:+e;let m=[];
2if(!(s%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),i>0){for(;d<=h;++d)for(c=1;c<s;++c)if(u=d<0?c/a(-d):c*a(d),!(u<i)){if(u>o)break;m.push(u)}}else for(;d<=h;++d)for(c=s-1;c>=1;--c)if(u=d>0?c/a(-d):c*a(d),!(u<i)){if(u>o)break;m.push(u)}2*m.length<p&&(m=Fb(i,o,p))}else m=Fb(d,h,Math.min(h-d,p)).map(a);return l?m.reverse():m},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===s?"s":","),"function"!=typeof n&&(s%1||null!=(n=gb(n)).precision||(n.trim=!0),n=kb(n)),e===1/0)return n;const i=Math.max(1,s*e/t.ticks().length);return e=>{let t=e/a(Math.round(r(e)));return t*s<s-.5&&(t*=s),t<=i?n(e):""}},t.nice=()=>n(function(e,t){var n,r=0,a=(e=e.slice()).length-1,s=e[r],i=e[a];return i<s&&(n=r,r=a,a=n,n=s,s=i,i=n),e[r]=t.floor(s),e[a]=t.ceil(i),e}(n(),{floor:e=>a(Math.floor(r(e))),ceil:e=>a(Math.ceil(r(e)))})),t}(iy()).domain([1,10]);return e.copy=()=>sy(e,my()).base(e.base()),Sb.apply(e,arguments),e}function fy(e){return"string"==typeof e?new lv([[document.querySelector(e)]],[document.documentElement]):new lv([[e]],ov)}function vy(e){return function(){return e}}function gy(e){this._context=e}function by(e){return new gy(e)}Array.prototype.slice,gy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};const yy=Math.PI,xy=2*yy,wy=1e-6,_y=xy-wy;function ky(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Ny{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?ky:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ky;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,a,s){this._append`C${+e},${+t},${+n},${+r},${this._x1=+a},${this._y1=+s}`}arcTo(e,t,n,r,a){if(e=+e,t=+t,n=+n,r=+r,(a=+a)<0)throw new Error(`negative radius: ${a}`);let s=this._x1,i=this._y1,o=n-e,l=r-t,c=s-e,u=i-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>wy)if(Math.abs(u*o-l*c)>wy&&a){let h=n-s,p=r-i,m=o*o+l*l,f=h*h+p*p,v=Math.sqrt(m),g=Math.sqrt(d),b=a*Math.tan((yy-Math.acos((m+d-f)/(2*v*g)))/2),y=b/g,x=b/v;Math.abs(y-1)>wy&&this._append`L${e+y*c},${t+y*u}`,this._append`A${a},${a},0,0,${+(u*h>c*p)},${this._x1=e+x*o},${this._y1=t+x*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,a,s){if(e=+e,t=+t,s=!!s,(n=+n)<0)throw new Error(`negative radius: ${n}`);let i=n*Math.cos(r),o=n*Math.sin(r),l=e+i,c=t+o,u=1^s,d=s?r-a:a-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>wy||Math.abs(this._y1-c)>wy)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%xy+xy),d>_y?this._append`A${n},${n},0,1,${u},${e-i},${t-o}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>wy&&this._append`A${n},${n},0,${+(d>=yy)},${u},${this._x1=e+n*Math.cos(a)},${this._y1=t+n*Math.sin(a)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Ey(e){return e[0]}function jy(e){return e[1]}function Sy(e,t,n){this.k=e,this.x=t,this.y=n}Sy.prototype={constructor:Sy,scale:function(e){return 1===e?this:new Sy(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Sy(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new Sy(1,0,0),Sy.prototype;const Cy=.666;function Ty(e){const t="number"==typeof e?e:Number(e);return Number.isFinite(t)?t:null}i(1480);const Ay=({json:e,loading:t,error:r,chart:a})=>{var i,o;const l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useMemo)(()=>function(e){const t=null==e?void 0:e.data;if(!Array.isArray(t))return null;const n=t.map(e=>{var t;const n=Ty(null==e?void 0:e.avgCreativesPerWeek),r=Ty(null==e?void 0:e.winnerCount),a="string"==typeof(null==e?void 0:e.spendTier)?e.spendTier:"",s=("string"==typeof(null==e?void 0:e.spendCategory)?e.spendCategory:"")||function(e){const t=("str
2ing"==typeof e?e:"").toLowerCase();return t.includes("micro")?"micro":t.includes("small")?"small":t.includes("medium")?"medium":t.includes("large")?"large":t.includes("enterprise")?"enterprise":"none"}(a);return null!==n&&null!==r&&s?{avgCreativesPerWeek:n,winnerCount:r,spendTier:a||void 0,spend:null!==(t=Ty(null==e?void 0:e.spend))&&void 0!==t?t:void 0,spendCategory:s}:null}).filter(Boolean);return n.length>0?n:null}(e),[e]);(0,n.useEffect)(()=>{const e=l.current,t=c.current;if(!e||!t)return;const n=()=>{const t=u.current;t&&(t.resizeObserver&&t.resizeObserver.disconnect(),t.resizeDebounceId&&clearTimeout(t.resizeDebounceId),t.rafId&&cancelAnimationFrame(t.rafId),t.entranceRafId&&cancelAnimationFrame(t.entranceRafId),fy(e).selectAll(".filter-btn").on("click",null),t.tooltip&&t.tooltip.remove(),t.svgRoot&&t.svgRoot.remove(),u.current=null)};if(!d)return void n();if(!u.current){const n=d.map((e,t)=>Object.assign(Object.assign({},e),{originalIndex:t+1})).sort((e,t)=>e.avgCreativesPerWeek-t.avgCreativesPerWeek),a=Math.max(...n.map(e=>e.avgCreativesPerWeek)),s=Math.max(...n.map(e=>e.winnerCount)),i={top:55,right:55,bottom:80,left:80},o=700,l=821,c=l+i.left+i.right,h=o,p=Math.max(100,a),m=Math.max(100,s),f=fy("body").append("div").attr("class","cb2026-volume-outliers-tooltip").style("opacity",0).style("position","fixed").style("text-align","left").style("padding","12px 16px").style("font-size","13px").style("font-family",'"Inter",-apple-system,BlinkMacSystemFont,sans-serif').style("line-height","1.6").style("background","linear-gradient(135deg, #8B86F3 0%, #6B5DD3 100%)").style("color","#ffffff").style("border-radius","12px").style("box-shadow","0 8px 24px rgba(107, 93, 211, 0.35)").style("border","1px solid rgba(255, 255, 255, 0.15)").style("backdrop-filter","blur(8px)").style("pointer-events","none").style("z-index","9999"),v=fy(t).append("svg").attr("preserveAspectRatio","xMinYMin meet").style("width","100%").style("height","auto").style("display","block"),g=v.append("g").attr("transform",`translate(${i.left},${i.top})`),b=oy().domain([0,1,10,100,p]),y=oy().domain([0,1,10,100,m]),x=[1,10,100],w=g.append("g").attr("class","grid").selectAll("line").data(x).enter().append("line").attr("class","grid-line").style("stroke","#E8E4E4").style("stroke-opacity",1),_=g.append("g").attr("class","axis axis-x"),k=g.append("g").attr("class","axis axis-y"),N=g.append("text").attr("class","axis-label axis-label-x").attr("text-anchor","middle").text("Ads launched per week"),E=g.append("text").attr("class","axis-label axis-label-y").attr("text-anchor","middle").attr("transform","rotate(-90)").text("Winner count"),j=4,S=(e,t)=>{const n=1e4*Math.sin(999*(e+1)+t);return(n-Math.floor(n)-.5)*j},C=n.map((e,t)=>Object.assign(Object.assign({},e),{jitterX:S(t,17),jitterY:S(t,29)})),T=g.append("g").attr("class","dots").selectAll("circle").data(C).enter().append("circle").attr("class",e=>`dot category-${e.spendCategory}`).attr("r",0).attr("fill","#8B86F3").attr("opacity",0).on("mouseover",function(e,t){var n;fy(this).transition().duration(200).attr("r",7),f.interrupt().style("opacity",1),f.html(`\n                            <strong>Ads launched per week:</strong> ${Number(t.avgCreativesPerWeek).toFixed(2)}<br/>\n                            <strong>Winner count:</strong> ${t.winnerCount}<br/>\n                            <strong>Spend Tier:</strong> ${null!==(n=t.spendTier)&&void 0!==n?n:t.spendCategory}\n                        `).style("left",`${e.clientX+10}px`).style("top",e.clientY-28+"px")}).on("mouseout",function(){fy(this).transition().duration(200).attr("r",5),f.interrupt().style("opacity",0)}),A=function(e,t){var n=vy(!0),r=null,a=by,s=null,i=function(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ny(t)}(o);function o(o){var l,c,u,d=(o=function(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}(o)).length,h=!1;for(null==r&&(s=a(u=i())),l=0;l<=d;++l)!(l<d&&n(c=o[l],l,o))===h&&((h=!h)?s.lineStart():s.lineEnd()),h&&s.point(+e(c,l,o),+t(c,l,o));if(u)return s=null,u+""||null}return e="function"==typeof e?e:void 0===e?Ey:vy(e),t="function"==typeof t?t:void 0===t?jy:vy(t),o.x=function(t){return arguments.length?(e="function"==typeof t?t:vy(+t),o):e},o.y=function(e){return arguments.length?(t="function"==typeof e?e:vy(+e),o):t},o.defined=function(e){return arguments.length?(n="function"==typeof e?e:vy(!!e),o):n},o.curve=function(e){return arguments.length?(a=e,null!=r&&(s=a(r)),o):a},o.context=function(e){return arguments.length?(null==e?r=s=null:s=a(r=e),o):r},o}().x(e=>b(e.x)).y(e=>
2y(e.y)).curve(by),L=g.append("path").attr("class","trend-line").attr("fill","none").attr("stroke","#5048EA").attr("stroke-width",2).attr("opacity",.5),I=g.append("path").attr("d","M-6,-3L0,0L-6,3").attr("fill","none").attr("stroke","#5048EA").attr("stroke-width",2).attr("stroke-linecap","round").attr("stroke-linejoin","round").attr("opacity",0),M=["micro","small","medium","large","enterprise"],P=new Set(M);let O=!0;u.current={tooltip:f,svgRoot:v,g,grid:w,xAxisG:_,yAxisG:k,xLabel:N,yLabel:E,dots:T,trendLine:L,arrow:I,lineGenerator:A,xScale:b,yScale:y,xScaleMax:p,yScaleMax:m,margin:i,baseHeight:o,designWidth:l,designTotalWidth:c,designTotalHeight:h,allCategories:M,activeCategories:P,get allActive(){return O},set allActive(e){O=e},entranceShouldRun:!1,entranceHasRun:!1,entranceObserver:null,entranceRafId:0,data:C},T.attr("r",0).attr("opacity",0),L.attr("opacity",0),I.attr("opacity",0),fy(e).selectAll(".filter-btn").on("click",t=>{const n=u.current;if(!n)return;const a=null==t?void 0:t.currentTarget;if(!a)return;const s=fy(a),i=s.attr("data-category");"all"===i?(n.allActive=!0,n.activeCategories.clear(),n.allCategories.forEach(e=>n.activeCategories.add(e)),fy(e).selectAll(".filter-btn").classed("active",!1),s.classed("active",!0)):(n.allActive&&(n.allActive=!1,n.activeCategories.clear(),fy(e).select('.filter-btn[data-category="all"]').classed("active",!1)),n.activeCategories.has(i)?(n.activeCategories.delete(i),s.classed("active",!1)):(n.activeCategories.add(i),s.classed("active",!0)),n.activeCategories.size===n.allCategories.length&&(n.allActive=!0,fy(e).selectAll(".filter-btn").classed("active",!1),fy(e).select('.filter-btn[data-category="all"]').classed("active",!0))),n.g.selectAll(".dot").transition().duration(200).attr("opacity",e=>n.activeCategories.has(e.spendCategory)?.5:0).attr("r",e=>n.activeCategories.has(e.spendCategory)?5:0),r()})}const r=()=>{const e=u.current;e&&(e.rafId&&cancelAnimationFrame(e.rafId),e.rafId=requestAnimationFrame(()=>{e.rafId=null,a()}))},a=()=>{var e,t;const n=u.current;if(!n)return;const r=n.margin,a=n.designWidth,s=n.baseHeight-r.top-r.bottom;n.svgRoot.attr("viewBox",`0 0 ${n.designTotalWidth} ${n.designTotalHeight}`).attr("width","100%").attr("height","auto"),n.xScale.range([0,.08*a,.41*a,.74*a,a]),n.yScale.range([s,.92*s,.59*s,.26*s,0]),n.grid.attr("x1",0).attr("x2",a).attr("y1",e=>n.yScale(e)).attr("y2",e=>n.yScale(e));const i=Qm(n.xScale).tickValues([1,10,100]).tickFormat(e=>String(e)).tickSize(0);n.xAxisG.attr("transform",`translate(0,${s})`).call(i);const o=Xm(n.yScale).tickValues([1,10,100]).tickFormat(e=>String(e)).tickSize(0);n.yAxisG.call(o).select(".domain").remove(),n.xLabel.attr("x",a/2).attr("y",s+60),n.yLabel.attr("x",-s/2).attr("y",-60),n.dots.attr("cx",e=>n.xScale(e.avgCreativesPerWeek)+e.jitterX).attr("cy",e=>n.yScale(Math.max(e.winnerCount,1))+e.jitterY);const l=n.data.filter(e=>n.activeCategories.has(e.spendCategory));if(l.length<2)return n.trendLine.attr("opacity",0),void n.arrow.attr("opacity",0);const c=l.map(e=>Number(e.avgCreativesPerWeek)),d=l.map(e=>Math.max(Number(e.winnerCount),1)),h=c.length,p=Bm(c),m=Bm(d),f=(h*Bm(c.map((e,t)=>e*d[t]))-p*m)/(h*Bm(c.map(e=>e*e))-p*p),v=(m-f*p)/h,g=null!==(e=$m(c))&&void 0!==e?e:0,b=(n.yScaleMax-v)/f,y=null!==(t=Um(c))&&void 0!==t?t:b,x=Math.min(b,y),w=[{x:g,y:Math.max(1,f*g+v)},{x,y:Math.min(n.yScaleMax,f*x+v)}];n.trendLine.datum(w).attr("d",n.lineGenerator).attr("opacity",n.entranceHasRun?.5:0);const _=n.trendLine.node().getTotalLength(),k=n.trendLine.node().getPointAtLength(_),N=n.trendLine.node().getPointAtLength(Math.max(_-5,0)),E=180*Math.atan2(k.y-N.y,k.x-N.x)/Math.PI;if(n.arrow.attr("transform",`translate(${k.x},${k.y}) rotate(${E})`).attr("opacity",n.entranceHasRun?.5:0),n.entranceShouldRun&&!n.entranceHasRun){n.entranceHasRun=!0;const e=n.trendLine.node();if(e){const t=e.getTotalLength(),r=1400,a=60;n.trendLine.interrupt().attr("opacity",.5).attr("stroke-dasharray",t).attr("stroke-dashoffset",t).transition().duration(r).delay(0).ease(hb).attr("stroke-dashoffset",0),n.arrow.interrupt().attr("opacity",0).transition().duration(r).delay(0).ease(hb).attrTween("transform",function(){return function(n){const r=n*t,a=e.getPointAtLength(r),s=e.getPointAtLength(Math.max(r-5,0)),i=180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI;return`translate(${a.x},${a.y}) rotate(${i})`}}).attr("opacity",.5),n.dots.interrupt().attr("opacity",0).attr("r",0);const s=performance.now(),i=o=>{const l=Math.min(1,(o-s)/r),c=l*t,u=e.getPointAtLength(c).x;n.dots.each(function(e){if(!n.activeCategories.has(e.spendCategory))return void fy(this).attr("opacity",0).attr("r",0);const t=n.xScale(e.avgCreativesPerWeek)+e.jitterX,r=Math.max(0,Math.min(1,(u-t)/a));fy(this).attr("opacity",.5*r).attr("r",5*r)}),l<1?n.entranceRafId=requestAnimationFrame(i):(n.dots.each(function(e){const t=n.activeCategories.has(e.spendCategory);fy(this).attr("opacity",t?.5:0).attr("r",t?5:0)}),n.entranceRafId=0)};n.entranceRafId=requestAnimationFrame(i)}}},s=u.current;if(s&&!s.resizeObserver){const e=()=>{s.resizeDebounceId&&clearTimeout(s.resizeDebounceId),s.resizeDebounceId=setTimeout(()=>{s.resizeDebounceId=null,r()},220)};"undefined"!=typeof ResizeObserver?(s.resizeObserver=new ResizeObserver(e),s.resizeObserver.observe(t)):(s.onWindowResize=e,window.addEventListener("resize",s.onWindowResize))}if(s&&!s.entranceObserver){const t=()=>{const n=u.current;n&&!n.entranceShouldRun&&(()=>{var t,n;
2const r=null!==(n=null===(t=window.visualViewport)||void 0===t?void 0:t.height)&&void 0!==n?n:window.innerHeight,a=e.getBoundingClientRect(),s=Math.max(0,Math.min(a.bottom,r)-Math.max(a.top,0));return a.height<=r?a.top>=0&&a.bottom<=r||s/Math.max(1,a.height)>=Cy:s>=r*Cy})()&&(n.entranceShouldRun=!0,r(),n.entranceObserver&&(n.entranceObserver.disconnect(),n.entranceObserver=null),window.removeEventListener("scroll",t),window.removeEventListener("resize",t))};t();const n=new IntersectionObserver(t,{threshold:[0,.25,.5,.75,.9,1]});n.observe(e),s.entranceObserver=n,window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t)}return r(),()=>{const e=u.current;(null==e?void 0:e.entranceObserver)&&e.entranceObserver.disconnect(),(null==e?void 0:e.onWindowResize)&&window.removeEventListener("resize",e.onWindowResize),n()}},[d]);const h=null!==(i=null==a?void 0:a.title)&&void 0!==i?i:"-",p=null!==(o=null==a?void 0:a.subtitle)&&void 0!==o?o:"-";return(0,s.jsxs)("section",{className:"cb2026-volume-outliers",ref:l,children:[(0,s.jsxs)("div",{className:"cb2026-volume-outliers__header",children:[(0,s.jsx)("h2",{className:"cb2026-volume-outliers__title",children:h}),(0,s.jsx)("p",{className:"cb2026-volume-outliers__subhead",children:p})]}),(0,s.jsxs)("div",{className:"cb2026-volume-outliers__body",children:[(0,s.jsxs)("div",{className:"cb2026-volume-outliers__filters",children:[(0,s.jsx)("button",{className:"filter-btn active","data-category":"all",type:"button",children:"All"}),(0,s.jsxs)("button",{className:"filter-btn","data-category":"micro",type:"button",children:["Micro",(0,s.jsx)("span",{className:"range-text",children:" (<$10K)"})]}),(0,s.jsxs)("button",{className:"filter-btn","data-category":"small",type:"button",children:["Small",(0,s.jsx)("span",{className:"range-text",children:" ($10K-$50K)"})]}),(0,s.jsxs)("button",{className:"filter-btn","data-category":"medium",type:"button",children:["Medium",(0,s.jsx)("span",{className:"range-text",children:" ($50K-$200K)"})]}),(0,s.jsxs)("button",{className:"filter-btn","data-category":"large",type:"button",children:["Large",(0,s.jsx)("span",{className:"range-text",children:" ($200K-$1M)"})]}),(0,s.jsxs)("button",{className:"filter-btn","data-category":"enterprise",type:"button",children:["Enterprise",(0,s.jsx)("span",{className:"range-text",children:" ($1M+)"})]})]}),r&&(0,s.jsxs)("div",{className:"cb2026-volume-outliers__status",children:["Failed to load chart data: ",r.message]}),!r&&t&&(0,s.jsx)("div",{className:"cb2026-volume-outliers__status",children:"Loading chart data…"}),!r&&!t&&!d&&(0,s.jsx)("div",{className:"cb2026-volume-outliers__status",children:"No chart data available yet."}),(0,s.jsx)("div",{className:"cb2026-volume-outliers__chart",ref:c})]})]})};i(7370);const Ly={all:"All",micro:"Micro (<$10K)",small:"Small ($10K-$50K)",medium:"Medium ($50K-$200K)",large:"Large ($200K-$1M)",enterprise:"Enterprise ($1M+)"},Iy=["micro","small","medium","large","enterprise"];function My(e){const t="number"==typeof e?e:Number(e);return Number.isFinite(t)?t:null}function Py(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:`${e.toFixed(0)}`}const Oy=({json:e,loading:t,error:r,chart:a})=>{var i,o;const l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useMemo)(()=>function(e){var t;if(!e||"object"!=typeof e)return null;const n=e.bins;if(!Array.isArray(n))return null;const r=n.map(e=>{const t=My(null==e?void 0:e.bin_lo),n=My(null==e?void 0:e.bin_hi),r=My(null==e?void 0:e.count_all);return null==t||null==n||null==r?null:Object.assign(Object.assign({},e),{bin_lo:t,bin_hi:n,count_all:r})}).filter(Boolean);return 0===r.length?null:{bins:r,p90_all:My(e.p90_all),p90_by_tier:null!==(t=e.p90_by_tier)&&void 0!==t?t:null,tierLabels:Array.isArray(e.tierLabels)?e.tierLabels:void 0,tierCategories:e.tierCategories&&"object"==typeof e.tierCategories?e.tierCategories:void 0}}(e),[e]);(0,n.useEffect)(()=>{var e,t,n;const r=l.current,a=c.current;if(!r||!a)return;const s=()=>{const e=u.current;e&&(e.resizeObserver&&e.resizeObserver.disconnect(),e.entranceObserver&&e.entranceObserver.disconnect(),e.resizeDebounceId&&clearTimeout(e.resizeDebounceId),e.rafId&&cancelAnimationFrame(e.rafId),e.onWindowResize&&window.removeEventListener("resize",e.onWindowResize),fy(r).selectAll(".filter-btn").on("click",null),e.tooltip&&e.tooltip.remove(),e.svgRoot&&e.svgRoot.remove(),u.current=null)};if(!d)return void s();if(!u.current){const s=d.bins,o=Object.assign(Object.assign({},Ly),d.tierCategories?Object.fromEntries(Object.entries(d.tierCategories).map(([e,t])=>[t,e])):{}),l={top:55,right:55,bottom:80,left:80},c=700,h=821,p=h+l.left+l.right,m=c,f=null!==(e=$m(s,e=>e.bin_lo))&&void 0!==e?e:1,v=null!==(t=Um(s,e=>e.bin_hi))&&void 0!==t?t:10,g=null!==(n=Um(s,e=>e.count_all))&&void 0!==n?n:1,b=fy("body").append("div").attr("class","cb2026-many-ads-spend-tooltip").style("opacity",0).style("position","fixed").style("text-align","left").style("padding","12px 16px").style("font-size","13px").style("font-family",'"Inter",-apple-system,BlinkMacSystemFont,sans-serif').style("line-height","1.6").style("background","linear-gradient(135deg, #8B86F3 0%, #6B5DD3 100%)").style("color","#ffffff").style("border-radius","12px").style("box-shadow","0 8px 24px rgba(107, 93, 211, 0.35)").style("border","1p
2x solid rgba(255, 255, 255, 0.15)").style("backdrop-filter","blur(8px)").style("pointer-events","none").style("z-index","9999"),y=fy(a).append("svg").attr("preserveAspectRatio","xMinYMin meet").style("width","100%").style("height","auto").style("display","block"),x=y.append("g").attr("transform",`translate(${l.left},${l.top})`),w=my().domain([f,v]),_=oy().domain([0,1.05*g]),k=x.append("g").attr("class","grid"),N=x.append("g").attr("class","axis axis-x"),E=x.append("g").attr("class","axis axis-y"),j=x.append("text").attr("class","axis-label axis-label-x").attr("text-anchor","middle").text("Spend per ad"),S=x.append("text").attr("class","axis-label axis-label-y").attr("text-anchor","middle").attr("transform","rotate(-90)").text("Total number of ads"),C=x.append("g").attr("class","bars"),T=C.selectAll(".bar").data(s).enter().append("rect").attr("class","bar").attr("fill","#8B86F3").attr("opacity",.7),A=C.selectAll(".bar-overlay").data(s).enter().append("rect").attr("class","bar-overlay").attr("fill","#5047EB").attr("opacity",0).attr("pointer-events","none"),L=x.append("g").attr("class","p90-group"),I=new Set(Iy);let M=!0,P=!1,O=!1;const R=e=>{if(M)return e.count_all;let t=0;return I.forEach(n=>{var r;const a=o[n],s=null!==(r=My(e[a]))&&void 0!==r?r:0;t+=s}),t},D=(e,t,n)=>{var r,a,s;L.selectAll("*").remove();const i=My("All"===e?null!==(r=d.p90_all)&&void 0!==r?r:null:null!==(s=null===(a=d.p90_by_tier)||void 0===a?void 0:a[e])&&void 0!==s?s:null);if(null==i)return;const o=w(i);Number.isFinite(o)&&(L.append("line").attr("class","p90-line").attr("x1",o).attr("y1",0).attr("x2",o).attr("y2",n).attr("opacity",0).transition().duration(300).attr("opacity",1),L.append("text").attr("class","p90-label").attr("x",o+5).attr("y",15).text(`p90: $${Py(i)}`).attr("opacity",0).transition().duration(300).attr("opacity",1))},F=(e,t,n)=>{if(O)return;const r=e=>_(R(e)),a=e=>t-_(R(e));if(T.interrupt(),T.attr("y",e=>_(e.count_all)).attr("height",e=>t-_(e.count_all)),M)T.attr("opacity",.7),A.interrupt(),n>0?A.transition().duration(n).attr("y",t).attr("height",0).attr("opacity",0):A.attr("y",t).attr("height",0).attr("opacity",0),D("All",e,t);else if(T.attr("opacity",.25),A.interrupt(),n>0?A.transition().duration(n).attr("y",r).attr("height",a).attr("opacity",.85):A.attr("y",r).attr("height",a).attr("opacity",.85),1===I.size){const n=Array.from(I)[0],r=o[n];D(r,e,t)}else L.selectAll("*").remove()};T.on("mouseover",function(e,t){fy(this).attr("opacity",1);const n=R(t),r=!M&&t.count_all>0?`${(n/t.count_all*100).toFixed(1)}% of bin`:"";b.interrupt().style("opacity",1),b.html(`\n                        <strong>Spend range:</strong> $${Py(t.bin_lo)} - $${Py(t.bin_hi)}<br/>\n                        <strong>Ads:</strong> ${n.toLocaleString()}${r?`<br/>${r}`:""}\n                    `).style("left",`${e.clientX+10}px`).style("top",e.clientY-28+"px")}).on("mouseout",function(){fy(this).attr("opacity",M?.7:.25),b.interrupt().style("opacity",0)}),u.current={tooltip:b,svgRoot:y,g:x,gridG:k,xAxisG:N,yAxisG:E,xLabel:j,yLabel:S,bars:T,overlayBars:A,p90Group:L,xScale:w,yScale:_,margin:l,baseHeight:c,designWidth:h,designTotalWidth:p,designTotalHeight:m,categoryToTier:o,activeCategories:I,get allActive(){return M},set allActive(e){M=e},get isEntering(){return O},set isEntering(e){O=e},entranceShouldRun:!1,entranceObserver:null,hasAnimated:P,updateChart:F},fy(r).selectAll(".filter-btn").on("click",e=>{const t=u.current;if(!t)return;const n=null==e?void 0:e.currentTarget;if(!n)return;const a=fy(n),s=a.attr("data-category");"all"===s?(t.allActive=!0,t.activeCategories.clear(),Iy.forEach(e=>t.activeCategories.add(e)),fy(r).selectAll(".filter-btn").classed("active",!1),a.classed("active",!0)):(t.allActive&&(t.allActive=!1,t.activeCategories.clear(),fy(r).select('.filter-btn[data-category="all"]').classed("active",!1)),t.activeCategories.has(s)?(t.activeCategories.delete(s),a.classed("active",!1)):(t.activeCategories.add(s),a.classed("active",!0)),t.activeCategories.size===Iy.length&&(t.allActive=!0,fy(r).selectAll(".filter-btn").classed("active",!1),fy(r).select('.filter-btn[data-category="all"]').classed("active",!0)),0===t.activeCategories.size&&(t.allActive=!0,Iy.forEach(e
2=>t.activeCategories.add(e)),fy(r).selectAll(".filter-btn").classed("active",!1),fy(r).select('.filter-btn[data-category="all"]').classed("active",!0))),i(!0)})}const i=(e=!1)=>{const t=u.current;t&&(t.rafId&&cancelAnimationFrame(t.rafId),t.rafId=requestAnimationFrame(()=>{t.rafId=null,o(e)}))},o=e=>{const t=u.current;if(!t)return;const n=t.margin,r=t.designWidth,a=t.baseHeight-n.top-n.bottom;t.svgRoot.attr("viewBox",`0 0 ${t.designTotalWidth} ${t.designTotalHeight}`).attr("width","100%").attr("height","auto"),t.xScale.range([0,r]),t.yScale.range([a,0]);const s=t.yScale.ticks(5).filter(e=>e>0),i=t.gridG.selectAll("line").data(s,e=>e);i.enter().append("line").attr("class","grid-line").merge(i).attr("x1",0).attr("x2",r).attr("y1",e=>t.yScale(e)).attr("y2",e=>t.yScale(e)),i.exit().remove();const o=Qm(t.xScale).tickValues([100,1e3,1e4,1e5,1e6]).tickFormat(e=>function(e){return e>=1e6?`$${e/1e6}M`:e>=1e3?`$${e/1e3}K`:`$${e}`}(Number(e))).tickSize(0);t.xAxisG.attr("transform",`translate(0,${a})`).call(o);const l=Xm(t.yScale).ticks(5).tickFormat(e=>kb(",.0f")(Number(e))).tickSize(0);t.yAxisG.call(l).select(".domain").remove(),t.xLabel.attr("x",r/2).attr("y",a+60),t.yLabel.attr("x",-a/2).attr("y",-60);const c=e=>t.xScale(e.bin_lo),h=e=>Math.max(1,t.xScale(e.bin_hi)-t.xScale(e.bin_lo)-1);return t.bars.attr("x",c).attr("width",h),t.overlayBars.attr("x",c).attr("width",h),t.entranceShouldRun?t.hasAnimated?void t.updateChart(r,a,e?300:0):(t.hasAnimated=!0,t.isEntering=!0,t.bars.attr("opacity",.7),t.overlayBars.attr("opacity",0),t.bars.attr("y",a).attr("height",0),t.overlayBars.attr("y",a).attr("height",0),t.bars.interrupt().transition().duration(10).delay((e,t)=>15*t).attr("y",e=>t.yScale(e.count_all)).attr("height",e=>a-t.yScale(e.count_all)),void setTimeout(()=>{u.current&&(t.isEntering=!1,t.updateChart(r,a,0))},15*d.bins.length+100)):(t.bars.attr("opacity",0),t.overlayBars.attr("opacity",0),void t.p90Group.selectAll("*").remove())},h=u.current;if(h&&!h.resizeObserver){const e=()=>{h.resizeDebounceId&&clearTimeout(h.resizeDebounceId),h.resizeDebounceId=setTimeout(()=>{h.resizeDebounceId=null,i(!1)},220)};"undefined"!=typeof ResizeObserver?(h.resizeObserver=new ResizeObserver(e),h.resizeObserver.observe(a)):(h.onWindowResize=e,window.addEventListener("resize",h.onWindowResize))}if(h&&!h.entranceObserver){const e=()=>{const t=u.current;t&&!t.entranceShouldRun&&(()=>{var e,t;const n=null!==(t=null===(e=window.visualViewport)||void 0===e?void 0:e.height)&&void 0!==t?t:window.innerHeight,a=r.getBoundingClientRect(),s=Math.max(0,Math.min(a.bottom,n)-Math.max(a.top,0));return a.height<=n?a.top>=0&&a.bottom<=n||s/Math.max(1,a.height)>=Cy:s>=n*Cy})()&&(t.entranceShouldRun=!0,i(!1),t.entranceObserver&&(t.entranceObserver.disconnect(),t.entranceObserver=null),window.removeEventListener("scroll",e),window.removeEventListener("resize",e))};e();const t=new IntersectionObserver(e,{threshold:[0,.25,.5,.75,.9,1]});t.observe(r),h.entranceObserver=t,window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e)}return i(!1),()=>{s()}},[d]);const h=null!==(i=null==a?void 0:a.title)&&void 0!==i?i:"Many ads spend very little, a few ads spend a lot",p=null!==(o=null==a?void 0:a.subtitle)&&void 0!==o?o:"Toggle between the different sizes of business below to see the proportion of ads at different levels of spend";return(0,s.jsxs)("section",{className:"cb2026-many-ads-spend",ref:l,children:[(0,s.jsxs)("div",{className:"cb2026-many-ads-spend__header",children:[(0,s.jsx)("h2",{className:"cb2026-many-ads-spend__title",children:h}),(0,s.jsx)("p",{className:"cb2026-many-ads-spend__subhead",children:p})]}),(0,s.jsxs)("div",{className:"cb2026-many-ads-spend__body",children:[(0,s.jsxs)("div",{className:"cb2026-many-ads-spend__filters",children:[(0,s.jsx)("button",{className:"filter-btn active","data-category":"all",type:"button",children:"All"}),(0,s.jsxs)("button",{className:"filter-btn","data-category":"micro",type:"button",children:["Micro",(0,s.jsx)("span",{className:"range-text",children:" (<$10K)"})]}),(0,s.jsxs)("button",{className:"filter-btn","data-category":"small",type:"button",children:["Small",(0,s.jsx)("span",{className:"range-text",children:" ($10K-$50K)"})]}),(0,s.jsxs)("button",{className:"filter-btn","data-category":"medium",type:"button",children:["Medium",(0,s.jsx)("span",{className:"range-text",children:" ($50K-$200K)"})]}),(0,s.jsxs)("button",{className:"filter-btn","data-category":"large",type:"button",children:["Large",(0,s.jsx)("span",{className:"range-text",children:" ($200K-$1M)"})]}),(0,s.jsxs)("button",{className:"filter-btn","data-category":"enterprise",type:"button",children:["Enterprise",(0,s.jsx)("span",{className:"range-text",children:" ($1M+)"})]})]}),r&&(0,s.jsxs)("div",{className:"cb2026-many-ads-spend__status",children:["Failed to load chart data: ",r.message]}),!r&&t&&(0,s.jsx)("div",{className:"cb2026-many-ads-spend__status",children:"Loading chart data…"}
2),!r&&!t&&!d&&(0,s.jsx)("div",{className:"cb2026-many-ads-spend__status",children:"No chart data available yet."}),(0,s.jsx)("div",{className:"cb2026-many-ads-spend__chart",ref:c})]})]})};i(4606);const Ry=["Average Testing Volume","Average Hit Rate"],Dy=["averageTestingVolumePerWeek","averageHitRatePercent"];function Fy(e,t){return null==e?"—":"number"==typeof e?"averageHitRatePercent"===t||"avgHitRatePercent"===t?`${e.toFixed(2)}%`:"averageTestingVolumePerWeek"===t||"medianCreativesPerWeek"===t||"meanCreativesPerWeek"===t?e.toFixed(2):e.toString():String(e)}function Uy(e){var t,n,r;return Ry.includes(null!==(n=null===(t=e.label)||void 0===t?void 0:t.trim())&&void 0!==n?n:"")||Dy.includes(null!==(r=e.field)&&void 0!==r?r:"")}const $y=({json:e,loading:t,error:r,chart:a,baseUrl:i=""})=>{var o,l,c,u,d,h;const p=(0,n.useMemo)(()=>function(e){if(!e||"object"!=typeof e)return null;const t=e,n=t.rows,r=t.headers;return Array.isArray(n)&&Array.isArray(r)&&0!==n.length&&0!==r.length?{rows:n,headers:r}:null}(e),[e]),m=(0,n.useMemo)(()=>{var e,t;return!(!(null===(e=null==a?void 0:a.gated_by)||void 0===e?void 0:e.documentId)||!(null===(t=null==a?void 0:a.form)||void 0===t?void 0:t.form))},[null===(o=null==a?void 0:a.gated_by)||void 0===o?void 0:o.documentId,null===(l=null==a?void 0:a.form)||void 0===l?void 0:l.form]),[f,v]=(0,n.useState)(()=>{var e;return!m||!(null===(e=null==a?void 0:a.gated_by)||void 0===e?void 0:e.documentId)||dl.isIdentityUnlocked(a.gated_by.documentId)}),g=null===(c=null==a?void 0:a.gated_by)||void 0===c?void 0:c.documentId;(0,n.useEffect)(()=>{if(!m||!g)return;const e=e=>{var t,n;const r=e.detail,a=null!==(n=null===(t=null==r?void 0:r.unlockedIdentityDocumentIds)||void 0===t?void 0:t.includes(g))&&void 0!==n&&n;v(a||dl.isIdentityUnlocked(g))};return v(dl.isIdentityUnlocked(g)),window.addEventListener(ul,e),()=>window.removeEventListener(ul,e)},[m,g]);const b=(0,n.useMemo)(()=>!!(null==p?void 0:p.headers)&&p.headers.some(e=>Uy(e)),[null==p?void 0:p.headers]),y=m&&!f&&p&&(null===(u=null==a?void 0:a.form)||void 0===u?void 0:u.form)&&b,x=(0,n.useRef)(null),w=(0,n.useRef)(null),_=(0,n.useRef)(null),k=(0,n.useRef)(null),N=(0,n.useRef)(null),[E,j]=(0,n.useState)(null),[S,C]=(0,n.useState)(!1),T=(0,n.useCallback)(()=>{const e=x.current;if(!e)return void j(null);const t=e.getBoundingClientRect();if("undefined"!=typeof window&&window.innerWidth<=991&&y)return C(!0),void j({top:0,left:0,width:t.width,height:t.height});C(!1);const n=w.current,r=_.current,a=k.current,s=N.current;if(!(n&&r&&a&&s))return void j(null);const i=n.getBoundingClientRect(),o=a.getBoundingClientRect(),l=s.getBoundingClientRect(),c=r.getBoundingClientRect();j({top:o.top-t.top,left:i.left-t.left,width:c.right-i.left,height:l.bottom-o.top})},[y]);if((0,n.useEffect)(()=>{var e;if(!y)return j(null),void C(!1);const t=requestAnimationFrame(()=>{T()}),n=new ResizeObserver(T);x.current&&n.observe(x.current),window.addEventListener("resize",T),window.addEventListener("orientationchange",T);const r=null===(e=x.current)||void 0===e?void 0:e.parentElement;return null==r||r.addEventListener("scroll",T),()=>{cancelAnimationFrame(t),n.disconnect(),window.removeEventListener("resize",T),window.removeEventListener("orientationchange",T),null==r||r.removeEventListener("scroll",T)}},[y,T]),t)return(0,s.jsx)("div",{className:"cb2026-testing-volume-hit-rate cb2026-testing-volume-hit-rate--loading",children:(0,s.jsx)("div",{className:"cb2026-testing-volume-hit-rate__status",children:"Loading chart data…"})});if(r)return(0,s.jsx)("div",{className:"cb2026-testing-volume-hit-rate cb2026-testing-volume-hit-rate--error",children:(0,s.jsxs)("div",{className:"cb2026-testing-volume-hit-rate__status",children:["Failed to load chart: ",r.message]})});if(!p)return(0,s.jsx)("div",{className:"cb2026-testing-volume-hit-rate cb2026-testing-volume-hit-rate--empty",children:(0,s.jsx)("div",{className:"cb2026-testing-volume-hit-rate__status",children:"No data available"})});const{rows:A,headers:L}=p,I=L.map((e,t)=>Uy(e)?t:-1).filter(e=>e>=0),M=null!==(d=I[0])&&void 0!==d?d:-1,P=null!==(h=I[I.length-1])&&void 0!==h?h:-1;return(0,s.jsx)("div",{className:"cb2026-testing-volume-hit-rate "+(S?"cb2026-testing-volume-hit-rate--mobile-gated":""),children:(0,s.jsx)("div",{className:"cb2026-testing-volume-hit-rate__table-wrapper",children:(0,s.jsxs)("div",{ref:x,className:"cb2026-testing-volume-hit-rate__scroll-content",children:[(0,s.jsxs)("table",{className:"cb2026-testing-volume-hit-rate__table",children:[(0,s.jsx)("thead",{children:(0,s.jsx)("tr",{children:L.map((e,t)=>(0,s.jsx)("th",{ref:y&&t===M?e=>{w.current=e}:y&&t===P?e=>{_.current=e}:void 0,scope:"col",className:y&&(Uy(e)||S)?"cb2026-testing-volume-hit-rate__th--gated":"",children:e.label},e.field))})}),(0,s.jsx)("tbody",{children:A.map((e,t)=>(0,s.jsx)("tr",{children:L.map((n,r)=>(0,s.jsx)("td",{ref:y&&0===t&&r===M?e=>{k.current=e}:y&&t===A.length-1&&r===P?e=>{N.current=e}:void 0,"data-field":n.field,className:y&&(Uy(n)||S)?"cb2026-testing-volume-hit-rate__cell--gated":"",children:y&&(Uy(n)||S)?"xxx":Fy(e[n.field],n.field)},n.field))},t))})]}),y&&E&&(0,s.jsx)("div",{className:"cb2026-testing-volume-hit-rate__gate-overlay",style:{to
2p:E.top,left:E.left,width:E.width,height:E.height},children:(0,s.jsx)("div",{className:"cb2026-testing-volume-hit-rate__gate-form",children:(0,s.jsx)(Nl,{baseUrl:i,block:a.form.form,onSuccess:()=>v(!0)})})})]})})})},By=[{category:"micro",categoryLabel:"Micro (<$10K)",losers:50.2,midRange:46,winners:3.7},{category:"small",categoryLabel:"Small ($10K-$50K)",losers:49.3,midRange:44.6,winners:6.2},{category:"medium",categoryLabel:"Medium ($50K-250K)",losers:52.6,midRange:40.1,winners:7.3},{category:"large",categoryLabel:"Large ($200K-1M)",losers:53.9,midRange:38,winners:8.1},{category:"enterprise",categoryLabel:"Enterprise ($1M+)",losers:52.2,midRange:39.6,winners:8.2}];function Hy(e){const t="number"==typeof e?e:Number(e);return Number.isFinite(t)?t:null}i(2590);const zy={losers:"#D8D7F3",midRange:"#A7A3F5",winners:"#5047EB"},qy=[{key:"losers",label:"Losers",color:zy.losers},{key:"midRange",label:"Mid-range",color:zy.midRange},{key:"winners",label:"Winners",color:zy.winners}],Gy=({json:e,loading:t=!1,error:r=null,chart:a})=>{var i,o;const l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useMemo)(()=>{const t=function(e){const t=null==e?void 0:e.data;if(!Array.isArray(t)||0===t.length)return null;const n=t.map(e=>{var t;const n=Hy(null==e?void 0:e.losers),r=Hy(null!==(t=null==e?void 0:e.midRange)&&void 0!==t?t:null==e?void 0:e.mid_range),a=Hy(null==e?void 0:e.winners),s="string"==typeof(null==e?void 0:e.category)?e.category:"",i="string"==typeof(null==e?void 0:e.categoryLabel)?e.categoryLabel:"string"==typeof(null==e?void 0:e.category_label)?e.category_label:s;return null!=n&&null!=r&&null!=a&&s?{category:s,categoryLabel:i||s,losers:n,midRange:r,winners:a}:null}).filter(e=>null!=e);return n.length>0?n:null}(e);return null!=t?t:By},[e]);(0,n.useEffect)(()=>{const e=l.current,t=c.current;if(!e||!t)return;const n={top:30,right:55,bottom:130,left:55},r=821+n.left+n.right;if(!u.current){const e=fy(t).append("svg").attr("preserveAspectRatio","xMinYMin meet").style("width","100%").style("display","block"),a=e.append("g").attr("transform",`translate(${n.left},${n.top})`),s=[25,50,75,100];a.append("g").attr("class","grid").selectAll("line").data(s).enter().append("line").attr("class","grid-line").attr("stroke","#E8E4E4").attr("stroke-width",1.78),a.append("g").attr("class","axis axis-x"),a.append("g").attr("class","axis axis-y"),a.append("text").attr("class","axis-label axis-label-x").attr("text-anchor","middle").text("Size of advertiser by spend per month"),a.append("text").attr("class","axis-label axis-label-y").attr("text-anchor","middle").attr("transform","rotate(-90)").text("Percentage (%)");const i=a.append("g").attr("class","bars").selectAll("g.bar-group").data(d).enter().append("g").attr("class","bar-group"),o=["losers","midRange","winners"];o.forEach(e=>{i.append("rect").attr("class",`segment segment-${e}`).attr("fill",zy[e])}),o.forEach(e=>{i.append("text").attr("class",`segment-label segment-label-${e}`).attr("text-anchor","middle").attr("font-size",14).attr("fill","#000").attr("opacity",0).text(t=>`${t[e].toFixed(1)}%`)}),u.current={svgRoot:e,g:a,barGroups:i,entranceShouldRun:!1,entranceHasRun:!1,entranceObserver:null,resizeObserver:null,resizeDebounceId:null,rafId:null,margin:n,baseHeight:555,designWidth:821,designTotalWidth:r,designTotalHeight:555}}const a=()=>{const e=u.current;e&&(e.rafId&&cancelAnimationFrame(e.rafId),e.rafId=requestAnimationFrame(()=>{e.rafId=null,s()}))},s=()=>{const e=u.current;if(!e)return;const t=e.designWidth,n=e.baseHeight-e.margin.top-e.margin.bottom;e.svgRoot.attr("viewBox",`0 0 ${e.designTotalWidth} ${e.designTotalHeight}`).attr("width","100%").attr("height","auto").style("height",null),e.g.attr("transform",`translate(${e.margin.left},${e.margin.top})`);const r=t,a=n,s=Mb().domain(d.map(e=>e.category)).padding(.25).range([0,r]),i=oy().domain([0,100]).range([a,0]),o=s.bandwidth(),l=e.g.select(".grid").selectAll("line").data([25,50,75,100]);l.attr("x1",0).attr("x2",r).attr("y1",e=>i(e)).attr("y2",e=>i(e)),l.enter().append("line").attr("class","grid-line").attr("stroke","#E8E4E4").attr("stroke-width",1.78).attr("x1",0).attr("x2",r).attr("y1",e=>i(e)).attr("y2",e=>i(e)),l.exit().remove();const c=Qm(s).tickFormat(e=>{var t;const n=d.find(t=>t.category===e);return null!==(t=null==n?void 0:n.categoryLabel)&&void 0!==t?t:e}).tickSize(0).tickPadding(14);e.g.select(".axis-x").attr("transform",`translate(0,${a})`).call(c);const h=Xm(i).tickValues([0,25,50,75,100]).tickFormat(e=>`${e}%`).tickSize(0);e.g.select(".axis-y").call(h).select(".domain").remove(),e.g.select(".axis-label-x").attr("x",r/2).attr("y",a+55),e.g.select(".axis-label-y").attr("x",-a/2).attr("y",-45);const p=Math.max(20,Math.min(54,.5*o)),m=(o-p)/2;e.barGroups.attr("transform",e=>`translate(${s(e.category)+m},0)`);const f=e=>e/100*a,v=e.barGroups.selectAll("rect.segment"),g=e.barGroups.selectAll("text.segment-label");if(!e.entranceShouldRun)return v.attr("y",a).attr("height",0).attr("x",0).attr("width",p),void g.attr("opacity",0);if(!e.entranceHasRun){e.entranceHasRun=!0;const t=800,n=80;v.attr("y",a).attr("height",0).attr("x",0).attr("width",p);const r=["losers","midRange","winners"];return void e.barGroups.each(function(e,s){const i=fy(this);let o=a;r.forEach((r,a)=>{const l=e[r],c=f(l);i.select(`rect.segment-${r}`).transition().duration(t).delay(s*n+30*a).ease(sb).attr("y",o-c).attr("height",c).attr("x",0).attr("width",p);const u=i.select(`text.segment-label-${r}`),d="winners"===r?o-c-4:o-c+18,h="winners"===r?"-0.25em":"0em";u.attr("x",p/2).attr("y",d).attr("dy",h).attr("opacity",0).text(`${e[r].toFixed(1)}%`).transition().duration(.6*t).delay(s*n+30*a+.3*t).attr("opacity",1).tween("text",function(){const e=this,t=Bv(0,l);return n=>{fy(e).text(t(n).toFixed(1)+"%")}}),o-=c})})}e.barGroups.each(function(e){const t=fy(this);let n=a;["losers","midRange","winners"].forEach(r=>{const a=e[r],s=f(a);t.select(`rect.segment-${r}`).attr("y",n-s).attr("height",s).attr("x",0).attr("width",p);const i="winners"===r?n-s-4:n-s+18,o="winners"===r?"-0.25em":"0em";t.select(`text.segment-label-${r}`).attr("x",p/2).attr("y",i).attr("dy",o).attr("opacity",1).text(`${e[r].toFixed(1)}%`),n-=s})})},i=u.current;if(!i.resizeObserver){const e=()=>{i.resizeDebounceId&&clearTimeout(i.resizeDebounceId),i.resizeDebounceId=setTimeout(()=>{i.resizeDebounceId=null,a()},220)};"undefined"!=typeof ResizeObserver&&(i.resizeObserver=new ResizeObserver(e),i.resizeObserver.observe(t))}if(!i.entranceObserver){const t=()=>{var n;const r=u.current;r&&!r.entranceShouldRun&&(()=>{var t,n;
2const r=null!==(n=null===(t=window.visualViewport)||void 0===t?void 0:t.height)&&void 0!==n?n:window.innerHeight,a=e.getBoundingClientRect(),s=Math.max(0,Math.min(a.bottom,r)-Math.max(a.top,0));return a.height<=r?a.top>=0&&a.bottom<=r||s/Math.max(1,a.height)>=Cy:s>=r*Cy})()&&(r.entranceShouldRun=!0,a(),null===(n=r.entranceObserver)||void 0===n||n.disconnect(),r.entranceObserver=null,window.removeEventListener("scroll",t),window.removeEventListener("resize",t))};t();const n=new IntersectionObserver(t,{threshold:[0,.25,.5,.75,.9,1]});n.observe(e),i.entranceObserver=n,window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t)}return a(),()=>{var e;null===(e=i.entranceObserver)||void 0===e||e.disconnect(),(()=>{var e,t;const n=u.current;n&&(null===(e=n.resizeObserver)||void 0===e||e.disconnect(),n.resizeDebounceId&&clearTimeout(n.resizeDebounceId),n.rafId&&cancelAnimationFrame(n.rafId),null===(t=n.entranceObserver)||void 0===t||t.disconnect(),n.svgRoot&&n.svgRoot.remove(),u.current=null)})()}},[d]);const h=null!==(i=null==a?void 0:a.title)&&void 0!==i?i:"Winning ads make up a small share of portfolios, even for higher-spend advertisers.",p=null!==(o=null==a?void 0:a.subtitle)&&void 0!==o?o:"Percentage breakdown of losing ads, mid-range spenders and winners by monthly ad spend.";return(0,s.jsxs)("section",{className:"cb2026-winning-ads-make-up",ref:l,children:[(0,s.jsxs)("div",{className:"cb2026-winning-ads-make-up__header",children:[(0,s.jsx)("h2",{className:"cb2026-winning-ads-make-up__title",children:h}),(0,s.jsx)("p",{className:"cb2026-winning-ads-make-up__subhead",children:p})]}),(0,s.jsxs)("div",{className:"cb2026-winning-ads-make-up__body",children:[(0,s.jsx)("div",{className:"cb2026-winning-ads-make-up__legend",children:qy.map(({key:e,label:t,color:n})=>(0,s.jsxs)("div",{className:"cb2026-winning-ads-make-up__legend-item",children:[(0,s.jsx)("span",{className:"cb2026-winning-ads-make-up__legend-dot",style:{backgroundColor:n}}),(0,s.jsx)("span",{className:"cb2026-winning-ads-make-up__legend-label",children:t})]},e))}),r&&(0,s.jsxs)("div",{className:"cb2026-winning-ads-make-up__status",children:["Failed to load chart data: ",r.message]}),!r&&t&&(0,s.jsx)("div",{className:"cb2026-winning-ads-make-up__status",children:"Loading chart data…"}),(0,s.jsx)("div",{className:"cb2026-winning-ads-make-up__chart",ref:c})]})]})},Wy=[{category:"micro",categoryLabel:"Micro (<$10K)",losers:31.5,midRange:45.6,winners:23},{category:"small",categoryLabel:"Small ($10K-$50K)",losers:25.7,midRange:39.7,winners:34.6},{category:"medium",categoryLabel:"Medium ($50K-250K)",losers:18.6,midRange:28.1,winners:53.3},{category:"large",categoryLabel:"Large ($200K-1M)",losers:17.1,midRange:26.4,winners:56.5},{category:"enterprise",categoryLabel:"Enterprise ($1M+)",losers:13.8,midRange:22.4,winners:63.7}];function Yy(e){const t="number"==typeof e?e:Number(e);return Number.isFinite(t)?t:null}i(1760);const Vy={losers:"#D8D7F3",midRange:"#A7A3F5",winners:"#5047EB"},Ky=[{key:"losers",label:"Losers",color:Vy.losers},{key:"midRange",label:"Mid-range",color:Vy.midRange},{key:"winners",label:"Winners",color:Vy.winners}],Qy=({json:e,loading:t=!1,error:r=null,chart:a})=>{var i,o;const l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useMemo)(()=>{const t=function(e){const t=null==e?void 0:e.data;if(!Array.isArray(t)||0===t.length)return null;const n=t.map(e=>{var t;const n=Yy(null==e?void 0:e.losers),r=Yy(null!==(t=null==e?void 0:e.midRange)&&void 0!==t?t:null==e?void 0:e.mid_range),a=Yy(null==e?void 0:e.winners),s="string"==typeof(null==e?void 0:e.category)?e.category:"",i="string"==typeof(null==e?void 0:e.categoryLabel)?e.categoryLabel:"string"==typeof(null==e?void 0:e.category_label)?e.category_label:s;return null!=n&&null!=r&&null!=a&&s?{category:s,categoryLabel:i||s,losers:n,midRange:r,winners:a}:null}).filter(e=>null!=e);return n.length>0?n:null}(e);return null!=t?t:Wy},[e]);(0,n.useEffect)(()=>{const e=l.current,t=c.current;if(!e||!t)return;const n={top:30,right:55,bottom:130,left:55},r=821+n.left+n.right;if(!u.current){const e=fy(t).append("svg").attr("preserveAspectRatio","xMinYMin meet").style("width","100%").style("display","block"),a=e.append("g").attr("transform",`translate(${n.left},${n.top})`),s=[25,50,75,100];a.append("g").attr("class","grid").selectAll("line").data(s).enter().append("line").attr("class","grid-line").attr("stroke","#E8E4E4").attr("stroke-width",1.78),a.append("g").attr("class","axis axis-x"),a.append("g").attr("class","axis axis-y"),a.append("text").attr("class","axis-label axis-label-x").attr("text-anchor","middle").text("Size of advertiser by spend per month"),a.append("text").attr("class","axis-label axis-label-y").attr("text-anchor","middle").attr("transform","rotate(-90)").text("Percentage (%)");const i=a.append("g").attr("class","bars").selectAll("g.bar-group").data(d).enter().append("g").attr("class","bar-group"),o=["losers","midRange","winners"];
2o.forEach(e=>{i.append("rect").attr("class",`segment segment-${e}`).attr("fill",Vy[e])}),o.forEach(e=>{i.append("text").attr("class",`segment-label segment-label-${e}`).attr("text-anchor","middle").attr("font-size",14).attr("fill","#000").attr("opacity",0).text(t=>`${t[e].toFixed(1)}%`)}),u.current={svgRoot:e,g:a,barGroups:i,entranceShouldRun:!1,entranceHasRun:!1,entranceObserver:null,resizeObserver:null,resizeDebounceId:null,rafId:null,margin:n,baseHeight:555,designWidth:821,designTotalWidth:r,designTotalHeight:555}}const a=()=>{const e=u.current;e&&(e.rafId&&cancelAnimationFrame(e.rafId),e.rafId=requestAnimationFrame(()=>{e.rafId=null,s()}))},s=()=>{const e=u.current;if(!e)return;const t=e.designWidth,n=e.baseHeight-e.margin.top-e.margin.bottom;e.svgRoot.attr("viewBox",`0 0 ${e.designTotalWidth} ${e.designTotalHeight}`).attr("width","100%").attr("height","auto").style("height",null),e.g.attr("transform",`translate(${e.margin.left},${e.margin.top})`);const r=t,a=n,s=Mb().domain(d.map(e=>e.category)).padding(.25).range([0,r]),i=oy().domain([0,100]).range([a,0]),o=s.bandwidth(),l=e.g.select(".grid").selectAll("line").data([25,50,75,100]);l.attr("x1",0).attr("x2",r).attr("y1",e=>i(e)).attr("y2",e=>i(e)),l.enter().append("line").attr("class","grid-line").attr("stroke","#E8E4E4").attr("stroke-width",1.78).attr("x1",0).attr("x2",r).attr("y1",e=>i(e)).attr("y2",e=>i(e)),l.exit().remove();const c=Qm(s).tickFormat(e=>{var t;const n=d.find(t=>t.category===e);return null!==(t=null==n?void 0:n.categoryLabel)&&void 0!==t?t:e}).tickSize(0).tickPadding(14);e.g.select(".axis-x").attr("transform",`translate(0,${a})`).call(c);const h=Xm(i).tickValues([0,25,50,75,100]).tickFormat(e=>`${e}%`).tickSize(0);e.g.select(".axis-y").call(h).select(".domain").remove(),e.g.select(".axis-label-x").attr("x",r/2).attr("y",a+55),e.g.select(".axis-label-y").attr("x",-a/2).attr("y",-45);const p=Math.max(20,Math.min(54,.5*o)),m=(o-p)/2;e.barGroups.attr("transform",e=>`translate(${s(e.category)+m},0)`);const f=e=>e/100*a,v=e.barGroups.selectAll("rect.segment"),g=e.barGroups.selectAll("text.segment-label");if(!e.entranceShouldRun)return v.attr("y",a).attr("height",0).attr("x",0).attr("width",p),void g.attr("opacity",0);if(!e.entranceHasRun){e.entranceHasRun=!0;const t=800,n=80;v.attr("y",a).attr("height",0).attr("x",0).attr("width",p);const r=["losers","midRange","winners"];return void e.barGroups.each(function(e,s){const i=fy(this);let o=a;r.forEach((r,a)=>{const l=e[r],c=f(l);i.select(`rect.segment-${r}`).transition().duration(t).delay(s*n+30*a).ease(sb).attr("y",o-c).attr("height",c).attr("x",0).attr("width",p);const u=i.select(`text.segment-label-${r}`),d="winners"===r?o-c-4:o-c+18,h="winners"===r?"-0.25em":"0em";u.attr("x",p/2).attr("y",d).attr("dy",h).attr("opacity",0).text(`${e[r].toFixed(1)}%`).transition().duration(.6*t).delay(s*n+30*a+.3*t).attr("opacity",1).tween("text",function(){const e=this,t=Bv(0,l);return n=>{fy(e).text(t(n).toFixed(1)+"%")}}),o-=c})})}e.barGroups.each(function(e){const t=fy(this);let n=a;["losers","midRange","winners"].forEach(r=>{const a=e[r],s=f(a);t.select(`rect.segment-${r}`).attr("y",n-s).attr("height",s).attr("x",0).attr("width",p);const i="winners"===r?n-s-4:n-s+18,o="winners"===r?"-0.25em":"0em";t.select(`text.segment-label-${r}`).attr("x",p/2).attr("y",i).attr("dy",o).attr("opacity",1).text(`${e[r].toFixed(1)}%`),n-=s})})},i=u.current;if(!i.resizeObserver){const e=()=>{i.resizeDebounceId&&clearTimeout(i.resizeDebounceId),i.resizeDebounceId=setTimeout(()=>{i.resizeDebounceId=null,a()},220)};"undefined"!=typeof ResizeObserver&&(i.resizeObserver=new ResizeObserver(e),i.resizeObserver.observe(t))}if(!i.entranceObserver){const t=()=>{var n;const r=u.current;r&&!r.entranceShouldRun&&(()=>{var t,n;const r=null!==(n=null===(t=window.visualViewport)||void 0===t?void 0:t.height)&&void 0!==n?n:window.innerHeight,a=e.getBoundingClientRect(),s=Math.max(0,Math.min(a.bottom,r)-Math.max(a.top,0));return a.height<=r?a.top>=0&&a.bottom<=r||s/Math.max(1,a.height)>=Cy:s>=r*Cy})()&&(r.entranceShouldRun=!0,a(),null===(n=r.entranceObserver)||void 0===n||n.disconnect(),r.entranceObserver=null,window.removeEventListener("scroll",t),window.removeEventListener("resize",t))};t();const n=new IntersectionObserver(t,{threshold:[0,.25,.5,.75,.9,1]});n.observe(e),i.entranceObserver=n,window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t)}return a(),()=>{var e;null===(e=i.entranceObserver)||void 0===e||e.disconnect(),(()=>{var e,t;const n=u.current;n&&(null===(e=n.resizeObserver)||void 0===e||e.disconnect(),n.resizeDebounceId&&clearTimeout(n.resizeDebounceId),n.rafId&&cancelAnimationFrame(n.rafId),null===(t=n.entranceObserver)||void 0===t||t.disconnect(),n.svgRoot&&n.svgRoot.remove(),u.current=null)})()}},[d]);const h=null!==(i=null==a?void 0:a.title)&&void 0!==i?i:"Ad spend shifts toward winners as accounts grow, rather than spreading evenly across creatives.",p=null!==(o=null==a?void 0:a.subtitle)&&void 0!==o?o:"Percentage breakdown of losing ads, mid-range spenders and winners by monthly ad spend.";return(0,s.jsxs)("section",{className:"cb2026-ad-spend-shifts",ref:l,children:[(0,s.jsxs)("div",{className:"cb2026-ad-spend-shifts__header",children:[(0,s.jsx)("h2",{className:"cb2026-ad-spend-shifts__title",children:h}),(0,s.jsx)("p",{className:"cb2026-ad-spend-shifts__subhead",children:p})]}),(0,s.jsxs)("div",{className:"cb2026-ad-spend-shifts__body",children:[(0,s.jsx)("div",{className:"cb2026-ad-spend-shifts__legend",children:Ky.map(({key:e,label:t,color:n})=>(0,s.jsxs)("div",{className:"cb2026-ad-spend-shifts__legend-item",children:[(0,s.jsx)("span",{className:"cb2026-ad-spend-shifts__legend-dot",style:{backgroundColor:n}}),(0,s.jsx)("span",{className:"cb2026-ad-spend-shifts__legend-label",children:t})]},e))}),r&&(0,s.jsxs)("div",{className:"cb2026-ad-spend-shifts__status",children:["Failed to load chart data: ",r.message]}),!r&&t&&(0,s.jsx)("div",{className:"cb2026-ad-spend-shifts__status",children:"Loading chart data…"}),(0,s.jsx)("div",{className:"cb2026-ad-spend-shifts__chart",ref:c})]})]})};function Xy(e){return"Automotive"===e.brandCategory&&"Large (200K – 1M)"===e.spendTier||"Education"===e.brandCategory&&"Enterprise ($1M+)"===e.spendTier}const Jy={brandCategories:["Health & Wellness","Technology","Education","Fitness & Sports","Other","Pets","Beauty & Personal Care","Fashion & Apparel","Home & Lifestyle","Food & Nutrition","Finance","Entertainment & Media","Automotive","Travel & Hospital
2ity","Professional Services","Parenting & Family"],spendTiers:["Micro (<$10K)","Small (10K – 50K)","Medium (50K – 200K)","Large (200K – 1M)","Enterprise ($1M+)"],data:[{brandCategory:"Health & Wellness",spendTier:"Micro (<$10K)",value:3.8},{brandCategory:"Health & Wellness",spendTier:"Small (10K – 50K)",value:5.9},{brandCategory:"Health & Wellness",spendTier:"Medium (50K – 200K)",value:11.2},{brandCategory:"Health & Wellness",spendTier:"Large (200K – 1M)",value:19.6},{brandCategory:"Health & Wellness",spendTier:"Enterprise ($1M+)",value:46},{brandCategory:"Technology",spendTier:"Micro (<$10K)",value:3.3},{brandCategory:"Technology",spendTier:"Small (10K – 50K)",value:5.2},{brandCategory:"Technology",spendTier:"Medium (50K – 200K)",value:11.1},{brandCategory:"Technology",spendTier:"Large (200K – 1M)",value:15.2},{brandCategory:"Technology",spendTier:"Enterprise ($1M+)",value:24.5},{brandCategory:"Education",spendTier:"Micro (<$10K)",value:2.9},{brandCategory:"Education",spendTier:"Small (10K – 50K)",value:4.9},{brandCategory:"Education",spendTier:"Medium (50K – 200K)",value:13.3},{brandCategory:"Education",spendTier:"Large (200K – 1M)",value:24.3},{brandCategory:"Education",spendTier:"Enterprise ($1M+)",value:77.1},{brandCategory:"Fitness & Sports",spendTier:"Micro (<$10K)",value:3.4},{brandCategory:"Fitness & Sports",spendTier:"Small (10K – 50K)",value:5.2},{brandCategory:"Fitness & Sports",spendTier:"Medium (50K – 200K)",value:12},{brandCategory:"Fitness & Sports",spendTier:"Large (200K – 1M)",value:19.6},{brandCategory:"Fitness & Sports",spendTier:"Enterprise ($1M+)",value:33.6},{brandCategory:"Other",spendTier:"Micro (<$10K)",value:3.6},{brandCategory:"Other",spendTier:"Small (10K – 50K)",value:4.9},{brandCategory:"Other",spendTier:"Medium (50K – 200K)",value:12.9},{brandCategory:"Other",spendTier:"Large (200K – 1M)",value:16.7},{brandCategory:"Other",spendTier:"Enterprise ($1M+)",value:13.6},{brandCategory:"Pets",spendTier:"Micro (<$10K)",value:3.2},{brandCategory:"Pets",spendTier:"Small (10K – 50K)",value:4.8},{brandCategory:"Pets",spendTier:"Medium (50K – 200K)",value:8.4},{brandCategory:"Pets",spendTier:"Large (200K – 1M)",value:18.5},{brandCategory:"Pets",spendTier:"Enterprise ($1M+)",value:19.8},{brandCategory:"Beauty & Personal Care",spendTier:"Micro (<$10K)",value:3.4},{brandCategory:"Beauty & Personal Care",spendTier:"Small (10K – 50K)",value:5.3},{brandCategory:"Beauty & Personal Care",spendTier:"Medium (50K – 200K)",value:8.7},{brandCategory:"Beauty & Personal Care",spendTier:"Large (200K – 1M)",value:14.7},{brandCategory:"Beauty & Personal Care",spendTier:"Enterprise ($1M+)",value:31.9},{brandCategory:"Fashion & Apparel",spendTier:"Micro (<$10K)",value:2.9},{brandCategory:"Fashion & Apparel",spendTier:"Small (10K – 50K)",value:5.1},{brandCategory:"Fashion & Apparel",spendTier:"Medium (50K – 200K)",value:8.6},{brandCategory:"Fashion & Apparel",spendTier:"Large (200K – 1M)",value:17.4},{brandCategory:"Fashion & Apparel",spendTier:"Enterprise ($1M+)",value:19.9},{brandCategory:"Home & Lifestyle",spendTier:"Micro (<$10K)",value:3.2},{brandCategory:"Home & Lifestyle",spendTier:"Small (10K – 50K)",value:4.8},{brandCategory:"Home & Lifestyle",spendTier:"Medium (50K – 200K)",value:8.4},{brandCategory:"Home & Lifestyle",spendTier:"Large (200K – 1M)",value:15.9},{brandCategory:"Home & Lifestyle",spendTier:"Enterprise ($1M+)",value:26.1},{brandCategory:"Food & Nutrition",spendTier:"Micro (<$10K)",value:3.1},{brandCategory:"Food & Nutrition",spendTier:"Small (10K – 50K)",value:4.5},{brandCategory:"Food & Nutrition",spendTier:"Medium (50K – 200K)",value:8.1},{brandCategory:"Food & Nutrition",spendTier:"Large (200K – 1M)",value:14.4},{brandCategory:"Food & Nutrition",spendTier:"Enterprise ($1M+)",value:26.9},{brandCategory:"Finance",spendTier:"Micro (<$10K)",value:3.2},{brandCategory:"Finance",spendTier:"Small (10K – 50K)",value:4.7},{brandCategory:"Finance",spendTier:"Medium (50K – 200K)",value:6.7},{brandCategory:"Finance",spendTier:"Large (200K – 1M)",value:9.9},{brandCategory:"Finance",spendTier:"Enterprise ($1M+)",value:16.4},{brandCategory:"Entertainment & Media",spendTier:"Micro (<$10K)",value:3.1},{brandCategory:"Entertainment & Media",spendTier:"Small (10K – 50K)",value:4.9},{brandCategory:"Entertainment & Media",spendTier:"Medium (50K – 200K)",value:8.4},{brandCategory:"Entertainment & Media",spendTier:"Large (200K – 1M)",value:14.6},{brandCategory:"Entertainment & Media",spendTier:"Enterprise ($1M+)",value:20.2},{brandCategory:"Automotive",spendTier:"Micro (<$10K)",value:4.1},{brandCategory:"Automotive",spendTier:"Small (10K – 50K)",value:4.7},{brandCategory:"Automotive",spendTier:"Medium (50K – 200K)",value:6},{brandCategory:"Automotive",spendTier:"Large (200K – 1M)",value:28.1},{brandCategory:"Automotive",spendTier:"Enterprise ($1M+)",value:8.8}
2,{brandCategory:"Travel & Hospitality",spendTier:"Micro (<$10K)",value:3.2},{brandCategory:"Travel & Hospitality",spendTier:"Small (10K – 50K)",value:4.9},{brandCategory:"Travel & Hospitality",spendTier:"Medium (50K – 200K)",value:7.1},{brandCategory:"Travel & Hospitality",spendTier:"Large (200K – 1M)",value:9.3},{brandCategory:"Travel & Hospitality",spendTier:"Enterprise ($1M+)",value:14},{brandCategory:"Professional Services",spendTier:"Micro (<$10K)",value:3.4},{brandCategory:"Professional Services",spendTier:"Small (10K – 50K)",value:4.5},{brandCategory:"Professional Services",spendTier:"Medium (50K – 200K)",value:7},{brandCategory:"Professional Services",spendTier:"Large (200K – 1M)",value:11.1},{brandCategory:"Professional Services",spendTier:"Enterprise ($1M+)",value:14.1},{brandCategory:"Parenting & Family",spendTier:"Micro (<$10K)",value:2.5},{brandCategory:"Parenting & Family",spendTier:"Small (10K – 50K)",value:4.2},{brandCategory:"Parenting & Family",spendTier:"Medium (50K – 200K)",value:8.7},{brandCategory:"Parenting & Family",spendTier:"Large (200K – 1M)",value:14.7},{brandCategory:"Parenting & Family",spendTier:"Enterprise ($1M+)",value:14.7}]};i(32);const Zy=({json:e,loading:t,error:r,chart:a,baseUrl:i=""})=>{var o,l,c,u,d,h;const p=(0,n.useRef)(null),m=(0,n.useRef)(null),f=(0,n.useRef)(!1),v=(0,n.useRef)(null),g=(0,n.useMemo)(()=>{const t=function(e){if(!e||"object"!=typeof e)return null;const t=e,n=t.brandCategories,r=t.spendTiers,a=t.data;if(!Array.isArray(n)||!Array.isArray(r)||!Array.isArray(a))return null;const s=a.map(e=>{const t="string"==typeof e.brandCategory?e.brandCategory:"",n="string"==typeof e.spendTier?e.spendTier:"",r=function(e){const t="number"==typeof e?e:Number(e);return Number.isFinite(t)?t:null}(e.value);return t&&n&&null!=r?{brandCategory:t,spendTier:n,value:r}:null}).filter(e=>null!=e);return 0===s.length?null:{brandCategories:n.filter(e=>"string"==typeof e),spendTiers:r.filter(e=>"string"==typeof e),data:s}}(e);return null!=t?t:Jy},[e]),b=(0,n.useMemo)(()=>{var e,t;return!(!(null===(e=null==a?void 0:a.gated_by)||void 0===e?void 0:e.documentId)||!(null===(t=null==a?void 0:a.form)||void 0===t?void 0:t.form))},[null===(o=null==a?void 0:a.gated_by)||void 0===o?void 0:o.documentId,null===(l=null==a?void 0:a.form)||void 0===l?void 0:l.form]),[y,x]=(0,n.useState)(()=>{var e;return!b||!(null===(e=null==a?void 0:a.gated_by)||void 0===e?void 0:e.documentId)||dl.isIdentityUnlocked(a.gated_by.documentId)}),w=null===(c=null==a?void 0:a.gated_by)||void 0===c?void 0:c.documentId;(0,n.useEffect)(()=>{if(!b||!w)return;const e=e=>{var t,n;const r=e.detail,a=null!==(n=null===(t=null==r?void 0:r.unlockedIdentityDocumentIds)||void 0===t?void 0:t.includes(w))&&void 0!==n&&n;x(a||dl.isIdentityUnlocked(w))};return x(dl.isIdentityUnlocked(w)),window.addEventListener(ul,e),()=>window.removeEventListener(ul,e)},[b,w]);const _=b&&!y&&(null===(u=null==a?void 0:a.form)||void 0===u?void 0:u.form),k=(0,n.useRef)(null),N=(0,n.useRef)(null),[E,j]=(0,n.useState)(null),[S,C]=(0,n.useState)(!1),T=(0,n.useCallback)(()=>{const e=k.current,t=m.current;if(!e||!t||!_)return j(null),void C(!1);const n=e.getBoundingClientRect();if("undefined"!=typeof window&&window.innerWidth<=991)return C(!0),void j({top:0,left:0,width:n.width,height:n.height});C(!1);const r=t.querySelector(".cb2026-avg-weekly-cells-group");if(!r)return void j(null);const a=r.getBoundingClientRect();j({top:a.top-n.top,left:a.left-n.left,width:a.width,height:a.height})},[_]);(0,n.useEffect)(()=>{if(!_)return j(null),void C(!1);const e=requestAnimationFrame(T),t=new ResizeObserver(T);return k.current&&t.observe(k.current),m.current&&t.observe(m.current),window.addEventListener("resize",T),()=>{cancelAnimationFrame(e),t.disconnect(),window.removeEventListener("resize",T)}},[_,T]),(0,n.useEffect)(()=>{var e,t,n;const r=p.current,a=m.current;if(!r||!a)return;const s=()=>{const e=v.current;e&&(e.resizeObserver&&e.resizeObserver.disconnect(),e.resizeDebounceId&&clearTimeout(e.resizeDebounceId),e.tooltip&&e.tooltip.remove(),e.svgRoot&&e.svgRoot.remove(),v.current=null)};if(!(null===(e=null==g?void 0:g.data)||void 0===e?void 0:e.length))return void s();const{brandCategories:i,spendTiers:o}=g,l=g.data,c=fy("body").append("div").attr("class","cb2026-avg-weekly-testing-volume-tooltip").style("opacity",0).style("position","fixed").style("text-align","left").style("padding","12px 16px").style("font-size","13px").style("font-family",'"Inter",-apple-system,BlinkMacSystemFont,sans-serif').style("line-height","1.6").style("background","linear-gradient(135deg, #8B86F3 0%, #6B5DD3 100%)").style("color","#ffffff").style("border-radius","12px").style("box-shadow","0 8px 24px rgba(107, 93, 211, 0.35)").style("border","1p
2x solid rgba(255, 255, 255, 0.15)").style("backdrop-filter","blur(8px)").style("pointer-events","none").style("z-index","9999"),u=oy().domain([0,40]).range(["#D8D6FA","#5047EB"]).clamp(!0);function d(){var e;if(!a)return;const t=Mb().domain(o).range([0,767]).padding(0),n=Mb().domain(i).range([0,331]).padding(0);let r=null===(e=v.current)||void 0===e?void 0:e.svgRoot;r||(r=fy(a).append("svg").attr("preserveAspectRatio","xMinYMin meet").style("width","100%").style("height","auto").style("display","block"),v.current||(v.current={tooltip:c,svgRoot:null,resizeObserver:void 0,resizeDebounceId:void 0}),v.current.svgRoot=r),r.attr("viewBox","0 0 981 451").attr("width","100%").attr("height","auto");const s=r.select("g.cb2026-avg-weekly-heatmap-g");let h;h=s.empty()?r.append("g").attr("class","cb2026-avg-weekly-heatmap-g").attr("transform","translate(190,60)"):s.attr("transform","translate(190,60)");let p=h.select("defs");if(p.empty()){p=h.append("defs");const e=p.append("linearGradient").attr("id","cb2026-avg-weekly-legend-gradient").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color","#D8D6FA"),e.append("stop").attr("offset","100%").attr("stop-color","#5047EB")}let m=h.select("rect.cb2026-avg-weekly-legend");m.empty()&&(m=h.append("rect").attr("class","cb2026-avg-weekly-legend").attr("rx",6).attr("ry",6)),m.attr("x",283.5).attr("y",-45).attr("width",200).attr("height",8).attr("fill","url(#cb2026-avg-weekly-legend-gradient)"),h.selectAll("text.cb2026-avg-weekly-legend-label").empty()&&(h.append("text").attr("class","cb2026-avg-weekly-legend-label").attr("dominant-baseline","middle").attr("text-anchor","end").text("0"),h.append("text").attr("class","cb2026-avg-weekly-legend-label").attr("dominant-baseline","middle").attr("text-anchor","start").text("40"),h.append("text").attr("class","cb2026-avg-weekly-legend-label").attr("text-anchor","middle").text("Avr creatives per week")),h.selectAll("text.cb2026-avg-weekly-legend-label").each(function(e,t){const n=fy(this);0===t?n.attr("x",268.5).attr("y",-41):1===t?n.attr("x",498.5).attr("y",-41):n.attr("x",383.5).attr("y",-21)});let g=h.select("g.cb2026-avg-weekly-cells-group");g.empty()&&(g=h.append("g").attr("class","cb2026-avg-weekly-cells-group")),g.selectAll("rect.cb2026-avg-weekly-cell").data(l,e=>`${e.brandCategory}|${e.spendTier}`).join("rect").attr("class","cb2026-avg-weekly-cell").attr("x",e=>{var n;return null!==(n=t(e.spendTier))&&void 0!==n?n:0}).attr("y",e=>{var t;return null!==(t=n(e.brandCategory))&&void 0!==t?t:0}).attr("width",t.bandwidth()).attr("height",n.bandwidth()).attr("fill",e=>Xy(e)?"#D8D7F3":u(Math.min(e.value,40))).style("cursor","pointer").on("mouseover",function(e,t){if(_)return;c.interrupt(),f.current=!0;const n=this.getBoundingClientRect(),r=c.node();if(!r)return;Xy(t)?c.html("*Intersection has been excluded due to limited data"):c.html(`<strong>${t.brandCategory}</strong><br/><strong>Tier:</strong> ${t.spendTier}<br/><strong>Avg Creatives/Week:</strong> ${t.value.toFixed(1)}`);const a=r.offsetWidth,s=r.offsetHeight;c.style("opacity",1).style("left",n.left+n.width/2-a/2+"px").style("top",n.top-s-12+"px")}).on("mouseout",function(){f.current=!1,c.transition().duration(200).style("opacity",0);const e=v.current;(null==e?void 0:e.pendingLayout)&&(e.pendingLayout=!1,d())}),g.selectAll("text.cb2026-avg-weekly-cell-text").data(l,e=>`${e.brandCategory}|${e.spendTier}`).join("text").attr("class","cb2026-avg-weekly-cell-text").attr("x",e=>{var n;return(null!==(n=t(e.spendTier))&&void 0!==n?n:0)+t.bandwidth()/2}).attr("y",e=>{var t;return(null!==(t=n(e.brandCategory))&&void 0!==t?t:0)+n.bandwidth()/2}).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("fill",e=>_||Xy(e)?"#666":function(e){const t=yg(u(Math.min(e,40)));return.299*t.r+.587*t.g+.114*t.b>140?"#000":"#fff"}(e.value)).text(e=>_?"xxx":Xy(e)?"*":e.value.toFixed(1));const b=Qm(t).tickSize(0).tickPadding(20);let y=h.select("g.cb2026-avg-weekly-x-axis");y.empty()&&(y=h.append("g").attr("class","cb2026-avg-weekly-x-axis")),y.attr("transform","translate(0,331)").call(b),y.select(".domain").remove();let x=h.select("text.cb2026-avg-weekly-x-label");x.empty()&&(x=h.append("text").attr("class","cb2026-avg-weekly-x-label")),x.attr("text-anchor","middle").attr("x",383.5).attr("y",386).text("Size of advertiser by spend per month");const w=Xm(n).tickSize(0).tickPadding(20);let k=h.select("g.cb2026-avg-weekly-y-axis");k.empty()&&(k=h.append("g").attr("class","cb2026-avg-weekly-y-axis")),k.call(w),k.select(".domain").remove(),k.selectAll("text").attr("text-anchor","start").attr("x",-150);let N=h.select("text.cb2026-avg-weekly-y-label");N.empty()&&(N=h.append("text").attr("class","cb2026-avg-weekly-y-label")),N.attr("text-anchor","middle").attr("transform","rotate(-90)").attr("x",-175).attr("y",-175).text("Industry vertical")}v.current={tooltip:c,svgRoot:null!==(n=null===(t=v.current)||void 0===t?void 0:t.svgRoot)&&void 0!==n?n:null,resizeObserver:void 0,resizeDebounceId:void 0,pendingLayout:!1,render:d},d();const h=new ResizeObserver(()=>(()=>{const e=v.current;e&&(e.resizeDebounceId&&clearTimeout(e.resizeDebounceId),e.resizeDebounceId=setTimeout(()=>{e.resizeDebounceId&&(e.resizeDebounceId=void 0),f.current?e.pendingLayout=!0:d()},220))})());return h.observe(a),v.current.resizeObserver=h,()=>{s()}},[g,_]);const A=null!==(d=null==a?void 0:a.title)&&void 0!==d?d:"Average weekly testing volume by industry vertical",L=null!==(h=null==a?void 0:a.subtitle)&&void 0!==h?h:void 0;return t?(0,s.jsx)("section",{className:"cb2026-avg-weekly-testing-volume",ref:p,children:(0,s.jsx)("div",{className:"cb2026-avg-weekly-testing-volume__status",children:"Loading chart data…"})}):r?(0,s.jsx)("section",{className:"cb2026-avg-weekly-testing-volume",ref:p,children:(0,s.jsxs)("div",{className:"cb2026-avg-weekly-testing-volume__status",children:["Failed to load chart: ",r.message]})}):(0,s.jsxs)("section",{className:"cb2026-avg-weekly-testing-volume",ref:p,children:[(0,s.jsxs)("div",{className:"cb2026-avg-weekly-testing-volume__header",children:[(0,s.jsx)("h2",{className:"cb2026-avg-weekly-testing-volume__title",children:A}),(0,s.jsx)("p",{className:"cb2026-avg-weekly-testing-volume__subhead",children:L})]}),(0,s.jsx)("div",{className:"cb2026-avg-weekly-testing-volume__body",children:(0,s.jsxs)("div",{ref:k,className:"cb2026-avg-weekly-testing-volume__scroll-content",children:[(0,s.jsx)("div",{ref:N,className:`cb2026-avg-weekly-testing-volume__heatmap-wrapper ${_&&!S?"cb2026-avg-weekly-testing-volume__heatmap-wrapper--gated":""} ${S?"cb2026-avg-weekly-testing-volume__heatmap-wrapper--mobile-gated":""}`,children:(0,s.jsx)("div",{className:"cb2026-avg-weekly-testing-volume__chart",ref:m})}),_&&E&&(0,s.jsx)("div",{className:"cb2026-avg-weekly-testing-volume__gate-overlay",style:{to
2p:E.top,left:E.left,width:E.width,height:E.height},children:(0,s.jsx)("div",{className:"cb2026-avg-weekly-testing-volume__gate-form",children:(0,s.jsx)(Nl,{baseUrl:i,block:a.form.form,onSuccess:()=>x(!0)})})})]})})]})},ex={headers:[{field:"spendTier",label:"Spend tier"},{field:"allAccountsCreativeVolume",label:"All accounts creative volume"},{field:"top25CreativeVolume",label:"Top 25% creative volume"},{field:"allAccountsWinnersPerMonth",label:"All accounts winners/month"},{field:"top25WinnersPerMonth",label:"Top 25% winners/month"}],rows:[{spendTier:"Micro (<$10K)",allAccountsCreativeVolume:2.8,top25CreativeVolume:4.83,allAccountsWinnersPerMonth:0,top25WinnersPerMonth:0},{spendTier:"Small ($10K - $50k)",allAccountsCreativeVolume:4.1,top25CreativeVolume:8.09,allAccountsWinnersPerMonth:.25,top25WinnersPerMonth:.5},{spendTier:"Medium ($50K - $200K)",allAccountsCreativeVolume:6.67,top25CreativeVolume:15.95,allAccountsWinnersPerMonth:.75,top25WinnersPerMonth:2},{spendTier:"Large ($200K - $1M)",allAccountsCreativeVolume:11.24,top25CreativeVolume:31.11,allAccountsWinnersPerMonth:1.75,top25WinnersPerMonth:5.99},{spendTier:"Enterprise ($1M+)",allAccountsCreativeVolume:18.85,top25CreativeVolume:54.64,allAccountsWinnersPerMonth:3.99,top25WinnersPerMonth:10.48}]};i(3820);const tx=["All accounts creative volume","Top 25% creative volume","All accounts winners/month","Top 25% winners/month"],nx=["allAccountsCreativeVolume","top25CreativeVolume","allAccountsWinnersPerMonth","top25WinnersPerMonth"];function rx(e,t){return null==e?"—":"number"==typeof e?e.toFixed(2):String(e)}function ax(e){var t,n,r;return tx.includes(null!==(n=null===(t=e.label)||void 0===t?void 0:t.trim())&&void 0!==n?n:"")||nx.includes(null!==(r=e.field)&&void 0!==r?r:"")}const sx=({json:e,loading:t,error:r,chart:a,baseUrl:i=""})=>{var o,l,c,u,d,h;const p=(0,n.useMemo)(()=>{const t=function(e){if(!e||"object"!=typeof e)return null;const t=e,n=t.rows,r=t.headers;return Array.isArray(n)&&Array.isArray(r)&&0!==n.length&&0!==r.length?{rows:n,headers:r}:null}(e);return null!=t?t:ex},[e]),m=(0,n.useMemo)(()=>{var e,t;return!(!(null===(e=null==a?void 0:a.gated_by)||void 0===e?void 0:e.documentId)||!(null===(t=null==a?void 0:a.form)||void 0===t?void 0:t.form))},[null===(o=null==a?void 0:a.gated_by)||void 0===o?void 0:o.documentId,null===(l=null==a?void 0:a.form)||void 0===l?void 0:l.form]),[f,v]=(0,n.useState)(()=>{var e;return!m||!(null===(e=null==a?void 0:a.gated_by)||void 0===e?void 0:e.documentId)||dl.isIdentityUnlocked(a.gated_by.documentId)}),g=null===(c=null==a?void 0:a.gated_by)||void 0===c?void 0:c.documentId;(0,n.useEffect)(()=>{if(!m||!g)return;const e=e=>{var t,n;const r=e.detail,a=null!==(n=null===(t=null==r?void 0:r.unlockedIdentityDocumentIds)||void 0===t?void 0:t.includes(g))&&void 0!==n&&n;v(a||dl.isIdentityUnlocked(g))};return v(dl.isIdentityUnlocked(g)),window.addEventListener(ul,e),()=>window.removeEventListener(ul,e)},[m,g]);const b=(0,n.useMemo)(()=>!!(null==p?void 0:p.headers)&&p.headers.some(e=>ax(e)),[null==p?void 0:p.headers]),y=m&&!f&&p&&(null===(u=null==a?void 0:a.form)||void 0===u?void 0:u.form)&&b,x=(0,n.useRef)(null),w=(0,n.useRef)(null),_=(0,n.useRef)(null),k=(0,n.useRef)(null),N=(0,n.useRef)(null),[E,j]=(0,n.useState)(null),[S,C]=(0,n.useState)(!1),T=(0,n.useCallback)(()=>{const e=x.current;if(!e||!y)return j(null),void C(!1);const t=e.getBoundingClientRect();if("undefined"!=typeof window&&window.innerWidth<=991){C(!0);const n=e.parentElement;if(n){const e=n.getBoundingClientRect();j({top:0,left:0,width:e.width,height:e.height})}else j({top:0,left:0,width:t.width,height:t.height});return}C(!1);const n=w.current,r=_.current,a=k.current,s=N.current;if(!(n&&r&&a&&s))return void j(null);const i=n.getBoundingClientRect(),o=r.getBoundingClientRect(),l=a.getBoundingClientRect(),c=s.getBoundingClientRect();j({top:l.top-t.top,left:i.left-t.left,width:o.right-i.left,height:c.bottom-l.top})},[y]);if((0,n.useEffect)(()=>{var e;if(!y)return j(null),void C(!1);const t=requestAnimationFrame(T),n=new ResizeObserver(T);x.current&&n.observe(x.current),window.addEventListener("resize",T),window.addEventListener("orientationchange",T);const r=null===(e=x.current)||void 0===e?void 0:e.parentElement;return null==r||r.addEventListener("scroll",T),()=>{cancelAnimationFrame(t),n.disconnect(),window.removeEventListener("resize",T),window.removeEventListener("orientationchange",T),null==r||r.removeEventListener("scroll",T)}},[y,T]),t)return(0,s.jsx)("div",{className:"cb2026-top-advertiser-volume cb2026-top-advertiser-volume--loading",children:(0,s.jsx)("div",{className:"cb2026-top-advertiser-volume__status",children:"Loading chart data…"})});if(r)return(0,s.jsx)("div",{className:"cb2026-top-advertiser-volume cb2026-top-advertiser-volume--error",children:(0,s.jsxs)("div",{className:"cb2026-top-advertiser-volume__status",children:["Failed to load chart: ",r.message]})});if(!p)return(0,s.jsx)("div",{className:"cb2026-top-advertiser-volume cb2026-top-advertiser-volume--empty",children:(0,s.jsx)("div",{className:"cb2026-top-advertiser-volume__status",children:"No data available"})});const{rows:A,headers:L}=p,I=L.map((e,t)=>ax(e)?t:-1).filter(e=>e>=0),M=null!==(d=I[0])&&void 0!==d?d:-1,P=null!==(h=I[I.length-1])&&void 0!==h?h:-1;return(0,s.jsx)("div",{className:"cb2026-top-advertiser-volume",children:(0,s.jsx)("div",{className:"cb2026-top-advertiser-volume__table-wrapper "+(S?"cb2026-top-advertiser-volume__table-wrapper--mobile-gated":""),children:(0,s.jsxs)("div",{ref:x,className:"cb2026-top-advertiser-volume__scroll-content",children:[(0,s.jsxs)("table",{className:"cb2026-top-advertiser-volume__table",children:[(0,s.jsx)("thead",{children:(0,s.jsx)("tr",{children:L.map((e,t)=>(0,s.jsx)("th",{ref:y&&t===M?e=>{w.current=e}:y&&t===P?e=>{_.current=e}:void 0,scope:"col",className:y&&(ax(e)||S)?"cb2026-top-advertiser-volume__th--gated":"",children:e.label},e.field))})}),(0,s.jsx)("tbody",{children:A.map((e,t)=>(0,s.jsx)("tr",{children:L.map((n,r)=>(0,s.jsx)("td",{ref:y&&0===t&&r===M?e=>{k.current=e}:y&&t===A.length-1&&r===P?e=>{N.current=e}:void 0,"data-field":n.field,className:y&&(ax(n)||S)?"cb2026-top-advertiser-volume__cell--gated":"",children:y&&(ax(n)||S)?"xxx":rx(e[n.field],n.field)},n.field))},t))})]}),y&&E&&(0,s.jsx)("div",{className:"cb2026-top-advertiser-volume__gate-overlay",style:{to
2p:E.top,left:E.left,width:E.width,height:E.height},children:(0,s.jsx)("div",{className:"cb2026-top-advertiser-volume__gate-form",children:(0,s.jsx)(Nl,{baseUrl:i,block:a.form.form,onSuccess:()=>v(!0)})})})]})})})},ix=[{label:"Offer-first banner",winners:11006,evergreens:39448,hitRatePercent:8.68}],ox=[{label:"Celebrity",percentCreatives:.86,percentSpend:1.87,spendUseRatio:2.17}];function lx(e){const t="number"==typeof e?e:Number(e);return Number.isFinite(t)?t:null}function cx(e,t=!1){return null==e?"—":"number"==typeof e?t?e.toFixed(2):e%1==0?String(e):e.toFixed(2):String(e)}function ux({data:e,labelName:t}){return(0,s.jsx)("div",{className:"cb2026-hit-rate-spend-use__table-container",children:(0,s.jsx)("div",{className:"cb2026-hit-rate-spend-use__scroll-content",children:(0,s.jsxs)("table",{className:"cb2026-hit-rate-spend-use__table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"cb2026-hit-rate-spend-use__th--visual-format",children:t}),(0,s.jsx)("th",{children:"Winners"}),(0,s.jsx)("th",{children:"Mid-range"}),(0,s.jsx)("th",{children:"Hit rate (%)"})]})}),(0,s.jsx)("tbody",{children:e.map((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"cb2026-hit-rate-spend-use__td--visual-format",children:e.label}),(0,s.jsx)("td",{children:cx(e.winners)}),(0,s.jsx)("td",{children:cx(e.evergreens)}),(0,s.jsx)("td",{children:cx(e.hitRatePercent,!0)})]},t))})]})})})}function dx({data:e,labelName:t}){return(0,s.jsx)("div",{className:"cb2026-hit-rate-spend-use__table-container",children:(0,s.jsx)("div",{className:"cb2026-hit-rate-spend-use__scroll-content",children:(0,s.jsxs)("table",{className:"cb2026-hit-rate-spend-use__table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"cb2026-hit-rate-spend-use__th--visual-format",children:t}),(0,s.jsx)("th",{children:"% Creatives"}),(0,s.jsx)("th",{children:"% Spend"}),(0,s.jsx)("th",{children:"Spend use ratio"})]})}),(0,s.jsx)("tbody",{children:e.map((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"cb2026-hit-rate-spend-use__td--visual-format",children:e.label}),(0,s.jsx)("td",{children:cx(e.percentCreatives,!0)}),(0,s.jsx)("td",{children:cx(e.percentSpend,!0)}),(0,s.jsx)("td",{children:cx(e.spendUseRatio,!0)})]},t))})]})})})}i(4216);const hx=({json:e,loading:t,error:r,chart:a})=>{const[i,o]=(0,n.useState)("hitRate"),l=(0,n.useMemo)(()=>function(e){var t,n,r,a;if(!e||"object"!=typeof e)return null;const s=e,i=null!==(t=s.hitRate)&&void 0!==t?t:s.hit_rate,o=null!==(n=s.spendUse)&&void 0!==n?n:s.spend_use,l=null!==(a=null!==(r=s.labelName)&&void 0!==r?r:s.label_name)&&void 0!==a?a:"",c=Array.isArray(i)?function(e){const t=e.map(e=>{var t;const n=e,r="string"==typeof(null==n?void 0:n.label)||"string"==typeof(null==n?void 0:n.label)?n.label:"",a=lx(null==n?void 0:n.winners),s=lx(null==n?void 0:n.evergreens),i=lx(null!==(t=null==n?void 0:n.hitRatePercent)&&void 0!==t?t:null==n?void 0:n.hit_rate_percent);return r&&null!=a&&null!=s&&null!=i?{label:r,winners:a,evergreens:s,hitRatePercent:i}:null}).filter(e=>null!=e);return t.length>0?t:null}(i):null,u=Array.isArray(o)?function(e){const t=e.map(e=>{var t,n,r;const a=e,s="string"==typeof(null==a?void 0:a.label)||"string"==typeof(null==a?void 0:a.label)?a.label:"",i=lx(null!==(t=null==a?void 0:a.percentCreatives)&&void 0!==t?t:null==a?void 0:a.percent_creatives),o=lx(null!==(n=null==a?void 0:a.percentSpend)&&void 0!==n?n:null==a?void 0:a.percent_spend),l=lx(null!==(r=null==a?void 0:a.spendUseRatio)&&void 0!==r?r:null==a?void 0:a.spend_use_ratio);return s&&null!=i&&null!=o&&null!=l?{label:s,percentCreatives:i,percentSpend:o,spendUseRatio:l}:null}).filter(e=>null!=e);return t.length>0?t:null}(o):null;return c||u?Object.assign(Object.assign({labelName:l},c&&{hitRate:c}),u&&{spendUse:u}):null}(e),[e]),c=(0,n.useMemo)(()=>{var e;return null!==(e=null==l?void 0:l.hitRate)&&void 0!==e?e:ix},[null==l?void 0:l.hitRate]),u=(0,n.useMemo)(()=>{var e;return null!==(e=null==l?void 0:l.spendUse)&&void 0!==e?e:ox},[null==l?void 0:l.spendUse]),d=(0,n.useMemo)(()=>{var e;return null!==(e=null==l?void 0:l.labelName)&&void 0!==e?e:"Label"},[null==l?void 0:l.labelName]);return t?(0,s.jsx)("div",{className:"cb2026-hit-rate-spend-use cb2026-hit-rate-spend-use--loading",children:(0,s.jsx)("div",{className:"cb2026-hit-rate-spend-use__status",children:"Loading chart data…"})}):r?(0,s.jsx)("div",{className:"cb2026-hit-rate-spend-use cb2026-hit-rate-spend-use--error",children:(0,s.jsxs)("div",{className:"cb2026-hit-rate-spend-use__status",children:["Failed to load chart: ",r.message]})}):(0,s.jsxs)("div",{className:"cb2026-hit-rate-spend-use",children:[(0,s.jsxs)("div",{className:"cb2026-hit-rate-spend-use__toggle-row",children:[(0,s.jsx)("button",{type:"button",className:"cb2026-hit-rate-spend-use__toggle-label",onClick:()=>o("hitRate"),"aria-pressed":"hitRate"===i,children:"Hit rate"}),(0,s.jsx)("button",{type:"button",className:"cb2026-hit-rate-spend-use__toggle",onClick:()=>
2o("hitRate"===i?"spendUse":"hitRate"),"aria-label":"Switch to "+("hitRate"===i?"Spend use":"Hit rate"),children:(0,s.jsx)("span",{className:"cb2026-hit-rate-spend-use__toggle-track","aria-hidden":!0,children:(0,s.jsx)("span",{className:"cb2026-hit-rate-spend-use__toggle-thumb "+("hitRate"===i?"cb2026-hit-rate-spend-use__toggle-thumb--left":"cb2026-hit-rate-spend-use__toggle-thumb--right")})})}),(0,s.jsx)("button",{type:"button",className:"cb2026-hit-rate-spend-use__toggle-label",onClick:()=>o("spendUse"),"aria-pressed":"spendUse"===i,children:"Spend use"})]}),(0,s.jsx)("div",{className:"cb2026-hit-rate-spend-use__table-wrapper",children:"hitRate"===i?(0,s.jsx)(ux,{data:c,labelName:d}):(0,s.jsx)(dx,{data:u,labelName:d})})]})};function px(e,t=!1){return null==e?"—":"number"==typeof e?t?e.toFixed(2):e%1==0?String(e):e.toFixed(2):String(e)}function mx({item:e,baseUrl:t,title:r,className:a}){const[i,o]=(0,n.useState)(!1);if("image"===e.type){const n=e.url.startsWith("http")||e.url.startsWith("/")?e.url:`${t}${e.url}`;return(0,s.jsxs)("div",{className:a,children:[r&&(0,s.jsx)("div",{className:"cb2026-chart10__media-label",children:(0,s.jsx)("span",{className:"cb2026-chart10__media-label-text",children:r})}),(0,s.jsx)("img",{src:n,alt:"",className:"cb2026-chart10__media-img "+(i?"cb2026-chart10__media-img--ready":""),onLoad:()=>o(!0)})]})}if("video"===e.type&&e.url){const n=e.url.startsWith("http")||e.url.startsWith("/")?e.url:`${t}${e.url}`;return(0,s.jsxs)("div",{className:a,children:[r&&(0,s.jsx)("div",{className:"cb2026-chart10__media-label",children:(0,s.jsx)("span",{className:"cb2026-chart10__media-label-text",children:r})}),(0,s.jsx)("div",{className:"cb2026-chart10__media-video "+(i?"cb2026-chart10__media-video--ready":""),children:(0,s.jsx)("video",{src:n,muted:!0,loop:!0,playsInline:!0,autoPlay:!0,className:"cb2026-chart10__media-video-el",onCanPlay:()=>o(!0)})})]})}return null}i(3720);const fx=({json:e,loading:t,error:r,baseUrl:a=""})=>{var i,o,l;
2const[c,u]=(0,n.useState)("hitRate"),[d,h]=(0,n.useState)(0),p=(0,n.useMemo)(()=>function(e){if(!e||"object"!=typeof e)return null;const t=e.industries;return Array.isArray(t)&&0!==t.length?{industries:t}:null}(e),[e]);(0,n.useEffect)(()=>{if(!p)return;const e=function(e,t){var n,r,a,s,i;if(!(null===(n=null==e?void 0:e.industries)||void 0===n?void 0:n.length))return[];const o=[];for(const n of e.industries){for(const e of null!==(a=null===(r=n.hitRate)||void 0===r?void 0:r.rows)&&void 0!==a?a:[]){const n=e.media;"image"===(null==n?void 0:n.type)&&n.url&&o.push(n.url.startsWith("http")||n.url.startsWith("/")?n.url:`${t}${n.url}`)}for(const e of null!==(i=null===(s=n.spendUse)||void 0===s?void 0:s.rows)&&void 0!==i?i:[]){const n=e.media;"image"===(null==n?void 0:n.type)&&n.url&&o.push(n.url.startsWith("http")||n.url.startsWith("/")?n.url:`${t}${n.url}`)}}return Array.from(new Set(o))}(p,a);e.length>0&&function(e){e.forEach(e=>{(new Image).src=e})}(e)},[p,a]);const m=null!==(o=null===(i=null==p?void 0:p.industries)||void 0===i?void 0:i[d])&&void 0!==o?o:null,f=(0,n.useMemo)(()=>{var e,t,n,r,a,s;return m?"hitRate"===c?null!==(n=null===(t=null===(e=m.hitRate)||void 0===e?void 0:e.rows)||void 0===t?void 0:t.slice(0,10))&&void 0!==n?n:[]:null!==(s=null===(a=null===(r=m.spendUse)||void 0===r?void 0:r.rows)||void 0===a?void 0:a.slice(0,10))&&void 0!==s?s:[]:[]},[m,c]),v=(0,n.useMemo)(()=>{var e,t,n,r;return[...("hitRate"===c?null!==(t=null===(e=null==m?void 0:m.hitRate)||void 0===e?void 0:e.rows)&&void 0!==t?t:[]:null!==(r=null===(n=null==m?void 0:m.spendUse)||void 0===n?void 0:n.rows)&&void 0!==r?r:[]).filter(e=>{const t=e.media;return t&&("image"===t.type||"video"===t.type)&&t.url}).slice(0,3)].reverse()},[m,c]);return t?(0,s.jsx)("div",{className:"cb2026-chart10 cb2026-chart10--loading",children:(0,s.jsx)("div",{className:"cb2026-chart10__status",children:"Loading chart data…"})}):r?(0,s.jsx)("div",{className:"cb2026-chart10 cb2026-chart10--error",children:(0,s.jsxs)("div",{className:"cb2026-chart10__status",children:["Failed to load chart: ",r.message]})}):(null===(l=null==p?void 0:p.industries)||void 0===l?void 0:l.length)?(0,s.jsx)("div",{className:"cb2026-chart10",children:(0,s.jsxs)("div",{className:"cb2026-chart10__layout",children:[(0,s.jsxs)("div",{className:"cb2026-chart10__media-section",children:[(0,s.jsx)("div",{className:"cb2026-chart10__gradient","aria-hidden":!0}),(0,s.jsx)("div",{className:"cb2026-chart10__media-stack",children:v.map((e,t)=>{var n;const r=e.media;if(!r)return null;const i=null!==(n=e.visualFormat)&&void 0!==n?n:void 0;return(0,s.jsx)(mx,{item:r,baseUrl:a,title:i,className:"cb2026-chart10__media-item cb2026-chart10__media-item--"+(0===t?"stagger-middle":1===t?"stagger-down":"stagger-up")},`${c}-${null==m?void 0:m.id}-${t}-${i}`)})})]}),(0,s.jsxs)("div",{className:"cb2026-chart10__table-section",children:[(0,s.jsxs)("div",{className:"cb2026-chart10__controls",children:[(0,s.jsxs)("div",{className:"cb2026-chart10__industry-row",children:[(0,s.jsx)("span",{className:"cb2026-chart10__industry-label",children:"Industry"}),(0,s.jsxs)("div",{className:"cb2026-chart10__industry-select-wrapper",children:[(0,s.jsx)("select",{className:"cb2026-chart10__industry-select",value:d,onChange:e=>h(Number(e.target.value)),"aria-label":"Select industry",children:p.industries.map((e,t)=>(0,s.jsx)("option",{value:t,children:e.label},e.id))}),(0,s.jsx)("svg",{className:"cb2026-chart10__industry-chevron",width:"7",height:"4",viewBox:"0 0 7 4",fill:"none","aria-hidden":!0,children:(0,s.jsx)("path",{d:"M7 0L3.5 4L0 0",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})]})]}),(0,s.jsxs)("div",{className:"cb2026-chart10__toggle-row",children:[(0,s.jsx)("span",{className:"cb2026-chart10__toggle-label",children:"Hit rate"}),(0,s.jsx)("button",{type:"button",className:"cb2026-chart10__toggle",onClick:()=>u("hitRate"===c?"spendUse":"hitRate"),"aria-label":"Switch to "+("hitRate"===c?"Spend use":"Hit rate"),children:(0,s.jsx)("span",{className:"cb2026-chart10__toggle-track",children:(0,s.jsx)("span",{className:"cb2026-chart10__toggle-thumb "+("hitRate"===c?"cb2026-chart10__toggle-thumb--left":"cb2026-chart10__toggle-thumb--right")})})}),(0,s.jsx)("span",{className:"cb2026-chart10__toggle-label",children:"Spend use"})]})]}),(0,s.jsx)("div",{className:"cb2026-chart10__table-wrapper",children:(0,s.jsxs)("table",{className:"cb2026-chart10__table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"cb2026-chart10__th--visual",children:"Visual format"}),(0,s.jsx)("th",{className:"cb2026-chart10__th--metric",children:"hitRate"===c?"Hit rate (%)":"Spend use ratio"})]})}),(0,s.jsx)("tbody",{children:f.map((e,t)=>{var n;return(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"cb2026-chart10__td--visual",children:null!==(n=e.visualFormat)&&void 0!==n?n:"—"}),(0,s.jsx)("td",{className:"cb2026-chart10__td--metric",children:px("hitRate"===c?e.hitRatePercent:e.spendUseRatio,!0)})]},t)})})]})})]})]})}):(0,s.jsx)("div",{className:"cb2026-chart10 cb2026-chart10--empty",children:(0,s.jsx)("div",{className:"cb2026-chart10__status",children:"No chart data available."})})},vx=({block:e,baseUrl:t})=>{var r,a,i,o,l,c,d,h,p,m,f,v,b,y,x,w,_,k;const N=null!==(a=null===(r=e.chart)||void 0===r?void 0:r.name)&&void 0!==a?a:"",j=null!==(o=null===(i=e.chart)||void 0===i?void 0:i.documentId)&&void 0!==o?o:"",S=null!==(l=e.name)&&void 0!==l?l:"",C=`${N?`${N} - `:""}${null!=S?S:""}`.trim(),{chart:T,loading:A,error:L}=function(e){var t;const{chartDocumentId:r,enabled:a=!0}=e,s=E(e.baseUrl),i=null!==(t=e.status)&&void 0!==t?t:g()?"published":"draft",o=(0,n.useMemo)(()=>
2a&&!!r,[a,r]),[l,c]=(0,n.useState)({chart:null,loading:o,error:null});return(0,n.useEffect)(()=>{if(!o)return void c({chart:null,loading:!1,error:null});if(!u())return;const e=new AbortController;return c(e=>Object.assign(Object.assign({},e),{loading:!0,error:null})),(()=>{var t,n,a,o;t=this,n=void 0,o=function*(){try{const t=yield Fm.fetchChartByDocumentId({baseUrl:s,documentId:r,status:i});if(e.signal.aborted)return;c({chart:t,loading:!1,error:null})}catch(t){if(e.signal.aborted)return;c({chart:null,loading:!1,error:t instanceof Error?t:new Error("Failed to hydrate chart")})}},new((a=void 0)||(a=Promise))(function(e,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function i(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:new a(function(t){t(e)})}(t.value).then(s,i)}l((o=o.apply(t,n||[])).next())})})(),()=>{e.abort()}},[s,r,o,i]),l}({baseUrl:t,chartDocumentId:j||null,enabled:!!j});if(!N)return(0,s.jsx)("div",{className:"shared-chart shared-chart-placeholder",children:(0,s.jsxs)("div",{className:"shared-chart-placeholder__inner",children:[(0,s.jsx)("div",{className:"shared-chart-placeholder__title",children:"CHART PLACEHOLDER"}),(0,s.jsxs)("div",{className:"shared-chart-placeholder__subtitle",children:["Missing ",(0,s.jsx)("code",{children:"blocks.chart.name"})," (or chart not populated)"]}),(0,s.jsxs)("div",{className:"shared-chart-placeholder__meta",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"block.id"}),": ",e.id]}),!!S&&(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"block.name"}),": ",S]}),!!j&&(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"chart.documentId"}),": ",j]})]})]})});switch(N){case"creative-benchmarks-2026-volume-and-outliers":return(0,s.jsx)(Ay,{json:null===(c=null==T?void 0:T.data)||void 0===c?void 0:c.json,loading:A,error:L,chart:null!=T?T:void 0});case"creative-benchmarks-2026-many-ads-spend":return(0,s.jsx)(Oy,{json:null===(d=null==T?void 0:T.data)||void 0===d?void 0:d.json,loading:A,error:L,chart:null!=T?T:void 0});case"creative-benchmarks-2026-testing-volume-hit-rate":case"creative-benchmarks-2026-creative-volume-by-spend-tier":return(0,s.jsx)($y,{json:null===(h=null==T?void 0:T.data)||void 0===h?void 0:h.json,loading:A,error:L,chart:null!=T?T:void 0,baseUrl:t});case"creative-benchmarks-2026-winning-ads-make-up":return(0,s.jsx)(Gy,{json:null===(p=null==T?void 0:T.data)||void 0===p?void 0:p.json,loading:A,error:L,chart:null!=T?T:void 0});case"creative-benchmarks-2026-ad-spend-shifts":return(0,s.jsx)(Qy,{json:null===(m=null==T?void 0:T.data)||void 0===m?void 0:m.json,loading:A,error:L,chart:null!=T?T:void 0});case"creative-benchmarks-2026-average-weekly-testing-volume":return(0,s.jsx)(Zy,{json:null===(f=null==T?void 0:T.data)||void 0===f?void 0:f.json,loading:A,error:L,chart:null!=T?T:void 0,baseUrl:t});case"creative-benchmarks-2026-top-advertiser-volume":return(0,s.jsx)(sx,{json:null===(v=null==T?void 0:T.data)||void 0===v?void 0:v.json,loading:A,error:L,chart:null!=T?T:void 0,baseUrl:t});case"creative-benchmarks-2026-visual-format":return(0,s.jsx)(hx,{json:null===(b=null==T?void 0:T.data)||void 0===b?void 0:b.json,loading:A,error:L,chart:null!=T?T:void 0});case"creative-benchmarks-2026-chart-10":return(0,s.jsx)(fx,{json:null===(y=null==T?void 0:T.data)||void 0===y?void 0:y.json,loading:A,error:L,chart:null!=T?T:void 0,baseUrl:t});case"creative-benchmarks-2026-hook-headline-tactics":return(0,s.jsx)(hx,{json:null===(x=null==T?void 0:T.data)||void 0===x?void 0:x.json,loading:A,error:L,chart:null!=T?T:void 0});case"creative-benchmarks-2026-top-asset-types":return(0,s.jsx)(hx,{json:null===(w=null==T?void 0:T.data)||void 0===w?void 0:w.json,loading:A,error:L,chart:null!=T?T:void 0});default:return(0,s.jsx)("div",{className:"shared-chart shared-chart-placeholder",children:(0,s.jsxs)("div",{className:"shared-chart-placeholder__inner",children:[(0,s.jsx)("div",{className:"shared-chart-placeholder__title",children:"CHART PLACEHOLDER"}),(0,s.jsx)("div",{className:"shared-chart-placeholder__subtitle",children:"Waiting to hydrate / no client chart mapped for"}),(0,s.jsx)("div",{className:"shared-chart-placeholder__name",children:C||N}),(0,s.jsxs)("div",{className:"shared-chart-placeholder__meta",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"block.id"}),": ",e.id]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"chart.id"}),": ",null!==(k=null===(_=e.chart)||void 0===_?void 0:_.id)&&void 0!==k?k:"unknown"]}),!!j&&(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"chart.documentId"}),": ",j]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"hydration"}),":"," ",A?"fetching chart.data…":L?`failed (${L.message})`:T?T.data?"complete (chart.data populated)":"complete (no data relation)":"complete (chart not found)"]})]})]})})}},gx=({baseUrl:e,report:t,blocks:r,gated:a=!1,isGateSubmitted:i=!1}
2)=>{const[o,l]=(0,n.useState)([]),[c,u]=(0,n.useState)(!1);(0,n.useEffect)(()=>{const e=dl.getAllUnlockedIdentityDocumentIds();l(e),u(!0)},[]),(0,n.useEffect)(()=>{const e=e=>{const t=e,{unlockedIdentityDocumentIds:n}=t.detail;l(e=>{const t=new Set([...e,...n]);return Array.from(t)})};return window.addEventListener(ul,e),()=>{window.removeEventListener(ul,e)}},[]);const d=(0,n.useMemo)(()=>{if(i)return r;if(!a||!t.gate)return r;const e=r.findIndex(e=>"shared.fold"===e.__component);return-1===e?r:r.slice(0,e+1)},[r,a,t.gate,i]);return(0,s.jsx)("div",{className:"report-blocks",children:d.map(n=>{var r;switch(n.__component){case"shared.image":return(0,s.jsx)("div",{className:`report-block report-block-image ${n.class?n.class:""}`,children:(0,s.jsx)(hd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"shared.h1":return(0,s.jsx)("div",{className:"report-block report-block-h1",children:(0,s.jsx)(pd,{block:n})},`${n.__component}-${n.id}`);case"shared.h1-subhead":return(0,s.jsx)("div",{className:"report-block report-block-h1-subhead",children:(0,s.jsx)(T,{block:n})},`${n.__component}-${n.id}`);case"shared.authors":return(0,s.jsx)("div",{className:"report-block report-block-authors",children:(0,s.jsx)(_m,{baseUrl:e,block:n,authors:t.authors})},`${n.__component}-${n.id}`);case"shared.published-date":return(0,s.jsx)("div",{className:"report-block report-block-published-date",children:(0,s.jsx)(km,{block:n,report:t})},`${n.__component}-${n.id}`);case"shared.rich-text":return(0,s.jsx)("div",{className:`report-block report-block-rich-text ${n.class?n.class:""}`,children:(0,s.jsx)(Pl,{block:n})},`${n.__component}-${n.id}`);case"shared.subscribe":return(0,s.jsx)("div",{className:"report-block report-block-subscribe",children:(0,s.jsx)(Nm,{block:n})},`${n.__component}-${n.id}`);case"shared.quote":return(0,s.jsx)("div",{className:"report-block report-block-quote",children:(0,s.jsx)(Bd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"shared.flex-table":return(0,s.jsx)("div",{className:`report-block report-block-flex-table ${n.class?n.class:""}`,children:(0,s.jsx)(Em,{block:n})},`${n.__component}-${n.id}`);case"shared.code":return(0,s.jsx)("div",{className:"report-block report-block-code",children:(0,s.jsx)(jm,{block:n})},`${n.__component}-${n.id}`);case"shared.fold":default:return null;case"shared.animation":return(0,s.jsx)("div",{className:`event-block event-block-animation ${n.name?n.name:""}`,children:(0,s.jsx)(Ju,{block:n,baseUrl:e,gated:a})},`${n.__component}-${n.id}`);case"shared.chart":return(0,s.jsx)("div",{className:`report-block report-block-chart ${n.class?n.class:""} ${n.name?n.name:""}`,children:(0,s.jsx)(vx,{block:n,baseUrl:e})},`${n.__component}-${n.id}`);case"shared.demo-trial":return(0,s.jsx)("div",{className:`report-block report-block-demo-trial ${n.class?n.class:""}`,children:(0,s.jsx)($d,{baseUrl:e,block:n},`${n.__component}-${n.id}`)},`${n.__component}-${n.id}`);case"shared.image-gallery":return(0,s.jsx)("div",{className:`report-block report-block-image-gallery ${n.class?n.class:""}`,children:(0,s.jsx)(gd,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"shared.media-gallery":return(0,s.jsx)("div",{className:`report-block report-block-media-gallery ${n.class?n.class:""}`,children:(0,s.jsx)(Rm,{baseUrl:e,block:n})},`${n.__component}-${n.id}`);case"shared.video":return(e=>{var t;return!e.must_be_unlocked_to_render||!!c&&!!(null===(t=e.identity)||void 0===t?void 0:t.documentId)&&o.includes(e.identity.documentId)})(n)?(0,s.jsx)("div",{id:(null===(r=n.identity)||void 0===r?void 0:r.documentId)?`identity-${n.identity.documentId}`:void 0,className:`report-block report-block-video ${n.class?n.class:""}`,children:(0,s.jsx)(Zu,{block:n})},`${n.__component}-${n.id}`):null}})})};i(2166);const bx=({baseUrl:e,gate:t,onSuccess:r})=>{var a,i,o,l,c,u;const h={};null===(a=t.input)||void 0===a||a.forEach(e=>{e.name&&(h[e.name]="")});
2const[p,m]=(0,n.useState)(h),[f,v]=(0,n.useState)(!1),[g,b]=(0,n.useState)(!1),[y,_]=(0,n.useState)(""),[k,N]=(0,n.useState)([]),[E,j]=(0,n.useState)({}),[S,C]=(0,n.useState)(!1),T=(0,n.useMemo)(()=>{var e;return(null!==(e=t.input)&&void 0!==e?e:[]).map(e=>e.name).filter(e=>!!e)},[t.input]),A=t=>{var n;return t?(null===(n=t.url)||void 0===n?void 0:n.startsWith("http"))?t.url:`${e}${t.url}`:null},L=A(t.header_image),I=A(t.logo),M=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),P=(0,n.useMemo)(()=>{var e;if(!t.input||0===t.input.length)return!0;for(const n of t.input){if(!n.name)continue;const t=p[n.name]||"";if(null!==(e=n.required)&&void 0!==e&&e&&!t.trim())return!1;if("email"===n.type&&t.trim()&&!M(t.trim()))return!1}return!0},[p,t.input]),O=!!(null===(i=t.hubspot_form_id)||void 0===i?void 0:i.value),R=!O||f||g,D=R,F=(0,n.useMemo)(()=>{if(!t.input||0===t.input.length)return{rows:new Map,ungrouped:[]};const e=new Map,n=[];return t.input.forEach(t=>{if(null!==t.row&&void 0!==t.row){const n=t.row;e.has(n)||e.set(n,[]),e.get(n).push(t)}else n.push(t)}),{rows:e,ungrouped:n}},[t.input]),U=e=>{var n;if(!e.name)return null;const r=e.type||"text",a=p[e.name]||"",i=`shared-gate-${t.id}-${e.name}`,o=`${i}-error`,l=null!==(n=e.required)&&void 0!==n&&n,c=l&&!a.trim()||"email"===r&&!!a.trim()&&!M(a.trim()),u="name"===e.name&&y||E[e.name]||"",d=S&&c?"email"===r&&a.trim()?"Invalid email address":"This field is required":"",h=u||d,v=!!h||S&&c,b=["shared-gate-input-wrapper",v?"is-invalid":""].filter(Boolean).join(" ");return(0,s.jsxs)("div",{className:b,children:[e.label&&(0,s.jsx)("label",{htmlFor:i,className:"shared-gate-label",children:e.label}),(0,s.jsx)("input",{type:r,id:i,name:e.name,placeholder:e.placeholder,value:a,onChange:t=>{((e,t)=>{m(n=>Object.assign(Object.assign({},n),{[e]:t})),(e=>{j(t=>{if(!t[e])return t;const n=Object.assign({},t);return delete n[e],n})})(e)})(e.name,t.target.value),"name"===e.name&&y&&_("")},className:"shared-gate-input",required:l,disabled:!O||f||g,"aria-invalid":v||void 0,"aria-describedby":h?o:void 0}),h?(0,s.jsx)("div",{id:o,className:"shared-gate-input-error",role:"alert",children:h}):null]},e.id)};return(0,s.jsxs)("div",{className:"shared-gate",children:[L&&(0,s.jsx)("div",{className:"shared-gate-header-image",children:(0,s.jsx)("img",{src:L,alt:(null===(o=t.header_image)||void 0===o?void 0:o.alternativeText)||(null===(l=t.header_image)||void 0===l?void 0:l.caption)||"Gate header",className:"shared-gate-header-image-img"})}),(0,s.jsxs)("div",{className:"shared-gate-content",children:[t.title&&(0,s.jsx)("h1",{className:"shared-gate-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.title})}),t.subtitle&&(0,s.jsx)("div",{className:"shared-gate-subtitle",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.subtitle})}),g&&t.submission_success_body&&(0,s.jsx)("div",{className:"shared-gate-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:t.submission_success_body})}),(0,s.jsx)("div",{className:"shared-gate-form-container",children:(0,s.jsxs)("form",{onSubmit:e=>{return n=void 0,a=void 0,i=function*(){var n,a,s,i,o;if(e.preventDefault(),C(!0),!(null===(n=t.hubspot_form_id)||void 0===n?void 0:n.value))return;if(!P)return;_(""),N([]),j({}),v(!0),b(!1);const l=x.cookie.split(";").find(e=>e.includes("hubspotutk")),c="string"==typeof l?l.split("=")[1]:void 0,u=t.hubspot_form_id.value,f=d(),g=x.title,y={"Content-Type":"application/json","x-hubspot-form-id":u,"x-hubspot-page-uri":f,"x-hubspot-page-name":g,"x-form-source":"shared.gate"};y["x-hubspot-utk"]=null!=c?c:"";const k=Object.assign({},p);if(u&&k.name){const e=k.name.trim().split(/\s+/);if(e.length>0&&(k.firstname=e[0].trim(),k.lastname=e.slice(1).map(e=>e.trim()).join(" ")||""),delete k.name,!k.firstname||!k.lastname)return _("Both first name and last name are required."),void v(!1)}(null===(a=t.latest_lead_source)||void 0===a?void 0:a.value)&&(k.latest_lead_source=t.latest_lead_source.value);try{const e=`${zo()}/${u}`;console.log("formSubmitUrl",e);const n=yield ll({submitUrl:e,headers:y,body:k});if(!n.ok){const e=sl(n,T);return j(e.fieldErrorsByName),N(e.formErrors),void v(!1)}const a=w.dataLayer,l={event:"form_submit",formType:null!==(i=null===(s=t.analytics_form_type)||void 0===s?void 0:s.value)&&void 0!==i?i:"c
2ontent",formName:"shared.gate",data:k,headers:y,hubSpotFormId:u,hubspotutk:c,pageUri:f,pageName:g,latestLeadSource:null===(o=t.latest_lead_source)||void 0===o?void 0:o.value};a.push(l),console.log("Pushed to dataLayer",l),v(!1),b(!0),N([]),j({}),m(h),r&&r()}catch(e){console.error("Error submitting gate form:",e),N(["An error occurred while submitting the form. Please try again."]),v(!1)}},new((s=void 0)||(s=Promise))(function(e,t){function r(e){try{l(i.next(e))}catch(e){t(e)}}function o(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof s?e:new s(function(t){t(e)})}(t.value).then(r,o)}l((i=i.apply(n,a||[])).next())});var n,a,s,i},noValidate:!0,className:"shared-gate-form "+(R?"shared-gate-form-disabled":""),children:[t.input&&t.input.length>0&&(0,s.jsx)("div",{className:"shared-gate-inputs",children:(()=>{if(!t.input||0===t.input.length)return null;const e=Array.from(F.rows.keys()).sort((e,t)=>e-t),n=[];return e.forEach(e=>{const t=F.rows.get(e)||[];n.push((0,s.jsx)("div",{className:"shared-gate-input-row",children:t.map(U)},`row-${e}`))}),F.ungrouped.forEach((e,t)=>{n.push((0,s.jsx)("div",{className:"shared-gate-input-row",children:U(e)},`row-ungrouped-${t}`))}),n})()}),k.length>0&&(0,s.jsx)("div",{className:"shared-gate-message shared-gate-message-error",children:k.map(e=>(0,s.jsx)("div",{className:"shared-gate-error-row",children:e},e))}),(0,s.jsxs)("div",{className:"shared-gate-button-container",children:[(0,s.jsx)("button",{type:"submit",className:"shared-gate-button "+(D?"disabled":""),disabled:D,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"shared-gate-spinner"}),(0,s.jsx)("span",{children:"Please wait..."})]}):t.submit_button_text||"Submit"}),!P&&!R&&(0,s.jsx)("span",{className:"shared-gate-button-catcher","aria-hidden":"true",onClick:()=>C(!0)})]})]})}),I&&(0,s.jsx)("div",{className:"shared-gate-logo",children:(0,s.jsx)("img",{src:I,alt:(null===(c=t.logo)||void 0===c?void 0:c.alternativeText)||(null===(u=t.logo)||void 0===u?void 0:u.caption)||"Logo",className:"shared-gate-logo-img"})})]})]})},yx=()=>`gate_submitted_${p()}`,xx=({baseUrl:e,gated:t=!1,report:r})=>
2{const[a,i]=(0,n.useState)(!1),[o,l]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(t&&r.gate){const e=yx();"true"===b(e)&&l(!0)}},[t,r.gate]),(0,n.useEffect)(()=>{if(t&&r.gate&&!o){const e=setTimeout(()=>{i(!0)},1e3);return()=>clearTimeout(e)}},[t,r.gate,o]);const c=(0,n.useMemo)(()=>{if(!r.data)return{};const e={};for(const t of r.data)if(t.json&&"object"==typeof t.json&&!Array.isArray(t.json)){const n=t.json;for(const[t,r]of Object.entries(n))if(r&&"object"==typeof r&&!Array.isArray(r)){const n=r;"string"==typeof n.definition&&(e[t]={definition:n.definition})}}return e},[r.data]);return(0,s.jsx)(ho,{value:c,children:(0,s.jsxs)("article",{className:`report ${r.class?r.class:""}`,children:[(0,s.jsx)(gx,{baseUrl:e,report:r,blocks:r.blocks||[],gated:t,isGateSubmitted:o}),a&&r.gate&&(0,s.jsx)("div",{className:"shared-gate-popup-overlay",children:(0,s.jsx)("div",{className:"shared-gate-popup-content",children:(0,s.jsx)(bx,{baseUrl:e,gate:r.gate,onSuccess:()=>{var e,t;const n=yx();y(n,"true");const a=1e3*(null!==(t=null===(e=r.gate)||void 0===e?void 0:e.submission_success_delay)&&void 0!==t?t:0);setTimeout(()=>{var e;if(null===(e=r.gate)||void 0===e?void 0:e.redirect){const e=r.gate.redirect;e.startsWith("/")?w.setLocationHref(`${f()}//${v()}${e}`):w.setLocationHref(e)}else l(!0),i(!1)},a)}})})})]})})};i(6388);const wx=({block:e,baseUrl:t=""})=>{var n;const r=null!==(n=e.columns)&&void 0!==n?n:[];if("table"===e.layout){const n=Math.max(0,...r.map(e=>{var t;return(null!==(t=e.items)&&void 0!==t?t:[]).length})),a={gridTemplateColumns:`1.6fr repeat(${Math.max(1,r.length)}, 1fr)`};return(0,s.jsxs)("div",{className:"rn-wrap rn-fc rn-fc-table",children:[(e.kicker||e.title)&&(0,s.jsxs)("div",{className:"rn-fc-head",children:[e.kicker&&(0,s.jsx)("p",{className:"rn-fc-kicker",children:e.kicker}),e.title&&(0,s.jsx)("h2",{className:"rn-fc-title",children:e.title})]}),r.length>0&&(0,s.jsxs)("div",{className:"rn-fc-matrix",children:[(0,s.jsxs)("div",{className:"rn-fc-r rn-fc-hrow",style:a,children:[(0,s.jsx)("div",{className:"rn-fc-c","aria-hidden":"true",children:" "}),r.map((e,n)=>{var r,a,i;const o=Wc(null===(r=e.logo)||void 0===r?void 0:r.url,t);return(0,s.jsxs)("div",{className:"rn-fc-c"+(0===n?" is-us":""),children:[o?(0,s.jsx)("img",{className:"rn-fc-logo",src:o,alt:(null===(a=e.logo)||void 0===a?void 0:a.alternativeText)||e.heading||""}):e.heading,e.subheading&&(0,s.jsx)("span",{className:"rn-fc-sub",children:e.subheading})]},null!==(i=e.id)&&void 0!==i?i:n)})]}),Array.from({length:n},(e,t)=>{var n,i,o;return(0,s.jsxs)("div",{className:"rn-fc-r",style:a,children:[(0,s.jsx)("div",{className:"rn-fc-c lab",children:null===(o=null===(i=null===(n=r[0])||void 0===n?void 0:n.items)||void 0===i?void 0:i[t])||void 0===o?void 0:o.title}),r.map((e,n)=>{var r,a,i;const o=null===(r=e.items)||void 0===r?void 0:r[t],l=null!==(a=null==o?void 0:o.marker)&&void 0!==a?a:"no"===e.variant?"no":"yes",c=(e=>"no"===e?"✕":"yes"===e?"✓":"")(l);return(0,s.jsxs)("div",{className:`rn-fc-c${0===n?" is-us":""}${"text"===l?" is-text":""}`,children:[c&&(0,s.jsx)("span",{className:`rn-fc-mk is-${l}`,"aria-hidden":"true",children:c}),(null==o?void 0:o.body)&&(0,s.jsx)("span",{className:"rn-fc-note",children:o.body})]},null!==(i=e.id)&&void 0!==i?i:n)})]},t)})]})]})}return(0,s.jsxs)("div",{className:"rn-wrap rn-fc",children:[e.kicker&&(0,s.jsx)("p",{className:"rn-fc-kicker",children:e.kicker}),e.title&&(0,s.jsx)("h2",{className:"rn-fc-title",children:e.title}),r.length>0&&(0,s.jsx)("div",{className:"rn-fc-grid",children:r.map((e,t)=>{var n,r;const a="no"===e.variant,i=null!==(n=e.items)&&void 0!==n?n:[];return(0,s.jsxs)("div",{className:"rn-fc-col "+(a?"is-no":"is-yes"),children:[e.heading&&(0,s.jsx)("h3",{children:e.heading}),i.map((e,t)=>{var n;return(0,s.jsxs)("div",{className:"rn-fc-item",children:[(0,s.jsx)("span",{className:"rn-fc-mk","aria-hidden":"true",children:a?"✕":"✓"}),(0,s.jsxs)("div",{children:[e.title&&(0,s.jsx)("div",{className:"rn-fc-dt",children:e.title}),e.body&&(0,s.jsx)("div",{className:"rn-fc-dd",children:e.body})]})]},null!==(n=e.id)&&void 0!==n?n:t)})]},null!==(r=e.id)&&void 0!==r?r:t)})})]})},_x=({block:e})=>{var t;const n=("rn-section rn-faq-section "+(e.class?`section-${e.class}
2`:"")).replace(/\s+/g," ").trim(),r=(null!==(t=e.items)&&void 0!==t?t:[]).filter(e=>{var t,n;return(null!==(t=e.question)&&void 0!==t?t:"").trim()||(null!==(n=e.answer)&&void 0!==n?n:"").trim()}),a=r.length>0?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:r.map(e=>{var t,n,r;return{"@type":"Question",name:(null!==(t=e.question)&&void 0!==t?t:"").trim(),acceptedAnswer:{"@type":"Answer",text:(r=null!==(n=e.answer)&&void 0!==n?n:"",r.trim().replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>'))}}})}:null;return(0,s.jsxs)("section",{className:n,children:[a&&(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a).replace(/</g,"\\u003c")}}),(0,s.jsxs)("div",{className:"rn-wrap",children:[(0,s.jsxs)("div",{className:"rn-section-head",children:[e.kicker&&(0,s.jsx)("span",{className:"rn-kicker",children:e.kicker}),e.title&&(0,s.jsx)("h2",{className:"rn-section-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:e.title})})]}),r.length>0&&(0,s.jsx)("div",{className:"rn-faq",children:r.map((e,t)=>{var n,r;return(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:e.question}),(0,s.jsx)(ta,{components:{p:({children:e})=>(0,s.jsx)("p",{children:e}),a:({href:e,children:t})=>{const n=null==e?void 0:e.startsWith("http");return(0,s.jsx)("a",{href:e,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,children:t})}},children:null!==(n=e.answer)&&void 0!==n?n:""})]},null!==(r=e.id)&&void 0!==r?r:t)})})]})]})};function kx(e){return e?`section-${e}`:""}function Nx(e,t){var n,r;const a=null!==(r=null===(n=null==e?void 0:e.image)||void 0===n?void 0:n.url)&&void 0!==r?r:null;return a?a.startsWith("http")?a:`${t}${a}`:null}const Ex=({button:e})=>{if(!(null==e?void 0:e.text)||!(null==e?void 0:e.url))return null;const t="normal"===e.buttonstyle?"rn-btn-primary":"rn-btn-secondary";return(0,s.jsx)("a",{className:`rn-btn ${t}`,href:e.url,children:e.text})},jx=({kicker:e,title:t,subtitle:n,children:r})=>(0,s.jsxs)("div",{className:"rn-section-head",children:[e&&(0,s.jsx)("span",{className:"rn-kicker",children:e}),t&&(0,s.jsx)("h2",{className:"rn-section-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:t})}),n&&(0,s.jsx)("p",{className:"rn-section-sub",children:n}),r]}),Sx=({block:e,baseUrl:t,crumbs:r})=>{var a,i,o,l,c,u;const d=null!==(i=null===(a=e.shared_form)||void 0===a?void 0:a.form)&&void 0!==i?i:e.form,h=Boolean(d),p=`rn-section rn-sharedhero ${h?"rn-sharedhero-hasform ":""}${kx(e.class)}`.replace(/\s+/g," ").trim(),m="mpp-demo-hero"===e.class?"book-demo":void 0,f=null!=r?r:[],v=null!==(o=e.tags)&&void 0!==o?o:[],g=null!==(l=e.points)&&void 0!==l?l:[],b=e.logos&&!0!==e.logos.hide&&(null!==(u=null===(c=e.logos.logos)||void 0===c?void 0:c.length)&&void 0!==u?u:0)>0?e.logos:null,y=(0,s.jsxs)(s.Fragment,{children:[f.length>0&&(0,s.jsx)("p",{className:"rn-crumb",children:f.map((e,t)=>{var r;const a=null!==(r=e.label)&&void 0!==r?r:"";return(0,s.jsxs)(n.Fragment,{children:[t>0&&(0,s.jsx)("span",{className:"rn-crumb-sep",children:"/"}),e.href?(0,s.jsx)("a",{href:e.href,children:a}):(0,s.jsx)("span",{children:a})]},`${a}-${t}`)})}),e.eyebrow&&(0,s.jsxs)("p",{className:"rn-sharedhero-eyebrow",children:[(0,s.jsx)("span",{className:"rn-dot","aria-hidden":"true"}),e.eyebrow]}),e.title&&(0,s.jsx)("h1",{className:"rn-sharedhero-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:e.title})}),e.subtitle&&(0,s.jsx)("div",{className:"rn-sharedhero-sub",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)("p",{children:e})}
2,children:e.subtitle})}),g.length>0&&(0,s.jsx)("ul",{className:"rn-sharedhero-list",children:g.map((e,t)=>{var n;return(0,s.jsx)("li",{children:e.tag},null!==(n=e.id)&&void 0!==n?n:t)})}),e.qualifier&&(0,s.jsx)("p",{className:"rn-sharedhero-qual",children:e.qualifier}),e.buttons&&e.buttons.length>0&&(0,s.jsx)("div",{className:"rn-sharedhero-cta",children:e.buttons.map((e,t)=>{var n;return(0,s.jsx)(Ex,{button:e},null!==(n=e.id)&&void 0!==n?n:t)})}),b?(0,s.jsx)("div",{className:"rn-sharedhero-trust",children:(0,s.jsx)(xd,{baseUrl:t,block:b,loop:"mpp-demo-hero"===e.class})}):(e.tags_title||v.length>0)&&(0,s.jsxs)("div",{className:"rn-sharedhero-trust",children:[e.tags_title&&(0,s.jsx)("div",{className:"rn-sharedhero-trust-k",children:e.tags_title}),v.length>0&&(0,s.jsx)("div",{className:"rn-sharedhero-trust-row",children:v.map((e,n)=>{var r,a,i,o,l,c;const u=null!==(a=null===(r=e.image)||void 0===r?void 0:r.url)&&void 0!==a?a:null,d=u?u.startsWith("http")?u:`${t}${u}`:null;return d?(0,s.jsx)("img",{className:"rn-sharedhero-logo",src:d,alt:null!==(i=e.tag)&&void 0!==i?i:"",loading:"lazy"},null!==(o=e.id)&&void 0!==o?o:n):(0,s.jsx)("span",{className:`rn-sharedhero-tag ${null!==(l=e.class)&&void 0!==l?l:""}`.trim(),children:e.tag},null!==(c=e.id)&&void 0!==c?c:n)})})]})]});return h&&d?(0,s.jsx)("section",{className:p,id:m,children:(0,s.jsxs)("div",{className:"rn-wrap rn-sharedhero-inner rn-sharedhero-grid",children:[(0,s.jsx)("div",{className:"rn-sharedhero-copy",children:y}),(0,s.jsx)("div",{className:"rn-sharedhero-formcard",children:(0,s.jsx)(Jd,{baseUrl:t,block:d})})]})}):(0,s.jsx)("section",{className:p,id:m,children:(0,s.jsx)("div",{className:"rn-wrap rn-sharedhero-inner",children:y})})},Cx=({block:e,baseUrl:t})=>{var n;const r=Nx(e.background_image,t),a=`rn-section rn-pagehero ${kx(e.class)}`.replace(/\s+/g," ").trim();return(0,s.jsx)("section",{className:a,style:r?{backgroundImage:`url(${r})`}:void 0,children:(0,s.jsxs)("div",{className:"rn-wrap rn-pagehero-inner",children:[e.masthead&&(0,s.jsx)("div",{className:"rn-pagehero-masthead",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:e.masthead})}),e.eyebrow&&(0,s.jsx)("p",{className:"rn-pagehero-eyebrow",children:(0,s.jsx)("span",{className:"rn-accent",children:e.eyebrow})}),e.title&&(0,s.jsx)("h1",{className:"rn-pagehero-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:e.title})}),e.subtitle&&(0,s.jsx)("p",{className:"rn-pagehero-sub",children:e.subt
2itle}),e.note&&(0,s.jsx)("p",{className:"rn-pagehero-note",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:e.note})}),(e.buttons&&e.buttons.length>0||e.register_button)&&(0,s.jsxs)("div",{className:"rn-cta-row",children:[(null!==(n=e.buttons)&&void 0!==n?n:[]).map((e,t)=>{var n;return(0,s.jsx)(Ex,{button:e},null!==(n=e.id)&&void 0!==n?n:t)}),e.register_button&&(0,s.jsx)(Al,{baseUrl:t,registerButton:e.register_button})]})]})})},Tx=({block:e})=>{const t=e.plan;return(0,s.jsx)("section",{className:"rn-section rn-hero",children:(0,s.jsxs)("div",{className:"rn-wrap rn-hero-grid",children:[(0,s.jsxs)("div",{className:"rn-hero-left",children:[e.eyebrow&&(0,s.jsx)("p",{className:"rn-eyebrow",children:(0,s.jsx)("span",{className:"rn-accent",children:e.eyebrow})}),e.title&&(0,s.jsxs)("h1",{className:"rn-title",children:[e.title,e.title_highlight&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)("span",{className:"rn-underline",children:e.title_highlight})]})]}),e.subtitle&&(0,s.jsx)("p",{className:"rn-subtitle",children:e.subt
2itle}),e.takeaway&&(0,s.jsxs)("p",{className:"rn-takeaway",children:[e.takeaway,e.takeaway_link_label&&e.takeaway_link_href&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)("a",{href:e.takeaway_link_href,children:e.takeaway_link_label})]})]}),e.buttons&&e.buttons.length>0&&(0,s.jsx)("div",{className:"rn-cta-row",children:e.buttons.map((e,t)=>{var n;return(0,s.jsx)(Ex,{button:e},null!==(n=e.id)&&void 0!==n?n:t)})})]}),t&&(0,s.jsx)("div",{className:"rn-hero-right",children:(0,s.jsxs)("div",{className:"rn-plan-card",children:[t.pack_label&&(0,s.jsx)("span",{className:"rn-plan-pack",children:t.pack_label}),t.name&&(0,s.jsx)("p",{className:"rn-plan-name",children:t.name}),t.price&&(0,s.jsxs)("p",{className:"rn-plan-price",children:[t.price,t.per&&(0,s.jsx)("span",{className:"rn-per",children:t.per})]}),t.credits_label&&(0,s.jsx)("span",{className:"rn-plan-credits",children:t.credits_label}),t.tagline&&(0,s.jsx)("p",{className:"rn-plan-tagline",children:t.tagline}),t.features&&t.features.length>0&&(0,s.jsx)("ul",{children:t.features.map((e,t)=>{var n;return(0,s.jsx)("li",{children:e.text},null!==(n=e.id)&&void 0!==n?n:t)})}),t.cta_label&&t.cta_href&&(0,s.jsx)("a",{className:"rn-plan-cta",href:t.cta_href,children:t.cta_label}),t.addmore&&(0,s.jsx)("p",{className:"rn-plan-addmore",children:t.addmore})]})})]})})},Ax=({block:e})=>(0,s.jsx)("section",{className:`rn-section ${kx(e.class)}`.trim(),children:(0,s.jsxs)("div",{className:"rn-wrap",children:[(0,s.jsx)(jx,{kicker:e.kicker,title:e.title,subtitle:e.subtitle}),e.capabilities&&e.capabilities.length>0&&(0,s.jsx)("div",{className:"rn-caps",children:e.capabilities.map((e,t)=>{var n;return(0,s.jsxs)("div",{className:"rn-cap",children:[e.title&&(0,s.jsx)("h3",{children:e.title}),e.items&&e.items.length>0&&(0,s.jsx)("ul",{children:e.items.map((e,t)=>{var n;return(0,s.jsx)("li",{children:e.text},null!==(n=e.id)&&void 0!==n?n:t)})})]},null!==(n=e.id)&&void 0!==n?n:t)})})]})}),Lx=({card:e,baseUrl:t,index:n,numbered:r,href:a})=>{var i,o,l,c,u;const d=null!==(i=e.buttons)&&void 0!==i?i:[],h=null!==(o=e.tags)&&void 0!==o?o:[],p=null!==(c=null===(l=e.image)||void 0===l?void 0:l.url)&&void 0!==c?c:null,m=p?p.startsWith("http")?p:`${t}${p}`:null,f=a?"a":"div",v=a?{href:a}:{};return(0,s.jsxs)(f,Object.assign({className:`rn-card${e.eyebrow?" has-eyebrow":""}${a?" rn-card-link":""}`},v,{children:[e.eyebrow&&(0,s.jsx)("span",{className:"rn-card-eyebrow",children:e.eyebrow}),e.icon&&(0,s.jsx)("span",{className:"rn-card-ico","aria-hidden":"true",children:e.icon}),r&&(0,s.jsx)("span",{className:"rn-card-num",children:n+1}),m&&(0,s.jsx)("div",{className:"rn-card-plate",children:(0,s.jsx)("img",{src:m,alt:null!==(u=e.title)&&void 0!==u?u:"",loading:"lazy"})}),(0,s.jsxs)("div",{className:"rn-card-main",children:[e.pill&&(0,s.jsx)("span",{className:"rn-card-pill",children:e.pill}),e.title&&(0,s.jsx)("h3",{className:"rn-card-title",children:e.title}),e.body&&(0,s.jsx)("div",{className:"rn-card-body",children:(0,s.jsx)(ta,{rehypePlugins:[co],children:e.body})}),d.length>0&&(0,s.jsx)("div",{className:"rn-card-cta",children:d.map((e,t)=>{var n;return(0,s.jsx)(Ex,{button:e},null!==(n=e.id)&&void 0!==n?n:t)})}),e.tag_title&&(0,s.jsx)("div",{className:"rn-card-feat-lead",children:e.tag_title}),h.length>0&&(0,s.jsx)("ul",{className:"rn-card-feats",children:h.map((e,t)=>{var n,r;return(0,s.jsx)("li",{className:null!==(n=e.class)&&void 0!==n?n:void 0,children:e.tag},null!==(r=e.id)&&void 0!==r?r:t)})})]})]}))},Ix={"Creative QA":"/use-cases/creative-qa","Creative Intelligence":"/use-cases/creative-intelligence","Creative Volume":"/use-cases/creative-volume","Competitor Intel":"/use-cases/competitor-intel","Creator Sourcing":"/use-cases/creator-sourcing","Performance Reporting":"/use-cases/performance-reporting","Ad Naming":"/use-cases/ad-naming"},Mx=({block:e,baseUrl:t})=>{var n;const r=null!==(n=e.cards)&&void 0!==n?n:[],a=!0===e.numbered,i=`rn-section ${kx(e.class)}${a?" rn-narrow":""}`.replace(/\s+/g," ").trim();return(0,s.jsx)("section",{className:i,children:(0,s.jsxs)("div",{className:"rn-wrap",children:[(0,s.jsx)(jx,{kicker:e.kicker,title:e.title,subtitle:e.subtitle}),r.length>0&&(0,s.jsx)("div",{className:"rn-cardgrid"+(a?" is-numbered":""),children:r.map((n,r)=>{var i;return(0,s.jsx)(Lx,{card:n,baseUrl:t,index:r,numbered:a,href:"runneth-wir-uc"===e.class&&n.title?Ix[n.title]:void 0},null!==(i=n.id)&&void 0!==i?i:r)})}),e.footnote&&(0,s.jsx)("p",{className:"rn-cardgrid-note",children:e.footnote})]})})},Px=({block:e,baseUrl:t})=>{var r;
2const a=null!==(r=e.stories)&&void 0!==r?r:[],[i,o]=(0,n.useState)(0),l=a.length,c=e=>o((e%l+l)%l);return(0,s.jsx)("section",{className:`rn-section ${kx(e.class)}`.trim(),children:(0,s.jsxs)("div",{className:"rn-wrap",children:[(0,s.jsx)(jx,{kicker:e.kicker,title:e.title}),l>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"rn-slider",children:[l>1&&(0,s.jsx)("button",{className:"rn-snav",type:"button","aria-label":"Previous story",onClick:()=>c(i-1),children:"←"}),(0,s.jsx)("div",{className:"rn-slidestack",children:a.map((e,n)=>{var r;const a=Nx(e.avatar,t);return(0,s.jsxs)("div",{className:"rn-slide"+(n===i?" is-on":""),"aria-hidden":n===i?"false":"true",children:[(0,s.jsx)("div",{className:"rn-avatar","aria-hidden":"true",children:a?(0,s.jsx)("img",{alt:"",src:a}):e.initial}),e.quote&&(0,s.jsx)("blockquote",{className:"rn-quote",children:e.quote}),(e.who||e.company)&&(0,s.jsxs)("p",{className:"rn-byline",children:[e.who&&(0,s.jsx)("span",{className:"rn-who",children:e.who}),e.who&&e.company?" at ":"",e.company&&(0,s.jsx)("span",{className:"rn-co",children:e.company})]}),e.link_label&&e.link_href&&(0,s.jsx)("a",{className:"rn-story-link",href:e.link_href,tabIndex:n===i?0:-1,children:e.link_label})]},null!==(r=e.id)&&void 0!==r?r:n)})}),l>1&&(0,s.jsx)("button",{className:"rn-snav",type:"button","aria-label":"Next story",onClick:()=>c(i+1),children:"→"})]}),l>1&&(0,s.jsx)("div",{className:"rn-dots",children:a.map((e,t)=>{var n;return(0,s.jsx)("button",{type:"button",className:"rn-dot"+(t===i?" is-on":""),"aria-label":`Show story ${t+1}`,onClick:()=>o(t)},null!==(n=e.id)&&void 0!==n?n:t)})})]})]})})},Ox=({block:e,baseUrl:t})=>{const n=Nx(e.background_image,t),r=`rn-section ${kx(e.class)}`.trim();return(0,s.jsx)("section",{className:r,style:n?{backgroundImage:`url(${n})`}:void 0,children:(0,s.jsx)("div",{className:"rn-wrap",children:(0,s.jsxs)("div",{className:"rn-cta-band",children:[e.title&&(0,s.jsxs)("h2",{children:[e.title,e.title_highlight&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)("span",{className:"rn-lime-ink",children:e.title_highlight})]}),e.title_suffix&&(0,s.jsxs)(s.Fragment,{children:[" ",e.title_suffix]})]}),e.body&&(0,s.jsx)("p",{children:e.body}),e.buttons&&e.buttons.length>0&&(0,s.jsx)("div",{className:"rn-cta-row",children:e.buttons.map((e,t)=>{var n;return(0,s.jsx)(Ex,{button:e},null!==(n=e.id)&&void 0!==n?n:t)})})]})})})},Rx=({block:e,baseUrl:t})=>{var n;const r=null!==(n=e.cards)&&void 0!==n?n:[],a=`rn-section rn-clwv ${kx(e.class)}${e.layout?` layout-${e.layout}`:""}`.replace(/\s+/g," ").trim();return(0,s.jsx)("section",{className:a,children:(0,s.jsxs)("div",{className:"rn-wrap",children:[(0,s.jsxs)("div",{className:"rn-clwv-head",children:[e.eyebrow&&(0,s.jsx)("span",{className:"rn-kicker",children:e.eyebrow}),e.title&&(0,s.jsx)("h2",{className:"rn-clwv-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:e.title})}),e.subtitle&&(0,s.jsx)("p",{className:"rn-clwv-sub",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})}
2,children:e.subtitle})})]}),(0,s.jsxs)("div",{className:"rn-clwv-body",children:[e.animation&&(0,s.jsx)("div",{className:"rn-clwv-visual",children:(0,s.jsx)(Ju,{block:e.animation,baseUrl:t})}),(0,s.jsxs)("div",{className:"rn-clwv-copy",children:[e.list_eyebrow&&(0,s.jsx)("span",{className:"rn-clwv-copy-k",children:e.list_eyebrow}),e.list_title&&(0,s.jsx)("h3",{className:"rn-clwv-copy-title",children:e.list_title}),r.length>0&&(0,s.jsx)("ul",{className:"rn-clwv-points",children:r.map((e,t)=>{var n;return(0,s.jsx)("li",{children:e.body&&(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:e.body})},null!==(n=e.id)&&void 0!==n?n:t)})})]})]})]})})},Dx=({block:e,stories:t})=>{const n=null!=t?t:[],r="number"==typeof e.limit&&e.limit>0?e.limit:void 0,a=r?n.slice(0,r):n;if(0===a.length)return null;const i=`rn-section rn-csgrid-section ${kx(e.class)}`.replace(/\s+/g," ").trim();return(0,s.jsx)("section",{className:i,children:(0,s.jsxs)("div",{className:"rn-wrap",children:[(0,s.jsx)(jx,{kicker:e.kicker,title:e.title}),(0,s.jsx)("div",{className:"rn-idxgrid",children:a.map((e,t)=>(0,s.jsxs)("a",{className:"rn-idxcard",href:e.href,children:[e.brand&&(0,s.jsx)("div",{className:"rn-idxcard-brand",children:e.brand}),e.card_title&&(0,s.jsx)("h3",{className:"rn-idxcard-title",children:e.card_title}),e.card_blurb&&(0,s.jsx)("p",{className:"rn-idxcard-blurb",children:e.card_blurb}),(0,s.jsxs)("div",{className:"rn-idxcard-arrow",children:["Read the story ","→"]})]},`${e.href}-${t}`))})]})})};function Fx(e,t=0){return isFinite(e)?"$"+Number(e).toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:t}):"--"}function Ux(e){return isFinite(e)?Math.round(e).toLocaleString("en-US"):"--"}i(2636);const $x=({label:e,value:t,onChange:n,hint:r,prefix:a,suffix:i})=>(0,s.jsxs)("div",{className:"cac-field",children:[(0,s.jsxs)("label",{children:[e,(0,s.jsx)("span",{className:`cac-input${"money"===a?" is-money":""}${"pct"===i?" is-pct":""}`,children:(0,s.jsx)("input",{type:"number",min:0,value:t,onChange:e=>n(e.target.value)})})]}),r&&(0,s.jsx)("span",{className:"cac-hint",children:r})]}),Bx=({m:e})=>e.valid?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"cac-results",children:[(0,s.jsxs)("div",{className:"cac-stat is-hero",children:[(0,s.jsx)("p",{className:"cac-stat-k",children:"Your scaling-target CAC"}),(0,s.jsx)("p",{className:"cac-stat-v",children:Fx(e.targetAvgCAC)}),(0,s.jsx)("p",{className:"cac-stat-sub",children:"The blended CAC to actually aim for. Above this, you start losing money on the margin."})]}),(0,s.jsxs)("div",{className:"cac-stat",children:[(0,s.jsx)("p",{className:"cac-stat-k",children:"Marginal CAC ceiling"}),(0,s.jsx)("p",{className:"cac-stat-v",children:Fx(e.gp)}),(0,s.jsx)("p",{className:"cac-stat-sub",children:"Most you can pay for the next customer."})]}),(0,s.jsxs)("div",{className:"cac-stat",children:[(0,s.jsx)("p",{className:"cac-stat-k",children:"Target customers / cohort"}),(0,s.jsx)("p",{className:"cac-stat-v",children:Ux(e.nStar)}),(0,s.jsx)("p",{className:"cac-stat-sub",children:"Where cohort profit peaks."})]}),(0,s.jsxs)("div",{className:"cac-stat",children:[(0,s.jsx)("p",{className:"cac-stat-k",children:"Target spend / cohort"}),(0,s.jsx)("p",{className:"cac-stat-v",children:Fx(e.targetSpend)}),(0,s.jsx)("p",{className:"cac-stat-sub",children:"Total acquisition spend at the peak."})]}),(0,s.jsxs)("div",{className:"cac-stat",children:[(0,s.jsx)("p",{className:"cac-stat-k",children:"Peak cohort profit"}),(0,s.jsx)("p",{className:"cac-stat-v",children:Fx(e.peakProfit)}),(0,s.jsx)("p",{className:"cac-stat-sub",children:"The most profit this cohort can make."})]})]}),"none"===e.verdict&&(0,s.jsx)("div",{className:"cac-verdict is-under",children:"Add your current new customers per cohort in step 3 to see whether you’re currently underspending, dialed in, or overspending against this target."}),"under"===e.verdict&&(0,s.jsxs)("div",{className:"cac-verdict is-under",children:[(0,s.jsx)("b",{children:"You’re underspending."})," At ~",Ux(e.curN)," customers your marginal CAC is only ",Fx(e.curMarg),", well under the ",Fx(e.gp)," ","ceiling. Scaling toward ~",Ux(e.nStar)," customers would add about"," ",(0,s.jsx)("b",{children:Fx(e.peakProfit-e.curProfit)})," in cohort profit."]}),"peak"===e.verdict&&(0,s.jsxs)("div",{className:"cac-verdict is-peak",children:[(0,s.jsx)("b",{children:"You’re dialed in."})," At ~",Ux(e.curN)," customers you’re right around peak cohort profit. Marginal CAC (",Fx(e.curMarg),") is sitting near your ",Fx(e.gp)," ceiling. To grow from here you have to move the curve, not just spend more."]}),"over"===e.verdict&&(0,s.jsxs)("div",{className:"cac-verdict is-over",children:[(0,s.jsx)("b",{children:"You’re overspending."})," At ~",Ux(e.curN)," customers your marginal CAC is ",Fx(e.curMarg),", above the ",Fx(e.gp)," ceiling, so the last customers come in at a lifetime loss. Pulling back toward ~",Ux(e.nStar)," would recover about"," ",(0,s.jsx)("b",{children:Fx(e.peakProfit-e.curProfit)})," in cohort profit even as revenue dips."]})]}):(0,s.jsx)("div",{className:"cac-verdict is-bad",children:e.underwater?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:"You’re underwater at any scale."})," Even your cheapest customer costs more to acquire than the $",Ux(e.gp)," of gross profit they generate. Fix margins or LTV before scaling, that’s flaws #1 and #2."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:"Check your inputs."})," Set a margin between 1 and 99%, and make the “pushed” scenario have more customers ",(0,s.jsx)("i",{children:"and"})," a higher blended CAC than the “efficient” one (diminishing returns)."]})}),Hx=({m:e})=>
2{if(!e.valid)return null;const t=e.breakevenN,n=1.14*e.peakProfit,r=e=>56+e/t*644,a=e=>24+254*(1-e/n);let i="";for(let n=0;n<=80;n++){const s=t*n/80,o=Math.max(0,e.cohortProfit(s));i+=(n?"L":"M")+r(s).toFixed(1)+","+a(o).toFixed(1)+" "}const o=`${i}L${r(t).toFixed(1)},${a(0).toFixed(1)} L${r(0).toFixed(1)},${a(0).toFixed(1)} Z`,l=a(0),c=r(e.nStar),u=a(e.peakProfit),d=e.hasCurrent&&e.curN<=t,h=d?r(e.curN):0,p=d?a(Math.max(0,e.curProfit)):0;return(0,s.jsxs)("div",{className:"cac-card cac-chart-card",children:[(0,s.jsx)("span",{className:"cac-kicker is-warm",children:"The curve"}),(0,s.jsx)("h3",{className:"cac-card-title",children:"Cohort profit as you scale"}),(0,s.jsx)("p",{className:"cac-hint",children:"Profit climbs, then peaks where marginal CAC meets your gross-profit ceiling. Past the peak it falls away, and the whole game is pushing this peak further to the right."}),(0,s.jsx)("div",{className:"cac-chart-wrap",children:(0,s.jsxs)("svg",{className:"cac-chart",viewBox:"0 0 720 320",role:"img","aria-label":"Cohort profit curve",children:[(0,s.jsx)("line",{x1:r(0),y1:l,x2:r(t),y2:l,stroke:"#d9d8cc",strokeWidth:1}),(0,s.jsx)("path",{d:o,fill:"#ceff5b",opacity:.24}),(0,s.jsx)("path",{d:i,fill:"none",stroke:"#1c180e",strokeWidth:2.5}),(0,s.jsx)("line",{x1:c.toFixed(1),y1:u.toFixed(1),x2:c.toFixed(1),y2:l,stroke:"#1f7a3a",strokeWidth:1.5,strokeDasharray:"3 3"}),(0,s.jsx)("circle",{cx:c.toFixed(1),cy:u.toFixed(1),r:6,fill:"#ceff5b",stroke:"#1c180e",strokeWidth:2}),(0,s.jsx)("text",{x:c.toFixed(1),y:(u-12).toFixed(1),textAnchor:"middle",fontSize:13,fontWeight:700,fill:"#1c180e",children:`peak · ${Ux(e.nStar)}`}),d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:h.toFixed(1),cy:p.toFixed(1),r:5,fill:"#fff",stroke:"#b3261e",strokeWidth:2}),(0,s.jsx)("text",{x:h.toFixed(1),y:(p-12).toFixed(1),textAnchor:"middle",fontSize:12,fontWeight:700,fill:"#b3261e",children:"you"})]}),(0,s.jsx)("text",{x:r(0),y:306,fontSize:12,fill:"#6b6757",children:"0 customers"}),(0,s.jsx)("text",{x:r(t),y:306,textAnchor:"end",fontSize:12,fill:"#6b6757",children:`${Ux(t)} customers`}),(0,s.jsx)("text",{x:12,y:l+4,fontSize:12,fill:"#6b6757",children:"$0"})]})}),(0,s.jsxs)("div",{className:"cac-legend",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"cac-sw is-ink"}),"Cohort profit"]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"cac-sw is-lime"}),"Peak (scaling target)"]}),d&&(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"cac-sw is-you"}),"Where you are now"]})]})]})},zx=({m:e})=>e.valid&&0!==e.rows.length?(0,s.jsxs)("div",{className:"cac-card cac-table-card",children:[(0,s.jsx)("span",{className:"cac-kicker",children:"The scaling-target table"}),(0,s.jsx)("h3",{className:"cac-card-title",children:"Average vs marginal CAC at each spend level"}),(0,s.jsxs)("p",{className:"cac-hint",children:["Average CAC is what your systems show. Marginal CAC is the cost of the next customer. Once marginal CAC crosses your ",Fx(e.gp)," ceiling, every additional customer is a lifetime loss."]}),(0,s.jsx)("div",{className:"cac-tbl-scroll",children:(0,s.jsxs)("table",{className:"cac-cohort",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Customers / cohort"}),(0,s.jsx)("th",{children:"Marginal CAC"}),(0,s.jsx)("th",{children:"Average CAC"}),(0,s.jsx)("th",{children:"Cohort profit"})]})}),(0,s.jsx)("tbody",{children:e.rows.map(t=>(0,s.jsxs)("tr",{className:t.peak?"is-peak":t.be?"is-breakeven":void 0,children:[(0,s.jsx)("td",{children:Ux(t.n)}),(0,s.jsx)("td",{className:t.marg>e.gp?"is-neg":void 0,children:Fx(t.marg)}),(0,s.jsx)("td",{children:Fx(t.avg)}),(0,s.jsx)("td",{className:t.profit<0?"is-neg":void 0,children:Fx(t.profit)})]},t.n))})]})}),(0,s.jsxs)("div",{className:"cac-callout-line",children:[(0,s.jsx)("span",{className:"cac-callout-mk"}),(0,s.jsxs)("span",{children:["Break-even for the whole cohort lands around ",(0,s.jsxs)("b",{children:[Ux(e.breakevenN)," customers"]}),", where average CAC finally hits your ",Fx(e.gp)," ceiling and all the profit is wiped out. Everything past the peak got you there at a loss."]})]})]}):null,qx=({block:e})=>{var t,r,a,i,o,l,c,u;const d=null!==(t=e.defaults)&&void 0!==t?t:{},h=e=>
2"number"==typeof e&&isFinite(e)?String(e):"",[p,m]=(0,n.useState)(h(null!==(r=d.ltv)&&void 0!==r?r:100)),[f,v]=(0,n.useState)(h(null!==(a=d.margin_pct)&&void 0!==a?a:70)),[g,b]=(0,n.useState)(h(null!==(i=d.efficient_customers)&&void 0!==i?i:100)),[y,x]=(0,n.useState)(h(null!==(o=d.efficient_cac)&&void 0!==o?o:30)),[w,_]=(0,n.useState)(h(null!==(l=d.pushed_customers)&&void 0!==l?l:500)),[k,N]=(0,n.useState)(h(null!==(c=d.pushed_cac)&&void 0!==c?c:55)),[E,j]=(0,n.useState)(h(null!==(u=d.current_customers)&&void 0!==u?u:500)),S=e=>""===e?NaN:Number(e),C=(0,n.useMemo)(()=>function(e){const{ltv:t,margin:n,n1:r,c1:a,n2:s,c2:i,curN:o}=e,l=t*(n/100),c=s-r,u=0!==c?(i-a)/c:NaN,d=2*u,h=a-u*r,p=e=>h+d*e,m=e=>h+u*e,f=e=>h*e+u*e*e,v=e=>l*e-f(e),g=d>0?(l-h)/d:NaN,b=(h+l)/2,y=f(g),x=v(g),w=2*g,_=isFinite(o)&&o>0,k=p(o),N=v(o),E=isFinite(l)&&l>0&&n>0&&n<100&&r>0&&s>r&&a>0&&i>a&&isFinite(u)&&d>0,j=E&&h>=l,S=E&&!j&&g>0;let C="bad";S&&(C=_?o<.95*g?"under":o>1.05*g?"over":"peak":"none");const T=[];if(S){const e=[.25,.5,.75,1,1.25,1.5,2],t=new Set,n=g>200?10:1;for(const r of e){const e=Math.max(1,Math.round(g*r/n)*n);t.has(e)||(t.add(e),T.push({n:e,marg:p(e),avg:m(e),profit:v(e),peak:Math.abs(r-1)<.001,be:Math.abs(r-2)<.001}))}}return{gp:l,nStar:g,targetAvgCAC:b,targetSpend:y,peakProfit:x,breakevenN:w,hasCurrent:_,curN:o,curMarg:k,curProfit:N,valid:S,underwater:j,verdict:C,rows:T,cohortProfit:v}}({ltv:S(p),margin:S(f),n1:S(g),c1:S(y),n2:S(w),c2:S(k),curN:S(E)}),[p,f,g,y,w,k,E]),T=`rn-section rn-cac ${kx(e.class)}`.replace(/\s+/g," ").trim();return(0,s.jsx)("section",{className:T,children:(0,s.jsxs)("div",{className:"rn-wrap",children:[(0,s.jsx)(jx,{kicker:e.kicker,title:e.title,subtitle:e.subtitle}),(0,s.jsxs)("div",{className:"cac-calc",children:[(0,s.jsxs)("div",{className:"cac-card cac-in-card",children:[(0,s.jsx)("span",{className:"cac-kicker",children:"Inputs"}),(0,s.jsx)("p",{className:"cac-step",children:"Step 1 · Your true unit economics"}),(0,s.jsx)($x,{label:"Customer LTV",value:p,onChange:m,prefix:"money",hint:"Total revenue you collect from one customer over their lifetime."}),(0,s.jsx)($x,{label:"True gross margin",value:f,onChange:v,suffix:"pct",hint:"After product cost, freight, duties, tariffs, broker & merchant fees. Be honest here (flaw #1)."}),(0,s.jsx)("p",{className:"cac-step",children:"Step 2 · Calibrate your CAC curve"}),(0,s.jsx)("p",{className:"cac-hint cac-step-hint",children:"Two real spend scenarios you can estimate. As you push spend, you acquire more customers but blended CAC rises. This is the calibration exercise Abir describes."}),(0,s.jsxs)("div",{className:"cac-anchor-grid",children:[(0,s.jsx)($x,{label:"Efficient: customers",value:g,onChange:b,hint:"A lower, efficient spend level."}),(0,s.jsx)($x,{label:"…at blended CAC",value:y,onChange:x,prefix:"money"}),(0,s.jsx)($x,{label:"Pushed: customers",value:w,onChange:_,hint:"A higher spend level."}),(0,s.jsx)($x,{label:"…at blended CAC",value:k,onChange:N,prefix:"money"})]}),(0,s.jsx)("p",{className:"cac-step",children:"Step 3 · Where are you now? (optional)"}),(0,s.jsx)($x,{label:"Current new customers per cohort",value:E,onChange:j,hint:"Optional. Only used to place you on the curve and give the under / over verdict. It doesn't change your target."})]}),(0,s.jsxs)("div",{className:"cac-card cac-out-card",children:[(0,s.jsx)("span",{className:"cac-kicker is-lime",children:"Your results"}),(0,s.jsx)(Bx,{m:C})]})]}),(0,s.jsx)(Hx,{m:C}),(0,s.jsx)(zx,{m:C})]})})},Gx=JSON.parse('{"window":"Nov 28 – Dec 1, 2025 (BFCM weekend)","industries":{"Health & Wellness":{"totals":{"creatives":25499,"accounts":895,"spendUSD":13534702},"messaging":[{"value":"Discount / Sale / Promotion","pct":35.9},{"value":"Health & Wellness","pct":14.6},{"value":"Product Features & Benefits","pct":4.3},{"value":"DEXA-Comparable Accuracy","pct":3.1},{"value":"Problem-Solution","pct":3},{"value":"Comprehensive Testing","pct":2.5}],"hooks":[{"value":"Relatability","pct":4.8},{"value":"Curiosity","pct":3.6},{"value":"Storytelling","pct":2.9},{"value":"Question","pct":2.7},{"value":"Urgency","pct":2.7},{"value":"Contrast","pct":2.4}],"formats":[{"value":"Offer-First Banner","pct":32.3},{"value":"Testimonial","pct":8.8},{"value":"Letter","pct":6.2},{"value":"Headline","pct":5.2},{"value":"Demo","pct":3.8},{"value":"Listicle","pct":3}]},"Fashion & Apparel":{"totals":{"creatives":35960,"accounts":1269,"spendUSD":16614231},"messaging":[{"value":"Discount / Sale / Promotion","pct":56},{"value":"Product Features & Benefits","pct":11.6},{"value":"Style & Self-Expression","pct":3.9},{"value":"Gifting","pct":3.6},{"value":"Other","pct":1.4},{"value":"Newness & Availability","pct":1.4}],"hooks":[{"value":"Urgency","pct":3.6},{"value":"Relatability","pct":3.6},{"value":"Offer Only","pct":2.9},{"value":"None","pct":2.2},{"value":"Storytelling","pct":2.1},{"value":"Curiosity","pct":2}],"formats":[{"value":"Offer-First Banner","pct":44},{"value":"Headline","pct":7.3},{"value":"Montage","pct":5.7},{"value":"Demo","pct":5.3},{"value":"Testimonial","pct":4},{"value":"None","pct":2.7}]},"Beauty & Personal Care":{"totals":{"creatives":21266,"accounts":809,"spendUSD":10346676},"messaging":[{"value":"Discount / Sale / Promotion","pct":53.4},{"value":"Gifting","pct":5.7},{"value":"Product Features & Benefits","pct":4.7},{"value":"Convenience & Ease","pct":3.7},{"value":"Health & Wellness","pct":2.3},{"value":"Social Proof / Endorsement","pct":2}],"hooks":[{"value":"Relatability","pct":5.6},{"value":"Urgency","pct":4.6},{"value":"Offer Only","pct":4.2},{"value":"Curiosity","pct":2.7},{"value":"Bold Claim","pct":2.7},{"value":"Storytelling","pct":2.5}],"formats":[{"value":"Offer-First Banner","pct":37.8},{"value":"Demo","pct":7},{"value":"Testimonial","pct":5.8},{"value":"Headline","pct":3.7},{"value":"Montage","pct":3.4},{"value":"Post It","pct":2.7}]},"Home & Lifestyle":{"totals":{"creatives":19940,"accounts":821,"spendUSD":10669559},"messaging":[{"value":"Discount / Sale / Promotion","pct":58.9},{"value":"Product Features & Benefits","pct":8.6},{"value":"Gifting","pct":2.5},{"value":"Convenience & Ease","pct":2},{"value":"Social Proof / Endorsement","pct":1.6},{"value":"Health & Wellness","pct":1.5}],"hooks":[{"value":"Urgency","pct":5.5},{"value":"Relatability","pct":4},{"value":"Bold Claim","pct":3.8},{"value":"Question","pct":3.4},{"value":"Offer Only","pct":3.3},{"value":"Confession","pct":2.6}],"formats":[{"value":"Offer-First Banner","pct":40.6},{"value":"Headline","pct":9},{"value":"Demo","pct":7},{"value":"Testimonial","pct":4.5},{"value":"Montage","pct":4.5},{"value":"Celebrity","pct":3}]},"Other":{"totals":{"creatives":6034,"accounts":340,"spendUSD":4348970},"messaging":[{"value":"Discount / Sale / Promotion","pct":62},{"value":"Other","pct":4},{"value":"Product Features & Benefits","pct":3.4},{"value":"Dog Longevity","pct":2.9},{"value":"Health & Wellness","pct":2.4},{"value":"Family Organization","pct":1.9}],"hooks":[{"value":"Relatability","pct":5.4},{"value":"Urgency","pct":5},{"value":"Bold Claim","pct":2.9},{"value":"Storytelling","pct":2.3},{"value":"How To","pct":1.6},{"value":"Question","pct":1.5}],"formats":[{"value":"Offer-First Banner","pct":48.8},{"value":"Demo","pct":5.3},{"value":"Testimonial","pct":5.3},{"value":"Headline","pct":3.9},{"value":"Montage","pct":2},{"value":"Text Message","pct":1.9}]},"Food & Nutrition":{"totals":{"creatives":9219,"accounts":459,"spendUSD":3740985},"messaging":[{"value":"Discount / Sale / Promotion","pct":49.3},{"value":"Product Features & Benefits","pct":5.7},{"value":"Convenience & Ease","pct":5.5},{"value":"Gifting","pct":4.5},{"value":"Health & Wellness","pct":4.3},{"value":"Social Proof / Endorsement","pct":2.1}],"hooks":[{"value":"Urgency","pct":6.2},{"value":"Relatability","pct":6.1},{"value":"Curiosity","pct":4.2},{"value":"Storytelling","pct":4},{"value":"Question","pct":3.9},{"value":"Bold Claim","pct":2.8}],"formats":[{"value":"Offer-First Banner","pct":32},{"value":"Montage","pct":8.8},{"value":"Testimonial","pct":8.2},{"value":"Headline","pct":5},{"value":"Demo","pct":4},{"value":"Founder","pct":2.9}]},"Education":{"totals":{"creatives":4292,"accounts":198,"spendUSD":1094823},"messaging":[{"value":"Discount / Sale / Promotion","pct":30.6},{"value":"Health & Wellness","pct":6.3},{"value":"Convenience & Ease","pct":3.8},{"value":"Lifetime Access","pct":3.5},{"value":"Untold Stories","pct":3.2},{"value":"Social Proof / Endorsement","pct":2.6}],"hooks":[{"value":"Relatability","pct":4.8},{"value":"Storytelling","pct":4},{"value":"Question","pct":3.6},{"value":"Contrast","pct":2.8},{"value":"Curiosity","pct":2.5},{"value":"Social Proof","pct":2.5}],"formats":[{"value":"Offer-First Banner","pct":25.2},{"value":"Headline","pct":11.8},{"value":"Demo","pct":4.6},{"value":"Static To Video Hybrid","pct":4.4},{"value":"Testimonial","pct":4.2},{"value":"Listicle","pct":4.1}]},"Technology":{"totals":{"creatives":6172,"accounts":237,"spendUSD":8223649},"messaging":[{"value":"Creative Trends","pct":20.6},{"value":"Social Proof / Endorsement","pct":15.8},{"value":"Discount / Sale / Promotion","pct":10.2},{"value":"Future Trends & Staying Ahead","pct":4},{"value":"Future Creative Trends","pct":4},{"value":"Competitive Advantage","pct":4}],"hooks":[{"value":"Contrast","pct":2.5},{"value":"Storytelling","pct":2.4},{"value":"Relatability","pct":2.1},{"value":"Question","pct":1.4},{"value":"Curiosity","pct":1.2},{"value":"Bold Claim","pct":1.1}],"formats":[{"value":"Headline","pct":61.9},{"value":"Split Screen","pct":7.6},{"value":"Offer-First Banner","pct":3.9},{"value":"Grid Swap","pct":3.4},{"value":"Testimonial","pct":2.7},{"value":"Meme","pct":2.2}]},"Pets":{"totals":{"creatives":4227,"accounts":164,"spendUSD":3330149},"messaging":[{"value":"Discount / Sale / Promotion","pct":53.8},{"value":"Product Features & Benefits","pct":8.8},{"value":"Health & Wellness","pct":6.5},{"value":"One Bracelet = 10 Meals","pct":4.7},{"value":"Problem-Solution","pct":2.6},{"value":"Longer Life","pct":1.5}],"hooks":[{"value":"Relatability","pct":5.1},{"value":"Urgency","pct":3.7},{"value":"Offer Only","pct":3.5},{"value":"Storytelling","pct":3.2},{"value":"Curiosity","pct":2.9},{"value":"If Then","pct":2.8}],"formats":[{"value":"Offer-First Banner","pct":47.3},{"value":"Demo","pct":6.3},{"value":"Testimonial","pct":6.1},{"value":"Montage","pct":3.9},{"value":"None","pct":3.5},{"value":"Sign","pct":3}]},"Fitness & Sports":{"totals":{"creatives":4117,"accounts":180,"spendUSD":1315028},"messaging":[{"value":"Discount / Sale / Promotion","pct":41.9},{"value":"Product Features & Benefits","pct":12.1},{"value":"Convenience & Ease","pct":3.2},{"value":"Other","pct":2.2},{"value":"Gifting","pct":2.1},{"value":"Health & Wellness","pct":1.9}],"hooks":[{"value":"Urgency","pct":6.8},{"value":"Storytelling","pct":5.3},{"value":"Question","pct":5},{"value":"Curiosity","pct":4.2},{"value":"Relatability","pct":3.6},{"value":"Bold Claim","pct":3.3}],"formats":[{"value":"Offer-First Banner","pct":38.1},{"value":"Demo","pct":9.5},{"value":"Headline","pct":7.2},{"value":"Testimonial","pct":6},{"value":"Montage","pct":5.5},{"value":"Listicle","pct":4}]},"Professional Services":{"totals":{"creatives":2138,"accounts":205,"spendUSD":514866},"messaging":[{"value":"Discount / Sale / Promotion","pct":29.1},{"value":"Social Proof / Endorsement","pct":4.4},{"value":"Product Features & Benefits","pct":2.9},{"value":"Revenue Growth","pct":2.8},{"value":"Business Growth","pct":2.2},{"value":"Problem-Solution","pct":2}],"hooks":[{"value":"Storytelling","pct":5.3},{"value":"Question","pct":4.3},{"value":"Relatability","pct":4},{"value":"Curiosity","pct":2.9},{"value":"How To","pct":2.3},{"value":"Directive","pct":2}
2],"formats":[{"value":"Offer-First Banner","pct":16.6},{"value":"Headline","pct":11.5},{"value":"Testimonial","pct":7},{"value":"Split Screen","pct":5},{"value":"Notes App","pct":5},{"value":"Listicle","pct":4.5}]},"Entertainment & Media":{"totals":{"creatives":2638,"accounts":155,"spendUSD":764821},"messaging":[{"value":"Discount / Sale / Promotion","pct":23},{"value":"Afterlife Love Triangle","pct":7},{"value":"Other","pct":5.1},{"value":"Dream Big","pct":4.5},{"value":"Physical And Digital Play","pct":4.5},{"value":"Insider Access","pct":3.7}],"hooks":[{"value":"Curiosity","pct":7.2},{"value":"Storytelling","pct":5.7},{"value":"Relatability","pct":5.2},{"value":"Shocking Statement","pct":3.5},{"value":"Urgency","pct":3.2},{"value":"Bold Claim","pct":3}],"formats":[{"value":"Offer-First Banner","pct":18.2},{"value":"Montage","pct":12.4},{"value":"Headline","pct":11},{"value":"Demo","pct":7.3},{"value":"Skit","pct":5.6},{"value":"Celebrity","pct":4.7}]},"Finance":{"totals":{"creatives":1465,"accounts":124,"spendUSD":558769},"messaging":[{"value":"Discount / Sale / Promotion","pct":21.7},{"value":"Financial Clarity","pct":7.5},{"value":"Automated Investing","pct":5.2},{"value":"Convenience & Ease","pct":3.9},{"value":"Newness & Availability","pct":3.7},{"value":"High Growth Potential","pct":3.3}],"hooks":[{"value":"Relatability","pct":8.8},{"value":"Question","pct":7.3},{"value":"Storytelling","pct":4.9},{"value":"Curiosity","pct":3.5},{"value":"Demographic Callout","pct":2.3},{"value":"Shocking Statement","pct":1.7}],"formats":[{"value":"Offer-First Banner","pct":14.8},{"value":"Headline","pct":14.4},{"value":"Testimonial","pct":8.8},{"value":"Infographic","pct":6.6},{"value":"Billboard","pct":3.7},{"value":"Meme","pct":3.7}]},"Travel & Hospitality":{"totals":{"creatives":2398,"accounts":145,"spendUSD":1061640},"messaging":[{"value":"Discount / Sale / Promotion","pct":42.3},{"value":"Discover Local Hidden Gems","pct":14.5},{"value":"Gifting","pct":11.3},{"value":"Avoid Baggage Fees","pct":4.9},{"value":"Convenience & Ease","pct":2.9},{"value":"Surprise and Spontaneity","pct":1.6}],"hooks":[{"value":"Bold Claim","pct":9.6},{"value":"Storytelling","pct":7.4},{"value":"Curiosity","pct":7.2},{"value":"Demographic Callout","pct":5.7},{"value":"Urgency","pct":4.4},{"value":"Relatability","pct":3.7}],"formats":[{"value":"Offer-First Banner","pct":28.9},{"value":"Demo","pct":16.6},{"value":"Testimonial","pct":11.4},{"value":"Montage","pct":9.1},{"value":"Headline","pct":4.2},{"value":"How To","pct":3.9}]},"Automotive":{"totals":{"creatives":1479,"accounts":95,"spendUSD":440446},"messaging":[{"value":"Discount / Sale / Promotion","pct":42.5},{"value":"Avoid Fines","pct":16.5},{"value":"Financial Incentives","pct":12.5},{"value":"Sustainability & Ethics","pct":2.7},{"value":"Real Time Alerts","pct":2.3},{"value":"Social Proof / Endorsement","pct":1.8}],"hooks":[{"value":"Question","pct":9.4},{"value":"Urgency","pct":8},{"value":"Relatability","pct":5.5},{"value":"Bold Claim","pct":4.3},{"value":"Storytelling","pct":4.2},{"value":"Curiosity","pct":3}],"formats":[{"value":"Offer-First Banner","pct":43.7},{"value":"Demo","pct":11.3},{"value":"Testimonial","pct":4.5},{"value":"Unboxing","pct":4.4},{"value":"Behind The Scenes","pct":3.5},{"value":"Screen Recording","pct":3.4}]},"Parenting & Family":{"totals":{"creatives":1359,"accounts":88,"spendUSD":496164},"messaging":[{"value":"Discount / Sale / Promotion","pct":51.9},{"value":"Creative Play","pct":7.2},{"value":"Product Features & Benefits","pct":6.8},{"value":"Style & Self-Expression","pct":5.5},{"value":"Personalization","pct":2.7},{"value":"Coordinated Sets","pct":2.3}],"hooks":[{"value":"Offer Only","pct":8.6},{"value":"Relatability","pct":8},{"value":"Urgency","pct":4.2},{"value":"Curiosity","pct":2.7},{"value":"None","pct":1.4},{"value":"Demographic Callout","pct":1.1}],"formats":[{"value":"Offer-First Banner","pct":40},{"value":"Demo","pct":8.9},{"value":"None","pct":7.4},{"value":"Headline","pct":5},{"value":"Montage","pct":5},{"value":"Unconventional Text Placement","pct":2.8}]},"Social & Civic":{"totals":{"creatives":143,"accounts":4,"spendUSD":13690},"messaging":[{"value":"Animal Welfare & Protection","pct":11.1},{"value":"Tangible Impact","pct":8.1},{"value":"Protecting The Vulnerable","pct":7.5},{"value":"Health & Wellness","pct":6.8},{"value":"No Drama, No Wasted Time","pct":6.1},{"value":"Triple Impact","pct":6}],"hooks":[{"value":"Curiosity","pct":5},{"value":"Bold Claim","pct":4.2},{"value":"Directive","pct":3.5},{"value":"Direct Address","pct":3.1},{"value":"Question","pct":2.7},{"value":"How To","pct":1.7}],"formats":[{"value":"Headline","pct":41.2},{"value":"Split Screen","pct":21.5},{"value":"Testimonial","pct":7.6},{"value":"Offer-First Banner","pct":6},{"value":"Screen Recording","pct":4.5},{"value":"Montage","pct":3.5}]},"Faith & Spirituality":{"totals":{"creatives":173,"accounts":7,"spendUSD":103637},"messaging":[{"value":"Bible As A Podcast","pct":34.8},{"value":"Health & Wellness","pct":19.7},{"value":"Personal Transformation","pct":13},{"value":"Discount / Sale / Promotion","pct":9.4},{"value":"Deep Relaxing Sleep","pct":6.2},{"value":"Authentic Product","pct":3.4}],"hooks":[{"value":"Question","pct":45.4},{"value":"If Then","pct":11.1},{"value":"Directive","pct":7.2},{"value":"Storytelling","pct":6.7},{"value":"Relatability","pct":4.4},{"value":"Contrast","pct":3.4}],"formats":[{"value":"Cinematic B-Roll","pct":28.5},{"value":"Screen Recording","pct":14.1},{"value":"Greenscreen","pct":9.6},{"value":"Montage","pct":6.3},{"value":"Testimonial","pct":5.3},{"value":"Celebrity","pct":5}]},"Real Estate":{"totals":{"creatives":281,"accounts":45,"spendUSD":73947},"messaging":[{"value":"Discount / Sale / Promotion","pct":17.1},{"value":"Homes For Every Life Stage","pct":15.5},{"value":"Low Maintenance","pct":10.2},{"value":"Flexible Space","pct":6.2},{"value":"Low Monthly Payments","pct":5.4},{"value":"Affordability","pct":4.1}],"hooks":[{"value":"Aspirational","pct":1.4},{"value":"Explainer","pct":1.2},{"value":"Bold Claim","pct":0.9},{"value":"Question","pct":0.7},{"value":"Urgency","pct":0.5},{"value":"Other","pct":0.4}],"formats":[{"value":"Offer-First Banner","pct":24.7},{"value":"Headline","pct":19.9},{"value":"Feature Benefit Pointout","pct":18.4},{"value":"Listicle","pct":11.3},{"value":"Infographic","pct":7.4},{"value":"Split Screen","pct":3.5}]},"Emergency Preparedness":{"totals":{"creatives":87,"accounts":2,"spendUSD":35304},"messaging":[{"value":"Discount / Sale / Promotion","pct":54.4},{"value":"Peace of Mind","pct":25.2},{"value":"Self-Reliance & Independence","pct":2.7},{"value":"Off-Grid Power & Applications","pct":2.4},{"value":"Powering Essentials","pct":2.1},{"value":"Peace Of Mind","pct":2}],"hooks":[{"value":"Urgency","pct":8.5},{"value":"Other","pct":3.7},{"value":"Relatability","pct":2.8},{"value":"Offer Only","pct":2},{"value":"Social Proof","pct":1.9},{"value":"Contrast","pct":1.4}],"formats":[{"value":"Offer-First Banner","pct":33.6},{"value":"Letter","pct":27.7},{"value":"None","pct":8.2},{"value":"Demo","pct":7.4},{"value":"Testimonial","pct":4.7},{"value":"Behind The Scenes","pct":3.8}]},"Toys & Games":{"totals":{"creatives":143,"accounts":4,"spendUSD":240128},"messaging":[{"value":"Discount / Sale / Promotion","pct":46.9},{"value":"Product Features & Benefits","pct":19.2},{"value":"Fandom & Collectibility","pct":10.1},{"value":"Next Level Building","pct":4.5},{"value":"Convenience & Ease","pct":3.8},{"value":"Gifting","pct":3.4}],"hooks":[{"value":"Listicle","pct":3.1},{"value":"Curiosity","pct":2.8},{"value":"Contrast","pct":2.7},{"value":"Relatability","pct":2.2},{"value":"None","pct":2},{"value":"Bold Claim","pct":1.6}],"formats":[{"value":"Offer-First Banner","pct":40},{"value":"None","pct":14.6},{"value":"Headline","pct":13.4},{"value":"Montage","pct":8},{"value":"Demo","pct":3.4},{"value":"Feature Benefit Pointout","pct":2.5}]},"Environmental":{"totals":{"creatives":151,"accounts":4,"spendUSD":116252},"messaging":[{"value":"Track A Real Animal","pct":54.1},{"value":"Gifting","pct":27},{"value":"Discount / Sale / Promotion","pct":18},{"value":"Sustainability & Ethics","pct":0.6},{"value":"Newness & Availability","pct":0.1},{"value":"Feel Connected","pct":0.1}],"hooks":[{"value":"Question","pct":6.6},{"value":"Curiosity","pct":3.1},{"value":"Bold Claim","pct":0.3},{"value":"Relatability","pct":0.1},{"value":"FOMO","pct":0.1},{"value":"Storytelling","pct":0.1}],"formats":[{"value":"Meme","pct":31.5},{"value":"Offer-First Banner","pct":19.6},{"value":"Headline","pct":17.3},{"value":"Grid Swap","pct":12.6},{"value":"Testimonial","pct":4.2},{"value":"Screen Recording","pct":3.8}]},"Marketplace & Retail":{"totals":{"creatives":50,"accounts":5,"spendUSD":7419},"messaging":[{"value":"Discount / Sale / Promotion","pct":53.4},{"value":"Gifting","pct":37.9},{"value":"Product Spotlight","pct":4.9},{"value":"Find Rare & Unique Items","pct":2.1},{"value":"Financial Accessibility","pct":0.6},{"value":"Outdoor Adventure","pct":0.3}],"hooks":[{"value":"Urgency","pct":14.1},{"value":"Listicle","pct":1.1},{"value":"Curiosity","pct":0.9},{"value":"Relatability","pct":0.3}],"formats":[{"value":"Offer-First Banner","pct":44.9},{"value":"Headline","pct":34.5},{"value":"Montage","pct":7.3},{"value":"Grid Swap","pct":4.8},{"value":"Split Screen","pct":2.5},{"value":"Other","pct":2.2}]},"Energy & Utilities":{"totals":{"creatives":14,"accounts":3,"spendUSD":1003},"messaging":[{"value":"Control","pct":38.4},{"value":"Discount / Sale / Promotion","pct":27.2},{"value":"Welcome Credit","pct":26.8},{"value":"Cash Rewards","pct":7.6}],"hooks":[{"value":"Relatability","pct":38.4},{"value":"Storytelling","pct":18.4},{"value":"Curiosity","pct":7.6},{"value":"Belief","pct":6.6}],"formats":[{"value":"Skit","pct":38.4},{"value":"Offer-First Banner","pct":26.8},{"value":"Testimonial","pct":18.6},{"value":"Behind The Scenes","pct":7},{"value":"Transformation","pct":3.3},{"value":"Case Study","pct":2.7}]},"Gifts & Flowers":{"totals":{"creatives":21,"accounts":1,"spendUSD":5155},"messaging":[{"value":"Discount / Sale / Promotion","pct":60.5},{"value":"Convenience & Ease","pct":17.6},{"value":"Connecting Despite Distance","pct":8.6},{"value":"For Every Occasion","pct":5.3},{"value":"Gifting","pct":3.4},{"value":"Social Proof / Endorsement","pct":2.8}],"hooks":[],"formats":[{"value":"Offer-First Banner","pct":58.9},{"value":"Headline","pct":15.5},{"value":"Text Message","pct":13.8},{"value":"Review","pct":11.7}]},"Safety":{"totals":{"creatives":2,"accounts":1,"spendUSD":49},"messaging":[{"value":"Enhanced Visibility","pct":100}],"hooks":[],"formats":[{"value":"Feature Benefit Pointout","pct":72.2},{"value":"Us Vs Them","pct":27.9}]},"Experience":{"totals":{"creatives":3,"accounts":1,"spendUSD":78},"messaging":[{"value":"Skill Building","pct":69.2},{"value":"Guided Workshop","pct":22},{"value":"Personalization","pct":8.8}],"hooks":[{"value":"Bold Claim","pct":69.2},{"value":"Challenge","pct":8.8}],"formats":[{"value":"Montage","pct":27.5},{"value":"Behind The Scenes","pct":27.5},{"value":"How To","pct":23.1},{"value":"Headline","pct":22}]}}}'),Wx=JSON.parse('{"window":"Sep 1 - Nov 14, 2025 (run-up to BFCM)","source":"Motion platform Facebook ads, lift = category share / overall share","industries":{"Health & Wellness":{"activeCreatives":75005,"hooks":[{"value":"Explainer","lift":2.06,"industryShare":3,"overallShare":1.4,"creatives":987},{"value":"Myth Busting","lift":1.61,"industryShare":2,"overallShare":1.2,"creatives":667},{"value":"Warning","lift":1.5,"industryShare":1.7,"overallShare":1.1,"creatives":568},{"value":"Listicle","lift":1.46,"industryShare":2.9,"overallShare":2,"creatives":963},{"value":"Statistic","lift":1.45,"industryShare":1.1,"overallShare":0.7,"creatives":349}],"formats":[{"value":"Unconventional Text Placement","lift":2.26,"industryShare":0.4,"overallShare":0.2,"creatives":488},{"value":"Infographic","lift":2.09,"industryShare":1.3,"overallShare":0.6,"creatives":1527},{"value":"Educational","lift":2.02,"industryShare":2.6,"overallShare":1.3,"creatives":3082},{"value":"Expert Explainer","lift":1.96,"industryShare":2.4,"overallShare":1.2,"creatives":2779},{"value":"Duet","lift":1.9,"industryShare":0.1,"overallShare":0.1,"creatives":141}],"mechanisms":[{"value":"Authority / Expertise","lift":2.41,"industryShare":2.1,"overallShare":0.9,"creatives":1245},{"value":"Health & Wellness Outcomes","lift":2.39,"industryShare":37.4,"overallShare":15.6,"creatives":22440},{"value":"Problem-Solution","lift":1.94,"industryShare":12.7,"overallShare":6.6,"creatives":7639},{"value":"Value / Affordability","lift":1.11,"industryShare":0.9,"overallShare":0.8,"creatives":541},{"value":"Sustainability & Ethics","lift":0.94,"industryShare":2.1,"overallShare":2.3,"creatives":1274}]},"Fashion & Apparel":{"activeCreatives":64191,"hooks":[{"value":"Aspirational","lift":2.69,"industryShare":13,"overallShare":4.8,"creatives":2722},{"value":"Offer Only","lift":2.2,"industryShare":5.5,"overallShare":2.5,"creatives":1149},{"value":"Belief","lift":1.86,"industryShare":1.1,"overallShare":0.6,"creatives":235},{"value":"Exclusivity","lift":1.86,"industryShare":0.7,"overallShare":0.4,"creatives":151}
2,{"value":"FOMO","lift":1.79,"industryShare":1.3,"overallShare":0.8,"creatives":280}],"formats":[{"value":"Product Shot","lift":5.19,"industryShare":0.1,"overallShare":0,"creatives":87},{"value":"Unformatted","lift":2.93,"industryShare":0.9,"overallShare":0.3,"creatives":736},{"value":"Nostalgia","lift":2.62,"industryShare":1.4,"overallShare":0.6,"creatives":1122},{"value":"Cinematic B-Roll","lift":2.34,"industryShare":3.8,"overallShare":1.6,"creatives":2931},{"value":"Grid Swap","lift":2.11,"industryShare":2.8,"overallShare":1.3,"creatives":2185}],"mechanisms":[{"value":"Newness & Availability","lift":3.46,"industryShare":7.1,"overallShare":2.1,"creatives":3561},{"value":"Identity / Style / Self-Expression","lift":3.42,"industryShare":20.5,"overallShare":6,"creatives":10216},{"value":"Luxury & Premium","lift":2.07,"industryShare":1.7,"overallShare":0.8,"creatives":830},{"value":"Product Features & Benefits","lift":1.54,"industryShare":24.4,"overallShare":15.8,"creatives":12150},{"value":"Social Proof / Endorsement","lift":1.3,"industryShare":4.8,"overallShare":3.7,"creatives":2402}]},"Beauty & Personal Care":{"activeCreatives":46069,"hooks":[{"value":"Social Proof","lift":1.47,"industryShare":4.4,"overallShare":3,"creatives":967},{"value":"Exclusivity","lift":1.4,"industryShare":0.6,"overallShare":0.4,"creatives":120},{"value":"Reverse Psychology","lift":1.35,"industryShare":0.2,"overallShare":0.2,"creatives":53},{"value":"Confession","lift":1.28,"industryShare":2.6,"overallShare":2,"creatives":572},{"value":"Bold Claim","lift":1.23,"industryShare":6.5,"overallShare":5.3,"creatives":1430}],"formats":[{"value":"Before And After","lift":2,"industryShare":7,"overallShare":3.5,"creatives":5350},{"value":"Social Proof Mashup","lift":1.97,"industryShare":1.9,"overallShare":1,"creatives":1470},{"value":"How To","lift":1.75,"industryShare":2.6,"overallShare":1.5,"creatives":2003},{"value":"Transformation","lift":1.63,"industryShare":1.3,"overallShare":0.8,"creatives":994},{"value":"Demo","lift":1.52,"industryShare":12.6,"overallShare":8.3,"creatives":9595}],"mechanisms":[{"value":"Sustainability & Ethics","lift":2.12,"industryShare":4.8,"overallShare":2.3,"creatives":1708},{"value":"Gifting","lift":1.54,"industryShare":2.1,"overallShare":1.3,"creatives":736},{"value":"Convenience & Ease","lift":1.26,"industryShare":8.8,"overallShare":7,"creatives":3151},{"value":"Luxury & Premium","lift":1.2,"industryShare":1,"overallShare":0.8,"creatives":345},{"value":"Fear / Risk Avoidance","lift":1.19,"industryShare":4,"overallShare":3.4,"creatives":1430}]},"Home & Lifestyle":{"activeCreatives":36776,"hooks":[{"value":"Urgency","lift":1.74,"industryShare":5.6,"overallShare":3.2,"creatives":872},{"value":"Offer Only","lift":1.53,"industryShare":3.8,"overallShare":2.5,"creatives":592},{"value":"Call To Action First","lift":1.3,"industryShare":0.5,"overallShare":0.4,"creatives":72},{"value":"Exclusivity","lift":1.28,"industryShare":0.5,"overallShare":0.4,"creatives":77},{"value":"Directive","lift":1.18,"industryShare":3.2,"overallShare":2.7,"creatives":496}],"formats":[{"value":"Time Lapse","lift":5.41,"industryShare":0.9,"overallShare":0.2,"creatives":509},{"value":"Behind The Scenes","lift":1.63,"industryShare":1.7,"overallShare":1,"creatives":919},{"value":"Grid Swap","lift":1.52,"industryShare":2,"overallShare":1.3,"creatives":1111},{"value":"Demo","lift":1.44,"industryShare":12,"overallShare":8.3,"creatives":6529},{"value":"Offer-First Banner","lift":1.43,"industryShare":16,"overallShare":11.2,"creatives":8738}],"mechanisms":[{"value":"Emotional / Relationship","lift":2.21,"industryShare":4.2,"overallShare":1.9,"creatives":1201},{"value":"Gifting","lift":2.15,"industryShare":2.9,"overallShare":1.3,"creatives":818},{"value":"Sustainability & Ethics","lift":1.59,"industryShare":3.6,"overallShare":2.3,"creatives":1024},{"value":"Luxury & Premium","lift":1.54,"industryShare":1.2,"overallShare":0.8,"creatives":353},{"value":"Discount / Sale / Promotion","lift":1.45,"industryShare":37.7,"overallShare":25.9,"creatives":10700}]},"Other":{"activeCreatives":30331,"hooks":[{"value":"FOMO","lift":1.23,"industryShare":0.9,"overallShare":0.8,"creatives":124},{"value":"Contrast","lift":1.22,"industryShare":5.8,"overallShare":4.7,"creatives":776},{"value":"Statistic","lift":1.21,"industryShare":0.9,"overallShare":0.7,"creatives":118},{"value":"Belief","lift":1.19,"industryShare":0.7,"overallShare":0.6,"creatives":96},{"value":"Shocking Statement","lift":1.14,"industryShare":2.7,"overallShare":2.3,"creatives":357}],"formats":[{"value":"Case Study","lift":2.41,"industryShare":1.4,"overallShare":0.6,"creatives":633},{"value":"Reaction Video","lift":1.93,"industryShare":0.6,"overallShare":0.3,"creatives":275},{"value":"Social Proof Mashup","lift":1.49,"industryShare":1.5,"overallShare":1,"creatives":684},{"value":"Before And After","lift":1.36,"industryShare":4.8,"overallShare":3.5,"creatives":2231},{"value":"Letter","lift":1.36,"industryShare":0.5,"overallShare":0.4,"creatives":246}],"mechanisms":[{"value":"Fear / Risk Avoidance","lift":1.26,"industryShare":4.2,"overallShare":3.4,"creatives":932},{"value":"Discount / Sale / Promotion","lift":1.24,"industryShare":32,"overallShare":25.9,"creatives":7021},{"value":"Sustainability & Ethics","lift":1.24,"industryShare":2.8,"overallShare":2.3,"creatives":618},{"value":"Value / Affordability","lift":1.21,"industryShare":1,"overallShare":0.8,"creatives":216},{"value":"Convenience & Ease","lift":1.05,"industryShare":7.3,"overallShare":7,"creatives":1612}]},"Food & Nutrition":{"activeCreatives":21379,"hooks":[{"value":"Authority","lift":1.5,"industryShare":2.6,"overallShare":1.8,"creatives":289},{"value":"Exclusivity","lift":1.48,"industryShare":0.6,"overallShare":0.4,"creatives":63},{"value":"Statistic","lift":1.41,"industryShare":1,"overallShare":0.7,"creatives":112},{"value":"FOMO","lift":1.31,"industryShare":1,"overallShare":0.8,"creatives":107},{"value":"How To","lift":1.21,"industryShare":4.4,"overallShare":3.6,"creatives":478}],"formats":[{"value":"Unboxing","lift":3.01,"industryShare":4.2,"overallShare":1.4,"creatives":1415},{"value":"Reaction Video","lift":2.64,"industryShare":0.8,"overallShare":0.3,"creatives":272},{"value":"Behind The Scenes","lift":2,"industryShare":2.1,"overallShare":1,"creatives":696},{"value":"Celebrity","lift":1.94,"industryShare":1.2,"overallShare":0.6,"creatives":414},{"value":"Stop Motion","lift":1.86,"industryShare":0.4,"overallShare":0.2,"creatives":140}],"mechanisms":[{"value":"Convenience & Ease","lift":1.78,"industryShare":12.5,"overallShare":7,"creatives":2100},{"value":"Sustainability & Ethics","lift":1.76,"industryShare":4,"overallShare":2.3,"creatives":670},{"value":"Product Features & Benefits","lift":1.43,"industryShare":22.6,"overallShare":15.8,"creatives":3799},{"value":"Gifting","lift":1.26,"industryShare":1.7,"overallShare":1.3,"creatives":283},{"value":"Health & Wellness Outcomes","lift":1.14,"industryShare":17.8,"overallShare":15.6,"creatives":3005}]},"Education":{"activeCreatives":14793,"hooks":[{"value":"Myth Busting","lift":2.92,"industryShare":3.6,"overallShare":1.2,"creatives":326},{"value":"How To","lift":2.5,"industryShare":9.1,"overallShare":3.6,"creatives":815},{"value":"Demographic Callout","lift":2,"industryShare":7.1,"overallShare":3.6,"creatives":639},{"value":"Social Proof","lift":1.89,"industryShare":5.6,"overallShare":3,"creatives":505},{"value":"Reasons Why","lift":1.34,"industryShare":0.5,"overallShare":0.4,"creatives":48}],"formats":[{"value":"Animation","lift":16.94,"industryShare":0.3,"overallShare":0,"creatives":72},{"value":"Static To Video Hybrid","lift":4.48,"industryShare":5.8,"overallShare":1.3,"creatives":1282},{"value":"Educational","lift":4.02,"industryShare":5.2,"overallShare":1.3,"creatives":1149},{"value":"Notes App","lift":2.65,"industryShare":0.6,"overallShare":0.2,"creatives":138},{"value":"Screen Recording","lift":2.5,"industryShare":4.3,"overallShare":1.7,"creatives":961}],"mechanisms":[{"value":"Aspiration / Transformation","lift":8.87,"industryShare":52.8,"overallShare":6,"creatives":5658},{"value":"Authority / Expertise","lift":1.94,"industryShare":1.7,"overallShare":0.9,"creatives":179},{"value":"Convenience & Ease","lift":1.27,"industryShare":8.9,"overallShare":7,"creatives":956},{"value":"Social Proof / Endorsement","lift":1.08,"industryShare":4,"overallShare":3.7,"creatives":431},{"value":"Problem-Solution","lift":0.75,"industryShare":5,"overallShare":6.6,"creatives":531}]},"Technology":{"activeCreatives":10988,"hooks":[{"value":"Bold Claim","lift":1.59,"industryShare":8.4,"overallShare":5.3,"creatives":438},{"value":"Challenge","lift":1.56,"industryShare":0.9,"overallShare":0.6,"creatives":47},{"value":"Direct Address","lift":1.44,"industryShare":2,"overallShare":1.4,"creatives":103},{"value":"Shocking Statement","lift":1.43,"industryShare":3.3,"overallShare":2.3,"creatives":175},{"value":"How To","lift":1.42,"industryShare":5.2,"overallShare":3.6,"creatives":271}],"formats":[{"value":"Screen Recording","lift":4.52,"industryShare":7.8,"overallShare":1.7,"creatives":1296},{"value":"Case Study","lift":3.48,"industryShare":2,"overallShare":0.6,"creatives":325},{"value":"Greenscreen","lift":3.17,"industryShare":4.1,"overallShare":1.3,"creatives":685},{"value":"Skit","lift":3.08,"industryShare":2.5,"overallShare":0.8,"creatives":421},{"value":"Text Message","lift":2.74,"industryShare":1,"overallShare":0.4,"creatives":164}],"mechanisms":[{"value":"Fear / Risk Avoidance","lift":3.88,"industryShare":13.1,"overallShare":3.4,"creatives":954},{"value":"Emotional / Relationship","lift":3.08,"industryShare":5.9,"overallShare":1.9,"creatives":428},{"value":"Authority / Expertise","lift":2.38,"industryShare":2,"overallShare":0.9,"creatives":149},{"value":"Convenience & Ease","lift":1.63,"industryShare":11.5,"overallShare":7,"creatives":835},{"value":"Social Proof / Endorsement","lift":1.3,"industryShare":4.8,"overallShare":3.7,"creatives":350}]},"Pets":{"activeCreatives":10562,"hooks":[{"value":"Listicle","lift":1.53,"industryShare":3,"overallShare":2,"creatives":173},{"value":"Statistic","lift":1.47,"industryShare":1.1,"overallShare":0.7,"creatives":61},{"value":"Belief","lift":1.45,"industryShare":0.9,"overallShare":0.6,"creatives":50},{"value":"Explainer","lift":1.37,"industryShare":2,"overallShare":1.4,"creatives":113},{"value":"Contrast","lift":1.35,"industryShare":6.4,"overallShare":4.7,"creatives":365}],"formats":[{"value":"Problem Agitation","lift":2.99,"industryShare":5.6,"overallShare":1.9,"creatives":973},{"value":"Us Vs Them","lift":2.07,"industryShare":5.7,"overallShare":2.7,"creatives":976},{"value":"Humor","lift":2.07,"industryShare":0.5,"overallShare":0.2,"creatives":78}
2,{"value":"POV","lift":1.79,"industryShare":2,"overallShare":1.1,"creatives":341},{"value":"Meme","lift":1.57,"industryShare":0.8,"overallShare":0.5,"creatives":137}],"mechanisms":[{"value":"Problem-Solution","lift":2.49,"industryShare":16.4,"overallShare":6.6,"creatives":1423},{"value":"Fear / Risk Avoidance","lift":1.95,"industryShare":6.6,"overallShare":3.4,"creatives":573},{"value":"Health & Wellness Outcomes","lift":1.68,"industryShare":26.2,"overallShare":15.6,"creatives":2279},{"value":"Aspiration / Transformation","lift":0.97,"industryShare":5.8,"overallShare":6,"creatives":501},{"value":"Product Features & Benefits","lift":0.85,"industryShare":13.4,"overallShare":15.8,"creatives":1168}]},"Fitness & Sports":{"activeCreatives":9090,"hooks":[{"value":"Challenge","lift":2.9,"industryShare":1.7,"overallShare":0.6,"creatives":79},{"value":"Contrarian","lift":2.23,"industryShare":2.7,"overallShare":1.2,"creatives":129},{"value":"Demographic Callout","lift":1.85,"industryShare":6.6,"overallShare":3.6,"creatives":312},{"value":"Directive","lift":1.29,"industryShare":3.5,"overallShare":2.7,"creatives":165},{"value":"Bold Claim","lift":1.19,"industryShare":6.3,"overallShare":5.3,"creatives":297}],"formats":[{"value":"Podcast","lift":3.45,"industryShare":2.6,"overallShare":0.8,"creatives":396},{"value":"Countdown","lift":2.57,"industryShare":0.6,"overallShare":0.2,"creatives":84},{"value":"Quiz","lift":2.38,"industryShare":1.2,"overallShare":0.5,"creatives":178},{"value":"POV","lift":2.02,"industryShare":2.2,"overallShare":1.1,"creatives":332},{"value":"Transformation","lift":2.02,"industryShare":1.6,"overallShare":0.8,"creatives":242}],"mechanisms":[{"value":"Product Features & Benefits","lift":1.95,"industryShare":30.8,"overallShare":15.8,"creatives":1951},{"value":"Aspiration / Transformation","lift":1.3,"industryShare":7.7,"overallShare":6,"creatives":490},{"value":"Convenience & Ease","lift":1.02,"industryShare":7.2,"overallShare":7,"creatives":453},{"value":"Social Proof / Endorsement","lift":0.95,"industryShare":3.5,"overallShare":3.7,"creatives":224},{"value":"Problem-Solution","lift":0.91,"industryShare":6,"overallShare":6.6,"creatives":378}]},"Professional Services":{"activeCreatives":6555,"hooks":[{"value":"Demographic Callout","lift":2.85,"industryShare":10.2,"overallShare":3.6,"creatives":331},{"value":"Direct Address","lift":2.16,"industryShare":2.9,"overallShare":1.4,"creatives":96},{"value":"Statistic","lift":1.9,"industryShare":1.4,"overallShare":0.7,"creatives":45},{"value":"Question","lift":1.6,"industryShare":18.3,"overallShare":11.4,"creatives":596},{"value":"Warning","lift":1.37,"industryShare":1.6,"overallShare":1.1,"creatives":51}],"formats":[{"value":"Street Interview","lift":4.5,"industryShare":1.5,"overallShare":0.3,"creatives":142},{"value":"Countdown","lift":4.06,"industryShare":0.9,"overallShare":0.2,"creatives":82},{"value":"Case Study","lift":3.97,"industryShare":2.2,"overallShare":0.6,"creatives":207},{"value":"Screen Recording","lift":3.41,"industryShare":5.9,"overallShare":1.7,"creatives":546},{"value":"Founder","lift":3.27,"industryShare":3.3,"overallShare":1,"creatives":301}],"mechanisms":[{"value":"Authority / Expertise","lift":3.44,"industryShare":3,"overallShare":0.9,"creatives":111},{"value":"Aspiration / Transformation","lift":2.55,"industryShare":15.2,"overallShare":6,"creatives":568},{"value":"Social Proof / Endorsement","lift":2.16,"industryShare":8,"overallShare":3.7,"creatives":300},{"value":"Newness & Availability","lift":1.62,"industryShare":3.3,"overallShare":2.1,"creatives":125},{"value":"Value / Affordability","lift":1.35,"industryShare":1.1,"overallShare":0.8,"creatives":41}]},"Entertainment & Media":{"activeCreatives":6214,"hooks":[{"value":"Call To Action First","lift":6.12,"industryShare":2.2,"overallShare":0.4,"creatives":49},{"value":"FOMO","lift":2.66,"industryShare":2,"overallShare":0.8,"creatives":45},{"value":"Urgency","lift":2.54,"industryShare":8.2,"overallShare":3.2,"creatives":185},{"value":"Direct Address","lift":2.51,"industryShare":3.4,"overallShare":1.4,"creatives":77},{"value":"Social Proof","lift":1.84,"industryShare":5.5,"overallShare":3,"creatives":124}],"formats":[{"value":"Event Poster","lift":31.63,"industryShare":0.5,"overallShare":0,"creatives":42},{"value":"Billboard","lift":5.75,"industryShare":0.8,"overallShare":0.1,"creatives":66},{"value":"Celebrity","lift":5.47,"industryShare":3.5,"overallShare":0.6,"creatives":283},{"value":"Countdown","lift":4.71,"industryShare":1,"overallShare":0.2,"creatives":84},{"value":"Collage","lift":3.86,"industryShare":4.2,"overallShare":1.1,"creatives":339}],"mechanisms":[{"value":"Luxury & Premium","lift":6.03,"industryShare":4.9,"overallShare":0.8,"creatives":134},{"value":"Emotional / Relationship","lift":4.25,"industryShare":8.1,"overallShare":1.9,"creatives":224},{"value":"Gifting","lift":3.93,"industryShare":5.2,"overallShare":1.3,"creatives":145},{"value":"Discount / Sale / Promotion","lift":1.59,"industryShare":41,"overallShare":25.9,"creatives":1133},{"value":"Problem-Solution","lift":1.07,"industryShare":7,"overallShare":6.6,"creatives":194}]},"Finance":{"activeCreatives":5428,"hooks":[{"value":"Relatability","lift":2.48,"industryShare":35.7,"overallShare":14.4,"creatives":917},{"value":"Myth Busting","lift":1.5,"industryShare":1.9,"overallShare":1.2,"creatives":48},{"value":"Question","lift":1.39,"industryShare":15.9,"overallShare":11.4,"creatives":409},{"value":"Contrast","lift":0.91,"industryShare":4.3,"overallShare":4.7,"creatives":111},{"value":"Storytelling","lift":0.9,"industryShare":8.3,"overallShare":9.2,"creatives":214}],"formats":[{"value":"Greenscreen","lift":6.77,"industryShare":8.8,"overallShare":1.3,"creatives":670},{"value":"Quiz","lift":5.76,"industryShare":2.9,"overallShare":0.5,"creatives":219},{"value":"Trend","lift":5.5,"industryShare":2.4,"overallShare":0.4,"creatives":184},{"value":"Meme","lift":5.41,"industryShare":2.7,"overallShare":0.5,"creatives":208},{"value":"Street Interview","lift":4.29,"industryShare":1.5,"overallShare":0.3,"creatives":111}],"mechanisms":[{"value":"Value / Affordability","lift":16.73,"industryShare":13.6,"overallShare":0.8,"creatives":450},{"value":"Fear / Risk Avoidance","lift":2.81,"industryShare":9.5,"overallShare":3.4,"creatives":314},{"value":"Social Proof / Endorsement","lift":1.64,"industryShare":6.1,"overallShare":3.7,"creatives":201},{"value":"Convenience & Ease","lift":1.57,"industryShare":11,"overallShare":7,"creatives":365},{"value":"Discount / Sale / Promotion","lift":1.17,"industryShare":30.2,"overallShare":25.9,"creatives":1002}]}
2,"Travel & Hospitality":{"activeCreatives":4430,"hooks":[{"value":"Aspirational","lift":3.05,"industryShare":14.8,"overallShare":4.8,"creatives":263},{"value":"Listicle","lift":1.87,"industryShare":3.7,"overallShare":2,"creatives":66},{"value":"Offer Only","lift":1.69,"industryShare":4.2,"overallShare":2.5,"creatives":75},{"value":"Bold Claim","lift":1.31,"industryShare":6.9,"overallShare":5.3,"creatives":123},{"value":"Curiosity","lift":1.19,"industryShare":10.3,"overallShare":8.7,"creatives":184}],"formats":[{"value":"Cinematic B-Roll","lift":4.11,"industryShare":6.6,"overallShare":1.6,"creatives":406},{"value":"Montage","lift":2.25,"industryShare":14.1,"overallShare":6.3,"creatives":864},{"value":"ASMR","lift":2.13,"industryShare":0.7,"overallShare":0.3,"creatives":45},{"value":"Unformatted","lift":2.02,"industryShare":0.7,"overallShare":0.3,"creatives":40},{"value":"Offer-First Banner","lift":1.94,"industryShare":21.7,"overallShare":11.2,"creatives":1332}],"mechanisms":[{"value":"Luxury & Premium","lift":6.1,"industryShare":4.9,"overallShare":0.8,"creatives":138},{"value":"Emotional / Relationship","lift":4.48,"industryShare":8.5,"overallShare":1.9,"creatives":240},{"value":"Gifting","lift":2.66,"industryShare":3.6,"overallShare":1.3,"creatives":100},{"value":"Discount / Sale / Promotion","lift":1.87,"industryShare":48.4,"overallShare":25.9,"creatives":1360},{"value":"Fear / Risk Avoidance","lift":1.35,"industryShare":4.6,"overallShare":3.4,"creatives":128}]},"Automotive":{"activeCreatives":3025,"hooks":[{"value":"Offer Only","lift":2.29,"industryShare":5.7,"overallShare":2.5,"creatives":84},{"value":"Urgency","lift":1.79,"industryShare":5.8,"overallShare":3.2,"creatives":85},{"value":"Bold Claim","lift":1.27,"industryShare":6.7,"overallShare":5.3,"creatives":98},{"value":"Social Proof","lift":1.07,"industryShare":3.2,"overallShare":3,"creatives":47},{"value":"Relatability","lift":1.04,"industryShare":14.9,"overallShare":14.4,"creatives":219}],"formats":[{"value":"Screen Recording","lift":2.73,"industryShare":4.7,"overallShare":1.7,"creatives":235},{"value":"Expert Explainer","lift":1.91,"industryShare":2.3,"overallShare":1.2,"creatives":114},{"value":"Post It","lift":1.88,"industryShare":0.8,"overallShare":0.5,"creatives":42},{"value":"Static To Video Hybrid","lift":1.82,"industryShare":2.4,"overallShare":1.3,"creatives":117},{"value":"Offer-First Banner","lift":1.73,"industryShare":19.4,"overallShare":11.2,"creatives":965}],"mechanisms":[{"value":"Fear / Risk Avoidance","lift":5.15,"industryShare":17.4,"overallShare":3.4,"creatives":400},{"value":"Discount / Sale / Promotion","lift":2.01,"industryShare":51.9,"overallShare":25.9,"creatives":1195},{"value":"Value / Affordability","lift":1.87,"industryShare":1.5,"overallShare":0.8,"creatives":35},{"value":"Gifting","lift":1.07,"industryShare":1.4,"overallShare":1.3,"creatives":33},{"value":"Convenience & Ease","lift":0.83,"industryShare":5.8,"overallShare":7,"creatives":134}]},"Parenting & Family":{"activeCreatives":2804,"hooks":[{"value":"Relatability","lift":2.04,"industryShare":29.4,"overallShare":14.4,"creatives":268},{"value":"Bold Claim","lift":0.92,"industryShare":4.8,"overallShare":5.3,"creatives":44},{"value":"Question","lift":0.86,"industryShare":9.9,"overallShare":11.4,"creatives":90},{"value":"Storytelling","lift":0.75,"industryShare":6.9,"overallShare":9.2,"creatives":63},{"value":"Curiosity","lift":0.75,"industryShare":6.5,"overallShare":8.7,"creatives":59}],"formats":[{"value":"Unformatted","lift":4.26,"industryShare":1.4,"overallShare":0.3,"creatives":51},{"value":"Feature Benefit Pointout","lift":2.28,"industryShare":5.7,"overallShare":2.5,"creatives":212},{"value":"Collage","lift":2.01,"industryShare":2.2,"overallShare":1.1,"creatives":80},{"value":"Offer-First Banner","lift":1.93,"industryShare":21.7,"overallShare":11.2,"creatives":802},{"value":"Press","lift":1.85,"industryShare":2,"overallShare":1.1,"creatives":74}],"mechanisms":[{"value":"Emotional / Relationship","lift":2.45,"industryShare":4.7,"overallShare":1.9,"creatives":104}
2,{"value":"Gifting","lift":1.79,"industryShare":2.4,"overallShare":1.3,"creatives":53},{"value":"Fear / Risk Avoidance","lift":1.75,"industryShare":5.9,"overallShare":3.4,"creatives":131},{"value":"Discount / Sale / Promotion","lift":1.41,"industryShare":36.4,"overallShare":25.9,"creatives":808},{"value":"Product Features & Benefits","lift":1.12,"industryShare":17.7,"overallShare":15.8,"creatives":393}]},"Social & Civic":{"activeCreatives":1362,"hooks":[],"formats":[{"value":"Headline","lift":8.59,"industryShare":78.7,"overallShare":9.2,"creatives":1141},{"value":"Sign","lift":6.4,"industryShare":2.8,"overallShare":0.4,"creatives":40},{"value":"Split Screen","lift":1.26,"industryShare":4,"overallShare":3.2,"creatives":58},{"value":"Testimonial","lift":0.37,"industryShare":3.4,"overallShare":9.2,"creatives":49}],"mechanisms":[{"value":"Fear / Risk Avoidance","lift":16.05,"industryShare":54.2,"overallShare":3.4,"creatives":370},{"value":"Emotional / Relationship","lift":3.68,"industryShare":7,"overallShare":1.9,"creatives":48},{"value":"Problem-Solution","lift":1.45,"industryShare":9.5,"overallShare":6.6,"creatives":65},{"value":"Discount / Sale / Promotion","lift":1,"industryShare":25.9,"overallShare":25.9,"creatives":177}]},"Faith & Spirituality":{"activeCreatives":953,"hooks":[{"value":"Question","lift":4.67,"industryShare":53.5,"overallShare":11.4,"creatives":425},{"value":"Directive","lift":4.29,"industryShare":11.6,"overallShare":2.7,"creatives":92},{"value":"Storytelling","lift":1.12,"industryShare":10.3,"overallShare":9.2,"creatives":82},{"value":"Relatability","lift":0.49,"industryShare":7,"overallShare":14.4,"creatives":56}],"formats":[{"value":"Screen Recording","lift":12.97,"industryShare":22.5,"overallShare":1.7,"creatives":357},{"value":"Slideshow","lift":7.85,"industryShare":2.7,"overallShare":0.3,"creatives":43},{"value":"Static To Video Hybrid","lift":6.63,"industryShare":8.6,"overallShare":1.3,"creatives":136},{"value":"Cinematic B-Roll","lift":5.46,"industryShare":8.8,"overallShare":1.6,"creatives":140},{"value":"Greenscreen","lift":4.73,"industryShare":6.2,"overallShare":1.3,"creatives":98}],"mechanisms":[{"value":"Identity / Style / Self-Expression","lift":5.21,"industryShare":31.2,"overallShare":6,"creatives":190},{"value":"Aspiration / Transformation","lift":3.18,"industryShare":18.9,"overallShare":6,"creatives":115},{"value":"Health & Wellness Outcomes","lift":2.7,"industryShare":42.3,"overallShare":15.6,"creatives":257},{"value":"Discount / Sale / Promotion","lift":0.2,"industryShare":5.1,"overallShare":25.9,"creatives":31}]},"Real Estate":{"activeCreatives":830,"hooks":[{"value":"Urgency","lift":7.02,"industryShare":22.7,"overallShare":3.2,"creatives":49}],"formats":[{"value":"Slideshow","lift":15.57,"industryShare":5.4,"overallShare":0.3,"creatives":52},{"value":"Infographic","lift":7.02,"industryShare":4.3,"overallShare":0.6,"creatives":42},{"value":"Cinematic B-Roll","lift":5.44,"industryShare":8.8,"overallShare":1.6,"creatives":85},{"value":"Split Screen","lift":2.66,"industryShare":8.5,"overallShare":3.2,"creatives":82},{"value":"Listicle","lift":1.94,"industryShare":7.5,"overallShare":3.9,"creatives":73}],"mechanisms":[{"value":"Value / Affordability","lift":15.01,"industryShare":12.2,"overallShare":0.8,"creatives":58},{"value":"Emotional / Relationship","lift":4.4,"industryShare":8.4,"overallShare":1.9,"creatives":40},{"value":"Aspiration / Transformation","lift":3.46,"industryShare":20.6,"overallShare":6,"creatives":98},{"value":"Identity / Style / Self-Expression","lift":1.72,"industryShare":10.3,"overallShare":6,"creatives":49},{"value":"Convenience & Ease","lift":1.17,"industryShare":8.2,"overallShare":7,"creatives":39}]},"Emergency Preparedness":{"activeCreatives":237,"hooks":[],"formats":[{"value":"Offer-First Banner","lift":2.22,"industryShare":24.9,"overallShare":11.2,"creatives":84},{"value":"Demo","lift":2.21,"industryShare":18.3,"overallShare":8.3,"creatives":62}],"mechanisms":[{"value":"Fear / Risk Avoidance","lift":5.82,"industryShare":19.6,"overallShare":3.4,"creatives":33},{"value":"Discount / Sale / Promotion","lift":2.14,"industryShare":55.4,"overallShare":25.9,"creatives":93}]}}}'),Yx=e=>`${e.toFixed(1)}%`;function Vx(e){return e?e.charAt(0).toUpperCase()+e.slice(1):e}i(1098);
2var Kx=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const Qx=Gx,Xx=Wx,Jx="bfcm-plan-results",Zx=[1500,1700,1600,1700,1600,1800],ew=new Set(["Beauty & Personal Care","Food & Nutrition","Health & Wellness","Pets"]),tw=new Set(["Fashion & Apparel","Fitness & Sports","Home & Lifestyle","Marketplace & Retail"]),nw={website:"https://winks.com",category:"Health & Wellness",offer:"20% off first order plus free shipping"};function rw(e){return e.replace(/[–—-]/g," ").replace(/\s+/g," ").trim()}function aw(e){return`${e.toFixed(1).replace(/\.0$/,"")}%`}function sw(e){return Math.round(e).toLocaleString("en-US")}function iw(e){return rw(e).replace(/\s+to\s+/gi," to ")}function ow(e){const t=e.trim();if(!t)return null;const n=/^https?:\/\//i.test(t)?t:`https://${t}`;try{const e=new URL(n);return e.hostname?e.toString():null}catch(e){return null}}function lw(e){try{const t=new URL(e).hostname.replace(/^www\./i,"").split(".").filter(Boolean);let n=t.length>=2?t[t.length-2]:t[0]||"Your brand";return["co","com","org","net"].includes(n.toLowerCase())&&t.length>=3&&(n=t[t.length-3]),rw(n).replace(/[_]+/g," ").split(/\s+/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")||"Your brand"}catch(e){return"Your brand"}}function cw(e){try{return new URL(e).hostname.replace(/^www\./i,"")}catch(t){return e}}function uw(e){return rw(e)}function dw(e,t){return e?`${uw(e.value)} · ${t} (${aw(e.pct)})`:t}const hw=[[/sleep|supplement|vitamin|wellness|health|calm|recovery|hydrat|magnesium|melatonin/i,"Health & Wellness"],[/beauty|skin|cosmetic|makeup|hair|fragrance|serum|lash|nail/i,"Beauty & Personal Care"],[/apparel|cloth|fashion|wear|denim|shoe|footwear|jewel|watch|bag/i,"Fashion & Apparel"],[/fit|gym|workout|athletic|sport|run|yoga|protein|pilates/i,"Fitness & Sports"],[/food|snack|coffee|tea|nutrition|meal|drink|beverage|grocery|sauce/i,"Food & Nutrition"],[/pet|dog|cat|puppy|kitten/i,"Pets"],[/home|kitchen|furnitur|decor|mattress|bedding|garden|candle/i,"Home & Lifestyle"],[/tech|app\b|software|saas|ai\b|cloud|data|platform|dev\b|api\b|motion|analytic/i,"Technology"],[/learn|course|school|\bedu|academy|tutor|bootcamp/i,"Education"],[/bank|financ|invest|credit|loan|money|\bpay\b|crypto|wealth/i,"Finance"],[/travel|hotel|flight|trip|vacation|resort|luggage/i,"Travel & Hospitality"],[/\bcar\b|auto|vehicle|tire|motor\b/i,"Automotive"],[/baby|\bkid|child|parent|family|toddler|nursery/i,"Parenting & Family"],[/\btoy|\bgame|puzzle|board ?game/i,"Toys & Games"],[/gift|flower|bouquet|florist/i,"Gifts & Flowers"],[/real ?estate|realty|property|mortgage/i,"Real Estate"]];function pw(e,t){const n=`${e} ${t}`.toLowerCase();for(const[e,t]of hw)if(e.test(n))return t;return"Other"}const mw={beauty:"Beauty & Personal Care",skincare:"Beauty & Personal Care","personal care":"Beauty & Personal Care",cosmetics:"Beauty & Personal Care",fragrance:"Beauty & Personal Care",apparel:"Fashion & Apparel",fashion:"Fashion & Apparel",clothing:"Fashion & Apparel",accessories:"Fashion & Apparel",jewelry:"Fashion & Apparel",footwear:"Fashion & Apparel",eyewear:"Fashion & Apparel",pets:"Pets","pet care":"Pets","home goods":"Home & Lifestyle",home:"Home & Lifestyle","home & garden":"Home & Lifestyle",furniture:"Home & Lifestyle",lifestyle:"Home & Lifestyle","food & beverage":"Food & Nutrition",food:"Food & Nutrition",beverage:"Food & Nutrition",beverages:"Food & Nutrition",nutrition:"Food & Nutrition",supplements:"Health & Wellness",supplement:"Health & Wellness","health & wellness":"Health & Wellness",health:"Health & Wellness",wellness:"Health & Wellness",productivity:"Technology",technology:"Technology",tech:"Technology",software:"Technology",saas:"Technology",app:"Technology",education:"Education",finance:"Finance",fintech:"Finance",insurance:"Finance","toys & games":"Toys & Games",toys:"Toys & Games",games:"Toys & Games",gaming:"Toys & Games","professional services":"Professional Services",retail:"Marketplace & Retail",marketplace:"Marketplace & Retail",entertainment:"Entertainment & Media",media:"Entertainment & Media",music:"Entertainment & Media",travel:"Travel & Hospital
2ity",hospitality:"Travel & Hospitality",automotive:"Automotive",auto:"Automotive","real estate":"Real Estate",fitness:"Fitness & Sports",sports:"Fitness & Sports"},fw={pain:"the 3am wake-up",painShort:"the 3am wake-up",audiencePain:"the 3am pain",mechanism:"a few things your body is doing at once",endcardHost:"getwinks.com",testimonialProblem:"waking up at 3am"};function vw(e){const t=Qx.industries[e.category],n=lw(e.website),r=cw(e.website),a=e.offer.trim().replace(/\s+/g," "),s=a.length>0,i=(o=e.category,ew.has(o)?"A first-order discount plus a stock-up or subscribe upgrade":tw.has(o)?"A sitewide discount plus a bundle threshold on top":"A sitewide discount through Cyber Monday");var o;const l=rw(s?a:i),c=e.category.toLowerCase(),u=t.hooks,d=t.messaging,h=t.formats,p=u[0],m=u.find(e=>/curio|question|story/i.test(e.value))||u[1]||u[0],f=u.find(e=>/urgen|scarc|last|contrast/i.test(e.value))||u[u.length-1]||u[0],v=d.find(e=>function(e){return/discount|sale|promotion|offer|deal|black friday|cyber|gift|bundle|sitewide/i.test(e)}(e.value))||d[0],g=h.find(e=>/testimon|ugc|review|proof/i.test(e.value)),b=[{n:"01",phase:"warmup",name:"Problem Opener",format:"video",formatLabel:"UGC video",lane:dw(p,"top hook"),concept:"Open on the exact moment your buyer feels the problem, then hand them the fix. No offer.",why:`Warmup runs while CPMs are cheap. Lead with the tension your ${c} buyer already knows, so ${n} earns attention before it earns the sale.`,fallback:`No live video in this lane yet. ${uw(p.value)} carried ${aw(p.pct)} of category spend at BFCM, the cheapest way to build a warm pool.`},{n:"02",phase:"warmup",name:"Mechanism",format:"video",formatLabel:"Demo",lane:dw(m,"curiosity"),concept:`Show why the problem happens and how ${n} actually addresses it. Curiosity, not price.`,why:"The teaching ad. Curiosity keeps a cold viewer watching long enough to believe the product does something different.",fallback:`No live demo in this lane yet. ${uw(m.value)} hooks pulled ${aw(m.pct)} of category spend and are what make a mechanism land.`},{n:"03",phase:"warmup",name:"Testimonial",format:"image",formatLabel:"UGC",lane:g?`${uw(g.value)} · ${aw(g.pct)}`:"Social proof",concept:"Let a real customer make the argument for you before the sale starts.",why:"Social proof lowers the risk of a first purchase from a brand someone just met in the warmup ads.",fallback:g?`No live testimonial to point to yet. Testimonial creative took ${aw(g.pct)} of category spend, the second biggest format after the offer banner.`:"Social proof earns its place even without a live example: it is how a newer buyer talks themselves into the first order."},{n:"04",phase:"weekend",name:"Offer Hero",format:"image",formatLabel:"Static",lane:`${uw(v.value)} · ${aw(v.pct)}`,concept:`${l}. The offer, front and center, the second the sale goes live.`,why:s?"Your offer, stated plainly, with urgency doing the work. This is the closer.":"Lead with the suggested offer mechanic and swap your real number in. Discounting is the dominant lane by share of spend, but size the depth to your margin.",fallback:`No live offer creative yet, which is expected before the sale. ${uw(v.value)} is the single biggest spend lane in your category at ${aw(v.pct)}.`},{n:"05",phase:"weekend",name:"Winback",format:"image",formatLabel:"Static",lane:"Discount + urgency",concept:"Re-hit the warm pool who clicked but did not buy on day one.",why:"The people who engaged with your warmup ads are your cheapest weekend conversions. Remind them the deal is live.",fallback:"No live winback creative yet. Retargeting the warm pool you built in the warmup phase is where weekend ROAS is usually won."},{n:"06",phase:"weekend",name:"Last Chance",format:"image",formatLabel:"Static",lane:dw(f,"urgency"),concept:"Final hours. Convert the fence-sitters before Cyber Monday closes.",why:"A hard deadline is the last push for everyone who meant to buy and forgot. Same offer, urgency turned all the way up.",fallback:`No live last-chance creative yet. ${uw(f.value)} hooks carried ${aw(f.pct)} of category spend and are what make a deadline convert.`}],y=[{t:"0:00–0:03",shot:"Handheld selfie, natural light. Straight to camera, mid-thought.",line:`“I did not expect ${n} to change much. I was wrong.”`},{t:"0:03–0:09",shot:"Cut to the problem moment, unpolished b-roll.",line:`“Here is what nobody tells you about ${c}...”`},{t:"0:09–0:15",shot:"Product enters frame, held casually. On-screen text: the one-line mechanism.",line:`“It is not one thing going wrong, it is a few at once, and that is the part ${n} actually works on.”`},{t:"0:15–0:22",shot:"Product beauty shot, everyday setting. No price, no offer.",line:"“If that sounds like you, it is worth a shot.”"}],x=function(e,t){return/wink/i.test(e)||/wink/i.test(t)?fw:function(e,t){return{pain:`the problem ${e} solves`,painShort:"the problem",audiencePain:`the core problem ${e} solves`,mechanism:void 0,endcardHost:t,testimonialProblem:`the problem ${e} solves`}}(t,e)}(r,n),w=e=>({label:uw(e.value),pct:e.pct}),_=function(e){const{brand:t,category:n,offer:r,offerLabel:a,topHook:s,topAngle:i,topFormat:o,profile:l}=e,c=l.endcardHost,u=l.mechanism;return[{num:"01",name:"Problem Opener",meta:`UGC video · Problem-solution angle · ${s.label} hook (#1, ${Yx(s.pct)})`,kind:"video",when:"Warmup, 3 to 6 weeks out",audience:"Cold prospecting",goal:`Warm cold audie
2nces on ${l.audiencePain}, no offer`,script:[{t:"0:00-0:03",shot:`Handheld selfie, unpolished, real setting. On-screen: the moment ${l.pain} shows up.`,line:`(to camera) "Okay, real talk. ${Vx(l.pain)}. Again."`},{t:"0:03-0:08",shot:"Cut closer, candid, talking straight to the lens.",line:"\"I tried the obvious fixes. None of them actually held. Every day it's the same thing, and it's wearing me down.\""},{t:"0:08-0:14",shot:'Holding the product, casual. On-screen: "not another quick fix"',line:u?`"Someone finally explained it to me. It isn't one thing going wrong, it's ${u}. This is the first thing that actually went after that."`:`"Then I found ${t}. It's the first thing that actually went after the real cause instead of masking it."`},{t:"0:14-0:22",shot:'A few days later, visibly better, natural light. On-screen: "first real change in a while"',line:'"A few days in, it clicked. First time in a long time I wasn\'t dreading it."'},{t:"0:22-0:28",shot:`Product beauty shot, hand placing it down. On-screen: "${t} · ${c}"`,line:`"If you're dealing with ${l.painShort} too... it's worth a shot."`}],audio:"room tone at the open, soft music in from 0:03 building to a resolve on the end card.",notes:u?"keep the mechanism line at the level your own evidence supports, offer intentionally absent because this runs before the sale.":"keep every claim at the level your own evidence supports, offer intentionally absent because this runs before the sale.",proofNote:`You are already running the ${l.painShort} angle in video. This concept sharpens your own live ad into the Black Friday lead.`,proofIsFallback:!1},{num:"02",name:"Mechanism",meta:"Demo / explainer video · Product-features angle · Curiosity hook",kind:"video",when:"Warmup",audience:"Cold, moving to consideration",goal:"Teach why it works so the offer lands later",script:[{t:"0:00-0:04",shot:`Close on product in hand, clean surface, controlled light. On-screen: "Why ${l.pain} happens"`,line:`"If ${l.painShort} keeps coming back, the usual fixes were never going to solve it."`},{t:"0:04-0:12",shot:"Simple motion graphic: the real drivers appear one by one.",line:u?`"It isn't one problem. It's ${u}, all at the same time."`:"\"It isn't one problem. It's a few things happening at once, which is why single fixes miss.\""},{t:"0:12-0:22",shot:"Product visual, each part mapped to one of the drivers.",line:`"So ${t} is built to work on all of it at once, instead of masking one piece and leaving the rest."`},{t:"0:22-0:30",shot:"Hand places product down, person settles in, calm.",line:'"One step in your routine. It works with you the whole way through, not just for a minute."'},{t:"0:30-0:36",shot:`End card, product + logo. On-screen: "${t} · ${c}"`,line:`"If ${l.painShort} is your daily fight, this is built for you."`}],audio:"light, clean music bed throughout, a subtle rise as the drivers resolve into one.",notes:"name the real drivers at the level your evidence supports, do not invent claims. This sharpens your own explainer into a teaching pillar before the sale.",proofNote:"Your own live video already makes the how-it-works case. The Mechanism ad turns it into your teaching pillar before the sale.",proofIsFallback:!1},{num:"03",name:"Testimonial",meta:"UGC testimonial video · Social-proof angle · Relatability hook",kind:"video",when:"Warmup, carries into the weekend",audience:"Skeptical, tried-everything buyers",goal:"De-risk the brand with a real customer while CPMs are cheap",script:[{t:"0:00-0:03",shot:'Real customer, candid, morning light, to camera. On-screen: "I didn\'t believe it either"',line:`"I've tried everything for ${l.testimonialProblem}. Nothing held."`},{t:"0:03-0:10",shot:"Same, leaning in, honest.",line:`"I got ${t} and honestly rolled my eyes. But it's the first thing that's actually stuck."`},{t:"0:10-0:18",shot:"B-roll: the product in their real life, then them visibly better.",line:'"It\'s part of my routine now. I forgot what this felt like."'},{t:"0:18-0:24",shot:"Back to camera, warm, direct.",line:"\"If you're the person who's tried it all, I get the eye roll. This is the one that worked for me.\""},{t:"0:24-0:28",shot:`End card, product + logo. On-screen: "${t} · ${c}"`,line:"\"Just try it. That's all I'll say.\""}],audio:"no music under the testimony for authenticity, soft music only on the end card.",notes:"the script is a guide, not a lock. Put your real reviews on screen, and do not fabricate specifics or star ratings.",proofNote:`Nothing de-risks a newer brand like a real customer saying it worked. Testimonial was a top visual format in ${n} last Black Friday at ${Yx(o.pct)}
2 of category spend, and it is the highest-value format you are likely not running yet.`,proofIsFallback:!0},{num:"04",name:"Offer Hero",meta:`Offer-first banner, static · Discount angle (#1, ${Yx(i.pct)}) · Offer-clarity hook`,kind:"static",when:"Weekend, sale live",audience:"Warm retargeting pools",goal:"The workhorse. The clean, unmissable offer ad.",visual:"Deep brand-tone field. Product as hero shot bottom-right, angled, soft rim light. The offer owns the top 60 percent of the frame. Circular “BFCM” seal top-left, trust strip along the bottom. Sizes 4:5, 1:1, 9:16.",copy:[{label:"Kicker",value:"BLACK FRIDAY · ENDS MONDAY"},{label:"Headline (largest, legible at thumbnail)",value:r.toUpperCase()},{label:"Subhead",value:`The change you have been putting off, ${r.toLowerCase()}.`},{label:"Trust strip",value:"star rating · “[real review count]+ reviews” · “[guarantee, if true]”"},{label:"Button",value:"Shop the sale"}],primary:`${Vx(l.pain)} does not take the weekend off. Neither does the sale. ${Vx(r)} through Cyber Monday.`,notes:"real review count, guarantee only if true, offer values are yours.",proofNote:"A static you are already running, ready to carry the Black Friday offer as an offer-first banner.",proofIsFallback:!1},{num:"05",name:"Winback",meta:"Direct-response static · Discount + urgency angle · Familiarity hook",kind:"static",when:"Weekend",audience:"Your email and SMS list, plus visitors who did not buy",goal:"Convert the warm pool with offer plus urgency",visual:"Product-forward, but the copy carries the hook. A light “you were here before” feel works well, product beside a short, direct line. Sizes 4:5, 1:1.",copy:[{label:"Kicker",value:"STILL THINKING ABOUT IT?"},{label:"Headline",value:`Still dealing with ${l.painShort}?`},{label:"Subhead",value:`Your ${r.toLowerCase()} is live.`},{label:"Button",value:"Finish checkout"}],primary:`You checked out ${t} once. ${Vx(l.pain)} has not quit, and right now it is ${r.toLowerCase()}. This is the cheapest it gets all year.`,notes:"run to your list and site visitors, only use cart language for the add-to-cart segment, offer values are yours.",proofNote:"Your own live image ad already names the problem this winback re-opens for people who did not buy.",proofIsFallback:!1},{num:"06",name:"Last Chance",meta:"Urgency / countdown static · Discount + urgency angle · Urgency hook"+(e.urgencyHook?` (top 6, ${Yx(e.urgencyHook.pct)})`:""),kind:"static",when:"Cyber Monday, cart close",audience:"Everyone who engaged but did not buy",goal:"Final squeeze before the offer ends",visual:"High-contrast, countdown-forward. Bold “ENDS TONIGHT,” product small, offer huge. Optional live countdown timer. Sizes 4:5, 9:16 story.",copy:[{label:"Kicker",value:"CYBER MONDAY · FINAL HOURS"},{label:"Headline",value:`${r} ends at midnight`},{label:"Timer",value:"live countdown if the platform supports it, else “Ends midnight PT”"},{label:"Button",value:`Get ${t} before it is gone`}],primary:`Last call. ${Vx(r)} ends at midnight, and it will not be back until next year. If ${l.painShort} is still winning, end it tonight.`,notes:"only run a countdown if the deadline is real, offer values are yours.",proofNote:"The final hours of Cyber Monday are when the fence-sitters finally buy. A hard-deadline ad converts everyone who clicked, saved, or added to cart all weekend and still hesitated."+(e.urgencyHook?` Urgency hooks carried ${Yx(e.urgencyHook.pct)} of category Black Friday spend, and the accounts that win the weekend all run one to close it.`:""),proofIsFallback:!0}]}({brand:n,domain:r,category:e.category,offer:l,offerLabel:s?"YOUR OFFER":"OFFER · TYPICAL BFCM RANGE",topHook:w(p),topAngle:w(v),topFormat:w(h[0]),urgencyHook:w(f),profile:x});return{brandName:n,domain:r,website:e.website,category:e.category,offer:l,offerProvided:s,offerLabel:s?"Your BFCM offer":"Suggested offer",offerReason:s?"We kept your offer and built the six ads around the category's biggest spend lanes.":"Discounting is the dominant lane in your category by share of spend, but that is not how deep to cut. Size the depth to your margin: most brands start around 20 to 25 percent off, a gift, or a bundle threshold. Swap your real offer into the form.",windowLabel:iw(Qx.window),totals:t.totals,overrep:Xx.industries[e.category]||null,tables:{messaging:d.slice(0,6),hooks:u.slice(0,6),formats:h.slice(0,6)},cards:b,topHook:p,promoAngle:v,topFormat:h[0],script:y,ads:_}}const gw=new Set(["com","net","org","io","co","ai","app","dev","us","ca","uk","au","de","fr","es","it","nl","se","no","dk","fi","ie","nz","in","jp","br","mx","eu","me","tv","gg","xyz","shop","store","biz","info","online","site","tech","agency","studio","pro","vet","bet","edu","gov","cat","fit","design","email"]),bw=["com","net","org","edu","gov"],yw=new Set(["gmial","gmai","gmal","gnail","gamil","hotmial","hotmai","yaho","yahooo","yhaoo"]);const xw=vw(nw);function ww(e){return Kx(this,void 0,void 0,function*(){const t=yield fetch(`https://server.motionapp.com/api/public${e}`,{headers:{"MOTION-PLG-TOKEN":"undefined"!=typeof window&&window.__MOTION_PLG_TOKEN__?String(window.__MOTION_PLG_TOKEN__):process.env.REACT_APP_MOTION_PLG_TOKEN||""}});if(!t.ok)throw new Error(`inspo ${t.status}`);return t.json()})}function _w(e){const t=(e||"").toLowerCase().replace(/^www\./,"").replace(/\.$/,""),n=t.split(".").filter(
2Boolean);return n.length<=2?t:n.slice(-2).join(".")}function kw(e){return(e||"").toLowerCase().replace(/[^a-z0-9]/g,"")}function Nw(e){const t=Array.isArray(e&&e.stats&&e.stats.landingPages)?e.stats.landingPages:[];return{id:e&&e.id||"",name:e&&e.name||"",igHandle:e&&e.igHandle||"",internalName:e&&e.internalPlatformName||"",activeAds:e&&e.stats&&e.stats.counts&&e.stats.counts.activeAds||0,landingDomains:t.map(e=>_w(function(e){try{return new URL(e).hostname}catch(e){return""}}(e&&e.url||""))).filter(Boolean),domain:_w(e&&e.domain||""),brandCategory:e&&e.brandCategory||""}}function Ew(e,t,n){const r=kw(t),a=kw(e.name),s=kw(e.igHandle),i=kw(e.internalName);if(!r)return 0;let o=0;return n&&e.domain&&e.domain===n&&(o+=2e3),n&&-1!==e.landingDomains.indexOf(n)&&(o+=1e3),a===r||s===r||i===r||i===`get${r}`?o+=400:-1!==a.indexOf(r)||-1!==s.indexOf(r)||-1!==i.indexOf(r)?o+=200:a.length>3&&-1!==r.indexOf(a)&&(o+=120),o>0&&(o+=.001*Math.min(e.activeAds,5e3)),o}function jw(e){return Kx(this,void 0,void 0,function*(){try{const t=yield ww(`/brand/search?input=${encodeURIComponent(e)}`);return(Array.isArray(t&&t.brands)?t.brands:[]).map(Nw).filter(e=>e.id)}catch(e){return[]}})}const Sw=()=>(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.4,"aria-hidden":"true",children:(0,s.jsx)("path",{d:"M5 12h13M13 6l6 6-6 6"})}),Cw=({block:e})=>{var t;const[r,a]=(0,n.useState)(""),[i,o]=(0,n.useState)(""),[l,c]=(0,n.useState)(""),[u,d]=(0,n.useState)(null),[h,p]=(0,n.useState)(!1),[m,f]=(0,n.useState)(!1),[v,g]=(0,n.useState)("form"),[b,y]=(0,n.useState)(0),[x,w]=(0,n.useState)(null),[_,k]=(0,n.useState)("your brand"),[N,E]=(0,n.useState)(null),[j,S]=(0,n.useState)([]),[C,T]=(0,n.use
2State)("idle"),[A,L]=(0,n.useState)("idle"),[I,M]=(0,n.useState)(null),[P,O]=(0,n.useState)(!1),R=(0,n.useRef)([]),D=(0,n.useRef)(null),F=(0,n.useRef)(null),U=(0,n.useRef)(null),$=(0,n.useRef)([]),B=(0,n.useRef)(0),H=(0,n.useRef)(null),z=(0,n.useRef)(null),q=(0,n.useRef)(null),G=(0,n.useRef)(!1),W=(0,n.useRef)(null),Y=(0,n.useRef)(!1),V=(0,n.useMemo)(()=>`rn-section rn-bfcm ${kx(e.class)}`.replace(/\s+/g," ").trim(),[e.class]),K=()=>{R.current.forEach(e=>clearTimeout(e)),R.current=[]};(0,n.useEffect)(()=>()=>K(),[]),(0,n.useEffect)(()=>{$.current=j},[j]),(0,n.useEffect)(()=>{"done"===v&&I&&I.id===B.current&&w(e=>e?Object.assign(Object.assign({},e),{ads:I.ads}):e)},[I,v]),(0,n.useEffect)(()=>{var e;const t=null===(e=D.current)||void 0===e?void 0:e.querySelector(".hero-cd b");if(!t)return;const n=new Date("2026-11-27T00:00:00-05:00").getTime(),r=e=>String(e).padStart(2,"0"),a=()=>{const e=Math.max(0,n-Date.now()),a=Math.floor(e/864e5),s=Math.floor(e%864e5/36e5),i=Math.floor(e%36e5/6e4),o=Math.floor(e%6e4/1e3);t.textContent=`${a}d ${r(s)}:${r(i)}:${r(o)}`};a();const s=window.setInterval(a,1e3);return()=>window.clearInterval(s)},[]),(0,n.useEffect)(()=>{const e=F.current;e&&(m&&!e.open&&e.showModal(),!m&&e.open&&e.close())},[m]),(0,n.useEffect)(()=>{if("undefined"!=typeof document)return document.body.style.overflow="run"===v||"done"===v?"hidden":"",()=>{document.body.style.overflow=""}},[v]),(0,n.useEffect)(()=>{var e;if("done"===v&&"undefined"!=typeof window){try{window.history.pushState(null,"",`#${Jx}`)}catch(e){}window.scrollTo(0,0),null===(e=U.current)||void 0===e||e.scrollTo(0,0)}},[v]),(0,n.useEffect)(()=>{if("undefined"==typeof window)return;const e=()=>{window.location.hash!==`#${Jx}`&&g(e=>"done"===e?"form":e)};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);const Q=e=>Kx(void 0,void 0,void 0,function*(){T("loading"),S([]),E(null),G.current=!1,W.current=null,Y.current=!1,Kx(void 0,void 0,void 0,function*(){const e=q.current;if(e)try{const t=yield fetch("/bfcm-planning-2026/api/resolve",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({website:e.website,brandName:lw(e.website)})});if(t.ok){const n=yield t.json(),r=n&&"string"==typeof n.category?n.category:"";if(r&&(W.current=r,!z.current||z.current.category!==r)){const t=vw({website:e.website,category:r,offer:e.offer});z.current=t,w(e=>e?Object.assign(Object.assign({},t),{ads:e.ads}):e)}if(Array.isArray(n&&n.ads)&&n.ads.length&&!$.current.length){const e=n.ads.map(e=>({id:String(e&&e.id||""),format:e&&"video"===e.format?"video":"image",fileUrl:e&&e.fileUrl||"",thumbnailUrl:e&&e.thumbnailUrl||"",headline:(e&&e.headline||"").trim(),landingPageUrl:e&&e.landingPageUrl||"",daysActive:e&&"number"==typeof e.daysActive?e.daysActive:null})).filter(e=>e.thumbnailUrl||e.fileUrl);e.length&&(S(e),n.brand&&E({id:String(n.brand.id||""),name:String(n.brand.name||""),igHandle:"",activeAds:"number"==typeof n.brand.activeAds?n.brand.activeAds:e.length,brandCategory:n.brand.brandCategory||null}),T("ok"))}}}catch(e){}finally{Y.current=!0}else Y.current=!0});try{const t=cw(e),n=_w(t),r=n.split(".")[0]||t,a=yield function(e,t){return Kx(this,void 0,void 0,function*(){const n=[e];for(let t=e.length-1;t>=4&&n.length<5;t-=1){const r=e.slice(0,t);-1===n.indexOf(r)&&n.push(r)}const r=new Set;let a=null,s=0;for(const i of n){const n=yield jw(i);for(const i of n){if(r.has(i.id))continue;if(r.add(i.id),i.activeAds<=0)continue;const n=Ew(i,e,t);n>s&&(a=i,s=n)}if(a&&s>=1e3)break;if(i===e&&a&&s>=400)break}return a?{id:a.id,name:a.name||e,igHandle:a.igHandle,activeAds:a.activeAds,brandCategory:a.brandCategory||null}:null})}(r,n);if(!a)return void T("none");if(E(a),q.current&&a.brandCategory&&!W.current){const e=function(e){const t=(e||"").trim();if(!t)return null;const n=e=>e.toLowerCase().replace(/[^a-z0-9&]+/g," ").replace(/\s+/g," ").trim(),r=n(t);if(mw[r])return mw[r];for(const e of Object.keys(Qx.industries))if(n(e)===r)return e;for(const[e,n]of hw)if(e.test(t))return n;return null}(a.brandCategory);if(e&&(!z.current||z.current.category!==e)){const t=vw({website:q.current.website,category:e,offer:q.current.offer});
2z.current=t,w(e=>e?Object.assign(Object.assign({},t),{ads:e.ads}):e)}}const s=yield function(e){return Kx(this,void 0,void 0,function*(){const t=yield ww(`/brand/${e}/ads?limit=50`),n=(Array.isArray(t&&t.data&&t.data.ads)?t.data.ads:[]).map(e=>{const t=e.creativeDetails||{},n=e.creativeFile||{};return{id:e._id||"",format:"video"===e.creativeAssetFormat?"video":"image",fileUrl:n.fileUrl||"",thumbnailUrl:n.thumbnailUrl||"",headline:(t.headline||"").trim(),landingPageUrl:t.landingPageUrl||"",daysActive:"number"==typeof t.daysActive?t.daysActive:null}}).filter(e=>e.thumbnailUrl||e.fileUrl);return n.sort((e,t)=>{const n="video"===e.format&&e.fileUrl?1:0,r="video"===t.format&&t.fileUrl?1:0;return n!==r?r-n:(t.daysActive||0)-(e.daysActive||0)}),n.slice(0,24)})}(a.id);if(!s.length)return void T("none");S(s),T("ok")}catch(e){T("error")}finally{G.current=!0}}),X=()=>{const e=++B.current;H.current=null,M(null),L("writing"),Kx(void 0,void 0,void 0,function*(){for(let t=0;t<40&&(!G.current||!Y.current);t+=1)if(yield new Promise(e=>setTimeout(e,200)),B.current!==e)return;const t=z.current;if(!t)return;const n=yield function(e,t){return Kx(this,void 0,void 0,function*(){try{const n={brandName:e.brandName,domain:e.domain,website:e.website,category:e.category,offer:e.offer,offerProvided:e.offerProvided,top:{hooks:e.tables.hooks.map(e=>({label:e.value,pct:e.pct})),messaging:e.tables.messaging.map(e=>({label:e.value,pct:e.pct})),formats:e.tables.formats.map(e=>({label:e.value,pct:e.pct}))},liveAds:t.slice(0,10).map(e=>({headline:e.headline||"",primaryCopy:"",format:e.format}))},r=new AbortController,a=setTimeout(()=>r.abort(),8e4),s=yield fetch("/bfcm-planning-2026/api/plan",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n),signal:r.signal});if(clearTimeout(a),!s.ok)return null;const i=yield s.json();return i.ads&&Array.isArray(i.ads)&&6===i.ads.length?i.ads:null}catch(e){return null}})}(t,$.current);B.current===e&&(n?(H.current={id:e,ads:n},M({id:e,ads:n}),L("done")):L("error"))})},J=(e,t)=>{K(),z.current=e,k(t),g("run"),y(0),R.current.push(setTimeout(()=>X(),1800));let n=0;Zx.forEach((e,t)=>{n+=e,R.current.push(setTimeout(()=>{y(t+1)},n))}),R.current.push(setTimeout(()=>{const t=z.current||e,n=H.current;w(n&&n.id===B.current?Object.assign(Object.assign({},t),{ads:n.ads}):t),g("done"),p(!1)},n+500))},Z=(e,t)=>Kx(void 0,void 0,void 0,function*(){const n=ow(e);if(!e.trim()||!n)return"Add your brand url so Runneth knows what to read.";const r=function(e){const t=e.trim();if(!t)return"Add your work email.";const n=/^[^\s@]+@([^\s@]+)$/.exec(t);if(!n)return"That email is missing an @.";const r=n[1].toLowerCase();if(r.startsWith(".")||r.endsWith(".")||r.includes("..")||!/^[a-z0-9-]+(\.[a-z0-9-]+)*\.[a-z]{2,}$/.test(r))return"Please enter a valid email address.";const a=r.split("."),s=a[a.length-1],i=a.length>=2?a[a.length-2]:"";if(yw.has(i))return"Please double-check your email, that domain looks misspelled.";const o=/^[a-z]{2}$/.test(s);if(!gw.has(s)&&!o){const e=bw.find(e=>function(e,t){if(e===t)return!1;const n=e.length,r=t.length;if(Math.abs(n-r)>1)return!1;let a=0,s=0,i=0;for(;a<n&&s<r;)if(e[a]!==t[s]){if(i+=1,i>1)return!1;n>r?a+=1:(r>n||(a+=1),s+=1)}else a+=1,s+=1;return(a<n||s<r)&&(i+=1),1===i}(e,s));if(e)return`That email domain looks off. Did you mean ".${e}"?`}return null}(t);if(r)return r;const s=vw({website:n,category:pw(cw(n),lw(n)),offer:""});z.current=s,q.current={website:n,offer:""},p(!0),a(n),c(t.trim()),f(!1),Q(n);try{return yield function(e){return Kx(this,void 0,void 0,function*(){var t;const n=null===(t="undefined"!=typeof document?document.cookie.match(/hubspotutk=([^;]+)/):null)||void 0===t?void 0:t[1];if(!(yield fetch("https://api.hsforms.com/submissions/v3/integration/submit/19514659/3c434671-4b35-4dba-823c-9fe8d9852b1d",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fields:[{name:"website",value:e.website},{name:"email",value:e.email}],context:Object.assign({pageUri:"undefined"!=typeof window?window.location.href:"",pageName:"BFCM Planning 2026"},n?{hutk:n}:{})})})).ok)throw new Error("submit failed");window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"hubspot-form-success",form_type:"bfcm-planning"}),window.dataLayer.push({event:"form-submit",form_type:"bfcm-planning"})})}({website:n,offer:"",email:t.trim()}),J(s,cw(n)),null}catch(e){return p(!1),"Something went wrong. Please try again."}}),ee=()=>Kx(void 0,void 0,void 0,function*(){if("undefined"==typeof document)return;const e=document.getElementById("bfcm-hero-url"),t=document.getElementById("bfcm-hero-email"),n=document.getElementById("bfcm-hero-error"),r=e=>{n&&(e?(n.textContent=e,n.removeAttribute("hidden")):(n.textContent="",n.setAttribute("hidden","")))};r(null);const a=yield Z(e?e.value:"",t?t.value:"");a&&r(a)});(0,n.useEffect)(()=>
2{if("undefined"==typeof window)return;const e=new URLSearchParams(window.location.search),t=e.get("site");t&&((e,t)=>{const n=ow(e);if(!n)return;const r=vw({website:n,category:pw(cw(n),lw(n)),offer:t});z.current=r,q.current={website:n,offer:t},a(n),o(t),f(!1),Q(n),J(r,cw(n))})(t,e.get("offer")||"")},[]);const te=[{title:"Reading your site",detail:"Positioning, product, price and voice pulled from your site"},{title:"Pulling your live ads",detail:"ok"===C&&N?`Found <b>${null!==(t=N.activeAds)&&void 0!==t?t:j.length} live ads</b> · matching <b>${j.length}</b> to your briefs`:"Reading your most recent live ads"},{title:"Scanning your category",detail:"<b>25,499 creatives</b> across <b>895 advertisers</b> · Sept to end of BFCM 2025"},{title:"Ranking what carried spend",detail:"Hook tactics, messaging angles and visual formats ranked by <b>$13.5M</b> of spend"},{title:"Matching to your brand",detail:"Top angles matched against the ads you already run"},{title:"Writing your six briefs",detail:"<b>3 warmup</b> for cheap CPMs, <b>3 weekend</b> to convert · scripts and shot lists included"}],ne=x?function(e,t){const n=t.filter(e=>"video"===e.format&&e.fileUrl),r=t.filter(e=>"video"!==e.format),a=e.map(()=>[]),s=e=>{const t=e.slice();let n=!0;for(;n&&t.length;){n=!1;for(const e of a){if(!t.length)break;e.length>=1||(e.push(t.shift()),n=!0)}}};s(n),s(r);const i=n[0]||r[0]||null;if(i)for(const e of a)0===e.length&&e.push(i);return a}(x.cards,j):[],re=(e,t)=>(0,s.jsxs)("article",{className:"ad-brief",children:[(0,s.jsxs)("div",{className:"ad-head",children:[(0,s.jsx)("span",{className:"ad-num",children:e.num}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{className:"ad-name",children:e.name}),(0,s.jsx)("span",{className:"ad-meta",children:e.meta})]})]}),(0,s.jsxs)("div",{className:"ad-jobs",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{children:"When:"})," ",e.when]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{children:"Audience:"})," ",e.audience]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{children:"Goal:"})," ",e.goal]})]}),"video"===e.kind&&e.script?(0,s.jsx)("div",{className:"script-wrap",children:(0,s.jsxs)("table",{className:"script-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Time"}),(0,s.jsx)("th",{children:"Shot"}),(0,s.jsx)("th",{children:"Script"})]})}),(0,s.jsx)("tbody",{children:e.script.map(e=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:e.t}),(0,s.jsx)("td",{children:e.shot}),(0,s.jsx)("td",{children:e.line})]},e.t))})]})}):null,"static"===e.kind?(0,s.jsxs)("div",{className:"ad-static",children:[(0,s.jsx)("span",{className:"static-label",children:"Visual"}),(0,s.jsx)("p",{className:"static-desc",children:e.visual}),(0,s.jsx)("span",{className:"static-label",children:"Copy on the creative"}),(0,s.jsx)("ul",{className:"static-copy",children:(e.copy||[]).map(e=>(0,s.jsxs)("li",{children:[(0,s.jsxs)("b",{children:[e.label,":"]})," ",e.value]},e.label))}),(0,s.jsx)("span",{className:"static-label",children:"Primary text"}),(0,s.jsx)("p",{className:"static-primary",children:e.primary})]}):null,e.audio?(0,s.jsxs)("span",{className:"ad-audio",children:[(0,s.jsx)("b",{children:"Audio:"})," ",e.audio]}):null,(0,s.jsxs)("span",{className:"ad-notes",children:[(0,s.jsx)("b",{children:"Notes:"})," ",e.notes]}),e.proofIsFallback?(0,s.jsxs)("div",{className:"proof proof-gap",children:[(0,s.jsx)("span",{className:"proof-eyebrow",children:"Why this earns its place"}),(0,s.jsx)("span",{className:"proof-note",children:e.proofNote})]}):(0,s.jsxs)("div",{className:"proof",children:[(0,s.jsxs)("span",{className:"proof-eyebrow",children:["Proof ","·"," from your live ads"]}),(0,s.jsxs)("div",{className:"proof-body",children:[t.length?(0,s.jsx)("div",{className:"proof-grid",children:t.map(e=>"video"===e.format&&e.fileUrl?(0,s.jsx)("div",{className:"proof-card",children:(0,s.jsx)("video",{className:"proof-media",src:e.fileUrl,poster:e.thumbnailUrl||void 0,controls:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata"})},e.id):(0,s.jsx)("div",{className:"proof-card",children:(0,s.jsx)("img",{className:"proof-media",src:e.thumbnailUrl||e.fileUrl,alt:"",loading:"lazy",decoding:"async"})},e.id))}):null,(0,s.jsx)("span",{className:"proof-note",children:e.proofNote})]})]})]},e.num),ae=(e,t,n)=>{const r=n.slice(0,3);return r.length?(0,s.jsxs)("div",{className:"over-col",children:[(0,s.jsx)("h5",{children:e}),(0,s.jsx)("p",{className:"over-d",children:t}),(0,s.jsx)("ul",{className:"over-list",children:r.map((e,t)=>(0,s.jsxs)("li",{className:"over-row"+(0===t?" lead":""),children:[(0,s.jsx)("span",{className:"over-val",children:e.value}),(0,s.jsxs)("span",{className:"over-lift",children:[e.lift.toFixed(1),"×"]})]},e.value))})]}):null},se=e=>{const t=e.currentTarget.closest(".receipt"),n=t&&t.querySelector("video, img"),r=n&&n.requestFullscreen?n:t;if(r&&r.requestFullscreen){r.requestFullscreen();const e=t&&t.querySelector("video");e&&e.play().catch(()=>{})}},ie=x?`Based on ${sw(x.totals.creatives)} creatives run by ${x.category}
2 brands between September and the end of BFCM 2025.`+("ok"===C&&j.length?` Matched ${j.length} of ${x.brandName}'s live ads to these briefs as proof.`:"loading"===C?` Pulling ${x.brandName}'s live ads now.`:` We could not pull ${x.brandName}'s live ads just now, so the briefs show the category lanes.`):"";return(0,s.jsxs)("section",{className:V,ref:D,onClick:e=>{const t=e.target.closest("[data-open-plan],[data-run-demo],[data-run-inline]");t&&(e.preventDefault(),t.hasAttribute("data-run-demo")?(f(!1),q.current=null,a(nw.website),Q(nw.website),J(xw,"getwinks.com")):t.hasAttribute("data-run-inline")?ee():f(!0))},onKeyDown:e=>{if("Enter"!==e.key)return;const t=e.target;!t||"bfcm-hero-url"!==t.id&&"bfcm-hero-email"!==t.id||(e.preventDefault(),ee())},children:[(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:'<div class="hero-band">\n    <div class="atmo" aria-hidden="true">\n      <span class="at-grid m-hero"></span>\n      <span class="at-rings"></span>\n      <span class="at-glow g-lime"></span>\n      <span class="at-crosses"></span>\n      <span class="at-scan"></span>\n      <span class="at-grain heavy"></span>\n      <span class="at-vig"></span>\n    </div>\n    <div class="rail r-left" aria-hidden="true"><span>BFCM // 2026</span></div>\n    <div class="rail r-right" aria-hidden="true"><span>CAT. SIGNAL ACTIVE</span></div>\n    <p class="hero-cd"><span>Black Friday Nov 27</span><b>--d --:--:--</b></p>\n\n    <div class="rn-wrap">\n      <main class="hero" id="planTop">\n        <div class="heroleft">\n          <h1>BFCM 2026<br>Meta Ads<br><span class="hl">Planner</span></h1>\n          <p class="lede">Analyzes your live ads, pulls the top tactics in your industry from last year&rsquo;s BFCM, and gives you full briefs for the ads you need to run this year based on that data.</p>\n          <div class="herocta">\n            <div class="heroform">\n              <div class="hf-field"><label class="hf-lab" for="bfcm-hero-url">Tell us your brand.</label><input id="bfcm-hero-url" class="hf-in" type="text" inputmode="url" autocomplete="url" spellcheck="false" placeholder="Your brand url (e.g. yourbrand.com)" aria-label="Brand url"></div>\n              <div class="hf-field"><label class="hf-lab" for="bfcm-hero-email">Tell us where to send your plan.</label><input id="bfcm-hero-email" class="hf-in" type="email" inputmode="email" autocomplete="email" spellcheck="false" placeholder="Work email" aria-label="Work email"></div>\n            </div>\n            <button class="go" type="button" data-run-inline>Build my plan<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6"/></svg></button>\n            <p class="herocta-error" id="bfcm-hero-error" role="alert" hidden></p>\n            <p class="fine">Your plan gets built on this page</p>\n          </div>\n        </div>\n\n        <div class="heroright">\n          <div class="adstream">\n            <div class="as-glass">\n              <div class="as-bar">\n                <span>&#9673; Black Friday <b>2025</b> swipe file</span>\n                <span>SRC <b>MOTION</b></span>\n              </div>\n              <div class="as-cols" aria-hidden="true">\n              <div class="as-col" style="--sp:68s"><div class="as-run"><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/25735318062728183/691fb171e400180cbd146138/b6f574d0-277c-4a56-929e-5f4ef8c72fda.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Cometeer</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1888898208406245/692280e9e400180cbda0bb2d/34c3ed5b-384e-41a3-a922-ce0e25b593cd.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Factor_</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/2078950519540493/692800f8e400180cbdc63d61/a3fa5f9d-2668-42e1-9714-23cfc0c818fb.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Happy Mammoth</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/888206156996917/69288075e400180cbd085e09/e1849862-6100-4ef9-a662-41ea6df6edf2.jpeg" alt="" decoding="async" width="480" height="600"><figcaption class="as-cap">Primal Queen</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1911669916454681/69257949e400180cbd53fada/2d9ecf75-09dd-4d3f-8c6a-83cf8b2536a9.jpeg" alt="" decoding="async" width="337" height="600"><figcaption class="as-cap">Simple Modern</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/25735318062728183/691fb171e400180cbd146138/b6f574d0-277c-4a56-929e-5f4ef8c72fda.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Cometeer</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1888898208406245/692280e9e400180cbda0bb2d/34c3ed5b-384e-41a3-a922-ce0e25b593cd.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Factor_</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/2078950519540493/692800f8e400180cbdc63d61/a3fa5f9d-2668-42e1-9714-23cfc0c818fb.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Happy Mammoth</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/888206156996917/69288075e400180cbd085e09/e1849862-6100-4ef9-a662-41ea6df6edf2.jpeg" alt="" decoding="async" width="480" height="600"><figcaption class="as-cap">Primal Queen</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1911669916454681/69257949e400180cbd53fada/2d9ecf75-09dd-4d3f-8c6a-83cf8b2536a9.jpeg" alt="" decoding="async" width="337" height="600"><figcaption class="as-cap">Simple Modern</figcaption></figure></div></div>\n              <div class="as-col as-rev" style="--sp:86s"><div class="as-run"><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1202
2115031802540/69227236e400180cbd8cdd42/3685ca6d-979b-48a8-926f-452c14873342.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Cotopaxi</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/2293163131184876/6926dbd6e400180cbd6ffb3e/b86b0f15-f0ab-4f52-9df9-07e50988a962.jpeg" alt="" decoding="async" width="600" height="600"><figcaption class="as-cap">Factor_</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/849296360909864/69284cede400180cbd830d7f/b0b4216d-3f79-416d-a243-f365b32af929.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Kind Patches</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1851026895523938/69288075e400180cbd085e10/153febf1-72f1-4fac-9c70-e086b8b4fd7e.jpeg" alt="" decoding="async" width="600" height="600"><figcaption class="as-cap">Primal Queen</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1202115031802540/69227236e400180cbd8cdd42/3685ca6d-979b-48a8-926f-452c14873342.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Cotopaxi</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/2293163131184876/6926dbd6e400180cbd6ffb3e/b86b0f15-f0ab-4f52-9df9-07e50988a962.jpeg" alt="" decoding="async" width="600" height="600"><figcaption class="as-cap">Factor_</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/849296360909864/69284cede400180cbd830d7f/b0b4216d-3f79-416d-a243-f365b32af929.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Kind Patches</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1851026895523938/69288075e400180cbd085e10/153febf1-72f1-4fac-9c70-e086b8b4fd7e.jpeg" alt="" decoding="async" width="600" height="600"><figcaption class="as-cap">Primal Queen</figcaption></figure></div></div>\n              <div class="as-col" style="--sp:74s"><div class="as-run"><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/2306303703151088/6926ae9be400180cbdff9dba/70c1ec63-d54c-4da3-bd9d-a77d21253cc7.jpeg" alt="" decoding="async" width="480" height="600"><figcaption class="as-cap">Cotopaxi</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/2655537648145320/6927eb2ee400180cbd97c2c3/3bc80b56-0742-4d08-b6da-4e7ca690f240.jpeg" alt="" decoding="async" width="600" height="600"><figcaption class="as-cap">Four Sigmatic</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/822931037031973/69286b60e400180cbdcf1a24/4a8dfa00-814c-413f-8f93-9d9d6ed35764.jpeg" alt="" decoding="async" width="337" height="600"><figcaption class="as-cap">PetLab Co.</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1398954154927620/6926e447e400180cbd869e9c/68d8ee70-30a0-441f-b999-9ffc8eecb10f.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">RYZE Superfoods</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/2306303703151088/6926ae9be400180cbdff9dba/70c1ec63-d54c-4da3-bd9d-a77d21253cc7.jpeg" alt="" decoding="async" width="480" height="600"><figcaption class="as-cap">Cotopaxi</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/2655537648145320/6927eb2ee400180cbd97c2c3/3bc80b56-0742-4d08-b6da-4e7ca690f240.jpeg" alt="" decoding="async" width="600" height="600"><figcaption class="as-cap">Four Sigmatic</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/822931037031973/69286b60e400180cbdcf1a24/4a8dfa00-814c-413f-8f93-9d9d6ed35764.jpeg" alt="" decoding="async" width="337" height="600"><figcaption class="as-cap">PetLab Co.</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1398954154927620/6926e447e400180cbd869e9c/68d8ee70-30a0-441f-b999-9ffc8eecb10f.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">RYZE Superfoods</figcaption></figure></div></div>\n              <div class="as-col as-rev" style="--sp:92s"><div class="as-run"><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1413953243710974/692280e9e400180cbda0bb2c/7ce26c42-0c31-4394-805d-1b44db56382e.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Factor_</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1160781319504355/692800f8e400180cbdc63e3f/eba7f042-058a-4c9a-bb32-c433a2e45604.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Happy Mammoth</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/857631177219998/69288075e400180cbd085e14/1e6d62a9-3d0d-4312-810e-e8fbcec39523.jpeg" alt="" decoding="async" width="600" height="600"><figcaption class="as-cap">Primal Queen</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1512344906650546/6906f33352ed4a2ffc561eef/4f397757-6b56-4dcf-8178-2a90b5563b5e.jpeg" alt="" decoding="async" width="337" height="600"><figcaption class="as-cap">Simple Modern</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1413953243710974/692280e9e400180cbda0bb2c/7ce26c42-0c31-4394-805d-1b44db56382e.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Factor_</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1160781319504355/692800f8e400180cbdc63e3f/eba7f042-058a-4c9a-bb32-c433a2e45604.jpeg" alt="" decoding="async" width="338" height="600"><figcaption class="as-cap">Happy Mammoth</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/857631177219998/69288075e400180cbd085e14/1e6d62a9-3d0d-4312-810e-e8fbcec39523.jpeg" alt="" decoding="async" width="600" height="600"><figcaption class="as-cap">Primal Queen</figcaption></figure><figure class="as-tile"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1512344906650546/6906f33352ed4a2ffc561eef/4f397757-6b56-4dcf-8178-2a90b5563b5e.jpeg" alt="" decoding="async" width="337" height="600"><figcaption class="as-cap">Simple Modern</figcaption></figure></div></div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </main>\n    </div>\n  </div>\n  <div class="hazard" aria-hidden="true"></div>\n\n  \x3c!-- ===================== /02 MANIFEST ===================== --\x3e\n  <div class="band b-ink">\n    <div class="atmo" aria-hidden="true">
2\n      <span class="at-grid m-left"></span>\n      <span class="at-glow g-teal"></span>\n      <span class="at-scan"></span>\n      <span class="at-grain"></span>\n    </div>\n    <div class="rn-wrap">\n      <div class="sec-head">\n        <p class="eyebrow">[ /02 <span class="dim">//</span> THE FOUNDATION ]</p>\n        <h2>Your data becomes your strategy</h2>\n        <p class="deck">How the BFCM planning app works.</p>\n      </div>\n\n      <ul class="fnd-list">\n        <li class="fnd-item">\n          <span class="fnd-ico" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></svg></span>\n          <div class="fnd-tx"><h3>Understand your strategy</h3><p>Reads your <b>50 most recent ads</b> to find the angles you use and the audiences you speak to.</p></div>\n        </li>\n        <li class="fnd-item">\n          <span class="fnd-ico" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 20V10M10 20V4M16 20v-7M22 20H2"/></svg></span>\n          <div class="fnd-tx"><h3>Benchmark against last year</h3><p>The top tactics your industry ran for BFCM 2025: <b>25,499 creatives</b> across <b>895 advertisers</b> and <b>$13.5M</b> of spend.</p></div>\n        </li>\n        <li class="fnd-item">\n          <span class="fnd-ico" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M6 2h9l5 5v15H6z"/><path d="M15 2v5h5"/><path d="M9.5 13h6M9.5 17h6"/></svg></span>\n          <div class="fnd-tx"><h3>Brief out the six ad types your brand can&rsquo;t skip</h3><p>Hook written, format picked, job assigned, and the spend lane each one came from. <b>3 warmup, 3 weekend.</b></p></div>\n        </li>\n      </ul>\n    </div>\n  </div>\n\n  \x3c!-- ===================== /03 SPECIMEN ===================== --\x3e\n  <div class="band b-plan">\n    <div class="atmo" aria-hidden="true">
2\n      <span class="at-grid m-left"></span>\n      <span class="at-glow g-teal"></span>\n      <span class="at-crosses"></span>\n      <span class="at-scan"></span>\n      <span class="at-grain"></span>\n      <span class="at-vig"></span>\n    </div>\n    <div class="rn-wrap">\n      <div class="sec-head">\n        <p class="eyebrow">[ /03 <span class="dim">//</span> EXAMPLE OUTPUT ]</p>\n        <h2>Example plan: Winks (sleep supplement)</h2>\n      </div>\n\n      <div class="stage">\n        <div class="sheet2">\n          <div class="sh-bar"><span>WINKS &sdot; GETWINKS.COM</span><span>BFCM <b>2026</b></span></div>\n          <div class="sh-body">\n\n            <div class="drow">\n              <h3 class="sh-t">Your BFCM 2026 Plan.</h3>\n              <p class="sh-l"><b>3 ads to warm up your audience before Black Friday</b>, plus 3 to drive sales during the event itself.</p>\n              <p class="sh-src">Based on 25,499 creatives run by Health &amp; Wellness brands between September and the end of BFCM 2025, as well as the ads you&rsquo;ve been running over the last 3 months. Analyzed 50 of your live ads to shape the plan.</p>\n              <aside class="anno l">\n                <p class="ak">// why six, split 3&ndash;3</p>\n                <p>Warmup ads run <b>while CPMs are cheap</b> to build the pool. Skip them and you pay peak CPM to reach cold audiences on the most competitive weekend of the year.</p>\n              </aside>\n            </div>\n\n            <div class="sh-rule"></div>\n\n            <div class="drow">\n              <p class="sh-k">The foundation &sdot; what makes your category different</p><p class="sh-l">We analyzed <b>25,499 ads</b> and <b>$13.5M</b> in Black Friday ad spend from <b>895 Health &amp; Wellness advertisers</b> last year to build this plan. These tactics ran far more here than across all advertisers.</p><div class="ranks"><div class="rk"><h5>Hooks that over-index</h5><p class="rkd">What stops the scroll</p><ol><li>Explainer <b>2.1&times;</b></li><li>Myth Busting <span>1.6&times;</span></li><li>Warning <span>1.5&times;</span></li></ol></div><div class="rk"><h5>Formats that over-index</h5><p class="rkd">
2How the ad is built</p><ol><li>Unconventional Text <b>2.3&times;</b></li><li>Infographic <span>2.1&times;</span></li><li>Educational <span>2.0&times;</span></li></ol></div><div class="rk"><h5>Angles that over-index</h5><p class="rkd">What the ad argues</p><ol><li>Authority / Expertise <b>2.4&times;</b></li><li>Health Outcomes <span>2.4&times;</span></li><li>Problem-Solution <span>1.9&times;</span></li></ol></div></div><aside class="anno r"><p class="ak">// the whole basis</p><p>This is what sets Health &amp; Wellness apart from everyone else. <b>The six ads below are grounded in your category&rsquo;s real Black Friday data and your own live ads</b>, not a lane we liked the look of.</p></aside>\n            </div>\n\n            <div class="sh-rule"></div>\n\n            <div class="drow">\n              <p class="sh-k">The six ads &sdot; 1 offer &sdot; 2 phases</p>\n              <div class="phase"><span class="pl warm">Warmup &sdot; 3&ndash;6 weeks out</span><span class="pd">No offer yet. Build warm audiences cheaply.</span></div>\n              <div class="briefs"><article class="bf"><div class="bfp"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1371359674711108/6a9597fa0973d675993e89ec/c1e3b83d-d28b-4371-b284-90b82718ec0b.jpg" alt="" decoding="async"><span class="bfn">01</span><span class="bfx">proof &sdot; your live ad</span></div><div class="bfb"><h6>Problem Opener</h6><p>UGC video · Relatability #1</p></div></article><article class="bf"><div class="bfp"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1417615083552440/6a9597fa0973d675993e8a20/2870ed36-2883-42f5-8c3a-5516a58f7e57.jpg" alt="" decoding="async"><span class="bfn">02</span><span class="bfx">proof &sdot; your live ad</span></div><div class="bfb"><h6>Mechanism</h6><p>Demo · Curiosity #2</p></div></article><article class="bf"><div class="bfp"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/2092044364742240/6a9597fa0973d675993e8a1d/ad91fd69-42f6-4de4-a21a-14c4c961d913.jpg" alt="" decoding="async"><span class="bfn">03</span><span class="bfx">proof &sdot; your live ad</span></div><div class="bfb"><h6>Testimonial</h6><p>UGC · Social proof, 8.8%</p></div></article></div>\n              <div class="phase"><span class="pl sale">Weekend &sdot; sale live</span><span class="pd">Offer forward. Convert the pool you built.</span></div>\n              <div class="briefs"><article class="bf"><div class="bfp"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1048662974451958/6a9597fa0973d675993e8a16/45136635-7b0c-44b5-a426-37289d0965fe.jpg" alt="" decoding="async"><span class="bfn">04</span><span class="bfx">proof &sdot; your live ad</span></div><div class="bfb"><h6>Offer Hero</h6><p>Static · Discount #1, 35.9%</p></div></article><article class="bf"><div class="bfp"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1740631656988906/6a9597fa0973d675993e8a11/8fcb2b9a-be0e-4e0c-9083-f5c4e6d16801.jpg" alt="" decoding="async"><span class="bfn">05</span><span class="bfx">proof &sdot; your live ad</span></div><div class="bfb"><h6>Winback</h6><p>Static · Discount + urgency</p></div></article><article class="bf"><div class="bfp"><img src="https://motionswipefile.blob.core.windows.net/swipe-file-cached-links/swipe-file-source-link/1579628233615494/6a9597fa0973d675993e8a29/70014133-c9c4-4b16-b569-5399a1f96c56.jpg" alt="" decoding="async"><span class="bfn">06</span><span class="bfx">proof &sdot; your live ad</span></div><div class="bfb"><h6>Last Chance</h6><p>Static · Urgency, 2.7%</p></div></article></div>\n              <aside class="anno l">\n                <p class="ak">// already yours</p>\n                <p>Each concept is matched to one of Winks&rsquo; <b>147 live ads</b> and shown as proof, so you can see the angle is already theirs.</p>\n              </aside>\n            </div>\n\n            <div class="sh-rule"></div>\n\n            <div class="drow">\n              <p class="sh-k">Inside brief 01 &sdot; Problem Opener</p>\n              <div class="script">\n                <div class="sch"><span>UGC video &sdot; problem-solution &sdot; relatability hook</span><span>Goal &sdot; <b>
2warm cold audiences, no offer</b></span></div>\n                <table>\n                  <thead><tr><th>Time</th><th>Shot</th><th>Script</th></tr></thead>\n                  <tbody>\n                    <tr><td>0:00&ndash;0:03</td><td>Handheld selfie, dark room, clock reads 3:47.</td><td>&ldquo;It&rsquo;s almost 4am. And I&rsquo;m just&hellip; staring at the ceiling. Again.&rdquo;</td></tr>\n                    <tr><td>0:03&ndash;0:08</td><td>Next morning, couch, coffee, tired, to camera.</td><td>&ldquo;I fall asleep fine. I stay asleep about three hours, then I&rsquo;m wide awake. Every single night.&rdquo;</td></tr>\n                    <tr><td>0:08&ndash;0:14</td><td>Kitchen, holding product. On-screen: &ldquo;not another melatonin&rdquo;</td><td>&ldquo;The 3am wake-up isn&rsquo;t one thing going wrong, it&rsquo;s a few things your body&rsquo;s doing at once.&rdquo;</td></tr>\n                    <tr><td>0:22&ndash;0:28</td><td>Product beauty shot on the nightstand.</td><td>&ldquo;If you&rsquo;re the 3am person too&hellip; it&rsquo;s worth a shot.&rdquo;</td></tr>\n                  </tbody>\n                </table>\n              </div>\n              <aside class="anno r">\n                <p class="ak">// hand it straight to an editor</p>\n                <p>Every brief comes timecoded with shot direction, script, audio notes and claim guardrails. <b>Not a prompt. A shooting brief.</b></p>\n              </aside>\n            </div>\n\n\n          </div>\n        </div>\n      </div>\n\n      <div class="plan-cta">\n        <button class="go" type="button" data-open-plan>Build my plan<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6"/></svg></button>\n        <p class="pcn">Your plan gets built on this page</p>\n      </div>\n    </div>\n  </div>\n\n  \x3c!-- ===================== /04 CTA ===================== --\x3e'}}),"done"===v&&x?(0,s.jsxs)("div",{className:"planview",id:Jx,ref:U,role:"region","aria-label":"Your BFCM plan",children:[(0,s.jsxs)("div",{className:"atmo","aria-hidden":"true",children:[(0,s.jsx)("span",{className:"at-grid m-left"}),(0,s.jsx)("span",{className:"at-glow g-teal"}),(0,s.jsx)("span",{className:"at-crosses"}),(0,s.jsx)("span",{className:"at-scan"}),(0,s.jsx)("span",{className:"at-grain"}),(0,s.jsx)("span",{className:"at-vig"})]}),(0,s.jsx)("div",{className:"pv-top",children:(0,s.jsxs)("div",{className:"rn-wrap pv-topin",children:[(0,s.jsxs)("span",{className:"pv-brand",children:["RUNNETH ","·"," BFCM 2026"]}),(0,s.jsx)("button",{type:"button",className:"pv-exit",onClick:()=>{if("undefined"!=typeof window){try{window.history.pushState(null,"",window.location.pathname+window.location.search)}catch(e){}window.scrollTo(0,0)}g("form"),y(0),L("idle")},children:"Back to page"})]})}),(0,s.jsxs)("div",{className:"pv-body",children:[(0,s.jsxs)("header",{className:"pv-head",children:[(0,s.jsxs)("p",{className:"eyebrow",children:["[ YOUR PLAN ",(0,s.jsx)("span",{className:"dim",children:"//"})," ",x.domain," ]"]}),(0,s.jsxs)("h1",{className:"pv-h1",children:[x.brandName,"’s BFCM 2026 plan"]}),(0,s.jsxs)("p",{className:"pv-sub",children:[(0,s.jsx)("b",{children:"3 ads to warm your audience before Black Friday"}),", plus 3 to convert once the sale is live."]}),(0,s.jsx)("p",{className:"pv-src",children:ie}),"writing"===A?(0,s.jsxs)("p",{className:"pv-gen pv-gen-on",children:[(0,s.jsx)("span",{className:"pv-gen-dot","aria-hidden":"true"}),"Writing your six briefs for ",x.brandName,". They will sharpen in a moment."]}):"done"===A?(0,s.jsxs)("p",{className:"pv-gen pv-gen-done",children:["Six briefs written specifically for ",x.brandName,"."]}):null]}),(0,s.jsx)("div",{className:"receipts",children:"ok"===C&&j.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"receipts-eyebrow",children:["Your live ads ","·"," pulled just now"]}),(0,s.jsxs)("div",{className:"receipts-rail",children:[j.slice(0,6).map((e,t)=>(0,s.jsxs)("figure",{className:"receipt",children:["video"===e.format&&e.fileUrl?(0,s.jsx)("video",{className:"receipt-thumb",src:e.fileUrl,poster:e.thumbnailUrl||void 0,controls:!0,muted:!0,loop:!0,playsInl
2ine:!0,preload:"metadata"}):(0,s.jsx)("img",{className:"receipt-thumb",src:e.thumbnailUrl||e.fileUrl,alt:"",loading:"lazy",decoding:"async"}),(0,s.jsxs)("button",{type:"button",className:"receipt-fs",onClick:se,"aria-label":"Open fullscreen",children:[(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,s.jsx)("path",{d:"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5"})}),(0,s.jsx)("span",{children:"Fullscreen"})]})]},t)),(0,s.jsxs)("span",{className:"receipts-note",children:["Pulled ",j.length," of ",x.brandName,"’s live ads to ground the six briefs below."]})]})]}):(0,s.jsx)("span",{className:"receipts-note",children:"loading"===C?`Pulling ${x.brandName}'s live ads now.`:`We could not pull ${x.brandName}'s live ads just now, so the briefs lean on the category lanes below.`})}),(0,s.jsxs)("section",{className:"pv-sec",children:[(0,s.jsxs)("h2",{className:"pv-sech",children:["The foundation ","·"," what makes your category different"]}),(0,s.jsxs)("p",{className:"pv-lead",children:["We analyzed ",(0,s.jsx)("b",{children:sw(x.totals.creatives)})," ads and"," ",(0,s.jsx)("b",{children:(oe=x.totals.spendUSD,oe>=1e6?"$"+(oe/1e6).toFixed(1)+"M":oe>=1e3?"$"+Math.round(oe/1e3)+"K":"$"+oe)})," in Black Friday ad spend from"," ",(0,s.jsx)("b",{children:sw(x.totals.accounts)})," ",x.category," advertisers last year to build this plan."]}),x.overrep?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"pv-lead pv-lead-2",children:["These ran far more in ",x.category," than across all advertisers last year. It is the sharpest read on what your buyers actually respond to."]}),(0,s.jsxs)("div",{className:"over-cols",children:[ae("Hooks that over-index","What stops the scroll",x.overrep.hooks),ae("Formats that over-index","How the ad is built",x.overrep.formats),ae("Angles that over-index","What the ad argues",x.overrep.mechanisms)]})]}):null]}),(0,s.jsxs)("section",{className:"pv-sec",children:[(0,s.jsx)("h2",{className:"pv-sech pv-sech-xl",children:"The six ads you need to run for BFCM"}),(0,s.jsx)("p",{className:"pv-lead",children:"Six ads, built from your category’s real Black Friday patterns and grounded in your own live ads. Warming up your audience before Black Friday, while CPMs are cheaper, is one of the most important pieces of BFCM planning. The warmup ads build awareness cheaply so the weekend ads convert it."}),(0,s.jsxs)("div",{className:"phase-badge phase-warmup",children:["Warmup ","·"," 3 to 6 weeks out"]}),(0,s.jsx)("p",{className:"role-desc",children:"No offer yet. Build warm audiences cheaply, before weekend CPMs spike."}),x.ads.slice(0,3).map((e,t)=>re(e,ne[t]||[])),(0,s.jsxs)("div",{className:"phase-badge phase-weekend",children:["Weekend ","·"," sale live"]}),(0,s.jsx)("p",{className:"role-desc",children:"Offer forward. Convert the warm pool you built. Keep it tight."}),x.ads.slice(3,6).map((e,t)=>re(e,ne[t+3]||[]))]}),(0,s.jsxs)("section",{className:"pv-sec pv-method",children:[(0,s.jsx)("h2",{className:"pv-sech",children:"How this plan was built"}),(0,s.jsxs)("ol",{className:"why-list",children:[(0,s.jsxs)("li",{children:["Read ",x.brandName,"’s positioning from ",x.domain,"."]}),(0,s.jsxs)("li",{children:["Analyzed ",x.category," Black Friday creative on Motion."]}),(0,s.jsxs)("li",{children:["Matched the highest-spend patterns to ",x.brandName,"’s differentiators."]}),(0,s.jsxs)("li",{children:["Built six ad concepts off those top hook tactics, angles, and formats, using"," ",x.brandName,"’s live ads as reference."]})]})]}),(0,s.jsxs)("section",{className:"pv-sec pv-save",children:[(0,s.jsx)("h2",{className:"pv-sech",children:"Save your plan"}),(0,s.jsxs)("div",{className:"pv-save-actions",children:[(0,s.jsx)("button",{type:"button",className:"pv-save-btn",onClick:()=>{if(!x||"undefined"==typeof document)return;const e=function(e){const t=[],n=e=>`${e.value} (${e.pct.toFixed(1)}%)`;return t.push(`# BFCM ad plan for ${e.brandName}
2`),t.push(""),t.push(`- Website: ${e.website}`),t.push(`- Category benchmark: ${e.category}`),t.push(`- Offer: ${e.offerProvided?e.offer:"not provided (used a category-typical range)"}`),t.push(`- Benchmark window: ${e.windowLabel}`),t.push(""),t.push(`## Top ${e.category} BFCM patterns by share of spend`),t.push(`- Hooks: ${e.tables.hooks.map(n).join(", ")}`),t.push(`- Messaging angles: ${e.tables.messaging.map(n).join(", ")}`),t.push(`- Formats: ${e.tables.formats.map(n).join(", ")}`),t.push(""),t.push("## Six ad concepts"),e.ads.forEach(e=>{t.push(""),t.push(`### ${e.num}. ${e.name}`),e.meta&&t.push(e.meta),t.push(`- When: ${e.when}`),t.push(`- Audience: ${e.audience}`),t.push(`- Goal: ${e.goal}`),"video"===e.kind?(e.audio&&t.push(`- Audio: ${e.audio}`),e.visual&&t.push(`- Visual: ${e.visual}`),e.script&&e.script.length&&(t.push("- Script:"),e.script.forEach(e=>t.push(`    - ${e.t} | ${e.shot} | ${e.line}`)))):(e.primary&&t.push(`- Primary text: ${e.primary}`),e.copy&&e.copy.length&&(t.push("- On-image copy:"),e.copy.forEach(e=>t.push(`    - ${e.label}: ${e.value}`)))),e.notes&&t.push(`- Notes: ${e.notes}`),e.proofNote&&t.push(`- Proof: ${e.proofNote}${e.proofIsFallback?" (pattern reference, not a live ad)":""}`)}
2),t.push(""),t.push("Generated with Runneth (https://runneth.com)."),t.join("\n")}(x),t=new Blob([e],{type:"text/markdown;charset=utf-8"}),n=URL.createObjectURL(t),r=(x.domain||"runneth").replace(/[^a-z0-9]+/gi,"-").replace(/^-+|-+$/g,"").toLowerCase(),a=document.createElement("a");a.href=n,a.download=`bfcm-plan-${r||"runneth"}.md`,document.body.appendChild(a),a.click(),document.body.removeChild(a),window.setTimeout(()=>URL.revokeObjectURL(n),2e3)},children:"Download plan (.md)"}),(0,s.jsx)("button",{type:"button",className:"pv-save-btn",onClick:()=>{if("undefined"==typeof window)return;const e=new URLSearchParams;e.set("site",r||(x?x.website:"")),i.trim()&&e.set("offer",i.trim());const t=`${window.location.origin}${window.location.pathname}?${e.toString()}`,n=()=>{O(!0),window.setTimeout(()=>O(!1),2e3)};navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(t).then(n,n):n()},children:P?"Link copied":"Copy shareable link"})]}),(0,s.jsxs)("p",{className:"pv-save-note",children:["Built from public data ","·"," save it, or connect your ad account to make it live."]})]})]}),(0,s.jsx)("div",{className:"rn-wrap",children:(0,s.jsxs)("div",{className:"plan-cta",children:[(0,s.jsxs)("div",{className:"pcta-copy",children:[(0,s.jsx)("h3",{className:"pcta-h",children:"Want a more robust BFCM plan?"}),(0,s.jsx)("p",{className:"pcta-p",children:"Runneth can pull your historical data, performance numbers, and brand context to build a BFCM plan unique to your brand. Plus, you can set it up to refresh automatically and send reminders in Slack so everyone’s on the same page."}),(0,s.jsx)("p",{className:"pcta-p",children:"Book some time with our team to see what you could build."})]}),(0,s.jsx)("div",{className:"pcta-actions",children:(0,s.jsxs)("a",{className:"go",href:"https://runneth.com/book-a-demo",target:"_blank",rel:"noreferrer",children:["Get a demo",(0,s.jsx)(Sw,{})]})})]})})]}):null,(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:'<div class="hazard thin" aria-hidden="true"></div>\n  <div class="band b-teal cta-band">\n    <video class="cta-bg" autoplay muted loop playsinline preload="auto" aria-hidden="true" tabindex="-1"><source src="https://runt-media.motionapp.com/strapi/1/runneth_header_v2_693b498d02.mp4" type="video/mp4"></video>\n    <span class="cta-scrim" aria-hidden="true"></span>\n    <div class="atmo" aria-hidden="true">
2\n      <span class="at-crosses"></span>\n      <span class="at-scan"></span>\n      <span class="at-grain"></span>\n      <span class="at-vig"></span>\n    </div>\n    <div class="rn-wrap">\n      <div class="cta-inner">\n        <div>\n          <p class="eyebrow">[ /04 <span class="dim">//</span> GO DEEPER ]</p>\n          <h2 class="cta-h1line">Go deeper with Runneth</h2>\n          <p>The BFCM planning app was built by Runneth, the AI agent that <em>gets</em> marketing. What could you build with an always-on agent that understands your brand?</p>\n        </div>\n        <div class="cta-actions">\n          <button class="btn btn-primary" type="button" data-open-plan>Build my plan<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" aria-hidden="true"><path d="M5 12h13M13 6l6 6-6 6"/></svg></button>\n          <a class="btn btn-ghost" href="https://runneth.com/book-a-demo">Tell me more about Runneth</a>\n        </div>\n      </div>\n    </div>\n  </div>'}}),(0,s.jsxs)("dialog",{className:"planmodal",ref:F,"aria-label":"Build your BFCM ad plan",onClose:()=>f(!1),children:[(0,s.jsxs)("div",{className:"pm-bar",children:[(0,s.jsxs)("span",{children:["◉"," Input"]}),(0,s.jsx)("button",{className:"pm-x",type:"button",onClick:()=>f(!1),"aria-label":"Close",children:"✕"})]}),(0,s.jsxs)("form",{onSubmit:e=>Kx(void 0,void 0,void 0,function*(){e.preventDefault(),d(null);const t=yield Z(r,l);t&&(d(t),f(!0))}),children:[(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"bfcm-url",children:"Brand url"}),(0,s.jsx)("input",{id:"bfcm-url",type:"text",inputMode:"url",placeholder:"www.yourbrand.com",autoComplete:"url",value:r,onChange:e=>a(e.target.value)})]}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"bfcm-email",children:"Work email"}),(0,s.jsx)("input",{id:"bfcm-email",type:"email",inputMode:"email",placeholder:"[email protected]",autoComplete:"email",value:l,onChange:e=>c(e.target.value)})]}),u?(0,s.jsx)("p",{className:"pm-error",children:u}):null,(0,s.jsxs)("button",{className:"go",type:"submit",disabled:h,children:[h?"Building your plan":"Build my plan",(0,s.jsx)(Sw,{})]}),(0,s.jsx)("p",{className:"fine",children:"Your plan gets built on this page as soon as it is ready."})]})]}),(0,s.jsxs)("div",{className:"runscreen"+("run"===v?" on":""),role:"dialog","aria-modal":"true","aria-label":"Building your plan",children:[(0,s.jsxs)("div",{className:"rs-atmo","aria-hidden":"true",children:[(0,s.jsx)("span",{className:"at-grid m-hero"}),(0,s.jsx)("span",{className:"at-glow g-lime"}),(0,s.jsx)("span",{className:"at-scan"}),(0,s.jsx)("span",{className:"at-grain"})]}),(0,s.jsxs)("button",{className:"rs-close",type:"button",onClick:()=>{K(),B.current++,L("idle"),g("form"),y(0),p(!1)},children:["✕"," close"]}),(0,s.jsxs)("div",{className:"rs-inner",children:[(0,s.jsxs)("div",{className:"rs-top",children:[(0,s.jsxs)("span",{children:["◉"," Building ","·"," ",(0,s.jsx)("b",{className:"rs-brand",children:_})]}),(0,s.jsxs)("span",{children:["BFCM ",(0,s.jsx)("b",{children:"2026"})," plan"]})]}),(0,s.jsx)("h2",{className:"rs-h",children:"Building your plan"}),(0,s.jsxs)("p",{className:"rs-sub",children:["Stay on this page. Your six briefs will appear right here ","—"," ",(0,s.jsx)("b",{children:"you do not need to do anything else."})]}),(0,s.jsx)("div",{className:"rs-rail",children:(0,s.jsx)("i",{style:{width:`${Math.min(100,Math.round(b/te.length*100))}%`}})}),(0,s.jsx)("ol",{className:"rs-steps",children:te.map((e,t)=>{const n=t<b?"done":t===b?"live":"";return(0,s.jsxs)("li",{className:"rstep"+(n?` ${n}`:""),children:[(0,s.jsx)("span",{className:"rs-mark",children:(0,s.jsx)("span",{children:String(t+1).padStart(2,"0")})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{children:e.title}),(0,s.jsx)("p",{className:"rs-line",dangerouslySetInnerHTML:{__html:t<=b?e.detail
2:"Queued"}})]}),(0,s.jsx)("span",{className:"rs-t",children:t<b?"done":t===b?"running":"—"})]},e.title)})})]})]})]});var oe};i(8884);const Tw=({block:e,baseUrl:t})=>{var n,r,a,i,o;const l=null!==(r=null===(n=e.avatar)||void 0===n?void 0:n.url)&&void 0!==r?r:null,c=l?l.startsWith("http")?l:`${t}${l}`:null!==(a=e.avatar_url)&&void 0!==a?a:null,u=(null!==(i=e.socials)&&void 0!==i?i:[]).filter(e=>e.url),d=`rn-section bio-header ${kx(e.class)}`.replace(/\s+/g," ").trim();return(0,s.jsx)("section",{className:d,children:(0,s.jsxs)("div",{className:"bio-header-inner",children:[c&&(0,s.jsx)("img",{className:"bio-avatar",src:c,alt:null!==(o=e.name)&&void 0!==o?o:""}),e.name&&(0,s.jsx)("h1",{className:"bio-name",children:e.name}),e.tagline&&(0,s.jsx)("p",{className:"bio-tagline",children:e.tagline}),u.length>0&&(0,s.jsx)("div",{className:"bio-socials",children:u.map((e,t)=>{var n,r,a;return(0,s.jsx)("a",{className:"bio-social",href:null!==(n=e.url)&&void 0!==n?n:"#",target:"_blank",rel:"noopener noreferrer","aria-label":null!==(r=e.network)&&void 0!==r?r:"social link",dangerouslySetInnerHTML:{__html:Sd(e.network)}},null!==(a=e.id)&&void 0!==a?a:t)})})]})})};i(7240),i(6316);const Aw={unavailable:{name:"Intellectually Unavailable",secondary:"controlfreak",zinger:"So talented. So secretive.",desc:"You build amazing systems and agents with AI but you don't share them with anyone. You may not even realize your systems would be useful to other people. Or you may just want to hoard the skills for yourself. Either way, it's time to open up.",traits:["Has built four agents the team has never heard of","Says “oh, just a system I have” and changes the subject","Would rather rebuild it from scratch than write documentation"],green:"You actually ship. Nobody knows your process, but they know you get stuff done.",compat:"Control Freak. You both believe nobody else can be trusted with the good stuff.",pitchHeader:"Open your heart (and repo) to Runneth",pitch:"Your systems deserve an audie
2nce. Runneth lives in Slack, where the whole team can see it work. You keep the credit and stop being a bottleneck on productivity."},commitment:{name:"Fear of Commitment",secondary:"controlfreak",zinger:"It's not you. It's... actually, it is you.",desc:"You test every new AI tool in your feed but haven't finished onboarding any of them. Usually, you ghost as soon as the free trial ends. You say none of them meet your standards, but you haven't given any of them a fair chance.",traits:["Twelve tools, zero finished onboardings","Ghosts every free trial on day 13 of 14","Only message AI when you need something"],green:"You're endlessly curious, even if you struggle to focus on one thing at a time.",compat:"Going Steady. Opposites attract. One of you owns a calendar.",pitchHeader:"Settle down with Runneth",pitch:"Runneth doesn't need an extended onboarding, just connect your data and it learns your brand. And there's no need to commit to just one AI tool: Runneth integrates with the marketing stack you're already running."},controlfreak:{name:"Control Freak",secondary:"unavailable",zinger:"High standards. Higher suspicion.",desc:"You don't trust AI to get it right, and even if it did, it still wouldn't be done your way. Between your high standards and your deep suspicion, you always end up fully rewriting things. What might happen if you loosen your grip?",traits:["Uses AI to save time, ends up spending more time rewriting","Says “it doesn't get our brand voice” without ever giving it the brand voice","Trusts the output once you've rewritten it completely"],green:"You've got a keen eye for detail, nothing ships broken on your watch.",compat:"Intellectually Unavailable. Two people doing it themselves, together, separately.",pitchHeader:"Stay in control with Runneth",pitch:"You don't need to soften your standards, you just need to communicate them. Runneth learns your brand, your customers, and your top creative automatically. Train it to recognize good work vs. bad work and Runneth can help you wrangle other tools."},steady:{name:"Going Steady",secondary:"obsessed",zinger:"Suspiciously healthy.",desc:"You've found the tool for you and stuck with it. You talk every day. You still have your disagreements, but you find a way through them. Other people might call your AI use boring. You call it productive.",traits:["Defends their one tool like a family member","Hasn't evaluated an alternative since 2024","Has some solid workflows, nothing too ambitious"],green:"You've built some stuff that really works, even if other people think it's boring.",compat:"Obsessed. They may have stronger feelings about AI, but you both see the value in it.",pitchHeader:"Keep steady with Runneth",pitch:"Runneth doesn't replace your current tools, it augments them. Give Runneth the workflows you've built and your whole team can use them to get more done. It becomes your team's operating system, built by you: the person with a normal relationship with AI."},obsessed:{name:"Obsessed",secondary:"steady",zinger:"Please drink some water.",desc:"If someone told you to touch grass you'd write a touch-grass.md skill so AI could do it for you. You started with one AI tool but they've multiplied and now you don't remember what life was like before it. You may not even want to remember.",traits:["Is in three betas and a waitlist right now","Has messaged an LLM within five minutes of waking up","Runs lunch plans through AI twice, for a second opinion"],green:"You know how to commit: when you do something, you do it 100%.",compat:"Going Steady. They'll teach you moderation. You'll teach them the newest models.",pitchHeader:"Get obsessed with Runneth",pitch:"Just like you, Runneth's virtual computer is always on. It runs 24/7, doing work in the background so you can automate, delegate, and salivate in that order. Runneth also uses multiple models so you can always have the right tool for the task at hand."}},Lw=["unavailable","commitment","controlfreak","steady","obsessed"],Iw=new Set(["of","the","a","and","&"]),Mw=e=>{const t=e.split(/\s+/).filter(e=>e&&!Iw.has(e.toLowerCase()));return t.length>=2?(t[0][0]+t[1][0]).toUpperCase():e.replace(/\s+/g,"").slice(0,2).toUpperCase()}
2,Pw=[{q:"It's 4:45pm on a Friday and final ad copy is due Monday at 9 AM. How does AI help?",options:[{key:"unavailable",text:"I have an agent that had this ready by 5, but nobody needs to know that."},{key:"controlfreak",text:"I'll upload the brief to our AI tool before shutting my laptop, but I'll be rewriting it tomorrow."},{key:"commitment",text:"Panic, paste the brief and a quick prompt in, then pray I get something good Monday morning."}]},{q:"You're sharing your screen in a meeting and your AI chat history pops up. What does everyone see?",options:[{key:"controlfreak",text:"Me arguing with AI about how it doesn't get my brand voice."},{key:"commitment",text:"A short prompt, no follow-up."},{key:"obsessed",text:"Multiple five minute voice notes, plus some files uploaded for even more context."}]},{q:"A hot new AI model just posted a launch video that's getting some buzz. What's your move?",options:[{key:"commitment",text:"Sure, I'll try it. I try everything. Doesn't mean I'll actually switch to it though."},{key:"steady",text:"I probably won't even watch the video, I'm happy with my current tools."},{key:"obsessed",text:"I was already on the waitlist, I'll spend a few hours this weekend exploring what it can do."}]},{q:"Honestly, what's your relationship status with AI?",options:[{key:"unavailable",text:"We do great work together, but nobody needs to know that AI is involved."},{key:"controlfreak",text:"We work together but I still don't trust it. It's fine for small, simple tasks though."},{key:"steady",text:"We make a great team. We put our heads together and get stuff done but don't talk much outside of work."}]},{q:"Finale night. Commit to AI for real, or walk away. What do you actually want?",options:[{key:"unavailable",text:"That stays between me and AI, nobody needs to know what we're building."},{key:"steady",text:"I'm good with where we are. We've got a groove and it's working."},{key:"obsessed",text:"I'm all in. I want to see how deep this thing can actually go."}]}],Ow=[{name:"Aashay",title:"The Smooth Operator.",blurb:"Calm, cool, collected. Treats AI like a wingman: happy to let it do some heavy lifting, as long as he gets to deliver the closing line.",photo:"https://runt-media.motionapp.com/webeth/ultimaitum-match-aashay-9768d.jpg"},{name:"Stefania",title:"The Discerning One.",blurb:"Has tried the tools, has opinions, and does not impress easily. Win her over and she's loyal for life. Phone it in and she'll clock it before you finish your sentence.",photo:"https://runt-media.motionapp.com/webeth/ultimaitum-match-stefania-9188f.jpg"},{name:"Rainier",title:"The Early Adopter.",blurb:"First in line for every beta, three tabs deep before the coffee's cold. Will absolutely send you a voice note about a model you've never heard of.",photo:"https://runt-media.motionapp.com/webeth/ultimaitum-match-rainier-52958.jpg"},{name:"Arnaz",title:"The Natural.",blurb:"Makes it all look effortless, whether it's a cold open or a clever prompt. Low drama, high output, the kind of match who just gets it.",photo:"https://runt-media.motionapp.com/webeth/ultimaitum-match-arnaz-00427.jpg"},{name:"Miguel",title:"The Straight Shooter.",blurb:"Gets to the point faster than the model can finish generating. Ask a direct question, get a direct answer.",photo:"https://runt-media.motionapp.com/webeth/ultimaitum-match-miguel-21b24.jpg"}],Rw=()=>{const[e,t]=(0,n.useState)([]),[r,a]=(0,n.useState)({}),[i,o]=(0,n.useState)(null),l=(0,n.useRef)(null);(0,n.useEffect)(()=>()=>{null!==l.current&&window.clearTimeout(l.current)},[]);const c=e.length>=Pw.length;(0,n.useEffect)(()=>{if(document.getElementById("utq-fonts"))return;const e=document.createElement("link");e.id="utq-fonts",e.rel="stylesheet",e.href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Anton&family=Space+Mono:wght@400;700&display=swap",document.head.appendChild(e)},[]);const u=(0,n.useMemo)(()=>{const t={unavailable:0,commitment:0,controlfreak:0,steady:0,obsessed:0};e.forEach(e=>{t[e.key]+=3,t[Aw[e.key].secondary]+=1});const n=Lw.map(e=>({key:e,name:Aw[e].name,score:t[e]})).sort((e,t)=>
2t.score-e.score),r=n[0],a=n[1];return{winner:r,runnerUp:a,closeCall:!!a&&r.score-a.score<=3}},[e]),d=()=>{null===i&&t(e=>e.slice(0,-1))},h=()=>{t([]),a({})};return(0,s.jsxs)("div",{className:"app-toxic-ai-user",id:"utq-quiz",children:[(0,s.jsxs)("div",{className:"utq-quiz-head",children:[(0,s.jsx)("span",{className:"utq-kicker utq-quiz-kicker",children:"The quiz"}),(0,s.jsxs)("h2",{className:"utq-hd utq-quiz-title",children:["What Kind of Toxic ",(0,s.jsx)("span",{className:"utq-grad-text",children:"AI"})," User Are You?"]})]}),(0,s.jsx)("div",{className:c?"utq-result-shell":"utq-card",children:c?(()=>{const e=Aw[u.winner.key],t=e.compat.split(". ")[0],n=e.compat.slice(t.length+2),r=Mw(e.name),a=Mw(t);return(0,s.jsx)("div",{className:"utq-result",children:(0,s.jsxs)("div",{className:"utq-result-content",children:[(0,s.jsx)("span",{className:"utq-eyebrow",children:"Your result"}),(0,s.jsx)("h3",{className:"utq-typename",children:e.name}),(0,s.jsxs)("div",{className:"utq-lower-thirds",children:[(0,s.jsx)("div",{className:"utq-lt utq-lt-primary",children:e.zinger}),u.closeCall&&u.runnerUp&&(0,s.jsxs)("div",{className:"utq-lt utq-lt-secondary",children:["Also showing: ",u.runnerUp.name," energy"]})]}),(0,s.jsx)("p",{className:"utq-desc",children:e.desc}),(0,s.jsxs)("div",{className:"utq-result-grid",children:[(0,s.jsxs)("div",{className:"utq-panel",children:[(0,s.jsx)("span",{className:"utq-strip","aria-hidden":"true"}),(0,s.jsx)("div",{className:"utq-panel-head",children:"Your toxic traits"}),(0,s.jsx)("div",{className:"utq-panel-body",children:(0,s.jsxs)("ul",{className:"utq-rap",children:[e.traits.map((e,t)=>(0,s.jsxs)("li",{children:[(0,s.jsx)("span",{className:"utq-mark utq-x",children:"✗"}),(0,s.jsx)("span",{children:e})]},t)),(0,s.jsxs)("li",{className:"utq-flag",children:[(0,s.jsx)("span",{className:"utq-mark utq-check",children:"✓"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{children:"Green flag:"})," ",e.green]})]})]})})]}),(0,s.jsxs)("div",{className:"utq-panel",children:[(0,s.jsx)("span",{className:"utq-strip","aria-hidden":"true"}),(0,s.jsx)("div",{className:"utq-panel-head",children:"Most compatible with"}),(0,s.jsxs)("div",{className:"utq-panel-body utq-match-body",children:[(0,s.jsxs)("div",{className:"utq-badges",children:[(0,s.jsx)("span",{className:"utq-badge utq-badge-you",children:r}),(0,s.jsx)("span",{className:"utq-badge utq-badge-them",children:a}),(0,s.jsx)("span",{className:"utq-heart",children:"❤"})]}),(0,s.jsxs)("p",{className:"utq-match-copy",children:[(0,s.jsxs)("b",{children:[t,"."]})," ",n]})]})]})]}),(0,s.jsxs)("div",{className:"utq-match-section",children:[(0,s.jsx)("h4",{className:"utq-hd utq-match-title",children:"Who will you be matched with?"}),(0,s.jsx)("p",{className:"utq-bd utq-match-pitch",children:e.pitch}),(0,s.jsx)("div",{className:"utq-match-grid",children:Ow.map(e=>(0,s.jsxs)("div",{className:"utq-match-card",children:[(0,s.jsx)("img",{src:e.photo,alt:e.name,className:"utq-match-photo",loading:"lazy"}),(0,s.jsx)("div",{className:"utq-hd utq-match-name",children:e.name}),(0,s.jsx)("div",{className:"utq-mono utq-match-role",children:e.title}),(0,s.jsx)("p",{className:"utq-bd utq-match-blurb",children:e.blurb})]},e.name))}),(0,s.jsxs)("div",{className:"utq-result-ctas",children:[(0,s.jsx)("a",{className:"utq-btn utq-btn-lime",href:"https://runneth.com/book-a-demo",target:"_blank",rel:"noopener noreferrer",children:"Book a demo and find out →"}),(0,s.jsx)("a",{className:"utq-btn utq-btn-ghost",href:"https://www.runneth.com",target:"_blank",rel:"noopener noreferrer",children:"Learn more about Runneth"})]})]}),(0,s.jsx)("button",{type:"button",className:"utq-link utq-link-sky utq-retake",onClick:h,children:"← Retake the quiz"})]})})})():(()=>{var n;const c=e.length,u=Pw[c],h=Math.round(c/Pw.length*100),p=null!==(n=r[c])&&void 0!==n?n:null;return(0,s.jsxs)("div",{className:"utq-ep",children:[(0,s.jsxs)("div",{className:"utq-ep-head",children:[(0,s.jsxs)("span",{className:"utq-kicker",children:["Episode ",c+1," of ",Pw.length]}),(0,s.jsxs)("span",{className:"utq-kicker",children:[h,"%"]})]}),(0,s.jsx)("div",{className:"utq-progress",style:{gridTemplateColumns:`repeat(${Pw.length}, 1fr)`},children:Pw.map((e,t)=>(0,s.jsx)("div",{className:"utq-progress-seg"+(t<c?" is-done":"")},t))}),(0,s.jsx)("h3",{className:"utq-hd utq-question",children:u.q}),(0,s.jsx)("div",{className:"utq-opts",children:u.options.map((e,n)=>(0,s.jsxs)("button",{type:"button",className:`utq-opt${p===n?" is-selected":""}${i===n?" is-locking":""}`,"aria-pressed":p===n,onClick:()=>((e,n,r)=>{null===i&&(a(t=>Object.assign(Object.assign({},t),{[e]:n})),o(n),l.current=window.setTimeout(()=>{o(null),t(t=>[...t,{qIndex:e,key:r}])},340))})(c,n,e.key),children:[(0,s.jsx)("span",{className:"utq-opt-dot"}),(0,s.jsx)("span",{children:e.text})]},n))}),c>0&&(0,s.jsx)("div",{className:"utq-back-row",children:(0,s.jsx)("button",{type:"button",className:"utq-link",onClick:d,children:"← back"})})]},c)})()})]})},Dw=({block:e,baseUrl:t=""})=>{var n,r,a;const i=null!==(r=null===(n=e.app)||void 0===n?void 0:n.name)&&void 0!==r?r:"",o=null!==(a=e.name)&&void 0!==a?a:"";return"toxic-ai-user"===i?(0,s.jsx)(Rw,{versionName:o,data:e.data,baseUrl:t}):(0,s.jsx)("div",{className:`shared-app shared-app-placeholder ${i} ${o}`.trim(),children:(0,s.jsxs)("span",{children:["APP",(0,s.jsx)("br",{}),"PLACEHOLDER",(0,s.jsx)("br",{}),`${i}${o?` - ${o}`:""}`]})})},Fw=({block:e,baseUrl:t})=>{var n;const r=null!==(n=e.card_lists)&&void 0!==n?n:[],a=`rn-section rn-cardlists-section ${kx(e.class)}`.replace(/\s+/g," ").trim();return(0,s.jsx)("section",{className:a,children:(0,s.jsxs)("div",{className:"rn-wrap",children:[(0,s.jsx)(jx,{kicker:e.eyebrow,title:e.title,subtitle:e.subtitle}),r.filter(e=>!0!==e.hide).map((e,n)=>{var r,a;const i=(null!==(r=e.cards)&&void 0!==r?r:[]).filter(e=>!0!==e.hide);return(0,s.jsxs)("div",{className:"rn-cardlists-group",children:[e.title&&(0,s.jsx)("p",{className:"rn-cardlists-gh",children:e.title}),i.length>0&&(0,s.jsx)("div",{className:"rn-cardlists-items",children:i.map((e,n)=>{var r,a,i,o,l;const c=null!==(i=null===(a=null===(r=e.image)||void 0===r?void 0:r.image)||void 0===a?void 0:a.url)&&void 0!==i?i:null,u=c?c.startsWith("http")?c:`${t}${c}`:null;return(0,s.jsxs)("div",{className:"rn-cardlists-item",children:[(0,s.jsx)("span",{className:"rn-cardlists-tile",children:u&&(0,s.jsx)("img",{src:u,alt:null!==(o=e.title)&&void 0!==o?o:"",loading:"lazy"})}),(0,s.jsxs)("span",{className:"rn-cardlists-copy",children:[e.title&&(0,s.jsx)("span",{className:"rn-cardlists-top",children:e.title}),e.body&&(0,s.jsx)("span",{className:"rn-cardlists-d",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:e.body})})]})]},null!==(l=e.id)&&void 0!==l?l:n)})})]},null!==(a=e.id)&&void 0!==a?a:n)})]})})},Uw=({baseUrl:e,blocks:t,crumbs:n,customerStories:r})=>(0,s.jsx)(s.Fragment,{children:t.map(t=>{var a,i,o,l,c,u,d,h,p,m,f;const v=`${t.__component}-${t.id}`;if(!0===t.hidden||!0===t.hide)return null;switch(t.__component){case"runneth.hero":return(0,s.jsx)(Cx,{baseUrl:e,block:t},v);case"runneth.pricing-hero":return(0,s.jsx)(Tx,{baseUrl:e,block:t},v);case"runneth.capability-grid":return(0,s.jsx)(Ax,{baseUrl:e,block:t},v);case"runneth.card-grid":return(0,s.jsx)(Mx,{baseUrl:e,block:t},v);case"runneth.card-list-with-visual":return(0,s.jsx)(Rx,{baseUrl:e,block:t},v);case"runneth.story-slider":return(0,s.jsx)(Px,{baseUrl:e,block:t},v);case"runneth.cta-band":return(0,s.jsx)(Ox,{baseUrl:e,block:t},v);case"runneth.cac-calculator":return(0,s.jsx)(qx,{baseUrl:e,block:t},v);case"runneth.bfcm-planner":return(0,s.jsx)(Cw,{baseUrl:e,block:t},v);case"shared.bio-header":return(0,s.jsx)(Tw,{baseUrl:e,block:t},v);case"shared.faq":case"runneth.faq":return(0,s.jsx)(_x,{baseUrl:e,block:t},v);case"shared.hero":return(0,s.jsx)(Sx,{baseUrl:e,block:t,crumbs:n},v);case"runneth.customer-stories-list":return(0,s.jsx)(Dx,{baseUrl:e,block:t,stories:r},v);case"shared.demo-trial":return(0,s.jsx)("section",{className:("runneth-block runneth-block-demo-trial "+(t.class?`section-${t.class}`:"")).trim(),children:(0,s.jsx)("div",{className:"rn-wrap",children:(0,s.jsx)($d,{baseUrl:e,block:t})})},v);case"shared.animation":return(0,s.jsx)("section",{className:`runneth-block runneth-block-animation ${t.name?t.name:""}`,children:(0,s.jsx)(Ju,{block:t,baseUrl:e})},v);case"shared.app":return(0,s.jsx)("section",{className:("runneth-block runneth-block-app "+(t.class?`section-${t.class}`:"")).trim(),children:(0,s.jsx)(Dw,{block:t,baseUrl:e})},v);case"shared.feature-comparison":return(0,s.jsx)("section",{className:("runneth-block runneth-block-feature-comparison "+(t.class?`section-${t.class}`:"")).trim(),children:(0,s.jsx)(wx,{block:t,baseUrl:e})},v);case"shared.card-lists":return(0,s.jsx)(Fw,{baseUrl:e,block:t},v);case"shared.table":return(0,s.jsx)("section",{className:("runneth-block runneth-block-table "+(t.class?`section-${t.class}`:"")).trim(),children:(0,s.jsxs)("div",{className:"rn-wrap",children:[t.title&&(0,s.jsx)("h2",{className:"rn-table-title",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:t.title})}),(0,s.jsx)(zd,{block:t})]})},v);case"shared.rich-text":{const n=t.background_image,r=null==n?void 0:n.image;let i=null!==(a=null==n?void 0:n.href)&&void 0!==a?a:null==r?void 0:r.url;return i&&!i.startsWith("http")&&(i=`${e}${i}`),(0,s.jsx)("section",{className:"runneth-block runneth-block-rich-text "+(t.class?`section-${t.class}`:""),style:i?{backgroundImage:`url(${i})`}:void 0,children:(0,s.jsx)(Pl,{baseUrl:e,block:t})},v)}case"events.card-list":return(0,s.jsx)("section",{className:`runneth-block runneth-block-card-list ${t.layout?`section-layout-${t.layout}`:""} ${t.class?`section-${t.class}`:""}`,children:(0,s.jsx)(Td,{baseUrl:e,block:t})},v);case"shared.button":return(0,s.jsx)("section",{className:"runneth-block runneth-block-button",children:(0,s.jsx)(fo,{baseUrl:e,block:t})},v);case"shared.quote":return(0,s.jsx)("section",{className:"runneth-block runneth-block-quote",children:(0,s.jsx)(Bd,{baseUrl:e,block:t})},v);case"shared.video":{if(!(Boolean(t.external_video_id)||Boolean(t.t
2itle)||Boolean(t.body)||(null!==(o=null===(i=t.tags)||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0||(null!==(c=null===(l=t.buttons)||void 0===l?void 0:l.length)&&void 0!==c?c:0)>0||(null!==(d=null===(u=t.placeholder_image)||void 0===u?void 0:u.length)&&void 0!==d?d:0)>0))return null;const n=null===(h=t.background_image)||void 0===h?void 0:h.image;let r=null!==(m=null===(p=t.background_image)||void 0===p?void 0:p.href)&&void 0!==m?m:null==n?void 0:n.url;return r&&!r.startsWith("http")&&(r=`${e}${r}`),(0,s.jsx)("section",{className:("runneth-block runneth-block-video "+(t.class?`section-${t.class}`:"")).trim(),style:r?{backgroundImage:`url(${r})`}:void 0,id:null!==(f=t.anchor)&&void 0!==f?f:void 0,children:(0,s.jsx)("div",{className:"rn-wrap rn-video-wrap",children:(0,s.jsx)(Zu,{baseUrl:e,block:t})})},v)}case"shared.image":{const n=t.layout;return(0,s.jsx)("section",{className:`runneth-block runneth-block-image ${t.class?`section-${t.class}`:""} ${n?`section-layout-${n}`:""}`.replace(/\s+/g," ").trim(),children:(0,s.jsx)(hd,{baseUrl:e,block:t})},v)}case"shared.media-gallery":return(0,s.jsx)("section",{className:"runneth-block runneth-block-media-gallery "+(t.class?`section-${t.class}`:""),children:(0,s.jsx)(Rm,{baseUrl:e,block:t})},v);case"shared.lineup":return(0,s.jsx)("section",{className:"runneth-block runneth-block-lineup "+(t.class?`section-${t.class}`:""),children:(0,s.jsx)(bd,{baseUrl:e,block:t})},v);case"shared.text-and-image":return(0,s.jsx)("section",{className:("runneth-block runneth-block-text-and-image "+(t.class?`section-${t.class}`:"")).trim(),children:(0,s.jsx)(td,{baseUrl:e,block:t})},v);default:return null}})}),$w=()=>(0,s.jsx)("svg",{className:"runneth-header-wordmark",viewBox:"0 0 148 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Runneth",children:(0,s.jsxs)("g",{fill:"currentColor",children:[(0,s.jsx)("path",{d:"M1.04151 31.4398C0.4663 31.4398 0 30.9735 0 30.3983V10.2151C0 9.63986 0.4663 9.17356 1.04151 9.17356H6.1416C6.71681 9.17356 7.18311 9.63986 7.18311 10.2151V14.5338C7.18311 14.8442 7.70194 14.911 7.80047 14.6166C9.29569 10.1497 11.6132 8.94966 14.7262 9.09554C15.2533 9.12024 15.6489 9.57105 15.6489 10.0988V16.5607C15.6489 17.1359 15.1826 17.6022 14.6074 17.6022H9.43515C8.35663 17.6022 7.48232 18.4765 7.48232 19.555V30.3983C7.48232 30.9735 7.01602 31.4398 6.44081 31.4398H1.04151Z"}),(0,s.jsx)("path",{d:"M98.497 32C91.5272 32 86.9954 27.2627 86.9954 20.5006C86.9954 13.7385 91.7838 8.6139 98.5823 8.6139C105.381 8.6139 109.571 13.222 109.571 19.8979V20.9236C109.571 21.4988 109.105 21.9651 108.53 21.9651H94.5689C94.3371 21.9651 94.1557 22.167 94.1889 22.3964C94.6215 25.3896 96.1723 26.961 98.5823 26.961C100.23 26.961 101.457 26.1757 102.013 24.8582C102.208 24.397 102.622 24.0324 103.123 24.0324H108.019C108.67 24.0324 109.165 24.6272 108.965 25.2472C107.63 29.3771 103.652 32 98.497 32ZM94.317 17.5001C94.2611 17.7375 94.4459 17.9593 94.6898 17.9593H102.046C102.276 17.9593 102.457 17.7614 102.425 17.534C102.071 14.9626 100.69 13.5662 98.5402 13.5662C96.4014 13.5662 94.9091 14.986 94.317 17.5001Z"}),(0,s.jsx)("path",{d:"M121.675 31.6984C115.775 31.6984 113.166 29.3725 113.166 23.9463V15.1202C113.166 14.9045 112.992 14.7296 112.776 14.7296H110.531C109.955 14.7296 109.489 14.2633 109.489 13.6881V10.2151C109.489 9.63986 109.955 9.17356 110.531 9.17356H112.776C112.992 9.17356 113.166 8.9987 113.166 8.783V4.48717C113.166 3.91196 113.633 3.44566 114.208 3.44566H119.65C120.225 3.44566 120.691 3.91196 120.691 4.48717V8.783C120.691 8.9987 120.866 9.17356 121.082 9.17356H124.14C124.715 9.17356 125.181 9.63986 125.181 10.2151V13.6881C125.181 14.2633 124.715 14.7296 124.14 14.7296H121.082C120.866 14.7296 120.691 14.9045 120.691 15.1202V23.7308C120.691 25.4103 121.419 26.1428 123.428 26.1428C123.604 26.1428 123.79 26.1363 123.97 26.1269C124.545 26.0969 125.009 26.523 125.009 27.0982V30.5649C125.009 31.0898 124.619 31.5347 124.097 31.5831C123.321 31.6549 122.498 31.6984 121.675 31.6984Z"}),(0,s.jsx)("path",{d:"M127.492 31.4398C126.917 31.4398 126.451 30.9735 126.451 30.3983V1.04151C126.451 0.4663 126.917 0 127.492 0H132.72C133.296 0 133.762 0.4663 133.762 1.04151V11.7361C133.762 12.0023 134.134 12.1086 134.292 11.8945C135.813 9.83386 138.083 8.74267 140.86 8.74267C143.04 8.74267 144.708 9.30233 145.948 10.5083C147.145 11.7574 148 13.7816 148 16.7964V30.3983C148 30.9735 147.534 31.4398 146.958 31.4398H141.517C140.941 31.4398 140.475 30.9735 140.475 30.3983V18.7775C140.475 17.1842 140.133 16.2798 139.62 15.7628
2C139.106 15.2031 138.423 14.9446 137.568 14.9446C135.259 14.9446 133.933 16.7533 133.933 19.8543V30.3983C133.933 30.9735 133.467 31.4398 132.891 31.4398H127.492Z"}),(0,s.jsx)("path",{d:"M32.0041 9.17356C31.4289 9.17356 30.9626 9.63986 30.9626 10.2151V20.3282C30.9626 20.3282 30.9626 20.3318 30.9626 20.3338V22.7828C30.9626 24.5399 29.5351 25.9644 27.7744 25.9644C26.0136 25.9644 24.5861 24.5399 24.5861 22.7828V10.2151C24.5861 9.63986 24.1198 9.17356 23.5446 9.17356H18.1083C17.533 9.17356 17.0667 9.63986 17.0667 10.2151V24.1612C17.0667 29.0278 19.6321 31.8702 24.0792 31.8702C27.0119 31.8702 29.2505 30.6714 30.7072 28.3615C30.8553 28.1266 31.2623 28.2263 31.2623 28.504V30.3983C31.2623 30.9735 31.7286 31.4398 32.3038 31.4398H37.4039C37.9791 31.4398 38.4454 30.9735 38.4454 30.3983V10.2151C38.4454 9.63986 37.9791 9.17356 37.4039 9.17356H32.0041Z"}),(0,s.jsx)("path",{d:"M62.2355 16.7969C62.2355 13.7821 61.3805 11.7579 60.1832 10.5088C58.9432 9.30283 57.2759 8.74317 55.0951 8.74317C52.2457 8.74317 49.9365 9.86526 48.4073 12.0486C48.2524 12.2698 47.8688 12.1657 47.8688 11.8957V10.2156C47.8688 9.64037 47.4025 9.17407 46.8273 9.17407H41.7272C41.152 9.17407 40.6857 9.64037 40.6857 10.2156V30.3988C40.6857 30.974 41.152 31.4403 41.7272 31.4403H47.1087C47.6839 31.4403 48.1502 30.974 48.1502 30.3988V17.9259C48.1502 16.1171 49.6198 14.6505 51.4324 14.6505C53.2449 14.6505 54.7146 16.1171 54.7146 17.9259V30.3988C54.7146 30.974 55.1809 31.4403 55.7561 31.4403H61.194C61.7692 31.4403 62.2355 30.974 62.2355 30.3988V16.7969Z"}),(0,s.jsx)("path",{d:"M85.7391 16.7969C85.7391 13.7821 84.8841 11.7579 83.6868 10.5088C82.4468 9.30283 80.7795 8.74317 78.5987 8.74317C75.7493 8.74317 73.4401 9.86526 71.9109 12.0486C71.756 12.2698 71.3724 12.1657 71.3724 11.8957V10.2156C71.3724 9.64037 70.9061 9.17407 70.3309 9.17407H65.2308C64.6556 9.17407 64.1893 9.64037 64.1893 10.2156V30.3988C64.1893 30.974 64.6556 31.4403 65.2308 31.4403H70.6123C71.1875 31.4403 71.6538 30.974 71.6538 30.3988V17.9259C71.6538 16.1171 73.1234 14.6505 74.936 14.6505C76.7485 14.6505 78.2182 16.1171 78.2182 17.9259V30.3988C78.2182 30.974 78.6845 31.4403 79.2597 31.4403H84.6976C85.2728 31.4403 85.7391 30.974 85.7391 30.3988V16.7969Z"})]})}),Bw=({header:e,baseUrl:t})=>{var n,r;const a=Yc(e.logo,t),i=(null!==(n=e.links)&&void 0!==n?n:[]).filter(e=>e.label);return(0,s.jsx)("header",{className:"runneth-header",children:(0,s.jsxs)("div",{className:"runneth-header-pill",children:[(0,s.jsx)("a",{className:"runneth-header-logo",href:"/","aria-label":"Runneth home",children:a?(0,s.jsx)("img",{src:a,alt:"Runneth"}):(0,s.jsx)($w,{})}),(0,s.jsxs)("div",{className:"runneth-header-actions",children:[i.length>0&&(0,s.jsx)("nav",{className:"runneth-header-nav","aria-label":"Primary",children:i.map((e,t)=>{var n,r,a;return(0,s.jsx)("a",{className:"runneth-header-link",href:null!==(n=e.href)&&void 0!==n?n:"#",target:null!==(r=e.href_target)&&void 0!==r?r:"_self",children:e.label},null!==(a=e.id)&&void 0!==a?a:t)})}),e.cta_label&&(0,s.jsx)("a",{className:"runneth-header-cta",href:null!==(r=e.cta_href)&&void 0!==r?r:"#",children:e.cta_label})]})]})})},Hw=e=>{var t;return null!==(t=e.href_target)&&void 0!==t?t:"_self"},zw=(e,t)=>{var n,r;return(null!==(n=e.index)&&void 0!==n?n:0)-(null!==(r=t.index)&&void 0!==r?r:0)},qw=e=>{var t,n,r;return(null===(t=e.navigation_item)||void 0===t?void 0:t.link)||(null===(r=null===(n=e.navigation_item)||void 0===n?void 0:n.route)||void 0===r?void 0:r.full_path)||"#"},Gw=e=>{var t;return(null===(t=e.navigation_item)||void 0===t?void 0:t.text)||e.text||e.name||""},Ww=({footer:e,baseUrl:t})=>{var n,r,a,i,o,l;const c=Yc(e.logo,t),u=null!==(n=e.socials)&&void 0!==n?n:[],d=null!==(r=e.link_groups)&&void 0!==r?r:[],h=null!==(a=e.links)&&void 0!==a?a:[],p=Boolean(e.form),m=[...null!==(o=null===(i=e.navigation)||void 0===i?void 0:i.children)&&void 0!==o?o:[]].sort(zw),f=m.length>0,v=Boolean(e.newsletter_title||e.newsletter_body||e.newsletter_placeholder||p||u.length>0);return(0,s.jsx)("footer",{className:"runneth-footer",children:(0,s.jsxs)("div",{className:"runneth-footer-grid",children:[(0,s.jsxs)("div",{className:"runneth-footer-top",children:[(0,s.jsx)("a",{className:"runneth-footer-logo",href:"/","aria-label":"Runneth home",children:c?(0,s.jsx)("img",{src:c,alt:"Runneth"}):(0,s.jsx)("span",{className:"runneth-wordmark",children:"Runneth"})}),e.tagline&&(0,s.jsx)("p",{className:"runneth-footer-tagline",children:(0,s.jsx)(ta,{rehypePlugins:[co],components:{p:({children:e})=>(0,s.jsx)(s.Fragment,{children:e})},children:e.tagline})})]}),v&&(0,s.jsxs)("div",{className:"runneth-footer-newsletter",children:[e.newsletter_title&&(0,s.jsx)("h2",{className:"runneth-footer-news-title",children:e.newsletter_title}),e.newsletter_body&&(0,s.jsx)("p",{className:"runneth-footer-news-body",children:e.newsletter_body}
2),p&&e.form?(0,s.jsx)("div",{className:"runneth-footer-form runneth-footer-regform",children:(0,s.jsx)(Jd,{baseUrl:t,block:e.form})}):(0,s.jsxs)("form",{className:"runneth-footer-form",action:"#",method:"post",children:[(0,s.jsx)("input",{className:"runneth-footer-input",type:"email",name:"email",required:!0,placeholder:null!==(l=e.newsletter_placeholder)&&void 0!==l?l:"Enter your email address","aria-label":"Email address"}),(0,s.jsx)("button",{className:"runneth-footer-submit",type:"submit","aria-label":"Subscribe",children:(0,s.jsx)("svg",{width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M7.90476 12L6.85714 10.9821L11.1701 6.73661H0V5.26339H11.1701L6.85714 1.03125L7.90476 0L14 6L7.90476 12Z",fill:"currentColor"})})})]}),u.length>0&&(0,s.jsx)("ul",{className:"runneth-footer-socials",children:u.map((e,n)=>{var r,a,i,o;const l=Wc(null===(r=e.image)||void 0===r?void 0:r.url,t);return(0,s.jsx)("li",{children:(0,s.jsx)("a",{className:"runneth-footer-social",href:null!==(a=e.href)&&void 0!==a?a:"#",target:Hw(e),rel:"_blank"===Hw(e)?"noreferrer":void 0,"aria-label":null!==(i=e.label)&&void 0!==i?i:void 0,children:l&&(0,s.jsx)("img",{src:l,alt:"",width:40,height:40})})},null!==(o=e.id)&&void 0!==o?o:n)})})]}),f?(0,s.jsx)("div",{className:"runneth-footer-columns",children:m.map(e=>{var t,n,r;const a=null!==(n=null!==(t=e.text)&&void 0!==t?t:e.name)&&void 0!==n?n:"",i=[...null!==(r=e.children)&&void 0!==r?r:[]].sort(zw);return(0,s.jsxs)("nav",{className:"runneth-footer-column","aria-label":a||"Footer links",children:[a&&(0,s.jsx)("h3",{className:"runneth-footer-column-heading",children:a}),i.map(e=>{var t;return(0,s.jsx)("a",{className:"runneth-footer-link",href:qw(e),target:null!==(t=e.anchor_target)&&void 0!==t?t:"_self",children:Gw(e)},e.documentId)})]},e.documentId)})}):d.length>0?(0,s.jsx)("div",{className:"runneth-footer-columns",children:d.map((e,t)=>{var n,r,a;return(0,s.jsxs)("nav",{className:"runneth-footer-column","aria-label":null!==(n=e.heading)&&void 0!==n?n:"Footer links",children:[e.heading&&(0,s.jsx)("h3",{className:"runneth-footer-column-heading",children:e.heading}),(null!==(r=e.links)&&void 0!==r?r:[]).map((e,t)=>{var n,r;return(0,s.jsx)("a",{className:"runneth-footer-link",href:null!==(n=e.href)&&void 0!==n?n:"#",target:Hw(e),children:e.label},null!==(r=e.id)&&void 0!==r?r:t)})]},null!==(a=e.id)&&void 0!==a?a:t)})}):null,(0,s.jsx)("div",{className:"runneth-footer-copyright",children:e.copyright&&(0,s.jsx)("p",{children:e.copyright})}),(0,s.jsx)("div",{className:"runneth-footer-legal",children:h.map((e,t)=>{var n,r;return(0,s.jsx)("a",{className:"runneth-footer-legal-link",href:null!==(n=e.href)&&void 0!==n?n:"#",target:Hw(e),children:e.label},null!==(r=e.id)&&void 0!==r?r:t)})})]})})};var Yw=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};class Vw{static fetchSingleType(e,t,n){return Yw(this,void 0,void 0,function*(){const{baseUrl:r,status:a}=t,s=new URLSearchParams;a&&s.set("status",a);const i=`${r}${e}?${s.toString()}`,o=yield n(i);if(!o.ok)throw new Error(`HTTP error! status: ${o.status}. apiUri: ${i}`);const l=yield o.json();return{response:o,data:l}})}static fetchHomepage(e,t=fetch){return this.fetchSingleType("/api/runneth-homepage/populated",e,t)}static fetchHeader(e,t=fetch){return this.fetchSingleType("/api/runneth-header/populated",e,t)}static fetchFooter(e,t=fetch){return this.fetchSingleType("/api/runneth-footer/populated",e,t)}static fetchRobotsTxt(e,t=fetch){return this.fetchSingleType("/api/runneth-robots-txt",e,t)}static fetchLlmsTxt(e,t=fetch){return this.fetchSingleType("/api/runneth-llms-txt",e,t)}static fetchPage(e,t,n=fetch){return this.fetchSingleType(`/api/runneth-pages/${e}/populated`,t,n)}static fetchUseCase(e,t,n=fetch){return this.fetchSingleType(`/api/runneth-use-cases/${e}/populated`,t,n)}static fetchCustomerStory(e,t,n=fetch){return this.fetchSingleType(`/api/runneth-customer-stories/${e}/populated`,t,n)}static listCustomerStories(e){return Yw(this,arguments,void 0,function*(e,t=fetch){const{baseUrl:n,status:r,limit:a,exclude:s}=e,i=new URLSearchParams;r&&i.set("status",r),"number"==typeof a&&a>0&&i.set("limit",String(a)),s&&i.set("exclude",s);const o=`${n}/api/runneth-customer-stories/listed?${i.toString()}
2`,l=yield t(o);if(!l.ok)throw new Error(`HTTP error! status: ${l.status}. apiUri: ${o}`);const c=yield l.json();return{response:l,data:Array.isArray(c.data)?c.data:[]}})}}i(8010);const Kw=({baseUrl:e,blocks:t})=>(0,s.jsx)(s.Fragment,{children:t.map(t=>{var n;const r=`${t.__component}-${t.id}`;if(!0===t.hidden||!0===t.hide)return null;const a=(e,n="")=>`mpage-block mpage-block-${e}${t.class?` section-${t.class}`:""}${n?` ${n}`:""}`;switch(t.__component){case"shared.rich-text":{const i=t.background_image,o=null==i?void 0:i.image;let l=null!==(n=null==i?void 0:i.href)&&void 0!==n?n:null==o?void 0:o.url;return l&&!l.startsWith("http")&&(l=`${e}${l}`),(0,s.jsx)("section",{className:a("rich-text"),style:l?{backgroundImage:`url(${l})`}:void 0,children:(0,s.jsx)(Pl,{baseUrl:e,block:t})},r)}case"shared.image":return(0,s.jsx)("section",{className:a("image"),children:(0,s.jsx)(hd,{baseUrl:e,block:t})},r);case"shared.image-gallery":return(0,s.jsx)("section",{className:a("image-gallery"),children:(0,s.jsx)(gd,{baseUrl:e,block:t})},r);case"shared.media-gallery":return(0,s.jsx)("section",{className:a("media-gallery"),children:(0,s.jsx)(Rm,{baseUrl:e,block:t})},r);case"shared.logos":return(0,s.jsx)("section",{className:a("logos"),children:(0,s.jsx)(xd,{baseUrl:e,block:t})},r);case"shared.video":return(0,s.jsx)("section",{className:a("video"),children:(0,s.jsx)(Zu,{baseUrl:e,block:t})},r);case"shared.animation":return(0,s.jsx)("section",{className:`mpage-block mpage-block-animation ${t.name?t.name:""}`.trim(),children:(0,s.jsx)(Ju,{block:t,baseUrl:e})},r);case"shared.app":return(0,s.jsx)("section",{className:a("app"),children:(0,s.jsx)(Dw,{block:t,baseUrl:e})},r);case"shared.button":return(0,s.jsx)("section",{className:"mpage-block mpage-block-button",children:(0,s.jsx)(fo,{baseUrl:e,block:t})},r);case"shared.table":return(0,s.jsx)("section",{className:a("table"),children:(0,s.jsx)(zd,{block:t})},r);case"shared.quote":return(0,s.jsx)("section",{className:"mpage-block mpage-block-quote",children:(0,s.jsx)(Bd,{baseUrl:e,block:t})},r);case"shared.lineup":return(0,s.jsx)("section",{className:a("lineup"),children:(0,s.jsx)(bd,{baseUrl:e,block:t})},r);case"shared.html":return(0,s.jsx)("section",{className:a("html"),children:(0,s.jsx)(Ld,{baseUrl:e,block:t})},r);case"shared.text-and-image":return(0,s.jsx)("section",{className:a("text-and-image"),children:(0,s.jsx)(td,{baseUrl:e,block:t})},r);case"shared.faq":return(0,s.jsx)(_x,{baseUrl:e,block:t},r);case"shared.hero":return(0,s.jsx)(Sx,{baseUrl:e,block:t},r);case"events.card-list":return(0,s.jsx)("section",{className:a("card-list",t.layout?`section-layout-${t.layout}`:""),children:(0,s.jsx)(Td,{baseUrl:e,block:t})},r);default:return null}})});var Qw=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const Xw={page:{minHeight:"100vh",background:"#f0f2f5",display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"64px 16px",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",boxSizing:"border-box"},card:{background:"#ffffff",borderRadius:"12px",boxShadow:"0 2px 16px rgba(0,0,0,0.08)",padding:"40px",width:"100%",maxWidth:"560px",boxSizing:"border-box"},header:{display:"flex",alignItems:"flex-start",gap:"16px",marginBottom:"36px"},headerMark:{width:"4px",height:"48px",background:"#1a1a2e",borderRadius:"2px",flexShrink:0,marginTop:"2px"},title:{margin:"0 0 4px 0",fontSize:"22px",fontWeight:700,color:"#1a1a2e",letterSpacing:"-0.3px"},subtitle:{margin:0,fontSize:"14px",color:"#888",fontWeight:400},section:{marginBottom:"20px"},label:{display:"block",fontSize:"13px",fontWeight:600,color:"#444",marginBottom:"8px",letterSpacing:"0.2px",textTransform:"uppercase"},input:{display:"block",width:"100%",padding:"12px 14px",fontSize:"14px",fontFamily:"inherit",border:"1.5px solid #e0e0e0",borderRadius:"8px",outline:"none",color:"#1a1a2e",background:"#fafafa",boxSizing:"border-box",transition:"border-color 0.15s"},hint:{margin:"8px 0 0 0",fontSize:"12px",color:"#999",lineHeight:1.5},pill:{display:"inline-block",background:"#f0f2f5",border:"1px solid #e0e0e0",borderRadius:"4px",padding:"1px 7px",fontSize:"11px",fontFamily:"monospace",color:"#555",marginLeft:"4px"},button:{display:"block",width:"100%",padding:"13px",fontSize:"15px",fontWeight:600,fontFamily:"inherit",background:"#1a1a2e",color:"#ffffff",border:"none",borderRadius:"8px",cursor:"pointer",letterSpacing:"0.1px",transition:"background 0.15s"},buttonDisabled:{background:"#c0c0c0",cursor:"not-allowed"},resultBox:{marginTop:"20px",padding:"16px",borderRadius:"8px",fontSize:"14px",lineHeight:1.5},resultError:{background:"#fff5f5",border:"1.5px solid #f5c6c6",color:"#c0392b",display:"flex",alignItems:"flex-start",ga
2p:"10px"},resultSuccess:{background:"#f4fcf7",border:"1.5px solid #b2dfc5"},resultHeader:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px"},resultIcon:{fontSize:"16px",fontWeight:700,flexShrink:0},resultLabel:{fontSize:"13px",fontWeight:600,color:"#27ae60",textTransform:"uppercase",letterSpacing:"0.3px"},linkRow:{display:"flex",alignItems:"center",gap:"10px",flexWrap:"wrap"},linkCode:{flex:1,fontFamily:"monospace",fontSize:"13px",color:"#1a1a2e",wordBreak:"break-all",background:"rgba(0,0,0,0.04)",padding:"8px 10px",borderRadius:"6px",border:"1px solid rgba(0,0,0,0.06)"},copyButton:{padding:"8px 16px",fontSize:"13px",fontWeight:600,fontFamily:"inherit",background:"#1a1a2e",color:"#fff",border:"none",borderRadius:"6px",cursor:"pointer",flexShrink:0,transition:"background 0.15s"},copyButtonDone:{background:"#27ae60"}};var Jw=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const Zw=()=>{if("undefined"!=typeof window&&window.__JOB_BOARD_API_BASE_URL)return window.__JOB_BOARD_API_BASE_URL.replace(/\/$/,"");const e=process.env.REACT_APP_JOB_BOARD_API_BASE_URL;return void 0!==e&&""!==e?e.replace(/\/$/,""):"undefined"==typeof window||"localhost"!==window.location.hostname&&"127.0.0.1"!==window.location.hostname||"3000"!==window.location.port?"":"http://localhost:3333"},e_=e=>{if(!e)return;if(/^https?:\/\//i.test(e))return e;const t=Zw();return t?e.startsWith("/")?`${t}${e}`:`${t}/${e}`:e},t_=(e,t)=>Jw(void 0,void 0,void 0,function*(){const n=Zw(),r=n?`${n}${e}`:e,a="undefined"!=typeof FormData&&(null==t?void 0:t.body)instanceof FormData,s=Object.assign(Object.assign({},a?{}:{"Content-Type":"application/json"}),(null==t?void 0:t.headers)||{}),i=yield fetch(r,Object.assign({credentials:"include",headers:s},t)),o=yield i.json().catch(()=>({}));return{response:i,data:o}}),n_=e=>{var t,n,r,a,s;return{id:String(e.id),organizationId:e.organizationId?String(e.organizationId):void 0,company:String(null!==(t=e.company)&&void 0!==t?t:""),companyLogo:e_(e.companyLogo?String(e.companyLogo):void 0),title:String(null!==(n=e.title)&&void 0!==n?n:""),schedule:String(null!==(r=e.schedule)&&void 0!==r?r:""),salary:e.salary?String(e.salary):void 0,description:e.description?String(e.description):"",location:String(null!==(a=e.location)&&void 0!==a?a:""),locationId:e.locationId?String(e.locationId):void 0,locationType:e.locationType,postedDate:String(null!==(s=e.postedDate)&&void 0!==s?s:""),tags:Array.isArray(e.tags)?e.tags:[],applyUrl:e.applyUrl?String(e.applyUrl):void 0,hasExpressedInterest:!0===e.hasExpressedInterest,featured:!0===e.featured,active:!1!==e.active,listed:!1!==e.listed,status:e.status,approvedAt:e.approvedAt?String(e.approvedAt):null,isApproved:!0===e.isApproved}},r_=(e,...t)=>Jw(void 0,[e,...t],void 0,function*(e,t=20){var n;const r=new URLSearchParams;e.trim()&&r.set("q",e.trim()),r.set("limit",String(t));const a=r.toString(),{response:s,data:i}=yield t_("/job-board/locations"+(a?`?${a}`:""));if(!s.ok)throw new Error((null==i?void 0:i.error)||"Failed to load locations");return(null!==(n=i.locations)&&void 0!==n?n:[]).map(e=>{var t,n;const r=e;return{id:String(r.id),name:String(null!==(t=r.name)&&void 0!==t?t:""),slug:String(null!==(n=r.slug)&&void 0!==n?n:"")}})}),a_=e=>Jw(void 0,void 0,void 0,function*(){const{response:t,data:n}=yield t_(`/job-board/jobs/${e}/express-interest`,{method:"POST"});return{response:t,data:n}}),s_=e=>{var t,n,r;return{id:String(e.id),name:String(null!==(t=e.name)&&void 0!==t?t:""),tokenPrefix:String(null!==(n=e.tokenPrefix)&&void 0!==n?n:""),lastUsedAt:e.lastUsedAt?String(e.lastUsedAt):null,revokedAt:e.revokedAt?String(e.revokedAt):null,createdAt:String(null!==(r=e.createdAt)&&void 0!==r?r:"")}},i_=()=>Jw(void 0,void 0,void 0,function*(){const{response:e,data:t}=yield t_("/job-board/organizations");return{response:e,data:t}}),o_=e=>Jw(void 0,void 0,void 0,function*(){const{response:t,data:n}=yield t_(`/job-board/jobs/${e}`);return{response:t,data:{error:n.error,job:n.job?n_(n.job):void 0}}}),l_=(e,t)=>
2Jw(void 0,void 0,void 0,function*(){const{response:n,data:r}=yield t_(`/job-board/jobs/${e}`,{method:"PUT",body:JSON.stringify(t)});return{response:n,data:{error:r.error,job:r.job?n_(r.job):void 0}}}),c_=e=>Jw(void 0,void 0,void 0,function*(){var t,n,r;const{response:a,data:s}=yield t_(`/job-board/organizations/${e}/jobs`);if(!a.ok)return{response:a,data:s};const i=s.organization,o=null!==(t=s.jobs)&&void 0!==t?t:[];return{response:a,data:{organization:i?{id:Number(i.id),name:String(null!==(n=i.name)&&void 0!==n?n:""),slug:String(null!==(r=i.slug)&&void 0!==r?r:""),logoUrl:e_(i.logoUrl?String(i.logoUrl):void 0),autoApproveJobs:!0===i.autoApproveJobs}:void 0,jobs:o.map(e=>n_(e))}}}),u_=e=>Jw(void 0,void 0,void 0,function*(){var t,n;const{response:r,data:a}=yield t_(`/job-board/organizations/${e}`);if(!r.ok)return{response:r,data:a};const s=a.organization;return{response:r,data:Object.assign(Object.assign({},a),{organization:s?{id:Number(s.id),name:String(null!==(t=s.name)&&void 0!==t?t:""),slug:String(null!==(n=s.slug)&&void 0!==n?n:""),logoUrl:e_(s.logoUrl?String(s.logoUrl):void 0),autoApproveJobs:!0===s.autoApproveJobs}:void 0})}}),d_=(e,t)=>Jw(void 0,void 0,void 0,function*(){var n,r;const a=new FormData;a.append("name",t.name),a.append("slug",t.slug),t.logoFile&&a.append("logo",t.logoFile),!0===t.clearLogo&&a.append("clearLogo","true"),void 0!==t.autoApproveJobs&&a.append("autoApproveJobs",String(t.autoApproveJobs));const{response:s,data:i}=yield t_(`/job-board/organizations/${e}`,{method:"PATCH",body:a});return{response:s,data:Object.assign(Object.assign({},i),{organization:i.organization?{id:Number(i.organization.id),name:String(null!==(n=i.organization.name)&&void 0!==n?n:""),slug:String(null!==(r=i.organization.slug)&&void 0!==r?r:""),logoUrl:e_(i.organization.logoUrl?String(i.organization.logoUrl):void 0),autoApproveJobs:!0===i.organization.autoApproveJobs}:void 0})}}),h_=(e,t)=>Jw(void 0,void 0,void 0,function*(){const{response:n,data:r}=yield t_(`/job-board/organizations/${e}/jobs/${t}/approve`,{method:"POST"});return{response:n,data:Object.assign(Object.assign({},r),{job:r.job?n_(r.job):void 0})}}),p_=e=>({digestEmailEnabled:!0===e.digestEmailEnabled,digestUserSignups:!0===e.digestUserSignups,digestJobPosts:!0===e.digestJobPosts});var m_=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const f_=(0,n.createContext)(void 0),v_=()=>{const e=(0,n.useContext)(f_);if(void 0===e)throw new Error("useJobBoardAuth must be used within a JobBoardAuthProvider");return e},g_=({children:e})=>{const[t,r]=(0,n.useState)(null),[a,i]=(0,n.useState)(!1),[o,l]=(0,n.use
2State)(!1),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(!1),p=null!==t,m=(0,n.useCallback)((e,t)=>m_(void 0,void 0,void 0,function*(){var n,a,s;const{response:o,data:c}=yield((e,t)=>Jw(void 0,void 0,void 0,function*(){const{response:n,data:r}=yield t_("/job-board/auth/login",{method:"POST",body:JSON.stringify({email:e,password:t})});return{response:n,data:r}}))(e,t);if(!o.ok)throw new Error((null==c?void 0:c.error)||"Failed to log in");const d=`${c.user.firstName} ${c.user.lastName}`.trim();r({id:String(c.user.id),name:d,email:c.user.email,avatarUrl:e_(null!==(n=c.user.avatarUrl)&&void 0!==n?n:void 0),isJobSeeker:!0===c.user.isJobSeeker,isJobPoster:!0===c.user.isJobPoster,isSuperuser:!0===c.user.isSuperuser,maxOrganizations:Number(null!==(a=c.user.maxOrganizations)&&void 0!==a?a:1),organizationCount:Number(null!==(s=c.user.organizationCount)&&void 0!==s?s:0)}),l(!1),u(!1),i(!0)}),[]),f=(0,n.useCallback)((e,t,n,r)=>m_(void 0,void 0,void 0,function*(){const[a,...s]=e.trim().split(" "),o=s.join(" ")||"User",{response:l,data:c}=yield((e,t,n,r,a)=>Jw(void 0,void 0,void 0,function*(){const{response:s,data:i}=yield t_("/job-board/auth/signup",{method:"POST",body:JSON.stringify({firstName:e,lastName:t,email:n,password:r,isJobPoster:a})});return{response:s,data:i}}))(a,o,t,n,r);if(!l.ok)throw new Error((null==c?void 0:c.error)||"Failed to sign up");return i(!0),{emailSent:!0===(null==c?void 0:c.emailSent)}}),[]),v=(0,n.useCallback)(()=>m_(void 0,void 0,void 0,function*(){yield Jw(void 0,void 0,void 0,function*(){const{response:e,data:t}=yield t_("/job-board/auth/logout",{method:"POST"});return{response:e,data:t}}),r(null),i(!0)}),[]),g=(0,n.useCallback)(e=>m_(void 0,void 0,void 0,function*(){const{response:t,data:n}=yield(e=>Jw(void 0,void 0,void 0,function*(){const{response:t,data:n}=yield t_("/job-board/auth/request-password-reset",{method:"POST",body:JSON.stringify({email:e})});return{response:t,data:n}}))(e);if(!t.ok)throw new Error((null==n?void 0:n.error)||"Failed to request password reset")}),[]),b=(0,n.useCallback)(e=>m_(void 0,void 0,void 0,function*(){var t,n,a;const{response:s,data:i}=yield(e=>Jw(void 0,void 0,void 0,function*(){const t=new FormData;t.append("avatar",e);const{response:n,data:r}=yield t_("/job-board/auth/profile/avatar",{method:"POST",body:t});return{response:n,data:r}}))(e);if(!s.ok||!(null==i?void 0:i.user))throw new Error((null==i?void 0:i.error)||"Failed to upload avatar");const o=`${i.user.firstName} ${i.user.lastName}`.trim();r({id:String(i.user.id),name:o,email:i.user.email,avatarUrl:e_(null!==(t=i.user.avatarUrl)&&void 0!==t?t:void 0),isJobSeeker:!0===i.user.isJobSeeker,isJobPoster:!0===i.user.isJobPoster,isSuperuser:!0===i.user.isSuperuser,maxOrganizations:Number(null!==(n=i.user.maxOrganizations)&&void 0!==n?n:1),organizationCount:Number(null!==(a=i.user.organizationCount)&&void 0!==a?a:0)})}),[]),y=(0,n.useCallback)(()=>m_(void 0,void 0,void 0,function*(){var e,t,n;const{response:a,data:s}=yield Jw(void 0,void 0,void 0,function*(){const{response:e,data:t}=yield t_("/job-board/auth/profile/avatar",{method:"DELETE"});return{response:e,data:t}});if(!a.ok||!(null==s?void 0:s.user))throw new Error((null==s?void 0:s.error)||"Failed to delete avatar");const i=`${s.user.firstName} ${s.user.lastName}`.trim();r({id:String(s.user.id),name:i,email:s.user.email,avatarUrl:e_(null!==(e=s.user.avatarUrl)&&void 0!==e?e:void 0),isJobSeeker:!0===s.user.isJobSeeker,isJobPoster:!0===s.user.isJobPoster,isSuperuser:!0===s.user.isSuperuser,maxOrganizations:Number(null!==(t=s.user.maxOrganizations)&&void 0!==t?t:1),organizationCount:Number(null!==(n=s.user.organizationCount)&&void 0!==n?n:0)})}),[]),x=(0,n.useCallback)(e=>m_(void 0,void 0,void 0,function*(){var t,n,a;const{response:s,data:i}=yield(e=>Jw(void 0,void 0,void 0,function*(){const{response:t,data:n}=yield t_("/job-board/auth/profile",{method:"PATCH",body:JSON.stringify(e)});return{response:t,data:n}}))(e);if(!s.ok||!(null==i?void 0:i.user))throw new Error((null==i?void 0:i.error)||"Failed to update profile");const o=`${i.user.firstName} ${i.user.lastName}`.trim();r({id:String(i.user.id),name:o,email:i.user.email,avatarUrl:e_(null!==(t=i.user.avatarUrl)&&void 0!==t?t:void 0),isJobSeeker:!0===i.user.isJobSeeker,isJobPoster:!0===i.user.isJobPoster,isSuperuser:!0===i.user.isSuperuser,maxOrganizations:Number(null!==(n=i.user.maxOrganizations)&&void 0!==n?n:1),organizationCount:Number(null!==(a=i.user.organizationCount)&&void 0!==a?a:0)})}),[]),w=(0,n.useCallback)(()=>{u(!1),l(!0)},[]),_=(0,n.useCallback)(e=>{l(!1),h(!0===(null==e?void 0:e.asJobPoster)),u(!0)},[]),k=(0,n.useCallback)(()=>{l(!1),u(!1)},[]);(0,n.useEffect)(()=>{m_(void 0,void 0,void 0,function*(){var e,t,n;try{const{response:a,data:s}=yield Jw(void 0,void 0,void 0,function*(){const{response:e,data:t}=yield t_("/job-board/auth/me");return{response:e,data:t}});if(!a.ok||!(null==s?void 0:s.user))return;const i=`${s.user.firstName} ${s.user.lastName}`.trim();r({id:String(s.user.id),name:i,email:s.user.email,avatarUrl:e_(null!==(e=s.user.avatarUrl)&&void 0!==e?e:void 0),isJobSeeker:!0===s.user.isJobSeeker,isJobPoster:!0===s.user.isJobPoster,isSuperuser:!0===s.user.isSuperuser,maxOrganizations:Number(null!==(t=s.user.maxOrganizations)&&void 0!==t?t:1),organizationCount:Number(null!==(n=s.user.organizationCount)&&void 0!==n?n:0)})}catch(e){}finally{i(!0)}})},[]);const N={user:t,isLoggedIn:p,isAuthStateResolved:a,login:m,signup:f,logout:v,requestPasswordReset:g,uploadAvatar:b,deleteAvatar:y,updateProfile:x,showLoginModal:o,showSignupModal:c,openLoginModal:w,openSignupModal:_,signupAsJobPosterDefault:d,closeModals:k};return(0,s.jsx)(f_.Provider,{value:N,children:e})};i(8302);const b_=e=>{const t=new Date(e),n=(new Date).getTime()-t.getTime(),r=Math.floor(n/864e5);return 0===r?"Today":1===r?"1 day ago":r<7?`${r} days ago`:r<14?"1 week ago":r<30?`${Math.floor(r/7)} weeks ago`:r<60?"1 month ago":`${Math.floor(r/30)} months ago`},y_=({job:e})=>{const{isLoggedIn:t,openSignupModal:r}
2=v_(),[a,i]=(0,n.useState)(e.applyUrl),[o,l]=(0,n.useState)(!0===e.hasExpressedInterest||Boolean(e.applyUrl)),[c,u]=(0,n.useState)(null),[d,h]=(0,n.useState)(!1);(0,n.useEffect)(()=>{i(e.applyUrl),l(!0===e.hasExpressedInterest||Boolean(e.applyUrl)),u(null)},[e]);const p=(0,n.useCallback)(()=>{return n=void 0,a=void 0,o=function*(){if(t){u(null),h(!0);try{const{response:t,data:n}=yield a_(e.id);if(!t.ok)throw new Error((null==n?void 0:n.error)||"Could not record interest");(null==n?void 0:n.applyUrl)&&(i(n.applyUrl),l(!0))}catch(e){u(e instanceof Error?e.message:"Something went wrong")}finally{h(!1)}}else r()},new((s=void 0)||(s=Promise))(function(e,t){function r(e){try{l(o.next(e))}catch(e){t(e)}}function i(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof s?e:new s(function(t){t(e)})}(t.value).then(r,i)}l((o=o.apply(n,a||[])).next())});var n,a,s,o},[e.id,t,r]),m=o&&Boolean(a);return(0,s.jsxs)("article",{className:"job-card "+(e.featured?"job-card--featured":""),children:[e.featured&&(0,s.jsxs)("div",{className:"job-card__featured-badge",children:[(0,s.jsx)("span",{children:"★"})," Featured"]}),(0,s.jsxs)("div",{className:"job-card__header",children:[(0,s.jsxs)("div",{className:"job-card__company-info",children:[e.companyLogo?(0,s.jsx)("img",{src:e.companyLogo,alt:`${e.company} logo`,className:"job-card__company-logo"}):(0,s.jsx)("div",{className:"job-card__company-logo job-card__company-logo--placeholder",children:e.company.charAt(0).toUpperCase()}),(0,s.jsx)("span",{className:"job-card__company-name",children:e.company})]}),(0,s.jsx)("span",{className:"job-posted-time",children:b_(e.postedDate)})]}),(0,s.jsx)("h3",{className:"job-card__title",children:(0,s.jsx)(fm,{className:"job-card__title-link",to:`/creative-strategy/jobs/jobs/${e.id}`,children:e.title})}),(0,s.jsxs)("div",{className:"job-card__details",children:[(0,s.jsxs)("div",{className:"job-card__detail job-card__detail--schedule",children:[(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("polyline",{points:"12 6 12 12 16 14"})]}),(0,s.jsx)("span",{children:e.schedule})]}),e.salary&&(0,s.jsxs)("div",{className:"job-card__detail job-card__detail--salary",children:[(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("line",{x1:"12",y1:"1",x2:"12",y2:"23"}),(0,s.jsx)("path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})]}),(0,s.jsx)("span",{children:e.salary})]}),(0,s.jsxs)("div",{className:"job-card__detail job-card__detail--location",children:[(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,s.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),(0,s.jsx)("span",{children:e.location})]})]}),e.tags&&e.tags.length>0&&(0,s.jsx)("div",{className:"job-card__tags",children:e.tags.map((e,t)=>(0,s.jsx)("span",{className:"job-card__tag",children:e},t))}),c&&(0,s.jsx)("p",{className:"job-card__interest-error",role:"alert",children:c}),m?(0,s.jsxs)("button",{className:"job-card__apply-btn",onClick:()=>{a&&window.open(a,"_blank","noopener,noreferrer")},type:"button",children:["Apply now",(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,s.jsx)("polyline",{points:"12 5 19 12 12 19"})]})]}):(0,s.jsx)("button",{className:"job-card__apply-btn job-card__apply-btn--interest",onClick:()=>{p()},type:"button",disabled:d,children:d?"Loading…":t?"I'm interested":"Sign up to apply"}),(0,s.jsxs)("div",{className:`job-card__location-badge job-card__location-badge--${e.locationType}`,children:["remote"===e.locationType&&"Remote","hybrid"===e.locationType&&"Hybrid","onsite"===e.locationType&&"On-site"]})]})};i(4534);
2var x_=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const w_=()=>{var e,t;const{isLoggedIn:r,openSignupModal:a}=v_(),i=!r,[o,l]=(0,n.useState)(""),[c,u]=(0,n.useState)("all"),[d,h]=(0,n.useState)("all"),[p,m]=(0,n.useState)([]),[f,v]=(0,n.useState)([]),[g,b]=(0,n.useState)(null),[y,x]=(0,n.useState)(!0),[w,_]=(0,n.useState)(!0),[k,N]=(0,n.useState)(null),[E,j]=(0,n.useState)(1);(0,n.useEffect)(()=>{x_(void 0,void 0,void 0,function*(){try{const e=yield Jw(void 0,void 0,void 0,function*(){var e;const{response:t,data:n}=yield t_("/job-board/locations");if(!t.ok)throw new Error((null==n?void 0:n.error)||"Failed to load locations");return(null!==(e=n.locations)&&void 0!==e?e:[]).map(e=>{var t,n;const r=e;return{id:String(r.id),name:String(null!==(t=r.name)&&void 0!==t?t:""),slug:String(null!==(n=r.slug)&&void 0!==n?n:"")}})});v(e)}catch(e){}})},[]),(0,n.useEffect)(()=>{x_(void 0,void 0,void 0,function*(){try{const e=yield Jw(void 0,void 0,void 0,function*(){var e,t;const{response:n,data:r}=yield t_("/job-board/jobs/stats");if(!n.ok)throw new Error((null==r?void 0:r.error)||"Failed to load job stats");const a=r;return{openPositions:Number(null!==(e=a.openPositions)&&void 0!==e?e:0),remoteJobs:Number(null!==(t=a.remoteJobs)&&void 0!==t?t:0)}});b(e)}catch(e){}finally{x(!1)}})},[]),(0,n.useEffect)(()=>{x_(void 0,void 0,void 0,function*(){try{_(!0),N(null);const e=yield Jw(void 0,void 0,void 0,function*(){var e;const{response:t,data:n}=yield t_("/job-board/jobs");if(!t.ok)throw new Error((null==n?void 0:n.error)||"Failed to load jobs");return(null!==(e=n.jobs)&&void 0!==e?e:[]).map(e=>n_(e))});m(e)}catch(e){N(e instanceof Error?e.message:"Failed to load jobs")}finally{_(!1)}})},[r]),(0,n.useEffect)(()=>{j(1)},[o,c,d,r]);const S=(0,n.useMemo)(()=>p.filter(e=>{var t,n;const r=o.toLowerCase(),a=""===o||e.title.toLowerCase().includes(r)||e.company.toLowerCase().includes(r)||(null===(t=e.tags)||void 0===t?void 0:t.some(e=>e.toLowerCase().includes(r))),s="all"===c||String(null!==(n=e.locationId)&&void 0!==n?n:"")===c,i="all"===d||e.locationType===d;return a&&s&&i}),[p,o,c,d]),C=Math.max(1,Math.ceil(S.length/24)),T=Math.min(E,C),A=24*(T-1),L=S.slice(A,A+24),I=L.filter(e=>e.featured),M=L.filter(e=>!e.featured),P=((e,t)=>{if(t<=7)return Array.from({length:t},(e,t)=>t+1);const n=[1],r=e>=t-2;return e<=3?(n.push(2,3,4,"ellipsis",t),n):r?(n.push("ellipsis",t-3,t-2,t-1,t),n):(n.push("ellipsis",e,"ellipsis",t),n)})(T,C);(0,n.useEffect)(()=>{E>C&&j(C)},[E,C]);const O=!w&&!k,R=O?p.length:null!==(e=null==g?void 0:g.openPositions)&&void 0!==e?e:0,D=O?p.filter(e=>"remote"===e.locationType).length:null!==(t=null==g?void 0:g.remoteJobs)&&void 0!==t?t:0,F=!O&&y;return(0,s.jsxs)("div",{className:"cs-jobs-page",children:[(0,s.jsxs)("section",{className:"cs-jobs-hero "+(r?"is-logged-in":""),children:[(0,s.jsxs)("div",{className:"cs-jobs-hero__background",children:[(0,s.jsx)("div",{className:"cs-jobs-hero__gradient-1"}),(0,s.jsx)("div",{className:"cs-jobs-hero__gradient-2"}),(0,s.jsx)("div",{className:"cs-jobs-hero__pattern"})]}),(0,s.jsx)("div",{className:"cs-jobs-hero__content",children:i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("h1",{className:"cs-jobs-hero__title",children:["Want an exciting job in",(0,s.jsx)("span",{className:"cs-jobs-hero__title-accent",children:" creative strategy?"})]}),(0,s.jsx)("p",{className:"cs-jobs-hero__subtitle",children:"Discover roles at the intersection of creativity and business. Find positions with flexible schedules, competitive pay, and exceptional work-life balance."}),(0,s.jsxs)("div",{className:"cs-jobs-hero__stats",children:[(0,s.jsxs)("div",{className:"cs-jobs-hero__stat",children:[(0,s.jsx)("span",{className:"cs-jobs-hero__stat-number",children:F?(0,s.jsx)("span",{className:"cs-jobs-hero__stat-skeleton","aria-hidden":!0}):R}),(0,s.jsx)("span",{className:"cs-jobs-hero__stat-label",children:"Open Positions"})]}),(0,s.jsxs)("div",{className:"cs-jobs-hero__stat",children:[(0,s.jsx)("span",{className:"cs-jobs-hero__stat-number",children:F?(0,s.jsx)("span",{className:"cs-jobs-hero__stat-skeleton","aria-hidden":!0}):D}),(0,s.jsx)("span",{className:"cs-jobs-hero__stat-label",children:"Remote Jobs"})]})]}),(0,s.jsxs)("div",{className:"cs-jobs-hero__auth-ctas",children:[(0,s.jsx)("button",{type:"button",className:"cs-jobs-hero__cta cs-jobs-hero__cta--primary",onClick:()=>a({asJobPoster:!1}),children:"Find a job"}),(0,s.jsx)("button",{type:"button",className:"cs-jobs-hero__cta cs-jobs-hero__cta--secondary",onClick:()=>a({asJobPoster:!0}),children:"Post a job"})]})]}):(0,s.jsx)("p",{className:"cs-jobs-hero__compact-copy",children:"Find your dream job as a creative strategist."})})]}),(0,s.jsx)("section",{className:"cs-jobs-filters",children:(0,s.jsxs)("div",{className:"cs-jobs-filters__container",children:[(0,s.jsxs)("div",{className:"cs-jobs-filters__search",children:[(0,s.jsxs)("svg",{className:"cs-jobs-filters__search-icon",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,s.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,s.jsx)("input",{type:"text",placeholder:"Search by title, company, or skill...",value:o,onChange:e=>l(e.target.value),className:"cs-jobs-filters__search-input"})]}),(0,s.jsxs)("div",{className:"cs-jobs-filters__dropdowns",children:[(0,s.jsxs)("select",{value:c,onChange:e=>u(e.target.value),className:"cs-jobs-filters__select",children:[(0,s.jsx)("option",{value:"all",children:"All Locations"}),f.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,s.jsxs)("select",{value:d,onChange:e=>h(e.target.value),className:"cs-jobs-filters__select",children:[(0,s.jsx)("option",{value:"all",children:"All Work Types"}),(0,s.jsx)("option",{value:"remote",children:"Remote"}),(0,s.jsx)("option",{value:"hybrid",children:"Hybrid"}),(0,s.jsx)("option",{value:"onsite",children:"On-site"})]})]})]})}),(0,s.jsx)("section",{className:"cs-jobs-listings",children:w?(0,s.jsx)("div",{className:"cs-jobs-listings__empty",children:(0,s.jsx)("h3",{children:"Loading jobs..."})}):k?(0,s.jsxs)("div",{className:"cs-jobs-listings__empty",children:[(0,s.jsx)("h3",{children:"Unable to load jobs"}),(0,s.jsx)("p",{children:k})]}):0===S.length?(0,s.jsxs)("div",{className:"cs-jobs-listings__empty",children:[(0,s.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,s.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,s.jsx)("h3",{children:"No jobs found"}),(0,s.jsx)("p",{children:"Try adjusting your search or filters to find more opportunities."})]}):(0,s.jsxs)(s.Fragment,{children:[I.length>0&&(0,s.jsxs)("div",{className:"cs-jobs-listings__section",children:[(0,s.jsxs)("h2",{className:"cs-jobs-listings__section-title",children:[(0,s.jsx)("span",{className:"cs-jobs-listings__section-icon",children:"★"}),"Featured Opportunities"]}),(0,s.jsx)("div",{className:"cs-jobs-listings__grid cs-jobs-listings__grid--featured",children:I.map(e=>(0,s.jsx)(y_,{job:e},e.id))})]}),(0,s.jsxs)("div",{className:"cs-jobs-listings__section",children:[(0,s.jsxs)("h2",{className:"cs-jobs-listings__section-title",children:[I.length>0?"More Opportunities":"All Opportunities",(0,s.jsxs)("span",{className:"cs-jobs-listings__section-count",children:[S.length," ",1===S.length?"job":"jobs"]})]}),(0,s.jsx)("div",{className:"cs-jobs-listings__grid",children:M.map(e=>(0,s.jsx)(y_,{job:e},e.id))})]}),S.length>0&&(0,s.jsxs)("nav",{className:"cs-jobs-listings__pagination","aria-label":"Job listing pages",children:[(0,s.jsx)("button",{type:"button",className:"cs-jobs-listings__pagination-btn",disabled:T<=1,onClick:()=>j(e=>Math.max(e-1,1)),children:"Previous"}),(0,s.jsx)("div",{className:"cs-jobs-listings__pagination-pages",children:P.map((e,t)=>"ellipsis"===e?(0,s.jsx)("span",{className:"cs-jobs-listings__pagination-ellipsis","aria-hidden":"true",children:"…"},`ellipsis-${t}`):(0,s.jsx)("button",{type:"button",className:"cs-jobs-listings__pagination-page "+(e===T?"is-active":""),onClick:()=>j(e),"aria-current":e===T?"page":void 0,children:e},e))}),(0,s.jsx)("button",{type:"button",className:"cs-jobs-listings__pagination-btn",disabled:T>=C,onClick:()=>j(e=>Math.min(e+1,C)),children:"Next"})]})]})}),!1]})};i(6552);
2var __=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const k_=({mode:e,isOpen:t,onClose:r})=>{const{login:a,signup:i,openLoginModal:o,openSignupModal:l,requestPasswordReset:c,signupAsJobPosterDefault:u}=v_(),[d,h]=(0,n.useState)(e),[p,m]=(0,n.useState)(!1),[f,v]=(0,n.useState)(null),[g,b]=(0,n.useState)(null),[y,x]=(0,n.useState)({name:!1,email:!1,password:!1}),w=(0,n.useRef)(!1),_=(0,n.useRef)(null),k=(0,n.useRef)(null),N=(0,n.useRef)(null),[E,j]=(0,n.useState)(""),[S,C]=(0,n.useState)(""),[T,A]=(0,n.useState)(""),[L,I]=(0,n.useState)(!1),M="signup"===d&&null!==g;return(0,n.useEffect)(()=>{h(e),v(null),b(null),x({name:!1,email:!1,password:!1}),"signup"===e&&I(u)},[e,u]),(0,n.useEffect)(()=>{const e=e=>{"Escape"===e.key&&r()};return t&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow=""}},[t,r]),t?(0,s.jsx)("div",{className:"auth-modal-overlay",onMouseDown:e=>{w.current=e.target===e.currentTarget},onMouseUp:e=>{const t=e.target===e.currentTarget;w.current&&t&&r(),w.current=!1},children:(0,s.jsxs)("div",{className:"auth-modal",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{className:"auth-modal__close",onClick:r,"aria-label":"Close modal",type:"button",children:(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,s.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,s.jsxs)("div",{className:"auth-modal__header",children:[(0,s.jsx)("h2",{className:"auth-modal__title",children:"login"===d?"Welcome back":"Create your account"}),(0,s.jsx)("p",{className:"auth-modal__subtitle",children:"login"===d?"Sign in to access creative strategy jobs":"Join our community of creative strategists"})]}),(0,s.jsxs)("form",{className:"auth-modal__form",onSubmit:e=>__(void 0,void 0,void 0,function*(){var t;if(e.preventDefault(),M)return void r();v(null),b(null);const n=("login"===d?[{key:"email",value:S,ref:k},{key:"password",value:T,ref:N}]:[{key:"name",value:E,ref:_},{key:"email",value:S,ref:k},{key:"password",value:T,ref:N}]).filter(({value:e})=>!e.trim());
2if(x({name:n.some(({key:e})=>"name"===e),email:n.some(({key:e})=>"email"===e),password:n.some(({key:e})=>"password"===e)}),n.length>0)return v("Please fill in all fields"),void(null===(t=n[0].ref.current)||void 0===t||t.focus());m(!0);try{if("login"===d)yield a(S,T);else{const e=yield i(E,S,T,L);b(e.emailSent?"Account created! Check your email for your verification link.":"Account created. We could not send a verification email right now.")}"login"===d&&(j(""),C(""),A(""))}catch(e){v(e instanceof Error?e.message:"An error occurred")}finally{m(!1)}}),children:["signup"===d&&(0,s.jsxs)("div",{className:"auth-modal__field",children:[(0,s.jsx)("label",{htmlFor:"auth-name",className:"auth-modal__label",children:"Full name"}),(0,s.jsx)("input",{id:"auth-name",type:"text",className:"auth-modal__input "+(y.name?"auth-modal__input--error":""),placeholder:"Jane Smith",value:E,onChange:e=>{j(e.target.value),y.name&&x(e=>Object.assign(Object.assign({},e),{name:!1}))},disabled:p||M,ref:_})]}),(0,s.jsxs)("div",{className:"auth-modal__field",children:[(0,s.jsx)("label",{htmlFor:"auth-email",className:"auth-modal__label",children:"Email address"}),(0,s.jsx)("input",{id:"auth-email",type:"email",className:"auth-modal__input "+(y.email?"auth-modal__input--error":""),placeholder:"[email protected]",value:S,onChange:e=>{C(e.target.value),y.email&&x(e=>Object.assign(Object.assign({},e),{email:!1}))},disabled:p||M,ref:k})]}),(0,s.jsxs)("div",{className:"auth-modal__field",children:[(0,s.jsx)("label",{htmlFor:"auth-password",className:"auth-modal__label",children:"Password"}),(0,s.jsx)("input",{id:"auth-password",type:"password",className:"auth-modal__input "+(y.password?"auth-modal__input--error":""),placeholder:"••••••••",value:T,onChange:e=>{A(e.target.value),y.password&&x(e=>Object.assign(Object.assign({},e),{password:!1}))},disabled:p||M,ref:N})]}),"signup"===d&&(0,s.jsxs)("label",{className:"auth-modal__checkbox-label",children:[(0,s.jsx)("input",{type:"checkbox",checked:L,onChange:e=>I(e.target.checked),disabled:p||M}),(0,s.jsx)("span",{children:"I am a job poster."})]}),f&&(0,s.jsx)("div",{className:"auth-modal__error",children:f}),g&&(0,s.jsx)("div",{className:"auth-modal__success",children:g}),(0,s.jsx)("button",{type:"submit",className:"auth-modal__submit",disabled:p,children:p?(0,s.jsx)("span",{className:"auth-modal__spinner"}):M?"OK":"login"===d?"Sign in":"Create account"})]}),"login"===d&&(0,s.jsx)("div",{className:"auth-modal__footer auth-modal__footer--reset",children:(0,s.jsx)("button",{type:"button",className:"auth-modal__switch",onClick:()=>__(void 0,void 0,void 0,function*(){if(v(null),b(null),S){m(!0);try{yield c(S),b("If an account exists for that email, a reset link has been sent.")}catch(e){v(e instanceof Error?e.message:"An error occurred")}finally{m(!1)}}else v("Enter your email address to reset your password")}),disabled:p,children:"Forgot password?"})}),(0,s.jsx)("div",{className:"auth-modal__footer",children:"login"===d?(0,s.jsxs)("p",{children:["Don't have an account?"," ",(0,s.jsx)("button",{type:"button",className:"auth-modal__switch",onClick:()=>{h("signup"),v(null),b(null),l({asJobPoster:!1})},children:"Sign up"})]}):(0,s.jsxs)("p",{children:["Already have an account?"," ",(0,s.jsx)("button",{type:"button",className:"auth-modal__switch",onClick:()=>{h("login"),v(null),b(null),o()},children:"Sign in"})]})})]})}):null};i(8393);var N_=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const E_=({size:e=16})=>(0,s.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"}),(0,s.jsx)("circle",{cx:"12",cy:"13",r:"4"})]}),j_=e=>{if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},S_=()=>
2{const[e,t]=(0,n.useState)([]),[r,a]=(0,n.useState)(!0),[i,o]=(0,n.useState)(null),[l,c]=(0,n.useState)(""),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(null),[m,f]=(0,n.useState)(null),[v,g]=(0,n.useState)(null),[b,y]=(0,n.useState)(!1),[x,w]=(0,n.useState)(null);(0,n.useEffect)(()=>{let e=!1;return N_(void 0,void 0,void 0,function*(){try{const n=yield Jw(void 0,void 0,void 0,function*(){var e;const{response:t,data:n}=yield t_("/job-board/auth/api-keys");if(!t.ok)throw new Error((null==n?void 0:n.error)||"Failed to load API keys");return(null!==(e=n.apiKeys)&&void 0!==e?e:[]).map(e=>s_(e))});e||t(n)}catch(t){e||o(t instanceof Error?t.message:"Failed to load API keys")}finally{e||a(!1)}}),()=>{e=!0}},[]);return(0,s.jsxs)("div",{className:"cs-jobs-profile__card api-keys-card",children:[(0,s.jsx)("h2",{className:"api-keys-title",children:"API keys"}),(0,s.jsx)("p",{className:"cs-jobs-profile__text",children:"Keys let agents (MCP clients, scripts) act as you on the job board API. A key has exactly your permissions. Tokens are shown once at creation — store them somewhere safe."}),(0,s.jsxs)("form",{className:"api-keys-create",onSubmit:e=>N_(void 0,void 0,void 0,function*(){e.preventDefault();const n=l.trim();if(n&&!u){d(!0),p(null),f(null),y(!1);try{const{apiKey:e,token:r}=yield(e=>Jw(void 0,void 0,void 0,function*(){var t,n;const{response:r,data:a}=yield t_("/job-board/auth/api-keys",{method:"POST",body:JSON.stringify({name:e})});if(!r.ok)throw new Error((null==a?void 0:a.error)||"Failed to create API key");const s=a;return{apiKey:s_(null!==(t=s.apiKey)&&void 0!==t?t:{}),token:String(null!==(n=s.token)&&void 0!==n?n:"")}}))(n);t(t=>[e,...t]),f(r),g(e.name),c("")}catch(e){p(e instanceof Error?e.message:"Failed to create API key")}finally{d(!1)}}}),children:[(0,s.jsx)("input",{type:"text",className:"api-keys-name-input",placeholder:'Key name (e.g. "my cursor agent")',value:l,onChange:e=>c(e.target.value),maxLength:200,disabled:u}),(0,s.jsx)("button",{type:"submit",className:"cs-jobs-profile__button",disabled:u||!l.trim(),children:u?"Creating...":"Create key"})]}),h&&(0,s.jsx)("p",{className:"cs-jobs-profile__upload-error",children:h}),m&&(0,s.jsxs)("div",{className:"api-keys-token-reveal",children:[(0,s.jsxs)("p",{className:"api-keys-token-note",children:["Token for “",v,"” — copy it now, it won’t be shown again:"]}),(0,s.jsxs)("div",{className:"api-keys-token-row",children:[(0,s.jsx)("code",{className:"api-keys-token",children:m}),(0,s.jsx)("button",{type:"button",className:"api-keys-copy-btn",onClick:()=>{N_(void 0,void 0,void 0,function*(){if(m)try{yield navigator.clipboard.writeText(m),y(!0)}catch(e){}})},children:b?"Copied!":"Copy"})]})]}),r?(0,s.jsx)("p",{className:"cs-jobs-profile__text",children:"Loading keys..."}):0===e.length?(0,s.jsx)("p",{className:"cs-jobs-profile__text",children:"No API keys yet."}):(0,s.jsx)("ul",{className:"api-keys-list",children:e.map(e=>(0,s.jsxs)("li",{className:"api-keys-row"+(e.revokedAt?" is-revoked":""),children:[(0,s.jsxs)("div",{className:"api-keys-row-main",children:[(0,s.jsx)("span",{className:"api-keys-row-name",children:e.name}),(0,s.jsxs)("code",{className:"api-keys-row-prefix",children:[e.tokenPrefix,"…"]})]}),(0,s.jsxs)("div",{className:"api-keys-row-meta",children:[(0,s.jsxs)("span",{children:["Created ",j_(e.createdAt)]}),(0,s.jsx)("span",{children:e.revokedAt?`Revoked ${j_(e.revokedAt)}`:`Last used ${j_(e.lastUsedAt)}`})]}),!e.revokedAt&&(0,s.jsx)("button",{type:"button",className:"api-keys-revoke-btn",onClick:()=>{(e=>{N_(void 0,void 0,void 0,function*(){if(window.confirm(`Revoke the API key "${e.name}"? Anything using it will immediately lose access.`)){w(e.id);try{const r=yield(n=e.id,Jw(void 0,void 0,void 0,function*(){var e;const{response:t,data:r}=yield t_(`/job-board/auth/api-keys/${encodeURIComponent(n)}`,{method:"DELETE"});if(!t.ok)throw new Error((null==r?void 0:r.error)||"Failed to revoke API key");return s_(null!==(e=r.apiKey)&&void 0!==e?e:{})}));t(e=>e.map(e=>e.id===r.id?r:e))}catch(e){o(e instanceof Error?e.message:"Failed to revoke API key")}finally{w(null)}var n}})})(e)},disabled:x===e.id,children:x===e.id?"Revoking...":"Revoke"})]},e.id))}),i&&(0,s.jsx)("p",{className:"cs-jobs-profile__upload-error",children:i})]})},C_=()=>{var e,t,r,a,i;const{user:o,isLoggedIn:l,openLoginModal:c,uploadAvatar:u,deleteAvatar:d,updateProfile:h}
2=v_(),[p]=ym(),m="1"===p.get("verified"),[f,v]=(0,n.useState)(!1),[g,b]=(0,n.useState)(!1),[y,x]=(0,n.useState)(null),[w,_]=(0,n.useState)(null),[k,N]=(0,n.useState)(null===(e=null==o?void 0:o.isJobSeeker)||void 0===e||e),[E,j]=(0,n.useState)(null!==(t=null==o?void 0:o.isJobPoster)&&void 0!==t&&t),[S,C]=(0,n.useState)(null),[T,A]=(0,n.useState)(null),[L,I]=(0,n.useState)(!1);return n.useEffect(()=>{var e,t;N(null===(e=null==o?void 0:o.isJobSeeker)||void 0===e||e),j(null!==(t=null==o?void 0:o.isJobPoster)&&void 0!==t&&t)},[null==o?void 0:o.isJobPoster,null==o?void 0:o.isJobSeeker]),(0,s.jsxs)("section",{className:"cs-jobs-profile",children:[(0,s.jsx)(fm,{to:"/creative-strategy/jobs",className:"cs-jobs-profile__back-link",children:"← Back to jobs board"}),(0,s.jsxs)("div",{className:"cs-jobs-profile__card",children:[(0,s.jsx)("h1",{className:"cs-jobs-profile__title",children:"Profile"}),m&&(0,s.jsx)("p",{className:"cs-jobs-profile__success",children:"Email verified successfully. Your account is now active."}),l?(0,s.jsxs)("div",{className:"cs-jobs-profile__details",children:[(0,s.jsxs)("div",{className:"cs-jobs-profile__avatar-block",children:[(0,s.jsxs)("div",{className:"profile-pic-wrap",children:[(null==o?void 0:o.avatarUrl)?(0,s.jsx)("img",{className:"cs-jobs-profile__avatar",src:o.avatarUrl,alt:`${o.name} avatar`}):(0,s.jsx)("div",{className:"cs-jobs-profile__avatar-placeholder",children:null!==(i=null===(a=null===(r=null==o?void 0:o.name)||void 0===r?void 0:r.charAt(0))||void 0===a?void 0:a.toUpperCase())&&void 0!==i?i:"U"}),(0,s.jsxs)("label",{className:"profile-pic-camera",title:f?"Uploading...":"Upload profile pic","aria-label":f?"Uploading profile pic":"Upload profile pic",children:[(0,s.jsx)(E_,{}),(0,s.jsx)("input",{type:"file",accept:"image/png,image/jpeg,image/webp",onChange:e=>N_(void 0,void 0,void 0,function*(){var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n){v(!0),x(null),_(null);try{yield u(n),x("Avatar updated.")}catch(e){_(e instanceof Error?e.message:"Failed to upload avatar")}finally{v(!1),e.target.value=""}}}),disabled:f||g})]})]}),(null==o?void 0:o.avatarUrl)&&(0,s.jsx)("button",{type:"button",className:"profile-pic-delete-btn",onClick:()=>{N_(void 0,void 0,void 0,function*(){if(null==o?void 0:o.avatarUrl){b(!0),x(null),_(null);try{yield d(),x("Avatar removed.")}catch(e){_(e instanceof Error?e.message:"Failed to remove avatar")}finally{b(!1)}}})},disabled:f||g,children:g?"Removing...":"Delete profile pic"}),y&&(0,s.jsx)("p",{className:"cs-jobs-profile__upload-message",children:y}),w&&(0,s.jsx)("p",{className:"cs-jobs-profile__upload-error",children:w})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"cs-jobs-profile__label",children:"Name"}),(0,s.jsx)("p",{className:"cs-jobs-profile__value",children:null==o?void 0:o.name})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"cs-jobs-profile__label",children:"Email"}),(0,s.jsx)("p",{className:"cs-jobs-profile__value",children:null==o?void 0:o.email})]}),(0,s.jsxs)("div",{className:"cs-jobs-profile__roles",children:[(0,s.jsx)("span",{className:"cs-jobs-profile__label",children:"Roles"}),(0,s.jsxs)("label",{className:"cs-jobs-profile__checkbox",children:[(0,s.jsx)("input",{type:"checkbox",checked:k,onChange:e=>N(e.target.checked)}),(0,s.jsx)("span",{children:"Job seeker"})]}),(0,s.jsxs)("label",{className:"cs-jobs-profile__checkbox",children:[(0,s.jsx)("input",{type:"checkbox",checked:E,onChange:e=>j(e.target.checked)}),(0,s.jsx)("span",{children:"Job poster"})]}),(0,s.jsx)("button",{type:"button",className:"cs-jobs-profile__button",onClick:()=>N_(void 0,void 0,void 0,function*(){if(C(null),A(null),k||E){I(!0);try{yield h({isJobSeeker:k,isJobPoster:E}),C("Role preferences saved.")}catch(e){A(e instanceof Error?e.message:"Failed to save role preferences")}finally{I(!1)}}else A("Please select at least one role.")}),disabled:L,children:L?"Saving...":"Save roles"}),S&&(0,s.jsx)("p",{className:"cs-jobs-profile__upload-message",children:S}),T&&(0,s.jsx)("p",{className:"cs-jobs-profile__upload-error",children:T})]}),E&&(0,s.jsxs)("div",{className:"cs-jobs-profile__quick-links",children:[(0,s.jsx)(fm,{to:"/creative-strategy/jobs/post-job",children:"Go to Post a job"}),(0,s.jsx)(fm,{to:"/creative-strategy/jobs/organizations",children:"Go to Organizations"})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"cs-jobs-profile__text",children:"Please sign in to view and edit your profile."}),(0,s.jsx)("button",{type:"button",className:"cs-jobs-profile__button",onClick:c,children:"Sign in"})]})]}),l&&(null==o?void 0:o.isSuperuser)&&(0,s.jsx)(S_,{})]})};i(9128);
2var T_=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const A_=()=>{var e;const{isLoggedIn:t,user:r}=v_(),[a,i]=(0,n.useState)([]),[o,l]=(0,n.useState)(!0),[c,u]=(0,n.useState)(null),[d,h]=(0,n.useState)(""),[p,m]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),g=(0,n.useRef)(!1),b=()=>T_(void 0,void 0,void 0,function*(){var e;l(!0),u(null);try{const{response:t,data:n}=yield i_();if(!t.ok)throw new Error((null==n?void 0:n.error)||"Failed to load organizations");i((null!==(e=null==n?void 0:n.organizations)&&void 0!==e?e:[]).map(e=>{var t,n;return Object.assign(Object.assign({},e),{logoUrl:null!==(n=e_(null!==(t=e.logoUrl)&&void 0!==t?t:void 0))&&void 0!==n?n:null})}))}catch(e){u(e instanceof Error?e.message:"Failed to load organizations")}finally{l(!1)}});(0,n.useEffect)(()=>{t?b():l(!1)},[t]);const y=null!==(e=null==r?void 0:r.maxOrganizations)&&void 0!==e?e:1,x=a.length<y,w=!0===(null==r?void 0:r.isJobPoster)&&x;return(0,n.useEffect)(()=>{const e=e=>{"Escape"===e.key&&v(!1)};return f&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow=""}},[f]),(0,s.jsxs)("section",{className:"cs-jobs-orgs",children:[(0,s.jsx)(fm,{to:"/creative-strategy/jobs",className:"cs-jobs-orgs__back",children:"← Back to jobs board"}),(0,s.jsx)("h1",{className:"cs-jobs-orgs__title",children:"Organizations"}),t?(null==r?void 0:r.isJobPoster)||(null==r?void 0:r.isSuperuser)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"cs-jobs-orgs__list-header",children:[(0,s.jsx)("h2",{className:"cs-jobs-orgs__list-title",children:(null==r?void 0:r.isSuperuser)?"All organizations":"Your organizations"}),w&&(0,s.jsx)("button",{type:"button",className:"cs-jobs-orgs__add-button",onClick:()=>{h(""),v(!0)},"aria-label":"Add organization",children:"+"})]}),c&&(0,s.jsx)("p",{className:"cs-jobs-orgs__error",children:c}),o?(0,s.jsx)("p",{children:"Loading organizations..."}):(0,s.jsxs)("ul",{className:"cs-jobs-orgs__list",children:[a.map(e=>(0,s.jsxs)("li",{className:"cs-jobs-orgs__item",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)(fm,{to:`/creative-strategy/jobs/organizations/${e.id}`,children:e.name})}),(0,s.jsxs)("span",{children:["/",e.slug]})]}),e.logoUrl&&(0,s.jsx)("img",{src:e.logoUrl,alt:`${e.name} logo`,className:"cs-jobs-orgs__logo"})]},e.id)),0===a.length&&(0,s.jsx)("li",{children:"No organizations yet."})]}),f&&(0,s.jsx)("div",{className:"cs-jobs-orgs__modal-overlay",onMouseDown:e=>{g.current=e.target===e.currentTarget},onMouseUp:e=>{const t=e.target===e.currentTarget;g.current&&t&&v(!1),g.current=!1},children:(0,s.jsxs)("div",{className:"cs-jobs-orgs__modal",children:[(0,s.jsx)("button",{type:"button",className:"cs-jobs-orgs__modal-close",onClick:()=>v(!1),"aria-label":"Close create organization popup",children:"×"}),(0,s.jsx)("h3",{children:"Create organization"}),(0,s.jsx)("p",{children:"Give your organization a name to get started."}),(0,s.jsxs)("form",{className:"cs-jobs-orgs__form",onSubmit:e=>T_(void 0,void 0,void 0,function*(){if(e.preventDefault(),d.trim()){m(!0),u(null);try{const{response:e,data:t}=yield(e=>Jw(void 0,void 0,void 0,function*(){const{response:t,data:n}=yield t_("/job-board/organizations",{method:"POST",body:JSON.stringify({name:e,logoUrl:undefined})});return{response:t,data:n}}))(d.trim());if(!e.ok)throw new Error((null==t?void 0:t.error)||"Failed to create organization");h(""),v(!1),yield b()}catch(e){u(e instanceof Error?e.message:"Failed to create organization")}finally{m(!1)}}}),children:[(0,s.jsx)("input",{value:d,onChange:e=>h(e.target.value),placeholder:"Organization name",autoFocus:!0}),(0,s.jsx)("button",{type:"submit",disabled:p,children:p?"Creating...":"Create organization"})]})]})})]}):(0,s.jsx)("p",{children:'Enable the "Job poster" role in your profile to manage organizations.'}):(0,s.jsx)("p",{children:"Please sign in to manage organizations."})]})};i(3769);
2var L_=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const I_=({size:e=16})=>(0,s.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"}),(0,s.jsx)("circle",{cx:"12",cy:"13",r:"4"})]}),M_=["collaborator","admin","owner"],P_=()=>{var e;const{organizationId:t}=Ap(),r=jp(),a=Tp(),{isLoggedIn:i,user:o}=v_(),[l,c]=(0,n.useState)(null),[u,d]=(0,n.useState)(""),[h,p]=(0,n.useState)(""),[m,f]=(0,n.useState)(null),[v,g]=(0,n.useState)(null),[b,y]=(0,n.useState)(!1),[x,w]=(0,n.useState)([]),[_,k]=(0,n.useState)([]),[N,E]=(0,n.useState)([]),[j,S]=(0,n.useState)(""),[C,T]=(0,n.use
2State)("collaborator"),[A,L]=(0,n.useState)(!1),[I,M]=(0,n.useState)(!1),[P,O]=(0,n.useState)(null),[R,D]=(0,n.useState)(!0),[F,U]=(0,n.useState)(!1),[$,B]=(0,n.useState)(null),[H,z]=(0,n.useState)(null),[q,G]=(0,n.useState)(null),[W,Y]=(0,n.useState)(!1),[V,K]=(0,n.useState)(!1),[Q,X]=(0,n.useState)(null),[J,Z]=(0,n.useState)(null),[ee,te]=(0,n.useState)(null),[ne,re]=(0,n.useState)(null),[ae,se]=(0,n.useState)(null),[ie,oe]=(0,n.useState)(null),[le,ce]=(0,n.useState)("success"),ue=(0,n.useMemo)(()=>r.pathname.endsWith("/users")?"users":r.pathname.endsWith("/settings")?"settings":"jobs",[r.pathname]),de=()=>L_(void 0,void 0,void 0,function*(){var e,n;if(t){U(!0),B(null);try{const{response:r,data:a}=yield(e=>Jw(void 0,void 0,void 0,function*(){var t,n;const{response:r,data:a}=yield t_(`/job-board/organizations/${e}/members`);if(!r.ok)return{response:r,data:a};const s=null!==(t=a.members)&&void 0!==t?t:[],i=null!==(n=a.pendingInvites)&&void 0!==n?n:[];return{response:r,data:Object.assign(Object.assign({},a),{members:s.map(e=>{var t,n,r;const a=e;return{userId:Number(a.userId),role:String(a.role),email:String(null!==(t=a.email)&&void 0!==t?t:""),firstName:String(null!==(n=a.firstName)&&void 0!==n?n:""),lastName:String(null!==(r=a.lastName)&&void 0!==r?r:""),avatarUrl:e_(a.avatarUrl?String(a.avatarUrl):void 0),isSuperuser:!0===a.isSuperuser}}),pendingInvites:i.map(e=>{var t;const n=e;return{id:Number(n.id),email:String(null!==(t=n.email)&&void 0!==t?t:""),role:String(n.role),expiresAt:n.expiresAt?String(n.expiresAt):null}})})}}))(t);if(!r.ok)throw new Error((null==a?void 0:a.error)||"Failed to load members");k(null!==(e=a.members)&&void 0!==e?e:[]),E(null!==(n=a.pendingInvites)&&void 0!==n?n:[]),L(!0===a.canManageMembers),M(!0===a.canManageOwnerRoles),O("number"==typeof a.currentUserId?a.currentUserId:null)}catch(e){B(e instanceof Error?e.message:"Failed to load members")}finally{U(!1)}}});(0,n.useEffect)(()=>{i?L_(void 0,void 0,void 0,function*(){var e,n,r,a,s,i;if(!t)return B("Missing organization id."),void D(!1);D(!0),B(null);try{const[o,l]=yield Promise.all([u_(t),c_(t)]);if(!o.response.ok)throw new Error((null===(e=o.data)||void 0===e?void 0:e.error)||"Failed to load organization");if(!l.response.ok)throw new Error((null===(n=l.data)||void 0===n?void 0:n.error)||"Failed to load organization jobs");const u=null!==(r=o.data.organization)&&void 0!==r?r:null;c(u),d(null!==(a=null==u?void 0:u.name)&&void 0!==a?a:""),p(null!==(s=null==u?void 0:u.slug)&&void 0!==s?s:""),f(null),g(null),y(!1),L(!0===o.data.canManageMembers),w(null!==(i=l.data.jobs)&&void 0!==i?i:[])}catch(e){B(e instanceof Error?e.message:"Failed to load organization")}finally{D(!1)}}):D(!1)},[i,t]),(0,n.useEffect)(()=>{"users"===ue&&i&&de()},[ue,i,t]);(0,n.useEffect)(()=>()=>{v&&v.startsWith("blob:")&&URL.revokeObjectURL(v)},[v]);const he=null!=v?v:b?null:null!==(e=null==l?void 0:l.logoUrl)&&void 0!==e?e:null,pe=e=>!(!A||"owner"===e.role&&!I),me=!0===(null==o?void 0:o.isSuperuser),fe=!0===(null==o?void 0:o.isJobPoster)||!0===(null==o?void 0:o.isSuperuser),ve=e=>{if(!t)return;const n=`/creative-strategy/jobs/organizations/${t}`;a("jobs"!==e?`${n}/${e}`:n)};return(0,s.jsxs)("section",{className:"cs-jobs-organization",children:[(0,s.jsx)(fm,{to:"/creative-strategy/jobs/organizations",className:"cs-jobs-organization__back",children:"← Back to organizations"}),i?R?(0,s.jsx)("p",{children:"Loading organization..."}):$?(0,s.jsx)("p",{className:"cs-jobs-organization__error",children:$}):l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{className:"cs-jobs-organization__header",children:[l.logoUrl&&(0,s.jsx)("img",{src:l.logoUrl,alt:`${l.name} logo`,className:"cs-jobs-organization__logo"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"cs-jobs-organization__title",children:l.name}),(0,s.jsxs)("p",{className:"cs-jobs-organization__slug",children:["/",l.slug]})]})]}),(0,s.jsxs)("div",{className:"cs-jobs-organization__tabs",children:[(0,s.jsx)("button",{type:"button",className:"jobs"===ue?"is-active":"",onClick:()=>ve("jobs"),children:"Jobs"}),(0,s.jsx)("button",{type:"button",className:"users"===ue?"is-active":"",onClick:()=>ve("users"),children:"Users"}),(0,s.jsx)("button",{type:"button",className:"settings"===ue?"is-active":"",onClick:()=>ve("settings"),children:"General settings"})]}),"jobs"===ue&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"cs-jobs-organization__jobs-header",children:[(0,s.jsx)("h2",{className:"cs-jobs-organization__jobs-title",children:"Jobs"}),fe&&(0,s.jsx)(fm,{to:`/creative-strategy/jobs/organizations/${l.id}/jobs/create`,className:"cs-jobs-organization__add-job",children:"+ Add job"})]}),!me&&(0,s.jsx)("p",{className:"cs-jobs-organization__note",children:"Pending jobs require superadmin approval before they appear publicly."}),0===x.length?(0,s.jsx)("p",{children:"No jobs yet."}):(0,s.jsx)("ul",{className:"cs-jobs-organization__jobs",children:x.map(e=>(0,s.jsxs)("li",{className:"cs-jobs-organization__job",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)(fm,{to:`/creative-strategy/jobs/organizations/${l.id}/jobs/${e.id}`,className:"cs-jobs-organization__job-link",children:e.title})}),(0,s.jsxs)("p",{children:[e.location," · ",e.locationType]}),me&&(0,s.jsx)("p",{className:e.featured?"is-approved":"",children:e.featured?"Featured listing":"Not featured"}),(0,s.jsx)("p",{className:e.isApproved?"is-approved":"is-pending",children:e.isApproved?"Approved for listing":"Pending approval"}),!1===e.listed&&(0,s.jsx)("p",{className:"is-pending",children:"Unlisted (hidden from the public board)"})]}),(0,s.jsxs)("div",{className:"cs-jobs-organization__job-actions",children:[(0,s.jsx)(fm,{to:`/creative-strategy/jobs/organizations/${l.id}/jobs/${e.id}`,className:"cs-jobs-organization__action-link",children:"Edit"}),!e.isApproved&&me&&(0,s.jsx)("button",{type:"button",onClick:()=>{return n=e.id,void L_(void 0,void 0,void 0,function*(){if(t){z(n),B(null);try{const{response:e,data:r}=yield h_(t,n);if(!e.ok)throw new Error((null==r?void 0:r.error)||"Failed to approve job");const a=r.job;a&&w(e=>e.map(e=>e.id===a.id?a:e))}catch(e){B(e instanceof Error?e.message:"Failed to approve job")}finally{z(null)}}});var n},disabled:H===e.id,children:H===e.id?"Approving...":"Approve"}),(0,s.jsx)("button",{type:"button",onClick:()=>{(e=>{L_(void 0,void 0,void 0,function*(){const t=!1===e.listed;se(e.id),B(null);try{const{response:n,data:r}=yield l_(e.id,{listed:t});if(!n.ok)throw new Error((null==r?void 0:r.error)||"Failed to update job");w(n=>n.map(n=>n.id===e.id?Object.assign(Object.assign({},n),{listed:t}):n)),ce("success"),oe(t?"Job relisted on the public board.":"Job unlisted from the public board.")}catch(e){B(e instanceof Error?e.message:"Failed to update job"),ce("error"),oe(e instanceof Error?e.message:"Failed to update job")}finally{se(null)}})})(e)},disabled:ae===e.id,children:ae===e.id?"Saving...":!1===e.listed?"Relist":"Unlist"}),(0,s.jsx)("button",{type:"button",className:"cs-jobs-organization__danger-btn",onClick:()=>{(e=>{L_(void 0,void 0,void 0,function*(){if(window.confirm(`Delete "${e.title}"? It will be removed from the job board and this organization.`)){re(e.id),B(null);try{const{response:n,data:r}=yield(t=e.id,Jw(void 0,void 0,void 0,function*(){const{response:e,data:n}=yield t_(`/job-board/jobs/${t}`,{method:"DELETE"});return{response:e,data:n}}));if(!n.ok)throw new Error((null==r?void 0:r.error)||"Failed to delete job");w(t=>t.filter(t=>t.id!==e.id)),ce("success"),oe("Job deleted.")}catch(e){B(e instanceof Error?e.message:"Failed to delete job"),ce("error"),oe(e instanceof Error?e.message:"Failed to delete job")}finally{re(null)}var t}})})(e)},disabled:ne===e.id,children:ne===e.id?"Deleting...":"Delete"})]})]},e.id))})]}),"users"===ue&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:"cs-jobs-organization__jobs-title",children:"Users"}),ie&&(0,s.jsxs)("div",{className:`cs-jobs-organization__toast is-${le}`,children:[(0,s.jsx)("span",{children:ie}),(0,s.jsx)("button",{type:"button",onClick:()=>oe(null),children:"Dismiss"})]}),A&&(0,s.jsxs)("form",{className:"cs-jobs-organization__invite",onSubmit:e=>L_(void 0,void 0,void 0,function*(){if(e.preventDefault(),t&&j.trim()){Y(!0),B(null);try{const{response:e,data:n}=yield((e,t)=>Jw(void 0,void 0,void 0,function*(){const{response:n,data:r}=yield t_(`/job-board/organizations/${e}/invite`,{method:"POST",body:JSON.stringify(t)});return{response:n,data:r}}))(t,{email:j.trim(),role:C});if(!e.ok)throw new Error((null==n?void 0:n.error)||"Failed to send invitation");S(""),ce("success"),oe("Invitation sent."),yield de()}catch(e){B(e instanceof Error?e.message:"Failed to send invitation"),ce("error"),oe(e instanceof Error?e.message:"Failed to send invitation")}finally{Y(!1)}}}),children:[(0,s.jsx)("input",{type:"email",value:j,onChange:e=>S(e.target.value),placeholder:"Invite email",required:!0}),(0,s.jsx)("select",{value:C,onChange:e=>T(e.target.value),children:M_.map(e=>(0,s.jsx)("option",{value:e,disabled:"owner"===e&&!I,children:e},e))}),(0,s.jsx)("button",{type:"submit",disabled:W,children:W?"Sending...":"Send invite"})]}),F?(0,s.jsx)("p",{children:"Loading members..."}):(0,s.jsxs)(s.Fragment,{children:[0===_.length?(0,s.jsx)("p",{children:"No members yet."}):(0,s.jsx)("ul",{className:"cs-jobs-organization__jobs",children:_.map(e=>(0,s.jsxs)("li",{className:"cs-jobs-organization__job",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("strong",{children:[e.firstName," ",e.lastName]}),(0,s.jsx)("p",{children:e.email})]}),(0,s.jsxs)("div",{className:"cs-jobs-organization__member-role",children:[(0,s.jsx)("select",{value:e.role,disabled:!pe(e),onChange:n=>{((e,n)=>{L_(void 0,void 0,void 0,function*(){if(t){G(e.userId),B(null);try{const{response:r,data:a}=yield((e,t,n)=>Jw(void 0,void 0,void 0,function*(){const{response:r,data:a}=yield t_(`/job-board/organizations/${e}/members/${t}`,{method:"PATCH",body:JSON.stringify(n)});return{response:r,data:a}}))(t,e.userId,{role:n});if(!r.ok)throw new Error((null==a?void 0:a.error)||"Failed to update role");ce("success"),oe("Member role updated."),yield de()}catch(e){B(e instanceof Error?e.message:"Failed to update role"),ce("error"),oe(e instanceof Error?e.message:"Failed to update role")}finally{G(null)}}})})(e,n.target.value)},children:M_.map(e=>(0,s.jsx)("option",{value:e,disabled:"owner"===e&&!I,children:e},e))}),A&&(0,s.jsx)("button",{type:"button",className:"cs-jobs-organization__danger-btn",onClick:()=>{(e=>{L_(void 0,void 0,void 0,function*(){if(t){te(e.userId),B(null);try{const{response:n,data:r}=yield((e,t)=>Jw(void 0,void 0,void 0,function*(){const{response:n,data:r}=yield t_(`/job-board/organizations/${e}/members/${t}`,{method:"DELETE"});return{response:n,data:r}}))(t,e.userId);if(!n.ok)throw new Error((null==r?void 0:r.error)||"Failed to remove member");ce("success"),oe(e.userId===P?"You left the organization.":"Member removed."),yield de()}catch(e){B(e instanceof Error?e.message:"Failed to remove member"),ce("error"),oe(e instanceof Error?e.message:"Failed to remove member")}finally{te(null)}}})})(e)},disabled:ee===e.userId,children:ee===e.userId?"Removing...":e.userId===P?"Leave":"Remove"}),q===e.userId&&(0,s.jsx)("span",{children:"Saving..."})]})]}
2,e.userId))}),N.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:"cs-jobs-organization__pending-title",children:"Pending invitations"}),(0,s.jsx)("ul",{className:"cs-jobs-organization__jobs",children:N.map(e=>(0,s.jsxs)("li",{className:"cs-jobs-organization__job",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:e.email}),(0,s.jsxs)("p",{children:["Role: ",e.role]}),(0,s.jsxs)("p",{children:["Expires:"," ",e.expiresAt?new Date(e.expiresAt).toLocaleString():"Unknown"]})]}),A&&(0,s.jsxs)("div",{className:"cs-jobs-organization__invite-actions",children:[(0,s.jsx)("button",{type:"button",onClick:()=>{(e=>{L_(void 0,void 0,void 0,function*(){if(t){X(e.id),B(null);try{const{response:n,data:r}=yield((e,t)=>Jw(void 0,void 0,void 0,function*(){const{response:n,data:r}=yield t_(`/job-board/organizations/${e}/invites/${t}/resend`,{method:"POST"});return{response:n,data:r}}))(t,e.id);if(!n.ok)throw new Error((null==r?void 0:r.error)||"Failed to resend invite");ce("success"),oe(`Invitation resent to ${e.email}.`),yield de()}catch(e){B(e instanceof Error?e.message:"Failed to resend invite"),ce("error"),oe(e instanceof Error?e.message:"Failed to resend invite")}finally{X(null)}}})})(e)},disabled:Q===e.id,children:Q===e.id?"Resending...":"Resend"}),(0,s.jsx)("button",{type:"button",className:"cs-jobs-organization__danger-btn",onClick:()=>{(e=>{L_(void 0,void 0,void 0,function*(){if(t){Z(e.id),B(null);try{const{response:n,data:r}=yield((e,t)=>Jw(void 0,void 0,void 0,function*(){const{response:n,data:r}=yield t_(`/job-board/organizations/${e}/invites/${t}`,{method:"DELETE"});return{response:n,data:r}}))(t,e.id);if(!n.ok)throw new Error((null==r?void 0:r.error)||"Failed to cancel invite");ce("success"),oe(`Invitation canceled for ${e.email}.`),yield de()}catch(e){B(e instanceof Error?e.message:"Failed to cancel invite"),ce("error"),oe(e instanceof Error?e.message:"Failed to cancel invite")}finally{Z(null)}}})})(e)},disabled:J===e.id,children:J===e.id?"Canceling...":"Cancel"})]})]},e.id))})]})]})]}),"settings"===ue&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:"cs-jobs-organization__jobs-title",children:"General settings"}),ie&&(0,s.jsxs)("div",{className:`cs-jobs-organization__toast is-${le}`,children:[(0,s.jsx)("span",{children:ie}),(0,s.jsx)("button",{type:"button",onClick:()=>oe(null),children:"Dismiss"})]}),!A&&(0,s.jsx)("p",{className:"cs-jobs-organization__note",children:"Only organization admins and owners can update settings."}),(0,s.jsxs)("form",{className:"cs-jobs-organization__settings",onSubmit:e=>L_(void 0,void 0,void 0,function*(){if(e.preventDefault(),t){K(!0),B(null);try{const{response:e,data:n}=yield d_(t,{name:u.trim(),slug:h.trim(),logoFile:m,clearLogo:b&&!m});if(!e.ok)throw new Error((null==n?void 0:n.error)||"Failed to update settings");const r=n.organization;r&&(c(r),d(r.name),p(r.slug),v&&v.startsWith("blob:")&&URL.revokeObjectURL(v),f(null),g(null),y(!1)),ce("success"),oe("Organization settings saved.")}catch(e){B(e instanceof Error?e.message:"Failed to update settings"),ce("error"),oe(e instanceof Error?e.message:"Failed to update settings")}finally{K(!1)}}}),children:[(0,s.jsxs)("label",{children:["Organization name",(0,s.jsx)("input",{type:"text",value:u,onChange:e=>d(e.target.value),disabled:!A,required:!0})]}),(0,s.jsxs)("label",{children:["Slug",(0,s.jsx)("input",{type:"text",value:h,onChange:e=>p(e.target.value),disabled:!A,required:!0})]}),(0,s.jsxs)("div",{className:"cs-jobs-organization__logo-setting",children:[(0,s.jsxs)("div",{className:"org-logo-wrap",children:[(0,s.jsx)("div",{className:"cs-jobs-organization__logo-preview",children:he?(0,s.jsx)("img",{src:he,alt:`${l.name} logo preview`}):(0,s.jsx)("span",{children:"No logo"})}),(0,s.jsxs)("label",{className:"org-logo-camera",title:"Choose new logo","aria-label":"Choose new logo",children:[(0,s.jsx)(I_,{}),(0,s.jsx)("input",{type:"file",accept:"image/png,image/jpeg,image/webp",onChange:e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];n&&(v&&v.startsWith("blob:")&&URL.revokeObjectURL(v),f(n),g(URL.createObjectURL(n)),y(!1),e.target.value="")},disabled:!A||V})]})]}),m&&(0,s.jsx)("button",{type:"button",className:"org-logo-clear-btn",onClick:()=>{v&&v.startsWith("blob:")&&URL.revokeObjectURL(v),f(null),g(null)},disabled:!A||V,children:"Clear pending logo"}),he&&(0,s.jsx)("button",{type:"button",className:"org-logo-delete-btn",onClick:()=>{v&&v.startsWith("blob:")&&URL.revokeObjectURL(v),f(null),g(null),y(!0)},disabled:!A||V,children:"Delete logo on save"})]}),(0,s.jsx)("button",{type:"submit",disabled:V||!A,children:V?"Saving...":"Save settings"})]})]})]}):(0,s.jsx)("p",{children:"Organization not found."}):(0,s.jsx)("p",{children:"Please sign in to view organizations."})]})};i(4945);
2var O_=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const R_=()=>{const{organizationId:e,jobId:t}=Ap(),r=Tp(),{isLoggedIn:a,user:i}=v_(),o=Boolean(t),l=!0===(null==i?void 0:i.isJobPoster)||!0===(null==i?void 0:i.isSuperuser),c=!0===(null==i?void 0:i.isSuperuser),u=Boolean(e)||o,[d,h]=(0,n.useState)([]),[p,m]=(0,n.useState)([]),[f,v]=(0,n.useState)(""),[g,b]=(0,n.useState)(!1),[y,x]=(0,n.useState)(!0),[w,_]=(0,n.useState)(null),[k,N]=(0,n.useState)(null),[E,j]=(0,n.useState)(!1),[S,C]=(0,n.useState)(null),[T,A]=(0,n.useState)({organizationId:"",locationId:"",title:"",locationType:"remote",schedule:"",isFeatured:!1,listed:!0,salary:"",applyUrl:"",tags:"",description:""}),[L,I]=(0,n.useState)({});(0,n.useEffect)(()=>{O_(void 0,void 0,void 0,function*(){var n,r,s,i,l,c,u,d,p,f,g,b,y,w,k;if(a){N(null),_(null),x(!0);try{const[{response:a,data:x},_,N]=yield Promise.all([i_(),r_("").catch(()=>[]),o&&t?o_(t):Promise.resolve(null)]);if(m(_),!a.ok)throw new Error((null==x?void 0:x.error)||"Failed to load organizations");const E=null!==(n=null==x?void 0:x.organizations)&&void 0!==n?n:[];h(E);const j=e?E.find(t=>String(t.id)===e):void 0;if(o&&t){if(!(null==N?void 0:N.response.ok)||!(null===(r=N.data)||void 0===r?void 0:r.job))throw new Error((null===(s=null==N?void 0:N.data)||void 0===s?void 0:s.error)||"Failed to load job");const e=N.data.job;A({organizationId:String(null!==(u=null!==(l=null!==(i=e.organizationId)&&void 0!==i?i:null==j?void 0:j.id)&&void 0!==l?l:null===(c=E[0])||void 0===c?void 0:c.id)&&void 0!==u?u:""),locationId:String(null!==(f=null!==(d=e.locationId)&&void 0!==d?d:null===(p=_[0])||void 0===p?void 0:p.id)&&void 0!==f?f:""),title:e.title,locationType:e.locationType,schedule:e.schedule,isFeatured:!0===e.featured,listed:!1!==e.listed,salary:null!==(g=e.salary)&&void 0!==g?g:"",applyUrl:null!==(b=e.applyUrl)&&void 0!==b?b:"",tags:null!==(w=null===(y=e.tags)||void 0===y?void 0:y.join(", "))&&void 0!==w?w:"",description:null!==(k=e.description)&&void 0!==k?k:""}),v(e.location)}else A(e=>{var t,n,r,a,s;return Object.assign(Object.assign({},e),{organizationId:String(null!==(r=null!==(t=null==j?void 0:j.id)&&void 0!==t?t:null===(n=E[0])||void 0===n?void 0:n.id)&&void 0!==r?r:""),locationId:String(null!==(s=null===(a=_[0])||void 0===a?void 0:a.id)&&void 0!==s?s:"")})})}catch(e){N(e instanceof Error?e.message:"Failed to load job form")}finally{x(!1)}}else x(!1)})},[o,a,t,e]);const M=(e,t)=>{A(n=>Object.assign(Object.assign({},n),{[e]:t}))},P=e=>{A(t=>Object.assign(Object.assign({},t),{locationId:e.id})),v(e.name),I(e=>{const t=Object.assign({},e);return delete t.locationId,t})};(0,n.useEffect)(()=>{const e=setTimeout(()=>O_(void 0,void 0,void 0,function*(){b(!0);try{const e=yield r_(f);m(e)}catch(e){}finally{b(!1)}}),300);return()=>clearTimeout(e)},[f]);const O=null!=e?e:T.organizationId,R=O?`/creative-strategy/jobs/organizations/${O}`:"/creative-strategy/jobs",D=()=>{C(null),r(e?`/creative-strategy/jobs/organizations/${e}`:"/creative-strategy/jobs",{replace:!0})};return(0,s.jsxs)("section",{className:"cs-jobs-post",children:[(0,s.jsx)(fm,{to:R,className:"cs-jobs-post__back",children:O?"← Back to organization":"← Back to jobs board"}),(0,s.jsx)("h1",{className:"cs-jobs-post__title",children:o?"Edit job":"Post a job"}),a?l?y?(0,s.jsx)("p",{children:"Loading organizations..."}):0===d.length?(0,s.jsxs)("p",{children:["You need an organization first. ",(0,s.jsx)(fm,{to:"/creative-strategy/jobs/organizations",children:"Create one here"}),"."]}):(0,s.jsxs)("form",{className:"cs-jobs-post__form",onSubmit:n=>O_(void 0,void 0,void 0,function*(){n.preventDefault();const r={};if(T.organizationId||(r.organizationId="Select an organization"),T.locationId||(r.locationId="Select a location"),T.title.trim()||(r.title="Title is required"),T.applyUrl.trim()?/^https?:\/\//i.test(T.applyUrl.trim())||(r.applyUrl="Apply URL must start with http:// or https://"):r.applyUrl="Apply URL is required",Object.keys(r).length>0)I(r);else{I({}),j(!0),N(null),_(null);
2try{const n={title:T.title,description:T.description.trim(),locationId:T.locationId,locationType:T.locationType,schedule:T.schedule,salary:T.salary.trim(),applyUrl:T.applyUrl,tags:T.tags?T.tags.split(",").map(e=>e.trim()).filter(Boolean):[],isFeatured:c?T.isFeatured:void 0,listed:T.listed,status:o?void 0:"open"};if(o&&t){const{response:e,data:r}=yield l_(t,n);if(!e.ok)throw new Error((null==r?void 0:r.error)||"Failed to update job");return void _("Job updated.")}const r=null!=e?e:T.organizationId,{response:a,data:s}=yield((e,t)=>Jw(void 0,void 0,void 0,function*(){const{response:n,data:r}=yield t_(`/job-board/organizations/${e}/jobs`,{method:"POST",body:JSON.stringify(t)});return{response:n,data:{error:r.error,job:r.job?n_(r.job):void 0}}}))(r,n);if(!a.ok)throw new Error((null==s?void 0:s.error)||"Failed to post job");const i=null==s?void 0:s.job;if(i)return void C({isApproved:!0===i.isApproved});_("Job posted.")}catch(e){N(e instanceof Error?e.message:o?"Failed to update job":"Failed to post job")}finally{j(!1)}}}),children:[(0,s.jsxs)("label",{className:"cs-jobs-post__field",children:[(0,s.jsx)("span",{className:"cs-jobs-post__label",children:"Organization"}),(0,s.jsx)("select",{value:T.organizationId,onChange:e=>M("organizationId",e.target.value),disabled:u,children:d.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))})]}),e&&(0,s.jsx)("p",{className:"cs-jobs-post__hint",children:"This job is being created in this organization."}),L.organizationId&&(0,s.jsx)("p",{className:"cs-jobs-post__error",children:L.organizationId}),(0,s.jsxs)("label",{className:"cs-jobs-post__field",children:[(0,s.jsx)("span",{className:"cs-jobs-post__label",children:"Location"}),(0,s.jsxs)("div",{className:"cs-jobs-post__location-picker",children:[(0,s.jsx)("input",{value:f,onChange:e=>{v(e.target.value),M("locationId","")},onKeyDown:e=>{(e=>{O_(void 0,void 0,void 0,function*(){if("Enter"!==e.key)return;e.preventDefault();const t=f.trim();if(!t)return;const n=p.find(e=>e.name.toLowerCase()===t.toLowerCase());if(n)P(n);else{b(!0);try{const{response:e,data:n}=yield(e=>Jw(void 0,void 0,void 0,function*(){const{response:t,data:n}=yield t_("/job-board/locations",{method:"POST",body:JSON.stringify({name:e})});return{response:t,data:n}}))(t);if(!e.ok)throw new Error((null==n?void 0:n.error)||"Failed to create location");const r=n.location;if(r){const e={id:String(r.id),name:String(r.name)};m(t=>t.some(t=>t.id===e.id)?t:[e,...t]),P(e)}}catch(e){N(e instanceof Error?e.message:"Failed to create location")}finally{b(!1)}}})})(e)},placeholder:"Search location (press Enter to create)"}),g&&(0,s.jsx)("p",{className:"cs-jobs-post__location-meta",children:"Searching locations..."}),!g&&(0,s.jsxs)("ul",{className:"cs-jobs-post__location-options",children:[p.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)("button",{type:"button",onClick:()=>P(e),className:T.locationId===e.id?"is-selected":"",children:e.name})},e.id)),0===p.length&&(0,s.jsxs)("li",{className:"cs-jobs-post__location-empty",children:['No matches. Press Enter to create "',f.trim(),'".']})]})]})]}),L.locationId&&(0,s.jsx)("p",{className:"cs-jobs-post__error",children:L.locationId}),(0,s.jsxs)("label",{className:"cs-jobs-post__field",children:[(0,s.jsx)("span",{className:"cs-jobs-post__label",children:"Job title"}),(0,s.jsx)("input",{value:T.title,onChange:e=>M("title",e.target.value),placeholder:"e.g. Senior Creative Strategist",required:!0})]}),L.title&&(0,s.jsx)("p",{className:"cs-jobs-post__error",children:L.title}),(0,s.jsxs)("label",{className:"cs-jobs-post__field",children:[(0,s.jsx)("span",{className:"cs-jobs-post__label",children:"Work mode"}),(0,s.jsxs)("select",{value:T.locationType,onChange:e=>M("locationType",e.target.value),children:[(0,s.jsx)("option",{value:"remote",children:"Remote"}),(0,s.jsx)("option",{value:"hybrid",children:"Hybrid"}),(0,s.jsx)("option",{value:"onsite",children:"On-site"})]})]}),(0,s.jsxs)("label",{className:"cs-jobs-post__field",children:[(0,s.jsx)("span",{className:"cs-jobs-post__label",children:"Schedule"}),(0,s.jsx)("input",{value:T.schedule,onChange:e=>M("schedule",e.target.value),placeholder:"e.g. Full-time, 9-5 (optional)"})]}),c&&(0,s.jsxs)("label",{className:"cs-jobs-post__checkbox-field",children:[(0,s.jsx)("input",{type:"checkbox",checked:T.isFeatured,onChange:e=>A(t=>Object.assign(Object.assign({},t),{isFeatured:e.target.checked}))}),(0,s.jsx)("span",{children:"Featured job"})]}),(0,s.jsxs)("label",{className:"cs-jobs-post__checkbox-field",children:[(0,s.jsx)("input",{type:"checkbox",checked:T.listed,onChange:e=>A(t=>Object.assign(Object.assign({},t),{listed:e.target.checked}))}),(0,s.jsx)("span",{children:"Listed on the public board (uncheck to hide without deleting)"})]}),(0,s.jsxs)("label",{className:"cs-jobs-post__field",children:[(0,s.jsx)("span",{className:"cs-jobs-post__label",children:"Compensation"}),(0,s.jsx)("input",{value:T.salary,onChange:e=>M("salary",e.target.value),placeholder:"e.g. $120k-$150k + bonus (optional)"})]}),(0,s.jsxs)("label",{className:"cs-jobs-post__field",children:[(0,s.jsx)("span",{className:"cs-jobs-post__label",children:"Apply URL"}),(0,s.jsx)("input",{value:T.applyUrl,onChange:e=>M("applyUrl",e.target.value),placeholder:"https://...",required:!0})]}),L.applyUrl&&(0,s.jsx)("p",{className:"cs-jobs-post__error",children:L.applyUrl}),(0,s.jsxs)("label",{className:"cs-jobs-post__field",children:[(0,s.jsx)("span",{className:"cs-jobs-post__label",children:"Tags"}),(0,s.jsx)("input",{value:T.tags,onChange:e=>M("tags",e.target.value),placeholder:"Comma separated (optional)"})]}),(0,s.jsxs)("label",{className:"cs-jobs-post__field",children:[(0,s.jsx)("span",{className:"cs-jobs-post__label",children:"Description"}),(0,s.jsx)("textarea",{value:T.description,onChange:e=>M("description",e.target.value),placeholder:"Description (optional)"})]}),(0,s.jsx)("button",{type:"submit",disabled:E,children:E?o?"Saving...":"Posting...":o?"Save changes":"Publish job"}),w&&(0,s.jsx)("p",{className:"cs-jobs-post__message",children:w}),k&&(0,s.jsx)("p",{className:"cs-jobs-post__error",children:k})]}):(0,s.jsx)("p",{children:'Enable "Job poster" on your profile to post jobs.'}):(0,s.jsx)("p",{children:"Please sign in to post jobs."}),S&&(0,s.jsx)("div",{className:"cs-jobs-post__popup-overlay",onClick:D,children:(0,s.jsxs)("div",{className:"cs-jobs-post__popup",role:"dialog","aria-modal":"true","aria-labelledby":"
2cs-jobs-post-create-title",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("h2",{id:"cs-jobs-post-create-title",children:"Job created"}),(0,s.jsx)("p",{children:S.isApproved?"Your job has been created and posted on the board!":"Your job has been created and is pending approval before it appears on the board."}),(0,s.jsx)("button",{type:"button",onClick:D,children:"Close"})]})})]})};i(4464);var D_=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const F_=e=>e.endsWith("/admin/jobs")?"jobs":e.endsWith("/admin/organizations")?"organizations":e.endsWith("/admin/notifications")?"notifications":"users",U_=()=>{const{user:e}=v_(),t=jp(),r=Tp(),[a,i]=(0,n.useState)(F_(t.pathname)),[o,l]=(0,n.useState)([]),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(null),[p,m]=(0,n.useState)(null),[f,v]=(0,n.useState)(1),[g,b]=(0,n.useState)(!1),[y,x]=(0,n.useState)(!1),[w,_]=(0,n.use
2State)(0),[k,N]=(0,n.useState)(""),[E,j]=(0,n.useState)(""),[S,C]=(0,n.useState)([]),[T,A]=(0,n.useState)(!1),[L,I]=(0,n.useState)(null),[M,P]=(0,n.useState)(null),[O,R]=(0,n.useState)(null),[D,F]=(0,n.useState)(null),[U,$]=(0,n.useState)(!1),[B,H]=(0,n.useState)(1),[z,q]=(0,n.useState)(!1),[G,W]=(0,n.useState)(!1),[Y,V]=(0,n.useState)(0),[K,Q]=(0,n.useState)([]),[X,J]=(0,n.useState)(!1),[Z,ee]=(0,n.useState)(null),[te,ne]=(0,n.useState)(null),[re,ae]=(0,n.useState)(1),[se,ie]=(0,n.useState)(!1),[oe,le]=(0,n.useState)(!1),[ce,ue]=(0,n.useState)(0),[de,he]=(0,n.useState)(null),[pe,me]=(0,n.useState)(!1),[fe,ve]=(0,n.useState)(!1),[ge,be]=(0,n.useState)(null),ye=e=>D_(void 0,void 0,void 0,function*(){var t,n,r;const a=null!==(t=null==e?void 0:e.page)&&void 0!==t?t:f,s=null!==(n=null==e?void 0:e.search)&&void 0!==n?n:E;u(!0),h(null);try{const{response:e,data:t}=yield(i={page:a,pageSize:50,search:s||void 0},Jw(void 0,void 0,void 0,function*(){const e=new URLSearchParams;(null==i?void 0:i.page)&&e.set("page",String(i.page)),(null==i?void 0:i.pageSize)&&e.set("pageSize",String(i.pageSize)),(null==i?void 0:i.search)&&e.set("search",i.search);const t=e.toString(),{response:n,data:r}=yield t_("/job-board/admin/users"+(t?`?${t}`:""));return{response:n,data:r}}));if(!e.ok)throw new Error((null==t?void 0:t.error)||"Failed to load users");const n=t.pagination;l(null!==(r=t.users)&&void 0!==r?r:[]),b(!0===(null==n?void 0:n.hasNext)),x(!0===(null==n?void 0:n.hasPrev)),_("number"==typeof(null==n?void 0:n.total)?n.total:0),v("number"==typeof(null==n?void 0:n.page)?n.page:a)}catch(e){h(e instanceof Error?e.message:"Failed to load users")}finally{u(!1)}var i}),xe=e=>D_(void 0,void 0,void 0,function*(){var t,n,r;const a=null!==(t=null==e?void 0:e.page)&&void 0!==t?t:B,s=null!==(n=null==e?void 0:e.pendingOnly)&&void 0!==n?n:U;A(!0),I(null);try{const{response:e,data:t}=yield(i={pendingOnly:s,page:a,pageSize:50},Jw(void 0,void 0,void 0,function*(){var e;const t=new URLSearchParams;!0===(null==i?void 0:i.pendingOnly)&&t.set("pendingOnly","true"),(null==i?void 0:i.page)&&t.set("page",String(i.page)),(null==i?void 0:i.pageSize)&&t.set("pageSize",String(i.pageSize));const n=t.toString(),{response:r,data:a}=yield t_("/job-board/admin/jobs"+(n?`?${n}`:""));return{response:r,data:Object.assign(Object.assign({},a),{jobs:(null!==(e=a.jobs)&&void 0!==e?e:[]).map(e=>n_(e)),pagination:a.pagination})}}));if(!e.ok)throw new Error((null==t?void 0:t.error)||"Failed to load jobs");const n=t.pagination;C(null!==(r=t.jobs)&&void 0!==r?r:[]),q(!0===(null==n?void 0:n.hasNext)),W(!0===(null==n?void 0:n.hasPrev)),V("number"==typeof(null==n?void 0:n.total)?n.total:0),H("number"==typeof(null==n?void 0:n.page)?n.page:a)}catch(e){I(e instanceof Error?e.message:"Failed to load jobs")}finally{A(!1)}var i});(0,n.useEffect)(()=>{const e=F_(t.pathname);a!==e&&i(e)},[t.pathname,a]),(0,n.useEffect)(()=>{const e=window.setTimeout(()=>{j(k.trim()),v(1)},300);return()=>window.clearTimeout(e)},[k]),(0,n.useEffect)(()=>{(null==e?void 0:e.isSuperuser)&&"users"===a&&ye({page:f,search:E})},[a,null==e?void 0:e.isSuperuser,f,E]),(0,n.useEffect)(()=>{(null==e?void 0:e.isSuperuser)&&"jobs"===a&&xe({page:B,pendingOnly:U})},[a,null==e?void 0:e.isSuperuser,B,U]),(0,n.useEffect)(()=>{var t;(null==e?void 0:e.isSuperuser)&&"organizations"===a&&(t={page:re},D_(void 0,void 0,void 0,function*(){var e,n;const r=null!==(e=null==t?void 0:t.page)&&void 0!==e?e:re;J(!0),ee(null);try{const{response:e,data:t}=yield(a={page:r,pageSize:50},Jw(void 0,void 0,void 0,function*(){const e=new URLSearchParams;(null==a?void 0:a.page)&&e.set("page",String(a.page)),(null==a?void 0:a.pageSize)&&e.set("pageSize",String(a.pageSize));const t=e.toString(),{response:n,data:r}=yield t_("/job-board/admin/organizations"+(t?`?${t}`:""));return{response:n,data:r}}));if(!e.ok)throw new Error((null==t?void 0:t.error)||"Failed to load organizations");const s=t.pagination;Q((null!==(n=t.organizations)&&void 0!==n?n:[]).map(e=>{var t,n;return Object.assign(Object.assign({},e),{logoUrl:null!==(n=e_(null!==(t=e.logoUrl)&&void 0!==t?t:void 0))&&void 0!==n?n:null,autoApproveJobs:!0===e.autoApproveJobs})})),ie(!0===(null==s?void 0:s.hasNext)),le(!0===(null==s?void 0:s.hasPrev)),ue("number"==typeof(null==s?void 0:s.total)?
2s.total:0),ae("number"==typeof(null==s?void 0:s.page)?s.page:r)}catch(e){ee(e instanceof Error?e.message:"Failed to load organizations")}finally{J(!1)}var a}))},[a,null==e?void 0:e.isSuperuser,re]),(0,n.useEffect)(()=>{(null==e?void 0:e.isSuperuser)&&"notifications"===a&&D_(void 0,void 0,void 0,function*(){me(!0),be(null);try{const{response:e,data:t}=yield Jw(void 0,void 0,void 0,function*(){const{response:e,data:t}=yield t_("/job-board/admin/notification-settings");return{response:e,data:{error:t.error,settings:t.settings?p_(t.settings):void 0}}});if(!e.ok||!t.settings)throw new Error(t.error||"Failed to load notification settings");he(t.settings)}catch(e){be(e instanceof Error?e.message:"Failed to load notification settings")}finally{me(!1)}})},[a,null==e?void 0:e.isSuperuser]);const we=e=>D_(void 0,void 0,void 0,function*(){if(!de)return;const t=de;he(Object.assign(Object.assign({},t),e)),ve(!0),be(null);try{const{response:t,data:r}=yield(n=e,Jw(void 0,void 0,void 0,function*(){const{response:e,data:t}=yield t_("/job-board/admin/notification-settings",{method:"PATCH",body:JSON.stringify(n)});return{response:e,data:{error:t.error,settings:t.settings?p_(t.settings):void 0}}}));if(!t.ok||!r.settings)throw new Error(r.error||"Failed to save notification settings");he(r.settings)}catch(e){he(t),be(e instanceof Error?e.message:"Failed to save notification settings")}finally{ve(!1)}var n});return(0,s.jsxs)("section",{className:"cs-jobs-superadmin",children:[(0,s.jsx)(fm,{to:"/creative-strategy/jobs",className:"cs-jobs-superadmin__back",children:"← Back to jobs board"}),(0,s.jsx)("h1",{className:"cs-jobs-superadmin__title",children:"Superadmin panel"}),(null==e?void 0:e.isSuperuser)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"cs-jobs-superadmin__tabs",children:[(0,s.jsx)("button",{type:"button",className:"users"===a?"is-active":"",onClick:()=>{i("users"),r("/creative-strategy/jobs/admin/users")},children:"Users"}),(0,s.jsx)("button",{type:"button",className:"jobs"===a?"is-active":"",onClick:()=>{i("jobs"),r("/creative-strategy/jobs/admin/jobs")},children:"Jobs"}),(0,s.jsx)("button",{type:"button",className:"organizations"===a?"is-active":"",onClick:()=>{i("organizations"),r("/creative-strategy/jobs/admin/organizations")},children:"Organizations"}),(0,s.jsx)("button",{type:"button",className:"notifications"===a?"is-active":"",onClick:()=>{i("notifications"),r("/creative-strategy/jobs/admin/notifications")},children:"Notifications"})]}),"users"===a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"csj-admin-search",children:(0,s.jsx)("input",{type:"search",placeholder:"Search users by name or email...",value:k,onChange:e=>N(e.target.value),"aria-label":"Search users"})}),d&&(0,s.jsx)("p",{className:"cs-jobs-superadmin__error",children:d}),c?(0,s.jsx)("p",{children:"Loading users..."}):0===o.length?(0,s.jsx)("p",{children:E?"No users match your search.":"No users found."}):(0,s.jsx)("ul",{className:"cs-jobs-superadmin__list",children:o.map(e=>(0,s.jsxs)("li",{className:"cs-jobs-superadmin__item",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:e.fullName}),(0,s.jsx)("p",{children:e.email}),(0,s.jsxs)("p",{children:["Roles: ",e.isJobSeeker?"Seeker ":"",e.isJobPoster?"Poster ":"",e.isSuperuser?"Superuser":""]}),(0,s.jsxs)("p",{children:["Organizations: ",e.organizationCount]})]}),(0,s.jsxs)("div",{className:"cs-jobs-superadmin__controls",children:[(0,s.jsx)("label",{children:"Max orgs"}),(0,s.jsx)("input",{type:"number",min:1,value:e.maxOrganizations,onChange:t=>((e,t)=>{l(n=>n.map(n=>n.id===e?Object.assign(Object.assign({},n),{maxOrganizations:t}):n))})(e.id,Number(t.target.value||"1"))}),(0,s.jsx)("button",{type:"button",onClick:()=>{return t=e,D_(void 0,void 0,void 0,function*(){m(t.id),h(null);try{const{response:r,data:a}=yield(e=t.id,n=t.maxOrganizations,Jw(void 0,void 0,void 0,function*(){const{response:t,data:r}=yield t_(`/job-board/admin/users/${e}/limits`,{method:"PATCH",body:JSON.stringify({maxOrganizations:n})});return{response:t,data:r}}));if(!r.ok)throw new Error((null==a?void 0:a.error)||"Failed to update user limit");yield ye({page:f,search:E})}catch(e){h(e instanceof Error?e.message:"Failed to update user limit")}finally{m(null)}var e,n});var t},disabled:p===e.id,children:p===e.id?"Saving...":"Save"})]})]},e.id))}),!c&&(0,s.jsxs)("div",{className:"cs-jobs-superadmin__pagination",children:[(0,s.jsxs)("p",{children:["Page ",f," · ",w.toLocaleStr
2ing()," total users"]}),(0,s.jsxs)("div",{className:"cs-jobs-superadmin__pagination-actions",children:[(0,s.jsx)("button",{type:"button",onClick:()=>v(e=>Math.max(e-1,1)),disabled:!y,children:"Previous"}),(0,s.jsx)("button",{type:"button",onClick:()=>v(e=>e+1),disabled:!g,children:"Next"})]})]})]}):"jobs"===a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsxs)("label",{className:"cs-jobs-superadmin__pending-toggle",children:[(0,s.jsx)("input",{type:"checkbox",checked:U,onChange:e=>{$(e.target.checked),H(1)}}),(0,s.jsx)("span",{children:"Show only jobs pending approval"})]})}),L&&(0,s.jsx)("p",{className:"cs-jobs-superadmin__error",children:L}),T?(0,s.jsx)("p",{children:"Loading jobs..."}):0===S.length?(0,s.jsx)("p",{children:U?"No pending jobs.":"No jobs found."}):(0,s.jsx)("ul",{className:"cs-jobs-superadmin__list",children:S.map(e=>(0,s.jsxs)("li",{className:"cs-jobs-superadmin__item",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)(fm,{className:"cs-jobs-superadmin-job-link",to:`/creative-strategy/jobs/jobs/${e.id}`,children:e.title})}),(0,s.jsx)("p",{children:e.company}),(0,s.jsxs)("p",{children:[e.location," · ",e.locationType]}),(0,s.jsxs)("p",{children:["Created:"," ",e.postedDate?new Date(e.postedDate).toLocaleString():"Unknown"]})]}),(0,s.jsxs)("div",{className:"cs-jobs-superadmin__controls",children:[(0,s.jsxs)("label",{className:"cs-jobs-superadmin__checkbox-label",children:[(0,s.jsx)("input",{type:"checkbox",checked:!0===e.isApproved,disabled:!0===e.isApproved||M===e.id,onChange:t=>{t.target.checked&&!e.isApproved&&(e=>{D_(void 0,void 0,void 0,function*(){if(e.organizationId){P(e.id),I(null);try{const{response:t,data:n}=yield h_(e.organizationId,e.id);if(!t.ok)throw new Error((null==n?void 0:n.error)||"Failed to approve job");yield xe({page:B,pendingOnly:U})}catch(e){I(e instanceof Error?e.message:"Failed to approve job")}finally{P(null)}}})})(e)}}),(0,s.jsx)("span",{children:M===e.id?"Approving...":"Approved"})]}),(0,s.jsxs)("label",{className:"cs-jobs-superadmin__checkbox-label",children:[(0,s.jsx)("input",{type:"checkbox",checked:!0===e.featured,disabled:O===e.id,onChange:t=>{((e,t)=>{D_(void 0,void 0,void 0,function*(){R(e.id),I(null);try{const{response:n,data:r}=yield l_(e.id,{isFeatured:t});if(!n.ok||!r.job)throw new Error(r.error||"Failed to update featured status");const a=r.job;C(t=>t.map(t=>t.id===e.id?a:t))}catch(e){I(e instanceof Error?e.message:"Failed to update featured status")}finally{R(null)}})})(e,t.target.checked)}}),(0,s.jsx)("span",{children:O===e.id?"Saving...":"Featured"})]}),(0,s.jsxs)("label",{className:"cs-jobs-superadmin__checkbox-label",children:[(0,s.jsx)("input",{type:"checkbox",checked:!1!==e.listed,disabled:D===e.id,onChange:t=>{((e,t)=>{D_(void 0,void 0,void 0,function*(){F(e.id),I(null);try{const{response:n,data:r}=yield l_(e.id,{listed:t});if(!n.ok||!r.job)throw new Error(r.error||"Failed to update listed status");const a=r.job;C(t=>t.map(t=>t.id===e.id?a:t))}catch(e){I(e instanceof Error?e.message:"Failed to update listed status")}finally{F(null)}})})(e,t.target.checked)}}),(0,s.jsx)("span",{children:D===e.id?"Saving...":"Listed"})]})]})]},e.id))}),!T&&(0,s.jsxs)("div",{className:"cs-jobs-superadmin__pagination",children:[(0,s.jsxs)("p",{children:["Page ",B," · ",Y.toLocaleString()," total jobs"]}),(0,s.jsxs)("div",{className:"cs-jobs-superadmin__pagination-actions",children:[(0,s.jsx)("button",{type:"button",onClick:()=>H(e=>Math.max(e-1,1)),disabled:!G,children:"Previous"}),(0,s.jsx)("button",{type:"button",onClick:()=>H(e=>e+1),disabled:!z,children:"Next"})]})]})]}):"organizations"===a?(0,s.jsxs)(s.Fragment,{children:[Z&&(0,s.jsx)("p",{className:"cs-jobs-superadmin__error",children:Z}),X?(0,s.jsx)("p",{children:"Loading organizations..."}):0===K.length?(0,s.jsx)("p",{children:"No organizations found."}):(0,s.jsx)("ul",{className:"cs-jobs-superadmin__list",children:K.map(e=>(0,s.jsxs)("li",{className:"cs-jobs-superadmin__item",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:e.name}),(0,s.jsxs)("p",{children:["/",e.slug]})]}),(0,s.jsxs)("div",{className:"cs-jobs-superadmin__controls",children:[(0,s.jsxs)("label",{className:"cs-jobs-superadmin__checkbox-label",children:[(0,s.jsx)("input",{type:"checkbox",checked:e.autoApproveJobs,onChange:t=>{((e,t)=>
2{D_(void 0,void 0,void 0,function*(){ne(e.id),ee(null);try{const{response:n,data:r}=yield d_(e.id,{name:e.name,slug:e.slug,autoApproveJobs:t});if(!n.ok)throw new Error((null==r?void 0:r.error)||"Failed to update organization");Q(n=>n.map(n=>n.id===e.id?Object.assign(Object.assign({},n),{autoApproveJobs:t}):n))}catch(e){ee(e instanceof Error?e.message:"Failed to update organization auto-approval")}finally{ne(null)}})})(e,t.target.checked)},disabled:te===e.id}),(0,s.jsx)("span",{children:"Auto-approve jobs (skip pending review)"})]}),te===e.id&&(0,s.jsx)("span",{children:"Saving..."})]})]},e.id))}),!X&&(0,s.jsxs)("div",{className:"cs-jobs-superadmin__pagination",children:[(0,s.jsxs)("p",{children:["Page ",re," · ",ce.toLocaleString()," ","total organizations"]}),(0,s.jsxs)("div",{className:"cs-jobs-superadmin__pagination-actions",children:[(0,s.jsx)("button",{type:"button",onClick:()=>ae(e=>Math.max(e-1,1)),disabled:!oe,children:"Previous"}),(0,s.jsx)("button",{type:"button",onClick:()=>ae(e=>e+1),disabled:!se,children:"Next"})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[ge&&(0,s.jsx)("p",{className:"cs-jobs-superadmin__error",children:ge}),pe?(0,s.jsx)("p",{children:"Loading notification settings..."}):de?(0,s.jsxs)("div",{className:"csj-notify-card",children:[(0,s.jsxs)("label",{className:"cs-jobs-superadmin__checkbox-label",children:[(0,s.jsx)("input",{type:"checkbox",checked:de.digestEmailEnabled,disabled:fe,onChange:e=>{we({digestEmailEnabled:e.target.checked})}}),(0,s.jsx)("span",{children:"Receive digest email"})]}),(0,s.jsxs)("p",{className:"csj-notify-hint",children:["Roughly hourly. Sent to ",e.email," only when there was activity in the past hour — quiet hours send nothing."]}),de.digestEmailEnabled&&(0,s.jsxs)("div",{className:"csj-notify-options",children:[(0,s.jsx)("p",{className:"csj-notify-options-title",children:"Include in the digest:"}),(0,s.jsxs)("label",{className:"cs-jobs-superadmin__checkbox-label",children:[(0,s.jsx)("input",{type:"checkbox",checked:de.digestUserSignups,disabled:fe,onChange:e=>{we({digestUserSignups:e.target.checked})}}),(0,s.jsx)("span",{children:"User signups (count + details on up to 20)"})]}),(0,s.jsxs)("label",{className:"cs-jobs-superadmin__checkbox-label",children:[(0,s.jsx)("input",{type:"checkbox",checked:de.digestJobPosts,disabled:fe,onChange:e=>{we({digestJobPosts:e.target.checked})}}),(0,s.jsx)("span",{children:"Job posts created (count + details on up to 20)"})]})]}),fe&&(0,s.jsx)("p",{className:"csj-notify-hint",children:"Saving..."})]}):(0,s.jsx)("p",{children:"Notification settings unavailable."})]})]}):(0,s.jsx)("p",{children:"Superuser access required."})]})};i(5935);const $_=()=>{const[e]=ym(),[t,r]=n.useState("verifying"),[a,i]=n.useState("Verifying your email..."),o=(e.get("token")||"").trim();return n.useEffect(()=>{let e=!1;return t=void 0,n=void 0,s=function*(){if(!o)return r("invalid"),void i("Missing verification token.");r("verifying"),i("Verifying your email...");try{const{response:t,data:n}=yield(e=>Jw(void 0,void 0,void 0,function*(){const t=encodeURIComponent(e),{response:n,data:r}=yield t_(`/job-board/auth/verify-email?token=${t}`);return{response:n,data:r}}))(o);if(e)return;if(t.ok)return r("verified"),void i("Email verified. Your account is now active.");const a="string"==typeof(null==n?void 0:n.code)?n.code:"";if("TOKEN_EXPIRED"===a||"TOKEN_ALREADY_USED"===a)return r("expired_or_used"),void i("TOKEN_EXPIRED"===a?"This verification token has expired.":"This verification token has already been used.");if("INVALID_TOKEN"===a)return r("invalid"),void i("This verification token is invalid.");r("error"),i("string"==typeof(null==n?void 0:n.error)?n.error:"Unable to verify email right now.")}catch(t){e||(r("error"),i("Unable to verify email right now."))}},new((a=void 0)||(a=Promise))(function(e,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:new a(function(t){t(e)})}(t.value).then(i,o)}l((s=s.apply(t,n||[])).next())}),()=>{e=!0};var t,n,a,s},[o]),(0,s.jsx)("section",{className:"cs-jobs-verify-email",children:(0,s.jsxs)("div",{className:"cs-jobs-verify-email__card",children:[(0,s.jsx)("h1",{className:"cs-jobs-verify-email__title",children:"Email verification"}),(0,s.jsx)("p",{className:`cs-jobs-verify-email__message cs-jobs-verify-email__message--${t}`,"aria-live":"polite",children:a}),"verifying"===t&&(0,s.jsx)("p",{className:"cs-jobs-verify-email__hint",children:"Please wait a moment."}),("verified"===t||"expired_or_used"===t||"invalid"===t||"error"===t)&&(0,s.jsx)("div",{className:"cs-jobs-verify-email__actions",children:(0,s.jsx)(fm,{className:"cs-jobs-verify-email__button",to:"/creative-strategy/jobs",children:"Go to login"})})]})})};i(2682);
2var B_=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const H_=()=>{const[e]=ym(),t=(e.get("token")||"").trim(),[r,a]=n.useState(""),[i,o]=n.useState(""),[l,c]=n.useState("checking"),[u,d]=n.useState(""),[h,p]=n.useState(!1),m="submitting"!==l&&"checking"!==l&&t.length>0&&h;return n.useEffect(()=>{let e=!1;return B_(void 0,void 0,void 0,function*(){if(!t)return p(!1),c("invalid_or_expired"),void d("Missing reset token. Request a new password reset email.");c("checking"),d("Checking reset link..."),p(!1);try{const{response:n,data:r}=yield(e=>Jw(void 0,void 0,void 0,function*(){const t=encodeURIComponent(e),{response:n,data:r}=yield t_(`/job-board/auth/reset-password?token=${t}`);return{response:n,data:r}}))(t);if(e)return;if(n.ok&&"valid"===(null==r?void 0:r.status))return c("ready"),d(""),void p(!0);"TOKEN_ALREADY_USED"===(null==r?void 0:r.code)?(c("already_used"),d("This reset link has already been used. Request a new one.")):"TOKEN_EXPIRED"===(null==r?void 0:r.code)?(c("invalid_or_expired"),d("This reset link has expired. Request a new one.")):(c("invalid_or_expired"),d("This reset link is invalid or has expired. Request a new one."))}catch(t){if(e)return;c("error"),d("Unable to validate reset link right now.")}}),()=>{e=!0}},[t]),(0,s.jsx)("section",{className:"jobs-reset",children:(0,s.jsx)("div",{className:"jobs-reset-shell",children:(0,s.jsxs)("div",{className:"jobs-reset-card",children:[(0,s.jsx)("h1",{className:"jobs-reset-title",children:"Reset password"}),!t&&(0,s.jsx)("p",{className:"jobs-reset-message is-error",children:"Missing reset token. Request a new password reset email."}),t&&"success"!==l&&"invalid_or_expired"!==l&&"already_used"!==l&&(0,s.jsxs)("form",{className:"jobs-reset-form",onSubmit:e=>B_(void 0,void 0,void 0,function*(){if(e.preventDefault(),!t)return p(!1),c("invalid_or_expired"),void d("Missing reset token. Request a new password reset email.");if(r.length<8)return c("error"),void d("Password must be at least 8 characters.");if(r!==i)return c("error"),void d("Passwords do not match.");c("submitting"),d("Resetting your password...");try{const{response:e,data:n}=yield((e,t)=>Jw(void 0,void 0,void 0,function*(){const{response:n,data:r}=yield t_("/job-board/auth/reset-password",{method:"POST",body:JSON.stringify({token:e,password:t})});return{response:n,data:r}}))(t,r);if(e.ok)return c("success"),d("Password updated successfully. You can now sign in."),a(""),void o("");if("TOKEN_ALREADY_USED"===(null==n?void 0:n.code))return p(!1),c("already_used"),void d("This reset link has already been used. Request a new one.");if("TOKEN_EXPIRED"===(null==n?void 0:n.code)||"INVALID_TOKEN"===(null==n?void 0:n.code))return p(!1),c("invalid_or_expired"),void d("This reset link is invalid or has expired. Request a new one.");const s="string"==typeof(null==n?void 0:n.error)?n.error:"Unable to reset password right now.";c("error"),d(s)}catch(e){c("error"),d("Unable to reset password right now.")}}),children:[(0,s.jsx)("label",{className:"jobs-reset-label",htmlFor:"new-password",children:"New password"}),(0,s.jsx)("input",{id:"new-password",type:"password",autoComplete:"new-password",className:"jobs-reset-input",value:r,onChange:e=>a(e.target.value),disabled:"submitting"===l,required:!0,minLength:8}),(0,s.jsx)("label",{className:"jobs-reset-label",htmlFor:"confirm-password",children:"Confirm new password"}),(0,s.jsx)("input",{id:"confirm-password",type:"password",autoComplete:"new-password",className:"jobs-reset-input",value:i,onChange:e=>o(e.target.value),disabled:"submitting"===l,required:!0,minLength:8}),u&&(0,s.jsx)("p",{className:"jobs-reset-message "+("submitting"===l||"ready"===l||"checking"===l?"is-neutral":"is-error"),"aria-live":"polite",children:u}),(0,s.jsx)("button",{type:"submit",className:"jobs-reset-button",disabled:!m,children:"submitting"===l?"Resetting...":"Reset password"})]}),("success"===l||"invalid_or_expired"===l||"already_used"===l||!t)&&(0,s.jsx)("div",{className:"jobs-reset-actions",children:(0,s.jsx)(fm,{className:"jobs-reset-button is-secondary",to:"/creative-strategy/jobs",children:"Go to login"})}),t&&("success"===l||"invalid_or_expired"===l||"already_used"===l)&&(0,s.jsx)("p",{className:"jobs-reset-message "+("success"===l?"is-success":"is-error"),"aria-live":"polite",children:u})]})})})};i(6404);const z_=()=>{const{isLoggedIn:e,openLoginModal:t,openSignupModal:r}=v_(),[a]=ym(),i=(0,n.useMemo)(()=>{var e,t;return null!==(t=null===(e=a.get("token"))||void 0===e?void 0:e.trim())&&void 0!==t?t:""}
2,[a]),[o,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)("idle"),[d,h]=(0,n.useState)(null),p=()=>{return e=void 0,t=void 0,r=function*(){if(!i)return u("error"),void h("Missing invitation token.");l(!0),u("idle"),h(null);try{const{response:e,data:t}=yield(e=>Jw(void 0,void 0,void 0,function*(){var t,n;const{response:r,data:a}=yield t_("/job-board/organizations/invitations/accept",{method:"POST",body:JSON.stringify({token:e})}),s=a.organization;return{response:r,data:Object.assign(Object.assign({},a),{organization:s?{id:Number(s.id),name:String(null!==(t=s.name)&&void 0!==t?t:""),slug:String(null!==(n=s.slug)&&void 0!==n?n:""),logoUrl:e_(s.logoUrl?String(s.logoUrl):void 0)}:void 0})}}))(i);if(!e.ok)throw new Error((null==t?void 0:t.error)||"Failed to accept invitation");const n=t.organization;u("success"),h((null==n?void 0:n.name)?`You joined ${n.name}.`:"Invitation accepted.")}catch(e){u("error"),h(e instanceof Error?e.message:"Failed to accept invitation")}finally{l(!1)}},new((n=void 0)||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())});var e,t,n,r};return(0,s.jsxs)("section",{className:"cs-jobs-invite-accept",children:[(0,s.jsx)(fm,{to:"/creative-strategy/jobs",className:"cs-jobs-invite-accept__back",children:"← Back to jobs board"}),(0,s.jsx)("h1",{children:"Organization invitation"}),e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>{p()},disabled:o||!i,children:o?"Accepting...":"Accept invitation"}),d&&(0,s.jsx)("p",{className:"error"===c?"is-error":"success"===c?"is-success":"",children:d}),"success"===c&&(0,s.jsx)("p",{children:(0,s.jsx)(fm,{to:"/creative-strategy/jobs/organizations",children:"Go to organizations"})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:"Sign in (or create an account) using the invited email, then accept your invite."}),(0,s.jsxs)("div",{className:"cs-jobs-invite-accept__actions",children:[(0,s.jsx)("button",{type:"button",onClick:t,children:"Log in"}),(0,s.jsx)("button",{type:"button",onClick:()=>r(),children:"Sign up"})]})]})]})};i(2061);var q_=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())})};const G_=e=>{const t=new Date(e),n=(new Date).getTime()-t.getTime(),r=Math.floor(n/864e5);return r<=0?"Today":1===r?"1 day ago":r<7?`${r} days ago`:r<14?"1 week ago":r<30?`${Math.floor(r/7)} weeks ago`:r<60?"1 month ago":`${Math.floor(r/30)} months ago`},W_=()=>{var e;const{jobId:t}=Ap(),{isLoggedIn:r,openLoginModal:a,openSignupModal:i,user:o}=v_(),[l,c]=(0,n.useState)(null),[u,d]=(0,n.useState)(!0),[h,p]=(0,n.useState)(null),[m,f]=(0,n.useState)(void 0),[v,g]=(0,n.useState)(!1),[b,y]=(0,n.useState)(null),[x,w]=(0,n.useState)(!1),[_,k]=(0,n.useState)(!1),[N,E]=(0,n.useState)(null),[j,S]=(0,n.useState)(!1),[C,T]=(0,n.use
2State)(null);(0,n.useEffect)(()=>{t?q_(void 0,void 0,void 0,function*(){d(!0),p(null);try{const{response:e,data:n}=yield o_(t);if(!e.ok||!n.job)throw new Error(n.error||"Failed to load job");c(n.job),f(n.job.applyUrl),g(!0===n.job.hasExpressedInterest||Boolean(n.job.applyUrl))}catch(e){p(e instanceof Error?e.message:"Failed to load job")}finally{d(!1)}}):d(!1)},[r,t]);const A=(0,n.useCallback)(()=>q_(void 0,void 0,void 0,function*(){if(l)if(r){y(null),w(!0);try{const{response:e,data:t}=yield a_(l.id);if(!e.ok)throw new Error((null==t?void 0:t.error)||"Could not record interest");(null==t?void 0:t.applyUrl)&&(f(t.applyUrl),g(!0))}catch(e){y(e instanceof Error?e.message:"Could not record interest")}finally{w(!1)}}else i()}),[l,r,i]),L=(0,n.useCallback)(()=>q_(void 0,void 0,void 0,function*(){if(l&&(null==o?void 0:o.isSuperuser)){E(null),k(!0);try{const{response:e,data:t}=yield l_(l.id,{isFeatured:!l.featured});if(!e.ok||!t.job)throw new Error(t.error||"Failed to update featured status");c(t.job)}catch(e){E(e instanceof Error?e.message:"Failed to update featured status")}finally{k(!1)}}}),[l,null==o?void 0:o.isSuperuser]),I=(0,n.useCallback)(()=>q_(void 0,void 0,void 0,function*(){if(l&&l.organizationId&&(null==o?void 0:o.isSuperuser)&&!l.isApproved){T(null),S(!0);try{const{response:e,data:t}=yield h_(l.organizationId,l.id);if(!e.ok||!t.job)throw new Error(t.error||"Failed to approve job");c(t.job)}catch(e){T(e instanceof Error?e.message:"Failed to approve job")}finally{S(!1)}}}),[l,null==o?void 0:o.isSuperuser]);if(u)return(0,s.jsx)("section",{className:"job-details",children:(0,s.jsx)("p",{className:"job-details__status",children:"Loading job details..."})});if(h||!l)return(0,s.jsx)("section",{className:"job-details",children:(0,s.jsxs)("div",{className:"job-details__error",children:[(0,s.jsx)("h1",{children:"Unable to load job"}),(0,s.jsx)("p",{children:h||"Job not found."}),!r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:"If this job is awaiting approval, sign in as a superadmin to view and approve it."}),(0,s.jsx)("div",{className:"job-details__auth-actions",children:(0,s.jsx)("button",{type:"button",onClick:a,children:"Sign in"})})]}),(0,s.jsx)(fm,{to:"/creative-strategy/jobs",children:"Back to all jobs"})]})});const M=!1===l.isApproved,P=!0===(null==o?void 0:o.isSuperuser)&&M&&Boolean(l.organizationId),O=!M&&v&&Boolean(m),R=!M;return(0,s.jsxs)("section",{className:"job-details",children:[(0,s.jsx)(fm,{to:"/creative-strategy/jobs",className:"job-details__back-link",children:"← Back to jobs board"}),(0,s.jsxs)("article",{className:"job-details__card "+(l.featured?"job-details__card--featured":""),children:[(0,s.jsxs)("header",{className:"job-details__header",children:[(0,s.jsxs)("div",{className:"job-details__company",children:[l.companyLogo?(0,s.jsx)("img",{src:l.companyLogo,alt:`${l.company} logo`}):(0,s.jsx)("div",{className:"job-details__company-placeholder",children:l.company.charAt(0).toUpperCase()}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"job-details__company-name",children:l.company}),(0,s.jsxs)("p",{className:"job-details__posted",children:["Posted ",G_(l.postedDate)]})]})]}),(l.featured||M)&&(0,s.jsxs)("div",{className:"job-details-badges",children:[l.featured&&(0,s.jsx)("span",{className:"job-details__featured-badge",children:"★ Featured"}),M&&(0,s.jsx)("span",{className:"job-details-pending-badge",children:"Pending approval"})]})]}),M&&(0,s.jsx)("div",{className:"job-details-pending",children:(0,s.jsx)("p",{children:"This job is hidden from the public board until a superadmin approves it."})}),(0,s.jsx)("h1",{className:"job-details__title",children:l.title}),(0,s.jsxs)("div",{className:"job-details__meta",children:[(0,s.jsx)("span",{children:l.schedule}),l.salary&&(0,s.jsx)("span",{children:l.salary}),(0,s.jsx)("span",{children:l.location}),(0,s.jsx)("span",{className:`job-details__location-pill job-details__location-pill--${l.locationType}`,children:l.locationType})]}),l.tags&&l.tags.length>0&&(0,s.jsx)("div",{className:"job-details__tags",children:l.tags.map((e,t)=>(0,s.jsx)("span",{children:e},t))}),(0,s.jsxs)("div",{className:"job-details__description",children:[(0,s.jsx)("h2",{children:"About this role"}),(0,s.jsx)("p",{children:(null===(e=l.description)||void 0===e?void 0:e.trim())?l.description:"No description provided yet."})]}),(0,s.jsxs)("div",{className:"job-details__actions",children:[P&&(0,s.jsx)("button",{type:"button",className:"job-details-approve",onClick:()=>{I()},disabled:j,children:j?"Approving...":"Approve job"}
2),O?(0,s.jsx)("button",{type:"button",onClick:()=>window.open(m,"_blank","noopener,noreferrer"),children:"Apply now"}):R?(0,s.jsx)("button",{type:"button",onClick:()=>{A()},disabled:x,children:x?"Loading...":r?"I'm interested":"Sign up to apply"}):null,(null==o?void 0:o.isSuperuser)&&(0,s.jsx)("button",{type:"button",className:"job-details__feature-toggle",onClick:()=>{L()},disabled:_,children:_?"Saving...":l.featured?"Remove featured":"Make featured"})]}),b&&(0,s.jsx)("p",{className:"job-details__message job-details__message--error",children:b}),N&&(0,s.jsx)("p",{className:"job-details__message job-details__message--error",children:N}),C&&(0,s.jsx)("p",{className:"job-details__message job-details__message--error",children:C})]})]})};i(8704);const Y_=({initialNavigationHeader:e,initialNavigationFooter:t})=>{const{user:n,isAuthStateResolved:r,openLoginModal:a,openSignupModal:i,logout:o,showLoginModal:l,showSignupModal:c,closeModals:u}=v_();return(0,s.jsxs)("div",{className:"cs-jobs-app",children:[(0,s.jsx)(yh,{mode:"jobboard",initialData:e,jobBoardUser:n,jobBoardAuthLoading:!r,onLoginClick:a,onSignupClick:i,onLogoutClick:o}),(0,s.jsx)("main",{className:"cs-jobs-main",children:(0,s.jsxs)(qp,{children:[(0,s.jsx)(Hp,{path:"/verify-email",element:(0,s.jsx)($_,{})}),(0,s.jsx)(Hp,{path:"/reset-password",element:(0,s.jsx)(H_,{})}),(0,s.jsx)(Hp,{path:"/accept-invite",element:(0,s.jsx)(z_,{})}),(0,s.jsx)(Hp,{path:"/profile",element:(0,s.jsx)(C_,{})}),(0,s.jsx)(Hp,{path:"/organizations",element:(0,s.jsx)(A_,{})}),(0,s.jsx)(Hp,{path:"/organizations/:organizationId",element:(0,s.jsx)(P_,{})}),(0,s.jsx)(Hp,{path:"/organizations/:organizationId/users",element:(0,s.jsx)(P_,{})}),(0,s.jsx)(Hp,{path:"/organizations/:organizationId/settings",element:(0,s.jsx)(P_,{})}),(0,s.jsx)(Hp,{path:"/organizations/:organizationId/jobs/create",element:(0,s.jsx)(R_,{})}),(0,s.jsx)(Hp,{path:"/organizations/:organizationId/jobs/:jobId",element:(0,s.jsx)(R_,{})}),(0,s.jsx)(Hp,{path:"/jobs/:jobId",element:(0,s.jsx)(W_,{})}),(0,s.jsx)(Hp,{path:"/post-job",element:(0,s.jsx)(R_,{})}),(0,s.jsx)(Hp,{path:"/admin",element:(0,s.jsx)(U_,{})}),(0,s.jsx)(Hp,{path:"/admin/users",element:(0,s.jsx)(U_,{})}),(0,s.jsx)(Hp,{path:"/admin/jobs",element:(0,s.jsx)(U_,{})}),(0,s.jsx)(Hp,{path:"/admin/organizations",element:(0,s.jsx)(U_,{})}),(0,s.jsx)(Hp,{path:"/admin/notifications",element:(0,s.jsx)(U_,{})}),(0,s.jsx)(Hp,{path:"*",element:(0,s.jsx)(w_,{})})]})}),(0,s.jsx)(Ah,{initialData:t}),(0,s.jsx)(k_,{mode:"login",isOpen:l,onClose:u}),(0,s.jsx)(k_,{mode:"signup",isOpen:c,onClose:u})]})},V_=e=>(0,s.jsx)(g_,{children:(0,s.jsx)(Y_,Object.assign({},e))}),K_={AdminJobsLinkTool:()=>{const[e,t]=(0,n.useState)(""),[r,a]=(0,n.useState)({kind:"loading-whitelist"}),[i,o]=(0,n.useState)({kind:"none"}),[l,c]=(0,n.useState)(!1);(0,n.useEffect)(()=>{Qw(void 0,void 0,void 0,function*(){var e,t,n;try{const r=E(),s=g()?"published":"draft";console.log(`AdminJobsLinkTool: fetching whitelist from ${r} (status=${s})`);const i=yield mo.fetchDataPoint(po,r,fetch,s),o=null!==(t=null===(e=null==i?void 0:i[0])||void 0===e?void 0:e.json)&&void 0!==t?t:null,l=null!==(n=null==o?void 0:o.whitelist)&&void 0!==n?n:[];console.log("AdminJobsLinkTool: whitelist loaded",l),a({kind:"ready",whitelist:l})}catch(e){console.error("AdminJobsLinkTool: failed to load whitelist",e),a({kind:"error",message:"Could not load whitelist from Strapi. Check the console for details."})}})},[]);const d=(0,n.useCallback)(()=>{if("ready"!==r.kind)return;const t=e.trim();if(!t)return void o({kind:"none"});console.group("AdminJobsLinkTool: whitelist check"),console.log("Input URL:",t),console.log("Whitelist:",r.whitelist);let n=!1;for(const e of r.whitelist)t.startsWith(e)?(console.log(`✅ Entry "${e}" DOES match the start of the URL — it's whitelisted!`),n=!0):console.log(`❌ Entry "${e}" does not match the start of the URL`);if(0===r.whitelist.length&&console.warn("Whitelist is empty — no entries to check against."),console.groupEnd(),!n)return void o({kind:"not-whitelisted"});const a=u()?window.location:{href:"",hostname:"",pathname:"",search:"",protocol:"https:",host:""},s=a.protocol&&a.host?`${a.protocol}//${a.host}`:"",i=btoa(t);o({kind:"generated",link:`${s}/careers?link=${i}`}),c(!1)},[e,r]),h=(0,n.useCallback)(e=>Qw(void 0,void 0,void 0,function*(){try{yield navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),2e3)}catch(e){}}),[]),p="ready"===r.kind?r.whitelist:[];return(0,s.jsx)("div",{style:Xw.page,children:(0,s.jsxs)("div",{style:Xw.card,children:[(0,s.jsxs)("div",{style:Xw.header,children:[(0,s.jsx)("div",{style:Xw.headerMark}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{style:Xw.title,children:"Jobs Link Generator"}),(0,s.jsx)("p",{style:Xw.subtitle,children:"Generate a safe, encoded /careers redirect link"})]})]}),(0,s.jsxs)("div",{style:Xw.section,children:[(0,s.jsx)("label",{style:Xw.label,htmlFor:"jobs-url-input",children:"Job Posting URL"}),(0,s.jsx)("input",{id:"jobs-url-input",type:"url",value:e,onCh
2ange:e=>{t(e.target.value),o({kind:"none"})},onKeyDown:e=>{"Enter"===e.key&&d()},placeholder:"https://jobs.gem.com/motion/...",style:Xw.input,spellCheck:!1,autoComplete:"off",disabled:"loading-whitelist"===r.kind}),"loading-whitelist"===r.kind&&(0,s.jsx)("p",{style:Xw.hint,children:"Loading whitelist..."}),"error"===r.kind&&(0,s.jsx)("p",{style:Object.assign(Object.assign({},Xw.hint),{color:"#c0392b"}),children:r.message}),"ready"===r.kind&&p.length>0&&(0,s.jsxs)("p",{style:Xw.hint,children:["Allowed prefixes:"," ",p.map((e,t)=>(0,s.jsx)("span",{style:Xw.pill,children:e},t))]})]}),(0,s.jsx)("button",{style:Object.assign(Object.assign({},Xw.button),"ready"===r.kind&&e.trim()?{}:Xw.buttonDisabled),onClick:d,disabled:"ready"!==r.kind||!e.trim(),children:"Generate Link"}),"not-whitelisted"===i.kind&&(0,s.jsxs)("div",{style:Object.assign(Object.assign({},Xw.resultBox),Xw.resultError),children:[(0,s.jsx)("span",{style:Xw.resultIcon,children:"✕"}),(0,s.jsx)("span",{children:"That URL doesn’t match any allowed prefix. Check your whitelist in Strapi."})]}),"generated"===i.kind&&(0,s.jsxs)("div",{style:Object.assign(Object.assign({},Xw.resultBox),Xw.resultSuccess),children:[(0,s.jsxs)("div",{style:Xw.resultHeader,children:[(0,s.jsx)("span",{style:Object.assign(Object.assign({},Xw.resultIcon),{color:"#27ae60"}),children:"✓"}),(0,s.jsx)("span",{style:Xw.resultLabel,children:"Generated link"})]}),(0,s.jsxs)("div",{style:Xw.linkRow,children:[(0,s.jsx)("code",{style:Xw.linkCode,children:i.link}),(0,s.jsx)("button",{style:Object.assign(Object.assign({},Xw.copyButton),l?Xw.copyButtonDone:{}),onClick:()=>h(i.link),children:l?"Copied!":"Copy"})]})]})]})})},Badge:({text:e,variant:t})=>(0,s.jsx)("span",{style:{backgroundColor:"Light"===t?"#eee":"#000",borderRadius:"1em",color:"Light"===t?"#000":"#fff",display:"inline-block",fontSize:"14px",lineHeight:2,padding:"0 1em"},children:e}),CreativeStrategyJobsSpaRoot:({initialNavigationHeader:e,initialNavigationFooter:t,initialPath:r,initialJobBoardApiBaseUrl:a})=>{const[i,o]=(0,n.useState)(!1);(0,n.useEffect)(()=>{o(!0)},[]);const l=null!=r?r:"undefined"!=typeof window?window.location.pathname:"/creative-strategy/jobs";"undefined"!=typeof window&&(window.__JOB_BOARD_API_BASE_URL=a);const c=(0,s.jsx)(qp,{children:(0,s.jsx)(Hp,{path:"/creative-strategy/jobs/*",element:(0,s.jsx)(V_,{initialNavigationHeader:e,initialNavigationFooter:t})})});return"undefined"!=typeof window&&i?(0,s.jsx)(pm,{children:c}):(0,s.jsx)(Bp,{initialEntries:[l],initialIndex:0,children:c})},DropsContainer:({baseUrl:e,slug:t,initialData:r,requestUri:a})=>{const i=E(e),o=g()?"published":"draft",[l,c]=(0,n.useState)(null!=r?r:[]),[u,d]=(0,n.useState)(void 0===r),[h,f]=(0,n.useState)(null),v=C(u);return(0,n.useEffect)(()=>{var e,n,s,l;void 0===r&&(e=void 0,n=void 0,l=function*(){try{d(!0),f(null);const e=null!=t?t:S.getSlug("releases",p(a),m()),n=yield vd.fetchDrops({baseUrl:i,status:o,slug:e},fetch);c(n.data.data)}catch(e){f(e instanceof Error?e.message:"Failed to fetch drops"),console.error("Error fetching drops:",e)}finally{d(!1)}},new((s=void 0)||(s=Promise))(function(t,r){function a(e){try{o(l.next(e))}catch(e){r(e)}}function i(e){try{o(l.throw(e))}catch(e){r(e)}}function o(e){e.done?t(e.value):function(e){return e instanceof s?e:new s(function(t){t(e)})}(e.value).then(a,i)}o((l=l.apply(e,n||[])).next())}))},[i,o,t,r,a]),u?(0,s.jsx)("div",{className:"drops-container",children:(0,s.jsx)("div",{className:"drops-container-content",children:(0,s.jsx)("div",{className:"drops-container-loading",children:v&&(0,s.jsx)("div",{className:"spinner"})})})}):h?(0,s.jsxs)("div",{className:"drops-container",children:[(0,s.jsx)("div",{className:"drops-container-header",children:(0,s.jsx)("h1",{className:"drops-container-title",children:"Sorry! Something went wrong."})}),(0,s.jsx)("div",{className:"drops-container-content",children:(0,s.jsx)("div",{className:"drops-container-error",children:(0,s.jsxs)("p",{children:["Error: ",h]})})})]}):(0,s.jsx)("div",{className:"drops-container",children:(0,s.jsx)("div",{className:"drops-container-content",children:l.length>0?l.map(e=>(0,s.jsx)(fd,{baseUrl:i,drop:e,requestUri:a},e.id)):(0,s.jsx)("div",{className:"drops-container-placeholder",children:(0,s.jsx)("p",{children:"No drops found!"})})})})},EventsContainer:({baseUrl:e,slug:t,initialData:r,header:a,footer:i,gated:o=!1,currentPath:l,routeExcludesHeader:c=!1,routeExcludesFooter:u=!1,forceListView:d=!1,featuredEvent:h,featuredNav:f,eventsPage:v,routeMods:b=null})=>{var y,x,w,_,N,j,T,A,L;
2const I=E(e),M=g()?"published":"draft",[P,O]=(0,n.useState)(null!=r?r:[]),[R,D]=(0,n.useState)(a),[F,U]=(0,n.useState)(i),[$,B]=(0,n.useState)(void 0===r),[H,z]=(0,n.useState)(null),[q,G]=(0,n.useState)(null!=h?h:null),[W,Y]=(0,n.useState)(null!=f?f:null),[V,K]=(0,n.useState)(null!=v?v:null),Q=C($),X="true"===k().get("gated"),J=o||X,Z=d?null:null!=t?t:S.getSlug("events",p(),m());if((0,n.useEffect)(()=>{D(a)},[a]),(0,n.useEffect)(()=>{U(i)},[i]),(0,n.useEffect)(()=>{void 0!==h&&G(h)},[h]),(0,n.useEffect)(()=>{void 0!==f&&Y(f)},[f]),(0,n.useEffect)(()=>{void 0!==v&&K(v)},[v]),(0,n.useEffect)(()=>{void 0===r&&Ih(void 0,void 0,void 0,function*(){try{B(!0),z(null);const e=Z?yield nh.fetchEvent({baseUrl:I,status:M,slug:Z},fetch):yield nh.fetchPagedEvents({baseUrl:I,status:M,page:1,pageSize:100},fetch);O(e.data.data)}catch(e){z(e instanceof Error?e.message:"Failed to fetch events"),console.error("Error fetching events:",e)}finally{B(!1)}})},[I,M,t,r,Z]),(0,n.useEffect)(()=>{let e=!1;return Ih(void 0,void 0,void 0,function*(){try{if(!c&&void 0===a){const t=yield eh.fetchNavigationHeader({baseUrl:I,status:M},fetch);e||D(t.data.data)}}catch(e){console.error("Error fetching navigation header:",e)}
2try{if(!u&&void 0===i){const t=yield Sh.fetchNavigationFooter({baseUrl:I,status:M},fetch);e||U(t.data.data)}}catch(e){console.error("Error fetching navigation footer:",e)}}),()=>{e=!0}},[I,M,a,i,c,u]),(0,n.useEffect)(()=>{const e=!(null==Z?void 0:Z.length),t=void 0===h||void 0===f,n=e&&void 0===v;if(!t&&!n)return;let r=!1;return Ih(void 0,void 0,void 0,function*(){var e;if(t)try{const e=yield mh.fetch({baseUrl:I,status:M},fetch);r||(void 0===h&&G(e.featuredEvent),void 0===f&&Y(e.content))}catch(e){console.error("Error fetching featured nav content:",e)}if(n)try{const t=yield nh.fetchEventsPage({baseUrl:I,status:M},fetch);r||K(null!==(e=t.data.data)&&void 0!==e?e:null)}catch(e){console.error("Error fetching events page:",e)}}),()=>{r=!0}},[I,M,Z,h,f,v]),$)return(0,s.jsx)("div",{className:"events-container",children:(0,s.jsx)("div",{className:"events-container-content",children:(0,s.jsx)("div",{className:"events-container-loading",children:Q&&(0,s.jsx)("div",{className:"spinner"})})})});if(H)return(0,s.jsxs)("div",{className:"events-container",children:[(0,s.jsx)("div",{className:"events-container-header",children:(0,s.jsx)("h1",{className:"events-container-title",children:"Sorry! Something went wrong."})}),(0,s.jsx)("div",{className:"events-container-content",children:(0,s.jsx)("div",{className:"events-container-error",children:(0,s.jsxs)("p",{children:["Error: ",H]})})})]});const ee=!(null==Z?void 0:Z.length),te=null!==(_=null===(w=null===(x=null===(y=P[0])||void 0===y?void 0:y.mods)||void 0===x?void 0:x.template)||void 0===w?void 0:w.headerTheme)&&void 0!==_?_:void 0,ne=!c&&!!R&&(ee||!P[0]||!kh(P[0])),re=ee?"black":te,ae=e=>{var t,n;const r=null!==(n=null!==(t=e.start_date)&&void 0!==t?t:e.publish_date)&&void 0!==n?n:null;if(!r)return null;const a=new Date(r);return Number.isNaN(a.getTime())?null:a},se=null!==(N=null==q?void 0:q.event)&&void 0!==N?N:null,ie=se&&Lh(se.property,"motion")?se:null,oe=P.filter(e=>{if(!0!==e.listed)return!1;if(!Lh(e.property,"motion"))return!1;if(ie){if(e.documentId&&e.documentId===ie.documentId)return!1;if(e.slug&&e.slug===ie.slug)return!1}return!0}),le=[...oe].sort((e,t)=>{var n,r,a,s;const i=null!==(r=null===(n=ae(e))||void 0===n?void 0:n.getTime())&&void 0!==r?r:0;return(null!==(s=null===(a=ae(t))||void 0===a?void 0:a.getTime())&&void 0!==s?s:0)-i}),ce=null!==(j=null==V?void 0:V.demo_trial)&&void 0!==j?j:null,ue=null!==(T=null==V?void 0:V.registration_form)&&void 0!==T?T:null;return(0,s.jsx)(vl,{mods:b,children:(0,s.jsxs)("div",{className:`events-container ${ee?"list-view":"singular-view"} ${ee?"":null!==(L=null===(A=null==P?void 0:P[0])||void 0===A?void 0:A.class)&&void 0!==L?L:""}`,children:[ne&&(0,s.jsx)(yh,{baseUrl:I,initialData:R,theme:re,featuredNav:W,featuredEvent:ie}),(0,s.jsx)("div",{className:"events-container-content",children:(ee?oe.length>0||ie:P.length>0)?ee?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"events-index",children:[ie&&(0,s.jsx)(jh,{baseUrl:I,event:ie}),(0,s.jsxs)("section",{className:"events-index-section events-index-on-demand",children:[(0,s.jsx)("h2",{className:"events-index-section-title",children:"On-demand events"}),0===le.length?(0,s.jsx)("p",{className:"events-index-empty-state",children:"No on-demand events yet."}):(0,s.jsx)("ul",{className:"events-index-grid",children:le.map(e=>(0,s.jsx)(xh,{baseUrl:I,event:e},e.id))})]})]}),(ce||ue)&&(0,s.jsxs)("div",{className:"events-index-cta-footer",children:[ce&&(0,s.jsx)("div",{className:"events-index-cta-footer-top",children:(0,s.jsx)($d,{baseUrl:I,block:ce})}),ue&&(0,s.jsx)("div",{className:"events-index-cta-footer-bottom",children:(0,s.jsx)(Jd,{baseUrl:I,block:ue})})]})]}):(0,s.jsx)(s.Fragment,{children:P.map(e=>(0,s.jsx)(Nh,{baseUrl:I,event:e,header:kh(e)?R:void 0,featuredNav:W,featuredEvent:ie,routeExcludesHeader:c,gated:J,currentPath:l},e.id))}):(0,s.jsx)("div",{className:"events-container-placeholder",children:(0,s.jsx)("p",{children:"No events found!"})})}),F&&!u&&(0,s.jsx)(Ah,{baseUrl:I,initialData:F})]})})},FaqsContainer:({baseUrl:e,slug:t,initialData:r,unfurledDocumentIds:a})=>
2{const i=E(e),o=g()?"published":"draft",[l,c]=(0,n.useState)(null!=r?r:[]),[u,d]=(0,n.useState)(void 0===r),[h,f]=(0,n.useState)(null),v=C(u);return(0,n.useEffect)(()=>{var e,n,a,s;void 0===r&&(e=void 0,n=void 0,s=function*(){try{d(!0),f(null);const e=null!=t?t:S.getSlug("faqs",p(),m()),n=yield Oh.fetchFaqs({baseUrl:i,status:o,slug:e},fetch);c(n.data.data)}catch(e){f(e instanceof Error?e.message:"Failed to fetch FAQs"),console.error("Error fetching FAQs (container):",e)}finally{d(!1)}},new((a=void 0)||(a=Promise))(function(t,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(e){e.done?t(e.value):function(e){return e instanceof a?e:new a(function(t){t(e)})}(e.value).then(i,o)}l((s=s.apply(e,n||[])).next())}))},[i,o,t,r]),u?(0,s.jsx)("div",{className:"faqs-container",children:(0,s.jsx)("div",{className:"faqs-container-content",children:(0,s.jsx)("div",{className:"faqs-container-loading",children:v&&(0,s.jsx)("div",{className:"spinner"})})})}):h?(0,s.jsxs)("div",{className:"faqs-container",children:[(0,s.jsx)("div",{className:"faqs-container-header",children:(0,s.jsx)("h1",{className:"faqs-container-title",children:"Sorry! Something went wrong."})}),(0,s.jsx)("div",{className:"faqs-container-content",children:(0,s.jsx)("div",{className:"faqs-container-error",children:(0,s.jsxs)("p",{children:["Error: ",h]})})})]}):(0,s.jsx)("div",{className:"faqs-container",children:(0,s.jsx)("div",{className:"faqs-container-content",children:l.length>0?l.map(e=>(0,s.jsx)(Ph,{baseUrl:i,faq:e,unfurledDocumentIds:a},e.id)):(0,s.jsx)("div",{className:"faqs-container-placeholder",children:(0,s.jsx)("p",{children:"No FAQs found!"})})})})},MotionappPageContainer:({baseUrl:e,initialData:t=null,header:n=null,footer:r=null,featuredNav:a=null,featuredEvent:i=null,routeExcludesHeader:o=!1,routeExcludesFooter:l=!1,routeMods:c=null})=>{var u;const d=E(e),h=null!==(u=null==t?void 0:t.blocks)&&void 0!==u?u:[],p=!o&&!1!==(null==t?void 0:t.show_header)&&!!n,m=!l&&!1!==(null==t?void 0:t.show_footer)&&!!r;return(0,s.jsx)(vl,{mods:c,children:(0,s.jsxs)("div",{className:"motionapp-page"+((null==t?void 0:t.class)?` ${t.class}`:""),children:[p&&(0,s.jsx)(yh,{baseUrl:d,initialData:null!=n?n:void 0,featuredNav:a,featuredEvent:i,theme:"black"}),(0,s.jsx)("main",{className:"mpage-main",children:(0,s.jsx)(Kw,{baseUrl:d,blocks:h})}),m&&(0,s.jsx)(Ah,{baseUrl:d,initialData:null!=r?r:void 0})]})})},NavigationFooter:Ah,NavigationHeader:yh,ReportsContainer:({baseUrl:e,gated:t=!1,slug:r,initialData:a,header:i,featuredNav:o,routeExcludesHeader:l=!1,routeMods:c=null})=>{var u,d,h,f,v,b;
2const y=E(e),x=g()?"published":"draft",[w,_]=(0,n.useState)(null!=a?a:[]),[k,N]=(0,n.useState)(void 0===a),[j,T]=(0,n.useState)(null),A=C(k),L=g()?"thumbstop-pulse":"reports",I=null!=r?r:S.getSlug(L,p(),m());if((0,n.useEffect)(()=>{var e,t,n,r;void 0===a&&(e=void 0,t=void 0,r=function*(){try{N(!0),T(null);const e=yield ih.fetchReports({baseUrl:y,status:x,slug:I||void 0},fetch);_(e.data.data)}catch(e){T(e instanceof Error?e.message:"Failed to fetch reports"),console.error("Error fetching reports:",e)}finally{N(!1)}},new((n=void 0)||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?a(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,o)}l((r=r.apply(e,t||[])).next())}))},[y,x,r,a,I]),k)return(0,s.jsx)("div",{className:"reports-container",children:(0,s.jsx)("div",{className:"reports-container-content",children:(0,s.jsx)("div",{className:"reports-container-loading",children:A&&(0,s.jsx)("div",{className:"spinner"})})})});if(j)return(0,s.jsxs)("div",{className:"reports-container",children:[(0,s.jsx)("div",{className:"reports-container-header",children:(0,s.jsx)("h1",{className:"reports-container-title",children:"Sorry! Something went wrong."})}),(0,s.jsx)("div",{className:"reports-container-content",children:(0,s.jsx)("div",{className:"reports-container-error",children:(0,s.jsxs)("p",{children:["Error: ",j]})})})]});const M=!(null==I?void 0:I.length),P=!l&&!!i,O=null!==(f=null===(h=null===(d=null===(u=w[0])||void 0===u?void 0:u.mods)||void 0===d?void 0:d.template)||void 0===h?void 0:h.headerTheme)&&void 0!==f?f:void 0;return(0,s.jsx)(vl,{mods:c,children:(0,s.jsxs)("div",{className:`reports-container ${M?"list-view":"singular-view"} ${M?"":null!==(b=null===(v=null==w?void 0:w[0])||void 0===v?void 0:v.class)&&void 0!==b?b:""}`,children:[P&&(0,s.jsx)(yh,{baseUrl:y,initialData:i,theme:O,featuredNav:o}),(0,s.jsx)("div",{className:"reports-container-content",children:w.length>0?M?(0,s.jsx)("ul",{className:"reports-list",children:w.map(e=>(0,s.jsx)("li",{className:"reports-list-item",children:(0,s.jsx)(fm,{to:`/reports/${e.slug}`,className:"reports-list-link",children:e.title||e.slug})},e.id))}):w.map(e=>(0,s.jsx)(xx,{baseUrl:y,report:e,gated:t},e.id)):(0,s.jsx)("div",{className:"reports-container-placeholder",children:(0,s.jsx)("p",{children:"No reports found!"})})})]})})},RunnethHomepageContainer:({baseUrl:e,initialData:t,header:r,footer:a,routeMods:i=null})=>{var o,l;const c=E(e),u=g()?"published":"draft",[d,h]=(0,n.useState)(null!=t?t:null),[p,m]=(0,n.use
2State)(null!=r?r:null),[f,v]=(0,n.useState)(null!==(o=a)&&void 0!==o?o:null),[b,y]=(0,n.useState)(void 0===t);(0,n.useEffect)(()=>{if(void 0!==t)return;let e=!1;return n=void 0,r=void 0,s=function*(){try{y(!0);const[t,n,r]=yield Promise.all([Vw.fetchHomepage({baseUrl:c,status:u},fetch),Vw.fetchHeader({baseUrl:c,status:u},fetch),Vw.fetchFooter({baseUrl:c,status:u},fetch)]);if(e)return;h(t.data.data),m(n.data.data),v(r.data.data)}catch(e){console.error("RunnethHomepageContainer: failed to fetch content",e)}finally{e||y(!1)}},new((a=void 0)||(a=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):function(e){return e instanceof a?e:new a(function(t){t(e)})}(t.value).then(i,o)}l((s=s.apply(n,r||[])).next())}),()=>{e=!0};var n,r,a,s},[c,u,t]);const x=null!==(l=null==d?void 0:d.blocks)&&void 0!==l?l:[],w=x.some(e=>{var t;return"shared.animation"===e.__component&&"froggy"===(null===(t=e.animation)||void 0===t?void 0:t.name)}),_=!1!==(null==d?void 0:d.show_header);return(0,s.jsx)(vl,{mods:i,children:(0,s.jsxs)("div",{className:"runneth-site"+(w?" has-froggy-header":""),children:[_&&p&&(0,s.jsx)(Bw,{header:p,baseUrl:c}),(0,s.jsx)("main",{className:"runneth-main",children:b&&0===x.length?(0,s.jsx)("div",{className:"runneth-loading","aria-hidden":"true"}):(0,s.jsx)(Uw,{baseUrl:c,blocks:x})}),f&&(0,s.jsx)(Ww,{footer:f,baseUrl:c})]})})},SharedButton:fo},Q_=new Map;function X_(e,t,r){var s;const i=document.getElementById(e);if(!i)return void console.warn(`Island ${e} not found`);const o=i.shadowRoot;if(!o)return void console.warn(`Shadow root not found for island ${e}`);let l=o.querySelector('[data-root="true"]');if(!l){const e=[];Array.from(o.childNodes).forEach(t=>{var n;if(t.nodeType===Node.ELEMENT_NODE){const n=t;"STYLE"!==n.tagName&&"true"!==n.getAttribute("data-root")&&e.push(t)}else t.nodeType===Node.TEXT_NODE&&(null===(n=t.textContent)||void 0===n?void 0:n.trim())&&e.push(t)}),l=document.createElement("div"),l.setAttribute("data-root","true"),l.style.display="contents",e.length>0&&e.forEach(e=>{l.appendChild(e)});const t=o.querySelector("style");t?o.insertBefore(l,t):o.appendChild(l)}const c=K_[t];if(!c)return void console.warn(`Component ${t} not found`);const u=Q_.get(e);if(u)u.render(n.createElement(c,r));else if(l.children.length>0||(null===(s=l.textContent)||void 0===s?void 0:s.trim())&&l.textContent.trim().length>0)try{const t=(0,a.hydrateRoot)(l,n.createElement(c,r));Q_.set(e,t)}catch(t){console.error(`Hydration error for island ${e}, falling back to createRoot:`,t),t instanceof Error&&console.error("Error stack:",t.stack);const s=(0,a.createRoot)(l);s.render(n.createElement(c,r)),Q_.set(e,s)}else{const t=(0,a.createRoot)(l);t.render(n.createElement(c,r)),Q_.set(e,t)}}function J_(){document.querySelectorAll('[data-ssr-root="true"]').forEach(e=>{var t,r;const s=e.getAttribute("data-component"),i=e.getAttribute("data-props");if(!s)return void console.warn("SSR root missing data-component attribute",e);const o=K_[s];if(!o)return void console.warn(`SSR root component "${s}" not found in component map`);let l={};if(i)try{l=JSON.parse(i)}catch(e){return void console.error("Failed to parse SSR root props:",e)}const c=e.id||s;if(Q_.has(c))return void Q_.get(c).render(n.createElement(o,l));const u=e.children.length>0||(null!==(r=null===(t=e.textContent)||void 0===t?void 0:t.trim())&&void 0!==r?r:"").length>0;try{const t=u?(0,a.hydrateRoot)(e,n.createElement(o,l)):(()=>{const t=(0,a.createRoot)(e);return t.render(n.createElement(o,l)),t})();Q_.set(c,t)}catch(t){console.error(`Hydration error for SSR root "${c}", falling back to createRoot:`,t);const r=(0,a.createRoot)(e);r.render(n.createElement(o,l)),Q_.set(c,r)}})}function Z_(){document.querySelectorAll("codely-island").forEach(e=>{const t=e.id;if(!t)return void console.warn("Island missing id attribute");const n=e.getAttribute("data-component"),r=e.getAttribute("data-props");if(!n)return void console.warn(`Island ${t} missing data-component attribute`);let a={};if(r)try{a=JSON.parse(r)}catch(e){return void console.error(`Failed to parse props for island ${t}:`,e)}X_(t,n,a)})}function ek(){J_(),Z_()}"undefined"!=typeof document&&"undefined"!=typeof window&&(window.__MotionComponentsHydrated||(window.__MotionComponentsHydrated=!0,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ek):setTimeout(ek,0)))})(),o})());

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.