文件操作 - bi.964.0.js
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/i2kairpad/public_html/wp-content/plugins/bit-integrations/assets/bi.964.0.js
编辑文件内容
var br=Object.defineProperty,yr=Object.defineProperties;var xr=Object.getOwnPropertyDescriptors;var Et=Object.getOwnPropertySymbols;var wr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable;var _t=(e,t,r)=>t in e?br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))wr.call(t,r)&&_t(e,r,t[r]);if(Et)for(var r of Et(t))Er.call(t,r)&&_t(e,r,t[r]);return e},X=(e,t)=>yr(e,xr(t));var jt=(e,t,r)=>new Promise((n,i)=>{var a=u=>{try{o(r.next(u))}catch(l){i(l)}},s=u=>{try{o(r.throw(u))}catch(l){i(l)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,s);o((r=r.apply(e,t)).next())});import{r as h,j as f,g as zt,R as Ae,a as _r,b as Ct,c as Ee,d as Me,e as jr,L as ye,_ as je,f as Cr,h as Sr,i as be}from"./main-174.js";let Or={data:""},Ar=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Or},Tr=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,kr=/\/\*[^]*?\*\/| +/g,St=/\n+/g,de=(e,t)=>{let r="",n="",i="";for(let a in e){let s=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+s+";":n+=a[1]=="f"?de(s,a):a+"{"+de(s,a[1]=="k"?"":t)+"}":typeof s=="object"?n+=de(s,t?t.replace(/([^,])+/g,o=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,o):o?o+" "+u:u)):a):s!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=de.p?de.p(a,s):a+":"+s+";")}return r+(t&&i?t+"{"+i+"}":i)+n},oe={},Gt=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Gt(e[r]);return t}return e},Rr=(e,t,r,n,i)=>{let a=Gt(e),s=oe[a]||(oe[a]=(u=>{let l=0,d=11;for(;l<u.length;)d=101*d+u.charCodeAt(l++)>>>0;return"go"+d})(a));if(!oe[s]){let u=a!==e?e:(l=>{let d,c,g=[{}];for(;d=Tr.exec(l.replace(kr,""));)d[4]?g.shift():d[3]?(c=d[3].replace(St," ").trim(),g.unshift(g[0][c]=g[0][c]||{})):g[0][d[1]]=d[2].replace(St," ").trim();return g[0]})(e);oe[s]=de(i?{["@keyframes "+s]:u}:u,r?"":"."+s)}let o=r&&oe.g?oe.g:null;return r&&(oe.g=oe[s]),((u,l,d,c)=>{c?l.data=l.data.replace(c,u):l.data.indexOf(u)===-1&&(l.data=d?u+l.data:l.data+u)})(oe[s],t,n,o),s},Nr=(e,t,r)=>e.reduce((n,i,a)=>{let s=t[a];if(s&&s.call){let o=s(r),u=o&&o.props&&o.props.className||/^go/.test(o)&&o;s=u?"."+u:o&&typeof o=="object"?o.props?"":de(o,""):o===!1?"":o}return n+i+(s==null?"":s)},"");function Ke(e){let t=this||{},r=e.call?e(t.p):e;return Rr(r.unshift?r.raw?Nr(r,[].slice.call(arguments,1),t.p):r.reduce((n,i)=>Object.assign(n,i&&i.call?i(t.p):i),{}):r,Ar(t.target),t.g,t.o,t.k)}let Wt,rt,nt;Ke.bind({g:1});let le=Ke.bind({k:1});function Pr(e,t,r,n){de.p=t,Wt=e,rt=r,nt=n}function ge(e,t){let r=this||{};return function(){let n=arguments;function i(a,s){let o=Object.assign({},a),u=o.className||i.className;r.p=Object.assign({theme:rt&&rt()},o),r.o=/ *go\d+/.test(u),o.className=Ke.apply(r,n)+(u?" "+u:""),t&&(o.ref=s);let l=e;return e[0]&&(l=o.as||e,delete o.as),nt&&l[0]&&nt(o),Wt(l,o)}return t?t(i):i}}var Lr=e=>typeof e=="function",Ze=(e,t)=>Lr(e)?e(t):e,Dr=(()=>{let e=0;return()=>(++e).toString()})(),Bt=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Fr=20,pt="default",Zt=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return X(T({},e),{toasts:[t.toast,...e.toasts].slice(0,r)});case 1:return X(T({},e),{toasts:e.toasts.map(s=>s.id===t.toast.id?T(T({},s),t.toast):s)});case 2:let{toast:n}=t;return Zt(e,{type:e.toasts.find(s=>s.id===n.id)?1:0,toast:n});case 3:let{toastId:i}=t;return X(T({},e),{toasts:e.toasts.map(s=>s.id===i||i===void 0?X(T({},s),{dismissed:!0,visible:!1}):s)});case 4:return t.toastId===void 0?X(T({},e),{toasts:[]}):X(T({},e),{toasts:e.toasts.filter(s=>s.id!==t.toastId)});case 5:return X(T({},e),{pausedAt:t.time});case 6:let a=t.time-(e.pausedAt||0);return X(T({},e),{pausedAt:void 0,toasts:e.toasts.map(s=>X(T({},s),{pauseDuration:s.pauseDuration+a}))})}},ze=[],Kt={toasts:[],pausedAt:void 0,settings:{toastLimit:Fr}},ae={},qt=(e,t=pt)=>{ae[t]=Zt(ae[t]||Kt,e),ze.forEach(([r,n])=>{r===t&&n(ae[t])})},Xt=e=>Object.keys(ae).forEach(t=>qt(e,t)),Ir=e=>Object.keys(ae).find(t=>ae[t].toasts.some(r=>r.id===e)),qe=(e=pt)=>t=>{qt(t,e)},$r={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Mr=(e={},t=pt)=>{let[r,n]=h.useState(ae[t]||Kt),i=h.useRef(ae[t]);h.useEffect(()=>(i.current!==ae[t]&&n(ae[t]),ze.push([t,n]),()=>{let s=ze.findIndex(([o])=>o===t);s>-1&&ze.splice(s,1)}),[t]);let a=r.toasts.map(s=>{var o,u,l;return X(T(T(T({},e),e[s.type]),s),{removeDelay:s.removeDelay||((o=e[s.type])==null?void 0:o.removeDelay)||(e==null?void 0:e.removeDelay),duration:s.duration||((u=e[s.type])==null?void 0:u.duration)||(e==null?void 0:e.duration)||$r[s.type],style:T(T(T({},e.style),(l=e[s.type])==null?void 0:l.style),s.style)})});return X(T({},r),{toasts:a})},Vr=(e,t="blank",r)=>X(T({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},r),{id:(r==null?void 0:r.id)||Dr()}),$e=e=>(t,r)=>{let n=Vr(t,e,r);return qe(n.toasterId||Ir(n.id))({type:2,toast:n}),n.id},H=(e,t)=>$e("blank")(e,t);H.error=$e("error");H.success=$e("success");H.loading=$e("loading");H.custom=$e("custom");H.dismiss=(e,t)=>{let r={type:3,toastId:e};t?qe(t)(r):Xt(r)};H.dismissAll=e=>H.dismiss(void 0,e);H.remove=(e,t)=>{let r={type:4,toastId:e};t?qe(t)(r):Xt(r)};H.removeAll=e=>H.remove(void 0,e);H.promise=(e,t,r)=>{let n=H.loading(t.loading,T(T({},r),r==null?void 0:r.loading));return typeof e=="function"&&(e=e()),e.then(i=>{let a=t.success?Ze(t.success,i):void 0;return a?H.success(a,T(T({id:n},r),r==null?void 0:r.success)):H.dismiss(n),i}).catch(i=>{let a=t.error?Ze(t.error,i):void 0;a?H.error(a,T(T({id:n},r),r==null?void 0:r.error)):H.dismiss(n)}),e};var Hr=1e3,Ur=(e,t="default")=>{let{toasts:r,pausedAt:n}=Mr(e,t),i=h.useRef(new Map).current,a=h.useCallback((c,g=Hr)=>{if(i.has(c))return;let y=setTimeout(()=>{i.delete(c),s({type:4,toastId:c})},g);i.set(c,y)},[]);h.useEffect(()=>{if(n)return;let c=Date.now(),g=r.map(y=>{if(y.duration===1/0)return;let A=(y.duration||0)+y.pauseDuration-(c-y.createdAt);if(A<0){y.visible&&H.dismiss(y.id);return}return setTimeout(()=>H.dismiss(y.id,t),A)});return()=>{g.forEach(y=>y&&clearTimeout(y))}},[r,n,t]);let s=h.useCallback(qe(t),[t]),o=h.useCallback(()=>{s({type:5,time:Date.now()})},[s]),u=h.useCallback((c,g)=>{s({type:1,toast:{id:c,height:g}})},[s]),l=h.useCallback(()=>{n&&s({type:6,time:Date.now()})},[n,s]),d=h.useCallback((c,g)=>{let{reverseOrder:y=!1,gutter:A=8,defaultPosition:m}=g||{},S=r.filter(P=>(P.position||m)===(c.position||m)&&P.height),x=S.findIndex(P=>P.id===c.id),D=S.filter((P,N)=>N<x&&P.visible).length;return S.filter(P=>P.visible).slice(...y?[D+1]:[0,D]).reduce((P,N)=>P+(N.height||0)+A,0)},[r]);return h.useEffect(()=>{r.forEach(c=>{if(c.dismissed)a(c.id,c.removeDelay);else{let g=i.get(c.id);g&&(clearTimeout(g),i.delete(c.id))}})},[r,a]),{toasts:r,handlers:{updateHeight:u,startPause:o,endPause:l,calculateOffset:d}}},zr=le` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Gr=le` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,Wr=le` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,Br=ge("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${zr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${Gr} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${Wr} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,Zr=le` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Kr=ge("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${Zr} 1s linear infinite; `,qr=le` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Xr=le` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,Jr=ge("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${qr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${Xr} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,Yr=ge("div")` position: absolute; `,Qr=ge("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,en=le` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,tn=ge("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${en} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,rn=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return t!==void 0?typeof t=="string"?h.createElement(tn,null,t):t:r==="blank"?null:h.createElement(Qr,null,h.createElement(Kr,T({},n)),r!=="loading"&&h.createElement(Yr,null,r==="error"?h.createElement(Br,T({},n)):h.createElement(Jr,T({},n))))},nn=e=>` 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,an=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} `,sn="0%{opacity:0;} 100%{opacity:1;}",on="0%{opacity:1;} 100%{opacity:0;}",ln=ge("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,un=ge("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,cn=(e,t)=>{let r=e.includes("top")?1:-1,[n,i]=Bt()?[sn,on]:[nn(r),an(r)];return{animation:t?`${le(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${le(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},fn=h.memo(({toast:e,position:t,style:r,children:n})=>{let i=e.height?cn(e.position||t||"top-center",e.visible):{opacity:0},a=h.createElement(rn,{toast:e}),s=h.createElement(un,T({},e.ariaProps),Ze(e.message,e));return h.createElement(ln,{className:e.className,style:T(T(T({},i),r),e.style)},typeof n=="function"?n({icon:a,message:s}):h.createElement(h.Fragment,null,a,s))});Pr(h.createElement);var dn=({id:e,className:t,style:r,onHeightUpdate:n,children:i})=>{let a=h.useCallback(s=>{if(s){let o=()=>{let u=s.getBoundingClientRect().height;n(e,u)};o(),new MutationObserver(o).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return h.createElement("div",{ref:a,className:t,style:r},i)},pn=(e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return T(T({left:0,right:0,display:"flex",position:"absolute",transition:Bt()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`},n),i)},hn=Ke` z-index: 9999; > * { pointer-events: auto; } `,Ve=16,vn=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:i,toasterId:a,containerStyle:s,containerClassName:o})=>{let{toasts:u,handlers:l}=Ur(r,a);return h.createElement("div",{"data-rht-toaster":a||"",style:T({position:"fixed",zIndex:9999,top:Ve,left:Ve,right:Ve,bottom:Ve,pointerEvents:"none"},s),className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},u.map(d=>{let c=d.position||t,g=l.calculateOffset(d,{reverseOrder:e,gutter:n,defaultPosition:t}),y=pn(c,g);return h.createElement(dn,{id:d.id,key:d.id,onHeightUpdate:l.updateHeight,className:d.visible?hn:"",style:y},d.type==="custom"?Ze(d.message,d):i?i(d):h.createElement(fn,{toast:d,position:c}))}))},Hi=H,gn=""+new URL("logo.svg",import.meta.url).href;/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var he=function(){return he=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},he.apply(this,arguments)};function mn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var bn=function(){return Math.random().toString(36).substring(6)},yn=function(e){var t=e.animate,r=t===void 0?!0:t,n=e.animateBegin,i=e.backgroundColor,a=i===void 0?"#f5f6f7":i,s=e.backgroundOpacity,o=s===void 0?1:s,u=e.baseUrl,l=u===void 0?"":u,d=e.children,c=e.foregroundColor,g=c===void 0?"#eee":c,y=e.foregroundOpacity,A=y===void 0?1:y,m=e.gradientRatio,S=m===void 0?2:m,x=e.gradientDirection,D=x===void 0?"left-right":x,P=e.uniqueKey,N=e.interval,k=N===void 0?.25:N,E=e.rtl,j=E===void 0?!1:E,O=e.speed,C=O===void 0?1.2:O,I=e.style,z=I===void 0?{}:I,Y=e.title,me=Y===void 0?"Loading...":Y,q=e.beforeMask,te=q===void 0?null:q,ee=mn(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),re=P||bn(),ce=re+"-diff",v=re+"-animated-diff",p=re+"-aria",b=j?{transform:"scaleX(-1)"}:null,_="0; "+k+"; 1",w=C+"s",R=D==="top-bottom"?"rotate(90)":void 0;return h.createElement("svg",he({"aria-labelledby":p,role:"img",style:he(he({},z),b)},ee),me?h.createElement("title",{id:p},me):null,te&&h.isValidElement(te)?te:null,h.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+l+"#"+ce+")",style:{fill:"url("+l+"#"+v+")"}}),h.createElement("defs",null,h.createElement("clipPath",{id:ce},d),h.createElement("linearGradient",{id:v,gradientTransform:R},h.createElement("stop",{offset:"0%",stopColor:a,stopOpacity:o},r&&h.createElement("animate",{attributeName:"offset",values:-S+"; "+-S+"; 1",keyTimes:_,dur:w,repeatCount:"indefinite",begin:n})),h.createElement("stop",{offset:"50%",stopColor:g,stopOpacity:A},r&&h.createElement("animate",{attributeName:"offset",values:-S/2+"; "+-S/2+"; "+(1+S/2),keyTimes:_,dur:w,repeatCount:"indefinite",begin:n})),h.createElement("stop",{offset:"100%",stopColor:a,stopOpacity:o},r&&h.createElement("animate",{attributeName:"offset",values:"0; 0; "+(1+S),keyTimes:_,dur:w,repeatCount:"indefinite",begin:n})))))},Jt=function(e){return e.children?h.createElement(yn,he({},e)):h.createElement(xn,he({},e))},xn=function(e){return h.createElement(Jt,he({viewBox:"0 0 476 124"},e),h.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),h.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),h.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),h.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),h.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),h.createElement("circle",{cx:"20",cy:"20",r:"20"}))},wn=Jt;const En=()=>f.jsx(wn,{speed:.5,width:"100%",height:400,viewBox:"0 0 1520 400",backgroundColor:"#f7f7f7",foregroundColor:"#ecebeb",children:[0,1,2,3,4,5,6,7].map(e=>f.jsxs(h.Fragment,{children:[f.jsx("rect",{x:"12",y:10+60*e,rx:"4",ry:"4",width:"20",height:"20"}),f.jsx("rect",{x:"66",y:10+60*e,rx:"10",ry:"10",width:"85",height:"19"}),f.jsx("rect",{x:"187",y:10+60*e,rx:"10",ry:"10",width:"169",height:"19"}),f.jsx("rect",{x:"1182",y:10+60*e,rx:"10",ry:"10",width:"85",height:"19"}),f.jsx("rect",{x:"401",y:10+60*e,rx:"10",ry:"10",width:"85",height:"19"}),f.jsx("rect",{x:"522",y:10+60*e,rx:"10",ry:"10",width:"169",height:"19"}),f.jsx("rect",{x:"977",y:10+60*e,rx:"10",ry:"10",width:"169",height:"19"}),f.jsx("rect",{x:"730",y:10+60*e,rx:"10",ry:"10",width:"85",height:"19"}),f.jsx("rect",{x:"1304",y:10+60*e,rx:"10",ry:"10",width:"85",height:"19"}),f.jsx("rect",{x:"851",y:10+60*e,rx:"10",ry:"10",width:"85",height:"19"}),f.jsx("circle",{cx:"1456",cy:20+60*e,r:"12"})]},`plh-${e+9}`))});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function Yt(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(d){try{l(n.next(d))}catch(c){s(c)}}function u(d){try{l(n.throw(d))}catch(c){s(c)}}function l(d){d.done?a(d.value):i(d.value).then(o,u)}l((n=n.apply(e,t||[])).next())})}function Qt(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(d){return u([l,d])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(d){l=[6,d],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var se=function(){},J=se(),Ge=Object,K=function(e){return e===J},pe=function(e){return typeof e=="function"},ve=function(e,t){return Ge.assign({},e,t)},ht="undefined",vt=function(){return typeof window!=ht},_n=function(){return typeof document!=ht},jn=function(){return vt()&&typeof window.requestAnimationFrame!=ht},He=new WeakMap,Cn=0,Fe=function(e){var t=typeof e,r=e&&e.constructor,n=r==Date,i,a;if(Ge(e)===e&&!n&&r!=RegExp){if(i=He.get(e),i)return i;if(i=++Cn+"~",He.set(e,i),r==Array){for(i="@",a=0;a<e.length;a++)i+=Fe(e[a])+",";He.set(e,i)}if(r==Ge){i="#";for(var s=Ge.keys(e).sort();!K(a=s.pop());)K(e[a])||(i+=a+":"+Fe(e[a])+",");He.set(e,i)}}else i=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},it=!0,Sn=function(){return it},er=vt(),gt=_n(),at=er&&window.addEventListener?window.addEventListener.bind(window):se,On=gt?document.addEventListener.bind(document):se,st=er&&window.removeEventListener?window.removeEventListener.bind(window):se,An=gt?document.removeEventListener.bind(document):se,Tn=function(){var e=gt&&document.visibilityState;return K(e)||e!=="hidden"},kn=function(e){return On("visibilitychange",e),at("focus",e),function(){An("visibilitychange",e),st("focus",e)}},Rn=function(e){var t=function(){it=!0,e()},r=function(){it=!1};return at("online",t),at("offline",r),function(){st("online",t),st("offline",r)}},Nn={isOnline:Sn,isVisible:Tn},Pn={initFocus:kn,initReconnect:Rn},Xe=!vt()||"Deno"in window,Ln=function(e){return jn()?window.requestAnimationFrame(e):setTimeout(e,1)},We=Xe?h.useEffect:h.useLayoutEffect,Qe=typeof navigator!="undefined"&&navigator.connection,Ot=!Xe&&Qe&&(["slow-2g","2g"].includes(Qe.effectiveType)||Qe.saveData),tr=function(e){if(pe(e))try{e=e()}catch(n){e=""}var t=[].concat(e);e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Fe(e):"";var r=e?"$swr$"+e:"";return[e,t,r]},_e=new WeakMap,rr=0,nr=1,ir=2,De=function(e,t,r,n,i,a,s){s===void 0&&(s=!0);var o=_e.get(e),u=o[0],l=o[1],d=o[3],c=u[t],g=l[t];if(s&&g)for(var y=0;y<g.length;++y)g[y](r,n,i);return a&&(delete d[t],c&&c[0])?c[0](ir).then(function(){return e.get(t)}):e.get(t)},Dn=0,ot=function(){return++Dn},ar=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Yt(void 0,void 0,void 0,function(){var r,n,i,a,s,o,u,l,d,c,g,y,A,m,S,x,D,P,N,k,E;return Qt(this,function(j){switch(j.label){case 0:if(r=e[0],n=e[1],i=e[2],a=e[3],s=typeof a=="boolean"?{revalidate:a}:a||{},o=K(s.populateCache)?!0:s.populateCache,u=s.revalidate!==!1,l=s.rollbackOnError!==!1,d=s.optimisticData,c=tr(n),g=c[0],y=c[2],!g)return[2];if(A=_e.get(r),m=A[2],e.length<3)return[2,De(r,g,r.get(g),J,J,u,!0)];if(S=i,D=ot(),m[g]=[D,0],P=!K(d),N=r.get(g),P&&(k=pe(d)?d(N):d,r.set(g,k),De(r,g,k)),pe(S))try{S=S(r.get(g))}catch(O){x=O}return S&&pe(S.then)?[4,S.catch(function(O){x=O})]:[3,2];case 1:if(S=j.sent(),D!==m[g][0]){if(x)throw x;return[2,S]}else x&&P&&l&&(o=!0,S=N,r.set(g,N));j.label=2;case 2:return o&&(x||(pe(o)&&(S=o(S,N)),r.set(g,S)),r.set(y,ve(r.get(y),{error:x}))),m[g][1]=ot(),[4,De(r,g,S,x,J,u,!!o)];case 3:if(E=j.sent(),x)throw x;return[2,o?E:S]}})})},At=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},Fn=function(e,t){if(!_e.has(e)){var r=ve(Pn,t),n={},i=ar.bind(J,e),a=se;if(_e.set(e,[n,{},{},{},i]),!Xe){var s=r.initFocus(setTimeout.bind(J,At.bind(J,n,rr))),o=r.initReconnect(setTimeout.bind(J,At.bind(J,n,nr)));a=function(){s&&s(),o&&o(),_e.delete(e)}}return[e,i,a]}return[e,_e.get(e)[4]]},In=function(e,t,r,n,i){var a=r.errorRetryCount,s=i.retryCount,o=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;!K(a)&&s>a||setTimeout(n,o,i)},sr=Fn(new Map),$n=sr[0],Mn=sr[1],Vn=ve({onLoadingSlow:se,onSuccess:se,onError:se,onErrorRetry:In,onDiscarded:se,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ot?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Ot?5e3:3e3,compare:function(e,t){return Fe(e)==Fe(t)},isPaused:function(){return!1},cache:$n,mutate:Mn,fallback:{}},Nn),Hn=function(e,t){var r=ve(e,t);if(t){var n=e.use,i=e.fallback,a=t.use,s=t.fallback;n&&a&&(r.use=n.concat(a)),i&&s&&(r.fallback=ve(i,s))}return r},Un=h.createContext({}),zn=function(e,t){var r=h.useState({})[1],n=h.useRef(e),i=h.useRef({data:!1,error:!1,isValidating:!1}),a=h.useCallback(function(s){var o=!1,u=n.current;for(var l in s){var d=l;u[d]!==s[d]&&(u[d]=s[d],i.current[d]&&(o=!0))}o&&!t.current&&r({})},[]);return We(function(){n.current=e}),[n,i.current,a]},Gn=function(e){return pe(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}]},Wn=function(){return ve(Vn,h.useContext(Un))},Bn=function(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=Wn(),a=Gn(r),s=a[0],o=a[1],u=a[2],l=Hn(i,u),d=e,c=l.use;if(c)for(var g=c.length;g-- >0;)d=c[g](d);return d(s,o||l.fetcher,l)}},Tt=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var i=n.indexOf(r);i>=0&&(n[i]=n[n.length-1],n.pop())}},et={dedupe:!0},Zn=function(e,t,r){var n=r.cache,i=r.compare,a=r.fallbackData,s=r.suspense,o=r.revalidateOnMount,u=r.refreshInterval,l=r.refreshWhenHidden,d=r.refreshWhenOffline,c=_e.get(n),g=c[0],y=c[1],A=c[2],m=c[3],S=tr(e),x=S[0],D=S[1],P=S[2],N=h.useRef(!1),k=h.useRef(!1),E=h.useRef(x),j=h.useRef(t),O=h.useRef(r),C=function(){return O.current},I=function(){return C().isVisible()&&C().isOnline()},z=function($){return n.set(P,ve(n.get(P),$))},Y=n.get(x),me=K(a)?r.fallback[x]:a,q=K(Y)?me:Y,te=n.get(P)||{},ee=te.error,re=!N.current,ce=function(){return re&&!K(o)?o:C().isPaused()?!1:s?K(q)?!1:r.revalidateIfStale:K(q)||r.revalidateIfStale},v=function(){return!x||!t?!1:te.isValidating?!0:re&&ce()},p=v(),b=zn({data:q,error:ee,isValidating:p},k),_=b[0],w=b[1],R=b[2],M=h.useCallback(function($){return Yt(void 0,void 0,void 0,function(){var F,B,G,Q,Te,ne,Z,fe,ie,Je,ke,Ce,Ye;return Qt(this,function(Re){switch(Re.label){case 0:if(F=j.current,!x||!F||k.current||C().isPaused())return[2,!1];Q=!0,Te=$||{},ne=!m[x]||!Te.dedupe,Z=function(){return!k.current&&x===E.current&&N.current},fe=function(){var wt=m[x];wt&&wt[1]===G&&delete m[x]},ie={isValidating:!1},Je=function(){z({isValidating:!1}),Z()&&R(ie)},z({isValidating:!0}),R({isValidating:!0}),Re.label=1;case 1:return Re.trys.push([1,3,,4]),ne&&(De(n,x,_.current.data,_.current.error,!0),r.loadingTimeout&&!n.get(x)&&setTimeout(function(){Q&&Z()&&C().onLoadingSlow(x,r)},r.loadingTimeout),m[x]=[F.apply(void 0,D),ot()]),Ye=m[x],B=Ye[0],G=Ye[1],[4,B];case 2:return B=Re.sent(),ne&&setTimeout(fe,r.dedupingInterval),!m[x]||m[x][1]!==G?(ne&&Z()&&C().onDiscarded(x),[2,!1]):(z({error:J}),ie.error=J,ke=A[x],!K(ke)&&(G<=ke[0]||G<=ke[1]||ke[1]===0)?(Je(),ne&&Z()&&C().onDiscarded(x),[2,!1]):(i(_.current.data,B)?ie.data=_.current.data:ie.data=B,i(n.get(x),B)||n.set(x,B),ne&&Z()&&C().onSuccess(B,x,r),[3,4]));case 3:return Ce=Re.sent(),fe(),C().isPaused()||(z({error:Ce}),ie.error=Ce,ne&&Z()&&(C().onError(Ce,x,r),(typeof r.shouldRetryOnError=="boolean"&&r.shouldRetryOnError||pe(r.shouldRetryOnError)&&r.shouldRetryOnError(Ce))&&I()&&C().onErrorRetry(Ce,x,r,M,{retryCount:(Te.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return Q=!1,Je(),Z()&&ne&&De(n,x,ie.data,ie.error,!1),[2,!0]}})})},[x]),W=h.useCallback(ar.bind(J,n,function(){return E.current}),[]);if(We(function(){j.current=t,O.current=r}),We(function(){if(x){var $=x!==E.current,F=M.bind(J,et),B=function(Z,fe,ie){R(ve({error:fe,isValidating:ie},i(_.current.data,Z)?J:{data:Z}))},G=0,Q=function(Z){if(Z==rr){var fe=Date.now();C().revalidateOnFocus&&fe>G&&I()&&(G=fe+C().focusThrottleInterval,F())}else if(Z==nr)C().revalidateOnReconnect&&I()&&F();else if(Z==ir)return M()},Te=Tt(x,y,B),ne=Tt(x,g,Q);return k.current=!1,E.current=x,N.current=!0,$&&R({data:q,error:ee,isValidating:p}),ce()&&(K(q)||Xe?F():Ln(F)),function(){k.current=!0,Te(),ne()}}},[x,M]),We(function(){var $;function F(){var G=pe(u)?u(q):u;G&&$!==-1&&($=setTimeout(B,G))}function B(){!_.current.error&&(l||C().isVisible())&&(d||C().isOnline())?M(et).then(F):F()}return F(),function(){$&&(clearTimeout($),$=-1)}},[u,l,d,M]),h.useDebugValue(q),s&&K(q)&&x)throw j.current=t,O.current=r,k.current=!1,K(ee)?M(et):ee;return{mutate:W,get data(){return w.data=!0,q},get error(){return w.error=!0,ee},get isValidating(){return w.isValidating=!0,p}}},Kn=Bn(Zn);function Be(e,t,r=null,n="POST",i){return jt(this,null,function*(){const a=new URL(typeof btcbi=="undefined"?bitFromsFront==null?void 0:bitFromsFront.ajaxURL:btcbi.ajaxURL);if(n.toLowerCase()==="get"&&(a.searchParams.append("action",`btcbi_${t}`),a.searchParams.append("_ajax_nonce",typeof btcbi=="undefined"?"":btcbi.nonce)),r)for(const u in r)u&&a.searchParams.append(u,r[u]);const s={method:n,headers:{},signal:i};if(n.toLowerCase()==="post"){let u;e instanceof FormData?u=e:(u=new FormData,u.set("data",JSON.stringify(e))),u.set("action",`btcbi_${t}`),u.set("_ajax_nonce",typeof btcbi=="undefined"?"":btcbi.nonce),s.body=u}return yield fetch(a,s).then(u=>u.text()).then(u=>{try{return JSON.parse(u)}catch(l){const d=u.match(/{"success":(?:[^{}]*)*}/);return d?JSON.parse(d[0]):{success:!1,data:u}}})})}const qn=({payload:e,action:t,method:r="POST"})=>{const{data:n,error:i,mutate:a}=Kn(t,s=>Be(e,Array.isArray(s)?s[0]:s,null,r));return{data:n,mutate:a,isLoading:!i&&!n,isError:i}};function Xn(e,t){var r=0,n,i;t=t||{};function a(){var s=n,o=arguments.length,u,l;e:for(;s;){if(s.args.length!==arguments.length){s=s.next;continue}for(l=0;l<o;l++)if(s.args[l]!==arguments[l]){s=s.next;continue e}return s!==n&&(s===i&&(i=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}for(u=new Array(o),l=0;l<o;l++)u[l]=arguments[l];return s={args:u,val:e.apply(null,u)},n?(n.prev=s,s.next=n):i=s,r===t.maxSize?(i=i.prev,i.next=null):r++,n=s,s.val}return a.clear=function(){n=null,i=null,r=0},a}var Jn=Xn,Yn=zt(Jn),or={};(function(e){(function(){var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function r(o){return i(s(o),arguments)}function n(o,u){return r.apply(null,[o].concat(u||[]))}function i(o,u){var l=1,d=o.length,c,g="",y,A,m,S,x,D,P,N;for(y=0;y<d;y++)if(typeof o[y]=="string")g+=o[y];else if(typeof o[y]=="object"){if(m=o[y],m.keys)for(c=u[l],A=0;A<m.keys.length;A++){if(c==null)throw new Error(r('[sprintf] Cannot access property "%s" of undefined value "%s"',m.keys[A],m.keys[A-1]));c=c[m.keys[A]]}else m.param_no?c=u[m.param_no]:c=u[l++];if(t.not_type.test(m.type)&&t.not_primitive.test(m.type)&&c instanceof Function&&(c=c()),t.numeric_arg.test(m.type)&&typeof c!="number"&&isNaN(c))throw new TypeError(r("[sprintf] expecting number but found %T",c));switch(t.number.test(m.type)&&(P=c>=0),m.type){case"b":c=parseInt(c,10).toString(2);break;case"c":c=String.fromCharCode(parseInt(c,10));break;case"d":case"i":c=parseInt(c,10);break;case"j":c=JSON.stringify(c,null,m.width?parseInt(m.width):0);break;case"e":c=m.precision?parseFloat(c).toExponential(m.precision):parseFloat(c).toExponential();break;case"f":c=m.precision?parseFloat(c).toFixed(m.precision):parseFloat(c);break;case"g":c=m.precision?String(Number(c.toPrecision(m.precision))):parseFloat(c);break;case"o":c=(parseInt(c,10)>>>0).toString(8);break;case"s":c=String(c),c=m.precision?c.substring(0,m.precision):c;break;case"t":c=String(!!c),c=m.precision?c.substring(0,m.precision):c;break;case"T":c=Object.prototype.toString.call(c).slice(8,-1).toLowerCase(),c=m.precision?c.substring(0,m.precision):c;break;case"u":c=parseInt(c,10)>>>0;break;case"v":c=c.valueOf(),c=m.precision?c.substring(0,m.precision):c;break;case"x":c=(parseInt(c,10)>>>0).toString(16);break;case"X":c=(parseInt(c,10)>>>0).toString(16).toUpperCase();break}t.json.test(m.type)?g+=c:(t.number.test(m.type)&&(!P||m.sign)?(N=P?"+":"-",c=c.toString().replace(t.sign,"")):N="",x=m.pad_char?m.pad_char==="0"?"0":m.pad_char.charAt(1):" ",D=m.width-(N+c).length,S=m.width&&D>0?x.repeat(D):"",g+=m.align?N+c+S:x==="0"?N+S+c:S+N+c)}return g}var a=Object.create(null);function s(o){if(a[o])return a[o];for(var u=o,l,d=[],c=0;u;){if((l=t.text.exec(u))!==null)d.push(l[0]);else if((l=t.modulo.exec(u))!==null)d.push("%");else if((l=t.placeholder.exec(u))!==null){if(l[2]){c|=1;var g=[],y=l[2],A=[];if((A=t.key.exec(y))!==null)for(g.push(A[1]);(y=y.substring(A[0].length))!=="";)if((A=t.key_access.exec(y))!==null)g.push(A[1]);else if((A=t.index_access.exec(y))!==null)g.push(A[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=g}else c|=2;if(c===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");d.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(l[0].length)}return a[o]=d}e.sprintf=r,e.vsprintf=n,typeof window!="undefined"&&(window.sprintf=r,window.vsprintf=n)})()})(or);var kt=zt(or),Qn=Yn(console.error);function ei(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return kt.sprintf.apply(kt,[e].concat(r))}catch(i){return Qn(`sprintf error: `+i.toString()),e}}function Ie(e){"@babel/helpers - typeof";return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(e)}function ti(e,t){if(Ie(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ie(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ri(e){var t=ti(e,"string");return Ie(t)=="symbol"?t:t+""}function ni(e,t,r){return(t=ri(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var lt,lr,Pe,ur;lt={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1};lr=["(","?"];Pe={")":["("],":":["?","?:"]};ur=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;function ii(e){for(var t=[],r=[],n,i,a,s;n=e.match(ur);){for(i=n[0],a=e.substr(0,n.index).trim(),a&&t.push(a);s=r.pop();){if(Pe[i]){if(Pe[i][0]===s){i=Pe[i][1]||i;break}}else if(lr.indexOf(s)>=0||lt[s]<lt[i]){r.push(s);break}t.push(s)}Pe[i]||r.push(i),e=e.substr(n.index+i.length)}return e=e.trim(),e&&t.push(e),t.concat(r.reverse())}var ai={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};function si(e,t){var r=[],n,i,a,s,o,u;for(n=0;n<e.length;n++){if(o=e[n],s=ai[o],s){for(i=s.length,a=Array(i);i--;)a[i]=r.pop();try{u=s.apply(null,a)}catch(l){return l}}else t.hasOwnProperty(o)?u=t[o]:u=+o;r.push(u)}return r[0]}function oi(e){var t=ii(e);return function(r){return si(t,r)}}function li(e){var t=oi(e);return function(r){return+t({n:r})}}var Rt={contextDelimiter:"",onMissingKey:null};function ui(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(n=t[r].trim(),n.indexOf("plural=")===0)return n.substr(7)}function mt(e,t){var r;this.data=e,this.pluralForms={},this.options={};for(r in Rt)this.options[r]=t!==void 0&&r in t?t[r]:Rt[r]}mt.prototype.getPluralForm=function(e,t){var r=this.pluralForms[e],n,i,a;return r||(n=this.data[e][""],a=n["Plural-Forms"]||n["plural-forms"]||n.plural_forms,typeof a!="function"&&(i=ui(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),a=li(i)),r=this.pluralForms[e]=a),r(t)};mt.prototype.dcnpgettext=function(e,t,r,n,i){var a,s,o;return i===void 0?a=0:a=this.getPluralForm(e,i),s=r,t&&(s=t+this.options.contextDelimiter+r),o=this.data[e][s],o&&o[a]?o[a]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),a===0?r:n)};function Nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nt(Object(r),!0).forEach(function(n){ni(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Pt={"":{plural_forms:function(t){return t===1?0:1}}},ci=/^i18n\.(n?gettext|has_translation)(_|$)/,fi=function(t,r,n){var i=new mt({}),a=new Set,s=function(){a.forEach(function(E){return E()})},o=function(E){return a.add(E),function(){return a.delete(E)}},u=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";return i.data[E]},l=function(E){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default";i.data[j]=Ne(Ne(Ne({},Pt),i.data[j]),E),i.data[j][""]=Ne(Ne({},Pt[""]),i.data[j][""])},d=function(E,j){l(E,j),s()},c=function(E,j){i.data={},i.pluralForms={},d(E,j)},g=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",j=arguments.length>1?arguments[1]:void 0,O=arguments.length>2?arguments[2]:void 0,C=arguments.length>3?arguments[3]:void 0,I=arguments.length>4?arguments[4]:void 0;return i.data[E]||l(void 0,E),i.dcnpgettext(E,j,O,C,I)},y=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";return E},A=function(E,j){var O=g(j,void 0,E);return n?(O=n.applyFilters("i18n.gettext",O,E,j),n.applyFilters("i18n.gettext_"+y(j),O,E,j)):O},m=function(E,j,O){var C=g(O,j,E);return n?(C=n.applyFilters("i18n.gettext_with_context",C,E,j,O),n.applyFilters("i18n.gettext_with_context_"+y(O),C,E,j,O)):C},S=function(E,j,O,C){var I=g(C,void 0,E,j,O);return n?(I=n.applyFilters("i18n.ngettext",I,E,j,O,C),n.applyFilters("i18n.ngettext_"+y(C),I,E,j,O,C)):I},x=function(E,j,O,C,I){var z=g(I,C,E,j,O);return n?(z=n.applyFilters("i18n.ngettext_with_context",z,E,j,O,C,I),n.applyFilters("i18n.ngettext_with_context_"+y(I),z,E,j,O,C,I)):z},D=function(){return m("ltr","text direction")==="rtl"},P=function(E,j,O){var C,I,z=j?j+""+E:E,Y=!!((C=i.data)!==null&&C!==void 0&&(I=C[O!=null?O:"default"])!==null&&I!==void 0&&I[z]);return n&&(Y=n.applyFilters("i18n.has_translation",Y,E,j,O),Y=n.applyFilters("i18n.has_translation_"+y(O),Y,E,j,O)),Y};if(t&&d(t,r),n){var N=function(E){ci.test(E)&&s()};n.addAction("hookAdded","core/i18n",N),n.addAction("hookRemoved","core/i18n",N)}return{getLocaleData:u,setLocaleData:d,resetLocaleData:c,subscribe:o,__:A,_x:m,_n:S,_nx:x,isRTL:D,hasTranslation:P}};function di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cr(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}function bt(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}function Lt(e,t){return function(n,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:10,o=e[t];if(bt(n)&&cr(i)){if(typeof a!="function"){console.error("The hook callback must be a function.");return}if(typeof s!="number"){console.error("If specified, the hook priority must be a number.");return}var u={callback:a,priority:s,namespace:i};if(o[n]){var l=o[n].handlers,d;for(d=l.length;d>0&&!(s>=l[d-1].priority);d--);d===l.length?l[d]=u:l.splice(d,0,u),o.__current.forEach(function(c){c.name===n&&c.currentIndex>=d&&c.currentIndex++})}else o[n]={handlers:[u],runs:0};n!=="hookAdded"&&e.doAction("hookAdded",n,i,a,s)}}}function Ue(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return function(i,a){var s=e[t];if(bt(i)&&!(!r&&!cr(a))){if(!s[i])return 0;var o=0;if(r)o=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var u=s[i].handlers,l=function(g){u[g].namespace===a&&(u.splice(g,1),o++,s.__current.forEach(function(y){y.name===i&&y.currentIndex>=g&&y.currentIndex--}))},d=u.length-1;d>=0;d--)l(d);return i!=="hookRemoved"&&e.doAction("hookRemoved",i,a),o}}}function Dt(e,t){return function(n,i){var a=e[t];return typeof i!="undefined"?n in a&&a[n].handlers.some(function(s){return s.namespace===i}):n in a}}function Ft(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return function(i){var a=e[t];a[i]||(a[i]={handlers:[],runs:0}),a[i].runs++;for(var s=a[i].handlers,o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];if(!s||!s.length)return r?u[0]:void 0;var d={name:i,currentIndex:0};for(a.__current.push(d);d.currentIndex<s.length;){var c=s[d.currentIndex],g=c.callback.apply(null,u);r&&(u[0]=g),d.currentIndex++}if(a.__current.pop(),r)return u[0]}}function It(e,t){return function(){var n,i,a=e[t];return(n=(i=a.__current[a.__current.length-1])===null||i===void 0?void 0:i.name)!==null&&n!==void 0?n:null}}function $t(e,t){return function(n){var i=e[t];return typeof n=="undefined"?typeof i.__current[0]!="undefined":i.__current[0]?n===i.__current[0].name:!1}}function Mt(e,t){return function(n){var i=e[t];if(bt(n))return i[n]&&i[n].runs?i[n].runs:0}}var pi=function e(){di(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=Lt(this,"actions"),this.addFilter=Lt(this,"filters"),this.removeAction=Ue(this,"actions"),this.removeFilter=Ue(this,"filters"),this.hasAction=Dt(this,"actions"),this.hasFilter=Dt(this,"filters"),this.removeAllActions=Ue(this,"actions",!0),this.removeAllFilters=Ue(this,"filters",!0),this.doAction=Ft(this,"actions"),this.applyFilters=Ft(this,"filters",!0),this.currentAction=It(this,"actions"),this.currentFilter=It(this,"filters"),this.doingAction=$t(this,"actions"),this.doingFilter=$t(this,"filters"),this.didAction=Mt(this,"actions"),this.didFilter=Mt(this,"filters")};function hi(){return new pi}var U=hi();U.addAction;U.addFilter;U.removeAction;U.removeFilter;U.hasAction;U.hasFilter;U.removeAllActions;U.removeAllFilters;U.doAction;U.applyFilters;U.currentAction;U.currentFilter;U.doingAction;U.doingFilter;U.didAction;U.didFilter;U.actions;U.filters;var V=fi(void 0,void 0,U);V.getLocaleData.bind(V);V.setLocaleData.bind(V);V.resetLocaleData.bind(V);V.subscribe.bind(V);var vi=V.__.bind(V);V._x.bind(V);V._n.bind(V);V._nx.bind(V);V.isRTL.bind(V);V.hasTranslation.bind(V);const L=(e,t="bit-integrations")=>btcbi!=null&&btcbi.translations&&btcbi.translations[`${e}`]?btcbi==null?void 0:btcbi.translations[`${e}`]:wp!=null&&wp.i18n?vi(e,t):e,ut=(e,...t)=>{if(!(wp!=null&&wp.i18n)){const r=e.match(/%[s d u c o x X bg G e E f F]/g);let n=e;return t.map((i,a)=>{n=n.replace(r[a],i)}),n}return ei(e,...t)};function gi(e,t){const r=new Set,n=new BroadcastChannel(e);n.onmessage=s=>{r.forEach(o=>o(s))};const i=Ae({key:`${e}_broadcastAtom`,default:{isEvent:!1,value:t},effects_UNSTABLE:[({trigger:s,setSelf:o,onSet:u})=>{const l=d=>{d.data.isEvent&&o({isEvent:!1,value:d.data.value})};return r.add(l),u((d,c,g)=>{d.isEvent||n.postMessage({isEvent:!0,value:d.value})}),()=>{r.delete(l)}}]});return _r({key:`${e}_returnedAtom`,get:({get:s})=>s(i).value,set:({set:s},o)=>{o instanceof Ct?s(i,new Ct):s(i,{isEvent:!1,value:o})}})}const fr=Ae({key:"$btcbi",default:typeof btcbi!="undefined"?btcbi:{}}),Ui=Ae({key:"$newFlow",default:{},dangerouslyAllowMutability:!0}),zi=Ae({key:"$actionConf",default:{},dangerouslyAllowMutability:!0}),Gi=Ae({key:"$formFields",default:{},dangerouslyAllowMutability:!0}),Wi=Ae({key:"$flowStep",default:1,dangerouslyAllowMutability:!0}),Bi=gi("authInfo",{});function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ct.apply(null,arguments)}function dr(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ft(e,t){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ft(e,t)}function pr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ft(e,t)}function mi(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function bi(e,t){e.classList?e.classList.add(t):mi(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Vt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yi(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Vt(e.className,t):e.setAttribute("class",Vt(e.className&&e.className.baseVal||"",t))}var Ht={disabled:!1},hr=Ee.createContext(null),vr=function(t){return t.scrollTop},Le="unmounted",xe="exited",we="entering",Oe="entered",dt="exiting",ue=function(e){pr(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var s=i,o=s&&!s.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?o?(u=xe,a.appearStatus=we):u=Oe:n.unmountOnExit||n.mountOnEnter?u=Le:u=xe,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===Le?{status:xe}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==we&&s!==Oe&&(a=we):(s===we||s===Oe)&&(a=dt)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===we){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Me.findDOMNode(this);s&&vr(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xe&&this.setState({status:Le})},r.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[Me.findDOMNode(this),o],l=u[0],d=u[1],c=this.getTimeouts(),g=o?c.appear:c.enter;if(!i&&!s||Ht.disabled){this.safeSetState({status:Oe},function(){a.props.onEntered(l)});return}this.props.onEnter(l,d),this.safeSetState({status:we},function(){a.props.onEntering(l,d),a.onTransitionEnd(g,function(){a.safeSetState({status:Oe},function(){a.props.onEntered(l,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Me.findDOMNode(this);if(!a||Ht.disabled){this.safeSetState({status:xe},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:dt},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:xe},function(){i.props.onExited(o)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Me.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],d=u[1];this.props.addEndListener(l,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Le)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=dr(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ee.createElement(hr.Provider,{value:null},typeof s=="function"?s(i,o):Ee.cloneElement(Ee.Children.only(s),o))},t}(Ee.Component);ue.contextType=hr;ue.propTypes={};function Se(){}ue.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Se,onEntering:Se,onEntered:Se,onExit:Se,onExiting:Se,onExited:Se};ue.UNMOUNTED=Le;ue.EXITED=xe;ue.ENTERING=we;ue.ENTERED=Oe;ue.EXITING=dt;var xi=ue,wi=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return bi(t,n)})},tt=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return yi(t,n)})},yt=function(e){pr(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(o,u){var l=n.resolveArguments(o,u),d=l[0],c=l[1];n.removeClasses(d,"exit"),n.addClass(d,c?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(o,u)},n.onEntering=function(o,u){var l=n.resolveArguments(o,u),d=l[0],c=l[1],g=c?"appear":"enter";n.addClass(d,g,"active"),n.props.onEntering&&n.props.onEntering(o,u)},n.onEntered=function(o,u){var l=n.resolveArguments(o,u),d=l[0],c=l[1],g=c?"appear":"enter";n.removeClasses(d,g),n.addClass(d,g,"done"),n.props.onEntered&&n.props.onEntered(o,u)},n.onExit=function(o){var u=n.resolveArguments(o),l=u[0];n.removeClasses(l,"appear"),n.removeClasses(l,"enter"),n.addClass(l,"exit","base"),n.props.onExit&&n.props.onExit(o)},n.onExiting=function(o){var u=n.resolveArguments(o),l=u[0];n.addClass(l,"exit","active"),n.props.onExiting&&n.props.onExiting(o)},n.onExited=function(o){var u=n.resolveArguments(o),l=u[0];n.removeClasses(l,"exit"),n.addClass(l,"exit","done"),n.props.onExited&&n.props.onExited(o)},n.resolveArguments=function(o,u){return n.props.nodeRef?[n.props.nodeRef.current,o]:[o,u]},n.getClassNames=function(o){var u=n.props.classNames,l=typeof u=="string",d=l&&u?u+"-":"",c=l?""+d+o:u[o],g=l?c+"-active":u[o+"Active"],y=l?c+"-done":u[o+"Done"];return{baseClassName:c,activeClassName:g,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(i,a,s){var o=this.getClassNames(a)[s+"ClassName"],u=this.getClassNames("enter"),l=u.doneClassName;a==="appear"&&s==="done"&&l&&(o+=" "+l),s==="active"&&i&&vr(i),o&&(this.appliedClasses[a][s]=o,wi(i,o))},r.removeClasses=function(i,a){var s=this.appliedClasses[a],o=s.base,u=s.active,l=s.done;this.appliedClasses[a]={},o&&tt(i,o),u&&tt(i,u),l&&tt(i,l)},r.render=function(){var i=this.props;i.classNames;var a=dr(i,["classNames"]);return Ee.createElement(xi,ct({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Ee.Component);yt.defaultProps={classNames:""};yt.propTypes={};var Ei=yt;function _i({size:e,stroke:t=4,className:r}){return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:r,width:e,height:e,viewBox:"0 0 30 30",children:[f.jsx("line",{className:"svg-icn",strokeWidth:t,x1:"4",y1:"3.88",x2:"26",y2:"26.12"}),f.jsx("line",{className:"svg-icn",strokeWidth:t,x1:"26",y1:"3.88",x2:"4",y2:"26.12"})]})}function xt({show:e,setModal:t,sm:r,lg:n,style:i,cssTransStyle:a,className:s,title:o,warning:u,hdrActn:l,children:d,subTitle:c,noPadding:g,closeIcon:y}){const A=m=>{m.target.classList.contains("btcd-modal-wrp")&&y!==!1&&t(!1)};return f.jsx(Ei,{in:e,classNames:"btc-mdl-trn",unmountOnExit:!0,style:a,timeout:{appear:500,enter:300,exit:500},children:f.jsx("div",{role:"button",tabIndex:0,onKeyPress:A,onClick:A,className:"btcd-modal-wrp flx",style:{overflow:"auto"},children:f.jsx("div",{className:`btcd-modal ${r?"btcd-m-sm":""} ${n?"btcd-m-lg":""} ${s}`,style:i,children:f.jsxs("div",{className:`btcd-modal-content ${g?"no-padding":""} `,children:[l,y?f.jsx("button",{onClick:()=>t(!1),className:"icn-btn btcd-mdl-close","aria-label":"modal-close",type:"button",children:f.jsx(_i,{size:16,stroke:3})}):"",o?f.jsx("h2",{className:"btcd-mdl-title flx",style:{color:u?"red":""},children:o}):"",f.jsx("small",{className:"btcd-mdl-subtitle",children:c}),d]})})})})}function ji({size:e=20,stroke:t=2,style:r}){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:e,height:e,fill:"currentColor",children:f.jsx("g",{id:"Line",children:f.jsx("path",{d:"M27,29.75H11A2.75,2.75,0,0,1,8.25,27v-.45a7.75,7.75,0,0,1,0-15.1V5A2.75,2.75,0,0,1,11,2.25H22.17a2.74,2.74,0,0,1,1.95.81l4.82,4.82a2.74,2.74,0,0,1,.81,2V27A2.75,2.75,0,0,1,27,29.75Zm-17.25-3V27A1.25,1.25,0,0,0,11,28.25H27A1.25,1.25,0,0,0,28.25,27V10.75H24A2.75,2.75,0,0,1,21.25,8V3.75H11A1.25,1.25,0,0,0,9.75,5v6.25H10a7.75,7.75,0,0,1,0,15.5Zm.25-14A6.25,6.25,0,1,0,16.25,19,6.25,6.25,0,0,0,10,12.75ZM22.75,3.89V8A1.25,1.25,0,0,0,24,9.25h4.11a1.39,1.39,0,0,0-.23-.31L23.06,4.12A1.39,1.39,0,0,0,22.75,3.89ZM25,22.75H20a.75.75,0,0,1,0-1.5h5a.75.75,0,0,1,0,1.5ZM8.5,21.25A.74.74,0,0,1,8,21,.75.75,0,0,1,8,20l1.28-1.28V16a.75.75,0,0,1,1.5,0v3a.75.75,0,0,1-.22.53L9,21A.74.74,0,0,1,8.5,21.25ZM25,18.75H21a.75.75,0,0,1,0-1.5h4a.75.75,0,0,1,0,1.5Zm0-4H20a.75.75,0,0,1,0-1.5h5a.75.75,0,0,1,0,1.5Zm-7-4H15a.75.75,0,0,1,0-1.5h3a.75.75,0,0,1,0,1.5Z"})})})}function Ut({size:e=24,stroke:t=2,className:r}){return f.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,className:r,strokeLinecap:"round",strokeLinejoin:"round",children:[f.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),f.jsx("polyline",{points:"15 3 21 3 21 9"}),f.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})}const Ci="2nd February 2026",Si=[{label:L("Note","bit-integrations"),headClass:"new-note",itemClass:"",items:[{label:"Bit Assist and Bit Social integrations are now available in the Free Plugin! Enjoy enhanced automation and social features today! 🎉",desc:"",isPro:!1}]},{label:L("New Actions","bit-integrations"),headClass:"new-integration",itemClass:"integration-list",items:[{label:"SEOPress",desc:"01 events Added.",isPro:!0},{label:"Fabman",desc:"05 events Added.",isPro:!0}]},{label:L("New Triggers","bit-integrations"),headClass:"new-trigger",itemClass:"integration-list",items:[{label:"SEOPress",desc:"04 events Added.",isPro:!0},{label:"Thrive Leads",desc:"02 events Added.",isPro:!0}]},{label:L("New Features","bit-integrations"),headClass:"new-feature",itemClass:"feature-list",items:[{label:"GoHighLevel",desc:"Added Tags Utilities to REST API v2 for better integration.",isPro:!0},{label:"RapidMail",desc:"Introduced Force Subscribe Utilities for enhanced subscription management.",isPro:!1}]},{label:L("Improvements","bit-integrations"),headClass:"new-improvement",itemClass:"feature-list",items:[]},{label:L("Bug Fixes","bit-integrations"),headClass:"fixes",itemClass:"fixes-list",items:[{label:"Hotfix",desc:"Fixed the issue where the selected trigger hook was empty, preventing the trigger from firing correctly.",isPro:!0},{label:"Malware Fix",desc:"Resolved malware issue detected in the file php-cs-fixer.phar in the plugin directory.",isPro:!0},{label:"Amelia Booking",desc:"Resolved issue with Multi-Select/Checkbox field values not saving correctly.",isPro:!0},{label:"WooCommerce",desc:"Fixed issue with Checkout Metadata not displaying properly.",isPro:!1},{label:"WPForms",desc:"Corrected problem with Payment Fields not functioning as expected.",isPro:!1},{label:"WP User Registration",desc:"Resolved trimming issue with Meta Fields during registration.",isPro:!1},{label:"Bit Assist",desc:"Resolved form submit entries null data issue.",isPro:!1}]}];function Oi(){const[e,t]=jr(fr),[r,n]=h.useState(e.changelogVersion!==e.version),[i,a]=h.useState(!1),[s,o]=h.useState(""),[u,l]=h.useState(2),d=y=>{n(y),y||Be({version:e.version},"changelog_version").then(()=>{t(A=>X(T({},A),{changelogVersion:A.version}))})},c=()=>{Be({isChecked:!0},"analytics/optIn"),n(!1)},g=()=>{n(!1),d()};return h.useEffect(()=>{r&&(o(!0),Be({},"analytics/check","","GET").then(y=>{a(y.data),o(!1)}))},[r]),f.jsxs("div",{className:"changelog-toggle",children:[f.jsx("button",{title:L("What's New","bit-integrations"),type:"button",className:"changelog-btn",onClick:()=>{l(2),n(!0)},children:f.jsx(ji,{size:25})}),f.jsx(xt,{md:u===1,sm:u!==1,show:r,setModal:g,closeIcon:i&&u===2,style:{height:"auto",width:"550px"},children:u===2&&f.jsxs("div",{className:"changelog content",children:[f.jsxs("div",{className:"flx flx-col flx-center whats-new",children:[f.jsxs("h3",{children:[ut(L("What's New in v%s","bit-integrations"),e.version),"?"]}),f.jsxs("small",{className:"date",children:[L("Updated at:","bit-integrations")," ",f.jsx("b",{children:Ci})]})]}),f.jsxs("div",{className:"changelog-content",children:[Si.map((y,A)=>f.jsx(h.Fragment,{children:y.items.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:y.headClass,children:f.jsx("b",{children:y.label})}),f.jsx("div",{className:y.itemClass,children:f.jsx("ul",{children:y.items.map((m,S)=>f.jsxs("li",{children:[(m==null?void 0:m.label)&&f.jsx("b",{children:m.label}),(m==null?void 0:m.label)&&(m==null?void 0:m.desc)&&f.jsx("b",{children:": "}),(m==null?void 0:m.desc)&&f.jsx("span",{children:m.desc})," ",(m==null?void 0:m.isPro)&&f.jsx("small",{className:"pro-btn",children:"Pro"})]},S))})})]})},A)),f.jsxs("div",{children:[f.jsx("span",{className:"footer",children:L("For more details,")}),f.jsxs("a",{href:"https://bitapps.pro/docs/bit-integrations/free-changelogs/",target:"_blank",rel:"noreferrer",children:[L("Click here")," ",f.jsx(Ut,{size:"14"})]})]})]}),s?f.jsx("div",{className:"flx flx-center",style:{height:"150px"},children:f.jsx(ye,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:45,transform:"scale(0.5)"}})}):!i&&f.jsxs("div",{children:[f.jsx("div",{className:"btcd-hr mt-2"}),f.jsx("div",{className:"flx flx-col flx-center",children:f.jsx("h4",{className:"mt-2 mb-0",children:L("Opt-In For Plugin Improvement","bit-integrations")})}),f.jsxs("div",{className:"m-2 txt-sm",children:[L("Accept and continue to share usage data to help us improve the plugin, the plugin will still function if you skip.","bit-integrations"),f.jsx("br",{}),f.jsxs("a",{className:"app-link-active",target:"blank",href:"https://bitapps.pro/terms-of-service/",children:[L("Terms and conditions","bit-integrations")," ",f.jsx(Ut,{size:"14"})]})]}),f.jsxs("div",{className:"flx flx-between",children:[f.jsx("button",{type:"button",className:"btn round btn-md gray gray-sh",onClick:()=>g(),children:"Skip"}),f.jsx("button",{type:"button",className:"btn round btcd-btn-lg purple purple-sh",onClick:()=>c(),children:L("Accept and continue","bit-integrations")})]})]})]})})]})}var Ai={exports:{}};(function(e){var t=function(r){var n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(v,p,b){v[p]=b.value},s,o=typeof Symbol=="function"?Symbol:{},u=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function c(v,p,b){return Object.defineProperty(v,p,{value:b,enumerable:!0,configurable:!0,writable:!0}),v[p]}try{c({},"")}catch(v){c=function(p,b,_){return p[b]=_}}function g(v,p,b,_){var w=p&&p.prototype instanceof P?p:P,R=Object.create(w.prototype),M=new ee(_||[]);return a(R,"_invoke",{value:Y(v,b,M)}),R}r.wrap=g;function y(v,p,b){try{return{type:"normal",arg:v.call(p,b)}}catch(_){return{type:"throw",arg:_}}}var A="suspendedStart",m="suspendedYield",S="executing",x="completed",D={};function P(){}function N(){}function k(){}var E={};c(E,u,function(){return this});var j=Object.getPrototypeOf,O=j&&j(j(re([])));O&&O!==n&&i.call(O,u)&&(E=O);var C=k.prototype=P.prototype=Object.create(E);N.prototype=k,a(C,"constructor",{value:k,configurable:!0}),a(k,"constructor",{value:N,configurable:!0}),N.displayName=c(k,d,"GeneratorFunction");function I(v){["next","throw","return"].forEach(function(p){c(v,p,function(b){return this._invoke(p,b)})})}r.isGeneratorFunction=function(v){var p=typeof v=="function"&&v.constructor;return p?p===N||(p.displayName||p.name)==="GeneratorFunction":!1},r.mark=function(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,k):(v.__proto__=k,c(v,d,"GeneratorFunction")),v.prototype=Object.create(C),v},r.awrap=function(v){return{__await:v}};function z(v,p){function b(R,M,W,$){var F=y(v[R],v,M);if(F.type==="throw")$(F.arg);else{var B=F.arg,G=B.value;return G&&typeof G=="object"&&i.call(G,"__await")?p.resolve(G.__await).then(function(Q){b("next",Q,W,$)},function(Q){b("throw",Q,W,$)}):p.resolve(G).then(function(Q){B.value=Q,W(B)},function(Q){return b("throw",Q,W,$)})}}var _;function w(R,M){function W(){return new p(function($,F){b(R,M,$,F)})}return _=_?_.then(W,W):W()}a(this,"_invoke",{value:w})}I(z.prototype),c(z.prototype,l,function(){return this}),r.AsyncIterator=z,r.async=function(v,p,b,_,w){w===void 0&&(w=Promise);var R=new z(g(v,p,b,_),w);return r.isGeneratorFunction(p)?R:R.next().then(function(M){return M.done?M.value:R.next()})};function Y(v,p,b){var _=A;return function(R,M){if(_===S)throw new Error("Generator is already running");if(_===x){if(R==="throw")throw M;return ce()}for(b.method=R,b.arg=M;;){var W=b.delegate;if(W){var $=me(W,b);if($){if($===D)continue;return $}}if(b.method==="next")b.sent=b._sent=b.arg;else if(b.method==="throw"){if(_===A)throw _=x,b.arg;b.dispatchException(b.arg)}else b.method==="return"&&b.abrupt("return",b.arg);_=S;var F=y(v,p,b);if(F.type==="normal"){if(_=b.done?x:m,F.arg===D)continue;return{value:F.arg,done:b.done}}else F.type==="throw"&&(_=x,b.method="throw",b.arg=F.arg)}}}function me(v,p){var b=p.method,_=v.iterator[b];if(_===s)return p.delegate=null,b==="throw"&&v.iterator.return&&(p.method="return",p.arg=s,me(v,p),p.method==="throw")||b!=="return"&&(p.method="throw",p.arg=new TypeError("The iterator does not provide a '"+b+"' method")),D;var w=y(_,v.iterator,p.arg);if(w.type==="throw")return p.method="throw",p.arg=w.arg,p.delegate=null,D;var R=w.arg;if(!R)return p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,D;if(R.done)p[v.resultName]=R.value,p.next=v.nextLoc,p.method!=="return"&&(p.method="next",p.arg=s);else return R;return p.delegate=null,D}I(C),c(C,d,"Generator"),c(C,u,function(){return this}),c(C,"toString",function(){return"[object Generator]"});function q(v){var p={tryLoc:v[0]};1 in v&&(p.catchLoc=v[1]),2 in v&&(p.finallyLoc=v[2],p.afterLoc=v[3]),this.tryEntries.push(p)}function te(v){var p=v.completion||{};p.type="normal",delete p.arg,v.completion=p}function ee(v){this.tryEntries=[{tryLoc:"root"}],v.forEach(q,this),this.reset(!0)}r.keys=function(v){var p=Object(v),b=[];for(var _ in p)b.push(_);return b.reverse(),function w(){for(;b.length;){var R=b.pop();if(R in p)return w.value=R,w.done=!1,w}return w.done=!0,w}};function re(v){if(v){var p=v[u];if(p)return p.call(v);if(typeof v.next=="function")return v;if(!isNaN(v.length)){var b=-1,_=function w(){for(;++b<v.length;)if(i.call(v,b))return w.value=v[b],w.done=!1,w;return w.value=s,w.done=!0,w};return _.next=_}}return{next:ce}}r.values=re;function ce(){return{value:s,done:!0}}return ee.prototype={constructor:ee,reset:function(v){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(te),!v)for(var p in this)p.charAt(0)==="t"&&i.call(this,p)&&!isNaN(+p.slice(1))&&(this[p]=s)},stop:function(){this.done=!0;var v=this.tryEntries[0],p=v.completion;if(p.type==="throw")throw p.arg;return this.rval},dispatchException:function(v){if(this.done)throw v;var p=this;function b($,F){return R.type="throw",R.arg=v,p.next=$,F&&(p.method="next",p.arg=s),!!F}for(var _=this.tryEntries.length-1;_>=0;--_){var w=this.tryEntries[_],R=w.completion;if(w.tryLoc==="root")return b("end");if(w.tryLoc<=this.prev){var M=i.call(w,"catchLoc"),W=i.call(w,"finallyLoc");if(M&&W){if(this.prev<w.catchLoc)return b(w.catchLoc,!0);if(this.prev<w.finallyLoc)return b(w.finallyLoc)}else if(M){if(this.prev<w.catchLoc)return b(w.catchLoc,!0)}else if(W){if(this.prev<w.finallyLoc)return b(w.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(v,p){for(var b=this.tryEntries.length-1;b>=0;--b){var _=this.tryEntries[b];if(_.tryLoc<=this.prev&&i.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var w=_;break}}w&&(v==="break"||v==="continue")&&w.tryLoc<=p&&p<=w.finallyLoc&&(w=null);var R=w?w.completion:{};return R.type=v,R.arg=p,w?(this.method="next",this.next=w.finallyLoc,D):this.complete(R)},complete:function(v,p){if(v.type==="throw")throw v.arg;return v.type==="break"||v.type==="continue"?this.next=v.arg:v.type==="return"?(this.rval=this.arg=v.arg,this.method="return",this.next="end"):v.type==="normal"&&p&&(this.next=p),D},finish:function(v){for(var p=this.tryEntries.length-1;p>=0;--p){var b=this.tryEntries[p];if(b.finallyLoc===v)return this.complete(b.completion,b.afterLoc),te(b),D}},catch:function(v){for(var p=this.tryEntries.length-1;p>=0;--p){var b=this.tryEntries[p];if(b.tryLoc===v){var _=b.completion;if(_.type==="throw"){var w=_.arg;te(b)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(v,p,b){return this.delegate={iterator:re(v),resultName:p,nextLoc:b},this.method==="next"&&(this.arg=s),D}},r}(e.exports);try{regeneratorRuntime=t}catch(r){typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(Ai);function gr({size:e}){return f.jsxs("svg",{id:"Capa_1",enableBackground:"new 0 0 511.843 511.843",height:e,viewBox:"0 0 511.843 511.843",width:e,children:[f.jsxs("linearGradient",{id:"SVGID_1_",gradientUnits:"userSpaceOnUse",x1:"255.921",x2:"255.921",y1:"429.843",y2:"0",children:[f.jsx("stop",{offset:"0",stopColor:"#fd5900"}),f.jsx("stop",{offset:"1",stopColor:"#ffde00"})]}),f.jsxs("linearGradient",{id:"SVGID_2_",gradientUnits:"userSpaceOnUse",x1:"255.682",x2:"255.682",y1:"511.843",y2:"74.843",children:[f.jsx("stop",{offset:"0",stopColor:"#ffe59a"}),f.jsx("stop",{offset:"1",stopColor:"#ffffd5"})]}),f.jsxs("g",{children:[f.jsx("path",{d:"m450.442 215.54c-1.888-3.567-1.888-7.827-.001-11.393l6.3-11.901c9.693-18.311 4.426-41.389-12.252-53.681l-10.839-7.989c-3.249-2.395-5.097-6.232-4.943-10.263l.513-13.457c.788-20.702-13.971-39.209-34.33-43.048l-13.233-2.495c-3.966-.748-7.295-3.403-8.906-7.103l-5.377-12.346c-8.273-18.994-29.598-29.267-49.608-23.89l-13.005 3.494c-3.896 1.046-8.05.099-11.106-2.535l-10.201-8.791c-15.693-13.522-39.365-13.522-55.06 0 0 0-10.202 8.791-10.202 8.791-3.057 2.634-7.208 3.581-11.105 2.535l-13.005-3.494c-20.011-5.375-41.335 4.896-49.608 23.89l-5.378 12.347c-1.611 3.699-4.94 6.354-8.906 7.102l-13.233 2.495c-20.359 3.839-35.118 22.346-34.33 43.048l.512 13.457c.154 4.032-1.694 7.869-4.942 10.263l-10.84 7.99c-16.677 12.292-21.944 35.37-12.252 53.681l6.3 11.901c1.888 3.566 1.888 7.825 0 11.392l-6.3 11.901c-9.692 18.31-4.425 41.388 12.252 53.681l10.839 7.989c3.249 2.395 5.096 6.231 4.942 10.265l-.512 13.456c-.788 20.703 13.971 39.21 34.33 43.048l6.942 1.309 1.025 32.055 74 37.601 32.097-15.225c7.36 5.374 16.13 8.068 24.903 8.068 8.639 0 17.276-2.607 24.566-7.817l26.434 17.973 74-37.752 6.593-34.822 7.375-1.391c20.359-3.838 35.118-22.345 34.33-43.049l-.513-13.455c-.153-4.033 1.694-7.87 4.942-10.264l10.84-7.989c16.678-12.292 21.945-35.37 12.252-53.681z",fill:"url(#SVGID_1_)"}),f.jsx("g",{children:f.jsx("g",{children:f.jsx("path",{d:"m390.921 209.843c0-74.439-60.561-135-135-135s-135 60.561-135 135 60.561 135 135 135 135-60.561 135-135zm-67.466-7.8-22.885 22.307 5.402 31.498c.965 5.627-1.349 11.315-5.968 14.671-4.578 3.326-10.697 3.822-15.797 1.142l-28.287-14.871-28.287 14.871c-5.054 2.657-11.177 2.215-15.797-1.142-4.619-3.356-6.933-9.043-5.967-14.671l5.402-31.498-22.885-22.307c-4.088-3.985-5.56-9.946-3.795-15.376 1.764-5.43 6.458-9.388 12.109-10.209l31.626-4.595 14.143-28.658c2.527-5.12 7.742-8.362 13.451-8.362s10.924 3.241 13.451 8.361l14.144 28.658 31.626 4.595c5.65.821 10.344 4.779 12.108 10.209s.294 11.392-3.794 15.377zm-105.265 198.71c-3.056-2.634-7.208-3.58-11.106-2.535l-13.005 3.493c-20.01 5.377-41.335-4.896-49.608-23.89l-5.377-12.345c-1.612-3.701-4.941-6.355-8.907-7.104l-6.291-1.186-47.81 86.393c-2.655 4.798-2.48 10.662.455 15.293s8.167 7.296 13.635 6.939l43.905-2.831 19.573 40.402c2.447 5.051 7.509 8.313 13.12 8.456.127.003.254.005.381.005 5.465 0 10.511-2.977 13.149-7.785l50.714-92.44c-.896-.654-1.775-1.341-2.627-2.075zm217.088 42.827-47.764-86.312-5.859 1.104c-3.965.748-7.295 3.403-8.905 7.103l-5.378 12.346c-6.793 15.596-22.391 25.311-38.829 25.312-3.581 0-7.199-.461-10.779-1.422l-13.005-3.493c-3.896-1.046-8.05-.099-11.105 2.535l-10.202 8.79c-.959.827-1.949 1.601-2.964 2.326l50.573 92.188c2.639 4.81 7.685 7.786 13.149 7.786.127 0 .255-.001.382-.005 5.61-.142 10.672-3.404 13.119-8.455l19.574-40.402 43.904 2.831c5.457.357 10.699-2.307 13.635-6.939 2.934-4.632 3.109-10.495.454-15.293z",fill:"url(#SVGID_2_)"})})})]})]})}function Zi({show:e,setShow:t,title:r,sub:n,className:i,children:a,warning:s}){return f.jsx(xt,{sm:!0,closeIcon:!0,show:e,setModal:()=>t(!1),className:i,title:r||"Upgrade to Pro",warning:s||!1,children:f.jsx("div",{className:`txt-center atn-btns flx flx-center ${i||"flx-col"}`,children:f.jsxs("div",{className:`content p-4 ${!i&&"confirm-content"}`,children:[f.jsx(gr,{size:"50"}),f.jsxs("h3",{children:[ut(L("%s is available in","bit-integrations"),n||L("This feature","bit-integrations"))," ",f.jsx("span",{className:"pro-btn",children:L("Pro","bit-integrations")})]}),f.jsx("p",{children:ut(L("Thank you for using our product! %s is not available in your plan. Please upgrade to the PRO plan to unlock all these awesome features.","bit-integrations"),n||L("This feature","bit-integrations"))}),a,f.jsx(mr,{warning:s}),f.jsxs("p",{children:[L("Check out our","bit-integrations"),f.jsx("a",{href:"https://towp.io/?demo&plugin=bit-integrations",target:"_blank",rel:"noreferrer",children:L(" Demo ","bit-integrations")}),L("to see what can you do with Pro version.","bit-integrations")]})]})})})}const mr=e=>f.jsxs("div",{className:`d-flx flx-center ${e&&"mt-3"}`,children:[f.jsx("a",{href:"https://towp.io/?demo&plugin=bit-integrations",target:"_blank",className:"btn btcd-btn-o-gray gray gray-sh w-4 mr-2 br-50 btn-lg ",rel:"noreferrer",children:L("Try Demo","bit-integrations")}),f.jsx("a",{href:"https://bitapps.pro/bit-integrations/#pricing",target:"_blank",className:"btn btcd-btn-o-white purple w-4 mr-2 br-50 btn-lg",rel:"noreferrer",children:L("Upgrade to Pro","bit-integrations")})]});function Ti({title:e,sub:t,className:r,children:n,warning:i}){const[a,s]=h.useState(!1);return f.jsxs(f.Fragment,{children:[f.jsx("nav",{className:"top-nav",style:{marginRight:"15px"},children:f.jsx("button",{type:"button",onClick:()=>s(!0),className:"btn purple btn-md py-2 purple-sh",children:L("Try Pro","bit-integrations")})}),f.jsx(xt,{sm:!0,closeIcon:!0,show:a,setModal:()=>s(!1),className:r,title:e||"Upgrade to Pro",warning:i||!1,children:f.jsx("div",{className:`txt-center atn-btns flx flx-center ${r||"flx-col"}`,children:f.jsxs("div",{className:`content p-4 ${!r&&"confirm-content"}`,children:[f.jsx(gr,{size:"50"}),f.jsxs("h3",{children:[L("Unlock Premium Features with","bit-integrations")," ",f.jsx("span",{className:"pro-btn",children:L("Pro","bit-integrations")})]}),f.jsx("p",{children:L("Thanks for using our product! You can explore our Pro plugin with a 7-day trial. Please note that your data will be deleted once the trial ends.","bit-integrations")}),n,f.jsx(mr,{warning:i})]})})})]})}const ki=h.lazy(()=>je(()=>import("./bi.332.1.js"),["./bi.332.1.js","./main-174.js"],import.meta.url)),Ri=h.lazy(()=>je(()=>import("./bi.473.2.js"),["./bi.473.2.js","./main-174.js","./bi.873.9.js","./bi.784.10.js","./bi.755.11.js","./bi.410.14.js","./bi.181.12.js","./bi.404.13.js"],import.meta.url)),Ni=h.lazy(()=>je(()=>import("./bi.48.3.js").then(e=>e.n),["./bi.48.3.js","./main-174.js","./bi.404.13.js","./bi.89.470.js","./bi.873.9.js","./Note.css.536.1049.css","./bi.755.11.js","./bi.410.14.js","./Integrations.css.619.1048.css"],import.meta.url)),Pi=h.lazy(()=>je(()=>import("./bi.446.4.js"),["./bi.446.4.js","./main-174.js","./bi.410.14.js","./bi.181.12.js","./bi.404.13.js"],import.meta.url)),Li=h.lazy(()=>je(()=>import("./bi.119.5.js"),["./bi.119.5.js","./main-174.js","./bi.404.13.js"],import.meta.url)),Di=h.lazy(()=>je(()=>import("./bi.143.6.js"),["./bi.143.6.js","./main-174.js","./bi.89.470.js","./bi.873.9.js","./Note.css.536.1049.css","./bi.404.13.js"],import.meta.url)),Fi=h.lazy(()=>je(()=>import("./bi.104.7.js"),["./bi.104.7.js","./main-174.js"],import.meta.url));function Ii(){var o;const e={height:"82vh"},t=Cr(fr),{data:r,isLoading:n}=qn({payload:{},action:"flow/list",method:"get"}),[i,a]=h.useState(!n&&r.success&&((o=r==null?void 0:r.data)!=null&&o.integrations)?r.data.integrations:[]);h.useEffect(()=>{!n&&a(r.success?r.data.integrations:[])},[r]),i.length,h.useEffect(()=>{$i()},[]);const s=typeof t!="undefined"&&"isPro"in t?t.isPro:!1;return f.jsxs(h.Suspense,{fallback:f.jsx(ye,{className:"g-c",style:e}),children:[f.jsx(vn,{position:"bottom-right",containerStyle:{inset:"-25px 30px 20px -10px"},toastOptions:{duration:4e3,style:{background:"#000000",color:"#fff",bottom:40,padding:"15px 18px",boxShadow:"0 0px 7px rgb(0 0 0 / 30%), 0 3px 30px rgb(0 0 0 / 20%)"}}}),f.jsxs("div",{className:"Btcd-App",children:[f.jsx("div",{className:"nav-wrp",children:f.jsxs("div",{className:"flx",children:[f.jsx("div",{className:"logo flx",title:L("Integrations for Forms"),children:f.jsx("img",{src:gn,alt:"logo",style:{marginLeft:"8px",width:"170px"}})}),f.jsx("nav",{className:"top-nav ml-5"}),f.jsxs("div",{className:"flx flx-center",style:{marginLeft:"auto"},children:["$",!t.isPro&&f.jsx(Ti,{}),f.jsx(Oi,{})]})]})}),f.jsx("div",{className:"route-wrp",children:f.jsxs(Sr,{children:[f.jsx(be,{path:"/",element:f.jsx(h.Suspense,{fallback:f.jsx(En,{}),children:f.jsx(Ri,{integrations:i,setIntegrations:a,isLoading:n,isValidUser:s})})}),f.jsx(be,{path:"/app-settings",element:f.jsx(h.Suspense,{fallback:f.jsx(ye,{className:"g-c",style:e}),children:f.jsx(Pi,{})})}),f.jsx(be,{path:"/doc-support",element:f.jsx(h.Suspense,{fallback:f.jsx(ye,{className:"g-c",style:e}),children:f.jsx(Li,{})})}),f.jsx(be,{path:"/flow/new",element:f.jsx(h.Suspense,{fallback:f.jsx(ye,{className:"g-c",style:e}),children:f.jsx(Di,{})})}),f.jsx(be,{path:"/flow/action/*",element:f.jsx(h.Suspense,{fallback:f.jsx(ye,{className:"g-c",style:e}),children:f.jsx(Ni,{})})}),f.jsx(be,{path:"/auth-response/*",element:f.jsx(h.Suspense,{fallback:f.jsx(ye,{className:"g-c",style:e}),children:f.jsx(ki,{})})}),f.jsx(be,{path:"*",element:f.jsx(Fi,{})})]})})]})]})}function $i(){var r;const e=["bootstrap"],t=document.styleSheets;for(let n=0;n<t.length;n+=1)if(t[n].href!==null){const i=new RegExp(e.join(".*css|"),"gi");(r=t[n])!=null&&r.href.match(i)&&(t[n].disabled=!0)}}var Ki=Object.freeze({__proto__:null,default:Ii});export{Ui as $,Ki as A,_i as C,xt as M,Zi as P,En as T,L as _,Bi as a,Wi as b,Be as c,fr as d,zi as e,Gi as f,Ei as g,gr as h,mr as i,vi as j,H as n,ut as s,qn as u,Hi as z};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件