PageSourceSearch

https://cloud.agenty.com/assets/page-BYWZfzj3.js

js agenty.com collected 2026-09-24 12:15:18 UTC 429,498 bytes, 291 lines download raw bytes

1import{r as zo,aw as Xs,j as n,a5 as lr,a6 as dr,a7 as Be,a8 as Te,a9 as pr,aa as ce,ax as Fe,ay as He,az as We,aA as Ge,aB as ge,V as F,H as I,aC as mr,aD as fr,aE as hr,aF as yr,aG as Uo,_ as tt,$ as nt,a0 as rt,an as ot,ao as at,ap as Os,aq as st,ar as it,as as ut,aH as gr,U as k,aI as ws,M as xe,O as Oe,N as be,D as pt,q as mt,s as ft,u as je,aJ as ee,aK as Ns,ah as Ss,ai as ks,aj as Ds,ab as De,P as Me,aL as $e,Q as Ye,aM as Gt,aN as zt,aO as he,aP as ne,aQ as kn,aR as Dn,G as Re,a2 as Ms,W as U,aS as $o,aT as tn,a4 as Pt,Z as Et,aU as Yo,aV as Es,aW as Cs,aX as As,aY as Ps,aZ as _s,a_ as Wr,x as ct,R as Is,y as xt,z as bt,B as jt,am as Tt,F as Xt,a$ as Ls,b0 as Mn,b1 as En,b2 as Cn,b3 as An,b4 as Pn,at as yn,b5 as Rs,J as Zn,L as er,b6 as Bs,a3 as Fs}from"./ui-CfRm5DTA.js";import{r as T,a as oe,G as Vo,a0 as _t,a4 as Ue,ae as lt,af as qo,C as Ze,f as Ko,e as nn,ag as dt,v as Hs,X as Jo,a7 as ve,ah as Ws,L as Xe,ai as Qo,b as Zo,y as Gs,F as rn,aj as zs,ak as Us,s as $s,al as Ys,am as ea,an as Vs,g as qs,T as Ks,ao as Vt,$ as Mt,ap as Gr,aq as Js,ar as zr,_ as Ur,t as $r,as as Qs,K as Zs,Z as Yr,at as ei,au as ti,Y as Vr,a1 as ni,a2 as ri,av as oi,aw as ai,m as qr,ab as si,ax as ii,ay as ui,B as ci}from"./icons-CoWim_VM.js";import{g as ta,a as gn,f as on,d as na,L as an,e as Kr,u as li,b as di,h as pi,E as mi}from"./index-CO7lCi65.js";import{C as fi}from"./confirm-dialog-vrDTVcTM.js";import{F as ht}from"./index-g47xu1Bn.js";import{M as tr}from"./multi-select-Il5ucPYl.js";import{i as hi}from"./tiny-invariant-BaFNuDhB.js";import{C as yi}from"./countries-CYObCymx.js";import{C as gi}from"./country-flag-CE7vbXeN.js";import{a as K,A as Q}from"./api-TVx_5Nik.js";import{f as vi,g as xi}from"./utility-D9ML9P8b.js";import{J as vr}from"./job-status-Di13jtCF.js";import{u as ra,P as oa}from"./pagination-controls-BIvW4wzY.js";import{o as bi,s as _n,b as ji,a as Ti}from"./schemas-Z-bF3x6t.js";import{C as Xi}from"./copy-agent-dialog-DTl5gMZA.js";import{u as Oi,E as wi}from"./use-socket-Z38et2Rb.js";import{g as Ni}from"./colors-oV9wCiAl.js";import"./index-BiJdn4L4.js";function sn(){return sn=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)({}).hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},sn.apply(null,arguments)}const Si=[{name:"Click",value:"click"},{name:"Infinite scroll",value:"scroll"},{name:"Load more",value:"loadmore"},{name:"Script",value:"script"}],ki=[{name:"Desktop",value:"desktop"},{name:"Mobile",value:"mobile"},{name:"Tablet",value:"tablet"}],Di=[{name:"Selector",value:"selector"},{name:"Timeout",value:"timeout"},{name:"Script",value:"script"}],Mi=[{name:"Default (recommended)",value:"default"},{name:"Puppeteer",value:"puppeteer"},{name:"Playwright",value:"playwright"},{name:"Fetch",value:"fetch"}],Ei=[{label:"document",value:"document"},{label:"stylesheet",value:"stylesheet"},{label:"image",value:"image"},{label:"media",value:"media"},{label:"font",value:"font"},{label:"texttrack",value:"texttrack"},{label:"object",value:"object"},{label:"beacon",value:"beacon"},{label:"csp_report",value:"csp_report"},{label:"imageset",value:"imageset"},{label:"script",value:"script"}],Ci=[{name:"Default proxy (as per plan)",value:"default",description:"Standard proxy pool included in your plan",plan:["Free","Basic","Professional","Business","Enterprise"]},{name:"Professional proxy",value:"professional",description:"5,000 datacenter IPs for basic scraping",plan:["Professional","Business","Enterprise"]},{name:"Business proxy",value:"business",description:"25,000 geo-targeted IPs for location-specific scraping",plan:["Business","Enterprise"]},{name:"Enterprise proxy",value:"enterprise",description:"100,000 residential IPs for high-volume scraping",plan:["Enterprise"]},{name:"Unblocker proxy",value:"unblocker",description:"1+ million residential IPs with automatic retry",plan:["Enterprise"]}],Ai=[{name:"Navigate",value:"navigate"},{name:"Type",value:"type"},{name:"Click",value:"click"},{name:"JavaScript",value:"javascript"},{name:"Clear",value:"clear"},{name:"Wait",value:"wait"},{name:"Submit",value:"submit"},{name:"Screenshot",value:"screenshot"},{name:"Switch Frame",value:"frame"},{name:"Select",value:"select"},{name:"Scroll",value:"scroll"}],Pi=[{label:"load",value:"load"},{label:"domcontentloaded",value:"domcontentloaded"},{label:"networkidle2",value:"networkidle2"},{label:"networkidle0",value:"networkidle0"}];function fe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var _i=typeof Symbol=="function"&&Symbol.observable||"@@observable",Jr=_i,In=()=>Math.random().toString(36).substring(7).split("").join("."),Ii={INIT:`@@redux/INIT${In()}`,REPLACE:`@@redux/REPLACE${In()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${In()}`},Qr=Ii;function Li(t){if(typeof t!="object"||t===null)return!1;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r||Object.getPrototypeOf(t)===null}function aa(t,r,o){if(typeof t!="function")throw new Error(fe(2));if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(fe(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(fe(1));return o(aa)(t,r)}let s=t,i=r,c=new Map,l=c,a=0,d=!1;
1function e(){l===c&&(l=new Map,c.forEach((h,j)=>{l.set(j,h)}))}function f(){if(d)throw new Error(fe(3));return i}function p(h){if(typeof h!="function")throw new Error(fe(4));if(d)throw new Error(fe(5));let j=!0;e();const g=a++;return l.set(g,h),function(){if(j){if(d)throw new Error(fe(6));j=!1,e(),l.delete(g),c=null}}}function u(h){if(!Li(h))throw new Error(fe(7));if(typeof h.type>"u")throw new Error(fe(8));if(typeof h.type!="string")throw new Error(fe(17));if(d)throw new Error(fe(9));try{d=!0,i=s(i,h)}finally{d=!1}return(c=l).forEach(g=>{g()}),h}function m(h){if(typeof h!="function")throw new Error(fe(10));s=h,u({type:Qr.REPLACE})}function y(){const h=p;return{subscribe(j){if(typeof j!="object"||j===null)throw new Error(fe(11));function g(){const b=j;b.next&&b.next(f())}return g(),{unsubscribe:h(g)}},[Jr](){return this}}}return u({type:Qr.INIT}),{dispatch:u,subscribe:p,getState:f,replaceReducer:m,[Jr]:y}}function Zr(t,r){return function(...o){return r(t.apply(this,o))}}function eo(t,r){if(typeof t=="function")return Zr(t,r);
1if(typeof t!="object"||t===null)throw new Error(fe(16));const o={};for(const s in t){const i=t[s];typeof i=="function"&&(o[s]=Zr(i,r))}return o}function sa(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,o)=>(...s)=>r(o(...s)))}function Ri(...t){return r=>(o,s)=>{const i=r(o,s);let c=()=>{throw new Error(fe(15))};const l={getState:i.getState,dispatch:(d,...e)=>c(d,...e)},a=t.map(d=>d(l));return c=sa(...a)(i.dispatch),{...i,dispatch:c}}}var Bi={};/**
2 * @license React
3 * use-sync-external-store-with-selector.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Ut=T;function Fi(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Hi=typeof Object.is=="function"?Object.is:Fi,Wi=Ut.useSyncExternalStore,Gi=Ut.useRef,zi=Ut.useEffect,Ui=Ut.useMemo,$i=Ut.useDebugValue;Bi.useSyncExternalStoreWithSelector=function(t,r,o,s,i){var c=Gi(null);if(c.current===null){var l={hasValue:!1,value:null};c.current=l}else l=c.current;c=Ui(function(){function d(m){if(!e){if(e=!0,f=m,m=s(m),i!==void 0&&l.hasValue){var y=l.value;if(i(y,m))return p=y}return p=m}if(y=p,Hi(f,m))return y;var v=s(m);return i!==void 0&&i(y,v)?(f=m,y):(f=m,p=v)}var e=!1,f,p,u=o===void 0?null:o;return[function(){return d(r())},u===null?void 0:function(){return d(u())}]},[r,o,s,i]);var a=Wi(t,c[0],c[1]);return zi(function(){l.hasValue=!0,l.value=a},[a]),$i(a),a};var Yi=T.version.startsWith("19"),Vi=Symbol.for(Yi?"react.transitional.element":"react.element"),qi=Symbol.for("react.portal"),Ki=Symbol.for("react.fragment"),Ji=Symbol.for("react.strict_mode"),Qi=Symbol.for("react.profiler"),Zi=Symbol.for("react.consumer"),eu=Symbol.for("react.context"),ia=Symbol.for("react.forward_ref"),tu=Symbol.for("react.suspense"),nu=Symbol.for("react.suspense_list"),xr=Symbol.for("react.memo"),ru=Symbol.for("react.lazy"),ou=ia,au=xr;function su(t){if(typeof t=="object"&&t!==null){const{$$typeof:r}=t;switch(r){case Vi:switch(t=t.type,t){case Ki:case Qi:case Ji:case tu:case nu:return t;default:switch(t=t&&t.$$typeof,t){case eu:case ia:case ru:case xr:return t;case Zi:return t;default:return r}}case qi:return r}}}function iu(t){return su(t)===xr}function uu(t,r,o,s,{areStatesEqual:i,areOwnPropsEqual:c,areStatePropsEqual:l}){let a=!1,d,e,f,p,u;function m(g,x){return d=g,e=x,f=t(d,e),p=r(s,e),u=o(f,p,e),a=!0,u}function y(){return f=t(d,e),r.dependsOnOwnProps&&(p=r(s,e)),u=o(f,p,e),u}function v(){return t.dependsOnOwnProps&&(f=t(d,e)),r.dependsOnOwnProps&&(p=r(s,e)),u=o(f,p,e),u}function h(){const g=t(d,e),x=!l(g,f);return f=g,x&&(u=o(f,p,e)),u}function j(g,x){const b=!c(x,e),O=!i(g,d,x,e);return d=g,e=x,b&&O?y():b?v():O?h():u}return function(x,b){return a?j(x,b):m(x,b)}}function cu(t,{initMapStateToProps:r,initMapDispatchToProps:o,initMergeProps:s,...i}){const c=r(t,i),l=o(t,i),a=s(t,i);return uu(c,l,a,t,i)}function lu(t,r){const o={};for(const s in t){const i=t[s];typeof i=="function"&&(o[s]=(...c)=>r(i(...c)))}return o}function nr(t){return function(o){const s=t(o);function i(){return s}return i.dependsOnOwnProps=!1,i}}function to(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function ua(t,r){return function(s,{displayName:i}){const c=function(a,d){return c.dependsOnOwnProps?c.mapToProps(a,d):c.mapToProps(a,void 0)};return c.dependsOnOwnProps=!0,c.mapToProps=function(a,d){c.mapToProps=t,c.dependsOnOwnProps=to(t);let e=c(a,d);return typeof e=="function"&&(c.mapToProps=e,c.dependsOnOwnProps=to(e),e=c(a,d)),e},c}}function br(t,r){return(o,s)=>{throw new Error(`Invalid value of type ${typeof t} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function du(t){return t&&typeof t=="object"?nr(r=>lu(t,r)):t?typeof t=="function"?ua(t):br(t,"mapDispatchToProps"):nr(r=>({dispatch:r}))}function pu(t){return t?typeof t=="function"?ua(t):br(t,"mapStateToProps"):nr(()=>({}))}function mu(t,r,o){return{...o,...t,...r}}function fu(t){return function(o,{displayName:s,areMergedPropsEqual:i}){let c=!1,l;return function(d,e,f){const p=t(d,e,f);return c?i(p,l)||(l=p):(c=!0,l=p),l}}}function hu(t){return t?typeof t=="function"?fu(t):br(t,"mergeProps"):()=>mu}function yu(t){t()}function gu(){let t=null,r=null;return{clear(){t=null,r=null},notify(){yu(()=>{let o=t;for(;o;)o.callback(),o=o.next})},get(){const o=[];let s=t;for(;s;)o.push(s),s=s.next;return o},subscribe(o){let s=!0;const i=r={callback:o,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){!s||t===null||(s=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var no={notify(){},get:()=>[]};function ca(t,r){let o,s=no,i=0,c=!1;function l(v){f();const h=s.subscribe(v);let j=!1;return()=>{j||(j=!0,h(),p())}}function a(){s.notify()}function d(){y.onStateChange&&y.onStateChange()}function e(){return c}function f(){i++,o||(o=r?r.addNestedSub(d):t.subscribe(d),s=gu())}function p(){i--,o&&i===0&&(o(),o=void 0,s.clear(),s=no)}function u(){c||(c=!0,f())}function m(){c&&(c=!1,p())}const y={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:d,isSubscribed:e,trySubscribe:u,tryUnsubscribe:m,getListeners:()=>s};return y}var vu=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xu=vu(),bu=()=>typeof navigator<"u"&&navigator.product==="ReactNative",ju=bu(),Tu=()=>xu||ju?T.useLayoutEffect:T.useEffect,un=Tu();function ro(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function Ln(t,r){if(ro(t,r))return!0;
9if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;const o=Object.keys(t),s=Object.keys(r);if(o.length!==s.length)return!1;for(let i=0;i<o.length;i++)if(!Object.prototype.hasOwnProperty.call(r,o[i])||!ro(t[o[i]],r[o[i]]))return!1;return!0}var Xu={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ou={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wu={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},la={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Nu={[ou]:wu,[au]:la};function oo(t){return iu(t)?la:Nu[t.$$typeof]||Xu}var Su=Object.defineProperty,ku=Object.getOwnPropertyNames,ao=Object.getOwnPropertySymbols,Du=Object.getOwnPropertyDescriptor,Mu=Object.getPrototypeOf,so=Object.prototype;function rr(t,r){if(typeof r!="string"){if(so){const c=Mu(r);c&&c!==so&&rr(t,c)}let o=ku(r);ao&&(o=o.concat(ao(r)));const s=oo(t),i=oo(r);for(let c=0;c<o.length;++c){const l=o[c];if(!Ou[l]&&!(i&&i[l])&&!(s&&s[l])){const a=Du(r,l);try{Su(t,l,a)}catch{}}}}return t}var Rn=Symbol.for("react-redux-context"),Bn=typeof globalThis<"u"?globalThis:{};function Eu(){if(!T.createContext)return{};const t=Bn[Rn]??(Bn[Rn]=new Map);let r=t.get(T.createContext);return r||(r=T.createContext(null),t.set(T.createContext,r)),r}var da=Eu(),Cu=[null,null];function Au(t,r,o){un(()=>t(...r),o)}function Pu(t,r,o,s,i,c){t.current=s,o.current=!1,i.current&&(i.current=null,c())}function _u(t,r,o,s,i,c,l,a,d,e,f){if(!t)return()=>{};let p=!1,u=null;const m=()=>{if(p||!a.current)return;const v=r.getState();let h,j;try{h=s(v,i.current)}catch(g){j=g,u=g}j||(u=null),h===c.current?l.current||e():(c.current=h,d.current=h,l.current=!0,f())};return o.onStateChange=m,o.trySubscribe(),m(),()=>{if(p=!0,o.tryUnsubscribe(),o.onStateChange=null,u)throw u}}function Iu(t,r){return t===r}function Lu(t,r,o,{pure:s,areStatesEqual:i=Iu,areOwnPropsEqual:c=Ln,areStatePropsEqual:l=Ln,areMergedPropsEqual:a=Ln,forwardRef:d=!1,context:e=da}={}){const f=e,p=pu(t),u=du(r),m=hu(o),y=!!t;return h=>{const j=h.displayName||h.name||"Component",g=`Connect(${j})`,x={shouldHandleStateChanges:y,displayName:g,wrappedComponentName:j,WrappedComponent:h,initMapStateToProps:p,initMapDispatchToProps:u,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:l,areOwnPropsEqual:c,areMergedPropsEqual:a};function b(S){const[_,M,R]=T.useMemo(()=>{const{reactReduxForwardedRef:te,...P}=S;return[S.context,te,P]},[S]),H=T.useMemo(()=>{let te=f;return _!=null&&_.Consumer,te},[_,f]),N=T.useContext(H),L=!!S.store&&!!S.store.getState&&!!S.store.dispatch,G=!!N&&!!N.store,Z=L?S.store:N.store,se=G?N.getServerState:Z.getState,re=T.useMemo(()=>cu(Z.dispatch,x),[Z]),[X,A]=T.useMemo(()=>{if(!y)return Cu;const te=ca(Z,L?void 0:N.subscription),P=te.notifyNestedSubs.bind(te);return[te,P]},[Z,L,N]),Y=T.useMemo(()=>L?N:{...N,subscription:X},[L,N,X]),q=T.useRef(void 0),ae=T.useRef(R),de=T.useRef(void 0),Ae=T.useRef(!1),Pe=T.useRef(!1),Le=T.useRef(void 0);un(()=>(Pe.current=!0,()=>{Pe.current=!1}),[]);const D=T.useMemo(()=>()=>de.current&&R===ae.current?de.current:re(Z.getState(),R),[Z,R]),C=T.useMemo(()=>P=>X?_u(y,Z,X,re,ae,q,Ae,Pe,de,A,P):()=>{},[X]);Au(Pu,[ae,q,Ae,R,de,A]);let z;try{z=T.useSyncExternalStore(C,D,se?()=>re(se(),R):D)}catch(te){throw Le.current&&(te.message+=`
10The error may be correlated with this previous error:
11${Le.current.stack}
12
13`),te}un(()=>{Le.current=void 0,de.current=void 0,q.current=z});const W=T.useMemo(()=>T.createElement(h,{...z,ref:M}),[M,h,z]);return T.useMemo(()=>y?T.createElement(H.Provider,{value:Y},W):W,[H,W,Y])}const w=T.memo(b);if(w.WrappedComponent=h,w.displayName=b.displayName=g,d){const _=T.forwardRef(function(R,H){return T.createElement(w,{...R,reactReduxForwardedRef:H})});return _.displayName=g,_.WrappedComponent=h,rr(_,h)}return rr(w,h)}}var pa=Lu;function Ru(t){const{children:r,context:o,serverState:s,store:i}=t,c=T.useMemo(()=>{const d=ca(i);return{store:i,subscription:d,getServerState:s?()=>s:void 0}},[i,s]),l=T.useMemo(()=>i.getState(),[i]);un(()=>{const{subscription:d}=c;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),l!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[c,l]);const a=o||da;return T.createElement(a.Provider,{value:c},r)}var Bu=Ru,Ie=function(r){var o=r.top,s=r.right,i=r.bottom,c=r.left,l=s-c,a=i-o,d={top:o,right:s,bottom:i,left:c,width:l,height:a,x:c,y:o,center:{x:(s+c)/2,y:(i+o)/2}};return d}
13,jr=function(r,o){return{top:r.top-o.top,left:r.left-o.left,bottom:r.bottom+o.bottom,right:r.right+o.right}},io=function(r,o){return{top:r.top+o.top,left:r.left+o.left,bottom:r.bottom-o.bottom,right:r.right-o.right}},Fu=function(r,o){return{top:r.top+o.y,left:r.left+o.x,bottom:r.bottom+o.y,right:r.right+o.x}},Fn={top:0,right:0,bottom:0,left:0},Tr=function(r){var o=r.borderBox,s=r.margin,i=s===void 0?Fn:s,c=r.border,l=c===void 0?Fn:c,a=r.padding,d=a===void 0?Fn:a,e=Ie(jr(o,i)),f=Ie(io(o,l)),p=Ie(io(f,d));return{marginBox:e,borderBox:Ie(o),paddingBox:f,contentBox:p,margin:i,border:l,padding:d}},ke=function(r){var o=r.slice(0,-2),s=r.slice(-2);if(s!=="px")return 0;var i=Number(o);return isNaN(i)&&hi(),i},Hu=function(){return{x:window.pageXOffset,y:window.pageYOffset}},cn=function(r,o){var s=r.borderBox,i=r.border,c=r.margin,l=r.padding,a=Fu(s,o);return Tr({borderBox:a,border:i,margin:c,padding:l})},ln=function(r,o){return o===void 0&&(o=Hu()),cn(r,o)},ma=function(r,o){var s={top:ke(o.marginTop),right:ke(o.marginRight),bottom:ke(o.marginBottom),left:ke(o.marginLeft)},i={top:ke(o.paddingTop),right:ke(o.paddingRight),bottom:ke(o.paddingBottom),left:ke(o.paddingLeft)},c={top:ke(o.borderTopWidth),right:ke(o.borderRightWidth),bottom:ke(o.borderBottomWidth),left:ke(o.borderLeftWidth)};return Tr({borderBox:r,margin:s,padding:i,border:c})},fa=function(r){var o=r.getBoundingClientRect(),s=window.getComputedStyle(r);return ma(o,s)},It=function(r){var o=[],s=null,i=function(){for(var l=arguments.length,a=new Array(l),d=0;d<l;d++)a[d]=arguments[d];o=a,!s&&(s=requestAnimationFrame(function(){s=null,r.apply(void 0,o)}))};return i.cancel=function(){s&&(cancelAnimationFrame(s),s=null)},i};function ha(t,r){}ha.bind(null,"warn");ha.bind(null,"error");function Ve(){}function Wu(t,r){return{...t,...r}}function Ee(t,r,o){const s=r.map(i=>{const c=Wu(o,i.options);return t.addEventListener(i.eventName,i.fn,c),function(){t.removeEventListener(i.eventName,i.fn,c)}});return function(){s.forEach(c=>{c()})}}const Gu="Invariant failed";class dn extends Error{}dn.prototype.toString=function(){return this.message};function E(t,r){throw new dn(Gu)}class zu extends oe.Component{constructor(...r){super(...r),this.callbacks=null,this.unbind=Ve,this.onWindowError=o=>{const s=this.getCallbacks();s.isDragging()&&s.tryAbort(),o.error instanceof dn&&o.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=o=>{this.callbacks=o}}componentDidMount(){this.unbind=Ee(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(r){if(r instanceof dn){this.setState({});return}throw r}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Uu=`
14  Press space bar to start a drag.
15  When dragging you can use the arrow keys to move the item around and escape to cancel.
16  Some screen readers may require you to be in focus mode or to use your pass through key
17`,pn=t=>t+1,$u=t=>`
18  You have lifted an item in position ${pn(t.source.index)}
19`,ya=(t,r)=>{const o=t.droppableId===r.droppableId,s=pn(t.index),i=pn(r.index);return o?`
20      You have moved the item from position ${s}
21      to position ${i}
22    `:`
23    You have moved the item from position ${s}
24    in list ${t.droppableId}
25    to list ${r.droppableId}
26    in position ${i}
27  `},ga=(t,r,o)=>r.droppableId===o.droppableId?`
28      The item ${t}
29      has been combined with ${o.draggableId}`:`
30      The item ${t}
31      in list ${r.droppableId}
32      has been combined with ${o.draggableId}
33      in list ${o.droppableId}
34    `,Yu=t=>{const r=t.destination;if(r)return ya(t.source,r);const o=t.combine;return o?ga(t.draggableId,t.source,o):"You are over an area that cannot be dropped on"},uo=t=>`
35  The item has returned to its starting position
36  of ${pn(t.index)}
37`,Vu=t=>{if(t.reason==="CANCEL")return`
38      Movement cancelled.
39      ${uo(t.source)}
40    `;const r=t.destination,o=t.combine;return r?`
41      You have dropped the item.
42      ${ya(t.source,r)}
43    `:o?`
44      You have dropped the item.
45      ${ga(t.draggableId,t.source,o)}
46    `:`
47    The item has been dropped while not over a drop area.
48    ${uo(t.source)}
49  `},en={dragHandleUsageInstructions:Uu,onDragStart:$u,onDragUpdate:Yu,onDragEnd:Vu};function qu(t,r){return!!(t===r||Number.isNaN(t)&&Number.isNaN(r))}function va(t,r){if(t.length!==r.length)return!1;for(let o=0;o<t.length;o++)if(!qu(t[o],r[o]))return!1;return!0}function V(t,r){const o=T.useState(()=>({inputs:r,result:t()}
49))[0],s=T.useRef(!0),i=T.useRef(o),l=s.current||!!(r&&i.current.inputs&&va(r,i.current.inputs))?i.current:{inputs:r,result:t()};return T.useEffect(()=>{s.current=!1,i.current=l},[l]),l.result}function B(t,r){return V(()=>t,r)}const ue={x:0,y:0},le=(t,r)=>({x:t.x+r.x,y:t.y+r.y}),we=(t,r)=>({x:t.x-r.x,y:t.y-r.y}),qe=(t,r)=>t.x===r.x&&t.y===r.y,Ot=t=>({x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}),et=(t,r,o=0)=>t==="x"?{x:r,y:o}:{x:o,y:r},Lt=(t,r)=>Math.sqrt((r.x-t.x)**2+(r.y-t.y)**2),co=(t,r)=>Math.min(...r.map(o=>Lt(t,o))),xa=t=>r=>({x:t(r.x),y:t(r.y)});var Ku=(t,r)=>{const o=Ie({top:Math.max(r.top,t.top),right:Math.min(r.right,t.right),bottom:Math.min(r.bottom,t.bottom),left:Math.max(r.left,t.left)});return o.width<=0||o.height<=0?null:o};const $t=(t,r)=>({top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}),lo=t=>[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}],Ju={top:0,right:0,bottom:0,left:0},Qu=(t,r)=>r?$t(t,r.scroll.diff.displacement):t,Zu=(t,r,o)=>o&&o.increasedBy?{...t,[r.end]:t[r.end]+o.increasedBy[r.line]}:t,ec=(t,r)=>r&&r.shouldClipSubject?Ku(r.pageMarginBox,t):Ie(t);var yt=({page:t,withPlaceholder:r,axis:o,frame:s})=>{const i=Qu(t.marginBox,s),c=Zu(i,o,r),l=ec(c,s);return{page:t,withPlaceholder:r,active:l}},Xr=(t,r)=>{t.frame||E();const o=t.frame,s=we(r,o.scroll.initial),i=Ot(s),c={...o,scroll:{initial:o.scroll.initial,current:r,diff:{value:s,displacement:i},max:o.scroll.max}},l=yt({page:t.subject.page,withPlaceholder:t.subject.withPlaceholder,axis:t.axis,frame:c});return{...t,frame:c,subject:l}};function ie(t,r=va){let o=null;function s(...i){if(o&&o.lastThis===this&&r(i,o.lastArgs))return o.lastResult;const c=t.apply(this,i);return o={lastResult:c,lastArgs:i,lastThis:this},c}return s.clear=function(){o=null},s}const ba=ie(t=>t.reduce((r,o)=>(r[o.descriptor.id]=o,r),{})),ja=ie(t=>t.reduce((r,o)=>(r[o.descriptor.id]=o,r),{})),vn=ie(t=>Object.values(t)),tc=ie(t=>Object.values(t));var wt=ie((t,r)=>tc(r).filter(s=>t===s.descriptor.droppableId).sort((s,i)=>s.descriptor.index-i.descriptor.index));function Or(t){return t.at&&t.at.type==="REORDER"?t.at.destination:null}function xn(t){return t.at&&t.at.type==="COMBINE"?t.at.combine:null}var bn=ie((t,r)=>r.filter(o=>o.descriptor.id!==t.descriptor.id)),nc=({isMovingForward:t,draggable:r,destination:o,insideDestination:s,previousImpact:i})=>{if(!o.isCombineEnabled||!Or(i))return null;function l(m){const y={type:"COMBINE",combine:{draggableId:m,droppableId:o.descriptor.id}};return{...i,at:y}}const a=i.displaced.all,d=a.length?a[0]:null;if(t)return d?l(d):null;const e=bn(r,s);if(!d){if(!e.length)return null;const m=e[e.length-1];return l(m.descriptor.id)}const f=e.findIndex(m=>m.descriptor.id===d);f===-1&&E();const p=f-1;if(p<0)return null;const u=e[p];return l(u.descriptor.id)},Nt=(t,r)=>t.descriptor.droppableId===r.descriptor.id;const Ta={point:ue,value:0},Rt={invisible:{},visible:{},all:[]},rc={displaced:Rt,displacedBy:Ta,at:null};var Ce=(t,r)=>o=>t<=o&&o<=r,Xa=t=>{const r=Ce(t.top,t.bottom),o=Ce(t.left,t.right);return s=>{if(r(s.top)&&r(s.bottom)&&o(s.left)&&o(s.right))return!0;const c=r(s.top)||r(s.bottom),l=o(s.left)||o(s.right);if(c&&l)return!0;const d=s.top<t.top&&s.bottom>t.bottom,e=s.left<t.left&&s.right>t.right;return d&&e?!0:d&&l||e&&c}},oc=t=>{const r=Ce(t.top,t.bottom),o=Ce(t.left,t.right);return s=>r(s.top)&&r(s.bottom)&&o(s.left)&&o(s.right)};const wr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Oa={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var ac=t=>r=>{const o=Ce(r.top,r.bottom),s=Ce(r.left,r.right);return i=>t===wr?o(i.top)&&o(i.bottom):s(i.left)&&s(i.right)};const sc=(t,r)=>{const o=r.frame?r.frame.scroll.diff.displacement:ue;return $t(t,o)},ic=(t,r,o)=>r.subject.active?o(r.subject.active)(t):!1,uc=(t,r,o)=>o(r)(t),Nr=({target:t,destination:r,viewport:o,withDroppableDisplacement:s,isVisibleThroughFrameFn:i})=>{const c=s?sc(t,r):t;return ic(c,r,i)&&uc(c,o,i)},cc=t=>Nr({...t,isVisibleThroughFrameFn:Xa}),wa=t=>Nr({...t,isVisibleThroughFrameFn:oc}),lc=t=>Nr({...t,isVisibleThroughFrameFn:ac(t.destination.axis)}),dc=(t,r,o)=>{if(typeof o=="boolean")return o;if(!r)return!0;
49const{invisible:s,visible:i}=r;if(s[t])return!1;const c=i[t];return c?c.shouldAnimate:!0};function pc(t,r){const o=t.page.marginBox,s={top:r.point.y,right:0,bottom:0,left:r.point.x};return Ie(jr(o,s))}function Bt({afterDragging:t,destination:r,displacedBy:o,viewport:s,forceShouldAnimate:i,last:c}){return t.reduce(function(a,d){const e=pc(d,o),f=d.descriptor.id;if(a.all.push(f),!cc({target:e,destination:r,viewport:s,withDroppableDisplacement:!0}))return a.invisible[d.descriptor.id]=!0,a;const u=dc(f,c,i),m={draggableId:f,shouldAnimate:u};return a.visible[f]=m,a},{all:[],visible:{},invisible:{}})}function mc(t,r){if(!t.length)return 0;const o=t[t.length-1].descriptor.index;return r.inHomeList?o:o+1}function po({insideDestination:t,inHomeList:r,displacedBy:o,destination:s}){const i=mc(t,{inHomeList:r});return{displaced:Rt,displacedBy:o,at:{type:"REORDER",destination:{droppableId:s.descriptor.id,index:i}}}}function mn({draggable:t,insideDestination:r,destination:o,viewport:s,displacedBy:i,last:c,index:l,forceShouldAnimate:a}){const d=Nt(t,o);if(l==null)return po({insideDestination:r,inHomeList:d,displacedBy:i,destination:o});const e=r.find(y=>y.descriptor.index===l);if(!e)return po({insideDestination:r,inHomeList:d,displacedBy:i,destination:o});const f=bn(t,r),p=r.indexOf(e),u=f.slice(p);return{displaced:Bt({afterDragging:u,destination:o,displacedBy:i,last:c,viewport:s.frame,forceShouldAnimate:a}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:l}}}}function Ke(t,r){return!!r.effected[t]}var fc=({isMovingForward:t,destination:r,draggables:o,combine:s,afterCritical:i})=>{if(!r.isCombineEnabled)return null;const c=s.draggableId,a=o[c].descriptor.index;return Ke(c,i)?t?a:a-1:t?a+1:a},hc=({isMovingForward:t,isInHomeList:r,insideDestination:o,location:s})=>{if(!o.length)return null;const i=s.index,c=t?i+1:i-1,l=o[0].descriptor.index,a=o[o.length-1].descriptor.index,d=r?a:a+1;return c<l||c>d?null:c},yc=({isMovingForward:t,isInHomeList:r,draggable:o,draggables:s,destination:i,insideDestination:c,previousImpact:l,viewport:a,afterCritical:d})=>{const e=l.at;if(e||E(),e.type==="REORDER"){const p=hc({isMovingForward:t,isInHomeList:r,location:e.destination,insideDestination:c});return p==null?null:mn({draggable:o,insideDestination:c,destination:i,viewport:a,last:l.displaced,displacedBy:l.displacedBy,index:p})}const f=fc({isMovingForward:t,destination:i,displaced:l.displaced,draggables:s,combine:e.combine,afterCritical:d});return f==null?null:mn({draggable:o,insideDestination:c,destination:i,viewport:a,last:l.displaced,displacedBy:l.displacedBy,index:f})},gc=({displaced:t,afterCritical:r,combineWith:o,displacedBy:s})=>{const i=!!(t.visible[o]||t.invisible[o]);return Ke(o,r)?i?ue:Ot(s.point):i?s.point:ue},vc=({afterCritical:t,impact:r,draggables:o})=>{const s=xn(r);s||E();const i=s.draggableId,c=o[i].page.borderBox.center,l=gc({displaced:r.displaced,afterCritical:t,combineWith:i,displacedBy:r.displacedBy});return le(c,l)};const Na=(t,r)=>r.margin[t.start]+r.borderBox[t.size]/2,xc=(t,r)=>r.margin[t.end]+r.borderBox[t.size]/2,Sr=(t,r,o)=>r[t.crossAxisStart]+o.margin[t.crossAxisStart]+o.borderBox[t.crossAxisSize]/2,mo=({axis:t,moveRelativeTo:r,isMoving:o})=>et(t.line,r.marginBox[t.end]+Na(t,o),Sr(t,r.marginBox,o)),fo=({axis:t,moveRelativeTo:r,isMoving:o})=>et(t.line,r.marginBox[t.start]-xc(t,o),Sr(t,r.marginBox,o)),bc=({axis:t,moveInto:r,isMoving:o})=>et(t.line,r.contentBox[t.start]+Na(t,o),Sr(t,r.contentBox,o));var jc=({impact:t,draggable:r,draggables:o,droppable:s,afterCritical:i})=>{const c=wt(s.descriptor.id,o),l=r.page,a=s.axis;if(!c.length)return bc({axis:a,moveInto:s.page,isMoving:l});const{displaced:d,displacedBy:e}=t,f=d.all[0];if(f){const u=o[f];if(Ke(f,i))return fo({axis:a,moveRelativeTo:u.page,isMoving:l});const m=cn(u.page,e.point);return fo({axis:a,moveRelativeTo:m,isMoving:l})}const p=c[c.length-1];if(p.descriptor.id===r.descriptor.id)return l.borderBox.center;if(Ke(p.descriptor.id,i)){const u=cn(p.page,Ot(i.displacedBy.point));return mo({axis:a,moveRelativeTo:u,isMoving:l})}return mo({axis:a,moveRelativeTo:p.page,isMoving:l})},or=(t,r)=>{const o=t.frame;return o?le(r,o.scroll.diff.displacement):r};const Tc=({impact:t,draggable:r,droppable:o,draggables:s,afterCritical:i})=>{const c=r.page.borderBox.center,l=t.at;return!o||!l?c:l.type==="REORDER"?jc({impact:t,draggable:r,draggables:s,droppable:o,afterCritical:i}):vc({impact:t,draggables:s,afterCritical:i})};var jn=t=>{const r=Tc(t),o=t.droppable;return o?or(o,r):r},Sa=(t,r)=>{const o=we(r,t.scroll.initial),s=Ot(o);return{frame:Ie({top:r.y,bottom:r.y+t.frame.height,left:r.x,right:r.x+t.frame.width}),scroll:{initial:t.scroll.initial,max:t.scroll.max,current:r,diff:{value:o,displacement:s}}}};function ho(t,r){return t.map(o=>r[o])}function Xc(t,r){for(let o=0;o<r.length;o++){const s=r[o].visible[t];if(s)return s}return null}var Oc=({impact:t,viewport:r,destination:o,draggables:s,maxScrollChange:i})=>{const c=Sa(r,le(r.scroll.current,i)),l=o.frame?Xr(o,le(o.frame.scroll.current,i)):o,a=t.displaced,d=Bt({afterDragging:ho(a.all,s),destination:o,displacedBy:t.displacedBy,viewport:c.frame,last:a,forceShouldAnimate:!1}),e=Bt({afterDragging:ho(a.all,s),destination:l,displacedBy:t.displacedBy,viewport:r.frame,last:a,forceShouldAnimate:!1}),f={},p={},u=[a,d,e];return a.all.forEach(y=>{const v=Xc(y,u);
49if(v){p[y]=v;return}f[y]=!0}),{...t,displaced:{all:a.all,invisible:f,visible:p}}},wc=(t,r)=>le(t.scroll.diff.displacement,r),kr=({pageBorderBoxCenter:t,draggable:r,viewport:o})=>{const s=wc(o,t),i=we(s,r.page.borderBox.center);return le(r.client.borderBox.center,i)},ka=({draggable:t,destination:r,newPageBorderBoxCenter:o,viewport:s,withDroppableDisplacement:i,onlyOnMainAxis:c=!1})=>{const l=we(o,t.page.borderBox.center),d={target:$t(t.page.borderBox,l),destination:r,withDroppableDisplacement:i,viewport:s};return c?lc(d):wa(d)},Nc=({isMovingForward:t,draggable:r,destination:o,draggables:s,previousImpact:i,viewport:c,previousPageBorderBoxCenter:l,previousClientSelection:a,afterCritical:d})=>{if(!o.isEnabled)return null;const e=wt(o.descriptor.id,s),f=Nt(r,o),p=nc({isMovingForward:t,draggable:r,destination:o,insideDestination:e,previousImpact:i})||yc({isMovingForward:t,isInHomeList:f,draggable:r,draggables:s,destination:o,insideDestination:e,previousImpact:i,viewport:c,afterCritical:d});if(!p)return null;const u=jn({impact:p,draggable:r,droppable:o,draggables:s,afterCritical:d});if(ka({draggable:r,destination:o,newPageBorderBoxCenter:u,viewport:c.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:kr({pageBorderBoxCenter:u,draggable:r,viewport:c}),impact:p,scrollJumpRequest:null};const y=we(u,l),v=Oc({impact:p,viewport:c,destination:o,draggables:s,maxScrollChange:y});return{clientSelection:a,impact:v,scrollJumpRequest:y}};const me=t=>{const r=t.subject.active;return r||E(),r};var Sc=({isMovingForward:t,pageBorderBoxCenter:r,source:o,droppables:s,viewport:i})=>{const c=o.subject.active;if(!c)return null;const l=o.axis,a=Ce(c[l.start],c[l.end]),d=vn(s).filter(f=>f!==o).filter(f=>f.isEnabled).filter(f=>!!f.subject.active).filter(f=>Xa(i.frame)(me(f))).filter(f=>{const p=me(f);return t?c[l.crossAxisEnd]<p[l.crossAxisEnd]:p[l.crossAxisStart]<c[l.crossAxisStart]}).filter(f=>{const p=me(f),u=Ce(p[l.start],p[l.end]);return a(p[l.start])||a(p[l.end])||u(c[l.start])||u(c[l.end])}).sort((f,p)=>{const u=me(f)[l.crossAxisStart],m=me(p)[l.crossAxisStart];return t?u-m:m-u}).filter((f,p,u)=>me(f)[l.crossAxisStart]===me(u[0])[l.crossAxisStart]);if(!d.length)return null;if(d.length===1)return d[0];const e=d.filter(f=>Ce(me(f)[l.start],me(f)[l.end])(r[l.line]));return e.length===1?e[0]:e.length>1?e.sort((f,p)=>me(f)[l.start]-me(p)[l.start])[0]:d.sort((f,p)=>{const u=co(r,lo(me(f))),m=co(r,lo(me(p)));return u!==m?u-m:me(f)[l.start]-me(p)[l.start]})[0]};const yo=(t,r)=>{const o=t.page.borderBox.center;return Ke(t.descriptor.id,r)?we(o,r.displacedBy.point):o},kc=(t,r)=>{const o=t.page.borderBox;return Ke(t.descriptor.id,r)?$t(o,Ot(r.displacedBy.point)):o};var Dc=({pageBorderBoxCenter:t,viewport:r,destination:o,insideDestination:s,afterCritical:i})=>s.filter(l=>wa({target:kc(l,i),destination:o,viewport:r.frame,withDroppableDisplacement:!0})).sort((l,a)=>{const d=Lt(t,or(o,yo(l,i))),e=Lt(t,or(o,yo(a,i)));return d<e?-1:e<d?1:l.descriptor.index-a.descriptor.index})[0]||null,Yt=ie(function(r,o){const s=o[r.line];return{value:s,point:et(r.line,s)}});const Mc=(t,r,o)=>{const s=t.axis;if(t.descriptor.mode==="virtual")return et(s.line,r[s.line]);const i=t.subject.page.contentBox[s.size],d=wt(t.descriptor.id,o).reduce((e,f)=>e+f.client.marginBox[s.size],0)+r[s.line]-i;return d<=0?null:et(s.line,d)},Da=(t,r)=>({...t,scroll:{...t.scroll,max:r}}),Ma=(t,r,o)=>{const s=t.frame;Nt(r,t)&&E(),t.subject.withPlaceholder&&E();const i=Yt(t.axis,r.displaceBy).point,c=Mc(t,i,o),l={placeholderSize:i,increasedBy:c,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!s){const f=yt({page:t.subject.page,withPlaceholder:l,axis:t.axis,frame:t.frame});return{...t,subject:f}}const a=c?le(s.scroll.max,c):s.scroll.max,d=Da(s,a),e=yt({page:t.subject.page,withPlaceholder:l,axis:t.axis,frame:d});return{...t,subject:e,frame:d}},Ec=t=>{const r=t.subject.withPlaceholder;r||E();const o=t.frame;if(!o){const l=yt({page:t.subject.page,axis:t.axis,frame:null,withPlaceholder:null});return{...t,subject:l}}const s=r.oldFrameMaxScroll;s||E();const i=Da(o,s),c=yt({page:t.subject.page,axis:t.axis,frame:i,withPlaceholder:null});return{...t,subject:c,frame:i}};
49var Cc=({previousPageBorderBoxCenter:t,moveRelativeTo:r,insideDestination:o,draggable:s,draggables:i,destination:c,viewport:l,afterCritical:a})=>{if(!r){if(o.length)return null;const p={displaced:Rt,displacedBy:Ta,at:{type:"REORDER",destination:{droppableId:c.descriptor.id,index:0}}},u=jn({impact:p,draggable:s,droppable:c,draggables:i,afterCritical:a}),m=Nt(s,c)?c:Ma(c,s,i);return ka({draggable:s,destination:m,newPageBorderBoxCenter:u,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?p:null}const d=t[c.axis.line]<=r.page.borderBox.center[c.axis.line],e=(()=>{const p=r.descriptor.index;return r.descriptor.id===s.descriptor.id||d?p:p+1})(),f=Yt(c.axis,s.displaceBy);return mn({draggable:s,insideDestination:o,destination:c,viewport:l,displacedBy:f,last:Rt,index:e})},Ac=({isMovingForward:t,previousPageBorderBoxCenter:r,draggable:o,isOver:s,draggables:i,droppables:c,viewport:l,afterCritical:a})=>{const d=Sc({isMovingForward:t,pageBorderBoxCenter:r,source:s,droppables:c,viewport:l});if(!d)return null;const e=wt(d.descriptor.id,i),f=Dc({pageBorderBoxCenter:r,viewport:l,destination:d,insideDestination:e,afterCritical:a}),p=Cc({previousPageBorderBoxCenter:r,destination:d,draggable:o,draggables:i,moveRelativeTo:f,insideDestination:e,viewport:l,afterCritical:a});if(!p)return null;const u=jn({impact:p,draggable:o,droppable:d,draggables:i,afterCritical:a});return{clientSelection:kr({pageBorderBoxCenter:u,draggable:o,viewport:l}),impact:p,scrollJumpRequest:null}},Ne=t=>{const r=t.at;return r?r.type==="REORDER"?r.destination.droppableId:r.combine.droppableId:null};const Pc=(t,r)=>{const o=Ne(t);return o?r[o]:null};var _c=({state:t,type:r})=>{const o=Pc(t.impact,t.dimensions.droppables),s=!!o,i=t.dimensions.droppables[t.critical.droppable.id],c=o||i,l=c.axis.direction,a=l==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||l==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(a&&!s)return null;const d=r==="MOVE_DOWN"||r==="MOVE_RIGHT",e=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,{draggables:p,droppables:u}=t.dimensions;return a?Nc({isMovingForward:d,previousPageBorderBoxCenter:f,draggable:e,destination:c,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Ac({isMovingForward:d,previousPageBorderBoxCenter:f,draggable:e,isOver:c,draggables:p,droppables:u,viewport:t.viewport,afterCritical:t.afterCritical})};function Qe(t){return t.phase==="DRAGGING"||t.phase==="COLLECTING"}function Ea(t){const r=Ce(t.top,t.bottom),o=Ce(t.left,t.right);return function(i){return r(i.y)&&o(i.x)}}function Ic(t,r){return t.left<r.right&&t.right>r.left&&t.top<r.bottom&&t.bottom>r.top}function Lc({pageBorderBox:t,draggable:r,candidates:o}){const s=r.page.borderBox.center,i=o.map(c=>{const l=c.axis,a=et(c.axis.line,t.center[l.line],c.page.borderBox.center[l.crossAxisLine]);return{id:c.descriptor.id,distance:Lt(s,a)}}).sort((c,l)=>l.distance-c.distance);return i[0]?i[0].id:null}function Rc({pageBorderBox:t,draggable:r,droppables:o}){const s=vn(o).filter(i=>{if(!i.isEnabled)return!1;const c=i.subject.active;if(!c||!Ic(t,c))return!1;if(Ea(c)(t.center))return!0;const l=i.axis,a=c.center[l.crossAxisLine],d=t[l.crossAxisStart],e=t[l.crossAxisEnd],f=Ce(c[l.crossAxisStart],c[l.crossAxisEnd]),p=f(d),u=f(e);return!p&&!u?!0:p?d<a:e>a});return s.length?s.length===1?s[0].descriptor.id:Lc({pageBorderBox:t,draggable:r,candidates:s}):null}const Ca=(t,r)=>Ie($t(t,r));var Bc=(t,r)=>{const o=t.frame;return o?Ca(r,o.scroll.diff.value):r};function Aa({displaced:t,id:r}){return!!(t.visible[r]||t.invisible[r])}function Fc({draggable:t,closest:r,inHomeList:o}){return r?o&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var Hc=({pageBorderBoxWithDroppableScroll:t,draggable:r,destination:o,insideDestination:s,last:i,viewport:c,afterCritical:l})=>{const a=o.axis,d=Yt(o.axis,r.displaceBy),e=d.value,f=t[a.start],p=t[a.end],m=bn(r,s).find(v=>{const h=v.descriptor.id,j=v.page.borderBox.center[a.line],g=Ke(h,l),x=Aa({displaced:i,id:h});return g?x?p<=j:f<j-e:x?p<=j+e:f<j}
49)||null,y=Fc({draggable:r,closest:m,inHomeList:Nt(r,o)});return mn({draggable:r,insideDestination:s,destination:o,viewport:c,last:i,displacedBy:d,index:y})};const Wc=4;var Gc=({draggable:t,pageBorderBoxWithDroppableScroll:r,previousImpact:o,destination:s,insideDestination:i,afterCritical:c})=>{if(!s.isCombineEnabled)return null;const l=s.axis,a=Yt(s.axis,t.displaceBy),d=a.value,e=r[l.start],f=r[l.end],u=bn(t,i).find(y=>{const v=y.descriptor.id,h=y.page.borderBox,g=h[l.size]/Wc,x=Ke(v,c),b=Aa({displaced:o.displaced,id:v});return x?b?f>h[l.start]+g&&f<h[l.end]-g:e>h[l.start]-d+g&&e<h[l.end]-d-g:b?f>h[l.start]+d+g&&f<h[l.end]+d-g:e>h[l.start]+g&&e<h[l.end]-g});return u?{displacedBy:a,displaced:o.displaced,at:{type:"COMBINE",combine:{draggableId:u.descriptor.id,droppableId:s.descriptor.id}}}:null},Pa=({pageOffset:t,draggable:r,draggables:o,droppables:s,previousImpact:i,viewport:c,afterCritical:l})=>{const a=Ca(r.page.borderBox,t),d=Rc({pageBorderBox:a,draggable:r,droppables:s});if(!d)return rc;const e=s[d],f=wt(e.descriptor.id,o),p=Bc(e,a);return Gc({pageBorderBoxWithDroppableScroll:p,draggable:r,previousImpact:i,destination:e,insideDestination:f,afterCritical:l})||Hc({pageBorderBoxWithDroppableScroll:p,draggable:r,destination:e,insideDestination:f,last:i.displaced,viewport:c,afterCritical:l})},Dr=(t,r)=>({...t,[r.descriptor.id]:r});const zc=({previousImpact:t,impact:r,droppables:o})=>{const s=Ne(t),i=Ne(r);if(!s||s===i)return o;const c=o[s];if(!c.subject.withPlaceholder)return o;const l=Ec(c);return Dr(o,l)};var Uc=({draggable:t,draggables:r,droppables:o,previousImpact:s,impact:i})=>{const c=zc({previousImpact:s,impact:i,droppables:o}),l=Ne(i);if(!l)return c;const a=o[l];if(Nt(t,a)||a.subject.withPlaceholder)return c;const d=Ma(a,t,r);return Dr(c,d)},Ct=({state:t,clientSelection:r,dimensions:o,viewport:s,impact:i,scrollJumpRequest:c})=>{const l=s||t.viewport,a=o||t.dimensions,d=r||t.current.client.selection,e=we(d,t.initial.client.selection),f={offset:e,selection:d,borderBoxCenter:le(t.initial.client.borderBoxCenter,e)},p={selection:le(f.selection,l.scroll.current),borderBoxCenter:le(f.borderBoxCenter,l.scroll.current),offset:le(f.offset,l.scroll.diff.value)},u={client:f,page:p};if(t.phase==="COLLECTING")return{...t,dimensions:a,viewport:l,current:u};const m=a.draggables[t.critical.draggable.id],y=i||Pa({pageOffset:p.offset,draggable:m,draggables:a.draggables,droppables:a.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=Uc({draggable:m,impact:y,previousImpact:t.impact,draggables:a.draggables,droppables:a.droppables});return{...t,current:u,dimensions:{draggables:a.draggables,droppables:v},impact:y,viewport:l,scrollJumpRequest:c||null,forceShouldAnimate:c?!1:null}};function $c(t,r){return t.map(o=>r[o])}var _a=({impact:t,viewport:r,draggables:o,destination:s,forceShouldAnimate:i})=>{const c=t.displaced,l=$c(c.all,o),a=Bt({afterDragging:l,destination:s,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:i,last:c});return{...t,displaced:a}},Ia=({impact:t,draggable:r,droppable:o,draggables:s,viewport:i,afterCritical:c})=>{const l=jn({impact:t,draggable:r,draggables:s,droppable:o,afterCritical:c});return kr({pageBorderBoxCenter:l,draggable:r,viewport:i})},La=({state:t,dimensions:r,viewport:o})=>{t.movementMode!=="SNAP"&&E();const s=t.impact,i=o||t.viewport,c=r||t.dimensions,{draggables:l,droppables:a}=c,d=l[t.critical.draggable.id],e=Ne(s);e||E();const f=a[e],p=_a({impact:s,viewport:i,destination:f,draggables:l}),u=Ia({impact:p,draggable:d,droppable:f,draggables:l,viewport:i,afterCritical:t.afterCritical});return Ct({impact:p,clientSelection:u,state:t,dimensions:c,viewport:i})},Yc=t=>({index:t.index,droppableId:t.droppableId}),Ra=({draggable:t,home:r,draggables:o,viewport:s})=>{const i=Yt(r.axis,t.displaceBy),c=wt(r.descriptor.id,o),l=c.indexOf(t);l===-1&&E();const a=c.slice(l+1),d=a.reduce((u,m)=>(u[m.descriptor.id]=!0,u),{}),e={inVirtualList:r.descriptor.mode==="virtual",displacedBy:i,effected:d};return{impact:{displaced:Bt({afterDragging:a,destination:r,displacedBy:i,last:null,viewport:s.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:Yc(t.descriptor)}},afterCritical:e}},Vc=(t,r)=>({draggables:t.draggables,droppables:Dr(t.droppables,r)}),qc=({draggable:t,offset:r,initialWindowScroll:o})=>{const s=cn(t.client,r),i=ln(s,o);return{...t,placeholder:{...t.placeholder,client:s},client:s,page:i}},Kc=t=>{const r=t.frame;return r||E(),r},Jc=({additions:t,updatedDroppables:r,viewport:o})=>{const s=o.scroll.diff.value;return t.map(i=>{const c=i.descriptor.droppableId,l=r[c],d=Kc(l).scroll.diff.value,e=le(s,d);return qc({draggable:i,offset:e,initialWindowScroll:o.scroll.initial})})},Qc=({state:t,published:r})=>{const o=r.modified.map(j=>{const g=t.dimensions.droppables[j.droppableId];return Xr(g,j.scroll)}),s={...t.dimensions.droppables,...ba(o)},i=ja(Jc({additions:r.additions,updatedDroppables:s,viewport:t.viewport})),c={...t.dimensions.draggables,...i};
49r.removals.forEach(j=>{delete c[j]});const l={droppables:s,draggables:c},a=Ne(t.impact),d=a?l.droppables[a]:null,e=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],{impact:p,afterCritical:u}=Ra({draggable:e,home:f,draggables:c,viewport:t.viewport}),m=d&&d.isCombineEnabled?t.impact:p,y=Pa({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:u}),v={...t,phase:"DRAGGING",impact:y,onLiftImpact:p,dimensions:l,afterCritical:u,forceShouldAnimate:!1};return t.phase==="COLLECTING"?v:{...v,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const ar=t=>t.movementMode==="SNAP",Hn=(t,r,o)=>{const s=Vc(t.dimensions,r);return!ar(t)||o?Ct({state:t,dimensions:s}):La({state:t,dimensions:s})};function Wn(t){return t.isDragging&&t.movementMode==="SNAP"?{...t,scrollJumpRequest:null}:t}const go={phase:"IDLE",completed:null,shouldFlush:!1};var Zc=(t=go,r)=>{if(r.type==="FLUSH")return{...go,shouldFlush:!0};if(r.type==="INITIAL_PUBLISH"){t.phase!=="IDLE"&&E();
49const{critical:o,clientSelection:s,viewport:i,dimensions:c,movementMode:l}=r.payload,a=c.draggables[o.draggable.id],d=c.droppables[o.droppable.id],e={selection:s,borderBoxCenter:a.client.borderBox.center,offset:ue},f={client:e,page:{selection:le(e.selection,i.scroll.initial),borderBoxCenter:le(e.selection,i.scroll.initial),offset:le(e.selection,i.scroll.diff.value)}},p=vn(c.droppables).every(v=>!v.isFixedOnPage),{impact:u,afterCritical:m}=Ra({draggable:a,home:d,draggables:c.draggables,viewport:i});return{phase:"DRAGGING",isDragging:!0,critical:o,movementMode:l,dimensions:c,initial:f,current:f,isWindowScrollAllowed:p,impact:u,afterCritical:m,onLiftImpact:u,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if(r.type==="COLLECTION_STARTING")return t.phase==="COLLECTING"||t.phase==="DROP_PENDING"?t:(t.phase!=="DRAGGING"&&E(),{...t,phase:"COLLECTING"});if(r.type==="PUBLISH_WHILE_DRAGGING")return t.phase==="COLLECTING"||t.phase==="DROP_PENDING"||E(),Qc({state:t,published:r.payload});if(r.type==="MOVE"){if(t.phase==="DROP_PENDING")return t;Qe(t)||E();const{client:o}=r.payload;return qe(o,t.current.client.selection)?t:Ct({state:t,clientSelection:o,impact:ar(t)?t.impact:null})}if(r.type==="UPDATE_DROPPABLE_SCROLL"){if(t.phase==="DROP_PENDING"||t.phase==="COLLECTING")return Wn(t);Qe(t)||E();const{id:o,newScroll:s}=r.payload,i=t.dimensions.droppables[o];if(!i)return t;const c=Xr(i,s);return Hn(t,c,!1)}if(r.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(t.phase==="DROP_PENDING")return t;Qe(t)||E();const{id:o,isEnabled:s}=r.payload,i=t.dimensions.droppables[o];i||E(),i.isEnabled===s&&E();const c={...i,isEnabled:s};return Hn(t,c,!0)}if(r.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(t.phase==="DROP_PENDING")return t;Qe(t)||E();
49const{id:o,isCombineEnabled:s}=r.payload,i=t.dimensions.droppables[o];i||E(),i.isCombineEnabled===s&&E();const c={...i,isCombineEnabled:s};return Hn(t,c,!0)}if(r.type==="MOVE_BY_WINDOW_SCROLL"){if(t.phase==="DROP_PENDING"||t.phase==="DROP_ANIMATING")return t;Qe(t)||E(),t.isWindowScrollAllowed||E();const o=r.payload.newScroll;if(qe(t.viewport.scroll.current,o))return Wn(t);const s=Sa(t.viewport,o);return ar(t)?La({state:t,viewport:s}):Ct({state:t,viewport:s})}if(r.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Qe(t))return t;const o=r.payload.maxScroll;if(qe(o,t.viewport.scroll.max))return t;const s={...t.viewport,scroll:{...t.viewport.scroll,max:o}};return{...t,viewport:s}}if(r.type==="MOVE_UP"||r.type==="MOVE_DOWN"||r.type==="MOVE_LEFT"||r.type==="MOVE_RIGHT"){if(t.phase==="COLLECTING"||t.phase==="DROP_PENDING")return t;t.phase!=="DRAGGING"&&E();const o=_c({state:t,type:r.type});return o?Ct({state:t,impact:o.impact,clientSelection:o.clientSelection,scrollJumpRequest:o.scrollJumpRequest}):t}if(r.type==="DROP_PENDING"){const o=r.payload.reason;return t.phase!=="COLLECTING"&&E(),{...t,phase:"DROP_PENDING",isWaiting:!0,reason:o}}if(r.type==="DROP_ANIMATE"){const{completed:o,dropDuration:s,newHomeClientOffset:i}=r.payload;return t.phase==="DRAGGING"||t.phase==="DROP_PENDING"||E(),{phase:"DROP_ANIMATING",completed:o,dropDuration:s,newHomeClientOffset:i,dimensions:t.dimensions}}if(r.type==="DROP_COMPLETE"){const{completed:o}=r.payload;return{phase:"IDLE",completed:o,shouldFlush:!1}}return t};function J(t,r){return t instanceof Object&&"type"in t&&t.type===r}const el=t=>({type:"BEFORE_INITIAL_CAPTURE",payload:t}),tl=t=>({type:"LIFT",payload:t}),nl=t=>({type:"INITIAL_PUBLISH",payload:t}),rl=t=>({type:"PUBLISH_WHILE_DRAGGING",payload:t}),ol=()=>({type:"COLLECTION_STARTING",payload:null}),al=t=>({type:"UPDATE_DROPPABLE_SCROLL",payload:t}),sl=t=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}),il=t=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}),Ba=t=>({type:"MOVE",payload:t}),ul=t=>({type:"MOVE_BY_WINDOW_SCROLL",payload:t}),cl=t=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}),ll=()=>({type:"MOVE_UP",payload:null}),dl=()=>({type:"MOVE_DOWN",payload:null}),pl=()=>({type:"MOVE_RIGHT",payload:null}),ml=()=>({type:"MOVE_LEFT",payload:null}),Mr=()=>({type:"FLUSH",payload:null}),fl=t=>({type:"DROP_ANIMATE",payload:t}),Er=t=>({type:"DROP_COMPLETE",payload:t}),Fa=t=>({type:"DROP",payload:t}),hl=t=>({type:"DROP_PENDING",payload:t}),Ha=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var yl=t=>({getState:r,dispatch:o})=>s=>i=>{if(!J(i,"LIFT")){s(i);return}const{id:c,clientSelection:l,movementMode:a}=i.payload,d=r();d.phase==="DROP_ANIMATING"&&o(Er({completed:d.completed})),r().phase!=="IDLE"&&E(),o(Mr()),o(el({draggableId:c,movementMode:a}));const f={draggableId:c,scrollOptions:{shouldPublishImmediately:a==="SNAP"}},{critical:p,dimensions:u,viewport:m}=t.startPublishing(f);o(nl({critical:p,dimensions:u,clientSelection:l,movementMode:a,viewport:m}))},gl=t=>()=>r=>o=>{J(o,"INITIAL_PUBLISH")&&t.dragging(),J(o,"DROP_ANIMATE")&&t.dropping(o.payload.completed.result.reason),(J(o,"FLUSH")||J(o,"DROP_COMPLETE"))&&t.resting(),r(o)};const Cr={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ft={opacity:{drop:0,combining:.7},scale:{drop:.75}},Wa={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Je=`${Wa.outOfTheWay}s ${Cr.outOfTheWay}`,At={fluid:`opacity ${Je}`,snap:`transform ${Je}, opacity ${Je}`,drop:t=>{const r=`${t}s ${Cr.drop}`;return`transform ${r}, opacity ${r}`},outOfTheWay:`transform ${Je}`,placeholder:`height ${Je}, width ${Je}, margin ${Je}`},vo=t=>qe(t,ue)?void 0:`translate(${t.x}px, ${t.y}px)`,sr={moveTo:vo,drop:(t,r)=>{const o=vo(t);if(o)return r?`${o} scale(${Ft.scale.drop})`:o}},{minDropTime:ir,maxDropTime:Ga}=Wa,vl=Ga-ir,xo=1500,xl=.6;var bl=({current:t,destination:r,reason:o})=>{const s=Lt(t,r);if(s<=0)return ir;if(s>=xo)return Ga;const i=s/xo,c=ir+vl*i,l=o==="CANCEL"?c*xl:c;return Number(l.toFixed(2))},jl=({impact:t,draggable:r,dimensions:o,viewport:s,afterCritical:i})=>{const{draggables:c,droppables:l}=o,a=Ne(t),d=a?l[a]:null,e=l[r.descriptor.droppableId],f=Ia({impact:t,draggable:r,draggables:c,afterCritical:i,droppable:d||e,viewport:s});return we(f,r.client.borderBox.center)},Tl=({draggables:t,reason:r,lastImpact:o,home:s,viewport:i,onLiftImpact:c})=>!o.at||r!=="DROP"?{impact:_a({draggables:t,impact:c,destination:s,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:o.at.type==="REORDER"?{impact:o,didDropInsideDroppable:!0}:{impact:{...o,displaced:Rt},didDropInsideDroppable:!0};const Xl=({getState:t,dispatch:r})=>o=>s=>{if(!J(s,"DROP")){o(s);return}const i=t(),c=s.payload.reason;if(i.phase==="COLLECTING"){r(hl({reason:c}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&E(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||E();const a=i.critical,d=i.dimensions,e=d.draggables[i.critical.draggable.id],{impact:f,didDropInsideDroppable:p}=Tl({reason:c,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.
49id],viewport:i.viewport,draggables:i.dimensions.draggables}),u=p?Or(f):null,m=p?xn(f):null,y={index:a.draggable.index,droppableId:a.droppable.id},v={draggableId:e.descriptor.id,type:e.descriptor.type,source:y,reason:c,mode:i.movementMode,destination:u,combine:m},h=jl({impact:f,draggable:e,dimensions:d,viewport:i.viewport,afterCritical:i.afterCritical}),j={critical:i.critical,afterCritical:i.afterCritical,result:v,impact:f};if(!(!qe(i.current.client.offset,h)||!!v.combine)){r(Er({completed:j}));return}const x=bl({current:i.current.client.offset,destination:h,reason:c});r(fl({newHomeClientOffset:h,dropDuration:x,completed:j}))};var za=()=>({x:window.pageXOffset,y:window.pageYOffset});function Ol(t){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:r=>{r.target!==window&&r.target!==window.document||t()}}}function wl({onWindowScroll:t}){function r(){t(za())}const o=It(r),s=Ol(o);let i=Ve;function c(){return i!==Ve}function l(){c()&&E(),i=Ee(window,[s])}function a(){c()||E(),o.cancel(),i(),i=Ve}return{start:l,stop:a,isActive:c}}const Nl=t=>J(t,"DROP_COMPLETE")||J(t,"DROP_ANIMATE")||J(t,"FLUSH"),Sl=t=>{const r=wl({onWindowScroll:o=>{t.dispatch(ul({newScroll:o}))}});return o=>s=>{!r.isActive()&&J(s,"INITIAL_PUBLISH")&&r.start(),r.isActive()&&Nl(s)&&r.stop(),o(s)}};var kl=t=>{let r=!1,o=!1;const s=setTimeout(()=>{o=!0}),i=c=>{r||o||(r=!0,t(c),clearTimeout(s))};return i.wasCalled=()=>r,i},Dl=()=>{const t=[],r=i=>{const c=t.findIndex(a=>a.timerId===i);c===-1&&E();const[l]=t.splice(c,1);l.callback()};return{add:i=>{const c=setTimeout(()=>r(c)),l={timerId:c,callback:i};t.push(l)},flush:()=>
49{if(!t.length)return;const i=[...t];t.length=0,i.forEach(c=>{clearTimeout(c.timerId),c.callback()})}}};const Ml=(t,r)=>t==null&&r==null?!0:t==null||r==null?!1:t.droppableId===r.droppableId&&t.index===r.index,El=(t,r)=>t==null&&r==null?!0:t==null||r==null?!1:t.draggableId===r.draggableId&&t.droppableId===r.droppableId,Cl=(t,r)=>{if(t===r)return!0;const o=t.draggable.id===r.draggable.id&&t.draggable.droppableId===r.draggable.droppableId&&t.draggable.type===r.draggable.type&&t.draggable.index===r.draggable.index,s=t.droppable.id===r.droppable.id&&t.droppable.type===r.droppable.type;return o&&s},St=(t,r)=>{r()},qt=(t,r)=>({draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:r});function Gn(t,r,o,s){if(!t){o(s(r));return}const i=kl(o);t(r,{announce:i}),i.wasCalled()||o(s(r))}var Al=(t,r)=>{const o=Dl();let s=null;const i=(p,u)=>{s&&E(),St("onBeforeCapture",()=>{const m=t().onBeforeCapture;m&&m({draggableId:p,mode:u})})},c=(p,u)=>{s&&E(),St("onBeforeDragStart",()=>{const m=t().onBeforeDragStart;m&&m(qt(p,u))})},l=(p,u)=>{s&&E();const m=qt(p,u);s={mode:u,lastCritical:p,lastLocation:m.source,lastCombine:null},o.add(()=>{St("onDragStart",()=>Gn(t().onDragStart,m,r,en.onDragStart))})},a=(p,u)=>{const m=Or(u),y=xn(u);s||E();const v=!Cl(p,s.lastCritical);v&&(s.lastCritical=p);const h=!Ml(s.lastLocation,m);h&&(s.lastLocation=m);const j=!El(s.lastCombine,y);if(j&&(s.lastCombine=y),!v&&!h&&!j)return;const g={...qt(p,s.mode),combine:y,destination:m};o.add(()=>{St("onDragUpdate",()=>Gn(t().onDragUpdate,g,r,en.onDragUpdate))})},d=()=>{s||E(),o.flush()},e=p=>{s||E(),s=null,St("onDragEnd",()=>Gn(t().onDragEnd,p,r,en.onDragEnd))};return{beforeCapture:i,beforeStart:c,start:l,update:a,flush:d,drop:e,abort:()=>{if(!s)return;const p={...qt(s.lastCritical,s.mode),combine:null,destination:null,reason:"CANCEL"};e(p)}}},Pl=(t,r)=>{const o=Al(t,r);return s=>i=>c=>{if(J(c,"BEFORE_INITIAL_CAPTURE")){o.beforeCapture(c.payload.draggableId,c.payload.movementMode);return}if(J(c,"INITIAL_PUBLISH")){const a=c.payload.critical;o.beforeStart(a,c.payload.movementMode),i(c),o.start(a,c.payload.movementMode);return}if(J(c,"DROP_COMPLETE")){const a=c.payload.completed.result;o.flush(),i(c),o.drop(a);return}if(i(c),J(c,"FLUSH")){o.abort();return}const l=s.getState();l.phase==="DRAGGING"&&o.update(l.critical,l.impact)}};const _l=t=>r=>o=>{if(!J(o,"DROP_ANIMATION_FINISHED")){r(o);return}const s=t.getState();s.phase!=="DROP_ANIMATING"&&E(),t.dispatch(Er({completed:s.completed}))},Il=t=>{let r=null,o=null;function s(){o&&(cancelAnimationFrame(o),o=null),r&&(r(),r=null)}return i=>c=>{if((J(c,"FLUSH")||J(c,"DROP_COMPLETE")||J(c,"DROP_ANIMATION_FINISHED"))&&s(),i(c),!J(c,"DROP_ANIMATE"))return;const l={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){t.getState().phase==="DROP_ANIMATING"&&t.dispatch(Ha())}};o=requestAnimationFrame(()=>{o=null,r=Ee(window,[l])})}};var Ll=t=>()=>r=>o=>{(J(o,"DROP_COMPLETE")||J(o,"FLUSH")||J(o,"DROP_ANIMATE"))&&t.stopPublishing(),r(o)},Rl=t=>{let r=!1;return()=>o=>s=>{if(J(s,"INITIAL_PUBLISH")){r=!0,t.tryRecordFocus(s.payload.critical.draggable.id),o(s),t.tryRestoreFocusRecorded();return}if(o(s),!!r){if(J(s,"FLUSH")){r=!1,t.tryRestoreFocusRecorded();return}if(J(s,"DROP_COMPLETE")){r=!1;const i=s.payload.completed.result;i.combine&&t.tryShiftRecord(i.draggableId,i.combine.draggableId),t.tryRestoreFocusRecorded()}}}};const Bl=t=>J(t,"DROP_COMPLETE")||J(t,"DROP_ANIMATE")||J(t,"FLUSH");var Fl=t=>r=>o=>s=>{if(Bl(s)){t.stop(),o(s);return}if(J(s,"INITIAL_PUBLISH")){o(s);const i=r.getState();i.phase!=="DRAGGING"&&E(),t.start(i);return}o(s),t.scroll(r.getState())};const Hl=t=>r=>o=>{if(r(o),!J(o,"PUBLISH_WHILE_DRAGGING"))return;const s=t.getState();s.phase==="DROP_PENDING"&&(s.isWaiting||t.dispatch(Fa({reason:s.reason})))},Wl=sa;var Gl=({dimensionMarshal:t,focusMarshal:r,styleMarshal:o,getResponders:s,announce:i,autoScroller:c})=>aa(Zc,Wl(Ri(gl(o),Ll(t),yl(t),Xl,_l,Il,Hl,Fl(c),Sl,Rl(r),Pl(s,i))));const zn=()=>({additions:{},removals:{},modified:{}});function zl({registry:t,callbacks:r}){let o=zn(),s=null;const i=()=>{s||(r.collectionStarting(),s=requestAnimationFrame(()=>{s=null;const{additions:d,removals:e,modified:f}=o,p=Object.keys(d).map(y=>t.draggable.getById(y).getDimension(ue)).sort((y,v)=>y.descriptor.index-v.descriptor.index),u=Object.keys(f).map(y=>{const h=t.droppable.getById(y).callbacks.getScrollWhileDragging();return{droppableId:y,scroll:h}}),m={additions:p,removals:Object.keys(e),modified:u};o=zn(),r.publish(m)}))};return{add:d=>{const e=d.descriptor.id;o.additions[e]=d,o.modified[d.descriptor.droppableId]=!0,o.removals[e]&&delete o.removals[e],i()},remove:d=>{const e=d.descriptor;o.removals[e.id]=!0,o.modified[e.droppableId]=!0,o.additions[e.id]&&delete o.additions[e.id],i()},stop:()=>{s&&(cancelAnimationFrame(s),s=null,o=zn())}}}var Ua=({scrollHeight:t,scrollWidth:r,height:o,width:s})=>{const i=we({x:r,y:t},{x:s,y:o});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},$a=()=>{const t=document.documentElement;return t||E(),t},Ya=()=>{const t=$a();return Ua({scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,width:t.clientWidth,height:t.clientHeight})},Ul=()=>{const t=za(),r=Ya(),o=t.y,s=t.x,i=$a(),c=i.clientWidth,l=i.clientHeight,a=s+c,d=o+l;return{frame:Ie({top:o,left:s,right:a,bottom:d}),scroll:{initial:t,current:t,max:r,diff:{value:ue,displacement:ue}}}},$l=({critical:t,scrollOptions:r,registry:o})=>{const s=Ul(),i=s.scroll.current,c=t.droppable,l=o.droppable.getAllByType(c.type).map(f=>f.callbacks.getDimensionAndWatchScroll(i,r)),a=o.draggable.getAllByType(t.draggable.type).map(f=>f.getDimension(i));return{dimensions:{draggables:ja(a),droppables:ba(l)},critical:t,viewport:s}};function bo(t,r,o){return!(o.descriptor.id===r.id||o.descriptor.type!==r.type||t.droppable.getById(o.descriptor.droppableId).descriptor.mode!=="virtual")}var Yl=(t,r)=>{let o=null;const s=zl({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:t}),i=(u,m)=>{t.droppable.exists(u)||E(),o&&r.updateDroppableIsEnabled({id:u,isEnabled:m})},c=(u,m)=>
49{o&&(t.droppable.exists(u)||E(),r.updateDroppableIsCombineEnabled({id:u,isCombineEnabled:m}))},l=(u,m)=>{o&&(t.droppable.exists(u)||E(),r.updateDroppableScroll({id:u,newScroll:m}))},a=(u,m)=>{o&&t.droppable.getById(u).callbacks.scroll(m)},d=()=>{if(!o)return;s.stop();const u=o.critical.droppable;t.droppable.getAllByType(u.type).forEach(m=>m.callbacks.dragStopped()),o.unsubscribe(),o=null},e=u=>{o||E();const m=o.critical.draggable;u.type==="ADDITION"&&bo(t,m,u.value)&&s.add(u.value),u.type==="REMOVAL"&&bo(t,m,u.value)&&s.remove(u.value)};return{updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:c,scrollDroppable:a,updateDroppableScroll:l,startPublishing:u=>{o&&E();const m=t.draggable.getById(u.draggableId),y=t.droppable.getById(m.descriptor.droppableId),v={draggable:m.descriptor,droppable:y.descriptor},h=t.subscribe(e);return o={critical:v,unsubscribe:h},$l({critical:v,registry:t,scrollOptions:u.scrollOptions})},stopPublishing:d}},Va=(t,r)=>t.phase==="IDLE"?!0:t.phase!=="DROP_ANIMATING"||t.completed.result.draggableId===r?!1:t.completed.result.reason==="DROP",Vl=t=>{window.scrollBy(t.x,t.y)};const ql=ie(t=>vn(t).filter(r=>!(!r.isEnabled||!r.frame))),Kl=(t,r)=>ql(r).find(s=>(s.frame||E(),Ea(s.frame.pageMarginBox)(t)))||null;var Jl=({center:t,destination:r,droppables:o})=>{if(r){const i=o[r];return i.frame?i:null}return Kl(t,o)};const Ht={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:t=>t**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Ql=(t,r,o=()=>Ht)=>{const s=o(),i=t[r.size]*s.startFromPercentage,c=t[r.size]*s.maxScrollAtPercentage;return{startScrollingFrom:i,maxScrollValueAt:c}},qa=({startOfRange:t,endOfRange:r,current:o})=>{const s=r-t;return s===0?0:(o-t)/s},Ar=1,Zl=(t,r,o=()=>Ht)=>{const s=o();if(t>r.startScrollingFrom)return 0;if(t<=r.maxScrollValueAt)return s.maxPixelScroll;if(t===r.startScrollingFrom)return Ar;const c=1-qa({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:t}),l=s.maxPixelScroll*s.ease(c);return Math.ceil(l)},ed=(t,r,o)=>{const s=o(),i=s.durationDampening.accelerateAt,c=s.durationDampening.stopDampeningAt,l=r,a=c,e=Date.now()-l;if(e>=c)return t;if(e<i)return Ar;const f=qa({startOfRange:i,endOfRange:a,current:e}),p=t*s.ease(f);return Math.ceil(p)},jo=({distanceToEdge:t,thresholds:r,dragStartTime:o,shouldUseTimeDampening:s,getAutoScrollerOptions:i})=>{const c=Zl(t,r,i);return c===0?0:s?Math.max(ed(c,o,i),Ar):c},To=({container:t,distanceToEdges:r,dragStartTime:o,axis:s,shouldUseTimeDampening:i,getAutoScrollerOptions:c})=>{const l=Ql(t,s,c);return r[s.end]<r[s.start]?jo({distanceToEdge:r[s.end],thresholds:l,dragStartTime:o,shouldUseTimeDampening:i,getAutoScrollerOptions:c}):-1*jo({distanceToEdge:r[s.start],thresholds:l,dragStartTime:o,shouldUseTimeDampening:i,getAutoScrollerOptions:c})},td=({container:t,subject:r,proposedScroll:o})=>{const s=r.height>t.height,i=r.width>t.width;return!i&&!s?o:i&&s?null:{x:i?0:o.x,y:s?0:o.y}};const nd=xa(t=>t===0?0:t);var Ka=({dragStartTime:t,container:r,subject:o,center:s,shouldUseTimeDampening:i,getAutoScrollerOptions:c})=>{const l={top:s.y-r.top,right:r.right-s.x,bottom:r.bottom-s.y,left:s.x-r.left},a=To({container:r,distanceToEdges:l,dragStartTime:t,axis:wr,shouldUseTimeDampening:i,getAutoScrollerOptions:c}),d=To({container:r,distanceToEdges:l,dragStartTime:t,axis:Oa,shouldUseTimeDampening:i,getAutoScrollerOptions:c}),e=nd({x:d,y:a});if(qe(e,ue))return null;const f=td({container:r,subject:o,proposedScroll:e});return f?qe(f,ue)?null:f:null};const rd=xa(t=>t===0?0:t>0?1:-1),Pr=(()=>{const t=(r,o)=>r<0?r:r>o?r-o:0;return({current:r,max:o,change:s})=>{const i=le(r,s),c={x:t(i.x,o.x),y:t(i.y,o.y)};return qe(c,ue)?null:c}})(),Ja=({max:t,current:r,change:o})=>{const s={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},i=rd(o),c=Pr({max:s,current:r,change:i});return!c||i.x!==0&&c.x===0||i.y!==0&&c.y===0},_r=(t,r)=>Ja({current:t.scroll.current,max:t.scroll.max,change:r}),od=(t,r)=>{if(!_r(t,r))return null;const o=t.scroll.max,s=t.scroll.current;return Pr({current:s,max:o,change:r})},Ir=(t,r)=>{const o=t.frame;return o?Ja({current:o.scroll.current,max:o.scroll.max,change:r}):!1},ad=(t,r)=>{const o=t.frame;return!o||!Ir(t,r)?null:Pr({current:o.scroll.current,max:o.scroll.max,change:r})};var sd=({viewport:t,subject:r,center:o,dragStartTime:s,shouldUseTimeDampening:i,getAutoScrollerOptions:c})=>{const l=Ka({dragStartTime:s,container:t.frame,subject:r,center:o,shouldUseTimeDampening:i,getAutoScrollerOptions:c});return l&&_r(t,l)?l:null},id=({droppable:t,subject:r,center:o,dragStartTime:s,shouldUseTimeDampening:i,getAutoScrollerOptions:c})=>{const l=t.frame;if(!l)return null;const a=Ka({dragStartTime:s,container:l.pageMarginBox,subject:r,center:o,shouldUseTimeDampening:i,getAutoScrollerOptions:c});return a&&Ir(t,a)?a:null},Xo=({state:t,dragStartTime:r,shouldUseTimeDampening:o,scrollWindow:s,scrollDroppable:i,getAutoScrollerOptions:c})=>{const l=t.current.page.borderBoxCenter,d=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const p=t.viewport,u=sd({dragStartTime:r,viewport:p,subject:d,center:l,shouldUseTimeDampening:o,getAutoScrollerOptions:c});if(u){s(u);return}}const e=Jl({center:l,destination:Ne(t.impact),droppables:t.dimensions.droppables});if(!e)return;const f=id({dragStartTime:r,droppable:e,subject:d,center:l,shouldUseTimeDampening:o,getAutoScrollerOptions:c});f&&i(e.descriptor.id,f)},ud=({scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:o=()=>Ht})=>
49{const s=It(t),i=It(r);let c=null;const l=e=>{c||E();const{shouldUseTimeDampening:f,dragStartTime:p}=c;Xo({state:e,scrollWindow:s,scrollDroppable:i,dragStartTime:p,shouldUseTimeDampening:f,getAutoScrollerOptions:o})};return{start:e=>{c&&E();const f=Date.now();let p=!1;const u=()=>{p=!0};Xo({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:u,scrollDroppable:u,getAutoScrollerOptions:o}),c={dragStartTime:f,shouldUseTimeDampening:p},p&&l(e)},stop:()=>{c&&(s.cancel(),i.cancel(),c=null)},scroll:l}},cd=({move:t,scrollDroppable:r,scrollWindow:o})=>{const s=(a,d)=>{const e=le(a.current.client.selection,d);t({client:e})},i=(a,d)=>{if(!Ir(a,d))return d;const e=ad(a,d);if(!e)return r(a.descriptor.id,d),null;const f=we(d,e);return r(a.descriptor.id,f),we(d,f)},c=(a,d,e)=>{if(!a||!_r(d,e))return e;const f=od(d,e);if(!f)return o(e),null;const p=we(e,f);return o(p),we(e,p)};return a=>{const d=a.scrollJumpRequest;if(!d)return;const e=Ne(a.impact);e||E();const f=i(a.dimensions.droppables[e],d);if(!f)return;const p=a.viewport,u=c(a.isWindowScrollAllowed,p,f);u&&s(a,u)}},ld=({scrollDroppable:t,scrollWindow:r,move:o,getAutoScrollerOptions:s})=>{const i=ud({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:s}),c=cd({move:o,scrollWindow:r,scrollDroppable:t});return{scroll:d=>{if(!(s().disabled||d.phase!=="DRAGGING")){if(d.movementMode==="FLUID"){i.scroll(d);return}d.scrollJumpRequest&&c(d)}},start:i.start,stop:i.stop}};const gt="data-rfd",vt=(()=>{const t=`${gt}-drag-handle`;return{base:t,draggableId:`${t}-draggable-id`,contextId:`${t}-context-id`}})(),ur=(()=>{const t=`${gt}-draggable`;return{base:t,contextId:`${t}-context-id`,id:`${t}-id`}})(),dd=(()=>{const t=`${gt}-droppable`;return{base:t,contextId:`${t}-context-id`,id:`${t}-id`}})(),Oo={contextId:`${gt}-scroll-container-context-id`},pd=t=>r=>`[${r}="${t}"]`,kt=(t,r)=>t.map(o=>{const s=o.styles[r];return s?`${o.selector} { ${s} }`:""}).join(" "),md="pointer-events: none;";var fd=t=>{const r=pd(t),o=(()=>{const a=`
50      cursor: -webkit-grab;
51      cursor: grab;
52    `;return{selector:r(vt.contextId),styles:{always:`
53          -webkit-touch-callout: none;
54          -webkit-tap-highlight-color: rgba(0,0,0,0);
55          touch-action: manipulation;
56        `,resting:a,dragging:md,dropAnimating:a}}})(),s=(()=>{const a=`
57      transition: ${At.outOfTheWay};
58    `;return{selector:r(ur.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}})(),i={selector:r(dd.contextId),styles:{always:"overflow-anchor: none;"}},l=[s,o,i,{selector:"body",styles:{dragging:`
59        cursor: grabbing;
60        cursor: -webkit-grabbing;
61        user-select: none;
62        -webkit-user-select: none;
63        -moz-user-select: none;
64        -ms-user-select: none;
65        overflow-anchor: none;
66      `}}];return{always:kt(l,"always"),resting:kt(l,"resting"),dragging:kt(l,"dragging"),dropAnimating:kt(l,"dropAnimating"),userCancel:kt(l,"userCancel")}};const Se=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?T.useLayoutEffect:T.useEffect,Un=()=>{const t=document.querySelector("head");return t||E(),t},wo=t=>{const r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.type="text/css",r};function hd(t,r){const o=V(()=>fd(t),[t]),s=T.useRef(null),i=T.useRef(null),c=B(ie(p=>{const u=i.current;u||E(),u.textContent=p}),[]),l=B(p=>{const u=s.current;u||E(),u.textContent=p},[]);Se(()=>{!s.current&&!i.current||E();const p=wo(r),u=wo(r);return s.current=p,i.current=u,p.setAttribute(`${gt}-always`,t),u.setAttribute(`${gt}-dynamic`,t),Un().appendChild(p),Un().appendChild(u),l(o.always),c(o.resting),()=>{const m=y=>{const v=y.current;v||E(),Un().removeChild(v),y.current=null};m(s),m(i)}},[r,l,c,o.always,o.resting,t]);const a=B(()=>c(o.dragging),[c,o.dragging]),d=B(p=>{if(p==="DROP"){c(o.dropAnimating);return}c(o.userCancel)},[c,o.dropAnimating,o.userCancel]),e=B(()=>{i.current&&c(o.resting)},[c,o.resting]);return V(()=>({dragging:a,dropping:d,resting:e}),[a,d,e])}function Qa(t,r){return Array.from(t.querySelectorAll(r))}var Za=t=>t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window;function Tn(t){return t instanceof Za(t).HTMLElement}function yd(t,r){const o=`[${vt.contextId}="${t}
66"]`,s=Qa(document,o);if(!s.length)return null;const i=s.find(c=>c.getAttribute(vt.draggableId)===r);return!i||!Tn(i)?null:i}function gd(t){const r=T.useRef({}),o=T.useRef(null),s=T.useRef(null),i=T.useRef(!1),c=B(function(u,m){const y={id:u,focus:m};return r.current[u]=y,function(){const h=r.current;h[u]!==y&&delete h[u]}},[]),l=B(function(u){const m=yd(t,u);m&&m!==document.activeElement&&m.focus()},[t]),a=B(function(u,m){o.current===u&&(o.current=m)},[]),d=B(function(){s.current||i.current&&(s.current=requestAnimationFrame(()=>{s.current=null;const u=o.current;u&&l(u)}))},[l]),e=B(function(u){o.current=null;const m=document.activeElement;m&&m.getAttribute(vt.draggableId)===u&&(o.current=u)},[]);return Se(()=>(i.current=!0,function(){i.current=!1;const u=s.current;u&&cancelAnimationFrame(u)}),[]),V(()=>({register:c,tryRecordFocus:e,tryRestoreFocusRecorded:d,tryShiftRecord:a}),[c,e,d,a])}function vd(){const t={draggables:{},droppables:{}},r=[];function o(p){return r.push(p),function(){const m=r.indexOf(p);m!==-1&&r.splice(m,1)}}function s(p){r.length&&r.forEach(u=>u(p))}function i(p){return t.draggables[p]||null}function c(p){const u=i(p);return u||E(),u}const l={register:p=>{t.draggables[p.descriptor.id]=p,s({type:"ADDITION",value:p})},update:(p,u)=>{const m=t.draggables[u.descriptor.id];m&&m.uniqueId===p.uniqueId&&(delete t.draggables[u.descriptor.id],t.draggables[p.descriptor.id]=p)},unregister:p=>{const u=p.descriptor.id,m=i(u);m&&p.uniqueId===m.uniqueId&&(delete t.draggables[u],t.droppables[p.descriptor.droppableId]&&s({type:"REMOVAL",value:p}))},getById:c,findById:i,exists:p=>!!i(p),getAllByType:p=>Object.values(t.draggables).filter(u=>u.descriptor.type===p)};function a(p){return t.droppables[p]||null}function d(p){const u=a(p);return u||E(),u}const e={register:p=>{t.droppables[p.descriptor.id]=p},unregister:p=>{const u=a(p.descriptor.id);u&&p.uniqueId===u.uniqueId&&delete t.droppables[p.descriptor.id]},getById:d,findById:a,exists:p=>!!a(p),getAllByType:p=>Object.values(t.droppables).filter(u=>u.descriptor.type===p)};function f(){t.draggables={},t.droppables={},r.length=0}return{draggable:l,droppable:e,subscribe:o,clean:f}}function xd(){const t=V(vd,[]);return T.useEffect(()=>function(){t.clean()},[t]),t}var Lr=oe.createContext(null),fn=()=>{const t=document.body;return t||E(),t};const bd={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},jd=t=>`rfd-announcement-${t}`;function Td(t){const r=V(()=>jd(t),[t]),o=T.useRef(null);return T.useEffect(function(){const c=document.createElement("div");return o.current=c,c.id=r,c.setAttribute("aria-live","assertive"),c.setAttribute("aria-atomic","true"),sn(c.style,bd),fn().appendChild(c),function(){setTimeout(function(){const d=fn();d.contains(c)&&d.removeChild(c),c===o.current&&(o.current=null)})}},[r]),B(i=>{const c=o.current;if(c){c.textContent=i;return}},[])}const Xd={separator:"::"};function Rr(t,r=Xd){const o=oe.useId();return V(()=>`${t}${r.separator}${o}`,[r.separator,t,o])}function Od({contextId:t,uniqueId:r}){return`rfd-hidden-text-${t}-${r}`}function wd({contextId:t,text:r}){const o=Rr("hidden-text",{separator:"-"}),s=V(()=>Od({contextId:t,uniqueId:o}),[o,t]);return T.useEffect(function(){const c=document.createElement("div");return c.id=s,c.textContent=r,c.style.display="none",fn().appendChild(c),function(){const a=fn();a.contains(c)&&a.removeChild(c)}},[s,r]),s}var Xn=oe.createContext(null);function es(t){const r=T.useRef(t);return T.useEffect(()=>{r.current=t}),r}function Nd(){let t=null;function r(){return!!t}function o(l){return l===t}function s(l){t&&E();const a={abandon:l};return t=a,a}function i(){t||E(),t=null}function c(){t&&(t.abandon(),i())}return{isClaimed:r,isActive:o,claim:s,release:i,tryAbandon:c}}function Wt(t){return t.phase==="IDLE"||t.phase==="DROP_ANIMATING"?!1:t.isDragging}const Sd=9,kd=13,Br=27,ts=32,Dd=33,Md=34,Ed=35,Cd=36,Ad=37,Pd=38,_d=39,Id=40,Ld={[kd]:!0,[Sd]:!0};var ns=t=>{Ld[t.keyCode]&&t.preventDefault()};const On=(()=>{const t="visibilitychange";return typeof document>"u"?t:[t,`ms${t}`,`webkit${t}`,`moz${t}`,`o${t}`].find(s=>`on${s}`in document)||t})(),rs=0,No=5;function Rd(t,r){return Math.abs(r.x-t.x)>=No||Math.abs(r.y-t.y)>=No}const So={type:"IDLE"};function Bd({cancel:t,completed:r,getPhase:o,setPhase:s}){return[{eventName:"mousemove",fn:i=>{const{button:c,clientX:l,clientY:a}=i;if(c!==rs)return;const d={x:l,y:a},e=o();if(e.type==="DRAGGING"){i.preventDefault(),e.actions.move(d);return}e.type!=="PENDING"&&E();const f=e.point;if(!Rd(f,d))return;i.preventDefault();
66const p=e.actions.fluidLift(d);s({type:"DRAGGING",actions:p})}},{eventName:"mouseup",fn:i=>{const c=o();if(c.type!=="DRAGGING"){t();return}i.preventDefault(),c.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:i=>{o().type==="DRAGGING"&&i.preventDefault(),t()}},{eventName:"keydown",fn:i=>{if(o().type==="PENDING"){t();return}if(i.keyCode===Br){i.preventDefault(),t();return}ns(i)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{o().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:i=>{const c=o();if(c.type==="IDLE"&&E(),c.actions.shouldRespectForcePress()){t();return}i.preventDefault()}},{eventName:On,fn:t}]}function Fd(t){const r=T.useRef(So),o=T.useRef(Ve),s=V(()=>({eventName:"mousedown",fn:function(p){if(p.defaultPrevented||p.button!==rs||p.ctrlKey||p.metaKey||p.shiftKey||p.altKey)return;const u=t.findClosestDraggableId(p);if(!u)return;const m=t.tryGetLock(u,l,{sourceEvent:p});if(!m)return;p.preventDefault();const y={x:p.clientX,y:p.clientY};o.current(),e(m,y)}}),[t]),i=V(()=>({eventName:"webkitmouseforcewillbegin",fn:f=>{if(f.defaultPrevented)return;const p=t.findClosestDraggableId(f);if(!p)return;const u=t.findOptionsForDraggable(p);u&&(u.shouldRespectForcePress||t.canGetLock(p)&&f.preventDefault())}}),[t]),c=B(function(){const p={passive:!1,capture:!0};o.current=Ee(window,[i,s],p)},[i,s]),l=B(()=>{r.current.type!=="IDLE"&&(r.current=So,o.current(),c())},[c]),a=B(()=>{const f=r.current;l(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[l]),d=B(function(){const p={capture:!0,passive:!1},u=Bd({cancel:a,completed:l,getPhase:()=>r.current,setPhase:m=>{r.current=m}});o.current=Ee(window,u,p)},[a,l]),e=B(function(p,u){r.current.type!=="IDLE"&&E(),r.current={type:"PENDING",point:u,actions:p},d()},[d]);Se(function(){return c(),function(){o.current()}},[c])}function Hd(){}const Wd={[Md]:!0,[Dd]:!0,[Cd]:!0,[Ed]:!0};function Gd(t,r){function o(){r(),t.cancel()}function s(){r(),t.drop()}return[{eventName:"keydown",fn:i=>{if(i.keyCode===Br){i.preventDefault(),o();return}if(i.keyCode===ts){i.preventDefault(),s();return}if(i.keyCode===Id){i.preventDefault(),t.moveDown();return}if(i.keyCode===Pd){i.preventDefault(),t.moveUp();return}if(i.keyCode===_d){i.preventDefault(),t.moveRight();return}if(i.keyCode===Ad){i.preventDefault(),t.moveLeft();return}if(Wd[i.keyCode]){i.preventDefault();return}ns(i)}},{eventName:"mousedown",fn:o},{eventName:"mouseup",fn:o},{eventName:"click",fn:o},{eventName:"touchstart",fn:o},{eventName:"resize",fn:o},{eventName:"wheel",fn:o,options:{passive:!0}},{eventName:On,fn:o}]}function zd(t){const r=T.useRef(Hd),o=V(()=>({eventName:"keydown",fn:function(c){if(c.defaultPrevented||c.keyCode!==ts)return;const l=t.findClosestDraggableId(c);if(!l)return;const a=t.tryGetLock(l,f,{sourceEvent:c});if(!a)return;c.preventDefault();let d=!0;const e=a.snapLift();r.current();function f(){d||E(),d=!1,r.current(),s()}r.current=Ee(window,Gd(e,f),{capture:!0,passive:!1})}}),[t]),s=B(function(){const c={passive:!1,capture:!0};r.current=Ee(window,[o],c)},[o]);Se(function(){return s(),function(){r.current()}},[s])}const $n={type:"IDLE"},Ud=120,$d=.15;function Yd({cancel:t,getPhase:r}){return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:o=>{o.preventDefault()}},{eventName:"keydown",fn:o=>{if(r().type!=="DRAGGING"){t();return}o.keyCode===Br&&o.preventDefault(),t()}},{eventName:On,fn:t}]}function Vd({cancel:t,completed:r,getPhase:o}){return[{eventName:"touchmove",options:{capture:!1},fn:s=>{const i=o();if(i.type!=="DRAGGING"){t();return}i.hasMoved=!0;const{clientX:c,clientY:l}=s.touches[0],a={x:c,y:l};s.preventDefault(),i.actions.move(a)}},{eventName:"touchend",fn:s=>{const i=o();if(i.type!=="DRAGGING"){t();return}s.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:s=>{if(o().type!=="DRAGGING"){t();return}s.preventDefault(),t()}},{eventName:"touchforcechange",fn:s=>{const i=o();i.type==="IDLE"&&E();const c=s.touches[0];if(!c||!(c.force>=$d))return;const a=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){a&&t();return}if(a){if(i.hasMoved){s.preventDefault();return}t();return}s.preventDefault()}},{eventName:On,fn:t}]}function qd(t){const r=T.useRef($n),o=T.useRef(Ve),s=B(function(){return r.current},[]),i=B(function(m){r.current=m},[]),c=V(()=>({eventName:"touchstart",fn:function(m){if(m.defaultPrevented)return;const y=t.findClosestDraggableId(m);if(!y)return;const v=t.tryGetLock(y,a,{sourceEvent:m});if(!v)return;const h=m.touches[0],{clientX:j,clientY:g}=h,x={x:j,y:g};o.current(),p(v,x)}}),[t]),l=B(function(){const m={capture:!0,passive:!1};o.current=Ee(window,[c],m)},[c]),a=B(()=>{const u=r.current;u.type!=="IDLE"&&(u.type==="PENDING"&&clearTimeout(u.longPressTimerId),i($n),o.current(),l())},[l,i]),d=B(()=>{const u=r.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),e=B(function(){const m={capture:!0,passive:!1},y={cancel:d,completed:a,getPhase:s},v=Ee(window,Vd(y),m),h=Ee(window,Yd(y),m);o.current=function(){v(),h()}}
66,[d,s,a]),f=B(function(){const m=s();m.type!=="PENDING"&&E();const y=m.actions.fluidLift(m.point);i({type:"DRAGGING",actions:y,hasMoved:!1})},[s,i]),p=B(function(m,y){s().type!=="IDLE"&&E();const v=setTimeout(f,Ud);i({type:"PENDING",point:y,actions:m,longPressTimerId:v}),e()},[e,s,i,f]);Se(function(){return l(),function(){o.current();const y=s();y.type==="PENDING"&&(clearTimeout(y.longPressTimerId),i($n))}},[s,l,i]),Se(function(){return Ee(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const Kd=["input","button","textarea","select","option","optgroup","video","audio"];function os(t,r){if(r==null)return!1;if(Kd.includes(r.tagName.toLowerCase()))return!0;const s=r.getAttribute("contenteditable");return s==="true"||s===""?!0:r===t?!1:os(t,r.parentElement)}function Jd(t,r){const o=r.target;return Tn(o)?os(t,o):!1}var Qd=t=>Ie(t.getBoundingClientRect()).center;function Zd(t){return t instanceof Za(t).Element}const ep=(()=>{const t="matches";return typeof document>"u"?t:[t,"msMatchesSelector","webkitMatchesSelector"].find(s=>s in Element.prototype)||t})();function as(t,r){return t==null?null:t[ep](r)?t:as(t.parentElement,r)}function tp(t,r){return t.closest?t.closest(r):as(t,r)}function np(t){return`[${vt.contextId}="${t}"]`}function rp(t,r){const o=r.target;if(!Zd(o))return null;const s=np(t),i=tp(o,s);return!i||!Tn(i)?null:i}function op(t,r){const o=rp(t,r);return o?o.getAttribute(vt.draggableId):null}function ap(t,r){const o=`[${ur.contextId}="${t}"]`,i=Qa(document,o).find(c=>c.getAttribute(ur.id)===r);return!i||!Tn(i)?null:i}function sp(t){t.preventDefault()}function Kt({expected:t,phase:r,isLockActive:o,shouldWarn:s}){return!(!o()||t!==r)}function ss({lockAPI:t,store:r,registry:o,draggableId:s}){if(t.isClaimed())return!1;const i=o.draggable.findById(s);return!(!i||!i.options.isEnabled||!Va(r.getState(),s))}function ip({lockAPI:t,contextId:r,store:o,registry:s,draggableId:i,forceSensorStop:c,sourceEvent:l}){if(!ss({lockAPI:t,store:o,registry:s,draggableId:i}))return null;const d=s.draggable.getById(i),e=ap(r,d.descriptor.id);if(!e||l&&!d.options.canDragInteractiveElements&&Jd(e,l))return null;const f=t.claim(c||Ve);let p="PRE_DRAG";function u(){return d.options.shouldRespectForcePress}function m(){return t.isActive(f)}function y(O,w){Kt({expected:O,phase:p,isLockActive:m,shouldWarn:!0})&&o.dispatch(w())}const v=y.bind(null,"DRAGGING");function h(O){function w(){t.release(),p="COMPLETED"}p!=="PRE_DRAG"&&(w(),E()),o.dispatch(tl(O.liftActionArgs)),p="DRAGGING";function S(_,M={shouldBlockNextClick:!1}){if(O.cleanup(),M.shouldBlockNextClick){const R=Ee(window,[{eventName:"click",fn:sp,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(R)}w(),o.dispatch(Fa({reason:_}))}return{isActive:()=>Kt({expected:"DRAGGING",phase:p,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:u,drop:_=>S("DROP",_),cancel:_=>S("CANCEL",_),...O.actions}}function j(O){const w=It(_=>{v(()=>Ba({client:_}))});return{...h({liftActionArgs:{id:i,clientSelection:O,movementMode:"FLUID"},cleanup:()=>w.cancel(),actions:{move:w}}),move:w}}function g(){const O={moveUp:()=>v(ll),moveRight:()=>v(pl),moveDown:()=>v(dl),moveLeft:()=>v(ml)};return h({liftActionArgs:{id:i,clientSelection:Qd(e),movementMode:"SNAP"},cleanup:Ve,actions:O})}function x(){Kt({expected:"PRE_DRAG",phase:p,isLockActive:m,shouldWarn:!0})&&t.release()}return{isActive:()=>Kt({expected:"PRE_DRAG",phase:p,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:u,fluidLift:j,snapLift:g,abort:x}}const up=[Fd,zd,qd];function cp({contextId:t,store:r,registry:o,customSensors:s,enableDefaultSensors:i}){const c=[...i?up:[],...s||[]],l=T.useState(()=>Nd())[0],a=B(function(h,j){Wt(h)&&!Wt(j)&&l.tryAbandon()},[l]);Se(function(){let h=r.getState();return r.subscribe(()=>{const g=r.getState();a(h,g),h=g})},[l,r,a]),Se(()=>l.tryAbandon,[l.tryAbandon]);const d=B(v=>ss({lockAPI:l,registry:o,store:r,draggableId:v}),[l,o,r]),e=B((v,h,j)=>ip({lockAPI:l,registry:o,contextId:t,store:r,draggableId:v,forceSensorStop:h||null,sourceEvent:j&&j.sourceEvent?j.sourceEvent:null}),[t,l,o,r]),f=B(v=>op(t,v),[t]),p=B(v=>{const h=o.draggable.findById(v);return h?h.options:null},[o.draggable]),u=B(function(){l.isClaimed()&&(l.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(Mr()))},[l,r]),m=B(()=>l.isClaimed(),[l]),y=V(()=>({canGetLock:d,tryGetLock:e,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:u,isLockClaimed:m}),[d,e,f,p,u,m]);for(let v=0;v<c.length;v++)c[v](y)}const lp=t=>({onBeforeCapture:r=>{const o=()=>{t.onBeforeCapture&&t.onBeforeCapture(r)};zo.flushSync(o)},onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}),dp=t=>({...Ht,...t.autoScrollerOptions,durationDampening:{...Ht.durationDampening,...t.autoScrollerOptions}});function Dt(t){return t.current||E(),t.current}function pp(t){const{contextId:r,setCallbacks:o,sensors:s,nonce:i,dragHandleUsageInstructions:c}=t,l=T.useRef(null),a=es(t),d=B(()=>lp(a.current),[a]),e=B(()=>dp(a.current),[a]),f=Td(r),p=wd({contextId:r,text:c}),u=hd(r,i),m=B(R=>{Dt(l).dispatch(R)},[]),y=V(()=>eo({publishWhileDragging:rl,updateDroppableScroll:al,updateDroppableIsEnabled:sl,updateDroppableIsCombine
66Enabled:il,collectionStarting:ol},m),[m]),v=xd(),h=V(()=>Yl(v,y),[v,y]),j=V(()=>ld({scrollWindow:Vl,scrollDroppable:h.scrollDroppable,getAutoScrollerOptions:e,...eo({move:Ba},m)}),[h.scrollDroppable,m,e]),g=gd(r),x=V(()=>Gl({announce:f,autoScroller:j,dimensionMarshal:h,focusMarshal:g,getResponders:d,styleMarshal:u}),[f,j,h,g,d,u]);l.current=x;const b=B(()=>{const R=Dt(l);R.getState().phase!=="IDLE"&&R.dispatch(Mr())},[]),O=B(()=>{const R=Dt(l).getState();return R.phase==="DROP_ANIMATING"?!0:R.phase==="IDLE"?!1:R.isDragging},[]),w=V(()=>({isDragging:O,tryAbort:b}),[O,b]);o(w);const S=B(R=>Va(Dt(l).getState(),R),[]),_=B(()=>Qe(Dt(l).getState()),[]),M=V(()=>({marshal:h,focus:g,contextId:r,canLift:S,isMovementAllowed:_,dragHandleUsageInstructionsId:p,registry:v}),[r,h,p,g,S,_,v]);return cp({contextId:r,store:x,registry:v,customSensors:s||null,enableDefaultSensors:t.enableDefaultSensors!==!1}),T.useEffect(()=>b,[b]),oe.createElement(Xn.Provider,{value:M},oe.createElement(Bu,{context:Lr,store:x},t.children))}function mp(){return oe.useId()}function is(t){const r=mp(),o=t.dragHandleUsageInstructions||en.dragHandleUsageInstructions;return oe.createElement(zu,null,s=>oe.createElement(pp,{nonce:t.nonce,contextId:r,setCallbacks:s,dragHandleUsageInstructions:o,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd,autoScrollerOptions:t.autoScrollerOptions},t.children))}const ko={dragging:5e3,dropAnimating:4500},fp=(t,r)=>r?At.drop(r.duration):t?At.snap:At.fluid,hp=(t,r)=>{if(t)return r?Ft.opacity.drop:Ft.opacity.combining},yp=t=>t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP";function gp(t){const o=t.dimension.client,{offset:s,combineWith:i,dropping:c}=t,l=!!i,a=yp(t),d=!!c,e=d?sr.drop(s,l):sr.moveTo(s);return{position:"fixed",top:o.marginBox.top,left:o.marginBox.left,boxSizing:"border-box",width:o.borderBox.width,height:o.borderBox.height,transition:fp(a,c),transform:e,opacity:hp(l,d),zIndex:d?ko.dropAnimating:ko.dragging,pointerEvents:"none"}}function vp(t){return{transform:sr.moveTo(t.offset),transition:t.shouldAnimateDisplacement?void 0:"none"}}function xp(t){return t.type==="DRAGGING"?gp(t):vp(t)}function bp(t,r,o=ue){const s=window.getComputedStyle(r),i=r.getBoundingClientRect(),c=ma(i,s),l=ln(c,o),a={client:c,tagName:r.tagName.toLowerCase(),display:s.display},d={x:c.marginBox.width,y:c.marginBox.height};return{descriptor:t,placeholder:a,displaceBy:d,client:c,page:l}}function jp(t){const r=Rr("draggable"),{descriptor:o,registry:s,getDraggableRef:i,canDragInteractiveElements:c,shouldRespectForcePress:l,isEnabled:a}=t,d=V(()=>({canDragInteractiveElements:c,shouldRespectForcePress:l,isEnabled:a}),[c,a,l]),e=B(m=>{const y=i();return y||E(),bp(o,y,m)},[o,i]),f=V(()=>({uniqueId:r,descriptor:o,options:d,getDimension:e}),[o,e,d,r]),p=T.useRef(f),u=T.useRef(!0);Se(()=>(s.draggable.register(p.current),()=>s.draggable.unregister(p.current)),[s.draggable]),Se(()=>{if(u.current){u.current=!1;return}const m=p.current;p.current=f,s.draggable.update(f,m)},[f,s.draggable])}var Fr=oe.createContext(null);function hn(t){const r=T.useContext(t);return r||E(),r}function Tp(t){t.preventDefault()}const Xp=t=>{const r=T.useRef(null),o=B((w=null)=>{r.current=w},[]),s=B(()=>r.current,[]),{contextId:i,dragHandleUsageInstructionsId:c,registry:l}=hn(Xn),{type:a,droppableId:d}=hn(Fr),e=V(()=>({id:t.draggableId,index:t.index,type:a,droppableId:d}),[t.draggableId,t.index,a,d]),{children:f,draggableId:p,isEnabled:u,shouldRespectForcePress:m,canDragInteractiveElements:y,isClone:v,mapped:h,dropAnimationFinished:j}=t;if(!v){const w=V(()=>({descriptor:e,registry:l,getDraggableRef:s,canDragInteractiveElements:y,shouldRespectForcePress:m,isEnabled:u}),[e,l,s,y,m,u]);jp(w)}const g=V(()=>u?{tabIndex:0,role:"button","aria-describedby":c,"data-rfd-drag-handle-draggable-id":p,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:Tp}:null,[i,c,p,u]),x=B(w=>{h.type==="DRAGGING"&&h.dropping&&w.propertyName==="transform"&&zo.flushSync(j)},[j,h]),b=V(()=>{const w=xp(h),S=h.type==="DRAGGING"&&h.dropping?x:void 0;return{innerRef:o,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":p,style:w,onTransitionEnd:S},dragHandleProps:g}},[i,g,p,h,x,o]),O=V(()=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}),[e.droppableId,e.id,e.index,e.type]);return oe.createElement(oe.Fragment,null,f(b,h.snapshot,O))};var us=(t,r)=>t===r,cs=t=>{const{combine:r,destination:o}=t;return o?o.droppableId:r?r.droppableId:null};const Op=t=>t.combine?t.combine.draggableId:null,wp=t=>t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null;function Np(){const t=ie((i,c)=>({x:i,y:c})),r=ie((i,c,l=null,a=null,d=null)=>({isDragging:!0,isClone:c,isDropAnimating:!!d,dropAnimation:d,mode:i,draggingOver:l,combineWith:a,combineTargetFor:null})),o=ie((i,c,l,a,d=null,e=null,f=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:d,combineWith:e,mode:c,offset:i,dimension:l,forceShouldAnimate:f,snapshot:r(c,a,d,e,null)}}));return(i,c)=>{if(Wt(i)){if(i.critical.draggable.id!==c.draggableId)return null;const l=i.current.client.offset,a=i.dimensions.draggables[c.draggableId],d=Ne(i.impact),e=wp(i.impact),f=i.forceShouldAnimate;return o(t(l.x,l.y),i.movementMode,a,c.isClone,d,e,f)}if(i.phase==="DROP_ANIMATING"){const l=i.completed;if(l.result.draggableId!==c.draggableId)return null;const a=c.isClone,d=i.dimensions.draggables[c.draggableId],e=l.result,f=e.mode,p=cs(e),u=Op(e),y={duration:i.dropDuration,curve:Cr.drop,moveTo:i.newHomeClientOffset,opacity:u?Ft.opacity.drop:null,
66scale:u?Ft.scale.drop:null};return{mapped:{type:"DRAGGING",offset:i.newHomeClientOffset,dimension:d,dropping:y,draggingOver:p,combineWith:u,mode:f,forceShouldAnimate:null,snapshot:r(f,a,p,u,y)}}}return null}}function ls(t=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:t,combineWith:null}}const Sp={mapped:{type:"SECONDARY",offset:ue,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ls(null)}};function kp(){const t=ie((l,a)=>({x:l,y:a})),r=ie(ls),o=ie((l,a=null,d)=>({mapped:{type:"SECONDARY",offset:l,combineTargetFor:a,shouldAnimateDisplacement:d,snapshot:r(a)}})),s=l=>l?o(ue,l,!0):null,i=(l,a,d,e)=>{const f=d.displaced.visible[l],p=!!(e.inVirtualList&&e.effected[l]),u=xn(d),m=u&&u.draggableId===l?a:null;if(!f){if(!p)return s(m);if(d.displaced.invisible[l])return null;const h=Ot(e.displacedBy.point),j=t(h.x,h.y);return o(j,m,!0)}if(p)return s(m);const y=d.displacedBy.point,v=t(y.x,y.y);return o(v,m,f.shouldAnimate)};return(l,a)=>{if(Wt(l))return l.critical.draggable.id===a.draggableId?null:i(a.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){const d=l.completed;return d.result.draggableId===a.draggableId?null:i(a.draggableId,d.result.draggableId,d.impact,d.afterCritical)}return null}}const Dp=()=>{const t=Np(),r=kp();return(s,i)=>t(s,i)||r(s,i)||Sp},Mp={dropAnimationFinished:Ha},Ep=pa(Dp,Mp,null,{context:Lr,areStatePropsEqual:us})(Xp);function ds(t){return hn(Fr).isUsingCloneFor===t.draggableId&&!t.isClone?null:oe.createElement(Ep,t)}function ps(t){const r=typeof t.isDragDisabled=="boolean"?!t.isDragDisabled:!0,o=!!t.disableInteractiveElementBlocking,s=!!t.shouldRespectForcePress;return oe.createElement(ds,sn({},t,{isClone:!1,isEnabled:r,canDragInteractiveElements:o,shouldRespectForcePress:s}))}const ms=t=>r=>t===r,Cp=ms("scroll"),Ap=ms("auto"),Do=(t,r)=>r(t.overflowX)||r(t.overflowY),Pp=t=>{const r=window.getComputedStyle(t),o={overflowX:r.overflowX,overflowY:r.overflowY};return Do(o,Cp)||Do(o,Ap)},_p=()=>!1,fs=t=>t==null?null:t===document.body?_p()?t:null:t===document.documentElement?null:Pp(t)?t:fs(t.parentElement);var cr=t=>({x:t.scrollLeft,y:t.scrollTop});const hs=t=>t?window.getComputedStyle(t).position==="fixed"?!0:hs(t.parentElement):!1;var Ip=t=>{const r=fs(t),o=hs(t);return{closestScrollable:r,isFixedOnPage:o}},Lp=({descriptor:t,isEnabled:r,isCombineEnabled:o,isFixedOnPage:s,direction:i,client:c,page:l,closest:a})=>{const d=(()=>{if(!a)return null;const{scrollSize:u,client:m}=a,y=Ua({scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth,height:m.paddingBox.height,width:m.paddingBox.width});return{pageMarginBox:a.page.marginBox,frameClient:m,scrollSize:u,shouldClipSubject:a.shouldClipSubject,scroll:{initial:a.scroll,current:a.scroll,max:y,diff:{value:ue,displacement:ue}}}})(),e=i==="vertical"?wr:Oa,f=yt({page:l,withPlaceholder:null,axis:e,frame:d});return{descriptor:t,isCombineEnabled:o,isFixedOnPage:s,axis:e,isEnabled:r,client:c,page:l,frame:d,subject:f}};const Rp=(t,r)=>{const o=fa(t);if(!r||t!==r)return o;const s=o.paddingBox.top-r.scrollTop,i=o.paddingBox.left-r.scrollLeft,c=s+r.scrollHeight,l=i+r.scrollWidth,d=jr({top:s,right:l,bottom:c,left:i},o.border);return Tr({borderBox:d,margin:o.margin,border:o.border,padding:o.padding})};var Bp=({ref:t,descriptor:r,env:o,windowScroll:s,direction:i,isDropDisabled:c,isCombineEnabled:l,shouldClipSubject:a})=>{const d=o.closestScrollable,e=Rp(t,d),f=ln(e,s),p=(()=>
66{if(!d)return null;const m=fa(d),y={scrollHeight:d.scrollHeight,scrollWidth:d.scrollWidth};return{client:m,page:ln(m,s),scroll:cr(d),scrollSize:y,shouldClipSubject:a}})();return Lp({descriptor:r,isEnabled:!c,isCombineEnabled:l,isFixedOnPage:o.isFixedOnPage,direction:i,client:e,page:f,closest:p})};const Fp={passive:!1},Hp={passive:!0};var Mo=t=>t.shouldPublishImmediately?Fp:Hp;const Jt=t=>t&&t.env.closestScrollable||null;function Wp(t){const r=T.useRef(null),o=hn(Xn),s=Rr("droppable"),{registry:i,marshal:c}=o,l=es(t),a=V(()=>({id:t.droppableId,type:t.type,mode:t.mode}),[t.droppableId,t.mode,t.type]),d=T.useRef(a),e=V(()=>ie((b,O)=>{r.current||E();const w={x:b,y:O};c.updateDroppableScroll(a.id,w)}),[a.id,c]),f=B(()=>{const b=r.current;return!b||!b.env.closestScrollable?ue:cr(b.env.closestScrollable)},[]),p=B(()=>{const b=f();e(b.x,b.y)},[f,e]),u=V(()=>It(p),[p]),m=B(()=>{const b=r.current,O=Jt(b);if(b&&O||E(),b.scrollOptions.shouldPublishImmediately){p();return}u()},[u,p]),y=B((b,O)=>{r.current&&E();const w=l.current,S=w.getDroppableRef();S||E();const _=Ip(S),M={ref:S,descriptor:a,env:_,scrollOptions:O};r.current=M;const R=Bp({ref:S,descriptor:a,env:_,windowScroll:b,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),H=_.closestScrollable;return H&&(H.setAttribute(Oo.contextId,o.contextId),H.addEventListener("scroll",m,Mo(M.scrollOptions))),R},[o.contextId,a,m,l]),v=B(()=>{const b=r.current,O=Jt(b);return b&&O||E(),cr(O)},[]),h=B(()=>{const b=r.current;b||E();const O=Jt(b);r.current=null,O&&(u.cancel(),O.removeAttribute(Oo.contextId),O.removeEventListener("scroll",m,Mo(b.scrollOptions)))},[m,u]),j=B(b=>{const O=r.current;O||E();const w=Jt(O);w||E(),w.scrollTop+=b.y,w.scrollLeft+=b.x},[]),g=V(()=>({getDimensionAndWatchScroll:y,getScrollWhileDragging:v,dragStopped:h,scroll:j}),[h,y,v,j]),x=V(()=>({uniqueId:s,descriptor:a,callbacks:g}),[g,a,s]);Se(()=>(d.current=x.descriptor,i.droppable.register(x),()=>{r.current&&h(),i.droppable.unregister(x)}),[g,a,h,x,c,i.droppable]),Se(()=>{r.current&&c.updateDroppableIsEnabled(d.current.id,!t.isDropDisabled)},[t.isDropDisabled,c]),Se(()=>{r.current&&c.updateDroppableIsCombineEnabled(d.current.id,t.isCombineEnabled)},[t.isCombineEnabled,c])}function Yn(){}const Eo={width:0,height:0,margin:Ju},Gp=({isAnimatingOpenOnMount:t,placeholder:r,animate:o})=>t||o==="close"?Eo:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin},zp=({isAnimatingOpenOnMount:t,placeholder:r,animate:o})=>{const s=Gp({isAnimatingOpenOnMount:t,placeholder:r,animate:o});return{display:r.display,boxSizing:"border-box",width:s.width,height:s.height,marginTop:s.margin.top,marginRight:s.margin.right,marginBottom:s.margin.bottom,marginLeft:s.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:o!=="none"?At.placeholder:null}},Up=t=>{const r=T.useRef(null),o=B(()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),{animate:s,onTransitionEnd:i,onClose:c,contextId:l}=t,[a,d]=T.useState(t.animate==="open");T.useEffect(()=>a?s!=="open"?(o(),d(!1),Yn):r.current?Yn:(r.current=setTimeout(()=>{r.current=null,d(!1)}),o):Yn,[s,a,o]);const e=B(p=>{p.propertyName==="height"&&(i(),s==="close"&&c())},[s,c,i]),f=zp({isAnimatingOpenOnMount:a,animate:t.animate,placeholder:t.placeholder});return oe.createElement(t.placeholder.tagName,{style:f,"data-rfd-placeholder-context-id":l,onTransitionEnd:e,ref:t.innerRef})};var $p=oe.memo(Up);class Yp extends oe.PureComponent{constructor(...r){super(...r),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(r,o){return r.shouldAnimate?r.on?{isVisible:!0,data:r.on,animate:"open"}:o.isVisible?{isVisible:!0,data:o.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!r.on,data:r.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const r={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(r)}}const Vp=t=>{const r=T.useContext(Xn);r||E();const{contextId:o,isMovementAllowed:s}=r,i=T.useRef(null),c=T.useRef(null),{children:l,droppableId:a,type:d,mode:e,direction:f,ignoreContainerClipping:p,isDropDisabled:u,isCombine
66Enabled:m,snapshot:y,useClone:v,updateViewportMaxScroll:h,getContainerForClone:j}=t,g=B(()=>i.current,[]),x=B((H=null)=>{i.current=H},[]);B(()=>c.current,[]);const b=B((H=null)=>{c.current=H},[]),O=B(()=>{s()&&h({maxScroll:Ya()})},[s,h]);Wp({droppableId:a,type:d,mode:e,direction:f,isDropDisabled:u,isCombineEnabled:m,ignoreContainerClipping:p,getDroppableRef:g});const w=V(()=>oe.createElement(Yp,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},({onClose:H,data:N,animate:L})=>oe.createElement($p,{placeholder:N,onClose:H,innerRef:b,animate:L,contextId:o,onTransitionEnd:O})),[o,O,t.placeholder,t.shouldAnimatePlaceholder,b]),S=V(()=>({innerRef:x,placeholder:w,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":o}}),[o,a,w,x]),_=v?v.dragging.draggableId:null,M=V(()=>({droppableId:a,type:d,isUsingCloneFor:_}),[a,_,d]);function R(){if(!v)return null;const{dragging:H,render:N}=v,L=oe.createElement(ds,{draggableId:H.draggableId,index:H.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(G,Z)=>N(G,Z,H));return Xs.createPortal(L,j())}return oe.createElement(Fr.Provider,{value:M},l(S,y),R())};function qp(){return document.body||E(),document.body}const Co={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:qp},ys=t=>{let r={...t},o;for(o in Co)t[o]===void 0&&(r={...r,[o]:Co[o]});return r},Vn=(t,r)=>t===r.droppable.type,Ao=(t,r)=>r.draggables[t.draggable.id],Kp=()=>{const t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r={...t,shouldAnimatePlaceholder:!1},o=ie(c=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}})),s=ie((c,l,a,d,e,f)=>{const p=e.descriptor.id;if(e.descriptor.droppableId===c){const y=f?{render:f,dragging:o(e.descriptor)}:null,v={isDraggingOver:a,draggingOverWith:a?p:null,draggingFromThisWith:p,isUsingPlaceholder:!0};return{placeholder:e.placeholder,shouldAnimatePlaceholder:!1,snapshot:v,useClone:y}}if(!l)return r;if(!d)return t;const m={isDraggingOver:a,draggingOverWith:p,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:e.placeholder,shouldAnimatePlaceholder:!0,snapshot:m,useClone:null}});return(c,l)=>{const a=ys(l),d=a.droppableId,e=a.type,f=!a.isDropDisabled,p=a.renderClone;if(Wt(c)){const u=c.critical;if(!Vn(e,u))return r;const m=Ao(u,c.dimensions),y=Ne(c.impact)===d;return s(d,f,y,y,m,p)}if(c.phase==="DROP_ANIMATING"){const u=c.completed;if(!Vn(e,u.critical))return r;const m=Ao(u.critical,c.dimensions);return s(d,f,cs(u.result)===d,Ne(u.impact)===d,m,p)}if(c.phase==="IDLE"&&c.completed&&!c.shouldFlush){const u=c.completed;if(!Vn(e,u.critical))return r;const m=Ne(u.impact)===d,y=!!(u.impact.at&&u.impact.at.type==="COMBINE"),v=u.critical.droppable.id===d;return m?y?t:r:v?t:r}return r}},Jp={updateViewportMaxScroll:cl},gs=pa(Kp,Jp,(t,r,o)=>({...ys(o),...t,...r}),{context:Lr,areStatePropsEqual:us})(Vp);function Po({actions:t,onChange:r}){const o=a=>{if(!a.destination)return;const d=Array.from(t),[e]=d.splice(a.source.index,1);d.splice(a.destination.index,0,e),r(d)},s=()=>{r([...t,{type:"click",target:""}])},i=a=>{const d=[...t];d.splice(a,1),r(d)},c=(a,d,e)=>{const f=[...t];f[a]={...f[a],[d]:e},r(f)},l=(a,d)=>d==="target"?["navigate","javascript","screenshot"].includes(a.type):d==="value"?!a.type||["screenshot","click","clear","submit","frame","scroll"].includes(a.type):!1;return n.jsxs("div",{className:"space-y-4",children:[t.length>0&&n.jsx("div",{className:"border rounded-lg overflow-hidden",children:n.jsx(is,{onDragEnd:o,children:n.jsxs(lr,{children:[n.jsx(dr,{children:n.jsxs(Be,{children:[n.jsx(Te,{className:"w-[40px]"}),n.jsx(Te,{className:"w-[50px]",children:"#"}),n.jsx(Te,{className:"w-[150px]",children:"Type"}),n.jsx(Te,{children:"Selector"}),n.jsx(Te,{children:"Value"}),n.jsx(Te,{className:"w-[80px]",children:"Action"})]})}),n.jsx(gs,{droppableId:"actions",children:a=>n.jsxs(pr,{...a.droppableProps,ref:a.innerRef,children:[t.map((d,e)=>n.jsx(ps,{draggableId:`action-${e}`,index:e,children:(f,p)=>n.jsxs(Be,{ref:f.innerRef,...f.draggableProps,className:p.isDragging?"bg-muted/50":"",children:[n.jsx(ce,{...f.dragHandleProps,children:n.jsx(Vo,{className:"h-4 w-4 text-muted-foreground cursor-grab active:cursor-grabbing"})}),n.jsx(ce,{className:"font-medium",children:e+1}),n.jsx(ce,{children:n.jsxs(Fe,{value:d.type,onValueChange:u=>c(e,"type",u),children:[n.jsx(He,{className:"h-8 w-32",children:n.jsx(We,{placeholder:"Type"})}),n.jsx(Ge,{children:Ai.map(u=>n.jsx(ge,{value:u.value,children:u.name},u.value))})]})}),n.jsx(ce,{children:n.jsx(F,{value:d.target||"",disabled:l(d,"target"),onChange:u=>c(e,"target",u.target.value),placeholder:"CSS selector",className:"h-8"})}),n.jsx(ce,{children:n.jsx(F,{value:d.value||"",disabled:l(d,"value"),onChange:u=>c(e,"value",u.target.value),placeholder:d.type==="type"?"Value to type":"-",className:"h-8"})}),n.jsx(ce,{children:n.jsx(I,{variant:"ghost",size:"sm",className:"text-destructive",onClick:()=>i(e),children:n.jsx(_t,{className:"h-4 w-4"})})})]})},`action-${e}`)),a.placeholder]})})]})})}),n.jsxs(I,{onClick:s,variant:"outline",size:"sm",children:[n.jsx(Ue,{className:"h-4 w-4 mr-2"})," Add Action"]})]})}const Qt=[{function:"Append",description:"The given value will be appended after the field result",parameters:[{key:"Input",value:""}]},{function:"Contains",description:"To return True or False if given value contains in the field result",parameters:[{key:"Input",value:""}]},{function:"EndsWith",description:"To return True or False, if the field result ends with given value string",parameters:[{key:"Input",value:""}]},{function:"Equals",description:"To return True or False, if the field result matches to given input using (no case sensitive)",parameters:[{key:"Input",value:""}]},{function:"Insert",description:"The given value will be inserted before field result",parameters:[{key:"Input",value:""}]},{function:"Regex",description:"Regular expression to extract something from field result",parameters:[{key:"Expression",value:""},{key:"Group",value:""}]},{function:"StartsWith",description:"To return True if given value matches the beginning of the field result; otherwise, False.",parameters:[{key:"Input",value:""}]},{function:"Length",parameters:[]},{function:"RegexReplace",description:"The REGEX expression to be replaced",parameters:[{key:"ReplaceWhat",value:""},{key:"ReplaceWith",value:""}]},{function:"Replace",description:"To replace the text with some other values",parameters:[{key:"ReplaceWhat",value:""},{key:"ReplaceWith",value:""}]},{function:"ToLower",description:"To lower case all the text.",parameters:[]},{function:"ToUpper",description:"The upper case all the text.",parameters:[]},{function:"JoinDelimiter",description:"Custom delimiter value for `Join` result feature",parameters:[{key:"Delimiter",value:""}]},{function:"Remove",description:"Remove characters using start index and count with zero-based position to begin deleting characters",parameters:[{key:"StartIndex",value:""},{key:"Count",value:""}]}];function Qp({open:t,onOpenChange:r,appliedFunctions:o,onSave:s,fieldName:i}){const[c,l]=T.useState([]),[a,d]=T.useState(!1),[e,f]=T.useState("");T.useEffect(()=>{t&&(l([...o.map(g=>({...g,parameters:g.parameters.map(x=>({...x}))}))]),f(""))},[t,o]);const p=()=>
66{if(!e)return;const g=Qt.find(x=>x.function===e);g&&(l(x=>[...x,{function:g.function,parameters:g.parameters.map(b=>({...b}))}]),f(""))},u=(g,x,b)=>{l(O=>O.map((w,S)=>S===g?{...w,parameters:w.parameters.map((_,M)=>M===x?{..._,value:b}:_)}:w))},m=g=>{l(x=>x.filter((b,O)=>O!==g))},y=g=>{g!==0&&l(x=>{const b=[...x];return[b[g-1],b[g]]=[b[g],b[g-1]],b})},v=g=>{l(x=>{if(g>=x.length-1)return x;const b=[...x];return[b[g],b[g+1]]=[b[g+1],b[g]],b})},h=()=>{s(c),r(!1)},j=Qt.find(g=>g.function===e);return n.jsx(mr,{open:t,onOpenChange:r,children:n.jsxs(fr,{className:"flex flex-col sm:max-w-md gap-1",children:[n.jsxs(hr,{children:[n.jsx(yr,{children:"Post Processing"}),n.jsxs(Uo,{children:['Configure functions for "',i,'". Applied top to bottom.']})]}),n.jsxs("div",{className:"flex items-center gap-2 pt-2 px-4",children:[n.jsxs(tt,{open:a,onOpenChange:d,modal:!0,children:[n.jsx(nt,{asChild:!0,children:n.jsxs(I,{variant:"outline",role:"combobox","aria-expanded":a,className:"flex-1 justify-between font-normal",children:[j?j.function:"Select a function...",n.jsx(lt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),n.jsx(rt,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:n.jsxs(ot,{children:[n.jsx(at,{placeholder:"Search functions..."}),n.jsxs(Os,{children:[n.jsx(st,{children:"No function found."}),n.jsx(it,{children:Qt.map(g=>n.jsxs(ut,{value:`${g.function} ${g.description||""}`,onSelect:()=>{f(g.function),d(!1)},className:"flex items-start gap-2",children:[n.jsx(qo,{className:"h-4 w-4 mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("div",{className:"font-medium text-sm",children:g.function}),g.description&&n.jsx("div",{className:"text-xs text-muted-foreground",children:g.description})]}),e===g.function&&n.jsx(Ze,{className:"ml-auto h-4 w-4 shrink-0"})]},g.function))})]})]})})]}),n.jsxs(I,{variant:"outline",disabled:!e,onClick:p,children:["Add",n.jsx(Ue,{className:"h-4 w-4"})]})]}),n.jsx(gr,{className:"my-2"}),n.jsx("div",{className:"p-4 overflow-auto",children:n.jsx("div",{className:"space-y-3",children:c.length===0?n.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:"No functions added yet. Select one above."}):c.map((g,x)=>{const b=Qt.find(O=>O.function===g.function);return n.jsxs("div",{className:"rounded-lg border bg-card p-3 space-y-3",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("div",{className:"flex flex-col gap-0.5",children:[n.jsx(I,{variant:"ghost",size:"icon",className:"h-5 w-5",disabled:x===0,onClick:()=>y(x),children:n.jsx(Ko,{className:"h-3 w-3"})}),n.jsx(I,{variant:"ghost",size:"icon",className:"h-5 w-5",disabled:x===c.length-1,onClick:()=>v(x),children:n.jsx(nn,{className:"h-3 w-3"})})]}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:"font-medium text-sm",children:g.function}),(b==null?void 0:b.description)&&n.jsx("div",{className:"text-xs text-muted-foreground truncate",children:b.description})]}),n.jsx(I,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0 text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>m(x),children:n.jsx(dt,{className:"h-3.5 w-3.5"})})]}),g.parameters.length>0&&n.jsx("div",{className:"space-y-2",children:g.parameters.map((O,w)=>n.jsxs("div",{className:"space-y-1",children:[n.jsx(k,{className:"text-xs",children:O.key}),n.jsx(F,{className:"h-8 text-sm",type:"text",value:O.value,onChange:S=>u(x,w,S.target.value),placeholder:`Enter ${O.key.toLowerCase()}`})]},O.key))})]},`${g.function}-${x}`)})})}),n.jsx(ws,{className:"pt-2",children:n.jsxs(I,{onClick:h,children:[n.jsx(Ze,{className:"mr-2 h-4 w-4"}),"Add"]})})]})})}const Zp=["CSS","DEFAULT","INPUT","JSON","REGEX"],em=["TEXT","ATTR","HTML","INNERHTML","OUTERTEXT"],tm=["url","status","timestamp","screenshot","full_screenshot","hd_screenshot","page_cache","response_url","response_headers","response_content"],nm={CSS:"Enter CSS selector",REGEX:"Enter REGEX expression",INPUT:"Enter the field name from input file",JSON:"Enter the JSON path"};function rm({collections:t,onChange:r}){const[o,s]=T.useState(null),[i,c]=T.useState(!1),l=()=>{const v={name:`Collection${t.length+1}`,fields:[{name:"url",type:"DEFAULT",selector:"",extract:"TEXT",from:"url"}]};r([...t,v])},a=(v,h)=>{const j=t.map((g,x)=>x===v?{...g,...h}:g);r(j)},d=v=>{r(t.filter((h,j)=>j!==v))},e=v=>{const h={name:"",type:"CSS",selector:"",extract:"TEXT"},j=t.map((g,x)=>
66x===v?{...g,fields:[...g.fields,h]}:g);r(j)},f=(v,h,j)=>{const g=t.map((x,b)=>b===v?{...x,fields:x.fields.map((O,w)=>w===h?{...O,...j}:O)}:x);r(g)},p=(v,h)=>{const j=t.map((g,x)=>x===v?{...g,fields:g.fields.filter((b,O)=>O!==h)}:g);r(j)},u=(v,h,j)=>{const g=[...t],[x]=g[v].fields.splice(h,1);g[v].fields.splice(j,0,x),r(g)},m=(v,h,j)=>{s({field:v,collectionIndex:h,fieldIndex:j}),c(!0)},y=v=>{o&&f(o.collectionIndex,o.fieldIndex,{...o.field,post_processing:v})};return n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold",children:"Fields & Collections"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Define what data to extract from web pages. Each collection can have multiple fields with CSS selectors, JSON Path, or Regex patterns."})]}),n.jsxs("div",{className:"space-y-4",children:[t.map((v,h)=>n.jsxs(xe,{children:[n.jsxs(Oe,{className:"flex flex-row items-center justify-between",children:[n.jsx("div",{children:n.jsx(F,{value:v.name,onChange:j=>{a(h,{name:j.target.value})},className:"w-[200px]"})}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs(I,{variant:"outline",size:"sm",onClick:()=>e(h),children:[n.jsx(Ue,{className:"h-4 w-4 mr-1"})," Add Field"]}),n.jsx(I,{variant:"outline",size:"sm",className:"text-destructive",onClick:()=>d(h),children:n.jsx(_t,{className:"h-4 w-4"})})]})]}),n.jsx(be,{children:n.jsx(is,{onDragEnd:j=>{j.destination&&u(h,j.source.index,j.destination.index)},children:n.jsx(gs,{droppableId:`collection-${h}`,children:j=>n.jsxs("div",{...j.droppableProps,ref:j.innerRef,className:"space-y-2",children:[v.fields.map((g,x)=>n.jsx(ps,{draggableId:`${h}-${x}`,index:x,children:b=>{var O;return n.jsxs("div",{ref:b.innerRef,...b.draggableProps,className:"flex items-start gap-2 p-2 border rounded-md",children:[n.jsx("div",{...b.dragHandleProps,className:"mt-2 cursor-move",children:n.jsx(Vo,{className:"h-4 w-4"})}),n.jsxs("div",{className:"flex-1 space-y-2",children:[n.jsxs("div",{className:"flex items-center justify-between gap-2",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(F,{value:g.name,onChange:w=>f(h,x,{...g,name:w.target.value}),placeholder:"Field name",className:"w-[200px]"}),n.jsxs(Fe,{value:g.type,onValueChange:w=>f(h,x,{...g,type:w,selector:"",extract:"",attribute:""}),children:[n.jsx(He,{className:"w-[150px]",children:n.jsx(We,{placeholder:"Select type"})}),n.jsx(Ge,{children:Zp.map(w=>n.jsx(ge,{value:w,children:w},w))})]}),g.type==="CSS"&&n.jsxs(Fe,{value:g.extract,onValueChange:w=>f(h,x,{...g,extract:w}),children:[n.jsx(He,{className:"w-[150px]",children:n.jsx(We,{placeholder:"Extract"})}),n.jsx(Ge,{children:em.map(w=>n.jsx(ge,{value:w,children:w},w))})]})]}),n.jsxs("div",{children:[n.jsx(I,{variant:"ghost",size:"sm",onClick:()=>u(h,x,x-1),disabled:x===0,children:n.jsx(Ko,{className:"h-4 w-4"})}),n.jsx(I,{variant:"ghost",size:"sm",onClick:()=>u(h,x,x+1),disabled:x===v.fields.length-1,children:n.jsx(nn,{className:"h-4 w-4"})}),n.jsx(I,{variant:"ghost",size:"sm",className:"text-destructive",onClick:()=>p(h,x),children:n.jsx(_t,{className:"h-4 w-4"})})]})]}),g.type!=="DEFAULT"&&g.type!=="INPUT"&&n.jsx(F,{value:g.selector,onChange:w=>f(h,x,{...g,selector:w.target.value}),placeholder:nm[g.type]||"Enter value"}),g.type==="CSS"&&g.extract==="ATTR"&&n.jsx(F,{value:g.attribute,onChange:w=>f(h,x,{...g,attribute:w.target.value}),placeholder:"Attribute name"}),g.type==="REGEX"&&n.jsx(F,{value:g.extract,onChange:w=>f(h,x,{...g,extract:w.target.value}),placeholder:"Group index or name"}),(g.type==="DEFAULT"||g.type==="CSS"||g.type==="INPUT")&&n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(F,{value:g.from,onChange:w=>f(h,x,{...g,from:w.target.value}),placeholder:g.type==="CSS"?"Enter parent CSS selector (e.g. .product-card)":g.type==="DEFAULT"?"Enter static default value":"Enter input field name",className:"flex-1"}),g.type==="DEFAULT"&&n.jsxs(pt,{children:[n.jsx(mt,{asChild:!0,children:n.jsxs(I,{variant:"outline",className:"w-40 justify-between",children:[n.jsx("span",{children:"OPTIONS"}),n.jsx(nn,{className:"w-4 h-4 opacity-70"})]})}),n.jsx(ft,{align:"end",children:tm.map(w=>n.jsx(je,{onClick:()=>f(h,x,{...g,from:w}),children:w.toUpperCase()},w))})]})]}),n.jsxs("div",{className:"flex items-center justify-start gap-3 mt-2",children:[g.type&&["CSS","REGEX","JSON"].includes(g.type)&&n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(ee,{checked:!!g.join,onCheckedChange:w=>f(h,x,{...g,join:w})}),n.jsx("label",{className:"text-sm font-medium",children:"Join Result"}),n.jsx(Ns,{delayDuration:200,children:n.jsxs(Ss,{children:[n.jsx(ks,{asChild:!0,children:n.jsx("button",{type:"button",className:"text-muted-foreground hover:text-foreground",children:n.jsx(Hs,{className:"w-4 h-4"})})}),n.jsxs(Ds,{className:"max-w-xs text-sm leading-relaxed",children:[n.jsx("p",{children:"Automatically join multiple matched values into a single str
66ing separated by commas (A, B, C)."}),n.jsx("a",{href:"https://agenty.com/docs/join-two-or-more-extracted-rows-into-single-cell/147",target:"_blank",rel:"noopener noreferrer",className:"mt-2 underline",children:"Learn more"})]})]})})]}),n.jsxs(I,{variant:"outline",size:"sm",onClick:()=>m(g,h,x),children:[n.jsx(qo,{className:"mr-2 h-4 w-4"}),"Functions",((O=g.post_processing)==null?void 0:O.length)>0&&n.jsx(De,{variant:"secondary",className:"ml-2",children:g.post_processing.length})]})]})]})]})}},`${h}-${x}`)),j.placeholder]})})})})]},h)),n.jsxs(I,{onClick:l,variant:"outline",size:"sm",children:[n.jsx(Ue,{className:"h-4 w-4 mr-2"})," Add Collection"]})]}),n.jsx(Qp,{open:i,onOpenChange:c,appliedFunctions:(o==null?void 0:o.field.post_processing)||[],onSave:y,fieldName:(o==null?void 0:o.field.name)||""})]})}function om({config:t,onChange:r}){const[o,s]=T.useState(""),i=()=>{const l=o.trim();l&&!t.keywords.includes(l)&&(r({...t,keywords:[...t.keywords,l]}),s(""))},c=l=>{r({...t,keywords:t.keywords.filter(a=>a!==l)})};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs(xe,{children:[n.jsx(Oe,{children:n.jsx(Me,{className:"text-base",children:"Watch Settings"})}),n.jsxs(be,{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"url",children:"URL"}),n.jsx(F,{id:"url",value:t.url,onChange:l=>r({...t,url:l.target.value}),placeholder:"https://example.com"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"selector",children:"CSS Selector"}),n.jsx(F,{id:"selector",value:t.selector,onChange:l=>r({...t,selector:l.target.value}),placeholder:".panel"})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Extract"}),n.jsxs(Fe,{value:t.extract,onValueChange:l=>r({...t,extract:l,attribute:l==="ATTR"?t.attribute||"":null}),children:[n.jsx(He,{className:"w-full",children:n.jsx(We,{})}),n.jsxs(Ge,{children:[n.jsx(ge,{value:"TEXT",children:"TEXT"}),n.jsx(ge,{value:"ATTR",children:"ATTR"}),n.jsx(ge,{value:"HTML",children:"HTML"})]})]})]}),t.extract==="ATTR"&&n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"attribute",children:"Attribute Name"}),n.jsx(F,{id:"attribute",value:t.attribute||"",onChange:l=>r({...t,attribute:l.target.value}),placeholder:"href",disabled:!0})]})]})]})]}),n.jsxs(xe,{children:[n.jsx(Oe,{children:n.jsx(Me,{className:"text-base",children:"Keyword Settings"})}),n.jsxs(be,{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Keywords"}),n.jsxs("div",{className:"flex gap-2",children:[n.jsx(F,{value:o,onChange:l=>s(l.target.value),onKeyDown:l=>l.key==="Enter"&&(l.preventDefault(),i()),placeholder:"Add keyword and press Enter"}
66),n.jsx(I,{type:"button",variant:"secondary",onClick:i,children:"Add"})]}),t.keywords.length>0&&n.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:t.keywords.map(l=>n.jsxs(De,{variant:"secondary",className:"gap-1",children:[l,n.jsx("button",{onClick:()=>c(l),children:n.jsx(Jo,{className:"h-3 w-3"})})]},l))})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Trigger on keyword"}),n.jsxs(Fe,{value:t.keywords_change,onValueChange:l=>r({...t,keywords_change:l}),children:[n.jsx(He,{className:"w-full",children:n.jsx(We,{})}),n.jsxs(Ge,{children:[n.jsx(ge,{value:"added",children:"Added"}),n.jsx(ge,{value:"removed",children:"Removed"})]})]})]})]})]}),n.jsxs(xe,{children:[n.jsx(Oe,{children:n.jsx(Me,{className:"text-base",children:"Screenshot Settings"})}),n.jsx(be,{children:n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Screenshot Type"}),n.jsxs(Fe,{value:t.screenshot_type,onValueChange:l=>r({...t,screenshot_type:l}),children:[n.jsx(He,{className:"w-full",children:n.jsx(We,{})}),n.jsxs(Ge,{children:[n.jsx(ge,{value:"visible",children:"Visible Area"}),n.jsx(ge,{value:"full",children:"Full Page"})]})]})]})})]}),n.jsxs(xe,{children:[n.jsx(Oe,{children:n.jsx(Me,{className:"text-base",children:"Notification Settings"})}),n.jsxs(be,{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"emails",children:"Email Addresses"}),n.jsx($e,{id:"emails",className:"min-h-[100px]",value:t.emails,onChange:l=>r({...t,emails:l.target.value}),placeholder:"one email per line"})]}),n.jsx(gr,{}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(k,{htmlFor:"attach_screenshot",children:"Attach Screenshot"}),n.jsx(ee,{id:"attach_screenshot",checked:t.attach_screenshot,onCheckedChange:l=>r({...t,attach_screenshot:l})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(k,{htmlFor:"ignore_minor_changes",children:"Ignore Minor Changes"}),n.jsx(ee,{id:"ignore_minor_changes",checked:t.ignore_minor_changes,onCheckedChange:l=>r({...t,ignore_minor_changes:l})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(k,{htmlFor:"error_alert",children:"Error Alert"}),n.jsx(ee,{id:"error_alert",checked:t.error_alert,onCheckedChange:l=>r({...t,error_alert:l})})]})]})]})]})}const _o=[{value:"fields",label:"Fields & Collections",types:["crawling","scraping"]},{value:"config",label:"Watch Configuration",types:["changedetection"]},{value:"crawler",label:"Crawler Settings",types:["crawling"]},{value:"patterns",label:"Patterns & Rules",types:["crawling"]},{value:"pagination",label:"Pagination",types:["scraping"]},{value:"login",label:"Login",types:["scraping"]},{value:"form",label:"Form Submit",types:["scraping"]},{value:"headers",label:"Headers & Cookies",types:["scraping"]},{value:"proxy",label:"Proxy",types:["crawling","scraping","changedetection"]},{value:"waitfor",label:"Wait For",types:["scraping","crawling","changedetection"]},{value:"browser",label:"Browser Settings",types:["crawling","scraping","changedetection"]}],am=`\r
67// Go to the \`url\` from input reqeust, extract title and return the results\r
68\rmodule.exports = async ({ page, request }) => {\r
69    const response = await page.goto(request.url, {waitUntil: 'networkidle2'});            \r
70    console.log(response.status());\r
71    \r
72    const pageTitle = await page.title();\r
73    \r
74    return {\r
75        data : { title : pageTitle },\r
76        type : 'application/json'\r
77    };   \r
78};`;function sm({config:t,onChange:r,onSubmit:o,agentType:s="scraping",isSubmitting:i}){var u,m,y,v,h,j,g,x,b,O,w,S,_,M,R,H,N,L,G,Z,se,re;const{theme:c}=ta(),{authUser:l}=gn(),[a,d]=T.useState((u=_o.find(X=>X.types.includes(s)))==null?void 0:u.value),e=()=>{if(t.developer_mode){const X={...t,code:t.code,developer_mode:!0};r(t),o(X)}else o(t)},f=()=>{r({...t,developer_mode:!t.developer_mode})},p=Ci.map(X=>{const A=l.level;return{...X,available:A||X.plan.includes(l.plan)}});return n.jsxs(xe,{className:"gap-0 pb-0 pt-2",children:[n.jsx(Oe,{className:"border-b sticky top-0 z-10 bg-card pt-4",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx(Me,{children:"Agent Configuration"}),s==="scraping"&&n.jsxs(Ye,{children:["Configure your agent settings and data extraction rules for scraping"," ",n.jsxs("a",{href:"https://agenty.com/docs/how-to-create-a-scraping-agent-to-extract-data-from-websites/136",target:"_blank",className:"inline-flex items-center text-blue-600 hover:underline",children:["Learn more ",n.jsx(ve,{className:"w-4 h-4 ml-1"})]})]}),s==="changedetection"&&n.jsxs(Ye,{children:["Configure your agent settings, watch confiuration and alerts for change detection"," ",n.jsxs("a",{href:"https://agenty.com/docs/how-to-create-a-website-change-detection-agent/95",target:"_blank",className:"inline-flex items-center text-blue-600 hover:underline",children:["Learn more ",n.jsx(ve,{className:"w-4 h-4 ml-1"})]})]}),s==="crawling"&&n.jsxs(Ye,{children:["Configure your agent settings, crawling rules and depth for web crawling"," ",n.jsxs("a",{href:"https://agenty.com/products/crawling-agent",target:"_blank",className:"inline-flex items-center text-blue-600 hover:underline",children:["Learn more ",n.jsx(ve,{className:"w-4 h-4 ml-1"})]})]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[s==="scraping"&&n.jsxs(I,{variant:"outline",onClick:f,children:[n.jsx(Ws,{className:"h-4 w-4 mr-2"}),t.developer_mode?"Visual Mode":"Developer Mode"]}),n.jsxs(I,{onClick:e,children:[i?n.jsx(Xe,{className:"mr-2 h-4 w-4 animate-spin"}):n.jsx(Qo,{className:"h-4 w-4 mr-2"}),"Save Config"]})]})]})}),n.jsx(be,{className:"p-0",children:t.developer_mode?n.jsx("div",{className:"min-h-[600px]",children:n.jsx(ht,{height:"600px",defaultLanguage:"javascript",theme:c==="dark"?"vs-dark":"light",value:t.code||am,onChange:X=>r({...t,code:X}),options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0}})}):n.jsxs(Gt,{value:a,onValueChange:d,orientation:"vertical",className:"!flex-row gap-0 min-h-[600px]",children:[n.jsx("div",{className:"w-64 shrink-0 border-r bg-muted",children:n.jsx(zt,{className:"flex flex-col h-auto w-full p-4 space-y-1 rounded-none bg-transparent",children:_o.map(X=>X.types.includes(s)?n.jsx(he,{value:X.value,className:"w-full justify-start text-left",children:X.label},X.value):null)})}),n.jsxs("div",{className:"flex-1",children:[(s==="scraping"||s==="crawling")&&n.jsx(ne,{value:"fields",className:"m-0 p-6 h-full",children:n.jsx(rm,{collections:t.collections,onChange:X=>r({...t,collections:X})})}),s==="changedetection"&&n.jsx(ne,{value:"config",className:"m-0 p-6 h-full",children:n.jsx(om,{config:t,onChange:X=>r(X)})}),s==="scraping"&&n.jsxs(n.Fragment,{children:[n.jsx(ne,{value:"pagination",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold",children:"Pagination"}),n.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Enable pagination to scrape multiple pages automatically. Choose between clicking next button, URL patterns, or custom scripts."," ",n.jsxs("a",{href:"https://agenty.com/docs/infinite-scrolling-load-more-and-next-click-pagination-in-web-scraping/149",target:"_blank",className:"inline-flex items-center text-blue-600 hover:underline",children:["Learn more ",n.jsx(ve,{className:"w-4 h-4 ml-1"})]})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:(m=t.pagination)==null?void 0:m.enabled,onCheckedChange:X=>r({...t,pagination:{...t.pagination,enabled:X}})}),n.jsx(k,{children:"Enable pagination"})]}),((y=t.pagination)==null?void 0:y.enabled)&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"space-y-3",children:[n.jsx(k,{children:"Pagination Type"}),n.jsx(kn,{value:t.pagination.type,onValueChange:X=>r({...t,pagination:{...t.pagination,type:X}}),children:Si.map(X=>n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Dn,{value:X.value,id:`pagination-${X.value}`}),n.jsx(k,{htmlFor:`pagination-${X.value}`,className:"cursor-pointer",children:X.name})]},X.value))})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Max Pages"}),n.jsx(F,{type:"number",value:t.pagination.max_pages,onChange:X=>r({...t,pagination:{...t.pagination,max_pages:parseInt(X.target.value)}})})]}),t.pagination.type==="click"&&n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Next Button Selector"}),n.jsx(F,{value:t.pagination.value,onChange:X=>r({...t,pagination:{...t.pagination,value:X.target.value}}),placeholder:"CSS selector for next button"})]}),t.pagination.type==="script"&&n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Pagination Script"}),n.jsx("div",{className:"border rounded-md overflow-hidden",children:n.jsx(ht,{height:"200px",defaultLanguage:"javascript",theme:c==="dark"?"vs-dark":"light",value:t.pagination.value||"",onChange:X=>r({...t,pagination:{...t.pagination,value:X||""}}),options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0}})})]})]})]})]})}),n.jsx(ne,{value:"login",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold",children:"Login Configuration"}),n.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Configure automated login to access protected content. Define a sequence of actions like clicking buttons and typing credentials."," ",n.jsxs("a",{href:"https://agenty.com/docs/crawling-password-protected-website-online/135",target:"_blank",className:"inline-flex items-center text-blue-600 hover:underline",children:["Learn more ",n.jsx(ve,{className:"w-4 h-4 ml-1"})]})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:(v=t.login)==null?void 0:v.enabled,onCheckedChange:X=>r({...t,login:{...t.login,enabled:X,actions:X?[]:void 0}})}),n.jsx(k,{children:"Enable login"})]}),((h=t.login)==null?void 0:h.enabled)&&n.jsx("div",{className:"space-y-4",children:n.jsx(Po,{actions:t.login.actions||[],onChange:X=>r({...t,login:{...t.login,actions:X}})})})]})]})}),n.jsx(ne,{value:"form",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold",children:"Form Submit Configuration"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Automate form submissions before scraping. Useful for search forms, filters, or any interactive elements that reveal content."})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:(j=t.form)==null?void 0:j.enabled,onCheckedChange:X=>r({...t,form:{...t.form,enabled:X,actions:X?[]:void 0}})}),n.jsx(k,{children:"Enable form submission"})]}),((g=t.form)==null?void 0:g.enabled)&&n.jsx("div",{className:"space-y-4",children:n.jsx(Po,{actions:t.form.actions||[],onChange:X=>r({...t,form:{...t.form,actions:X}})})})]})]})}),n.jsx(ne,{value:"headers",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold",children:"Headers & Cookies"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Add custom HTTP headers and cookies to your requests. Useful for authentication tokens, API keys, or session management."})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx(k,{children:"Headers"}),n.jsx("div",{children:(Array.isArray(t.headers)?t.headers:[]).map((X,A)=>n.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[n.jsx(F,{value:X.key,onChange:Y=>{const q=[...t.headers];q[A]={...X,key:Y.target.value},r({...t,headers:q})},placeholder:"Header name",className:"flex-1"}),n.jsx(F,{value:X.value,onChange:Y=>{const q=[...t.headers];q[A]={...X,value:Y.target.value},r({...t,headers:q})},placeholder:"Header value",className:"flex-1"}),n.jsx(I,{variant:"ghost",size:"sm",className:"text-destructive",onClick:()=>{const Y=[...t.headers];Y.splice(A,1),r({...t,headers:Y})},children:n.jsx(_t,{className:"h-4 w-4"})})]},A))}),n.jsxs(I,{onClick:()=>{r({...t,headers:[...t.headers,{key:"",value:""}]})},className:"mt-2",variant:"outline",size:"sm",children:[n.jsx(Ue,{className:"h-4 w-4 mr-2"})," Add Header"]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Cookies"}),n.jsx($e,{value:t.cookies,onChange:X=>
78r({...t,cookies:X.target.value}),placeholder:"name=value; name2=value2",className:"font-mono"})]})]})]})})]}),n.jsx(ne,{value:"proxy",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold",children:"Proxy Configuration"}),n.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Route requests through proxy servers to avoid rate limiting or access geo-restricted content. Choose proxy type and location."," ",n.jsxs("a",{href:"https://agenty.com/docs/anonymous-web-scraping-using-proxy-servers/134",target:"_blank",className:"inline-flex items-center text-blue-600 hover:underline",children:["Learn more ",n.jsx(ve,{className:"w-4 h-4 ml-1"})]})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:(x=t.anonymous)==null?void 0:x.proxy,onCheckedChange:X=>r({...t,anonymous:{...t.anonymous,proxy:X}})}),n.jsx(k,{children:"Enable proxy"})]}),((b=t.anonymous)==null?void 0:b.proxy)&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"space-y-3",children:[n.jsx(k,{children:"Select Proxy Type"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:p.map(X=>n.jsx("div",{className:`border rounded-lg p-4 cursor-pointer transition-all h-full ${t.anonymous.proxy_type===X.value?"border-primary bg-primary/5":"border-border hover:border-primary/50"} ${X.available?"":"opacity-50"}`,onClick:()=>{X.available&&r({...t,anonymous:{...t.anonymous,proxy_type:X.value}})},children:n.jsxs("div",{className:"flex items-start gap-3",children:[n.jsx("div",{className:"flex items-center h-5",children:n.jsx("div",{className:`w-4 h-4 rounded-full border-2 flex items-center justify-center ${t.anonymous.proxy_type===X.value?"border-primary":"border-muted-foreground"}`,children:t.anonymous.proxy_type===X.value&&n.jsx("div",{className:"w-2 h-2 rounded-full bg-primary"})})}),n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("h4",{className:"font-medium",children:X.name}),!X.available&&n.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-muted text-muted-foreground",children:"Upgrade Required"})]}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:X.description})]})]})},X.value))})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Country"}),n.jsxs(Fe,{value:t.anonymous.country,onValueChange:X=>r({...t,anonymous:{...t.anonymous,country:X}}),children:[n.jsx(He,{id:"country",className:"w-full",children:n.jsx(We,{placeholder:"Select country"})}),n.jsx(Ge,{className:"h-64",children:yi.map(X=>n.jsx(ge,{value:X.code,children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(gi,{countryCode:X.code,className:"w-6 h-4 rounded"}),n.jsx("span",{children:X.name})]})},X.code))})]})]})]})]})]})}),n.jsx(ne,{value:"waitfor",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold",children:"Wait For Configuration"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Control when to start scraping. Wait for specific elements to appear, timeouts, or custom conditions for dynamic content."})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-3",children:[n.jsx(k,{children:"Wait Type"}),n.jsx(kn,{value:(O=t.wait_for)==null?void 0:O.type,onValueChange:X=>r({...t,wait_for:{...t.wait_for,type:X,value:""}}),children:Di.map(X=>n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Dn,{value:X.value,id:`waitfor-${X.value}`}),n.jsx(k,{htmlFor:`waitfor-${X.value}`,className:"cursor-pointer",children:X.name})]},X.value))})]}),((w=t.wait_for)==null?void 0:w.type)==="selector"&&n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Selector"}),n.jsx(F,{value:(S=t.wait_for)==null?void 0:S.value,onChange:X=>r({...t,wait_for:{...t.wait_for,value:X.target.value}}),placeholder:"CSS selector"}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"To 
78wait for an element with given selector to appear(or hidden) before scraping"})]}),((_=t.wait_for)==null?void 0:_.type)==="script"&&n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Script"}),n.jsx("div",{className:"border rounded-md overflow-hidden",children:n.jsx(ht,{height:"200px",defaultLanguage:"javascript",theme:c==="dark"?"vs-dark":"light",value:String((M=t.wait_for)==null?void 0:M.value)||"",onChange:X=>r({...t,wait_for:{...t.wait_for,value:X||""}}),options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0}})})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:(R=t.wait_for)==null?void 0:R.visible,onCheckedChange:X=>r({...t,wait_for:{...t.wait_for,visible:X}})}),n.jsx(k,{children:"Wait for visible"})]}),n.jsx("p",{className:"text-xs text-muted-foreground pl-10",children:"Wait for the element to become visible"})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:(H=t.wait_for)==null?void 0:H.hidden,onCheckedChange:X=>r({...t,wait_for:{...t.wait_for,hidden:X}})}),n.jsx(k,{children:"Wait for hidden"})]}),n.jsx("p",{className:"text-xs text-muted-foreground pl-10",children:"Wait for the element to become hidden"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Timeout (ms)"}),n.jsx(F,{type:"number",value:(N=t.wait_for)==null?void 0:N.timeout,onChange:X=>r({...t,wait_for:{...t.wait_for,timeout:parseInt(X.target.value)}}),placeholder:"Timeout in milliseconds"}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Maximum time to wait for given selector. Must be between 0-30000 milliseconds"})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:t.lazy_load,onCheckedChange:X=>r({...t,lazy_load:X})}),n.jsx(k,{children:"Enable Lazy Loading"})]}),n.jsx("p",{className:"text-xs text-muted-foreground pl-10",children:"Load images and content only when they appear in the viewport to enhance performance."})]})]})]})}),n.jsx(ne,{value:"browser",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold",children:"Browser Settings"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Configure browser type, viewport size, device emulation, and performance optimizations like blocking ads and trackers."})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-3",children:[n.jsx(k,{children:"Browser Type"}),n.jsx(kn,{value:t.browser,onValueChange:X=>r({...t,browser:X}),children:Mi.map(X=>n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Dn,{value:X.value,id:`browser-${X.value}`}),n.jsx(k,{htmlFor:`browser-${X.value}`,className:"cursor-pointer",children:X.name})]},X.value))})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Device Type"}),n.jsxs(Fe,{value:t.device,onValueChange:X=>r({...t,device:X}),children:[n.jsx(He,{className:"w-full",children:n.jsx(We,{placeholder:"Select device type"})}),n.jsx(Ge,{children:ki.map(X=>n.jsx(ge,{value:X.value,children:X.name},X.value))})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"User Agent"}),n.jsx(F,{value:t.user_agent,onChange:X=>r({...t,user_agent:X.target.value})})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Viewport Width"}),n.jsx(F,{type:"number",value:(L=t.viewport)==null?void 0:L.width,onChange:X=>r({...t,viewport:{...t.viewport,width:parseInt(X.target.value)}})})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Viewport Height"}),n.jsx(F,{type:"number",value:(G=t.viewport)==null?void 0:G.height,onChange:X=>r({...t,viewport:{...t.viewport,height:parseInt(X.target.value)}})})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Wait Until"}),n.jsx(tr,{options:Pi,defaultValue:(Z=t.go_to_options)==null?void 0:Z.wait_until,onValueChange:X=>r({...t,go_to_options:{...t.go_to_options,wait_until:X}}),placeholder:"Wait until optoins..."})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Timeout (ms)"}),n.jsx(F,{type:"number",value:(se=t.go_to_options)==null?void 0:se.timeout,onChange:X=>r({...t,go_to_options:{...t.go_to_options,timeout:parseInt(X.target.value)}}),placeholder:"Navigation timeout in milliseconds"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Referer"}),n.jsx(F,{value:(re=t.go_to_options)==null?void 0:re.referer,onChange:X=>r({...t,go_to_options:{...t.go_to_options,referer:X.target.value}}),placeholder:"Referer"})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:t.block_ads,onCheckedChange:X=>r({...t,block_ads:X})}),n.jsx(k,{children:"Block Ads"})]}),n.jsx("p",{className:"text-xs text-muted-foreground pl-10",children:"Block requests from ad networks (e.g., Google Ads, Taboola) to improve crawling speed."})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:t.block_trackers,onCheckedChange:X=>r({...t,block_trackers:X})}),n.jsx(k,{children:"Block Trackers"})]}),n.jsxs("p",{className:"text-xs text-muted-foreground pl-10",children:["Block tracking scripts like ",n.jsx("code",{children:"gtag.js"})," to prevent crawler detection in analytics."]})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:t.accept_cookie_consent,onCheckedChange:X=>r({...t,accept_cookie_consent:X})}),n.jsx(k,{children:"Cookie Consent"})]}),n.jsx("p",{className:"text-xs text-muted-foreground pl-10",children:"Automatically accept cookie banners to avoid interruptions during browsing."})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{checked:t.set_javascript_enabled,onCheckedChange:X=>r({...t,set_javascript_enabled:X})}),n.jsx(k,{children:"Enable JavaScript"})]}),n.jsx("p",{className:"text-xs text-muted-foreground pl-10",children:"Allow JavaScript execution on websites to ensure proper functionality."})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Reject Resource Types"}),n.jsx(tr,{options:Ei,defaultValue:t.reject_resource_types,onValueChange:X=>r({...t,reject_resource_types:X}),placeholder:"Block resouce types..."})]})]})]})}),s==="crawling"&&n.jsx(ne,{value:"crawler",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold",children:"Crawler Settings"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Configure how the crawler explores and processes pages"})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"max_pages_to_crawl",children:"Max Pages to Crawl"}),n.jsx(F,{id:"max_pages_to_crawl",type:"number",value:t.max_pages_to_crawl,onChange:X=>r({...t,max_pages_to_crawl:parseInt(X.target.value)})}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Limits the total number of pages the crawler will visit."})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"max_depth_to_crawl",children:"Max Depth to Crawl"}),n.jsx(F,{id:"max_depth_to_crawl",type:"number",value:t.max_depth_to_crawl,onChange:X=>r({...t,max_depth_to_crawl:parseInt(X.target.value)})}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Controls how many link levels deep the crawler will go."})]})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"max_time_to_crawl",children:"Max Time to Crawl (seconds)"}),n.jsx(F,{id:"max_time_to_crawl",type:"number",value:t.max_time_to_crawl,onChange:X=>r({...t,max_time_to_crawl:parseInt(X.target.value)})}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Stops the crawl if it exceeds the given duration."})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"max_link_per_page",children:"Max Links per Page"}),n.jsx(F,{id:"max_link_per_page",type:"number",value:t.max_link_per_page,onChange:X=>r({...t,max_link_per_page:parseInt(X.target.value)})}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Limits the number of links extracted from each page."})]})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"max_results",children:"Max Results"}),n.jsx(F,{id:"max_results",type:"number",value:t.max_results,onChange:X=>r({...t,max_results:parseInt(X.target.value)})}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Sets the upper limit on total results collected during the crawl."})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"max_error_threshold",children:"Max Error Threshold"}),n.jsx(F,{id:"max_error_threshold",type:"number",value:t.max_error_threshold,onChange:X=>r({...t,max_error_threshold:parseInt(X.target.value)})}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Stops crawling if the number of failed requests exceeds this value."})]})]}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(k,{htmlFor:"follow_sitemaps",children:"Follow Sitemaps"}),n.jsx(ee,{id:"follow_sitemaps",checked:t.follow_sitemaps??!0,onCheckedChange:X=>r({...t,follow_sitemaps:X})})]}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Automatically detect and crawl sitemap URLs for faster discovery."})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(k,{htmlFor:"respect_robots_txt",children:"Respect robots.txt"}),n.jsx(ee,{id:"respect_robots_txt",checked:t.respect_robots_txt??!0,onCheckedChange:X=>r({...t,respect_robots_txt:X})})]}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Obeys crawling rules defined in the website’s robots.txt file."})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(k,{htmlFor:"respect_rel_nofollow",children:"Respect rel=nofollow"}),n.jsx(ee,{id:"respect_rel_nofollow",checked:t.respect_rel_nofollow??!0,onCheckedChange:X=>r({...t,respect_rel_nofollow:X})})]}),n.jsx("p",{className:"text-xs text-muted-foreground",children:'Ignores links marked with rel="nofollow" attributes.'})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(k,{htmlFor:"follow_external_links",children:"Follow External Links"}),n.jsx(ee,{id:"follow_external_links",checked:t.follow_external_links||!1,onCheckedChange:X=>r({...t,follow_external_links:X})})]}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Enables crawling of links that point to external domains."})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(k,{htmlFor:"should_crawl_external_pages",children:"Should Crawl External Pages"}),n.jsx(ee,{id:"should_crawl_external_pages",checked:t.should_crawl_external_pages||!1,onCheckedChange:X=>r({...t,should_crawl_external_pages:X})})]}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Allows the crawler to process and extract data from external sites."})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(k,{htmlFor:"should_crawl_internal_pages",children:"Should Crawl Internal Pages"}),n.jsx(ee,{id:"should_crawl_internal_pages",checked:t.should_crawl_internal_pages??!0,onCheckedChange:X=>r({...t,should_crawl_internal_pages:X})})]}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Enables crawling of internal links within the same domain."})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(k,{htmlFor:"keep_cookies",children:"Keep Cookies"}),n.jsx(ee,{id:"keep_cookies",checked:t.keep_cookies||!1,onCheckedChange:X=>r({...t,keep_cookies:X})})]}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Preserves cookies between requests for session-based crawling."})]})]})]})]})}),s==="crawling"&&n.jsx(ne,{value:"patterns",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold",children:"Patterns & Rules"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Define URL patterns and crawling behavior rules"})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"crawl_rules",children:"Crawl Rules"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"URL patterns to crawl (one per line, e.g., /docs, /blog)"}),n.jsx($e,{id:"crawl_rules",className:"min-h-[100px]",value:(t.crawl_rules||[]).join(`
79`),onChange:X=>r({...t,crawl_rules:X.target.value.split(`
80`).filter(A=>A.trim())}),placeholder:`/docs
81/blog
82/products`})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"process_rules",children:"Process Rules"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"URL patterns to process (one per line)"}),n.jsx($e,{id:"process_rules",className:"min-h-[100px]",value:(t.process_rules||[]).join(`
83`),onChange:X=>r({...t,process_rules:X.target.value.split(`
84`).filter(A=>A.trim())}),placeholder:`/products
85/articles`})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"priority_rules",children:"Priority Rules"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"URL patterns to prioritize (one per line)"}),n.jsx($e,{id:"priority_rules",className:"min-h-[100px]",value:(t.priority_rules||[]).join(`
86`),onChange:X=>r({...t,priority_rules:X.target.value.split(`
87`).filter(A=>A.trim())}),placeholder:`/important
88/featured`})]})]})]})})]})]})})]})}const Io=[{name:"Source URL only",value:"url"},{name:"Manual URL(s)",value:"manual"},{name:"Select a URL List",value:"list"},{name:"URL from Source Agent",value:"agent"}];function im({agent:t,onChange:r}){var b,O,w,S,_,M,R,H;const[o,s]=T.useState((b=t.config)==null?void 0:b.url),[i,c]=T.useState([]),[l,a]=T.useState([]),[d,e]=T.useState([]),[f,p]=T.useState(null),[u,m]=T.useState("input"),[y,v]=T.useState(t.input?{...t.input,data:[]}:{id:null,type:"url",field:null,collection:1,data:[]}),[h,j]=T.useState(!1),g=T.useCallback(async()=>{try{const N=await K.get(Q.inputs,t.agent_id);N&&v(N)}catch{}finally{m(null)}},[t.agent_id]);T.useEffect(()=>{t.input.type==="url"?(v({...t.input,data:[t.config.url]}),m(null)):g()},[(O=t.config)==null?void 0:O.url,t.input,g]),T.useEffect(()=>{(async()=>
88{if(!(y.type!=="agent"&&y.type!=="list"))try{if(y.type==="agent"){m("agent");const L=await K.list("/agents");a(L.result||[])}else if(y.type==="list"){m("list");const L=await K.list("/lists");c(L.result||[])}}catch{}finally{m(null)}})()},[y.type]),T.useEffect(()=>{(async()=>{var L;if(y.id)try{if(m("fields"),y.type==="list"){const G=await K.get(Q.lists,y.id);if(G.data&&Array.isArray(G.data.result)&&G.data.result.length>0){const Z=G.data.result[0],se=Object.keys(Z).filter(re=>re!=="_id").map(re=>({name:re,value:re}));e(se)}else e([])}else if(y.type==="agent"){const G=await K.get(Q.agents,y.id),se=(((L=G==null?void 0:G.config)==null?void 0:L.collections)??[]).flatMap((re,X)=>(re.fields||[]).map(A=>({name:A.name,value:A.name,collection_index:X+1,collection_name:re.name})));e(se)}else e([])}catch{e([])}finally{m(null)}})()},[y.id,y.type]);const x=async()=>{if(y.type==="url"&&!o){U.warning("Please enter a URL");return}if(y.type==="manual"&&y.data.length===0){U.warning("Please enter at least one URL");return}if(y.type==="list"&&!y.id){U.warning("Please select a list");return}if(y.type==="agent"&&!y.id){U.warning("Please select an agent");return}if((y.type==="list"||y.type==="agent")&&!y.field){U.warning("Please select a field");return}j(!0);let N=[];y.type==="manual"&&Array.isArray(y.data)?N=y.data.map(L=>L.trim()).filter(L=>L.length>0):y.type==="url"&&(N=[o]);try{await K.put(Q.inputs,t.agent_id,{...y,data:N}),U.success("Input settings saved successfully")}catch(L){U.error(L.message)}finally{j(!1)}y.type==="url"&&r({...t.config,url:o})};return n.jsxs(xe,{children:[n.jsxs(Oe,{children:[n.jsx(Me,{children:"Input Settings"}),n.jsxs(Ye,{children:["Configure your input settings for batch crawling"," ",n.jsxs("a",{href:"https://agenty.com/docs/input-types-in-web-scraping-agent/142",target:"_blank",className:"inline-flex items-center text-blue-600 hover:underline",children:["Learn more ",n.jsx(ve,{className:"w-4 h-4 ml-1"})]})]})]}),n.jsxs(be,{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Input Type"}),n.jsxs(tt,{open:f==="inputType",onOpenChange:N=>p(N?"inputType":null),children:[n.jsx(nt,{asChild:!0,children:n.jsxs(I,{variant:"outline",role:"combobox","aria-expanded":f==="inputType",className:"w-full justify-between",children:[n.jsx("span",{className:Re(!y.type&&"text-muted-foreground"),children:y.type?(w=Io.find(N=>N.value===y.type))==null?void 0:w.name:"Select input type"}),n.jsx(lt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),n.jsx(rt,{className:"w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:n.jsxs(ot,{children:[n.jsx(at,{placeholder:"Search input type..."}),n.jsx(st,{children:"No input type found."}),n.jsx(it,{className:"max-h-[300px] overflow-y-auto",children:Io.map(N=>n.jsxs(ut,{value:N.value,onSelect:L=>{v({...y,type:L,id:null,field:null,data:[]}),p(null)},children:[n.jsx(Ze,{className:y.type===N.value?"mr-2 h-4 w-4 opacity-100":"mr-2 h-4 w-4 opacity-0"}),N.name]},N.value))})]})})]})]}),y.type==="url"&&n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"URL"}),n.jsx(F,{type:"url",placeholder:"Enter URL",value:o,onChange:N=>s(N.target.value)})]}),y.type==="manual"&&n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"URLs (one per line)"}),u==="input"?n.jsx("div",{className:"animate-pulse",children:n.jsx(Ms,{className:"h-[200px] w-full rounded-md"})}):n.jsx($e,{placeholder:"Enter URLs, one per line",value:y.data.join(`
89`),onChange:N=>v({...y,data:N.target.value.split(`
90`)}),className:"h-[200px] w-full font-mono overflow-x-auto overflow-y-auto resize-none",style:{wordBreak:"break-all"}}),n.jsxs("p",{className:"text-muted-foreground text-sm",children:["Total ",((S=y.data)==null?void 0:S.length)||0," row(s)"]})]}),y.type==="list"&&n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Select List"}),n.jsxs(tt,{open:f==="list",onOpenChange:N=>p(N?"list":null),children:[n.jsx(nt,{asChild:!0,children:n.jsxs(I,{variant:"outline",role:"combobox","aria-expanded":f==="list",className:"w-full justify-between",children:[n.jsx("span",{className:Re(!y.id&&"text-muted-foreground"),children:y.id?(_=i.find(N=>N.list_id.toString()===y.id))==null?void 0:_.name:"Select a list"}),u==="list"?n.jsx(Xe,{className:"ml-2 h-4 w-4 shrink-0 animate-spin"}):n.jsx(lt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),n.jsx(rt,{className:"w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:n.jsxs(ot,{children:[n.jsx(at,{placeholder:"Search list..."}),n.jsx(st,{children:"No list found."}),n.jsx(it,{className:"max-h-[300px] overflow-y-auto",children:i.map(N=>n.jsxs(ut,{value:N.name,onSelect:()=>{v({...y,id:N.list_id.toString()}),p(null)},children:[n.jsx(Ze,{className:y.id===N.list_id.toString()?"mr-2 h-4 w-4 opacity-100":"mr-2 h-4 w-4 opacity-0"}),N.name]},N.list_id))})]})})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"URL Field"}),n.jsxs(tt,{open:f==="listField",onOpenChange:N=>p(N?"listField":null),children:[n.jsx(nt,{asChild:!0,children:n.jsxs(I,{variant:"outline",role:"combobox","aria-expanded":f==="listField",className:"w-full justify-between",children:[n.jsx("span",{className:Re(!y.field&&"text-muted-foreground"),children:y.field?(M=d.find(N=>N.value===y.field))==null?void 0:M.name:"Select URL field"}),u==="fields"?n.jsx(Xe,{className:"ml-2 h-4 w-4 shrink-0 animate-spin"}):n.jsx(lt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),n.jsx(rt,{className:"w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:n.jsxs(ot,{children:[n.jsx(at,{placeholder:"Search f
90ield..."}),n.jsx(st,{children:"No field found."}),n.jsx(it,{className:"max-h-[300px] overflow-y-auto",children:d.map(N=>n.jsxs(ut,{value:N.name,onSelect:()=>{v({...y,field:N.value}),p(null)},children:[n.jsx(Ze,{className:y.field===N.value?"mr-2 h-4 w-4 opacity-100":"mr-2 h-4 w-4 opacity-0"}),N.name]},N.value))})]})})]})]})]}),y.type==="agent"&&n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Select Agent"}),n.jsxs(tt,{open:f==="agent",onOpenChange:N=>p(N?"agent":null),children:[n.jsx(nt,{asChild:!0,children:n.jsxs(I,{variant:"outline",role:"combobox","aria-expanded":f==="agent",className:"w-full justify-between",children:[n.jsx("span",{className:Re(!y.id&&"text-muted-foreground"),children:y.id?(R=l.find(N=>N.agent_id===y.id))==null?void 0:R.name:"Select an agent"}),u==="agent"?n.jsx(Xe,{className:"ml-2 h-4 w-4 shrink-0 animate-spin"}):n.jsx(lt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),n.jsx(rt,{className:"w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:n.jsxs(ot,{children:[n.jsx(at,{placeholder:"Search agent..."}),n.jsx(st,{children:"No agent found."}),n.jsx(it,{className:"max-h-[300px] overflow-y-auto",children:l.map(N=>n.jsxs(ut,{value:N.name,onSelect:()=>{v({...y,id:N.agent_id}),p(null)},children:[n.jsx(Ze,{className:y.id===N.agent_id?"mr-2 h-4 w-4 opacity-100":"mr-2 h-4 w-4 opacity-0"}),N.name]},N.agent_id))})]})})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"URL Field"}),n.jsxs(tt,{open:f==="agentField",onOpenChange:N=>p(N?"agentField":null),children:[n.jsx(nt,{asChild:!0,children:n.jsxs(I,{variant:"outline",role:"combobox","aria-expanded":f==="agentField",className:"w-full justify-between",children:[n.jsx("span",{className:Re(!y.field&&"text-muted-foreground"),children:y.field?(H=d.find(N=>N.value===y.field))==null?void 0:H.name:"Select URL field"}),u==="fields"?n.jsx(Xe,{className:"ml-2 h-4 w-4 shrink-0 animate-spin"}):n.jsx(lt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),n.jsx(rt,{className:"w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:n.jsxs(ot,{children:[n.jsx(at,{placeholder:"Search field..."}),n.jsx(st,{children:"No field found."}),n.jsx("div",{className:"max-h-[300px] overflow-y-auto",children:Object.entries(d.reduce((N,L)=>{const G=L.collection_index??-1;return N[G]||(N[G]={name:L.collection_name??"Default Collection",fields:[]}),N[G].fields.push(L),N},{})).map(([N,L])=>n.jsxs("div",{className:"mb-2",children:[n.jsx("div",{className:"px-2 py-1 text-xs font-semibold text-muted-foreground",children:L.name}),n.jsx(it,{children:L.fields.map(G=>n.jsxs(ut,{value:G.name,onSelect:()=>{v({...y,field:G.value,collection:G.collection_index}),p(null)},children:[n.jsx(Ze,{className:Re("mr-2 h-4 w-4",y.field===G.value?"opacity-100":"opacity-0")}),G.name]},G.value))})]},N))})]})})]})]})]}),n.jsxs(I,{onClick:x,className:"w-full",disabled:h,children:[h&&n.jsx(Xe,{className:"mr-2 h-4 w-4 animate-spin"}),"Save Input Settings"]})]})]})}function um({jobs:t}){const[r,o]=T.useState(!0),[s,i]=T.useState(!0),[c,l]=T.useState((t==null?void 0:t[0])||null),[a,d]=T.useState([]),[e,f]=T.useState([]),[p,u]=T.useState(null),m=T.useCallback(async()=>{if(!(c!=null&&c.job_id)){o(!1);return}u(null),o(!0);try{const h=await K.list(`${Q.jobs}/${c.job_id}/logs`);f(h?h.split(`
91`):[])}catch(h){u(h.message)}finally{o(!1)}},[c==null?void 0:c.job_id]),y=T.useCallback(async()=>{if(!(c!=null&&c.job_id)){i(!1);return}i(!0);try{const h=await K.list(`${Q.jobs}/${c.job_id}/files`);d(h||[])}catch{}finally{i(!1)}},[c==null?void 0:c.job_id]);T.useEffect(()=>{m(),y()},[m,y]);const v=async h=>{if(!c)return;const j=U.loading(`Downloading ${h}...`);try{await K.download(`${Q.jobs}/${c.job_id}/files`,{name:h},h),U.success(`${h} downloaded successfully`,{id:j})}catch(g){U.error(g.message,{id:j})}};return n.jsxs(xe,{className:"flex flex-col h-full",children:[n.jsx(Oe,{children:n.jsx(Me,{children:"Logs"})}),n.jsx(be,{className:"p-0 flex-1",children:n.jsxs($o,{direction:"horizontal",className:"h-full",children:[n.jsx(tn,{defaultSize:30,minSize:20,children:n.jsxs("div",{className:"h-full flex flex-col",children:[n.jsx("div",{className:"px-4 py-2 border-b",children:n.jsx("h3",{className:"font-semibold text-sm",children:"Jobs"})}),n.jsx(Pt,{className:"flex-1 max-h-[680px]",children:n.jsx("div",{className:"p-2 space-y-1",children:t.map(h=>n.jsx("button",{onClick:()=>l(h),className:`w-full text-left p-3 rounded-md hover:bg-accent transition-colors ${(c==null?void 0:c.job_id)===h.job_id?"bg-accent":""}`,children:n.jsxs("div",{className:"flex items-start justify-between gap-2",children:[n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[n.jsxs("span",{className:"font-semibold text-sm",children:["Job #",h.job_id]}),h.status==="completed"&&n.jsx(Zo,{className:"h-4 w-4 text-green-500 shrink-0"})]}),n.jsx("p",{className:"text-xs text-muted-foreground",children:Et(h.created_at,"MMM d, yyyy HH:mm:ss")})]}),n.jsx(vr,{status:h.status,error:h.error})]})},h.job_id))})})]})}),n.jsx(Yo,{withHandle:!0}),n.jsx(tn,{defaultSize:70,minSize:50,children:n.jsxs("div",{className:"h-full flex flex-col",children:[n.jsxs("div",{className:"px-4 py-2 border-b flex items-center justify-between",children:[n.jsx("h3",{className:"font-semibold text-sm",children:c?`Job #${c.job_id}`:"Logs"}),c&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs(I,{variant:"outline",disabled:!c.completed_at,size:"sm",onClick:()=>{m(),y()},children:[n.jsx(Gs,{className:"h-4 w-4 mr-2"}),"Refresh"]}),n.jsxs(I,{variant:"outline",disabled:!c.completed_at,size:"sm",onClick:()=>v("logs.txt.gz"),children:[n.jsx(rn,{className:"h-4 w-4 mr-2"}),"Download Logs"]})]})]}),n.jsx(Pt,{className:"flex-1",children:c?n.jsxs("div",{className:"p-4 space-y-4",children:[a.length>0&&n.jsx(Es,{type:"single",collapsible:!0,className:"w-full",children:n.jsxs(Cs,{value:"files",children:[n.jsxs(As,{className:"text-sm font-semibold",children:["Output Files (",a.length,")"]}),n.jsx(Ps,{children:n.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:s?n.jsx("div",{className:"flex min-h-[100px] items-center justify-center",children:n.jsx(on,{})}):a.map((h,j)=>n.jsxs("button",{onClick:()=>v(h.name),className:"flex items-center gap-4 p-3 rounded-md border bg-card hover:bg-accent transition-colors",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(zs,{className:"h-4 w-4 text-muted-foreground shrink-0"}),n.jsxs("div",{className:"text-left",children:[n.jsx("p",{className:"text-sm font-medium whitespace-nowrap",children:h.name}),n.jsx("p",{className:"text-xs text-muted-foreground",children:vi(h.size)})]})]}),n.jsx(rn,{className:"h-4 w-4 text-muted-foreground shrink-0"})]},j))})})]})}),n.jsx("div",{className:"space-y-2",children:n.jsx("div",{className:"font-mono text-xs relative w-full overflow-auto grid grid-cols-1 max-h-[600px]",children:r?n.jsx("div",{className:"flex min-h-[400px] items-center justify-center",children:n.jsx(on,{})}):p?n.jsx("div",{className:"text-destructive",children:p}):e.map((h,j)=>{const[g,x,...b]=h.split("	");return n.jsxs("div",{className:"flex min-w-max items-center text-sm last:border-0",children:[n.jsx("span",{className:"text-gray-500",children:g}),n.jsx("span",{className:`mx-4 font-semibold ${xi(x)}`,children:x}),n.jsx("span",{children:b.join(" ")})]},j)})})})]}):n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("p",{className:"text-sm text-muted-foreground",children:"Select a job to view logs"})})})]})})]})})]})}const Lo={gzip:[{format:"CSV",label:"CSV.gz",separator:","}],plain:[{format:"CSV",label:"CSV",separator:","}]};function vs({agent:t,lastJob:r}){var se,re,X;const{authUser:o}=gn(),s=na(),{page:i,limit:c,offset:l,paged:a,setPage:d,setLimit:e,setPaged:f}=ra({defaultLimit:20}),p=((se=t==null?void 0:t.config)==null?void 0:se.collections)??[],[u,m]=T.useState(1),y=p.flatMap(A=>(A.fields||[]).map(Y=>Y.name)),[v,h]=T.useState(((re=t.config)==null?void 0:re.developer_mode)===!0?[]:y),[j,g]=T.useState([]),[x,b]=T.useState(!0),[O,w]=T.useState(null),[S,_]=T.useState({}),M=T.useRef(null),R=T.useRef(0),H=T.useCallback(async A=>
91{if(A){b(!0),w(null);try{const Y=await K.list(`${Q.jobs}/${A}/result`,{offset:l,limit:c,collection:u});if(Y!=null&&Y.result){const{result:q,...ae}=Y;if(g(q),f({total:ae.total,returned:ae.returned}),Y.result.length>0){const de=Object.keys(Y.result[0]);h(Ae=>[...new Set([...Ae,...de])])}}}catch(Y){w(Y.message)}finally{b(!1)}}},[l,c,f,u]);T.useEffect(()=>{if(!r){b(!1);return}const A=M.current,Y=!A||r.job_id!==A.job_id,q=A&&r.status!==A.status&&r.pages_processed>0,ae=A&&r.pages_processed>A.pages_processed,de=R.current!==l;Y&&g([]),(Y||q||ae||de)&&(M.current=r,H(r.job_id))},[r,l,H]);const N=()=>{r!=null&&r.job_id&&H(r.job_id)},L=async(A,Y)=>{if(!r)return;if((o==null?void 0:o.plan)==="Free"){s.open();return}const q=U.loading("Downloading...");try{await K.download(`${Q.jobs}/${r.job_id}/result/download`,{format:A,collection:u},`agent_${t.agent_id}-job_${r.job_id}-result${u}.${Y.toLowerCase()}`),U.success("Download completed successfully",{id:q})}catch(ae){U.error(ae.message,{id:q})}},G=v.filter(A=>!S[A]),Z=!!(r!=null&&r.completed_at);return n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"flex items-center gap-2",children:n.jsxs(pt,{children:[n.jsx(mt,{asChild:!0,children:n.jsxs(I,{variant:"outline",size:"sm",className:"flex items-center gap-2",children:[n.jsx("span",{children:((X=p[u])==null?void 0:X.name)||`Collection ${u}`}),n.jsx(nn,{className:"h-4 w-4 opacity-70"})]})}),n.jsx(ft,{align:"start",children:p.map((A,Y)=>n.jsx(je,{onClick:()=>m(Y+1),children:A.name},Y))})]})}),n.jsxs("div",{className:"flex items-center rounded-md border",children:[n.jsx(I,{variant:"ghost",size:"icon",onClick:N,title:"Refresh",className:"rounded-none border-r",disabled:x,children:n.jsx(Us,{className:`h-4 w-4 ${x?"animate-spin":""}`})}),n.jsxs(pt,{children:[n.jsx(mt,{asChild:!0,children:n.jsx(I,{variant:"ghost",size:"icon",title:"Show/Hide Columns",className:"rounded-none border-r",disabled:v.length===0,children:n.jsx($s,{className:"h-4 w-4"})})}),n.jsx(ft,{align:"end",className:"max-h-[300px] overflow-y-auto",children:v.map(A=>n.jsx(_s,{checked:!S[A],onCheckedChange:Y=>_(q=>({...q,[A]:!Y})),children:A},A))})]}),n.jsxs(pt,{children:[n.jsx(mt,{asChild:!0,children:n.jsxs(I,{variant:"ghost",title:"Download",className:"rounded-none",disabled:j.length===0,children:["Download",n.jsx(rn,{className:"h-4 w-4"})]})}),n.jsxs(ft,{align:"end",children:[n.jsx(Wr,{className:"text-muted-foreground",children:"Gzip compressed"}),Lo.gzip.map(A=>n.jsxs(je,{disabled:!Z,onClick:()=>Z&&L(A.format,A.label),children:[A.label," (",n.jsx("code",{children:A.separator}),")",!Z&&n.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:"(available after completion)"})]},A.format)),n.jsx(ct,{}),n.jsx(Wr,{className:"text-muted-foreground",children:"Plain text"}),Lo.plain.map(A=>n.jsxs(je,{onClick:()=>L(A.format,A.label),children:[A.label," (",n.jsx("code",{children:A.separator}),")"]},A.format))]})]})]})]}),n.jsx("div",{className:"rounded-md border",children:n.jsx("div",{className:"h-[500px] relative w-full overflow-auto grid grid-cols-1",children:n.jsxs(lr,{children:[n.jsx(dr,{children:n.jsx(Be,{children:G.map(A=>n.jsx(Te,{className:"max-w-[200px] truncate",children:A},A))})}),n.jsxs(pr,{children:[x&&n.jsx(Be,{children:n.jsx(ce,{colSpan:G.length,className:"p-0 h-1",children:n.jsx("div",{className:"w-full h-1 bg-muted overflow-hidden",children:n.jsx("div",{className:"h-full bg-blue-600 w-full animate-pulse-fast"})})})}),j.length===0&&!x?n.jsx(Be,{children:n.jsx(ce,{colSpan:v.length,children:n.jsx("div",{className:"flex min-h-[400px] flex-col items-center justify-center p-8 text-center animate-in fade-in-50",children:n.jsx("h3",{className:"mb-2 text-lg font-semibold",children:O||(r?`Last job status: ${r.status}`:"No data available. Run this agent to start a job")})})})}):j.map((A,Y)=>n.jsx(Be,{children:G.map(q=>{var ae;return n.jsx(ce,{className:"max-w-[200px] truncate",title:(ae=A[q])==null?void 0:ae.toString(),children:A[q]!==null&&A[q]!==void 0?A[q].toString():"-"},q)})},Y))]})]})})}),n.jsx(oa,{paged:a,onPageChange:d,onLimitChange:e,currentPage:i})]})}function cm({agent:t,jobs:r}){const[o,s]=T.useState((r==null?void 0:r[0])||null);return n.jsxs(xe,{className:"flex flex-col h-full",children:[n.jsx(Oe,{children:n.jsx(Me,{children:"History"})}),n.jsx(be,{className:"p-0 flex-1",children:n.jsxs($o,{direction:"horizontal",className:"h-full",children:[n.jsx(tn,{defaultSize:30,minSize:20,children:n.jsxs("div",{className:"h-full flex flex-col",children:[n.jsx("div",{className:"px-4 py-2 border-b",children:n.jsx("h3",{className:"font-semibold text-sm",children:"Jobs"})}),n.jsx(Pt,{className:"flex-1 max-h-[680px]",children:n.jsx("div",{className:"p-2 space-y-1",children:r.map(i=>n.jsx("button",{onClick:()=>s(i),className:`w-full text-left p-3 rounded-md hover:bg-accent transition-colors ${(o==null?void 0:o.job_id)===i.job_id?"bg-accent":""}`,children:n.jsxs("div",{className:"flex items-start justify-between gap-2",children:[n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[n.jsxs("span",{className:"font-semibold text-sm",children:["Job #",i.job_id]}),i.status==="completed"&&n.jsx(Zo,{className:"h-4 w-4 text-green-500 shrink-0"})]}),n.jsx("p",{className:"text-xs text-muted-foreground",children:Et(i.created_at,"MMM d, yyyy HH:mm:ss")})]}),n.jsx(vr,{status:i.status,error:i.error})]})},i.job_id))})})]})}),n.jsx(Yo,{withHandle:!0}),n.jsx(tn,{defaultSize:70,minSize:50,children:n.jsxs("div",{className:"h-full flex flex-col",children:[n.jsx("div",{className:"px-4 py-2 border-b",children:n.jsx("h3",{className:"font-semibold text-sm",children:o?`Job #${o.job_id} Results`:"Results"})}),n.jsx(Pt,{className:"flex-1",children:o?n.jsx("div",{className:"p-4",children:n.jsx(vs,{agent:t,lastJob:o})}):n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("p",{className:"text-sm text-muted-foreground",children:"Select a job to view results"})})})]})})]})})]})}const lm=({className:t,onChange:r,value:o,...s})=>n.jsxs("div",{className:Re("relative flex min-h-10 w-full flex-wrap items-center gap-[3px] rounded-md border border-input bg-transparent p-1 text-sm transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50 has-[input
91:focus-visible]:border-ring has-[input:focus-visible]:ring-[3px] has-[input:focus-visible]:ring-ring/50 dark:bg-input/30",t),children:[o.map(i=>n.jsxs("p",{className:"flex h-7 items-center gap-0.5 rounded-full bg-muted pr-1.5 pl-3 transition-all duration-300 hover:bg-input",children:[n.jsx("span",{className:"mb-px",children:i}),n.jsx(Jo,{className:"size-4 cursor-pointer rounded-full stroke-1 p-0.5 text-muted-foreground transition-all duration-300 hover:scale-110 hover:bg-background hover:stroke-2 hover:text-destructive active:scale-75",onClick:()=>r(o.filter(c=>c!==i))})]},i)),n.jsx("input",{className:Re("peer ml-1 w-0 flex-1 outline-none placeholder:text-muted-foreground placeholder:capitalize",o.length?"placeholder:opacity-0":"pl-1"),onKeyDown:i=>{const{value:c}=i.currentTarget,l=c.split(/[,;]+/u).map(a=>a.trim()).filter(Boolean);l.length?[",",";","Enter"].includes(i.key)&&(i.preventDefault(),r([...new Set([...o,...l])]),i.currentTarget.value=""):i.key==="Backspace"&&o.length&&(i.preventDefault(),r(o.slice(0,-1)))},...s})]}),dm=bi({name:_n().min(2),description:_n().max(1e3).optional(),tags:ji(_n()).optional()});function pm({open:t,onOpenChange:r,onSubmit:o,defaultValues:s,isSubmitting:i}){const c=Is({resolver:Ti(dm),defaultValues:s}),l=a=>{o(a)};return n.jsx(xt,{open:t,onOpenChange:r,children:n.jsxs(bt,{children:[n.jsxs(jt,{children:[n.jsx(Tt,{children:"Edit Agent"}),n.jsx(Xt,{children:"Update the agent's name, description, and source URL."})]}),n.jsx(Ls,{...c,children:n.jsxs("form",{onSubmit:c.handleSubmit(l),className:"space-y-4",children:[n.jsx(Mn,{control:c.control,name:"name",render:({field:a})=>n.jsxs(En,{children:[n.jsx(Cn,{children:"Name"}),n.jsx(An,{children:n.jsx(F,{placeholder:"Agent name",...a})}),n.jsx(Pn,{})]})}),n.jsx(Mn,{control:c.control,name:"description",render:({field:a})=>n.jsxs(En,{children:[n.jsx(Cn,{children:"Description"}),n.jsx(An,{children:n.jsx($e,{placeholder:"description (if any)",className:"min-h-[100px]",...a})}),n.jsx(Pn,{})]})}),n.jsx(Mn,{control:c.control,name:"tags",render:({field:a})=>n.jsxs(En,{children:[n.jsx(Cn,{children:"Tags"}),n.jsx(An,{children:n.jsx(lm,{value:a.value||[],onChange:d=>a.onChange(d),placeholder:"Add tags..."})}),n.jsx(Pn,{})]})}),n.jsx(yn,{children:n.jsxs(I,{type:"submit",disabled:i,className:"w-full",children:[i&&n.jsx(Xe,{className:"mr-2 h-4 w-4 animate-spin"}),"Save Changes"]})})]})})]})})}const mm={javascript:"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/javascript/javascript-original.svg",python:"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/python/python-original.svg",php:"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/php/php-original.svg",ruby:"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/ruby/ruby-original.svg",curl:"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/bash/bash-original.svg"};function fm({agentId:t}){const[r,o]=T.useState("javascript");return n.jsxs("div",{className:"space-y-6",children:[n.jsxs(xe,{children:[n.jsx(Oe,{children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(Me,{children:"API Examples"}),n.jsxs(Ye,{children:["Learn how to use the Agenty API to programmatically control your agents."," ",n.jsxs("a",{href:"https://agenty.com/docs/api",target:"_blank",className:"inline-flex items-center text-blue-600 hover:underline",children:["Learn more ",n.jsx(ve,{className:"w-4 h-4 ml-1"})]})]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(I,{variant:"outline",size:"sm",asChild:!0,children:n.jsxs(an,{to:"/settings/api-keys",children:[n.jsx(Ys,{className:"h-4 w-4 mr-2"}),"Get API Key"]})}),n.jsx(I,{variant:"outline",size:"sm",asChild:!0,children:n.jsxs("a",{href:"https://agenty.com/docs/api",target:"_blank",rel:"noopener noreferrer",children:[n.jsx(ea,{className:"h-4 w-4 mr-2"}),"Full Documentation",n.jsx(ve,{className:"h-3 w-3 ml-1"})]})})]})]})}),n.jsx(be,{className:"space-y-4",children:n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium",children:"Authentication"}),n.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["All API endpoints require authentication using your API key in the Authorization header. You can get your API key from the"," ",n.jsx(an,{to:"/settings/api-keys",className:"text-primary hover:underline",children:"API Keys page"}),"."]}),n.jsx("pre",{className:"mt-2 rounded-md bg-muted p-4",children:n.jsx("code",{children:"Authorization: Bearer your-api-key"})})]})})]}),n.jsxs(xe,{children:[n.jsxs(Oe,{children:[n.jsx(Me,{children:"Endpoints"}),n.jsx(Ye,{children:"Available API endpoints for agent control and management."})]}),n.jsx(be,{className:"space-y-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"rounded-lg border p-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(De,{variant:"outline",className:"bg-green-500/10 text-green-500 border-green-500/20",children:"GET"}),n.jsxs("code",{className:"text-sm",children:["https://api.agenty.com/v2/agents/",t]})]}),n.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Get agent details including configuration and status."})]}),n.jsxs("div",{className:"rounded-lg border p-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(De,{variant:"outline",className:"bg-blue-500/10 text-blue-500 border-blue-500/20",children:"POST"}),n.jsxs("code",{className:"text-sm",children:["https://api.agenty.com/v2/agents/",t,"/start"]})]}),n.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Start the agent with optional input parameters."})]}),n.jsxs("div",{className:"rounded-lg border p-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(De,{variant:"outline",className:"bg-blue-500/10 text-blue-500 border-blue-500/20",children:"POST"}),n.jsxs("code",{className:"text-sm",children:["https://api.agenty.com/v2/agents/",t,"/stop"]})]}),n.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Stop a running agent."})]}),n.jsxs("div",{className:"rounded-lg border p-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(De,{variant:"outline",className:"bg-green-500/10 text-green-500 border-green-500/20",children:"GET"}),n.jsxs("code",{className:"text-sm",children:["https://api.agenty.com/v2/agents/",t,"/results"]})]}),n.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Get agent results with optional filtering and pagination."})]}),n.jsxs("div",{className:"rounded-lg border p-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(De,{variant:"outline",className:"bg-green-500/10 text-green-500 border-green-500/20",children:"GET"}),n.jsxs("code",{className:"text-sm",children:["https://api.agenty.com/v2/agents/",t,"/logs"]})]}),n.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Get agent execution logs."})]})]})})]}),n.jsxs(xe,{children:[n.jsx(Oe,{children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx(Me,{children:"Example Usage"}),n.jsx(Ye,{children:"Code examples for common API operations."})]}),n.jsx("div",{className:"flex items-center gap-2",children:Object.entries(mm).map(([s,i])=>n.jsx("button",{onClick:()=>o(s),className:`p-2 rounded-md border transition-all hover:bg-accent ${r===s?"bg-accent border-primary":"border-transparent"}`,title:s.charAt(0).toUpperCase()+s.slice(1),children:n.jsx("img",{src:i,alt:s,className:"h-6 w-6"})},s))})]})}),n.jsxs(be,{className:"text-sm",children:[r==="javascript"&&n.jsx("pre",{className:"rounded-md bg-muted p-4 overflow-x-auto",children:n.jsx("code",{children:`// 
91Start an agent
92const response = await fetch(\`https://api.agenty.com/v2/agents/${t}/start\`, {
93  method: 'POST',
94  headers: {
95    'Authorization': 'Bearer your-api-key',
96    'Content-Type': 'application/json',
97  },
98  body: JSON.stringify({
99    input: {
100      type: 'url',
101      data: ['https://example.com']
102    }
103  })
104});
105
106const result = await response.json();
107console.log(result);`})}),r==="python"&&n.jsx("pre",{className:"rounded-md bg-muted p-4 overflow-x-auto",children:n.jsx("code",{children:`# Start an agent
108import requests
109
110response = requests.post(
111    f'https://api.agenty.com/v2/agents/${t}/start',
112    headers={
113        'Authorization': 'Bearer your-api-key',
114        'Content-Type': 'application/json',
115    },
116    json={
117        'input': {
118            'type': 'url',
119            'data': ['https://example.com']
120        }
121    }
122)
123
124result = response.json()
125print(result)`})}),r==="php"&&n.jsx("pre",{className:"rounded-md bg-muted p-4 overflow-x-auto",children:n.jsx("code",{children:`<?php
126// Start an agent
127$ch = curl_init("https://api.agenty.com/v2/agents/${t}/start");
128curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
129curl_setopt($ch, CURLOPT_POST, true);
130curl_setopt($ch, CURLOPT_HTTPHEADER, [
131    'Authorization: Bearer your-api-key',
132    'Content-Type: application/json',
133]);
134curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
135    'input' => [
136        'type' => 'url',
137        'data' => ['https://example.com']
138    ]
139]));
140
141$result = curl_exec($ch);
142curl_close($ch);
143echo $result;`})}),r==="ruby"&&n.jsx("pre",{className:"rounded-md bg-muted p-4 overflow-x-auto",children:n.jsx("code",{children:`# Start an agent
144require 'net/http'
145require 'json'
146
147uri = URI("https://api.agenty.com/v2/agents/${t}/start")
148http = Net::HTTP.new(uri.host, uri.port)
149request = Net::HTTP::Post.new(uri.path)
150request['Authorization'] = 'Bearer your-api-key'
151request['Content-Type'] = 'application/json'
152request.body = {
153  input: {
154    type: 'url',
155    data: ['https://example.com']
156  }
157}.to_json
158
159response = http.request(request)
160puts response.body`})}),r==="curl"&&n.jsx("pre",{className:"rounded-md bg-muted p-4 overflow-x-auto",children:n.jsx("code",{children:`# Start an agent
161curl -X POST https://api.agenty.com/v2/agents/${t}/start \\
162  -H "Authorization: Bearer your-api-key" \\
163  -H "Content-Type: application/json" \\
164  -d '{
165    "input": {
166      "type": "url",
167      "data": ["https://example.com"]
168    }
169  }'`})})]})]})]})}const Ro=`// Pre-execution script
170// This script runs before the agent processes each input
171// You have access to the following variables:
172// - input: The current input data array [{}]
173// - agent: Agent configuration {}
174
175// Example: Modify each input item before processing
176for (const item of input) {
177  if (item.url) {
178    item.url = item.url + '?tracking=true';
179  }
180}
181
182// Return modified input or undefined to use original
183// return input;
184`,Bo=`// data is an array[{}] of rows from scraping result
185// module.exports = function modifyOutput(data) {
186//     data.forEach(row => {
187//         if (row.price == '10') {
188//             row.price = 20;
189//         }
190//     })
191//     return data;
192// }`,Fo=[{title:"Replace Field Value",description:"Replace specific values in a field",code:`// Replace field values
193module.exports = function modifyOutput(data) {
194    data.forEach(row => {
195        if (row.status === 'active') {
196            row.status = 'Active';
197        }
198        if (row.status === 'inactive') {
199            row.status = 'Inactive';
200        }
201    });
202    return data;
203}`},{title:"Insert New Field",description:"Add a new calculated field to each row",code:`// Insert new calculated field
204module.exports = function modifyOutput(data) {
205    data.forEach(row => {
206        // Add timestamp
207        row.scrapedAt = new Date().toISOString();
208
209        // Add full name from first and last name
210        row.fullName = row.firstName + ' ' + row.lastName;
211    });
212    return data;
213}`},{title:"Calculate Price with Tax",description:"Add tax calculation to price field",code:`// Calculate price with tax
214module.exports = function modifyOutput(data) {
215    const TAX_RATE = 0.15; // 15% tax
216
217    data.forEach(row => {
218        if (row.price) {
219            const price = parseFloat(row.price);
220            row.priceWithTax = (price * (1 + TAX_RATE)).toFixed(2);
221            row.tax = (price * TAX_RATE).toFixed(2);
222        }
223    });
224    return data;
225}`}
225,{title:"Filter Rows",description:"Remove rows that don't meet criteria",code:`// Filter rows based on conditions
226module.exports = function modifyOutput(data) {
227    // Only keep rows where price is greater than 10
228    return data.filter(row => {
229        const price = parseFloat(row.price);
230        return price > 10;
231    });
232}`},{title:"Format Date Fields",description:"Convert date strings to formatted dates",code:`// Format date fields
233module.exports = function modifyOutput(data) {
234    data.forEach(row => {
235        if (row.date) {
236            const date = new Date(row.date);
237            row.formattedDate = date.toLocaleDateString('en-US');
238            row.year = date.getFullYear();
239            row.month = date.getMonth() + 1;
240        }
241    });
242    return data;
243}`},{title:"Clean and Normalize Text",description:"Clean up text fields by trimming and normalizing",code:`// Clean and normalize text fields
244module.exports = function modifyOutput(data) {
245    data.forEach(row => {
246        // Trim whitespace from all string fields
247        Object.keys(row).forEach(key => {
248            if (typeof row[key] === 'string') {
249                row[key] = row[key].trim();
250            }
251        });
252
253        // Normalize email to lowercase
254        if (row.email) {
255            row.email = row.email.toLowerCase();
256        }
257
258        // Remove extra spaces from title
259        if (row.title) {
260            row.title = row.title.replace(/\\s+/g, ' ');
261        }
262    });
263    return data;
264}`},{title:"Convert Currency",description:"Convert prices from one currency to another",code:`// Convert currency
265module.exports = function modifyOutput(data) {
266    const USD_TO_EUR = 0.85;
267    const USD_TO_GBP = 0.73;
268
269    data.forEach(row => {
270        if (row.priceUSD) {
271            const price = parseFloat(row.priceUSD);
272            row.priceEUR = (price * USD_TO_EUR).toFixed(2);
273            row.priceGBP = (price * USD_TO_GBP).toFixed(2);
274        }
275    });
276    return data;
277}`},{title:"Extract Domain from URL",description:"Extract domain name from URL fields",code:`// Extract domain from URL
278module.exports = function modifyOutput(data) {
279    data.forEach(row => {
280        if (row.url) {
281            try {
282                const url = new URL(row.url);
283                row.domain = url.hostname;
284                row.protocol = url.protocol.replace(':', '');
285            } catch (e) {
286                row.domain = 'invalid';
287            }
288        }
289    });
290    return data;
291}`}];function hm({agentId:t,scripts:r,onChange:o}){var j;const[s,i]=T.useState(!1),{theme:c}=ta(),[l,a]=T.useState({pre:r!=null&&r.pre?{...r.pre,code:((j=r.pre)==null?void 0:j.code)||Ro}:{code:Ro,is_enabled:!1},post:r!=null&&r.post?{...r.post,code:r.post.code||Bo}:{code:Bo,is_enabled:!1,is_parallel_execution:!1}}),[d,e]=T.useState("post"),f=g=>{a({...l,pre:{...l.pre,code:g||""}})},p=g=>{a({...l,post:{...l.post,code:g||""}})},u=g=>{a({...l,pre:{...l.pre,is_enabled:g}})},m=g=>{a({...l,post:{...l.post,is_enabled:g}})},y=g=>{a({...l,post:{...l.post,is_parallel_execution:g}})},v=async()=>{i(!0);try{await K.put(Q.agents,t+"/scripts",l),o(l)}catch(g){U.error(g.message)}finally{i(!1)}},h=g=>{d==="post"&&a({...l,post:{...l.post,code:g}}),U.success("The example script has been loaded into the editor.")};return n.jsxs(xe,{children:[n.jsx(Oe,{children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx(Me,{children:"Scripts"}),n.jsxs(Ye,{children:["Configure pre and post-processing scripts for your agent"," ",n.jsxs("a",{href:"https://agenty.com/docs/scripting/84",target:"_blank",className:"inline-flex items-center text-blue-600 hover:underline",children:["Learn more ",n.jsx(ve,{className:"w-4 h-4 ml-1"})]})]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs(mr,{children:[n.jsx(Rs,{asChild:!0,children:n.jsxs(I,{variant:"outline",children:[n.jsx(Vs,{className:"h-4 w-4 mr-2"}),"Examples"]})}),n.jsxs(fr,{className:"w-[600px] sm:max-w-[600px]",children:[n.jsxs(hr,{children:[n.jsx(yr,{children:"Script Examples"}),n.jsx(Uo,{children:"Click on any example to load it into the editor"})]}),n.jsx(Pt,{className:"h-[calc(100vh-120px)] mt-6",children:n.jsx("div",{className:"space-y-4 pr-4",children:Fo.map((g,x)=>n.jsxs("div",{children:[n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{children:[n.jsx("h4",{className:"font-semibold",children:g.title}),n.jsx("p",{className:"text-sm text-muted-foreground",children:g.description})]}),n.jsx(I,{size:"sm",variant:"outline",onClick:()=>h(g.code),children:"Load"})]}),n.jsx("div",{className:"border rounded-md overflow-hidden",children:n.jsx(ht,{height:"150px",defaultLanguage:"javascript",value:g.code,theme:c==="dark"?"vs-dark":"light",options:{readOnly:!0,minimap:{enabled:!1},fontSize:12,lineNumbers:"off",scrollBeyondLastLine:!1,automaticLayout:!0,scrollbar:{vertical:"hidden",horizontal:"hidden"}}})})]}),x<Fo.length-1&&n.jsx(gr,{className:"my-4"})]},x))})})]})]}),n.jsxs(I,{onClick:v,children:[s?n.jsx(Xe,{className:"mr-2 h-4 w-4 animate-spin"}):n.jsx(Qo,{className:"h-4 w-4 mr-2"}),"Save Script"]})]})]})}),n.jsx(be,{className:"p-0",children:n.jsxs(Gt,{value:d,onValueChange:e,className:"w-full",children:[n.jsx("div",{className:"border-b px-6",children:n.jsxs(zt,{className:"bg-transparent",children:[n.jsx(he,{value:"pre",children:"Pre-Script"}),n.jsx(he,{value:"post",children:"Post-Script"})]})}),n.jsx(ne,{value:"pre",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-sm font-semibold",children:"Pre-execution Script"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Runs before the agent processes each input"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{id:"pre-enabled",checked:l.pre.is_enabled,onCheckedChange:u}),n.jsx(k,{htmlFor:"pre-enabled",children:"Enabled"})]})]}),n.jsx("div",{className:"border rounded-md overflow-hidden",children:n.jsx(ht,{height:"500px",defaultLanguage:"javascript",value:l.pre.code,onChange:f,theme:c==="dark"?"vs-dark":"light",options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2}})})]})}),n.jsx(ne,{value:"post",className:"m-0 p-6",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-sm font-semibold",children:"Post-execution Script"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Process and transform scraped data before saving"})]}),n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{id:"parallel-execution",checked:l.post.is_parallel_execution,onCheckedChange:y}),n.jsx(k,{htmlFor:"parallel-execution",className:"text-sm",children:"Parallel execution"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ee,{id:"post-enabled",checked:l.post.is_enabled,onCheckedChange:m}),n.jsx(k,{htmlFor:"post-enabled",children:"Enabled"})]})]})]}),n.jsx("div",{className:"border rounded-md overflow-hidden",children:n.jsx(ht,{height:"500px",defaultLanguage:"javascript",value:l.post.code,onChange:p,theme:c==="dark"?"vs-dark":"light",options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2}})})]})})]})})]})}var xs={exports:{}};(function(t,r){(function(s,i){t.exports=i()})(globalThis,()=>(()=>{var o={949:(l,a,d)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CronParser=void 0;var e=d(515),f=function(){function p(u,m,y){m===void 0&&(m=!0),y===void 0&&(y=!1),this.expression=u,this.dayOfWeekStartIndexZero=m,this.monthStartIndexZero=y}return p.prototype.parse=function(){var u,m,y=(u=this.expression)!==null&&u!==void 0?u:"";if(y==="@reboot")return m=["@reboot","","","","","",""],m;if(y.startsWith("@")){var v=this.parseSpecial(this.expression);m=this.extractParts(v)}else m=this.extractParts(this.expression);return this.normalize(m),this.validate(m),m},p.prototype.parseSpecial=function(u){var m={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},y=m[u];if(!y)throw new Error("Unknown special expression.");return y},p.prototype.extractParts=function(u){if(!this.expression)throw new Error("cron expression is empty");for(var m=u.trim().split(/[ ]+/),y=0;y<m.length;y++)if(m[y].includes(",")){var v=m[y].split(",").map(function(j){return j.trim()}).filter(function(j){return j!==""}).map(function(j){return isNaN(Number(j))?j:Number(j)}).filter(function(j){return j!==null&&j!==""});v.length===0&&v.push("*"),v.sort(function(j,g){return j!==null&&g!==null?j-g:0}),m[y]=v.map(function(j){return j!==null?j.toString():""}).join(",")}if(m.length<5)throw new Error("Expression has only ".concat(m.length," part").concat(m.length==1?"":"s",". At least 5 parts are required."));
291if(m.length==5)m.unshift(""),m.push("");else if(m.length==6){var h=/\d{4}$/.test(m[5])||m[4]=="?"||m[2]=="?";h?m.unshift(""):m.push("")}else if(m.length>7)throw new Error("Expression has ".concat(m.length," parts; too many!"));return m},p.prototype.normalize=function(u){var m=this;if(u[3]=u[3].replace("?","*"),u[5]=u[5].replace("?","*"),u[2]=u[2].replace("?","*"),u[0].indexOf("0/")==0&&(u[0]=u[0].replace("0/","*/")),u[1].indexOf("0/")==0&&(u[1]=u[1].replace("0/","*/")),u[2].indexOf("0/")==0&&(u[2]=u[2].replace("0/","*/")),u[3].indexOf("1/")==0&&(u[3]=u[3].replace("1/","*/")),u[4].indexOf("1/")==0&&(u[4]=u[4].replace("1/","*/")),u[6].indexOf("1/")==0&&(u[6]=u[6].replace("1/","*/")),u[5]=u[5].replace(/(^\d)|([^#/\s]\d)/g,function(O){var w=O.replace(/\D/,""),S=w;return m.dayOfWeekStartIndexZero?w=="7"&&(S="0"):S=(parseInt(w)-1).toString(),O.replace(w,S)}),u[5]=="L"&&(u[5]="6"),u[3]=="?"&&(u[3]="*"),u[3].indexOf("W")>-1&&(u[3].indexOf(",")>-1||u[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var y={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var v in y)u[5]=u[5].replace(new RegExp(v,"gi"),y[v].toString());u[4]=u[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(O){var w=O.replace(/\D/,""),S=w;return m.monthStartIndexZero&&(S=(parseInt(w)+1).toString()),O.replace(w,S)});var h={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var j in h)u[4]=u[4].replace(new RegExp(j,"gi"),h[j].toString());u[0]=="0"&&(u[0]=""),!/\*|\-|\,|\//.test(u[2])&&(/\*|\//.test(u[1])||/\*|\//.test(u[0]))&&(u[2]+="-".concat(u[2]));for(var g=0;g<u.length;g++)if(u[g].indexOf(",")!=-1&&(u[g]=u[g].split(",").filter(function(O){return O!==""}).join(",")||"*"),u[g]=="*/1"&&(u[g]="*"),u[g].indexOf("/")>-1&&!/^\*|\-|\,/.test(u[g])){var x=null;switch(g){case 4:x="12";break;case 5:x="6";break;case 6:x="9999";break;default:x=null;break}if(x!==null){var b=u[g].split("/");u[g]="".concat(b[0],"-").concat(x,"/").concat(b[1])}}},p.prototype.validate=function(u){var m="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(u[0],m),this.validateOnlyExpectedCharactersFound(u[1],m),this.validateOnlyExpectedCharactersFound(u[2],m),this.validateOnlyExpectedCharactersFound(u[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(u[4],m),this.validateOnlyExpectedCharactersFound(u[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(u[6],m),this.validateAnyRanges(u)},p.prototype.validateAnyRanges=function(u){e.default.secondRange(u[0]),e.default.minuteRange(u[1]),e.default.hourRange(u[2]),e.default.dayOfMonthRange(u[3]),e.default.monthRange(u[4],this.monthStartIndexZero),e.default.dayOfWeekRange(u[5],this.dayOfWeekStartIndexZero)},p.prototype.validateOnlyExpectedCharactersFound=function(u,m){var y=u.match(new RegExp("[^".concat(m,"]+"),"gi"));if(y&&y.length)throw new Error("Expression contains invalid values: '".concat(y.toString(),"'"))},p}();a.CronParser=f},333:(l,a,d)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ExpressionDescriptor=void 0;var e=d(823),f=d(949),p=function(){function u(m,y){if(this.expression=m,this.options=y,this.expressionParts=new Array(5),!this.options.locale&&u.defaultLocale&&(this.options.locale=u.defaultLocale),!u.locales[this.options.locale]){var v=Object.keys(u.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(v,"'.")),this.options.locale=v}this.i18n=u.locales[this.options.locale],y.use24HourTimeFormat===void 0&&(y.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return u.toString=function(m,y){var v=y===void 0?{}:y,h=v.throwExceptionOnParseError,j=h===void 0?!0:h,g=v.verbose,x=g===void 0?!1:g,b=v.dayOfWeekStartIndexZero,O=b===void 0?!0:b,w=v.monthStartIndexZero,S=w===void 0?!1:w,_=v.use24HourTimeFormat,M=v.locale,R=M===void 0?null:M,H=v.logicalAndDayFields,N=H===void 0?!1:H,L={throwExceptionOnParseError:j,verbose:x,dayOfWeekStartIndexZero:O,monthStartIndexZero:S,use24HourTimeFormat:_,locale:R,logicalAndDayFields:N};L.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var G=new u(m,L);return G.getFullDescription()},u.initialize=function(m,y){y===void 0&&(y="en"),u.specialCharacters=["/","-",",","*"],u.defaultLocale=y,m.load(u.locales)},u.prototype.getFullDescription=function(){var m,y,v="";try{var h=new f.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=h.parse(),this.expressionParts[0]==="@reboot")return((y=(m=this.i18n).atReboot)===null||y===void 0?void 0:y.call(m))||"Run once, at startup";var j=this.getTimeOfDayDescription(),g=this.getDayOfMonthDescription(),x=this.getMonthDescription(),b=this.getDayOfWeekDescription(),O=this.getYearDescription();v+=j+g+b+x+O,v=this.transformVerbosity(v,!!this.options.verbose),v=v.charAt(0).toLocaleUpperCase()+v.substr(1)}catch(w){if(!this.options.throwExceptionOnParseError)v=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(w)}return v},u.prototype.getTimeOfDayDescription=function(){var m=this.expressionParts[0],y=this.expressionParts[1],v=this.expressionParts[2],h="";if(!e.StringUtilities.containsAny(y,u.specialCharacters)&&!e.StringUtilities.containsAny(v,u.specialCharacters)&&!e.StringUtilities.containsAny(m,u.specialCharacters))h+=this.i18n.atSpace()+this.formatTime(v,y,m);else if(!m&&y.indexOf("-")>-1&&!(y.indexOf(",")>
291-1)&&!(y.indexOf("/")>-1)&&!e.StringUtilities.containsAny(v,u.specialCharacters)){var j=y.split("-");h+=e.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(v,j[0],""),this.formatTime(v,j[1],""))}else if(!m&&v.indexOf(",")>-1&&v.indexOf("-")==-1&&v.indexOf("/")==-1&&!e.StringUtilities.containsAny(y,u.specialCharacters)){var g=v.split(",");h+=this.i18n.at();for(var x=0;x<g.length;x++)h+=" ",h+=this.formatTime(g[x],y,""),x<g.length-2&&(h+=","),x==g.length-2&&(h+=this.i18n.spaceAnd())}else{var b=this.getSecondsDescription(),O=this.getMinutesDescription(),w=this.getHoursDescription();if(h+=b,h&&O&&(h+=", "),h+=O,O===w)return h;h&&w&&(h+=", "),h+=w}return h},u.prototype.getSecondsDescription=function(){var m=this,y=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(v){return v},function(v){return e.StringUtilities.format(m.i18n.everyX0Seconds(v),v)},function(v){return m.i18n.secondsX0ThroughX1PastTheMinute()},function(v){return v=="0"?"":parseInt(v)<20?m.i18n.atX0SecondsPastTheMinute(v):m.i18n.atX0SecondsPastTheMinuteGt20()||m.i18n.atX0SecondsPastTheMinute(v)});return y},u.prototype.getMinutesDescription=function(){var m=this,y=this.expressionParts[0],v=this.expressionParts[2],h=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(j){return j},function(j){return e.StringUtilities.format(m.i18n.everyX0Minutes(j),j)},function(j){return m.i18n.minutesX0ThroughX1PastTheHour()},function(j){try{return j=="0"&&v.indexOf("/")==-1&&y==""?m.i18n.everyHour():parseInt(j)<20?m.i18n.atX0MinutesPastTheHour(j):m.i18n.atX0MinutesPastTheHourGt20()||m.i18n.atX0MinutesPastTheHour(j)}catch{return m.i18n.atX0MinutesPastTheHour(j)}});return h},u.prototype.getHoursDescription=function(){var m=this,y=this.expressionParts[2],v=0,h=[];y.split("/")[0].split(",").forEach(function(x){var b=x.split("-");b.length===2&&h.push({value:b[1],index:v+1}),v+=b.length});var j=0,g=this.getSegmentDescription(y,this.i18n.everyHour(),function(x){var b=h.find(function(w){return w.value===x&&w.index===j}),O=b&&m.expressionParts[1]!=="0";return j++,O?m.formatTime(x,"59",""):m.formatTime(x,"0","")},function(x){return e.StringUtilities.format(m.i18n.everyX0Hours(x),x)},function(x){return m.i18n.betweenX0AndX1()},function(x){return m.i18n.atX0()});return g},u.prototype.getDayOfWeekDescription=function(){var m=this,y=this.i18n.daysOfTheWeek(),v=null;return this.expressionParts[5]=="*"?v="":v=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(h,j){var g=h;h.indexOf("#")>-1?g=h.substring(0,h.indexOf("#")):h.indexOf("L")>-1&&(g=g.replace("L",""));var x=parseInt(g),b=m.i18n.daysOfTheWeekInCase?m.i18n.daysOfTheWeekInCase(j)[x]:y[x];if(h.indexOf("#")>-1){var O=null,w=h.substring(h.indexOf("#")+1),S=h.substring(0,h.indexOf("#"));switch(w){case"1":O=m.i18n.first(S);break;case"2":O=m.i18n.second(S);break;case"3":O=m.i18n.third(S);break;case"4":O=m.i18n.fourth(S);break;case"5":O=m.i18n.fifth(S);break}b=O+" "+b}return b},function(h){return parseInt(h)==1?"":e.StringUtilities.format(m.i18n.commaEveryX0DaysOfTheWeek(h),h)},function(h){var j=h.substring(0,h.indexOf("-")),g=m.expressionParts[3]!="*";return g?m.i18n.commaAndX0ThroughX1(j):m.i18n.commaX0ThroughX1(j)},function(h){var j=null;if(h.indexOf("#")>-1){var g=h.substring(h.indexOf("#")+1),x=h.substring(0,h.indexOf("#"));j=m.i18n.commaOnThe(g,x).trim()+m.i18n.spaceX0OfTheMonth()}else if(h.indexOf("L")>-1)j=m.i18n.commaOnTheLastX0OfTheMonth(h.replace("L",""));else{var b=m.expressionParts[3]!="*";b?m.options.logicalAndDayFields?j=m.i18n.commaOnlyOnX0(h):j=m.i18n.commaAndOnX0():j=m.i18n.commaOnlyOnX0(h)}return j}),v},u.prototype.getMonthDescription=function(){var m=this,y=this.i18n.monthsOfTheYear(),v=this.getSegmentDescription(this.expressionParts[4],"",function(h,j){return j&&m.i18n.monthsOfTheYearInCase?m.i18n.monthsOfTheYearInCase(j)[parseInt(h)-1]:y[parseInt(h)-1]},function(h){return parseInt(h)==1?"":e.StringUtilities.format(m.i18n.commaEveryX0Months(h),h)},function(h){return m.i18n.commaMonthX0ThroughMonthX1()||m.i18n.commaX0ThroughX1()},function(h){return m.i18n.commaOnlyInMonthX0?m.i18n.commaOnlyInMonthX0():m.i18n.commaOnlyInX0()});return v},u.prototype.getDayOfMonthDescription=function(){var m=this,y=null,v=this.expressionParts[3];switch(v){case"L":y=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":y=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var h=v.match(/(\d{1,2}W)|(W\d{1,2})/);if(h){var j=parseInt(h[0].replace("W","")),g=j==1?this.i18n.firstWeekday():e.StringUtilities.format(this.i18n.weekdayNearestDayX0(),j.toString());y=e.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),g);break}else{var x=v.match(/L-(\d{1,2})/);if(x){var b=x[1];y=e.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(b),b);break}else{if(v=="*"&&this.expressionParts[5]!="*")return"";y=this.getSegmentDescription(v,this.i18n.commaEveryDay(),function(O){return O=="L"?m.i18n.lastDay():m.i18n.dayX0?e.StringUtilities.format(m.i18n.dayX0(),O):O},function(O){return O=="1"?m.i18n.commaEveryDay():m.i18n.commaEveryX0Days(O)},function(O){return m.i18n.commaBetweenDayX0AndX1OfTheMonth(O)},function(O){return m.i18n.commaOnDayX0OfTheMonth(O)})}break}}return y},u.prototype.getYearDescription=function(){var m=this,y=this.getSegmentDescription(this.expressionParts[6],"",function(v){return/^\d+$/.test(v)?new Date(parseInt(v),1).getFullYear().toString():v},function(v){return e.StringUtilities.format(m.i18n.commaEveryX0Years(v),v)},function(v){return m.i18n.commaYearX0ThroughYearX1()||m.i18n.commaX0ThroughX1()},function(v){return m.i18n.commaOnlyInYearX0?m.i18n.commaOnlyInYearX0():m.i18n.commaOnlyInX0()});return y},u.prototype.getSegmentDescription=function(m,y,v,h,j,g){var x=null,b=m.indexOf("/")>-1,O=m.indexOf("-")>-1,w=m.indexOf(",")>-1;if(!m)x="";else if(m==="*")x=y;else if(!b&&!O&&!w)x=e.StringUtilities.format(g(m),v(m));else if(w){for(var S=m.split(","),_="",M=0;M<S.length;M++)if(M>0&&S.length>2&&(_+=",",M<S.length-1&&(_+=" ")),M>0&&S.length>1&&(M==S.length-1||S.length==2)&&(_+="".concat(this.i18n.spaceAnd()," ")),S[M].indexOf("/")>-1||S[M].indexOf("-")>-1){var R=S[M].indexOf("-")>-1&&S[M].indexOf("/")==-1,H=this.getSegmentDescription(S[M],y,v,h,R?this.i18n.commaX0ThroughX1:j,g);R&&(H=H.replace(", ","")),_+=H}else b?_+=this.getSegmentDescription(S[M],y,v,h,j,g):_+=v(S[M]);b?x=_:x=e.StringUtilities.format(g(m),_)}else if(b){var S=m.split("/");if(x=e.StringUtilities.format(h(S[1]),S[1]),S[0].indexOf("-")>-1){var N=this.generateRangeSegmentDescription(S[0],j,v);N.indexOf(", ")!=0&&(x+=", "),x+=N}else if(S[0].indexOf("*")==-1){var L=e.StringUtilities.format(g(S[0]),v(S[0]));L=L.replace(", ",""),x+=e.StringUtilities.format(this.i18n.commaStartingX0(),L)}}else O&&(x=this.generateRangeSegmentDescription(m,j,v));return x},u.prototype.generateRangeSegmentDescription=function(m,y,v){var h="",j=m.split("-"),g=v(j[0],1),x=v(j[1],2),b=y(m);return h+=e.StringUtilities.format(b,g,x),h},u.prototype.formatTime=function(m,y,v){var h=0,j=0,g=parseInt(m)+h,x=parseInt(y)+j;x>=60?(x-=60,g+=1):x<0&&(x+=60,g-=1),g>=24?g=g-24:g<0&&(g=24+g);var b="",O=!1;this.options.use24HourTimeFormat||(O=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),b=O?"".concat(this.getPeriod(g)," "):" ".concat(this.getPeriod(g)),g>12&&(g-=12),g===0&&(g=12));var w="";return v&&(w=":".concat(("00"+v).substring(v.length))),"".concat(O?b:"").concat(("00"+g.toString()).substring(g.toString().length),":").concat(("00"+x.toString()).substring(x.toString().length)).concat(w).c
291oncat(O?"":b)},u.prototype.transformVerbosity=function(m,y){if(!y&&(m=m.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),m=m.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),m=m.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),m=m.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var v=0,h=Object.entries(this.i18n.conciseVerbosityReplacements());v<h.length;v++){var j=h[v],g=j[0],x=j[1];m=m.replace(new RegExp(g,"g"),x)}return m},u.prototype.getPeriod=function(m){return m>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},u.locales={},u}();a.ExpressionDescriptor=p},99:(l,a,d)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.sr=a.hr=a.bg=a.my=a.vi=a.ar=a.th=a.af=a.hu=a.be=a.ca=a.fa=a.sw=a.sl=a.fi=a.sk=a.cs=a.he=a.ja=a.zh_TW=a.zh_CN=a.uk=a.tr=a.ru=a.ro=a.pt_PT=a.pt_BR=a.pl=a.sv=a.nb=a.nl=a.ko=a.id=a.it=a.fr=a.es=a.de=a.da=a.en=void 0;var e=d(486);Object.defineProperty(a,"en",{enumerable:!0,get:function(){return e.en}});var f=d(506);Object.defineProperty(a,"da",{enumerable:!0,get:function(){return f.da}});var p=d(230);Object.defineProperty(a,"de",{enumerable:!0,get:function(){return p.de}});var u=d(153);Object.defineProperty(a,"es",{enumerable:!0,get:function(){return u.es}});var m=d(517);Object.defineProperty(a,"fr",{enumerable:!0,get:function(){return m.fr}});var y=d(488);Object.defineProperty(a,"it",{enumerable:!0,get:function(){return y.it}});var v=d(72);Object.defineProperty(a,"id",{enumerable:!0,get:function(){return v.id}});var h=d(839);Object.defineProperty(a,"ko",{enumerable:!0,get:function(){return h.ko}});var j=d(647);Object.defineProperty(a,"nl",{enumerable:!0,get:function(){return j.nl}});var g=d(957);Object.defineProperty(a,"nb",{enumerable:!0,get:function(){return g.nb}});var x=d(544);Object.defineProperty(a,"sv",{enumerable:!0,get:function(){return x.sv}});var b=d(905);Object.defineProperty(a,"pl",{enumerable:!0,get:function(){return b.pl}});var O=d(556);Object.defineProperty(a,"pt_BR",{enumerable:!0,get:function(){return O.pt_BR}});var w=d(163);Object.defineProperty(a,"pt_PT",{enumerable:!0,get:function(){return w.pt_PT}});var S=d(614);Object.defineProperty(a,"ro",{enumerable:!0,get:function(){return S.ro}});var _=d(892);Object.defineProperty(a,"ru",{enumerable:!0,get:function(){return _.ru}});var M=d(631);Object.defineProperty(a,"tr",{enumerable:!0,get:function(){return M.tr}});var R=d(225);Object.defineProperty(a,"uk",{enumerable:!0,get:function(){return R.uk}});var H=d(571);Object.defineProperty(a,"zh_CN",{enumerable:!0,get:function(){return H.zh_CN}});var N=d(983);Object.defineProperty(a,"zh_TW",{enumerable:!0,get:function(){return N.zh_TW}});var L=d(904);Object.defineProperty(a,"ja",{enumerable:!0,get:function(){return L.ja}});var G=d(82);Object.defineProperty(a,"he",{enumerable:!0,get:function(){return G.he}});var Z=d(651);Object.defineProperty(a,"cs",{enumerable:!0,get:function(){return Z.cs}});var se=d(923);Object.defineProperty(a,"sk",{enumerable:!0,get:function(){return se.sk}});var re=d(964);Object.defineProperty(a,"fi",{enumerable:!0,get:function(){return re.fi}});var X=d(474);Object.defineProperty(a,"sl",{enumerable:!0,get:function(){return X.sl}});var A=d(799);Object.defineProperty(a,"sw",{enumerable:!0,get:function(){return A.sw}});var Y=d(804);Object.defineProperty(a,"fa",{enumerable:!0,get:function(){return Y.fa}});var q=d(845);Object.defineProperty(a,"ca",{enumerable:!0,get:function(){return q.ca}});var ae=d(348);Object.defineProperty(a,"be",{enumerable:!0,get:function(){return ae.be}});var de=d(194);Object.defineProperty(a,"hu",{enumerable:!0,get:function(){return de.hu}});var Ae=d(810);Object.defineProperty(a,"af",{enumerable:!0,get:function(){return Ae.af}});var Pe=d(33);Object.defineProperty(a,"th",{enumerable:!0,get:function(){return Pe.th}});var Le=d(574);Object.defineProperty(a,"ar",{enumerable:!0,get:function(){return Le.ar}});var D=d(292);Object.defineProperty(a,"vi",{enumerable:!0,get:function(){return D.vi}});var C=d(919);Object.defineProperty(a,"my",{enumerable:!0,get:function(){return C.my}});var z=d(622);Object.defineProperty(a,"bg",{enumerable:!0,get:function(){return z.bg}});var W=d(131);Object.defineProperty(a,"hr",{enumerable:!0,get:function(){return W.hr}});var pe=d(716);Object.defineProperty(a,"sr",{enumerable:!0,get:function(){return pe.sr}})},420:(l,a,d)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.allLocalesLoader=void 0;var e=d(99),f=function(){function p(){}return p.prototype.load=function(u){for(var m in e)e.hasOwnProperty(m)&&(u[m]=new e[m])},p}();a.allLocalesLoader=f},810:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.af=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return", jaar %s na %s"},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Daar was 'n fout om die tydsuitdrukking the genereer. Raadpleeg asb die uitdrukking formaat."},e.prototype.everyMinute=function(){return"elke minuut"},e.prototype.everyHour=function(){return"elke uur"},e.prototype.atSpace=function(){return"Teen "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Elke minuut tussen %s en %s"},e.prototype.at=function(){return"Teen"},e.prototype.spaceAnd=function(){return" en"},e.prototype.everySecond=function(){return"elke sekonde"},e.prototype.everyX0Seconds=function(){return"elke %s sekonde"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekonde %s deur na %s na die minuut"},e.prototype.atX0SecondsPastTheMinute=function(){return"teen %s sekondes na die minuut"},e.prototype.everyX0Minutes=function(){return"elke %s minute"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minute %s deur na %s na die uur"},e.prototype.atX0MinutesPastTheHour=function(){return"teen %s minute na die uur"},e.prototype.everyX0Hours=function(){return"elke %s ure"},e.prototype.betweenX0AndX1=function(){return"tussen %s en %s"},e.prototype.atX0=function(){return"teen %s"},e.prototype.commaEveryDay=function(){return", elke dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", elke %s dae van die week"},e.prototype.commaX0ThroughX1=function(){return", %s deur na %s"},e.prototype.commaAndX0ThroughX1=function(){return", en %s deur na %s"},e.prototype.first=function(){return"eerste"},e.prototype.second=function(){return"tweede"},e.prototype.third=function(){return"derde"},e.prototype.fourth=function(){return"vierde"},e.prototype.fifth=function(){return"vyfde"},e.prototype.commaOnThe=function(){return", op die "},e.prototype.spaceX0OfTheMonth=function(){return" %s van die maand"},e.prototype.lastDay=function(){return"die laaste dag"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", op die laaste %s van die maand"},e.prototype.commaOnlyOnX0=function(){return", net op %s"},e.prototype.commaAndOnX0=function(){return", en op %s"},e.prototype.commaEveryX0Months=function(){return", elke %s maande"},e.prototype.commaOnlyInX0=function(){return", net in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", op die laaste dag van die maand"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", op die laaste weeksdag van die maand"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dae voor die laaste dag van die maand"},e.prototype.firstWeekday=function(){return"eerste weeksdag"},e.prototype.weekdayNearestDayX0=function(){return"weeksdag naaste aan dag %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", op die %s van die maande"},e.prototype.commaEveryX0Days=function(){return", elke %s dae"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tussen dag %s en %s van die maand"},e.prototype.commaOnDayX0OfTheMonth=function(){return", op dag %s van die maand"},e.prototype.commaEveryHour=function(){return", elke uur"},e.prototype.commaEveryX0Years=function(){return", elke %s jare"},e.prototype.commaStartingX0=function(){return", beginnende %s"},e.prototype.daysOfTheWeek=function(){return["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},e.prototype.monthsOfTheYear=function(){return["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},e}();a.af=d},574:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ar=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"حدث خطأ في إنشاء وصف المصطلح٠ تأكد من تركيب مصطلح الكرون"},e.prototype.everyMinute=function(){return"كل دقيقة"},e.prototype.everyHour=function(){return"كل ساعة"},e.prototype.atSpace=function(){return" "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"كل دقيقة بين %s و %s"},e.prototype.at=function(){return""},e.prototype.spaceAnd=function(){return" و"},e.prototype.everySecond=function(){return"كل ثانية"},e.prototype.everyX0Seconds=function(){return"كل %s ثواني"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"الثواني %s حتى %s من بداية الدقيقة"},e.prototype.atX0SecondsPastTheMinute=function(){return"الثانية %s من بداية الدقيقة"},e.prototype.everyX0Minutes=function(){return"كل %s دقائق"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"الدقائق %s حتى %s من بداية الساعة"},e.prototype.atX0MinutesPastTheHour=function(){return"الدقيقة %s من بداية الساعة"},e.prototype.everyX0Hours=function(){return"كل %s ساعات"},e.prototype.betweenX0AndX1=function(){return"بين %s و %s"},e.prototype.atX0=function(){return"%s"},e.prototype.commaEveryDay=function(){return"، كل يوم"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return"، كل %s من أيام الأسبوع"},e.prototype.commaX0ThroughX1=function(){return"، %s حتى %s"},e.prototype.commaAndX0ThroughX1=function(){return"، و %s حتى %s"},e.prototype.first=function(){return"أول"},e.prototype.second=function(){return"ثاني"},e.prototype.third=function(){return"ثالث"},e.prototype.fourth=function(){return"رابع"},e.prototype.fifth=function(){return"خامس"},e.prototype.commaOnThe=function(){return"، في ال"},e.prototype.spaceX0OfTheMonth=function(){return" %s من الشهر"},e.prototype.lastDay=function(){return"اليوم الأخير"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return"، في اخر %s من الشهر"},e.prototype.commaOnlyOnX0=function(){return"، %s فقط"},e.prototype.commaAndOnX0=function(){return"، وفي %s"},e.prototype.commaEveryX0Months=function(){return"، كل %s أشهر"},e.prototype.commaOnlyInX0=function(){return"، %s فقط"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return"، في اخر يوم من الشهر"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return"، في اخر يوم أسبوع من الشهر"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return"، %s أيام قبل اخر يوم من الشهر"},e.prototype.firstWeekday=function(){return"اول ايام الأسبوع"},e.prototype.weekdayNearestDayX0=function(){return"يوم الأسبوع الأقرب ليوم %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return"، في %s من الشهر"},e.prototype.commaEveryX0Days=function(){return"، كل %s أيام"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return"، بين يوم %s و %s من الشهر"},e.prototype.commaOnDayX0OfTheMonth=function(){return"، في اليوم %s من الشهر"},e.prototype.commaEveryHour=function(){return"، كل ساعة"},e.prototype.commaEveryX0Years=function(){return"، كل %s سنوات"},e.prototype.commaStartingX0=function(){return"، بداية من %s"},e.prototype.daysOfTheWeek=function(){return["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},e.prototype.monthsOfTheYear=function(){return["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},e}();a.ar=d},348:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.be=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.everyMinute=function(){return"кожную хвіліну"},e.prototype.everyHour=function(){return"кожную гадзіну"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Адбылася памылка падчас генерацыі апісання выразы. Праверце сінтаксіс крон-выразы."},e.prototype.atSpace=function(){return"У "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Кожную хвіліну з %s да %s"},e.prototype.at=function(){return"У"},e.prototype.spaceAnd=function(){return" і"},e.prototype.everySecond=function(){return"кожную секунду"},e.prototype.everyX0Seconds=function(){return"кожныя %s секунд"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды з %s па %s"},e.prototype.atX0SecondsPastTheMinute=function(){return"у %s секунд"},e.prototype.everyX0Minutes=function(){return"кожныя %s хвілін"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"хвіліны з %s па %s"},e.prototype.atX0MinutesPastTheHour=function(){return"у %s хвілін"},e.prototype.everyX0Hours=function(){return"кожныя %s гадзін"},e.prototype.betweenX0AndX1=function(){return"з %s па %s"},e.prototype.atX0=function(){return"у %s"},e.prototype.commaEveryDay=function(){return", кожны дзень"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожныя %s дзён тыдня"},e.prototype.commaX0ThroughX1=function(){return", %s па %s"},e.prototype.commaAndX0ThroughX1=function(){return", і %s па %s"},e.prototype.first=function(){return"першы"},e.prototype.second=function(){return"другі"},e.prototype.third=function(){return"трэці"},e.prototype.fourth=function(){return"чацвёрты"},e.prototype.fifth=function(){return"пяты"},e.prototype.commaOnThe=function(){return", у "},e.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},e.prototype.lastDay=function(){return"апошні дзень"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", у апошні %s месяца"},e.prototype.commaOnlyOnX0=function(){return", толькі ў %s"},e.prototype.commaAndOnX0=function(){return", і ў %s"},e.prototype.commaEveryX0Months=function(){return", кожныя %s месяцаў"},e.prototype.commaOnlyInX0=function(){return", толькі ў %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", у апошні дзень месяца"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", у апошні будні дзень месяца"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s дзён да апошняга дня месяца"},e.prototype.firstWeekday=function(){return"першы будны дзень"},e.prototype.weekdayNearestDayX0=function(){return"найбліжэйшы будны дзень да %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", у %s месяцы"},e.prototype.commaEveryX0Days=function(){return", кожныя %s дзён"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", з %s па %s лік месяца"},e.proto
291type.commaOnDayX0OfTheMonth=function(){return", у %s лік месяца"},e.prototype.commaEveryX0Years=function(){return", кожныя %s гадоў"},e.prototype.commaStartingX0=function(){return", пачатак %s"},e.prototype.daysOfTheWeek=function(){return["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},e.prototype.monthsOfTheYear=function(){return["студзень","люты","сакавік","красавік","травень","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},e}();a.be=d},622:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.bg=void 0;var d=function(u,m){var y=u!=null?Number(u):0;return y<2?m[0]:m[1]},e=function(u,m){var y=u!=null?Number(u):0;return m[[1,0,0,1,0,0,1][y]]},f=function(u,m){var y=u!=null?Number(u):1;y=Math.max(Math.min(y<10||y>20&&y%10!==0?y%10:3,3),1)-1;var v=["м","ж","ср"].indexOf(m);return["в","р","т"][y]+["и","а","о"][v]},p=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!0},u.prototype.everyMinute=function(){return"всяка минута"},u.prototype.everyHour=function(){return"всеки час"},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Възникна грешка при генериране на описанието на израза. Проверете синтаксиса на cron израза."},u.prototype.atSpace=function(){return"В "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Всяка минута от %s до %s"},u.prototype.at=function(){return"В"},u.prototype.spaceAnd=function(){return" и"},u.prototype.everySecond=function(){return"всяка секунда"},u.prototype.everyX0Seconds=function(m){return"всеки %s секунди"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунди от %s до %s"},u.prototype.atX0SecondsPastTheMinute=function(m){return"%s-".concat(f(m,"ж")," секунда")},u.prototype.everyX0Minutes=function(m){return"всеки %s минути"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"минути от %s до %s"},u.prototype.atX0MinutesPastTheHour=function(m){return"%s-".concat(f(m,"ж")," минутa")},u.prototype.everyX0Hours=function(m){return"всеки %s часа"},u.prototype.betweenX0AndX1=function(){return"от %s до %s"},u.prototype.atX0=function(){return"в %s"},u.prototype.commaEveryDay=function(){return", всеки ден"},u.prototype.commaEveryX0DaysOfTheWeek=function(m){return d(m,[", всеки %s ден от седмицата",", всеки %s дена от седмицата"])},u.prototype.commaX0ThroughX1=function(m){return", от %s до %s"},u.prototype.commaAndX0ThroughX1=function(m){return" и от %s до %s"},u.prototype.first=function(m){return e(m,["первият","первата"])},u.prototype.second=function(m){return e(m,["вторият","втората"])},u.prototype.third=function(m){return e(m,["третият","третата"])},u.prototype.fourth=function(m){return e(m,["четвертият","четвертата"])},u.prototype.fifth=function(m){return e(m,["петият","петата"])},u.prototype.commaOnThe=function(m){return", "},u.prototype.spaceX0OfTheMonth=function(){return" %s на месеца"},u.prototype.lastDay=function(){return"последният ден"},u.prototype.commaOnTheLastX0OfTheMonth=function(m){return e(m,[", в последният %s от месеца",", в последната %s отмесеца"])},u.prototype.commaOnlyOnX0=function(m){return", %s"},u.prototype.commaAndOnX0=function(){return" и %s"},u.prototype.commaEveryX0Months=function(m){return" всеки %s месеца"},u.prototype.commaOnlyInMonthX0=function(){return", %s"},u.prototype.commaOnlyInX0=function(){return", в %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последният ден на месеца"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последния делничен ден от месеца"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(m){return d(m,[", %s ден преди края на месеца",", %s дена преди края на месеца"])},u.prototype.firstWeekday=function(){return"първият делничен ден"},u.prototype.weekdayNearestDayX0=function(){return"най-близкият делничен ден до %s число"},u.prototype.commaOnTheX0OfTheMonth=function(){return", на %s число от месеца"},u.prototype.commaEveryX0Days=function(m){return d(m,[", всеки %s ден",", всеки %s дена"])},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(m){var y,v=(y=m==null?void 0:m.split("-"))!==null&&y!==void 0?y:[];return", от %s-".concat(f(v[0],"ср")," до %s-").concat(f(v[1],"ср")," число Ð
291½Ð° месеца")},u.prototype.commaOnDayX0OfTheMonth=function(m){return", на %s-".concat(f(m,"ср")," число от месеца")},u.prototype.commaEveryX0Years=function(m){return d(m,[", всяка %s година",", всеки %s години"])},u.prototype.commaStartingX0=function(){return", започвайки %s"},u.prototype.daysOfTheWeek=function(){return["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},u.prototype.monthsOfTheYear=function(){return["януари","февруари","март","април","май","юни","юли","август","септевмври","октомври","ноември","декември"]},u}();a.bg=p},845:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ca=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"S'ha produït un error mentres es generava la descripció de l'expressió. Revisi la sintaxi de la expressió de cron."},e.prototype.at=function(){return"A les"},e.prototype.atSpace=function(){return"A les "},e.prototype.atX0=function(){return"a les %s"},e.prototype.atX0MinutesPastTheHour=function(){return"als %s minuts de l'hora"},e.prototype.atX0SecondsPastTheMinute=function(){return"als %s segonds del minut"},e.prototype.betweenX0AndX1=function(){return"entre les %s i les %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre els dies %s i %s del mes"},e.prototype.commaEveryDay=function(){return", cada dia"},e.prototype.commaEveryX0Days=function(){return", cada %s dies"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s dies de la setmana"},e.prototype.commaEveryX0Months=function(){return", cada %s mesos"},e.prototype.commaOnDayX0OfTheMonth=function(){return", el dia %s del mes"},e.prototype.commaOnlyInX0=function(){return", sólo en %s"},e.prototype.commaOnlyOnX0=function(){return", només el %s"},e.prototype.commaAndOnX0=function(){return", i el %s"},e.prototype.commaOnThe=function(){return", en el "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", en l'últim dia del mes"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en l'últim dia de la setmana del mes"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dies abans de l'últim dia del mes"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", en l'últim %s del mes"},e.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},e.prototype.commaX0ThroughX1=function(){return", de %s a %s"},e.prototype.commaAndX0ThroughX1=function(){return", i de %s a %s"},e.prototype.everyHour=function(){return"cada hora"},e.prototype.everyMinute=function(){return"cada minut"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minut entre les %s i les %s"},e.prototype.everySecond=function(){return"cada segon"},e.prototype.everyX0Hours=function(){return"cada %s hores"},e.prototype.everyX0Minutes=function(){return"cada %s minuts"},e.prototype.everyX0Seconds=function(){return"cada %s segons"},e.prototype.fifth=function(){return"cinquè"},e.prototype.first=function(){return"primer"},e.prototype.firstWeekday=function(){return"primer dia de la setmana"},e.prototype.fourth=function(){return"quart"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minut %s al %s passada l'hora"},e.prototype.second=function(){return"segon"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En els segons %s al %s de cada minut"},e.prototype.spaceAnd=function(){return" i"},e.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},e.prototype.lastDay=function(){return"l'últim dia"},e.prototype.third=function(){return"tercer"},e.prototype.weekdayNearestDayX0=function(){return"dia de la setmana més proper al %s"},e.prototype.commaEveryX0Years=function(){return", cada %s anys"},e.prototype.commaStartingX0=function(){return", començant %s"},e.prototype.daysOfTheWeek=function(){return["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},e.prototype.monthsOfTheYear=function(){return["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},e}();
291a.ca=d},651:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.cs=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Při vytváření popisu došlo k chybě. Zkontrolujte prosím správnost syntaxe cronu."},e.prototype.everyMinute=function(){return"každou minutu"},e.prototype.everyHour=function(){return"každou hodinu"},e.prototype.atSpace=function(){return"V "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Každou minutu mezi %s a %s"},e.prototype.at=function(){return"V"},e.prototype.spaceAnd=function(){return" a"},e.prototype.everySecond=function(){return"každou sekundu"},e.prototype.everyX0Seconds=function(){return"každých %s sekund"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},e.prototype.atX0SecondsPastTheMinute=function(){return"v %s sekund"},e.prototype.everyX0Minutes=function(){return"každých %s minut"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},e.prototype.atX0MinutesPastTheHour=function(){return"v %s minut"},e.prototype.everyX0Hours=function(){return"každých %s hodin"},e.prototype.betweenX0AndX1=function(){return"mezi %s a %s"},e.prototype.atX0=function(){return"v %s"},e.prototype.commaEveryDay=function(){return", každý den"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", každých %s dní v týdnu"},e.prototype.commaX0ThroughX1=function(){return", od %s do %s"},e.prototype.commaAndX0ThroughX1=function(){return", a od %s do %s"},e.prototype.first=function(){return"první"},e.prototype.second=function(){return"druhý"},e.prototype.third=function(){return"třetí"},e.prototype.fourth=function(){return"čtvrtý"},e.prototype.fifth=function(){return"pátý"},e.prototype.commaOnThe=function(){return", "},e.prototype.spaceX0OfTheMonth=function(){return" %s v měsíci"},e.prototype.lastDay=function(){return"poslední den"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", poslední %s v měsíci"},e.prototype.commaOnlyOnX0=function(){return", pouze v %s"},e.prototype.commaAndOnX0=function(){return", a v %s"},e.prototype.commaEveryX0Months=function(){return", každých %s měsíců"},e.prototype.commaOnlyInX0=function(){return", pouze v %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", poslední den v měsíci"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", poslední pracovní den v měsíci"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dní před posledním dnem v měsíci"},e.prototype.firstWeekday=function(){return"první pracovní den"},e.prototype.weekdayNearestDayX0=function(){return"pracovní den nejblíže %s. dni"},e.prototype.commaOnTheX0OfTheMonth=function(){return", v %s v měsíci"},e.prototype.commaEveryX0Days=function(){return", každých %s dnů"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mezi dny %s a %s v měsíci"},e.prototype.commaOnDayX0OfTheMonth=function(){return", %s. den v měsíci"},e.prototype.commaEveryX0Years=function(){return", každých %s roků"},e.prototype.commaStartingX0=function(){return", začínající %s"},e.prototype.daysOfTheWeek=function(){return["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"]},e.prototype.monthsOfTheYear=function(){return["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"]},e}();a.cs=d},506:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.da=void 0;var d=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Der opstod en fejl ved generering af udtryksbeskrivelsen. Tjek cron-ekspressionssyntaxen."},e.prototype.at=function(){return"kl"},e.prototype.atSpace=function(){return"kl "},e.prototype.atX0=function(){return"kl %s"},e.prototype.atX0MinutesPastTheHour=function(){return"%s minutter efter timeskift"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s sekunder efter minutskift"},e.prototype.betweenX0AndX1=function(){return"mellem %s og %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mellem dag %s og %s i måneden"},e.prototype.commaEveryDay=function(){return", hver dag"},e.prototype.commaEveryX0Days=function(){return", hver %s. dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", hver %s. ugedag"},e.prototype.commaEveryX0Months=function(){return", hver %s. måned"},e.prototype.commaEveryX0Years=function(){return", hvert %s. år"},e.prototype.commaOnDayX0OfTheMonth=function(){return", på dag %s i måneden"},e.prototype.commaOnlyInX0=function(){return", kun i %s"},e.prototype.commaOnlyOnX0=function(f){return", på enhver %s"},e.prototype.commaAndOnX0=function(){return", og på %s"},e.prototype.commaOnThe=function(){return", på den "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", på den sidste dag i måneden"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", på den sidste hverdag i måneden"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dage før den sidste dag i måneden"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", på den sidste %s i måneden"},e.prototype.commaOnTheX0OfTheMonth=function(){return", på den %s i måneden"},e.prototype.commaX0ThroughX1=function(){return", %s til og med %s"},e.prototype.commaAndX0ThroughX1=function(){return", og %s til og med %s"},e.prototype.everyHour=function(){return"hver time"},e.prototype.everyMinute=function(){return"hvert minut"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"hvert minut mellem %s og %s"},e.prototype.everySecond=function(){return"hvert sekund"},e.prototype.everyX0Hours=function(){return"hver %s. time"},e.prototype.everyX0Minutes=function(){return"hvert %s. minut"},e.prototype.everyX0Seconds=function(){return"hvert %s. sekund"},e.prototype.fifth=function(){return"femte"},e.prototype.first=function(){return"første"},e.prototype.firstWeekday=function(){return"første hverdag"},e.prototype.fourth=function(){return"fjerde"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutterne fra %s til og med %s hver time"},e.prototype.second=function(){return"anden"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunderne fra %s til og med %s hvert minut"},e.prototype.spaceAnd=function(){return" og"},e.prototype.spaceX0OfTheMonth=function(){return" %s i måneden"},e.prototype.lastDay=function(){return"sidste dag"},e.prototype.third=function(){return"tredje"},e.prototype.weekdayNearestDayX0=function(){return"hverdag nærmest dag %s"},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.commaStartingX0=function(){return", startende %s"},e.prototype.daysOfTheWeek=function(){return["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},e.prototype.monthsOfTheYear=function(){return["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},e}();a.da=d},230:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.de=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"jede Minute"},e.prototype.everyHour=function(){return"jede Stunde"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. Überprüfen Sie die Syntax des Cron-Ausdrucks."},e.prototype.atSpace=function(){return"Um "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},e.prototype.at=function(){return"Um"},e.prototype.spaceAnd=function(){return" und"},e.prototype.everySecond=function(){return"Jede Sekunde"},e.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},e.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},e.prototype.everyX0Minutes=function(){return"alle %s Minuten"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},e.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},e.prototype.everyX0Hours=function(){return"alle %s Stunden"},e.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},e.prototype.atX0=function(){return"um %s"},e.prototype.commaEveryDay=function(){return", jeden Tag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},e.prototype.commaX0ThroughX1=function(){return", %s bis %s"},e.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},e.prototype.first=function(){return"ersten"},e.prototype.second=function(){return"zweiten"},e.prototype.third=function(){return"dritten"},e.prototype.fourth=function(){return"vierten"},e.prototype.fifth=function(){return"fünften"},e.prototype.commaOnThe=function(){return", am "},e.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},e.prototype.lastDay=function(){return"der letzte Tag"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},e.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},e.prototype.commaAndOnX0=function(){return", und jeden %s"},e.prototype.commaEveryX0Months=function(){return", alle %s Monate"},e.prototype.commaOnlyInX0=function(){return", nur im %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},e.prototype.firstWeekday=function(){return"ersten Werktag"},e.prototype.weekdayNearestDayX0=function(){return"Werktag am nächsten zum %s Tag"},e.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},e.prototype.commaEveryX0Days=function(){return", alle %s Tage"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},e.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},e.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},e.prototype.commaStartingX0=function(){return", beginnend %s"},e.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},e.prototype.monthsOfTheYear=function(){return["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},e}();
291a.de=d},486:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.en=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},e.prototype.everyMinute=function(){return"every minute"},e.prototype.everyHour=function(){return"every hour"},e.prototype.atSpace=function(){return"At "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},e.prototype.at=function(){return"At"},e.prototype.spaceAnd=function(){return" and"},e.prototype.everySecond=function(){return"every second"},e.prototype.everyX0Seconds=function(){return"every %s seconds"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},e.prototype.everyX0Minutes=function(){return"every %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},e.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},e.prototype.everyX0Hours=function(){return"every %s hours"},e.prototype.betweenX0AndX1=function(){return"between %s and %s"},e.prototype.atX0=function(){return"at %s"},e.prototype.commaEveryDay=function(){return", every day"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", %s through %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},e.prototype.first=function(){return"first"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"third"},e.prototype.fourth=function(){return"fourth"},e.prototype.fifth=function(){return"fifth"},e.prototype.commaOnThe=function(){return", on the "},e.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},e.prototype.lastDay=function(){return"the last day"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},e.prototype.commaOnlyOnX0=function(){return", only on %s"},e.prototype.commaAndOnX0=function(){return", and on %s"},e.prototype.commaEveryX0Months=function(){return", every %s months"},e.prototype.commaOnlyInX0=function(){return", only in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},e.prototype.firstWeekday=function(){return"first weekday"},e.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},e.prototype.commaEveryX0Days=function(){return", every %s days"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},e.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},e.prototype.commaEveryHour=function(){return", every hour"},e.prototype.commaEveryX0Years=function(){return", every %s years"},e.prototype.commaStartingX0=function(){return", starting %s"},e.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},e.prototype.atReboot=function(){return"Run once, at startup"},e}();a.en=d},153:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.es=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocurrió un error mientras se generaba la descripción de la expresión. Revise la sintaxis de la expresión de cron."},e.prototype.at=function(){return"A las"},e.prototype.atSpace=function(){return"A las "},e.prototype.atX0=function(){return"a las %s"},e.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},e.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},e.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los días %s y %s del mes"},e.prototype.commaEveryDay=function(){return", cada día"},e.prototype.commaEveryX0Days=function(){return", cada %s días"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s días de la semana"},e.prototype.commaEveryX0Months=function(){return", cada %s meses"},e.prototype.commaOnDayX0OfTheMonth=function(){return", el día %s del mes"},e.prototype.commaOnlyInX0=function(){return", sólo en %s"},e.prototype.commaOnlyOnX0=function(){return", sólo el %s"},e.prototype.commaAndOnX0=function(){return", y el %s"},e.prototype.commaOnThe=function(){return", en el "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el último día del mes"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el último día de la semana del mes"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s días antes del último día del mes"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el último %s del mes"},e.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},e.prototype.commaX0ThroughX1=function(){return", de %s a %s"},e.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},e.prototype.everyHour=function(){return"cada hora"},e.prototype.everyMinute=function(){return"cada minuto"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},e.prototype.everySecond=function(){return"cada segundo"},e.prototype.everyX0Hours=function(){return"cada %s horas"},e.prototype.everyX0Minutes=function(){return"cada %s minutos"},e.prototype.everyX0Seconds=function(){return"cada %s segundos"},e.prototype.fifth=function(){return"quinto"},e.prototype.first=function(){return"primero"},e.prototype.firstWeekday=function(){return"primer día de la semana"},e.prototype.fourth=function(){return"cuarto"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},e.prototype.second=function(){return"segundo"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},e.prototype.spaceAnd=function(){return" y"},e.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},e.prototype.lastDay=function(){return"el último día"},e.prototype.third=function(){return"tercer"},e.prototype.weekdayNearestDayX0=function(){return"día de la semana más próximo al %s"},e.prototype.commaEveryX0Years=function(){return", cada %s años"},e.prototype.commaStartingX0=function(){return", comenzando %s"},e.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},e.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},e}();a.es=d},804:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.fa=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"خطایی در نمایش توضیحات این وظیفه رخ داد. لطفا ساختار آن را بررسی کنید."},e.prototype.everyMinute=function(){return"هر دقیقه"},e.prototype.everyHour=function(){return"هر ساعت"},e.prototype.atSpace=function(){return"در "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"هر دقیقه بین %s و %s"},e.prototype.at=function(){return"در"},e.prototype.spaceAnd=function(){return" و"},e.prototype.everySecond=function(){return"هر ثانیه"},e.prototype.everyX0Seconds=function(){return"هر %s ثانیه"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"ثانیه %s تا %s دقیقه گذشته"},e.prototype.atX0SecondsPastTheMinute=function(){return"در %s قانیه از دقیقه گذشته"},e.prototype.everyX0Minutes=function(){return"هر %s دقیقه"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"دقیقه %s تا %s ساعت گذشته"},e.prototype.atX0MinutesPastTheHour=function(){return"در %s دقیقه پس از ساعت"},e.prototype.everyX0Hours=function(){return"هر %s ساعت"},e.prototype.betweenX0AndX1=function(){return"بین %s و %s"},e.prototype.atX0=function(){return"در %s"},e.prototype.commaEveryDay=function(){return", هر روز"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", هر %s روز از هفته"},e.prototype.commaX0ThroughX1=function(){return", %s تا %s"},e.prototype.commaAndX0ThroughX1=function(){return", و %s تا %s"},e.prototype.first=function(){return"اول"},e.prototype.second=function(){return"دوم"},e.prototype.third=function(){return"سوم"},e.prototype.fourth=function(){return"چهارم"},e.prototype.fifth=function(){return"پنجم"},e.prototype.commaOnThe=function(){return", در "},e.prototype.spaceX0OfTheMonth=function(){return" %s ماه"},e.prototype.lastDay=function(){return"آخرین روز"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", در %s ماه"},e.prototype.commaOnlyOnX0=function(){return", فقط در %s"},e.prototype.commaAndOnX0=function(){return", و در %s"},e.prototype.commaEveryX0Months=function(){return", هر %s ماه"},e.prototype.commaOnlyInX0=function(){return", فقط در %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", در آخرین روز ماه"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", در آخرین روز ماه"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s روز قبل از آخرین روز ماه"},e.prototype.firstWeekday=function(){return"اولین روز"},e.prototype.weekdayNearestDayX0=function(){return"روز نزدیک به روز %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", در %s ماه"},e.prototype.commaEveryX0Days=function(){return", هر %s روز"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", بین روز %s و %s ماه"},e.prototype.commaOnDayX0OfTheMonth=function(){return", در %s ماه"},e.prototype.commaEveryMinute=function(){return", هر minute"},e.prototype.commaEveryHour=function(){return", هر ساعت"},e.prototype.commaEveryX0Years=function(){return", هر %s سال"},e.prototype.commaStartingX0=function(){return", آغاز %s"},e.prototype.daysOfTheWeek=function(){return["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه"]},e.prototype.monthsOfTheYear=function(){return["ژانویه","فوریه","مارس","آپریل","مه","ژوئن","ژوئیه","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},e}();a.fa=d},964:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.fi=void 0;var d=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Virhe kuvauksen generoinnissa. Tarkista cron-syntaksi."},e.prototype.at=function(){return"Klo"},e.prototype.atSpace=function(){return"Klo "},e.prototype.atX0=function(){return"klo %s"},e.prototype.atX0MinutesPastTheHour=function(){return"%s minuuttia yli"},e.prototype.atX0MinutesPastTheHourGt20=function(){return"%s minuuttia yli"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s sekunnnin jälkeen"},e.prototype.betweenX0AndX1=function(){return"%s - %s välillä"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", kuukauden päivien %s ja %s välillä"},e.prototype.commaEveryDay=function(){return", joka päivä"},e.prototype.commaEveryHour=function(){return", joka tunti"},e.prototype.commaEveryMinute=function(){return", joka minuutti"},e.prototype.commaEveryX0Days=function(){return", joka %s. päivä"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", joka %s. viikonpäivä"},e.prototype.commaEveryX0Months=function(){return", joka %s. kuukausi"},e.prototype.commaEveryX0Years=function(){return", joka %s. vuosi"},e.prototype.commaOnDayX0OfTheMonth=function(){return", kuukauden %s päivä"},e.prototype.commaOnlyInX0=function(){return", vain %s"},e.prototype.commaOnlyOnX0=function(){return", vain %s"},e.prototype.commaOnThe=function(){return","},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", kuukauden viimeisenä päivänä"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", kuukauden viimeisenä viikonpäivänä"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", kuukauden viimeinen %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", kuukauden %s"},e.prototype.commaX0ThroughX1=function(){return", %s - %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s - %s"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s päivää ennen kuukauden viimeistä päivää"},e.prototype.commaStartingX0=function(){return", alkaen %s"},e.prototype.everyHour=function(){return"joka tunti"},e.prototype.everyMinute=function(){return"joka minuutti"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"joka minuutti %s - %s välillä"},e.prototype.everySecond=function(){return"joka sekunti"},e.prototype.everyX0Hours=function(){return"joka %s. tunti"},e.prototype.everyX0Minutes=function(){return"joka %s. minuutti"},e.prototype.everyX0Seconds=function(){return"joka %s. sekunti"},e.prototype.fifth=function(){return"viides"},e.prototype.first=function(){return"ensimmäinen"},e.prototype.firstWeekday=function(){return"ensimmäinen viikonpäivä"},e.prototype.fourth=function(){return"neljäs"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"joka tunti minuuttien %s - %s välillä"},e.prototype.second=function(){return"toinen"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"joka minuutti sekunttien %s - %s välillä"},e.prototype.spaceAnd=function(){return" ja"},e.prototype.spaceAndSpace=function(){return" ja "},e.prototype.spaceX0OfTheMonth=function(){return" %s kuukaudessa"},e.prototype.third=function(){return"kolmas"},e.prototype.weekdayNearestDayX0=function(){return"viikonpäivä lähintä %s päivää"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.lastDay=function(){return"viimeinen päivä"},e.prototype.commaAndOnX0=function(){return", ja edelleen %s"},e.prototype.daysOfTheWeek=function(){return["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},e.prototype.monthsOfTheYear=function(){return["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},e}();a.fi=d},517:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.fr=void 0;var d=function(){function e(){}return e.prototype.conciseVerbosityReplacements=function(){return{"de le":"du"}},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.
291prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},e.prototype.everyMinute=function(){return"toutes les minutes"},e.prototype.everyHour=function(){return"toutes les heures"},e.prototype.atSpace=function(){return"À "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},e.prototype.at=function(){return"À"},e.prototype.spaceAnd=function(){return" et"},e.prototype.everySecond=function(){return"toutes les secondes"},e.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},e.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},e.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},e.prototype.everyX0Hours=function(){return"toutes les %s heures"},e.prototype.betweenX0AndX1=function(){return"de %s à %s"},e.prototype.atX0=function(){return"%s"},e.prototype.commaEveryDay=function(){return", tous les jours"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},e.prototype.commaX0ThroughX1=function(){return", de %s à %s"},e.prototype.commaAndX0ThroughX1=function(){return", et de %s à %s"},e.prototype.first=function(){return"premier"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"troisième"},e.prototype.fourth=function(){return"quatrième"},e.prototype.fifth=function(){return"cinquième"},e.prototype.commaOnThe=function(){return", le "},e.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},e.prototype.lastDay=function(){return"le dernier jour"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},e.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},e.prototype.commaAndOnX0=function(){return", et %s"},e.prototype.commaEveryX0Months=function(){return", tous les %s mois"},e.prototype.commaOnlyInX0=function(){return", uniquement en %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},e.prototype.firstWeekday=function(){return"premier jour ouvrable"},e.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},e.prototype.commaEveryX0Days=function(){return", tous les %s jours"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},e.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},e.prototype.commaEveryHour=function(){return", chaque heure"},e.prototype.commaEveryX0Years=function(){return", tous les %s ans"},e.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},e.prototype.commaStartingX0=function(){return", à partir de %s"},e.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},e.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},e}();a.fr=d},82:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.he=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"אירעה שגיאה בעת יצירת תיאור הביטוי. בדוק את תחביר הביטוי cron."},e.prototype.everyMinute=function(){return"כל דקה"},e.prototype.everyHour=function(){return"כל שעה"},e.prototype.atSpace=function(){return"ב "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"כל דקה %s עד %s"},e.prototype.at=function(){return"ב"},e.prototype.spaceAnd=function(){return" ו"},e.prototype.everySecond=function(){return"כל שניה"},e.prototype.everyX0Seconds=function(){return"כל %s שניות"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"%s עד %s שניות של הדקה"},e.prototype.atX0SecondsPastTheMinute=function(){return"ב %s שניות של הדקה"},e.prototype.everyX0Minutes=function(){return"כל %s דקות"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"%s עד %s דקות של השעה"},e.prototype.atX0MinutesPastTheHour=function(){return"ב %s דקות של השעה"},e.prototype.everyX0Hours=function(){return"כל %s שעות"},e.prototype.betweenX0AndX1=function(){return"%s עד %s"},e.prototype.atX0=function(){return"ב %s"},e.prototype.commaEveryDay=function(){return", כל יום"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", כל %s ימים בשבוע"},e.prototype.commaX0ThroughX1=function(){return", %s עד %s"}
291,e.prototype.commaAndX0ThroughX1=function(){return", ו %s עד %s"},e.prototype.first=function(){return"ראשון"},e.prototype.second=function(){return"שני"},e.prototype.third=function(){return"שלישי"},e.prototype.fourth=function(){return"רביעי"},e.prototype.fifth=function(){return"חמישי"},e.prototype.commaOnThe=function(){return", ב "},e.prototype.spaceX0OfTheMonth=function(){return" %s של החודש"},e.prototype.lastDay=function(){return"היום האחרון"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", רק ב %s של החודש"},e.prototype.commaOnlyOnX0=function(){return", רק ב %s"},e.prototype.commaAndOnX0=function(){return", וב %s"},e.prototype.commaEveryX0Months=function(){return", כל %s חודשים"},e.prototype.commaOnlyInX0=function(){return", רק ב %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", ביום האחרון של החודש"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ביום החול האחרון של החודש"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ימים לפני היום האחרון בחודש"},e.prototype.firstWeekday=function(){return"יום החול הראשון"},e.prototype.weekdayNearestDayX0=function(){return"יום החול הראשון הקרוב אל %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", ביום ה%s של החודש"},e.prototype.commaEveryX0Days=function(){return", כל %s ימים"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", בין היום ה%s וה%s של החודש"},e.prototype.commaOnDayX0OfTheMonth=function(){return", ביום ה%s של החודש"},e.prototype.commaEveryX0Years=function(){return", כל %s שנים"},e.prototype.commaStartingX0=function(){return", החל מ %s"},e.prototype.daysOfTheWeek=function(){return["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},e.prototype.monthsOfTheYear=function(){return["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},e}();a.he=d},131:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.hr=void 0;var d=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Došlo je do pogreške pri generiranju izraza. Provjerite sintaksu cron izraza."},e.prototype.at=function(){return"U"},e.prototype.atSpace=function(){return"U "},e.prototype.atX0=function(){return"u %s"},e.prototype.atX0MinutesPastTheHour=function(){return"u %s minuta nakon punog sata"},e.prototype.atX0SecondsPastTheMinute=function(){return"u %s sekundi nakon pune minute"},e.prototype.betweenX0AndX1=function(){return"između %s i %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", između %s. i %s. dana u mjesecu"},e.prototype.commaEveryDay=function(){return", svaki dan"},e.prototype.commaEveryX0Days=function(){return", svakih %s dana"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", svakih %s dana u tjednu"},e.prototype.commaEveryX0Months=function(){return", svakih %s mjeseci"},e.prototype.commaEveryX0Years=function(){return", svakih %s godina"},e.prototype.commaOnDayX0OfTheMonth=function(){return", %s. dan u mjesecu"},e.prototype.commaOnlyInX0=function(){return", samo u %s"},e.prototype.commaOnlyOnX0=function(){return", samo %s"},e.prototype.commaAndOnX0=function(){return", i %s"},e.prototype.commaOnThe=function(){return", "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", zadnji dan u mjesecu"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", zadnji radni dan u mjesecu"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dana prije kraja mjeseca"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", zadnji %s u mjesecu"},e.prototype.commaOnTheX0OfTheMonth=function(){return", %s u mjesecu"},e.prototype.commaX0ThroughX1=function(){return", od %s do %s"},e.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},e.prototype.everyHour=function(){return"svaki sat"},e.prototype.everyMinute=function(){return"svaku minutu"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Svaku minutu između %s i %s"},e.prototype.everySecond=function(){return"svaku sekundu"},e.prototype.everyX0Hours=function(){return"svakih %s sati"},e.prototype.everyX0Minutes=function(){return"svakih %s minuta"},e.prototype.everyX0Seconds=function(){return"svakih %s sekundi"},e.prototype.fifth=function(){return"peti"},e.prototype.first=function(){return"prvi"},e.prototype.firstWeekday=function(){return"prvi radni dan"},e.prototype.fourth=function(){return"četvrti"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minute od %s do %s nakon punog sata"},e.prototype.second=function(){return"drugi"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunde od %s do %s nakon pune minute"},e.prototype.spaceAnd=function(){return" i"},e.prototype.spaceX0OfTheMonth=function(){return" %s u mjesecu"},e.prototype.lastDay=function(){return"zadnji dan"},e.prototype.third=function(){return"treći"},e.prototype.weekdayNearestDayX0=function(){return"radni dan najbliži %s. danu"},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.commaStartingX0=function(){return", počevši od %s"},e.prototype.daysOfTheWeek=function(){return["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},e.prototype.monthsOfTheYear=function(){return["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},e}();a.hr=d},194:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.hu=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Hiba történt a kifejezésleírás generálásakor. Ellenőrizze a cron kifejezés szintaxisát."},e.prototype.everyMinute=function(){return"minden percben"},e.prototype.everyHour=function(){return"minden órában"},e.prototype.atSpace=function(){return"Ekkor: "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"percenként %s és %s között"},e.prototype.at=function(){return"Ekkor:"},e.prototype.spaceAnd=function(){return" és"},e.prototype.everySecond=function(){return"minden másodpercben"},e.prototype.everyX0Seconds=function(){return"%s másodpercenként"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"%s. másodpercben %s perc után"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s. másodpercben"},e.prototype.everyX0Minutes=function(){return"minden %s. percben"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"%s. percben %s óra után"},e.prototype.atX0MinutesPastTheHour=function(){return"%s. percben"},e.prototype.everyX0Hours=function(){return"minden %s órában"},e.prototype.betweenX0AndX1=function(){return"%s és %s között"},e.prototype.atX0=function(){return"ekkor %s"},e.prototype.commaEveryDay=function(){return", minden nap"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", a hét minden %s napján"},e.prototype.commaX0ThroughX1=function(){return", %s - %s"},e.prototype.commaAndX0ThroughX1=function(){return", és %s - %s"},e.prototype.first=function(){return"első"},e.prototype.second=function(){return"második"},e.prototype.third=function(){return"harmadik"},e.prototype.fourth=function(){return"negyedik"},e.prototype.fifth=function(){return"ötödik"},e.prototype.commaOnThe=function(){return", "},e.prototype.spaceX0OfTheMonth=function(){return" %s a hónapban"},e.prototype.lastDay=function(){return"az utolsó nap"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", a hónap utolsó %s"},e.prototype.commaOnlyOnX0=function(){return", csak ekkor: %s"},e.prototype.commaAndOnX0=function(){return", és %s"},e.prototype.commaEveryX0Months=function(){return", minden %s hónapban"},e.prototype.commaOnlyInX0=function(){return", csak ekkor: %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", a hónap utolsó napján"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", a hónap utolsó hétköznapján"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s nappal a hónap utolsó napja előtt"},e.prototype.firstWeekday=function(){return"első hétköznap"},e.prototype.weekdayNearestDayX0=function(){return"hétköznap legközelebbi nap %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", a hónap %s"},e.prototype.commaEveryX0Days=function(){return", %s naponként"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", a hónap %s és %s napja között"},e.prototype.commaOnDayX0OfTheMonth=function(){return", a hónap %s napján"},e.prototype.commaEveryHour=function(){return", minden órában"},e.prototype.commaEveryX0Years=function(){return", %s évente"},e.prototype.commaStartingX0=function(){return", %s kezdettel"},e.prototype.daysOfTheWeek=function(){return["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},e.prototype.monthsOfTheYear=function(){return["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},e}();a.hu=d},72:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.id=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Terjadi kesalahan saat membuat deskripsi ekspresi. Periksa sintaks ekspresi cron."},e.prototype.everyMinute=function(){return"setiap menit"},e.prototype.everyHour=function(){return"setiap jam"},e.prototype.atSpace=function(){return"Pada "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Setiap menit diantara %s dan %s"},e.prototype.at=function(){return"Pada"},e.prototype.spaceAnd=function(){return" dan"},e.prototype.everySecond=function(){return"setiap detik"},e.prototype.everyX0Seconds=function(){return"setiap %s detik"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"detik ke %s sampai %s melewati menit"},e.prototype.atX0SecondsPastTheMinute=function(){return"pada %s detik lewat satu menit"},e.prototype.everyX0Minutes=function(){return"setiap %s menit"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"menit ke %s sampai %s melewati jam"},e.prototype.atX0MinutesPastTheHour=function(){return"pada %s menit melewati jam"},e.prototype.everyX0Hours=function(){return"setiap %s jam"},e.prototype.betweenX0AndX1=function(){return"diantara %s dan %s"},e.prototype.atX0=function(){return"pada %s"},e.prototype.commaEveryDay=function(){return", setiap hari"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", setiap hari %s  dalam seminggu"},e.prototype.commaX0ThroughX1=function(){return", %s sampai %s"},e.prototype.commaAndX0ThroughX1=function(){return", dan %s sampai %s"},e.prototype.first=function(){return"pertama"},e.prototype.second=function(){return"kedua"},e.prototype.third=function(){return"ketiga"},e.prototype.fourth=function(){return"keempat"},e.prototype.fifth=function(){return"kelima"},e.prototype.commaOnThe=function(){return", di "},e.prototype.spaceX0OfTheMonth=function(){return" %s pada bulan"},e.prototype.lastDay=function(){return"hari terakhir"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", pada %s terakhir bulan ini"},e.prototype.commaOnlyOnX0=function(){return", hanya pada %s"},e.prototype.commaAndOnX0=function(){return", dan pada %s"},e.prototype.commaEveryX0Months=function(){return", setiap bulan %s "},e.prototype.commaOnlyInX0=function(){return", hanya pada %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", pada hari terakhir bulan ini"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", pada hari kerja terakhir setiap bulan"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s hari sebelum hari terakhir setiap bulan"},e.prototype.firstWeekday=function(){return"hari kerja pertama"},e.prototype.weekdayNearestDayX0=function(){return"hari kerja terdekat %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", pada %s bulan ini"},e.prototype.commaEveryX0Days=function(){return", setiap %s hari"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", antara hari %s dan %s dalam sebulan"},e.prototype.commaOnDayX0OfTheMonth=function(){return", pada hari %s dalam sebulan"},e.prototype.commaEveryHour=function(){return", setiap jam"},e.prototype.commaEveryX0Years=function(){return", setiap %s tahun"},e.prototype.commaStartingX0=function(){return", mulai pada %s"},e.prototype.daysOfTheWeek=function(){return["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},e.prototype.monthsOfTheYear=function(){return["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},e}();a.id=d},488:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.it=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"È verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},e.prototype.at=function(){return"Alle"},e.prototype.atSpace=function(){return"Alle "},e.prototype.atX0=function(){return"alle %s"},e.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},e.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},e.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},e.prototype.commaEveryDay=function(){return", ogni giorno"},e.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},e.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},e.prototype.commaEveryX0Years=function(){return", ogni %s anni"},e.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},e.prototype.commaOnlyInX0=function(){return", solo in %s"},e.prototype.commaOnlyOnX0=function(){return", solo il %s"},e.prototype.commaAndOnX0=function(){return", e il %s"},e.prototype.commaOnThe=function(){return", il "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},e.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},e.prototype.commaX0ThroughX1=function(){return", %s al %s"},e.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},e.prototype.everyHour=function(){return"ogni ora"},e.prototype.everyMinute=function(){return"ogni minuto"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},e.prototype.everySecond=function(){return"ogni secondo"},e.prototype.everyX0Hours=function(){re
291turn"ogni %s ore"},e.prototype.everyX0Minutes=function(){return"ogni %s minuti"},e.prototype.everyX0Seconds=function(){return"ogni %s secondi"},e.prototype.fifth=function(){return"quinto"},e.prototype.first=function(){return"primo"},e.prototype.firstWeekday=function(){return"primo giorno della settimana"},e.prototype.fourth=function(){return"quarto"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},e.prototype.second=function(){return"secondo"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},e.prototype.spaceAnd=function(){return" e"},e.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},e.prototype.lastDay=function(){return"l'ultimo giorno"},e.prototype.third=function(){return"terzo"},e.prototype.weekdayNearestDayX0=function(){return"giorno della settimana più vicino al %s"},e.prototype.commaStartingX0=function(){return", a partire %s"},e.prototype.daysOfTheWeek=function(){return["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},e.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},e}();a.it=d},904:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ja=void 0;var d=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"毎分"},e.prototype.everyHour=function(){return"毎時"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"式の記述を生成する際にエラーが発生しました。Cron 式の構文を確認してください。"},e.prototype.atSpace=function(){return"次において実施"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"%s から %s まで毎分"},e.prototype.at=function(){return"次において実施"},e.prototype.spaceAnd=function(){return"と"},e.prototype.everySecond=function(){return"毎秒"},e.prototype.everyX0Seconds=function(){return"%s 秒ごと"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"毎分 %s 秒から %s 秒まで"},e.prototype.atX0SecondsPastTheMinute=function(){return"毎分 %s 秒過ぎ"},e.prototype.everyX0Minutes=function(){return"%s 分ごと"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"毎時 %s 分から %s 分まで"},e.prototype.atX0MinutesPastTheHour=function(){return"毎時 %s 分過ぎ"},e.prototype.everyX0Hours=function(){return"%s 時間ごと"},e.prototype.betweenX0AndX1=function(){return"%s と %s の間"},e.prototype.atX0=function(){return"次において実施 %s"},e.prototype.commaEveryDay=function(){return"、毎日"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return"、週のうち %s 日ごと"},e.prototype.commaX0ThroughX1=function(){return"、%s から %s まで"},e.prototype.commaAndX0ThroughX1=function(){return"、%s から %s まで"},e.prototype.first=function(){return"1 番目"},e.prototype.second=function(){return"2 番目"},e.prototype.third=function(){return"3 番目"},e.prototype.fourth=function(){return"4 番目"},e.prototype.fifth=function(){return"5 番目"},e.prototype.commaOnThe=function(){return"次に"},e.prototype.spaceX0OfTheMonth=function(){return"月のうち %s"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return"月の最後の %s に"},e.prototype.commaOnlyOnX0=function(){return"%s にのみ"},e.prototype.commaEveryX0Months=function(){return"、%s か月ごと"},e.prototype.commaOnlyInX0=function(){return"%s でのみ"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return"次の最終日に"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return"月の最後の平日に"},e.prototype.firstWeekday=function(){return"最初の平日"},e.prototype.weekdayNearestDayX0=function(){return"%s 日の直近の平日"},e.prototype.commaOnTheX0OfTheMonth=function(){return"月の %s に"},e.prototype.commaEveryX0Days=function(){return"、%s 日ごと"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return"、月の %s 日から %s 日の間"},e.prototype.commaOnDayX0OfTheMonth=function(){return"、月の %s 日目"},e.prototype.spaceAndSpace=function(){return"と"},e.prototype.commaEveryMinute=function(){return"、毎分"},e.prototype.commaEveryHour=function(){return"、毎時"},e.prototype.commaEveryX0Years=function(){return"、%s 年ごと"},e.prototype.commaStartingX0=function(){return"、%s に開始"},e.prototype.aMPeriod=function(){return"AM"},e.prototype.pMPeriod=function(){return"PM"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return"月の最終日の %s 日前"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.lastDay=function(){return"最終日"},e.prototype.commaAndOnX0=function(){return"、〜と %s"},e.prototype.daysOfTheWeek=function(){return["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},e.prototype.monthsOfTheYear=function(){return["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},e}();a.ja=d},839:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ko=void 0;var d=function(){function e(){}return e.prototype.setPeriodBeforeTime=function(){return!0},e.prototype.pm=function(){return"오후"},e.prototype.am=function(){return"오전"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"표현식 설명을 생성하는 중 오류가 발생했습니다. cron 표현식 구문을 확인하십시오."},e.prototype.everyMinute=function(){return"1분마다"},e.prototype.everyHour=function(){return"1시간마다"},e.prototype.atSpace=function(){return"시간 "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"%s 및 %s 사이에 매 분"},e.prototype.at=function(){return"시간"},e.prototype.spaceAnd=function(){return" 및"},e.prototype.everySecond=function(){return"1초마다"},e.prototype.everyX0Seconds=function(){return"%s초마다"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"정분 후 %s초에서 %s초까지"},e.prototype.atX0SecondsPastTheMinute=function(){return"정분 후 %s초에서"},e.prototype.everyX0Minutes=function(){return"%s분마다"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"정시 후 %s분에서 %s분까지"},e.prototype.atX0MinutesPastTheHour=function(){return"정시 후 %s분에서"},e.prototype.everyX0Hours=function(){return"%s시간마다"},e.prototype.betweenX0AndX1=function(){return"%s에서 %s 사이"},e.prototype.atX0=function(){return"%s에서"},e.prototype.commaEveryDay=function(){return", 매일"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", 주 중 %s일마다"},e.prototype.commaX0ThroughX1=function(){return", %s에서 %s까지"},e.prototype.commaAndX0ThroughX1=function(){return", 및 %s에서 %s까지"},e.prototype.first=function(){return"첫 번째"},e.prototype.second=function(){return"두 번째"},e.prototype.third=function(){return"세 번째"},e.prototype.fourth=function(){return"네 번째"},e.prototype.fifth=function(){return"다섯 번째"},e.prototype.commaOnThe=function(){return", 해당 "},e.prototype.spaceX0OfTheMonth=function(){return" 해당 월의 %s"},e.prototype.lastDay=function(){return"마지막 날"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", 해당 월의 마지막 %s"},e.prototype.commaOnlyOnX0=function(){return", %s에만"},e.prototype.commaAndOnX0=function(){return", 및 %s에"},e.prototype.commaEveryX0Months=function(){return", %s개월마다"},e.prototype.commaOnlyInX0=function(){return", %s에만"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", 해당 월의 마지막 날에"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 해당 월의 마지막 평일에"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 해당 월의 마지막 날 %s일 전"},e.prototype.firstWeekday=function(){return"첫 번째 평일"},e.prototype.weekdayNearestDayX0=function(){return"%s일과 가장 가까운 평일"},e.prototype.commaOnTheX0OfTheMonth=function(){return", 해당 월의 %s에"},e.prototype.commaEveryX0Days=function(){return", %s일마다"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 해당 월의 %s일에서 %s일까지"},e.prototype.commaOnDayX0OfTheMonth=function(){return", 해당 월의 %s일에"},e.prototype.commaEveryMinute=function(){return", 1분마다"},e.prototype.commaEveryHour=function(){return", 1시간마다"},e.prototype.commaEveryX0Years=function(){return", %s년마다"},e.prototype.commaStartingX0=function(){return", %s부터"},e.prototype.daysOfTheWeek=function(){return["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},e.prototype.monthsOfTheYear=function(){return["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},e}();a.ko=d},919:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.my=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Terdapat ralat semasa menjana penerangan ungkapan. Sila periksa sintaks ungkapan cron."},e.prototype.everyMinute=function(){return"setiap minit"},e.prototype.everyHour=function(){return"setiap jam"},e.prototype.atSpace=function(){return"Pada "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Setiap minit antara %s dan %s"},e.prototype.at=function(){return"Pada"},e.prototype.spaceAnd=function(){return" dan"},e.prototype.everySecond=function(){return"setiap saat"},e.prototype.everyX0Seconds=function(){return"setiap %s saat"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"saat ke %s hingga %s selepas minit"},e.prototype.atX0SecondsPastTheMinute=function(){return"pada %s saat selepas minit"},e.prototype.everyX0Minutes=function(){return"setiap %s minit"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minit ke %s hingga %s selepas jam"},e.prototype.atX0MinutesPastTheHour=function(){return"pada %s minit selepas jam"},e.prototype.everyX0Hours=function(){return"setiap %s jam"},e.prototype.betweenX0AndX1=function(){return"antara %s dan %s"},e.prototype.atX0=function(){return"pada %s"},e.prototype.commaEveryDay=function(){return", setiap hari"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", setiap %s hari dalam minggu"},e.prototype.commaX0ThroughX1=function(){return", %s hingga %s"},e.prototype.commaAndX0ThroughX1=function(){return", dan %s hingga %s"},e.prototype.first=function(){return"pertama"},e.prototype.second=function(){return"kedua"},e.prototype.third=function(){return"ketiga"},e.prototype.fourth=function(){return"keempat"},e.prototype.fifth=function(){return"kelima"},e.prototype.commaOnThe=function(){return", pada "},e.prototype.spaceX0OfTheMonth=function(){return" %s pada bulan"},e.prototype.lastDay=function(){return"hari terakhir"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", pada %s terakhir bulan"},e.prototype.commaOnlyOnX0=function(){return", hanya pada %s"},e.prototype.commaAndOnX0=function(){return", dan pada %s"},e.prototype.commaEveryX0Months=function(){return", setiap bulan %s"},e.prototype.commaOnlyInX0=function(){return", hanya pada %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", pada hari terakhir bulan"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", pada minggu terakhir bulan"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s hari sebelum hari terakhir bulan"},e.prototype.firstWeekday=function(){return"hari pertama minggu bekerja"},e.prototype.weekdayNearestDayX0=function(){return"hari bekerja yang terdekat dengan %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", pada %s bulan"},e.prototype.commaEveryX0Days=function(){return", setiap %s hari"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", antara hari %s dan %s dalam bulan"},e.prototype.commaOnDayX0OfTheMonth=function(){return", pada hari %s dalam bulan"},e.prototype.commaEveryHour=function(){return", setiap jam"},e.prototype.commaEveryX0Years=function(){return", setiap %s tahun"},e.prototype.commaStartingX0=function(){return", bermula %s"},e.prototype.daysOfTheWeek=function(){return["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},e.prototype.monthsOfTheYear=function(){return["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},e}();a.my=d},957:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.nb=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"En feil inntraff ved generering av uttrykksbeskrivelse. Sjekk cron syntaks."},e.prototype.at=function(){return"Kl."},e.prototype.atSpace=function(){return"Kl."},e.prototype.atX0=function(){return"på %s"},e.prototype.atX0MinutesPastTheHour=function(){return"på %s minutter etter timen"},e.prototype.atX0SecondsPastTheMinute=function(){return"på %s sekunder etter minuttet"},e.prototype.betweenX0AndX1=function(){return"mellom %s og %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mellom dag %s og %s av måneden"},e.prototype.commaEveryDay=function(){return", hver dag"},e.prototype.commaEveryX0Days=function(){return", hver %s dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", hver %s ukedag"},e.prototype.commaEveryX0Months=function(){return", hver %s måned"},e.prototype.commaEveryX0Years=function(){return", hvert %s år"},e.prototype.commaOnDayX0OfTheMonth=function(){return", på dag %s av måneden"},e.prototype.commaOnlyInX0=function(){return", bare i %s"},e.prototype.commaOnlyOnX0=function(){return", på %s"},e.prototype.commaAndOnX0=function(){return", og på %s"},e.prototype.commaOnThe=function(){return", på "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", på den siste dagen i måneden"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", den siste ukedagen i måneden"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dager før den siste dagen i måneden"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", på den siste %s av måneden"},e.prototype.commaOnTheX0OfTheMonth=function(){return", på den %s av måneden"},e.prototype.commaX0ThroughX1=function(){return", %s til og med %s"},e.prototype.commaAndX0ThroughX1=function(){return", og %s til og med %s"},e.prototype.everyHour=function(){return"hver time"},e.prototype.everyMinute=function(){return"hvert minutt"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Hvert minutt mellom %s og %s"},e.prototype.everySecond=function(){return"hvert sekund"},e.prototype.everyX0Hours=function(){return"hver %s time"},e.prototype.everyX0Minutes=function(){return"hvert %s minutt"},e.prototype.everyX0Seconds=function(){return"hvert %s sekund"},e.prototype.fifth=function(){return"femte"},e.prototype.first=function(){return"første"},e.prototype.firstWeekday=function(){return"første ukedag"},e.prototype.fourth=function(){return"fjerde"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuttene fra %s til og med %s etter timen"},e.prototype.second=function(){return"andre"},e.prototype.secondsX0ThroughX1Pa
291stTheMinute=function(){return"sekundene fra %s til og med %s etter minuttet"},e.prototype.spaceAnd=function(){return" og"},e.prototype.spaceX0OfTheMonth=function(){return" %s i mÃ¥neden"},e.prototype.lastDay=function(){return"den siste dagen"},e.prototype.third=function(){return"tredje"},e.prototype.weekdayNearestDayX0=function(){return"ukedag nærmest dag %s"},e.prototype.commaStartingX0=function(){return", starter %s"},e.prototype.daysOfTheWeek=function(){return["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},e.prototype.monthsOfTheYear=function(){return["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},e}();a.nb=d},647:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.nl=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"elke minuut"},e.prototype.everyHour=function(){return"elk uur"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Er is een fout opgetreden bij het vertalen van de gegevens. Controleer de gegevens."},e.prototype.atSpace=function(){return"Om "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Elke minuut tussen %s en %s"},e.prototype.at=function(){return"Om"},e.prototype.spaceAnd=function(){return" en"},e.prototype.everySecond=function(){return"elke seconde"},e.prototype.everyX0Seconds=function(){return"elke %s seconden"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconden %s t/m %s na de minuut"},e.prototype.atX0SecondsPastTheMinute=function(){return"op %s seconden na de minuut"},e.prototype.everyX0Minutes=function(){return"elke %s minuten"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuut %s t/m %s na het uur"},e.prototype.atX0MinutesPastTheHour=function(){return"op %s minuten na het uur"},e.prototype.everyX0Hours=function(){return"elke %s uur"},e.prototype.betweenX0AndX1=function(){return"tussen %s en %s"},e.prototype.atX0=function(){return"om %s"},e.prototype.commaEveryDay=function(){return", elke dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", elke %s dagen van de week"},e.prototype.commaX0ThroughX1=function(){return", %s t/m %s"},e.prototype.commaAndX0ThroughX1=function(){return", en %s t/m %s"},e.prototype.first=function(){return"eerste"},e.prototype.second=function(){return"tweede"},e.prototype.third=function(){return"derde"},e.prototype.fourth=function(){return"vierde"},e.prototype.fifth=function(){return"vijfde"},e.prototype.commaOnThe=function(){return", op de "},e.prototype.spaceX0OfTheMonth=function(){return" %s van de maand"},e.prototype.lastDay=function(){return"de laatste dag"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", op de laatste %s van de maand"},e.prototype.commaOnlyOnX0=function(){return", alleen op %s"},e.prototype.commaAndOnX0=function(){return", en op %s"},e.prototype.commaEveryX0Months=function(){return", elke %s maanden"},e.prototype.commaOnlyInX0=function(){return", alleen in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", op de laatste dag van de maand"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", op de laatste werkdag van de maand"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dagen vóór de laatste dag van de maand"},e.prototype.firstWeekday=function(){return"eerste werkdag"},e.prototype.weekdayNearestDayX0=function(){return"werkdag dichtst bij dag %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", op de %s van de maand"},e.prototype.commaEveryX0Days=function(){return", elke %s dagen"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tussen dag %s en %s van de maand"},e.prototype.commaOnDayX0OfTheMonth=function(){return", op dag %s van de maand"},e.prototype.commaEveryX0Years=function(){return", elke %s jaren"},e.prototype.commaStartingX0=function(){return", beginnend %s"},e.prototype.daysOfTheWeek=function(){return["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},e.prototype.monthsOfTheYear=function(){return["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},e}();a.nl=d},905:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.pl=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},e.prototype.at=function(){return"O"},e.prototype.atSpace=function(){return"O "},e.prototype.atX0=function(){return"o %s"},e.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},e.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},e.prototype.betweenX0AndX1=function(){return"od %s do %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},e.prototype.commaEveryDay=function(){return", co dzień"},e.prototype.commaEveryX0Days=function(){return", co %s dni"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},e.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},e.prototype.commaEveryX0Years=function(){return", co %s lat"},e.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},e.prototype.commaOnlyInX0=function(){return", tylko %s"},e.prototype.commaOnlyOnX0=function(){return", tylko %s"},e.prototype.commaAndOnX0=function(){return", i %s"},e.prototype.commaOnThe=function(){return", "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},e.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},e.prototype.commaX0ThroughX1=function(){return", od %s do %s"},e.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},e.prototype.everyHour=function(){return"co godzinę"},e.prototype.everyMinute=function(){return"co minutę"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},e.prototype.everySecond=function(){return"co sekundę"},e.prototype.everyX0Hours=function(){return"co %s godzin"},e.prototype.everyX0Minutes=function(){return"co %s minut"},e.prototype.everyX0Seconds=function(){return"co %s sekund"},e.prototype.fifth=function(){return"piąty"},e.prototype.first=function(){return"pierwszy"},e.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},e.prototype.fourth=function(){return"czwarty"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},e.prototype.second=function(){return"drugi"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},e.prototype.spaceAnd=function(){return" i"},e.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},e.prototype.lastDay=function(){return"ostatni dzień"},e.prototype.third=function(){return"trzeci"},e.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},e.prototype.commaStartingX0=function(){return", startowy %s"},e.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},e.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecieÅ
291„","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},e}();a.pl=d},556:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.pt_BR=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},e.prototype.at=function(){return"às"},e.prototype.atSpace=function(){return"às "},e.prototype.atX0=function(){return"Às %s"},e.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},e.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},e.prototype.betweenX0AndX1=function(){return"entre %s e %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},e.prototype.commaEveryDay=function(){return", a cada dia"},e.prototype.commaEveryX0Days=function(){return", a cada %s dias"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},e.prototype.commaEveryX0Months=function(){return", a cada %s meses"},e.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},e.prototype.commaOnlyInX0=function(f){return f&&f.length>1&&f[1]==="-"?"somente %s":", somente em %s"},e.prototype.commaOnlyOnX0=function(f){return f&&f.length>1&&f[1]==="-"?", somente %s":", somente de %s"},e.prototype.commaAndOnX0=function(){return", e de %s"},e.prototype.commaOnThe=function(f,p){return p==="6"||p==="0"?", no":", na "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},e.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},e.prototype.commaX0ThroughX1=function(){return", de %s a %s"},e.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},e.prototype.everyHour=function(){return"a cada hora"},e.prototype.everyMinute=function(){return"a cada minuto"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},e.prototype.everySecond=function(){return"a cada segundo"},e.prototype.everyX0Hours=function(){return"a cada %s horas"},e.prototype.everyX0Minutes=function(){return"a cada %s minutos"},e.prototype.everyX0Seconds=function(){return"a cada %s segundos"},e.prototype.fifth=function(f){return f==="6"||f==="0"?"quinto":"quinta"},e.prototype.first=function(f){return f==="6"||f==="0"?"primeiro":"primeira"},e.prototype.firstWeekday=function(){return"primeiro dia da semana"},e.prototype.fourth=function(f){return f==="6"||f==="0"?"quarto":"quarta"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},e.prototype.second=function(f){return f==="6"||f==="0"?"segundo":"segunda"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},e.prototype.spaceAnd=function(){return" e"},e.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},e.prototype.lastDay=function(){return"o último dia"},e.prototype.third=function(f){return f==="6"||f==="0"?"terceiro":"terceira"},e.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},e.prototype.commaEveryX0Years=function(){return", a cada %s anos"},e.prototype.commaStartingX0=function(){return", iniciando %s"},e.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},e.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},e}();a.pt_BR=d},163:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.pt_PT=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descrição da expressão Cron."},e.prototype.at=function(){return"às"},e.prototype.atSpace=function(){return"às "},e.prototype.atX0=function(){return"Às %s"},e.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},e.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},e.prototype.betweenX0AndX1=function(){return"entre %s e %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do mês"},e.prototype.commaEveryDay=function(){return", a cada dia"},e.prototype.commaEveryX0Days=function(){return", a cada %s dias"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},e.prototype.commaEveryX0Months=function(){return", a cada %s meses"},e.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do mês"},e.prototype.commaOnlyInX0=function(){return", somente em %s"},e.prototype.commaOnlyOnX0=function(){return", somente de %s"},e.prototype.commaAndOnX0=function(){return", e de %s"},e.prototype.commaOnThe=function(f,p){return p==="6"||p==="0"?", no":", na "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", no último dia do mês"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no último dia da semana do mês"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do último dia do mês"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", na última %s do mês"},e.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do mês"},e.prototype.commaX0ThroughX1=function(){return", de %s a %s"},e.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},e.prototype.everyHour=function(){return"a cada hora"},e.prototype.everyMinute=function(){return"a cada minuto"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},e.prototype.everySecond=function(){return"a cada segundo"},e.prototype.everyX0Hours=function(){return"a cada %s horas"},e.prototype.everyX0Minutes=function(){return"a cada %s minutos"},e.prototype.everyX0Seconds=function(){return"a cada %s segundos"},e.prototype.fifth=function(f){return f==="6"||f==="0"?"quinto":"quinta"},e.prototype.first=function(f){return f==="6"||f==="0"?"primeiro":"primeira"},e.prototype.firstWeekday=function(){return"primeiro dia da semana"},e.prototype.fourth=function(f){return f==="6"||f==="0"?"quarto":"quarta"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s até %s de cada hora"},e.prototype.second=function(f){return f==="6"||f==="0"?"segundo":"segunda"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s até %s de cada minuto"},e.prototype.spaceAnd=function(){return" e"},e.prototype.spaceX0OfTheMonth=function(){return" %s do mês"},e.prototype.lastDay=function(){return"o último dia"},e.prototype.third=function(f){return f==="6"||f==="0"?"terceiro":"terceira"},e.prototype.weekdayNearestDayX0=function(){return"dia da semana mais próximo do dia %s"},e.prototype.commaEveryX0Years=function(){return", a cada %s anos"},e.prototype.commaStartingX0=function(){return", iniciando %s"},e.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},e.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","març
291o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},e}();a.pt_PT=d},614:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ro=void 0;var d=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Eroare la generarea descrierii. Verificați sintaxa."},e.prototype.at=function(){return"La"},e.prototype.atSpace=function(){return"La "},e.prototype.atX0=function(){return"la %s"},e.prototype.atX0MinutesPastTheHour=function(){return"la și %s minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"la și %s secunde"},e.prototype.betweenX0AndX1=function(){return"între %s și %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", între zilele %s și %s ale lunii"},e.prototype.commaEveryDay=function(){return", în fiecare zi"},e.prototype.commaEveryX0Days=function(){return", la fiecare %s zile"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", la fiecare a %s-a zi a săptămânii"},e.prototype.commaEveryX0Months=function(){return", la fiecare %s luni"},e.prototype.commaEveryX0Years=function(){return", o dată la %s ani"},e.prototype.commaOnDayX0OfTheMonth=function(){return", în ziua %s a lunii"},e.prototype.commaOnlyInX0=function(){return", doar în %s"},e.prototype.commaOnlyOnX0=function(){return", doar %s"},e.prototype.commaAndOnX0=function(){return", și %s"},e.prototype.commaOnThe=function(){return", în "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", în ultima zi a lunii"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", în ultima zi lucrătoare a lunii"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s zile înainte de ultima zi a lunii"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", în ultima %s a lunii"},e.prototype.commaOnTheX0OfTheMonth=function(){return", în %s a lunii"},e.prototype.commaX0ThroughX1=function(){return", de %s până %s"},e.prototype.commaAndX0ThroughX1=function(){return", și de %s până %s"},e.prototype.everyHour=function(){return"în fiecare oră"},e.prototype.everyMinute=function(){return"în fiecare minut"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"În fiecare minut între %s și %s"},e.prototype.everySecond=function(){return"în fiecare secundă"},e.prototype.everyX0Hours=function(){return"la fiecare %s ore"},e.prototype.everyX0Minutes=function(){return"la fiecare %s minute"},e.prototype.everyX0Seconds=function(){return"la fiecare %s secunde"},e.prototype.fifth=function(){return"a cincea"},e.prototype.first=function(){return"prima"},e.prototype.firstWeekday=function(){return"prima zi a săptămânii"},e.prototype.fourth=function(){return"a patra"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"între minutele %s și %s"},e.prototype.second=function(){return"a doua"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"între secunda %s și secunda %s"},e.prototype.spaceAnd=function(){return" și"},e.prototype.spaceX0OfTheMonth=function(){return" %s a lunii"},e.prototype.lastDay=function(){return"ultima zi"},e.prototype.third=function(){return"a treia"},e.prototype.weekdayNearestDayX0=function(){return"cea mai apropiată zi a săptămânii de ziua %s"},e.prototype.commaMonthX0ThroughMonthX1=function(){return", din %s până în %s"},e.prototype.commaYearX0ThroughYearX1=function(){return", din %s până în %s"},e.prototype.atX0MinutesPastTheHourGt20=function(){return"la și %s de minute"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return"la și %s de secunde"},e.prototype.commaStartingX0=function(){return", pornire %s"},e.prototype.daysOfTheWeek=function(){return["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},e.prototype.monthsOfTheYear=function(){return["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},e}();a.ro=d},892:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ru=void 0;var d=function(p,u){var m=Number(p);return m!==void 0?u[m%100>4&&m%100<20?2:[2,0,1,1,1,2][m%10<5?Math.abs(m)%10:5]]:u[2]},e=function(p,u){var m=Number(p);return m!==void 0?u[m===0?0:m===1||m===2||m===4?1:2]:u[1]},f=function(){function p(){}return p.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},p.prototype.atX0MinutesPastTheHourGt20=function(){return null},p.prototype.commaMonthX0ThroughMonthX1=function(){return null},p.prototype.commaYearX0ThroughYearX1=function(){return null},p.prototype.use24HourTimeFormatByDefault=function(){return!0},p.prototype.everyMinute=function(){return"каждую минуту"},p.prototype.everyHour=function(){return"каждый час"},p.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},p.prototype.atSpace=function(){return"В "},p.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},p.prototype.at=function(){return"В"},p.prototype.spaceAnd=function(){return" и"},p.prototype.everySecond=function(){return"каждую секунду"},p.prototype.everyX0Seconds=function(u){return d(u,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},p.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},p.prototype.atX0SecondsPastTheMinute=function(u){return d(u,["в %s секунду","в %s секунды","в %s секунд"])},p.prototype.everyX0Minutes=function(u){return d(u,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},p.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},p.prototype.atX0MinutesPastTheHour=function(u){return d(u,["в %s минуту","в %s минуты","в %s минут"])},p.prototype.everyX0Hours=function(u){return d(u,["каждый %s час","каждые %s часа","каждые %s часов"])},p.prototype.betweenX0AndX1=function(){return"с %s по %s"},p.prototype.atX0=function(){return"в %s"},p.prototype.commaEveryDay=function(){return", каждый день"},p.prototype.commaEveryX0DaysOfTheWeek=function(u){return d(u,[", каждый %s день недели",", каждые %s дня недели",", каждые %s дней недели"])},p.prototype.commaX0ThroughX1=function(u){return u&&(u[0]=="2"||u[0]=="3")?", со %s по %s":", с %s по %s"},p.prototype.commaAndX0ThroughX1=function(u){return u&&(u[0]=="2"||u[0]=="3")?" и со %s по %s":" и с %s по %s"},p.prototype.first=function(u){return e(u,["первое","первый","первую"])},p.prototype.second=function(u){return e(u,["второе","второй","вторую"])},p.prototype.third=function(u){return e(u,["третье","третий","третью"])},p.prototype.fourth=function(u){return e(u,["четвертое","четвертый","четвертую"])},p.prototype.fifth=function(u){return e(u,["пятое","пятый","пятую"])},p.prototype.commaOnThe=function(u){return u==="2"?", во ":", в "},p.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},p.prototype.lastDay=function(){return"последний день"},p.prototype.commaOnTheLastX0OfTheMonth=function(u){return e(u,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},p.prototype.commaOnlyOnX0=function(u){return u&&u[0]==="2"?", только во %s":", только в %s"},p.prototype.commaAndOnX0=function(){return", и %s"},p.prototype.commaEveryX0Months=function(u){return d(u,[""," каждые %s месяца"," каждые %s месяцев"])},p.prototype.commaOnlyInMonthX0=function(){return", только %s"},p.prototype.commaOnlyInX0=function(){return", только в %s"},p.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},p.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},p.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(u){return d(u,[", за %s день до Ð
291ºÐ¾Ð½Ñ†Ð° месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},p.prototype.firstWeekday=function(){return"первый будний день"},p.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},p.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},p.prototype.commaEveryX0Days=function(u){return d(u,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},p.prototype.commaBetweenDayX0AndX1OfTheMonth=function(u){return u&&u.substring(0,u.indexOf("-"))=="2"?", со %s по %s число месяца":", с %s по %s число месяца"},p.prototype.commaOnDayX0OfTheMonth=function(u){return u&&u[0]=="2"?", во %s число месяца":", в %s число месяца"},p.prototype.commaEveryX0Years=function(u){return d(u,[", каждый %s год",", каждые %s года",", каждые %s лет"])},p.prototype.commaStartingX0=function(){return", начало %s"},p.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},p.prototype.daysOfTheWeekInCase=function(u){return u===void 0&&(u=2),u==1?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},p.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},p.prototype.monthsOfTheYearInCase=function(u){return u==1?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},p}();a.ru=f},923:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.sk=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Pri vytváraní popisu doÅ¡lo k chybe. Skontrolujte prosím správnosÅ¥ syntaxe cronu."},e.prototype.everyMinute=function(){return"každú minútu"},e.prototype.everyHour=function(){return"každú hodinu"},e.prototype.atSpace=function(){return"V "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Každú minútu medzi %s a %s"},e.prototype.at=function(){return"V"},e.prototype.spaceAnd=function(){return" a"},e.prototype.everySecond=function(){return"každú sekundu"},e.prototype.everyX0Seconds=function(){return"každých %s sekúnd"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},e.prototype.atX0SecondsPastTheMinute=function(){return"v %s sekúnd"},e.prototype.everyX0Minutes=function(){return"každých %s minút"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minúty od %s do %s"},e.prototype.atX0MinutesPastTheHour=function(){return"v %s minút"},e.prototype.everyX0Hours=function(){return"každých %s hodín"},e.prototype.betweenX0AndX1=function(){return"medzi %s a %s"},e.prototype.atX0=function(){return"v %s"},e.prototype.commaEveryDay=function(){return", každý deň"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", každých %s dní v týždni"},e.prototype.commaX0ThroughX1=function(){return", od %s do %s"},e.prototype.commaAndX0ThroughX1=function(){return", a od %s do %s"},e.prototype.first=function(){return"prvý"},e.prototype.second=function(){return"druhý"},e.prototype.third=function(){return"tretí"},e.prototype.fourth=function(){return"Å¡tvrtý"},e.prototype.fifth=function(){return"piaty"},e.prototype.commaOnThe=function(){return", "},e.prototype.spaceX0OfTheMonth=function(){return" %s v mesiaci"},e.prototype.lastDay=function(){return"posledný deň"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", posledný %s v mesiaci"},e.prototype.commaOnlyOnX0=function(){return", iba v %s"},e.prototype.commaAndOnX0=function(){return", a v %s"},e.prototype.commaEveryX0Months=function(){return", každých %s mesiacov"},e.prototype.commaOnlyInX0=function(){return", iba v %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", posledný deň v mesiaci"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", posledný pracovný deň v mesiaci"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dní pred posledným dňom v mesiaci"},e.prototype.firstWeekday=function(){return"prvý pracovný deň"},e.prototype.weekdayNearestDayX0=function(){return"pracovný deň najbližšie %s. dňu"},e.prototype.commaOnTheX0OfTheMonth=function(){return", v %s v mesiaci"},e.prototype.commaEveryX0Days=function(){return", každých %s dní"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", medzi dňami %s a %s v mesiaci"},e.prototype.commaOnDayX0OfTheMonth=function(){return", %s. deň v mesiaci"},e.prototype.commaEveryX0Years=function(){return", každých %s rokov"},e.prototype.commaStartingX0=function(){return", začínajúcich %s"},e.prototype.daysOfTheWeek=function(){return["Nedeľa","Pondelok","Utorok","Streda","Å tvrtok","Piatok","Sobota"]},e.prototype.monthsOfTheYear=function(){return["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"]},e}();a.sk=d},474:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.sl=void 0;var d=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Pri generiranju opisa izraza je priÅ¡lo do napake. Preverite sintakso izraza cron."},e.prototype.at=function(){return"Ob"},e.prototype.atSpace=function(){return"Ob "},e.prototype.atX0=function(){return"ob %s"},e.prototype.atX0MinutesPastTheHour=function(){return"ob %s."},e.prototype.atX0SecondsPastTheMinute=function(){return"ob %s."},e.prototype.betweenX0AndX1=function(){return"od %s do %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s. do %s. dne v mesecu"},e.prototype.commaEveryDay=function(){return", vsak dan"},e.prototype.commaEveryX0Days=function(){return", vsakih %s dni"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", vsakih %s dni v tednu"},e.prototype.commaEveryX0Months=function(){return", vsakih %s mesecev"},e.prototype.commaEveryX0Years=function(){return", vsakih %s let"},e.prototype.commaOnDayX0OfTheMonth=function(){return", %s. dan v mesecu"},e.prototype.commaOnlyInX0=function(){return", samo v %s"},e.prototype.commaOnlyOnX0=function(){return", samo v %s"},e.prototype.commaAndOnX0=function(){return"in naprej %s"},e.prototype.commaOnThe=function(){return", "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", zadnji %s v mesecu"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", zadnji delovni dan v mesecu"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni pred koncem meseca"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", zadnji %s v mesecu"},e.prototype.commaOnTheX0OfTheMonth=function(){return", %s v mesecu"},e.prototype.commaX0ThroughX1=function(){return", od %s do %s"},e.prototype.commaAndX0ThroughX1=function(){return", in od %s do %s"},e.prototype.everyHour=function(){return"vsako uro"},e.prototype.everyMinute=function(){return"vsako minuto"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Vsako minuto od %s do %s"},e.prototype.everySecond=function(){return"vsako sekundo"},e.prototype.everyX0Hours=function(){return"vsakih %s ur"},e.prototype.everyX0Minutes=function(){return"vsakih %s minut"},e.prototype.everyX0Seconds=function(){return"vsakih %s sekund"},e.prototype.fifth=function(){return"peti"},e.prototype.first=function(){return"prvi"},e.prototype.firstWeekday=function(){return"prvi delovni dan"},e.prototype.fourth=function(){return"četrti"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minute od %s do %s"},e.prototype.second=function(){return"drugi"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunde od %s do %s"},e.prototype.spaceAnd=function(){return" in"},e.prototype.spaceX0OfTheMonth=function(){return" %s v mesecu"},e.prototype.lastDay=function(){return"zadnjič"},e.prototype.third=function(){return"tretji"},e.prototype.weekdayNearestDayX0=function(){return"delovni dan, najbližji %s. dnevu"},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.commaStartingX0=function(){return", začenÅ¡i %s"},e.prototype.daysOfTheWeek=function(){return["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},e.prototype.monthsOfTheYear=function(){return["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},e}();a.sl=d},716:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.sr=void 0;var d=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"DoÅ¡lo je do greÅ¡ke pri generisanju izraza. Proverite sintaksu cron izraza."},e.prototype.at=function(){return"U"},e.prototype.atSpace=function(){return"U "},e.prototype.atX0=function(){return"u %s"},e.prototype.atX0MinutesPastTheHour=function(){return"u %s minuta posle punog sata"},e.prototype.atX0SecondsPastTheMinute=function(){return"u %s sekundi posle pune minute"},e.prototype.betweenX0AndX1=function(){return"između %s i %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", između %s. i %s. dana u mesecu"},e.prototype.commaEveryDay=function(){return", svaki dan"},e.prototype.commaEveryX0Days=function(){return", svakih %s dana"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", svakih %s dana u nedelji"},e.prototype.commaEveryX0Months=function(){return", svakih %s meseci"},e.prototype.commaEveryX0Years=function(){return", svakih %s godina"},e.prototype.commaOnDayX0OfTheMonth=function(){return", %s. dan u mesecu"},e.prototype.commaOnlyInX0=function(){return", samo u %s"},e.prototype.commaOnlyOnX0=function(){return", samo %s"},e.prototype.commaAndOnX0=function(){return", i %s"},e.prototype.commaOnThe=function(){return", "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", poslednjeg dana u mesecu"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", poslednjeg radnog dana u mesecu"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dana pre kraja meseca"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", poslednji %s u mesecu"},e.prototype.commaOnTheX0OfTheMonth=function(){return", %s u mesecu"},e.prototype.commaX0ThroughX1=function(){return", od %s do %s"},e.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},e.prototype.everyHour=function(){return"svaki sat"},e.prototype.everyMinute=function(){return"svakog minuta"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Svakog minuta između %s i %s"},e.prototype.everySecond=function(){return"svake sekunde"},e.prototype.everyX0Hours=function(){return"svakih %s sati"},e.prototype.everyX0Minutes=function(){return"svakih %s minuta"},e.prototype.everyX0Seconds=function(){return"svakih %s sekundi"},e.prototype.fifth=function(){return"peti"},e.prototype.first=function(){return"prvi"},e.prototype.firstWeekday=function(){return"prvi radni dan"},e.prototype.fourth=function(){return"četvrti"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minute od %s do %s posle punog sata"},e.prototype.second=function(){return"drugi"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunde od %s do %s posle pune minute"},e.prototype.spaceAnd=function(){return" i"},e.prototype.spaceX0OfTheMonth=function(){return" %s u mesecu"},e.prototype.lastDay=function(){return"poslednji dan"},e.prototype.third=function(){return"treći"},e.prototype.weekdayNearestDayX0=function(){return"radni dan najbliži %s. danu"},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.commaStartingX0=function(){return", počevÅ¡i od %s"},e.prototype.daysOfTheWeek=function(){return["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},e.prototype.monthsOfTheYear=function(){return["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},e}();a.sr=d},544:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.sv=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ett fel inträffade vid generering av uttryckets beskrivning. Kontrollera cron-uttryckets syntax."},e.prototype.everyMinute=function(){return"varje minut"},e.prototype.everyHour=function(){return"varje timme"},e.prototype.atSpace=function(){return"Kl "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Varje minut mellan %s och %s"},e.prototype.at=function(){return"Kl"},e.prototype.spaceAnd=function(){return" och"},e.prototype.everySecond=function(){return"varje sekund"},e.prototype.everyX0Seconds=function(){return"varje %s sekund"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunderna frÃ¥n %s t
291ill och med %s efter minuten"},e.prototype.atX0SecondsPastTheMinute=function(){return"på %s sekunder efter minuten"},e.prototype.everyX0Minutes=function(){return"var %s minut"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuterna från %s till och med %s efter timmen"},e.prototype.atX0MinutesPastTheHour=function(){return"på %s minuten efter timmen"},e.prototype.everyX0Hours=function(){return"var %s timme"},e.prototype.betweenX0AndX1=function(){return"mellan %s och %s"},e.prototype.atX0=function(){return"kl %s"},e.prototype.commaEveryDay=function(){return", varje dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", var %s dag i veckan"},e.prototype.commaX0ThroughX1=function(){return", %s till %s"},e.prototype.commaAndX0ThroughX1=function(){return", och %s till %s"},e.prototype.first=function(){return"första"},e.prototype.second=function(){return"andra"},e.prototype.third=function(){return"tredje"},e.prototype.fourth=function(){return"fjärde"},e.prototype.fifth=function(){return"femte"},e.prototype.commaOnThe=function(){return", den "},e.prototype.spaceX0OfTheMonth=function(){return" %sen av månaden"},e.prototype.lastDay=function(){return"den sista dagen"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", på sista %s av månaden"},e.prototype.commaOnlyOnX0=function(){return", varje %s"},e.prototype.commaAndOnX0=function(){return", och på %s"},e.prototype.commaEveryX0Months=function(){return", var %s månad"},e.prototype.commaOnlyInX0=function(){return", bara på %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", på sista dagen av månaden"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", på sista veckodag av månaden"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dagar före den sista dagen i månaden"},e.prototype.firstWeekday=function(){return"första veckodag"},e.prototype.weekdayNearestDayX0=function(){return"veckodagen närmast dag %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", på den %s av månaden"},e.prototype.commaEveryX0Days=function(){return", var %s dag"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mellan dag %s och %s av månaden"},e.prototype.commaOnDayX0OfTheMonth=function(){return", på dag %s av månaden"},e.prototype.commaEveryX0Years=function(){return", var %s år"},e.prototype.commaStartingX0=function(){return", startar %s"},e.prototype.daysOfTheWeek=function(){return["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},e.prototype.monthsOfTheYear=function(){return["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},e}();a.sv=d},799:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.sw=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Kuna tatizo wakati wa kutunga msemo. Angalia cron expression syntax."},e.prototype.everyMinute=function(){return"kila dakika"},e.prototype.everyHour=function(){return"kila saa"},e.prototype.atSpace=function(){return"Kwa "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Kila dakika kwanzia %s hadi %s"},e.prototype.at=function(){return"Kwa"},e.prototype.spaceAnd=function(){return" na"},e.prototype.everySecond=function(){return"kila sekunde"},e.prototype.everyX0Seconds=function(){return"kila sekunde %s"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunde ya %s hadi %s baada ya dakika"},e.prototype.atX0SecondsPastTheMinute=function(){return"sekunde %s baada ya dakika"},e.prototype.everyX0Minutes=function(){return"kila dakika %s"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},e.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},e.prototype.everyX0Hours=function(){return"every %s hours"},e.prototype.betweenX0AndX1=function(){return"kati ya %s na %s"},e.prototype.atX0=function(){return"kwenye %s"},e.prototype.commaEveryDay=function(){return", kila siku"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", kila siku %s ya wiki"},e.prototype.commaX0ThroughX1=function(){return", %s hadi %s"},e.prototype.commaAndX0ThroughX1=function(){return", na %s hadi %s"},e.prototype.first=function(){return"ya kwanza"},e.prototype.second=function(){return"ya pili"},e.prototype.third=function(){return"ya tatu"},e.prototype.fourth=function(){return"ya nne"},e.prototype.fifth=function(){return"ya tano"},e.prototype.commaOnThe=function(){return", kwenye "},e.prototype.spaceX0OfTheMonth=function(){return" siku %s ya mwezi"},e.prototype.lastDay=function(){return"siku ya mwisho"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", siku ya %s ya mwezi"},e.prototype.commaOnlyOnX0=function(){return", kwa %s tu"},e.prototype.commaAndOnX0=function(){return", na pia %s"},e.prototype.commaEveryX0Months=function(){return", kila mwezi wa %s"},e.prototype.commaOnlyInX0=function(){return", kwa %s tu"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", siku ya mwisho wa mwezi"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", wikendi ya mwisho wa mwezi"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", siku ya %s kabla ya siku ya mwisho wa mwezi"},e.prototype.firstWeekday=function(){return"siku za kazi ya kwanza"},e.prototype.weekdayNearestDayX0=function(){return"siku ya kazi karibu na siku ya %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", siku ya %s ya mwezi"},e.prototype.commaEveryX0Days=function(){return", kila siku %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", kati ya siku %s na %s ya mwezi"},e.prototype.commaOnDayX0OfTheMonth=function(){return", siku ya %s ya mwezi"},e.prototype.commaEveryX0Years=function(){return", kila miaka %s"},e.prototype.commaStartingX0=function(){return", kwanzia %s"},e.prototype.daysOfTheWeek=function(){return["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi"]},e.prototype.monthsOfTheYear=function(){return["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Desemba"]},e}();a.sw=d},33:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.th=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"เกิดข้อผิดพลาดขณะสร้างคำอธิบายนิพจน์ ตรวจสอบไวยากรณ์นิพจน์ครอน"},e.prototype.everyMinute=function(){return"ทุกๆ นาที"},e.prototype.everyHour=function(){return"ทุกๆ ชั่วโมง"},e.prototype.atSpace=function(){return"เมื่อ "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"ทุกๆ นาที %s และ %s"},e.prototype.at=function(){return"เมื่อ"},e.prototype.spaceAnd=function(){return" และ"},e.prototype.everySecond=function(){return"ทุกๆ วินาที"},e.prototype.everyX0Seconds=function(){return"ทุกๆ %s วินาที"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"วินาที %s ถึง %s นาทีที่ผ่านมา"},e.prototype.atX0SecondsPastTheMinute=function(){return"เมื่อ %s วินาที นาทีที่ผ่านมา"},e.prototype.everyX0Minutes=function(){return"ทุกๆ %s นาที"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"นาที %s ถึง %s ชั่วโมงที่ผ่านมา"},e.prototype.atX0MinutesPastTheHour=function(){return"เมื่อ %s นาที ชั่วโมงที่ผ่านมา"},e.prototype.everyX0Hours=function(){return"ทุกๆ %s ชั่วโมง"},e.prototype.betweenX0AndX1=function(){return"ระหว่าง %s ถึง %s"},e.prototype.atX0=function(){return"เมื่อ %s"},e.prototype.commaEveryDay=function(){return", ทุกๆ วัน"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", ทุกๆ %s วันของสัปดาห์"},e.prototype.commaX0ThroughX1=function(){return", %s ถึง %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s ถึง %s"},e.prototype.first=function(){return"แรก"},e.prototype.second=function(){return"ที่สอง"},e.prototype.third=function(){return"ที่สาม"},e.prototype.fourth=function(){return"ที่สี่"},e.prototype.fifth=function(){return"ที่ห้า"},e.prototype.commaOnThe=function(){return", ในวัน "},e.prototype.spaceX0OfTheMonth=function(){return" %s ของเดือน"},e.prototype.lastDay=function(){return"วันสุดท้าย"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", ณ สุดท้าย %s ของเดือน"},e.prototype.commaOnlyOnX0=function(){return", เท่านั้น %s"},e.prototype.commaAndOnX0=function(){return", และใน %s"},e.prototype.commaEveryX0Months=function(){return", ทุกๆ %s เดือน"},e.prototype.commaOnlyInX0=function(){return", เท่านั้น %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", ในวันสิ้นเดือน"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ในวันธรรมดาสุดท้ายของเดือน"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s วันก่อนวันสุดท้ายของเดือน"},e.prototype.firstWeekday=function(){return"วันธรรมดาวันแรก"},e.prototype.weekdayNearestDayX0=function(){return"วันธรรมดาที่ใกล้ที่สุด %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", ในวัน %s ของเดือน"},e.prototype.commaEveryX0Days=function(){return", ทุกๆ %s วัน"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", ระหว่างวัน %s และ %s ของเดือน"},e.prototype.commaOnDayX0OfTheMonth=function(){return", ในวัน %s ของเดือน"},e.prototype.commaEveryHour=function(){return", ทุกๆ ชั่วโมง"},e.prototype.commaEveryX0Years=function(){return", ทุกๆ %s ปี"},e.prototype.commaStartingX0=function(){return", เริ่ม %s"},e.prototype.daysOfTheWeek=function(){return["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"]},e.prototype.monthsOfTheYear=function(){return["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},e}();a.th=d},631:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.tr=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"her dakika"},e.prototype.everyHour=function(){return"her saat"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"İfade açıklamasını oluştururken bir hata oluştu. Cron ifadesini gözden geçirin."},e.prototype.atSpace=function(){return"Saat "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Saat %s ve %s arasındaki her dakika"},e.prototype.at=function(){return"Saat"},e.prototype.spaceAnd=function(){return" ve"},e.prototype.everySecond=function(){return"her saniye"},e.prototype.everyX0Seconds=function(){return"her %s saniyede bir"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"dakikaların %s. ve %s. saniyeleri arası"},e.prototype.atX0SecondsPastTheMinute=function(){return"dakikaların %s. saniyesinde"},e.prototype.everyX0Minutes=function(){return"her %s dakikada bir"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"saatlerin %s. ve %s. dakikaları arası"},e.prototype.atX0MinutesPastTheHour=function(){return"saatlerin %s. dakikasında"},e.prototype.everyX0Hours=function(){return"her %s saatte"},e.prototype.betweenX0AndX1=function(){return"%s ile %s arasında"},e.prototype.atX0=function(){return"saat %s"},e.prototype.commaEveryDay=function(){return", her gün"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", ayın her %s günü"},e.prototype.commaX0ThroughX1=function(){return", %s ile %s arasında"}
291,e.prototype.commaAndX0ThroughX1=function(){return", ve %s ile %s arasında"},e.prototype.first=function(){return"ilk"},e.prototype.second=function(){return"ikinci"},e.prototype.third=function(){return"üçüncü"},e.prototype.fourth=function(){return"dördüncü"},e.prototype.fifth=function(){return"beşinci"},e.prototype.commaOnThe=function(){return", ayın "},e.prototype.spaceX0OfTheMonth=function(){return" %s günü"},e.prototype.lastDay=function(){return"son gün"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", ayın son %s günü"},e.prototype.commaOnlyOnX0=function(){return", sadece %s günü"},e.prototype.commaAndOnX0=function(){return", ve %s"},e.prototype.commaEveryX0Months=function(){return", %s ayda bir"},e.prototype.commaOnlyInX0=function(){return", sadece %s için"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", ayın son günü"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ayın son iş günü"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ayın son gününden önceki günler"},e.prototype.firstWeekday=function(){return"ilk iş günü"},e.prototype.weekdayNearestDayX0=function(){return"%s. günü sonrasındaki ilk iş günü"},e.prototype.commaOnTheX0OfTheMonth=function(){return", ayın %s"},e.prototype.commaEveryX0Days=function(){return", %s günde bir"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", ayın %s. ve %s. günleri arası"},e.prototype.commaOnDayX0OfTheMonth=function(){return", ayın %s. günü"},e.prototype.commaEveryX0Years=function(){return", %s yılda bir"},e.prototype.commaStartingX0=function(){return", başlangıç %s"},e.prototype.daysOfTheWeek=function(){return["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},e.prototype.monthsOfTheYear=function(){return["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},e}();a.tr=d},225:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.uk=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"щохвилини"},e.prototype.everyHour=function(){return"щогодини"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},e.prototype.atSpace=function(){return"О "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},e.prototype.at=function(){return"О"},e.prototype.spaceAnd=function(){return" та"},e.prototype.everySecond=function(){return"Щосекунди"},e.prototype.everyX0Seconds=function(){return"кожні %s секунд"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},e.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},e.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},e.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},e.prototype.everyX0Hours=function(){return"кожні %s годин"},e.prototype.betweenX0AndX1=function(){return"між %s та %s"},e.prototype.atX0=function(){return"о %s"},e.prototype.commaEveryDay=function(){return", щоденно"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},e.prototype.commaX0ThroughX1=function(){return", %s по %s"},e.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},e.prototype.first=function(){return"перший"},e.prototype.second=function(){return"другий"},e.prototype.third=function(){return"третій"},e.prototype.fourth=function(){return"четвертий"},e.prototype.fifth=function(){return"п'ятий"},e.prototype.commaOnThe=function(){return", в "},e.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},e.prototype.lastDay=function(){return"останній день"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},e.prototype.commaOnlyOnX0=function(){return", тільки в %s"},e.prototype.commaAndOnX0=function(){return", і в %s"},e.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},e.prototype.commaOnlyInX0=function(){return", тільки в %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},e.prototype.firstWeekday=function(){return"перший будень"},e.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},e.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},e.prototype.commaEveryX0Days=function(){return", кожен %s день"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},e.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},e.prototype.commaEveryX0Years=function(){return", кожні %s роки"},e.prototype.commaStartingX0=function(){return", початок %s"},e.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},e.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},e}();a.uk=d},292:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.vi=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Đã xảy ra lỗi khi tạo mô tả biểu thức. Vui lòng kiểm tra cú pháp biểu thức cron."},e.prototype.everyMinute=function(){return"mỗi phút"},e.prototype.everyHour=function(){return"mỗi giờ"},e.prototype.atSpace=function(){return"Vào "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Mỗi phút giữa %s and %s"},e.prototype.at=function(){return"Vào"},e.prototype.spaceAnd=function(){return" và"},e.prototype.everySecond=function(){return"mỗi giây"},e.prototype.everyX0Seconds=function(){return"mỗi %s giây"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"giây thứ %s qua phút thứ %s"},e.prototype.atX0SecondsPastTheMinute=function(){return"tại giây thứ %s cá»
291§a mỗi phút"},e.prototype.everyX0Minutes=function(){return"mỗi %s phút"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"phút thứ %s qua %s tiếng"},e.prototype.atX0MinutesPastTheHour=function(){return"vào %s phút cá»§a mỗi tiếng"},e.prototype.everyX0Hours=function(){return"mỗi %s tiếng"},e.prototype.betweenX0AndX1=function(){return"giữa %s và %s"},e.prototype.atX0=function(){return"vào %s"},e.prototype.commaEveryDay=function(){return", mỗi ngày"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", mỗi %s ngày trong tuần"},e.prototype.commaX0ThroughX1=function(){return", %s đến %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s đến %s"},e.prototype.first=function(){return"đầu tiên"},e.prototype.second=function(){return"thứ 2"},e.prototype.third=function(){return"thứ 3"},e.prototype.fourth=function(){return"thứ 4"},e.prototype.fifth=function(){return"thứ 5"},e.prototype.commaOnThe=function(){return", trên "},e.prototype.spaceX0OfTheMonth=function(){return" %s cá»§a tháng"},e.prototype.lastDay=function(){return"ngày cuối cùng"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", vào ngày %s cuối cùng cá»§a tháng"},e.prototype.commaOnlyOnX0=function(){return", chỉ trên %s"},e.prototype.commaAndOnX0=function(){return", và hÆ¡n %s"},e.prototype.commaEveryX0Months=function(){return", mỗi ngày %s tháng"},e.prototype.commaOnlyInX0=function(){return", chỉ trong %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", vào ngày cuối cùng cá»§a tháng"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", vào ngày cuối tuần cá»§a tháng"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ngày trước ngày cuối cùng cá»§a tháng"},e.prototype.firstWeekday=function(){return"ngày đầu tuần"},e.prototype.weekdayNearestDayX0=function(){return"ngày trong tuần ngày gần nhất %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", vào ngày %s cá»§a tháng"},e.prototype.commaEveryX0Days=function(){return", mỗi %s ngày"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", giữa ngày %s và %s trong tháng"},e.prototype.commaOnDayX0OfTheMonth=function(){return", vào %s ngày trong tháng"},e.prototype.commaEveryHour=function(){return", mỗi tiếng"},e.prototype.commaEveryX0Years=function(){return", mỗi %s năm"},e.prototype.commaStartingX0=function(){return", bắt đầu %s"}
291,e.prototype.daysOfTheWeek=function(){return["Chủ nhật","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"]},e.prototype.monthsOfTheYear=function(){return["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"]},e}();a.vi=d},571:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.zh_CN=void 0;var d=function(){function e(){}return e.prototype.setPeriodBeforeTime=function(){return!0},e.prototype.pm=function(){return"下午"},e.prototype.am=function(){return"上午"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.everyMinute=function(){return"每分钟"},e.prototype.everyHour=function(){return"每小时"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误,请检查cron表达式语法。"},e.prototype.atSpace=function(){return"在"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},e.prototype.at=function(){return"在"},e.prototype.spaceAnd=function(){return" 和"},e.prototype.everySecond=function(){return"每秒"},e.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分钟后的第 %s 到 %s 秒"},e.prototype.atX0SecondsPastTheMinute=function(){return"在一分钟后的第 %s 秒"},e.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整点后的第 %s 到 %s 分钟"},e.prototype.atX0MinutesPastTheHour=function(){return"在整点后的第 %s 分钟"},e.prototype.everyX0Hours=function(){return"每隔 %s 小时"},e.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},e.prototype.atX0=function(){return"在%s"},e.prototype.commaEveryDay=function(){return", 每天"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},e.prototype.commaX0ThroughX1=function(){return", %s至%s"},e.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},e.prototype.first=function(){return"第一个"},e.prototype.second=function(){return"第二个"},e.prototype.third=function(){return"第三个"},e.prototype.fourth=function(){return"第四个"},e.prototype.fifth=function(){return"第五个"},e.prototype.commaOnThe=function(){return", 限每月的"},e.prototype.spaceX0OfTheMonth=function(){return"%s"},e.prototype.lastDay=function(){return"本月最后一天"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},e.prototype.commaOnlyOnX0=function(){return", 仅%s"},e.prototype.commaAndOnX0=function(){return", 或者为%s"},e.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},e.prototype.commaOnlyInX0=function(){return", 仅限%s"},e.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},e.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},e.prototype.firstWeekday=function(){return"第一个工作日"},e.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},e.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},e.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},e.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},e.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},e.prototype.commaStartingX0=function(){return", %s开始"},e.prototype.dayX0=function(){return" %s 号"},e.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},e.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},e}();a.zh_CN=d},983:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.zh_TW=void 0;var d=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return", 從 %s 年至 %s 年"},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"每分鐘"},e.prototype.everyHour=function(){return"每小時"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"產生表達式描述時發生了錯誤,請檢查 cron 表達式語法。"},e.prototype.atSpace=function(){return"在 "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 和 %s 之間的每分鐘"},e.prototype.at=function(){return"在"},e.prototype.spaceAnd=function(){return" 和"},e.prototype.everySecond=function(){return"每秒"},e.prototype.everyX0Seconds=function(){return"每 %s 秒"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分鐘後的 %s 到 %s 秒"},e.prototype.atX0SecondsPastTheMinute=function(){return"在一分鐘後的 %s 秒"},e.prototype.everyX0Minutes=function(){return"每 %s 分鐘"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整點後的 %s 到 %s 分鐘"},e.prototype.atX0MinutesPastTheHour=function(){return"在整點後的 %s 分"},e.prototype.everyX0Hours=function(){return"每 %s 小時"},e.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之間"},e.prototype.atX0=function(){return"在 %s"},e.prototype.commaEveryDay=function(){return", 每天"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每週的每 %s 天"},e.prototype.commaX0ThroughX1=function(){return", %s 到 %s"},e.prototype.commaAndX0ThroughX1=function(){return", 和 %s 到 %s"},e.prototype.first=function(){return"第一個"},e.prototype.second=function(){return"第二個"},e.prototype.third=function(){return"第三個"},e.prototype.fourth=function(){return"第四個"},e.prototype.fifth=function(){return"第五個"},e.prototype.commaOnThe=function(){return", 在每月 "},e.prototype.spaceX0OfTheMonth=function(){return"%s "},e.prototype.lastDay=function(){return"最後一天"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", 每月的最後一個 %s "},e.prototype.commaOnlyOnX0=function(){return", 僅在 %s"},e.prototype.commaAndOnX0=function(){return", 或 %s"},e.prototype.commaEveryX0Months=function(){return", 每 %s 月"},e.prototype.commaOnlyInX0=function(){return", 僅在 %s"},e.prototype.commaOnlyInMonthX0=function(){return", 僅在 %s"},e.prototype.commaOnlyInYearX0=function(){return", 僅在 %s 年"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", 每月的最後一天"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 每月的最後一個工作日"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s 這個月的最後一天的前幾天"},e.prototype.firstWeekday=function(){return"第一個工作日"},e.prototype.weekdayNearestDayX0=function(){return"最接近 %s 號的工作日"},e.prototype.commaOnTheX0OfTheMonth=function(){return", 每月的 %s "},e.prototype.commaEveryX0Days=function(){return", 每 %s 天"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 在每月的 %s 和 %s 之間"},e.prototype.commaOnDayX0OfTheMonth=function(){return", 每月的 %s"},e.prototype.commaEveryX0Years=function(){return", 每 %s 年"},e.prototype.commaStartingX0=function(){return", %s 開始"},e.prototype.dayX0=function(){return" %s 號"},e.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},e.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},e}();a.zh_TW=d},515:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0});function d(f,p){if(!f)throw new Error(p)}var e=function(){function f(){}return f.secondRange=function(p){for(var u=p.split(","),m=0;m<u.length;m++)if(!isNaN(parseInt(u[m],10))){var y=parseInt(u[m],10);d(y>=0&&y<=59,"seconds part must be >= 0 and <= 59")}},f.minuteRange=function(p){for(var u=p.split(","),m=0;m<u.length;m++)if(!isNaN(parseInt(u[m],10))){var y=parseInt(u[m],10);d(y>=0&&y<=59,"minutes part must be >= 0 and <= 59")}},f.hourRange=function(p){for(var u=p.split(","),m=0;m<u.length;m++)if(!isNaN(parseInt(u[m],10))){var y=parseInt(u[m],10);d(y>=0&&y<=23,"hours part must be >= 0 and <= 23")}},f.dayOfMonthRange=function(p){for(var u=p.split(","),m=0;m<u.length;m++)if(!isNaN(parseInt(u[m],10))){var y=parseInt(u[m],10);d(y>=1&&y<=31,"DOM part must be >= 1 and <= 31")}},f.monthRange=function(p,u){for(var m=p.split(","),y=0;y<m.length;y++)if(!isNaN(parseInt(m[y],10))){var v=parseInt(m[y],10);d(v>=1&&v<=12,u?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},f.dayOfWeekRange=function(p,u){for(var m=p.split(","),y=0;y<m.length;y++)if(!isNaN(parseInt(m[y],10))){var v=parseInt(m[y],10);d(v>=0&&v<=6,u?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},f}();a.default=e},823:(l,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.StringUtilities=void 0;var d=function(){function e(){}return e.format=function(f){for(var p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];return f.replace(/%s/g,function(m){return p.shift()})},e.containsAny=function(f,p){return p.some(function(u){return f.indexOf(u)>-1})},e}();a.StringUtilities=d}},s={};function i(l){var a=s[l];if(a!==void 0)return a.exports;var d=s[l]={exports:{}};return o[l](d,d.exports,i),d.exports}var c={};return(()=>{var l=c;
291Object.defineProperty(l,"__esModule",{value:!0}),l.toString=void 0;var a=i(333),d=i(420);a.ExpressionDescriptor.initialize(new d.allLocalesLoader),l.default=a.ExpressionDescriptor;var e=a.ExpressionDescriptor.toString;l.toString=e})(),c})())})(xs);var ym=xs.exports,gm=ym,vm=gm;const xm=qs(vm),bm=t=>{const r=i=>{if(!t.disabled&&(parseInt(i.target.value)>0&&parseInt(i.target.value)<60||i.target.value==="")){const c=["0","*","*","*","*","?","*"];c[1]=i.target.value?`0/${i.target.value}`:c[1],t.onChange(c)}},o=i=>{["e","E","+","-","."].includes(i.key)&&i.preventDefault()},s=t.value[1].split("/")[1];return n.jsxs("div",{className:"well",children:[t.translate("Every")," ",n.jsx("input",{type:"Number",onChange:r,onKeyDown:o,value:s,min:1,max:60,disabled:t.disabled})," ",t.translate("minute(s)")]})},wn=t=>{const r=()=>{const o=[];for(let s=0;s<60;s++)o.push(n.jsx("option",{id:s.toString(),children:(s<10?"0":"")+s},s));return o};return n.jsx("select",{disabled:t.disabled,className:"minutes",onChange:t.onChange,value:t.value,children:r()})},Nn=t=>{const r=()=>{const o=[];for(let s=0;s<24;s++)o.push(n.jsx("option",{id:s.toString(),children:(s<10?"0":"")+s},s));return o};return n.jsx("select",{disabled:t.disabled,className:"hours",onChange:t.onChange,value:t.value,children:r()})},jm=t=>{const[r,o]=T.useState({hour:0,minute:0,every:!1});T.useEffect(()=>{o(p=>({...p,every:t.value[3]!=="?"}))},[t.value]);const s=p=>{["e","E","+","-","."].includes(p.key)&&p.preventDefault()},i=p=>{t.disabled||(!p.target.value||parseInt(p.target.value)>0&&parseInt(p.target.value)<32)&&a(3,p.target.value?`1/${p.target.value}`:p.target.value)},c=p=>{t.disabled||a(2,p.target.value)},l=p=>{t.disabled||a(1,p.target.value)},a=(p,u)=>{const m=t.value;m[p]=u,t.onChange(m)},d=()=>{t.disabled||!r.every||(o({...r,every:!1}),t.onChange(["0",t.value[1],t.value[2],"?","*","MON-FRI","*"]))},e=()=>{t.disabled||r.every||(o({...r,every:!0}),t.onChange())},f=t.translate;return n.jsxs("div",{className:"tab-pane",children:[n.jsxs("label",{className:"well well-small cursor_pointer",children:[n.jsx("input",{type:"radio",value:"1",name:"DailyRadio",checked:r.every,onChange:e,disabled:t.disabled}),n.jsx("span",{onClick:e,children:f("Every")}),n.jsx("input",{readOnly:!r.every,disabled:t.disabled,type:"Number",maxLength:2,onChange:i,onKeyDown:s,onClick:e,value:t.value[3].split("/")[1]?t.value[3].split("/")[1]:""}),n.jsx("span",{onClick:e,children:f("day(s)")})]}),n.jsxs("label",{className:"well well-small cursor_pointer",children:[n.jsx("input",{type:"radio",value:"2",name:"EveryWeekDay",checked:!r.every,onChange:d,disabled:t.disabled}),n.jsx("span",{onClick:d,children:f("Every week day")})]}),n.jsx("span",{children:f("Start time")}),n.jsx(Nn,{onChange:c,value:t.value[2],disabled:t.disabled}),n.jsx(wn,{onChange:l,value:t.value[1],disabled:t.disabled})]})},Tm=t=>{const[r,o]=T.useState({every:!1});T.useEffect(()=>{(t.value[2].split("/")[1]||t.value[2]==="*")&&o(p=>({...p,every:!0}))},[t.value]);const s=p=>{["e","E","+","-","."].includes(p.key)&&p.preventDefault()},i=p=>{if(!t.disabled&&r.every&&(parseInt(p.target.value)>0&&parseInt(p.target.value)<24||p.target.value==="")){const u=["0","0","*","1/1","*","?","*"];u[1]=t.value[1],u[2]=p.target.value?`0/${p.target.value}`:p.target.value,u[3]="1/1",t.onChange(u)}},c=p=>{if(!t.disabled&&r.every&&(parseInt(p.target.value)>0&&parseInt(p.target.value)<60||p.target.value==="")){const u=["0","0","*","1/1","*","?","*"];u[1]=p.target.value,u[2]=t.value[2],u[3]="1/1",t.onChange(u)}},l=p=>{if(t.disabled)return;const u=["0",t.value[1],"*","1/1","*","?","*"];u[2]=`${p.target.value}`,t.onChange(u)},a=p=>{if(t.disabled)return;const u=["0","*",t.value[2],"1/1","*","?","*"];u[1]=`${p.target.value}`,t.onChange(u)},d=()=>{t.disabled||r.every||(o({...r,every:!0}),t.onChange(["0","0","0/1","1/1","*","?","*"]))},e=()=>{t.disabled||!r.every||(o({every:!1}),t.onChange())},f=t.translate;return n.jsx("div",{className:"tab-content",children:n.jsxs("div",{className:"tab-pane active",children:[n.jsxs("label",{className:"well well-small cursor_pointer",children:[n.jsx("input",{name:"EveryHourMinute",type:"radio",checked:r.every,onChange:d,disabled:t.disabled}),n.jsxs("span",{onClick:d,children:[f("Every")," "]}),n.jsx("input",{readOnly:!r.every,disabled:t.disabled,type:"Number",onChange:i,onKeyDown:s,onClick:d,value:t.value[2].split("/")[1]?t.value[2].split("/")[1]:""}),n.jsx("span",{onClick:d,children:f("hour")}),n.jsx("input",{readOnly:!r.every,disabled:t.disabled,type:"Number",onChange:c,onKeyDown:s,onClick:d,value:t.value[1]}),n.jsx("span",{onClick:d,children:f("minute(s)")})]}),n.jsxs("label",{className:"well well-small cursor_pointer",children:[n.jsx("input",{name:"EverySpecificHour",type:"radio",checked:!r.every,onChange:e,disabled:t.disabled}),n.jsx("span",{onClick:e,children:f("At")}),n.jsx(Nn,{disabled:t.disabled,onChange:l,value:t.value[2]}),n.jsx(wn,{disabled:t.disabled,onChange:a,value:t.value[1]})]})]})})},Xm=t=>{const r=a=>{if(t.disabled)return;const d=t.value;d[0]="0",d[2]=`${a.target.value}`,t.onChange(d)},o=a=>{if(t.disabled)return;const d=t.value;d[0]="0",d[1]=`${a.target.value}`,t.onChange(d)},s=a=>
291{if(t.disabled)return;const d=t.value;d[0]="0",a.target.checked?i(d,a):c(d,a),t.onChange(d)},i=(a,d)=>{a[2]=`${a[2]}`.split("/").length>1?"0":a[2].toString(),a[3]="?",a[4]="*",a[5]==="*"||a[5]==="?"||a[5]==="MON-FRI"||a[5]==="1-5"?a[5]=d.target.value:a[5]=a[5]+"!"+d.target.value},c=(a,d)=>{let e=a[5].split("!");e.length>1?(e.splice(e.indexOf(d.target.value),1),e=e.toString().replace(/,/g,"!")):e="*",a[5]=e},l=t.translate;return n.jsxs("div",{className:"container-fluid",children:[n.jsxs("div",{className:"well well-small row",children:[n.jsx("div",{className:"span6 col-sm-6",children:n.jsxs("div",{className:"text_align_left",children:[n.jsx("input",{id:"mon-checkbox",className:"min_height_auto cursor_pointer",type:"checkbox",value:"MON",onChange:s,checked:t.value[5].search("MON")!==-1,disabled:t.disabled}),n.jsx("label",{className:"cursor_pointer",htmlFor:"mon-checkbox",children:l("Monday")}),n.jsx("br",{}),n.jsx("input",{id:"wed-checkbox",className:"min_height_auto cursor_pointer",type:"checkbox",value:"WED",onChange:s,checked:t.value[5].search("WED")!==-1,disabled:t.disabled}),n.jsx("label",{className:"cursor_pointer",htmlFor:"wed-checkbox",children:l("Wednesday")}),n.jsx("br",{}),n.jsx("input",{id:"fri-checkbox",className:"min_height_auto cursor_pointer",type:"checkbox",value:"FRI",onChange:s,checked:t.value[5].search("FRI")!==-1,disabled:t.disabled}),n.jsx("label",{className:"cursor_pointer",htmlFor:"fri-checkbox",children:l("Friday")}),n.jsx("br",{}),n.jsx("input",{id:"sun-checkbox",className:"min_height_auto cursor_pointer",type:"checkbox",value:"SUN",onChange:s,checked:t.value[5].search("SUN")!==-1,disabled:t.disabled}),n.jsx("label",{className:"cursor_pointer",htmlFor:"sun-checkbox",children:l("Sunday")})]})}),n.jsxs("div",{className:"span6 col-sm-6",children:[n.jsxs("div",{className:"text_align_left",children:[n.jsx("input",{id:"tue-checkbox",className:"min_height_auto cursor_pointer",type:"checkbox",value:"TUE",onChange:s,checked:t.value[5].search("TUE")!==-1,disabled:t.disabled}),n.jsx("label",{className:"cursor_pointer",htmlFor:"tue-checkbox",children:l("Tuesday")}),n.jsx("br",{}),n.jsx("input",{id:"thu-checkbox",className:"min_height_auto cursor_pointer",type:"checkbox",value:"THU",onChange:s,checked:t.value[5].search("THU")!==-1,disabled:t.disabled}),n.jsx("label",{className:"cursor_pointer",htmlFor:"thu-checkbox",children:l("Thursday")}),n.jsx("br",{}),n.jsx("input",{id:"sat-checkbox",className:"min_height_auto cursor_pointer",type:"checkbox",value:"SAT",onChange:s,checked:t.value[5].search("SAT")!==-1,disabled:t.disabled}),n.jsx("label",{className:"cursor_pointer",htmlFor:"sat-checkbox",children:l("Saturday")})]}),n.jsx("br",{}),n.jsx("br",{})]})]}),l("Start time"),n.jsx(Nn,{onChange:r,value:t.value[2],disabled:t.disabled}),n.jsx(wn,{onChange:o,value:t.value[1],disabled:t.disabled})]})},Om=t=>{const[r,o]=T.useState({hour:0,minute:0,every:""});T.useEffect(()=>{let p;t.value[3]==="L"?p="2":t.value[3]==="LW"?p="3":t.value[3].startsWith("L")?p="4":t.value[3].includes("!")?p="5":p="1",o(u=>u.every==="5"&&p==="1"?u:{...u,every:p})},[t.value]);const s=p=>{["e","E","+","-","."].includes(p.key)&&p.preventDefault()},i=p=>{if(!t.disabled&&(parseInt(p.target.value)>0&&parseInt(p.target.value)<=31||p.target.value==="")){const u=["0",t.value[1]==="*"?"0":t.value[1],t.value[2]==="*"?"0":t.value[2],t.value[3],"1/1","?","*"];u[3]=`${p.target.value}`,t.onChange(u)}},c=p=>{if(t.disabled)return;const u=t.value;u[2]=`${p.target.value}`,t.onChange(u)},l=p=>{if(t.disabled)return;const u=t.value;u[1]=`${p.target.value}`,t.onChange(u)},a=(p="1")=>{t.disabled||r.every!=="1"&&(o({...r,every:p}),t.onChange(["0",t.value[1]==="*"?"0":t.value[1],t.value[2]==="*"?"0":t.value[2],"1","1/1","?","*"]))},d=(p="2")=>{t.disabled||r.every!=="2"&&(o({...r,every:p}),t.onChange(["0",t.value[1]==="*"?"0":t.value[1],t.value[2]==="*"?"0":t.value[2],"L","*","?","*"]))},e=(p="3")=>{t.disabled||r.every!=="3"&&(o({...r,every:p}),t.onChange(["0",t.value[1]==="*"?"0":t.value[1],t.value[2]==="*"?"0":t.value[2],"LW","*","?","*"]))},f=t.translate;return n.jsxs("div",{className:"tab-pane",children:[n.jsxs("label",{className:"well well-small cursor_pointer",children:[n.jsx("input",{type:"radio",value:"1",name:"MonthlyOnceRadio",checked:r.every==="1",onChange:()=>a(),disabled:t.disabled}),n.jsx("span",{onClick:()=>a(),children:f("Day")}),n.jsx("input",{readOnly:r.every!=="1",type:"number",value:t.value[3],onChange:i,onKeyDown:s,onClick:()=>a(),disabled:t.disabled}),n.jsx("span",{onClick:()=>a(),children:f("of every month(s)")}
291)]}),n.jsxs("label",{className:"well well-small cursor_pointer",children:[n.jsx("input",{type:"radio",value:"2",name:"LastDayOfEveryMonth",checked:r.every==="2",onChange:()=>d(),disabled:t.disabled}),n.jsx("span",{onClick:()=>d(),children:f("Last day of every month")})]}),n.jsxs("label",{className:"well well-small cursor_pointer",children:[n.jsx("input",{type:"radio",value:"3",name:"LastWeekdayOfEveryMonth",checked:r.every==="3",onChange:()=>e(),disabled:t.disabled}),n.jsx("span",{onClick:()=>e(),children:f("On the last weekday of every month")})]}),f("Start time"),n.jsx(Nn,{onChange:c,value:t.value[2],disabled:t.disabled}),n.jsx(wn,{onChange:l,value:t.value[1],disabled:t.disabled})]})},wm=t=>{const r=i=>{t.disabled||t.onChange(i.target.value.replace(/,/g,"!").split(" "))},o=t.translate,s=t.value.toString().replace(/,/g," ").replace(/!/g,",");return n.jsxs("div",{className:"well",children:[o("Expression")," ",n.jsx("input",{type:"text",onChange:r,value:s,disabled:t.disabled})]})},ye={MINUTES:"Minutes",HOURLY:"Hourly",DAILY:"Daily",WEEKLY:"Weekly",MONTHLY:"Monthly",CUSTOM:"Custom"},Nm=[ye.MINUTES,ye.HOURLY,ye.DAILY,ye.WEEKLY,ye.MONTHLY,ye.CUSTOM],qn=[{component:bm,name:ye.MINUTES,initialCron:["0","0/1","*","*","*","?","*"]},{component:Tm,name:ye.HOURLY,initialCron:["0","0","00","1/1","*","?","*"]},{component:jm,name:ye.DAILY,initialCron:["0","0","00","1/1","*","?","*"]},{component:Xm,name:ye.WEEKLY,initialCron:["0","0","00","?","*","*","*"]}
291,{component:Om,name:ye.MONTHLY,initialCron:["0","0","00","1","1/1","?","*"]},{component:wm,name:ye.CUSTOM,initialCron:["*","*","*","*","*","*","*"]}],Sm=t=>{const r=[];return t.forEach(o=>{if(ye[o])r.indexOf(ye[o])===-1&&r.push(ye[o]);else throw new Error("Invalid header "+o)}),r},Ho=t=>{if(t&&t.headers){if(!t.headers.length)throw new Error("Atleast one header is required.");return Sm(t.headers)}return Nm},Kn=t=>{const r=t.trim().split(/\s+/);if(r.length!==5)throw new Error("Invalid Unix cron expression. Expected 5 fields.");const[o,s,i,c,l]=r;let a=i,d=l;return l!=="*"?(a="?",d=bs(l)):d="?",`0 ${o} ${s} ${a} ${c} ${d} *`},km=t=>{const r=t.trim().split(/\s+/);if(r.length!==7)throw new Error("Invalid Quartz cron expression. Expected 7 fields.");const[,o,s,i,c,l]=r;let a=l,d=i;return l!=="?"&&l!=="*"?(a=js(l),d="*"):(i!=="?"&&i!=="*"||(d="*"),a="*"),`${o} ${s} ${d} ${c} ${a}`},bs=t=>{if(t.includes("-"))return t.split("-").map(o=>Jn(o)).join("-");if(t.includes(",")||t.includes("!")){const r=t.includes("!")?"!":",";return t.split(r).map(s=>Jn(s)).join(r)}if(t.includes("/")){const[r,o]=t.split("/");return r==="*"?`*/${o}`:`${bs(r)}/${o}`}return Jn(t)},Jn=t=>({0:"SUN",1:"MON",2:"TUE",3:"WED",4:"THU",5:"FRI",6:"SAT",7:"SUN"})[t]||t,js=t=>{if(t.includes("-"))return t.split("-").map(o=>Qn(o)).join("-");if(t.includes(",")||t.includes("!")){const r=t.includes("!")?"!":",";return t.split(r).map(s=>Qn(s)).join(",")}if(t.includes("/")){const[r,o]=t.split("/");return r==="*"?`*/${o}`:`${js(r)}/${o}`}return Qn(t)},Qn=t=>({SUN:"0",MON:"1",TUE:"2",WED:"3",THU:"4",FRI:"5",SAT:"6",1:"0",2:"1",3:"2",4:"3",5:"4",6:"5",7:"6"})[t]||t;function Dm(t){if(!t||typeof t!="string")return{isValid:!1,error:"Expression must be a non-empty string"};const o=t.trim().split(/\s+/);if(o.length!==5)return{isValid:!1,error:`Unix cron must have 5 fields, got ${o.length}`};const[s,i,c,l,a]=o,d=[{field:s,name:"minute",min:0,max:59},{field:i,name:"hour",min:0,max:23},{field:c,name:"day",min:1,max:31},{field:l,name:"month",min:1,max:12},{field:a,name:"day-of-week",min:0,max:7}];for(const e of d){const f=Ts(e.field,e.name,e.min,e.max);if(!f.isValid)return f}return{isValid:!0,format:"unix"}}function Mm(t){if(!t||typeof t!="string")return{isValid:!1,error:"Expression must be a non-empty string"};const o=t.trim().split(/\s+/);if(o.length!==6&&o.length!==7)return{isValid:!1,error:`Quartz cron must have 6 or 7 fields, got ${o.length}`};const[s,i,c,l,a,d,e]=o,f=[{field:s,name:"second",min:0,max:59},{field:i,name:"minute",min:0,max:59},{field:c,name:"hour",min:0,max:23},{field:l,name:"day",min:1,max:31},{field:a,name:"month",min:1,max:12},{field:d,name:"day-of-week",min:0,max:7}];e&&f.push({field:e,name:"year",min:1970,max:2099});for(const p of f){const u=Ts(p.field,p.name,p.min,p.max);if(!u.isValid)return u}return{isValid:!0,format:"quartz"}}function Ts(t,r,o,s){if(!t)return{isValid:!1,error:`${r} field is required`};if(t==="*"||t==="?")return{isValid:!0};if(r==="day"){if(t==="L")return{isValid:!0};if(t==="LW")return{isValid:!0};if(t.startsWith("L-")){const c=Number(t.substring(2));return!isNaN(c)&&c>0&&c<=31?{isValid:!0}:{isValid:!1,error:`Invalid L-n value in ${r}: ${t}`}}if(t.endsWith("W")){const c=Number(t.slice(0,-1));return!isNaN(c)&&c>=1&&c<=31?{isValid:!0}:{isValid:!1,error:`Invalid nW value in ${r}: ${t}`}}}if(r==="day-of-week"){if(/^(SUN|MON|TUE|WED|THU|FRI|SAT)(-((SUN|MON|TUE|WED|THU|FRI|SAT)))?$/i.test(t))return{isValid:!0};if(t.includes("#")){const[l,a]=t.split("#").map(Number);return!isNaN(l)&&!isNaN(a)&&l>=1&&l<=7&&a>=1&&a<=5?{isValid:!0}:{isValid:!1,error:`Invalid n#m value in ${r}: ${t}`}}if(t.endsWith("L")){const l=Number(t.slice(0,-1));return!isNaN(l)&&l>=1&&l<=7?{isValid:!0}:{isValid:!1,error:`Invalid nL value in ${r}: ${t}`}}}if(t.includes("-")&&!t.startsWith("L-")){const[c,l]=t.split("-").map(Number);return isNaN(c)||isNaN(l)?{isValid:!1,error:`Invalid range in ${r}: ${t}`}:c<o||l>s||c>l?{isValid:!1,error:`Range ${t} in ${r} must be between ${o}-${s}`}:{isValid:!0}}if(t.includes("/")){const[c,l]=t.split("/"),a=Number(l);if(isNaN(a)||a<=0)return{isValid:!1,error:`Invalid step value in ${r}: ${t}`};if(c!=="*"&&c!=="0"){const d=Number(c);if(isNaN(d)||d<o||d>s)return{isValid:!1,error:`Base value ${c} in ${r} must be between ${o}-${s}`}}return{isValid:!0}}if(t.includes(",")){const c=t.split(",");if(r==="day-of-week"){const a=["SUN","MON","TUE","WED","THU","FRI","SAT"];for(const d of c){const e=d.trim();if(a.includes(e.toUpperCase()))continue;const f=Number(e);if(isNaN(f)||f<o||f>s)return{isValid:!1,error:`Value ${e} in ${r} must be between ${o}-${s} or a valid day name`}}return{isValid:!0}}const l=c.map(Number);for(const a of l)if(isNaN(a)||a<o||a>s)return{isValid:!1,error:`Value ${a} in ${r} must be between ${o}-${s}`};return{isValid:!0}}const i=Number(t);return isNaN(i)?{isValid:!1,error:`Invalid value in ${r}: ${t}`}:i<o||i>s?{isValid:!1,error:`Value ${i} in ${r} must be between ${o}-${s}`}:{isValid:!0}}function Wo(t){if(!t||typeof t!="string")return{isValid:!1,error:"Expression must be a non-empty string"};const r=t.trim(),o=r.split(/\s+/).length;return o===5?Dm(r):o===6||o===7?Mm(r):{isValid:!1,error:`Invalid cron expression: expected 5 (Unix) or 6-7 (Quartz) fields, got ${o}`}}const Zt="0 0 00 1/1 * ? *",Em=t=>{if(t.isUnix&&t.use6FieldQuartz)throw new Error("Cannot use both isUnix and use6FieldQuartz props together. Please use only one format option.");const[r,o]=T.useState({value:[],headers:Ho(t.options),locale:t.locale?t.locale:"en"}),s=T.useRef(t),i=T.useRef(r);T.useEffect(()=>{s.current=t},[t]),T.useEffect(()=>{i.current=r},[r]);const{translateFn:c}=t,l=T.useCallback(x=>{let b=x;if(c&&(b=c(x),typeof b!="string"))throw new Error("translateFn expects a string translation");return b},[c]),a=T.useCallback(x=>x.toString().replace(/,/g," ").replace(/!/g,","),[]),d=T.useCallback((x,b)=>{let O=a(x);if(b!==void 0?b:t.isUnix)try{O=km(O)}catch(S){return console.error("Error converting Quartz to Unix:",S),O}else if(t.use6FieldQuartz){const S=O.split(" ");S.length===7&&S[6]==="*"&&(O=S.slice(0,6).join(" "))}return O},[t.isUnix,t.use6FieldQuartz,a]),e=T.useCallback(x=>{let b=x;if(b.split(" ").length===5)try{b=Kn(b)}catch(w){console.warn("Failed to convert Unix to Quartz for parsing:",w)}try{const w=xm.toString(b,{throwExceptionOnParseError:!1,locale:i.current.locale});if(w.search("undefined")===-1&&b&&b.length)return w}catch(w){console.warn("Failed to parse cron expression:",w)}return"-"},[]),f=T.useCallback(x=>{const b=d(x),O=Wo(b);if(!O.isValid){console.warn("Invalid cron expression:",O.error);return}s.current.onChange(b,e(b))},[d,e]),p=T.useCallback(x=>{const b=Ho();let O=x;if(t.isUnix&&x&&x.split(" ").length===5)try{O=Kn(x)}
291catch(M){console.error("Error: converting Unix to Quartz:",M),O=Zt}if(!t.isUnix&&x&&x.split(" ").length===5)try{console.error("Warning: Unix value found,Converting to Quartz"),O=Kn(x)}catch(M){console.error("Error: converting Unix to Quartz:",M),O=Zt}let w=O.replace(/,/g,"!").split(" ");if(O&&O.split(" ").length===6&&w.push("*"),!O||O.split(" ").length!==7){O=Zt,w=O.split(" "),o(M=>({...M,value:w,selectedTab:b[0]})),f(w);return}let S=b[0];const _=w;_[1].search("/")!==-1&&_[2]==="*"&&_[3]==="1/1"?S=b[0]:_[3]==="1/1"?S=b[1]:_[3].search("/")!==-1||_[5]==="MON-FRI"?S=b[2]:_[3]==="?"?S=b[3]:(_[3].startsWith("L")||_[4]==="1/1")&&(S=b[4]),i.current.headers.includes(S)||(S=i.current.headers[0]),o(M=>({...M,value:w,selectedTab:S}))},[f]),u=T.useCallback(x=>{const b=qn.find(O=>O.name===x);return!b||!b.initialCron?Zt.split(" "):[...b.initialCron]},[]),m=T.useCallback(x=>{i.current.selectedTab!==x&&!s.current.disabled&&o(b=>({...b,selectedTab:x,value:u(x)}))},[u]),y=T.useCallback(x=>{if(x&&x.length)o(b=>({...b,value:[...x]})),f(x);else{const b=["0","0","00","1/1","*","?","*"];o(O=>({...O,value:b})),f(b)}},[f]);T.useEffect(()=>{const b=i.current.value&&i.current.value.length>0?d(i.current.value):"";t.value!==b&&p(t.value?t.value:""),t.translateFn&&!t.locale&&console.warn("Warning !!! locale not set while using translateFn")},[t.value,t.translateFn,t.locale,p,d]);const v=T.useRef(t.isUnix);T.useEffect(()=>{if(t.isUnix!==v.current&&(v.current=t.isUnix,r.value&&r.value.length)){const x=d(r.value,t.isUnix);Wo(x).isValid&&s.current.onChange(x,e(x))}},[t.isUnix,r.value,d,e]),T.useEffect(()=>{r.value&&r.value.length&&f(r.value)},[r.value,f]);const h=T.useMemo(()=>r.headers.map((x,b)=>n.jsx("li",{className:"nav-item",children:n.jsx("button",{type:"button",className:`nav-link ${r.selectedTab===x?"active":""} ${t.disabled?"disabled":""}`,onClick:()=>m(x),disabled:t.disabled,"aria-label":`Select ${l(x)} tab`,children:l(x)})},b)),[r.headers,r.selectedTab,t.disabled,m,l]),j=T.useCallback(x=>{const b=r.headers.indexOf(x);let O=qn.find(S=>S.name===x);if(O||(O={...qn[b]}),!O)throw new Error("Value does not match any available headers.");const w=O.component;return n.jsx(w,{translate:l,value:r.value,onChange:y,disabled:t.disabled,isUnix:t.isUnix})},[r.headers,r.value,t.isUnix,t.disabled,l,y]),g=T.useMemo(()=>!r.value||r.value.length===0?"":d(r.value,t.isUnix),[r.value,t.isUnix,d]);return n.jsxs("div",{className:"cron_builder",children:[n.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:h}),n.jsx("div",{className:"cron_builder_bordering",role:"tabpanel",children:r.selectedTab?j(r.selectedTab):"Select a header"}),t.showResultText&&n.jsx("div",{className:"cron-builder-bg","aria-label":"Cron description",children:e(g)}),t.showResultCron&&n.jsx("div",{className:"cron-builder-bg","aria-label":"Cron expression",children:g})]})};function Cm({open:t,isSubmitting:r,onOpenChange:o,onSubmit:s,defaultExpression:i="0 0 * * *"}){const[c,l]=T.useState(i),a=d=>{console.log("cron",c),d.preventDefault(),c&&s(c)};return n.jsx(xt,{open:t,onOpenChange:o,children:n.jsx(bt,{className:"sm:max-w-[700px] max-h-[90vh] overflow-y-auto",children:n.jsxs("form",{onSubmit:a,children:[n.jsxs(jt,{children:[n.jsx(Tt,{children:"Schedule Agent"}),n.jsx(Xt,{children:"Set up a recurring schedule for this agent to run automatically."})]}),n.jsx("div",{className:"space-y-4 py-4",children:n.jsx(Em,{onChange:l,value:c,showResultText:!0,showResultCron:!1,isUnix:!0})}
291),n.jsxs(yn,{className:"justify-start",children:[n.jsx(I,{type:"button",variant:"outline",onClick:()=>o(!1),children:"Cancel"}),n.jsxs(I,{type:"submit",children:[r&&n.jsx(Xe,{className:"mr-2 h-4 w-4 animate-spin"}),"Save Schedule"]})]})]})})})}function Am({open:t,onOpenChange:r,agent:o}){const[s,i]=T.useState(""),[c,l]=T.useState(!1),a=async d=>{d.preventDefault(),l(!0);try{await K.put(Q.agents,o.agent_id+"/transfer",{email:s}),U.success(`Agent has been transferred to ${s}`),r(!1)}catch(e){U.error(e.message)}finally{l(!1)}};return n.jsx(xt,{open:t,onOpenChange:r,children:n.jsx(bt,{className:"sm:max-w-[500px]",children:n.jsxs("form",{onSubmit:a,children:[n.jsxs(jt,{children:[n.jsx(Tt,{children:"Transfer Ownership"}),n.jsxs(Xt,{children:['Transfer ownership of "',o.name,'" to another user.']})]}),n.jsxs("div",{className:"space-y-4 py-4",children:[n.jsxs(Zn,{variant:"destructive",children:[n.jsx(Ks,{className:"h-4 w-4"}),n.jsx(er,{children:"Once transferred, you will lose access to this agent, it's data and jobs ran in past. This action cannot be undone."})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"email",children:"New Owner Email"}),n.jsx(F,{id:"email",type:"email",value:s,onChange:d=>i(d.target.value),placeholder:"[email protected]",required:!0}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"The user must have an active account on Agenty."})]})]}
291),n.jsxs(yn,{children:[n.jsx(I,{type:"button",variant:"outline",onClick:()=>r(!1),children:"Cancel"}),n.jsxs(I,{type:"submit",variant:"destructive",children:[c&&n.jsx(Xe,{className:"mr-2 h-4 w-4 animate-spin"}),"Transfer Ownership"]})]})]})})})}function Pm({open:t,onOpenChange:r,agentId:o}){const[s,i]=T.useState(null),c="YOUR_API_KEY",l=`${Kr.API_URL}/results/${o}?apiKey=${c}`,a=`${Kr.API_URL}/results/${o}?format=CSV&apiKey=${c}`,d=(e,f)=>{navigator.clipboard.writeText(e),i(f),setTimeout(()=>i(null),2e3)};return n.jsx(xt,{open:t,onOpenChange:r,children:n.jsxs(bt,{className:"max-w-2xl",children:[n.jsxs(jt,{children:[n.jsx(Tt,{children:"API Endpoints"}),n.jsx(Xt,{children:"Access your agent results via these endpoints"})]}),!c,n.jsxs(Gt,{defaultValue:"json",className:"w-full",children:[n.jsxs(zt,{className:"grid w-full grid-cols-2",children:[n.jsx(he,{value:"json",children:"JSON"}),n.jsx(he,{value:"csv",children:"CSV"})]}),n.jsxs(ne,{value:"json",className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("label",{className:"text-sm font-medium",children:"Endpoint"}),n.jsx(I,{variant:"ghost",size:"sm",onClick:()=>d(l,"json"),className:"h-8",children:s==="json"?n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"mr-2 h-4 w-4"}),"Copied"]}):n.jsxs(n.Fragment,{children:[n.jsx(Mt,{className:"mr-2 h-4 w-4"}),"Copy"]})})]}),n.jsx("div",{className:"relative",children:n.jsx("pre",{className:"p-3 bg-muted rounded-md text-xs max-w-full overflow-auto whitespace-pre-wrap break-words",children:l})})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("label",{className:"text-sm font-medium",children:"Example cURL"}),n.jsx("div",{className:"relative",children:n.jsx("pre",{className:"p-3 bg-muted rounded-md text-xs max-w-full overflow-auto whitespace-pre-wrap break-words",children:`curl -X GET "${l}"`})}),n.jsx(I,{variant:"ghost",size:"sm",onClick:()=>d(`curl -X GET "${l}"`,"json-curl"),className:"h-8",children:s==="json-curl"?n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"mr-2 h-4 w-4"}),"Copied"]}):n.jsxs(n.Fragment,{children:[n.jsx(Mt,{className:"mr-2 h-4 w-4"}),"Copy cURL"]})})]}),n.jsx("div",{className:"pt-2",children:n.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary hover:underline inline-flex items-center",children:[n.jsx(ve,{className:"mr-1 h-3 w-3"}),"Open in new tab"]})})]}),n.jsxs(ne,{value:"csv",className:"space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("label",{className:"text-sm font-medium",children:"Endpoint"}),n.jsx(I,{variant:"ghost",size:"sm",onClick:()=>d(a,"csv"),className:"h-8",children:s==="csv"?n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"mr-2 h-4 w-4"}),"Copied"]}):n.jsxs(n.Fragment,{children:[n.jsx(Mt,{className:"mr-2 h-4 w-4"}),"Copy"]})})]}),n.jsx("div",{className:"relative",children:n.jsx("pre",{className:"p-3 bg-muted rounded-md text-xs max-w-full overflow-auto whitespace-pre-wrap break-words",children:a})})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("label",{className:"text-sm font-medium",children:"Example cURL"}),n.jsx("div",{className:"relative",children:n.jsx("pre",{className:"p-3 bg-muted rounded-md text-xs max-w-full overflow-auto whitespace-pre-wrap break-words",children:`curl -X GET "${a}"`})}),n.jsx(I,{variant:"ghost",size:"sm",onClick:()=>d(`curl -X GET "${a}"`,"csv-curl"),className:"h-8",children:s==="csv-curl"?n.jsxs(n.Fragment,{children:[n.jsx(Vt,{className:"mr-2 h-4 w-4"}),"Copied"]}):n.jsxs(n.Fragment,{children:[n.jsx(Mt,{className:"mr-2 h-4 w-4"}),"Copy cURL"]})})]}),n.jsx("div",{className:"pt-2",children:n.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary hover:underline inline-flex items-center",children:[n.jsx(ve,{className:"mr-1 h-3 w-3"}),"Open in new tab"]})})]})]})]})})}function _m({error:t}){switch(t){case"low_pages_credit":return n.jsxs(Zn,{variant:"destructive",className:"mt-2 items-center",children:[n.jsx(Gr,{className:"h-4 w-4"}),n.jsxs(er,{className:"flex items-center justify-between",children:[n.jsx("span",{children:"You have insufficient page credits to process this job. Please upgrade your plan."}),n.jsxs("div",{className:"flex gap-3",children:[n.jsx(I,{asChild:!0,size:"sm",variant:"outline",children:n.jsx(an,{to:"/billings/upgrade",children:"Upgrade"})}),n.jsx(I,{asChild:!0,size:"sm",variant:"link",className:"underline",children:n.jsxs(an,{to:"https://agenty.com/contact",target:"_blank",children:["Contact support"," ",n.jsx(ve,{className:"h-4 w-4"})]})})]})]})]});default:return n.jsxs(Zn,{variant:"destructive",className:"mt-2",children:[n.jsx(Gr,{className:"h-4 w-4"}),n.jsx(er,{children:t})]})}}function Im({agent:t,lastJob:r}){const{authUser:o}=gn(),s=na(),[i,c]=T.useState([]),[l,a]=T.useState(!0),[d,e]=T.useState(null),[f,p]=T.useState(null),u=f!=null&&f.compared_with?i.find(M=>M.id===f.compared_with)??null:null,{page:m,limit:y,offset:v,paged:h,setPage:j,setLimit:g,setPaged:x}=ra({defaultLimit:20}),b=T.useCallback(async(M=void 0)=>{if(r!=null&&r.agent_id){a(!0);try{const R=await K.list(`${Q.results}/${r.agent_id}`,{offset:v,limit:y,ts:M});if(R!=null&&R.result){const{result:H,...N}=R;c(H),x({total:N.total,returned:N.returned})}}catch(R){e(R.message)}finally{a(!1)}}},[v,y,x,r==null?void 0:r.agent_id]),O=T.useRef(null),w=T.useRef(0);T.useEffect(()=>{if(!r){a(!1);return}const M=O.current,R=!M||r.job_id!==M.job_id,H=M&&r.status!==M.status&&r.pages_processed>0,N=M&&r.pages_processed>M.pages_processed,L=w.current!==v;(R||H||N||L)&&(O.current=r,b(new Date().getTime()))},[r,v,b]);const S=async()=>
291{if(!r)return;if((o==null?void 0:o.plan)==="Free"){s.open();return}const M=U.loading("Downloading...");try{await K.download(`${Q.results}/${r.agent_id}`,{download:1},`agent_${t.agent_id}-result.csv`),U.success("Download completed successfully",{id:M})}catch(R){U.error(R.message,{id:M})}},_=()=>{b(new Date().getTime())};return n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between mb-3",children:[n.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Results"}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(I,{variant:"secondary",size:"sm",onClick:_,children:n.jsx(Js,{className:"h-4 w-4"})}),n.jsxs(I,{variant:"outline",size:"sm",onClick:S,children:[n.jsx(rn,{className:"h-4 w-4"}),"Download"]})]})]}),n.jsx("div",{className:"rounded-md border",children:n.jsxs(lr,{children:[n.jsx(dr,{children:n.jsxs(Be,{children:[n.jsx(Te,{className:"w-[80px]",children:"ID"}),n.jsx(Te,{className:"w-[80px] pl-4",children:"Screenshot"}),n.jsx(Te,{children:"Content"}),n.jsx(Te,{className:"w-[120px]",children:"Status"}),n.jsx(Te,{className:"w-[150px]",children:"Changes"}),n.jsx(Te,{className:"w-[180px]",children:"Timestamp"})]})}),n.jsxs(pr,{children:[l&&n.jsx(Be,{children:n.jsx(ce,{colSpan:6,className:"p-0 h-1",children:n.jsx("div",{className:"w-full h-1 bg-muted overflow-hidden",children:n.jsx("div",{className:"h-full bg-blue-600 w-full animate-pulse-fast"})})})}),i.length===0&&!l?n.jsx(Be,{children:n.jsx(ce,{colSpan:6,children:n.jsx("div",{className:"flex min-h-[400px] flex-col items-center justify-center p-8 text-center animate-in fade-in-50",children:n.jsx("h3",{className:"mb-2 text-lg font-semibold",children:d||(r?`Last job status: ${r.status}`:"No data available. Run or schedule this agent to get started")})})})}):i.map(M=>n.jsxs(Be,{className:"cursor-pointer",onClick:()=>p(M),children:[n.jsx(ce,{className:"font-mono text-xs",children:M.job_id}),n.jsx(ce,{className:"pl-4",children:M.thumbnail?n.jsx("img",{src:M.thumbnail,alt:"thumb",className:"h-[150px] w-[150px] rounded-md border shadow-sm"}):n.jsx("div",{className:"flex h-10 w-16 items-center justify-center rounded-md border bg-muted",children:n.jsx(zr,{className:"h-5 w-5 text-muted-foreground"})})}),n.jsx(ce,{className:"max-w-[300px] truncate text-sm",children:M.content}),n.jsx(ce,{children:n.jsx(De,{variant:"outline",className:Ni(M.status),children:M.status})}),n.jsx(ce,{children:M.is_changed?n.jsx(De,{variant:"default",children:M.changes}):M.is_changed===null?n.jsx("span",{className:"text-xs text-muted-foreground",children:"—"}):n.jsx("span",{className:"text-xs text-muted-foreground",children:"No changes"})}),n.jsx(ce,{className:"whitespace-nowrap",children:M.timestamp?Et(new Date(M.timestamp),"MMM d, yyyy HH:mm:ss"):"-"})]},M.id))]})]})}),n.jsx(oa,{paged:h,onPageChange:j,onLimitChange:g,currentPage:m}),n.jsx(xt,{open:!!f,onOpenChange:M=>!M&&p(null),children:n.jsxs(bt,{className:"sm:max-w-5xl",children:[n.jsxs(jt,{children:[n.jsxs(Tt,{children:["Change Details: #",f==null?void 0:f.id]}),n.jsx(Xt,{className:"flex items-center gap-1 truncate",children:n.jsxs("a",{href:f==null?void 0:f.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 truncate text-primary hover:underline",children:[n.jsx(ve,{className:"h-4 w-4 shrink-0"}),f==null?void 0:f.url]})})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[n.jsx(De,{variant:f!=null&&f.is_changed?"default":"secondary",children:f!=null&&f.is_changed?f.changes:"No changes"}),(f==null?void 0:f.is_triggered)&&n.jsx(De,{variant:"outline",children:"Triggered"}),(f==null?void 0:f.error)&&n.jsx(De,{variant:"destructive",children:f.error})]}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsxs("span",{className:"text-sm font-medium",children:["Current (#",f==null?void 0:f.id,")"]}),n.jsx("span",{className:"text-sm font-medium",children:f!=null&&f.timestamp?Et(new Date(f.timestamp),"MMM d, yyyy HH:mm:ss"):"-"})]}),n.jsx("div",{className:"rounded-md border bg-muted p-3 text-sm",children:(f==null?void 0:f.content)||n.jsx("span",{className:"text-muted-foreground",children:"No content"})}),(f==null?void 0:f.thumbnail)&&n.jsx("a",{href:f.screenshot,target:"_blank",rel:"noopener noreferrer",children:n.jsx("img",{src:f.thumbnail,alt:"Current screenshot",className:"w-full rounded-md border"})})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsx("span",{className:"text-sm font-medium",children:u?`Previous (#${u.id})`:"Previous"}),n.jsx("span",{className:"text-sm font-medium",children:u!=null&&u.timestamp?Et(new Date(u.timestamp),"MMM d, yyyy HH:mm:ss"):"-"})]}),u?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"rounded-md border bg-muted p-3 text-sm",children:u.content||n.jsx("span",{className:"text-muted-foreground",children:"No content"})}),u.thumbnail&&n.jsx("a",{href:u.screenshot,target:"_blank",rel:"noopener noreferrer",children:n.jsx("img",{src:u.thumbnail,alt:"Previous screenshot",className:"w-full rounded-md border"})})]}):n.jsxs("div",{className:"flex items-center justify-center rounded-md border border-dashed p-6 text-sm text-muted-foreground",children:[n.jsx(zr,{className:"mr-2 h-4 w-4"}),"No previous version to compare"]})]})]})]})]})})]})}const Lm=["Stores","Jobs","Investors","Startups","Companies","Softwares","Restaurants","Hotels"],Rm=[{name:"USA",code:"US"},{name:"UK",code:"GB"},{name:"France",code:"FR"},{name:"Canada",code:"CA"},{name:"Mexico",code:"MX"},{name:"India",code:"IN"},{name:"New Zealand",code:"NZ"},{name:"Australia",code:"AU"},{name:"Japan",code:"JP"},{name:"Germany",code:"DE"},{name:"Spain",code:"ES"},{name:"Italy",code:"IT"}],Go={title:"",brand:"",domain:"",dataset_type:"Stores",agent_id:"",icon:"",country:"US",price:0,categories:[],competitors:[],filter:[],variants:[]};function Bm({open:t,onOpenChange:r,store:o,onSuccess:s}){var de,Ae,Pe,Le;const[i,c]=T.useState(!1),[l,a]=T.useState(!0),[d,e]=T.useState(!1),[f,p]=T.useState(!1),[u,m]=T.useState("overview"),[y,v]=T.useState(null),[h,j]=T.useState(""),[g,x]=T.useState([]),[b,O]=T.useState(Go),w=T.useCallback(async()=>{try{const D=await K.list(Q.datasets+"/categories");D!=null&&D.categories&&x(D.categories)}catch{}},[]),S=T.useCallback(async D=>{try{const C=await K.list(`${Q.datasets}/${D}`,{competitor:1});C&&(O({...C,filter:Array.isArray(C.filter)?C.filter:C.filter&&typeof C.filter=="object"?Object.values(C.filter):[]}),j(C.icon||""))}catch{}finally{a(!1)}},[]);T.useEffect(()=>{t&&(w(),p(!1),m("overview"),v(null),o!=null&&o.agent_id?S(o.agent_id):(O(Go),j(""),a(!1)))},[t,o==null?void 0:o.agent_id,w,S]);const _=D=>{var z;const C=(z=D.target.files)==null?void 0:z[0];if(C){if(C.size>2*1024*1024){U.error("File size must be less than 2MB");return}v(C);const W=new FileReader;W.onloadend=()=>{j(W.result)}
291,W.readAsDataURL(C)}},M=async()=>{if(!y)return b.icon||null;e(!0);try{const D=new URL(b.domain).hostname;return(await K.upload(Q.upload,y,{folder:"logos",name:`logos/${D}.png`})).url}catch(D){return U.error(D.message),null}finally{e(!1)}},R=async D=>{D.preventDefault(),c(!0);try{let C=b.icon;if(y){const W=await M();if(!W){c(!1);return}C=W}const z={...b,categories:Array.isArray(b.categories)?b.categories.map(W=>typeof W=="object"?W.category_id:Number(W)):[],icon:C,updated_at:new Date().toISOString()};await K.post(Q.datasets,z),U.success("Dataset updated successfully"),s==null||s(),r(!1)}catch(C){U.error(C.message)}finally{c(!1)}},H=()=>{O({...b,competitors:[...b.competitors||[],{price:0,total:0,url:""}]})},N=(D,C,z)=>{const W=[...b.competitors||[]];W[D]={...W[D],[C]:z},O({...b,competitors:W})},L=D=>{var C;O({...b,competitors:(C=b.competitors)==null?void 0:C.filter((z,W)=>W!==D)})},G=()=>{O({...b,variants:[...b.variants||[],{title:"",price:0,total:0,filter:[]}]})},Z=(D,C,z)=>{const W=[...b.variants||[]];W[D]={...W[D],[C]:z},O({...b,variants:W})},se=D=>{var C;O({...b,variants:(C=b.variants)==null?void 0:C.filter((z,W)=>W!==D)})},re=D=>{const C=[...b.variants||[]];C[D]={...C[D],filter:[...C[D].filter||[],{key:"",value:""}]},O({...b,variants:C})},X=(D,C,z,W)=>{const pe=[...b.variants||[]],te=[...pe[D].filter||[]];te[C]={...te[C],[z]:W},pe[D]={...pe[D],filter:te},O({...b,variants:pe})},A=(D,C)=>{var W;const z=[...b.variants||[]];z[D]={...z[D],filter:(W=z[D].filter)==null?void 0:W.filter((pe,te)=>te!==C)},O({...b,variants:z})},Y=()=>{O({...b,filter:[...b.filter||[],{key:"",value:""}]})},q=(D,C,z)=>{const W=[...b.filter||[]];W[D]={...W[D],[C]:z},O({...b,filter:W})},ae=D=>{var C;O({...b,filter:(C=b.filter)==null?void 0:C.filter((z,W)=>W!==D)})};return n.jsx(mr,{open:t,onOpenChange:r,children:n.jsxs(fr,{className:"sm:max-w-2xl flex flex-col p-0",children:[n.jsx(hr,{className:"px-6 pt-6",children:n.jsx(yr,{children:"List to Marketplace"})}),l?n.jsx(on,{}):n.jsxs("form",{onSubmit:R,className:"flex flex-col flex-1 min-h-0",children:[n.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-4 pt-0 space-y-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"title",children:"Title*"}),n.jsx(F,{id:"title",value:b.title,onChange:D=>O({...b,title:D.target.value}),required:!0,minLength:10}),n.jsx("div",{className:"flex justify-end",children:n.jsxs(I,{type:"button",variant:"link",size:"sm",className:"p-0 text-xs text-muted-foreground h-auto",onClick:()=>
291p(!f),children:[f?"Hide":"Show"," additional fields"]})})]}),f&&n.jsxs("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/50",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"slug",children:"Slug"}),n.jsx(F,{id:"slug",value:b.slug,onChange:D=>O({...b,slug:D.target.value})})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"description",children:"Description"}),n.jsx($e,{id:"description",value:b.description,onChange:D=>O({...b,description:D.target.value}),rows:3})]})]}),n.jsxs(Gt,{value:u,onValueChange:m,className:"w-full",children:[n.jsxs(zt,{className:"grid w-full grid-cols-3",children:[n.jsx(he,{value:"overview",children:"Overview"}),n.jsx(he,{value:"variants",children:"Variants"}),n.jsx(he,{value:"competitors",children:"Competitors"})]}),n.jsxs(ne,{value:"overview",className:"space-y-4 mt-4",children:[n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"name",children:"Company/Brand Name"}),n.jsx(F,{id:"name",value:b.brand,onChange:D=>O({...b,brand:D.target.value})})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"domain",children:"Website*"}),n.jsx(F,{id:"domain",value:b.domain,onChange:D=>O({...b,domain:D.target.value}),required:!0,placeholder:"example.com"})]})]}),n.jsx("div",{className:"grid grid-cols-1 gap-4",children:n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"type",children:"Type*"}),n.jsxs(Fe,{value:b.dataset_type,onValueChange:D=>O({...b,dataset_type:D}),children:[n.jsx(He,{className:"w-full",children:n.jsx(We,{})}),n.jsx(Ge,{children:Lm.map(D=>n.jsx(ge,{value:D,children:D},D))})]})]})}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"logo",children:"Logo"}),n.jsxs("div",{className:"flex items-center gap-4",children:[h&&n.jsx("div",{className:"relative w-20 h-20 rounded-md overflow-hidden border",children:n.jsx("img",{src:h,alt:"Logo preview",width:80,height:80,className:"object-contain"})}),n.jsxs("div",{className:"flex-1",children:[n.jsx(F,{id:"logo",type:"file",accept:"image/*",onChange:_,className:"cursor-pointer"}),n.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Max size: 2MB. Supports: PNG, JPG, SVG"})]})]})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"country",children:"Country*"}),n.jsxs(Fe,{value:b.country,onValueChange:D=>O({...b,country:D}),children:[n.jsx(He,{className:"w-full",children:n.jsx(We,{})}),n.jsx(Ge,{children:Rm.map(D=>n.jsx(ge,{value:D.code,children:D.name},D.code))})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Categories*"}),n.jsx(tr,{options:g.map(D=>({label:D.name,value:String(D.category_id)})),defaultValue:((de=b.categories)==null?void 0:de.map(D=>String(typeof D=="number"?D:D.category_id)))??[],onValueChange:D=>{O({...b,categories:D.map(C=>parseInt(C))})},modalPopover:!0})]})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"price",children:"Price*"}),n.jsxs("div",{className:"flex",children:[n.jsx("span",{className:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-input bg-muted text-sm",children:"$"}),n.jsx(F,{id:"price",type:"number",value:b.price,onChange:D=>O({...b,price:Number(D.target.value)}),required:!0,className:"rounded-l-none"})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"old_price",className:"line-through",children:"Old Price"}),n.jsx(F,{id:"old_price",type:"number",value:b.old_price||"",onChange:D=>O({...b,old_price:Number(D.target.value)||void 0})})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Filters"}),n.jsx("div",{className:"space-y-2",children:(Ae=b.filter)==null?void 0:Ae.map((D,C)=>n.jsxs("div",{className:"flex gap-2",children:[n.jsx(F,{value:D.key,onChange:z=>q(C,"key",z.target.value),placeholder:"Key (e.g., country)",className:"flex-1"}),n.jsx(F,{value:D.value,onChange:z=>q(C,"value",z.target.value),placeholder:"Value (e.g., USA)",className:"flex-1"}
291),n.jsx(I,{type:"button",variant:"ghost",size:"icon",onClick:()=>ae(C),children:n.jsx(dt,{className:"h-4 w-4 text-destructive"})})]},C))}),n.jsxs(I,{type:"button",onClick:Y,variant:"outline",className:"w-full",children:[n.jsx(Ue,{className:"h-4 w-4 mr-2"}),"Add Filter"]})]})]}),n.jsxs(ne,{value:"variants",className:"space-y-4 mt-4",children:[n.jsx("div",{className:"space-y-4",children:(Pe=b.variants)==null?void 0:Pe.map((D,C)=>{var z;return n.jsxs("div",{className:"border rounded-lg p-4 space-y-4",children:[n.jsxs("div",{className:"flex justify-between items-start",children:[n.jsxs(k,{children:["Variant ",C+1]}),n.jsx(I,{type:"button",variant:"ghost",size:"icon",onClick:()=>se(C),children:n.jsx(dt,{className:"h-4 w-4 text-destructive"})})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Title*"}),n.jsx(F,{value:D.title,onChange:W=>Z(C,"title",W.target.value),placeholder:"Variant title"})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Price*"}),n.jsxs("div",{className:"flex",children:[n.jsx("span",{className:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-input bg-muted text-sm",children:"$"}),n.jsx(F,{type:"number",value:D.price,onChange:W=>Z(C,"price",Number(W.target.value)),className:"rounded-l-none"})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Total Items*"}),n.jsx(F,{type:"number",value:D.total,onChange:W=>Z(C,"total",Number(W.target.value))})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Filters"}),n.jsx("div",{className:"space-y-2",children:(z=D.filter)==null?void 0:z.map((W,pe)=>n.jsxs("div",{className:"flex gap-2",children:[n.jsx(F,{value:W.key,onChange:te=>X(C,pe,"key",te.target.value),placeholder:"Key (e.g., country)",className:"flex-1"}),n.jsx(F,{value:W.value,onChange:te=>X(C,pe,"value",te.target.value),placeholder:"Value (e.g., CA)",className:"flex-1"}
291),n.jsx(I,{type:"button",variant:"ghost",size:"icon",onClick:()=>A(C,pe),children:n.jsx(dt,{className:"h-4 w-4 text-destructive"})})]},pe))}),n.jsxs(I,{type:"button",onClick:()=>re(C),variant:"outline",size:"sm",className:"w-full",children:[n.jsx(Ue,{className:"h-4 w-4 mr-2"}),"Add Filter"]})]})]},C)})}),n.jsxs(I,{type:"button",onClick:G,variant:"outline",className:"w-full",children:[n.jsx(Ue,{className:"h-4 w-4 mr-2"}),"Add Variant"]})]}),n.jsxs(ne,{value:"competitors",className:"space-y-4 mt-4",children:[n.jsx("div",{className:"space-y-4",children:(Le=b.competitors)==null?void 0:Le.map((D,C)=>n.jsxs("div",{className:"border rounded-lg p-4 space-y-4",children:[n.jsxs("div",{className:"flex justify-between items-start",children:[n.jsxs(k,{children:["Competitor ",C+1]}),n.jsx(I,{type:"button",variant:"ghost",size:"icon",onClick:()=>L(C),children:n.jsx(dt,{className:"h-4 w-4 text-destructive"})})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Price*"}),n.jsxs("div",{className:"flex",children:[n.jsx("span",{className:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-input bg-muted text-sm",children:"$"}),n.jsx(F,{type:"number",value:D.price,onChange:z=>N(C,"price",Number(z.target.value)),className:"rounded-l-none"})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"Total Items*"}),n.jsx(F,{type:"number",value:D.total,onChange:z=>N(C,"total",Number(z.target.value))})]})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{children:"URL*"}),n.jsx(F,{type:"url",value:D.url,onChange:z=>N(C,"url",z.target.value),placeholder:"https://example.com/product"})]})]},C))}),n.jsxs(I,{type:"button",onClick:H,variant:"outline",className:"w-full",children:[n.jsx(Ue,{className:"h-4 w-4 mr-2"}),"Add Competitor"]})]})]})]}),n.jsx("div",{className:"sticky bottom-0 bg-background border-t px-6 py-4 mt-auto",children:n.jsxs("div",{className:"flex gap-2",children:[n.jsx(I,{t
291ype:"submit",disabled:i||d,children:i||d?n.jsxs(n.Fragment,{children:[n.jsx(Xe,{className:"h-4 w-4 mr-2 animate-spin"}),d?"Uploading...":"Saving..."]}):"Save"}),n.jsx(I,{type:"button",variant:"outline",onClick:()=>r(!1),disabled:i||d,children:"Cancel"})]})})]})]})})}function Fm({open:t,onOpenChange:r,defaultValues:o,onSubmit:s}){const[i,c]=T.useState((o==null?void 0:o.batching_size)??100),[l,a]=T.useState((o==null?void 0:o.concurrency)??1),[d,e]=T.useState((o==null?void 0:o.headless)??!0);function f(p){p.preventDefault(),s==null||s({batching_size:i,concurrency:l,headless:d})}return n.jsx(xt,{open:t,onOpenChange:r,children:n.jsxs(bt,{className:"sm:max-w-[500px]",children:[n.jsxs(jt,{children:[n.jsx(Tt,{children:"Agent Settings"}),n.jsx(Xt,{children:"Configure batching, concurrency, and headless mode for the agent."})]}),n.jsxs("form",{onSubmit:f,className:"space-y-6",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"batching-size",children:"Batching Size"}),n.jsx(F,{id:"batching-size",type:"number",min:1,max:1e4,value:i,onChange:p=>c(Number(p.target.value))}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Number of URLs to process in a single batch (1-10,000)."})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(k,{htmlFor:"concurrency",children:"Concurrency"}),n.jsx(F,{id:"concurrency",type:"number",min:1,max:100,value:l,onChange:p=>a(Number(p.target.value))}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Maximum number of parallel batches (1-100)."})]}),n.jsxs("div",{className:"flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm",children:[n.jsxs("div",{className:"space-y-0.5",children:[n.jsx(k,{htmlFor:"headless",children:"Headless Mode"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Run the browser in headless mode without a visible UI."})]}),n.jsx(ee,{id:"headless",checked:d,onCheckedChange:e})]}),n.jsx(yn,{children:n.jsx(I,{type:"submit",children:"Save changes"})})]})]})})}function af(){var W,pe,te;const{id:t}=li(),r=di(),{pathname:o}=pi(),{authUser:s}=gn(),[i,c]=T.useState(!1),[l,a]=T.useState(!0),[d,e]=T.useState(!1),[f,p]=T.useState(!1),[u,m]=T.useState(!1),[y,v]=T.useState(!1),[h,j]=T.useState(null),[g,x]=T.useState(null),[b,O]=T.useState(!1),[w,S]=T.useState(!1),[_,M]=T.useState(!1),[R,H]=T.useState([]),N=R[0],L=N&&!N.completed_at,G=T.useRef(null),Z=5e3,se=7e3,{onEventReceived:re,joinRoom:X}=Oi(),A=T.useCallback(async()=>{try{const P=await K.get(Q.agents,t);if(P){const $=`/agents/${P.type}/${P.agent_id}`;o!==$&&r($,{replace:!0})}P&&j(P),P&&s&&P.account_id!==s.account_id&&s.level&&X(`agent:${t}`)}catch{}},[s,t,X,r,o]),Y=T.useCallback(async()=>{try{const P=await K.list(Q.jobs,{agent_id:t});P!=null&&P.result&&H(P.result)}catch{}},[t]);T.useEffect(()=>{(async()=>{await Promise.all([A(),Y()]),a(!1)})()},[A,Y]),T.useEffect(()=>{if(!L)return;const P=re(wi.jobProgress,$=>{!$||$.agent_id!==t||(G.current&&(clearInterval(G.current),G.current=null),H(ze=>ze.map(_e=>_e.job_id===$.job_id?{..._e,...$}:_e)))});return()=>{P==null||P()}},[t,L,re]),T.useEffect(()=>{if(!L||!t||!(N!=null&&N.job_id))return;const P=()=>{G.current&&(clearInterval(G.current),G.current=null)},$=()=>{G.current||(G.current=setInterval(async()=>{try{const _e=await K.get(Q.jobs,N.job_id);H(Hr=>Hr.map(Sn=>Sn.job_id===_e.job_id?{...Sn,..._e}:Sn)),_e.completed_at&&P()}catch(_e){console.error("Polling failed",_e)}},Z))},ze=setInterval(()=>{const _e=N.updated_at?new Date(N.updated_at).getTime():0;Date.now()-_e>se?$():P()},2e3);return()=>{P(),clearInterval(ze)}},[t,L,N==null?void 0:N.job_id,N==null?void 0:N.updated_at]);const q=async()=>{x("job");try{if(L){const P=await K.list(`${Q.jobs}/${N.job_id}/stop`);H($=>$.map(ze=>ze.job_id===P.job_id?{...ze,...P}:ze))}else{const P=await K.post(Q.jobs+"/start",{agent_id:t});H($=>[{...P,pages_processed:0,pages_total:0},...$])}U.success(L?"The agent has been stopped successfully.":"The agent has started running.")}catch(P){U.error(P.message)}finally{x(null)}},ae=async()=>{try{await K.delete(Q.agents,t),U.success("The agent has been deleted successfully."),e(!1),r("/agents")}catch(P){U.error(P.message)}},de=async P=>{x("config");try{await K.put(Q.agents,t,{...h,config:P,input:void 0,scripts:void 0}),U.success("Agent updated successfully")}catch($){U.error($.message)}finally{x(null)}},Ae=async P=>{x("config");try{j($=>({...$,name:P.name,description:P.description,tags:P.tags})),await K.patch(Q.agents,t,{name:P.name,description:P.description,tags:P.tags}),U.success("The agent has been updated successfully."),p(!1)}catch($){U.error($.message)}finally{x(null)}},Pe=P=>{j($=>({...$,scripts:P})),U.success("Scripts updated successfully.")},Le=async P=>{x("schedule");try{const $=await K.put(Q.scheduler,t,{expression:P,type:"cron"});j(ze=>({...ze,...$})),U.success("The agent has been scheduled successfully."),m(!1)}catch($){U.error($.message)}finally{x(null)}},D=async P=>{try{await K.put(Q.agents,t+"/settings",{...P}),j($=>({...$,settings:P})),U.success("The agent settings have been updated successfully."),M(!1)}catch($){U.error($.message)}finally{x(null)}},C=async()=>
291{if(!(h!=null&&h.scheduler))return;const P=!h.scheduler.is_enabled;try{await K.patch(Q.scheduler,t,{is_enabled:P}),j($=>({...$,scheduler:{...$.scheduler,is_enabled:P}})),U.success(P?"The agent has been scheduled successfully.":"The agent schedule has been disabled.")}catch($){U.error(($==null?void 0:$.message)??"Failed to update schedule")}finally{x(null)}},z=async()=>{if(h!=null&&h.scheduler)try{await K.delete(Q.scheduler,t),j(P=>({...P,scheduler:null})),U.success("The agent schedule deleted successfully")}catch(P){U.error((P==null?void 0:P.message)??"Failed to update schedule")}finally{x(null)}};return l?n.jsx(on,{}):h?n.jsxs(xe,{className:"relative overflow-hidden",children:[h.dataset_type&&n.jsx("div",{className:"absolute left-[-42px] top-[20px] z-10 -rotate-45 bg-amber-500 px-12 py-1 text-[10px] font-bold tracking-wider text-black shadow-lg",children:"MARKETPLACE"}),n.jsxs(be,{className:"space-y-6",children:[n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex items-start gap-4",children:[n.jsx("img",{src:h.icon,alt:h.name,className:"h-12 w-12 rounded-full border p-2",onError:P=>{P.target.src="https://www.google.com/s2/favicons?domain=example.com&sz=32"}}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("h1",{className:"text-xl font-semibold",children:h.name}),n.jsx(I,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>p(!0),children:n.jsx(Ur,{className:"h-4 w-4"})})]}),h.description&&n.jsx("p",{className:"text-sm text-muted-foreground",children:h.description}),n.jsxs("div",{className:"flex flex-col gap-y-2 text-xs text-muted-foreground",children:[n.jsxs("button",{onClick:()=>O(!0),className:"flex items-center gap-1.5 hover:text-foreground transition-colors",children:[n.jsx($r,{className:"h-3.5 w-3.5"}),n.jsx("span",{className:"font-medium",children:"JSON | CSV"})]}),((W=h.config)==null?void 0:W.url)&&n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(Qs,{className:"h-3.5 w-3.5"}),n.jsx("span",{className:"font-medium",children:"SOURCE URL:"}),n.jsx("a",{href:h.config.url,target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors max-w-[400px] truncate",title:h.config.url,children:h.config.url})]}),n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(Zs,{className:"h-3.5 w-3.5"}),n.jsx("span",{className:"font-medium",children:"NEXT SCHEDULED RUN:"}),h.scheduler&&h.next_scheduled_run_at?n.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[n.jsxs("button",{onClick:()=>m(!0),className:"hover:text-foreground transition-colors space-x-2 text-left",children:[n.jsx("span",{className:Re(!h.scheduler.is_enabled&&"line-through"),children:new Date(h.next_scheduled_run_at).toLocaleString()}),n.jsxs("span",{className:Re(!h.scheduler.is_enabled&&"line-through"),children:["(",h.scheduler.description,")"]})]}),n.jsxs(pt,{children:[n.jsx(mt,{asChild:!0,children:n.jsx("button",{className:"p-1 hover:bg-accent rounded transition-colors ml-auto","aria-label":"Schedule options",children:n.jsx(Yr,{className:"h-4 w-4"})})}),n.jsxs(ft,{align:"end",children:[n.jsx(je,{onClick:C,children:h.scheduler.is_enabled?n.jsxs(n.Fragment,{children:[n.jsx(ei,{className:"h-4 w-4 mr-2"}),"Disable Schedule"]}):n.jsxs(n.Fragment,{children:[n.jsx(ti,{className:"h-4 w-4 mr-2"}),"Enable Schedule"]})}),n.jsxs(je,{onClick:()=>m(!0),children:[n.jsx(Ur,{className:"h-4 w-4 mr-2"}),"Change Schedule"]}),n.jsx(ct,{}),n.jsxs(je,{onClick:z,className:"text-destructive",children:[n.jsx(dt,{className:"h-4 w-4 mr-2"}),"Delete Schedule"]})]})]})]}):n.jsx("button",{onClick:()=>m(!0),className:"text-primary hover:underline",children:"Schedule this agent"})]}),(N==null?void 0:N.created_at)&&n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(Vr,{className:"h-3.5 w-3.5"}),n.jsx("span",{className:"font-medium",children:"LAST RUN:"}),n.jsxs("span",{className:"hover:text-foreground transition-colors",children:[Bs(new Date(N.created_at),{addSuffix:!0}
291)," ","at ",new Date(N.created_at).toLocaleString()]})]})]})]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(I,{variant:L?"destructive":"default",onClick:q,children:L?n.jsxs(n.Fragment,{children:[g==="job"?n.jsx(Xe,{className:"mr-2 h-4 w-4 animate-spin"}):n.jsx(ni,{className:"mr-2 h-4 w-4"}),"Stop"]}):n.jsxs(n.Fragment,{children:[g==="job"?n.jsx(Xe,{className:"mr-2 h-4 w-4 animate-spin"}):n.jsx(ri,{className:"mr-2 h-4 w-4"}),"Run"]})}),n.jsxs(pt,{modal:!1,children:[n.jsx(mt,{asChild:!0,children:n.jsxs(I,{variant:"outline",children:["MANAGE THIS AGENT",n.jsx(Yr,{className:"ml-2 h-4 w-4"})]})}),n.jsxs(ft,{align:"end",children:[n.jsxs(je,{onClick:()=>m(!0),children:[n.jsx(Vr,{className:"mr-2 h-4 w-4"}),"Schedule"]}),n.jsxs(je,{onClick:()=>S(!0),children:[n.jsx(Mt,{className:"mr-2 h-4 w-4"}),"Make a copy"]}),n.jsx(ct,{}),n.jsxs(je,{onClick:()=>v(!0),children:[n.jsx(oi,{className:"mr-2 h-4 w-4"}),"Transfer ownership"]}),n.jsx(ct,{}),(s==null?void 0:s.level)&&n.jsxs(n.Fragment,{children:[n.jsxs(je,{onClick:()=>c(!0),children:[n.jsx(ai,{className:"mr-2 h-4 w-4"}),"List to Marketplace"]}),n.jsx(ct,{})]}),(s==null?void 0:s.level)==="Level3"&&n.jsxs(n.Fragment,{children:[n.jsxs(je,{onClick:()=>M(!0),children:[n.jsx(qr,{className:"mr-2 h-4 w-4"}),"Concurrency Settings"]}),n.jsx(ct,{})]}),n.jsxs(je,{className:"text-destructive",onClick:()=>e(!0),children:[n.jsx(_t,{className:"mr-2 h-4 w-4"}),"Delete"]})]})]})]})]}),N&&n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("span",{className:"text-sm text-muted-foreground",children:["JOB #",N.job_id]}),n.jsx(vr,{status:N.status,error:N.error}),n.jsxs("span",{className:"text-sm text-muted-foreground",children:["(Processed ",N.pages_processed," of"," ",Math.max(N.pages_processed,N.pages_total),")"]})]}),n.jsxs("span",{className:"text-sm font-medium",children:[Math.min(100,Math.round(N.pages_processed/N.pages_total*100)),"%"]})]}),n.jsx(Fs,{value:N.pages_processed/N.pages_total*100,className:"h-2"}),N.error&&n.jsx(_m,{error:N.error})]}),n.jsxs(Gt,{defaultValue:"results",className:"space-y-4",children:[n.jsxs(zt,{className:"w-full justify-start",children:[n.jsxs(he,{value:"results",className:"gap-2",children:[n.jsx(si,{className:"h-4 w-4"}),"Result"]}),(h.type==="scraping"||h.type==="crawling")&&n.jsxs(he,{value:"input",className:"gap-2",children:[n.jsx(ea,{className:"h-4 w-4"}),"Input"]}),h.config&&n.jsxs(he,{value:"config",className:"gap-2",children:[n.jsx(qr,{className:"h-4 w-4"}),"Config"]}),n.jsxs(he,{value:"logs",className:"gap-2",children:[n.jsx(ii,{className:"h-4 w-4"}),"Logs"]}),(h.type==="scraping"||h.type==="crawling")&&n.jsxs(he,{value:"history",className:"gap-2",children:[n.jsx(ui,{className:"h-4 w-4"}),"History"]}),(h.type==="scraping"||h.type==="crawling")&&n.jsxs(he,{value:"scripting",className:"gap-2",children:[n.jsx($r,{className:"h-4 w-4"}),"Scripting"]}),n.jsxs(he,{value:"api",className:"gap-2",children:[n.jsx(ci,{className:"h-4 w-4"}),"Api Docs"]})]}),n.jsx(ne,{value:"results",children:h.type==="changedetection"?n.jsx(Im,{agent:h,lastJob:N}):n.jsx(vs,{agent:h,lastJob:N})}),n.jsx(ne,{value:"input",children:n.jsx(im,{agent:h,onChange:P=>{j($=>({...$,config:P}))}})}),n.jsx(ne,{value:"config",children:n.jsx(sm,{config:h.config,onChange:P=>{j($=>({...$,config:P}))},onSubmit:de,agentType:h.type,isSubmitting:g==="config"})}),n.jsx(ne,{value:"logs",children:n.jsx(um,{jobs:R})}),n.jsx(ne,{value:"history",children:n.jsx(cm,{agent:h,jobs:R})}),n.jsx(ne,{value:"scripting",children:n.jsx(hm,{agentId:h.agent_id,scripts:h.scripts,onChange:Pe})}),n.jsx(ne,{value:"api",children:n.jsx(fm,{agentId:h.agent_id})})]}),n.jsx(fi,{open:d,onOpenChange:e,title:"Delete Agent",description:"Are you sure you want to delete this agent? This action cannot be undone.",onConfirm:ae,confirmLabel:"Delete",variant:"destructive"}),n.jsx(pm,{open:f,onOpenChange:p,onSubmit:Ae,defaultValues:{name:h.name,description:h.description||"",tags:h.tags||[]},isSubmitting:g==="config"}),n.jsx(Cm,{open:u,onOpenChange:m,onSubmit:Le,isSubmitting:g==="schedule"}),n.jsx(Am,{open:y,onOpenChange:v,agent:h}),n.jsx(Pm,{open:b,onOpenChange:O,agentId:h.agent_id}),n.jsx(Xi,{open:w,onOpenChange:S,agent:h}),n.jsx(Fm,{open:_,onOpenChange:M,defaultValues:h.settings,onSubmit:D}),(s==null?void 0:s.level)&&n.jsx(Bm,{open:i,onOpenChange:c,store:{agent_id:h.agent_id,title:h.name,dataset_type:"Stores",domain:(pe=h.config)==null?void 0:pe.url,icon:(te=h.icon)!=null&&te.includes("agenty.com")?h.icon:void 0}})]})]}):n.jsx(mi,{})}export{af as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.