react-speakeazii 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -0
- package/dist/components/Blogs.d.ts +45 -0
- package/dist/components/ContactForm.d.ts +7 -2
- package/dist/components/Products.d.ts +39 -0
- package/dist/components/Services.d.ts +36 -0
- package/dist/components/Testimonials.d.ts +33 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/utils/helperfunctions.d.ts +3 -0
- package/package.json +18 -5
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useRef as e,useEffect as t}from"react";var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))(function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}c((r=r.apply(e,t||[])).next())})}function o(e,t){var n,r,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=a(0),i.throw=a(1),i.return=a(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}"function"==typeof SuppressedError&&SuppressedError;var s=function(s){var i=s.api_key,a=s.storageKey,c=void 0===a?"visit_tracker":a,u=s.expiryHours,l=void 0===u?12:u,f=s.enableTracking,d=void 0===f||f,p=s.additionalData,h=void 0===p?{}:p,m=e(!1),y="".concat("https://speakeasy-1dxj.onrender.com/speakeasy","/profile_visits/").concat(i);return t(function(){if(d&&!m.current){var e=setTimeout(function(){return r(void 0,void 0,void 0,function(){var e,t,r,s,i,a,u,f,d;return o(this,function(o){switch(o.label){case 0:if(o.trys.push([0,3,,4]),e=function(){try{var e="__localStorage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}},t=function(e){return Date.now()-e>60*l*60*1e3},r=!0,s=function(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}(),e())try{i=localStorage.getItem(c),(a=i?JSON.parse(i):null)&&!t(a.timestamp)&&(r=!1,s=a.sessionId)}catch(e){console.warn("Failed to access localStorage for visit tracking:",e)}return r?(u=n({url:window.location.href,referrer:document.referrer||"direct",userAgent:navigator.userAgent,timestamp:(new Date).toISOString(),sessionId:s,viewport:JSON.stringify({width:window.innerWidth,height:window.innerHeight}),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,language:navigator.language},h),[4,fetch(y,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u),keepalive:!0})]):[3,2];case 1:if(!(f=o.sent()).ok)throw new Error("Tracking request failed: ".concat(f.status," ").concat(f.statusText));localStorage.setItem(c,JSON.stringify({timestamp:Date.now(),sessionId:s})),m.current=!0,o.label=2;case 2:return[3,4];case 3:return d=o.sent(),console.warn("Visit tracking failed:",d),[3,4];case 4:return[2]}})})},100);return function(){return clearTimeout(e)}}},[]),null};function i(e,t){return function(){return e.apply(t,arguments)}}const{toString:a}=Object.prototype,{getPrototypeOf:c}=Object,{iterator:u,toStringTag:l}=Symbol,f=(d=Object.create(null),e=>{const t=a.call(e);return d[t]||(d[t]=t.slice(8,-1).toLowerCase())});var d;const p=e=>(e=e.toLowerCase(),t=>f(t)===e),h=e=>t=>typeof t===e,{isArray:m}=Array,y=h("undefined");function b(e){return null!==e&&!y(e)&&null!==e.constructor&&!y(e.constructor)&&E(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=p("ArrayBuffer");const w=h("string"),E=h("function"),O=h("number"),v=e=>null!==e&&"object"==typeof e,S=e=>{if("object"!==f(e))return!1;const t=c(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||l in e||u in e)},R=p("Date"),T=p("File"),A=p("Blob"),j=p("FileList"),x=p("URLSearchParams"),[N,C,k,P]=["ReadableStream","Request","Response","Headers"].map(p);function U(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),m(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(b(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function _(e,t){if(b(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,L=e=>!y(e)&&e!==F;const B=(D="undefined"!=typeof Uint8Array&&c(Uint8Array),e=>D&&e instanceof D);var D;const q=p("HTMLFormElement"),I=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),M=p("RegExp"),z=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};U(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)};const H=p("AsyncFunction"),J=(W="function"==typeof setImmediate,K=E(F.postMessage),W?setImmediate:K?(V=`axios@${Math.random()}`,$=[],F.addEventListener("message",({source:e,data:t})=>{e===F&&t===V&&$.length&&$.shift()()},!1),e=>{$.push(e),F.postMessage(V,"*")}):e=>setTimeout(e));var W,K,V,$;const X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(F):"undefined"!=typeof process&&process.nextTick||J;var G={isArray:m,isArrayBuffer:g,isBuffer:b,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||E(e.append)&&("formdata"===(t=f(e))||"object"===t&&E(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:w,isNumber:O,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:S,isEmptyObject:e=>{if(!v(e)||b(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:N,isRequest:C,isResponse:k,isHeaders:P,isUndefined:y,isDate:R,isFile:T,isBlob:A,isRegExp:M,isFunction:E,isStream:e=>v(e)&&E(e.pipe),isURLSearchParams:x,isTypedArray:B,isFileList:j,forEach:U,merge:function e(){const{caseless:t,skipUndefined:n}=L(this)&&this||{},r={},o=(o,s)=>{const i=t&&_(r,s)||s;S(r[i])&&S(o)?r[i]=e(r[i],o):S(o)?r[i]=e({},o):m(o)?r[i]=o.slice():n&&y(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&U(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(U(t,(t,r)=>{n&&E(t)?e[r]=i(t,n):e[r]=t},{allOwnKeys:r}),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),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:p,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(m(e))return e;let t=e.length;if(!O(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[u]).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:q,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:z,freezeMethods:e=>{z(e,(t,n)=>{if(E(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];E(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 m(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:_,global:F,isContextDefined:L,isSpecCompliantForm:function(e){return!!(e&&E(e.append)&&"FormData"===e[l]&&e[u])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(b(e))return e;if(!("toJSON"in e)){t[r]=e;const o=m(e)?[]:{};return U(e,(e,t)=>{const s=n(e,r+1);!y(s)&&(o[t]=s)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:H,isThenable:e=>e&&(v(e)||E(e))&&E(e.then)&&E(e.catch),setImmediate:J,asap:X,isIterable:e=>null!=e&&E(e[u])};function Q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(Q,Error,{toJSON:function(){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:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Z=Q.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Y[e]={value:e}}),Object.defineProperties(Q,Y),Object.defineProperty(Z,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,o,s)=>{const i=Object.create(Z);G.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return Q.call(i,a,c,n,r,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};function ee(e){return G.isPlainObject(e)||G.isArray(e)}function te(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function ne(e,t,n){return e?e.concat(t).map(function(e,t){return e=te(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const re=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function oe(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!G.isUndefined(t[e])})).metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(G.isBoolean(e))return e.toString();if(!a&&G.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(ee)}(e)||(G.isFileList(e)||G.endsWith(n,"[]"))&&(a=G.toArray(e)))return n=te(n),a.forEach(function(e,r){!G.isUndefined(e)&&null!==e&&t.append(!0===i?ne([n],r,s):null===i?n:n+"[]",c(e))}),!1;return!!ee(e)||(t.append(ne(o,n,s),c(e)),!1)}const l=[],f=Object.assign(re,{defaultVisitor:u,convertValue:c,isVisitable:ee});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!G.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),G.forEach(n,function(n,s){!0===(!(G.isUndefined(n)||null===n)&&o.call(t,n,G.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])}),l.pop()}}(e),t}function se(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ie(e,t){this._pairs=[],e&&oe(e,this,t)}const ae=ie.prototype;function ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ue(e,t,n){if(!t)return e;const r=n&&n.encode||ce;G.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):G.isURLSearchParams(t)?t.toString():new ie(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}ae.append=function(e,t){this._pairs.push([e,t])},ae.toString=function(e){const t=e?function(t){return e.call(this,t,se)}:se;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var le=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){G.forEach(this.handlers,function(t){null!==t&&e(t)})}},fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},de={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ie,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const pe="undefined"!=typeof window&&"undefined"!=typeof document,he="object"==typeof navigator&&navigator||void 0,me=pe&&(!he||["ReactNative","NativeScript","NS"].indexOf(he.product)<0),ye="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,be=pe&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:pe,hasStandardBrowserWebWorkerEnv:ye,hasStandardBrowserEnv:me,navigator:he,origin:be}),...de};function we(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&G.isArray(r)?r.length:s,a)return G.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&G.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&G.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(e,r)=>{t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Ee={transitional:fe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=G.isObject(e);o&&G.isHTMLForm(e)&&(e=new FormData(e));if(G.isFormData(e))return r?JSON.stringify(we(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return oe(e,new ge.classes.URLSearchParams,{visitor:function(e,t,n,r){return ge.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return oe(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ee.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Q.from(e,Q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Ee.headers[e]={}});var Oe=Ee;const ve=G.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"]);const Se=Symbol("internals");function Re(e){return e&&String(e).trim().toLowerCase()}function Te(e){return!1===e||null==e?e:G.isArray(e)?e.map(Te):String(e)}function Ae(e,t,n,r,o){return G.isFunction(r)?r.call(this,t,n):(o&&(t=n),G.isString(t)?G.isString(r)?-1!==t.indexOf(r):G.isRegExp(r)?r.test(t):void 0:void 0)}class je{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Re(t);if(!o)throw new Error("header name must be a non-empty string");const s=G.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Te(e))}const s=(e,t)=>G.forEach(e,(e,n)=>o(e,n,t));if(G.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ve[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(G.isObject(e)&&G.isIterable(e)){let n,r,o={};for(const t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?G.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Re(e)){const n=G.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,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(G.isFunction(t))return t.call(this,e,n);if(G.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Re(e)){const n=G.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ae(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Re(e)){const o=G.findKey(n,e);!o||t&&!Ae(0,n[o],o,t)||(delete n[o],r=!0)}}return G.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ae(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return G.forEach(this,(r,o)=>{const s=G.findKey(n,o);if(s)return t[s]=Te(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Te(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return G.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).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,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Se]=this[Se]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Re(e);t[r]||(!function(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(je.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),G.freezeMethods(je);var xe=je;function Ne(e,t){const n=this||Oe,r=t||n,o=xe.from(r.headers);let s=r.data;return G.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Ce(e){return!(!e||!e.__CANCEL__)}function ke(e,t,n){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError"}function Pe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}G.inherits(ke,Q,{__CANCEL__:!0});const Ue=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},s-a)))},()=>n&&i(n)]}(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s;e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},_e=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Fe=e=>(...t)=>G.asap(()=>e(...t));var Le=ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,Be=ge.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),G.isString(r)&&i.push("path="+r),G.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function De(e,t,n){let r=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const qe=e=>e instanceof xe?{...e}:e;function Ie(e,t){t=t||{};const n={};function r(e,t,n,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function o(e,t,n,o){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!G.isUndefined(t))return r(void 0,t)}function i(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={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,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(qe(e),qe(t),0,!0)};return G.forEach(Object.keys({...e,...t}),function(r){const s=c[r]||o,i=s(e[r],t[r],r);G.isUndefined(i)&&s!==a||(n[r]=i)}),n}var Me=e=>{const t=Ie({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=xe.from(i),t.url=ue(De(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),G.isFormData(n))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(G.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(ge.hasStandardBrowserEnv&&(r&&G.isFunction(r)&&(r=r(t)),r||!1!==r&&Le(t.url))){const e=o&&s&&Be.read(s);e&&i.set(o,e)}return t};var ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Me(e);let o=r.data;const s=xe.from(r.headers).normalize();let i,a,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=xe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Pe(function(e){t(e),h()},function(e){n(e),h()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new Q("Request aborted",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new Q(t&&t.message?t.message:"Network Error",Q.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||fe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Q(t,o.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&G.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),G.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,l]=Ue(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=Ue(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new ke(null,e,m):t),m.abort(),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&&-1===ge.protocols.indexOf(b)?n(new Q("Unsupported protocol "+b+":",Q.ERR_BAD_REQUEST,e)):m.send(o||null)})};var He=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new ke(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>G.asap(i),a}};const Je=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},We=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ke=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of We(e))yield*Je(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:Ve}=G,$e=(({Request:e,Response:t})=>({Request:e,Response:t}))(G.global),{ReadableStream:Xe,TextEncoder:Ge}=G.global,Qe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ze=e=>{e=G.merge.call({skipUndefined:!0},$e,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ve(t):"function"==typeof fetch,s=Ve(n),i=Ve(r);if(!o)return!1;const a=o&&Ve(Xe),c=o&&("function"==typeof Ge?(u=new Ge,e=>u.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var u;const l=s&&a&&Qe(()=>{let e=!1;const t=new n(ge.origin,{body:new Xe,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=i&&a&&Qe(()=>G.isReadableStream(new r("").body)),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=G.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){const t=new n(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e)?(await c(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:a,signal:c,cancelToken:u,timeout:h,onDownloadProgress:m,onUploadProgress:y,responseType:b,headers:g,withCredentials:w="same-origin",fetchOptions:E}=Me(e),O=t||fetch;b=b?(b+"").toLowerCase():"text";let v=He([c,u&&u.toAbortSignal()],h),S=null;const R=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let T;try{if(y&&l&&"get"!==i&&"head"!==i&&0!==(T=await p(g,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(G.isFormData(a)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,n]=_e(T,Ue(Fe(y)));a=Ke(t.body,65536,e,n)}}G.isString(w)||(w=w?"include":"omit");const t=s&&"credentials"in n.prototype,c={...E,signal:v,method:i.toUpperCase(),headers:g.normalize().toJSON(),body:a,duplex:"half",credentials:t?w:void 0};S=s&&new n(o,c);let u=await(s?O(S,E):O(o,c));const h=f&&("stream"===b||"response"===b);if(f&&(m||h&&R)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=u[t]});const t=G.toFiniteNumber(u.headers.get("content-length")),[n,o]=m&&_e(t,Ue(Fe(m),!0))||[];u=new r(Ke(u.body,65536,n,()=>{o&&o(),R&&R()}),e)}b=b||"text";let A=await d[G.findKey(d,b)||"text"](u,e);return!h&&R&&R(),await new Promise((t,n)=>{Pe(t,n,{data:A,headers:xe.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:S})})}catch(t){if(R&&R(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,S),{cause:t.cause||t});throw Q.from(t,t&&t.code,e,S)}}},Ye=new Map,et=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,u=Ye;for(;c--;)i=s[c],a=u.get(i),void 0===a&&u.set(i,a=c?new Map:Ze(t)),u=a;return a};et();const tt={http:null,xhr:ze,fetch:{get:et}};G.forEach(tt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const nt=e=>`- ${e}`,rt=e=>G.isFunction(e)||null===e||!1===e;var ot=(e,t)=>{e=G.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!rt(r)&&(o=tt[(n=String(r)).toLowerCase()],void 0===o))throw new Q(`Unknown adapter '${n}'`);if(o&&(G.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o}if(!o){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Q("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(nt).join("\n"):" "+nt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function st(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function it(e){st(e),e.headers=xe.from(e.headers),e.data=Ne.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ot(e.adapter||Oe.adapter,e)(e).then(function(t){return st(e),t.data=Ne.call(e,e.transformResponse,t),t.headers=xe.from(t.headers),t},function(t){return Ce(t)||(st(e),t&&t.response&&(t.response.data=Ne.call(e,e.transformResponse,t.response),t.response.headers=xe.from(t.response.headers))),Promise.reject(t)})}const at="1.12.2",ct={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ct[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ut={};ct.transitional=function(e,t,n){function r(e,t){return"[Axios v"+at+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new Q(r(o," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!ut[o]&&(ut[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},ct.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var lt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new Q("option "+s+" must be "+n,Q.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Q("Unknown option "+s,Q.ERR_BAD_OPTION)}},validators:ct};const ft=lt.validators;class dt{constructor(e){this.defaults=e||{},this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ie(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&<.assertOptions(n,{silentJSONParsing:ft.transitional(ft.boolean),forcedJSONParsing:ft.transitional(ft.boolean),clarifyTimeoutError:ft.transitional(ft.boolean)},!1),null!=r&&(G.isFunction(r)?t.paramsSerializer={serialize:r}:lt.assertOptions(r,{encode:ft.function,serialize:ft.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),lt.assertOptions(t,{baseUrl:ft.spelling("baseURL"),withXsrfToken:ft.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&G.merge(o.common,o[t.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=xe.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,f=0;if(!a){const e=[it.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(;f<l;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=it.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return ue(De((e=Ie(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){dt.prototype[e]=function(t,n){return this.request(Ie(n||{},{method:e,url:t,data:(n||{}).data}))}}),G.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Ie(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}dt.prototype[e]=t(),dt.prototype[e+"Form"]=t(!0)});var pt=dt;class ht{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,o){n.reason||(n.reason=new ke(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(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 ht(function(t){e=t}),cancel:e}}}var mt=ht;const yt={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};Object.entries(yt).forEach(([e,t])=>{yt[t]=e});var bt=yt;const gt=function e(t){const n=new pt(t),r=i(pt.prototype.request,n);return G.extend(r,pt.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ie(t,n))},r}(Oe);gt.Axios=pt,gt.CanceledError=ke,gt.CancelToken=mt,gt.isCancel=Ce,gt.VERSION=at,gt.toFormData=oe,gt.AxiosError=Q,gt.Cancel=gt.CanceledError,gt.all=function(e){return Promise.all(e)},gt.spread=function(e){return function(t){return e.apply(null,t)}},gt.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},gt.mergeConfig=Ie,gt.AxiosHeaders=xe,gt.formToJSON=e=>we(G.isHTMLForm(e)?new FormData(e):e),gt.getAdapter=ot,gt.HttpStatusCode=bt,gt.default=gt;var wt=gt,Et="https://speakeasy-1dxj.onrender.com/speakeasy",Ot=function(e){return r(void 0,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,wt.get("".concat(Et,"/reviews/").concat(e))];case 1:return[2,t.sent().data];case 2:return[2,t.sent()];case 3:return[2]}})})},vt=function(e){return r(void 0,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,wt.get("".concat(Et,"/blogs/").concat(e))];case 1:return[2,t.sent().data];case 2:return[2,t.sent()];case 3:return[2]}})})},St=function(e,t){return r(void 0,[e,t],void 0,function(e,t){var n,r=t.name,s=void 0===r?"":r,i=t.email,a=t.phone,c=void 0===a?"":a,u=t.subject,l=void 0===u?"":u,f=t.message;return o(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),n={name:s,email:i,phone:c,subject:l,message:f},[4,wt.post("".concat(Et,"/message/").concat(e),n)];case 1:return[2,t.sent().data];case 2:return[2,t.sent()];case 3:return[2]}})})};export{s as VisitorTracker,vt as getBlogs,Ot as getReviews,St as sendMessage};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{useState as o,useEffect as s,useRef as a}from"react";import"react-speakeazii/dist/styles.css";var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function l(e,t,r,n){return new(r||(r=Promise))(function(o,s){function a(e){try{l(n.next(e))}catch(e){s(e)}}function i(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,i)}l((n=n.apply(e,t||[])).next())})}function c(e,t){var r,n,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=i(0),a.throw=i(1),a.return=i(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function u(e,t){return function(){return e.apply(t,arguments)}}"function"==typeof SuppressedError&&SuppressedError;const{toString:m}=Object.prototype,{getPrototypeOf:f}=Object,{iterator:p,toStringTag:h}=Symbol,g=(b=Object.create(null),e=>{const t=m.call(e);return b[t]||(b[t]=t.slice(8,-1).toLowerCase())});var b;const v=e=>(e=e.toLowerCase(),t=>g(t)===e),y=e=>t=>typeof t===e,{isArray:x}=Array,w=y("undefined");function k(e){return null!==e&&!w(e)&&null!==e.constructor&&!w(e.constructor)&&S(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const N=v("ArrayBuffer");const E=y("string"),S=y("function"),O=y("number"),j=e=>null!==e&&"object"==typeof e,C=e=>{if("object"!==g(e))return!1;const t=f(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||h in e||p in e)},R=v("Date"),T=v("File"),A=v("Blob"),L=v("FileList"),_=v("URLSearchParams"),[P,z,F,B]=["ReadableStream","Request","Response","Headers"].map(v);function U(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),x(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(k(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function D(e,t){if(k(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,I=e=>!w(e)&&e!==M;const q=(W="undefined"!=typeof Uint8Array&&f(Uint8Array),e=>W&&e instanceof W);var W;const H=v("HTMLFormElement"),G=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),K=v("RegExp"),J=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};U(r,(r,o)=>{let s;!1!==(s=t(r,o,e))&&(n[o]=s||r)}),Object.defineProperties(e,n)};const $=v("AsyncFunction"),V=(X="function"==typeof setImmediate,Z=S(M.postMessage),X?setImmediate:Z?(Q=`axios@${Math.random()}`,Y=[],M.addEventListener("message",({source:e,data:t})=>{e===M&&t===Q&&Y.length&&Y.shift()()},!1),e=>{Y.push(e),M.postMessage(Q,"*")}):e=>setTimeout(e));var X,Z,Q,Y;const ee="undefined"!=typeof queueMicrotask?queueMicrotask.bind(M):"undefined"!=typeof process&&process.nextTick||V;var te={isArray:x,isArrayBuffer:N,isBuffer:k,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||S(e.append)&&("formdata"===(t=g(e))||"object"===t&&S(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&N(e.buffer),t},isString:E,isNumber:O,isBoolean:e=>!0===e||!1===e,isObject:j,isPlainObject:C,isEmptyObject:e=>{if(!j(e)||k(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:P,isRequest:z,isResponse:F,isHeaders:B,isUndefined:w,isDate:R,isFile:T,isBlob:A,isRegExp:K,isFunction:S,isStream:e=>j(e)&&S(e.pipe),isURLSearchParams:_,isTypedArray:q,isFileList:L,forEach:U,merge:function e(){const{caseless:t,skipUndefined:r}=I(this)&&this||{},n={},o=(o,s)=>{const a=t&&D(n,s)||s;C(n[a])&&C(o)?n[a]=e(n[a],o):C(o)?n[a]=e({},o):x(o)?n[a]=o.slice():r&&w(o)||(n[a]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&U(arguments[e],o);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(U(t,(t,n)=>{r&&S(t)?e[n]=u(t,r):e[n]=t},{allOwnKeys:n}),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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,s,a;const i={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],n&&!n(a,e,t)||i[a]||(t[a]=e[a],i[a]=!0);e=!1!==r&&f(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:g,kindOfTest:v,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(x(e))return e;let t=e.length;if(!O(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[p]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:H,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:J,freezeMethods:e=>{J(e,(t,r)=>{if(S(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];S(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return x(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:D,global:M,isContextDefined:I,isSpecCompliantForm:function(e){return!!(e&&S(e.append)&&"FormData"===e[h]&&e[p])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(j(e)){if(t.indexOf(e)>=0)return;if(k(e))return e;if(!("toJSON"in e)){t[n]=e;const o=x(e)?[]:{};return U(e,(e,t)=>{const s=r(e,n+1);!w(s)&&(o[t]=s)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:$,isThenable:e=>e&&(j(e)||S(e))&&S(e.then)&&S(e.catch),setImmediate:V,asap:ee,isIterable:e=>null!=e&&S(e[p])};function re(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}te.inherits(re,Error,{toJSON:function(){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:te.toJSONObject(this.config),code:this.code,status:this.status}}});const ne=re.prototype,oe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{oe[e]={value:e}}),Object.defineProperties(re,oe),Object.defineProperty(ne,"isAxiosError",{value:!0}),re.from=(e,t,r,n,o,s)=>{const a=Object.create(ne);te.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const i=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return re.call(a,i,l,r,n,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};function se(e){return te.isPlainObject(e)||te.isArray(e)}function ae(e){return te.endsWith(e,"[]")?e.slice(0,-2):e}function ie(e,t,r){return e?e.concat(t).map(function(e,t){return e=ae(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const le=te.toFlatObject(te,{},null,function(e){return/^is[A-Z]/.test(e)});function ce(e,t,r){if(!te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=te.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!te.isUndefined(t[e])})).metaTokens,o=r.visitor||c,s=r.dots,a=r.indexes,i=(r.Blob||"undefined"!=typeof Blob&&Blob)&&te.isSpecCompliantForm(t);if(!te.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(te.isDate(e))return e.toISOString();if(te.isBoolean(e))return e.toString();if(!i&&te.isBlob(e))throw new re("Blob is not supported. Use a Buffer instead.");return te.isArrayBuffer(e)||te.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,o){let i=e;if(e&&!o&&"object"==typeof e)if(te.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(te.isArray(e)&&function(e){return te.isArray(e)&&!e.some(se)}(e)||(te.isFileList(e)||te.endsWith(r,"[]"))&&(i=te.toArray(e)))return r=ae(r),i.forEach(function(e,n){!te.isUndefined(e)&&null!==e&&t.append(!0===a?ie([r],n,s):null===a?r:r+"[]",l(e))}),!1;return!!se(e)||(t.append(ie(o,r,s),l(e)),!1)}const d=[],u=Object.assign(le,{defaultVisitor:c,convertValue:l,isVisitable:se});if(!te.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!te.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),te.forEach(r,function(r,s){!0===(!(te.isUndefined(r)||null===r)&&o.call(t,r,te.isString(s)?s.trim():s,n,u))&&e(r,n?n.concat(s):[s])}),d.pop()}}(e),t}function de(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ue(e,t){this._pairs=[],e&&ce(e,this,t)}const me=ue.prototype;function fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function pe(e,t,r){if(!t)return e;const n=r&&r.encode||fe;te.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(s=o?o(t,r):te.isURLSearchParams(t)?t.toString():new ue(t,r).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}me.append=function(e,t){this._pairs.push([e,t])},me.toString=function(e){const t=e?function(t){return e.call(this,t,de)}:de;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var he=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){te.forEach(this.handlers,function(t){null!==t&&e(t)})}},ge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ue,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ve="undefined"!=typeof window&&"undefined"!=typeof document,ye="object"==typeof navigator&&navigator||void 0,xe=ve&&(!ye||["ReactNative","NativeScript","NS"].indexOf(ye.product)<0),we="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ke=ve&&window.location.href||"http://localhost";var Ne={...Object.freeze({__proto__:null,hasBrowserEnv:ve,hasStandardBrowserWebWorkerEnv:we,hasStandardBrowserEnv:xe,navigator:ye,origin:ke}),...be};function Ee(e){function t(e,r,n,o){let s=e[o++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),i=o>=e.length;if(s=!s&&te.isArray(n)?n.length:s,i)return te.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!a;n[s]&&te.isObject(n[s])||(n[s]=[]);return t(e,r,n[s],o)&&te.isArray(n[s])&&(n[s]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}(n[s])),!a}if(te.isFormData(e)&&te.isFunction(e.entries)){const r={};return te.forEachEntry(e,(e,n)=>{t(function(e){return te.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const Se={transitional:ge,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=te.isObject(e);o&&te.isHTMLForm(e)&&(e=new FormData(e));if(te.isFormData(e))return n?JSON.stringify(Ee(e)):e;if(te.isArrayBuffer(e)||te.isBuffer(e)||te.isStream(e)||te.isFile(e)||te.isBlob(e)||te.isReadableStream(e))return e;if(te.isArrayBufferView(e))return e.buffer;if(te.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ce(e,new Ne.classes.URLSearchParams,{visitor:function(e,t,r,n){return Ne.isNode&&te.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=te.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ce(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(te.isString(e))try{return(t||JSON.parse)(e),te.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Se.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(te.isResponse(e)||te.isReadableStream(e))return e;if(e&&te.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw re.from(e,re.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};te.forEach(["delete","get","head","post","put","patch"],e=>{Se.headers[e]={}});var Oe=Se;const je=te.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"]);const Ce=Symbol("internals");function Re(e){return e&&String(e).trim().toLowerCase()}function Te(e){return!1===e||null==e?e:te.isArray(e)?e.map(Te):String(e)}function Ae(e,t,r,n,o){return te.isFunction(n)?n.call(this,t,r):(o&&(t=r),te.isString(t)?te.isString(n)?-1!==t.indexOf(n):te.isRegExp(n)?n.test(t):void 0:void 0)}class Le{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Re(t);if(!o)throw new Error("header name must be a non-empty string");const s=te.findKey(n,o);(!s||void 0===n[s]||!0===r||void 0===r&&!1!==n[s])&&(n[s||t]=Te(e))}const s=(e,t)=>te.forEach(e,(e,r)=>o(e,r,t));if(te.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(te.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&je[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(te.isObject(e)&&te.isIterable(e)){let r,n,o={};for(const t of e){if(!te.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?te.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=Re(e)){const r=te.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(te.isFunction(t))return t.call(this,e,r);if(te.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Re(e)){const r=te.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ae(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Re(e)){const o=te.findKey(r,e);!o||t&&!Ae(0,r[o],o,t)||(delete r[o],n=!0)}}return te.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Ae(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return te.forEach(this,(n,o)=>{const s=te.findKey(r,o);if(s)return t[s]=Te(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();a!==o&&delete t[o],t[a]=Te(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return te.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&te.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).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,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Ce]=this[Ce]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Re(e);t[n]||(!function(e,t){const r=te.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return te.isArray(e)?e.forEach(n):n(e),this}}Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),te.reduceDescriptors(Le.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),te.freezeMethods(Le);var _e=Le;function Pe(e,t){const r=this||Oe,n=t||r,o=_e.from(n.headers);let s=n.data;return te.forEach(e,function(e){s=e.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function ze(e){return!(!e||!e.__CANCEL__)}function Fe(e,t,r){re.call(this,null==e?"canceled":e,re.ERR_CANCELED,t,r),this.name="CanceledError"}function Be(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new re("Request failed with status code "+r.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}te.inherits(Fe,re,{__CANCEL__:!0});const Ue=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,s=0,a=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=n[a];o||(o=l),r[s]=i,n[s]=l;let d=a,u=0;for(;d!==s;)u+=r[d++],d%=e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),l-o<t)return;const m=c&&l-c;return m?Math.round(1e3*u/m):void 0}}(50,250);return function(e,t){let r,n,o=0,s=1e3/t;const a=(t,s=Date.now())=>{o=s,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),i=t-o;i>=s?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},s-i)))},()=>r&&a(r)]}(r=>{const s=r.loaded,a=r.lengthComputable?r.total:void 0,i=s-n,l=o(i);n=s;e({loaded:s,total:a,progress:a?s/a:void 0,bytes:i,rate:l||void 0,estimated:l&&a&&s<=a?(a-s)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},De=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Me=e=>(...t)=>te.asap(()=>e(...t));var Ie=Ne.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ne.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ne.origin),Ne.navigator&&/(msie|trident)/i.test(Ne.navigator.userAgent)):()=>!0,qe=Ne.hasStandardBrowserEnv?{write(e,t,r,n,o,s){const a=[e+"="+encodeURIComponent(t)];te.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),te.isString(n)&&a.push("path="+n),te.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function We(e,t,r){let n=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const He=e=>e instanceof _e?{...e}:e;function Ge(e,t){t=t||{};const r={};function n(e,t,r,n){return te.isPlainObject(e)&&te.isPlainObject(t)?te.merge.call({caseless:n},e,t):te.isPlainObject(t)?te.merge({},t):te.isArray(t)?t.slice():t}function o(e,t,r,o){return te.isUndefined(t)?te.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function s(e,t){if(!te.isUndefined(t))return n(void 0,t)}function a(e,t){return te.isUndefined(t)?te.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function i(r,o,s){return s in t?n(r,o):s in e?n(void 0,r):void 0}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(e,t,r)=>o(He(e),He(t),0,!0)};return te.forEach(Object.keys({...e,...t}),function(n){const s=l[n]||o,a=s(e[n],t[n],n);te.isUndefined(a)&&s!==i||(r[n]=a)}),r}var Ke=e=>{const t=Ge({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:i}=t;if(t.headers=a=_e.from(a),t.url=pe(We(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&a.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):""))),te.isFormData(r))if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(te.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&a.set(e,r)})}if(Ne.hasStandardBrowserEnv&&(n&&te.isFunction(n)&&(n=n(t)),n||!1!==n&&Ie(t.url))){const e=o&&s&&qe.read(s);e&&a.set(o,e)}return t};var Je="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Ke(e);let o=n.data;const s=_e.from(n.headers).normalize();let a,i,l,c,d,{responseType:u,onUploadProgress:m,onDownloadProgress:f}=n;function p(){c&&c(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const n=_e.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Be(function(e){t(e),p()},function(e){r(e),p()},{data:u&&"text"!==u&&"json"!==u?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(r(new re("Request aborted",re.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const n=new re(t&&t.message?t.message:"Network Error",re.ERR_NETWORK,e,h);n.event=t||null,r(n),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ge;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new re(t,o.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,h)),h=null},void 0===o&&s.setContentType(null),"setRequestHeader"in h&&te.forEach(s.toJSON(),function(e,t){h.setRequestHeader(t,e)}),te.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),u&&"json"!==u&&(h.responseType=n.responseType),f&&([l,d]=Ue(f,!0),h.addEventListener("progress",l)),m&&h.upload&&([i,c]=Ue(m),h.upload.addEventListener("progress",i),h.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new Fe(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);b&&-1===Ne.protocols.indexOf(b)?r(new re("Unsupported protocol "+b+":",re.ERR_BAD_REQUEST,e)):h.send(o||null)})};var $e=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof re?t:new Fe(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new re(`timeout ${t} of ms exceeded`,re.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:i}=n;return i.unsubscribe=()=>te.asap(a),i}};const Ve=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},Xe=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Ze=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of Xe(e))yield*Ve(r,t)}(e,t);let s,a=0,i=e=>{s||(s=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return i(),void e.close();let s=n.byteLength;if(r){let e=a+=s;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw i(e),e}},cancel:e=>(i(e),o.return())},{highWaterMark:2})},{isFunction:Qe}=te,Ye=(({Request:e,Response:t})=>({Request:e,Response:t}))(te.global),{ReadableStream:et,TextEncoder:tt}=te.global,rt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},nt=e=>{e=te.merge.call({skipUndefined:!0},Ye,e);const{fetch:t,Request:r,Response:n}=e,o=t?Qe(t):"function"==typeof fetch,s=Qe(r),a=Qe(n);if(!o)return!1;const i=o&&Qe(et),l=o&&("function"==typeof tt?(c=new tt,e=>c.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var c;const d=s&&i&&rt(()=>{let e=!1;const t=new r(Ne.origin,{body:new et,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=a&&i&&rt(()=>te.isReadableStream(new n("").body)),m={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new re(`Response type '${e}' is not supported`,re.ERR_NOT_SUPPORT,r)})});const f=async(e,t)=>{const n=te.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(te.isBlob(e))return e.size;if(te.isSpecCompliantForm(e)){const t=new r(Ne.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return te.isArrayBufferView(e)||te.isArrayBuffer(e)?e.byteLength:(te.isURLSearchParams(e)&&(e+=""),te.isString(e)?(await l(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:a,data:i,signal:l,cancelToken:c,timeout:p,onDownloadProgress:h,onUploadProgress:g,responseType:b,headers:v,withCredentials:y="same-origin",fetchOptions:x}=Ke(e),w=t||fetch;b=b?(b+"").toLowerCase():"text";let k=$e([l,c&&c.toAbortSignal()],p),N=null;const E=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let S;try{if(g&&d&&"get"!==a&&"head"!==a&&0!==(S=await f(v,i))){let e,t=new r(o,{method:"POST",body:i,duplex:"half"});if(te.isFormData(i)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,r]=De(S,Ue(Me(g)));i=Ze(t.body,65536,e,r)}}te.isString(y)||(y=y?"include":"omit");const t=s&&"credentials"in r.prototype,l={...x,signal:k,method:a.toUpperCase(),headers:v.normalize().toJSON(),body:i,duplex:"half",credentials:t?y:void 0};N=s&&new r(o,l);let c=await(s?w(N,x):w(o,l));const p=u&&("stream"===b||"response"===b);if(u&&(h||p&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=c[t]});const t=te.toFiniteNumber(c.headers.get("content-length")),[r,o]=h&&De(t,Ue(Me(h),!0))||[];c=new n(Ze(c.body,65536,r,()=>{o&&o(),E&&E()}),e)}b=b||"text";let O=await m[te.findKey(m,b)||"text"](c,e);return!p&&E&&E(),await new Promise((t,r)=>{Be(t,r,{data:O,headers:_e.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:N})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new re("Network Error",re.ERR_NETWORK,e,N),{cause:t.cause||t});throw re.from(t,t&&t.code,e,N)}}},ot=new Map,st=e=>{let t=e?e.env:{};const{fetch:r,Request:n,Response:o}=t,s=[n,o,r];let a,i,l=s.length,c=ot;for(;l--;)a=s[l],i=c.get(a),void 0===i&&c.set(a,i=l?new Map:nt(t)),c=i;return i};st();const at={http:null,xhr:Je,fetch:{get:st}};te.forEach(at,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const it=e=>`- ${e}`,lt=e=>te.isFunction(e)||null===e||!1===e;var ct=(e,t)=>{e=te.isArray(e)?e:[e];const{length:r}=e;let n,o;const s={};for(let a=0;a<r;a++){let r;if(n=e[a],o=n,!lt(n)&&(o=at[(r=String(n)).toLowerCase()],void 0===o))throw new re(`Unknown adapter '${r}'`);if(o&&(te.isFunction(o)||(o=o.get(t))))break;s[r||"#"+a]=o}if(!o){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new re("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(it).join("\n"):" "+it(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function dt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fe(null,e)}function ut(e){dt(e),e.headers=_e.from(e.headers),e.data=Pe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ct(e.adapter||Oe.adapter,e)(e).then(function(t){return dt(e),t.data=Pe.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t},function(t){return ze(t)||(dt(e),t&&t.response&&(t.response.data=Pe.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)})}const mt="1.12.2",ft={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ft[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pt={};ft.transitional=function(e,t,r){function n(e,t){return"[Axios v"+mt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,s)=>{if(!1===e)throw new re(n(o," has been removed"+(t?" in "+t:"")),re.ERR_DEPRECATED);return t&&!pt[o]&&(pt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,s)}},ft.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var ht={assertOptions:function(e,t,r){if("object"!=typeof e)throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],a=t[s];if(a){const t=e[s],r=void 0===t||a(t,s,e);if(!0!==r)throw new re("option "+s+" must be "+r,re.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new re("Unknown option "+s,re.ERR_BAD_OPTION)}},validators:ft};const gt=ht.validators;class bt{constructor(e){this.defaults=e||{},this.interceptors={request:new he,response:new he}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ge(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&ht.assertOptions(r,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean)},!1),null!=n&&(te.isFunction(n)?t.paramsSerializer={serialize:n}:ht.assertOptions(n,{encode:gt.function,serialize:gt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ht.assertOptions(t,{baseUrl:gt.spelling("baseURL"),withXsrfToken:gt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&te.merge(o.common,o[t.method]);o&&te.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=_e.concat(s,o);const a=[];let i=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let d,u=0;if(!i){const e=[ut.bind(this),void 0];for(e.unshift(...a),e.push(...l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=a.length;let m=t;for(;u<d;){const e=a[u++],t=a[u++];try{m=e(m)}catch(e){t.call(this,e);break}}try{c=ut.call(this,m)}catch(e){return Promise.reject(e)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return pe(We((e=Ge(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}te.forEach(["delete","get","head","options"],function(e){bt.prototype[e]=function(t,r){return this.request(Ge(r||{},{method:e,url:t,data:(r||{}).data}))}}),te.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(Ge(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}bt.prototype[e]=t(),bt.prototype[e+"Form"]=t(!0)});var vt=bt;class yt{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 r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new Fe(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(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 yt(function(t){e=t}),cancel:e}}}var xt=yt;const wt={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};Object.entries(wt).forEach(([e,t])=>{wt[t]=e});var kt=wt;const Nt=function e(t){const r=new vt(t),n=u(vt.prototype.request,r);return te.extend(n,vt.prototype,r,{allOwnKeys:!0}),te.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ge(t,r))},n}(Oe);Nt.Axios=vt,Nt.CanceledError=Fe,Nt.CancelToken=xt,Nt.isCancel=ze,Nt.VERSION=mt,Nt.toFormData=ce,Nt.AxiosError=re,Nt.Cancel=Nt.CanceledError,Nt.all=function(e){return Promise.all(e)},Nt.spread=function(e){return function(t){return e.apply(null,t)}},Nt.isAxiosError=function(e){return te.isObject(e)&&!0===e.isAxiosError},Nt.mergeConfig=Ge,Nt.AxiosHeaders=_e,Nt.formToJSON=e=>Ee(te.isHTMLForm(e)?new FormData(e):e),Nt.getAdapter=ct,Nt.HttpStatusCode=kt,Nt.default=Nt;var Et=Nt;function St(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=St(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const Ot=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),jt="-",Ct=[],Rt=e=>{const t=Lt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return At(e);const r=e.split(jt),n=""===r[0]&&r.length>1?1:0;return Tt(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||Ct}return r[e]||Ct}}},Tt=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=Tt(e,t+1,o);if(r)return r}const s=r.validators;if(null===s)return;const a=0===t?e.join(jt):e.slice(t).join(jt),i=s.length;for(let e=0;e<i;e++){const t=s[e];if(t.validator(a))return t.classGroupId}},At=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),Lt=e=>{const{theme:t,classGroups:r}=e;return _t(r,t)},_t=(e,t)=>{const r=Ot();for(const n in e){const o=e[n];Pt(o,r,n,t)}return r},Pt=(e,t,r,n)=>{const o=e.length;for(let s=0;s<o;s++){const o=e[s];zt(o,t,r,n)}},zt=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?Ut(e,t,r,n):Bt(e,t,r,n):Ft(e,t,r)},Ft=(e,t,r)=>{(""===e?t:Dt(t,e)).classGroupId=r},Bt=(e,t,r,n)=>{Mt(e)?Pt(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},Ut=(e,t,r,n)=>{const o=Object.entries(e),s=o.length;for(let e=0;e<s;e++){const[s,a]=o[e];Pt(a,Dt(t,s),r,n)}},Dt=(e,t)=>{let r=e;const n=t.split(jt),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=Ot(),r.nextPart.set(t,o)),r=o}return r},Mt=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,It=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,s)=>{r[o]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},qt=[],Wt=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Ht=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,s=0;const a=e.length;for(let i=0;i<a;i++){const a=e[i];if(0===n&&0===o){if(":"===a){t.push(e.slice(s,i)),s=i+1;continue}if("/"===a){r=i;continue}}"["===a?n++:"]"===a?n--:"("===a?o++:")"===a&&o--}const i=0===t.length?e:e.slice(s);let l=i,c=!1;i.endsWith("!")?(l=i.slice(0,-1),c=!0):i.startsWith("!")&&(l=i.slice(1),c=!0);return Wt(t,c,l,r&&r>s?r-s:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):Wt(qt,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},Gt=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const s=e[o],a="["===s[0],i=t.has(s);a||i?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(s)):n.push(s)}return n.length>0&&(n.sort(),r.push(...n)),r}},Kt=/\s+/,Jt=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Jt(e[n]))&&(r&&(r+=" "),r+=t);return r},$t=[],Vt=e=>{const t=t=>t[e]||$t;return t.isThemeGetter=!0,t},Xt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qt=/^\d+\/\d+$/,Yt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,er=/\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$/,tr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,or=e=>Qt.test(e),sr=e=>!!e&&!Number.isNaN(Number(e)),ar=e=>!!e&&Number.isInteger(Number(e)),ir=e=>e.endsWith("%")&&sr(e.slice(0,-1)),lr=e=>Yt.test(e),cr=()=>!0,dr=e=>er.test(e)&&!tr.test(e),ur=()=>!1,mr=e=>rr.test(e),fr=e=>nr.test(e),pr=e=>!gr(e)&&!kr(e),hr=e=>Rr(e,_r,ur),gr=e=>Xt.test(e),br=e=>Rr(e,Pr,dr),vr=e=>Rr(e,zr,sr),yr=e=>Rr(e,Ar,ur),xr=e=>Rr(e,Lr,fr),wr=e=>Rr(e,Br,mr),kr=e=>Zt.test(e),Nr=e=>Tr(e,Pr),Er=e=>Tr(e,Fr),Sr=e=>Tr(e,Ar),Or=e=>Tr(e,_r),jr=e=>Tr(e,Lr),Cr=e=>Tr(e,Br,!0),Rr=(e,t,r)=>{const n=Xt.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Tr=(e,t,r=!1)=>{const n=Zt.exec(e);return!!n&&(n[1]?t(n[1]):r)},Ar=e=>"position"===e||"percentage"===e,Lr=e=>"image"===e||"url"===e,_r=e=>"length"===e||"size"===e||"bg-size"===e,Pr=e=>"length"===e,zr=e=>"number"===e,Fr=e=>"family-name"===e,Br=e=>"shadow"===e,Ur=((e,...t)=>{let r,n,o,s;const a=e=>{const t=n(e);if(t)return t;const s=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Kt);let l="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{isExternal:c,modifiers:d,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:f}=r(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!f,h=n(p?m.substring(0,f):m);if(!h){if(!p){l=t+(l.length>0?" "+l:l);continue}if(h=n(m),!h){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=0===d.length?"":1===d.length?d[0]:s(d).join(":"),b=u?g+"!":g,v=b+h;if(a.indexOf(v)>-1)continue;a.push(v);const y=o(h,p);for(let e=0;e<y.length;++e){const t=y[e];a.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,s),s};return s=i=>{const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:It(e.cacheSize),parseClassName:Ht(e),sortModifiers:Gt(e),...Rt(e)}))(l),n=r.cache.get,o=r.cache.set,s=a,a(i)},(...e)=>s(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=Jt(t))&&(o&&(o+=" "),o+=r);return o})(...e))})(()=>{const e=Vt("color"),t=Vt("font"),r=Vt("text"),n=Vt("font-weight"),o=Vt("tracking"),s=Vt("leading"),a=Vt("breakpoint"),i=Vt("container"),l=Vt("spacing"),c=Vt("radius"),d=Vt("shadow"),u=Vt("inset-shadow"),m=Vt("text-shadow"),f=Vt("drop-shadow"),p=Vt("blur"),h=Vt("perspective"),g=Vt("aspect"),b=Vt("ease"),v=Vt("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",kr,gr],x=()=>[kr,gr,l],w=()=>[or,"full","auto",...x()],k=()=>[ar,"none","subgrid",kr,gr],N=()=>["auto",{span:["full",ar,kr,gr]},ar,kr,gr],E=()=>[ar,"auto",kr,gr],S=()=>["auto","min","max","fr",kr,gr],O=()=>["auto",...x()],j=()=>[or,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],C=()=>[e,kr,gr],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Sr,yr,{position:[kr,gr]}],T=()=>["auto","cover","contain",Or,hr,{size:[kr,gr]}],A=()=>[ir,Nr,br],L=()=>["","none","full",c,kr,gr],_=()=>["",sr,Nr,br],P=()=>[sr,ir,Sr,yr],z=()=>["","none",p,kr,gr],F=()=>["none",sr,kr,gr],B=()=>["none",sr,kr,gr],U=()=>[sr,kr,gr],D=()=>[or,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[lr],breakpoint:[lr],color:[cr],container:[lr],"drop-shadow":[lr],ease:["in","out","in-out"],font:[pr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[lr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[lr],shadow:[lr],spacing:["px",sr],text:[lr],"text-shadow":[lr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",or,gr,kr,g]}],container:["container"],columns:[{columns:[sr,gr,kr,i]}],"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:y()}],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:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[ar,"auto",kr,gr]}],basis:[{basis:[or,"full","auto",i,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[sr,or,"auto","initial","none",gr]}],grow:[{grow:["",sr,kr,gr]}],shrink:[{shrink:["",sr,kr,gr]}],order:[{order:[ar,"first","last","none",kr,gr]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"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:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[i,"screen",...j()]}],"min-w":[{"min-w":[i,"screen","none",...j()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",r,Nr,br]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,kr,vr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ir,gr]}],"font-family":[{font:[Er,gr,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:[o,kr,gr]}],"line-clamp":[{"line-clamp":[sr,"none",kr,vr]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",kr,gr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",kr,gr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[sr,"from-font","auto",kr,br]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[sr,"auto",kr,gr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",kr,gr]}],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",kr,gr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ar,kr,gr],radial:["",kr,gr],conic:[ar,kr,gr]},jr,xr]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"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:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[sr,kr,gr]}],"outline-w":[{outline:["",sr,Nr,br]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",d,Cr,wr]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",u,Cr,wr]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[sr,br]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",m,Cr,wr]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[sr,kr,gr]}],"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":[sr]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[kr,gr]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":[sr]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",kr,gr]}],filter:[{filter:["","none",kr,gr]}],blur:[{blur:z()}],brightness:[{brightness:[sr,kr,gr]}],contrast:[{contrast:[sr,kr,gr]}],"drop-shadow":[{"drop-shadow":["","none",f,Cr,wr]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",sr,kr,gr]}],"hue-rotate":[{"hue-rotate":[sr,kr,gr]}],invert:[{invert:["",sr,kr,gr]}],saturate:[{saturate:[sr,kr,gr]}],sepia:[{sepia:["",sr,kr,gr]}],"backdrop-filter":[{"backdrop-filter":["","none",kr,gr]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[sr,kr,gr]}],"backdrop-contrast":[{"backdrop-contrast":[sr,kr,gr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",sr,kr,gr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[sr,kr,gr]}],"backdrop-invert":[{"backdrop-invert":["",sr,kr,gr]}],"backdrop-opacity":[{"backdrop-opacity":[sr,kr,gr]}],"backdrop-saturate":[{"backdrop-saturate":[sr,kr,gr]}],"backdrop-sepia":[{"backdrop-sepia":["",sr,kr,gr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",kr,gr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[sr,"initial",kr,gr]}],ease:[{ease:["linear","initial",b,kr,gr]}],delay:[{delay:[sr,kr,gr]}],animate:[{animate:["none",v,kr,gr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,kr,gr]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":["scale-3d"],skew:[{skew:U()}],"skew-x":[{"skew-x":U()}],"skew-y":[{"skew-y":U()}],transform:[{transform:[kr,gr,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:D()}],"translate-x":[{"translate-x":D()}],"translate-y":[{"translate-y":D()}],"translate-z":[{"translate-z":D()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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",kr,gr]}],"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":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",kr,gr]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[sr,Nr,br,vr]}],stroke:[{stroke:["none",...C()]}],"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"]}});var Dr="https://speakeasy-1dxj.onrender.com/speakeasy";function Mr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ur(function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=St(e))&&(n&&(n+=" "),n+=t);return n}(e))}var Ir=function(e){return l(void 0,void 0,void 0,function(){return c(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Et.get("".concat(Dr,"/reviews/").concat(e))];case 1:return[2,t.sent().data];case 2:return[2,t.sent()];case 3:return[2]}})})},qr=function(e){return l(void 0,void 0,void 0,function(){return c(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Et.get("".concat(Dr,"/blogs/").concat(e))];case 1:return[2,t.sent().data];case 2:return[2,t.sent()];case 3:return[2]}})})},Wr=function(e){return l(void 0,void 0,void 0,function(){return c(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Et.get("".concat(Dr,"/services/").concat(e))];case 1:return[2,t.sent().data];case 2:return[2,t.sent()];case 3:return[2]}})})},Hr=function(e){return l(void 0,void 0,void 0,function(){return c(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Et.get("".concat(Dr,"/products/").concat(e))];case 1:return[2,t.sent().data];case 2:return[2,t.sent()];case 3:return[2]}})})},Gr=function(e,t){return l(void 0,[e,t],void 0,function(e,t){var r,n=t.name,o=void 0===n?"":n,s=t.email,a=t.phone,i=void 0===a?"":a,l=t.subject,d=void 0===l?"":l,u=t.message;return c(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),r={name:o,email:s,phone:i,subject:d,message:u},[4,Et.post("".concat(Dr,"/message/").concat(e),r)];case 1:return[2,t.sent().data];case 2:return[2,t.sent()];case 3:return[2]}})})},Kr=function(r){var n=r.className;return t("svg",{className:n,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),e("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),e("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),e("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})},Jr=function(r){var n=r.className;return t("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},$r="grid gap-8",Vr="bg-card rounded-xl overflow-hidden hover:shadow-2xl transition-all duration-300 cursor-pointer group",Xr="relative overflow-hidden",Zr="w-full h-full object-cover rounded-xl transition-transform duration-500 group-hover:scale-105",Qr="absolute bottom-4 left-4 right-4",Yr="inline-block px-3 py-1 text-xs font-medium rounded-full bg-background/90 backdrop-blur-sm",en="p-6",tn="font-bold text-xl text-foreground mb-3 group-hover:text-primary transition-colors",rn="text-muted-foreground text-sm mb-4",nn="flex flex-wrap gap-2 mb-4",on="inline-block px-2 py-1 text-xs rounded-md border bg-background",sn="fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4",an="bg-background rounded-xl max-w-4xl w-full max-h-[90vh] overflow-hidden flex flex-col",ln="flex items-center justify-between p-6 border-b",cn="text-2xl font-bold text-foreground",dn="p-2 hover:bg-secondary rounded-lg transition-colors",un="overflow-y-auto p-6 flex-1",mn="mb-6",fn="text-lg font-semibold text-foreground mb-3",pn="w-full h-full object-cover rounded-lg mb-6",hn=function(n){var a=n.apiKey,i=n.columns,d=void 0===i?{mobile:1,tablet:2,desktop:3}:i,u=n.showImage,m=void 0===u||u,f=n.imageHeight,p=void 0===f?"250px":f,h=n.showDate,g=void 0===h||h,b=n.contentCharacterLimit,v=void 0===b?100:b,y=n.showKeywords,x=void 0===y||y,w=n.maxKeywordsDisplay,k=void 0===w?3:w,N=n.maxDescriptionLines,E=void 0===N?3:N,S=n.modalTitle,O=void 0===S?"Blog Details":S,j=n.showModalImage,C=void 0===j||j,R=n.cardClassName,T=n.modalClassName,A=n.badgeClassName,L=n.onProjectClick,_=n.onError,P=n.onSuccess,z=n.customCardRenderer,F=n.customModalRenderer,B=o(null),U=B[0],D=B[1],M=o([]),I=M[0],q=M[1],W=o(!0),H=W[0],G=W[1],K=o(null),J=K[0],$=K[1],V="https://speakeasy-1dxj.onrender.com/speakeasy/blogs",X=function(e,t){if(void 0===t&&(t=v),!e)return"";var r=document.createElement("div");r.innerHTML=e;var n=r.textContent||r.innerText||"";return n.length>t?n.slice(0,t)+"...":n};s(function(){a&&l(void 0,void 0,void 0,function(){var e,t,r,n;return c(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,4,5]),G(!0),$(null),[4,fetch("".concat(V,"/").concat(a))];case 1:if(!(e=o.sent()).ok)throw new Error("Failed to fetch testimonials: ".concat(e.statusText));return[4,e.json()];case 2:return t=o.sent(),q(t.data),P&&P(t.data),[3,5];case 3:return r=o.sent(),n=r instanceof Error?r:new Error("Unknown error occurred"),$(n),_&&_(n),[3,5];case 4:return G(!1),[7];case 5:return[2]}})})},[a,V,_,P]);var Z=function(e){D(e),null==L||L(e)},Q=function(){D(null)};return H?e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),children:e(function(){return e("div",{className:"flex flex-col gap-6 py-12",children:Array.from({length:2}).map(function(r,n){return e("div",{className:Mr("flex overflow-hidden px-10 gap-6"),children:Array.from({length:3}).map(function(r,n){return e("div",{className:Mr("rounded-lg border bg-card shadow-sm h-64 p-6 animate-pulse w-80"),children:t("div",{className:"flex flex-col h-full",children:[e("div",{className:"flex gap-1 mb-4",children:Array.from({length:5}).map(function(t,r){return e("div",{className:"h-4 w-4 bg-muted rounded"},r)})}),t("div",{className:"space-y-3 mb-6 flex-grow",children:[e("div",{className:"h-4 bg-muted rounded w-full"}),e("div",{className:"h-4 bg-muted rounded w-5/6"}),e("div",{className:"h-4 bg-muted rounded w-4/6"})]}),t("div",{className:"flex items-center space-x-3 mt-auto",children:[e("div",{className:Mr("w-12 h-12 bg-muted rounded-full")}),t("div",{className:"space-y-2 flex-grow",children:[e("div",{className:"h-4 bg-muted rounded w-24"}),e("div",{className:"h-3 bg-muted rounded w-32"})]})]})]})},n)})},n)})})},{})}):J?e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),children:e(function(){return e("div",{className:"flex items-center justify-center py-12",children:t("div",{className:"text-center max-w-md",children:[e("div",{className:"mb-4",children:e("svg",{className:"mx-auto h-12 w-12 text-destructive",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),e("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Failed to load blogs"}),e("p",{className:"text-sm text-muted-foreground",children:(null==J?void 0:J.message)||"An error occurred while fetching blogs"})]})})},{})}):I&&0!==I.length?t(r,{children:[e("div",{className:Mr($r,function(){var e=d.mobile,t=void 0===e?1:e,r=d.tablet,n=void 0===r?2:r,o=d.desktop,s=void 0===o?3:o,a=[];return 1===t?a.push("grid-cols-1"):2===t&&a.push("grid-cols-2"),2===n?a.push("md:grid-cols-2"):3===n&&a.push("md:grid-cols-3"),3===s?a.push("lg:grid-cols-3"):4===s?a.push("lg:grid-cols-4"):2===s&&a.push("lg:grid-cols-2"),a.join(" ")}()),children:I.map(function(r,n){var o,s;return z?e("div",{onClick:function(){return Z(r)},children:z(r)},n):t("div",{className:Mr(Vr,R),onClick:function(){return Z(r)},children:[m&&r.image_url&&t("div",{className:Xr,style:{height:p},children:[e("img",{src:r.image_url,alt:r.title,className:Zr}),g&&r.created_at&&e("div",{className:Qr,children:e("span",{className:Mr(Yr,A),children:r.created_at&&new Date(r.created_at).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"})})})]}),t("div",{className:en,children:[e("h3",{className:Mr(tn,E&&"line-clamp-2"),children:r.title}),e("p",{className:Mr(rn,E&&"line-clamp-".concat(E)),children:r.summary}),x&&r.tags&&(null===(o=r.tags)||void 0===o?void 0:o.split(",").map(function(e){return e.trim()}).filter(Boolean).length)>0&&e("div",{className:nn,children:null===(s=r.tags)||void 0===s?void 0:s.split(",").slice(0,k).map(function(t,r){return e("span",{className:Mr(on,A),children:t},r)})}),e("div",{children:X((null==r?void 0:r.content)||"")})," "]})]},n)})}),U&&e("div",{className:sn,onClick:Q,children:t("div",{className:Mr(an,T),onClick:function(e){return e.stopPropagation()},children:[t("div",{className:ln,children:[e("h2",{className:cn,children:O}),e("button",{onClick:Q,className:dn,"aria-label":"Close modal",children:e(Jr,{className:"w-6 h-6"})})]}),e("div",{className:un,children:function(){var r,n,o;return U?F?F(U):t("div",{children:[C&&U.image_url&&e("img",{src:U.image_url,alt:U.title,className:pn}),t("div",{className:mn,children:[e("h2",{className:"text-3xl font-bold text-foreground mb-2",children:U.title}),U.created_at&&t("div",{className:"flex items-center gap-2 text-muted-foreground mb-4",children:[e(Kr,{className:"w-4 h-4"}),e("span",{children:new Date(U.created_at).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"})})]})]}),U.tags&&(null===(r=U.tags)||void 0===r?void 0:r.split(",").map(function(e){return e.trim()}).filter(Boolean).length)>0&&t("div",{className:mn,children:[e("h3",{className:fn,children:"Keywords"}),e("div",{className:"flex flex-wrap gap-2",children:null===(n=U.tags)||void 0===n?void 0:n.split(",").map(function(t,r){return e("span",{className:Mr(on,A),children:t},r)})})]}),e("div",{dangerouslySetInnerHTML:{__html:null!==(o=U.content)&&void 0!==o?o:""}})]}):null}()})]})})]}):e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),children:e("div",{className:"flex items-center justify-center py-12",children:e("p",{className:"text-muted-foreground",children:"No blogs available"})})})},gn=function(t){var r=t.className;return e("svg",{className:r,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("polyline",{points:"9,18 15,12 9,6"})})},bn=function(r){var n=r.className;return t("svg",{className:"animate-spin ".concat(n),width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:[e("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",className:"opacity-25"}),e("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",className:"opacity-75"})]})},vn="flex justify-center w-full",yn="w-full flex justify-center items-center",xn="flex flex-col gap-8",wn="grid grid-cols-1 md:grid-cols-2 gap-6",kn="flex flex-col",Nn="text-sm font-light tracking-wide text-gray-700",En="outline-none mt-3 p-2.5 px-3 border border-gray-300 rounded-lg focus:border-blue-500 active:border-blue-500 placeholder:text-gray-400 placeholder:font-light font-light text-sm text-gray-700 transition-colors",Sn="outline-none mt-3 p-2.5 px-3 border border-gray-300 rounded-lg focus:border-blue-500 active:border-blue-500 placeholder:text-gray-400 placeholder:font-light font-light text-sm resize-none h-36 text-gray-700 transition-colors",On="bg-[#346ed4] hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium text-sm capitalize border border-transparent transition-all duration-200 ease-in-out flex gap-2 hover:gap-3 items-center w-fit disabled:opacity-50 disabled:cursor-not-allowed",jn="bg-green-50 border border-green-200 text-green-800 px-4 py-3 rounded-lg text-sm",Cn="bg-red-50 border border-red-200 text-red-800 px-4 py-3 rounded-lg text-sm",Rn=function(n){var s=n.apiKey,a=n.showName,d=void 0===a||a,u=n.showPhone,m=void 0===u||u,f=n.showSubject,p=void 0===f||f,h=n.nameLabel,g=void 0===h?"Full Name":h,b=n.emailLabel,v=void 0===b?"Email Address":b,y=n.phoneLabel,x=void 0===y?"Phone Number":y,w=n.subjectLabel,k=void 0===w?"Subject":w,N=n.messageLabel,E=void 0===N?"Message":N,S=n.namePlaceholder,O=void 0===S?"Aku Sika":S,j=n.emailPlaceholder,C=void 0===j?"support@gmail.com":j,R=n.phonePlaceholder,T=void 0===R?"000 000 000 000":R,A=n.subjectPlaceholder,L=void 0===A?"I would like to discuss...":A,_=n.messagePlaceholder,P=void 0===_?"Write message":_;n.sectionSubtitle;var z=n.submitButtonText,F=void 0===z?"Send message":z,B=n.loadingText,U=void 0===B?"Sending...":B,D=n.successMessage,M=void 0===D?"Your message has been sent successfully!":D,I=n.errorMessage,q=void 0===I?"Failed to send message. Please try again.":I,W=n.onSubmit,H=n.onSuccess,G=n.onError,K=n.className,J=n.containerClassName,$=n.formClassName,V=n.inputClassName,X=n.textareaClassName,Z=n.buttonClassName,Q=n.labelClassName,Y=n.customValidation,ee=n.showSuccessMessage,te=void 0===ee||ee,re=n.showErrorMessage,ne=void 0===re||re,oe=o({name:"",email:"",phone:"",subject:"",message:""}),se=oe[0],ae=oe[1],ie=o(!1),le=ie[0],ce=ie[1],de=o({}),ue=de[0],me=de[1],fe=o({type:null,message:""}),pe=fe[0],he=fe[1],ge=function(e){var t=e.target,r=t.name,n=t.value;ae(function(e){var t;return i(i({},e),((t={})[r]=n,t))}),ue[r]&&me(function(e){var t;return i(i({},e),((t={})[r]="",t))}),pe.type&&he({type:null,message:""})};return e("div",{className:J||"".concat(vn," ").concat(K||""),children:e("div",{className:yn,children:t("form",{onSubmit:function(e){return l(void 0,void 0,void 0,function(){var t,r;return c(this,function(n){switch(n.label){case 0:if(e.preventDefault(),!function(){var e={};if(se.email?/\S+@\S+\.\S+/.test(se.email)||(e.email="Please enter a valid email address"):e.email="Email is required",se.message||(e.message="Message is required"),Y){var t=Y(se);t&&(e.custom=t)}return me(e),0===Object.keys(e).length}())return[2];n.label=1;case 1:return n.trys.push([1,6,7,8]),ce(!0),he({type:null,message:""}),W?[4,W(se)]:[3,3];case 2:return n.sent(),[3,5];case 3:return[4,(o=se,l(void 0,void 0,void 0,function(){var e;return c(this,function(t){switch(t.label){case 0:return[4,fetch("".concat("https://speakeasy-1dxj.onrender.com/speakeasy/message","/").concat(s),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i(i({},o),{timestamp:(new Date).toISOString()}))})];case 1:if(!(e=t.sent()).ok)throw new Error("HTTP error! status: ".concat(e.status));return[4,e.json()];case 2:return[2,t.sent()]}})}))];case 4:t=n.sent(),te&&he({type:"success",message:M}),null==H||H(t),n.label=5;case 5:return ae({name:"",email:"",phone:"",subject:"",message:""}),W&&(null==H||H(),te&&he({type:"success",message:M})),[3,8];case 6:return r=n.sent(),console.error("Contact form submission error:",r),ne&&he({type:"error",message:q}),null==G||G(r),[3,8];case 7:return ce(!1),[7];case 8:return[2]}var o})})},className:$||xn,children:[pe.type&&e("div",{className:"success"===pe.type?jn:Cn,children:pe.message}),t("div",{className:wn,children:[d&&t("div",{className:kn,children:[e("label",{htmlFor:"name",className:Q||Nn,children:g}),e("input",{type:"text",id:"name",name:"name",value:se.name,onChange:ge,className:V||En,placeholder:O}),ue.name&&e("span",{className:"text-red-500 text-xs mt-1",children:ue.name})]}),t("div",{className:kn,children:[t("label",{htmlFor:"email",className:Q||Nn,children:[v," *"]}),e("input",{type:"email",id:"email",name:"email",required:!0,value:se.email,onChange:ge,className:V||En,placeholder:C}),ue.email&&e("span",{className:"text-red-500 text-xs mt-1",children:ue.email})]})]}),(m||p)&&t("div",{className:wn,children:[m&&t("div",{className:kn,children:[e("label",{htmlFor:"phone",className:Q||Nn,children:x}),e("input",{type:"text",id:"phone",name:"phone",value:se.phone,onChange:ge,className:V||En,placeholder:T}),ue.phone&&e("span",{className:"text-red-500 text-xs mt-1",children:ue.phone})]}),p&&t("div",{className:kn,children:[e("label",{htmlFor:"subject",className:Q||Nn,children:k}),e("input",{type:"text",id:"subject",name:"subject",value:se.subject,onChange:ge,className:V||En,placeholder:L}),ue.subject&&e("span",{className:"text-red-500 text-xs mt-1",children:ue.subject})]})]}),t("div",{className:kn,children:[t("label",{htmlFor:"message",className:Q||Nn,children:[E," *"]}),e("textarea",{name:"message",id:"message",required:!0,value:se.message,onChange:ge,className:X||Sn,placeholder:P}),ue.message&&e("span",{className:"text-red-500 text-xs mt-1",children:ue.message})]}),ue.custom&&e("div",{className:"text-red-500 text-sm",children:ue.custom}),e("button",{type:"submit",className:Z||On,disabled:le,children:t(r,le?{children:[U,e(bn,{className:"text-current"})]}:{children:[F,e(gn,{className:"text-current"})]})})]})})})},Tn="grid gap-8 sm:grid-cols-2 lg:grid-cols-3",An="bg-card border border-border rounded-2xl overflow-hidden transition-all duration-300 hover:-translate-y-1 hover:shadow-xl cursor-pointer group",Ln="relative h-48 w-full overflow-hidden bg-muted",_n="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",Pn="absolute top-3 left-3",zn="inline-flex items-center px-3 py-1 text-[11px] font-medium rounded-full bg-background/90 backdrop-blur border border-border",Fn="p-6 flex flex-col gap-2",Bn="font-semibold text-lg text-foreground leading-snug group-hover:text-primary transition-colors",Un="text-sm text-muted-foreground",Dn="flex flex-wrap gap-2 mt-2",Mn="px-2 py-1 text-xs rounded-md bg-secondary text-secondary-foreground",In=function(n){var a=n.apiKey,i=n.columns,d=void 0===i?{mobile:1,tablet:2,desktop:3}:i,u=n.showImage,m=void 0===u||u,f=n.imageHeight,p=void 0===f?"250px":f,h=n.showDate,g=void 0===h||h,b=n.maxDescriptionLines,v=void 0===b?3:b,y=n.showKeywords,x=void 0===y||y,w=n.maxKeywordsDisplay,k=void 0===w?3:w,N=n.cardClassName,E=n.badgeClassName,S=n.onError,O=n.onSuccess,j=n.customCardRenderer,C=o([]),R=C[0],T=C[1],A=o(!0),L=A[0],_=A[1],P=o(null),z=P[0],F=P[1],B="https://speakeasy-1dxj.onrender.com/speakeasy/products";s(function(){a&&l(void 0,void 0,void 0,function(){var e,t,r,n;return c(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,4,5]),_(!0),F(null),[4,fetch("".concat(B,"/").concat(a))];case 1:if(!(e=o.sent()).ok)throw new Error("Failed to fetch Services: ".concat(e.statusText));return[4,e.json()];case 2:return t=o.sent(),T(t.data),O&&O(t.data),[3,5];case 3:return r=o.sent(),n=r instanceof Error?r:new Error("Unknown error occurred"),F(n),S&&S(n),[3,5];case 4:return _(!1),[7];case 5:return[2]}})})},[a,B,S,O]);return L?e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),children:e(function(){return e("div",{className:"flex flex-col gap-6 py-12",children:Array.from({length:2}).map(function(r,n){return e("div",{className:Mr("flex overflow-hidden px-10 gap-6"),children:Array.from({length:3}).map(function(r,n){return e("div",{className:Mr("rounded-lg border bg-card shadow-sm h-64 p-6 animate-pulse w-80"),children:t("div",{className:"flex flex-col h-full",children:[e("div",{className:"flex gap-1 mb-4",children:Array.from({length:5}).map(function(t,r){return e("div",{className:"h-4 w-4 bg-muted rounded"},r)})}),t("div",{className:"space-y-3 mb-6 flex-grow",children:[e("div",{className:"h-4 bg-muted rounded w-full"}),e("div",{className:"h-4 bg-muted rounded w-5/6"}),e("div",{className:"h-4 bg-muted rounded w-4/6"})]}),t("div",{className:"flex items-center space-x-3 mt-auto",children:[e("div",{className:Mr("w-12 h-12 bg-muted rounded-full")}),t("div",{className:"space-y-2 flex-grow",children:[e("div",{className:"h-4 bg-muted rounded w-24"}),e("div",{className:"h-3 bg-muted rounded w-32"})]})]})]})},n)})},n)})})},{})}):z?e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),children:e(function(){return e("div",{className:"flex items-center justify-center py-12",children:t("div",{className:"text-center max-w-md",children:[e("div",{className:"mb-4",children:e("svg",{className:"mx-auto h-12 w-12 text-destructive",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),e("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Failed to load products"}),e("p",{className:"text-sm text-muted-foreground",children:(null==z?void 0:z.message)||"An error occurred while fetching products"})]})})},{})}):R&&0!==R.length?e(r,{children:e("div",{className:Mr(Tn,function(){var e=d.mobile,t=void 0===e?1:e,r=d.tablet,n=void 0===r?2:r,o=d.desktop,s=void 0===o?3:o,a=[];return 1===t?a.push("grid-cols-1"):2===t&&a.push("grid-cols-2"),2===n?a.push("md:grid-cols-2"):3===n&&a.push("md:grid-cols-3"),3===s?a.push("lg:grid-cols-3"):4===s?a.push("lg:grid-cols-4"):2===s&&a.push("lg:grid-cols-2"),a.join(" ")}()),children:R.map(function(r,n){var o,s;return j?e("div",{children:j(r)},n):t("div",{className:Mr(An,N),children:[m&&r.image_url&&t("div",{className:Ln,style:{height:p},children:[e("img",{src:r.image_url,alt:r.title,className:_n}),g&&r.created_at&&e("div",{className:Pn,children:e("span",{className:Mr(zn,E),children:r.created_at&&new Date(r.created_at).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"})})})]}),t("div",{className:Fn,children:[e("h3",{className:Mr(Bn,v&&"line-clamp-2"),children:r.title}),x&&r.tags&&(null===(o=r.tags)||void 0===o?void 0:o.split(",").map(function(e){return e.trim()}).filter(Boolean).length)>0&&e("div",{className:Dn,children:null===(s=r.tags)||void 0===s?void 0:s.split(",").slice(0,k).map(function(t,r){return e("span",{className:Mr(Mn,E),children:t},r)})}),e("p",{className:Mr(Un,v&&"line-clamp-".concat(v)),children:r.price}),e("div",{children:null==r?void 0:r.content})," "]})]},n)})})}):e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),children:e("div",{className:"flex items-center justify-center py-12",children:e("p",{className:"text-muted-foreground",children:"No products available"})})})},qn="grid gap-8 sm:grid-cols-2 lg:grid-cols-3",Wn="bg-card border border-border rounded-2xl overflow-hidden transition-all duration-300 hover:-translate-y-1 hover:shadow-xl cursor-pointer group",Hn="relative h-48 w-full overflow-hidden bg-muted",Gn="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",Kn="absolute top-3 left-3",Jn="inline-flex items-center px-3 py-1 text-[11px] font-medium rounded-full bg-background/90 backdrop-blur border border-border",$n="p-6 flex flex-col gap-2",Vn="font-semibold text-lg text-foreground leading-snug group-hover:text-primary transition-colors",Xn="text-sm text-muted-foreground",Zn=function(n){var a=n.apiKey,i=n.columns,d=void 0===i?{mobile:1,tablet:2,desktop:3}:i,u=n.showImage,m=void 0===u||u,f=n.imageHeight,p=void 0===f?"250px":f,h=n.showDate,g=void 0===h||h,b=n.maxDescriptionLines,v=void 0===b?3:b,y=n.cardClassName,x=n.badgeClassName,w=n.onError,k=n.onSuccess,N=n.customCardRenderer,E=o([]),S=E[0],O=E[1],j=o(!0),C=j[0],R=j[1],T=o(null),A=T[0],L=T[1],_="https://speakeasy-1dxj.onrender.com/speakeasy/services";s(function(){a&&l(void 0,void 0,void 0,function(){var e,t,r,n;return c(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,4,5]),R(!0),L(null),[4,fetch("".concat(_,"/").concat(a))];case 1:if(!(e=o.sent()).ok)throw new Error("Failed to fetch Services: ".concat(e.statusText));return[4,e.json()];case 2:return t=o.sent(),O(t.data),k&&k(t.data),[3,5];case 3:return r=o.sent(),n=r instanceof Error?r:new Error("Unknown error occurred"),L(n),w&&w(n),[3,5];case 4:return R(!1),[7];case 5:return[2]}})})},[a,_,w,k]);return C?e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),children:e(function(){return e("div",{className:"flex flex-col gap-6 py-12",children:Array.from({length:2}).map(function(r,n){return e("div",{className:Mr("flex overflow-hidden px-10 gap-6"),children:Array.from({length:3}).map(function(r,n){return e("div",{className:Mr("rounded-lg border bg-card shadow-sm h-64 p-6 animate-pulse w-80"),children:t("div",{className:"flex flex-col h-full",children:[e("div",{className:"flex gap-1 mb-4",children:Array.from({length:5}).map(function(t,r){return e("div",{className:"h-4 w-4 bg-muted rounded"},r)})}),t("div",{className:"space-y-3 mb-6 flex-grow",children:[e("div",{className:"h-4 bg-muted rounded w-full"}),e("div",{className:"h-4 bg-muted rounded w-5/6"}),e("div",{className:"h-4 bg-muted rounded w-4/6"})]}),t("div",{className:"flex items-center space-x-3 mt-auto",children:[e("div",{className:Mr("w-12 h-12 bg-muted rounded-full")}),t("div",{className:"space-y-2 flex-grow",children:[e("div",{className:"h-4 bg-muted rounded w-24"}),e("div",{className:"h-3 bg-muted rounded w-32"})]})]})]})},n)})},n)})})},{})}):A?e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),children:e(function(){return e("div",{className:"flex items-center justify-center py-12",children:t("div",{className:"text-center max-w-md",children:[e("div",{className:"mb-4",children:e("svg",{className:"mx-auto h-12 w-12 text-destructive",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),e("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Failed to load services"}),e("p",{className:"text-sm text-muted-foreground",children:(null==A?void 0:A.message)||"An error occurred while fetching services"})]})})},{})}):S&&0!==S.length?e(r,{children:e("div",{className:Mr(qn,function(){var e=d.mobile,t=void 0===e?1:e,r=d.tablet,n=void 0===r?2:r,o=d.desktop,s=void 0===o?3:o,a=[];return 1===t?a.push("grid-cols-1"):2===t&&a.push("grid-cols-2"),2===n?a.push("md:grid-cols-2"):3===n&&a.push("md:grid-cols-3"),3===s?a.push("lg:grid-cols-3"):4===s?a.push("lg:grid-cols-4"):2===s&&a.push("lg:grid-cols-2"),a.join(" ")}()),children:S.map(function(r,n){return N?e("div",{children:N(r)},n):t("div",{className:Mr(Wn,y),children:[m&&r.image_url&&t("div",{className:Hn,style:{height:p},children:[e("img",{src:r.image_url,alt:r.title,className:Gn}),g&&r.created_at&&e("div",{className:Kn,children:e("span",{className:Mr(Jn,x),children:r.created_at&&new Date(r.created_at).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"})})})]}),t("div",{className:$n,children:[e("h3",{className:Mr(Vn,v&&"line-clamp-2"),children:r.title}),e("p",{className:Mr(Xn,v&&"line-clamp-".concat(v)),children:r.price}),e("div",{children:null==r?void 0:r.description})," "]})]},n)})})}):e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),children:e("div",{className:"flex items-center justify-center py-12",children:e("p",{className:"text-muted-foreground",children:"No blogs available"})})})};function Qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yn,eo={};var to=function(){if(Yn)return eo;Yn=1,Object.defineProperty(eo,"__esModule",{value:!0});var e=n;function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e);!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=e.forwardRef(function({style:t={},className:n="",autoFill:o=!1,play:s=!0,pauseOnHover:a=!1,pauseOnClick:i=!1,direction:l="left",speed:c=50,delay:d=0,loop:u=0,gradient:m=!1,gradientColor:f="white",gradientWidth:p=200,onFinish:h,onCycleComplete:g,onMount:b,children:v},y){const[x,w]=e.useState(0),[k,N]=e.useState(0),[E,S]=e.useState(1),[O,j]=e.useState(!1),C=e.useRef(null),R=y||C,T=e.useRef(null),A=e.useCallback(()=>{if(T.current&&R.current){const e=R.current.getBoundingClientRect(),t=T.current.getBoundingClientRect();let r=e.width,n=t.width;"up"!==l&&"down"!==l||(r=e.height,n=t.height),S(o&&r&&n&&n<r?Math.ceil(r/n):1),w(r),N(n)}},[o,R,l]);e.useEffect(()=>{if(O&&(A(),T.current&&R.current)){const e=new ResizeObserver(()=>A());return e.observe(R.current),e.observe(T.current),()=>{e&&e.disconnect()}}},[A,R,O]),e.useEffect(()=>{A()},[A,v]),e.useEffect(()=>{j(!0)},[]),e.useEffect(()=>{"function"==typeof b&&b()},[]);const L=e.useMemo(()=>o?k*E/c:k<x?x/c:k/c,[o,x,k,E,c]),_=e.useMemo(()=>Object.assign(Object.assign({},t),{"--pause-on-hover":!s||a?"paused":"running","--pause-on-click":!s||a&&!i||i?"paused":"running","--width":"up"===l||"down"===l?"100vh":"100%","--transform":"up"===l?"rotate(-90deg)":"down"===l?"rotate(90deg)":"none"}),[t,s,a,i,l]),P=e.useMemo(()=>({"--gradient-color":f,"--gradient-width":"number"==typeof p?`${p}px`:p}),[f,p]),z=e.useMemo(()=>({"--play":s?"running":"paused","--direction":"left"===l?"normal":"reverse","--duration":`${L}s`,"--delay":`${d}s`,"--iteration-count":u?`${u}`:"infinite","--min-width":o?"auto":"100%"}),[s,l,L,d,u,o]),F=e.useMemo(()=>({"--transform":"up"===l?"rotate(90deg)":"down"===l?"rotate(-90deg)":"none"}),[l]),B=e.useCallback(t=>[...Array(Number.isFinite(t)&&t>=0?t:0)].map((t,n)=>r.default.createElement(e.Fragment,{key:n},e.Children.map(v,e=>r.default.createElement("div",{style:F,className:"rfm-child"},e)))),[F,v]);return O?r.default.createElement("div",{ref:R,style:_,className:"rfm-marquee-container "+n},m&&r.default.createElement("div",{style:P,className:"rfm-overlay"}),r.default.createElement("div",{className:"rfm-marquee",style:z,onAnimationIteration:g,onAnimationEnd:h},r.default.createElement("div",{className:"rfm-initial-child-container",ref:T},e.Children.map(v,e=>r.default.createElement("div",{style:F,className:"rfm-child"},e))),B(E-1)),r.default.createElement("div",{className:"rfm-marquee",style:z},B(E))):null});return eo.default=o,eo}(),ro=Qn(to),no=function(n){var a=n.apiKey,i=n.rows,u=void 0===i?2:i,m=n.marqueeSpeed,f=void 0===m?50:m,p=n.pauseOnHover,h=void 0===p||p,g=n.gradientOverlay,b=void 0===g||g,v=n.cardClassName,y=void 0===v?"":v,x=n.containerClassName,w=void 0===x?"":x,k=n.cardWidth,N=void 0===k?"w-80":k,E=n.gap,S=void 0===E?"gap-6":E,O=n.showRating,j=void 0===O||O,C=n.maxContentLines,R=void 0===C?3:C,T=n.avatarSize,A=void 0===T?"w-12 h-12":T,L=n.direction,_=void 0===L?"alternate":L,P=n.containerStyle,z=n.cardStyle,F=n.starColor,B=void 0===F?"text-yellow-400":F,U=n.showStarFill,D=void 0===U||U,M=n.loadingComponent,I=n.errorComponent,q=n.onError,W=n.onSuccess,H=o([]),G=H[0],K=H[1],J=o(!0),$=J[0],V=J[1],X=o(null),Z=X[0],Q=X[1],Y="https://speakeasy-1dxj.onrender.com/speakeasy/reviews";s(function(){a&&l(void 0,void 0,void 0,function(){var e,t,r,n;return c(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,4,5]),V(!0),Q(null),[4,fetch("".concat(Y,"/").concat(a))];case 1:if(!(e=o.sent()).ok)throw new Error("Failed to fetch testimonials: ".concat(e.statusText));return[4,e.json()];case 2:return t=o.sent(),K(t.data),W&&W(t),[3,5];case 3:return r=o.sent(),n=r instanceof Error?r:new Error("Unknown error occurred"),Q(n),q&&q(n),[3,5];case 4:return V(!1),[7];case 5:return[2]}})})},[a,Y,q,W]);var ee=function(e){return"alternate"===_?e%2==0?"left":"right":_},te=function(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:D?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Mr("h-4 w-4 mr-1",B),children:e("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})};return $?e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",w),style:P,children:M||e(function(){return e("div",{className:"flex flex-col gap-6 py-12",children:Array.from({length:u}).map(function(r,n){return e("div",{className:Mr("flex overflow-hidden px-10",S),children:Array.from({length:3}).map(function(r,n){return e("div",{className:Mr("rounded-lg border bg-card shadow-sm h-64 p-6 animate-pulse",N),children:t("div",{className:"flex flex-col h-full",children:[e("div",{className:"flex gap-1 mb-4",children:Array.from({length:5}).map(function(t,r){return e("div",{className:"h-4 w-4 bg-muted rounded"},r)})}),t("div",{className:"space-y-3 mb-6 flex-grow",children:[e("div",{className:"h-4 bg-muted rounded w-full"}),e("div",{className:"h-4 bg-muted rounded w-5/6"}),e("div",{className:"h-4 bg-muted rounded w-4/6"})]}),t("div",{className:"flex items-center space-x-3 mt-auto",children:[e("div",{className:Mr(A,"bg-muted rounded-full")}),t("div",{className:"space-y-2 flex-grow",children:[e("div",{className:"h-4 bg-muted rounded w-24"}),e("div",{className:"h-3 bg-muted rounded w-32"})]})]})]})},n)})},n)})})},{})}):Z?e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",w),style:P,children:I||e(function(){return e("div",{className:"flex items-center justify-center py-12",children:t("div",{className:"text-center max-w-md",children:[e("div",{className:"mb-4",children:e("svg",{className:"mx-auto h-12 w-12 text-destructive",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),e("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Failed to load testimonials"}),e("p",{className:"text-sm text-muted-foreground",children:(null==Z?void 0:Z.message)||"An error occurred while fetching testimonials"})]})})},{})}):G&&0!==G.length?e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",w),style:P,children:t("div",{className:"relative",children:[b&&t(r,{children:[e("div",{className:"absolute left-0 top-0 bottom-0 w-32 bg-gradient-to-r from-background to-transparent z-10 pointer-events-none"}),e("div",{className:"absolute right-0 top-0 bottom-0 w-32 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none"})]}),e("div",{className:Mr("flex flex-col",S),children:Array.from({length:u}).map(function(r,n){return e(ro,{direction:ee(n),speed:f,pauseOnHover:h,className:"cursor-pointer",children:e("div",{className:Mr("flex overflow-hidden px-10",S),children:G.map(function(r,n){var o;return e("div",{className:Mr("rounded-lg border bg-card text-card-foreground shadow-sm hover:border-primary transition-transform duration-300 h-full p-6",N,y),style:z,children:t("div",{className:"flex flex-col justify-between h-full",children:[j&&e("div",{className:"flex items-center mb-4",children:d([],Array(parseFloat(null!==(o=null==r?void 0:r.rating)&&void 0!==o?o:"5")),!0).map(function(t,r){return e(te,{},r)})}),t("p",{className:Mr("text-muted-foreground italic mb-6","line-clamp-".concat(R)),children:['"',r.comment,'"']}),t("div",{className:"flex items-center space-x-3 mt-auto",children:[e("img",{src:r.image_url,alt:r.name,className:Mr(A,"rounded-full object-cover")}),t("div",{children:[e("p",{className:"font-semibold text-foreground",children:r.name}),e("p",{className:"text-sm text-muted-foreground",children:r.email})]})]})]})},"".concat(r.name,"-").concat(n))})})},n)})})]})}):e("div",{className:Mr("max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",w),style:P,children:e("div",{className:"flex items-center justify-center py-12",children:e("p",{className:"text-muted-foreground",children:"No testimonials available"})})})},oo=function(e){var t=e.api_key,r=e.storageKey,n=void 0===r?"visit_tracker":r,o=e.expiryHours,d=void 0===o?12:o,u=e.enableTracking,m=void 0===u||u,f=e.additionalData,p=void 0===f?{}:f,h=a(!1),g="".concat("https://speakeasy-1dxj.onrender.com/speakeasy","/profile_visits/").concat(t);return s(function(){if(m&&!h.current){var e=setTimeout(function(){return l(void 0,void 0,void 0,function(){var e,t,r,o,s,a,l,u,m;return c(this,function(c){switch(c.label){case 0:if(c.trys.push([0,3,,4]),e=function(){try{var e="__localStorage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}},t=function(e){return Date.now()-e>60*d*60*1e3},r=!0,o=function(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}(),e())try{s=localStorage.getItem(n),(a=s?JSON.parse(s):null)&&!t(a.timestamp)&&(r=!1,o=a.sessionId)}catch(e){console.warn("Failed to access localStorage for visit tracking:",e)}return r?(l=i({url:window.location.href,referrer:document.referrer||"direct",userAgent:navigator.userAgent,timestamp:(new Date).toISOString(),sessionId:o,viewport:JSON.stringify({width:window.innerWidth,height:window.innerHeight}),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,language:navigator.language},p),[4,fetch(g,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l),keepalive:!0})]):[3,2];case 1:if(!(u=c.sent()).ok)throw new Error("Tracking request failed: ".concat(u.status," ").concat(u.statusText));localStorage.setItem(n,JSON.stringify({timestamp:Date.now(),sessionId:o})),h.current=!0,c.label=2;case 2:return[3,4];case 3:return m=c.sent(),console.warn("Visit tracking failed:",m),[3,4];case 4:return[2]}})})},100);return function(){return clearTimeout(e)}}},[]),null};export{hn as Blogs,Rn as ContactForm,In as Products,Zn as Services,no as Testimonials,oo as VisitorTracker,qr as getBlogs,Hr as getProducts,Ir as getReviews,Wr as getServices,Gr as sendMessage};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|