@iccandle/news 0.0.11 → 0.0.12

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.
@@ -4,7 +4,7 @@
4
4
  <%s {...props} />
5
5
  React keys must be passed directly to JSX without using spread:
6
6
  let props = %s;
7
- <%s key={someKey} {...props} />`,v,E,q,E),J[E+v]=!0)}if(E=null,U!==void 0&&(n(U),E=""+U),o(g)&&(n(g.key),E=""+g.key),"key"in g){U={};for(var H in g)H!=="key"&&(U[H]=g[H])}else U=g;return E&&a(U,typeof l=="function"?l.displayName||l.name||"Unknown":l),u(l,E,U,r(),j,X)}function h(l){C(l)?l._store&&(l._store.validated=1):typeof l=="object"&&l!==null&&l.$$typeof===Q&&(l._payload.status==="fulfilled"?C(l._payload.value)&&l._payload.value._store&&(l._payload.value._store.validated=1):l._store&&(l._store.validated=1))}function C(l){return typeof l=="object"&&l!==null&&l.$$typeof===p}var S=y,p=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),L=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),Y=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,D=Array.isArray,$=console.createTask?console.createTask:function(){return null};S={react_stack_bottom_frame:function(l){return l()}};var N,se={},G=S.react_stack_bottom_frame.bind(S,i)(),R=$(s(i)),J={};Ee.Fragment=_,Ee.jsx=function(l,g,U){var v=1e4>Y.recentlyCreatedOwnerStacks++;return d(l,g,U,!1,v?Error("react-stack-top-frame"):G,v?$(s(l)):R)},Ee.jsxs=function(l,g,U){var v=1e4>Y.recentlyCreatedOwnerStacks++;return d(l,g,U,!0,v?Error("react-stack-top-frame"):G,v?$(s(l)):R)}})()),Ee}var ut;function wn(){return ut||(ut=1,process.env.NODE_ENV==="production"?Le.exports=_n():Le.exports=hn()),Le.exports}var m=wn();const Bt=y.createContext(null);function yn(){const e=y.useContext(Bt);if(!e)throw new Error("useCtaLoader must be used within CtaLoaderProvider");return e}const pt=1100,gn=180;function Cn({children:e,theme:t}){const[n,s]=y.useState(!1),[r,i]=y.useState(!1),[o,a]=y.useState(0),f=y.useRef(null),u=y.useRef(null),d=y.useCallback(()=>{f.current&&window.clearTimeout(f.current),f.current=null,u.current&&window.clearTimeout(u.current),u.current=null,u.current=window.setTimeout(()=>{u.current=null,s(!1),i(!1)},gn)},[]),h=y.useCallback(()=>{f.current&&window.clearTimeout(f.current),f.current=null,u.current&&window.clearTimeout(u.current),u.current=null,a(p=>p+1),i(!1),s(!0),requestAnimationFrame(()=>requestAnimationFrame(()=>i(!0))),f.current=window.setTimeout(()=>{f.current=null,d()},pt)},[d]);y.useEffect(()=>d,[d]);const C=y.useMemo(()=>({start:h,stop:d,visible:n}),[h,d,n]),S=t==="light"?"https://icc-web-assets.s3.ap-southeast-1.amazonaws.com/loader/build-up-white.webm":"https://icc-web-assets.s3.ap-southeast-1.amazonaws.com/loader/build-up-black.webm";return m.jsxs(Bt.Provider,{value:C,children:[e,n&&m.jsx("div",{className:"cta-loader__overlay",children:m.jsxs("div",{className:"cta-loader__content",children:[m.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"auto",className:"cta-loader__video",children:m.jsx("source",{src:S,type:"video/webm"})}),m.jsx("div",{className:"cta-loader__bar-wrapper",children:m.jsx("div",{className:"cta-loader__bar-track",children:m.jsx("div",{className:"cta-loader__bar-fill",style:{transform:r?"scaleX(1)":"scaleX(0)",transition:`transform ${pt}ms linear`}},o)})})]})})]})}function Mt(e,t){return function(){return e.apply(t,arguments)}}const{toString:bn}=Object.prototype,{getPrototypeOf:et}=Object,{iterator:Be,toStringTag:Yt}=Symbol,Me=(e=>t=>{const n=bn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),me=e=>(e=e.toLowerCase(),t=>Me(t)===e),Ye=e=>t=>typeof t===e,{isArray:Re}=Array,be=Ye("undefined");function Ue(e){return e!==null&&!be(e)&&e.constructor!==null&&!be(e.constructor)&&oe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ht=me("ArrayBuffer");function Rn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ht(e.buffer),t}const Sn=Ye("string"),oe=Ye("function"),It=Ye("number"),Ne=e=>e!==null&&typeof e=="object",En=e=>e===!0||e===!1,Pe=e=>{if(Me(e)!=="object")return!1;const t=et(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Yt in e)&&!(Be in e)},Dn=e=>{if(!Ne(e)||Ue(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},An=me("Date"),Un=me("File"),Nn=me("Blob"),Tn=me("FileList"),vn=e=>Ne(e)&&oe(e.pipe),xn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||oe(e.append)&&((t=Me(e))==="formdata"||t==="object"&&oe(e.toString)&&e.toString()==="[object FormData]"))},Ln=me("URLSearchParams"),[On,Pn,kn,Fn]=["ReadableStream","Request","Response","Headers"].map(me),jn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Te(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Re(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{if(Ue(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(s=0;s<o;s++)a=i[s],t.call(null,e[a],a,e)}}function $t(e,t){if(Ue(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const he=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gt=e=>!be(e)&&e!==he;function Xe(){const{caseless:e,skipUndefined:t}=Gt(this)&&this||{},n={},s=(r,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=e&&$t(n,i)||i;Pe(n[o])&&Pe(r)?n[o]=Xe(n[o],r):Pe(r)?n[o]=Xe({},r):Re(r)?n[o]=r.slice():(!t||!be(r))&&(n[o]=r)};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Te(arguments[r],s);return n}const Bn=(e,t,n,{allOwnKeys:s}={})=>(Te(t,(r,i)=>{n&&oe(r)?Object.defineProperty(e,i,{value:Mt(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),Mn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Yn=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Hn=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&et(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},In=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},$n=e=>{if(!e)return null;if(Re(e))return e;let t=e.length;if(!It(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&et(Uint8Array)),Jn=(e,t)=>{const s=(e&&e[Be]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},Xn=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},qn=me("HTMLFormElement"),Vn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),ft=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kn=me("RegExp"),Jt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Te(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},zn=e=>{Jt(e,(t,n)=>{if(oe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(oe(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Zn=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Re(e)?s(e):s(String(e).split(t)),n},Wn=()=>{},Qn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function es(e){return!!(e&&oe(e.append)&&e[Yt]==="FormData"&&e[Be])}const ts=e=>{const t=new Array(10),n=(s,r)=>{if(Ne(s)){if(t.indexOf(s)>=0)return;if(Ue(s))return s;if(!("toJSON"in s)){t[r]=s;const i=Re(s)?[]:{};return Te(s,(o,a)=>{const f=n(o,r+1);!be(f)&&(i[a]=f)}),t[r]=void 0,i}}return s};return n(e,0)},ns=me("AsyncFunction"),ss=e=>e&&(Ne(e)||oe(e))&&oe(e.then)&&oe(e.catch),Xt=((e,t)=>e?setImmediate:t?((n,s)=>(he.addEventListener("message",({source:r,data:i})=>{r===he&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),he.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",oe(he.postMessage)),rs=typeof queueMicrotask<"u"?queueMicrotask.bind(he):typeof process<"u"&&process.nextTick||Xt,is=e=>e!=null&&oe(e[Be]),c={isArray:Re,isArrayBuffer:Ht,isBuffer:Ue,isFormData:xn,isArrayBufferView:Rn,isString:Sn,isNumber:It,isBoolean:En,isObject:Ne,isPlainObject:Pe,isEmptyObject:Dn,isReadableStream:On,isRequest:Pn,isResponse:kn,isHeaders:Fn,isUndefined:be,isDate:An,isFile:Un,isBlob:Nn,isRegExp:Kn,isFunction:oe,isStream:vn,isURLSearchParams:Ln,isTypedArray:Gn,isFileList:Tn,forEach:Te,merge:Xe,extend:Bn,trim:jn,stripBOM:Mn,inherits:Yn,toFlatObject:Hn,kindOf:Me,kindOfTest:me,endsWith:In,toArray:$n,forEachEntry:Jn,matchAll:Xn,isHTMLForm:qn,hasOwnProperty:ft,hasOwnProp:ft,reduceDescriptors:Jt,freezeMethods:zn,toObjectSet:Zn,toCamelCase:Vn,noop:Wn,toFiniteNumber:Qn,findKey:$t,global:he,isContextDefined:Gt,isSpecCompliantForm:es,toJSONObject:ts,isAsyncFn:ns,isThenable:ss,setImmediate:Xt,asap:rs,isIterable:is};let b=class qt extends Error{static from(t,n,s,r,i,o){const a=new qt(t.message,n||t.code,s,r,i);return a.cause=t,a.name=t.name,o&&Object.assign(a,o),a}constructor(t,n,s,r,i){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){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:c.toJSONObject(this.config),code:this.code,status:this.status}}};b.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";b.ERR_BAD_OPTION="ERR_BAD_OPTION";b.ECONNABORTED="ECONNABORTED";b.ETIMEDOUT="ETIMEDOUT";b.ERR_NETWORK="ERR_NETWORK";b.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";b.ERR_DEPRECATED="ERR_DEPRECATED";b.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";b.ERR_BAD_REQUEST="ERR_BAD_REQUEST";b.ERR_CANCELED="ERR_CANCELED";b.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";b.ERR_INVALID_URL="ERR_INVALID_URL";const os=null;function qe(e){return c.isPlainObject(e)||c.isArray(e)}function Vt(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function mt(e,t,n){return e?e.concat(t).map(function(r,i){return r=Vt(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function as(e){return c.isArray(e)&&!e.some(qe)}const cs=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function He(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,_){return!c.isUndefined(_[w])});const s=n.metaTokens,r=n.visitor||d,i=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(r))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(c.isDate(p))return p.toISOString();if(c.isBoolean(p))return p.toString();if(!f&&c.isBlob(p))throw new b("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(p)||c.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,w,_){let A=p;if(p&&!_&&typeof p=="object"){if(c.endsWith(w,"{}"))w=s?w:w.slice(0,-2),p=JSON.stringify(p);else if(c.isArray(p)&&as(p)||(c.isFileList(p)||c.endsWith(w,"[]"))&&(A=c.toArray(p)))return w=Vt(w),A.forEach(function(O,L){!(c.isUndefined(O)||O===null)&&t.append(o===!0?mt([w],L,i):o===null?w:w+"[]",u(O))}),!1}return qe(p)?!0:(t.append(mt(_,w,i),u(p)),!1)}const h=[],C=Object.assign(cs,{defaultVisitor:d,convertValue:u,isVisitable:qe});function S(p,w){if(!c.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(p),c.forEach(p,function(A,k){(!(c.isUndefined(A)||A===null)&&r.call(t,A,c.isString(k)?k.trim():k,w,C))===!0&&S(A,w?w.concat(k):[k])}),h.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return S(e),t}function _t(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function tt(e,t){this._pairs=[],e&&He(e,this,t)}const Kt=tt.prototype;Kt.append=function(t,n){this._pairs.push([t,n])};Kt.toString=function(t){const n=t?function(s){return t.call(this,s,_t)}:_t;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function ls(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zt(e,t,n){if(!t)return e;const s=n&&n.encode||ls,r=c.isFunction(n)?{serialize:n}:n,i=r&&r.serialize;let o;if(i?o=i(t,r):o=c.isURLSearchParams(t)?t.toString():new tt(t,r).toString(s),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ht{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(s){s!==null&&t(s)})}}const nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ds=typeof URLSearchParams<"u"?URLSearchParams:tt,us=typeof FormData<"u"?FormData:null,ps=typeof Blob<"u"?Blob:null,fs={isBrowser:!0,classes:{URLSearchParams:ds,FormData:us,Blob:ps},protocols:["http","https","file","blob","url","data"]},st=typeof window<"u"&&typeof document<"u",Ve=typeof navigator=="object"&&navigator||void 0,ms=st&&(!Ve||["ReactNative","NativeScript","NS"].indexOf(Ve.product)<0),_s=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hs=st&&window.location.href||"http://localhost",ws=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:st,hasStandardBrowserEnv:ms,hasStandardBrowserWebWorkerEnv:_s,navigator:Ve,origin:hs},Symbol.toStringTag,{value:"Module"})),re={...ws,...fs};function ys(e,t){return He(e,new re.classes.URLSearchParams,{visitor:function(n,s,r,i){return re.isNode&&c.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function gs(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cs(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],t[i]=e[i];return t}function Zt(e){function t(n,s,r,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),f=i>=n.length;return o=!o&&c.isArray(r)?r.length:o,f?(c.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!c.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&c.isArray(r[o])&&(r[o]=Cs(r[o])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(s,r)=>{t(gs(s),r,n,0)}),n}return null}function bs(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const ve={transitional:nt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return r?JSON.stringify(Zt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return ys(t,this.formSerializer).toString();if((a=c.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return He(a?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),bs(t)):t}],transformResponse:[function(t){const n=this.transitional||ve.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?b.from(a,b.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:re.classes.FormData,Blob:re.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{ve.headers[e]={}});const Rs=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ss=e=>{const t={};let n,s,r;return e&&e.split(`
7
+ <%s key={someKey} {...props} />`,v,E,q,E),J[E+v]=!0)}if(E=null,U!==void 0&&(n(U),E=""+U),o(g)&&(n(g.key),E=""+g.key),"key"in g){U={};for(var H in g)H!=="key"&&(U[H]=g[H])}else U=g;return E&&a(U,typeof l=="function"?l.displayName||l.name||"Unknown":l),u(l,E,U,r(),j,X)}function h(l){C(l)?l._store&&(l._store.validated=1):typeof l=="object"&&l!==null&&l.$$typeof===Q&&(l._payload.status==="fulfilled"?C(l._payload.value)&&l._payload.value._store&&(l._payload.value._store.validated=1):l._store&&(l._store.validated=1))}function C(l){return typeof l=="object"&&l!==null&&l.$$typeof===p}var S=y,p=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),L=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),Y=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,D=Array.isArray,$=console.createTask?console.createTask:function(){return null};S={react_stack_bottom_frame:function(l){return l()}};var N,se={},G=S.react_stack_bottom_frame.bind(S,i)(),R=$(s(i)),J={};Ee.Fragment=_,Ee.jsx=function(l,g,U){var v=1e4>Y.recentlyCreatedOwnerStacks++;return d(l,g,U,!1,v?Error("react-stack-top-frame"):G,v?$(s(l)):R)},Ee.jsxs=function(l,g,U){var v=1e4>Y.recentlyCreatedOwnerStacks++;return d(l,g,U,!0,v?Error("react-stack-top-frame"):G,v?$(s(l)):R)}})()),Ee}var ut;function wn(){return ut||(ut=1,process.env.NODE_ENV==="production"?Le.exports=_n():Le.exports=hn()),Le.exports}var m=wn();const Bt=y.createContext(null);function yn(){const e=y.useContext(Bt);if(!e)throw new Error("useCtaLoader must be used within CtaLoaderProvider");return e}const pt=1100,gn=180;function Cn({children:e}){const[t,n]=y.useState(!1),[s,r]=y.useState(!1),[i,o]=y.useState(0),a=y.useRef(null),f=y.useRef(null),u=y.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null,f.current&&window.clearTimeout(f.current),f.current=null,f.current=window.setTimeout(()=>{f.current=null,n(!1),r(!1)},gn)},[]),d=y.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null,f.current&&window.clearTimeout(f.current),f.current=null,o(S=>S+1),r(!1),n(!0),requestAnimationFrame(()=>requestAnimationFrame(()=>r(!0))),a.current=window.setTimeout(()=>{a.current=null,u()},pt)},[u]);y.useEffect(()=>u,[u]);const h=y.useMemo(()=>({start:d,stop:u,visible:t}),[d,u,t]);return m.jsxs(Bt.Provider,{value:h,children:[e,t&&m.jsx("div",{className:"cta-loader__overlay",children:m.jsxs("div",{className:"cta-loader__content",children:[m.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"auto",className:"cta-loader__video",children:m.jsx("source",{src:"https://icc-web-assets.s3.ap-southeast-1.amazonaws.com/loader/ai-loader.webm",type:"video/webm"})}),m.jsx("div",{className:"cta-loader__bar-wrapper",children:m.jsx("div",{className:"cta-loader__bar-track",children:m.jsx("div",{className:"cta-loader__bar-fill",style:{transform:s?"scaleX(1)":"scaleX(0)",transition:`transform ${pt}ms linear`}},i)})})]})})]})}function Mt(e,t){return function(){return e.apply(t,arguments)}}const{toString:bn}=Object.prototype,{getPrototypeOf:et}=Object,{iterator:Be,toStringTag:Yt}=Symbol,Me=(e=>t=>{const n=bn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),me=e=>(e=e.toLowerCase(),t=>Me(t)===e),Ye=e=>t=>typeof t===e,{isArray:Re}=Array,be=Ye("undefined");function Ue(e){return e!==null&&!be(e)&&e.constructor!==null&&!be(e.constructor)&&oe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ht=me("ArrayBuffer");function Rn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ht(e.buffer),t}const Sn=Ye("string"),oe=Ye("function"),It=Ye("number"),Ne=e=>e!==null&&typeof e=="object",En=e=>e===!0||e===!1,Pe=e=>{if(Me(e)!=="object")return!1;const t=et(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Yt in e)&&!(Be in e)},Dn=e=>{if(!Ne(e)||Ue(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},An=me("Date"),Un=me("File"),Nn=me("Blob"),Tn=me("FileList"),vn=e=>Ne(e)&&oe(e.pipe),xn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||oe(e.append)&&((t=Me(e))==="formdata"||t==="object"&&oe(e.toString)&&e.toString()==="[object FormData]"))},Ln=me("URLSearchParams"),[On,Pn,kn,Fn]=["ReadableStream","Request","Response","Headers"].map(me),jn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Te(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Re(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{if(Ue(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(s=0;s<o;s++)a=i[s],t.call(null,e[a],a,e)}}function $t(e,t){if(Ue(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const he=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gt=e=>!be(e)&&e!==he;function Xe(){const{caseless:e,skipUndefined:t}=Gt(this)&&this||{},n={},s=(r,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=e&&$t(n,i)||i;Pe(n[o])&&Pe(r)?n[o]=Xe(n[o],r):Pe(r)?n[o]=Xe({},r):Re(r)?n[o]=r.slice():(!t||!be(r))&&(n[o]=r)};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Te(arguments[r],s);return n}const Bn=(e,t,n,{allOwnKeys:s}={})=>(Te(t,(r,i)=>{n&&oe(r)?Object.defineProperty(e,i,{value:Mt(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),Mn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Yn=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Hn=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&et(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},In=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},$n=e=>{if(!e)return null;if(Re(e))return e;let t=e.length;if(!It(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&et(Uint8Array)),Jn=(e,t)=>{const s=(e&&e[Be]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},Xn=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},qn=me("HTMLFormElement"),Vn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),ft=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kn=me("RegExp"),Jt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Te(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},zn=e=>{Jt(e,(t,n)=>{if(oe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(oe(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Zn=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Re(e)?s(e):s(String(e).split(t)),n},Wn=()=>{},Qn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function es(e){return!!(e&&oe(e.append)&&e[Yt]==="FormData"&&e[Be])}const ts=e=>{const t=new Array(10),n=(s,r)=>{if(Ne(s)){if(t.indexOf(s)>=0)return;if(Ue(s))return s;if(!("toJSON"in s)){t[r]=s;const i=Re(s)?[]:{};return Te(s,(o,a)=>{const f=n(o,r+1);!be(f)&&(i[a]=f)}),t[r]=void 0,i}}return s};return n(e,0)},ns=me("AsyncFunction"),ss=e=>e&&(Ne(e)||oe(e))&&oe(e.then)&&oe(e.catch),Xt=((e,t)=>e?setImmediate:t?((n,s)=>(he.addEventListener("message",({source:r,data:i})=>{r===he&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),he.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",oe(he.postMessage)),rs=typeof queueMicrotask<"u"?queueMicrotask.bind(he):typeof process<"u"&&process.nextTick||Xt,is=e=>e!=null&&oe(e[Be]),c={isArray:Re,isArrayBuffer:Ht,isBuffer:Ue,isFormData:xn,isArrayBufferView:Rn,isString:Sn,isNumber:It,isBoolean:En,isObject:Ne,isPlainObject:Pe,isEmptyObject:Dn,isReadableStream:On,isRequest:Pn,isResponse:kn,isHeaders:Fn,isUndefined:be,isDate:An,isFile:Un,isBlob:Nn,isRegExp:Kn,isFunction:oe,isStream:vn,isURLSearchParams:Ln,isTypedArray:Gn,isFileList:Tn,forEach:Te,merge:Xe,extend:Bn,trim:jn,stripBOM:Mn,inherits:Yn,toFlatObject:Hn,kindOf:Me,kindOfTest:me,endsWith:In,toArray:$n,forEachEntry:Jn,matchAll:Xn,isHTMLForm:qn,hasOwnProperty:ft,hasOwnProp:ft,reduceDescriptors:Jt,freezeMethods:zn,toObjectSet:Zn,toCamelCase:Vn,noop:Wn,toFiniteNumber:Qn,findKey:$t,global:he,isContextDefined:Gt,isSpecCompliantForm:es,toJSONObject:ts,isAsyncFn:ns,isThenable:ss,setImmediate:Xt,asap:rs,isIterable:is};let b=class qt extends Error{static from(t,n,s,r,i,o){const a=new qt(t.message,n||t.code,s,r,i);return a.cause=t,a.name=t.name,o&&Object.assign(a,o),a}constructor(t,n,s,r,i){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){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:c.toJSONObject(this.config),code:this.code,status:this.status}}};b.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";b.ERR_BAD_OPTION="ERR_BAD_OPTION";b.ECONNABORTED="ECONNABORTED";b.ETIMEDOUT="ETIMEDOUT";b.ERR_NETWORK="ERR_NETWORK";b.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";b.ERR_DEPRECATED="ERR_DEPRECATED";b.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";b.ERR_BAD_REQUEST="ERR_BAD_REQUEST";b.ERR_CANCELED="ERR_CANCELED";b.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";b.ERR_INVALID_URL="ERR_INVALID_URL";const os=null;function qe(e){return c.isPlainObject(e)||c.isArray(e)}function Vt(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function mt(e,t,n){return e?e.concat(t).map(function(r,i){return r=Vt(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function as(e){return c.isArray(e)&&!e.some(qe)}const cs=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function He(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,_){return!c.isUndefined(_[w])});const s=n.metaTokens,r=n.visitor||d,i=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(r))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(c.isDate(p))return p.toISOString();if(c.isBoolean(p))return p.toString();if(!f&&c.isBlob(p))throw new b("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(p)||c.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,w,_){let A=p;if(p&&!_&&typeof p=="object"){if(c.endsWith(w,"{}"))w=s?w:w.slice(0,-2),p=JSON.stringify(p);else if(c.isArray(p)&&as(p)||(c.isFileList(p)||c.endsWith(w,"[]"))&&(A=c.toArray(p)))return w=Vt(w),A.forEach(function(O,L){!(c.isUndefined(O)||O===null)&&t.append(o===!0?mt([w],L,i):o===null?w:w+"[]",u(O))}),!1}return qe(p)?!0:(t.append(mt(_,w,i),u(p)),!1)}const h=[],C=Object.assign(cs,{defaultVisitor:d,convertValue:u,isVisitable:qe});function S(p,w){if(!c.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(p),c.forEach(p,function(A,k){(!(c.isUndefined(A)||A===null)&&r.call(t,A,c.isString(k)?k.trim():k,w,C))===!0&&S(A,w?w.concat(k):[k])}),h.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return S(e),t}function _t(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function tt(e,t){this._pairs=[],e&&He(e,this,t)}const Kt=tt.prototype;Kt.append=function(t,n){this._pairs.push([t,n])};Kt.toString=function(t){const n=t?function(s){return t.call(this,s,_t)}:_t;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function ls(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zt(e,t,n){if(!t)return e;const s=n&&n.encode||ls,r=c.isFunction(n)?{serialize:n}:n,i=r&&r.serialize;let o;if(i?o=i(t,r):o=c.isURLSearchParams(t)?t.toString():new tt(t,r).toString(s),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ht{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(s){s!==null&&t(s)})}}const nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ds=typeof URLSearchParams<"u"?URLSearchParams:tt,us=typeof FormData<"u"?FormData:null,ps=typeof Blob<"u"?Blob:null,fs={isBrowser:!0,classes:{URLSearchParams:ds,FormData:us,Blob:ps},protocols:["http","https","file","blob","url","data"]},st=typeof window<"u"&&typeof document<"u",Ve=typeof navigator=="object"&&navigator||void 0,ms=st&&(!Ve||["ReactNative","NativeScript","NS"].indexOf(Ve.product)<0),_s=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hs=st&&window.location.href||"http://localhost",ws=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:st,hasStandardBrowserEnv:ms,hasStandardBrowserWebWorkerEnv:_s,navigator:Ve,origin:hs},Symbol.toStringTag,{value:"Module"})),re={...ws,...fs};function ys(e,t){return He(e,new re.classes.URLSearchParams,{visitor:function(n,s,r,i){return re.isNode&&c.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function gs(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cs(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],t[i]=e[i];return t}function Zt(e){function t(n,s,r,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),f=i>=n.length;return o=!o&&c.isArray(r)?r.length:o,f?(c.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!c.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&c.isArray(r[o])&&(r[o]=Cs(r[o])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(s,r)=>{t(gs(s),r,n,0)}),n}return null}function bs(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const ve={transitional:nt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return r?JSON.stringify(Zt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return ys(t,this.formSerializer).toString();if((a=c.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return He(a?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),bs(t)):t}],transformResponse:[function(t){const n=this.transitional||ve.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?b.from(a,b.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:re.classes.FormData,Blob:re.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{ve.headers[e]={}});const Rs=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ss=e=>{const t={};let n,s,r;return e&&e.split(`
8
8
  `).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&Rs[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},wt=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function ke(e){return e===!1||e==null?e:c.isArray(e)?e.map(ke):String(e)}function Es(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Ds=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $e(e,t,n,s,r){if(c.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!c.isString(t)){if(c.isString(s))return t.indexOf(s)!==-1;if(c.isRegExp(s))return s.test(t)}}function As(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Us(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}let ae=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,f,u){const d=De(f);if(!d)throw new Error("header name must be a non-empty string");const h=c.findKey(r,d);(!h||r[h]===void 0||u===!0||u===void 0&&r[h]!==!1)&&(r[h||f]=ke(a))}const o=(a,f)=>c.forEach(a,(u,d)=>i(u,d,f));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(c.isString(t)&&(t=t.trim())&&!Ds(t))o(Ss(t),n);else if(c.isObject(t)&&c.isIterable(t)){let a={},f,u;for(const d of t){if(!c.isArray(d))throw TypeError("Object iterator must return a key-value pair");a[u=d[0]]=(f=a[u])?c.isArray(f)?[...f,d[1]]:[f,d[1]]:d[1]}o(a,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=De(t),t){const s=c.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Es(r);if(c.isFunction(n))return n.call(this,r,s);if(c.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=De(t),t){const s=c.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||$e(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=De(o),o){const a=c.findKey(s,o);a&&(!n||$e(s,s[a],a,n))&&(delete s[a],r=!0)}}return c.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||$e(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return c.forEach(this,(r,i)=>{const o=c.findKey(s,i);if(o){n[o]=ke(r),delete n[i];return}const a=t?As(i):String(i).trim();a!==i&&delete n[i],n[a]=ke(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&c.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
9
9
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[wt]=this[wt]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=De(o);s[a]||(Us(r,o),s[a]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(ae.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});c.freezeMethods(ae);function Ge(e,t){const n=this||ve,s=t||n,r=ae.from(s.headers);let i=s.data;return c.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Wt(e){return!!(e&&e.__CANCEL__)}let xe=class extends b{constructor(t,n,s){super(t??"canceled",b.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function Qt(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ns(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ts(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),d=s[i];o||(o=u),n[r]=f,s[r]=u;let h=i,C=0;for(;h!==r;)C+=n[h++],h=h%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-o<t)return;const S=d&&u-d;return S?Math.round(C*1e3/S):void 0}}function vs(e,t){let n=0,s=1e3/t,r,i;const o=(u,d=Date.now())=>{n=d,r=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),h=d-n;h>=s?o(u,d):(r=u,i||(i=setTimeout(()=>{i=null,o(r)},s-h)))},()=>r&&o(r)]}const je=(e,t,n=3)=>{let s=0;const r=Ts(50,250);return vs(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,f=o-s,u=r(f),d=o<=a;s=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:f,rate:u||void 0,estimated:u&&a&&d?(a-o)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},yt=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},gt=e=>(...t)=>c.asap(()=>e(...t)),xs=re.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,re.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(re.origin),re.navigator&&/(msie|trident)/i.test(re.navigator.userAgent)):()=>!0,Ls=re.hasStandardBrowserEnv?{write(e,t,n,s,r,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];c.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),c.isString(s)&&a.push(`path=${s}`),c.isString(r)&&a.push(`domain=${r}`),i===!0&&a.push("secure"),c.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Os(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ps(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function en(e,t,n){let s=!Os(t);return e&&(s||n==!1)?Ps(e,t):t}const Ct=e=>e instanceof ae?{...e}:e;function ge(e,t){t=t||{};const n={};function s(u,d,h,C){return c.isPlainObject(u)&&c.isPlainObject(d)?c.merge.call({caseless:C},u,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function r(u,d,h,C){if(c.isUndefined(d)){if(!c.isUndefined(u))return s(void 0,u,h,C)}else return s(u,d,h,C)}function i(u,d){if(!c.isUndefined(d))return s(void 0,d)}function o(u,d){if(c.isUndefined(d)){if(!c.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function a(u,d,h){if(h in t)return s(u,d);if(h in e)return s(void 0,u)}const f={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,d,h)=>r(Ct(u),Ct(d),h,!0)};return c.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const h=c.hasOwnProp(f,d)?f[d]:r,C=h(e[d],t[d],d);c.isUndefined(C)&&h!==a||(n[d]=C)}),n}const tn=e=>{const t=ge({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;if(t.headers=o=ae.from(o),t.url=zt(en(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),c.isFormData(n)){if(re.hasStandardBrowserEnv||re.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(c.isFunction(n.getHeaders)){const f=n.getHeaders(),u=["content-type","content-length"];Object.entries(f).forEach(([d,h])=>{u.includes(d.toLowerCase())&&o.set(d,h)})}}if(re.hasStandardBrowserEnv&&(s&&c.isFunction(s)&&(s=s(t)),s||s!==!1&&xs(t.url))){const f=r&&i&&Ls.read(i);f&&o.set(r,f)}return t},ks=typeof XMLHttpRequest<"u",Fs=ks&&function(e){return new Promise(function(n,s){const r=tn(e);let i=r.data;const o=ae.from(r.headers).normalize();let{responseType:a,onUploadProgress:f,onDownloadProgress:u}=r,d,h,C,S,p;function w(){S&&S(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let _=new XMLHttpRequest;_.open(r.method.toUpperCase(),r.url,!0),_.timeout=r.timeout;function A(){if(!_)return;const O=ae.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),M={data:!a||a==="text"||a==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:O,config:e,request:_};Qt(function(T){n(T),w()},function(T){s(T),w()},M),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(s(new b("Request aborted",b.ECONNABORTED,e,_)),_=null)},_.onerror=function(L){const M=L&&L.message?L.message:"Network Error",K=new b(M,b.ERR_NETWORK,e,_);K.event=L||null,s(K),_=null},_.ontimeout=function(){let L=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const M=r.transitional||nt;r.timeoutErrorMessage&&(L=r.timeoutErrorMessage),s(new b(L,M.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,e,_)),_=null},i===void 0&&o.setContentType(null),"setRequestHeader"in _&&c.forEach(o.toJSON(),function(L,M){_.setRequestHeader(M,L)}),c.isUndefined(r.withCredentials)||(_.withCredentials=!!r.withCredentials),a&&a!=="json"&&(_.responseType=r.responseType),u&&([C,p]=je(u,!0),_.addEventListener("progress",C)),f&&_.upload&&([h,S]=je(f),_.upload.addEventListener("progress",h),_.upload.addEventListener("loadend",S)),(r.cancelToken||r.signal)&&(d=O=>{_&&(s(!O||O.type?new xe(null,e,_):O),_.abort(),_=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const k=Ns(r.url);if(k&&re.protocols.indexOf(k)===-1){s(new b("Unsupported protocol "+k+":",b.ERR_BAD_REQUEST,e));return}_.send(i||null)})},js=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(u){if(!r){r=!0,a();const d=u instanceof Error?u:this.reason;s.abort(d instanceof b?d:new xe(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,i(new b(`timeout of ${t}ms exceeded`,b.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:f}=s;return f.unsubscribe=()=>c.asap(a),f}},Bs=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},Ms=async function*(e,t){for await(const n of Ys(e))yield*Bs(n,t)},Ys=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},bt=(e,t,n,s)=>{const r=Ms(e,t);let i=0,o,a=f=>{o||(o=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:u,value:d}=await r.next();if(u){a(),f.close();return}let h=d.byteLength;if(n){let C=i+=h;n(C)}f.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(f){return a(f),r.return()}},{highWaterMark:2})},Rt=64*1024,{isFunction:Oe}=c,Hs=(({Request:e,Response:t})=>({Request:e,Response:t}))(c.global),{ReadableStream:St,TextEncoder:Et}=c.global,Dt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Is=e=>{e=c.merge.call({skipUndefined:!0},Hs,e);const{fetch:t,Request:n,Response:s}=e,r=t?Oe(t):typeof fetch=="function",i=Oe(n),o=Oe(s);if(!r)return!1;const a=r&&Oe(St),f=r&&(typeof Et=="function"?(p=>w=>p.encode(w))(new Et):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=i&&a&&Dt(()=>{let p=!1;const w=new n(re.origin,{body:new St,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!w}),d=o&&a&&Dt(()=>c.isReadableStream(new s("").body)),h={stream:d&&(p=>p.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!h[p]&&(h[p]=(w,_)=>{let A=w&&w[p];if(A)return A.call(w);throw new b(`Response type '${p}' is not supported`,b.ERR_NOT_SUPPORT,_)})});const C=async p=>{if(p==null)return 0;if(c.isBlob(p))return p.size;if(c.isSpecCompliantForm(p))return(await new n(re.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(c.isArrayBufferView(p)||c.isArrayBuffer(p))return p.byteLength;if(c.isURLSearchParams(p)&&(p=p+""),c.isString(p))return(await f(p)).byteLength},S=async(p,w)=>{const _=c.toFiniteNumber(p.getContentLength());return _??C(w)};return async p=>{let{url:w,method:_,data:A,signal:k,cancelToken:O,timeout:L,onDownloadProgress:M,onUploadProgress:K,responseType:T,headers:ce,withCredentials:Q="same-origin",fetchOptions:F}=tn(p),ee=t||fetch;T=T?(T+"").toLowerCase():"text";let Y=js([k,O&&O.toAbortSignal()],L),W=null;const D=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let $;try{if(K&&u&&_!=="get"&&_!=="head"&&($=await S(ce,A))!==0){let l=new n(w,{method:"POST",body:A,duplex:"half"}),g;if(c.isFormData(A)&&(g=l.headers.get("content-type"))&&ce.setContentType(g),l.body){const[U,v]=yt($,je(gt(K)));A=bt(l.body,Rt,U,v)}}c.isString(Q)||(Q=Q?"include":"omit");const N=i&&"credentials"in n.prototype,se={...F,signal:Y,method:_.toUpperCase(),headers:ce.normalize().toJSON(),body:A,duplex:"half",credentials:N?Q:void 0};W=i&&new n(w,se);let G=await(i?ee(W,F):ee(w,se));const R=d&&(T==="stream"||T==="response");if(d&&(M||R&&D)){const l={};["status","statusText","headers"].forEach(j=>{l[j]=G[j]});const g=c.toFiniteNumber(G.headers.get("content-length")),[U,v]=M&&yt(g,je(gt(M),!0))||[];G=new s(bt(G.body,Rt,U,()=>{v&&v(),D&&D()}),l)}T=T||"text";let J=await h[c.findKey(h,T)||"text"](G,p);return!R&&D&&D(),await new Promise((l,g)=>{Qt(l,g,{data:J,headers:ae.from(G.headers),status:G.status,statusText:G.statusText,config:p,request:W})})}catch(N){throw D&&D(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,p,W,N&&N.response),{cause:N.cause||N}):b.from(N,N&&N.code,p,W,N&&N.response)}}},$s=new Map,nn=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,i=[s,r,n];let o=i.length,a=o,f,u,d=$s;for(;a--;)f=i[a],u=d.get(f),u===void 0&&d.set(f,u=a?new Map:Is(t)),d=u;return u};nn();const rt={http:os,xhr:Fs,fetch:{get:nn}};c.forEach(rt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const At=e=>`- ${e}`,Gs=e=>c.isFunction(e)||e===null||e===!1;function Js(e,t){e=c.isArray(e)?e:[e];const{length:n}=e;let s,r;const i={};for(let o=0;o<n;o++){s=e[o];let a;if(r=s,!Gs(s)&&(r=rt[(a=String(s)).toLowerCase()],r===void 0))throw new b(`Unknown adapter '${a}'`);if(r&&(c.isFunction(r)||(r=r.get(t))))break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([f,u])=>`adapter ${f} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
10
10
  `+o.map(At).join(`
@@ -269,28 +269,27 @@ function Un() {
269
269
  }
270
270
  const yt = 1100, Nn = 180;
271
271
  function Tn({
272
- children: e,
273
- theme: t
272
+ children: e
274
273
  }) {
275
- const [n, s] = de(!1), [r, i] = de(!1), [o, a] = de(0), f = me(null), u = me(null), d = He(() => {
276
- f.current && window.clearTimeout(f.current), f.current = null, u.current && window.clearTimeout(u.current), u.current = null, u.current = window.setTimeout(() => {
277
- u.current = null, s(!1), i(!1);
274
+ const [t, n] = de(!1), [s, r] = de(!1), [i, o] = de(0), a = me(null), f = me(null), u = He(() => {
275
+ a.current && window.clearTimeout(a.current), a.current = null, f.current && window.clearTimeout(f.current), f.current = null, f.current = window.setTimeout(() => {
276
+ f.current = null, n(!1), r(!1);
278
277
  }, Nn);
279
- }, []), h = He(() => {
280
- f.current && window.clearTimeout(f.current), f.current = null, u.current && window.clearTimeout(u.current), u.current = null, a((p) => p + 1), i(!1), s(!0), requestAnimationFrame(
281
- () => requestAnimationFrame(() => i(!0))
282
- ), f.current = window.setTimeout(() => {
283
- f.current = null, d();
278
+ }, []), d = He(() => {
279
+ a.current && window.clearTimeout(a.current), a.current = null, f.current && window.clearTimeout(f.current), f.current = null, o((R) => R + 1), r(!1), n(!0), requestAnimationFrame(
280
+ () => requestAnimationFrame(() => r(!0))
281
+ ), a.current = window.setTimeout(() => {
282
+ a.current = null, u();
284
283
  }, yt);
285
- }, [d]);
286
- _e(() => d, [d]);
287
- const g = ve(
288
- () => ({ start: h, stop: d, visible: n }),
289
- [h, d, n]
290
- ), R = t === "light" ? "https://icc-web-assets.s3.ap-southeast-1.amazonaws.com/loader/build-up-white.webm" : "https://icc-web-assets.s3.ap-southeast-1.amazonaws.com/loader/build-up-black.webm";
291
- return /* @__PURE__ */ m.jsxs(qt.Provider, { value: g, children: [
284
+ }, [u]);
285
+ _e(() => u, [u]);
286
+ const h = ve(
287
+ () => ({ start: d, stop: u, visible: t }),
288
+ [d, u, t]
289
+ );
290
+ return /* @__PURE__ */ m.jsxs(qt.Provider, { value: h, children: [
292
291
  e,
293
- n && /* @__PURE__ */ m.jsx("div", { className: "cta-loader__overlay", children: /* @__PURE__ */ m.jsxs("div", { className: "cta-loader__content", children: [
292
+ t && /* @__PURE__ */ m.jsx("div", { className: "cta-loader__overlay", children: /* @__PURE__ */ m.jsxs("div", { className: "cta-loader__content", children: [
294
293
  /* @__PURE__ */ m.jsx(
295
294
  "video",
296
295
  {
@@ -300,7 +299,7 @@ function Tn({
300
299
  playsInline: !0,
301
300
  preload: "auto",
302
301
  className: "cta-loader__video",
303
- children: /* @__PURE__ */ m.jsx("source", { src: R, type: "video/webm" })
302
+ children: /* @__PURE__ */ m.jsx("source", { src: "https://icc-web-assets.s3.ap-southeast-1.amazonaws.com/loader/ai-loader.webm", type: "video/webm" })
304
303
  }
305
304
  ),
306
305
  /* @__PURE__ */ m.jsx("div", { className: "cta-loader__bar-wrapper", children: /* @__PURE__ */ m.jsx("div", { className: "cta-loader__bar-track", children: /* @__PURE__ */ m.jsx(
@@ -308,11 +307,11 @@ function Tn({
308
307
  {
309
308
  className: "cta-loader__bar-fill",
310
309
  style: {
311
- transform: r ? "scaleX(1)" : "scaleX(0)",
310
+ transform: s ? "scaleX(1)" : "scaleX(0)",
312
311
  transition: `transform ${yt}ms linear`
313
312
  }
314
313
  },
315
- o
314
+ i
316
315
  ) }) })
317
316
  ] }) })
318
317
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iccandle/news",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "author": "ICCandle",
6
6
  "license": "MIT",