react-klasha
Version:
This is an reactJS library for implementing klasha payment gateway
1 lines • 15.4 kB
JavaScript
const e="ionic";let t,l,n,s=!1,o=!1,i=!1,r=!1,c=!1;const a="undefined"!=typeof window?window:{},f=a.CSS,u=a.document||{head:{}},$={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,l,n)=>e.addEventListener(t,l,n),rel:(e,t,l,n)=>e.removeEventListener(t,l,n),ce:(e,t)=>new CustomEvent(e,t)},d=(()=>(u.head.attachShadow+"").indexOf("[native")>-1)(),p=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),y=(e,t,l)=>{l&&l.map((([l,n,s])=>{const o=w(e,l),i=m(t,s),r=b(l);$.ael(o,n,i,r),(t.o=t.o||[]).push((()=>$.rel(o,n,i,r)))}))},m=(e,t)=>l=>{try{256&e.t?e.i[t](l):(e.u=e.u||[]).push([t,l])}catch(n){Oe(n)}},w=(e,t)=>4&t?u:8&t?a:16&t?u.body:e,b=e=>0!=(2&e),g="http://www.w3.org/1999/xlink",v=new WeakMap,k=(e,t,l)=>{let n=_e.get(e);h&&l?(n=n||new CSSStyleSheet,n.replace(t)):n=t,_e.set(e,n)},j=(e,t,l)=>{let n=S(t,l),s=_e.get(n);if(e=11===e.nodeType?e:u,s)if("string"==typeof s){let t,l=v.get(e=e.head||e);l||v.set(e,l=new Set),l.has(n)||(e.host&&(t=e.querySelector(`[sty-id="${n}"]`))?t.innerHTML=s:(t=u.createElement("style"),t.innerHTML=s,e.insertBefore(t,e.querySelector("link"))),l&&l.add(n))}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return n},S=(e,t)=>"sc-"+(t&&32&e.t?e.$+"-"+t:e.$),x=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),O=e=>Re.push(e),C=e=>ke(e).p,M={},_=e=>"object"==(e=typeof e)||"function"===e,R=(e,t,...l)=>{let n=null,s=null,o=null,i=!1,r=!1,c=[];const a=t=>{for(let l=0;l<t.length;l++)n=t[l],Array.isArray(n)?a(n):null!=n&&"boolean"!=typeof n&&((i="function"!=typeof e&&!_(n))&&(n+=""),i&&r?c[c.length-1].h+=n:c.push(i?T(null,n):n),r=i)};if(a(l),t){t.key&&(s=t.key),t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,P);const f=T(e,null);return f.m=t,c.length>0&&(f.g=c),f.v=s,f.k=o,f},T=(e,t)=>({t:0,j:e,h:t,S:null,g:null,m:null,v:null,k:null}),L={},P={forEach:(e,t)=>e.map(E).forEach(t),map:(e,t)=>e.map(E).map(t).map(I)},E=e=>({vattrs:e.m,vchildren:e.g,vkey:e.v,vname:e.k,vtag:e.j,vtext:e.h}),I=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.m=e.vattrs,t.g=e.vchildren,t.v=e.vkey,t.k=e.vname,t},U=(e,t,l,n,s,o)=>{if(l!==n){let r=xe(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,s=D(l),o=D(n);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in l)n&&null!=n[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in n)l&&n[t]===l[t]||(t.includes("-")?e.style.setProperty(t,n[t]):e.style[t]=n[t])}else if("key"===t);else if("ref"===t)n&&n(e);else if(r||"o"!==t[0]||"n"!==t[1]){const a=_(n);if((r||a&&null!==n)&&!s)try{if(e.tagName.includes("-"))e[t]=n;else{let s=null==n?"":n;"list"===t?r=!1:null!=l&&e[t]==s||(e[t]=s)}}catch(i){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,f=!0),null==n||!1===n?!1===n&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(g,t):e.removeAttribute(t)):(!r||4&o||s)&&!a&&(n=!0===n?"":n,f?e.setAttributeNS(g,t,n):e.setAttribute(t,n))}else t="-"===t[2]?t.slice(3):xe(a,c)?c.slice(2):c[2]+t.slice(3),l&&$.rel(e,t,l,!1),n&&$.ael(e,t,n,!1)}},W=/\s/,D=e=>e?e.split(W):[],F=(e,t,l,n)=>{const s=11===t.S.nodeType&&t.S.host?t.S.host:t.S,o=e&&e.m||M,i=t.m||M;for(n in o)n in i||U(s,n,o[n],void 0,l,t.t);for(n in i)U(s,n,o[n],i[n],l,t.t)},N=(e,o,c,a)=>{let f,$,d,p=o.g[c],h=0;if(s||(i=!0,"slot"===p.j&&(t&&a.classList.add(t+"-s"),p.t|=p.g?2:1)),null!==p.h)f=p.S=u.createTextNode(p.h);else if(1&p.t)f=p.S=u.createTextNode("");else{if(r||(r="svg"===p.j),f=p.S=u.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&p.t?"slot-fb":p.j),r&&"foreignObject"===p.j&&(r=!1),F(null,p,r),null!=t&&f["s-si"]!==t&&f.classList.add(f["s-si"]=t),p.g)for(h=0;h<p.g.length;++h)$=N(e,p,h,f),$&&f.appendChild($);"svg"===p.j?r=!1:"foreignObject"===f.tagName&&(r=!0)}return f["s-hn"]=n,3&p.t&&(f["s-sr"]=!0,f["s-cr"]=l,f["s-sn"]=p.k||"",d=e&&e.g&&e.g[c],d&&d.j===p.j&&e.S&&A(e.S,!1)),f},A=(e,t)=>{$.t|=1;const l=e.childNodes;for(let s=l.length-1;s>=0;s--){const e=l[s];e["s-hn"]!==n&&e["s-ol"]&&(z(e).insertBefore(e,V(e)),e["s-ol"].remove(),e["s-ol"]=void 0,i=!0),t&&A(e,t)}$.t&=-2},B=(e,t,l,s,o,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);o<=i;++o)s[o]&&(r=N(null,l,o,e),r&&(s[o].S=r,c.insertBefore(r,V(t))))},H=(e,t,l,n,s)=>{for(;t<=l;++t)(n=e[t])&&(s=n.S,Y(n),o=!0,s["s-ol"]?s["s-ol"].remove():A(s,!0),s.remove())},q=(e,t)=>e.j===t.j&&("slot"===e.j?e.k===t.k:e.v===t.v),V=e=>e&&e["s-ol"]||e,z=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,G=(e,t)=>{const l=t.S=e.S,n=e.g,s=t.g,o=t.j,i=t.h;let c;null===i?(r="svg"===o||"foreignObject"!==o&&r,"slot"===o||F(e,t,r),null!==n&&null!==s?((e,t,l,n)=>{let s,o,i=0,r=0,c=0,a=0,f=t.length-1,u=t[0],$=t[f],d=n.length-1,p=n[0],h=n[d];for(;i<=f&&r<=d;)if(null==u)u=t[++i];else if(null==$)$=t[--f];else if(null==p)p=n[++r];else if(null==h)h=n[--d];else if(q(u,p))G(u,p),u=t[++i],p=n[++r];else if(q($,h))G($,h),$=t[--f],h=n[--d];else if(q(u,h))"slot"!==u.j&&"slot"!==h.j||A(u.S.parentNode,!1),G(u,h),e.insertBefore(u.S,$.S.nextSibling),u=t[++i],h=n[--d];else if(q($,p))"slot"!==u.j&&"slot"!==h.j||A($.S.parentNode,!1),G($,p),e.insertBefore($.S,u.S),$=t[--f],p=n[++r];else{for(c=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].v&&t[a].v===p.v){c=a;break}c>=0?(o=t[c],o.j!==p.j?s=N(t&&t[r],l,c,e):(G(o,p),t[c]=void 0,s=o.S),p=n[++r]):(s=N(t&&t[r],l,r,e),p=n[++r]),s&&z(u.S).insertBefore(s,V(u.S))}i>f?B(e,null==n[d+1]?null:n[d+1].S,l,n,r,d):r>d&&H(t,i,f)})(l,n,t,s):null!==s?(null!==e.h&&(l.textContent=""),B(l,null,t,s,0,s.length-1)):null!==n&&H(n,0,n.length-1),r&&"svg"===o&&(r=!1)):(c=l["s-cr"])?c.parentNode.textContent=i:e.h!==i&&(l.data=i)},J=e=>{let t,l,n,s,o,i,r=e.childNodes;for(l=0,n=r.length;l<n;l++)if(t=r[l],1===t.nodeType){if(t["s-sr"])for(o=t["s-sn"],t.hidden=!1,s=0;s<n;s++)if(i=r[s].nodeType,r[s]["s-hn"]!==t["s-hn"]||""!==o){if(1===i&&o===r[s].getAttribute("slot")){t.hidden=!0;break}}else if(1===i||3===i&&""!==r[s].textContent.trim()){t.hidden=!0;break}J(t)}},K=[],Q=e=>{let t,l,n,s,i,r,c=0,a=e.childNodes,f=a.length;for(;c<f;c++){if(t=a[c],t["s-sr"]&&(l=t["s-cr"])&&l.parentNode)for(n=l.parentNode.childNodes,s=t["s-sn"],r=n.length-1;r>=0;r--)l=n[r],l["s-cn"]||l["s-nr"]||l["s-hn"]===t["s-hn"]||(X(l,s)?(i=K.find((e=>e.O===l)),o=!0,l["s-sn"]=l["s-sn"]||s,i?i.C=t:K.push({C:t,O:l}),l["s-sr"]&&K.map((e=>{X(e.O,l["s-sn"])&&(i=K.find((e=>e.O===l)),i&&!e.C&&(e.C=i.C))}))):K.some((e=>e.O===l))||K.push({O:l}));1===t.nodeType&&Q(t)}},X=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,Y=e=>{e.m&&e.m.ref&&e.m.ref(null),e.g&&e.g.map(Y)},Z=e=>ke(e).M,ee=(e,t,l)=>{const n=Z(e);return{emit:e=>te(n,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},te=(e,t,l)=>{const n=$.ce(t,l);return e.dispatchEvent(n),n},le=(e,t)=>{t&&!e._&&t["s-p"]&&t["s-p"].push(new Promise((t=>e._=t)))},ne=(e,t)=>{if(e.t|=16,!(4&e.t))return le(e,e.R),De((()=>se(e,t)));e.t|=512},se=(e,t)=>{const l=e.i;let n;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>fe(l,e,t))),e.u=null),n=fe(l,"componentWillLoad")),n=ue(n,(()=>fe(l,"componentWillRender"))),ue(n,(()=>oe(e,l,t)))},oe=async(e,t,l)=>{const n=e.M,s=n["s-rc"];l&&(e=>{const t=e.T,l=e.M,n=t.t,s=j(d&&l.shadowRoot?l.shadowRoot:l.getRootNode(),t,e.p);10&n&&(l["s-sc"]=s,l.classList.add(s+"-h"),2&n&&l.classList.add(s+"-s"))})(e);ie(e,t),s&&(s.map((e=>e())),n["s-rc"]=void 0);{const t=n["s-p"],l=()=>re(e);0===t.length?l():(Promise.all(t).then(l),e.t|=4,t.length=0)}},ie=(e,r)=>{try{r=r.render&&r.render(),e.t&=-17,e.t|=2,((e,r)=>{const c=e.M,a=e.T,f=e.L||T(null,null),p=(e=>e&&e.j===L)(r)?r:R(null,null,r);if(n=c.tagName,a.P&&(p.m=p.m||{},a.P.map((([e,t])=>p.m[t]=c[e]))),p.j=null,p.t|=4,e.L=p,p.S=f.S=c.shadowRoot||c,t=c["s-sc"],l=c["s-cr"],s=d&&0!=(1&a.t),o=!1,G(f,p),$.t|=1,i){let e,t,l,n,s,o;Q(p.S);let i=0;for(;i<K.length;i++)e=K[i],t=e.O,t["s-ol"]||(l=u.createTextNode(""),l["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=l,t));for(i=0;i<K.length;i++)if(e=K[i],t=e.O,e.C){for(n=e.C.parentNode,s=e.C.nextSibling,l=t["s-ol"];l=l.previousSibling;)if(o=l["s-nr"],o&&o["s-sn"]===t["s-sn"]&&n===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){s=o;break}(!s&&n!==t.parentNode||t.nextSibling!==s)&&t!==s&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),n.insertBefore(t,s))}else 1===t.nodeType&&(t.hidden=!0)}o&&J(p.S),$.t&=-2,K.length=0})(e,r)}catch(c){Oe(c,e.M)}return null},re=e=>{const t=e.M,l=e.i,n=e.R;64&e.t?fe(l,"componentDidUpdate"):(e.t|=64,$e(t),fe(l,"componentDidLoad"),e.I(t),n||ae()),e.U(t),e._&&(e._(),e._=void 0),512&e.t&&Ue((()=>ne(e,!1))),e.t&=-517},ce=e=>{{const t=ke(e),l=t.M.isConnected;return l&&2==(18&t.t)&&ne(t,!1),l}},ae=()=>{$e(u.documentElement),Ue((()=>te(a,"appload",{detail:{namespace:"ionic"}})))},fe=(e,t,l)=>{if(e&&e[t])try{return e[t](l)}catch(n){Oe(n)}},ue=(e,t)=>e&&e.then?e.then(t):t(),$e=e=>e.classList.add("hydrated"),de=(e,t,l,n,s,o,i)=>{let r,c,a,f;if(1===o.nodeType){for(r=o.getAttribute("c-id"),r&&(c=r.split("."),c[0]!==i&&"0"!==c[0]||(a={t:0,W:c[0],D:c[1],F:c[2],N:c[3],j:o.tagName.toLowerCase(),S:o,m:null,g:null,v:null,k:null,h:null},t.push(a),o.removeAttribute("c-id"),e.g||(e.g=[]),e.g[a.N]=a,e=a,n&&"0"===a.F&&(n[a.N]=a.S))),f=o.childNodes.length-1;f>=0;f--)de(e,t,l,n,s,o.childNodes[f],i);if(o.shadowRoot)for(f=o.shadowRoot.childNodes.length-1;f>=0;f--)de(e,t,l,n,s,o.shadowRoot.childNodes[f],i)}else if(8===o.nodeType)c=o.nodeValue.split("."),c[1]!==i&&"0"!==c[1]||(r=c[0],a={t:0,W:c[1],D:c[2],F:c[3],N:c[4],S:o,m:null,g:null,v:null,k:null,j:null,h:null},"t"===r?(a.S=o.nextSibling,a.S&&3===a.S.nodeType&&(a.h=a.S.textContent,t.push(a),o.remove(),e.g||(e.g=[]),e.g[a.N]=a,n&&"0"===a.F&&(n[a.N]=a.S))):a.W===i&&("s"===r?(a.j="slot",o["s-sn"]=c[5]?a.k=c[5]:"",o["s-sr"]=!0,n&&(a.S=u.createElement(a.j),a.k&&a.S.setAttribute("name",a.k),o.parentNode.insertBefore(a.S,o),o.remove(),"0"===a.F&&(n[a.N]=a.S)),l.push(a),e.g||(e.g=[]),e.g[a.N]=a):"r"===r&&(n?o.remove():(s["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.j){const t=T(null,o.textContent);t.S=o,t.N="0",e.g=[t]}},pe=(e,t)=>{if(1===e.nodeType){let l=0;for(;l<e.childNodes.length;l++)pe(e.childNodes[l],t);if(e.shadowRoot)for(l=0;l<e.shadowRoot.childNodes.length;l++)pe(e.shadowRoot.childNodes[l],t)}else if(8===e.nodeType){const l=e.nodeValue.split(".");"o"===l[0]&&(t.set(l[1]+"."+l[2],e),e.nodeValue="",e["s-en"]=l[3])}},he=(e,t,l)=>{if(t.A){e.watchers&&(t.B=e.watchers);const n=Object.entries(t.A),s=e.prototype;if(n.map((([e,[n]])=>{31&n||2&l&&32&n?Object.defineProperty(s,e,{get(){return((e,t)=>ke(this).H.get(t))(0,e)},set(l){((e,t,l,n)=>{const s=ke(e),o=s.M,i=s.H.get(t),r=s.t,c=s.i;if(l=((e,t)=>null==e||_(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,n.A[t][0]),!(8&r&&void 0!==i||l===i)&&(s.H.set(t,l),c)){if(n.B&&128&r){const e=n.B[t];e&&e.map((e=>{try{c[e](l,i,t)}catch(n){Oe(n,o)}}))}2==(18&r)&&ne(s,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&n&&Object.defineProperty(s,e,{value(...t){const l=ke(this);return l.q.then((()=>l.i[e](...t)))}})})),1&l){const l=new Map;s.attributeChangedCallback=function(e,t,n){$.jmp((()=>{const t=l.get(e);this[t]=(null!==n||"boolean"!=typeof this[t])&&n}))},e.observedAttributes=n.filter((([e,t])=>15&t[0])).map((([e,n])=>{const s=n[1]||e;return l.set(s,e),512&n[0]&&t.P.push([e,s]),s}))}}return e},ye=e=>{fe(e,"connectedCallback")},me=e=>{if(0==(1&$.t)){const t=ke(e),l=t.T,n=()=>{};if(1&t.t)y(e,t,l.V),ye(t.i);else{let n;if(t.t|=1,n=e.getAttribute("s-id"),n){if(d&&1&l.t){const t=j(e.shadowRoot,l,e.getAttribute("s-mode"));e.classList.remove(t+"-h",t+"-s")}((e,t,l,n)=>{const s=e.shadowRoot,o=[],i=s?[]:null,r=n.L=T(t,null);$.G||pe(u.body,$.G=new Map),e["s-id"]=l,e.removeAttribute("s-id"),de(r,o,[],i,e,e,l),o.map((e=>{const l=e.W+"."+e.D,n=$.G.get(l),o=e.S;n&&d&&""===n["s-en"]&&n.parentNode.insertBefore(o,n.nextSibling),s||(o["s-hn"]=t,n&&(o["s-ol"]=n,o["s-ol"]["s-nr"]=o)),$.G.delete(l)})),s&&i.map((e=>{e&&s.appendChild(e)}))})(e,l.$,n,t)}n||12&l.t&&we(e);{let l=e;for(;l=l.parentNode||l.host;)if(1===l.nodeType&&l.hasAttribute("s-id")&&l["s-p"]||l["s-p"]){le(t,t.R=l);break}}l.A&&Object.entries(l.A).map((([t,[l]])=>{if(31&l&&e.hasOwnProperty(t)){const l=e[t];delete e[t],e[t]=l}})),Ue((()=>(async(e,t,l,n,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=Me(l)).then){const e=()=>{};s=await s,e()}s.isProxied||(l.B=s.watchers,he(s,l,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(r){Oe(r)}t.t&=-9,t.t|=128,e(),ye(t.i)}if(s.style){let n=s.style;"string"!=typeof n&&(n=n[t.p=(e=>Re.map((t=>t(e))).find((e=>!!e)))(e)]);const o=S(l,t.p);if(!_e.has(o)){const e=()=>{};8&l.t&&(n=await __sc_import_ionic("./p-53170bf1.js").then((e=>e.scopeCss(n,o,!1)))),k(o,n,!!(1&l.t)),e()}}}const o=t.R,i=()=>ne(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(e,t,l)))}n()}},we=e=>{const t=e["s-cr"]=u.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},be=(e,t={})=>{const l=[],n=t.exclude||[],s=a.customElements,o=u.head,i=o.querySelector("meta[charset]"),r=u.createElement("style"),c=[],f=u.querySelectorAll("[sty-id]");let p,h=!0,y=0;for(Object.assign($,t),$.l=new URL(t.resourcesUrl||"./",u.baseURI).href,$.t|=2;y<f.length;y++)k(f[y].getAttribute("sty-id"),x(f[y].innerHTML),!0);e.map((e=>e[1].map((t=>{const o={t:t[0],$:t[1],A:t[2],V:t[3]};o.A=t[2],o.V=t[3],o.P=[],o.B={},!d&&1&o.t&&(o.t|=8);const i=o.$,r=class extends HTMLElement{constructor(e){super(e),Se(e=this,o),1&o.t&&(d?e.attachShadow({mode:"open",delegatesFocus:!!(16&o.t)}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){p&&(clearTimeout(p),p=null),h?c.push(this):$.jmp((()=>me(this)))}disconnectedCallback(){$.jmp((()=>(()=>{if(0==(1&$.t)){const e=ke(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),fe(t,"disconnectedCallback")}})()))}componentOnReady(){return ke(this).J}};o.K=e[0],n.includes(i)||s.get(i)||(l.push(i),s.define(i,he(r,o,1)))})))),r.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),o.insertBefore(r,i?i.nextSibling:o.firstChild),h=!1,c.length?c.map((e=>e.connectedCallback())):$.jmp((()=>p=setTimeout(ae,30)))},ge=e=>{const t=new URL(e,$.l);return t.origin!==a.location.origin?t.href:t.pathname},ve=new WeakMap,ke=e=>ve.get(e),je=(e,t)=>ve.set(t.i=e,t),Se=(e,t)=>{const l={t:0,M:e,T:t,H:new Map};return l.q=new Promise((e=>l.U=e)),l.J=new Promise((e=>l.I=e)),e["s-p"]=[],e["s-rc"]=[],y(e,l,t.V),ve.set(e,l)},xe=(e,t)=>t in e,Oe=(e,t)=>(0,console.error)(e,t),Ce=new Map,Me=e=>{const t=e.$.replace(/-/g,"_"),l=e.K,n=Ce.get(l);return n?n[t]:__sc_import_ionic(`./${l}.entry.js`).then((e=>(Ce.set(l,e),e[t])),Oe)},_e=new Map,Re=[],Te=[],Le=[],Pe=(e,t)=>l=>{e.push(l),c||(c=!0,t&&4&$.t?Ue(Ie):$.raf(Ie))},Ee=e=>{for(let l=0;l<e.length;l++)try{e[l](performance.now())}catch(t){Oe(t)}e.length=0},Ie=()=>{Ee(Te),Ee(Le),(c=Te.length>0)&&$.raf(Ie)},Ue=e=>p().then(e),We=Pe(Te,!1),De=Pe(Le,!0),Fe={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1};export{Fe as B,f as C,L as H,e as N,p as a,be as b,De as c,u as d,ee as e,We as f,C as g,R as h,Z as i,ce as j,ge as k,$ as p,je as r,O as s,a as w}