????

Your IP : 3.21.186.117


Current Path : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/Notify-3827e692.js

import{P as k,R as V,W as Nl,j as g,K as Zi,T as Ce,m as ct,i as wn,d as ue,r as ot,a as El,L as Sr,v as Xi,X as Ri,l as Il}from"./index-727ccf4d.js";import{t as Tr,a as cn,D as Ji,g as or,m as ft,_ as Ue,P as Pl,o as Cl,B as Yl}from"./Button-9330b92c.js";import{B as jl}from"./Badge-00b2c8d5.js";import{P as Rl}from"./Popper-c8f432b9.js";import{F as fn}from"./Fade-7cf1057f.js";import{F as Et}from"./FontAwesome4-32fe4385.js";import{E as Al}from"./Empty-aeb908cf.js";import{c as Qi}from"./_commonjs-dynamic-modules-302442b1.js";import{C as Fl}from"./DialogCustomize-4c6977d9.js";import"./InputNumber-dceb4c1c.js";import"./InputTime-0a0b65be.js";import{T as Ll}from"./TextArea-56268c1b.js";import{H as U,T as Jn}from"./const-0478bc07.js";function ur(n){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ur(n)}var Wl=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function lr(){return lr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},lr.apply(this,arguments)}function Ai(n){return $l(n)||Ul(n)||Vl(n)||Hl()}function Hl(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vl(n,r){if(n){if(typeof n=="string")return cr(n,r);var i=Object.prototype.toString.call(n).slice(8,-1);if(i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set")return Array.from(n);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return cr(n,r)}}function Ul(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function $l(n){if(Array.isArray(n))return cr(n)}function cr(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,s=new Array(r);i<r;i++)s[i]=n[i];return s}function Bl(n,r){if(n==null)return{};var i=Gl(n,r),s,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(o=0;o<l.length;o++)s=l[o],!(r.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(i[s]=n[s])}return i}function Gl(n,r){if(n==null)return{};var i={},s=Object.keys(n),o,l;for(l=0;l<s.length;l++)o=s[l],!(r.indexOf(o)>=0)&&(i[o]=n[o]);return i}function zl(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function Fi(n,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,s.key,s)}}function ql(n,r,i){return r&&Fi(n.prototype,r),i&&Fi(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function Kl(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&fr(n,r)}function fr(n,r){return fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},fr(n,r)}function Zl(n){var r=Jl();return function(){var s=dn(n),o;if(r){var l=dn(this).constructor;o=Reflect.construct(s,arguments,l)}else o=s.apply(this,arguments);return Xl(this,o)}}function Xl(n,r){if(r&&(ur(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xt(n)}function xt(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Jl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dn(n){return dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},dn(n)}function Li(n,r){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);r&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),i.push.apply(i,s)}return i}function un(n){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Li(Object(i),!0).forEach(function(s){Ql(n,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Li(Object(i)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(i,s))})}return n}function Ql(n,r,i){return r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n}function ec(){}var tc={children:k.oneOfType([k.node,k.func]).isRequired,popperClassName:k.string,placement:k.string,placementPrefix:k.string,arrowClassName:k.string,hideArrow:k.bool,tag:Tr,isOpen:k.bool,cssModule:k.object,offset:k.arrayOf(k.number),fallbackPlacements:k.array,flip:k.bool,container:cn,target:cn.isRequired,modifiers:k.array,strategy:k.string,boundariesElement:k.oneOfType([k.string,Ji]),onClosed:k.func,fade:k.bool,transition:k.shape(fn.propTypes)},nc={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:ec,fade:!0,transition:un({},fn.defaultProps)},kr=function(n){Kl(i,n);var r=Zl(i);function i(s){var o;return zl(this,i),o=r.call(this,s),o.setTargetNode=o.setTargetNode.bind(xt(o)),o.getTargetNode=o.getTargetNode.bind(xt(o)),o.getRef=o.getRef.bind(xt(o)),o.onClosed=o.onClosed.bind(xt(o)),o.state={isOpen:s.isOpen},o}return ql(i,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return or(this.props.container)}},{key:"getRef",value:function(o){this._element=o}},{key:"setTargetNode",value:function(o){this.targetNode=typeof o=="string"?or(o):o}},{key:"renderChildren",value:function(){var o=this.props,l=o.cssModule,d=o.children,h=o.isOpen,v=o.flip;o.target;var m=o.offset,b=o.fallbackPlacements,I=o.placementPrefix,O=o.arrowClassName,w=o.hideArrow,E=o.popperClassName,G=o.tag;o.container;var T=o.modifiers,X=o.strategy,z=o.boundariesElement;o.onClosed;var q=o.fade,he=o.transition,je=o.placement,Re=Bl(o,Wl),le=ft(Ue("arrow",O),l),te=ft(Ue(E,I?"".concat(I,"-auto"):""),this.props.cssModule),Ke=T.map(function($){return $.name}),J=[{name:"offset",options:{offset:m}},{name:"flip",enabled:v,options:{fallbackPlacements:b}},{name:"preventOverflow",options:{boundary:z}}].filter(function($){return!Ke.includes($.name)}),Ze=[].concat(Ai(J),Ai(T)),Xe=un(un(un({},fn.defaultProps),he),{},{baseClass:q?he.baseClass:"",timeout:q?he.timeout:0});return V.createElement(fn,lr({},Xe,Re,{in:h,onExited:this.onClosed,tag:G}),V.createElement(Rl,{referenceElement:this.targetNode,modifiers:Ze,placement:je,strategy:X},function($){var Dn=$.ref,gt=$.style,vt=$.placement,yt=$.isReferenceHidden,Wt=$.arrowProps,On=$.update;return V.createElement("div",{ref:Dn,style:gt,className:te,"data-popper-placement":vt,"data-popper-reference-hidden":yt?"true":void 0},typeof d=="function"?d({update:On}):d,!w&&V.createElement("span",{ref:Wt.ref,className:le,style:Wt.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():Nl.createPortal(V.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(o,l){return o.isOpen&&!l.isOpen?{isOpen:o.isOpen}:null}}]),i}(V.Component);kr.propTypes=tc;kr.defaultProps=nc;const rc=kr;function dr(){return dr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},dr.apply(this,arguments)}function It(n){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},It(n)}function ic(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function Wi(n,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,s.key,s)}}function sc(n,r,i){return r&&Wi(n.prototype,r),i&&Wi(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function ac(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&hr(n,r)}function hr(n,r){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},hr(n,r)}function oc(n){var r=lc();return function(){var s=hn(n),o;if(r){var l=hn(this).constructor;o=Reflect.construct(s,arguments,l)}else o=s.apply(this,arguments);return uc(this,o)}}function uc(n,r){if(r&&(It(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return se(n)}function se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function lc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hn(n){return hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},hn(n)}var Dr={children:k.oneOfType([k.node,k.func]),placement:k.oneOf(Pl),target:cn.isRequired,container:cn,isOpen:k.bool,disabled:k.bool,hideArrow:k.bool,boundariesElement:k.oneOfType([k.string,Ji]),className:k.string,innerClassName:k.string,arrowClassName:k.string,popperClassName:k.string,cssModule:k.object,toggle:k.func,autohide:k.bool,placementPrefix:k.string,delay:k.oneOfType([k.shape({show:k.number,hide:k.number}),k.number]),modifiers:k.array,strategy:k.string,offset:k.arrayOf(k.number),innerRef:k.oneOfType([k.func,k.string,k.object]),trigger:k.string,fade:k.bool,flip:k.bool},es={show:0,hide:50},cc={isOpen:!1,hideArrow:!1,autohide:!1,delay:es,toggle:function(){},trigger:"click",fade:!0};function ts(n,r){return r&&(n===r||r.contains(n))}function Hi(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return r&&r.length&&r.filter(function(i){return ts(n,i)})[0]}var Or=function(n){ac(i,n);var r=oc(i);function i(s){var o;return ic(this,i),o=r.call(this,s),o._targets=[],o.currentTargetElement=null,o.addTargetEvents=o.addTargetEvents.bind(se(o)),o.handleDocumentClick=o.handleDocumentClick.bind(se(o)),o.removeTargetEvents=o.removeTargetEvents.bind(se(o)),o.toggle=o.toggle.bind(se(o)),o.showWithDelay=o.showWithDelay.bind(se(o)),o.hideWithDelay=o.hideWithDelay.bind(se(o)),o.onMouseOverTooltipContent=o.onMouseOverTooltipContent.bind(se(o)),o.onMouseLeaveTooltipContent=o.onMouseLeaveTooltipContent.bind(se(o)),o.show=o.show.bind(se(o)),o.hide=o.hide.bind(se(o)),o.onEscKeyDown=o.onEscKeyDown.bind(se(o)),o.getRef=o.getRef.bind(se(o)),o.state={isOpen:s.isOpen},o._isMounted=!1,o}return sc(i,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(o){var l=this.props.trigger.split(" ");l.indexOf("legacy")>-1&&(this.props.isOpen||Hi(o.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!ts(o.target,this._popover)?this.hideWithDelay(o):this.props.isOpen||this.showWithDelay(o)):l.indexOf("click")>-1&&Hi(o.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(o):this.showWithDelay(o))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(o){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),o.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,o),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(o){o.key==="Escape"&&this.hide(o)}},{key:"getRef",value:function(o){var l=this.props.innerRef;l&&(typeof l=="function"?l(o):It(l)==="object"&&(l.current=o)),this._popover=o}},{key:"getDelay",value:function(o){var l=this.props.delay;return It(l)==="object"?isNaN(l[o])?es[o]:l[o]:l}},{key:"getCurrentTarget",value:function(o){if(!o)return null;var l=this._targets.indexOf(o);return l>=0?this._targets[l]:this.getCurrentTarget(o.parentElement)}},{key:"show",value:function(o){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=o?o.currentTarget||this.getCurrentTarget(o.target):null,o&&o.composedPath&&typeof o.composedPath=="function"){var l=o.composedPath();this.currentTargetElement=l&&l[0]||this.currentTargetElement}this.toggle(o)}}},{key:"showWithDelay",value:function(o){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,o),this.getDelay("show"))}},{key:"hide",value:function(o){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(o))}},{key:"hideWithDelay",value:function(o){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,o),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(o,l,d){this._targets.forEach(function(h){h.addEventListener(o,l,d)})}},{key:"removeEventOnTargets",value:function(o,l,d){this._targets.forEach(function(h){h.removeEventListener(o,l,d)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var o=this.props.trigger.split(" ");o.indexOf("manual")===-1&&((o.indexOf("click")>-1||o.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(o.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),o.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var o=or(this.props.target,!0);o!==this._targets&&(this.removeTargetEvents(),this._targets=o?Array.from(o):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(o){return this.props.disabled||!this._isMounted?o&&o.preventDefault():this.props.toggle(o)}},{key:"render",value:function(){var o=this;this.props.isOpen&&this.updateTarget();var l=this.currentTargetElement||this._targets[0];if(!l)return null;var d=this.props,h=d.className,v=d.cssModule,m=d.innerClassName,b=d.isOpen,I=d.hideArrow,O=d.boundariesElement,w=d.placement,E=d.placementPrefix,G=d.arrowClassName,T=d.popperClassName,X=d.container,z=d.modifiers,q=d.strategy,he=d.offset,je=d.fade,Re=d.flip,le=d.children,te=Cl(this.props,Object.keys(Dr)),Ke=ft(T,v),J=ft(m,v);return V.createElement(rc,{className:h,target:l,isOpen:b,hideArrow:I,boundariesElement:O,placement:w,placementPrefix:E,arrowClassName:G,popperClassName:Ke,container:X,modifiers:z,strategy:q,offset:he,cssModule:v,fade:je,flip:Re},function(Ze){var Xe=Ze.update;return V.createElement("div",dr({},te,{ref:o.getRef,className:J,role:"tooltip",onMouseOver:o.onMouseOverTooltipContent,onMouseLeave:o.onMouseLeaveTooltipContent,onKeyDown:o.onEscKeyDown}),typeof le=="function"?le({update:Xe}):le)})}}],[{key:"getDerivedStateFromProps",value:function(o,l){return o.isOpen&&!l.isOpen?{isOpen:o.isOpen}:null}}]),i}(V.Component);Or.propTypes=Dr;Or.defaultProps=cc;const fc=Or;function pr(){return pr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},pr.apply(this,arguments)}var dc={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function Mr(n){var r=Ue("popover-arrow",n.arrowClassName),i=Ue("popover","show",n.popperClassName),s=Ue("popover-inner",n.innerClassName);return V.createElement(fc,pr({},n,{arrowClassName:r,popperClassName:i,innerClassName:s}))}Mr.propTypes=Dr;Mr.defaultProps=dc;var hc=["className","cssModule","tag"];function mr(){return mr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},mr.apply(this,arguments)}function pc(n,r){if(n==null)return{};var i=mc(n,r),s,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(o=0;o<l.length;o++)s=l[o],!(r.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(i[s]=n[s])}return i}function mc(n,r){if(n==null)return{};var i={},s=Object.keys(n),o,l;for(l=0;l<s.length;l++)o=s[l],!(r.indexOf(o)>=0)&&(i[o]=n[o]);return i}var gc={tag:Tr,className:k.string,cssModule:k.object};function ns(n){var r=n.className,i=n.cssModule,s=n.tag,o=s===void 0?"h3":s,l=pc(n,hc),d=ft(Ue(r,"popover-header"),i);return V.createElement(o,mr({},l,{className:d}))}ns.propTypes=gc;var vc=["className","cssModule","tag"];function gr(){return gr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},gr.apply(this,arguments)}function yc(n,r){if(n==null)return{};var i=bc(n,r),s,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(o=0;o<l.length;o++)s=l[o],!(r.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(i[s]=n[s])}return i}function bc(n,r){if(n==null)return{};var i={},s=Object.keys(n),o,l;for(l=0;l<s.length;l++)o=s[l],!(r.indexOf(o)>=0)&&(i[o]=n[o]);return i}var wc={tag:Tr,className:k.string,cssModule:k.object};function rs(n){var r=n.className,i=n.cssModule,s=n.tag,o=s===void 0?"div":s,l=yc(n,vc),d=ft(Ue(r,"popover-body"),i);return V.createElement(o,gr({},l,{className:d}))}rs.propTypes=wc;const kh=[{field:"Id",dataID:!0,type:"guid",hidden:!0},{title:"Ngày tạo",field:"Created_Date",type:"datetime",defaultSort:"desc",cellStyle:{width:200}},{title:"Nội dung thông báo",field:"NoiDung",type:"string",dataCheck:!0,searchable:!0,render:n=>g.jsx(xr,{item:n})},{title:"Đã xem báo cáo",field:"DaXemThongBao",type:"boolean",hidden:!0},{title:"Target Id",field:"Target_Id",type:"boolean",hidden:!0},{title:"Targer Module",field:"Targer_Module",type:"boolean",hidden:!0},{title:"Hành động",field:"HanhDong",type:"boolean",hidden:!0},{title:"Đã xem thông báo",field:"DaXemThongBao",type:"boolean",hidden:!0},{title:"Đơn vị gửi",field:"SYS_DonVi.*",dataRef:["DonViGui_Id"],type:"boolean",hidden:!0},{title:"Đơn vị nhận",field:"SYS_DonVi1.*",dataRef:["DonViNhan_Id"],type:"boolean",hidden:!0}],xr=({item:n})=>{var o,l,d,h,v,m,b,I,O,w;let r="",i="",s="";switch(n.HanhDong){case U.TinNhanTuDonVi:i=g.jsx("b",{className:"text-primary",children:"gửi"}),r=(o=n==null?void 0:n.SYS_DonVi)==null?void 0:o.TenDonVi,s=g.jsxs(V.Fragment,{children:["đã ",i," 1 tin nhắn thông báo."]});break;case U.DaTrinhKy:i=g.jsx("b",{className:"text-primary",children:"trình ký"}),r=(l=n.SYS_DonVi1)==null?void 0:l.TenDonVi,s=g.jsxs(V.Fragment,{children:["đã ",i,' "',g.jsx("b",{children:n.NoiDung}),'".']});break;case U.TuChoiTrinhKy:i=g.jsx("b",{className:"text-danger",children:"từ chối trình ký"}),r=(d=n.SYS_DonVi1)==null?void 0:d.TenDonVi,s=g.jsxs(V.Fragment,{children:["đã ",i,' "',g.jsx("b",{children:n.NoiDung}),'".']});break;case U.TiepNhanTrinhKy:i=g.jsx("b",{className:"text-success",children:"tiếp nhận trình ký"}),r=(h=n.SYS_DonVi1)==null?void 0:h.TenDonVi,s=g.jsxs(V.Fragment,{children:["đã ",i,' "',g.jsx("b",{children:n.NoiDung}),'".']});break;case U.DaKySo:i=g.jsx("b",{className:"text-primary",children:"ký số"}),r=(v=n.SYS_DonVi)==null?void 0:v.TenDonVi,s=g.jsxs(V.Fragment,{children:["đã ",i,' "',g.jsx("b",{children:n.NoiDung}),'".']});break;case U.GuiBaoCao:i=g.jsx("b",{className:"text-primary",children:"gửi"}),r=(m=n==null?void 0:n.SYS_DonVi)==null?void 0:m.TenDonVi,s=g.jsxs(V.Fragment,{children:["đã ",i,' "',g.jsx("b",{children:n.NoiDung}),'".']});break;case U.DuyetBaoCao:i=g.jsx("b",{className:"text-success",children:"tiếp nhận"}),r=(b=n==null?void 0:n.SYS_DonVi)==null?void 0:b.TenDonVi,s=g.jsxs(V.Fragment,{children:["đã ",i,' "',g.jsx("b",{children:n.NoiDung}),'".']});break;case U.TuChoiBaoCao:i=g.jsx("b",{className:"text-danger",children:"từ chối"}),r=(I=n==null?void 0:n.SYS_DonVi)==null?void 0:I.TenDonVi,s=g.jsxs(V.Fragment,{children:["đã ",i,' "',g.jsx("b",{children:n.NoiDung}),'"']});break;case U.ChinhSuaBaoCao:i=g.jsx("b",{className:"text-info",children:"yêu cầu chỉnh sửa"}),r=(O=n.SYS_DonVi1)==null?void 0:O.TenDonVi,s=g.jsxs(V.Fragment,{children:["đã ",i,' "',g.jsx("b",{children:n.NoiDung}),'".']});break;case U.HuyKySo:i=g.jsx("b",{className:"text-danger",children:"hủy ký số"}),r=(w=n.SYS_DonVi)==null?void 0:w.TenDonVi,s=g.jsxs(V.Fragment,{children:["đã ",i,' "',g.jsx("b",{children:n.NoiDung}),'".']});break;case U.TinNhanTuHeThong:r="Hệ thống",s=g.jsxs(V.Fragment,{children:['thông báo sắp đến hạn "',g.jsx("b",{children:n.NoiDung}),'".']});break}return g.jsxs("span",{children:[g.jsx("b",{children:r})," ",s]})};var Qn={exports:{}},Vi;function _c(){return Vi||(Vi=1,function(n,r){(function(i,s){n.exports=s()})(Zi,function(){var i;function s(){return i.apply(null,arguments)}function o(e){i=e}function l(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function d(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function v(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(h(e,t))return!1;return!0}function m(e){return e===void 0}function b(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function I(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function O(e,t){var a=[],u,c=e.length;for(u=0;u<c;++u)a.push(t(e[u],u));return a}function w(e,t){for(var a in t)h(t,a)&&(e[a]=t[a]);return h(t,"toString")&&(e.toString=t.toString),h(t,"valueOf")&&(e.valueOf=t.valueOf),e}function E(e,t,a,u){return hi(e,t,a,u,!0).utc()}function G(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function T(e){return e._pf==null&&(e._pf=G()),e._pf}var X;Array.prototype.some?X=Array.prototype.some:X=function(e){var t=Object(this),a=t.length>>>0,u;for(u=0;u<a;u++)if(u in t&&e.call(this,t[u],u,t))return!0;return!1};function z(e){var t=null,a=!1,u=e._d&&!isNaN(e._d.getTime());if(u&&(t=T(e),a=X.call(t.parsedDateParts,function(c){return c!=null}),u=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a),e._strict&&(u=u&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=u;else return u;return e._isValid}function q(e){var t=E(NaN);return e!=null?w(T(t),e):T(t).userInvalidated=!0,t}var he=s.momentProperties=[],je=!1;function Re(e,t){var a,u,c,f=he.length;if(m(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),m(t._i)||(e._i=t._i),m(t._f)||(e._f=t._f),m(t._l)||(e._l=t._l),m(t._strict)||(e._strict=t._strict),m(t._tzm)||(e._tzm=t._tzm),m(t._isUTC)||(e._isUTC=t._isUTC),m(t._offset)||(e._offset=t._offset),m(t._pf)||(e._pf=T(t)),m(t._locale)||(e._locale=t._locale),f>0)for(a=0;a<f;a++)u=he[a],c=t[u],m(c)||(e[u]=c);return e}function le(e){Re(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),je===!1&&(je=!0,s.updateOffset(this),je=!1)}function te(e){return e instanceof le||e!=null&&e._isAMomentObject!=null}function Ke(e){s.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function J(e,t){var a=!0;return w(function(){if(s.deprecationHandler!=null&&s.deprecationHandler(null,e),a){var u=[],c,f,p,_=arguments.length;for(f=0;f<_;f++){if(c="",typeof arguments[f]=="object"){c+=`
[`+f+"] ";for(p in arguments[0])h(arguments[0],p)&&(c+=p+": "+arguments[0][p]+", ");c=c.slice(0,-2)}else c=arguments[f];u.push(c)}Ke(e+`
Arguments: `+Array.prototype.slice.call(u).join("")+`
`+new Error().stack),a=!1}return t.apply(this,arguments)},t)}var Ze={};function Xe(e,t){s.deprecationHandler!=null&&s.deprecationHandler(e,t),Ze[e]||(Ke(t),Ze[e]=!0)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null;function $(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Dn(e){var t,a;for(a in e)h(e,a)&&(t=e[a],$(t)?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function gt(e,t){var a=w({},e),u;for(u in t)h(t,u)&&(d(e[u])&&d(t[u])?(a[u]={},w(a[u],e[u]),w(a[u],t[u])):t[u]!=null?a[u]=t[u]:delete a[u]);for(u in e)h(e,u)&&!h(t,u)&&d(e[u])&&(a[u]=w({},a[u]));return a}function vt(e){e!=null&&this.set(e)}var yt;Object.keys?yt=Object.keys:yt=function(e){var t,a=[];for(t in e)h(e,t)&&a.push(t);return a};var Wt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function On(e,t,a){var u=this._calendar[e]||this._calendar.sameElse;return $(u)?u.call(t,a):u}function pe(e,t,a){var u=""+Math.abs(e),c=t-u.length,f=e>=0;return(f?a?"+":"":"-")+Math.pow(10,Math.max(0,c)).toString().substr(1)+u}var Mn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ht=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,xn={},Je={};function D(e,t,a,u){var c=u;typeof u=="string"&&(c=function(){return this[u]()}),e&&(Je[e]=c),t&&(Je[t[0]]=function(){return pe(c.apply(this,arguments),t[1],t[2])}),a&&(Je[a]=function(){return this.localeData().ordinal(c.apply(this,arguments),e)})}function Cs(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ys(e){var t=e.match(Mn),a,u;for(a=0,u=t.length;a<u;a++)Je[t[a]]?t[a]=Je[t[a]]:t[a]=Cs(t[a]);return function(c){var f="",p;for(p=0;p<u;p++)f+=$(t[p])?t[p].call(c,e):t[p];return f}}function Vt(e,t){return e.isValid()?(t=Br(t,e.localeData()),xn[t]=xn[t]||Ys(t),xn[t](e)):e.localeData().invalidDate()}function Br(e,t){var a=5;function u(c){return t.longDateFormat(c)||c}for(Ht.lastIndex=0;a>=0&&Ht.test(e);)e=e.replace(Ht,u),Ht.lastIndex=0,a-=1;return e}var js={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Rs(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(Mn).map(function(u){return u==="MMMM"||u==="MM"||u==="DD"||u==="dddd"?u.slice(1):u}).join(""),this._longDateFormat[e])}var As="Invalid date";function Fs(){return this._invalidDate}var Ls="%d",Ws=/\d{1,2}/;function Hs(e){return this._ordinal.replace("%d",e)}var Vs={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Us(e,t,a,u){var c=this._relativeTime[a];return $(c)?c(e,t,a,u):c.replace(/%d/i,e)}function $s(e,t){var a=this._relativeTime[e>0?"future":"past"];return $(a)?a(t):a.replace(/%s/i,t)}var Gr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ae(e){return typeof e=="string"?Gr[e]||Gr[e.toLowerCase()]:void 0}function Nn(e){var t={},a,u;for(u in e)h(e,u)&&(a=ae(u),a&&(t[a]=e[u]));return t}var Bs={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Gs(e){var t=[],a;for(a in e)h(e,a)&&t.push({unit:a,priority:Bs[a]});return t.sort(function(u,c){return u.priority-c.priority}),t}var zr=/\d/,ie=/\d\d/,qr=/\d{3}/,En=/\d{4}/,Ut=/[+-]?\d{6}/,L=/\d\d?/,Kr=/\d\d\d\d?/,Zr=/\d\d\d\d\d\d?/,$t=/\d{1,3}/,In=/\d{1,4}/,Bt=/[+-]?\d{1,6}/,Qe=/\d+/,Gt=/[+-]?\d+/,zs=/Z|[+-]\d\d:?\d\d/gi,zt=/Z|[+-]\d\d(?::?\d\d)?/gi,qs=/[+-]?\d+(\.\d{1,3})?/,bt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,et=/^[1-9]\d?/,Pn=/^([1-9]\d|\d)/,qt;qt={};function S(e,t,a){qt[e]=$(t)?t:function(u,c){return u&&a?a:t}}function Ks(e,t){return h(qt,e)?qt[e](t._strict,t._locale):new RegExp(Zs(e))}function Zs(e){return ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,a,u,c,f){return a||u||c||f}))}function ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function oe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function P(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=oe(t)),a}var Cn={};function A(e,t){var a,u=t,c;for(typeof e=="string"&&(e=[e]),b(t)&&(u=function(f,p){p[t]=P(f)}),c=e.length,a=0;a<c;a++)Cn[e[a]]=u}function wt(e,t){A(e,function(a,u,c,f){c._w=c._w||{},t(a,c._w,c,f)})}function Xs(e,t,a){t!=null&&h(Cn,e)&&Cn[e](t,a._a,a,e)}function Kt(e){return e%4===0&&e%100!==0||e%400===0}var Q=0,ye=1,me=2,K=3,ce=4,be=5,Ae=6,Js=7,Qs=8;D("Y",0,0,function(){var e=this.year();return e<=9999?pe(e,4):"+"+e}),D(0,["YY",2],0,function(){return this.year()%100}),D(0,["YYYY",4],0,"year"),D(0,["YYYYY",5],0,"year"),D(0,["YYYYYY",6,!0],0,"year"),S("Y",Gt),S("YY",L,ie),S("YYYY",In,En),S("YYYYY",Bt,Ut),S("YYYYYY",Bt,Ut),A(["YYYYY","YYYYYY"],Q),A("YYYY",function(e,t){t[Q]=e.length===2?s.parseTwoDigitYear(e):P(e)}),A("YY",function(e,t){t[Q]=s.parseTwoDigitYear(e)}),A("Y",function(e,t){t[Q]=parseInt(e,10)});function _t(e){return Kt(e)?366:365}s.parseTwoDigitYear=function(e){return P(e)+(P(e)>68?1900:2e3)};var Xr=tt("FullYear",!0);function ea(){return Kt(this.year())}function tt(e,t){return function(a){return a!=null?(Jr(this,e,a),s.updateOffset(this,t),this):St(this,e)}}function St(e,t){if(!e.isValid())return NaN;var a=e._d,u=e._isUTC;switch(t){case"Milliseconds":return u?a.getUTCMilliseconds():a.getMilliseconds();case"Seconds":return u?a.getUTCSeconds():a.getSeconds();case"Minutes":return u?a.getUTCMinutes():a.getMinutes();case"Hours":return u?a.getUTCHours():a.getHours();case"Date":return u?a.getUTCDate():a.getDate();case"Day":return u?a.getUTCDay():a.getDay();case"Month":return u?a.getUTCMonth():a.getMonth();case"FullYear":return u?a.getUTCFullYear():a.getFullYear();default:return NaN}}function Jr(e,t,a){var u,c,f,p,_;if(!(!e.isValid()||isNaN(a))){switch(u=e._d,c=e._isUTC,t){case"Milliseconds":return void(c?u.setUTCMilliseconds(a):u.setMilliseconds(a));case"Seconds":return void(c?u.setUTCSeconds(a):u.setSeconds(a));case"Minutes":return void(c?u.setUTCMinutes(a):u.setMinutes(a));case"Hours":return void(c?u.setUTCHours(a):u.setHours(a));case"Date":return void(c?u.setUTCDate(a):u.setDate(a));case"FullYear":break;default:return}f=a,p=e.month(),_=e.date(),_=_===29&&p===1&&!Kt(f)?28:_,c?u.setUTCFullYear(f,p,_):u.setFullYear(f,p,_)}}function ta(e){return e=ae(e),$(this[e])?this[e]():this}function na(e,t){if(typeof e=="object"){e=Nn(e);var a=Gs(e),u,c=a.length;for(u=0;u<c;u++)this[a[u].unit](e[a[u].unit])}else if(e=ae(e),$(this[e]))return this[e](t);return this}function ra(e,t){return(e%t+t)%t}var B;Array.prototype.indexOf?B=Array.prototype.indexOf:B=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Yn(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=ra(t,12);return e+=(t-a)/12,a===1?Kt(e)?29:28:31-a%7%2}D("M",["MM",2],"Mo",function(){return this.month()+1}),D("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),D("MMMM",0,0,function(e){return this.localeData().months(this,e)}),S("M",L,et),S("MM",L,ie),S("MMM",function(e,t){return t.monthsShortRegex(e)}),S("MMMM",function(e,t){return t.monthsRegex(e)}),A(["M","MM"],function(e,t){t[ye]=P(e)-1}),A(["MMM","MMMM"],function(e,t,a,u){var c=a._locale.monthsParse(e,u,a._strict);c!=null?t[ye]=c:T(a).invalidMonth=e});var ia="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Qr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ei=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,sa=bt,aa=bt;function oa(e,t){return e?l(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ei).test(t)?"format":"standalone"][e.month()]:l(this._months)?this._months:this._months.standalone}function ua(e,t){return e?l(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ei.test(t)?"format":"standalone"][e.month()]:l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function la(e,t,a){var u,c,f,p=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)f=E([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(f,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(f,"").toLocaleLowerCase();return a?t==="MMM"?(c=B.call(this._shortMonthsParse,p),c!==-1?c:null):(c=B.call(this._longMonthsParse,p),c!==-1?c:null):t==="MMM"?(c=B.call(this._shortMonthsParse,p),c!==-1?c:(c=B.call(this._longMonthsParse,p),c!==-1?c:null)):(c=B.call(this._longMonthsParse,p),c!==-1?c:(c=B.call(this._shortMonthsParse,p),c!==-1?c:null))}function ca(e,t,a){var u,c,f;if(this._monthsParseExact)return la.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),u=0;u<12;u++){if(c=E([2e3,u]),a&&!this._longMonthsParse[u]&&(this._longMonthsParse[u]=new RegExp("^"+this.months(c,"").replace(".","")+"$","i"),this._shortMonthsParse[u]=new RegExp("^"+this.monthsShort(c,"").replace(".","")+"$","i")),!a&&!this._monthsParse[u]&&(f="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[u]=new RegExp(f.replace(".",""),"i")),a&&t==="MMMM"&&this._longMonthsParse[u].test(e))return u;if(a&&t==="MMM"&&this._shortMonthsParse[u].test(e))return u;if(!a&&this._monthsParse[u].test(e))return u}}function ti(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=P(t);else if(t=e.localeData().monthsParse(t),!b(t))return e}var a=t,u=e.date();return u=u<29?u:Math.min(u,Yn(e.year(),a)),e._isUTC?e._d.setUTCMonth(a,u):e._d.setMonth(a,u),e}function ni(e){return e!=null?(ti(this,e),s.updateOffset(this,!0),this):St(this,"Month")}function fa(){return Yn(this.year(),this.month())}function da(e){return this._monthsParseExact?(h(this,"_monthsRegex")||ri.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=sa),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ha(e){return this._monthsParseExact?(h(this,"_monthsRegex")||ri.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=aa),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ri(){function e(M,C){return C.length-M.length}var t=[],a=[],u=[],c,f,p,_;for(c=0;c<12;c++)f=E([2e3,c]),p=ve(this.monthsShort(f,"")),_=ve(this.months(f,"")),t.push(p),a.push(_),u.push(_),u.push(p);t.sort(e),a.sort(e),u.sort(e),this._monthsRegex=new RegExp("^("+u.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function pa(e,t,a,u,c,f,p){var _;return e<100&&e>=0?(_=new Date(e+400,t,a,u,c,f,p),isFinite(_.getFullYear())&&_.setFullYear(e)):_=new Date(e,t,a,u,c,f,p),_}function Tt(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Zt(e,t,a){var u=7+t-a,c=(7+Tt(e,0,u).getUTCDay()-t)%7;return-c+u-1}function ii(e,t,a,u,c){var f=(7+a-u)%7,p=Zt(e,u,c),_=1+7*(t-1)+f+p,M,C;return _<=0?(M=e-1,C=_t(M)+_):_>_t(e)?(M=e+1,C=_-_t(e)):(M=e,C=_),{year:M,dayOfYear:C}}function kt(e,t,a){var u=Zt(e.year(),t,a),c=Math.floor((e.dayOfYear()-u-1)/7)+1,f,p;return c<1?(p=e.year()-1,f=c+we(p,t,a)):c>we(e.year(),t,a)?(f=c-we(e.year(),t,a),p=e.year()+1):(p=e.year(),f=c),{week:f,year:p}}function we(e,t,a){var u=Zt(e,t,a),c=Zt(e+1,t,a);return(_t(e)-u+c)/7}D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),S("w",L,et),S("ww",L,ie),S("W",L,et),S("WW",L,ie),wt(["w","ww","W","WW"],function(e,t,a,u){t[u.substr(0,1)]=P(e)});function ma(e){return kt(e,this._week.dow,this._week.doy).week}var ga={dow:0,doy:6};function va(){return this._week.dow}function ya(){return this._week.doy}function ba(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function wa(e){var t=kt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}D("d",0,"do","day"),D("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),D("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),D("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),S("d",L),S("e",L),S("E",L),S("dd",function(e,t){return t.weekdaysMinRegex(e)}),S("ddd",function(e,t){return t.weekdaysShortRegex(e)}),S("dddd",function(e,t){return t.weekdaysRegex(e)}),wt(["dd","ddd","dddd"],function(e,t,a,u){var c=a._locale.weekdaysParse(e,u,a._strict);c!=null?t.d=c:T(a).invalidWeekday=e}),wt(["d","e","E"],function(e,t,a,u){t[u]=P(e)});function _a(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Sa(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jn(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ta="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),si="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ka="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Da=bt,Oa=bt,Ma=bt;function xa(e,t){var a=l(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?jn(a,this._week.dow):e?a[e.day()]:a}function Na(e){return e===!0?jn(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ea(e){return e===!0?jn(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ia(e,t,a){var u,c,f,p=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],u=0;u<7;++u)f=E([2e3,1]).day(u),this._minWeekdaysParse[u]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[u]=this.weekdaysShort(f,"").toLocaleLowerCase(),this._weekdaysParse[u]=this.weekdays(f,"").toLocaleLowerCase();return a?t==="dddd"?(c=B.call(this._weekdaysParse,p),c!==-1?c:null):t==="ddd"?(c=B.call(this._shortWeekdaysParse,p),c!==-1?c:null):(c=B.call(this._minWeekdaysParse,p),c!==-1?c:null):t==="dddd"?(c=B.call(this._weekdaysParse,p),c!==-1||(c=B.call(this._shortWeekdaysParse,p),c!==-1)?c:(c=B.call(this._minWeekdaysParse,p),c!==-1?c:null)):t==="ddd"?(c=B.call(this._shortWeekdaysParse,p),c!==-1||(c=B.call(this._weekdaysParse,p),c!==-1)?c:(c=B.call(this._minWeekdaysParse,p),c!==-1?c:null)):(c=B.call(this._minWeekdaysParse,p),c!==-1||(c=B.call(this._weekdaysParse,p),c!==-1)?c:(c=B.call(this._shortWeekdaysParse,p),c!==-1?c:null))}function Pa(e,t,a){var u,c,f;if(this._weekdaysParseExact)return Ia.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),u=0;u<7;u++){if(c=E([2e3,1]).day(u),a&&!this._fullWeekdaysParse[u]&&(this._fullWeekdaysParse[u]=new RegExp("^"+this.weekdays(c,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[u]=new RegExp("^"+this.weekdaysShort(c,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[u]=new RegExp("^"+this.weekdaysMin(c,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[u]||(f="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[u]=new RegExp(f.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[u].test(e))return u;if(a&&t==="ddd"&&this._shortWeekdaysParse[u].test(e))return u;if(a&&t==="dd"&&this._minWeekdaysParse[u].test(e))return u;if(!a&&this._weekdaysParse[u].test(e))return u}}function Ca(e){if(!this.isValid())return e!=null?this:NaN;var t=St(this,"Day");return e!=null?(e=_a(e,this.localeData()),this.add(e-t,"d")):t}function Ya(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function ja(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Sa(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ra(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Rn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Da),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Aa(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Rn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Oa),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Fa(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Rn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ma),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Rn(){function e(ne,De){return De.length-ne.length}var t=[],a=[],u=[],c=[],f,p,_,M,C;for(f=0;f<7;f++)p=E([2e3,1]).day(f),_=ve(this.weekdaysMin(p,"")),M=ve(this.weekdaysShort(p,"")),C=ve(this.weekdays(p,"")),t.push(_),a.push(M),u.push(C),c.push(_),c.push(M),c.push(C);t.sort(e),a.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function An(){return this.hours()%12||12}function La(){return this.hours()||24}D("H",["HH",2],0,"hour"),D("h",["hh",2],0,An),D("k",["kk",2],0,La),D("hmm",0,0,function(){return""+An.apply(this)+pe(this.minutes(),2)}),D("hmmss",0,0,function(){return""+An.apply(this)+pe(this.minutes(),2)+pe(this.seconds(),2)}),D("Hmm",0,0,function(){return""+this.hours()+pe(this.minutes(),2)}),D("Hmmss",0,0,function(){return""+this.hours()+pe(this.minutes(),2)+pe(this.seconds(),2)});function ai(e,t){D(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ai("a",!0),ai("A",!1);function oi(e,t){return t._meridiemParse}S("a",oi),S("A",oi),S("H",L,Pn),S("h",L,et),S("k",L,et),S("HH",L,ie),S("hh",L,ie),S("kk",L,ie),S("hmm",Kr),S("hmmss",Zr),S("Hmm",Kr),S("Hmmss",Zr),A(["H","HH"],K),A(["k","kk"],function(e,t,a){var u=P(e);t[K]=u===24?0:u}),A(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),A(["h","hh"],function(e,t,a){t[K]=P(e),T(a).bigHour=!0}),A("hmm",function(e,t,a){var u=e.length-2;t[K]=P(e.substr(0,u)),t[ce]=P(e.substr(u)),T(a).bigHour=!0}),A("hmmss",function(e,t,a){var u=e.length-4,c=e.length-2;t[K]=P(e.substr(0,u)),t[ce]=P(e.substr(u,2)),t[be]=P(e.substr(c)),T(a).bigHour=!0}),A("Hmm",function(e,t,a){var u=e.length-2;t[K]=P(e.substr(0,u)),t[ce]=P(e.substr(u))}),A("Hmmss",function(e,t,a){var u=e.length-4,c=e.length-2;t[K]=P(e.substr(0,u)),t[ce]=P(e.substr(u,2)),t[be]=P(e.substr(c))});function Wa(e){return(e+"").toLowerCase().charAt(0)==="p"}var Ha=/[ap]\.?m?\.?/i,Va=tt("Hours",!0);function Ua(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var ui={calendar:Wt,longDateFormat:js,invalidDate:As,ordinal:Ls,dayOfMonthOrdinalParse:Ws,relativeTime:Vs,months:ia,monthsShort:Qr,week:ga,weekdays:Ta,weekdaysMin:ka,weekdaysShort:si,meridiemParse:Ha},H={},Dt={},Ot;function $a(e,t){var a,u=Math.min(e.length,t.length);for(a=0;a<u;a+=1)if(e[a]!==t[a])return a;return u}function li(e){return e&&e.toLowerCase().replace("_","-")}function Ba(e){for(var t=0,a,u,c,f;t<e.length;){for(f=li(e[t]).split("-"),a=f.length,u=li(e[t+1]),u=u?u.split("-"):null;a>0;){if(c=Xt(f.slice(0,a).join("-")),c)return c;if(u&&u.length>=a&&$a(f,u)>=a-1)break;a--}t++}return Ot}function Ga(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Xt(e){var t=null,a;if(H[e]===void 0&&n&&n.exports&&Ga(e))try{t=Ot._abbr,a=Qi,a("./locale/"+e),xe(t)}catch{H[e]=null}return H[e]}function xe(e,t){var a;return e&&(m(t)?a=_e(e):a=Fn(e,t),a?Ot=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ot._abbr}function Fn(e,t){if(t!==null){var a,u=ui;if(t.abbr=e,H[e]!=null)Xe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),u=H[e]._config;else if(t.parentLocale!=null)if(H[t.parentLocale]!=null)u=H[t.parentLocale]._config;else if(a=Xt(t.parentLocale),a!=null)u=a._config;else return Dt[t.parentLocale]||(Dt[t.parentLocale]=[]),Dt[t.parentLocale].push({name:e,config:t}),null;return H[e]=new vt(gt(u,t)),Dt[e]&&Dt[e].forEach(function(c){Fn(c.name,c.config)}),xe(e),H[e]}else return delete H[e],null}function za(e,t){if(t!=null){var a,u,c=ui;H[e]!=null&&H[e].parentLocale!=null?H[e].set(gt(H[e]._config,t)):(u=Xt(e),u!=null&&(c=u._config),t=gt(c,t),u==null&&(t.abbr=e),a=new vt(t),a.parentLocale=H[e],H[e]=a),xe(e)}else H[e]!=null&&(H[e].parentLocale!=null?(H[e]=H[e].parentLocale,e===xe()&&xe(e)):H[e]!=null&&delete H[e]);return H[e]}function _e(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ot;if(!l(e)){if(t=Xt(e),t)return t;e=[e]}return Ba(e)}function qa(){return yt(H)}function Ln(e){var t,a=e._a;return a&&T(e).overflow===-2&&(t=a[ye]<0||a[ye]>11?ye:a[me]<1||a[me]>Yn(a[Q],a[ye])?me:a[K]<0||a[K]>24||a[K]===24&&(a[ce]!==0||a[be]!==0||a[Ae]!==0)?K:a[ce]<0||a[ce]>59?ce:a[be]<0||a[be]>59?be:a[Ae]<0||a[Ae]>999?Ae:-1,T(e)._overflowDayOfYear&&(t<Q||t>me)&&(t=me),T(e)._overflowWeeks&&t===-1&&(t=Js),T(e)._overflowWeekday&&t===-1&&(t=Qs),T(e).overflow=t),e}var Ka=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Za=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xa=/Z|[+-]\d\d(?::?\d\d)?/,Jt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Wn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ja=/^\/?Date\((-?\d+)/i,Qa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,eo={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ci(e){var t,a,u=e._i,c=Ka.exec(u)||Za.exec(u),f,p,_,M,C=Jt.length,ne=Wn.length;if(c){for(T(e).iso=!0,t=0,a=C;t<a;t++)if(Jt[t][1].exec(c[1])){p=Jt[t][0],f=Jt[t][2]!==!1;break}if(p==null){e._isValid=!1;return}if(c[3]){for(t=0,a=ne;t<a;t++)if(Wn[t][1].exec(c[3])){_=(c[2]||" ")+Wn[t][0];break}if(_==null){e._isValid=!1;return}}if(!f&&_!=null){e._isValid=!1;return}if(c[4])if(Xa.exec(c[4]))M="Z";else{e._isValid=!1;return}e._f=p+(_||"")+(M||""),Vn(e)}else e._isValid=!1}function to(e,t,a,u,c,f){var p=[no(e),Qr.indexOf(t),parseInt(a,10),parseInt(u,10),parseInt(c,10)];return f&&p.push(parseInt(f,10)),p}function no(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ro(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function io(e,t,a){if(e){var u=si.indexOf(e),c=new Date(t[0],t[1],t[2]).getDay();if(u!==c)return T(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function so(e,t,a){if(e)return eo[e];if(t)return 0;var u=parseInt(a,10),c=u%100,f=(u-c)/100;return f*60+c}function fi(e){var t=Qa.exec(ro(e._i)),a;if(t){if(a=to(t[4],t[3],t[2],t[5],t[6],t[7]),!io(t[1],a,e))return;e._a=a,e._tzm=so(t[8],t[9],t[10]),e._d=Tt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),T(e).rfc2822=!0}else e._isValid=!1}function ao(e){var t=Ja.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ci(e),e._isValid===!1)delete e._isValid;else return;if(fi(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:s.createFromInputFallback(e)}s.createFromInputFallback=J("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function nt(e,t,a){return e??t??a}function oo(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Hn(e){var t,a,u=[],c,f,p;if(!e._d){for(c=oo(e),e._w&&e._a[me]==null&&e._a[ye]==null&&uo(e),e._dayOfYear!=null&&(p=nt(e._a[Q],c[Q]),(e._dayOfYear>_t(p)||e._dayOfYear===0)&&(T(e)._overflowDayOfYear=!0),a=Tt(p,0,e._dayOfYear),e._a[ye]=a.getUTCMonth(),e._a[me]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=u[t]=c[t];for(;t<7;t++)e._a[t]=u[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[K]===24&&e._a[ce]===0&&e._a[be]===0&&e._a[Ae]===0&&(e._nextDay=!0,e._a[K]=0),e._d=(e._useUTC?Tt:pa).apply(null,u),f=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[K]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==f&&(T(e).weekdayMismatch=!0)}}function uo(e){var t,a,u,c,f,p,_,M,C;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(f=1,p=4,a=nt(t.GG,e._a[Q],kt(W(),1,4).year),u=nt(t.W,1),c=nt(t.E,1),(c<1||c>7)&&(M=!0)):(f=e._locale._week.dow,p=e._locale._week.doy,C=kt(W(),f,p),a=nt(t.gg,e._a[Q],C.year),u=nt(t.w,C.week),t.d!=null?(c=t.d,(c<0||c>6)&&(M=!0)):t.e!=null?(c=t.e+f,(t.e<0||t.e>6)&&(M=!0)):c=f),u<1||u>we(a,f,p)?T(e)._overflowWeeks=!0:M!=null?T(e)._overflowWeekday=!0:(_=ii(a,u,c,f,p),e._a[Q]=_.year,e._dayOfYear=_.dayOfYear)}s.ISO_8601=function(){},s.RFC_2822=function(){};function Vn(e){if(e._f===s.ISO_8601){ci(e);return}if(e._f===s.RFC_2822){fi(e);return}e._a=[],T(e).empty=!0;var t=""+e._i,a,u,c,f,p,_=t.length,M=0,C,ne;for(c=Br(e._f,e._locale).match(Mn)||[],ne=c.length,a=0;a<ne;a++)f=c[a],u=(t.match(Ks(f,e))||[])[0],u&&(p=t.substr(0,t.indexOf(u)),p.length>0&&T(e).unusedInput.push(p),t=t.slice(t.indexOf(u)+u.length),M+=u.length),Je[f]?(u?T(e).empty=!1:T(e).unusedTokens.push(f),Xs(f,u,e)):e._strict&&!u&&T(e).unusedTokens.push(f);T(e).charsLeftOver=_-M,t.length>0&&T(e).unusedInput.push(t),e._a[K]<=12&&T(e).bigHour===!0&&e._a[K]>0&&(T(e).bigHour=void 0),T(e).parsedDateParts=e._a.slice(0),T(e).meridiem=e._meridiem,e._a[K]=lo(e._locale,e._a[K],e._meridiem),C=T(e).era,C!==null&&(e._a[Q]=e._locale.erasConvertYear(C,e._a[Q])),Hn(e),Ln(e)}function lo(e,t,a){var u;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(u=e.isPM(a),u&&t<12&&(t+=12),!u&&t===12&&(t=0)),t)}function co(e){var t,a,u,c,f,p,_=!1,M=e._f.length;if(M===0){T(e).invalidFormat=!0,e._d=new Date(NaN);return}for(c=0;c<M;c++)f=0,p=!1,t=Re({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[c],Vn(t),z(t)&&(p=!0),f+=T(t).charsLeftOver,f+=T(t).unusedTokens.length*10,T(t).score=f,_?f<u&&(u=f,a=t):(u==null||f<u||p)&&(u=f,a=t,p&&(_=!0));w(e,a||t)}function fo(e){if(!e._d){var t=Nn(e._i),a=t.day===void 0?t.date:t.day;e._a=O([t.year,t.month,a,t.hour,t.minute,t.second,t.millisecond],function(u){return u&&parseInt(u,10)}),Hn(e)}}function ho(e){var t=new le(Ln(di(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function di(e){var t=e._i,a=e._f;return e._locale=e._locale||_e(e._l),t===null||a===void 0&&t===""?q({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),te(t)?new le(Ln(t)):(I(t)?e._d=t:l(a)?co(e):a?Vn(e):po(e),z(e)||(e._d=null),e))}function po(e){var t=e._i;m(t)?e._d=new Date(s.now()):I(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ao(e):l(t)?(e._a=O(t.slice(0),function(a){return parseInt(a,10)}),Hn(e)):d(t)?fo(e):b(t)?e._d=new Date(t):s.createFromInputFallback(e)}function hi(e,t,a,u,c){var f={};return(t===!0||t===!1)&&(u=t,t=void 0),(a===!0||a===!1)&&(u=a,a=void 0),(d(e)&&v(e)||l(e)&&e.length===0)&&(e=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=c,f._l=a,f._i=e,f._f=t,f._strict=u,ho(f)}function W(e,t,a,u){return hi(e,t,a,u,!1)}var mo=J("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=W.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:q()}),go=J("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=W.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:q()});function pi(e,t){var a,u;if(t.length===1&&l(t[0])&&(t=t[0]),!t.length)return W();for(a=t[0],u=1;u<t.length;++u)(!t[u].isValid()||t[u][e](a))&&(a=t[u]);return a}function vo(){var e=[].slice.call(arguments,0);return pi("isBefore",e)}function yo(){var e=[].slice.call(arguments,0);return pi("isAfter",e)}var bo=function(){return Date.now?Date.now():+new Date},Mt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function wo(e){var t,a=!1,u,c=Mt.length;for(t in e)if(h(e,t)&&!(B.call(Mt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(u=0;u<c;++u)if(e[Mt[u]]){if(a)return!1;parseFloat(e[Mt[u]])!==P(e[Mt[u]])&&(a=!0)}return!0}function _o(){return this._isValid}function So(){return fe(NaN)}function Qt(e){var t=Nn(e),a=t.year||0,u=t.quarter||0,c=t.month||0,f=t.week||t.isoWeek||0,p=t.day||0,_=t.hour||0,M=t.minute||0,C=t.second||0,ne=t.millisecond||0;this._isValid=wo(t),this._milliseconds=+ne+C*1e3+M*6e4+_*1e3*60*60,this._days=+p+f*7,this._months=+c+u*3+a*12,this._data={},this._locale=_e(),this._bubble()}function en(e){return e instanceof Qt}function Un(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function To(e,t,a){var u=Math.min(e.length,t.length),c=Math.abs(e.length-t.length),f=0,p;for(p=0;p<u;p++)(a&&e[p]!==t[p]||!a&&P(e[p])!==P(t[p]))&&f++;return f+c}function mi(e,t){D(e,0,0,function(){var a=this.utcOffset(),u="+";return a<0&&(a=-a,u="-"),u+pe(~~(a/60),2)+t+pe(~~a%60,2)})}mi("Z",":"),mi("ZZ",""),S("Z",zt),S("ZZ",zt),A(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=$n(zt,e)});var ko=/([\+\-]|\d\d)/gi;function $n(e,t){var a=(t||"").match(e),u,c,f;return a===null?null:(u=a[a.length-1]||[],c=(u+"").match(ko)||["-",0,0],f=+(c[1]*60)+P(c[2]),f===0?0:c[0]==="+"?f:-f)}function Bn(e,t){var a,u;return t._isUTC?(a=t.clone(),u=(te(e)||I(e)?e.valueOf():W(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+u),s.updateOffset(a,!1),a):W(e).local()}function Gn(e){return-Math.round(e._d.getTimezoneOffset())}s.updateOffset=function(){};function Do(e,t,a){var u=this._offset||0,c;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=$n(zt,e),e===null)return this}else Math.abs(e)<16&&!a&&(e=e*60);return!this._isUTC&&t&&(c=Gn(this)),this._offset=e,this._isUTC=!0,c!=null&&this.add(c,"m"),u!==e&&(!t||this._changeInProgress?bi(this,fe(e-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?u:Gn(this)}function Oo(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Mo(e){return this.utcOffset(0,e)}function xo(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gn(this),"m")),this}function No(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=$n(zs,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Eo(e){return this.isValid()?(e=e?W(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Io(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Po(){if(!m(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Re(e,this),e=di(e),e._a?(t=e._isUTC?E(e._a):W(e._a),this._isDSTShifted=this.isValid()&&To(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Co(){return this.isValid()?!this._isUTC:!1}function Yo(){return this.isValid()?this._isUTC:!1}function gi(){return this.isValid()?this._isUTC&&this._offset===0:!1}var jo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ro=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function fe(e,t){var a=e,u=null,c,f,p;return en(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:b(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(u=jo.exec(e))?(c=u[1]==="-"?-1:1,a={y:0,d:P(u[me])*c,h:P(u[K])*c,m:P(u[ce])*c,s:P(u[be])*c,ms:P(Un(u[Ae]*1e3))*c}):(u=Ro.exec(e))?(c=u[1]==="-"?-1:1,a={y:Fe(u[2],c),M:Fe(u[3],c),w:Fe(u[4],c),d:Fe(u[5],c),h:Fe(u[6],c),m:Fe(u[7],c),s:Fe(u[8],c)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(p=Ao(W(a.from),W(a.to)),a={},a.ms=p.milliseconds,a.M=p.months),f=new Qt(a),en(e)&&h(e,"_locale")&&(f._locale=e._locale),en(e)&&h(e,"_isValid")&&(f._isValid=e._isValid),f}fe.fn=Qt.prototype,fe.invalid=So;function Fe(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function vi(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Ao(e,t){var a;return e.isValid()&&t.isValid()?(t=Bn(t,e),e.isBefore(t)?a=vi(e,t):(a=vi(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function yi(e,t){return function(a,u){var c,f;return u!==null&&!isNaN(+u)&&(Xe(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=a,a=u,u=f),c=fe(a,u),bi(this,c,e),this}}function bi(e,t,a,u){var c=t._milliseconds,f=Un(t._days),p=Un(t._months);e.isValid()&&(u=u??!0,p&&ti(e,St(e,"Month")+p*a),f&&Jr(e,"Date",St(e,"Date")+f*a),c&&e._d.setTime(e._d.valueOf()+c*a),u&&s.updateOffset(e,f||p))}var Fo=yi(1,"add"),Lo=yi(-1,"subtract");function wi(e){return typeof e=="string"||e instanceof String}function Wo(e){return te(e)||I(e)||wi(e)||b(e)||Vo(e)||Ho(e)||e===null||e===void 0}function Ho(e){var t=d(e)&&!v(e),a=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c,f,p=u.length;for(c=0;c<p;c+=1)f=u[c],a=a||h(e,f);return t&&a}function Vo(e){var t=l(e),a=!1;return t&&(a=e.filter(function(u){return!b(u)&&wi(e)}).length===0),t&&a}function Uo(e){var t=d(e)&&!v(e),a=!1,u=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],c,f;for(c=0;c<u.length;c+=1)f=u[c],a=a||h(e,f);return t&&a}function $o(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function Bo(e,t){arguments.length===1&&(arguments[0]?Wo(arguments[0])?(e=arguments[0],t=void 0):Uo(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var a=e||W(),u=Bn(a,this).startOf("day"),c=s.calendarFormat(this,u)||"sameElse",f=t&&($(t[c])?t[c].call(this,a):t[c]);return this.format(f||this.localeData().calendar(c,this,W(a)))}function Go(){return new le(this)}function zo(e,t){var a=te(e)?e:W(e);return this.isValid()&&a.isValid()?(t=ae(t)||"millisecond",t==="millisecond"?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf()):!1}function qo(e,t){var a=te(e)?e:W(e);return this.isValid()&&a.isValid()?(t=ae(t)||"millisecond",t==="millisecond"?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf()):!1}function Ko(e,t,a,u){var c=te(e)?e:W(e),f=te(t)?t:W(t);return this.isValid()&&c.isValid()&&f.isValid()?(u=u||"()",(u[0]==="("?this.isAfter(c,a):!this.isBefore(c,a))&&(u[1]===")"?this.isBefore(f,a):!this.isAfter(f,a))):!1}function Zo(e,t){var a=te(e)?e:W(e),u;return this.isValid()&&a.isValid()?(t=ae(t)||"millisecond",t==="millisecond"?this.valueOf()===a.valueOf():(u=a.valueOf(),this.clone().startOf(t).valueOf()<=u&&u<=this.clone().endOf(t).valueOf())):!1}function Xo(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Jo(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qo(e,t,a){var u,c,f;if(!this.isValid())return NaN;if(u=Bn(e,this),!u.isValid())return NaN;switch(c=(u.utcOffset()-this.utcOffset())*6e4,t=ae(t),t){case"year":f=tn(this,u)/12;break;case"month":f=tn(this,u);break;case"quarter":f=tn(this,u)/3;break;case"second":f=(this-u)/1e3;break;case"minute":f=(this-u)/6e4;break;case"hour":f=(this-u)/36e5;break;case"day":f=(this-u-c)/864e5;break;case"week":f=(this-u-c)/6048e5;break;default:f=this-u}return a?f:oe(f)}function tn(e,t){if(e.date()<t.date())return-tn(t,e);var a=(t.year()-e.year())*12+(t.month()-e.month()),u=e.clone().add(a,"months"),c,f;return t-u<0?(c=e.clone().add(a-1,"months"),f=(t-u)/(u-c)):(c=e.clone().add(a+1,"months"),f=(t-u)/(c-u)),-(a+f)||0}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function eu(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function tu(e){if(!this.isValid())return null;var t=e!==!0,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?Vt(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):$(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Vt(a,"Z")):Vt(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,u,c,f;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',u=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",c="-MM-DD[T]HH:mm:ss.SSS",f=t+'[")]',this.format(a+u+c+f)}function ru(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=Vt(this,e);return this.localeData().postformat(t)}function iu(e,t){return this.isValid()&&(te(e)&&e.isValid()||W(e).isValid())?fe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function su(e){return this.from(W(),e)}function au(e,t){return this.isValid()&&(te(e)&&e.isValid()||W(e).isValid())?fe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ou(e){return this.to(W(),e)}function _i(e){var t;return e===void 0?this._locale._abbr:(t=_e(e),t!=null&&(this._locale=t),this)}var Si=J("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Ti(){return this._locale}var nn=1e3,rt=60*nn,rn=60*rt,ki=(365*400+97)*24*rn;function it(e,t){return(e%t+t)%t}function Di(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-ki:new Date(e,t,a).valueOf()}function Oi(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-ki:Date.UTC(e,t,a)}function uu(e){var t,a;if(e=ae(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Oi:Di,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=it(t+(this._isUTC?0:this.utcOffset()*rt),rn);break;case"minute":t=this._d.valueOf(),t-=it(t,rt);break;case"second":t=this._d.valueOf(),t-=it(t,nn);break}return this._d.setTime(t),s.updateOffset(this,!0),this}function lu(e){var t,a;if(e=ae(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Oi:Di,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=rn-it(t+(this._isUTC?0:this.utcOffset()*rt),rn)-1;break;case"minute":t=this._d.valueOf(),t+=rt-it(t,rt)-1;break;case"second":t=this._d.valueOf(),t+=nn-it(t,nn)-1;break}return this._d.setTime(t),s.updateOffset(this,!0),this}function cu(){return this._d.valueOf()-(this._offset||0)*6e4}function fu(){return Math.floor(this.valueOf()/1e3)}function du(){return new Date(this.valueOf())}function hu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function pu(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function mu(){return this.isValid()?this.toISOString():null}function gu(){return z(this)}function vu(){return w({},T(this))}function yu(){return T(this).overflow}function bu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),S("N",zn),S("NN",zn),S("NNN",zn),S("NNNN",Eu),S("NNNNN",Iu),A(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,u){var c=a._locale.erasParse(e,u,a._strict);c?T(a).era=c:T(a).invalidEra=e}),S("y",Qe),S("yy",Qe),S("yyy",Qe),S("yyyy",Qe),S("yo",Pu),A(["y","yy","yyy","yyyy"],Q),A(["yo"],function(e,t,a,u){var c;a._locale._eraYearOrdinalRegex&&(c=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[Q]=a._locale.eraYearOrdinalParse(e,c):t[Q]=parseInt(e,10)});function wu(e,t){var a,u,c,f=this._eras||_e("en")._eras;for(a=0,u=f.length;a<u;++a){switch(typeof f[a].since){case"string":c=s(f[a].since).startOf("day"),f[a].since=c.valueOf();break}switch(typeof f[a].until){case"undefined":f[a].until=1/0;break;case"string":c=s(f[a].until).startOf("day").valueOf(),f[a].until=c.valueOf();break}}return f}function _u(e,t,a){var u,c,f=this.eras(),p,_,M;for(e=e.toUpperCase(),u=0,c=f.length;u<c;++u)if(p=f[u].name.toUpperCase(),_=f[u].abbr.toUpperCase(),M=f[u].narrow.toUpperCase(),a)switch(t){case"N":case"NN":case"NNN":if(_===e)return f[u];break;case"NNNN":if(p===e)return f[u];break;case"NNNNN":if(M===e)return f[u];break}else if([p,_,M].indexOf(e)>=0)return f[u]}function Su(e,t){var a=e.since<=e.until?1:-1;return t===void 0?s(e.since).year():s(e.since).year()+(t-e.offset)*a}function Tu(){var e,t,a,u=this.localeData().eras();for(e=0,t=u.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),u[e].since<=a&&a<=u[e].until||u[e].until<=a&&a<=u[e].since)return u[e].name;return""}function ku(){var e,t,a,u=this.localeData().eras();for(e=0,t=u.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),u[e].since<=a&&a<=u[e].until||u[e].until<=a&&a<=u[e].since)return u[e].narrow;return""}function Du(){var e,t,a,u=this.localeData().eras();for(e=0,t=u.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),u[e].since<=a&&a<=u[e].until||u[e].until<=a&&a<=u[e].since)return u[e].abbr;return""}function Ou(){var e,t,a,u,c=this.localeData().eras();for(e=0,t=c.length;e<t;++e)if(a=c[e].since<=c[e].until?1:-1,u=this.clone().startOf("day").valueOf(),c[e].since<=u&&u<=c[e].until||c[e].until<=u&&u<=c[e].since)return(this.year()-s(c[e].since).year())*a+c[e].offset;return this.year()}function Mu(e){return h(this,"_erasNameRegex")||qn.call(this),e?this._erasNameRegex:this._erasRegex}function xu(e){return h(this,"_erasAbbrRegex")||qn.call(this),e?this._erasAbbrRegex:this._erasRegex}function Nu(e){return h(this,"_erasNarrowRegex")||qn.call(this),e?this._erasNarrowRegex:this._erasRegex}function zn(e,t){return t.erasAbbrRegex(e)}function Eu(e,t){return t.erasNameRegex(e)}function Iu(e,t){return t.erasNarrowRegex(e)}function Pu(e,t){return t._eraYearOrdinalRegex||Qe}function qn(){var e=[],t=[],a=[],u=[],c,f,p,_,M,C=this.eras();for(c=0,f=C.length;c<f;++c)p=ve(C[c].name),_=ve(C[c].abbr),M=ve(C[c].narrow),t.push(p),e.push(_),a.push(M),u.push(p),u.push(_),u.push(M);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}D(0,["gg",2],0,function(){return this.weekYear()%100}),D(0,["GG",2],0,function(){return this.isoWeekYear()%100});function sn(e,t){D(0,[e,e.length],0,t)}sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),S("G",Gt),S("g",Gt),S("GG",L,ie),S("gg",L,ie),S("GGGG",In,En),S("gggg",In,En),S("GGGGG",Bt,Ut),S("ggggg",Bt,Ut),wt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,u){t[u.substr(0,2)]=P(e)}),wt(["gg","GG"],function(e,t,a,u){t[u]=s.parseTwoDigitYear(e)});function Cu(e){return Mi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yu(e){return Mi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ju(){return we(this.year(),1,4)}function Ru(){return we(this.isoWeekYear(),1,4)}function Au(){var e=this.localeData()._week;return we(this.year(),e.dow,e.doy)}function Fu(){var e=this.localeData()._week;return we(this.weekYear(),e.dow,e.doy)}function Mi(e,t,a,u,c){var f;return e==null?kt(this,u,c).year:(f=we(e,u,c),t>f&&(t=f),Lu.call(this,e,t,a,u,c))}function Lu(e,t,a,u,c){var f=ii(e,t,a,u,c),p=Tt(f.year,0,f.dayOfYear);return this.year(p.getUTCFullYear()),this.month(p.getUTCMonth()),this.date(p.getUTCDate()),this}D("Q",0,"Qo","quarter"),S("Q",zr),A("Q",function(e,t){t[ye]=(P(e)-1)*3});function Wu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}D("D",["DD",2],"Do","date"),S("D",L,et),S("DD",L,ie),S("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),A(["D","DD"],me),A("Do",function(e,t){t[me]=P(e.match(L)[0])});var xi=tt("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear"),S("DDD",$t),S("DDDD",qr),A(["DDD","DDDD"],function(e,t,a){a._dayOfYear=P(e)});function Hu(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}D("m",["mm",2],0,"minute"),S("m",L,Pn),S("mm",L,ie),A(["m","mm"],ce);var Vu=tt("Minutes",!1);D("s",["ss",2],0,"second"),S("s",L,Pn),S("ss",L,ie),A(["s","ss"],be);var Uu=tt("Seconds",!1);D("S",0,0,function(){return~~(this.millisecond()/100)}),D(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,function(){return this.millisecond()*10}),D(0,["SSSSS",5],0,function(){return this.millisecond()*100}),D(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),D(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),D(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),D(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),S("S",$t,zr),S("SS",$t,ie),S("SSS",$t,qr);var Ne,Ni;for(Ne="SSSS";Ne.length<=9;Ne+="S")S(Ne,Qe);function $u(e,t){t[Ae]=P(("0."+e)*1e3)}for(Ne="S";Ne.length<=9;Ne+="S")A(Ne,$u);Ni=tt("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");function Bu(){return this._isUTC?"UTC":""}function Gu(){return this._isUTC?"Coordinated Universal Time":""}var y=le.prototype;y.add=Fo,y.calendar=Bo,y.clone=Go,y.diff=Qo,y.endOf=lu,y.format=ru,y.from=iu,y.fromNow=su,y.to=au,y.toNow=ou,y.get=ta,y.invalidAt=yu,y.isAfter=zo,y.isBefore=qo,y.isBetween=Ko,y.isSame=Zo,y.isSameOrAfter=Xo,y.isSameOrBefore=Jo,y.isValid=gu,y.lang=Si,y.locale=_i,y.localeData=Ti,y.max=go,y.min=mo,y.parsingFlags=vu,y.set=na,y.startOf=uu,y.subtract=Lo,y.toArray=hu,y.toObject=pu,y.toDate=du,y.toISOString=tu,y.inspect=nu,typeof Symbol<"u"&&Symbol.for!=null&&(y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),y.toJSON=mu,y.toString=eu,y.unix=fu,y.valueOf=cu,y.creationData=bu,y.eraName=Tu,y.eraNarrow=ku,y.eraAbbr=Du,y.eraYear=Ou,y.year=Xr,y.isLeapYear=ea,y.weekYear=Cu,y.isoWeekYear=Yu,y.quarter=y.quarters=Wu,y.month=ni,y.daysInMonth=fa,y.week=y.weeks=ba,y.isoWeek=y.isoWeeks=wa,y.weeksInYear=Au,y.weeksInWeekYear=Fu,y.isoWeeksInYear=ju,y.isoWeeksInISOWeekYear=Ru,y.date=xi,y.day=y.days=Ca,y.weekday=Ya,y.isoWeekday=ja,y.dayOfYear=Hu,y.hour=y.hours=Va,y.minute=y.minutes=Vu,y.second=y.seconds=Uu,y.millisecond=y.milliseconds=Ni,y.utcOffset=Do,y.utc=Mo,y.local=xo,y.parseZone=No,y.hasAlignedHourOffset=Eo,y.isDST=Io,y.isLocal=Co,y.isUtcOffset=Yo,y.isUtc=gi,y.isUTC=gi,y.zoneAbbr=Bu,y.zoneName=Gu,y.dates=J("dates accessor is deprecated. Use date instead.",xi),y.months=J("months accessor is deprecated. Use month instead",ni),y.years=J("years accessor is deprecated. Use year instead",Xr),y.zone=J("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Oo),y.isDSTShifted=J("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Po);function zu(e){return W(e*1e3)}function qu(){return W.apply(null,arguments).parseZone()}function Ei(e){return e}var j=vt.prototype;j.calendar=On,j.longDateFormat=Rs,j.invalidDate=Fs,j.ordinal=Hs,j.preparse=Ei,j.postformat=Ei,j.relativeTime=Us,j.pastFuture=$s,j.set=Dn,j.eras=wu,j.erasParse=_u,j.erasConvertYear=Su,j.erasAbbrRegex=xu,j.erasNameRegex=Mu,j.erasNarrowRegex=Nu,j.months=oa,j.monthsShort=ua,j.monthsParse=ca,j.monthsRegex=ha,j.monthsShortRegex=da,j.week=ma,j.firstDayOfYear=ya,j.firstDayOfWeek=va,j.weekdays=xa,j.weekdaysMin=Ea,j.weekdaysShort=Na,j.weekdaysParse=Pa,j.weekdaysRegex=Ra,j.weekdaysShortRegex=Aa,j.weekdaysMinRegex=Fa,j.isPM=Wa,j.meridiem=Ua;function an(e,t,a,u){var c=_e(),f=E().set(u,t);return c[a](f,e)}function Ii(e,t,a){if(b(e)&&(t=e,e=void 0),e=e||"",t!=null)return an(e,t,a,"month");var u,c=[];for(u=0;u<12;u++)c[u]=an(e,u,a,"month");return c}function Kn(e,t,a,u){typeof e=="boolean"?(b(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,b(t)&&(a=t,t=void 0),t=t||"");var c=_e(),f=e?c._week.dow:0,p,_=[];if(a!=null)return an(t,(a+f)%7,u,"day");for(p=0;p<7;p++)_[p]=an(t,(p+f)%7,u,"day");return _}function Ku(e,t){return Ii(e,t,"months")}function Zu(e,t){return Ii(e,t,"monthsShort")}function Xu(e,t,a){return Kn(e,t,a,"weekdays")}function Ju(e,t,a){return Kn(e,t,a,"weekdaysShort")}function Qu(e,t,a){return Kn(e,t,a,"weekdaysMin")}xe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=P(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+a}}),s.lang=J("moment.lang is deprecated. Use moment.locale instead.",xe),s.langData=J("moment.langData is deprecated. Use moment.localeData instead.",_e);var Se=Math.abs;function el(){var e=this._data;return this._milliseconds=Se(this._milliseconds),this._days=Se(this._days),this._months=Se(this._months),e.milliseconds=Se(e.milliseconds),e.seconds=Se(e.seconds),e.minutes=Se(e.minutes),e.hours=Se(e.hours),e.months=Se(e.months),e.years=Se(e.years),this}function Pi(e,t,a,u){var c=fe(t,a);return e._milliseconds+=u*c._milliseconds,e._days+=u*c._days,e._months+=u*c._months,e._bubble()}function tl(e,t){return Pi(this,e,t,1)}function nl(e,t){return Pi(this,e,t,-1)}function Ci(e){return e<0?Math.floor(e):Math.ceil(e)}function rl(){var e=this._milliseconds,t=this._days,a=this._months,u=this._data,c,f,p,_,M;return e>=0&&t>=0&&a>=0||e<=0&&t<=0&&a<=0||(e+=Ci(Zn(a)+t)*864e5,t=0,a=0),u.milliseconds=e%1e3,c=oe(e/1e3),u.seconds=c%60,f=oe(c/60),u.minutes=f%60,p=oe(f/60),u.hours=p%24,t+=oe(p/24),M=oe(Yi(t)),a+=M,t-=Ci(Zn(M)),_=oe(a/12),a%=12,u.days=t,u.months=a,u.years=_,this}function Yi(e){return e*4800/146097}function Zn(e){return e*146097/4800}function il(e){if(!this.isValid())return NaN;var t,a,u=this._milliseconds;if(e=ae(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+u/864e5,a=this._months+Yi(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(Zn(this._months)),e){case"week":return t/7+u/6048e5;case"day":return t+u/864e5;case"hour":return t*24+u/36e5;case"minute":return t*1440+u/6e4;case"second":return t*86400+u/1e3;case"millisecond":return Math.floor(t*864e5)+u;default:throw new Error("Unknown unit "+e)}}function Te(e){return function(){return this.as(e)}}var ji=Te("ms"),sl=Te("s"),al=Te("m"),ol=Te("h"),ul=Te("d"),ll=Te("w"),cl=Te("M"),fl=Te("Q"),dl=Te("y"),hl=ji;function pl(){return fe(this)}function ml(e){return e=ae(e),this.isValid()?this[e+"s"]():NaN}function Le(e){return function(){return this.isValid()?this._data[e]:NaN}}var gl=Le("milliseconds"),vl=Le("seconds"),yl=Le("minutes"),bl=Le("hours"),wl=Le("days"),_l=Le("months"),Sl=Le("years");function Tl(){return oe(this.days()/7)}var ke=Math.round,st={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kl(e,t,a,u,c){return c.relativeTime(t||1,!!a,e,u)}function Dl(e,t,a,u){var c=fe(e).abs(),f=ke(c.as("s")),p=ke(c.as("m")),_=ke(c.as("h")),M=ke(c.as("d")),C=ke(c.as("M")),ne=ke(c.as("w")),De=ke(c.as("y")),Ee=f<=a.ss&&["s",f]||f<a.s&&["ss",f]||p<=1&&["m"]||p<a.m&&["mm",p]||_<=1&&["h"]||_<a.h&&["hh",_]||M<=1&&["d"]||M<a.d&&["dd",M];return a.w!=null&&(Ee=Ee||ne<=1&&["w"]||ne<a.w&&["ww",ne]),Ee=Ee||C<=1&&["M"]||C<a.M&&["MM",C]||De<=1&&["y"]||["yy",De],Ee[2]=t,Ee[3]=+e>0,Ee[4]=u,kl.apply(null,Ee)}function Ol(e){return e===void 0?ke:typeof e=="function"?(ke=e,!0):!1}function Ml(e,t){return st[e]===void 0?!1:t===void 0?st[e]:(st[e]=t,e==="s"&&(st.ss=t-1),!0)}function xl(e,t){if(!this.isValid())return this.localeData().invalidDate();var a=!1,u=st,c,f;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(a=e),typeof t=="object"&&(u=Object.assign({},st,t),t.s!=null&&t.ss==null&&(u.ss=t.s-1)),c=this.localeData(),f=Dl(this,!a,u,c),a&&(f=c.pastFuture(+this,f)),c.postformat(f)}var Xn=Math.abs;function at(e){return(e>0)-(e<0)||+e}function on(){if(!this.isValid())return this.localeData().invalidDate();var e=Xn(this._milliseconds)/1e3,t=Xn(this._days),a=Xn(this._months),u,c,f,p,_=this.asSeconds(),M,C,ne,De;return _?(u=oe(e/60),c=oe(u/60),e%=60,u%=60,f=oe(a/12),a%=12,p=e?e.toFixed(3).replace(/\.?0+$/,""):"",M=_<0?"-":"",C=at(this._months)!==at(_)?"-":"",ne=at(this._days)!==at(_)?"-":"",De=at(this._milliseconds)!==at(_)?"-":"",M+"P"+(f?C+f+"Y":"")+(a?C+a+"M":"")+(t?ne+t+"D":"")+(c||u||e?"T":"")+(c?De+c+"H":"")+(u?De+u+"M":"")+(e?De+p+"S":"")):"P0D"}var Y=Qt.prototype;Y.isValid=_o,Y.abs=el,Y.add=tl,Y.subtract=nl,Y.as=il,Y.asMilliseconds=ji,Y.asSeconds=sl,Y.asMinutes=al,Y.asHours=ol,Y.asDays=ul,Y.asWeeks=ll,Y.asMonths=cl,Y.asQuarters=fl,Y.asYears=dl,Y.valueOf=hl,Y._bubble=rl,Y.clone=pl,Y.get=ml,Y.milliseconds=gl,Y.seconds=vl,Y.minutes=yl,Y.hours=bl,Y.days=wl,Y.weeks=Tl,Y.months=_l,Y.years=Sl,Y.humanize=xl,Y.toISOString=on,Y.toString=on,Y.toJSON=on,Y.locale=_i,Y.localeData=Ti,Y.toIsoString=J("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",on),Y.lang=Si,D("X",0,0,"unix"),D("x",0,0,"valueOf"),S("x",Gt),S("X",qs),A("X",function(e,t,a){a._d=new Date(parseFloat(e)*1e3)}),A("x",function(e,t,a){a._d=new Date(P(e))});//! moment.js
return s.version="2.30.1",o(W),s.fn=y,s.min=vo,s.max=yo,s.now=bo,s.utc=E,s.unix=zu,s.months=Ku,s.isDate=I,s.locale=xe,s.invalid=q,s.duration=fe,s.isMoment=te,s.weekdays=Xu,s.parseZone=qu,s.localeData=_e,s.isDuration=en,s.monthsShort=Zu,s.weekdaysMin=Qu,s.defineLocale=Fn,s.updateLocale=za,s.locales=qa,s.weekdaysShort=Ju,s.normalizeUnits=ae,s.relativeTimeRounding=Ol,s.relativeTimeThreshold=Ml,s.calendarFormat=$o,s.prototype=y,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s})}(Qn)),Qn.exports}(function(n,r){(function(i,s){s(typeof Qi=="function"?_c():i.moment)})(Zi,function(i){//! moment.js locale configuration
var s=i.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(o){return/^ch$/i.test(o)},meridiem:function(o,l,d){return o<12?d?"sa":"SA":d?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(o){return o},week:{dow:1,doy:4}});return s})})();var vr=function(n,r){return vr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i[o]=s[o])},vr(n,r)};function Sc(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");vr(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var re=function(){return re=Object.assign||function(r){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])}return r},re.apply(this,arguments)};function x(n,r,i,s){function o(l){return l instanceof i?l:new i(function(d){d(l)})}return new(i||(i=Promise))(function(l,d){function h(b){try{m(s.next(b))}catch(I){d(I)}}function v(b){try{m(s.throw(b))}catch(I){d(I)}}function m(b){b.done?l(b.value):o(b.value).then(h,v)}m((s=s.apply(n,r||[])).next())})}function N(n,r){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},s,o,l,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=h(0),d.throw=h(1),d.return=h(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(m){return function(b){return v([m,b])}}function v(m){if(s)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(i=0)),i;)try{if(s=1,o&&(l=m[0]&2?o.return:m[0]?o.throw||((l=o.return)&&l.call(o),0):o.next)&&!(l=l.call(o,m[1])).done)return l;switch(o=0,l&&(m=[m[0]&2,l.value]),m[0]){case 0:case 1:l=m;break;case 4:return i.label++,{value:m[1],done:!1};case 5:i.label++,o=m[1],m=[0];continue;case 7:m=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(m[0]===6||m[0]===2)){i=0;continue}if(m[0]===3&&(!l||m[1]>l[0]&&m[1]<l[3])){i.label=m[1];break}if(m[0]===6&&i.label<l[1]){i.label=l[1],l=m;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(m);break}l[2]&&i.ops.pop(),i.trys.pop();continue}m=r.call(n,i)}catch(b){m=[6,b],o=0}finally{s=l=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function Ye(n){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&n[r],s=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function lt(n,r){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),o,l=[],d;try{for(;(r===void 0||r-- >0)&&!(o=s.next()).done;)l.push(o.value)}catch(h){d={error:h}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(d)throw d.error}}return l}function pn(n,r,i){if(i||arguments.length===2)for(var s=0,o=r.length,l;s<o;s++)(l||!(s in r))&&(l||(l=Array.prototype.slice.call(r,0,s)),l[s]=r[s]);return n.concat(l||Array.prototype.slice.call(r))}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Tc(n){return Pt(void 0,n)}function Pt(n,r){if(!(r instanceof Object))return r;switch(r.constructor){case Date:var i=r;return new Date(i.getTime());case Object:n===void 0&&(n={});break;case Array:n=[];break;default:return r}for(var s in r)!r.hasOwnProperty(s)||!kc(s)||(n[s]=Pt(n[s],r[s]));return n}function kc(n){return n!=="__proto__"}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Dc=function(){function n(){var r=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(i,s){r.resolve=i,r.reject=s})}return n.prototype.wrapCallback=function(r){var i=this;return function(s,o){s?i.reject(s):i.resolve(o),typeof r=="function"&&(i.promise.catch(function(){}),r.length===1?r(s):r(s,o))}},n}();function Oc(){try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function Mc(){return typeof self=="object"&&self.self===self}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var xc="FirebaseError",is=function(n){Sc(r,n);function r(i,s,o){var l=n.call(this,s)||this;return l.code=i,l.customData=o,l.name=xc,Object.setPrototypeOf(l,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(l,Rt.prototype.create),l}return r}(Error),Rt=function(){function n(r,i,s){this.service=r,this.serviceName=i,this.errors=s}return n.prototype.create=function(r){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var o=i[0]||{},l=this.service+"/"+r,d=this.errors[r],h=d?Nc(d,o):"Error",v=this.serviceName+": "+h+" ("+l+").",m=new is(l,v,o);return m},n}();function Nc(n,r){return n.replace(Ec,function(i,s){var o=r[s];return o!=null?String(o):"<"+s+"?>"})}var Ec=/\{\$([^}]+)}/g;/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ui(n,r){return Object.prototype.hasOwnProperty.call(n,r)}function Ic(n,r){var i=new Pc(n,r);return i.subscribe.bind(i)}var Pc=function(){function n(r,i){var s=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=i,this.task.then(function(){r(s)}).catch(function(o){s.error(o)})}return n.prototype.next=function(r){this.forEachObserver(function(i){i.next(r)})},n.prototype.error=function(r){this.forEachObserver(function(i){i.error(r)}),this.close(r)},n.prototype.complete=function(){this.forEachObserver(function(r){r.complete()}),this.close()},n.prototype.subscribe=function(r,i,s){var o=this,l;if(r===void 0&&i===void 0&&s===void 0)throw new Error("Missing Observer.");Cc(r,["next","error","complete"])?l=r:l={next:r,error:i,complete:s},l.next===void 0&&(l.next=er),l.error===void 0&&(l.error=er),l.complete===void 0&&(l.complete=er);var d=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{o.finalError?l.error(o.finalError):l.complete()}catch{}}),this.observers.push(l),d},n.prototype.unsubscribeOne=function(r){this.observers===void 0||this.observers[r]===void 0||(delete this.observers[r],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))},n.prototype.forEachObserver=function(r){if(!this.finalized)for(var i=0;i<this.observers.length;i++)this.sendOne(i,r)},n.prototype.sendOne=function(r,i){var s=this;this.task.then(function(){if(s.observers!==void 0&&s.observers[r]!==void 0)try{i(s.observers[r])}catch(o){typeof console<"u"&&console.error&&console.error(o)}})},n.prototype.close=function(r){var i=this;this.finalized||(this.finalized=!0,r!==void 0&&(this.finalError=r),this.task.then(function(){i.observers=void 0,i.onNoObservers=void 0}))},n}();function Cc(n,r){if(typeof n!="object"||n===null)return!1;for(var i=0,s=r;i<s.length;i++){var o=s[i];if(o in n&&typeof n[o]=="function")return!0}return!1}function er(){}var At=function(){function n(r,i,s){this.name=r,this.instanceFactory=i,this.type=s,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return n.prototype.setInstantiationMode=function(r){return this.instantiationMode=r,this},n.prototype.setMultipleInstances=function(r){return this.multipleInstances=r,this},n.prototype.setServiceProps=function(r){return this.serviceProps=r,this},n.prototype.setInstanceCreatedCallback=function(r){return this.onInstanceCreated=r,this},n}();/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var He="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Yc=function(){function n(r,i){this.name=r,this.container=i,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return n.prototype.get=function(r){var i=this.normalizeInstanceIdentifier(r);if(!this.instancesDeferred.has(i)){var s=new Dc;if(this.instancesDeferred.set(i,s),this.isInitialized(i)||this.shouldAutoInitialize())try{var o=this.getOrInitializeService({instanceIdentifier:i});o&&s.resolve(o)}catch{}}return this.instancesDeferred.get(i).promise},n.prototype.getImmediate=function(r){var i,s=this.normalizeInstanceIdentifier(r==null?void 0:r.identifier),o=(i=r==null?void 0:r.optional)!==null&&i!==void 0?i:!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(l){if(o)return null;throw l}else{if(o)return null;throw Error("Service "+this.name+" is not available")}},n.prototype.getComponent=function(){return this.component},n.prototype.setComponent=function(r){var i,s;if(r.name!==this.name)throw Error("Mismatching Component "+r.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=r,!!this.shouldAutoInitialize()){if(Rc(r))try{this.getOrInitializeService({instanceIdentifier:He})}catch{}try{for(var o=Ye(this.instancesDeferred.entries()),l=o.next();!l.done;l=o.next()){var d=lt(l.value,2),h=d[0],v=d[1],m=this.normalizeInstanceIdentifier(h);try{var b=this.getOrInitializeService({instanceIdentifier:m});v.resolve(b)}catch{}}}catch(I){i={error:I}}finally{try{l&&!l.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}},n.prototype.clearInstance=function(r){r===void 0&&(r=He),this.instancesDeferred.delete(r),this.instancesOptions.delete(r),this.instances.delete(r)},n.prototype.delete=function(){return x(this,void 0,void 0,function(){var r;return N(this,function(i){switch(i.label){case 0:return r=Array.from(this.instances.values()),[4,Promise.all(pn(pn([],lt(r.filter(function(s){return"INTERNAL"in s}).map(function(s){return s.INTERNAL.delete()}))),lt(r.filter(function(s){return"_delete"in s}).map(function(s){return s._delete()}))))];case 1:return i.sent(),[2]}})})},n.prototype.isComponentSet=function(){return this.component!=null},n.prototype.isInitialized=function(r){return r===void 0&&(r=He),this.instances.has(r)},n.prototype.getOptions=function(r){return r===void 0&&(r=He),this.instancesOptions.get(r)||{}},n.prototype.initialize=function(r){var i,s;r===void 0&&(r={});var o=r.options,l=o===void 0?{}:o,d=this.normalizeInstanceIdentifier(r.instanceIdentifier);if(this.isInitialized(d))throw Error(this.name+"("+d+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var h=this.getOrInitializeService({instanceIdentifier:d,options:l});try{for(var v=Ye(this.instancesDeferred.entries()),m=v.next();!m.done;m=v.next()){var b=lt(m.value,2),I=b[0],O=b[1],w=this.normalizeInstanceIdentifier(I);d===w&&O.resolve(h)}}catch(E){i={error:E}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return h},n.prototype.onInit=function(r,i){var s,o=this.normalizeInstanceIdentifier(i),l=(s=this.onInitCallbacks.get(o))!==null&&s!==void 0?s:new Set;l.add(r),this.onInitCallbacks.set(o,l);var d=this.instances.get(o);return d&&r(d,o),function(){l.delete(r)}},n.prototype.invokeOnInitCallbacks=function(r,i){var s,o,l=this.onInitCallbacks.get(i);if(l)try{for(var d=Ye(l),h=d.next();!h.done;h=d.next()){var v=h.value;try{v(r,i)}catch{}}}catch(m){s={error:m}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(s)throw s.error}}},n.prototype.getOrInitializeService=function(r){var i=r.instanceIdentifier,s=r.options,o=s===void 0?{}:s,l=this.instances.get(i);if(!l&&this.component&&(l=this.component.instanceFactory(this.container,{instanceIdentifier:jc(i),options:o}),this.instances.set(i,l),this.instancesOptions.set(i,o),this.invokeOnInitCallbacks(l,i),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,i,l)}catch{}return l||null},n.prototype.normalizeInstanceIdentifier=function(r){return r===void 0&&(r=He),this.component?this.component.multipleInstances?r:He:r},n.prototype.shouldAutoInitialize=function(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"},n}();function jc(n){return n===He?void 0:n}function Rc(n){return n.instantiationMode==="EAGER"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ac=function(){function n(r){this.name=r,this.providers=new Map}return n.prototype.addComponent=function(r){var i=this.getProvider(r.name);if(i.isComponentSet())throw new Error("Component "+r.name+" has already been registered with "+this.name);i.setComponent(r)},n.prototype.addOrOverwriteComponent=function(r){var i=this.getProvider(r.name);i.isComponentSet()&&this.providers.delete(r.name),this.addComponent(r)},n.prototype.getProvider=function(r){if(this.providers.has(r))return this.providers.get(r);var i=new Yc(r,this);return this.providers.set(r,i),i},n.prototype.getProviders=function(){return Array.from(this.providers.values())},n}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function de(){for(var n=0,r=0,i=arguments.length;r<i;r++)n+=arguments[r].length;for(var s=Array(n),o=0,r=0;r<i;r++)for(var l=arguments[r],d=0,h=l.length;d<h;d++,o++)s[o]=l[d];return s}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var We,Nr=[],F;(function(n){n[n.DEBUG=0]="DEBUG",n[n.VERBOSE=1]="VERBOSE",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.SILENT=5]="SILENT"})(F||(F={}));var ss={debug:F.DEBUG,verbose:F.VERBOSE,info:F.INFO,warn:F.WARN,error:F.ERROR,silent:F.SILENT},Fc=F.INFO,Lc=(We={},We[F.DEBUG]="log",We[F.VERBOSE]="log",We[F.INFO]="info",We[F.WARN]="warn",We[F.ERROR]="error",We),Wc=function(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];if(!(r<n.logLevel)){var o=new Date().toISOString(),l=Lc[r];if(l)console[l].apply(console,de(["["+o+"]  "+n.name+":"],i));else throw new Error("Attempted to log a message with an invalid logType (value: "+r+")")}},Hc=function(){function n(r){this.name=r,this._logLevel=Fc,this._logHandler=Wc,this._userLogHandler=null,Nr.push(this)}return Object.defineProperty(n.prototype,"logLevel",{get:function(){return this._logLevel},set:function(r){if(!(r in F))throw new TypeError('Invalid value "'+r+'" assigned to `logLevel`');this._logLevel=r},enumerable:!1,configurable:!0}),n.prototype.setLogLevel=function(r){this._logLevel=typeof r=="string"?ss[r]:r},Object.defineProperty(n.prototype,"logHandler",{get:function(){return this._logHandler},set:function(r){if(typeof r!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=r},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(r){this._userLogHandler=r},enumerable:!1,configurable:!0}),n.prototype.debug=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._userLogHandler&&this._userLogHandler.apply(this,de([this,F.DEBUG],r)),this._logHandler.apply(this,de([this,F.DEBUG],r))},n.prototype.log=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._userLogHandler&&this._userLogHandler.apply(this,de([this,F.VERBOSE],r)),this._logHandler.apply(this,de([this,F.VERBOSE],r))},n.prototype.info=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._userLogHandler&&this._userLogHandler.apply(this,de([this,F.INFO],r)),this._logHandler.apply(this,de([this,F.INFO],r))},n.prototype.warn=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._userLogHandler&&this._userLogHandler.apply(this,de([this,F.WARN],r)),this._logHandler.apply(this,de([this,F.WARN],r))},n.prototype.error=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._userLogHandler&&this._userLogHandler.apply(this,de([this,F.ERROR],r)),this._logHandler.apply(this,de([this,F.ERROR],r))},n}();function Vc(n){Nr.forEach(function(r){r.setLogLevel(n)})}function Uc(n,r){for(var i=function(d){var h=null;r&&r.level&&(h=ss[r.level]),n===null?d.userLogHandler=null:d.userLogHandler=function(v,m){for(var b=[],I=2;I<arguments.length;I++)b[I-2]=arguments[I];var O=b.map(function(w){if(w==null)return null;if(typeof w=="string")return w;if(typeof w=="number"||typeof w=="boolean")return w.toString();if(w instanceof Error)return w.message;try{return JSON.stringify(w)}catch{return null}}).filter(function(w){return w}).join(" ");m>=(h??v.logLevel)&&n({level:F[m].toLowerCase(),message:O,args:b,type:v.name})}},s=0,o=Nr;s<o.length;s++){var l=o[s];i(l)}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ie,$c=(Ie={},Ie["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",Ie["bad-app-name"]="Illegal App name: '{$appName}",Ie["duplicate-app"]="Firebase App named '{$appName}' already exists",Ie["app-deleted"]="Firebase App named '{$appName}' already deleted",Ie["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",Ie["invalid-log-argument"]="First argument to `onLog` must be null or a function.",Ie),ut=new Rt("app","Firebase",$c),as="@firebase/app",Bc="0.6.30",Gc="@firebase/analytics",zc="@firebase/app-check",qc="@firebase/auth",Kc="@firebase/database",Zc="@firebase/functions",Xc="@firebase/installations",Jc="@firebase/messaging",Qc="@firebase/performance",ef="@firebase/remote-config",tf="@firebase/storage",nf="@firebase/firestore",rf="firebase-wrapper";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ee,mn="[DEFAULT]",sf=(ee={},ee[as]="fire-core",ee[Gc]="fire-analytics",ee[zc]="fire-app-check",ee[qc]="fire-auth",ee[Kc]="fire-rtdb",ee[Zc]="fire-fn",ee[Xc]="fire-iid",ee[Jc]="fire-fcm",ee[Qc]="fire-perf",ee[ef]="fire-rc",ee[tf]="fire-gcs",ee[nf]="fire-fst",ee["fire-js"]="fire-js",ee[rf]="fire-js-all",ee);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var dt=new Hc("@firebase/app");/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ln=function(){function n(r,i,s){var o=this;this.firebase_=s,this.isDeleted_=!1,this.name_=i.name,this.automaticDataCollectionEnabled_=i.automaticDataCollectionEnabled||!1,this.options_=Tc(r),this.container=new Ac(i.name),this._addComponent(new At("app",function(){return o},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(l){return o._addComponent(l)})}return Object.defineProperty(n.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(r){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=r},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),n.prototype.delete=function(){var r=this;return new Promise(function(i){r.checkDestroyed_(),i()}).then(function(){return r.firebase_.INTERNAL.removeApp(r.name_),Promise.all(r.container.getProviders().map(function(i){return i.delete()}))}).then(function(){r.isDeleted_=!0})},n.prototype._getService=function(r,i){var s;i===void 0&&(i=mn),this.checkDestroyed_();var o=this.container.getProvider(r);return!o.isInitialized()&&((s=o.getComponent())===null||s===void 0?void 0:s.instantiationMode)==="EXPLICIT"&&o.initialize(),o.getImmediate({identifier:i})},n.prototype._removeServiceInstance=function(r,i){i===void 0&&(i=mn),this.container.getProvider(r).clearInstance(i)},n.prototype._addComponent=function(r){try{this.container.addComponent(r)}catch(i){dt.debug("Component "+r.name+" failed to register with FirebaseApp "+this.name,i)}},n.prototype._addOrOverwriteComponent=function(r){this.container.addOrOverwriteComponent(r)},n.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},n.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw ut.create("app-deleted",{appName:this.name_})},n}();ln.prototype.name&&ln.prototype.options||ln.prototype.delete||console.log("dc");var af="8.10.0";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function of(n){var r={},i=new Map,s={__esModule:!0,initializeApp:d,app:l,registerVersion:m,setLogLevel:Vc,onLog:b,apps:null,SDK_VERSION:af,INTERNAL:{registerComponent:v,removeApp:o,components:i,useAsService:I}};s.default=s,Object.defineProperty(s,"apps",{get:h});function o(O){delete r[O]}function l(O){if(O=O||mn,!Ui(r,O))throw ut.create("no-app",{appName:O});return r[O]}l.App=n;function d(O,w){if(w===void 0&&(w={}),typeof w!="object"||w===null){var E=w;w={name:E}}var G=w;G.name===void 0&&(G.name=mn);var T=G.name;if(typeof T!="string"||!T)throw ut.create("bad-app-name",{appName:String(T)});if(Ui(r,T))throw ut.create("duplicate-app",{appName:T});var X=new n(O,G,s);return r[T]=X,X}function h(){return Object.keys(r).map(function(O){return r[O]})}function v(O){var w=O.name;if(i.has(w))return dt.debug("There were multiple attempts to register component "+w+"."),O.type==="PUBLIC"?s[w]:null;if(i.set(w,O),O.type==="PUBLIC"){var E=function(z){if(z===void 0&&(z=l()),typeof z[w]!="function")throw ut.create("invalid-app-argument",{appName:w});return z[w]()};O.serviceProps!==void 0&&Pt(E,O.serviceProps),s[w]=E,n.prototype[w]=function(){for(var z=[],q=0;q<arguments.length;q++)z[q]=arguments[q];var he=this._getService.bind(this,w);return he.apply(this,O.multipleInstances?z:[])}}for(var G=0,T=Object.keys(r);G<T.length;G++){var X=T[G];r[X]._addComponent(O)}return O.type==="PUBLIC"?s[w]:null}function m(O,w,E){var G,T=(G=sf[O])!==null&&G!==void 0?G:O;E&&(T+="-"+E);var X=T.match(/\s|\//),z=w.match(/\s|\//);if(X||z){var q=['Unable to register library "'+T+'" with version "'+w+'":'];X&&q.push('library name "'+T+'" contains illegal characters (whitespace or "/")'),X&&z&&q.push("and"),z&&q.push('version name "'+w+'" contains illegal characters (whitespace or "/")'),dt.warn(q.join(" "));return}v(new At(T+"-version",function(){return{library:T,version:w}},"VERSION"))}function b(O,w){if(O!==null&&typeof O!="function")throw ut.create("invalid-log-argument");Uc(O,w)}function I(O,w){if(w==="serverAuth")return null;var E=w;return E}return s}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function os(){var n=of(ln);n.INTERNAL=re(re({},n.INTERNAL),{createFirebaseNamespace:os,extendNamespace:r,createSubscribe:Ic,ErrorFactory:Rt,deepExtend:Pt});function r(i){Pt(n,i)}return n}var Er=os();/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var uf=function(){function n(r){this.container=r}return n.prototype.getPlatformInfoString=function(){var r=this.container.getProviders();return r.map(function(i){if(lf(i)){var s=i.getImmediate();return s.library+"/"+s.version}else return null}).filter(function(i){return i}).join(" ")},n}();function lf(n){var r=n.getComponent();return(r==null?void 0:r.type)==="VERSION"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function cf(n,r){n.INTERNAL.registerComponent(new At("platform-logger",function(i){return new uf(i)},"PRIVATE")),n.registerVersion(as,Bc,r),n.registerVersion("fire-js","")}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */if(Mc()&&self.firebase!==void 0){dt.warn(`
    Warning: Firebase is already defined in the global scope. Please make sure
    Firebase library is only loaded once.
  `);var $i=self.firebase.SDK_VERSION;$i&&$i.indexOf("LITE")>=0&&dt.warn(`
    Warning: You are trying to load Firebase while using Firebase Performance standalone script.
    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.
    `)}var ff=Er.initializeApp;Er.initializeApp=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Oc()&&dt.warn(`
      Warning: This is a browser-targeted Firebase bundle but it appears it is being
      run in a Node environment.  If running in a Node environment, make sure you
      are using the bundle specified by the "main" field in package.json.
      
      If you are using Webpack, you can specify "main" as the first item in
      "resolve.mainFields":
      https://webpack.js.org/configuration/resolve/#resolvemainfields
      
      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"
      as the first item in "mainFields", e.g. ['main', 'module'].
      https://github.com/rollup/@rollup/plugin-node-resolve
      `),ff.apply(void 0,n)};var ze=Er;cf(ze);var df="firebase",us="8.10.1";/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */ze.registerVersion(df,us,"app");ze.SDK_VERSION=us;function hf(n){return Array.prototype.slice.call(n)}function ls(n){return new Promise(function(r,i){n.onsuccess=function(){r(n.result)},n.onerror=function(){i(n.error)}})}function _n(n,r,i){var s,o=new Promise(function(l,d){s=n[r].apply(n,i),ls(s).then(l,d)});return o.request=s,o}function pf(n,r,i){var s=_n(n,r,i);return s.then(function(o){if(o)return new Ct(o,s.request)})}function pt(n,r,i){i.forEach(function(s){Object.defineProperty(n.prototype,s,{get:function(){return this[r][s]},set:function(o){this[r][s]=o}})})}function Ir(n,r,i,s){s.forEach(function(o){o in i.prototype&&(n.prototype[o]=function(){return _n(this[r],o,arguments)})})}function Sn(n,r,i,s){s.forEach(function(o){o in i.prototype&&(n.prototype[o]=function(){return this[r][o].apply(this[r],arguments)})})}function cs(n,r,i,s){s.forEach(function(o){o in i.prototype&&(n.prototype[o]=function(){return pf(this[r],o,arguments)})})}function qe(n){this._index=n}pt(qe,"_index",["name","keyPath","multiEntry","unique"]);Ir(qe,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]);cs(qe,"_index",IDBIndex,["openCursor","openKeyCursor"]);function Ct(n,r){this._cursor=n,this._request=r}pt(Ct,"_cursor",["direction","key","primaryKey","value"]);Ir(Ct,"_cursor",IDBCursor,["update","delete"]);["advance","continue","continuePrimaryKey"].forEach(function(n){n in IDBCursor.prototype&&(Ct.prototype[n]=function(){var r=this,i=arguments;return Promise.resolve().then(function(){return r._cursor[n].apply(r._cursor,i),ls(r._request).then(function(s){if(s)return new Ct(s,r._request)})})})});function ge(n){this._store=n}ge.prototype.createIndex=function(){return new qe(this._store.createIndex.apply(this._store,arguments))};ge.prototype.index=function(){return new qe(this._store.index.apply(this._store,arguments))};pt(ge,"_store",["name","keyPath","indexNames","autoIncrement"]);Ir(ge,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]);cs(ge,"_store",IDBObjectStore,["openCursor","openKeyCursor"]);Sn(ge,"_store",IDBObjectStore,["deleteIndex"]);function Ft(n){this._tx=n,this.complete=new Promise(function(r,i){n.oncomplete=function(){r()},n.onerror=function(){i(n.error)},n.onabort=function(){i(n.error)}})}Ft.prototype.objectStore=function(){return new ge(this._tx.objectStore.apply(this._tx,arguments))};pt(Ft,"_tx",["objectStoreNames","mode"]);Sn(Ft,"_tx",IDBTransaction,["abort"]);function Tn(n,r,i){this._db=n,this.oldVersion=r,this.transaction=new Ft(i)}Tn.prototype.createObjectStore=function(){return new ge(this._db.createObjectStore.apply(this._db,arguments))};pt(Tn,"_db",["name","version","objectStoreNames"]);Sn(Tn,"_db",IDBDatabase,["deleteObjectStore","close"]);function kn(n){this._db=n}kn.prototype.transaction=function(){return new Ft(this._db.transaction.apply(this._db,arguments))};pt(kn,"_db",["name","version","objectStoreNames"]);Sn(kn,"_db",IDBDatabase,["close"]);["openCursor","openKeyCursor"].forEach(function(n){[ge,qe].forEach(function(r){n in r.prototype&&(r.prototype[n.replace("open","iterate")]=function(){var i=hf(arguments),s=i[i.length-1],o=this._store||this._index,l=o[n].apply(o,i.slice(0,-1));l.onsuccess=function(){s(l.result)}})})});[qe,ge].forEach(function(n){n.prototype.getAll||(n.prototype.getAll=function(r,i){var s=this,o=[];return new Promise(function(l){s.iterateCursor(r,function(d){if(!d){l(o);return}if(o.push(d.value),i!==void 0&&o.length==i){l(o);return}d.continue()})})})});function Pr(n,r,i){var s=_n(indexedDB,"open",[n,r]),o=s.request;return o&&(o.onupgradeneeded=function(l){i&&i(new Tn(o.result,l.oldVersion,o.transaction))}),s.then(function(l){return new kn(l)})}function tr(n){return _n(indexedDB,"deleteDatabase",[n])}var mf="@firebase/installations",fs="0.4.32";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ds=1e4,hs="w:"+fs,ps="FIS_v2",gf="https://firebaseinstallations.googleapis.com/v1",vf=60*60*1e3,yf="installations",bf="Installations";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Pe,wf=(Pe={},Pe["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',Pe["not-registered"]="Firebase Installation is not registered.",Pe["installation-not-found"]="Firebase Installation not found.",Pe["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',Pe["app-offline"]="Could not process request. Application offline.",Pe["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",Pe),Me=new Rt(yf,bf,wf);function ms(n){return n instanceof is&&n.code.includes("request-failed")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Cr(n){var r=n.projectId;return gf+"/projects/"+r+"/installations"}function gs(n){return{token:n.token,requestStatus:2,expiresIn:_f(n.expiresIn),creationTime:Date.now()}}function Yr(n,r){return x(this,void 0,void 0,function(){var i,s;return N(this,function(o){switch(o.label){case 0:return[4,r.json()];case 1:return i=o.sent(),s=i.error,[2,Me.create("request-failed",{requestName:n,serverCode:s.code,serverMessage:s.message,serverStatus:s.status})]}})})}function vs(n){var r=n.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":r})}function ys(n,r){var i=r.refreshToken,s=vs(n);return s.append("Authorization",Sf(i)),s}function jr(n){return x(this,void 0,void 0,function(){var r;return N(this,function(i){switch(i.label){case 0:return[4,n()];case 1:return r=i.sent(),r.status>=500&&r.status<600?[2,n()]:[2,r]}})})}function _f(n){return Number(n.replace("s","000"))}function Sf(n){return ps+" "+n}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Tf(n,r){var i=r.fid;return x(this,void 0,void 0,function(){var s,o,l,d,h,v,m;return N(this,function(b){switch(b.label){case 0:return s=Cr(n),o=vs(n),l={fid:i,authVersion:ps,appId:n.appId,sdkVersion:hs},d={method:"POST",headers:o,body:JSON.stringify(l)},[4,jr(function(){return fetch(s,d)})];case 1:return h=b.sent(),h.ok?[4,h.json()]:[3,3];case 2:return v=b.sent(),m={fid:v.fid||i,registrationStatus:2,refreshToken:v.refreshToken,authToken:gs(v.authToken)},[2,m];case 3:return[4,Yr("Create Installation",h)];case 4:throw b.sent()}})})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function bs(n){return new Promise(function(r){setTimeout(r,n)})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function kf(n){var r=btoa(String.fromCharCode.apply(String,pn([],lt(n))));return r.replace(/\+/g,"-").replace(/\//g,"_")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Df=/^[cdef][\w-]{21}$/,yr="";function Of(){try{var n=new Uint8Array(17),r=self.crypto||self.msCrypto;r.getRandomValues(n),n[0]=112+n[0]%16;var i=Mf(n);return Df.test(i)?i:yr}catch{return yr}}function Mf(n){var r=kf(n);return r.substr(0,22)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function mt(n){return n.appName+"!"+n.appId}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ht=new Map;function ws(n,r){var i=mt(n);_s(i,r),Ef(i,r)}function xf(n,r){Ss();var i=mt(n),s=ht.get(i);s||(s=new Set,ht.set(i,s)),s.add(r)}function Nf(n,r){var i=mt(n),s=ht.get(i);s&&(s.delete(r),s.size===0&&ht.delete(i),Ts())}function _s(n,r){var i,s,o=ht.get(n);if(o)try{for(var l=Ye(o),d=l.next();!d.done;d=l.next()){var h=d.value;h(r)}}catch(v){i={error:v}}finally{try{d&&!d.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}}function Ef(n,r){var i=Ss();i&&i.postMessage({key:n,fid:r}),Ts()}var Ve=null;function Ss(){return!Ve&&"BroadcastChannel"in self&&(Ve=new BroadcastChannel("[Firebase] FID Change"),Ve.onmessage=function(n){_s(n.data.key,n.data.fid)}),Ve}function Ts(){ht.size===0&&Ve&&(Ve.close(),Ve=null)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var If="firebase-installations-database",Pf=1,$e="firebase-installations-store",nr=null;function Rr(){return nr||(nr=Pr(If,Pf,function(n){switch(n.oldVersion){case 0:n.createObjectStore($e)}})),nr}function gn(n,r){return x(this,void 0,void 0,function(){var i,s,o,l,d;return N(this,function(h){switch(h.label){case 0:return i=mt(n),[4,Rr()];case 1:return s=h.sent(),o=s.transaction($e,"readwrite"),l=o.objectStore($e),[4,l.get(i)];case 2:return d=h.sent(),[4,l.put(r,i)];case 3:return h.sent(),[4,o.complete];case 4:return h.sent(),(!d||d.fid!==r.fid)&&ws(n,r.fid),[2,r]}})})}function Ar(n){return x(this,void 0,void 0,function(){var r,i,s;return N(this,function(o){switch(o.label){case 0:return r=mt(n),[4,Rr()];case 1:return i=o.sent(),s=i.transaction($e,"readwrite"),[4,s.objectStore($e).delete(r)];case 2:return o.sent(),[4,s.complete];case 3:return o.sent(),[2]}})})}function Lt(n,r){return x(this,void 0,void 0,function(){var i,s,o,l,d,h;return N(this,function(v){switch(v.label){case 0:return i=mt(n),[4,Rr()];case 1:return s=v.sent(),o=s.transaction($e,"readwrite"),l=o.objectStore($e),[4,l.get(i)];case 2:return d=v.sent(),h=r(d),h!==void 0?[3,4]:[4,l.delete(i)];case 3:return v.sent(),[3,6];case 4:return[4,l.put(h,i)];case 5:v.sent(),v.label=6;case 6:return[4,o.complete];case 7:return v.sent(),h&&(!d||d.fid!==h.fid)&&ws(n,h.fid),[2,h]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Fr(n){return x(this,void 0,void 0,function(){var r,i,s;return N(this,function(o){switch(o.label){case 0:return[4,Lt(n,function(l){var d=Cf(l),h=Yf(n,d);return r=h.registrationPromise,h.installationEntry})];case 1:return i=o.sent(),i.fid!==yr?[3,3]:(s={},[4,r]);case 2:return[2,(s.installationEntry=o.sent(),s)];case 3:return[2,{installationEntry:i,registrationPromise:r}]}})})}function Cf(n){var r=n||{fid:Of(),registrationStatus:0};return ks(r)}function Yf(n,r){if(r.registrationStatus===0){if(!navigator.onLine){var i=Promise.reject(Me.create("app-offline"));return{installationEntry:r,registrationPromise:i}}var s={fid:r.fid,registrationStatus:1,registrationTime:Date.now()},o=jf(n,s);return{installationEntry:s,registrationPromise:o}}else return r.registrationStatus===1?{installationEntry:r,registrationPromise:Rf(n)}:{installationEntry:r}}function jf(n,r){return x(this,void 0,void 0,function(){var i,s;return N(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,7]),[4,Tf(n,r)];case 1:return i=o.sent(),[2,gn(n,i)];case 2:return s=o.sent(),ms(s)&&s.customData.serverCode===409?[4,Ar(n)]:[3,4];case 3:return o.sent(),[3,6];case 4:return[4,gn(n,{fid:r.fid,registrationStatus:0})];case 5:o.sent(),o.label=6;case 6:throw s;case 7:return[2]}})})}function Rf(n){return x(this,void 0,void 0,function(){var r,i,s,o;return N(this,function(l){switch(l.label){case 0:return[4,Bi(n)];case 1:r=l.sent(),l.label=2;case 2:return r.registrationStatus!==1?[3,5]:[4,bs(100)];case 3:return l.sent(),[4,Bi(n)];case 4:return r=l.sent(),[3,2];case 5:return r.registrationStatus!==0?[3,7]:[4,Fr(n)];case 6:return i=l.sent(),s=i.installationEntry,o=i.registrationPromise,o?[2,o]:[2,s];case 7:return[2,r]}})})}function Bi(n){return Lt(n,function(r){if(!r)throw Me.create("installation-not-found");return ks(r)})}function ks(n){return Af(n)?{fid:n.fid,registrationStatus:0}:n}function Af(n){return n.registrationStatus===1&&n.registrationTime+ds<Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ff(n,r){var i=n.appConfig,s=n.platformLoggerProvider;return x(this,void 0,void 0,function(){var o,l,d,h,v,m,b,I;return N(this,function(O){switch(O.label){case 0:return o=Lf(i,r),l=ys(i,r),d=s.getImmediate({optional:!0}),d&&l.append("x-firebase-client",d.getPlatformInfoString()),h={installation:{sdkVersion:hs}},v={method:"POST",headers:l,body:JSON.stringify(h)},[4,jr(function(){return fetch(o,v)})];case 1:return m=O.sent(),m.ok?[4,m.json()]:[3,3];case 2:return b=O.sent(),I=gs(b),[2,I];case 3:return[4,Yr("Generate Auth Token",m)];case 4:throw O.sent()}})})}function Lf(n,r){var i=r.fid;return Cr(n)+"/"+i+"/authTokens:generate"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Lr(n,r){return r===void 0&&(r=!1),x(this,void 0,void 0,function(){var i,s,o,l;return N(this,function(d){switch(d.label){case 0:return[4,Lt(n.appConfig,function(h){if(!Ds(h))throw Me.create("not-registered");var v=h.authToken;if(!r&&Vf(v))return h;if(v.requestStatus===1)return i=Wf(n,r),h;if(!navigator.onLine)throw Me.create("app-offline");var m=$f(h);return i=Hf(n,m),m})];case 1:return s=d.sent(),i?[4,i]:[3,3];case 2:return l=d.sent(),[3,4];case 3:l=s.authToken,d.label=4;case 4:return o=l,[2,o]}})})}function Wf(n,r){return x(this,void 0,void 0,function(){var i,s;return N(this,function(o){switch(o.label){case 0:return[4,Gi(n.appConfig)];case 1:i=o.sent(),o.label=2;case 2:return i.authToken.requestStatus!==1?[3,5]:[4,bs(100)];case 3:return o.sent(),[4,Gi(n.appConfig)];case 4:return i=o.sent(),[3,2];case 5:return s=i.authToken,s.requestStatus===0?[2,Lr(n,r)]:[2,s]}})})}function Gi(n){return Lt(n,function(r){if(!Ds(r))throw Me.create("not-registered");var i=r.authToken;return Bf(i)?re(re({},r),{authToken:{requestStatus:0}}):r})}function Hf(n,r){return x(this,void 0,void 0,function(){var i,o,s,o;return N(this,function(l){switch(l.label){case 0:return l.trys.push([0,3,,8]),[4,Ff(n,r)];case 1:return i=l.sent(),o=re(re({},r),{authToken:i}),[4,gn(n.appConfig,o)];case 2:return l.sent(),[2,i];case 3:return s=l.sent(),ms(s)&&(s.customData.serverCode===401||s.customData.serverCode===404)?[4,Ar(n.appConfig)]:[3,5];case 4:return l.sent(),[3,7];case 5:return o=re(re({},r),{authToken:{requestStatus:0}}),[4,gn(n.appConfig,o)];case 6:l.sent(),l.label=7;case 7:throw s;case 8:return[2]}})})}function Ds(n){return n!==void 0&&n.registrationStatus===2}function Vf(n){return n.requestStatus===2&&!Uf(n)}function Uf(n){var r=Date.now();return r<n.creationTime||n.creationTime+n.expiresIn<r+vf}function $f(n){var r={requestStatus:1,requestTime:Date.now()};return re(re({},n),{authToken:r})}function Bf(n){return n.requestStatus===1&&n.requestTime+ds<Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Gf(n){return x(this,void 0,void 0,function(){var r,i,s;return N(this,function(o){switch(o.label){case 0:return[4,Fr(n.appConfig)];case 1:return r=o.sent(),i=r.installationEntry,s=r.registrationPromise,s?s.catch(console.error):Lr(n).catch(console.error),[2,i.fid]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function zf(n,r){return r===void 0&&(r=!1),x(this,void 0,void 0,function(){var i;return N(this,function(s){switch(s.label){case 0:return[4,qf(n.appConfig)];case 1:return s.sent(),[4,Lr(n,r)];case 2:return i=s.sent(),[2,i.token]}})})}function qf(n){return x(this,void 0,void 0,function(){var r;return N(this,function(i){switch(i.label){case 0:return[4,Fr(n)];case 1:return r=i.sent().registrationPromise,r?[4,r]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Kf(n,r){return x(this,void 0,void 0,function(){var i,s,o,l;return N(this,function(d){switch(d.label){case 0:return i=Zf(n,r),s=ys(n,r),o={method:"DELETE",headers:s},[4,jr(function(){return fetch(i,o)})];case 1:return l=d.sent(),l.ok?[3,3]:[4,Yr("Delete Installation",l)];case 2:throw d.sent();case 3:return[2]}})})}function Zf(n,r){var i=r.fid;return Cr(n)+"/"+i}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Xf(n){return x(this,void 0,void 0,function(){var r,i;return N(this,function(s){switch(s.label){case 0:return r=n.appConfig,[4,Lt(r,function(o){if(!(o&&o.registrationStatus===0))return o})];case 1:if(i=s.sent(),!i)return[3,6];if(i.registrationStatus!==1)return[3,2];throw Me.create("delete-pending-registration");case 2:if(i.registrationStatus!==2)return[3,6];if(navigator.onLine)return[3,3];throw Me.create("app-offline");case 3:return[4,Kf(r,i)];case 4:return s.sent(),[4,Ar(r)];case 5:s.sent(),s.label=6;case 6:return[2]}})})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Jf(n,r){var i=n.appConfig;return xf(i,r),function(){Nf(i,r)}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Qf(n){var r,i;if(!n||!n.options)throw rr("App Configuration");if(!n.name)throw rr("App Name");var s=["projectId","apiKey","appId"];try{for(var o=Ye(s),l=o.next();!l.done;l=o.next()){var d=l.value;if(!n.options[d])throw rr(d)}}catch(h){r={error:h}}finally{try{l&&!l.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return{appName:n.name,projectId:n.options.projectId,apiKey:n.options.apiKey,appId:n.options.appId}}function rr(n){return Me.create("missing-app-config-values",{valueName:n})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ed(n){var r="installations";n.INTERNAL.registerComponent(new At(r,function(i){var s=i.getProvider("app").getImmediate(),o=Qf(s),l=i.getProvider("platform-logger"),d={appConfig:o,platformLoggerProvider:l},h={app:s,getId:function(){return Gf(d)},getToken:function(v){return zf(d,v)},delete:function(){return Xf(d)},onIdChange:function(v){return Jf(d,v)}};return h},"PUBLIC")),n.registerVersion(mf,fs)}ed(ze);/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Z,td=(Z={},Z["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',Z["only-available-in-window"]="This method is available in a Window context.",Z["only-available-in-sw"]="This method is available in a service worker context.",Z["permission-default"]="The notification permission was not granted and dismissed instead.",Z["permission-blocked"]="The notification permission was not granted and blocked instead.",Z["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",Z["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",Z["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",Z["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",Z["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",Z["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",Z["token-update-no-token"]="FCM returned no token when updating the user to push.",Z["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",Z["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",Z["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",Z["invalid-vapid-key"]="The public VAPID key must be a string.",Z["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",Z),R=new Rt("messaging","Messaging",td);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var nd="/firebase-messaging-sw.js",rd="/firebase-cloud-messaging-push-scope",vn="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",id="https://fcmregistrations.googleapis.com/v1",Os="FCM_MSG",sd="FirebaseMessaging: ",ad="google.c.a.e",Ms="google.c.a.c_id",od="google.c.a.ts",ud="google.c.a.c_l",ld=1e3,cd=3e3;/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */var Be;(function(n){n.PUSH_RECEIVED="push-received",n.NOTIFICATION_CLICKED="notification-clicked"})(Be||(Be={}));/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Oe(n){var r=new Uint8Array(n),i=btoa(String.fromCharCode.apply(String,pn([],lt(r))));return i.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function fd(n){for(var r="=".repeat((4-n.length%4)%4),i=(n+r).replace(/\-/g,"+").replace(/_/g,"/"),s=atob(i),o=new Uint8Array(s.length),l=0;l<s.length;++l)o[l]=s.charCodeAt(l);return o}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ir="fcm_token_details_db",dd=5,zi="fcm_token_object_Store";function hd(n){return x(this,void 0,void 0,function(){var r,i,s,o,l=this;return N(this,function(d){switch(d.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(r=d.sent(),i=r.map(function(h){return h.name}),!i.includes(ir))return[2,null];d.label=2;case 2:return s=null,[4,Pr(ir,dd,function(h){return x(l,void 0,void 0,function(){var v,m,b,b,b,I;return N(this,function(O){switch(O.label){case 0:return h.oldVersion<2?[2]:h.objectStoreNames.contains(zi)?(v=h.transaction.objectStore(zi),[4,v.index("fcmSenderId").get(n)]):[2];case 1:return m=O.sent(),[4,v.clear()];case 2:if(O.sent(),!m)return[2];if(h.oldVersion===2){if(b=m,!b.auth||!b.p256dh||!b.endpoint)return[2];s={token:b.fcmToken,createTime:(I=b.createTime)!==null&&I!==void 0?I:Date.now(),subscriptionOptions:{auth:b.auth,p256dh:b.p256dh,endpoint:b.endpoint,swScope:b.swScope,vapidKey:typeof b.vapidKey=="string"?b.vapidKey:Oe(b.vapidKey)}}}else h.oldVersion===3?(b=m,s={token:b.fcmToken,createTime:b.createTime,subscriptionOptions:{auth:Oe(b.auth),p256dh:Oe(b.p256dh),endpoint:b.endpoint,swScope:b.swScope,vapidKey:Oe(b.vapidKey)}}):h.oldVersion===4&&(b=m,s={token:b.fcmToken,createTime:b.createTime,subscriptionOptions:{auth:Oe(b.auth),p256dh:Oe(b.p256dh),endpoint:b.endpoint,swScope:b.swScope,vapidKey:Oe(b.vapidKey)}});return[2]}})})})];case 3:return o=d.sent(),o.close(),[4,tr(ir)];case 4:return d.sent(),[4,tr("fcm_vapid_details_db")];case 5:return d.sent(),[4,tr("undefined")];case 6:return d.sent(),[2,pd(s)?s:null]}})})}function pd(n){if(!n||!n.subscriptionOptions)return!1;var r=n.subscriptionOptions;return typeof n.createTime=="number"&&n.createTime>0&&typeof n.token=="string"&&n.token.length>0&&typeof r.auth=="string"&&r.auth.length>0&&typeof r.p256dh=="string"&&r.p256dh.length>0&&typeof r.endpoint=="string"&&r.endpoint.length>0&&typeof r.swScope=="string"&&r.swScope.length>0&&typeof r.vapidKey=="string"&&r.vapidKey.length>0}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var md="firebase-messaging-database",gd=1,Ge="firebase-messaging-store",sr=null;function Wr(){return sr||(sr=Pr(md,gd,function(n){switch(n.oldVersion){case 0:n.createObjectStore(Ge)}})),sr}function yn(n){return x(this,void 0,void 0,function(){var r,i,s,o;return N(this,function(l){switch(l.label){case 0:return r=Vr(n),[4,Wr()];case 1:return i=l.sent(),[4,i.transaction(Ge).objectStore(Ge).get(r)];case 2:return s=l.sent(),s?[2,s]:[3,3];case 3:return[4,hd(n.appConfig.senderId)];case 4:return o=l.sent(),o?[4,Hr(n,o)]:[3,6];case 5:return l.sent(),[2,o];case 6:return[2]}})})}function Hr(n,r){return x(this,void 0,void 0,function(){var i,s,o;return N(this,function(l){switch(l.label){case 0:return i=Vr(n),[4,Wr()];case 1:return s=l.sent(),o=s.transaction(Ge,"readwrite"),[4,o.objectStore(Ge).put(r,i)];case 2:return l.sent(),[4,o.complete];case 3:return l.sent(),[2,r]}})})}function vd(n){return x(this,void 0,void 0,function(){var r,i,s;return N(this,function(o){switch(o.label){case 0:return r=Vr(n),[4,Wr()];case 1:return i=o.sent(),s=i.transaction(Ge,"readwrite"),[4,s.objectStore(Ge).delete(r)];case 2:return o.sent(),[4,s.complete];case 3:return o.sent(),[2]}})})}function Vr(n){var r=n.appConfig;return r.appId}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function yd(n,r){return x(this,void 0,void 0,function(){var i,s,o,l,d,h,v;return N(this,function(m){switch(m.label){case 0:return[4,$r(n)];case 1:i=m.sent(),s=Ns(r),o={method:"POST",headers:i,body:JSON.stringify(s)},m.label=2;case 2:return m.trys.push([2,5,,6]),[4,fetch(Ur(n.appConfig),o)];case 3:return d=m.sent(),[4,d.json()];case 4:return l=m.sent(),[3,6];case 5:throw h=m.sent(),R.create("token-subscribe-failed",{errorInfo:h});case 6:if(l.error)throw v=l.error.message,R.create("token-subscribe-failed",{errorInfo:v});if(!l.token)throw R.create("token-subscribe-no-token");return[2,l.token]}})})}function bd(n,r){return x(this,void 0,void 0,function(){var i,s,o,l,d,h,v;return N(this,function(m){switch(m.label){case 0:return[4,$r(n)];case 1:i=m.sent(),s=Ns(r.subscriptionOptions),o={method:"PATCH",headers:i,body:JSON.stringify(s)},m.label=2;case 2:return m.trys.push([2,5,,6]),[4,fetch(Ur(n.appConfig)+"/"+r.token,o)];case 3:return d=m.sent(),[4,d.json()];case 4:return l=m.sent(),[3,6];case 5:throw h=m.sent(),R.create("token-update-failed",{errorInfo:h});case 6:if(l.error)throw v=l.error.message,R.create("token-update-failed",{errorInfo:v});if(!l.token)throw R.create("token-update-no-token");return[2,l.token]}})})}function xs(n,r){return x(this,void 0,void 0,function(){var i,s,o,l,d,h;return N(this,function(v){switch(v.label){case 0:return[4,$r(n)];case 1:i=v.sent(),s={method:"DELETE",headers:i},v.label=2;case 2:return v.trys.push([2,5,,6]),[4,fetch(Ur(n.appConfig)+"/"+r,s)];case 3:return o=v.sent(),[4,o.json()];case 4:if(l=v.sent(),l.error)throw d=l.error.message,R.create("token-unsubscribe-failed",{errorInfo:d});return[3,6];case 5:throw h=v.sent(),R.create("token-unsubscribe-failed",{errorInfo:h});case 6:return[2]}})})}function Ur(n){var r=n.projectId;return id+"/projects/"+r+"/registrations"}function $r(n){var r=n.appConfig,i=n.installations;return x(this,void 0,void 0,function(){var s;return N(this,function(o){switch(o.label){case 0:return[4,i.getToken()];case 1:return s=o.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":r.apiKey,"x-goog-firebase-installations-auth":"FIS "+s})]}})})}function Ns(n){var r=n.p256dh,i=n.auth,s=n.endpoint,o=n.vapidKey,l={web:{endpoint:s,auth:i,p256dh:r}};return o!==vn&&(l.web.applicationPubKey=o),l}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var wd=7*24*60*60*1e3;function br(n,r,i){return x(this,void 0,void 0,function(){var s,o,l,d;return N(this,function(h){switch(h.label){case 0:if(Notification.permission!=="granted")throw R.create("permission-blocked");return[4,Sd(r,i)];case 1:return s=h.sent(),[4,yn(n)];case 2:return o=h.sent(),l={vapidKey:i,swScope:r.scope,endpoint:s.endpoint,auth:Oe(s.getKey("auth")),p256dh:Oe(s.getKey("p256dh"))},o?[3,3]:[2,qi(n,l)];case 3:if(Td(o.subscriptionOptions,l))return[3,8];h.label=4;case 4:return h.trys.push([4,6,,7]),[4,xs(n,o.token)];case 5:return h.sent(),[3,7];case 6:return d=h.sent(),console.warn(d),[3,7];case 7:return[2,qi(n,l)];case 8:return Date.now()>=o.createTime+wd?[2,_d({token:o.token,createTime:Date.now(),subscriptionOptions:l},n,r)]:[2,o.token];case 9:return[2]}})})}function Nt(n,r){return x(this,void 0,void 0,function(){var i,s;return N(this,function(o){switch(o.label){case 0:return[4,yn(n)];case 1:return i=o.sent(),i?[4,xs(n,i.token)]:[3,4];case 2:return o.sent(),[4,vd(n)];case 3:o.sent(),o.label=4;case 4:return[4,r.pushManager.getSubscription()];case 5:return s=o.sent(),s?[2,s.unsubscribe()]:[2,!0]}})})}function _d(n,r,i){return x(this,void 0,void 0,function(){var s,o,l;return N(this,function(d){switch(d.label){case 0:return d.trys.push([0,3,,5]),[4,bd(r,n)];case 1:return s=d.sent(),o=re(re({},n),{token:s,createTime:Date.now()}),[4,Hr(r,o)];case 2:return d.sent(),[2,s];case 3:return l=d.sent(),[4,Nt(r,i)];case 4:throw d.sent(),l;case 5:return[2]}})})}function qi(n,r){return x(this,void 0,void 0,function(){var i,s;return N(this,function(o){switch(o.label){case 0:return[4,yd(n,r)];case 1:return i=o.sent(),s={token:i,createTime:Date.now(),subscriptionOptions:r},[4,Hr(n,s)];case 2:return o.sent(),[2,s.token]}})})}function Sd(n,r){return x(this,void 0,void 0,function(){var i;return N(this,function(s){switch(s.label){case 0:return[4,n.pushManager.getSubscription()];case 1:return i=s.sent(),i?[2,i]:[2,n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:fd(r)})]}})})}function Td(n,r){var i=r.vapidKey===n.vapidKey,s=r.endpoint===n.endpoint,o=r.auth===n.auth,l=r.p256dh===n.p256dh;return i&&s&&o&&l}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function kd(n){var r={from:n.from,collapseKey:n.collapse_key,messageId:n.fcm_message_id};return Dd(r,n),Od(r,n),Md(r,n),r}function Dd(n,r){if(r.notification){n.notification={};var i=r.notification.title;i&&(n.notification.title=i);var s=r.notification.body;s&&(n.notification.body=s);var o=r.notification.image;o&&(n.notification.image=o)}}function Od(n,r){r.data&&(n.data=r.data)}function Md(n,r){if(r.fcmOptions){n.fcmOptions={};var i=r.fcmOptions.link;i&&(n.fcmOptions.link=i);var s=r.fcmOptions.analytics_label;s&&(n.fcmOptions.analyticsLabel=s)}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Es(n){return typeof n=="object"&&!!n&&Ms in n}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ki(n){return new Promise(function(r){setTimeout(r,n)})}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var xd=function(){function n(r){var i=this;this.firebaseDependencies=r,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(s){s.waitUntil(i.onPush(s))}),self.addEventListener("pushsubscriptionchange",function(s){s.waitUntil(i.onSubChange(s))}),self.addEventListener("notificationclick",function(s){s.waitUntil(i.onNotificationClick(s))})}return Object.defineProperty(n.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),n.prototype.setBackgroundMessageHandler=function(r){if(this.isOnBackgroundMessageUsed=!1,!r||typeof r!="function")throw R.create("invalid-bg-handler");this.bgMessageHandler=r},n.prototype.onBackgroundMessage=function(r){var i=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=r,function(){i.bgMessageHandler=null}},n.prototype.getToken=function(){var r,i;return x(this,void 0,void 0,function(){var s;return N(this,function(o){switch(o.label){case 0:return this.vapidKey?[3,2]:[4,yn(this.firebaseDependencies)];case 1:s=o.sent(),this.vapidKey=(i=(r=s==null?void 0:s.subscriptionOptions)===null||r===void 0?void 0:r.vapidKey)!==null&&i!==void 0?i:vn,o.label=2;case 2:return[2,br(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},n.prototype.deleteToken=function(){return Nt(this.firebaseDependencies,self.registration)},n.prototype.requestPermission=function(){throw R.create("only-available-in-window")},n.prototype.usePublicVapidKey=function(r){if(this.vapidKey!==null)throw R.create("use-vapid-key-after-get-token");if(typeof r!="string"||r.length===0)throw R.create("invalid-vapid-key");this.vapidKey=r},n.prototype.useServiceWorker=function(){throw R.create("only-available-in-window")},n.prototype.onMessage=function(){throw R.create("only-available-in-window")},n.prototype.onTokenRefresh=function(){throw R.create("only-available-in-window")},n.prototype.onPush=function(r){return x(this,void 0,void 0,function(){var i,s,o,l;return N(this,function(d){switch(d.label){case 0:return i=Ed(r),i?[4,Is()]:(console.debug(sd+"failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return s=d.sent(),Pd(s)?[2,Cd(s,i)]:(o=!1,i.notification?[4,Yd(Nd(i))]:[3,3]);case 2:d.sent(),o=!0,d.label=3;case 3:return o===!0&&this.isOnBackgroundMessageUsed===!1?[2]:(this.bgMessageHandler&&(l=kd(i),typeof this.bgMessageHandler=="function"?this.bgMessageHandler(l):this.bgMessageHandler.next(l)),[4,Ki(ld)]);case 4:return d.sent(),[2]}})})},n.prototype.onSubChange=function(r){var i,s;return x(this,void 0,void 0,function(){var o,l;return N(this,function(d){switch(d.label){case 0:return o=r.newSubscription,o?[3,2]:[4,Nt(this.firebaseDependencies,self.registration)];case 1:return d.sent(),[2];case 2:return[4,yn(this.firebaseDependencies)];case 3:return l=d.sent(),[4,Nt(this.firebaseDependencies,self.registration)];case 4:return d.sent(),[4,br(this.firebaseDependencies,self.registration,(s=(i=l==null?void 0:l.subscriptionOptions)===null||i===void 0?void 0:i.vapidKey)!==null&&s!==void 0?s:vn)];case 5:return d.sent(),[2]}})})},n.prototype.onNotificationClick=function(r){var i,s;return x(this,void 0,void 0,function(){var o,l,d,h,v;return N(this,function(m){switch(m.label){case 0:if(o=(s=(i=r.notification)===null||i===void 0?void 0:i.data)===null||s===void 0?void 0:s[Os],o){if(r.action)return[2]}else return[2];return r.stopImmediatePropagation(),r.notification.close(),l=jd(o),l?(d=new URL(l,self.location.href),h=new URL(self.location.origin),d.host!==h.host?[2]:[4,Id(d)]):[2];case 1:return v=m.sent(),v?[3,4]:[4,self.clients.openWindow(l)];case 2:return v=m.sent(),[4,Ki(cd)];case 3:return m.sent(),[3,6];case 4:return[4,v.focus()];case 5:v=m.sent(),m.label=6;case 6:return v?(o.messageType=Be.NOTIFICATION_CLICKED,o.isFirebaseMessaging=!0,[2,v.postMessage(o)]):[2]}})})},n}();function Nd(n){var r,i=re({},n.notification);return i.data=(r={},r[Os]=n,r),i}function Ed(n){var r=n.data;if(!r)return null;try{return r.json()}catch{return null}}function Id(n){return x(this,void 0,void 0,function(){var r,i,s,o,l,d,h;return N(this,function(v){switch(v.label){case 0:return[4,Is()];case 1:r=v.sent();try{for(i=Ye(r),s=i.next();!s.done;s=i.next())if(o=s.value,l=new URL(o.url,self.location.href),n.host===l.host)return[2,o]}catch(m){d={error:m}}finally{try{s&&!s.done&&(h=i.return)&&h.call(i)}finally{if(d)throw d.error}}return[2,null]}})})}function Pd(n){return n.some(function(r){return r.visibilityState==="visible"&&!r.url.startsWith("chrome-extension://")})}function Cd(n,r){var i,s;r.isFirebaseMessaging=!0,r.messageType=Be.PUSH_RECEIVED;try{for(var o=Ye(n),l=o.next();!l.done;l=o.next()){var d=l.value;d.postMessage(r)}}catch(h){i={error:h}}finally{try{l&&!l.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}function Is(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function Yd(n){var r,i=n.actions,s=Notification.maxActions;return i&&s&&i.length>s&&console.warn("This browser only supports "+s+" actions. The remaining actions will not be displayed."),self.registration.showNotification((r=n.title)!==null&&r!==void 0?r:"",n)}function jd(n){var r,i,s,o=(i=(r=n.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(s=n.notification)===null||s===void 0?void 0:s.click_action;return o||(Es(n.data)?self.location.origin:null)}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Rd=function(){function n(r){var i=this;this.firebaseDependencies=r,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(s){return i.messageEventListener(s)})}return Object.defineProperty(n.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),n.prototype.messageEventListener=function(r){return x(this,void 0,void 0,function(){var i,s;return N(this,function(o){switch(o.label){case 0:return i=r.data,i.isFirebaseMessaging?(this.onMessageCallback&&i.messageType===Be.PUSH_RECEIVED&&(typeof this.onMessageCallback=="function"?this.onMessageCallback(Fd(Object.assign({},i))):this.onMessageCallback.next(Object.assign({},i))),s=i.data,Es(s)&&s[ad]==="1"?[4,this.logEvent(i.messageType,s)]:[3,2]):[2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},n.prototype.getVapidKey=function(){return this.vapidKey},n.prototype.getSwReg=function(){return this.swRegistration},n.prototype.getToken=function(r){return x(this,void 0,void 0,function(){return N(this,function(i){switch(i.label){case 0:return Notification.permission!=="default"?[3,2]:[4,Notification.requestPermission()];case 1:i.sent(),i.label=2;case 2:if(Notification.permission!=="granted")throw R.create("permission-blocked");return[4,this.updateVapidKey(r==null?void 0:r.vapidKey)];case 3:return i.sent(),[4,this.updateSwReg(r==null?void 0:r.serviceWorkerRegistration)];case 4:return i.sent(),[2,br(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},n.prototype.updateVapidKey=function(r){return x(this,void 0,void 0,function(){return N(this,function(i){return r?this.vapidKey=r:this.vapidKey||(this.vapidKey=vn),[2]})})},n.prototype.updateSwReg=function(r){return x(this,void 0,void 0,function(){return N(this,function(i){switch(i.label){case 0:return!r&&!this.swRegistration?[4,this.registerDefaultSw()]:[3,2];case 1:i.sent(),i.label=2;case 2:if(!r&&this.swRegistration)return[2];if(!(r instanceof ServiceWorkerRegistration))throw R.create("invalid-sw-registration");return this.swRegistration=r,[2]}})})},n.prototype.registerDefaultSw=function(){return x(this,void 0,void 0,function(){var r,i;return N(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),r=this,[4,navigator.serviceWorker.register(nd,{scope:rd})];case 1:return r.swRegistration=s.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw i=s.sent(),R.create("failed-service-worker-registration",{browserErrorMessage:i.message});case 3:return[2]}})})},n.prototype.deleteToken=function(){return x(this,void 0,void 0,function(){return N(this,function(r){switch(r.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:r.sent(),r.label=2;case 2:return[2,Nt(this.firebaseDependencies,this.swRegistration)]}})})},n.prototype.requestPermission=function(){return x(this,void 0,void 0,function(){var r;return N(this,function(i){switch(i.label){case 0:return Notification.permission==="granted"?[2]:[4,Notification.requestPermission()];case 1:if(r=i.sent(),r==="granted")return[2];throw r==="denied"?R.create("permission-blocked"):R.create("permission-default")}})})},n.prototype.usePublicVapidKey=function(r){if(this.vapidKey!==null)throw R.create("use-vapid-key-after-get-token");if(typeof r!="string"||r.length===0)throw R.create("invalid-vapid-key");this.vapidKey=r},n.prototype.useServiceWorker=function(r){if(!(r instanceof ServiceWorkerRegistration))throw R.create("invalid-sw-registration");if(this.swRegistration)throw R.create("use-sw-after-get-token");this.swRegistration=r},n.prototype.onMessage=function(r){var i=this;return this.onMessageCallback=r,function(){i.onMessageCallback=null}},n.prototype.setBackgroundMessageHandler=function(){throw R.create("only-available-in-sw")},n.prototype.onBackgroundMessage=function(){throw R.create("only-available-in-sw")},n.prototype.onTokenRefresh=function(){return function(){}},n.prototype.logEvent=function(r,i){return x(this,void 0,void 0,function(){var s,o;return N(this,function(l){switch(l.label){case 0:return s=Ad(r),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return o=l.sent(),o.logEvent(s,{message_id:i[Ms],message_name:i[ud],message_time:i[od],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},n}();function Ad(n){switch(n){case Be.NOTIFICATION_CLICKED:return"notification_open";case Be.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function Fd(n){return delete n.messageType,delete n.isFirebaseMessaging,n}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ld(n){var r,i;if(!n||!n.options)throw ar("App Configuration Object");if(!n.name)throw ar("App Name");var s=["projectId","apiKey","appId","messagingSenderId"],o=n.options;try{for(var l=Ye(s),d=l.next();!d.done;d=l.next()){var h=d.value;if(!o[h])throw ar(h)}}catch(v){r={error:v}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return{appName:n.name,projectId:o.projectId,apiKey:o.apiKey,appId:o.appId,senderId:o.messagingSenderId}}function ar(n){return R.create("missing-app-config-values",{valueName:n})}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Wd="messaging";function Hd(n){var r=n.getProvider("app").getImmediate(),i=Ld(r),s=n.getProvider("installations").getImmediate(),o=n.getProvider("analytics-internal"),l={app:r,appConfig:i,installations:s,analyticsProvider:o};if(!Ps())throw R.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new xd(l):new Rd(l)}var Vd={isSupported:Ps};ze.INTERNAL.registerComponent(new At(Wd,Hd,"PUBLIC").setServiceProps(Vd));function Ps(){return self&&"ServiceWorkerGlobalScope"in self?$d():Ud()}function Ud(){return"indexedDB"in window&&indexedDB!==null&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function $d(){return"indexedDB"in self&&indexedDB!==null&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}const Bd={apiKey:"AIzaSyBIkPvq7qh-WRG_mza5yjSwh-ASoQ48QNQ",authDomain:"webpushnotify-a9d99.firebaseapp.com",projectId:"webpushnotify-a9d99",storageBucket:"webpushnotify-a9d99.appspot.com",messagingSenderId:"530665672512",appId:"1:530665672512:web:f6a5ce9d93869837d634a5",measurementId:"G-JL0YEXZMG3"};ze.initializeApp(Bd);const Yt=ze.messaging();function Gd(){Yt.requestPermission().then(function(){return console.log("Notification Permission"),Yt.getToken()}).then(function(n){console.log("Token : "+n),localStorage.setItem("fcm_token",JSON.stringify(n)),Ce.IDDonVi&&Ce.IDDonVi&&zd(n).then(r=>{r?r.DonVi_Id!==Ce.IDDonVi&&Kd(r.Id):Zd().then(i=>qd(n,i))}).catch(r=>ct("Xảy ra lỗi check token exists","Thông báo"))}).catch(function(n){console.log(n)})}Yt.onMessage(function(n){console.log(n);const r={body:n.data.body,icon:"https://baocaostc.gdtsolutions.vn/logo.png"};if(Notification.permission==="granted"){var i=new Notification(n.data.title,r);i.onclick=function(s){s.preventDefault(),window.open(n.data.click_action,"_blank"),i.close()}}});Yt.onTokenRefresh(function(){Yt.getToken().then(function(n){console.log("New Token : "+n)}).catch(function(n){console.log(n)})});Gd();function zd(n){return new Promise((r,i)=>{wn(`SYS_ThietBi?$filter=FCM_Token eq '${n}'`,"GET",null).then(s=>{s.value.length>0?r(s.value[0]):r(!1)}).catch(s=>i(!0))})}function qd(n,r=null){wn("SYS_ThietBi","POST",JSON.stringify({Name:"Máy tính cá nhân",Loai:"Web",IP:r,FCM_Token:n,MaTaiKhoan:Ce.MaTaiKhoan,DonVi_Id:Ce.IDDonVi})).then(i=>{}).catch(i=>ct("Không thể lưu thiết bị","Thông báo"))}function Kd(n){wn(`SYS_ThietBi(guid'${n}')`,"PATCH",JSON.stringify({DonVi_Id:Ce.IDDonVi})).then(r=>{}).catch(r=>ct("Không thể cập nhật đơn vị cho thiết bị","Thông báo"))}function Zd(){return new Promise((n,r)=>{fetch("https://api.ipify.org/?format=json").then(i=>i.json()).then(i=>n(i.ip)).catch(i=>r(null))})}const Xd=ue.div`
  // background-color: rgb(245, 247, 255) !important;
  color: '#000';
`,Jd=ue.ul`
  // background-color: rgb(245, 247, 255) !important;
  color: '#000';
`,wr=ue.li`
  position: relative;
  &:hover > ul.dropdown-menu {
    display: block;
    width: 200%;
  }
`,Qd=ue.ul`
  margin-top: 0;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  position: absolute !important;
  border: none;
  padding: 0.5rem;
  // background: #f5f7ff;
`,eh=ue.ul`
  top: 0;
  left: -100%;
  margin-top: 0px;
  margin-left: 0;
  margin-right: 0;
  // box-shadow: 3px 3px #1005055e;
  background: #f5f7ff;
`,_r=ue(Sr)`
  font-weight: 500;
  color: #5a5757 !important;
  font-size: 13px;
  padding: 0.3rem 1.25rem !important;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  &:hover {
    // ${n=>n.ismain&&"text-align: center;"}
    background: aliceblue !important;
    color: royalblue !important;
  }
  &.active {
    background: aliceblue !important;
    color: #1c3ea5 !important;
    border: solid 2px #0d70b3;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
  }
`,jt=n=>n??"#",bn=n=>n.children&&n.children.length>0,th=n=>{const{items:r,drop:i}=n;return g.jsx(Qd,{className:"dropdown-menu","aria-labelledby":"navbarDropdownMenuLink",style:{width:"max-content"},children:r.map((s,o)=>g.jsxs(wr,{className:i?"dropleft":"dropright",children:[g.jsxs(_r,{style:{borderRadius:"5px",padding:"1rem 0.5rem !important",fontSize:"15px"},to:jt(s.url),className:"dropdown-item "+(bn(s)?"dropdown-toggle":""),children:[s.icon&&g.jsxs(g.Fragment,{children:[g.jsx("i",{className:s.icon,"aria-hidden":!0})," "]}),`${o+1}. ${s.name}`]}),bn(s)&&g.jsx(eh,{className:"dropdown-menu",style:{margin:0},children:s.children.map((l,d)=>{let h=l.name;return g.jsx(wr,{children:g.jsxs(_r,{style:{borderRadius:"5px",padding:"1rem 0.5rem !important",fontSize:"15px"},className:"dropdown-item",to:jt(l.url),children:[l.icon&&g.jsxs(g.Fragment,{children:[g.jsx("i",{style:{marginLeft:"0px",color:"rgba(0, 0, 0, 0.7)"},className:l.icon,"aria-hidden":!0})," "]}),`${d+1}. ${h}`]})},d)})})]},o))})};class nh extends ot.Component{constructor(r){super(r),this.state={navigation:El(),ParentID:null,OpenFakeHeader:!1}}checkActiveTab(r){return r===window.location.pathname}render(){const{navigation:r,ParentID:i}=this.state;return g.jsx(g.Fragment,{children:g.jsx(V.Fragment,{children:g.jsx("nav",{className:"navbar navbar-expand-xl",style:{padding:0},children:g.jsx(Xd,{className:"collapse navbar-collapse",children:g.jsx(Jd,{className:"navbar-nav",children:r&&r.map((s,o)=>{var l,d;return g.jsxs(wr,{className:"nav-item",children:[g.jsxs(_r,{ismain:"true",style:{marginLeft:"5px"},to:jt(s.url),onClick:()=>{this.setState({activeIndex:o})},className:"nav-link "+(bn(s)&&`dropdown-toggle ${(d=(l=s==null?void 0:s.children)==null?void 0:l.filter(h=>(h==null?void 0:h.url)===window.location.pathname))!=null&&d.length?"active":""}`)+(this.checkActiveTab(s.url)?" active":""),children:[s.icon&&g.jsx(g.Fragment,{children:g.jsx("i",{style:{width:"1rem"},className:s.icon,"aria-hidden":!0})}),s.name]}),bn(s)&&g.jsx(th,{parent_id:i,items:s.children,drop:o>r.length/2})]},o)})})})})})})}}const Dh=Object.freeze(Object.defineProperty({__proto__:null,checkLinkURL:jt,default:nh},Symbol.toStringTag,{value:"Module"})),rh=ue.div`
  position: relative;
`,ih=ue(Sr)`
  cursor: pointer;
  min-height: '3rem';
`,sh=ue.div`
  position: relative;
  flex-grow: 1;
  margin-left: 0.3rem;
  padding: 0 1rem 0 0.5rem;
`,ah=ue.span``,oh=ue.span`
  height: 10px;
  width: 10px;
  background: rgb(24, 118, 242);
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-radius: 50%;
`,uh=ue.span`
  position: absolute;
  top: -0.35rem;
  right: 0;
  z-index: 999;
  font-size: 13px;
`;function Oh(){const[n,r]=ot.useState([]),[i,s]=ot.useState(!1),[,o]=ot.useState(null),[l,d]=ot.useState(null),h=()=>{s(!i)};ot.useEffect(()=>{v()},[i]);const v=()=>{Ri(`SYS_ThongBao?$orderby=Created_Date desc&$expand=SYS_TaiKhoan,SYS_DonVi,SYS_DonVi1
        &$filter=(DonViGui_Id eq '${Ce.IDDonVi}' and 
        (HanhDong eq '${U.TinNhanTuHeThong}' or HanhDong eq '${U.DaKySo}'
        or HanhDong eq '${U.HuyKySo}' or HanhDong eq '${U.ChinhSuaBaoCao}')) 
        or (DonViNhan_Id eq '${Ce.IDDonVi}' and (HanhDong eq '${U.GuiBaoCao}' 
        or HanhDong eq '${U.TinNhanTuDonVi}' or HanhDong eq '${U.DuyetBaoCao}' 
        or HanhDong eq '${U.TuChoiBaoCao}' or HanhDong eq '${U.DaTrinhKy}' 
        or HanhDong eq '${U.TiepNhanTrinhKy}' or HanhDong eq '${U.TuChoiTrinhKy}'))&$top=4`).then(w=>{w.value.filter(E=>!E.DaXemThongBao).length?document.title=` Có ${w.value.filter(E=>!E.DaXemThongBao).length} thông báo mới chưa đọc`:document.title="Hệ Thống Quản lý Tài liệu lưu trữ - nhận dạng văn bản",r(w.value)}).catch(w=>ct("Không thể tài dữ liệu thông báo","Thông báo"))},m=()=>{let w=n.filter(E=>!E.DaXemThongBao).map(E=>E.Id);wn("ThongBaos/DanhDauDaXem","POST",JSON.stringify({Ids:w}),{odata:!1}).then(E=>{v()}).catch(E=>ct("Không thể đánh dấu xem tất cả","Thông báo"))},b=(w,E)=>{w&&Ri(`SYS_ThongBao(guid'${w}')`,"PATCH",JSON.stringify({DaXemThongBao:E})).then(G=>{v()}).catch(G=>ct("Không thể cập nhật trạng thái đã xem của báo cáo","Thông báo"))},I=w=>{switch(w.Targer_Module){case Jn.BaoCao:o({ID:w.Target_Id,BaoCaoDi:w.HanhDong!==U.GuiBaoCao});break;case Jn.LinhVuc:break;case Jn.TinNhan:d(w.NoiDung);break}b(w.Id,!0)},O=()=>{let w=n.filter(E=>!E.DaXemThongBao).length;return w&&w!==0?g.jsx(uh,{children:g.jsx(jl,{style:{borderRadius:"50%"},color:"danger",children:w})}):""};return g.jsxs(rh,{className:"d-flex align-items-center",id:"popover-notify",children:[O(),g.jsxs("div",{className:"form-icon-header-custom",children:[g.jsx(ah,{children:g.jsx("img",{src:"../../assets/iconNotication.png",className:"img-avatar-custom rounded-circle",alt:"gdtvietnam"})}),g.jsxs(Mr,{className:"popover-notify",placement:"bottom",isOpen:i,target:"popover-notify",toggle:h,trigger:"legacy",children:[g.jsxs(ns,{className:"d-flex justify-content-between align-items-center bg-white pt-1 pb-1",children:[g.jsx("span",{className:"fw-bold",children:"Thông báo"}),g.jsxs("div",{className:"pull-right d-flex gap-2",children:[g.jsxs(Yl,{className:"btn-check-all-notication",onClick:m,children:["Đánh dấu đã xem",g.jsx(Et,{fa:"check"})]}),g.jsx(Sr,{to:"/thong-bao",className:"btn-check-all-notication",children:"Xem tất cả"})]})]}),g.jsx(rs,{children:n.length?n.slice(0,10).map((w,E)=>g.jsx(lh,{onClick:I,data:w,close:h},E)):g.jsx(Al,{size:"sm",text:"Không có thông báo"})})]})]}),l&&g.jsx(Fl,{title:"Nội dung thông báo",open:!!l,handleClose:()=>d(null),maxWidth:"sm",children:g.jsx(Ll,{id:"noiDung",placeholder:"Nhập nội dung thông báo...",value:l})})]})}const lh=({onClick:n,key:r,data:i,close:s})=>{const o=v=>{var m,b;return(m=v.SYS_TaiKhoan)!=null&&m.HinhAnh?g.jsx("img",{className:"img-user-item-notify",src:`${Il}${(b=v.SYS_TaiKhoan)==null?void 0:b.HinhAnh}`,alt:""}):g.jsx("img",{className:"img-user-item-notify",src:"/assets/profile-w.jpg",alt:""})},l=v=>{let m=v.SYS_DonVi.TenDonVi,b=v.TieuDe;return g.jsxs("span",{children:[g.jsx("b",{children:m})," đã nhắc bạn về việc ",b]})},d=v=>{let m={color:"#1876f2",fontSize:11,fontWeight:500,marginTop:"0.5rem"},b=Xi(v.Created_Date).fromNow();return v.Created_Date?g.jsx("div",{style:m,children:b}):""},h=v=>v.DaXemThongBao?"":g.jsx(oh,{});return g.jsx(g.Fragment,{children:g.jsxs(ih,{to:jt("/thong-bao"),onClick:()=>{n(i),s()},className:"item-notify-header",children:[g.jsx("div",{className:"outline-form-info-item-notify-header",children:g.jsxs("div",{className:"form-info-item-notify-header",children:[g.jsxs("div",{style:{fontSize:"16px",color:"#717171"},className:"d-flex justify-content-between mb-3",children:[g.jsx(Et,{fa:"chevron-left"}),g.jsx(Et,{fa:"bell-o"})]}),g.jsx("div",{className:"d-flex align-items-center gap-3",children:g.jsx("h6",{children:"Xem chi tiết"})}),g.jsx(ch,{data:i})]})}),g.jsx("div",{children:o(i)}),g.jsxs(sh,{children:[(i==null?void 0:i.Targer_Module)==="TinNhan"?l(i):g.jsx(xr,{item:i}),d(i),h(i)]})]},r)})},ch=({data:n,detail:r})=>{var i;return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"form-body-info-item-notify-header",children:[g.jsx("img",{style:{height:"max-content"},src:"/assets/imgPlan.jpg",alt:""}),g.jsxs("div",{style:r?{fontSize:"17px",padding:"1rem"}:{},children:[n.TieuDe&&g.jsxs("h6",{className:"mb-3",children:[n.TieuDe,"."]}),g.jsxs("div",{children:[(n==null?void 0:n.Targer_Module)==="TinNhan"?g.jsxs(g.Fragment,{children:[" ",g.jsx("div",{className:"d-flex align-items-center gap-2 mb-1",children:g.jsxs("p",{className:"mb-0",children:[g.jsx("strong",{children:g.jsx(Et,{style:{marginTop:"0.1rem",marginRight:"0.5rem"},fa:"ioxhost"})})," ",n.NoiDung||"Không có nội dung","."]})})]}):g.jsx(xr,{item:n}),g.jsx("div",{className:`d-flex align-items-center gap-2 mb-1 ${r?"mt-3":""}`,children:g.jsxs("p",{className:"mb-0",children:[g.jsx("strong",{children:g.jsx(Et,{style:{marginTop:"0.1rem",marginRight:"0.5rem"},fa:"telegram"})})," ",n.SYS_DonVi.TenDonVi,"."]})})]})]})]}),g.jsxs("div",{style:{fontSize:r?"15px":"12px"},className:"d-flex justify-content-between border-top border-bottom p-3 mt-4 footer-info-item-notify",children:[g.jsxs("div",{className:"text-center",children:[g.jsx("h6",{className:`mb-0 ${r?"h4":""}`,children:n!=null&&n.DaXemThongBao?"Đã Xem":"Mới"}),g.jsx("p",{className:"mb-0",children:"Trạng thái"})]}),g.jsxs("div",{className:"text-center",children:[g.jsx("h6",{className:`mb-0 ${r?"h4":""}`,children:(i=n==null?void 0:n.SYS_DonVi1)==null?void 0:i.MaDonVi}),g.jsx("p",{className:"mb-0",children:"Tài khoản nhận"})]}),g.jsxs("div",{className:"text-center",children:[g.jsx("h6",{className:`mb-0 ${r?"h4":""}`,children:Xi(n==null?void 0:n.Created_Date).format("DD.MM")}),g.jsx("p",{className:"mb-0",children:"Ngày gửi"})]})]})]})};export{ch as D,Oh as N,Dh as a,kh as c};