(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[838],{10594:(e,r,t)=>{"use strict";var a=t(91665).A;r.A=a},65081:(e,r,t)=>{"use strict";t.d(r,{A:()=>x});var a=t(11855),n=t(69019),o=t(33173),i=t(5024),c=t(30395),l=t.n(c),s=t(79719),d=t(79135),u=t(51498),f=t(42764),p=function(){return p=Object.assign||function(e){for(var r,t=1,a=arguments.length;t{"use strict";t.d(r,{O4:()=>d});var a=t(11855),n=t(16118),o=t(6222),i=t.n(o),c=function(){return c=Object.assign||function(e){for(var r,t=1,a=arguments.length;t{"use strict";t.d(r,{n:()=>ar});var a=t(63159),n=t(11855),o=t(71358),i=t(65388),c=t(79135),l=t(38200),s=t(89082),d=t(6460),u=t(55264),f=t(16118),p=t(77163),b=t(97573),g=t(5024),m=t(35979),h=t(30395),v=t.n(h),x=function(){return x=Object.assign||function(e){for(var r,t=1,a=arguments.length;tr in e?P(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;const N=({api:e,code:r,logId:t=""})=>{!function(e,r={}){window.slardar&&window.slardar("sendEvent",{name:e,categories:r})}("api_error",{api:e,code:null==r?void 0:r.toString(),logId:t})},C=(e,r)=>{const t=(null==r?void 0:r.body)&&(0,A.omit)(r.body,["version"]);return new Promise((a=>{var n,o;S()(e,(n=((e,r)=>{for(var t in r||(r={}))$.call(r,t)&&L(e,t,r[t]);if(E)for(var t of E(r))T.call(r,t)&&L(e,t,r[t]);return e})({},r),o={data:t},D(n,M(o)))).then((r=>{var t;const n=null!=(t=r.code)?t:r.err_code,o=r.__META__;0!==n&&N({api:e,code:n,logId:o.logId}),a(r)})).catch((r=>{var t,n;const o=null!=(t=r.__META__)?t:{url:e,httpStatus:-1,logId:-1},i=z(r,o);N({api:e,code:null!=(n=null==i?void 0:i.toString())?n:"unknown"}),a({code:null!=i?i:-1,message:"catch error"})}))}))};const z=(e,r)=>{if(!(e instanceof DOMException&&e.code===DOMException.ABORT_ERR)){if(r.httpStatus>300)return r.httpStatus;if(e instanceof Error){if("fetch timeout"===e.message)return 1002;if("Failed to fetch"===e.message)return 1003}return 1001}},Y={"Content-Type":"application/json"},B="GET";var H=Object.defineProperty,F=Object.defineProperties,I=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,Z=(e,r,t)=>r in e?H(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,U=(e,r)=>{for(var t in r||(r={}))R.call(r,t)&&Z(e,t,r[t]);if(W)for(var t of W(r))G.call(r,t)&&Z(e,t,r[t]);return e},X=(e,r)=>F(e,I(r));const V=14;let q="";function K(e,r){const t=function(e,r){const t=[];function a(e,r){const n=Object.prototype.toString.call(e);if("[object Array]"===n)e.forEach(((e,t)=>{a(e,`${r}[${t}]`)}));else if("[object Object]"===n)for(const t in e)a(e[t],`${r}[${t}]`);else"[object Date]"===n?t.push(`${r}=${e.toISOString()}`):"[object Null]"===n?t.push(`${r}=`):"[object Undefined]"!==n&&t.push(`${r}=${encodeURIComponent(e)}`)}for(const o in e)a(e[o],o);const n=t.join("&");return n&&!r?`?${n}`:n}(e),a=`${q}/api/v${e.version||1}/seller/onboard/resources/get${t}`;return C(a,{method:B,headers:Y},X(U({},r),{GlobalCentral:!0}))}const Q={business:"tts_portal"},J={us:"US"},ee="page_duration";var re=Object.defineProperty,te=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,oe=(e,r,t)=>r in e?re(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ie=(e,r)=>{for(var t in r||(r={}))ae.call(r,t)&&oe(e,t,r[t]);if(te)for(var t of te(r))ne.call(r,t)&&oe(e,t,r[t]);return e},ce=(e,r,t)=>(oe(e,"symbol"!=typeof r?r+"":r,t),t);const le={id:"sg",gb:"va",zh:"sg",th:"sg",ph:"sg",vn:"sg",my:"sg",sg:"sg",us:"va"};class se{constructor({region:e,page_name:r,app_id:a}){ce(this,"tea"),ce(this,"commonParams");const n=t(8806).A;n.init({app_id:a,channel:le[e]||"sg"}),n.start(),this.tea=n,this.commonParams={EVENT_ORIGIN_FEATURE:"TEMAI",region:J[e],page_name:Q[r]}}send(e,r){this.tea(e,ie(ie({},this.commonParams),r))}config(e){this.tea.config({evtParams:ie({},e)})}}var de=t(47324);function ue(){return"undefined"!=typeof window&&window.location?window.location.search:""}(0,de.parse)(ue().slice(1));var fe=Object.defineProperty,pe=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ve=(e,r,t)=>r in e?fe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,xe=(e,r,t)=>(ve(e,"symbol"!=typeof r?r+"":r,t),t);class ye extends se{constructor(e){super(e),xe(this,"source_page"),xe(this,"cur_url_pathname");const{source_page:r=""}=(0,de.parse)(ue().slice(1),t);var t;this.source_page=r,this.cur_url_pathname=location.href}sendPageShow(e){var r,t;this.send("page_show",(r=((e,r)=>{for(var t in r||(r={}))me.call(r,t)&&ve(e,t,r[t]);if(ge)for(var t of ge(r))he.call(r,t)&&ve(e,t,r[t]);return e})({},e),t={source_page:this.source_page,cur_url_pathname:this.cur_url_pathname},pe(r,be(t))))}sendPageStart(e){this.send(ee,e)}sendPageEnd(e){this.send(ee,e)}sendRdApi(e){this.send("rd_api",e)}sendPlacementShow(e){this.send("placement_show",e)}sendSubmitResult(e){this.send("submit_result",e)}}let _e;var we=Object.defineProperty,Oe=Object.defineProperties,je=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Pe=(e,r,t)=>r in e?we(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,De=(e,r)=>{for(var t in r||(r={}))Se.call(r,t)&&Pe(e,t,r[t]);if(ke)for(var t of ke(r))Ae.call(r,t)&&Pe(e,t,r[t]);return e};const Me={title:"landing_page_title_general",titleHighlightText:"landing_page_title_highlight_general",description:"landing_page_detail_general",buttonText:"landing_page_form_button"},Ee=()=>function(e,r,t,a){const[o,i]=(0,n.useState)(),[c,l]=(0,n.useState)([]),[s,d]=(0,n.useState)(!1),[u,f]=(0,n.useState)(!1),p=()=>{console.log(e,"is using offline data"),f(!0)};return(0,n.useEffect)((()=>{a?K({resource_module_name:e,region:"US"}).then((r=>{0!==r.code&&_e.sendRdApi({api_domain:window.location.hostname,api_url:"/api/v1/seller/onboard/resources/get",api_code:r.code,widget_name:e[0].toString()}),i(r)})).catch((()=>{p()})):p()}),[]),(0,n.useEffect)((()=>{var e;if(o){l([]);const r=null==(e=o.data)?void 0:e.sort(((e,r)=>{var t,a,n,o;return(null==(t=null==e?void 0:e.resource_content_data)?void 0:t.priority)&&(null==(a=null==r?void 0:r.resource_content_data)?void 0:a.priority)?(null==(n=null==e?void 0:e.resource_content_data)?void 0:n.priority)-(null==(o=null==r?void 0:r.resource_content_data)?void 0:o.priority):0})).map((e=>{var r,t,a,n,o;return{resource_module_name:e.resource_module_name,resource_content_data:(n=De({},null!=(r=e.resource_content_data)?r:{}),o={resource_content:null==(a=null==(t=e.resource_content_data)?void 0:t.resource_content)?void 0:a.filter((e=>"0"===e.language||"en"===e.language))},Oe(n,je(o)))}})).filter((e=>{var r,t;return null!=(t=null==(r=e.resource_content_data.resource_content)?void 0:r.length)&&t}));r&&r.length>0?(t(r,l),d(!0)):p()}}),[o]),{data:u?r:c,isOnline:s}}([V],Me,((e,r)=>{var t,a,n,o,i,c,l,s;const d=null==(o=null==(n=null==(a=null==(t=null==e?void 0:e[0])?void 0:t.resource_content_data)?void 0:a.resource_content)?void 0:n[0])?void 0:o.field_key_value_list;_e.sendPlacementShow({page_name:"us_sign_up_subscribe_form_button",module_name:`${V}`,role_type:"visitor",placement_id:`${null==(c=null==(i=null==e?void 0:e[0])?void 0:i.resource_content_data)?void 0:c.category_id}`,campaign_id:`${null==(s=null==(l=null==e?void 0:e[0])?void 0:l.resource_content_data)?void 0:s.campaign_id}`}),r(d?{title:d.title,titleHighlightText:d.titleHighlightText,description:d.description,buttonText:d.buttonText}:Me)}),!0);Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const $e=e=>{const{text:r,className:t,style:o,needTrim:i=!0}=e,c=i?r.trim():r;return c?(0,a.jsx)("span",{className:t,style:o,children:c.split(/\\n|
|\n/).map(((e,r)=>(0,a.jsxs)(n.Fragment,{children:[r>0&&(0,a.jsx)("br",{}),(0,a.jsx)("span",{children:e})]},r)))}):null},Te=e=>{const r=e.children&&n.Children.toArray(e.children),t=(0,n.useMemo)((()=>{let r=e.content;return e.format_keys&&e.format_keys.forEach(((e,t)=>{const a=new RegExp(`{{${e}}}`,"g");r=r.replace(a,`%${t+1}$s`)})),r}),[e.content,e.format_keys]),o=r?t.split(/(%\d+\$[ds]|%[ds])/g).map((t=>{let n=/%(\d+)\$[ds]/.exec(t);if(n){const e=parseInt(n[1],10)-1;return r[e]}return n=/%[ds]/.exec(t),n?r[0]:e.useTextLineFeed?(0,a.jsx)($e,{text:t,needTrim:!1}):e.useSpanWrapper?(0,a.jsx)("span",{children:t}):t})):t;return e.noWrapper?(0,a.jsx)(a.Fragment,{children:o}):(0,a.jsx)("span",{className:e.className,style:e.style,children:o})};Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;let Le="";var Ne=t(84393),Ce=Object.defineProperty,ze=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,He=(e,r,t)=>r in e?Ce(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Fe=(e,r)=>{for(var t in r||(r={}))Ye.call(r,t)&&He(e,t,r[t]);if(ze)for(var t of ze(r))Be.call(r,t)&&He(e,t,r[t]);return e};const Ie=(0,Ne.O4)("theme-arco"),We=u.Ay.div`
position: fixed;
right: 20px;
z-index: 15;
`,Re=(0,u.Ay)(o.A)`
&&.theme-arco-btn {
background-color: ${Ie.colors.brandBlack};
color: ${Ie.colors.brandWhite};
&:hover {
background-color: ${Ie.colors.brandBlack};
color: ${Ie.colors.brandWhite};
}
}
`,Ge=(0,u.Ay)(o.A)`
svg:active {
color: inherit;
}
&&.theme-arco-btn {
background-color: ${Ie.colors.brandWhite};
color: ${Ie.colors.neutralText1};
&:hover {
background-color: ${Ie.colors.brandRed};
color: ${Ie.colors.neutralBg4};
box-shadow: 0px 4px 17px 0px #00000029;
}
}
box-shadow: 0px 4px 17px 0px #00000029;
`,Ze=(0,u.Ay)(o.A)`
&&.theme-arco-btn {
background-color: ${Ie.colors.brandWhite};
color: ${Ie.colors.neutralText1};
&:hover {
background-color: '#e5e5e5';
color: ${Ie.colors.neutralText1};
box-shadow: 0px 4px 17px 0px #00000029;
}
}
box-shadow: 0px 4px 17px 0px #00000029;
`,Ue=u.Ay.div`
width: 440px;
background-color: #fff;
box-shadow: 0px 4px 17px 0px #00000029;
padding: 32px;
border-radius: 8px;
`,Xe=(0,u.Ay)(d.A)`
text-overflow: ellipsis;
&&.theme-arco-input-inner-wrapper {
&&.theme-arco-input-inner-wrapper-focus {
border-color: black;
}
}
:hover {
border-color: ${Ie.colors.neutralText1} !important;
}
:focus {
border-color: black !important;
}
`,Ve=(0,u.Ay)(w)`
.theme-arco-drawer {
border-radius: 100px;
}
.theme-arco-drawer-content {
padding: 36px 24px;
}
.theme-arco-drawer-close-icon {
top: 12px;
right: 12px;
}
`,qe=(0,u.Ay)(O.A)`
&&.theme-arco-link {
color: ${Ie.colors.neutralText1};
font-size: 12px;
font-weight: 400;
line-height: 18px;
display: inline;
:hover {
color: ${Ie.colors.neutralText1};
font-size: 12px;
font-weight: 400;
line-height: 18px;
text-decoration: underline;
}
span:hover:after {
display: none;
}
}
`,Ke=({onClick:e})=>(0,a.jsx)("div",{className:"absolute text-neutral-text4",style:{top:12,right:12},children:(0,a.jsx)(i.A,{onClick:e,className:"cursor-pointer",style:{fontSize:20}})}),Qe=()=>{const e=(0,s.s)();return(0,a.jsxs)("div",{className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-8",style:{fontSize:24,marginTop:-4},children:(0,a.jsx)(c.A,{})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-bold leading-[22px] mb-8",style:{fontSize:20},children:e.t("landing_page_form_submission_title")}),(0,a.jsx)("p",{className:"text-body-m-regular text-neutral-text1",children:e.t("landing_page_form_submission_detail")})]})]})},Je=()=>{const e=(0,s.s)();return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center h-full",children:[(0,a.jsx)("div",{className:"h-[80px] w-[80px] mb-16",style:{fontSize:70},children:(0,a.jsx)(c.A,{})}),(0,a.jsx)("p",{className:"font-bold leading-[27px] mb-16 break-words text-center",style:{fontSize:24},children:e.t("landing_page_form_submission_title")}),(0,a.jsx)("p",{className:"text-body-m-regular mb-12 text-center text-neutral-text1",children:e.t("landing_page_form_submission_detail")})]})},er=({handleSubmitForm:e,isLoading:r,subcribeFormDMSData:t,isMobile:o})=>{var i,c,l,d;const[u,f]=(0,n.useState)(!1),[p,b]=(0,n.useState)(""),[g,m]=(0,n.useState)(""),h=(0,s.s)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Te,{className:"font-bold leading-[22px] text-brand-black",style:{fontSize:20},content:h.t(null!=(i=t.data.title)?i:Me.title),format_keys:["highlight"],children:(0,a.jsx)("span",{className:"text-brand-red",children:h.t(null!=(c=t.data.titleHighlightText)?c:Me.titleHighlightText)})}),(0,a.jsx)("p",{className:`text-body-m-regular mb-16 ${o?"mt-16":"mt-8"} text-neutral-text1`,children:h.t(null!=(l=t.data.description)?l:Me.description)}),(0,a.jsx)(Xe,{className:"mb-4",placeholder:h.t("landing_page_form_phone_email"),value:p,onChange:e=>(e=>{f(!1),b(e)})(e),status:u?"error":void 0}),u&&(0,a.jsx)("p",{className:"mb-8 text-body-m-regular text-function-error",children:h.t("seller_onboard_us_mandatory_error_msg")}),(0,a.jsx)(Xe,{className:"mb-16",placeholder:h.t("landing_page_form_other_store_link"),value:g,onChange:e=>m(e)}),(0,a.jsx)(Re,{className:"w-full mb-16",onClick:()=>{r||(0!==p.trim().length?e(p,g):f(!0))},loading:r,children:h.t(null!=(d=t.data.buttonText)?d:Me.buttonText)}),(0,a.jsx)(Te,{className:"text-body-s-regular text-neutral-text3",content:h.t("landing_page_form_policy_acknowladged"),format_keys:["policy_link"],children:(0,a.jsx)(qe,{className:"text-body-s-regular",href:"https://www.tiktok.com/legal/page/global/partner-privacy-policy/en",target:"_blank",children:h.t("landing_page_form_policy_name")})})]})},rr=({openSubscribeButton:e,subcribeFormDMSData:r,reportSubscribeFormOpen:t,channelType:o,isMobile:i})=>{const c=(0,s.s)(),d=c.t("signup_landing_page_button"),[u,f]=(0,n.useState)(!1),[p,b]=(0,n.useState)(!1),[g,m]=(0,n.useState)(!1),[h,v]=(0,n.useState)(),x=(e,r)=>{m(!0),e=e.trim();const t=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e);const a=JSON.stringify(Object.fromEntries(new URLSearchParams(window.location.search)));(function(e,r){const t=`${Le}/api/v${e.version||1}/seller/onboard/v1/local/us/raw_lead`;return C(t,{method:"POST",headers:Y,body:e},r)})({email:t?e:void 0,phone:t?void 0:e,shop_link:r,channel_source:o,channel_detail:a}).then((e=>{null===e.code||0===e.code?(_e.sendSubmitResult({page_name:o,widget_name:"lead_collection_form"}),b(!0)):j.A.error(c.t("landing_page_form_submission_failure"))})).finally((()=>{m(!1)}))};(0,n.useEffect)((()=>{const e=setTimeout((()=>{u||(f(!0),t("20s_auto_open"))}),2e4);v(e)}),[]),(0,n.useEffect)((()=>{p&&h&&clearTimeout(h)}),[p]),(0,n.useEffect)((()=>{!e||p||u||(f(!0),t("scroll_auto_open"))}),[e]);const y=e=>i?(0,a.jsx)(Ze,Fe({},e)):(0,a.jsx)(Ge,Fe({},e));return(0,a.jsxs)(a.Fragment,{children:[!u&&(0,a.jsx)(y,{shape:"round",type:"default",className:"h-46",icon:(0,a.jsx)("div",{className:i?"h-24 w-24":"h-16 w-16 mr-4 flex items-center justify-center",children:(0,a.jsx)(l.A,{style:{fontSize:i?24:16}})}),size:i?"large":"default",onClick:()=>{b(!1),f(!0),t("click_subcribe_button")},children:i?null:(_=d,_.length>18?`${_.substring(0,18)}...`:_)}),(0,a.jsx)(Ve,{closable:!0,visible:u&&i,placement:"bottom",footer:null,onCancel:()=>f(!1),className:"rounded-tl-[12px] rounded-tr-[12px] "+(p?"!h-[338px]":"!h-auto"),children:p?(0,a.jsx)(Je,{}):(0,a.jsx)(er,{handleSubmitForm:x,isLoading:g,subcribeFormDMSData:r,isMobile:i})}),u&&!i&&(0,a.jsxs)(Ue,{children:[(0,a.jsx)(Ke,{onClick:()=>f(!1)}),p?(0,a.jsx)(Qe,{}):(0,a.jsx)(er,{handleSubmitForm:x,isLoading:g,subcribeFormDMSData:r,isMobile:i})]})]});var _},tr=({openSubscribeButton:e,appId:r,lang:t="en",channelType:n,isMobile:o})=>{const i=o?25:20,c=Ee();var l;l="us","undefined"!=typeof window&&(e=>{if("undefined"==typeof window)return;let r,t;_e=new ye(e),_e.sendPageStart({start_timestamp:`${Date.now()}`}),void 0!==document.hidden?(r="hidden",t="visibilitychange"):void 0!==document.msHidden?(r="msHidden",t="msvisibilitychange"):void 0!==document.webkitHidden&&(r="webkitHidden",t="webkitvisibilitychange"),void 0===document.addEventListener||void 0===r||void 0===document[r]?console.warn("This demo requires a browser, such as Google Chrome or Firefox, that supports the Page Visibility API."):t&&document.addEventListener(t,(function(){document[r]?_e.sendPageEnd({end_timestamp:`${Date.now()}`}):_e.sendPageStart({start_timestamp:`${Date.now()}`})}),!1)})({page_name:"business",region:l,app_id:r});return(0,a.jsx)(g.Ay,{arcoConfig:{prefixCls:"theme-arco"},prefixCls:"theme-m4b",children:(0,a.jsx)(s.C,{lang:t,children:(0,a.jsx)(We,{style:{bottom:i},children:(0,a.jsx)(rr,{openSubscribeButton:e,subcribeFormDMSData:c,reportSubscribeFormOpen:e=>{_e.sendPageShow({page_name:`${n}_lead_collection_button_form`,content_type:"lead_collection_form",channel_type:n,action_type:e})},channelType:n,isMobile:o})})})})},ar=({openSubscribeButton:e,appId:r,lang:t,channelType:o})=>{const[i,c]=(0,n.useState)(!0);return(0,n.useEffect)((()=>{c(/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent))}),[]),void 0===i?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(tr,{openSubscribeButton:e,appId:r,lang:t,channelType:o,isMobile:i})}},52821:function(e){e.exports=function(){"use strict";return function(e,r){var t=r.prototype,a=t.format;t.format=function(e){var r=this,t=this.$locale();if(!this.isValid())return a.bind(this)(e);var n=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((r.$M+1)/3);case"Do":return t.ordinal(r.$D);case"gggg":return r.weekYear();case"GGGG":return r.isoWeekYear();case"wo":return t.ordinal(r.week(),"W");case"w":case"ww":return n.s(r.week(),"w"===e?1:2,"0");case"W":case"WW":return n.s(r.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return n.s(String(0===r.$H?24:r.$H),"k"===e?1:2,"0");case"X":return Math.floor(r.$d.getTime()/1e3);case"x":return r.$d.getTime();case"z":return"["+r.offsetName()+"]";case"zzz":return"["+r.offsetName("long")+"]";default:return e}}));return a.bind(this)(o)}}}()},4791:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,t=/\d\d/,a=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,o={},i=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(r){this[e]=+r}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var r=e.match(/([+-]|\d\d)/g),t=60*r[1]+(+r[2]||0);return 0===t?0:"+"===r[0]?-t:t}(e)}],s=function(e){var r=o[e];return r&&(r.indexOf?r:r.s.concat(r.f))},d=function(e,r){var t,a=o.meridiem;if(a){for(var n=1;n<=24;n+=1)if(e.indexOf(a(n,0,r))>-1){t=n>12;break}}else t=e===(r?"pm":"PM");return t},u={A:[n,function(e){this.afternoon=d(e,!1)}],a:[n,function(e){this.afternoon=d(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[t,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[t,c("day")],Do:[n,function(e){var r=o.ordinal,t=e.match(/\d+/);if(this.day=t[0],r)for(var a=1;a<=31;a+=1)r(a).replace(/\[|\]/g,"")===e&&(this.day=a)}],M:[a,c("month")],MM:[t,c("month")],MMM:[n,function(e){var r=s("months"),t=(s("monthsShort")||r.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],MMMM:[n,function(e){var r=s("months").indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],Y:[/[+-]?\d+/,c("year")],YY:[t,function(e){this.year=i(e)}],YYYY:[/\d{4}/,c("year")],Z:l,ZZ:l};function f(t){var a,n;a=t,n=o&&o.formats;for(var i=(t=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(r,t,a){var o=a&&a.toUpperCase();return t||n[a]||e[a]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,r,t){return r||t.slice(1)}))}))).match(r),c=i.length,l=0;l-1)return new Date(("X"===r?1e3:1)*e);var a=f(r)(e),n=a.year,o=a.month,i=a.day,c=a.hours,l=a.minutes,s=a.seconds,d=a.milliseconds,u=a.zone,p=new Date,b=i||(n||o?1:p.getDate()),g=n||p.getFullYear(),m=0;n&&!o||(m=o>0?o-1:p.getMonth());var h=c||0,v=l||0,x=s||0,y=d||0;return u?new Date(Date.UTC(g,m,b,h,v,x,y+60*u.offset*1e3)):t?new Date(Date.UTC(g,m,b,h,v,x,y)):new Date(g,m,b,h,v,x,y)}catch(e){return new Date("")}}(r,c,a),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&r!=this.format(c)&&(this.$d=new Date("")),o={}}else if(c instanceof Array)for(var p=c.length,b=1;b<=p;b+=1){i[1]=c[b-1];var g=t.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}b===p&&(this.$d=new Date(""))}else n.call(this,e)}}}()},56970:function(e){e.exports=function(){"use strict";return function(e,r,t){r.prototype.isBetween=function(e,r,a,n){var o=t(e),i=t(r),c="("===(n=n||"()")[0],l=")"===n[1];return(c?this.isAfter(o,a):!this.isBefore(o,a))&&(l?this.isBefore(i,a):!this.isAfter(i,a))||(c?this.isBefore(o,a):!this.isAfter(o,a))&&(l?this.isAfter(i,a):!this.isBefore(i,a))}}}()},16918:function(e){e.exports=function(){"use strict";var e="month",r="quarter";return function(t,a){var n=a.prototype;n.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var o=n.add;n.add=function(t,a){return t=Number(t),this.$utils().p(a)===r?this.add(3*t,e):o.bind(this)(t,a)};var i=n.startOf;n.startOf=function(t,a){var n=this.$utils(),o=!!n.u(a)||a;if(n.p(t)===r){var c=this.quarter()-1;return o?this.month(3*c).startOf(e).startOf("day"):this.month(3*c+2).endOf(e).endOf("day")}return i.bind(this)(t,a)}}}()},15680:function(e){e.exports=function(){"use strict";var e="week",r="year";return function(t,a,n){var o=a.prototype;o.week=function(t){if(void 0===t&&(t=null),null!==t)return this.add(7*(t-this.week()),"day");var a=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=n(this).startOf(r).add(1,r).date(a),i=n(this).endOf(e);if(o.isBefore(i))return 1}var c=n(this).startOf(r).date(a).startOf(e).subtract(1,"millisecond"),l=this.diff(c,e,!0);return l<0?n(this).startOf("week").week():Math.ceil(l)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},33761:function(e){e.exports=function(){"use strict";return function(e,r){r.prototype.weekYear=function(){var e=this.month(),r=this.week(),t=this.year();return 1===r&&11===e?t+1:0===e&&r>=52?t-1:t}}}()}}]);