@nylas/react 1.1.0-canary.18 → 1.1.0-canary.19

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.
Files changed (133) hide show
  1. package/dist/{add-circle-icon_2.entry-3b13ee64.js → add-circle-icon_2.entry-3ca337a6.js} +5 -5
  2. package/dist/{add-circle-icon_2.entry-3091976b.cjs → add-circle-icon_2.entry-adde5fdf.cjs} +1 -1
  3. package/dist/{archive-icon_7.entry-c2b6d860.cjs → archive-icon_7.entry-2b56ef80.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-8932618a.js → archive-icon_7.entry-896a1054.js} +13 -13
  5. package/dist/{arrow-icon.entry-a159bee8.cjs → arrow-icon.entry-0288f3fc.cjs} +1 -1
  6. package/dist/arrow-icon.entry-9aaa93fd.js +15 -0
  7. package/dist/{bold-icon_3.entry-447d0537.js → bold-icon_3.entry-0061cf1f.js} +4 -4
  8. package/dist/{bold-icon_3.entry-c51e1af3.cjs → bold-icon_3.entry-e7810620.cjs} +1 -1
  9. package/dist/button-component_4.entry-276606e6.js +115 -0
  10. package/dist/button-component_4.entry-e53a8f37.cjs +1 -0
  11. package/dist/calendar-agenda-fill-icon_35.entry-a19cae9c.js +4178 -0
  12. package/dist/calendar-agenda-fill-icon_35.entry-fa968081.cjs +7 -0
  13. package/dist/{calendar-cancel-icon.entry-a78f27bc.js → calendar-cancel-icon.entry-71eae711.js} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-805febcc.cjs → calendar-cancel-icon.entry-8e8b25b6.cjs} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-4a0fd7bd.cjs → calendar-check-icon_2.entry-562e98cf.cjs} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-7c8b6c92.js → calendar-check-icon_2.entry-6f971ca2.js} +1 -1
  17. package/dist/{calendar-icon.entry-1fc018b4.cjs → calendar-icon.entry-3a59af30.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-96f9727f.js → calendar-icon.entry-3e496896.js} +1 -1
  19. package/dist/{chevron-icon_3.entry-25d90239.js → chevron-icon_3.entry-7eac0ed5.js} +37 -34
  20. package/dist/chevron-icon_3.entry-7ff10540.cjs +1 -0
  21. package/dist/{clock-icon_2.entry-c1b22ed4.js → clock-icon_2.entry-120d672e.js} +5 -5
  22. package/dist/{clock-icon_2.entry-2406c3d0.cjs → clock-icon_2.entry-43873262.cjs} +1 -1
  23. package/dist/{constants-f34b9c6e-b774916c.cjs → constants-7ce66b44-a951d78c.cjs} +5 -5
  24. package/dist/{constants-f34b9c6e-f1c4dd0d.js → constants-7ce66b44-e7ca66c2.js} +484 -383
  25. package/dist/copy-icon_4.entry-57874c4f.cjs +1 -0
  26. package/dist/copy-icon_4.entry-9a949d24.js +45 -0
  27. package/dist/{document-refresh-icon.entry-570f9c9d.js → document-refresh-icon.entry-f0d95ac8.js} +5 -5
  28. package/dist/document-refresh-icon.entry-f1d3f32d.cjs +1 -0
  29. package/dist/elements/index.d.ts +14 -0
  30. package/dist/{elements-dc5b338e-550a6cb1.cjs → elements-dc5b338e-62b53496.cjs} +1 -1
  31. package/dist/{elements-dc5b338e-cafa7a55.js → elements-dc5b338e-974e2077.js} +1 -1
  32. package/dist/{focus-visible-e8093c16-022799ce.js → focus-visible-e8093c16-7a512fc0.js} +1 -1
  33. package/dist/{focus-visible-e8093c16-c14162e8.cjs → focus-visible-e8093c16-923e1041.cjs} +1 -1
  34. package/dist/{forward-icon_6.entry-55752b23.cjs → forward-icon_6.entry-45b70066.cjs} +3 -3
  35. package/dist/{forward-icon_6.entry-9b832146.js → forward-icon_6.entry-675c0b73.js} +9 -9
  36. package/dist/{globe-icon.entry-2b61820e.js → globe-icon.entry-3296e427.js} +2 -2
  37. package/dist/{globe-icon.entry-dabe7b8b.cjs → globe-icon.entry-7ecd6221.cjs} +1 -1
  38. package/dist/google-logo-icon_4.entry-aa9f8b35.js +584 -0
  39. package/dist/google-logo-icon_4.entry-fd734a59.cjs +1 -0
  40. package/dist/index-53420959-1c0d390d.js +5 -0
  41. package/dist/index-53420959-8e7b10db.cjs +1 -0
  42. package/dist/{index-812162da.js → index-5efb84b8.js} +813 -793
  43. package/dist/{index-6d9eeb53-3edef246.js → index-6d9eeb53-4e2a7f9f.js} +2 -2
  44. package/dist/{index-6d9eeb53-3049fc04.cjs → index-6d9eeb53-aa1dfa96.cjs} +1 -1
  45. package/dist/index-d36b8fb8.cjs +42 -0
  46. package/dist/{index.es-9cc0eb3c-52226859.js → index.es-9cc0eb3c-65f8af0c.js} +1 -1
  47. package/dist/{index.es-9cc0eb3c-0c99c055.cjs → index.es-9cc0eb3c-8eefd4fc.cjs} +1 -1
  48. package/dist/{info-icon_2.entry-5f6b9af8.cjs → info-icon_2.entry-e612f1d6.cjs} +1 -1
  49. package/dist/{info-icon_2.entry-2fe6c16c.js → info-icon_2.entry-f06c8dd0.js} +8 -8
  50. package/dist/{input-dropdown_2.entry-dbdb5aa3.cjs → input-dropdown_2.entry-ad380260.cjs} +1 -1
  51. package/dist/{input-dropdown_2.entry-dbd0d6f4.js → input-dropdown_2.entry-ccd95678.js} +3 -3
  52. package/dist/{loading-icon.entry-e179f122.cjs → loading-icon.entry-678a6b3f.cjs} +1 -1
  53. package/dist/loading-icon.entry-9e6670d5.js +15 -0
  54. package/dist/{mailbox-store-64b4ef7c-0eac526c.cjs → mailbox-store-64b4ef7c-9bd02ffd.cjs} +1 -1
  55. package/dist/{mailbox-store-64b4ef7c-22a6c565.js → mailbox-store-64b4ef7c-b56d5e78.js} +2 -2
  56. package/dist/multi-select-dropdown.entry-5bb80d89.cjs +1 -0
  57. package/dist/multi-select-dropdown.entry-edf10867.js +91 -0
  58. package/dist/{nylas-booked-event-card_10.entry-e0990f5b.js → nylas-booked-event-card_10.entry-92f6e85d.js} +267 -235
  59. package/dist/nylas-booked-event-card_10.entry-ad4671b2.cjs +1 -0
  60. package/dist/{nylas-custom-booking-flow.entry-bc64af5f.js → nylas-custom-booking-flow.entry-b39a2bf2.js} +3 -3
  61. package/dist/{nylas-custom-booking-flow.entry-898c8cc9.cjs → nylas-custom-booking-flow.entry-cef0041a.cjs} +1 -1
  62. package/dist/{nylas-form-card.entry-c564b52e.js → nylas-form-card.entry-bf4545e2.js} +11 -11
  63. package/dist/{nylas-form-card.entry-0c71f4fc.cjs → nylas-form-card.entry-fba5d623.cjs} +1 -1
  64. package/dist/{nylas-if-state.entry-e9486e12.js → nylas-if-state.entry-2739dc10.js} +3 -3
  65. package/dist/{nylas-if-state.entry-ff6a2046.cjs → nylas-if-state.entry-d7b818a6.cjs} +1 -1
  66. package/dist/{nylas-list-folders.entry-90716d2b.cjs → nylas-list-folders.entry-0ec6ba20.cjs} +1 -1
  67. package/dist/{nylas-list-folders.entry-0258af1e.js → nylas-list-folders.entry-3197e390.js} +7 -7
  68. package/dist/{nylas-list-threads.entry-21edf012.cjs → nylas-list-threads.entry-2a7e1e84.cjs} +1 -1
  69. package/dist/{nylas-list-threads.entry-1abcdd30.js → nylas-list-threads.entry-9004c490.js} +3 -3
  70. package/dist/{nylas-login.entry-2e0ce95e.cjs → nylas-login.entry-c2ffd6a5.cjs} +1 -1
  71. package/dist/{nylas-login.entry-ba7383ac.js → nylas-login.entry-f2927406.js} +3 -3
  72. package/dist/{nylas-mailbox-pagination.entry-ba6beb08.cjs → nylas-mailbox-pagination.entry-839c9ad3.cjs} +1 -1
  73. package/dist/{nylas-mailbox-pagination.entry-f6186560.js → nylas-mailbox-pagination.entry-e9356835.js} +2 -2
  74. package/dist/{nylas-mailbox-toolbar-button.entry-e18059b0.js → nylas-mailbox-toolbar-button.entry-298a3c47.js} +10 -10
  75. package/dist/{nylas-mailbox-toolbar-button.entry-0875aadb.cjs → nylas-mailbox-toolbar-button.entry-43812d51.cjs} +1 -1
  76. package/dist/{nylas-mailbox.entry-2e3815ed.js → nylas-mailbox.entry-aa42f6c4.js} +4 -4
  77. package/dist/{nylas-mailbox.entry-bb2905bf.cjs → nylas-mailbox.entry-cf13ddf5.cjs} +1 -1
  78. package/dist/{nylas-provider.entry-69ee5061.js → nylas-provider.entry-1a3a195f.js} +39 -39
  79. package/dist/{nylas-provider.entry-51c5cdbf.cjs → nylas-provider.entry-843b5593.cjs} +1 -1
  80. package/dist/nylas-scheduler-editor.entry-048e7a8f.cjs +2 -0
  81. package/dist/{nylas-scheduler-editor.entry-d4a9afb1.js → nylas-scheduler-editor.entry-d56d6d2a.js} +138 -119
  82. package/dist/nylas-scheduling.entry-0ad9b1d0.cjs +1 -0
  83. package/dist/{nylas-scheduling.entry-f82a2822.js → nylas-scheduling.entry-7039a890.js} +52 -52
  84. package/dist/{nylas-threads-refresh.entry-99001756.cjs → nylas-threads-refresh.entry-9cae6ac8.cjs} +1 -1
  85. package/dist/{nylas-threads-refresh.entry-72482d2f.js → nylas-threads-refresh.entry-d951050a.js} +10 -10
  86. package/dist/nylas-threads-search.entry-0d34c5a8.cjs +1 -0
  87. package/dist/{nylas-threads-search.entry-c5fe50e5.js → nylas-threads-search.entry-7a4bbc75.js} +17 -17
  88. package/dist/{nylas-time-window-picker.entry-ccffcf2b.cjs → nylas-time-window-picker.entry-062bc8c1.cjs} +1 -1
  89. package/dist/{nylas-time-window-picker.entry-0d93e7cc.js → nylas-time-window-picker.entry-210c3f1a.js} +2 -2
  90. package/dist/{nylas-view-thread.entry-2d34b41c.js → nylas-view-thread.entry-8b39a997.js} +6 -6
  91. package/dist/{nylas-view-thread.entry-58432a52.cjs → nylas-view-thread.entry-db78ed9c.cjs} +1 -1
  92. package/dist/play-icon_2.entry-19271982.cjs +1 -0
  93. package/dist/play-icon_2.entry-c53f3cac.js +25 -0
  94. package/dist/react.cjs +1 -1
  95. package/dist/react.js +115 -101
  96. package/dist/{refresh-icon.entry-a041136d.js → refresh-icon.entry-75139a0c.js} +4 -4
  97. package/dist/{refresh-icon.entry-1e670732.cjs → refresh-icon.entry-e695cf7f.cjs} +1 -1
  98. package/dist/{register-component-a5a9ca5d-a5c01c35.js → register-component-a5a9ca5d-d69a7a05.js} +1 -1
  99. package/dist/{register-component-a5a9ca5d-b68b6039.cjs → register-component-a5a9ca5d-eebf89e7.cjs} +1 -1
  100. package/dist/scheduler-config-store-9ccfba4d-22a58b7d.cjs +1 -0
  101. package/dist/{scheduler-config-store-4a50a03d-ee42ff96.js → scheduler-config-store-9ccfba4d-fd62a421.js} +8 -6
  102. package/dist/{scheduler-store-f02ce045-23a14e3f.js → scheduler-store-8a400448-3b007d4d.js} +125 -96
  103. package/dist/scheduler-store-8a400448-44e0edad.cjs +1 -0
  104. package/dist/{textarea-component.entry-24a830c1.cjs → textarea-component.entry-48feabb3.cjs} +1 -1
  105. package/dist/{textarea-component.entry-1b4c771b.js → textarea-component.entry-ead5ab00.js} +7 -6
  106. package/dist/{translate-icon.entry-44bde57b.js → translate-icon.entry-55043beb.js} +2 -2
  107. package/dist/{translate-icon.entry-0c0add25.cjs → translate-icon.entry-5f62bc61.cjs} +1 -1
  108. package/dist/{warning-icon.entry-9a77ab01.cjs → warning-icon.entry-2e0a80da.cjs} +1 -1
  109. package/dist/{warning-icon.entry-8956cba2.js → warning-icon.entry-fa644462.js} +5 -5
  110. package/package.json +3 -3
  111. package/dist/arrow-icon.entry-1f54c377.js +0 -15
  112. package/dist/button-component.entry-52ccb6d9.js +0 -16
  113. package/dist/button-component.entry-e79b2d08.cjs +0 -1
  114. package/dist/calendar-info-icon_28.entry-2054703c.cjs +0 -1
  115. package/dist/calendar-info-icon_28.entry-e7bebd13.js +0 -2083
  116. package/dist/chevron-icon_3.entry-7bd4a4b5.cjs +0 -1
  117. package/dist/document-refresh-icon.entry-a0293858.cjs +0 -1
  118. package/dist/google-logo-icon_4.entry-60c0d39a.cjs +0 -1
  119. package/dist/google-logo-icon_4.entry-a0dc33da.js +0 -467
  120. package/dist/index-53420959-67beefed.js +0 -5
  121. package/dist/index-53420959-d3254a34.cjs +0 -1
  122. package/dist/index-e3e9b594.cjs +0 -42
  123. package/dist/input-component.entry-1195d579.js +0 -45
  124. package/dist/input-component.entry-2b6e44c4.cjs +0 -1
  125. package/dist/loading-icon.entry-027a2ad1.js +0 -15
  126. package/dist/nylas-booked-event-card_10.entry-84f64ba5.cjs +0 -1
  127. package/dist/nylas-scheduler-editor.entry-923b8566.cjs +0 -2
  128. package/dist/nylas-scheduling.entry-54f1a5e9.cjs +0 -1
  129. package/dist/nylas-threads-search.entry-462527fd.cjs +0 -1
  130. package/dist/play-icon_2.entry-1ea3fd6b.cjs +0 -1
  131. package/dist/play-icon_2.entry-d08adf17.js +0 -25
  132. package/dist/scheduler-config-store-4a50a03d-884e6df8.cjs +0 -1
  133. package/dist/scheduler-store-f02ce045-42e3647c.cjs +0 -1
@@ -1,42 +0,0 @@
1
- "use strict";var Li=Object.defineProperty;var Fi=(t,e,n)=>e in t?Li(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Mt=(t,e,n)=>(Fi(t,typeof e!="symbol"?e+"":e,n),n);const ke=require("react");require("react-dom");const Ui="nylas-web-elements",gr={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!0,cmpDidRender:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpShouldUpdate:!1,cmpWillLoad:!0,cmpWillRender:!0,cmpWillUpdate:!0,connectedCallback:!0,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!0,element:!1,event:!0,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!0,hasRenderFn:!0,hostListener:!0,hostListenerTarget:!0,hostListenerTargetBody:!0,hostListenerTargetDocument:!0,hostListenerTargetParent:!1,hostListenerTargetWindow:!0,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!0,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propMutable:!0,propNumber:!0,propString:!0,reflect:!1,scoped:!0,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!0,slotChildNodesFix:!1,slotRelocation:!0,state:!0,style:!0,svg:!0,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,vdomXlink:!1,watchCallback:!0};let Ze,Ht,Tt,vr=!1,pt=!1,on=!1,fe=!1,Bt=null,Wt=!1;const Pe=(t,e="")=>()=>{},Yi=(t,e)=>()=>{},Hi="{visibility:hidden}.hydrated{visibility:inherit}",wr="slot-fb{display:contents}slot-fb[hidden]{display:none}",Bi=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],On={},Wi="http://www.w3.org/2000/svg",ji="http://www.w3.org/1999/xhtml",qi=t=>t!=null,an=t=>(t=typeof t,t==="object"||t==="function");function br(t){var e,n,r;return(r=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&r!==void 0?r:void 0}const sn=(t,e,...n)=>{let r=null,i=null,a=null,o=!1,s=!1;const l=[],u=d=>{for(let h=0;h<d.length;h++)r=d[h],Array.isArray(r)?u(r):r!=null&&typeof r!="boolean"&&((o=typeof t!="function"&&!an(r))&&(r=String(r)),o&&s?l[l.length-1].$text$+=r:l.push(o?yt(null,r):r),s=o)};if(u(n),e){e.key&&(i=e.key),e.name&&(a=e.name);{const d=e.className||e.class;d&&(e.class=typeof d!="object"?d:Object.keys(d).filter(h=>d[h]).join(" "))}}if(typeof t=="function")return t(e===null?{}:e,l,Ki);const f=yt(t,null);return f.$attrs$=e,l.length>0&&(f.$children$=l),f.$key$=i,f.$name$=a,f},yt=(t,e)=>{const n={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},$r={},zi=t=>t&&t.$tag$===$r,Ki={forEach:(t,e)=>t.map(Mn).forEach(e),map:(t,e)=>t.map(Mn).map(e).map(Gi)},Mn=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),Gi=t=>{if(typeof t.vtag=="function"){const n=Object.assign({},t.vattrs);return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),sn(t.vtag,n,...t.vchildren||[])}const e=yt(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},Zi=(t,e)=>t!=null&&!an(t)?e&4?t==="false"?!1:t===""||!!t:e&2?parseFloat(t):e&1?String(t):t:t,Er=t=>Ce(t).$hostElement$,Ji=(t,e,n)=>{const r=Er(t);return{emit:i=>Tr(r,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:i})}},Tr=(t,e,n)=>{const r=z.ce(e,n);return t.dispatchEvent(r),r},Nn=new WeakMap,Xi=(t,e,n)=>{let r=gt.get(t);So&&n?(r=r||new CSSStyleSheet,typeof r=="string"?r=e:r.replaceSync(e)):r=e,gt.set(t,r)},Qi=(t,e,n)=>{var r;const i=kr(e),a=gt.get(i);if(t=t.nodeType===11?t:oe,a)if(typeof a=="string"){t=t.head||t;let o=Nn.get(t),s;if(o||Nn.set(t,o=new Set),!o.has(i)){{s=oe.createElement("style"),s.innerHTML=a;const l=(r=z.$nonce$)!==null&&r!==void 0?r:br(oe);l!=null&&s.setAttribute("nonce",l),t.insertBefore(s,t.querySelector("link"))}e.$flags$&4&&(s.innerHTML+=wr),o&&o.add(i)}}else t.adoptedStyleSheets.includes(a)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,a]);return i},Vi=t=>{const e=t.$cmpMeta$,n=t.$hostElement$,r=e.$flags$,i=Pe("attachStyles",e.$tagName$),a=Qi(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);r&10&&(n["s-sc"]=a,n.classList.add(a+"-h"),r&2&&n.classList.add(a+"-s")),i()},kr=(t,e)=>"sc-"+t.$tagName$,Pn=(t,e,n,r,i,a)=>{if(n!==r){let o=Wn(t,e),s=e.toLowerCase();if(e==="class"){const l=t.classList,u=Ln(n),f=Ln(r);l.remove(...u.filter(d=>d&&!f.includes(d))),l.add(...f.filter(d=>d&&!u.includes(d)))}else if(e==="style"){for(const l in n)(!r||r[l]==null)&&(l.includes("-")?t.style.removeProperty(l):t.style[l]="");for(const l in r)(!n||r[l]!==n[l])&&(l.includes("-")?t.style.setProperty(l,r[l]):t.style[l]=r[l])}else if(e!=="key")if(e==="ref")r&&r(t);else if(!o&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"?e=e.slice(3):Wn(ct,s)?e=s.slice(2):e=s[2]+e.slice(3),n||r){const l=e.endsWith(xr);e=e.replace(to,""),n&&z.rel(t,e,n,l),r&&z.ael(t,e,r,l)}}else{const l=an(r);if((o||l&&r!==null)&&!i)try{if(t.tagName.includes("-"))t[e]=r;else{const u=r??"";e==="list"?o=!1:(n==null||t[e]!=u)&&(t[e]=u)}}catch{}r==null||r===!1?(r!==!1||t.getAttribute(e)==="")&&t.removeAttribute(e):(!o||a&4||i)&&!l&&(r=r===!0?"":r,t.setAttribute(e,r))}}},eo=/\s/,Ln=t=>t?t.split(eo):[],xr="Capture",to=new RegExp(xr+"$"),Cr=(t,e,n,r)=>{const i=e.$elm$.nodeType===11&&e.$elm$.host?e.$elm$.host:e.$elm$,a=t&&t.$attrs$||On,o=e.$attrs$||On;for(r in a)r in o||Pn(i,r,a[r],void 0,n,e.$flags$);for(r in o)Pn(i,r,a[r],o[r],n,e.$flags$)},mt=(t,e,n,r)=>{const i=e.$children$[n];let a=0,o,s,l;if(vr||(on=!0,i.$tag$==="slot"&&(Ze&&r.classList.add(Ze+"-s"),i.$flags$|=i.$children$?2:1)),i.$text$!==null)o=i.$elm$=oe.createTextNode(i.$text$);else if(i.$flags$&1)o=i.$elm$=oe.createTextNode("");else{if(fe||(fe=i.$tag$==="svg"),o=i.$elm$=oe.createElementNS(fe?Wi:ji,i.$flags$&2?"slot-fb":i.$tag$),fe&&i.$tag$==="foreignObject"&&(fe=!1),Cr(null,i,fe),qi(Ze)&&o["s-si"]!==Ze&&o.classList.add(o["s-si"]=Ze),i.$children$)for(a=0;a<i.$children$.length;++a)s=mt(t,i,a,o),s&&o.appendChild(s);i.$tag$==="svg"?fe=!1:o.tagName==="foreignObject"&&(fe=!0)}return o["s-hn"]=Tt,i.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Ht,o["s-sn"]=i.$name$||"",l=t&&t.$children$&&t.$children$[n],l&&l.$tag$===i.$tag$&&t.$elm$&&st(t.$elm$,!1)),o},st=(t,e)=>{z.$flags$|=1;const n=t.childNodes;for(let r=n.length-1;r>=0;r--){const i=n[r];i["s-hn"]!==Tt&&i["s-ol"]&&(_r(i).insertBefore(i,ln(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,on=!0),e&&st(i,e)}z.$flags$&=-2},Sr=(t,e,n,r,i,a)=>{let o=t["s-cr"]&&t["s-cr"].parentNode||t,s;for(o.shadowRoot&&o.tagName===Tt&&(o=o.shadowRoot);i<=a;++i)r[i]&&(s=mt(null,n,i,t),s&&(r[i].$elm$=s,o.insertBefore(s,ln(e))))},Ir=(t,e,n)=>{for(let r=e;r<=n;++r){const i=t[r];if(i){const a=i.$elm$;Ar(i),a&&(pt=!0,a["s-ol"]?a["s-ol"].remove():st(a,!0),a.remove())}}},no=(t,e,n,r,i=!1)=>{let a=0,o=0,s=0,l=0,u=e.length-1,f=e[0],d=e[u],h=r.length-1,p=r[0],y=r[h],w,b;for(;a<=u&&o<=h;)if(f==null)f=e[++a];else if(d==null)d=e[--u];else if(p==null)p=r[++o];else if(y==null)y=r[--h];else if(ht(f,p,i))Je(f,p,i),f=e[++a],p=r[++o];else if(ht(d,y,i))Je(d,y,i),d=e[--u],y=r[--h];else if(ht(f,y,i))(f.$tag$==="slot"||y.$tag$==="slot")&&st(f.$elm$.parentNode,!1),Je(f,y,i),t.insertBefore(f.$elm$,d.$elm$.nextSibling),f=e[++a],y=r[--h];else if(ht(d,p,i))(f.$tag$==="slot"||y.$tag$==="slot")&&st(d.$elm$.parentNode,!1),Je(d,p,i),t.insertBefore(d.$elm$,f.$elm$),d=e[--u],p=r[++o];else{for(s=-1,l=a;l<=u;++l)if(e[l]&&e[l].$key$!==null&&e[l].$key$===p.$key$){s=l;break}s>=0?(b=e[s],b.$tag$!==p.$tag$?w=mt(e&&e[o],n,s,t):(Je(b,p,i),e[s]=void 0,w=b.$elm$),p=r[++o]):(w=mt(e&&e[o],n,o,t),p=r[++o]),w&&_r(f.$elm$).insertBefore(w,ln(f.$elm$))}a>u?Sr(t,r[h+1]==null?null:r[h+1].$elm$,n,r,o,h):o>h&&Ir(e,a,u)},ht=(t,e,n=!1)=>t.$tag$===e.$tag$?t.$tag$==="slot"?t.$name$===e.$name$:n?!0:t.$key$===e.$key$:!1,ln=t=>t&&t["s-ol"]||t,_r=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,Je=(t,e,n=!1)=>{const r=e.$elm$=t.$elm$,i=t.$children$,a=e.$children$,o=e.$tag$,s=e.$text$;let l;s===null?(fe=o==="svg"?!0:o==="foreignObject"?!1:fe,o==="slot"||Cr(t,e,fe),i!==null&&a!==null?no(r,i,e,a,n):a!==null?(t.$text$!==null&&(r.textContent=""),Sr(r,null,e,a,0,a.length-1)):i!==null&&Ir(i,0,i.length-1),fe&&o==="svg"&&(fe=!1)):(l=r["s-cr"])?l.parentNode.textContent=s:t.$text$!==s&&(r.data=s)},Dr=t=>{const e=t.childNodes;for(const n of e)if(n.nodeType===1){if(n["s-sr"]){const r=n["s-sn"];n.hidden=!1;for(const i of e)if(i!==n){if(i["s-hn"]!==n["s-hn"]||r!==""){if(i.nodeType===1&&(r===i.getAttribute("slot")||r===i["s-sn"])){n.hidden=!0;break}}else if(i.nodeType===1||i.nodeType===3&&i.textContent.trim()!==""){n.hidden=!0;break}}}Dr(n)}},Oe=[],Rr=t=>{let e,n,r;for(const i of t.childNodes){if(i["s-sr"]&&(e=i["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const a=i["s-sn"];for(r=n.length-1;r>=0;r--)if(e=n[r],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==i["s-hn"]&&!gr.experimentalSlotFixes)if(Fn(e,a)){let o=Oe.find(s=>s.$nodeToRelocate$===e);pt=!0,e["s-sn"]=e["s-sn"]||a,o?(o.$nodeToRelocate$["s-sh"]=i["s-hn"],o.$slotRefNode$=i):(e["s-sh"]=i["s-hn"],Oe.push({$slotRefNode$:i,$nodeToRelocate$:e})),e["s-sr"]&&Oe.map(s=>{Fn(s.$nodeToRelocate$,e["s-sn"])&&(o=Oe.find(l=>l.$nodeToRelocate$===e),o&&!s.$slotRefNode$&&(s.$slotRefNode$=o.$slotRefNode$))})}else Oe.some(o=>o.$nodeToRelocate$===e)||Oe.push({$nodeToRelocate$:e})}i.nodeType===1&&Rr(i)}},Fn=(t,e)=>t.nodeType===1?t.getAttribute("slot")===null&&e===""||t.getAttribute("slot")===e:t["s-sn"]===e?!0:e==="",Ar=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(Ar)},ro=(t,e,n=!1)=>{var r,i,a,o;const s=t.$hostElement$,l=t.$cmpMeta$,u=t.$vnode$||yt(null,null),f=zi(e)?e:sn(null,null,e);if(Tt=s.tagName,n&&f.$attrs$)for(const d of Object.keys(f.$attrs$))s.hasAttribute(d)&&!["key","ref","style","class"].includes(d)&&(f.$attrs$[d]=s[d]);f.$tag$=null,f.$flags$|=4,t.$vnode$=f,f.$elm$=u.$elm$=s.shadowRoot||s,Ze=s["s-sc"],Ht=s["s-cr"],vr=(l.$flags$&1)!==0,pt=!1,Je(u,f,n);{if(z.$flags$|=1,on){Rr(f.$elm$);for(const d of Oe){const h=d.$nodeToRelocate$;if(!h["s-ol"]){const p=oe.createTextNode("");p["s-nr"]=h,h.parentNode.insertBefore(h["s-ol"]=p,h)}}for(const d of Oe){const h=d.$nodeToRelocate$,p=d.$slotRefNode$;if(p){const y=p.parentNode;let w=p.nextSibling;{let b=(r=h["s-ol"])===null||r===void 0?void 0:r.previousSibling;for(;b;){let x=(i=b["s-nr"])!==null&&i!==void 0?i:null;if(x&&x["s-sn"]===h["s-sn"]&&y===x.parentNode&&(x=x.nextSibling,!x||!x["s-nr"])){w=x;break}b=b.previousSibling}}(!w&&y!==h.parentNode||h.nextSibling!==w)&&h!==w&&(!h["s-hn"]&&h["s-ol"]&&(h["s-hn"]=h["s-ol"].parentNode.nodeName),y.insertBefore(h,w),h.nodeType===1&&(h.hidden=(a=h["s-ih"])!==null&&a!==void 0?a:!1))}else h.nodeType===1&&(n&&(h["s-ih"]=(o=h.hidden)!==null&&o!==void 0?o:!1),h.hidden=!0)}}pt&&Dr(f.$elm$),z.$flags$&=-2,Oe.length=0}Ht=void 0},Or=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise(n=>t.$onRenderResolve$=n))},kt=(t,e)=>{if(t.$flags$|=16,t.$flags$&4){t.$flags$|=512;return}return Or(t,t.$ancestorComponent$),_o(()=>io(t,e))},io=(t,e)=>{const n=Pe("scheduleUpdate",t.$cmpMeta$.$tagName$),r=t.$lazyInstance$;let i;return e?(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.map(([a,o])=>Me(r,a,o)),t.$queuedListeners$=void 0),i=Me(r,"componentWillLoad")):i=Me(r,"componentWillUpdate"),i=Un(i,()=>Me(r,"componentWillRender")),n(),Un(i,()=>ao(t,r,e))},Un=(t,e)=>oo(t)?t.then(e):e(),oo=t=>t instanceof Promise||t&&t.then&&typeof t.then=="function",ao=async(t,e,n)=>{var r;const i=t.$hostElement$,a=Pe("update",t.$cmpMeta$.$tagName$),o=i["s-rc"];n&&Vi(t);const s=Pe("render",t.$cmpMeta$.$tagName$);so(t,e,i,n),o&&(o.map(l=>l()),i["s-rc"]=void 0),s(),a();{const l=(r=i["s-p"])!==null&&r!==void 0?r:[],u=()=>lo(t);l.length===0?u():(Promise.all(l).then(u),t.$flags$|=4,l.length=0)}},so=(t,e,n,r)=>{try{Bt=e,e=e.render(),t.$flags$&=-17,t.$flags$|=2,ro(t,e,r)}catch(i){I(i,t.$hostElement$)}return Bt=null,null},Yn=()=>Bt,lo=t=>{const e=t.$cmpMeta$.$tagName$,n=t.$hostElement$,r=Pe("postUpdate",e),i=t.$lazyInstance$,a=t.$ancestorComponent$;Me(i,"componentDidRender"),t.$flags$&64?(Me(i,"componentDidUpdate"),r()):(t.$flags$|=64,Nr(n),Me(i,"componentDidLoad"),r(),t.$onReadyResolve$(n),a||Mr()),t.$onInstanceResolve$(n),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),t.$flags$&512&&un(()=>kt(t,!1)),t.$flags$&=-517},Hn=t=>{{const e=Ce(t),n=e.$hostElement$.isConnected;return n&&(e.$flags$&18)===2&&kt(e,!1),n}},Mr=t=>{Nr(oe.documentElement),un(()=>Tr(ct,"appload",{detail:{namespace:Ui}}))},Me=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(r){I(r)}},Nr=t=>t.classList.add("hydrated"),co=(t,e)=>Ce(t).$instanceValues$.get(e),uo=(t,e,n,r)=>{const i=Ce(t),a=i.$hostElement$,o=i.$instanceValues$.get(e),s=i.$flags$,l=i.$lazyInstance$;n=Zi(n,r.$members$[e][0]);const u=Number.isNaN(o)&&Number.isNaN(n),f=n!==o&&!u;if((!(s&8)||o===void 0)&&f&&(i.$instanceValues$.set(e,n),l)){if(r.$watchers$&&s&128){const d=r.$watchers$[e];d&&d.map(h=>{try{l[h](n,o,e)}catch(p){I(p,a)}})}(s&18)===2&&kt(i,!1)}},Pr=(t,e,n)=>{var r;const i=t.prototype;if(e.$flags$&64&&n&1&&Bi.forEach(a=>Object.defineProperty(i,a,{value(...o){const s=Ce(this),l=s.$lazyInstance$;if(!l)s.$onReadyPromise$.then(u=>{const f=u[a];typeof f=="function"&&f.call(u,...o)});else{const u=l[a];typeof u=="function"&&u.call(l,...o)}}})),e.$members$){t.watchers&&(e.$watchers$=t.watchers);const a=Object.entries(e.$members$);if(a.map(([o,[s]])=>{s&31||n&2&&s&32?Object.defineProperty(i,o,{get(){return co(this,o)},set(l){uo(this,o,l,e)},configurable:!0,enumerable:!0}):n&1&&s&64&&Object.defineProperty(i,o,{value(...l){var u;const f=Ce(this);return(u=f==null?void 0:f.$onInstancePromise$)===null||u===void 0?void 0:u.then(()=>{var d;return(d=f.$lazyInstance$)===null||d===void 0?void 0:d[o](...l)})}})}),n&1){const o=new Map;i.attributeChangedCallback=function(s,l,u){z.jmp(()=>{var f;const d=o.get(s);if(this.hasOwnProperty(d))u=this[d],delete this[d];else{if(i.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==u)return;if(d==null){const h=Ce(this),p=h==null?void 0:h.$flags$;if(p&&!(p&8)&&p&128&&u!==l){const y=h.$lazyInstance$,w=(f=e.$watchers$)===null||f===void 0?void 0:f[s];w==null||w.forEach(b=>{y[b]!=null&&y[b].call(y,u,l,s)})}return}}this[d]=u===null&&typeof this[d]=="boolean"?!1:u})},t.observedAttributes=Array.from(new Set([...Object.keys((r=e.$watchers$)!==null&&r!==void 0?r:{}),...a.filter(([s,l])=>l[0]&15).map(([s,l])=>{const u=l[1]||s;return o.set(u,s),u})]))}}return t},fo=async(t,e,n,r)=>{let i;if(!(e.$flags$&32)){e.$flags$|=32;{if(i=ko(n),i.then){const l=Yi();i=await i,l()}i.isProxied||(n.$watchers$=i.watchers,Pr(i,n,2),i.isProxied=!0);const s=Pe("createInstance",n.$tagName$);e.$flags$|=8;try{new i(e)}catch(l){I(l)}e.$flags$&=-9,e.$flags$|=128,s(),jt(e.$lazyInstance$)}if(i.style){let s=i.style;const l=kr(n);if(!gt.has(l)){const u=Pe("registerStyles",n.$tagName$);Xi(l,s,!!(n.$flags$&1)),u()}}}const a=e.$ancestorComponent$,o=()=>kt(e,!0);a&&a["s-rc"]?a["s-rc"].push(o):o()},jt=t=>{Me(t,"connectedCallback")},ho=t=>{if(!(z.$flags$&1)){const e=Ce(t),n=e.$cmpMeta$,r=Pe("connectedCallback",n.$tagName$);if(e.$flags$&1)Lr(t,e,n.$listeners$),e!=null&&e.$lazyInstance$?jt(e.$lazyInstance$):e!=null&&e.$onReadyPromise$&&e.$onReadyPromise$.then(()=>jt(e.$lazyInstance$));else{e.$flags$|=1,n.$flags$&12&&po(t);{let i=t;for(;i=i.parentNode||i.host;)if(i["s-p"]){Or(e,e.$ancestorComponent$=i);break}}n.$members$&&Object.entries(n.$members$).map(([i,[a]])=>{if(a&31&&t.hasOwnProperty(i)){const o=t[i];delete t[i],t[i]=o}}),fo(t,e,n)}r()}},po=t=>{const e=t["s-cr"]=oe.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},Bn=t=>{Me(t,"disconnectedCallback")},yo=async t=>{if(!(z.$flags$&1)){const e=Ce(t);e.$rmListeners$&&(e.$rmListeners$.map(n=>n()),e.$rmListeners$=void 0),e!=null&&e.$lazyInstance$?Bn(e.$lazyInstance$):e!=null&&e.$onReadyPromise$&&e.$onReadyPromise$.then(()=>Bn(e.$lazyInstance$))}},mo=(t,e={})=>{var n;const r=Pe(),i=[],a=e.exclude||[],o=ct.customElements,s=oe.head,l=s.querySelector("meta[charset]"),u=oe.createElement("style"),f=[];let d,h=!0;Object.assign(z,e),z.$resourcesUrl$=new URL(e.resourcesUrl||"./",oe.baseURI).href;let p=!1;if(t.map(y=>{y[1].map(w=>{var b;const x={$flags$:w[0],$tagName$:w[1],$members$:w[2],$listeners$:w[3]};x.$flags$&4&&(p=!0),x.$members$=w[2],x.$listeners$=w[3],x.$watchers$=(b=w[4])!==null&&b!==void 0?b:{};const M=x.$tagName$,te=class extends HTMLElement{constructor(le){super(le),le=this,To(le,x),x.$flags$&1&&le.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),h?f.push(this):z.jmp(()=>ho(this))}disconnectedCallback(){z.jmp(()=>yo(this))}componentOnReady(){return Ce(this).$onReadyPromise$}};x.$flags$&64&&(te.formAssociated=!0),x.$lazyBundleId$=y[0],!a.includes(M)&&!o.get(M)&&(i.push(M),o.define(M,Pr(te,x,1)))})}),p&&(u.innerHTML+=wr),u.innerHTML+=i+Hi,u.innerHTML.length){u.setAttribute("data-styles","");const y=(n=z.$nonce$)!==null&&n!==void 0?n:br(oe);y!=null&&u.setAttribute("nonce",y),s.insertBefore(u,l?l.nextSibling:s.firstChild)}h=!1,f.length?f.map(y=>y.connectedCallback()):z.jmp(()=>d=setTimeout(Mr,30)),r()},go=(t,e)=>e,Lr=(t,e,n,r)=>{n&&n.map(([i,a,o])=>{const s=wo(t,i),l=vo(e,o),u=bo(i);z.ael(s,a,l,u),(e.$rmListeners$=e.$rmListeners$||[]).push(()=>z.rel(s,a,l,u))})},vo=(t,e)=>n=>{try{t.$flags$&256?t.$lazyInstance$[e](n):(t.$queuedListeners$=t.$queuedListeners$||[]).push([e,n])}catch(r){I(r)}},wo=(t,e)=>e&4?oe:e&8?ct:e&16?oe.body:t,bo=t=>xo?{passive:(t&1)!==0,capture:(t&2)!==0}:(t&2)!==0,$o=t=>z.$nonce$=t,cn=new WeakMap,Ce=t=>cn.get(t),Eo=(t,e)=>cn.set(e.$lazyInstance$=t,e),To=(t,e)=>{const n={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(r=>n.$onInstanceResolve$=r),n.$onReadyPromise$=new Promise(r=>n.$onReadyResolve$=r),t["s-p"]=[],t["s-rc"]=[],Lr(t,n,e.$listeners$),cn.set(t,n)},Wn=(t,e)=>e in t,I=(t,e)=>(0,console.error)(t,e),Nt=new Map,ko=(t,e,n)=>{const r=t.$tagName$.replace(/-/g,"_"),i=t.$lazyBundleId$,a=Nt.get(i);if(a)return a[r];if(!n||!gr.hotModuleReplacement){const o=s=>(Nt.set(i,s),s[r]);switch(i){case"document-refresh-icon":return Promise.resolve().then(()=>require("./document-refresh-icon.entry-a0293858.cjs")).then(o,I);case"nylas-custom-booking-flow":return Promise.resolve().then(()=>require("./nylas-custom-booking-flow.entry-898c8cc9.cjs")).then(o,I);case"nylas-if-state":return Promise.resolve().then(()=>require("./nylas-if-state.entry-ff6a2046.cjs")).then(o,I);case"nylas-list-folders":return Promise.resolve().then(()=>require("./nylas-list-folders.entry-90716d2b.cjs")).then(o,I);case"nylas-list-threads":return Promise.resolve().then(()=>require("./nylas-list-threads.entry-21edf012.cjs")).then(o,I);case"nylas-login":return Promise.resolve().then(()=>require("./nylas-login.entry-2e0ce95e.cjs")).then(o,I);case"nylas-mailbox":return Promise.resolve().then(()=>require("./nylas-mailbox.entry-bb2905bf.cjs")).then(o,I);case"nylas-mailbox-pagination":return Promise.resolve().then(()=>require("./nylas-mailbox-pagination.entry-ba6beb08.cjs")).then(o,I);case"nylas-mailbox-toolbar-button":return Promise.resolve().then(()=>require("./nylas-mailbox-toolbar-button.entry-0875aadb.cjs")).then(o,I);case"nylas-provider":return Promise.resolve().then(()=>require("./nylas-provider.entry-51c5cdbf.cjs")).then(o,I);case"nylas-scheduler-editor":return Promise.resolve().then(()=>require("./nylas-scheduler-editor.entry-923b8566.cjs")).then(o,I);case"nylas-scheduling":return Promise.resolve().then(()=>require("./nylas-scheduling.entry-54f1a5e9.cjs")).then(o,I);case"nylas-threads-refresh":return Promise.resolve().then(()=>require("./nylas-threads-refresh.entry-99001756.cjs")).then(o,I);case"nylas-threads-search":return Promise.resolve().then(()=>require("./nylas-threads-search.entry-462527fd.cjs")).then(o,I);case"nylas-view-thread":return Promise.resolve().then(()=>require("./nylas-view-thread.entry-58432a52.cjs")).then(o,I);case"textarea-component":return Promise.resolve().then(()=>require("./textarea-component.entry-24a830c1.cjs")).then(o,I);case"archive-icon_7":return Promise.resolve().then(()=>require("./archive-icon_7.entry-c2b6d860.cjs")).then(o,I);case"arrow-icon":return Promise.resolve().then(()=>require("./arrow-icon.entry-a159bee8.cjs")).then(o,I);case"forward-icon_6":return Promise.resolve().then(()=>require("./forward-icon_6.entry-55752b23.cjs")).then(o,I);case"google-logo-icon_4":return Promise.resolve().then(()=>require("./google-logo-icon_4.entry-60c0d39a.cjs")).then(o,I);case"nylas-booked-event-card_10":return Promise.resolve().then(()=>require("./nylas-booked-event-card_10.entry-84f64ba5.cjs")).then(o,I);case"bold-icon_3":return Promise.resolve().then(()=>require("./bold-icon_3.entry-c51e1af3.cjs")).then(o,I);case"calendar-check-icon_2":return Promise.resolve().then(()=>require("./calendar-check-icon_2.entry-4a0fd7bd.cjs")).then(o,I);case"calendar-info-icon_28":return Promise.resolve().then(()=>require("./calendar-info-icon_28.entry-2054703c.cjs")).then(o,I);case"clock-icon_2":return Promise.resolve().then(()=>require("./clock-icon_2.entry-2406c3d0.cjs")).then(o,I);case"input-component":return Promise.resolve().then(()=>require("./input-component.entry-2b6e44c4.cjs")).then(o,I);case"play-icon_2":return Promise.resolve().then(()=>require("./play-icon_2.entry-1ea3fd6b.cjs")).then(o,I);case"refresh-icon":return Promise.resolve().then(()=>require("./refresh-icon.entry-1e670732.cjs")).then(o,I);case"translate-icon":return Promise.resolve().then(()=>require("./translate-icon.entry-0c0add25.cjs")).then(o,I);case"warning-icon":return Promise.resolve().then(()=>require("./warning-icon.entry-9a77ab01.cjs")).then(o,I);case"calendar-cancel-icon":return Promise.resolve().then(()=>require("./calendar-cancel-icon.entry-805febcc.cjs")).then(o,I);case"calendar-icon":return Promise.resolve().then(()=>require("./calendar-icon.entry-1fc018b4.cjs")).then(o,I);case"nylas-time-window-picker":return Promise.resolve().then(()=>require("./nylas-time-window-picker.entry-ccffcf2b.cjs")).then(o,I);case"button-component":return Promise.resolve().then(()=>require("./button-component.entry-e79b2d08.cjs")).then(o,I);case"nylas-form-card":return Promise.resolve().then(()=>require("./nylas-form-card.entry-0c71f4fc.cjs")).then(o,I);case"input-dropdown_2":return Promise.resolve().then(()=>require("./input-dropdown_2.entry-dbdb5aa3.cjs")).then(o,I);case"loading-icon":return Promise.resolve().then(()=>require("./loading-icon.entry-e179f122.cjs")).then(o,I);case"add-circle-icon_2":return Promise.resolve().then(()=>require("./add-circle-icon_2.entry-3091976b.cjs")).then(o,I);case"globe-icon":return Promise.resolve().then(()=>require("./globe-icon.entry-dabe7b8b.cjs")).then(o,I);case"chevron-icon_3":return Promise.resolve().then(()=>require("./chevron-icon_3.entry-7bd4a4b5.cjs")).then(o,I);case"info-icon_2":return Promise.resolve().then(()=>require("./info-icon_2.entry-5f6b9af8.cjs")).then(o,I)}}return import(`./${i}.entry.js`).then(o=>(Nt.set(i,o),o[r]),I)},gt=new Map,ct=typeof window<"u"?window:{},oe=ct.document||{head:{}},z={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,r)=>t.addEventListener(e,n,r),rel:(t,e,n,r)=>t.removeEventListener(e,n,r),ce:(t,e)=>new CustomEvent(t,e)},xo=(()=>{let t=!1;try{oe.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Co=t=>Promise.resolve(t),So=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),jn=[],Fr=[],Io=(t,e)=>n=>{t.push(n),Wt||(Wt=!0,e&&z.$flags$&4?un(qt):z.raf(qt))},qn=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(n){I(n)}t.length=0},qt=()=>{qn(jn),qn(Fr),(Wt=jn.length>0)&&z.raf(qt)},un=t=>Co().then(t),_o=Io(Fr,!0),Do=(t,e,n)=>{const r=t.get(e);r?r.includes(n)||r.push(n):t.set(e,[n])},Ro=(t,e)=>{let n;return(...r)=>{n&&clearTimeout(n),n=setTimeout(()=>{n=0,t(...r)},e)}},Ao=t=>!("isConnected"in t)||t.isConnected,zn=Ro(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(Ao))},2e3),Oo=()=>{if(typeof Yn!="function")return{};const t=new Map;return{dispose:()=>t.clear(),get:e=>{const n=Yn();n&&Do(t,e,n)},set:e=>{const n=t.get(e);n&&t.set(e,n.filter(Hn)),zn(t)},reset:()=>{t.forEach(e=>e.forEach(Hn)),zn(t)}}},Pt=t=>typeof t=="function"?t():t,Mo=(t,e=(n,r)=>n!==r)=>{const n=Pt(t);let r=new Map(Object.entries(n??{}));const i={dispose:[],get:[],set:[],reset:[]},a=()=>{var y;r=new Map(Object.entries((y=Pt(t))!==null&&y!==void 0?y:{})),i.reset.forEach(w=>w())},o=()=>{i.dispose.forEach(y=>y()),a()},s=y=>(i.get.forEach(w=>w(y)),r.get(y)),l=(y,w)=>{const b=r.get(y);e(w,b,y)&&(r.set(y,w),i.set.forEach(x=>x(y,w,b)))},u=typeof Proxy>"u"?{}:new Proxy(n,{get(y,w){return s(w)},ownKeys(y){return Array.from(r.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has(y,w){return r.has(w)},set(y,w,b){return l(w,b),!0}}),f=(y,w)=>(i[y].push(w),()=>{No(i[y],w)});return{state:u,get:s,set:l,on:f,onChange:(y,w)=>{const b=f("set",(M,te)=>{M===y&&w(te)}),x=f("reset",()=>w(Pt(t)[y]));return()=>{b(),x()}},use:(...y)=>{const w=y.reduce((b,x)=>(x.set&&b.push(f("set",x.set)),x.get&&b.push(f("get",x.get)),x.reset&&b.push(f("reset",x.reset)),x.dispose&&b.push(f("dispose",x.dispose)),b),[]);return()=>w.forEach(b=>b())},dispose:o,reset:a,forceUpdate:y=>{const w=r.get(y);i.set.forEach(b=>b(y,w,w))}}},No=(t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)},Ur=(t,e)=>{const n=Mo(t,e);return n.use(Oo()),n},zt=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};var xe=[],ye=[],Po=typeof Uint8Array<"u"?Uint8Array:Array,fn=!1;function Yr(){fn=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e<n;++e)xe[e]=t[e],ye[t.charCodeAt(e)]=e;ye["-".charCodeAt(0)]=62,ye["_".charCodeAt(0)]=63}function Lo(t){fn||Yr();var e,n,r,i,a,o,s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[s-2]==="="?2:t[s-1]==="="?1:0,o=new Po(s*3/4-a),r=a>0?s-4:s;var l=0;for(e=0,n=0;e<r;e+=4,n+=3)i=ye[t.charCodeAt(e)]<<18|ye[t.charCodeAt(e+1)]<<12|ye[t.charCodeAt(e+2)]<<6|ye[t.charCodeAt(e+3)],o[l++]=i>>16&255,o[l++]=i>>8&255,o[l++]=i&255;return a===2?(i=ye[t.charCodeAt(e)]<<2|ye[t.charCodeAt(e+1)]>>4,o[l++]=i&255):a===1&&(i=ye[t.charCodeAt(e)]<<10|ye[t.charCodeAt(e+1)]<<4|ye[t.charCodeAt(e+2)]>>2,o[l++]=i>>8&255,o[l++]=i&255),o}function Fo(t){return xe[t>>18&63]+xe[t>>12&63]+xe[t>>6&63]+xe[t&63]}function Uo(t,e,n){for(var r,i=[],a=e;a<n;a+=3)r=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Fo(r));return i.join("")}function Kn(t){fn||Yr();for(var e,n=t.length,r=n%3,i="",a=[],o=16383,s=0,l=n-r;s<l;s+=o)a.push(Uo(t,s,s+o>l?l:s+o));return r===1?(e=t[n-1],i+=xe[e>>2],i+=xe[e<<4&63],i+="=="):r===2&&(e=(t[n-2]<<8)+t[n-1],i+=xe[e>>10],i+=xe[e>>4&63],i+=xe[e<<2&63],i+="="),a.push(i),a.join("")}function xt(t,e,n,r,i){var a,o,s=i*8-r-1,l=(1<<s)-1,u=l>>1,f=-7,d=n?i-1:0,h=n?-1:1,p=t[e+d];for(d+=h,a=p&(1<<-f)-1,p>>=-f,f+=s;f>0;a=a*256+t[e+d],d+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=r;f>0;o=o*256+t[e+d],d+=h,f-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-u}return(p?-1:1)*o*Math.pow(2,a-r)}function Hr(t,e,n,r,i,a){var o,s,l,u=a*8-i-1,f=(1<<u)-1,d=f>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,y=r?1:-1,w=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?e+=h/l:e+=h*Math.pow(2,1-d),e*l>=2&&(o++,l/=2),o+d>=f?(s=0,o=f):o+d>=1?(s=(e*l-1)*Math.pow(2,i),o=o+d):(s=e*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=s&255,p+=y,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;t[n+p]=o&255,p+=y,o/=256,u-=8);t[n+p-y]|=w*128}var Yo={}.toString,Br=Array.isArray||function(t){return Yo.call(t)=="[object Array]"};/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
5
- * @license MIT
6
- */var Ho=50;m.TYPED_ARRAY_SUPPORT=zt.TYPED_ARRAY_SUPPORT!==void 0?zt.TYPED_ARRAY_SUPPORT:!0;function Kt(){return m.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ne(t,e){if(Kt()<e)throw new RangeError("Invalid typed array length");return m.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=m.prototype):(t===null&&(t=new m(e)),t.length=e),t}function m(t,e,n){if(!m.TYPED_ARRAY_SUPPORT&&!(this instanceof m))return new m(t,e,n);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return dn(this,t)}return Wr(this,t,e,n)}m.poolSize=8192;m._augment=function(t){return t.__proto__=m.prototype,t};function Wr(t,e,n,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?jo(t,e,n,r):typeof e=="string"?Wo(t,e,n):qo(t,e)}m.from=function(t,e,n){return Wr(null,t,e,n)};m.TYPED_ARRAY_SUPPORT&&(m.prototype.__proto__=Uint8Array.prototype,m.__proto__=Uint8Array);function jr(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Bo(t,e,n,r){return jr(e),e<=0?Ne(t,e):n!==void 0?typeof r=="string"?Ne(t,e).fill(n,r):Ne(t,e).fill(n):Ne(t,e)}m.alloc=function(t,e,n){return Bo(null,t,e,n)};function dn(t,e){if(jr(e),t=Ne(t,e<0?0:hn(e)|0),!m.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}m.allocUnsafe=function(t){return dn(null,t)};m.allocUnsafeSlow=function(t){return dn(null,t)};function Wo(t,e,n){if((typeof n!="string"||n==="")&&(n="utf8"),!m.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=qr(e,n)|0;t=Ne(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function Gt(t,e){var n=e.length<0?0:hn(e.length)|0;t=Ne(t,n);for(var r=0;r<n;r+=1)t[r]=e[r]&255;return t}function jo(t,e,n,r){if(n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return n===void 0&&r===void 0?e=new Uint8Array(e):r===void 0?e=new Uint8Array(e,n):e=new Uint8Array(e,n,r),m.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=m.prototype):t=Gt(t,e),t}function qo(t,e){if(Se(e)){var n=hn(e.length)|0;return t=Ne(t,n),t.length===0||e.copy(t,0,0,n),t}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||ua(e.length)?Ne(t,0):Gt(t,e);if(e.type==="Buffer"&&Br(e.data))return Gt(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function hn(t){if(t>=Kt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Kt().toString(16)+" bytes");return t|0}m.isBuffer=fa;function Se(t){return!!(t!=null&&t._isBuffer)}m.compare=function(e,n){if(!Se(e)||!Se(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var r=e.length,i=n.length,a=0,o=Math.min(r,i);a<o;++a)if(e[a]!==n[a]){r=e[a],i=n[a];break}return r<i?-1:i<r?1:0};m.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};m.concat=function(e,n){if(!Br(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return m.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<e.length;++r)n+=e[r].length;var i=m.allocUnsafe(n),a=0;for(r=0;r<e.length;++r){var o=e[r];if(!Se(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function qr(t,e){if(Se(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var n=t.length;if(n===0)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return vt(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Qr(t).length;default:if(r)return vt(t).length;e=(""+e).toLowerCase(),r=!0}}m.byteLength=qr;function zo(t,e,n){var r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return na(this,e,n);case"utf8":case"utf-8":return Gr(this,e,n);case"ascii":return ea(this,e,n);case"latin1":case"binary":return ta(this,e,n);case"base64":return Qo(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ra(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}m.prototype._isBuffer=!0;function Be(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}m.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)Be(this,n,n+1);return this};m.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)Be(this,n,n+3),Be(this,n+1,n+2);return this};m.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)Be(this,n,n+7),Be(this,n+1,n+6),Be(this,n+2,n+5),Be(this,n+3,n+4);return this};m.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?Gr(this,0,e):zo.apply(this,arguments)};m.prototype.equals=function(e){if(!Se(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:m.compare(this,e)===0};m.prototype.inspect=function(){var e="",n=Ho;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"};m.prototype.compare=function(e,n,r,i,a){if(!Se(e))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),r===void 0&&(r=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),n<0||r>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&n>=r)return 0;if(i>=a)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,s=r-n,l=Math.min(o,s),u=this.slice(i,a),f=e.slice(n,r),d=0;d<l;++d)if(u[d]!==f[d]){o=u[d],s=f[d];break}return o<s?-1:s<o?1:0};function zr(t,e,n,r,i){if(t.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof e=="string"&&(e=m.from(e,r)),Se(e))return e.length===0?-1:Gn(t,e,n,r,i);if(typeof e=="number")return e=e&255,m.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):Gn(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Gn(t,e,n,r,i){var a=1,o=t.length,s=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,s/=2,n/=2}function l(p,y){return a===1?p[y]:p.readUInt16BE(y*a)}var u;if(i){var f=-1;for(u=n;u<o;u++)if(l(t,u)===l(e,f===-1?0:u-f)){if(f===-1&&(f=u),u-f+1===s)return f*a}else f!==-1&&(u-=u-f),f=-1}else for(n+s>o&&(n=o-s),u=n;u>=0;u--){for(var d=!0,h=0;h<s;h++)if(l(t,u+h)!==l(e,h)){d=!1;break}if(d)return u}return-1}m.prototype.includes=function(e,n,r){return this.indexOf(e,n,r)!==-1};m.prototype.indexOf=function(e,n,r){return zr(this,e,n,r,!0)};m.prototype.lastIndexOf=function(e,n,r){return zr(this,e,n,r,!1)};function Ko(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(e.substr(o*2,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function Go(t,e,n,r){return It(vt(e,t.length-n),t,n,r)}function Kr(t,e,n,r){return It(la(e),t,n,r)}function Zo(t,e,n,r){return Kr(t,e,n,r)}function Jo(t,e,n,r){return It(Qr(e),t,n,r)}function Xo(t,e,n,r){return It(ca(e,t.length-n),t,n,r)}m.prototype.write=function(e,n,r,i){if(n===void 0)i="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")i=n,r=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(r)?(r=r|0,i===void 0&&(i="utf8")):(i=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-n;if((r===void 0||r>a)&&(r=a),e.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Ko(this,e,n,r);case"utf8":case"utf-8":return Go(this,e,n,r);case"ascii":return Kr(this,e,n,r);case"latin1":case"binary":return Zo(this,e,n,r);case"base64":return Jo(this,e,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xo(this,e,n,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Qo(t,e,n){return e===0&&n===t.length?Kn(t):Kn(t.slice(e,n))}function Gr(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var l,u,f,d;switch(s){case 1:a<128&&(o=a);break;case 2:l=t[i+1],(l&192)===128&&(d=(a&31)<<6|l&63,d>127&&(o=d));break;case 3:l=t[i+1],u=t[i+2],(l&192)===128&&(u&192)===128&&(d=(a&15)<<12|(l&63)<<6|u&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:l=t[i+1],u=t[i+2],f=t[i+3],(l&192)===128&&(u&192)===128&&(f&192)===128&&(d=(a&15)<<18|(l&63)<<12|(u&63)<<6|f&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return Vo(r)}var Zn=4096;function Vo(t){var e=t.length;if(e<=Zn)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Zn));return n}function ea(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]&127);return r}function ta(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function na(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=e;a<n;++a)i+=sa(t[a]);return i}function ra(t,e,n){for(var r=t.slice(e,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+r[a+1]*256);return i}m.prototype.slice=function(e,n){var r=this.length;e=~~e,n=n===void 0?r:~~n,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<e&&(n=e);var i;if(m.TYPED_ARRAY_SUPPORT)i=this.subarray(e,n),i.__proto__=m.prototype;else{var a=n-e;i=new m(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+e]}return i};function ee(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUIntLE=function(e,n,r){e=e|0,n=n|0,r||ee(e,n,this.length);for(var i=this[e],a=1,o=0;++o<n&&(a*=256);)i+=this[e+o]*a;return i};m.prototype.readUIntBE=function(e,n,r){e=e|0,n=n|0,r||ee(e,n,this.length);for(var i=this[e+--n],a=1;n>0&&(a*=256);)i+=this[e+--n]*a;return i};m.prototype.readUInt8=function(e,n){return n||ee(e,1,this.length),this[e]};m.prototype.readUInt16LE=function(e,n){return n||ee(e,2,this.length),this[e]|this[e+1]<<8};m.prototype.readUInt16BE=function(e,n){return n||ee(e,2,this.length),this[e]<<8|this[e+1]};m.prototype.readUInt32LE=function(e,n){return n||ee(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};m.prototype.readUInt32BE=function(e,n){return n||ee(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};m.prototype.readIntLE=function(e,n,r){e=e|0,n=n|0,r||ee(e,n,this.length);for(var i=this[e],a=1,o=0;++o<n&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*n)),i};m.prototype.readIntBE=function(e,n,r){e=e|0,n=n|0,r||ee(e,n,this.length);for(var i=n,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*n)),o};m.prototype.readInt8=function(e,n){return n||ee(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};m.prototype.readInt16LE=function(e,n){n||ee(e,2,this.length);var r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};m.prototype.readInt16BE=function(e,n){n||ee(e,2,this.length);var r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};m.prototype.readInt32LE=function(e,n){return n||ee(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};m.prototype.readInt32BE=function(e,n){return n||ee(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};m.prototype.readFloatLE=function(e,n){return n||ee(e,4,this.length),xt(this,e,!0,23,4)};m.prototype.readFloatBE=function(e,n){return n||ee(e,4,this.length),xt(this,e,!1,23,4)};m.prototype.readDoubleLE=function(e,n){return n||ee(e,8,this.length),xt(this,e,!0,52,8)};m.prototype.readDoubleBE=function(e,n){return n||ee(e,8,this.length),xt(this,e,!1,52,8)};function ce(t,e,n,r,i,a){if(!Se(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}m.prototype.writeUIntLE=function(e,n,r,i){if(e=+e,n=n|0,r=r|0,!i){var a=Math.pow(2,8*r)-1;ce(this,e,n,r,a,0)}var o=1,s=0;for(this[n]=e&255;++s<r&&(o*=256);)this[n+s]=e/o&255;return n+r};m.prototype.writeUIntBE=function(e,n,r,i){if(e=+e,n=n|0,r=r|0,!i){var a=Math.pow(2,8*r)-1;ce(this,e,n,r,a,0)}var o=r-1,s=1;for(this[n+o]=e&255;--o>=0&&(s*=256);)this[n+o]=e/s&255;return n+r};m.prototype.writeUInt8=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,1,255,0),m.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=e&255,n+1};function Ct(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-n,2);i<a;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>(r?i:1-i)*8}m.prototype.writeUInt16LE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):Ct(this,e,n,!0),n+2};m.prototype.writeUInt16BE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):Ct(this,e,n,!1),n+2};function St(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-n,4);i<a;++i)t[n+i]=e>>>(r?i:3-i)*8&255}m.prototype.writeUInt32LE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255):St(this,e,n,!0),n+4};m.prototype.writeUInt32BE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):St(this,e,n,!1),n+4};m.prototype.writeIntLE=function(e,n,r,i){if(e=+e,n=n|0,!i){var a=Math.pow(2,8*r-1);ce(this,e,n,r,a-1,-a)}var o=0,s=1,l=0;for(this[n]=e&255;++o<r&&(s*=256);)e<0&&l===0&&this[n+o-1]!==0&&(l=1),this[n+o]=(e/s>>0)-l&255;return n+r};m.prototype.writeIntBE=function(e,n,r,i){if(e=+e,n=n|0,!i){var a=Math.pow(2,8*r-1);ce(this,e,n,r,a-1,-a)}var o=r-1,s=1,l=0;for(this[n+o]=e&255;--o>=0&&(s*=256);)e<0&&l===0&&this[n+o+1]!==0&&(l=1),this[n+o]=(e/s>>0)-l&255;return n+r};m.prototype.writeInt8=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,1,127,-128),m.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=e&255,n+1};m.prototype.writeInt16LE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):Ct(this,e,n,!0),n+2};m.prototype.writeInt16BE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):Ct(this,e,n,!1),n+2};m.prototype.writeInt32LE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,4,2147483647,-2147483648),m.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):St(this,e,n,!0),n+4};m.prototype.writeInt32BE=function(e,n,r){return e=+e,n=n|0,r||ce(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),m.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):St(this,e,n,!1),n+4};function Zr(t,e,n,r,i,a){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Jr(t,e,n,r,i){return i||Zr(t,e,n,4),Hr(t,e,n,r,23,4),n+4}m.prototype.writeFloatLE=function(e,n,r){return Jr(this,e,n,!0,r)};m.prototype.writeFloatBE=function(e,n,r){return Jr(this,e,n,!1,r)};function Xr(t,e,n,r,i){return i||Zr(t,e,n,8),Hr(t,e,n,r,52,8),n+8}m.prototype.writeDoubleLE=function(e,n,r){return Xr(this,e,n,!0,r)};m.prototype.writeDoubleBE=function(e,n,r){return Xr(this,e,n,!1,r)};m.prototype.copy=function(e,n,r,i){if(r||(r=0),!i&&i!==0&&(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i<r&&(i=r),i===r||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-n<i-r&&(i=e.length-n+r);var a=i-r,o;if(this===e&&r<n&&n<i)for(o=a-1;o>=0;--o)e[o+n]=this[o+r];else if(a<1e3||!m.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+n]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),n);return a};m.prototype.fill=function(e,n,r,i){if(typeof e=="string"){if(typeof n=="string"?(i=n,n=0,r=this.length):typeof r=="string"&&(i=r,r=this.length),e.length===1){var a=e.charCodeAt(0);a<256&&(e=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!m.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof e=="number"&&(e=e&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,e||(e=0);var o;if(typeof e=="number")for(o=n;o<r;++o)this[o]=e;else{var s=Se(e)?e:vt(new m(e,i).toString()),l=s.length;for(o=0;o<r-n;++o)this[o+n]=s[o%l]}return this};var ia=/[^+\/0-9A-Za-z-_]/g;function oa(t){if(t=aa(t).replace(ia,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function aa(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function sa(t){return t<16?"0"+t.toString(16):t.toString(16)}function vt(t,e){e=e||1/0;for(var n,r=t.length,i=null,a=[],o=0;o<r;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(e-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function la(t){for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n)&255);return e}function ca(t,e){for(var n,r,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=t.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function Qr(t){return Lo(oa(t))}function It(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function ua(t){return t!==t}function fa(t){return t!=null&&(!!t._isBuffer||Vr(t)||da(t))}function Vr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function da(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Vr(t.slice(0,0))}var ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ha(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}),e}var ti={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ei,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",f="week",d="month",h="quarter",p="year",y="date",w="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var k=["th","st","nd","rd"],E=S%100;return"["+S+(k[(E-20)%10]||k[E]||k[0])+"]"}},te=function(S,k,E){var R=String(S);return!R||R.length>=k?S:""+Array(k+1-R.length).join(E)+S},le={s:te,z:function(S){var k=-S.utcOffset(),E=Math.abs(k),R=Math.floor(E/60),C=E%60;return(k<=0?"+":"-")+te(R,2,"0")+":"+te(C,2,"0")},m:function S(k,E){if(k.date()<E.date())return-S(E,k);var R=12*(E.year()-k.year())+(E.month()-k.month()),C=k.clone().add(R,d),O=E-C<0,A=k.clone().add(R+(O?-1:1),d);return+(-(R+(E-C)/(O?C-A:A-C))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:p,w:f,d:u,D:y,h:l,m:s,s:o,ms:a,Q:h}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},ge="en",ne={};ne[ge]=M;var Ye=function(S){return S instanceof qe},je=function S(k,E,R){var C;if(!k)return ge;if(typeof k=="string"){var O=k.toLowerCase();ne[O]&&(C=O),E&&(ne[O]=E,C=O);var A=k.split("-");if(!C&&A.length>1)return S(A[0])}else{var U=k.name;ne[U]=k,C=U}return!R&&C&&(ge=C),C||!R&&ge},K=function(S,k){if(Ye(S))return S.clone();var E=typeof k=="object"?k:{};return E.date=S,E.args=arguments,new qe(E)},H=le;H.l=je,H.i=Ye,H.w=function(S,k){return K(S,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var qe=function(){function S(E){this.$L=je(E.locale,null,!0),this.parse(E)}var k=S.prototype;return k.parse=function(E){this.$d=function(R){var C=R.date,O=R.utc;if(C===null)return new Date(NaN);if(H.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var A=C.match(b);if(A){var U=A[2]-1||0,q=(A[7]||"0").substring(0,3);return O?new Date(Date.UTC(A[1],U,A[3]||1,A[4]||0,A[5]||0,A[6]||0,q)):new Date(A[1],U,A[3]||1,A[4]||0,A[5]||0,A[6]||0,q)}}return new Date(C)}(E),this.$x=E.x||{},this.init()},k.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},k.$utils=function(){return H},k.isValid=function(){return this.$d.toString()!==w},k.isSame=function(E,R){var C=K(E);return this.startOf(R)<=C&&C<=this.endOf(R)},k.isAfter=function(E,R){return K(E)<this.startOf(R)},k.isBefore=function(E,R){return this.endOf(R)<K(E)},k.$g=function(E,R,C){return H.u(E)?this[R]:this.set(C,E)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(E,R){var C=this,O=!!H.u(R)||R,A=H.p(E),U=function(we,Q){var ue=H.w(C.$u?Date.UTC(C.$y,Q,we):new Date(C.$y,Q,we),C);return O?ue:ue.endOf(u)},q=function(we,Q){return H.w(C.toDate()[we].apply(C.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(Q)),C)},j=this.$W,X=this.$M,$e=this.$D,ve="set"+(this.$u?"UTC":"");switch(A){case p:return O?U(1,0):U(31,11);case d:return O?U(1,X):U(0,X+1);case f:var _e=this.$locale().weekStart||0,De=(j<_e?j+7:j)-_e;return U(O?$e-De:$e+(6-De),X);case u:case y:return q(ve+"Hours",0);case l:return q(ve+"Minutes",1);case s:return q(ve+"Seconds",2);case o:return q(ve+"Milliseconds",3);default:return this.clone()}},k.endOf=function(E){return this.startOf(E,!1)},k.$set=function(E,R){var C,O=H.p(E),A="set"+(this.$u?"UTC":""),U=(C={},C[u]=A+"Date",C[y]=A+"Date",C[d]=A+"Month",C[p]=A+"FullYear",C[l]=A+"Hours",C[s]=A+"Minutes",C[o]=A+"Seconds",C[a]=A+"Milliseconds",C)[O],q=O===u?this.$D+(R-this.$W):R;if(O===d||O===p){var j=this.clone().set(y,1);j.$d[U](q),j.init(),this.$d=j.set(y,Math.min(this.$D,j.daysInMonth())).$d}else U&&this.$d[U](q);return this.init(),this},k.set=function(E,R){return this.clone().$set(E,R)},k.get=function(E){return this[H.p(E)]()},k.add=function(E,R){var C,O=this;E=Number(E);var A=H.p(R),U=function(X){var $e=K(O);return H.w($e.date($e.date()+Math.round(X*E)),O)};if(A===d)return this.set(d,this.$M+E);if(A===p)return this.set(p,this.$y+E);if(A===u)return U(1);if(A===f)return U(7);var q=(C={},C[s]=r,C[l]=i,C[o]=n,C)[A]||1,j=this.$d.getTime()+E*q;return H.w(j,this)},k.subtract=function(E,R){return this.add(-1*E,R)},k.format=function(E){var R=this,C=this.$locale();if(!this.isValid())return C.invalidDate||w;var O=E||"YYYY-MM-DDTHH:mm:ssZ",A=H.z(this),U=this.$H,q=this.$m,j=this.$M,X=C.weekdays,$e=C.months,ve=function(Q,ue,tt,He){return Q&&(Q[ue]||Q(R,O))||tt[ue].slice(0,He)},_e=function(Q){return H.s(U%12||12,Q,"0")},De=C.meridiem||function(Q,ue,tt){var He=Q<12?"AM":"PM";return tt?He.toLowerCase():He},we={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:H.s(j+1,2,"0"),MMM:ve(C.monthsShort,j,$e,3),MMMM:ve($e,j),D:this.$D,DD:H.s(this.$D,2,"0"),d:String(this.$W),dd:ve(C.weekdaysMin,this.$W,X,2),ddd:ve(C.weekdaysShort,this.$W,X,3),dddd:X[this.$W],H:String(U),HH:H.s(U,2,"0"),h:_e(1),hh:_e(2),a:De(U,q,!0),A:De(U,q,!1),m:String(q),mm:H.s(q,2,"0"),s:String(this.$s),ss:H.s(this.$s,2,"0"),SSS:H.s(this.$ms,3,"0"),Z:A};return O.replace(x,function(Q,ue){return ue||we[Q]||A.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(E,R,C){var O,A=H.p(R),U=K(E),q=(U.utcOffset()-this.utcOffset())*r,j=this-U,X=H.m(this,U);return X=(O={},O[p]=X/12,O[d]=X,O[h]=X/3,O[f]=(j-q)/6048e5,O[u]=(j-q)/864e5,O[l]=j/i,O[s]=j/r,O[o]=j/n,O)[A]||j,C?X:H.a(X)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return ne[this.$L]},k.locale=function(E,R){if(!E)return this.$L;var C=this.clone(),O=je(E,R,!0);return O&&(C.$L=O),C},k.clone=function(){return H.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},S}(),et=qe.prototype;return K.prototype=et,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",d],["$y",p],["$D",y]].forEach(function(S){et[S[1]]=function(k){return this.$g(k,S[0],S[1])}}),K.extend=function(S,k){return S.$i||(S(k,qe,K),S.$i=!0),K},K.locale=je,K.isDayjs=Ye,K.unix=function(S){return K(1e3*S)},K.en=ne[ge],K.Ls=ne,K.p={},K})})(ti);const pn=ti.exports;var Zt=["MO","TU","WE","TH","FR","SA","SU"],se=function(){function t(e,n){if(n===0)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=n}return t.fromStr=function(e){return new t(Zt.indexOf(e))},t.prototype.nth=function(e){return this.n===e?this:new t(this.weekday,e)},t.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},t.prototype.toString=function(){var e=Zt[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},t.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},t}(),J=function(t){return t!=null},Ee=function(t){return typeof t=="number"},Jn=function(t){return typeof t=="string"&&Zt.includes(t)},de=Array.isArray,Ie=function(t,e){e===void 0&&(e=t),arguments.length===1&&(e=t,t=0);for(var n=[],r=t;r<e;r++)n.push(r);return n},L=function(t,e){var n=0,r=[];if(de(t))for(;n<e;n++)r[n]=[].concat(t);else for(;n<e;n++)r[n]=t;return r},pa=function(t){return de(t)?t:[t]};function Ge(t,e,n){n===void 0&&(n=" ");var r=String(t);return e=e>>0,r.length>e?String(r):(e=e-r.length,e>n.length&&(n+=L(n,e/n.length)),n.slice(0,e)+String(r))}var ya=function(t,e,n){var r=t.split(e);return n?r.slice(0,n).concat([r.slice(n).join(e)]):r},me=function(t,e){var n=t%e;return n*e<0?n+e:n},Lt=function(t,e){return{div:Math.floor(t/e),mod:me(t,e)}},Te=function(t){return!J(t)||t.length===0},V=function(t){return!Te(t)},W=function(t,e){return V(t)&&t.indexOf(e)!==-1},We=function(t,e,n,r,i,a){return r===void 0&&(r=0),i===void 0&&(i=0),a===void 0&&(a=0),new Date(Date.UTC(t,e-1,n,r,i,a))},ma=[31,28,31,30,31,30,31,31,30,31,30,31],ni=1e3*60*60*24,ri=9999,ii=We(1970,1,1),ga=[6,0,1,2,3,4,5],at=function(t){return t%4===0&&t%100!==0||t%400===0},oi=function(t){return t instanceof Date},ot=function(t){return oi(t)&&!isNaN(t.getTime())},Xn=function(t){return t.getTimezoneOffset()*60*1e3},va=function(t,e){var n=t.getTime()-Xn(t),r=e.getTime()-Xn(e),i=n-r;return Math.round(i/ni)},Jt=function(t){return va(t,ii)},ai=function(t){return new Date(ii.getTime()+t*ni)},wa=function(t){var e=t.getUTCMonth();return e===1&&at(t.getUTCFullYear())?29:ma[e]},Qe=function(t){return ga[t.getUTCDay()]},Qn=function(t,e){var n=We(t,e+1,1);return[Qe(n),wa(n)]},si=function(t,e){return e=e||t,new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},Xt=function(t){var e=new Date(t.getTime());return e},Vn=function(t){for(var e=[],n=0;n<t.length;n++)e.push(Xt(t[n]));return e},lt=function(t){t.sort(function(e,n){return e.getTime()-n.getTime()})},yn=function(t,e){e===void 0&&(e=!0);var n=new Date(t);return[Ge(n.getUTCFullYear().toString(),4,"0"),Ge(n.getUTCMonth()+1,2,"0"),Ge(n.getUTCDate(),2,"0"),"T",Ge(n.getUTCHours(),2,"0"),Ge(n.getUTCMinutes(),2,"0"),Ge(n.getUTCSeconds(),2,"0"),e?"Z":""].join("")},mn=function(t){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,n=e.exec(t);if(!n)throw new Error("Invalid UNTIL value: ".concat(t));return new Date(Date.UTC(parseInt(n[1],10),parseInt(n[2],10)-1,parseInt(n[3],10),parseInt(n[5],10)||0,parseInt(n[6],10)||0,parseInt(n[7],10)||0))},er=function(t,e){var n=t.toLocaleString("sv-SE",{timeZone:e});return n.replace(" ","T")+"Z"},ba=function(t,e){var n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new Date(er(t,n)),i=new Date(er(t,e??"UTC")),a=i.getTime()-r.getTime();return new Date(t.getTime()-a)},Xe=function(){function t(e,n){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=n,e==="between"?(this.maxDate=n.inc?n.before:new Date(n.before.getTime()-1),this.minDate=n.inc?n.after:new Date(n.after.getTime()+1)):e==="before"?this.maxDate=n.inc?n.dt:new Date(n.dt.getTime()-1):e==="after"&&(this.minDate=n.inc?n.dt:new Date(n.dt.getTime()+1))}return t.prototype.accept=function(e){++this.total;var n=this.minDate&&e<this.minDate,r=this.maxDate&&e>this.maxDate;if(this.method==="between"){if(n)return!0;if(r)return!1}else if(this.method==="before"){if(r)return!1}else if(this.method==="after")return n?!0:(this.add(e),!1);return this.add(e)},t.prototype.add=function(e){return this._result.push(e),!0},t.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;case"before":case"after":default:return e.length?e[e.length-1]:null}},t.prototype.clone=function(){return new t(this.method,this.args)},t}(),Qt=function(t,e){return Qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Qt(t,e)};function gn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Qt(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var he=function(){return he=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},he.apply(this,arguments)};function $(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}var tr=function(t){gn(e,t);function e(n,r,i){var a=t.call(this,n,r)||this;return a.iterator=i,a}return e.prototype.add=function(n){return this.iterator(n,this._result.length)?(this._result.push(n),!0):!1},e}(Xe),wt={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},nr=function(t,e){return t.indexOf(e)!==-1},$a=function(t){return t.toString()},Ea=function(t,e,n){return"".concat(e," ").concat(n,", ").concat(t)},Le=function(){function t(e,n,r,i){if(n===void 0&&(n=$a),r===void 0&&(r=wt),i===void 0&&(i=Ea),this.text=[],this.language=r||wt,this.gettext=n,this.dateFormatter=i,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var a=[].concat(this.options.bymonthday),o=[].concat(this.options.bynmonthday);a.sort(function(f,d){return f-d}),o.sort(function(f,d){return d-f}),this.bymonthday=a.concat(o),this.bymonthday.length||(this.bymonthday=null)}if(J(this.origOptions.byweekday)){var s=de(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],l=String(s);this.byweekday={allWeeks:s.filter(function(f){return!f.n}),someWeeks:s.filter(function(f){return!!f.n}),isWeekdays:l.indexOf("MO")!==-1&&l.indexOf("TU")!==-1&&l.indexOf("WE")!==-1&&l.indexOf("TH")!==-1&&l.indexOf("FR")!==-1&&l.indexOf("SA")===-1&&l.indexOf("SU")===-1,isEveryDay:l.indexOf("MO")!==-1&&l.indexOf("TU")!==-1&&l.indexOf("WE")!==-1&&l.indexOf("TH")!==-1&&l.indexOf("FR")!==-1&&l.indexOf("SA")!==-1&&l.indexOf("SU")!==-1};var u=function(f,d){return f.weekday-d.weekday};this.byweekday.allWeeks.sort(u),this.byweekday.someWeeks.sort(u),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return t.isFullyConvertible=function(e){var n=!0;if(!(e.options.freq in t.IMPLEMENTED)||e.origOptions.until&&e.origOptions.count)return!1;for(var r in e.origOptions){if(nr(["dtstart","wkst","freq"],r))return!0;if(!nr(t.IMPLEMENTED[e.options.freq],r))return!1}return n},t.prototype.isFullyConvertible=function(){return t.isFullyConvertible(this.rrule)},t.prototype.toString=function(){var e=this.gettext;if(!(this.options.freq in t.IMPLEMENTED))return e("RRule error: Unable to fully convert this rrule to text");if(this.text=[e("every")],this[_.FREQUENCIES[this.options.freq]](),this.options.until){this.add(e("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?e("times"):e("time"));return this.isFullyConvertible()||this.add(e("(~ approximate)")),this.text.join("")},t.prototype.HOURLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},t.prototype.MINUTELY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},t.prototype.DAILY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},t.prototype.WEEKLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(this.options.interval===1&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},t.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},t.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},t.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},t.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},t.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},t.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},t.prototype.nth=function(e){e=parseInt(e.toString(),10);var n,r=this.gettext;if(e===-1)return r("last");var i=Math.abs(e);switch(i){case 1:case 21:case 31:n=i+r("st");break;case 2:case 22:n=i+r("nd");break;case 3:case 23:n=i+r("rd");break;default:n=i+r("th")}return e<0?n+" "+r("last"):n},t.prototype.monthtext=function(e){return this.language.monthNames[e-1]},t.prototype.weekdaytext=function(e){var n=Ee(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[n]},t.prototype.plural=function(e){return e%100!==1},t.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},t.prototype.list=function(e,n,r,i){var a=this;i===void 0&&(i=","),de(e)||(e=[e]);var o=function(l,u,f){for(var d="",h=0;h<l.length;h++)h!==0&&(h===l.length-1?d+=" "+f+" ":d+=u+" "),d+=l[h];return d};n=n||function(l){return l.toString()};var s=function(l){return n&&n.call(a,l)};return r?o(e.map(s),i,r):e.map(s).join(i+" ")},t}(),Ta=function(){function t(e){this.done=!0,this.rules=e}return t.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},t.prototype.isDone=function(){return this.done&&this.symbol===null},t.prototype.nextSymbol=function(){var e,n;this.symbol=null,this.value=null;do{if(this.done)return!1;var r=void 0;e=null;for(var i in this.rules){r=this.rules[i];var a=r.exec(this.text);a&&(e===null||a[0].length>e[0].length)&&(e=a,n=i)}if(e!=null&&(this.text=this.text.substr(e[0].length),this.text===""&&(this.done=!0)),e==null){this.done=!0,this.symbol=null,this.value=null;return}}while(n==="SKIP");return this.symbol=n,this.value=e,!0},t.prototype.accept=function(e){if(this.symbol===e){if(this.value){var n=this.value;return this.nextSymbol(),n}return this.nextSymbol(),!0}return!1},t.prototype.acceptNumber=function(){return this.accept("number")},t.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},t}();function li(t,e){e===void 0&&(e=wt);var n={},r=new Ta(e.tokens);if(!r.start(t))return null;return i(),n;function i(){r.expect("every");var h=r.acceptNumber();if(h&&(n.interval=parseInt(h[0],10)),r.isDone())throw new Error("Unexpected end");switch(r.symbol){case"day(s)":n.freq=_.DAILY,r.nextSymbol()&&(o(),d());break;case"weekday(s)":n.freq=_.WEEKLY,n.byweekday=[_.MO,_.TU,_.WE,_.TH,_.FR],r.nextSymbol(),d();break;case"week(s)":n.freq=_.WEEKLY,r.nextSymbol()&&(a(),d());break;case"hour(s)":n.freq=_.HOURLY,r.nextSymbol()&&(a(),d());break;case"minute(s)":n.freq=_.MINUTELY,r.nextSymbol()&&(a(),d());break;case"month(s)":n.freq=_.MONTHLY,r.nextSymbol()&&(a(),d());break;case"year(s)":n.freq=_.YEARLY,r.nextSymbol()&&(a(),d());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=_.WEEKLY;var p=r.symbol.substr(0,2).toUpperCase();if(n.byweekday=[_[p]],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var y=l();if(!y)throw new Error("Unexpected symbol "+r.symbol+", expected weekday");n.byweekday.push(_[y]),r.nextSymbol()}f(),d();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=_.YEARLY,n.bymonth=[s()],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var w=s();if(!w)throw new Error("Unexpected symbol "+r.symbol+", expected month");n.bymonth.push(w),r.nextSymbol()}a(),d();break;default:throw new Error("Unknown symbol")}}function a(){var h=r.accept("on"),p=r.accept("the");if(h||p)do{var y=u(),w=l(),b=s();if(y)w?(r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(_[w].nth(y))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(y),r.accept("day(s)"));else if(w)r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(_[w]);else if(r.symbol==="weekday(s)")r.nextSymbol(),n.byweekday||(n.byweekday=[_.MO,_.TU,_.WE,_.TH,_.FR]);else if(r.symbol==="week(s)"){r.nextSymbol();var x=r.acceptNumber();if(!x)throw new Error("Unexpected symbol "+r.symbol+", expected week number");for(n.byweekno=[parseInt(x[0],10)];r.accept("comma");){if(x=r.acceptNumber(),!x)throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.byweekno.push(parseInt(x[0],10))}}else if(b)r.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(b);else return}while(r.accept("comma")||r.accept("the")||r.accept("on"))}function o(){var h=r.accept("at");if(h)do{var p=r.acceptNumber();if(!p)throw new Error("Unexpected symbol "+r.symbol+", expected hour");for(n.byhour=[parseInt(p[0],10)];r.accept("comma");){if(p=r.acceptNumber(),!p)throw new Error("Unexpected symbol "+r.symbol+"; expected hour");n.byhour.push(parseInt(p[0],10))}}while(r.accept("comma")||r.accept("at"))}function s(){switch(r.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function l(){switch(r.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return r.symbol.substr(0,2).toUpperCase();default:return!1}}function u(){switch(r.symbol){case"last":return r.nextSymbol(),-1;case"first":return r.nextSymbol(),1;case"second":return r.nextSymbol(),r.accept("last")?-2:2;case"third":return r.nextSymbol(),r.accept("last")?-3:3;case"nth":var h=parseInt(r.value[1],10);if(h<-366||h>366)throw new Error("Nth out of range: "+h);return r.nextSymbol(),r.accept("last")?-h:h;default:return!1}}function f(){r.accept("on"),r.accept("the");var h=u();if(h)for(n.bymonthday=[h],r.nextSymbol();r.accept("comma");){if(h=u(),!h)throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.bymonthday.push(h),r.nextSymbol()}}function d(){if(r.symbol==="until"){var h=Date.parse(r.text);if(!h)throw new Error("Cannot parse until date:"+r.text);n.until=new Date(h)}else r.accept("for")&&(n.count=parseInt(r.value[0],10),r.expect("number"))}}var F;(function(t){t[t.YEARLY=0]="YEARLY",t[t.MONTHLY=1]="MONTHLY",t[t.WEEKLY=2]="WEEKLY",t[t.DAILY=3]="DAILY",t[t.HOURLY=4]="HOURLY",t[t.MINUTELY=5]="MINUTELY",t[t.SECONDLY=6]="SECONDLY"})(F||(F={}));function vn(t){return t<F.HOURLY}var ka=function(t,e){return e===void 0&&(e=wt),new _(li(t,e)||void 0)},Ve=["count","until","interval","byweekday","bymonthday","bymonth"];Le.IMPLEMENTED=[];Le.IMPLEMENTED[F.HOURLY]=Ve;Le.IMPLEMENTED[F.MINUTELY]=Ve;Le.IMPLEMENTED[F.DAILY]=["byhour"].concat(Ve);Le.IMPLEMENTED[F.WEEKLY]=Ve;Le.IMPLEMENTED[F.MONTHLY]=Ve;Le.IMPLEMENTED[F.YEARLY]=["byweekno","byyearday"].concat(Ve);var xa=function(t,e,n,r){return new Le(t,e,n,r).toString()},Ca=Le.isFullyConvertible,bt=function(){function t(e,n,r,i){this.hour=e,this.minute=n,this.second=r,this.millisecond=i||0}return t.prototype.getHours=function(){return this.hour},t.prototype.getMinutes=function(){return this.minute},t.prototype.getSeconds=function(){return this.second},t.prototype.getMilliseconds=function(){return this.millisecond},t.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},t}(),Sa=function(t){gn(e,t);function e(n,r,i,a,o,s,l){var u=t.call(this,a,o,s,l)||this;return u.year=n,u.month=r,u.day=i,u}return e.fromDate=function(n){return new this(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.valueOf()%1e3)},e.prototype.getWeekday=function(){return Qe(new Date(this.getTime()))},e.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},e.prototype.getDay=function(){return this.day},e.prototype.getMonth=function(){return this.month},e.prototype.getYear=function(){return this.year},e.prototype.addYears=function(n){this.year+=n},e.prototype.addMonths=function(n){if(this.month+=n,this.month>12){var r=Math.floor(this.month/12),i=me(this.month,12);this.month=i,this.year+=r,this.month===0&&(this.month=12,--this.year)}},e.prototype.addWeekly=function(n,r){r>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-r))+n*7:this.day+=-(this.getWeekday()-r)+n*7,this.fixDay()},e.prototype.addDaily=function(n){this.day+=n,this.fixDay()},e.prototype.addHours=function(n,r,i){for(r&&(this.hour+=Math.floor((23-this.hour)/n)*n);;){this.hour+=n;var a=Lt(this.hour,24),o=a.div,s=a.mod;if(o&&(this.hour=s,this.addDaily(o)),Te(i)||W(i,this.hour))break}},e.prototype.addMinutes=function(n,r,i,a){for(r&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/n)*n);;){this.minute+=n;var o=Lt(this.minute,60),s=o.div,l=o.mod;if(s&&(this.minute=l,this.addHours(s,!1,i)),(Te(i)||W(i,this.hour))&&(Te(a)||W(a,this.minute)))break}},e.prototype.addSeconds=function(n,r,i,a,o){for(r&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/n)*n);;){this.second+=n;var s=Lt(this.second,60),l=s.div,u=s.mod;if(l&&(this.second=u,this.addMinutes(l,!1,i,a)),(Te(i)||W(i,this.hour))&&(Te(a)||W(a,this.minute))&&(Te(o)||W(o,this.second)))break}},e.prototype.fixDay=function(){if(!(this.day<=28)){var n=Qn(this.year,this.month-1)[1];if(!(this.day<=n))for(;this.day>n;){if(this.day-=n,++this.month,this.month===13&&(this.month=1,++this.year,this.year>ri))return;n=Qn(this.year,this.month-1)[1]}}},e.prototype.add=function(n,r){var i=n.freq,a=n.interval,o=n.wkst,s=n.byhour,l=n.byminute,u=n.bysecond;switch(i){case F.YEARLY:return this.addYears(a);case F.MONTHLY:return this.addMonths(a);case F.WEEKLY:return this.addWeekly(a,o);case F.DAILY:return this.addDaily(a);case F.HOURLY:return this.addHours(a,r,s);case F.MINUTELY:return this.addMinutes(a,r,s,l);case F.SECONDLY:return this.addSeconds(a,r,s,l,u)}},e}(bt);function ci(t){for(var e=[],n=Object.keys(t),r=0,i=n;r<i.length;r++){var a=i[r];W(rs,a)||e.push(a),oi(t[a])&&!ot(t[a])&&e.push(a)}if(e.length)throw new Error("Invalid options: "+e.join(", "));return he({},t)}function Ia(t){var e=he(he({},wn),ci(t));if(J(e.byeaster)&&(e.freq=_.YEARLY),!(J(e.freq)&&_.FREQUENCIES[e.freq]))throw new Error("Invalid frequency: ".concat(e.freq," ").concat(t.freq));if(e.dtstart||(e.dtstart=new Date(new Date().setMilliseconds(0))),J(e.wkst)?Ee(e.wkst)||(e.wkst=e.wkst.weekday):e.wkst=_.MO.weekday,J(e.bysetpos)){Ee(e.bysetpos)&&(e.bysetpos=[e.bysetpos]);for(var n=0;n<e.bysetpos.length;n++){var r=e.bysetpos[n];if(r===0||!(r>=-366&&r<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(e.byweekno||V(e.byweekno)||V(e.byyearday)||e.bymonthday||V(e.bymonthday)||J(e.byweekday)||J(e.byeaster)))switch(e.freq){case _.YEARLY:e.bymonth||(e.bymonth=e.dtstart.getUTCMonth()+1),e.bymonthday=e.dtstart.getUTCDate();break;case _.MONTHLY:e.bymonthday=e.dtstart.getUTCDate();break;case _.WEEKLY:e.byweekday=[Qe(e.dtstart)];break}if(J(e.bymonth)&&!de(e.bymonth)&&(e.bymonth=[e.bymonth]),J(e.byyearday)&&!de(e.byyearday)&&Ee(e.byyearday)&&(e.byyearday=[e.byyearday]),!J(e.bymonthday))e.bymonthday=[],e.bynmonthday=[];else if(de(e.bymonthday)){for(var i=[],a=[],n=0;n<e.bymonthday.length;n++){var r=e.bymonthday[n];r>0?i.push(r):r<0&&a.push(r)}e.bymonthday=i,e.bynmonthday=a}else e.bymonthday<0?(e.bynmonthday=[e.bymonthday],e.bymonthday=[]):(e.bynmonthday=[],e.bymonthday=[e.bymonthday]);if(J(e.byweekno)&&!de(e.byweekno)&&(e.byweekno=[e.byweekno]),!J(e.byweekday))e.bynweekday=null;else if(Ee(e.byweekday))e.byweekday=[e.byweekday],e.bynweekday=null;else if(Jn(e.byweekday))e.byweekday=[se.fromStr(e.byweekday).weekday],e.bynweekday=null;else if(e.byweekday instanceof se)!e.byweekday.n||e.freq>_.MONTHLY?(e.byweekday=[e.byweekday.weekday],e.bynweekday=null):(e.bynweekday=[[e.byweekday.weekday,e.byweekday.n]],e.byweekday=null);else{for(var o=[],s=[],n=0;n<e.byweekday.length;n++){var l=e.byweekday[n];if(Ee(l)){o.push(l);continue}else if(Jn(l)){o.push(se.fromStr(l).weekday);continue}!l.n||e.freq>_.MONTHLY?o.push(l.weekday):s.push([l.weekday,l.n])}e.byweekday=V(o)?o:null,e.bynweekday=V(s)?s:null}return J(e.byhour)?Ee(e.byhour)&&(e.byhour=[e.byhour]):e.byhour=e.freq<_.HOURLY?[e.dtstart.getUTCHours()]:null,J(e.byminute)?Ee(e.byminute)&&(e.byminute=[e.byminute]):e.byminute=e.freq<_.MINUTELY?[e.dtstart.getUTCMinutes()]:null,J(e.bysecond)?Ee(e.bysecond)&&(e.bysecond=[e.bysecond]):e.bysecond=e.freq<_.SECONDLY?[e.dtstart.getUTCSeconds()]:null,{parsedOptions:e}}function _a(t){var e=t.dtstart.getTime()%1e3;if(!vn(t.freq))return[];var n=[];return t.byhour.forEach(function(r){t.byminute.forEach(function(i){t.bysecond.forEach(function(a){n.push(new bt(r,i,a,e))})})}),n}function Vt(t){var e=t.split(`
7
- `).map(Da).filter(function(n){return n!==null});return he(he({},e[0]),e[1])}function $t(t){var e={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);if(!n)return e;var r=n[1],i=n[2];return r&&(e.tzid=r),e.dtstart=mn(i),e}function Da(t){if(t=t.replace(/^\s+|\s+$/,""),!t.length)return null;var e=/^([A-Z]+?)[:;]/.exec(t.toUpperCase());if(!e)return rr(t);var n=e[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return rr(t);case"DTSTART":return $t(t);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(t))}}function rr(t){var e=t.replace(/^RRULE:/i,""),n=$t(e),r=t.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return r.forEach(function(i){var a=i.split("="),o=a[0],s=a[1];switch(o.toUpperCase()){case"FREQ":n.freq=F[s.toUpperCase()];break;case"WKST":n.wkst=be[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var l=Ra(s),u=o.toLowerCase();n[u]=l;break;case"BYWEEKDAY":case"BYDAY":n.byweekday=Aa(s);break;case"DTSTART":case"TZID":var f=$t(t);n.tzid=f.tzid,n.dtstart=f.dtstart;break;case"UNTIL":n.until=mn(s);break;case"BYEASTER":n.byeaster=Number(s);break;default:throw new Error("Unknown RRULE property '"+o+"'")}}),n}function Ra(t){if(t.indexOf(",")!==-1){var e=t.split(",");return e.map(ir)}return ir(t)}function ir(t){return/^[+-]?\d+$/.test(t)?Number(t):t}function Aa(t){var e=t.split(",");return e.map(function(n){if(n.length===2)return be[n];var r=n.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!r||r.length<3)throw new SyntaxError("Invalid weekday string: ".concat(n));var i=Number(r[1]),a=r[2],o=be[a].weekday;return new se(o,i)})}var Et=function(){function t(e,n){if(isNaN(e.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=n}return Object.defineProperty(t.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=yn(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},t.prototype.getTime=function(){return this.date.getTime()},t.prototype.rezonedDate=function(){return this.isUTC?this.date:ba(this.date,this.tzid)},t}();function en(t){for(var e=[],n="",r=Object.keys(t),i=Object.keys(wn),a=0;a<r.length;a++)if(r[a]!=="tzid"&&W(i,r[a])){var o=r[a].toUpperCase(),s=t[r[a]],l="";if(!(!J(s)||de(s)&&!s.length)){switch(o){case"FREQ":l=_.FREQUENCIES[t.freq];break;case"WKST":Ee(s)?l=new se(s).toString():l=s.toString();break;case"BYWEEKDAY":o="BYDAY",l=pa(s).map(function(p){return p instanceof se?p:de(p)?new se(p[0],p[1]):new se(p)}).toString();break;case"DTSTART":n=Oa(s,t.tzid);break;case"UNTIL":l=yn(s,!t.tzid);break;default:if(de(s)){for(var u=[],f=0;f<s.length;f++)u[f]=String(s[f]);l=u.toString()}else l=String(s)}l&&e.push([o,l])}}var d=e.map(function(p){var y=p[0],w=p[1];return"".concat(y,"=").concat(w.toString())}).join(";"),h="";return d!==""&&(h="RRULE:".concat(d)),[n,h].filter(function(p){return!!p}).join(`
8
- `)}function Oa(t,e){return t?"DTSTART"+new Et(new Date(t),e).toString():""}function Ma(t,e){return Array.isArray(t)?!Array.isArray(e)||t.length!==e.length?!1:t.every(function(n,r){return n.getTime()===e[r].getTime()}):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():t===e}var Na=function(){function t(){this.all=!1,this.before=[],this.after=[],this.between=[]}return t.prototype._cacheAdd=function(e,n,r){n&&(n=n instanceof Date?Xt(n):Vn(n)),e==="all"?this.all=n:(r._value=n,this[e].push(r))},t.prototype._cacheGet=function(e,n){var r=!1,i=n?Object.keys(n):[],a=function(f){for(var d=0;d<i.length;d++){var h=i[d];if(!Ma(n[h],f[h]))return!0}return!1},o=this[e];if(e==="all")r=this.all;else if(de(o))for(var s=0;s<o.length;s++){var l=o[s];if(!(i.length&&a(l))){r=l._value;break}}if(!r&&this.all){for(var u=new Xe(e,n),s=0;s<this.all.length&&u.accept(this.all[s]);s++);r=u.getValue(),this._cacheAdd(e,r,n)}return de(r)?Vn(r):r instanceof Date?Xt(r):r},t}(),Pa=$($($($($($($($($($($($($([],L(1,31),!0),L(2,28),!0),L(3,31),!0),L(4,30),!0),L(5,31),!0),L(6,30),!0),L(7,31),!0),L(8,31),!0),L(9,30),!0),L(10,31),!0),L(11,30),!0),L(12,31),!0),L(1,7),!0),La=$($($($($($($($($($($($($([],L(1,31),!0),L(2,29),!0),L(3,31),!0),L(4,30),!0),L(5,31),!0),L(6,30),!0),L(7,31),!0),L(8,31),!0),L(9,30),!0),L(10,31),!0),L(11,30),!0),L(12,31),!0),L(1,7),!0),Fa=Ie(1,29),Ua=Ie(1,30),Fe=Ie(1,31),re=Ie(1,32),Ya=$($($($($($($($($($($($($([],re,!0),Ua,!0),re,!0),Fe,!0),re,!0),Fe,!0),re,!0),re,!0),Fe,!0),re,!0),Fe,!0),re,!0),re.slice(0,7),!0),Ha=$($($($($($($($($($($($($([],re,!0),Fa,!0),re,!0),Fe,!0),re,!0),Fe,!0),re,!0),re,!0),Fe,!0),re,!0),Fe,!0),re,!0),re.slice(0,7),!0),Ba=Ie(-28,0),Wa=Ie(-29,0),Ue=Ie(-30,0),ie=Ie(-31,0),ja=$($($($($($($($($($($($($([],ie,!0),Wa,!0),ie,!0),Ue,!0),ie,!0),Ue,!0),ie,!0),ie,!0),Ue,!0),ie,!0),Ue,!0),ie,!0),ie.slice(0,7),!0),qa=$($($($($($($($($($($($($([],ie,!0),Ba,!0),ie,!0),Ue,!0),ie,!0),Ue,!0),ie,!0),ie,!0),Ue,!0),ie,!0),Ue,!0),ie,!0),ie.slice(0,7),!0),za=[0,31,60,91,121,152,182,213,244,274,305,335,366],Ka=[0,31,59,90,120,151,181,212,243,273,304,334,365],or=function(){for(var t=[],e=0;e<55;e++)t=t.concat(Ie(7));return t}();function Ga(t,e){var n=We(t,1,1),r=at(t)?366:365,i=at(t+1)?366:365,a=Jt(n),o=Qe(n),s=he(he({yearlen:r,nextyearlen:i,yearordinal:a,yearweekday:o},Za(t)),{wnomask:null});if(Te(e.byweekno))return s;s.wnomask=L(0,r+7);var l,u,f=l=me(7-o+e.wkst,7);f>=4?(f=0,u=s.yearlen+me(o-e.wkst,7)):u=r-f;for(var d=Math.floor(u/7),h=me(u,7),p=Math.floor(d+h/4),y=0;y<e.byweekno.length;y++){var w=e.byweekno[y];if(w<0&&(w+=p+1),w>0&&w<=p){var b=void 0;w>1?(b=f+(w-1)*7,f!==l&&(b-=7-l)):b=f;for(var x=0;x<7&&(s.wnomask[b]=1,b++,s.wdaymask[b]!==e.wkst);x++);}}if(W(e.byweekno,1)){var b=f+p*7;if(f!==l&&(b-=7-l),b<r)for(var y=0;y<7&&(s.wnomask[b]=1,b+=1,s.wdaymask[b]!==e.wkst);y++);}if(f){var M=void 0;if(W(e.byweekno,-1))M=-1;else{var te=Qe(We(t-1,1,1)),le=me(7-te.valueOf()+e.wkst,7),ge=at(t-1)?366:365,ne=void 0;le>=4?(le=0,ne=ge+me(te-e.wkst,7)):ne=r-f,M=Math.floor(52+me(ne,7)/4)}if(W(e.byweekno,M))for(var b=0;b<f;b++)s.wnomask[b]=1}return s}function Za(t){var e=at(t)?366:365,n=We(t,1,1),r=Qe(n);return e===365?{mmask:Pa,mdaymask:Ha,nmdaymask:qa,wdaymask:or.slice(r),mrange:Ka}:{mmask:La,mdaymask:Ya,nmdaymask:ja,wdaymask:or.slice(r),mrange:za}}function Ja(t,e,n,r,i,a){var o={lastyear:t,lastmonth:e,nwdaymask:[]},s=[];if(a.freq===_.YEARLY)if(Te(a.bymonth))s=[[0,n]];else for(var l=0;l<a.bymonth.length;l++)e=a.bymonth[l],s.push(r.slice(e-1,e+1));else a.freq===_.MONTHLY&&(s=[r.slice(e-1,e+1)]);if(Te(s))return o;o.nwdaymask=L(0,n);for(var l=0;l<s.length;l++)for(var u=s[l],f=u[0],d=u[1]-1,h=0;h<a.bynweekday.length;h++){var p=void 0,y=a.bynweekday[h],w=y[0],b=y[1];b<0?(p=d+(b+1)*7,p-=me(i[p]-w,7)):(p=f+(b-1)*7,p+=me(7-i[p]+w,7)),f<=p&&p<=d&&(o.nwdaymask[p]=1)}return o}function Xa(t,e){e===void 0&&(e=0);var n=t%19,r=Math.floor(t/100),i=t%100,a=Math.floor(r/4),o=r%4,s=Math.floor((r+8)/25),l=Math.floor((r-s+1)/3),u=Math.floor(19*n+r-a-l+15)%30,f=Math.floor(i/4),d=i%4,h=Math.floor(32+2*o+2*f-u-d)%7,p=Math.floor((n+11*u+22*h)/451),y=Math.floor((u+h-7*p+114)/31),w=(u+h-7*p+114)%31+1,b=Date.UTC(t,y-1,w+e),x=Date.UTC(t,0,1);return[Math.ceil((b-x)/(1e3*60*60*24))]}var Qa=function(){function t(e){this.options=e}return t.prototype.rebuild=function(e,n){var r=this.options;if(e!==this.lastyear&&(this.yearinfo=Ga(e,r)),V(r.bynweekday)&&(n!==this.lastmonth||e!==this.lastyear)){var i=this.yearinfo,a=i.yearlen,o=i.mrange,s=i.wdaymask;this.monthinfo=Ja(e,n,a,o,s,r)}J(r.byeaster)&&(this.eastermask=Xa(e,r.byeaster))},Object.defineProperty(t.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),t.prototype.ydayset=function(){return[Ie(this.yearlen),0,this.yearlen]},t.prototype.mdayset=function(e,n){for(var r=this.mrange[n-1],i=this.mrange[n],a=L(null,this.yearlen),o=r;o<i;o++)a[o]=o;return[a,r,i]},t.prototype.wdayset=function(e,n,r){for(var i=L(null,this.yearlen+7),a=Jt(We(e,n,r))-this.yearordinal,o=a,s=0;s<7&&(i[a]=a,++a,this.wdaymask[a]!==this.options.wkst);s++);return[i,o,a]},t.prototype.ddayset=function(e,n,r){var i=L(null,this.yearlen),a=Jt(We(e,n,r))-this.yearordinal;return i[a]=a,[i,a,a+1]},t.prototype.htimeset=function(e,n,r,i){var a=this,o=[];return this.options.byminute.forEach(function(s){o=o.concat(a.mtimeset(e,s,r,i))}),lt(o),o},t.prototype.mtimeset=function(e,n,r,i){var a=this.options.bysecond.map(function(o){return new bt(e,n,o,i)});return lt(a),a},t.prototype.stimeset=function(e,n,r,i){return[new bt(e,n,r,i)]},t.prototype.getdayset=function(e){switch(e){case F.YEARLY:return this.ydayset.bind(this);case F.MONTHLY:return this.mdayset.bind(this);case F.WEEKLY:return this.wdayset.bind(this);case F.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}},t.prototype.gettimeset=function(e){switch(e){case F.HOURLY:return this.htimeset.bind(this);case F.MINUTELY:return this.mtimeset.bind(this);case F.SECONDLY:return this.stimeset.bind(this)}},t}();function Va(t,e,n,r,i,a){for(var o=[],s=0;s<t.length;s++){var l=void 0,u=void 0,f=t[s];f<0?(l=Math.floor(f/e.length),u=me(f,e.length)):(l=Math.floor((f-1)/e.length),u=me(f-1,e.length));for(var d=[],h=n;h<r;h++){var p=a[h];J(p)&&d.push(p)}var y=void 0;l<0?y=d.slice(l)[0]:y=d[l];var w=e[u],b=ai(i.yearordinal+y),x=si(b,w);W(o,x)||o.push(x)}return lt(o),o}function ui(t,e){var n=e.dtstart,r=e.freq,i=e.interval,a=e.until,o=e.bysetpos,s=e.count;if(s===0||i===0)return Ae(t);var l=Sa.fromDate(n),u=new Qa(e);u.rebuild(l.year,l.month);for(var f=ns(u,l,e);;){var d=u.getdayset(r)(l.year,l.month,l.day),h=d[0],p=d[1],y=d[2],w=ts(h,p,y,u,e);if(V(o))for(var b=Va(o,f,p,y,u,h),x=0;x<b.length;x++){var M=b[x];if(a&&M>a)return Ae(t);if(M>=n){var te=ar(M,e);if(!t.accept(te)||s&&(--s,!s))return Ae(t)}}else for(var x=p;x<y;x++){var le=h[x];if(J(le))for(var ge=ai(u.yearordinal+le),ne=0;ne<f.length;ne++){var Ye=f[ne],M=si(ge,Ye);if(a&&M>a)return Ae(t);if(M>=n){var te=ar(M,e);if(!t.accept(te)||s&&(--s,!s))return Ae(t)}}}if(e.interval===0||(l.add(e,w),l.year>ri))return Ae(t);vn(r)||(f=u.gettimeset(r)(l.hour,l.minute,l.second,0)),u.rebuild(l.year,l.month)}}function es(t,e,n){var r=n.bymonth,i=n.byweekno,a=n.byweekday,o=n.byeaster,s=n.bymonthday,l=n.bynmonthday,u=n.byyearday;return V(r)&&!W(r,t.mmask[e])||V(i)&&!t.wnomask[e]||V(a)&&!W(a,t.wdaymask[e])||V(t.nwdaymask)&&!t.nwdaymask[e]||o!==null&&!W(t.eastermask,e)||(V(s)||V(l))&&!W(s,t.mdaymask[e])&&!W(l,t.nmdaymask[e])||V(u)&&(e<t.yearlen&&!W(u,e+1)&&!W(u,-t.yearlen+e)||e>=t.yearlen&&!W(u,e+1-t.yearlen)&&!W(u,-t.nextyearlen+e-t.yearlen))}function ar(t,e){return new Et(t,e.tzid).rezonedDate()}function Ae(t){return t.getValue()}function ts(t,e,n,r,i){for(var a=!1,o=e;o<n;o++){var s=t[o];a=es(r,s,i),a&&(t[s]=null)}return a}function ns(t,e,n){var r=n.freq,i=n.byhour,a=n.byminute,o=n.bysecond;return vn(r)?_a(n):r>=_.HOURLY&&V(i)&&!W(i,e.hour)||r>=_.MINUTELY&&V(a)&&!W(a,e.minute)||r>=_.SECONDLY&&V(o)&&!W(o,e.second)?[]:t.gettimeset(r)(e.hour,e.minute,e.second,e.millisecond)}var be={MO:new se(0),TU:new se(1),WE:new se(2),TH:new se(3),FR:new se(4),SA:new se(5),SU:new se(6)},wn={freq:F.YEARLY,dtstart:null,interval:1,wkst:be.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},rs=Object.keys(wn),_=function(){function t(e,n){e===void 0&&(e={}),n===void 0&&(n=!1),this._cache=n?null:new Na,this.origOptions=ci(e);var r=Ia(e).parsedOptions;this.options=r}return t.parseText=function(e,n){return li(e,n)},t.fromText=function(e,n){return ka(e,n)},t.fromString=function(e){return new t(t.parseString(e)||void 0)},t.prototype._iter=function(e){return ui(e,this.options)},t.prototype._cacheGet=function(e,n){return this._cache?this._cache._cacheGet(e,n):!1},t.prototype._cacheAdd=function(e,n,r){if(this._cache)return this._cache._cacheAdd(e,n,r)},t.prototype.all=function(e){if(e)return this._iter(new tr("all",{},e));var n=this._cacheGet("all");return n===!1&&(n=this._iter(new Xe("all",{})),this._cacheAdd("all",n)),n},t.prototype.between=function(e,n,r,i){if(r===void 0&&(r=!1),!ot(e)||!ot(n))throw new Error("Invalid date passed in to RRule.between");var a={before:n,after:e,inc:r};if(i)return this._iter(new tr("between",a,i));var o=this._cacheGet("between",a);return o===!1&&(o=this._iter(new Xe("between",a)),this._cacheAdd("between",o,a)),o},t.prototype.before=function(e,n){if(n===void 0&&(n=!1),!ot(e))throw new Error("Invalid date passed in to RRule.before");var r={dt:e,inc:n},i=this._cacheGet("before",r);return i===!1&&(i=this._iter(new Xe("before",r)),this._cacheAdd("before",i,r)),i},t.prototype.after=function(e,n){if(n===void 0&&(n=!1),!ot(e))throw new Error("Invalid date passed in to RRule.after");var r={dt:e,inc:n},i=this._cacheGet("after",r);return i===!1&&(i=this._iter(new Xe("after",r)),this._cacheAdd("after",i,r)),i},t.prototype.count=function(){return this.all().length},t.prototype.toString=function(){return en(this.origOptions)},t.prototype.toText=function(e,n,r){return xa(this,e,n,r)},t.prototype.isFullyConvertibleToText=function(){return Ca(this)},t.prototype.clone=function(){return new t(this.origOptions)},t.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],t.YEARLY=F.YEARLY,t.MONTHLY=F.MONTHLY,t.WEEKLY=F.WEEKLY,t.DAILY=F.DAILY,t.HOURLY=F.HOURLY,t.MINUTELY=F.MINUTELY,t.SECONDLY=F.SECONDLY,t.MO=be.MO,t.TU=be.TU,t.WE=be.WE,t.TH=be.TH,t.FR=be.FR,t.SA=be.SA,t.SU=be.SU,t.parseString=Vt,t.optionsToString=en,t}();function is(t,e,n,r,i,a){var o={},s=t.accept;function l(h,p){n.forEach(function(y){y.between(h,p,!0).forEach(function(w){o[Number(w)]=!0})})}i.forEach(function(h){var p=new Et(h,a).rezonedDate();o[Number(p)]=!0}),t.accept=function(h){var p=Number(h);return isNaN(p)?s.call(this,h):!o[p]&&(l(new Date(p-1),new Date(p+1)),!o[p])?(o[p]=!0,s.call(this,h)):!0},t.method==="between"&&(l(t.args.after,t.args.before),t.accept=function(h){var p=Number(h);return o[p]?!0:(o[p]=!0,s.call(this,h))});for(var u=0;u<r.length;u++){var f=new Et(r[u],a).rezonedDate();if(!t.accept(new Date(f.getTime())))break}e.forEach(function(h){ui(t,h.options)});var d=t._result;switch(lt(d),t.method){case"all":case"between":return d;case"before":return d.length&&d[d.length-1]||null;case"after":default:return d.length&&d[0]||null}}var sr={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function os(t,e){var n=[],r=[],i=[],a=[],o=$t(t),s=o.dtstart,l=o.tzid,u=us(t,e.unfold);return u.forEach(function(f){var d;if(f){var h=cs(f),p=h.name,y=h.parms,w=h.value;switch(p.toUpperCase()){case"RRULE":if(y.length)throw new Error("unsupported RRULE parm: ".concat(y.join(",")));n.push(Vt(f));break;case"RDATE":var b=(d=/RDATE(?:;TZID=([^:=]+))?/i.exec(f))!==null&&d!==void 0?d:[],x=b[1];x&&!l&&(l=x),r=r.concat(cr(w,y));break;case"EXRULE":if(y.length)throw new Error("unsupported EXRULE parm: ".concat(y.join(",")));i.push(Vt(w));break;case"EXDATE":a=a.concat(cr(w,y));break;case"DTSTART":break;default:throw new Error("unsupported property: "+p)}}}),{dtstart:s,tzid:l,rrulevals:n,rdatevals:r,exrulevals:i,exdatevals:a}}function as(t,e){var n=os(t,e),r=n.rrulevals,i=n.rdatevals,a=n.exrulevals,o=n.exdatevals,s=n.dtstart,l=n.tzid,u=e.cache===!1;if(e.compatible&&(e.forceset=!0,e.unfold=!0),e.forceset||r.length>1||i.length||a.length||o.length){var f=new ds(u);return f.dtstart(s),f.tzid(l||void 0),r.forEach(function(h){f.rrule(new _(Ft(h,s,l),u))}),i.forEach(function(h){f.rdate(h)}),a.forEach(function(h){f.exrule(new _(Ft(h,s,l),u))}),o.forEach(function(h){f.exdate(h)}),e.compatible&&e.dtstart&&f.rdate(s),f}var d=r[0]||{};return new _(Ft(d,d.dtstart||e.dtstart||s,d.tzid||e.tzid||l),u)}function lr(t,e){return e===void 0&&(e={}),as(t,ss(e))}function Ft(t,e,n){return he(he({},t),{dtstart:e,tzid:n})}function ss(t){var e=[],n=Object.keys(t),r=Object.keys(sr);if(n.forEach(function(i){W(r,i)||e.push(i)}),e.length)throw new Error("Invalid options: "+e.join(", "));return he(he({},sr),t)}function ls(t){if(t.indexOf(":")===-1)return{name:"RRULE",value:t};var e=ya(t,":",1),n=e[0],r=e[1];return{name:n,value:r}}function cs(t){var e=ls(t),n=e.name,r=e.value,i=n.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:r}}function us(t,e){if(e===void 0&&(e=!1),t=t&&t.trim(),!t)throw new Error("Invalid empty string");if(!e)return t.split(/\s/);for(var n=t.split(`
9
- `),r=0;r<n.length;){var i=n[r]=n[r].replace(/\s+$/g,"");i?r>0&&i[0]===" "?(n[r-1]+=i.slice(1),n.splice(r,1)):r+=1:n.splice(r,1)}return n}function fs(t){t.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)})}function cr(t,e){return fs(e),t.split(",").map(function(n){return mn(n)})}function ur(t){var e=this;return function(n){if(n!==void 0&&(e["_".concat(t)]=n),e["_".concat(t)]!==void 0)return e["_".concat(t)];for(var r=0;r<e._rrule.length;r++){var i=e._rrule[r].origOptions[t];if(i)return i}}}var ds=function(t){gn(e,t);function e(n){n===void 0&&(n=!1);var r=t.call(this,{},n)||this;return r.dtstart=ur.apply(r,["dtstart"]),r.tzid=ur.apply(r,["tzid"]),r._rrule=[],r._rdate=[],r._exrule=[],r._exdate=[],r}return e.prototype._iter=function(n){return is(n,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},e.prototype.rrule=function(n){fr(n,this._rrule)},e.prototype.exrule=function(n){fr(n,this._exrule)},e.prototype.rdate=function(n){dr(n,this._rdate)},e.prototype.exdate=function(n){dr(n,this._exdate)},e.prototype.rrules=function(){return this._rrule.map(function(n){return lr(n.toString())})},e.prototype.exrules=function(){return this._exrule.map(function(n){return lr(n.toString())})},e.prototype.rdates=function(){return this._rdate.map(function(n){return new Date(n.getTime())})},e.prototype.exdates=function(){return this._exdate.map(function(n){return new Date(n.getTime())})},e.prototype.valueOf=function(){var n=[];return!this._rrule.length&&this._dtstart&&(n=n.concat(en({dtstart:this._dtstart}))),this._rrule.forEach(function(r){n=n.concat(r.toString().split(`
10
- `))}),this._exrule.forEach(function(r){n=n.concat(r.toString().split(`
11
- `).map(function(i){return i.replace(/^RRULE:/,"EXRULE:")}).filter(function(i){return!/^DTSTART/.test(i)}))}),this._rdate.length&&n.push(hr("RDATE",this._rdate,this.tzid())),this._exdate.length&&n.push(hr("EXDATE",this._exdate,this.tzid())),n},e.prototype.toString=function(){return this.valueOf().join(`
12
- `)},e.prototype.clone=function(){var n=new e(!!this._cache);return this._rrule.forEach(function(r){return n.rrule(r.clone())}),this._exrule.forEach(function(r){return n.exrule(r.clone())}),this._rdate.forEach(function(r){return n.rdate(new Date(r.getTime()))}),this._exdate.forEach(function(r){return n.exdate(new Date(r.getTime()))}),n},e}(_);function fr(t,e){if(!(t instanceof _))throw new TypeError(String(t)+" is not RRule instance");W(e.map(String),String(t))||e.push(t)}function dr(t,e){if(!(t instanceof Date))throw new TypeError(String(t)+" is not Date instance");W(e.map(Number),Number(t))||(e.push(t),lt(e))}function hr(t,e,n){var r=!n||n.toUpperCase()==="UTC",i=r?"".concat(t,":"):"".concat(t,";TZID=").concat(n,":"),a=e.map(function(o){return yn(o.valueOf(),r)}).join(",");return"".concat(i).concat(a)}function hs(...t){window&&window.localStorage&&window.localStorage.getItem("debug")&&(console.group(...t),console.trace(),console.groupEnd())}function ps(...t){console.error(...t)}function ys(){return Math.random().toString(36).substr(2,9)}function ms(t){return t.toString().replace(/^on/,"")}function gs(t){const e=new Date(t*1e3),n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate());return e>=r?new Intl.DateTimeFormat("default",{hour:"numeric",minute:"numeric",hour12:!0}).format(e):new Intl.DateTimeFormat("default",{month:"short",day:"numeric"}).format(e)}function vs(t){return t.name?`${t.name} - ${t.email}`:t.email}function ws(t,e="",n=1,r=3){const i=t.find(l=>{var u;return((u=l.email)==null?void 0:u.toLowerCase())===e.toLowerCase()}),a=t.filter(l=>{var u;return((u=l.email)==null?void 0:u.toLowerCase())!==e.toLowerCase()}),o=a.length,s=a.slice(0,r).map(l=>l.name||l.email).join(", ");return o===0?i?"me":"":o===1?i&&n>1?`me, ${s}`:s:o===2?i?`me, ${s}`:`${s}`:i?`me, ${s}, +${o-r}`:`${s}, +${o-r}`}const pr=[{amount:60,name:"seconds"},{amount:60,name:"minutes"},{amount:24,name:"hours"},{amount:7,name:"days"},{amount:4.34524,name:"weeks"},{amount:12,name:"months"},{amount:Number.POSITIVE_INFINITY,name:"years"}],bs=t=>{const e=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),n=new Date;let r=(t.getTime()-n.getTime())/1e3;for(let i=0;i<=pr.length;i++){const a=pr[i];if(Math.abs(r)<a.amount)return e.format(Math.round(r),a.name);r/=a.amount}};function $s(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function Es(t){return new Date(t.getFullYear(),t.getMonth(),1)}function Ts(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function ks(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()}function xs(t){return t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())}function Cs(t){return t.replace("CATEGORY_","").replace(/_/g," ")}function fi(t){return/<[^>]*>/g.test(t)?"html":"plain"}function Ss(t){var i,a;const e=t.headers,n=e&&((i=e.find(o=>o.name==="Content-Type"))==null?void 0:i.value)||"",r=e&&((a=e.find(o=>o.name==="Content-Disposition"))==null?void 0:a.value)||"";return!!(n.includes("text/html")||r.includes("inline")||t.body&&fi(t.body)==="html")}function Is(t){let r=t.split(`
13
- `).filter(a=>a.trim().length>0).map(a=>`<p>${a}</p>`).join("");const i=/((?:https?|ftp):\/\/[^\s]+)/g;return r=r.replace(i,'<a href="$1">$1</a>'),r}function _s(t){return new DOMParser().parseFromString(t,"text/html").body.textContent||""}const Ds=t=>t===""?!0:/^(0[0-9]|1[0-2]|^[0-9])(:[0-5][0-9][ap]m?|:[0-5][0-9]|:[0-5]|:)?$/i.test(t),Rs=t=>/^(0[1-9]|1[0-2]):([0-5][0-9])(am|pm)$/i.test(t);function As(t=null){let e=pn();t&&(e=t);const n=e.minute()%15;let r;return n!==0?r=e.add(15-n,"minute"):r=e,r}function Os(t){const e=pn();let n="";const[r,i]=t.split(":");r.length===1?n+="0"+r:r.length===2&&(n+=r),n+=":",i===void 0||i==""?n+="00":i.length===1?n+=i+"0":n+=i;const a=n.slice(-1);return a==="a"&&(n+="m"),a==="p"&&(n+="m"),n.slice(-1)!=="m"&&(n.split(":")[0]=="00"?n+="am":n+=e.format("a")),n}function Ms(t){const[e,n]=t.split(":").map(s=>parseInt(s,10));let r=e;const i=r>=12?"pm":"am";r=r%12,r=r||12;const a=r.toString().padStart(2,"0"),o=n.toString().padStart(2,"0");return`${a}:${o}${i}`}function Ns(t){const[e,n]=t.split(/(am|pm)/i),[r,i]=e.split(":").map(o=>parseInt(o,10));let a=r;return n.toLowerCase()==="pm"&&a<12?a+=12:n.toLowerCase()==="am"&&a===12&&(a=0),`${a.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function Ps(t){const[e,n]=t.match(/(\d+):(\d+)(am|pm)/).slice(1);let r=parseInt(e,10)*60+parseInt(n,10);return t.includes("pm")&&parseInt(e,10)<12&&(r+=12*60),t.includes("am")&&parseInt(e,10)===12&&(r-=12*60),r}function Ls(t){const e=Math.floor(t/60),n=t%60;return`${e}:${n<10?"0":""}${n}`}function Fs(){const t=navigator.userAgent,e=/Chrome/.test(t)&&/Google Inc/.test(navigator.vendor),n=/Safari/.test(t)&&/Apple Computer/.test(navigator.vendor),r=/Firefox/.test(t),i=/Trident/.test(t),a=/Edge/.test(t);return e&&/Edg/.test(t)?"Edge (Chromium)":e?"Chrome":n?"Safari":r?"Firefox":i?"Internet Explorer":a?"Edge (Legacy)":"Unknown"}function tn(t,e=null){return e?[null,e]:[t,null]}function Us(t,e){const n={"config.id":e==null?void 0:e.id,id:e==null?void 0:e.id};return Object.keys(n).forEach(r=>{t=t.replace(`{${r}}`,n[r])}),t}function Ys(t){if(t.keyCode<48||t.keyCode>90&&t.keyCode<96||t.keyCode>111&&t.keyCode<186||t.keyCode>222||t.keyCode===32||t.keyCode===91||t.keyCode===92||t.keyCode===93||t.keyCode>=112&&t.keyCode<=123||t.keyCode>=37&&t.keyCode<=40||t.ctrlKey||t.altKey||t.metaKey)return!0;const e=[48,49,50,51,52,53,54,55,56,57,186,187,188,189,190,191,192,219,220,221,222];return t.shiftKey&&e.includes(t.keyCode),!1}function Hs(t,e){const n=new Date(t);return n.setDate(n.getDate()+e),n.setHours(23),n.setMinutes(59),n.setSeconds(0),n.setMilliseconds(0),n}function Ut(t){return t&&typeof t=="object"&&!Array.isArray(t)}function nn(t,e){if(Array.isArray(t)&&Array.isArray(e)&&t!==e){if(t.some(n=>n.is_organizer)&&e.some(n=>n.is_organizer))t=t.map(n=>({...n,is_organizer:!1}));else if(!e.some(n=>n.is_organizer)){let n=!1;t=t.map(r=>n?r:(n=!0,{...r,is_organizer:!0}))}return t.map((n,r)=>e[r]?nn(n,e[r]):n).concat(e.slice(t.length))}else if(Ut(t)&&Ut(e)){const n=Object.assign({},t);return Object.keys(e).forEach(r=>{Ut(e[r])&&r in t?n[r]=nn(t[r],e[r]):n[r]=e[r]}),n}return e}function Bs(t){if(t<60)return`${t} minutes`;const e=Math.floor(t/60),n=t%60;return`${e} hour${e>1?"s":""} ${n||""} ${n?n>1?"minutes":"minute":""}`}function Ws(t,e){t.forEach(n=>{var a;const r=(a=e.shadowRoot)==null?void 0:a.querySelector(`slot[name="${n}"]`),i=r==null?void 0:r.assignedNodes();i&&i.length===0&&console.warn(`${e.nodeName} No content provided for slot="${n}".`)})}function js(t){const e=m.from(t,"base64"),n=e.slice(0,16),r=e.slice(16,32);function i(s){const l=s.toString("hex");return`${l.slice(0,8)}-${l.slice(8,12)}-${l.slice(12,16)}-${l.slice(16,20)}-${l.slice(20)}`}const a=i(n),o=i(r);return[a,o]}class qs{constructor(e){this.defaultAuthArgs=[],this.session=e}setActiveGrantId(e){this.activeGrantId=e}async request({method:e,path:n,body:r,headers:i}){try{const a=await this.session.fetch(`grants/me/${n}`,{method:e,headers:i?new Headers(i):void 0,body:r,...this.session.isMultiAccount()&&this.activeGrantId?{grant_id:this.activeGrantId}:{}});if(typeof a>"u")throw new Error("Response is undefined");return tn(a)}catch(a){let o=String(a);return String(a).includes("Access token not found")&&(o="Session expired, please log in again. Redirecting...",setTimeout(()=>{localStorage.removeItem("grant"),localStorage.removeItem("user"),window.location.reload()},1e3)),tn(null,{message:o})}}async currentUser(){const e=this.session.isMultiAccount()?this.activeGrantId:void 0,n=await this.session.getProfile(e);return n?{id:n.sub,email:n.email,name:n.name}:null}async authenticationUrl(e){const n=(e==null?void 0:e.provider)||"google";let i=this.defaultAuthArgs.find(a=>a.provider===n)||{};return e&&(i={...i,...e}),this.session.auth(i)}setDefaultAuthArgs(e){this.defaultAuthArgs=e}}Ur({});function zs(){var t=[];if(typeof window<"u"){var e=window;(!e.customElements||e.Element&&(!e.Element.prototype.closest||!e.Element.prototype.matches||!e.Element.prototype.remove||!e.Element.prototype.getRootNode))&&t.push(Promise.resolve().then(()=>require("./dom-68f08be9.cjs")));var n=function(){try{var r=new URL("b","http://a");return r.pathname="c%20d",r.href==="http://a/c%20d"&&r.searchParams}catch{return!1}};(typeof Object.assign!="function"||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||e.NodeList&&!e.NodeList.prototype.forEach||!e.fetch||!n()||typeof WeakMap>"u")&&t.push(Promise.resolve().then(()=>require("./core-js-38e53e34.cjs")))}return Promise.all(t)}async function Ks(){await Promise.resolve().then(()=>require("./elements-dc5b338e-550a6cb1.cjs"))}const Gs=Ks,di=(t,e)=>{if(!(typeof window>"u"))return Gs(),mo(JSON.parse('[["nylas-scheduler-editor",[[1,"nylas-scheduler-editor",{"configurationId":[1025,"configuration-id"],"nylasApiRequest":[1040],"nylasSessionsConfig":[16],"defaultAuthArgs":[16],"eventOverrides":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"defaultSchedulerConfigState":[16],"mode":[1],"additionalParticipants":[16],"automaticComponentRegistration":[32],"store":[64],"schedulerConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]],{"configurationId":["configurationIdChanged"]}]]],["nylas-scheduling",[[1,"nylas-scheduling",{"mode":[1],"defaultSchedulerState":[16],"sessionId":[1,"session-id"],"schedulerApiUrl":[1,"scheduler-api-url"],"bookingInfo":[16],"rescheduleBookingRef":[1,"reschedule-booking-ref"],"cancelBookingRef":[1,"cancel-booking-ref"],"configurationId":[1,"configuration-id"],"nylasBranding":[4,"nylas-branding"],"eventOverrides":[16],"isLoading":[4,"is-loading"],"themeConfig":[16],"showNotification":[4,"show-notification"],"automaticComponentRegistration":[32],"selectedDateLabel":[32],"refConfigId":[32],"getNylasSchedulerStore":[64],"getNylasSchedulerConnector":[64],"getRef":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"],[0,"monthChanged","monthChangedHandler"],[0,"detailsConfirmed","bookButtonClickedHandler"],[0,"dateSelected","dateSelectedHandler"],[0,"cancelBookedEventError","cancelBookedEventErrorHandler"],[0,"cancelBookedEventValidationError","cancelBookedEventValidationErrorHandler"],[0,"rescheduleBookedEventError","rescheduleBookedEventErrorHandler"]],{"bookingInfo":["bookingInfoChanged"],"rescheduleBookingRef":["rescheduleBookingRefChanged"],"cancelBookingRef":["cancelBookingRefChanged"]}]]],["nylas-view-thread",[[1,"nylas-view-thread",{"draft":[16],"thread":[16],"messages":[16],"attachments":[16],"state":[32],"internalMessages":[32],"showAllEmails":[32],"showComposer":[32]},null,{"thread":["threadChanged"],"messages":["updateInternalMessages"]}]]],["nylas-list-folders",[[1,"nylas-list-folders",{"folders":[16],"selectedFolder":[1,"selected-folder"],"defaultFolders":[32],"otherFolders":[32]},null,{"folders":["watchFolders"]}]]],["nylas-custom-booking-flow",[[65,"nylas-custom-booking-flow",{"selectedConfiguration":[16],"name":[1],"bookingType":[1,"booking-type"],"selectedBookingType":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}]]],["nylas-mailbox-pagination",[[1,"nylas-mailbox-pagination",{"state":[1],"hasNextPage":[4,"has-next-page"],"hasPreviousPage":[4,"has-previous-page"],"scrollTarget":[1,"scroll-target"],"mobileOnlyInfiniteScroll":[4,"mobile-only-infinite-scroll"],"mobileViewPortWidth":[2,"mobile-view-port-width"],"nextPage":[64],"previousPage":[64]},[[9,"scroll","handlePageScroll"]]]]],["nylas-threads-refresh",[[1,"nylas-threads-refresh",{"start":[32],"state":[32],"pulling":[32],"updateState":[64]}]]],["document-refresh-icon",[[2,"document-refresh-icon",{"width":[1],"height":[1]}]]],["nylas-if-state",[[1,"nylas-if-state",{"state":[1],"isStateSet":[4,"is-state-set"],"isBoolean":[4,"is-boolean"],"getStore":[16],"transition":[1],"show":[32],"classes":[32]},null,{"getStore":["onGetStoreChange"]}]]],["nylas-list-threads",[[1,"nylas-list-threads",{"threads":[16],"isAuthenticated":[4,"is-authenticated"],"tokenInfo":[16],"state":[1],"showCheckbox":[4,"show-checkbox"]}]]],["nylas-login",[[1,"nylas-login",{"isAuthenticated":[4,"is-authenticated"],"nylasConnector":[16],"scopes":[16],"loginMethod":[1,"login-method"],"companyName":[1,"company-name"],"logoUrl":[1,"logo-url"],"logoWidth":[1,"logo-width"],"providers":[1],"buttonText":[1,"button-text"],"email":[32]}]]],["nylas-mailbox",[[1,"nylas-mailbox",{"automaticComponentRegistration":[4,"automatic-component-registration"],"eventOverrides":[16],"authConfig":[16],"defaultAuthStoreState":[16],"defaultMailboxStoreState":[16],"getMailboxStore":[64],"getAuthStore":[64],"getNylasAuth":[64],"getNylasMailboxConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-mailbox-toolbar-button",[[1,"nylas-mailbox-toolbar-button",{"method":[1],"dataState":[1,"data-state"],"iconOnly":[4,"icon-only"],"mailboxConnector":[16]}]]],["nylas-provider",[[1,"nylas-provider",{"authConfig":[16],"eventOverrides":[16],"automaticComponentRegistration":[4,"automatic-component-registration"],"getNylasAuth":[64],"getNylasConnector":[64],"getMailboxStore":[64],"getAuthStore":[64],"getNylasSchedulerStore":[64],"getNylasSchedulerConfigStore":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-threads-search",[[1,"nylas-threads-search",{"query":[1],"internalQuery":[32]},null,{"query":["onQueryChange"]}]]],["textarea-component",[[1,"textarea-component",{"name":[1],"defaultValue":[1,"default-value"],"label":[1],"placeholder":[1],"required":[4],"readOnly":[4,"read-only"],"autoFocus":[4,"auto-focus"],"maxLength":[2,"max-length"],"value":[32],"error":[32]},[[4,"bookingFormSubmitted","handleBookingFormSubmitted"]]]]],["arrow-icon",[[2,"arrow-icon",{"width":[1],"height":[1]}]]],["input-component",[[1,"input-component",{"name":[1],"defaultValue":[1,"default-value"],"label":[1],"type":[1],"placeholder":[1],"required":[4],"readOnly":[4,"read-only"],"autoFocus":[4,"auto-focus"],"pattern":[16],"maxLength":[2,"max-length"],"patternError":[1,"pattern-error"],"value":[32],"error":[32]},[[4,"bookingFormSubmitted","handleBookingFormSubmitted"]]]]],["refresh-icon",[[2,"refresh-icon",{"width":[1],"height":[1]}]]],["translate-icon",[[2,"translate-icon",{"width":[1],"height":[1]}]]],["warning-icon",[[2,"warning-icon",{"width":[1],"height":[1]}]]],["calendar-cancel-icon",[[2,"calendar-cancel-icon",{"width":[1],"height":[1]}]]],["calendar-icon",[[2,"calendar-icon",{"width":[1],"height":[1]}]]],["nylas-time-window-picker",[[1,"nylas-time-window-picker",{"time":[1],"minimumStartTime":[1,"minimum-start-time"],"placeholder":[1],"name":[1],"hasError":[4,"has-error"],"err":[32],"showTimes":[32],"ariaActivedescendant":[32],"times":[32],"shouldAutoScroll":[32]},[[6,"click","handleOutsideClick"]],{"minimumStartTime":["minimumStartTimeChangedHandler"]}]]],["button-component",[[6,"button-component",{"variant":[1],"disabled":[4],"type":[1],"clickHandler":[16],"mouseOverHandler":[16],"mouseOutHandler":[16],"focusHandler":[16],"blurHandler":[16]}]]],["nylas-form-card",[[65,"nylas-form-card"]]],["loading-icon",[[1,"loading-icon",{"width":[1],"height":[1]}]]],["globe-icon",[[2,"globe-icon",{"width":[1],"height":[1]}]]],["input-dropdown_2",[[2,"time-period-selector",{"timePeriods":[16],"defaultSelectedPeriod":[1,"default-selected-period"],"defaultSelectedNumber":[2,"default-selected-number"],"selectedPeriod":[32],"selectedNumber":[32],"numberOptions":[32],"timePeriodOptions":[32]},[[0,"inputOptionChanged","inputOptionChangedHandler"],[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]],{"defaultSelectedPeriod":["defaultSelectedPeriodChangedHandler"],"defaultSelectedNumber":["defaultSelectedNumberChangedHandler"],"timePeriods":["timePeriodsChangedHandler"]}],[1,"input-dropdown",{"name":[1],"options":[16],"defaultInputOption":[16],"inputValue":[1,"input-value"],"pluralizedLabel":[1,"pluralized-label"],"filterable":[4],"selectedOption":[32],"isOpen":[32],"filteredOptions":[32],"ariaActivedescendant":[32],"shouldAutoScroll":[32]},[[6,"click","handleOutsideClick"]],{"options":["optionsChangedHandler"],"defaultInputOption":["defaultSelectedOptionChangedHandler"],"inputValue":["inputValueChangedHandler"]}]]],["add-circle-icon_2",[[2,"add-circle-icon",{"width":[1],"height":[1]}],[2,"close-icon",{"width":[1],"height":[1]}]]],["info-icon_2",[[2,"info-icon",{"width":[1],"height":[1]}],[1,"tooltip-component",{"position":[1]}]]],["calendar-info-icon_28",[[65,"nylas-participants-custom-availability",{"name":[1],"participants":[16],"selectedParticipants":[32]},[[0,"nylasFormSwitchToggled","nylasFormSwitchToggledHandler"],[0,"valueChanged","handleValueChanged"]],{"name":["elementNameChangedHandler"],"participants":["participantsChangedHandler"]}],[65,"nylas-event-location",{"name":[1],"selectedConfiguration":[16],"eventLocation":[1,"event-location"],"location":[32],"selectedLocationOption":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"eventLocation":["eventLocationChangedHandler"]}],[65,"nylas-limit-future-bookings",{"selectedConfiguration":[16],"availableDaysInFuture":[2,"available-days-in-future"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-min-booking-notice",{"selectedConfiguration":[16],"minBookingNotice":[2,"min-booking-notice"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-min-cancellation-notice",{"selectedConfiguration":[16],"minCancellationNotice":[2,"min-cancellation-notice"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-event-duration",{"selectedConfiguration":[16],"name":[1],"eventDurationMinutes":[2,"event-duration-minutes"],"duration":[32],"durationMinutes":[32],"durationIncrement":[32],"durationMinutesOptions":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"],[0,"inputOptionChanged","inputOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"durationMinutes":["durationMinutesChangedHandler"]}],[65,"nylas-timeslot-interval",{"selectedConfiguration":[16],"name":[1],"eventDurationMinutes":[2,"event-duration-minutes"],"defaultIntervalMinutes":[2,"default-interval-minutes"],"defaultRoundTo":[2,"default-round-to"],"selectedInterval":[32],"selectedRoundTo":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"],[0,"radioSelectionChanged","radioSelectionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-booking-calendar-picker",{"calendars":[16],"currentUser":[16],"name":[1],"defaultBookingCalendar":[1,"default-booking-calendar"],"selectedCalendar":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-calendar-picker",{"calendars":[16],"currentUser":[16],"name":[1],"defaultSelectedCalendars":[16],"selectedCalendars":[32]},[[0,"selectedOptionsChanged","selectedOptionsChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-additional-participants",{"name":[1],"eventParticipants":[16],"participantOptions":[16],"participants":[32],"participantsValid":[32]},[[0,"inputOptionChanged","onInputOptionChanged"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-buffer-time",{"name":[1],"buffer":[16],"selectedBeforeBufferTime":[32],"selectedAfterBufferTime":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-customize-booking-settings",{"selectedConfiguration":[16],"defaultAdditionalGuestsHidden":[4,"default-additional-guests-hidden"],"defaultHideCancellationOptions":[4,"default-hide-cancellation-options"],"defaultHideReschedulingOptions":[4,"default-hide-rescheduling-options"],"name":[1],"allowGuestsToInvite":[32],"hideCancellationOptions":[32],"hideReschedulingOptions":[32]},[[0,"nylasFormCheckboxToggled","checkboxToggledHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-cancellation-policy",{"selectedConfiguration":[16],"cancellationPolicy":[1,"cancellation-policy"],"name":[1],"message":[32]},null,{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-event-description",{"selectedConfiguration":[16],"eventDescription":[1,"event-description"],"name":[1],"description":[32]},null,{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-event-title",{"selectedConfiguration":[16],"eventTitle":[1,"event-title"],"name":[1],"showTokens":[32],"availableTokens":[32],"filteredTokens":[32],"ariaActivedescendant":[32],"currentWord":[32],"validationError":[32]},[[8,"formSubmitted","formSubmittedHandler"]],{"name":["elementNameChangedHandler"],"ariaActivedescendant":["ariaActivedescendantChangedHandler"],"selectedConfiguration":["configChangedHandler"]}],[65,"nylas-event-info"],[65,"nylas-event-limits"],[2,"calendar-info-icon",{"width":[1],"height":[1]}],[2,"calendar-patterns-icon",{"width":[1],"height":[1]}],[2,"flow-icon",{"width":[1],"height":[1]}],[2,"people-icon",{"width":[1],"height":[1]}],[65,"nylas-availability-picker",{"selectedConfiguration":[16],"openHours":[16],"name":[1],"defaultTimezone":[1,"default-timezone"],"hideHeader":[4,"hide-header"],"schedule":[32],"timezone":[32],"overlapDays":[32]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"],[0,"timeChange","setTime"],[0,"formError","setFormError"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["configChangedHandler"],"schedule":["scheduleChanged"]}],[1,"multi-select-dropdown",{"name":[1],"label":[1],"options":[16],"availableOptions":[32],"isOpen":[32],"ariaActivedescendant":[32],"shouldFocusFirstOption":[32]},[[6,"click","handleOutsideClick"]]],[1,"checkbox-component",{"name":[1],"checked":[4],"label":[1],"isChecked":[32]}],[2,"location-icon",{"width":[1],"height":[1]}],[2,"location-off-icon",{"width":[1],"height":[1]}],[1,"radio-button-group",{"name":[1],"options":[16],"defaultSelectedValue":[1,"default-selected-value"],"selectedValue":[32]}],[1,"toggle-switch",{"name":[1],"checked":[4],"label":[1],"isChecked":[32]}]]],["google-logo-icon_4",[[6,"nylas-editor-tabs",{"calendars":[16],"selectedConfiguration":[16],"currentUser":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"mode":[1],"action":[32],"activeTab":[32],"isLoading":[32],"hasUnsavedChanges":[32],"changesSaved":[32],"formState":[32],"error":[32]},[[0,"valueChanged","handleValueChanged"]],{"selectedConfiguration":["configChangedHandler"]}],[1,"nylas-list-configurations",{"configurations":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"state":[32],"error":[32],"copiedButtonIndex":[32],"getState":[64],"setState":[64],"setError":[64]}],[2,"google-logo-icon",{"width":[1],"height":[1]}],[2,"microsoft-logo-icon",{"width":[1],"height":[1]}]]],["calendar-check-icon_2",[[2,"calendar-check-icon",{"width":[1],"height":[1]}],[2,"checkmark-circle-icon",{"width":[1],"height":[1]}]]],["clock-icon_2",[[2,"clock-icon",{"width":[1],"height":[1]}],[2,"person-icon",{"width":[1],"height":[1]}]]],["play-icon_2",[[2,"play-icon",{"width":[1],"height":[1]}],[2,"stop-icon",{"width":[1],"height":[1]}]]],["bold-icon_3",[[2,"bold-icon",{"width":[1],"height":[1]}],[2,"italic-icon",{"width":[1],"height":[1]}],[2,"underline-icon",{"width":[1],"height":[1]}]]],["forward-icon_6",[[1,"nylas-composer",{"message":[16],"viewEmailElement":[16]},null,{"message":["watchBody"]}],[1,"nylas-summarize-message-button",{"message":[16],"state":[32],"updateState":[64],"playAudio":[64]}],[2,"forward-icon",{"width":[1],"height":[1]}],[1,"nylas-view-email",{"message":[16],"parent":[16],"attachments":[16],"detectDarkMode":[4,"detect-dark-mode"],"state":[32],"sanitizedBody":[32],"styles":[32],"viewEmailElement":[32],"hoistedFontURLs":[32]},[[9,"resize","handleScroll"]],{"message":["messageChanged"],"viewEmailElement":["viewEmailElementChanged"]}],[2,"reply-all-icon",{"width":[1],"height":[1]}],[2,"reply-icon",{"width":[1],"height":[1]}]]],["archive-icon_7",[[2,"archive-icon",{"width":[1],"height":[1]}],[2,"folder-icon",{"width":[1],"height":[1]}],[2,"inbox-icon",{"width":[1],"height":[1]}],[2,"sent-icon",{"width":[1],"height":[1]}],[2,"spam-icon",{"width":[1],"height":[1]}],[2,"star-icon",{"width":[1],"height":[1]}],[2,"trash-icon",{"width":[1],"height":[1]}]]],["chevron-icon_3",[[1,"select-dropdown",{"name":[1],"options":[16],"defaultSelectedOption":[16],"withSearch":[4,"with-search"],"label":[1],"required":[4],"pluralizedLabel":[1,"pluralized-label"],"selectedOption":[32],"isOpen":[32],"searchValue":[32],"filteredOptions":[32],"ariaActivedescendant":[32],"errorMessage":[32]},[[4,"bookingFormSubmitted","handleBookingFormSubmitted"],[6,"click","handleOutsideClick"]],{"options":["optionsChangedHandler"],"defaultSelectedOption":["defaultSelectedOptionChangedHandler"]}],[2,"search-icon",{"width":[1],"height":[1]}],[2,"chevron-icon",{"width":[1],"height":[1]}]]],["nylas-booked-event-card_10",[[1,"nylas-booking-form",{"isLoading":[4,"is-loading"],"bookingInfo":[8,"booking-info"],"eventInfo":[16],"configSettings":[8,"config-settings"],"name":[32],"email":[32],"guestEmails":[32],"guestEmailErrors":[32],"isNameValid":[32],"isEmailValid":[32],"additionalFields":[32],"validationError":[32]},[[0,"nylasFormInputChanged","nylasFormInputChangedHandler"],[0,"nylasFormDropdownChanged","selectOptionChangedHandler"],[0,"nylasFormSwitchToggled","switchToggledHandler"],[0,"nylasFormCheckboxToggled","checkboxToggledHandler"]],{"bookingInfo":["bookingInfoChangedHandler"]}],[1,"nylas-locale-switch",{"selectedTimezone":[1025,"selected-timezone"],"selectedLanguage":[1025,"selected-language"]},[[0,"nylasFormDropdownChanged","nylasFormDropdownChangedHandler"]]],[1,"nylas-booked-event-card",{"eventInfo":[16],"rescheduleBookingId":[1,"reschedule-booking-id"],"bookingInfo":[8,"booking-info"],"selectedTimezone":[1,"selected-timezone"],"selectedTimeslot":[16],"configSettings":[8,"config-settings"]}],[1,"nylas-date-picker",{"selectableDates":[16],"selectedDate":[16],"configSettings":[16],"isLoading":[4,"is-loading"],"eventDuration":[2,"event-duration"],"month":[32],"dates":[32],"disableNextMonthButton":[32]},null,{"configSettings":["configSettingsChanged"]}],[1,"nylas-notification",{"ttl":[8],"allowedCategories":[16],"notifications":[32]},[[16,"nylasSchedulerError","onError"],[16,"nylasSchedulerWarning","onWarning"],[16,"nylasSchedulerInfo","onInfo"],[16,"nylasSchedulerSuccess","onSuccess"]]],[1,"nylas-selected-event-card",{"selectedDate":[16],"selectedTimeslot":[16],"selectedTimezone":[1,"selected-timezone"],"startTime":[32],"endTime":[32]},null,{"selectedTimeslot":["handleSelectedTimeslotChange"]}],[1,"nylas-cancel-booking-form",{"cancelBookingId":[1,"cancel-booking-id"],"configSettings":[16],"cancellationReason":[32],"cancellationError":[32],"cancellationPolicy":[32]},null,{"configSettings":["configSettingsChangedHandler"]}],[1,"nylas-cancelled-event-card",{"cancelledEventInfo":[16],"configSettings":[16],"isClosing":[32]}],[2,"nylas-logo",{"width":[1],"height":[1]}],[1,"nylas-timeslot-picker",{"selectedDate":[16],"availability":[16],"selectedTimeslot":[16],"isLoading":[4,"loading-state"],"selectedTimezone":[1,"selected-timezone"],"times":[32],"hoveredTimeslotIndex":[32],"selectedTimeslotIndex":[32]},null,{"selectedDate":["selectedDateChanged"],"availability":["availabilityChanged"]}]]]]'),e)};(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}})();var rn={exports:{}},rt={};/**
14
- * @license React
15
- * react-jsx-runtime.production.min.js
16
- *
17
- * Copyright (c) Facebook, Inc. and its affiliates.
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */var yr;function Zs(){if(yr)return rt;yr=1;var t=ke,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,u){var f,d={},h=null,p=null;u!==void 0&&(h=""+u),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(f in l)r.call(l,f)&&!a.hasOwnProperty(f)&&(d[f]=l[f]);if(s&&s.defaultProps)for(f in l=s.defaultProps,l)d[f]===void 0&&(d[f]=l[f]);return{$$typeof:e,type:s,key:h,ref:p,props:d,_owner:i.current}}return rt.Fragment=n,rt.jsx=o,rt.jsxs=o,rt}var it={};/**
22
- * @license React
23
- * react-jsx-runtime.development.js
24
- *
25
- * Copyright (c) Facebook, Inc. and its affiliates.
26
- *
27
- * This source code is licensed under the MIT license found in the
28
- * LICENSE file in the root directory of this source tree.
29
- */var mr;function Js(){return mr||(mr=1,process.env.NODE_ENV!=="production"&&function(){var t=ke,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=Symbol.iterator,w="@@iterator";function b(c){if(c===null||typeof c!="object")return null;var v=y&&c[y]||c[w];return typeof v=="function"?v:null}var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(c){{for(var v=arguments.length,T=new Array(v>1?v-1:0),D=1;D<v;D++)T[D-1]=arguments[D];te("error",c,T)}}function te(c,v,T){{var D=x.ReactDebugCurrentFrame,Y=D.getStackAddendum();Y!==""&&(v+="%s",T=T.concat([Y]));var B=T.map(function(P){return String(P)});B.unshift("Warning: "+v),Function.prototype.apply.call(console[c],console,B)}}var le=!1,ge=!1,ne=!1,Ye=!1,je=!1,K;K=Symbol.for("react.module.reference");function H(c){return!!(typeof c=="string"||typeof c=="function"||c===r||c===a||je||c===i||c===u||c===f||Ye||c===p||le||ge||ne||typeof c=="object"&&c!==null&&(c.$$typeof===h||c.$$typeof===d||c.$$typeof===o||c.$$typeof===s||c.$$typeof===l||c.$$typeof===K||c.getModuleId!==void 0))}function qe(c,v,T){var D=c.displayName;if(D)return D;var Y=v.displayName||v.name||"";return Y!==""?T+"("+Y+")":T}function et(c){return c.displayName||"Context"}function S(c){if(c==null)return null;if(typeof c.tag=="number"&&M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case s:var v=c;return et(v)+".Consumer";case o:var T=c;return et(T._context)+".Provider";case l:return qe(c,c.render,"ForwardRef");case d:var D=c.displayName||null;return D!==null?D:S(c.type)||"Memo";case h:{var Y=c,B=Y._payload,P=Y._init;try{return S(P(B))}catch{return null}}}return null}var k=Object.assign,E=0,R,C,O,A,U,q,j;function X(){}X.__reactDisabledLog=!0;function $e(){{if(E===0){R=console.log,C=console.info,O=console.warn,A=console.error,U=console.group,q=console.groupCollapsed,j=console.groupEnd;var c={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}E++}}function ve(){{if(E--,E===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},c,{value:R}),info:k({},c,{value:C}),warn:k({},c,{value:O}),error:k({},c,{value:A}),group:k({},c,{value:U}),groupCollapsed:k({},c,{value:q}),groupEnd:k({},c,{value:j})})}E<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=x.ReactCurrentDispatcher,De;function we(c,v,T){{if(De===void 0)try{throw Error()}catch(Y){var D=Y.stack.trim().match(/\n( *(at )?)/);De=D&&D[1]||""}return`
30
- `+De+c}}var Q=!1,ue;{var tt=typeof WeakMap=="function"?WeakMap:Map;ue=new tt}function He(c,v){if(!c||Q)return"";{var T=ue.get(c);if(T!==void 0)return T}var D;Q=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=_e.current,_e.current=null,$e();try{if(v){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(Re){D=Re}Reflect.construct(c,[],P)}else{try{P.call()}catch(Re){D=Re}c.call(P.prototype)}}else{try{throw Error()}catch(Re){D=Re}c()}}catch(Re){if(Re&&D&&typeof Re.stack=="string"){for(var N=Re.stack.split(`
31
- `),ae=D.stack.split(`
32
- `),G=N.length-1,Z=ae.length-1;G>=1&&Z>=0&&N[G]!==ae[Z];)Z--;for(;G>=1&&Z>=0;G--,Z--)if(N[G]!==ae[Z]){if(G!==1||Z!==1)do if(G--,Z--,Z<0||N[G]!==ae[Z]){var pe=`
33
- `+N[G].replace(" at new "," at ");return c.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",c.displayName)),typeof c=="function"&&ue.set(c,pe),pe}while(G>=1&&Z>=0);break}}}finally{Q=!1,_e.current=B,ve(),Error.prepareStackTrace=Y}var Ke=c?c.displayName||c.name:"",An=Ke?we(Ke):"";return typeof c=="function"&&ue.set(c,An),An}function yi(c,v,T){return He(c,!1)}function mi(c){var v=c.prototype;return!!(v&&v.isReactComponent)}function ut(c,v,T){if(c==null)return"";if(typeof c=="function")return He(c,mi(c));if(typeof c=="string")return we(c);switch(c){case u:return we("Suspense");case f:return we("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case l:return yi(c.render);case d:return ut(c.type,v,T);case h:{var D=c,Y=D._payload,B=D._init;try{return ut(B(Y),v,T)}catch{}}}return""}var ft=Object.prototype.hasOwnProperty,bn={},$n=x.ReactDebugCurrentFrame;function dt(c){if(c){var v=c._owner,T=ut(c.type,c._source,v?v.type:null);$n.setExtraStackFrame(T)}else $n.setExtraStackFrame(null)}function gi(c,v,T,D,Y){{var B=Function.call.bind(ft);for(var P in c)if(B(c,P)){var N=void 0;try{if(typeof c[P]!="function"){var ae=Error((D||"React class")+": "+T+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}N=c[P](v,P,D,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(G){N=G}N&&!(N instanceof Error)&&(dt(Y),M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",D||"React class",T,P,typeof N),dt(null)),N instanceof Error&&!(N.message in bn)&&(bn[N.message]=!0,dt(Y),M("Failed %s type: %s",T,N.message),dt(null))}}}var vi=Array.isArray;function _t(c){return vi(c)}function wi(c){{var v=typeof Symbol=="function"&&Symbol.toStringTag,T=v&&c[Symbol.toStringTag]||c.constructor.name||"Object";return T}}function bi(c){try{return En(c),!1}catch{return!0}}function En(c){return""+c}function Tn(c){if(bi(c))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wi(c)),En(c)}var nt=x.ReactCurrentOwner,$i={key:!0,ref:!0,__self:!0,__source:!0},kn,xn,Dt;Dt={};function Ei(c){if(ft.call(c,"ref")){var v=Object.getOwnPropertyDescriptor(c,"ref").get;if(v&&v.isReactWarning)return!1}return c.ref!==void 0}function Ti(c){if(ft.call(c,"key")){var v=Object.getOwnPropertyDescriptor(c,"key").get;if(v&&v.isReactWarning)return!1}return c.key!==void 0}function ki(c,v){if(typeof c.ref=="string"&&nt.current&&v&&nt.current.stateNode!==v){var T=S(nt.current.type);Dt[T]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',S(nt.current.type),c.ref),Dt[T]=!0)}}function xi(c,v){{var T=function(){kn||(kn=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};T.isReactWarning=!0,Object.defineProperty(c,"key",{get:T,configurable:!0})}}function Ci(c,v){{var T=function(){xn||(xn=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};T.isReactWarning=!0,Object.defineProperty(c,"ref",{get:T,configurable:!0})}}var Si=function(c,v,T,D,Y,B,P){var N={$$typeof:e,type:c,key:v,ref:T,props:P,_owner:B};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:D}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function Ii(c,v,T,D,Y){{var B,P={},N=null,ae=null;T!==void 0&&(Tn(T),N=""+T),Ti(v)&&(Tn(v.key),N=""+v.key),Ei(v)&&(ae=v.ref,ki(v,Y));for(B in v)ft.call(v,B)&&!$i.hasOwnProperty(B)&&(P[B]=v[B]);if(c&&c.defaultProps){var G=c.defaultProps;for(B in G)P[B]===void 0&&(P[B]=G[B])}if(N||ae){var Z=typeof c=="function"?c.displayName||c.name||"Unknown":c;N&&xi(P,Z),ae&&Ci(P,Z)}return Si(c,N,ae,Y,D,nt.current,P)}}var Rt=x.ReactCurrentOwner,Cn=x.ReactDebugCurrentFrame;function ze(c){if(c){var v=c._owner,T=ut(c.type,c._source,v?v.type:null);Cn.setExtraStackFrame(T)}else Cn.setExtraStackFrame(null)}var At;At=!1;function Ot(c){return typeof c=="object"&&c!==null&&c.$$typeof===e}function Sn(){{if(Rt.current){var c=S(Rt.current.type);if(c)return`
34
-
35
- Check the render method of \``+c+"`."}return""}}function _i(c){{if(c!==void 0){var v=c.fileName.replace(/^.*[\\\/]/,""),T=c.lineNumber;return`
36
-
37
- Check your code at `+v+":"+T+"."}return""}}var In={};function Di(c){{var v=Sn();if(!v){var T=typeof c=="string"?c:c.displayName||c.name;T&&(v=`
38
-
39
- Check the top-level render call using <`+T+">.")}return v}}function _n(c,v){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var T=Di(v);if(In[T])return;In[T]=!0;var D="";c&&c._owner&&c._owner!==Rt.current&&(D=" It was passed a child from "+S(c._owner.type)+"."),ze(c),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,D),ze(null)}}function Dn(c,v){{if(typeof c!="object")return;if(_t(c))for(var T=0;T<c.length;T++){var D=c[T];Ot(D)&&_n(D,v)}else if(Ot(c))c._store&&(c._store.validated=!0);else if(c){var Y=b(c);if(typeof Y=="function"&&Y!==c.entries)for(var B=Y.call(c),P;!(P=B.next()).done;)Ot(P.value)&&_n(P.value,v)}}}function Ri(c){{var v=c.type;if(v==null||typeof v=="string")return;var T;if(typeof v=="function")T=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===l||v.$$typeof===d))T=v.propTypes;else return;if(T){var D=S(v);gi(T,c.props,"prop",D,c)}else if(v.PropTypes!==void 0&&!At){At=!0;var Y=S(v);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Y||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ai(c){{for(var v=Object.keys(c.props),T=0;T<v.length;T++){var D=v[T];if(D!=="children"&&D!=="key"){ze(c),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D),ze(null);break}}c.ref!==null&&(ze(c),M("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}function Rn(c,v,T,D,Y,B){{var P=H(c);if(!P){var N="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ae=_i(Y);ae?N+=ae:N+=Sn();var G;c===null?G="null":_t(c)?G="array":c!==void 0&&c.$$typeof===e?(G="<"+(S(c.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):G=typeof c,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",G,N)}var Z=Ii(c,v,T,Y,B);if(Z==null)return Z;if(P){var pe=v.children;if(pe!==void 0)if(D)if(_t(pe)){for(var Ke=0;Ke<pe.length;Ke++)Dn(pe[Ke],c);Object.freeze&&Object.freeze(pe)}else M("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Dn(pe,c)}return c===r?Ai(Z):Ri(Z),Z}}function Oi(c,v,T){return Rn(c,v,T,!0)}function Mi(c,v,T){return Rn(c,v,T,!1)}var Ni=Mi,Pi=Oi;it.Fragment=r,it.jsx=Ni,it.jsxs=Pi}()),it}process.env.NODE_ENV==="production"?rn.exports=Zs():rn.exports=Js();var Xs=rn.exports;const Qs=t=>t.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""),hi=t=>t.replace(/([A-Z])/g,e=>`-${e[0].toLowerCase()}`),Vs=(t,e,n={})=>{if(t instanceof Element){const r=el(t.classList,e,n);r!==""&&(t.className=r),Object.keys(e).forEach(i=>{if(!(i==="children"||i==="style"||i==="ref"||i==="class"||i==="className"||i==="forwardedRef"))if(i.indexOf("on")===0&&i[2]===i[2].toUpperCase()){const a=i.substring(2),o=a[0].toLowerCase()+a.substring(1);pi(o)||nl(t,o,e[i])}else t[i]=e[i],typeof e[i]==="string"&&t.setAttribute(hi(i),e[i])})}},el=(t,e,n)=>{const r=e.className||e.class,i=n.className||n.class,a=Yt(t),o=Yt(r?r.split(" "):[]),s=Yt(i?i.split(" "):[]),l=[];return a.forEach(u=>{o.has(u)?(l.push(u),o.delete(u)):s.has(u)||l.push(u)}),o.forEach(u=>l.push(u)),l.join(" ")},tl=t=>{switch(t){case"doubleclick":return"dblclick"}return t};/**
40
- * Checks if an event is supported in the current execution environment.
41
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
42
- */const pi=t=>{if(typeof document>"u")return!0;{const e="on"+tl(t);let n=e in document;if(!n){const r=document.createElement("div");r.setAttribute(e,"return;"),n=typeof r[e]=="function"}return n}},nl=(t,e,n)=>{const r=t.__events||(t.__events={}),i=r[e];i&&t.removeEventListener(e,i),t.addEventListener(e,r[e]=function(o){n&&n.call(this,o)})},Yt=t=>{const e=new Map;return t.forEach(n=>e.set(n,n)),e},rl=(t,e)=>{typeof t=="function"?t(e):t!=null&&(t.current=e)},il=(...t)=>e=>{t.forEach(n=>{rl(n,e)})},ol=(t,e)=>{const n=(r,i)=>Xs.jsx(t,{...r,forwardedRef:i});return n.displayName=e,ke.forwardRef(n)},g=(t,e,n,r)=>{r!==void 0&&r();const i=Qs(t),a=class extends ke.Component{constructor(s){super(s);Mt(this,"componentEl");Mt(this,"setComponentElRef",s=>{this.componentEl=s})}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(s){Vs(this.componentEl,this.props,s)}render(){const{children:s,forwardedRef:l,style:u,className:f,ref:d,...h}=this.props;let p=Object.keys(h).reduce((w,b)=>{const x=h[b];if(b.indexOf("on")===0&&b[2]===b[2].toUpperCase()){const M=b.substring(2).toLowerCase();typeof document<"u"&&pi(M)&&(w[b]=x)}else{const M=typeof x;(M==="string"||M==="boolean"||M==="number")&&(w[hi(b)]=x)}return w},{});n&&(p=n(this.props,p));const y={...p,ref:il(l,this.setComponentElRef),style:u};return ke.createElement(t,y,s)}static get displayName(){return i}};return e&&(a.contextType=e),ol(a,i)};di();const al=g("add-circle-icon"),sl=g("archive-icon"),ll=g("arrow-icon"),cl=g("bold-icon"),ul=g("button-component"),fl=g("calendar-cancel-icon"),dl=g("calendar-check-icon"),hl=g("calendar-icon"),pl=g("calendar-info-icon"),yl=g("calendar-patterns-icon"),ml=g("checkbox-component"),gl=g("checkmark-circle-icon"),vl=g("chevron-icon"),wl=g("clock-icon"),bl=g("close-icon"),$l=g("document-refresh-icon"),El=g("flow-icon"),Tl=g("folder-icon"),kl=g("forward-icon"),xl=g("globe-icon"),Cl=g("google-logo-icon"),Sl=g("inbox-icon"),Il=g("info-icon"),_l=g("input-component"),Dl=g("input-dropdown"),Rl=g("italic-icon"),Al=g("loading-icon"),Ol=g("location-icon"),Ml=g("location-off-icon"),Nl=g("microsoft-logo-icon"),Pl=g("multi-select-dropdown"),Ll=g("nylas-additional-participants"),Fl=g("nylas-availability-picker"),Ul=g("nylas-booked-event-card"),Yl=g("nylas-booking-calendar-picker"),Hl=g("nylas-booking-form"),Bl=g("nylas-buffer-time"),Wl=g("nylas-calendar-picker"),jl=g("nylas-cancel-booking-form"),ql=g("nylas-cancellation-policy"),zl=g("nylas-cancelled-event-card"),Kl=g("nylas-composer"),Gl=g("nylas-custom-booking-flow"),Zl=g("nylas-customize-booking-settings"),Jl=g("nylas-date-picker"),Xl=g("nylas-editor-tabs"),Ql=g("nylas-event-description"),Vl=g("nylas-event-duration"),ec=g("nylas-event-info"),tc=g("nylas-event-limits"),nc=g("nylas-event-location"),rc=g("nylas-event-title"),ic=g("nylas-form-card"),oc=g("nylas-if-state"),ac=g("nylas-limit-future-bookings"),sc=g("nylas-list-configurations"),lc=g("nylas-list-folders"),cc=g("nylas-list-threads"),uc=g("nylas-locale-switch"),fc=g("nylas-login"),dc=g("nylas-logo"),hc=g("nylas-mailbox"),pc=g("nylas-mailbox-pagination"),yc=g("nylas-mailbox-toolbar-button"),mc=g("nylas-min-booking-notice"),gc=g("nylas-min-cancellation-notice"),vc=g("nylas-notification"),wc=g("nylas-participants-custom-availability"),bc=g("nylas-provider"),$c=g("nylas-scheduler-editor"),Ec=g("nylas-scheduling"),Tc=g("nylas-selected-event-card"),kc=g("nylas-summarize-message-button"),xc=g("nylas-threads-refresh"),Cc=g("nylas-threads-search"),Sc=g("nylas-time-window-picker"),Ic=g("nylas-timeslot-interval"),_c=g("nylas-timeslot-picker"),Dc=g("nylas-view-email"),Rc=g("nylas-view-thread"),Ac=g("people-icon"),Oc=g("person-icon"),Mc=g("play-icon"),Nc=g("radio-button-group"),Pc=g("refresh-icon"),Lc=g("reply-all-icon"),Fc=g("reply-icon"),Uc=g("search-icon"),Yc=g("select-dropdown"),Hc=g("sent-icon"),Bc=g("spam-icon"),Wc=g("star-icon"),jc=g("stop-icon"),qc=g("textarea-component"),zc=g("time-period-selector"),Kc=g("toggle-switch"),Gc=g("tooltip-component"),Zc=g("translate-icon"),Jc=g("trash-icon"),Xc=g("underline-icon"),Qc=g("warning-icon");function Vc(){const[,t]=ke.useReducer(i=>i+1,0),e=ke.useRef(),n=ke.useRef(null),r=ke.useRef(null);return ke.useEffect(()=>{e.current&&(n.current||e.current.getNylasMailboxConnector().then(i=>{i&&(n.current=i,r.current=n.current.nylasAuthStore,i.nylasAuthStore.on("set",t),t())}))},[]),[e,r.current]}exports.AddCircleIcon=al;exports.ArchiveIcon=sl;exports.ArrowIcon=ll;exports.BoldIcon=cl;exports.Buffer=m;exports.ButtonComponent=ul;exports.CalendarCancelIcon=fl;exports.CalendarCheckIcon=dl;exports.CalendarIcon=hl;exports.CalendarInfoIcon=pl;exports.CalendarPatternsIcon=yl;exports.CheckboxComponent=ml;exports.CheckmarkCircleIcon=gl;exports.ChevronIcon=vl;exports.ClockIcon=wl;exports.CloseIcon=bl;exports.DocumentRefreshIcon=$l;exports.FlowIcon=El;exports.FolderIcon=Tl;exports.ForwardIcon=kl;exports.Fragment=go;exports.GlobeIcon=xl;exports.GoogleLogoIcon=Cl;exports.Host=$r;exports.InboxIcon=Sl;exports.InfoIcon=Il;exports.InputComponent=_l;exports.InputDropdown=Dl;exports.ItalicIcon=Rl;exports.LoadingIcon=Al;exports.LocationIcon=Ol;exports.LocationOffIcon=Ml;exports.MicrosoftLogoIcon=Nl;exports.MultiSelectDropdown=Pl;exports.NylasAdditionalParticipants=Ll;exports.NylasAvailabilityPicker=Fl;exports.NylasBookedEventCard=Ul;exports.NylasBookingCalendarPicker=Yl;exports.NylasBookingForm=Hl;exports.NylasBufferTime=Bl;exports.NylasCalendarPicker=Wl;exports.NylasCancelBookingForm=jl;exports.NylasCancellationPolicy=ql;exports.NylasCancelledEventCard=zl;exports.NylasComposer=Kl;exports.NylasCustomBookingFlow=Gl;exports.NylasCustomizeBookingSettings=Zl;exports.NylasDatePicker=Jl;exports.NylasEditorTabs=Xl;exports.NylasEventDescription=Ql;exports.NylasEventDuration=Vl;exports.NylasEventInfo=ec;exports.NylasEventLimits=tc;exports.NylasEventLocation=nc;exports.NylasEventTitle=rc;exports.NylasFormCard=ic;exports.NylasIdentityRequestWrapper=qs;exports.NylasIfState=oc;exports.NylasLimitFutureBookings=ac;exports.NylasListConfigurations=sc;exports.NylasListFolders=lc;exports.NylasListThreads=cc;exports.NylasLocaleSwitch=uc;exports.NylasLogin=fc;exports.NylasLogo=dc;exports.NylasMailbox=hc;exports.NylasMailboxPagination=pc;exports.NylasMailboxToolbarButton=yc;exports.NylasMinBookingNotice=mc;exports.NylasMinCancellationNotice=gc;exports.NylasNotification=vc;exports.NylasParticipantsCustomAvailability=wc;exports.NylasProvider=bc;exports.NylasSchedulerEditor=$c;exports.NylasScheduling=Ec;exports.NylasSelectedEventCard=Tc;exports.NylasSummarizeMessageButton=kc;exports.NylasThreadsRefresh=xc;exports.NylasThreadsSearch=Cc;exports.NylasTimeWindowPicker=Sc;exports.NylasTimeslotInterval=Ic;exports.NylasTimeslotPicker=_c;exports.NylasViewEmail=Dc;exports.NylasViewThread=Rc;exports.PeopleIcon=Ac;exports.PersonIcon=Oc;exports.PlayIcon=Mc;exports.RadioButtonGroup=Nc;exports.RefreshIcon=Pc;exports.ReplyAllIcon=Lc;exports.ReplyIcon=Fc;exports.SearchIcon=Uc;exports.SelectDropdown=Yc;exports.SentIcon=Hc;exports.SpamIcon=Bc;exports.StarIcon=Wc;exports.StopIcon=jc;exports.TextareaComponent=qc;exports.TimePeriodSelector=zc;exports.ToggleSwitch=Kc;exports.TooltipComponent=Gc;exports.TranslateIcon=Zc;exports.TrashIcon=Jc;exports.UnderlineIcon=Xc;exports.WarningIcon=Qc;exports.addDaysToCurrentDate=Hs;exports.applyPolyfills=zs;exports.autocompleteTimeFormat=Os;exports.checkForMissingSlots=Ws;exports.commonjsGlobal=ei;exports.compactStringToUUIDs=js;exports.convertMinutesToHoursAndMinutes=Bs;exports.convertTo12HourFormat=Ms;exports.convertTo24HourFormat=Ns;exports.createEvent=Ji;exports.createStore=Ur;exports.dataResponse=tn;exports.dayjs=pn;exports.debug=hs;exports.defineCustomElements=di;exports.detectHTMLOrPlainText=fi;exports.detectIfMessageIsHTML=Ss;exports.error=ps;exports.formatDateTime=gs;exports.formatEventName=ms;exports.formatFolderName=Cs;exports.formatParticipants=ws;exports.formatRecipient=vs;exports.formatTimeAgo=bs;exports.getAugmentedNamespace=ha;exports.getBrowser=Fs;exports.getElement=Er;exports.getFirstDayOfMonth=Es;exports.getLastDayOfMonth=$s;exports.global$1=zt;exports.h=sn;exports.htmlToPlainText=_s;exports.isNonPrintableKey=Ys;exports.isSameDay=Ts;exports.isSameMonth=ks;exports.mergeDeep=nn;exports.minutesToTime=Ls;exports.parsePlainTextToHTML=Is;exports.parsePreviewLink=Us;exports.registerInstance=Eo;exports.roundToNearest15Minutes=As;exports.setNonce=$o;exports.timeToMinutes=Ps;exports.toTitleCase=xs;exports.uniqueID=ys;exports.useNylasMailboxElement=Vc;exports.validateExactTimeFormat=Rs;exports.validateTimeFormatInput=Ds;
@@ -1,45 +0,0 @@
1
- import { r, c as s, h as t } from "./index-812162da.js";
2
- import { s as a } from "./index-6d9eeb53-3edef246.js";
3
- import "./index-53420959-67beefed.js";
4
- import "react";
5
- import "react-dom";
6
- const l = ':host{display:block;height:100%;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0}label .error{color:var(--nylas-error)}input[type=text],input[type=email]{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%}input[type=text]:focus,input[type=email]:focus{outline-color:var(--nylas-primary)}input[type=text].error,input[type=email].error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=text].error::placeholder,input[type=email].error::placeholder{font-weight:400}input[type=text]::placeholder,input[type=email]::placeholder{color:var(--nylas-base-300)}', i = l, n = {
7
- email: /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/,
8
- tel: /^[0-9]{10}$/
9
- }, o = {
10
- email: "name@example.com",
11
- tel: "1234567890"
12
- }, h = class {
13
- constructor(e) {
14
- r(this, e), this.nylasFormInputChanged = s(this, "nylasFormInputChanged", 7), this.name = "input", this.defaultValue = "", this.label = "", this.type = "text", this.placeholder = o[this.type], this.required = !1, this.readOnly = !1, this.autoFocus = !1, this.pattern = void 0, this.maxLength = 255, this.patternError = "", this.value = "", this.error = "";
15
- }
16
- componentWillLoad() {
17
- this.value = a(this.defaultValue), this.type !== "text" && !this.pattern && (this.pattern = n[this.type]), this.value && this.validatePattern(this.value);
18
- }
19
- handleBookingFormSubmitted(e) {
20
- this.validatePattern(this.value), this.error && e.preventDefault();
21
- }
22
- handleInput(e) {
23
- this.error = "", this.value = a(e.target.value), this.nylasFormInputChanged.emit({
24
- value: this.value,
25
- name: this.name,
26
- label: this.label,
27
- error: this.error,
28
- type: this.type
29
- });
30
- }
31
- validatePattern(e) {
32
- if (this.error = "", this.required && !e) {
33
- this.error = `${this.label} is required.`;
34
- return;
35
- }
36
- this.pattern && (this.pattern.test(e) ? this.error = "" : this.error = `Invalid ${this.label.toLowerCase()} format.`);
37
- }
38
- render() {
39
- return t("label", { key: "a28361a1be7a5afe38dfdc3eb375d51029af16d2", part: "ic__label", class: { error: !!this.error } }, t("p", { key: "950007f568b6c12231f40bedb1db8f62937e978a" }, t("span", { key: "106299e5bea57a16eec9734db501517d50549262", class: "label" }, this.label), this.required && t("span", { class: "required" }, "*")), t("input", { key: "5c00d0abff394b38de75d24af47610ff4e246e69", type: "text", name: this.name, part: "ic__input", readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, maxLength: this.maxLength, placeholder: this.placeholder, class: { error: !!this.error }, onInput: (e) => this.handleInput(e) }), this.error && t("span", { class: "error help-text" }, this.error, " ", this.value && this.patternError !== "" ? ` ${this.patternError}` : ""));
40
- }
41
- };
42
- h.style = i;
43
- export {
44
- h as input_component
45
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-e3e9b594.cjs"),r=require("./index-6d9eeb53-3049fc04.cjs");require("./index-53420959-d3254a34.cjs");require("react");require("react-dom");const s=':host{display:block;height:100%;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0}label .error{color:var(--nylas-error)}input[type=text],input[type=email]{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%}input[type=text]:focus,input[type=email]:focus{outline-color:var(--nylas-primary)}input[type=text].error,input[type=email].error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=text].error::placeholder,input[type=email].error::placeholder{font-weight:400}input[type=text]::placeholder,input[type=email]::placeholder{color:var(--nylas-base-300)}',l=s,i={email:/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/,tel:/^[0-9]{10}$/},n={email:"name@example.com",tel:"1234567890"},a=class{constructor(e){t.registerInstance(this,e),this.nylasFormInputChanged=t.createEvent(this,"nylasFormInputChanged",7),this.name="input",this.defaultValue="",this.label="",this.type="text",this.placeholder=n[this.type],this.required=!1,this.readOnly=!1,this.autoFocus=!1,this.pattern=void 0,this.maxLength=255,this.patternError="",this.value="",this.error=""}componentWillLoad(){this.value=r.sanitizeHtml$1(this.defaultValue),this.type!=="text"&&!this.pattern&&(this.pattern=i[this.type]),this.value&&this.validatePattern(this.value)}handleBookingFormSubmitted(e){this.validatePattern(this.value),this.error&&e.preventDefault()}handleInput(e){this.error="",this.value=r.sanitizeHtml$1(e.target.value),this.nylasFormInputChanged.emit({value:this.value,name:this.name,label:this.label,error:this.error,type:this.type})}validatePattern(e){if(this.error="",this.required&&!e){this.error=`${this.label} is required.`;return}this.pattern&&(this.pattern.test(e)?this.error="":this.error=`Invalid ${this.label.toLowerCase()} format.`)}render(){return t.h("label",{key:"a28361a1be7a5afe38dfdc3eb375d51029af16d2",part:"ic__label",class:{error:!!this.error}},t.h("p",{key:"950007f568b6c12231f40bedb1db8f62937e978a"},t.h("span",{key:"106299e5bea57a16eec9734db501517d50549262",class:"label"},this.label),this.required&&t.h("span",{class:"required"},"*")),t.h("input",{key:"5c00d0abff394b38de75d24af47610ff4e246e69",type:"text",name:this.name,part:"ic__input",readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,placeholder:this.placeholder,class:{error:!!this.error},onInput:e=>this.handleInput(e)}),this.error&&t.h("span",{class:"error help-text"},this.error," ",this.value&&this.patternError!==""?` ${this.patternError}`:""))}};a.style=l;exports.input_component=a;
@@ -1,15 +0,0 @@
1
- import { r as t, h as a } from "./index-812162da.js";
2
- import "react";
3
- import "react-dom";
4
- const i = ".wave{display:flex;align-items:center;justify-content:center}.dot{width:4px;height:4px;background-color:var(--dot-color, white);border-radius:50%;margin:0 2px;animation:wave 1.5s infinite ease-in-out}.dot:nth-child(2){animation-delay:0.2s}.dot:nth-child(3){animation-delay:0.4s}@keyframes wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}", d = i, n = class {
5
- constructor(e) {
6
- t(this, e), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return a("div", { key: "5a2e1d7f211e17dba936c594398751951d2276e9", class: "wave" }, a("div", { key: "96caaecdcb309348f961ed43774eb89a2a87e635", class: "dot" }), a("div", { key: "f1f707f4a133dd12fa71a5ae13d864ce26b125d8", class: "dot" }), a("div", { key: "34df820811090a46234faf4b8b5ee1e033554d11", class: "dot" }));
10
- }
11
- };
12
- n.style = d;
13
- export {
14
- n as loading_icon
15
- };