PageSourceSearch

https://www.uplaud.ai/static/js/main.2e954da1.js

js uplaud.ai collected 2026-10-05 13:55:12 UTC 1,231,357 bytes, 3 lines download raw bytes

1/*! For license information please see main.2e954da1.js.LICENSE.txt */
2(()=>{var e={224(e,t,n){"use strict";var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>ai,hasStandardBrowserEnv:()=>ii,hasStandardBrowserWebWorkerEnv:()=>oi,navigator:()=>si,origin:()=>li});var a={};n.r(a),n.d(a,{boolean:()=>ud,booleanish:()=>cd,commaOrSpaceSeparated:()=>md,commaSeparated:()=>pd,number:()=>hd,overloadedBoolean:()=>dd,spaceSeparated:()=>fd});var s={};n.r(s),n.d(s,{attentionMarkers:()=>Gf,contentInitial:()=>zf,disable:()=>$f,document:()=>Mf,flow:()=>qf,flowInitial:()=>Uf,insideSpan:()=>Vf,string:()=>Wf,text:()=>Hf});var i=n(43),o=n.t(i,2),l=n(391);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function d(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,n){p(e,t),t.set(e,n)}function x(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function g(e,t){return e.get(x(e,t))}function v(e,t,n){return e.set(x(e,t),n),n}var b="undefined"===typeof window||"Deno"in globalThis;function y(){}function D(e,t){return"function"===typeof e?e(t):e}function w(e,t){const n=e.type,r=void 0===n?"all":n,a=e.exact,s=e.fetchStatus,i=e.predicate,o=e.queryKey,l=e.stale;if(o)if(a){if(t.queryHash!==j(o,t.options))return!1}else if(!E(t.queryKey,o))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!==typeof l||t.isStale()===l)&&((!s||s===t.state.fetchStatus)&&!(i&&!i(t)))}function k(e,t){const n=e.exact,r=e.status,a=e.predicate,s=e.mutationKey;if(s){if(!t.options.mutationKey)return!1;if(n){if(C(t.options.mutationKey)!==C(s))return!1}else if(!E(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&!(a&&!a(t))}function j(e,t){return((null===t||void 0===t?void 0:t.queryKeyHashFn)||C)(e)}function C(e){return JSON.stringify(e,(e,t)=>A(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function E(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some(n=>!E(e[n],t[n])))}function F(e,t){if(e===t)return e;const n=N(e)&&N(t);if(n||A(e)&&A(t)){const r=n?e:Object.keys(e),a=r.length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let l=0;for(let u=0;u<i;u++){const a=n?u:s[u];(!n&&r.includes(a)||n)&&void 0===e[a]&&void 0===t[a]?(o[a]=void 0,l++):(o[a]=F(e[a],t[a]),o[a]===e[a]&&void 0!==e[a]&&l++)}return a===i&&l===a?e:o}return t}function N(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function A(e){if(!S(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!S(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function S(e){return"[object Object]"===Object.prototype.toString.call(e)}function _(e,t,n){return"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?F(e,t):t}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[...e,t];return n&&r.length>n?r.slice(1):r}function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var R=Symbol();function P(e,t){return!e.queryFn&&null!==t&&void 0!==t&&t.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==R?e.queryFn:()=>Promise.reject(new Error("Missing queryFn: '".concat(e.queryHash,"'")))}function O(e,t){p(e,t),t.add(e)}var L,I,M,z,U,q,W=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},a=e=>setTimeout(e,0);const s=r=>{t?e.push(r):a(()=>{n(r)})};return{batch:s=>{let i;t++;try{i=s()}finally{t--,t||(()=>{const t=e;e=[],t.length&&a(()=>{r(()=>
2{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];s(()=>{e(...n)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{a=e}}}(),H=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},V=new(L=new WeakMap,I=new WeakMap,M=new WeakMap,class extends H{constructor(){super(),m(this,L,void 0),m(this,I,void 0),m(this,M,void 0),v(M,this,e=>{if(!b&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){g(I,this)||this.setEventListener(g(M,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=g(I,this))||void 0===e||e.call(this),v(I,this,void 0))}setEventListener(e){var t;v(M,this,e),null===(t=g(I,this))||void 0===t||t.call(this),v(I,this,e(e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){g(L,this)!==e&&(v(L,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return"boolean"===typeof g(L,this)?g(L,this):"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}}),G=new(z=new WeakMap,U=new WeakMap,q=new WeakMap,class extends H{constructor(){super(),m(this,z,!0),m(this,U,void 0),m(this,q,void 0),v(q,this,e=>{if(!b&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){g(U,this)||this.setEventListener(g(q,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=g(U,this))||void 0===e||e.call(this),v(U,this,void 0))}setEventListener(e){var t;v(q,this,e),null===(t=g(U,this))||void 0===t||t.call(this),v(U,this,e(this.setOnline.bind(this)))}setOnline(e){g(z,this)!==e&&(v(z,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return g(z,this)}});function $(e){return Math.min(1e3*2**e,3e4)}function K(e){return"online"!==(null!==e&&void 0!==e?e:"online")||G.isOnline()}var Q,Y=class extends Error{constructor(e){super("CancelledError"),this.revert=null===e||void 0===e?void 0:e.revert,this.silent=null===e||void 0===e?void 0:e.silent}};function J(e){return e instanceof Y}function X(e){let t,n,r,a=!1,s=0,i=!1;const o=new Promise((e,t)=>{n=e,r=t}),l=()=>V.isFocused()&&("always"===e.networkMode||G.isOnline())&&e.canRun(),u=()=>K(e.networkMode)&&e.canRun(),c=r=>{var a,s;i||(i=!0,null===(a=e.onSuccess)||void 0===a||a.call(e,r),null===(s=t)||void 0===s||s(),n(r))},d=n=>{var a,s;i||(i=!0,null===(a=e.onError)||void 0===a||a.call(e,n),null===(s=t)||void 0===s||s(),r(n))},h=()=>new Promise(n=>{var r;t=e=>{(i||l())&&n(e)},null===(r=e.onPause)||void 0===r||r.call(e)}).then(()=>{var n;(t=void 0,i)||(null===(n=e.onContinue)||void 0===n||n.call(e))}),f=()=>{if(i)return;let t;const n=0===s?e.initialPromise:void 0;try{t=null!==n&&void 0!==n?n:e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(c).catch(t=>{var n,r,o;if(i)return;const u=null!==(n=e.retry)&&void 0!==n?n:b?0:3,c=null!==(r=e.retryDelay)&&void 0!==r?r:$,p="function"===typeof c?c(s,t):c,m=!0===u||"number"===typeof u&&s<u||"function"===typeof u&&u(s,t);var x;!a&&m?(s++,null===(o=e.onFail)||void 0===o||o.call(e,s,t),(x=p,new Promise(e=>{setTimeout(e,x)})).then(()=>l()?void 0:h()).then(()=>{a?d(t):f()})):d(t)})};return{promise:o,cancel:t=>{var n;i||(d(new Y(t)),null===(n=e.abort)||void 0===n||n.call(e))},continue:()=>{var e;return null===(e=t)||void 0===e||e(),o},cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1},canStart:u,start:()=>(u()?f():h().then(f),o)}}var Z,ee,te,ne,re,ae,se,ie,oe=(Q=new WeakMap,class{constructor(){m(this,Q,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"===typeof(e=this.gcTime)&&e>=0&&e!==1/0&&v(Q,this,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!==e&&void 0!==e?e:b?1/0:3e5)}clearGcTimeout(){g(Q,this)&&(clearTimeout(g(Q,this)),v(Q,this,void 0))}}),le=(Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=new WeakMap,ae=new WeakMap,se=new WeakSet,class extends oe{constructor(e){var t;super(),O(this,se),m(this,Z,void 0),m(this,ee,void 0),m(this,te,void 0),m(this,ne,void 0),m(this,re,void 0),m(this,ae,void 0),v(ae,this,!1),v(re,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],v(te,this,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,v(Z,this,function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!==r&&void 0!==r?r:Date.now():0,error:null,errorUpdate
2Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=null!==(t=e.state)&&void 0!==t?t:g(Z,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null===(e=g(ne,this))||void 0===e?void 0:e.promise}setOptions(e){this.options=f(f({},g(re,this)),e),this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||g(te,this).remove(this)}setData(e,t){const n=_(this.state.data,e,this.options);return x(se,this,ue).call(this,{data:n,type:"success",dataUpdatedAt:null===t||void 0===t?void 0:t.updatedAt,manual:null===t||void 0===t?void 0:t.manual}),n}setState(e,t){x(se,this,ue).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null===(t=g(ne,this))||void 0===t?void 0:t.promise;return null===(n=g(ne,this))||void 0===n||n.cancel(e),r?r.then(y).catch(y):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(g(Z,this))}isActive(){return this.observers.some(e=>{return!1!==(t=e.options.enabled,n=this,"function"===typeof t?t(n):t);var t,n})}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||void 0===this.state.data||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=g(ne,this))||void 0===e||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=g(ne,this))||void 0===e||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),g(te,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(g(ne,this)&&(g(ae,this)?g(ne,this).cancel({revert:!0}):g(ne,this).cancelRetry()),this.scheduleGc()),g(te,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||x(se,this,ue).call(this,{type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&null!==t&&void 0!==t&&t.cancelRefetch)this.cancel({silent:!0});else if(g(ne,this))return g(ne,this).continueRetry(),g(ne,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const a=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(v(ae,this,!0),a.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=P(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return s(n),v(ae,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};var o;(s(i),null===(n=this.options.behavior)||void 0===n||n.onFetch(i,this),v(ee,this,this.state),"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(r=i.fetchOptions)||void 0===r?void 0:r.meta))&&x(se,this,ue).call(this,{type:"fetch",meta:null===(o=i.fetchOptions)||void 0===o?void 0:o.meta});const l=e=>{var t,n,r,a;(J(e)&&e.silent||x(se,this,ue).call(this,{type:"error",error:e}),J(e))||(null===(t=(n=g(te,this).config).onError)||void 0===t||t.call(n,e,this),null===(r=(a=g(te,this).config).onSettled)||void 0===r||r.call(a,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return v(ne,this,X({initialPromise:null===t||void 0===t?void 0:t.initialPromise,fn:i.fetchFn,abort:a.abort.bind(a),onSuccess:e=>{var t,n,r,a;if(void 0!==e){try{this.setData(e)}catch(s){return void l(s)}null===(t=(n=g(te,this).config).onSuccess)||void 0===t||t.call(n,e,this),null===(r=(a=g(te,this).config).onSettled)||void 0===r||r.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else l(new Error("".concat(this.queryHash," data is undefined")))},onError:l,onFail:(e,t)=>{x(se,this,ue).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{x(se,this,ue).call(this,{type:"pause"})},onContinue:()=>{x(se,this,ue).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),g(ne,this).start()}});function ue(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return f(f({},t),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return f(f({},t),{},{fetchStatus:"paused"});case"continue":return f(f({},t),{},{fetchStatus:"fetching"});case"fetch":return f(f(f({},t),function(e,t){return f({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:K(t.networkMode)?"fetching":"paused"},void 0===e&&{error:null,status:"pending"})}(t.data,this.options)),{},{fetchMeta:null!==(n=e.meta)&&void 0!==n?n:null});case"success":return f(f({},t),{},{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!==(r=e.dataUpdatedAt)&&void 0!==r?r:Date.now(),error:null,isInvalidated:!1,status:"success"},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const a=e.error;return J(a)&&a.revert&&g(ee,this)?f(f({},g(ee,this)),{},{fetchStatus:"idle"}):f(f({},t),{}
2,{error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"});case"invalidate":return f(f({},t),{},{isInvalidated:!0});case"setState":return f(f({},t),e.state)}})(this.state),W.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),g(te,this).notify({query:this,type:"updated",action:e})})}var ce,de,he,fe,pe,me,xe=(ie=new WeakMap,class extends H{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),m(this,ie,void 0),this.config=e,v(ie,this,new Map)}build(e,t,n){var r;const a=t.queryKey,s=null!==(r=t.queryHash)&&void 0!==r?r:j(a,t);let i=this.get(s);return i||(i=new le({cache:this,queryKey:a,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(i)),i}add(e){g(ie,this).has(e.queryHash)||(g(ie,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=g(ie,this).get(e.queryHash);t&&(e.destroy(),t===e&&g(ie,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){W.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return g(ie,this).get(e)}getAll(){return[...g(ie,this).values()]}find(e){const t=f({exact:!0},e);return this.getAll().find(e=>w(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>w(e,t)):t}notify(e){W.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){W.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){W.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),ge=(ce=new WeakMap,de=new WeakMap,he=new WeakMap,fe=new WeakSet,class extends oe{constructor(e){super(),O(this,fe),m(this,ce,void 0),m(this,de,void 0),m(this,he,void 0),this.mutationId=e.mutationId,v(de,this,e.mutationCache),v(ce,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){g(ce,this).includes(e)||(g(ce,this).push(e),this.clearGcTimeout(),g(de,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){v(ce,this,g(ce,this).filter(t=>t!==e)),this.scheduleGc(),g(de,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){g(ce,this).length||("pending"===this.state.status?this.scheduleGc():g(de,this).remove(this))}continue(){var e,t;return null!==(e=null===(t=g(he,this))||void 0===t?void 0:t.continue())&&void 0!==e?e:this.execute(this.state.variables)}async execute(e){var t;v(he,this,X({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{x(fe,this,ve).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{x(fe,this,ve).call(this,{type:"pause"})},onContinue:()=>{x(fe,this,ve).call(this,{type:"continue"})},retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>g(de,this).canRun(this)}));const n="pending"===this.state.status,r=!g(he,this).canStart();try{var a,s,i,o,l,u,c,d;if(!n){var h,f,p,m;x(fe,this,ve).call(this,{type:"pending",variables:e,isPaused:r}),await(null===(h=(f=g(de,this).config).onMutate)||void 0===h?void 0:h.call(f,e,this));const t=await(null===(p=(m=this.options).onMutate)||void 0===p?void 0:p.call(m,e));t!==this.state.context&&x(fe,this,ve).call(this,{type:"pending",context:t,variables:e,isPaused:r})}const t=await g(he,this).start();return await(null===(a=(s=g(de,this).config).onSuccess)||void 0===a?void 0:a.call(s,t,e,this.state.context,this)),await(null===(i=(o=this.options).onSuccess)||void 0===i?void 0:i.call(o,t,e,this.state.context)),await(null===(l=(u=g(de,this).config).onSettled)||void 0===l?void 0:l.call(u,t,null,this.state.variables,this.state.context,this)),await(null===(c=(d=this.options).onSettled)||void 0===c?void 0:c.call(
2d,t,null,e,this.state.context)),x(fe,this,ve).call(this,{type:"success",data:t}),t}catch(F){try{var b,y,D,w,k,j,C,E;throw await(null===(b=(y=g(de,this).config).onError)||void 0===b?void 0:b.call(y,F,e,this.state.context,this)),await(null===(D=(w=this.options).onError)||void 0===D?void 0:D.call(w,F,e,this.state.context)),await(null===(k=(j=g(de,this).config).onSettled)||void 0===k?void 0:k.call(j,void 0,F,this.state.variables,this.state.context,this)),await(null===(C=(E=this.options).onSettled)||void 0===C?void 0:C.call(E,void 0,F,e,this.state.context)),F}finally{x(fe,this,ve).call(this,{type:"error",error:F})}}finally{g(de,this).runNext(this)}}});function ve(e){this.state=(t=>{switch(e.type){case"failed":return f(f({},t),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return f(f({},t),{},{isPaused:!0});case"continue":return f(f({},t),{},{isPaused:!1});case"pending":return f(f({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return f(f({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return f(f({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),W.batch(()=>{g(ce,this).forEach(t=>{t.onMutationUpdate(e)}),g(de,this).notify({mutation:this,type:"updated",action:e})})}var be,ye,De,we,ke,je,Ce,Ee,Fe=(pe=new WeakMap,me=new WeakMap,class extends H{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),m(this,pe,void 0),m(this,me,void 0),this.config=e,v(pe,this,new Map),v(me,this,Date.now())}build(e,t,n){var r;const a=new ge({mutationCache:this,mutationId:v(me,this,(r=g(me,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){var t;const n=Ne(e),r=null!==(t=g(pe,this).get(n))&&void 0!==t?t:[];r.push(e),g(pe,this).set(n,r),this.notify({type:"added",mutation:e})}remove(e){const t=Ne(e);if(g(pe,this).has(t)){var n;const r=null===(n=g(pe,this).get(t))||void 0===n?void 0:n.filter(t=>t!==e);r&&(0===r.length?g(pe,this).delete(t):g(pe,this).set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null===(t=g(pe,this).get(Ne(e)))||void 0===t?void 0:t.find(e=>"pending"===e.state.status);return!n||n===e}runNext(e){var t,n;const r=null===(t=g(pe,this).get(Ne(e)))||void 0===t?void 0:t.find(t=>
2t!==e&&t.state.isPaused);return null!==(n=null===r||void 0===r?void 0:r.continue())&&void 0!==n?n:Promise.resolve()}clear(){W.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...g(pe,this).values()].flat()}find(e){const t=f({exact:!0},e);return this.getAll().find(e=>k(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(t=>k(e,t))}notify(e){W.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return W.batch(()=>Promise.all(e.map(e=>e.continue().catch(y))))}});function Ne(e){var t,n;return null!==(t=null===(n=e.options.scope)||void 0===n?void 0:n.id)&&void 0!==t?t:String(e.mutationId)}function Ae(e){return{onFetch:(t,n)=>{var r,a,s;const i=t.options,o=null===(r=t.fetchOptions)||void 0===r||null===(r=r.meta)||void 0===r||null===(r=r.fetchMore)||void 0===r?void 0:r.direction,l=(null===(a=t.state.data)||void 0===a?void 0:a.pages)||[],u=(null===(s=t.state.data)||void 0===s?void 0:s.pageParams)||[];let c={pages:[],pageParams:[]},d=0;const h=async()=>{let n=!1;const r=P(t.options,t.fetchOptions),a=async(e,a,s)=>{if(n)return Promise.reject();if(null==a&&e.pages.length)return Promise.resolve(e);const i={queryKey:t.queryKey,pageParam:a,direction:s?"backward":"forward",meta:t.options.meta};var o;o=i,Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)});const l=await r(i),u=t.options.maxPages,c=s?T:B;return{pages:c(e.pages,l,u),pageParams:c(e.pageParams,a,u)}};if(o&&l.length){const e="backward"===o,t={pages:l,pageParams:u},n=(e?_e:Se)(i,t);c=await a(t,n,e)}else{const t=null!==e&&void 0!==e?e:l.length;do{var s;const e=0===d?null!==(s=u[0])&&void 0!==s?s:i.initialPageParam:Se(i,c);if(d>0&&null==e)break;c=await a(c,e),d++}while(d<t)}return c};t.options.persister?t.fetchFn=()=>{var e,r;return null===(e=(r=t.options).persister)||void 0===e?void 0:e.call(r,h,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function Se(e,t){let n=t.pages,r=t.pageParams;const a=n.length-1;return n.length>0?e.getNextPageParam(n[a],n,r[a],r):void 0}function _e(e,t){var n;let r=t.pages,a=t.pageParams;return r.length>0?null===(n=e.getPreviousPageParam)||void 0===n?void 0:n.call(e,r[0],r,a[0],a):void 0}var Be=(be=new WeakMap,ye=new WeakMap,De=new WeakMap,we=new WeakMap,ke=new WeakMap,je=new WeakMap,Ce=new WeakMap,Ee=new WeakMap,class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this,be,void 0),m(this,ye,void 0),m(this,De,void 0),m(this,we,void 0),m(this,ke,void 0),m(this,je,void 0),m(this,Ce,void 0),m(this,Ee,void 0),v(be,this,e.queryCache||new xe),v(ye,this,e.mutationCache||new Fe),v(De,this,e.defaultOptions||{}),v(we,this,new Map),v(ke,this,new Map),v(je,this,0)}mount(){var e;v(je,this,(e=g(je,this),e++,e)),1===g(je,this)&&(v(Ce,this,V.subscribe(async e=>{e&&(await this.resumePausedMutations(),g(be,this).onFocus())})),v(Ee,this,G.subscribe(async e=>{e&&(await this.resumePausedMutations(),g(be,this).onOnline())})))}unmount(){var e,t,n;v(je,this,(e=g(je,this),e--,e)),0===g(je,this)&&(null===(t=g(Ce,this))||void 0===t||t.call(this),v(Ce,this,void 0),null===(n=g(Ee,this))||void 0===n||n.call(this),v(Ee,this,void 0))}isFetching(e){return g(be,this).findAll(f(f({},e),{},{fetchStatus:"fetching"})).length}isMutating(e){return g(ye,this).findAll(f(f({},e),{},{status:"pending"})).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=g(be,this).get(n.queryHash))||void 0===t?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=g(be,this).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(D(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return g(be,this).findAll(e).map(e=>[e.queryKey,e.state.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=g(be,this).get(r.queryHash),s=function(e,t){return"function"===typeof e?e(t):e}(t,null===a||void 0===a?void 0:a.state.data);if(void 0!==s)return g(be,this).build(this,r).setData(s,f(f({},n),{},{manual:!0}))}
2setQueriesData(e,t,n){return W.batch(()=>g(be,this).findAll(e).map(e=>{let r=e.queryKey;return[r,this.setQueryData(r,t,n)]}))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=g(be,this).get(n.queryHash))||void 0===t?void 0:t.state}removeQueries(e){const t=g(be,this);W.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=g(be,this),r=f({type:"active"},e);return W.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=f({revert:!0},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=W.batch(()=>g(be,this).findAll(e).map(e=>e.cancel(t)));return Promise.all(n).then(y).catch(y)}invalidateQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return W.batch(()=>{var n,r;if(g(be,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();const a=f(f({},e),{},{type:null!==(n=null!==(r=e.refetchType)&&void 0!==r?r:e.type)&&void 0!==n?n:"active"});return this.refetchQueries(a,t)})}refetchQueries(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const r=f(f({},n),{},{cancelRefetch:null===(e=null===n||void 0===n?void 0:n.cancelRefetch)||void 0===e||e}),a=W.batch(()=>g(be,this).findAll(t).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(y)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(a).then(y)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=g(be,this).build(this,t);return n.isStaleByTime(D(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(y).catch(y)}fetchInfiniteQuery(e){return e.behavior=Ae(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(y).catch(y)}ensureInfiniteQueryData(e){return e.behavior=Ae(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return G.isOnline()?g(ye,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return g(be,this)}getMutationCache(){return g(ye,this)}getDefaultOptions(){return g(De,this)}setDefaultOptions(e){v(De,this,e)}setQueryDefaults(e,t){g(we,this).set(C(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...g(we,this).values()];let n={};return t.forEach(t=>{E(e,t.queryKey)&&(n=f(f({},n),t.defaultOptions))}),n}setMutationDefaults(e,t){g(ke,this).set(C(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...g(ke,this).values()];let n={};return t.forEach(t=>{E(e,t.mutationKey)&&(n=f(f({},n),t.defaultOptions))}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=f(f(f(f({},g(De,this).queries),this.getQueryDefaults(e.queryKey)),e),{},{_defaulted:!0});return t.queryHash||(t.queryHash=j(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===R&&(t.enabled=!1),t}defaultMutationOptions(e){return null!==e&&void 0!==e&&e._defaulted?e:f(f(f(f({},g(De,this).mutations),(null===e||void 0===e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{},{_defaulted:!0})}clear(){g(be,this).clear(),g(ye,this).clear()}}),Te=n(579),Re=i.createContext(void 0),Pe=e=>{let t=e.client,n=e.children;return i.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,Te.jsx)(Re.Provider,{value:t,children:n})};function Oe(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ie(e){if(Array.isArray(e))return e}function Me(e,t){if(e){if("string"==typeof e)return Le(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Le(e,t):void 0}}
2function ze(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ue(e){return Ie(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Me(e)||ze()}function qe(e,t){return Ie(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,s,i,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return o}}(e,t)||Me(e,t)||ze()}const We=["sri"],He=["page"],Ve=["page","matches"],Ge=["page","matches"],$e=["onClick","discover","prefetch","relative","reloadDocument","replace","mask","state","target","to","preventScrollReset","viewTransition","defaultShouldRevalidate"],Ke=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Qe=["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition","defaultShouldRevalidate"];var Ye="popstate";function Je(e){return"object"===typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Xe(){return st(function(e,t){var n;let r=null===(n=t.state)||void 0===n?void 0:n.masked,a=r||e.location;return nt("",{pathname:a.pathname,search:a.search,hash:a.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default",r?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"===typeof t?t:rt(t)},null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function Ze(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function et(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function tt(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function nt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return f(f({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?at(t):t),{},{state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:a})}function rt(e){let t=e.pathname,n=void 0===t?"/":t,r=e.search,a=void 0===r?"":r,s=e.hash,i=void 0===s?"":s;return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function at(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 st(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.window,s=void 0===a?document.defaultView:a,i=r.v5Compat,o=void 0!==i&&i,l=s.history,u="POP",c=null,d=h();function h(){return(l.state||{idx:null}).idx}function p(){u="POP";let e=h(),t=null==e?null:e-d;d=e,c&&c({action:u,location:x.location,delta:t})}function m(e){return it(e)}null==d&&(d=0,l.replaceState(f(f({},l.state),{},{idx:d}),""));let x={get action(){return u},get location(){return e(s,l)},listen(e){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(Ye,p),c=e,()=>{s.removeEventListener(Ye,p),c=null}},createHref:e=>t(s,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u="PUSH";let r=Je(e)?e:nt(x.location,e,t);n&&n(r,e),d=h()+1;let a=tt(r,d),i=x.createHref(r.mask||r);try{l.pushState(a,"",i)}catch(f){if(f instanceof DOMException&&"DataCloneError"===f.name)throw f;s.location.assign(i)}o&&c&&c({action:u,location:x.location,delta:1})},replace:function(e,t){u="REPLACE";let r=Je(e)?e:nt(x.location,e,t);n&&n(r,e),d=h();let a=tt(r,d),s=x.createHref(r.mask||r);l.replaceState(a,"",s),o&&c&&c({action:u,location:x.location,delta:0})},go:e=>l.go(e)};return x}function it(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="http://localhost";"undefined"!==typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),Ze(n,"No window.location.(origin|href) available to create URL");let r="string"===typeof e?e:rt(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}new WeakMap;function ot(e,t){return lt(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function lt(e,t,n,r,a){let s=bt(("string"===typeof t?at(t):t).pathname||"/",n);if(null==s)return null;let i=null!==a&&void 0!==a?a:ut(e),o=null,l=vt(s);for(let u=0;null==o&&u<i.length;++u)o=mt(i[u],l,r);return o}function ut(e){let t=ct(e);return function(e){e.sort((e,t)=>
2e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function ct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=function(e,s){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,o=arguments.length>3?arguments[3]:void 0,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;Ze(l.relativePath.startsWith(r),'Absolute route path "'.concat(l.relativePath,'" nested under path "').concat(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 u=Ft([r,l.relativePath]),c=n.concat(l);e.children&&e.children.length>0&&(Ze(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(u,'".')),ct(e.children,t,c,u,i)),(null!=e.path||e.index)&&t.push({path:u,score:pt(u,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!==(n=e.path)&&void 0!==n&&n.includes("?"))for(let r of dt(e.path))s(e,t,!0,r);else s(e,t)}),t}function dt(e){let t=e.split("/");if(0===t.length)return[];let n=Ue(t),r=n[0],a=Le(n).slice(1),s=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===a.length)return s?[i,""]:[i];let o=dt(a.join("/")),l=[];return l.push(...o.map(e=>""===e?i:[i,e].join("/"))),s&&l.push(...o),l.map(t=>e.startsWith("/")&&""===t?"/":t)}var ht=/^:[\w-]+$/,ft=e=>"*"===e;function pt(e,t){let n=e.split("/"),r=n.length;return n.some(ft)&&(r+=-2),t&&(r+=2),n.filter(e=>!ft(e)).reduce((e,t)=>e+(ht.test(t)?3:""===t?1:10),r)}function mt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.routesMeta,a={},s="/",i=[];for(let o=0;o<r.length;++o){let e=r[o],l=o===r.length-1,u="/"===s?t:t.slice(s.length)||"/",c=xt({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},u),d=e.route;if(!c&&l&&n&&!r[r.length-1].route.index&&(c=xt({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},u)),!c)return null;
2Object.assign(a,c.params),i.push({params:a,pathname:Ft([s,c.pathname]),pathnameBase:At(Ft([s,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(s=Ft([s,c.pathnameBase]))}return i}function xt(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let n=qe(gt(e.path,e.caseSensitive,e.end),2),r=n[0],a=n[1],s=t.match(r);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),l=s.slice(1),u=a.reduce((e,t,n)=>{let r=t.paramName,a=t.isOptional;if("*"===r){let e=l[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[n];return e[r]=a&&!s?void 0:(s||"").replace(/%2F/g,"/"),e},{});return{params:u,pathname:i,pathnameBase:o,pattern:e}}function gt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];et("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(e.replace(/\*$/,"/*"),'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,s)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=s.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).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]}function vt(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return et(!1,'The URL path "'.concat(e,'" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function bt(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 yt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Dt(e,t){let n=Nt(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function wt(e,t,n,r){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(r),"].  Please separate it out to the `to.").concat(n,'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.')}function kt(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function jt(e){let t=kt(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ct(e,t,n){let r,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?r=at(e):(r=f({},e),Ze(!r.pathname||!r.pathname.includes("?"),wt("?","pathname","search",r)),Ze(!r.pathname||!r.pathname.includes("#"),wt("#","pathname","hash",r)),Ze(!r.search||!r.search.includes("#"),wt("#","search","hash",r)));let s,i=""===e||""===r.pathname,o=i?"/":r.pathname;if(null==o)s=n;else{let e=t.length-1;if(!a&&o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}s=e>=0?t[e]:"/"}let l=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",r="string"===typeof e?at(e):e,a=r.pathname,s=r.search,i=void 0===s?"":s,o=r.hash,l=void 0===o?"":o;return a?(a=Et(a),t=a.startsWith("/")?Dt(a.substring(1),"/"):Dt(a,n)):t=n,{pathname:t,search:St(i),hash:_t(l)}}(r,s),u=o&&"/"!==o&&o.endsWith("/"),c=(i||"."===o)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}var Et=e=>e.replace(/\/\/+/g,"/"),Ft=e=>Et(e.join("/")),Nt=e=>e.replace(/\/+$/,""),At=e=>Nt(e).replace(/^\/*/,"/"),St=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",_t=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Bt=class{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Tt(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}function Rt(e){let t=e.map(e=>
2e.route.path).filter(Boolean);return Ft(t)||"/"}var Pt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function Ot(e,t){let n=e;if("string"!==typeof n||!yt.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Pt)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),s=bt(r.pathname,t);r.origin===e.origin&&null!=s?n=s+r.search+r.hash:a=!0}catch(s){et(!1,'<Link to="'.concat(n,'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.'))}return{absoluteURL:r,isExternal:a,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Lt=["POST","PUT","PATCH","DELETE"],It=(new Set(Lt),["GET",...Lt]);new Set(It),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var Mt=i.createContext(null);Mt.displayName="DataRouter";var zt=i.createContext(null);zt.displayName="DataRouterState";var Ut=i.createContext(!1);function qt(){return i.useContext(Ut)}var Wt=i.createContext({isTransitioning:!1});Wt.displayName="ViewTransition";var Ht=i.createContext(new Map);Ht.displayName="Fetchers";var Vt=i.createContext(null);Vt.displayName="Await";var Gt=i.createContext(null);Gt.displayName="Navigation";var $t=i.createContext(null);$t.displayName="Location";var Kt=i.createContext({outlet:null,matches:[],isDataRoute:!1});Kt.displayName="Route";var Qt=i.createContext(null);Qt.displayName="RouteError";var Yt="REACT_ROUTER_ERROR";function Jt(){return null!=i.useContext($t)}function Xt(){return Ze(Jt(),"useLocation() may be used only in the context of a <Router> component."),i.useContext($t).location}var Zt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function en(e){i.useContext(Gt).static||i.useLayoutEffect(e)}function tn(){return i.useContext(Kt).isDataRoute?function(){let e=mn("useNavigate").router,t=gn("useNavigate"),n=i.useRef(!1);en(()=>{n.current=!0});let r=i.useCallback(async function(r){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};et(n.current,Zt),n.current&&("number"===typeof r?await e.navigate(r):await e.navigate(r,f({fromRouteId:t},a)))},[e,t]);return r}():function(){Ze(Jt(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(Mt),t=i.useContext(Gt),n=t.basename,r=t.navigator,a=i.useContext(Kt).matches,s=Xt().pathname,o=JSON.stringify(jt(a)),l=i.useRef(!1);en(()=>{l.current=!0});let u=i.useCallback(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(et(l.current,Zt),!l.current)return;if("number"===typeof t)return void r.go(t);let i=Ct(t,JSON.parse(o),s,"path"===a.relative);null==e&&"/"!==n&&(i.pathname="/"===i.pathname?n:Ft([n,i.pathname])),(a.replace?r.replace:r.push)(i,a.state,a)},[n,r,o,s,e]);return u}()}var nn=i.createContext(null);function rn(){var e;let t=i.useContext(Kt).matches,n=t[t.length-1];return null!==(e=null===n||void 0===n?void 0:n.params)&&void 0!==e?e:{}}function an(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative,n=i.useContext(Kt).matches,r=Xt().pathname,a=JSON.stringify(jt(n));return i.useMemo(()=>Ct(e,JSON.parse(a),r,"path"===t),[e,a,r,t])}function sn(e,t,n){Ze(Jt(),"useRoutes() may be used only in the context of a <Router> component.");let r=i.useContext(Gt).navigator,a=i.useContext(Kt).matches,s=a[a.length-1],o=s?s.params:{},l=s?s.pathname:"/",u=s?s.pathnameBase:"/",c=s&&s.route;{let e=c&&c.path||"";yn(l,!c||e.endsWith("*")||e.endsWith("*?"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'.concat(l,'" (under <Route path="').concat(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="').concat(e,'"> to <Route path="').concat("/"===e?"*":"".concat(e,"/*"),'">.'))}let d,h=Xt();if(t){var p;let e="string"===typeof t?at(t):t;Ze("/"===u||(null===(p=e.pathname)||void 0===p?void 0:p.startsWith(u)),'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 "'.concat(u,'" but pathname "').concat(e.pathname,'" was given in the `location` prop.')),d=e}else d=h;let m=d.pathname||"/",x=m;if("/"!==u){let e=u.replace(/^\//,"").split("/");x="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):ot(e,{pathname:x});et(c||null!=g,'No routes matched location "'.concat(d.pathname).concat(d.search).concat(d.hash,'" ')),et(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 "'.concat(d.pathname).concat(d.search).concat(d.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 v=fn(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ft([u,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Ft([u,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),a,n);return t&&v?i.createElement($t.Provider,{value:{location:f({pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0},d),navigationType:"POP"}},v):v}function on(){let e=vn(),t=Tt(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=i.createElement(i.Fragment,null,i.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:s},"ErrorBoundary")," or"," ",i.createElement("code",{style:s},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application 
2Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:a},n):null,o)}var ln=i.createElement(on,null),un=class extends i.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(){let e=this.state.error;if(this.context&&"object"===typeof e&&e&&"digest"in e&&"string"===typeof e.digest){const t=function(e){if(e.startsWith("".concat(Yt,":").concat("ROUTE_ERROR_RESPONSE",":{")))try{let t=JSON.parse(e.slice(40));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText)return new Bt(t.status,t.statusText,t.data)}catch(t){}}(e.digest);t&&(e=t)}let t=void 0!==e?i.createElement(Kt.Provider,{value:this.props.routeContext},i.createElement(Qt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(dn,{error:e},t):t}};un.contextType=Ut;var cn=new WeakMap;function dn(e){let t=e.children,n=e.error,r=i.useContext(Gt).basename;if("object"===typeof n&&n&&"digest"in n&&"string"===typeof n.digest){let e=function(e){if(e.startsWith("".concat(Yt,":").concat("REDIRECT",":{")))try{let t=JSON.parse(e.slice(28));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText&&"string"===typeof t.location&&"boolean"===typeof t.reloadDocument&&"boolean"===typeof t.replace)return t}catch(t){}}(n.digest);if(e){let t=cn.get(n);if(t)throw t;let a=Ot(e.location,r);if(Pt&&!cn.get(n)){if(!a.isExternal&&!e.reloadDocument){const t=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw cn.set(n,t),t}window.location.href=a.absoluteURL||a.to}return i.createElement("meta",{httpEquiv:"refresh",content:"0;url=".concat(a.absoluteURL||a.to)})}}return t}function hn(e){let t=e.routeContext,n=e.match,r=e.children,a=i.useContext(Mt);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(Kt.Provider,{value:t},r)}function fn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=null===n||void 0===n?void 0:n.state;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 a=e,s=null===r||void 0===r?void 0:r.errors;if(null!=s){let e=a.findIndex(e=>e.route.id&&void 0!==(null===s||void 0===s?void 0:s[e.route.id]));Ze(e>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(s).join(","))),a=a.slice(0,Math.min(a.length,e+1))}let o=!1,l=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let e=r.loaderData,s=r.errors,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!s||void 0===s[t.route.id]);if(t.route.lazy||i){n.isStatic&&(o=!0),a=l>=0?a.slice(0,l+1):[a[0]];break}}}}let u=null===n||void 0===n?void 0:n.onError,c=r&&u?(e,t)=>{var n,a;u(e,{location:r.location,params:null!==(n=null===(a=r.matches)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.params)&&void 0!==n?n:{},pattern:Rt(r.matches),errorInfo:t})}:void 0;return a.reduceRight((e,n,u)=>{let d,h=!1,f=null,p=null;r&&(d=s&&n.route.id?s[n.route.id]:void 0,f=n.route.errorElement||ln,o&&(l<0&&0===u?(yn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,p=null):l===u&&(h=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,u+1)),x=()=>{let t;return t=d?f:h?p:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(hn,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===u)?i.createElement(un,{location:r.location,revalidation:r.revalidation,component:f,error:d,children:x(),routeC
2ontext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):x()},null)}function pn(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function mn(e){let t=i.useContext(Mt);return Ze(t,pn(e)),t}function xn(e){let t=i.useContext(zt);return Ze(t,pn(e)),t}function gn(e){let t=function(e){let t=i.useContext(Kt);return Ze(t,pn(e)),t}(e),n=t.matches[t.matches.length-1];return Ze(n.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),n.route.id}function vn(){var e;let t=i.useContext(Qt),n=xn("useRouteError"),r=gn("useRouteError");return void 0!==t?t:null===(e=n.errors)||void 0===e?void 0:e[r]}var bn={};function yn(e,t,n){t||bn[e]||(bn[e]=!0,et(!1,n))}var Dn={};function wn(e,t){e||Dn[t]||(Dn[t]=!0,console.warn(t))}o.useOptimistic;i.memo(kn);function kn(e){let t=e.routes,n=e.manifest,r=e.future;return sn(t,void 0,{manifest:n,state:e.state,isStatic:e.isStatic,onError:e.onError,future:r})}function jn(e){let t=e.to,n=e.replace,r=e.state,a=e.relative;Ze(Jt(),"<Navigate> may be used only in the context of a <Router> component."),et(!i.useContext(Gt).static,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let s=i.useContext(Kt).matches,o=Xt().pathname,l=tn(),u=Ct(t,jt(s),o,"path"===a),c=JSON.stringify(u);return i.useEffect(()=>{l(JSON.parse(c),{replace:n,state:r,relative:a})},[l,c,a,n,r]),null}function Cn(e){return function(e){let t=i.useContext(Kt).outlet;return i.useMemo(()=>t&&i.createElement(nn.Provider,{value:e},t),[t,e])}(e.context)}function En(e){Ze(!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 Fn(e){let t=e.basename,n=void 0===t?"/":t,r=e.children,a=void 0===r?null:r,s=e.location,o=e.navigationType,l=void 0===o?"POP":o,u=e.navigator,c=e.static,d=void 0!==c&&c,h=e.useTransitions;Ze(!Jt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),p=i.useMemo(()=>({basename:f,navigator:u,static:d,useTransitions:h,future:{}}),[f,u,d,h]);"string"===typeof s&&(s=at(s));let m=s,x=m.pathname,g=void 0===x?"/":x,v=m.search,b=void 0===v?"":v,y=m.hash,D=void 0===y?"":y,w=m.state,k=void 0===w?null:w,j=m.key,C=void 0===j?"default":j,E=m.mask,F=i.useMemo(()=>{let e=bt(g,f);return null==e?null:{location:{pathname:e,search:b,hash:D,state:k,key:C,mask:E},navigationType:l}},[f,g,b,D,k,C,l,E]);return et(null!=F,'<Router basename="'.concat(f,'"> is not able to match the URL "').concat(g).concat(b).concat(D,"\" because it does not start with the basename, so the <Router> won't render anything.")),null==F?null:i.createElement(Gt.Provider,{value:p},i.createElement($t.Provider,{children:a,value:F}))}function Nn(e){let t=e.children,n=e.location;return sn(An(t),n)}i.Component;function An(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return i.Children.forEach(e,(e,r)=>{if(!i.isValidElement(e))return;let a=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,An(e.props.children,a));Ze(e.type===En,"[".concat("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>")),Ze(!e.props.index||!e.props.children,"An index route cannot have child routes.");let s={id:e.props.id||a.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};
2e.props.children&&(s.children=An(e.props.children,a)),n.push(s)}),n}var Sn="get",_n="application/x-www-form-urlencoded";function Bn(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement}var Tn=null;var Rn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Pn(e){return null==e||Rn.has(e)?e:(et(!1,'"'.concat(e,'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "').concat(_n,'"')),null)}function On(e,t){let n,r,a,s,i;if(Bn(o=e)&&"form"===o.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?bt(i,t):null,n=e.getAttribute("method")||Sn,a=Pn(e.getAttribute("enctype"))||_n,s=new FormData(e)}else if(function(e){return Bn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Bn(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?bt(o,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Sn,a=Pn(e.getAttribute("formenctype"))||Pn(i.getAttribute("enctype"))||_n,s=new FormData(i,e),!function(){if(null===Tn)try{new FormData(document.createElement("form"),0),Tn=!1}catch(e){Tn=!0}return Tn}()){let t=e.name,n=e.type,r=e.value;if("image"===n){let e=t?"".concat(t,"."):"";s.append("".concat(e,"x"),"0"),s.append("".concat(e,"y"),"0")}else t&&s.append(t,r)}}else{if(Bn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Sn,r=null,a=_n,i=e}var o;return s&&"text/plain"===a&&(i=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ln(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}Symbol("SingleFetchRedirect");function In(e,t,n,r){let a="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname="".concat(a.pathname,"_.").concat(r):a.pathname="".concat(a.pathname,".").concat(r):"/"===a.pathname?a.pathname="_root.".concat(r):t&&"/"===bt(a.pathname,t)?a.pathname="".concat(Nt(t),"/_root.").concat(r):a.pathname="".concat(Nt(a.pathname),".").concat(r),a}async function Mn(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(n){return console.error("Error loading route module `".concat(e.module,"`, reloading page...")),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function zn(e){return null!=e&&"string"===typeof e.page}function Un(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 qn(e,t,n,r,a,s){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,o=(e,t)=>{var r;return n[t].pathname!==e.pathname||(null===(r=n[t].route.path)||void 0===r?void 0:r.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){var u;let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:(null===(u=n[0])||void 0===u?void 0:u.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof r)return r}return!0}):[]}function Wn(e,t){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).includeHydrateFallback;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 Hn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,a)=>{if(t&&!zn(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},[])}function Vn(e,t){return"lazy"===e.mode&&!0===t}function Gn(){let e=i.useContext(Mt);return Ln(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function $n(){let e=i.useContext(zt);return Ln(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Kn=i.createContext(void 0);function Qn(){let e=i.useContext(Kn);return Ln(e,"You must render this element inside a <HydratedRouter> element"),e}function Yn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}
2function Jn(e,t,n){if(n&&!nr)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}Kn.displayName="FrameworkContext";function Xn(e){let t=e.page,n=Oe(e,He),r=qt(),a=Gn().router,s=i.useMemo(()=>ot(a.routes,t,a.basename),[a.routes,t,a.basename]);return s?r?i.createElement(er,f({page:t,matches:s},n)):i.createElement(tr,f({page:t,matches:s},n)):null}function Zn(e){let t=Qn(),n=t.manifest,r=t.routeModules,a=qe(i.useState([]),2),s=a[0],o=a[1];return i.useEffect(()=>{let t=!1;return async function(e,t,n){return Hn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Mn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Un).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?f(f({},e),{},{rel:"prefetch",as:"style"}):f(f({},e),{},{rel:"prefetch"})))}(e,n,r).then(e=>{t||o(e)}),()=>{t=!0}},[e,n,r]),s}function er(e){let t=e.page,n=e.matches,r=Oe(e,Ve),a=Xt(),s=Qn().future,o=Gn().basename,l=i.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let e=In(t,o,s.unstable_trailingSlashAwareDataRequests,"rsc"),r=!1,i=[];for(let t of n)"function"===typeof t.route.shouldRevalidate?r=!0:i.push(t.route.id);return r&&i.length>0&&e.searchParams.set("_routes",i.join(",")),[e.pathname+e.search]},[o,s.unstable_trailingSlashAwareDataRequests,t,a,n]);return i.createElement(i.Fragment,null,l.map(e=>i.createElement("link",f({key:e,rel:"prefetch",as:"fetch",href:e},r))))}function tr(e){let t=e.page,n=e.matches,r=Oe(e,Ge),a=Xt(),s=Qn(),o=s.future,l=s.manifest,u=s.routeModules,c=Gn().basename,d=$n(),h=d.loaderData,p=d.matches,m=i.useMemo(()=>qn(t,n,p,l,a,"data"),[t,n,p,l,a]),x=i.useMemo(()=>qn(t,n,p,l,a,"assets"),[t,n,p,l,a]),g=i.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let e=new Set,r=!1;if(n.forEach(t=>{var n;let a=l.routes[t.route.id];a&&a.hasLoader&&(!m.some(e=>e.route.id===t.route.id)&&t.route.id in h&&null!==(n=u[t.route.id])&&void 0!==n&&n.shouldRevalidate||a.hasClientLoader?r=!0:e.add(t.route.id))}),0===e.size)return[];let s=In(t,c,o.unstable_trailingSlashAwareDataRequests,"data");return r&&e.size>0&&s.searchParams.set("_routes",n.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[s.pathname+s.search]},[c,o.unstable_trailingSlashAwareDataRequests,h,a,l,m,n,t,u]),v=i.useMemo(()=>Wn(x,l),[x,l]),b=Zn(x);return i.createElement(i.Fragment,null,g.map(e=>i.createElement("link",f({key:e,rel:"prefetch",as:"fetch",href:e},r))),v.map(e=>i.createElement("link",f({key:e,rel:"modulepreload",href:e},r))),b.map(e=>{var t;let n=e.key,a=e.link;return i.createElement("link",f(f({key:n,nonce:r.nonce},a),{},{crossOrigin:null!==(t=a.crossOrigin)&&void 0!==t?t:r.crossOrigin}))}))}var nr=!1;function rr(e){let t=Qn(),n=t.manifest,r=t.serverHandoffString,a=t.isSpaMode,s=t.renderMeta,o=t.routeDiscovery,l=t.ssr,u=Gn(),c=u.router,d=u.static,h=u.staticContext,p=$n().matches,m=qt(),x=Vn(o,l);s&&(s.didRenderScripts=!0);let g=Jn(p,null,a);i.useEffect(()=>{nr=!0},[]);let v=i.useMemo(()=>{var t;if(m)return null;let a=h?"window.__reactRouterContext = ".concat(r,";").concat("window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());"):" ",s=d?"".concat(null!==(t=n.hmr)&&void 0!==t&&t.runtime?"import ".concat(JSON.stringify(n.hmr.runtime),";"):"").concat(x?"":"import ".concat(JSON.stringify(n.url)),";\n").concat(g.map((e,t)=>{let r="route".concat(t),a=n.routes[e.route.id];Ln(a,"Route ".concat(e.route.id," not found in manifest"));let s=a.clientActionModule,i=a.clientLoaderModule,o=a.clientMiddlewareModule,l=a.hydrateFallbackModule,u=a.module,c=[...s?[{module:s,varName:"".concat(r,"_clientAction")}]:[],...i?[{module:i,varName:"".concat(r,"_clientLoader")}]:[],...o?[{module:o,varName:"".concat(r,"_clientMiddleware")}]:[],...l?[{module:l,varName:"".concat(r,"_HydrateFallback")}]:[],{module:u,varName:"".concat(r,"_main")}];return 1===c.length?"import * as ".concat(r," from ").concat(JSON.stringify(u),";"):[c.map(e=>"import * as ".concat(e.varName,' from "').concat(e.module,'";
2')).join("\n"),"const ".concat(r," = {").concat(c.map(e=>"...".concat(e.varName)).join(","),"};")].join("\n")}).join("\n"),"\n  ").concat(x?"window.__reactRouterManifest = ".concat(JSON.stringify(function(e,t){let n=e.sri,r=Oe(e,We),a=new Set(t.state.matches.map(e=>e.route.id)),s=t.state.location.pathname.split("/").filter(Boolean),i=["/"];for(s.pop();s.length>0;)i.push("/".concat(s.join("/"))),s.pop();i.forEach(e=>{let n=lt(t.routes,e,t.basename||"/",!1,t.branches);n&&n.forEach(e=>a.add(e.route.id))});let o=[...a].reduce((e,t)=>Object.assign(e,{[t]:r.routes[t]}),{});return f(f({},r),{},{routes:o,sri:!!n||void 0})}(n,c),null,2),";"):"","\n  window.__reactRouterRouteModules = {").concat(g.map((e,t)=>"".concat(JSON.stringify(e.route.id),":route").concat(t)).join(","),"};\n\nimport(").concat(JSON.stringify(n.entry.module),");"):" ";return i.createElement(i.Fragment,null,i.createElement("script",f(f({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:a},type:void 0})),i.createElement("script",f(f({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:s},type:"module",async:!0})))},[]),b=nr||m?[]:(y=n.entry.imports.concat(Wn(g,n,{includeHydrateFallback:!0})),[...new Set(y)]);var y;let D="object"===typeof n.sri?n.sri:{};return wn(!m,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),nr||m?null:i.createElement(i.Fragment,null,"object"===typeof n.sri?i.createElement("script",f(f({},e),{},{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:D})}})):null,x?null:i.createElement("link",{rel:"modulepreload",href:n.url,crossOrigin:e.crossOrigin,integrity:D[n.url],nonce:e.nonce,suppressHydrationWarning:!0}),i.createElement("link",{rel:"modulepreload",href:n.entry.module,crossOrigin:e.crossOrigin,integrity:D[n.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),b.map(t=>i.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:D[t],nonce:e.nonce,suppressHydrationWarning:!0})),v)}function ar(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)})}}i.Component;function sr(e){let t=e.error,n=e.isOutsideRemixApp;console.error(t);let r,a=i.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(Tt(t))return i.createElement(ir,{title:"Unhandled Thrown Response!"},i.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),a);if(t instanceof Error)r=t;else{let e=null==t?"Unknown Error":"object"===typeof t&&"toString"in t?t.toString():JSON.stringify(t);r=new Error(e)}return i.createElement(ir,{title:"Application Error!",isOutsideRemixApp:n},i.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),a)}function ir(e){var t;let n=e.title,r=e.renderScripts,a=e.isOutsideRemixApp,s=e.children;return null!==(t=Qn().routeModules.root)&&void 0!==t&&t.Layout&&!a?s:i.createElement("html",{lang:"en"},i.createElement("head",null,i.createElement("meta",{charSet:"utf-8"}),i.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.createElement("title",null,n)),i.createElement("body",null,i.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},s,r?i.createElement(rr,null):null)))}var or="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{or&&(window.__reactRouterVersion="7.15.0")}catch(tN){}function lr(e){let t=e.basename,n=e.children,r=e.useTransitions,a=e.window,s=i.useRef();null==s.current&&(s.current=Xe({window:a,v5Compat:!0}));let o=s.current,l=qe(i.useState({action:o.action,location:o.location}),2),u=l[0],c=l[1],d=i.useCallback(e=>{!1===r?c(e):i.startTransition(()=>c(e))},[r]);return i.useLayoutEffect(()=>
2o.listen(d),[o,d]),i.createElement(Fn,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,useTransitions:r})}var ur=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=i.forwardRef(function(e,t){let n=e.onClick,r=e.discover,a=void 0===r?"render":r,s=e.prefetch,o=void 0===s?"none":s,l=e.relative,u=e.reloadDocument,c=e.replace,d=e.mask,h=e.state,p=e.target,m=e.to,x=e.preventScrollReset,g=e.viewTransition,v=e.defaultShouldRevalidate,b=Oe(e,$e),y=i.useContext(Gt),D=y.basename,w=y.navigator,k=y.useTransitions,j="string"===typeof m&&ur.test(m),C=Ot(m,D);m=C.to;let E=function(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative;Ze(Jt(),"useHref() may be used only in the context of a <Router> component.");let n=i.useContext(Gt),r=n.basename,a=n.navigator,s=an(e,{relative:t}),o=s.hash,l=s.pathname,u=s.search,c=l;return"/"!==r&&(c="/"===l?r:Ft([r,l])),a.createHref({pathname:c,search:u,hash:o})}(m,{relative:l}),F=Xt(),N=null;if(d){let e=Ct(d,[],F.mask?F.mask.pathname:"/",!0);"/"!==D&&(e.pathname="/"===e.pathname?D:Ft([D,e.pathname])),N=w.createHref(e)}let A=function(e,t){let n=i.useContext(Kn),r=qe(i.useState(!1),2),a=r[0],s=r[1],o=qe(i.useState(!1),2),l=o[0],u=o[1],c=t.onFocus,d=t.onBlur,h=t.onMouseEnter,f=t.onMouseLeave,p=t.onTouchStart,m=i.useRef(null);i.useEffect(()=>{if("render"===e&&u(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{u(e.isIntersecting)})},{threshold:.5});return m.current&&e.observe(m.current),()=>{e.disconnect()}}},[e]),i.useEffect(()=>{if(a){let e=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(e)}}},[a]);let x=()=>{s(!0)},g=()=>{s(!1),u(!1)};return n?"intent"!==e?[l,m,{}]:[l,m,{onFocus:Yn(c,x),onBlur:Yn(d,g),onMouseEnter:Yn(h,x),onMouseLeave:Yn(f,g),onTouchStart:Yn(p,x)}]:[!1,m,{}]}(o,b),S=qe(A,3),_=S[0],B=S[1],T=S[2],R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=t.replace,a=t.mask,s=t.state,o=t.preventScrollReset,l=t.relative,u=t.viewTransition,c=t.defaultShouldRevalidate,d=t.useTransitions,h=tn(),f=Xt(),p=an(e,{relative:l});return i.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:rt(f)===rt(p),m=()=>h(e,{replace:n,mask:a,state:s,preventScrollReset:o,relative:l,viewTransition:u,defaultShouldRevalidate:c});d?i.startTransition(()=>m()):m()}},[f,h,p,r,a,s,n,e,o,l,u,c,d])}(m,{replace:c,mask:d,state:h,target:p,preventScrollReset:x,relative:l,viewTransition:g,defaultShouldRevalidate:v,useTransitions:k});let P=!(C.isExternal||u),O=i.createElement("a",f(f(f({},b),T),{},{href:(P?N:void 0)||C.absoluteURL||E,onClick:P?function(e){n&&n(e),e.defaultPrevented||R(e)}:n,ref:ar(t,B),target:p,"data-discover":j||"render"!==a?void 0:"true"}));return _&&!j?i.createElement(i.Fragment,null,O,i.createElement(Xn,{page:E})):O});cr.displayName="Link";var dr=i.forwardRef(function(e,t){let n=e["aria-current"],r=void 0===n?"page":n,a=e.caseSensitive,s=void 0!==a&&a,o=e.className,l=void 0===o?"":o,u=e.end,c=void 0!==u&&u,d=e.style,h=e.to,p=e.viewTransition,m=e.children,x=Oe(e,Ke),g=an(h,{relative:x.relative}),v=Xt(),b=i.useContext(zt),y=i.useContext(Gt),D=y.navigator,w=y.basename,k=null!=b&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relative,r=i.useContext(Wt);Ze(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let a=pr("useViewTransitionState").basename,s=an(e,{relative:n});if(!r.isTransitioning)return!1;let o=bt(r.currentLocation.pathname,a)||r.currentLocation.pathname,l=bt(r.nextLocation.pathname,a)||r.nextLocation.pathname;return null!=xt(s.pathname,l)||null!=xt(s.pathname,o)}(g)&&!0===p,j=D.encodeLocation?D.encodeLocation(g).pathname:g.pathname,C=v.pathname,E=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;s||(C=C.toLowerCase(),E=E?E.toLowerCase():null,j=j.toLowerCase()),E&&w&&(E=bt(E,w)||E);const F="/"!==j&&j.endsWith("/")?j.length-1:j.length;let N,A=C===j||!c&&C.startsWith(j)&&"/"===C.charAt(F),S=null!=E&&(E===j||!c&&E.startsWith(j)&&"/"===E.charAt(j.length)),_={isActive:A,isPending:S,isTransitioning:k},B=A?r:void 0;N="function"===typeof l?l(_):[l,A?"active":null,S?"pending":null,k?"transitioning":null].filter(
2Boolean).join(" ");let T="function"===typeof d?d(_):d;return i.createElement(cr,f(f({},x),{},{"aria-current":B,className:N,ref:t,style:T,to:h,viewTransition:p}),"function"===typeof m?m(_):m)});dr.displayName="NavLink";var hr=i.forwardRef((e,t)=>{let n=e.discover,r=void 0===n?"render":n,a=e.fetcherKey,s=e.navigate,o=e.reloadDocument,l=e.replace,u=e.state,c=e.method,d=void 0===c?Sn:c,h=e.action,p=e.onSubmit,m=e.relative,x=e.preventScrollReset,g=e.viewTransition,v=e.defaultShouldRevalidate,b=Oe(e,Qe),y=i.useContext(Gt).useTransitions,D=xr(),w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relative,r=i.useContext(Gt).basename,a=i.useContext(Kt);Ze(a,"useFormAction must be used inside a RouteContext");let s=qe(a.matches.slice(-1),1)[0],o=f({},an(e||".",{relative:n})),l=Xt();if(null==e){o.search=l.search;let e=new URLSearchParams(o.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();o.search=n?"?".concat(n):""}}e&&"."!==e||!s.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(o.pathname="/"===o.pathname?r:Ft([r,o.pathname]));return rt(o)}(h,{relative:m}),k="get"===d.toLowerCase()?"get":"post",j="string"===typeof h&&ur.test(h);return i.createElement("form",f(f({ref:t,method:k,action:w,onSubmit:o?p:e=>{if(p&&p(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null===t||void 0===t?void 0:t.getAttribute("formmethod"))||d,r=()=>D(t||e.currentTarget,{fetcherKey:a,method:n,navigate:s,replace:l,state:u,relative:m,preventScrollReset:x,viewTransition:g,defaultShouldRevalidate:v});y&&!1!==s?i.startTransition(()=>r()):r()}},b),{},{"data-discover":j||"render"!==r?void 0:"true"}))});function fr(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function pr(e){let t=i.useContext(Mt);return Ze(t,fr(e)),t}hr.displayName="Form";var mr=0;function xr(){let e=pr("useSubmit").router,t=i.useContext(Gt).basename,n=gn("useRouteId"),r=e.fetch,a=e.navigate;return i.useCallback(async function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=On(e,t),o=i.action,l=i.method,u=i.encType,c=i.formData,d=i.body;if(!1===s.navigate){let e=s.fetcherKey||"__".concat(String(++mr),"__");await r(e,n,s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:c,body:d,formMethod:s.method||l,formEncType:s.encType||u,flushSync:s.flushSync})}else await a(s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:c,body:d,formMethod:s.method||l,formEncType:s.encType||u,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,a,t,n])}var gr=(e,t,n,r,a,s,i,o)=>{let l=document.documentElement,u=["light","dark"];function c(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&s?a.map(e=>s[e]||e):a;n?(l.classList.remove(...r),l.classList.add(s&&s[t]?s[t]:t)):l.setAttribute(e,t)}),function(e){o&&u.includes(e)&&(l.style.colorScheme=e)}(t)}if(r)c(r);else try{let e=localStorage.getItem(t)||n;c(i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e)}catch(d){}},vr=i.createContext(void 0),br={setTheme:e=>{},themes:[]},yr=(i.memo(e=>{let t=e.forcedTheme,n=e.storageKey,r=e.attribute,a=e.enableSystem,s=e.enableColorScheme,o=e.defaultTheme,l=e.value,u=e.themes,c=e.nonce,d=e.scriptProps,h=JSON.stringify([r,n,o,t,u,l,a,s]).slice(1,-1);return i.createElement("script",f(f({},d),{},{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?c:"",dangerouslySetInnerHTML:{__html:"(".concat(gr.toString(),")(").concat(h,")")}}))}),n(950));const Dr=["message"];const wr=Array(12).fill(0),kr=e=>{let t=e.visible,n=e.className;return i.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":t},i.createElement("div",{className:"sonner-spinner"},wr.map((e,t)=>i.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},jr=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Cr=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
2currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Er=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Fr=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},i.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Nr=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},i.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));let Ar=1;const Sr=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const n=e.message,r=Oe(e,Dr),a="number"===typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:Ar++,s=this.toasts.find(e=>e.id===a),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),s?this.toasts=this.toasts.map(t=>t.id===a?(this.publish(f(f(f({},t),e),{},{id:a,title:n})),f(f(f({},t),e),{}
2,{id:a,dismissible:i,title:n})):t):this.addToast(f(f({title:n},r),{},{dismissible:i,id:a})),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create(f(f({},t),{},{message:e})),this.error=(e,t)=>this.create(f(f({},t),{},{message:e,type:"error"})),this.success=(e,t)=>this.create(f(f({},t),{},{type:"success",message:e})),this.info=(e,t)=>this.create(f(f({},t),{},{type:"info",message:e})),this.warning=(e,t)=>this.create(f(f({},t),{},{type:"warning",message:e})),this.loading=(e,t)=>this.create(f(f({},t),{},{type:"loading",message:e})),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create(f(f({},t),{},{promise:e,type:"loading",message:t.loading,description:"function"!==typeof t.description?t.description:void 0})));const r=Promise.resolve(e instanceof Function?e():e);let a,s=void 0!==n;const o=r.then(async e=>{a=["resolve",e];if(i.isValidElement(e))s=!1,this.create({id:n,type:"default",message:e});else if(_r(e)&&!e.ok){s=!1;const r="function"===typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,a="function"===typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description,o="object"===typeof r&&!i.isValidElement(r)?r:{message:r};this.create(f({id:n,type:"error",description:a},o))}else if(e instanceof Error){s=!1;const r="function"===typeof t.error?await t.error(e):t.error,a="function"===typeof t.description?await t.description(e):t.description,o="object"===typeof r&&!i.isValidElement(r)?r:{message:r};this.create(f({id:n,type:"error",description:a},o))}else if(void 0!==t.success){s=!1;const r="function"===typeof t.success?await t.success(e):t.success,a="function"===typeof t.description?await t.description(e):t.description,o="object"===typeof r&&!i.isValidElement(r)?r:{message:r};this.create(f({id:n,type:"success",description:a},o))}}).catch(async e=>{if(a=["reject",e],void 0!==t.error){s=!1;const r="function"===typeof t.error?await t.error(e):t.error,a="function"===typeof t.description?await t.description(e):t.description,o="object"===typeof r&&!i.isValidElement(r)?r:{message:r};this.create(f({id:n,type:"error",description:a},o))}}).finally(()=>{s&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),l=()=>new Promise((e,t)=>o.then(()=>"reject"===a[0]?t(a[1]):e(a[1])).catch(t));return"string"!==typeof n&&"number"!==typeof n?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||Ar++;return this.create(f({jsx:e(n),id:n},t)),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},_r=e=>e&&"object"===typeof e&&"ok"in e&&"boolean"===typeof e.ok&&"status"in e&&"number"===typeof e.status,Br=(e,t)=>{const n=(null==t?void 0:t.id)||Ar++;return Sr.addToast(f(f({title:e},t),{},{id:n})),n},Tr=Object.assign(Br,{success:Sr.success,info:Sr.info,warning:Sr.warning,error:Sr.error,custom:Sr.custom,message:Sr.message,promise:Sr.promise,dismiss:Sr.dismiss,loading:Sr.loading},{getHistory:()=>Sr.toasts,getToasts:()=>Sr.getActiveToasts()});function Rr(e){return void 0!==e.label}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)
vendor: 13,513 bytes, line 2
2}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function 
2Pr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}const Or=e=>{var t,n,r,a,s,o,l,u,c;const d=e.invert,h=e.toast,p=e.unstyled,m=e.interacting,x=e.setHeights,g=e.visibleToasts,v=e.heights,b=e.index,y=e.toasts,D=e.expanded,w=e.removeToast,k=e.defaultRichColors,j=e.closeButton,C=e.style,E=e.cancelButtonStyle,F=e.actionButtonStyle,N=e.className,A=void 0===N?"":N,S=e.descriptionClassName,_=void 0===S?""
vendor: 6,838 bytes, line 2
2:S,B=e.duration,T=e.position,R=e.gap,P=e.expandByDefault,O=e.classNames,L=e.icons,I=e.closeButtonAriaLabel,M=void 0===I?"Close toast":I,z=qe(i.useState(null),2),U=z[0],q=z[1],W=qe(i.useState(null),2),H=W[0],V=W[1],G=qe(i.useState(!1),2),$=G[0],K=G[1],Q=qe(i.useState(!1),2),Y=Q[0],J=Q[1],X=qe(i.useState(!1),2),Z=X[0],ee=X[1],te=qe(i.useState(!1),2),ne=te[0],re=te[1],ae=qe(i.useState(!1),2),se=ae[0],ie=ae[1],oe=qe(i.useState(0),2),le=oe[0],ue=oe[1],ce=qe(i.useState(0),2),de=ce[0],he=ce[1],fe=i.useRef(h.duration||B||4e3),pe=i.useRef(null),me=i.useRef(null),xe=0===b,ge=b+1<=g,ve=h.type,be=!1!==h.dismissible,ye=h.className||"",De=h.descriptionClassName||"",we=i.useMemo(()=>v.findIndex(e=>e.toastId===h.id)||0,[v,h.id]),ke=i.useMemo(()=>{var e;return null!=(e=h.closeButton)?e:j},[h.closeButton,j]),je=i.useMemo(()=>h.duration||B||4e3,[h.duration,B]),Ce=i.useRef(0),Ee=i.useRef(0),Fe=i.useRef(0),Ne=i.useRef(null),Ae=qe(T.split("-"),2),Se=Ae[0],_e=Ae[1],Be=i.useMemo(()=>v.reduce((e,t,n)=>n>=we?e:e+t.height,0),[v,we]),Te=(()=>{const e=qe(i.useState(document.hidden),2),t=e[0],n=e[1];return i.useEffect(()=>{const e=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),t})(),Re=h.invert||d,Pe="loading"===ve;Ee.current=i.useMemo(()=>we*R+Be,[we,Be]),i.useEffect(()=>{fe.current=je},[je]),i.useEffect(()=>{K(!0)},[]),i.useEffect(()=>{const e=me.current;if(e){const t=e.getBoundingClientRect().height;return he(t),x(e=>[{toastId:h.id,height:t,position:h.position},...e]),()=>x(e=>e.filter(e=>e.toastId!==h.id))}},[x,h.id]),i.useLayoutEffect(()=>{if(!$)return;const e=me.current,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,he(n),x(e=>e.find(e=>e.toastId===h.id)?e.map(e=>e.toastId===h.id?f(f({},e),{},{height:n}):e):[{toastId:h.id,height:n,position:h.position},...e])},[$,h.title,h.description,x,h.id]);const Oe=i.useCallback(()=>{J(!0),ue(Ee.current),x(e=>e.filter(e=>e.toastId!==h.id)),setTimeout(()=>{w(h)},200)},[h,w,x,Ee]);i.useEffect(()=>{if(h.promise&&"loading"===ve||h.duration===1/0||"loading"===h.type)return;let e;return D||m||Te?(()=>{if(Fe.current<Ce.current){const e=(new Date).getTime()-Ce.current;fe.current=fe.current-e}Fe.current=(new Date).getTime()})():fe.current!==1/0&&(Ce.current=(new Date).getTime(),e=setTimeout(()=>{null==h.onAutoClose||h.onAutoClose.call(h,h),Oe()},fe.current)),()=>clearTimeout(e)},[D,m,h,ve,Te,Oe]),i.useEffect(()=>{h.delete&&Oe()},[Oe,h.delete]);const Le=h.icon||(null==L?void 0:L[ve])||(e=>{switch(e){case"success":return jr;case"info":return Er;case"warning":return Cr;case"error":return Fr;default:return null}})(ve);var Ie,Me;return i.createElement("li",{tabIndex:0,ref:me,className:Pr(A,ye,null==O?void 0:O.toast,null==h||null==(t=h.classNames)?void 0:t.toast,null==O?void 0:O.default,null==O?void 0:O[ve],null==h||null==(n=h.classNames)?void 0:n[ve]),"data-sonner-toast":"","data-rich-colors":null!=(Ie=h.richColors)?Ie:k,"data-styled":!Boolean(h.jsx||h.unstyled||p),"data-mounted":$,"data-promise":Boolean(h.promise),"data-swiped":se,"data-removed":Y,"data-visible":ge,"data-y-position":Se,"data-x-position":_e,"data-index":b,"data-front":xe,"data-swiping":Z,"data-dismissible":be,"data-type":ve,"data-invert":Re,"data-swipe-out":ne,"data-swipe-direction":H,"data-expanded":Boolean(D||P&&$),style:f(f({"--index":b,"--toasts-before":b,"--z-index":y.length-b,"--offset":"".concat(Y?le:Ee.current,"px"),"--initial-height":P?"auto":"".concat(de,"px")},C),h.style),onDragEnd:()=>{ee(!1),q(null),Ne.current=null},onPointerDown:e=>{!Pe&&be&&(pe.current=new Date,ue(Ee.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(ee(!0),Ne.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n;if(ne||!be)return;Ne.current=null;const r=Number((null==(e=me.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(t=me.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),s=(new Date).getTime()-(null==(n=pe.current)?void 0:n.getTime()),i="x"===U?r:a,o=Math.abs(i)/s;if(Math.abs(i)>=45||o>.11)return ue(Ee.current),null==h.onDismiss||h.onDismiss.call(h,h),V("x"===U?r>0?"right":"left":a>0?"down":"up"),Oe(),void re(!0);var l,u;null==(l=me.current)||l.style.setProperty("--swipe-amount-x","0px"),null==(u=me.current)||u.style.setProperty("--swipe-amount-y","0px"),ie(!1),ee(!1),q(null)},onPointerMove:t=>{var n,r,a;if(!Ne.current||!be)return;if((null==(n=window.getSelection())?void 0:n.toString().length)>0)return;const s=t.clientY-Ne.current.y,i=t.clientX-Ne.current.x;var o;const l=null!=(o=e.swipeDirections)?o:function(e){const t=qe(e.split("-"),2),n=t[0],r=t[1],a=[];return n&&a.push(n),r&&a.push(r),a}(T);!U&&(Math.abs(i)>1||Math.abs(s)>1)&&q(Math.abs(i)>Math.abs(s)?"x":"y");let u={x:0,y:0};const c=e=>1/(1.5+Math.abs(e)/20);if("y"===U){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&s<0||l.includes("bottom")&&s>0)u.y=s;else{const e=s*c(s);u.y=Math.abs(e)<Math.abs(s)?e:s}}else if("x"===U&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&i<0||l.includes("right")&&i>0)u.x=i;else{const e=i*c(i);u.x=Math.abs(e)<Math.abs(i)?e:i}(Math.abs(u.x)>0||Math.abs(u.y)>0)&&ie(!0),null==(r=me.current)||r.style.setProperty("--swipe-amount-x","".concat(u.x,"px")),null==(a=me.current)||a.style.setProperty("--swipe-amount-y","".concat(u.y,"px"))}},ke&&!h.jsx&&"loading"!==ve?i.createElement("button",{"aria-label":M,"data-disabled":Pe,"data-close-button":!0,onClick:Pe||!be?()=>{}:()=>{Oe(),null==h.onDismiss||h.onDismiss.call(h,h)},className:Pr(null==O?void 0:O.closeButton,null==h||null==(r=h.classNames)?void 0:r.closeButton)},null!=(Me=null==L?void 0:L.close)?Me:Nr):null,(ve||h.icon||h.promise)&&null!==h.icon&&(null!==(null==L?void 0:L[ve])||h.icon)?i.createElement("div",{"data-icon":"",className:Pr(null==O?void 0:O.icon,null==h||null==(a=h.classNames)?void 0:a.icon)},h.promise||"loading"===h.type&&!h.icon?h.icon||function(){var e,t;return(null==L?void 0:L.loading)?i.createElement("div",{className:Pr(null==O?void 0:O.loader,null==h||null==(t=h.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===ve},L.loading):i.createElement(kr,{className:Pr(null==O?void 0:O.loader,null==h||null==(e=h.classNames)?void 0:e.loader),visible:"loading"===ve})}():null,"loading"!==h.type?Le:null):null,i.createElement("div",{"data-content":"",className:Pr(null==O?void 0:O.content,null==h||null==(s=h.classNames)?void 0:s.content)},i.createElement("div",{"data-title":"",className:Pr(null==O?void 0:O.title,null==h||null==(o=h.classNames)?void 0:o.title)},h.jsx?h.jsx:"function"===typeof h.title?h.title():h.title),h.description?i.createElement("div",{"data-description":"",className:Pr(_,De,null==O?void 0:O.de
2scription,null==h||null==(l=h.classNames)?void 0:l.description)},"function"===typeof h.description?h.description():h.description):null),i.isValidElement(h.cancel)?h.cancel:h.cancel&&Rr(h.cancel)?i.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||E,onClick:e=>{Rr(h.cancel)&&be&&(null==h.cancel.onClick||h.cancel.onClick.call(h.cancel,e),Oe())},className:Pr(null==O?void 0:O.cancelButton,null==h||null==(u=h.classNames)?void 0:u.cancelButton)},h.cancel.label):null,i.isValidElement(h.action)?h.action:h.action&&Rr(h.action)?i.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||F,onClick:e=>{Rr(h.action)&&(null==h.action.onClick||h.action.onClick.call(h.action,e),e.defaultPrevented||Oe())},className:Pr(null==O?void 0:O.actionButton,null==h||null==(c=h.classNames)?void 0:c.actionButton)},h.action.label):null)};function Lr(){if("undefined"===typeof window)return"ltr";if("undefined"===typeof document)return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function Ir(e,t){const n={};return[e,t].forEach((e,t)=>{const r=1===t,a=r?"--mobile-offset":"--offset",s=r?"16px":"24px";function i(e){["top","right","bottom","left"].forEach(t=>{n["".concat(a,"-").concat(t)]="number"===typeof e?"".concat(e,"px"):e})}"number"===typeof e||"string"===typeof e?i(e):"object"===typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n["".concat(a,"-").concat(t)]=s:n["".concat(a,"-").concat(t)]="number"===typeof e[t]?"".concat(e[t],"px"):e[t]}):i(s)}),n}const Mr=i.forwardRef(function(e,t){const n=e.invert,r=e.position,a=void 0===r?"bottom-right":r,s=e.hotkey,o=void 0===s?["altKey","KeyT"]:s,l=e.expand,u=e.closeButton,c=e.className,d=e.offset,h=e.mobileOffset,p=e.theme,m=void 0===p?"light":p,x=e.richColors,g=e.duration,v=e.style,b=e.visibleToasts,y=void 0===b?3:b,D=e.toastOptions,w=e.dir,k=void 0===w?Lr():w,j=e.gap,C=void 0===j?14:j,E=e.icons,F=e.containerAriaLabel,N=void 0===F?"Notifications":F,A=qe(i.useState([]),2),S=A[0],_=A[1],B=i.useMemo(()=>Array.from(new Set([a].concat(S.filter(e=>e.position).map(e=>e.position)))),[S,a]),T=qe(i.useState([]),2),R=T[0],P=T[1],O=qe(i.useState(!1),2),L=O[0],I=O[1],M=qe(i.useState(!1),2),z=M[0],U=M[1],q=qe(i.useState("system"!==m?m:"undefined"!==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),2),W=q[0],H=q[1],V=i.useRef(null),G=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=i.useRef(null),K=i.useRef(!1),Q=i.useCallback(e=>{_(t=>{var n;return(null==(n=t.find(t=>t.id===e.id))?void 0:n.delete)||Sr.dismiss(e.id),t.filter(t=>t.id!==e.id)})},[]);return i.useEffect(()=>Sr.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{_(t=>t.map(t=>t.id===e.id?f(f({},t),{},{delete:!0}):t))}):setTimeout(()=>{yr.flushSync(()=>{_(t=>{const n=t.findIndex(t=>t.id===e.id);return-1!==n?[...t.slice(0,n),f(f({},t[n]),e),...t.slice(n+1)]:[e,...t]})})})}),[S]),i.useEffect(()=>{if("system"!==m)return void H(m);if("system"===m&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),"undefined"===typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let t=e.matches;H(t?"dark":"light")})}catch(t){e.addListener(e=>{let t=e.matches;try{H(t?"dark":"light")}catch(tN){console.error(tN)}})}},[m]),i.useEffect(()=>{S.length<=1&&I(!1)},[S]),i.useEffect(()=>{const e=e=>{var t;var n;o.every(t=>e[t]||e.code===t)&&(I(!0),null==(n=V.current)||n.focus());"Escape"!==e.code||document.activeElement!==V.current&&!(null==(t=V.current)?void 0:t.contains(document.activeElement))||I(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),i.useEffect(()=>{if(V.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,K.current=!1)}},[V.current]),i.createElement("section",{ref:t,"aria-label":"".concat(N," ").concat(G),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((t,r)=>{var a;const s=qe(t.split("-"),2),o=s[0],p=s[1];return S.length?i.createElement("ol",{key:t,dir:"auto"===k?Lr():k,tabIndex:-1,ref:V,className:c,"data-sonner-toaster":!0,"data-sonner-theme":W,"data-y-position":o,"data-lifted":L&&S.length>1&&!l,"data-x-position":p,style:f(f({"--front-toast-height":"".concat((null==(a=R[0])?void 0:a.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(C,"px")}
2,v),Ir(d,h)),onBlur:e=>{K.current&&!e.currentTarget.contains(e.relatedTarget)&&(K.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||K.current||(K.current=!0,$.current=e.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{z||I(!1)},onDragEnd:()=>I(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||U(!0)},onPointerUp:()=>U(!1)},S.filter(e=>!e.position&&0===r||e.position===t).map((r,a)=>{var s,o;return i.createElement(Or,{key:r.id,icons:E,index:a,toast:r,defaultRichColors:x,duration:null!=(s=null==D?void 0:D.duration)?s:g,className:null==D?void 0:D.className,descriptionClassName:null==D?void 0:D.descriptionClassName,invert:n,visibleToasts:y,closeButton:null!=(o=null==D?void 0:D.closeButton)?o:u,interacting:z,position:t,style:null==D?void 0:D.style,unstyled:null==D?void 0:D.unstyled,classNames:null==D?void 0:D.classNames,cancelButtonStyle:null==D?void 0:D.cancelButtonStyle,actionButtonStyle:null==D?void 0:D.actionButtonStyle,closeButtonAriaLabel:null==D?void 0:D.closeButtonAriaLabel,removeToast:Q,toasts:S.filter(e=>e.position==r.position),heights:R.filter(e=>e.position==r.position),setHeights:P,expandByDefault:l,gap:C,expanded:L,swipeDirections:e.swipeDirections})})):null}))}),zr=e=>{let t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));const n=(()=>{var e;return null!=(e=i.useContext(vr))?e:br})().theme,r=void 0===n?"system":n;return(0,Te.jsx)(Mr,f({theme:r,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}},t))},Ur=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qr=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Wr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var Hr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Vr=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],Gr=(0,i.forwardRef)((e,t)=>{let n=e.color,r=void 0===n?"currentColor":n,a=e.size,s=void 0===a?24:a,o=e.strokeWidth,l=void 0===o?2:o,u=e.absoluteStrokeWidth,c=e.className,d=void 0===c?"":c,h=e.children,p=e.iconNode,m=Oe(e,Vr);return(0,i.createElement)("svg",f(f(f({ref:t},Hr),{},{width:s,height:s,stroke:r,strokeWidth:u?24*Number(l)/Number(s):l,className:Wr("lucide",d)},!h&&!(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(m)&&{"aria-hidden":"true"}),m),[...p.map(e=>{let t=qe(e,2),n=t[0],r=t[1];return(0,i.createElement)(n,r)}),...Array.isArray(h)?h:[h]])}),$r=["className"],Kr=(e,t)=>
2{const n=(0,i.forwardRef)((n,r)=>{let a=n.className,s=Oe(n,$r);return(0,i.createElement)(Gr,f({ref:r,iconNode:t,className:Wr("lucide-".concat(Ur(qr(e))),"lucide-".concat(e),a)},s))});return n.displayName=qr(e),n},Qr=Kr("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),Yr=Kr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Jr=Kr("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]),Xr=[{href:"/#how",label:"How it works",testId:"nav-link-how"},{href:"/#agents",label:"AI Agents",testId:"nav-link-agents"},{href:"/#surfaces",label:"Activation",testId:"nav-link-surfaces"},{href:"/blog",label:"Blog",testId:"nav-link-blog"},{href:"/#faq",label:"FAQ",testId:"nav-link-faq"}];function Zr(){const e=qe((0,i.useState)(!1),2),t=e[0],n=e[1],r=qe((0,i.useState)(!1),2),a=r[0],s=r[1];return(0,i.useEffect)(()=>{const e=()=>n(window.scrollY>12);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,Te.jsxs)("header",{"data-testid":"site-navbar",className:"fixed inset-x-0 top-0 z-50 transition-all duration-300 ".concat(t?"backdrop-blur-xl bg-white/85 border-b border-[#eeeaf6]":"bg-transparent border-b border-transparent"),children:[(0,Te.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10 h-16 flex items-center justify-between",children:[(0,Te.jsx)("a",{href:"/#top","data-testid":"brand-logo",className:"flex items-center",children:(0,Te.jsx)("img",{src:"https://customer-assets-gfyr7b9c.emergentagent.net/job_ai-acquisition-hub-2/artifacts/24zfs0md_logo_white_background.webp",alt:"Uplaud",className:"h-10 w-auto object-contain mix-blend-multiply",style:{maxWidth:120}})}),(0,Te.jsx)("nav",{className:"hidden md:flex items-center gap-8",children:Xr.map(e=>(0,Te.jsx)("a",{href:e.href,"data-testid":e.testId,className:"text-[13px] text-[#4b5563] hover:text-[#6d46c6] transition-colors",children:e.label},e.href))}),(0,Te.jsxs)("div",{className:"hidden md:flex items-center gap-3",children:[(0,Te.jsx)("a",{href:"/business","data-testid":"nav-sign-in-link",className:"text-[13px] text-[#4b5563] hover:text-[#6d46c6] transition-colors",children:"Log in"}),(0,Te.jsxs)("a",{href:"/#demo","data-testid":"nav-book-demo-btn",className:"btn-primary",children:["Book a demo",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]}),(0,Te.jsx)("button",{"data-testid":"mobile-menu-toggle",className:"md:hidden inline-flex items-center justify-center w-10 h-10 border border-[#d9d1ee] rounded-full text-[#111827]",onClick:()=>s(e=>!e),"aria-label":"Toggle menu",children:a?(0,Te.jsx)(Yr,{className:"w-4 h-4"}):(0,Te.jsx)(Jr,{className:"w-4 h-4"})})]}),a&&(0,Te.jsx)("div",{"data-testid":"mobile-menu",className:"md:hidden border-t border-[#eeeaf6] bg-white/95 backdrop-blur-xl",children:(0,Te.jsxs)("div",{className:"px-6 py-4 flex flex-col gap-3",children:[Xr.map(e=>(0,Te.jsx)("a",{href:e.href,"data-testid":"".concat(e.testId,"-mobile"),onClick:()=>s(!1),className:"text-[14px] text-[#111827] py-2",children:e.label},e.href)),(0,Te.jsx)("a",{href:"/business","data-testid":"nav-sign-in-link-mobile",onClick:()=>s(!1),className:"text-[14px] text-[#111827] py-2",children:"Log in"}),(0,Te.jsx)("a",{href:"/#demo","data-testid":"nav-book-demo-btn-mobile",onClick:()=>s(!1),className:"btn-primary mt-2 justify-center",children:"Book a demo"})]})})]})}const ea=Kr("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),ta=Kr("stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]),na=Kr("scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}
2],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]),ra=Kr("paw-print",[["circle",{cx:"11",cy:"4",r:"2",key:"vol9p0"}],["circle",{cx:"18",cy:"8",r:"2",key:"17gozi"}],["circle",{cx:"20",cy:"16",r:"2",key:"1v9bxh"}],["path",{d:"M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z",key:"1ydw1z"}]]),aa=Kr("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]),sa=Kr("droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]),ia=Kr("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),oa=Kr("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),la=Kr("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),ua=[{id:"education",label:"Education",copy:"Turn parent and student reviews into more enrollments &mdash; for tutoring centers, SAT prep and preschools.",icon:ea,ad:{brand:"testprep.pro",gradient:"from-[#fff3d6] via-[#ffe6a3] to-[#f5b955]",title:"SAT PREP",subtitle:"1500+ SCORES",quote:"1290 \u2192 1520 in 6 weeks.",quoteBy:"real 5-star parent",reviews:"1,842",lift:"+2.3x CTR"},reddit:{sub:"r/APStudents",handle:"surfaced by uplaud",question:"Best SAT prep for high schoolers targeting 1500+?",reviewerRole:"verified parent",review:"My daughter went from 1290 to 1520 in 6 weeks. Personalised practice was the difference."},referral:{customerName:"Jessica",friendName:"Rachel",customerRole:"verified parent",review:"testprep.pro\u2019s tutor spotted my daughter\u2019s weak areas in week one. Life saver.",brand:"testprep.pro",message:"Rachel! You asked about SAT tutoring &mdash; I just reviewed testprep.pro. My daughter jumped 230 points. Free diagnostic here:",link:"uplaud.co/tpp-jessica",offer:"Free diagnostic"},ai:{query:"Best SAT prep for a 1500+ target score?",brand:"testprep.pro",answer:"Users consistently recommend testprep.pro, citing personalised study plans and average score gains of 230+ across 4,300 verified reviews."}},{id:"healthcare",label:"Healthcare",copy:"Turn patient stories into more booked appointments &mdash; for clinics, dentists and dermatologists.",icon:ta,ad:{brand:"brightsmiles.co",gradient:"from-[#e0f7ff] via-[#c8ecff] to-[#7dc4ea]",title:"BRIGHT",subtitle:"SMILES DENTAL",quote:"Made me actually enjoy the dentist.",quoteBy:"real 5-star patient",reviews:"976",lift:"+1.9x CTR"},reddit:{sub:"r/AskDentists",handle:"surfaced by uplaud",question:"Any gentle dentist recommendations in Austin?",reviewerRole:"verified patient",review:"Zero anxiety appointment. Fair pricing, upfront plan, no upsell."},referral:{customerName:"Emma",friendName:"Kayla",customerRole:"verified patient",review:"brightsmiles.co explained everything before touching a thing. Painless cleaning too.",brand:"brightsmiles.co",message:"Kayla! You mentioned finding a dentist &mdash; I just reviewed brightsmiles.co. Gentle team, no upsell. First cleaning free:",link:"uplaud.co/bs-emma",offer:"Free cleaning"},ai:{query:"Best dentist for anxious patients in Austin?",brand:"brightsmiles.co",answer:"brightsmiles.co is consistently highlighted for anxious patients, citing gentle care and transparent pricing across 970+ verified reviews."}},{id:"legal",label:"Legal",copy:"Turn client testimonials into more qualified leads &mdash; for immigration, family and injury attorneys.",icon:na,ad:{brand:"millerkatzlaw.com",gradient:"from-[#e6e6f7] via-[#c7c7ed] to-[#7f7fb8]",title:"MILLER",subtitle:"& KATZ LAW",quote:"EB-5 approved. Painless from day one.",quoteBy:"real 5-star client",reviews:"512",lift:"+2.4x CTR"},reddit:{sub:"r/immigration",handle:"surfaced by uplaud",question:"Best immigration attorney for EB-5 in 2026?",reviewerRole:"verified client",review:"400+ approved petitions. Fees were clear upfront. My case cleared in 11 months."},referral:{customerName:"Michael",friendName:"David",customerRole:"verified client",review:"millerkatzlaw.com walked us through EB-5 like it was a checklist. Zero surprises.",brand:"millerkatzlaw.com",message:"David! You asked about EB-5 lawyers &mdash; I just reviewed millerkatzlaw.com. 400+ approved petitions. Free 30-min consult here:",link:"uplaud.co/mkl-michael",offer:"Free consult"},ai:{query:"Best immigration lawyer for EB-5?",brand:"millerkatzlaw.com",answer:"For E
2B-5 investor visas, users consistently name millerkatzlaw.com as top choice, citing 400+ approved petitions and clear fee structure."}},{id:"petcare",label:"Pet care",copy:"Turn happy pet parents into new bookings &mdash; for groomers, vets and boarding.",icon:ra,ad:{brand:"poodlesandpals",gradient:"from-[#ffe8d6] via-[#ffd0a8] to-[#ea9a5e]",title:"POODLES",subtitle:"& PALS",quote:"Milo comes home happy every time.",quoteBy:"real 5-star pet parent",reviews:"1,204",lift:"+2.1x CTR"},reddit:{sub:"r/dogs",handle:"surfaced by uplaud",question:"Where do I get my poodle groomed in Brooklyn?",reviewerRole:"verified pet parent",review:"Gentle team, no anxious pup, and Milo actually looked happy walking out."},referral:{customerName:"Ashley",friendName:"Megan",customerRole:"verified pet parent",review:"Poodles & Pals gave Milo the softest cut. Gentle, patient staff, no anxious pup!",brand:"Poodles & Pals",message:"Megan! You asked about groomers &mdash; I just reviewed Poodles &amp; Pals. Milo loved them. $20 off your first cut:",link:"uplaud.co/pnp-ashley",offer:"$20 off"},ai:{query:"Best pet grooming for anxious dogs in Brooklyn?",brand:"Poodles & Pals",answer:"Poodles & Pals is consistently recommended for anxious dogs, citing calm handling and small-batch sessions across 1,200+ verified reviews."}},{id:"finance",label:"Finance",copy:"Turn client testimonials into more qualified prospects &mdash; for financial advisors, tax pros and wealth managers.",icon:aa,ad:{brand:"westgate.finance",gradient:"from-[#e8f2ec] via-[#c5e0d1] to-[#5fa085]",title:"WESTGATE",subtitle:"WEALTH MGMT",quote:"Retired 4 years earlier than planned.",quoteBy:"real 5-star client",reviews:"687",lift:"+2.2x CTR"},reddit:{sub:"r/personalfinance",handle:"surfaced by uplaud",question:"Best fee-only advisor for early retirement planning?",reviewerRole:"verified client",review:"Modeled 12 scenarios in week one. Fee-only, zero product pushing. Retirement came 4 years sooner."},referral:{customerName:"James",friendName:"Robert",customerRole:"verified client",review:"westgate.finance mapped out my whole retirement in one call. Zero jargon, zero upsell.",brand:"westgate.finance",message:"Robert! You asked about advisors &mdash; I just reviewed westgate.finance. Fee-only, straight talk. Free 30-min plan review here:",link:"uplaud.co/wg-james",offer:"Free review"},ai:{query:"Best fee-only financial advisor for early retirement?",brand:"westgate.finance",answer:"For fee-only retirement planning, users consistently name westgate.finance as top choice, citing transparent pricing and detailed scenario modeling across 680+ verified reviews."}},{id:"ecommerce",label:"Ecommerce",copy:"Turn 5-star reviews into more repeat buyers &mdash; for high-consideration Shopify brands.",icon:sa,ad:{brand:"glowskin.co",gradient:"from-[#fde5df] via-[#f6c8bd] to-[#e8a597]",title:"GLOW",subtitle:"VIT-C SERUM",quote:"Cleared my hyperpigmentation in 3 weeks.",quoteBy:"real 5-star customer",reviews:"3,214",lift:"+2.6x CTR"},reddit:{sub:"r/SkincareAddiction",handle:"surfaced by uplaud",question:"Anyone tried a vitamin-C serum that actually works?",reviewerRole:"verified customer",review:"Cleared my hyperpigmentation in 3 weeks. Only thing that worked after 5 products."},referral:{customerName:"Madison",friendName:"Chloe",customerRole:"verified customer",review:"glowskin.co\u2019s serum evened my skin in weeks. Zero irritation, glow for days.",brand:"glowskin.co",message:"Chloe! You asked about vitamin C &mdash; I just reviewed glowskin.co. Even skin in 3 weeks. 20% off your first bottle:",link:"uplaud.co/glow-madison",offer:"20% off"},ai:{query:"Best vitamin C serum for hyperpigmentation?",brand:"glowskin.co",answer:"Users consistently rate glowskin.co 4.8/5, citing fast results on hyperpigmentation and dryness across 3,200+ verified reviews."}}];function ca(){const e=qe((0,i.useState)("education"),2),t=e[0],n=e[1],r=ua.find(e=>e.id===t)||ua[0];return(0,Te.jsxs)("section",{id:"top","data-testid":"hero-section",className:"relative pt-28 md:pt-36 pb-16 md:pb-24 overflow-hidden bg-white",children:[(0,Te.jsx)("div",{"aria-hidden":!0,
2className:"absolute inset-x-0 top-0 h-[620px] pointer-events-none",style:{background:"radial-gradient(60% 60% at 50% 0%, rgba(109,70,198,0.10), transparent 70%), radial-gradient(40% 40% at 90% 20%, rgba(94,234,212,0.18), transparent 70%)"}}),(0,Te.jsxs)("div",{className:"relative max-w-[1240px] mx-auto px-6 md:px-10",children:[(0,Te.jsx)("div",{className:"flex flex-wrap items-center gap-3 mb-8",children:(0,Te.jsxs)("span",{className:"chip","data-testid":"hero-eyebrow",children:[(0,Te.jsx)("span",{className:"dot"}),"The trust engine for modern acquisition"]})}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10 items-start",children:[(0,Te.jsxs)("div",{className:"lg:col-span-7",children:[(0,Te.jsxs)("h1",{"data-testid":"hero-headline",className:"font-display text-[46px] leading-[0.98] sm:text-[62px] lg:text-[78px] font-semibold tracking-tight text-[#111827]",children:["Get ",(0,Te.jsx)("span",{className:"mint-underline",children:"more"})," customers.",(0,Te.jsx)("br",{}),"Spend ",(0,Te.jsx)("span",{className:"mint-underline",children:"less"})," on Ads."]}),(0,Te.jsx)("p",{"data-testid":"hero-subhead",className:"mt-8 max-w-xl text-[17px] md:text-[18px] leading-[1.55] text-[#4b5563]",children:"People trust people more than ads. Uplaud turns your customer proof \u2014 reviews, referrals, stories, DMs and social conversations \u2014 into warmer leads, smarter campaigns and acquisition that actually converts."}),(0,Te.jsxs)("p",{"data-testid":"hero-subhead-tag",className:"mt-4 max-w-xl text-[16px] md:text-[17px] font-display font-medium text-[#111827]",children:["Turn customer trust into your"," ",(0,Te.jsx)("span",{className:"text-[#6d46c6]",children:"#1 acquisition channel"}),"."]}),(0,Te.jsxs)("div",{className:"mt-9 flex flex-wrap items-center gap-3",children:[(0,Te.jsxs)("a",{href:"#demo","data-testid":"hero-book-demo-btn",className:"btn-primary",children:["Learn how",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]}),(0,Te.jsx)("a",{href:"#how","data-testid":"hero-see-how-btn",className:"btn-secondary",children:"See how it works"})]}),(0,Te.jsxs)("div",{"data-testid":"hero-vertical-selector",className:"mt-10 pt-8 border-t border-[#eeeaf6] max-w-xl",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,Te.jsx)("span",{className:"section-label",children:"Built for"}),(0,Te.jsx)("span",{className:"h-px flex-1 bg-[#eeeaf6]"})]}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-2",children:ua.map(e=>(0,Te.jsx)("button",{type:"button","data-testid":"hero-vertical-".concat(e.id),onClick:()=>n(e.id),className:"px-3.5 py-1.5 rounded-full text-[12.5px] font-medium border transition-all ".concat(t===e.id?"bg-[#111827] text-white border-[#111827]":"bg-white text-[#4b5563] border-[#eeeaf6] hover:border-[#d9d1ee] hover:text-[#111827]"),children:e.label},e.id))}),(0,Te.jsx)("p",{"data-testid":"hero-vertical-copy",className:"mt-4 text-[14px] leading-relaxed text-[#4b5563]",dangerouslySetInnerHTML:{__html:r.copy}},"copy-".concat(r.id))]}),(0,Te.jsxs)("div",{className:"mt-8 flex flex-wrap items-center gap-x-6 gap-y-3 text-[13px] text-[#4b5563]",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[#6d46c6]"}),"Works inside Meta, Google, TikTok"]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[#5eead4]"}),"Feeds Reddit, X, ChatGPT & Perplexity"]})]})]}),(0,Te.jsx)("div",{className:"lg:col-span-5",children:(0,Te.jsx)(da,{active:r})})]})]})]})}function da(e){let t=e.active;const n=t.icon;return(0,Te.jsxs)("div",{"data-testid":"hero-visual",className:"relative w-full aspect-[3/4.8] lg:aspect-[3/5]",children:[(0,Te.jsx)("div",{className:"absolute inset-4 rounded-[28px] bg-gradient-to-br from-[#ecfdf7] via-white to-[#f5f3ff] border border-[#eeeaf6]"}),(0,Te.jsxs)("div",{"data-testid":"hero-card-reddit",className:"absolute top-[1%] left-[0%] w-[74%] bg-white border border-[#eeeaf6] rounded-2xl p-4 shadow-[0_25px_60px_-30px_rgba(38,28,77,0.35)]",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#ff4500] text-white text-[10px] font-bold flex items-center justify-center",children:"r/"}),(0,Te.jsx)("div",{className:"text-[11px] font-mono text-[#4b5563] truncate",children:t.reddit.sub}),(0,Te.jsx)("span",{className:"ml-auto text-[10px] font-mono text-[#6d46c6] shrink-0",children:t.reddit.handle})]}),(0,Te.jsxs)("p",{className:"mt-2 text-[12px] text-[#111827] leading-relaxed",children:["\u201c",t.reddit.question,"\u201d"]}),(0,Te.jsxs)("div",{className:"mt-3 rounded-lg bg-[#faf9ff] border border-[#eeeaf6] p-3",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-1",children:[Array.from({length:5}).map((e,t)=>(0,Te.jsx)(ia,{className:"w-2.5 h-2.5 fill-[#5eead4] text-[#5eead4]",strokeWidth:0},t)),(0,Te.jsx)("span",{className:"text-[10px] text-[#9ca3af] ml-1",children:t.reddit.reviewerRole})]}),(0,Te.jsxs)("p",{className:"mt-1.5 text-[11.5px] text-[#111827] leading-snug",children:["\u201c",t.reddit.review,"\u201d"]})]})]}),(0,Te.jsxs)("div",{"data-testid":"hero-card-ad",className:"absolute top-[18%] right-[0%] w-[58%] bg-white border border-[#eeeaf6] rounded-2xl overflow-hidden shadow-[0_25px_60px_-30px_rgba(38,28,77,0.35)]",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-[#eeeaf6]",children:[(0,Te.jsx)("div",{className:"w-6 h-6 rounded-full p-[1.5px] bg-[conic-gradient(from_180deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5,#feda75)]",children:(0,Te.jsx)("div",{className:"w-full h-full rounded-full bg-white p-[1.5px]",children:(0,Te.jsx)("div",{className:"w-full h-full rounded-full bg-gradient-to-br ".concat(t.ad.gradient)})})}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-semibold text-[#111827] leading-tight truncate",children:t.ad.brand}),(0,Te.jsx)("div",{className:"text-[9px] text-[#9ca3af] leading-tight",children:"Sponsored"})]}),(0,Te.jsx)("span",{className:"text-[10px] font-mono text-[#6d46c6] shrink-0",children:"written by uplaud"})]}),(0,Te.jsxs)("div",{className:"relative aspect-[5/4] bg-gradient-to-br ".concat(t.ad.gradient," overflow-hidden"),children:[(0,Te.jsx)("div",{className:"absolute -top-6 -left-6 w-24 h-24 rounded-full bg-white/40 blur-2xl"}),(0,Te.jsx)("div",{className:"absolute -bottom-8 -right-4 w-28 h-28 rounded-full bg-white/40 blur-2xl"}),(0,Te.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,Te.jsxs)("div",{className:"w-[62%] h-[74%] rounded-[10px] bg-white/85 backdrop-blur-sm border border-white flex flex-col items-center justify-center gap-2 shadow-[0_10px_30px_-10px_rgba(0,0,0,0.15)]",children:[(0,Te.jsx)(n,{className:"w-6 h-6 text-[#111827]",strokeWidth:1.5}),(0,Te.jsx)("div",{className:"text-[10px] font-mono tracking-[0.22em] text-[#111827] font-semibold text-center px-2",children:t.ad.title}),(0,Te.jsx)("div",{className:"text-[8px] font-mono text-[#4b5563] tracking-widest text-center",children:t.ad.subtitle})]})}),(0,Te.jsxs)("div",{className:"absolute top-3 left-3 flex items-center gap-1 bg-white/95 backdrop-blur-sm rounded-full px-2.5 py-1 border border-white shadow-sm",children:[Array.from({length:5}).map((e,t)=>(0,Te.jsx)(ia,{className:"w-2.5 h-2.5 fill-[#5eead4] text-[#5eead4]",strokeWidth:0},t)),(0,Te.jsx)("span",{className:"text-[9px] font-mono text-[#111827] ml-0.5",children:t.ad.reviews})]}),(0,Te.jsxs)("div",{className:"absolute bottom-3 inset-x-3 bg-white/95 backdrop-blur-sm rounded-lg p-2 border border-white shadow-sm",children:[(0,Te.jsxs)("p",{className:"text-[10.5px] font-semibold leading-snug text-[#111827]",children:["\u201c",t.ad.quote,"\u201d"]}),(0,Te.jsxs)("p",{className:"text-[9px] text-[#4b5563] mt-0.5",children:["\u2014 ",t.ad.quoteBy]})]})]}),(0,Te.jsxs)("div",{className:"flex items-center justify-between px-3 py-2",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 text-[#111827]",children:[(0,Te.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Te.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),(0,Te.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Te.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),(0,Te.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Te.jsx)("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),(0,Te.jsx)("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})]}),(0,Te.jsx)("span",{className:"text-[10px] font-mono text-[#6d46c6]",children:t.ad.lift})]})]}),(0,Te.jsxs)("div",{"data-testid":"hero-card-referral",className:"absolute top-[46%] left-[2%] w-[72%] bg-white border border-[#d9d1ee] rounded-2xl p-4 shadow-[0_25px_60px_-30px_rgba(38,28,77,0.35)]",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#6d46c6] text-white flex items-center justify-center",children:(0,Te.jsx)(oa,{className:"w-3.5 h-3.5",strokeWidth:2.5})}),(0,Te.jsx)("div",{className:"text-[11px] font-mono text-[#4b5563]",children:"review \xa0\u2192\xa0 referral"}),(0,Te.jsx)("span",{className:"ml-auto text-[10px] font-mono text-[#6d46c6]",children:"campaigned by uplaud"})]}),(0,Te.jsxs)("div",{className:"mt-3 rounded-lg bg-[#faf9ff] border border-[#eeeaf6] p-2.5",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-1.5",children:[Array.from({length:5}).map((e,t)=>(0,Te.jsx)(ia,{className:"w-2.5 h-2.5 fill-[#5eead4] text-[#5eead4]",strokeWidth:0},t)),(0,Te.jsxs)("span",{className:"text-[9.5px] text-[#9ca3af]",children:[t.referral.customerName,", ",t.referral.customerRole]})]}),(0,Te.jsxs)("p",{className:"mt-1 text-[11px] leading-snug text-[#111827]",children:["\u201c",t.referral.review,"\u201d"]})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-1.5 my-1.5 pl-2",children:[(0,Te.jsx)("div",{className:"w-[1px] h-3 bg-[#d9d1ee]"}),(0,Te.jsx)("div",{className:"text-[9px] font-mono uppercase tracking-widest text-[#6d46c6]",children:"shared with a friend"})]}),(0,Te.jsxs)("div",{className:"rounded-lg bg-[#f0fbf7] border border-[#c8f0e4] p-2.5",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#25D366] text-white text-[8px] font-bold flex items-center justify-center",children:"W"}),(0,Te.jsxs)("span",{className:"text-[10px] font-mono text-[#111827]",children:[t.referral.customerName," \u2192 ",t.referral.friendName]}),(0,Te.jsx)("span",{className:"ml-auto text-[9px] text-[#4b5563]",children:"2m ago"})]}),(0,Te.jsx)("p",{className:"mt-1.5 text-[11px] leading-snug text-[#111827]",dangerouslySetInnerHTML:{__html:"&ldquo;".concat(t.referral.message,"&rdquo;")}}),(0,Te.jsxs)("div",{className:"mt-1.5 flex items-center justify-between",children:[(0,Te.jsx)("span",{className:"text-[9.5px] font-mono text-[#4b5563]",children:t.referral.link}),(0,Te.jsx)("span",{className:"px-1.5 py-0.5 rounded-full bg-[#5eead4] text-[#261c4d] text-[9px] font-mono font-semibold",children:t.referral.offer})]})]})]}),(0,Te.jsxs)("div",{"data-testid":"hero-card-ai",className:"absolute bottom-[0%] right-[0%] w-[60%] bg-[#261c4d] text-white rounded-2xl p-4 shadow-[0_25px_60px_-30px_rgba(38,28,77,0.7)]",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 pb-2 border-b border-white/10",children:[(0,Te.jsx)("div",{className:"w-6 h-6 rounded-full bg-white/10 flex items-center justify-center",children:(0,Te.jsx)(la,{className:"w-3.5 h-3.5 text-[#5eead4]",strokeWidth:2})}),(0,Te.jsx)("div",{className:"text-[11px] font-mono text-white/60",children:"AI search answer"}),(0,Te.jsx)("span",{className:"ml-auto text-[10px] font-mono text-[#5eead4]",children:"cited via uplaud"})]}),(0,Te.jsx)("p",{className:"mt-2 text-[11px] leading-relaxed text-white/60 italic",children:t.ai.query}),(0,Te.jsx)("p",{className:"mt-2 text-[11.5px] leading-relaxed text-white/85",dangerouslySetInnerHTML:{__html:"&ldquo;".concat(t.ai.answer.replace(t.ai.brand,'<span class="text-[#5eead4]">'.concat(t.ai.brand,"</span>")),"&rdquo;")}})]})]},"visual-".concat(t.id))}var ha=n(818);const fa=["Trustpilot","G2","Google Reviews","Yelp","Shopify","Amazon reviews","Reddit","X","Instagram DMs","TikTok comments","LinkedIn","HubSpot","Salesforce","Zendesk tickets","WhatsApp","Telegram","SMS","Testimonial emails","S
2ales call transcripts"];function pa(){return(0,Te.jsxs)("section",{"data-testid":"trust-bar",className:"relative border-y border-[#eeeaf6] bg-[#faf9ff] py-10",children:[(0,Te.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10 mb-5 flex items-baseline justify-between gap-4",children:[(0,Te.jsx)("span",{className:"section-label",children:"Easily bring in customer trust signals from anywhere"}),(0,Te.jsx)("span",{className:"hidden md:inline text-[12px] text-[#4b5563]",children:"Reviews \xb7 Social \xb7 CRM \xb7 Support \xb7 Referrals"})]}),(0,Te.jsx)("div",{className:"marquee-fade",children:(0,Te.jsx)(ha.A,{gradient:!1,speed:34,pauseOnHover:!0,children:fa.map((e,t)=>(0,Te.jsx)("div",{"data-testid":"trust-source-".concat(t),className:"mx-3 md:mx-4 px-4 py-2 rounded-full border border-[#eeeaf6] bg-white text-[13px] font-medium text-[#4b5563] hover:text-[#6d46c6] hover:border-[#d9d1ee] transition-colors",children:e},t))})})]})}const ma=Kr("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]),xa=Kr("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function ga(){return(0,Te.jsx)("section",{id:"pain","data-testid":"pain-point-section",className:"relative py-24 md:py-32 bg-white",children:(0,Te.jsx)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10",children:(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 items-start",children:[(0,Te.jsxs)("div",{className:"lg:col-span-6",children:[(0,Te.jsx)("span",{className:"section-label",children:"01 / the problem"}),(0,Te.jsxs)("h2",{"data-testid":"pain-headline",className:"mt-4 font-display text-[36px] sm:text-[48px] lg:text-[58px] leading-[1.02] font-semibold tracking-tight text-[#111827]",children:["Ads are getting",(0,Te.jsx)("br",{}),(0,Te.jsx)("span",{className:"text-[#6d46c6]",children:"more expensive"}),"."]}),(0,Te.jsx)("p",{className:"mt-6 max-w-lg text-[16px] leading-relaxed text-[#4b5563]",children:"The click keeps costing more, and the trust behind the click keeps costing you nothing \u2014 because it's already sitting in your reviews, DMs and Reddit threads, doing zero work for you. Uplaud closes that gap."}),(0,Te.jsxs)("div",{className:"mt-8 rounded-2xl border border-[#eeeaf6] bg-[#faf9ff] p-6",children:[(0,Te.jsx)("p",{className:"font-display text-[19px] leading-snug italic text-[#111827]",children:"\u201cI love spending more and more money on ads.\u201d"}),(0,Te.jsx)("p",{className:"mt-2 text-[12px] font-mono uppercase tracking-widest text-[#6d46c6]",children:"\u2014 No one, ever"})]})]}),(0,Te.jsxs)("div",{className:"lg:col-span-6 space-y-3",children:[(0,Te.jsx)(va,{testId:"pain-stat-cac",icon:aa,stat:"+40%",statLabel:"YoY",title:"Customer acquisition costs keep climbing.",body:"Every quarter, the ad auction gets more expensive. And the click you buy doesn't come with trust attached.",highlight:!0}),(0,Te.jsx)(va,{testId:"pain-stat-roas",icon:ma,stat:"$2",statLabel:"to earn $1",title:"You're spending more to make less.",body:"Cold acquisition now costs roughly $2 in ad spend for every $1 of revenue. The math stopped working, everyone noticed."}),(0,Te.jsx)(va,{testId:"pain-stat-disconnect",icon:xa,stat:"5\xd7",statLabel:"vs paid ads",title:"Word-of-mouth converts 5\xd7 better than ads.",body:"Recommendations and reviews are the highest-converting channel your business has \u2014 and it's already running for free in your customers' DMs, threads and group chats. Uplaud puts it to work."})]})]})})})}function va(e){let t=e.testId,n=e.icon,r=e.stat,a=e.statLabel,s=e.title,i=e.body,o=e.highlight;return(0,Te.jsxs)("div",{"data-testid":t,className:"rounded-2xl border p-6 flex items-start gap-5 transition-colors ".concat(o?"border-[#6d46c6] bg-white":"border-[#eeeaf6] bg-white hover:border-[#d9d1ee]"),children:[(0,Te.jsx)("div",{className:"shrink-0",children:(0,Te.jsx)("div",{className:"w-11 h-11 rounded-full flex items-center justify-center ".concat(o?"bg-[#6d46c6] text-white":"bg-[#f5f3ff] text-[#6d46c6]"),children:(0,Te.jsx)(n,{className:"w-5 h-5",strokeWidth:1.75})})}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,Te.jsx)("span",{className:"font-display text-[32px] leading-none font-semibold tracking-tight ".concat(o?"text-[#6d46c6]":"text-[#111827]"),children:r}),(0,Te.jsx)("span",{className:"text-[11px] font-mono uppercase tracking-widest text-[#9ca3af]",children:a})]}),(0,Te.jsx)("h3",{className:"mt-2 font-display text-[17px] font-semibold tracking-tight text-[#111827]",children:s}),(0,Te.jsx)("p",{className:"mt-1.5 text-[13.5px] leading-relaxed text-[#4b5563]",dangerouslySetInnerHTML:{__html:i}})]})]})}const ba=Kr("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]),ya=Kr("brain-circuit",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}
2],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]]),Da=Kr("megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),wa=Kr("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),ka=Kr("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),ja=[{key:"capture",icon:ba,tag:"01 \xb7 capture",title:"Bring trust in",body:"Reviews, referrals, DMs, CRM, sales calls, testimonials \u2014 from every source."},{key:"structure",icon:ya,tag:"02 \xb7 structure",title:"AI reads & tags it",body:"Every story tagged by theme, sentiment, buyer intent and channel fit."},{key:"ads",icon:Da,tag:"03 \xb7 activate ads",title:"Fuel your paid growth",body:"Story-driven creative and lookalikes shipped to Meta, Google and TikTok."},{key:"social",icon:oa,tag:"04 \xb7 activate trust",title:"Show up on Reddit, X & AI search",body:"The right testimonial in the right thread, in the right ChatGPT answer."},{key:"refer",icon:wa,tag:"05 \xb7 referrals",title:"Turn advocates into leads",body:"One-tap warm referrals, in y
2our customer's voice, to the right friend."},{key:"insight",icon:ka,tag:"06 \xb7 insight",title:"Feed the wheel",body:"Attribution and insight go back into capture. Every spin gets smarter."}];function Ca(){return(0,Te.jsx)("section",{id:"how","data-testid":"how-it-works-section",className:"relative py-24 md:py-32 bg-[#faf9ff] border-y border-[#eeeaf6] overflow-hidden",children:(0,Te.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10",children:[(0,Te.jsxs)("div",{className:"max-w-3xl mb-12 md:mb-16",children:[(0,Te.jsx)("span",{className:"section-label",children:"02 / how uplaud works"}),(0,Te.jsxs)("h2",{"data-testid":"how-headline",className:"mt-4 font-display text-[36px] sm:text-[48px] lg:text-[60px] leading-[1.02] font-semibold tracking-tight text-[#111827]",children:["The Uplaud",(0,Te.jsx)("br",{}),(0,Te.jsx)("span",{className:"mint-underline",children:"growth flywheel."})]}),(0,Te.jsx)("p",{className:"mt-5 text-[15.5px] leading-relaxed text-[#4b5563] max-w-xl",children:"Every spin turns customer trust into acquisition, and every new customer feeds the next spin. Uplaud runs all six stations for you."})]}),(0,Te.jsx)(Ea,{}),(0,Te.jsx)("div",{className:"md:hidden mt-10 space-y-3","data-testid":"flywheel-mobile-list",children:ja.map((e,t)=>(0,Te.jsxs)("div",{"data-testid":"flywheel-station-mobile-".concat(t),className:"rounded-2xl border border-[#eeeaf6] bg-white p-5 flex items-start gap-4",children:[(0,Te.jsx)("div",{className:"w-10 h-10 shrink-0 rounded-full bg-[#f5f3ff] text-[#6d46c6] flex items-center justify-center",children:(0,Te.jsx)(e.icon,{className:"w-4 h-4",strokeWidth:1.75})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-widest text-[#6d46c6]",children:e.tag}),(0,Te.jsx)("div",{className:"mt-1 font-display text-[16px] font-semibold text-[#111827]",children:e.title}),(0,Te.jsx)("p",{className:"mt-1 text-[13px] leading-relaxed text-[#4b5563]",children:e.body})]})]},e.key))})]})})}function Ea(){const e=ja.map((e,t)=>{const n=(60*t-90)*Math.PI/180;return{left:50+40*Math.cos(n),top:50+40*Math.sin(n)}});return(0,Te.jsxs)("div",{"data-testid":"flywheel",className:"relative hidden md:block mx-auto w-full max-w-[860px] aspect-square",children:[(0,Te.jsxs)("svg",{"aria-hidden":!0,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",className:"absolute inset-0 w-full h-full",children:[(0,Te.jsx)("defs",{children:(0,Te.jsxs)("linearGradient",{id:"orbitStroke",x1:"0",x2:"1",y1:"0",y2:"1",children:[(0,Te.jsx)("stop",{offset:"0%",stopColor:"#6d46c6",stopOpacity:"0.35"}),(0,Te.jsx)("stop",{offset:"50%",stopColor:"#5eead4",stopOpacity:"0.6"}),(0,Te.jsx)("stop",{offset:"100%",stopColor:"#6d46c6",stopOpacity:"0.35"})]})}),(0,Te.jsx)("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"#eeeaf6",strokeWidth:"0.35"}),(0,Te.jsxs)("g",{style:{transformOrigin:"50px 50px",animation:"flywheelSpin 40s linear infinite"},children:[(0,Te.jsx)("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"url(#orbitStroke)",strokeWidth:"0.35",strokeDasharray:"1.2 2.2"}),(0,Te.jsx)("circle",{cx:"90",cy:"50",r:"1.4",fill:"#5eead4"})]}),(0,Te.jsx)("circle",{cx:"50",cy:"50",r:"22",fill:"none",stroke:"#eeeaf6",strokeWidth:"0.3"})]}),(0,Te.jsx)("div",{"data-testid":"flywheel-hub",className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-10",children:(0,Te.jsxs)("div",{className:"w-[220px] h-[220px] lg:w-[240px] lg:h-[240px] rounded-full bg-[#261c4d] text-white flex flex-col items-center justify-center shadow-[0_30px_80px_-20px_rgba(38,28,77,0.55)]",children:[(0,Te.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-[0.24em] text-[#5eead4]",children:"uplaud"}),(0,Te.jsx)("span",{className:"mt-2 font-display text-[22px] lg:text-[26px] font-semibold tracking-tight leading-tight text-center px-6",children:"The trust engine"}),(0,Te.jsx)("span",{className:"mt-3 text-[11px] text-white/60",children:"Runs 24 / 7 \xb7 autopilot"})]})}),ja.map((t,n)=>{const r=e[n];return(0,Te.jsx)("div",{"data-testid":"flywheel-station-".concat(n),className:"absolute -translate-x-1/2 -translate-y-1/2 w-[210px] lg:w-[240px] group",style:{left:"".concat(r.left,"%"),top:"".concat(r.top,"%")},children:(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white p-4 lg:p-5 shadow-[0_20px_50px_-30px_rgba(38,28,77,0.35)] hover:border-[#6d46c6] transition-colors",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)("div",{className:"w-9 h-9 rounded-full bg-[#f5f3ff] text-[#6d46c6] flex items-center justify-center group-hover:bg-[#5eead4] group-hover:text-[#261c4d] transition-colors",children:(0,Te.jsx)(t.icon,{className:"w-4 h-4",strokeWidth:1.75})}),(0,Te.jsx)("span",{className:"text-[9.5px] font-mono uppercase tracking-widest text-[#9ca3af]",children:t.tag.split(" \xb7 ")[0]})]}),(0,Te.jsx)("div",{className:"mt-3 text-[10px] font-mono uppercase tracking-widest text-[#6d46c6]",children:t.tag.split(" \xb7 ")[1]}),(0,Te.jsx)("div",{className:"mt-1 font-display text-[15px] lg:text-[16
2px] font-semibold text-[#111827] leading-snug",children:t.title}),(0,Te.jsx)("p",{className:"mt-1.5 text-[11.5px] lg:text-[12px] leading-relaxed text-[#4b5563]",children:t.body})]})},t.key)}),(0,Te.jsx)("style",{children:"\n        @keyframes flywheelSpin {\n          from { transform: rotate(0deg); }\n          to   { transform: rotate(360deg); }\n        }\n      "})]})}function Fa(){const e=(0,i.useRef)(null);return(0,i.useEffect)(()=>{const t=e.current;if(!t)return;const n=t.getContext("2d");let r;const a=[];let s=0,i=0;const o=()=>{(()=>{const e=Math.min(window.devicePixelRatio||1,2),r=t.getBoundingClientRect();s=r.width,i=r.height,t.width=s*e,t.height=i*e,n.setTransform(e,0,0,e,0,0)})(),a.length=0;const e=Math.max(28,Math.floor(s*i/22e3));for(let t=0;t<e;t++)a.push({x:Math.random()*s,y:Math.random()*i,vx:.22*(Math.random()-.5),vy:.22*(Math.random()-.5),r:1.4*Math.random()+.6,hot:Math.random()>.85})},l=()=>{n.clearRect(0,0,s,i);for(let e=0;e<a.length;e++)for(let t=e+1;t<a.length;t++){const r=a[e],s=a[t],i=r.x-s.x,o=r.y-s.y,l=Math.sqrt(i*i+o*o);if(l<150){const e=.35*(1-l/150);n.strokeStyle=r.hot||s.hot?"rgba(94, 234, 212, ".concat(e,")"):"rgba(191, 167, 234, ".concat(.55*e,")"),n.lineWidth=.6,n.beginPath(),n.moveTo(r.x,r.y),n.lineTo(s.x,s.y),n.stroke()}}a.forEach(e=>{e.x+=e.vx,e.y+=e.vy,(e.x<0||e.x>s)&&(e.vx*=-1),(e.y<0||e.y>i)&&(e.vy*=-1),n.beginPath(),n.arc(e.x,e.y,e.r,0,2*Math.PI),n.fillStyle=e.hot?"#5eead4":"rgba(191,167,234,0.65)",n.fill(),e.hot&&(n.beginPath(),n.arc(e.x,e.y,e.r+3,0,2*Math.PI),n.strokeStyle="rgba(94,234,212,0.4)",n.lineWidth=.8,n.stroke())}),r=requestAnimationFrame(l)};o(),l();const u=new ResizeObserver(o);return u.observe(t),()=>{cancelAnimationFrame(r),u.disconnect()}},[]),(0,Te.jsx)("canvas",{ref:e,"data-testid":"trust-graph-canvas",className:"absolute inset-0 w-full h-full"})}const Na=[{name:"Referral Agent",body:"Reads the sentiment of each testimonial and creates a personalized referral campaign with a loyalty offer &mdash; queued up for your customer to share with the friends of their choice."},{name:"Insights Agent",body:"Reads every review and comment. Tells you which stories, features and pain points actually convert &mdash; by segment."},{name:"Acquisition Agent",body:"Turns high-signal customer stories into lookalike audiences, ad creative and landing pages &mdash; then ships to Meta, Google or TikTok."},{name:"Social Agent",body:"Watches Reddit, X and Quora for questions your customers already answered. Surfaces the right testimonial, on brand, on demand."}];function Aa(){return(0,Te.jsxs)("section",{id:"agents","data-testid":"ai-engine-section",className:"relative overflow-hidden bg-[#261c4d] text-white py-24 md:py-32 noise",children:[(0,Te.jsx)("div",{className:"absolute inset-0 grid-bg opacity-30 pointer-events-none"}),(0,Te.jsx)("div",{className:"absolute inset-0",children:(0,Te.jsx)(Fa,{})}),(0,Te.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-[#261c4d]/40 to-[#261c4d] pointer-events-none"}),(0,Te.jsx)("div",{className:"relative max-w-[1240px] mx-auto px-6 md:px-10",children:(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10 items-start",children:[(0,Te.jsxs)("div",{className:"lg:col-span-6",children:[(0,Te.jsxs)("span",{className:"chip chip-dark","data-testid":"engine-eyebrow",children:[(0,Te.jsx)(la,{className:"w-3.5 h-3.5 text-[#5eead4]",strokeWidth:1.75}),"Uplaud AI Agents"]}),(0,Te.jsxs)("h2",{"data-testid":"engine-headline",className:"mt-6 font-display text-[38px] sm:text-[52px] lg:text-[64px] leading-[1.02] font-semibold tracking-tight",children:["Marketing on",(0,Te.jsx)("br",{}),(0,Te.jsx)("span",{className:"text-[#5eead4]",children:"autopilot"}),". You stay in command."]}),(0,Te.jsx)("p",{className:"mt-6 max-w-lg text-[16px] leading-relaxed text-white/70",children:"A team of AI Agents that read your trust data, spot the moves worth making, and execute them across your acquisition stack. Approve, tweak or take manual control. Uplaud never ships without you."}),(0,Te.jsxs)("div",{className:"mt-8 inline-flex items-center gap-2 text-[13px] text-white/60",children:[(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[#5eead4]"}),"Human-in-the-loop by default"]})]}),(0,Te.jsx)("div",{className:"lg:col-span-6 grid grid-cols-1 sm:grid-cols-2 gap-3",children:Na.map((e,t)=>(0,Te.jsxs)("div",{"data-testid":"agent-".concat(t),className:"rounded-2xl p-5 border border-white/10 bg-white/[0.03] backdrop-blur-sm hover:border-[#5eead4]/60 transition-colors",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsxs)("span",{className:"text-[11px] font-mono uppercase tracking-widest text-white/50",children:["agent \xb7 0",t+1]}),(0,Te.jsx)(xa,{className:"w-3.5 h-3.5 text-white/40",strokeWidth:2})]}),(0,Te.jsx)("h3",{className:"mt-4 font-display text-[19px] font-semibold tracking-tight text-white",children:e.name}),(0,Te.jsx)("p",{className:"mt-2 text-[13px] leading-relaxed text-white/65",dangerouslySetInnerHTML:{__html:e.body}})]},e.name))})]})})]})}const Sa=Kr("handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}
2]]),_a=Kr("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),Ba=Kr("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Ta=[{icon:Da,tag:"paid",title:"Meta, Google & TikTok ads",body:"Story-driven creative and lookalikes built from customers who already converted."},{icon:oa,tag:"social",title:"Reddit, X & community threads",body:"Surface the right testimonial to the right question, on-brand and in-context."},{icon:ya,tag:"AI search",title:"ChatGPT, Perplexity & Gemini",body:"Make your customer trust visible to the AI engines your future buyers are asking."},{icon:Sa,tag:"referrals",title:"One-tap warm referrals",body:"Turn happy customers into personalised intros that arrive pre-sold."},{icon:_a,tag:"web & SEO",title:"Landing pages & SEO/GEO",body:"Ship social proof pages built from your best customer stories, ranked for the queries that matter."},{icon:Ba,tag:"sales",title:"CRM follow-ups & sales calls",body:"The perfect proof point auto-suggested in every follow-up email and pipeline touch."}];function Ra(){return(0,Te.jsx)("section",{id:"surfaces","data-testid":"surfaces-section",className:"relative py-24 md:py-32 bg-white",children:(0,Te.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10",children:[(0,Te.jsxs)("div",{className:"max-w-3xl mb-14",children:[(0,Te.jsx)("span",{className:"section-label",children:"03 / activation"}),(0,Te.jsxs)("h2",{"data-testid":"surfaces-headline",className:"mt-4 font-display text-[36px] sm:text-[48px] lg:text-[60px] leading-[1.02] font-semibold tracking-tight text-[#111827]",children:["One trust engine.",(0,Te.jsx)("br",{}),(0,Te.jsx)("span",{className:"mint-underline",children:"Every acquisition surface."})]}),(0,Te.jsx)("p",{className:"mt-5 text-[15.5px] leading-relaxed text-[#4b5563] max-w-xl",children:"Uplaud does not just capture trust. It activates it wherever a future customer will meet your brand next."})]}),(0,Te.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Ta.map((e,t)=>(0,Te.jsxs)("div",{"data-testid":"surface-".concat(t),className:"group rounded-2xl border border-[#eeeaf6] bg-white p-7 hover:border-[#6d46c6] hover:shadow-[0_20px_50px_-30px_rgba(38,28,77,0.35)] transition-all",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)("div",{className:"w-10 h-10 rounded-full bg-[#f5f3ff] flex items-center justify-center text-[#6d46c6] group-hover:bg-[#5eead4] group-hover:text-[#261c4d] transition-colors",children:(0,Te.jsx)(e.icon,{className:"w-4 h-4",strokeWidth:1.75})}),(0,Te.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-widest text-[#9ca3af]",children:e.tag})]}),(0,Te.jsx)("h3",{className:"mt-6 font-display text-[19px] font-semibold tracking-tight text-[#111827]",children:e.title}),(0,Te.jsx)("p",{className:"mt-2 text-[13.5px] leading-relaxed text-[#4b5563]",children:e.body})]},t))})]})})}const Pa=[{value:"2.6x",label:"paid CAC efficiency",body:"When ads run on real customer stories, not agency copy."},{value:"-38%",label:"cost per new customer",body:"Blended across referrals, warm leads and smarter paid."},{value:"71%",label:"of advocates refer",body:"Of the customers Uplaud identifies, most send at least one."}];function Oa(){return(0,Te.jsxs)("section",{id:"results","data-testid":"outcomes-section",className:"relative py-24 md:py-32 bg-[#261c4d] text-white overflow-hidden",children:[(0,Te.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(60% 60% at 50% 20%, rgba(94,234,212,0.14), transparent 70%)"}}),(0,Te.jsxs)("div",{className:"relative max-w-[1240px] mx-auto px-6 md:px-10",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10 items-end mb-12 md:mb-16",children:[(0,Te.jsxs)("div",{className:"lg:col-span-7",children:[(0,Te.jsx)("span",{className:"section-label section-label-dark",children:"04 / results"}),(0,Te.jsxs)("h2",{"data-testid":"outcomes-headline",className:"mt-4 font-display text-[36px] sm:text-[48px] lg:text-[60px] leading-[1.02] font-semibold tracking-tight",children:["Every spin makes",(0,Te.jsx)("br",{}),"your CAC"," ",(0,Te.jsx)("span",{className:"text-[#5eead4]",children:"cheaper."})]})]}),(0,Te.jsx)("div",{className:"lg:col-span-5",children:(0,Te.jsx)("p",{className:"text-[15px] leading-relaxed text-white/65",children:"Cold acquisition gets more expensive every quarter. Trust-driven acquisition gets cheaper. That gap is the whole thesis."})})]}),(0,Te.jsxs)("div",{className:"relative rounded-2xl border border-white/10 bg-white/[0.03] p-6 md:p-8 mb-6",children:[(0,Te.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-4 mb-6",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-[11px] font-mono uppercase tracking-widest text-white/60",children:[(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[#9ca3af]"}),"cold acquisition \xb7 cost per customer",(0,Te.jsx)("span",{className:"mx-3",children:"|"}),(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[#5eead4]"}),"uplaud \xb7 cost per customer"]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-[11px] font-mono text-white/45",children:["12 months",(0,Te.jsx)(aa,{className:"w-3.5 h-3.5 text-[#5eead4]",strokeWidth:2})]})]}),(0,Te.jsxs)("svg",{"data-testid":"results-chart",viewBox:"0 0 800 200",preserveAspectRatio:"none",className:"w-full h-[180px] md:h-[220px]",children:[[0,1,2,3].map(e=>(0,Te.jsx)("line",{x1:"0",x2:"800",y1:40+40*e,y2:40+40*e,stroke:"rgba(255,255,255,0.06)",strokeWidth:"1"},e)),(0,Te.jsx)("path",{d:"M 0 140 C 120 130, 240 120, 360 105 S 600 60, 800 30",fill:"none",stroke:"#9ca3af",strokeWidth:"2",strokeLinecap:"round"}),(0,Te.jsx)("path",{d:"M 0 130 C 140 130, 260 140, 380 150 S 620 178, 800 185",fill:"none",stroke:"#5eead4",strokeWidth:"2.5",strokeLinecap:"round"}),(0,Te.jsx)("circle",{cx:"800",cy:"30",r:"4",fill:"#9ca3af"}),(0,Te.jsx)("circle",{cx:"800",cy:"185",r:"4.5",fill:"#5eead4"})]}),(0,Te.jsxs)("div",{className:"mt-2 flex items-center justify-between text-[10px] font-mono uppercase tracking-widest text-white/40",children:[(0,Te.jsx)("span",{children:"month 0"}),(0,Te.jsx)("span",{children:"month 12"})]})]}),(0,Te.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:Pa.map((e,t)=>(0,Te.jsxs)("div",{"data-testid":"outcome-".concat(t),className:"border border-white/10 rounded-2xl p-8 bg-white/[0.03]",children:[(0,Te.jsx)("div",{className:"font-display text-[72px] md:text-[84px] leading-[0.9] tracking-tight font-semibold text-[#5eead4]",children:e.value}),(0,Te.jsx)("div",{className:"mt-6 text-[13px] font-mono uppercase tracking-widest text-white/70",children:e.label}),(0,Te.jsx)("p",{className:"mt-3 text-[13px] leading-relaxed text-white/60 max-w-xs",children:e.body})]},t))}),(0,Te.jsxs)("div",{className:"mt-10 flex flex-wrap items-center justify-between gap-4",children:[(0,Te.jsx)("p",{className:"text-[12px] text-white/40 max-w-2xl",children:"Reference metrics from Uplaud pilots. Your baseline improves as more trust flows into the wheel."}),(0,Te.jsxs)("a",{href:"#demo","data-testid":"results-cta",className:"btn-primary btn-mint",children:["Start your flywheel",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]})]})]})}function La(e,t){return function(){return e.apply(t,arguments)}}const Ia=Object.prototype.toString,Ma=Object.getPrototypeOf,za=Symbol.iterator,Ua=Symbol.toStringTag,qa=(()=>{let e=Object.prototype.hasOwnProperty;return(t,n)=>e.call(t,n)})(),Wa=(e,t)=>{let n=e;const r=[];for(;null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),qa(n,t))return!0;n=Ma(n)}return!1},Ha=(e=>t=>{const n=Ia.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Va=e=>(e=e.toLowerCase(),t=>Ha(t)===e),Ga=e=>t=>typeof t===e,$a=Array.isArray,Ka=Ga("undefined");function Qa(e){return null!==e&&!Ka(e)&&null!==e.constructor&&!Ka(e.constructor)&&Xa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ya=Va("ArrayBuffer");const Ja=Ga("string"),Xa=Ga("function"),Za=Ga("number"),es=e=>null!==e&&"object"===typeof e,ts=e=>{if(!es(e))return!1;const t=Ma(e);return(null===t||t===Object.prototype||null===Ma(t))&&!Wa(e,Ua)&&!Wa(e,za)},ns=Va("Date"),rs=Va("File"),as=Va("Blob"),ss=Va("FileList");const is="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},os="undefined"!==typeof is.FormData?is.FormData:void 0,ls=Va("URLSearchParams"),us=qe(["ReadableStream","Request","Response","Headers"].map(Va),4),cs=us[0],ds=us[1],hs=us[2],fs=us[3];function ps(e,t){let n,r,a=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,s=void 0!==a&&a;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),$a(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(Qa(e))return;const r=s?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let i;for(n=0;n<a;n++)i=r[n],t.call(null,e[i],i,e)}}function ms(e,t){if(Qa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}const xs="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g,gs=e=>!Ka(e)&&e!==xs;const vs=(bs="undefined"!==typeof Uint8Array&&Ma(Uint8Array),e=>bs&&e instanceof bs);var bs;const ys=Va("HTMLFormElement"),Ds=Object.prototype.propertyIsEnumerable,ws=Va("RegExp"),ks=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ps(n,(n,a)=>{let s;!1!==(s=t(n,a,e))&&(r[a]=s||n)}),Object.defineProperties(e,r)};const js=Va("AsyncFunction"),Cs=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),r=[],xs.addEventListener("message",e=>{let t=e.source,a=e.data;t===xs&&a===n&&r.length&&r.shift()()},!1),e=>{r.push(e),xs.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,Xa(xs.postMessage)),Es="undefined"!==typeof queueMicrotask?queueMicrotask.bind(xs):"undefined"!==typeof process&&process.nextTick||Cs,Fs=e=>null!=e&&Xa(e[za]),Ns={isArray:$a,isArrayBuffer:Ya,isBuffer:Qa,isFormData:e=>{if(!e)return!1;if(os&&e instanceof os)return!0;const t=Ma(e);if(!t||t===Object.prototype)return!1;if(!Xa(e.append))return!1;const n=Ha(e);return"formdata"===n||"object"===n&&Xa(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ya(e.buffer),t},isString:Ja,isNumber:Za,isBoolean:e=>!0===e||!1===e,isObject:es,isPlainObject:ts,isEmptyObject:e=>{if(!es(e)||Qa(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(tN){return!1}},isReadableStream:cs,isRequest:ds,isResponse:hs,isHeaders:fs,isUndefined:Ka,isDate:ns,isFile:rs,isReactNativeBlob:e=>!(!e||"undefined"===typeof e.uri),isReactNative:e=>e&&"undefined"!==typeof e.getParts,isBlob:as,isRegExp:ws,isFunction:Xa,isStream:e=>es(e)&&Xa(e.pipe),isURLSearchParams:ls,isTypedArray:vs,isFileList:ss,forEach:ps,merge:function e(){const t=gs(this)&&this||{},n=t.caseless,r=t.skipUndefined,a={},s=(t,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const i=n&&"string"===typeof s&&ms(a,s)||s,o=qa(a,i)?a[i]:void 0;ts(o)&&ts(t)?a[i]=e(o,t):ts(t)?a[i]=e({},t):$a(t)?a[i]=t.slice():r&&Ka(t)||(a[i]=t)};for(let i=0,o=arguments.length;i<o;i++){const e=i<0||arguments.length<=i?void 0:arguments[i];if(!e||Qa(e))continue;if(ps(e,s),"object"!==typeof e||$a(e))continue;const t=Object.getOwnPropertySymbols(e);for(let n=0;n<t.length;n++){const r=t[n];Ds.call(e,r)&&s(e[r],r)}}return a},extend:function(e,t,n){return ps(t,(t,r)=>{n&&Xa(t)?Object.defineProperty(e,r,{__proto__:null,value:La(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 4,253 bytes, line 2
2configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,s,i;const o={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],r&&!r(i,e,t)||o[i]||(t[i]=e[i],o[i]=!0);e=!1!==n&&Ma(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ha,kindOfTest:Va,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if($a(e))return e;let t=e.length;if(!Za(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[za]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ys,hasOwnProperty:qa,hasOwnProp:qa,hasOwnInPrototypeChain:Wa,getSafeProp:(e,t)=>null!=e&&Wa(e,t)?e[t]:void 0,reduceDescriptors:ks,freezeMethods:e=>{ks(e,(t,n)=>{if(Xa(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];Xa(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return $a(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ms,global:xs,isContextDefined:gs,isSpecCompliantForm:function(e){return!!(e&&Xa(e.append)&&"FormData"===e[Ua]&&e[za])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(es(e)){if(t.has(e))return;if(Qa(e))return e;if(!("toJSON"in e)){t.add(e);const r=$a(e)?[]:{};return ps(e,(e,t)=>{const a=n(e);!Ka(a)&&(r[t]=a)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:js,isThenable:e=>e&&(es(e)||Xa(e))&&Xa(e.then)&&Xa(e.catch),setImmediate:Cs,asap:Es,isIterable:Fs,isSafeIterable:e=>null!=e&&Wa(e,za)&&Fs(e)},As=Ns.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ss=e=>{const t={};let n,r,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&As[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};n.dn(Ss);const _s=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Bs=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ts(e,t){return Ns.isArray(e)?e.map(e=>Ts(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function Rs(e){const t=Object.create(null);return Ns.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>Ts(e,Bs))(e)}),t}const Ps=Symbol("internals");function Os(e){return e&&String(e).trim().toLowerCase()}function Ls(e){return!1===e||null==e?e:Ns.isArray(e)?e.map(Ls):(e=>Ts(e,_s))(String(e))}function Is(e,t,n,r,a){return Ns.isFunction(r)?r.call(this,t,n):(a&&(t=n),Ns.isString(t)?Ns.isString(r)?-1!==t.indexOf(r):Ns.isRegExp(r)?r.test(t):void 0:void 0)}class Ms{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=Os(t);if(!a)return;const s=Ns.findKey(r,a);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Ls(e))}const s=(e,t)=>Ns.forEach(e,(e,n)=>a(e,n,t));if(Ns.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(Ns.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s(Ss(e),t);else if(Ns.isObject(e)&&Ns.isSafeIterable(e)){let n,r,a=Object.create(null);for(const t of e){if(!Ns.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],Ns.hasOwnProp(a,r)?(n=a[r],a[r]=Ns.isArray(n)?[...n,t[1]]:[n,t[1]]):a[r]=t[1]}s(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Os(e)){const n=Ns.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;
2=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ns.isFunction(t))return t.call(this,e,n);if(Ns.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Os(e)){const n=Ns.findKey(this,e);return!(!n||void 0===this[n]||t&&!Is(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=Os(e)){const a=Ns.findKey(n,e);!a||t&&!Is(0,n[a],a,t)||(delete n[a],r=!0)}}return Ns.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const a=t[n];e&&!Is(0,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return Ns.forEach(this,(r,a)=>{const s=Ns.findKey(n,a);if(s)return t[s]=Ls(r),void delete t[a];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(a):String(a).trim();i!==a&&delete t[a],t[i]=Ls(r),n[i]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return Ns.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ns.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let t=qe(e,2);return t[0]+": "+t[1]}).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[Ps]=this[Ps]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Os(e);t[r]||(!function(e,t){const n=Ns.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})})}(n,e),t[r]=!0)}return Ns.isArray(e)?e.forEach(r):r(e),this}}Ms.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ns.reduceDescriptors(Ms.prototype,(e,t)=>{let n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}}),Ns.freezeMethods(Ms);const zs=Ms;function Us(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],a=e=>{if(null===e||"object"!==typeof e)return e;if(Ns.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof zs&&(e=e.toJSON()),r.push(e),Ns.isArray(e))t=[],e.forEach((e,n)=>{const r=a(e);Ns.isUndefined(r)||(t[n]=r)});else{if(!Ns.isPlainObject(e)&&function(e){if(Ns.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Ns.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const r of Object.entries(e)){var s=qe(r,2);const e=s[0],i=s[1],o=n.has(e.toLowerCase())?"[REDACTED ****]":a(i);Ns.isUndefined(o)||(t[e]=o)}}return r.pop(),t};return a(e)}class qs extends Error{static from(e,t,n,r,a,s){const i=new qs(e.message,t||e.code,n,r,a);return i.cause=e,i.name=e.name,null!=e.status&&null==i.status&&(i.status=e.status),s&&Object.assign(i,s),i}constructor(e,t,n,r,a){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status)}toJSON(){const e=this.config,t=e&&Ns.hasOwnProp(e,"redact")?e.redact:void 0,n=Ns.isArray(t)&&t.length>0?Us(e,t):Ns.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}qs.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",qs.ERR_BAD_OPTION="ERR_BAD_OPTION",qs.ECONNABORTED="ECONNABORTED",qs.ETIMEDOUT="ETIMEDOUT",qs.ECONNREFUSED="ECONNREFUSED",qs.ERR_NETWORK="ERR_NETWORK",qs.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",qs.ERR_DEPRECATED="ERR_DEPRECATED",qs.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",qs.ERR_BAD_REQUEST="ERR_BAD_REQUEST",qs.ERR_CANCELED="ERR_CANCELED",qs.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",qs.ERR_INVALID_URL="ERR_INVALID_URL",qs.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Ws=qs;function Hs(e){return Ns.isPlainObject(e)||Ns.isArray(e)}function Vs(e){return Ns.endsWith(e,"[]")?e.slice(0,-2):e}function Gs(e,t,n){return e?e.concat(t).map(function(e,t){return e=Vs(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const $s=Ns.toFlatObject(Ns,{},null,function(e){return/^is[A-Z]/.test(e)});const Ks=function(e,t,n){if(!Ns.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ns.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Ns.isUndefined(t[e])})).metaTokens,a=n.visitor||f,s=n.dots,i=n.indexes,o=n.Blob||"undefined"!==typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,u=o&&Ns.isSpecCompliantForm(t),c=[];if(!Ns.isFunction(a))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(Ns.isDate(e))return e.toISOString();if(Ns.isBoolean(e))return e.toString();if(!u&&Ns.isBlob(e))throw new Ws("Blob is not supported. Use a Buffer instead.");return Ns.isArrayBuffer(e)||Ns.isTypedArray(e)?u&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function h(e){if(e>l)throw new Ws("Object is too deeply nested ("+e+" levels). Max depth: "+l,Ws.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(e,n,a){let o=e;if(Ns.isReactNative(t)&&Ns.isReactNativeBlob(e))return t.append(Gs(a,n,s),d(e)),!1;if(e&&!a&&"object"===typeof e)if(Ns.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!Ns.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),h(t+n.length-1),r})}(e,1);else if(Ns.isArray(e)&&function(e){return Ns.isArray(e)&&!e.some(Hs)}(e)||(Ns.isFileList(e)||Ns.endsWith(n,"[]"))&&(o=Ns.toArray(e)))return n=Vs(n),o.forEach(function(e,r){!Ns.isUndefined(e)&&null!==e&&t.append(!0===i?Gs([n],r,s):null===i?n:n+"[]",d(e))}),!1;return!!Hs(e)||(t.append(Gs(a,n,s),d(e)),!1)}const p=Object.assign($s,{defaultVisitor:f,convertValue:d,isVisitable:Hs});if(!Ns.isObject(e))throw new TypeError("data must be an object");return function e(n,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Ns.isUndefined(n)){if(h(s),-1!==c.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));c.push(n),Ns.forEach(n,function(n,i){!0===(!(Ns.isUndefined(n)||null===n)&&a.call(t,n,Ns.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i],s+1)}),c.pop()}}(e),t};
2function Qs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ys(e,t){this._pairs=[],e&&Ks(e,this,t)}const Js=Ys.prototype;Js.append=function(e,t){this._pairs.push([e,t])},Js.toString=function(e){const t=e?function(t){return e.call(this,t,Qs)}:Qs;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Xs=Ys;function Zs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ei(e,t,n){if(!t)return e;const r=Ns.isFunction(n)?{serialize:n}:n,a=Ns.getSafeProp(r,"encode")||Zs,s=Ns.getSafeProp(r,"serialize");let i;if(i=s?s(t,r):Ns.isURLSearchParams(t)?t.toString():new Xs(t,r).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ti=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ns.forEach(this.handlers,function(t){null!==t&&e(t)})}},ni={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ri={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Xs,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ai="undefined"!==typeof window&&"undefined"!==typeof document,si="object"===typeof navigator&&navigator||void 0,ii=ai&&(!si||["ReactNative","NativeScript","NS"].indexOf(si.product)<0),oi="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,li=ai&&window.location.href||"http://localhost",ui=f(f({},r),ri);function ci(e){if(e>100)throw new Ws("FormData field is too deeply nested ("+e+" levels). Max depth: 100",Ws.ERR_FORM_DATA_DEPTH_EXCEEDED)}const di=function(e){function t(e,n,r,a){ci(a);let s=e[a++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),o=a>=e.length;if(s=!s&&Ns.isArray(r)?r.length:s,o)return Ns.hasOwnProp(r,s)?r[s]=Ns.isArray(r[s])?r[s].concat(n):[r[s],n]:r[s]=n,!i;Ns.hasOwnProp(r,s)&&Ns.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],a)&&Ns.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const a=n.length;let s;for(r=0;r<a;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(Ns.isFormData(e)&&Ns.isFunction(e.entries)){const n={};return Ns.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;null!==(r=n.exec(e));)ci(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),n}return null},hi=(e,t)=>null!=e&&Ns.hasOwnProp(e,t)?e[t]:void 0;const fi={transitional:ni,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=Ns.isObject(e);a&&Ns.isHTMLForm(e)&&(e=new FormData(e));if(Ns.isFormData(e))return r?JSON.stringify(di(e)):e;if(Ns.isArrayBuffer(e)||Ns.isBuffer(e)||Ns.isStream(e)||Ns.isFile(e)||Ns.isBlob(e)||Ns.isReadableStream(e))return e;if(Ns.isArrayBufferView(e))return e.buffer;if(Ns.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;
2if(a){const t=hi(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ks(e,new ui.classes.URLSearchParams,f({visitor:function(e,t,n,r){return ui.isNode&&Ns.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,t).toString();if((s=Ns.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=hi(this,"env"),r=n&&n.FormData;return Ks(s?{"files[]":e}:e,r&&new r,t)}}return a||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ns.isString(e))try{return(t||JSON.parse)(e),Ns.trim(e)}catch(tN){if("SyntaxError"!==tN.name)throw tN}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=hi(this,"transitional")||fi.transitional,n=t&&t.forcedJSONParsing,r=hi(this,"responseType"),a="json"===r;if(Ns.isResponse(e)||Ns.isReadableStream(e))return e;if(e&&Ns.isString(e)&&(n&&!r||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,hi(this,"parseReviver"))}catch(tN){if(n){if("SyntaxError"===tN.name)throw Ws.from(tN,Ws.ERR_BAD_RESPONSE,this,null,hi(this,"response"));throw tN}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ui.classes.FormData,Blob:ui.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ns.forEach(["delete","get","head","post","put","patch","query"],e=>{fi.headers[e]={}});const pi=fi;function mi(e,t){const n=this||pi,r=t||n,a=zs.from(r.headers);let s=r.data;return Ns.forEach(e,function(e){s=e.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function xi(e){return!(!e||!e.__CANCEL__)}const gi=class extends Ws{constructor(e,t,n){super(null==e?"canceled":e,Ws.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function vi(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ws("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ws.ERR_BAD_REQUEST:Ws.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const bi=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,s=0,i=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),u=r[i];a||(a=l),n[s]=o,r[s]=l;let c=i,d=0;for(;c!==s;)d+=n[c++],c%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-a<t)return;const h=u&&l-u;return h?Math.round(1e3*d/h):void 0}};const yi=function(e,t){let n,r,a=0,s=1e3/t;const i=function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();a=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[function(){const e=Date.now(),t=e-a;for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];t>=s?i(l,e):(n=l,r||(r=setTimeout(()=>{r=null,i(n)},s-t)))},()=>n&&i(n)]},Di=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const a=bi(50,250);return yi(n=>{if(!n||"number"!==typeof n.loaded)return;const s=n.loaded,i=n.lengthComputable?n.total:void 0,o=null!=i?Math.min(s,i):s,l=Math.max(0,o-r),u=a(l);r=Math.max(r,o);e({loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:u||void 0,estimated:u&&i?(i-o)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},wi=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ki=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ns.asap(()=>e(...n))},ji=ui.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ui.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ui.origin),ui.navigator&&/(msie|trident)/i.test(ui.navigator.userAgent)):()=>!0,Ci=ui.hasStandardBrowserEnv?{write(e,t,n,r,a,s,i){if("undefined"===typeof document)return;const o=["".concat(e,"=").concat(encodeURIComponent(t))];Ns.isNumber(n)&&o.push("expires=".concat(new Date(n).toUTCString())),Ns.isString(r)&&o.push("path=".concat(r)),Ns.isString(a)&&o.push("domain=".concat(a)),!0===s&&o.push("secure"),Ns.isString(i)&&o.push("SameSite=".concat(i)),document.cookie=o.join("; ")},read(e){if("undefined"===typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(-1!==a&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};const Ei=/^https?:(?!\/\/)/i,Fi=/[\t\n\r]/g;function Ni(e,t){if("string"===typeof e&&Ei.test(function(e){return function(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}(e).replace(Fi,"")}(e)))throw new Ws('Invalid URL: missing "//" after protocol',Ws.ERR_INVALID_URL,t)}function Ai(e,t,n,r){Ni(t,r);let a=!("string"===typeof(s=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s));var s;return e&&(a||!1===n)?(Ni(e,r),function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t)):t}const Si=e=>e instanceof zs?f({},e):e;
vendor: 1,908 bytes, line 2
2function _i(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return Ns.isPlainObject(e)&&Ns.isPlainObject(t)?Ns.merge.call({caseless:r},e,t):Ns.isPlainObject(t)?Ns.merge({},t):Ns.isArray(t)?t.slice():t}function a(e,t,n,a){return Ns.isUndefined(t)?Ns.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function s(e,t){if(!Ns.isUndefined(t))return r(void 0,t)}function i(e,t){return Ns.isUndefined(t)?Ns.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function o(n,a,s){return Ns.hasOwnProp(t,s)?r(n,a):Ns.hasOwnProp(e,s)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:o,headers:(e,t,n)=>a(Si(e),Si(t),0,!0)};return Ns.forEach(Object.keys(f(f({},e),t)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const s=Ns.hasOwnProp(l,r)?l[r]:a,i=s(Ns.hasOwnProp(e,r)?e[r]:void 0,Ns.hasOwnProp(t,r)?t[r]:void 0,r);Ns.isUndefined(i)&&s!==o||(n[r]=i)}),Ns.hasOwnProp(t,"validateStatus")&&Ns.isUndefined(t.validateStatus)&&!1===function(n){const r=Ns.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Ns.isUndefined(r)){if(!Ns.isPlainObject(r))return;if(Ns.hasOwnProp(r,n))return r[n]}const a=Ns.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Ns.isPlainObject(a)&&Ns.hasOwnProp(a,n))return a[n]}("validateStatusUndefinedResolves")&&(Ns.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
2idateStatus),n}const Bi=["content-type","content-length"];const Ti=function(e){const t=_i({},e),n=e=>Ns.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let a=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let o=n("headers");const l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");if(t.headers=o=zs.from(o),t.url=ei(Ai(u,d,c,t),n("params"),n("paramsSerializer")),l){const e=Ns.getSafeProp(l,"username")||"",t=Ns.getSafeProp(l,"password")||"";o.set("Authorization","Basic "+btoa(e+":"+(t?encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}if(Ns.isFormData(r)&&(ui.hasStandardBrowserEnv||ui.hasStandardBrowserWebWorkerEnv||Ns.isReactNative(r)?o.setContentType(void 0):Ns.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(t=>{let n=qe(t,2),r=n[0],a=n[1];Bi.includes(r.toLowerCase())&&e.set(r,a)}):e.set(t)}(o,r.getHeaders(),n("formDataHeaderPolicy"))),ui.hasStandardBrowserEnv){Ns.isFunction(a)&&(a=a(t));if(!0===a||null==a&&ji(t.url)){const e=s&&i&&Ci.read(i);e&&o.set(s,e)}}return t},Ri="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ti(e);let a=r.data;const s=zs.from(r.headers).normalize();let i,o,l,u,c,d=r.responseType,h=r.onUploadProgress,f=r.onDownloadProgress;function p(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function x(){if(!m)return;const r=zs.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());vi(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}if(m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=x:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(x)},m.onabort=function(){m&&(n(new Ws("Request aborted",Ws.ECONNABORTED,e,m)),p(),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",a=new Ws(r,Ws.ERR_NETWORK,e,m);a.event=t||null,n(a),p(),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||ni;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ws(t,a.clarifyTimeoutError?Ws.ETIMEDOUT:Ws.ECONNABORTED,e,m)),p(),m=null},void 0===a&&s.setContentType(null),"setRequestHeader"in m&&Ns.forEach(Rs(s),function(e,t){m.setRequestHeader(t,e)}),Ns.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f){var g=qe(Di(f,!0),2);l=g[0],c=g[1],m.addEventListener("progress",l)}if(h&&m.upload){var v=qe(Di(h),2);o=v[0],u=v[1],m.upload.addEventListener("progress",o),m.upload.addEventListener("loadend",u)}(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new gi(null,e,m):t),m.abort(),p(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!b||ui.protocols.includes(b)?m.send(a||null):n(new Ws("Unsupported protocol "+b+":",Ws.ERR_BAD_REQUEST,e))})},Pi=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Ws?t:new gi(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,a(new Ws("timeout of ".concat(t,"ms exceeded"),Ws.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const o=n.signal;return o.unsubscribe=()=>Ns.asap(i),o};function Oi(e,t){this.v=e,this.k=t}function Li(e){return function(){return new Ii(e.apply(this,arguments))}}function Ii(e){var t,n;function r(t,n){try{var s=e[t](n),i=s.value,o=i instanceof Oi;Promise.resolve(o?i.v:i).then(function(n){if(o){var l="return"===t&&i.k?t:"next";if(!i.k||n.done)return r(l,n);n=e[l](n).value}a(!!s.done,n)},function(e){r("throw",e)})}catch(e){a(2,e)}}function a(e,a){2===e?t.reject(a):t.resolve({value:a,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,a){return new Promise(function(s,i){var o={key:e,arg:a,resolve:s,reject:i,next:null};n?n=n.next=o:(t=n=o,r(e,a))})}
2,"function"!=typeof e.return&&(this.return=void 0)}function Mi(e){return new Oi(e,0)}function zi(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise(function(n){n(e[t](r))}),{done:!1,value:new Oi(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function Ui(e){var t,n,r,a=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);a--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new qi(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function qi(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return qi=function(e){this.s=e,this.n=e.next},qi.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new qi(e)}Ii.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Ii.prototype.next=function(e){return this._invoke("next",e)},Ii.prototype.throw=function(e){return this._invoke("throw",e)},Ii.prototype.return=function(e){return this._invoke("return",e)};const Wi=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},Hi=function(){var e=Li(function*(e,t){var n,r=!1,a=!1;try{for(var s,i=Ui(Vi(e));r=!(s=yield Mi(i.next())).done;r=!1){const e=s.value;yield*zi(Ui(Wi(e,t)))}}catch(o){a=!0,n=o}finally{try{r&&null!=i.return&&(yield Mi(i.return()))}finally{if(a)throw n}}});return function(t,n){return e.apply(this,arguments)}}(),Vi=function(){var e=Li(function*(e){if(e[Symbol.asyncIterator])return void(yield*zi(Ui(e)));const t=e.getReader();try{for(;;){const e=yield Mi(t.read()),n=e.done,r=e.value;if(n)break;yield r}}finally{yield Mi(t.cancel())}});return function(t){return e.apply(this,arguments)}}(),Gi=(e,t,n,r)=>{const a=Hi(e,t);let s,i=0,o=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const t=await a.next(),r=t.done,s=t.value;if(r)return o(),void e.close();let l=s.byteLength;if(n){let e=i+=l;n(e)}e.enqueue(new Uint8Array(s))}catch(t){throw o(t),t}},cancel:e=>(o(e),a.return())},{highWaterMark:2})},$i=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ki=(e,t,n)=>t+2<n&&$i(e.charCodeAt(t+1))&&$i(e.charCodeAt(t+2));const Qi=Ns.isFunction,Yi=e=>{if(!Ns.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Ji=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(tN){return!1}},Xi=e=>{const t=void 0!==Ns.global&&null!==Ns.global?Ns.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,a=e=Ns.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),s=a.fetch,i=a.Request,o=a.Response,l=s?Qi(s):"function"===typeof fetch,u=Qi(i),c=Qi(o);if(!l)return!1;const d=l&&Qi(n),h=l&&("function"===typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const m=u&&d&&Ji(()=>{let e=!1;const t=new i(ui.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),x=c&&d&&Ji(()=>Ns.isReadableStream(new o("").body)),g={stream:x&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!g[e]&&(g[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Ws("Response type '".concat(e,"' is not supported"),Ws.ERR_NOT_SUPPORT,n)})});const v=async e=>{if(null==e)return 0;if(Ns.isBlob(e))return e.size;if(Ns.isSpecCompliantForm(e)){const t=new i(ui.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ns.isArrayBufferView(e)||Ns.isArrayBuffer(e)?e.byteLength:(Ns.isURLSearchParams(e)&&(e+=""),Ns.isString(e)?(await h(e)).byteLength:void 0)};return async e=>{let t=Ti(e),n=t.url,a=t.method,l=t.data,c=t.signal,h=t.cancelToken,p=t.timeout,b=t.onDownloadProgress,y=t.onUploadProgress,D=t.responseType,w=t.headers,k=t.withCredentials,j=void 0===k?"same-origin":k,C=t.fetchOptions,E=t.maxContentLength,F=t.maxBodyLength;const N=Ns.isNumber(E)&&E>-1,A=Ns.isNumber(F)&&F>-1;let S=s||fetch;D=D?(D+"").toLowerCase():"text";let _=Pi([c,h&&h.toAbortSignal()],p),B=null;const T=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let R,P=null;const O=()=>new Ws("Request body larger than maxBodyLength limit",Ws.ERR_BAD_REQUEST,e,B);try{let t;const s=(I="auth",Ns.hasOwnProp(e,I)?e[I]:void 0);if(s){const e=Ns.getSafeProp(s,"username")||"";
2t={username:e,password:Ns.getSafeProp(s,"password")||""}}if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(n)){const e=new URL(n,ui.origin);if(!t&&(e.username||e.password)){const n=Yi(e.username);t={username:n,password:Yi(e.password)}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(t&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa((L=(t.username||"")+":"+(t.password||""),encodeURIComponent(L).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),N&&"string"===typeof n&&n.startsWith("data:")){const t=function(e){if(!e||"string"!==typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let o=0;o<t;o++)if(37===r.charCodeAt(o)&&o+2<t){const t=r.charCodeAt(o+1),n=r.charCodeAt(o+2);$i(t)&&$i(n)&&(e-=2,o+=2)}let n=0,a=t-1;const s=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));a>=0&&(61===r.charCodeAt(a)?(n++,a--):s(a)&&(n++,a-=3)),1===n&&a>=0&&(61===r.charCodeAt(a)||s(a))&&n++;const i=3*Math.floor(e/4)-(n||0);return i>0?i:0}let a=0;for(let s=0,i=r.length;s<i;s++){const e=r.charCodeAt(s);if(37===e&&Ki(r,s,i))a+=1,s+=2;else if(e<128)a+=1;else if(e<2048)a+=2;else if(e>=55296&&e<=56319&&s+1<i){const e=r.charCodeAt(s+1);e>=56320&&e<=57343?(a+=4,s++):a+=3}else a+=3}return a}(n);if(t>E)throw new Ws("maxContentLength size of "+E+" exceeded",Ws.ERR_BAD_RESPONSE,e,B)}if(A&&"get"!==a&&"head"!==a){const e=await v(l);if("number"===typeof e&&isFinite(e)&&(R=e,e>F))throw O()}const c=A&&(Ns.isReadableStream(l)||Ns.isStream(l)),h=(e,t,n)=>Gi(e,65536,e=>{if(A&&e>F)throw P=O();t&&t(e)},n);if(m&&"get"!==a&&"head"!==a&&(y||c)){if(R=null==R?await(async(e,t)=>{const n=Ns.toFiniteNumber(e.getContentLength());return null==n?v(t):n})(w,l):R,0!==R||c){let e,t=new i(n,{method:"POST",body:l,duplex:"half"});if(Ns.isFormData(l)&&(e=t.headers.get("content-type"))&&w.setContentType(e),t.body){const e=qe(y&&wi(R,Di(ki(y)))||[],2),n=e[0],r=e[1];l=h(t.body,n,r)}}}else if(c&&!u&&d&&"get"!==a&&"head"!==a)l=h(l);else if(c&&u&&!m&&"get"!==a&&"head"!==a)throw new Ws("Stream request bodies are not supported by the current fetch implementation",Ws.ERR_NOT_SUPPORT,e,B);Ns.isString(j)||(j=j?"include":"omit");const p=u&&"credentials"in i.prototype;if(Ns.isFormData(l)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.18.0",!1);const k=f(f({},C),{},{signal:_,method:a.toUpperCase(),headers:Rs(w.normalize()),body:l,duplex:"half",credentials:p?j:void 0});B=u&&new i(n,k);let M=await(u?S(B,C):S(n,k));const z=zs.from(M.headers);if(N){const t=Ns.toFiniteNumber(z.getContentLength());if(null!=t&&t>E)throw new Ws("maxContentLength size of "+E+" exceeded",Ws.ERR_BAD_RESPONSE,e,B)}const U=x&&("stream"===D||"response"===D);if(x&&M.body&&(b||N||U&&T)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=M[e]});const n=Ns.toFiniteNumber(z.getContentLength()),r=qe(b&&wi(n,Di(ki(b),!0))||[],2),a=r[0],s=r[1];let i=0;const l=t=>{if(N&&(i=t,i>E))throw new Ws("maxContentLength size of "+E+" exceeded",Ws.ERR_BAD_RESPONSE,e,B);a&&a(t)};M=new o(Gi(M.body,65536,l,()=>{s&&s(),T&&T()}),t)}D=D||"text";let q=await g[Ns.findKey(g,D)||"text"](M,e);if(N&&!x&&!U){let t;if(null!=q&&("number"===typeof q.byteLength?t=q.byteLength:"number"===typeof q.size?t=q.size:"string"===typeof q&&(t="function"===typeof r?(new r).encode(q).byteLength:q.length)),"number"===typeof t&&t>E)throw new Ws("maxContentLength size of "+E+" exceeded",Ws.ERR_BAD_RESPONSE,e,B)}return!U&&T&&T(),await new Promise((t,n)=>{vi(t,n,{data:q,headers:zs.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:B})})}
2catch(M){if(T&&T(),_&&_.aborted&&_.reason instanceof Ws){const t=_.reason;throw t.config=e,B&&(t.request=B),M!==t&&(t.cause=M),t}if(P)throw B&&!P.request&&(P.request=B),P;if(M instanceof Ws)throw B&&!M.request&&(M.request=B),M;if(M&&"TypeError"===M.name&&/Load failed|fetch/i.test(M.message))throw Object.assign(new Ws("Network Error",Ws.ERR_NETWORK,e,B,M&&M.response),{cause:M.cause||M});throw Ws.from(M,M&&M.code,e,B,M&&M.response)}var L,I}},Zi=new Map,eo=e=>{let t=e&&e.env||{};const n=t.fetch,r=[t.Request,t.Response,n];let a,s,i=r.length,o=Zi;for(;i--;)a=r[i],s=o.get(a),void 0===s&&o.set(a,s=i?new Map:Xi(t)),o=s;return s},to=(eo(),{http:null,xhr:Ri,fetch:{get:eo}});Ns.forEach(to,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(tN){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const no=e=>"- ".concat(e),ro=e=>Ns.isFunction(e)||null===e||!1===e;const ao={getAdapter:function(e,t){const n=(e=Ns.isArray(e)?e:[e]).length;let r,a;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],a=r,!ro(r)&&(a=to[(n=String(r)).toLowerCase()],void 0===a))throw new Ws("Unknown adapter '".concat(n,"'"));
vendor: 5,752 bytes, line 2
2if(a&&(Ns.isFunction(a)||(a=a.get(t))))break;s[n||"#"+i]=a}if(!a){const e=Object.entries(s).map(e=>{let t=qe(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")});let t=n?e.length>1?"since :\n"+e.map(no).join("\n"):" "+no(e[0]):"as no adapter specified";throw new Ws("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return a},adapters:to};function so(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gi(null,e)}function io(e){so(e),e.headers=zs.from(e.headers),e.data=mi.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ao.getAdapter(e.adapter||pi.adapter,e)(e).then(function(t){so(e),e.response=t;try{t.data=mi.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=zs.from(t.headers),t},function(t){if(!xi(t)&&(so(e),t&&t.response)){e.response=t.response;try{t.response.data=mi.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=zs.from(t.response.headers)}return Promise.reject(t)})}const oo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const lo={};oo.transitional=function(e,t,n){function r(e,t){return"[Axios v1.18.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,s)=>{if(!1===e)throw new Ws(r(a," has been removed"+(t?" in "+t:"")),Ws.ERR_DEPRECATED);return t&&!lo[a]&&(lo[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,s)}},oo.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const uo={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Ws("options must be an object",Ws.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const s=r[a],i=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new Ws("option "+s+" must be "+n,Ws.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ws("Unknown option "+s,Ws.ERR_BAD_OPTION)}},validators:oo},co=uo.validators;class ho{constructor(e){this.defaults=e||{},this.interceptors={request:new ti,response:new ti}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(n.stack){if(t){const e=t.indexOf("\n"),r=-1===e?-1:t.indexOf("\n",e+1),a=-1===r?"":t.slice(r+1);String(n.stack).endsWith(a)||(n.stack+="\n"+t)}}else n.stack=t}catch(tN){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};const n=t=_i(this.defaults,t),r=n.transitional,a=n.paramsSerializer,s=n.headers;void 0!==r&&uo.assertOptions(r,{silentJSONParsing:co.transitional(co.boolean),forcedJSONParsing:co.transitional(co.boolean),clarifyTimeoutError:co.transitional(co.boolean),legacyInterceptorReqResOrdering:co.transitional(co.boolean),advertiseZstdAcceptEncoding:co.transitional(co.boolean),validateStatusUndefinedResolves:co.transitional(co.boolean)},!1),null!=a&&(Ns.isFunction(a)?t.paramsSerializer={serialize:a}:uo.assertOptions(a,{encode:co.function,serialize:co.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),uo.assertOptions(t,{baseUrl:co.spelling("baseURL"),withXsrfToken:co.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&Ns.merge(s.common,s[t.method]);s&&Ns.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete s[e]}),t.headers=zs.concat(i,s);const o=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"===typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||ni;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const u=[];let c;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let d,h=0;if(!l){const e=[io.bind(this),void 0];for(e.unshift(...o),e.push(...u),d=e.length,c=Promise.resolve(t);h<d;)c=c.then(e[h++],e[h++]);return c}d=o.length;let f=t;for(;h<d;){const e=o[h++],t=o[h++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=io.call(this,f)}catch(p){return Promise.reject(p)}for(h=0,d=u.length;h<d;)c=c.then(u[h++],u[h++]);return c}getUri(e){return ei(Ai((e=_i(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}Ns.forEach(["delete","get","head","options"],function(e){ho.prototype[e]=function(t,n){return this.request(_i(n||{},{method:e,url:t,data:n&&Ns.hasOwnProp(n,"data")?n.data:void 0}))}}),Ns.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,a){return this.request(_i(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ho.prototype[e]=t(),"query"!==e&&(ho.prototype[e+"Form"]=t(!0))});const fo=ho;class po{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,a){n.reason||(n.reason=new gi(e,r,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
2subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new po(function(t){e=t}),cancel:e}}}const mo=po;const xo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xo).forEach(e=>{let t=qe(e,2),n=t[0],r=t[1];xo[r]=n});const go=xo;const vo=function e(t){const n=new fo(t),r=La(fo.prototype.request,n);return Ns.extend(r,fo.prototype,n,{allOwnKeys:!0}),Ns.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(_i(t,n))},r}(pi);vo.Axios=fo,vo.CanceledError=gi,vo.CancelToken=mo,vo.isCancel=xi,vo.VERSION="1.18.0",vo.toFormData=Ks,vo.AxiosError=Ws,vo.Cancel=vo.CanceledError,vo.all=function(e){return Promise.all(e)},vo.spread=function(e){return function(t){return e.apply(null,t)}},vo.isAxiosError=function(e){return Ns.isObject(e)&&!0===e.isAxiosError},vo.mergeConfig=_i,vo.AxiosHeaders=zs,vo.formToJSON=e=>di(Ns.isHTMLForm(e)?new FormData(e):e),vo.getAdapter=ao.getAdapter,vo.HttpStatusCode=go,vo.default=vo;const bo=vo,yo=[{heading:"Product",links:[{label:"How it works",href:"#how"},{label:"AI Agents",href:"#agents"},{label:"Activation",href:"#surfaces"},{label:"Flywheel",href:"#results"},{label:"FAQ",href:"#faq"}]},{heading:"Company",links:[{label:"Book a demo",href:"#demo"},{label:"[email protected]",href:"mailto:[email protected]"}]}];function Do(){return(0,Te.jsxs)("footer",{"data-testid":"site-footer",className:"relative bg-[#261c4d] text-white pt-20 overflow-hidden",children:[(0,Te.jsx)("div",{className:"relative max-w-[1240px] mx-auto px-6 md:px-10",children:(0,Te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-10",children:[(0,Te.jsxs)("div",{className:"md:col-span-6",children:[(0,Te.jsx)("a",{href:"#top","data-testid":"footer-brand",className:"inline-flex items-center",children:(0,Te.jsx)("img",{src:"https://customer-assets-gfyr7b9c.emergentagent.net/job_ai-acquisition-hub-2/artifacts/crtv5wnh_white_logo_color_background.webp",alt:"Uplaud",className:"h-14 w-auto object-contain rounded-xl",style:{maxWidth:160}})}),(0,Te.jsx)("p",{className:"mt-6 max-w-md text-[14px] leading-relaxed text-white/65",children:"The trust engine for modern acquisition. Ingest customer trust from anywhere. Activate it across every channel. Growth on autopilot."}),(0,Te.jsxs)("a",{href:"#demo","data-testid":"footer-cta",className:"btn-primary btn-mint mt-8",children:["Book a demo",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]}),yo.map(e=>(0,Te.jsxs)("div",{className:"md:col-span-3",children:[(0,Te.jsx)("div",{className:"font-mono text-[11px] uppercase tracking-widest text-white/40",children:e.heading}),(0,Te.jsx)("ul",{className:"mt-4 space-y-3",children:e.links.map(e=>(0,Te.jsx)("li",{children:(0,Te.jsx)("a",{href:e.href,"data-testid":"footer-link-".concat(e.label.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")),className:"text-[14px] text-white/80 hover:text-[#5eead4] transition-colors",children:e.label})},e.label))})]},e.heading))]})}
2),(0,Te.jsx)("div",{"aria-hidden":!0,className:"mt-16 overflow-hidden select-none",children:(0,Te.jsx)("div",{className:"max-w-[1400px] mx-auto px-6 md:px-10",children:(0,Te.jsx)("h3",{className:"font-display font-semibold tracking-tighter text-[22vw] md:text-[18vw] lg:text-[16vw] leading-[0.85] text-transparent bg-clip-text bg-[linear-gradient(180deg,rgba(255,255,255,0.16),rgba(255,255,255,0.02))]",children:"uplaud.ai"})})}),(0,Te.jsx)("div",{className:"border-t border-white/10",children:(0,Te.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10 py-6 flex flex-col md:flex-row items-start md:items-center justify-between gap-3 text-[12px] text-white/45",children:[(0,Te.jsxs)("span",{children:["\xa9 ",(new Date).getFullYear()," Uplaud AI. All rights reserved."]}),(0,Te.jsx)("span",{className:"font-mono",children:"Trust-powered growth \xb7 v1"})]})})]})}const wo="".concat(void 0,"/api");function ko(e){try{return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch(t){return""}}function jo(){const e=qe((0,i.useState)([]),2),t=e[0],n=e[1],r=qe((0,i.useState)(!0),2),a=r[0],s=r[1];(0,i.useEffect)(()=>{bo.get("".concat(wo,"/blog?limit=50")).then(e=>n(e.data.posts||[])).catch(()=>n([])).finally(()=>s(!1))},[]);const o=Ue(t),l=o[0],u=Le(o).slice(1);return(0,Te.jsxs)("div",{"data-testid":"blog-list-page",className:"min-h-screen bg-white text-[#111827]",children:[(0,Te.jsx)(Zr,{}),(0,Te.jsx)("main",{className:"pt-28 md:pt-36 pb-24",children:(0,Te.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10",children:[(0,Te.jsxs)("div",{className:"max-w-3xl",children:[(0,Te.jsx)("span",{className:"section-label",children:"Uplaud journal"}),(0,Te.jsxs)("h1",{className:"mt-4 font-display text-[44px] sm:text-[56px] lg:text-[68px] leading-[1.02] font-semibold tracking-tight",children:["Notes on trust,",(0,Te.jsx)("br",{}),(0,Te.jsx)("span",{className:"mint-underline",children:"growth & AI"}),"."]}),(0,Te.jsx)("p",{className:"mt-6 text-[16px] leading-relaxed text-[#4b5563]",children:"Playbooks, teardowns and things we're learning about turning customer trust into acquisition."})]}),a?(0,Te.jsx)("div",{"data-testid":"blog-loading",className:"mt-20 text-[14px] text-[#9ca3af]",children:"Loading\u2026"}):0===t.length?(0,Te.jsxs)("div",{"data-testid":"blog-empty",className:"mt-20 border border-dashed border-[#eeeaf6] rounded-2xl p-12 text-center bg-[#faf9ff]",children:[(0,Te.jsx)("p",{className:"font-display text-[22px] text-[#111827]",children:"First post coming soon."}),(0,Te.jsx)("p",{className:"mt-2 text-[14px] text-[#4b5563] max-w-md mx-auto",children:"We're cooking up our first stories on trust-powered growth. Check back soon or book a demo."}),(0,Te.jsxs)(cr,{to:"/#demo",className:"btn-primary mt-6 inline-flex",children:["Book a demo",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]}):(0,Te.jsxs)("div",{className:"mt-16 space-y-16",children:[l&&(0,Te.jsxs)(cr,{to:"/blog/".concat(l.slug),"data-testid":"blog-featured",className:"group grid grid-cols-1 lg:grid-cols-12 gap-8 items-center border-b border-[#eeeaf6] pb-16",children:[(0,Te.jsx)("div",{className:"lg:col-span-7",children:(0,Te.jsx)(Eo,{post:l,large:!0})}),(0,Te.jsxs)("div",{className:"lg:col-span-5",children:[(0,Te.jsx)(Fo,{post:l}),(0,Te.jsx)("h2",{className:"mt-4 font-display text-[30px] sm:text-[36px] lg:text-[42px] leading-[1.05] font-semibold tracking-tight text-[#111827] group-hover:text-[#6d46c6] transition-colors",children:l.title}),(0,Te.jsx)("p",{className:"mt-4 text-[15px] leading-relaxed text-[#4b5563]",children:l.excerpt}),(0,Te.jsxs)("span",{className:"mt-6 inline-flex items-center gap-1.5 text-[13px] font-medium text-[#6d46c6]",children:["Read post",(0,Te.jsx)(Qr,{className:"w-3.5 h-3.5",strokeWidth:2})]})]})]}),u.length>0&&(0,Te.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:u.map(e=>(0,Te.jsx)(Co,{post:e},e.slug))})]})]})}),(0,Te.jsx)(Do,{})]})}function Co(e){let t=e.post,n=e.testIdPrefix,r=void 0===n?"blog-post":n;return(0,Te.jsxs)(cr,{to:"/blog/".concat(t.slug),"data-testid":"".concat(r,"-").concat(t.slug),className:"group flex flex-col rounded-2xl border border-[#eeeaf6] overflow-hidden bg-white hover:border-[#6d46c6] hover:shadow-[0_20px_50px_-30px_rgba(38,28,77,0.35)] transition-all",children:[(0,Te.jsx)(Eo,{post:t}),(0,Te.jsxs)("div",{className:"p-6",children:[(0,Te.jsx)(Fo,{post:t}),(0,Te.jsx)("h3",{className:"mt-3 font-display text-[19px] leading-snug font-semibold tracking-tight text-[#111827] group-hover:text-[#6d46c6] transition-colors",children:t.title}),(0,Te.jsx)("p",{className:"mt-2 text-[13.5px] leading-relaxed text-[#4b5563] line-clamp-3",children:t.excerpt})]})]})}function Eo(e){let t=e.post,n=e.large;
2const r=void 0!==n&&n?"aspect-[16/10] rounded-2xl":"aspect-[16/10] rounded-none border-b border-[#eeeaf6]";return t.cover_image?(0,Te.jsx)("div",{className:"".concat(r," bg-cover bg-center bg-[#faf9ff]"),style:{backgroundImage:'url("'.concat(t.cover_image,'")')}}):(0,Te.jsx)("div",{className:"".concat(r," bg-gradient-to-br from-[#f5f3ff] via-[#ecfdf7] to-[#faf9ff] flex items-center justify-center"),children:(0,Te.jsx)("span",{className:"font-display text-[#6d46c6]/40 text-[36px] font-semibold tracking-tight",children:"uplaud"})})}function Fo(e){let t=e.post;return(0,Te.jsxs)("div",{className:"flex items-center gap-3 text-[11px] font-mono uppercase tracking-widest text-[#4b5563]",children:[t.tag&&(0,Te.jsx)("span",{className:"px-2 py-0.5 rounded-full bg-[#f5f3ff] text-[#6d46c6]",children:t.tag}),(0,Te.jsx)("span",{children:ko(t.created_at)})]})}const No="".concat(void 0,"/api");function Ao(){const e=qe((0,i.useState)([]),2),t=e[0],n=e[1],r=qe((0,i.useState)(!1),2),a=r[0],s=r[1];return(0,i.useEffect)(()=>{bo.get("".concat(No,"/blog/latest?limit=3")).then(e=>n(e.data.posts||[])).catch(()=>n([])).finally(()=>s(!0))},[]),a&&0!==t.length?(0,Te.jsx)("section",{id:"journal","data-testid":"blog-preview-section",className:"relative py-24 md:py-32 bg-white border-t border-[#eeeaf6]",children:(0,Te.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10",children:[(0,Te.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-6 mb-14",children:[(0,Te.jsxs)("div",{className:"max-w-2xl",children:[(0,Te.jsx)("span",{className:"section-label",children:"06 / journal"}),(0,Te.jsx)("h2",{className:"mt-4 font-display text-[36px] sm:text-[44px] lg:text-[52px] leading-[1.05] font-semibold tracking-tight text-[#111827]",children:"What we're thinking about."})]}),(0,Te.jsxs)(cr,{to:"/blog","data-testid":"blog-preview-all",className:"btn-secondary",children:["All posts",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]}),(0,Te.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map(e=>(0,Te.jsx)(Co,{post:e,testIdPrefix:"blog-preview-post"},e.id))})]})}):null}const So=["children"],_o=["scope","children"];function Bo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];const r=()=>{const t=n.map(e=>i.createContext(e));return function(n){const r=(null===n||void 0===n?void 0:n[e])||t;return i.useMemo(()=>({["__scope".concat(e)]:f(f({},n),{},{[e]:r})}),[n,r])}};return r.scopeName=e,[function(t,r){const a=i.createContext(r),s=n.length;n=[...n,r];const o=t=>{var n;const r=t.scope,o=t.children,l=Oe(t,_o),u=(null===r||void 0===r||null===(n=r[e])||void 0===n?void 0:n[s])||a,c=i.useMemo(()=>l,Object.values(l));return(0,Te.jsx)(u.Provider,{value:c,children:o})};return o.displayName=t+"Provider",[o,function(n,o){var l;const u=(null===o||void 0===o||null===(l=o[e])||void 0===l?void 0:l[s])||a,c=i.useContext(u);if(c)return c;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},To(r,...t)]}function To(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t[0];if(1===t.length)return r;const a=()=>{const e=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const n=e.reduce((e,n)=>{let r=n.useScope,a=n.scopeName;const s=r(t)["__scope".concat(a)];return f(f({},e),s)},{});return i.useMemo(()=>({["__scope".concat(r.scopeName)]:n}),[n])}};return a.scopeName=r.scopeName,a}function Ro(e,t){if("function"===typeof e)return e(t);null!==e&&void 0!==e&&(e.current=t)}function Po(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1;const r=t.map(t=>{const r=Ro(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){const n=r[e];"function"==typeof n?n():Ro(t[e],null)}}}}function Oo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.useCallback(Po(...t),t)}const Lo=["children"],Io=["children"];function Mo(e){const t=zo(e),n=i.forwardRef((e,n)=>{const r=e.children,a=Oe(e,Lo),s=i.Children.toArray(r),o=s.find(Wo);if(o){const e=o.props.children,r=s.map(t=>t===o?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Te.jsx)(t,f(f({},a),{},{ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null}))}return(0,Te.jsx)(t,f(f({},a),{},{ref:n,children:r}))});return n.displayName="".concat(e,".Slot"),n}function zo(e){const t=i.forwardRef((e,t)=>
2{const n=e.children,r=Oe(e,Io);if(i.isValidElement(n)){const e=function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n=f({},t);for(const r in t){const a=e[r],s=t[r];/^on[A-Z]/.test(r)?a&&s?n[r]=function(){s(...arguments),a(...arguments)}:a&&(n[r]=a):"style"===r?n[r]=f(f({},a),s):"className"===r&&(n[r]=[a,s].filter(Boolean).join(" "))}return f(f({},e),n)}(r,n.props);return n.type!==i.Fragment&&(a.ref=t?Po(t,e):e),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var Uo=Symbol("radix.slottable");var qo;function Wo(e){return i.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Uo}const Ho=["scope","children"];var Vo=new WeakMap;qo=new WeakMap,Map;function Go(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,r=$o(t),a=r>=0?r:n+r;return a<0||a>=n?-1:a}(e,t);return-1===n?void 0:e[n]}function $o(e){return e!==e||0===e?0:Math.trunc(e)}function Ko(e,t){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkForDefaultPrevented,r=void 0===n||n;return function(n){if(null===e||void 0===e||e(n),!1===r||!n.defaultPrevented)return null===t||void 0===t?void 0:t(n)}}var Qo=null!==globalThis&&void 0!==globalThis&&globalThis.document?i.useLayoutEffect:()=>{},Yo=o[" useInsertionEffect ".trim().toString()]||Qo;function Jo(e){let t=e.prop,n=e.defaultProp,r=e.onChange,a=void 0===r?()=>{}:r,s=e.caller;const o=function(e){let t=e.defaultProp,n=e.onChange;const r=i.useState(t),a=qe(r,2),s=a[0],o=a[1],l=i.useRef(s),u=i.useRef(n);return Yo(()=>{u.current=n},[n]),i.useEffect(()=>{var e;l.current!==s&&(null===(e=u.current)||void 0===e||e.call(u,s),l.current=s)},[s,l]),[s,o,u]}({defaultProp:n,onChange:a}),l=qe(o,3),u=l[0],c=l[1],d=l[2],h=void 0!==t,f=h?t:u;{const e=i.useRef(void 0!==t);i.useEffect(()=>{const t=e.current;if(t!==h){const e=t?"controlled":"uncontrolled",n=h?"controlled":"uncontrolled";console.warn("".concat(s," is changing from ").concat(e," to ").concat(n,". Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component."))}e.current=h},[h,s])}const p=i.useCallback(e=>{if(h){const r=function(e){return"function"===typeof e}(e)?e(t):e;var n;if(r!==t)null===(n=d.current)||void 0===n||n.call(d,r)}else c(e)},[h,t,c,d]);return[f,p]}Symbol("RADIX:SYNC_STATE");const Xo=["asChild"];var Zo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=Mo("Primitive.".concat(t)),r=i.forwardRef((e,r)=>{const a=e.asChild,s=Oe(e,Xo),i=a?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Te.jsx)(i,f(f({},s),{},{ref:r}))});return r.displayName="Primitive.".concat(t),f(f({},e),{},{[t]:r})},{});var el=e=>{const t=e.present,n=e.children,r=function(e){const t=qe(i.useState(),2),n=t[0],r=t[1],a=i.useRef(null),s=i.useRef(e),o=i.useRef("none"),l=e?"mounted":"unmounted",u=qe(function(e,t){return i.useReducer((e,n)=>{const r=t[e][n];return null!==r&&void 0!==r?r:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),2),c=u[0],d=u[1];return i.useEffect(()=>{const e=tl(a.current);o.current="mounted"===c?e:"none"},[c]),Qo(()=>{const t=a.current,n=s.current;if(n!==e){const r=o.current,a=tl(t);if(e)d("MOUNT");else if("none"===a||"none"===(null===t||void 0===t?void 0:t.display))d("UNMOUNT");else{d(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,d]),Qo(()=>{if(n){var e;let t;const r=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,i=e=>{const i=tl(a.current).includes(e.animationName);if(e.target===n&&i&&(d("ANIMATION_END"),!s.current)){const e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},l=e=>{e.target===n&&(o.current=tl(a.current))};return n.addEventListener("animationstart",l),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",l),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i)}}d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{a.current=e?getComputedStyle(e):null,r(e)},[])}}(t),a="function"===typeof n?n({present:r.isPresent}):i.Children.only(n),s=Oo(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"===typeof n||r.isPresent?i.cloneElement(a,{ref:s}):null};function tl(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}el.displayName="Presence";var nl=o[" useId ".trim().toString()]||(()=>{}),rl=0;function al(e){const t=qe(i.useState(nl()),2),n=t[0],r=t[1];return Qo(()=>{e||r(e=>null!==e&&void 0!==e?e:String(rl++))},[e]),e||(n?"radix-".concat(n):"")}const sl=["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"],il=["__scopeCollapsible"],ol=["forceMount"],ll=["__scopeCollapsible","present","children"];var ul="Collapsible",cl=qe(Bo(ul),2),dl=cl[0],hl=cl[1],fl=qe(dl(ul),2),pl=fl[0],ml=fl[1],xl=i.forwardRef((e,t)=>
2{const n=e.__scopeCollapsible,r=e.open,a=e.defaultOpen,s=e.disabled,o=e.onOpenChange,l=Oe(e,sl),u=qe(Jo({prop:r,defaultProp:null!==a&&void 0!==a&&a,onChange:o,caller:ul}),2),c=u[0],d=u[1];return(0,Te.jsx)(pl,{scope:n,disabled:s,contentId:al(),open:c,onOpenToggle:i.useCallback(()=>d(e=>!e),[d]),children:(0,Te.jsx)(Zo.div,f(f({"data-state":wl(c),"data-disabled":s?"":void 0},l),{},{ref:t}))})});xl.displayName=ul;var gl="CollapsibleTrigger",vl=i.forwardRef((e,t)=>{const n=e.__scopeCollapsible,r=Oe(e,il),a=ml(gl,n);return(0,Te.jsx)(Zo.button,f(f({type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":wl(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled},r),{},{ref:t,onClick:Ko(e.onClick,a.onOpenToggle)}))});vl.displayName=gl;var bl="CollapsibleContent",yl=i.forwardRef((e,t)=>{const n=e.forceMount,r=Oe(e,ol),a=ml(bl,e.__scopeCollapsible);return(0,Te.jsx)(el,{present:n||a.open,children:e=>{let n=e.present;return(0,Te.jsx)(Dl,f(f({},r),{},{ref:t,present:n}))}})});yl.displayName=bl;var Dl=i.forwardRef((e,t)=>{const n=e.__scopeCollapsible,r=e.present,a=e.children,s=Oe(e,ll),o=ml(bl,n),l=qe(i.useState(r),2),u=l[0],c=l[1],d=i.useRef(null),h=Oo(t,d),p=i.useRef(0),m=p.current,x=i.useRef(0),g=x.current,v=o.open||u,b=i.useRef(v),y=i.useRef(void 0);return i.useEffect(()=>{const e=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(e)},[]),Qo(()=>{const e=d.current;if(e){y.current=y.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();p.current=t.height,x.current=t.width,b.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),c(r)}},[o.open,r]),(0,Te.jsx)(Zo.div,f(f({"data-state":wl(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!v},s),{},{ref:h,style:f({"--radix-collapsible-content-height":m?"".concat(m,"px"):void 0,"--radix-collapsible-content-width":g?"".concat(g,"px"):void 0},e.style),children:v&&a}))});function wl(e){return e?"open":"closed"}var kl=xl,jl=vl,Cl=yl,El=i.createContext(void 0);const Fl=["type"],Nl=["value","defaultValue","onValueChange","collapsible"],Al=["value","defaultValue","onValueChange"],Sl=["__scopeAccordion","disabled","dir","orientation"],_l=["__scopeAccordion","value"],Bl=["__scopeAccordion"],Tl=["__scopeAccordion"],Rl=["__scopeAccordion"];var Pl="Accordion",Ol=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],Ll=function(e){const t=e+"CollectionProvider",n=qe(Bo(t),2),r=n[0],a=n[1],s=qe(r(t,{collectionRef:{current:null},itemMap:new Map}),2),o=s[0],l=s[1],u=e=>{const t=e.scope,n=e.children,r=i.useRef(null),a=i.useRef(new Map).current;return(0,Te.jsx)(o,{scope:t,itemMap:a,collectionRef:r,children:n})};u.displayName=t;const c=e+"CollectionSlot",d=Mo(c),h=i.forwardRef((e,t)=>{const n=e.scope,r=e.children,a=Oo(t,l(c,n).collectionRef);return(0,Te.jsx)(d,{ref:a,children:r})});h.displayName=c;const p=e+"CollectionItemSlot",m="data-radix-collection-item",x=Mo(p),g=i.forwardRef((e,t)=>{const n=e.scope,r=e.children,a=Oe(e,Ho),s=i.useRef(null),o=Oo(t,s),u=l(p,n);return i.useEffect(()=>(u.itemMap.set(s,f({ref:s},a)),()=>{u.itemMap.delete(s)})),(0,Te.jsx)(x,f(f({},{[m]:""}),{},{ref:o,children:r}))});return g.displayName=p,[{Provider:u,Slot:h,ItemSlot:g},function(t){const n=l(e+"CollectionConsumer",t),r=i.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll("[".concat(m,"]"))),r=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},a]}(Pl),Il=qe(Ll,3),Ml=Il[0],zl=Il[1],Ul=Il[2],ql=qe(Bo(Pl,[Ul,hl]),2),Wl=ql[0],Hl=(ql[1],hl()),Vl=i.forwardRef((e,t)=>{const n=e.type,r=Oe(e,Fl),a=r,s=r;return(0,Te.jsx)(Ml.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,Te.jsx)(Zl,f(f({},s),{},{ref:t})):(0,Te.jsx)(Xl,f(f({},a),{},{ref:t}))})});Vl.displayName=Pl;var Gl=qe(Wl(Pl),2),$l=Gl[0],Kl=Gl[1],Ql=qe(Wl(Pl,{collapsible:!1}),2),Yl=Ql[0],Jl=Ql[1],Xl=i.forwardRef((e,t)=>
2{const n=e.value,r=e.defaultValue,a=e.onValueChange,s=void 0===a?()=>{}:a,o=e.collapsible,l=void 0!==o&&o,u=Oe(e,Nl),c=qe(Jo({prop:n,defaultProp:null!==r&&void 0!==r?r:"",onChange:s,caller:Pl}),2),d=c[0],h=c[1];return(0,Te.jsx)($l,{scope:e.__scopeAccordion,value:i.useMemo(()=>d?[d]:[],[d]),onItemOpen:h,onItemClose:i.useCallback(()=>l&&h(""),[l,h]),children:(0,Te.jsx)(Yl,{scope:e.__scopeAccordion,collapsible:l,children:(0,Te.jsx)(ru,f(f({},u),{},{ref:t}))})})}),Zl=i.forwardRef((e,t)=>{const n=e.value,r=e.defaultValue,a=e.onValueChange,s=void 0===a?()=>{}:a,o=Oe(e,Al),l=qe(Jo({prop:n,defaultProp:null!==r&&void 0!==r?r:[],onChange:s,caller:Pl}),2),u=l[0],c=l[1],d=i.useCallback(e=>c(function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e]}),[c]),h=i.useCallback(e=>c(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(t=>t!==e)}),[c]);return(0,Te.jsx)($l,{scope:e.__scopeAccordion,value:u,onItemOpen:d,onItemClose:h,children:(0,Te.jsx)(Yl,{scope:e.__scopeAccordion,collapsible:!0,children:(0,Te.jsx)(ru,f(f({},o),{},{ref:t}))})})}),eu=qe(Wl(Pl),2),tu=eu[0],nu=eu[1],ru=i.forwardRef((e,t)=>{const n=e.__scopeAccordion,r=e.disabled,a=e.dir,s=e.orientation,o=void 0===s?"vertical":s,l=Oe(e,Sl),u=Oo(i.useRef(null),t),c=zl(n),d="ltr"===function(e){const t=i.useContext(El);return e||t||"ltr"}(a),h=Ko(e.onKeyDown,e=>{var t;if(!Ol.includes(e.key))return;const n=e.target,r=c().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),a=r.findIndex(e=>e.ref.current===n),s=r.length;if(-1===a)return;e.preventDefault();let i=a;const l=s-1,u=()=>{i=a+1,i>l&&(i=0)},h=()=>{i=a-1,i<0&&(i=l)};switch(e.key){case"Home":i=0;break;case"End":i=l;break;case"ArrowRight":"horizontal"===o&&(d?u():h());break;case"ArrowDown":"vertical"===o&&u();break;case"ArrowLeft":"horizontal"===o&&(d?h():u());break;case"ArrowUp":"vertical"===o&&h()}null===(t=r[i%s].ref.current)||void 0===t||t.focus()});return(0,Te.jsx)(tu,{scope:n,disabled:r,direction:a,orientation:o,children:(0,Te.jsx)(Ml.Slot,{scope:n,children:(0,Te.jsx)(Zo.div,f(f({},l),{},{"data-orientation":o,ref:u,onKeyDown:r?void 0:h}))})})}),au="AccordionItem",su=qe(Wl(au),2),iu=su[0],ou=su[1],lu=i.forwardRef((e,t)=>{const n=e.__scopeAccordion,r=e.value,a=Oe(e,_l),s=nu(au,n),i=Kl(au,n),o=Hl(n),l=al(),u=r&&i.value.includes(r)||!1,c=s.disabled||e.disabled;return(0,Te.jsx)(iu,{scope:n,open:u,disabled:c,triggerId:l,children:(0,Te.jsx)(kl,f(f(f({"data-orientation":s.orientation,"data-state":mu(u)},o),a),{},{ref:t,disabled:c,open:u,onOpenChange:e=>{e?i.onItemOpen(r):i.onItemClose(r)}}))})});lu.displayName=au;var uu="AccordionHeader",cu=i.forwardRef((e,t)=>{const n=e.__scopeAccordion,r=Oe(e,Bl),a=nu(Pl,n),s=ou(uu,n);return(0,Te.jsx)(Zo.h3,f(f({"data-orientation":a.orientation,"data-state":mu(s.open),"data-disabled":s.disabled?"":void 0},r),{},{ref:t}))});cu.displayName=uu;var du="AccordionTrigger",hu=i.forwardRef((e,t)=>{const n=e.__scopeAccordion,r=Oe(e,Tl),a=nu(Pl,n),s=ou(du,n),i=Jl(du,n),o=Hl(n);return(0,Te.jsx)(Ml.ItemSlot,{scope:n,children:(0,Te.jsx)(jl,f(f(f({"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:s.triggerId},o),r),{},{ref:t}))})});hu.displayName=du;var fu="AccordionContent",pu=i.forwardRef((e,t)=>{const n=e.__scopeAccordion,r=Oe(e,Rl),a=nu(Pl,n),s=ou(fu,n),i=Hl(n);return(0,Te.jsx)(Cl,f(f(f({role:"region","aria-labelledby":s.triggerId,"data-orientation":a.orientation},i),r),{},{ref:t,style:f({"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)"},e.style)}))});function mu(e){return e?"open":"closed"}pu.displayName=fu;var xu=Vl,gu=lu,vu=cu,bu=hu,yu=pu;const Du=Kr("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);function wu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=wu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ku(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=wu(e))&&(r&&(r+=" "),r+=t);return r}const ju=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),s=a?ju(e.slice(1),a):void 0;if(s)return s;if(0===t.validators.length)return;const i=e.join("-");return null===(n=t.validators.find(e=>(0,e.validator)(i)))||void 0===n?void 0:n.classGroupId},Cu=/^\[(.+)\]$/,Eu=e=>{if(Cu.test(e)){const t=Cu.exec(e)[1],n=null===t||void 0===t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Fu=e=>{const t=e.theme,n=e.classGroups,r={nextPart:new Map,validators:[]};for(const a in n)Nu(n[a],r,a,t);return r},Nu=(e,t,n,r)=>
2{e.forEach(e=>{if("string"===typeof e){return void((""===e?t:Au(t,e)).classGroupId=n)}if("function"===typeof e)return Su(e)?void Nu(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(e=>{let a=qe(e,2),s=a[0],i=a[1];Nu(i,Au(t,s),n,r)})})},Au=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Su=e=>e.isThemeGetter,_u=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(a(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):a(e,t)}}},Bu=e=>{const t=e.prefix,n=e.experimentalParseClassName;let r=e=>{const t=[];let n,r=0,a=0,s=0;for(let l=0;l<e.length;l++){let i=e[l];if(0===r&&0===a){if(":"===i){t.push(e.slice(s,l)),s=l+1;continue}if("/"===i){n=l;continue}}"["===i?r++:"]"===i?r--:"("===i?a++:")"===i&&a--}const i=0===t.length?e:e.substring(s),o=Tu(i);return{modifiers:t,hasImportantModifier:o!==i,baseClassName:o,maybePostfixModifierPosition:n&&n>s?n-s:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Tu=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Ru=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},Pu=e=>f({cache:_u(e.cacheSize),parseClassName:Bu(e),sortModifiers:Ru(e)},(e=>{const t=Fu(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),ju(n,t)||Eu(e)},getConflictingClassGroupIds:(e,t)=>{const a=n[e]||[];return t&&r[e]?[...a,...r[e]]:a}}})(e)),Ou=/\s+/;function Lu(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Iu(e))&&(r&&(r+=" "),r+=t);return r}const Iu=e=>{if("string"===typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Iu(e[r]))&&(n&&(n+=" "),n+=t);return n};function Mu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let a,s,i,o=function(t){const r=n.reduce((e,t)=>t(e),e());return a=Pu(r),s=a.cache.get,i=a.cache.set,o=l,l(t)};function l(e){const t=s(e);if(t)return t;const n=((e,t)=>{const n=t.parseClassName,r=t.getClassGroupId,a=t.getConflictingClassGroupIds,s=t.sortModifiers,i=[],o=e.trim().split(Ou);let l="";for(let u=o.length-1;u>=0;u-=1){const e=o[u],t=n(e),c=t.isExternal,d=t.modifiers,h=t.hasImportantModifier,f=t.baseClassName,p=t.maybePostfixModifierPosition;if(c){l=e+(l.length>0?" "+l:l);continue}let m=!!p,x=r(m?f.substring(0,p):f);if(!x){if(!m){l=e+(l.length>0?" "+l:l);continue}if(x=r(f),!x){l=e+(l.length>0?" "+l:l);continue}m=!1}const g=s(d).join(":"),v=h?g+"!":g,b=v+x;if(i.includes(b))continue;i.push(b);const y=a(x,m);for(let n=0;n<y.length;++n){const e=y[n];i.push(v+e)}l=e+(l.length>0?" "+l:l)}return l})(e,a);return i(e,n),n}return function(){return o(Lu.apply(null,arguments))}}const zu=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Uu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wu=/^\d+\/\d+$/,Hu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$u=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ku=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qu=e=>Wu.test(e),Yu=e=>!!e&&!Number.isNaN(Number(e)),Ju=e=>!!e&&Number.isInteger(Number(e)),Xu=e=>e.endsWith("%")&&Yu(e.slice(0,-1)),Zu=e=>Hu.test(e),ec=()=>!0,tc=e=>Vu.test(e)&&!Gu.test(e),nc=()=>!1,rc=e=>$u.test(e),ac=e=>Ku.test(e),sc=e=>!oc(e)&&!fc(e),ic=e=>yc(e,jc,nc),oc=e=>Uu.test(e),lc=e=>yc(e,Cc,tc),uc=e=>yc(e,Ec,Yu),cc=e=>yc(e,wc,nc),dc=e=>yc(e,kc,ac),hc=e=>yc(e,Nc,rc),fc=e=>qu.test(e),pc=e=>Dc(e,Cc),mc=e=>Dc(e,Fc),xc=e=>Dc(e,wc),gc=e=>Dc(e,jc),vc=e=>Dc(e,kc),bc=e=>Dc(e,Nc,!0),yc=(e,t,n)=>{const r=Uu.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Dc=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=qu.exec(e);return!!r&&(r[1]?t(r[1]):n)},wc=e=>"position"===e||"percentage"===e,kc=e=>"image"===e||"url"===e,jc=e=>"length"===e||"size"===e||"bg-size"===e,Cc=e=>"length"===e,Ec=e=>"number"===e,Fc=e=>
vendor: 16,102 bytes, line 2
2"family-name"===e,Nc=e=>"shadow"===e,Ac=(Symbol.toStringTag,()=>{const e=zu("color"),t=zu("font"),n=zu("text"),r=zu("font-weight"),a=zu("tracking"),s=zu("leading"),i=zu("breakpoint"),o=zu("container"),l=zu("spacing"),u=zu("radius"),c=zu("shadow"),d=zu("inset-shadow"),h=zu("text-shadow"),f=zu("drop-shadow"),p=zu("blur"),m=zu("perspective"),x=zu("aspect"),g=zu("ease"),v=zu("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",fc,oc],y=()=>[fc,oc,l],D=()=>[Qu,"full","auto",...y()],w=()=>[Ju,"none","subgrid",fc,oc],k=()=>["auto",{span:["full",Ju,fc,oc]},Ju,fc,oc],j=()=>[Ju,"auto",fc,oc],C=()=>["auto","min","max","fr",fc,oc],E=()=>["auto",...y()],F=()=>[Qu,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],N=()=>[e,fc,oc],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",xc,cc,{position:[fc,oc]}],S=()=>["auto","cover","contain",gc,ic,{size:[fc,oc]}],_=()=>[Xu,pc,lc],B=()=>["","none","full",u,fc,oc],T=()=>["",Yu,pc,lc],R=()=>[Yu,Xu,xc,cc],P=()=>["","none",p,fc,oc],O=()=>["none",Yu,fc,oc],L=()=>["none",Yu,fc,oc],I=()=>[Yu,fc,oc],M=()=>[Qu,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zu],breakpoint:[Zu],color:[ec],container:[Zu],"drop-shadow":[Zu],ease:["in","out","in-out"],font:[sc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zu],shadow:[Zu],spacing:["px",Yu],text:[Zu],"text-shadow":[Zu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qu,oc,fc,x]}],container:["container"],columns:[{columns:[Yu,oc,fc,o]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Ju,"auto",fc,oc]}],basis:[{basis:[Qu,"full","auto",o,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Yu,Qu,"auto","initial","none",oc]}],grow:[{grow:["",Yu,fc,oc]}],shrink:[{shrink:["",Yu,fc,oc]}],order:[{order:[Ju,"first","last","none",fc,oc]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[o,"screen",...F()]}],"min-w":[{"min-w":[o,"screen","none",...F()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen",...F()]}],"min-h":[{"min-h":["screen","none",...F()]}],"max-h":[{"max-h":["screen",...F()]}],"font-size":[{text:["base",n,pc,lc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,fc,uc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xu,oc]}],"font-family":[{font:[mc,oc,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,fc,oc]}],"line-clamp":[{"line-clamp":[Yu,"none",fc,uc]}],leading:[{leading:[s,...y()]}],"list-image":[{"list-image":["none",fc,oc]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fc,oc]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Yu,"from-font","auto",fc,lc]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[Yu,"auto",fc,oc]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fc,oc]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fc,oc]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ju,fc,oc],radial:["",fc,oc],conic:[Ju,fc,oc]},vc,dc]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:_()}],"gradient-via-pos":[{via:_()}],"gradient-to-pos":[{to:_()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":T()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Yu,fc,oc]}],"outline-w":[{outline:["",Yu,pc,lc]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,bc,hc]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,bc,hc]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[Yu,lc]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",h,bc,hc]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[Yu,fc,oc]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Yu]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[fc,oc]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Yu]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fc,oc]}],filter:[{filter:["","none",fc,oc]}],blur:[{blur:P()}],brightness:[{brightness:[Yu,fc,oc]}],contrast:[{contrast:[Yu,fc,oc]}],"drop-shadow":[{"drop-shadow":["","none",f,bc,hc]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",Yu,fc,oc]}],"hue-rotate":[{"hue-rotate":[Yu,fc,oc]}],invert:[{invert:["",Yu,fc,oc]}],saturate:[{saturate:[Yu,fc,oc]}],sepia:[{sepia:["",Yu,fc,oc]}],"backdrop-filter":[{"backdrop-filter":["","none",fc,oc]}],"backdrop-blur":[{"backdrop-blur":P()}],"backdrop-brightness":[{"backdrop-brightness":[Yu,fc,oc]}],"backdrop-contrast":[{"backdrop-contrast":[Yu,fc,oc]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Yu,fc,oc]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Yu,fc,oc]}],"backdrop-invert":[{"backdrop-invert":["",Yu,fc,oc]}],"backdrop-opacity":[{"backdrop-opacity":[Yu,fc,oc]}],"backdrop-saturate":[{"backdrop-saturate":[Yu,fc,oc]}],"backdrop-sepia":[{"backdrop-sepia":["",Yu,fc,oc]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fc,oc]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Yu,"initial",fc,oc]}],ease:[{ease:["linear","initial",g,fc,oc]}],delay:[{delay:[Yu,fc,oc]}],animate:[{animate:["none",v,fc,oc]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,fc,oc]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:O()}],"rotate-x":[{"rotate-x":O()}],"rotate-y":[{"rotate-y":O()}],"rotate-z":[{"rotate-z":O()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:I()}],"skew-x":[{"skew-x":I()}],"skew-y":[{"skew-y":I()}],transform:[{transform:[fc,oc,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:M()}],"translate-x":[{"translate-x":M()}
vendor: 4,847 bytes, line 2
2],"translate-y":[{"translate-y":M()}],"translate-z":[{"translate-z":M()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fc,oc]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fc,oc]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[Yu,pc,lc,uc]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Sc=Mu(Ac);function _c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Sc(ku(t))}const Bc=["className"],Tc=["className","children"],Rc=["className","children"],Pc=xu,Oc=i.forwardRef((e,t)=>
2{let n=e.className,r=Oe(e,Bc);return(0,Te.jsx)(gu,f({ref:t,className:_c("border-b",n)},r))});Oc.displayName="AccordionItem";const Lc=i.forwardRef((e,t)=>{let n=e.className,r=e.children,a=Oe(e,Tc);return(0,Te.jsx)(vu,{className:"flex",children:(0,Te.jsxs)(bu,f(f({ref:t,className:_c("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",n)},a),{},{children:[r,(0,Te.jsx)(Du,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]}))})});Lc.displayName=bu.displayName;const Ic=i.forwardRef((e,t)=>{let n=e.className,r=e.children,a=Oe(e,Rc);return(0,Te.jsx)(yu,f(f({ref:t,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"},a),{},{children:(0,Te.jsx)("div",{className:_c("pb-4 pt-0",n),children:r})}))});Ic.displayName=yu.displayName;const Mc=[{q:"Is Uplaud a reviews and referrals tool?",a:"Reviews and referrals are part of it, but the real value is broader. Uplaud is a trust-powered growth platform that turns your customer trust &mdash; from every source &mdash; into acquisition, ads, content, referrals and audience insight."},{q:"What kinds of trust signals do you ingest?",a:"Reviews (Trustpilot, G2, Google, Yelp, Shopify), social (Reddit, X, Instagram, TikTok, LinkedIn), CRM notes and email testimonials, support tickets, sales-call transcripts, referrals and native captures on WhatsApp, Telegram, SMS or your site."},{q:"What do the AI Agents actually do?",a:"They analyze trust data, spot warm leads, recommend campaigns, generate ad creative, draft follow-ups, surface the right testimonial for the right query on social, and hand you a one-click approve workflow. You stay in command."},{q:"Does Uplaud replace my ad platforms or CRM?",a:"No. Uplaud plugs into what you already use &mdash; Meta, Google, TikTok, HubSpot, Salesforce, Shopify and more &mdash; and makes them smarter with trust-native audiences, creative and attribution."},{q:"How does making trust AI-visible work?",a:"As buyers start using ChatGPT, Perplexity and Gemini to research, the brands whose customer trust is structured and citable will win the answer. Uplaud publishes your trust in AI-friendly formats so you show up where the query is asked."},{q:"Who is Uplaud built for?",a:"High-consideration businesses where a single new customer is valuable and trust is expensive to earn &mdash; ecommerce, education, healthcare, legal, professional services and B2B SaaS."}];function zc(){return(0,Te.jsx)("section",{id:"faq","data-testid":"faq-section",className:"relative py-24 md:py-32 bg-[#faf9ff] border-y border-[#eeeaf6]",children:(0,Te.jsx)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10",children:(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10",children:[(0,Te.jsxs)("div",{className:"lg:col-span-4",children:[(0,Te.jsx)("span",{className:"section-label",children:"05 / faq"}),(0,Te.jsx)("h2",{"data-testid":"faq-headline",className:"mt-4 font-display text-[36px] sm:text-[44px] leading-[1.05] font-semibold tracking-tight text-[#111827]",children:"Straight answers."}),(0,Te.jsx)("p",{className:"mt-5 text-[14px] leading-relaxed text-[#4b5563] max-w-sm",children:"Something more specific? Book a demo below and ask us directly."})]}),(0,Te.jsx)("div",{className:"lg:col-span-8",children:(0,Te.jsx)(Pc,{type:"single",collapsible:!0,className:"w-full",children:Mc.map((e,t)=>(0,Te.jsxs)(Oc,{value:"item-".concat(t),"data-testid":"faq-item-".concat(t),className:"border-b border-[#eeeaf6]",children:[(0,Te.jsx)(Lc,{"data-testid":"faq-trigger-".concat(t),className:"font-display text-[18px] md:text-[19px] tracking-tight text-[#111827] hover:no-underline hover:text-[#6d46c6] py-6",children:e.q}),(0,Te.jsx)(Ic,{"data-testid":"faq-content-".concat(t),className:"text-[14px] leading-relaxed text-[#4b5563] pb-6 pr-6",children:(0,Te.jsx)("span",{dangerouslySetInnerHTML:{__html:e.a}})})]},t))})})]})})})}const Uc=Kr("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),qc=Kr("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Wc=["label","testId","type"],Hc="".concat(void 0,"/api");function Vc(){const e=qe((0,i.useState)({name:"",email:"",company:"",website:"",message:""}),2),t=e[0],n=e[1],r=qe((0,i.useState)(!1),2),a=r[0],s=r[1],o=qe((0,i.useState)(!1),2),l=o[0],u=o[1],c=e=>t=>n(n=>f(f({},n),{},{[e]:t.target.value}));return(0,Te.jsxs)("section",{id:"demo","data-testid":"lead-form-section",className:"relative py-24 md:py-32 bg-[#f5f3ff]",children:[(0,Te.jsx)("div",{"aria-hidden":!0,
2className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(50% 60% at 20% 30%, rgba(94,234,212,0.28), transparent 70%), radial-gradient(60% 60% at 80% 70%, rgba(109,70,198,0.18), transparent 70%)"}}),(0,Te.jsx)("div",{className:"relative max-w-[1240px] mx-auto px-6 md:px-10",children:(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12",children:[(0,Te.jsxs)("div",{className:"lg:col-span-5",children:[(0,Te.jsxs)("span",{className:"chip",children:[(0,Te.jsx)("span",{className:"dot"}),"Now onboarding pilot customers"]}),(0,Te.jsxs)("h2",{"data-testid":"demo-headline",className:"mt-6 font-display text-[40px] sm:text-[52px] lg:text-[60px] leading-[1.02] font-semibold tracking-tight text-[#111827]",children:["Turn your trust",(0,Te.jsx)("br",{}),(0,Te.jsx)("span",{className:"mint-underline",children:"into growth."})]}),(0,Te.jsx)("p",{className:"mt-6 text-[15.5px] leading-relaxed text-[#4b5563] max-w-md",children:"Tell us where your trust lives today. We come back with a 20-min walkthrough of the flywheel we would build for your business."}),(0,Te.jsxs)("div",{className:"mt-10 space-y-3 text-[13px] text-[#4b5563]",children:[(0,Te.jsx)($c,{label:"Reply time",children:"Under 24 hours, from the founder."}),(0,Te.jsx)($c,{label:"Setup",children:"Live in 20 minutes."}),(0,Te.jsx)($c,{label:"Cost",children:"Free pilot for the first cohort."})]})]}),(0,Te.jsx)("div",{className:"lg:col-span-7",children:l?(0,Te.jsxs)("div",{"data-testid":"lead-form-success",className:"border-2 border-[#6d46c6] bg-white rounded-2xl p-10 flex flex-col items-start gap-4",children:[(0,Te.jsx)(Uc,{className:"w-9 h-9 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("h3",{className:"font-display text-[28px] tracking-tight font-semibold text-[#111827]",children:"Thanks, we are on it."}),(0,Te.jsx)("p",{className:"text-[14px] text-[#4b5563] max-w-md",children:"Your request landed with Deepthi and the team. Expect a note from us within a day, from a real inbox."})]}):(0,Te.jsxs)("form",{"data-testid":"lead-form",onSubmit:async e=>{if(e.preventDefault(),t.name.trim()&&t.email.trim()){s(!0);try{var n;const e=await bo.post("".concat(Hc,"/leads"),t);u(!0),Tr.success((null===(n=e.data)||void 0===n?void 0:n.message)||"Thanks, we will be in touch.")}catch(d){var r,a,i,o,l,c;const e=(null===d||void 0===d||null===(r=d.response)||void 0===r||null===(a=r.data)||void 0===a||null===(i=a.detail)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.msg)||(null===d||void 0===d||null===(l=d.response)||void 0===l||null===(c=l.data)||void 0===c?void 0:c.detail)||"Something went wrong. Please try again.";Tr.error("string"===typeof e?e:"Please check your inputs.")}finally{s(!1)}}else Tr.error("Name and work email are required.")},noValidate:!0,className:"border border-[#eeeaf6] rounded-2xl p-6 md:p-8 bg-white shadow-[0_25px_60px_-30px_rgba(38,28,77,0.25)]",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Te.jsx)(Gc,{label:"Your name",testId:"lead-name-input",value:t.name,onChange:c("name")}),(0,Te.jsx)(Gc,{label:"Work email",type:"email",testId:"lead-email-input",value:t.email,onChange:c("email")}),(0,Te.jsx)(Gc,{label:"Business",testId:"lead-company-input",placeholder:"e.g. Bright Kids Preschool",value:t.company,onChange:c("company")}),(0,Te.jsx)(Gc,{label:"Website",testId:"lead-website-input",placeholder:"https://",value:t.website,onChange:c("website")})]}),(0,Te.jsxs)("div",{className:"mt-4",children:[(0,Te.jsx)("label",{className:"font-mono text-[11px] uppercase tracking-widest text-[#4b5563]",children:"What do you do? (optional)"}),(0,Te.jsx)("textarea",{"data-testid":"lead-message-input",value:t.message,onChange:c("message"),rows:4,placeholder:"Tell us about your business in one line...",className:"mt-2 w-full bg-white border border-[#eeeaf6] rounded-xl px-3 py-3 text-[14px] text-[#111827] placeholder:text-[#9ca3af] focus:border-[#6d46c6] focus:outline-none transition-colors"})]}),(0,Te.jsxs)("div",{className:"mt-6 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[(0,Te.jsx)("p",{className:"text-[11px] text-[#9ca3af] max-w-xs",children:"By 
2submitting you agree to be contacted about Uplaud. We never share your data."}),(0,Te.jsx)("button",{type:"submit","data-testid":"lead-form-submit",disabled:a,className:"btn-primary disabled:opacity-70 disabled:cursor-not-allowed",children:a?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(qc,{className:"w-4 h-4 animate-spin"}),"Sending"]}):(0,Te.jsxs)(Te.Fragment,{children:["Book my demo",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})})]})]})})]})})]})}function Gc(e){let t=e.label,n=e.testId,r=e.type,a=void 0===r?"text":r,s=Oe(e,Wc);return(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsx)("span",{className:"font-mono text-[11px] uppercase tracking-widest text-[#4b5563]",children:t}),(0,Te.jsx)("input",f(f({type:a,"data-testid":n},s),{},{className:"mt-2 w-full bg-white border border-[#eeeaf6] rounded-xl px-3 py-3 text-[14px] text-[#111827] placeholder:text-[#9ca3af] focus:border-[#6d46c6] focus:outline-none transition-colors"}))]})}function $c(e){let t=e.label,n=e.children;return(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-6 border-b border-[#eeeaf6] pb-3",children:[(0,Te.jsx)("span",{className:"font-mono text-[11px] uppercase tracking-widest text-[#9ca3af]",children:t}),(0,Te.jsx)("span",{className:"text-right max-w-xs",children:n})]})}function Kc(){return(0,Te.jsxs)("div",{"data-testid":"landing-page",className:"min-h-screen bg-white text-[#111827]",children:[(0,Te.jsx)(Zr,{}),(0,Te.jsxs)("main",{children:[(0,Te.jsx)(ca,{}),(0,Te.jsx)(pa,{}),(0,Te.jsx)(ga,{}),(0,Te.jsx)(Ca,{}),(0,Te.jsx)(Aa,{}),(0,Te.jsx)(Ra,{}),(0,Te.jsx)(Oa,{}),(0,Te.jsx)(Ao,{}),(0,Te.jsx)(zc,{}),(0,Te.jsx)(Vc,{})]}),(0,Te.jsx)(Do,{})]})}function Qc(){const e=qe((0,i.useState)(!1),2),t=(e[0],e[1]),n=qe((0,i.useState)(!1),2),r=(n[0],n[1],qe((0,i.useState)(null),2)),a=r[0],s=r[1];(0,i.useEffect)(()=>{const e=()=>{t(window.scrollY>20)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);return(0,Te.jsxs)("div",{className:"App",children:[(0,Te.jsx)("style",{children:'\n        /* Custom styles for Finance Vertical Page */\n        .mint-highlight {\n          position: relative;\n          display: inline-block;\n        }\n        .mint-highlight::after {\n          content: "";\n          position: absolute;\n          left: 0;\n          bottom: 4px;\n          width: 100%;\n          height: 12px;\n          background-color: rgba(127, 234, 200, 0.4);\n          z-index: -1;\n          border-radius: 4px;\n        }\n        .mint-underline {\n          position: relative;\n        }\n        .mint-underline::after {\n          content: "";\n          position: absolute;\n          left: 0;\n          bottom: -2px;\n          width: 100%;\n          height: 4px;\n          background-color: #7FEAC8;\n          border-radius: 2px;\n        }\n        /* Marquee styles */\n        .marquee {\n          overflow: hidden;\n          position: relative;\n          display: flex;\n          gap: 1.5rem;\n          user-select: none;\n        }\n        .marquee-content {\n          display: flex;\n          justify-content: space-around;\n          min-width: 100%;\n          gap: 1.5rem;\n          animation: scroll 25s linear infinite;\n        }\n        @keyframes scroll {\n          from { transform: translateX(0); }\n          to { transform: translateX(-100%); }\n        }\n        /* SVG diagram animations */\n        @keyframes dash {\n          to { stroke-dashoffset: 0; }\n        }\n        @keyframes fadeIn {\n          to { opacity: 1; transform: scale(1); }\n        }\n        .animate-circle {\n          animation: dash 2.5s ease-out forwards;\n        }\n        .animate-node {\n          animation: fadeIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;\n        }\n      '}),(0,Te.jsxs)("div",{className:"landing-page bg-white relative",children:[(0,Te.jsx)("div",{className:"fixed top-0 left-0 right-0 h-32 pointer-events-none z-40",style:{background:"linear-gradient(rgba(67, 23, 113, 0.08) 0%, rgba(67, 23, 113, 0) 100%)"}}),(0,Te.jsx)("header",{children:(0,Te.jsx)("nav",{className:"fixed top-0 left-0 right-0 z-50 transition-all duration-300 bg-white",children:(0,Te.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 py-3 sm:py-4",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)("div",{className:"text-xl sm:text-2xl font-bold text-gray-900 flex-shrink-0",children:"Uplaud"}),(0,Te.jsxs)("div",{className:"absolute left-1/2 transform -translate-x-1/2 hidden lg:flex items-center gap-6 xl:gap-8 text-sm font-mono",children:[(0,Te.jsx)("a",{href:"#the-problem",className:"text-gray-700 hover:text-gray-900 transition-colors whitespace-nowrap",children:"The Problem"}),(0,Te.jsx)("a",{href:"#the-solution",className:"text-gray-700 hover:text-gray-900 transition-colors whitespace-nowrap",children:"The Solution"}),(0,Te.jsx)("a",{href:"#identifying-fit",className:"text-gray-700 hover:text-gray-900 transition-colors whitespace-nowrap",children:"Identifying Fit"})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("button",{className:"sm:hidden p-2 text-gray-700 hover:text-gray-900 transition-colors","aria-label":"Toggle menu",children:(0,Te.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-menu","aria-hidden":"true",children:[(0,Te.jsx)("path",{d:"M4 12h16"}),(0,Te.jsx)("path",{d:"M4 18h16"}),(0,Te.jsx)("path",{d:"M4 6h16"})]})}),(0,Te.jsxs)("button",{className:"bg-[#4B2A85] text-white px-4 sm:px-5 py-1.5 
2sm:py-2 rounded-full hover:bg-[#3d2269] transition-all hover:scale-[1.02] font-mono flex items-center gap-1.5 sm:gap-2 text-xs sm:text-sm flex-shrink-0 shadow-[0_4px_14px_0_rgba(75,42,133,0.39)]",children:[(0,Te.jsx)("span",{className:"hidden sm:inline",children:"Get Started"}),(0,Te.jsx)("span",{className:"sm:hidden",children:"Get Started"}),(0,Te.jsx)("span",{className:"text-sm sm:text-base",children:"\u2197"})]})]})]}),(0,Te.jsxs)("div",{className:"hidden sm:flex lg:hidden items-center justify-center gap-4 mt-3 pt-3 border-t border-gray-100 text-xs font-mono",children:[(0,Te.jsx)("a",{href:"#the-problem",className:"text-gray-700 hover:text-gray-900 transition-colors",children:"Problem"}),(0,Te.jsx)("span",{className:"text-gray-300",children:"\xb7"}),(0,Te.jsx)("a",{href:"#the-solution",className:"text-gray-700 hover:text-gray-900 transition-colors",children:"Solution"}),(0,Te.jsx)("span",{className:"text-gray-300",children:"\xb7"}),(0,Te.jsx)("a",{href:"#identifying-fit",className:"text-gray-700 hover:text-gray-900 transition-colors",children:"Fit"})]})]})})}),(0,Te.jsxs)("main",{children:[(0,Te.jsx)("section",{className:"pt-24 sm:pt-28 md:pt-32 pb-8 sm:pb-12 md:pb-16 px-4 sm:px-6 overflow-hidden",children:(0,Te.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,Te.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center gap-8 lg:gap-12",children:[(0,Te.jsxs)("div",{className:"flex-1 lg:flex-shrink-0 lg:w-1/2 text-left",children:[(0,Te.jsxs)("div",{className:"inline-flex items-center gap-2 bg-gray-50 border border-gray-200 rounded-full px-3 sm:px-4 py-1.5 sm:py-2 mb-4 sm:mb-6 md:mb-8",children:[(0,Te.jsx)("div",{className:"w-2 h-2 bg-[#7FEAC8] rounded-full animate-pulse"}),(0,Te.jsx)("span",{className:"text-xs sm:text-sm text-gray-700",children:"The trust powered growth engine for FinTech"})]}),(0,Te.jsxs)("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-gray-900 mb-3 sm:mb-4 md:mb-6 leading-tight",children:[(0,Te.jsx)("span",{className:"mint-highlight",children:"Nobody"})," moves their money because of an ad."]}),(0,Te.jsx)("p",{className:"text-base sm:text-lg md:text-xl text-gray-600 mb-4 sm:mb-6 md:mb-8 leading-relaxed",children:"FinTech platforms win customers through trusted recommendations, not cold advertising. Uplaud transforms customer trust into a measurable, scalable growth channel."}),(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row items-start gap-3 sm:gap-4",children:[(0,Te.jsxs)("button",{className:"w-full sm:w-auto bg-[#4B2A85] text-white px-6 sm:px-7 py-2.5 sm:py-3 rounded-full hover:bg-[#3d2269] transition-all hover:scale-[1.02] font-mono flex items-center justify-center gap-2 shadow-[0_4px_14px_0_rgba(75,42,133,0.39)] text-sm sm:text-base",children:["Get Started ",(0,Te.jsx)("span",{className:"text-base sm:text-lg",children:"\u2197"})]}),(0,Te.jsxs)("button",{className:"w-full sm:w-auto border-2 border-gray-900 text-gray-900 px-6 sm:px-7 py-2.5 sm:py-3 rounded-full hover:bg-gray-900 hover:text-white transition-all hover:scale-[1.02] font-mono flex items-center justify-center gap-2 shadow-[0_2px_8px_0_rgba(0,0,0,0.08)] text-sm sm:text-base",children:["Get a Demo ",(0,Te.jsx)("span",{className:"text-base sm:text-lg",children:"\u2197"})]})]})]}),(0,Te.jsx)("div",{className:"flex-1 lg:flex-shrink-0 lg:w-1/2 lg:min-w-0",children:(0,Te.jsx)("div",{className:"relative rounded-2xl lg:rounded-l-2xl lg:rounded-r-none overflow-hidden shadow-2xl aspect-video lg:w-[120%]",children:(0,Te.jsx)("video",{className:"w-full h-full object-cover",autoPlay:!0,loop:!0,playsInline:!0,poster:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9'%3E%3Crect fill='%234B2A85' width='16' height='9'/%3E%3C/svg%3E",children:(0,Te.jsx)("source",{src:"https://customer-assets-lxgj4vgw.emergentagent.net/job_trust-into-channel/artifacts/6pauvhzx_finance-vertical-uplaud.mp4",type:"video/mp4"})})})})]})})}),(0,Te.jsx)("section",{className:"px-4 sm:px-6 pb-8 sm:pb-12 md:pb-16 max-w-7xl mx-auto fade-in-section is-visible",children:(0,Te.jsxs)("div",{className:"marquee py-3 sm:py-4 text-xs sm:text-sm font-mono text-gray-500 uppercase tracking-wider",children:[(0,Te.jsxs)("div",{className:"marquee-content",children:[(0,Te.jsx)("span",{children:"PAYMENTS"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"LENDING"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"ACCOUNTING"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"INSURANCE"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"FINTECH"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"PAYMENTS"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"LENDING"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"ACCOUNTING"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"INSURANCE"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"FINTECH"})]}),(0,Te.jsxs)("div",{className:"marquee-content","aria-hidden":"true",children:[(0,Te.jsx)("span",{children:"PAYMENTS"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"LENDING"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"ACCOUNTING"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"INSURANCE"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"FINTECH"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"PAYMENTS"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"LENDING"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"ACCOUNTING"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"INSURANCE"}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:"FINTECH"})]})]})}),(0,Te.jsxs)("section",{id:"the-problem",className:"px-4 sm:px-6 py-16 sm:py-24 max-w-7xl mx-auto fade-in-section is-visible",children:[(0,Te.jsx)("div",{className:"text-xs uppercase tracking-widest text-gray-500 mb-6 sm:mb-8 font-mono",children:"THE PROOF"}),(0,Te.jsxs)("div",{className:"grid md:grid-cols-2 gap-8 sm:gap-12 items-center",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-gray-900 mb-4 sm:mb-6",children:"The math has stopped working for your marketing strategy."}),(0,Te.jsx)("p",{className:"text-sm sm:text-base text-gray-600 leading-relaxed",children:"Customer acquisition costs in financial services continue rising. You're competing for the most expensive keywords in digital advertising to reach buyers who require trust before switching platforms."})]}),(0,Te.jsxs)("div",{className:"w-full",children:[(0,Te.jsx)("div",{className:"lg:hidden w-full",children:(0,Te.jsxs)("div",{className:"bg-gradient-to-br from-purple-100 via-purple-50 to-purple-100 rounded-2xl p-6",children:[(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsxs)("div",{className:"bg-white rounded-xl shadow-md p-4 relative",children:[(0,Te.jsx)("div",{className:"text-xs uppercase tracking-wider text-gray-500 mb-2 font-mono",children:"ADS MANAGER \xb7 SEARCH"}),(0,Te.jsx)("div",{className:"h-px bg-gray-200 mb-3"}),(0,Te.jsx)("div",{className:"text-xs text-gray-500 mb-1 font-mono",children:"Cost Per Click"}),(0,Te.jsx)("div",{className:"text-3xl font-bold text-gray-900 mb-2",children:"$4.20"}),(0,Te.jsxs)("div",{className:"text-sm text-red-600 font-medium mb-3",children:["\u25b2 34% ",(0,Te.jsx)("span",{className:"text-gray-500",children:"vs last year"})]}),(0,Te.jsxs)("svg",{className:"w-full h-12",viewBox:"0 0 200 60",preserveAspectRatio:"none",children:[(0,Te.jsx)("polyline",{points:"0,50 40,45 80,42 120,35 160,28 200,20",fill:"none",stroke:"#4B2A85",strokeWidth:"2"}),(0,Te.jsx)("circle",{cx:"200",cy:"20",r:"3",fill:"#ef4444"})]}),(0,Te.jsx)("div",{className:"flex items-center justify-between mt-2",children:(0,Te.jsx)("div",{className:"text-xs text-gray-400 uppercase tracking-wider font-mono",children:"LAST 6 QUART
2ERS"})})]}),(0,Te.jsxs)("div",{className:"bg-white rounded-xl shadow-md p-4 relative",children:[(0,Te.jsx)("div",{className:"text-xs uppercase tracking-wider text-gray-500 mb-2 font-mono",children:"ADS MANAGER \xb7 SOCIAL"}),(0,Te.jsx)("div",{className:"h-px bg-gray-200 mb-3"}),(0,Te.jsx)("div",{className:"text-xs text-gray-500 mb-1 font-mono",children:"Cost Per 1,000 Impressions"}),(0,Te.jsx)("div",{className:"text-3xl font-bold text-gray-900 mb-2",children:"$18.60"}),(0,Te.jsxs)("div",{className:"text-sm text-red-600 font-medium mb-3",children:["\u25b2 41% ",(0,Te.jsx)("span",{className:"text-gray-500",children:"vs last year"})]}),(0,Te.jsxs)("svg",{className:"w-full h-12",viewBox:"0 0 200 60",preserveAspectRatio:"none",children:[(0,Te.jsx)("polyline",{points:"0,50 40,45 80,42 120,35 160,28 200,20",fill:"none",stroke:"#4B2A85",strokeWidth:"2"}),(0,Te.jsx)("circle",{cx:"200",cy:"20",r:"3",fill:"#ef4444"})]}),(0,Te.jsx)("div",{className:"flex items-center justify-between mt-2",children:(0,Te.jsx)("div",{className:"text-xs text-gray-400 uppercase tracking-wider font-mono",children:"LAST 6 QUARTERS"})})]}),(0,Te.jsxs)("div",{className:"bg-white rounded-xl shadow-md p-4 relative",children:[(0,Te.jsx)("div",{className:"text-xs uppercase tracking-wider text-gray-500 mb-2 font-mono",children:"ADS MANAGER \xb7 DISPLAY"}),(0,Te.jsx)("div",{className:"h-px bg-gray-200 mb-3"}),(0,Te.jsx)("div",{className:"text-xs text-gray-500 mb-1 font-mono",children:"Cost Per Acquisition"}),(0,Te.jsx)("div",{className:"text-3xl font-bold text-gray-900 mb-2",children:"$410"}),(0,Te.jsxs)("div",{className:"text-sm text-red-600 font-medium mb-3",children:["\u25b2 38% ",(0,Te.jsx)("span",{className:"text-gray-500",children:"vs last year"})]}),(0,Te.jsxs)("svg",{className:"w-full h-12",viewBox:"0 0 200 60",preserveAspectRatio:"none",children:[(0,Te.jsx)("polyline",{points:"0,50 40,45 80,42 120,35 160,28 200,20",fill:"none",stroke:"#4B2A85",strokeWidth:"2"}),(0,Te.jsx)("circle",{cx:"200",cy:"20",r:"3",fill:"#ef4444"})]}),(0,Te.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,Te.jsx)("div",{className:"text-xs text-gray-400 uppercase tracking-wider font-mono",children:"LAST 6 QUARTERS"}),(0,Te.jsx)("div",{className:"bg-[#4B2A85] text-white px-2 py-1 rounded-full text-xs font-mono",children:"BUDGET \xb7 94% SPENT"})]})]})]}),(0,Te.jsx)("p",{className:"text-xs text-gray-400 mt-4 text-center font-mono",children:"Illustrative data"})]})}),(0,Te.jsx)("div",{className:"hidden lg:block w-full",children:(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)("div",{className:"bg-gradient-to-br from-purple-100 via-purple-50 to-purple-100 rounded-3xl p-12 relative min-h-[500px] flex items-center justify-center",children:(0,Te.jsxs)("div",{className:"relative w-full max-w-md h-96",children:[(0,Te.jsx)("div",{className:"absolute inset-0 transition-all duration-700 ease-out cac-card opacity-100",style:{transform:"rotate(-7deg) translateY(20px)",zIndex:1,transformOrigin:"center center"},children:(0,Te.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-6 h-full flex flex-col justify-between relative",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[10px] uppercase tracking-widest text-gray-500 mb-2 font-mono",children:"ADS MANAGER \xb7 SEARCH"}),(0,Te.jsx)("div",{className:"h-px bg-gray-200 mb-4"}),(0,Te.jsx)("div",{className:"text-xs text-gray-500 mb-2 font-mono",children:"COST PER CLICK"}),(0,Te.jsx)("div",{className:"text-4xl font-bold text-gray-900 mb-3",children:"$4.20"}),(0,Te.jsx)("div",{className:"text-sm text-red-600 font-medium mb-4",children:"\u25b2 34% vs last year"}),(0,Te.jsxs)("svg",{className:"w-full h-16",viewBox:"0 0 200 60",preserveAspectRatio:"none",children:[(0,Te.jsx)("polyline",{points:"0,50 40,45 80,42 120,35 160,28 200,20",fill:"none",stroke:"#4B2A85",strokeWidth:"2"}),(0,Te.jsx)("circle",{cx:"200",cy:"20",r:"3",fill:"#ef4444"})]})]}),(0,Te.jsx)("div",{className:"text-[9px] text-gray-400 uppercase tracking-wider font-mono",children:"LAST 6 QUARTERS"})]})}),(0,Te.jsx)("div",{className:"absolute inset-0 transition-all duration-700 ease-out cac-card opacity-100",style:{transform:"rotate(4deg) translateY(10px)",zIndex:2,transformOrigin:"center center"},children:(0,Te.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-6 h-full flex flex-col justify-between relative",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[10px] uppercase tracking-widest text-gray-500 mb-2 font-mono",children:"ADS MANAGER \xb7 SOCIAL"}),(0,Te.jsx)("div",{className:"h-px bg-gray-200 mb-4"}),(0,Te.jsx)("div",{className:"text-xs text-gray-500 mb-2 font-mono",children:"COST PER 1,000 IMPRESSIONS"}),(0,Te.jsx)("div",{className:"text-4xl font-bold text-gray-900 mb-3",children:"$18.60"}),(0,Te.jsx)("div",{className:"text-sm text-red-600 font-medium mb-4",children:"\u25b2 41% vs last year"}),(0,Te.jsxs)("svg",{className:"w-full h-16",viewBox:"0 0 200 60",preserveAspectRatio:"none",children:[(0,Te.jsx)("polyline",{points:"0,50 40,45 80,42 120,35 160,28 200,20",fill:"none",stroke:"#4B2A85",strokeWidth:"2"}),(0,Te.jsx)("circle",{cx:"200",cy:"20",r:"3",fill:"#ef4444"})]})]}),(0,Te.jsx)("div",{className:"text-[9px] text-gray-400 uppercase tracking-wider font-mono",children:"LAST 6 QUART
2ERS"})]})}),(0,Te.jsx)("div",{className:"absolute inset-0 transition-all duration-700 ease-out cac-card opacity-100",style:{transform:"rotate(-2deg) translateY(0px)",zIndex:3,transformOrigin:"center center"},children:(0,Te.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-6 h-full flex flex-col justify-between relative",children:[(0,Te.jsx)("div",{className:"absolute top-4 right-4",children:(0,Te.jsx)("div",{className:"bg-[#4B2A85] text-white px-3 py-1.5 rounded-full text-[10px] font-mono uppercase tracking-wider",children:"BUDGET \xb7 94% SPENT"})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[10px] uppercase tracking-widest text-gray-500 mb-2 font-mono",children:"ADS MANAGER \xb7 DISPLAY"}),(0,Te.jsx)("div",{className:"h-px bg-gray-200 mb-4"}),(0,Te.jsx)("div",{className:"text-xs text-gray-500 mb-2 font-mono",children:"COST PER ACQUISITION"}),(0,Te.jsx)("div",{className:"text-4xl font-bold text-gray-900 mb-3",children:"$410"}),(0,Te.jsx)("div",{className:"text-sm text-red-600 font-medium mb-4",children:"\u25b2 38% vs last year"}),(0,Te.jsxs)("svg",{className:"w-full h-16",viewBox:"0 0 200 60",preserveAspectRatio:"none",children:[(0,Te.jsx)("polyline",{points:"0,50 40,45 80,42 120,35 160,28 200,20",fill:"none",stroke:"#4B2A85",strokeWidth:"2"}),(0,Te.jsx)("circle",{cx:"200",cy:"20",r:"3",fill:"#ef4444"})]})]}),(0,Te.jsx)("div",{className:"text-[9px] text-gray-400 uppercase tracking-wider font-mono",children:"LAST 6 QUARTERS"})]})})]})}),(0,Te.jsx)("p",{className:"text-xs text-gray-400 mt-3 text-center font-mono",children:"Illustrative data"})]})})]})]})]}),(0,Te.jsxs)("section",{id:"the-solution",className:"px-4 sm:px-6 lg:px-6 py-12 sm:py-16 md:py-20 max-w-7xl mx-auto fade-in-section",children:[(0,Te.jsxs)("div",{className:"text-center mb-12 sm:mb-16 md:mb-20",children:[(0,Te.jsxs)("div",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold text-gray-900 mb-3 sm:mb-4 transition-all duration-1000 opacity-0 -translate-x-20",style:{transitionDelay:"0ms",fontFamily:"'Bricolage Grotesque', sans-serif"},children:["People ",(0,Te.jsx)("span",{className:"mint-highlight",children:"Trust"})," People."]}),(0,Te.jsx)("div",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold text-gray-900 transition-all duration-1000 opacity-0 translate-x-20",style:{transitionDelay:"200ms",fontFamily:"'Bricolage Grotesque', sans-serif"},children:"Not Ads."})]}),(0,Te.jsx)("div",{className:"text-xs uppercase tracking-widest text-gray-500 mb-6 sm:mb-8 font-mono",children:"THE SOLUTION"}),(0,Te.jsxs)("div",{className:"grid md:grid-cols-2 gap-8 sm:gap-12 items-start",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-gray-900 mb-4 sm:mb-6 max-w-full break-words lg:break-normal px-0",children:"Uplaud turns trust into a channel of qualified leads."}),(0,Te.jsx)("p",{className:"text-sm sm:text-base text-gray-600 mb-6 sm:mb-8 leading-relaxed",children:"Transform positive customer experiences into referrals, qualified leads, and conversion-driving content. Systematic word-of-mouth for products where trust drives every decision. And when you're ready to run ads, Uplaud builds and runs them for you \u2014 creative made from real customer proof, targeted with your referral data."}),(0,Te.jsxs)("div",{className:"mb-6 sm:mb-8",children:[(0,Te.jsx)("p",{className:"text-base sm:text-lg font-semibold text-gray-900 mb-3 sm:mb-4",children:"The tangible change to your numbers:"}),(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#7FEAC8] flex items-center justify-center flex-shrink-0",children:(0,Te.jsx)("svg",{className:"w-4 h-4 text-gray-900",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Te.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M5 13l4 4L19 7"})})}),(0,Te.jsx)("span",{className:"text-sm sm:text-base text-gray-900",children:"Lower Customer Acquisition Costs"})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#7FEAC8] flex items-center justify-center flex-shrink-0",children:(0,Te.jsx)("svg",{className:"w-4 h-4 text-gray-900",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Te.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M5 13l4 4L19 7"})})}),(0,Te.jsx)("span",{className:"text-sm sm:text-base text-gray-900",children:"Higher Conversion Rates"})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#7FEAC8] flex items-center justify-center flex-shrink-0",children:(0,Te.jsx)("svg",{className:"w-4 h-4 text-gray-900",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Te.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M5 13l4 4L19 7"})})}),(0,Te.jsx)("span",{className:"text-sm sm:text-base text-gray-900",children:"Compounding Growth"})]})]})]}),(0,Te.jsxs)("button",{className:"bg-[#4B2A85] text-white px-6 sm:px-7 py-2.5 sm:py-3 rounded-full hover:bg-[#3d2269] transition-all hover:scale-[1.02] font-mono flex items-center gap-2 shadow-[0_4px_14px_0_rgba(75,42,133,0.39)] text-sm sm:text-base",children:["Get Started ",(0,Te.jsx)("span",{className:"text-base sm:text-lg",children:"\u2197"})]})]}),(0,Te.jsx)("div",{className:"w-full",children:(0,Te.jsxs)("div",{className:"bg-white rounded-2xl shadow-xl overflow-hidden border border-gray-200",children:[(0,Te.jsxs)("div",{className:"bg-white border-b border-gray-200 px-4 py-3 flex items-center justify-between",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("span",{className:"font-bold text-lg text-gray-900",children:"Uplaud"}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-2 h-2 bg-[#7FEAC8] rounded-full animate-pulse"}),(0,Te.jsx)("span",{className:"text-xs text-gray-600",children:"Live"})]})]}),(0,Te.jsx)("div",{className:"bg-[#4B2A85] text-white px-3 py-1 rounded-full text-xs font-mono",children:"THIS WEEK"})]}),(0,Te.jsxs)("div",{className:"p-4",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:"Warm leads"}),(0,Te.jsx)("p",{className:"text-xs text-gray-600",children:"People who arrived through a customer they trust."})]}),(0,Te.jsxs)("div",{className:"bg-[#4B2A85] text-white px-3 py-2 rounded-xl text-xs font-mono whitespace-nowrap",children:[(0,Te.jsx)("span",{className:"font-bold",children:"6"})," new"]})]}),(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("div",{className:"bg-gray-50 rounded-xl p-3 border border-gray-100",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Te.jsx)("span",{className:"font-semibold text-gray-900 text-sm",children:"Sophie K."}),(0,Te.jsx)("span",{className:"px-2 py-1 rounded-full text-xs font-mono font-semibold bg-[#7FEAC8] text-gray-900",children:"DEMO BOOKED"})]}),(0,Te.jsxs)("p",{className:"text-xs text-gray-600",children:["Referred by ",(0,Te.jsx)("span",{className:"font-medium text-gray-900",children:"Tom W."})]})]}),(0,Te.jsxs)("div",{className:"bg-gray-50 rounded-xl p-3 border border-gray-100",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Te.jsx)("span",{className:"font-semibold text-gray-900 text-sm",children:"Daniel P."}),(0,Te.jsx)("span",{className:"px-2 py-1 rounded-full text-xs font-mono font-semibold bg-purple-100 text-[#4B2A85]",children:"REPLIED"})]}),(0,Te.jsxs)("p",{className:"text-xs text-gray-600",children:["Referred by ",(0,Te.jsx)("span",{className:"font-medium text-gray-900",children:"Tom W."})]})]}),(0,Te.jsxs)("div",{className:"bg-gray-50 rounded-xl p-3 border border-gray-100",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Te.jsx)("span",{className:"font-semibold text-gray-900 text-sm",children:"Priya K."}),(0,Te.jsx)("span",{className:"px-2 py-1 rounded-full text-xs font-mono font-semibold bg-purple-100 text-[#4B2A85]",children:"NEW"})]}),(0,Te.jsxs)("p",{className:"text-xs text-gray-600",children:["Referred by ",(0,Te.jsx)("span",{className:"font-medium text-gray-900",children:"Emma D."})]})]}),(0,Te.jsxs)("div",{className:"bg-gray-50 rounded-xl p-3 border border-gray-100",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Te.jsx)("span",{className:"font-semibold text-gray-900 text-sm",children:"Alex T."}),(0,Te.jsx)("span",{className:"px-2 py-1 rounded-full text-xs font-mono font-semibold bg-[#7FEAC8] text-gray-900",children:"DEMO BOOKED"})]}),(0,Te.jsxs)("p",{className:"text-xs text-gray-600",children:["Referred by ",(0,Te.jsx)("span",{className:"font-medium text-gray-900",children:"Tom W."})]})]}),(0,Te.jsxs)("div",{className:"bg-gray-50 rounded-xl p-3 border border-gray-100",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Te.jsx)("span",{className:"font-semibold text-gray-900 text-sm",children:"Lena F."}),(0,Te.jsx)("span",{className:"px-2 py-1 rounded-full text-xs font-mono font-semibold bg-purple-100 text-[#4B2A85]",children:"NEW"})]}),(0,Te.jsxs)("p",{className:"text-xs text-gray-600",children:["Referred by ",(0,Te.jsx)("span",{className:"font-medium text-gray-900",children:"Emma D."})]})]})]}),(0,Te.jsx)("div",{className:"mt-4 bg-purple-50 rounded-xl px-3 py-3 text-center",children:(0,Te.jsx)("p",{className:"text-xs text-[#4B2A85] font-bold",children:"Every lead traces back to the review that started it."})})]})]})})]})]}),(0,Te.jsxs)("section",{className:"px-4 sm:px-6 py-12 sm:py-16 md:py-20 relative overflow-hidden fade-in-section min-h-screen flex items-center",style:{background:"linear-gradient(rgb(45, 22, 80) 0%, rgb(31, 14, 58) 50%, rgb(13, 3, 24) 100%)"},children:[(0,Te.jsx)("div",{className:"absolute inset-0 opacity-30 pointer-events-none",style:{backgroundImage:'url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20200%20200%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cfilter%20id%3D%27noiseFilter%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.9%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url(%23noiseFilter)%27%2F%3E%3C%2Fsvg%3E")',backgroundRepeat:"repeat",backgroundSize:"200px 200px"}}),(0,Te.jsx)("div",{className:"w-full mx-auto relative z-10 flex items-center justify-center",style:{filter:"none"},children:(0,Te.jsx)("div",{className:"flex items-center justify-center",children:(0,Te.jsxs)("svg",{viewBox:"0 0 1000 800",style:{width:"min(90vw, 640px)",height:"auto",filter:"drop-shadow(rgba(127, 234, 200, 0.3) 0px 0px 60px)"},children:[(0,Te.jsxs)("defs",{children:[(0,Te.jsxs)("filter",{id:"softGlow",children:[(0,Te.jsx)("feGaussianBlur",{stdDeviation:"8",result:"coloredBlur"}),(0,Te.jsxs)("feMerge",{children:[(0,Te.jsx)("feMergeNode",{in:"coloredBlur"}),(0,Te.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,Te.jsxs)("filter",{id:"nodeHalo",children:[(0,Te.jsx)("feGaussianBlur",{stdDeviation:"6",result:"coloredBlur"}),(0,Te.jsxs)("feMerge",{children:[(0,Te.jsx)("feMergeNode",{in:"coloredBlur"}),(0,Te.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,Te.jsxs)("radialGradient",{id:"subtleGlow",children:[(0,Te.jsx)("stop",{offset:"0%","stop-color":"rgba(127, 234, 200, 0.15)"}),(0,Te.jsx)("stop",{offset:"100%","stop-color":"rgba(127, 234, 200, 0)"})]})]}),(0,Te.jsx)("circle",{cx:"500",cy:"400",r:"270",fill:"url(#subtleGlow)",opacity:"0",className:"transition-opacity duration-1500"}),(0,Te.jsx)("circle",{cx:"500",cy:"400",r:"220",fill:"none",stroke:"#7FEAC8",strokeWidth:"2",filter:"url
2(#softGlow)",opacity:"1",className:"transition-all duration-2000 opacity-0",style:{strokeDasharray:"1382",strokeDashoffset:"1382",transition:"stroke-dashoffset 2.5s ease-out, opacity 1.5s"}}),(0,Te.jsxs)("text",{x:"500",y:"400",textAnchor:"middle",className:"fill-white font-bold",style:{fontFamily:"'Bricolage Grotesque', sans-serif",fontSize:"36px"},children:[(0,Te.jsx)("tspan",{x:"500",dy:"-0.4em",children:"Uplaud"}),(0,Te.jsx)("tspan",{x:"500",dy:"1.5em",children:"Growth Engine"})]}),(0,Te.jsxs)("g",{children:[(0,Te.jsx)("circle",{cx:"500",cy:"180",r:"28",fill:"rgba(127, 234, 200, 0.08)",className:"transition-all duration-700 opacity-0",style:{transitionDelay:"0ms"}}),(0,Te.jsx)("circle",{cx:"500",cy:"180",r:"22",fill:"#7FEAC8",filter:"url(#nodeHalo)",opacity:"1",className:"transition-all duration-700 opacity-0 scale-0",style:{transitionDelay:"0ms",transformOrigin:"500px 180px"}}),(0,Te.jsx)("text",{x:"500",y:"180",textAnchor:"middle",dominantBaseline:"middle",className:"font-bold font-mono",style:{pointerEvents:"none",fontSize:"18px",fill:"rgb(30, 27, 58)"},children:"01"}),(0,Te.jsx)("text",{x:"500",y:"130",textAnchor:"middle",dominantBaseline:"middle",className:"fill-white font-medium",style:{fontFamily:"Inter, sans-serif",fontSize:"26px"},children:"Capture"})]}),(0,Te.jsxs)("g",{children:[(0,Te.jsx)("circle",{cx:"709.2324335849338",cy:"332.01626123751157",r:"28",fill:"rgba(127, 234, 200, 0.08)",className:"transition-all duration-700 opacity-0",style:{transitionDelay:"200ms"}}),(0,Te.jsx)("circle",{cx:"709.2324335849338",cy:"332.01626123751157",r:"22",fill:"#7FEAC8",filter:"url(#nodeHalo)",opacity:"1",className:"transition-all duration-700 opacity-0 scale-0",style:{transitionDelay:"200ms",transformOrigin:"709.232px 332.016px"}}),(0,Te.jsx)("text",{x:"709.2324335849338",y:"332.01626123751157",textAnchor:"middle",dominantBaseline:"middle",className:"font-bold font-mono",style:{pointerEvents:"none",fontSize:"18px",fill:"rgb(30, 27, 58)"},children:"02"}),(0,Te.jsxs)("text",{x:"756.7852593996914",y:"316.5654115187642",textAnchor:"start",dominantBaseline:"middle",className:"fill-white font-medium",style:{fontFamily:"Inter, sans-serif",fontSize:"26px"},children:[(0,Te.jsx)("tspan",{x:"756.7852593996914",textAnchor:"start",dy:"-0.6em",children:"Personalize &"}),(0,Te.jsx)("tspan",{x:"756.7852593996914",textAnchor:"start",dy:"1.2em",children:"Refer"})]})]}),(0,Te.jsxs)("g",{children:[(0,Te.jsx)("circle",{cx:"629.3127555043441",cy:"577.9837387624884",r:"28",fill:"rgba(127, 234, 200, 0.08)",className:"transition-all duration-700 opacity-0",style:{transitionDelay:"400ms"}}),(0,Te.jsx)("circle",{cx:"629.3127555043441",cy:"577.9837387624884",r:"22",fill:"#7FEAC8",filter:"url(#nodeHalo)",opacity:"1",className:"transition-all duration-700 opacity-0 scale-0",style:{transitionDelay:"400ms",transformOrigin:"629.313px 577.984px"}}),(0,Te.jsx)("text",{x:"629.3127555043441",y:"577.9837387624884",textAnchor:"middle",dominantBaseline:"middle",className:"font-bold font-mono",style:{pointerEvents:"none",fontSize:"18px",fill:"rgb(30, 27, 58)"},children:"03"}),(0,Te.jsxs)("text",{x:"658.7020181189678",y:"618.4345884812358",textAnchor:"start",dominantBaseline:"middle",className:"fill-white font-medium",style:{fontFamily:"Inter, sans-serif",fontSize:"26px"},children:[(0,Te.jsx)("tspan",{x:"658.7020181189678",textAnchor:"start",dy:"-0.6em",children:"Amplify &"}),(0,Te.jsx)("tspan",{x:"658.7020181189678",textAnchor:"start",dy:"1.2em",children:"Distribute"})]})]}),(0,Te.jsxs)("g",{children:[(0,Te.jsx)("circle",{cx:"370.68724449565593",cy:"577.9837387624884",r:"28",fill:"rgba(127, 234, 200, 0.08)",className:"transition-all duration-700 opacity-0",style:{transitionDelay:"600ms"}}),(0,Te.jsx)("circle",{cx:"370.68724449565593",cy:"577.9837387624884",r:"22",fill:"#7FEAC8",filter:"url(#nodeHalo)",opacity:"1",className:"transition-all duration-700 opacity-0 scale-0",style:{transitionDelay:"600ms",transformOrigin:"370.687px 577.984px"}}),(0,Te.jsx)("text",{x:"370.68724449565593",y:"577.9837387624884",textAnchor:"middle",dominantBaseline:"middle",className:"font-bold font-mono",style:{pointerEvents:"none",fontSize:"18px",fill:"rgb(30, 27, 58)"},children:"04"}),(0,Te.jsxs)("text",{x:"341.2979818810323",y:"618.4345884812358",textAnchor:"end",dominantBaseline:"middle",className:"fill-white font-medium",style:{fontFamily:"Inter, sans-serif",fontSize:"26px"},children:[(0,Te.jsx)("tspan",{x:"341.2979818810323",textAnchor:"end",dy:"-0.6em",children:"Enrich, Nurture"}),(0,Te.jsx)("tspan",{x:"341.2979818810323",textAnchor:"end",dy:"1.2em",children:"& Convert"})]})]}),(0,Te.jsxs)("g",{children:[(0,Te.jsx)("circle",{cx:"290.7675664150662",cy:"332.0162612375115",r:"28",fill:"rgba(127, 234, 200, 0.08)",className:"transition-all duration-700 opacity-0",style:{transitionDelay:"800ms"}}),(0,Te.jsx)("circle",{cx:"290.7675664150662",cy:"332.0162612375115",r:"22",fill:"#7FEAC8",filter:"url
2(#nodeHalo)",opacity:"1",className:"transition-all duration-700 opacity-0 scale-0",style:{transitionDelay:"800ms",transformOrigin:"290.768px 332.016px"}}),(0,Te.jsx)("text",{x:"290.7675664150662",y:"332.0162612375115",textAnchor:"middle",dominantBaseline:"middle",className:"font-bold font-mono",style:{pointerEvents:"none",fontSize:"18px",fill:"rgb(30, 27, 58)"},children:"05"}),(0,Te.jsxs)("text",{x:"243.21474060030857",y:"316.5654115187641",textAnchor:"end",dominantBaseline:"middle",className:"fill-white font-medium",style:{fontFamily:"Inter, sans-serif",fontSize:"26px"},children:[(0,Te.jsx)("tspan",{x:"243.21474060030857",textAnchor:"end",dy:"-0.6em",children:"Continuous"}),(0,Te.jsx)("tspan",{x:"243.21474060030857",textAnchor:"end",dy:"1.2em",children:"Growth"})]})]})]})})})]}),(0,Te.jsxs)("section",{id:"identifying-fit",className:"px-4 sm:px-6 py-12 sm:py-16 md:py-24 max-w-7xl mx-auto fade-in-section",children:[(0,Te.jsx)("div",{className:"text-xs uppercase tracking-widest text-gray-500 mb-6 sm:mb-8 font-mono",children:"Is this you"}),(0,Te.jsxs)("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-gray-900 mb-12 sm:mb-16 max-w-4xl",children:["Built for FinTech, where ",(0,Te.jsx)("span",{className:"mint-highlight",children:"trust"})," is the product."]}),(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-8 mb-12 sm:mb-16",children:[(0,Te.jsxs)("div",{className:"bg-white border border-gray-200 rounded-2xl sm:rounded-3xl p-6 sm:p-8 hover:border-[#4B2A85] hover:shadow-lg transition-all",children:[(0,Te.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-credit-card w-10 h-10 sm:w-12 sm:h-12 text-[#4B2A85] mb-4 sm:mb-6","aria-hidden":"true",children:[(0,Te.jsx)("rect",{width:"20",height:"14",x:"2",y:"5",rx:"2"}),(0,Te.jsx)("line",{x1:"2",x2:"22",y1:"10",y2:"10"})]}),(0,Te.jsx)("h3",{className:"text-lg sm:text-xl font-bold text-gray-900 mb-2 sm:mb-3 leading-tight",children:"Payments & Expense Platforms"}),(0,Te.jsx)("p",{className:"text-xs sm:text-sm text-gray-600 leading-relaxed",children:"Businesses route real money through you. They sign up because a founder they know already did."})]}),(0,Te.jsxs)("div",{className:"bg-white border border-gray-200 rounded-2xl sm:rounded-3xl p-6 sm:p-8 hover:border-[#4B2A85] hover:shadow-lg transition-all",children:[(0,Te.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-handshake w-10 h-10 sm:w-12 sm:h-12 text-[#4B2A85] mb-4 sm:mb-6","aria-hidden":"true",children:[(0,Te.jsx)("path",{d:"m11 17 2 2a1 1 0 1 0 3-3"}),(0,Te.jsx)("path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4"}),(0,Te.jsx)("path",{d:"m21 3 1 11h-2"}),(0,Te.jsx)("path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3"}),(0,Te.jsx)("path",{d:"M3 4h8"})]}),(0,Te.jsx)("h3",{className:"text-lg sm:text-xl font-bold text-gray-900 mb-2 sm:mb-3 leading-tight",children:"Lending & Credit"}),(0,Te.jsx)("p",{className:"text-xs sm:text-sm text-gray-600 leading-relaxed",children:"Nobody takes a loan from a stranger. Borrowers arrive through accountants, advisors, and other owners."})]}),(0,Te.jsxs)("div",{className:"bg-white border border-gray-200 rounded-2xl sm:rounded-3xl p-6 sm:p-8 hover:border-[#4B2A85] hover:shadow-lg transition-all",children:[(0,Te.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-calculator w-10 h-10 sm:w-12 sm:h-12 text-[#4B2A85] mb-4 sm:mb-6","aria-hidden":"true",children:[(0,Te.jsx)("rect",{width:"16",height:"20",x:"4",y:"2",rx:"2"}),(0,Te.jsx)("line",{x1:"8",x2:"16",y1:"6",y2:"6"}),(0,Te.jsx)("line",{x1:"16",x2:"16",y1:"14",y2:"18"}),(0,Te.jsx)("path",{d:"M16 10h.01"}),(0,Te.jsx)("path",{d:"M12 10h.01"}),(0,Te.jsx)("path",{d:"M8 10h.01"}),(0,Te.jsx)("path",{d:"M12 14h.01"}),(0,Te.jsx)("path",{d:"M8 14h.01"}),(0,Te.jsx)("path",{d:"M12 18h.01"}),(0,Te.jsx)("path",{d:"M8 18h.01"})]}),(0,Te.jsx)("h3",{className:"text-lg sm:text-xl font-bold text-gray-900 mb-2 sm:mb-3 leading-tight",children:"Accounting & Bookkeeping Softw
2are"}),(0,Te.jsx)("p",{className:"text-xs sm:text-sm text-gray-600 leading-relaxed",children:"Every accountant who loves you influences dozens of client decisions. Capture it."})]}),(0,Te.jsxs)("div",{className:"bg-white border border-gray-200 rounded-2xl sm:rounded-3xl p-6 sm:p-8 hover:border-[#4B2A85] hover:shadow-lg transition-all",children:[(0,Te.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-shield w-10 h-10 sm:w-12 sm:h-12 text-[#4B2A85] mb-4 sm:mb-6","aria-hidden":"true",children:(0,Te.jsx)("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"})}),(0,Te.jsx)("h3",{className:"text-lg sm:text-xl font-bold text-gray-900 mb-2 sm:mb-3 leading-tight",children:"Business Insurance"}),(0,Te.jsx)("p",{className:"text-xs sm:text-sm text-gray-600 leading-relaxed",children:"Policies are renewed on relationships. One insured founder vouching moves an entire network."})]})]}),(0,Te.jsxs)("div",{className:"text-center py-12 sm:py-16",children:[(0,Te.jsx)("p",{className:"text-lg sm:text-xl font-bold text-gray-900 mb-6 sm:mb-8 max-w-4xl mx-auto leading-relaxed px-2",style:{fontFamily:"'Bricolage Grotesque', sans-serif"}
2,children:"If one new account is worth thousands in lifetime value, this is built for how you already grow."}),(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3 sm:gap-4 px-4",children:[(0,Te.jsxs)("button",{className:"w-full sm:w-auto bg-[#4B2A85] text-white px-6 sm:px-7 py-2.5 sm:py-3 rounded-full hover:bg-[#3d2269] transition-all hover:scale-[1.02] font-mono flex items-center justify-center gap-2 shadow-[0_4px_14px_0_rgba(75,42,133,0.39)] text-sm sm:text-base",children:["Get Started ",(0,Te.jsx)("span",{className:"text-base sm:text-lg",children:"\u2197"})]}),(0,Te.jsxs)("button",{className:"w-full sm:w-auto border-2 border-gray-900 text-gray-900 px-6 sm:px-7 py-2.5 sm:py-3 rounded-full hover:bg-gray-900 hover:text-white transition-all hover:scale-[1.02] font-mono flex items-center justify-center gap-2 shadow-[0_2px_8px_0_rgba(0,0,0,0.08)] text-sm sm:text-base",children:["Get a Demo ",(0,Te.jsx)("span",{className:"text-base sm:text-lg",children:"\u2197"})]})]})]})]}),(0,Te.jsxs)("section",{className:"px-4 sm:px-6 py-12 sm:py-16 md:py-24 max-w-4xl mx-auto fade-in-section",children:[(0,Te.jsx)("h2",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-12",children:"FAQs"}),(0,Te.jsx)("div",{className:"space-y-4",children:[{question:"What is Uplaud?",answer:"Uplaud is a specialized customer advocacy and growth platform for FinTech and financial services. We help B2B and B2C fintech platforms capture high-signal customer delight (demo bookings, reviews, testimonials) and transform them into automated, high-converting growth assets like personalized outreach campaigns and social content."},{question:"How is this different from Google or Trustpilot?",answer:"Generic review platforms are passive and often sit on third-party sites with no connection to your actual pipeline. Uplaud actively drives growth by converting reviews into targeted outreach campaigns, scroll-stopping social previews, and branded visual proof points, integrated directly into your marketing and sales stack."},{question:"Does this work for regulated industries?",answer:"Absolutely. FinTech operates under strict compliance. Uplaud is built with full moderation controls, allowing your legal or compliance team to approve every customer quote, testimonial, and visual campaign before it is ever published or used in outreach."},{question:"How do I get customers to actually leave reviews?",answer:"Uplaud automates review requests at the exact moments of highest customer delight (such as right after onboarding, or during successful ROI reviews). By providing a frictionless, single-click review and referral experience, we see up to a 3-4x increase in customer participation."},{question:"Do I need to run paid ads?",answer:"No, Uplaud is designed to leverage your existing customer base for organic, compounding word-of-mouth growth. However, if you do run paid ads, Uplaud makes them more efficient by providing real, compliance-approved customer proof to fuel your ad creatives, driving down CAC."},{question:"How soon do I see something?",answer:"You can set up your first customer voice capture campaigns in under 20 minutes, and typically see warm referred leads and compiled customer testimonials entering your pipeline within the first 7-14 days."},{question:"Who's behind Uplaud?",answer:"Uplaud is built by a team of experienced B2B SaaS and FinTech growth marketers who understand the critical role trust plays in financial decision-making and are dedicated to building modern growth flywheels."}].map((e,t)=>(0,Te.jsxs)("div",{className:"border border-gray-200 rounded-2xl px-6 bg-white transition-all duration-200",children:[(0,Te.jsx)("h3",{children:(0,Te.jsxs)("button",{type:"button",onClick:()=>s(a===t?null:t),className:"flex flex-1 w-full items-center justify-between py-4 text-left text-lg font-semibold text-gray-900 hover:text-[#4B2A85] transition-colors focus:outline-none",children:[e.question,(0,Te.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 shrink-0 text-gray-500 transition-transform duration-200 ".concat(a===t?"rotate-180":""),children:(0,Te.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}),a===t&&(0,Te.jsx)("div",{className:"pb-5 pt-1 text-sm text-gray-600 leading-relaxed transition-all duration-300",children:e.answer})]},t))})]})]}),(0,Te.jsxs)("footer",{className:"px-4 sm:px-6 py-12 sm:py-16 md:py-24 relative overflow-hidden",style:{background:"linear-gradient(rgb(67, 23, 113) 0%, rgb(56, 20, 96) 50%, rgb(22, 3, 44) 100%)"},children:[(0,Te.jsx)("div",{className:"absolute inset-0 opacity-30 pointer-events-none",style:{backgroundImage:'url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20200%20200%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cfilter%20id%3D%27noiseFilter%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.9%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url(%23noiseFilter)%27%2F%3E%3C%2Fsvg%3E")',backgroundRepeat:"repeat",backgroundSize:"200px 200px"}}),(0,Te.jsx)("div",{className:"absolute left-0 right-0 bottom-0 flex items-end justify-center pointer-events-none overflow-hidden",style:{height:"120px"},children:(0,Te.jsx)("div",{className:"text-[15vw] sm:text-[18vw] font-bold leading-none",style:{fontFamily:"'Bricolage Grotesque', sans-serif",transform:"translateY(15%)",background:"linear-gradient(rgba(78, 65, 109, 0.6) 0%, rgba(0, 0, 0, 0) 100%)",WebkitBackgroun
2dClip:"text",WebkitTextFillColor:"transparent"},children:"uplaud.ai"})}),(0,Te.jsxs)("div",{className:"absolute inset-0 opacity-20",children:[(0,Te.jsx)("div",{className:"wave wave-1"}),(0,Te.jsx)("div",{className:"wave wave-2"}),(0,Te.jsx)("div",{className:"wave wave-3"})]}),(0,Te.jsxs)("div",{className:"max-w-4xl mx-auto text-center relative z-10",children:[(0,Te.jsx)("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-white mb-4 sm:mb-6 px-2",children:"Build the trust layer for your business with Uplaud."}),(0,Te.jsx)("p",{className:"text-base sm:text-lg text-white/80 mb-8 sm:mb-10 px-2",children:"The trust engine for FinTech. Real reviews. Real people. Real growth."}),(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3 sm:gap-4 mb-16 sm:mb-24 px-4",children:[(0,Te.jsxs)("button",{className:"w-full sm:w-auto bg-[#7FEAC8] text-gray-900 px-6 sm:px-7 py-2.5 sm:py-3 rounded-full hover:bg-[#6dd4b4] transition-all hover:scale-[1.02] font-semibold font-mono flex items-center justify-center gap-2 shadow-[0_4px_14px_0_rgba(127,234,200,0.39)] text-sm sm:text-base",children:["Get Started ",(0,Te.jsx)("span",{className:"text-base sm:text-lg",children:"\u2197"})]}),(0,Te.jsxs)("button",{className:"w-full sm:w-auto border-2 border-white text-white px-6 sm:px-7 py-2.5 sm:py-3 rounded-full hover:bg-white hover:text-gray-900 transition-all hover:scale-[1.02] font-mono flex items-center justify-center gap-2 shadow-[0_2px_8px_0_rgba(255,255,255,0.15)] text-sm sm:text-base",children:["Get a Demo ",(0,Te.jsx)("span",{className:"text-base sm:text-lg",children:"\u2197"})]})]}),(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 pt-8 sm:pt-12 border-t border-white/20",children:[(0,Te.jsx)("div",{className:"text-white font-bold text-lg sm:text-xl",children:"Uplaud.AI"}),(0,Te.jsx)("a",{href:"mailto:[email protected]",className:"text-white/80 hover:text-white transition-colors text-xs sm:text-sm",children:"[email protected]"})]}),(0,Te.jsx)("div",{className:"text-white/60 text-xs sm:text-sm mt-4 sm:mt-6",children:"\xa9 2026 Uplaud. All rights reserved."})]})]})]})]})}function Yc(){}function Jc(){}const Xc=/^
vendor: 18,388 bytes, line 2
2(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088F\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5C\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDC-\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD6D\uDD6F-\uDD85\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEC2-\uDEC7\uDEFA-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD3\uDFE1\uDFE2]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDF60-\uDF67\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDEC0-\uDEDE\uDEE0-\uDEF5\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]|\uDB40[\uDD00-\uDDEF])*
2$/,Zc=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
2D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])(?:[\$\x2D0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088F\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5C\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDC-\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
2D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD6D\uDD6F-\uDD85\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEC2-\uDEC7\uDEFA-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD3\uDFE1\uDFE2]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDF60-\uDF67\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDEC0-\uDEDE\uDEE0-\uDEF5\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]|\uDB40[\uDD00-\uDDEF])*$/,ed={};function td(e,t){return((t||ed).jsx?Zc:Xc).test(e)}const nd=/[ \t\n\f\r]/g;function rd(e){return""===e.replace(nd,"")}class ad{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function sd(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new ad(n,r,t)}function id(e){return e.toLowerCase()}ad.prototype.normal={},ad.prototype.property={},ad.prototype.space=void 0;class od{constructor(e,t){this.attribute=t,this.property=e}}od.prototype.attribute="",od.prototype.booleanish=!1,od.prototype.boolean=!1,od.prototype.commaOrSpaceSeparated=!1,od.prototype.commaSeparated=!1,od.prototype.defined=!1,od.prototype.mustUseProperty=!1,od.prototype.number=!1,od.prototype.overloadedBoolean=!1,od.prototype.property="",od.prototype.spaceSeparated=!1,od.prototype.space=void 0;let ld=0;const ud=xd(),cd=xd(),dd=xd(),hd=xd(),fd=xd(),pd=xd(),md=xd();function xd(){return 2**++ld}const gd=Object.keys(a);class vd extends od{constructor(e,t,n,r){let s=-1;if(super(e,t),bd(this,"space",r),"number"===typeof n)for(;++s<gd.length;){const e=gd[s];bd(this,gd[s],(n&a[e])===a[e])}}}function bd(e,t,n){n&&(e[t]=n)}function yd(e){const t={},n={};for(const a of Object.entries(e.properties)){var r=qe(a,2);const s=r[0],i=r[1],o=new vd(s,e.transform(e.attributes||{},s),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(s)&&(o.mustUseProperty=!0),t[s]=o,n[id(s)]=s,n[id(o.attribute)]=s}return new ad(t,n,e.space)}vd.prototype.defined=!0;const Dd=yd({properties:{ariaActiveDescendant:null,ariaAtomic:cd,ariaAutoComplete:null,ariaBusy:cd,ariaChecked:cd,ariaColCount:hd,ariaColIndex:hd,ariaColSpan:hd,ariaControl
vendor: 4,126 bytes, line 2
2s:fd,ariaCurrent:null,ariaDescribedBy:fd,ariaDetails:null,ariaDisabled:cd,ariaDropEffect:fd,ariaErrorMessage:null,ariaExpanded:cd,ariaFlowTo:fd,ariaGrabbed:cd,ariaHasPopup:null,ariaHidden:cd,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fd,ariaLevel:hd,ariaLive:null,ariaModal:cd,ariaMultiLine:cd,ariaMultiSelectable:cd,ariaOrientation:null,ariaOwns:fd,ariaPlaceholder:null,ariaPosInSet:hd,ariaPressed:cd,ariaReadOnly:cd,ariaRelevant:null,ariaRequired:cd,ariaRoleDescription:fd,ariaRowCount:hd,ariaRowIndex:hd,ariaRowSpan:hd,ariaSelected:cd,ariaSetSize:hd,ariaSort:null,ariaValueMax:hd,ariaValueMin:hd,ariaValueNow:hd,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function wd(e,t){return t in e?e[t]:t}function kd(e,t){return wd(e,t.toLowerCase())}const jd=yd({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pd,acceptCharset:fd,accessKey:fd,action:null,allow:null,allowFullScreen:ud,allowPaymentRequest:ud,allowUserMedia:ud,alpha:ud,alt:null,as:null,async:ud,autoCapitalize:null,autoComplete:fd,autoFocus:ud,autoPlay:ud,blocking:fd,capture:null,charSet:null,checked:ud,cite:null,className:fd,closedBy:null,colorSpace:null,cols:hd,colSpan:hd,command:null,commandFor:null,content:null,contentEditable:cd,controls:ud,controlsList:fd,coords:hd|pd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ud,defer:ud,dir:null,dirName:null,disabled:ud,download:dd,draggable:cd,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ud,formTarget:null,headers:fd,height:hd,hidden:dd,high:hd,href:null,hrefLang:null,htmlFor:fd,httpEquiv:fd,id:null,imageSizes:null,imageSrcSet:null,inert:ud,inputMode:null,integrity:null,is:null,isMap:ud,itemId:null,itemProp:fd,itemRef:fd,itemScope:ud,itemType:fd,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ud,low:hd,manifest:null,max:null,maxLength:hd,media:null,method:null,min:null,minLength:hd,multiple:ud,muted:ud,name:null,nonce:null,noModule:ud,noValidate:ud,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:ud,optimum:hd,pattern:null,ping:fd,placeholder:null,playsInline:ud,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ud,referrerPolicy:null,rel:fd,required:ud,reversed:ud,rows:hd,rowSpan:hd,sandbox:fd,scope:null,scoped:ud,seamless:ud,selected:ud,shadowRootClonable:ud,shadowRootCustomElementRegistry:ud,shadowRootDelegatesFocus:ud,shadowRootMode:null,shadowRootSerializable:ud,shape:null,size:hd,sizes:null,slot:null,span:hd,spellCheck:cd,src:null,
2srcDoc:null,srcLang:null,srcSet:null,start:hd,step:null,style:null,tabIndex:hd,target:null,title:null,translate:null,type:null,typeMustMatch:ud,useMap:null,value:cd,width:hd,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fd,axis:null,background:null,bgColor:null,border:hd,borderColor:null,bottomMargin:hd,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ud,declare:ud,event:null,face:null,frame:null,frameBorder:null,hSpace:hd,leftMargin:hd,link:null,longDesc:null,lowSrc:null,marginHeight:hd,marginWidth:hd,noResize:ud,noHref:ud,noShade:ud,noWrap:ud,object:null,profile:null,prompt:null,rev:null,rightMargin:hd,rules:null,scheme:null,scrolling:cd,standby:null,summary:null,text:null,topMargin:hd,valueType:null,version:null,vAlign:null,vLink:null,vSpace:hd,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ud,disablePictureInPicture:ud,disableRemotePlayback:ud,exportParts:pd,part:fd,prefix:null,property:null,results:hd,security:null,unselectable:null},space:"html",transform:kd}),Cd=yd({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",colorRendering:"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",maskType:"mask-type",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
2-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:md,accentHeight:hd,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:hd,amplitude:hd,arabicForm:null,ascent:hd,attributeName:null,attributeType:null,azimuth:hd,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:hd,by:null,calcMode:null,capHeight:hd,className:fd,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:hd,diffuseConstant:hd,direction:null,display:null,dur:null,divisor:hd,dominantBaseline:null,download:ud,dx:null,dy:null,edgeMode:null,editable:null,elevation:hd,enableBackground:null,end:null,event:null,exponent:hd,externalResourcesRequired:null,fill:null,fillOpacity:hd,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:pd,g2:pd,glyphName:pd,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:hd,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:hd,horizOriginX:hd,horizOriginY:hd,id:null,ideographic:h
2d,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:hd,k:hd,k1:hd,k2:hd,k3:hd,k4:hd,kernelMatrix:md,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:hd,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:hd,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:hd,overlineThickness:hd,paintOrder:null,panose1:null,path:null,pathLength:hd,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fd,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:hd,pointsAtY:hd,pointsAtZ:hd,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:md,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:md,rev:md,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:md,requiredFeatures:md,requiredFonts:md,requiredFormats:md,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:hd,specularExponent:hd,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:hd,strikethroughThickness:hd,string:null,stroke:null,strokeDashArray:md,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:hd,strokeOpacity:hd,strokeWidth:null,style:null,surfaceScale:hd,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:md,tabIndex:hd,tableValues:null,target:null,targetX:hd,targetY:hd,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:md,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:hd,underlineThickness:hd,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:hd,values:null,vAlphabetic:hd,vMathematical:hd,vectorEffect:null,vHanging:hd,vIdeographic:hd,version:null,vertAdvY:hd,vertOriginX:hd,vertOriginY:hd,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:hd,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:wd}),Ed=yd({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>
2"xlink:"+t.slice(5).toLowerCase()}),Fd=yd({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:kd}),Nd=yd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Ad=sd([Dd,jd,Ed,Fd,Nd],"html"),Sd=sd([Dd,Cd,Ed,Fd,Nd],"svg"),_d=/[A-Z]/g,Bd=/-[a-z]/g,Td=/^data[-\w.:]+$/i;function Rd(e){return"-"+e.toLowerCase()}function Pd(e){return e.charAt(1).toUpperCase()}const Od={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"};var Ld=n(294);const Id=zd("end"),Md=zd("start");function zd(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 Ud(e){return e&&"object"===typeof e?"position"in e||"type"in e?Wd(e.position):"start"in e||"end"in e?Wd(e):"line"in e||"column"in e?qd(e):"":""}function qd(e){return Hd(e&&e.line)+":"+Hd(e&&e.column)}function Wd(e){return qd(e&&e.start)+"-"+qd(e&&e.end)}function Hd(e){return e&&"number"===typeof e?e:1}class Vd 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}:f({},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=Ud(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}}Vd.prototype.file="",Vd.prototype.name="",Vd.prototype.reason="",Vd.prototype.message="",Vd.prototype.stack="",Vd.prototype.column=void 0,Vd.prototype.line=void 0,Vd.prototype.ancestors=void 0,Vd.prototype.cause=void 0,Vd.prototype.fatal=void 0,Vd.prototype.place=void 0,Vd.prototype.ruleId=void 0,Vd.prototype.source=void 0;const Gd={}.hasOwnProperty,$d=new Map,Kd=/[A-Z]/g,Qd=new Set(["table","tbody","thead","tfoot","tr"]),Yd=new Set(["td","th"]),Jd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Xd(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 n;function n(n,r,a,s){const i=Array.isArray(a.children),o=Md(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: 13,248 bytes, line 2
2if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,a,s){const i=Array.isArray(a.children)?n:t;return s?i(r,a,s):i(r,a)}}(0,t.jsx,t.jsxs)}const a={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?Sd:Ad,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=Zd(a,e,void 0);return s&&"string"!==typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function Zd(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=Sd,e.schema=a);e.ancestors.push(t);const s=ah(e,t.tagName,!1),i=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&Gd.call(t.properties,a)){const s=rh(e,a,t.properties[a]);if(s){const a=qe(s,2),i=a[0],o=a[1];e.tableCellAlignToStyle&&"align"===i&&"string"===typeof o&&Yd.has(t.tagName)?r=o:n[i]=o}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let o=nh(e,t);Qd.has(t.tagName)&&(o=o.filter(function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&rd(t.value):rd(t));var t}));return eh(e,i,s,t),th(i,o),e.ancestors.pop(),e.schema=r,e.create(t,s,i,n)}(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)}sh(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=Sd,e.schema=a);e.ancestors.push(t);const s=null===t.name?e.Fragment:ah(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];Yc(t.type);const a=t.expression;Yc(a.type);const s=a.properties[0];Yc(s.type),Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else sh(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];Yc(t.type),s=e.evaluater.evaluateExpression(t.expression)}else sh(e,t.position);else s=null===r.value||r.value;n[a]=s}return n}(e,t),o=nh(e,t);return eh(e,i,s,t),th(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);sh(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return th(r,nh(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 eh(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function th(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function nh(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:$d;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=Zd(e,s,i);void 0!==o&&n.push(o)}return n}function rh(e,t,n){const r=function(e,t){const n=id(t);let r=t,a=od;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Td.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Bd,Pd);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Bd.test(e)){let n=e.replace(_d,Rd);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=vd}return new a(r,t)}(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"===typeof n?n:function(e,t){try{return Ld(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new Vd("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Jd+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Gd.call(e,n)&&(t[ih(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Od[r.property]||r.property:r.attribute,n]}}function ah(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=td(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=td(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 Gd.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);sh(e)}function sh(e,t){const n=new Vd("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=Jd+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ih(e){let t=e.replace(Kd,oh);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function oh(e){return"-"+e.toLowerCase()}const lh={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"]},uh={};function ch(e,t){const n=t||uh;return dh(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}function dh(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 hh(e.children,t,n)}return Array.isArray(e)?hh(e,t,n):""}function hh(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=dh(e[a],t,n);return r.join("")}function fh(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 ph(e,t){return e.length>0?(fh(e,e.length,0,t),e):t}class mh{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||void 0===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&&xh(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),xh(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),xh(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);xh(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);xh(this.left,t.reverse())}}}function xh(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 gh(e){const t={};let n,r,a,s,i,o,l,u=-1;const c=new mh(e);for(;++u<c.length;){for(;u in t;)u=t[u];if(n=c.get(u),u&&"chunkFlow"===n[1].type&&"listItemPrefix"===c.get(u-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,vh(c,u)),u=t[u],l=!0);else if(n[1]._container){for(a=u,r=void 0;a--;)if(s=c.get(a),"lineEnding"===s[1].type||"lineEndingBlank"===s[1].type)"enter"===s[0]&&(r&&(c.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=f({},c.get(r)[1].start),i=c.slice(r,u),i.unshift(n),c.splice(r,u-r+1,i))}}return fh(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function vh(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=[],u={};let c,d,h=-1,f=n,p=0,m=0;const x=[m];for(;f;){for(;e.get(++a)[1]!==f;);s.push(a),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=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&&(m=h+1,x.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):x.pop(),h=x.length;h--;){const t=o.slice(x[h],x[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;)u[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return u}const bh={}.hasOwnProperty;function yh(e){const t={};let n=-1;for(;++n<e.length;)Dh(t,e[n]);return t}function Dh(e,t){let n;for(n in t){const r=(bh.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){bh.call(r,s)||(r[s]=[]);const e=a[s];wh(r[s],Array.isArray(e)?e:e?[e]:[])}}}function wh(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);fh(e,0,0,r)}const kh=Ph(/[A-Za-z]/),jh=Ph(/[\dA-Za-z]/),Ch=Ph(/[#-'*+\--9=?A-Z^-~]/);function Eh(e){return null!==e&&(e<32||127===e)}const Fh=Ph(/\d/),Nh=Ph(/[\dA-Fa-f]/),Ah=Ph(/[!-/:-@[-`{-~]/);function Sh(e){return null!==e&&e<-2}function _h(e){return null!==e&&(e<0||32===e)}function Bh(e){return-2===e||-1===e||32===e}const Th=Ph(/(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F])|(?:[\$\+<->
2\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/),Rh=Ph(/\s/);function Ph(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Oh(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let s=0;return function(r){if(Bh(r))return e.enter(n),i(r);return t(r)};function i(r){return Bh(r)&&s++<a?(e.consume(r),i):(e.exit(n),t(r))}}const Lh={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Oh(e,t,"linePrefix")},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)):Sh(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const Ih={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,u)(r)}return u(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}v(i);let o=n;for(;o<t.events.length;)t.events[o][1].end=f({},a),o++;return fh(t.events,s+1,0,t.events.slice(n)),t.events.length=o,u(e)}return o(e)}function u(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(Mh,c,d)(a)}function c(e){return r&&b(),v(i),h(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,m
vendor: 5,286 bytes, line 2
2(e)}function h(n){return t.containerState={},e.attempt(Mh,p,m)(n)}function p(e){return i++,n.push([t.currentConstruct,t.containerState]),h(e)}function m(n){return null===n?(r&&b(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),x(n))}function x(n){return null===n?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):Sh(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(n),x)}function g(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(v(i),e=n;e<t.events.length;)t.events[e][1].end=f({},o),e++;fh(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(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}}},Mh={tokenize:function(e,t,n){return Oh(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const zh={partial:!0,tokenize:function(e,t,n){return function(t){return Bh(t)?Oh(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Sh(e)?t(e):n(e)}}};const Uh={resolve:function(e){return gh(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):Sh(t)?e.check(qh,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}}},qh={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"),Oh(e,a,"linePrefix")};function a(a){if(null===a||Sh(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)}}};const Wh={tokenize:function(e){const t=this,n=e.attempt(zh,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,Oh(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Uh,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)}}};const Hh={resolveAll:Kh()},Vh=$h("string"),Gh=$h("text");function $h(e){return{resolveAll:Kh("text"===e?Qh: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 Kh(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 Qh(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:f({},r.end)};r.end=f({},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 Yh={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||Sh(s))?(e.exit("thematicBreak"),t(s)):n(s)}function i(t){return t===r?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),Bh(t)?Oh(e,s,"whitespace")(t):s(t))}}};const Jh={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(zh,a,s);function a(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Oh(e,t,"listItemIndent",r.containerState.size+1)(n)}function s(n){return r.containerState.furtherBlankLines||!Bh(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
vendor: 1,328 bytes, line 2
2=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Zh,t,i)(n))}function i(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Oh(e,e.attempt(Jh,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:Fh(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(Yh,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 Fh(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(zh,r.interrupt?n:u,e.attempt(Xh,d,c))}
vendor: 9,760 bytes, line 2
2function u(e){return r.containerState.initialBlankLine=!0,s++,d(e)}function c(t){return Bh(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)}}},Xh={partial:!0,tokenize:function(e,t,n){const r=this;return Oh(e,function(e){const a=r.events[r.events.length-1];return!Bh(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Zh={partial:!0,tokenize:function(e,t,n){const r=this;return Oh(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)}};const ef={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Bh(t))return Oh(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(ef,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 Bh(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function tf(e,t,n,r,a,s,i,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(s),e.consume(t),e.exit(s),d;if(null===t||32===t||41===t||Eh(t))return n(t);return e.enter(r),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),p(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||Sh(t)?n(t):(e.consume(t),92===t?f:h)}function f(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function p(a){return c||null!==a&&41!==a&&!_h(a)?c<u&&40===a?(e.consume(a),c++,p):41===a?(e.consume(a),c--,p):null===a||32===a||40===a||Eh(a)?n(a):(e.consume(a),92===a?m:p):(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(r),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function nf(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),u};function u(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):Sh(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||Sh(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!Bh(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function rf(e,t,n,r,a,s){let i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,o;return 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):Sh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Oh(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===i||null===t||Sh(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===i||92===t?(e.consume(t),u):u(t)}}function af(e,t){let n;return function r(a){if(Sh(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(Bh(a))return Oh(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}function sf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const of={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return nf.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function s(t){return a=sf(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 _h(t)?af(e,o)(t):o(t)}function o(t){return tf(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(lf,u,u)(t)}function u(t){return Bh(t)?Oh(e,c,"whitespace")(t):c(t)}function c(s){return null===s||Sh(s)?(e.exit("definition"),r.parser.defined.push(a),t(s)):n(s)}}},lf={partial:!0,tokenize:function(e,t,n){return function(t){return _h(t)?af(e,r)(t):n(t)};function r(t){return rf(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return Bh(t)?Oh(e,s,"whitespace")(t):s(t)}function s(e){return null===e||Sh(e)?t(e):n(e)}}};const uf={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Oh(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):Sh(t)?e.attempt(cf,s,o)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||Sh(t)?(e.exit("codeFlowValue"),s(t)):(e.consume(t),i)}function o(n){return e.exit("codeIndented"),t(n)}}},cf={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):Sh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):Oh(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):Sh(e)?a(e):n(e)}}};const df={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,s=3;"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"},fh(e,s,a-s+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return 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||_h(t)?(e.exit("atxHeadingSequence"),s(t)):n(t)}function s(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||Sh(n)?(e.exit("atxHeading"),t(n)):Bh(n)?Oh(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||_h(t)?(e.exit("atxHeadingText"),s(t)):(e.consume(t),o)}}};const hf={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:f({},e[n][1].start),end:f({},e[e.length-1][1].end)};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=f({},e[a][1].end)):e[n][1]=i;return 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}if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),s(t)}(t);return n(t)};function s(t){return t===a?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),Bh(t)?Oh(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||Sh(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const ff=["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"],pf=["pre","script","style","textarea"],mf={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););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));return 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),u}(t)};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),s=!0,f):63===o?(e.consume(o),a=3,r.interrupt?t:R):kh(o)?(e.consume(o),i=String.fromCharCode(o),p):n(o)}function c(s){return 45===s?(e.consume(s),a=2,d):91===s?(e.consume(s),a=5,o=0,h):kh(s)?(e.consume(s),a=4,r.interrupt?t:R):n(s)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:R):n(a)}function h(a){const s="CDATA[";return a===s.charCodeAt(o++)?(e.consume(a),6===o?r.interrupt?t:E:h):n(a)}function f(t){return kh(t)?(e.consume(t),i=String.fromCharCode(t),p):n(t)}
vendor: 4,267 bytes, line 2
2function p(o){if(null===o||47===o||62===o||_h(o)){const l=47===o,u=i.toLowerCase();return l||s||!pf.includes(u)?ff.includes(i.toLowerCase())?(a=6,l?(e.consume(o),m):r.interrupt?t(o):E(o)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(o):s?x(o):g(o)):(a=1,r.interrupt?t(o):E(o))}return 45===o||jh(o)?(e.consume(o),i+=String.fromCharCode(o),p):n(o)}function m(a){return 62===a?(e.consume(a),r.interrupt?t:E):n(a)}function x(t){return Bh(t)?(e.consume(t),x):j(t)}function g(t){return 47===t?(e.consume(t),j):58===t||95===t||kh(t)?(e.consume(t),v):Bh(t)?(e.consume(t),g):j(t)}function v(t){return 45===t||46===t||58===t||95===t||jh(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),y):Bh(t)?(e.consume(t),b):g(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,D):Bh(t)?(e.consume(t),y):w(t)}function D(t){return t===l?(e.consume(t),l=null,k):null===t||Sh(t)?n(t):(e.consume(t),D)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||_h(t)?b(t):(e.consume(t),w)}function k(e){return 47===e||62===e||Bh(e)?g(e):n(e)}function j(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||Sh(t)?E(t):Bh(t)?(e.consume(t),C):n(t)}function E(t){return 45===t&&2===a?(e.consume(t),S):60===t&&1===a?(e.consume(t),_):62===t&&4===a?(e.consume(t),P):63===t&&3===a?(e.consume(t),R):93===t&&5===a?(e.consume(t),T):!Sh(t)||6!==a&&7!==a?null===t||Sh(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),E):(e.exit("htmlFlowData"),e.check(xf,O,F)(t))}function F(t){return e.check(gf,N,O)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||Sh(t)?F(t):(e.enter("htmlFlowData"),E(t))}function S(t){return 45===t?(e.consume(t),R):E(t)}function _(t){return 47===t?(e.consume(t),i="",B):E(t)}function B(t){if(62===t){const n=i.toLowerCase();return pf.includes(n)?(e.consume(t),P):E(t)}return kh(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),B):E(t)}function T(t){return 93===t?(e.consume(t),R):E(t)}function R(t){return 62===t?(e.consume(t),P):45===t&&2===a?(e.consume(t),R):E(t)}function P(t){return null===t||Sh(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),P)}function O(n){return e.exit("htmlFlow"),t(n)}}},xf={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(zh,t,n)}}},gf={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Sh(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const vf={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},bf={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Bh(t)?Oh(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(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"),Bh(t)?Oh(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Sh(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"),Bh(t)?Oh(e,u,"whitespace")(t):u(t))}function u(n){return null===n||Sh(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(vf,f,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||Sh(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):Bh(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Oh(e,d,"whitespace")(t)):96===t&&t===s?
vendor: 6,271 bytes, line 2
2n(t):(e.consume(t),c)}function d(t){return null===t||Sh(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||Sh(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===s?n(t):(e.consume(t),h)}function f(t){return e.attempt(a,v,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&Bh(t)?Oh(e,x,"linePrefix",i+1)(t):x(t)}function x(t){return null===t||Sh(t)?e.check(vf,f,v)(t):(e.enter("codeFlowValue"),g(t))}function g(t){return null===t||Sh(t)?(e.exit("codeFlowValue"),x(t)):(e.consume(t),g)}function v(n){return e.exit("codeFenced"),t(n)}}};const yf=document.createElement("i");function Df(e){const t="&"+e+";";yf.innerHTML=t;const n=yf.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const wf={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=jh,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=Nh,u):(e.enter("characterReferenceValue"),a=7,s=Fh,u(t))}function u(o){if(59===o&&i){const a=e.exit("characterReferenceValue");return s!==jh||Df(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),u):n(o)}}};const kf={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 Ah(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const jf={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Oh(e,t,"linePrefix")}}};function Cf(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 Ef={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}}e.length!==n.length&&fh(e,0,e.length,n);return 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:f({},e[r][1].start),end:f({},e[e.length-1][1].end)},u={type:"label",start:f({},e[r][1].start),end:f({},e[a][1].end)},c={type:"labelText",start:f({},e[r+o+2][1].end),end:f({},e[a-2][1].start)};return s=[["enter",l,t],["enter",u,t]],s=ph(s,e.slice(r+1,r+o+3)),s=ph(s,[["enter",c,t]]),s=ph(s,Cf(t.parser.constructs.insideSpan.null,e.slice(r+o+4,a-3),t)),s=ph(s,[["exit",c,t],e[a-2],e[a-1],["exit",u,t]]),s=ph(s,e.slice(a+1)),s=ph(s,[["exit",l,t]]),fh(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){if(!a)return n(t);if(a._inactive)return c(t);return s=r.parser.defined.includes(sf(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o};function o(t){return 40===t?e.attempt(Ff,u,s?u:c)(t):91===t?e.attempt(Nf,u,s?l:c)(t):s?u(t):c(t)}function l(t){return e.attempt(Af,u,c)(t)}function u(e){return t(e)}function c(e){return a._balanced=!0,n(e)}}},Ff={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 _h(t)?af(e,a)(t):a(t)}function a(t){return 41===t?u(t):tf(e,s,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function s(t){return _h(t)?af(e,o)(t):u(t)}function i(e){return n(e)}function o(t){return 34===t||39===t||40===t?rf(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return _h(t)?af(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Nf={tokenize:function(e,t,n){const r=this;return function(t){return nf.call(r,e,a,s,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(sf(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function s(e){return n(e)}}},Af={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)}}};const Sf={name:"labelStartImage",resolveAll:Ef.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 _f(e){return null===e||_h(e)||Rh(e)?1:Th(e)?2:void 0}const Bf={name:"attention",resolveAll:function(e,t){let n,r,a,s,i,o,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
vendor: 6,476 bytes, line 2
2n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d=f({},e[n][1].end),h=f({},e[c][1].start);Tf(d,-o),Tf(h,o),s={type:o>1?"strongSequence":"emphasisSequence",start:d,end:f({},e[n][1].end)},i={type:o>1?"strongSequence":"emphasisSequence",start:f({},e[c][1].start),end:h},a={type:o>1?"strongText":"emphasisText",start:f({},e[n][1].end),end:f({},e[c][1].start)},r={type:o>1?"strong":"emphasis",start:f({},s.start),end:f({},i.end)},e[n][1].end=f({},s.start),e[c][1].start=f({},i.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ph(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ph(l,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=ph(l,Cf(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=ph(l,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=ph(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,fh(e,n-1,c-n+3,l),c=n+l.length-u-2;break}c=-1;for(;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=_f(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"),u=_f(o),c=!u||2===u&&a||n.includes(o),d=!a||2===a&&u||n.includes(r);return l._open=Boolean(42===s?c:c&&(a||!d)),l._close=Boolean(42===s?d:d&&(u||!c)),t(o)}}};function Tf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Rf={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 kh(t)?(e.consume(t),s):64===t?n(t):l(t)}function s(e){return 43===e||45===e||46===e||jh(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||jh(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||Eh(r)?n(r):(e.consume(r),o)}function l(t){return 64===t?(e.consume(t),u):Ch(t)?(e.consume(t),l):n(t)}function u(e){return jh(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,u):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||jh(t))&&r++<63){const n=45===t?d:c;return e.consume(t),n}return n(t)}}};const Pf={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),y):63===t?(e.consume(t),v):kh(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),s=0,f):kh(t)?(e.consume(t),g):n(t)}function u(t){return 45===t?(e.consume(t),h):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):Sh(t)?(i=c,B(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),h):c(t)}function h(e){return 62===e?_(e):45===e?d(e):c(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(s++)?(e.consume(t),6===s?p:f):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):Sh(t)?(i=p,B(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),x):p(t)}function x(t){return 62===t?_(t):93===t?(e.consume(t),x):p(t)}function g(t){return null===t||62===t?_(t):Sh(t)?(i=g,B(t)):(e.consume(t),g)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):Sh(t)?(i=v,B(t)):(e.consume(t),v)}function b(e){return 62===e?_(e):v(e)}function y(t){return kh(t)?(e.consume(t),D):n(t)}function D(t){return 45===t||jh(t)?(e.consume(t),D):w(t)}function w(t){return Sh(t)?(i=w,B(t)):Bh(t)?(e.consume(t),w):_(t)}function k(t){return 45===t||jh(t)?(e.consume(t),k):47===t||62===t||_h(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),_):58===t||95===t||kh(t)?(e.consume(t),C):Sh(t)?(i=j,B(t)):Bh(t)?(e.consume(t),j):_(t)}function C(t){return 45===t||46===t||58===t||95===t||jh(t)?(e.consume(t),C):E(t)}function E(t){return 61===t?(e.consume(t),F):Sh(t)?(i=E,B(t)):Bh(t)?(e.consume(t),E):j(t)}function F(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,N):Sh(t)?(i=F,B(t)):Bh(t)?(e.consume(t),F):(e.consume(t),A)}function N(t){return t===a?(e.consume(t),a=void 0,S):null===t?n(t):Sh(t)?(i=N,B(t)):(e.consume(t),N)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||_h(t)?j(t):(e.consume(t),A)}function S(e){return 47===e||62===e||_h(e)?j(e):n(e)}function _(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function B(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return Bh(t)?Oh(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),i(t)}}};const Of={name:"labelStartLink",resolveAll:Ef.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)}}};const Lf={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Sh(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const If={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}t=a-1,r++;for(;++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;
vendor: 4,506 bytes, line 2
2return 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,u(t)):Sh(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||Sh(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),l)}function u(n){return 96===n?(e.consume(n),r++,u):r===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}};const Mf={42:Jh,43:Jh,45:Jh,48:Jh,49:Jh,50:Jh,51:Jh,52:Jh,53:Jh,54:Jh,55:Jh,56:Jh,57:Jh,62:ef},zf={91:of},Uf={[-2]:uf,[-1]:uf,32:uf},qf={35:df,42:Yh,45:[hf,Yh],60:mf,61:hf,95:Yh,96:bf,126:bf},Wf={38:wf,92:kf},Hf={[-5]:jf,[-4]:jf,[-3]:jf,33:Sf,38:wf,42:Bf,60:[Rf,Pf],91:Of,92:[Lf,kf],93:Ef,95:Bf,96:If},Vf={null:[Bf,Hh]},Gf={null:[42,95]},$f={null:[]};function Kf(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 u={attempt:v(function(e,t){b(e,t.from)}),check:v(g),consume:function(e){Sh(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++));c.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),o.push(n),n},exit:function(e){const t=o.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:v(g,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,y()},events:[],now:p,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("")}(f(e),t)},sliceStream:f,write:function(e){if(i=ph(i,e),m(),null!==i[i.length-1])return[];return b(t,0),c.events=Cf(s,c.events,c),c.events}};let d,h=t.tokenize.call(c,u);return t.resolveAll&&s.push(t),c;function f(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 p(){const e=r;return{_bufferIndex:e._bufferIndex,_index:e._index,line:e.line,column:e.column,offset:e.offset}}function m(){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;)x(t.charCodeAt(r._bufferIndex));else x(t)}}function x(e){l=void 0,d=e,h=h(e)}function g(e,t){t.restore()}function v(e,t){return function(n,a,s){let i,d,h,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return i=e,d=0,0===e.length?s:x(e[d])}function x(e){return function(n){f=function(){const e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,s=Array.from(o);return{from:a,restore:i};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,o=s,y()}}(),h=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return v(n);return e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,g,v)(n)}}function g(t){return l=!0,e(h,f),a}function v(e){return l=!0,f.restore(),++d<i.length?x(i[d]):s}}}function b(e,t){e.resolveAll&&!s.includes(e)&&s.push(e),e.resolve&&fh(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const Qf=/[\0\t\n\r]/g;function Yf(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===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const Jf=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Xf(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;
vendor: 10,972 bytes, line 2
2return Yf(n.slice(t?2:1),t?16:10)}return Df(n)||e}const Zf={}.hasOwnProperty;function ep(e,t,n){return t&&"object"===typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(te),autolinkProtocol:C,autolinkEmail:C,atxHeading:s(J),blockQuote:s(G),characterEscape:C,characterReference:C,codeFenced:s($),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:s($,i),codeText:s(K,i),codeTextData:C,data:C,codeFlowValue:C,definition:s(Q),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:s(Y),hardBreakEscape:s(X),hardBreakTrailing:s(X),htmlFlow:s(Z,i),htmlFlowData:C,htmlText:s(Z,i),htmlTextData:C,image:s(ee),label:i,link:s(te),listItem:s(re),listItemValue:h,listOrdered:s(ne,d),listUnordered:s(ne),paragraph:s(ae),reference:M,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:s(J),strong:s(se),thematicBreak:s(oe)},exit:{atxHeading:l(),atxHeadingSequence:D,autolink:l(),autolinkEmail:V,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:q,characterReference:W,codeFenced:l(x),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:p,codeFlowValue:E,codeIndented:l(g),codeText:l(_),codeTextData:E,data:E,definition:l(),definitionDestinationString:y,definitionLabelString:v,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(N),hardBreakTrailing:l(N),htmlFlow:l(A),htmlFlowData:E,htmlText:l(S),htmlTextData:E,image:l(T),label:P,labelText:R,lineEnding:F,link:l(B),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:z,resourceDestinationString:O,resourceTitleString:L,resource:I,setextHeading:l(j),setextHeadingLineSequence:k,setextHeadingText:w,strong:l(),thematicBreak:l()}};np(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const s={stack:[r],tokenStack:[],config:t,enter:o,exit:u,buffer:i,resume:c,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=a(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];Zf.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||ap).call(s,void 0,e[0])}for(r.position={start:tp(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tp(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function a(e,t,n){let r,a,s,i,o=t-1,l=-1,u=!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",u=!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=u,n}function s(e,t){return n;function n(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(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:tp(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Ud({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||ap).call(this,e,r[0])}n.position.end=tp(e.end)}function c(){return ch(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function p(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){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}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=sf(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function y(){const e=this.resume();this.stack[this.stack.length-1].url=e}function D(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function C(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:tp(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tp(e.end)}function F(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=tp(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(C.call(this,e),E.call(this,e))}function N(){this.data.atHardBreak=!0}function A(){const e=this.resume();this.stack[this.stack.length-1].value=e}function S(){const e=this.resume();this.stack[this.stack.length-1].value=e}function _(){const e=this.resume();this.stack[this.stack.length-1].value=e}function B(){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}function T(){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}function R(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Jf,Xf)}(t),n.identifier=sf(t).toLowerCase()}function P(){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}function O(){const e=this.resume();this.stack[this.stack.length-1].url=e}function L(){const e=this.resume();this.stack[this.stack.length-1].title=e}function I(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function z(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=sf(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function U(e){this.data.characterReferenceType=e.type}function q(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Yf(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Df(t)}this.stack[this.stack.length-1].value+=r}function W(e){this.stack.pop().position.end=tp(e.end)}function H(e){E.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function V(e){E.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function G(){return{type:"blockquote",children:[]}}function $(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function Q(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Y(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function X(){return{type:"break"}}function Z(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function se(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function oe(){return{type:"thematicBreak"}}}(n)(function(e){for(;!gh(e););return e}(function(e){const t={constructs:yh([s,...(e||{}).extensions||[]]),content:n(Lh),defined:[],document:n(Ih),flow:n(Wh),lazy:{},string:n(Vh),text:n(Gh)};return t;function n(e){return function(n){return Kf(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,s,i){const o=[];let l,u,c,d,h;for(a=n+("string"===typeof a?a.toString():new TextDecoder(s||void 0).decode(a)),c=0,n="",r&&(65279===a.charCodeAt(0)&&c++,r=void 0);c<a.length;){if(Qf.lastIndex=c,l=Qf.exec(a),d=l&&void 0!==l.index?l.index:a.length,h=a.charCodeAt(d),!l){n=a.slice(c);break}if(10===h&&c===d&&e)o.push(-3),e=void 0;else switch(e&&(o.push(-5),e=void 0),c<d&&(o.push(a.slice(c,d)),t+=d-c),h){case 0:o.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),o.push(-2);t++<u;)o.push(-1);break;case 10:o.push(-4),t=1;break;default:e=!0,t=1}c=d+1}return i&&(e&&o.push(-5),n&&o.push(n),o.push(null)),o}}()(e,t,!0))))}function tp(e){return{line:e.line,column:e.column,offset:e.offset}}function np(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?np(e,r):rp(e,r)}}function rp(e,t){let n;for(n in t)if(Zf.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 ap(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ud({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ud({start:t.start,end:t.end}
2)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ud({start:t.start,end:t.end})+") is still open")}function sp(e){const t=this;t.parser=function(n){return ep(n,f(f(f({},t.data("settings")),e),{},{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}const ip="object"===typeof self?self:globalThis,op=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new ip[e](t)},lp=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const s=qe(t[a],2),i=s[0],o=s[1];switch(i){case 0:case-1:return n(o,a);case 1:{const e=n([],a);for(const t of o)e.push(r(t));return e}case 2:{const e=n({},a);for(const t of o){var l=qe(t,2);const n=l[0],a=l[1];e[r(n)]=r(a)}return e}case 3:return n(new Date(o),a);case 4:{const e=o.source,t=o.flags;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const t of o){var u=qe(t,2);const n=u[0],a=u[1];e.set(r(n),r(a))}return e}case 6:{const e=n(new Set,a);for(const t of o)e.add(r(t));return e}case 7:{const e=o.name,t=o.message;return n("function"===typeof ip[e]?op(e,t):new Error(t),a)}case 8:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const e=new Uint8Array(o).buffer;return n(new DataView(e),o)}}return n(op(i,o),a)};return r})(new Map,e)(0),up="",cp={}.toString,dp=Object.keys,hp=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=cp.call(e).slice(8,-1);switch(n){case"Array":return[1,up];case"Object":return[2,up];case"Date":return[3,up];case"RegExp":return[4,up];case"Map":return[5,up];case"Set":return[6,up];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},fp=e=>{let t=qe(e,2),n=t[0],r=t[1];return 0===n&&("function"===r||"symbol"===r)},pp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.json,r=t.lossy;const a=[];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=qe(hp(r),2),o=i[0],l=i[1];switch(o){case 0:{let t=r;switch(l){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return a([-1],r)}return a([o,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),a([l,[...e]],r)}const e=[],t=a([o,e],r);for(const n of r)e.push(s(n));return t}case 2:{if(l)switch(l){case"BigInt":return a([l,r.toString()],r);case"Boolean":case"Number":case"String":return a([l,r.valueOf()],r)}if(t&&"toJSON"in r)return s(r.toJSON());const n=[],i=a([o,n],r);for(const t of dp(r))!e&&fp(hp(r[t]))||n.push([s(t),s(r[t])]);return i}case 3:return a([o,isNaN(r.getTime())?up:r.toISOString()],r);case 4:{const e=r.source,t=r.flags;return a([o,{source:e,flags:t}],r)}case 5:{const t=[],n=a([o,t],r);for(const a of r){var u=qe(a,2);const n=u[0],r=u[1];(e||!fp(hp(n))&&!fp(hp(r)))&&t.push([s(n),s(r)])}return n}case 6:{const t=[],n=a([o,t],r);for(const a of r)!e&&fp(hp(a))||t.push(s(a));return n}}const c=r.message;return a([o,{name:l,message:c}],r)};return s})(!(n||r),!!n,new Map,a)(e),a},mp="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?lp(pp(e,t)):structuredClone(e):(e,t)=>lp(pp(e,t));function xp(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const s=e.charCodeAt(n);let i="";if(37===s&&jh(e.charCodeAt(n+1))&&jh(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="\ufffd"}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 gp(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function vp(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const bp=function(e){if(null===e||void 0===e)return Dp;if("function"===typeof e)return yp(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bp(e[n]);return yp(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];for(;++e<t.length;)if(t[e].apply(this,r))return!0;return!1}}(e):function(e){const t=e;return yp(n);function n(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 function(e){return yp(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function yp(e){return function(t,n,r){return Boolean(wp(t)&&e.call(this,t,"number"===typeof n?n:void 0,r||void 0))}}function Dp(){return!0}function wp(e){return null!==e&&"object"===typeof e&&"type"in e}const kp=[],jp=!0,Cp=!1;function Ep(e,t,n,r){let a;"function"===typeof t&&"function"!==typeof n?(r=n,n=t):a=t;const s=bp(a),i=r?-1:1;!function e(a,o,l){const u=a&&"object"===typeof a?a:{};if("string"===typeof u.type){const e="string"===typeof u.tagName?u.tagName:"string"===typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,d,h=kp;if((!t||s(a,o,l[l.length-1]||void 0))&&(h=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[jp,e];return null===e||void 0===e?kp:[e]}(n(a,l)),h[0]===Cp))return h;if("children"in a&&a.children){const t=a;if(t.children&&"skip"!==h[0])for(c=(r?t.children.length:-1)+i,d=l.concat(t);c>-1&&c<t.children.length;){const n=t.children[c];
vendor: 9,707 bytes, line 2
2if(u=e(n,c,d)(),u[0]===Cp)return u;c="number"===typeof u[1]?u[1]:c+i}}return h}}(e,void 0,[])()}function Fp(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),Ep(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 Np(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 Ap(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function Sp(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const s=[];for(;r;)s.push(_p(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return s.push(_p(t.slice(a),a>0,!1)),s.join("")}function _p(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 Bp={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=xp(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 u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},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 Np(e,t);const a={src:xp(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:xp(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 Np(e,t);const a={href:xp(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:xp(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=Ap(n[r])}return t}(n):Ap(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 u={type:"element",tagName:"li",properties:s,children:i};return e.patch(t,u),e.applyData(t,u)},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=Md(t.children[1]),i=Id(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 u={type:"element",tagName:a,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:Sp(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:Tp,yaml:Tp,definition:Tp,footnoteDefinition:Tp};function Tp(){}const Rp=["children"],Pp={}.hasOwnProperty,Op={};function Lp(e,t){e.position&&(t.position=function(e){const t=Md(e),n=Id(e);if(t&&n)return{start:t,end:n}}(e))}function Ip(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"===typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&a&&Object.assign(n.properties,mp(a)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function Mp(e,t){const n=t.data||{},r=!("value"in t)||Pp.call(n,"hProperties")||Pp.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 zp(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 Up(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function qp(e,t){const n=function(e,t){const n=t||Op,r=new Map,a=new Map,s=new Map,i=f(f({},Bp),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=Up(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=Up(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:Ip,definitionById:r,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=o.handlers[n];if(Pp.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){e.children;const t=Oe(e,Rp),n=mp(t);return n.children=o.all(e),n}return mp(e)}return(o.options.unknownHandler||Mp)(o,e,t)},options:n,patch:Lp,wrap:zp};return Fp(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.o
2ptions.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||gp,r=e.options.footnoteBackLabel||vp,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(),u=xp(i.toLowerCase());let c=0;const d=[],h=e.footnoteCounts.get(i);for(;void 0!==h&&++c<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"===typeof n?n:n(l,c);"string"===typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=s[s.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else s.push(...d);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(s,!0)};e.patch(a,p),o.push(p)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:f(f({},mp(i)),{},{id:"footnote-label"}),children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)}
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 Wp(e,t){return e&&"run"in e?async function(n,r){const a=qp(n,f({file:r},t));await e.run(a,r)}:function(n,r){return qp(n,f({file:r},e||t))}}function Hp(e){if(e)throw e}var Vp=n.cjs(function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},o=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,a=n.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!s)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},l=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(s)return s(e,t).value}return e[t]};e.exports=function e(){var t,n,r,a,s,c,d=arguments[0],h=1,f=arguments.length,p=!1;for("boolean"===typeof d&&(p=d,d=arguments[1]||{},h=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});h<f;++h)if(null!=(t=arguments[h]))for(n in t)r=u(d,n),d!==(a=u(t,n))&&(p&&a&&(o(a)||(s=i(a)))?(s?(s=!1,c=r&&i(r)?r:[]):c=r&&o(r)?r:{},l(d,{name:n,newValue:e(p,c,a)})):"undefined"!==typeof a&&l(d,{name:n,newValue:a}));return d}});function Gp(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)}function $p(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let a=-1;const s=n.pop();if("function"!==typeof s)throw new TypeError("Expected function as last argument, not "+s);!function t(r){const i=e[++a];let o=-1;if(r)s(r);else{for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];for(;++o<n.length;)null!==u[o]&&void 0!==u[o]||(u[o]=n[o]);n=u,i?function(e,t){let n;return a;function a(){for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];const l=e.length>a.length;let u;l&&a.push(s);try{u=e.apply(this,a)}catch(r){if(l&&n)throw r;return s(r)}l||(u&&u.then&&"function"===typeof u.then?u.then(i,s):u instanceof Error?s(u):i(u))}function s(e){if(!n){n=!0;for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];t(e,...a)}}function i(e){s(null,e)}}(i,t)(...u):s(null,...u)}}(null,...n)},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}const Kp={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');Qp(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));r===a?a=i:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(Qp(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)},extname:function(e){Qp(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}}if(s<0||r<0||0===i||1===i&&s===r-1&&s===a+1)return"";return e.slice(s,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];for(;++t<r.length;)Qp(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){Qp(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);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function Qp(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Yp={cwd:function(){return"/"}};function Jp(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Xp(e){if("string"===typeof e)e=new URL(e);else if(!Jp(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)}const Zp=["history","path","basename","stem","extname","dirname"];class em{constructor(e){let t;t=e?Jp(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?"":Yp.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Zp.length;){const e=Zp[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Zp.includes(n)||(this[n]=t[n])}get basename(){return"string"===typeof this.path?Kp.basename(this.path):void 0}
2set basename(e){nm(e,"basename"),tm(e,"basename"),this.path=Kp.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?Kp.dirname(this.path):void 0}set dirname(e){rm(this.basename,"dirname"),this.path=Kp.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?Kp.extname(this.path):void 0}set extname(e){if(tm(e,"extname"),rm(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=Kp.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Jp(e)&&(e=Xp(e)),nm(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?Kp.basename(this.path,this.extname):void 0}set stem(e){nm(e,"stem"),tm(e,"stem"),this.path=Kp.join(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 Vd(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){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function tm(e,t){if(e&&e.includes(Kp.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Kp.sep+"`")}function nm(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function rm(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const am=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},sm={}.hasOwnProperty;class im extends am{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=$p()}copy(){const e=new im;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Vp(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(cm("data",this.frozen),this.namespace[e]=t,this):sm.call(this.namespace,e)&&this.namespace[e]||void 0:e?(cm("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=Ue(this.attachers[this.freezeIndex]),n=t[0],r=Le(t).slice(1);if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const a=n.call(e,...r);"function"===typeof a&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=fm(e),n=this.parser||this.Parser;return lm("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),lm("process",this.parser||this.Parser),um("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const s=fm(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);var i;"string"===typeof(i=s)||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=s:r.result=s,o(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),lm("processSync",this.parser||this.Parser),um("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Hp(e),t=r}),hm("processSync","process",n),t}run(e,t,n){dm(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=fm(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){Hp(e),n=t,r=!0}),hm("runSync","run",r),n}stringify(e,t){this.freeze();const n=fm(t),r=this.compiler||this.Compiler;return um("stringify",r),dm(e),r(e,n)}use(e){const t=this.attachers,n=this.namespace;if(cm("use",this.frozen),null===e||void 0===e);else if("function"===typeof e){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];u(e,a)}else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):o(e)}return this;function i(e){if("function"===typeof e)u(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const t=Ue(e);u(t[0],Le(t).slice(1))}else o(e)}}function o(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");l(e.plugins),e.settings&&(n.settings=Vp(!0,n.settings,e.settings))}function l(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function u(e,n){let r=-1,a=-1;for(;++r<t.length;)if(t[r][0]===e){a=r;break}if(-1===a)t.push([e,...n]);else if(n.length>0){let r=Ue(n),s=r[0],i=Le(r).slice(1);const o=t[a][1];Gp(o)&&Gp(s)&&(s=Vp(!0,o,s)),t[a]=[e,s,...i]}}}}const om=(new im).freeze();function lm(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function um(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function cm(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 dm(e){if(!Gp(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function hm(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fm(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new em(e)}const pm=[],mm={allowDangerousHtml:!0},xm=/^(https?|ircs?|mailto|xmpp)$/i,gm=[{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 vm(e){const t=bm(e),n=ym(e);return Dm(t.runSync(t.parse(n),n),e)}function bm(e){const t=e.rehypePlugins||pm,n=e.remarkPlugins||pm,r=e.remarkRehypeOptions?f(f({},e.remarkRehypeOptions),mm):mm;return om().use(sp).use(n).use(Wp,r).use(t)}function ym(e){const t=e.children||"",n=new em;return"string"===typeof t&&(n.value=t),n}function Dm(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,s=t.disallowedElements,i=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||wm;for(const u of gm)Object.hasOwn(t,u.from)&&Jc((u.from,u.to&&u.to,u.id));return Fp(e,function(e,t,a){if("raw"===e.type&&a&&"number"===typeof t)return i?a.children.splice(t,1):a.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in lh)if(Object.hasOwn(lh,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=lh[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!s&&s.includes(e.tagName);if(!i&&r&&"number"===typeof t&&(i=!r(e,t,a)),i&&a&&"number"===typeof t)return o&&e.children?a.children.splice(t,1,...e.children):a.children.splice(t,1),t}}),Xd(e,{Fragment:Te.Fragment,components:a,ignoreInvalidStyle:!0,jsx:Te.jsx,jsxs:Te.jsxs,passKeys:!0,passNode:!0})}function wm(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||xm.test(e.slice(0,t))?e:""}function km(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function jm(e,t,n){const r=bp((n||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Cm(e[0]),Em(e[1])])}return t}(t);let s=-1;for(;++s<a.length;)Ep(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[s][0],i=a[s][1];let o=0;const l=n.children.indexOf(e);
2let u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let s=i(...d,a);if("string"===typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1===s?r.lastIndex=n+1:(o!==n&&c.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(s)?c.push(...s):s&&c.push(s),o=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}u?(o<e.value.length&&c.push({type:"text",value:e.value.slice(o)}),n.children.splice(l,1,...c)):c=[e];return l+c.length}(e,t)}}function Cm(e){return"string"===typeof e?new RegExp(function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Em(e){return"function"===typeof e?e:function(){return e}}const Fm="phrasing",Nm=["autolink","link","image","label"];function Am(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Sm(e){this.config.enter.autolinkProtocol.call(this,e)}function _m(e){this.config.exit.autolinkProtocol.call(this,e)}function Bm(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Tm(e){this.config.exit.autolinkEmail.call(this,e)}function Rm(e){this.exit(e)}function Pm(e){jm(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Om],[/(?<=^|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]|(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F])|(?:[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uD
2F3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]))([\+\x2D\.0-9A-Z_a-z]+)@([\x2D0-9A-Z_a-z]+(?:\.[\x2D0-9A-Z_a-z]+)+)/g,Lm]],{ignore:["link","linkReference"]})}function Om(e,t,n,r,a){let s="";if(!Im(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=km(e,"(");let s=km(e,")");for(;-1!==r&&a>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}(n+r);if(!i[0])return!1;const o={type:"link",title:null,url:s+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[o,{type:"text",value:i[1]}]:o}function Lm(e,t,n,r){return!(!Im(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Im(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Rh(n)||Th(n))&&(!t||47!==n)}function Mm(){this.buffer()}function zm(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Um(){this.buffer()}function qm(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Wm(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=sf(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Hm(e){this.exit(e)}function Vm(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=sf(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Gm(e){this.exit(e)}function $m(e,t,n,r){const a=n.createTracker(r);let s=a.move("[^");const i=n.enter("footnoteReference"),o=n.enter("reference");return s+=a.move(n.safe(n.associationId(e),{after:"]",before:s})),o(),i(),s+=a.move("]"),s}function Km(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const s=r.createTracker(a);let i=s.move("[^");const o=r.enter("footnoteDefinition"),l=r.enter("label");i+=s.move(r.safe(r.associationId(e),{before:i,after:"]"})),l(),i+=s.move("]:"),e.children&&e.children.length>0&&(s.shift(4),i+=s.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,s.current()),t?Ym:Qm)));return o(),i},footnoteReference:$m},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Qm(e,t,n){return 0===t?e:Ym(e,t,n)}function Ym(e,t,n){return(n?"":"    ")+e}$m.peek=function(){return"["};const Jm=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Xm(e){this.enter({type:"delete",children:[]},e)}function Zm(e){this.exit(e)}function ex(e,t,n,r){const a=n.createTracker(r),s=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,f(f({},a.current()),{},{before:i,after:"~"})),i+=a.move("~~"),s(),i}function tx(e){return e.length}function nx(e){return null===e||void 0===e?"":String(e)}function rx(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}
vendor: 7,013 bytes, line 2
2function ax(e,t,n){return">"+(n?"":" ")+e}function sx(e,t){return ix(e,t.inConstruct,!0)&&!ix(e,t.notInConstruct,!1)}function ix(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ox(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&sx(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function lx(e,t,n){return(n?"":"    ")+e}function ux(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function cx(e){return"&#x"+e.toString(16).toUpperCase()+";"}function dx(e,t,n){const r=_f(e),a=_f(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function hx(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),s=n.enter("emphasis"),i=n.createTracker(r),o=i.move(a);let l=i.move(n.containerPhrasing(e,f({after:a,before:o},i.current())));const u=l.charCodeAt(0),c=dx(r.before.charCodeAt(r.before.length-1),u,a);c.inside&&(l=cx(u)+l.slice(1));const d=l.charCodeAt(l.length-1),h=dx(r.after.charCodeAt(0),d,a);h.inside&&(l=l.slice(0,-1)+cx(d));const p=i.move(a);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+p}function fx(e){return e.value||""}function px(e,t,n,r){const a=ux(n),s='"'===a?"Quote":"Apostrophe",i=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,f({before:u,after:"]"},l.current()))),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,f({before:u,after:">"},l.current()))),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,f({before:u,after:e.title?" ":")"},l.current())))),o(),e.title&&(o=n.enter("title".concat(s)),u+=l.move(" "+a),u+=l.move(n.safe(e.title,f({before:u,after:a},l.current()))),u+=l.move(a),o()),u+=l.move(")"),i(),u}function mx(e,t,n,r){const a=e.referenceType,s=n.enter("imageReference");let i=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,f({before:l,after:"]"},o.current()));l+=o.move(u+"]["),i();const c=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),f({before:l,after:"]"},o.current()));return i(),n.stack=c,s(),"full"!==a&&u&&u===d?"shortcut"===a?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(d+"]"),l}function xx(e,t,n){let r=e.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const e=n.unsafe[s],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function gx(e,t){const n=ch(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function vx(e,t,n,r){const a=ux(n),s='"'===a?"Quote":"Apostrophe",i=n.createTracker(r);let o,l;if(gx(e,n)){const t=n.stack;n.stack=[],o=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,f({before:r,after:">"},i.current()))),r+=i.move(">"),o(),n.stack=t,r}o=n.enter("link"),l=n.enter("label");let u=i.move("[");return u+=i.move(n.containerPhrasing(e,f({before:u,after:"]("},i.current()))),u+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=i.move("<"),u+=i.move(n.safe(e.url,f({before:u,after:">"},i.current()))),u+=i.move(">")):(l=n.enter("destinationRaw"),u+=i.move(n.safe(e.url,f({before:u,after:e.title?" ":")"},i.current())))),l(),e.title&&(l=n.enter("title".concat(s)),u+=i.move(" "+a),u+=i.move(n.safe(e.title,f({before:u,after:a},i.current()))),u+=i.move(a),l()),u+=i.move(")"),o(),u}function bx(e,t,n,r){const a=e.referenceType,s=n.enter("linkReference");let i=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,f({before:l,after:"]"},o.current()));l+=o.move(u+"]["),i();const c=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),f({before:l,after:"]"},o.current()));return i(),n.stack=c,s(),"full"!==a&&u&&u===d?"shortcut"===a?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(d+"]"),l}function yx(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Dx(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}ex.peek=function(){return"~"},hx.peek=function(e,t,n){return n.options.emphasis||"*"},fx.peek=function(){return"<"},px.peek=function(){return"!"},mx.peek=function(){return"!"},xx.peek=function(){return"`"},vx.peek=function(e,t,n){return gx(e,n)?"<":"["},bx.peek=function(){return"["};const wx=bp(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kx(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),s=n.enter("strong"),i=n.createTracker(r),o=i.move(a+a);let l=i.move(n.containerPhrasing(e,f({after:a,before:o},i.current())));const u=l.charCodeAt(0),c=dx(r.before.charCodeAt(r.before.length-1),u,a);c.inside&&(l=cx(u)+l.slice(1));const d=l.charCodeAt(l.length-1),h=dx(r.after.charCodeAt(0),d,a);h.inside&&(l=l.slice(0,-1)+cx(d));const p=i.move(a+a);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+p}kx.peek=function(e,t,n){return n.options.strong||"*"};const jx={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const i=n.indentLines(n.containerFlow(e,s.current()),ax);return a(),i},break:ox,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),s=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}
vendor: 10,991 bytes, line 2
2(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(s,lx);return e(),t}const o=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,s=0,i=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++s>i&&(i=s):s=1,a=r+t.length,r=n.indexOf(t,a);return i}(s,a)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const t=n.enter("codeFencedLang".concat(i));c+=o.move(n.safe(e.lang,f({before:c,after:" ",encode:["`"]},o.current()))),t()}if(e.lang&&e.meta){const t=n.enter("codeFencedMeta".concat(i));c+=o.move(" "),c+=o.move(n.safe(e.meta,f({before:c,after:"\n",encode:["`"]},o.current()))),t()}return c+=o.move("\n"),s&&(c+=o.move(s+"\n")),c+=o.move(l),u(),c},definition:function(e,t,n,r){const a=ux(n),s='"'===a?"Quote":"Apostrophe",i=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),f({before:u,after:"]"},l.current()))),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,f({before:u,after:">"},l.current()))),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,f({before:u,after:e.title?" ":"\n"},l.current())))),o(),e.title&&(o=n.enter("title".concat(s)),u+=l.move(" "+a),u+=l.move(n.safe(e.title,f({before:u,after:a},l.current()))),u+=l.move(a),o()),i(),u},emphasis:hx,hardBreak:ox,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(function(e,t){let n=!1;return Fp(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,!1}),Boolean((!e.depth||e.depth<3)&&ch(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,f(f({},s.current()),{},{before:"\n",after:"\n"}));return r(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),o=n.enter("headingAtx"),l=n.enter("phrasing");s.move(i+" ");let u=n.containerPhrasing(e,f({before:"# ",after:"\n"},s.current()));return/^[\t ]/.test(u)&&(u=cx(u.charCodeAt(0))+u.slice(1)),u=u?i+" "+u:i,n.options.closeAtx&&(u+=" "+i),l(),o(),u},html:fx,image:px,imageReference:mx,inlineCode:xx,link:vx,linkReference:bx,list:function(e,t,n,r){const a=n.enter("list"),s=n.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):yx(n);const o=e.ordered?"."===i?")":".":function(e){const t=yx(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Dx(n)===i&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(i=o),n.bulletCurrent=i;const u=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=s,a(),u},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let s=n.bulletCurrent||yx(n);t&&"list"===t.type&&t.ordered&&(s=("number"===typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+s);let i=s.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const o=n.createTracker(r);o.move(s+" ".repeat(i-s.length)),o.shift(i);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?s:s+" ".repeat(i-s.length))+e});return l(),u},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),s=n.enter("phrasing"),i=n.containerPhrasing(e,r);return s(),a(),i},root:function(e,t,n,r){return(e.children.some(function(e){return wx(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:kx,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Dx(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Cx(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Ex(e){this.exit(e),this.data.inTable=void 0}function Fx(e){this.enter({type:"tableRow",children:[]},e)}function Nx(e){this.exit(e)}function Ax(e){this.enter({type:"tableCell",children:[]},e)}function Sx(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,_x));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function _x(e,t){return"|"===t?t:e}function Bx(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=jx.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return o(function(e,t,n){const r=e.children;let a=-1;const s=[],i=t.enter("table");for(;++a<r.length;)s[a]=l(r[a],t,n);return i(),s}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const a=l(e,n,r),s=o([a]);return s.slice(0,s.indexOf("\n"))}}};function i(e,t,n,r){const a=n.enter("tableCell"),i=n.enter("phrasing"),o=n.containerPhrasing(e,f(f({},r),{},{before:s,after:s}));return i(),a(),o}function o(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||tx,s=[],i=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const t=[],r=[];let s=-1;for(e[c].length>u&&(u=e[c].length);++s<e[c].length;){const i=nx(e[c][s]);if(!1!==n.alignDelimiters){const e=a(i);r[s]=e,(void 0===l[s]||e>l[s])&&(l[s]=e)}t.push(i)}i[c]=t,o[c]=r}let d=-1;if("object"===typeof r&&"length"in r)for(;++d<u;)s[d]=rx(r[d]);else{const e=rx(r);for(;++d<u;)s[d]=e}d=-1;const h=[],f=[];for(;++d<u;){const e=s[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[d]&&(l[d]=a),f[d]=a),h[d]=i}i.splice(1,0,h),o.splice(1,0,f),c=-1;const p=[];for(;++c<i.length;){const e=i[c],t=o[c];d=-1;const r=[];for(;++d<u;){const a=e[d]||"";let i="",o="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=s[d];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),o=i):o=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===u-1||r.push("|")}p.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const s=[],o=t.enter("tableRow");for(;++a<r.length;)s[a]=i(r[a],0,t,n);return o(),s}}function Tx(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Rx(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,s=-1;for(;++s<r.length;){const e=r[s];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"===typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Px(e,t,n,r){const a=e.children[0],s="boolean"===typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(i);let l=jx.listItem(e,t,n,f(f({},r),o.current()));return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),l}const Ox={tokenize:function(e,t,n){let r=0;return function t(s){if((87===s||119===s)&&r<3)return r++,e.consume(s),t;if(46===s&&3===r)return e.consume(s),a;return n(s)};function a(e){return null===e?n(e):t(e)}},partial:!0},Lx={tokenize:function(e,t,n){let r,a,s;return i;function i(t){return 46===t||95===t?e.check(Mx,l,o)(t):null===t||_h(t)||Rh(t)||45!==t&&Th(t)?l(t):(s=!0,e.consume(t),i)}function o(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function l(e){return a||r||!s?n(e):t(e)}},partial:!0},Ix={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?s(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(Mx,t,s)(i):null===i||_h(i)||Rh(i)?t(i):(e.consume(i),a)}function s(t){return 41===t&&r++,e.consume(t),a}},partial:!0},Mx={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),s):93===i?(e.consume(i),a):60===i||null===i||_h(i)||Rh(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||_h(e)||Rh(e)?t(e):r(e)}function s(e){return kh(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):kh(t)?(e.consume(t),i):n(t)}},partial:!0},zx={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return jh(e)?n(e):t(e)}},partial:!0},Ux={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Gx.call(r,r.previous)||Yx(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ox,e.attempt(Lx,e.attempt(Ix,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Gx},qx={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",s=!1;
vendor: 7,031 bytes, line 2
2return function(t){if((72===t||104===t)&&$x.call(r,r.previous)&&!Yx(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i;return n(t)};function i(t){if(kh(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),s?l:(s=!0,o)):n(t)}function l(t){return null===t||Eh(t)||_h(t)||Rh(t)||Th(t)?n(t):e.attempt(Lx,e.attempt(Ix,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:$x},Wx={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,s;return function(t){if(!Qx(t)||!Kx.call(r,r.previous)||Yx(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)};function i(t){return Qx(t)?(e.consume(t),i):64===t?(e.consume(t),o):n(t)}function o(t){return 46===t?e.check(zx,u,l)(t):45===t||95===t||jh(t)?(s=!0,e.consume(t),o):u(t)}function l(t){return e.consume(t),a=!0,o}function u(i){return s&&a&&kh(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:Kx},Hx={};let Vx=48;for(;Vx<123;)Hx[Vx]=Wx,Vx++,58===Vx?Vx=65:91===Vx&&(Vx=97);function Gx(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||_h(e)}function $x(e){return!kh(e)}function Kx(e){return!(47===e||Qx(e))}function Qx(e){return 43===e||45===e||46===e||95===e||jh(e)}function Yx(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Hx[43]=Wx,Hx[45]=Wx,Hx[46]=Wx,Hx[95]=Wx,Hx[72]=[Wx,qx],Hx[104]=[Wx,qx],Hx[87]=[Wx,Ux],Hx[119]=[Wx,Ux];const Jx={tokenize:function(e,t,n){const r=this;return Oh(e,function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Xx(e,t,n){const r=this;let a=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return n(a);const o=sf(r.sliceSerialize({start:i.end,end:r.now()}));if(94!==o.codePointAt(0)||!s.includes(o.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function Zx(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[r+1],e[r+2],["enter",a,t],e[r+3],e[r+4],["enter",s,t],["exit",s,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(r,e.length-r+1,...l),e}function eg(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(o){if(i>999||93===o&&!s||null===o||91===o||_h(o))return n(o);if(93===o){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");return a.includes(sf(r.sliceSerialize(s)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return _h(o)||(s=!0),i++,e.consume(o),92===o?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function tg(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,i,o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(o>999||93===t&&!i||null===t||91===t||_h(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return s=sf(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return _h(t)||(i=!0),o++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(s)||a.push(s),Oh(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function ng(e,t,n){return e.check(zh,t,e.attempt(Jx,t,n))}function rg(e){e.exit("gfmFootnoteDefinition")}function ag(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,s=this.events;let i=0;return function(t){if(126===a&&"characterEscape"!==s[s.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),o(t)};function o(s){const l=_f(a);if(126===s)return i>1?r(s):(e.consume(s),i++,o);if(i<2&&!t)return r(s);const u=e.exit("strikethroughSequenceTemporary"),c=_f(s);return u._open=!c||2===c&&Boolean(l),u._close=!l||2===l&&Boolean(c),n(s)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},s={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",s,t]],o=t.parser.constructs.insideSpan.null;o&&fh(i,i.length,0,Cf(o,e.slice(r+1,n),t)),fh(i,i.length,0,[["exit",s,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]
vendor: 7,425 bytes, line 2
2),fh(e,r-1,n-r+3,i),n=r+i.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null!==t&&void 0!==t||(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class sg{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function ig(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function og(e,t,n){const r=this;let a,s=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,s="tableHead"===a||"tableRow"===a?y:o;if(s===y&&r.parser.lazy[r.now().line])return n(e);return s(e)};function o(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,i+=1,l(e)}(t)}function l(t){return null===t?n(t):Sh(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Bh(t)?Oh(e,l,"whitespace")(t):(i+=1,a&&(a=!1,s+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||_h(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,Bh(t)?Oh(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t))}function h(t){return 45===t||58===t?p(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):b(t)}function f(t){return Bh(t)?Oh(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||Sh(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),x(t)):b(t)}function x(t){return 45===t?(e.consume(t),x):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(t))}function g(t){return Bh(t)?Oh(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?h(n):(null===n||Sh(n))&&a&&s===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function y(t){return e.enter("tableRow"),D(t)}function D(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),D):null===n||Sh(n)?(e.exit("tableRow"),t(n)):Bh(n)?Oh(e,D,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||_h(t)?(e.exit("data"),D(t)):(e.consume(t),92===t?k:w)}function k(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function lg(e,t){let n,r,a,s=-1,i=!0,o=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0;const h=new sg;for(;++s<e.length;){const f=e[s],p=f[1];"enter"===f[0]?"tableHead"===p.type?(c=!1,0!==d&&(cg(h,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(s,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(i=!0,a=void 0,l=[0,0,0,0],u=[0,s+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(s,0,[["enter",r,t]])),o="tableDelimiterRow"===p.type?2:r?3:1):!o||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(i?i=!1:(0!==l[1]&&(u[0]=u[1],a=ug(h,t,l,o,void 0,a)),l=u,u=[l[1],s,0,0])):(i=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],a=ug(h,t,l,o,void 0,a),l=[0,0,0,0]),u[2]=s)):"tableHead"===p.type?(c=!0,d=s):"tableRow"===p.type||"tableDelimiterRow"===p.type?(d=s,0!==l[1]?(u[0]=u[1],a=ug(h,t,l,o,s,a)):0!==u[1]&&(a=ug(h,t,u,o,s,a)),o=0):!o||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(u[3]=s)}for(0!==d&&cg(h,t,d,n,r),h.consume(t.events),s=-1;++s<t.events.length;){const e=t.events[s];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=ig(t.events,s))}return e}function ug(e,t,n,r,a,s){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(s.end=Object.assign({},dg(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const o=dg(t.events,n[1]);if(s={type:i,start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",s,t]]),0!==n[2]){const a=dg(t.events,n[2]),s=dg(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},s)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(s.end=Object.assign({},dg(t.events,a)),e.add(a,0,[["exit",s,t]]),s=void 0),s}function cg(e,t,n,r,a){const s=[],i=dg(t.events,n);a&&(a.end=Object.assign({},i),s.push(["exit",a,t])),r.end=Object.assign({},i),s.push(["exit",r,t]),e.add(n+1,0,s)}function dg(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const hg={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return _h(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return Sh(r)?t(r):Bh(r)?e.check({tokenize:fg},t,n)(r):n(r)}}};function fg(e,t,n){return Oh(e,function(e){return null===e?n(e):t(e)},"whitespace")}const pg={};function mg(e){const t=e||pg,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return yh([{text:Hx},{document:{91:{name:"gfmFootnoteDefinition",tokenize:tg,continuation:{tokenize:ng},exit:rg}},text:{91:{name:"gfmFootnoteCall",tokenize:eg},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Xx,resolveTo:Zx}}},ag(e),{flow:{null:{name:"table",tokenize:og,resolveAll:lg}}},{text:{91:hg}}])}(t)),a.push([{transforms:[Pm],enter:{literalAutolink:Am,literalAutolinkEmail:Sm,literalAutolinkHttp:Sm,literalAutolinkWww:Sm},exit:{literalAutolink:Rm,literalAutolinkEmail:Tm,literalAutolinkHttp:_m,literalAutolinkWww:Bm}}
2,{enter:{gfmFootnoteCallString:Mm,gfmFootnoteCall:zm,gfmFootnoteDefinitionLabelString:Um,gfmFootnoteDefinition:qm},exit:{gfmFootnoteCallString:Wm,gfmFootnoteCall:Hm,gfmFootnoteDefinitionLabelString:Vm,gfmFootnoteDefinition:Gm}},{canContainEols:["delete"],enter:{strikethrough:Xm},exit:{strikethrough:Zm}},{enter:{table:Cx,tableData:Ax,tableHeader:Ax,tableRow:Fx},exit:{codeText:Sx,table:Ex,tableData:Nx,tableHeader:Nx,tableRow:Nx}},{exit:{taskListCheckValueChecked:Tx,taskListCheckValueUnchecked:Tx,paragraph:Rx}}]),s.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fm,notInConstruct:Nm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fm,notInConstruct:Nm},{character:":",before:"[ps]",after:"\\/",inConstruct:Fm,notInConstruct:Nm}]},Km(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Jm}],handlers:{delete:ex}},Bx(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Px}}]}}(t))}const xg=Kr("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),gg="".concat(void 0,"/api");function vg(e){try{return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(t){return""}}function bg(){const e=rn().slug,t=qe((0,i.useState)(null),2),n=t[0],r=t[1],a=qe((0,i.useState)("loading"),2),s=a[0],o=a[1];return(0,i.useEffect)(()=>{o("loading"),bo.get("".concat(gg,"/blog/").concat(e)).then(e=>{r(e.data),o("ready")}).catch(()=>o("not-found"))},[e]),(0,Te.jsxs)("div",{"data-testid":"blog-post-page",className:"min-h-screen bg-white text-[#111827]",children:[(0,Te.jsx)(Zr,{}),(0,Te.jsx)("main",{className:"pt-28 md:pt-36 pb-24",children:(0,Te.jsxs)("div",{className:"max-w-[820px] mx-auto px-6 md:px-10",children:[(0,Te.jsxs)(cr,{to:"/blog","data-testid":"blog-back",className:"inline-flex items-center gap-1.5 text-[13px] text-[#4b5563] hover:text-[#6d46c6] transition-colors",children:[(0,Te.jsx)(xg,{className:"w-4 h-4",strokeWidth:1.75}),"All posts"]}),"loading"===s&&(0,Te.jsx)("div",{className:"mt-20 text-[14px] text-[#9ca3af]",children:"Loading\u2026"}),"not-found"===s&&(0,Te.jsxs)("div",{className:"mt-20 text-center",children:[(0,Te.jsx)("p",{className:"font-display text-[22px] text-[#111827]",children:"Post not found."}),(0,Te.jsx)(cr,{to:"/blog",className:"btn-primary mt-6 inline-flex",children:"Back to blog"})]}),"ready"===s&&n&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("header",{className:"mt-10",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 text-[11px] font-mono uppercase tracking-widest text-[#4b5563]",children:[n.tag&&(0,Te.jsx)("span",{className:"px-2 py-0.5 rounded-full bg-[#f5f3ff] text-[#6d46c6]",children:n.tag}),(0,Te.jsx)("span",{children:vg(n.created_at)}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:n.author})]}),(0,Te.jsx)("h1",{"data-testid":"post-title",className:"mt-4 font-display text-[36px] sm:text-[48px] lg:text-[56px] leading-[1.05] font-semibold tracking-tight text-[#111827]",children:n.title}),(0,Te.jsx)("p",{className:"mt-5 text-[17px] leading-relaxed text-[#4b5563]",children:n.excerpt})]}),n.cover_image&&(0,Te.jsx)("div",{className:"mt-10 aspect-[16/9] rounded-2xl bg-cover bg-center border border-[#eeeaf6]",style:{backgroundImage:'url("'.concat(n.cover_image,'")')}}),(0,Te.jsx)("article",{"data-testid":"post-body",className:"mt-10 prose prose-neutral max-w-none prose-headings:font-display prose-headings:tracking-tight prose-headings:text-[#111827] prose-p:text-[#374151] prose-p:leading-[1.7] prose-a:text-[#6d46c6] prose-a:no-underline hover:prose-a:underline prose-strong:text-[#111827] prose-code:text-[#6d46c6] prose-code:bg-[#f5f3ff] prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none prose-blockquote:border-l-[#5eead4] prose-blockquote:bg-[#faf9ff] prose-blockquote:py-1 prose-blockquote:px-4 prose-blockquote:rounded-r-lg prose-blockquote:not-italic prose-li:marker:text-[#6d46c6]",children:(0,Te.jsx)(vm,{remarkPlugins:[mg],children:n.content})}),(0,Te.jsx)("div",{"data-testid":"lead-magnet-widget",className:"mt-16 rounded-2xl border border-[#d9d1ee] bg-[#faf9ff] p-6 sm:p-8",children:(0,Te.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-6",children:[(0,Te.jsxs)("div",{className:"flex-1",children:[(0,Te.jsx)("span",{className:"inline-flex items-center gap-1 text-[11px] font-mono uppercase tracking-widest text-[#6d46c6] bg-[#f5f3ff] px-2.5 py-0.5 rounded-full mb-3",children:"\ud83d\udca1 exclusive guide"}),(0,Te.jsxs)("h3",{className:"font-display text-[20px] font-semibold text-[#111827]",children:['Download "',n.title,'" as a PDF Playbook']}),(0,Te.jsx)("p",{className:"mt-1.5 text-[13.5px] leading-relaxed text-[#4b5563]",children:"We'll compile this article, including all checklist items and formatting, into a clean PDF copy for you to read offline or share directly with your team."})]}),(0,Te.jsx)("div",{className:"w-full md:w-auto shrink-0 min-w-[280px]",children:(0,Te.jsx)(yg,{slug:e})})]})}),(0,Te.jsxs)("div",{className:"mt-10 pt-10 border-t border-[#eeeaf6] flex flex-col md:flex-row items-start md:items-center justify-between gap-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"font-display text-[20px] font-semibold text-[#111827]",children:"Turn your customer trust into your #1 acquisition channel."}),(0,Te.jsx)("p",{className:"mt-1 text-[14px] text-[#4b5563]",children:"See what Uplaud can do for your business in 20 minutes."})]}),(0,Te.jsxs)(cr,{to:"/#demo","data-testid":"post-cta",className:"btn-primary",children:["Book a demo",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]})]})]})}),(0,Te.jsx)(Do,{})]})}function yg(e){let t=e.slug;const n=qe((0,i.useState)(""),2),r=n[0],a=n[1],s=qe((0,i.useState)(!1),2),o=s[0],l=s[1],u=qe((0,i.useState)(!1),2),c=u[0],d=u[1];return o?(0,Te.jsx)("div",{"data-testid":"lead-magnet-success",className:"text-center md:text-left bg-white border border-[#c8f0e4] rounded-xl p-4 text-[#0f9b7c] text-[13px] font-medium",children:"\ud83c\udf89 Playbook 
2sent! Check your inbox shortly."}):(0,Te.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),r.trim()){d(!0);try{await bo.post("".concat(gg,"/blog/lead-magnet"),{email:r.trim(),slug:t}),l(!0),Tr.success("PDF request received!",{description:"Check your inbox in a couple of minutes."})}catch(n){Tr.error("Couldn't request PDF. Please try again.")}finally{d(!1)}}},"data-testid":"lead-magnet-form",className:"space-y-2",children:[(0,Te.jsx)("input",{type:"email",required:!0,placeholder:"Enter your work email","data-testid":"lead-magnet-email-input",value:r,onChange:e=>a(e.target.value),className:"w-full bg-white border border-[#eeeaf6] rounded-xl px-3 py-2.5 text-[13.5px] text-[#111827] focus:border-[#6d46c6] focus:outline-none"}),(0,Te.jsx)("button",{type:"submit","data-testid":"lead-magnet-submit-btn",disabled:c,className:"btn-primary w-full justify-center h-10 text-[13px]",children:c?"Sending...":"Download Playbook"})]})}const Dg=Kr("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),wg=Kr("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),kg=Kr("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),jg=Kr("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Cg=Kr("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),Eg=Kr("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]),Fg="".concat(void 0,"/api"),Ng="uplaud_admin_token";function Ag(){return{"X-Admin-Token":localStorage.getItem(Ng)||""}}const Sg={title:"",slug:"",excerpt:"",content:"",cover_image:"",tag:"",author:"Uplaud Team",published:!0};function _g(){const e=qe((0,i.useState)(Boolean(localStorage.getItem(Ng))),2),t=e[0],n=e[1],r=qe((0,i.useState)(""),2),a=r[0],s=r[1],o=async e=>{if(e.preventDefault(),a.trim()){localStorage.setItem(Ng,a.trim());try{await bo.get("".concat(Fg,"/admin/blog?limit=1"),{headers:Ag()}),n(!0),Tr.success("Signed in")}catch(t){localStorage.removeItem(Ng),Tr.error("Invalid token")}}};return t?(0,Te.jsx)(Bg,{onSignOut:()=>{localStorage.removeItem(Ng),n(!1),s("")}}):(0,Te.jsxs)("div",{className:"min-h-screen bg-white text-[#111827]",children:[(0,Te.jsx)(Zr,{}),(0,Te.jsx)("main",{className:"pt-32 pb-24",children:(0,Te.jsxs)("div",{className:"max-w-md mx-auto px-6",children:[(0,Te.jsx)("span",{className:"section-label",children:"admin"}),(0,Te.jsx)("h1",{className:"mt-4 font-display text-[36px] font-semibold tracking-tight",children:"Sign in to manage the blog."}),(0,Te.jsxs)("form",{onSubmit:o,className:"mt-8 space-y-4",children:[(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsx)("span",{className:"font-mono text-[11px] uppercase tracking-widest text-[#4b5563]",children:"Admin token"}),(0,Te.jsx)("input",{type:"password","data-testid":"admin-token-input",value:a,onChange:e=>s(e.target.value),className:"mt-2 w-full bg-white border border-[#eeeaf6] rounded-xl px-3 py-3 text-[14px] focus:border-[#6d46c6] focus:outline-none"})]}),(0,Te.jsx)("button",{type:"submit","data-testid":"admin-signin-btn",className:"btn-primary w-full justify-center",children:"Sign in"})]})]})})]})}function Bg(e){let t=e.onSignOut;const n=qe((0,i.useState)([]),2),r=n[0],a=n[1],s=qe((0,i.useState)(!0),2),o=s[0],l=s[1],u=qe((0,i.useState)(null),2),c=u[0],d=u[1],h=qe((0,i.useState)(Sg),2),p=h[0],m=h[1],x=qe((0,i.useState)(!1),2),g=x[0],v=x[1],b=async()=>{l(!0);try{const e=await bo.get("".concat(Fg,"/admin/blog?limit=200"),{headers:Ag()});a(e.data.posts||[])}catch(e){Tr.error("Could not load posts")}finally{l(!1)}};(0,i.useEffect)(()=>{b()},[]);const y=()=>{d(null),m(Sg)},D=e=>t=>{const n="checkbox"===t.target.type?t.target.checked:t.target.value;m(t=>f(f({},t),{},{[e]:n}))};return(0,Te.jsxs)("div",{className:"min-h-screen bg-white text-[#111827]",children:[(0,Te.jsx)(Zr,{}),(0,Te.jsx)("main",{className:"pt-28 pb-24",children:(0,Te.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10",children:[(0,Te.jsxs)("div",{className:"flex items-end justify-between gap-4 flex-wrap",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("span",{className:"section-label",children:"admin \xb7 blog"}),(0,Te.jsx)("h1",{className:"mt-3 font-display text-[36px] font-semibold tracking-tight",children:"Journal admin"})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsxs)("button",{type:"button","data-testid":"admin-new-post-btn",onClick:()=>{m(Sg),d("new")},className:"btn-primary",children:[(0,Te.jsx)(Dg,{className:"w-4 h-4",strokeWidth:2}),"New post"]}),(0,Te.jsxs)("button",{type:"button","data-testid":"admin-signout-btn",onClick:t,className:"btn-secondary",children:[(0,Te.jsx)(wg,{className:"w-4 h-4",strokeWidth:1.75}),"Sign out"]})]})]}),null!==c&&(0,Te.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),p.title.trim()&&p.excerpt.trim()&&p.content.trim()){v(!0);try{const e=f(f({},p),{},{slug:p.slug||void 0,cover_image:p.cover_image||null,tag:p.tag||null});"new"===c?(await bo.post("".concat(Fg,"/blog"),e,{headers:Ag()}),Tr.success("Post created")):(await bo.put("".concat(Fg,"/blog/").concat(c),e,{headers:Ag()}),Tr.success("Post updated")),y(),b()}catch(r){var t,n;Tr.error((null===r||void 0===r||null===(t=r.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Save failed")}finally{v(!1)}}else Tr.error("Title, excerpt and content are required.")},"data-testid":"admin-post-form",className:"mt-10 border border-[#eeeaf6] rounded-2xl p-6 md:p-8 bg-[#faf9ff]",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Te.jsx)(Tg,{label:"Title",required:!0,children:(0,Te.jsx)("input",{"data-testid":"admin-title",value:p.title,onChange:D("title"),className:"admin-input"})}),(0,Te.jsx)(Tg,{label:"Slug",hint:"new"===c?"auto from title if empty":"",children:(0,Te.jsx)("input",{"data-testid":"admin-slug",value:p.slug,onChange:D("slug"),className:"admin-input"})}),(0,Te.jsx)(Tg,{label:"Tag",children:(0,Te.jsx)("input",{"data-testid":"admin-tag",value:p.tag,onChange:D("tag"),placeholder:"Growth \xb7 Playbook \xb7 Case study",className:"admin-input"})}),(0,Te.jsx)(Tg,{label:"Author",children:(0,Te.jsx)("input",{"data-testid":"admin-author",value:p.author,onChange:D("author"),className:"admin-input"})})]}),(0,Te.jsx)(Tg,{label:"Cover image",className:"mt-4",children:(0,Te.jsx)(Pg,{value:p.cover_image,onChange:e=>m(t=>f(f({},t),{},{cover_image:e}))})}),(0,Te.jsx)(Tg,{label:"Excerpt",required:!0,className:"mt-4",children:(0,Te.jsx)("textarea",{"data-testid":"admin-excerpt",value:p.excerpt,onChange:D("excerpt"),rows:2,className:"admin-input"})}),(0,Te.jsx)(Tg,{label:"Content (Markdown)",required:!0,className:"mt-4",children:(0,Te.jsx)(Og,{value:p.content,onChange:e=>m(t=>f(f({},t),{},{content:e}))})}),(0,Te.jsxs)("label",{className:"mt-4 flex items-center gap-2 text-[13px] text-[#111827]",children:[(0,Te.jsx)("input",{type:"checkbox","data-testid":"admin-published",checked:p.published,onChange:D("published")}),"Published"]}),(0,Te.jsxs)("div",{className:"mt-6 flex items-center gap-3",children:[(0,Te.jsx)("button",{type:"submit","data-testid":"admin-save-btn",disabled:g,className:"btn-primary disabled:opacity-70",children:g?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(qc,{className:"w-4 h-4 animate-spin"}),"Saving"]}):(0,Te.jsxs)(Te.Fragment,{children:["Save",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})}),(0,Te.jsx)("button",{type:"button",onClick:y,"data-testid":"admin-cancel-btn",className:"btn-secondary",children:"Cancel"})]})]}),(0,Te.jsxs)("div",{className:"mt-12",children:[(0,Te.jsx)("div",{className:"section-label mb-4",children:"All posts"}),o?(0,Te.jsx)("div",{className:"text-[14px] text-[#9ca3af]",children:"Loading\u2026"}):0===r.length?(0,Te.jsx)("div",{className:"text-[14px] text-[#9ca3af]",children:"No posts yet."}):(0,Te.jsx)("div",{className:"border border-[#eeeaf6] rounded-2xl divide-y divide-[#eeeaf6]",children:r.map(e=>(0,Te.jsxs)("div",{"data-testid":"admin-post-row-".concat(e.slug),className:"p-5 flex items-center justify-between gap-4 hover:bg-[#faf9ff] transition-colors",children:[(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"font-display text-[16px] font-semibold text-[#111827] truncate",children:e.title}),!e.published&&(0,Te.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-widest text-[#9ca3af] px-2 py-0.5 border border-[#eeeaf6] rounded-full",children:"Draft"})]}),(0,Te.jsxs)("div",{className:"mt-1 text-[12px] text-[#4b5563] truncate",children:["/blog/",e.slug," \xb7 ",e.tag||"no tag"]})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,Te.jsx)(cr,{to:"/blog/".concat(e.slug),target:"_blank",className:"text-[12px] text-[#6d46c6] hover:underline",children:"View"}),(0,Te.jsx)("button",{onClick:()=>(e=>{m({title:e.title,slug:e.slug,excerpt:e.excerpt,content:e.content,cover_image:e.cover_image||"",tag:e.tag||"",author:e.author||"Uplaud Team",published:e.published}),d(e.slug)})(e),"data-testid":"admin-edit-".concat(e.slug),className:"w-8 h-8 rounded-full border border-[#eeeaf6] hover:border-[#6d46c6] hover:text-[#6d46c6] flex items-center justify-center transition-colors","aria-label":"Edit",children:(0,Te.jsx)(kg,{className:"w-3.5 h-3.5",strokeWidth:1.75})}),(0,Te.jsx)("button",{onClick:()=>(async e=>{if(window.confirm("Delete this post?"))try{await bo.delete("".concat(Fg,"/blog/").concat(e),{headers:Ag()}),Tr.success("Deleted"),b()}catch(t){Tr.error("Delete failed")}})(e.slug),"data-testid":"admin-delete-".concat(e.slug),className:"w-8 h-8 rounded-full border border-[#eeeaf6] hover:border-red-500 hover:text-red-500 flex items-center justify-center transition-colors","aria-label":"Delete",children:(0,Te.jsx)(jg,{className:"w-3.5 h-3.5",strokeWidth:1.75})})]})]},e.slug))})]})]})}),(0,Te.jsx)(Do,{}),(0,Te.jsx)("style",{children:"\n        .admin-input {\n          margin-top: 6px;\n          width: 100%;\n          background: #ffffff;\n          border: 1px solid #eeeaf6;\n          border-radius: 12px;\n          padding: 10px 12px;\n          font-size: 14px;\n          color: #111827;\n          outline: none;\n          transition: border-color 150ms ease;\n        }\n        .admin-input:focus {\n          border-color: #6d46c6;\n        }\n      "})]})}function Tg(e){let t=e.label,n=e.hint,r=e.required,a=e.className,s=void 0===a?"":a,i=e.children;return(0,Te.jsxs)("label",{className:"block ".concat(s),children:[(0,Te.jsxs)("span",{className:"font-mono text-[11px] uppercase tracking-widest text-[#4b5563]",children:[t,r&&(0,Te.jsx)("span",{className:"text-[#6d46c6]",children:" *"}),n&&(0,Te.jsx)("span",{className:"normal-case tracking-normal ml-2 text-[#9ca3af]",children:n})]}),i]})}async function Rg(e){if(!e||!e.type.startsWith("image/"))return Tr.error("Please choose an image file."),null;if(e.size>8388608)return Tr.error("Image is over 8MB."),null;const t=new FormData;t.append("file",e);return(await bo.post("".concat(Fg,"/admin/upload"),t,{headers:f(f({},Ag()),{},{"Content-Type":"multipart/form-data"})})).data.url}
2function Pg(e){let t=e.value,n=e.onChange;const r=(0,i.useRef)(null),a=qe((0,i.useState)(!1),2),s=a[0],o=a[1],l=qe((0,i.useState)(!1),2),u=l[0],c=l[1],d=async e=>{if(e){o(!0);try{const t=await Rg(e);t&&(n(t),Tr.success("Image uploaded"))}catch(t){Tr.error(function(e){var t,n;const r=null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail;return"string"===typeof r&&r.length>0&&r.length<200?r:"Upload failed. Please try again."}(t))}finally{o(!1)}}};return(0,Te.jsxs)("div",{className:"mt-2",children:[(0,Te.jsxs)("div",{onDragOver:e=>{e.preventDefault(),c(!0)},onDragLeave:()=>c(!1),onDrop:e=>{var t,n;e.preventDefault(),c(!1);const r=null===(t=e.dataTransfer)||void 0===t||null===(n=t.files)||void 0===n?void 0:n[0];r&&d(r)},onClick:()=>{var e;return null===(e=r.current)||void 0===e?void 0:e.click()},"data-testid":"admin-cover-dropzone",className:"cursor-pointer rounded-xl border-2 border-dashed p-4 flex items-center gap-4 transition-colors ".concat(u?"border-[#6d46c6] bg-[#f5f3ff]":"border-[#d9d1ee] bg-white hover:border-[#6d46c6]"),children:[t?(0,Te.jsx)("div",{className:"w-24 h-16 rounded-lg bg-cover bg-center border border-[#eeeaf6]",style:{backgroundImage:'url("'.concat(t,'")')}}):(0,Te.jsx)("div",{className:"w-24 h-16 rounded-lg bg-[#faf9ff] border border-[#eeeaf6] flex items-center justify-center text-[#9ca3af]",children:(0,Te.jsx)(Cg,{className:"w-5 h-5",strokeWidth:1.5})}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827]",children:t?"Replace cover image":"Drag or click to upload"}),(0,Te.jsx)("div",{className:"text-[11px] text-[#4b5563] truncate",children:t||"PNG, JPG, WebP \xb7 up to 8MB \xb7 hosted on fal.ai CDN"})]}),(0,Te.jsx)("button",{type:"button","data-testid":"admin-cover-upload-btn",disabled:s,className:"btn-secondary shrink-0 disabled:opacity-70",onClick:e=>{var t;e.stopPropagation(),null===(t=r.current)||void 0===t||t.click()},children:s?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(qc,{className:"w-4 h-4 animate-spin"}),"Uploading"]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Eg,{className:"w-4 h-4",strokeWidth:1.75}),t?"Replace":"Upload"]})}),(0,Te.jsx)("input",{ref:r,type:"file","data-testid":"admin-cover-file",accept:"image/png,image/jpeg,image/webp,image/gif",className:"hidden",onChange:e=>{var t;return d(null===(t=e.target.files)||void 0===t?void 0:t[0])}})]}),t&&(0,Te.jsx)("button",{type:"button",onClick:()=>n(""),"data-testid":"admin-cover-clear",className:"mt-2 text-[11px] font-mono uppercase tracking-widest text-[#4b5563] hover:text-red-500",children:"Remove cover"})]})}function Og(e){let t=e.value,n=e.onChange;const r=(0,i.useRef)(null),a=qe((0,i.useState)(!1),2),s=a[0],o=a[1],l=qe((0,i.useState)(!1),2),u=l[0],c=l[1],d=(0,i.useRef)(null),h=async function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return;c(!0);const s="![uploading ".concat(e.name,"...]()");(e=>{var a,s;const i=r.current;if(!i)return void n((t||"")+e);const o=null!==(a=i.selectionStart)&&void 0!==a?a:t.length,l=null!==(s=i.selectionEnd)&&void 0!==s?s:t.length,u=(t||"").slice(0,o)+e+(t||"").slice(l);n(u),requestAnimationFrame(()=>{const t=o+e.length;i.focus(),i.setSelectionRange(t,t)})})(s);try{var i,o;const t=await Rg(e),l=null!==(i=null===(o=r.current)||void 0===o?void 0:o.value)&&void 0!==i?i:"";if(t){const r=a||e.name.replace(/\.[^.]+$/,""),i="![".concat(r,"](").concat(t,")");n(l.replace(s,i)),Tr.success("Image inserted")}else n(l.replace(s,""))}catch(f){var l,u,d,h;const e=null!==(l=null===(u=r.current)||void 0===u?void 0:u.value)&&void 0!==l?l:"";n(e.replace(s,"")),Tr.error((null===f||void 0===f||null===(d=f.response)||void 0===d||null===(h=d.data)||void 0===h?void 0:h.detail)||"Upload failed")}finally{c(!1)}};return(0,Te.jsx)("div",{className:"mt-2",children:(0,Te.jsxs)("div",{onDragOver:e=>{var t;Array.from((null===(t=e.dataTransfer)||void 0===t?void 0:t.types)||[]).includes("Files")&&(e.preventDefault(),o(!0))},onDragLeave:()=>o(!1),onDrop:e=>{var t;const n=Array.from((null===(t=e.dataTransfer)||void 0===t?void 0:t.files)||[]).filter(e=>e.type.startsWith("image/"));
20!==n.length&&(e.preventDefault(),o(!1),n.forEach(e=>h(e)))},className:"relative rounded-xl border transition-colors ".concat(s?"border-[#6d46c6] bg-[#f5f3ff]":"border-[#eeeaf6] bg-white"),children:[(0,Te.jsx)("textarea",{ref:r,"data-testid":"admin-content",value:t,onChange:e=>n(e.target.value),onPaste:e=>{var t;const n=Array.from((null===(t=e.clipboardData)||void 0===t?void 0:t.items)||[]).filter(e=>e.type.startsWith("image/")).map(e=>e.getAsFile()).filter(Boolean);0!==n.length&&(e.preventDefault(),n.forEach(e=>h(e,"pasted-image")))},rows:16,spellCheck:!0,className:"w-full bg-transparent rounded-t-xl px-3 py-3 font-mono text-[13px] text-[#111827] outline-none resize-y",placeholder:"Write your post in Markdown. Drag or paste images anywhere in the text to upload and embed them."}),(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3 border-t border-[#eeeaf6] px-3 py-2 rounded-b-xl bg-[#faf9ff]",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-[11px] font-mono uppercase tracking-widest text-[#4b5563]",children:[(0,Te.jsx)(Eg,{className:"w-3.5 h-3.5",strokeWidth:1.75}),"drag \xb7 paste \xb7 or",(0,Te.jsx)("button",{type:"button","data-testid":"admin-content-image-btn",onClick:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.click()},className:"text-[#6d46c6] hover:underline normal-case tracking-normal",children:"upload"}),"image"]}),u&&(0,Te.jsxs)("span",{className:"text-[11px] text-[#6d46c6] font-mono flex items-center gap-1.5",children:[(0,Te.jsx)(qc,{className:"w-3.5 h-3.5 animate-spin"}),"uploading"]})]}),(0,Te.jsx)("input",{ref:d,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif","data-testid":"admin-content-file",className:"hidden",multiple:!0,onChange:e=>{Array.from(e.target.files||[]).forEach(e=>h(e)),e.target.value=""}})]})})}const Lg="uplaud_business_auth_v1",Ig="uplaud_business_imported_v1",Mg="uplaud_business_seen_leads_v1",zg="uplaud_business_domain_prefs_v1";function Ug(){try{return JSON.parse(localStorage.getItem(zg)||"{}")}catch(e){return{}}}function qg(e,t){if(!e||!t)return;const n=Ug();n[e.toLowerCase().trim()]=t,localStorage.setItem(zg,JSON.stringify(n))}function Wg(e){if(!e)return;const t=Ug();delete t[e.toLowerCase().trim()],localStorage.setItem(zg,JSON.stringify(t))}function Hg(e){if(!e||"object"!==typeof e)return null;const t="string"===typeof e.email?e.email:"",n=t&&t.includes("@")?t.split("@")[0]:"User",r=t?Ug()[t.toLowerCase().trim()]:"",a=Object.prototype.hasOwnProperty.call(e,"brandDomain")||Object.prototype.hasOwnProperty.call(e,"selected_brand_domain")?e.brandDomain||e.selected_brand_domain||"":r||"";return f(f({},e),{},{name:e.name||n,workspace:e.workspace||e.company||"My Company",company:e.company||e.workspace||"My Company",brandDomain:a})}function Vg(){try{const e=localStorage.getItem(Lg);return e?Hg(JSON.parse(e)):null}catch(e){return null}}function Gg(e){const t=Hg(e);null!==t&&void 0!==t&&t.brandDomain?qg(t.email,t.brandDomain):Wg(null===t||void 0===t?void 0:t.email),localStorage.setItem(Lg,JSON.stringify(t))}function $g(e){const t=Hg(f(f({},Vg()||{}),e||{}));return null!==t&&void 0!==t&&t.brandDomain?qg(t.email,t.brandDomain):e&&(Object.prototype.hasOwnProperty.call(e,"brandDomain")||Object.prototype.hasOwnProperty.call(e,"selected_brand_domain"))&&Wg(null===t||void 0===t?void 0:t.email),localStorage.setItem(Lg,JSON.stringify(t)),t}function Kg(){localStorage.removeItem(Lg)}function Qg(e){localStorage.setItem(Ig,e?"true":"false")}const Yg="".replace(/\/$/,""),Jg="".concat(Yg,"/api"),Xg=bo.create({baseURL:Jg});function Zg(e){return null==e?"Something went wrong. Please try again.":"string"===typeof e?e:Array.isArray(e)?e.map(e=>e&&"string"===typeof e.msg?e.msg:JSON.stringify(e)).join(" "):e&&"string"===typeof e.msg?e.msg:String(e)}Xg.interceptors.request.use(e=>{try{var t,n,r,a,s,i;const o=localStorage.getItem("uplaud_business_auth_v1"),l=o?JSON.parse(o):null,u=(null===(t=e.headers)||void 0===t?void 0:t["X-Uplaud-Skip-Brand-Domain"])||(null===(n=e.headers)||void 0===n?void 0:n["x-uplaud-skip-brand-domain"])||(null===(r=e.url)||void 0===r?void 0:r.includes("/auth/me")),c=(null===(a=e.headers)||void 0===a?void 0:a.Authorization)||(null===(s=e.headers)||void 0===s?void 0:s.authorization)||("function"===typeof(null===(i=e.headers)||void 0===i?void 0:i.get)?e.headers.get("Authorization"):null);null!==l&&void 0!==l&&l.token&&!c&&(e.headers.Authorization="Bearer ".concat(l.token)),null!==l&&void 0!==l&&l.brandDomain&&!u&&(e.headers["X-U
2plaud-Brand-Domain"]=l.brandDomain),delete e.headers["X-Uplaud-Skip-Brand-Domain"],delete e.headers["x-uplaud-skip-brand-domain"]}catch(o){}return e}),Xg.interceptors.response.use(e=>e,e=>{var t,n,r,a,s;const i=null===(t=e.config)||void 0===t||null===(n=t.url)||void 0===n?void 0:n.includes("/auth/login"),o=null===(r=e.config)||void 0===r||null===(a=r.url)||void 0===a?void 0:a.includes("/integrations/");return 401!==(null===(s=e.response)||void 0===s?void 0:s.status)||"undefined"===typeof window||i||o||(Kg(),"/business"!==window.location.pathname&&(Tr.error("Your session expired \u2014 please sign in again."),setTimeout(()=>{window.location.href="/business"},1500))),Promise.reject(e)});const ev=Xg;function tv(e,t){const n=e||"this business",r="".concat("https://www.uplaud.ai","/business/public/").concat(t||"");return"https://wa.me/?text=".concat(encodeURIComponent("Check out ".concat(n," on Uplaud: ").concat(r)))}function nv(e){let t=e.businessName,n=e.audience,r=e.slug;const a="b2b"===n;return(0,Te.jsx)("header",{"data-testid":"site-nav",className:"sticky top-0 z-40 backdrop-blur-md",style:{background:"rgba(244, 239, 230, 0.82)",borderBottom:"1px solid var(--u-line)"},children:(0,Te.jsxs)("div",{className:"max-w-[1320px] mx-auto px-6 lg:px-10 h-16 flex items-center justify-between",children:[(0,Te.jsx)(cr,{to:"/","data-testid":"nav-logo",className:"flex items-center",children:(0,Te.jsx)("img",{src:"/uplaud-main-wordmark.png",alt:"Uplaud",className:"h-10 w-auto object-contain mix-blend-multiply",style:{maxWidth:120}})}),(0,Te.jsxs)("nav",{className:"hidden md:flex items-center gap-8 text-sm text-[color:var(--u-ink-2)]",children:[(0,Te.jsx)("a",{href:"#reviews","data-testid":"nav-reviews",className:"hover:text-[color:var(--u-ink)] transition",children:"Reviews"}),(0,Te.jsx)("a",{href:"#insights","data-testid":"nav-insights",className:"hover:text-[color:var(--u-ink)] transition",children:"Insights"}),(0,Te.jsx)("a",{href:"#stories","data-testid":"nav-stories",className:"hover:text-[color:var(--u-ink)] transition",children:"Stories"})]}),(0,Te.jsx)("div",{className:"flex items-center gap-3",children:(0,Te.jsxs)("a",{href:tv(t,r),target:"_blank",rel:"noreferrer","data-testid":"nav-refer-btn",className:"u-btn u-btn-ghost hidden sm:inline-flex",children:[(0,Te.jsx)(oa,{size:15}),a?"Refer a teammate":"Refer a friend"]})})]})})}const rv=Kr("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),av=Kr("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),sv=Kr("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),iv=Kr("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),ov=Kr("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);function lv(e){let t=e.n;return(0,Te.jsx)("div",{className:"inline-flex gap-0.5","aria-label":"".concat(t," out of 5 stars"),children:Array.from({length:5}).map((e,n)=>(0,Te.jsx)("span",{className:"text-[13px] leading-none",style:{color:n<t?"var(--u-star)":"var(--u-line-2)"},children:"\u2605"},n))})}function uv(e){try{return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch(t){return e}}const cv=[["#5B3EEE","#7CE8C8"],["#0B0B10","#5B3EEE"],["#7CE8C8","#F5B14E"],["#FF7A66","#F5B14E"],["#5DDCBA","#5B3EEE"],["#F5B14E","#FF7A66"]];function dv(e,t){const n=t||"this business",r=e.business_slug||"",a="https://www.uplaud.ai/business/public/".concat(r);return"https://wa.me/?text=".concat(encodeURIComponent("Check out ".concat(n," on Uplaud: ").concat(a)))}function hv(e){return(e||"").trim()||"WA"}function fv(e){const t=Number.parseInt(e,10);return Number.isFinite(t)?Math.max(1,Math.min(5,t)):5}function pv(e){const t=(null===e||void 0===e?void 0:e.reviewer_slug)||"";return"/business/public/reviewer/".concat(t)}function mv(e){var t;let n=e.review,r=e.businessName,a=e.audience,s=e.delay,i=void 0===s?0:s,o=e.showBusinessTag,l=void 0!==o&&o,u=e.reviewerProfile,c=void 0!==u&&u;const d="b2b"===a,h="demo"===n.verification_type,f=(n.reviewer_name||"?").split(" ").slice(0,2).map(e=>e[0]).join("").toUpperCase(),p=((null===(t=n.reviewer_name)||void 0===t?void 0:t.charCodeAt(0))||0)%cv.length,m=qe(cv[p],2),x=m[0],g=m[1],v=fv(n.rating),b=v>=5,y=hv(n.channel||n.source);return(0,Te.jsxs)("article",{className:"u-card p-5 flex flex-col reveal group relative",style:{animationDelay:"".concat(i,"s")},"data-testid":"review-card-".concat(n.id),children:[l&&n.business_name&&(0,Te.jsxs)(cr,{to:"/business/public/".concat(n.business_slug),"data-testid":"review-business-link-".concat(n.id),className:"mb-4 pb-3 border-b border-[color:var(--u-line)] flex items-center gap-2 group/business",children:[(0,Te.jsx)("span",{className:"w-8 h-8 rounded-xl flex items-center justify-center text-white text-[10px] font-bold shrink-0",style:{background:"linear-gradient(135deg, #0B0B10 0%, #2A2545 45%, #5B3EEE 100%)"},children:(w=n.business_name,(w||"?").split(" ").slice(0,2).map(e=>e[0]).join("").toUpperCase())}),(0,Te.jsx)("span",{className:"text-sm font-medium truncate",children:n.business_name}),(0,Te.jsx)(Qr,{size:13,className:"text-[color:var(--u-muted)] transition group-hover/business:translate-x-0.5 group-hover/business:-translate-y-0.5 shrink-0"})]}),b&&(0,Te.jsxs)("span",{className:"absolute -top-2 -right-2 inline-flex items-center gap-1 text-[9px] font-mono uppercase tracking-wider px-2 py-1 rounded-full",style:{background:"var(--u-mint)",color:"var(--u-ink)"},children:[(0,Te.jsx)(la,{size:9})," 5\u2605"]}),(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[!c&&(0,Te.jsx)("div",{className:"w-10 h-10 rounded-full flex items-center justify-center text-white font-semibold text-xs shrink-0",style:{background:"linear-gradient(135deg, ".concat(x,", ").concat(g,")")},children:f}),(0,Te.jsxs)("div",{className:"min-w-0 flex-1",children:[!c&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,Te.jsx)(cr,{to:pv(n),"data-testid":"reviewer-link-".concat(n.id),className:"font-medium text-sm truncate hover:underline",children:n.reviewer_name}),n.verified&&(0,Te.jsx)(sv,{size:13,className:"text-[color:var(--u-violet)] shrink-0"})]}),n.reviewer_title&&(0,Te.jsx)("div",{className:"text-[11px] text-[color:var(--u-ink-2)] truncate",children:n.reviewer_title})]}),(0,Te.jsxs)("div",{className:"text-[10px] text-[color:var(--u-muted)] font-mono uppercase tracking-wider flex items-center gap-1.5",children:[(0,Te.jsx)("span",{children:uv(n.date)}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)(oa,{size:9})," ",y]})]}),(D=n.emoji,/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCCF\uDCD0\uDCF6-\uDCFF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAE-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDE5F\uDE66-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFA]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDEE5\uDEE9\uDEEB-\uDEF0\uDEF3-\uDEFF\uDFDA-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCBC-\uDCBF\uDCC2-\uDCCF\uDCD9-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE58-\uDE5F\uDE6E-\uDEFF]|\uD83F[\uDC00-\uDFFD])/.test(D||"")&&(0,Te.jsx)("div",{className:"text-xl leading-none",children:n.emoji}))]}),(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-2.5",children:[(0,Te.jsx)(lv,{n:v}),n.referred&&(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 text-[9px] font-mono uppercase tracking-wider px-2 py-0.5 rounded-full text-[color:var(--u-violet)]",style:{background:"var(--u-violet-soft)"},children:[(0,Te.jsx)(la,{size:9})," referred"]})]}),(0,Te.jsx)("p",{className:"text-[color:var(--u-ink-2)] text-[14px] leading-relaxed flex-1",children:n.text}),(0,Te.jsxs)("div",{className:"mt-4 pt-3 border-t border-[color:var(--u-line)] flex items-center justify-between",children:[h?(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[10px] font-mono uppercase tracking-wider",style:{color:"var(--u-violet)"},"data-testid":"verification-badge-".concat(n.id),children:[(0,Te.jsx)(iv,{size:11}),"Verified demo"]}):(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[10px] text-[color:var(--u-muted)] font-mono uppercase tracking-wider","data-testid":"verification-badge-".concat(n.id),children:[(0,Te.jsx)(av,{size:11,className:"text-[color:var(--u-mint-2)]"}),d?"Verified subscriber":"Verified purchase"]}),b?(0,Te.jsxs)("a",{href:dv(n,r),target:"_blank",rel:"noreferrer","data-testid":"referral-btn-".concat(n.id),className:"inline-flex items-center gap-1.5 text-[11px] font-semibold px-2.5 py-1.5 rounded-full transition group/refer",style:{background:"#0B0B10",color:"white"},onMouseEnter:e=>e.currentTarget.style.background="#25D366",onMouseLeave:e=>e.currentTarget.style.background="#0B0B10",children:[(0,Te.jsx)(ov,{size:11})," Refer via WhatsApp"]}):(0,Te.jsx)("span",{className:"text-[10px] text-[color:var(--u-muted)] opacity-0 group-hover:opacity-100 transition",children:"Share \u2192"})]})]});var D,w}function xv(e){let t=e.business,n=e.stats,r=e.topReviews,a=void 0===r?[]:r;const s="b2b"===(null===t||void 0===t?void 0:t.audience),i=function(e){const t=(e||"").trim();return t?t.replace(/^AI(?=[A-Z][a-z])/g,"AI ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\s+/g," "):""}(null===t||void 0===t?void 0:t.name),o=[null===t||void 0===t?void 0:t.location,null===t||void 0===t?void 0:t.website,null!==t&&void 0!==t&&t.founded?"Est. ".concat(t.foun
2ded):""].filter(Boolean),l=(i||"?").split(" ").slice(0,2).map(e=>e[0]).join("");return(0,Te.jsxs)("section",{className:"relative overflow-hidden","data-testid":"business-hero",children:[(0,Te.jsx)("div",{className:"absolute -top-40 -right-32 w-[560px] h-[560px] rounded-full opacity-50 blur-3xl pointer-events-none",style:{background:"radial-gradient(closest-side, #DFF7EE, transparent 70%)"}}),(0,Te.jsx)("div",{className:"absolute -bottom-40 -left-32 w-[520px] h-[520px] rounded-full opacity-40 blur-3xl pointer-events-none",style:{background:"radial-gradient(closest-side, #EEE9FF, transparent 70%)"}}),(0,Te.jsx)("div",{className:"max-w-[1320px] mx-auto px-6 lg:px-10 pt-8 lg:pt-12 pb-8 lg:pb-10 relative",children:(0,Te.jsxs)("div",{className:"grid lg:grid-cols-12 gap-8 lg:gap-10 items-center",children:[(0,Te.jsxs)("div",{className:"lg:col-span-7 reveal",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-4",children:[(0,Te.jsx)("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center text-white font-display text-xl font-bold shrink-0",style:{background:"linear-gradient(135deg, #0B0B10 0%, #2A2545 45%, #5B3EEE 100%)",boxShadow:"0 12px 32px -14px rgba(11,11,16,0.4)"},"data-testid":"hero-logo",children:l}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs text-[color:var(--u-muted)]",children:o.length>0?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Te.jsx)(rv,{size:12}),o[0]]}),o.slice(1).map(e=>(0,Te.jsxs)("span",{className:"inline-flex items-center gap-3",children:[(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:e})]},e))]}):(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Te.jsx)(rv,{size:12}),"Verified on Uplaud"]})}),(0,Te.jsxs)("div",{className:"text-[11px] text-[color:var(--u-violet)] font-medium mt-0.5 inline-flex items-center gap-1",children:[(0,Te.jsx)(av,{size:12})," ",s?"Verified vendor \xb7 Claimed":"Verified business \xb7 Claimed"]})]})]}),(0,Te.jsxs)("h1",{className:"font-display font-semibold tracking-tight leading-[0.95] text-[2.75rem] md:text-[3.5rem] lg:text-[4.25rem] mt-6 text-[color:var(--u-ink)]","data-testid":"hero-title",children:[(0,Te.jsxs)("span",{className:"block",children:[i,(0,Te.jsx)("span",{className:"text-[color:var(--u-muted)]",children:"."})]}),(0,Te.jsxs)("span",{className:"block text-[1.6rem] md:text-[2rem] lg:text-[2.4rem] mt-2 leading-[1.05] font-normal text-[color:var(--u-ink-2)]",children:[(0,Te.jsx)("span",{className:"font-serif-italic text-[color:var(--u-ink)]",children:"Trusted"}),". Reviewed. ",(0,Te.jsx)("span",{className:"mint-underline",children:"Referred"}),"."]})]}),(0,Te.jsx)("p",{className:"mt-5 max-w-xl text-[15px] leading-relaxed text-[color:var(--u-ink-2)]","data-testid":"hero-about",children:null===t||void 0===t?void 0:t.about}),(0,Te.jsxs)("div",{className:"mt-7 flex flex-wrap items-center gap-x-6 gap-y-3 border-t border-b border-[color:var(--u-line)] py-4","data-testid":"hero-stats-strip",children:[(0,Te.jsx)(gv,{label:s?"Vendor Trust Score":"Trust Score",value:"".concat((null===n||void 0===n?void 0:n.trust_score)||0),suffix:"/100",accent:!0}),(0,Te.jsx)(gv,{label:"Rating",value:((null===n||void 0===n?void 0:n.avg_rating)||0).toFixed(1),suffix:"\u2605",starColor:!0}),(0,Te.jsx)(gv,{label:"Reviews",value:((null===n||void 0===n?void 0:n.total_reviews)||0).toLocaleString()}),(0,Te.jsx)(gv,{label:s?"Verified accounts":"Unique reviewers",value:((null===n||void 0===n?void 0:n.unique_reviewers)||0).toLocaleString()}),(0,Te.jsx)(gv,{label:s?"Team referrals":"Referrals",value:((null===n||void 0===n?void 0:n.total_referrals)||0).toLocaleString()})]}),(0,Te.jsx)("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:(0,Te.jsxs)("a",{href:"#reviews",className:"u-btn u-btn-dark","data-testid":"hero-cta-reviews",children:["Read all reviews ",(0,Te.jsx)(Qr,{size:16})]})})]}),(0,Te.jsx)("div",{className:"lg:col-span-5 relative reveal",style:{animationDelay:"0.15s"},"data-testid":"hero-preview-stack",children:(0,Te.jsx)(vv,{reviews:a,business:t,stats:n})})]})})]})}
2function gv(e){let t=e.label,n=e.value,r=e.suffix,a=e.accent,s=e.starColor;return(0,Te.jsxs)("div",{className:"flex flex-col",children:[(0,Te.jsx)("span",{className:"text-[10px] uppercase tracking-[0.15em] text-[color:var(--u-muted)] font-mono",children:t}),(0,Te.jsxs)("span",{className:"font-display text-2xl font-semibold tabular-nums leading-tight",children:[(0,Te.jsx)("span",{className:a?"text-[color:var(--u-violet)]":"",children:n}),r&&(0,Te.jsx)("span",{className:"ml-0.5 text-sm font-medium ".concat(s?"text-[color:var(--u-star)]":"text-[color:var(--u-muted)]"),children:r})]})]})}function vv(e){var t,n;let r=e.reviews,a=e.business,s=e.stats;const i=r.filter(e=>5===e.rating).slice(0,2),o=i.length>=2?i:r.slice(0,2),l=r.find(e=>e.referred);return(0,Te.jsxs)("div",{className:"relative h-[440px] lg:h-[500px]",children:[(0,Te.jsx)("div",{className:"absolute inset-0 rounded-3xl border border-[color:var(--u-line)] bg-white/40 backdrop-blur-sm",style:{backgroundImage:"linear-gradient(to right, rgba(11,11,16,0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(11,11,16,0.04) 1px, transparent 1px)",backgroundSize:"22px 22px"}}),(0,Te.jsxs)("div",{className:"absolute top-4 right-4 u-pill",style:{background:"white"},children:[(0,Te.jsx)("span",{className:"u-pill-dot"}),(0,Te.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-wider text-[color:var(--u-muted)]",children:"Live"}),(0,Te.jsx)("span",{className:"font-display font-semibold ml-1",children:((null===s||void 0===s?void 0:s.total_reviews)||0).toLocaleString()})]}),(0,Te.jsxs)("div",{className:"absolute top-4 left-4 inline-flex items-center gap-1.5 text-[10px] font-mono uppercase tracking-wider text-[color:var(--u-muted)]",children:[(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[color:var(--u-mint-2)] animate-pulse"}),"Surfaced by uplaud"]}),o[0]&&(0,Te.jsx)(bv,{review:o[0],position:"top",business:a}),o[1]&&(0,Te.jsx)(bv,{review:o[1],position:"bottom",business:a}),l&&(0,Te.jsxs)("div",{className:"absolute bottom-5 right-5 rounded-xl p-3 pr-4 max-w-[220px]",style:{background:"white",border:"1px solid var(--u-line-2)",boxShadow:"0 16px 40px -20px rgba(11,11,16,0.25)"},children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,Te.jsx)("div",{className:"w-6 h-6 rounded-full flex items-center justify-center text-white text-[10px] font-bold",style:{background:"#25D366"},children:(null===(t=l.reviewer_name)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.toUpperCase())||"R"}),(0,Te.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-wider text-[color:var(--u-muted)]",children:"Referred"})]}),(0,Te.jsxs)("p",{className:"text-[12px] leading-snug text-[color:var(--u-ink-2)]",children:['"',l.reviewer_name," referred ",null===a||void 0===a?void 0:a.name,' on Uplaud."']})]})]})}function bv(e){var t,n;let r=e.review,a=e.position,s=e.business;const i="top"===a,o="b2b"===(null===s||void 0===s?void 0:s.audience),l="demo"===r.verification_type,u=(r.reviewer_name||"?").split(" ").slice(0,2).map(e=>e[0]).join("").toUpperCase(),c=fv(r.rating),d=hv(r.channel||r.source);return(0,Te.jsxs)("div",{className:"absolute rounded-2xl p-5 max-w-[340px]",style:{background:"white",border:"1px solid var(--u-line-2)",boxShadow:"0 24px 60px -30px rgba(11,11,16,0.35)",top:i?"56px":"auto",bottom:i?"auto":"110px",left:i?"24px":"auto",right:i?"auto":"36px",transform:i?"rotate(-1.5deg)":"rotate(1.5deg)"},children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-white text-[11px] font-semibold",style:{background:"linear-gradient(135deg,#5B3EEE,#7CE8C8)"},children:u}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)(cr,{to:pv(r),className:"text-xs font-medium hover:underline","data-testid":"preview-reviewer-link-".concat(r.id),children:[r.reviewer_name,r.reviewer_title?", ".concat(r.reviewer_title):""]}),(0,Te.jsxs)("div",{className:"text-[10px] text-[color:var(--u-muted)]",children:[l?"verified demo":o?"verified subscriber":"verified"," \xb7 ",d]})]})]}),(0,Te.jsx)("div",{className:"inline-flex","aria-label":"".concat(c," stars"),children:Array.from({length:5}).map((e,t)=>(0,Te.jsx)(ia,{size:11,className:"fill-current",style:{color:t<c?"var(--u-star)":"var(--u-line-2)"}},t))})]}),(0,Te.jsxs)("p",{className:"text-[13px] leading-snug text-[color:var(--u-ink-2)] line-clamp-4",children:['"',r.text,'"']}),(0,Te.jsxs)("div",{className:"mt-3 pt-3 border-t border-[color:var(--u-line)] flex items-center justify-between text-[10px] text-[color:var(--u-muted)]",children:[(0,Te.jsx)("span",{className:"uppercase tracking-wider font-mono",children:(null===s||void 0===s||null===(t=s.category)||void 0===t||null===(n=t.split("\xb7")[0])||void 0===n?void 0:n.trim())||"Trusted"}),r.referred&&(0,Te.jsx)("span",{className:"text-[color:var(--u-violet)] font-medium",children:"Referred"})]})]})}function yv(e){var t;let n=e.stats;const r=(null===n||void 0===n?void 0:n.rating_distribution)||{},a=Object.values(r).reduce((e,t)=>
2e+t,0)||1,s=(null===n||void 0===n?void 0:n.sentiment)||{positive:0,neutral:0,negative:0},i=((null===n||void 0===n?void 0:n.keywords)||[]).slice(0,12);return(0,Te.jsxs)("section",{id:"insights",className:"max-w-[1320px] mx-auto px-6 lg:px-10 py-10 lg:py-14","data-testid":"insights-section",children:[(0,Te.jsxs)("div",{className:"flex items-end justify-between mb-8 flex-wrap gap-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("span",{className:"u-pill",children:[(0,Te.jsx)("span",{className:"u-pill-dot"})," 03 \xb7 signal"]}),(0,Te.jsxs)("h2",{className:"font-display text-3xl lg:text-[2.75rem] font-semibold tracking-tight mt-3 max-w-2xl leading-[1.05]",children:["The ",(0,Te.jsx)("span",{className:"font-serif-italic",children:"signal"})," inside ",(0,Te.jsx)("span",{className:"mint-underline",children:(null===n||void 0===n||null===(t=n.total_reviews)||void 0===t?void 0:t.toLocaleString())||0})," reviews."]})]}),(0,Te.jsx)("p",{className:"text-sm text-[color:var(--u-muted)] max-w-xs",children:"Every review read, tagged and clustered by Uplaud AI \u2014 so you see what actually drives the 5-star."})]}),(0,Te.jsxs)("div",{className:"grid lg:grid-cols-12 gap-6",children:[(0,Te.jsxs)("div",{className:"lg:col-span-5 u-card p-7","data-testid":"rating-distribution",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,Te.jsx)("h3",{className:"font-display text-lg font-semibold",children:"Rating distribution"}),(0,Te.jsxs)("span",{className:"u-pill text-[10px]",children:[(0,Te.jsx)("span",{className:"u-pill-dot"})," live"]})]}),(0,Te.jsx)("div",{className:"space-y-3",children:[5,4,3,2,1].map(e=>{const t=r[e]||0,n=Math.round(t/a*100);return(0,Te.jsxs)("div",{className:"flex items-center gap-3 text-sm",children:[(0,Te.jsxs)("div",{className:"w-14 flex items-center gap-1 text-[color:var(--u-ink-2)] font-medium",children:[e," ",(0,Te.jsx)("span",{className:"text-[color:var(--u-star)]",children:"\u2605"})]}),(0,Te.jsx)("div",{className:"flex-1 h-2.5 rounded-full bg-[color:var(--u-cream-2)] overflow-hidden",children:(0,Te.jsx)("div",{className:"h-full rounded-full transition-all duration-700",style:{width:"".concat(n,"%"),background:e>=4?"linear-gradient(90deg, #7CE8C8, #5DDCBA)":3===e?"#F5B14E":"#FF7A66"}})}),(0,Te.jsx)("span",{className:"w-16 text-right text-[color:var(--u-muted)] tabular-nums text-xs",children:t.toLocaleString()})]},e)})})]}),(0,Te.jsxs)("div",{className:"lg:col-span-4 u-card p-7","data-testid":"sentiment-card",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-5",children:[(0,Te.jsx)("h3",{className:"font-display text-lg font-semibold",children:"Overall sentiment"}),(0,Te.jsx)(aa,{size:16,className:"text-[color:var(--u-mint-2)]"})]}),(0,Te.jsxs)("div",{className:"h-4 rounded-full overflow-hidden flex",style:{background:"var(--u-cream-2)"},children:[(0,Te.jsx)("div",{style:{width:"".concat(s.positive,"%"),background:"linear-gradient(90deg,#7CE8C8,#5DDCBA)"}}),(0,Te.jsx)("div",{style:{width:"".concat(s.neutral,"%"),background:"#F5B14E"}}),(0,Te.jsx)("div",{style:{width:"".concat(s.negative,"%"),background:"#FF7A66"}})]}),(0,Te.jsxs)("div",{className:"mt-5 space-y-3 text-sm",children:[(0,Te.jsx)(Dv,{color:"#5DDCBA",label:"Positive",value:s.positive}),(0,Te.jsx)(Dv,{color:"#F5B14E",label:"Neutral",value:s.neutral}),(0,Te.jsx)(Dv,{color:"#FF7A66",label:"Critical",value:s.negative})]}),(0,Te.jsxs)("p",{className:"mt-6 pt-5 border-t border-[color:var(--u-line)] text-xs text-[color:var(--u-muted)] leading-relaxed",children:[(0,Te.jsx)("span",{className:"font-medium text-[color:var(--u-ink-2)]",children:"Top praise:"})," ",(null===n||void 0===n?void 0:n.top_praise)||"consistent quality, responsive support, and results customers keep coming back for."]})]}),(0,Te.jsxs)("div",{className:"lg:col-span-3 u-card p-7 relative overflow-hidden","data-testid":"keywords-card",children:[(0,Te.jsx)("h3",{className:"font-display text-lg font-semibold mb-5",children:"What customers say"}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map((e,t)=>{var n;const r=Math.min(1.35,.75+e.count/((null===(n=i[0])||void 0===n?void 0:n.count)||1)*.6);return(0,Te.jsxs)("span",{"data-testid":"keyword-".concat(t),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full font-medium transition hover:scale-105 cursor-default",style:{fontSize:"".concat(r,"rem"),background:"mixed"===e.sentiment?"#FDECE3":"var(--u-mint-soft)",color:"mixed"===e.sentiment?"#B85D2D":"#1A5F4A",border:"1px solid",borderColor:"mixed"===e.sentiment?"#F5D0BC":"#B9E9D5"},children:[e.word,(0,Te.jsx)("span",{className:"text-[10px] opacity-60",children:e.count})]},t)})})]})]})]})}function Dv(e){let t=e.color,n=e.label,r=e.value;return(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsxs)("div",{className:"inline-flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:t}}),(0,Te.jsx)("span",{className:"text-[color:var(--u-ink-2)]",children:n})]}),(0,Te.jsxs)("span",{className:"tabular-nums font-medium",children:[r,"%"]})]})}const wv=Kr("message-square-text",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);function kv(e){let t=e.slug,n=e.businessName,r=e.audience;const a=qe((0,i.useState)([]),2),s=a[0],o=a[1],l=qe((0,i.useState)(!0),2),u=l[0],c=l[1],d=qe((0,i.useState)(0),2),h=d[0],f=d[1],p=qe((0,i.useState)("recent"),2),m=p[0],x=p[1],g=qe((0,i.useState)(""),2),v=g[0],b=g[1],y=qe((0,i.useState)(!1),2),D=y[0],w=y[1];return(0,i.useEffect)(()=>{let e=!1;c(!0);const n=new URLSearchParams;h&&n.set("rating",h),m&&n.set("sort",m),v&&n.set("q",v),D&&n.set("referred_only","true");const r=setTimeout(()=>{ev.get("/business/public/".concat(t,"/reviews?").concat(n.toString())).then(t=>{e||(o(t.data.reviews||[]),c(!1))}).catch(()=>!e&&c(!1))},200);return()=>{e=!0,clearTimeout(r)}},[t,h,m,v,D]),(0,Te.jsxs)("section",{id:"reviews",className:"max-w-[1320px] mx-auto px-6 lg:px-10 py-10 lg:py-14","data-testid":"reviews-section",children:[(0,Te.jsxs)("div",{className:"flex items-end justify-between mb-6 flex-wrap gap-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("span",{className:"u-pill",children:[(0,Te.jsx)("span",{className:"u-pill-dot"})," 02 \xb7 voices"]}),(0,Te.jsxs)("h2",{className:"font-display text-3xl lg:text-[2.75rem] font-semibold tracking-tight mt-3 max-w-2xl leading-[1.05]",children:["Real words. ",(0,Te.jsx)("span",{className:"font-serif-italic",children:"Real"})," people."]})]}),(0,Te.jsx)("p",{className:"text-sm text-[color:var(--u-muted)] max-w-xs",children:"Every review captured from verified sources \u2014 no bots, no incentivized fluff."})]}),(0,Te.jsxs)("div",{className:"u-card p-3 lg:p-4 mb-6 flex flex-wrap items-center gap-2","data-testid":"reviews-filters",children:[(0,Te.jsxs)("div",{className:"relative flex-1 min-w-[240px]",children:[(0,Te.jsx)(Ba,{size:16,className:"absolute left-3.5 to
2p-1/2 -translate-y-1/2 text-[color:var(--u-muted)]"}),(0,Te.jsx)("input",{type:"text",value:v,onChange:e=>b(e.target.value),placeholder:"Search reviews by keyword...","data-testid":"reviews-search",className:"w-full pl-10 pr-4 py-2.5 rounded-full bg-[color:var(--u-cream-2)] border border-transparent focus:border-[color:var(--u-ink)] focus:bg-white outline-none text-sm transition"})]}),(0,Te.jsx)("div",{className:"flex items-center gap-1.5 p-1 rounded-full bg-[color:var(--u-cream-2)]",children:[0,5,4,3].map(e=>(0,Te.jsx)("button",{"data-testid":"filter-rating-".concat(e),onClick:()=>f(e),className:"px-3.5 py-1.5 rounded-full text-xs font-medium transition ".concat(h===e?"bg-white shadow-sm text-[color:var(--u-ink)]":"text-[color:var(--u-muted)] hover:text-[color:var(--u-ink)]"),children:0===e?"All":"".concat(e,"\u2605")},e))}),(0,Te.jsxs)("select",{value:m,onChange:e=>x(e.target.value),"data-testid":"reviews-sort",className:"px-4 py-2.5 rounded-full bg-[color:var(--u-cream-2)] border border-transparent focus:border-[color:var(--u-ink)] outline-none text-xs font-medium cursor-pointer",children:[(0,Te.jsx)("option",{value:"recent",children:"Most recent"}),(0,Te.jsx)("option",{value:"top",children:"Top rated"}),(0,Te.jsx)("option",{value:"oldest",children:"Oldest first"})]}),(0,Te.jsxs)("button",{"data-testid":"filter-referred",onClick:()=>w(e=>!e),className:"px-3.5 py-2 rounded-full text-xs font-medium inline-flex items-center gap-1.5 transition ".concat(D?"bg-[color:var(--u-violet)] text-white":"bg-[color:var(--u-cream-2)] text-[color:var(--u-ink-2)] hover:bg-white border border-transparent hover:border-[color:var(--u-line-2)]"),children:[(0,Te.jsx)(la,{size:13})," Referred by a friend"]})]}),u?(0,Te.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-5",children:Array.from({length:6}).map((e,t)=>(0,Te.jsx)("div",{className:"skeleton h-56 rounded-2xl"},t))}):0===s.length?(0,Te.jsxs)("div",{className:"u-card p-12 text-center","data-testid":"no-reviews",children:[(0,Te.jsx)(wv,{className:"mx-auto mb-3 text-[color:var(--u-muted)]",size:28}),(0,Te.jsx)("p",{className:"text-[color:var(--u-ink-2)] font-medium",children:"No reviews match your filters"}),(0,Te.jsx)("p",{className:"text-[color:var(--u-muted)] text-sm mt-1",children:"Try clearing filters or searching a different keyword."})]}):(0,Te.jsx)(Te.Fragment,{children:(0,Te.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-5","data-testid":"reviews-grid",children:s.map((e,t)=>(0,Te.jsx)(mv,{review:e,businessName:n,audience:r,delay:.04*t},e.id))})})]})}const jv={"Case study":{bg:"#EEE9FF",fg:"#4B2FE0"},"Growth deep-dive":{bg:"#DFF7EE",fg:"#1A5F4A"},default:{bg:"#F5EFDD",fg:"#8A5F16"}};function Cv(e){let t=e.slug,n=e.caseStudies;const r=qe((0,i.useState)([]),2),a=r[0],s=r[1],o=qe((0,i.useState)(!1),2),l=o[0],u=o[1];(0,i.useEffect)(()=>{let e=!1;return u(!1),ev.get("/business/public/".concat(t,"/content")).then(t=>{let n=t.data;e||s((null===n||void 0===n?void 0:n.posts)||[])}).catch(()=>{e||s([])}).finally(()=>{e||u(!0)}),()=>{e=!0}},[t]);const c=l&&a.length>0?a.map(Ev):l&&n||[];return!c.length&&l?null:c.length?(0,Te.jsxs)("section",{id:"stories",className:"max-w-[1320px] mx-auto px-6 lg:px-10 py-10 lg:py-14","data-testid":"case-studies-section",children:[(0,Te.jsxs)("div",{className:"flex items-end justify-between mb-8 flex-wrap gap-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("span",{className:"u-pill",children:[(0,Te.jsx)("span",{className:"u-pill-dot"})," 04 \xb7 stories"]}),(0,Te.jsxs)("h2",{className:"font-display text-3xl lg:text-[2.75rem] font-semibold tracking-tight mt-3 max-w-2xl leading-[1.05]",children:["Reviews, rewritten as ",(0,Te.jsx)("span",{className:"font-serif-italic",children:"stories"}),"."]}),(0,Te.jsx)("p",{className:"mt-3 text-[color:var(--u-muted)] max-w-xl text-sm leading-relaxed",children:"Uplaud AI reads your review corpus and turns the highest-signal ones into shareable case studies. On-brand. On-message. Zero writing."})]}),(0,Te.jsxs)("span",{className:"hidden md:inline-flex items-center gap-2 text-xs u-pill",children:[(0,Te.jsx)(ea,{size:13})," Generated by Uplaud AI \xb7 human approved"]})]}),(0,Te.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:c.map((e,n)=>{const r=jv[e.tag]||jv.default;return(0,Te.jsxs)(cr,{to:"/business/public/".concat(t,"/blog/").concat(e.slug),className:"u-card p-6 group flex flex-col reveal relative overflow-hidden",style:{animationDelay:"".concat(.06*n,"s")},"data-testid":"case-study-card-".concat(e.slug),children:[(0,Te.jsx)("div",{className:"absolute -top-16 -right-16 w-40 h-40 rounded-full opacity-0 group-hover:opacity-100 transition duration-500",style:{background:"radial-gradient(closest-side, ".concat(r.bg,", transparent 70%)")}}),(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-5 relative",children:[(0,Te.jsx)("span",{className:"inline-flex items-center px-2.5 py-1 rounded-full text-[11px] font-medium",style:{background:r.bg,color:r.fg},children:e.tag}),(0,Te.jsx)("span",{className:"text-[11px] text-[color:var(--u-muted)]",children:e.read_time})]}),(0,Te.jsx)("h3",{className:"font-display text-xl font-semibold leading-[1.15] tracking-tight relative",children:e.title}),(0,Te.jsx)("p",{className:"mt-3 text-sm text-[color:var(--u-muted)] leading-relaxed relative flex-1",children:e.excerpt}),"content"===e.kind?(0,Te.jsx)("div",{className:"mt-5 pt-5 border-t border-[color:var(--u-line)] relative",children:(0,Te.jsxs)("div",{className:"flex flex-wrap gap-3 text-[11px] font-mono uppercase tracking-[0.12em] text-[color:var(--u-muted)]",children:[(0,Te.jsxs)("span",{children:[e.review_count," review signals"]}),(0,Te.jsxs)("span",{children:[e.source_count," research sources"]}),e.updated_at&&(0,Te.jsxs)("span",{children:["Updated ",Nv(e.updated_at)]})]})}):(0,Te.jsxs)("blockquote",{className:"mt-5 pt-5 border-t border-[color:var(--u-line)] relative",children:[(0,Te.jsxs)("p",{className:"font-serif-italic text-[15px] leading-snug text-[color:var(--u-ink)]",children:["\u201c",e.hero_quote,"\u201d"]}),(0,Te.jsxs)("cite",{className:"not-italic block mt-2 text-[11px] text-[color:var(--u-muted)]",children:["\u2014 ",e.hero_quote_author]})]}),(0,Te.jsxs)("div",{className:"mt-5 inline-flex items-center gap-1.5 text-sm font-medium text-[color:var(--u-ink)] relative",children:["content"===e.kind?"Read the article":"Read the story",(0,Te.jsx)(Qr,{size:15,className:"transition group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]},e.id)})})]}):null}function Ev(e){var t;return{id:e.id||e.slug,kind:"content",slug:e.slug,title:e.title,excerpt:e.excerpt||e.meta_description,tag:e.content_type||"Buyer guide",read_time:Fv(e.content_html),review_count:(e.source_review_ids||[]).length,source_count:((null===(t=e.research_packet)||void 0===t?void 0:t.sources)||[]).length,updated_at:e.updated_at||e.published_at}}function Fv(e){const t=(e||"").replace(/<[^>]+>
2/g," ").trim().split(/\s+/).filter(Boolean).length;return"".concat(Math.max(1,Math.ceil(t/220))," min read")}function Nv(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function Av(){return(0,Te.jsx)("footer",{className:"border-t border-[color:var(--u-line)] mt-8","data-testid":"site-footer",children:(0,Te.jsxs)("div",{className:"max-w-[1320px] mx-auto px-6 lg:px-10 py-10 flex flex-col md:flex-row items-start md:items-center justify-between gap-6",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("img",{src:"/uplaud-main-wordmark.png",alt:"Uplaud",className:"h-8 w-auto object-contain mix-blend-multiply",style:{maxWidth:112}}),(0,Te.jsx)("span",{className:"text-xs text-[color:var(--u-muted)] ml-2",children:"The trust engine for modern acquisition"})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-6 text-xs text-[color:var(--u-muted)]",children:[(0,Te.jsx)("a",{href:"#",className:"hover:text-[color:var(--u-ink)] transition",children:"Privacy"}),(0,Te.jsx)("a",{href:"#",className:"hover:text-[color:var(--u-ink)] transition",children:"Terms"}),(0,Te.jsx)("a",{href:"#",className:"hover:text-[color:var(--u-ink)] transition",children:"Claim this page"}),(0,Te.jsxs)("span",{className:"hidden md:inline",children:["\xa9 ",(new Date).getFullYear()," Uplaud AI"]})]})]})})}const Sv=Kr("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]),_v=Kr("leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]),Bv=Kr("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Tv=Kr("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]),Rv=Kr("landmark",[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]]),Pv=Kr("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]),Ov={"shield-check":av,users:wa,"flask-conical":Sv,leaf:_v,lock:Bv,scale:na,graduation:Tv,landmark:Rv,award:Pv},Lv={"health-wellness":[{label:"Dermatologist tested",icon:"flask-conical"},{label:"Cruelty free",icon:"leaf"}],education:[{label:"Educator vetted",icon:"graduation"},{label:"Outcome tracked",icon:"award"}],legal:[{label:"Bar Association member",icon:"scale"},{label:"Client confidentiality",icon:"lock"}],fintech:[{label:"SOC 2 aware",icon:"lock"},{label:"RBI compliant",icon:"landmark"}],saas:[{label:"Y Combinator backed",icon:"award"},{label:"SOC 2 in progress",icon:"lock"},{label:"Enterprise-ready",icon:"shield-check"}]};function Iv(e){let t=e.business,n=e.stats;const r="b2b"===(null===t||void 0===t?void 0:t.audience),a=Lv[null===t||void 0===t?void 0:t.vertical]||[],s=[{label:"Verified by Uplaud",icon:"shield-check"},{label:"".concat(((null===n||void 0===n?void 0:n.unique_reviewers)||0).toLocaleString()," ").concat(r?"verified accounts":"unique reviewers"),icon:"users"},...a,{label:"No incentivised reviews",icon:"shield-check"}],i=new Set,o=s.filter(e=>!i.has(e.label)&&(i.add(e.label),!0)).slice(0,5);return(0,Te.jsx)("section",{className:"max-w-[1320px] mx-auto px-6 lg:px-10","data-testid":"trust-badges",children:(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-3 py-4 border-t border-b border-[color:var(--u-line)]",children:[(0,Te.jsx)("span",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-[color:var(--u-muted)] shrink-0",children:"Trust \xb7 Signals"}),o.map((e,t)=>{const n=Ov[e.icon]||av;return(0,Te.jsxs)("div",{"data-testid":"trust-badge-".concat(t),className:"inline-flex items-center gap-1.5 text-xs text-[color:var(--u-ink-2)]",children:[(0,Te.jsx)(n,{size:13,className:0===t?"text-[color:var(--u-violet)]":"text-[color:var(--u-mint-2)]"}),(0,Te.jsx)("span",{className:"font-medium",children:e.label}),t<o.length-1&&(0,Te.jsx)("span",{className:"ml-4 text-[color:var(--u-line-2)]",children:"\xb7"})]},t)})]})})}
2function Mv(){const e=rn().slug,t=qe((0,i.useState)(null),2),n=t[0],r=t[1],a=qe((0,i.useState)(null),2),s=a[0],o=a[1],l=qe((0,i.useState)([]),2),u=l[0],c=l[1],d=qe((0,i.useState)([]),2),h=d[0],f=d[1],p=qe((0,i.useState)(!1),2),m=p[0],x=p[1];if((0,i.useEffect)(()=>{let t=!1;return x(!1),r(null),o(null),c([]),f([]),ev.get("/business/public/".concat(e,"/page")).then(e=>{let n=e.data;t||(r(n.business),o(n.stats),c(n.case_studies||[]),f(n.top_reviews||[]),x(!1))}).catch(()=>!t&&x(!0)),()=>{t=!0}},[e]),m)return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center","data-testid":"business-not-found",children:(0,Te.jsxs)("div",{className:"text-center max-w-md px-6",children:[(0,Te.jsx)("h1",{className:"font-display text-3xl font-semibold mb-3",children:"Business not found"}),(0,Te.jsxs)("p",{className:"text-[color:var(--u-muted)]",children:["We couldn't find a business with slug ",(0,Te.jsx)("span",{className:"font-mono",children:e}),"."]})]})});if(!n||!s)return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center","data-testid":"business-loading",children:(0,Te.jsx)("div",{className:"text-center",children:(0,Te.jsx)("div",{className:"font-display text-lg text-[color:var(--u-muted)] animate-pulse",children:"Loading\u2026"})})});const g=n.slug||e;return(0,Te.jsxs)("div",{className:"min-h-screen bg-grain","data-testid":"business-page",children:[(0,Te.jsx)(nv,{businessName:n.name,audience:n.audience,slug:g}),(0,Te.jsx)(xv,{business:n,stats:s,topReviews:h}),(0,Te.jsx)(Iv,{business:n,stats:s}),(0,Te.jsx)(kv,{slug:g,businessName:n.name,audience:n.audience}),(0,Te.jsx)(yv,{stats:s}),(0,Te.jsx)(Cv,{slug:g,caseStudies:u}),(0,Te.jsx)(Av,{})]})}const zv=Kr("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);function Uv(){const e=rn(),t=e.slug,n=e.csSlug,r=qe((0,i.useState)(null),2),a=r[0],s=r[1],o=qe((0,i.useState)(null),2),l=o[0],u=o[1],c=qe((0,i.useState)(!1),2),d=c[0],h=c[1];return(0,i.useEffect)(()=>{let e=!1;const r=ev.get("/business/public/".concat(t,"/content/").concat(n)).then(e=>function(e){var t;return{id:e.id||e.slug,kind:"content",slug:e.slug,title:e.title,excerpt:e.excerpt||e.meta_description,tag:e.content_type||"Buyer guide",read_time:qv(e.content_html),body_html:e.content_html||"",review_count:(e.source_review_ids||[]).length,source_count:((null===(t=e.research_packet)||void 0===t?void 0:t.sources)||[]).length,updated_at:e.updated_at||e.published_at,schema:e.schema||{}}}(e.data)).catch(()=>ev.get("/business/public/".concat(t,"/case-studies/").concat(n)).then(e=>e.data));return Promise.all([r,ev.get("/business/public/".concat(t))]).then(t=>{let n=qe(t,2),r=n[0],a=n[1];e||(s(r),u(a.data))}).catch(()=>!e&&h(!0)),()=>{e=!0}},[t,n]),d?(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center","data-testid":"cs-not-found",children:(0,Te.jsxs)("div",{className:"text-center max-w-md px-6",children:[(0,Te.jsx)("h1",{className:"font-display text-3xl font-semibold mb-3",children:"Story not found"}),(0,Te.jsx)(cr,{to:"/business/public/".concat(t),className:"u-btn u-btn-ghost mt-4 inline-flex",children:"\u2190 Back to business"})]})}):a&&l?(0,Te.jsxs)("div",{className:"min-h-screen bg-grain","data-testid":"case-study-page",children:[(0,Te.jsx)(nv,{businessName:l.name,audience:l.audience}),(0,Te.jsxs)("article",{className:"max-w-[820px] mx-auto px-6 lg:px-10 py-14 lg:py-20",children:[(0,Te.jsxs)(cr,{to:"/business/public/".concat(t),className:"inline-flex items-center gap-2 text-sm text-[color:var(--u-muted)] hover:text-[color:var(--u-ink)] mb-8","data-testid":"cs-back-link",children:[(0,Te.jsx)(xg,{size:15})," Back to ",l.name]}),(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,Te.jsx)("span",{className:"inline-flex items-center px-2.5 py-1 rounded-full text-[11px] font-medium",style:{background:"var(--u-violet-soft)",color:"var(--u-violet-2)"},children:a.tag}),(0,Te.jsxs)("span",{className:"text-xs text-[color:var(--u-muted)] inline-flex items-center gap-1.5",children:[(0,Te.jsx)(zv,{size:12})," ",a.read_time]})]}),(0,Te.jsx)("h1",{className:"font-display text-4xl lg:text-5xl font-semibold leading-[1.05] tracking-tight","data-testid":"cs-title",children:a.title}),(0,Te.jsx)("p",{className:"mt-5 text-lg text-[color:var(--u-muted)] leading-relaxed",children:a.excerpt}),(0,Te.jsxs)("div",{className:"mt-8 flex items-center justify-between border-y border-[color:var(--u-line)] py-4",children:[(0,Te.jsx)("div",{className:"text-sm",children:"content"===a.kind?(0,Te.jsxs)("div",{className:"flex flex-wrap gap-4 text-[12px] font-mono uppercase tracking-[0.12em] text-[color:var(--u-muted)]",children:[(0,Te.jsxs)("span",{children:[a.review_count," review signals"]}),(0,Te.jsxs)("span",{children:[a.source_count," research sources"]}),a.updated_at&&(0,Te.jsxs)("span",{children:["Updated ",Wv(a.updated_at)]})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("span",{className:"text-[color:var(--u-muted)]",children:"Featured customer \xb7 "}),(0,Te.jsx)("span",{className:"font-medium",children:a.hero_quote_author})]})}),(0,Te.jsxs)("button",{className:"u-btn u-btn-ghost text-sm","data-testid":"cs-share-btn",children:[(0,Te.jsx)(ov,{size:14})," Share"]})]}),(0,Te.jsx)("div",{className:"prose-uplaud mt-10",dangerouslySetInnerHTML:{__html:a.body_html},"data-testid":"cs-body"}),"content"!==a.kind&&(0,Te.jsxs)("div",{className:"mt-14 rounded-2xl p-8 relative overflow-hidden",style:{background:"linear-gradient(135deg, #EEE9FF 0%, #DFF7EE 100%)"},children:[(0,Te.jsxs)("p",{className:"font-serif-italic text-2xl leading-snug text-[color:var(--u-ink)] max-w-lg",children:["\u201c",a.hero_quote,"\u201d"]}),(0,Te.jsxs)("p",{className:"mt-3 text-sm text-[color:var(--u-ink-2)]",children:["\u2014 ",a.hero_quote_author]})]}),(0,Te.jsxs)("div",{className:"mt-12 flex flex-wrap items-center justify-between gap-4 border-t border-[color:var(--u-line)] pt-8",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("p",{className:"text-xs uppercase tracking-[0.14em] text-[color:var(--u-muted)] mb-1",children:"Explore"}),(0,Te.jsxs)("p",{className:"font-display text-xl font-semibold",children:["More stories from ",l.name]})]}),(0,Te.jsxs)(cr,{to:"/business/public/".concat(t,"#stories"),className:"u-btn u-btn-dark","data-testid":"cs-more-stories",children:["Browse all stories ",(0,Te.jsx)(Qr,{size:16})]})]})]}),(0,Te.jsx)(Av,{})]}):(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center text-[color:var(--u-muted)]",children:"Loading\u2026"})}function qv(e){const t=(e||"").replace(/<[^>]+>
2/g," ").trim().split(/\s+/).filter(Boolean).length;return"".concat(Math.max(1,Math.ceil(t/220))," min read")}function Wv(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}const Hv=Kr("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]),Vv=Kr("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);function Gv(e){if(!e)return"";try{return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch(t){return e}}function $v(e){let t=e.label,n=e.value,r=e.suffix,a=e.accent,s=e.starColor,i=e.testid;return(0,Te.jsxs)("div",{className:"flex flex-col","data-testid":i,children:[(0,Te.jsx)("span",{className:"text-[10px] uppercase tracking-[0.15em] text-[color:var(--u-muted)] font-mono",children:t}),(0,Te.jsxs)("span",{className:"font-display text-2xl md:text-3xl font-semibold tabular-nums leading-tight",children:[(0,Te.jsx)("span",{className:a?"text-[color:var(--u-violet)]":"",children:n}),r&&(0,Te.jsx)("span",{className:"ml-0.5 text-sm font-medium ".concat(s?"text-[color:var(--u-star)]":"text-[color:var(--u-muted)]"),children:r})]})]})}function Kv(e,t){const n=(e||"").trim();if(!n)return"";if(/^https?:\/\//i.test(n))return n;const r=n.replace(/^@/,"");return"instagram"===t?"https://instagram.com/".concat(r):"linkedin"===t?n.includes("linkedin.com")?"https://".concat(n):"https://linkedin.com/in/".concat(r):n}function Qv(){const e=rn(),t=e.slug,n=e.reviewerSlug,r=qe((0,i.useState)(null),2),a=r[0],s=r[1],o=qe((0,i.useState)(!1),2),l=o[0],u=o[1];if((0,i.useEffect)(()=>{let e=!1;return u(!1),s(null),ev.get("/business/public/reviewer/".concat(n)).then(t=>{let n=t.data;e||s(n)}).catch(()=>{e||u(!0)}),()=>{e=!0}},[n]),l)return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center","data-testid":"reviewer-not-found",children:(0,Te.jsxs)("div",{className:"text-center max-w-md px-6",children:[(0,Te.jsx)("h1",{className:"font-display text-3xl font-semibold mb-3",children:"Reviewer not found"}),(0,Te.jsxs)("p",{className:"text-[color:var(--u-muted)]",children:["No reviews found for ",(0,Te.jsx)("span",{className:"font-mono",children:n}),"."]}),(0,Te.jsx)(cr,{to:"/",className:"u-btn u-btn-dark mt-5 inline-flex",children:"Back to Uplaud"})]})});if(!a)return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center","data-testid":"reviewer-loading",children:(0,Te.jsx)("div",{className:"font-display text-lg text-[color:var(--u-muted)] animate-pulse",children:"Loading..."})});const c=a.business||{},d=a.reviewer||{},h=a.stats||{},f=a.reviews||[],p=a.businesses_reviewed||[],m=p.find(e=>e.slug===t)||p[0],x=p.slice(0,6),g=Math.max(p.length-x.length,0),v=(d.name||"?").split(" ").slice(0,2).map(e=>e[0]).join("").toUpperCase(),b=(d.name||"this reviewer").split(" ")[0],y=[d.title,d.company].filter(Boolean).join(", "),D=Kv(d.instagram_url,"instagram"),w=Kv(d.linkedin_url,"linkedin");return(0,Te.jsxs)("div",{className:"min-h-screen bg-grain","data-testid":"reviewer-profile-page",children:[(0,Te.jsx)(nv,{businessName:c.name,audience:c.audience,slug:c.slug||t}),(0,Te.jsxs)("main",{className:"max-w-[1080px] mx-auto px-6 lg:px-10 py-10 lg:py-14",children:[(0,Te.jsxs)(cr,{to:m?"/business/public/".concat(m.slug):"/","data-testid":"reviewer-back-link",className:"inline-flex items-center gap-2 text-sm text-[color:var(--u-muted)] hover:text-[color:var(--u-ink)] transition mb-6 group",children:[(0,Te.jsx)(xg,{size:15,className:"transition group-hover:-translate-x-0.5"})," Back to ",(null===m||void 0===m?void 0:m.name)||"Uplaud"]}),(0,Te.jsxs)("section",{className:"relative rounded-[28px] overflow-hidden reveal","data-testid":"reviewer-header",children:[(0,Te.jsx)("div",{className:"relative h-14 md:h-16",
2style:{background:"linear-gradient(135deg, #0B0B10 0%, #1A1A22 40%, #2E245C 100%)"},children:(0,Te.jsx)("div",{className:"absolute inset-0 opacity-30 bg-[radial-gradient(circle_at_78%_8%,rgba(124,232,200,0.35),transparent_34%)]"})}),(0,Te.jsxs)("div",{className:"bg-white px-6 lg:px-9 pt-8 pb-7 relative",children:[(0,Te.jsxs)("div",{className:"flex flex-col md:flex-row gap-5 md:items-center",children:[(0,Te.jsx)("div",{className:"w-24 h-24 rounded-3xl flex items-center justify-center text-white font-display text-3xl font-bold shrink-0",style:{background:"linear-gradient(135deg, #5B3EEE, #7CE8C8)",border:"4px solid white",boxShadow:"0 18px 40px -14px rgba(11,11,16,0.4)"},"data-testid":"reviewer-avatar",children:v}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0 pt-1",children:[(0,Te.jsx)("h1",{className:"font-display text-2xl lg:text-[2rem] font-semibold tracking-tight leading-tight","data-testid":"reviewer-name",children:d.name}),(0,Te.jsx)("p",{className:"text-sm text-[color:var(--u-ink-2)] mt-0.5","data-testid":"reviewer-status",children:y||"Verified Uplaud reviewer"})]})]}),d.bio&&(0,Te.jsx)("p",{className:"mt-5 text-[15px] text-[color:var(--u-ink-2)] leading-relaxed max-w-2xl","data-testid":"reviewer-bio",children:d.bio}),(D||w)&&(0,Te.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-4","data-testid":"reviewer-social-links",children:[D&&(0,Te.jsxs)("a",{href:D,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-medium text-[color:var(--u-ink-2)] hover:text-[color:var(--u-violet)] transition","data-testid":"reviewer-instagram-link",children:[(0,Te.jsx)(Hv,{size:14})," Instagram"]}),w&&(0,Te.jsxs)("a",{href:w,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-medium text-[color:var(--u-ink-2)] hover:text-[color:var(--u-violet)] transition","data-testid":"reviewer-linkedin-link",children:[(0,Te.jsx)(Vv,{size:14})," LinkedIn"]})]}),(0,Te.jsxs)("div",{className:"mt-6 flex flex-wrap items-center gap-x-8 gap-y-3 border-t border-[color:var(--u-line)] pt-5","data-testid":"reviewer-metrics",children:[(0,Te.jsx)($v,{label:"Reviews written",value:h.total_reviews||0,accent:!0,testid:"reviewer-metric-total"}),(0,Te.jsx)($v,{label:"Avg rating given",value:(h.avg_rating||0).toFixed(1),suffix:"\u2605",starColor:!0,testid:"reviewer-metric-avg-rating"}),(0,Te.jsx)($v,{label:"Referred reviews",value:h.total_referrals||0,testid:"reviewer-metric-referrals"}),d.member_since&&(0,Te.jsx)($v,{label:"Member since",value:Gv(d.member_since),testid:"reviewer-metric-since"})]})]})]}),p.length>0&&(0,Te.jsxs)("section",{className:"mt-12","data-testid":"reviewer-businesses",children:[(0,Te.jsxs)("span",{className:"u-pill",children:[(0,Te.jsx)("span",{className:"u-pill-dot"})," 01 \xb7 trusted by"]}),(0,Te.jsxs)("h2",{className:"font-display text-2xl lg:text-3xl font-semibold tracking-tight mt-3 mb-6 leading-[1.05]",children:["Where ",(0,Te.jsx)("span",{className:"font-serif-italic",children:b})," shows up."]}),(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[x.map((e,t)=>(0,Te.jsxs)(cr,{to:"/business/public/".concat(e.slug),"data-testid":"reviewer-business-chip-".concat(e.slug),className:"u-card p-4 flex items-center gap-3 reveal group",style:{animationDelay:"".concat(.06*t,"s")},children:[(0,Te.jsx)("div",{className:"w-11 h-11 rounded-xl flex items-center justify-center text-white text-sm font-bold shrink-0",style:{background:"linear-gradient(135deg, #0B0B10 0%, #2A2545 45%, #5B3EEE 100%)"},children:(e.name||"?").split(" ").slice(0,2).map(e=>e[0]).join("").toUpperCase()}),(0,Te.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Te.jsx)("div",{className:"font-medium text-sm truncate",children:e.name}),(0,Te.jsx)("div",{className:"text-[11px] text-[color:var(--u-muted)] truncate",children:e.category})]}),(0,Te.jsx)(Qr,{size:16,className:"text-[color:var(--u-muted)] transition group-hover:translate-x-0.5 group-hover:-translate-y-0.5 group-hover:text-[color:var(--u-violet)] shrink-0"})]},e.slug)),g>0&&(0,Te.jsxs)("div",{className:"u-card p-4 flex items-center gap-3 reveal","data-testid":"reviewer-business-more",children:[(0,Te.jsxs)("div",{className:"w-11 h-11 rounded-xl flex items-center justify-center text-white text-sm font-bold shrink-0",style:{background:"linear-gradient(135deg, #0B0B10 0%, #2A2545 45%, #5B3EEE 100%)"},children:["+",g]}),(0,Te.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Te.jsx)("div",{className:"font-medium text-sm",children:"more"}),(0,Te.jsx)("div",{className:"text-[11px] text-[color:var(--u-muted)]",children:"Verified businesses"})]})]})]})]}),(0,Te.jsxs)("section",{className:"mt-14",children:[(0,Te.jsxs)("span",{className:"u-pill",children:[(0,Te.jsx)("span",{className:"u-pill-dot"})," 02 \xb7 the receipts"]}),(0,Te.jsxs)("h2",{className:"font-display text-2xl lg:text-3xl font-semibold tracking-tight mt-3 mb-6 leading-[1.05]",children:["Every word, ",(0,Te.jsx)("span",{className:"font-serif-italic",children:"on record."})]}),0===f.length?(0,Te.jsxs)("div",{className:"u-card p-12 text-center",children:[(0,Te.jsx)(wv,{className:"mx-auto mb-3 text-[color:var(--u-muted)]",size:28}),(0,Te.jsx)("p",{className:"text-[color:var(--u-ink-2)] font-medium",children:"No reviews yet."})]}):(0,Te.jsx)("div",{className:"grid gap-5 ".concat(f.length>1?"md:grid-cols-2":"max-w-xl"),"data-testid":"reviewer-reviews-list",children:f.map((e,t)=>(0,Te.jsx)(mv,{review:e,businessName:e.business_name||c.name,audience:c.audience,delay:.05*t,showBusinessTag:f.length>1,reviewerProfile:!0},e.id))})]})]}),(0,Te.jsx)(Av,{})]})}const Yv=Kr("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);
2class Jv extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FunctionsError",n=arguments.length>2?arguments[2]:void 0;super(e),this.name=t,this.context=n}}class Xv extends Jv{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Zv extends Jv{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class eb extends Jv{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var tb=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(tN){s(tN)}}function o(e){try{l(r.throw(e))}catch(tN){s(tN)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};class nb{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.headers,a=void 0===r?{}:r,s=t.customFetch;this.url=e,this.headers=a,this.fetch=(e=>{let t;return t=e||("undefined"===typeof fetch?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Promise.resolve().then(n.bind(n,630)).then(e=>(0,e.default)(...t))}:fetch),function(){return t(...arguments)}})(s)}setAuth(e){this.headers.Authorization="Bearer ".concat(e)}invoke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;return tb(this,void 0,void 0,function*(){try{const r=t.headers,a=t.method,s=t.body;let i,o={};s&&(r&&!Object.prototype.hasOwnProperty.call(r,"Content-Type")||!r)&&("undefined"!==typeof Blob&&s instanceof Blob||s instanceof ArrayBuffer?(o["Content-Type"]="application/octet-stream",i=s):"string"===typeof s?(o["Content-Type"]="text/plain",i=s):"undefined"!==typeof FormData&&s instanceof FormData?i=s:(o["Content-Type"]="application/json",i=JSON.stringify(s)));const l=yield this.fetch("".concat(this.url,"/").concat(e),{method:a||"POST",headers:Object.assign(Object.assign(Object.assign({},o),this.headers),r),body:i}).catch(e=>{throw new Xv(e)}),u=l.headers.get("x-relay-error");if(u&&"true"===u)throw new Zv(l);if(!l.ok)throw new eb(l);let c,d=(null!==(n=l.headers.get("Content-Type"))&&void 0!==n?n:"text/plain").split(";")[0].trim();return c="application/json"===d?yield l.json():"application/octet-stream"===d?yield l.blob():"multipart/form-data"===d?yield l.formData():yield l.text(),{data:c,error:null}}catch(r){return{data:null,error:r}}})}}var rb=n(630);class ab extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
2de=e.code}}class sb{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle,e.fetch?this.fetch=e.fetch:"undefined"===typeof fetch?this.fetch=rb.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(e,t){void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),"GET"!==this.method&&"HEAD"!==this.method&&(this.headers["Content-Type"]="application/json");let n=(0,this.fetch)(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async e=>{var t,n,r;let a=null,s=null,i=null,o=e.status,l=e.statusText;if(e.ok){if("HEAD"!==this.method){const t=await e.text();""===t||(s="text/csv"===this.headers.Accept||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?t:JSON.parse(t))}const r=null===(t=this.headers.Prefer)||void 0===t?void 0:t.match(/count=(exact|planned|estimated)/),u=null===(n=e.headers.get("content-range"))||void 0===n?void 0:n.split("/");r&&u&&u.length>1&&(i=parseInt(u[1])),this.isMaybeSingle&&"GET"===this.method&&Array.isArray(s)&&(s.length>1?(a={code:"PGRST116",details:"Results contain ".concat(s.length," rows, application/vnd.pgrst.object+json requires 1 row"),hint:null,message:"JSON object requested, multiple (or no) rows returned"},s=null,i=null,o=406,l="Not Acceptable"):s=1===s.length?s[0]:null)}else{const t=await e.text();try{a=JSON.parse(t),Array.isArray(a)&&404===e.status&&(s=[],a=null,o=200,l="OK")}catch(u){404===e.status&&""===t?(o=204,l="No Content"):a={message:t}}if(a&&this.isMaybeSingle&&(null===(r=null===a||void 0===a?void 0:a.details)||void 0===r?void 0:r.includes("0 rows"))&&(a=null,o=200,l="OK"),a&&this.shouldThrowOnError)throw new ab(a)}return{error:a,data:s,count:i,status:o,statusText:l}});return this.shouldThrowOnError||(n=n.catch(e=>{var t,n,r;return{error:{message:"".concat(null!==(t=null===e||void 0===e?void 0:e.name)&&void 0!==t?t:"FetchError",": ").concat(null===e||void 0===e?void 0:e.message),details:"".concat(null!==(n=null===e||void 0===e?void 0:e.stack)&&void 0!==n?n:""),hint:"",code:"".concat(null!==(r=null===e||void 0===e?void 0:e.code)&&void 0!==r?r:"")},data:null,count:null,status:0,statusText:""}})),n.then(e,t)}}class ib extends sb{select(e){let t=!1;const n=(null!==e&&void 0!==e?e:"*").split("").map(e=>/\s/.test(e)&&!t?"":('"'===e&&(t=!t),e)).join("");return this.url.searchParams.set("select",n),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ascending,r=void 0===n||n,a=t.nullsFirst,s=t.foreignTable,i=t.referencedTable,o=void 0===i?s:i;const l=o?"".concat(o,".order"):"order",u=this.url.searchParams.get(l);return this.url.searchParams.set(l,"".concat(u?"".concat(u,","):"").concat(e,".").concat(r?"asc":"desc").concat(void 0===a?"":a?".nullsfirst":".nullslast")),this}limit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.foreignTable,r=t.referencedTable,a=void 0===r?n:r;const s="undefined"===typeof a?"limit":"".concat(a,".limit");return this.url.searchParams.set(s,"".concat(e)),this}range(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.foreignTable,a=n.referencedTable,s=void 0===a?r:a;const i="undefined"===typeof s?"offset":"".concat(s,".offset"),o="undefined"===typeof s?"limit":"".concat(s,".limit");return this.url.searchParams.set(i,"".concat(e)),this.url.searchParams.set(o,"".concat(t-e+1)),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return"GET"===this.method?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.analyze,n=void 0!==t&&t,r=e.verbose,a=void 0!==r&&r,s=e.settings,i=void 0!==s&&s,o=e.buffers,l=void 0!==o&&o,u=e.wal,c=void 0!==u&&u,d=e.format,h=void 0===d?"text":d;var f;const p=[n?"analyze":null,a?"verbose":null,i?"settings":null,l?"buffers":null,c?"wal":null].filter(
2Boolean).join("|"),m=null!==(f=this.headers.Accept)&&void 0!==f?f:"application/json";return this.headers.Accept="application/vnd.pgrst.plan+".concat(h,'; for="').concat(m,'"; options=').concat(p,";"),this}rollback(){var e;return(null!==(e=this.headers.Prefer)&&void 0!==e?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}class ob extends ib{eq(e,t){return this.url.searchParams.append(e,"eq.".concat(t)),this}neq(e,t){return this.url.searchParams.append(e,"neq.".concat(t)),this}gt(e,t){return this.url.searchParams.append(e,"gt.".concat(t)),this}gte(e,t){return this.url.searchParams.append(e,"gte.".concat(t)),this}lt(e,t){return this.url.searchParams.append(e,"lt.".concat(t)),this}lte(e,t){return this.url.searchParams.append(e,"lte.".concat(t)),this}like(e,t){return this.url.searchParams.append(e,"like.".concat(t)),this}likeAllOf(e,t){return this.url.searchParams.append(e,"like(all).{".concat(t.join(","),"}")),this}likeAnyOf(e,t){return this.url.searchParams.append(e,"like(any).{".concat(t.join(","),"}")),this}ilike(e,t){return this.url.searchParams.append(e,"ilike.".concat(t)),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,"ilike(all).{".concat(t.join(","),"}")),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,"ilike(any).{".concat(t.join(","),"}")),this}is(e,t){return this.url.searchParams.append(e,"is.".concat(t)),this}in(e,t){const n=t.map(e=>"string"===typeof e&&new RegExp("[,()]").test(e)?'"'.concat(e,'"'):"".concat(e)).join(",");return this.url.searchParams.append(e,"in.(".concat(n,")")),this}contains(e,t){return"string"===typeof t?this.url.searchParams.append(e,"cs.".concat(t)):Array.isArray(t)?this.url.searchParams.append(e,"cs.{".concat(t.join(","),"}")):this.url.searchParams.append(e,"cs.".concat(JSON.stringify(t))),this}containedBy(e,t){return"string"===typeof t?this.url.searchParams.append(e,"cd.".concat(t)):Array.isArray(t)?this.url.searchParams.append(e,"cd.{".concat(t.join(","),"}")):this.url.searchParams.append(e,"cd.".concat(JSON.stringify(t))),this}rangeGt(e,t){return this.url.searchParams.append(e,"sr.".concat(t)),this}rangeGte(e,t){return this.url.searchParams.append(e,"nxl.".concat(t)),this}rangeLt(e,t){return this.url.searchParams.append(e,"sl.".concat(t)),this}rangeLte(e,t){return this.url.searchParams.append(e,"nxr.".concat(t)),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,"adj.".concat(t)),this}overlaps(e,t){return"string"===typeof t?this.url.searchParams.append(e,"ov.".concat(t)):this.url.searchParams.append(e,"ov.{".concat(t.join(","),"}")),this}textSearch(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.config,a=n.type,s="";"plain"===a?s="pl":"phrase"===a?s="ph":"websearch"===a&&(s="w");const i=void 0===r?"":"(".concat(r,")");return this.url.searchParams.append(e,"".concat(s,"fts").concat(i,".").concat(t)),this}match(e){return Object.entries(e).forEach(e=>{let t=qe(e,2),n=t[0],r=t[1];this.url.searchParams.append(n,"eq.".concat(r))}),this}not(e,t,n){return this.url.searchParams.append(e,"not.".concat(t,".").concat(n)),this}or(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.foreignTable,r=t.referencedTable,a=void 0===r?n:r;const s=a?"".concat(a,".or"):"or";return this.url.searchParams.append(s,"(".concat(e,")")),this}filter(e,t,n){return this.url.searchParams.append(e,"".concat(t,".").concat(n)),this}}class lb{constructor(e,t){let n=t.headers,r=void 0===n?{}:n,a=t.schema,s=t.fetch;this.url=e,this.headers=r,this.schema=a,this.fetch=s}select(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.head,r=void 0!==n&&n,a=t.count;const s=r?"HEAD":"GET";let i=!1;const o=(null!==e&&void 0!==e?e:"*").split("").map(e=>/\s/.test(e)&&!i?"":('"'===e&&(i=!i),e)).join("");return this.url.searchParams.set("select",o),a&&(this.headers.Prefer="count=".concat(a)),new ob({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.count,r=t.defaultToNull,a=void 0===r||r;const s=[];if(this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push("count=".concat(n)),a||s.push("missing=default"),this.headers.Prefer=s.join(","),Array.isArray(e)){const t=e.reduce((e,t)=>
2e.concat(Object.keys(t)),[]);if(t.length>0){const e=[...new Set(t)].map(e=>'"'.concat(e,'"'));this.url.searchParams.set("columns",e.join(","))}}return new ob({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onConflict,r=t.ignoreDuplicates,a=void 0!==r&&r,s=t.count,i=t.defaultToNull,o=void 0===i||i;const l=["resolution=".concat(a?"ignore":"merge","-duplicates")];if(void 0!==n&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&l.push(this.headers.Prefer),s&&l.push("count=".concat(s)),o||l.push("missing=default"),this.headers.Prefer=l.join(","),Array.isArray(e)){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){const e=[...new Set(t)].map(e=>'"'.concat(e,'"'));this.url.searchParams.set("columns",e.join(","))}}return new ob({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).count;const n=[];return this.headers.Prefer&&n.push(this.headers.Prefer),t&&n.push("count=".concat(t)),this.headers.Prefer=n.join(","),new ob({method:"PATCH",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).count;const t=[];return e&&t.push("count=".concat(e)),this.headers.Prefer&&t.unshift(this.headers.Prefer),this.headers.Prefer=t.join(","),new ob({method:"DELETE",url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}const ub={"X-Client-Info":"postgrest-js/".concat("1.9.2")};class cb{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.headers,r=void 0===n?{}:n,a=t.schema,s=t.fetch;this.url=e,this.headers=Object.assign(Object.assign({},ub),r),this.schemaName=a,this.fetch=s}from(e){const t=new URL("".concat(this.url,"/").concat(e));return new lb(t,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new cb(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.head,s=void 0!==a&&a,i=r.count;const o=new URL("".concat(this.url,"/rpc/").concat(e));let l;s?(t="HEAD",Object.entries(n).forEach(e=>{let t=qe(e,2),n=t[0],r=t[1];o.searchParams.append(n,"".concat(r))})):(t="POST",l=n);const u=Object.assign({},this.headers);return i&&(u.Prefer="count=".concat(i)),new ob({method:t,url:o,headers:u,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}}const db={"X-Client-Info":"realtime-js/".concat("2.9.3")};var hb,fb,pb,mb,xb,gb,vb;!function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"}(hb||(hb={})),function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"}(fb||(fb={})),function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"}(pb||(pb={})),function(e){e.websocket="websocket"}(mb||(mb={})),function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"}(xb||(xb={}));class bb{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=t}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}class yb{constructor(){this.HEADER_LENGTH=1}decode(e,t){return e.constructor===ArrayBuffer?t(this._binaryDecode(e)):t("string"===typeof e?JSON.parse(e):{})}_binaryDecode(e){const t=new DataView(e),n=new TextDecoder;return this._decodeBroadcast(e,t,n)}_decodeBroadcast(e,t,n){const r=t.getUint8(1),a=t.getUint8(2);let s=this.HEADER_LENGTH+2;const i=n.decode(e.slice(s,s+r));s+=r;const o=n.decode(e.slice(s,s+a));s+=a;return{ref:null,topic:i,event:o,payload:JSON.parse(n.decode(e.slice(s,e.byteLength)))}}}class Db{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e4;this.channel=e,this.event=t,this.payload=n,this.timeout=r,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHo
2oks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,t){var n;return this._hasReceived(e)&&t(null===(n=this.receivedResp)||void 0===n?void 0:n.response),this.recHooks.push({status:e,callback:t}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);this.channel._on(this.refEvent,{},e=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=e,this._matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,t){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:t})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive(e){let t=e.status,n=e.response;this.recHooks.filter(e=>e.status===t).forEach(e=>e.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}!function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"}(gb||(gb={}));class wb{constructor(e,t){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(null===t||void 0===t?void 0:t.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},e=>{const t=this.caller,n=t.onJoin,r=t.onLeave,a=t.onSync;this.joinRef=this.channel._joinRef(),this.state=wb.syncState(this.state,e,n,r),this.pendingDiffs.forEach(e=>{this.state=wb.syncDiff(this.state,e,n,r)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},e=>{const t=this.caller,n=t.onJoin,r=t.onLeave,a=t.onSync;this.inPendingSyncState()?this.pendingDiffs.push(e):(this.state=wb.syncDiff(this.state,e,n,r),a())}),this.onJoin((e,t,n)=>{this.channel._trigger("presence",{event:"join",key:e,currentPresences:t,newPresences:n})}),this.onLeave((e,t,n)=>{this.channel._trigger("presence",{event:"leave",key:e,currentPresences:t,leftPresences:n})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,t,n,r){const a=this.cloneDeep(e),s=this.transformState(t),i={},o={};return this.map(a,(e,t)=>{s[e]||(o[e]=t)}),this.map(s,(e,t)=>{const n=a[e];if(n){const r=t.map(e=>e.presence_ref),a=n.map(e=>e.presence_ref),s=t.filter(e=>a.indexOf(e.presence_ref)<0),l=n.filter(e=>r.indexOf(e.presence_ref)<0);s.length>0&&(i[e]=s),l.length>0&&(o[e]=l)}else i[e]=t}),this.syncDiff(a,{joins:i,leaves:o},n,r)}static syncDiff(e,t,n,r){const a={joins:this.transformState(t.joins),leaves:this.transformState(t.leaves)},s=a.joins,i=a.leaves;return n||(n=()=>{}),r||(r=()=>{}),this.map(s,(t,r)=>{var a;const s=null!==(a=e[t])&&void 0!==a?a:[];if(e[t]=this.cloneDeep(r),s.length>0){const n=e[t].map(e=>e.presence_ref),r=s.filter(e=>n.indexOf(e.presence_ref)<0);e[t].unshift(...r)}n(t,s,r)}),this.map(i,(t,n)=>{let a=e[t];if(!a)return;const s=n.map(e=>e.presence_ref);a=a.filter(e=>s.indexOf(e.presence_ref)<0),e[t]=a,r(t,a,n),0===a.length&&delete e[t]}),e}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((t,n)=>{const r=e[n];return t[n]="metas"in r?r.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e)):r,t},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}!function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"}(vb||(vb={}));const kb=function(e,t){var n;const r=null!==(n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipTypes)&&void 0!==n?n:[];return Object.keys(t).reduce((n,a)=>(n[a]=jb(a,e,t,r),n),{})},jb=(e,t,n,r)=>{const a=t.find(t=>t.name===e),s=null===a||void 0===a?void 0:a.type,i=n[e];return s&&!r.includes(s)?Cb(s,i):Eb(i)},Cb=(e,t)=>
2{if("_"===e.charAt(0)){const n=e.slice(1,e.length);return Sb(t,n)}switch(e){case vb.bool:return Fb(t);case vb.float4:case vb.float8:case vb.int2:case vb.int4:case vb.int8:case vb.numeric:case vb.oid:return Nb(t);case vb.json:case vb.jsonb:return Ab(t);case vb.timestamp:return _b(t);case vb.abstime:case vb.date:case vb.daterange:case vb.int4range:case vb.int8range:case vb.money:case vb.reltime:case vb.text:case vb.time:case vb.timestamptz:case vb.timetz:case vb.tsrange:case vb.tstzrange:default:return Eb(t)}},Eb=e=>e,Fb=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},Nb=e=>{if("string"===typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},Ab=e=>{if("string"===typeof e)try{return JSON.parse(e)}catch(t){return console.log("JSON parse error: ".concat(t)),e}return e},Sb=(e,t)=>{if("string"!==typeof e)return e;const n=e.length-1,r=e[n];if("{"===e[0]&&"}"===r){let r;const s=e.slice(1,n);try{r=JSON.parse("["+s+"]")}catch(a){r=s?s.split(","):[]}return r.map(e=>Cb(t,e))}return e},_b=e=>"string"===typeof e?e.replace(" ","T"):e;var Bb,Tb,Rb;!function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"}(Bb||(Bb={})),function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes"}(Tb||(Tb={})),function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"}(Rb||(Rb={}));class Pb{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{config:{}},n=arguments.length>2?arguments[2]:void 0;this.topic=e,this.params=t,this.socket=n,this.bindings={},this.state=fb.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""}},t.config),this.timeout=this.socket.timeout,this.joinPush=new Db(this,pb.join,this.params,this.timeout),this.rejoinTimer=new bb(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=fb.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel","close ".concat(this.topic," ").concat(this._joinRef())),this.state=fb.closed,this.socket._remove(this)}),this._onError(e=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel","error ".concat(this.topic),e),this.state=fb.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel","timeout ".concat(this.topic),this.joinPush.timeout),this.state=fb.errored,this.rejoinTimer.scheduleTimeout())}),this._on(pb.reply,{},(e,t)=>{this._trigger(this._replyEventName(t),e)}),this.presence=new wb(this),this.broadcastEndpointURL=this._broadcastEndpointURL()}subscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.timeout;var n,r;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const a=this.params.config,s=a.broadcast,i=a.presence;this._onError(t=>e&&e("CHANNEL_ERROR",t)),this._onClose(()=>e&&e("CLOSED"));const o={},l={broadcast:s,presence:i,postgres_changes:null!==(r=null===(n=this.bindings.postgres_changes)||void 0===n?void 0:n.map(e=>e.filter))&&void 0!==r?r:[]};this.socket.accessToken&&(o.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:l},o)),this.joinedOnce=!0,this._rejoin(t),this.joinPush.receive("ok",t=>{let n=t.postgres_changes;var r;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),void 0!==n){const t=this.bindings.postgres_changes,a=null!==(r=null===t||void 0===t?void 0:t.length)&&void 0!==r?r:0,s=[];for(let r=0;r<a;r++){const a=t[r],i=a.filter,o=i.event,l=i.schema,u=i.table,c=i.filter,d=n&&n[r];if(!d||d.event!==o||d.schema!==l||d.table!==u||d.filter!==c)return this.unsubscribe(),void(e&&e("CHANNEL_ERROR",new Error("mismatch between server and client bindings for postgres changes")));s.push(Object.assign(Object.assign({},a),{id:d.id}))}return this.bindings.postgres_changes=s,void(e&&e("SUBSCRIBED"))}e&&e("SUBSCRIBED")}).receive("error",t=>{e&&e("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(t).join(", ")||"error")))}).receive("timeout",()=>{e&&e("TIMED_OUT")})}return this}presenceState(){return this.presence.state}async track(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await this.send({type:"presence",event:"track",payload:e},t.timeout||this.timeout)}async untrack(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return await this.send({type:"presence",event:"untrack"},e)}on(e,t,n){return this._on(e,t,n)}async send(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;if(this._canPush()||"broadcast"!==e.type)return new Promise(n=>{var r,a,s;const i=this._push(e.type,e,t.timeout||this.timeout);"broadcast"!==e.type||(null===(s=null===(a=null===(r=this.params)||void 0===r?void 0:r.config)||void 0===a?void 0:a.broadcast)||void 0===s?void 0:s.ack)||n("ok"),i.receive("ok",()=>n("ok")),i.receive("timeout",()=>n("timed out"))});{const s=e.event,i=e.payload,o={method:"POST",headers:{apikey:null!==(n=this.socket.apiKey)&&void 0!==n?n:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:i}]})};try{return(await this._fetchWithTimeout(this.broadcastEndpointURL,o,null!==(r=t.timeout)&&void 0!==r?r:this.timeout)).ok?"ok":"error"}catch(a){return"AbortError"===a.name?"timed out":"error"}}}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.state=fb.leaving;const t=()=>{this.socket.log("channel","leave ".concat(this.topic)),this._trigger(pb.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(n=>{const r=new Db(this,pb.leave,{},e);r.receive("ok",()=>{t(),n("ok")}).receive("timeout",()=>{t(),n("timed out")}).receive("error",()=>{n("error")}),r.send(),this._canPush()||r.trigger("ok",{})})}_broadcastEndpointURL(){let e=this.socket.endPoint;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")+"/api/broadcast"}async _fetchWithTimeout(e,t,n){const r=new AbortController,a=setTimeout(()=>r.abort(),n),s=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:r.signal}));return clearTimeout(a),s}_push(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.timeout;if(!this.joinedOnce)throw"tried to push '".concat(e,"' to '").concat(this.topic,"' before joining. Use channel.subscribe() before pushing events");let r=new Db(this,e,t,n);return this._canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}_onMessage(e,t,n){return t}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,t,n){var r,a;const s=e.toLocaleLowerCase(),i=pb.close,o=pb.error,l=pb.leave,u=pb.join;if(n&&[i,o,l,u].indexOf(s)>=0&&n!==this._joinRef())return;let c=this._onMessage(s,t,n);if(t&&!c)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(s)?null===(r=this.bindings.postgres_changes)||void 0===r||r.filter(e=>{var t,n,r;return"*"===(null===(t=e.filter)||void 0===t?void 0:t.event)||(null===(r=null===(n=e.filter)||void 0===n?void 0:n.event)||void 0===r?void 0:r.toLocaleLowerCase())===s}).map(e=>e.callback(c,n)):null===(a=this.bindings[s])||void 0===a||a.filter(e=>{var n,r,a,i,o,l;if(["broadcast","presence","postgres_changes"].includes(s)){if("id"in e){const s=e.id,i=null===(n=e.filter)||void 0===n?void 0:n.event;return s&&(null===(r=t.ids)||void 0===r?void 0:r.includes(s))&&("*"===i||(null===i||void 0===i?void 0:i.toLocaleLowerCase())===(null===(a=t.data)||void 0===a?void 0:a.type.toLocaleLowerCase()))}{const n=null===(o=null===(i=null===e||void 0===e?void 0:e.filter)||void 0===i?void 0:i.event)||void 0===o?void 0:o.toLocaleLowerCase();return"*"===n||n===(null===(l=null===t||void 0===t?void 0:t.event)||void 0===l?void 0:l.toLocaleLowerCase())}}return e.type.toLocaleLowerCase()===s}).map(e=>{if("object"===typeof c&&"ids"in c){const e=c.data,t={schema:e.schema,table:e.table,commit_timestamp:e.commit_timestamp,eventType:e.type,new:{},old:{},errors:e.errors};c=Object.assign(Object.assign({},t),this._getPayloadRecords(e))}e.callback(c,n)})}_isClosed(){return this.state===fb.closed}_isJoined(){return this.state===fb.joined}_isJoining(){return this.state===fb.joining}_isLeaving(){return this.state===fb.leaving}_replyEventName(e){return"chan_reply_".concat(e)}_on(e,t,n){const r=e.toLocaleLowerCase(),a={type:r,filter:t,callback:n};return this.bindings[r]?this.bindings[r].push(a):this.bindings[r]=[a],this}_off(e,t){const n=e.toLocaleLowerCase();return this.bindings[n]=this.bindings[n].filter(e=>{var r;return!((null===(r=e.type)||void 0===r?void 0:r.toLocaleLowerCase())===n&&Pb.isEqual(e.filter,t))}),this}static isEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(pb.close,{},e)}_onError(e){this._on(pb.error,{},t=>e(t))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=fb.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const t={new:{},old:{}};return"INSERT"!==e.type&&"UPDATE"!==e.type||(t.new=kb(e.columns,e.record)),"UPDATE"!==e.type&&"DELET
2E"!==e.type||(t.old=kb(e.columns,e.old_record)),t}}const Ob=()=>{},Lb="undefined"!==typeof WebSocket;class Ib{constructor(e,t){var r;this.accessToken=null,this.apiKey=null,this.channels=[],this.endPoint="",this.headers=db,this.params={},this.timeout=1e4,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=Ob,this.conn=null,this.sendBuffer=[],this.serializer=new yb,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this._resolveFetch=e=>{let t;return t=e||("undefined"===typeof fetch?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Promise.resolve().then(n.bind(n,630)).then(e=>(0,e.default)(...t))}:fetch),function(){return t(...arguments)}},this.endPoint="".concat(e,"/").concat(mb.websocket),(null===t||void 0===t?void 0:t.transport)?this.transport=t.transport:this.transport=null,(null===t||void 0===t?void 0:t.params)&&(this.params=t.params),(null===t||void 0===t?void 0:t.headers)&&(this.headers=Object.assign(Object.assign({},this.headers),t.headers)),(null===t||void 0===t?void 0:t.timeout)&&(this.timeout=t.timeout),(null===t||void 0===t?void 0:t.logger)&&(this.logger=t.logger),(null===t||void 0===t?void 0:t.heartbeatIntervalMs)&&(this.heartbeatIntervalMs=t.heartbeatIntervalMs);const a=null===(r=null===t||void 0===t?void 0:t.params)||void 0===r?void 0:r.apikey;a&&(this.accessToken=a,this.apiKey=a),this.reconnectAfterMs=(null===t||void 0===t?void 0:t.reconnectAfterMs)?t.reconnectAfterMs:e=>[1e3,2e3,5e3,1e4][e-1]||1e4,this.encode=(null===t||void 0===t?void 0:t.encode)?t.encode:(e,t)=>t(JSON.stringify(e)),this.decode=(null===t||void 0===t?void 0:t.decode)?t.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new bb(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(null===t||void 0===t?void 0:t.fetch)}connect(){if(!this.conn)if(this.transport)this.conn=new this.transport(this._endPointURL(),void 0,{headers:this.headers});else{if(Lb)return this.conn=new WebSocket(this._endPointURL()),void this.setupConnection();this.conn=new Mb(this._endPointURL(),void 0,{close:()=>{this.conn=null}}),n.e(198).then(n.t.bind(n,198,23)).then(e=>{let t=e.default;this.conn=new t(this._endPointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}disconnect(e,t){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,null!==t&&void 0!==t?t:""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(e){const t=await e.unsubscribe();return 0===this.channels.length&&this.disconnect(),t}async removeAllChannels(){const e=await Promise.all(this.channels.map(e=>e.unsubscribe()));return this.disconnect(),e}log(e,t,n){this.logger(e,t,n)}connectionState(){switch(this.conn&&this.conn.readyState){case hb.connecting:return xb.Connecting;case hb.open:return xb.Open;case hb.closing:return xb.Closing;default:return xb.Closed}}isConnected(){return this.connectionState()===xb.Open}channel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{config:{}};const n=new Pb("realtime:".concat(e),t,this);return this.channels.push(n),n}push(e){const t=e.topic,n=e.event,r=e.payload,a=e.ref,s=()=>{this.encode(e,e=>{var t;null===(t=this.conn)||void 0===t||t.send(e)})};this.log("push","".concat(t," ").concat(n," (").concat(a,")"),r),this.isConnected()?s():this.sendBuffer.push(s)}setAuth(e){this.accessToken=e,this.channels.forEach(t=>{e&&t.updateJoinPayload({access_token:e}),t.joinedOnce&&t._isJoined()&&t._push(pb.access_token,{access_token:e})})}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t._isJoined()||t._isJoining()));t&&(this.log("transport",'leaving duplicate topic "'.concat(e,'"')),t.unsubscribe())}_remove(e){this.channels=this.channels.filter(t=>t._joinRef()!==e._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>
2this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:"1.0.0"}))}_onConnMessage(e){this.decode(e.data,e=>{let t=e.topic,n=e.event,r=e.payload,a=e.ref;(a&&a===this.pendingHeartbeatRef||n===(null===r||void 0===r?void 0:r.type))&&(this.pendingHeartbeatRef=null),this.log("receive","".concat(r.status||""," ").concat(t," ").concat(n," ").concat(a&&"("+a+")"||""),r),this.channels.filter(e=>e._isMember(t)).forEach(e=>e._trigger(n,r,a)),this.stateChangeCallbacks.message.forEach(t=>t(e))})}_onConnOpen(){this.log("transport","connected to ".concat(this._endPointURL())),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(e=>e())}_onConnClose(e){this.log("transport","close",e),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(t=>t(e))}_onConnError(e){this.log("transport",e.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(t=>t(e))}_triggerChanError(){this.channels.forEach(e=>e._trigger(pb.error))}_appendParams(e,t){if(0===Object.keys(t).length)return e;const n=e.match(/\?/)?"&":"?",r=new URLSearchParams(t);return"".concat(e).concat(n).concat(r)}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_sendHeartbeat(){var e;if(this.isConnected()){if(this.pendingHeartbeatRef)return this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),void(null===(e=this.conn)||void 0===e||e.close(1e3,"hearbeat timeout"));this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}}class Mb{constructor(e,t,n){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=hb.connecting,this.send=()=>{},this.url=null,this.url=e,this.close=n.close}}class zb extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function Ub(e){return"object"===typeof e&&null!==e&&"__isStorageError"in e}class qb extends zb{constructor(e,t){super(e),this.name="StorageApiError",this.status=t}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Wb extends zb{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}}var Hb=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(tN){s(tN)}}function o(e){try{l(r.throw(e))}catch(tN){s(tN)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};const Vb=e=>{let t;return t=e||("undefined"===typeof fetch?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Promise.resolve().then(n.bind(n,630)).then(e=>(0,e.default)(...t))}:fetch),function(){return t(...arguments)}};var Gb=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(tN){s(tN)}}function o(e){try{l(r.throw(e))}catch(tN){s(tN)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};const $b=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Kb=(e,t)=>Gb(void 0,void 0,void 0,function*(){const r=yield Hb(void 0,void 0,void 0,function*(){return"undefined"===typeof Response?(yield Promise.resolve().then(n.bind(n,630))).Response:Response});e instanceof r?e.json().then(n=>{t(new qb($b(n),e.status||500))}).catch(e=>{t(new Wb($b(e),e))}):t(new Wb($b(e),e))});function Qb(e,t,n,r,a,s){return Gb(this,void 0,void 0,function*(){return new Promise((i,o)=>{e(n,((e,t,n,r)=>{const a={method:e,headers:(null===t||void 0===t?void 0:t.headers)||{}};return"GET"===e?a:(a.headers=Object.assign({"Content-Type":"application/json"},null===t||void 0===t?void 0:t.headers),a.body=JSON.stringify(r),Object.assign(Object.assign({},a),n))})(t,r,a,s)).then(e=>{if(!e.ok)throw e;return(null===r||void 0===r?void 0:r.noResolveJson)?e:e.json()}).then(e=>i(e)).catch(e=>Kb(e,o))})})}function Yb(e,t,n,r){return Gb(this,void 0,void 0,function*(){return Qb(e,"GET",t,n,r)})}function Jb(e,t,n,r,a){return Gb(this,void 0,void 0,function*(){return Qb(e,"POST",t,r,a,n)})}function Xb(e,t,n,r,a){return Gb(this,void 0,void 0,function*(){return Qb(e,"DELETE",t,r,a,n)})}
2var Zb=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(tN){s(tN)}}function o(e){try{l(r.throw(e))}catch(tN){s(tN)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};const ey={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},ty={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class ny{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;this.url=e,this.headers=t,this.bucketId=n,this.fetch=Vb(r)}uploadOrUpdate(e,t,n,r){return Zb(this,void 0,void 0,function*(){try{let a;const s=Object.assign(Object.assign({},ty),r),i=Object.assign(Object.assign({},this.headers),"POST"===e&&{"x-upsert":String(s.upsert)});"undefined"!==typeof Blob&&n instanceof Blob?(a=new FormData,a.append("cacheControl",s.cacheControl),a.append("",n)):"undefined"!==typeof FormData&&n instanceof FormData?(a=n,a.append("cacheControl",s.cacheControl)):(a=n,i["cache-control"]="max-age=".concat(s.cacheControl),i["content-type"]=s.contentType);const o=this._removeEmptyFolders(t),l=this._getFinalPath(o),u=yield this.fetch("".concat(this.url,"/object/").concat(l),Object.assign({method:e,body:a,headers:i},(null===s||void 0===s?void 0:s.duplex)?{duplex:s.duplex}:{})),c=yield u.json();if(u.ok)return{data:{path:o,id:c.Id,fullPath:c.Key},error:null};return{data:null,error:c}}catch(a){if(Ub(a))return{data:null,error:a};throw a}})}upload(e,t,n){return Zb(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,t,n)})}uploadToSignedUrl(e,t,n,r){return Zb(this,void 0,void 0,function*(){const a=this._removeEmptyFolders(e),s=this._getFinalPath(a),i=new URL(this.url+"/object/upload/sign/".concat(s));i.searchParams.set("token",t);try{let e;const t=Object.assign({upsert:ty.upsert},r),s=Object.assign(Object.assign({},this.headers),{"x-upsert":String(t.upsert)});"undefined"!==typeof Blob&&n instanceof Blob?(e=new FormData,e.append("cacheControl",t.cacheControl),e.append("",n)):"undefined"!==typeof FormData&&n instanceof FormData?(e=n,e.append("cacheControl",t.cacheControl)):(e=n,s["cache-control"]="max-age=".concat(t.cacheControl),s["content-type"]=t.contentType);const o=yield this.fetch(i.toString(),{method:"PUT",body:e,headers:s}),l=yield o.json();if(o.ok)return{data:{path:a,fullPath:l.Key},error:null};return{data:null,error:l}}catch(o){if(Ub(o))return{data:null,error:o};throw o}})}createSignedUploadUrl(e){return Zb(this,void 0,void 0,function*(){try{let t=this._getFinalPath(e);const n=yield Jb(this.fetch,"".concat(this.url,"/object/upload/sign/").concat(t),{},{headers:this.headers}),r=new URL(this.url+n.url),a=r.searchParams.get("token");if(!a)throw new zb("No token returned by API");return{data:{signedUrl:r.toString(),path:e,token:a},error:null}}catch(t){if(Ub(t))return{data:null,error:t};throw t}})}update(e,t,n){return Zb(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,t,n)})}move(e,t){return Zb(this,void 0,void 0,function*(){try{return{data:yield Jb(this.fetch,"".concat(this.url,"/object/move"),{bucketId:this.bucketId,sourceKey:e,destinationKey:t},{headers:this.headers}),error:null}}catch(n){if(Ub(n))return{data:null,error:n};throw n}})}copy(e,t){return Zb(this,void 0,void 0,function*(){try{return{data:{path:(yield Jb(this.fetch,"".concat(this.url,"/object/copy"),{bucketId:this.bucketId,sourceKey:e,destinationKey:t},{headers:this.headers})).Key},error:null}}catch(n){if(Ub(n))return{data:null,error:n};throw n}})}createSignedUrl(e,t,n){return Zb(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e),a=yield Jb(this.fetch,"".concat(this.url,"/object/sign/").concat(r),Object.assign({expiresIn:t},(null===n||void 0===n?void 0:n.transform)?{transform:n.transform}:{}),{headers:this.headers});const s=(null===n||void 0===n?void 0:n.download)?"&download=".concat(!0===n.download?"":n.download):"";return a={signedUrl:encodeURI("".concat(this.url).concat(a.signedURL).concat(s))},{data:a,error:null}}catch(r){if(Ub(r))return{data:null,error:r};throw r}})}
2createSignedUrls(e,t,n){return Zb(this,void 0,void 0,function*(){try{const r=yield Jb(this.fetch,"".concat(this.url,"/object/sign/").concat(this.bucketId),{expiresIn:t,paths:e},{headers:this.headers}),a=(null===n||void 0===n?void 0:n.download)?"&download=".concat(!0===n.download?"":n.download):"";return{data:r.map(e=>Object.assign(Object.assign({},e),{signedUrl:e.signedURL?encodeURI("".concat(this.url).concat(e.signedURL).concat(a)):null})),error:null}}catch(r){if(Ub(r))return{data:null,error:r};throw r}})}download(e,t){return Zb(this,void 0,void 0,function*(){const n="undefined"!==typeof(null===t||void 0===t?void 0:t.transform)?"render/image/authenticated":"object",r=this.transformOptsToQueryString((null===t||void 0===t?void 0:t.transform)||{}),a=r?"?".concat(r):"";try{const t=this._getFinalPath(e),r=yield Yb(this.fetch,"".concat(this.url,"/").concat(n,"/").concat(t).concat(a),{headers:this.headers,noResolveJson:!0});return{data:yield r.blob(),error:null}}catch(s){if(Ub(s))return{data:null,error:s};throw s}})}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],a=(null===t||void 0===t?void 0:t.download)?"download=".concat(!0===t.download?"":t.download):"";""!==a&&r.push(a);const s="undefined"!==typeof(null===t||void 0===t?void 0:t.transform)?"render/image":"object",i=this.transformOptsToQueryString((null===t||void 0===t?void 0:t.transform)||{});""!==i&&r.push(i);let o=r.join("&");return""!==o&&(o="?".concat(o)),{data:{publicUrl:encodeURI("".concat(this.url,"/").concat(s,"/public/").concat(n).concat(o))}}}remove(e){return Zb(this,void 0,void 0,function*(){try{return{data:yield Xb(this.fetch,"".concat(this.url,"/object/").concat(this.bucketId),{prefixes:e},{headers:this.headers}),error:null}}catch(t){if(Ub(t))return{data:null,error:t};throw t}})}list(e,t,n){return Zb(this,void 0,void 0,function*(){try{const r=Object.assign(Object.assign(Object.assign({},ey),t),{prefix:e||""});return{data:yield Jb(this.fetch,"".concat(this.url,"/object/list/").concat(this.bucketId),r,{headers:this.headers},n),error:null}}catch(r){if(Ub(r))return{data:null,error:r};throw r}})}_getFinalPath(e){return"".concat(this.bucketId,"/").concat(e)}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push("width=".concat(e.width)),e.height&&t.push("height=".concat(e.height)),e.resize&&t.push("resize=".concat(e.resize)),e.format&&t.push("format=".concat(e.format)),e.quality&&t.push("quality=".concat(e.quality)),t.join("&")}}const ry={"X-Client-Info":"storage-js/".concat("2.5.5")};var ay=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(tN){s(tN)}}function o(e){try{l(r.throw(e))}catch(tN){s(tN)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};class sy{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;this.url=e,this.headers=Object.assign(Object.assign({},ry),t),this.fetch=Vb(n)}listBuckets(){return ay(this,void 0,void 0,function*(){try{return{data:yield Yb(this.fetch,"".concat(this.url,"/bucket"),{headers:this.headers}),error:null}}catch(e){if(Ub(e))return{data:null,error:e};throw e}})}getBucket(e){return ay(this,void 0,void 0,function*(){try{return{data:yield Yb(this.fetch,"".concat(this.url,"/bucket/").concat(e),{headers:this.headers}),error:null}}catch(t){if(Ub(t))return{data:null,error:t};throw t}})}createBucket(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{public:!1};return ay(this,void 0,void 0,function*(){try{return{data:yield Jb(this.fetch,"".concat(this.url,"/bucket"),{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(Ub(n))return{data:null,error:n};throw n}})}updateBucket(e,t){return ay(this,void 0,void 0,function*(){try{const n=yield function(e,t,n,r,a){return Gb(this,void 0,void 0,function*(){return Qb(e,"PUT",t,r,a,n)})}(this.fetch,"".concat(this.url,"/bucket/").concat(e),{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers});return{data:n,error:null}}catch(n){if(Ub(n))return{data:null,error:n};throw n}})}emptyBucket(e){return ay(this,void 0,void 0,function*(){try{return{data:yield Jb(this.fetch,"".concat(this.url,"/bucket/").concat(e,"/empty"),{},{headers:this.headers}),error:null}}catch(t){if(Ub(t))return{data:null,error:t};throw t}})}deleteBucket(e){return ay(this,void 0,void 0,function*(){try{return{data:yield Xb(this.fetch,"".concat(this.url,"/bucket/").concat(e),{},{headers:this.headers}),error:null}}catch(t){if(Ub(t))return{data:null,error:t};throw t}})}}class iy extends sy{constructor(e){super(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2?arguments[2]:void 0)}from(e){return new ny(this.url,this.headers,e,this.fetch)}}let oy="";oy="undefined"!==typeof Deno?"deno":"undefined"!==typeof document?"web":"undefined"!==typeof navigator&&"ReactNative"===navigator.product?"react-native":"node";const ly={headers:{"X-Client-Info":"supabase-js-".concat(oy,"/").concat("2.39.8")}},uy={schema:"public"},cy={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},dy={};
2var hy=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(tN){s(tN)}}function o(e){try{l(r.throw(e))}catch(tN){s(tN)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};const fy=e=>{let t;return t=e||("undefined"===typeof fetch?rb.default:fetch),function(){return t(...arguments)}},py=(e,t,n)=>{const r=fy(n),a="undefined"===typeof Headers?rb.Headers:Headers;return(n,s)=>hy(void 0,void 0,void 0,function*(){var i;const o=null!==(i=yield t())&&void 0!==i?i:e;let l=new a(null===s||void 0===s?void 0:s.headers);return l.has("apikey")||l.set("apikey",e),l.has("Authorization")||l.set("Authorization","Bearer ".concat(o)),r(n,Object.assign(Object.assign({},s),{headers:l}))})};const my=()=>"undefined"!==typeof document,xy={tested:!1,writable:!1},gy=()=>{if(!my())return!1;try{if("object"!==typeof globalThis.localStorage)return!1}catch(tN){return!1}if(xy.tested)return xy.writable;const e="lswt-".concat(Math.random()).concat(Math.random());try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),xy.tested=!0,xy.writable=!0}catch(tN){xy.tested=!0,xy.writable=!1}return xy.writable};function vy(e){const t={},n=new URL(e);if(n.hash&&"#"===n.hash[0])try{new URLSearchParams(n.hash.substring(1)).forEach((e,n)=>{t[n]=e})}catch(tN){}return n.searchParams.forEach((e,n)=>{t[n]=e}),t}const by=e=>{let t;return t=e||("undefined"===typeof fetch?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Promise.resolve().then(n.bind(n,630)).then(e=>(0,e.default)(...t))}:fetch),function(){return t(...arguments)}},yy=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Dy=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch(r){return n}},wy=async(e,t)=>{await e.removeItem(t)};class ky{constructor(){this.promise=new ky.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}}function jy(e){const t=e.split(".");if(3!==t.length)throw new Error("JWT is not valid: not a JWT structure");if(!/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i.test(t[1]))throw new Error("JWT is not valid: payload is not in base64url format");const n=t[1];return JSON.parse(function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n,r,a,s,i,o,l,u="",c=0;for(e=e.replace("-","+").replace("_","/");c<e.length;)s=t.indexOf(e.charAt(c++)),i=t.indexOf(e.charAt(c++)),o=t.indexOf(e.charAt(c++)),l=t.indexOf(e.charAt(c++)),n=s<<2|i>>4,r=(15&i)<<4|o>>2,a=(3&o)<<6|l,u+=String.fromCharCode(n),64!=o&&0!=r&&(u+=String.fromCharCode(r)),64!=l&&0!=a&&(u+=String.fromCharCode(a));return u}(n))}function Cy(e){return("0"+e.toString(16)).substr(-2)}function Ey(){const e=new Uint32Array(56);if("undefined"===typeof crypto){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=e.length;let n="";for(let r=0;r<56;r++)n+=e.charAt(Math.floor(Math.random()*t));return n}return crypto.getRandomValues(e),Array.from(e,Cy).join("")}async function Fy(e){if(!("undefined"!==typeof crypto&&"undefined"!==typeof crypto.subtle&&"undefined"!==typeof TextEncoder))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const t=await async function(e){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),r=new Uint8Array(n);return Array.from(r).map(e=>String.fromCharCode(e)).join("")}(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}ky.promiseConstructor=Promise;class Ny extends Error{constructor(e,t){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=t}}function Ay(e){return"object"===typeof e&&null!==e&&"__isAuthError"in e}class Sy extends Ny{constructor(e,t){super(e,t),this.name="AuthApiError",this.status=t}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class _y extends Ny{constructor(e,t){super(e),this.name="AuthUnknownError",this.originalError=t}}class By extends Ny{constructor(e,t,n){super(e),this.name=t,this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Ty extends By{constructor(){super("Auth session missing!","AuthSessionMissingError",400)}}class Ry extends By{constructor(){super("Auth session or user missing","AuthInvalidToken
2ResponseError",500)}}class Py extends By{constructor(e){super(e,"AuthInvalidCredentialsError",400)}}class Oy extends By{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,"AuthImplicitGrantRedirectError",500),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Ly extends By{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,"AuthPKCEGrantCodeExchangeError",500),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Iy extends By{constructor(e,t){super(e,"AuthRetryableFetchError",t)}}function My(e){return Ay(e)&&"AuthRetryableFetchError"===e.name}class zy extends By{constructor(e,t,n){super(e,"AuthWeakPasswordError",t),this.reasons=n}}var Uy=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};const qy=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Wy=[502,503,504];async function Hy(e){if(!("object"===typeof(t=e)&&null!==t&&"status"in t&&"ok"in t&&"json"in t&&"function"===typeof t.json))throw new Iy(qy(e),0);var t;if(Wy.includes(e.status))throw new Iy(qy(e),e.status);let n;try{n=await e.json()}catch(tN){throw new _y(qy(tN),tN)}if("object"===typeof n&&n&&"object"===typeof n.weak_password&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((e,t)=>e&&"string"===typeof t,!0))throw new zy(qy(n),e.status,n.weak_password.reasons);throw new Sy(qy(n),e.status||500)}async function Vy(e,t,n,r){var a;const s=Object.assign({},null===r||void 0===r?void 0:r.headers);(null===r||void 0===r?void 0:r.jwt)&&(s.Authorization="Bearer ".concat(r.jwt));const i=null!==(a=null===r||void 0===r?void 0:r.query)&&void 0!==a?a:{};(null===r||void 0===r?void 0:r.redirectTo)&&(i.redirect_to=r.redirectTo);const o=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await async function(e,t,n,r,a,s){const i=((e,t,n,r)=>{const a={method:e,headers:(null===t||void 0===t?void 0:t.headers)||{}};return"GET"===e?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},null===t||void 0===t?void 0:t.headers),a.body=JSON.stringify(r),Object.assign(Object.assign({},a),n))})(t,r,a,s);let o;try{o=await e(n,i)}catch(tN){throw console.error(tN),new Iy(qy(tN),0)}o.ok||await Hy(o);if(null===r||void 0===r?void 0:r.noResolveJson)return o;try{return await o.json()}catch(tN){await Hy(tN)}}(e,t,n+o,{headers:s,noResolveJson:null===r||void 0===r?void 0:r.noResolveJson},{},null===r||void 0===r?void 0:r.body);return(null===r||void 0===r?void 0:r.xform)?null===r||void 0===r?void 0:r.xform(l):{data:Object.assign({},l),error:null}}function Gy(e){var t;let n=null;var r;(function(e){return e.access_token&&e.refresh_token&&e.expires_in})(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=(r=e.expires_in,Math.round(Date.now()/1e3)+r)));return{data:{session:n,user:null!==(t=e.user)&&void 0!==t?t:e},error:null}}function $y(e){const t=Gy(e);return!t.error&&e.weak_password&&"object"===typeof e.weak_password&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&"string"===typeof e.weak_password.message&&e.weak_password.reasons.reduce((e,t)=>e&&"string"===typeof t,!0)&&(t.data.weak_password=e.weak_password),t}function Ky(e){var t;return{data:{user:null!==(t=e.user)&&void 0!==t?t:e},error:null}}function Qy(e){return{data:e,error:null}}function Yy(e){const t=e.action_link,n=e.email_otp,r=e.hashed_token,a=e.redirect_to,s=e.verification_type,i=Uy(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]);return{data:{properties:{action_link:t,email_otp:n,hashed_token:r,redirect_to:a,verification_type:s},user:Object.assign({},i)},error:null}}function Jy(e){return e}var Xy=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};class Zy{constructor(e){let t=e.url,n=void 0===t?"":t,r=e.headers,a=void 0===r?{}:r,s=e.fetch;this.url=n,this.headers=a,this.fetch=by(s),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";try{return await Vy(this.fetch,"POST","".concat(this.url,"/logout?scope=").concat(t),{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Ay(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return await Vy(this.fetch,"POST","".concat(this.url,"/invite"),{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:Ky})}catch(n){if(Ay(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const t=e.options,n=Xy(e,["options"]),r=Object.assign(Object.assign({},n),t);return"newEmail"in n&&(r.new_email=null===n||void 0===n?void 0:n.newEmail,delete r.newEmail),await Vy(this.fetch,"POST","".concat(this.url,"/admin/generate_link"),{body:r,headers:this.headers,xform:Yy,redirectTo:null===t||void 0===t?void 0:t.redirectTo})}catch(t){if(Ay(t))return{data:{properties:null,user:null},error:t};throw t}}async createUser(e){try{return await Vy(this.fetch,"POST","".concat(this.url,"/admin/users"),{body:e,headers:this.headers,xform:Ky})}catch(t){if(Ay(t))return{data:{user:null},error:t};throw t}}async listUsers(e){var t,n,r,a,s,i,o;try{const l={nextPage:null,lastPage:0,total:0},u=await Vy(this.fetch,"GET","".concat(this.url,"/admin/users"),{headers:this.headers,noResolveJson:!0,query:{page:null!==(n=null===(t=null===e||void 0===e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==n?n:"",per_page:null!==(a=null===(r=null===e||void 0===e?void 0:e.perPage)||void 0===r?void 0:r.toString())&&void 0!==a?a:""},xform:Jy});if(u.error)throw u.error;const c=await u.json(),d=null!==(s=u.headers.get("x-total-count"))&&void 0!==s?s:0,h=null!==(o=null===(i=u.headers.get("link"))||void 0===i?void 0:i.split(","))&&void 0!==o?o:[];return h.length>
20&&(h.forEach(e=>{const t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),n=JSON.parse(e.split(";")[1].split("=")[1]);l["".concat(n,"Page")]=t}),l.total=parseInt(d)),{data:Object.assign(Object.assign({},c),l),error:null}}catch(l){if(Ay(l))return{data:{users:[]},error:l};throw l}}async getUserById(e){try{return await Vy(this.fetch,"GET","".concat(this.url,"/admin/users/").concat(e),{headers:this.headers,xform:Ky})}catch(t){if(Ay(t))return{data:{user:null},error:t};throw t}}async updateUserById(e,t){try{return await Vy(this.fetch,"PUT","".concat(this.url,"/admin/users/").concat(e),{body:t,headers:this.headers,xform:Ky})}catch(n){if(Ay(n))return{data:{user:null},error:n};throw n}}async deleteUser(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{return await Vy(this.fetch,"DELETE","".concat(this.url,"/admin/users/").concat(e),{headers:this.headers,body:{should_soft_delete:t},xform:Ky})}catch(n){if(Ay(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){try{const t=await Vy(this.fetch,"GET","".concat(this.url,"/admin/users/").concat(e.userId,"/factors"),{headers:this.headers,xform:e=>({data:{factors:e},error:null})}),n=t.data;return{data:n,error:t.error}}catch(t){if(Ay(t))return{data:null,error:t};throw t}}async _deleteFactor(e){try{return{data:await Vy(this.fetch,"DELETE","".concat(this.url,"/admin/users/").concat(e.userId,"/factors/").concat(e.id),{headers:this.headers}),error:null}}catch(t){if(Ay(t))return{data:null,error:t};throw t}}}const eD={"X-Client-Info":"gotrue-js/".concat("0.0.0")},tD={getItem:e=>gy()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{gy()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{gy()&&globalThis.localStorage.removeItem(e)}};function nD(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const rD=!!(globalThis&&gy()&&globalThis.localStorage&&"true"===globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug"));class aD extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class sD extends aD{}async function iD(e,t,n){rD&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),rD&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await globalThis.navigator.locks.request(e,0===t?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async r=>{if(!r){if(0===t)throw rD&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new sD('Acquiring an exclusive Navigator LockManager lock "'.concat(e,'" immediately failed'));if(rD)try{const e=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(e,null,"  "))}catch(tN){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",tN)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}rD&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,r.name);try{return await n()}finally{rD&&console.log("@supabase/gotrue-js: navigatorLock: released",e,r.name)}})}!function(){if("object"!==typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(tN){"undefined"!==typeof self&&(self.globalThis=self)}}();const oD={url:"http://localhost:9999",storageKey:"supabase.auth.token",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:eD,flowType:"implicit",debug:!1},lD=3e4;async function uD(e,t,n){return await n()}class cD{constructor(e){var t,n;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=cD.nextInstanceID,cD.nextInstanceID+=1,this.instanceID>0&&my()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const r=Object.assign(Object.assign({},oD),e);if(this.logDebugMessages=!!r.debug,"function"===typeof r.debug&&(this.logger=r.debug),this.persistSession=r.persistSession,this.storageKey=r.storageKey,this.autoRefreshToken=r.autoRefreshToken,this.admin=new Zy({url:r.url,headers:r.headers,fetch:r.fetch}),this.url=r.url,this.headers=r.headers,this.fetch=by(r.fetch),this.lock=r.lock||uD,this.detectSessionInUrl=r.detectSessionInUrl,this.flowType=r.flowType,r.lock?this.lock=r.lock:my()&&(null===(t=null===globalThis||void 0===globalThis?void 0:globalThis.navigator)||void 0===t?void 0:t.locks)?this.lock=iD:this.lock=uD,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?r.storage?this.storage=r.storage:gy()?this.storage=tD:(this.memoryStorage={},this.storage=nD(this.memoryStorage)):(this.memoryStorage={},this.storage=nD(this.memoryStorage)),my()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(tN){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",tN)}null===(n=this.broadcastChannel)||void 0===n||n.addEventListener("message",async e=>{this._debug("received broadcast notification from other tab or client",e),await this._notifyAllSubscribers(e.data.event,e.data.session,!1)})}this.initialize()}_debug(){if(this.logDebugMessages){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.logger("GoTrueClient@".concat(this.instanceID," (").concat("0.0.0",") ").concat((new Date).toISOString()),...t)}return this}async initialize(){return this.initializePromise||(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))()),await this.initializePromise}async _initialize(){try{const e=!!my()&&await this._isPKCEFlow();if(this._debug("#_initialize()","begin","is PKCE flow",e),e||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const t=await this._getSessionFromURL(e),n=t.data,r=t.error;if(r)return this._debug("#_initialize()","error detecting session from URL",r),"Identity is already linked"===(null===r||void 0===r?void 0:r.message)||"Identity is already linked to another user"===(null===r||void 0===r?void 0:r.message)||await this._removeSession(),{error:r};const a=n.session,s=n.redirectType;return this._debug("#_initialize()","detected session in URL",a,"redirect type",s),await this._saveSession(a),setTimeout(async()=>{"recovery"===s?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(e){return Ay(e)?{error:e}:{error:new _y("Unexpected error during initialization",e)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signUp(e){var t,n,r;try{let a;if(await this._removeSession(),"email"in e){const n=e.email,r=e.password,s=e.options;let i=null,o=null;if("pkce"===this.flowType){const e=Ey();await yy(this.storage,"".concat(this.storageKey,"-code-verifier"),e),i=await Fy(e),o=e===i?"plain":"s256"}a=await Vy(this.fetch,"POST","".concat(this.url,"/signup"),{headers:this.headers,redirectTo:null===s||void 0===s?void 0:s.emailRedirectTo,body:{email:n,password:r,data:null!==(t=null===s||void 0===s?void 0:s.data)&&void 0!==t?t:{},gotrue_meta_security:{captcha_token:null===s||void 0===s?void 0:s.captchaToken},code_challenge:i,code_challenge_method:o},xform:Gy})}else{if(!("phone"in e))throw new Py("You must provide either an email or phone number and a password");{const t=e.phone,s=e.password,i=e.options;a=await Vy(this.fetch,"POST","".concat(this.url,"/signup"),{headers:this.headers,body:{phone:t,password:s,data:null!==(n=null===i||void 0===i?void 0:i.data)&&void 0!==n?n:{},channel:null!==(r=null===i||void 0===i?void 0:i.channel)&&void 0!==r?r:"sms",gotrue_meta_security:{captcha_token:null===i||void 0===i?void 0:i.captchaToken}},xform:Gy})}}const s=a,i=s.data,o=s.error;if(o||!i)return{data:{user:null,session:null},error:o};const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(a){if(Ay(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithPassword(e){try{let t;if(await this._removeSession(),"email"in e){const n=e.email,r=e.password,a=e.options;t=await Vy(this.fetch,"POST","".concat(this.url,"/token?grant_type=password"),{headers:this.headers,body:{email:n,password:r,gotrue_meta_security:{captcha_token:null===a||void 0===a?void 0:a.captchaToken}},xform:$y})}else{if(!("phone"in e))throw new Py("You must provide either an email or phone number and a password");{const n=e.phone,r=e.password,a=e.options;t=await Vy(this.fetch,"POST","".concat(this.url,"/token?grant_type=password"),{headers:this.headers,body:{phone:n,password:r,gotrue_meta_security:{captcha_token:null===a||void 0===a?void 0:a.captchaToken}},xform:$y})}}const n=t,r=n.data,a=n.error;return a?{data:{user:null,session:null},error:a}:r&&r.session&&r.user?(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:a}):{data:{user:null,session:null},error:new Ry}}catch(t){if(Ay(t))return{data:{user:null,session:null},error:t};throw t}}async signInWithOAuth(e){var t,n,r,a;return await this._removeSession(),await this._handleProviderSignIn(e.provider,{redirectTo:null===(t=e.options)||void 0===t?void 0:t.redirectTo,scopes:null===(n=e.options)||void 0===n?void 0:n.scopes,queryParams:null===(r=e.options)||void 0===r?void 0:r.queryParams,skipBrowserRedirect:null===(a=e.options)||void 0===a?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async _exchangeCodeForSession(e){const t=await Dy(this.storage,"".concat(this.storageKey,"-code-verifier")),n=qe((null!==t&&void 0!==t?t:"").split("/"),2),r=n[0],a=n[1],s=await Vy(this.fetch,"POST","".concat(this.url,"/token?grant_type=pkce"),{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:Gy}),i=s.data,o=s.error;return await wy(this.storage,"".concat(this.storageKey,"-code-verifier")),o?{data:{user:null,session:null,redirectType:null},error:o}:i&&i.session&&i.user?(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:null!==a&&void 0!==a?a:null}),error:o}):{data:{user:null,session:null,redirectType:null},error:new Ry}}async signInWithIdToken(e){await this._removeSession();try{const t=e.options,n=e.provider,r=e.token,a=e.access_token,s=e.nonce,i=await Vy(this.fetch,"POST","".concat(this.url,"/token?grant_type=id_token"),{headers:this.headers,body:{provider:n,id_token:r,access_token:a,nonce:s,gotrue_meta_security:{captcha_token:null===t||void 0===t?void 0:t.captchaToken}},xform:Gy}),o=i.data,l=i.error;return l?{data:{user:null,session:null},error:l}:o&&o.session&&o.user?(o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:o,error:l}):{data:{user:null,session:null},error:new Ry}}catch(t){if(Ay(t))return{data:{user:null,session:null},error:t};throw t}}async signInWithOtp(e){var t,n,r,a,s;try{if(await this._removeSession(),"email"in e){const r=e.email,a=e.options;let s=null,i=null;if("pkce"===this.flowType){const e=Ey();await yy(this.storage,"".concat(this.storageKey,"-code-verifier"),e),s=await Fy(e),i=e===s?"plain":"s256"}const o=await Vy(this.fetch,"POST","".concat(this.url,"/otp"),{headers:this.headers,body:{email:r,data:null!==(t=null===a||void 0===a?void 0:a.data)&&void 0!==t?t:{}
2,create_user:null===(n=null===a||void 0===a?void 0:a.shouldCreateUser)||void 0===n||n,gotrue_meta_security:{captcha_token:null===a||void 0===a?void 0:a.captchaToken},code_challenge:s,code_challenge_method:i},redirectTo:null===a||void 0===a?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:o.error}}if("phone"in e){const t=e.phone,n=e.options,i=await Vy(this.fetch,"POST","".concat(this.url,"/otp"),{headers:this.headers,body:{phone:t,data:null!==(r=null===n||void 0===n?void 0:n.data)&&void 0!==r?r:{},create_user:null===(a=null===n||void 0===n?void 0:n.shouldCreateUser)||void 0===a||a,gotrue_meta_security:{captcha_token:null===n||void 0===n?void 0:n.captchaToken},channel:null!==(s=null===n||void 0===n?void 0:n.channel)&&void 0!==s?s:"sms"}}),o=i.data,l=i.error;return{data:{user:null,session:null,messageId:null===o||void 0===o?void 0:o.message_id},error:l}}throw new Py("You must provide either an email or phone number.")}catch(i){if(Ay(i))return{data:{user:null,session:null},error:i};throw i}}async verifyOtp(e){var t,n;try{let r,a;"email_change"!==e.type&&"phone_change"!==e.type&&await this._removeSession(),"options"in e&&(r=null===(t=e.options)||void 0===t?void 0:t.redirectTo,a=null===(n=e.options)||void 0===n?void 0:n.captchaToken);const s=await Vy(this.fetch,"POST","".concat(this.url,"/verify"),{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:a}}),redirectTo:r,xform:Gy}),i=s.data,o=s.error;if(o)throw o;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,u=i.user;return(null===l||void 0===l?void 0:l.access_token)&&(await this._saveSession(l),await this._notifyAllSubscribers("recovery"==e.type?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(r){if(Ay(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithSSO(e){var t,n,r;try{await this._removeSession();let a=null,s=null;if("pkce"===this.flowType){const e=Ey();await yy(this.storage,"".concat(this.storageKey,"-code-verifier"),e),a=await Fy(e),s=e===a?"plain":"s256"}return await Vy(this.fetch,"POST","".concat(this.url,"/sso"),{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:null!==(n=null===(t=e.options)||void 0===t?void 0:t.redirectTo)&&void 0!==n?n:void 0}),(null===(r=null===e||void 0===e?void 0:e.options)||void 0===r?void 0:r.captchaToken)?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:s}),headers:this.headers,xform:Qy})}catch(a){if(Ay(a))return{data:null,error:a};throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const t=e.data.session,n=e.error;if(n)throw n;if(!t)throw new Ty;return{data:{user:null,session:null},error:(await Vy(this.fetch,"GET","".concat(this.url,"/reauthenticate"),{headers:this.headers,jwt:t.access_token})).error}})}catch(e){if(Ay(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{"email_change"!=e.type&&"phone_change"!=e.type&&await this._removeSession();const t="".concat(this.url,"/resend");if("email"in e){const n=e.email,r=e.type,a=e.options,s=await Vy(this.fetch,"POST",t,{headers:this.headers,body:{email:n,type:r,gotrue_meta_security:{captcha_token:null===a||void 0===a?void 0:a.captchaToken}},redirectTo:null===a||void 0===a?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:s.error}}if("phone"in e){const n=e.phone,r=e.type,a=e.options,s=await Vy(this.fetch,"POST",t,{headers:this.headers,body:{phone:n,type:r,gotrue_meta_security:{captcha_token:null===a||void 0===a?void 0:a.captchaToken}}}),i=s.data,o=s.error;return{data:{user:null,session:null,messageId:null===i||void 0===i?void 0:i.message_id},error:o}}throw new Py("You must provide either an email or phone number and a type")}catch(t){if(Ay(t))return{data:{user:null,session:null},error:t};throw t}}async getSession(){return await this.initializePromise,this._acquireLock(-1,async()=>this._useSession(async e=>e))}async _acquireLock(e,t){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await n}catch(tN){}})()),n}return await this.lock("lock:".concat(this.storageKey),e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const e=t();for(this.pendingInLock.push((async()=>{try{await e}catch(tN){}})()),await e;this.pendingInLock.length;){const e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const t=await this.__loadSession();return await e(t)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",(new Error).stack);try{let e=null;const t=await Dy(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",t),null!==t&&(this._isValidSession(t)?e=t:(this._debug("#getSession()","session from storage is not val
2id"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=!!e.expires_at&&e.expires_at<=Date.now()/1e3;if(this._debug("#__loadSession()","session has".concat(n?"":" not"," expired"),"expires_at",e.expires_at),!n)return{data:{session:e},error:null};const r=await this._callRefreshToken(e.refresh_token),a=r.session,s=r.error;return s?{data:{session:null},error:s}:{data:{session:a},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await Vy(this.fetch,"GET","".concat(this.url,"/user"),{headers:this.headers,jwt:e,xform:Ky}):await this._useSession(async e=>{var t,n;const r=e.data,a=e.error;if(a)throw a;return await Vy(this.fetch,"GET","".concat(this.url,"/user"),{headers:this.headers,jwt:null!==(n=null===(t=r.session)||void 0===t?void 0:t.access_token)&&void 0!==n?n:void 0,xform:Ky})})}catch(t){if(Ay(t))return{data:{user:null},error:t};throw t}}async updateUser(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,t))}async _updateUser(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return await this._useSession(async n=>{const r=n.data,a=n.error;if(a)throw a;if(!r.session)throw new Ty;const s=r.session;let i=null,o=null;if("pkce"===this.flowType&&null!=e.email){const e=Ey();await yy(this.storage,"".concat(this.storageKey,"-code-verifier"),e),i=await Fy(e),o=e===i?"plain":"s256"}const l=await Vy(this.fetch,"PUT","".concat(this.url,"/user"),{headers:this.headers,redirectTo:null===t||void 0===t?void 0:t.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:i,code_challenge_method:o}),jwt:s.access_token,xform:Ky}),u=l.data,c=l.error;if(c)throw c;return s.user=u.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),{data:{user:s.user},error:null}})}catch(n){if(Ay(n))return{data:{user:null},error:n};throw n}}_decodeJWT(e){return jy(e)}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Ty;const t=Date.now()/1e3;let n=t,r=!0,a=null;const s=jy(e.access_token);if(s.exp&&(n=s.exp,r=n<=t),r){const t=await this._callRefreshToken(e.refresh_token),n=t.session,r=t.error;if(r)return{data:{user:null,session:null},error:r};if(!n)return{data:{user:null,session:null},error:null};a=n}else{const r=await this._getUser(e.access_token),s=r.data,i=r.error;if(i)throw i;a={access_token:e.access_token,refresh_token:e.refresh_token,user:s.user,token_type:"bearer",expires_in:n-t,expires_at:n},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return{data:{user:a.user,session:a},error:null}}catch(t){if(Ay(t))return{data:{session:null,user:null},error:t};throw t}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{var n;if(!e){const r=t.data,a=t.error;if(a)throw a;e=null!==(n=r.session)&&void 0!==n?n:void 0}if(!(null===e||void 0===e?void 0:e.refresh_token))throw new Ty;const r=await this._callRefreshToken(e.refresh_token),a=r.session,s=r.error;return s?{data:{user:null,session:null},error:s}:a?{data:{user:a.user,session:a},error:null}:{data:{user:null,session:null},error:null}})}catch(t){if(Ay(t))return{data:{user:null,session:null},error:t};throw t}}async _getSessionFromURL(e){try{if(!my())throw new Oy("No browser detected.");if("implicit"===this.flowType&&!this._isImplicitGrantFlow())throw new Oy("Not a valid implicit grant flow url.");if("pkce"==this.flowType&&!e)throw new Ly("Not a valid PKCE flow url.");const t=vy(window.location.href);if(e){if(!t.code)throw new Ly("No code detected.");const e=await this._exchangeCodeForSession(t.code),n=e.data,r=e.error;if(r)throw r;const a=new URL(window.location.href);return a.searchParams.delete("code"),window.history.replaceState(window.history.state,"",a.toString()),{data:{session:n.session,redirectType:null},error:null}}if(t.error||t.error_description||t.error_code)throw new Oy(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});const n=t.provider_token,r=t.provider_refresh_token,a=t.access_token,s=t.refresh_token,i=t.expires_in,o=t.expires_at,l=t.token_type;if(!a||!i||!s||!l)throw new Oy("No session defined in URL");const u=Math.round(Date.now()/1e3),c=parseInt(i);let d=u+c;o&&(d=parseInt(o));const h=d-u;1e3*h<=lD&&console.warn("@supabase/gotrue-js: Session as retrieved from URL expires in ".concat(h,"s, should have been closer to ").concat(c,"s"));const f=d-c;u-f>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",f,d,u):u-f<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clok for skew",f,d,u);const p=await this._getUser(a),m=p.data,x=p.error;if(x)throw x;const g={provider_token:n,provider_refresh_token:r,access_token:a,expires_in:c,expires_at:d,refresh_token:s,token_type:l,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:g,redirectType:t.type},error:null}}catch(t){if(Ay(t))return{data:{session:null,redirectType:null},error:t};throw t}}_isImplicitGrantFlow(){const e=vy(window.location.href);return!(!my()||!e.access_token&&!e.error_description)}async _isPKCEFlow(){const e=vy(window.location.href),t=await Dy(this.storage,"".concat(this.storageKey,"-code-verifier"));return!(!e.code||!t)}async signOut(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{scope:"global"};return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{scope:"global"}).scope;return await this._useSession(async t=>{var n;const r=t.data,a=t.error;if(a)return{error:a};const s=null===(n=r.session)||void 0===n?void 0:n.access_token;if(s){const t=(await this.admin.signOut(s,e)).error;if(t&&(!function(e){return Ay(e)&&"AuthApiError"===e.name}(t)||404!==t.status&&401!==t.status))return{error:t}}return"others"!==e&&(await this._removeSession(),await wy(this.storage,"".concat(this.storageKey,"-code-verifier")),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}})}onAuthStateChange(e){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),n={id:t,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",t),this.stateChangeEmitters.delete(t)}};return this._debug("#onAuthStateChange()","registered callback with id",t),this.stateChangeEmitters.set(t,n),(async()=>{await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(t)})})(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async t=>{var n,r;try{const r=t.data.session,a=t.error;if(a)throw a;await(null===(n=this.stateChangeEmitters.get(e))||void 0===n?void 0:n.callback("INITIAL_SESSION",r)),this._debug("INITIAL_SESSION","callback id",e,"session",r)}catch(a){await(null===(r=this.stateChangeEmitters.get(e))||void 0===r?void 0:r.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",a),console.error(a)}})}async resetPasswordForEmail(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null;if("pkce"===this.flowType){const e=Ey();await yy(this.storage,"".concat(this.storageKey,"-code-verifier"),"".concat(e,"/PASSWORD_RECOVERY")),n=await Fy(e),r=e===n?"plain":"s256"}try{return await Vy(this.fetch,"POST","".concat(this.url,"/recover"),{body:{email:e,code_challenge:n,code_challenge_method:r,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:t.redirectTo})}catch(a){if(Ay(a))return{data:null,error:a};throw a}}async getUserIdentities(){var e;try{const t=await this.getUser(),n=t.data,r=t.error;if(r)throw r;return{data:{identities:null!==(e=n.user.identities)&&void 0!==e?e:[]},error:null}}catch(t){if(Ay(t))return{data:null,error:t};throw t}}async linkIdentity(e){var t;try{const n=await this._useSession(async t=>{var n,r,a,s,i;const o=t.data,l=t.error;if(l)throw l;const u=await this._getUrlForProvider("".concat(this.url,"/user/identities/authorize"),e.provider,{redirectTo:null===(n=e.options)||void 0===n?void 0:n.redirectTo,scopes:null===(r=e.options)||void 0===r?void 0:r.scopes,queryParams:null===(a=e.options)||void 0===a?void 0:a.queryParams,skipBrowserRedirect:!0});return await Vy(this.fetch,"GET",u,{headers:this.headers,jwt:null!==(i=null===(s=o.session)||void 0===s?void 0:s.access_token)&&void 0!==i?i:void 0})}),r=n.data,a=n.error;if(a)throw a;return my()&&!(null===(t=e.options)||void 0===t?void 0:t.skipBrowserRedirect)&&window.location.assign(null===r||void 0===r?void 0:r.url),{data:{provider:e.provider,url:null===r||void 0===r?void 0:r.url},error:null}}catch(n){if(Ay(n))return{data:{provider:e.provider,url:null},error:n};throw n}}async unlinkIdentity(e){try{return await this._useSession(async t=>{var n,r;const a=t.data,s=t.error;if(s)throw s;
2return await Vy(this.fetch,"DELETE","".concat(this.url,"/user/identities/").concat(e.identity_id),{headers:this.headers,jwt:null!==(r=null===(n=a.session)||void 0===n?void 0:n.access_token)&&void 0!==r?r:void 0})})}catch(t){if(Ay(t))return{data:null,error:t};throw t}}async _refreshAccessToken(e){const t="#_refreshAccessToken(".concat(e.substring(0,5),"...)");this._debug(t,"begin");try{const a=Date.now();return await(n=async n=>(await async function(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}(200*n),this._debug(t,"refreshing attempt",n),await Vy(this.fetch,"POST","".concat(this.url,"/token?grant_type=refresh_token"),{body:{refresh_token:e},headers:this.headers,xform:Gy})),r=(e,t,n)=>n&&n.error&&My(n.error)&&Date.now()+200*(e+1)-a<lD,new Promise((e,t)=>{(async()=>{for(let a=0;a<1/0;a++)try{const t=await n(a);if(!r(a,null,t))return void e(t)}catch(tN){if(!r(a,tN))return void t(tN)}})()}))}catch(a){if(this._debug(t,"error",a),Ay(a))return{data:{session:null,user:null},error:a};throw a}finally{this._debug(t,"end")}var n,r}_isValidSession(e){return"object"===typeof e&&null!==e&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,t){const n=await this._getUrlForProvider("".concat(this.url,"/authorize"),e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",t,"url",n),my()&&!t.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e;const t="#_recoverAndRefresh()";this._debug(t,"begin");try{const n=await Dy(this.storage,this.storageKey);if(this._debug(t,"session from storage",n),!this._isValidSession(n))return this._debug(t,"session is not valid"),void(null!==n&&await this._removeSession());const r=Math.round(Date.now()/1e3),a=(null!==(e=n.expires_at)&&void 0!==e?e:1/0)<r+10;if(this._debug(t,"session has".concat(a?"":" not"," expired with margin of ").concat(10,"s")),a){if(this.autoRefreshToken&&n.refresh_token){const e=(await this._callRefreshToken(n.refresh_token)).error;e&&(console.error(e),My(e)||(this._debug(t,"refresh failed with a non-retryable error, removing the session",e),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",n)}catch(n){return this._debug(t,"error",n),void console.error(n)}finally{this._debug(t,"end")}}async _callRefreshToken(e){var t,n;if(!e)throw new Ty;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const r="#_callRefreshToken(".concat(e.substring(0,5),"...)");this._debug(r,"begin");try{this.refreshingDeferred=new ky;const t=await this._refreshAccessToken(e),n=t.data,r=t.error;if(r)throw r;if(!n.session)throw new Ty;await this._saveSession(n.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",n.session);const a={session:n.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(a){if(this._debug(r,"error",a),Ay(a)){const e={session:null,error:a};return My(a)||(await this._removeSession(),await this._notifyAllSubscribers("SIGNED_OUT",null)),null===(t=this.refreshingDeferred)||void 0===t||t.resolve(e),e}throw null===(n=this.refreshingDeferred)||void 0===n||n.reject(a),a}finally{this.refreshingDeferred=null,this._debug(r,"end")}}async _notifyAllSubscribers(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r="#_notifyAllSubscribers(".concat(e,")");this._debug(r,"begin",t,"broadcast = ".concat(n));try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:t});const r=[],a=Array.from(this.stateChangeEmitters.values()).map(async n=>{try{await n.callback(e,t)}catch(tN){r.push(tN)}});if(await Promise.all(a),r.length>0){for(let e=0;e<r.length;e+=1)console.error(r[e]);throw r[0]}}finally{this._debug(r,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),await yy(this.storage,this.storageKey,e)}async _removeSession(){this._debug("#_removeSession()"),await wy(this.storage,this.storageKey)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&my()&&(null===window||void 0===window?void 0:window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
2catch(tN){console.error("removing visibilitychange callback failed",tN)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),lD);this.autoRefreshTicker=e,e&&"object"===typeof e&&"function"===typeof e.unref?e.unref():"undefined"!==typeof Deno&&"function"===typeof Deno.unrefTimer&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async t=>{const n=t.data.session;if(!n||!n.refresh_token||!n.expires_at)return void this._debug("#_autoRefreshTokenTick()","no session");const r=Math.floor((1e3*n.expires_at-e)/lD);this._debug("#_autoRefreshTokenTick()","access token expires in ".concat(r," ticks, a tick lasts ").concat(lD,"ms, refresh threshold is ").concat(3," ticks")),r<=3&&await this._callRefreshToken(n.refresh_token)})}catch(tN){console.error("Auto refresh tick failed with error. This is likely a transient error.",tN)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(tN){if(!(tN.isAcquireTimeout||tN instanceof aD))throw tN;this._debug("auto refresh token tick lock not available")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!my()||!(null===window||void 0===window?void 0:window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),null===window||void 0===window||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const t="#_onVisibilityChanged(".concat(e,")");this._debug(t,"visibilityState",document.visibilityState),"visible"===document.visibilityState?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{"visible"===document.visibilityState?await this._recoverAndRefresh():this._debug(t,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting")}))):"hidden"===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,n){const r=["provider=".concat(encodeURIComponent(t))];if((null===n||void 0===n?void 0:n.redirectTo)&&r.push("redirect_to=".concat(encodeURIComponent(n.redirectTo))),(null===n||void 0===n?void 0:n.scopes)&&r.push("scopes=".concat(encodeURIComponent(n.scopes))),"pkce"===this.flowType){const e=Ey();await yy(this.storage,"".concat(this.storageKey,"-code-verifier"),e);const t=await Fy(e),n=e===t?"plain":"s256";this._debug("PKCE","code verifier","".concat(e.substring(0,5),"..."),"code challenge",t,"method",n);const a=new URLSearchParams({code_challenge:"".concat(encodeURIComponent(t)),code_challenge_method:"".concat(encodeURIComponent(n))});r.push(a.toString())}if(null===n||void 0===n?void 0:n.queryParams){const e=new URLSearchParams(n.queryParams);r.push(e.toString())}return(null===n||void 0===n?void 0:n.skipBrowserRedirect)&&r.push("skip_http_redirect=".concat(n.skipBrowserRedirect)),"".concat(e,"?").concat(r.join("&"))}async _unenroll(e){try{return await this._useSession(async t=>{var n;const r=t.data,a=t.error;return a?{data:null,error:a}:await Vy(this.fetch,"DELETE","".concat(this.url,"/factors/").concat(e.factorId),{headers:this.headers,jwt:null===(n=null===r||void 0===r?void 0:r.session)||void 0===n?void 0:n.access_token})})}catch(t){if(Ay(t))return{data:null,error:t};throw t}}async _enroll(e){try{return await this._useSession(async t=>{var n,r;const a=t.data,s=t.error;if(s)return{data:null,error:s};const i=await Vy(this.fetch,"POST","".concat(this.url,"/factors"),{body:{friendly_name:e.friendlyName,factor_type:e.factorType,issuer:e.issuer},headers:this.headers,jwt:null===(n=null===a||void 0===a?void 0:a.session)||void 0===n?void 0:n.access_token}),o=i.data,l=i.error;return l?{data:null,error:l}:((null===(r=null===o||void 0===o?void 0:o.totp)||void 0===r?void 0:r.qr_code)&&(o.totp.qr_code="data:image/svg+xml;utf-8,".concat(o.totp.qr_code)),{data:o,error:null})})}catch(t){if(Ay(t))return{data:null,error:t};throw t}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async t=>{var n;const r=t.data,a=t.error;if(a)return{data:null,error:a};const s=await Vy(this.fetch,"POST","".concat(this.url,"/factors/").concat(e.factorId,"/verify"),{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:null===(n=null===r||void 0===r?void 0:r.session)||void 0===n?void 0:n.access_token}),i=s.data,o=s.error;return o?{data:null,error:o}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:o})})}catch(t){if(Ay(t))return{data:null,error:t};throw t}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async t=>{var n;const r=t.data,a=t.error;return a?{data:null,error:a}:await Vy(this.fetch,"POST","".concat(this.url,"/factors/").concat(e.factorId,"/challenge"),{headers:this.headers,jwt:null===(n=null===r||void 0===r?void 0:r.session)||void 0===n?void 0:n.access_token})})}catch(t){if(Ay(t))return{data:null,error:t};throw t}})}async _challengeAndVerify(e){const t=await this._challenge({factorId:e.factorId}),n=t.data,r=t.error;return r?{data:null,error:r}:await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){const e=await this.getUser(),t=e.data.user,n=e.error;if(n)return{data:null,error:n};const r=(null===t||void 0===t?void 0:t.factors)||[],a=r.filter(e=>"totp"===e.factor_type&&"verified"===e.status);return{data:{all:r,totp:a},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var t,n;const r=e.data.session,a=e.error;if(a)return{data:null,error:a};if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const s=this._decodeJWT(r.access_token);let i=null;s.aal&&(i=s.aal);let o=i;(null!==(n=null===(t=r.user.factors)||void 0===t?void 0:t.filter(e=>"verified"===e.status))&&void 0!==n?n:[]).length>0&&(o="aal2");return{data:{currentLevel:i,nextLevel:o,currentAuthenticationMethods:s.amr||[]},error:null}}))}}cD.nextInstanceID=0;class dD extends cD{constructor(e){super(e)}}
2var hD=function(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(tN){s(tN)}}function o(e){try{l(r.throw(e))}catch(tN){s(tN)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})};class fD{constructor(e,t,n){var r,a,s,i,o,l,u,c;if(this.supabaseUrl=e,this.supabaseKey=t,!e)throw new Error("supabaseUrl is required.");if(!t)throw new Error("supabaseKey is required.");const d=e.replace(/\/$/,"");this.realtimeUrl="".concat(d,"/realtime/v1").replace(/^http/i,"ws"),this.authUrl="".concat(d,"/auth/v1"),this.storageUrl="".concat(d,"/storage/v1"),this.functionsUrl="".concat(d,"/functions/v1");const h="sb-".concat(new URL(this.authUrl).hostname.split(".")[0],"-auth-token"),f=function(e,t){const n=e.db,r=e.auth,a=e.realtime,s=e.global,i=t.db,o=t.auth,l=t.realtime,u=t.global;return{db:Object.assign(Object.assign({},i),n),auth:Object.assign(Object.assign({},o),r),realtime:Object.assign(Object.assign({},l),a),global:Object.assign(Object.assign({},u),s)}}(null!==n&&void 0!==n?n:{},{db:uy,realtime:dy,auth:Object.assign(Object.assign({},cy),{storageKey:h}),global:ly});this.storageKey=null!==(a=null===(r=f.auth)||void 0===r?void 0:r.storageKey)&&void 0!==a?a:"",this.headers=null!==(i=null===(s=f.global)||void 0===s?void 0:s.headers)&&void 0!==i?i:{},this.auth=this._initSupabaseAuthClient(null!==(o=f.auth)&&void 0!==o?o:{},this.headers,null===(l=f.global)||void 0===l?void 0:l.fetch),this.fetch=py(t,this._getAccessToken.bind(this),null===(u=f.global)||void 0===u?void 0:u.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},f.realtime)),this.rest=new cb("".concat(d,"/rest/v1"),{headers:this.headers,schema:null===(c=f.db)||void 0===c?void 0:c.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new nb(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new iy(this.storageUrl,this.headers,this.fetch)}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.rest.rpc(e,t,n)}channel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{config:{}};return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,t;return hD(this,void 0,void 0,function*(){const n=(yield this.auth.getSession()).data;return null!==(t=null===(e=n.session)||void 0===e?void 0:e.access_token)&&void 0!==t?t:null})}_initSupabaseAuthClient(e,t,n){let r=e.autoRefreshToken,a=e.persistSession,s=e.detectSessionInUrl,i=e.storage,o=e.storageKey,l=e.flowType,u=e.debug;const c={Authorization:"Bearer ".concat(this.supabaseKey),apikey:"".concat(this.supabaseKey)};return new dD({url:this.authUrl,headers:Object.assign(Object.assign({},c),t),storageKey:o,autoRefreshToken:r,persistSession:a,detectSessionInUrl:s,storage:i,flowType:l,debug:u,fetch:n})}_initRealtimeClient(e){return new Ib(this.realtimeUrl,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},null===e||void 0===e?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",null===t||void 0===t?void 0:t.access_token)})}_handleTokenChanged(e,t,n){"TOKEN_REFRESHED"!==e&&"SIGNED_IN"!==e||this.changedAccessToken===n?"SIGNED_OUT"===e&&(this.realtime.setAuth(this.supabaseKey),"STORAGE"==t&&this.auth.signOut(),this.changedAccessToken=void 0):(this.realtime.setAuth(null!==n&&void 0!==n?n:null),this.changedAccessToken=n)}}const pD=((e,t,n)=>new fD(e,t,n))("https://nqvkhcrzxdonmmtjzqup.supabase.co","sb_publishable_TTolYCpD5R_nBnxx1Dt7yw_Mk42tl_4");function mD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"login";if(!e)return"";const n=String(e);return n.toLowerCase().includes("rate limit")?"password-reset"===t?"Too many password reset requests. Please wait a few minutes before trying again.":"signup"===t?"Too many registration requests. Please wait a few minutes before trying again.":"Too many requests. Please wait a few minutes before trying again.":n}function xD(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;const t=new URL(e),n="localhost"===t.hostname||"127.0.0.1"===t.hostname?t.origin:"https://www.uplaud.ai";return"".concat(n,"/business/reset-password")}async function gD(){const e="true"===localStorage.getItem(Ig)?"/business/referrals":"/business/import";try{const e=(await ev.get("/warm-leads")).data;if((e.leads||[]).length>Number(localStorage.getItem(Mg)||0))return"/business/referrals"}catch(t){}return e}function vD(){const e=tn(),t=qe((0,i.useState)(""),2),n=t[0],r=t[1],a=qe((0,i.useState)(""),2),s=a[0],o=a[1],l=qe((0,i.useState)(!1),2),u=l[0],c=l[1],d=qe((0,i.useState)(!1),2),h=d[0],f=d[1],p=qe((0,i.useState)(!1),2),m=p[0],x=p[1],g=qe((0,i.useState)(""),2),v=g[0],b=g[1],y=qe((0,i.useState)("login"),2),D=y[0],w=y[1],k=qe((0,i.useState)(""),2),j=k[0],C=k[1];(0,i.useEffect)(()=>{Vg()&&gD().then(t=>e(t,{replace:!0}))},[e]);return(0,Te.jsxs)("div",{"data-testid":"business-login-page",className:"min-h-screen w-full bg-white grid grid-cols-1 lg:grid-cols-2",children:[(0,Te.jsxs)("div",{className:"flex flex-col justify-between p-8 md:p-14",children:[(0,Te.jsx)("a",{href:"/","data-testid":"login-brand-logo",className:"inline-flex items-center",children:(0,Te.jsx)("img",{src:"/uplaud-main-wordmark.png",alt:"Uplaud",className:"h-10 w-auto object-contain mix-blend-multiply",style:{maxWidth:120}})}),(0,Te.jsxs)("div",{className:"max-w-[440px] w-full mx-auto lg:mx-0 lg:ml-4",children:[(0,Te.jsxs)("span",{className:"chip mb-6","data-testid":"login-eyebrow",children:[(0,Te.jsx)("span",{className:"dot"}),u?"Create a new account":"Sign in to your workspace"]}),(0,Te.jsxs)("h1",{"data-testid":"login-headline",className:"font-display text-[38px] md:text-[44px] leading-[1.02] font-semibold tracking-tight text-[#111827]",children:["The operating system for"," ",(0,Te.jsx)("span",{className:"text-[#6d46c6]",children:"customer-led growth"}),"."]}),(0,Te.jsx)("p",{"data-testid":"login-subhead",className:"mt-4 text-[15px] leading-relaxed text-[#4b5563]",children:"Activate every meaningful interaction \u2014 before and after purchase \u2014 into compounding business growth."}),(0,Te.jsxs)("form",{onSubmit:async t=>{if(t.preventDefault(),b(""),w(u?"signup":"login"),C(""),!n||!s)return void b("Please enter your email and password");const r=n.toLowerCase().trim().split("@");if(r.length<2)return void b("Please enter a valid email address");const a=r[1];if(["gmail.com","yahoo.com","hotmail.com","outlook.com","aol.com","icloud.com","mail.com","zoho.com","yandex.com","protonmail.com","proton.me","gmx.com","live.com","msn.com","me.com","ymail.com"].includes(a))b("Please use your work email address. Personal email domains (like gmail.com) are not allowed.");else if(f(!0),Kg(),u)try{const e=await pD.auth.signUp({email:n,password:s,options:{data:{name:n.split("@")[0],role:"business",company:"My Company",approved:!1}}}),t=(e.data,e.error);if(t)return b(t.message),void f(!1);C("Registration successful! Your account is pending administrator approval before you can sign in."),c(!1)}catch(l){b(l.message||"Sign up failed")}finally{f(!1)}else try{const t=await pD.auth.signInWithPassword({email:n,password:s}),r=t.data,a=t.error;if(a)try{const t=(await ev.post("/auth/login",{email:n,password:s})).data;Gg({email:t.user.email,name:t.user.name,role:t.user.role,workspace:t.user.company,company:t.user.company,brandDomain:t.user.selected_brand_domain,token:t.token});const r=await gD();return void e(r,{replace:!0})}catch(d){return b(a.message||"Invalid email or password"),void f(!1)}const l=r.session.access_token;try{const t=(await ev.get("/auth/me",{headers:{Authorization:"Bearer ".concat(l),"X-Uplaud-Skip-Brand-Domain":"1"}})).data;Gg({email:t.email,name:t.name,role:t.role,workspace:t.company,company:t.company,brandDomain:t.selected_brand_domain,token:l});const n=await gD();e(n,{replace:!0})}catch(h){var i,o;const e=(null===(i=h.response)||void 0===i||null===(o=i.data)||void 0===o?void 0:o.detail)||"Authentication failed on the backend.";b(e),await pD.auth.signOut(),f(!1)}}catch(l){b("An unexpected error occurred during sign in."),f(!1)}},"data-testid":"login-form",className:"mt-10 space-y-5",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-[12px] font-mono uppercase tracking-[0.18em] text-[#4b5563]",children:"Work email"}),(0,Te.jsxs)("div",{className:"mt-2 relative",children:[(0,Te.jsx)(Yv,{className:"w-4 h-4 text-[#9ca3af] absolute left-4 top-1/2 -translate-y-1/2"}),(0,Te.jsx)("input",{"data-testid":"login-email-input",type:"email",value:n,onChange:e=>r(e.target.value),autoComplete:"username",className:"w-full h-12 pl-11 pr-4 rounded-full border border-[#d9d1ee] bg-white text-[14px] text-[#111827] focu
2s:outline-none focus:border-[#6d46c6] focus:ring-2 focus:ring-[#ece5f4] transition-all",placeholder:"[email protected]"})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)("label",{className:"text-[12px] font-mono uppercase tracking-[0.18em] text-[#4b5563]",children:"Password"}),!u&&(0,Te.jsx)("button",{type:"button","data-testid":"password-reset-request-btn",onClick:async()=>{b(""),w("password-reset"),C("");const e=n.trim().toLowerCase();if(e)if(e.includes("@")){x(!0);try{await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.location.href;const r=t.trim().toLowerCase(),a=(await e.auth.resetPasswordForEmail(r,{redirectTo:xD(n)})).error;if(a)throw a}(pD,e),C("Password reset email sent. Open the link in your email to set a new password.")}catch(t){b(t.message||"Could not send the password reset email.")}finally{x(!1)}}else b("Please enter a valid email address.");else b("Enter your work email, then request a password reset.")},disabled:m,className:"text-[12.5px] font-medium text-[#6d46c6] hover:underline disabled:opacity-60",children:m?"Sending...":"Forgot password?"})]}),(0,Te.jsxs)("div",{className:"mt-2 relative",children:[(0,Te.jsx)(Bv,{className:"w-4 h-4 text-[#9ca3af] absolute left-4 top-1/2 -translate-y-1/2"}),(0,Te.jsx)("input",{"data-testid":"login-password-input",type:"password",value:s,onChange:e=>o(e.target.value),autoComplete:u?"new-password":"current-password",className:"w-full h-12 pl-11 pr-4 rounded-full border border-[#d9d1ee] bg-white text-[14px] text-[#111827] focus:outline-none focus:border-[#6d46c6] focus:ring-2 focus:ring-[#ece5f4] transition-all",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"})]})]}),v&&(0,Te.jsx)("p",{"data-testid":"login-error",className:"text-[13px] text-red-600 font-medium bg-red-50 p-3 rounded-xl border border-red-100",children:mD(v,D)}),j&&(0,Te.jsx)("p",{className:"text-[13px] text-green-600 font-medium bg-green-50 p-3 rounded-xl border border-green-100",children:j}),(0,Te.jsxs)("button",{type:"submit",disabled:h,"data-testid":"login-submit-btn",className:"btn-primary w-full justify-center h-12",children:[h?u?"Registering...":"Signing in...":u?"Register Account":"Sign in",!h&&(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]}),(0,Te.jsxs)("div",{className:"flex items-center justify-between text-[12.5px] text-[#4b5563]",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>{c(!u),b(""),w(u?"login":"signup"),C("")},className:"hover:text-[#6d46c6] transition-colors font-medium text-[#6d46c6]",children:u?"Already have an account? Sign in":"New user? Create an account"}),(0,Te.jsxs)("span",{className:"flex items-center gap-1.5 text-[#9ca3af]",children:[(0,Te.jsx)(av,{className:"w-3.5 h-3.5"}),"SOC 2 \xa0\xb7\xa0 SSO ready"]})]})]}),(0,Te.jsxs)("p",{className:"mt-8 text-[13px] text-[#4b5563]",children:["New to Uplaud?"," ",(0,Te.jsx)("a",{href:"/#demo",className:"text-[#6d46c6] hover:underline","data-testid":"login-book-demo-link",children:"Book a demo"})]})]}),(0,Te.jsx)("p",{className:"text-[11.5px] text-[#9ca3af] mt-10",children:"\xa9 2026 Uplaud AI. All rights reserved."})]}),(0,Te.jsxs)("div",{className:"hidden lg:flex relative overflow-hidden bg-[#261c4d] text-white p-14 flex-col justify-between noise",children:[(0,Te.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 grid-bg opacity-40"}),(0,Te.jsx)("div",{"aria-hidden":!0,className:"absolute -top-32 -right-32 w-[520px] h-[520px] rounded-full",style:{background:"radial-gradient(circle, rgba(94,234,212,0.22), transparent 60%)"}}),(0,Te.jsx)("div",{"aria-hidden":!0,className:"absolute -bottom-40 -left-20 w-[520px] h-[520px] rounded-full",style:{background:"radial-gradient(circle, rgba(109,70,198,0.4), transparent 60%)"}}),(0,Te.jsx)("div",{className:"relative",children:(0,Te.jsxs)("span",{className:"chip chip-dark",children:[(0,Te.jsx)(la,{className:"w-3.5 h-3.5 text-[#5eead4]",strokeWidth:2}),"Uplaud \xb7 Growth Engine"]})}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsxs)("div",{className:"rounded-2xl border border-white/10 bg-white/[0.03] backdrop-blur-xl p-6",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-[11px] font-mono text-white/60",children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full bg-[#5eead4]"}),"Growth Engine \xb7 PayRewards"]}),(0,Te.jsxs)("div",{className:"mt-4 grid grid-cols-3 gap-4",children:[(0,Te.jsx)(bD,{label:"Prospects",value:"388"}),(0,Te.jsx)(bD,{label:"Warm intros",value:"94"}),(0,Te.jsx)(bD,{label:"New customers",value:"21"})]}),(0,Te.jsx)("div",{className:"mt-5 space-y-2",children:[{label:"Demo \u2192 prospect",value:60},{label:"Testimonial approved",value:44},{label:"Warm intro delivered",value:27}].map(e=>(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"text-[12px] w-28 text-white/60",children:e.label}),(0,Te.jsx)("div",{className:"flex-1 h-1.5 rounded-full bg-white/10 overflow-hidden",children:(0,Te.jsx)("div",{className:"h-full rounded-full bg-[#5eead4]",style:{width:"".concat(e.value,"%")}})}),(0,Te.jsxs)("div",{className:"text-[12px] font-mono w-8 text-right",children:[e.value,"%"]})]},e.label))})]}),(0,Te.jsxs)("p",{className:"mt-8 font-display text-[26px] leading-[1.15] max-w-[420px]",children:[(0,Te.jsx)("span",{className:"text-[#5eead4]",children:"Every interaction"})," ",(0,Te.jsx)("span",{className:"text-white/95",children:"is a growth asset waiting to compound."})]}),(0,Te.jsx)("p",{className:"mt-4 text-[13px] text-white/60 max-w-[400px]",children:"Pre-customer to advocate. One continuous engine, sitting on top of your paid acquisition."})]}),(0,Te.jsx)("div",{className:"relative text-[11px] font-mono text-white/40",children:"BUILT FOR EDUCATION \xb7 HEALTHCARE \xb7 LEGAL \xb7 PET CARE \xb7 FINANCE \xb7 ECOMMERCE"})]})]})}function bD(e){let t=e.label,n=e.value;return(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[11px] text-white/50 font-mono",children:t}),(0,Te.jsx)("div",{className:"text-[22px] font-display font-semibold mt-0.5",children:n})]})}function yD(){const e=tn(),t=qe((0,i.useState)(""),2),n=t[0],r=t[1],a=qe((0,i.useState)(""),2),s=a[0],o=a[1],l=qe((0,i.useState)(!1),2),u=l[0],c=l[1],d=qe((0,i.useState)(!0),2),h=d[0],f=d[1],p=qe((0,i.useState)(!1),2),m=p[0],x=p[1],g=qe((0,i.useState)(""),2),v=g[0],b=g[1],y=qe((0,i.useState)(""),2),D=y[0],w=y[1];(0,i.useEffect)(()=>{pD.auth.getSession().then(e=>{let t=e.data;x(Boolean(t.session)),f(!1)})},[]);return(0,Te.jsxs)("div",{"data-testid":"reset-password-page",className:"min-h-screen w-full bg-white grid grid-cols-1 lg:grid-cols-2",children:[(0,Te.jsxs)("div",{className:"flex flex-col justify-between p-8 md:p-14",children:[(0,Te.jsx)("a",{href:"/",className:"inline-flex items-center",children:(0,Te.jsx)("img",{src:"https://customer-assets-gfyr7b9c.emergentagent.net/job_ai-acquisition-hub-2/artifacts/24zfs0md_logo_white_background.webp",alt:"Uplaud",className:"h-10 w-auto object-contain mix-blend-multiply",style:{maxWidth:120}})}),(0,Te.jsxs)("div",{className:"max-w-[440px] w-full mx-auto lg:mx-0 lg:ml-4",children:[(0,Te.jsxs)("span",{className:"chip mb-6",children:[(0,Te.jsx)("span",{className:"dot"}),"Reset your password"]}),(0,Te.jsx)("h1",{className:"font-display text-[38px] md:text-[44px] leading-[1.02] font-semibold tracking-tight text-[#111827]",children:"Create a new password."}),(0,Te.jsx)("p",{className:"mt-4 text-[15px] leading-relaxed text-[#4b5563]",children:"Use the password reset link from your email, then choose a new password for your workspace."}),h?(0,Te.jsx)("p",{className:"mt-10 text-[13px] text-[#4b5563]",children:"Checking reset link..."}):(0,Te.jsxs)("form",{onSubmit:async t=>{if(t.preventDefault(),b(""),w(""),n.length<8)b("Password must be at least 8 characters.");else if(n===s){c(!0);try{await async function(e,t){const n=(await e.auth.updateUser({password:t})).error;if(n)throw n}(pD,n),w("Password updated. You can now sign in with your new password."),await pD.auth.signOut(),setTimeout(()=>e("/business",{replace:!0}),1200)}catch(r){b(r.message||"Could not update your password.")}finally{c(!1)}}else b("Passwords do not match.")},className:"mt-10 space-y-5",children:[!m&&(0,Te.jsx)("p",{className:"text-[13px] text-amber-700 font-medium bg-amber-50 p-3 rounded-xl border border-amber-100",children:"This reset link is missing or expired. Request a new password reset email."}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-[12px] font-mono uppercase tracking-[0.18em] text-[#4b5563]",children:"New password"}),(0,Te.jsxs)("div",{className:"mt-2 relative",children:[(0,Te.jsx)(Bv,{className:"w-4 h-4 text-[#9ca3af] absolute left-4 top-1/2 -translate-y-1/2"}),(0,Te.jsx)("input",{"data-testid":"reset-password-input",type:"password",value:n,onChange:e=>r(e.target.value),className:"w-full h-12 pl-11 pr-4 rounded-full border border-[#d9d1ee] bg-white text-[14px] text-[#111827] focu
2s:outline-none focus:border-[#6d46c6] focus:ring-2 focus:ring-[#ece5f4] transition-all",placeholder:"At least 8 characters"})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-[12px] font-mono uppercase tracking-[0.18em] text-[#4b5563]",children:"Confirm password"}),(0,Te.jsxs)("div",{className:"mt-2 relative",children:[(0,Te.jsx)(Bv,{className:"w-4 h-4 text-[#9ca3af] absolute left-4 top-1/2 -translate-y-1/2"}),(0,Te.jsx)("input",{"data-testid":"reset-password-confirm-input",type:"password",value:s,onChange:e=>o(e.target.value),className:"w-full h-12 pl-11 pr-4 rounded-full border border-[#d9d1ee] bg-white text-[14px] text-[#111827] focus:outline-none focus:border-[#6d46c6] focus:ring-2 focus:ring-[#ece5f4] transition-all",placeholder:"Repeat new password"})]})]}),v&&(0,Te.jsx)("p",{className:"text-[13px] text-red-600 font-medium bg-red-50 p-3 rounded-xl border border-red-100",children:v}),D&&(0,Te.jsx)("p",{className:"text-[13px] text-green-600 font-medium bg-green-50 p-3 rounded-xl border border-green-100",children:D}),(0,Te.jsxs)("button",{type:"submit",disabled:u||!m,"data-testid":"reset-password-submit-btn",className:"btn-primary w-full justify-center h-12 disabled:opacity-60",children:[u?"Updating...":"Update password",!u&&(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]}),(0,Te.jsx)("button",{type:"button",onClick:()=>e("/business"),className:"text-[12.5px] font-medium text-[#6d46c6] hover:underline",children:"Back to sign in"})]})]}),(0,Te.jsx)("p",{className:"text-[11.5px] text-[#9ca3af] mt-10",children:"\xa9 2026 Uplaud AI. All rights reserved."})]}),(0,Te.jsxs)("div",{className:"hidden lg:flex relative overflow-hidden bg-[#261c4d] text-white p-14 flex-col justify-between noise",children:[(0,Te.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 grid-bg opacity-40"}),(0,Te.jsx)("div",{"aria-hidden":!0,className:"absolute -top-32 -right-32 w-[520px] h-[520px] rounded-full",style:{background:"radial-gradient(circle, rgba(94,234,212,0.22), transparent 60%)"}}),(0,Te.jsx)("div",{className:"relative",children:(0,Te.jsxs)("span",{className:"chip chip-dark",children:[(0,Te.jsx)(la,{className:"w-3.5 h-3.5 text-[#5eead4]",strokeWidth:2}
2),"Secure recovery"]})}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)("p",{className:"font-display text-[34px] leading-[1.1] max-w-[480px]",children:"Password resets are handled through Supabase Auth and expire automatically."}),(0,Te.jsx)("p",{className:"mt-5 text-[14px] leading-relaxed text-white/60 max-w-[420px]",children:"Open the newest reset email, set a fresh password, then sign in again."})]}),(0,Te.jsx)("div",{className:"relative text-[11px] font-mono text-white/40",children:"UPLAUD \xb7 BUSINESS WORKSPACE ACCESS"})]})]})}const DD=Kr("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]),wD=Kr("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]),kD=Kr("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),jD=Kr("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),CD=[{section:"Business Impact",items:[{to:"/business/roi-simulator",label:"ROI Simulator",icon:DD,testId:"nav-roi"},{to:"/business/referrals",label:"Warm Pipeline",icon:wa,testId:"nav-referrals"}]},{section:"Pre-Customer Growth",items:[{to:"/business/conversations",label:"Growth Signals",icon:wD,testId:"nav-conversations"}]},{section:"Amplification",items:[{to:"/business/social",label:"Growth Amplification",icon:Da,testId:"nav-social"},{to:"/business/content",label:"Content Agent",icon:_a,testId:"nav-content"}]},{section:"Data",items:[{to:"/business/import",label:"Sources",icon:Eg,testId:"nav-import"}]}];function ED(){const e=tn(),t=Xt(),n=qe((0,i.useState)(Vg()),2),r=n[0],a=n[1],s=qe((0,i.useState)([]),2),o=(s[0],s[1]);(0,i.useEffect)(()=>{const e=()=>{a(Vg())};return window.addEventListener("auth_change",e),window.addEventListener("storage",e),()=>{window.removeEventListener("auth_change",e),window.removeEventListener("storage",e)}},[]);const l=(0,i.useRef)(!1);(0,i.useEffect)(()=>{r||e("/business",{replace:!0})},[r,e]),(0,i.useEffect)(()=>{if(null===r||void 0===r||!r.token)return;let e=!1;return(async()=>{try{var t;const n=(await pD.auth.getSession()).data,s=(null===n||void 0===n||null===(t=n.session)||void 0===t?void 0:t.access_token)||r.token,i=(await ev.get("/auth/me",{headers:{Authorization:"Bearer ".concat(s),"X-Uplaud-Skip-Brand-Domain":"1"}})).data;if(e)return;const o=$g({email:i.email,name:i.name,role:i.role,workspace:i.company,company:i.company,brandDomain:i.selected_brand_domain,token:s});a(o)}catch(n){}})(),()=>{e=!0}},[null===r||void 0===r?void 0:r.token]),(0,i.useEffect)(()=>{r&&!l.current&&(l.current=!0,ev.get("/sources").then(n=>{let r=n.data;const a=Array.isArray(r)?r:[];if(o(a),0===a.length){["/business/import","/business/settings","/business/roi-simulator","/business"].includes(t.pathname)||e("/business/import",{replace:!0})}}).catch(()=>{}))},[r,t.pathname,e]);if(!r)return null;const u=r.workspace||r.company||"My Company",c=u?u.charAt(0).toUpperCase():"M";return(0,Te.jsxs)("div",{"data-testid":"business-dashboard",className:"min-h-screen w-full bg-[#faf9ff] text-[#111827] flex",children:[(0,Te.jsxs)("aside",{"data-testid":"dashboard-sidebar",className:"w-[248px] shrink-0 h-screen sticky top-0 bg-white border-r border-[#eeeaf6] flex flex-col",children:[(0,Te.jsx)("div",{className:"px-5 h-16 border-b border-[#eeeaf6] flex items-center",children:(0,Te.jsx)("a",{href:"/","data-testid":"sidebar-brand-logo",className:"flex items-center",children:(0,Te.jsx)("img",{src:"https://customer-assets-gfyr7b9c.emergentagent.net/job_ai-acquisition-hub-2/artifacts/24zfs0md_logo_white_background.webp",alt:"Uplaud",className:"h-9 w-auto object-contain mix-blend-multiply",style:{maxWidth:110}})})}),(0,Te.jsxs)("button",{"data-testid":"workspace-switcher",className:"mx-3 mt-3 mb-4 px-3 py-2.5 rounded-xl border border-[#eeeaf6] hover:border-[#d9d1ee] flex items-center gap-3 transition-colors text-left",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-lg bg-[#261c4d] text-white flex items-center justify-center font-display text-[13px] font-semibold",children:c}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"text-[13px] font-semibold text-[#111827] leading-tight truncate",children:u}),(0,Te.jsx)("div",{className:"text-[10.5px] text-[#9ca3af] font-mono truncate",children:"B2B SaaS Workspace"})]}),(0,Te.jsx)(Du,{className:"w-4 h-4 text-[#9ca3af] shrink-0"})]}),(0,Te.jsx)("nav",{className:"flex-1 overflow-y-auto px-2 pb-4",children:CD.map(e=>(0,Te.jsxs)("div",{className:"mb-4",children:[(0,Te.jsx)("div",{className:"px-3 py-1.5 text-[10.5px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:e.section}),(0,Te.jsx)("div",{className:"space-y-0.5",children:e.items.map(e=>(0,Te.jsx)(FD,f({},e),e.to))})]},e.section))}),(0,Te.jsxs)("div",{className:"border-t border-[#eeeaf6] p-3 space-y-1",children:[(0,Te.jsx)(FD,{to:"/business/settings",label:"Settings",icon:kD,testId:"nav-settings"}),(0,Te.jsxs)("button",{"data-testid":"sidebar-logout-btn",onClick:()=>{Kg(),e("/business",{replace:!0})},className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-[13px] text-[#4b5563] hover:bg-[#faf9ff] transition-colors",children:[(0,Te.jsx)(wg,{className:"w-4 h-4",strokeWidth:1.75}),"Log out"]})]})]}),(0,Te.jsxs)("main",{className:"flex-1 min-w-0",children:[(0,Te.jsx)(ND,{user:r,pathname:t.pathname}),(0,Te.jsx)("div",{"data-testid":"dashboard-content",className:"px-12 py-12 max-w-[1360px]",children:(0,Te.jsx)(Cn,{})})]})]})}function FD(e){let t=e.to,n=e.label,r=e.icon,a=e.testId;return(0,Te.jsxs)(dr,{to:t,"data-testid":a,className:e=>{let t=e.isActive;return"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-[13px] transition-colors ".concat(t?"bg-[#f5f3ff] text-[#261c4d] font-semibold":"text-[#4b5563] hover:bg-[#faf9ff]")},children:[(0,Te.jsx)(r,{className:"w-4 h-4",strokeWidth:1.75}),n]})}function ND(e){var t;let n=e.user,r=e.pathname;const a=(null===n||void 0===n?void 0:n.name)||(null===n||void 0===n||null===(t=n.email)||void 0===t?void 0:t.split("@")[0])||"User",s=a.split(" ").filter(
2Boolean).map(e=>e[0]).join("").slice(0,2).toUpperCase(),i={"/business/insights":"Growth Overview","/business/roi-simulator":"ROI Simulator","/business/import":"Data Sources","/business/interactions":"Untapped Opportunities","/business/conversations":"Growth Signals","/business/reviews":"Trust Assets","/business/social":"Growth Amplification","/business/content":"Content Agent","/business/referrals":"Warm Pipeline","/business/reddit":"High-Intent Demand","/business/settings":"Settings"}[r]||"Dashboard";return(0,Te.jsxs)("header",{"data-testid":"dashboard-topbar",className:"h-16 px-8 border-b border-[#eeeaf6] bg-white/80 backdrop-blur-xl sticky top-0 z-40 flex items-center gap-6",children:[(0,Te.jsx)("div",{"data-testid":"topbar-title",className:"text-[14px] font-display font-semibold text-[#111827]",children:i}),(0,Te.jsx)("span",{className:"text-[11px] font-mono text-[#9ca3af]",children:(null===n||void 0===n?void 0:n.workspace)||(null===n||void 0===n?void 0:n.company)||"My Company"}),(0,Te.jsxs)("div",{className:"ml-auto flex items-center gap-3",children:[(0,Te.jsx)("button",{"data-testid":"topbar-notifications-btn",className:"w-10 h-10 rounded-full hover:bg-[#faf9ff] flex items-center justify-center transition-colors",children:(0,Te.jsx)(jD,{className:"w-4 h-4 text-[#4b5563]",strokeWidth:1.75})}),(0,Te.jsx)("div",{"data-testid":"topbar-user-avatar",className:"w-9 h-9 rounded-full bg-[#261c4d] text-white text-[12px] font-semibold flex items-center justify-center",title:a,children:s})]})]})}const AD=Kr("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]),SD=Kr("cloud-upload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]),_D=Kr("file-spreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]),BD=Kr("messages-square",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]),TD=Kr("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),RD={demo:{label:"Demo call",color:"#6d46c6"},trial:{label:"Trial start",color:"#8f66d8"}
2,webinar:{label:"Webinar attended",color:"#b394e6"},event:{label:"Event / conference",color:"#5eead4"},onboarding:{label:"Onboarding",color:"#0f9b7c"},cs_checkin:{label:"CS check-in",color:"#4285F4"},qbr:{label:"QBR",color:"#a16207"},support:{label:"Support call",color:"#d97706"}},PD={pending:{label:"Not activated",tone:"grey"},prompt_sent:{label:"Prompt sent",tone:"purple"},feedback_received:{label:"Feedback captured",tone:"mint"},story_drafted:{label:"Testimonial drafted",tone:"purple"},awaiting_approval:{label:"Awaiting approval",tone:"amber"},approved:{label:"Approved",tone:"mint"},amplified:{label:"Amplified",tone:"mint"}},OD=[{id:"in_001",type:"demo",person:"Rohan Sethi",role:"VP Finance",company:"Blueprint Robotics",companyDomain:"blueprintrobotics.co",monthlySpend:"$180k",date:"2026-02-11",source:"Meta Ad \xb7 Finance Ops carousel",state:"feedback_received",signalScore:.94,note:"Loved the Amex MR earn rate. Asked about 1099 vendor limits."},{id:"in_002",type:"demo",person:"Kavita Iyer",role:"Controller",company:"Northwind Interiors",companyDomain:"northwindinteriors.com",monthlySpend:"$92k",date:"2026-02-10",source:"Google Search \xb7 'pay vendors credit card'",state:"story_drafted",signalScore:.91,note:"Switched from Bill.com. Wants case study on interior design vertical."},{id:"in_003",type:"trial",person:"Marcus Beltran",role:"CFO",company:"Halo Skincare",companyDomain:"haloskincare.co",monthlySpend:"$310k",date:"2026-02-09",source:"LinkedIn organic",state:"awaiting_approval",signalScore:.96,note:"Testimonial draft sent. Wants final review before publish."},{id:"in_004",type:"demo",person:"Priya Anand",role:"Head of AP",company:"Lumen Logistics",companyDomain:"lumenlogistics.io",monthlySpend:"$540k",date:"2026-02-09",source:"Google Ad \xb7 AP automation",state:"pending",signalScore:.88,note:"Attended demo. Went silent \u2014 high MRR potential."},{id:"in_005",type:"onboarding",person:"James Wu",role:"Founder",company:"Kettle & Fire Coffee",companyDomain:"kettlefire.co",monthlySpend:"$44k",date:"2026-02-08",source:"Podcast attribution",state:"approved",signalScore:.92,note:"Loved onboarding. Approved a full customer testimonial quote."},{id:"in_006",type:"webinar",person:"Diane Morales",role:"CFO",company:"Cirrus Health",companyDomain:"cirrushealth.co",monthlySpend:"$220k",date:"2026-02-07",source:"Ramp-Uplaud co-hosted webinar",state:"prompt_sent",signalScore:.83,note:"Attended 42 min. Q&A about compliance in healthcare payments."},{id:"in_007",type:"cs_checkin",person:"Ethan Grant",role:"Head of Finance",company:"Palermo Print",companyDomain:"palermoprint.com",monthlySpend:"$78k",date:"2026-02-06",source:"Renewal CS motion",state:"amplified",signalScore:.9,note:"Renewed 2yr. Testimonial amplified on LinkedIn + Reddit."},{id:"in_008",type:"qbr",person:"Sara Kim",role:"COO",company:"Trellis SaaS",companyDomain:"trellis.io",monthlySpend:"$412k",date:"2026-02-05",source:"Quarterly business review",state:"story_drafted",signalScore:.95,note:"QBR transcript surfaced 3 quotes worth activating."},{id:"in_009",type:"event",person:"Malik Reyes",role:"VP Ops",company:"Bolt Manufacturing",companyDomain:"boltmfg.co",monthlySpend:"$680k",date:"2026-02-03",source:"CFO Summit Chicago",state:"pending",signalScore:.86,note:"Booth conversation. Not yet in CRM."},{id:"in_010",type:"trial",person:"Nina Cortez",role:"Controller",company:"Meadowlark Foods",companyDomain:"meadowlark.co",monthlySpend:"$122k",date:"2026-02-02",source:"Referral from customer",state:"feedback_received",signalScore:.89,note:"Impressed with the vendor lookup. Feedback captured, testimonial draft pending."}],LD=[{id:"zoom_ai",label:"Zoom AI Companion",connected:!0,syncs:42,color:"#2d8cff"},{id:"gong",label:"Gong",connected:!0,syncs:128,color:"#8236f7"},{id:"fireflies",label:"Fireflies.ai",connected:!0,syncs:61,color:"#f97316"},{id:"fathom",label:"Fathom",connected:!1,syncs:0,color:"#0ea5e9"},{id:"hubspot",label:"HubSpot Meetings",connected:!0,syncs:34,color:"#ff7a59"}],ID=[{id:"g2",label:"G2",connected:!0,count:218,color:"#e35b3a"},{id:"capterra",label:"Capterra",connected:!0,count:96,color:"#ff9d28"},{id:"google",label:"Google Reviews",connected:!0,count:172,color:"#4285F4"},{id:"trustpilot",label:"Trustpilot",connected:!1,count:0,color:"#00b67a"},{id:"csv",label:"CSV / Flat file",connected:!0,count:41,color:"#6d46c6"}],MD=[{id:"rv_001",customer:"Rohan Sethi",handle:"@rsethi",rating:5,source:"G2",date:"2026-02-08",sentiment:"positive",tags:["amex","reconciliation","1099-vendors"],title:"The rare AP tool that pays for itself",body:"We moved $180k/mo of vendor payments to Amex through PayRewards. Qu
2ickBooks sync just works \u2014 the rewards ledger reconciles itself. We recouped the annual fee in month one.",verified:!0,location:"Austin, TX",ltv:"$18,400 subscription + rewards"},{id:"rv_002",customer:"Marcus Beltran",handle:"@mbeltran",rating:5,source:"Capterra",date:"2026-02-05",sentiment:"positive",tags:["cross-border","canada","cfo"],title:"$63k/yr of rewards leakage recovered",body:"Our CFO added a rewards P&L line for the first time. PayRewards processed cross-border GST vendors that Bill.com wouldn't touch. Board asks about it every quarter now.",verified:!0,location:"San Francisco, CA",ltv:"$24,900 subscription + rewards"},{id:"rv_003",customer:"Sara Kim",handle:"@sarakim",rating:5,source:"G2",date:"2026-02-02",sentiment:"positive",tags:["aws","saas","ebitda"],title:"$142k of AWS spend suddenly earns points",body:"Rewards became a hidden lever for our EBITDA. We route AWS + hosting invoices through PayRewards \u2014 points show up in our Amex account within 48h. Zero engineering required.",verified:!0,location:"New York, NY",ltv:"$31,000 subscription + rewards"},{id:"rv_004",customer:"James Wu",handle:"@jwu",rating:5,source:"Google",date:"2026-01-29",sentiment:"positive",tags:["onboarding","founder","quickbooks"],title:"Onboarding took less time than a coffee tasting",body:"Solo founder \u2014 I was manually paying green-coffee suppliers via ACH. PayRewards auto-detected every vendor from my QBO. 20 minutes later I was earning Amex points on every roast batch.",verified:!0,location:"Portland, OR",ltv:"$6,400 subscription + rewards"},{id:"rv_005",customer:"Ethan Grant",handle:"@egrant",rating:5,source:"Capterra",date:"2026-01-24",sentiment:"positive",tags:["renewal","espresso-machine","print"],title:"Bought a $12k espresso machine with our AP points",body:"Two years in, PayRewards is still the best AP decision we've made. We just bought a commercial espresso machine with Amex points earned paying paper suppliers.",verified:!0,location:"Chicago, IL",ltv:"$11,600 subscription + rewards"},{id:"rv_006",customer:"Nina Cortez",handle:"@ncortez",rating:4,source:"G2",date:"2026-01-20",sentiment:"positive",tags:["vendor-lookup","referral"],title:"The vendor lookup is uncanny",body:"Referred by a friend, converted mid-trial call. Paid $61k of vendor invoices in two weeks and covered a full team offsite with points. Wish there was multi-entity from day one.",verified:!0,location:"Denver, CO",ltv:"$9,800 subscription + rewards"},{id:"rv_007",customer:"Diane Morales",handle:"@dmorales",rating:5,source:"G2",date:"2026-01-15",sentiment:"positive",tags:["healthcare","compliance"],title:"Compliance-first AP with card rewards. Finally.",body:"As a healthcare CFO, compliance was non-negotiable. PayRewards has SOC 2 + PCI Level 1, and my controller earned $28k of Amex points in 90 days paying medical suppliers.",verified:!0,location:"Boston, MA",ltv:"$22,400 subscription + rewards"},{id:"rv_008",customer:"Malik Reyes",handle:"@mreyes",rating:5,source:"Google",date:"2026-01-10",
2sentiment:"positive",tags:["manufacturing","high-volume"],title:"Pushed $680k/mo through it, no hiccups",body:"Bolt Manufacturing pays 214 vendors monthly. PayRewards handles the whole book on Amex \u2014 points feed straight to our travel budget. Growth without spending more.",verified:!0,location:"Nashville, TN",ltv:"$34,800 subscription + rewards"},{id:"rv_009",customer:"Kavita Iyer",handle:"@kiyer",rating:5,source:"Capterra",date:"2026-01-06",sentiment:"positive",tags:["bill-com-switch","interior-design"],title:"Switched from Bill.com \u2014 never looking back",body:"Bill.com couldn't run our vendor payments on card. PayRewards did in 20 minutes. Our interior design projects fund themselves in points.",verified:!0,location:"Seattle, WA",ltv:"$8,900 subscription + rewards"},{id:"rv_010",customer:"Omar Khalil",handle:"@okhalil",rating:5,source:"G2",date:"2026-01-02",sentiment:"positive",tags:["ecommerce","shopify"],title:"Perfect for high-consideration Shopify brands",body:"We pay 3PLs, warehouses, and marketing agencies. PayRewards routes it all to our Chase Ink. Points cover our entire founder travel budget quarterly.",verified:!0,location:"London, UK",ltv:"$19,700 subscription + rewards"},{id:"rv_011",customer:"Sophie Laurent",handle:"@slaurent",rating:4,source:"Google",date:"2025-12-28",sentiment:"positive",tags:["support","responsive"],title:"Support team is genuinely great",body:"Every question got a same-day answer from a real human. Product works as advertised \u2014 I earn ~$4k in Amex MR every month I couldn't earn before.",verified:!0,location:"Portland, OR",ltv:"$6,400 subscription + rewards"},{id:"rv_012",customer:"Kevin O'Brien",handle:"@kobrien",rating:2,source:"Capterra",date:"2025-12-20",sentiment:"negative",tags:["support","delay","outage"],title:"Rough December outage",body:"48-hour delay in point posting during peak December ended up costing us a quarterly rewards target. Support was polite but slow.",verified:!0,location:"Phoenix, AZ",ltv:"$5,200 subscription + rewards"}],zD={rv_001:[{id:"r1",agent:"social",label:"Turn into LinkedIn AP-ops post",confidence:.94},{id:"r2",agent:"referral",label:"Refer-a-controller campaign",confidence:.91},{id:"r3",agent:"reddit",label:"Reply in r/Accounting thread",confidence:.82},{id:"r4",agent:"attribution",label:"Feature in Google Ads RSA",confidence:.78}],rv_002:[{id:"r1",agent:"social",label:"X post: 'rewards P&L line'",confidence:.96},{id:"r2",agent:"referral",label:"Cross-border CFO campaign",confidence:.93},{id:"r3",agent:"reddit",label:"r/smallbusiness Canada thread",confidence:.79}],rv_003:[{id:"r1",agent:"social",label:"LinkedIn carousel: 'hidden EBITDA lever'",confidence:.91},{id:"r2",agent:"attribution",label:"Meta lookalike from SaaS CFOs",confidence:.74}],rv_007:[{id:"r1",agent:"social",label:"Healthcare CFO testimonial \xb7 Instagram",confidence:.91},{id:"r2",agent:"referral",label:"Refer-a-CFO (healthcare)",confidence:.87}]},UD=[{id:"rd_001",subreddit:"r/Accounting",title:"Is there any legit way to pay vendors with a credit card?",author:"u/APcontroller",posted:"3 hours ago",upvotes:214,comments:87,sentiment:"opportunity",matchScore:.94,excerpt:"We push $200k/mo through wires. Feels criminal to leave that many points on the table. Anyone actually made vendor-card payments work at scale...",suggestedReply:{reviewId:"rv_001",body:"Not affiliated, but a controller I know moved $180k/mo to Amex via PayRewards \u2014 QuickBooks sync just works and it reconciles the rewards ledger automatically. Worth an eval before assuming vendors have to accept cards directly.",tone:"helpful-neutral"}},{id:"rd_002",subreddit:"r/smallbusiness",title:"Bill.com alternative for a Canadian small biz?",author:"u/norcalfounder",posted:"6 hours ago",upvotes:89,comments:34,sentiment:"opportunity",matchScore:.91,excerpt:"Bill.com won't run our GST vendors on card. Losing thousands in rewards. What are folks using...",suggestedReply:{reviewId:"rv_002",body:"A CFO at Halo Skincare (US+Canada operations) just switched \u2014 PayRewards handles cross-border GST vendors on card. Reported $63k/yr of recovered rewards leakage. Different pricing model than Bill.com so worth pricing out.",tone:"helpful-neutral"}},{id:"rd_003",subreddit:"r/SaaS",title:"Anyone else running AWS bills through a card for points?",author:"u/saascfo",posted:"1 day ago",upvotes:456,comments:178,sentiment:"opportunity",matchScore:.87,excerpt:"Our AWS invoice is $140k. Feels like there should be a legit way to route this through Amex...",suggestedReply:{reviewId:"rv_003",body:"Sara @ Trellis SaaS is doing exactly this via PayRewards \u2014 $142k of monthly AWS earning MR. Zero engineering required, just points into your Amex account. Sharing because I looked into this for months and finally found something that worked.",tone:"helpful-neutral"}},{id:"rd_004",subreddit:"r/nonprofit",title:"AP tool that works with restricted funds + card rewards?",author:"u/ednonprofit",posted:"2 days ago",upvotes:67,comments:22,sentiment:"opportunity",matchScore:.83,excerpt:"We need vendor payment automation but our board wants any credit-card rewards routed transparently...",suggestedReply:{reviewId:"rv_005",body:"PayRewards has a decent nonprofit angle \u2014 the rewards ledger is fully separated and auditable. Palermo Print (2yr customer) uses the export for their board packet. Might fit your restricted-fund need.",tone:"empathetic"}}],qD={overview:{eyebrow:"Business Impact \xb7 Last 30 days",question:"How many new prospects did Uplaud activate \u2014 and where did they land?",northStar:{label:"Prospects activated",value:"388",delta:"+42% vs prior 30 days",trend:"up",attribution:"388 PayRewards demo attendees, trial users and QBR contacts turned into pipeline signals \xb7 172 approved testimonials \xb7 94 warm introductions \xb7 48 SQLs created in HubSpot \xb7 21 new customers."},action:{title:"Activate 253 demo attendees who never received a feedback prompt",impact:"Projected against your current conversion rates: ~154 signals \xb7 ~37 warm intros \xb7 ~6 new customers",cta:"Activate demo attendees",to:"/business/interactions"}},interactions:{eyebrow:"Untapped Opportunities",question:"Which PayRewards leads represent the biggest untapped pipeline?",northStar:{label:"Unactivated leads",value:"253",delta:"across demos, trials, webinars, QBRs",trend:"up",attribution:"Demo attendees, trial users and QBR contacts who never received a feedback prompt. Every one has a name, company and monthly vend
2or spend in your CRM."},action:{title:"Send feedback prompts to top 20 attendees by monthly vendor spend",impact:"Projected: ~12 testimonials \xb7 ~8 warm intros \xb7 ~2 new customers",cta:"Prompt top 20 now",to:null}},conversations:{eyebrow:"Growth Signals",question:"What are your demo leads and customers telling you that can lift growth?",northStar:{label:"Acquisition-ready insights",value:"3",delta:"themes with buyer-language ready to lift Meta + Google ads",trend:"up",attribution:"Extracted from 61 demo, trial and QBR transcripts (Gong \xb7 Zoom AI \xb7 Fireflies). Every theme is traceable to source calls."},action:{title:'"Rewards P&L line" language is repeated by 22 CFO buyers on call',impact:"Rewrite Meta CFO creative with this phrase \u2014 projected 1.7\xd7 CTR based on ad-copy benchmark",cta:"Send themes to Ads Manager",to:null}},reviews:{eyebrow:"Trust Assets",question:"What customer trust have you captured \u2014 and what pipeline is it earning?",northStar:{label:"5\u2605 testimonials captured",value:"218",delta:"12 high-LTV unactivated \xb7 $284k projected pipeline",trend:"up",attribution:"218 verified 5\u2605 reviews across G2, Capterra and Google. 12 come from customers with monthly vendor spend > $100k that have never been amplified."},action:{title:"Amplify Rohan S. (Blueprint Robotics \xb7 $180k/mo) as a LinkedIn testimonial",impact:"Highest-LTV unactivated advocate \xb7 projected 18.4k qualified reach",cta:"Draft the post",to:"/business/social"}},referrals:{eyebrow:"Warm Pipeline",question:"How many warm introductions did PayRewards customers deliver?",northStar:{label:"Warm introductions delivered",value:"94",delta:"42 clicked \xb7 22 booked \xb7 6 new customers",trend:"up",attribution:"Every warm intro is a named prospect in HubSpot sourced from an existing PayRewards customer. Blended CAC on this cohort: $210 vs $1,204 paid baseline."},action:{title:"Launch Healthcare CFO warm-intros campaign (22 seeded reviewers)",impact:"Projected: ~14 accepts \xb7 ~6 booked calls \xb7 ~1\u20132 new customers based on last campaign performance",cta:"Launch campaign",to:null}},social:{eyebrow:"Growth Amplification",question:"How much qualified reach did approved testimonials generate?",northStar:{label:"Qualified impressions from testimonials",value:"84.3k",delta:"27 demos booked \xb7 attributed via UTM",trend:"up",attribution:"Reach and demo-booking counts pulled from your LinkedIn + X analytics. Testimonial-anchored posts outperform brand posts by 3.2\xd7 on your channel."},action:{title:"Amplify Marcus B.'s approved testimonial \u2014 highest projected demand this week",impact:"Projected 42.1k reach \xb7 3.1% engagement \xb7 ~9 demo requests",cta:"Amplify to LinkedIn + X",to:null}},reddit:{eyebrow:"High-Intent Demand",question:"How much high-intent demand was captured from existing customer proof?",northStar:{label:"Attributed demo requests",value:"8",delta:"from 13.6k impressions \xb7 4 approved replies",trend:"up",attribution:"Demo bookings attributed to Reddit via UTM. Every reply is anchored to a real, named PayRewards customer testimonial \u2014 never generic marketing language."}
2,action:{title:"Approve 4 helpful replies drafted for r/Accounting & r/SaaS threads",impact:"Projected +3.4k impressions per approved reply \xb7 ~2 demo requests",cta:"Review drafts",to:null}},import:{eyebrow:"Data Sources",question:"Where is your Growth Engine listening today?",northStar:{label:"Signals synced",value:"1,521",delta:"interactions \xb7 687 reviews \xb7 live from 8 sources",trend:"up",attribution:"Connect a source once \u2014 Uplaud continuously extracts signals from every meeting and review and updates attribution against HubSpot."},action:{title:"Connect Fathom to close the 12% of demo calls we're missing",impact:"Est. +42 conversations/mo \xb7 +$68k of pipeline visibility",cta:"Connect Fathom",to:null}}},WD={overview:{eyebrow:"Intelligent action",headline:"76 of your 253 unactivated demo attendees match every high-conversion signal",reasoning:[{label:"Monthly vendor spend",value:"\u2265 $200k \xb7 76 people"},{label:"Sentiment on call",value:"positive \xb7 from Gong + Zoom AI"},{label:"Peer overlap",value:"1+ PayRewards customer in their LinkedIn network"}],outcome:"Launch a segmented referral campaign to just this cohort. Projected: ~24 warm intros \xb7 ~5 new customers \xb7 ~$168k new ARR at a $210 CAC \u2014 vs $1,204 paid baseline.",cta:"Segment & launch to 76",to:"/business/interactions"},interactions:{eyebrow:"Intelligent action",headline:"22 controllers went silent after demo \u2014 they're your fastest path to referrals",reasoning:[{label:"Role match",value:"Controllers / VPs of Finance (highest referral rate)"},{label:"Signal score",value:"\u2265 0.88 on transcript \xb7 buying-phase questions asked"},{label:"Peer overlap",value:"Every one has a PayRewards customer in their network"}],outcome:"Re-engage with a controller-specific testimonial (Rohan S. \u2192 5\u2605, same persona). Projected ~11 responses \xb7 ~4 warm intros \xb7 ~1 new customer.",cta:"Re-engage the 22",to:null},conversations:{eyebrow:"Intelligent action",headline:'"Rewards P&L line" is the exact language 22 CFO buyers used on call',reasoning:[{label:"Frequency",value:"22 mentions across 18 conversations"},{label:"Buyer type",value:"CFOs at $10M+ ARR SaaS + fintech"},{label:"Ad performance",value:"Current CFO creative CTR 1.2% \xb7 benchmark 2.0%+"}],outcome:"Rewrite your Meta CFO creative with this phrase. Projected 1.7\xd7 CTR uplift \xb7 ~34 additional demos/mo based on your current spend.",cta:"Send to Ads Manager",to:null},reviews:{eyebrow:"Intelligent action",headline:"Rohan S. is your highest-LTV unactivated 5\u2605 \u2014 worth 3 warm intros",reasoning:[{label:"Customer LTV",value:"$18.4k/yr subscription + rewards"},{label:"Peer influence",value:"3 controllers in his network already booked demos"},{label:"Language match",value:'"Pays for itself" phrase = highest-CTR ad copy'}],outcome:"Amplify as a LinkedIn testimonial with a founder-tone caption. Projected 18.4k qualified reach \xb7 ~3 warm intros \xb7 ~1 new customer.",cta:"Draft the post",to:"/business/social"},referrals:{eyebrow:"Intelligent action",headline:"The Healthcare CFO cohort has 82% peer-overlap \u2014 highest conversion probability",reasoning:[{label:"Seed advocate",value:"Diane Morales (Cirrus Health \xb7 5\u2605 \xb7 $220k/mo spend)"},{label:"Peer overlap",value:"18 of 22 target CFOs share \u22652 mutual LinkedIn connections"},{label:"Historical benchmark",value:"Peer-overlap \u2265 70% converts at 4.2\xd7 the baseline"}],outcome:"Launch the campaign now. Projected: ~14 accepts \xb7 ~6 booked \xb7 ~1\u20132 new customers at CAC ~$168.",cta:"Launch campaign",to:null},social:{eyebrow:"Intelligent action",headline:"Marcus B.'s CFO testimonial matches 3 open Meta audience segments",reasoning:[{label:"Audience fit",value:"US SaaS CFOs \xb7 Canadian ops \xb7 Bill.com refugees"},{label:"Language performance",value:'"$63k of rewards leakage" scored top 3% predicted CTR'},{label:"Freshness",value:"Approved 2 days ago \xb7 under the 7-day virality window"}],outcome:"Amplify to LinkedIn + X now. Projected 42.1k qualified reach \xb7 ~9 demo requests based on your last 3 amplifications.",cta:"Amplify now",to:null},reddit:{eyebrow:"Intelligent action",headline:"4 threads today match a specific PayRewards customer testimonial",reasoning:[{label:"Match quality",value:"94% average match score \xb7 anchored to real quotes"},{label:"Thread velocity",value:"3 posted in the last 6h \xb7 under-answered"},{label:"Historical benchmark",value:"Reply-per-thread produces 2 demo requests on average"}],outcome:"Approve 4 helpful, source-anchored replies. Projected +13.6k impressions \xb7 ~8 attributed demo requests.",cta:"Review the 4 drafts",to:null}},HD={new:{label:"New",tone:"purple"},clicked:{label:"Clicked",tone:"purple"},booked:{label:"Meeting booked",tone:"amber"},demoed:{label:"Demoed",tone:"amber"},negotiation:{label:"In negotiation",tone:"amber"}
2,converted:{label:"Closed-won",tone:"mint"},cold:{label:"Cold",tone:"grey"}},VD={demosAttendedMo:641,demoToCustomer:3.3,paidCac:1204},GD={extractionRate:60,approvalRate:44,introsPerTestimonial:.55,warmToCustomer:22,uplaudCac:186},$D={paid:[{key:"demosAttendedMo",label:"Demos attended / month",hint:"Meta + Google \u2192 demo booked & attended",step:10,suffix:""},{key:"demoToCustomer",label:"Demo \u2192 paid customer",hint:"Your current close rate on paid demos",step:.1,suffix:"%"},{key:"paidCac",label:"Paid CAC",hint:"Blended cost per paid-acquired customer",step:25,prefix:"$"}],uplaud:[{key:"extractionRate",label:"Feedback capture rate",hint:"% of demo attendees Uplaud activates",step:1,suffix:"%"},{key:"approvalRate",label:"Testimonial approval",hint:"% of feedback approved by customer",step:1,suffix:"%"},{key:"introsPerTestimonial",label:"Warm intros per testimonial",hint:"Referral yield of an approved testimonial",step:.05,suffix:""},{key:"warmToCustomer",label:"Warm intro \u2192 customer",hint:"Historically 3.1\xd7 your paid close rate",step:1,suffix:"%"},{key:"uplaudCac",label:"Uplaud CAC",hint:"Blended CAC on the referral cohort",step:10,prefix:"$"}]},KD=Kr("file-check",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]),QD=Kr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function YD(e){let t=e.eyebrow,n=e.question,r=e.subhead,a=e.valueChain,s=e.northStar,i=e.smartAction,o=e.action,l=e.onAction;const u=tn();return(0,Te.jsxs)("section",{"data-testid":"page-hero",className:"pb-6 border-b border-[#eeeaf6] mb-8",children:[(0,Te.jsx)("div",{"data-testid":"page-hero-eyebrow",className:"text-[11px] font-mono uppercase tracking-[0.22em] text-[#9ca3af]",children:t}),(0,Te.jsx)("h1",{"data-testid":"page-hero-question",className:"mt-3 font-display font-semibold tracking-tight text-[#111827] text-[26px] md:text-[34px] leading-[1.1] max-w-[880px]",children:n}),r&&(0,Te.jsx)("p",{className:"mt-3 text-[14px] leading-relaxed text-[#4b5563] max-w-[640px]",children:r}),(a||s||i||o)&&(0,Te.jsxs)("div",{className:"mt-6 grid grid-cols-1 lg:grid-cols-12 gap-6 items-stretch",children:[(0,Te.jsxs)("div",{className:"lg:col-span-7 h-full",children:[a&&(0,Te.jsx)(JD,{data:a}),!a&&s&&(0,Te.jsx)(XD,{data:s,nav:u})]}),(i||o)&&(0,Te.jsx)(ZD,{data:i||null,legacy:i?null:o,onAction:l,nav:u})]})]})}function JD(e){let t=e.data;return(0,Te.jsxs)("div",{"data-testid":"value-chain",className:"space-y-3",children:[(0,Te.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:"The Uplaud value chain \xb7 this month"}),(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white overflow-hidden",children:[(0,Te.jsxs)("div",{className:"relative px-6 pt-8 pb-6",children:[(0,Te.jsx)("div",{className:"absolute left-6 right-6 top-[54px] h-[2px] bg-gradient-to-r from-[#e2d9f5] via-[#8f66d8] to-[#5eead4] rounded-full","aria-hidden":!0}),(0,Te.jsx)("div",{className:"relative grid grid-cols-6 gap-2",children:t.stages.map((e,t)=>(0,Te.jsxs)("button",{"data-testid":"chain-".concat(e.id),className:"group flex flex-col items-center text-center focus:outline-none",children:[(0,Te.jsx)("div",{className:"relative z-10",children:(0,Te.jsx)("div",{className:"w-8 h-8 rounded-full bg-white border-[2px] flex items-center justify-center font-mono text-[10px] font-semibold group-hover:scale-110 transition-transform",style:{borderColor:t<=2?"#8f66d8":t<=4?"#6d46c6":"#5eead4",color:t<=2?"#8f66d8":t<=4?"#6d46c6":"#0f9b7c"},children:t+1})}),(0,Te.jsx)("div",{className:"mt-4 font-display font-semibold text-[28px] leading-none text-[#111827]",children:e.value}),(0,Te.jsx)("div",{className:"mt-2 text-[11px] font-semibold text-[#111827] leading-tight px-1",children:e.label}),(0,Te.jsx)("div",{className:"mt-1 text-[10px] font-mono text-[#9ca3af] leading-tight px-1",children:e.subline}),t>0&&e.conversionFromPrev&&"\u2014"!==e.conversionFromPrev&&(0,Te.jsxs)("div",{className:"mt-3 inline-flex items-center gap-1 text-[10px] font-mono text-[#6d46c6] bg-[#f5f3ff] border border-[#e2d9f5] rounded-full px-2 py-0.5",children:[(0,Te.jsx)("span",{"aria-hidden":!0,
2children:"\u21b3"}),e.conversionFromPrev]})]},e.id))})]}),(0,Te.jsxs)("div",{className:"px-6 py-5 bg-[#faf9ff] border-t border-[#eeeaf6] flex items-end justify-between gap-4 flex-wrap",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:t.outcome.label}),(0,Te.jsxs)("div",{className:"mt-1 flex items-baseline gap-3",children:[(0,Te.jsx)("div",{className:"font-display font-semibold text-[32px] leading-none text-[#111827]",children:t.outcome.value}),(0,Te.jsx)("div",{className:"text-[12px] text-[#4b5563]",children:t.outcome.subline})]})]}),(0,Te.jsxs)("div",{className:"text-right",children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:"Blended CAC"}),(0,Te.jsxs)("div",{className:"mt-1 flex items-baseline gap-2 justify-end",children:[(0,Te.jsx)("span",{className:"font-display font-semibold text-[22px] leading-none text-[#0f9b7c]",children:t.outcome.cac}),(0,Te.jsx)("span",{className:"text-[11px] font-mono text-[#9ca3af] line-through",children:t.outcome.cacBaseline})]}),(0,Te.jsx)("div",{className:"mt-1 text-[10.5px] font-mono text-[#0f9b7c]",children:t.outcome.cacDelta})]})]})]})]})}function XD(e){var t,n;let r=e.data,a=e.nav;return(0,Te.jsxs)("div",{"data-testid":"page-hero-northstar",className:"h-full flex flex-col rounded-2xl border border-[#eeeaf6] bg-white p-6 md:p-7",children:[(0,Te.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:r.label}),(0,Te.jsxs)("div",{className:"mt-3 flex items-baseline gap-3 flex-wrap",children:[(0,Te.jsx)("div",{"data-testid":"page-hero-northstar-value",className:"font-display font-semibold text-[#111827] text-[40px] md:text-[46px] leading-[0.95] tracking-tight",children:r.value}),r.delta&&(0,Te.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[12.5px] font-mono ".concat("text-[#0f9b7c]"),children:[(0,Te.jsx)(aa,{className:"w-3.5 h-3.5",strokeWidth:2}),r.delta]})]}),r.attribution&&(0,Te.jsx)("p",{className:"mt-3 text-[13px] leading-relaxed text-[#4b5563]",children:r.attribution}),r.latestTestimonial&&(0,Te.jsxs)("div",{"data-testid":"hero-latest-testimonial",className:"mt-5 rounded-xl border border-[#bbf7d0] bg-[#f0fdf4] p-4 text-left transition-all relative overflow-hidden",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-[10px] font-mono font-semibold bg-[#dcfce7] text-[#166534] border border-[#bbf7d0]",children:[(0,Te.jsx)(KD,{className:"w-3.5 h-3.5 text-[#166534]",strokeWidth:2}),"LATEST CUSTOMER-APPROVED TESTIMONIAL"]}),r.latestTestimonial.approvedAt&&(0,Te.jsxs)("span",{className:"ml-auto text-[10px] font-mono text-[#166534]/75",children:["approved ",new Date(r.latestTestimonial.approvedAt).toLocaleDateString()]})]}),(0,Te.jsxs)("p",{className:"mt-2.5 text-[12.5px] leading-relaxed text-[#111827] italic font-display",children:["\u201c",r.latestTestimonial.body,"\u201d"]}),(0,Te.jsxs)("div",{className:"mt-2.5 pt-2.5 border-t border-[#bbf7d0]/40 flex items-center justify-between gap-2 flex-wrap",children:[(0,Te.jsxs)("div",{className:"text-[11px] font-mono text-[#6d46c6] font-semibold",children:["\u2014 ",r.latestTestimonial.attribution]}),(0,Te.jsx)("button",{"data-testid":"hero-latest-amplify-btn",onClick:()=>{a("/business/social")},className:"text-[11.5px] font-bold text-[#166534] hover:text-[#14532d] hover:underline whitespace-nowrap flex items-center gap-1",children:"Amplify across channels \u2192"})]})]}),((null===(t=r.stats)||void 0===t?void 0:t.length)>0||r.cta)&&(0,Te.jsxs)("div",{className:"mt-auto pt-4 space-y-3",children:[(null===(n=r.stats)||void 0===n?void 0:n.length)>0&&(0,Te.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3","data-testid":"page-hero-northstar-stats",children:r.stats.map((e,t)=>(0,Te.jsxs)("div",{"data-testid":"page-hero-northstar-stat-".concat(t),className:"rounded-xl border border-[#eeeaf6] bg-[#faf9ff] px-3.5 py-2.5 min-w-0",children:[(0,Te.jsx)("div",{className:"text-[9.5px] font-mono uppercase tracking-[0.14em] text-[#9ca3af] truncate",children:e.label}),(0,Te.jsx)("div",{className:"mt-1 font-display font-semibold text-[16.5px] text-[#111827] leading-none truncate",children:e.value})]},t))}),r.cta&&(0,Te.jsxs)("button",{"data-testid":"northstar-cta-btn",onClick:()=>a(r.cta.to),className:"btn-secondary h-9 !py-0 !text-[12.5px]",children:[r.cta.label,(0,Te.jsx)(Qr,{className:"w-3.5 h-3.5",strokeWidth:1.75})]})]})]})}function ZD(e){let t=e.data,n=e.legacy,r=e.onAction,a=e.nav;if(!t&&!n)return null;return(0,Te.jsxs)("aside",{"data-testid":"page-hero-action",className:"lg:col-span-5 rounded-2xl bg-[#faf9ff] border border-[#eeeaf6] p-6",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(la,{className:"w-3.5 h-3.5 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#6d46c6]",children:(null===t||void 0===t?void 0:t.eyebrow)||"Next best action"})]}),(0,Te.jsx)("div",{"data-testid":"page-hero-action-title",className:"mt-3 font-display text-[16px] leading-[1.3] font-semibold text-[#111827]",children:(null===t||void 0===t?void 0:t.headline)||(null===n||void 0===n?void 0:n.title)}),(null===t||void 0===t?void 0:t.reasoning)&&(0,Te.jsx)("ul",{className:"mt-4 space-y-2",children:t.reasoning.map((e,t)=>(0,Te.jsxs)("li",{"data-testid":"nba-reason-".concat(t),className:"flex items-start gap-2 text-[12px] leading-snug",children:[(0,Te.jsx)(QD,{className:"w-3 h-3 text-[#6d46c6] mt-1 shrink-0",strokeWidth:2}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("span",{className:"text-[#111827] font-medium",children:[e.label,":"]}
2)," ",(0,Te.jsx)("span",{className:"text-[#4b5563]",children:e.value})]})]},t))}),((null===t||void 0===t?void 0:t.outcome)||(null===n||void 0===n?void 0:n.impact))&&(0,Te.jsx)("p",{className:"mt-4 pt-4 border-t border-[#eeeaf6] text-[12.5px] leading-relaxed text-[#4b5563]",children:(null===t||void 0===t?void 0:t.outcome)||(null===n||void 0===n?void 0:n.impact)}),(0,Te.jsxs)("button",{"data-testid":"page-hero-action-cta",onClick:()=>{if(r)return r();null!==t&&void 0!==t&&t.to&&a(t.to),null!==n&&void 0!==n&&n.to&&a(n.to)},className:"btn-primary mt-5 h-10 !py-0",children:[(null===t||void 0===t?void 0:t.cta)||(null===n||void 0===n?void 0:n.cta),(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]})}function ew(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>function(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)},[])}const tw=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];var nw,rw="dismissableLayer.update",aw="dismissableLayer.pointerDownOutside",sw="dismissableLayer.focusOutside",iw=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ow=i.forwardRef((e,t)=>{var n;const r=e.disableOutsidePointerEvents,a=void 0!==r&&r,s=e.onEscapeKeyDown,o=e.onPointerDownOutside,l=e.onFocusOutside,u=e.onInteractOutside,c=e.onDismiss,d=Oe(e,tw),h=i.useContext(iw),p=qe(i.useState(null),2),m=p[0],x=p[1],g=null!==(n=null===m||void 0===m?void 0:m.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,v=qe(i.useState({}),2)[1],b=Oo(t,e=>x(e)),y=Array.from(h.layers),D=qe([...h.layersWithOutsidePointerEventsDisabled].slice(-1),1)[0],w=y.indexOf(D),k=m?y.indexOf(m):-1,j=h.layersWithOutsidePointerEventsDisabled.size>0,C=k>=w,E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=ew(e),r=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){cw(aw,n,s,{discrete:!0})};const s={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...h.branches].some(e=>e.contains(t));C&&!n&&(null===o||void 0===o||o(e),null===u||void 0===u||u(e),e.defaultPrevented||null===c||void 0===c||c())},g),F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=ew(e),r=i.useRef(!1);return i.useEffect(()=>{const e=e=>{if(e.target&&!r.current){cw(sw,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...h.branches].some(e=>e.contains(t))||(null===l||void 0===l||l(e),null===u||void 0===u||u(e),e.defaultPrevented||null===c||void 0===c||c())},g);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=ew(e);i.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{k===h.layers.size-1&&(null===s||void 0===s||s(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},g),i.useEffect(()=>{if(m)return a&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(nw=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),uw(),()=>{a&&1===h.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=nw)}},[m,g,a,h]),i.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),uw())},[m,h]),i.useEffect(()=>{const e=()=>v({});return document.addEventListener(rw,e),()=>document.removeEventListener(rw,e)},[]),(0,Te.jsx)(Zo.div,f(f({},d),{},{ref:b,style:f({pointerEvents:j?C?"auto":"none":void 0},e.style),onFocusCapture:Ko(e.onFocusCapture,F.onFocusCapture),onBlurCapture:Ko(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:Ko(e.onPointerDownCapture,E.onPointerDownCapture)}))});ow.displayName="DismissableLayer";var lw=i.forwardRef((e,t)=>
2{const n=i.useContext(iw),r=i.useRef(null),a=Oo(t,r);return i.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,Te.jsx)(Zo.div,f(f({},e),{},{ref:a}))});function uw(){const e=new CustomEvent(rw);document.dispatchEvent(e)}function cw(e,t,n,r){let a=r.discrete;const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),a?function(e,t){e&&yr.flushSync(()=>e.dispatchEvent(t))}(s,i):s.dispatchEvent(i)}lw.displayName="DismissableLayerBranch";const dw=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];var hw="focusScope.autoFocusOnMount",fw="focusScope.autoFocusOnUnmount",pw={bubbles:!1,cancelable:!0},mw=i.forwardRef((e,t)=>{const n=e.loop,r=void 0!==n&&n,a=e.trapped,s=void 0!==a&&a,o=e.onMountAutoFocus,l=e.onUnmountAutoFocus,u=Oe(e,dw),c=qe(i.useState(null),2),d=c[0],h=c[1],p=ew(o),m=ew(l),x=i.useRef(null),g=Oo(t,e=>h(e)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(s){let e=function(e){if(v.paused||!d)return;const t=e.target;d.contains(t)?x.current=t:bw(x.current,{select:!0})},t=function(e){if(v.paused||!d)return;const t=e.relatedTarget;null!==t&&(d.contains(t)||bw(x.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bw(d)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return d&&r.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[s,d,v.paused]),i.useEffect(()=>{if(d){yw.add(v);const t=document.activeElement;if(!d.contains(t)){const n=new CustomEvent(hw,pw);d.addEventListener(hw,p),d.dispatchEvent(n),n.defaultPrevented||(!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.select,r=void 0!==n&&n;const a=document.activeElement;for(const s of e)if(bw(s,{select:r}),document.activeElement!==a)return}((e=xw(d),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&bw(d))}return()=>{d.removeEventListener(hw,p),setTimeout(()=>{const e=new CustomEvent(fw,pw);d.addEventListener(fw,m),d.dispatchEvent(e),e.defaultPrevented||bw(null!==t&&void 0!==t?t:document.body,{select:!0}),d.removeEventListener(fw,m),yw.remove(v)},0)}}var e},[d,p,m,v]);const b=i.useCallback(e=>{if(!r&&!s)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,a=function(e){const t=xw(e),n=gw(t,e),r=gw(t.reverse(),e);return[n,r]}(t),s=qe(a,2),i=s[0],o=s[1];i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&bw(o,{select:!0})):(e.preventDefault(),r&&bw(i,{select:!0})):n===t&&e.preventDefault()}},[r,s,v.paused]);return(0,Te.jsx)(Zo.div,f(f({tabIndex:-1},u),{},{ref:g,onKeyDown:b}))});function xw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gw(e,t){for(const n of e)if(!vw(n,{upTo:t}))return n}function vw(e,t){let n=t.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function bw(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,n=void 0!==t&&t;if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&n&&e.select()}}mw.displayName="FocusScope";var yw=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null===n||void 0===n||n.pause()),e=Dw(e,t),e.unshift(t)},remove(t){var n;e=Dw(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Dw(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const ww=["container"];var kw=i.forwardRef((e,t)=>
2{var n;const r=e.container,a=Oe(e,ww),s=qe(i.useState(!1),2),o=s[0],l=s[1];Qo(()=>l(!0),[]);const u=r||o&&(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body);return u?yr.createPortal((0,Te.jsx)(Zo.div,f(f({},a),{},{ref:t})),u):null});kw.displayName="Portal";var jw=0;function Cw(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Ew()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Ew()),jw++,()=>{1===jw&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),jw--}},[])}function Ew(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Fw=function(){return Fw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Fw.apply(this,arguments)};function Nw(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}Object.create;function Aw(e,t,n){if(n||2===arguments.length)for(var r,a=0,s=t.length;a<s;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Sw="right-scroll-bar-position",_w="width-before-scroll-bar";function Bw(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var Tw="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,Rw=new WeakMap;function Pw(e,t){var n=function(e,t){var n=(0,i.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}(t||null,function(t){return e.forEach(function(e){return Bw(e,t)})});return Tw(function(){var t=Rw.get(n);if(t){var r=new Set(t),a=new Set(e),s=n.current;r.forEach(function(e){a.has(e)||Bw(e,null)}),a.forEach(function(e){r.has(e)||Bw(e,s)})}Rw.set(n,e)},[e]),n}function Ow(e){return e}function Lw(e,t){void 0===t&&(t=Ow);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter(function(e){return e!==a})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var s=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(s)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return a}var Iw=function(e){void 0===e&&(e={});var t=Lw(null);return t.options=Fw({async:!0,ssr:!1},e),t}(),Mw=function(){},zw=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Mw,onWheelCapture:Mw,onTouchMoveCapture:Mw}),a=r[0],s=r[1],o=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,x=e.inert,g=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,y=e.gapMode,D=Nw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,k=Pw([n,t]),j=Fw(Fw({},D),a);return i.createElement(i.Fragment,null,d&&i.createElement(w,{sideCar:Iw,removeScrollBar:c,shards:h,noRelative:p,noIsolation:m,inert:x,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?i.cloneElement(i.Children.only(l),Fw(Fw({},j),{ref:k})):i.createElement(b,Fw({},j,{className:u,ref:k}),l))});zw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zw.classNames={fullWidth:_w,zeroRight:Sw};var Uw,qw=function(e){var t=e.sideCar,n=Nw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,Fw({},n))};
vendor: 4,525 bytes, line 2
2qw.isSideCarExport=!0;function Ww(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Uw||n.nc;return t&&e.setAttribute("nonce",t),e}var Hw=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=Ww())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vw=function(){var e=function(){var e=Hw();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Gw={left:0,top:0,right:0,gap:0},$w=function(e){return parseInt(e||"",10)||0},Kw=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Gw;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[$w(n),$w(r),$w(a)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Qw=Vw(),Yw="data-scroll-locked",Jw=function(e,t,n,r){var a=e.left,s=e.top,i=e.right,o=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(o,"px ").concat(r,";\n  }\n  body[").concat(Yw,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(a,"px;\n    padding-top: ").concat(s,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(o,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Sw," {\n    right: ").concat(o,"px ").concat(r,";\n  }\n  \n  .").concat(_w," {\n    margin-right: ").concat(o,"px ").concat(r,";\n  }\n  \n  .").concat(Sw," .").concat(Sw," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(_w," .").concat(_w," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(Yw,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(o,"px;\n  }\n")},Xw=function(){var e=parseInt(document.body.getAttribute(Yw)||"0",10);return isFinite(e)?e:0},Zw=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;i.useEffect(function(){return document.body.setAttribute(Yw,(Xw()+1).toString()),function(){var e=Xw()-1;e<=0?document.body.removeAttribute(Yw):document.body.setAttribute(Yw,e.toString())}},[]);var s=i.useMemo(function(){return Kw(a)},[a]);return i.createElement(Qw,{styles:Jw(s,!t,a,n?"":"!important")})},ek=!1;if("undefined"!==typeof window)try{var tk=Object.defineProperty({},"passive",{get:function(){return ek=!0,!0}});window.addEventListener("test",tk,tk),window.removeEventListener("test",tk,tk)}catch(nN){ek=!1}var nk=!!ek&&{passive:!1},rk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},ak=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),sk(e,r)){var a=ik(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},sk=function(e,t){return"v"===e?function(e){return rk(e,"overflowY")}(t):function(e){return rk(e,"overflowX")}(t)},ik=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},ok=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},lk=function(e){return[e.deltaX,e.deltaY]},uk=function(e){return e&&"current"in e?e.current:e},ck=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},dk=0,hk=[];function fk(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pk=(mk=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),a=i.useState(dk++)[0],s=i.useState(Vw)[0],o=i.useRef(e);i.useEffect(function(){o.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));
vendor: 4,155 bytes, line 2
2var t=Aw([e.lockRef.current],(e.shards||[]).map(uk),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var a,s=ok(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-s[0],u="deltaY"in e?e.deltaY:i[1]-s[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=window.getSelection(),f=h&&h.anchorNode;if(f&&(f===c||f.contains(c)))return!1;var p=ak(d,c);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=ak(d,c)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=a),!a)return!0;var m=r.current||a;return function(e,t,n,r,a){var s=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=s*r,o=n.target,l=t.contains(o),u=!1,c=i>0,d=0,h=0;do{if(!o)break;var f=ik(e,o),p=f[0],m=f[1]-f[2]-s*p;(p||m)&&sk(e,o)&&(d+=m,h+=p);var x=o.parentNode;o=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(c&&(a&&Math.abs(d)<1||!a&&i>d)||!c&&(a&&Math.abs(h)<1||!a&&-i>h))&&(u=!0),u}(m,t,e,"h"===m?l:u,!0)},[]),u=i.useCallback(function(e){var n=e;if(hk.length&&hk[hk.length-1]===s){var r="deltaY"in n?lk(n):ok(n),a=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(a&&a.should)n.cancelable&&n.preventDefault();else if(!a){var i=(o.current.shards||[]).map(uk).filter(Boolean).filter(function(e){return e.contains(n.target)});(i.length>0?l(n,i[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,a){var s={name:e,delta:n,target:r,should:a,shadowParent:fk(r)};t.current.push(s),setTimeout(function(){t.current=t.current.filter(function(e){return e!==s})},1)},[]),d=i.useCallback(function(e){n.current=ok(e),r.current=void 0},[]),h=i.useCallback(function(t){c(t.type,lk(t),t.target,l(t,e.lockRef.current))},[]),f=i.useCallback(function(t){c(t.type,ok(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return hk.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",u,nk),document.addEventListener("touchmove",u,nk),document.addEventListener("touchstart",d,nk),function(){hk=hk.filter(function(e){return e!==s}),document.removeEventListener("wheel",u,nk),document.removeEventListener("touchmove",u,nk),document.removeEventListener("touchstart",d,nk)}},[]);var p=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(s,{styles:ck(a)}):null,p?i.createElement(Zw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Iw.useMedium(mk),qw);var mk,xk=i.forwardRef(function(e,t){return i.createElement(zw,Fw({},e,{ref:t,sideCar:pk}))});xk.classNames=zw.classNames;const gk=xk;var vk=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},bk=new WeakMap,yk=new WeakMap,Dk={},wk=0,kk=function(e){return e&&(e.host||kk(e.parentNode))},jk=function(e,t,n,r){var a=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=kk(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Dk[n]||(Dk[n]=new WeakMap);var s=Dk[n],i=[],o=new Set,l=new Set(a),u=function(e){e&&!o.has(e)&&(o.add(e),u(e.parentNode))};a.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(o.has(e))c(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,l=(bk.get(e)||0)+1,u=(s.get(e)||0)+1;bk.set(e,l),s.set(e,u),i.push(e),1===l&&a&&yk.set(e,!0),1===u&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(tN){console.error("aria-hidden: cannot operate on ",e,tN)}})};
2return c(t),o.clear(),wk++,function(){i.forEach(function(e){var t=bk.get(e)-1,a=s.get(e)-1;bk.set(e,t),s.set(e,a),t||(yk.has(e)||e.removeAttribute(r),yk.delete(e)),a||e.removeAttribute(n)}),--wk||(bk=new WeakMap,bk=new WeakMap,yk=new WeakMap,Dk={})}},Ck=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=t||vk(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),jk(r,a,n,"aria-hidden")):function(){return null}};const Ek=["__scopeDialog"],Fk=["forceMount"],Nk=["__scopeDialog"],Ak=["forceMount"],Sk=["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"],_k=["__scopeDialog"],Bk=["__scopeDialog"],Tk=["__scopeDialog"];var Rk="Dialog",Pk=qe(Bo(Rk),2),Ok=Pk[0],Lk=(Pk[1],qe(Ok(Rk),2)),Ik=Lk[0],Mk=Lk[1],zk=e=>{const t=e.__scopeDialog,n=e.children,r=e.open,a=e.defaultOpen,s=e.onOpenChange,o=e.modal,l=void 0===o||o,u=i.useRef(null),c=i.useRef(null),d=qe(Jo({prop:r,defaultProp:null!==a&&void 0!==a&&a,onChange:s,caller:Rk}),2),h=d[0],f=d[1];return(0,Te.jsx)(Ik,{scope:t,triggerRef:u,contentRef:c,contentId:al(),titleId:al(),descriptionId:al(),open:h,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(e=>!e),[f]),modal:l,children:n})};zk.displayName=Rk;var Uk="DialogTrigger",qk=i.forwardRef((e,t)=>{const n=e.__scopeDialog,r=Oe(e,Ek),a=Mk(Uk,n),s=Oo(t,a.triggerRef);return(0,Te.jsx)(Zo.button,f(f({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":uj(a.open)},r),{},{ref:s,onClick:Ko(e.onClick,a.onOpenToggle)}))});qk.displayName=Uk;var Wk="DialogPortal",Hk=qe(Ok(Wk,{forceMount:void 0}),2),Vk=Hk[0],Gk=Hk[1],$k=e=>{const t=e.__scopeDialog,n=e.forceMount,r=e.children,a=e.container,s=Mk(Wk,t);return(0,Te.jsx)(Vk,{scope:t,forceMount:n,children:i.Children.map(r,e=>(0,Te.jsx)(el,{present:n||s.open,children:(0,Te.jsx)(kw,{asChild:!0,container:a,children:e})}))})};$k.displayName=Wk;var Kk="DialogOverlay",Qk=i.forwardRef((e,t)=>{const n=Gk(Kk,e.__scopeDialog),r=e.forceMount,a=void 0===r?n.forceMount:r,s=Oe(e,Fk),i=Mk(Kk,e.__scopeDialog);return i.modal?(0,Te.jsx)(el,{present:a||i.open,children:(0,Te.jsx)(Jk,f(f({},s),{},{ref:t}))}):null});Qk.displayName=Kk;var Yk=Mo("DialogOverlay.RemoveScroll"),Jk=i.forwardRef((e,t)=>{const n=e.__scopeDialog,r=Oe(e,Nk),a=Mk(Kk,n);return(0,Te.jsx)(gk,{as:Yk,allowPinchZoom:!0,shards:[a.contentRef],children:(0,Te.jsx)(Zo.div,f(f({"data-state":uj(a.open)},r),{},{ref:t,style:f({pointerEvents:"auto"},r.style)}))})}),Xk="DialogContent",Zk=i.forwardRef((e,t)=>{const n=Gk(Xk,e.__scopeDialog),r=e.forceMount,a=void 0===r?n.forceMount:r,s=Oe(e,Ak),i=Mk(Xk,e.__scopeDialog);return(0,Te.jsx)(el,{present:a||i.open,children:i.modal?(0,Te.jsx)(ej,f(f({},s),{},{ref:t})):(0,Te.jsx)(tj,f(f({},s),{},{ref:t}))})});Zk.displayName=Xk;var ej=i.forwardRef((e,t)=>{const n=Mk(Xk,e.__scopeDialog),r=i.useRef(null),a=Oo(t,n.contentRef,r);return i.useEffect(()=>{const e=r.current;if(e)return Ck(e)},[]),(0,Te.jsx)(nj,f(f({},e),{},{ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ko(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:Ko(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Ko(e.onFocusOutside,e=>e.preventDefault())}))}),tj=i.forwardRef((e,t)=>{const n=Mk(Xk,e.__scopeDialog),r=i.useRef(!1),a=i.useRef(!1);return(0,Te.jsx)(nj,f(f({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var s,i;(null===(s=e.onCloseAutoFocus)||void 0===s||s.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,a.current=!1},onInteractOutside:t=>{var s,i;null===(s=e.onInteractOutside)||void 0===s||s.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const o=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(o))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}}))}),nj=i.forwardRef((e,t)=>
2{const n=e.__scopeDialog,r=e.trapFocus,a=e.onOpenAutoFocus,s=e.onCloseAutoFocus,o=Oe(e,Sk),l=Mk(Xk,n),u=i.useRef(null),c=Oo(t,u);return Cw(),(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(mw,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,Te.jsx)(ow,f(f({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":uj(l.open)},o),{},{ref:c,onDismiss:()=>l.onOpenChange(!1)}))}),(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(pj,{titleId:l.titleId}),(0,Te.jsx)(mj,{contentRef:u,descriptionId:l.descriptionId})]})]})}),rj="DialogTitle",aj=i.forwardRef((e,t)=>{const n=e.__scopeDialog,r=Oe(e,_k),a=Mk(rj,n);return(0,Te.jsx)(Zo.h2,f(f({id:a.titleId},r),{},{ref:t}))});aj.displayName=rj;var sj="DialogDescription",ij=i.forwardRef((e,t)=>{const n=e.__scopeDialog,r=Oe(e,Bk),a=Mk(sj,n);return(0,Te.jsx)(Zo.p,f(f({id:a.descriptionId},r),{},{ref:t}))});ij.displayName=sj;var oj="DialogClose",lj=i.forwardRef((e,t)=>{const n=e.__scopeDialog,r=Oe(e,Tk),a=Mk(oj,n);return(0,Te.jsx)(Zo.button,f(f({type:"button"},r),{},{ref:t,onClick:Ko(e.onClick,()=>a.onOpenChange(!1))}))});function uj(e){return e?"open":"closed"}lj.displayName=oj;var cj="DialogTitleWarning",dj=function(e,t){const n=i.createContext(t),r=e=>{const t=e.children,r=Oe(e,So),a=i.useMemo(()=>r,Object.values(r));return(0,Te.jsx)(n.Provider,{value:a,children:t})};return r.displayName=e+"Provider",[r,function(r){const a=i.useContext(n);if(a)return a;if(void 0!==t)return t;throw new Error("`".concat(r,"` must be used within `").concat(e,"`"))}]}(cj,{contentName:Xk,titleName:rj,docsSlug:"dialog"}),hj=qe(dj,2),fj=(hj[0],hj[1]),pj=e=>{let t=e.titleId;const n=fj(cj),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return i.useEffect(()=>{if(t){document.getElementById(t)||console.error(r)}},[r,t]),null},mj=e=>{let t=e.contentRef,n=e.descriptionId;const r=fj("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return i.useEffect(()=>{var e;const r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");if(n&&r){document.getElementById(n)||console.warn(a)}},[a,t,n]),null},xj=Qk,gj=Zk,vj=aj,bj=ij,yj=lj;const Dj=["className"],wj=["className","children"],kj=["className"],jj=["className"],Cj=["className"],Ej=zk,Fj=$k,Nj=i.forwardRef((e,t)=>{let n=e.className,r=Oe(e,Dj);return(0,Te.jsx)(xj,f({ref:t,className:_c("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},r))});Nj.displayName=xj.displayName;const Aj=i.forwardRef((e,t)=>{let n=e.className,r=e.children,a=Oe(e,wj);return(0,Te.jsxs)(Fj,{children:[(0,Te.jsx)(Nj,{}),(0,Te.jsxs)(gj,f(f({ref:t,className:_c("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n)},a),{},{children:[r,(0,Te.jsxs)(yj,{className:"absolute right-4 top-4 roun
2ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Te.jsx)(Yr,{className:"h-4 w-4"}),(0,Te.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})});Aj.displayName=gj.displayName;const Sj=e=>{let t=e.className,n=Oe(e,kj);return(0,Te.jsx)("div",f({className:_c("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};Sj.displayName="DialogHeader";const _j=i.forwardRef((e,t)=>{let n=e.className,r=Oe(e,jj);return(0,Te.jsx)(vj,f({ref:t,className:_c("text-lg font-semibold leading-none tracking-tight",n)},r))});_j.displayName=vj.displayName;const Bj=i.forwardRef((e,t)=>{let n=e.className,r=Oe(e,Cj);return(0,Te.jsx)(bj,f({ref:t,className:_c("text-sm text-muted-foreground",n)},r))});Bj.displayName=bj.displayName;const Tj=[{icon:wD,title:"Capture customer voice",body:"Drop in sales/demo transcripts, reviews or CRM notes \u2014 Uplaud reads every word."},{icon:AD,title:"Extract signals & testimonials",body:"AI surfaces motivations, pain points & buying signals, then drafts a testimonial for approval."},{icon:ov,title:"Turn wins into growth",body:"Approved stories become referral campaigns and on-brand social posts \u2014 automatically."}];function Rj(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().toLowerCase().replace(/^https?:\/\//,"").replace(/^www\./,"").replace(/\/.*$/,"")}function Pj(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}function Oj(){const e=tn(),t=Vg(),n=qe((0,i.useState)(!1),2),r=n[0],a=n[1],s=qe((0,i.useState)(!1),2),o=s[0],l=s[1],u=qe((0,i.useState)(0),2),c=u[0],d=u[1],h=qe((0,i.useState)(!1),2),p=h[0],m=h[1],x=qe((0,i.useState)(""),2),g=x[0],v=x[1],b=qe((0,i.useState)([]),2),y=b[0],D=b[1],w=qe((0,i.useState)(!0),2),k=(w[0],w[1]),j=qe((0,i.useState)(""),2),C=j[0],E=j[1],F=qe((0,i.useState)(!1),2),N=F[0],A=F[1],S=qe((0,i.useState)(null),2),_=S[0],B=S[1],T=qe((0,i.useState)(!1),2),R=T[0],P=T[1],O=qe((0,i.useState)(null),2),L=O[0],I=O[1],M=qe((0,i.useState)({connected:!1,synced_count:0}),2),z=M[0],U=M[1],q=qe((0,i.useState)(!1),2),W=q[0],H=q[1],V=qe((0,i.useState)(!1),2),G=V[0],$=V[1],K=qe((0,i.useState)(!1),2),Q=K[0],Y=K[1],J=qe((0,i.useState)(!1),2),X=J[0],Z=J[1],ee=qe((0,i.useState)(null),2),te=ee[0],ne=ee[1],re=qe((0,i.useState)([]),2),ae=re[0],se=re[1],ie=qe((0,i.useState)("all"),2),oe=ie[0],le=ie[1],ue=qe((0,i.useState)("external"),2),ce=ue[0],de=ue[1],he=qe((0,i.useState)(!1),2),fe=he[0],pe=he[1],me=(0,i.useRef)(null),xe=()=>{ev.get("/sources").then(e=>{let t=e.data;return D(Array.isArray(t)?t:[])}).catch(()=>D([])).finally(()=>k(!1))},ge=()=>{ev.get("/integrations/fathom/status").then(e=>{let t=e.data;return U(t||{connected:!1,synced_count:0})}).catch(()=>U({connected:!1,synced_count:0}))};(0,i.useEffect)(()=>{xe(),ev.get("/business/profile").then(e=>{let t=e.data;return B(t)}).catch(()=>B(null)).finally(()=>P(!0)),ge();"connected"===new URLSearchParams(window.location.search).get("fathom")&&(Tr.success("Fathom connected. Sync your recent meetings when you're ready."),window.history.replaceState({},"",window.location.pathname))},[]);const ve=Boolean((null===_||void 0===_?void 0:_.brand_voice)||(null===_||void 0===_?void 0:_.logo_url)),be=((null===t||void 0===t?void 0:t.name)||"").split(" ")[0]||"there",ye=(null===t||void 0===t?void 0:t.workspace)||(null===t||void 0===t?void 0:t.company)||(null===_||void 0===_?void 0:_.company_name)||"your workspace",De=async e=>{if(e){A(!0);try{const t=(await ev.post("/business/profile",{website:e})).data,n=t.profile.selected_domain||e;await pD.auth.updateUser({data:{selected_brand_domain:n,company:t.profile.company_name}}).catch(()=>null),$g({workspace:t.profile.company_name,company:t.profile.company_name,brandDomain:n}),Tr.success("Workspace personalized successfully!",{description:"Deriving brand: ".concat(t.profile.company_name,". Initializing colors and assets.")}),setTimeout(()=>{window.location.reload()},1500)}catch(nN){Tr.error("Personalization failed. Please try again.")}finally{I(null),A(!1)}}},we=e=>{De(e)},ke=()=>{var e;return null===(e=me.current)||void 0===e?void 0:e.click()},je=async()=>{H(!0);try{const e=(await ev.post("/integrations/fathom/connect")).data;null!==e&&void 0!==e&&e.authorization_url?window.location.href=e.authorization_url:Tr.error("Fathom did not return an authorization URL.")}catch(nN){var e,t;Tr.error(Zg(null===(e=nN.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not start Fathom connection.")}finally{H(!1)}},Ce=async()=>{$(!0);try{const e=(await ev.get("/integrations/fathom/preview?limit=50")).data,t=Array.isArray(e.meetings)?e.meetings:[],n=e=>"all"===ce||(e.meeting_type||"unknown")===ce,r=t.filter(e=>(null===e||void 0===e?void 0:e.external_id)&&e.has_transcript&&!e.already_synced&&n(e)).map(e=>e.external_id);ne({meetings:t,skipped:e.skipped||0}),se(r),le(ce),t.length?Tr.success("Fathom sync results ready.",{description:r.length?"".concat(r.length," ").concat("all"===ce?"":"".concat(ce," "),"meeting").concat(1===r.length?"":"s"," ready to load into Uplaud."):"No new meetings are ready to load."}):Tr.info("No Fathom meetings found.")}catch(nN){var e,t,n;409===(null===(e=nN.response)||void 0===e?void 0:e.status)&&U({connected:!1,synced_count:0}),Tr.error(Zg(null===(t=nN.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Fathom sync failed.")}finally{$(!1)}},Ee=async()=>{Y(!0);try{const e=(await ev.post("/integrations/fathom/disconnect")).data;U(e||{connected:!1,synced_count:0}),Tr.success("Fathom disconnected.")}catch(nN){var e,t;Tr.error(Zg(null===(e=nN.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not disconnect Fathom.")}finally{Y(!1)}},Fe=async()=>{const e=!z.auto_sync_enabled;Z(!0);try{const t=(await ev.post("/integrations/fathom/auto-sync",{enabled:e})).data;U(t||f(f({},z),{},{auto_sync_enabled:e})),Tr.success(e?"Fathom auto-sync enabled.":"Fathom auto-sync disabled.",{description:e?"Uplaud will sync connected Fathom meetings every 2 hours once scheduled sync is active.":void 0})}catch(nN){var t,n;Tr.error(Zg(null===(t=nN.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not update Fathom auto-sync.")}finally{Z(!1)}},Ne=async e=>{if(!e)return;const t=e.name.split(".").pop().toLowerCase();if(["txt","doc","docx","pdf"].includes(t)){v(e.name),l(!0),m(!1),d(6);try{const t=new FormData;t.append("file",e);const n=(await ev.post("/sources",t,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:e=>d(Math.min(40,6+Math.round(e.loaded/(e.total||1)*34)))})).data;d(55),await ev.post("/sources/".concat(n.id,"/analyze")),d(100),m(!0),Qg(!0),xe(),Tr.success("Transcript analyzed \u2014 Growth Signals ready.")}catch(nN){var n,r;l(!1),d(0),Tr.error(Zg(null===(n=nN.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.detail)||"Upload failed")}}else Tr.error("Unsupported file. Upload a .txt, .doc, .docx or .pdf transcript.")},Ae=Array.isArray(y)?y:[],Se=Ae.length>0,_e=Array.isArray(null===te||void 0===te?void 0:te.meetings)?te.meetings:[],Be=_e.reduce((e,t)=>
2{const n=t.meeting_type||"unknown";return e.all+=1,e[n]=(e[n]||0)+1,e},{all:0,external:0,internal:0,unknown:0}),Re="all"===oe?_e:_e.filter(e=>(e.meeting_type||"unknown")===oe),Pe=Re.filter(e=>e.has_transcript&&!e.already_synced).length,Oe=ae.length,Le=Ae.length,Ie=Ae.filter(e=>"analyzed"===e.status).length,Me=Ae.reduce((e,t)=>{if(t.insights){var n,r,a,s,i,o;const l=t.insights;return e+((null===(n=l.motivations)||void 0===n?void 0:n.length)||0)+((null===(r=l.pain_points)||void 0===r?void 0:r.length)||0)+((null===(a=l.buying_signals)||void 0===a?void 0:a.length)||0)+((null===(s=l.objections)||void 0===s?void 0:s.length)||0)+((null===(i=l.customer_language)||void 0===i?void 0:i.length)||0)+((null===(o=l.product_feedback)||void 0===o?void 0:o.length)||0)}return e},0),ze=Se?Ie||Le:0,Ue=Se?3*Le:0,We=Le,He={label:"Signals synced",value:(Se?Me||28*Le+15:0).toLocaleString(),delta:"".concat(ze," interactions \xb7 ").concat(Ue," reviews \xb7 live from ").concat(We," sources"),trend:Se?"up":"down",attribution:Se?"Connect a source once \u2014 Uplaud continuously extracts signals from every meeting and review and updates attribution against HubSpot.":"No data sources connected yet. Upload your first sales/demo transcript or connect a tool to begin extracting growth signals.",cta:Se?{label:"View Growth Signals",to:"/business/conversations"}:null},Ve={eyebrow:"Next best action",headline:Se?"Connect your CRM, meeting provider, or customer testimonial sources":"Upload your first sales/demo transcript to begin",reasoning:Se?[{label:"Sync integration",value:"Keep pipeline, contacts, and deal attribution fully updated"},{label:"Growth loops",value:"Continuously extract customer voice into amplification assets"}]:[{label:"Process",value:"Drag & drop any Zoom/Gong/Google Meet transcript"},{label:"Expected outcome",value:"Auto-extract motivations and draft testimonials"}],outcome:Se?"Connect your CRM (HubSpot/Salesforce) or meeting providers (Zoom/Gong/Fathom) to automatically sync reviews and signals.":"Our AI model will parse your text or PDF file, extract structured growth insights, and draft ready-to-publish customer testimonials.",cta:Se?"Connect integration":"Upload transcript"};return(0,Te.jsxs)("div",{"data-testid":"import-page",className:"max-w-[1080px] mx-auto space-y-6",children:[Se?(0,Te.jsx)(YD,{eyebrow:qD.import.eyebrow,question:qD.import.question,northStar:He,smartAction:Ve,onAction:()=>{Se?Tr.info("Please contact admin",{description:"Integration connections are managed by your Uplaud admin \u2014 reach out to get your CRM or meeting provider connected."}):ke()}}):(0,Te.jsx)(Ij,{firstName:be,companyName:ye,onUpload:ke}),R&&!ve&&(0,Te.jsxs)("div",{"data-testid":"personalize-workspace-card",className:"rounded-2xl border border-[#d9d1ee] bg-[#fdfcff] p-5 shadow-sm flex flex-col md:flex-row items-center gap-5 animate-in fade-in duration-300",children:[(0,Te.jsx)("div",{className:"w-10 h-10 rounded-xl bg-[#f5f3ff] text-[#6d46c6] flex items-center justify-center shrink-0",children:(0,Te.jsx)(la,{className:"w-5 h-5",strokeWidth:1.75})}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("h3",{className:"font-display text-[15px] font-semibold text-[#111827]",children:"Let's personalize your workspace!"}),(0,Te.jsx)("p",{className:"text-[12.5px] text-[#4b5563] mt-0.5 leading-relaxed",children:"Enter your company website to extract your brand colors, logo and voice."}),(0,Te.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),!C.trim())return;const n=Rj(C),r=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase().trim().split("@");return e.length>1?Rj(e[1]):""}(null===t||void 0===t?void 0:t.email);n&&r&&n!==r?I({websiteDomain:n,loginDomain:r}):await De(n||C)},className:"mt-3 flex gap-2 max-w-[480px]",children:[(0,Te.jsx)("input",{type:"text",required:!0,"data-testid":"personalize-website-input",value:C,onChange:e=>E(e.target.value),placeholder:"scalis.ai",className:"flex-1 h-9 px-4 rounded-xl border border-[#e2d9f5] bg-white text-[13px] focus:outline-none focus:border-[#6d46c6] focus:ring-2 focus:ring-[#6d46c6]/10"}),(0,Te.jsx)("button",{type:"submit","data-testid":"personalize-workspace-btn",disabled:N,className:"btn-primary h-9 !py-0 whitespace-nowrap",children:N?"Analyzing brand...":"Personalize Worksp
2ace"})]})]})]}),(0,Te.jsx)(Ej,{open:Boolean(L),onOpenChange:e=>!e&&I(null),children:(0,Te.jsxs)(Aj,{className:"max-w-md rounded-2xl border-[#e9e2f7]",children:[(0,Te.jsxs)(Sj,{children:[(0,Te.jsx)(_j,{children:"Choose workspace domain"}),(0,Te.jsx)(Bj,{children:"Your login email and setup website use different domains. Pick the domain Uplaud should use for this workspace."})]}),L&&(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("button",{type:"button","data-testid":"choose-website-domain-btn",disabled:N,onClick:()=>we(L.websiteDomain),className:"w-full rounded-xl border border-[#d9d1ee] bg-white p-4 text-left transition-colors hover:border-[#6d46c6] hover:bg-[#faf9ff]",children:[(0,Te.jsx)("span",{className:"block text-[13px] font-semibold text-[#111827]",children:"Use website domain"}),(0,Te.jsx)("span",{className:"mt-1 block font-mono text-[12px] text-[#6d46c6]",children:L.websiteDomain})]}),(0,Te.jsxs)("button",{type:"button","data-testid":"choose-email-domain-btn",disabled:N,onClick:()=>we(L.loginDomain),className:"w-full rounded-xl border border-[#d9d1ee] bg-white p-4 text-left transition-colors hover:border-[#6d46c6] hover:bg-[#faf9ff]",children:[(0,Te.jsx)("span",{className:"block text-[13px] font-semibold text-[#111827]",children:"Use email domain"}),(0,Te.jsx)("span",{className:"mt-1 block font-mono text-[12px] text-[#6d46c6]",children:L.loginDomain})]})]})]})}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"mb-3",children:[(0,Te.jsx)("h2",{className:"font-display text-[16px] font-semibold tracking-tight text-[#111827]",children:"Add another source"}),(0,Te.jsx)("p",{className:"text-[12px] text-[#9ca3af]",children:"Drop a file or connect any of the sources below."})]}),(0,Te.jsxs)("div",{"data-testid":"import-dropzone",onDragOver:e=>{e.preventDefault(),a(!0)},onDragLeave:()=>a(!1),onDrop:e=>{var t;e.preventDefault(),a(!1),Ne(null===(t=e.dataTransfer.files)||void 0===t?void 0:t[0])},className:"relative rounded-2xl border-2 border-dashed p-6 min-h-[220px] flex flex-col items-center justify-center text-center transition-all ".concat(r?"border-[#6d46c6] bg-[#f5f3ff]":"border-[#d9d1ee] bg-white hover:border-[#6d46c6] hover:bg-[#faf9ff]"),children:[!o&&!p&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("input",{ref:me,type:"file",accept:".txt,.doc,.docx,.pdf",className:"hidden","data-testid":"import-file-input",onChange:e=>{var t;return Ne(null===(t=e.target.files)||void 0===t?void 0:t[0])}}),(0,Te.jsx)("div",{className:"w-11 h-11 rounded-2xl bg-[#f5f3ff] flex items-center justify-center mb-3",children:(0,Te.jsx)(SD,{className:"w-5 h-5 text-[#6d46c6]",strokeWidth:1.75})}),(0,Te.jsx)("h3",{className:"font-display text-[17px] font-semibold text-[#111827]",children:"Drop your call transcript"}),(0,Te.jsx)("p",{className:"mt-1.5 text-[13px] text-[#4b5563] max-w-[400px]",children:"Upload a client demo / sales call transcript as .txt, .docx or .pdf \u2014 Uplaud extracts growth signals and drafts a testimonial."}),(0,Te.jsxs)("button",{"data-testid":"import-select-file-btn",onClick:ke,className:"btn-primary mt-4 h-10 !py-0",children:["Select file",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]}),(0,Te.jsx)("button",{"data-testid":"import-use-sample-btn",onClick:ke,className:"mt-2.5 text-[12px] text-[#6d46c6] hover:underline",children:"or browse for a transcript file (.txt \xb7 .docx \xb7 .pdf)"})]}),o&&!p&&(0,Te.jsxs)("div",{className:"w-full max-w-[420px]",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)(_D,{className:"w-5 h-5 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[13.5px] font-mono text-[#111827]",children:g||"transcript"}),(0,Te.jsxs)("div",{className:"ml-auto text-[11.5px] font-mono text-[#6d46c6]",children:[c,"%"]})]}),(0,Te.jsx)("div",{className:"mt-3 h-2 rounded-full bg-[#eeeaf6] overflow-hidden",children:(0,Te.jsx)("div",{className:"h-full rounded-full bg-gradient-to-r from-[#6d46c6] to-[#5eead4] transition-all",style:{width:"".concat(c,"%")}})}),(0,Te.jsxs)("div",{className:"mt-5 space-y-1.5 text-[12px] font-mono text-[#4b5563]",children:[(0,Te.jsx)(Lj,{text:"Uploading & parsing transcript",done:c>20}),(0,Te.jsx)(Lj,{text:"Extracting motivations, pain points & signals",done:c>45}),(0,Te.jsx)(Lj,{text:"Scoring sentiment + opportunity",done:c>60}),(0,Te.jsx)(Lj,{text:"Drafting customer testimonial",done:c>80}),(0,Te.jsx)(Lj,{text:"Ready",done:c>=100})]})]}),p&&(0,Te.jsxs)("div",{"data-testid":"import-success",className:"text-center max-w-[420px]",children:[(0,Te.jsx)("div",{className:"w-11 h-11 rounded-2xl bg-[#ecfdf7] flex items-center justify-center mx-auto mb-3",children:(0,Te.jsx)(Uc,{className:"w-6 h-6 text-[#0f9b7c]",strokeWidth:1.75})}),(0,Te.jsx)("h3",{className:"font-display text-[18px] font-semibold text-[#111827]",children:"Transcript analyzed \u2014 signals extracted."}),(0,Te.jsxs)("p",{className:"mt-1.5 text-[13px] text-[#4b5563]",children:["Uplaud pulled the growth signals from this conversation and drafted a ",(0,Te.jsx)("b",{children:"customer testimonial"})," ready for your review."]}),(0,Te.jsxs)("div",{className:"mt-4 flex items-center justify-center gap-3",children:[(0,Te.jsx)("button",{"data-testid":"import-goto-reviews-btn",onClick:()=>{l(!1),m(!1),d(0)},className:"btn-secondary",children:"Upload another"}),(0,Te.jsxs)("button",{"data-testid":"import-goto-insights-btn",onClick:()=>e("/business/conversations"),className:"btn-primary",children:["View Growth Signals",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]})]})]})]}),(0,Te.jsxs)("div",{className:"lg:col-span-2 space-y-5",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Te.jsx)(wD,{className:"w-3.5 h-3.5 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#4b5563]",children:"Conversations"})]}),(0,Te.jsx)("div",{className:"space-y-2",children:[...LD].sort((e,t)=>
2"fathom"===e.id?-1:"fathom"===t.id?1:0).map(e=>{const t="fathom"===e.id,n=t?z.connected:e.connected,r=t?z.synced_count||0:e.syncs;return(0,Te.jsx)("div",{"data-testid":"source-card-".concat(e.id),className:"rounded-xl border p-3 transition-colors ".concat(t?"border-[#eeeaf6] bg-white hover:border-[#d9d1ee]":"border-[#eeeaf6] bg-[#fafafa] opacity-60"),children:(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center text-white text-[12px] font-semibold shrink-0",style:{backgroundColor:t?e.color:"#9ca3af"},children:e.label[0]}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"text-[12.5px] font-semibold text-[#111827] leading-tight",children:e.label}),(0,Te.jsx)("div",{className:"text-[10.5px] font-mono text-[#9ca3af] mt-0.5",children:t&&n?"".concat(r," synced"):t?"Not connected":"Integration coming soon"})]}),t?n?(0,Te.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[(0,Te.jsxs)("label",{className:"flex items-center gap-1 text-[11px] font-medium text-[#6b7280]",children:[(0,Te.jsx)("span",{className:"sr-only",children:"Fathom meeting type"}),(0,Te.jsxs)("select",{"data-testid":"source-fathom-meeting-type-filter",value:ce,onChange:e=>de(e.target.value),disabled:G||Q||fe,className:"h-7 rounded-full border border-[#e5e7eb] bg-white px-2 text-[11px] font-medium text-[#4b5563] focus:outline-none focus:border-[#cdbdf0] disabled:opacity-60",children:[(0,Te.jsx)("option",{value:"external",children:"External"}),(0,Te.jsx)("option",{value:"internal",children:"Internal"}),(0,Te.jsx)("option",{value:"unknown",children:"Unknown"}),(0,Te.jsx)("option",{value:"all",children:"All"})]})]}),(0,Te.jsx)("button",{"data-testid":"source-auto-sync-fathom",onClick:Fe,disabled:X,className:"text-[11px] font-medium border rounded-full px-2 py-0.5 disabled:opacity-60 ".concat(z.auto_sync_enabled?"text-[#0f9b7c] bg-[#ecfdf7] border-[#c8f0e4]":"text-[#6b7280] bg-white border-[#e5e7eb]"),children:z.auto_sync_enabled?"Auto-sync on":"Auto-sync off"}),(0,Te.jsx)("button",{"data-testid":"source-disconnect-fathom",onClick:Ee,disabled:Q||G||fe,className:"text-[11px] font-medium text-[#6b7280] bg-white border border-[#e5e7eb] rounded-full px-2 py-0.5 disabled:opacity-60",children:Q?"Disconnecting":"Disconnect"}),(0,Te.jsx)("button",{"data-testid":"source-sync-fathom",onClick:Ce,disabled:G||Q||fe,className:"text-[11px] font-medium text-[#0f9b7c] bg-[#ecfdf7] border border-[#c8f0e4] rounded-full px-2 py-0.5 disabled:opacity-60",children:G?"Syncing":"Sync"})]}):(0,Te.jsxs)("button",{"data-testid":"source-connect-".concat(e.id),onClick:je,disabled:W,className:"text-[11px] font-medium text-[#6d46c6] hover:underline flex items-center gap-1 disabled:opacity-60",children:[(0,Te.jsx)(Dg,{className:"w-3 h-3",strokeWidth:2}),W?"Connecting":"Connect"]}):(0,Te.jsx)("span",{className:"text-[10px] font-mono text-[#6b7280] bg-[#f3f4f6] border border-[#e5e7eb] rounded-full px-2 py-0.5",children:"Coming Soon"})]})},e.id)})})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Te.jsx)(BD,{className:"w-3.5 h-3.5 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#4b5563]",children:"Customer feedback"})]}),(0,Te.jsx)("div",{className:"space-y-2",children:ID.map(e=>(0,Te.jsx)("div",{"data-testid":"source-card-".concat(e.id),className:"rounded-xl border border-[#eeeaf6] bg-[#fafafa] p-3 opacity-60",children:(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center text-white text-[12px] font-semibold",style:{backgroundColor:"#9ca3af"},children:e.label[0]}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"text-[12.5px] font-semibold text-[#111827] leading-tight",children:e.label}),(0,Te.jsx)("div",{className:"text-[10.5px] font-mono text-[#9ca3af] mt-0.5",children:"Integration coming soon"})]}),(0,Te.jsx)("span",{className:"text-[10px] font-mono text-[#6b7280] bg-[#f3f4f6] border border-[#e5e7eb] rounded-full px-2 py-0.5",children:"Coming Soon"})]})},e.id))})]})]}),te&&(0,Te.jsxs)("div",{className:"fixed inset-0 z-50",children:[(0,Te.jsx)("button",{type:"button","aria-label":"Close Fathom sync results",className:"absolute inset-0 bg-[#111827]/30",onClick:()=>{fe||(ne(null),se([]))}}),(0,Te.jsxs)("aside",{"data-testid":"fathom-sync-results",className:"absolute right-0 top-0 h-full w-full max-w-[520px] bg-white shadow-2xl border-l border-[#ded4f4] flex flex-col",children:[(0,Te.jsxs)("div",{className:"border-b border-[#eeeaf6] px-5 py-4",children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#6d46c6]",children:"Fathom sync results"}),(0,Te.jsx)("h2",{className:"mt-1 font-display text-[22px] font-semibold text-[#111827]",children:"Choose meetings to load"}),(0,Te.jsx)("p",{className:"mt-1 text-[13px] leading-relaxed text-[#6b7280]",children:"Selected transcripts will be loaded into Uplaud and Growth Signals will run automatically."})]}),(0,Te.jsx)("button",{type:"button","aria-label":"Close",onClick:()=>{ne(null),se([])},disabled:fe,className:"rounded-full border border-[#e5e7eb] p-2 text-[#6b7280] hover:text-[#111827] disabled:opacity-50",children:(0,Te.jsx)(Yr,{className:"h-4 w-4",strokeWidth:1.8})})]}),(0,Te.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>{const e=Re.filter(e=>(null===e||void 0===e?void 0:e.external_id)&&e.has_transcript&&!e.already_synced).map(e=>e.external_id);se(e)},disabled:!Pe||fe,className:"text-[12px] font-semibold text-[#6d46c6] bg-white border border-[#ded4f4] rounded-full px-3 py-1.5 disabled:opacity-50",children:"Select all new"}),(0,Te.jsx)("button",{type:"button",onClick:()=>se([]),disabled:!Oe||fe,className:"text-[12px] font-semibold text-[#6b7280] bg-white border border-[#e5e7eb] rounded-full px-3 py-1.5 disabled:opacity-50",children:"Clear"})]}),(0,Te.jsx)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[["all","All"],["external","External"],["internal","Internal"],["unknown","Unknown"]].map(e=>{let t=qe(e,2),n=t[0],r=t[1];return(0,Te.jsxs)("button",{type:"button",onClick:()=>le(n),disabled:fe,className:"rounded-full border px-3 py-1.5 text-[11px] font-semibold transition-colors disabled:opacity-50 ".concat(oe===n?"border-[#6d46c6] bg-[#f5f3ff] text-[#6d46c6]":"border-[#e5e7eb] bg-white text-[#6b7280] hover:border-[#cdbdf0]"),children:[r," ",Be[n]||0]},n)})})]}),(0,Te.jsx)("div",{className:"flex-1 overflow-y-auto p-4 space-y-3 bg-[#fbfaff]",children:Re.length?Re.map(e=>{const t=!e.has_transcript||e.already_synced||fe,n=ae.includes(e.external_id),r=e.already_synced?"Already loaded":e.has_transcript?"Ready":"No transcript",a={external:"External",internal:"Internal",unknown:"Unknown"}[e.meeting_type||"unknown"]||"Unknown",s={external:"text-[#0f9b7c] bg-[#ecfdf7] border-[#c8f0e4]",internal:"text-[#6d46c6] bg-[#f5f3ff] border-[#ded4f4]",unknown:"text-[#6b7280] bg-[#f3f4f6] border-[#e5e7eb]"}[e.meeting_type||"unknown"],i=[e.client_name,e.client_email||e.client_domain].filter(
2Boolean).join(" \xb7 ");return(0,Te.jsx)("label",{className:"block rounded-xl border p-3 transition-colors ".concat(t?"border-[#e5e7eb] bg-[#f7f7f8] text-[#9ca3af]":"border-[#e8def8] bg-white hover:border-[#cdbdf0] cursor-pointer"),children:(0,Te.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Te.jsx)("input",{type:"checkbox",checked:n,disabled:t,onChange:()=>{return t=e.external_id,void se(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t},className:"mt-1 h-4 w-4 accent-[#6d46c6]"}),(0,Te.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,Te.jsx)("span",{className:"text-[13px] font-semibold text-[#111827]",children:e.title||"Fathom meeting"}),(0,Te.jsx)("span",{className:"text-[10px] font-mono rounded-full px-2 py-0.5 border ".concat(s),children:a}),(0,Te.jsx)("span",{className:"text-[10px] font-mono rounded-full px-2 py-0.5 border ".concat("Ready"===r?"text-[#0f9b7c] bg-[#ecfdf7] border-[#c8f0e4]":"text-[#6b7280] bg-[#f3f4f6] border-[#e5e7eb]"),children:r})]}),i&&(0,Te.jsx)("div",{className:"mt-1 text-[12px] text-[#4b5563] break-words",children:i}),Array.isArray(e.participant_domains)&&e.participant_domains.length>0&&(0,Te.jsxs)("div",{className:"mt-1 text-[11px] font-mono text-[#9ca3af] break-words",children:["domains: ",e.participant_domains.join(", ")]}),(0,Te.jsxs)("div",{className:"mt-2 grid grid-cols-2 gap-2 text-[11px] text-[#6b7280]",children:[(0,Te.jsxs)("div",{className:"rounded-lg bg-[#f8f6fd] px-2 py-1.5",children:[(0,Te.jsx)("div",{className:"font-mono uppercase tracking-[0.12em] text-[9px] text-[#9ca3af]",children:"When"}),(0,Te.jsx)("div",{children:Pj(e.created_at)||"Unknown"})]}),(0,Te.jsxs)("div",{className:"rounded-lg bg-[#f8f6fd] px-2 py-1.5",children:[(0,Te.jsx)("div",{className:"font-mono uppercase tracking-[0.12em] text-[9px] text-[#9ca3af]",children:"Length"}),(0,Te.jsxs)("div",{children:[e.duration_min||0," min \xb7 ",e.word_count||0," words"]})]})]}),e.external_url&&(0,Te.jsxs)("a",{href:e.external_url,target:"_blank",rel:"noreferrer",className:"mt-2 inline-flex items-center gap-1 text-[11px] font-semibold text-[#6d46c6] hover:underline",onClick:e=>e.stopPropagation(),children:["Open in Fathom",(0,Te.jsx)(Qr,{className:"h-3 w-3",strokeWidth:1.8})]})]})]})},e.external_id||e.title)}):(0,Te.jsx)("div",{className:"rounded-xl border border-[#eeeaf6] bg-white p-4 text-[13px] text-[#6b7280]",children:"No meetings match this filter."})}),(0,Te.jsxs)("div",{className:"border-t border-[#eeeaf6] bg-white px-5 py-4",children:[(0,Te.jsxs)("div",{className:"mb-3 text-[12px] text-[#6b7280]",children:[Oe," selected \xb7 ",Pe," ready to load"]}),(0,Te.jsx)("button",{type:"button","data-testid":"fathom-load-selected",onClick:async()=>{if(ae.length){pe(!0),v("Selected Fathom meetings"),l(!0),m(!1),d(12);try{const t=(await ev.post("/integrations/fathom/sync?limit=100",{external_ids:ae})).data,n=Array.isArray(t.sources)?t.sources:[];d(n.length?55:100);for(const r of n.entries()){var e=qe(r,2);const t=e[0],a=e[1];if(null!==a&&void 0!==a&&a.id){await ev.post("/sources/".concat(a.id,"/analyze"));const e=t+1;d(Math.min(95,55+Math.round(e/n.length*40)))}}d(100),xe(),ge(),n.length?(ne(null),se([]),m(!0),Qg(!0),Tr.success("Transcript analyzed \u2014 Growth Signals ready.",{description:"".concat(n.length," Fathom meeting").concat(1===n.length?"":"s"," loaded into Uplaud.")})):(l(!1),Tr.info("No selected meetings were loaded.",{description:t.skipped?"".concat(t.skipped," selected meetings were skipped because they had no transcript or were already synced."):void 0}))}catch(nN){var t,n,r;l(!1),d(0),409===(null===(t=nN.response)||void 0===t?void 0:t.status)&&U({connected:!1,synced_count:0}),Tr.error(Zg(null===(n=nN.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.detail)||"Fathom sync failed.")}finally{pe(!1)}}else Tr.info("Select at least one meeting to load into Uplaud.")},disabled:!Oe||fe,className:"w-full inline-flex items-center justify-center rounded-full bg-[#6d46c6] px-4 py-3 text-[14px] font-semibold text-white disabled:opacity-50",children:fe?"Loading selected":"Load selected"})]})]})]}),(0,Te.jsxs)("div",{className:"rounded-2xl bg-[#261c4d] text-white p-6 relative overflow-hidden noise",children:[(0,Te.jsx)("div",{"aria-hidden":!0,
2className:"absolute -top-24 -right-16 w-[380px] h-[380px] rounded-full",style:{background:"radial-gradient(circle, rgba(94,234,212,0.22), transparent 60%)"}}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsxs)("span",{className:"chip chip-dark",children:[(0,Te.jsx)(la,{className:"w-3.5 h-3.5 text-[#5eead4]",strokeWidth:2}),"What happens the moment you hit import"]}),(0,Te.jsx)("div",{className:"mt-5 grid grid-cols-1 md:grid-cols-3 gap-4",children:[{icon:TD,title:"Sentiment + topic tagging",body:"Every review is auto-tagged with sentiment, topic and agent-worthiness so nothing hides in a spreadsheet."},{icon:la,title:"Agentic recommendations",body:"Each 5\u2605 gets its own action queue: turn into a post, trigger referral, insert into Reddit, add to ad copy."},{icon:Uc,title:"Continuous refresh",body:"Once connected, new reviews flow in automatically and re-score against your campaigns hourly."}].map(e=>(0,Te.jsxs)("div",{className:"rounded-xl border border-white/10 bg-white/[0.03] backdrop-blur-xl p-4",children:[(0,Te.jsx)(e.icon,{className:"w-4 h-4 text-[#5eead4]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"mt-2.5 font-display text-[14.5px] font-semibold",children:e.title}),(0,Te.jsx)("p",{className:"mt-1.5 text-[12px] leading-relaxed text-white/60",children:e.body})]},e.title))})]})]})]})}function Lj(e){let t=e.text,n=e.done;return(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(Uc,{className:"w-3.5 h-3.5 ".concat(n?"text-[#0f9b7c]":"text-[#d9d1ee]"),strokeWidth:2}),(0,Te.jsx)("span",{className:n?"text-[#111827]":"text-[#9ca3af]",children:t})]})}function Ij(e){let t=e.firstName,n=e.companyName,r=e.onUpload;return(0,Te.jsxs)("div",{"data-testid":"sources-welcome-banner",className:"relative overflow-hidden rounded-3xl bg-[#1b1435] text-white p-7 md:p-9 noise",children:[(0,Te.jsx)("div",{"aria-hidden":!0,className:"absolute -top-24 -right-20 w-[380px] h-[380px] rounded-full",style:{background:"radial-gradient(circle, rgba(94,234,212,0.22), transparent 60%)"}}),(0,Te.jsx)("div",{"aria-hidden":!0,className:"absolute -bottom-32 -left-16 w-[320px] h-[320px] rounded-full",style:{background:"radial-gradient(circle, rgba(109,70,198,0.45), transparent 60%)"}}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsxs)("span",{className:"chip chip-dark",children:[(0,Te.jsx)(la,{className:"w-3.5 h-3.5 text-[#5eead4]",strokeWidth:2}),"Welcome to Uplaud"]}),(0,Te.jsxs)("h1",{"data-testid":"welcome-headline",className:"mt-5 font-display text-[28px] md:text-[36px] font-semibold leading-[1.14] max-w-[640px]",children:["Hey ",t," \u2014 let's turn ",n,"'s customer voice into growth."]}),(0,Te.jsxs)("p",{className:"mt-4 text-[14px] text-white/70 max-w-[600px] leading-relaxed",children:["Uplaud converts every touchpoint that you have with your customers or leads at"," ",n," into a growth engine. Just upload your transcript, and watch as Uplaud automatically extracts growth signals, drafts testimonials , and turns those wins into referral campaigns and on-brand social content \u2014 a growth engine that runs itself."]}),(0,Te.jsx)("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-3 gap-4",children:Tj.map((e,t)=>(0,Te.jsxs)("div",{"data-testid":"overview-step-".concat(t),className:"rounded-2xl border border-white/10 bg-white/[0.04] backdrop-blur-xl p-5",children:[(0,Te.jsx)("div",{className:"w-9 h-9 rounded-xl bg-white/10 flex items-center justify-center mb-3",children:(0,Te.jsx)(e.icon,{className:"w-4 h-4 text-[#5eead4]",strokeWidth:1.75})}),(0,Te.jsx)("div",{className:"font-display text-[14px] font-semibold",children:e.title}),(0,Te.jsx)("p",{className:"mt-1.5 text-[12.5px] text-white/60 leading-relaxed",children:e.body})]},e.title))}),(0,Te.jsxs)("button",{"data-testid":"welcome-upload-btn",onClick:r,className:"btn-primary mt-8 h-11 !py-0",children:["Upload your first transcript",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]})]})}const Mj=Kr("ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]]),zj=Kr("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}
2]]),Uj=Kr("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]),qj=Kr("meh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]),Wj=Kr("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]),Hj=Kr("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),Vj=Kr("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),Gj={social:{icon:Da,color:"#6d46c6",label:"Social Post Agent"},referral:{icon:wa,color:"#5eead4",label:"Referral Agent"},reddit:{icon:Mj,color:"#ff4500",label:"Reddit Agent"},attribution:{icon:zj,color:"#111827",label:"Attribution"}},$j={positive:{icon:Uj,color:"text-[#0f9b7c]",bg:"bg-[#ecfdf7]",label:"Positive"},neutral:{icon:qj,color:"text-[#a16207]",bg:"bg-[#fef9c3]",label:"Neutral"},negative:{icon:Wj,color:"text-[#b91c1c]",bg:"bg-[#fee2e2]",label:"Negative"}};function Kj(){const e=qe((0,i.useState)(null),2),t=e[0],n=e[1],r=qe((0,i.useState)(""),2),a=r[0],s=r[1],o=qe((0,i.useState)("all"),2),l=o[0],u=o[1],c=qe((0,i.useState)("all"),2),d=c[0],h=c[1],f=MD.filter(e=>!(a&&!"".concat(e.customer," ").concat(e.title," ").concat(e.body).toLowerCase().includes(a.toLowerCase()))&&(("all"===l||e.rating===Number(l))&&("all"===d||e.source===d)));return(0,Te.jsxs)("div",{"data-testid":"reviews-page",className:"space-y-10",children:[(0,Te.jsx)(YD,{eyebrow:qD.reviews.eyebrow,question:qD.reviews.question,northStar:qD.reviews.northStar,smartAction:WD.reviews}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-4 justify-between",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-display text-[20px] font-semibold tracking-tight text-[#111827]",children:"All captured trust"}),(0,Te.jsxs)("p",{className:"text-[12.5px] text-[#9ca3af] mt-1",children:[f.length," of ",MD.length," reviews"]})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsxs)("button",{"data-testid":"reviews-filter-btn",className:"btn-secondary h-10 !py-0",children:[(0,Te.jsx)(Hj,{className:"w-4 h-4",strokeWidth:1.75}),"More filters"]}),(0,Te.jsxs)("button",{"data-testid":"reviews-export-btn",className:"btn-secondary h-10 !py-0",children:[(0,Te.jsx)(Vj,{className:"w-4 h-4",strokeWidth:1.75}),"Export"]})]})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,Te.jsxs)("div",{className:"relative flex-1 min-w-[260px] max-w-[420px]",children:[(0,Te.jsx)(Ba,{className:"w-4 h-4 text-[#9ca3af] absolute left-4 top-1/2 -translate-y-1/2"}),(0,Te.jsx)("input",{"data-testid":"reviews-search-input",value:a,onChange:e=>s(e.target.value),placeholder:"Search customer, keyword...",className:"w-full h-10 pl-10 pr-4 rounded-full border border-[#eeeaf6] bg-white text-[13px] focus:outline-none focus:border-[#d9d1ee] transition-all"})]}),(0,Te.jsxs)("select",{"data-testid":"reviews-rating-filter",value:l,onChange:e=>u(e.target.value),className:"h-10 px-4 rounded-full border border-[#eeeaf6] bg-white text-[13px] text-[#4b5563] focus:outline-none focus:border-[#d9d1ee]",children:[(0,Te.jsx)("option",{value:"all",children:"All ratings"}),(0,Te.jsx)("option",{value:"5",children:"5 stars"}),(0,Te.jsx)("option",{value:"4",children:"4 stars"}),(0,Te.jsx)("option",{value:"3",children:"3 stars"}),(0,Te.jsx)("option",{value:"2",children:"2 stars"}),(0,Te.jsx)("option",{value:"1",children:"1 star"})]}),(0,Te.jsxs)("select",{"data-testid":"reviews-source-filter",value:d,onChange:e=>
2h(e.target.value),className:"h-10 px-4 rounded-full border border-[#eeeaf6] bg-white text-[13px] text-[#4b5563] focus:outline-none focus:border-[#d9d1ee]",children:[(0,Te.jsx)("option",{value:"all",children:"All sources"}),(0,Te.jsx)("option",{value:"Google",children:"Google"}),(0,Te.jsx)("option",{value:"Trustpilot",children:"Trustpilot"}),(0,Te.jsx)("option",{value:"CSV",children:"CSV"})]})]}),(0,Te.jsx)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white overflow-hidden",children:(0,Te.jsx)("div",{className:"overflow-x-auto",children:(0,Te.jsxs)("table",{"data-testid":"reviews-table",className:"w-full text-[13px]",children:[(0,Te.jsx)("thead",{className:"bg-[#faf9ff] border-b border-[#eeeaf6]",children:(0,Te.jsxs)("tr",{className:"text-left text-[11px] font-mono uppercase tracking-[0.14em] text-[#4b5563]",children:[(0,Te.jsx)("th",{className:"py-3 px-5",children:"Customer"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Rating"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Review"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Sentiment"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Source"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Date"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Agents"})]})}),(0,Te.jsx)("tbody",{children:f.map(e=>{const t=$j[e.sentiment],r=zD[e.id]||[];return(0,Te.jsxs)("tr",{"data-testid":"review-row-".concat(e.id),onClick:()=>n(e),className:"border-b border-[#f2eefa] hover:bg-[#faf9ff] cursor-pointer transition-colors",children:[(0,Te.jsx)("td",{className:"py-4 px-5",children:(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-full bg-[#f5f3ff] text-[#6d46c6] flex items-center justify-center text-[11px] font-semibold",children:e.customer.split(" ").map(e=>e[0]).join("")}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827] leading-tight",children:e.customer}),(0,Te.jsx)("div",{className:"text-[11px] font-mono text-[#9ca3af]",children:e.handle})]})]})}),(0,Te.jsx)("td",{className:"py-4 px-5",children:(0,Te.jsx)("div",{className:"flex items-center gap-0.5",children:Array.from({length:5}).map((t,n)=>(0,Te.jsx)(ia,{className:"w-3 h-3 ".concat(n<e.rating?"fill-[#5eead4] text-[#5eead4]":"text-[#eeeaf6]"),strokeWidth:0},n))})}),(0,Te.jsxs)("td",{className:"py-4 px-5 max-w-[380px]",children:[(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827] leading-tight",children:e.title}),(0,Te.jsx)("div",{className:"text-[12px] text-[#4b5563] mt-1 line-clamp-1",children:e.body})]}),(0,Te.jsx)("td",{className:"py-4 px-5",children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium ".concat(t.bg," ").concat(t.color),children:[(0,Te.jsx)(t.icon,{className:"w-3 h-3",strokeWidth:2}),t.label]})}),(0,Te.jsx)("td",{className:"py-4 px-5 text-[12px] text-[#4b5563]",children:e.source}),(0,Te.jsx)("td",{className:"py-4 px-5 text-[12px] font-mono text-[#4b5563]",children:e.date}),(0,Te.jsx)("td",{className:"py-4 px-5",children:(0,Te.jsxs)("div",{className:"flex items-center gap-1",children:[r.slice(0,3).map(e=>{const t=Gj[e.agent],n=t.icon;return(0,Te.jsx)("span",{title:t.label,className:"w-6 h-6 rounded-full border border-[#eeeaf6] flex items-center justify-center bg-white",children:(0,Te.jsx)(n,{className:"w-3 h-3",strokeWidth:1.75,style:{color:t.color}})},e.id)}),0===r.length&&(0,Te.jsx)("span",{className:"text-[11px] text-[#9ca3af] font-mono",children:"\u2014"})]})})]},e.id)})})]})})}),t&&(0,Te.jsx)(Qj,{review:t,onClose:()=>n(null)})]})}function Qj(e){let t=e.review,n=e.onClose;const r=$j[t.sentiment],a=zD[t.id]||[{id:"r1",agent:"social",label:"Generate a social post draft",confidence:.72},{id:"r2",agent:"referral",label:"Add to referral campaign",confidence:.65}];return(0,Te.jsxs)("div",{"data-testid":"review-drawer",className:"fixed inset-0 z-50 flex justify-end",children:[(0,Te.jsx)("div",{className:"absolute inset-0 bg-[#111827]/40 backdrop-blur-sm",onClick:n}),(0,Te.jsxs)("aside",{className:"relative w-full max-w-[560px] h-full bg-white shadow-2xl overflow-y-auto animate-in slide-in-from-right duration-300",children:[(0,Te.jsxs)("div",{className:"sticky top-0 bg-white border-b border-[#eeeaf6] px-6 h-14 flex items-center justify-between z-10",children:[(0,Te.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:["Review \xb7 ",t.id]}),(0,Te.jsx)("button",{"data-testid":"review-drawer-close",onClick:n,className:"w-9 h-9 rounded-full border border-[#eeeaf6] hover:border-[#d9d1ee] flex items-center justify-center",children:(0,Te.jsx)(Yr,{className:"w-4 h-4 text-[#4b5563]",strokeWidth:1.75})})]}),(0,Te.jsxs)("div",{className:"p-6 space-y-6",children:[(0,Te.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Te.jsx)("div",{className:"w-12 h-12 rounded-full bg-[#f5f3ff] text-[#6d46c6] flex items-center justify-center text-[15px] font-semibold shrink-0",children:t.customer.split(" ").map(e=>e[0]).join("")}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"text-[16px] font-display font-semibold text-[#111827]",children:t.customer}),t.verified&&(0,Te.jsx)("span",{className:"text-[10px] font-mono text-[#0f9b7c] bg-[#ecfdf7] border border-[#c8f0e4] rounded-full px-1.5 py-0.5",children:"verified"})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 mt-1 text-[12px] text-[#4b5563]",children:[(0,Te.jsx)(rv,{className:"w-3 h-3",strokeWidth:1.75}),t.location,(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{className:"font-mono",children:t.ltv})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-0.5 mt-2",children:[Array.from({length:5}).map((e,n)=>(0,Te.jsx)(ia,{className:"w-3.5 h-3.5 ".concat(n<t.rating?"fill-[#5eead4] text-[#5eead4]":"text-[#eeeaf6]"),strokeWidth:0},n)),(0,Te.jsxs)("span",{className:"ml-2 text-[11px] font-mono text-[#9ca3af]",children:[t.source," \xb7 ",t.date]})]})]})]}),(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-[#faf9ff] p-5",children:[(0,Te.jsx)("div",{className:"text-[15px] font-display font-semibold text-[#111827]",children:t.title}),(0,Te.jsxs)("p",{className:"mt-3 text-[13.5px] leading-relaxed text-[#4b5563]",children:["\u201c",t.body,"\u201d"]}),(0,Te.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-2",children:[(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium ".concat(r.bg," ").concat(r.color),children:[(0,Te.jsx)(r.icon,{className:"w-3 h-3",strokeWidth:2}),r.label]}),t.tags.map(e=>(0,Te.jsxs)("span",{className:"px-2.5 py-1 rounded-full text-[11px] font-mono bg-white border border-[#eeeaf6] text-[#4b5563]",children:["#",e]},e))]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Te.jsx)(la,{className:"w-4 h-4 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[13px] font-display font-semibold text-[#111827]",children:"Agentic re
2commendations"}),(0,Te.jsx)("span",{className:"ml-auto text-[10.5px] font-mono text-[#9ca3af]",children:"Ranked by expected impact"})]}),(0,Te.jsx)("div",{className:"space-y-2",children:a.map(e=>{const t=Gj[e.agent],n=t.icon;return(0,Te.jsxs)("div",{"data-testid":"rec-".concat(e.id),className:"rounded-xl border border-[#eeeaf6] bg-white hover:border-[#d9d1ee] p-4 transition-colors group",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:"".concat(t.color,"18")},children:(0,Te.jsx)(n,{className:"w-4 h-4",strokeWidth:1.75,style:{color:t.color}})}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827] leading-tight",children:e.label}),(0,Te.jsxs)("div",{className:"text-[11px] font-mono text-[#9ca3af] mt-1",children:[t.label," \xb7 confidence ",Math.round(100*e.confidence),"%"]})]}),(0,Te.jsxs)("button",{"data-testid":"rec-run-".concat(e.id),onClick:()=>Tr.success("Queued: ".concat(e.label),{description:"Agent will draft in the background."}),className:"opacity-0 group-hover:opacity-100 transition-opacity btn-secondary h-9 !py-0 !px-3 !text-[12px]",children:[(0,Te.jsx)(TD,{className:"w-3.5 h-3.5",strokeWidth:1.75}),"Run"]})]}),(0,Te.jsx)("div",{className:"mt-3 h-1 rounded-full bg-[#eeeaf6] overflow-hidden",children:(0,Te.jsx)("div",{className:"h-full rounded-full",style:{width:"".concat(100*e.confidence,"%"),backgroundColor:t.color}})})]},e.id)})})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,Te.jsx)("button",{"data-testid":"review-thank-btn",onClick:()=>Tr.success("Thank-you reply queued",{description:"Will be sent via original review channel."}),className:"btn-secondary flex-1 justify-center h-11",children:"Send thank-you"}),(0,Te.jsxs)("button",{"data-testid":"review-action-btn",onClick:()=>Tr.success("All agents activated for this review",{description:"Draft posts + referral in queue."}),className:"btn-primary flex-1 justify-center h-11",children:["Activate all agents",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]})]})]})]})}const Yj=Kr("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]),Jj=Kr("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]),Xj=Kr("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const Zj=(()=>{let e=0;return()=>(e+=1,"u".concat("0000".concat((Math.random()*36**4|0).toString(36)).slice(-4)).concat(e))})();function eC(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}let tC=null;function nC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return tC||(e.includeStyleProperties?(tC=e.includeStyleProperties,tC):(tC=eC(window.getComputedStyle(document.documentElement)),tC))}function rC(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function aC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.width||function(e){const t=rC(e,"border-left-width"),n=rC(e,"border-right-width");return e.clientWidth+t+n}(e),r=t.height||function(e){const t=rC(e,"border-top-width"),n=rC(e,"border-bottom-width");return e.clientHeight+t+n}(e);return{width:n,height:r}}const sC=16384;function iC(e){return new Promise((t,n)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function oC(e,t,n){const r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return a.setAttribute("width","".concat(t)),a.setAttribute("height","".concat(n)),a.setAttribute("viewBox","0 0 ".concat(t," ").concat(n)),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),a.appendChild(s),s.appendChild(e),async function(e){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(e)).then(encodeURIComponent).then(e=>"data:image/svg+xml;charset=utf-8,".concat(e))}(a)}const lC=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||lC(n,t))};function uC(e,t,n,r){const a=".".concat(e,":").concat(t),s=n.cssText?function(e){const t=e.getPropertyValue("content");return"".concat(e.cssText," content: '").concat(t.replace(/'|"/g,""),"';")}(n):function(e,t){return nC(t).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return"".concat(t,": ").concat(n).concat(r?" !important":"",";")}).join(" ")}(n,r);
2return document.createTextNode("".concat(a,"{").concat(s,"}"))}function cC(e,t,n,r){const a=window.getComputedStyle(e,n),s=a.getPropertyValue("content");if(""===s||"none"===s)return;const i=Zj();try{t.className="".concat(t.className," ").concat(i)}catch(nN){return}const o=document.createElement("style");o.appendChild(uC(i,n,a,r)),t.appendChild(o)}const dC="application/font-woff",hC="image/jpeg",fC={woff:dC,woff2:dC,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:hC,jpeg:hC,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function pC(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return fC[t]||""}function mC(e){return-1!==e.search(/^(data:)/)}function xC(e,t){return"data:".concat(t,";base64,").concat(e)}async function gC(e,t,n){const r=await fetch(e,t);if(404===r.status)throw new Error('Resource "'.concat(r.url,'" not found'));const a=await r.blob();return new Promise((e,t)=>{const s=new FileReader;s.onerror=t,s.onloadend=()=>{try{e(n({res:r,result:s.result}))}catch(a){t(a)}},s.readAsDataURL(a)})}const vC={};async function bC(e,t,n){const r=function(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?"[".concat(t,"]").concat(r):r}(e,t,n.includeQueryParams);if(null!=vC[r])return vC[r];let a;n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());try{const r=await gC(e,n.fetchRequestInit,e=>{let n=e.res,r=e.result;return t||(t=n.headers.get("Content-Type")||""),function(e){return e.split(/,/)[1]}(r)});a=xC(r,t)}catch(s){a=n.imagePlaceholder||"";let t="Failed to fetch resource: ".concat(e);s&&(t="string"===typeof s?s:s.message),t&&console.warn(t)}return vC[r]=a,a}async function yC(e,t){return lC(e,HTMLCanvasElement)?async function(e){const t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):iC(t)}(e):lC(e,HTMLVideoElement)?async function(e,t){if(e.currentSrc){const t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null===n||void 0===n||n.drawImage(e,0,0,t.width,t.height),iC(t.toDataURL())}const n=e.poster,r=pC(n);return iC(await bC(n,r,t))}(e,t):lC(e,HTMLIFrameElement)?async function(e,t){var n;try{if(null===(n=null===e||void 0===e?void 0:e.contentDocument)||void 0===n?void 0:n.body)return await kC(e.contentDocument.body,t,!0)}catch(r){}return e.cloneNode(!1)}(e,t):e.cloneNode(DC(e))}const DC=e=>null!=e.tagName&&"SVG"===e.tagName.toUpperCase();function wC(e,t,n){return lC(t,Element)&&(function(e,t,n){const r=t.style;if(!r)return;const a=window.getComputedStyle(e);a.cssText?(r.cssText=a.cssText,r.transformOrigin=a.transformOrigin):nC(n).forEach(n=>{let s=a.getPropertyValue(n);if("font-size"===n&&s.endsWith("px")){const e=Math.floor(parseFloat(s.substring(0,s.length-2)))-.1;s="".concat(e,"px")}lC(e,HTMLIFrameElement)&&"display"===n&&"inline"===s&&(s="block"),"d"===n&&t.getAttribute("d")&&(s="path(".concat(t.getAttribute("d"),")")),r.setProperty(n,s,a.getPropertyPriority(n))})}(e,t,n),function(e,t,n){cC(e,t,":before",n),cC(e,t,":after",n)}(e,t,n),function(e,t){lC(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),lC(e,HTMLInputElement)&&t.setAttribute("value",e.value)}(e,t),function(e,t){if(lC(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(t=>e.value===t.getAttribute("value"));r&&r.setAttribute("selected","")}}(e,t)),t}async function kC(e,t,n){return n||!t.filter||t.filter(e)?Promise.resolve(e).then(e=>yC(e,t)).then(n=>async function(e,t,n){var r,a;if(DC(t))return t;let s=[];return s=(e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase())(e)&&e.assignedNodes?eC(e.assignedNodes()):lC(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?eC(e.contentDocument.body.childNodes):eC((null!==(a=e.shadowRoot)&&void 0!==a?a:e).childNodes),0===s.length||lC(e,HTMLVideoElement)||await s.reduce((e,r)=>e.then(()=>kC(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}(e,n,t)).then(n=>wC(e,n,t)).then(e=>async function(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;const r={};for(let s=0;s<n.length;s++){const a=n[s].getAttribute("xlink:href");if(a){const n=e.querySelector(a),s=document.querySelector(a);n||!s||r[a]||(r[a]=await kC(s,t,!0))}}const a=Object.values(r);if(a.length){const t="http://www.w3.org/1999/xhtml",n=document.createElementNS(t,"svg");n.setAttribute("xmlns",t),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";const r=document.createElementNS(t,"defs");n.appendChild(r);for(let e=0;e<a.length;e++)r.appendChild(a[e]);e.appendChild(n)}return e}(e,t)):null}const jC=/url\((['"]?)([^'"]+?)\1\)/g,CC=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,EC=/src:\s
2*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function FC(e,t,n,r,a){try{const s=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),a=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(a),t&&(r.href=t),a.href=e,a.href}(t,n):t,i=pC(t);let o;if(a){o=xC(await a(s),i)}else o=await bC(s,i,r);return e.replace(function(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp("(url\\(['\"]?)(".concat(t,")(['\"]?\\))"),"g")}(t),"$1".concat(o,"$3"))}catch(s){}return e}function NC(e){return-1!==e.search(jC)}async function AC(e,t,n){if(!NC(e))return e;const r=function(e,t){let n=t.preferredFontFormat;return n?e.replace(EC,e=>{for(;;){const t=qe(CC.exec(e)||[],3),r=t[0],a=t[2];if(!a)return"";if(a===n)return"src: ".concat(r,";")}}):e}(e,n),a=function(e){const t=[];return e.replace(jC,(e,n,r)=>(t.push(r),e)),t.filter(e=>!mC(e))}(r);return a.reduce((e,r)=>e.then(e=>FC(e,r,t,n)),Promise.resolve(r))}async function SC(e,t,n){var r;const a=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(a){const r=await AC(a,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function _C(e,t){lC(e,Element)&&(await async function(e,t){await SC("background",e,t)||await SC("background-image",e,t),await SC("mask",e,t)||await SC("-webkit-mask",e,t)||await SC("mask-image",e,t)||await SC("-webkit-mask-image",e,t)}(e,t),await async function(e,t){const n=lC(e,HTMLImageElement);if((!n||mC(e.src))&&(!lC(e,SVGImageElement)||mC(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,a=await bC(r,pC(r),t);await new Promise((r,s)=>{e.onload=r,e.onerror=t.onImageErrorHandler?function(){try{r(t.onImageErrorHandler(...arguments))}catch(e){s(e)}}:s;const i=e;i.decode&&(i.decode=r),"lazy"===i.loading&&(i.loading="eager"),n?(e.srcset="",e.src=a):e.href.baseVal=a})}(e,t),await async function(e,t){const n=eC(e.childNodes).map(e=>_C(e,t));await Promise.all(n).then(()=>e)}(e,t))}const BC={};async function TC(e){let t=BC[e];if(null!=t)return t;const n=await fetch(e);return t={url:e,cssText:await n.text()},BC[e]=t,t}async function RC(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async a=>{let s=a.replace(r,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),gC(s,t.fetchRequestInit,e=>{let t=e.result;return n=n.replace(a,"url(".concat(t,")")),[a,t]})});return Promise.all(a).then(()=>n)}function PC(e){if(null==e)return[];const t=[];let n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)}
2)","gi");for(;;){const e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=a.exec(n);if(null===e){if(e=s.exec(n),null===e)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;t.push(e[0])}return t}async function OC(e,t){if(null==e.ownerDocument)throw new Error("Provided element is not within a Document");const n=eC(e.ownerDocument.styleSheets),r=await async function(e,t){const n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{eC(n.cssRules||[]).forEach((e,a)=>{if(e.type===CSSRule.IMPORT_RULE){let s=a+1;const i=TC(e.href).then(e=>RC(e,t)).then(e=>PC(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?s+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});r.push(i)}})}catch(tN){const s=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(TC(n.href).then(e=>RC(e,t)).then(e=>PC(e).forEach(e=>{s.insertRule(e,s.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",tN)}}),Promise.all(r).then(()=>(e.forEach(e=>{if("cssRules"in e)try{eC(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(tN){console.error("Error while reading CSS rules from ".concat(e.href),tN)}}),n))}(n,t);return function(e){return e.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>NC(e.style.getPropertyValue("src")))}(r)}function LC(e){return e.trim().replace(/["']/g,"")}async function IC(e,t){const n=await OC(e,t),r=function(e){const t=new Set;return function e(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(e=>{t.add(LC(e))}),Array.from(n.children).forEach(t=>{t instanceof HTMLElement&&e(t)}
2)}(e),t}(e);return(await Promise.all(n.filter(e=>r.has(LC(e.style.fontFamily))).map(e=>{const n=e.parentStyleSheet?e.parentStyleSheet.href:null;return AC(e.cssText,n,t)}))).join("\n")}async function MC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=aC(e,t),r=n.width,a=n.height,s=await kC(e,t,!0);await async function(e,t){const n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await IC(e,t);if(n){const t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}(s,t),await _C(s,t),function(e,t){const n=e.style;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width="".concat(t.width,"px")),t.height&&(n.height="".concat(t.height,"px"));const r=t.style;null!=r&&Object.keys(r).forEach(e=>{n[e]=r[e]})}(s,t);return await oC(s,r,a)}async function zC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=aC(e,t),r=n.width,a=n.height,s=await MC(e,t),i=await iC(s),o=document.createElement("canvas"),l=o.getContext("2d"),u=t.pixelRatio||function(){let e,t;try{t=process}catch(tN){}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),c=t.canvasWidth||r,d=t.canvasHeight||a;return o.width=c*u,o.height=d*u,t.skipAutoScale||function(e){(e.width>sC||e.height>sC)&&(e.width>sC&&e.height>sC?e.width>e.height?(e.height*=sC/e.width,e.width=sC):(e.width*=sC/e.height,e.height=sC):e.width>sC?(e.height*=sC/e.width,e.width=sC):(e.width*=sC/e.height,e.height=sC))}(o),o.style.width="".concat(c),o.style.height="".concat(d),t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,o.width,o.height)),l.drawImage(i,0,0,o.width,o.height),o}const UC=Kr("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);function qC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.page,r=void 0===n?"":n,a=t.shareId,s=void 0===a?"":a,i=t.details,o=void 0===i?"":i;try{ev.post("/events/log",{event:e,page:r,share_id:s,details:o}).catch(()=>{})}catch(l){}}const WC="#3066C9",HC="#1F49A8",VC="#0E2354",GC="#8FB3F5",$C='"Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif',KC='"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace',QC={linkedin:{key:"linkedin",label:"LinkedIn",voice:"Professional \xb7 insight-led",dims:"1200 \xd7 628",w:600,h:314,ratio:2,icon:Vv,file:"share-linkedin.png"},instagram:{key:"instagram",label:"Instagram",voice:"Warm \xb7 visual \xb7 punchy",dims:"1080 \xd7 1080",w:540,h:540,ratio:2,icon:Hv,file:"share-instagram.png"},x:{key:"x",label:"X",voice:"Concise \xb7 witty",dims:"1600 \xd7 900",w:600,h:338,ratio:2.663,icon:Yj,file:"share-x.png"}};function YC(e){return(e||"").split(",")[0].trim()||"PayRewards customer"}function JC(e){return(e||"").split(",").slice(1).join(",").trim()}function XC(e){var t,n;const r=YC(e).split(/\s+/).filter(Boolean);return(((null===(t=r[0])||void 0===t?void 0:t[0])||"P")+((null===(n=r[1])||void 0===n?void 0:n[0])||"")).toUpperCase()}function ZC(e){let t=e.scale,n=void 0===t?1:t,r=e.companyName,a=void 0===r?"PayRewards":r;return(0,Te.jsxs)("div",{className:"flex items-center gap-1.5",style:{color:"#fff",pointerEvents:"none",userSelect:"none"},children:[(0,Te.jsx)("div",{style:{width:22*n,height:22*n,borderRadius:6*n,backgroundColor:GC,color:VC,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:800,fontSize:11*n,fontFamily:$C},children:a.charAt(0).toUpperCase()}),(0,Te.jsx)("span",{style:{fontSize:14*n,fontWeight:700,fontFamily:$C,letterSpacing:"-0.01em",textTransform:"none"},children:a})]})}function eE(e){let t=e.scale;const n=void 0===t?1:t;return(0,Te.jsxs)("div",{className:"inline-flex items-center",style:{gap:6*n},children:[(0,Te.jsx)("span",{style:{fontSize:8*n,letterSpacing:"0.2em",color:"rgba(255,255,255,0.5)",fontFamily:KC,textTransform:"uppercase",whiteSpace:"nowrap"},children:"Powered by"}),(0,Te.jsx)("img",{src:"/uplaud-wordmark-white-t.png",alt:"uplaud",crossOrigin:"anonymous",style:{height:15*n,width:"auto",display:"block"}})]})}function tE(e){let t=e.scale,n=void 0===t?1:t;const r=13*n;return(0,Te.jsx)("div",{className:"flex",style:{gap:2*n},children:[0,1,2,3,4].map(e=>(0,Te.jsx)(ia,{style:{width:r,height:r,color:GC,fill:GC}},e))})}function nE(e){let t=e.text,n=e.scale,r=void 0===n?1:n;return t?(0,Te.jsx)("span",{style:{fontFamily:KC,fontSize:9.5*r,letterSpacing:"0.22em",textTransform:"uppercase",color:GC,padding:"".concat(3*r,"px ").concat(9*r,"px"),borderRadius:999,border:"1px solid rgba(143,179,245,0.4)",background:"rgba(255,255,255,0.06)",whiteSpace:"nowrap"},children:t}):null}function rE(e){let t=e.attr,n=e.scale;const r=void 0===n?1:n;return(0,Te.jsx)("div",{style:{width:34*r,height:34*r,borderRadius:999,background:"linear-gradient(135deg, ".concat(WC,", ").concat(GC,")"),padding:2*r,flexShrink:0},children:(0,Te.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:999,background:VC,color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:$C,fontWeight:700,fontSize:13*r},children:XC(t)})})}function aE(e){let t=e.attr,n=e.scale,r=void 0===n?1:n;return(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10*r,minWidth:0},children:[(0,Te.jsx)(rE,{attr:t,scale:r}),(0,Te.jsxs)("div",{style:{minWidth:0},children:[(0,Te.jsx)("div",{style:{color:"#fff",fontSize:13*r,fontWeight:600,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:YC(t)}),(0,Te.jsx)("div",{style:{color:"rgba(255,255,255,0.6)",fontFamily:KC,fontSize:10*r},children:JC(t)||"shared with their network"})]})]})}function sE(e){let t=e.text,n=e.max,r=e.min,a=e.style;const s=(0,i.useRef)(null),o=qe((0,i.useState)(n),2),l=o[0],u=o[1],c=(0,i.useCallback)(()=>{const e=s.current;if(!e)return;let t=r,a=n,i=r;for(;t<=a;){const n=Math.floor((t+a)/2);e.style.fontSize=n+"px",e.scrollHeight<=e.clientHeight+1&&e.scrollWidth<=e.clientWidth+1?(i=n,t=n+1):a=n-1}e.style.fontSize=i+"px",u(i)},[n,r]);return(0,i.useLayoutEffect)(()=>{var e;c();const t=setTimeout(c,250);return null!==(e=document.fonts)&&void 0!==e&&e.ready&&document.fonts.ready.then(c).catch(()=>{}),()=>clearTimeout(t)},[t,c]),(0,Te.jsx)("div",{ref:s,style:f({fontSize:l,overflow:"hidden",
2width:"100%",height:"100%",display:"flex",alignItems:"flex-start"},a),children:(0,Te.jsx)("span",{style:{width:"100%"},children:t})})}function iE(e){let t=e.w,n=e.h,r=e.children;const a=(0,i.useRef)(null),s=qe((0,i.useState)(1),2),o=s[0],l=s[1];return(0,i.useLayoutEffect)(()=>{const e=a.current;if(!e)return;let n=0;const r=()=>{const n=Math.min(1,e.clientWidth/t);l(e=>Math.abs(e-n)>.001?n:e)};r();const s=new ResizeObserver(()=>{cancelAnimationFrame(n),n=requestAnimationFrame(r)});return s.observe(e),()=>{cancelAnimationFrame(n),s.disconnect()}},[t]),(0,Te.jsx)("div",{ref:a,style:{width:"100%",height:n*o},className:"relative",children:(0,Te.jsx)("div",{style:{width:t,height:n,transform:"scale(".concat(o,")"),transformOrigin:"top left",position:"absolute",top:0,left:0},children:r})})}const oE={linkedin:(0,i.forwardRef)(function(e,t){let n=e.c;const r="customer"===n.pov;return(0,Te.jsxs)("div",{ref:t,style:{width:QC.linkedin.w,height:QC.linkedin.h,position:"relative",overflow:"hidden",fontFamily:$C,background:"radial-gradient(120% 120% at 0% 100%, rgba(143,179,245,0.16), transparent 45%), linear-gradient(135deg, ".concat("#081833"," 0%, ").concat(VC," 60%, #163a7a 100%)")},children:[(0,Te.jsx)("div",{style:{position:"absolute",left:0,top:40,bottom:40,width:4,background:"linear-gradient(".concat(GC,", ").concat(WC,")"),borderTopRightRadius:4,borderBottomRightRadius:4}}),(0,Te.jsxs)("div",{style:{position:"relative",height:"100%",padding:34,paddingLeft:40,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[r?(0,Te.jsx)(aE,{attr:n.attribution}):(0,Te.jsx)(ZC,{companyName:n.company}),!r&&(0,Te.jsx)(nE,{text:n.eyebrow})]}),n.headline&&(0,Te.jsx)("div",{style:{marginTop:14,color:GC,fontWeight:700,fontSize:20,lineHeight:1.15,letterSpacing:"-0.02em"},children:n.headline}),(0,Te.jsx)("div",{style:{flex:1,minHeight:0,marginTop:10,borderLeft:"2px solid rgba(143,179,245,0.5)",paddingLeft:14,display:"flex"},children:(0,Te.jsx)(sE,{text:"\u201c".concat(n.quote,"\u201d"),max:20,min:12,style:{color:"rgba(255,255,255,0.94)",fontWeight:500,lineHeight:1.3}})}),(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,marginTop:8},children:[r?(0,Te.jsxs)("span",{style:{color:"rgba(255,255,255,0.4)",fontFamily:KC,fontSize:10},children:["my experience with ",n.company]}):(0,Te.jsx)(aE,{attr:n.attribution}),(0,Te.jsx)(eE,{})]})]})]})}),instagram:(0,i.forwardRef)(function(e,t){let n=e.c;const r="customer"===n.pov;return(0,Te.jsxs)("div",{ref:t,style:{width:QC.instagram.w,height:QC.instagram.h,position:"relative",overflow:"hidden",fontFamily:$C,background:"linear-gradient(155deg, ".concat(VC," 0%, ").concat(HC," 52%, ").concat(WC," 78%, #6f97e6 100%)")},children:[(0,Te.jsx)("div",{style:{position:"absolute",top:-120,right:-80,width:360,height:360,borderRadius:999,background:"radial-gradient(circle, rgba(143,179,245,0.45), transparent 62%)"}}),(0,Te.jsx)("div",{style:{position:"absolute",left:22,top:92,fontSize:260,lineHeight:.7,color:"rgba(255,255,255,0.08)",fontFamily:"Georgia, serif"},children:"\u201c"}),(0,Te.jsxs)("div",{style:{position:"relative",height:"100%",padding:44,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[r?(0,Te.jsx)(aE,{attr:n.attribution,scale:1.1}):(0,Te.jsx)(ZC,{companyName:n.company,scale:1.06}),!r&&(0,Te.jsx)(tE,{scale:1.1})]}),n.headline&&(r?(0,Te.jsx)("div",{style:{marginTop:16,color:GC,fontWeight:700,fontSize:16},children:n.headline}):(0,Te.jsx)("div",{style:{marginTop:16},children:(0,Te.jsx)("span",{style:{display:"inline-block",background:GC,color:VC,fontFamily:KC,fontSize:11,fontWeight:700,letterSpacing:"0.06em",padding:"5px 12px",borderRadius:999},children:n.headline})})),(0,Te.jsx)("div",{style:{flex:1,minHeight:0,marginTop:18,display:"flex"},children:(0,Te.jsx)(sE,{text:"\u201c".concat(n.quote,"\u201d"),max:44,min:20,style:{color:"#fff",fontWeight:700,lineHeight:1.16,letterSpacing:"-0.02em"}})}),(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12},children:[r?(0,Te.jsxs)("span",{style:{color:"rgba(255,255,255,0.6)",fontFamily:KC,fontSize:10.5},children:["on ",n.company]}):(0,Te.jsx)(aE,{attr:n.attribution,scale:1.12}),(0,Te.jsx)(eE,{scale:1.06})]})]})]})}),x:(0,i.forwardRef)(function(e,t){let n=e.c;const r="customer"===n.pov;return(0,Te.jsx)("div",{ref:t,style:{width:QC.x.w,height:QC.x.h,position:"relative",overflow:"hidden",fontFamily:$C,background:"radial-gradient(100% 140% at 100% 0%, rgba(48,102,201,0.35), transparent 55%), #0a1730"},children:(0,Te.jsxs)("div",{style:{position:"relative",height:"100%",padding:34,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[r?(0,Te.jsx)(aE,{attr:n.attribution,scale:.95}):(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:9},children:[(0,Te.jsx)(ZC,{companyName:n.company,scale:.92}),(0,Te.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:3,color:"rgba(255,255,255,0.5)",fontFamily:KC,fontSize:11},children:["@",n.company.toLowerCase().replace(/[^a-z0-9]+/g,"")," ",(0,Te.jsx)(sv,{style:{width:13,height:13,color:GC}})]})]}),!r&&(0,Te.jsx)(nE,{text:n.eyebrow})]}),n.headline&&(0,Te.jsxs)("div",{style:{marginTop:12},children:[(0,Te.jsx)("div",{style:{color:"#fff",fontWeight:700,fontSize:19,letterSpacing:"-0.02em"},children:n.headline}),(0,Te.jsx)("div",{style:{width:46,height:3,background:GC,borderRadius:3,marginTop:8}})]}),(0,Te.jsx)("div",{style:{flex:1,minHeight:0,marginTop:12,display:"flex"},children:(0,Te.jsx)(sE,{text:"\u201c".concat(n.quote,"\u201d"),max:23,min:13,style:{color:"rgba(255,255,255,0.92)",fontWeight:500,lineHeight:1.28}})}),(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,Te.jsx)("span",{style:{color:r?"rgba(255,255,255,0.4)":GC,fontFamily:KC,fontSize:11},children:r?"on ".concat(n.company):"\u2014 ".concat(n.attribution)}),(0,Te.jsx)(eE,{scale:.95})]})]})})})};function lE(e){let t=e.testId,n=e.icon,r=e.label,a=e.onClick,s=e.variant,i=void 0===s?"
2solid":s;const o="inline-flex items-center gap-2 h-10 px-4 rounded-full text-[13px] font-medium transition-transform hover:-translate-y-[1px]";if("outline"===i)return(0,Te.jsxs)("button",{"data-testid":t,onClick:a,className:"".concat(o," border border-[#e2d9f5] text-[#261c4d] hover:bg-[#f5f3ff]"),children:[(0,Te.jsx)(n,{className:"w-4 h-4"}),r]});const l="mint"===i?{backgroundColor:GC,color:VC}:{backgroundColor:WC,color:"#fff"};return(0,Te.jsxs)("button",{"data-testid":t,onClick:a,className:o,style:l,children:[(0,Te.jsx)(n,{className:"w-4 h-4"}),r]})}function uE(e){let t=e.quote,n=e.attribution,r=e.company,a=void 0===r?"PayRewards":r,s=e.pov,o=void 0===s?"company":s,l=e.publicUrl,u=void 0===l?"undefined"!==typeof window?window.location.href:"":l,c=e.channels,d=void 0===c?["linkedin","instagram","x"]:c,h=e.imageChannels,f=void 0===h?["linkedin","instagram","x"]:h,p=e.heading,m=e.subheading,x=e.testId,g=void 0===x?"share-assets":x,v=e.shareId,b=void 0===v?"":v;const y=(0,i.useRef)({}),D=qe((0,i.useState)(null),2),w=D[0],k=D[1],j=qe((0,i.useState)(!0),2),C=j[0],E=j[1],F=(t||"").trim(),N=(n||"PayRewards customer").trim(),A="customer"===o,S=p||(A?"Share it with your network":"Your branded share assets"),_=m||(A?"Genuine posts written in your voice \u2014 no sales pitch, just your honest take. Share whatever feels right.":"Channel-native posts \u2014 written and designed for each platform, powered by Uplaud.");(0,i.useEffect)(()=>{let e=!0;return E(!0),ev.post("/social/generate",{testimonial:F,attribution:N,company:a,pov:o,channels:d}).then(t=>{var n;e&&k((null===(n=t.data)||void 0===n?void 0:n.channels)||t.data)}).catch(()=>{if(!e)return;const t={};d.forEach(e=>t[e]={eyebrow:A?"":"CUSTOMER STORY",headline:A?"My honest take":"In our customer's words",quote:F.slice(0,150),caption:F,hashtags:[],cta:""}),k(t)}).finally(()=>e&&E(!1)),()=>{e=!1}},[F,N,a,o]);const B=e=>{var t,n,r;return{pov:o,company:a,attribution:N,eyebrow:(null===w||void 0===w||null===(t=w[e])||void 0===t?void 0:t.eyebrow)||(A?"":"CUSTOMER STORY"),headline:(null===w||void 0===w||null===(n=w[e])||void 0===n?void 0:n.headline)||"",quote:(null===w||void 0===w||null===(r=w[e])||void 0===r?void 0:r.quote)||F}},T=async e=>{const t=y.current[e];if(!t)throw new Error("Card not ready yet \u2014 please wait a moment and try again.");return async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(await zC(e,t)).toDataURL()}(t,{pixelRatio:QC[e].ratio,cacheBust:!0,width:QC[e].w,height:QC[e].h})},R=e=>{qC("copy_caption_".concat(e,"_click"),{page:"testimonial",shareId:b});const t=(null===w||void 0===w?void 0:w[e])||{},n=(t.hashtags||[]).map(e=>"#".concat(e)).join(" "),r=[t.caption,n].filter(Boolean).join("\n\n");navigator.clipboard.writeText(r).then(()=>Tr.success("".concat(QC[e].label," caption copied"))).catch(()=>Tr.info("Copy not available"))},P=()=>{qC("share_linkedin_click",{page:"testimonial",shareId:b}),window.open("https://www.linkedin.com/sharing/share-offsite/?url=".concat(encodeURIComponent(u)),"_blank","noopener,width=680,height=640")},O=()=>{var e;qC("share_x_click",{page:"testimonial",shareId:b}),window.open("https://twitter.com/intent/tweet?text=".concat(encodeURIComponent((null===w||void 0===w||null===(e=w.x)||void 0===e?void 0:e.caption)||'"'.concat(B("x").quote,'"')),"&url=").concat(encodeURIComponent(u)),"_blank","noopener,width=680,height=640")},L={linkedin:(0,Te.jsx)(lE,{testId:"share-linkedin",icon:Vv,label:"Share on LinkedIn",onClick:P}),instagram:(0,Te.jsx)(lE,{testId:"share-instagram",icon:ov,label:"Share to Instagram",onClick:()=>(async e=>{qC("share_".concat(e,"_click"),{page:"testimonial",shareId:b});try{var t,n;const r=await T(e),a=await(await fetch(r)).blob(),s=new File([a],QC[e].file,{type:"image/png"});if(null!==(t=(n=navigator).canShare)&&void 0!==t&&t.call(n,{files:[s]}))return await navigator.share({files:[s],text:B(e).quote}),void Tr.success("".concat(QC[e].label," share sheet opened"));if(navigator.share)return await navigator.share({text:B(e).quote,url:u}),void Tr.success("Shared");const i=document.createElement("a");i.href=r,i.download=QC[e].file,i.click(),R(e),Tr.info("".concat(QC[e].label," image downloaded & caption copied \u2014 open Instagram and upload it there"))}catch(nN){if("AbortError"===(null===nN||void 0===nN?void 0:nN.name))return;console.error("".concat(e," share failed"),nN),Tr.error("Couldn't prepare the ".concat(QC[e].label," share. Try Download instead."))}})("instagram")}),x:(0,Te.jsx)(lE,{testId:"share-x-card",icon:Yj,label:"Post on X",onClick:O})};return(0,Te.jsxs)("section",{"data-testid":g,children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(la,{className:"w-4 h-4",style:{color:WC}}),(0,Te.jsx)("h2",{className:"font-display text-[20px] font-semibold text-[#261c4d]",children:S}),(0,Te.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-[0.16em] px-2 py-0.5 rounded-full",style:{background:"#f0ebfb",color:HC},children:A?"Your voice":"".concat(a," voice")})]}),(0,Te.jsx)("p",{className:"text-[13px] text-[#6b6480] mt-1",children:_}),C&&(0,Te.jsxs)("div",{className:"mt-8 flex items-center gap-2 text-[13px] text-[#6d46c6]","data-testid":"social-generating",children:[(0,Te.jsx)(qc,{className:"w-4 h-4 animate-spin"})," Writing channel-native posts\u2026"]}),(0,Te.jsx)("div",{className:"mt-7 space-y-8",children:d.map(e=>{var t,n;const r=QC[e],a=oE[e],s=null===w||void 0===w?void 0:w[e],i=r.icon;return(0,Te.jsxs)("div",{"data-testid":"asset-".concat(e),className:"rounded-2xl border border-[#eee7f7] bg-white p-5 ".concat(f.includes(e)?"grid grid-cols-1 lg:grid-cols-2 gap-6 items-start":""),children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#9a93b0] mb-2 flex items-center gap-2",children:[(0,Te.jsx)(i,{className:"w-3.5 h-3.5",style:{color:WC}})," ",r.label," ",f.includes(e)?"\xb7 ".concat(r.dims):"\xb7 text post"]}),f.includes(e)?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("div",{className:"rounded-xl overflow-hidden border border-[#e6dff5] shadow-sm",style:{background:VC},children:(0,Te.jsx)(iE,{w:r.w,h:r.h,children:(0,Te.jsx)(a,{c:B(e),ref:t=>y.current[e]=t})})}),(0,Te.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[L[e],(0,Te.jsx)(lE,{testId:"download-".concat(e),icon:Vj,label:"Download",variant:"outline",onClick:()=>{qC("download_".concat(e,"_click"),{page:"testimonial",shareId:b}),(async e=>{try{const t=await T(e),n=document.createElement("a");n.href=t,n.download=QC[e].file,n.click(),Tr.success("".concat(QC[e].label," image downloaded"))}catch(nN){console.error("download failed",nN),Tr.error("Could not generate image")}})(e)}})]})]}):s?(0,Te.jsxs)("div",{className:"rounded-xl bg-[#faf9ff] border border-[#eee7f7] p-4",children:[(0,Te.jsx)("p",{className:"text-[14px] leading-relaxed text-[#2b2340] whitespace-pre-line",children:s.caption}),(null===(t=s.hashtags)||void 0===t?void 0:t.length)>0&&(0,Te.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:s.hashtags.map(e=>(0,Te.jsxs)("span",{className:"text-[12px] font-mono",style:{color:WC},children:["#",e]},e))}),(0,Te.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-2",children:[L[e],(0,Te.jsx)(lE,{testId:"copy-caption-".concat(e),icon:Xj,label:"Copy caption",variant:"mint",onClick:()=>R(e)})]})]}):(0,Te.jsx)("div",{className:"rounded-xl bg-[#faf9ff] border border-[#eee7f7] p-4 text-[13px] text-[#9a93b0]",children:"Generating\u2026"})]}),f.includes(e)&&(0,Te.jsxs)("div",{className:"lg:pt-7",children:[(0,Te.jsx)("div",{className:"flex items-center gap-2 mb-2",children:(0,Te.jsx)("span",{className:"text-[11px] font-mono uppercase tracking-[0.14em] px-2 py-0.5 rounded-full",style:{background:"#f0ebfb",color:HC},children:r.voice})}),s?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"rounded-xl bg-[#faf9ff] border border-[#eee7f7] p-4",children:[(0,Te.jsx)("p",{className:"text-[13.5px] leading-relaxed text-[#2b2340] whitespace-pre-line",children:s.caption}),(null===(n=s.hashtags)||void 0===n?void 0:n.length)>0&&(0,Te.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:s.hashtags.map(e=>(0,Te.jsxs)("span",{className:"text-[12px] font-mono",style:{color:WC},children:["#",e]},e))})]}),(0,Te.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[(0,Te.jsx)(lE,{testId:"copy-caption-".concat(e),icon:Xj,label:"Copy caption",variant:"mint",onClick:()=>R(e)}),s.cta&&(0,Te.jsxs)("span",{className:"text-[12px] text-[#9a93b0] font-mono",children:["CTA: ",s.cta]})]})]}):(0,Te.jsx)("div",{className:"rounded-xl bg-[#faf9ff] border border-[#eee7f7] p-4 text-[13px] text-[#9a93b0]",children:"Generating\u2026"})]})]},e)})}),(0,Te.jsxs)("div",{className:"mt-8 rounded-2xl p-6 flex flex-wrap items-center gap-3",style:{background:"linear-gradient(120deg, ".concat(VC,", ").concat(HC,")")},children:[(0,Te.jsxs)("div",{className:"text-white",children:[(0,Te.jsx)("div",{className:"font-display font-semibold",children:"Share everywhere"}),(0,Te.jsx)("div",{className:"text-[12px] text-white/60",children:"Post directly or grab the visual + caption for each channel."})]}),(0,Te.jsxs)("div",{className:"ml-auto flex flex-wrap gap-2",children:[(0,Te.jsx)(lE,{testId:"tray-x",icon:Yj,label:"X",variant:"mint",onClick:O}),(0,Te.jsx)(lE,{testId:"tray-linkedin",icon:Vv,label:"LinkedIn",variant:"mint",onClick:P}),(0,Te.jsx)(lE,{testId:"tray-copy",icon:UC,label:"Copy link",variant:"mint",onClick:()=>{qC("copy_link_click",{page:"testimonial",shareId:b}),navigator.clipboard.writeText(u).then(()=>Tr.success("Link copied")).catch(()=>{})}})]})]})]})}const cE=[{id:"linkedin",label:"LinkedIn",icon:Vv,color:"#0a66c2"},{id:"x",label:"X (Twitter)",icon:Yj,color:"#111827"},{id:"instagram",label:"Instagram",icon:Hv,color:"#e1306c"}],dE=["professional","punchy","founder-testimonial","data-forward","warm"];function hE(){const e=Vg(),t=(null===e||void 0===e?void 0:e.workspace)||(null===e||void 0===e?void 0:e.company)||"My Company",n=qe((0,i.useState)([]),2),r=n[0],a=n[1],s=qe((0,i.useState)(!0),2),o=s[0],l=s[1],u=qe((0,i.useState)(""),2),c=u[0],d=u[1],h=qe((0,i.useState)("linkedin"),2),f=h[0],p=h[1],m=qe((0,i.useState)("professional"),2),x=m[0],g=m[1],v=qe((0,i.useState)(!1),2),b=v[0],y=v[1],D=qe((0,i.useState)(null),2),w=D[0],k=D[1],j=qe((0,i.useState)(!1),2),C=j[0],E=j[1],F=r.find(e=>e.id===c);(0,i.useEffect)(()=>{let e=!0;return ev.get("/testimonials").then(t=>{if(!e)return;const n=t.data||[];a(n),n.length>0&&d(n[0].id)}).catch(()=>{e&&Tr.error("Couldn't load testimonials from Uplaud")}).finally(()=>e&&l(!1)),()=>{e=!1}},[]),(0,i.useEffect)(()=>
2{if(!F)return;let e=!0;return E(!0),ev.post("/social/generate",{testimonial:F.body,attribution:F.customer,company:t,pov:"company",channels:["linkedin","instagram","x"],tone:x}).then(t=>{var n;e&&k((null===(n=t.data)||void 0===n?void 0:n.channels)||null)}).catch(()=>{e&&k(null)}).finally(()=>e&&E(!1)),()=>{e=!1}},[c,x]);const N=(0,i.useMemo)(()=>0===r.length?{label:"Approved testimonials ready to amplify",value:"0",delta:"Approve a testimonial in Growth Signals to unlock amplification",attribution:"Every post here is drafted in PayRewards' brand voice and grounded in a real, approved customer testimonial \u2014 nothing goes out until you connect an account."}:{label:"Approved testimonials ready to amplify",value:"".concat(r.length),delta:"across LinkedIn, Instagram and X",attribution:"Sourced live from your Uplaud testimonials \u2014 draft channel-native posts below, then connect an account to publish."},[r]),A=(0,i.useMemo)(()=>{if(0===r.length)return{eyebrow:"Intelligent action",headline:"No approved testimonials yet",reasoning:[],outcome:"Approve a testimonial in Growth Signals to unlock a personalized amplification plan here.",cta:"Go to Growth Signals"};const e=r[0];return{eyebrow:"Intelligent action",headline:"".concat(e.customer,"'s testimonial is ready to amplify"),reasoning:[{label:"Source",value:e.source||"Uplaud"},e.sentiment?{label:"Sentiment",value:e.sentiment}:null,e.date_added?{label:"Captured",value:e.date_added}:null].filter(Boolean),outcome:"Draft channel-native posts for LinkedIn, Instagram and X in PayRewards' voice below.",cta:"Generate drafts for this testimonial"}},[r]);return(0,Te.jsxs)("div",{"data-testid":"social-agent-page",className:"space-y-10",children:[(0,Te.jsx)(YD,{eyebrow:"Growth Amplification \xb7 ".concat(t),question:"Which testimonial should you amplify next?",northStar:N,smartAction:A,onAction:()=>{0!==r.length?(d(r[0].id),Tr.success("Loaded top testimonial into the composer")):Tr.info("Head to Growth Signals to approve a testimonial first")}}),(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-6",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-display text-[20px] font-semibold tracking-tight text-[#111827]",children:"Compose from a customer testimonial"}),(0,Te.jsx)("p",{className:"text-[12.5px] text-[#9ca3af] mt-1",children:"Every post is anchored to a real, approved testimonial."})]}),(0,Te.jsxs)("button",{"data-testid":"social-connect-accounts-btn",className:"btn-secondary h-10 !py-0",children:["Connect accounts",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-6",children:[(0,Te.jsxs)("div",{className:"lg:col-span-3 rounded-2xl border border-[#eeeaf6] bg-white p-6",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,Te.jsx)(la,{className:"w-4 h-4 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[13px] font-display font-semibold text-[#111827]",children:"Compose from a review"})]}),(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("label",{className:"text-[11px] font-mono uppercase tracking-[0.14em] text-[#4b5563]",children:["Source testimonial (from Uplaud \xb7 ",t,")"]}),o?(0,Te.jsx)("div",{className:"mt-2 h-11 rounded-xl border border-[#eeeaf6] bg-[#faf9ff] animate-pulse"}):0===r.length?(0,Te.jsxs)("div",{"data-testid":"social-no-testimonials",className:"mt-2 rounded-xl border border-[#eeeaf6] bg-[#faf9ff] p-4 text-[12.5px] text-[#9ca3af]",children:["No approved testimonials yet for ",t," in Uplaud \u2014 import & approve a customer source first."]}):(0,Te.jsx)("select",{"data-testid":"social-review-select",value:c,onChange:e=>d(e.target.value),className:"mt-2 w-full h-11 px-4 rounded-xl border border-[#eeeaf6] bg-white text-[13px] focus:outline-none focus:border-[#d9d1ee]",children:r.map(e=>{const t="".concat(e.customer," \xb7 ").concat(function(e,t){const n=(e||"").trim();return n.length<=t?n:n.slice(0,t).trim()+"\u2026"}(e.body,60));return(0,Te.jsx)("option",{value:e.id,label:t,children:t},e.id)})})]}),F&&(0,Te.jsxs)("div",{"data-testid":"social-review-preview",className:"rounded-xl bg-[#faf9ff] border border-[#eeeaf6] p-4",children:[(0,Te.jsxs)("p",{className:"text-[12.5px] text-[#4b5563] leading-relaxed",children:["\u201c",F.body,"\u201d"]}),(0,Te.jsxs)("div",{className:"mt-2 text-[10.5px] font-mono text-[#9ca3af]",children:[F.customer," \xb7 ",F.rating?"".concat(F.rating,"\u2605 \xb7 "):"",F.source,F.sentiment&&" \xb7 ".concat(F.sentiment," sentiment")]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-[11px] font-mono uppercase tracking-[0.14em] text-[#4b5563]",children:"Platform"}),(0,Te.jsx)("div",{className:"mt-2 flex gap-2",children:cE.map(e=>{const t=f===e.id,n=e.icon;return(0,Te.jsxs)("button",{"data-testid":"platform-".concat(e.id),onClick:()=>
2p(e.id),className:"flex-1 h-11 px-4 rounded-xl border text-[13px] font-medium flex items-center justify-center gap-2 transition-all ".concat(t?"border-[#6d46c6] bg-[#f5f3ff] text-[#261c4d]":"border-[#eeeaf6] bg-white text-[#4b5563] hover:border-[#d9d1ee]"),children:[(0,Te.jsx)(n,{className:"w-4 h-4",strokeWidth:1.75,style:{color:t?e.color:void 0}}),e.label]},e.id)})})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-[11px] font-mono uppercase tracking-[0.14em] text-[#4b5563]",children:"Tone"}),(0,Te.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:dE.map(e=>(0,Te.jsx)("button",{"data-testid":"tone-".concat(e),onClick:()=>g(e),className:"px-3.5 py-1.5 rounded-full text-[12px] font-medium border transition-all ".concat(x===e?"bg-[#111827] text-white border-[#111827]":"bg-white text-[#4b5563] border-[#eeeaf6] hover:border-[#d9d1ee]"),children:e},e))})]}),(0,Te.jsx)("button",{"data-testid":"social-generate-btn",onClick:async()=>{if(F){y(!0);try{var e;const n=(await ev.post("/social/generate",{testimonial:F.body,attribution:F.customer,company:t,pov:"company",channels:[f],tone:x})).data,r=null===n||void 0===n||null===(e=n.channels)||void 0===e?void 0:e[f];if(!r)throw new Error("No content returned");const a=(r.hashtags||[]).map(e=>"#".concat(e)).join(" "),s=[r.eyebrow,r.headline,r.caption,a,r.cta].filter(Boolean).join("\n\n");await navigator.clipboard.writeText(s),Tr.success("".concat(cE.find(e=>e.id===f).label," draft copied \u2014 ready to paste"),{description:"PayRewards voice, grounded in this testimonial."})}catch(nN){var n,r;Tr.error(Zg(null===(n=nN.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.detail)||"Couldn't generate that draft \u2014 try again")}finally{y(!1)}}},disabled:b||!F,className:"btn-primary w-full justify-center h-12",children:b?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Jj,{className:"w-4 h-4 animate-spin",strokeWidth:2}),"Drafting..."]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Xj,{className:"w-4 h-4",strokeWidth:2}),"Generate & copy draft"]})})]})]}),(0,Te.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-[11px] font-mono uppercase tracking-[0.18em] text-[#4b5563]",children:["Live previews \xb7 LinkedIn \xb7 Instagram \xb7 X",C&&(0,Te.jsx)(qc,{className:"w-3.5 h-3.5 animate-spin text-[#6d46c6]"})]}),(0,Te.jsx)(pE,{businessName:t,content:null===w||void 0===w?void 0:w.linkedin,loading:C}),(0,Te.jsx)(mE,{businessName:t,content:null===w||void 0===w?void 0:w.instagram,loading:C}),(0,Te.jsx)(xE,{businessName:t,content:null===w||void 0===w?void 0:w.x,loading:C})]})]}),F&&(0,Te.jsx)("div",{className:"pt-2",children:(0,Te.jsx)(uE,{quote:F.body,attribution:F.customer,company:t,pov:"company",heading:"Branded visual assets",subheading:"Polished, PayRewards-voice posts your marketing team can publish \u2014 a different tone and design for each channel.",testId:"social-branded-assets",publicUrl:"undefined"!==typeof window?window.location.origin:""})})]})}function fE(e,t){if(!e)return;const n=(e.hashtags||[]).join(" "),r=[e.eyebrow,e.headline,e.caption,n,e.cta].filter(Boolean).join("\n\n");navigator.clipboard.writeText(r).then(()=>Tr.success("Copied ".concat(t," draft"))).catch(()=>Tr.info("Copy not available"))}function pE(e){var t;let n=e.content,r=e.loading,a=e.businessName,s=void 0===a?"PayRewards":a;return(0,Te.jsxs)("div",{"data-testid":"preview-linkedin",className:"rounded-2xl border border-[#eeeaf6] bg-white overflow-hidden shadow-[0_10px_40px_-30px_rgba(38,28,77,0.35)]",children:[(0,Te.jsxs)("div",{className:"px-4 py-3 border-b border-[#eeeaf6] flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-full bg-[#0a66c2]/15 flex items-center justify-center",children:(0,Te.jsx)(Vv,{className:"w-4 h-4 text-[#0a66c2]",strokeWidth:1.75})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[12.5px] font-semibold text-[#111827] leading-tight",children:s}),(0,Te.jsx)("div",{className:"text-[10.5px] font-mono text-[#9ca3af]",children:"LinkedIn \xb7 8,412 followers"})]}),(0,Te.jsx)("span",{className:"ml-auto text-[10px] font-mono text-[#6d46c6]",children:"drafted by uplaud"})]}),(0,Te.jsx)("div",{className:"p-4",children:r||!n?(0,Te.jsxs)("div",{className:"space-y-2 animate-pulse",children:[(0,Te.jsx)("div",{className:"h-3 w-2/3 rounded bg-[#f2eefa]"}),(0,Te.jsx)("div",{className:"h-3 w-full rounded bg-[#f2eefa]"}),(0,Te.jsx)("div",{className:"h-3 w-5/6 rounded bg-[#f2eefa]"})]}):(0,Te.jsxs)(Te.Fragment,{children:[n.eyebrow&&(0,Te.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.18em] text-[#6d46c6] mb-2",children:n.eyebrow}),n.headline&&(0,Te.jsx)("div",{className:"font-display text-[15px] font-semibold text-[#111827] mb-1.5 leading-snug",children:n.headline}),(0,Te.jsx)("p",{className:"text-[13px] leading-relaxed text-[#111827] whitespace-pre-line",children:n.caption}),(null===(t=n.hashtags)||void 0===t?void 0:t.length)>0&&(0,Te.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:n.hashtags.map(e=>(0,Te.jsxs)("span",{className:"text-[11px] font-mono text-[#6d46c6]",children:["#",e]},e))})]})}),(0,Te.jsxs)("div",{className:"px-4 py-3 bg-[#faf9ff] border-t border-[#eeeaf6] flex items-center gap-4 text-[11px] font-mono text-[#4b5563]",children:[(0,Te.jsxs)("span",{children:["Reach ",(0,Te.jsx)("b",{className:"text-[#111827]",children:"18.4k"})]}),(0,Te.jsxs)("span",{children:["Eng ",(0,Te.jsx)("b",{className:"text-[#111827]",children:"4.6%"})]}),(null===n||void 0===n?void 0:n.cta)&&(0,Te.jsxs)("span",{className:"text-[#6d46c6]",children:["CTA: ",n.cta]}),(0,Te.jsx)("button",{"data-testid":"preview-linkedin-copy",className:"ml-auto text-[#6d46c6] hover:underline",onClick:()=>fE(n,"LinkedIn"),children:"Copy"})]})]})}function mE(e){var t;let n=e.content,r=e.loading,a=e.businessName,s=void 0===a?"PayRewards":a;return(0,Te.jsxs)("div",{"data-testid":"preview-instagram",className:"rounded-2xl overflow-hidden bg-white border border-[#eeeaf6] shadow-[0_10px_40px_-30px_rgba(38,28,77,0.35)]",children:[(0,Te.jsxs)("div",{className:"px-4 py-3 border-b border-[#eeeaf6] flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center",style:{background:"linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%)"},children:(0,Te.jsx)(Hv,{className:"w-4 h-4 text-white",strokeWidth:1.75})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[12.5px] font-semibold text-[#111827] leading-tight",children:s.toLowerCase().replace(/[^a-z0-9]+/g,"")}),(0,Te.jsx)("div",{className:"text-[10.5px] font-mono text-[#9ca3af]",children:"Instagram \xb7 Post"})]}),(0,Te.jsx)("span",{className:"ml-auto text-[10px] font-mono text-[#6d46c6]",children:"drafted by uplaud"})]}),(0,Te.jsx)("div",{className:"relative aspect-[4/5] flex flex-col p-6",style:{background:"linear-gradient(150deg, #0E2354 0%, #1F49A8 55%, #3066C9 100%)"},children:r||!n?(0,Te.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,Te.jsx)(qc,{className:"w-5 h-5 text-white/70 animate-spin"})}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-1.5",style:{color:"#fff"},children:[(0,Te.jsx)("div",{style:{width:18,height:18,borderRadius:5,backgroundColor:"#8FB3F5",color:"#0E2354",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:800,fontSize:10},children:s.charAt(0).toUpperCase()}),(0,Te.jsx)("span",{className:"font-semibold text-[12px] tracking-tight",children:s})]}),n.eyebrow&&(0,Te.jsx)("span",{className:"text-[9.5px] font-mono text-white/70 uppercase tracking-[0.22em]",children:n.eyebrow})]}),(0,Te.jsx)("div",{className:"flex-1 flex items-center py-4",children:(0,Te.jsxs)("div",{className:"font-display text-white text-[21px] leading-[1.22] font-semibold",children:["\u201c",n.quote,"\u201d"]})}),n.headline&&(0,Te.jsx)("div",{className:"text-[11px] font-mono text-white/60 uppercase tracking-[0.1em]",children:n.headline})]})}),(0,Te.jsx)("div",{className:"p-4",children:!r&&n&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("p",{className:"text-[13px] leading-relaxed text-[#111827] whitespace-pre-line",children:n.caption}),(null===(t=n.hashtags)||void 0===t?void 0:t.length)>0&&(0,Te.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:n.hashtags.map(e=>(0,Te.jsxs)("span",{className:"text-[11px] font-mono text-[#6d46c6]",children:["#",e]},e))})]})}),(0,Te.jsxs)("div",{className:"px-4 py-3 bg-[#faf9ff] border-t border-[#eeeaf6] flex items-center gap-4 text-[11px] font-mono text-[#4b5563]",children:[(0,Te.jsxs)("span",{children:["Est. reach ",(0,Te.jsx)("b",{className:"text-[#111827]",children:"22.8k"})]}),(0,Te.jsxs)("span",{children:["Eng ",(0,Te.jsx)("b",{className:"text-[#111827]",children:"5.9%"})]}),(0,Te.jsx)("button",{"data-testid":"preview-instagram-copy",className:"ml-auto text-[#6d46c6] hover:underline",onClick:()=>fE(n,"Instagram"),children:"Copy"})]})]})}function xE(e){var t;let n=e.content,r=e.loading,a=e.businessName,s=void 0===a?"PayRewards":a;return(0,Te.jsxs)("div",{"data-testid":"preview-x",className:"rounded-2xl border border-[#eeeaf6] bg-white overflow-hidden shadow-[0_10px_40px_-30px_rgba(38,28,77,0.35)]",children:[(0,Te.jsxs)("div",{className:"px-4 py-3 border-b border-[#eeeaf6] flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-full bg-black flex items-center justify-center",children:(0,Te.jsx)(Yj,{className:"w-4 h-4 text-white",strokeWidth:1.75})}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"text-[12.5px] font-semibold text-[#111827] leading-tight flex items-center gap-1",children:[s,(0,Te.jsx)("span",{className:"w-3.5 h-3.5 rounded-full bg-[#1d9bf0] text-white text-[8px] flex items-center justify-center font-bold",children:"\u2713"})]}),(0,Te.jsxs)("div",{className:"text-[10.5px] font-mono text-[#9ca3af]",children:["@",s.toLowerCase().replace(/[^a-z0-9]+/g,"")," \xb7 12,204 followers"]})]}),(0,Te.jsx)("span",{className:"ml-auto text-[10px] font-mono text-[#6d46c6]",children:"drafted by uplaud"})]}),(0,Te.jsx)("div",{className:"p-4",children:r||!n?(0,Te.jsxs)("div",{className:"space-y-2 animate-pulse",children:[(0,Te.jsx)("div",{className:"h-3 w-full rounded bg-[#f2eefa]"}),(0,Te.jsx)("div",{className:"h-3 w-3/4 rounded bg-[#f2eefa]"})]}):(0,Te.jsxs)(Te.Fragment,{children:[n.headline&&(0,Te.jsx)("div",{className:"font-display text-[14px] font-semibold text-[#111827] mb-1",children:n.headline}),(0,Te.jsx)("p",{className:"text-[14px] leading-[1.4] text-[#111827] whitespace-pre-line",children:n.caption}),(null===(t=n.hashtags)||void 0===t?void 0:t.length)>0&&(0,Te.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:n.hashtags.map(e=>(0,Te.jsxs)("span",{className:"text-[12px] font-mono text-[#1d9bf0]",children:["#",e]},e))})]})}),(0,Te.jsxs)("div",{className:"px-4 py-3 bg-[#faf9ff] border-t border-[#eeeaf6] flex items-center gap-4 text-[11px] font-mono text-[#4b5563]",children:[(0,Te.jsxs)("span",{children:["Impr ",(0,Te.jsx)("b",{className:"text-[#111827]",children:"42.1k"})]}),(0,Te.jsxs)("span",{children:["Eng ",(0,Te.jsx)("b",{className:"text-[#111827]",children:"3.1%"})]}),(0,Te.jsx)("button",{"data-testid":"preview-x-copy",className:"ml-auto text-[#6d46c6] hover:underline",onClick:()=>fE(n,"X"),children:"Copy"})]})]})}const gE=Kr("building-2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
2],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),vE={recent:[],linkedin:"",companyMetrics:{},buyingSignals:[]};function bE(e){const t=[e.city,e.state,e.country].filter(Boolean).join(", ");return[["Industry",e.industry],["Company size",e.company_size&&"".concat(e.company_size," employees")],["Location",t],["LinkedIn",e.linkedin],["Match confidence",null!=e.pdl_likelihood&&"".concat(e.pdl_likelihood,"/10")],["Skills",e.skills],["Interests",e.interests],["Education",e.education],["Previously at",e.previous_company],["In role since",e.job_start_date],["Work email",e.work_email],["Mobile",e.mobile_phone],["Twitter",e.twitter_url],["GitHub",e.github_url]].filter(e=>qe(e,2)[1]).map(e=>{let t=qe(e,2),n=t[0],r=t[1];return{label:n,value:String(r)}})}function yE(e){var t,n;return e?{status:e.status||"pending",researchHeadline:e.research_headline||"",researchSummary:Array.isArray(e.research_summary)?e.research_summary:[],emailSubject:e.email_subject||"",emailBody:e.email_body||"",linkedinMessage:e.linkedin_message||"",nextAction:{label:(null===(t=e.next_action)||void 0===t?void 0:t.label)||"",cta:(null===(n=e.next_action)||void 0===n?void 0:n.cta)||"Send Email"},generatedAt:e.generated_at||""}:null}function DE(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}function wE(e){if(!e)return{date:"",time:""};const t=new Date(e);if(Number.isNaN(t.getTime()))return{date:e,time:""};return{date:t.toLocaleDateString("en-US",{month:"short",day:"numeric"}),time:t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"})}}function kE(e){var t;const n=yE(e.agent_plan);return{id:e.id,name:e.name||"Unnamed referral",role:e.job_title||"",company:e.company_name||e.receiver_company||"",stage:"new",createdAt:e.created_at||e.referred_date||"",industry:e.industry||"",headcount:e.company_size||"",location:[e.city,e.state,e.country].filter(Boolean).join(", "),pdlLikelihood:null!==(t=e.pdl_likelihood)&&void 0!==t?t:null,receivedAt:e.referred_date||"",referrer:{name:e.referrer_name||"",company:"",relationship:""},enrichment:f(f({},vE),{},{linkedin:e.linkedin||""}),signals:bE(e),agentPlan:n,suggestedActions:n?[{id:"agent-plan",label:n.nextAction.label,cta:n.nextAction.cta}]:[]}}const jE={purple:"bg-[#f5f3ff] text-[#6d46c6] border-[#e2d9f5]",amber:"bg-[#fef9c3] text-[#a16207] border-[#f4e08a]",mint:"bg-[#ecfdf7] text-[#0f9b7c] border-[#c8f0e4]",grey:"bg-[#f5f5f5] text-[#6b7280] border-[#e5e7eb]"};function CE(){var e;const t=Vg(),n=(null===t||void 0===t?void 0:t.workspace)||(null===t||void 0===t?void 0:t.company)||"My Company",r=qe((0,i.useState)(null),2),a=r[0],s=r[1],o=qe((0,i.useState)([]),2),l=o[0],u=o[1],c=qe((0,i.useState)(!0),2),d=c[0],h=c[1],p=qe((0,i.useState)(()=>new Set),2),m=p[0],x=p[1],g=(0,i.useRef)(new Set);(0,i.useEffect)(()=>{ev.get("/warm-leads").then(e=>{let t=e.data;var n;u((t.leads||[]).map(kE)),n=(t.leads||[]).length,localStorage.setItem(Mg,String(n||0))}).catch(()=>u([])).finally(()=>h(!1))},[]);const v=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return x(t=>new Set(t).add(e)),ev.post("/warm-leads/".concat(e,"/agent-run").concat(t?"?force=true":"")).then(t=>{const n=yE(t.data);u(t=>t.map(t=>t.id===e?f(f({},t),{},{agentPlan:n,suggestedActions:[{id:"agent-plan",label:n.nextAction.label,cta:n.nextAction.cta}]}):t))}).catch(e=>{var t,n;Tr.error("Couldn't build an agent plan for this lead",{description:Zg(null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)})}).finally(()=>{x(t=>{const n=new Set(t);return n.delete(e),n})})},b=(e,t)=>u(n=>n.map(n=>n.id===e&&n.agentPlan?f(f({},n),{},{agentPlan:f(f({},n.agentPlan),{},{status:t})}):n)),y=e=>{ev.post("/warm-leads/".concat(e,"/agent-plan/approve")).then(()=>{b(e,"approved"),Tr.success("Outreach approved",{description:"Queued for the growth team to send."})}).catch(e=>{var t,n;return Tr.error("Couldn't approve",{description:Zg(null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)})})},D=e=>{ev.post("/warm-leads/".concat(e,"/agent-plan/skip")).then(()=>{b(e,"skipped"),Tr.message("Skipped")}).catch(e=>{var t,n;return Tr.error("Couldn't skip",{description:Zg(null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)})})},w=l.filter(e=>"converted"!==e.stage),k=l.filter(e=>"converted"===e.stage).length,j=[...w].sort((e,t)=>
2new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),C=j.slice(0,5),E=l.find(e=>e.id===a)||null;(0,i.useEffect)(()=>{C.forEach(e=>{e.agentPlan||m.has(e.id)||g.current.has(e.id)||(g.current.add(e.id),v(e.id))})},[C.map(e=>e.id).join(",")]);const F=w.filter(e=>e.agentPlan),N=F.filter(e=>"approved"===e.agentPlan.status),A=F.filter(e=>"pending"===e.agentPlan.status),S={label:"Warm introductions delivered",value:String(w.length),delta:F.length?"".concat(F.length," researched by the Referral Agent \xb7 ").concat(N.length," approved"):w.length?"Referral Agent is researching your newest leads\u2026":"Waiting on your first referral",trend:"up",attribution:"Every warm intro is a named referral from someone who's tried ".concat(n,", enriched via People Data Labs and pre-researched by the Referral Agent before outreach.")},_=[...A].sort((e,t)=>t.signals.length-e.signals.length)[0]||j[0]||null,B=_?{eyebrow:"Intelligent action",headline:_.agentPlan?"".concat(_.name," is ready for outreach \u2014 ").concat("Send LinkedIn InMail"===_.agentPlan.nextAction.cta?"they're active on LinkedIn":"reach them by email"):"".concat(_.name," just came in from ").concat(_.referrer.name||"a referrer"," \u2014 generate their outreach plan"),reasoning:[{label:"Referred by",value:_.referrer.name||"\u2014"},{label:"Signals found",value:"".concat(_.signals.length," enrichment data points")},_.agentPlan?{label:"Recommended channel",value:_.agentPlan.nextAction.cta}:{label:"Status",value:"Awaiting research"}],outcome:(null===(e=_.agentPlan)||void 0===e?void 0:e.nextAction.label)||"Open the lead to generate a personalized outreach plan with the Referral Agent.",cta:_.agentPlan?"Review this lead":"Generate outreach plan"}:null;return(0,Te.jsxs)("div",{"data-testid":"referral-agent-page",className:"space-y-8",children:[(0,Te.jsx)(YD,{eyebrow:qD.referrals.eyebrow,question:"How many warm introductions did ".concat(n," customers deliver?"),northStar:S,smartAction:B,onAction:()=>_&&s(_.id)}),(0,Te.jsxs)("section",{"data-testid":"warm-leads",className:"space-y-4",children:[(0,Te.jsx)("div",{className:"flex items-baseline justify-between gap-4 flex-wrap",children:(0,Te.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,Te.jsx)("h2",{className:"font-display text-[18px] font-semibold tracking-tight text-[#111827]",children:"Active warm leads"}),(0,Te.jsxs)("span",{className:"text-[12px] text-[#9ca3af]",children:[j.length," \xb7 newest first"]}),k>0&&(0,Te.jsxs)("span",{className:"text-[11px] font-mono text-[#0f9b7c] bg-[#ecfdf7] border border-[#c8f0e4] rounded-full px-2.5 py-0.5",children:[k," converted to customer this month"]})]})}),(0,Te.jsx)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white overflow-hidden",children:(0,Te.jsx)("div",{className:"overflow-x-auto",children:(0,Te.jsxs)("table",{"data-testid":"warm-leads-table",className:"w-full text-[13px]",children:[(0,Te.jsx)("thead",{className:"bg-[#faf9ff] border-b border-[#eeeaf6]",children:(0,Te.jsxs)("tr",{className:"text-left text-[11px] font-mono uppercase tracking-[0.14em] text-[#4b5563]",children:[(0,Te.jsx)("th",{className:"py-3 px-5 min-w-[220px]",children:"Lead"}),(0,Te.jsx)("th",{className:"py-3 px-5 min-w-[280px]",children:"Recent activity"}),(0,Te.jsx)("th",{className:"py-3 px-5 min-w-[260px]",children:"Signals"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Stage"}),(0,Te.jsx)("th",{className:"py-3 px-5 w-[92px]",children:"Referred on"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Referred by"})]})}),(0,Te.jsxs)("tbody",{children:[d&&(0,Te.jsx)("tr",{children:(0,Te.jsx)("td",{colSpan:6,className:"py-8 px-5 text-center text-[12.5px] text-[#9ca3af]",children:"Loading warm leads\u2026"})}),!d&&0===j.length&&(0,Te.jsx)("tr",{"data-testid":"warm-leads-empty",children:(0,Te.jsx)("td",{colSpan:6,className:"py-8 px-5 text-center text-[12.5px] text-[#9ca3af]",children:"No referrals yet \u2014 warm leads will appear here as soon as your customers refer friends."})}),j.map(e=>{var t;return(0,Te.jsxs)("tr",{"data-testid":"warm-lead-".concat(e.id),onClick:()=>s(e.id),className:"border-b border-[#f2eefa] hover:bg-[#faf9ff] cursor-pointer transition-colors",children:[(0,Te.jsx)("td",{className:"py-4 px-5 align-top",children:(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-9 h-9 rounded-full bg-[#f5f3ff] text-[#6d46c6] flex items-center justify-center text-[11px] font-semibold shrink-0",children:e.name.split(" ").map(e=>e[0]).join("")}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("div",{className:"text-[13.5px] font-semibold text-[#111827] leading-tight truncate",children:e.name}),(e.role||e.company)&&(0,Te.jsxs)("div",{className:"text-[11px] uppercase tracking-[0.02em] text-[#6b7280] mt-0.5 truncate",children:[e.role,e.role&&e.company?" at ":"",(0,Te.jsx)("span",{className:"font-semibold text-[#374151]",children:e.company})]})]})]})}),(0,Te.jsx)("td",{className:"py-4 px-5 align-top",children:null!==(t=e.agentPlan)&&void 0!==t&&t.researchHeadline?(0,Te.jsx)("span",{className:"text-[12.5px] text-[#374151] leading-snug block",title:e.agentPlan.researchHeadline,children:e.agentPlan.researchHeadline}):(0,Te.jsx)("span",{className:"text-[11px] text-[#c7c2d6]",children:m.has(e.id)?"Researching\u2026":"Not yet researched"})}),(0,Te.jsx)("td",{className:"py-4 px-5 align-top",children:(0,Te.jsx)(EE,{signals:e.signals,leadId:e.id})}),(0,Te.jsx)("td",{className:"py-4 px-5 align-top",children:(0,Te.jsx)("span",{className:"inline-flex items-center px-2.5 py-1 rounded-full text-[11px] font-medium border whitespace-nowrap ".concat(jE[(HD[e.stage]||HD.new).tone]),children:(HD[e.stage]||HD.new).label})}),(0,Te.jsxs)("td",{className:"py-4 px-5 align-top w-[92px]",children:[(0,Te.jsx)("span",{className:"text-[11px] font-mono text-[#4b5563] leading-snug block whitespace-nowrap",children:wE(e.createdAt).date||"\u2014"}),(0,Te.jsx)("span",{className:"text-[10px] font-mono text-[#9ca3af] leading-snug block whitespace-nowrap",children:wE(e.createdAt).time})]}),(0,Te.jsxs)("td",{className:"py-4 px-5 align-top",children:[(0,Te.jsx)("div",{className:"text-[12.5px] text-[#111827]",children:e.referrer.name}),e.referrer.company&&(0,Te.jsx)("div",{className:"text-[10.5px] font-mono text-[#9ca3af] mt-0.5",children:e.referrer.company})]})]},e.id)})]})]})})})]}),(0,Te.jsxs)("section",{"data-testid":"agentic-approvals",className:"space-y-3",children:[(0,Te.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,Te.jsx)("h2",{className:"font-display text-[18px] font-semibold tracking-tight text-[#111827]",children:"Agentic actions awaiting your approval"}),(0,Te.jsx)("span",{className:"text-[12px] text-[#9ca3af]",children:"Uplaud drafted these \xb7 one-click to run"})]}),(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white divide-y divide-[#f2eefa]",children:[0===C.length&&(0,Te.jsx)("div",{className:"px-5 py-8 text-center text-[12.5px] text-[#9ca3af]",children:"No warm leads yet for the Referral Agent to work on."}),C.map(e=>{var t;const n=m.has(e.id),r=e.suggestedActions[0];if(n||!r&&!e.agentPlan)return(0,Te.jsxs)("div",{"data-testid":"approval-loading-".concat(e.id),className:"flex items-center gap-3 px-5 py-4",children:[(0,Te.jsx)(qc,{className:"w-3.5 h-3.5 text-[#6d46c6] animate-spin shrink-0"}),(0,Te.jsxs)("div",{className:"text-[12.5px] text-[#9ca3af]",children:["Researching ",e.name,e.company?" at ".concat(e.company):""," and drafting outreach\u2026"]})]},e.id);if(!r)return null;const a=(null===(t=e.agentPlan)||void 0===t?void 0:t.status)||"pending";return(0,Te.jsxs)("div",{"data-testid":"approval-".concat(e.id),onClick:()=>s(e.id),className:"grid grid-cols-12 items-center gap-4 px-5 py-4 cursor-pointer hover:bg-[#faf9ff] transition-colors",children:[(0,Te.jsxs)("div",{className:"col-span-4 flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-full bg-[#f5f3ff] text-[#6d46c6] flex items-center justify-center text-[11px] font-semibold shrink-0",children:e.name.split(" ").map(e=>e[0]).join("")}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("div",{className:"text-[13px] font-semibold text-[#111827] leading-tight truncate",children:e.name}),(0,Te.jsxs)("div",{className:"text-[10.5px] text-[#6b7280] truncate",children:[e.role,e.role&&e.company?" at ":"",(0,Te.jsx)("span",{className:"font-semibold text-[#374151]",children:e.company})]})]})]}),(0,Te.jsxs)("div",{className:"col-span-6 text-[12.5px] text-[#111827] leading-snug",children:[r.label,(0,Te.jsx)("span",{className:"ml-2 inline-flex items-center px-1.5 py-0.5 rounded-full text-[9.5px] font-mono uppercase tracking-wide bg-[#f5f3ff] text-[#6d46c6]",children:r.cta})]}),(0,Te.jsxs)("div",{className:"col-span-2 flex items-center justify-end gap-2",children:["pending"===a&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("button",{"data-testid":"approval-skip-".concat(e.id),onClick:t=>{t.stopPropagation(),D(e.id)},className:"text-[11.5px] text-[#9ca3af] hover:text-[#4b5563] px-2 py-1",children:"Skip"}),(0,Te.jsxs)("button",{"data-testid":"approval-approve-".concat(e.id),onClick:t=>{t.stopPropagation(),y(e.id)},className:"btn-primary h-9 !py-0 !px-3 !text-[12px]",children:["Approve",(0,Te.jsx)(Qr,{className:"w-3.5 h-3.5",strokeWidth:1.75})]})]}),"approved"===a&&(0,Te.jsxs)("span",{"data-testid":"approval-status-".concat(e.id),className:"inline-flex items-center gap-1 text-[11.5px] font-medium text-[#0f9b7c]",children:[(0,Te.jsx)(Uc,{className:"w-3.5 h-3.5",strokeWidth:1.75}),"Approved"]}
2),"skipped"===a&&(0,Te.jsx)("span",{"data-testid":"approval-status-".concat(e.id),className:"text-[11.5px] text-[#9ca3af]",children:"Skipped"})]})]},"".concat(e.id,"-").concat(r.id))})]})]}),E&&(0,Te.jsx)(FE,{lead:E,onClose:()=>s(null),onGenerate:v,onApprove:y,onSkip:D,busy:m.has(E.id)})]})}function EE(e){let t=e.signals,n=e.leadId;const r=qe((0,i.useState)(!1),2),a=r[0],s=r[1];if(!t||0===t.length)return(0,Te.jsx)("span",{className:"text-[11px] text-[#c7c2d6]",children:"\u2014"});const o=Ue(t),l=o[0],u=Le(o).slice(1);return(0,Te.jsxs)("div",{"data-testid":"signals-cell-".concat(n),onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsxs)("span",{className:"text-[11.5px] text-[#4b5563] truncate max-w-[280px]",title:"".concat(l.label,": ").concat(l.value),children:[(0,Te.jsxs)("span",{className:"text-[#9ca3af]",children:[l.label,":"]})," ",l.value]}),u.length>0&&(0,Te.jsxs)("button",{"data-testid":"signals-toggle-".concat(n),onClick:()=>s(e=>!e),className:"inline-flex items-center gap-0.5 text-[10.5px] font-mono text-[#6d46c6] hover:text-[#4c2f96] shrink-0",children:[a?"show less":"+".concat(u.length," more"),(0,Te.jsx)(Du,{className:"w-3 h-3 transition-transform ".concat(a?"rotate-180":""),strokeWidth:2})]})]}),a&&(0,Te.jsx)("div",{"data-testid":"signals-expanded-".concat(n),className:"mt-2 space-y-1 max-w-[320px] bg-[#faf9ff] border border-[#eeeaf6] rounded-lg p-2.5",children:u.map((e,t)=>(0,Te.jsxs)("div",{className:"flex gap-1.5 text-[11px] leading-snug",children:[(0,Te.jsxs)("span",{className:"text-[#9ca3af] shrink-0",children:[e.label,":"]}),(0,Te.jsx)("span",{className:"text-[#111827] truncate",children:e.value})]},t))})]})}function FE(e){var t,n,r;let a=e.lead,s=e.onClose,i=e.onGenerate,o=e.onApprove,l=e.onSkip,u=e.busy;const c=HD[a.stage]||HD.new,d=(e,t)=>{var n;null===(n=navigator.clipboard)||void 0===n||n.writeText(e),Tr.success("".concat(t," copied"))};return(0,Te.jsxs)("div",{"data-testid":"warm-lead-drawer",className:"fixed inset-0 z-50 flex justify-end",children:[(0,Te.jsx)("div",{className:"absolute inset-0 bg-[#111827]/40 backdrop-blur-sm",onClick:s}),(0,Te.jsxs)("aside",{className:"relative w-full max-w-[560px] h-full bg-white shadow-2xl overflow-y-auto",children:[(0,Te.jsxs)("div",{className:"sticky top-0 bg-white border-b border-[#eeeaf6] px-6 h-14 flex items-center justify-between z-10",children:[(0,Te.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:["Warm lead \xb7 ",a.id]}),(0,Te.jsx)("button",{"data-testid":"warm-lead-drawer-close",onClick:s,className:"w-9 h-9 rounded-full border border-[#eeeaf6] hover:border-[#d9d1ee] flex items-center justify-center",children:(0,Te.jsx)(Yr,{className:"w-4 h-4 text-[#4b5563]",strokeWidth:1.75})})]}),(0,Te.jsxs)("div",{className:"p-6 space-y-6",children:[(0,Te.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Te.jsx)("div",{className:"w-14 h-14 rounded-full bg-[#f5f3ff] text-[#6d46c6] flex items-center justify-center text-[16px] font-semibold shrink-0",children:a.name.split(" ").map(e=>e[0]).join("")}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"font-display text-[19px] font-semibold text-[#111827]",children:a.name}),(0,Te.jsxs)("div",{className:"text-[13px] text-[#4b5563]",children:[a.role,a.role&&a.company?" at ":"",(0,Te.jsx)("span",{className:"font-semibold text-[#374151]",children:a.company}),!a.role&&!a.company&&"No enrichment yet"]}),(0,Te.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[(0,Te.jsx)("span",{className:"px-2.5 py-1 rounded-full text-[11px] font-medium border ".concat(jE[c.tone]),children:c.label}),a.enrichment.linkedin&&(0,Te.jsxs)("a",{href:"https://".concat(a.enrichment.linkedin),target:"_blank",rel:"noreferrer",className:"text-[11px] font-mono text-[#0a66c2] flex items-center gap-1 hover:underline",children:[(0,Te.jsx)(Vv,{className:"w-3 h-3",strokeWidth:2}),"LinkedIn"]}),null!=a.pdlLikelihood&&(0,Te.jsxs)("span",{className:"text-[10.5px] font-mono text-[#9ca3af]",children:["Match confidence ",a.pdlLikelihood,"/10"]})]})]})]}),(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-[#faf9ff] p-4",children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.14em] text-[#9ca3af]",children:"Attributed to"}),(0,Te.jsxs)("div",{className:"mt-2 grid grid-cols-2 gap-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono text-[#9ca3af]",children:"Referrer"}),(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827] mt-0.5",children:a.referrer.name}),(0,Te.jsx)("div",{className:"text-[11px] text-[#4b5563]",children:a.referrer.company}),(0,Te.jsx)("div",{className:"text-[10.5px] font-mono text-[#9ca3af] mt-1",children:a.referrer.relationship})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono text-[#9ca3af]",children:"Referred on"}),(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827] mt-0.5",children:DE(a.createdAt)||"\u2014"})]})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Te.jsx)(la,{className:"w-4 h-4 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[13px] font-display font-semibold text-[#111827]",children:"Lead enrichment"}),(0,Te.jsx)("span",{className:"ml-auto text-[10.5px] font-mono text-[#9ca3af]",children:"LinkedIn \xb7 Crunchbase \xb7 Clearbit"})]}),(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)(NE,{icon:gE,label:"Company",children:[(0,Te.jsx)("div",{className:"text-[12.5px] text-[#111827]",children:[a.industry,a.headcount&&"".concat(a.headcount," employees")].filter(
2Boolean).join(" \xb7 ")||"\u2014"}),(a.location||a.enrichment.companyMetrics.arr)&&(0,Te.jsx)("div",{className:"text-[11px] text-[#4b5563] mt-0.5",children:[a.location,a.enrichment.companyMetrics.arr,a.enrichment.companyMetrics.growth].filter(Boolean).join(" \xb7 ")})]}),(null===(t=a.enrichment.buyingSignals)||void 0===t?void 0:t.length)>0&&(0,Te.jsx)(NE,{icon:TD,label:"Buying signals",accent:!0,children:(0,Te.jsx)("ul",{className:"space-y-1",children:a.enrichment.buyingSignals.map((e,t)=>(0,Te.jsxs)("li",{className:"text-[12px] text-[#0f9b7c] font-medium leading-relaxed",children:["\xb7 ",e]},t))})}),(()=>{const e=new Set(["Industry","Company size","Location","Match confidence","LinkedIn"]),t=(a.signals||[]).filter(t=>!e.has(t.label));return 0===t.length?null:(0,Te.jsx)(NE,{icon:la,label:"Additional PDL signals","data-testid":"drawer-pdl-signals-".concat(a.id),children:(0,Te.jsx)("div",{className:"space-y-1.5",children:t.map((e,t)=>(0,Te.jsxs)("div",{className:"flex gap-1.5 text-[12px] leading-relaxed",children:[(0,Te.jsxs)("span",{className:"text-[#9ca3af] shrink-0",children:[e.label,":"]}),(0,Te.jsx)("span",{className:"text-[#111827] break-all",children:e.value})]},t))})})})()]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Te.jsx)(la,{className:"w-3.5 h-3.5 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.14em] text-[#9ca3af]",children:"Referral Agent"})]}),(0,Te.jsx)("div",{className:"text-[15px] font-display font-semibold text-[#111827] leading-snug mb-3",children:(null===(n=a.agentPlan)||void 0===n?void 0:n.researchHeadline)||"What does the web know about ".concat(a.name.split(" ")[0],"?")}),!a.agentPlan&&(0,Te.jsx)("button",{"data-testid":"generate-agent-plan-".concat(a.id),onClick:()=>i(a.id),disabled:u,className:"w-full flex items-center justify-center gap-2 rounded-xl border border-dashed border-[#d9d1ee] bg-[#faf9ff] hover:bg-[#f5f3ff] text-[12.5px] font-medium text-[#6d46c6] py-3 transition-colors disabled:opacity-60",children:u?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(qc,{className:"w-3.5 h-3.5 animate-spin",strokeWidth:2}),"Researching & drafting outreach\u2026"]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Ba,{className:"w-3.5 h-3.5",strokeWidth:2}),"Generate agent plan"]})}),a.agentPlan&&(0,Te.jsxs)("div",{className:"space-y-3","data-testid":"agent-plan-".concat(a.id),children:[(null===(r=a.agentPlan.researchSummary)||void 0===r?void 0:r.length)>0&&(0,Te.jsx)(NE,{icon:Ba,label:"Web research",children:(0,Te.jsx)("ul",{className:"space-y-1.5",children:a.agentPlan.researchSummary.map((e,t)=>(0,Te.jsxs)("li",{className:"flex gap-2 text-[12px] text-[#111827] leading-relaxed",children:[(0,Te.jsx)("span",{className:"text-[#6d46c6] mt-0.5 shrink-0",children:"\u2022"}),(0,Te.jsx)("span",{children:e})]},t))})}),(0,Te.jsxs)("div",{className:"rounded-xl border border-[#eeeaf6] bg-white p-3",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3 mb-1",children:[(0,Te.jsx)("div",{className:"text-[12.5px] font-medium text-[#111827] leading-snug",children:a.agentPlan.nextAction.label}),(0,Te.jsx)("span",{className:"shrink-0 inline-flex items-center px-1.5 py-0.5 rounded-full text-[9.5px] font-mono uppercase tracking-wide bg-[#f5f3ff] text-[#6d46c6]",children:a.agentPlan.nextAction.cta})]}),"pending"===a.agentPlan.status&&(0,Te.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,Te.jsx)("button",{"data-testid":"drawer-agent-skip-".concat(a.id),onClick:()=>l(a.id),className:"text-[11.5px] text-[#9ca3af] hover:text-[#4b5563] px-2 py-1",children:"Skip"}),(0,Te.jsxs)("button",{"data-testid":"drawer-agent-approve-".concat(a.id),onClick:()=>o(a.id),className:"btn-primary h-9 !py-0 !px-3 !text-[12px]",children:["Approve",(0,Te.jsx)(Qr,{className:"w-3.5 h-3.5",strokeWidth:1.75})]})]}),"approved"===a.agentPlan.status&&(0,Te.jsxs)("div",{className:"flex items-center gap-1 text-[11.5px] font-medium text-[#0f9b7c] mt-1",children:[(0,Te.jsx)(Uc,{className:"w-3.5 h-3.5",strokeWidth:1.75}),"Approved \u2014 queued to send"]}
2),"skipped"===a.agentPlan.status&&(0,Te.jsx)("div",{className:"text-[11.5px] text-[#9ca3af] mt-1",children:"Skipped"})]}),a.agentPlan.emailBody&&(0,Te.jsxs)("div",{className:"rounded-xl border border-[#eeeaf6] bg-white p-3",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,Te.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-wide text-[#9ca3af]",children:"Email draft"}),(0,Te.jsx)("button",{"data-testid":"copy-email-".concat(a.id),onClick:()=>d("Subject: ".concat(a.agentPlan.emailSubject,"\n\n").concat(a.agentPlan.emailBody),"Email"),className:"text-[#6d46c6] hover:text-[#4c2f96]",children:(0,Te.jsx)(Xj,{className:"w-3.5 h-3.5",strokeWidth:1.75})})]}),(0,Te.jsx)("div",{className:"text-[12px] font-medium text-[#111827] mb-1",children:a.agentPlan.emailSubject}),(0,Te.jsx)("div",{className:"text-[12px] text-[#4b5563] leading-relaxed whitespace-pre-line",children:a.agentPlan.emailBody})]}),a.agentPlan.linkedinMessage&&(0,Te.jsxs)("div",{className:"rounded-xl border border-[#eeeaf6] bg-white p-3",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,Te.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-wide text-[#9ca3af] flex items-center gap-1",children:[(0,Te.jsx)(Vv,{className:"w-3 h-3",strokeWidth:1.75})," LinkedIn InMail draft"]}),(0,Te.jsx)("button",{"data-testid":"copy-linkedin-".concat(a.id),onClick:()=>d(a.agentPlan.linkedinMessage,"LinkedIn message"),className:"text-[#6d46c6] hover:text-[#4c2f96]",children:(0,Te.jsx)(Xj,{className:"w-3.5 h-3.5",strokeWidth:1.75})})]}),(0,Te.jsx)("div",{className:"text-[12px] text-[#4b5563] leading-relaxed whitespace-pre-line",children:a.agentPlan.linkedinMessage})]})]})]}),a.agentPlan?(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsxs)("button",{"data-testid":"drawer-copy-plan-".concat(a.id),onClick:()=>d(["Subject: ".concat(a.agentPlan.emailSubject),"",a.agentPlan.emailBody,"","---","LinkedIn InMail:",a.agentPlan.linkedinMessage].filter(Boolean).join("\n"),"Outreach plan"),className:"btn-secondary flex-1 justify-center h-11",children:[(0,Te.jsx)(Xj,{className:"w-4 h-4",strokeWidth:1.75}),"Copy to clipboard"]}),(0,Te.jsxs)("button",{"data-testid":"regenerate-agent-plan-".concat(a.id),onClick:()=>i(a.id,!0),disabled:u,className:"btn-secondary flex-1 justify-center h-11 disabled:opacity-60",children:[u?(0,Te.jsx)(qc,{className:"w-4 h-4 animate-spin",strokeWidth:1.75}):(0,Te.jsx)(Ba,{className:"w-4 h-4",strokeWidth:1.75}),u?"Regenerating\u2026":"Regenerate"]})]}):null]})]})]})}function NE(e){let t=e.icon,n=e.label,r=e.children,a=e.accent;return(0,Te.jsxs)("div",{className:"rounded-xl border p-3 ".concat(a?"border-[#c8f0e4] bg-[#ecfdf7]":"border-[#eeeaf6] bg-white"),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,Te.jsx)(t,{className:"w-3.5 h-3.5 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.14em] text-[#9ca3af]",children:n})]}),r]})}const AE=Kr("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),SE=Kr("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),_E=Kr("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),BE=Kr("arrow-up-from-line",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]),TE=["fee-only advisor","retirement planning","QSBS + Roth","US-UK cross border","post-divorce finances"];function RE(){const e=qe((0,i.useState)("fee-only advisor"),2),t=e[0],n=e[1],r=qe((0,i.useState)(UD[0].id),2),a=r[0],s=r[1],o=qe((0,i.useState)(!1),2),l=o[0],u=o[1],c=UD.find(e=>e.id===a),d=MD.find(e=>e.id===c.suggestedReply.reviewId);return(0,Te.jsxs)("div",{"data-testid":"reddit-agent-page",className:"space-y-10",children:[(0,Te.jsx)(YD,{eyebrow:qD.reddit.eyebrow,question:qD.reddit.question,northStar:qD.reddit.northStar,smartAction:WD.reddit}),(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-6",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-display text-[20px] font-semibold tracking-tight text-[#111827]",children:"High-intent threads worth answering"}),(0,Te.jsx)("p",{className:"text-[12.5px] text-[#9ca3af] mt-1",children:"Every reply anchors to a real customer review."})]}),(0,Te.jsxs)("button",{"data-testid":"reddit-refresh-btn",onClick:()=>{u(!0),setTimeout(()=>{u(!1),Tr.success("Reddit index refreshed",{description:"4 new opportunity threads found."})},900)},className:"btn-secondary h-10 !py-0",children:[(0,Te.jsx)(Jj,{className:"w-4 h-4 ".concat(l?"animate-spin":""),strokeWidth:1.75}),"Refresh index"]})]}),(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white p-5",children:[(0,Te.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center gap-3",children:[(0,Te.jsxs)("div",{className:"relative flex-1",children:[(0,Te.jsx)(Ba,{className:"w-4 h-4 text-[#9ca3af] absolute left-4 top-1/2 -translate-y-1/2"}),(0,Te.jsx)("input",{"data-testid":"reddit-query-input",value:t,onChange:e=>n(e.target.value),placeholder:'Try "wealth manager for tech employees"...',className:"w-full h-11 pl-10 pr-4 rounded-full border border-[#eeeaf6] bg-white text-[13px] focus:outline-none focus:border-[#d9d1ee] transition-all"})]}),(0,Te.jsxs)("button",{"data-testid":"reddit-search-btn",className:"btn-primary h-11 !py-0 justify-center",children:[(0,Te.jsx)(la,{className:"w-4 h-4",strokeWidth:2}),"Find opportunities"]})]}),(0,Te.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[(0,Te.jsx)("span",{className:"text-[11px] font-mono text-[#9ca3af] mr-1",children:"Presets:"}),TE.map(e=>(0,Te.jsx)("button",{"data-testid":"preset-".concat(e.replace(/\s+/g,"-")),onClick:()=>n(e),className:"px-3 py-1 rounded-full text-[11.5px] font-medium border transition-all ".concat(t===e?"bg-[#111827] text-white border-[#111827]":"bg-white text-[#4b5563] border-[#eeeaf6] hover:border-[#d9d1ee]"),children:e},e))]})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[(0,Te.jsxs)("div",{className:"lg:col-span-5 space-y-3",children:[(0,Te.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#4b5563]",children:[UD.length," opportunity threads"]}),UD.map(e=>(0,Te.jsxs)("button",{"data-testid":"thread-card-".concat(e.id),onClick:()=>s(e.id),className:"w-full text-left rounded-2xl border p-4 transition-all ".concat(a===e.id?"border-[#6d46c6] bg-[#f5f3ff]":"border-[#eeeaf6] bg-white hover:border-[#d9d1ee]"),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#ff4500] text-white text-[10px] font-bold flex items-center justify-center shrink-0",children:"r/"}),(0,Te.jsx)("div",{className:"text-[11.5px] font-mono text-[#4b5563] truncate",children:e.subreddit}),(0,Te.jsxs)("span",{className:"ml-auto text-[10px] font-mono text-[#0f9b7c] bg-[#ecfdf7] border border-[#c8f0e4] rounded-full px-2 py-0.5",children:[Math.round(100*e.matchScore),"% match"]})]}),(0,Te.jsx)("div",{className:"mt-2 text-[13px] font-medium text-[#111827] leading-tight line-clamp-2",children:e.title}),(0,Te.jsx)("p",{className:"mt-1.5 text-[12px] text-[#4b5563] line-clamp-2 leading-relaxed",children:e.excerpt}),(0,Te.jsxs)("div",{className:"mt-3 flex items-center gap-3 text-[11px] font-mono text-[#9ca3af]",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Te.jsx)(AE,{className:"w-3 h-3",strokeWidth:2}),e.upvotes]}),(0,Te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Te.jsx)(SE,{className:"w-3 h-3",strokeWidth:1.75}),e.comments]}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{children:e.author}),(0,Te.jsx)("span",{className:"ml-auto text-[#4b5563]",children:e.posted})]})]},e.id))]}),(0,Te.jsxs)("div",{className:"lg:col-span-7 space-y-4",children:[(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white p-6",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,Te.jsx)(Mj,{className:"w-4 h-4 text-[#ff4500]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[13px] font-display font-semibold text-[#111827]",children:"Suggested reply \xb7 drafted by Uplaud"})]}),(0,Te.jsxs)("div",{className:"rounded-xl bg-[#faf9ff] border border-[#eeeaf6] p-4",children:[(0,Te.jsxs)("div",{className:"text-[11.5px] font-mono text-[#4b5563]",children:[c.subreddit," \xb7 ",c.author]}),(0,Te.jsx)("div",{className:"mt-1 text-[13.5px] font-medium text-[#111827] leading-snug",children:c.title}),(0,Te.jsx)("p",{className:"mt-2 text-[12.5px] text-[#4b5563] leading-relaxed",children:c.excerpt})]}),d&&(0,Te.jsxs)("div",{className:"mt-4 rounded-xl border border-[#c8f0e4] bg-[#ecfdf7] p-4",children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.14em] text-[#0f9b7c]",children:"Reply anchored to real review"}),(0,Te.jsxs)("div",{className:"mt-1 text-[12.5px] font-medium text-[#111827]",children:[d.customer," \xb7 ",d.rating,"\u2605"]}),(0,Te.jsxs)("p",{className:"mt-1 text-[12.5px] text-[#4b5563] leading-relaxed line-clamp-2",children:["\u201c",d.body,"\u201d"]})]}),(0,Te.jsxs)("div",{className:"mt-4",children:[(0,Te.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-[0.14em] text-[#4b5563]",children:["Reply draft \xb7 tone: ",c.suggestedReply.tone]}),(0,Te.jsx)("textarea",{"data-testid":"reddit-reply-textarea",defaultValue:c.suggestedReply.body,rows:5,className:"mt-2 w-full p-4 rounded-xl border border-[#eeeaf6] bg-white text-[13.5px] leading-relaxed focus:outline-none focus:border-[#d9d1ee] resize-none"}),(0,Te.jsxs)("div",{className:"mt-2 flex items-center gap-3 text-[11px] font-mono text-[#9ca3af]",children:[(0,Te.jsx)(av,{className:"w-3.5 h-3.5 text-[#0f9b7c]",strokeWidth:1.75}),(0,Te.jsxs)("span",{children:["Policy check passed \xb7 ",(0,Te.jsx)("b",{className:"text-[#111827]",children:"no promo language"})," \xb7 ",(0,Te.jsx)("b",{className:"text-[#111827]",children:"disclose
2s source"})]})]})]}),(0,Te.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-2",children:[(0,Te.jsxs)("button",{"data-testid":"reddit-regenerate-btn",onClick:()=>Tr.success("Draft regenerated"),className:"btn-secondary h-10 !py-0",children:[(0,Te.jsx)(Jj,{className:"w-4 h-4",strokeWidth:1.75}),"Regenerate"]}),(0,Te.jsxs)("button",{"data-testid":"reddit-copy-btn",onClick:()=>Tr.success("Copied to clipboard"),className:"btn-secondary h-10 !py-0",children:[(0,Te.jsx)(Xj,{className:"w-4 h-4",strokeWidth:1.75}),"Copy"]}),(0,Te.jsxs)("button",{"data-testid":"reddit-open-thread-btn",onClick:()=>Tr.info("Would open the Reddit thread in a new tab"),className:"btn-secondary h-10 !py-0",children:["Open thread",(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75})]}),(0,Te.jsx)("button",{"data-testid":"reddit-schedule-btn",onClick:()=>Tr.success("Queued for tomorrow 10:00 AM ET",{description:"Cadence-safe: 1 reply per 24h in this sub."}),className:"ml-auto btn-secondary h-10 !py-0",children:"Schedule"}),(0,Te.jsxs)("button",{"data-testid":"reddit-post-btn",onClick:()=>Tr.success("Reply posted to ".concat(c.subreddit),{description:"Tracked in Attribution \u2192 Reddit channel."}),className:"btn-primary h-10 !py-0",children:[(0,Te.jsx)(_E,{className:"w-4 h-4",strokeWidth:1.75}),"Post reply"]})]})]}),(0,Te.jsxs)("div",{className:"rounded-2xl bg-[#261c4d] text-white p-5 relative overflow-hidden noise",children:[(0,Te.jsx)("div",{"aria-hidden":!0,className:"absolute -top-16 -right-8 w-[280px] h-[280px] rounded-full",style:{background:"radial-gradient(circle, rgba(94,234,212,0.22), transparent 60%)"}}),(0,Te.jsxs)("div",{className:"relative flex items-center gap-3",children:[(0,Te.jsx)(av,{className:"w-5 h-5 text-[#5eead4]",strokeWidth:1.75}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[13px] font-display font-semibold",children:"Reddit guardrails are on"}),(0,Te.jsx)("p",{className:"text-[12px] text-white/60 mt-0.5",children:"Rate-limited per subreddit \xb7 sourced-only claims \xb7 always discloses affiliation when relevant."})]}),(0,Te.jsx)(BE,{className:"ml-auto w-4 h-4 text-white/60",strokeWidth:1.75})]})]})]})]})]})}const PE=Kr("trending-down",[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]]),OE=Kr("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),LE=e=>Math.round(e).toLocaleString("en-US",{maximumFractionDigits:0}),IE=e=>"$".concat(LE(e)),ME=e=>{const t=Math.abs(e);return t>=1e6?"$".concat((e/1e6).toFixed(2),"M"):t>=1e3?"$".concat((e/1e3).toFixed(0),"k"):"$".concat(Math.round(e))},zE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"".concat(e.toFixed(t),"%")};function UE(){const e=Vg(),t=(null===e||void 0===e?void 0:e.workspace)||(null===e||void 0===e?void 0:e.company)||"My Company",n=qe((0,i.useState)(VD),2),r=n[0],a=n[1],s=qe((0,i.useState)(GD),2),o=s[0],l=s[1],u=(0,i.useMemo)(()=>function(e,t){const n=e.demosAttendedMo*(e.demoToCustomer/100),r=12*n,a=e.paidCac,s=e.demosAttendedMo*(t.extractionRate/100)*(t.approvalRate/100),i=s*t.introsPerTestimonial,o=i*(t.warmToCustomer/100),l=n+o,u=12*l,c=0===l?a:(n*e.paidCac+o*t.uplaudCac)/l,d=o*Math.max(0,e.paidCac-t.uplaudCac);return{sq:{customersMo:n,customersYr:r,blendedCac:a},up:{customersMo:l,uplaudCustomersMo:o,warmIntros:i,testimonials:s,customersYr:u,blendedCac:c,cacSavingsMo:d,cacSavingsYr:12*d}}}(r,o),[r,o]),c=u.up.customersYr-u.sq.customersYr,d=(u.sq.blendedCac-u.up.blendedCac)/Math.max(1,u.sq.blendedCac)*100,h=()=>{const e=["".concat(t," \xd7 Uplaud \u2014 12-month CAC projection"),"","\u2022 Blended CAC drops ".concat(zE(d,1)," \u2014 ").concat(IE(u.sq.blendedCac)," \u2192 ").concat(IE(u.up.blendedCac)),"\u2022 +".concat(LE(c)," net-new customers / year (").concat(LE(12*u.up.uplaudCustomersMo)," sourced by Uplaud referral loop, at $").concat(LE(o.uplaudCac)," CAC vs $").concat(LE(r.paidCac)," paid)"),"\u2022 ".concat(ME(u.up.cacSavingsYr)," in CAC savings / year from routing volume through the referral loop instead of paid demos")].join("\n");navigator.clipboard.writeText(e),Tr.success("Boardroom summary copied to clipboard")};return(0,Te.jsxs)("div",{"data-testid":"roi-simulator-page",className:"space-y-14",children:[(0,Te.jsx)(YD,{eyebrow:"Business Impact \xb7 12-month projection",question:"How much does Uplaud cut ".concat(t,"'s blended CAC?"),subhead:"Plug in your real Meta / Google numbers on the left. Every metric below recomputes live \u2014 ready for the board deck.",northStar:{label:"Blended CAC improvement \xb7 with Uplaud",value:"".concat(zE(d,1)," lower"),delta:"".concat(IE(u.sq.blendedCac)," \u2192 ").concat(IE(u.up.blendedCac)),attribution:"Uplaud sourced customers cost a fraction of paid CAC, pulling the blended number down without adding ad spend.",stats:[{label:"Blended CAC now",value:IE(u.up.blendedCac)},{label:"Uplaud-sourced / mo",value:LE(u.up.uplaudCustomersMo)},{label:"CAC savings / yr",value:ME(u.up.cacSavingsYr)}]},smartAction:{eyebrow:"How to read this",headline:"Status Quo assumes paid-only. With Uplaud layers the referral engine on top of the same demo volume.",reasoning:[{label:"Assumption",value:"No new ad spend added \u2014 Uplaud sits on your existing pipeline"},{label:"Attribution",value:"Uplaud customers = demos \xd7 capture% \xd7 approval% \xd7 intros/testimonial \xd7 warm\u2192customer%"},{label:"Downside protection",value:"Every input is editable so you can stress-test conservative cases"}],outcome:"Snapshot the numbers below, hit Copy summary, and paste straight into slide 3 of the growth-review deck.",cta:"Copy summary for board deck"},onAction:h}),(0,Te.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3 -mt-6",children:[(0,Te.jsx)("div",{className:"text-[12px] font-mono text-[#9ca3af]",children:"All numbers live-recalculate as you edit. Assumptions traceable per row."}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsxs)("button",{"data-testid":"roi-reset-btn",onClick:()=>{a(VD),l(GD),Tr.success("Reset to ".concat(t," defaults"))},className:"text-[12px] text-[#4b5563] hover:text-[#111827] flex items-center gap-1.5 px-3 py-1.5 rounded-full border border-[#eeeaf6] hover:border-[#d9d1ee] transition-colors bg-white",children:[(0,Te.jsx)(Jj,{className:"w-3.5 h-3.5",strokeWidth:1.75}),"Reset to ",t," defaults"]}),(0,Te.jsxs)("button",{"data-testid":"roi-copy-btn",onClick:h,className:"text-[12px] font-medium text-white bg-[#261c4d] hover:bg-[#3a2a6b] flex items-center gap-1.5 px-3 py-1.5 rounded-full transition-colors",children:[(0,Te.jsx)(Xj,{className:"w-3.5 h-3.5",strokeWidth:1.75}),"Copy board summary"]})]})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8",children:[(0,Te.jsxs)("div",{className:"lg:col-span-5 space-y-6",children:[(0,Te.jsx)(qE,{testId:"roi-inputs-paid",eyebrow:"1 \u2014 Your paid engine today",title:"Status quo inputs",hint:"Traceable to your Meta / Google performance + HubSpot 
2CAC report.",fields:$D.paid,values:r,onChange:(e,t)=>a(n=>f(f({},n),{},{[e]:t}))}),(0,Te.jsx)(qE,{testId:"roi-inputs-uplaud",eyebrow:"2 \u2014 Uplaud lift assumptions",title:"What Uplaud adds on top",hint:"Defaults reflect PayRewards' current 30-day performance in the Growth Overview.",fields:$D.uplaud,values:o,onChange:(e,t)=>l(n=>f(f({},n),{},{[e]:t}))})]}),(0,Te.jsxs)("div",{className:"lg:col-span-7 space-y-6",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Te.jsx)(HE,{testId:"scenario-status-quo",variant:"sq",eyebrow:"Scenario A",title:"Status Quo",subtitle:"Paid demos only. No referral loop.",scenario:u.sq}),(0,Te.jsx)(HE,{testId:"scenario-with-uplaud",variant:"up",eyebrow:"Scenario B",title:"With Uplaud",subtitle:"Same demos + testimonial \u2192 referral loop.",scenario:u.up,extra:(0,Te.jsxs)("div",{className:"mt-4 pt-4 border-t border-[#265447]/25 text-[11.5px] font-mono text-[#0a3d31] space-y-1",children:[(0,Te.jsxs)("div",{className:"flex justify-between",children:[(0,Te.jsx)("span",{children:"Testimonials / mo"}),(0,Te.jsx)("span",{className:"font-semibold",children:LE(u.up.testimonials)})]}),(0,Te.jsxs)("div",{className:"flex justify-between",children:[(0,Te.jsx)("span",{children:"Warm intros / mo"}),(0,Te.jsx)("span",{className:"font-semibold",children:LE(u.up.warmIntros)})]}),(0,Te.jsxs)("div",{className:"flex justify-between",children:[(0,Te.jsx)("span",{children:"Uplaud-sourced customers / mo"}),(0,Te.jsx)("span",{className:"font-semibold",children:LE(u.up.uplaudCustomersMo)})]})]})})]}),(0,Te.jsx)(GE,{deltas:[{id:"cac",label:"Blended CAC",sq:IE(u.sq.blendedCac),up:IE(u.up.blendedCac),delta:"-".concat(zE(d,1)),positive:!0,inverse:!0},{id:"customers",label:"Net-new customers / year",sq:"".concat(LE(u.sq.customersYr)),up:"".concat(LE(u.up.customersYr)),delta:"+".concat(LE(c)),positive:!0},{id:"savings",label:"CAC savings / year",sq:IE(0),up:ME(u.up.cacSavingsYr),delta:"+".concat(ME(u.up.cacSavingsYr)),positive:!0}]}),(0,Te.jsx)($E,{businessName:t,custDelta:c,cacDeltaPct:d,sq:u.sq,up:u.up,onCopy:h})]})]})]})}function qE(e){let t=e.testId,n=e.eyebrow,r=e.title,a=e.hint,s=e.fields,i=e.values,o=e.onChange;return(0,Te.jsxs)("section",{"data-testid":t,className:"rounded-2xl border border-[#eeeaf6] bg-white p-6",children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:n}),(0,Te.jsx)("h3",{className:"mt-1.5 font-display text-[17px] font-semibold text-[#111827]",children:r}),(0,Te.jsx)("p",{className:"mt-1 text-[12px] text-[#4b5563]",children:a}),(0,Te.jsx)("div",{className:"mt-5 divide-y divide-[#f2eefa]",children:s.map(e=>(0,Te.jsx)(WE,{field:e,value:i[e.key],onChange:t=>o(e.key,t)},e.key))})]})}function WE(e){let t=e.field,n=e.value,r=e.onChange;return(0,Te.jsxs)("div",{"data-testid":"roi-row-".concat(t.key),className:"grid grid-cols-[1fr_140px] items-center gap-4 py-3",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827] leading-tight",children:t.label}),(0,Te.jsx)("div",{className:"text-[11px] text-[#9ca3af] mt-0.5 leading-tight",children:t.hint})]}),(0,Te.jsxs)("div",{className:"relative",children:[t.prefix&&(0,Te.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-[13px] font-mono text-[#9ca3af] pointer-events-none",children:t.prefix}),(0,Te.jsx)("input",{"data-testid":"roi-input-".concat(t.key),type:"number",step:t.step,value:n,onChange:e=>{const t=""===e.target.value?0:Number(e.target.value);r(Number.isFinite(t)?t:0)},className:"w-full h-10 rounded-lg border border-[#e2d9f5] bg-white text-[13.5px] font-mono font-semibold text-[#111827] focus:outline-none focus:border-[#6d46c6] focus:ring-2 focus:ring-[#6d46c6]/15 transition-colors ".concat(t.prefix?"pl-6 pr-3":"px-3"," ").concat(t.suffix?"pr-8":"")}),t.suffix&&(0,Te.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-[13px] font-mono text-[#9ca3af] pointer-events-none",children:t.suffix})]})]})}function HE(e){let t=e.testId,n=e.variant,r=e.eyebrow,a=e.title,s=e.subtitle,i=e.scenario,o=e.extra;const l="up"===n;return(0,Te.jsxs)("div",{"data-testid":t,className:"rounded-2xl border p-6 ".concat(l?"bg-gradient-to-br from-[#dff7ee] via-[#ecfdf7] to-[#e8f5ff] border-[#a
27e7d3] shadow-[0_2px_20px_-8px_rgba(15,155,124,0.35)]":"bg-[#faf9ff] border-[#eeeaf6]"),children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.18em] ".concat(l?"text-[#0f9b7c]":"text-[#9ca3af]"),children:r}),(0,Te.jsxs)("div",{className:"mt-1 flex items-baseline gap-2",children:[(0,Te.jsx)("h3",{className:"font-display text-[18px] font-semibold ".concat(l?"text-[#0a3d31]":"text-[#111827]"),children:a}),l&&(0,Te.jsx)(la,{className:"w-3.5 h-3.5 text-[#0f9b7c]",strokeWidth:1.75})]}),(0,Te.jsx)("p",{className:"mt-1 text-[12px] ".concat(l?"text-[#265447]":"text-[#4b5563]"),children:s}),(0,Te.jsxs)("div",{className:"mt-5 space-y-3",children:[(0,Te.jsx)(VE,{label:"Blended CAC",value:IE(i.blendedCac),variant:n,emphasise:!0}),(0,Te.jsx)(VE,{label:"New customers / mo",value:LE(i.customersMo),variant:n}),(0,Te.jsx)(VE,{label:"New customers / year",value:LE(i.customersYr),variant:n})]}),o]})}function VE(e){let t=e.label,n=e.value,r=e.variant,a=e.emphasise;const s="up"===r;return(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)("span",{className:"text-[12px] ".concat(s?"text-[#265447]":"text-[#4b5563]"),children:t}),(0,Te.jsx)("span",{className:"font-mono font-semibold ".concat(a?"text-[18px]":"text-[14px]"," ").concat(s?"text-[#0a3d31]":"text-[#111827]"),children:n})]})}function GE(e){let t=e.deltas;return(0,Te.jsxs)("section",{"data-testid":"roi-delta-summary",className:"rounded-2xl border border-[#eeeaf6] bg-white overflow-hidden",children:[(0,Te.jsx)("div",{className:"px-6 pt-5 pb-3 flex items-baseline justify-between",children:(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:"Boardroom deltas \xb7 Uplaud vs status quo"}),(0,Te.jsx)("h3",{className:"mt-1 font-display text-[16px] font-semibold text-[#111827]",children:"What lands on the P&L"})]})}),(0,Te.jsx)("div",{className:"divide-y divide-[#f2eefa]",children:t.map(e=>(0,Te.jsxs)("div",{"data-testid":"delta-".concat(e.id),className:"grid grid-cols-[1fr_auto_auto_auto] items-center gap-4 px-6 py-3.5",children:[(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827]",children:e.label}),(0,Te.jsx)("div",{className:"text-[12.5px] font-mono text-[#9ca3af] tabular-nums",children:e.sq}),(0,Te.jsx)(xa,{className:"w-3.5 h-3.5 text-[#9ca3af]",strokeWidth:1.75}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 justify-end min-w-[140px]",children:[(0,Te.jsx)("span",{className:"text-[13.5px] font-mono font-semibold text-[#111827] tabular-nums",children:e.up}),(0,Te.jsxs)("span",{className:"text-[11px] font-mono font-semibold px-2 py-0.5 rounded-full inline-flex items-center gap-1 ".concat(e.positive?"text-[#0f9b7c] bg-[#ecfdf7] border border-[#a7e7d3]":"text-[#e35b3a] bg-[#fef3f0] border border-[#f5d5cc]"),children:[e.inverse?(0,Te.jsx)(PE,{className:"w-3 h-3",strokeWidth:2}):(0,Te.jsx)(aa,{className:"w-3 h-3",strokeWidth:2}),e.delta]})]})]},e.id))})]})}function $E(e){let t=e.businessName,n=e.custDelta,r=e.cacDeltaPct,a=e.sq,s=e.up,i=e.onCopy;return(0,Te.jsxs)("section",{"data-testid":"roi-boardroom-summary",className:"rounded-2xl border border-[#eeeaf6] bg-[#261c4d] text-white p-8 relative overflow-hidden",children:[(0,Te.jsx)("div",{className:"absolute -right-10 -top-10 w-56 h-56 rounded-full bg-[#5eead4]/20 blur-3xl pointer-events-none","aria-hidden":!0}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-[10.5px] font-mono uppercase tracking-[0.18em] text-[#c9b3ee]",children:[(0,Te.jsx)(OE,{className:"w-3.5 h-3.5",strokeWidth:1.75}),"Ready for slide 3 of the growth-review deck"]}),(0,Te.jsxs)("h3",{className:"mt-3 font-display text-[22px] font-semibold leading-snug",children:["Layering Uplaud on ",t,"'s current ad spend cuts blended CAC"," ",(0,Te.jsx)("span",{className:"text-[#5eead4]",children:zE(r,1)})," ","\u2014 from ",IE(a.blendedCac)," to"," ",(0,Te.jsx)("span",{className:"text-[#5eead4]",children:IE(s.blendedCac)})," \u2014 while adding"," ",(0,Te.jsxs)("span",{className:"text-[#5eead4]",children:["+",LE(n)," customers"]})," in year one."]}),(0,Te.jsxs)("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Te.jsx)(KE,{label:"Blended CAC",value:IE(s.blendedCac),sub:"down ".concat(zE(r,1)," from ").concat(IE(a.blendedCac))}),(0,Te.jsx)(KE,{label:"Net-new customers / yr",value:"+".concat(LE(n)),sub:"".concat(LE(a.customersYr)," \u2192 ").concat(LE(s.customersYr))}),(0,Te.jsx)(KE,{label:"CAC savings / yr",value:ME(s.cacSavingsYr),sub:"vs sending that same volume through paid"})]}),(0,Te.jsxs)("button",{"data-testid":"roi-summary-copy-btn",onClick:i,className:"mt-6 inline-flex items-center gap-2 text-[13px] font-medium bg-white text-[#261c4d] hover:bg-[#5eead4] hover:text-[#0a3d31] px-4 py-2 rounded-full transition-colors",children:[(0,Te.jsx)(Xj,{className:"w-3.5 h-3.5",strokeWidth:1.75}),"Copy this summary"]})]})]})}function KE(e){let t=e.label,n=e.value,r=e.sub;return(0,Te.jsxs)("div",{className:"rounded-xl bg-white/5 border border-white/10 p-4",children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.18em] text-[#c9b3ee]",children:t}),(0,Te.jsx)("div",{className:"mt-1 font-display text-[26px] font-semibold text-[#5eead4] leading-none",children:n}),(0,Te.jsx)("div",{className:"mt-2 text-[11px] font-mono text-white/70 leading-tight",children:r})]})}const QE=Kr("book-open-text",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]]),YE=Kr("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),JE=Kr("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]),XE=Kr("earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ZE=Kr("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),eF=["Buyer Guide","Case Study","Comparison","FAQ"];function tF(e){return(e||0)>=80?"text-[#059669]":(e||0)>=60?"text-[#b45309]":"text-[#dc2626]"}function nF(e){if(!e)return"Not updated";const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function rF(){var e,t,n,r;const a=Vg(),s=(null===a||void 0===a?void 0:a.workspace)||(null===a||void 0===a?void 0:a.company)||"My Company",o=qe((0,i.useState)([]),2),l=o[0],u=o[1],c=qe((0,i.useState)(""),2),d=c[0],h=c[1],p=qe((0,i.useState)(!0),2),m=p[0],x=p[1],g=qe((0,i.useState)(!1),2),v=g[0],b=g[1],y=qe((0,i.useState)(""),2),D=y[0],w=y[1],k=qe((0,i.useState)("Buyer Guide"),2),j=k[0],C=k[1],E=qe((0,i.useState)(""),2),F=E[0],N=E[1],A=qe((0,i.useState)(!1),2),S=A[0],_=A[1],B=qe((0,i.useState)(null),2),T=B[0],R=B[1],P=(0,i.useMemo)(()=>l.find(e=>e.slug===d)||l[0],[l,d]),O=(0,i.useMemo)(()=>function(e){if("undefined"===typeof window||!e)return"";const t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll("script,style,iframe,object,embed,link,meta,form,input,button").forEach(e
2=>e.remove()),t.content.querySelectorAll("*").forEach(e=>{[...e.attributes].forEach(t=>{const n=t.name.toLowerCase(),r=(t.value||"").trim().toLowerCase();(n.startsWith("on")||r.startsWith("javascript:")||r.startsWith("data:"))&&e.removeAttribute(t.name)})}),t.innerHTML}((null===P||void 0===P?void 0:P.content_html)||"<p>No article body yet.</p>"),[null===P||void 0===P?void 0:P.content_html]),L=async()=>{x(!0);try{const e=(await ev.get("/business/content")).data,t=(null===e||void 0===e?void 0:e.posts)||[];u(t),h(e=>{var n;return e||(null===(n=t[0])||void 0===n?void 0:n.slug)||""})}catch(nN){var e,t;Tr.error(Zg(null===(e=nN.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not load content posts")}finally{x(!1)}};(0,i.useEffect)(()=>{L()},[]);const I=async(e,t)=>{w(e);try{const n=(await ev.post("/business/content/".concat(e,"/").concat(t))).data;u(t=>t.map(t=>t.slug===e?n:t)),Tr.success("publish"===t?"Published to the public business page":"Content updated")}catch(nN){var n,r;Tr.error(Zg(null===(n=nN.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.detail)||"Could not update content")}finally{w("")}},M=(e,t)=>{R(n=>f(f({},n||{}),{},{[e]:t}))},z={label:"Content drafts",value:m?"...":"".concat(l.length),delta:"research-backed posts from reviews and Growth Signals",attribution:"The agent combines public research with verified Uplaud reviews, then runs an editor review before anything can be published."},U={eyebrow:"Paid module",headline:P?(q=P.buyer_question||P.title,q?q.split(/(?<=[.!?])\s+/)[0]||q:""):"Generate your first buyer-ready article",reasoning:[{label:"Quality gate",value:null!==P&&void 0!==P&&P.quality_score?"".concat(P.quality_score,"/100"):"Required"},{label:"Status",value:(null===P||void 0===P?void 0:P.status)||"No posts yet"},{label:"Research",value:null!==P&&void 0!==P&&null!==(e=P.research_packet)&&void 0!==e&&null!==(t=e.sources)&&void 0!==t&&t.length?"".concat(P.research_packet.sources.length," sources"):"Public web"}],outcome:"Publish only after the reviewer agent clears SEO, AEO, evidence, and usefulness checks.",cta:"Start a draft"};var q;return(0,Te.jsxs)("div",{"data-testid":"content-agent-page",className:"space-y-10",children:[(0,Te.jsx)(YD,{eyebrow:"Content Agent \xb7 ".concat(s),question:"What should buyers understand before they choose you?",northStar:z,smartAction:U,onAction:()=>{var e;return null===(e=document.getElementById("content-agent-question"))||void 0===e?void 0:e.focus()}}),(0,Te.jsxs)("section",{className:"grid grid-cols-1 xl:grid-cols-[420px_minmax(0,1fr)] gap-6",children:[(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eee5d5] bg-white/80 p-5 shadow-sm",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3 mb-5",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-display text-[20px] font-semibold text-[#111827]",children:"Generate content"}),(0,Te.jsx)("p",{className:"text-[12.5px] text-[#7c7469] mt-1",children:"Research first, reviews second, editor gate before publish."})]}),(0,Te.jsx)(la,{className:"w-5 h-5 text-[#6442ff]"})]}),(0,Te.jsx)("label",{className:"block text-[11px] font-mono uppercase tracking-[0.18em] text-[#7c7469] mb-2",children:"Content type"}),(0,Te.jsx)("div",{className:"grid grid-cols-2 gap-2 mb-5",children:eF.map(e=>(0,Te.jsx)("button",{type:"button",onClick:()=>C(e),className:"rounded-lg border px-3 py-2 text-[13px] font-medium transition ".concat(j===e?"border-[#6442ff] bg-[#f4f1ff] text-[#261c4d]":"border-[#eee5d5] bg-white text-[#554f48] hover:border-[#d9cdb9]"),children:e},e))}),(0,Te.jsx)("label",{htmlFor:"content-agent-question",className:"block text-[11px] font-mono uppercase tracking-[0.18em] text-[#7c7469] mb-2",children:"Buyer question"}),(0,Te.jsx)("textarea",{id:"content-agent-question",value:F,onChange:e=>N(e.target.value),placeholder:"Example: Is AI Fiesta worth it for teams comparing AI models?",className:"min-h-[112px] w-full rounded-xl border border-[#ded3bf] bg-white px-4 py-3 text-[14px] leading-relaxed text-[#111827] outline-none focus:border-[#6442ff] focus:ring-4 focus:ring-[#6442ff]/10"}),(0,Te.jsxs)("button",{type:"button",onClick:async()=>{b(!0);try{const e=(await ev.post("/business/content/generate",{content_type:j,buyer_question:F})).data,t=[e,...l.filter(t=>t.slug!==e.slug)];u(t),h(e.slug),_(!1),R(null),Tr.success("Draft generated for review",{description:e.quality_score>=80?"Passed the content quality gate.":"Needs edits before publishing."})}catch(nN){var e,t;Tr.error(Zg(null===(e=nN.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not generate content")}finally{b(!1)}},disabled:v,className:"mt-4 inline-flex w-full items-center justify-center gap-2 rounded-xl bg-[#09090d] px-4 py-3 text-[14px] font-semibold text-white disabled:opacity-60",children:[v?(0,Te.jsx)(qc,{className:"w-4 h-4 animate-spin"}):(0,Te.jsx)(la,{className:"w-4 h-4"}),"Generate draft"]})]}),(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eee5d5] bg-white/80 p-5 shadow-sm",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3 mb-5",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-display text-[20px] font-semibold text-[#111827]",children:"Content pipeline"}),(0,Te.jsx)("p",{className:"text-[12.5px] text-[#7c7469] mt-1",children:"Draft, approve, publish, or archive paid content assets."})]}),(0,Te.jsx)("button",{type:"button",onClick:L,className:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-[#eee5d5] bg-white text-[#554f48]","aria-label":"Refresh content",children:(0,Te.jsx)(Jj,{className:"w-4 h-4"})})]}),m?(0,Te.jsxs)("div",{className:"flex h-48 items-center justify-center text-[#7c7469]",children:[(0,Te.jsx)(qc,{className:"mr-2 h-4 w-4 animate-spin"})," Loading content"]}):0===l.length?(0,Te.jsxs)("div",{className:"rounded-xl border border-dashed border-[#ded3bf] p-8 text-center",children:[(0,Te.jsx)(QE,{className:"mx-auto mb-3 h-8 w-8 text-[#6442ff]"}),(0,Te.jsx)("p",{className:"font-semibold text-[#111827]",children:"No content posts yet"}),(0,Te.jsx)("p",{className:"mt-1 text-[13px] text-[#7c7469]",children:"Ask a buyer question to create a research-backed draft."})]}):(0,Te.jsx)("div",{className:"space-y-3",children:l.map(e=>(0,Te.jsx)("button",{type:"button",onClick:()=>h(e.slug),className:"w-full rounded-xl border p-4 text-left transition ".concat((null===P||void 0===P?void 0:P.slug)===e.slug?"border-[#6442ff] bg-[#f8f6ff]":"border-[#eee5d5] bg-white hover:border-[#d9cdb9]"),children:(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,Te.jsx)("span",{className:"rounded-full border border-[#ded3bf] px-2 py-1 text-[11px] font-mono uppercase tracking-[0.12em] text-[#7c7469]",children:e.status}),(0,Te.jsxs)("span",{className:"text-[12px] font-semibold ".concat(tF(e.quality_score)),children:["Q ",e.quality_score||0]}),(0,Te.jsxs)("span",{className:"text-[12px] font-semibold ".concat(tF(e.seo_score)),children:["SEO ",e.seo_score||0]}),(0,Te.jsxs)("span",{className:"text-[12px] font-semibold ".concat(tF(e.aeo_score)),children:["AEO ",e.aeo_score||0]})]}),(0,Te.jsx)("h3",{className:"mt-3 line-clamp-2 font-display text-[18px] font-semibold text-[#111827]",children:e.title}),(0,Te.jsx)("p",{className:"mt-1 line-clamp-2 text-[13px] leading-relaxed text-[#6b6258]",children:e.buyer_question||e.excerpt||e.meta_description}),(0,Te.jsxs)("div",{className:"mt-3 flex flex-wrap gap-3 text-[11px] font-mono uppercase tracking-[0.12em] text-[#9f968b]",children:[(0,Te.jsx)("span",{children:e.content_type||"Content"}),(0,Te.jsxs)("span",{children:[(e.source_review_ids||[]).length," reviews"]}),(0,Te.jsx)("span",{children:nF(e.updated_at)})]})]}),(0,Te.jsx)(_a,{className:"mt-1 h-5 w-5 shrink-0 text-[#9f968b]"})]})},e.slug))})]})]}),P&&(0,Te.jsxs)("section",{className:"grid grid-cols-1 xl:grid-cols-[minmax(0,1fr)_340px] gap-6",children:[(0,Te.jsxs)("article",{className:"rounded-2xl border border-[#eee5d5] bg-white/85 p-6 shadow-sm",children:[(0,Te.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-[#eee5d5] pb-5",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#7c7469]",children:P.content_type||"Content"}),(0,Te.jsx)("h2",{className:"mt-2 font-display text-[28px] font-semibold leading-tight text-[#111827]",children:P.title})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap gap-2",children:["published"!==P.status&&(0,Te.jsxs)("button",{type:"button",disabled:D===P.slug,onClick:()=>I(P.slug,"publish"),className:"inline-flex items-center gap-2 rounded-xl bg-[#09090d] px-4 py-2.5 text-[13px] font-semibold text-white disabled:opacity-60",children:[D===P.slug?(0,Te.jsx)(qc,{className:"h-4 w-4 animate-spin"}):(0,Te.jsx)(Uc,{className:"h-4 w-4"}),"Publish"]}),"published"===P.status&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("button",{type:"button",disabled:D===P.slug,onClick:()=>I(P.slug,"unpublish"),className:"inline-flex items-center gap-2 rounded-xl border border-[#ded3bf] bg-white px-4 py-2.5 text-[13px] font-semibold text-[#554f48] disabled:opacity-60",children:"Unpublish"}),(0,Te.jsxs)("a",{href:"/business/public/".concat(P.business_slug,"/blog/").concat(P.slug),target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 rounded-xl border border-[#ded3bf] bg-white px-4 py-2.5 text-[13px] font-semibold text-[#111827]",children:["View live ",(0,Te.jsx)(Qr,{className:"h-4 w-4"})]})]}),(0,Te.jsxs)("button",{type:"button",onClick:S?async()=>
2{if(P&&T){w(P.slug);try{const e=(await ev.put("/business/content/".concat(P.slug),T)).data;u(t=>t.map(t=>t.slug===P.slug?e:t)),h(e.slug),_(!1),R(null),Tr.success("Content edits saved")}catch(nN){var e,t;Tr.error(Zg(null===(e=nN.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not save content edits")}finally{w("")}}}:()=>{P&&(R({title:P.title||"",slug:P.slug||"",meta_description:P.meta_description||"",excerpt:P.excerpt||"",content_html:P.content_html||"",reviewer_notes:P.reviewer_notes||"",status:P.status||"draft"}),_(!0))},disabled:D===P.slug,className:"inline-flex items-center gap-2 rounded-xl border border-[#ded3bf] bg-white px-4 py-2.5 text-[13px] font-semibold text-[#554f48] disabled:opacity-60",children:[S?(0,Te.jsx)(YE,{className:"h-4 w-4"}):(0,Te.jsx)(_a,{className:"h-4 w-4"}),S?"Save edits":"Edit"]}),(0,Te.jsxs)("button",{type:"button",disabled:D===P.slug,onClick:()=>I(P.slug,"archive"),className:"inline-flex items-center gap-2 rounded-xl border border-[#ded3bf] bg-white px-4 py-2.5 text-[13px] font-semibold text-[#554f48] disabled:opacity-60",children:[(0,Te.jsx)(JE,{className:"h-4 w-4"}),"Archive"]})]})]}),S?(0,Te.jsxs)("div",{className:"mt-6 space-y-4",children:[(0,Te.jsx)(aF,{label:"Title",value:(null===T||void 0===T?void 0:T.title)||"",onChange:e=>M("title",e)}),(0,Te.jsx)(aF,{label:"Slug",value:(null===T||void 0===T?void 0:T.slug)||"",onChange:e=>M("slug",e)}),(0,Te.jsx)(aF,{label:"Meta description",value:(null===T||void 0===T?void 0:T.meta_description)||"",onChange:e=>M("meta_description",e),multiline:!0}),(0,Te.jsx)(aF,{label:"Excerpt",value:(null===T||void 0===T?void 0:T.excerpt)||"",onChange:e=>M("excerpt",e),multiline:!0}),(0,Te.jsx)(aF,{label:"Article HTML",value:(null===T||void 0===T?void 0:T.content_html)||"",onChange:e=>M("content_html",e),multiline:!0,tall:!0}),(0,Te.jsx)(aF,{label:"Reviewer notes",value:(null===T||void 0===T?void 0:T.reviewer_notes)||"",onChange:e=>M("reviewer_notes",e),multiline:!0})]}):(0,Te.jsx)("div",{className:"prose prose-neutral mt-6 max-w-none prose-headings:font-display prose-p:leading-relaxed prose-blockquote:border-l-[#6442ff] prose-blockquote:bg-[#f8f6ff] prose-blockquote:py-2 prose-blockquote:not-italic",dangerouslySetInnerHTML:{__html:O}})]}),(0,Te.jsxs)("aside",{className:"space-y-4",children:[(0,Te.jsxs)(sF,{title:"Quality",icon:Uc,children:[(0,Te.jsx)(iF,{label:"Overall",value:"".concat(P.quality_score||0,"/100"),tone:tF(P.quality_score)}),(0,Te.jsx)(iF,{label:"SEO",value:"".concat(P.seo_score||0,"/100"),tone:tF(P.seo_score)}),(0,Te.jsx)(iF,{label:"AEO",value:"".concat(P.aeo_score||0,"/100"),tone:tF(P.aeo_score)}),P.reviewer_notes&&(0,Te.jsx)("p",{className:"mt-3 text-[13px] leading-relaxed text-[#6b6258]",children:P.reviewer_notes})]}),(0,Te.jsxs)(sF,{title:"Research",icon:Ba,children:[((null===(n=P.research_packet)||void 0===n?void 0:n.sources)||[]).slice(0,5).map((e,t)=>(0,Te.jsxs)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"mb-3 block rounded-lg border border-[#eee5d5] bg-white p-3 text-[13px] text-[#111827]",children:[(0,Te.jsx)("span",{className:"font-semibold",children:e.name||"Source"}),e.claim&&(0,Te.jsx)("span",{className:"mt-1 block text-[#7c7469]",children:e.claim})]},"".concat(e.url||e.name,"-").concat(t))),0===((null===(r=P.research_packet)||void 0===r?void 0:r.sources)||[]).length&&(0,Te.jsx)("p",{className:"text-[13px] text-[#7c7469]",children:"No research sources stored yet."})]}),(0,Te.jsxs)(sF,{title:"Public asset",icon:XE,children:[(0,Te.jsxs)("p",{className:"break-all text-[13px] text-[#6b6258]",children:["/business/public/",P.business_slug,"/blog/",P.slug]}),(0,Te.jsx)("p",{className:"mt-3 text-[13px] text-[#6b6258]",children:"Schema is stored with the post and rendered server-side when published."})]}),(0,Te.jsx)(sF,{title:"Schema",icon:ZE,children:(0,Te.jsx)("pre",{className:"max-h-72 overflow-auto rounded-lg bg-[#111827] p-3 text-[11px] leading-relaxed text-white",children:JSON.stringify(P.schema||{},null,2)})})]})]})]})}function aF(e){let t=e.label,n=e.value,r=e.onChange,a=e.multiline,s=void 0!==a&&a,i=e.tall,o=void 0!==i&&i;return(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsx)("span",{className:"mb-2 block text-[11px] font-mono uppercase tracking-[0.18em] text-[#7c7469]",children:t}),s?(0,Te.jsx)("textarea",{value:n,onChange:e=>r(e.target.value),className:"w-full rounded-xl border border-[#ded3bf] bg-white px-4 py-3 text-[14px] leading-relaxed text-[#111827] outline-none focus:border-[#6442ff] focus:ring-4 focus:ring-[#6442ff]/10 ".concat(o?"min-h-[320px] font-mono text-[12px]":"min-h-[92px]")}):(0,Te.jsx)("input",{value:n,onChange:e=>r(e.target.value),className:"w-full rounded-xl border border-[#ded3bf] bg-white px-4 py-3 text-[14px] text-[#111827] outline-none focus:border-[#6442ff] focus:ring-4 focus:ring-[#6442ff]/10"})]})}function sF(e){let t=e.title,n=e.icon,r=e.children;return(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eee5d5] bg-white/85 p-5 shadow-sm",children:[(0,Te.jsxs)("div",{className:"mb-4 flex items-center gap-2",children:[(0,Te.jsx)(n,{className:"h-4 w-4 text-[#6442ff]"}),(0,Te.jsx)("h3",{className:"font-display text-[16px] font-semibold text-[#111827]",children:t})]}),r]})}function iF(e){let t=e.label,n=e.value,r=e.tone;return(0,Te.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-4 border-b border-[#f1eadf] pb-2 last:border-0",children:[(0,Te.jsx)("span",{className:"text-[12px] font-mono uppercase tracking-[0.14em] text-[#7c7469]",children:t}),(0,Te.jsx)("span",{className:"font-display text-[18px] font-semibold ".concat(r),children:n})]})}const oF=Kr("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),lF=Kr("plug",[["path",{d:"M12 22v-5",key:"1ega77"}
2],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);function uF(){const e=Vg()||{},t=tn(),n=qe((0,i.useState)(e.name||"Nick Patel"),2),r=n[0],a=n[1],s=qe((0,i.useState)(e.email||""),2),o=s[0],l=s[1],u=qe((0,i.useState)(!1),2),c=u[0],d=u[1];return(0,Te.jsxs)("div",{"data-testid":"settings-page",className:"max-w-[820px] space-y-6",children:[(0,Te.jsx)("h1",{className:"font-display text-[26px] font-semibold tracking-tight text-[#111827]",children:"Settings"}),(0,Te.jsxs)(cF,{icon:oF,title:"Profile",children:[(0,Te.jsx)(dF,{label:"Name",children:(0,Te.jsx)("input",{"data-testid":"settings-name-input",value:r,onChange:e=>a(e.target.value),className:"w-full h-11 px-4 rounded-xl border border-[#eeeaf6] bg-white text-[13px] focus:outline-none focus:border-[#d9d1ee]"})}),(0,Te.jsx)(dF,{label:"Email",children:(0,Te.jsx)("input",{"data-testid":"settings-email-input",value:o,onChange:e=>l(e.target.value),className:"w-full h-11 px-4 rounded-xl border border-[#eeeaf6] bg-white text-[13px] focus:outline-none focus:border-[#d9d1ee]"})})]}),(0,Te.jsxs)(cF,{icon:jD,title:"Notifications",children:[(0,Te.jsx)(hF,{label:"Email me when an agent needs approval",defaultOn:!0}),(0,Te.jsx)(hF,{label:"Weekly Insights summary",defaultOn:!0}),(0,Te.jsx)(hF,{label:"Reddit thread opportunities"})]}),(0,Te.jsx)(cF,{icon:lF,title:"Integrations",children:(0,Te.jsx)("div",{className:"space-y-2",children:[{name:"Google Reviews",connected:!0},{name:"Trustpilot",connected:!0},{name:"LinkedIn (post publisher)",connected:!1},{name:"X (Twitter API v2)",connected:!1},{name:"Reddit account",connected:!0},{name:"HubSpot CRM",connected:!1}].map(e=>(0,Te.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-[#eeeaf6] px-4 py-3",children:[(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827]",children:e.name}),(0,Te.jsx)("span",{className:"ml-auto text-[11px] font-mono px-2.5 py-1 rounded-full border ".concat(e.connected?"bg-[#ecfdf7] text-[#0f9b7c] border-[#c8f0e4]":"bg-[#f5f3ff] text-[#6d46c6] border-[#e2d9f5]"),children:e.connected?"connected":"connect"})]},e.name))})}),(0,Te.jsxs)("div",{className:"flex items-center gap-3 pt-2",children:[(0,Te.jsxs)("button",{"data-testid":"settings-save-btn",onClick:async()=>{if(r.trim()){d(!0);try{const e=(await pD.auth.updateUser({data:{display_name:r}})).error;if(e)throw e;const t=Vg()||{};t.name=r,Gg(t),window.dispatchEvent(new Event("auth_change")),Tr.success("Settings saved successfully!")}catch(nN){Tr.error(nN.message||"Failed to save settings")}finally{d(!1)}}else Tr.error("Name cannot be empty")},disabled:c,className:"btn-primary h-11 !py-0 disabled:opacity-60",children:[(0,Te.jsx)(YE,{className:"w-4 h-4",strokeWidth:1.75}),c?"Saving...":"Save changes"]}),(0,Te.jsxs)("button",{"data-testid":"settings-reset-btn",onClick:()=>{Kg(),localStorage.removeItem(Ig),localStorage.removeItem(Mg),Tr.success("Workspace reset to zero-state"),t("/business",{replace:!0})},className:"btn-secondary h-11 !py-0 text-red-600 hover:text-red-700 hover:border-red-300",children:[(0,Te.jsx)(jg,{className:"w-4 h-4",strokeWidth:1.75}),"Reset workspace (demo)"]})]})]})}function cF(e){let t=e.icon,n=e.title,r=e.children;return(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white p-6",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-5",children:[(0,Te.jsx)(t,{className:"w-4 h-4 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[14px] font-display font-semibold text-[#111827]",children:n})]}),(0,Te.jsx)("div",{className:"space-y-4",children:r})]})}function dF(e){let t=e.label,n=e.children;return(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-[11px] font-mono uppercase tracking-[0.14em] text-[#4b5563]",children:t}),(0,Te.jsx)("div",{className:"mt-2",children:n})]})}function hF(e){let t=e.label,n=e.defaultOn,r=void 0!==n&&n;const a=qe((0,i.useState)(r),2),s=a[0],o=a[1];return(0,Te.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-[#eeeaf6] px-4 py-3",children:[(0,Te.jsx)("div",{className:"text-[13px] text-[#111827]",children:t}),(0,Te.jsx)("button",{onClick:()=>o(!s),className:"ml-auto w-11 h-6 rounded-full transition-colors relative ".concat(s?"bg-[#6d46c6]":"bg-[#d9d1ee]"),children:(0,Te.jsx)("span",{className:"absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ".concat(s?"left-[22px]":"left-0.5")})})]})}const fF={grey:"bg-[#f5f5f5] text-[#6b7280] border-[#e5e7eb]",purple:"bg-[#f5f3ff] text-[#6d46c6] border-[#e2d9f5]",mint:"bg-[#ecfdf7] text-[#0f9b7c] border-[#c8f0e4]",amber:"bg-[#fef9c3] text-[#a16207] border-[#f4e08a]"};function pF(){const e=qe((0,i.useState)(""),2),t=e[0],n=e[1],r=qe((0,i.useState)("all"),2),a=r[0],s=r[1],o=qe((0,i.useState)("all"),2),l=o[0],u=o[1],c=qe((0,i.useState)(null),2),d=c[0],h=c[1],f=OD.filter(e=>!(t&&!"".concat(e.person," ").concat(e.company," ").concat(e.note).toLowerCase().includes(t.toLowerCase()))&&
2(("all"===a||e.type===a)&&("all"===l||e.state===l)));return(0,Te.jsxs)("div",{"data-testid":"interactions-page",className:"space-y-10",children:[(0,Te.jsx)(YD,{eyebrow:qD.interactions.eyebrow,question:qD.interactions.question,northStar:qD.interactions.northStar,smartAction:WD.interactions,onAction:()=>Tr.success("22 controllers re-engaged with Rohan S.'s testimonial",{description:"Projected ~11 responses \xb7 ~4 warm intros."})}),(0,Te.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,Te.jsx)("h2",{className:"font-display text-[20px] font-semibold tracking-tight text-[#111827]",children:"Every interaction, ranked by untapped value"}),(0,Te.jsx)("span",{className:"text-[12px] text-[#9ca3af]",children:"Sorted by monthly spend"})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,Te.jsxs)("div",{className:"relative flex-1 min-w-[260px] max-w-[420px]",children:[(0,Te.jsx)(Ba,{className:"w-4 h-4 text-[#9ca3af] absolute left-4 top-1/2 -translate-y-1/2"}),(0,Te.jsx)("input",{"data-testid":"interactions-search-input",value:t,onChange:e=>n(e.target.value),placeholder:"Search person, company...",className:"w-full h-10 pl-10 pr-4 rounded-full border border-[#eeeaf6] bg-white text-[13px] focus:outline-none focus:border-[#d9d1ee] transition-all"})]}),(0,Te.jsxs)("select",{"data-testid":"interactions-type-filter",value:a,onChange:e=>s(e.target.value),className:"h-10 px-4 rounded-full border border-[#eeeaf6] bg-white text-[13px] text-[#4b5563] focus:outline-none focus:border-[#d9d1ee]",children:[(0,Te.jsx)("option",{value:"all",children:"All types"}),Object.entries(RD).map(e=>{let t=qe(e,2),n=t[0],r=t[1];return(0,Te.jsx)("option",{value:n,children:r.label},n)})]}),(0,Te.jsxs)("select",{"data-testid":"interactions-state-filter",value:l,onChange:e=>u(e.target.value),className:"h-10 px-4 rounded-full border border-[#eeeaf6] bg-white text-[13px] text-[#4b5563] focus:outline-none focus:border-[#d9d1ee]",children:[(0,Te.jsx)("option",{value:"all",children:"All states"}),Object.entries(PD).map(e=>{let t=qe(e,2),n=t[0],r=t[1];return(0,Te.jsx)("option",{value:n,children:r.label},n)})]})]}),(0,Te.jsx)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white overflow-hidden",children:(0,Te.jsx)("div",{className:"overflow-x-auto",children:(0,Te.jsxs)("table",{"data-testid":"interactions-table",className:"w-full text-[13px]",children:[(0,Te.jsx)("thead",{className:"bg-[#faf9ff] border-b border-[#eeeaf6]",children:(0,Te.jsxs)("tr",{className:"text-left text-[11px] font-mono uppercase tracking-[0.14em] text-[#4b5563]",children:[(0,Te.jsx)("th",{className:"py-3 px-5",children:"Person"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Type"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Source"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Value"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Signal"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Activation"}),(0,Te.jsx)("th",{className:"py-3 px-5",children:"Date"})]})}),(0,Te.jsx)("tbody",{children:f.map(e=>{const t=RD[e.type],n=PD[e.state];return(0,Te.jsxs)("tr",{"data-testid":"interaction-row-".concat(e.id),onClick:()=>h(e),className:"border-b border-[#f2eefa] hover:bg-[#faf9ff] cursor-pointer transition-colors",children:[(0,Te.jsx)("td",{className:"py-4 px-5",children:(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-[11px] font-semibold text-white shrink-0",style:{backgroundColor:t.color},children:e.person.split(" ").map(e=>e[0]).join("")}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827] leading-tight",children:e.person}),(0,Te.jsxs)("div",{className:"text-[11px] text-[#4b5563]",children:[e.role," \xb7 ",e.company]})]})]})}),(0,Te.jsx)("td",{className:"py-4 px-5",children:(0,Te.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium",style:{backgroundColor:"".concat(t.color,"18"),color:t.color},children:t.label})}),(0,Te.jsx)("td",{className:"py-4 px-5 text-[12px] text-[#4b5563]",children:e.source}),(0,Te.jsx)("td",{className:"py-4 px-5 font-mono text-[12px] text-[#4b5563]",children:e.monthlySpend}),(0,Te.jsx)("td",{className:"py-4 px-5",children:(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-14 h-1.5 rounded-full bg-[#eeeaf6] overflow-hidden",children:(0,Te.jsx)("div",{className:"h-full rounded-full bg-gradient-to-r from-[#6d46c6] to-[#5eead4]",style:{width:"".concat(100*e.signalScore,"%")}})}),(0,Te.jsx)("span",{className:"text-[11px] font-mono text-[#4b5563]",children:Math.round(100*e.signalScore)})]})}),(0,Te.jsx)("td",{className:"py-4 px-5",children:(0,Te.jsx)("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium border ".concat(fF[n.tone]),children:n.label})}),(0,Te.jsx)("td",{className:"py-4 px-5 text-[11.5px] font-mono text-[#9ca3af]",children:e.date})]},e.id)})})]})})}),d&&(0,Te.jsx)(mF,{interaction:d,onClose:()=>h(null)})]})}function mF(e){let t=e.interaction,n=e.onClose;const r=RD[t.type],a=PD[t.state],s=t,i=[{id:"prompt",label:"Send feedback prompt",icon:_E,hint:"Personalised, one-click reply",priority:"high"},{id:"story",label:"Draft a customer testimonial",icon:la,hint:"From conversation transcript",priority:"high"},{id:"intro",label:"Request a warm intro",icon:Qr,hint:"3 lookalikes in their network",priority:"medium"},{id:"amplify",label:"Add to Social Agent queue",icon:TD,hint:"LinkedIn draft, founder tone",priority:"medium"}];return(0,Te.jsxs)("div",{"data-testid":"interaction-drawer",className:"fixed inset-0 z-50 flex justify-end",children:[(0,Te.jsx)("div",{className:"absolute inset-0 bg-[#111827]/40 backdrop-blur-sm",onClick:n}),(0,Te.jsxs)("aside",{className:"relative w-full max-w-[540px] h-full bg-white shadow-2xl overflow-y-auto",children:[(0,Te.jsxs)("div",{className:"sticky top-0 bg-white border-b border-[#eeeaf6] px-6 h-14 flex items-center justify-between z-10",children:[(0,Te.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:["Interaction \xb7 ",s.id]}),(0,Te.jsx)("button",{"data-testid":"interaction-drawer-close",onClick:n,className:"w-9 h-9 rounded-full border border-[#eeeaf6] hover:border-[#d9d1ee] flex items-center justify-center",children:(0,Te.jsx)(Yr,{className:"w-4 h-4 text-[#4b5563]",strokeWidth:1.75})})]}),(0,Te.jsxs)("div",{className:"p-6 space-y-5",children:[(0,Te.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Te.jsx)("div",{className:"w-12 h-12 rounded-full flex items-center justify-center text-white text-[15px] font-semibold shrink-0",style:{backgroundColor:r.color},children:s.person.split(" ").map(e=>e[0]).join("")}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"font-display text-[17px] font-semibold text-[#111827]",children:s.person}),(0,Te.jsxs)("div",{className:"text-[12.5px] text-[#4b5563]",children:[s.role," \xb7 ",s.company]}),(0,Te.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[(0,Te.jsx)("span",{className:"px-2.5 py-1 rounded-full text-[11px] font-medium",style:{backgroundColor:"".concat(r.color,"18"),color:r.color},children:r.label}),(0,Te.jsx)("span",{className:"px-2.5 py-1 rounded-full text-[11px] font-medium border ".concat(fF[a.tone]),children:a.label})]})]})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-3 gap-3 text-center",children:[(0,Te.jsx)(xF,{label:"Monthly value",value:s.monthlySpend}),(0,Te.jsx)(xF,{label:"Signal score",value:"".concat(Math.round(100*s.signalScore))}),(0,Te.jsx)(xF,{label:"Source",value:s.source.split(" ")[0],small:!0})]}),(0,Te.jsxs)("div",{className:"rounded-xl border border-[#eeeaf6] bg-[#faf9ff] p-4",children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.14em] text-[#9ca3af]",children:"Rep notes"}),(0,Te.jsx)("p",{className:"mt-1.5 text-[13px] leading-relaxed text-[#111827]",children:s.note})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Te.jsx)(la,{className:"w-4 h-4 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[13px] font-display font-semibold text-[#111827]",children:"Suggested activations"})]}),(0,Te.jsx)("div",{className:"space-y-2",children:i.map(e=>(0,Te.jsx)("button",{"data-testid":"activation-".concat(e.id),onClick:()=>Tr.success("".concat(e.label," queued for ").concat(s.person)),className:"w-full text-left rounded-xl border border-[#eeeaf6] hover:border-[#d9d1ee] bg-white p-4 transition-colors group",children:(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-9 h-9 rounded-lg bg-[#f5f3ff] text-[#6d46c6] flex items-center justify-center shrink-0",children:(0,Te.jsx)(e.icon,{className:"w-4 h-4",strokeWidth:1.75})}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"text-[13px] font-medium text-[#111827] leading-tight",children:e.label}),(0,Te.jsx)("div",{className:"text-[11px] font-mono text-[#9ca3af] mt-0.5",children:e.hint})]}),"high"===e.priority&&(0,Te.jsx)("span",{className:"text-[10px] font-mono text-[#0f9b7c] bg-[#ecfdf7] border border-[#c8f0e4] rounded-full px-2 py-0.5",children:"high"}),(0,Te.jsx)(Qr,{className:"w-4 h-4 text-[#9ca3af] group-hover:text-[#6d46c6]",strokeWidth:1.75})]})},e.id))})]})]})]})]})}function xF(e){let t=e.label,n=e.value,r=e.small;return(0,Te.jsxs)("div",{className:"rounded-lg bg-[#faf9ff] border border-[#eeeaf6] p-3",children:[(0,Te.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.14em] text-[#9ca3af]",children:t}),(0,Te.jsx)("div",{className:"mt-1 font-display font-semibold text-[#111827] leading-none ".concat(r?"text-[13px]":"text-[18px]"),children:n})]})}const gF=Kr("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),vF=Kr("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),bF=Kr("circle-help",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),yF=Kr("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]),DF=Kr("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]),wF=Kr("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);const kF={Gong:{color:"#8236f7"},"Zoom AI":{color:"#2d8cff"},"Fireflies.ai":{color:"#f97316"},Fathom:{color:"#0ea5e9"},HubSpot:{color:"#ff7a59"}},jF={signals_extracted:{label:"Signals extracted",icon:la,tone:"purple"},awaiting_approval:{label:"Awaiting approval",icon:zv,tone:"amber"}
2,anonymous_published:{label:"Published anonymously",icon:av,tone:"mint"},approved:{label:"Approved",icon:Uc,tone:"mint"},amplified:{label:"Amplified",icon:TD,tone:"mint"}},CF={purple:"bg-[#f5f3ff] text-[#6d46c6] border-[#e2d9f5]",mint:"bg-[#ecfdf7] text-[#0f9b7c] border-[#c8f0e4]",amber:"bg-[#fef9c3] text-[#a16207] border-[#f4e08a]"};function EF(){const e=tn(),t=qe((0,i.useState)([]),2),n=t[0],r=t[1],a=qe((0,i.useState)(null),2),s=a[0],o=a[1],l=qe((0,i.useState)(""),2),u=l[0],c=l[1],d=qe((0,i.useState)("all"),2),h=d[0],f=d[1],p=qe((0,i.useState)(!0),2),m=p[0],x=p[1],g=(0,i.useCallback)(async()=>{try{var e;const t=qe(await Promise.all([ev.get("/sources"),ev.get("/business/profile").catch(()=>({data:null}))]),2),n=t[0].data,a=((null===(e=t[1].data)||void 0===e?void 0:e.company_name)||"").trim(),s=n.map(e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.insights||{},r=n.company_name||e.client_name,a=t||e.brand||"",s=[n.speaker_name,n.speaker_role,r].filter(Boolean).join(", "),i=e.testimonial_status||"draft",o="approved"===i?"approved":"sent"===i?"awaiting_approval":"anonymous_published"===i?"anonymous_published":"signals_extracted";return{id:e.id,code:e.conversation_code||"CV_001",_sourceId:e.id,shareId:e.share_id,businessName:a,title:"".concat(r," \xb7 ").concat(n.call_type||"Demo"),person:n.speaker_name||"Customer",role:n.speaker_role||"\u2014",company:r,aeName:n.ae_name||"\u2014",source:e.source_name||"Upload",duration:"".concat(e.duration_min||0," min"),date:(e.created_at||"").slice(0,10),status:o,transcriptAvailable:Boolean(e.transcript_available),transcriptUrl:e.transcript_url||"/api/sources/".concat(e.id,"/transcript"),externalUrl:e.external_url||"",sentiment:n.sentiment_label||"Positive",signalScore:(n.signal_score||0)/100,type:n.call_type||"Demo",signals:{motivations:n.motivations||[],painPoints:n.pain_points||[],buyingSignals:n.buying_signals||[],objections:n.objections||[],customerLanguage:n.customer_language||[],productFeedback:n.product_feedback||[],faqs:n.faqs||[]},draftedStory:e.testimonial_draft?{status:{draft:"draft",sent:"awaiting_approval",anonymous_published:"anonymous_published",approved:"approved"}[i]||"draft",body:e.testimonial_draft,attribution:s,approvalRequestedAt:e.approval_requested_at||null,approvedAt:e.approved_at||null}:null}}(e,a));r(s),o(e=>{var t,n;return e&&s.some(t=>t.id===e)?e:null!==(t=null===(n=s[0])||void 0===n?void 0:n.id)&&void 0!==t?t:null})}catch(nN){var t,n;Tr.error(Zg(null===(t=nN.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Failed to load conversations")}finally{x(!1)}},[]);(0,i.useEffect)(()=>{g()},[g]);const v=n.filter(e=>!(u&&!"".concat(e.person," ").concat(e.company," ").concat(e.title).toLowerCase().includes(u.toLowerCase()))&&("all"===h||e.status===h)),b=n.find(e=>e.id===s)||v[0],y=(0,i.useMemo)(()=>({totalBuying:n.reduce((e,t)=>{var n;return e+((null===(n=t.signals.buyingSignals)||void 0===n?void 0:n.length)||0)},0),totalPain:n.reduce((e,t)=>{var n;return e+((null===(n=t.signals.painPoints)||void 0===n?void 0:n.length)||0)},0),approvedCount:n.filter(e=>{var t;return"approved"===(null===(t=e.draftedStory)||void 0===t?void 0:t.status)}).length,draftedCount:n.filter(e=>e.draftedStory).length}),[n]),D=(0,i.useMemo)(()=>n.find(e=>{var t;return"approved"===(null===(t=e.draftedStory)||void 0===t?void 0:t.status)})||null,[n]),w=(0,i.useMemo)(()=>0===n.length?{label:"Buying signals detected across your calls",value:"0",delta:"Upload your first call to start extracting signals",attribution:"Every transcript you import gets scanned for motivations, pain points, buying signals and objections \u2014 automatically."}:{label:"Buying signals detected across your calls",value:"".concat(y.totalBuying),delta:"across ".concat(n.length," conversation").concat(1===n.length?"":"s"," \xb7 ").concat(y.approvedCount," approved"),attribution:"".concat(y.totalPain," pain points and ").concat(y.draftedCount," drafted testimonials surfaced from your calls so far."),latestTestimonial:D?{body:D.draftedStory.body,attribution:D.draftedStory.attribution,approvedAt:D.draftedStory.approvedAt}:null},[n,y,D]),k=(0,i.useMemo)(()=>0===n.length?null:[...n].sort((e,t)=>
2t.signalScore-e.signalScore)[0],[n]),j=(0,i.useMemo)(()=>{var e,t,n;if(!k)return{eyebrow:"Intelligent action",headline:"Upload a customer call to unlock your first intelligent action",reasoning:[],outcome:"Once a transcript is analyzed, Uplaud surfaces the single highest-signal conversation here with a recommended next step.",cta:"Go to Sources"};const r=k,a=null===(e=r.signals.buyingSignals)||void 0===e?void 0:e[0],s=null===(t=r.signals.painPoints)||void 0===t?void 0:t[0],i=null===(n=r.draftedStory)||void 0===n?void 0:n.status;let o,l;return r.draftedStory?"draft"===i?(o="A testimonial is drafted but hasn't been sent to ".concat(r.person," for approval yet."),l="Send for approval"):"awaiting_approval"===i?(o="Waiting on ".concat(r.person," to approve \u2014 check the approval page or nudge them."),l="View approval page"):(o="Approved and ready \u2014 amplify this testimonial across LinkedIn, Instagram and X.",l="Amplify now"):(o="No testimonial drafted yet from this call \u2014 draft one now while the signal is fresh.",l="Draft testimonial"),{eyebrow:"Intelligent action",headline:"".concat(r.person,"'s call at ").concat(r.company," has the highest signal score right now (").concat(Math.round(100*r.signalScore),"/100)"),reasoning:[{label:"Sentiment",value:"".concat(r.sentiment," \xb7 ").concat(r.type)},a?{label:"Buying signal",value:a}:null,s?{label:"Pain point",value:s}:null].filter(Boolean),outcome:o,cta:l}},[k]);return(0,Te.jsxs)("div",{"data-testid":"conversations-page",className:"space-y-8",children:[(0,Te.jsx)(YD,{eyebrow:"Growth Signals \xb7 AI-extracted from customer calls",question:"Which conversation should you act on next?",northStar:w,smartAction:j,onAction:()=>{k?"Amplify now"!==j.cta?(o(k.id),Tr.success("Jumped to ".concat(k.person,"'s call"),{description:j.outcome})):e("/business/social"):Tr.info("Upload a call transcript in Sources to get started")}}),(0,Te.jsxs)("section",{className:"space-y-4",children:[(0,Te.jsx)("div",{className:"flex items-baseline justify-between gap-3 flex-wrap",children:(0,Te.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,Te.jsx)("h2",{className:"font-display text-[18px] font-semibold tracking-tight text-[#111827]",children:"Explore individual conversations"}),(0,Te.jsxs)("span",{className:"text-[12px] text-[#9ca3af]",children:[v.length," of ",n.length]})]})}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[(0,Te.jsxs)("aside",{className:"lg:col-span-4 space-y-3",children:[(0,Te.jsxs)("div",{className:"space-y-2",children:[(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)(Ba,{className:"w-4 h-4 text-[#9ca3af] absolute left-4 top-1/2 -translate-y-1/2"}),(0,Te.jsx)("input",{"data-testid":"conversations-search",value:u,onChange:e=>c(e.target.value),placeholder:"Search person, company...",className:"w-full h-10 pl-10 pr-4 rounded-full border border-[#eeeaf6] bg-white text-[13px] focus:outline-none focus:border-[#d9d1ee]"})]}),(0,Te.jsxs)("select",{"data-testid":"conversations-status-filter",value:h,onChange:e=>f(e.target.value),className:"w-full h-10 px-4 rounded-full border border-[#eeeaf6] bg-white text-[13px] text-[#4b5563] focus:outline-none focus:border-[#d9d1ee]",children:[(0,Te.jsx)("option",{value:"all",children:"All statuses"}),Object.entries(jF).map(e=>{let t=qe(e,2),n=t[0],r=t[1];return(0,Te.jsx)("option",{value:n,children:r.label},n)})]})]}),(0,Te.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#4b5563] px-2 pt-2",children:[v.length," conversations"]}),(0,Te.jsx)("div",{className:"space-y-2",children:v.map(e=>{var t,n;const r=jF[e.status],a=r.icon,i=s===e.id;return(0,Te.jsxs)("button",{"data-testid":"conv-card-".concat(e.id),onClick:()=>o(e.id),className:"w-full text-left rounded-2xl border p-4 transition-all relative overflow-hidden ".concat(i?"border-[#6d46c6] bg-[#f5f3ff] shadow-sm ring-1 ring-[#6d46c6]/20 font-medium":"border-[#eeeaf6] bg-white hover:border-[#d9d1ee] hover:bg-slate-50/50"),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"text-[12.5px] font-medium text-[#111827] leading-tight truncate",children:e.title}),(0,Te.jsxs)("span",{className:"ml-auto shrink-0 inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-mono border ".concat(CF[r.tone]),children:[(0,Te.jsx)(a,{className:"w-2.5 h-2.5",strokeWidth:2}),r.label]})]}),(0,Te.jsxs)("div",{className:"mt-1.5 text-[11px] text-[#4b5563]",children:[e.person," \xb7 ",e.role]}),(0,Te.jsxs)("div",{className:"mt-2 flex items-center gap-3 text-[10.5px] font-mono text-[#9ca3af]",children:[(0,Te.jsx)("span",{className:"px-1.5 py-0.5 rounded-full",style:{color:(null===(t=kF[e.source])||void 0===t?void 0:t.color)||"#6d46c6",backgroundColor:"".concat((null===(n=kF[e.source])||void 0===n?void 0:n.color)||"#6d46c6","12")},children:e.source}),(0,Te.jsx)("span",{children:e.duration}),(0,Te.jsx)("span",{className:"ml-auto",children:e.date})]})]},e.id)})})]}),(0,Te.jsxs)("section",{className:"lg:col-span-8 space-y-4 flex flex-col",children:[b&&(0,Te.jsx)(FF,{conversation:b,onChanged:g}),!m&&0===n.length&&(0,Te.jsxs)("div",{"data-testid":"conversations-empty",className:"rounded-2xl border border-dashed border-[#d9d1ee] bg-[#faf9ff] p-10 text-center",children:[(0,Te.jsx)(wD,{className:"w-6 h-6 text-[#6d46c6] mx-auto",strokeWidth:1.5}),(0,Te.jsx)("div",{className:"mt-3 text-[15px] font-display font-semibold text-[#111827]",children:"No conversations yet"}),(0,Te.jsxs)("p",{className:"mt-1 text-[12.5px] text-[#4b5563]",children:["Upload a call transcript in ",(0,Te.jsx)("b",{children:"Sources"})," to extract growth signals and draft a testimonial."]})]})]})]})]})]})}function FF(e){var t,n,r,a,s;let o=e.conversation,l=e.onChanged;const u=jF[o.status],c=qe((0,i.useState)(!1),2),d=c[0],h=c[1],p=qe((0,i.useState)((null===(t=o.draftedStory)||void 0===t?void 0:t.status)||null),2),m=p[0],x=p[1],g=qe((0,i.useState)(!1),2),v=g[0],b=g[1],y=qe((0,i.useState)((null===(n=o.draftedStory)||void 0===n?void 0:n.body)||""),2),D=y[0],w=y[1],k=qe((0,i.useState)(!1),2),j=k[0],C=k[1],E=m||(null===(r=o.draftedStory)||void 0===r?void 0:r.status);(0,i.useEffect)(()=>{var e,t;w((null===(e=o.draftedStory)||void 0===e?void 0:e.body)||""),b(!1),x((null===(t=o.draftedStory)||void 0===t?void 0:t.status)||null)},[o.id,null===(a=o.draftedStory)||void 0===a?void 0:a.body,null===(s=o.draftedStory)||void 0===s?void 0:s.status]);const F=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];C(!0);try{await ev.post("/sources/".concat(o._sourceId,"/analyze").concat(e?"?regenerate=true":"")),Tr.success(e?"Regenerated \u2014 fresh second pass":"Testimonial draft generated",{description:e?"New angle, different quotes \u2014 still grounded verbatim in the transcript.":"Grounded in the transcript, ready for review."}),l&&await l()}catch(nN){var t,n;Tr.error(Zg(null===(t=nN.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||(e?"Could not regenerate this testimonial":"Generation failed"))}finally{C(!1)}},N=[{key:"motivations",icon:gF,title:"Motivations",accent:"#6d46c6"},{key:"painPoints",icon:vF,title:"Pain points",accent:"#e35b3a"},{key:"buyingSignals",icon:TD,title:"Buying signals",accent:"#0f9b7c"},{key:"objections",icon:SE,title:"Objections",accent:"#a16207"},{key:"customerLanguage",icon:AD,title:"Customer language",accent:"#6d46c6"},{key:"productFeedback",icon:la,title:"Product feedback",accent:"#0f9b7c"},{key:"faqs",icon:bF,title:"Frequently asked questions",accent:"#4285F4"}];return(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white p-6 order-1",children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:["Conversation \xb7 ",o.code]}),(0,Te.jsx)("h2",{className:"font-display text-[22px] font-semibold text-[#111827] mt-1",children:o.title}),(0,Te.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-2 text-[12px] text-[#4b5563]",children:[(0,Te.jsxs)("span",{children:[o.person," \xb7 ",o.role]}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsxs)("span",{children:["AE: ",o.aeName]}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{className:"font-mono",children:o.duration}),(0,Te.jsx)("span",{children:"\xb7"}),(0,Te.jsx)("span",{className:"font-mono",children:o.date})]})]}),(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium border ".concat(CF[u.tone]),children:[(0,Te.jsx)(u.icon,{className:"w-3 h-3",strokeWidth:2}),u.label]})]}),(0,Te.jsxs)("div",{className:"mt-5 grid grid-cols-4 gap-3",children:[(0,Te.jsx)(AF,{label:"Source",value:o.source,small:!0}),(0,Te.jsx)(AF,{label:"Sentiment",value:o.sentiment,small:!0}),(0,Te.jsx)(AF,{label:"Signal score",value:"".concat(Math.round(100*o.signalScore))}),(0,Te.jsx)(AF,{label:"Type",value:o.type,small:!0})]}),(0,Te.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-2",children:[(0,Te.jsxs)("button",{"data-testid":"open-transcript-btn",onClick:()=>(async e=>{try{const t=(await ev.get("/sources/".concat(e._sourceId,"/transcript"))).data.transcript||"";if(!t.trim())return void Tr.error("Transcript is not available for this conversation yet");const n=new Blob([t],{type:"text/plain;charset=utf-8"}),r=URL.createObjectURL(n);window.open(r,"_blank","noopener,noreferrer"),window.setTimeout(()=>URL.revokeObjectURL(r),6e4)}catch(nN){var t,n;Tr.error(Zg(null===(t=nN.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Transcript is not available")}})(o),disabled:!o.transcriptAvailable,className:"btn-secondary h-10 !py-0 disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,Te.jsx)(yF,{className:"w-4 h-4",strokeWidth:1.75}),"Open transcript"]}),o.externalUrl&&(0,Te.jsxs)("a",{"data-testid":"open-source-recording-link",href:o.externalUrl,target:"_blank",rel:"noreferrer",className:"btn-secondary h-10 !py-0",children:[(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75}),"Source recording"]})]})]}),o.draftedStory?(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#6d46c6]/25 bg-white p-6 relative overflow-hidden order-2",children:[(0,Te.jsx)("div",{"aria-hidden":!0,
2className:"absolute -top-16 -right-8 w-[240px] h-[240px] rounded-full",style:{background:"radial-gradient(circle, rgba(94,234,212,0.16), transparent 60%)"}}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,Te.jsx)(KD,{className:"w-4 h-4 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[13px] font-display font-semibold text-[#111827]",children:"Drafted customer testimonial"}),(0,Te.jsxs)("div",{className:"ml-auto flex flex-col items-end gap-1 text-right",children:[(0,Te.jsxs)("span",{className:"text-[10.5px] font-mono text-[#9ca3af] flex items-center gap-1",children:[(0,Te.jsx)(av,{className:"w-3 h-3 text-[#0f9b7c]",strokeWidth:1.75}),"Customer approves before publish"]}),"anonymous_published"===E&&(0,Te.jsxs)("span",{className:"text-[10.5px] font-mono text-[#0f9b7c] flex items-center gap-1",children:[(0,Te.jsx)(av,{className:"w-3 h-3",strokeWidth:1.75}),"Published anonymously \xb7 reviewer name hidden until approval"]})]})]}),(0,Te.jsx)(NF,{story:f(f({},o.draftedStory),{},{status:E,approvalRequestedAt:"awaiting_approval"===E||"approved"===E||"amplified"===E?o.draftedStory.approvalRequestedAt||(new Date).toISOString():o.draftedStory.approvalRequestedAt})}),(0,Te.jsxs)("div",{className:"mt-5 rounded-xl bg-[#faf9ff] border border-[#eeeaf6] p-5",children:[v?(0,Te.jsx)("textarea",{"data-testid":"story-edit-textarea",value:D,onChange:e=>w(e.target.value),className:"w-full min-h-[130px] rounded-lg border border-[#eeeaf6] bg-white px-3 py-2.5 text-[14px] leading-relaxed text-[#111827] focus:outline-none focus:border-[#d9d1ee] focus:ring-2 focus:ring-[#6d46c6]/10 resize-y font-display",spellCheck:!1}):(0,Te.jsxs)("p",{className:"text-[14px] leading-relaxed text-[#111827] whitespace-pre-line font-display",children:["\u201c",o.draftedStory.body,"\u201d"]}),(0,Te.jsxs)("div",{className:"mt-3 text-[11.5px] font-mono text-[#6d46c6]",children:["\u2014 ",o.draftedStory.attribution]})]}),(0,Te.jsx)("div",{className:"mt-5 flex flex-wrap items-center gap-2",children:v?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("button",{"data-testid":"story-save-btn",onClick:async()=>{C(!0);try{await ev.put("/sources/".concat(o._sourceId,"/testimonial"),{testimonial_draft:D}),Tr.success("Draft saved"),b(!1),l&&await l()}catch(nN){var e,t;Tr.error(Zg(null===(e=nN.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Save failed")}finally{C(!1)}},disabled:j,className:"btn-primary h-10 !py-0 disabled:opacity-60",children:[(0,Te.jsx)(KD,{className:"w-4 h-4",strokeWidth:1.75}),j?"Saving...":"Save draft"]}),(0,Te.jsx)("button",{"data-testid":"story-cancel-edit-btn",onClick:()=>{b(!1),w(o.draftedStory.body)},className:"btn-secondary h-10 !py-0",children:"Cancel"})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("button",{"data-testid":"story-edit-btn",onClick:()=>{w(o.draftedStory.body),b(!0)},className:"btn-secondary h-10 !py-0",children:[(0,Te.jsx)(DF,{className:"w-4 h-4",strokeWidth:1.75}),"Edit draft"]}),(0,Te.jsxs)("button",{"data-testid":"story-regenerate-btn",onClick:()=>F(!0),disabled:j,className:"btn-secondary h-10 !py-0 disabled:opacity-60",children:[(0,Te.jsx)(Jj,{className:"w-4 h-4",strokeWidth:1.75}),j?"Working...":"Regenerate"]}),(0,Te.jsxs)("button",{"data-testid":"story-copy-btn",onClick:()=>{navigator.clipboard.writeText(o.draftedStory.body),Tr.success("Copied to clipboard")},className:"btn-secondary h-10 !py-0",children:[(0,Te.jsx)(Xj,{className:"w-4 h-4",strokeWidth:1.75}),"Copy"]}),(0,Te.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:["approved"!==E&&"anonymous_published"!==E&&(0,Te.jsxs)("button",{"data-testid":"story-publish-anonymous-btn",onClick:async()=>{C(!0);try{await ev.post("/sources/".concat(o._sourceId,"/publish-anonymous")),x("anonymous_published"),Tr.success("Published anonymously",{description:"The public testimonial now uses a verified placeholder until the customer approves their name."}),l&&await l()}catch(nN){var e,t;Tr.error(Zg(null===(e=nN.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not publish anonymously")}finally{C(!1)}},disabled:j,className:"btn-secondary h-10 !py-0 disabled:opacity-60",children:[(0,Te.jsx)(av,{className:"w-4 h-4",strokeWidth:1.75}),j?"Publishing...":"Publish anonymously"]}),(o.shareId||"approved"===E)&&(0,Te.jsxs)("button",{"data-testid":"story-view-approval-page",onClick:async()=>
2{if(o.shareId)window.open("/t/".concat(o.shareId),"_blank","noreferrer");else{C(!0);try{const e=(await ev.post("/sources/".concat(o._sourceId,"/send-approval"))).data;null!==e&&void 0!==e&&e.public_path&&window.open(e.public_path,"_blank","noreferrer"),l&&await l()}catch(nN){var e,t;Tr.error(Zg(null===(e=nN.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not open approval page")}finally{C(!1)}}},disabled:j,className:"btn-secondary h-10 !py-0 disabled:opacity-60",children:[(0,Te.jsx)(Qr,{className:"w-4 h-4",strokeWidth:1.75}),"approved"===E?"View approved testimonial":"View approval page"]}),"approved"!==E&&(0,Te.jsxs)("button",{"data-testid":"story-view-email-btn",onClick:()=>h(!0),className:"btn-primary h-10 !py-0",children:[(0,Te.jsx)(_E,{className:"w-4 h-4",strokeWidth:1.75}),"View draft email for customer outreach"]})]})]})})]})]}):(0,Te.jsxs)("div",{className:"rounded-2xl border border-dashed border-[#d9d1ee] bg-[#faf9ff] p-8 text-center order-2",children:[(0,Te.jsx)(KD,{className:"w-6 h-6 text-[#6d46c6] mx-auto",strokeWidth:1.5}),(0,Te.jsx)("div",{className:"mt-3 text-[14px] font-display font-semibold text-[#111827]",children:"No testimonial drafted yet"}),(0,Te.jsx)("p",{className:"mt-1 text-[12.5px] text-[#4b5563] max-w-[420px] mx-auto",children:"Ask Uplaud to draft an authentic customer perspective from this conversation. Nothing is published without customer approval."}),(0,Te.jsxs)("button",{"data-testid":"story-draft-btn",onClick:()=>F(!1),disabled:j,className:"btn-primary mt-4 h-11 !py-0 mx-auto disabled:opacity-60",children:[(0,Te.jsx)(la,{className:"w-4 h-4",strokeWidth:2}),j?"Drafting...":"Draft customer testimonial"]})]}),(0,Te.jsxs)("div",{className:"rounded-2xl border border-[#eeeaf6] bg-white p-6 order-3",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-5",children:[(0,Te.jsx)(la,{className:"w-4 h-4 text-[#6d46c6]",strokeWidth:1.75}),(0,Te.jsx)("div",{className:"text-[13px] font-display font-semibold text-[#111827]",children:"AI-extracted signals"}),(0,Te.jsx)("span",{className:"ml-auto text-[10.5px] font-mono text-[#9ca3af]",children:"From transcript \xb7 never auto-published"})]}),(0,Te.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:N.map(e=>{const t=o.signals[e.key]||[];if(0===t.length)return null;const n=e.icon;return(0,Te.jsxs)("div",{"data-testid":"signal-".concat(e.key),className:"rounded-xl border border-[#eeeaf6] bg-[#faf9ff] p-4",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:"".concat(e.accent,"18")},children:(0,Te.jsx)(n,{className:"w-3.5 h-3.5",strokeWidth:1.75,style:{color:e.accent}})}),(0,Te.jsx)("div",{className:"text-[12px] font-display font-semibold text-[#111827]",children:e.title}),(0,Te.jsx)("span",{className:"ml-auto text-[10px] font-mono text-[#9ca3af]",children:t.length})]}),(0,Te.jsx)("ul",{className:"mt-2.5 space-y-1.5 text-[12.5px] text-[#4b5563] leading-relaxed",children:t.map((t,n)=>(0,Te.jsxs)("li",{className:"flex gap-2",children:[(0,Te.jsx)("span",{className:"mt-1.5 w-1 h-1 rounded-full shrink-0",style:{backgroundColor:e.accent}}),(0,Te.jsx)("span",{children:t})]},n))})]},e.key)})})]}),o.draftedStory&&(0,Te.jsx)(MF,{open:d,onClose:()=>h(!1),onSent:()=>{x("awaiting_approval"),h(!1),Tr.success("Approval request sent to ".concat(o.person),{description:"They can review, edit and approve on their own page."}),l&&l()},conversation:o})]})}function NF(e){let t=e.story;const n=[{key:"draft",label:"Draft",done:!0},{key:"sent",label:"Sent for approval",done:!!t.approvalRequestedAt},{key:"approved",label:"Approved",done:!!t.approvedAt},{key:"amplified",label:"Amplified",done:"amplified"===t.status}];return(0,Te.jsx)("div",{className:"flex items-center gap-2",children:n.map((e,t)=>(0,Te.jsxs)("div",{className:"flex items-center flex-1",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-6 h-6 rounded-full flex items-center justify-center text-[10px] font-mono ".concat(e.done?"bg-[#6d46c6] text-white":"bg-[#eeeaf6] text-[#9ca3af]"),children:e.done?(0,Te.jsx)(Uc,{className:"w-3.5 h-3.5",strokeWidth:2}):t+1}),(0,Te.jsx)("div",{className:"text-[11.5px] whitespace-nowrap ".concat(e.done?"text-[#111827] font-medium":"text-[#9ca3af]"),children:e.label})]}),t<n.length-1&&(0,Te.jsx)("div",{className:"flex-1 h-px mx-2 ".concat(e.done&&n[t+1].done?"bg-[#6d46c6]":"bg-[#eeeaf6]")})]},e.key))})}function AF(e){let t=e.label,n=e.value,r=e.small;return(0,Te.jsxs)("div",{className:"rounded-xl bg-[#faf9ff] border border-[#eeeaf6] p-3",children:[(0,Te.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.14em] text-[#9ca3af]",children:t}),(0,Te.jsx)("div",{className:"mt-1 font-display font-semibold text-[#111827] leading-tight capitalize ".concat(r?"text-[13px]":"text-[18px]"),children:n})]})}function SF(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"")}function _F(e,t){const n=e.toLowerCase().trim().split(/\s+/),r=n[0]||"hello",a=n.slice(1).join(".")||"team";return"".concat(r,".").concat(a,"@").concat(SF(t),".com")}function BF(e){return e.split(" ")[0]||e}function TF(e){return(e||"").trim()}function RF(e){return TF(e)||"your company"}function PF(e){const t=TF(e).replace(/[^a-zA-Z0-9]+/g,"");return t?"@".concat(t):"@yourcompany"}function OF(e,t){const n=e.toLowerCase().trim().split(/\s+/)[0]||"hello";return"".concat(n,"@").concat(SF(TF(t))||"company",".com")}function LF(e){const t=e.draftedStory.body.split("\n")[0].replace(/^["\u201c]|["\u201d]$/g,""),n=(RF(e.businessName),PF(e.businessName));return"I don't usually post about vendor tools, but this one earned it.\n\n".concat(t,"\n\nIf you've been looking at ").concat(n,", this is the kind of experience that stood out to me. Happy to intro anyone curious.\n\n#CustomerStory #Growth #").concat(TF(e.businessName).replace(/[^a-zA-Z0-9]+/g,"")||"CustomerSuccess")}function IF(e){const t=BF(e.person),n=e.draftedStory.body,r=e.shareId?"".concat(window.location.origin,"/t/").concat(e.shareId):"",a=RF(e.businessName),s=PF(e.businessName);return"Hi ".concat(t,",\n\nThanks again for the demo \u2014 genuinely enjoyed hearing how you're thinking about your team's priorities at ").concat(e.company,".\n\nBased on our conversation, we drafted a short testimonial that captures what you shared. Nothing gets published without your green light.\n\nREVIEW, EDIT & APPROVE (takes 30 seconds):\n").concat(r,'\n\nTESTIMONIAL FOR YOUR APPROVAL\n"').concat(n,'"\n\u2014 ').concat(e.draftedStory.attribution,"\n\nOnce you approve on the page above, you'll get ready-to-post, ").concat(a,"-branded assets for LinkedIn, Instagram and X \u2014 share in a couple of taps.\n\nA couple of ways we'd love to say thanks:\n\nTIER 1 \u2014 Approve + refer\nApprove the testimonial and share ").concat(a," with at least one qualified peer in your network who could benefit \u2192 we'll credit your ").concat(a," account with $500 in rewards + waive next quarter's platform fee.\n\nTIER 2 \u2014 Post on LinkedIn tagging ").concat(s,"\nPost the testimonial on LinkedIn tagging ").concat(s," \u2192 additional $500 in rewards credit + a co-branded case study we'll publish with your team.\n\nReally appreciate you taking the time,\n").concat(e.aeName,"\n").concat(a)}function MF(e){let t=e.open,n=e.onClose,r=e.onSent,a=e.conversation;const s=qe((0,i.useState)(_F(a.person,a.company)),2),o=s[0],l=s[1],u=qe((0,i.useState)(OF(a.aeName,a.businessName)),2),c=u[0],d=u[1],h=qe((0,i.useState)("Thanks for the demo, ".concat(BF(a.person)," \u2014 a quick approval + a small thank-you")),2),f=h[0],p=h[1],m=qe((0,i.useState)(IF(a)),2),x=m[0],g=m[1],v=qe((0,i.useState)(LF(a)),2),b=v[0],y=v[1],D=qe((0,i.useState)(!0),2),w=D[0],k=D[1],j=qe((0,i.useState)(!1),2),C=j[0],E=j[1];if((0,i.useEffect)(()=>{t&&(l(_F(a.person,a.company)),d(OF(a.aeName,a.businessName)),p("Thanks for the demo, ".concat(BF(a.person)," \u2014 a quick approval + a small thank-you")),g(IF(a)),y(LF(a)),E(!1))},[t,a]),!t)return null;return(0,Te.jsxs)("div",{"data-testid":"approval-email-composer",className:"fixed inset-0 z-[100] flex",role:"dialog","aria-modal":"true",children:[(0,Te.jsx)("button",{"data-testid":"composer-overlay","aria-label":"Close composer",onClick:n,className:"flex-1 bg-black/50 backdrop-blur-[2px] animate-in fade-in-0 duration-200"}),(0,Te.jsxs)("div",{className:"relative w-full sm:w-[760px] max-w-full h-full bg-white shadow-2xl border-l border-[#eeeaf6] flex flex-col animate-in slide-in-from-right duration-300",children:[(0,Te.jsxs)("div",{className:"px-6 h-16 border-b border-[#eeeaf6] flex items-center gap-3 shrink-0",children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-lg bg-[#f5f3ff] text-[#6d46c6] flex items-center justify-center",children:(0,Te.jsx)(_E,{className:"w-4 h-4",strokeWidth:1.75})}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("div",{className:"text-[10.5px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:"Approval request"}),(0,Te.jsxs)("div",{className:"text-[14px] font-display font-semibold text-[#111827] leading-tight truncate",children:["To ",a.person," \xb7 ",a.company]})]}),(0,Te.jsx)("button",{"data-testid":"composer-close-btn",onClick:n,className:"ml-auto w-9 h-9 rounded-full hover:bg-[#faf9ff] flex items-center justify-center transition-colors",children:(0,Te.jsx)(Yr,{className:"w-4 h-4 text-[#4b5563]",strokeWidth:1.75})})]}),(0,Te.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,Te.jsxs)("div",{className:"divide-y divide-[#f2eefa]",children:[(0,Te.jsx)(zF,{label:"To",testId:"composer-to",value:o,onChange:l}),(0,Te.jsx)(zF,{label:"Cc",testId:"composer-cc",value:c,onChange:d}),(0,Te.jsx)(zF,{label:"Subject",testId:"composer-subject",value:f,onChange:p,bold:!0})]}),(0,Te.jsxs)("div",{className:"px-6 py-5",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Te.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#9ca3af]",children:"Message"}),(0,Te.jsxs)("button",{"data-testid":"composer-regenerate-btn",onClick:()=>{g(IF(a)),Tr.success("Email body regenerated")},className:"text-[11.5px] text-[#6d46c6] hover:text-[#261c4d] flex items-center gap-1",children:[(0,Te.jsx)(Jj,{className:"w-3 h-3",strokeWidth:1.75}),"Regenerate"]})]}),(0,Te.jsx)("textarea",{"data-testid":"composer-body",value:x,onChange:e=>g(e.target.value),className:"w-full min-h-[380px] rounded-xl border border-[#eeeaf6] bg-white px-4 py-3 text-[13.5px] leading-relaxed text-[#111827] font-sans focus:outline-none focus:border-[#d9d1ee] focus:ring-2 focus:ring-[#6d46c6]/10 resize-y",spellCheck:!1}),(0,Te.jsxs)("div",{className:"mt-4 grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,Te.jsx)(UF,{testId:"tier-1",icon:wF,tier:"Tier 1",title:"Ap
2prove + refer 1 peer",reward:"$500 rewards credit + fee waiver",accent:"#6d46c6",bg:"#f5f3ff"}),(0,Te.jsx)(UF,{testId:"tier-2",icon:Vv,tier:"Tier 2",title:"LinkedIn post tagging ".concat(PF(a.businessName)),reward:"+$500 credit + co-branded case study",accent:"#0f9b7c",bg:"#ecfdf7"})]})]}),(0,Te.jsxs)("div",{className:"px-6 pb-8",children:[(0,Te.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#9ca3af] mb-3 flex items-center gap-2",children:[(0,Te.jsx)(yF,{className:"w-3 h-3",strokeWidth:2}),"1 attachment"]}),(0,Te.jsxs)("div",{"data-testid":"composer-attachment",className:"rounded-xl border border-[#eeeaf6] bg-white overflow-hidden",children:[(0,Te.jsxs)("button",{onClick:()=>k(e=>!e),"data-testid":"composer-attachment-toggle",className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-[#faf9ff] transition-colors text-left",children:[(0,Te.jsx)("div",{className:"w-9 h-9 rounded-lg bg-[#0a66c2]/10 text-[#0a66c2] flex items-center justify-center shrink-0",children:(0,Te.jsx)(Vv,{className:"w-4 h-4",strokeWidth:2})}),(0,Te.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Te.jsxs)("div",{className:"text-[13px] font-medium text-[#111827] truncate",children:["LinkedIn post \u2014 ",BF(a.person),"-testimonial.txt"]}),(0,Te.jsxs)("div",{className:"text-[11px] font-mono text-[#9ca3af]",children:["Ready-to-post draft \xb7 ",b.length," chars \xb7 tagged ",PF(a.businessName)]})]}),(0,Te.jsx)("span",{className:"text-[11px] font-mono text-[#6d46c6]",children:w?"Hide":"Preview"})]}),w&&(0,Te.jsxs)("div",{className:"border-t border-[#eeeaf6] p-4 bg-[#faf9ff]",children:[(0,Te.jsx)("textarea",{"data-testid":"composer-linkedin-draft",value:b,onChange:e=>y(e.target.value),className:"w-full min-h-[150px] rounded-lg border border-[#eeeaf6] bg-white px-3 py-2.5 text-[12.5px] leading-relaxed text-[#111827] focus:outline-none focus:border-[#d9d1ee] resize-y",spellCheck:!1}),(0,Te.jsxs)("div",{className:"mt-2 flex items-center justify-between text-[11px] font-mono text-[#9ca3af]",children:[(0,Te.jsx)("span",{children:"Customer edits inline before posting"}),(0,Te.jsxs)("button",{"data-testid":"composer-copy-linkedin",onClick:()=>{navigator.clipboard.writeText(b),Tr.success("LinkedIn draft copied")},className:"text-[#6d46c6] hover:text-[#261c4d] flex items-center gap-1",children:[(0,Te.jsx)(Xj,{className:"w-3 h-3",strokeWidth:2}),"Copy"]})]})]})]})]})]}),(0,Te.jsxs)("div",{className:"px-6 h-[76px] border-t border-[#eeeaf6] bg-white flex items-center gap-3 shrink-0",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-[11px] font-mono text-[#9ca3af]",children:[(0,Te.jsx)(Pv,{className:"w-3 h-3 text-[#0f9b7c]",strokeWidth:2}),"One-click approve link \xb7 expires in 7 days"]}),(0,Te.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,Te.jsx)("button",{"data-testid":"composer-cancel-btn",onClick:n,className:"btn-secondary h-10 !py-0",children:"Cancel"}),(0,Te.jsxs)("button",{"data-testid":"composer-send-btn",onClick:()=>{E(!0),ev.post("/sources/".concat(a._sourceId,"/send-approval")).then(()=>r()).catch(e=>{var t,n;E(!1),Tr.error(Zg(null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not send")})},disabled:C,className:"btn-primary h-10 !py-0 disabled:opacity-60 disabled:cursor-not-allowed",children:[(0,Te.jsx)(_E,{className:"w-4 h-4",strokeWidth:1.75}),C?"Sending...":"Send for approval"]})]})]})]})]})}function zF(e){let t=e.label,n=e.testId,r=e.value,a=e.onChange,s=e.bold;return(0,Te.jsxs)("div",{className:"grid grid-cols-[64px_1fr] items-center gap-3 px-6 py-3",children:[(0,Te.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-[0.14em] text-[#9ca3af]",children:t}),(0,Te.jsx)("input",{"data-testid":n,value:r,onChange:e=>a(e.target.value),className:"w-full bg-transparent text-[13.5px] text-[#111827] focus:outline-none ".concat(s?"font-semibold":"")})]})}function UF(e){let t=e.testId,n=e.icon,r=e.tier,a=e.title,s=e.reward,i=e.accent,o=e.bg;return(0,Te.jsxs)("div",{"data-testid":t,className:"rounded-xl border p-4",style:{borderColor:"".concat(i,"30"),backgroundColor:o},children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{backgroundColor:"".concat(i,"22"),color:i},children:(0,Te.jsx)(n,{className:"w-3.5 h-3.5",strokeWidth:2})}),(0,Te.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-[0.16em]",style:{color:i},children:r})]}),(0,Te.jsx)("div",{className:"mt-2 text-[12.5px] font-medium text-[#111827] leading-tight",children:a}),(0,Te.jsx)("div",{className:"mt-1 text-[11.5px] text-[#4b5563] leading-snug",children:s})]})}const qF=Kr("at-sign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]),WF="#6d46c6",HF="#261c4d",VF="#5eead4";function GF(e){let t=e.shareId,n=e.brand,r=void 0===n?"PayRewards":n;const a=qe((0,i.useState)([{name:"",contact:"",company:""}]),2),s=a[0],o=a[1],l=qe((0,i.useState)(!1),2),u=l[0],c=l[1],d=qe((0,i.useState)(0),2),h=d[0],p=d[1],m=(e,t,n
2)=>o(r=>r.map((r,a)=>a===e?f(f({},r),{},{[t]:n}):r));return(0,Te.jsxs)("section",{"data-testid":"refer-friends",className:"rounded-2xl overflow-hidden border border-[#e6dff5] shadow-sm",children:[(0,Te.jsxs)("div",{className:"p-6 sm:p-7",style:{background:"linear-gradient(120deg, ".concat(HF,", ").concat(WF,")")},children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"inline-flex items-center justify-center w-8 h-8 rounded-xl",style:{background:VF,color:HF},children:(0,Te.jsx)(wF,{className:"w-4 h-4"})}),(0,Te.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-[0.2em] text-white/70",children:"Help a friend"})]}),(0,Te.jsxs)("h2",{className:"mt-3 font-display text-[22px] sm:text-[26px] font-bold text-white leading-tight",children:["Know someone who'd find ",r," useful?"]}),(0,Te.jsxs)("p",{className:"mt-2 text-[13.5px] text-white/70 max-w-[560px] leading-relaxed",children:["Introduce a few people from your network. The ",r," team will reach out and share your testimonial with them. Their details are kept private and secure \u2014 never posted publicly."]})]}),(0,Te.jsx)("div",{className:"bg-white p-6 sm:p-7",children:h>0?(0,Te.jsxs)("div",{"data-testid":"refer-success",className:"text-center py-6",children:[(0,Te.jsx)("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full",style:{background:"#eafaf4",color:"#0f9b7c"},children:(0,Te.jsx)(Uc,{className:"w-6 h-6"})}),(0,Te.jsxs)("h3",{className:"mt-4 font-display text-[19px] font-semibold text-[#261c4d]",children:["Thank you! We'll reach out to ",h," ",1===h?"friend":"friends","."]}),(0,Te.jsx)("p",{className:"mt-1.5 text-[13px] text-[#6b6480]",children:"We'll be warm, helpful, and never spammy \u2014 and their info stays secure."}),(0,Te.jsxs)("button",{"data-testid":"refer-more-btn",onClick:()=>{o([{name:"",contact:"",company:""}]),p(0),qC("refer_more_friends_click",{page:"testimonial",shareId:t})},className:"mt-5 inline-flex items-center gap-2 h-10 px-5 rounded-full text-[13px] font-medium border border-[#e2d9f5] text-[#261c4d] hover:bg-[#f5f3ff]",children:[(0,Te.jsx)(Dg,{className:"w-4 h-4"})," Refer more friends"]})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("div",{className:"space-y-3",children:s.map((e,n)=>(0,Te.jsxs)("div",{"data-testid":"refer-row-".concat(n),className:"rounded-xl border border-[#eee7f7] bg-[#faf9ff] p-3 space-y-2.5",children:[(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2.5",children:[(0,Te.jsxs)("div",{className:"relative flex-1",children:[(0,Te.jsx)(oF,{className:"w-4 h-4 absolute left-3.5 top-1/2 -translate-y-1/2 text-[#b1a9c6]"}),(0,Te.jsx)("input",{"data-testid":"refer-name-".concat(n),value:e.name,onChange:e=>m(n,"name",e.target.value),placeholder:"Friend's name",className:"w-full h-12 pl-10 pr-3 rounded-xl bg-white border border-[#eee7f7] text-[14px] text-[#261c4d] placeholder:text-[#b1a9c6] focus:outline-none focus:border-[#6d46c6]"})]}),(0,Te.jsxs)("div",{className:"relative flex-1",children:[(0,Te.jsx)(qF,{className:"w-4 h-4 absolute left-3.5 top-1/2 -translate-y-1/2 text-[#b1a9c6]"}),(0,Te.jsx)("input",{"data-testid":"refer-contact-".concat(n),value:e.contact,onChange:e=>m(n,"contact",e.target.value),placeholder:"Email, phone, or LinkedIn",className:"w-full h-12 pl-10 pr-3 rounded-xl bg-white border border-[#eee7f7] text-[14px] text-[#261c4d] placeholder:text-[#b1a9c6] focus:outline-none focus:border-[#6d46c6]"})]})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,Te.jsxs)("div",{className:"relative flex-1",children:[(0,Te.jsx)(gE,{className:"w-4 h-4 absolute left-3.5 top-1/2 -translate-y-1/2 text-[#b1a9c6]"}),(0,Te.jsx)("input",{"data-testid":"refer-company-".concat(n),value:e.company,onChange:e=>m(n,"company",e.target.value),placeholder:"Company name *",required:!0,className:"w-full h-12 pl-10 pr-3 rounded-xl bg-white border border-[#eee7f7] text-[14px] text-[#261c4d] placeholder:text-[#b1a9c6] focus:outline-none focus:border-[#6d46c6]"})]}),(0,Te.jsx)("button",{"data-testid":"refer-remove-".concat(n),onClick:()=>(e=>{o(t=>t.length>
21?t.filter((t,n)=>n!==e):t),qC("refer_remove_row_click",{page:"testimonial",shareId:t})})(n),disabled:1===s.length,className:"h-12 w-12 shrink-0 rounded-xl border border-[#eee7f7] text-[#b1a9c6] hover:text-[#6d46c6] hover:bg-[#f5f3ff] disabled:opacity-40 flex items-center justify-center","aria-label":"Remove",children:(0,Te.jsx)(Yr,{className:"w-4 h-4"})})]})]},n))}),(0,Te.jsxs)("button",{"data-testid":"refer-add-btn",onClick:()=>{o(e=>[...e,{name:"",contact:"",company:""}]),qC("refer_add_row_click",{page:"testimonial",shareId:t})},className:"mt-3 inline-flex items-center gap-1.5 text-[13px] font-medium",style:{color:WF},children:[(0,Te.jsx)(Dg,{className:"w-4 h-4"})," Add another friend"]}),(0,Te.jsxs)("div",{className:"mt-6 flex flex-col sm:flex-row sm:items-center gap-4 sm:justify-between",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-[12px] text-[#6b6480]",children:[(0,Te.jsx)(av,{className:"w-4 h-4",style:{color:"#0f9b7c"}}),"Their information is kept secure and never shared publicly."]}),(0,Te.jsxs)("button",{"data-testid":"refer-submit-btn",onClick:async()=>{const e=s.filter(e=>e.name.trim()&&e.contact.trim()&&e.company.trim());if(e.length){c(!0),qC("refer_submit_click",{page:"testimonial",shareId:t});try{var n;const r=await ev.post("/public/testimonial/".concat(t,"/referrals"),{referrals:e});p((null===(n=r.data)||void 0===n?void 0:n.count)||e.length),Tr.success("Thank you for the intro!")}catch(nN){var r,a;Tr.error((null===(r=nN.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.detail)||"Could not submit referrals")}finally{c(!1)}}else Tr.error("Add a friend's name, contact, and company name")},disabled:u,className:"inline-flex items-center justify-center gap-2 h-12 px-6 rounded-full font-semibold text-[14px] disabled:opacity-60 transition-transform hover:-translate-y-[1px]",style:{backgroundColor:VF,color:HF},children:[u?(0,Te.jsx)(qc,{className:"w-4 h-4 animate-spin"}):(0,Te.jsx)(wF,{className:"w-4 h-4"}),"Refer & help a friend"]})]})]})})]})}const $F="#0B1F3A",KF="#E8B84B",QF="#6d46c6";function YF(e){let t=e.light,n=e.brandName,r=void 0===n?"PayRewards":n;const a=r?r.charAt(0).toUpperCase():"P";return(0,Te.jsxs)("div",{"data-testid":"payrewards-logo",className:"inline-flex items-center gap-2 font-display font-bold tracking-tight",children:[(0,Te.jsx)("div",{className:"w-7 h-7 rounded-lg bg-[#3D5FCB] text-white flex items-center justify-center font-bold text-[13px] shrink-0 shadow-sm",children:a}),(0,Te.jsx)("span",{className:t?"text-white":"text-[#0B1F3A] font-display font-bold text-[16px] tracking-tight",children:r})]})}function JF(){const e=rn().shareId,t=qe((0,i.useState)(null),2),n=t[0],r=t[1],a=qe((0,i.useState)(!0),2),s=a[0],o=a[1],l=qe((0,i.useState)(!1),2),u=l[0],c=l[1],d=qe((0,i.useState)(!1),2),h=d[0],f=d[1],p=qe((0,i.useState)(""),2),m=p[0],x=p[1],g=qe((0,i.useState)(!1),2),v=g[0],b=g[1];(0,i.useEffect)(()=>{ev.get("/public/testimonial/".concat(e)).then(e=>{r(e.data),x(e.data.testimonial)}).catch(()=>c(!0)).finally(()=>o(!1))},[e]);const y=n?[n.speaker_name,n.speaker_role,n.company_name].filter(Boolean).join(", "):"",D="approved"===(null===n||void 0===n?void 0:n.status),w="undefined"!==typeof window?window.location.href:"";return s?(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center",style:{backgroundColor:$F},children:(0,Te.jsx)(qc,{className:"w-8 h-8 animate-spin",style:{color:KF}})}):u||!n?(0,Te.jsxs)("div",{className:"min-h-screen flex flex-col items-center justify-center text-center px-6",style:{backgroundColor:$F},children:[(0,Te.jsx)(YF,{light:!0,brandName:"Uplaud"}),(0,Te.jsx)("p",{className:"mt-6 text-white/70",children:"This testimonial link is invalid or has expired."})]}):(0,Te.jsxs)("div",{className:"min-h-screen bg-[#f7f6f2]","data-testid":"testimonial-page",children:[(0,Te.jsxs)("header",{className:"h-16 border-b border-[#eae6dc] bg-white flex items-center px-6 sm:px-10",children:[(0,Te.jsx)(YF,{brandName:(null===n||void 0===n?void 0:n.brand)||"PayRewards"}),(0,Te.jsxs)("span",{className:"ml-auto text-[11px] font-mono text-[#9a9384] flex items-center gap-1.5",children:[(0,Te.jsx)(av,{className:"w-3.5 h-3.5",style:{color:K
2F}}),"Secure approval \xb7 powered by Uplaud"]})]}),(0,Te.jsxs)("main",{className:"max-w-[900px] mx-auto px-6 sm:px-10 py-12",children:[(0,Te.jsxs)("div",{className:"text-center",children:[(0,Te.jsxs)("span",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full text-[11px] font-mono uppercase tracking-[0.18em]",style:{backgroundColor:"#fdf6e6",color:"#9a7b25"},children:[(0,Te.jsx)(la,{className:"w-3.5 h-3.5",style:{color:KF}}),D?"Approved & ready to share":"A quick approval, on you"]}),(0,Te.jsx)("h1",{className:"mt-5 font-display text-[30px] sm:text-[38px] font-bold tracking-tight text-[#0B1F3A] leading-[1.1]",children:D?"Thank you \u2014 let's make it fly.":"".concat(n.speaker_name?n.speaker_name.split(" ")[0]+",":"Hi,"," we drafted this from our chat.")}),(0,Te.jsx)("p",{className:"mt-3 text-[14px] text-[#5b5445] max-w-[560px] mx-auto leading-relaxed",children:D?"Your testimonial is approved. Grab the branded assets below and share them in a couple of taps.":"These are your own words from our conversation \u2014 nothing added, nothing published without your OK. Tweak anything that doesn't sound like you, then approve."})]}),(0,Te.jsxs)("div",{className:"mt-10 rounded-2xl border border-[#eae6dc] bg-white p-7 sm:p-9 shadow-sm relative overflow-hidden",children:[(0,Te.jsx)("div",{"aria-hidden":!0,className:"absolute -top-16 -right-12 w-[260px] h-[260px] rounded-full pointer-events-none",style:{background:"radial-gradient(circle, rgba(232,184,75,0.16), transparent 60%)"}}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Te.jsx)(AD,{className:"w-4 h-4",style:{color:QF}}),(0,Te.jsx)("span",{className:"text-[11px] font-mono uppercase tracking-[0.18em] text-[#9a93b0]",children:"Your testimonial"})]}),(0,Te.jsx)("div",{className:"rounded-xl bg-[#faf9ff] border border-[#eee7f7] p-5",children:h?(0,Te.jsx)("textarea",{"data-testid":"public-edit-textarea",value:m,onChange:e=>x(e.target.value),rows:6,className:"w-full rounded-lg border border-[#eee7f7] bg-white px-3.5 py-2.5 text-[15px] leading-relaxed text-[#2b2340] focus:outline-none focus:border-[#6d46c6] resize-y"}):(0,Te.jsxs)("p",{"data-testid":"public-testimonial-text",className:"text-[15px] sm:text-[16px] leading-relaxed text-[#2b2340] whitespace-pre-line",children:["\u201c",n.testimonial,"\u201d"]})}),(0,Te.jsxs)("div",{className:"mt-3 text-[11.5px] font-mono",style:{color:QF},children:["\u2014 ",y]}),!D&&(0,Te.jsx)("div",{className:"mt-7 flex flex-wrap items-center gap-3",children:h?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("button",{"data-testid":"public-save-btn",onClick:async()=>{b(!0);try{const t=await ev.put("/public/testimonial/".concat(e),{testimonial_draft:m});r(t.data),f(!1),Tr.success("Your edits were saved")}catch(nN){var t,n;Tr.error(Zg(null===(t=nN.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not save")}finally{b(!1)}},disabled:v,className:"inline-flex items-center gap-2 h-11 px-5 rounded-full font-semibold text-[14px] text-white disabled:opacity-60 transition-transform hover:-translate-y-[1px]",style:{backgroundColor:$F},children:[v?(0,Te.jsx)(qc,{className:"w-4 h-4 animate-spin"}):(0,Te.jsx)(Uc,{className:"w-4 h-4"}),"Save edits"]}),(0,Te.jsx)("button",{"data-testid":"public-cancel-btn",onClick:()=>{x(n.testimonial),f(!1),qC("cancel_edit_click",{page:"testimonial",shareId:e})},className:"inline-flex items-center gap-2 h-11 px-5 rounded-full font-medium text-[14px] text-[#5b5445] border border-[#eae6dc] hover:bg-[#faf9f5]",children:"Cancel"})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("button",{"data-testid":"public-approve-btn",onClick:async()=>{b(!0);try{const t=await ev.post("/public/testimonial/".concat(e,"/approve"));r(t.data),Tr.success("Approved \u2014 thank you! Your share assets are ready.")}catch(nN){var t,n;Tr.error(Zg(null===(t=nN.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not approve")}finally{b(!1)}},disabled:v,className:"inline-flex items-center gap-2 h-11 px-6 rounded-full font-semibold text-[14px] disabled:opacity-60 transition-transform hover:-translate-y-[1px]",style:{backgroundColor:KF,color:$F},children:[v?(0,Te.jsx)(qc,{className:"w-4 h-4 animate-spin"}):(0,Te.jsx)(Uc,{className:"w-4 h-4"}),"Approve & publish"]}),(0,Te.jsxs)("button",{"data-testid":"public-edit-btn",onClick:()=>{f(!0),qC("edit_wording_click",{page:"testimonial",shareId:e})},className:"inline-flex items-center gap-2 h-11 px-5 rounded-full font-medium text-[14px] text-[#0B1F3A] border border-[#dcd6c8] hover:bg-[#faf9f5]",children:[(0,Te.jsx)(DF,{className:"w-4 h-4"}),"Edit wording"]})]})}),D&&(0,Te.jsxs)("div",{className:"mt-6 inline-flex items-center gap-2 text-[13px] font-medium",style:{color:"#0f9b7c"},children:[(0,Te.jsx)(Uc,{className:"w-4 h-4"}),"Approved",n.approved_at?" on ".concat(new Date(n.approved_at).toLocaleDateString()):""]})]}),D&&(0,Te.jsxs)("div",{className:"mt-14 space-y-14",children:[(0,Te.jsxs)("div",{className:"text-center",children:[(0,Te.jsxs)("span",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full text-[11px] font-mono uppercase tracking-[0.18em]",style:{background:"#f0ebfb",color:"#6d46c6"}
2,children:[(0,Te.jsx)(wF,{className:"w-3.5 h-3.5"}),"Reward unlocked"]}),(0,Te.jsx)("h2",{className:"mt-4 font-display text-[26px] sm:text-[32px] font-bold leading-tight",style:{color:"#261c4d"},children:"Share your testimonial in one of the following ways to earn your reward!"}),(0,Te.jsx)("p",{className:"mt-2 text-[14px] text-[#6b6480] max-w-[600px] mx-auto leading-relaxed",children:"Pick whatever feels right \u2014 refer a friend who'd benefit, or post it to your own network. Every share helps, and unlocks your reward."})]}),(0,Te.jsx)(GF,{shareId:e,brand:n.brand||"PayRewards"}),(0,Te.jsx)(uE,{quote:n.testimonial,attribution:y,company:n.brand||"PayRewards",pov:"customer",imageChannels:["instagram"],publicUrl:w,shareId:e})]})]})]})}const XF=function(){return(0,Te.jsxs)("div",{className:"App",children:[(0,Te.jsx)(lr,{children:(0,Te.jsxs)(Nn,{children:[(0,Te.jsx)(En,{path:"/",element:(0,Te.jsx)(Kc,{})}),(0,Te.jsx)(En,{path:"/finance",element:(0,Te.jsx)(Qc,{})}),(0,Te.jsx)(En,{path:"/blog",element:(0,Te.jsx)(jo,{})}),(0,Te.jsx)(En,{path:"/blog/:slug",element:(0,Te.jsx)(bg,{})}),(0,Te.jsx)(En,{path:"/admin/blog",element:(0,Te.jsx)(_g,{})}),(0,Te.jsx)(En,{path:"/business/public/:slug",element:(0,Te.jsx)(Mv,{})}),(0,Te.jsx)(En,{path:"/business/public/reviewer/:reviewerSlug",element:(0,Te.jsx)(Qv,{})}),(0,Te.jsx)(En,{path:"/business/public/:slug/reviewer/:reviewerSlug",element:(0,Te.jsx)(Qv,{})}),(0,Te.jsx)(En,{path:"/business/public/:slug/blog/:csSlug",element:(0,Te.jsx)(Uv,{})}),(0,Te.jsx)(En,{path:"/business",element:(0,Te.jsx)(vD,{})}),(0,Te.jsx)(En,{path:"/business/reset-password",element:(0,Te.jsx)(yD,{})}),(0,Te.jsx)(En,{path:"/t/:shareId",element:(0,Te.jsx)(JF,{})}),(0,Te.jsxs)(En,{element:(0,Te.jsx)(ED,{}),children:[(0,Te.jsx)(En,{path:"/business/import",element:(0,Te.jsx)(Oj,{})}),(0,Te.jsx)(En,{path:"/business/interactions",element:(0,Te.jsx)(pF,{})}),(0,Te.jsx)(En,{path:"/business/conversations",element:(0,Te.jsx)(EF,{})}),(0,Te.jsx)(En,{path:"/business/reviews",element:(0,Te.jsx)(Kj,{})}),(0,Te.jsx)(En,{path:"/business/social",element:(0,Te.jsx)(hE,{})}),(0,Te.jsx)(En,{path:"/business/content",element:(0,Te.jsx)(rF,{})}),(0,Te.jsx)(En,{path:"/business/referrals",element:(0,Te.jsx)(CE,{})}),(0,Te.jsx)(En,{path:"/business/reddit",element:(0,Te.jsx)(RE,{})}),(0,Te.jsx)(En,{path:"/business/insights",element:(0,Te.jsx)(jn,{to:"/business/referrals",replace:!0})}),(0,Te.jsx)(En,{path:"/business/roi-simulator",element:(0,Te.jsx)(UE,{})}),(0,Te.jsx)(En,{path:"/business/settings",element:(0,Te.jsx)(uF,{})})]})]})}),(0,Te.jsx)(zr,{position:"bottom-right",theme:"light"})]})},ZF=/ResizeObserver loop (limit exceeded|completed with undelivered notifications)/;window.addEventListener("error",e=>{e.message&&ZF.test(e.message)&&(e.stopImmediatePropagation(),e.preventDefault())}),window.addEventListener("unhandledrejection",e=>{var t;const n=(null===e||void 0===e||null===(t=e.reason)||void 0===t?void 0:t.message)||String((null===e||void 0===e?void 0:e.reason)||"");ZF.test(n)&&(e.stopImmediatePropagation(),e.preventDefault())});const eN=new Be({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}});l.createRoot(document.getElementById("root")).render((0,Te.jsx)(i.StrictMode,{children:(0,Te.jsx)(Pe,{client:eN,children:(0,Te.jsx)(XF,{})})}))},630(e,t,n){"use strict";n.r(t);var r=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("unable to locate global object")}();const a=r.fetch,s=r.fetch.bind(r),i=r.Headers,o=r.Request,l=r.Response;n.d(t,["Headers",0,i,"Request",0,o,"Response",0,l,"default",0,s,"fetch",0,a])},106(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,u="";function c(e){return e?e.replace(l,u):u}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 f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function p(){var e={line:d,column:h};return function(t){return t.position=new m(e),v(),t}}
2function m(e){this.start=e,this.end={line:d,column:h},this.source=l.source}function x(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 f(r),e=e.slice(r.length),n}}function v(){g(r)}function b(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return x("End of comment missing");var r=e.slice(2,n-2);return h+=2,f(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function D(){var e=p(),n=g(a);if(n){if(y(),!g(s))return x("property missing ':'");var r=g(i),l=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return g(o),l}}return m.prototype.content=e,v(),function(){var e,t=[];for(b(t);e=D();)!1!==e&&(t.push(e),b(t));return t}()}},4(e,t,n){"use strict";var r=n(853),a=n(43),s=n(950);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)}var l=Symbol.for("react.element"),u=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),m=Symbol.for("react.consumer"),x=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var w=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var k=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function C(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=j&&e[j]||e["@@iterator"])?e:null}var E=Symbol.for("react.client.reference");function F(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===E?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case d:return"Fragment";case c:return"Portal";case f:return"Profiler";case h:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case x:return(e.displayName||"Context")+".Provider";case m:return(e._context.displayName||"Context")+".Consumer";case g:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case y:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return F(e(t))}catch(n){}}return null}var N,A,S=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=Object.assign;function B(e){if(void 0===N)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||"",A=-1<n.stack.indexOf("\n    at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+N+e+A}var T=!1;function R(e,t){if(!e||T)return"";T=!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(a){var r=a}Reflect.construct(e,[],n)}
vendor: 5,106 bytes, line 2
2else{try{n.call()}catch(s){r=s}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"===typeof n.catch&&n.catch(function(){})}}catch(o){if(o&&r&&"string"===typeof o.stack)return[o.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"),u=o.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===u.length)for(r=l.length-1,a=u.length-1;1<=r&&0<=a&&l[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==u[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==u[a]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=a);break}}}finally{T=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?B(n):""}function P(e){switch(e.tag){case 26:case 27:case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 15:return e=R(e.type,!1);case 11:return e=R(e.type.render,!1);case 1:return e=R(e.type,!0);default:return""}}function O(e){try{var t="";do{t+=P(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function L(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function I(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 M(e){if(L(e)!==e)throw Error(i(188))}function z(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=z(e)))return t;e=e.sibling}return null}var U=Array.isArray,q=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},H=[],V=-1;function G(e){return{current:e}}function $(e){0>V||(e.current=H[V],H[V]=null,V--)}function K(e,t){V++,H[V]=e.current,e.current=t}var Q=G(null),Y=G(null),J=G(null),X=G(null);function Z(e,t){switch(K(J,t),K(Y,e),K(Q,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Yc(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Jc(e=Yc(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}$(Q),K(Q,t)}function ee(){$(Q),$(Y),$(J)}function te(e){null!==e.memoizedState&&K(X,e);var t=Q.current,n=Jc(t,e.type);t!==n&&(K(Y,e),K(Q,n))}function ne(e){Y.current===e&&($(Q),$(Y)),X.current===e&&($(X),Od._currentValue=W)}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,ue=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,he=r.unstable_NormalPriority,fe=r.unstable_LowPriority,pe=r.unstable_IdlePriority,me=r.log,xe=r.unstable_setDisableYieldValue,ge=null,ve=null;function be(e){if("function"===typeof me&&xe(e),ve&&"function"===typeof ve.setStrictMode)try{ve.setStrictMode(ge,e)}catch(t){}}var ye=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(De(e)/we|0)|0},De=Math.log,we=Math.LN2;var ke=128,je=4194304;function Ce(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: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 4194176&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 Ee(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,s=e.pingedLanes,i=e.warmLanes;e=0!==e.finishedLanes;var o=134217727&n;return 0!==o?0!==(n=o&~a)?r=Ce(n):0!==(s&=o)?r=Ce(s):e||0!==(i=o&~i)&&(r=Ce(i)):0!==(o=n&~a)?r=Ce(o):0!==s?r=Ce(s):e||0!==(i=n&~i)&&(r=Ce(i)),0===r?0:0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(i=t&-t)||32===a&&0!==(4194176&i))?t:r}function Fe(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ne(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64: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=ke;return 0===(4194176&(ke<<=1))&&(ke=128),e}function Se(){var e=je;return 0===(62914560&(je<<=1))&&(je=4194304),e}function _e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
2function Be(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Te(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ye(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function Re(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ye(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function Pe(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Oe(){var e=q.p;return 0!==e?e:void 0===(e=window.event)?32:Jd(e.type)}var Le=Math.random().toString(36).slice(2),Ie="__reactFiber$"+Le,Me="__reactProps$"+Le,ze="__reactContainer$"+Le,Ue="__reactEvents$"+Le,qe="__reactListeners$"+Le,We="__reactHandles$"+Le,He="__reactResources$"+Le,Ve="__reactMarker$"+Le;function Ge(e){delete e[Ie],delete e[Me],delete e[Ue],delete e[qe],delete e[We]}function $e(e){var t=e[Ie];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ze]||n[Ie]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ld(e);null!==e;){if(n=e[Ie])return n;e=ld(e)}return t}n=(e=n).parentNode}return null}function Ke(e){if(e=e[Ie]||e[ze]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function Ye(e){var t=e[He];return t||(t=e[He]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[Ve]=!0}var Xe=new Set,Ze={};function et(e,t){tt(e,t),tt(e+"Capture",t)}function tt(e,t){for(Ze[e]=t,e=0;e<t.length;e++)Xe.add(t[e])}var nt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),rt=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]*$"),at={},st={};function it(e,t,n){if(a=t,re.call(st,a)||!re.call(at,a)&&(rt.test(a)?st[a]=!0:(at[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 ot(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 lt(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 ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ct(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function dt(e){e._valueTracker||(e._valueTracker=function(e){var t=ct(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ct(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ft(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var pt=/[\n"\\]/g;function mt(e){return e.replace(pt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function xt(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=""+ut(t)):e.value!==""+ut(t)&&(e.value=""+ut(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?vt(e,i,ut(t)):null!=n?vt(e,i,ut(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=""+ut(o):e.removeAttribute("name")}function gt(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||void 0!==t&&null!==t))return;n=null!=n?""+ut(n):"",t=null!=t?""+ut(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)}function vt(e,t,n){"number"===t&&ft(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function bt(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=""+ut(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 yt(e,t,n){null==t||((t=""+ut(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ut(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Dt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(i(92));if(U(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ut(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function wt(e,t){if(t){var n=e.firstChild;
2if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var kt=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||kt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ct(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 Et(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 Ft=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"]]),Nt=/^[\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 At(e){return Nt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var St=null;function _t(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Bt=null,Tt=null;function Rt(e){var t=Ke(e);if(t&&(e=t.stateNode)){var n=e[Me]||null;e:switch(e=t.stateNode,t.type){case"input":if(xt(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="'+mt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Me]||null;if(!a)throw Error(i(90));xt(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&&ht(r)}break e;case"textarea":yt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&bt(e,!!n.multiple,t,!1)}}}var Pt=!1;function Ot(e,t,n){if(Pt)return e(t,n);Pt=!0;try{return e(t)}finally{if(Pt=!1,(null!==Bt||null!==Tt)&&(Iu(),Bt&&(t=Bt,e=Tt,Tt=Bt=null,Rt(t),e)))for(t=0;t<e.length;t++)Rt(e[t])}}function Lt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Me]||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 It=!1;if(nt)try{var Mt={};Object.defineProperty(Mt,"passive",{get:function(){It=!0}}),window.addEventListener("test",Mt,Mt),window.removeEventListener("test",Mt,Mt)}catch(Dh){It=!1}var zt=null,Ut=null,qt=null;function Wt(){if(qt)return qt;var e,t,n=Ut,r=n.length,a="value"in zt?zt.value:zt.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 qt=a.slice(e,1<t?1-t:void 0)}function Ht(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 Vt(){return!0}function Gt(){return!1}function $t(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)?Vt:Gt,this.isPropagationStopped=Gt,this}return _(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=Vt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vt)},persist:function(){},isPersistent:Vt}),t}var Kt,Qt,Yt,Jt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xt=$t(Jt),Zt=_({},Jt,{view:0,detail:0}),en=$t(Zt),tn=_({},Zt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yt&&(Yt&&"mousemove"===e.type?(Kt=e.screenX-Yt.screenX,Qt=e.screenY-Yt.screenY):Qt=Kt=0,Yt=e),Kt)},movementY:function(e){return"movementY"in e?e.movementY:Qt}}),nn=$t(tn),rn=$t(_({},tn,{dataTransfer:0})),an=$t(_({},Zt,{relatedTarget:0})),sn=$t(_({},Jt,{animationName:0,elapsedTime:0,pseudoElement:0})),on=$t(_({},Jt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ln=$t(_({},Jt,{data:0})),un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={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"},dn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=dn[e])&&!!t[e]}function fn(){return hn}var pn=$t(_({},Zt,{key:function(e){if(e.key){var t=un[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ht(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"ke
2yup"===e.type?cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fn,charCode:function(e){return"keypress"===e.type?Ht(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ht(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),mn=$t(_({},tn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=$t(_({},Zt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fn})),gn=$t(_({},Jt,{propertyName:0,elapsedTime:0,pseudoElement:0})),vn=$t(_({},tn,{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})),bn=$t(_({},Jt,{newState:0,oldState:0})),yn=[9,13,27,32],Dn=nt&&"CompositionEvent"in window,wn=null;nt&&"documentMode"in document&&(wn=document.documentMode);var kn=nt&&"TextEvent"in window&&!wn,jn=nt&&(!Dn||wn&&8<wn&&11>=wn),Cn=String.fromCharCode(32),En=!1;function Fn(e,t){switch(e){case"keyup":return-1!==yn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var An=!1;var Sn={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 _n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Sn[e.type]:"textarea"===t}function Bn(e,t,n,r){Bt?Tt?Tt.push(r):Tt=[r]:Bt=r,0<(t=Oc(t,"onChange")).length&&(n=new Xt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Tn=null,Rn=null;function Pn(e){Nc(e,0)}function On(e){if(ht(Qe(e)))return e}function Ln(e,t){if("change"===e)return t}var In=!1;if(nt){var Mn;if(nt){var zn="oninput"in document;if(!zn){var Un=document.createElement("div");Un.setAttribute("oninput","return;"),zn="function"===typeof Un.oninput}Mn=zn}else Mn=!1;In=Mn&&(!document.documentMode||9<document.documentMode)}function qn(){Tn&&(Tn.detachEvent("onpropertychange",Wn),Rn=Tn=null)}function Wn(e){if("value"===e.propertyName&&On(Rn)){var t=[];Bn(t,Rn,e,_t(e)),Ot(Pn,t)}}function Hn(e,t,n){"focusin"===e?(qn(),Rn=n,(Tn=t).attachEvent("onpropertychange",Wn)):"focusout"===e&&qn()}function Vn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return On(Rn)}function Gn(e,t){if("click"===e)return On(t)}function $n(e,t){if("input"===e||"change"===e)return On(t)}var Kn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Qn(e,t){if(Kn(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)||!Kn(e[a],t[a]))return!1}return!0}function Yn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jn(e,t){var n,r=Yn(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=Yn(r)}}function Xn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Xn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Zn(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(r){n=!1}if(!n)break;t=ft((e=t.contentWindow).document)}return t}function er(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)}function tr(e,t){var n=Zn(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Xn(t.ownerDocument.documentElement,t)){if(null!==r&&er(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var a=t.textContent.length,s=Math.min(r.start,a);r=void 0===r.end?s:Math.min(r.end,a),!n.extend&&s>
vendor: 8,783 bytes, line 2
2r&&(a=r,r=s,s=a),a=Jn(t,s);var i=Jn(t,r);a&&i&&(1!==n.rangeCount||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==i.node||n.focusOffset!==i.offset)&&((e=e.createRange()).setStart(a.node,a.offset),n.removeAllRanges(),s>r?(n.addRange(e),n.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"===typeof t.focus&&t.focus(),t=0;t<e.length;t++)(n=e[t]).element.scrollLeft=n.left,n.element.scrollTop=n.top}}var nr=nt&&"documentMode"in document&&11>=document.documentMode,rr=null,ar=null,sr=null,ir=!1;function or(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ir||null==rr||rr!==ft(r)||("selectionStart"in(r=rr)&&er(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sr&&Qn(sr,r)||(sr=r,0<(r=Oc(ar,"onSelect")).length&&(t=new Xt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ur={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},cr={},dr={};function hr(e){if(cr[e])return cr[e];if(!ur[e])return e;var t,n=ur[e];for(t in n)if(n.hasOwnProperty(t)&&t in dr)return cr[e]=n[t];return e}nt&&(dr=document.createElement("div").style,"AnimationEvent"in window||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),"TransitionEvent"in window||delete ur.transitionend.transition);var fr=hr("animationend"),pr=hr("animationiteration"),mr=hr("animationstart"),xr=hr("transitionrun"),gr=hr("transitionstart"),vr=hr("transitioncancel"),br=hr("transitionend"),yr=new Map,Dr="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 scrollEnd toggle touchMove waiting wheel".split(" ");function wr(e,t){yr.set(e,t),et(t,[e])}var kr=[],jr=0,Cr=0;function Er(){for(var e=jr,t=Cr=jr=0;t<e;){var n=kr[t];kr[t++]=null;var r=kr[t];kr[t++]=null;var a=kr[t];kr[t++]=null;var s=kr[t];if(kr[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&&Sr(n,a,s)}}function Fr(e,t,n,r){kr[jr++]=e,kr[jr++]=t,kr[jr++]=n,kr[jr++]=r,Cr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Nr(e,t,n,r){return Fr(e,t,n,r),_r(e)}function Ar(e,t){return Fr(e,null,null,t),_r(e)}function Sr(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;a&&null!==t&&3===e.tag&&(s=e.stateNode,a=31-ye(n),null===(e=(s=s.hiddenUpdates)[a])?s[a]=[t]:e.push(t),t.lane=536870912|n)}function _r(e){if(50<Nu)throw Nu=0,Au=null,Error(i(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Br={},Tr=new WeakMap;function Rr(e,t){if("object"===typeof e&&null!==e){var n=Tr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:O(t)},Tr.set(e,t),t)}return{value:e,source:t,stack:O(t)}}var Pr=[],Or=0,Lr=null,Ir=0,Mr=[],zr=0,Ur=null,qr=1,Wr="";function Hr(e,t){Pr[Or++]=Ir,Pr[Or++]=Lr,Lr=e,Ir=t}function Vr(e,t,n){Mr[zr++]=qr,Mr[zr++]=Wr,Mr[zr++]=Ur,Ur=e;var r=qr;e=Wr;var a=32-ye(r)-1;r&=~(1<<a),n+=1;var s=32-ye(t)+a;if(30<s){var i=a-a%5;s=(r&(1<<i)-1).toString(32),r>>=i,a-=i,qr=1<<32-ye(t)+a|n<<a|r,Wr=s+e}else qr=1<<s|n<<a|r,Wr=e}function Gr(e){null!==e.return&&(Hr(e,1),Vr(e,1,0))}function $r(e){for(;e===Lr;)Lr=Pr[--Or],Pr[Or]=null,Ir=Pr[--Or],Pr[Or]=null;for(;e===Ur;)Ur=Mr[--zr],Mr[zr]=null,Wr=Mr[--zr],Mr[zr]=null,qr=Mr[--zr],Mr[zr]=null}var Kr=null,Qr=null,Yr=!1,Jr=null,Xr=!1,Zr=Error(i(519));function ea(e){throw sa(Rr(Error(i(418,"")),e)),Zr}function ta(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ie]=e,t[Me]=r,n){case"dialog":Ac("cancel",t),Ac("close",t);break;case"iframe":case"object":case"embed":Ac("load",t);break;case"video":case"audio":for(n=0;n<Ec.length;n++)Ac(Ec[n],t);break;case"source":Ac("error",t);break;case"img":case"image":case"link":Ac("error",t),Ac("load",t);break;case"details":Ac("toggle",t);break;case"input":Ac("invalid",t),gt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),dt(t);break;case"select":Ac("invalid",t);break;case"textarea":Ac("invalid",t),Dt(t,r.value,r.defaultValue,r.children),dt(t)}"string"!==typeof(n=r.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||qc(t.textContent,n)?(null!=r.popover&&(Ac("beforetoggle",t),Ac("toggle",t)),null!=r.onScroll&&Ac("scroll",t),null!=r.onScrollEnd&&Ac("scrollend",t),null!=r.onClick&&(t.onclick=Wc),t=!0):t=!1,t||ea(e)}function na(e){for(Kr=e.return;Kr;)switch(Kr.tag){case 3:case 27:return void(Xr=!0);case 5:case 13:return void(Xr=!1);default:Kr=Kr.return}}function ra(e){if(e!==Kr)return!1;if(!Yr)return na(e),Yr=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Xc(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&Qr&&ea(e),na(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){Qr=od(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}Qr=null}}else Qr=Kr?od(e.stateNode.nextSibling):null;return!0}function aa(){Qr=Kr=null,Yr=!1}function sa(e){null===Jr?Jr=[e]:Jr.push(e)}var ia=Error(i(460)),oa=Error(i(474)),la={then:function(){}};function ua(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ca(){}function da(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(ca,ca),t=n),t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===ia)throw Error(i(483));throw e;default:if("string"===typeof t.status)t.then(ca,ca);else{if(null!==(e=tu)&&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":if((e=t.reason)===ia)throw Error(i(483));throw e}throw ha=t,ia}}var ha=null;function fa(){if(null===ha)throw Error(i(459));var e=ha;return ha=null,e}var pa=null,ma=0;function xa(e){var t=ma;return ma+=1,null===pa&&(pa=[]),da(pa,e,t)}function ga(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function va(e,t){if(t.$$typeof===l)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 ba(e){return(0,e._init)(e._payload)}function ya(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=Ll(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|=33554434,n):r:(t.flags|=33554434,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=ql(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function h(e,t,n,r){var s=n.type;return s===d?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===D&&ba(s)===t.type)?(ga(t=a(t,n.props),n),t.return=e,t):(ga(t=Ml(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wl(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}
vendor: 7,190 bytes, line 2
2function p(e,t,n,r,s){return null===t||7!==t.tag?((t=zl(n,e.mode,r,s)).return=e,t):((t=a(t,n)).return=e,t)}function m(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=ql(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case u:return ga(n=Ml(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case c:return(t=Wl(t,e.mode,n)).return=e,t;case D:return m(e,t=(0,t._init)(t._payload),n)}if(U(t)||C(t))return(t=zl(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return m(e,xa(t),n);if(t.$$typeof===x)return m(e,Eo(e,t),n);va(e,t)}return null}function g(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 u:return n.key===a?h(e,t,n,r):null;case c:return n.key===a?f(e,t,n,r):null;case D:return g(e,t,n=(a=n._init)(n._payload),r)}if(U(n)||C(n))return null!==a?null:p(e,t,n,r,null);if("function"===typeof n.then)return g(e,t,xa(n),r);if(n.$$typeof===x)return g(e,t,Eo(e,n),r);va(e,n)}return null}function v(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 u:return h(t,e=e.get(null===r.key?n:r.key)||null,r,a);case c:return f(t,e=e.get(null===r.key?n:r.key)||null,r,a);case D:return v(e,t,n,r=(0,r._init)(r._payload),a)}if(U(r)||C(r))return p(t,e=e.get(n)||null,r,a,null);if("function"===typeof r.then)return v(e,t,n,xa(r),a);if(r.$$typeof===x)return v(e,t,n,Eo(t,r),a);va(t,r)}return null}function b(l,h,f,p){if("object"===typeof f&&null!==f&&f.type===d&&null===f.key&&(f=f.props.children),"object"===typeof f&&null!==f){switch(f.$$typeof){case u:e:{for(var y=f.key;null!==h;){if(h.key===y){if((y=f.type)===d){if(7===h.tag){n(l,h.sibling),(p=a(h,f.props.children)).return=l,l=p;break e}}else if(h.elementType===y||"object"===typeof y&&null!==y&&y.$$typeof===D&&ba(y)===h.type){n(l,h.sibling),ga(p=a(h,f.props),f),p.return=l,l=p;break e}n(l,h);break}t(l,h),h=h.sibling}f.type===d?((p=zl(f.props.children,l.mode,p,f.key)).return=l,l=p):(ga(p=Ml(f.type,f.key,f.props,null,l.mode,p),f),p.return=l,l=p)}return o(l);case c:e:{for(y=f.key;null!==h;){if(h.key===y){if(4===h.tag&&h.stateNode.containerInfo===f.containerInfo&&h.stateNode.implementation===f.implementation){n(l,h.sibling),(p=a(h,f.children||[])).return=l,l=p;break e}n(l,h);break}t(l,h),h=h.sibling}(p=Wl(f,l.mode,p)).return=l,l=p}return o(l);case D:return b(l,h,f=(y=f._init)(f._payload),p)}if(U(f))return function(a,i,o,l){for(var u=null,c=null,d=i,h=i=0,f=null;null!==d&&h<o.length;h++){d.index>h?(f=d,d=null):f=d.sibling;var p=g(a,d,o[h],l);if(null===p){null===d&&(d=f);break}e&&d&&null===p.alternate&&t(a,d),i=s(p,i,h),null===c?u=p:c.sibling=p,c=p,d=f}if(h===o.length)return n(a,d),Yr&&Hr(a,h),u;if(null===d){for(;h<o.length;h++)null!==(d=m(a,o[h],l))&&(i=s(d,i,h),null===c?u=d:c.sibling=d,c=d);return Yr&&Hr(a,h),u}for(d=r(d);h<o.length;h++)null!==(f=v(d,a,h,o[h],l))&&(e&&null!==f.alternate&&d.delete(null===f.key?h:f.key),i=s(f,i,h),null===c?u=f:c.sibling=f,c=f);return e&&d.forEach(function(e){return t(a,e)}),Yr&&Hr(a,h),u}(l,h,f,p);if(C(f)){if("function"!==typeof(y=C(f)))throw Error(i(150));return function(a,o,l,u){if(null==l)throw Error(i(151));for(var c=null,d=null,h=o,f=o=0,p=null,x=l.next();null!==h&&!x.done;f++,x=l.next()){h.index>f?(p=h,h=null):p=h.sibling;var b=g(a,h,x.value,u);if(null===b){null===h&&(h=p);break}e&&h&&null===b.alternate&&t(a,h),o=s(b,o,f),null===d?c=b:d.sibling=b,d=b,h=p}if(x.done)return n(a,h),Yr&&Hr(a,f),c;if(null===h){for(;!x.done;f++,x=l.next())null!==(x=m(a,x.value,u))&&(o=s(x,o,f),null===d?c=x:d.sibling=x,d=x);return Yr&&Hr(a,f),c}for(h=r(h);!x.done;f++,x=l.next())null!==(x=v(h,a,f,x.value,u))&&(e&&null!==x.alternate&&h.delete(null===x.key?f:x.key),o=s(x,o,f),null===d?c=x:d.sibling=x,d=x);return e&&h.forEach(function(e){return t(a,e)}),Yr&&Hr(a,f),c}(l,h,f=y.call(f),p)}if("function"===typeof f.then)return b(l,h,xa(f),p);if(f.$$typeof===x)return b(l,h,Eo(l,f),p);va(l,f)}return"string"===typeof f&&""!==f||"number"===typeof f||"bigint"===typeof f?(f=""+f,null!==h&&6===h.tag?(n(l,h.sibling),(p=a(h,f)).return=l,l=p):(n(l,h),(p=ql(f,l.mode,p)).return=l,l=p),o(l)):n(l,h)}return function(e,t,n,r){try{ma=0;var a=b(e,t,n,r);return pa=null,a}catch(i){if(i===ia)throw i;var s=Pl(29,i,null,e.mode);return s.lanes=r,s.return=e,s}}}var Da=ya(!0),wa=ya(!1),ka=G(null),ja=G(0);function Ca(e,t){K(ja,e=uu),K(ka,t),uu=e|t.baseLanes}function Ea(){K(ja,uu),K(ka,ka.current)}function Fa(){uu=ja.current,$(ka),$(ja)}var Na=G(null),Aa=null;function Sa(e){var t=e.alternate;K(Ra,1&Ra.current),K(Na,e),null===Aa&&(null===t||null!==ka.current||null!==t.memoizedState)&&(Aa=e)}function _a(e){if(22===e.tag){if(K(Ra,Ra.current),K(Na,e),null===Aa){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Aa=e)}}else Ba()}function Ba(){K(Ra,Ra.current),K(Na,Na.current)}function Ta(e){$(Na),Aa===e&&(Aa=null),$(Ra)}var Ra=G(0);function Pa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}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 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()})}},La=r.unstable_scheduleCallback,Ia=r.unstable_NormalPriority,Ma={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function za(){return{controller:new Oa,data:new Map,refCount:0}}function Ua(e){e.refCount--,0===e.refCount&&La(Ia,function(){e.controller.abort()})}var qa=null,Wa=0,Ha=0,Va=null;function Ga(){if(0===--Wa&&null!==qa){null!==Va&&(Va.status="fulfilled");var e=qa;qa=null,Ha=0,Va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var $a=S.S;S.S=function(e,t){"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===qa){var n=qa=[];Wa=0,Ha=Dc(),Va={status:"pending",value:void 0,then:function(e){n.push(e)}}}Wa++,t.then(Ga,Ga)}(0,t),null!==$a&&$a(e,t)};var Ka=G(null);function Qa(){var e=Ka.current;return null!==e?e:tu.pooledCache}function Ya(e,t){K(Ka,null===t?Ka.current:t.pool)}function Ja(){var e=Qa();return null===e?null:{parent:Ma._currentValue,pool:e}}var Xa=0,Za=null,es=null,ts=null,ns=!1,rs=!1,as=!1,ss=0,is=0,os=null,ls=0;function us(){throw Error(i(321))}function cs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kn(e[n],t[n]))return!1;return!0}function ds(e,t,n,r,a,s){return Xa=s,Za=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,S.H=null===e||null===e.memoizedState?Ci:Ei,as=!1,s=n(r,a),as=!1,rs&&(s=fs(t,n,r,a)),hs(e),s}function hs(e){S.H=ji;var t=null!==es&&null!==es.next;if(Xa=0,ts=es=Za=null,ns=!1,is=0,os=null,t)throw Error(i(300));
vendor: 5,907 bytes, line 2
2null===e||Wi||null!==(e=e.dependencies)&&ko(e)&&(Wi=!0)}function fs(e,t,n,r){Za=e;var a=0;do{if(rs&&(os=null),is=0,rs=!1,25<=a)throw Error(i(301));if(a+=1,ts=es=null,null!=e.updateQueue){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,null!=s.memoCache&&(s.memoCache.index=0)}S.H=Fi,s=t(n,r)}while(rs);return s}function ps(){var e=S.H,t=e.useState()[0];return t="function"===typeof t.then?ys(t):t,e=e.useState()[0],(null!==es?es.memoizedState:null)!==e&&(Za.flags|=1024),t}function ms(){var e=0!==ss;return ss=0,e}function xs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function gs(e){if(ns){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ns=!1}Xa=0,ts=es=Za=null,rs=!1,is=ss=0,os=null}function vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ts?Za.memoizedState=ts=e:ts=ts.next=e,ts}function bs(){if(null===es){var e=Za.alternate;e=null!==e?e.memoizedState:null}else e=es.next;var t=null===ts?Za.memoizedState:ts.next;if(null!==t)ts=t,es=e;else{if(null===e){if(null===Za.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(es=e).memoizedState,baseState:es.baseState,baseQueue:es.baseQueue,queue:es.queue,next:null},null===ts?Za.memoizedState=ts=e:ts=ts.next=e}return ts}function ys(e){var t=is;return is+=1,null===os&&(os=[]),e=da(os,e,t),t=Za,null===(null===ts?t.memoizedState:ts.next)&&(t=t.alternate,S.H=null===t||null===t.memoizedState?Ci:Ei),e}function Ds(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return ys(e);if(e.$$typeof===x)return Co(e)}throw Error(i(438,String(e)))}function ws(e){var t=null,n=Za.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Za.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},Za.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]=k;return t.index++,n}function ks(e,t){return"function"===typeof t?t(e):t}function js(e){return Cs(bs(),es,e)}function Cs(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,u=null,c=t=a.next,d=!1;do{var h=-536870913&c.lane;if(h!==c.lane?(ru&h)===h:(Xa&h)===h){var f=c.revertLane;if(0===f)null!==u&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),h===Ha&&(d=!0);else{if((Xa&f)===f){c=c.next,f===Ha&&(d=!0);continue}h={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=h,o=s):u=u.next=h,Za.lanes|=f,du|=f}h=c.action,as&&n(s,h),s=c.hasEagerState?c.eagerState:n(s,h)}else f={lane:h,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,o=s):u=u.next=f,Za.lanes|=h,du|=h;c=c.next}while(null!==c&&c!==t);if(null===u?o=s:u.next=l,!Kn(s,e.memoizedState)&&(Wi=!0,d&&null!==(n=Va)))throw n;e.memoizedState=s,e.baseState=o,e.baseQueue=u,r.lastRenderedState=s}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Es(e){var t=bs(),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);Kn(s,t.memoizedState)||(Wi=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Fs(e,t,n){var r=Za,a=bs(),s=Yr;if(s){if(void 0===n)throw Error(i(407));n=n()}else n=t();var o=!Kn((es||a).memoizedState,n);if(o&&(a.memoizedState=n,Wi=!0),a=a.queue,Xs(Ss.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||null!==ts&&1&ts.memoizedState.tag){if(r.flags|=2048,$s(9,As.bind(null,r,a,n,t),{destroy:void 0},null),null===tu)throw Error(i(349));s||0!==(60&Xa)||Ns(r,t,n)}return n}function Ns(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Za.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Za.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function As(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&Bs(e)}function Ss(e,t,n){return n(function(){_s(t)&&Bs(e)})}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kn(e,n)}catch(r){return!0}}function Bs(e){var t=Ar(e,2);null!==t&&Bu(t,e,2)}function Ts(e){var t=vs();if("function"===typeof e){var n=e;if(e=n(),as){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:e},t}function Rs(e,t,n,r){return e.baseState=n,Cs(e,es,"function"===typeof r?r:ks)}function Ps(e,t,n,r,a){if(Di(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!==S.T?n(!0):s.isTransition=!1,r(s),null===(n=t.pending)?(s.next=t.pending=s,Os(t,s)):(s.next=n.next,t.pending=n.next=s)}}function Os(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var s=S.T,i={};S.T=i;try{var o=n(a,r),l=S.S;null!==l&&l(i,o),Ls(e,t,o)}catch(u){Ms(e,t,u)}finally{S.T=s}}else try{Ls(e,t,s=n(a,r))}catch(c){Ms(e,t,c)}}function Ls(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then(function(n){Is(e,t,n)},function(n){return Ms(e,t,n)}):Is(e,t,n)}function Is(e,t,n){t.status="fulfilled",t.value=n,zs(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Os(e,n)))}function Ms(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,zs(t),t=t.next}
2while(t!==r)}e.action=null}function zs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Us(e,t){return t}function qs(e,t){if(Yr){var n=tu.formState;if(null!==n){e:{var r=Za;if(Yr){if(Qr){t:{for(var a=Qr,s=Xr;8!==a.nodeType;){if(!s){a=null;break t}if(null===(a=od(a.nextSibling))){a=null;break t}}a="F!"===(s=a.data)||"F"===s?a:null}if(a){Qr=od(a.nextSibling),r="F!"===a.data;break e}}ea(r)}r=!1}r&&(t=n[0])}}return(n=vs()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Us,lastRenderedState:t},n.queue=r,n=vi.bind(null,Za,r),r.dispatch=n,r=Ts(!1),s=yi.bind(null,Za,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=vs()).queue=a,n=Ps.bind(null,Za,a,s,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ws(e){return Hs(bs(),es,e)}function Hs(e,t,n){t=Cs(e,t,Us)[0],e=js(ks)[0],t="object"===typeof t&&null!==t&&"function"===typeof t.then?ys(t):t;var r=bs(),a=r.queue,s=a.dispatch;return n!==r.memoizedState&&(Za.flags|=2048,$s(9,Vs.bind(null,a,n),{destroy:void 0},null)),[t,s,e]}function Vs(e,t){e.action=t}function Gs(e){var t=bs(),n=es;if(null!==n)return Hs(t,n,e);bs(),t=t.memoizedState;var r=(n=bs()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $s(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},null===(t=Za.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Za.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 Ks(){return bs().memoizedState}function Qs(e,t,n,r){var a=vs();Za.flags|=e,a.memoizedState=$s(1|t,n,{destroy:void 0},void 0===r?null:r)}function Ys(e,t,n,r){var a=bs();r=void 0===r?null:r;var s=a.memoizedState.inst;null!==es&&null!==r&&cs(r,es.memoizedState.deps)?a.memoizedState=$s(t,n,s,r):(Za.flags|=e,a.memoizedState=$s(1|t,n,s,r))}function Js(e,t){Qs(8390656,8,e,t)}function Xs(e,t){Ys(2048,8,e,t)}function Zs(e,t){return Ys(4,2,e,t)}function ei(e,t){return Ys(4,4,e,t)}function ti(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function ni(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Ys(4,4,ti.bind(null,t,e),n)}function ri(){}function ai(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&cs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function si(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&cs(t,r[1]))return r[0];if(r=e(),as){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function ii(e,t,n){return void 0===n||0!==(1073741824&Xa)?e.memoizedState=t:(e.memoizedState=n,e=_u(),Za.lanes|=e,du|=e,n)}function oi(e,t,n,r){return Kn(n,t)?n:null!==ka.current?(e=ii(e,n,r),Kn(e,t)||(Wi=!0),e):0===(42&Xa)?(Wi=!0,e.memoizedState=n):(e=_u(),Za.lanes|=e,du|=e,t)}function li(e,t,n,r,a){var s=q.p;q.p=0!==s&&8>s?s:8;var i=S.T,o={};S.T=o,yi(e,!1,t,n);try{var l=a(),u=S.S;if(null!==u&&u(o,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)bi(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}(l,r),Su());else bi(e,t,r,Su())}catch(c){bi(e,t,{then:function(){},status:"rejected",reason:c},Su())}finally{q.p=s,S.T=i}}function ui(){}function ci(e,t,n,r){if(5!==e.tag)throw Error(i(476));var a=di(e).queue;li(e,a,t,W,null===n?ui:function(){return hi(e),n(r)})}function di(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:W},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function hi(e){bi(e,di(e).next.queue,{},Su())}function fi(){return Co(Od)}function pi(){return bs().memoizedState}function mi(){return bs().memoizedState}function xi(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Su(),r=Bo(t,e=_o(n),n);return null!==r&&(Bu(r,t,n),To(r,t,n)),t={cache:za()},void(e.payload=t)}t=t.return}}function gi(e,t,n){var r=Su();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Di(e)?wi(t,n):null!==(n=Nr(e,t,n,r))&&(Bu(n,e,r),ki(n,t,r))}
vendor: 4,889 bytes, line 2
2function vi(e,t,n){bi(e,t,n,Su())}function bi(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Di(e))wi(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,Kn(o,i))return Fr(e,t,a,0),null===tu&&Er(),!1}catch(l){}if(null!==(n=Nr(e,t,a,r)))return Bu(n,e,r),ki(n,t,r),!0}return!1}function yi(e,t,n,r){if(r={lane:2,revertLane:Dc(),action:r,hasEagerState:!1,eagerState:null,next:null},Di(e)){if(t)throw Error(i(479))}else null!==(t=Nr(e,n,r,2))&&Bu(t,e,2)}function Di(e){var t=e.alternate;return e===Za||null!==t&&t===Za}function wi(e,t){rs=ns=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ki(e,t,n){if(0!==(4194176&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Re(e,n)}}var ji={readContext:Co,use:Ds,useCallback:us,useContext:us,useEffect:us,useImperativeHandle:us,useLayoutEffect:us,useInsertionEffect:us,useMemo:us,useReducer:us,useRef:us,useState:us,useDebugValue:us,useDeferredValue:us,useTransition:us,useSyncExternalStore:us,useId:us};ji.useCacheRefresh=us,ji.useMemoCache=us,ji.useHostTransitionStatus=us,ji.useFormState=us,ji.useActionState=us,ji.useOptimistic=us;var Ci={readContext:Co,use:Ds,useCallback:function(e,t){return vs().memoizedState=[e,void 0===t?null:t],e},useContext:Co,useEffect:Js,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Qs(4194308,4,ti.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qs(4194308,4,e,t)},useInsertionEffect:function(e,t){Qs(4,2,e,t)},useMemo:function(e,t){var n=vs();t=void 0===t?null:t;var r=e();if(as){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=vs();if(void 0!==n){var a=n(t);if(as){be(!0);try{n(t)}finally{be(!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=gi.bind(null,Za,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vs().memoizedState=e},useState:function(e){var t=(e=Ts(e)).queue,n=vi.bind(null,Za,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ri,useDeferredValue:function(e,t){return ii(vs(),e,t)},useTransition:function(){var e=Ts(!1);return e=li.bind(null,Za,e.queue,!0,!1),vs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Za,a=vs();if(Yr){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===tu)throw Error(i(349));0!==(60&ru)||Ns(r,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,Js(Ss.bind(null,r,s,e),[e]),r.flags|=2048,$s(9,As.bind(null,r,s,n,t),{destroy:void 0},null),n},useId:function(){var e=vs(),t=tu.identifierPrefix;if(Yr){var n=Wr;t=":"+t+"R"+(n=(qr&~(1<<32-ye(qr)-1)).toString(32)+n),0<(n=ss++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ls++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return vs().memoizedState=xi.bind(null,Za)}};Ci.useMemoCache=ws,Ci.useHostTransitionStatus=fi,Ci.useFormState=qs,Ci.useActionState=qs,Ci.useOptimistic=function(e){var t=vs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=yi.bind(null,Za,!0,n),n.dispatch=t,[e,t]};var Ei={readContext:Co,use:Ds,useCallback:ai,useContext:Co,useEffect:Xs,useImperativeHandle:ni,useInsertionEffect:Zs,useLayoutEffect:ei,useMemo:si,useReducer:js,useRef:Ks,useState:function(){return js(ks)},useDebugValue:ri,useDeferredValue:function(e,t){return oi(bs(),es.memoizedState,e,t)},useTransition:function(){var e=js(ks)[0],t=bs().memoizedState;return["boolean"===typeof e?e:ys(e),t]},useSyncExternalStore:Fs,useId:pi};Ei.useCacheRefresh=mi,Ei.useMemoCache=ws,Ei.useHostTransitionStatus=fi,Ei.useFormState=Ws,Ei.useActionState=Ws,Ei.useOptimistic=function(e,t){return Rs(bs(),0,e,t)};var Fi={readContext:Co,use:Ds,useCallback:ai,useContext:Co,useEffect:Xs,useImperativeHandle:ni,useInsertionEffect:Zs,useLayoutEffect:ei,useMemo:si,useReducer:Es,useRef:Ks,useState:function(){return Es(ks)},useDebugValue:ri,useDeferredValue:function(e,t){var n=bs();return null===es?ii(n,e,t):oi(n,es.memoizedState,e,t)},useTransition:function(){var e=Es(ks)[0],t=bs().memoizedState;return["boolean"===typeof e?e:ys(e),t]},useSyncExternalStore:Fs,useId:pi};function Ni(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:_({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}Fi.useCacheRefresh=mi,Fi.useMemoCache=ws,Fi.useHostTransitionStatus=fi,Fi.useFormState=Gs,Fi.useActionState=Gs,Fi.useOptimistic=function(e,t){var n=bs();return null!==es?Rs(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])};var Ai={isMounted:function(e){return!!(e=e._reactInternals)&&L(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Su(),a=_o(r);
2a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Bo(e,a,r))&&(Bu(t,e,r),To(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Su(),a=_o(r);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Bo(e,a,r))&&(Bu(t,e,r),To(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Su(),r=_o(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Bo(e,r,n))&&(Bu(t,e,n),To(t,e,n))}};function Si(e,t,n,r,a,s,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,i):!t.prototype||!t.prototype.isPureReactComponent||(!Qn(n,r)||!Qn(a,s))}function _i(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&&Ai.enqueueReplaceState(t,t.state,null)}function Bi(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=_({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}var Ti="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)};function Ri(e){Ti(e)}function Pi(e){console.error(e)}function Oi(e){Ti(e)}function Li(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ii(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Mi(e,t,n){return(n=_o(n)).tag=3,n.payload={element:null},n.callback=function(){Li(e,t)},n}function zi(e){return(e=_o(e)).tag=3,e}function Ui(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(){Ii(t,n,r)}}var i=n.stateNode;null!==i&&"function"===typeof i.componentDidCatch&&(e.callback=function(){Ii(t,n,r),"function"!==typeof a&&(null===wu?wu=new Set([this]):wu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var qi=Error(i(461)),Wi=!1;function Hi(e,t,n,r){t.child=null===e?wa(t,null,n,r):Da(t,e.child,n,r)}function Vi(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 jo(t),r=ds(e,t,n,i,s,a),o=ms(),null===e||Wi?(Yr&&o&&Gr(t),t.flags|=1,Hi(e,t,r,a),t.child):(xs(e,t,a),ho(e,t,a))}function Gi(e,t,n,r,a){if(null===e){var s=n.type;return"function"!==typeof s||Ol(s)||void 0!==s.defaultProps||null!==n.compare?((e=Ml(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,$i(e,t,s,r,a))}if(s=e.child,!fo(e,a)){var i=s.memoizedProps;if((n=null!==(n=n.compare)?n:Qn)(i,r)&&e.ref===t.ref)return ho(e,t,a)}return t.flags|=1,(e=Ll(s,r)).ref=t.ref,e.return=t,t.child=e}function $i(e,t,n,r,a){if(null!==e){var s=e.memoizedProps;if(Qn(s,r)&&e.ref===t.ref){if(Wi=!1,t.pendingProps=r=s,!fo(e,a))return t.lanes=e.lanes,ho(e,t,a);0!==(131072&e.flags)&&(Wi=!0)}}return Ji(e,t,n,r,a)}function Ki(e,t,n){var r=t.pendingProps,a=r.children,s=0!==(2&t.stateNode._pendingVisibility),i=null!==e?e.memoizedState:null;if(Yi(e,t),"hidden"===r.mode||s){if(0!==(128&t.flags)){if(r=null!==i?i.baseLanes|n:n,null!==e){for(a=t.child=e.child,s=0;null!==a;)s=s|a.lanes|a.childLanes,a=a.sibling;t.childLanes=s&~r}else t.childLanes=0,t.child=null;return Qi(e,t,r,n)}if(0===(536870912&n))return t.lanes=t.childLanes=536870912,Qi(e,t,null!==i?i.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ya(0,null!==i?i.cachePool:null),null!==i?Ca(t,i):Ea(),_a(t)}else null!==i?(Ya(0,i.cachePool),Ca(t,i),Ba(),t.memoizedState=null):(null!==e&&Ya(0,null),Ea(),Ba());return Hi(e,t,a,n),t.child}function Qi(e,t,n,r){var a=Qa();return a=null===a?null:{parent:Ma._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Ya(0,null),Ea(),_a(t),null!==e&&wo(e,t,r,!0),null}function Yi(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=2097664);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(i(284));null!==e&&e.ref===n||(t.flags|=2097664)}}function Ji(e,t,n,r,a){return jo(t),n=ds(e,t,n,r,void 0,a),r=ms(),null===e||Wi?(Yr&&r&&Gr(t),t.flags|=1,Hi(e,t,n,a),t.child):(xs(e,t,a),ho(e,t,a))}function Xi(e,t,n,r,a,s){return jo(t),t.updateQueue=null,n=fs(t,r,n,a),hs(e),r=ms(),null===e||Wi?(Yr&&r&&Gr(t),t.flags|=1,Hi(e,t,n,s),t.child):(xs(e,t,s),ho(e,t,s))}function Zi(e,t,n,r,a){if(jo(t),null===t.stateNode){var s=Br,i=n.
2contextType;"object"===typeof i&&null!==i&&(s=Co(i)),s=new n(r,s),t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,s.updater=Ai,t.stateNode=s,s._reactInternals=t,(s=t.stateNode).props=r,s.state=t.memoizedState,s.refs={},Ao(t),i=n.contextType,s.context="object"===typeof i&&null!==i?Co(i):Br,s.state=t.memoizedState,"function"===typeof(i=n.getDerivedStateFromProps)&&(Ni(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&&Ai.enqueueReplaceState(s,s.state,null),Lo(t,r,s,a),Oo(),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=Bi(n,o);s.props=l;var u=s.context,c=n.contextType;i=Br,"object"===typeof c&&null!==c&&(i=Co(c));var d=n.getDerivedStateFromProps;c="function"===typeof d||"function"===typeof s.getSnapshotBeforeUpdate,o=t.pendingProps!==o,c||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(o||u!==i)&&_i(t,s,r,i),No=!1;var h=t.memoizedState;s.state=h,Lo(t,r,s,a),Oo(),u=t.memoizedState,o||h!==u||No?("function"===typeof d&&(Ni(t,n,d,r),u=t.memoizedState),(l=No||Si(t,n,l,r,h,u,i))?(c||"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=u),s.props=r,s.state=u,s.context=i,r=l):("function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,So(e,t),c=Bi(n,i=t.memoizedProps),s.props=c,d=t.pendingProps,h=s.context,u=n.contextType,l=Br,"object"===typeof u&&null!==u&&(l=Co(u)),(u="function"===typeof(o=n.getDerivedStateFromProps)||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(i!==d||h!==l)&&_i(t,s,r,l),No=!1,h=t.memoizedState,s.state=h,Lo(t,r,s,a),Oo();var f=t.memoizedState;i!==d||h!==f||No||null!==e&&null!==e.dependencies&&ko(e.dependencies)?("function"===typeof o&&(Ni(t,n,o,r),f=t.memoizedState),(c=No||Si(t,n,c,r,h,f,l)||null!==e&&null!==e.dependencies&&ko(e.dependencies))?(u||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,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=f),s.props=r,s.state=f,s.context=l,r=c):("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,Yi(e,t),r=0!==(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=Da(t,e.child,null,a),t.child=Da(t,null,n,a)):Hi(e,t,n,a),t.memoizedState=s.state,e=t.child):e=ho(e,t,a),e}function eo(e,t,n,r){return aa(),t.flags|=256,Hi(e,t,n,r),t.child}var to={dehydrated:null,treeContext:null,retryLane:0};function no(e){return{baseLanes:e,cachePool:Ja()}}function ro(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=pu),e}function ao(e,t,n){var r,a=t.pendingProps,s=!1,o=0!==(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!==(2&Ra.current)),r&&(s=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(Yr){if(s?Sa(t):Ba(),Yr){var l,u=Qr;if(l=u){e:{for(l=u,u=Xr;
vendor: 4,268 bytes, line 2
28!==l.nodeType;){if(!u){u=null;break e}if(null===(l=od(l.nextSibling))){u=null;break e}}u=l}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==Ur?{id:qr,overflow:Wr}:null,retryLane:536870912},(l=Pl(18,null,null,0)).stateNode=u,l.return=t,t.child=l,Kr=t,Qr=null,l=!0):l=!1}l||ea(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return"$!"===u.data?t.lanes=16:t.lanes=536870912,null;Ta(t)}return u=a.children,a=a.fallback,s?(Ba(),u=io({mode:"hidden",children:u},s=t.mode),a=zl(a,s,n,null),u.return=t,a.return=t,u.sibling=a,t.child=u,(s=t.child).memoizedState=no(n),s.childLanes=ro(e,r,n),t.memoizedState=to,a):(Sa(t),so(t,u))}if(null!==(l=e.memoizedState)&&null!==(u=l.dehydrated)){if(o)256&t.flags?(Sa(t),t.flags&=-257,t=oo(e,t,n)):null!==t.memoizedState?(Ba(),t.child=e.child,t.flags|=128,t=null):(Ba(),s=a.fallback,u=t.mode,a=io({mode:"visible",children:a.children},u),(s=zl(s,u,n,null)).flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,Da(t,e.child,null,n),(a=t.child).memoizedState=no(n),a.childLanes=ro(e,r,n),t.memoizedState=to,t=s);else if(Sa(t),"$!"===u.data){if(r=u.nextSibling&&u.nextSibling.dataset)var c=r.dgst;r=c,(a=Error(i(419))).stack="",a.digest=r,sa({value:a,source:null,stack:null}),t=oo(e,t,n)}else if(Wi||wo(e,t,n,!1),r=0!==(n&e.childLanes),Wi||r){if(null!==(r=tu)){if(0!==(42&(a=n&-n)))a=1;else switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:a=64;break;case 268435456:a=134217728;break;default:a=0}if(0!==(a=0!==(a&(r.suspendedLanes|n))?0:a)&&a!==l.retryLane)throw l.retryLane=a,Ar(e,a),Bu(r,e,a),qi}"$?"===u.data||Hu(),t=oo(e,t,n)}else"$?"===u.data?(t.flags|=128,t.child=e.child,t=oc.bind(null,e),u._reactRetry=t,t=null):(e=l.treeContext,Qr=od(u.nextSibling),Kr=t,Yr=!0,Jr=null,Xr=!1,null!==e&&(Mr[zr++]=qr,Mr[zr++]=Wr,Mr[zr++]=Ur,qr=e.id,Wr=e.overflow,Ur=t),(t=so(t,a.children)).flags|=4096);return t}return s?(Ba(),s=a.fallback,u=t.mode,c=(l=e.child).sibling,(a=Ll(l,{mode:"hidden",children:a.children})).subtreeFlags=31457280&l.subtreeFlags,null!==c?s=Ll(c,s):(s=zl(s,u,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,null===(u=e.child.memoizedState)?u=no(n):(null!==(l=u.cachePool)?(c=Ma._currentValue,l=l.parent!==c?{parent:c,pool:c}:l):l=Ja(),u={baseLanes:u.baseLanes|n,cachePool:l}),s.memoizedState=u,s.childLanes=ro(e,r,n),t.memoizedState=to,a):(Sa(t),e=(n=e.child).sibling,(n=Ll(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 so(e,t){return(t=io({mode:"visible",children:t},e.mode)).return=e,e.child=t}function io(e,t){return Ul(e,t,0,null)}function oo(e,t,n){return Da(t,e.child,null,n),(e=so(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function lo(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),yo(e.return,t,n)}function uo(e,t,n,r,a){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=a)}function co(e,t,n){var r=t.pendingProps,a=r.revealOrder,s=r.tail;if(Hi(e,t,r.children,n),0!==(2&(r=Ra.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lo(e,n,t);else if(19===e.tag)lo(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}r&=1}switch(K(Ra,r),a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Pa(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),uo(t,!1,a,n,s);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Pa(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}uo(t,!0,n,null,s);break;case"together":uo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}
vendor: 1,355 bytes, line 2
2function ho(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),du|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(wo(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=Ll(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ll(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function fo(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!ko(e))}function po(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Wi=!0;else{if(!fo(e,n)&&0===(128&t.flags))return Wi=!1,function(e,t,n){switch(t.tag){case 3:Z(t,t.stateNode.containerInfo),vo(t,Ma,e.memoizedState.cache),aa();break;case 27:case 5:te(t);break;case 4:Z(t,t.stateNode.containerInfo);break;case 10:vo(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Sa(t),t.flags|=128,null):0!==(n&t.child.childLanes)?ao(e,t,n):(Sa(t),null!==(e=ho(e,t,n))?e.sibling:null);Sa(t);break;case 19:var a=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(wo(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return co(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),K(Ra,Ra.current),r)break;return null;case 22:case 23:return t.lanes=0,Ki(e,t,n);case 24:vo(t,Ma,e.memoizedState.cache)}
vendor: 29,449 bytes, line 2
2return ho(e,t,n)}(e,t,n);Wi=0!==(131072&e.flags)}else Wi=!1,Yr&&0!==(1048576&t.flags)&&Vr(t,Ir,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,a=r._init;if(r=a(r._payload),t.type=r,"function"!==typeof r){if(void 0!==r&&null!==r){if((a=r.$$typeof)===g){t.tag=11,t=Vi(null,t,r,e,n);break e}if(a===y){t.tag=14,t=Gi(null,t,r,e,n);break e}}throw t=F(r)||r,Error(i(306,t,""))}Ol(r)?(e=Bi(r,e),t.tag=1,t=Zi(null,t,r,e,n)):(t.tag=0,t=Ji(null,t,r,e,n))}return t;case 0:return Ji(e,t,t.type,t.pendingProps,n);case 1:return Zi(e,t,r=t.type,a=Bi(r,t.pendingProps),n);case 3:e:{if(Z(t,t.stateNode.containerInfo),null===e)throw Error(i(387));var s=t.pendingProps;r=(a=t.memoizedState).element,So(e,t),Lo(t,s,null,n);var o=t.memoizedState;if(s=o.cache,vo(t,Ma,s),s!==a.cache&&Do(t,[Ma],n,!0),Oo(),s=o.element,a.isDehydrated){if(a={element:s,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=eo(e,t,s,n);break e}if(s!==r){sa(r=Rr(Error(i(424)),t)),t=eo(e,t,s,n);break e}for(Qr=od(t.stateNode.containerInfo.firstChild),Kr=t,Yr=!0,Jr=null,Xr=!0,n=wa(t,null,s,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(aa(),s===r){t=ho(e,t,n);break e}Hi(e,t,s,n)}t=t.child}return t;case 26:return Yi(e,t),null===e?(n=xd(t.type,null,t.pendingProps,null))?t.memoizedState=n:Yr||(n=t.type,e=t.pendingProps,(r=Qc(J.current).createElement(n))[Ie]=t,r[Me]=e,Gc(r,n,e),Je(r),t.stateNode=r):t.memoizedState=xd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),null===e&&Yr&&(r=t.stateNode=ud(t.type,t.pendingProps,J.current),Kr=t,Xr=!0,Qr=od(r.firstChild)),r=t.pendingProps.children,null!==e||Yr?Hi(e,t,r,n):t.child=Da(t,null,r,n),Yi(e,t),t.child;case 5:return null===e&&Yr&&((a=r=Qr)&&(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?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=od(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,Xr))?(t.stateNode=r,Kr=t,Qr=od(r.firstChild),Xr=!1,a=!0):a=!1),a||ea(t)),te(t),a=t.type,s=t.pendingProps,o=null!==e?e.memoizedProps:null,r=s.children,Xc(a,s)?r=null:null!==o&&Xc(a,o)&&(t.flags|=32),null!==t.memoizedState&&(a=ds(e,t,ps,null,null,n),Od._currentValue=a),Yi(e,t),Hi(e,t,r,n),t.child;case 6:return null===e&&Yr&&((e=n=Qr)&&(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=od(e.nextSibling)))return null}return e}(n,t.pendingProps,Xr))?(t.stateNode=n,Kr=t,Qr=null,e=!0):e=!1),e||ea(t)),null;case 13:return ao(e,t,n);case 4:return Z(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Da(t,null,r,n):Hi(e,t,r,n),t.child;case 11:return Vi(e,t,t.type,t.pendingProps,n);case 7:return Hi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Hi(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,vo(t,t.type,r.value),Hi(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,jo(t),r=r(a=Co(a)),t.flags|=1,Hi(e,t,r,n),t.child;case 14:return Gi(e,t,t.type,t.pendingProps,n);case 15:return $i(e,t,t.type,t.pendingProps,n);case 19:return co(e,t,n);case 22:return Ki(e,t,n);case 24:return jo(t),r=Co(Ma),null===e?(null===(a=Qa())&&(a=tu,s=za(),a.pooledCache=s,s.refCount++,null!==s&&(a.pooledCacheLanes|=n),a=s),t.memoizedState={parent:r,cache:a},Ao(t),vo(t,Ma,a)):(0!==(e.lanes&n)&&(So(e,t),Lo(t,null,null,n),Oo()),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),vo(t,Ma,r)):(r=s.cache,vo(t,Ma,r),r!==a.cache&&Do(t,[Ma],n,!0))),Hi(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}var mo=G(null),xo=null,go=null;function vo(e,t,n){K(mo,t._currentValue),t._currentValue=n}function bo(e){e._currentValue=mo.current,$(mo)}function yo(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 Do(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 u=0;u<t.length;u++)if(l.context===t[u]){s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),yo(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),yo(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 wo(e,t,n,r){e=null;for(var a=t,s=!1;null!==a;){if(!s)if(0!==(524288&a.flags))s=!0;else if(0!==(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;Kn(a.pendingProps.value,o.value)||(null!==e?e.push(l):e=[l])}}else if(a===X.current){if(null===(o=a.alternate))throw Error(i(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(Od):e=[Od])}a=a.return}null!==e&&Do(t,e,n,r),t.flags|=262144}function ko(e){for(e=e.firstContext;null!==e;){if(!Kn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jo(e){xo=e,go=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Co(e){return Fo(xo,e)}function Eo(e,t){return null===xo&&jo(e),Fo(e,t)}function Fo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===go){if(null===e)throw Error(i(308));go=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else go=go.next=t;return n}var No=!1;function Ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function So(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 _o(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&eu)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=_r(e),Sr(e,null,n),t}return Fr(e,r,t,n),_r(e)}function To(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194176&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Re(e,n)}}function Ro(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 Po=!1;function Oo(){if(Po){if(null!==Va)throw Va}}function Lo(e,t,n,r){Po=!1;var a=e.updateQueue;No=!1;var s=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(null!==o){a.shared.pending=null;var l=o,u=l.next;l.next=null,null===i?s=u:i.next=u,i=l;var c=e.alternate;null!==c&&((o=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===o?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(null!==s){var d=a.baseState;for(i=0,c=u=l=null,o=s;;){var h=-536870913&o.lane,f=h!==o.lane;if(f?(ru&h)===h:(r&h)===h){0!==h&&h===Ha&&(Po=!0),null!==c&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var p=e,m=o;h=t;var x=n;switch(m.tag){case 1:if("function"===typeof(p=m.payload)){d=p.call(x,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"===typeof(p=m.payload)?p.call(x,d,h):p)||void 0===h)break e;d=_({},d,h);break e;case 2:No=!0}}null!==(h=o.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=a.callbacks)?a.callbacks=[h]:f.push(h))}else f={lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,i|=h;if(null===(o=o.next)){if(null===(o=a.shared.pending))break;o=(f=o).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}null===c&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null===s&&(a.shared.lanes=0),du|=i,e.lanes=i,e.memoizedState=d}}function Io(e,t){if("function"!==typeof e)throw Error(i(191,e));e.call(t)}function Mo(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Io(n[e],t)}function zo(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(o){rc(t,t.return,o)}}function Uo(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;try{o()}catch(u){rc(a,l,u)}}}r=r.next}while(r!==s)}}catch(u){rc(t,t.return,u)}}function qo(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Mo(t,n)}catch(r){rc(e,e.return,r)}}}function Wo(e,t,n){n.props=Bi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){rc(e,t,r)}}function Ho(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var a=r;break;default:a=r}"function"===typeof n?e.refCleanup=n(a):n.current=a}}catch(s){rc(e,t,s)}}function Vo(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"===typeof r)try{r()}catch(a){rc(e,t,a)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(s){rc(e,t,s)}else n.current=null}function Go(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(a){rc(e,e.return,a)}}function $o(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,u=null,c=null,d=null;for(p in n){var h=n[p];if(n.hasOwnProperty(p)&&null!=h)switch(p){case"checked":case"value":break;case"defaultValue":u=h;default:r.hasOwnProperty(p)||Hc(e,t,p,null,r,h)}}for(var f in r){var p=r[f];if(h=n[f],r.hasOwnProperty(f)&&(null!=p||null!=h))switch(f){case"type":s=p;break;case"name":a=p;break;case"checked":c=p;break;case"defaultChecked":d=p;break;case"value":o=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,t));break;default:p!==h&&Hc(e,t,f,p,r,h)}}return void xt(e,o,l,u,c,d,s,a);case"select":for(s in p=o=l=f=null,n)if(u=n[s],n.hasOwnProperty(s)&&null!=u)switch(s){case"value":break;case"multiple":p=u;default:r.hasOwnProperty(s)||Hc(e,t,s,null,r,u)}for(a in r)if(s=r[a],u=n[a],r.hasOwnProperty(a)&&(null!=s||null!=u))switch(a){case"value":f=s;break;case"defaultValue":l=s;break;case"multiple":o=s;default:s!==u&&Hc(e,t,a,s,r,u)}return t=l,n=o,r=p,void(null!=f?bt(e,!!n,f,!1):!!r!==!!n&&(null!=t?bt(e,!!n,t,!0):bt(e,!!n,n?[]:"",!1)));case"textarea":for(l in p=f=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:Hc(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":f=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(i(91));break;default:a!==s&&Hc(e,t,o,a,r,s)}return void yt(e,f,p);case"option":for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else Hc(e,t,m,null,r,f);for(u in r)if(f=r[u],p=n[u],r.hasOwnProperty(u)&&f!==p&&(null!=f||null!=p))if("selected"===u)e.selected=f&&"function"!==typeof f&&"symbol"!==typeof f;else Hc(e,t,u,f,r,p);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 x in n)f=n[x],n.hasOwnProperty(x)&&null!=f&&!r.hasOwnProperty(x)&&Hc(e,t,x,null,r,f);for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(null!=f||null!=p))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(i(137,t));break;default:Hc(e,t,c,f,r,p)}return;default:if(Et(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&void 0!==f&&!r.hasOwnProperty(g)&&Vc(e,t,g,void 0,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||void 0===f&&void 0===p||Vc(e,t,d,f,r,p);return}}for(var v in n)f=n[v],n.hasOwnProperty(v)&&null!=f&&!r.hasOwnProperty(v)&&Hc(e,t,v,null,r,f);for(h in r)f=r[h],p=n[h],!r.hasOwnProperty(h)||f===p||null==f&&null==p||Hc(e,t,h,f,r,p)}(r,e.type,n,t),r[Me]=t}catch(a){rc(e,e.return,a)}}function Ko(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function Qo(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ko(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){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 Yo(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Wc));else if(4!==r&&27!==r&&null!==(e=e.child))for(Yo(e,t,n),e=e.sibling;null!==e;)Yo(e,t,n),e=e.sibling}function Jo(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&&null!==(e=e.child))for(Jo(e,t,n),e=e.sibling;null!==e;)Jo(e,t,n),e=e.sibling}var Xo=!1,Zo=!1,el=!1,tl="function"===typeof WeakSet?WeakSet:Set,nl=null,rl=!1;function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gl(e,n),4&r&&zo(5,n);break;case 1:if(gl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(o){rc(n,n.return,o)}else{var a=Bi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){rc(n,n.return,l)}}64&r&&qo(n),512&r&&Ho(n,n.return);break;case 3:if(gl(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{Mo(r,e)}catch(o){rc(n,n.return,o)}}break;case 26:gl(e,n),512&r&&Ho(n,n.return);break;case 27:case 5:gl(e,n),null===t&&4&r&&Go(n),512&r&&Ho(n,n.return);break;case 12:default:gl(e,n);break;case 13:gl(e,n),4&r&&cl(e,n);break;case 22:if(!(a=null!==n.memoizedState||Xo)){t=null!==t&&null!==t.memoizedState||Zo;var s=Xo,i=Zo;Xo=a,(Zo=t)&&!i?bl(e,n,0!==(8772&n.subtreeFlags)):gl(e,n),Xo=s,Zo=i}512&r&&("manual"===n.memoizedProps.mode?Ho(n,n.return):Vo(n,n.return))}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ge(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 il=null,ol=!1;function ll(e,t,n){for(n=n.child;null!==n;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(ve&&"function"===typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ge,n)}catch(i){}switch(n.tag){case 26:Zo||Vo(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Zo||Vo(n,t);var r=il,a=ol;for(il=n.stateNode,ll(e,t,n),t=(n=n.stateNode).attributes;t.length;)n.removeAttributeNode(t[0]);Ge(n),il=r,ol=a;break;case 5:Zo||Vo(n,t);case 6:a=il;var s=ol;if(il=null,ll(e,t,n),ol=s,null!==(il=a))if(ol)try{e=il,r=n.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)}catch(o){rc(n,t,o)}else try{il.removeChild(n.stateNode)}catch(o){rc(n,t,o)}break;case 18:null!==il&&(ol?(t=il,n=n.stateNode,8===t.nodeType?sd(t.parentNode,n):1===t.nodeType&&sd(t,n),mh(t)):sd(il,n.stateNode));break;case 4:r=il,a=ol,il=n.stateNode.containerInfo,ol=!0,ll(e,t,n),il=r,ol=a;break;case 0:case 11:case 14:case 15:Zo||Uo(2,n,t),Zo||Uo(4,n,t),ll(e,t,n);break;case 1:Zo||(Vo(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount&&Wo(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:Zo||Vo(n,t),Zo=(r=Zo)||null!==n.memoizedState,ll(e,t,n),Zo=r;break;default:ll(e,t,n)}}function cl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{mh(e)}catch(n){rc(t,t.return,n)}}function dl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new tl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new tl),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){var r=lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function hl(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:case 5:il=l.stateNode,ol=!1;break e;case 3:case 4:il=l.stateNode.containerInfo,ol=!0;break e}l=l.return}if(null===il)throw Error(i(160));ul(s,o,a),il=null,ol=!1,null!==(s=a.alternate)&&(s.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)pl(t,e),t=t.sibling}var fl=null;function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),ml(e),4&r&&(Uo(3,e,e.return),zo(3,e),Uo(5,e,e.return));break;case 1:hl(t,e),ml(e),512&r&&(Zo||null===n||Vo(n,n.return)),64&r&&Xo&&(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=fl;if(hl(t,e),ml(e),512&r&&(Zo||null===n||Vo(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[Ie]||"http://www.w3.org/2000/svg"===s.namespaceURI||s.hasAttribute("itemprop"))&&(s=a.createElement(r),a.head.insertBefore(s,a.querySelector("head > title"))),Gc(s,r,n),s[Ie]=e,Je(s),r=s;break e;case"link":var o=Fd("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?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}Gc(s=a.createElement(r),r,n),a.head.appendChild(s);break;case"meta":if(o=Fd("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}Gc(s=a.createElement(r),r,n),a.head.appendChild(s);break;default:throw Error(i(468,r))}s[Ie]=e,Je(s),r=s}e.stateNode=r}else Nd(a,e.type,e.stateNode);else e.stateNode=wd(a,r,e.memoizedProps);else s!==r?(null===s?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):s.count--,null===r?Nd(a,e.type,e.stateNode):wd(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&$o(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(4&r&&null===e.alternate){a=e.stateNode,s=e.memoizedProps;try{for(var u=a.firstChild;u;){var c=u.nextSibling,d=u.nodeName;u[Ve]||"HEAD"===d||"BODY"===d||"SCRIPT"===d||"STYLE"===d||"LINK"===d&&"stylesheet"===u.rel.toLowerCase()||a.removeChild(u),u=c}for(var h=e.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);Gc(a,h,s),a[Ie]=e,a[Me]=s}catch(m){rc(e,e.return,m)}}case 5:if(hl(t,e),ml(e),512&r&&(Zo||null===n||Vo(n,n.return)),32&e.flags){a=e.stateNode;try{wt(a,"")}catch(m){rc(e,e.return,m)}}4&r&&null!=e.stateNode&&$o(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&r&&(el=!0);break;case 6:if(hl(t,e),ml(e),4&r){if(null===e.stateNode)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){rc(e,e.return,m)}}break;case 3:if(Ed=null,a=fl,fl=hd(t.containerInfo),hl(t,e),fl=a,ml(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{mh(t.containerInfo)}catch(m){rc(e,e.return,m)}el&&(el=!1,xl(e));break;case 4:r=fl,fl=hd(e.stateNode.containerInfo),hl(t,e),ml(e),fl=r;break;case 12:hl(t,e),ml(e);break;case 13:hl(t,e),ml(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(bu=le()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,dl(e,r)));break;case 22:if(512&r&&(Zo||null===n||Vo(n,n.return)),u=null!==e.memoizedState,c=null!==n&&null!==n.memoizedState,Xo=(d=Xo)||u,Zo=(h=Zo)||c,hl(t,e),Zo=h,Xo=d,ml(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&r&&(t._visibility=u?-2&t._visibility:1|t._visibility,u&&(t=Xo||Zo,null===n||c||t||vl(e)),null===e.memoizedProps||"manual"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,u)"function"===typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{o=c.stateNode;var p=void 0!==(l=c.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null;o.style.display=null==p||"boolean"===typeof p?"":(""+p).trim()}}catch(m){rc(c,c.return,m)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(m){rc(c,c.return,m)}}}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,dl(e,n))));break;case 19:hl(t,e),ml(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,dl(e,r)));break;case 21:break;default:hl(t,e),ml(e)}}function ml(e){var t=e.flags;if(2&t){try{if(27!==e.tag){e:{for(var n=e.return;null!==n;){if(Ko(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 27:var a=r.stateNode;Jo(e,Qo(e),a);break;case 5:var s=r.stateNode;32&r.flags&&(wt(s,""),r.flags&=-33),Jo(e,Qo(e),s);break;case 3:case 4:var o=r.stateNode.containerInfo;Yo(e,Qo(e),o);break;default:throw Error(i(161))}}}catch(l){rc(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function xl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;xl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function gl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)al(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uo(4,t,t.return),vl(t);break;case 1:Vo(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&Wo(t,t.return,n),vl(t);break;case 26:case 27:case 5:Vo(t,t.return),vl(t);break;case 22:Vo(t,t.return),null===t.memoizedState&&vl(t);break;default:vl(t)}e=e.sibling}}function bl(e,t,n){for(n=n&&0!==(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:bl(a,s,n),zo(4,s);break;case 1:if(bl(a,s,n),"function"===typeof(a=(r=s).stateNode).componentDidMount)try{a.componentDidMount()}catch(u){rc(r,r.return,u)}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++)Io(l[a],o)}catch(u){rc(r,r.return,u)}}n&&64&i&&qo(s),Ho(s,s.return);break;case 26:case 27:case 5:bl(a,s,n),n&&null===r&&4&i&&Go(s),Ho(s,s.return);break;case 12:default:bl(a,s,n);break;case 13:bl(a,s,n),n&&4&i&&cl(a,s);break;case 22:null===s.memoizedState&&bl(a,s,n),Ho(s,s.return)}t=t.sibling}}function yl(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&&Ua(n))}function Dl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ua(e))}function wl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:wl(e,t,n,r),2048&a&&zo(9,t);break;case 3:wl(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&&Ua(e)));break;case 12:if(2048&a){wl(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(l){rc(t,t.return,l)}}else wl(e,t,n,r);break;case 23:break;case 22:s=t.stateNode,null!==t.memoizedState?4&s._visibility?wl(e,t,n,r):Cl(e,t):4&s._visibility?wl(e,t,n,r):(s._visibility|=4,jl(e,t,n,r,0!==(10256&t.subtreeFlags))),2048&a&&yl(t.alternate,t);break;case 24:wl(e,t,n,r),2048&a&&Dl(t.alternate,t);break;default:wl(e,t,n,r)}}function jl(e,t,n,r,a){for(a=a&&0!==(10256&t.subtreeFlags),t=t.child;null!==t;){var s=e,i=t,o=n,l=r,u=i.flags;switch(i.tag){case 0:case 11:case 15:jl(s,i,o,l,a),zo(8,i);break;case 23:break;case 22:var c=i.stateNode;null!==i.memoizedState?4&c._visibility?jl(s,i,o,l,a):Cl(s,i):(c._visibility|=4,jl(s,i,o,l,a)),a&&2048&u&&yl(i.alternate,i);break;case 24:jl(s,i,o,l,a),a&&2048&u&&Dl(i.alternate,i);break;default:jl(s,i,o,l,a)}t=t.sibling}}function Cl(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:Cl(n,r),2048&a&&yl(r.alternate,r);break;case 24:Cl(n,r),2048&a&&Dl(r.alternate,r);break;default:Cl(n,r)}t=t.sibling}}var El=8192;function Fl(e){if(e.subtreeFlags&El)for(e=e.child;null!==e;)Nl(e),e=e.sibling}function Nl(e){switch(e.tag){case 26:Fl(e),e.flags&El&&null!==e.memoizedState&&function(e,t,n){if(null===Sd)throw Error(i(475));var r=Sd;if("stylesheet"===t.type&&("string"!==typeof n.media||!1!==matchMedia(n.media).matches)&&0===(4&t.state.loading)){if(null===t.instance){var a=gd(n.href),s=e.querySelector(vd(a));if(s)return null!==(e=s._p)&&"object"===typeof e&&"function"===typeof e.then&&(r.count++,r=Bd.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=s,void Je(s);s=e.ownerDocument||e,n=bd(n),(a=cd.get(a))&&jd(n,a),Je(s=s.createElement("link"));var o=s;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Gc(s,"link",n),t.instance=s}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&0===(3&t.state.loading)&&(r.count++,t=Bd.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(fl,e.memoizedState,e.memoizedProps);break;case 5:default:Fl(e);break;case 3:case 4:var t=fl;fl=hd(e.stateNode.containerInfo),Fl(e),fl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=El,El=16777216,Fl(e),El=t):Fl(e))}}function Al(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 Sl(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Tl(r,e)}Al(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)_l(e),e=e.sibling}function _l(e){switch(e.tag){case 0:case 11:case 15:Sl(e),2048&e.flags&&Uo(9,e,e.return);break;case 3:case 12:default:Sl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,Bl(e)):Sl(e)}}function Bl(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Tl(r,e)}Al(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:Uo(8,t,t.return),Bl(t);break;case 22:4&(n=t.stateNode)._visibility&&(n._visibility&=-5,Bl(t));break;default:Bl(t)}e=e.sibling}}function Tl(e,t){for(;null!==nl;){var n=nl;switch(n.tag){case 0:case 11:case 15:Uo(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:Ua(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,nl=r;else e:for(n=e;null!==nl;){var a=(r=nl).sibling,s=r.return;if(sl(r),r===n){nl=null;break e}if(null!==a){a.return=s,nl=a;break e}nl=s}}}function Rl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
2ype=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 Pl(e,t,n,r){return new Rl(e,t,n,r)}function Ol(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ll(e,t){var n=e.alternate;return null===n?((n=Pl(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=31457280&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 Il(e,t){e.flags&=31457282;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 Ml(e,t,n,r,a,s){var o=0;if(r=e,"function"===typeof e)Ol(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 d:return zl(n.children,a,s,t);case h:o=8,a|=24;break;case f:return(e=Pl(12,n,t,2|a)).elementType=f,e.lanes=s,e;case v:return(e=Pl(13,n,t,a)).elementType=v,e.lanes=s,e;case b:return(e=Pl(19,n,t,a)).elementType=b,e.lanes=s,e;case w:return Ul(n,a,s,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case p:case x:o=10;break e;case m:o=9;break e;case g:o=11;break e;case y:o=14;break e;case D:o=16,r=null;break e}o=29,n=Error(i(130,null===e?"null":typeof e,"")),r=null}return(t=Pl(o,n,t,a)).elementType=e,t.type=r,t.lanes=s,t}function zl(e,t,n,r){return(e=Pl(7,e,r,t)).lanes=n,e}function Ul(e,t,n,r){(e=Pl(22,e,r,t)).elementType=w,e.lanes=n;var a={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=a._current;if(null===e)throw Error(i(456));if(0===(2&a._pendingVisibility)){var t=Ar(e,2);null!==t&&(a._pendingVisibility|=2,Bu(t,e,2))}},attach:function(){var e=a._current;if(null===e)throw Error(i(456));if(0!==(2&a._pendingVisibility)){var t=Ar(e,2);null!==t&&(a._pendingVisibility&=-3,Bu(t,e,2))}}};return e.stateNode=a,e}function ql(e,t,n){return(e=Pl(6,e,null,t)).lanes=n,e}function Wl(e,t,n){return(t=Pl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hl(e){e.flags|=4}function Vl(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!Ad(t)){if(null!==(t=Na.current)&&((4194176&ru)===ru?null!==Aa:(62914560&ru)!==ru&&0===(536870912&ru)||t!==Aa))throw ha=la,oa;e.flags|=8192}}function Gl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Se():536870912,e.lanes|=t,mu|=t)}function $l(e,t){if(!Yr)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 Kl(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|=31457280&a.subtreeFlags,r|=31457280&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 Ql(e,t,n){var r=t.pendingProps;switch($r(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Kl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),bo(Ma),ee(),n.pe
vendor: 13,111 bytes, line 2
2ndingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ra(t)?Hl(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==Jr&&(Ru(Jr),Jr=null))),Kl(t),null;case 26:return n=t.memoizedState,null===e?(Hl(t),null!==n?(Kl(t),Vl(t,n)):(Kl(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Hl(t),Kl(t),Vl(t,n)):(Kl(t),t.flags&=-16777217):(e.memoizedProps!==r&&Hl(t),Kl(t),t.flags&=-16777217),null;case 27:ne(t),n=J.current;var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Hl(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Kl(t),null}e=Q.current,ra(t)?ta(t):(e=ud(a,r,n),t.stateNode=e,Hl(t))}return Kl(t),null;case 5:if(ne(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Hl(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Kl(t),null}if(e=Q.current,ra(t))ta(t);else{switch(a=Qc(J.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"===typeof r.is?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"===typeof r.is?a.createElement(n,{is:r.is}):a.createElement(n)}}e[Ie]=t,e[Me]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(Gc(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Hl(t)}}return Kl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&Hl(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(e=J.current,ra(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(a=Kr))switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Ie]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||qc(e.nodeValue,n)))||ea(t)}else(e=Qc(e).createTextNode(r))[Ie]=t,t.stateNode=e}return Kl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ra(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[Ie]=t}else aa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),a=!1}else null!==Jr&&(Ru(Jr),Jr=null),a=!0;if(!a)return 256&t.flags?(Ta(t),t):(Ta(t),null)}if(Ta(t),0!==(128&t.flags))return t.lanes=n,t;if(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);var s=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(s=r.memoizedState.cachePool.pool),s!==a&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Gl(t,t.updateQueue),Kl(t),null;case 4:return ee(),null===e&&Bc(t.stateNode.containerInfo),Kl(t),null;case 10:return bo(t.type),Kl(t),null;case 19:if($(Ra),null===(a=t.memoizedState))return Kl(t),null;if(r=0!==(128&t.flags),null===(s=a.rendering))if(r)$l(a,!1);else{if(0!==cu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=Pa(e))){for(t.flags|=128,$l(a,!1),e=s.updateQueue,t.updateQueue=e,Gl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Il(n,e),n=n.sibling;return K(Ra,1&Ra.current|2),t.child}e=e.sibling}null!==a.tail&&le()>yu&&(t.flags|=128,r=!0,$l(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Pa(s))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Gl(t,e),$l(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!Yr)return Kl(t),null}else 2*le()-a.renderingStartTime>yu&&536870912!==n&&(t.flags|=128,r=!0,$l(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(e=a.last)?e.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=le(),t.sibling=null,e=Ra.current,K(Ra,r?1&e|2:1&e),t):(Kl(t),null);case 22:case 23:return Ta(t),Fa(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null!==(n=t.updateQueue)&&Gl(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&&$(Ka),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bo(Ma),Kl(t),null;case 25:return null}throw Error(i(156,t.tag))}function Yl(e,t){switch($r(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return bo(Ma),ee(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(Ta(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));aa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return $(Ra),null;case 4:return ee(),null;case 10:return bo(t.type),null;case 22:case 23:return Ta(t),Fa(),null!==e&&$(Ka),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return bo(Ma),null;default:return null}}function Jl(e,t){switch($r(t),t.tag){case 3:bo(Ma),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:Ta(t);break;case 19:$(Ra);break;case 10:bo(t.type);break;case 22:case 23:Ta(t),Fa(),null!==e&&$(Ka);break;case 24:bo(Ma)}}var Xl={getCacheForType:function(e){var t=Co(Ma),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},Zl="function"===typeof WeakMap?WeakMap:Map,eu=0,tu=null,nu=null,ru=0,au=0,su=null,iu=!1,ou=!1,lu=!1,uu=0,cu=0,du=0,hu=0,fu=0,pu=0,mu=0,xu=null,gu=null,vu=!1,bu=0,yu=1/0,Du=null,wu=null,ku=!1,ju=null,Cu=0,Eu=0,Fu=null,Nu=0,Au=null;function Su(){if(0!==(2&eu)&&0!==ru)return ru&-ru;if(null!==S.T){return 0!==Ha?Ha:Dc()}return Oe()}function _u(){0===pu&&(pu=0===(536870912&ru)||Yr?Ae():536870912);var e=Na.current;return null!==e&&(e.flags|=32),pu}function Bu(e,t,n){(e===tu&&2===au||null!==e.cancelPendingCommit)&&(zu(e,0),Lu(e,ru,pu,!1)),Be(e,n),0!==(2&eu)&&e===tu||(e===tu&&(0===(2&eu)&&(hu|=n),4===cu&&Lu(e,ru,pu,!1)),mc(e))}function Tu(e,t,n){if(0!==(6&eu))throw Error(i(327));for(var r=!n&&0===(60&t)&&0===(t&e.expiredLanes)||Fe(e,t),a=r?function(e,t){var n=eu;eu|=2;var r=qu(),a=Wu();tu!==e||ru!==t?(Du=null,yu=le()+500,zu(e,t)):ou=Fe(e,t);e:for(;;)try{if(0!==au&&null!==nu){t=nu;var s=su;t:switch(au){case 1:au=0,su=null,Yu(e,t,s,1);break;case 2:if(ua(s)){au=0,su=null,Qu(t);break}t=function(){2===au&&tu===e&&(au=7),mc(e)},s.then(t,t);break e;case 3:au=7;break e;case 4:au=5;break e;case 7:ua(s)?(au=0,su=null,Qu(t)):(au=0,su=null,Yu(e,t,s,7));break;case 5:var o=null;switch(nu.tag){case 26:o=nu.memoizedState;case 5:case 27:var l=nu;if(!o||Ad(o)){au=0,su=null;var u=l.sibling;if(null!==u)nu=u;else{var c=l.return;null!==c?(nu=c,Ju(c)):nu=null}break t}}au=0,su=null,Yu(e,t,s,5);break;case 6:au=0,su=null,Yu(e,t,s,6);break;case 8:Mu(),cu=6;break e;default:throw Error(i(462))}}$u();break}catch(d){Uu(e,d)}return go=xo=null,S.H=r,S.A=a,eu=n,null!==nu?0:(tu=null,ru=0,Er(),cu)}(e,t):Vu(e,t,!0),s=r;;){if(0===a){ou&&!r&&Lu(e,t,0,!1);break}if(6===a)Lu(e,t,0,!iu);else{if(n=e.current.alternate,s&&!Ou(n)){a=Vu(e,t,!1),s=!1;continue}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=xu;var u=l.current.memoizedState.isDehydrated;if(u&&(zu(l,o).flags|=256),2!==(o=Vu(l,o,!1))){if(lu&&!u){l.errorRecoveryDisabledLanes|=s,hu|=s,a=4;break e}s=gu,gu=a,null!==s&&Ru(s)}a=o}if(s=!1,2!==a)continue}}if(1===a){zu(e,0),Lu(e,t,0,!0);break}e:{switch(r=e,a){case 0:case 1:throw Error(i(345));case 4:if((4194176&t)===t){Lu(r,t,pu,!iu);break e}break;case 2:gu=null;break;case 3:case 5:break;default:throw Error(i(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(s=bu+300-le())){if(Lu(r,t,pu,!iu),0!==Ee(r,0))break e;r.timeoutHandle=ed(Pu.bind(null,r,n,gu,Du,vu,t,pu,hu,mu,iu,2,-0,0),s)}else Pu(r,n,gu,Du,vu,t,pu,hu,mu,iu,0,-0,0)}}break}mc(e)}function Ru(e){null===gu?gu=e:gu.push.apply(gu,e)}function Pu(e,t,n,r,a,s,o,l,u,c,d,h,f){var p=t.subtreeFlags;if((8192&p||16785408===(16785408&p))&&(Sd={stylesheets:null,count:0,unsuspend:_d},Nl(t),null!==(t=function(){if(null===Sd)throw Error(i(475));var e=Sd;return e.stylesheets&&0===e.count&&Rd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Rd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=t(Zu.bind(null,e,n,r,a,o,l,u,1,h,f)),void Lu(e,s,o,!c);Zu(e,n,r,a,o,l,u,d,h,f)}function Ou(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(!Kn(s(),a))return!1}catch(i){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 Lu(e,t,n,r){t&=~fu,t&=~hu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var s=31-ye(a),i=1<<s;r[s]=-1,a&=~i}0!==n&&Te(e,n,t)}function Iu(){return 0!==(6&eu)||(xc(0,!1),!1)}function Mu(){if(null!==nu){if(0===au)var e=nu.return;else go=xo=null,gs(e=nu),pa=null,ma=0,e=nu;for(;null!==e;)Jl(e.alternate,e),e=e.return;nu=null}}function zu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,td(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Mu(),tu=e,nu=n=Ll(e.current,null),ru=t,au=0,su=null,iu=!1,ou=Fe(e,t),lu=!1,mu=pu=fu=hu=du=cu=0,gu=xu=null,vu=!1,0!==(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-ye(r),s=1<<a;t|=e[a],r&=~s}return uu=t,Er(),n}function Uu(e,t){Za=null,S.H=ji,t===ia?(t=fa(),au=3):t===oa?(t=fa(),au=4):au=t===qi?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,su=t,null===nu&&(cu=1,Li(e,Rr(t,e.current)))}function qu(){var e=S.H;return S.H=ji,null===e?ji:e}function Wu(){var e=S.A;return S.A=Xl,e}function Hu(){cu=4,iu||(4194176&ru)!==ru&&null!==Na.current||(ou=!0),0===(134217727&du)&&0===(134217727&hu)||null===tu||Lu(tu,ru,pu,!1)}function Vu(e,t,n){var r=eu;eu|=2;var a=qu(),s=Wu();tu===e&&ru===t||(Du=null,zu(e,t)),t=!1;var i=cu;e:for(;;)try{if(0!==au&&null!==nu){var o=nu,l=su;switch(au){case 8:Mu(),i=6;break e;case 3:case 2:case 6:null===Na.current&&(t=!0);var u=au;if(au=0,su=null,Yu(e,o,l,u),n&&ou){i=0;break e}break;default:u=au,au=0,su=null,Yu(e,o,l,u)}}Gu(),i=cu;break}catch(c){Uu(e,c)}return t&&e.shellSuspendCounter++,go=xo=null,eu=r,S.H=a,S.A=s,null===nu&&(tu=null,ru=0,Er()),i}function Gu(){for(;null!==nu;)Ku(nu)}function $u(){for(;null!==nu&&!ie();)Ku(nu)}function Ku(e){var t=po(e.alternate,e,uu);e.memoizedProps=e.pendingProps,null===t?Ju(e):nu=t}function Qu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Xi(n,t,t.pendingProps,t.type,void 0,ru);break;case 11:t=Xi(n,t,t.pendingProps,t.type.render,t.ref,ru);break;case 5:gs(t);default:Jl(n,t),t=po(n,t=nu=Il(t,uu),uu)}e.memoizedProps=e.pendingProps,null===t?Ju(e):nu=t}function Yu(e,t,n,r){go=xo=null,gs(t),pa=null,ma=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)&&wo(t,n,a,!0),null!==(n=Na.current)){switch(n.tag){case 13:return null===Aa?Hu():null===n.alternate&&0===cu&&(cu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===la?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),ac(e,r,a)),!1;case 22:return n.flags|=65536,r===la?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),ac(e,r,a)),!1}throw Error(i(435,n.tag))}return ac(e,r,a),Hu(),!1}if(Yr)return null!==(t=Na.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Zr&&sa(Rr(e=Error(i(422),{cause:r}),n))):(r!==Zr&&sa(Rr(t=Error(i(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=Rr(r,n),Ro(e,a=Mi(e.stateNode,r,a)),4!==cu&&(cu=2)),!1;var s=Error(i(520),{cause:r});if(s=Rr(s,n),null===xu?xu=[s]:xu.push(s),4!==cu&&(cu=2),null===t)return!0;r=Rr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,Ro(n,e=
2Mi(n.stateNode,r,e)),!1;case 1:if(t=n.type,s=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==s&&"function"===typeof s.componentDidCatch&&(null===wu||!wu.has(s))))return n.flags|=65536,a&=-a,n.lanes|=a,Ui(a=zi(a),e,n,r),Ro(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,ru))return cu=1,Li(e,Rr(n,e.current)),void(nu=null)}catch(s){if(null!==a)throw nu=a,s;return cu=1,Li(e,Rr(n,e.current)),void(nu=null)}32768&t.flags?(Yr||1===r?e=!0:ou||0!==(536870912&ru)?e=!1:(iu=e=!0,(2===r||3===r||6===r)&&(null!==(r=Na.current)&&13===r.tag&&(r.flags|=16384))),Xu(t,e)):Ju(t)}function Ju(e){var t=e;do{if(0!==(32768&t.flags))return void Xu(t,iu);e=t.return;var n=Ql(t.alternate,t,uu);if(null!==n)return void(nu=n);if(null!==(t=t.sibling))return void(nu=t);nu=t=e}while(null!==t);0===cu&&(cu=5)}function Xu(e,t){do{var n=Yl(e.alternate,e);if(null!==n)return n.flags&=32767,void(nu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(nu=e);nu=e=n}while(null!==e);cu=6,nu=null}function Zu(e,t,n,r,a,s,o,l,u,c){var d=S.T,h=q.p;try{q.p=2,S.T=null,function(e,t,n,r,a,s,o,l){do{tc()}while(null!==ju);if(0!==(6&eu))throw Error(i(327));var u=e.finishedWork;if(r=e.finishedLanes,null===u)return null;if(e.finishedWork=null,e.finishedLanes=0,u===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var c=u.lanes|u.childLanes;if(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,u=e.hiddenUpdates;for(n=i&~n;0<n;){var c=31-ye(n),d=1<<c;o[c]=0,l[c]=-1;var h=u[c];if(null!==h)for(u[c]=null,c=0;c<h.length;c++){var f=h[c];null!==f&&(f.lane&=-536870913)}n&=~d}0!==r&&Te(e,r,0),0!==s&&0===a&&0!==e.tag&&(e.suspendedLanes|=s&~(i&~t))}(e,r,c|=Cr,s,o,l),e===tu&&(nu=tu=null,ru=0),0===(10256&u.subtreeFlags)&&0===(10256&u.flags)||ku||(ku=!0,Eu=c,Fu=n,function(e,t){ae(e,t)}(he,function(){return tc(),null})),n=0!==(15990&u.flags),0!==(15990&u.subtreeFlags)||n?(n=S.T,S.T=null,s=q.p,q.p=2,o=eu,eu|=4,function(e,t){if(e=e.containerInfo,$c=Hd,er(e=Zn(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(x){n=null;break e}var o=0,l=-1,u=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==a&&3!==h.nodeType||(l=o+a),h!==s||0!==r&&3!==h.nodeType||(u=o+r),3===h.nodeType&&(o+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++c===a&&(l=o),f===s&&++d===r&&(u=o),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kc={focusedElem:e,selectionRange:n},Hd=!1,nl=t;null!==nl;)if(e=(t=nl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,nl=e;else for(;null!==nl;){switch(s=(t=nl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==s){e=void 0,n=t,a=s.memoizedProps,s=s.memoizedState,r=n.stateNode;try{var m=Bi(n.type,a,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(m,s),r.__reactInternalSnapshotBeforeUpdate=e}catch(g){rc(n,n.return,g)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))id(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":id(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(i(163))}if(null!==(e=t.sibling)){e.return=t.return,nl=e;break}nl=t.return}m=rl,rl=!1}(e,u),pl(u,e),tr(Kc,e.containerInfo),Hd=!!$c,Kc=$c=null,e.current=u,al(e,u.alternate,u),oe(),eu=o,q.p=s,S.T=n):e.current=u,ku?(ku=!1,ju=e,Cu=r):ec(e,c),c=e.pendingLanes,0===c&&(wu=null),function(e){if(ve&&"function"===typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ge,e,void 0,128===(128&e.current.flags))}catch(t){}}(u.stateNode),mc(e),null!==t)for(a=e.onRecoverableError,u=0;u<t.length;u++)c=t[u],a(c.value,{componentStack:c.stack});0!==(3&Cu)&&tc(),c=e.pendingLanes,0!==(4194218&r)&&0!==(42&c)?e===Au?Nu++:(Nu=0,Au=e):Nu=0,xc(0,!1)}(e,t,n,r,h,a,s,o)}finally{S.T=d,q.p=h}}function ec(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ua(t)))}function tc(){if(null!==ju){var e=ju,t=Eu;Eu=0;var n=Pe(Cu),r=S.T,a=q.p;try{if(q.p=32>n?32:n,S.T=null,null===ju)var s=!1;else{n=Fu,Fu=null;var o=ju,l=Cu;if(ju=null,Cu=0,0!==(6&eu))throw Error(i(331));var u=eu;if(eu|=4,_l(o.current),kl(o,o.current,l,n),eu=u,xc(0,!1),ve&&"function"===typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ge,o)}catch(c){}s=!0}return s}finally{q.p=a,S.T=r,ec(e,t)}}return!1}function nc(e,t,n){t=Rr(n,t),null!==(e=Bo(e,t=Mi(e.stateNode,t,2),2))&&(Be(e,2),mc(e))}
vendor: 15,111 bytes, line 2
2function rc(e,t,n){if(3===e.tag)nc(e,e,n);else for(;null!==t;){if(3===t.tag){nc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===wu||!wu.has(r))){e=Rr(n,e),null!==(r=Bo(t,n=zi(2),2))&&(Ui(n,r,t,e),Be(r,2),mc(r));break}}t=t.return}}function ac(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Zl;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)||(lu=!0,a.add(n),e=sc.bind(null,e,t,n),t.then(e,e))}function sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tu===e&&(ru&n)===n&&(4===cu||3===cu&&(62914560&ru)===ru&&300>le()-bu?0===(2&eu)&&zu(e,0):fu|=n,mu===ru&&(mu=0)),mc(e)}function ic(e,t){0===t&&(t=Se()),null!==(e=Ar(e,t))&&(Be(e,t),mc(e))}function oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ic(e,n)}function lc(e,t){var n=0;switch(e.tag){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),ic(e,n)}var uc=null,cc=null,dc=!1,hc=!1,fc=!1,pc=0;function mc(e){var t;e!==cc&&null===e.next&&(null===cc?uc=cc=e:cc=cc.next=e),hc=!0,dc||(dc=!0,t=gc,rd(function(){0!==(6&eu)?ae(ce,t):t()}))}function xc(e,t){if(!fc&&hc){fc=!0;do{for(var n=!1,r=uc;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-ye(42|e)+1)-1,s=201326677&(s&=a&~(i&~o))?201326677&s|1:s?2|s:0}0!==s&&(n=!0,yc(r,s))}else s=ru,0===(3&(s=Ee(r,r===tu?s:0)))||Fe(r,s)||(n=!0,yc(r,s));r=r.next}}while(n);fc=!1}}function gc(){hc=dc=!1;var e=0;0!==pc&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Zc&&(Zc=e,!0);return Zc=null,!1}()&&(e=pc),pc=0);for(var t=le(),n=null,r=uc;null!==r;){var a=r.next,s=vc(r,t);0===s?(r.next=null,null===n?uc=a:n.next=a,null===a&&(cc=n)):(n=r,(0!==e||0!==(3&s))&&(hc=!0)),r=a}xc(e,!1)}function vc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,s=-62914561&e.pendingLanes;0<s;){var i=31-ye(s),o=1<<i,l=a[i];-1===l?0!==(o&n)&&0===(o&r)||(a[i]=Ne(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}if(n=ru,n=Ee(e,e===(t=tu)?n:0),r=e.callbackNode,0===n||e===t&&2===au||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||Fe(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),Pe(n)){case 2:case 8:n=de;break;case 32:default:n=he;break;case 268435456:n=pe}return r=bc.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 bc(e,t){var n=e.callbackNode;if(tc()&&e.callbackNode!==n)return null;var r=ru;return 0===(r=Ee(e,e===tu?r:0))?null:(Tu(e,r,t),vc(e,le()),null!=e.callbackNode&&e.callbackNode===n?bc.bind(null,e):null)}function yc(e,t){if(tc())return null;Tu(e,t,!0)}function Dc(){return 0===pc&&(pc=Ae()),pc}function wc(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:At(""+e)}function kc(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 jc=0;jc<Dr.length;jc++){var Cc=Dr[jc];wr(Cc.toLowerCase(),"on"+(Cc[0].toUpperCase()+Cc.slice(1)))}wr(fr,"onAnimationEnd"),wr(pr,"onAnimationIteration"),wr(mr,"onAnimationStart"),wr("dblclick","onDoubleClick"),wr("focusin","onFocus"),wr("focusout","onBlur"),wr(xr,"onTransitionRun"),wr(gr,"onTransitionStart"),wr(vr,"onTransitionCancel"),wr(br,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),et("onBeforeInput",["compositionend","keypress","textInput","paste"]),et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ec="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(" "),Fc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ec));function Nc(e,t){t=0!==(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,u=o.currentTarget;if(o=o.listener,l!==s&&a.isPropagationStopped())break e;s=o,a.currentTarget=u;try{s(a)}catch(c){Ti(c)}a.currentTarget=null,s=l}else for(i=0;i<r.length;i++){if(l=(o=r[i]).instance,u=o.currentTarget,o=o.listener,l!==s&&a.isPropagationStopped())break e;s=o,a.currentTarget=u;try{s(a)}catch(c){Ti(c)}a.currentTarget=null,s=l}}}}function Ac(e,t){var n=t[Ue];void 0===n&&(n=t[Ue]=new Set);var r=e+"__bubble";n.has(r)||(Tc(t,e,2,!1),n.add(r))}function Sc(e,t,n){var r=0;t&&(r|=4),Tc(n,e,r,t)}var _c="_reactListening"+Math.random().toString(36).slice(2);function Bc(e){if(!e[_c]){e[_c]=!0,Xe.forEach(function(t){"selectionchange"!==t&&(Fc.has(t)||Sc(t,!1,e),Sc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[_c]||(t[_c]=!0,Sc("selectionchange",!1,t))}}function Tc(e,t,n,r){switch(Jd(t)){case 2:var a=Vd;break;case 8:a=Gd;break;default:a=$d}n=a.bind(null,t,n,e),a=void 0,!It||"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 Rc(e,t,n,r,a){var s=r;if(0===(1&t)&&0===(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||8===o.nodeType&&o.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==o;){if(null===(i=$e(o)))return;if(5===(l=i.tag)||6===l||26===l||27===l){r=s=i;continue e}o=o.parentNode}}r=r.return}Ot(function(){var r=s,a=_t(n),i=[];e:{var o=yr.get(e);if(void 0!==o){var l=Xt,u=e;switch(e){case"keypress":if(0===Ht(n))break e;case"keydown":case"keyup":l=pn;break;case"focusin":u="focus",l=an;break;case"focusout":u="blur",l=an;break;case"beforeblur":case"afterblur":l=an;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":l=nn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=rn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=xn;break;case fr:case pr:case mr:l=sn;break;case br:l=gn;break;case"scroll":case"scrollend":l=en;break;case"wheel":l=vn;break;case"copy":case"cut":case"paste":l=on;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=mn;break;case"toggle":case"beforetoggle":l=bn}var c=0!==(4&t),d=!c&&("scroll"===e||"scrollend"===e),h=c?null!==o?o+"Capture":null:o;c=[];for(var f,p=r;null!==p;){var m=p;if(f=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===f||null===h||null!=(m=Lt(p,h))&&c.push(Pc(p,m,f)),d)break;p=p.return}0<c.length&&(o=new l(o,u,null,n,a),i.push({event:o,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===St||!(u=n.relatedTarget||n.fromElement)||!$e(u)&&!u[ze])&&(l||o)&&(o=a.window===a?a:(o=a.ownerDocument)?o.defaultView||o.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?$e(u):null)&&(d=L(u),c=u.tag,u!==d||5!==c&&27!==c&&6!==c)&&(u=null)):(l=null,u=r),l!==u)){if(c=nn,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=mn,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?o:Qe(l),f=null==u?o:Qe(u),(o=new c(m,p+"leave",l,n,a)).target=d,o.relatedTarget=f,m=null,$e(a)===r&&((c=new c(h,p+"enter",u,n,a)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,p=0,f=c=l;f;f=Lc(f))p++;for(f=0,m=h;m;m=Lc(m))f++;for(;0<p-f;)c=Lc(c),p--;for(;0<f-p;)h=Lc(h),f--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break e;c=Lc(c),h=Lc(h)}c=null}else c=null;null!==l&&Ic(i,o,l,c,!1),null!==u&&null!==d&&Ic(i,d,u,c,!0)}if("select"===(l=(o=r?Qe(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var x=Ln;else if(_n(o))if(In)x=$n;else{x=Vn;var g=Hn}else!(l=o.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type?r&&Et(r.elementType)&&(x=Ln):x=Gn;switch(x&&(x=x(e,r))?Bn(i,x,n,a):(g&&g(e,o,r),"focusout"===e&&r&&"number"===o.type&&null!=r.memoizedProps.value&&vt(o,"number",o.value)),g=r?Qe(r):window,e){case"focusin":(_n(g)||"true"===g.contentEditable)&&(rr=g,ar=r,sr=null);break;case"focusout":sr=ar=rr=null;break;case"mousedown":ir=!0;break;case"contextmenu":case"mouseup":case"dragend":ir=!1,or(i,n,a);break;case"selectionchange":if(nr)break;case"keydown":case"keyup":or(i,n,a)}var v;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else An?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&(An||"onCompositionStart"!==b?"onCompositionEnd"===b&&An&&(v=Wt()):(Ut="value"in(zt=a)?zt.value:zt.textContent,An=!0)),0<(g=Oc(r,b)).length&&(b=new ln(b,e,null,n,a),i.push({event:b,listeners:g}),v?b.data=v:null!==(v=Nn(n))&&(b.data=v))),(v=kn?function(e,t){switch(e){case"compositionend":return Nn(t);case"keypress":return 32!==t.which?null:(En=!0,Cn);case"textInput":return(e=t.data)===Cn&&En?null:e;default:return null}}(e,n):function(e,t){if(An)return"compositionend"===e||!Dn&&Fn(e,t)?(e=Wt(),qt=Ut=zt=null,An=!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 jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(b=Oc(r,"onBeforeInput")).length&&(g=new ln("onBeforeInput","beforeinput",null,n,a),i.push({event:g,listeners:b}),g.data=v)),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var s=wc((a[Me]||null).action),i=r.submitter;i&&null!==(t=(t=i[Me]||null)?wc(t.formAction):i.getAttribute("formAction"))&&(s=t,i=null);var o=new Xt("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==pc){var e=i?kc(a,i):new FormData(a);ci(n,{pending:!0,data:e,method:a.method,action:s},null,e)}}else"function"===typeof s&&(o.preventDefault(),e=i?kc(a,i):new FormData(a),ci(n,{pending:!0,data:e,method:a.method,action:s},s,e))},currentTarget:a}]})}}(i,e,r,n,a)}Nc(i,t)})}function Pc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Oc(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,s=a.stateNode;5!==(a=a.tag)&&26!==a&&27!==a||null===s||(null!=(a=Lt(e,n))&&r.unshift(Pc(e,a,s)),null!=(a=Lt(e,t))&&r.push(Pc(e,a,s))),e=e.return}return r}function Lc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Ic(e,t,n,r,a){for(var s=t._reactName,i=[];null!==n&&n!==r;){var o=n,l=o.alternate,u=o.stateNode;if(o=o.tag,null!==l&&l===r)break;5!==o&&26!==o&&27!==o||null===u||(l=u,a?null!=(u=Lt(n,s))&&i.unshift(Pc(n,u,l)):a||null!=(u=Lt(n,s))&&i.push(Pc(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Mc=/\r\n?/g,zc=/\u0000|\uFFFD/g;function Uc(e){return("string"===typeof e?e:""+e).replace(Mc,"\n").replace(zc,"")}function qc(e,t){return t=Uc(t),Uc(e)===t}function Wc(){}function Hc(e,t,n,r,a,s){switch(n){case"children":"string"===typeof r?"body"===t||"textarea"===t&&""===r||wt(e,r):("number"===typeof r||"bigint"===typeof r)&&"body"!==t&&wt(e,""+r);break;case"className":ot(e,"class",r);break;case"tabIndex":ot(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ot(e,n,r);break;case"style":Ct(e,r,s);break;case"data":if("object"!==t){ot(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=At(""+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&&Hc(e,t,"name",a.name,a,null),Hc(e,t,"formEncType",a.formEncType,a,null),Hc(e,t,"formMethod",a.formMethod,a,null),Hc(e,t,"formTarget",a.formTarget,a,null)):(Hc(e,t,"encType",a.encType,a,null),Hc(e,t,"method",a.method,a,null),Hc(e,t,"target",a.target,a,null))),null==r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=At(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Wc);break;case"onScroll":null!=r&&Ac("scroll",e);break;case"onScrollEnd":null!=r&&Ac("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=At(""+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"playsInl
2ine":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":Ac("beforetoggle",e),Ac("toggle",e),it(e,"popover",r);break;case"xlinkActuate":lt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":lt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":lt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":lt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":lt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":lt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":lt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":lt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":lt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":it(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])&&it(e,n=Ft.get(n)||n,r)}}function Vc(e,t,n,r,a,s){switch(n){case"style":Ct(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?wt(e,r):("number"===typeof r||"bigint"===typeof r)&&wt(e,""+r);break;case"onScroll":null!=r&&Ac("scroll",e);break;case"onScrollEnd":null!=r&&Ac("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Wc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ze.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[Me]||null)?s[n]:null)&&e.removeEventListener(t,s,a),"function"!==typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):it(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 Gc(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ac("error",e),Ac("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:Hc(e,t,r,o,n,null)}}return s&&Hc(e,t,"srcSet",n.srcSet,n,null),void(a&&Hc(e,t,"src",n.src,n,null));case"input":Ac("invalid",e);var l=r=o=s=null,u=null,c=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":u=d;break;case"defaultChecked":c=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:Hc(e,t,a,d,n,null)}}return gt(e,r,l,u,c,o,s,!1),void dt(e);case"select":for(s in Ac("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:Hc(e,t,s,l,n,null)}return t=r,n=o,e.multiple=!!a,void(null!=t?bt(e,!!a,t,!1):null!=n&&bt(e,!!a,n,!0));case"textarea":for(o in Ac("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:Hc(e,t,o,l,n,null)}return Dt(e,a,s,r),void dt(e);case"option":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))if("selected"===u)e.selected=a&&"function"!==typeof a&&"symbol"!==typeof a;else Hc(e,t,u,a,n,null);return;case"dialog":Ac("cancel",e),Ac("close",e);break;case"iframe":case"object":Ac("load",e);break;case"video":case"audio":for(a=0;a<Ec.length;a++)Ac(Ec[a],e);break;case"image":Ac("error",e),Ac("load",e);break;case"details":Ac("toggle",e);break;case"embed":case"source":case"link":Ac("error",e),Ac("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(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Hc(e,t,c,a,n,null)}return;default:if(Et(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(a=n[d])&&Vc(e,t,d,a,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(a=n[l])&&Hc(e,t,l,a,n,null))}var $c=null,Kc=null;
2function Qc(e){return 9===e.nodeType?e:e.ownerDocument}function Yc(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 Jc(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 Xc(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 Zc=null;var ed="function"===typeof setTimeout?setTimeout:void 0,td="function"===typeof clearTimeout?clearTimeout:void 0,nd="function"===typeof Promise?Promise:void 0,rd="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof nd?function(e){return nd.resolve(null).then(e).catch(ad)}:ed;function ad(e){setTimeout(function(){throw 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)){if(0===r)return e.removeChild(a),void mh(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);mh(t)}function id(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":id(n),Ge(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function od(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||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}function ld(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function ud(e,t,n){switch(t=Qc(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))}}var cd=new Map,dd=new Set;function hd(e){return"function"===typeof e.getRootNode?e.getRootNode():e.ownerDocument}var fd=q.d;q.d={f:function(){var e=fd.f(),t=Iu();return e||t},r:function(e){var t=Ke(e);null!==t&&5===t.tag&&"form"===t.type?hi(t):fd.r(e)},D:function(e){fd.D(e),md("dns-prefetch",e,null)},C:function(e,t){fd.C(e,t),md("preconnect",e,t)},L:function(e,t,n){fd.L(e,t,n);var r=pd;if(r&&e&&t){var a='link[rel="preload"][as="'+mt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+mt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(a+='[imagesizes="'+mt(n.imageSizes)+'"]')):a+='[href="'+mt(e)+'"]';var s=a;switch(t){case"style":s=gd(e);break;case"script":s=yd(e)}cd.has(s)||(e=_({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),cd.set(s,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(vd(s))||"script"===t&&r.querySelector(Dd(s))||(Gc(t=r.createElement("link"),"link",e),Je(t),r.head.appendChild(t)))}},m:function(e,t){fd.m(e,t);var n=pd;if(n&&e){var r=t&&"string"===typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+mt(r)+'"][href="'+mt(e)+'"]',s=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=yd(e)}if(!cd.has(s)&&(e=_({rel:"modulepreload",href:e},t),cd.set(s,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Dd(s)))return}Gc(r=n.createElement("link"),"link",e),Je(r),n.head.appendChild(r)}}},X:function(e,t){fd.X(e,t);var n=pd;if(n&&e){var r=Ye(n).hoistableScripts,a=yd(e),s=r.get(a);s||((s=n.querySelector(Dd(a)))||(e=_({src:e,async:!0},t),(t=cd.get(a))&&Cd(e,t),Je(s=n.createElement("script")),Gc(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){fd.S(e,t,n);var r=pd;if(r&&e){var a=Ye(r).hoistableStyles,s=gd(e);t=t||"default";var i=a.get(s);if(!i){var o={loading:0,preload:null};if(i=r.querySelector(vd(s)))o.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cd.get(s))&&jd(e,n);var l=i=r.createElement("link");Je(l),Gc(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,kd(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(s,i)}}},M:function(e,t){fd.M(e,t);var n=pd;if(n&&e){var r=Ye(n).hoistableScripts,a=yd(e),s=r.get(a);s||((s=n.querySelector(Dd(a)))||(e=_({src:e,async:!0,type:"module"},t),(t=cd.get(a))&&Cd(e,t),Je(s=n.createElement("script")),Gc(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(a,s))}}};
vendor: 4,931 bytes, line 2
2var pd="undefined"===typeof document?null:document;function md(e,t,n){var r=pd;if(r&&"string"===typeof t&&t){var a=mt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"===typeof n&&(a+='[crossorigin="'+n+'"]'),dd.has(a)||(dd.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(Gc(t=r.createElement("link"),"link",e),Je(t),r.head.appendChild(t)))}}function xd(e,t,n,r){var a,s,o,l,u=(u=J.current)?hd(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=gd(n.href),(r=(n=Ye(u).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=gd(n.href);var c=Ye(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(vd(e)))&&!c._p&&(d.instance=c,d.state.loading=5),cd.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},cd.set(e,n),c||(a=u,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}),Gc(s,"link",o),Je(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=yd(n),(r=(n=Ye(u).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 gd(e){return'href="'+mt(e)+'"'}function vd(e){return'link[rel="stylesheet"]['+e+"]"}function bd(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function yd(e){return'[src="'+mt(e)+'"]'}function Dd(e){return"script[async]"+e}function wd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+mt(n.href)+'"]');if(r)return t.instance=r,Je(r),r;var a=_({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Je(r=(e.ownerDocument||e).createElement("style")),Gc(r,"style",a),kd(r,n.precedence,e),t.instance=r;case"stylesheet":a=gd(n.href);var s=e.querySelector(vd(a));if(s)return t.state.loading|=4,t.instance=s,Je(s),s;r=bd(n),(a=cd.get(a))&&jd(r,a),Je(s=(e.ownerDocument||e).createElement("link"));var o=s;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Gc(s,"link",r),t.state.loading|=4,kd(s,n.precedence,e),t.instance=s;case"script":return s=yd(n.src),(a=e.querySelector(Dd(s)))?(t.instance=a,Je(a),a):(r=n,(a=cd.get(s))&&Cd(r=_({},n),a),Je(a=(e=e.ownerDocument||e).createElement("script")),Gc(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&&0===(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,kd(r,n.precedence,e));return t.instance}function kd(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 jd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Cd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Ed=null;function Fd(e,t,n){if(null===Ed){var r=new Map,a=Ed=new Map;a.set(n,r)}else(r=(a=Ed).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[Ie]||"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 Nd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Ad(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var Sd=null;function _d(){}function Bd(){if(this.count--,0===this.count)if(this.stylesheets)Rd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Td=null;function Rd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Td=new Map,t.forEach(Pd,e),Td=null,Bd.call(e))}function Pd(e,t){if(!(4&t.state.loading)){var n=Td.get(e);
vendor: 5,800 bytes, line 2
2if(n)var r=n.get(null);else{n=new Map,Td.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=Bd.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 Od={$$typeof:x,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Ld(e,t,n,r,a,s,i,o){this.tag=1,this.containerInfo=e,this.finishedWork=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=_e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_e(0),this.hiddenUpdates=_e(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=s,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Id(e,t,n,r,a,s,i,o,l,u,c,d){return e=new Ld(e,t,n,i,o,l,u,d),t=1,!0===s&&(t|=24),s=Pl(3,null,null,t),e.current=s,s.stateNode=e,(t=za()).refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:r,isDehydrated:n,cache:t},Ao(s),e}function Md(e){return e?e=Br:Br}function zd(e,t,n,r,a,s){a=Md(a),null===r.context?r.context=a:r.pendingContext=a,(r=_o(t)).payload={element:n},null!==(s=void 0===s?null:s)&&(r.callback=s),null!==(n=Bo(e,r,t))&&(Bu(n,0,t),To(n,e,t))}function Ud(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qd(e,t){Ud(e,t),(e=e.alternate)&&Ud(e,t)}function Wd(e){if(13===e.tag){var t=Ar(e,67108864);null!==t&&Bu(t,0,67108864),qd(e,67108864)}}var Hd=!0;function Vd(e,t,n,r){var a=S.T;S.T=null;var s=q.p;try{q.p=2,$d(e,t,n,r)}finally{q.p=s,S.T=a}}function Gd(e,t,n,r){var a=S.T;S.T=null;var s=q.p;try{q.p=8,$d(e,t,n,r)}finally{q.p=s,S.T=a}}function $d(e,t,n,r){if(Hd){var a=Kd(r);if(null===a)Rc(e,t,r,Qd,n),ih(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Zd=oh(Zd,e,t,n,r,a),!0;case"dragenter":return eh=oh(eh,e,t,n,r,a),!0;case"mouseover":return th=oh(th,e,t,n,r,a),!0;case"pointerover":var s=a.pointerId;return nh.set(s,oh(nh.get(s)||null,e,t,n,r,a)),!0;case"gotpointercapture":return s=a.pointerId,rh.set(s,oh(rh.get(s)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(ih(e,r),4&t&&-1<sh.indexOf(e)){for(;null!==a;){var s=Ke(a);if(null!==s)switch(s.tag){case 3:if((s=s.stateNode).current.memoizedState.isDehydrated){var i=Ce(s.pendingLanes);if(0!==i){var o=s;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var l=1<<31-ye(i);o.entanglements[1]|=l,i&=~l}mc(s),0===(6&eu)&&(yu=le()+500,xc(0,!1))}}break;case 13:null!==(o=Ar(s,2))&&Bu(o,0,2),Iu(),qd(s,2)}if(null===(s=Kd(r))&&Rc(e,t,r,Qd,n),s===a)break;a=s}null!==a&&r.stopPropagation()}else Rc(e,t,r,null,n)}}function Kd(e){return Yd(e=_t(e))}var Qd=null;function Yd(e){if(Qd=null,null!==(e=$e(e))){var t=L(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=I(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 Qd=e,null}function Jd(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(ue()){case ce:return 2;case de:return 8;case he:case fe:return 32;case pe:return 268435456;default:return 32}default:return 32}}var Xd=!1,Zd=null,eh=null,th=null,nh=new Map,rh=new Map,ah=[],sh="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 ih(e,t){switch(e){case"focusin":case"focusout":Zd=null;break;case"dragenter":case"dragleave":eh=null;break;case"mouseover":case"mouseout":th=null;break;case"pointerover":case"pointerout":nh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rh.delete(t.pointerId)}}function oh(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=Ke(t))&&Wd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.pu
2sh(a),e)}function lh(e){var t=$e(e.target);if(null!==t){var n=L(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=I(n)))return e.blockedOn=t,void function(e,t){var n=q.p;try{return q.p=e,t()}finally{q.p=n}}(e.priority,function(){if(13===n.tag){var e=Su(),t=Ar(n,e);null!==t&&Bu(t,0,e),qd(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function uh(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kd(e.nativeEvent);if(null!==n)return null!==(t=Ke(n))&&Wd(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);St=r,n.target.dispatchEvent(r),St=null,t.shift()}return!0}function ch(e,t,n){uh(e)&&n.delete(t)}function dh(){Xd=!1,null!==Zd&&uh(Zd)&&(Zd=null),null!==eh&&uh(eh)&&(eh=null),null!==th&&uh(th)&&(th=null),nh.forEach(ch),rh.forEach(ch)}function hh(e,t){e.blockedOn===t&&(e.blockedOn=null,Xd||(Xd=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,dh)))}var fh=null;function ph(e){fh!==e&&(fh=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){fh===e&&(fh=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===Yd(r||n))continue;break}var s=Ke(n);null!==s&&(e.splice(t,3),t-=3,ci(s,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function mh(e){function t(t){return hh(t,e)}null!==Zd&&hh(Zd,e),null!==eh&&hh(eh,e),null!==th&&hh(th,e),nh.forEach(t),rh.forEach(t);for(var n=0;n<ah.length;n++){var r=ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ah.length&&null===(n=ah[0]).blockedOn;)lh(n),null===n.blockedOn&&ah.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[Me]||null;if("function"===typeof s)i||ph(n);else if(i){var o=null;if(s&&s.hasAttribute("formAction")){if(a=s,i=s[Me]||null)o=i.formAction;else if(null!==Yd(a))continue}else o=i.action;"function"===typeof o?n[r+1]=o:(n.splice(r,3),r-=3),ph(n)}}}function xh(e){this._internalRoot=e}function gh(e){this._internalRoot=e}gh.prototype.render=xh.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));zd(t.current,Su(),e,t,null,null)},gh.prototype.unmount=xh.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;0===e.tag&&tc(),zd(e.current,2,null,e,null,null),Iu(),t[ze]=null}},gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ah.length&&0!==t&&t<ah[n].priority;n++);ah.splice(n,0,e),0===n&&lh(e)}};var vh=a.version;if("19.0.0"!==vh)throw Error(i(527,vh,"19.0.0"));q.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 M(a),e;if(s===r)return M(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,r=s;break}if(l===r){o=!0,r=a,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=a;break}if(l===r){o=!0,r=s,n=a;break}l=l.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),e=null===(e=null!==e?z(e):null)?null:e.stateNode};var bh={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:S,findFiberByHostInstance:$e,reconcilerVersion:"19.0.0"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var yh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yh.isDisabled&&yh.supportsFiber)try{ge=yh.inject(bh),ve=yh}catch(wh){}}t.createRoot=function(e,t){if(!o(e))throw Error(i(299));var n=!1,r="",a=Ri,s=Pi,l=Oi;return null!==t&&void 0!==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),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Id(e,1,!1,null,0,n,r,a,s,l,0,null),e[ze]=t.current,Bc(8===e.nodeType?e.parentNode:e),new xh(t)},t.hydrateRoot=function(e,t,n){if(!o(e))throw Error(i(299));var r=!1,a="",s=Ri,l=Pi,u=Oi,c=null;return null!==n&&void 0!==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&&(u=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(c=n.formState)),(t=Id(e,1,!0,t,0,r,a,s,l,u,0,c)).context=Md(null),n=t.current,(a=_o(r=Su())).callback=null,Bo(n,a,r),t.current.lanes=r,Be(t,r),mc(t),e[ze]=t.current,Bc(e),new gh(t)},t.version="19.0.0"},672(e,t,n){"use strict";var r=n(43);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");var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(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:t=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=u(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=u(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=u(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=u(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.0.0"},391(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(t){console.error(t)}}(),e.exports=n(4)},950(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(t){console.error(t)}}(),e.exports=n(672)},818(e,t,n){var r=n(715).default;var a=n(43);function s(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var i=s(a);!function(e){if(!e||"undefined"===typeof window)return;const t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)}('.rfm-marquee-container {\n  overflow-x: hidden;\n  display: flex;\n  flex-direction: row;\n  position: relative;\n  width: var(--width);\n  transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n  animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n  animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n  background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n  content: "";\n  height: 100%;\n  position: absolute;\n  width: var(--gradient-width);\n  z-index: 2;\n  pointer-events: none;\n  touch-action: none;\n}\n.rfm-overlay::after {\n  right: 0;\n  top: 0;\n  transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n  left: 0;\n  top: 0;\n}\n\n.rfm-marquee {\n  flex: 0 0 auto;\n  min-width: var(--min-width);\n  z-index: 1;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n  animation-play-state: var(--play);\n  animation-delay: var(--delay);\n  animation-direction: var(--direction);\n}\n@keyframes scroll {\n  0% {\n    transform: translateX(0%);\n  }\n  100% {\n    transform: translateX(-100%);\n  }\n}\n\n.rfm-initial-child-container {\n  flex: 0 0 auto;\n  display: flex;\n  min-width: auto;\n  flex-direction: row;\n  align-items: center;\n}\n\n.rfm-child {\n  transform: var(--transform);\n}');const o=a.forwardRef(function(e,t){let n=e.style,s=void 0===n?{}:n,o=e.className,l=void 0===o?"":o,u=e.autoFill,c=void 0!==u&&u,d=e.play,h=void 0===d||d,f=e.pauseOnHover,p=void 0!==f&&f,m=e.pauseOnClick,x=void 0!==m&&m,g=e.direction,v=void 0===g?"left":g,b=e.speed,y=void 0===b?50:b,D=e.delay,w=void 0===D?0:D,k=e.loop,j=void 0===k?0:k,C=e.gradient,E=void 0!==C&&C,F=e.gradientColor,N=void 0===F?"white":F,A=e.gradientWidth,S=void 0===A?200:A,_=e.onFinish,B=e.onCycleComplete,T=e.onMount,R=e.children;const P=a.useState(0),O=r(P,2),L=O[0],I=O[1],M=a.useState(0),z=r(M,2),U=z[0],q=z[1],W=a.useState(1),H=r(W,2),V=H[0],G=H[1],$=a.useState(!1),K=r($,2),Q=K[0],Y=K[1],J=a.useRef(null),X=t||J,Z=a.useRef(null),ee=a.useCallback(()=>{if(Z.current&&X.current){const e=X.current.getBoundingClientRect(),t=Z.current.getBoundingClientRect();let n=e.width,r=t.width;"up"!==v&&"down"!==v||(n=e.height,r=t.height),G(c&&n&&r&&r<n?Math.ceil(n/r):1),I(n),q(r)}},[c,X,v]);a.useEffect(()=>{if(Q&&(ee(),Z.current&&X.current)){const e=new ResizeObserver(()=>ee());return e.observe(X.current),e.observe(Z.current),()=>{e&&e.disconnect()}}},[ee,X,Q]),a.useEffect(()=>{ee()},[ee,R]),a.useEffect(()=>{Y(!0)},[]),a.useEffect(()=>{"function"===typeof T&&T()},[]);const te=a.useMemo(()=>c?U*V/y:U<L?L/y:U/y,[c,L,U,V,y]),ne=a.useMemo(()=>Object.assign(Object.assign({},s),{"--pause-on-hover":!h||p?"paused":"running","--pause-on-click":!h||p&&!x||x?"paused":"running","--width":"up"===v||"down"===v?"100vh":"100%","--transform":"up"===v?"rotate(-90deg)":"down"===v?"rotate(90deg)":"none"}),[s,h,p,x,v]),re=a.useMemo(()=>({"--gradient-color":N,"--gradient-width":"number"===typeof S?"".concat(S,"px"):S}),[N,S]),ae=a.useMemo(()=>
2({"--play":h?"running":"paused","--direction":"left"===v?"normal":"reverse","--duration":"".concat(te,"s"),"--delay":"".concat(w,"s"),"--iteration-count":j?"".concat(j):"infinite","--min-width":c?"auto":"100%"}),[h,v,te,w,j,c]),se=a.useMemo(()=>({"--transform":"up"===v?"rotate(90deg)":"down"===v?"rotate(-90deg)":"none"}),[v]),ie=a.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,t)=>i.default.createElement(a.Fragment,{key:t},a.Children.map(R,e=>i.default.createElement("div",{style:se,className:"rfm-child"},e)))),[se,R]);return Q?i.default.createElement("div",{ref:X,style:ne,className:"rfm-marquee-container "+l},E&&i.default.createElement("div",{style:re,className:"rfm-overlay"}),i.default.createElement("div",{className:"rfm-marquee",style:ae,onAnimationIteration:B,onAnimationEnd:_},i.default.createElement("div",{className:"rfm-initial-child-container",ref:Z},a.Children.map(R,e=>i.default.createElement("div",{style:se,className:"rfm-child"},e))),ie(V-1)),i.default.createElement("div",{className:"rfm-marquee",style:ae},ie(V))):null});t.A=o},799(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},288(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"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,x={};function g(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||p}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||p}g.prototype.isReactComponent={},g.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")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var y=b.prototype=new v;y.constructor=b,m(y,g.prototype),y.isPureReactComponent=!0;var D=Array.isArray,w={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function j(e,t,r,a,s,i){return r=i.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:i}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function F(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(){}function A(e,t,a,s,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(o){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case h:return A((c=e._init)(e._payload),t,a,s,i)}}if(c)return i=i(e),c=""===s?"."+F(e,0):s,D(i)?(a="",null!=c&&(a=c.replace(E,"$&/")+"/"),A(i,t,a,"",function(e){return e})):null!=i&&(C(i)&&(l=i,u=a+(null==i.key||e&&e.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+c,i=j(l.type,u,void 0,0,0,l.props)),t.push(i)),1;c=0;var d,p=""===s?".":s+":";if(D(e))for(var m=0;m<e.length;m++)c+=A(s=e[m],t,a,o=p+F(s,m),i);else if("function"===typeof(m=null===(d=e)||"object"!==typeof d?null:"function"===typeof(d=f&&d[f]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(s=e.next()).done;)c+=A(s=s.value,t,a,o=p+F(s,m++),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(N,N):(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 c}function S(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 _(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 B="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)};function T(){}t.Children={map:S,forEach:function(e,t,n){S(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return S(e,function(){t++}),t},toArray:function(e){return S(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=a,t.Profiler=i,t.PureComponent=b,t.StrictMode=s,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,t.act=function(){throw Error("act(...) is not supported in production builds of React.")},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),a=e.key;if(null!=t)for(s in void 0!==t.ref&&void 0,void 0!==t.key&&(a=""+t.key),t)!k.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,void 0,0,0,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)k.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,void 0,0,0,a)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),a=w.S;null!==a&&a(n,r),"object"===typeof r&&null!==r&&"function"===typeof r.then&&r.then(T,B)}catch(s){B(s)}finally{w.T=t}},t.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},t.use=function(e){return w.H.use(e)},t.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},t.useCallback=function(e,t){return w.H.useCallback(e,t)},t.useContext=function(e){return w.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return w.H.useEffect(e,t)},t.useId=function(){return w.H.useId()},t.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return w.H.useMemo(e,t)},t.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},t.useRef=function(e){return w.H.useRef(e)},t.useState=function(e){return w.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return w.H.useTransition()},t.version="19.0.0"},43(e,t,n){"use strict";e.exports=n(288)},579(e,t,n){"use strict";e.exports=n(799)},896(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],u=o+1,c=e[u];if(0>s(l,n))u<a&&0>s(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[o]=n,r=o);else{if(!(u<a&&0>s(c,n)))break e;e[r]=c,e[u]=n,r=u}}}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 u=[],c=[],d=1,h=null,f=3,p=!1,m=!1,x=!1,g="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function y(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function D(e){if(x=!1,y(e),!m)if(null!==r(u))m=!0,_();else{var t=r(c);null!==t&&B(D,t.startTime-e)}}var w,k=!1,j=-1,C=5,E=-1;function F(){return!(t.unstable_now()-E<C)}function N(){if(k){var e=t.unstable_now();E=e;var n=!0;try{e:{m=!1,x&&(x=!1,v(j),j=-1),p=!0;var s=f;try{t:{for(y(e),h=r(u);null!==h&&!(h.expirationTime>e&&F());){var i=h.callback;if("function"===typeof i){h.callback=null,f=h.priorityLevel;var o=i(h.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof o){h.callback=o,y(e),n=!0;break t}h===r(u)&&a(u),y(e)}else a(u);h=r(u)}if(null!==h)n=!0;else{var l=r(c);null!==l&&B(D,l.startTime-e),n=!1}}break e}finally{h=null,f=s,p=!1}n=void 0}}finally{n?w():k=!1}}}if("function"===typeof b)w=function(){b(N)};else if("undefined"!==typeof MessageChannel){var A=new MessageChannel,S=A.port2;A.port1.onmessage=N,w=function(){S.postMessage(null)}}else w=function(){g(N,0)};function _(){k||(k=!0,w())}function B(e,n){j=g(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_continueExecution=function(){m||p||(m=!0,_())},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"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,a,s){var i=t.unstable_now();switch("object"===typeof s&&null!==s?s="number"===typeof(s=s.delay)&&0<s?i+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(c,e),null===r(u)&&e===r(c)&&(x?(v(j),j=-1):x=!0,B(D,s-i))):(e.sortIndex=o,n(u,e),m||p||(m=!0,_())),e},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},853(e,t,n){"use strict";e.exports=n(896)},294(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}})(n(222)),a=n(146);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},146(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))}},222(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 r=e.property,a=e.value;s?t(r,a,e):a&&(n=n||{},n[r]=a)}),n};const a=r(n(106))},79(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},987(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},156(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,s,i,o=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},752(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},715(e,t,n){var r=n(987),a=n(156),s=n(122),i=n(752);e.exports=function(e,t){return r(e)||a(e,t)||s(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},122(e,t,n){var r=n(79);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}};const t={};function n(r){const a=t[r];if(void 0!==a)return a.exports;const s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,n),s.exports}n.m=e,(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}const s=Object.create(null);n.r(s);const i={};t=t||[null,e({}),e([]),e(e)];for(var o=2&a&&r;("object"==typeof o||"function"==typeof o)&&!~t.indexOf(o);o=e(o))Object.getOwnPropertyNames(o).forEach(e=>i[e]=()=>r[e]);return i.default=()=>r,n.d(s,i),s}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var a=t[r++],s=t[r++];n.o(e,a)?0===s&&r++:0===s?Object.defineProperty(e,a,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,a,{enumerable:!0,get:s})}else for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,r)=>(n.f[r](e,t),t),[])),n.u=e=>"static/js/"+e+".f9f58117.chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="frontend:";n.l=(r,a,s,i)=>{if(e[r])return void e[r].push(a);let o,l;if(void 0!==s){const e=document.getElementsByTagName("script");for(var u=0;u<e.length;u++){const n=e[u];if(n.getAttribute("src")==r||n.getAttribute("data-webpack")==t+s){o=n;break}}}o||(l=!0,o=document.createElement("script"),o.charset="utf-8",n.nc&&o.setAttribute("nonce",n.nc),o.setAttribute("data-webpack",t+s),o.src=r),e[r]=[a];const c=(t,n)=>{o.onerror=o.onload=null,clearTimeout(d);const a=e[r];if(delete e[r],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach(e
2=>e(n)),t)return t(n)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),l&&document.head.appendChild(o)}})(),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},n.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},n.p="/",(()=>{const e={792:0};n.f.j=(t,r)=>{let a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{const s=new Promise((n,r)=>a=e[t]=[n,r]);r.push(a[2]=s);const i=n.p+n.u(t),o=new Error,l=r=>{if(n.o(e,t)&&(a=e[t],0!==a&&(e[t]=void 0),a)){const e=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;o.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",o.name="ChunkLoadError",o.type=e,o.request=n,o.event=r,a[1](o)}};n.l(i,l,"chunk-"+t,t)}};const t=(t,r)=>{let[a,s,i]=r;var o,l,u=0;if(a.some(t=>0!==e[t])){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(i)i(n)}for(t&&t(r);u<a.length;u++)l=a[u],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0},r=self.webpackChunkfrontend=self.webpackChunkfrontend||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0;n(224)})();
3//# sourceMappingURL=main.2e954da1.js.map

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.