mage-ai 0.8.47__py3-none-any.whl → 0.8.49__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mage-ai might be problematic. Click here for more details.

Files changed (101) hide show
  1. mage_ai/api/resources/DataProviderResource.py +13 -1
  2. mage_ai/data_preparation/git/__init__.py +1 -1
  3. mage_ai/data_preparation/models/block/__init__.py +5 -0
  4. mage_ai/data_preparation/models/block/sql/__init__.py +68 -8
  5. mage_ai/data_preparation/models/block/sql/clickhouse.py +38 -0
  6. mage_ai/data_preparation/models/block/utils.py +4 -2
  7. mage_ai/data_preparation/models/file.py +4 -3
  8. mage_ai/data_preparation/models/pipeline.py +36 -3
  9. mage_ai/data_preparation/templates/repo/io_config.yaml +12 -0
  10. mage_ai/io/base.py +1 -0
  11. mage_ai/io/clickhouse.py +237 -0
  12. mage_ai/io/config.py +19 -0
  13. mage_ai/io/io_config.py +1 -0
  14. mage_ai/io/snowflake.py +0 -1
  15. mage_ai/io/sql.py +4 -1
  16. mage_ai/server/constants.py +1 -1
  17. mage_ai/server/frontend_dist/404.html +2 -2
  18. mage_ai/server/frontend_dist/404.html.html +2 -2
  19. mage_ai/server/frontend_dist/_next/static/I2bRLK9B7Lap2LvCicTKv/_buildManifest.js +1 -0
  20. mage_ai/server/frontend_dist/_next/static/chunks/{2249-50d2156ae3ce5933.js → 2249-59feb0a0585ef7c1.js} +1 -1
  21. mage_ai/server/frontend_dist/_next/static/chunks/2407-35c362852abff411.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/2524-ecbe3dd70d06cbe4.js +1 -0
  23. mage_ai/server/frontend_dist/_next/static/chunks/{3014-26ba07eb6a78e31c.js → 3014-a01e16bc067500ad.js} +1 -1
  24. mage_ai/server/frontend_dist/_next/static/chunks/{4506-ce5fa63b65f6fa5f.js → 4506-a3c53b0033972626.js} +1 -1
  25. mage_ai/server/frontend_dist/_next/static/chunks/4741-5fbecd08232ba3f9.js +1 -0
  26. mage_ai/server/frontend_dist/_next/static/chunks/{5477-793cd2120261d023.js → 5477-b439f211b6146a11.js} +1 -1
  27. mage_ai/server/frontend_dist/_next/static/chunks/5716-c5952e5ca9c8e139.js +1 -0
  28. mage_ai/server/frontend_dist/_next/static/chunks/{5872-103815a4a043489b.js → 5872-1767c45ee6690ae5.js} +1 -1
  29. mage_ai/server/frontend_dist/_next/static/chunks/{5896-f84e336fb8877027.js → 5896-10a676bcc86978cc.js} +1 -1
  30. mage_ai/server/frontend_dist/_next/static/chunks/{6166-5fc2768ef661e7da.js → 6166-97cb3cc7d00d645c.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/{6532-b0fd357eb359c127.js → 6532-5f86e9e1f32adf3a.js} +1 -1
  32. mage_ai/server/frontend_dist/_next/static/chunks/{7400-acab00d6265bd4dc.js → 7400-033fb12e7c46f62e.js} +1 -1
  33. mage_ai/server/frontend_dist/_next/static/chunks/{9832-c8b8970bb522f302.js → 9832-f97919376d52e3bf.js} +1 -1
  34. mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-96c89b2a2689f80c.js → manage-8a7b2b707c7038fb.js} +1 -1
  35. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-294eccc0163c80a1.js → pipeline-runs-832218136947bf56.js} +1 -1
  36. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-c48a45cea6df6192.js +1 -0
  37. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-dd637dcb042ff771.js +1 -0
  38. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5541c3e13297ddbc.js +1 -0
  39. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-0e6935a2b7f8e1ed.js → logs-caa9fade2bc783b9.js} +1 -1
  40. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-0e02bcdfcd533830.js → block-runs-1b44f28966826dbe.js} +1 -1
  41. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runtime-baf8bb6da01976db.js → block-runtime-44029312dc580504.js} +1 -1
  42. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-d42158676a75b451.js → monitors-9b46466e066d6372.js} +1 -1
  43. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4049561456ea2314.js → [run]-5f78885afc7758df.js} +1 -1
  44. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-bebeee2854c734fc.js → runs-43f2c1658cd3d03d.js} +1 -1
  45. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{settings-b95afd173fb265df.js → settings-8fb53eb8dd0267e1.js} +1 -1
  46. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-e46a9b03e0fff91a.js → syncs-c92351b1a81f7a13.js} +1 -1
  47. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-6a95567766a1d00e.js → [...slug]-ca76f5938bdff8a7.js} +1 -1
  48. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-c259bd9d385404fa.js → triggers-4e9518882c8730b1.js} +1 -1
  49. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-0900be641ce4e6ec.js → pipelines-c46347f0308ab09a.js} +1 -1
  50. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-25735fdf80f95015.js → preferences-45c40fb24c8a5139.js} +1 -1
  51. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-abfaa2b15eef72a0.js → sync-data-6e80afa0c9b90cdf.js} +1 -1
  52. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-5d0c51213b9bba8e.js → users-12a90f932ff4fc9d.js} +1 -1
  53. mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-24eb5df948cc9a7e.js → terminal-cc54b4d4e5295101.js} +1 -1
  54. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-bd801bde63db7c9e.js +1 -0
  55. mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-6ff85ea842bde8c2.js → triggers-08774e473ea4a96b.js} +1 -1
  56. mage_ai/server/frontend_dist/index.html +2 -2
  57. mage_ai/server/frontend_dist/manage.html +2 -2
  58. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  59. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  60. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  61. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  62. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  63. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  64. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  65. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  66. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  67. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  68. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  69. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  70. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  71. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  72. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  73. mage_ai/server/frontend_dist/pipelines.html +2 -2
  74. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  75. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  76. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  77. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  78. mage_ai/server/frontend_dist/settings.html +2 -2
  79. mage_ai/server/frontend_dist/sign-in.html +2 -2
  80. mage_ai/server/frontend_dist/terminal.html +2 -2
  81. mage_ai/server/frontend_dist/test.html +3 -3
  82. mage_ai/server/frontend_dist/triggers.html +2 -2
  83. mage_ai/server/utils/output_display.py +1 -3
  84. mage_ai/server/websocket_server.py +0 -1
  85. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/METADATA +4 -1
  86. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/RECORD +92 -90
  87. mage_ai/server/frontend_dist/_next/static/chunks/2083-78a438dbdc57d1e4.js +0 -1
  88. mage_ai/server/frontend_dist/_next/static/chunks/2524-6aeb9419acf5d1b4.js +0 -1
  89. mage_ai/server/frontend_dist/_next/static/chunks/4538-8a3c3e47be976ede.js +0 -1
  90. mage_ai/server/frontend_dist/_next/static/chunks/4741-acfe40cf3b06659e.js +0 -1
  91. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-e512333242e02c60.js +0 -1
  92. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-774dd41941497640.js +0 -1
  93. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-c6179a9e737009c9.js +0 -1
  94. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-85cf18ae78ff535c.js +0 -1
  95. mage_ai/server/frontend_dist/_next/static/xTScbs8HLliQCDHzVPx5E/_buildManifest.js +0 -1
  96. /mage_ai/server/frontend_dist/_next/static/{xTScbs8HLliQCDHzVPx5E → I2bRLK9B7Lap2LvCicTKv}/_middlewareManifest.js +0 -0
  97. /mage_ai/server/frontend_dist/_next/static/{xTScbs8HLliQCDHzVPx5E → I2bRLK9B7Lap2LvCicTKv}/_ssgManifest.js +0 -0
  98. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/LICENSE +0 -0
  99. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/WHEEL +0 -0
  100. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/entry_points.txt +0 -0
  101. {mage_ai-0.8.47.dist-info → mage_ai-0.8.49.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3014],{1210:function(e,n,t){t.d(n,{Z:function(){return P}});var i=t(82394),r=t(21831),u=t(82684),l=t(47999),o=t(28358),c=t(93461),s=t(57384),d=t(12344),a=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(a.HS,{ref:n,children:t})}var h=u.forwardRef(p),v=t(32063),g=t(15270),j=t(82531),_=t(66166),b=t(3055),Z=t(49125),x=t(91427),m=t(24141);function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,i=e.afterHidden,p=e.afterWidth,E=e.afterWidthOverride,P=e.before,y=e.beforeWidth,O=e.breadcrumbs,I=e.children,k=e.errors,A=e.headerMenuItems,w=e.navigationItems,T=e.setErrors,S=e.subheaderChildren,N=e.title,R=e.uuid,D=(0,m.i)().width,M="dashboard_after_width_".concat(R),H="dashboard_before_width_".concat(R),V=(0,u.useRef)(null),q=(0,u.useState)(E?p:(0,x.U2)(M,p)),B=q[0],L=q[1],z=(0,u.useState)(!1),W=z[0],U=z[1],Y=(0,u.useState)(P?Math.max((0,x.U2)(H,y),13*Z.iI):null),F=Y[0],J=Y[1],K=(0,u.useState)(!1),X=K[0],G=K[1],Q=(0,u.useState)(null)[1],$=j.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];O?ne.push.apply(ne,(0,r.Z)(O)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,u.useEffect)((function(){null===V||void 0===V||!V.current||W||X||null===Q||void 0===Q||Q(V.current.getBoundingClientRect().width)}),[W,B,X,F,V,Q,D]),(0,u.useEffect)((function(){W||(0,x.t8)(M,B)}),[i,W,B,M]),(0,u.useEffect)((function(){X||(0,x.t8)(H,F)}),[X,F,H]);var te=(0,_.Z)(p);return(0,u.useEffect)((function(){E&&te!==p&&L(p)}),[E,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:N}),(0,f.jsx)(d.Z,{breadcrumbs:ne,menuItems:A,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(a.Nk,{children:[0!==(null===w||void 0===w?void 0:w.length)&&(0,f.jsx)(a.lm,{children:(0,f.jsx)(g.Z,{navigationItems:w})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:t,afterHeightOffset:b.Mz,afterHidden:i,afterMousedownActive:W,afterWidth:B,before:P,beforeHeightOffset:b.Mz,beforeMousedownActive:X,beforeWidth:a.k1+(P?F:0),hideAfterCompletely:!0,leftOffset:P?a.k1:null,mainContainerRef:V,setAfterMousedownActive:U,setAfterWidth:L,setBeforeMousedownActive:G,setBeforeWidth:J,children:[S&&(0,f.jsx)(h,{children:S}),I]})})]}),k&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,f.jsx)(o.Z,C(C({},k),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},97225:function(e,n,t){var i=t(75582),r=t(12691),u=t.n(r),l=t(82684),o=t(83455),c=t(34376),s=t(60328),d=t(47999),a=t(67971),f=t(10919),p=t(93348),h=t(62609),v=t(86673),g=t(58180),j=t(19711),_=t(82531),b=t(10503),Z=t(49125),x=t(45838),m=t(9736),E=t(96510),C=t(66653),P=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,r=e.includeCreatedAtColumn,y=e.includePipelineColumn,O=e.pipeline,I=e.pipelineSchedules,k=e.selectedSchedule,A=e.setErrors,w=e.setSelectedSchedule,T=e.stickyHeader,S=null===O||void 0===O?void 0:O.uuid,N=(0,c.useRouter)(),R=(0,l.useRef)({}),D=(0,l.useState)(null),M=D[0],H=D[1],V=(0,l.useState)(0),q=V[0],B=V[1],L=(0,l.useState)(0),z=L[0],W=L[1],U=(0,o.Db)((function(e){return _.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),Y=(0,i.Z)(U,1)[0],F=(0,o.Db)((function(e){return _.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){n(),S?N.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(S,"/triggers")):n()},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),J=(0,i.Z)(F,1)[0],K=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,m.Ct)()||K.push({label:function(){return""},uuid:"edit/delete"});var X=[null,1,1,3,1,null,null,null,null];return y&&(K.splice(2,0,{uuid:"Pipeline"}),X.splice(2,0,2)),r&&(K.splice(3,0,{uuid:"Created at"}),X.splice(3,0,null)),(0,P.jsx)(x.cl,{overflowVisible:!0,children:0===I.length?(0,P.jsx)(v.Z,{px:3,py:1,children:(0,P.jsx)(j.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(g.Z,{columnFlex:X,columns:K,highlightRowOnHover:t,isSelectedRow:function(e){return I[e].id===(null===k||void 0===k?void 0:k.id)},onClickRow:w?function(e){return null===w||void 0===w?void 0:w(I[e])}:null,rowVerticalPadding:6,rows:I.map((function(e,n){var t,i=e.id,o=e.created_at,c=e.pipeline_runs_count,g=e.pipeline_uuid,_=e.last_pipeline_run_status,x=e.name,E=e.schedule_interval,O=e.status,I=S||g;R.current[i]=(0,l.createRef)();var k=[(0,P.jsx)(s.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,C.j)(n),Y({id:e.id,status:p.fq.ACTIVE===O?p.fq.INACTIVE:p.fq.ACTIVE})},children:p.fq.ACTIVE===O?(0,P.jsx)(b.dz,{muted:!0,size:2*Z.iI}):(0,P.jsx)(b.Py,{default:!0,size:2*Z.iI})},"toggle_trigger_".concat(n)),(0,P.jsx)(j.ZP,{default:p.fq.INACTIVE===O,monospace:!0,success:p.fq.ACTIVE===O,children:O},"trigger_status_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:null===(t=p.Z4[e.schedule_type])||void 0===t?void 0:t.call(p.Z4)},"trigger_type_".concat(n)),(0,P.jsx)(u(),{as:"/pipelines/".concat(I,"/triggers/").concat(i),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(f.Z,{bold:!0,onClick:function(e){(0,C.j)(e),N.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(I,"/triggers/").concat(i))},sameColorAsText:!0,children:x})},"trigger_name_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:E},"trigger_frequency_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:c},"trigger_run_count_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:_||"N/A"},"latest_run_status_".concat(n)),(0,P.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(I,"/logs?pipeline_schedule_id[]=").concat(i))},children:(0,P.jsx)(b.B4,{default:!0,size:2*Z.iI})},"logs_button_".concat(n))];return(0,m.Ct)()||k.push((0,P.jsxs)(a.Z,{children:[(0,P.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(I,"/triggers/").concat(i,"/edit"))},title:"Edit",children:(0,P.jsx)(b.I8,{default:!0,size:2*Z.iI})}),(0,P.jsx)(v.Z,{mr:1}),(0,P.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,r;H(i),B((null===(e=R.current[i])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),W((null===(t=R.current[i])||void 0===t||null===(r=t.current)||void 0===r?void 0:r.offsetLeft)||0)},ref:R.current[i],title:"Delete",children:(0,P.jsx)(b.rF,{default:!0,size:2*Z.iI})}),(0,P.jsx)(d.Z,{onClickOutside:function(){return H(null)},open:M===i,children:(0,P.jsx)(h.Z,{danger:!0,left:(z||0)-286,onCancel:function(){return H(null)},onClick:function(){H(null),J(i)},title:"Are you sure you want to delete the trigger ".concat(x,"?"),top:(q||0)-(n<=1?40:96),width:40*Z.iI})})]},"edit_delete_buttons_".concat(n))),y&&k.splice(2,0,(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:I},"pipeline_name_".concat(n))),r&&k.splice(3,0,(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:o},"created_at_".concat(n))),k})),stickyHeader:T,uuid:"pipeline-triggers"})})}},93348:function(e,n,t){t.d(n,{TR:function(){return a},U5:function(){return c},Xm:function(){return u},Z4:function(){return d},fq:function(){return o},kJ:function(){return s}});var i,r,u,l=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(u||(u={}));var o,c,s,d=(i={},(0,l.Z)(i,u.API,(function(){return"API"})),(0,l.Z)(i,u.EVENT,(function(){return"event"})),(0,l.Z)(i,u.TIME,(function(){return"schedule"})),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(o||(o={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(c||(c={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var a=(r={},(0,l.Z)(r,s.CREATED_AT,"Created at"),(0,l.Z)(r,s.NAME,"Name"),(0,l.Z)(r,s.PIPELINE,"Pipeline"),(0,l.Z)(r,s.STATUS,"Status"),(0,l.Z)(r,s.TYPE,"Type"),r)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3014],{1210:function(e,n,t){t.d(n,{Z:function(){return P}});var i=t(82394),r=t(21831),u=t(82684),l=t(47999),o=t(49894),c=t(93461),s=t(57384),d=t(12344),a=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(a.HS,{ref:n,children:t})}var h=u.forwardRef(p),v=t(32063),g=t(15270),j=t(82531),_=t(66166),b=t(3055),Z=t(49125),x=t(91427),m=t(24141);function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,i=e.afterHidden,p=e.afterWidth,E=e.afterWidthOverride,P=e.before,y=e.beforeWidth,O=e.breadcrumbs,I=e.children,k=e.errors,A=e.headerMenuItems,w=e.navigationItems,T=e.setErrors,S=e.subheaderChildren,N=e.title,R=e.uuid,D=(0,m.i)().width,M="dashboard_after_width_".concat(R),H="dashboard_before_width_".concat(R),V=(0,u.useRef)(null),q=(0,u.useState)(E?p:(0,x.U2)(M,p)),B=q[0],L=q[1],z=(0,u.useState)(!1),W=z[0],U=z[1],Y=(0,u.useState)(P?Math.max((0,x.U2)(H,y),13*Z.iI):null),F=Y[0],J=Y[1],K=(0,u.useState)(!1),X=K[0],G=K[1],Q=(0,u.useState)(null)[1],$=j.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];O?ne.push.apply(ne,(0,r.Z)(O)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,u.useEffect)((function(){null===V||void 0===V||!V.current||W||X||null===Q||void 0===Q||Q(V.current.getBoundingClientRect().width)}),[W,B,X,F,V,Q,D]),(0,u.useEffect)((function(){W||(0,x.t8)(M,B)}),[i,W,B,M]),(0,u.useEffect)((function(){X||(0,x.t8)(H,F)}),[X,F,H]);var te=(0,_.Z)(p);return(0,u.useEffect)((function(){E&&te!==p&&L(p)}),[E,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:N}),(0,f.jsx)(d.Z,{breadcrumbs:ne,menuItems:A,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(a.Nk,{children:[0!==(null===w||void 0===w?void 0:w.length)&&(0,f.jsx)(a.lm,{children:(0,f.jsx)(g.Z,{navigationItems:w})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:t,afterHeightOffset:b.Mz,afterHidden:i,afterMousedownActive:W,afterWidth:B,before:P,beforeHeightOffset:b.Mz,beforeMousedownActive:X,beforeWidth:a.k1+(P?F:0),hideAfterCompletely:!0,leftOffset:P?a.k1:null,mainContainerRef:V,setAfterMousedownActive:U,setAfterWidth:L,setBeforeMousedownActive:G,setBeforeWidth:J,children:[S&&(0,f.jsx)(h,{children:S}),I]})})]}),k&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,f.jsx)(o.Z,C(C({},k),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},97225:function(e,n,t){var i=t(75582),r=t(12691),u=t.n(r),l=t(82684),o=t(83455),c=t(34376),s=t(60328),d=t(47999),a=t(67971),f=t(10919),p=t(93348),h=t(62609),v=t(86673),g=t(58180),j=t(19711),_=t(82531),b=t(10503),Z=t(49125),x=t(45838),m=t(9736),E=t(96510),C=t(66653),P=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,r=e.includeCreatedAtColumn,y=e.includePipelineColumn,O=e.pipeline,I=e.pipelineSchedules,k=e.selectedSchedule,A=e.setErrors,w=e.setSelectedSchedule,T=e.stickyHeader,S=null===O||void 0===O?void 0:O.uuid,N=(0,c.useRouter)(),R=(0,l.useRef)({}),D=(0,l.useState)(null),M=D[0],H=D[1],V=(0,l.useState)(0),q=V[0],B=V[1],L=(0,l.useState)(0),z=L[0],W=L[1],U=(0,o.Db)((function(e){return _.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),Y=(0,i.Z)(U,1)[0],F=(0,o.Db)((function(e){return _.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){n(),S?N.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(S,"/triggers")):n()},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),J=(0,i.Z)(F,1)[0],K=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,m.Ct)()||K.push({label:function(){return""},uuid:"edit/delete"});var X=[null,1,1,3,1,null,null,null,null];return y&&(K.splice(2,0,{uuid:"Pipeline"}),X.splice(2,0,2)),r&&(K.splice(3,0,{uuid:"Created at"}),X.splice(3,0,null)),(0,P.jsx)(x.cl,{overflowVisible:!0,children:0===I.length?(0,P.jsx)(v.Z,{px:3,py:1,children:(0,P.jsx)(j.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(g.Z,{columnFlex:X,columns:K,highlightRowOnHover:t,isSelectedRow:function(e){return I[e].id===(null===k||void 0===k?void 0:k.id)},onClickRow:w?function(e){return null===w||void 0===w?void 0:w(I[e])}:null,rowVerticalPadding:6,rows:I.map((function(e,n){var t,i=e.id,o=e.created_at,c=e.pipeline_runs_count,g=e.pipeline_uuid,_=e.last_pipeline_run_status,x=e.name,E=e.schedule_interval,O=e.status,I=S||g;R.current[i]=(0,l.createRef)();var k=[(0,P.jsx)(s.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,C.j)(n),Y({id:e.id,status:p.fq.ACTIVE===O?p.fq.INACTIVE:p.fq.ACTIVE})},children:p.fq.ACTIVE===O?(0,P.jsx)(b.dz,{muted:!0,size:2*Z.iI}):(0,P.jsx)(b.Py,{default:!0,size:2*Z.iI})},"toggle_trigger_".concat(n)),(0,P.jsx)(j.ZP,{default:p.fq.INACTIVE===O,monospace:!0,success:p.fq.ACTIVE===O,children:O},"trigger_status_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:null===(t=p.Z4[e.schedule_type])||void 0===t?void 0:t.call(p.Z4)},"trigger_type_".concat(n)),(0,P.jsx)(u(),{as:"/pipelines/".concat(I,"/triggers/").concat(i),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(f.Z,{bold:!0,onClick:function(e){(0,C.j)(e),N.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(I,"/triggers/").concat(i))},sameColorAsText:!0,children:x})},"trigger_name_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:E},"trigger_frequency_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:c},"trigger_run_count_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:_||"N/A"},"latest_run_status_".concat(n)),(0,P.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(I,"/logs?pipeline_schedule_id[]=").concat(i))},children:(0,P.jsx)(b.B4,{default:!0,size:2*Z.iI})},"logs_button_".concat(n))];return(0,m.Ct)()||k.push((0,P.jsxs)(a.Z,{children:[(0,P.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(I,"/triggers/").concat(i,"/edit"))},title:"Edit",children:(0,P.jsx)(b.I8,{default:!0,size:2*Z.iI})}),(0,P.jsx)(v.Z,{mr:1}),(0,P.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,r;H(i),B((null===(e=R.current[i])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),W((null===(t=R.current[i])||void 0===t||null===(r=t.current)||void 0===r?void 0:r.offsetLeft)||0)},ref:R.current[i],title:"Delete",children:(0,P.jsx)(b.rF,{default:!0,size:2*Z.iI})}),(0,P.jsx)(d.Z,{onClickOutside:function(){return H(null)},open:M===i,children:(0,P.jsx)(h.Z,{danger:!0,left:(z||0)-286,onCancel:function(){return H(null)},onClick:function(){H(null),J(i)},title:"Are you sure you want to delete the trigger ".concat(x,"?"),top:(q||0)-(n<=1?40:96),width:40*Z.iI})})]},"edit_delete_buttons_".concat(n))),y&&k.splice(2,0,(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:I},"pipeline_name_".concat(n))),r&&k.splice(3,0,(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:o},"created_at_".concat(n))),k})),stickyHeader:T,uuid:"pipeline-triggers"})})}},93348:function(e,n,t){t.d(n,{TR:function(){return a},U5:function(){return c},Xm:function(){return u},Z4:function(){return d},fq:function(){return o},kJ:function(){return s}});var i,r,u,l=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(u||(u={}));var o,c,s,d=(i={},(0,l.Z)(i,u.API,(function(){return"API"})),(0,l.Z)(i,u.EVENT,(function(){return"event"})),(0,l.Z)(i,u.TIME,(function(){return"schedule"})),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(o||(o={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(c||(c={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var a=(r={},(0,l.Z)(r,s.CREATED_AT,"Created at"),(0,l.Z)(r,s.NAME,"Name"),(0,l.Z)(r,s.PIPELINE,"Pipeline"),(0,l.Z)(r,s.STATUS,"Status"),(0,l.Z)(r,s.TYPE,"Type"),r)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4506],{15270:function(e,n,t){t.d(n,{Z:function(){return j}});var i=t(82684),r=t(34376),o=t(61519),l=t(57639),d=t(882),c=t(11135),a=t(28598);var s=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.86364 2.5H4.13636C3.68449 2.5 3.31818 2.94772 3.31818 3.5V7.5C3.31818 8.05228 3.68449 8.5 4.13636 8.5H9.86364C10.3155 8.5 10.6818 8.05228 10.6818 7.5V3.5C10.6818 2.94772 10.3155 2.5 9.86364 2.5ZM4.13636 1.5C3.23263 1.5 2.5 2.39543 2.5 3.5V7.5C2.5 8.60457 3.23263 9.5 4.13636 9.5H5.5V16.1667V16.5H4.13636C3.23263 16.5 2.5 17.3954 2.5 18.5V22.5C2.5 23.6046 3.23263 24.5 4.13636 24.5H9.86364C10.7674 24.5 11.5 23.6046 11.5 22.5V18.5C11.5 17.3954 10.7674 16.5 9.86364 16.5H6.5V16.1667C6.5 14.9394 7.61929 13.9444 9 13.9444H16C17.933 13.9444 19.5 12.5516 19.5 10.8333V9.5H21.8636C22.7674 9.5 23.5 8.60457 23.5 7.5V3.5C23.5 2.39543 22.7674 1.5 21.8636 1.5H16.1364C15.2326 1.5 14.5 2.39543 14.5 3.5V7.5C14.5 8.60457 15.2326 9.5 16.1364 9.5H18.5V10.8333C18.5 12.0606 17.3807 13.0556 16 13.0556H9C8.02066 13.0556 7.13526 13.4131 6.5 13.9893V9.5H9.86364C10.7674 9.5 11.5 8.60457 11.5 7.5V3.5C11.5 2.39543 10.7674 1.5 9.86364 1.5H4.13636ZM9.86364 17.5H6.5H5.5H4.13636C3.68449 17.5 3.31818 17.9477 3.31818 18.5V22.5C3.31818 23.0523 3.68449 23.5 4.13636 23.5H9.86364C10.3155 23.5 10.6818 23.0523 10.6818 22.5V18.5C10.6818 17.9477 10.3155 17.5 9.86364 17.5ZM16.1364 2.5H21.8636C22.3155 2.5 22.6818 2.94772 22.6818 3.5V7.5C22.6818 8.05228 22.3155 8.5 21.8636 8.5H16.1364C15.6845 8.5 15.3182 8.05228 15.3182 7.5V3.5C15.3182 2.94772 15.6845 2.5 16.1364 2.5Z",fill:"url(#paint0_linear_2738_141228)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_2738_141228",x1:"2.5",y1:"13",x2:"23.5",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},u=t(29664);var f=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.65256 15.8011L4.68226 20.7714C4.14193 21.3117 3.26588 21.3117 2.72556 20.7714C2.18523 20.231 2.18523 19.355 2.72556 18.8147L7.60553 13.9347C9.03 12.5102 9.91996 10.6383 10.1255 8.6343L10.3663 6.28587C10.4455 5.51385 10.7884 4.7927 11.3371 4.24393L11.9728 3.60825C13.233 2.34803 15.1222 2.10014 16.6299 2.86457L13.621 5.87349C12.7214 6.77304 12.7214 8.23149 13.621 9.13104L13.9934 9.50349C14.893 10.403 16.3514 10.403 17.251 9.50349L20.2599 6.49457C21.0243 8.00224 20.7764 9.89143 19.5162 11.1516L18.786 11.8818C18.2751 12.3928 17.6175 12.7318 16.9049 12.8515L14.634 13.2332C12.7469 13.5504 11.0056 14.448 9.65256 15.8011ZM11.0889 2.72437C12.8414 0.971949 15.5214 0.712489 17.5485 1.94599C17.9008 2.16036 18.2333 2.41982 18.5379 2.72436L14.5049 6.75738C14.0935 7.16877 14.0935 7.83577 14.5049 8.24716L14.8773 8.61961C15.2887 9.031 15.9557 9.031 16.3671 8.61961L20.4001 4.5866C20.7046 4.89114 20.9641 5.22371 21.1785 5.57599C22.412 7.60309 22.1525 10.2831 20.4001 12.0355L19.6699 12.7657C18.9751 13.4605 18.081 13.9214 17.1121 14.0842L14.8412 14.4659C13.2104 14.74 11.7057 15.5157 10.5364 16.6849L5.56614 21.6552C4.53766 22.6837 2.87016 22.6837 1.84167 21.6552C0.81319 20.6268 0.813193 18.9593 1.84168 17.9308L6.72165 13.0508C7.94285 11.8296 8.70581 10.2248 8.88201 8.50678L9.12286 6.15835C9.23136 5.10035 9.70121 4.11209 10.4533 3.36005L11.0889 2.72437ZM4.88014 19.3535C5.0754 19.1582 5.0754 18.8417 4.88014 18.6464C4.68488 18.4511 4.3683 18.4511 4.17303 18.6464L3.64631 19.1731C3.45105 19.3684 3.45105 19.685 3.64631 19.8802C3.84158 20.0755 4.15816 20.0755 4.35342 19.8802L4.88014 19.3535Z",fill:"url(#paint0_linear_7839_33197)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7839_33197",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})};var h=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18V6c0-1.38071 1.11929-2.5 2.5-2.5h12c1.3807 0 2.5 1.11929 2.5 2.5v12c0 1.3807-1.1193 2.5-2.5 2.5H6c-1.38071 0-2.5-1.1193-2.5-2.5zM2 18V6c0-2.20914 1.79086-4 4-4h12c2.2091 0 4 1.79086 4 4v12c0 2.2091-1.7909 4-4 4H6c-2.20914 0-4-1.7909-4-4zm9.0935-8.41432c.3235-.25876.3759-.73073.1172-1.05417-.2588-.32345-.7308-.37589-1.0542-.11713L7.03148 10.9144c-.17791.1423-.28148.3578-.28148.5856 0 .2279.10357.4433.28148.5857l3.12502 2.5c.3234.2587.7954.2063 1.0542-.1172.2587-.3234.2063-.7954-.1172-1.0541L8.70058 11.5l2.39292-1.91432zM14.5 13.25c-.4142 0-.75.3358-.75.75s.3358.75.75.75H17c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-2.5z",fill:"url(#paint0_linear_1244_32583)"}),(0,a.jsxs)("defs",{children:[(0,a.jsx)("clipPath",{id:"clip0_5247_222548",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"white"})}),(0,a.jsxs)("linearGradient",{id:"paint0_linear_1244_32583",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},p=t(86673),g=t(19711),x=t(46261),v=t(10503),m=t(72454),b=t(99994),y=t(49125),C=3*y.iI;var j=function(e){var n=e.aligned,t=e.navigationItems,j=(0,r.useRouter)().pathname,w=(0,i.useMemo)((function(){var e=[{Icon:v.rV,IconSelected:s,id:"pipelines",label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}},{Icon:v.Pf,IconSelected:u.Z,id:"triggers",label:function(){return"Triggers"},linkProps:{href:"/triggers"}},{Icon:v.pd,IconSelected:o.Z,id:"pipeline-runs",label:function(){return"Pipelines runs"},linkProps:{href:"/pipeline-runs"}},{Icon:v.oI,IconSelected:h,id:"terminal",label:function(){return"Terminal"},linkProps:{href:"/terminal"}},{Icon:v.Zr,IconSelected:f,id:"settings",label:function(){return"Settings"},linkProps:{href:"/settings"}}];return(t||e).map((function(e,t){var i=e.Icon,r=e.IconSelected,o=e.id,l=e.isSelected,s=e.label,u=e.linkProps,f=e.onClick,h=l?l(j,e):!!j.match(new RegExp("^/".concat(o,"[/]*"))),v=h&&r?r:i;return(0,a.jsx)(p.Z,{mt:t>=1?y.cd:0,children:(0,a.jsxs)(x.Z,{appearBefore:"right"===n,height:5*y.iI,label:s(),size:null,widthFitContent:!0,children:[h&&r&&(0,a.jsx)(d.Z,{backgroundGradient:b.yr,backgroundPanel:!0,basic:!0,borderWidth:2,linkProps:u,onClick:f,paddingUnits:1,children:(0,a.jsx)("div",{style:{height:C,width:C},children:(0,a.jsx)(v,{muted:!0,size:C})})}),(!h||h&&!r)&&(0,a.jsx)(c.ZP,{block:!0,linkProps:u,noHoverUnderline:!0,noPadding:!0,onClick:f,primary:h,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(o),children:(0,a.jsx)(m.E7,{primary:!v,children:v?(0,a.jsx)(v,{muted:!h,size:C}):(0,a.jsx)(g.ZP,{children:"Edit"})})})]})},"button-".concat(o))}))}),[n,t,j]);return(0,a.jsx)(l.Z,{children:w})}},72454:function(e,n,t){t.d(n,{E7:function(){return p},HS:function(){return h},Nk:function(){return u},k1:function(){return s},lm:function(){return f}});var i=t(9518),r=t(23831),o=t(73942),l=t(3055),d=t(49125),c=t(37391),a=t(90880),s=d.cd*d.iI+5*d.iI+d.cd*d.iI+1,u=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-ecogjt-0"})(["display:flex;flex-direction:row;height:calc(100vh - ","px);position:fixed;top:","px;width:100%;",""],l.Mz,l.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n ")})),f=i.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;",""],d.cd*d.iI,(function(e){return!e.borderLess&&"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:100%;padding:","px;position:sticky;top:0;z-index:3;",""],d.cd*d.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")})),p=(i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(l.Mz+(e.heightOffset||0),"px);\n ")})),i.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],d.iI,o.n_,(function(e){return e.primary&&"\n ".concat((0,a.eR)(),"\n background: ").concat((e.theme||r.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||r.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||r.Z).interactive.linkSecondary,";\n }\n ")})))},28358:function(e,n,t){t.d(n,{Z:function(){return v}});var i=t(82684),r=t(60328),o=t(10919),l=t(86673),d=t(19711),c=t(10503),a=t(9518),s=t(23831),u=t(73942),f=t(49125),h=t(37391),p=a.default.div.withConfig({displayName:"indexstyle__ErrorPopupStyle",componentId:"sc-aqfw6f-0"})(["top:50%;left:50%;transform:translate(-50%,-50%);max-height:95vh;max-width:95vw;overflow:auto;padding:","px;position:fixed;z-index:9999;border-radius:","px;"," ",""],f.iI*f.cd,u.n_,(function(e){return"\n background-color: ".concat((e.theme||s.Z).background.page,";\n border: 1px solid ").concat((e.theme||s.Z).accent.negative,";\n box-shadow: ").concat((e.theme||s.Z).shadow.window,";\n ")}),h.w5),g=a.default.div.withConfig({displayName:"indexstyle__CloseButtonContainerStyle",componentId:"sc-aqfw6f-1"})(["display:flex;justify-content:flex-end;position:sticky;top:0;"]),x=t(28598);var v=function(e){var n,t,a=e.displayMessage,s=e.errors,u=e.links,f=e.onClose,h=e.response,v=(0,i.useState)(!1),m=v[0],b=v[1],y=(0,i.useState)(!1),C=y[0],j=y[1],w=(s||{}).messages,Z=(null===h||void 0===h?void 0:h.error)||{},k=Z.errors,_=Z.exception,I=Z.message,O=a,H=w;return I&&(H=I.split("\n")),_||O||null===(n=H)||void 0===n||!n[0]||(O=H[0],H=null),(0,x.jsxs)(p,{children:[(0,x.jsx)(g,{children:(0,x.jsx)(r.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:f,title:"Close errors",children:(0,x.jsx)(c.x8,{})})}),(0,x.jsx)(d.ZP,{bold:!0,large:!0,children:"Error"}),O&&(0,x.jsx)(l.Z,{mt:1,children:(0,x.jsx)(d.ZP,{default:!0,children:O})}),_&&(0,x.jsx)(l.Z,{mt:1,children:(0,x.jsx)(d.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:_})}),(null===(t=H)||void 0===t?void 0:t.length)>0&&(0,x.jsxs)(l.Z,{mt:2,children:[(0,x.jsxs)(d.ZP,{bold:!0,large:!0,children:["Traceback (",(0,x.jsxs)(o.Z,{onClick:function(){return j((function(e){return!e}))},preventDefault:!0,warning:!0,children:[C?"hide":"show"," traceback"]}),")"]}),C&&(0,x.jsx)(l.Z,{mt:1,children:H.map((function(e){return(0,x.jsx)(d.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),k&&(0,x.jsxs)(l.Z,{mt:2,children:[(0,x.jsxs)(d.ZP,{bold:!0,large:!0,children:["Stack trace (",(0,x.jsxs)(o.Z,{onClick:function(){return b((function(e){return!e}))},preventDefault:!0,warning:!0,children:[m?"hide":"show"," stack trace"]}),")"]}),m&&(0,x.jsx)(l.Z,{mt:1,children:k.map((function(e){return(0,x.jsx)(d.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===u||void 0===u?void 0:u.map((function(e,n){var t=e.label,i=e.onClick;return(0,x.jsx)(l.Z,{mt:2,children:(0,x.jsx)(o.Z,{large:!0,onClick:i,underline:!0,warning:!0,children:t})},t)}))]})}},82386:function(e,n,t){t.d(n,{E$:function(){return I},MK:function(){return m},MP:function(){return Z},Md:function(){return s},OM:function(){return x},Ru:function(){return k},S9:function(){return E},VW:function(){return h},W7:function(){return j},Wi:function(){return g},YJ:function(){return w},Zj:function(){return P},Zt:function(){return a},aH:function(){return S},bC:function(){return V},dN:function(){return u},ff:function(){return _},l8:function(){return p},lU:function(){return M},rS:function(){return H},uX:function(){return v},v7:function(){return O},ve:function(){return f}});var i=t(9518),r=t(23831),o=t(73942),l=t(3055),d=t(49125),c=t(37391),a=64*d.iI,s=3*d.cd*d.iI,u=s,f=35*d.iI,h=.5*d.iI,p=13*d.iI,g=3*d.cd*d.iI,x=6*d.iI,v=2*d.cd*3*d.iI,m=(i.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1lxpneo-0"})(["position:fixed;z-index:2;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.monotone||r.Z.monotone).grey200,";\n ")}),(function(e){return!e.beforeVisible&&"\n width: 100%;\n "}),(function(e){return e.beforeVisible&&"\n left: ".concat(f,"px;\n width: calc(100% - ").concat(f,"px);\n ")})),i.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],l.Mz)),b=(i.default.div.withConfig({displayName:"indexstyle__TabStyle",componentId:"sc-1lxpneo-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;position:relative;top:1px;"," "," ",""],o.n_,o.n_,1*d.iI,2*d.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||r.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||r.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||r.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*d.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||r.Z.monotone).white,";\n ")})),(0,i.css)(["position:fixed;z-index:2;",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n height: calc(100% - ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px);\n top: ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px;\n ")}))),y=(0,i.css)([""," height:100%;overflow:auto;position:relative;z-index:2;",""],c.w5,(function(e){return e.verticalOffset&&"\n height: calc(100% - ".concat(e.verticalOffset,"px);\n top: ").concat(e.verticalOffset,"px;\n ")})),C=(0,i.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],g,g,h,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||r.Z.text).fileBrowser," !important;\n ")}),(function(e){return!e.disabled&&"\n cursor: col-resize;\n "}),(function(e){return e.active&&!e.disabled&&"\n border-color: ".concat((e.theme.text||r.Z.text).fileBrowser," !important;\n ")})),j=i.default.div.withConfig({displayName:"indexstyle__AsideHeaderStyle",componentId:"sc-1lxpneo-3"})(["border-bottom:1px solid transparent;height:","px;position:fixed;top:","px;z-index:4;"," "," ",""],g,g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n ")}),(function(e){return!e.visible&&"\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-color: ".concat((e.theme.borders||r.Z.borders).medium," !important;\n ")})),w=i.default.div.withConfig({displayName:"indexstyle__AsideSubheaderStyle",componentId:"sc-1lxpneo-4"})(["border-bottom:1px solid transparent;height:","px;overflow-x:auto;"," "," ",""],g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).medium," !important;\n ")})),Z=i.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],b),k=i.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),_=i.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],b),I=i.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),O=i.default.div.withConfig({displayName:"indexstyle__DraggableStyle",componentId:"sc-1lxpneo-9"})([""," "," ",""],C,(function(e){return"undefined"!==typeof e.left&&"\n border-left: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n left: ").concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n border-right: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n right: ").concat(e.right,"px;\n ")})),H=i.default.div.withConfig({displayName:"indexstyle__MainWrapper",componentId:"sc-1lxpneo-10"})(["height:100%;position:fixed;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")})),S=i.default.div.withConfig({displayName:"indexstyle__MainContentStyle",componentId:"sc-1lxpneo-11"})(["position:fixed;z-index:2;",""],(function(e){return"\n height: calc(100% - ".concat(e.headerOffset||0,"px);\n top: ").concat(e.headerOffset||0,"px;\n ")})),P=i.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],c.w5),V=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-1lxpneo-13"})(["position:relative;"]),M=i.default.div.withConfig({displayName:"indexstyle__NavigationInnerStyle",componentId:"sc-1lxpneo-14"})(["height:100%;position:fixed;"," ",""],(function(e){return"left"===e.aligned&&"\n border-right: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n left: 0;\n ")}),(function(e){return"right"===e.aligned&&"\n border-left: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n right: 0;\n ")})),E=i.default.div.withConfig({displayName:"indexstyle__NavigationContainerStyle",componentId:"sc-1lxpneo-15"})([""," overflow:auto;position:absolute;width:fit-content;"," "," "," ",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")}),(function(e){return e.widthOffset&&"left"===e.aligned&&"\n left: ".concat(e.widthOffset,"px;\n ")}),(function(e){return e.widthOffset&&"right"===e.aligned&&"\n right: ".concat(e.widthOffset,"px;\n ")}))},32063:function(e,n,t){var i=t(82684),r=t(1887),o=t.n(r),l=t(60328),d=t(57639),c=t(93461),a=t(67971),s=t(86673),u=t(46261),f=t(15270),h=t(82386),p=t(10503),g=t(91427),x=t(49125),v=t(72454),m=t(24141),b=t(28598);n.Z=function(e){var n=e.after,t=e.afterHeader,r=e.afterHeightOffset,y=e.afterHidden,C=e.afterMousedownActive,j=e.afterNavigationItems,w=e.afterSubheader,Z=e.afterWidth,k=void 0===Z?0:Z,_=e.before,I=e.beforeHeader,O=e.beforeHeightOffset,H=e.beforeHidden,S=e.beforeMousedownActive,P=e.beforeNavigationItems,V=e.beforeWidth,M=void 0===V?0:V,E=e.children,B=e.header,L=e.headerOffset,N=void 0===L?0:L,z=e.hideAfterCompletely,R=e.leftOffset,W=void 0===R?0:R,A=e.mainContainerHeader,D=e.mainContainerRef,F=e.setAfterHidden,U=e.setAfterMousedownActive,T=e.setAfterWidth,G=e.setBeforeHidden,X=e.setBeforeMousedownActive,$=e.setBeforeWidth,q=(e.uuid,(0,m.i)().width),Y=(0,i.useRef)(null),J=(0,i.useRef)(null),K=(0,i.useRef)(null),Q=(0,i.useRef)(null),ee=(0,i.useCallback)((function(){var e=!y;null===F||void 0===F||F(e),(0,g.t8)(g.zg,e)}),[y,F]),ne=(0,i.useCallback)((function(){var e=!H;G(e),(0,g.t8)(g.Uu,e)}),[H,G]);(0,i.useEffect)((function(){var e,n,t,i,r=function(e){var n,t;((null===K||void 0===K||null===(n=K.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(q){var i=e.x;i+h.l8>q-k&&(i=q-k-h.l8),i-=2*W,$(Math.max(i,h.dN))}},o=function(e){var n,t;e.offsetX>=e.target.offsetWidth-h.VW&&e.offsetX<=e.target.offsetWidth+h.VW&&(null===X||void 0===X||X(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",r,!1))},l=function(){var e,n;null===X||void 0===X||X(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",r,!1)};return null===Q||void 0===Q||null===(e=Q.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.addEventListener)||void 0===i||i.call(t,"mouseup",l,!1),function(){var e,n,t,i;null===Q||void 0===Q||null===(e=Q.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.removeEventListener)||void 0===i||i.call(t,"mouseup",l,!1),l()}}),[k,H,W,K,Q,X,$,q]),(0,i.useEffect)((function(){var e,n,t,i,r=function(e){var n,t;((null===Y||void 0===Y||null===(n=Y.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(q){var i=q-e.x;i+h.l8>q-M&&(i=q-M-h.l8),T(Math.max(i,h.Md))}},o=function(e){var n,t;e.offsetX>=-1*h.VW&&e.offsetX<=h.VW&&(null===U||void 0===U||U(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",r,!1))},l=function(){var e,n;null===U||void 0===U||U(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",r,!1)};return null===J||void 0===J||null===(e=J.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.addEventListener)||void 0===i||i.call(t,"mouseup",l,!1),function(){var e,n,t,i;null===J||void 0===J||null===(e=J.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.removeEventListener)||void 0===i||i.call(t,"mouseup",l,!1),l()}}),[y,M,Y,J,U,T,q]);var te=z&&y,ie=te?0:y?4*x.iI:k,re=H?4*x.iI:M,oe="calc(100% - ".concat(re+ie+W,"px)"),le=(0,i.useMemo)((function(){return(null===j||void 0===j?void 0:j.length)>=1}),[j]),de=(0,i.useMemo)((function(){return(0,b.jsxs)(b.Fragment,{children:[F&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.W7,{style:{width:le?ie-(v.k1+1):ie},visible:y,children:(0,b.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(s.Z,{pl:y?1:2}),(0,b.jsxs)(l.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return ee()},children:[y&&(0,b.jsx)(p.s$,{neutral:!0,size:2*x.iI}),!y&&(0,b.jsx)(p._Q,{neutral:!0,size:2*x.iI})]})]}),!y&&t]})}),!y&&w&&(0,b.jsx)(h.YJ,{style:{width:ie},visible:y,children:w})]}),(0,b.jsx)(h.E$,{noScrollbarTrackBackground:!0,ref:Y,verticalOffset:t?r:null,children:!y&&n})]})}),[n,t,r,y,w,ie,le,Y,F,ee]),ce=(0,i.useMemo)((function(){return(null===P||void 0===P?void 0:P.length)>=1}),[P]),ae=(0,i.useMemo)((function(){return(0,b.jsxs)(b.Fragment,{children:[G&&(0,b.jsx)(h.W7,{style:{width:ce?re-(v.k1+1):re},visible:H,children:(0,b.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(s.Z,{pl:H?1:0}),!H&&I]}),(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(u.Z,{block:!0,label:H?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,b.jsxs)(l.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return ne()},children:[H&&(0,b.jsx)(p._Q,{neutral:!0,size:2*x.iI}),!H&&(0,b.jsx)(p.s$,{neutral:!0,size:2*x.iI})]})},H?"before-is-hidden":"before-is-visible"),(0,b.jsx)(s.Z,{pr:H?1:2})]})]})}),(0,b.jsx)(h.Ru,{noScrollbarTrackBackground:!0,ref:K,verticalOffset:I?O:null,children:!H&&_})]})}),[_,I,O,H,re,ce,K,G,ne]);return(0,b.jsxs)(d.Z,{children:[(C&&!y||S&&!H)&&(0,b.jsx)(o(),{children:(0,b.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),B&&(0,b.jsx)(h.MK,{children:B}),_&&(0,b.jsxs)(h.MP,{heightOffset:O,style:{left:W,width:re},children:[(0,b.jsx)(h.v7,{active:S,disabled:H,ref:Q,right:0}),ce&&(0,b.jsxs)(h.bC,{children:[!H&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.lU,{aligned:"left",children:(0,b.jsx)(v.lm,{borderLess:!0,children:(0,b.jsx)(f.Z,{aligned:"left",navigationItems:P})})}),(0,b.jsx)(h.S9,{aligned:"left",fullWidth:!0,heightOffset:O,widthOffset:v.k1+1,children:ae})]}),H&&ae]}),!ce&&ae]}),(0,b.jsxs)(h.rS,{style:{left:re+W,width:oe},children:[A,(0,b.jsx)(h.aH,{headerOffset:(A?h.uX:h.Wi)+N,style:{width:oe},children:(0,b.jsx)(h.Zj,{noScrollbarTrackBackground:!0,ref:D,children:E})})]}),n&&!te&&(0,b.jsxs)(h.ff,{heightOffset:r,style:{width:ie},children:[(0,b.jsx)(h.v7,{active:C,disabled:y,left:0,ref:J}),le&&(0,b.jsxs)(h.bC,{children:[!y&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.lU,{aligned:"right",children:(0,b.jsx)(v.lm,{borderLess:!0,children:(0,b.jsx)(f.Z,{aligned:"right",navigationItems:j})})}),(0,b.jsx)(h.S9,{aligned:"right",fullWidth:!0,heightOffset:r,widthOffset:v.k1+1,children:de})]}),y&&de]}),!le&&de]})]})}},41788:function(e,n,t){t.d(n,{Z:function(){return I}});var i=t(77837),r=t(26304),o=t(62243),l=t(29385),d=t(80022),c=t(99177),a=t(93189),s=t(15544),u=t(82394),f=t(38860),h=t.n(f),p=t(82684),g=t(56663),x=t.n(g),v=t(35490),m=t(55361),b=t(30332),y=t(9736),C=t(59e3),j=t(28598),w=["auth"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,i=(0,s.Z)(e);if(n){var r=(0,s.Z)(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return(0,a.Z)(this,t)}}function I(e){return function(n){(0,c.Z)(a,n);var t=_(a);function a(){var e;(0,o.Z)(this,a);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e=t.call.apply(t,[this].concat(i)),(0,u.Z)((0,d.Z)(e),"state",{auth:new v.Z(e.props.token)}),e}return(0,l.Z)(a,[{key:"componentDidMount",value:function(){this.setState({auth:new v.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,r.Z)(n,w));return(0,j.jsx)(e,k({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,i.Z)(h().mark((function n(t){var i,r,o,l,d,c,a,s,u;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=x()(t),r=(0,y.ex)(t),o=r.id,l=i[m.Mv],d=i[b.qt],c=new v.Z(l),a=k(k({},t),{},{auth:c,currentGroupId:o,theme:d}),(0,y.YB)(t)&&c.isExpired&&(console.log("OAuth token has expired."),s=k(k({},t.query),{},{redirect_url:t.asPath}),(0,C.nL)("/sign-in?".concat((0,C.uM)(s)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(a);case 10:return u=n.sent,n.abrupt("return",k(k({},u),{},{auth:c,currentGroupId:o,theme:d}));case 12:return n.abrupt("return",a);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),a}(p.Component)}},882:function(e,n,t){var i=t(82394),r=t(26304),o=t(9518),l=t(60328),d=t(23831),c=t(73942),a=t(99994),s=t(49125),u=t(28598),f=["backgroundGradient","backgroundPanel","borderWidth","children","compact","paddingUnits","paddingUnitsHorizontal","paddingUnitsVertical"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=o.default.div.withConfig({displayName:"GradientButton__ButtonContentStyle",componentId:"sc-1gzx4r1-0"})(["border-radius:","px;height:fit-content;"," ",""],c.n_,(function(e){return!e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||d.Z.background).page,";\n ")}),(function(e){return e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||d.Z.background).panel,";\n ")}));n.Z=function(e){var n=e.backgroundGradient,t=void 0===n?a.TD:n,i=e.backgroundPanel,o=e.borderWidth,d=void 0===o?1:o,c=e.children,h=e.compact,x=e.paddingUnits,v=e.paddingUnitsHorizontal,m=void 0===v?1.5:v,b=e.paddingUnitsVertical,y=void 0===b?1.25:b,C=(0,r.Z)(e,f),j=m,w=y;return x&&(j=x,w=x),h&&(j*=.75,w*=.75),(0,u.jsx)(l.Z,p(p({},C),{},{backgroundGradient:t,noPadding:!0,padding:"".concat(d,"px"),pointerEventsEnabled:!0,children:(0,u.jsx)(g,{backgroundPanel:i,children:(0,u.jsx)("div",{style:{paddingBottom:w*s.iI-d,paddingLeft:j*s.iI-d,paddingRight:j*s.iI-d,paddingTop:w*s.iI-d},children:c})})}))}},61519:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fill:"url(#paint0_linear_2738_140355)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2738_140355",x1:"2",y1:"13",x2:"24",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},29664:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM12.75 7C12.75 6.58579 12.4142 6.25 12 6.25C11.5858 6.25 11.25 6.58579 11.25 7V13C11.25 13.4142 11.5858 13.75 12 13.75H16C16.4142 13.75 16.75 13.4142 16.75 13C16.75 12.5858 16.4142 12.25 16 12.25H12.75V7Z",fill:"url(#paint0_linear_2798_59379)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2798_59379",x1:"1",y1:"12",x2:"23",y2:"12",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},99994:function(e,n,t){t.d(n,{eW:function(){return a},TD:function(){return d},yr:function(){return c}});var i=t(73899),r="#FF144D",o="#DEBB92",l="#2A60FE",d=("linear-gradient(90deg, ".concat(o,", ").concat("#CBFE00",")"),"linear-gradient(90deg, ".concat(r,", #C86DD7)")),c=("linear-gradient(90deg, ".concat("#95ECE2",", ").concat(l,")"),"linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(o,")"),"linear-gradient(90deg, ".concat("#C72400",", ").concat(o,")"),"linear-gradient(100.38deg, ".concat(r," 41.11%, #FF9559 86.99%)"),"linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(l," 41.11%, #B880FF 86.99%)"),"linear-gradient(90deg, ".concat(i.t4," 20.13%, #2AB2FE)")),a="linear-gradient(90deg, ".concat(i.Ck," 0%, ").concat(i.t4," 53.13%, ").concat(i.X_," 100%)")},66166:function(e,n,t){var i=t(82684);n.Z=function(e){var n=(0,i.useRef)();return(0,i.useEffect)((function(){n.current=e}),[e]),n.current}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4506],{15270:function(e,n,t){t.d(n,{Z:function(){return j}});var i=t(82684),r=t(34376),o=t(61519),l=t(57639),d=t(882),c=t(11135),a=t(28598);var s=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.86364 2.5H4.13636C3.68449 2.5 3.31818 2.94772 3.31818 3.5V7.5C3.31818 8.05228 3.68449 8.5 4.13636 8.5H9.86364C10.3155 8.5 10.6818 8.05228 10.6818 7.5V3.5C10.6818 2.94772 10.3155 2.5 9.86364 2.5ZM4.13636 1.5C3.23263 1.5 2.5 2.39543 2.5 3.5V7.5C2.5 8.60457 3.23263 9.5 4.13636 9.5H5.5V16.1667V16.5H4.13636C3.23263 16.5 2.5 17.3954 2.5 18.5V22.5C2.5 23.6046 3.23263 24.5 4.13636 24.5H9.86364C10.7674 24.5 11.5 23.6046 11.5 22.5V18.5C11.5 17.3954 10.7674 16.5 9.86364 16.5H6.5V16.1667C6.5 14.9394 7.61929 13.9444 9 13.9444H16C17.933 13.9444 19.5 12.5516 19.5 10.8333V9.5H21.8636C22.7674 9.5 23.5 8.60457 23.5 7.5V3.5C23.5 2.39543 22.7674 1.5 21.8636 1.5H16.1364C15.2326 1.5 14.5 2.39543 14.5 3.5V7.5C14.5 8.60457 15.2326 9.5 16.1364 9.5H18.5V10.8333C18.5 12.0606 17.3807 13.0556 16 13.0556H9C8.02066 13.0556 7.13526 13.4131 6.5 13.9893V9.5H9.86364C10.7674 9.5 11.5 8.60457 11.5 7.5V3.5C11.5 2.39543 10.7674 1.5 9.86364 1.5H4.13636ZM9.86364 17.5H6.5H5.5H4.13636C3.68449 17.5 3.31818 17.9477 3.31818 18.5V22.5C3.31818 23.0523 3.68449 23.5 4.13636 23.5H9.86364C10.3155 23.5 10.6818 23.0523 10.6818 22.5V18.5C10.6818 17.9477 10.3155 17.5 9.86364 17.5ZM16.1364 2.5H21.8636C22.3155 2.5 22.6818 2.94772 22.6818 3.5V7.5C22.6818 8.05228 22.3155 8.5 21.8636 8.5H16.1364C15.6845 8.5 15.3182 8.05228 15.3182 7.5V3.5C15.3182 2.94772 15.6845 2.5 16.1364 2.5Z",fill:"url(#paint0_linear_2738_141228)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_2738_141228",x1:"2.5",y1:"13",x2:"23.5",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},u=t(29664);var f=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.65256 15.8011L4.68226 20.7714C4.14193 21.3117 3.26588 21.3117 2.72556 20.7714C2.18523 20.231 2.18523 19.355 2.72556 18.8147L7.60553 13.9347C9.03 12.5102 9.91996 10.6383 10.1255 8.6343L10.3663 6.28587C10.4455 5.51385 10.7884 4.7927 11.3371 4.24393L11.9728 3.60825C13.233 2.34803 15.1222 2.10014 16.6299 2.86457L13.621 5.87349C12.7214 6.77304 12.7214 8.23149 13.621 9.13104L13.9934 9.50349C14.893 10.403 16.3514 10.403 17.251 9.50349L20.2599 6.49457C21.0243 8.00224 20.7764 9.89143 19.5162 11.1516L18.786 11.8818C18.2751 12.3928 17.6175 12.7318 16.9049 12.8515L14.634 13.2332C12.7469 13.5504 11.0056 14.448 9.65256 15.8011ZM11.0889 2.72437C12.8414 0.971949 15.5214 0.712489 17.5485 1.94599C17.9008 2.16036 18.2333 2.41982 18.5379 2.72436L14.5049 6.75738C14.0935 7.16877 14.0935 7.83577 14.5049 8.24716L14.8773 8.61961C15.2887 9.031 15.9557 9.031 16.3671 8.61961L20.4001 4.5866C20.7046 4.89114 20.9641 5.22371 21.1785 5.57599C22.412 7.60309 22.1525 10.2831 20.4001 12.0355L19.6699 12.7657C18.9751 13.4605 18.081 13.9214 17.1121 14.0842L14.8412 14.4659C13.2104 14.74 11.7057 15.5157 10.5364 16.6849L5.56614 21.6552C4.53766 22.6837 2.87016 22.6837 1.84167 21.6552C0.81319 20.6268 0.813193 18.9593 1.84168 17.9308L6.72165 13.0508C7.94285 11.8296 8.70581 10.2248 8.88201 8.50678L9.12286 6.15835C9.23136 5.10035 9.70121 4.11209 10.4533 3.36005L11.0889 2.72437ZM4.88014 19.3535C5.0754 19.1582 5.0754 18.8417 4.88014 18.6464C4.68488 18.4511 4.3683 18.4511 4.17303 18.6464L3.64631 19.1731C3.45105 19.3684 3.45105 19.685 3.64631 19.8802C3.84158 20.0755 4.15816 20.0755 4.35342 19.8802L4.88014 19.3535Z",fill:"url(#paint0_linear_7839_33197)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7839_33197",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})};var h=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18V6c0-1.38071 1.11929-2.5 2.5-2.5h12c1.3807 0 2.5 1.11929 2.5 2.5v12c0 1.3807-1.1193 2.5-2.5 2.5H6c-1.38071 0-2.5-1.1193-2.5-2.5zM2 18V6c0-2.20914 1.79086-4 4-4h12c2.2091 0 4 1.79086 4 4v12c0 2.2091-1.7909 4-4 4H6c-2.20914 0-4-1.7909-4-4zm9.0935-8.41432c.3235-.25876.3759-.73073.1172-1.05417-.2588-.32345-.7308-.37589-1.0542-.11713L7.03148 10.9144c-.17791.1423-.28148.3578-.28148.5856 0 .2279.10357.4433.28148.5857l3.12502 2.5c.3234.2587.7954.2063 1.0542-.1172.2587-.3234.2063-.7954-.1172-1.0541L8.70058 11.5l2.39292-1.91432zM14.5 13.25c-.4142 0-.75.3358-.75.75s.3358.75.75.75H17c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-2.5z",fill:"url(#paint0_linear_1244_32583)"}),(0,a.jsxs)("defs",{children:[(0,a.jsx)("clipPath",{id:"clip0_5247_222548",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"white"})}),(0,a.jsxs)("linearGradient",{id:"paint0_linear_1244_32583",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},p=t(86673),g=t(19711),x=t(46261),v=t(10503),m=t(72454),b=t(99994),y=t(49125),C=3*y.iI;var j=function(e){var n=e.aligned,t=e.navigationItems,j=(0,r.useRouter)().pathname,w=(0,i.useMemo)((function(){var e=[{Icon:v.rV,IconSelected:s,id:"pipelines",label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}},{Icon:v.Pf,IconSelected:u.Z,id:"triggers",label:function(){return"Triggers"},linkProps:{href:"/triggers"}},{Icon:v.pd,IconSelected:o.Z,id:"pipeline-runs",label:function(){return"Pipelines runs"},linkProps:{href:"/pipeline-runs"}},{Icon:v.oI,IconSelected:h,id:"terminal",label:function(){return"Terminal"},linkProps:{href:"/terminal"}},{Icon:v.Zr,IconSelected:f,id:"settings",label:function(){return"Settings"},linkProps:{href:"/settings"}}];return(t||e).map((function(e,t){var i=e.Icon,r=e.IconSelected,o=e.id,l=e.isSelected,s=e.label,u=e.linkProps,f=e.onClick,h=l?l(j,e):!!j.match(new RegExp("^/".concat(o,"[/]*"))),v=h&&r?r:i;return(0,a.jsx)(p.Z,{mt:t>=1?y.cd:0,children:(0,a.jsxs)(x.Z,{appearBefore:"right"===n,height:5*y.iI,label:s(),size:null,widthFitContent:!0,children:[h&&r&&(0,a.jsx)(d.Z,{backgroundGradient:b.yr,backgroundPanel:!0,basic:!0,borderWidth:2,linkProps:u,onClick:f,paddingUnits:1,children:(0,a.jsx)("div",{style:{height:C,width:C},children:(0,a.jsx)(v,{muted:!0,size:C})})}),(!h||h&&!r)&&(0,a.jsx)(c.ZP,{block:!0,linkProps:u,noHoverUnderline:!0,noPadding:!0,onClick:f,primary:h,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(o),children:(0,a.jsx)(m.E7,{primary:!v,children:v?(0,a.jsx)(v,{muted:!h,size:C}):(0,a.jsx)(g.ZP,{children:"Edit"})})})]})},"button-".concat(o))}))}),[n,t,j]);return(0,a.jsx)(l.Z,{children:w})}},72454:function(e,n,t){t.d(n,{E7:function(){return p},HS:function(){return h},Nk:function(){return u},k1:function(){return s},lm:function(){return f}});var i=t(9518),r=t(23831),o=t(73942),l=t(3055),d=t(49125),c=t(37391),a=t(90880),s=d.cd*d.iI+5*d.iI+d.cd*d.iI+1,u=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-ecogjt-0"})(["display:flex;flex-direction:row;height:calc(100vh - ","px);position:fixed;top:","px;width:100%;",""],l.Mz,l.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n ")})),f=i.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;",""],d.cd*d.iI,(function(e){return!e.borderLess&&"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:100%;padding:","px;position:sticky;top:0;z-index:3;",""],d.cd*d.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")})),p=(i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(l.Mz+(e.heightOffset||0),"px);\n ")})),i.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],d.iI,o.n_,(function(e){return e.primary&&"\n ".concat((0,a.eR)(),"\n background: ").concat((e.theme||r.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||r.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||r.Z).interactive.linkSecondary,";\n }\n ")})))},49894:function(e,n,t){t.d(n,{Z:function(){return v}});var i=t(82684),r=t(60328),o=t(10919),l=t(86673),d=t(19711),c=t(10503),a=t(9518),s=t(23831),u=t(73942),f=t(49125),h=t(37391),p=a.default.div.withConfig({displayName:"indexstyle__ErrorPopupStyle",componentId:"sc-aqfw6f-0"})(["top:50%;left:50%;transform:translate(-50%,-50%);max-height:95vh;max-width:95vw;overflow:auto;padding:","px;position:fixed;z-index:9999;border-radius:","px;"," ",""],f.iI*f.cd,u.n_,(function(e){return"\n background-color: ".concat((e.theme||s.Z).background.page,";\n border: 1px solid ").concat((e.theme||s.Z).accent.negative,";\n box-shadow: ").concat((e.theme||s.Z).shadow.window,";\n ")}),h.w5),g=a.default.div.withConfig({displayName:"indexstyle__CloseButtonContainerStyle",componentId:"sc-aqfw6f-1"})(["display:flex;justify-content:flex-end;position:sticky;top:0;"]),x=t(28598);var v=function(e){var n,t,a=e.displayMessage,s=e.errors,u=e.links,f=e.onClose,h=e.response,v=(0,i.useState)(!1),m=v[0],b=v[1],y=(0,i.useState)(!1),C=y[0],j=y[1],w=(s||{}).messages,Z=(null===h||void 0===h?void 0:h.error)||{},k=Z.errors,_=Z.exception,I=Z.message,O=a,H=w;return I&&(H=I.split("\n")),_||O||null===(n=H)||void 0===n||!n[0]||(O=H[0],H=null),(0,x.jsxs)(p,{children:[(0,x.jsx)(g,{children:(0,x.jsx)(r.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:f,title:"Close errors",children:(0,x.jsx)(c.x8,{})})}),(0,x.jsx)(d.ZP,{bold:!0,large:!0,children:"Error"}),O&&(0,x.jsx)(l.Z,{mt:1,children:(0,x.jsx)(d.ZP,{default:!0,children:O})}),_&&(0,x.jsx)(l.Z,{mt:1,children:(0,x.jsx)(d.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:_})}),(null===(t=H)||void 0===t?void 0:t.length)>0&&(0,x.jsxs)(l.Z,{mt:2,children:[(0,x.jsxs)(d.ZP,{bold:!0,large:!0,children:["Traceback (",(0,x.jsxs)(o.Z,{onClick:function(){return j((function(e){return!e}))},preventDefault:!0,warning:!0,children:[C?"hide":"show"," traceback"]}),")"]}),C&&(0,x.jsx)(l.Z,{mt:1,children:H.map((function(e){return(0,x.jsx)(d.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),k&&(0,x.jsxs)(l.Z,{mt:2,children:[(0,x.jsxs)(d.ZP,{bold:!0,large:!0,children:["Stack trace (",(0,x.jsxs)(o.Z,{onClick:function(){return b((function(e){return!e}))},preventDefault:!0,warning:!0,children:[m?"hide":"show"," stack trace"]}),")"]}),m&&(0,x.jsx)(l.Z,{mt:1,children:k.map((function(e){return(0,x.jsx)(d.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===u||void 0===u?void 0:u.map((function(e,n){var t=e.label,i=e.onClick;return(0,x.jsx)(l.Z,{mt:2,children:(0,x.jsx)(o.Z,{large:!0,onClick:i,underline:!0,warning:!0,children:t})},t)}))]})}},82386:function(e,n,t){t.d(n,{E$:function(){return I},MK:function(){return m},MP:function(){return Z},Md:function(){return s},OM:function(){return x},Ru:function(){return k},S9:function(){return E},VW:function(){return h},W7:function(){return j},Wi:function(){return g},YJ:function(){return w},Zj:function(){return P},Zt:function(){return a},aH:function(){return S},bC:function(){return V},dN:function(){return u},ff:function(){return _},l8:function(){return p},lU:function(){return M},rS:function(){return H},uX:function(){return v},v7:function(){return O},ve:function(){return f}});var i=t(9518),r=t(23831),o=t(73942),l=t(3055),d=t(49125),c=t(37391),a=64*d.iI,s=3*d.cd*d.iI,u=s,f=35*d.iI,h=.5*d.iI,p=13*d.iI,g=3*d.cd*d.iI,x=6*d.iI,v=2*d.cd*3*d.iI,m=(i.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1lxpneo-0"})(["position:fixed;z-index:2;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.monotone||r.Z.monotone).grey200,";\n ")}),(function(e){return!e.beforeVisible&&"\n width: 100%;\n "}),(function(e){return e.beforeVisible&&"\n left: ".concat(f,"px;\n width: calc(100% - ").concat(f,"px);\n ")})),i.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],l.Mz)),b=(i.default.div.withConfig({displayName:"indexstyle__TabStyle",componentId:"sc-1lxpneo-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;position:relative;top:1px;"," "," ",""],o.n_,o.n_,1*d.iI,2*d.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||r.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||r.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||r.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*d.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||r.Z.monotone).white,";\n ")})),(0,i.css)(["position:fixed;z-index:2;",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n height: calc(100% - ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px);\n top: ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px;\n ")}))),y=(0,i.css)([""," height:100%;overflow:auto;position:relative;z-index:2;",""],c.w5,(function(e){return e.verticalOffset&&"\n height: calc(100% - ".concat(e.verticalOffset,"px);\n top: ").concat(e.verticalOffset,"px;\n ")})),C=(0,i.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],g,g,h,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||r.Z.text).fileBrowser," !important;\n ")}),(function(e){return!e.disabled&&"\n cursor: col-resize;\n "}),(function(e){return e.active&&!e.disabled&&"\n border-color: ".concat((e.theme.text||r.Z.text).fileBrowser," !important;\n ")})),j=i.default.div.withConfig({displayName:"indexstyle__AsideHeaderStyle",componentId:"sc-1lxpneo-3"})(["border-bottom:1px solid transparent;height:","px;position:fixed;top:","px;z-index:4;"," "," ",""],g,g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n ")}),(function(e){return!e.visible&&"\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-color: ".concat((e.theme.borders||r.Z.borders).medium," !important;\n ")})),w=i.default.div.withConfig({displayName:"indexstyle__AsideSubheaderStyle",componentId:"sc-1lxpneo-4"})(["border-bottom:1px solid transparent;height:","px;overflow-x:auto;"," "," ",""],g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).medium," !important;\n ")})),Z=i.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],b),k=i.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),_=i.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],b),I=i.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),O=i.default.div.withConfig({displayName:"indexstyle__DraggableStyle",componentId:"sc-1lxpneo-9"})([""," "," ",""],C,(function(e){return"undefined"!==typeof e.left&&"\n border-left: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n left: ").concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n border-right: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n right: ").concat(e.right,"px;\n ")})),H=i.default.div.withConfig({displayName:"indexstyle__MainWrapper",componentId:"sc-1lxpneo-10"})(["height:100%;position:fixed;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")})),S=i.default.div.withConfig({displayName:"indexstyle__MainContentStyle",componentId:"sc-1lxpneo-11"})(["position:fixed;z-index:2;",""],(function(e){return"\n height: calc(100% - ".concat(e.headerOffset||0,"px);\n top: ").concat(e.headerOffset||0,"px;\n ")})),P=i.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],c.w5),V=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-1lxpneo-13"})(["position:relative;"]),M=i.default.div.withConfig({displayName:"indexstyle__NavigationInnerStyle",componentId:"sc-1lxpneo-14"})(["height:100%;position:fixed;"," ",""],(function(e){return"left"===e.aligned&&"\n border-right: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n left: 0;\n ")}),(function(e){return"right"===e.aligned&&"\n border-left: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n right: 0;\n ")})),E=i.default.div.withConfig({displayName:"indexstyle__NavigationContainerStyle",componentId:"sc-1lxpneo-15"})([""," overflow:auto;position:absolute;width:fit-content;"," "," "," ",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")}),(function(e){return e.widthOffset&&"left"===e.aligned&&"\n left: ".concat(e.widthOffset,"px;\n ")}),(function(e){return e.widthOffset&&"right"===e.aligned&&"\n right: ".concat(e.widthOffset,"px;\n ")}))},32063:function(e,n,t){var i=t(82684),r=t(1887),o=t.n(r),l=t(60328),d=t(57639),c=t(93461),a=t(67971),s=t(86673),u=t(46261),f=t(15270),h=t(82386),p=t(10503),g=t(91427),x=t(49125),v=t(72454),m=t(24141),b=t(28598);n.Z=function(e){var n=e.after,t=e.afterHeader,r=e.afterHeightOffset,y=e.afterHidden,C=e.afterMousedownActive,j=e.afterNavigationItems,w=e.afterSubheader,Z=e.afterWidth,k=void 0===Z?0:Z,_=e.before,I=e.beforeHeader,O=e.beforeHeightOffset,H=e.beforeHidden,S=e.beforeMousedownActive,P=e.beforeNavigationItems,V=e.beforeWidth,M=void 0===V?0:V,E=e.children,B=e.header,L=e.headerOffset,N=void 0===L?0:L,z=e.hideAfterCompletely,R=e.leftOffset,W=void 0===R?0:R,A=e.mainContainerHeader,D=e.mainContainerRef,F=e.setAfterHidden,U=e.setAfterMousedownActive,T=e.setAfterWidth,G=e.setBeforeHidden,X=e.setBeforeMousedownActive,$=e.setBeforeWidth,q=(e.uuid,(0,m.i)().width),Y=(0,i.useRef)(null),J=(0,i.useRef)(null),K=(0,i.useRef)(null),Q=(0,i.useRef)(null),ee=(0,i.useCallback)((function(){var e=!y;null===F||void 0===F||F(e),(0,g.t8)(g.zg,e)}),[y,F]),ne=(0,i.useCallback)((function(){var e=!H;G(e),(0,g.t8)(g.Uu,e)}),[H,G]);(0,i.useEffect)((function(){var e,n,t,i,r=function(e){var n,t;((null===K||void 0===K||null===(n=K.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(q){var i=e.x;i+h.l8>q-k&&(i=q-k-h.l8),i-=2*W,$(Math.max(i,h.dN))}},o=function(e){var n,t;e.offsetX>=e.target.offsetWidth-h.VW&&e.offsetX<=e.target.offsetWidth+h.VW&&(null===X||void 0===X||X(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",r,!1))},l=function(){var e,n;null===X||void 0===X||X(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",r,!1)};return null===Q||void 0===Q||null===(e=Q.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.addEventListener)||void 0===i||i.call(t,"mouseup",l,!1),function(){var e,n,t,i;null===Q||void 0===Q||null===(e=Q.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.removeEventListener)||void 0===i||i.call(t,"mouseup",l,!1),l()}}),[k,H,W,K,Q,X,$,q]),(0,i.useEffect)((function(){var e,n,t,i,r=function(e){var n,t;((null===Y||void 0===Y||null===(n=Y.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(q){var i=q-e.x;i+h.l8>q-M&&(i=q-M-h.l8),T(Math.max(i,h.Md))}},o=function(e){var n,t;e.offsetX>=-1*h.VW&&e.offsetX<=h.VW&&(null===U||void 0===U||U(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",r,!1))},l=function(){var e,n;null===U||void 0===U||U(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",r,!1)};return null===J||void 0===J||null===(e=J.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.addEventListener)||void 0===i||i.call(t,"mouseup",l,!1),function(){var e,n,t,i;null===J||void 0===J||null===(e=J.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(i=t.removeEventListener)||void 0===i||i.call(t,"mouseup",l,!1),l()}}),[y,M,Y,J,U,T,q]);var te=z&&y,ie=te?0:y?4*x.iI:k,re=H?4*x.iI:M,oe="calc(100% - ".concat(re+ie+W,"px)"),le=(0,i.useMemo)((function(){return(null===j||void 0===j?void 0:j.length)>=1}),[j]),de=(0,i.useMemo)((function(){return(0,b.jsxs)(b.Fragment,{children:[F&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.W7,{style:{width:le?ie-(v.k1+1):ie},visible:y,children:(0,b.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(s.Z,{pl:y?1:2}),(0,b.jsxs)(l.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return ee()},children:[y&&(0,b.jsx)(p.s$,{neutral:!0,size:2*x.iI}),!y&&(0,b.jsx)(p._Q,{neutral:!0,size:2*x.iI})]})]}),!y&&t]})}),!y&&w&&(0,b.jsx)(h.YJ,{style:{width:ie},visible:y,children:w})]}),(0,b.jsx)(h.E$,{noScrollbarTrackBackground:!0,ref:Y,verticalOffset:t?r:null,children:!y&&n})]})}),[n,t,r,y,w,ie,le,Y,F,ee]),ce=(0,i.useMemo)((function(){return(null===P||void 0===P?void 0:P.length)>=1}),[P]),ae=(0,i.useMemo)((function(){return(0,b.jsxs)(b.Fragment,{children:[G&&(0,b.jsx)(h.W7,{style:{width:ce?re-(v.k1+1):re},visible:H,children:(0,b.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(s.Z,{pl:H?1:0}),!H&&I]}),(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(u.Z,{block:!0,label:H?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,b.jsxs)(l.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return ne()},children:[H&&(0,b.jsx)(p._Q,{neutral:!0,size:2*x.iI}),!H&&(0,b.jsx)(p.s$,{neutral:!0,size:2*x.iI})]})},H?"before-is-hidden":"before-is-visible"),(0,b.jsx)(s.Z,{pr:H?1:2})]})]})}),(0,b.jsx)(h.Ru,{noScrollbarTrackBackground:!0,ref:K,verticalOffset:I?O:null,children:!H&&_})]})}),[_,I,O,H,re,ce,K,G,ne]);return(0,b.jsxs)(d.Z,{children:[(C&&!y||S&&!H)&&(0,b.jsx)(o(),{children:(0,b.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),B&&(0,b.jsx)(h.MK,{children:B}),_&&(0,b.jsxs)(h.MP,{heightOffset:O,style:{left:W,width:re},children:[(0,b.jsx)(h.v7,{active:S,disabled:H,ref:Q,right:0}),ce&&(0,b.jsxs)(h.bC,{children:[!H&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.lU,{aligned:"left",children:(0,b.jsx)(v.lm,{borderLess:!0,children:(0,b.jsx)(f.Z,{aligned:"left",navigationItems:P})})}),(0,b.jsx)(h.S9,{aligned:"left",fullWidth:!0,heightOffset:O,widthOffset:v.k1+1,children:ae})]}),H&&ae]}),!ce&&ae]}),(0,b.jsxs)(h.rS,{style:{left:re+W,width:oe},children:[A,(0,b.jsx)(h.aH,{headerOffset:(A?h.uX:h.Wi)+N,style:{width:oe},children:(0,b.jsx)(h.Zj,{noScrollbarTrackBackground:!0,ref:D,children:E})})]}),n&&!te&&(0,b.jsxs)(h.ff,{heightOffset:r,style:{width:ie},children:[(0,b.jsx)(h.v7,{active:C,disabled:y,left:0,ref:J}),le&&(0,b.jsxs)(h.bC,{children:[!y&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.lU,{aligned:"right",children:(0,b.jsx)(v.lm,{borderLess:!0,children:(0,b.jsx)(f.Z,{aligned:"right",navigationItems:j})})}),(0,b.jsx)(h.S9,{aligned:"right",fullWidth:!0,heightOffset:r,widthOffset:v.k1+1,children:de})]}),y&&de]}),!le&&de]})]})}},41788:function(e,n,t){t.d(n,{Z:function(){return I}});var i=t(77837),r=t(26304),o=t(62243),l=t(29385),d=t(80022),c=t(99177),a=t(93189),s=t(15544),u=t(82394),f=t(38860),h=t.n(f),p=t(82684),g=t(56663),x=t.n(g),v=t(35490),m=t(55361),b=t(30332),y=t(9736),C=t(59e3),j=t(28598),w=["auth"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,i=(0,s.Z)(e);if(n){var r=(0,s.Z)(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return(0,a.Z)(this,t)}}function I(e){return function(n){(0,c.Z)(a,n);var t=_(a);function a(){var e;(0,o.Z)(this,a);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e=t.call.apply(t,[this].concat(i)),(0,u.Z)((0,d.Z)(e),"state",{auth:new v.Z(e.props.token)}),e}return(0,l.Z)(a,[{key:"componentDidMount",value:function(){this.setState({auth:new v.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,r.Z)(n,w));return(0,j.jsx)(e,k({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,i.Z)(h().mark((function n(t){var i,r,o,l,d,c,a,s,u;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=x()(t),r=(0,y.ex)(t),o=r.id,l=i[m.Mv],d=i[b.qt],c=new v.Z(l),a=k(k({},t),{},{auth:c,currentGroupId:o,theme:d}),(0,y.YB)(t)&&c.isExpired&&(console.log("OAuth token has expired."),s=k(k({},t.query),{},{redirect_url:t.asPath}),(0,C.nL)("/sign-in?".concat((0,C.uM)(s)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(a);case 10:return u=n.sent,n.abrupt("return",k(k({},u),{},{auth:c,currentGroupId:o,theme:d}));case 12:return n.abrupt("return",a);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),a}(p.Component)}},882:function(e,n,t){var i=t(82394),r=t(26304),o=t(9518),l=t(60328),d=t(23831),c=t(73942),a=t(99994),s=t(49125),u=t(28598),f=["backgroundGradient","backgroundPanel","borderWidth","children","compact","paddingUnits","paddingUnitsHorizontal","paddingUnitsVertical"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=o.default.div.withConfig({displayName:"GradientButton__ButtonContentStyle",componentId:"sc-1gzx4r1-0"})(["border-radius:","px;height:fit-content;"," ",""],c.n_,(function(e){return!e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||d.Z.background).page,";\n ")}),(function(e){return e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||d.Z.background).panel,";\n ")}));n.Z=function(e){var n=e.backgroundGradient,t=void 0===n?a.TD:n,i=e.backgroundPanel,o=e.borderWidth,d=void 0===o?1:o,c=e.children,h=e.compact,x=e.paddingUnits,v=e.paddingUnitsHorizontal,m=void 0===v?1.5:v,b=e.paddingUnitsVertical,y=void 0===b?1.25:b,C=(0,r.Z)(e,f),j=m,w=y;return x&&(j=x,w=x),h&&(j*=.75,w*=.75),(0,u.jsx)(l.Z,p(p({},C),{},{backgroundGradient:t,noPadding:!0,padding:"".concat(d,"px"),pointerEventsEnabled:!0,children:(0,u.jsx)(g,{backgroundPanel:i,children:(0,u.jsx)("div",{style:{paddingBottom:w*s.iI-d,paddingLeft:j*s.iI-d,paddingRight:j*s.iI-d,paddingTop:w*s.iI-d},children:c})})}))}},61519:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fill:"url(#paint0_linear_2738_140355)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2738_140355",x1:"2",y1:"13",x2:"24",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},29664:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM12.75 7C12.75 6.58579 12.4142 6.25 12 6.25C11.5858 6.25 11.25 6.58579 11.25 7V13C11.25 13.4142 11.5858 13.75 12 13.75H16C16.4142 13.75 16.75 13.4142 16.75 13C16.75 12.5858 16.4142 12.25 16 12.25H12.75V7Z",fill:"url(#paint0_linear_2798_59379)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2798_59379",x1:"1",y1:"12",x2:"23",y2:"12",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},99994:function(e,n,t){t.d(n,{eW:function(){return a},TD:function(){return d},yr:function(){return c}});var i=t(73899),r="#FF144D",o="#DEBB92",l="#2A60FE",d=("linear-gradient(90deg, ".concat(o,", ").concat("#CBFE00",")"),"linear-gradient(90deg, ".concat(r,", #C86DD7)")),c=("linear-gradient(90deg, ".concat("#95ECE2",", ").concat(l,")"),"linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(o,")"),"linear-gradient(90deg, ".concat("#C72400",", ").concat(o,")"),"linear-gradient(100.38deg, ".concat(r," 41.11%, #FF9559 86.99%)"),"linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(l," 41.11%, #B880FF 86.99%)"),"linear-gradient(90deg, ".concat(i.t4," 20.13%, #2AB2FE)")),a="linear-gradient(90deg, ".concat(i.Ck," 0%, ").concat(i.t4," 53.13%, ").concat(i.X_," 100%)")},66166:function(e,n,t){var i=t(82684);n.Z=function(e){var n=(0,i.useRef)();return(0,i.useEffect)((function(){n.current=e}),[e]),n.current}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4741],{1210:function(e,n,t){t.d(n,{Z:function(){return y}});var r=t(82394),i=t(21831),o=t(82684),u=t(47999),c=t(49894),l=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),j=t(32063),v=t(15270),b=t(82531),g=t(66166),m=t(3055),x=t(49125),Z=t(91427),O=t(24141);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,_=e.afterWidthOverride,y=e.before,E=e.beforeWidth,w=e.breadcrumbs,P=e.children,I=e.errors,k=e.headerMenuItems,D=e.navigationItems,A=e.setErrors,S=e.subheaderChildren,N=e.title,R=e.uuid,T=(0,O.i)().width,L="dashboard_after_width_".concat(R),M="dashboard_before_width_".concat(R),V=(0,o.useRef)(null),H=(0,o.useState)(_?p:(0,Z.U2)(L,p)),U=H[0],Y=H[1],F=(0,o.useState)(!1),B=F[0],z=F[1],W=(0,o.useState)(y?Math.max((0,Z.U2)(M,E),13*x.iI):null),J=W[0],G=W[1],X=(0,o.useState)(!1),$=X[0],q=X[1],K=(0,o.useState)(null)[1],Q=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===Q||void 0===Q?void 0:Q.projects,ne=[];w?ne.push.apply(ne,(0,i.Z)(w)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===V||void 0===V||!V.current||B||$||null===K||void 0===K||K(V.current.getBoundingClientRect().width)}),[B,U,$,J,V,K,T]),(0,o.useEffect)((function(){B||(0,Z.t8)(L,U)}),[r,B,U,L]),(0,o.useEffect)((function(){$||(0,Z.t8)(M,J)}),[$,J,M]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){_&&te!==p&&Y(p)}),[_,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:N}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(j.Z,{after:t,afterHeightOffset:m.Mz,afterHidden:r,afterMousedownActive:B,afterWidth:U,before:y,beforeHeightOffset:m.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(y?J:0),hideAfterCompletely:!0,leftOffset:y?d.k1:null,mainContainerRef:V,setAfterMousedownActive:z,setAfterWidth:Y,setBeforeMousedownActive:q,setBeforeWidth:G,children:[S&&(0,f.jsx)(h,{children:S}),P]})})]}),I&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===A||void 0===A?void 0:A(null)},children:(0,f.jsx)(c.Z,C(C({},I),{},{onClose:function(){return null===A||void 0===A?void 0:A(null)}}))})]})}},65597:function(e,n,t){t.d(n,{f:function(){return c}});var r=t(9518),i=t(23831),o=t(49125),u=t(73942),c=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},97496:function(e,n,t){var r=t(75582),i=t(12691),o=t.n(i),u=t(34376),c=t.n(u),l=t(82684),s=t(83455),a=t(60328),d=t(47999),f=t(93461),p=t(67971),h=t(10919),j=t(47409),v=t(86673),b=t(54283),g=t(58180),m=t(19711),x=t(82531),Z=t(23831),O=t(73942),_=t(10503),C=t(65597),y=t(93348),E=t(45838),w=t(49125),P=t(42305),I=t(19395),k=t(9736),D=t(96510),A=t(28598);function S(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,o=e.onCancel,u=e.onSuccess,c=e.pipelineRun,f=e.setCancelingRunId,h=e.setErrors,g=e.setShowConfirmationId,E=e.showConfirmationId,I=(0,k.Ct)(),S=c||{},N=S.id,R=S.pipeline_schedule_id,T=S.pipeline_schedule_token,L=S.pipeline_schedule_type,M=S.status,V=i&&N===n&&j.V.RUNNING===M,H=(0,s.Db)(y.Xm.API===L&&T?x.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(R,T):x.ZP.pipeline_runs.pipeline_schedules.useCreate(R),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return null===h||void 0===h?void 0:h({errors:n,response:e})}})}}),U=(0,r.Z)(H,1)[0],Y=(0,l.useCallback)((function(){g(null),U({pipeline_run:{execution_date:(0,P.d$)((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0}),pipeline_schedule_id:null===c||void 0===c?void 0:c.pipeline_schedule_id,pipeline_uuid:null===c||void 0===c?void 0:c.pipeline_uuid,variables:null===c||void 0===c?void 0:c.variables}})}),[U,c,g]),F=(0,l.useCallback)((function(){g(null),f(N),o({id:N,status:j.V.CANCELLED})}),[o,N,f,g]);return(0,A.jsxs)("div",{style:{position:"relative"},children:[(0,A.jsx)(a.Z,{backgroundColor:V&&Z.Z.accent.yellow,beforeIcon:j.V.INITIAL!==M&&!t&&(0,A.jsxs)(A.Fragment,{children:[j.V.COMPLETED===M&&(0,A.jsx)(_.Jr,{size:2*w.iI}),[j.V.FAILED,j.V.CANCELLED].includes(M)&&(0,A.jsx)(_.Py,{inverted:j.V.CANCELLED===M&&!I,size:2*w.iI}),[j.V.RUNNING].includes(M)&&(0,A.jsx)(b.Z,{color:V?Z.Z.status.negative:Z.Z.monotone.white,small:!0})]}),borderRadius:O.D7,danger:j.V.FAILED===M&&!I,default:j.V.INITIAL===M,disabled:t||I,loading:!c,onClick:function(){return g(N)},padding:"6px",primary:j.V.RUNNING===M&&!V&&!I,warning:j.V.CANCELLED===M&&!I,children:t?"Ready":V?"Canceling":j.D[M]}),(0,A.jsx)(d.Z,{onClickOutside:function(){return g(null)},open:E===N,children:(0,A.jsxs)(C.f,{children:[[j.V.RUNNING,j.V.INITIAL].includes(M)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,A.jsx)(v.Z,{mb:1}),(0,A.jsxs)(m.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,A.jsx)("br",{}),"the current pipeline run."]}),(0,A.jsx)(m.ZP,{}),(0,A.jsx)(v.Z,{mt:1,children:(0,A.jsxs)(p.Z,{children:[(0,A.jsx)(a.Z,{onClick:function(){F(),Y()},children:"Retry run"}),(0,A.jsx)(v.Z,{ml:1}),(0,A.jsx)(a.Z,{onClick:F,children:"Cancel run"})]})})]}),[j.V.CANCELLED,j.V.FAILED,j.V.COMPLETED].includes(M)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(m.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",M]}),(0,A.jsx)(v.Z,{mb:1}),(0,A.jsx)(m.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,A.jsx)(v.Z,{mb:1}),(0,A.jsx)(a.Z,{onClick:Y,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.disableRowSelect,t=e.emptyMessage,i=void 0===t?"No runs available":t,u=e.fetchPipelineRuns,d=e.onClickRow,b=e.pipelineRuns,Z=e.selectedRun,C=e.setErrors,y=(0,l.useState)(null),P=y[0],k=y[1],N=(0,l.useState)(null),R=N[0],T=N[1],L=(0,s.Db)((function(e){var n=e.id,t=e.status;return x.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(){k(null),u()},onErrorCallback:function(e,n){k(null),null===C||void 0===C||C({errors:n,response:e})}})}}),M=(0,r.Z)(L,2),V=M[0],H=M[1].isLoading,U=[null,1,2,1,1,null],Y=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}];return!n&&d&&(U.push(null),Y.push({label:function(){return""},uuid:"action"})),(0,A.jsx)(E.cl,{minHeight:30*w.iI,overflowVisible:!!R,children:0===(null===b||void 0===b?void 0:b.length)?(0,A.jsx)(v.Z,{px:3,py:1,children:(0,A.jsx)(m.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:i})}):(0,A.jsx)(g.Z,{columnFlex:U,columns:Y,isSelectedRow:function(e){return!n&&b[e].id===(null===Z||void 0===Z?void 0:Z.id)},onClickRow:n?null:d,rowVerticalPadding:6,rows:null===b||void 0===b?void 0:b.map((function(e,t){var r=e.block_runs_count,i=e.completed_at,l=e.execution_date,s=e.id,g=e.pipeline_schedule_id,x=e.pipeline_schedule_name,Z=e.pipeline_uuid,y=e.status,E=!s&&!y,D=[];return D=t>0&&b[t-1].execution_date===e.execution_date&&b[t-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,A.jsx)(v.Z,{ml:1,children:(0,A.jsxs)(p.Z,{alignItems:"center",children:[(0,A.jsx)(_.TT,{size:2*w.iI,useStroke:!0}),(0,A.jsx)(a.Z,{borderRadius:O.D7,notClickable:!0,padding:"6px",children:(0,A.jsx)(m.ZP,{muted:!0,children:j.D[y]})})]})},"row_status"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:Z},"row_pipeline_uuid"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,A.jsx)(o(),{as:"/pipelines/".concat(Z,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(r,")")})},"row_block_runs"),(0,A.jsx)(m.ZP,{monospace:!0,muted:!0,children:i&&(0,I.Vx)(i)||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(Z,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(_.B4,{default:!0,size:2*w.iI})},"row_logs")]:[(0,A.jsx)(S,{cancelingRunId:P,disabled:E,isLoadingCancelPipeline:H,onCancel:V,onSuccess:u,pipelineRun:e,setCancelingRunId:k,setErrors:C,setShowConfirmationId:T,showConfirmationId:R},"row_retry_button"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,children:Z},"row_pipeline_uuid"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,children:l&&(0,I.Vx)(l)||"-"},"row_date"),(0,A.jsx)(o(),{as:"/pipelines/".concat(Z,"/triggers/").concat(g),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:x})},"row_trigger"),(0,A.jsx)(o(),{as:"/pipelines/".concat(Z,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,disabled:E,sameColorAsText:!0,children:E?"":"See block runs (".concat(r,")")})},"row_block_runs"),(0,A.jsx)(m.ZP,{default:!0,monospace:!0,children:i&&(0,I.Vx)(i)||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,disabled:E,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(Z,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(_.B4,{default:!0,size:2*w.iI})},"row_item_13")],!n&&d&&D.push((0,A.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,A.jsx)(_._Q,{default:!0,size:2*w.iI})})),D})),uuid:"pipeline-runs"})})}},19395:function(e,n,t){t.d(n,{IJ:function(){return a},Vx:function(){return f},eI:function(){return d},gU:function(){return h},tL:function(){return p},vJ:function(){return j}});var r,i,o=t(82394),u=t(92083),c=t.n(u);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,u=n.status,l=null;i&&r&&(l=c()(r).valueOf()-c()(i).valueOf());return s(s({},e),{},(0,o.Z)({},t,{runtime:l,status:u}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function f(e){return"string"!==typeof e?e:d(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var p=(r={},(0,o.Z)(r,i.DAY,86400),(0,o.Z)(r,i.HOUR,3600),(0,o.Z)(r,i.MINUTE,60),(0,o.Z)(r,i.SECOND,1),r);function h(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function j(e,n){return e*p[n]}},51099:function(e,n,t){t.d(n,{Q:function(){return a}});t(82684);var r=t(60328),i=t(67971),o=t(86673),u=t(10503),c=t(73899),l=t(49125),s=t(28598),a=22;n.Z=function(e){var n=e.page,t=e.maxPages,a=e.onUpdate,d=e.totalPages,f=[],p=t;if(p>d)f=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(p/2),j=n-h;n+h>=d?(j=d-p+2,p-=2):n-h<=0?(j=0,p-=2):(p-=4,j=n-Math.floor(p/2)),f=Array.from({length:p},(function(e,n){return n+j}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(i.Z,{alignItems:"center",children:[(0,s.jsx)(r.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,s.jsx)(u.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!f.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!f.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),f.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!f.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!f.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,s.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,t){t.d(n,{D:function(){return u},V:function(){return o}});var r,i=t(82394),o=t(66050).V,u=(r={},(0,i.Z)(r,o.CANCELLED,"Cancelled"),(0,i.Z)(r,o.COMPLETED,"Done"),(0,i.Z)(r,o.FAILED,"Failed"),(0,i.Z)(r,o.INITIAL,"Ready"),(0,i.Z)(r,o.RUNNING,"Running"),r)},93348:function(e,n,t){t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return a},fq:function(){return c},kJ:function(){return s}});var r,i,o,u=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var c,l,s,a=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(i={},(0,u.Z)(i,s.CREATED_AT,"Created at"),(0,u.Z)(i,s.NAME,"Name"),(0,u.Z)(i,s.PIPELINE,"Pipeline"),(0,u.Z)(i,s.STATUS,"Status"),(0,u.Z)(i,s.TYPE,"Type"),i)},42305:function(e,n,t){t.d(n,{A5:function(){return f},AY:function(){return p},BP:function(){return d},JX:function(){return a},OC:function(){return o},Pc:function(){return h},Tz:function(){return s},d$:function(){return l},lJ:function(){return j},n1:function(){return c}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",u="YYYY-MM-DD HH:mm",c="YYYY-MM-DD";function l(e,n){var t=n.dayAgo,r=n.includeSeconds,c=n.utcFormat,l=i()(e),s=u;return c&&(l=l.utc()),t&&(l=l.subtract(1,"days")),r&&(s=o),l.format(s)}function s(e){var n=l((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:u)}function d(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function f(e){return i()(e).unix()}function p(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function h(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function j(e){return e.padStart(2,"0")}},33766:function(e,n,t){t.d(n,{g_:function(){return f},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),u=t.n(o),c=t(59e3),l=t(24224);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,c.iV)();n=window.location.pathname;var s=o?u().push:u().replace,d=a(a({},l),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,c.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return s(u().router.pathname,p,{shallow:!0})}function f(e,n,t){var i=t.addingMultipleValues,o=t.isList,u=t.itemsPerPage,c=t.pushHistory,s=void 0!==c&&c,f=t.resetLimitParams,p=a({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");p[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),u="".concat(t,"[]"),c=p[u];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?p[u]=(0,l.Od)(c,(function(e){return e===o})):p[u]=c.concat(o):p[u]=[o]})):p=a(a({},p),n),f&&(p._limit=u||20,p._offset=0),d(p,{pushHistory:s})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5477],{1210:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(21831),o=t(82684),l=t(47999),u=t(28358),c=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=o.forwardRef(p),h=t(32063),v=t(15270),b=t(82531),y=t(66166),g=t(3055),w=t(49125),j=t(91427),O=t(24141);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,S=e.before,C=e.beforeWidth,P=e.breadcrumbs,I=e.children,_=e.errors,k=e.headerMenuItems,N=e.navigationItems,H=e.setErrors,D=e.subheaderChildren,z=e.title,E=e.uuid,A=(0,O.i)().width,M="dashboard_after_width_".concat(E),W="dashboard_before_width_".concat(E),T=(0,o.useRef)(null),B=(0,o.useState)(x?p:(0,j.U2)(M,p)),F=B[0],R=B[1],U=(0,o.useState)(!1),q=U[0],L=U[1],G=(0,o.useState)(S?Math.max((0,j.U2)(W,C),13*w.iI):null),Q=G[0],Y=G[1],J=(0,o.useState)(!1),X=J[0],K=J[1],$=(0,o.useState)(null)[1],V=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===V||void 0===V?void 0:V.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return z}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||q||X||null===$||void 0===$||$(T.current.getBoundingClientRect().width)}),[q,F,X,Q,T,$,A]),(0,o.useEffect)((function(){q||(0,j.t8)(M,F)}),[r,q,F,M]),(0,o.useEffect)((function(){X||(0,j.t8)(W,Q)}),[X,Q,W]);var te=(0,y.Z)(p);return(0,o.useEffect)((function(){x&&te!==p&&R(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:N})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:q,afterWidth:F,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(S?Q:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:T,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:K,setBeforeWidth:Y,children:[D&&(0,f.jsx)(m,{children:D}),I]})})]}),_&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(u.Z,Z(Z({},_),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return u},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return a},HY:function(){return l},SA:function(){return d},WH:function(){return o},eC:function(){return c},fF:function(){return u},tC:function(){return s}});var r=t(81132),i=t(9736),o="Workspace",l="Preferences",u="Git settings",c="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:l}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:c}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:u});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),l=t.n(o),u=t(10919),c=t(86673),s=t(19711),a=t(9518),d=t(23831),f=t(49125),p=t(90880),m=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),h=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),v=t(28598),b=t(82684);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(c.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(m,{children:(0,v.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,c=e.uuid,s=t?t():c,a=(0,v.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:i})),children:s});return r?(0,b.createElement)(l(),g(g({},r),{},{key:c,passHref:!0}),(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},c)}))]},i)}))})},j=t(2850),O=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,l=e.uuidWorkspaceSelected,u=(0,x.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(j.M,{children:(0,v.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return l===t&&o===n},sections:(0,O.SA)(u)})}),beforeWidth:j.W,title:"Settings",uuid:"settings/index",children:i})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return o},s7:function(){return i}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],i="password_current",o=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:i},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),i=t(21831),o=t(75582),l=t(21764),u=t(82684),c=t(83455),s=t(60328),a=t(67971),d=t(87372),f=t(55378),p=t(86673),m=t(82944),h=t(81132),v=t(82531),b=t(66166),y=t(63153),g=t(7715),w=t(96510),j=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,O=e.newUser,Z=e.onDeleteSuccess,S=e.onSaveSuccess,C=e.showDelete,P=e.title,I=e.user,_=(0,u.useState)(!0),k=_[0],N=_[1],H=(0,u.useState)({}),D=H[0],z=H[1],E=(0,u.useState)(null),A=E[0],M=E[1],W=(0,c.Db)(O?v.ZP.users.useCreate():v.ZP.users.useUpdate(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(e){var n=e.user,t=(0,g.GL)(n,y.Z3.concat(y.ms).map((function(e){return e.uuid})));M(t),l.Am.success(O?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===S||void 0===S||S(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;l.Am.error(t,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),T=(0,o.Z)(W,2),B=T[0],F=T[1].isLoading,R=(0,c.Db)(v.ZP.users.useDelete(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){null===Z||void 0===Z||Z()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,o.Z)(R,2),q=U[0],L=U[1].isLoading,G=t?(0,i.Z)(t):[];O&&G.push(y.s7);var Q=!G||!G.includes(y.s7),Y=(0,b.Z)(I);return(0,u.useEffect)((function(){!I||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===I||void 0===I?void 0:I.id)||M((0,g.GL)(I,y.Z3.concat(y.ms).map((function(e){return e.uuid})))),null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation?(null===A||void 0===A?void 0:A.password)!==(null===A||void 0===A?void 0:A.password_confirmation)?z({password_confirmation:"Password confirmation does not match."}):!Q||null!==A&&void 0!==A&&A.password_current?z(null):z({password_current:"This field is required."}):null!==A&&void 0!==A&&A.password_current&&Q?null!==A&&void 0!==A&&A.password&&null!==A&&void 0!==A&&A.password_confirmation?z(null):z({password:"This field is required.",password_confirmation:"This field is required."}):null!==A&&void 0!==A&&A.password_current||null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation||z(null)}),[A,Q,I,Y]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.Z,{children:P||"Edit profile"}),(0,j.jsxs)("form",{children:[y.Z3.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t&&!O,label:i,onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==I&&void 0!==I&&I.owner)&&(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsxs)(f.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){N(!1),M((function(n){return x(x({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===I||void 0===I?void 0:I.roles)||"",children:[(0,j.jsx)("option",{value:""}),h.K$.map((function(e){return(0,j.jsx)("option",{value:e,children:h.gG[e]},e)}))]})}),(0,j.jsxs)(p.Z,{mt:5,children:[(0,j.jsx)(d.Z,{children:O?"Password":"Change password"}),y.ms.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t,label:i,meta:{error:null===D||void 0===D?void 0:D[u],touched:!(null===D||void 0===D||!D[u])},onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)}))]}),(0,j.jsx)(p.Z,{mt:5,children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(s.Z,{disabled:k||D&&!(0,g.Qr)(D),loading:F,onClick:function(){return B({user:A})},primary:!0,children:O?"Create new user":"Update user profile"}),C&&(0,j.jsx)(p.Z,{ml:1,children:(0,j.jsx)(s.Z,{danger:!0,loading:L,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&q()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,i,o,l,u,c,s,a,d=t(82394),f=t(26304),p=t(26653),m=t(9518),h=t(33591),v=t(23831),b=t(2005),y=t(31012),g=t(19711),w=t(49125),j=t(86673),O=t(28598),x=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),I=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),_=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,y.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,y.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),D=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),z=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),E=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),A=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,f.Z)(e,x);i?n=E:0===Number(o)?n=I:1===Number(o)?n=l?k:_:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=D:5===Number(o)&&(n=z);var s=(0,O.jsxs)(n,S(S({},c),{},{level:o,children:[u&&(0,O.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?s:(0,O.jsx)(P,{children:s})};A.defaultProps={level:3,weightStyle:6},n.Z=A}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5477],{1210:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(21831),o=t(82684),l=t(47999),u=t(49894),c=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=o.forwardRef(p),h=t(32063),v=t(15270),b=t(82531),y=t(66166),g=t(3055),w=t(49125),j=t(91427),O=t(24141);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,S=e.before,C=e.beforeWidth,P=e.breadcrumbs,I=e.children,_=e.errors,k=e.headerMenuItems,N=e.navigationItems,H=e.setErrors,D=e.subheaderChildren,z=e.title,E=e.uuid,A=(0,O.i)().width,M="dashboard_after_width_".concat(E),W="dashboard_before_width_".concat(E),T=(0,o.useRef)(null),B=(0,o.useState)(x?p:(0,j.U2)(M,p)),F=B[0],R=B[1],U=(0,o.useState)(!1),q=U[0],L=U[1],G=(0,o.useState)(S?Math.max((0,j.U2)(W,C),13*w.iI):null),Q=G[0],Y=G[1],J=(0,o.useState)(!1),X=J[0],K=J[1],$=(0,o.useState)(null)[1],V=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===V||void 0===V?void 0:V.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return z}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||q||X||null===$||void 0===$||$(T.current.getBoundingClientRect().width)}),[q,F,X,Q,T,$,A]),(0,o.useEffect)((function(){q||(0,j.t8)(M,F)}),[r,q,F,M]),(0,o.useEffect)((function(){X||(0,j.t8)(W,Q)}),[X,Q,W]);var te=(0,y.Z)(p);return(0,o.useEffect)((function(){x&&te!==p&&R(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:N})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:q,afterWidth:F,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(S?Q:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:T,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:K,setBeforeWidth:Y,children:[D&&(0,f.jsx)(m,{children:D}),I]})})]}),_&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(u.Z,Z(Z({},_),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return u},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return a},HY:function(){return l},SA:function(){return d},WH:function(){return o},eC:function(){return c},fF:function(){return u},tC:function(){return s}});var r=t(81132),i=t(9736),o="Workspace",l="Preferences",u="Git settings",c="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:l}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:c}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:u});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),l=t.n(o),u=t(10919),c=t(86673),s=t(19711),a=t(9518),d=t(23831),f=t(49125),p=t(90880),m=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),h=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),v=t(28598),b=t(82684);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(c.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(m,{children:(0,v.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,c=e.uuid,s=t?t():c,a=(0,v.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:i})),children:s});return r?(0,b.createElement)(l(),g(g({},r),{},{key:c,passHref:!0}),(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},c)}))]},i)}))})},j=t(2850),O=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,l=e.uuidWorkspaceSelected,u=(0,x.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(j.M,{children:(0,v.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return l===t&&o===n},sections:(0,O.SA)(u)})}),beforeWidth:j.W,title:"Settings",uuid:"settings/index",children:i})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return o},s7:function(){return i}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],i="password_current",o=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:i},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),i=t(21831),o=t(75582),l=t(21764),u=t(82684),c=t(83455),s=t(60328),a=t(67971),d=t(87372),f=t(55378),p=t(86673),m=t(82944),h=t(81132),v=t(82531),b=t(66166),y=t(63153),g=t(7715),w=t(96510),j=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,O=e.newUser,Z=e.onDeleteSuccess,S=e.onSaveSuccess,C=e.showDelete,P=e.title,I=e.user,_=(0,u.useState)(!0),k=_[0],N=_[1],H=(0,u.useState)({}),D=H[0],z=H[1],E=(0,u.useState)(null),A=E[0],M=E[1],W=(0,c.Db)(O?v.ZP.users.useCreate():v.ZP.users.useUpdate(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(e){var n=e.user,t=(0,g.GL)(n,y.Z3.concat(y.ms).map((function(e){return e.uuid})));M(t),l.Am.success(O?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===S||void 0===S||S(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;l.Am.error(t,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),T=(0,o.Z)(W,2),B=T[0],F=T[1].isLoading,R=(0,c.Db)(v.ZP.users.useDelete(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){null===Z||void 0===Z||Z()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,o.Z)(R,2),q=U[0],L=U[1].isLoading,G=t?(0,i.Z)(t):[];O&&G.push(y.s7);var Q=!G||!G.includes(y.s7),Y=(0,b.Z)(I);return(0,u.useEffect)((function(){!I||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===I||void 0===I?void 0:I.id)||M((0,g.GL)(I,y.Z3.concat(y.ms).map((function(e){return e.uuid})))),null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation?(null===A||void 0===A?void 0:A.password)!==(null===A||void 0===A?void 0:A.password_confirmation)?z({password_confirmation:"Password confirmation does not match."}):!Q||null!==A&&void 0!==A&&A.password_current?z(null):z({password_current:"This field is required."}):null!==A&&void 0!==A&&A.password_current&&Q?null!==A&&void 0!==A&&A.password&&null!==A&&void 0!==A&&A.password_confirmation?z(null):z({password:"This field is required.",password_confirmation:"This field is required."}):null!==A&&void 0!==A&&A.password_current||null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation||z(null)}),[A,Q,I,Y]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.Z,{children:P||"Edit profile"}),(0,j.jsxs)("form",{children:[y.Z3.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t&&!O,label:i,onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==I&&void 0!==I&&I.owner)&&(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsxs)(f.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){N(!1),M((function(n){return x(x({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===I||void 0===I?void 0:I.roles)||"",children:[(0,j.jsx)("option",{value:""}),h.K$.map((function(e){return(0,j.jsx)("option",{value:e,children:h.gG[e]},e)}))]})}),(0,j.jsxs)(p.Z,{mt:5,children:[(0,j.jsx)(d.Z,{children:O?"Password":"Change password"}),y.ms.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t,label:i,meta:{error:null===D||void 0===D?void 0:D[u],touched:!(null===D||void 0===D||!D[u])},onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)}))]}),(0,j.jsx)(p.Z,{mt:5,children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(s.Z,{disabled:k||D&&!(0,g.Qr)(D),loading:F,onClick:function(){return B({user:A})},primary:!0,children:O?"Create new user":"Update user profile"}),C&&(0,j.jsx)(p.Z,{ml:1,children:(0,j.jsx)(s.Z,{danger:!0,loading:L,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&q()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,i,o,l,u,c,s,a,d=t(82394),f=t(26304),p=t(26653),m=t(9518),h=t(33591),v=t(23831),b=t(2005),y=t(31012),g=t(19711),w=t(49125),j=t(86673),O=t(28598),x=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),I=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),_=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,y.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,y.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),D=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),z=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),E=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),A=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,f.Z)(e,x);i?n=E:0===Number(o)?n=I:1===Number(o)?n=l?k:_:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=D:5===Number(o)&&(n=z);var s=(0,O.jsxs)(n,S(S({},c),{},{level:o,children:[u&&(0,O.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?s:(0,O.jsx)(P,{children:s})};A.defaultProps={level:3,weightStyle:6},n.Z=A}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5716],{92083:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){t=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function l(e){return void 0===e}function h(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,r){return qn(e,t,n,r,!0).utc()}function _(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=_()),e._pf}function g(e){if(null==e._isValid){var t=y(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=m(NaN);return null!=e?f(y(t),e):y(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var p=r.momentProperties=[],w=!1;function k(e,t){var n,r,i,s=p.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=y(t)),l(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)l(i=t[r=p[n]])||(e[r]=i);return e}function M(e){k(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function D(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function S(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function Y(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,s,a,u=[],l=arguments.length;for(s=0;s<l;s++){if(i="","object"===typeof arguments[s]){for(a in i+="\n["+s+"] ",arguments[0])o(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[s];u.push(i)}S(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var b,O={};function x(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),O[e]||(S(t),O[e]=!0)}function T(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e){var t,n;for(n in e)o(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var n,r=f({},e);for(n in t)o(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)o(e,n)&&!o(t,n)&&a(e[n])&&(r[n]=f({},r[n]));return r}function P(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,b=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function W(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r}function A(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},L={};function E(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(L[e]=i),t&&(L[t[0]]=function(){return A(i.apply(this,arguments),t[1],t[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(U);for(t=0,n=r.length;t<n;t++)L[r[t]]?r[t]=L[r[t]]:r[t]=V(r[t]);return function(t){var i,s="";for(i=0;i<n;i++)s+=T(r[i])?r[i].call(t,e):r[i];return s}}function j(e,t){return e.isValid()?(t=I(t,e.localeData()),F[t]=F[t]||G(t),F[t](e)):e.localeData().invalidDate()}function I(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(H.lastIndex=0;n>=0&&H.test(e);)e=e.replace(H,r),H.lastIndex=0,n-=1;return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Z(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(U).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var $="Invalid date";function q(){return this._invalidDate}var J="%d",B=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function K(e,t,n,r){var i=this._relativeTime[n];return T(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)o(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var se={};function ae(e,t){se[e]=t}function oe(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:se[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ue(e){return e%4===0&&e%100!==0||e%400===0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=le(t)),n}function de(e,t){return function(n){return null!=n?(fe(this,e,n),r.updateOffset(this,t),this):ce(this,e)}}function ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=he(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ke(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function me(e){return T(this[e=re(e)])?this[e]():this}function _e(e,t){if("object"===typeof e){var n,r=oe(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(T(this[e=re(e)]))return this[e](t);return this}var ye,ge=/\d/,ve=/\d\d/,pe=/\d{3}/,we=/\d{4}/,ke=/[+-]?\d{6}/,Me=/\d\d?/,De=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Ye=/\d{1,3}/,be=/\d{1,4}/,Oe=/[+-]?\d{1,6}/,xe=/\d+/,Te=/[+-]?\d+/,Ne=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,Pe=/[+-]?\d+(\.\d{1,3})?/,Re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function We(e,t,n){ye[e]=T(t)?t:function(e,r){return e&&n?n:t}}function Ae(e,t){return o(ye,e)?ye[e](t._strict,t._locale):new RegExp(Ue(e))}function Ue(e){return He(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function He(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Fe={};function Le(e,t){var n,r,i=t;for("string"===typeof e&&(e=[e]),h(t)&&(i=function(e,n){n[t]=he(e)}),r=e.length,n=0;n<r;n++)Fe[e[n]]=i}function Ee(e,t){Le(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ve(e,t,n){null!=t&&o(Fe,e)&&Fe[e](t,n._a,n,e)}var Ge,je=0,Ie=1,ze=2,Ze=3,$e=4,qe=5,Je=6,Be=7,Qe=8;function Xe(e,t){return(e%t+t)%t}function Ke(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Xe(t,12);return e+=(t-n)/12,1===n?ue(e)?29:28:31-n%7%2}Ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),E("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ae("month",8),We("M",Me),We("MM",Me,ve),We("MMM",(function(e,t){return t.monthsShortRegex(e)})),We("MMMM",(function(e,t){return t.monthsRegex(e)})),Le(["M","MM"],(function(e,t){t[Ie]=he(e)-1})),Le(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Ie]=i:y(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Re,it=Re;function st(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function at(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ot(e,t,n){var r,i,s,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ge.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,a))||-1!==(i=Ge.call(this._longMonthsParse,a))?i:null:-1!==(i=Ge.call(this._longMonthsParse,a))||-1!==(i=Ge.call(this._shortMonthsParse,a))?i:null}function ut(e,t,n){var r,i,s;if(this._monthsParseExact)return ot.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function lt(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=he(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ke(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ht(e){return null!=e?(lt(this,e),r.updateOffset(this,!0),this):ce(this,"Month")}function dt(){return Ke(this.year(),this.month())}function ct(e){return this._monthsParseExact?(o(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(o(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],s=[];for(t=0;t<12;t++)n=m([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),s.sort(e),t=0;t<12;t++)r[t]=He(r[t]),i[t]=He(i[t]);for(t=0;t<24;t++)s[t]=He(s[t]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function _t(e){return ue(e)?366:365}E("Y",0,0,(function(){var e=this.year();return e<=9999?A(e,4):"+"+e})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ae("year",1),We("Y",Te),We("YY",Me,ve),We("YYYY",be,we),We("YYYYY",Oe,ke),We("YYYYYY",Oe,ke),Le(["YYYYY","YYYYYY"],je),Le("YYYY",(function(e,t){t[je]=2===e.length?r.parseTwoDigitYear(e):he(e)})),Le("YY",(function(e,t){t[je]=r.parseTwoDigitYear(e)})),Le("Y",(function(e,t){t[je]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var yt=de("FullYear",!0);function gt(){return ue(this.year())}function vt(e,t,n,r,i,s,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,r,i,s,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,s,a),o}function pt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+pt(e,0,r).getUTCDay()-t)%7+r-1}function kt(e,t,n,r,i){var s,a,o=1+7*(t-1)+(7+n-r)%7+wt(e,r,i);return o<=0?a=_t(s=e-1)+o:o>_t(e)?(s=e+1,a=o-_t(e)):(s=e,a=o),{year:s,dayOfYear:a}}function Mt(e,t,n){var r,i,s=wt(e.year(),t,n),a=Math.floor((e.dayOfYear()-s-1)/7)+1;return a<1?r=a+Dt(i=e.year()-1,t,n):a>Dt(e.year(),t,n)?(r=a-Dt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Dt(e,t,n){var r=wt(e,t,n),i=wt(e+1,t,n);return(_t(e)-r+i)/7}function St(e){return Mt(e,this._week.dow,this._week.doy).week}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),We("w",Me),We("ww",Me,ve),We("W",Me),We("WW",Me,ve),Ee(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=he(e)}));var Yt={dow:0,doy:6};function bt(){return this._week.dow}function Ot(){return this._week.doy}function xt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Tt(e){var t=Mt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Nt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ct(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),We("d",Me),We("e",Me),We("E",Me),We("dd",(function(e,t){return t.weekdaysMinRegex(e)})),We("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),We("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ee(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:y(n).invalidWeekday=e})),Ee(["d","e","E"],(function(e,t,n,r){t[r]=he(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Wt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),At="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ut=Re,Ht=Re,Ft=Re;function Lt(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function Et(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Vt(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,n){var r,i,s,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,a))||-1!==(i=Ge.call(this._shortWeekdaysParse,a))||-1!==(i=Ge.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,a))||-1!==(i=Ge.call(this._weekdaysParse,a))||-1!==(i=Ge.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,a))||-1!==(i=Ge.call(this._weekdaysParse,a))||-1!==(i=Ge.call(this._shortWeekdaysParse,a))?i:null}function jt(e,t,n){var r,i,s;if(this._weekdaysParseExact)return Gt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function It(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Nt(e,this.localeData()),this.add(e-t,"d")):t}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Zt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $t(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Bt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Bt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ht),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Bt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bt(){function e(e,t){return t.length-e.length}var t,n,r,i,s,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),r=He(this.weekdaysMin(n,"")),i=He(this.weekdaysShort(n,"")),s=He(this.weekdays(n,"")),a.push(r),o.push(i),u.push(s),l.push(r),l.push(i),l.push(s);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function Kt(e,t){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,Qt),E("k",["kk",2],0,Xt),E("hmm",0,0,(function(){return""+Qt.apply(this)+A(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+Qt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),Kt("a",!0),Kt("A",!1),ne("hour","h"),ae("hour",13),We("a",en),We("A",en),We("H",Me),We("h",Me),We("k",Me),We("HH",Me,ve),We("hh",Me,ve),We("kk",Me,ve),We("hmm",De),We("hmmss",Se),We("Hmm",De),We("Hmmss",Se),Le(["H","HH"],Ze),Le(["k","kk"],(function(e,t,n){var r=he(e);t[Ze]=24===r?0:r})),Le(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Le(["h","hh"],(function(e,t,n){t[Ze]=he(e),y(n).bigHour=!0})),Le("hmm",(function(e,t,n){var r=e.length-2;t[Ze]=he(e.substr(0,r)),t[$e]=he(e.substr(r)),y(n).bigHour=!0})),Le("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ze]=he(e.substr(0,r)),t[$e]=he(e.substr(r,2)),t[qe]=he(e.substr(i)),y(n).bigHour=!0})),Le("Hmm",(function(e,t,n){var r=e.length-2;t[Ze]=he(e.substr(0,r)),t[$e]=he(e.substr(r))})),Le("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ze]=he(e.substr(0,r)),t[$e]=he(e.substr(r,2)),t[qe]=he(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=de("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,on={calendar:R,longDateFormat:z,invalidDate:$,ordinal:J,dayOfMonthOrdinalParse:B,relativeTime:X,months:et,monthsShort:tt,week:Yt,weekdays:Rt,weekdaysMin:At,weekdaysShort:Wt,meridiemParse:nn},un={},ln={};function hn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function cn(e){for(var t,n,r,i,s=0;s<e.length;){for(t=(i=dn(e[s]).split("-")).length,n=(n=dn(e[s+1]))?n.split("-"):null;t>0;){if(r=mn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&hn(i,n)>=t-1)break;t--}s++}return an}function fn(e){return null!=e.match("^[^/\\\\]*$")}function mn(t){var n=null;if(void 0===un[t]&&e&&e.exports&&fn(t))try{n=an._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),_n(n)}catch(r){un[t]=null}return un[t]}function _n(e,t){var n;return e&&((n=l(t)?vn(e):yn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function yn(e,t){if(null!==t){var n,r=on;if(t.abbr=e,null!=un[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new P(C(r,t)),ln[e]&&ln[e].forEach((function(e){yn(e.name,e.config)})),_n(e),un[e]}return delete un[e],null}function gn(e,t){if(null!=t){var n,r,i=on;null!=un[e]&&null!=un[e].parentLocale?un[e].set(C(un[e]._config,t)):(null!=(r=mn(e))&&(i=r._config),t=C(i,t),null==r&&(t.abbr=e),(n=new P(t)).parentLocale=un[e],un[e]=n),_n(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===_n()&&_n(e)):null!=un[e]&&delete un[e]);return un[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!s(e)){if(t=mn(e))return t;e=[e]}return cn(e)}function pn(){return b(un)}function wn(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[Ie]<0||n[Ie]>11?Ie:n[ze]<1||n[ze]>Ke(n[je],n[Ie])?ze:n[Ze]<0||n[Ze]>24||24===n[Ze]&&(0!==n[$e]||0!==n[qe]||0!==n[Je])?Ze:n[$e]<0||n[$e]>59?$e:n[qe]<0||n[qe]>59?qe:n[Je]<0||n[Je]>999?Je:-1,y(e)._overflowDayOfYear&&(t<je||t>ze)&&(t=ze),y(e)._overflowWeeks&&-1===t&&(t=Be),y(e)._overflowWeekday&&-1===t&&(t=Qe),y(e).overflow=t),e}var kn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Yn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bn=/^\/?Date\((-?\d+)/i,On=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tn(e){var t,n,r,i,s,a,o=e._i,u=kn.exec(o)||Mn.exec(o),l=Sn.length,h=Yn.length;if(u){for(y(e).iso=!0,t=0,n=l;t<n;t++)if(Sn[t][1].exec(u[1])){i=Sn[t][0],r=!1!==Sn[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=h;t<n;t++)if(Yn[t][1].exec(u[3])){s=(u[2]||" ")+Yn[t][0];break}if(null==s)return void(e._isValid=!1)}if(!r&&null!=s)return void(e._isValid=!1);if(u[4]){if(!Dn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(s||"")+(a||""),Vn(e)}else e._isValid=!1}function Nn(e,t,n,r,i,s){var a=[Cn(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&a.push(parseInt(s,10)),a}function Cn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(e,t,n){return!e||Wt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Wn(e,t,n){if(e)return xn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function An(e){var t,n=On.exec(Pn(e._i));if(n){if(t=Nn(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],t,e))return;e._a=t,e._tzm=Wn(n[8],n[9],n[10]),e._d=pt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Un(e){var t=bn.exec(e._i);null===t?(Tn(e),!1===e._isValid&&(delete e._isValid,An(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Hn(e,t,n){return null!=e?e:null!=t?t:n}function Fn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ln(e){var t,n,r,i,s,a=[];if(!e._d){for(r=Fn(e),e._w&&null==e._a[ze]&&null==e._a[Ie]&&En(e),null!=e._dayOfYear&&(s=Hn(e._a[je],r[je]),(e._dayOfYear>_t(s)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=pt(s,0,e._dayOfYear),e._a[Ie]=n.getUTCMonth(),e._a[ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ze]&&0===e._a[$e]&&0===e._a[qe]&&0===e._a[Je]&&(e._nextDay=!0,e._a[Ze]=0),e._d=(e._useUTC?pt:vt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ze]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function En(e){var t,n,r,i,s,a,o,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(s=1,a=4,n=Hn(t.GG,e._a[je],Mt(Jn(),1,4).year),r=Hn(t.W,1),((i=Hn(t.E,1))<1||i>7)&&(u=!0)):(s=e._locale._week.dow,a=e._locale._week.doy,l=Mt(Jn(),s,a),n=Hn(t.gg,e._a[je],l.year),r=Hn(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+s,(t.e<0||t.e>6)&&(u=!0)):i=s),r<1||r>Dt(n,s,a)?y(e)._overflowWeeks=!0:null!=u?y(e)._overflowWeekday=!0:(o=kt(n,r,i,s,a),e._a[je]=o.year,e._dayOfYear=o.dayOfYear)}function Vn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],y(e).empty=!0;var t,n,i,s,a,o,u,l=""+e._i,h=l.length,d=0;for(u=(i=I(e._f,e._locale).match(U)||[]).length,t=0;t<u;t++)s=i[t],(n=(l.match(Ae(s,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&y(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),d+=n.length),L[s]?(n?y(e).empty=!1:y(e).unusedTokens.push(s),Ve(s,n,e)):e._strict&&!n&&y(e).unusedTokens.push(s);y(e).charsLeftOver=h-d,l.length>0&&y(e).unusedInput.push(l),e._a[Ze]<=12&&!0===y(e).bigHour&&e._a[Ze]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[Ze]=Gn(e._locale,e._a[Ze],e._meridiem),null!==(o=y(e).era)&&(e._a[je]=e._locale.erasConvertYear(o,e._a[je])),Ln(e),wn(e)}else An(e);else Tn(e)}function Gn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function jn(e){var t,n,r,i,s,a,o=!1,u=e._f.length;if(0===u)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)s=0,a=!1,t=k({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Vn(t),g(t)&&(a=!0),s+=y(t).charsLeftOver,s+=10*y(t).unusedTokens.length,y(t).score=s,o?s<r&&(r=s,n=t):(null==r||s<r||a)&&(r=s,n=t,a&&(o=!0));f(e,n||t)}function In(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=c([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Ln(e)}}function zn(e){var t=new M(wn(Zn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Zn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),D(t)?new M(wn(t)):(d(t)?e._d=t:s(n)?jn(e):n?Vn(e):$n(e),g(e)||(e._d=null),e))}function $n(e){var t=e._i;l(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Un(e):s(t)?(e._a=c(t.slice(0),(function(e){return parseInt(e,10)})),Ln(e)):a(t)?In(e):h(t)?e._d=new Date(t):r.createFromInputFallback(e)}function qn(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&u(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,zn(o)}function Jn(e,t,n,r){return qn(e,t,n,r,!1)}r.createFromInputFallback=Y("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Bn=Y("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Qn=Y("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Xn(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Kn(){return Xn("isBefore",[].slice.call(arguments,0))}function er(){return Xn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,i=nr.length;for(t in e)if(o(e,t)&&(-1===Ge.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==he(e[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function sr(){return xr(NaN)}function ar(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function or(e){return e instanceof ar}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function lr(e,t,n){var r,i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&he(e[r])!==he(t[r]))&&a++;return a+s}function hr(e,t){E(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)}))}hr("Z",":"),hr("ZZ",""),We("Z",Ce),We("ZZ",Ce),Le(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=cr(Ce,e)}));var dr=/([\+\-]|\d\d)/gi;function cr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+he(n[2]))?0:"+"===n[0]?r:-r}function fr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(D(e)||d(e)?e.valueOf():Jn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Jn(e).local()}function mr(e){return-Math.round(e._d.getTimezoneOffset())}function _r(e,t,n){var i,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=cr(Ce,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),s!==e&&(!t||this._changeInProgress?Rr(this,xr(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:mr(this)}function yr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function pr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=cr(Ne,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Jn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function kr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Mr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),(t=Zn(t))._a?(e=t._isUTC?m(t._a):Jn(t._a),this._isDSTShifted=this.isValid()&&lr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Dr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function Yr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var br=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Or=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xr(e,t){var n,r,i,s=e,a=null;return or(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(a=br.exec(e))?(n="-"===a[1]?-1:1,s={y:0,d:he(a[ze])*n,h:he(a[Ze])*n,m:he(a[$e])*n,s:he(a[qe])*n,ms:he(ur(1e3*a[Je]))*n}):(a=Or.exec(e))?(n="-"===a[1]?-1:1,s={y:Tr(a[2],n),M:Tr(a[3],n),w:Tr(a[4],n),d:Tr(a[5],n),h:Tr(a[6],n),m:Tr(a[7],n),s:Tr(a[8],n)}):null==s?s={}:"object"===typeof s&&("from"in s||"to"in s)&&(i=Cr(Jn(s.from),Jn(s.to)),(s={}).ms=i.milliseconds,s.M=i.months),r=new ar(s),or(e)&&o(e,"_locale")&&(r._locale=e._locale),or(e)&&o(e,"_isValid")&&(r._isValid=e._isValid),r}function Tr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Nr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Cr(e,t){var n;return e.isValid()&&t.isValid()?(t=fr(t,e),e.isBefore(t)?n=Nr(e,t):((n=Nr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(x(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Rr(this,xr(n,r),e),this}}function Rr(e,t,n,i){var s=t._milliseconds,a=ur(t._days),o=ur(t._months);e.isValid()&&(i=null==i||i,o&&lt(e,ce(e,"Month")+o*n),a&&fe(e,"Date",ce(e,"Date")+a*n),s&&e._d.setTime(e._d.valueOf()+s*n),i&&r.updateOffset(e,a||o))}xr.fn=ar.prototype,xr.invalid=sr;var Wr=Pr(1,"add"),Ar=Pr(-1,"subtract");function Ur(e){return"string"===typeof e||e instanceof String}function Hr(e){return D(e)||d(e)||Ur(e)||h(e)||Lr(e)||Fr(e)||null===e||void 0===e}function Fr(e){var t,n,r=a(e)&&!u(e),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(t=0;t<l;t+=1)n=s[t],i=i||o(e,n);return r&&i}function Lr(e){var t=s(e),n=!1;return t&&(n=0===e.filter((function(t){return!h(t)&&Ur(e)})).length),t&&n}function Er(e){var t,n,r=a(e)&&!u(e),i=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)n=s[t],i=i||o(e,n);return r&&i}function Vr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gr(e,t){1===arguments.length&&(arguments[0]?Hr(arguments[0])?(e=arguments[0],t=void 0):Er(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Jn(),i=fr(n,this).startOf("day"),s=r.calendarFormat(this,i)||"sameElse",a=t&&(T(t[s])?t[s].call(this,n):t[s]);return this.format(a||this.localeData().calendar(s,this,Jn(n)))}function jr(){return new M(this)}function Ir(e,t){var n=D(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function zr(e,t){var n=D(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Zr(e,t,n,r){var i=D(e)?e:Jn(e),s=D(t)?t:Jn(t);return!!(this.isValid()&&i.isValid()&&s.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(s,n):!this.isAfter(s,n))}function $r(e,t){var n,r=D(e)?e:Jn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function qr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Jr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Br(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=fr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":s=Qr(this,r)/12;break;case"month":s=Qr(this,r);break;case"quarter":s=Qr(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:le(s)}function Qr(e,t){if(e.date()<t.date())return-Qr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Kr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?j(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",s="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=s+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=j(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(D(e)&&e.isValid()||Jn(e).isValid())?xr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.from(Jn(),e)}function ii(e,t){return this.isValid()&&(D(e)&&e.isValid()||Jn(e).isValid())?xr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(Jn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=Y("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ui(){return this._locale}var li=1e3,hi=60*li,di=60*hi,ci=3506328*di;function fi(e,t){return(e%t+t)%t}function mi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ci:new Date(e,t,n).valueOf()}function _i(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ci:Date.UTC(e,t,n)}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?_i:mi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fi(t+(this._isUTC?0:this.utcOffset()*hi),di);break;case"minute":t=this._d.valueOf(),t-=fi(t,hi);break;case"second":t=this._d.valueOf(),t-=fi(t,li)}return this._d.setTime(t),r.updateOffset(this,!0),this}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?_i:mi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-fi(t+(this._isUTC?0:this.utcOffset()*hi),di)-1;break;case"minute":t=this._d.valueOf(),t+=hi-fi(t,hi)-1;break;case"second":t=this._d.valueOf(),t+=li-fi(t,li)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-6e4*(this._offset||0)}function pi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function ki(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Mi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Di(){return this.isValid()?this.toISOString():null}function Si(){return g(this)}function Yi(){return f({},y(this))}function bi(){return y(this).overflow}function Oi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xi(e,t){var n,i,s,a=this._eras||vn("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"===typeof a[n].since&&(s=r(a[n].since).startOf("day"),a[n].since=s.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":s=r(a[n].until).startOf("day").valueOf(),a[n].until=s.valueOf()}return a}function Ti(e,t,n){var r,i,s,a,o,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(s=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(s===e)return u[r];break;case"NNNNN":if(o===e)return u[r]}else if([s,a,o].indexOf(e)>=0)return u[r]}function Ni(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ci(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ri(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Wi(){var e,t,n,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return(this.year()-r(s[e].since).year())*n+s[e].offset;return this.year()}function Ai(e){return o(this,"_erasNameRegex")||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function Ui(e){return o(this,"_erasAbbrRegex")||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Hi(e){return o(this,"_erasNarrowRegex")||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fi(e,t){return t.erasAbbrRegex(e)}function Li(e,t){return t.erasNameRegex(e)}function Ei(e,t){return t.erasNarrowRegex(e)}function Vi(e,t){return t._eraYearOrdinalRegex||xe}function Gi(){var e,t,n=[],r=[],i=[],s=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(He(a[e].name)),n.push(He(a[e].abbr)),i.push(He(a[e].narrow)),s.push(He(a[e].name)),s.push(He(a[e].abbr)),s.push(He(a[e].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ji(e,t){E(0,[e,e.length],0,t)}function Ii(e){return Bi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zi(e){return Bi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Zi(){return Dt(this.year(),1,4)}function $i(){return Dt(this.isoWeekYear(),1,4)}function qi(){var e=this.localeData()._week;return Dt(this.year(),e.dow,e.doy)}function Ji(){var e=this.localeData()._week;return Dt(this.weekYear(),e.dow,e.doy)}function Bi(e,t,n,r,i){var s;return null==e?Mt(this,r,i).year:(t>(s=Dt(e,r,i))&&(t=s),Qi.call(this,e,t,n,r,i))}function Qi(e,t,n,r,i){var s=kt(e,t,n,r,i),a=pt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Xi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),We("N",Fi),We("NN",Fi),We("NNN",Fi),We("NNNN",Li),We("NNNNN",Ei),Le(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?y(n).era=i:y(n).invalidEra=e})),We("y",xe),We("yy",xe),We("yyy",xe),We("yyyy",xe),We("yo",Vi),Le(["y","yy","yyy","yyyy"],je),Le(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[je]=n._locale.eraYearOrdinalParse(e,i):t[je]=parseInt(e,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),We("G",Te),We("g",Te),We("GG",Me,ve),We("gg",Me,ve),We("GGGG",be,we),We("gggg",be,we),We("GGGGG",Oe,ke),We("ggggg",Oe,ke),Ee(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=he(e)})),Ee(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),We("Q",ge),Le("Q",(function(e,t){t[Ie]=3*(he(e)-1)})),E("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),We("D",Me),We("DD",Me,ve),We("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Le(["D","DD"],ze),Le("Do",(function(e,t){t[ze]=he(e.match(Me)[0])}));var Ki=de("Date",!0);function es(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}E("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),We("DDD",Ye),We("DDDD",pe),Le(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),E("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),We("m",Me),We("mm",Me,ve),Le(["m","mm"],$e);var ts=de("Minutes",!1);E("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),We("s",Me),We("ss",Me,ve),Le(["s","ss"],qe);var ns,rs,is=de("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),We("S",Ye,ge),We("SS",Ye,ve),We("SSS",Ye,pe),ns="SSSS";ns.length<=9;ns+="S")We(ns,xe);function ss(e,t){t[Je]=he(1e3*("0."+e))}for(ns="S";ns.length<=9;ns+="S")Le(ns,ss);function as(){return this._isUTC?"UTC":""}function os(){return this._isUTC?"Coordinated Universal Time":""}rs=de("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var us=M.prototype;function ls(e){return Jn(1e3*e)}function hs(){return Jn.apply(null,arguments).parseZone()}function ds(e){return e}us.add=Wr,us.calendar=Gr,us.clone=jr,us.diff=Br,us.endOf=gi,us.format=ti,us.from=ni,us.fromNow=ri,us.to=ii,us.toNow=si,us.get=me,us.invalidAt=bi,us.isAfter=Ir,us.isBefore=zr,us.isBetween=Zr,us.isSame=$r,us.isSameOrAfter=qr,us.isSameOrBefore=Jr,us.isValid=Si,us.lang=oi,us.locale=ai,us.localeData=ui,us.max=Qn,us.min=Bn,us.parsingFlags=Yi,us.set=_e,us.startOf=yi,us.subtract=Ar,us.toArray=ki,us.toObject=Mi,us.toDate=wi,us.toISOString=Kr,us.inspect=ei,"undefined"!==typeof Symbol&&null!=Symbol.for&&(us[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),us.toJSON=Di,us.toString=Xr,us.unix=pi,us.valueOf=vi,us.creationData=Oi,us.eraName=Ci,us.eraNarrow=Pi,us.eraAbbr=Ri,us.eraYear=Wi,us.year=yt,us.isLeapYear=gt,us.weekYear=Ii,us.isoWeekYear=zi,us.quarter=us.quarters=Xi,us.month=ht,us.daysInMonth=dt,us.week=us.weeks=xt,us.isoWeek=us.isoWeeks=Tt,us.weeksInYear=qi,us.weeksInWeekYear=Ji,us.isoWeeksInYear=Zi,us.isoWeeksInISOWeekYear=$i,us.date=Ki,us.day=us.days=It,us.weekday=zt,us.isoWeekday=Zt,us.dayOfYear=es,us.hour=us.hours=rn,us.minute=us.minutes=ts,us.second=us.seconds=is,us.millisecond=us.milliseconds=rs,us.utcOffset=_r,us.utc=gr,us.local=vr,us.parseZone=pr,us.hasAlignedHourOffset=wr,us.isDST=kr,us.isLocal=Dr,us.isUtcOffset=Sr,us.isUtc=Yr,us.isUTC=Yr,us.zoneAbbr=as,us.zoneName=os,us.dates=Y("dates accessor is deprecated. Use date instead.",Ki),us.months=Y("months accessor is deprecated. Use month instead",ht),us.years=Y("years accessor is deprecated. Use year instead",yt),us.zone=Y("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),us.isDSTShifted=Y("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Mr);var cs=P.prototype;function fs(e,t,n,r){var i=vn(),s=m().set(r,t);return i[n](s,e)}function ms(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return fs(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fs(e,r,n,"month");return i}function _s(e,t,n,r){"boolean"===typeof e?(h(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,h(t)&&(n=t,t=void 0),t=t||"");var i,s=vn(),a=e?s._week.dow:0,o=[];if(null!=n)return fs(t,(n+a)%7,r,"day");for(i=0;i<7;i++)o[i]=fs(t,(i+a)%7,r,"day");return o}function ys(e,t){return ms(e,t,"months")}function gs(e,t){return ms(e,t,"monthsShort")}function vs(e,t,n){return _s(e,t,n,"weekdays")}function ps(e,t,n){return _s(e,t,n,"weekdaysShort")}function ws(e,t,n){return _s(e,t,n,"weekdaysMin")}cs.calendar=W,cs.longDateFormat=Z,cs.invalidDate=q,cs.ordinal=Q,cs.preparse=ds,cs.postformat=ds,cs.relativeTime=K,cs.pastFuture=ee,cs.set=N,cs.eras=xi,cs.erasParse=Ti,cs.erasConvertYear=Ni,cs.erasAbbrRegex=Ui,cs.erasNameRegex=Ai,cs.erasNarrowRegex=Hi,cs.months=st,cs.monthsShort=at,cs.monthsParse=ut,cs.monthsRegex=ft,cs.monthsShortRegex=ct,cs.week=St,cs.firstDayOfYear=Ot,cs.firstDayOfWeek=bt,cs.weekdays=Lt,cs.weekdaysMin=Vt,cs.weekdaysShort=Et,cs.weekdaysParse=jt,cs.weekdaysRegex=$t,cs.weekdaysShortRegex=qt,cs.weekdaysMinRegex=Jt,cs.isPM=tn,cs.meridiem=sn,_n("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=Y("moment.lang is deprecated. Use moment.locale instead.",_n),r.langData=Y("moment.langData is deprecated. Use moment.localeData instead.",vn);var ks=Math.abs;function Ms(){var e=this._data;return this._milliseconds=ks(this._milliseconds),this._days=ks(this._days),this._months=ks(this._months),e.milliseconds=ks(e.milliseconds),e.seconds=ks(e.seconds),e.minutes=ks(e.minutes),e.hours=ks(e.hours),e.months=ks(e.months),e.years=ks(e.years),this}function Ds(e,t,n,r){var i=xr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Ss(e,t){return Ds(this,e,t,1)}function Ys(e,t){return Ds(this,e,t,-1)}function bs(e){return e<0?Math.floor(e):Math.ceil(e)}function Os(){var e,t,n,r,i,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*bs(Ts(o)+a),a=0,o=0),u.milliseconds=s%1e3,e=le(s/1e3),u.seconds=e%60,t=le(e/60),u.minutes=t%60,n=le(t/60),u.hours=n%24,a+=le(n/24),o+=i=le(xs(a)),a-=bs(Ts(i)),r=le(o/12),o%=12,u.days=a,u.months=o,u.years=r,this}function xs(e){return 4800*e/146097}function Ts(e){return 146097*e/4800}function Ns(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+xs(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ts(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Cs(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*he(this._months/12):NaN}function Ps(e){return function(){return this.as(e)}}var Rs=Ps("ms"),Ws=Ps("s"),As=Ps("m"),Us=Ps("h"),Hs=Ps("d"),Fs=Ps("w"),Ls=Ps("M"),Es=Ps("Q"),Vs=Ps("y");function Gs(){return xr(this)}function js(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Is(e){return function(){return this.isValid()?this._data[e]:NaN}}var zs=Is("milliseconds"),Zs=Is("seconds"),$s=Is("minutes"),qs=Is("hours"),Js=Is("days"),Bs=Is("months"),Qs=Is("years");function Xs(){return le(this.days()/7)}var Ks=Math.round,ea={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ta(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function na(e,t,n,r){var i=xr(e).abs(),s=Ks(i.as("s")),a=Ks(i.as("m")),o=Ks(i.as("h")),u=Ks(i.as("d")),l=Ks(i.as("M")),h=Ks(i.as("w")),d=Ks(i.as("y")),c=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||a<=1&&["m"]||a<n.m&&["mm",a]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(c=c||h<=1&&["w"]||h<n.w&&["ww",h]),(c=c||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=t,c[3]=+e>0,c[4]=r,ta.apply(null,c)}function ra(e){return void 0===e?Ks:"function"===typeof e&&(Ks=e,!0)}function ia(e,t){return void 0!==ea[e]&&(void 0===t?ea[e]:(ea[e]=t,"s"===e&&(ea.ss=t-1),!0))}function sa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,s=ea;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(s=Object.assign({},ea,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),r=na(this,!i,s,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var aa=Math.abs;function oa(e){return(e>0)-(e<0)||+e}function ua(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,s,a,o,u=aa(this._milliseconds)/1e3,l=aa(this._days),h=aa(this._months),d=this.asSeconds();return d?(e=le(u/60),t=le(e/60),u%=60,e%=60,n=le(h/12),h%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",s=oa(this._months)!==oa(d)?"-":"",a=oa(this._days)!==oa(d)?"-":"",o=oa(this._milliseconds)!==oa(d)?"-":"",i+"P"+(n?s+n+"Y":"")+(h?s+h+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+r+"S":"")):"P0D"}var la=ar.prototype;return la.isValid=ir,la.abs=Ms,la.add=Ss,la.subtract=Ys,la.as=Ns,la.asMilliseconds=Rs,la.asSeconds=Ws,la.asMinutes=As,la.asHours=Us,la.asDays=Hs,la.asWeeks=Fs,la.asMonths=Ls,la.asQuarters=Es,la.asYears=Vs,la.valueOf=Cs,la._bubble=Os,la.clone=Gs,la.get=js,la.milliseconds=zs,la.seconds=Zs,la.minutes=$s,la.hours=qs,la.days=Js,la.weeks=Xs,la.months=Bs,la.years=Qs,la.humanize=sa,la.toISOString=ua,la.toString=ua,la.toJSON=ua,la.locale=ai,la.localeData=ui,la.toIsoString=Y("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),la.lang=oi,E("X",0,0,"unix"),E("x",0,0,"valueOf"),We("x",Te),We("X",Pe),Le("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Le("x",(function(e,t,n){n._d=new Date(he(e))})),r.version="2.29.4",i(Jn),r.fn=us,r.min=Kn,r.max=er,r.now=tr,r.utc=m,r.unix=ls,r.months=ys,r.isDate=d,r.locale=_n,r.invalid=v,r.duration=xr,r.isMoment=D,r.weekdays=vs,r.parseZone=hs,r.localeData=vn,r.isDuration=or,r.monthsShort=gs,r.weekdaysMin=ws,r.defineLocale=yn,r.updateLocale=gn,r.locales=pn,r.weekdaysShort=ps,r.normalizeUnits=re,r.relativeTimeRounding=ra,r.relativeTimeThreshold=ia,r.calendarFormat=Vr,r.prototype=us,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},17717:function(e,t,n){var r=n(554);!function(){"use strict";var t={977:function(e){function t(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,a=0,o=0;o<=e.length;++o){if(o<e.length)n=e.charCodeAt(o);else{if(47===n)break;n=47}if(47===n){if(s===o-1||1===a);else if(s!==o-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",i=0):i=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),s=o,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=o,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,o):r=e.slice(s+1,o),i=o-s-1;s=o,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var i={resolve:function(){for(var e,i="",s=!1,a=arguments.length-1;a>=-1&&!s;a--){var o;a>=0?o=arguments[a]:(void 0===e&&(e=r.cwd()),o=e),t(o),0!==o.length&&(i=o+"/"+i,s=47===o.charCodeAt(0))}return i=n(i,!s),s?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var s=e.length,a=s-r,o=1;o<n.length&&47===n.charCodeAt(o);++o);for(var u=n.length-o,l=a<u?a:u,h=-1,d=0;d<=l;++d){if(d===l){if(u>l){if(47===n.charCodeAt(o+d))return n.slice(o+d+1);if(0===d)return n.slice(o+d)}else a>l&&(47===e.charCodeAt(r+d)?h=d:0===d&&(h=0));break}var c=e.charCodeAt(r+d);if(c!==n.charCodeAt(o+d))break;47===c&&(h=d)}var f="";for(d=r+h+1;d<=s;++d)d!==s&&47!==e.charCodeAt(d)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(o+h):(o+=h,47===n.charCodeAt(o)&&++o,n.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!s){i=a;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!==typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var o=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){i=r+1;break}}else-1===u&&(a=!1,u=r+1),o>=0&&(l===n.charCodeAt(o)?-1===--o&&(s=r):(o=-1,s=u))}return i===s?s=u:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else-1===s&&(a=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,a=0,o=e.length-1;o>=0;--o){var u=e.charCodeAt(o);if(47!==u)-1===i&&(s=!1,i=o+1),46===u?-1===n?n=o:1!==a&&(a=1):-1!==n&&(a=-1);else if(!s){r=o+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var a=-1,o=0,u=-1,l=!0,h=e.length-1,d=0;h>=r;--h)if(47!==(i=e.charCodeAt(h)))-1===u&&(l=!1,u=h+1),46===i?-1===a?a=h:1!==d&&(d=1):-1!==a&&(d=-1);else if(!l){o=h+1;break}return-1===a||-1===u||0===d||1===d&&a===u-1&&a===o+1?-1!==u&&(n.base=n.name=0===o&&s?e.slice(1,u):e.slice(o,u)):(0===o&&s?(n.name=e.slice(1,a),n.base=e.slice(1,u)):(n.name=e.slice(o,a),n.base=e.slice(o,u)),n.ext=e.slice(a,u)),o>0?n.dir=e.slice(0,o-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var s=n[e]={exports:{}},a=!0;try{t[e](s,s.exports,i),a=!1}finally{a&&delete n[e]}return s.exports}i.ab="//";var s=i(977);e.exports=s}()}}]);