diff options
author | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2023-11-08 18:36:04 +0100 |
---|---|---|
committer | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2023-11-09 09:48:34 +0100 |
commit | a8fdb88e758ecdd6477b128903b98ee9becb43b6 (patch) | |
tree | 7e54f1b57175619c39123d03fabf0fcd5c29376d /dist/dav-settings-personal-availability.js | |
parent | 55d68bb9d116b1df4abc4a2ab053b3e8039945e7 (diff) | |
download | nextcloud-server-a8fdb88e758ecdd6477b128903b98ee9becb43b6.tar.gz nextcloud-server-a8fdb88e758ecdd6477b128903b98ee9becb43b6.zip |
Update `calendar-availability-vue` to `^2.0.0`
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'dist/dav-settings-personal-availability.js')
-rw-r--r-- | dist/dav-settings-personal-availability.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/dav-settings-personal-availability.js b/dist/dav-settings-personal-availability.js index 3154b7833a9..e807ccae307 100644 --- a/dist/dav-settings-personal-availability.js +++ b/dist/dav-settings-personal-availability.js @@ -1,3 +1,3 @@ /*! For license information please see dav-settings-personal-availability.js.LICENSE.txt */ -(()=>{var e,n,r,i={76970:(e,n,r)=>{"use strict";var i=r(20144),a=r(31352),s=r(67912),o=r(57274),u=r(49368),l=r(64722),c=r(37008),d=r(79753),f=r(93664);function h(t){return`${t.getUTCFullYear()}-${(t.getUTCMonth()+1).toString().padStart(2,"0")}-${t.getUTCDate().toString().padStart(2,"0")}`}var p=r(43554),m=r(64024);const y={name:"AbsenceForm",components:{NcButton:o.Z,NcTextField:u.Z,NcTextArea:l.Z,NcDateTimePickerNative:c.Z},data(){const{firstDay:t,lastDay:e,status:n,message:r}=(0,p.j)("dav","absence",{});return{loading:!1,status:n??"",message:r??"",firstDay:t?new Date(t):new Date,lastDay:e?new Date(e):null}},computed:{valid(){return!!this.firstDay&&!!this.lastDay&&!!this.status&&this.lastDay>this.firstDay}},methods:{resetForm(){this.status="",this.message="",this.firstDay=new Date,this.lastDay=null},async saveForm(){if(this.valid){this.loading=!0;try{await f.Z.post((0,d.generateUrl)("/apps/dav/settings/absence"),{firstDay:h(this.firstDay),lastDay:h(this.lastDay),status:this.status,message:this.message})}catch(t){(0,m.x2)(this.$t("dav","Failed to save your absence settings"))}finally{this.loading=!1}}},async clearAbsence(){this.loading=!0;try{await f.Z.delete((0,d.generateUrl)("/apps/dav/settings/absence")),this.resetForm()}catch(t){(0,m.x2)(this.$t("dav","Failed to clear your absence settings"))}finally{this.loading=!1}}}};var T=r(93379),g=r.n(T),v=r(7795),A=r.n(v),S=r(90569),b=r.n(S),E=r(3565),_=r.n(E),D=r(19216),C=r.n(D),O=r(44589),x=r.n(O),I=r(49980),w={};w.styleTagTransform=x(),w.setAttributes=_(),w.insert=b().bind(null,"head"),w.domAPI=A(),w.insertStyleElement=C(),g()(I.Z,w),I.Z&&I.Z.locals&&I.Z.locals;var N=r(51900),U=(0,N.Z)(y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"absence"},[e("div",{staticClass:"absence__dates"},[e("NcDateTimePickerNative",{staticClass:"absence__dates__picker",attrs:{id:"absence-first-day",label:t.$t("dav","First day")},model:{value:t.firstDay,callback:function(e){t.firstDay=e},expression:"firstDay"}}),t._v(" "),e("NcDateTimePickerNative",{staticClass:"absence__dates__picker",attrs:{id:"absence-last-day",label:t.$t("dav","Last day (inclusive)")},model:{value:t.lastDay,callback:function(e){t.lastDay=e},expression:"lastDay"}})],1),t._v(" "),e("NcTextField",{attrs:{value:t.status,label:t.$t("dav","Short absence status")},on:{"update:value":function(e){t.status=e}}}),t._v(" "),e("NcTextArea",{attrs:{value:t.message,label:t.$t("dav","Long absence Message")},on:{"update:value":function(e){t.message=e}}}),t._v(" "),e("div",{staticClass:"absence__buttons"},[e("NcButton",{attrs:{disabled:t.loading||!t.valid,type:"primary"},on:{click:t.saveForm}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Save"))+"\n\t\t")]),t._v(" "),e("NcButton",{attrs:{disabled:t.loading||!t.valid,type:"error"},on:{click:t.clearAbsence}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Disable absence"))+"\n\t\t")])],1)],1)}),[],!1,null,"5a6b66ca",null);const M=U.exports;var L=r(64882),P=r(25108),Y=r(34155),k=r(18350);function R(t,e,n,r,i,a,s,o){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),s?(u=function(t){!(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)&&typeof __VUE_SSR_CONTEXT__<"u"&&(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=u):i&&(u=o?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:l}}!function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".availability-day[data-v-193e3573]{padding:0 10px;position:absolute}.availability-slots[data-v-193e3573]{display:flex;white-space:nowrap}.availability-slot[data-v-193e3573]{display:flex;flex-direction:row;align-items:center}.availability-slot-group[data-v-193e3573]{display:flex;flex-direction:column}[data-v-193e3573] .mx-input-wrapper{width:85px}[data-v-193e3573] .mx-datepicker{width:97px}[data-v-193e3573] .multiselect{border:1px solid var(--color-border-dark);width:120px}.time-zone[data-v-193e3573]{padding:32px 12px 12px 0}.grid-table[data-v-193e3573]{display:grid;margin-bottom:32px;grid-column-gap:24px;grid-row-gap:6px;grid-template-columns:min-content min-content min-content}.button[data-v-193e3573]{align-self:flex-end}.label-weekday[data-v-193e3573]{position:relative;display:flex;align-items:flex-start}.label-weekday>span[data-v-193e3573]{height:50px;display:flex;align-items:center}.add-another[data-v-193e3573]{background-color:transparent;border:none;opacity:.5;display:inline-flex;padding:0;margin:0 0 3px}.add-another[data-v-193e3573]:hover{opacity:1}.to-text[data-v-193e3573]{padding-right:12px}.time-zone-text[data-v-193e3573]{padding-left:22px}.empty-content[data-v-193e3573]{color:var(--color-text-lighter);display:inline-flex;align-items:center}")),document.head.appendChild(t)}}catch(t){P.error("vite-plugin-css-injected-by-js",t)}}();var B=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon delete-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])};const j=R({name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},B,[],!1,null,null,null,null).exports;var z=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon plus-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])};const W=R({name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},z,[],!1,null,null,null,null).exports,F={name:"CalendarAvailability",components:{NcDateTimePicker:L.Z9,NcButton:L.P2,IconAdd:W,IconDelete:j},props:{slots:{type:Object,required:!0},loading:{type:Boolean,default:!1},l10nTo:{type:String,required:!0},l10nDeleteSlot:{type:String,required:!0},l10nEmptyDay:{type:String,required:!0},l10nAddSlot:{type:String,required:!0},l10nMonday:{type:String,required:!0},l10nTuesday:{type:String,required:!0},l10nWednesday:{type:String,required:!0},l10nThursday:{type:String,required:!0},l10nFriday:{type:String,required:!0},l10nSaturday:{type:String,required:!0},l10nSunday:{type:String,required:!0}},data(){return{internalSlots:this.slotsToInternalData(this.slots)}},watch:{slots(){this.internalSlots=this.slotsToInternalData(this.slots)}},methods:{timeStampSlotsToDateObjectSlots:t=>t.map((t=>({start:new Date(1e3*t.start),end:new Date(1e3*t.end)}))),slotsToInternalData(){const t=[{id:"MO",displayName:this.l10nMonday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.MO)},{id:"TU",displayName:this.l10nTuesday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.TU)},{id:"WE",displayName:this.l10nWednesday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.WE)},{id:"TH",displayName:this.l10nThursday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.TH)},{id:"FR",displayName:this.l10nFriday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.FR)},{id:"SA",displayName:this.l10nSaturday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.SA)}],e={id:"SU",displayName:this.l10nSunday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.SU)};return 1===(0,a.yo)()?[...t,e]:[e,...t]},internalDataToSlots(){const t={};return this.internalSlots.forEach((({id:e,slots:n})=>{t[e]=n.map((t=>({start:Math.round(t.start.getTime()/1e3),end:Math.round(t.end.getTime()/1e3)})))})),t},addSlot(t){const e=new Date;e.setHours(9,0,0,0);const n=new Date;n.setHours(17,0,0,0),t.slots.push({start:e,end:n}),this.onChangeSlots()},removeSlot(t,e){t.slots.splice(e,1),this.onChangeSlots()},onChangeSlots(){this.$emit("update:slots",this.internalDataToSlots())}}};var Z=function(){var t=this,e=t._self._c;return e("div",{staticClass:"grid-table"},[t._l(t.internalSlots,(function(n){return[e("div",{key:`day-label-${n.id}`,staticClass:"label-weekday"},[e("span",[t._v(t._s(n.displayName))])]),e("div",{key:`day-slots-${n.id}`,staticClass:"availability-slots"},[e("div",{staticClass:"availability-slot-group"},[t._l(n.slots,(function(r,i){return[e("div",{key:`slot-${n.id}-${i}`,staticClass:"availability-slot"},[e("NcDateTimePicker",{staticClass:"start-date",attrs:{type:"time",format:"H:mm"},on:{change:t.onChangeSlots},model:{value:r.start,callback:function(e){t.$set(r,"start",e)},expression:"slot.start"}}),e("span",{staticClass:"to-text"},[t._v(" "+t._s(t.l10nTo)+" ")]),e("NcDateTimePicker",{staticClass:"end-date",attrs:{type:"time",format:"H:mm"},on:{change:t.onChangeSlots},model:{value:r.end,callback:function(e){t.$set(r,"end",e)},expression:"slot.end"}}),e("NcButton",{key:`slot-${n.id}-${i}-btn`,staticClass:"button",attrs:{type:"tertiary",title:t.l10nDeleteSlot},on:{click:function(e){return t.removeSlot(n,i)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDelete",{attrs:{size:20}})]},proxy:!0}],null,!0)})],1)]}))],2),0===n.slots.length?e("span",{staticClass:"empty-content"},[t._v(" "+t._s(t.l10nEmptyDay)+" ")]):t._e()]),e("NcButton",{key:`add-slot-${n.id}`,staticClass:"add-another button",attrs:{disabled:t.loading,title:t.l10nAddSlot},on:{click:function(e){return t.addSlot(n)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconAdd",{attrs:{size:20}})]},proxy:!0}],null,!0)})]}))],2)};const V=R(F,Z,[],!1,null,"193e3573",null,null).exports;var H=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$={},G={};Object.defineProperty(G,"__esModule",{value:!0}),G.zonesMap=G.defaultStart=void 0,G.defaultStart="19700101T000000",G.zonesMap=new Map([["Africa/Abidjan",{s:{f:"+0000",n:"GMT"}}],["Africa/Accra",{s:{f:"+0000",n:"GMT"}}],["Africa/Addis_Ababa",{s:{f:"+0300",n:"EAT"}}],["Africa/Algiers",{s:{f:"+0100",n:"CET"}}],["Africa/Asmara",{s:{f:"+0300",n:"EAT"}}],["Africa/Bamako",{s:{f:"+0000",n:"GMT"}}],["Africa/Bangui",{s:{f:"+0100",n:"WAT"}}],["Africa/Banjul",{s:{f:"+0000",n:"GMT"}}],["Africa/Bissau",{s:{f:"+0000",n:"GMT"}}],["Africa/Blantyre",{s:{f:"+0200",n:"CAT"}}],["Africa/Brazzaville",{s:{f:"+0100",n:"WAT"}}],["Africa/Bujumbura",{s:{f:"+0200",n:"CAT"}}],["Africa/Cairo",{s:{f:"+0200",n:"EET"}}],["Africa/Casablanca",{s:{f:"+0100",n:"+01"}}],["Africa/Ceuta",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Africa/Conakry",{s:{f:"+0000",n:"GMT"}}],["Africa/Dakar",{s:{f:"+0000",n:"GMT"}}],["Africa/Dar_es_Salaam",{s:{f:"+0300",n:"EAT"}}],["Africa/Djibouti",{s:{f:"+0300",n:"EAT"}}],["Africa/Douala",{s:{f:"+0100",n:"WAT"}}],["Africa/El_Aaiun",{s:{f:"+0100",n:"+01"}}],["Africa/Freetown",{s:{f:"+0000",n:"GMT"}}],["Africa/Gaborone",{s:{f:"+0200",n:"CAT"}}],["Africa/Harare",{s:{f:"+0200",n:"CAT"}}],["Africa/Johannesburg",{s:{f:"+0200",n:"SAST"}}],["Africa/Juba",{s:{f:"+0300",n:"EAT"}}],["Africa/Kampala",{s:{f:"+0300",n:"EAT"}}],["Africa/Khartoum",{s:{f:"+0200",n:"CAT"}}],["Africa/Kigali",{s:{f:"+0200",n:"CAT"}}],["Africa/Kinshasa",{s:{f:"+0100",n:"WAT"}}],["Africa/Lagos",{s:{f:"+0100",n:"WAT"}}],["Africa/Libreville",{s:{f:"+0100",n:"WAT"}}],["Africa/Lome",{s:{f:"+0000",n:"GMT"}}],["Africa/Luanda",{s:{f:"+0100",n:"WAT"}}],["Africa/Lubumbashi",{s:{f:"+0200",n:"CAT"}}],["Africa/Lusaka",{s:{f:"+0200",n:"CAT"}}],["Africa/Malabo",{s:{f:"+0100",n:"WAT"}}],["Africa/Maputo",{s:{f:"+0200",n:"CAT"}}],["Africa/Maseru",{s:{f:"+0200",n:"SAST"}}],["Africa/Mbabane",{s:{f:"+0200",n:"SAST"}}],["Africa/Mogadishu",{s:{f:"+0300",n:"EAT"}}],["Africa/Monrovia",{s:{f:"+0000",n:"GMT"}}],["Africa/Nairobi",{s:{f:"+0300",n:"EAT"}}],["Africa/Ndjamena",{s:{f:"+0100",n:"WAT"}}],["Africa/Niamey",{s:{f:"+0100",n:"WAT"}}],["Africa/Nouakchott",{s:{f:"+0000",n:"GMT"}}],["Africa/Ouagadougou",{s:{f:"+0000",n:"GMT"}}],["Africa/Porto-Novo",{s:{f:"+0100",n:"WAT"}}],["Africa/Sao_Tome",{s:{f:"+0100",n:"WAT"}}],["Africa/Tripoli",{s:{f:"+0200",n:"EET"}}],["Africa/Tunis",{s:{f:"+0100",n:"CET"}}],["Africa/Windhoek",{s:{f:"+0200",n:"CAT"}}],["America/Adak",{s:{f:"-0900",t:"-1000",n:"HST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-1000",t:"-0900",n:"HDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Anchorage",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Anguilla",{s:{f:"-0400",n:"AST"}}],["America/Antigua",{s:{f:"-0400",n:"AST"}}],["America/Araguaina",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Buenos_Aires",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Catamarca",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Cordoba",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Jujuy",{s:{f:"-0300",n:"-03"}}],["America/Argentina/La_Rioja",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Mendoza",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Rio_Gallegos",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Salta",{s:{f:"-0300",n:"-03"}}],["America/Argentina/San_Juan",{s:{f:"-0300",n:"-03"}}],["America/Argentina/San_Luis",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Tucuman",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Ushuaia",{s:{f:"-0300",n:"-03"}}],["America/Aruba",{s:{f:"-0400",n:"AST"}}],["America/Asuncion",{s:{f:"-0300",t:"-0400",n:"-04",s:"19700322T000000",r:{m:3,d:"4SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19701004T000000",r:{m:10,d:"1SU"}}}],["America/Atikokan",{s:{f:"-0500",n:"EST"}}],["America/Bahia_Banderas",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Bahia",{s:{f:"-0300",n:"-03"}}],["America/Barbados",{s:{f:"-0400",n:"AST"}}],["America/Belem",{s:{f:"-0300",n:"-03"}}],["America/Belize",{s:{f:"-0600",n:"CST"}}],["America/Blanc-Sablon",{s:{f:"-0400",n:"AST"}}],["America/Boa_Vista",{s:{f:"-0400",n:"-04"}}],["America/Bogota",{s:{f:"-0500",n:"-05"}}],["America/Boise",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Cambridge_Bay",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Campo_Grande",{s:{f:"-0400",n:"-04",s:"19700215T000000",r:{m:2,d:"3SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19701101T000000",r:{m:11,d:"1SU"}}}],["America/Cancun",{s:{f:"-0500",n:"EST"}}],["America/Caracas",{s:{f:"-0400",n:"-04"}}],["America/Cayenne",{s:{f:"-0300",n:"-03"}}],["America/Cayman",{s:{f:"-0500",n:"EST"}}],["America/Chicago",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Chihuahua",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Costa_Rica",{s:{f:"-0600",n:"CST"}}],["America/Creston",{s:{f:"-0700",n:"MST"}}],["America/Cuiaba",{s:{f:"-0400",n:"-04",s:"19700215T000000",r:{m:2,d:"3SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19701101T000000",r:{m:11,d:"1SU"}}}],["America/Curacao",{s:{f:"-0400",n:"AST"}}],["America/Danmarkshavn",{s:{f:"+0000",n:"GMT"}}],["America/Dawson_Creek",{s:{f:"-0700",n:"MST"}}],["America/Dawson",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Denver",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Detroit",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Dominica",{s:{f:"-0400",n:"AST"}}],["America/Edmonton",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Eirunepe",{s:{f:"-0500",n:"-05"}}],["America/El_Salvador",{s:{f:"-0600",n:"CST"}}],["America/Fort_Nelson",{s:{f:"-0700",n:"MST"}}],["America/Fortaleza",{s:{f:"-0300",n:"-03"}}],["America/Glace_Bay",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Godthab",{s:{f:"-0200",t:"-0300",n:"-03",s:"19701024T230000",r:{m:10,d:"-1SA"}},d:{f:"-0300",t:"-0200",n:"-02",s:"19700328T220000",r:{m:3,d:"-1SA"}}}],["America/Goose_Bay",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Grand_Turk",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Grenada",{s:{f:"-0400",n:"AST"}}],["America/Guadeloupe",{s:{f:"-0400",n:"AST"}}],["America/Guatemala",{s:{f:"-0600",n:"CST"}}],["America/Guayaquil",{s:{f:"-0500",n:"-05"}}],["America/Guyana",{s:{f:"-0400",n:"-04"}}],["America/Halifax",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Havana",{s:{f:"-0400",t:"-0500",n:"CST",s:"19701101T010000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"CDT",s:"19700308T000000",r:{m:3,d:"2SU"}}}],["America/Hermosillo",{s:{f:"-0700",n:"MST"}}],["America/Indiana/Indianapolis",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Knox",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Marengo",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Petersburg",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Tell_City",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Vevay",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Vincennes",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Winamac",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Inuvik",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Iqaluit",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Jamaica",{s:{f:"-0500",n:"EST"}}],["America/Juneau",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Kentucky/Louisville",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Kentucky/Monticello",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Kralendijk",{s:{f:"-0400",n:"AST"}}],["America/La_Paz",{s:{f:"-0400",n:"-04"}}],["America/Lima",{s:{f:"-0500",n:"-05"}}],["America/Los_Angeles",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Lower_Princes",{s:{f:"-0400",n:"AST"}}],["America/Maceio",{s:{f:"-0300",n:"-03"}}],["America/Managua",{s:{f:"-0600",n:"CST"}}],["America/Manaus",{s:{f:"-0400",n:"-04"}}],["America/Marigot",{s:{f:"-0400",n:"AST"}}],["America/Martinique",{s:{f:"-0400",n:"AST"}}],["America/Matamoros",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Mazatlan",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Menominee",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Merida",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Metlakatla",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Mexico_City",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Miquelon",{s:{f:"-0200",t:"-0300",n:"-03",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0300",t:"-0200",n:"-02",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Moncton",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Monterrey",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Montevideo",{s:{f:"-0300",n:"-03"}}],["America/Montserrat",{s:{f:"-0400",n:"AST"}}],["America/Nassau",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/New_York",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Nipigon",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Nome",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Noronha",{s:{f:"-0200",n:"-02"}}],["America/North_Dakota/Beulah",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/North_Dakota/Center",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/North_Dakota/New_Salem",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Ojinaga",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Panama",{s:{f:"-0500",n:"EST"}}],["America/Pangnirtung",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Paramaribo",{s:{f:"-0300",n:"-03"}}],["America/Phoenix",{s:{f:"-0700",n:"MST"}}],["America/Port_of_Spain",{s:{f:"-0400",n:"AST"}}],["America/Port-au-Prince",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Porto_Velho",{s:{f:"-0400",n:"-04"}}],["America/Puerto_Rico",{s:{f:"-0400",n:"AST"}}],["America/Punta_Arenas",{s:{f:"-0300",n:"-03"}}],["America/Rainy_River",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Rankin_Inlet",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Recife",{s:{f:"-0300",n:"-03"}}],["America/Regina",{s:{f:"-0600",n:"CST"}}],["America/Resolute",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Rio_Branco",{s:{f:"-0500",n:"-05"}}],["America/Santarem",{s:{f:"-0300",n:"-03"}}],["America/Santiago",{s:{f:"-0300",t:"-0400",n:"-04",s:"19700405T000000",r:{m:4,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19700906T000000",r:{m:9,d:"1SU"}}}],["America/Santo_Domingo",{s:{f:"-0400",n:"AST"}}],["America/Sao_Paulo",{s:{f:"-0300",n:"-03",s:"19700215T000000",r:{m:2,d:"3SU"}},d:{f:"-0300",t:"-0200",n:"-02",s:"19701101T000000",r:{m:11,d:"1SU"}}}],["America/Scoresbysund",{s:{f:"+0000",t:"-0100",n:"-01",s:"19701025T010000",r:{m:10,d:"-1SU"}},d:{f:"-0100",t:"+0000",n:"+00",s:"19700329T000000",r:{m:3,d:"-1SU"}}}],["America/Sitka",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/St_Barthelemy",{s:{f:"-0400",n:"AST"}}],["America/St_Johns",{s:{f:"-0230",t:"-0330",n:"NST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0330",t:"-0230",n:"NDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/St_Kitts",{s:{f:"-0400",n:"AST"}}],["America/St_Lucia",{s:{f:"-0400",n:"AST"}}],["America/St_Thomas",{s:{f:"-0400",n:"AST"}}],["America/St_Vincent",{s:{f:"-0400",n:"AST"}}],["America/Swift_Current",{s:{f:"-0600",n:"CST"}}],["America/Tegucigalpa",{s:{f:"-0600",n:"CST"}}],["America/Thule",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Thunder_Bay",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Tijuana",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Toronto",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Tortola",{s:{f:"-0400",n:"AST"}}],["America/Vancouver",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Whitehorse",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Winnipeg",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Yakutat",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Yellowknife",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["Antarctica/Casey",{s:{f:"+0800",n:"+08"}}],["Antarctica/Davis",{s:{f:"+0700",n:"+07"}}],["Antarctica/DumontDUrville",{s:{f:"+1000",n:"+10"}}],["Antarctica/Macquarie",{s:{f:"+1100",n:"+11"}}],["Antarctica/Mawson",{s:{f:"+0500",n:"+05"}}],["Antarctica/McMurdo",{s:{f:"+1300",t:"+1200",n:"NZST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1200",t:"+1300",n:"NZDT",s:"19700927T020000",r:{m:9,d:"-1SU"}}}],["Antarctica/Palmer",{s:{f:"-0300",n:"-03"}}],["Antarctica/Rothera",{s:{f:"-0300",n:"-03"}}],["Antarctica/Syowa",{s:{f:"+0300",n:"+03"}}],["Antarctica/Troll",{s:{f:"+0200",t:"+0000",n:"+00",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0200",n:"+02",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Antarctica/Vostok",{s:{f:"+0600",n:"+06"}}],["Arctic/Longyearbyen",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Asia/Aden",{s:{f:"+0300",n:"+03"}}],["Asia/Almaty",{s:{f:"+0600",n:"+06"}}],["Asia/Amman",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701030T010000",r:{m:10,d:"-1FR"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700326T235959",r:{m:3,d:"-1TH"}}}],["Asia/Anadyr",{s:{f:"+1200",n:"+12"}}],["Asia/Aqtau",{s:{f:"+0500",n:"+05"}}],["Asia/Aqtobe",{s:{f:"+0500",n:"+05"}}],["Asia/Ashgabat",{s:{f:"+0500",n:"+05"}}],["Asia/Atyrau",{s:{f:"+0500",n:"+05"}}],["Asia/Baghdad",{s:{f:"+0300",n:"+03"}}],["Asia/Bahrain",{s:{f:"+0300",n:"+03"}}],["Asia/Baku",{s:{f:"+0400",n:"+04"}}],["Asia/Bangkok",{s:{f:"+0700",n:"+07"}}],["Asia/Barnaul",{s:{f:"+0700",n:"+07"}}],["Asia/Beirut",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T000000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T000000",r:{m:3,d:"-1SU"}}}],["Asia/Bishkek",{s:{f:"+0600",n:"+06"}}],["Asia/Brunei",{s:{f:"+0800",n:"+08"}}],["Asia/Chita",{s:{f:"+0900",n:"+09"}}],["Asia/Choibalsan",{s:{f:"+0800",n:"+08"}}],["Asia/Colombo",{s:{f:"+0530",n:"+0530"}}],["Asia/Damascus",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701030T000000",r:{m:10,d:"-1FR"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700327T000000",r:{m:3,d:"-1FR"}}}],["Asia/Dhaka",{s:{f:"+0600",n:"+06"}}],["Asia/Dili",{s:{f:"+0900",n:"+09"}}],["Asia/Dubai",{s:{f:"+0400",n:"+04"}}],["Asia/Dushanbe",{s:{f:"+0500",n:"+05"}}],["Asia/Famagusta",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Asia/Gaza",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701031T010000",r:{m:10,d:"-1SA"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700328T010000",r:{m:3,d:"4SA"}}}],["Asia/Hebron",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701031T010000",r:{m:10,d:"-1SA"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700328T010000",r:{m:3,d:"4SA"}}}],["Asia/Ho_Chi_Minh",{s:{f:"+0700",n:"+07"}}],["Asia/Hong_Kong",{s:{f:"+0800",n:"HKT"}}],["Asia/Hovd",{s:{f:"+0700",n:"+07"}}],["Asia/Irkutsk",{s:{f:"+0800",n:"+08"}}],["Asia/Istanbul",{s:{f:"+0300",n:"+03"}}],["Asia/Jakarta",{s:{f:"+0700",n:"WIB"}}],["Asia/Jayapura",{s:{f:"+0900",n:"WIT"}}],["Asia/Jerusalem",{s:{f:"+0300",t:"+0200",n:"IST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"IDT",s:"19700327T020000",r:{m:3,d:"-1FR"}}}],["Asia/Kabul",{s:{f:"+0430",n:"+0430"}}],["Asia/Kamchatka",{s:{f:"+1200",n:"+12"}}],["Asia/Karachi",{s:{f:"+0500",n:"PKT"}}],["Asia/Kathmandu",{s:{f:"+0545",n:"+0545"}}],["Asia/Khandyga",{s:{f:"+0900",n:"+09"}}],["Asia/Kolkata",{s:{f:"+0530",n:"IST"}}],["Asia/Krasnoyarsk",{s:{f:"+0700",n:"+07"}}],["Asia/Kuala_Lumpur",{s:{f:"+0800",n:"+08"}}],["Asia/Kuching",{s:{f:"+0800",n:"+08"}}],["Asia/Kuwait",{s:{f:"+0300",n:"+03"}}],["Asia/Macau",{s:{f:"+0800",n:"CST"}}],["Asia/Magadan",{s:{f:"+1100",n:"+11"}}],["Asia/Makassar",{s:{f:"+0800",n:"WITA"}}],["Asia/Manila",{s:{f:"+0800",n:"PST"}}],["Asia/Muscat",{s:{f:"+0400",n:"+04"}}],["Asia/Nicosia",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Asia/Novokuznetsk",{s:{f:"+0700",n:"+07"}}],["Asia/Novosibirsk",{s:{f:"+0700",n:"+07"}}],["Asia/Omsk",{s:{f:"+0600",n:"+06"}}],["Asia/Oral",{s:{f:"+0500",n:"+05"}}],["Asia/Phnom_Penh",{s:{f:"+0700",n:"+07"}}],["Asia/Pontianak",{s:{f:"+0700",n:"WIB"}}],["Asia/Pyongyang",{s:{f:"+0900",n:"KST"}}],["Asia/Qatar",{s:{f:"+0300",n:"+03"}}],["Asia/Qyzylorda",{s:{f:"+0600",n:"+06"}}],["Asia/Riyadh",{s:{f:"+0300",n:"+03"}}],["Asia/Sakhalin",{s:{f:"+1100",n:"+11"}}],["Asia/Samarkand",{s:{f:"+0500",n:"+05"}}],["Asia/Seoul",{s:{f:"+0900",n:"KST"}}],["Asia/Shanghai",{s:{f:"+0800",n:"CST"}}],["Asia/Singapore",{s:{f:"+0800",n:"+08"}}],["Asia/Srednekolymsk",{s:{f:"+1100",n:"+11"}}],["Asia/Taipei",{s:{f:"+0800",n:"CST"}}],["Asia/Tashkent",{s:{f:"+0500",n:"+05"}}],["Asia/Tbilisi",{s:{f:"+0400",n:"+04"}}],["Asia/Tehran",{s:{f:"+0430",t:"+0330",n:"+0330",s:"19700921T000000",r:{m:9,d:"3SU"}},d:{f:"+0330",t:"+0430",n:"+0430",s:"19700321T000000",r:{m:3,d:"3SU"}}}],["Asia/Thimphu",{s:{f:"+0600",n:"+06"}}],["Asia/Tokyo",{s:{f:"+0900",n:"JST"}}],["Asia/Tomsk",{s:{f:"+0700",n:"+07"}}],["Asia/Ulaanbaatar",{s:{f:"+0800",n:"+08"}}],["Asia/Urumqi",{s:{f:"+0600",n:"+06"}}],["Asia/Ust-Nera",{s:{f:"+1000",n:"+10"}}],["Asia/Vientiane",{s:{f:"+0700",n:"+07"}}],["Asia/Vladivostok",{s:{f:"+1000",n:"+10"}}],["Asia/Yakutsk",{s:{f:"+0900",n:"+09"}}],["Asia/Yangon",{s:{f:"+0630",n:"+0630"}}],["Asia/Yekaterinburg",{s:{f:"+0500",n:"+05"}}],["Asia/Yerevan",{s:{f:"+0400",n:"+04"}}],["Atlantic/Azores",{s:{f:"+0000",t:"-0100",n:"-01",s:"19701025T010000",r:{m:10,d:"-1SU"}},d:{f:"-0100",t:"+0000",n:"+00",s:"19700329T000000",r:{m:3,d:"-1SU"}}}],["Atlantic/Bermuda",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["Atlantic/Canary",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Atlantic/Cape_Verde",{s:{f:"-0100",n:"-01"}}],["Atlantic/Faroe",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Atlantic/Madeira",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Atlantic/Reykjavik",{s:{f:"+0000",n:"GMT"}}],["Atlantic/South_Georgia",{s:{f:"-0200",n:"-02"}}],["Atlantic/St_Helena",{s:{f:"+0000",n:"GMT"}}],["Atlantic/Stanley",{s:{f:"-0300",n:"-03"}}],["Australia/Adelaide",{s:{f:"+1030",t:"+0930",n:"ACST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+0930",t:"+1030",n:"ACDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Brisbane",{s:{f:"+1000",n:"AEST"}}],["Australia/Broken_Hill",{s:{f:"+1030",t:"+0930",n:"ACST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+0930",t:"+1030",n:"ACDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Currie",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Darwin",{s:{f:"+0930",n:"ACST"}}],["Australia/Eucla",{s:{f:"+0845",n:"+0845"}}],["Australia/Hobart",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Lindeman",{s:{f:"+1000",n:"AEST"}}],["Australia/Lord_Howe",{s:{f:"+1100",t:"+1030",n:"+1030",s:"19700405T020000",r:{m:4,d:"1SU"}},d:{f:"+1030",t:"+1100",n:"+11",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Melbourne",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Perth",{s:{f:"+0800",n:"AWST"}}],["Australia/Sydney",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Etc/GMT-0",{s:{f:"+0000",n:"GMT"}}],["Etc/GMT-1",{s:{f:"-0100",n:"-01"}}],["Etc/GMT-10",{s:{f:"-1000",n:"-10"}}],["Etc/GMT-11",{s:{f:"-1100",n:"-11"}}],["Etc/GMT-12",{s:{f:"-1200",n:"-12"}}],["Etc/GMT-2",{s:{f:"-0200",n:"-02"}}],["Etc/GMT-3",{s:{f:"-0300",n:"-03"}}],["Etc/GMT-4",{s:{f:"-0400",n:"-04"}}],["Etc/GMT-5",{s:{f:"-0500",n:"-05"}}],["Etc/GMT-6",{s:{f:"-0600",n:"-06"}}],["Etc/GMT-7",{s:{f:"-0700",n:"-07"}}],["Etc/GMT-8",{s:{f:"-0800",n:"-08"}}],["Etc/GMT-9",{s:{f:"-0900",n:"-09"}}],["Etc/GMT",{s:{f:"+0000",n:"GMT"}}],["Etc/GMT+0",{s:{f:"+0000",n:"GMT"}}],["Etc/GMT+1",{s:{f:"+0100",n:"+01"}}],["Etc/GMT+10",{s:{f:"+1000",n:"+10"}}],["Etc/GMT+11",{s:{f:"+1100",n:"+11"}}],["Etc/GMT+12",{s:{f:"+1200",n:"+12"}}],["Etc/GMT+13",{s:{f:"+1300",n:"+13"}}],["Etc/GMT+14",{s:{f:"+1400",n:"+14"}}],["Etc/GMT+2",{s:{f:"+0200",n:"+02"}}],["Etc/GMT+3",{s:{f:"+0300",n:"+03"}}],["Etc/GMT+4",{s:{f:"+0400",n:"+04"}}],["Etc/GMT+5",{s:{f:"+0500",n:"+05"}}],["Etc/GMT+6",{s:{f:"+0600",n:"+06"}}],["Etc/GMT+7",{s:{f:"+0700",n:"+07"}}],["Etc/GMT+8",{s:{f:"+0800",n:"+08"}}],["Etc/GMT+9",{s:{f:"+0900",n:"+09"}}],["Etc/GMT0",{s:{f:"+0000",n:"GMT"}}],["Etc/Greenwich",{s:{f:"+0000",n:"GMT"}}],["Etc/UCT",{s:{f:"+0000",n:"UCT"}}],["Etc/Universal",{s:{f:"+0000",n:"UTC"}}],["Etc/UTC",{s:{f:"+0000",n:"UTC"}}],["Etc/Zulu",{s:{f:"+0000",n:"UTC"}}],["Europe/Amsterdam",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Andorra",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Astrakhan",{s:{f:"+0400",n:"+04"}}],["Europe/Athens",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Belgrade",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Berlin",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Bratislava",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Brussels",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Bucharest",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Budapest",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Busingen",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Chisinau",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Copenhagen",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Dublin",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"IST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Gibraltar",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Guernsey",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Helsinki",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Isle_of_Man",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Istanbul",{s:{f:"+0300",n:"+03"}}],["Europe/Jersey",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Kaliningrad",{s:{f:"+0200",n:"EET"}}],["Europe/Kiev",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Kirov",{s:{f:"+0300",n:"+03"}}],["Europe/Lisbon",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Ljubljana",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/London",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Luxembourg",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Madrid",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Malta",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Mariehamn",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Minsk",{s:{f:"+0300",n:"+03"}}],["Europe/Monaco",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Moscow",{s:{f:"+0300",n:"MSK"}}],["Europe/Nicosia",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Oslo",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Paris",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Podgorica",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Prague",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Riga",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Rome",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Samara",{s:{f:"+0400",n:"+04"}}],["Europe/San_Marino",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Sarajevo",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Saratov",{s:{f:"+0400",n:"+04"}}],["Europe/Simferopol",{s:{f:"+0300",n:"MSK"}}],["Europe/Skopje",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Sofia",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Stockholm",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Tallinn",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Tirane",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Ulyanovsk",{s:{f:"+0400",n:"+04"}}],["Europe/Uzhgorod",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Vaduz",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Vatican",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Vienna",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Vilnius",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Volgograd",{s:{f:"+0400",n:"+04"}}],["Europe/Warsaw",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Zagreb",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Zaporozhye",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Zurich",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Indian/Antananarivo",{s:{f:"+0300",n:"EAT"}}],["Indian/Chagos",{s:{f:"+0600",n:"+06"}}],["Indian/Christmas",{s:{f:"+0700",n:"+07"}}],["Indian/Cocos",{s:{f:"+0630",n:"+0630"}}],["Indian/Comoro",{s:{f:"+0300",n:"EAT"}}],["Indian/Kerguelen",{s:{f:"+0500",n:"+05"}}],["Indian/Mahe",{s:{f:"+0400",n:"+04"}}],["Indian/Maldives",{s:{f:"+0500",n:"+05"}}],["Indian/Mauritius",{s:{f:"+0400",n:"+04"}}],["Indian/Mayotte",{s:{f:"+0300",n:"EAT"}}],["Indian/Reunion",{s:{f:"+0400",n:"+04"}}],["Pacific/Apia",{s:{f:"+1400",t:"+1300",n:"+13",s:"19700405T040000",r:{m:4,d:"1SU"}},d:{f:"+1300",t:"+1400",n:"+14",s:"19700927T030000",r:{m:9,d:"-1SU"}}}],["Pacific/Auckland",{s:{f:"+1300",t:"+1200",n:"NZST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1200",t:"+1300",n:"NZDT",s:"19700927T020000",r:{m:9,d:"-1SU"}}}],["Pacific/Bougainville",{s:{f:"+1100",n:"+11"}}],["Pacific/Chatham",{s:{f:"+1345",t:"+1245",n:"+1245",s:"19700405T034500",r:{m:4,d:"1SU"}},d:{f:"+1245",t:"+1345",n:"+1345",s:"19700927T024500",r:{m:9,d:"-1SU"}}}],["Pacific/Chuuk",{s:{f:"+1000",n:"+10"}}],["Pacific/Easter",{s:{f:"-0500",t:"-0600",n:"-06",s:"19700404T220000",r:{m:4,d:"1SA"}},d:{f:"-0600",t:"-0500",n:"-05",s:"19700905T220000",r:{m:9,d:"1SA"}}}],["Pacific/Efate",{s:{f:"+1100",n:"+11"}}],["Pacific/Enderbury",{s:{f:"+1300",n:"+13"}}],["Pacific/Fakaofo",{s:{f:"+1300",n:"+13"}}],["Pacific/Fiji",{s:{f:"+1300",t:"+1200",n:"+12",s:"19700118T030000",r:{m:1,d:"-2SU"}},d:{f:"+1200",t:"+1300",n:"+13",s:"19701101T020000",r:{m:11,d:"1SU"}}}],["Pacific/Funafuti",{s:{f:"+1200",n:"+12"}}],["Pacific/Galapagos",{s:{f:"-0600",n:"-06"}}],["Pacific/Gambier",{s:{f:"-0900",n:"-09"}}],["Pacific/Guadalcanal",{s:{f:"+1100",n:"+11"}}],["Pacific/Guam",{s:{f:"+1000",n:"ChST"}}],["Pacific/Honolulu",{s:{f:"-1000",n:"HST"}}],["Pacific/Kiritimati",{s:{f:"+1400",n:"+14"}}],["Pacific/Kosrae",{s:{f:"+1100",n:"+11"}}],["Pacific/Kwajalein",{s:{f:"+1200",n:"+12"}}],["Pacific/Majuro",{s:{f:"+1200",n:"+12"}}],["Pacific/Marquesas",{s:{f:"-0930",n:"-0930"}}],["Pacific/Midway",{s:{f:"-1100",n:"SST"}}],["Pacific/Nauru",{s:{f:"+1200",n:"+12"}}],["Pacific/Niue",{s:{f:"-1100",n:"-11"}}],["Pacific/Norfolk",{s:{f:"+1100",n:"+11"}}],["Pacific/Noumea",{s:{f:"+1100",n:"+11"}}],["Pacific/Pago_Pago",{s:{f:"-1100",n:"SST"}}],["Pacific/Palau",{s:{f:"+0900",n:"+09"}}],["Pacific/Pitcairn",{s:{f:"-0800",n:"-08"}}],["Pacific/Pohnpei",{s:{f:"+1100",n:"+11"}}],["Pacific/Port_Moresby",{s:{f:"+1000",n:"+10"}}],["Pacific/Rarotonga",{s:{f:"-1000",n:"-10"}}],["Pacific/Saipan",{s:{f:"+1000",n:"ChST"}}],["Pacific/Tahiti",{s:{f:"-1000",n:"-10"}}],["Pacific/Tarawa",{s:{f:"+1200",n:"+12"}}],["Pacific/Tongatapu",{s:{f:"+1300",n:"+13"}}],["Pacific/Wake",{s:{f:"+1200",n:"+12"}}],["Pacific/Wallis",{s:{f:"+1200",n:"+12"}}]]),Object.defineProperty($,"__esModule",{value:!0});var K=$.getZoneString=$.getZoneLines=void 0;const q=G;function X(t){const{n:e,f:n,t:r,r:i,s:a}=t;return[`TZNAME:${e}`,`TZOFFSETFROM:${n}`,`TZOFFSETTO:${r||n}`,`DTSTART:${a||q.defaultStart}`,...i?[`RRULE:FREQ=${i.f||"YEARLY"};BYMONTH=${i.m};BYDAY=${i.d}`]:[]]}function J(t,e=!0){const n=q.zonesMap.get(t);if(n){const{s:r,d:i}=n;return[...e?["BEGIN:VTIMEZONE"]:[],`TZID:${t}`,"BEGIN:STANDARD",...X(r),"END:STANDARD",...i?["BEGIN:DAYLIGHT",...X(i),"END:DAYLIGHT"]:[],...e?["END:VTIMEZONE"]:[]]}}$.getZoneLines=J,K=$.getZoneString=function(t,e=!0){const n=J(t,e);return null==n?void 0:n.join("\r\n")};var Q,tt,et={};(Q=et).foldLength=75,Q.newLineChar="\r\n",Q.helpers={updateTimezones:function(t){var e,n,r,i,a,s;if(!t||"vcalendar"!==t.name)return t;for(e=t.getAllSubcomponents(),n=[],r={},a=0;a<e.length;a++)"vtimezone"===e[a].name?r[s=e[a].getFirstProperty("tzid").getFirstValue()]=e[a]:n=n.concat(e[a].getAllProperties());for(i={},a=0;a<n.length;a++)(s=n[a].getParameter("tzid"))&&(i[s]=!0);for(a in r)r.hasOwnProperty(a)&&!i[a]&&t.removeSubcomponent(r[a]);for(a in i)i.hasOwnProperty(a)&&!r[a]&&Q.TimezoneService.has(a)&&t.addSubcomponent(Q.TimezoneService.get(a).component);return t},isStrictlyNaN:function(t){return"number"==typeof t&&isNaN(t)},strictParseInt:function(t){var e=parseInt(t,10);if(Q.helpers.isStrictlyNaN(e))throw new Error('Could not extract integer from "'+t+'"');return e},formatClassType:function(t,e){if(!(typeof t>"u"))return t instanceof e?t:new e(t)},unescapedIndexOf:function(t,e,n){for(;-1!==(n=t.indexOf(e,n));){if(!(n>0&&"\\"===t[n-1]))return n;n+=1}return-1},binsearchInsert:function(t,e,n){if(!t.length)return 0;for(var r,i,a=0,s=t.length-1;a<=s;)if((i=n(e,t[r=a+Math.floor((s-a)/2)]))<0)s=r-1;else{if(!(i>0))break;a=r+1}return i<0?r:i>0?r+1:r},dumpn:function(){Q.debug&&(Q.helpers.dumpn=typeof P<"u"&&"log"in P?function(t){P.log(t)}:function(t){dump(t+"\n")},Q.helpers.dumpn(arguments[0]))},clone:function(t,e){if(!t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t.getTime());if("clone"in t)return t.clone();if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(e?Q.helpers.clone(t[r],!0):t[r]);return n}var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=e?Q.helpers.clone(t[a],!0):t[a]);return i},foldline:function(t){for(var e="",n=t||"",r=0,i=0;n.length;){var a=n.codePointAt(r);a<128?++i:i+=a<2048?2:a<65536?3:4,i<Q.foldLength+1?r+=a>65535?2:1:(e+=Q.newLineChar+" "+n.substring(0,r),n=n.substring(r),r=i=0)}return e.substr(Q.newLineChar.length+1)},pad2:function(t){switch("string"!=typeof t&&("number"==typeof t&&(t=parseInt(t)),t=String(t)),t.length){case 0:return"00";case 1:return"0"+t;default:return t}},trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)},inherits:function(t,e,n){function r(){}r.prototype=t.prototype,e.prototype=new r,n&&Q.helpers.extend(n,e.prototype)},extend:function(t,e){for(var n in t){var r=Object.getOwnPropertyDescriptor(t,n);r&&!Object.getOwnPropertyDescriptor(e,n)&&Object.defineProperty(e,n,r)}return e}},Q.design=function(){var t=/\\\\|\\,|\\[Nn]/g,e=/\\|,|\n/g;function n(t,e){var n={matches:/.*/,fromICAL:function(e,n){return function(t,e,n){return-1===t.indexOf("\\")?t:(n&&(e=new RegExp(e.source+"|\\\\"+n)),t.replace(e,h))}(e,t,n)},toICAL:function(t,n){var r=e;return n&&(r=new RegExp(r.source+"|"+n)),t.replace(r,(function(t){switch(t){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case"\n":return"\\n";default:return t}}))}};return n}var r={defaultType:"text"},i={defaultType:"text",multiValue:","},a={defaultType:"text",structuredValue:";"},s={defaultType:"integer"},o={defaultType:"date-time",allowedTypes:["date-time","date"]},u={defaultType:"date-time"},l={defaultType:"uri"},c={defaultType:"utc-offset"},d={defaultType:"recur"},f={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function h(t){switch(t){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return"\n";default:return t}}var p={categories:i,url:l,version:r,uid:r},m={boolean:{values:["TRUE","FALSE"],fromICAL:function(t){return"TRUE"===t},toICAL:function(t){return t?"TRUE":"FALSE"}},float:{matches:/^[+-]?\d+\.\d+$/,fromICAL:function(t){var e=parseFloat(t);return Q.helpers.isStrictlyNaN(e)?0:e},toICAL:function(t){return String(t)}},integer:{fromICAL:function(t){var e=parseInt(t);return Q.helpers.isStrictlyNaN(e)?0:e},toICAL:function(t){return String(t)}},"utc-offset":{toICAL:function(t){return t.length<7?t.substr(0,3)+t.substr(4,2):t.substr(0,3)+t.substr(4,2)+t.substr(7,2)},fromICAL:function(t){return t.length<6?t.substr(0,3)+":"+t.substr(3,2):t.substr(0,3)+":"+t.substr(3,2)+":"+t.substr(5,2)},decorate:function(t){return Q.UtcOffset.fromString(t)},undecorate:function(t){return t.toString()}}},y=Q.helpers.extend(m,{text:n(/\\\\|\\;|\\,|\\[Nn]/g,/\\|;|,|\n/g),uri:{},binary:{decorate:function(t){return Q.Binary.fromString(t)},undecorate:function(t){return t.toString()}},"cal-address":{},date:{decorate:function(t,e){return D.strict?Q.Time.fromDateString(t,e):Q.Time.fromString(t,e)},undecorate:function(t){return t.toString()},fromICAL:function(t){return!D.strict&&t.length>=15?y["date-time"].fromICAL(t):t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2)},toICAL:function(t){var e=t.length;return 10==e?t.substr(0,4)+t.substr(5,2)+t.substr(8,2):e>=19?y["date-time"].toICAL(t):t}},"date-time":{fromICAL:function(t){if(!D.strict&&8==t.length)return y.date.fromICAL(t);var e=t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2)+"T"+t.substr(9,2)+":"+t.substr(11,2)+":"+t.substr(13,2);return t[15]&&"Z"===t[15]&&(e+="Z"),e},toICAL:function(t){var e=t.length;if(10==e&&!D.strict)return y.date.toICAL(t);if(e>=19){var n=t.substr(0,4)+t.substr(5,2)+t.substr(8,5)+t.substr(14,2)+t.substr(17,2);return t[19]&&"Z"===t[19]&&(n+="Z"),n}return t},decorate:function(t,e){return D.strict?Q.Time.fromDateTimeString(t,e):Q.Time.fromString(t,e)},undecorate:function(t){return t.toString()}},duration:{decorate:function(t){return Q.Duration.fromString(t)},undecorate:function(t){return t.toString()}},period:{fromICAL:function(t){var e=t.split("/");return e[0]=y["date-time"].fromICAL(e[0]),Q.Duration.isValueString(e[1])||(e[1]=y["date-time"].fromICAL(e[1])),e},toICAL:function(t){return D.strict||10!=t[0].length?t[0]=y["date-time"].toICAL(t[0]):t[0]=y.date.toICAL(t[0]),Q.Duration.isValueString(t[1])||(D.strict||10!=t[1].length?t[1]=y["date-time"].toICAL(t[1]):t[1]=y.date.toICAL(t[1])),t.join("/")},decorate:function(t,e){return Q.Period.fromJSON(t,e,!D.strict)},undecorate:function(t){return t.toJSON()}},recur:{fromICAL:function(t){return Q.Recur._stringToData(t,!0)},toICAL:function(t){var e="";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];"until"==n?r=r.length>10?y["date-time"].toICAL(r):y.date.toICAL(r):"wkst"==n?"number"==typeof r&&(r=Q.Recur.numericDayToIcalDay(r)):Array.isArray(r)&&(r=r.join(",")),e+=n.toUpperCase()+"="+r+";"}return e.substr(0,e.length-1)},decorate:function(t){return Q.Recur.fromData(t)},undecorate:function(t){return t.toJSON()}},time:{fromICAL:function(t){if(t.length<6)return t;var e=t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2);return"Z"===t[6]&&(e+="Z"),e},toICAL:function(t){if(t.length<8)return t;var e=t.substr(0,2)+t.substr(3,2)+t.substr(6,2);return"Z"===t[8]&&(e+="Z"),e}}}),T=Q.helpers.extend(p,{action:r,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:r,class:r,comment:r,completed:u,contact:r,created:u,description:r,dtend:o,dtstamp:u,dtstart:o,due:o,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:d,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":u,location:r,method:r,organizer:{defaultType:"cal-address"},"percent-complete":s,priority:s,prodid:r,"related-to":r,repeat:s,rdate:{defaultType:"date-time",allowedTypes:["date-time","date","period"],multiValue:",",detectType:function(t){return-1!==t.indexOf("/")?"period":-1===t.indexOf("T")?"date":"date-time"}},"recurrence-id":o,resources:i,"request-status":a,rrule:d,sequence:s,status:r,summary:r,transp:r,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:c,tzoffsetto:c,tzurl:l,tzid:r,tzname:r}),g=Q.helpers.extend(m,{text:n(t,e),uri:n(t,e),date:{decorate:function(t){return Q.VCardTime.fromDateAndOrTimeString(t,"date")},undecorate:function(t){return t.toString()},fromICAL:function(t){return 8==t.length?y.date.fromICAL(t):"-"==t[0]&&6==t.length?t.substr(0,4)+"-"+t.substr(4):t},toICAL:function(t){return 10==t.length?y.date.toICAL(t):"-"==t[0]&&7==t.length?t.substr(0,4)+t.substr(5):t}},time:{decorate:function(t){return Q.VCardTime.fromDateAndOrTimeString("T"+t,"time")},undecorate:function(t){return t.toString()},fromICAL:function(t){var e=g.time._splitZone(t,!0),n=e[0],r=e[1];return 6==r.length?r=r.substr(0,2)+":"+r.substr(2,2)+":"+r.substr(4,2):4==r.length&&"-"!=r[0]?r=r.substr(0,2)+":"+r.substr(2,2):5==r.length&&(r=r.substr(0,3)+":"+r.substr(3,2)),5==n.length&&("-"==n[0]||"+"==n[0])&&(n=n.substr(0,3)+":"+n.substr(3)),r+n},toICAL:function(t){var e=g.time._splitZone(t),n=e[0],r=e[1];return 8==r.length?r=r.substr(0,2)+r.substr(3,2)+r.substr(6,2):5==r.length&&"-"!=r[0]?r=r.substr(0,2)+r.substr(3,2):6==r.length&&(r=r.substr(0,3)+r.substr(4,2)),6==n.length&&("-"==n[0]||"+"==n[0])&&(n=n.substr(0,3)+n.substr(4)),r+n},_splitZone:function(t,e){var n,r,i=t.length-1,a=t.length-(e?5:6),s=t[a];return"Z"==t[i]?(n=t[i],r=t.substr(0,i)):t.length>6&&("-"==s||"+"==s)?(n=t.substr(a),r=t.substr(0,a)):(n="",r=t),[n,r]}},"date-time":{decorate:function(t){return Q.VCardTime.fromDateAndOrTimeString(t,"date-time")},undecorate:function(t){return t.toString()},fromICAL:function(t){return g["date-and-or-time"].fromICAL(t)},toICAL:function(t){return g["date-and-or-time"].toICAL(t)}},"date-and-or-time":{decorate:function(t){return Q.VCardTime.fromDateAndOrTimeString(t,"date-and-or-time")},undecorate:function(t){return t.toString()},fromICAL:function(t){var e=t.split("T");return(e[0]?g.date.fromICAL(e[0]):"")+(e[1]?"T"+g.time.fromICAL(e[1]):"")},toICAL:function(t){var e=t.split("T");return g.date.toICAL(e[0])+(e[1]?"T"+g.time.toICAL(e[1]):"")}},timestamp:y["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/}}),v=Q.helpers.extend(p,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:f,bday:f,caladruri:l,caluri:l,clientpidmap:a,email:r,fburl:l,fn:r,gender:a,geo:l,impp:l,key:l,kind:r,lang:{defaultType:"language-tag"},logo:l,member:l,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:i,note:r,org:{defaultType:"text",structuredValue:";"},photo:l,related:l,rev:{defaultType:"timestamp"},role:r,sound:l,source:l,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:r,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:r}),A=Q.helpers.extend(m,{binary:y.binary,date:g.date,"date-time":g["date-time"],"phone-number":{},uri:y.uri,text:y.text,time:y.time,vcard:y.text,"utc-offset":{toICAL:function(t){return t.substr(0,7)},fromICAL:function(t){return t.substr(0,7)},decorate:function(t){return Q.UtcOffset.fromString(t)},undecorate:function(t){return t.toString()}}}),S=Q.helpers.extend(p,{fn:r,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:i,photo:{defaultType:"binary",allowedTypes:["binary","uri"]},bday:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(t){return-1===t.indexOf("T")?"date":"date-time"}},adr:{defaultType:"text",structuredValue:";",multiValue:","},label:r,tel:{defaultType:"phone-number"},email:r,mailer:r,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:r,role:r,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:a,note:i,prodid:r,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(t){return-1===t.indexOf("T")?"date":"date-time"}},"sort-string":r,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:r,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),b={value:y,param:{cutype:{values:["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"],allowXName:!0,allowIanaToken:!0},"delegated-from":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},"delegated-to":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},encoding:{values:["8BIT","BASE64"]},fbtype:{values:["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],allowXName:!0,allowIanaToken:!0},member:{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},partstat:{values:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"],allowXName:!0,allowIanaToken:!0},range:{values:["THISANDFUTURE"]},related:{values:["START","END"]},reltype:{values:["PARENT","CHILD","SIBLING"],allowXName:!0,allowIanaToken:!0},role:{values:["REQ-PARTICIPANT","CHAIR","OPT-PARTICIPANT","NON-PARTICIPANT"],allowXName:!0,allowIanaToken:!0},rsvp:{values:["TRUE","FALSE"]},"sent-by":{valueType:"cal-address"},tzid:{matches:/^\//},value:{values:["binary","boolean","cal-address","date","date-time","duration","float","integer","period","recur","text","time","uri","utc-offset"],allowXName:!0,allowIanaToken:!0}},property:T},E={value:g,param:{type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","time","date-time","date-and-or-time","timestamp","boolean","integer","float","utc-offset","language-tag"],allowXName:!0,allowIanaToken:!0}},property:v},_={value:A,param:{type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","date-time","phone-number","time","boolean","integer","float","utc-offset","vcard","binary"],allowXName:!0,allowIanaToken:!0}},property:S},D={strict:!0,defaultSet:b,defaultType:"unknown",components:{vcard:E,vcard3:_,vevent:b,vtodo:b,vjournal:b,valarm:b,vtimezone:b,daylight:b,standard:b},icalendar:b,vcard:E,vcard3:_,getDesignSet:function(t){return t&&t in D.components?D.components[t]:D.defaultSet}};return D}(),Q.stringify=function(){var t="\r\n",e="unknown",n=Q.design,r=Q.helpers;function i(e){"string"==typeof e[0]&&(e=[e]);for(var n=0,r=e.length,a="";n<r;n++)a+=i.component(e[n])+t;return a}i.component=function(e,r){var a=e[0].toUpperCase(),s="BEGIN:"+a+t,o=e[1],u=0,l=o.length,c=e[0];for("vcard"===c&&e[1].length>0&&!("version"===e[1][0][0]&&"4.0"===e[1][0][3])&&(c="vcard3"),r=r||n.getDesignSet(c);u<l;u++)s+=i.property(o[u],r)+t;for(var d=e[2]||[],f=0,h=d.length;f<h;f++)s+=i.component(d[f],r)+t;return s+"END:"+a},i.property=function(t,r,a){var s,o=t[0].toUpperCase(),u=t[0],l=t[1],c=o;for(s in l){var d=l[s];l.hasOwnProperty(s)&&((p=s in r.param&&r.param[s].multiValue)&&Array.isArray(d)?(r.param[s].multiValueSeparateDQuote&&(p='"'+p+'"'),d=d.map(i._rfc6868Unescape),d=i.multiValue(d,p,"unknown",null,r)):d=i._rfc6868Unescape(d),c+=";"+s.toUpperCase(),c+="="+i.propertyValue(d))}if(3===t.length)return c+":";var f=t[2];r||(r=n.defaultSet);var h,p=!1,m=!1,y=!1;return u in r.property?("multiValue"in(h=r.property[u])&&(p=h.multiValue),"structuredValue"in h&&Array.isArray(t[3])&&(m=h.structuredValue),"defaultType"in h?f===h.defaultType&&(y=!0):f===e&&(y=!0)):f===e&&(y=!0),y||(c+=";VALUE="+f.toUpperCase()),c+=":",c+=p&&m?i.multiValue(t[3],m,f,p,r,m):p?i.multiValue(t.slice(3),p,f,null,r,!1):m?i.multiValue(t[3],m,f,null,r,m):i.value(t[3],f,r,!1),a?c:Q.helpers.foldline(c)},i.propertyValue=function(t){return-1===r.unescapedIndexOf(t,",")&&-1===r.unescapedIndexOf(t,":")&&-1===r.unescapedIndexOf(t,";")?t:'"'+t+'"'},i.multiValue=function(t,e,n,r,a,s){for(var o="",u=t.length,l=0;l<u;l++)r&&Array.isArray(t[l])?o+=i.multiValue(t[l],r,n,null,a,s):o+=i.value(t[l],n,a,s),l!==u-1&&(o+=e);return o},i.value=function(t,e,n,r){return e in n.value&&"toICAL"in n.value[e]?n.value[e].toICAL(t,r):t},i._rfc6868Unescape=function(t){return t.replace(/[\n^"]/g,(function(t){return a[t]}))};var a={'"':"^'","\n":"^n","^":"^^"};return i}(),Q.parse=function(){var t=/[^ \t]/,e=Q.design,n=Q.helpers;function r(t){this.message=t,this.name="ParserError";try{throw new Error}catch(t){if(t.stack){var e=t.stack.split("\n");e.shift(),this.stack=e.join("\n")}}}function i(t){var e={},n=e.component=[];if(e.stack=[n],i._eachLine(t,(function(t,n){i._handleContentLine(n,e)})),e.stack.length>1)throw new r("invalid ical body. component began but did not end");return e=null,1==n.length?n[0]:n}r.prototype=Error.prototype,i.property=function(t,n){var r={component:[[],[]],designSet:n||e.defaultSet};return i._handleContentLine(t,r),r.component[1][0]},i.component=function(t){return i(t)},i.ParserError=r,i._handleContentLine=function(t,n){var a,s,o,u,l,c=t.indexOf(":"),d=t.indexOf(";"),f={};if(-1!==d&&-1!==c&&d>c&&(d=-1),-1!==d){if(o=t.substring(0,d).toLowerCase(),-1==(l=i._parseParameters(t.substring(d),0,n.designSet))[2])throw new r("Invalid parameters in '"+t+"'");if(f=l[0],a=l[1].length+l[2]+d,-1===(s=t.substring(a).indexOf(":")))throw new r("Missing parameter value in '"+t+"'");u=t.substring(a+s+1)}else{if(-1===c)throw new r('invalid line (no token ";" or ":") "'+t+'"');if(o=t.substring(0,c).toLowerCase(),u=t.substring(c+1),"begin"===o){var h=[u.toLowerCase(),[],[]];return 1===n.stack.length?n.component.push(h):n.component[2].push(h),n.stack.push(n.component),n.component=h,void(n.designSet||(n.designSet=e.getDesignSet(n.component[0])))}if("end"===o)return void(n.component=n.stack.pop())}var p,m,y,T=!1,g=!1;o in n.designSet.property&&("multiValue"in(m=n.designSet.property[o])&&(T=m.multiValue),"structuredValue"in m&&(g=m.structuredValue),u&&"detectType"in m&&(p=m.detectType(u))),p||(p="value"in f?f.value.toLowerCase():m?m.defaultType:"unknown"),delete f.value,T&&g?y=[o,f,p,u=i._parseMultiValue(u,g,p,[],T,n.designSet,g)]:T?(y=[o,f,p],i._parseMultiValue(u,T,p,y,null,n.designSet,!1)):y=g?[o,f,p,u=i._parseMultiValue(u,g,p,[],null,n.designSet,g)]:[o,f,p,u=i._parseValue(u,p,n.designSet,!1)],"vcard"===n.component[0]&&0===n.component[1].length&&!("version"===o&&"4.0"===u)&&(n.designSet=e.getDesignSet("vcard3")),n.component[1].push(y)},i._parseValue=function(t,e,n,r){return e in n.value&&"fromICAL"in n.value[e]?n.value[e].fromICAL(t,r):t},i._parseParameters=function(t,e,a){for(var s,o,u,l,c,d,f=e,h=0,p={},m=-1;!1!==h&&-1!==(h=n.unescapedIndexOf(t,"=",h+1));){if(0==(s=t.substr(f+1,h-f-1)).length)throw new r("Empty parameter name in '"+t+"'");if(d=!1,c=!1,l=(o=s.toLowerCase())in a.param&&a.param[o].valueType?a.param[o].valueType:"text",o in a.param&&(c=a.param[o].multiValue,a.param[o].multiValueSeparateDQuote&&(d=i._rfc6868Escape('"'+c+'"'))),'"'===t[h+1]){if(m=h+2,h=n.unescapedIndexOf(t,'"',m),c&&-1!=h)for(var y=!0;y;)t[h+1]==c&&'"'==t[h+2]?h=n.unescapedIndexOf(t,'"',h+3):y=!1;if(-1===h)throw new r('invalid line (no matching double quote) "'+t+'"');u=t.substr(m,h-m),-1===(f=n.unescapedIndexOf(t,";",h))&&(h=!1)}else{m=h+1;var T=n.unescapedIndexOf(t,";",m),g=n.unescapedIndexOf(t,":",m);-1!==g&&T>g?(T=g,h=!1):-1===T?(T=-1===g?t.length:g,h=!1):(f=T,h=T),u=t.substr(m,T-m)}if(u=i._rfc6868Escape(u),c){var v=d||c;u=i._parseMultiValue(u,v,l,[],null,a)}else u=i._parseValue(u,l,a);c&&o in p?Array.isArray(p[o])?p[o].push(u):p[o]=[p[o],u]:p[o]=u}return[p,u,m]},i._rfc6868Escape=function(t){return t.replace(/\^['n^]/g,(function(t){return a[t]}))};var a={"^'":'"',"^n":"\n","^^":"^"};return i._parseMultiValue=function(t,e,r,a,s,o,u){var l,c=0,d=0;if(0===e.length)return t;for(;-1!==(c=n.unescapedIndexOf(t,e,d));)l=t.substr(d,c-d),l=s?i._parseMultiValue(l,s,r,[],null,o,u):i._parseValue(l,r,o,u),a.push(l),d=c+e.length;return l=t.substr(d),l=s?i._parseMultiValue(l,s,r,[],null,o,u):i._parseValue(l,r,o,u),a.push(l),1==a.length?a[0]:a},i._eachLine=function(e,n){var r,i,a,s=e.length,o=e.search(t),u=o;do{a=(u=e.indexOf("\n",o)+1)>1&&"\r"===e[u-2]?2:1,0===u&&(u=s,a=0)," "===(i=e[o])||"\t"===i?r+=e.substr(o+1,u-o-(a+1)):(r&&n(null,r),r=e.substr(o,u-o-a)),o=u}while(u!==s);(r=r.trim()).length&&n(null,r)},i}(),Q.Component=function(){function t(t,e){"string"==typeof t&&(t=[t,[],[]]),this.jCal=t,this.parent=e||null}return t.prototype={_hydratedPropertyCount:0,_hydratedComponentCount:0,get name(){return this.jCal[0]},get _designSet(){return this.parent&&this.parent._designSet||Q.design.getDesignSet(this.name)},_hydrateComponent:function(e){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[e])return this._components[e];var n=new t(this.jCal[2][e],this);return this._hydratedComponentCount++,this._components[e]=n},_hydrateProperty:function(t){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[t])return this._properties[t];var e=new Q.Property(this.jCal[1][t],this);return this._hydratedPropertyCount++,this._properties[t]=e},getFirstSubcomponent:function(t){if(t){for(var e=0,n=this.jCal[2],r=n.length;e<r;e++)if(n[e][0]===t)return this._hydrateComponent(e)}else if(this.jCal[2].length)return this._hydrateComponent(0);return null},getAllSubcomponents:function(t){var e=this.jCal[2].length,n=0;if(t){for(var r=this.jCal[2],i=[];n<e;n++)t===r[n][0]&&i.push(this._hydrateComponent(n));return i}if(!this._components||this._hydratedComponentCount!==e)for(;n<e;n++)this._hydrateComponent(n);return this._components||[]},hasProperty:function(t){for(var e=this.jCal[1],n=e.length,r=0;r<n;r++)if(e[r][0]===t)return!0;return!1},getFirstProperty:function(t){if(t){for(var e=0,n=this.jCal[1],r=n.length;e<r;e++)if(n[e][0]===t)return this._hydrateProperty(e)}else if(this.jCal[1].length)return this._hydrateProperty(0);return null},getFirstPropertyValue:function(t){var e=this.getFirstProperty(t);return e?e.getFirstValue():null},getAllProperties:function(t){var e=this.jCal[1].length,n=0;if(t){for(var r=this.jCal[1],i=[];n<e;n++)t===r[n][0]&&i.push(this._hydrateProperty(n));return i}if(!this._properties||this._hydratedPropertyCount!==e)for(;n<e;n++)this._hydrateProperty(n);return this._properties||[]},_removeObjectByIndex:function(t,e,n){if((e=e||[])[n]){var r=e[n];"parent"in r&&(r.parent=null)}e.splice(n,1),this.jCal[t].splice(n,1)},_removeObject:function(t,e,n){var r=0,i=this.jCal[t],a=i.length,s=this[e];if("string"==typeof n){for(;r<a;r++)if(i[r][0]===n)return this._removeObjectByIndex(t,s,r),!0}else if(s)for(;r<a;r++)if(s[r]&&s[r]===n)return this._removeObjectByIndex(t,s,r),!0;return!1},_removeAllObjects:function(t,e,n){for(var r=this[e],i=this.jCal[t],a=i.length-1;a>=0;a--)(!n||i[a][0]===n)&&this._removeObjectByIndex(t,r,a)},addSubcomponent:function(t){this._components||(this._components=[],this._hydratedComponentCount=0),t.parent&&t.parent.removeSubcomponent(t);var e=this.jCal[2].push(t.jCal);return this._components[e-1]=t,this._hydratedComponentCount++,t.parent=this,t},removeSubcomponent:function(t){var e=this._removeObject(2,"_components",t);return e&&this._hydratedComponentCount--,e},removeAllSubcomponents:function(t){var e=this._removeAllObjects(2,"_components",t);return this._hydratedComponentCount=0,e},addProperty:function(t){if(!(t instanceof Q.Property))throw new TypeError("must instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),t.parent&&t.parent.removeProperty(t);var e=this.jCal[1].push(t.jCal);return this._properties[e-1]=t,this._hydratedPropertyCount++,t.parent=this,t},addPropertyWithValue:function(t,e){var n=new Q.Property(t);return n.setValue(e),this.addProperty(n),n},updatePropertyWithValue:function(t,e){var n=this.getFirstProperty(t);return n?n.setValue(e):n=this.addPropertyWithValue(t,e),n},removeProperty:function(t){var e=this._removeObject(1,"_properties",t);return e&&this._hydratedPropertyCount--,e},removeAllProperties:function(t){var e=this._removeAllObjects(1,"_properties",t);return this._hydratedPropertyCount=0,e},toJSON:function(){return this.jCal},toString:function(){return Q.stringify.component(this.jCal,this._designSet)}},t.fromString=function(e){return new t(Q.parse.component(e))},t}(),Q.Property=function(){var t=Q.design;function e(e,n){this._parent=n||null,"string"==typeof e?(this.jCal=[e,{},t.defaultType],this.jCal[2]=this.getDefaultType()):this.jCal=e,this._updateType()}return e.prototype={get type(){return this.jCal[2]},get name(){return this.jCal[0]},get parent(){return this._parent},set parent(e){var n=!this._parent||e&&e._designSet!=this._parent._designSet;return this._parent=e,this.type==t.defaultType&&n&&(this.jCal[2]=this.getDefaultType(),this._updateType()),e},get _designSet(){return this.parent?this.parent._designSet:t.defaultSet},_updateType:function(){var t=this._designSet;this.type in t.value&&(t.value[this.type],"decorate"in t.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in t.property&&(this.isMultiValue="multiValue"in t.property[this.name],this.isStructuredValue="structuredValue"in t.property[this.name]))},_hydrateValue:function(t){return this._values&&this._values[t]?this._values[t]:this.jCal.length<=3+t?null:this.isDecorated?(this._values||(this._values=[]),this._values[t]=this._decorate(this.jCal[3+t])):this.jCal[3+t]},_decorate:function(t){return this._designSet.value[this.type].decorate(t,this)},_undecorate:function(t){return this._designSet.value[this.type].undecorate(t,this)},_setDecoratedValue:function(t,e){this._values||(this._values=[]),"object"==typeof t&&"icaltype"in t?(this.jCal[3+e]=this._undecorate(t),this._values[e]=t):(this.jCal[3+e]=t,this._values[e]=this._decorate(t))},getParameter:function(t){if(t in this.jCal[1])return this.jCal[1][t]},getFirstParameter:function(t){var e=this.getParameter(t);return Array.isArray(e)?e[0]:e},setParameter:function(t,e){var n=t.toLowerCase();"string"==typeof e&&n in this._designSet.param&&"multiValue"in this._designSet.param[n]&&(e=[e]),this.jCal[1][t]=e},removeParameter:function(t){delete this.jCal[1][t]},getDefaultType:function(){var e=this.jCal[0],n=this._designSet;if(e in n.property){var r=n.property[e];if("defaultType"in r)return r.defaultType}return t.defaultType},resetType:function(t){this.removeAllValues(),this.jCal[2]=t,this._updateType()},getFirstValue:function(){return this._hydrateValue(0)},getValues:function(){var t=this.jCal.length-3;if(t<1)return[];for(var e=0,n=[];e<t;e++)n[e]=this._hydrateValue(e);return n},removeAllValues:function(){this._values&&(this._values.length=0),this.jCal.length=3},setValues:function(t){if(!this.isMultiValue)throw new Error(this.name+": does not not support mulitValue.\noverride isMultiValue");var e=t.length,n=0;if(this.removeAllValues(),e>0&&"object"==typeof t[0]&&"icaltype"in t[0]&&this.resetType(t[0].icaltype),this.isDecorated)for(;n<e;n++)this._setDecoratedValue(t[n],n);else for(;n<e;n++)this.jCal[3+n]=t[n]},setValue:function(t){this.removeAllValues(),"object"==typeof t&&"icaltype"in t&&this.resetType(t.icaltype),this.isDecorated?this._setDecoratedValue(t,0):this.jCal[3]=t},toJSON:function(){return this.jCal},toICALString:function(){return Q.stringify.property(this.jCal,this._designSet,!0)}},e.fromString=function(t,n){return new e(Q.parse.property(t,n))},e}(),Q.UtcOffset=function(){function t(t){this.fromData(t)}return t.prototype={hours:0,minutes:0,factor:1,icaltype:"utc-offset",clone:function(){return Q.UtcOffset.fromSeconds(this.toSeconds())},fromData:function(t){if(t)for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._normalize()},fromSeconds:function(t){var e=Math.abs(t);return this.factor=t<0?-1:1,this.hours=Q.helpers.trunc(e/3600),e-=3600*this.hours,this.minutes=Q.helpers.trunc(e/60),this},toSeconds:function(){return this.factor*(60*this.minutes+3600*this.hours)},compare:function(t){var e=this.toSeconds(),n=t.toSeconds();return(e>n)-(n>e)},_normalize:function(){for(var t=this.toSeconds(),e=this.factor;t<-43200;)t+=97200;for(;t>50400;)t-=97200;this.fromSeconds(t),0==t&&(this.factor=e)},toICALString:function(){return Q.design.icalendar.value["utc-offset"].toICAL(this.toString())},toString:function(){return(1==this.factor?"+":"-")+Q.helpers.pad2(this.hours)+":"+Q.helpers.pad2(this.minutes)}},t.fromString=function(t){var e={};return e.factor="+"===t[0]?1:-1,e.hours=Q.helpers.strictParseInt(t.substr(1,2)),e.minutes=Q.helpers.strictParseInt(t.substr(4,2)),new Q.UtcOffset(e)},t.fromSeconds=function(e){var n=new t;return n.fromSeconds(e),n},t}(),Q.Binary=function(){function t(t){this.value=t}return t.prototype={icaltype:"binary",decodeValue:function(){return this._b64_decode(this.value)},setEncodedValue:function(t){this.value=this._b64_encode(t)},_b64_encode:function(t){var e,n,r,i,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=0,u=0,l="",c=[];if(!t)return t;do{e=(a=t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,c[u++]=s.charAt(e)+s.charAt(n)+s.charAt(r)+s.charAt(i)}while(o<t.length);l=c.join("");var d=t.length%3;return(d?l.slice(0,d-3):l)+"===".slice(d||3)},_b64_decode:function(t){var e,n,r,i,a,s,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,l=0,c=[];if(!t)return t;t+="";do{e=(s=o.indexOf(t.charAt(u++))<<18|o.indexOf(t.charAt(u++))<<12|(i=o.indexOf(t.charAt(u++)))<<6|(a=o.indexOf(t.charAt(u++))))>>16&255,n=s>>8&255,r=255&s,c[l++]=64==i?String.fromCharCode(e):64==a?String.fromCharCode(e,n):String.fromCharCode(e,n,r)}while(u<t.length);return c.join("")},toString:function(){return this.value}},t.fromString=function(e){return new t(e)},t}(),Q.Period=function(t){if(this.wrappedJSObject=this,t&&"start"in t){if(t.start&&!(t.start instanceof Q.Time))throw new TypeError(".start must be an instance of ICAL.Time");this.start=t.start}if(t&&t.end&&t.duration)throw new Error("cannot accept both end and duration");if(t&&"end"in t){if(t.end&&!(t.end instanceof Q.Time))throw new TypeError(".end must be an instance of ICAL.Time");this.end=t.end}if(t&&"duration"in t){if(t.duration&&!(t.duration instanceof Q.Duration))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=t.duration}},Q.Period.prototype={start:null,end:null,duration:null,icalclass:"icalperiod",icaltype:"period",clone:function(){return Q.Period.fromData({start:this.start?this.start.clone():null,end:this.end?this.end.clone():null,duration:this.duration?this.duration.clone():null})},getDuration:function(){return this.duration?this.duration:this.end.subtractDate(this.start)},getEnd:function(){if(this.end)return this.end;var t=this.start.clone();return t.addDuration(this.duration),t},toString:function(){return this.start+"/"+(this.end||this.duration)},toJSON:function(){return[this.start.toString(),(this.end||this.duration).toString()]},toICALString:function(){return this.start.toICALString()+"/"+(this.end||this.duration).toICALString()}},Q.Period.fromString=function(t,e){var n=t.split("/");if(2!==n.length)throw new Error('Invalid string value: "'+t+'" must contain a "/" char.');var r={start:Q.Time.fromDateTimeString(n[0],e)},i=n[1];return Q.Duration.isValueString(i)?r.duration=Q.Duration.fromString(i):r.end=Q.Time.fromDateTimeString(i,e),new Q.Period(r)},Q.Period.fromData=function(t){return new Q.Period(t)},Q.Period.fromJSON=function(t,e,n){function r(t,e){return n?Q.Time.fromString(t,e):Q.Time.fromDateTimeString(t,e)}return Q.Duration.isValueString(t[1])?Q.Period.fromData({start:r(t[0],e),duration:Q.Duration.fromString(t[1])}):Q.Period.fromData({start:r(t[0],e),end:r(t[1],e)})},function(){var t=/([PDWHMTS]{1,1})/;function e(t,e,n){var r;switch(t){case"P":n.isNegative=!(!e||"-"!==e);break;case"D":r="days";break;case"W":r="weeks";break;case"H":r="hours";break;case"M":r="minutes";break;case"S":r="seconds";break;default:return 0}if(r){if(!e&&0!==e)throw new Error('invalid duration value: Missing number before "'+t+'"');var i=parseInt(e,10);if(Q.helpers.isStrictlyNaN(i))throw new Error('invalid duration value: Invalid number "'+e+'" before "'+t+'"');n[r]=i}return 1}Q.Duration=function(t){this.wrappedJSObject=this,this.fromData(t)},Q.Duration.prototype={weeks:0,days:0,hours:0,minutes:0,seconds:0,isNegative:!1,icalclass:"icalduration",icaltype:"duration",clone:function(){return Q.Duration.fromData(this)},toSeconds:function(){var t=this.seconds+60*this.minutes+3600*this.hours+86400*this.days+604800*this.weeks;return this.isNegative?-t:t},fromSeconds:function(t){var e=Math.abs(t);return this.isNegative=t<0,this.days=Q.helpers.trunc(e/86400),this.days%7==0?(this.weeks=this.days/7,this.days=0):this.weeks=0,e-=86400*(this.days+7*this.weeks),this.hours=Q.helpers.trunc(e/3600),e-=3600*this.hours,this.minutes=Q.helpers.trunc(e/60),e-=60*this.minutes,this.seconds=e,this},fromData:function(t){var e=["weeks","days","hours","minutes","seconds","isNegative"];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];this[r]=t&&r in t?t[r]:0}},reset:function(){this.isNegative=!1,this.weeks=0,this.days=0,this.hours=0,this.minutes=0,this.seconds=0},compare:function(t){var e=this.toSeconds(),n=t.toSeconds();return(e>n)-(e<n)},normalize:function(){this.fromSeconds(this.toSeconds())},toString:function(){if(0==this.toSeconds())return"PT0S";var t="";return this.isNegative&&(t+="-"),t+="P",this.weeks&&(t+=this.weeks+"W"),this.days&&(t+=this.days+"D"),(this.hours||this.minutes||this.seconds)&&(t+="T",this.hours&&(t+=this.hours+"H"),this.minutes&&(t+=this.minutes+"M"),this.seconds&&(t+=this.seconds+"S")),t},toICALString:function(){return this.toString()}},Q.Duration.fromSeconds=function(t){return(new Q.Duration).fromSeconds(t)},Q.Duration.isValueString=function(t){return"P"===t[0]||"P"===t[1]},Q.Duration.fromString=function(n){for(var r=0,i=Object.create(null),a=0;-1!==(r=n.search(t));){var s=n[r],o=n.substr(0,r);n=n.substr(r+1),a+=e(s,o,i)}if(a<2)throw new Error('invalid duration value: Not enough duration components in "'+n+'"');return new Q.Duration(i)},Q.Duration.fromData=function(t){return new Q.Duration(t)}}(),tt=["tzid","location","tznames","latitude","longitude"],Q.Timezone=function(t){this.wrappedJSObject=this,this.fromData(t)},Q.Timezone.prototype={tzid:"",location:"",tznames:"",latitude:0,longitude:0,component:null,expandedUntilYear:0,icalclass:"icaltimezone",fromData:function(t){if(this.expandedUntilYear=0,this.changes=[],t instanceof Q.Component)this.component=t;else{if(t&&"component"in t)if("string"==typeof t.component){var e=Q.parse(t.component);this.component=new Q.Component(e)}else t.component instanceof Q.Component?this.component=t.component:this.component=null;for(var n in tt)if(tt.hasOwnProperty(n)){var r=tt[n];t&&r in t&&(this[r]=t[r])}}return this.component instanceof Q.Component&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this},utcOffset:function(t){if(this==Q.Timezone.utcTimezone||this==Q.Timezone.localTimezone||(this._ensureCoverage(t.year),!this.changes.length))return 0;for(var e={year:t.year,month:t.month,day:t.day,hour:t.hour,minute:t.minute,second:t.second},n=this._findNearbyChange(e),r=-1,i=1;;){var a=Q.helpers.clone(this.changes[n],!0);if(a.utcOffset<a.prevUtcOffset?Q.Timezone.adjust_change(a,0,0,0,a.utcOffset):Q.Timezone.adjust_change(a,0,0,0,a.prevUtcOffset),Q.Timezone._compare_change_fn(e,a)>=0?r=n:i=-1,-1==i&&-1!=r)break;if((n+=i)<0)return 0;if(n>=this.changes.length)break}var s=this.changes[r];if(s.utcOffset-s.prevUtcOffset<0&&r>0){var o=Q.helpers.clone(s,!0);if(Q.Timezone.adjust_change(o,0,0,0,o.prevUtcOffset),Q.Timezone._compare_change_fn(e,o)<0){var u=this.changes[r-1];0!=s.is_daylight&&0==u.is_daylight&&(s=u)}}return s.utcOffset},_findNearbyChange:function(t){var e=Q.helpers.binsearchInsert(this.changes,t,Q.Timezone._compare_change_fn);return e>=this.changes.length?this.changes.length-1:e},_ensureCoverage:function(t){if(-1==Q.Timezone._minimumExpansionYear){var e=Q.Time.now();Q.Timezone._minimumExpansionYear=e.year}var n=t;if(n<Q.Timezone._minimumExpansionYear&&(n=Q.Timezone._minimumExpansionYear),(n+=Q.Timezone.EXTRA_COVERAGE)>Q.Timezone.MAX_YEAR&&(n=Q.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYear<t){for(var r=this.component.getAllSubcomponents(),i=r.length,a=0;a<i;a++)this._expandComponent(r[a],n,this.changes);this.changes.sort(Q.Timezone._compare_change_fn),this.expandedUntilYear=n}},_expandComponent:function(t,e,n){if(!t.hasProperty("dtstart")||!t.hasProperty("tzoffsetto")||!t.hasProperty("tzoffsetfrom"))return null;var r,i=t.getFirstProperty("dtstart").getFirstValue();function a(t){return t.factor*(3600*t.hours+60*t.minutes)}function s(){var e={};return e.is_daylight="daylight"==t.name,e.utcOffset=a(t.getFirstProperty("tzoffsetto").getFirstValue()),e.prevUtcOffset=a(t.getFirstProperty("tzoffsetfrom").getFirstValue()),e}if(t.hasProperty("rrule")||t.hasProperty("rdate")){var o=t.getAllProperties("rdate");for(var u in o)if(o.hasOwnProperty(u)){var l=o[u].getFirstValue();(r=s()).year=l.year,r.month=l.month,r.day=l.day,l.isDate?(r.hour=i.hour,r.minute=i.minute,r.second=i.second,i.zone!=Q.Timezone.utcTimezone&&Q.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset)):(r.hour=l.hour,r.minute=l.minute,r.second=l.second,l.zone!=Q.Timezone.utcTimezone&&Q.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset)),n.push(r)}var c=t.getFirstProperty("rrule");if(c){c=c.getFirstValue(),r=s(),c.until&&c.until.zone==Q.Timezone.utcTimezone&&(c.until.adjust(0,0,0,r.prevUtcOffset),c.until.zone=Q.Timezone.localTimezone);for(var d,f=c.iterator(i);(d=f.next())&&(r=s(),!(d.year>e)&&d);)r.year=d.year,r.month=d.month,r.day=d.day,r.hour=d.hour,r.minute=d.minute,r.second=d.second,r.isDate=d.isDate,Q.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset),n.push(r)}}else(r=s()).year=i.year,r.month=i.month,r.day=i.day,r.hour=i.hour,r.minute=i.minute,r.second=i.second,Q.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset),n.push(r);return n},toString:function(){return this.tznames?this.tznames:this.tzid}},Q.Timezone._compare_change_fn=function(t,e){return t.year<e.year?-1:t.year>e.year?1:t.month<e.month?-1:t.month>e.month?1:t.day<e.day?-1:t.day>e.day?1:t.hour<e.hour?-1:t.hour>e.hour?1:t.minute<e.minute?-1:t.minute>e.minute?1:t.second<e.second?-1:t.second>e.second?1:0},Q.Timezone.convert_time=function(t,e,n){if(t.isDate||e.tzid==n.tzid||e==Q.Timezone.localTimezone||n==Q.Timezone.localTimezone)return t.zone=n,t;var r=e.utcOffset(t);return t.adjust(0,0,0,-r),r=n.utcOffset(t),t.adjust(0,0,0,r),null},Q.Timezone.fromData=function(t){return(new Q.Timezone).fromData(t)},Q.Timezone.utcTimezone=Q.Timezone.fromData({tzid:"UTC"}),Q.Timezone.localTimezone=Q.Timezone.fromData({tzid:"floating"}),Q.Timezone.adjust_change=function(t,e,n,r,i){return Q.Time.prototype.adjust.call(t,e,n,r,i,t)},Q.Timezone._minimumExpansionYear=-1,Q.Timezone.MAX_YEAR=2035,Q.Timezone.EXTRA_COVERAGE=5,Q.TimezoneService=function(){var t,e={get count(){return Object.keys(t).length},reset:function(){t=Object.create(null);var e=Q.Timezone.utcTimezone;t.Z=e,t.UTC=e,t.GMT=e},has:function(e){return!!t[e]},get:function(e){return t[e]},register:function(e,n){if(e instanceof Q.Component&&"vtimezone"===e.name&&(e=(n=new Q.Timezone(e)).tzid),!(n instanceof Q.Timezone))throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component");t[e]=n},remove:function(e){return delete t[e]}};return e.reset(),e}(),Q.Time=function(t,e){this.wrappedJSObject=this;var n=this._time=Object.create(null);n.year=0,n.month=1,n.day=1,n.hour=0,n.minute=0,n.second=0,n.isDate=!1,this.fromData(t,e)},Q.Time._dowCache={},Q.Time._wnCache={},Q.Time.prototype={icalclass:"icaltime",_cachedUnixTime:null,get icaltype(){return this.isDate?"date":"date-time"},zone:null,_pendingNormalization:!1,clone:function(){return new Q.Time(this._time,this.zone)},reset:function(){this.fromData(Q.Time.epochTime),this.zone=Q.Timezone.utcTimezone},resetTo:function(t,e,n,r,i,a,s){this.fromData({year:t,month:e,day:n,hour:r,minute:i,second:a,zone:s})},fromJSDate:function(t,e){return t?e?(this.zone=Q.Timezone.utcTimezone,this.year=t.getUTCFullYear(),this.month=t.getUTCMonth()+1,this.day=t.getUTCDate(),this.hour=t.getUTCHours(),this.minute=t.getUTCMinutes(),this.second=t.getUTCSeconds()):(this.zone=Q.Timezone.localTimezone,this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate(),this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds()):this.reset(),this._cachedUnixTime=null,this},fromData:function(t,e){if(t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if("icaltype"===n)continue;this[n]=t[n]}if(e&&(this.zone=e),t&&!("isDate"in t)?this.isDate=!("hour"in t):t&&"isDate"in t&&(this.isDate=t.isDate),t&&"timezone"in t){var r=Q.TimezoneService.get(t.timezone);this.zone=r||Q.Timezone.localTimezone}return t&&"zone"in t&&(this.zone=t.zone),this.zone||(this.zone=Q.Timezone.localTimezone),this._cachedUnixTime=null,this},dayOfWeek:function(t){var e=t||Q.Time.SUNDAY,n=(this.year<<12)+(this.month<<8)+(this.day<<3)+e;if(n in Q.Time._dowCache)return Q.Time._dowCache[n];var r=this.day,i=this.month+(this.month<3?12:0),a=this.year-(this.month<3?1:0),s=r+a+Q.helpers.trunc(26*(i+1)/10)+Q.helpers.trunc(a/4);return s=((s+=6*Q.helpers.trunc(a/100)+Q.helpers.trunc(a/400))+7-e)%7+1,Q.Time._dowCache[n]=s,s},dayOfYear:function(){var t=Q.Time.isLeapYear(this.year)?1:0;return Q.Time.daysInYearPassedMonth[t][this.month-1]+this.day},startOfWeek:function(t){var e=t||Q.Time.SUNDAY,n=this.clone();return n.day-=(this.dayOfWeek()+7-e)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},endOfWeek:function(t){var e=t||Q.Time.SUNDAY,n=this.clone();return n.day+=(7-this.dayOfWeek()+e-Q.Time.SUNDAY)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},startOfMonth:function(){var t=this.clone();return t.day=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},endOfMonth:function(){var t=this.clone();return t.day=Q.Time.daysInMonth(t.month,t.year),t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},startOfYear:function(){var t=this.clone();return t.day=1,t.month=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},endOfYear:function(){var t=this.clone();return t.day=31,t.month=12,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},startDoyWeek:function(t){var e=t||Q.Time.SUNDAY,n=this.dayOfWeek()-e;return n<0&&(n+=7),this.dayOfYear()-n},getDominicalLetter:function(){return Q.Time.getDominicalLetter(this.year)},nthWeekDay:function(t,e){var n,r=Q.Time.daysInMonth(this.month,this.year),i=e,a=0,s=this.clone();if(i>=0){s.day=1,0!=i&&i--,a=s.day;var o=t-s.dayOfWeek();o<0&&(o+=7),a+=o,a-=t,n=t}else s.day=r,i++,(n=s.dayOfWeek()-t)<0&&(n+=7),n=r-n;return a+(n+7*i)},isNthWeekDay:function(t,e){var n=this.dayOfWeek();return 0===e&&n===t||this.nthWeekDay(t,e)===this.day},weekNumber:function(t){var e=(this.year<<12)+(this.month<<8)+(this.day<<3)+t;if(e in Q.Time._wnCache)return Q.Time._wnCache[e];var n,r=this.clone();r.isDate=!0;var i=this.year;12==r.month&&r.day>25?(n=Q.Time.weekOneStarts(i+1,t),r.compare(n)<0?n=Q.Time.weekOneStarts(i,t):i++):(n=Q.Time.weekOneStarts(i,t),r.compare(n)<0&&(n=Q.Time.weekOneStarts(--i,t)));var a=r.subtractDate(n).toSeconds()/86400,s=Q.helpers.trunc(a/7)+1;return Q.Time._wnCache[e]=s,s},addDuration:function(t){var e=t.isNegative?-1:1,n=this.second,r=this.minute,i=this.hour,a=this.day;n+=e*t.seconds,r+=e*t.minutes,i+=e*t.hours,a+=e*t.days,a+=7*e*t.weeks,this.second=n,this.minute=r,this.hour=i,this.day=a,this._cachedUnixTime=null},subtractDate:function(t){var e=this.toUnixTime()+this.utcOffset(),n=t.toUnixTime()+t.utcOffset();return Q.Duration.fromSeconds(e-n)},subtractDateTz:function(t){var e=this.toUnixTime(),n=t.toUnixTime();return Q.Duration.fromSeconds(e-n)},compare:function(t){var e=this.toUnixTime(),n=t.toUnixTime();return e>n?1:n>e?-1:0},compareDateOnlyTz:function(t,e){function n(t){return Q.Time._cmp_attr(r,i,t)}var r=this.convertToZone(e),i=t.convertToZone(e),a=0;return 0!=(a=n("year"))||0!=(a=n("month"))||(a=n("day")),a},convertToZone:function(t){var e=this.clone(),n=this.zone.tzid==t.tzid;return!this.isDate&&!n&&Q.Timezone.convert_time(e,this.zone,t),e.zone=t,e},utcOffset:function(){return this.zone==Q.Timezone.localTimezone||this.zone==Q.Timezone.utcTimezone?0:this.zone.utcOffset(this)},toICALString:function(){var t=this.toString();return t.length>10?Q.design.icalendar.value["date-time"].toICAL(t):Q.design.icalendar.value.date.toICAL(t)},toString:function(){var t=this.year+"-"+Q.helpers.pad2(this.month)+"-"+Q.helpers.pad2(this.day);return this.isDate||(t+="T"+Q.helpers.pad2(this.hour)+":"+Q.helpers.pad2(this.minute)+":"+Q.helpers.pad2(this.second),this.zone===Q.Timezone.utcTimezone&&(t+="Z")),t},toJSDate:function(){return this.zone==Q.Timezone.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(1e3*this.toUnixTime())},_normalize:function(){return this._time.isDate,this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this},adjust:function(t,e,n,r,i){var a,s,o,u,l,c,d,f=0,h=0,p=i||this._time;if(p.isDate||(o=p.second+r,p.second=o%60,a=Q.helpers.trunc(o/60),p.second<0&&(p.second+=60,a--),u=p.minute+n+a,p.minute=u%60,s=Q.helpers.trunc(u/60),p.minute<0&&(p.minute+=60,s--),l=p.hour+e+s,p.hour=l%24,f=Q.helpers.trunc(l/24),p.hour<0&&(p.hour+=24,f--)),p.month>12?h=Q.helpers.trunc((p.month-1)/12):p.month<1&&(h=Q.helpers.trunc(p.month/12)-1),p.year+=h,p.month-=12*h,(c=p.day+t+f)>0)for(;!(c<=(d=Q.Time.daysInMonth(p.month,p.year)));)p.month++,p.month>12&&(p.year++,p.month=1),c-=d;else for(;c<=0;)1==p.month?(p.year--,p.month=12):p.month--,c+=Q.Time.daysInMonth(p.month,p.year);return p.day=c,this._cachedUnixTime=null,this},fromUnixTime:function(t){this.zone=Q.Timezone.utcTimezone;var e=Q.Time.epochTime.clone();e.adjust(0,0,0,t),this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=Math.floor(e.second),this._cachedUnixTime=null},toUnixTime:function(){if(null!==this._cachedUnixTime)return this._cachedUnixTime;var t=this.utcOffset(),e=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-t);return this._cachedUnixTime=e/1e3,this._cachedUnixTime},toJSON:function(){for(var t,e=["year","month","day","hour","minute","second","isDate"],n=Object.create(null),r=0,i=e.length;r<i;r++)n[t=e[r]]=this[t];return this.zone&&(n.timezone=this.zone.tzid),n}},function(){function t(t){Object.defineProperty(Q.Time.prototype,t,{get:function(){return this._pendingNormalization&&(this._normalize(),this._pendingNormalization=!1),this._time[t]},set:function(e){return"isDate"===t&&e&&!this._time.isDate&&this.adjust(0,0,0,0),this._cachedUnixTime=null,this._pendingNormalization=!0,this._time[t]=e,e}})}"defineProperty"in Object&&(t("year"),t("month"),t("day"),t("hour"),t("minute"),t("second"),t("isDate"))}(),Q.Time.daysInMonth=function(t,e){var n=30;return t<1||t>12||(n=[0,31,28,31,30,31,30,31,31,30,31,30,31][t],2==t&&(n+=Q.Time.isLeapYear(e))),n},Q.Time.isLeapYear=function(t){return t<=1752?t%4==0:t%4==0&&t%100!=0||t%400==0},Q.Time.fromDayOfYear=function(t,e){var n=e,r=t,i=new Q.Time;i.auto_normalize=!1;var a=Q.Time.isLeapYear(n)?1:0;if(r<1)return n--,a=Q.Time.isLeapYear(n)?1:0,r+=Q.Time.daysInYearPassedMonth[a][12],Q.Time.fromDayOfYear(r,n);if(r>Q.Time.daysInYearPassedMonth[a][12])return a=Q.Time.isLeapYear(n)?1:0,r-=Q.Time.daysInYearPassedMonth[a][12],n++,Q.Time.fromDayOfYear(r,n);i.year=n,i.isDate=!0;for(var s=11;s>=0;s--)if(r>Q.Time.daysInYearPassedMonth[a][s]){i.month=s+1,i.day=r-Q.Time.daysInYearPassedMonth[a][s];break}return i.auto_normalize=!0,i},Q.Time.fromStringv2=function(t){return new Q.Time({year:parseInt(t.substr(0,4),10),month:parseInt(t.substr(5,2),10),day:parseInt(t.substr(8,2),10),isDate:!0})},Q.Time.fromDateString=function(t){return new Q.Time({year:Q.helpers.strictParseInt(t.substr(0,4)),month:Q.helpers.strictParseInt(t.substr(5,2)),day:Q.helpers.strictParseInt(t.substr(8,2)),isDate:!0})},Q.Time.fromDateTimeString=function(t,e){if(t.length<19)throw new Error('invalid date-time value: "'+t+'"');var n;return t[19]&&"Z"===t[19]?n="Z":e&&(n=e.getParameter("tzid")),new Q.Time({year:Q.helpers.strictParseInt(t.substr(0,4)),month:Q.helpers.strictParseInt(t.substr(5,2)),day:Q.helpers.strictParseInt(t.substr(8,2)),hour:Q.helpers.strictParseInt(t.substr(11,2)),minute:Q.helpers.strictParseInt(t.substr(14,2)),second:Q.helpers.strictParseInt(t.substr(17,2)),timezone:n})},Q.Time.fromString=function(t,e){return t.length>10?Q.Time.fromDateTimeString(t,e):Q.Time.fromDateString(t)},Q.Time.fromJSDate=function(t,e){return(new Q.Time).fromJSDate(t,e)},Q.Time.fromData=function(t,e){return(new Q.Time).fromData(t,e)},Q.Time.now=function(){return Q.Time.fromJSDate(new Date,!1)},Q.Time.weekOneStarts=function(t,e){var n=Q.Time.fromData({year:t,month:1,day:1,isDate:!0}),r=n.dayOfWeek(),i=e||Q.Time.DEFAULT_WEEK_START;return r>Q.Time.THURSDAY&&(n.day+=7),i>Q.Time.THURSDAY&&(n.day-=7),n.day-=r-i,n},Q.Time.getDominicalLetter=function(t){var e="GFEDCBA",n=(t+(t/4|0)+(t/400|0)-(t/100|0)-1)%7;return Q.Time.isLeapYear(t)?e[(n+6)%7]+e[n]:e[n]},Q.Time.epochTime=Q.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"}),Q.Time._cmp_attr=function(t,e,n){return t[n]>e[n]?1:t[n]<e[n]?-1:0},Q.Time.daysInYearPassedMonth=[[0,31,59,90,120,151,181,212,243,273,304,334,365],[0,31,60,91,121,152,182,213,244,274,305,335,366]],Q.Time.SUNDAY=1,Q.Time.MONDAY=2,Q.Time.TUESDAY=3,Q.Time.WEDNESDAY=4,Q.Time.THURSDAY=5,Q.Time.FRIDAY=6,Q.Time.SATURDAY=7,Q.Time.DEFAULT_WEEK_START=Q.Time.MONDAY,Q.VCardTime=function(t,e,n){this.wrappedJSObject=this;var r=this._time=Object.create(null);r.year=null,r.month=null,r.day=null,r.hour=null,r.minute=null,r.second=null,this.icaltype=n||"date-and-or-time",this.fromData(t,e)},Q.helpers.inherits(Q.Time,Q.VCardTime,{icalclass:"vcardtime",icaltype:"date-and-or-time",zone:null,clone:function(){return new Q.VCardTime(this._time,this.zone,this.icaltype)},_normalize:function(){return this},utcOffset:function(){return this.zone instanceof Q.UtcOffset?this.zone.toSeconds():Q.Time.prototype.utcOffset.apply(this,arguments)},toICALString:function(){return Q.design.vcard.value[this.icaltype].toICAL(this.toString())},toString:function(){var t,e=Q.helpers.pad2,n=this.year,r=this.month,i=this.day,a=this.hour,s=this.minute,o=this.second,u=null!==r,l=null!==i,c=null!==a,d=null!==s,f=null!==o,h=(null!==n?e(n)+(u||l?"-":""):u||l?"--":"")+(u?e(r):"")+(l?"-"+e(i):""),p=(c?e(a):"-")+(c&&d?":":"")+(d?e(s):"")+(c||d?"":"-")+(d&&f?":":"")+(f?e(o):"");switch(t=this.zone===Q.Timezone.utcTimezone?"Z":this.zone instanceof Q.UtcOffset?this.zone.toString():this.zone===Q.Timezone.localTimezone?"":this.zone instanceof Q.Timezone?Q.UtcOffset.fromSeconds(this.zone.utcOffset(this)).toString():"",this.icaltype){case"time":return p+t;case"date-and-or-time":case"date-time":return h+("--"==p?"":"T"+p+t);case"date":return h}return null}}),Q.VCardTime.fromDateAndOrTimeString=function(t,e){function n(t,e,n){return t?Q.helpers.strictParseInt(t.substr(e,n)):null}var r=t.split("T"),i=r[0],a=r[1],s=a?Q.design.vcard.value.time._splitZone(a):[],o=s[0],u=s[1];Q.helpers.strictParseInt;var l=i?i.length:0,c=u?u.length:0,d=i&&"-"==i[0]&&"-"==i[1],f=u&&"-"==u[0],h={year:d?null:n(i,0,4),month:!d||4!=l&&7!=l?7==l||10==l?n(i,5,2):null:n(i,2,2),day:5==l?n(i,3,2):7==l&&d?n(i,5,2):10==l?n(i,8,2):null,hour:f?null:n(u,0,2),minute:f&&3==c?n(u,1,2):c>4?n(u,f?1:3,2):null,second:4==c?n(u,2,2):6==c?n(u,4,2):8==c?n(u,6,2):null};return o="Z"==o?Q.Timezone.utcTimezone:o&&":"==o[3]?Q.UtcOffset.fromString(o):null,new Q.VCardTime(h,o,e)},function(){var t={SU:Q.Time.SUNDAY,MO:Q.Time.MONDAY,TU:Q.Time.TUESDAY,WE:Q.Time.WEDNESDAY,TH:Q.Time.THURSDAY,FR:Q.Time.FRIDAY,SA:Q.Time.SATURDAY},e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);function r(t,e,n,r){var i=r;if("+"===r[0]&&(i=r.substr(1)),i=Q.helpers.strictParseInt(i),void 0!==e&&r<e)throw new Error(t+': invalid value "'+r+'" must be > '+e);if(void 0!==n&&r>n)throw new Error(t+': invalid value "'+r+'" must be < '+e);return i}Q.Recur=function(t){this.wrappedJSObject=this,this.parts={},t&&"object"==typeof t&&this.fromData(t)},Q.Recur.prototype={parts:null,interval:1,wkst:Q.Time.MONDAY,until:null,count:null,freq:null,icalclass:"icalrecur",icaltype:"recur",iterator:function(t){return new Q.RecurIterator({rule:this,dtstart:t})},clone:function(){return new Q.Recur(this.toJSON())},isFinite:function(){return!(!this.count&&!this.until)},isByCount:function(){return!(!this.count||this.until)},addComponent:function(t,e){var n=t.toUpperCase();n in this.parts?this.parts[n].push(e):this.parts[n]=[e]},setComponent:function(t,e){this.parts[t.toUpperCase()]=e.slice()},getComponent:function(t){var e=t.toUpperCase();return e in this.parts?this.parts[e].slice():[]},getNextOccurrence:function(t,e){var n,r=this.iterator(t);do{n=r.next()}while(n&&n.compare(e)<=0);return n&&e.zone&&(n.zone=e.zone),n},fromData:function(t){for(var e in t){var n=e.toUpperCase();n in u?Array.isArray(t[e])?this.parts[n]=t[e]:this.parts[n]=[t[e]]:this[e]=t[e]}this.interval&&"number"!=typeof this.interval&&o.INTERVAL(this.interval,this),this.wkst&&"number"!=typeof this.wkst&&(this.wkst=Q.Recur.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof Q.Time)&&(this.until=Q.Time.fromString(this.until))},toJSON:function(){var t=Object.create(null);for(var e in t.freq=this.freq,this.count&&(t.count=this.count),this.interval>1&&(t.interval=this.interval),this.parts)if(this.parts.hasOwnProperty(e)){var n=this.parts[e];Array.isArray(n)&&1==n.length?t[e.toLowerCase()]=n[0]:t[e.toLowerCase()]=Q.helpers.clone(this.parts[e])}return this.until&&(t.until=this.until.toString()),"wkst"in this&&this.wkst!==Q.Time.DEFAULT_WEEK_START&&(t.wkst=Q.Recur.numericDayToIcalDay(this.wkst)),t},toString:function(){var t="FREQ="+this.freq;for(var e in this.count&&(t+=";COUNT="+this.count),this.interval>1&&(t+=";INTERVAL="+this.interval),this.parts)this.parts.hasOwnProperty(e)&&(t+=";"+e+"="+this.parts[e]);return this.until&&(t+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==Q.Time.DEFAULT_WEEK_START&&(t+=";WKST="+Q.Recur.numericDayToIcalDay(this.wkst)),t}},Q.Recur.icalDayToNumericDay=function(e,n){var r=n||Q.Time.SUNDAY;return(t[e]-r+7)%7+1},Q.Recur.numericDayToIcalDay=function(t,n){var r=t+(n||Q.Time.SUNDAY)-Q.Time.SUNDAY;return r>7&&(r-=7),e[r]};var i=/^(SU|MO|TU|WE|TH|FR|SA)$/,a=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,s=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],o={FREQ:function(t,e,n){if(-1===s.indexOf(t))throw new Error('invalid frequency "'+t+'" expected: "'+s.join(", ")+'"');e.freq=t},COUNT:function(t,e,n){e.count=Q.helpers.strictParseInt(t)},INTERVAL:function(t,e,n){e.interval=Q.helpers.strictParseInt(t),e.interval<1&&(e.interval=1)},UNTIL:function(t,e,n){t.length>10?e.until=Q.design.icalendar.value["date-time"].fromICAL(t):e.until=Q.design.icalendar.value.date.fromICAL(t),n||(e.until=Q.Time.fromString(e.until))},WKST:function(t,e,n){if(!i.test(t))throw new Error('invalid WKST value "'+t+'"');e.wkst=Q.Recur.icalDayToNumericDay(t)}},u={BYSECOND:r.bind(this,"BYSECOND",0,60),BYMINUTE:r.bind(this,"BYMINUTE",0,59),BYHOUR:r.bind(this,"BYHOUR",0,23),BYDAY:function(t){if(a.test(t))return t;throw new Error('invalid BYDAY value "'+t+'"')},BYMONTHDAY:r.bind(this,"BYMONTHDAY",-31,31),BYYEARDAY:r.bind(this,"BYYEARDAY",-366,366),BYWEEKNO:r.bind(this,"BYWEEKNO",-53,53),BYMONTH:r.bind(this,"BYMONTH",1,12),BYSETPOS:r.bind(this,"BYSETPOS",-366,366)};Q.Recur.fromString=function(t){var e=Q.Recur._stringToData(t,!1);return new Q.Recur(e)},Q.Recur.fromData=function(t){return new Q.Recur(t)},Q.Recur._stringToData=function(t,e){for(var n=Object.create(null),r=t.split(";"),i=r.length,a=0;a<i;a++){var s=r[a].split("="),l=s[0].toUpperCase(),c=s[0].toLowerCase(),d=e?c:l,f=s[1];if(l in u){for(var h=f.split(","),p=0,m=h.length;p<m;p++)h[p]=u[l](h[p]);n[d]=1==h.length?h[0]:h}else l in o?o[l](f,n,e):n[c]=f}return n}}(),Q.RecurIterator=function(){function t(t){this.fromData(t)}return t.prototype={completed:!1,rule:null,dtstart:null,last:null,occurrence_number:0,by_indices:null,initialized:!1,by_data:null,days:null,days_index:0,fromData:function(t){if(this.rule=Q.helpers.formatClassType(t.rule,Q.Recur),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=Q.helpers.formatClassType(t.dtstart,Q.Time),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");t.by_data?this.by_data=t.by_data:this.by_data=Q.helpers.clone(this.rule.parts,!0),t.occurrence_number&&(this.occurrence_number=t.occurrence_number),this.days=t.days||[],t.last&&(this.last=Q.helpers.formatClassType(t.last,Q.Time)),this.by_indices=t.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=t.initialized||!1,this.initialized||this.init()},init:function(){this.initialized=!0,this.last=this.dtstart.clone();var t=this.by_data;if("BYDAY"in t&&this.sort_byday_rules(t.BYDAY),"BYYEARDAY"in t&&("BYMONTH"in t||"BYWEEKNO"in t||"BYMONTHDAY"in t||"BYDAY"in t))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in t&&"BYMONTHDAY"in t)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if("MONTHLY"==this.rule.freq&&("BYYEARDAY"in t||"BYWEEKNO"in t))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if("WEEKLY"==this.rule.freq&&("BYYEARDAY"in t||"BYMONTHDAY"in t))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if("YEARLY"!=this.rule.freq&&"BYYEARDAY"in t)throw new Error("BYYEARDAY may only appear in YEARLY rules");if(this.last.second=this.setup_defaults("BYSECOND","SECONDLY",this.dtstart.second),this.last.minute=this.setup_defaults("BYMINUTE","MINUTELY",this.dtstart.minute),this.last.hour=this.setup_defaults("BYHOUR","HOURLY",this.dtstart.hour),this.last.day=this.setup_defaults("BYMONTHDAY","DAILY",this.dtstart.day),this.last.month=this.setup_defaults("BYMONTH","MONTHLY",this.dtstart.month),"WEEKLY"==this.rule.freq)if("BYDAY"in t){var e=(u=this.ruleDayOfWeek(t.BYDAY[0],this.rule.wkst))[0],n=(l=u[1])-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)<l&&n>=0||n<0)&&(this.last.day+=n)}else{var r=Q.Recur.numericDayToIcalDay(this.dtstart.dayOfWeek());t.BYDAY=[r]}if("YEARLY"==this.rule.freq){for(;this.expand_year_days(this.last.year),!(this.days.length>0);)this.increment_year(this.rule.interval);this._nextByYearDay()}if("MONTHLY"==this.rule.freq&&this.has_by_data("BYDAY")){var i=null,a=this.last.clone(),s=Q.Time.daysInMonth(this.last.month,this.last.year);for(var o in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(o)){this.last=a.clone(),e=(u=this.ruleDayOfWeek(this.by_data.BYDAY[o]))[0];var u,l=u[1],c=this.last.nthWeekDay(l,e);if(e>=6||e<=-6)throw new Error("Malformed values in BYDAY part");if(c>s||c<=0){if(i&&i.month==a.month)continue;for(;c>s||c<=0;)this.increment_month(),s=Q.Time.daysInMonth(this.last.month,this.last.year),c=this.last.nthWeekDay(l,e)}this.last.day=c,(!i||this.last.compare(i)<0)&&(i=this.last.clone())}if(this.last=i.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>s||0==this.last.day)throw new Error("Malformed values in BYDAY part")}else this.has_by_data("BYMONTHDAY")&&this.last.day<0&&(s=Q.Time.daysInMonth(this.last.month,this.last.year),this.last.day=s+this.last.day+1)},next:function(){var t,e=this.last?this.last.clone():null;if(this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)return this.completed=!0,null;if(0==this.occurrence_number&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;do{switch(t=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":t=this.next_month();break;case"YEARLY":this.next_year();break;default:return null}}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!t);if(0==this.last.compare(e))throw new Error("Same occurrence found twice, protecting you from death by recursion");return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)},next_second:function(){return this.next_generic("BYSECOND","SECONDLY","second","minute")},increment_second:function(t){return this.increment_generic(t,"second",60,"minute")},next_minute:function(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")},increment_minute:function(t){return this.increment_generic(t,"minute",60,"hour")},next_hour:function(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")},increment_hour:function(t){this.increment_generic(t,"hour",24,"monthday")},next_day:function(){this.by_data;var t="DAILY"==this.rule.freq;return 0==this.next_hour()||(t?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0},next_week:function(){var t=0;if(0==this.next_weekday_by_week())return t;if(this.has_by_data("BYWEEKNO")){++this.by_indices.BYWEEKNO,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,t=1),this.last.month=1,this.last.day=1;var e=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*e,t&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return t},normalizeByMonthDayRules:function(t,e,n){for(var r,i=Q.Time.daysInMonth(e,t),a=[],s=0,o=n.length;s<o;s++)if(r=n[s],!(Math.abs(r)>i)){if(r<0)r=i+(r+1);else if(0===r)continue;-1===a.indexOf(r)&&a.push(r)}return a.sort((function(t,e){return t-e}))},_byDayAndMonthDay:function(t){var e,n,r,i,a=this.by_data.BYDAY,s=0,o=a.length,u=0,l=this,c=this.last.day;function d(){for(i=Q.Time.daysInMonth(l.last.month,l.last.year),e=l.normalizeByMonthDayRules(l.last.year,l.last.month,l.by_data.BYMONTHDAY),r=e.length;e[s]<=c&&(!t||e[s]!=c)&&s<r-1;)s++}function f(){c=0,l.increment_month(),s=0,d()}d(),t&&(c-=1);for(var h=48;!u&&h;)if(h--,(n=c+1)>i)f();else{var p=e[s++];if(p>=n){c=p;for(var m=0;m<o;m++){var y=this.ruleDayOfWeek(a[m]),T=y[0],g=y[1];if(this.last.day=c,this.last.isNthWeekDay(g,T)){u=1;break}}u||s!==r||f()}else f()}if(h<=0)throw new Error("Malformed values in BYDAY combined with BYMONTHDAY parts");return u},next_month:function(){this.rule.freq;var t=1;if(0==this.next_hour())return t;if(this.has_by_data("BYDAY")&&this.has_by_data("BYMONTHDAY"))t=this._byDayAndMonthDay();else if(this.has_by_data("BYDAY")){var e=Q.Time.daysInMonth(this.last.month,this.last.year),n=0,r=0;if(this.has_by_data("BYSETPOS")){for(var i=this.last.day,a=1;a<=e;a++)this.last.day=a,this.is_day_in_byday(this.last)&&(r++,a<=i&&n++);this.last.day=i}for(t=0,a=this.last.day+1;a<=e;a++)if(this.last.day=a,this.is_day_in_byday(this.last)&&(!this.has_by_data("BYSETPOS")||this.check_set_position(++n)||this.check_set_position(n-r-1))){t=1;break}a>e&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(t=1):t=0)}else this.has_by_data("BYMONTHDAY")?(this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month()),e=Q.Time.daysInMonth(this.last.month,this.last.year),(a=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY])<0&&(a=e+a+1),a>e?(this.last.day=1,t=this.is_day_in_byday(this.last)):this.last.day=a):(this.increment_month(),e=Q.Time.daysInMonth(this.last.month,this.last.year),this.by_data.BYMONTHDAY[0]>e?t=0:this.last.day=this.by_data.BYMONTHDAY[0]);return t},next_weekday_by_week:function(){var t=0;if(0==this.next_hour())return t;if(!this.has_by_data("BYDAY"))return 1;for(;;){var e=new Q.Time;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,t=1);var n=this.by_data.BYDAY[this.by_indices.BYDAY],r=this.ruleDayOfWeek(n)[1];(r-=this.rule.wkst)<0&&(r+=7),e.year=this.last.year,e.month=this.last.month,e.day=this.last.day;var i=e.startDoyWeek(this.rule.wkst);if(!(r+i<1)||t){var a=Q.Time.fromDayOfYear(i+r,this.last.year);return this.last.year=a.year,this.last.month=a.month,this.last.day=a.day,t}}},next_year:function(){if(0==this.next_hour())return 0;if(++this.days_index==this.days.length){this.days_index=0;do{this.increment_year(this.rule.interval),this.expand_year_days(this.last.year)}while(0==this.days.length)}return this._nextByYearDay(),1},_nextByYearDay:function(){var t=this.days[this.days_index],e=this.last.year;t<1&&(t+=1,e+=1);var n=Q.Time.fromDayOfYear(t,e);this.last.day=n.day,this.last.month=n.month},ruleDayOfWeek:function(t,e){var n=t.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);return n?[parseInt(n[1]||0,10),t=Q.Recur.icalDayToNumericDay(n[2],e)]:[0,0]},next_generic:function(t,e,n,r,i){var a=t in this.by_data,s=this.rule.freq==e,o=0;if(i&&0==this[i]())return o;if(a){this.by_indices[t]++,this.by_indices[t];var u=this.by_data[t];this.by_indices[t]==u.length&&(this.by_indices[t]=0,o=1),this.last[n]=u[this.by_indices[t]]}else s&&this["increment_"+n](this.rule.interval);return a&&o&&s&&this["increment_"+r](1),o},increment_monthday:function(t){for(var e=0;e<t;e++){var n=Q.Time.daysInMonth(this.last.month,this.last.year);this.last.day++,this.last.day>n&&(this.last.day-=n,this.increment_month())}},increment_month:function(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{"MONTHLY"==this.rule.freq?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;var t=Q.helpers.trunc(this.last.month/12);this.last.month%=12,this.last.month++,0!=t&&this.increment_year(t)}},increment_year:function(t){this.last.year+=t},increment_generic:function(t,e,n,r){this.last[e]+=t;var i=Q.helpers.trunc(this.last[e]/n);this.last[e]%=n,0!=i&&this["increment_"+r](i)},has_by_data:function(t){return t in this.rule.parts},expand_year_days:function(t){var e=new Q.Time;this.days=[];var n={},r=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];a in this.rule.parts&&(n[a]=this.rule.parts[a])}if("BYMONTH"in n&&"BYWEEKNO"in n){var s=1,o={};e.year=t,e.isDate=!0;for(var u=0;u<this.by_data.BYMONTH.length;u++){var l=this.by_data.BYMONTH[u];e.month=l,e.day=1;var c=e.weekNumber(this.rule.wkst);e.day=Q.Time.daysInMonth(l,t);var d=e.weekNumber(this.rule.wkst);for(u=c;u<d;u++)o[u]=1}for(var f=0;f<this.by_data.BYWEEKNO.length&&s;f++)(B=this.by_data.BYWEEKNO[f])<52?s&=o[f]:s=0;s?delete n.BYMONTH:delete n.BYWEEKNO}var h=Object.keys(n).length;if(0==h){var p=this.dtstart.clone();p.year=this.last.year,this.days.push(p.dayOfYear())}else if(1==h&&"BYMONTH"in n){for(var m in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(m)){var y=this.dtstart.clone();y.year=t,y.month=this.by_data.BYMONTH[m],y.isDate=!0,this.days.push(y.dayOfYear())}}else if(1==h&&"BYMONTHDAY"in n){for(var T in this.by_data.BYMONTHDAY)if(this.by_data.BYMONTHDAY.hasOwnProperty(T)){var g=this.dtstart.clone();(S=this.by_data.BYMONTHDAY[T])<0&&(S=S+(A=Q.Time.daysInMonth(g.month,t))+1),g.day=S,g.year=t,g.isDate=!0,this.days.push(g.dayOfYear())}}else if(2==h&&"BYMONTHDAY"in n&&"BYMONTH"in n){for(var m in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(m)){var v=this.by_data.BYMONTH[m],A=Q.Time.daysInMonth(v,t);for(var T in this.by_data.BYMONTHDAY)if(this.by_data.BYMONTHDAY.hasOwnProperty(T)){var S;(S=this.by_data.BYMONTHDAY[T])<0&&(S=S+A+1),e.day=S,e.month=v,e.year=t,e.isDate=!0,this.days.push(e.dayOfYear())}}}else if(!(1==h&&"BYWEEKNO"in n||2==h&&"BYWEEKNO"in n&&"BYMONTHDAY"in n))if(1==h&&"BYDAY"in n)this.days=this.days.concat(this.expand_by_day(t));else if(2==h&&"BYDAY"in n&&"BYMONTH"in n){for(var m in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(m)){l=this.by_data.BYMONTH[m],A=Q.Time.daysInMonth(l,t),e.year=t,e.month=this.by_data.BYMONTH[m],e.day=1,e.isDate=!0;var b=e.dayOfWeek(),E=e.dayOfYear()-1;e.day=A;var _=e.dayOfWeek();if(this.has_by_data("BYSETPOS")){for(var D=[],C=1;C<=A;C++)e.day=C,this.is_day_in_byday(e)&&D.push(C);for(var O=0;O<D.length;O++)(this.check_set_position(O+1)||this.check_set_position(O-D.length))&&this.days.push(E+D[O])}else for(var x in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(x)){var I,w=this.by_data.BYDAY[x],N=this.ruleDayOfWeek(w),U=N[0],M=N[1],L=(M+7-b)%7+1,P=A-(_+7-M)%7;if(0==U)for(C=L;C<=A;C+=7)this.days.push(E+C);else U>0?(I=L+7*(U-1))<=A&&this.days.push(E+I):(I=P+7*(U+1))>0&&this.days.push(E+I)}}this.days.sort((function(t,e){return t-e}))}else if(2==h&&"BYDAY"in n&&"BYMONTHDAY"in n){var Y=this.expand_by_day(t);for(var k in Y)if(Y.hasOwnProperty(k)){C=Y[k];var R=Q.Time.fromDayOfYear(C,t);this.by_data.BYMONTHDAY.indexOf(R.day)>=0&&this.days.push(C)}}else if(3==h&&"BYDAY"in n&&"BYMONTHDAY"in n&&"BYMONTH"in n)for(var k in Y=this.expand_by_day(t))Y.hasOwnProperty(k)&&(C=Y[k],R=Q.Time.fromDayOfYear(C,t),this.by_data.BYMONTH.indexOf(R.month)>=0&&this.by_data.BYMONTHDAY.indexOf(R.day)>=0&&this.days.push(C));else if(2==h&&"BYDAY"in n&&"BYWEEKNO"in n){for(var k in Y=this.expand_by_day(t))if(Y.hasOwnProperty(k)){C=Y[k];var B=(R=Q.Time.fromDayOfYear(C,t)).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(B)&&this.days.push(C)}}else 3==h&&"BYDAY"in n&&"BYWEEKNO"in n&&"BYMONTHDAY"in n||(this.days=1==h&&"BYYEARDAY"in n?this.days.concat(this.by_data.BYYEARDAY):[]);return 0},expand_by_day:function(t){var e=[],n=this.last.clone();n.year=t,n.month=1,n.day=1,n.isDate=!0;var r=n.dayOfWeek();n.month=12,n.day=31,n.isDate=!0;var i=n.dayOfWeek(),a=n.dayOfYear();for(var s in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(s)){var o=this.by_data.BYDAY[s],u=this.ruleDayOfWeek(o),l=u[0],c=u[1];if(0==l)for(var d=(c+7-r)%7+1;d<=a;d+=7)e.push(d);else if(l>0){var f;f=c>=r?c-r+1:c-r+8,e.push(f+7*(l-1))}else{var h;l=-l,h=c<=i?a-i+c:a-i+c-7,e.push(h-7*(l-1))}}return e},is_day_in_byday:function(t){for(var e in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(e)){var n=this.by_data.BYDAY[e],r=this.ruleDayOfWeek(n),i=r[0],a=r[1],s=t.dayOfWeek();if(0==i&&a==s||t.nthWeekDay(a,i)==t.day)return 1}return 0},check_set_position:function(t){return!!this.has_by_data("BYSETPOS")&&-1!==this.by_data.BYSETPOS.indexOf(t)},sort_byday_rules:function(t){for(var e=0;e<t.length;e++)for(var n=0;n<e;n++)if(this.ruleDayOfWeek(t[n],this.rule.wkst)[1]>this.ruleDayOfWeek(t[e],this.rule.wkst)[1]){var r=t[e];t[e]=t[n],t[n]=r}},check_contract_restriction:function(e,n){var r=t._indexMap[e],i=t._expandMap[this.rule.freq][r],a=!1;if(e in this.by_data&&i==t.CONTRACT){var s=this.by_data[e];for(var o in s)if(s.hasOwnProperty(o)&&s[o]==n){a=!0;break}}else a=!0;return a},check_contracting_rules:function(){var t=this.last.dayOfWeek(),e=this.last.weekNumber(this.rule.wkst),n=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",Q.Recur.numericDayToIcalDay(t))&&this.check_contract_restriction("BYWEEKNO",e)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",n)},setup_defaults:function(e,n,r){var i=t._indexMap[e];return t._expandMap[this.rule.freq][i]!=t.CONTRACT&&(e in this.by_data||(this.by_data[e]=[r]),this.rule.freq!=n)?this.by_data[e][0]:r},toJSON:function(){var t=Object.create(null);return t.initialized=this.initialized,t.rule=this.rule.toJSON(),t.dtstart=this.dtstart.toJSON(),t.by_data=this.by_data,t.days=this.days,t.last=this.last.toJSON(),t.by_indices=this.by_indices,t.occurrence_number=this.occurrence_number,t}},t._indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8},t._expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]},t.UNKNOWN=0,t.CONTRACT=1,t.EXPAND=2,t.ILLEGAL=3,t}(),Q.RecurExpansion=function(){function t(t){return Q.helpers.formatClassType(t,Q.Time)}function e(t,e){return t.compare(e)}function n(t){this.ruleDates=[],this.exDates=[],this.fromData(t)}return n.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(e){var n=Q.helpers.formatClassType(e.dtstart,Q.Time);if(!n)throw new Error(".dtstart (ICAL.Time) must be given");if(this.dtstart=n,e.component)this._init(e.component);else{if(this.last=t(e.last)||n.clone(),!e.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=e.ruleIterators.map((function(t){return Q.helpers.formatClassType(t,Q.RecurIterator)})),this.ruleDateInc=e.ruleDateInc,this.exDateInc=e.exDateInc,e.ruleDates&&(this.ruleDates=e.ruleDates.map(t),this.ruleDate=this.ruleDates[this.ruleDateInc]),e.exDates&&(this.exDates=e.exDates.map(t),this.exDate=this.exDates[this.exDateInc]),typeof e.complete<"u"&&(this.complete=e.complete)}},next:function(){for(var t,e,n,r=0;;){if(r++>500)throw new Error("max tries have occured, rule may be impossible to forfill.");if(e=this.ruleDate,t=this._nextRecurrenceIter(this.last),!e&&!t){this.complete=!0;break}if((!e||t&&e.compare(t.last)>0)&&(e=t.last.clone(),t.next()),this.ruleDate===e&&this._nextRuleDay(),this.last=e,!this.exDate||((n=this.exDate.compare(this.last))<0&&this._nextExDay(),0!==n))return this.last;this._nextExDay()}},toJSON:function(){function t(t){return t.toJSON()}var e=Object.create(null);return e.ruleIterators=this.ruleIterators.map(t),this.ruleDates&&(e.ruleDates=this.ruleDates.map(t)),this.exDates&&(e.exDates=this.exDates.map(t)),e.ruleDateInc=this.ruleDateInc,e.exDateInc=this.exDateInc,e.last=this.last.toJSON(),e.dtstart=this.dtstart.toJSON(),e.complete=this.complete,e},_extractDates:function(t,n){function r(t){i=Q.helpers.binsearchInsert(a,t,e),a.splice(i,0,t)}for(var i,a=[],s=t.getAllProperties(n),o=s.length,u=0;u<o;u++)s[u].getValues().forEach(r);return a},_init:function(t){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!function(t){return t.hasProperty("rdate")||t.hasProperty("rrule")||t.hasProperty("recurrence-id")}(t))return this.ruleDate=this.last.clone(),void(this.complete=!0);if(t.hasProperty("rdate")&&(this.ruleDates=this._extractDates(t,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=Q.helpers.binsearchInsert(this.ruleDates,this.last,e),this.ruleDate=this.ruleDates[this.ruleDateInc]),t.hasProperty("rrule"))for(var n,r=t.getAllProperties("rrule"),i=0,a=r.length;i<a;i++)n=r[i].getFirstValue().iterator(this.dtstart),this.ruleIterators.push(n),n.next();t.hasProperty("exdate")&&(this.exDates=this._extractDates(t,"exdate"),this.exDateInc=Q.helpers.binsearchInsert(this.exDates,this.last,e),this.exDate=this.exDates[this.exDateInc])},_nextExDay:function(){this.exDate=this.exDates[++this.exDateInc]},_nextRuleDay:function(){this.ruleDate=this.ruleDates[++this.ruleDateInc]},_nextRecurrenceIter:function(){var t=this.ruleIterators;if(0===t.length)return null;for(var e,n,r,i=t.length,a=0;a<i;a++)n=(e=t[a]).last,e.completed?(i--,0!==a&&a--,t.splice(a,1)):(!r||r.last.compare(n)>0)&&(r=e);return r}},n}(),Q.Event=function(){function t(t,e){t instanceof Q.Component||(e=t,t=null),this.component=t||new Q.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],e&&e.strictExceptions&&(this.strictExceptions=e.strictExceptions),e&&e.exceptions?e.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach((function(t){t.hasProperty("recurrence-id")&&this.relateException(t)}),this)}function e(t,e){return t[0]>e[0]?1:e[0]>t[0]?-1:0}return t.prototype={THISANDFUTURE:"THISANDFUTURE",exceptions:null,strictExceptions:!1,relateException:function(t){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(t instanceof Q.Component&&(t=new Q.Event(t)),this.strictExceptions&&t.uid!==this.uid)throw new Error("attempted to relate unrelated exception");var n=t.recurrenceId.toString();if(this.exceptions[n]=t,t.modifiesFuture()){var r=[t.recurrenceId.toUnixTime(),n],i=Q.helpers.binsearchInsert(this.rangeExceptions,r,e);this.rangeExceptions.splice(i,0,r)}},modifiesFuture:function(){return!!this.component.hasProperty("recurrence-id")&&this.component.getFirstProperty("recurrence-id").getParameter("range")===this.THISANDFUTURE},findRangeException:function(t){if(!this.rangeExceptions.length)return null;var n=t.toUnixTime(),r=Q.helpers.binsearchInsert(this.rangeExceptions,[n],e);if((r-=1)<0)return null;var i=this.rangeExceptions[r];return n<i[0]?null:i[1]},getOccurrenceDetails:function(t){var e,n=t.toString(),r=t.convertToZone(Q.Timezone.utcTimezone).toString(),i={recurrenceId:t};if(n in this.exceptions)e=i.item=this.exceptions[n],i.startDate=e.startDate,i.endDate=e.endDate,i.item=e;else if(r in this.exceptions)e=this.exceptions[r],i.startDate=e.startDate,i.endDate=e.endDate,i.item=e;else{var a,s=this.findRangeException(t);if(s){var o=this.exceptions[s];i.item=o;var u=this._rangeExceptionCache[s];if(!u){var l=o.recurrenceId.clone(),c=o.startDate.clone();l.zone=c.zone,u=c.subtractDate(l),this._rangeExceptionCache[s]=u}var d=t.clone();d.zone=o.startDate.zone,d.addDuration(u),(a=d.clone()).addDuration(o.duration),i.startDate=d,i.endDate=a}else(a=t.clone()).addDuration(this.duration),i.endDate=a,i.startDate=t,i.item=this}return i},iterator:function(t){return new Q.RecurExpansion({component:this.component,dtstart:t||this.startDate})},isRecurring:function(){var t=this.component;return t.hasProperty("rrule")||t.hasProperty("rdate")},isRecurrenceException:function(){return this.component.hasProperty("recurrence-id")},getRecurrenceTypes:function(){for(var t=this.component.getAllProperties("rrule"),e=0,n=t.length,r=Object.create(null);e<n;e++)r[t[e].getFirstValue().freq]=!0;return r},get uid(){return this._firstProp("uid")},set uid(t){this._setProp("uid",t)},get startDate(){return this._firstProp("dtstart")},set startDate(t){this._setTime("dtstart",t)},get endDate(){var t=this._firstProp("dtend");if(!t){var e=this._firstProp("duration");t=this.startDate.clone(),e?t.addDuration(e):t.isDate&&(t.day+=1)}return t},set endDate(t){this.component.hasProperty("duration")&&this.component.removeProperty("duration"),this._setTime("dtend",t)},get duration(){return this._firstProp("duration")||this.endDate.subtractDateTz(this.startDate)},set duration(t){this.component.hasProperty("dtend")&&this.component.removeProperty("dtend"),this._setProp("duration",t)},get location(){return this._firstProp("location")},set location(t){return this._setProp("location",t)},get attendees(){return this.component.getAllProperties("attendee")},get summary(){return this._firstProp("summary")},set summary(t){this._setProp("summary",t)},get description(){return this._firstProp("description")},set description(t){this._setProp("description",t)},get color(){return this._firstProp("color")},set color(t){this._setProp("color",t)},get organizer(){return this._firstProp("organizer")},set organizer(t){this._setProp("organizer",t)},get sequence(){return this._firstProp("sequence")},set sequence(t){this._setProp("sequence",t)},get recurrenceId(){return this._firstProp("recurrence-id")},set recurrenceId(t){this._setTime("recurrence-id",t)},_setTime:function(t,e){var n=this.component.getFirstProperty(t);n||(n=new Q.Property(t),this.component.addProperty(n)),e.zone===Q.Timezone.localTimezone||e.zone===Q.Timezone.utcTimezone?n.removeParameter("tzid"):n.setParameter("tzid",e.zone.tzid),n.setValue(e)},_setProp:function(t,e){this.component.updatePropertyWithValue(t,e)},_firstProp:function(t){return this.component.getFirstPropertyValue(t)},toString:function(){return this.component.toString()}},t}(),Q.ComponentParser=function(){function t(t){var e;for(e in typeof t>"u"&&(t={}),t)t.hasOwnProperty(e)&&(this[e]=t[e])}return t.prototype={parseEvent:!0,parseTimezone:!0,oncomplete:function(){},onerror:function(t){},ontimezone:function(t){},onevent:function(t){},process:function(t){"string"==typeof t&&(t=Q.parse(t)),t instanceof Q.Component||(t=new Q.Component(t));for(var e,n=t.getAllSubcomponents(),r=0,i=n.length;r<i;r++)switch(e=n[r],e.name){case"vtimezone":if(this.parseTimezone){var a=e.getFirstPropertyValue("tzid");a&&this.ontimezone(new Q.Timezone({tzid:a,component:e}))}break;case"vevent":this.parseEvent&&this.onevent(new Q.Event(e));break;default:continue}this.oncomplete()}},t}();var nt=et;let rt;const it=new Uint8Array(16);function at(){if(!rt&&(rt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!rt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rt(it)}const st=[];for(let t=0;t<256;++t)st.push((t+256).toString(16).slice(1));const ot={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ut(t,e,n){if(ot.randomUUID&&!e&&!t)return ot.randomUUID();const r=(t=t||{}).random||(t.rng||at)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=r[t];return e}return function(t,e=0){return st[t[e+0]]+st[t[e+1]]+st[t[e+2]]+st[t[e+3]]+"-"+st[t[e+4]]+st[t[e+5]]+"-"+st[t[e+6]]+st[t[e+7]]+"-"+st[t[e+8]]+st[t[e+9]]+"-"+st[t[e+10]]+st[t[e+11]]+st[t[e+12]]+st[t[e+13]]+st[t[e+14]]+st[t[e+15]]}(r)}var lt={},ct=function(t){return t&&t.Math==Math&&t},dt=ct("object"==typeof globalThis&&globalThis)||ct("object"==typeof window&&window)||ct("object"==typeof self&&self)||ct("object"==typeof H&&H)||function(){return this}()||Function("return this")(),ft={},ht=function(t){try{return!!t()}catch{return!0}},pt=!ht((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),mt=!ht((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),yt=mt,Tt=Function.prototype.call,gt=yt?Tt.bind(Tt):function(){return Tt.apply(Tt,arguments)},vt={},At={}.propertyIsEnumerable,St=Object.getOwnPropertyDescriptor,bt=St&&!At.call({1:2},1);vt.f=bt?function(t){var e=St(this,t);return!!e&&e.enumerable}:At;var Et,_t,Dt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ct=mt,Ot=Function.prototype,xt=Ot.call,It=Ct&&Ot.bind.bind(xt,xt),wt=function(t){return Ct?It(t):function(){return xt.apply(t,arguments)}},Nt=wt,Ut=Nt({}.toString),Mt=Nt("".slice),Lt=function(t){return Mt(Ut(t),8,-1)},Pt=Lt,Yt=wt,kt=function(t){if("Function"===Pt(t))return Yt(t)},Rt=ht,Bt=Lt,jt=Object,zt=kt("".split),Wt=Rt((function(){return!jt("z").propertyIsEnumerable(0)}))?function(t){return"String"==Bt(t)?zt(t,""):jt(t)}:jt,Ft=function(t){return null==t},Zt=Ft,Vt=TypeError,Ht=function(t){if(Zt(t))throw Vt("Can't call method on "+t);return t},$t=Wt,Gt=Ht,Kt=function(t){return $t(Gt(t))},qt="object"==typeof document&&document.all,Xt={all:qt,IS_HTMLDDA:typeof qt>"u"&&void 0!==qt},Jt=Xt.all,Qt=Xt.IS_HTMLDDA?function(t){return"function"==typeof t||t===Jt}:function(t){return"function"==typeof t},te=Qt,ee=Xt.all,ne=Xt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:te(t)||t===ee}:function(t){return"object"==typeof t?null!==t:te(t)},re=dt,ie=Qt,ae=function(t,e){return arguments.length<2?function(t){return ie(t)?t:void 0}(re[t]):re[t]&&re[t][e]},se=kt({}.isPrototypeOf),oe=dt,ue=ae("navigator","userAgent")||"",le=oe.process,ce=oe.Deno,de=le&&le.versions||ce&&ce.version,fe=de&&de.v8;fe&&(_t=(Et=fe.split("."))[0]>0&&Et[0]<4?1:+(Et[0]+Et[1])),!_t&&ue&&(!(Et=ue.match(/Edge\/(\d+)/))||Et[1]>=74)&&(Et=ue.match(/Chrome\/(\d+)/))&&(_t=+Et[1]);var he=_t,pe=ht,me=!!Object.getOwnPropertySymbols&&!pe((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&he&&he<41})),ye=me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Te=ae,ge=Qt,ve=se,Ae=Object,Se=ye?function(t){return"symbol"==typeof t}:function(t){var e=Te("Symbol");return ge(e)&&ve(e.prototype,Ae(t))},be=String,Ee=function(t){try{return be(t)}catch{return"Object"}},_e=Qt,De=Ee,Ce=TypeError,Oe=function(t){if(_e(t))return t;throw Ce(De(t)+" is not a function")},xe=Oe,Ie=Ft,we=gt,Ne=Qt,Ue=ne,Me=TypeError,Le=function(t,e){var n,r;if("string"===e&&Ne(n=t.toString)&&!Ue(r=we(n,t))||Ne(n=t.valueOf)&&!Ue(r=we(n,t))||"string"!==e&&Ne(n=t.toString)&&!Ue(r=we(n,t)))return r;throw Me("Can't convert object to primitive value")},Pe={exports:{}},Ye=dt,ke=Object.defineProperty,Re=function(t,e){try{ke(Ye,t,{value:e,configurable:!0,writable:!0})}catch{Ye[t]=e}return e},Be=Re,je="__core-js_shared__",ze=dt[je]||Be(je,{}),We=ze;(Pe.exports=function(t,e){return We[t]||(We[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var Fe=Pe.exports,Ze=Ht,Ve=Object,He=function(t){return Ve(Ze(t))},$e=He,Ge=kt({}.hasOwnProperty),Ke=Object.hasOwn||function(t,e){return Ge($e(t),e)},qe=kt,Xe=0,Je=Math.random(),Qe=qe(1..toString),tn=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qe(++Xe+Je,36)},en=dt,nn=Ke,rn=tn,an=me,sn=ye,on=Fe("wks"),un=en.Symbol,ln=un&&un.for,cn=sn?un:un&&un.withoutSetter||rn,dn=function(t){if(!nn(on,t)||!an&&"string"!=typeof on[t]){var e="Symbol."+t;an&&nn(un,t)?on[t]=un[t]:on[t]=sn&&ln?ln(e):cn(e)}return on[t]},fn=gt,hn=ne,pn=Se,mn=Le,yn=TypeError,Tn=dn("toPrimitive"),gn=function(t,e){if(!hn(t)||pn(t))return t;var n,r=function(t,e){var n=t[e];return Ie(n)?void 0:xe(n)}(t,Tn);if(r){if(void 0===e&&(e="default"),n=fn(r,t,e),!hn(n)||pn(n))return n;throw yn("Can't convert object to primitive value")}return void 0===e&&(e="number"),mn(t,e)},vn=gn,An=Se,Sn=function(t){var e=vn(t,"string");return An(e)?e:e+""},bn=ne,En=dt.document,_n=bn(En)&&bn(En.createElement),Dn=function(t){return _n?En.createElement(t):{}},Cn=Dn,On=!pt&&!ht((function(){return 7!=Object.defineProperty(Cn("div"),"a",{get:function(){return 7}}).a})),xn=pt,In=gt,wn=vt,Nn=Dt,Un=Kt,Mn=Sn,Ln=Ke,Pn=On,Yn=Object.getOwnPropertyDescriptor;ft.f=xn?Yn:function(t,e){if(t=Un(t),e=Mn(e),Pn)try{return Yn(t,e)}catch{}if(Ln(t,e))return Nn(!In(wn.f,t,e),t[e])};var kn={},Rn=pt&&ht((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Bn=ne,jn=String,zn=TypeError,Wn=function(t){if(Bn(t))return t;throw zn(jn(t)+" is not an object")},Fn=pt,Zn=On,Vn=Rn,Hn=Wn,$n=Sn,Gn=TypeError,Kn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Xn="enumerable",Jn="configurable",Qn="writable";kn.f=Fn?Vn?function(t,e,n){if(Hn(t),e=$n(e),Hn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Qn in n&&!n[Qn]){var r=qn(t,e);r&&r[Qn]&&(t[e]=n.value,n={configurable:Jn in n?n[Jn]:r[Jn],enumerable:Xn in n?n[Xn]:r[Xn],writable:!1})}return Kn(t,e,n)}:Kn:function(t,e,n){if(Hn(t),e=$n(e),Hn(n),Zn)try{return Kn(t,e,n)}catch{}if("get"in n||"set"in n)throw Gn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var tr=kn,er=Dt,nr=pt?function(t,e,n){return tr.f(t,e,er(1,n))}:function(t,e,n){return t[e]=n,t},rr={exports:{}},ir=pt,ar=Ke,sr=Function.prototype,or=ir&&Object.getOwnPropertyDescriptor,ur=ar(sr,"name"),lr={EXISTS:ur,PROPER:ur&&"something"===function(){}.name,CONFIGURABLE:ur&&(!ir||ir&&or(sr,"name").configurable)},cr=Qt,dr=ze,fr=kt(Function.toString);cr(dr.inspectSource)||(dr.inspectSource=function(t){return fr(t)});var hr,pr,mr,yr=dr.inspectSource,Tr=Qt,gr=dt.WeakMap,vr=Tr(gr)&&/native code/.test(String(gr)),Ar=tn,Sr=Fe("keys"),br=function(t){return Sr[t]||(Sr[t]=Ar(t))},Er={},_r=vr,Dr=dt,Cr=ne,Or=nr,xr=Ke,Ir=ze,wr=br,Nr=Er,Ur="Object already initialized",Mr=Dr.TypeError,Lr=Dr.WeakMap;if(_r||Ir.state){var Pr=Ir.state||(Ir.state=new Lr);Pr.get=Pr.get,Pr.has=Pr.has,Pr.set=Pr.set,hr=function(t,e){if(Pr.has(t))throw Mr(Ur);return e.facade=t,Pr.set(t,e),e},pr=function(t){return Pr.get(t)||{}},mr=function(t){return Pr.has(t)}}else{var Yr=wr("state");Nr[Yr]=!0,hr=function(t,e){if(xr(t,Yr))throw Mr(Ur);return e.facade=t,Or(t,Yr,e),e},pr=function(t){return xr(t,Yr)?t[Yr]:{}},mr=function(t){return xr(t,Yr)}}var kr={set:hr,get:pr,has:mr,enforce:function(t){return mr(t)?pr(t):hr(t,{})},getterFor:function(t){return function(e){var n;if(!Cr(e)||(n=pr(e)).type!==t)throw Mr("Incompatible receiver, "+t+" required");return n}}},Rr=ht,Br=Qt,jr=Ke,zr=pt,Wr=lr.CONFIGURABLE,Fr=yr,Zr=kr.enforce,Vr=kr.get,Hr=Object.defineProperty,$r=zr&&!Rr((function(){return 8!==Hr((function(){}),"length",{value:8}).length})),Gr=String(String).split("String"),Kr=rr.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!jr(t,"name")||Wr&&t.name!==e)&&(zr?Hr(t,"name",{value:e,configurable:!0}):t.name=e),$r&&n&&jr(n,"arity")&&t.length!==n.arity&&Hr(t,"length",{value:n.arity});try{n&&jr(n,"constructor")&&n.constructor?zr&&Hr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=Zr(t);return jr(r,"source")||(r.source=Gr.join("string"==typeof e?e:"")),t};Function.prototype.toString=Kr((function(){return Br(this)&&Vr(this).source||Fr(this)}),"toString");var qr=rr.exports,Xr=Qt,Jr=kn,Qr=qr,ti=Re,ei=function(t,e,n,r){r||(r={});var i=r.enumerable,a=void 0!==r.name?r.name:e;if(Xr(n)&&Qr(n,a,r),r.global)i?t[e]=n:ti(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch{}i?t[e]=n:Jr.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},ni={},ri=Math.ceil,ii=Math.floor,ai=Math.trunc||function(t){var e=+t;return(e>0?ii:ri)(e)},si=ai,oi=function(t){var e=+t;return e!=e||0===e?0:si(e)},ui=oi,li=Math.max,ci=Math.min,di=function(t,e){var n=ui(t);return n<0?li(n+e,0):ci(n,e)},fi=oi,hi=Math.min,pi=function(t){return function(t){return t>0?hi(fi(t),9007199254740991):0}(t.length)},mi=Kt,yi=di,Ti=pi,gi=function(t){return function(e,n,r){var i,a=mi(e),s=Ti(a),o=yi(r,s);if(t&&n!=n){for(;s>o;)if((i=a[o++])!=i)return!0}else for(;s>o;o++)if((t||o in a)&&a[o]===n)return t||o||0;return!t&&-1}},vi={includes:gi(!0),indexOf:gi(!1)},Ai=Ke,Si=Kt,bi=vi.indexOf,Ei=Er,_i=kt([].push),Di=function(t,e){var n,r=Si(t),i=0,a=[];for(n in r)!Ai(Ei,n)&&Ai(r,n)&&_i(a,n);for(;e.length>i;)Ai(r,n=e[i++])&&(~bi(a,n)||_i(a,n));return a},Ci=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Oi=Di,xi=Ci.concat("length","prototype");ni.f=Object.getOwnPropertyNames||function(t){return Oi(t,xi)};var Ii={};Ii.f=Object.getOwnPropertySymbols;var wi=ae,Ni=ni,Ui=Ii,Mi=Wn,Li=kt([].concat),Pi=wi("Reflect","ownKeys")||function(t){var e=Ni.f(Mi(t)),n=Ui.f;return n?Li(e,n(t)):e},Yi=Ke,ki=Pi,Ri=ft,Bi=kn,ji=function(t,e,n){for(var r=ki(e),i=Bi.f,a=Ri.f,s=0;s<r.length;s++){var o=r[s];!Yi(t,o)&&(!n||!Yi(n,o))&&i(t,o,a(e,o))}},zi=ht,Wi=Qt,Fi=/#|\.prototype\./,Zi=function(t,e){var n=Hi[Vi(t)];return n==Gi||n!=$i&&(Wi(e)?zi(e):!!e)},Vi=Zi.normalize=function(t){return String(t).replace(Fi,".").toLowerCase()},Hi=Zi.data={},$i=Zi.NATIVE="N",Gi=Zi.POLYFILL="P",Ki=Zi,qi=dt,Xi=ft.f,Ji=nr,Qi=ei,ta=Re,ea=ji,na=Ki,ra=function(t,e){var n,r,i,a,s,o=t.target,u=t.global,l=t.stat;if(n=u?qi:l?qi[o]||ta(o,{}):(qi[o]||{}).prototype)for(r in e){if(a=e[r],i=t.dontCallGetSet?(s=Xi(n,r))&&s.value:n[r],!na(u?r:o+(l?".":"#")+r,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;ea(a,i)}(t.sham||i&&i.sham)&&Ji(a,"sham",!0),Qi(n,r,a,t)}},ia=ra,aa=pt,sa=kn.f;ia({target:"Object",stat:!0,forced:Object.defineProperty!==sa,sham:!aa},{defineProperty:sa});var oa={},ua=dt,la={},ca=dn;la.f=ca;var da=ua,fa=Ke,ha=la,pa=kn.f,ma=function(t){var e=da.Symbol||(da.Symbol={});fa(e,t)||pa(e,t,{value:ha.f(t)})};ma("iterator");var ya={},Ta=Di,ga=Ci,va=Object.keys||function(t){return Ta(t,ga)},Aa=pt,Sa=Rn,ba=kn,Ea=Wn,_a=Kt,Da=va;ya.f=Aa&&!Sa?Object.defineProperties:function(t,e){Ea(t);for(var n,r=_a(e),i=Da(e),a=i.length,s=0;a>s;)ba.f(t,n=i[s++],r[n]);return t};var Ca,Oa=ae("document","documentElement"),xa=Wn,Ia=ya,wa=Ci,Na=Er,Ua=Oa,Ma=Dn,La="prototype",Pa="script",Ya=br("IE_PROTO"),ka=function(){},Ra=function(t){return"<"+Pa+">"+t+"</"+Pa+">"},Ba=function(t){t.write(Ra("")),t.close();var e=t.parentWindow.Object;return t=null,e},ja=function(){try{Ca=new ActiveXObject("htmlfile")}catch{}ja=typeof document<"u"?document.domain&&Ca?Ba(Ca):function(){var t,e=Ma("iframe"),n="java"+Pa+":";return e.style.display="none",Ua.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ra("document.F=Object")),t.close(),t.F}():Ba(Ca);for(var t=wa.length;t--;)delete ja[La][wa[t]];return ja()};Na[Ya]=!0;var za=Object.create||function(t,e){var n;return null!==t?(ka[La]=xa(t),n=new ka,ka[La]=null,n[Ya]=t):n=ja(),void 0===e?n:Ia.f(n,e)},Wa=dn,Fa=za,Za=kn.f,Va=Wa("unscopables"),Ha=Array.prototype;null==Ha[Va]&&Za(Ha,Va,{configurable:!0,value:Fa(null)});var $a,Ga,Ka,qa={},Xa=!ht((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ja=Ke,Qa=Qt,ts=He,es=Xa,ns=br("IE_PROTO"),rs=Object,is=rs.prototype,as=es?rs.getPrototypeOf:function(t){var e=ts(t);if(Ja(e,ns))return e[ns];var n=e.constructor;return Qa(n)&&e instanceof n?n.prototype:e instanceof rs?is:null},ss=ht,os=Qt,us=ne,ls=as,cs=ei,ds=dn("iterator"),fs=!1;[].keys&&("next"in(Ka=[].keys())?(Ga=ls(ls(Ka)))!==Object.prototype&&($a=Ga):fs=!0),(!us($a)||ss((function(){var t={};return $a[ds].call(t)!==t})))&&($a={}),os($a[ds])||cs($a,ds,(function(){return this}));var hs={IteratorPrototype:$a,BUGGY_SAFARI_ITERATORS:fs},ps=kn.f,ms=Ke,ys=dn("toStringTag"),Ts=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ms(t,ys)&&ps(t,ys,{configurable:!0,value:e})},gs=hs.IteratorPrototype,vs=za,As=Dt,Ss=Ts,bs=qa,Es=function(){return this},_s=Qt,Ds=String,Cs=TypeError,Os=kt,xs=Wn,Is=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Os(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(n,r){return xs(n),function(t){if("object"==typeof t||_s(t))return t;throw Cs("Can't set "+Ds(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),ws=ra,Ns=gt,Us=Qt,Ms=as,Ls=Is,Ps=Ts,Ys=nr,ks=ei,Rs=qa,Bs=lr.PROPER,js=lr.CONFIGURABLE,zs=hs.IteratorPrototype,Ws=hs.BUGGY_SAFARI_ITERATORS,Fs=dn("iterator"),Zs="keys",Vs="values",Hs="entries",$s=function(){return this},Gs=function(t,e,n,r,i,a,s){!function(t,e,n,r){var i=e+" Iterator";t.prototype=vs(gs,{next:As(+!r,n)}),Ss(t,i,!1),bs[i]=Es}(n,e,r);var o,u,l,c=function(t){if(t===i&&m)return m;if(!Ws&&t in h)return h[t];switch(t){case Zs:case Vs:case Hs:return function(){return new n(this,t)}}return function(){return new n(this)}},d=e+" Iterator",f=!1,h=t.prototype,p=h[Fs]||h["@@iterator"]||i&&h[i],m=!Ws&&p||c(i),y="Array"==e&&h.entries||p;if(y&&(o=Ms(y.call(new t)))!==Object.prototype&&o.next&&(Ms(o)!==zs&&(Ls?Ls(o,zs):Us(o[Fs])||ks(o,Fs,$s)),Ps(o,d,!0)),Bs&&i==Vs&&p&&p.name!==Vs&&(js?Ys(h,"name",Vs):(f=!0,m=function(){return Ns(p,this)})),i)if(u={values:c(Vs),keys:a?m:c(Zs),entries:c(Hs)},s)for(l in u)(Ws||f||!(l in h))&&ks(h,l,u[l]);else ws({target:e,proto:!0,forced:Ws||f},u);return h[Fs]!==m&&ks(h,Fs,m,{name:i}),Rs[e]=m,u},Ks=function(t,e){return{value:t,done:e}},qs=Kt,Xs=function(t){Ha[Va][t]=!0},Js=qa,Qs=kr,to=kn.f,eo=Gs,no=Ks,ro=pt,io="Array Iterator",ao=Qs.set,so=Qs.getterFor(io),oo=eo(Array,"Array",(function(t,e){ao(this,{type:io,target:qs(t),index:0,kind:e})}),(function(){var t=so(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,no(void 0,!0)):no("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),uo=Js.Arguments=Js.Array;if(Xs("keys"),Xs("values"),Xs("entries"),ro&&"values"!==uo.name)try{to(uo,"name",{value:"values"})}catch{}var lo={};lo[dn("toStringTag")]="z";var co="[object z]"===String(lo),fo=co,ho=Qt,po=Lt,mo=dn("toStringTag"),yo=Object,To="Arguments"==po(function(){return arguments}()),go=fo?po:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch{}}(e=yo(t),mo))?n:To?po(e):"Object"==(r=po(e))&&ho(e.callee)?"Arguments":r},vo=go,Ao=String,So=function(t){if("Symbol"===vo(t))throw TypeError("Cannot convert a Symbol value to a string");return Ao(t)},bo=kt,Eo=oi,_o=So,Do=Ht,Co=bo("".charAt),Oo=bo("".charCodeAt),xo=bo("".slice),Io=function(t){return function(e,n){var r,i,a=_o(Do(e)),s=Eo(n),o=a.length;return s<0||s>=o?t?"":void 0:(r=Oo(a,s))<55296||r>56319||s+1===o||(i=Oo(a,s+1))<56320||i>57343?t?Co(a,s):r:t?xo(a,s,s+2):i-56320+(r-55296<<10)+65536}},wo=(Io(!1),Io(!0)),No=So,Uo=kr,Mo=Gs,Lo=Ks,Po="String Iterator",Yo=Uo.set,ko=Uo.getterFor(Po);Mo(String,"String",(function(t){Yo(this,{type:Po,string:No(t),index:0})}),(function(){var t,e=ko(this),n=e.string,r=e.index;return r>=n.length?Lo(void 0,!0):(t=wo(n,r),e.index+=t.length,Lo(t,!1))}));var Ro=Dn("span").classList,Bo=Ro&&Ro.constructor&&Ro.constructor.prototype,jo=Bo===Object.prototype?void 0:Bo,zo=dt,Wo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Fo=jo,Zo=oo,Vo=nr,Ho=dn,$o=Ho("iterator"),Go=Ho("toStringTag"),Ko=Zo.values,qo=function(t,e){if(t){if(t[$o]!==Ko)try{Vo(t,$o,Ko)}catch{t[$o]=Ko}if(t[Go]||Vo(t,Go,e),Wo[e])for(var n in Zo)if(t[n]!==Zo[n])try{Vo(t,n,Zo[n])}catch{t[n]=Zo[n]}}};for(var Xo in Wo)qo(zo[Xo]&&zo[Xo].prototype,Xo);qo(Fo,"DOMTokenList");var Jo=pt,Qo=kt,tu=gt,eu=ht,nu=va,ru=Ii,iu=vt,au=He,su=Wt,ou=Object.assign,uu=Object.defineProperty,lu=Qo([].concat),cu=!ou||eu((function(){if(Jo&&1!==ou({b:1},ou(uu({},"a",{enumerable:!0,get:function(){uu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=ou({},t)[n]||nu(ou({},e)).join("")!=r}))?function(t,e){for(var n=au(t),r=arguments.length,i=1,a=ru.f,s=iu.f;r>i;)for(var o,u=su(arguments[i++]),l=a?lu(nu(u),a(u)):nu(u),c=l.length,d=0;c>d;)o=l[d++],(!Jo||tu(s,u,o))&&(n[o]=u[o]);return n}:ou,du=cu;ra({target:"Object",stat:!0,arity:2,forced:Object.assign!==du},{assign:du});var fu=gt,hu=ae,pu=dn,mu=ei,yu=function(){var t=hu("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=pu("toPrimitive");e&&!e[r]&&mu(e,r,(function(t){return fu(n,this)}),{arity:1})},Tu=yu;ma("toPrimitive"),Tu();var gu=Wn,vu=Le,Au=TypeError,Su=Ke,bu=ei,Eu=dn("toPrimitive"),_u=Date.prototype;Su(_u,Eu)||bu(_u,Eu,(function(t){if(gu(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw Au("Incorrect hint");return vu(this,t)}));var Du={},Cu=Sn,Ou=kn,xu=Dt,Iu=di,wu=pi,Nu=function(t,e,n){var r=Cu(e);r in t?Ou.f(t,r,xu(0,n)):t[r]=n},Uu=Array,Mu=Math.max,Lu=Lt,Pu=Kt,Yu=ni.f,ku="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Du.f=function(t){return ku&&"Window"==Lu(t)?function(t){try{return Yu(t)}catch{return function(t,e,n){for(var r=wu(t),i=Iu(e,r),a=Iu(void 0===n?r:n,r),s=Uu(Mu(a-i,0)),o=0;i<a;i++,o++)Nu(s,o,t[i]);return s.length=o,s}(ku)}}(t):Yu(Pu(t))};var Ru=Oe,Bu=mt,ju=kt(kt.bind),zu=Lt,Wu=Array.isArray||function(t){return"Array"==zu(t)},Fu=kt,Zu=ht,Vu=Qt,Hu=go,$u=yr,Gu=function(){},Ku=[],qu=ae("Reflect","construct"),Xu=/^\s*(?:class|function)\b/,Ju=Fu(Xu.exec),Qu=!Xu.exec(Gu),tl=function(t){if(!Vu(t))return!1;try{return qu(Gu,Ku,t),!0}catch{return!1}},el=function(t){if(!Vu(t))return!1;switch(Hu(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qu||!!Ju(Xu,$u(t))}catch{return!0}};el.sham=!0;var nl=!qu||Zu((function(){var t;return tl(tl.call)||!tl(Object)||!tl((function(){t=!0}))||t}))?el:tl,rl=Wu,il=nl,al=ne,sl=dn("species"),ol=Array,ul=Wt,ll=He,cl=pi,dl=function(t,e){return new(function(t){var e;return rl(t)&&(e=t.constructor,(il(e)&&(e===ol||rl(e.prototype))||al(e)&&null===(e=e[sl]))&&(e=void 0)),void 0===e?ol:e}(t))(0===e?0:e)},fl=kt([].push),hl=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,a=6==t,s=7==t,o=5==t||a;return function(u,l,c,d){for(var f,h,p=ll(u),m=ul(p),y=function(t,e){return Ru(t),void 0===e?t:Bu?ju(t,e):function(){return t.apply(e,arguments)}}(l,c),T=cl(m),g=0,v=d||dl,A=e?v(u,T):n||s?v(u,0):void 0;T>g;g++)if((o||g in m)&&(h=y(f=m[g],g,p),t))if(e)A[g]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return g;case 2:fl(A,f)}else switch(t){case 4:return!1;case 7:fl(A,f)}return a?-1:r||i?i:A}},pl={forEach:hl(0),map:hl(1),filter:hl(2),some:hl(3),every:hl(4),find:hl(5),findIndex:hl(6),filterReject:hl(7)},ml=ra,yl=dt,Tl=gt,gl=kt,vl=pt,Al=me,Sl=ht,bl=Ke,El=se,_l=Wn,Dl=Kt,Cl=Sn,Ol=So,xl=Dt,Il=za,wl=va,Nl=ni,Ul=Du,Ml=Ii,Ll=ft,Pl=kn,Yl=ya,kl=vt,Rl=ei,Bl=Fe,jl=Er,zl=tn,Wl=dn,Fl=la,Zl=ma,Vl=yu,Hl=Ts,$l=kr,Gl=pl.forEach,Kl=br("hidden"),ql="Symbol",Xl="prototype",Jl=$l.set,Ql=$l.getterFor(ql),tc=Object[Xl],ec=yl.Symbol,nc=ec&&ec[Xl],rc=yl.TypeError,ic=yl.QObject,ac=Ll.f,sc=Pl.f,oc=Ul.f,uc=kl.f,lc=gl([].push),cc=Bl("symbols"),dc=Bl("op-symbols"),fc=Bl("wks"),hc=!ic||!ic[Xl]||!ic[Xl].findChild,pc=vl&&Sl((function(){return 7!=Il(sc({},"a",{get:function(){return sc(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=ac(tc,e);r&&delete tc[e],sc(t,e,n),r&&t!==tc&&sc(tc,e,r)}:sc,mc=function(t,e){var n=cc[t]=Il(nc);return Jl(n,{type:ql,tag:t,description:e}),vl||(n.description=e),n},yc=function(t,e,n){t===tc&&yc(dc,e,n),_l(t);var r=Cl(e);return _l(n),bl(cc,r)?(n.enumerable?(bl(t,Kl)&&t[Kl][r]&&(t[Kl][r]=!1),n=Il(n,{enumerable:xl(0,!1)})):(bl(t,Kl)||sc(t,Kl,xl(1,{})),t[Kl][r]=!0),pc(t,r,n)):sc(t,r,n)},Tc=function(t,e){_l(t);var n=Dl(e),r=wl(n).concat(Sc(n));return Gl(r,(function(e){(!vl||Tl(gc,n,e))&&yc(t,e,n[e])})),t},gc=function(t){var e=Cl(t),n=Tl(uc,this,e);return!(this===tc&&bl(cc,e)&&!bl(dc,e))&&(!(n||!bl(this,e)||!bl(cc,e)||bl(this,Kl)&&this[Kl][e])||n)},vc=function(t,e){var n=Dl(t),r=Cl(e);if(n!==tc||!bl(cc,r)||bl(dc,r)){var i=ac(n,r);return i&&bl(cc,r)&&!(bl(n,Kl)&&n[Kl][r])&&(i.enumerable=!0),i}},Ac=function(t){var e=oc(Dl(t)),n=[];return Gl(e,(function(t){!bl(cc,t)&&!bl(jl,t)&&lc(n,t)})),n},Sc=function(t){var e=t===tc,n=oc(e?dc:Dl(t)),r=[];return Gl(n,(function(t){bl(cc,t)&&(!e||bl(tc,t))&&lc(r,cc[t])})),r};Al||(ec=function(){if(El(nc,this))throw rc("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ol(arguments[0]):void 0,e=zl(t),n=function(t){this===tc&&Tl(n,dc,t),bl(this,Kl)&&bl(this[Kl],e)&&(this[Kl][e]=!1),pc(this,e,xl(1,t))};return vl&&hc&&pc(tc,e,{configurable:!0,set:n}),mc(e,t)},Rl(nc=ec[Xl],"toString",(function(){return Ql(this).tag})),Rl(ec,"withoutSetter",(function(t){return mc(zl(t),t)})),kl.f=gc,Pl.f=yc,Yl.f=Tc,Ll.f=vc,Nl.f=Ul.f=Ac,Ml.f=Sc,Fl.f=function(t){return mc(Wl(t),t)},vl&&(sc(nc,"description",{configurable:!0,get:function(){return Ql(this).description}}),Rl(tc,"propertyIsEnumerable",gc,{unsafe:!0}))),ml({global:!0,constructor:!0,wrap:!0,forced:!Al,sham:!Al},{Symbol:ec}),Gl(wl(fc),(function(t){Zl(t)})),ml({target:ql,stat:!0,forced:!Al},{useSetter:function(){hc=!0},useSimple:function(){hc=!1}}),ml({target:"Object",stat:!0,forced:!Al,sham:!vl},{create:function(t,e){return void 0===e?Il(t):Tc(Il(t),e)},defineProperty:yc,defineProperties:Tc,getOwnPropertyDescriptor:vc}),ml({target:"Object",stat:!0,forced:!Al},{getOwnPropertyNames:Ac}),Vl(),Hl(ec,ql),jl[Kl]=!0;var bc=me&&!!Symbol.for&&!!Symbol.keyFor,Ec=ra,_c=ae,Dc=Ke,Cc=So,Oc=Fe,xc=bc,Ic=Oc("string-to-symbol-registry"),wc=Oc("symbol-to-string-registry");Ec({target:"Symbol",stat:!0,forced:!xc},{for:function(t){var e=Cc(t);if(Dc(Ic,e))return Ic[e];var n=_c("Symbol")(e);return Ic[e]=n,wc[n]=e,n}});var Nc=ra,Uc=Ke,Mc=Se,Lc=Ee,Pc=bc,Yc=Fe("symbol-to-string-registry");Nc({target:"Symbol",stat:!0,forced:!Pc},{keyFor:function(t){if(!Mc(t))throw TypeError(Lc(t)+" is not a symbol");if(Uc(Yc,t))return Yc[t]}});var kc=mt,Rc=Function.prototype,Bc=Rc.apply,jc=Rc.call,zc="object"==typeof Reflect&&Reflect.apply||(kc?jc.bind(Bc):function(){return jc.apply(Bc,arguments)}),Wc=kt([].slice),Fc=ra,Zc=ae,Vc=zc,Hc=gt,$c=kt,Gc=ht,Kc=Wu,qc=Qt,Xc=ne,Jc=Se,Qc=Wc,td=me,ed=Zc("JSON","stringify"),nd=$c(/./.exec),rd=$c("".charAt),id=$c("".charCodeAt),ad=$c("".replace),sd=$c(1..toString),od=/[\uD800-\uDFFF]/g,ud=/^[\uD800-\uDBFF]$/,ld=/^[\uDC00-\uDFFF]$/,cd=!td||Gc((function(){var t=Zc("Symbol")();return"[null]"!=ed([t])||"{}"!=ed({a:t})||"{}"!=ed(Object(t))})),dd=Gc((function(){return'"\\udf06\\ud834"'!==ed("\udf06\ud834")||'"\\udead"'!==ed("\udead")})),fd=function(t,e){var n=Qc(arguments),r=e;if((Xc(e)||void 0!==t)&&!Jc(t))return Kc(e)||(e=function(t,e){if(qc(r)&&(e=Hc(r,this,t,e)),!Jc(e))return e}),n[1]=e,Vc(ed,null,n)},hd=function(t,e,n){var r=rd(n,e-1),i=rd(n,e+1);return nd(ud,t)&&!nd(ld,i)||nd(ld,t)&&!nd(ud,r)?"\\u"+sd(id(t,0),16):t};ed&&Fc({target:"JSON",stat:!0,arity:3,forced:cd||dd},{stringify:function(t,e,n){var r=Qc(arguments),i=Vc(cd?fd:ed,null,r);return dd&&"string"==typeof i?ad(i,od,hd):i}});var pd=Ii,md=He;ra({target:"Object",stat:!0,forced:!me||ht((function(){pd.f(1)}))},{getOwnPropertySymbols:function(t){var e=pd.f;return e?e(md(t)):[]}});var yd=ra,Td=pt,gd=dt,vd=kt,Ad=Ke,Sd=Qt,bd=se,Ed=So,_d=kn.f,Dd=ji,Cd=gd.Symbol,Od=Cd&&Cd.prototype;if(Td&&Sd(Cd)&&(!("description"in Od)||void 0!==Cd().description)){var xd={},Id=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:Ed(arguments[0]),e=bd(Od,this)?new Cd(t):void 0===t?Cd():Cd(t);return""===t&&(xd[e]=!0),e};Dd(Id,Cd),Id.prototype=Od,Od.constructor=Id;var wd="Symbol(test)"==String(Cd("test")),Nd=vd(Od.valueOf),Ud=vd(Od.toString),Md=/^Symbol\((.*)\)[^)]+$/,Ld=vd("".replace),Pd=vd("".slice);_d(Od,"description",{configurable:!0,get:function(){var t=Nd(this);if(Ad(xd,t))return"";var e=Ud(t),n=wd?Pd(e,7,-1):Ld(e,Md,"$1");return""===n?void 0:n}}),yd({global:!0,constructor:!0,forced:!0},{Symbol:Id})}var Yd=go,kd=co?{}.toString:function(){return"[object "+Yd(this)+"]"};co||ei(Object.prototype,"toString",kd,{unsafe:!0});var Rd=Qt,Bd=ne,jd=Is,zd=kt(1..valueOf),Wd=Ht,Fd=So,Zd=kt("".replace),Vd="[\t\n\v\f\r \u2028\u2029\ufeff]",Hd=RegExp("^"+Vd+Vd+"*"),$d=RegExp(Vd+Vd+"*$"),Gd=function(t){return function(e){var n=Fd(Wd(e));return 1&t&&(n=Zd(n,Hd,"")),2&t&&(n=Zd(n,$d,"")),n}},Kd={start:Gd(1),end:Gd(2),trim:Gd(3)},qd=pt,Xd=dt,Jd=kt,Qd=Ki,tf=ei,ef=Ke,nf=se,rf=Se,af=gn,sf=ht,of=ni.f,uf=ft.f,lf=kn.f,cf=zd,df=Kd.trim,ff="Number",hf=Xd[ff],pf=hf.prototype,mf=Xd.TypeError,yf=Jd("".slice),Tf=Jd("".charCodeAt);if(Qd(ff,!hf(" 0o1")||!hf("0b1")||hf("+0x1"))){for(var gf,vf=function(t){var e=arguments.length<1?0:hf(function(t){var e=af(t,"number");return"bigint"==typeof e?e:function(t){var e,n,r,i,a,s,o,u,l=af(t,"number");if(rf(l))throw mf("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=df(l),43===(e=Tf(l,0))||45===e){if(88===(n=Tf(l,2))||120===n)return NaN}else if(48===e){switch(Tf(l,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(s=(a=yf(l,2)).length,o=0;o<s;o++)if((u=Tf(a,o))<48||u>i)return NaN;return parseInt(a,r)}return+l}(e)}(t)),n=this;return nf(pf,n)&&sf((function(){cf(n)}))?function(t,e,n){var r,i;return jd&&Rd(r=e.constructor)&&r!==n&&Bd(i=r.prototype)&&i!==n.prototype&&jd(t,i),t}(Object(e),n,vf):e},Af=qd?of(hf):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Sf=0;Af.length>Sf;Sf++)ef(hf,gf=Af[Sf])&&!ef(vf,gf)&&lf(vf,gf,uf(hf,gf));vf.prototype=pf,pf.constructor=vf,tf(Xd,ff,vf,{constructor:!0})}var bf={};Object.defineProperty(bf,"__esModule",{value:!0}),bf.LogLevel=void 0;var Ef=function(t){return t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Fatal=4]="Fatal",t}({});bf.LogLevel=Ef,Object.defineProperty(oa,"__esModule",{value:!0}),oa.ConsoleLogger=void 0,oa.buildConsoleLogger=function(t){return new xf(t)};var _f=bf;function Df(t){return Df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Df(t)}function Cf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Of(r.key),r)}}function Of(t){var e=function(t,e){if("object"!==Df(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Df(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Df(e)?e:String(e)}var xf=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),function(t,e,n){(e=Of(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(this,"context",void 0),this.context=e||{}}return function(t,e,n){e&&Cf(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"formatMessage",value:function(t,e,n){var r="["+_f.LogLevel[e].toUpperCase()+"] ";return n&&n.app&&(r+=n.app+": "),"string"==typeof t?r+t:(r+="Unexpected ".concat(t.name),t.message&&(r+=' "'.concat(t.message,'"')),e===_f.LogLevel.Debug&&t.stack&&(r+="\n\nStack trace:\n".concat(t.stack)),r)}},{key:"log",value:function(t,e,n){var r,i;if(!("number"==typeof(null===(r=this.context)||void 0===r?void 0:r.level)&&t<(null===(i=this.context)||void 0===i?void 0:i.level)))switch("object"===Df(e)&&void 0===(null==n?void 0:n.error)&&(n.error=e),t){case _f.LogLevel.Debug:P.debug(this.formatMessage(e,_f.LogLevel.Debug,n),n);break;case _f.LogLevel.Info:P.info(this.formatMessage(e,_f.LogLevel.Info,n),n);break;case _f.LogLevel.Warn:P.warn(this.formatMessage(e,_f.LogLevel.Warn,n),n);break;case _f.LogLevel.Error:P.error(this.formatMessage(e,_f.LogLevel.Error,n),n);break;case _f.LogLevel.Fatal:default:P.error(this.formatMessage(e,_f.LogLevel.Fatal,n),n)}}},{key:"debug",value:function(t,e){this.log(_f.LogLevel.Debug,t,Object.assign({},this.context,e))}},{key:"info",value:function(t,e){this.log(_f.LogLevel.Info,t,Object.assign({},this.context,e))}},{key:"warn",value:function(t,e){this.log(_f.LogLevel.Warn,t,Object.assign({},this.context,e))}},{key:"error",value:function(t,e){this.log(_f.LogLevel.Error,t,Object.assign({},this.context,e))}},{key:"fatal",value:function(t,e){this.log(_f.LogLevel.Fatal,t,Object.assign({},this.context,e))}}]),t}();oa.ConsoleLogger=xf;var If={},wf={},Nf={};var Uf="object"==typeof Y&&Y.env&&Y.env.NODE_DEBUG&&/\bsemver\b/i.test(Y.env.NODE_DEBUG)?(...t)=>P.error("SEMVER",...t):()=>{},Mf={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Lf={exports:{}};!function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Mf,a=Uf,s=(e=t.exports={}).re=[],o=e.safeRe=[],u=e.src=[],l=e.t={};let c=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[d,r]],h=(t,e,n)=>{const r=(t=>{for(const[e,n]of f)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t})(e),i=c++;a(t,i,e),l[t]=i,u[i]=e,s[i]=new RegExp(e,n?"g":void 0),o[i]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),h("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${d}+`),h("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),h("FULL",`^${u[l.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),h("LOOSE",`^${u[l.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),h("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),h("COERCERTL",u[l.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",h("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",h("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Lf,Lf.exports);var Pf=Lf.exports;const Yf=Object.freeze({loose:!0}),kf=Object.freeze({});const Rf=/^[0-9]+$/,Bf=(t,e)=>{const n=Rf.test(t),r=Rf.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1};var jf={compareIdentifiers:Bf,rcompareIdentifiers:(t,e)=>Bf(e,t)};const zf=Uf,{MAX_LENGTH:Wf,MAX_SAFE_INTEGER:Ff}=Mf,{safeRe:Zf,t:Vf}=Pf,Hf=t=>t?"object"!=typeof t?Yf:t:kf,{compareIdentifiers:$f}=jf;var Gf=class t{constructor(e,n){if(n=Hf(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Wf)throw new TypeError(`version is longer than ${Wf} characters`);zf("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=e.trim().match(n.loose?Zf[Vf.LOOSE]:Zf[Vf.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Ff||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ff||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ff||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<Ff)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(zf("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if("string"==typeof e&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),$f(this.major,e.major)||$f(this.minor,e.minor)||$f(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{const t=this.prerelease[n],r=e.prerelease[n];if(zf("prerelease compare",n,t,r),void 0===t&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===t)return-1;if(t!==r)return $f(t,r)}while(++n)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let n=0;do{const t=this.build[n],r=e.build[n];if(zf("prerelease compare",n,t,r),void 0===t&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===t)return-1;if(t!==r)return $f(t,r)}while(++n)}inc(t,e,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,n),this.inc("pre",e,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,n),this.inc("pre",e,n);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(n)?1:0;if(!e&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(e===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let r=[e,t];!1===n&&(r=[e]),0===$f(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const Kf=Gf;const qf=(t,e,n=!1)=>{if(t instanceof Kf)return t;try{return new Kf(t,e)}catch(t){if(!n)return null;throw t}};var Xf=(t,e)=>{const n=qf(t,e);return n?n.version:null};const Jf=Gf;Object.defineProperty(Nf,"__esModule",{value:!0});var Qf=(t,e)=>new Jf(t,e).major;function th(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var eh=th(Xf),nh=th(Qf),rh=function(){function t(t){"function"==typeof t.getVersion&&eh.default(t.getVersion())?nh.default(t.getVersion())!==nh.default(this.getVersion())&&P.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):P.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}return t.prototype.getVersion=function(){return"3.0.2"},t.prototype.subscribe=function(t,e){this.bus.subscribe(t,e)},t.prototype.unsubscribe=function(t,e){this.bus.unsubscribe(t,e)},t.prototype.emit=function(t,e){this.bus.emit(t,e)},t}(),ih=function(){function t(){this.handlers=new Map}return t.prototype.getVersion=function(){return"3.0.2"},t.prototype.subscribe=function(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).concat(e))},t.prototype.unsubscribe=function(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).filter((function(t){return t!=e})))},t.prototype.emit=function(t,e){(this.handlers.get(t)||[]).forEach((function(t){try{t(e)}catch(t){P.error("could not invoke event listener",t)}}))},t}(),ah=(typeof window.OC<"u"&&window.OC._eventBus&&typeof window._nc_event_bus>"u"&&(P.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window._nc_event_bus<"u"?new rh(window._nc_event_bus):window._nc_event_bus=new ih);Nf.ProxyBus=rh,Nf.SimpleBus=ih,Nf.emit=function(t,e){ah.emit(t,e)},Nf.subscribe=function(t,e){ah.subscribe(t,e)},Nf.unsubscribe=function(t,e){ah.unsubscribe(t,e)},Object.defineProperty(wf,"__esModule",{value:!0});var sh=Nf,oh=document.getElementsByTagName("head")[0],uh=oh?oh.getAttribute("data-requesttoken"):null,lh=[];sh.subscribe("csrf-token-update",(function(t){uh=t.token,lh.forEach((function(e){try{e(t.token)}catch(t){P.error("error updating CSRF token observer",t)}}))}));var ch=function(t,e){return t?t.getAttribute(e):null},dh=document.getElementsByTagName("head")[0],fh=ch(dh,"data-user"),hh=ch(dh,"data-user-displayname"),ph=!(typeof OC>"u")&&OC.isUserAdmin();wf.getCurrentUser=function(){return null===fh?null:{uid:fh,displayName:hh,isAdmin:ph}},wf.getRequestToken=function(){return uh},wf.onRequestTokenUpdate=function(t){lh.push(t)},Object.defineProperty(If,"__esModule",{value:!0}),If.LoggerBuilder=void 0;var mh=wf,yh=bf;function Th(t){return Th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Th(t)}function gh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ah(r.key),r)}}function vh(t,e,n){return(e=Ah(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ah(t){var e=function(t,e){if("object"!==Th(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Th(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Th(e)?e:String(e)}var Sh=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),vh(this,"context",void 0),vh(this,"factory",void 0),this.context={},this.factory=e}return function(t,e,n){e&&gh(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"setApp",value:function(t){return this.context.app=t,this}},{key:"setLogLevel",value:function(t){return this.context.level=t,this}},{key:"setUid",value:function(t){return this.context.uid=t,this}},{key:"detectUser",value:function(){var t=(0,mh.getCurrentUser)();return null!==t&&(this.context.uid=t.uid),this}},{key:"detectLogLevel",value:function(){var t=this;return function e(){var n,r;"complete"===document.readyState||"interactive"===document.readyState?(t.context.level=null!==(n=null===(r=window._oc_config)||void 0===r?void 0:r.loglevel)&&void 0!==n?n:yh.LogLevel.Warn,window._oc_debug&&(t.context.level=yh.LogLevel.Debug),document.removeEventListener("readystatechange",e)):document.addEventListener("readystatechange",e)}(),this}},{key:"build",value:function(){return void 0===this.context.level&&this.detectLogLevel(),this.factory(this.context)}}]),t}();If.LoggerBuilder=Sh,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LogLevel",{enumerable:!0,get:function(){return r.LogLevel}}),t.getLogger=function(){return i().build()},t.getLoggerBuilder=i;var e=oa,n=If,r=bf;function i(){return new n.LoggerBuilder(e.buildConsoleLogger)}}(lt);const bh=lt.getLoggerBuilder().detectUser().setApp("@nextcloud/calendar-availability-vue").build();var Eh=r(14596),_h=r(56580),Dh=r.n(_h),Ch=r(77958);const Oh=Dh()((t=>(f.Z.defaults.headers["X-Requested-With"]="XMLHttpRequest",Eh.lD().patch("request",f.Z),Eh.eI((0,d.generateRemoteUrl)(`dav/${t}/${(0,Ch.ts)().uid}`))))),xh=(0,r(17499).IY)().setApp("dav").detectUser().build();var Ih=r(19642),wh=r(13888),Nh=r(25108);const Uh={name:"AvailabilityForm",components:{NcButton:o.Z,NcCheckboxRadioSwitch:Ih.Z,CalendarAvailability:V,NcTimezonePicker:wh.Z},data:()=>({loading:!0,saving:!1,timezone:(new Intl.DateTimeFormat)?.resolvedOptions()?.timeZone??"UTC",slots:{MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]},automated:"yes"===(0,p.j)("dav","user_status_automation")}),computed:{timeZonePickerId:()=>`tz-${(Math.random()+1).toString(36).substring(7)}`},async mounted(){try{const t=await async function(){const t=Oh("calendars"),e=await t.customRequest("inbox",{method:"PROPFIND",data:'<?xml version="1.0"?>\n\t\t\t<x0:propfind xmlns:x0="DAV:">\n\t\t\t <x0:prop>\n\t\t\t\t<x1:calendar-availability xmlns:x1="urn:ietf:params:xml:ns:caldav"/>\n\t\t\t </x0:prop>\n\t\t\t</x0:propfind>'}),n=await(0,Eh.sw)(e.data);if(!n)return;const r=n?.multistatus?.response[0]?.propstat?.prop["calendar-availability"];return r?function(t){const e=nt.parse(t),n=new nt.Component(e),r=n.getFirstSubcomponent("vavailability");let i;const a=n.getFirstSubcomponent("vtimezone");a&&(i=a.getFirstProperty("tzid").getFirstValue());const s=r.getAllSubcomponents("available"),o={MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]};return s.forEach((t=>{const e=t.getFirstProperty("dtstart").getFirstValue().toJSDate(),n=t.getFirstProperty("dtend").getFirstValue().toJSDate(),r=t.getFirstProperty("rrule");"WEEKLY"===r.getFirstValue().freq?r.getFirstValue().getComponent("BYDAY").forEach((t=>{o[t].push({start:e.getTime()/1e3,end:n.getTime()/1e3})})):bh.warn("rrule not supported",{rrule:r.toICALString()})})),{slots:o,timezoneId:i}}(r):void 0}();if(t){const{slots:e,timezoneId:n}=t;this.slots=e,n&&(this.timezone=n),Nh.info("availability loaded",this.slots,this.timezoneId)}else Nh.info("no availability is set"),this.slots={MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]}}catch(e){Nh.error("could not load existing availability",e),(0,m.x2)(t("dav","Failed to load availability"))}finally{this.loading=!1}},methods:{async save(){try{this.saving=!0,await async function(t,e){const n=function(t,e){const n=new k.Component("vcalendar");n.addPropertyWithValue("prodid","Nextcloud DAV app");const r=K(e);if(r){const t=new k.Component(k.parse(r));n.addSubcomponent(t)}else{const t=new k.Component("vtimezone");t.addPropertyWithValue("tzid",e),n.addSubcomponent(t)}const i=new k.Component("vavailability"),a=t.reduce(((t,e)=>{var n;const r=new Date(1e3*e.start),i=new Date(1e3*e.end),a=[r.getHours(),r.getMinutes(),i.getHours(),i.getMinutes()].join("-");return{...t,[a]:[...null!=(n=t[a])?n:[],e]}}),{});return Object.keys(a).map((t=>{const n=a[t],r=n[0].start,i=n[0].end,s=n.map((t=>t.day)).filter(((t,e,n)=>n.indexOf(t)===e)),o=new k.Component("available");return o.addPropertyWithValue("dtstart",k.Time.fromJSDate(new Date(1e3*r),!1)).setParameter("tzid",e),o.addPropertyWithValue("dtend",k.Time.fromJSDate(new Date(1e3*i),!1)).setParameter("tzid",e),o.addPropertyWithValue("uid",ut()),o.addPropertyWithValue("rrule",{freq:"WEEKLY",byday:s}),o})).map(i.addSubcomponent.bind(i)),n.addSubcomponent(i),n.toString()}([...Object.keys(t).flatMap((e=>t[e].map((t=>({...t,day:e})))))],e);xh.debug("New availability ical created",{vavailability:n});const r=Oh("calendars");await r.customRequest("inbox",{method:"PROPPATCH",data:`<?xml version="1.0"?>\n\t\t\t<x0:propertyupdate xmlns:x0="DAV:">\n\t\t\t <x0:set>\n\t\t\t\t<x0:prop>\n\t\t\t\t <x1:calendar-availability xmlns:x1="urn:ietf:params:xml:ns:caldav">${n}</x1:calendar-availability>\n\t\t\t\t</x0:prop>\n\t\t\t </x0:set>\n\t\t\t</x0:propertyupdate>`})}(this.slots,this.timezone),this.automated?await async function(){return await f.Z.post((0,d.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}),{configValue:"yes"})}():await async function(){return await f.Z.delete((0,d.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}))}(),(0,m.s$)(t("dav","Saved availability"))}catch(e){Nh.error("could not save availability",e),(0,m.x2)(t("dav","Failed to save availability"))}finally{this.saving=!1}}}},Mh=Uh;var Lh=r(43842),Ph={};Ph.styleTagTransform=x(),Ph.setAttributes=_(),Ph.insert=b().bind(null,"head"),Ph.domAPI=A(),Ph.insertStyleElement=C(),g()(Lh.Z,Ph),Lh.Z&&Lh.Z.locals&&Lh.Z.locals;var Yh=(0,N.Z)(Mh,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"time-zone"},[e("label",{staticClass:"time-zone__heading",attrs:{for:`vs${t.timeZonePickerId}__combobox`}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Time zone:"))+"\n\t\t")]),t._v(" "),e("span",{staticClass:"time-zone-text"},[e("NcTimezonePicker",{attrs:{uid:t.timeZonePickerId},model:{value:t.timezone,callback:function(e){t.timezone=e},expression:"timezone"}})],1)]),t._v(" "),e("CalendarAvailability",{attrs:{slots:t.slots,loading:t.loading,"l10n-to":t.$t("dav","to"),"l10n-delete-slot":t.$t("dav","Delete slot"),"l10n-empty-day":t.$t("dav","No working hours set"),"l10n-add-slot":t.$t("dav","Add slot"),"l10n-monday":t.$t("dav","Monday"),"l10n-tuesday":t.$t("dav","Tuesday"),"l10n-wednesday":t.$t("dav","Wednesday"),"l10n-thursday":t.$t("dav","Thursday"),"l10n-friday":t.$t("dav","Friday"),"l10n-saturday":t.$t("dav","Saturday"),"l10n-sunday":t.$t("dav","Sunday")},on:{"update:slots":function(e){t.slots=e}}}),t._v(" "),e("NcCheckboxRadioSwitch",{attrs:{checked:t.automated},on:{"update:checked":function(e){t.automated=e}}},[t._v("\n\t\t"+t._s(t.$t("dav",'Automatically set user status to "Do not disturb" outside of availability to mute all notifications.'))+"\n\t")]),t._v(" "),e("NcButton",{attrs:{disabled:t.loading||t.saving,type:"primary"},on:{click:t.save}},[t._v("\n\t\t"+t._s(t.$t("dav","Save"))+"\n\t")])],1)}),[],!1,null,"65b5061b",null);const kh=Yh.exports,Rh={name:"Availability",components:{NcSettingsSection:s.Z,AbsenceForm:M,AvailabilityForm:kh},data:()=>({hideAbsenceSettings:(0,p.j)("dav","hide_absence_settings",!0)})};var Bh=(0,N.Z)(Rh,(function(){var t=this,e=t._self._c;return e("div",[e("NcSettingsSection",{attrs:{name:t.$t("dav","Availability"),description:t.$t("dav","If you configure your working hours, other users will see when you are out of office when they book a meeting.")}},[e("AvailabilityForm")],1),t._v(" "),t.hideAbsenceSettings?t._e():e("NcSettingsSection",{attrs:{name:t.$t("dav","Absence"),description:t.$t("dav","Configure your next absence period.")}},[e("AbsenceForm")],1)],1)}),[],!1,null,null,null);const jh=Bh.exports;i.default.prototype.$t=a.Iu,new(i.default.extend(jh))({}).$mount("#settings-personal-availability")},49980:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(87537),i=n.n(r),a=n(23645),s=n.n(a)()(i());s.push([t.id,".absence[data-v-5a6b66ca]{display:flex;flex-direction:column;gap:5px}.absence__dates[data-v-5a6b66ca]{display:flex;gap:10px;width:100%}.absence__dates__picker[data-v-5a6b66ca]{flex:1 auto}.absence__dates__picker[data-v-5a6b66ca] .native-datetime-picker--input{margin-bottom:0}.absence__buttons[data-v-5a6b66ca]{display:flex;gap:5px}","",{version:3,sources:["webpack://./apps/dav/src/components/AbsenceForm.vue"],names:[],mappings:"AACA,0BACC,YAAA,CACA,qBAAA,CACA,OAAA,CAEA,iCACC,YAAA,CACA,QAAA,CACA,UAAA,CAEA,yCACC,WAAA,CAEA,wEACC,eAAA,CAKH,mCACC,YAAA,CACA,OAAA",sourcesContent:["\n.absence {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 5px;\n\n\t&__dates {\n\t\tdisplay: flex;\n\t\tgap: 10px;\n\t\twidth: 100%;\n\n\t\t&__picker {\n\t\t\tflex: 1 auto;\n\n\t\t\t::v-deep .native-datetime-picker--input {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__buttons {\n\t\tdisplay: flex;\n\t\tgap: 5px;\n\t}\n}\n"],sourceRoot:""}]);const o=s},43842:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(87537),i=n.n(r),a=n(23645),s=n.n(a)()(i());s.push([t.id,"[data-v-65b5061b] .availability-day{padding:0 10px 0 10px;position:absolute}[data-v-65b5061b] .availability-slots{display:flex;white-space:normal}[data-v-65b5061b] .availability-slot{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}[data-v-65b5061b] .availability-slot-group{display:flex;flex-direction:column}[data-v-65b5061b] .mx-input-wrapper{width:85px}[data-v-65b5061b] .mx-datepicker{width:97px}[data-v-65b5061b] .multiselect{border:1px solid var(--color-border-dark);width:120px}.time-zone[data-v-65b5061b]{padding:32px 12px 12px 0;display:flex;flex-wrap:wrap}.time-zone__heading[data-v-65b5061b]{margin-right:calc(var(--default-grid-baseline)*2);line-height:var(--default-clickable-area);font-weight:bold}.grid-table[data-v-65b5061b]{display:grid;margin-bottom:32px;grid-column-gap:24px;grid-row-gap:6px;grid-template-columns:min-content auto min-content;max-width:500px}.button[data-v-65b5061b]{align-self:flex-end}[data-v-65b5061b] .label-weekday{position:relative;display:inline-flex;padding-top:4px;align-self:center}[data-v-65b5061b] .delete-slot{padding-bottom:unset}[data-v-65b5061b] .add-another{align-self:center}.to-text[data-v-65b5061b]{padding-right:12px}.empty-content[data-v-65b5061b]{color:var(--color-text-lighter);margin-top:4px;align-self:center}","",{version:3,sources:["webpack://./apps/dav/src/components/AvailabilityForm.vue"],names:[],mappings:"AACA,oCACC,qBAAA,CACA,iBAAA,CAED,sCACC,YAAA,CACA,kBAAA,CAED,qCACC,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,cAAA,CAED,2CACC,YAAA,CACA,qBAAA,CAED,oCACC,UAAA,CAED,iCACC,UAAA,CAED,+BACC,yCAAA,CACA,WAAA,CAED,4BACC,wBAAA,CACG,YAAA,CACA,cAAA,CAEH,qCACC,iDAAA,CACA,yCAAA,CACA,gBAAA,CAGF,6BACC,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,gBAAA,CACA,kDAAA,CACA,eAAA,CAED,yBACC,mBAAA,CAED,iCACC,iBAAA,CACA,mBAAA,CACA,eAAA,CACA,iBAAA,CAGD,+BACC,oBAAA,CAGD,+BACC,iBAAA,CAGD,0BACC,kBAAA,CAGD,gCACC,+BAAA,CACA,cAAA,CACA,iBAAA",sourcesContent:["\n:deep(.availability-day) {\n\tpadding: 0 10px 0 10px;\n\tposition: absolute;\n}\n:deep(.availability-slots) {\n\tdisplay: flex;\n\twhite-space: normal;\n}\n:deep(.availability-slot) {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tflex-wrap: wrap;\n}\n:deep(.availability-slot-group) {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n:deep(.mx-input-wrapper) {\n\twidth: 85px;\n}\n:deep(.mx-datepicker) {\n\twidth: 97px;\n}\n:deep(.multiselect) {\n\tborder: 1px solid var(--color-border-dark);\n\twidth: 120px;\n}\n.time-zone {\n\tpadding: 32px 12px 12px 0;\n display: flex;\n flex-wrap: wrap;\n\n\t&__heading {\n\t\tmargin-right: calc(var(--default-grid-baseline) * 2);\n\t\tline-height: var(--default-clickable-area);\n\t\tfont-weight: bold;\n\t}\n}\n.grid-table {\n\tdisplay: grid;\n\tmargin-bottom: 32px;\n\tgrid-column-gap: 24px;\n\tgrid-row-gap: 6px;\n\tgrid-template-columns: min-content auto min-content;\n\tmax-width: 500px;\n}\n.button {\n\talign-self: flex-end;\n}\n:deep(.label-weekday) {\n\tposition: relative;\n\tdisplay: inline-flex;\n\tpadding-top: 4px;\n\talign-self: center;\n}\n\n:deep(.delete-slot) {\n\tpadding-bottom: unset;\n}\n\n:deep(.add-another) {\n\talign-self: center;\n}\n\n.to-text {\n\tpadding-right: 12px;\n}\n\n.empty-content {\n\tcolor: var(--color-text-lighter);\n\tmargin-top: 4px;\n\talign-self: center;\n}\n"],sourceRoot:""}]);const o=s},96425:(t,e,n)=>{var r=n(3118),i=n(9435);function a(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}a.prototype=r(i.prototype),a.prototype.constructor=a,t.exports=a},7548:(t,e,n)=>{var r=n(3118),i=n(9435);function a(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}a.prototype=r(i.prototype),a.prototype.constructor=a,t.exports=a},21078:(t,e,n)=>{var r=n(62488),i=n(37285);t.exports=function t(e,n,a,s,o){var u=-1,l=e.length;for(a||(a=i),o||(o=[]);++u<l;){var c=e[u];n>0&&a(c)?n>1?t(c,n-1,a,s,o):r(o,c):s||(o[o.length]=c)}return o}},9435:t=>{t.exports=function(){}},28045:(t,e,n)=>{var r=n(6557),i=n(89250),a=i?function(t,e){return i.set(t,e),t}:r;t.exports=a},52157:t=>{var e=Math.max;t.exports=function(t,n,r,i){for(var a=-1,s=t.length,o=r.length,u=-1,l=n.length,c=e(s-o,0),d=Array(l+c),f=!i;++u<l;)d[u]=n[u];for(;++a<o;)(f||a<s)&&(d[r[a]]=t[a]);for(;c--;)d[u++]=t[a++];return d}},14054:t=>{var e=Math.max;t.exports=function(t,n,r,i){for(var a=-1,s=t.length,o=-1,u=r.length,l=-1,c=n.length,d=e(s-u,0),f=Array(d+c),h=!i;++a<d;)f[a]=t[a];for(var p=a;++l<c;)f[p+l]=n[l];for(;++o<u;)(h||a<s)&&(f[p+r[o]]=t[a++]);return f}},97991:t=>{t.exports=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}},22402:(t,e,n)=>{var r=n(71774),i=n(55639);t.exports=function(t,e,n){var a=1&e,s=r(t);return function e(){return(this&&this!==i&&this instanceof e?s:t).apply(a?n:this,arguments)}}},71774:(t,e,n)=>{var r=n(3118),i=n(13218);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=r(t.prototype),a=t.apply(n,e);return i(a)?a:n}}},46347:(t,e,n)=>{var r=n(96874),i=n(71774),a=n(86935),s=n(94487),o=n(20893),u=n(46460),l=n(55639);t.exports=function(t,e,n){var c=i(t);return function i(){for(var d=arguments.length,f=Array(d),h=d,p=o(i);h--;)f[h]=arguments[h];var m=d<3&&f[0]!==p&&f[d-1]!==p?[]:u(f,p);return(d-=m.length)<n?s(t,e,a,i.placeholder,void 0,f,m,void 0,void 0,n-d):r(this&&this!==l&&this instanceof i?c:t,this,f)}}},86935:(t,e,n)=>{var r=n(52157),i=n(14054),a=n(97991),s=n(71774),o=n(94487),u=n(20893),l=n(90451),c=n(46460),d=n(55639);t.exports=function t(e,n,f,h,p,m,y,T,g,v){var A=128&n,S=1&n,b=2&n,E=24&n,_=512&n,D=b?void 0:s(e);return function C(){for(var O=arguments.length,x=Array(O),I=O;I--;)x[I]=arguments[I];if(E)var w=u(C),N=a(x,w);if(h&&(x=r(x,h,p,E)),m&&(x=i(x,m,y,E)),O-=N,E&&O<v){var U=c(x,w);return o(e,n,t,C.placeholder,f,x,U,T,g,v-O)}var M=S?f:this,L=b?M[e]:e;return O=x.length,T?x=l(x,T):_&&O>1&&x.reverse(),A&&g<O&&(x.length=g),this&&this!==d&&this instanceof C&&(L=D||s(L)),L.apply(M,x)}}},84375:(t,e,n)=>{var r=n(96874),i=n(71774),a=n(55639);t.exports=function(t,e,n,s){var o=1&e,u=i(t);return function e(){for(var i=-1,l=arguments.length,c=-1,d=s.length,f=Array(d+l),h=this&&this!==a&&this instanceof e?u:t;++c<d;)f[c]=s[c];for(;l--;)f[c++]=arguments[++i];return r(h,o?n:this,f)}}},94487:(t,e,n)=>{var r=n(86528),i=n(258),a=n(69255);t.exports=function(t,e,n,s,o,u,l,c,d,f){var h=8&e;e|=h?32:64,4&(e&=~(h?64:32))||(e&=-4);var p=[t,e,o,h?u:void 0,h?l:void 0,h?void 0:u,h?void 0:l,c,d,f],m=n.apply(void 0,p);return r(t)&&i(m,p),m.placeholder=s,a(m,t,e)}},97727:(t,e,n)=>{var r=n(28045),i=n(22402),a=n(46347),s=n(86935),o=n(84375),u=n(66833),l=n(63833),c=n(258),d=n(69255),f=n(40554),h=Math.max;t.exports=function(t,e,n,p,m,y,T,g){var v=2&e;if(!v&&"function"!=typeof t)throw new TypeError("Expected a function");var A=p?p.length:0;if(A||(e&=-97,p=m=void 0),T=void 0===T?T:h(f(T),0),g=void 0===g?g:f(g),A-=m?m.length:0,64&e){var S=p,b=m;p=m=void 0}var E=v?void 0:u(t),_=[t,e,n,p,m,S,b,y,T,g];if(E&&l(_,E),t=_[0],e=_[1],n=_[2],p=_[3],m=_[4],!(g=_[9]=void 0===_[9]?v?0:t.length:h(_[9]-A,0))&&24&e&&(e&=-25),e&&1!=e)D=8==e||16==e?a(t,e,g):32!=e&&33!=e||m.length?s.apply(void 0,_):o(t,e,n,p);else var D=i(t,e,n);return d((E?r:c)(D,_),t,e)}},99021:(t,e,n)=>{var r=n(85564),i=n(45357),a=n(30061);t.exports=function(t){return a(i(t,void 0,r),t+"")}},66833:(t,e,n)=>{var r=n(89250),i=n(50308),a=r?function(t){return r.get(t)}:i;t.exports=a},97658:(t,e,n)=>{var r=n(52060),i=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",n=r[e],a=i.call(r,e)?n.length:0;a--;){var s=n[a],o=s.func;if(null==o||o==t)return s.name}return e}},20893:t=>{t.exports=function(t){return t.placeholder}},58775:t=>{var e=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;t.exports=function(t){var r=t.match(e);return r?r[1].split(n):[]}},83112:t=>{var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,n){var r=n.length;if(!r)return t;var i=r-1;return n[i]=(r>1?"& ":"")+n[i],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}},37285:(t,e,n)=>{var r=n(62705),i=n(35694),a=n(1469),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return a(t)||i(t)||!!(s&&t&&t[s])}},86528:(t,e,n)=>{var r=n(96425),i=n(66833),a=n(97658),s=n(8111);t.exports=function(t){var e=a(t),n=s[e];if("function"!=typeof n||!(e in r.prototype))return!1;if(t===n)return!0;var o=i(n);return!!o&&t===o[0]}},63833:(t,e,n)=>{var r=n(52157),i=n(14054),a=n(46460),s="__lodash_placeholder__",o=Math.min;t.exports=function(t,e){var n=t[1],u=e[1],l=n|u,c=l<131,d=128==u&&8==n||128==u&&256==n&&t[7].length<=e[8]||384==u&&e[7].length<=e[8]&&8==n;if(!c&&!d)return t;1&u&&(t[2]=e[2],l|=1&n?0:4);var f=e[3];if(f){var h=t[3];t[3]=h?r(h,f,e[4]):f,t[4]=h?a(t[3],s):e[4]}return(f=e[5])&&(h=t[5],t[5]=h?i(h,f,e[6]):f,t[6]=h?a(t[5],s):e[6]),(f=e[7])&&(t[7]=f),128&u&&(t[8]=null==t[8]?e[8]:o(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=l,t}},89250:(t,e,n)=>{var r=n(70577),i=r&&new r;t.exports=i},52060:t=>{t.exports={}},90451:(t,e,n)=>{var r=n(278),i=n(65776),a=Math.min;t.exports=function(t,e){for(var n=t.length,s=a(e.length,n),o=r(t);s--;){var u=e[s];t[s]=i(u,n)?o[u]:void 0}return t}},46460:t=>{var e="__lodash_placeholder__";t.exports=function(t,n){for(var r=-1,i=t.length,a=0,s=[];++r<i;){var o=t[r];o!==n&&o!==e||(t[r]=e,s[a++]=r)}return s}},258:(t,e,n)=>{var r=n(28045),i=n(21275)(r);t.exports=i},69255:(t,e,n)=>{var r=n(58775),i=n(83112),a=n(30061),s=n(87241);t.exports=function(t,e,n){var o=e+"";return a(t,i(o,s(r(o),n)))}},87241:(t,e,n)=>{var r=n(77412),i=n(47443),a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return r(a,(function(n){var r="_."+n[0];e&n[1]&&!i(t,r)&&t.push(r)})),t.sort()}},21913:(t,e,n)=>{var r=n(96425),i=n(7548),a=n(278);t.exports=function(t){if(t instanceof r)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=a(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},39514:(t,e,n)=>{var r=n(97727);t.exports=function(t,e,n){return e=n?void 0:e,e=t&&null==e?t.length:e,r(t,128,void 0,void 0,void 0,void 0,e)}},40087:(t,e,n)=>{var r=n(97727);function i(t,e,n){var a=r(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return a.placeholder=i.placeholder,a}i.placeholder={},t.exports=i},85564:(t,e,n)=>{var r=n(21078);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},84599:(t,e,n)=>{var r=n(68836),i=n(69306),a=Array.prototype.push;function s(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function o(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function u(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=e.apply(void 0,r);return t.apply(void 0,r),i}}}t.exports=function t(e,n,l,c){var d="function"==typeof n,f=n===Object(n);if(f&&(c=l,l=n,n=void 0),null==l)throw new TypeError;c||(c={});var h={cap:!("cap"in c)||c.cap,curry:!("curry"in c)||c.curry,fixed:!("fixed"in c)||c.fixed,immutable:!("immutable"in c)||c.immutable,rearg:!("rearg"in c)||c.rearg},p=d?l:i,m="curry"in c&&c.curry,y="fixed"in c&&c.fixed,T="rearg"in c&&c.rearg,g=d?l.runInContext():void 0,v=d?l:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},A=v.ary,S=v.assign,b=v.clone,E=v.curry,_=v.forEach,D=v.isArray,C=v.isError,O=v.isFunction,x=v.isWeakMap,I=v.keys,w=v.rearg,N=v.toInteger,U=v.toPath,M=I(r.aryMethod),L={castArray:function(t){return function(){var e=arguments[0];return D(e)?t(o(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],n=t(arguments[0],e),r=n.length;return h.cap&&"number"==typeof e?(e=e>2?e-2:1,r&&r<=e?n:s(n,e)):n}},mixin:function(t){return function(e){var n=this;if(!O(n))return t(n,Object(e));var r=[];return _(I(e),(function(t){O(e[t])&&r.push([t,n.prototype[t]])})),t(n,Object(e)),_(r,(function(t){var e=t[1];O(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]})),n}},nthArg:function(t){return function(e){var n=e<0?1:N(e)+1;return E(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return E(t(e,n),r)}},runInContext:function(n){return function(r){return t(e,n(r),c)}}};function P(t,e,n){if(h.fixed&&(y||!r.skipFixed[t])){var i=r.methodSpread[t],s=i&&i.start;return void 0===s?A(e,n):function(t,e){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var s=i[e],o=i.slice(0,e);return s&&a.apply(o,s),e!=r&&a.apply(o,i.slice(e+1)),t.apply(this,o)}}(e,s)}return e}function Y(t,e,n){return h.rearg&&n>1&&(T||!r.skipRearg[t])?w(e,r.methodRearg[t]||r.aryRearg[n]):e}function k(t,e){for(var n=-1,r=(e=U(e)).length,i=r-1,a=b(Object(t)),s=a;null!=s&&++n<r;){var o=e[n],u=s[o];null==u||O(u)||C(u)||x(u)||(s[o]=b(n==i?u:Object(u))),s=s[o]}return a}function R(e,n){var i=r.aliasToReal[e]||e,a=r.remap[i]||i,s=c;return function(e){var r=d?g:v,o=d?g[a]:n,u=S(S({},s),e);return t(r,i,o,u)}}function B(t,e){return function(){var n=arguments.length;if(!n)return t();for(var r=Array(n);n--;)r[n]=arguments[n];var i=h.rearg?0:n-1;return r[i]=e(r[i]),t.apply(void 0,r)}}function j(t,e,n){var i,a=r.aliasToReal[t]||t,l=e,c=L[a];return c?l=c(e):h.immutable&&(r.mutate.array[a]?l=u(e,o):r.mutate.object[a]?l=u(e,function(t){return function(e){return t({},e)}}(e)):r.mutate.set[a]&&(l=u(e,k))),_(M,(function(t){return _(r.aryMethod[t],(function(e){if(a==e){var n=r.methodSpread[a],o=n&&n.afterRearg;return i=o?P(a,Y(a,l,t),t):Y(a,P(a,l,t),t),i=function(t,e,n){return m||h.curry&&n>1?E(e,n):e}(0,i=function(t,e){if(h.cap){var n=r.iterateeRearg[t];if(n)return function(t,e){return B(t,(function(t){var n=e.length;return function(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(w(s(t,n),e),n)}))}(e,n);var i=!d&&r.iterateeAry[t];if(i)return function(t,e){return B(t,(function(t){return"function"==typeof t?s(t,e):t}))}(e,i)}return e}(a,i),t),!1}})),!i})),i||(i=l),i==e&&(i=m?E(i,1):function(){return e.apply(this,arguments)}),i.convert=R(a,e),i.placeholder=e.placeholder=n,i}if(!f)return j(n,l,p);var z=l,W=[];return _(M,(function(t){_(r.aryMethod[t],(function(t){var e=z[r.remap[t]||t];e&&W.push([t,j(t,e,z)])}))})),_(I(z),(function(t){var e=z[t];if("function"==typeof e){for(var n=W.length;n--;)if(W[n][0]==t)return;e.convert=R(t,e),W.push([t,e])}})),_(W,(function(t){z[t[0]]=t[1]})),z.convert=function(t){return z.runInContext.convert(t)(void 0)},z.placeholder=z,_(I(z),(function(t){_(r.realToAlias[t]||[],(function(e){z[e]=z[t]}))})),z}},68836:(t,e)=>{e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var i in n){var a=n[i];t.call(r,a)?r[a].push(i):r[a]=[i]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},4269:(t,e,n)=>{t.exports={ary:n(39514),assign:n(44037),clone:n(66678),curry:n(40087),forEach:n(77412),isArray:n(1469),isError:n(64647),isFunction:n(23560),isWeakMap:n(81018),iteratee:n(72594),keys:n(280),rearg:n(4963),toInteger:n(40554),toPath:n(30084)}},92822:(t,e,n)=>{var r=n(84599),i=n(4269);t.exports=function(t,e,n){return r(i,t,e,n)}},56580:(t,e,n)=>{var r=n(92822)("memoize",n(88306));r.placeholder=n(69306),t.exports=r},69306:t=>{t.exports={}},64647:(t,e,n)=>{var r=n(44239),i=n(37005),a=n(68630);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!a(t)}},81018:(t,e,n)=>{var r=n(64160),i=n(37005);t.exports=function(t){return i(t)&&"[object WeakMap]"==r(t)}},72594:(t,e,n)=>{var r=n(85990),i=n(67206);t.exports=function(t){return i("function"==typeof t?t:r(t,1))}},4963:(t,e,n)=>{var r=n(97727),i=n(99021)((function(t,e){return r(t,256,void 0,void 0,void 0,e)}));t.exports=i},18601:(t,e,n)=>{var r=n(14841);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},40554:(t,e,n)=>{var r=n(18601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},30084:(t,e,n)=>{var r=n(29932),i=n(278),a=n(1469),s=n(33448),o=n(55514),u=n(40327),l=n(79833);t.exports=function(t){return a(t)?r(t,u):s(t)?[t]:i(o(l(t)))}},8111:(t,e,n)=>{var r=n(96425),i=n(7548),a=n(9435),s=n(1469),o=n(37005),u=n(21913),l=Object.prototype.hasOwnProperty;function c(t){if(o(t)&&!s(t)&&!(t instanceof r)){if(t instanceof i)return t;if(l.call(t,"__wrapped__"))return u(t)}return new i(t)}c.prototype=a.prototype,c.prototype.constructor=c,t.exports=c},42761:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg=="},87210:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K"},94659:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg=="},39896:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTE1LjQgMTYuNkwxMC44IDEybDQuNi00LjZMMTQgNmwtNiA2IDYgNiAxLjQtMS40eiIvPjwvc3ZnPg=="},76899:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTE4LjQgNy40TDE3IDZsLTYgNiA2IDYgMS40LTEuNC00LjYtNC42IDQuNi00LjZtLTYgMEwxMSA2bC02IDYgNiA2IDEuNC0xLjRMNy44IDEybDQuNi00LjZ6Ii8+PC9zdmc+"},88931:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTUuNiA3LjRMNyA2bDYgNi02IDYtMS40LTEuNCA0LjYtNC42LTQuNi00LjZtNiAwTDEzIDZsNiA2LTYgNi0xLjQtMS40IDQuNi00LjYtNC42LTQuNnoiLz48L3N2Zz4="},16556:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTguNiAxNi42bDQuNi00LjYtNC42LTQuNkwxMCA2bDYgNi02IDYtMS40LTEuNHoiLz48L3N2Zz4="},46318:(t,e,n)=>{"use strict";n.d(e,{NcAutoCompleteResult:()=>T,default:()=>S}),n(29774);var r=n(22663),i=n(79753),a=n(76311),s=n(66238),o=(n(79845),n(93911)),u=n(21617),l=(n(93664),n(22175),n(99114),n(92774),n(20435),n(49368),n(4072),n(57274),n(6136),n(69183),n(69254),n(44893),n(65507)),c=n(20296),d=n(36683),f=n(73045),h=n(25108);const p={name:"NcAutoCompleteResult",props:{title:{type:String,required:!0},subline:{type:String,default:null},id:{type:String,default:null},icon:{type:String,required:!0},iconUrl:{type:String,default:null},source:{type:String,required:!0},status:{type:[Object,Array],default:()=>({})}},computed:{avatarUrl(){return this.iconUrl?this.iconUrl:this.id&&"users"===this.source?this.getAvatarUrl(this.id,44):null},haveStatus(){var t,e,n;return(null==(t=this.status)?void 0:t.icon)||(null==(e=this.status)?void 0:e.status)&&"offline"!==(null==(n=this.status)?void 0:n.status)}},methods:{getAvatarUrl:(t,e)=>(0,i.generateUrl)("/avatar/{user}/{size}",{user:t,size:e})}};var m=function(){var t=this,e=t._self._c;return e("div",{staticClass:"autocomplete-result"},[e("div",{staticClass:"autocomplete-result__icon",class:[t.icon,"autocomplete-result__icon--"+(t.avatarUrl?"with-avatar":"")],style:t.avatarUrl?{backgroundImage:`url(${t.avatarUrl})`}:null},[t.haveStatus?e("div",{staticClass:"autocomplete-result__status",class:[`autocomplete-result__status--${t.status&&t.status.icon?"icon":t.status.status}`]},[t._v(" "+t._s(t.status&&t.status.icon||"")+" ")]):t._e()]),e("span",{staticClass:"autocomplete-result__content"},[e("span",{staticClass:"autocomplete-result__title",attrs:{title:t.title}},[t._v(" "+t._s(t.title)+" ")]),t.subline?e("span",{staticClass:"autocomplete-result__subline"},[t._v(" "+t._s(t.subline)+" ")]):t._e()])])},y=[];const T=(0,a.n)(p,m,y,!1,null,"25cf09d8",null,null).exports,g={name:"NcRichContenteditable",directives:{tooltip:f.VTooltip},mixins:[r.r],props:{value:{type:String,default:"",required:!0},placeholder:{type:String,default:(0,s.t)("Write a message …")},autoComplete:{type:Function,default:()=>[]},menuContainer:{type:Element,default:()=>document.body},multiline:{type:Boolean,default:!1},contenteditable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},maxlength:{type:Number,default:null},emojiAutocomplete:{type:Boolean,default:!0},linkAutocomplete:{type:Boolean,default:!0}},emits:["submit","paste","update:value","smart-picker-submit"],data(){return{textSmiles:[],tribute:null,autocompleteOptions:{allowSpaces:!0,fillAttr:"id",lookup:t=>`${t.id} ${t.title}`,menuContainer:this.menuContainer,menuItemTemplate:t=>this.renderComponentHtml(t.original,T),noMatchTemplate:()=>'<span class="hidden"></span>',selectTemplate:t=>{var e;return this.genSelectTemplate(null==(e=null==t?void 0:t.original)?void 0:e.id)},values:this.debouncedAutoComplete},emojiOptions:{trigger:":",lookup:(t,e)=>e,menuContainer:this.menuContainer,menuItemTemplate:t=>this.textSmiles.includes(t.original)?t.original:`<span class="tribute-container-emoji__item__emoji">${t.original.native}</span> :${t.original.short_name}`,noMatchTemplate:()=>(0,s.t)("No emoji found"),selectTemplate:t=>this.textSmiles.includes(t.original)?t.original:((0,o.R)(t.original),t.original.native),values:(t,e)=>{const n=(0,o.K)(t);this.textSmiles.includes(":"+t)&&n.unshift(":"+t),e(n)},containerClass:"tribute-container-emoji",itemClass:"tribute-container-emoji__item"},linkOptions:{trigger:"/",lookup:(t,e)=>e,menuContainer:this.menuContainer,menuItemTemplate:t=>`<img class="tribute-container-link__item__icon" src="${t.original.icon_url}"> <span class="tribute-container-link__item__title">${t.original.title}</span>`,noMatchTemplate:()=>(0,s.t)("No link provider found"),selectTemplate:this.getLink,values:(t,e)=>e((0,u.n)(t)),containerClass:"tribute-container-link",itemClass:"tribute-container-link__item"},localValue:this.value,isComposing:!1}},computed:{isEmptyValue(){return!this.localValue||this.localValue&&""===this.localValue.trim()},isFF:()=>!!navigator.userAgent.match(/firefox/i),isOverMaxlength(){return!(this.isEmptyValue||!this.maxlength)&&(0,d.default)(this.localValue)>this.maxlength},tooltipString(){return this.isOverMaxlength?{content:(0,s.t)("Message limit of {count} characters reached",{count:this.maxlength}),shown:!0,trigger:"manual"}:null},canEdit(){return this.contenteditable&&!this.disabled},listeners(){const t={...this.$listeners};return delete t.paste,t}},watch:{value(){const t=this.$refs.contenteditable.innerHTML;this.value.trim()!==this.parseContent(t).trim()&&this.updateContent(this.value)}},mounted(){this.textSmiles=[],["d","D","p","P","s","S","x","X",")","(","|","/"].forEach((t=>{this.textSmiles.push(":"+t),this.textSmiles.push(":-"+t)})),this.autocompleteTribute=new l.default(this.autocompleteOptions),this.autocompleteTribute.attach(this.$el),this.emojiAutocomplete&&(this.emojiTribute=new l.default(this.emojiOptions),this.emojiTribute.attach(this.$el)),this.linkAutocomplete&&(this.linkTribute=new l.default(this.linkOptions),this.linkTribute.attach(this.$el)),this.updateContent(this.value),this.$refs.contenteditable.contentEditable=this.canEdit},beforeDestroy(){this.autocompleteTribute&&this.autocompleteTribute.detach(this.$el),this.emojiTribute&&this.emojiTribute.detach(this.$el),this.linkTribute&&this.linkTribute.detach(this.$el)},methods:{focus(){this.$refs.contenteditable.focus()},getLink(t){return(0,u.j)(t.original.id).then((t=>{const e=document.getElementById("tmp-smart-picker-result-node"),n={result:t,insertText:!0};if(this.$emit("smart-picker-submit",n),n.insertText){const n=document.createTextNode(t);e.replaceWith(n),this.setCursorAfter(n),this.updateValue(this.$refs.contenteditable.innerHTML)}else e.remove()})).catch((t=>{h.debug("Smart picker promise rejected:",t);const e=document.getElementById("tmp-smart-picker-result-node");this.setCursorAfter(e),e.remove()})),'<span id="tmp-smart-picker-result-node"></span>'},setCursorAfter(t){const e=document.createRange();e.setEndAfter(t),e.collapse();const n=window.getSelection();n.removeAllRanges(),n.addRange(e)},onInput(t){this.updateValue(t.target.innerHTML)},onPaste(t){if(!this.canEdit)return;t.preventDefault();const e=t.clipboardData;if(this.$emit("paste",t),0!==e.files.length||!Object.values(e.items).find((t=>null==t?void 0:t.type.startsWith("text"))))return;const n=e.getData("text"),r=window.getSelection();if(!r.rangeCount)return void this.updateValue(n);const i=r.getRangeAt(0);r.deleteFromDocument(),i.insertNode(document.createTextNode(n));const a=document.createRange();a.setStart(t.target,i.endOffset),a.collapse(!0),r.removeAllRanges(),r.addRange(a),this.updateValue(this.$refs.contenteditable.innerHTML)},updateValue(t){const e=this.parseContent(t);this.localValue=e,this.$emit("update:value",e)},updateContent(t){const e=this.renderContent(t);this.$refs.contenteditable.innerHTML=e,this.localValue=t},onDelete(t){if(!this.isFF||!window.getSelection||!this.canEdit)return;const e=window.getSelection(),n=t.target;if(!e.isCollapsed||!e.rangeCount)return;const r=e.getRangeAt(e.rangeCount-1);if(3===r.commonAncestorContainer.nodeType&&r.startOffset>0)return;const i=document.createRange();if(e.anchorNode!==n)i.selectNodeContents(n),i.setEndBefore(e.anchorNode);else{if(!(e.anchorOffset>0))return;i.setEnd(n,e.anchorOffset)}i.setStart(n,i.endOffset-1);const a=i.cloneContents().lastChild;a&&"false"===a.contentEditable&&(i.deleteContents(),t.preventDefault())},onEnter(t){this.multiline||this.isOverMaxlength||this.autocompleteTribute.isActive||this.emojiTribute.isActive||this.linkTribute.isActive||this.isComposing||(t.preventDefault(),t.stopPropagation(),this.$emit("submit",t))},onCtrlEnter(t){this.isOverMaxlength||this.$emit("submit",t)},debouncedAutoComplete:c((async function(t,e){this.autoComplete(t,e)}),100),onKeyUp(t){t.stopImmediatePropagation()}}};var v=function(){var t=this;return(0,t._self._c)("div",t._g({directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltipString,expression:"tooltipString"}],ref:"contenteditable",staticClass:"rich-contenteditable__input",class:{"rich-contenteditable__input--empty":t.isEmptyValue,"rich-contenteditable__input--multiline":t.multiline,"rich-contenteditable__input--overflow":t.isOverMaxlength,"rich-contenteditable__input--disabled":t.disabled},attrs:{contenteditable:t.canEdit,placeholder:t.placeholder,"aria-placeholder":t.placeholder,"aria-multiline":"true",role:"textbox"},on:{input:t.onInput,compositionstart:function(e){t.isComposing=!0},compositionend:function(e){t.isComposing=!1},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.onDelete.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onEnter.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onCtrlEnter.apply(null,arguments))}],paste:t.onPaste,"!keyup":function(e){return e.stopPropagation(),e.preventDefault(),t.onKeyUp.apply(null,arguments)}}},t.listeners))},A=[];const S=(0,a.n)(g,v,A,!1,null,"599f92d5",null,null).exports},58397:(t,e,n)=>{"use strict";n.d(e,{N:()=>x});var r=n(21617),i=n(93664),a=n(79753),s=n(76311),o=n(21623),u=n(61170),l=n(90630),c=n(42977),d=n(81049),f=n(25739),h=n(39685),p=n(66875),m=n(72090),y=n(25108);const T=/(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/gi,g=/(\s|\(|^)((https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z0-9]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\s|\)|$)/gi,v={name:"NcReferenceList",components:{NcReferenceWidget:r.N},props:{text:{type:String,default:""},referenceData:{type:Object,default:null},limit:{type:Number,default:1}},data:()=>({references:null,loading:!0}),computed:{isVisible(){return this.loading||this.displayedReferences},values(){return this.referenceData?this.referenceData:this.references?Object.values(this.references):[]},firstReference(){var t;return null!=(t=this.values[0])?t:null},displayedReferences(){return this.values.slice(0,this.limit)}},watch:{text:"fetch"},mounted(){this.fetch()},methods:{fetch(){this.loading=!0,this.referenceData?this.loading=!1:new RegExp(T).exec(this.text)?this.resolve().then((t=>{this.references=t.data.ocs.data.references,this.loading=!1})).catch((t=>{y.error("Failed to extract references",t),this.loading=!1})):this.loading=!1},resolve(){const t=new RegExp(T).exec(this.text.trim());return 1===this.limit&&t?i.Z.get((0,a.generateOcsUrl)("references/resolve",2)+`?reference=${encodeURIComponent(t[0])}`):i.Z.post((0,a.generateOcsUrl)("references/extract",2),{text:this.text,resolve:!0,limit:this.limit})}}};var A=function(){var t=this,e=t._self._c;return t.isVisible?e("div",{staticClass:"widgets--list",class:{"icon-loading":t.loading}},t._l(t.displayedReferences,(function(t){var n;return e("div",{key:null==(n=null==t?void 0:t.openGraphObject)?void 0:n.id},[e("NcReferenceWidget",{attrs:{reference:t}})],1)})),0):t._e()},S=[];const b=(0,s.n)(v,A,S,!1,null,"bd1fbb02",null,null).exports,E={name:"NcLink",props:{href:{type:String,required:!0}},render(t){return t("a",{attrs:{href:this.href,rel:"noopener noreferrer",target:"_blank",class:"rich-text--external-link"}},[this.href.trim()])}},_=function({autolink:t,useMarkdown:e}){return function(n){!e||!t||(0,o.Vn)(n,(t=>"text"===t.type),((t,e,n)=>{let r=D(t.value);return r=r.map((t=>"string"==typeof t?(0,l.u)("text",t):(0,l.u)("link",{url:t.props.href},[(0,l.u)("text",t.props.href)]))).filter((t=>t)),n.children.splice(e,1,...r.flat()),[u.AM,e+r.flat().length]}))}},D=t=>{let e=g.exec(t);const n=[];let r=0;for(;null!==e;){let i,a=e[2],s=t.substring(r,e.index+e[1].length);" "===a[0]&&(s+=a[0],a=a.substring(1).trim());const o=a[a.length-1];("."===o||","===o||";"===o||"("===e[0][0]&&")"===o)&&(a=a.substring(0,a.length-1),i=o),n.push(s),n.push({component:E,props:{href:a}}),i&&n.push(i),r=e.index+e[0].length,e=g.exec(t)}return n.push(t.substring(r)),t===n.map((t=>"string"==typeof t?t:t.props.href)).join("")?n:(y.error("Failed to reassemble the chunked text: "+t),t)},C=function(){return function(t){(0,o.Vn)(t,(t=>"text"===t.type),(function(t,e,n){const r=t.value.split(/(\{[a-z\-_.0-9]+\})/gi).map(((t,e,n)=>{const r=t.match(/^\{([a-z\-_.0-9]+)\}$/i);if(!r)return(0,l.u)("text",t);const[,i]=r;return(0,l.u)("element",{tagName:`#${i}`})}));n.children.splice(e,1,...r)}))}},O={name:"NcRichText",components:{NcReferenceList:b},props:{text:{type:String,default:""},arguments:{type:Object,default:()=>({})},referenceLimit:{type:Number,default:0},references:{type:Object,default:null},markdownCssClasses:{type:Object,default:()=>({a:"rich-text--external-link",ol:"rich-text--ordered-list",ul:"rich-text--un-ordered-list",li:"rich-text--list-item",strong:"rich-text--strong",em:"rich-text--italic",h1:"rich-text--heading rich-text--heading-1",h2:"rich-text--heading rich-text--heading-2",h3:"rich-text--heading rich-text--heading-3",h4:"rich-text--heading rich-text--heading-4",h5:"rich-text--heading rich-text--heading-5",h6:"rich-text--heading rich-text--heading-6",hr:"rich-text--hr",table:"rich-text--table",pre:"rich-text--pre",code:"rich-text--code",blockquote:"rich-text--blockquote"})},useMarkdown:{type:Boolean,default:!1},autolink:{type:Boolean,default:!0}},methods:{renderPlaintext(t){const e=this,n=this.text.split(/(\{[a-z\-_.0-9]+\})/gi).map((function(n,r,i){const a=n.match(/^\{([a-z\-_.0-9]+)\}$/i);if(!a)return(({h:t,context:e},n)=>(e.autolink&&(n=D(n)),Array.isArray(n)?n.map((e=>{if("string"==typeof e)return e;const{component:n,props:r}=e,i="NcLink"===n.name?void 0:"rich-text--component";return t(n,{props:r,class:i})})):n))({h:t,context:e},n);const s=a[1],o=e.arguments[s];if("object"==typeof o){const{component:e,props:n}=o;return t(e,{props:n,class:"rich-text--component"})}return o?t("span",{class:"rich-text--fallback"},o):n}));return t("div",{class:"rich-text--wrapper"},[t("div",{},n.flat()),this.referenceLimit>0?t("div",{class:"rich-text--reference-widget"},[t(b,{props:{text:this.text,referenceData:this.references}})]):null])},renderMarkdown(t){const e=(0,c.l)().use(d.Z).use(_,{autolink:this.autolink,useMarkdown:this.useMarkdown}).use(f.Z).use(h.Z,{handlers:{component:(t,e)=>t(e,e.component,{value:e.value})}}).use(C).use(m.Z,{target:"_blank",rel:["noopener noreferrer"]}).use(p.Z,{createElement:(e,n,r)=>{if(r=null==r?void 0:r.map((t=>"string"==typeof t?t.replace(/</gim,"<"):t)),!e.startsWith("#"))return t(e,n,r);const i=this.arguments[e.slice(1)];return i?i.component?t(i.component,{attrs:n,props:i.props,class:"rich-text--component"},r):t("span",n,[i]):t("span",{attrs:n,class:"rich-text--fallback"},[`{${e.slice(1)}}`])},prefix:!1}).processSync(this.text.replace(/</gim,"<").replace(/>/gim,">")).result;return t("div",{class:"rich-text--wrapper rich-text--wrapper-markdown"},[e,this.referenceLimit>0?t("div",{class:"rich-text--reference-widget"},[t(b,{props:{text:this.text,referenceData:this.references}})]):null])}},render(t){return this.useMarkdown?this.renderMarkdown(t):this.renderPlaintext(t)}},x=(0,s.n)(O,null,null,!1,null,"5f33f45b",null,null).exports},64882:(t,e,n)=>{"use strict";n.d(e,{$U:()=>N.Z,FK:()=>q.Z,Iw:()=>o.Z,Jc:()=>tt.Z,Jh:()=>j.Z,O3:()=>d.Z,P2:()=>M.Z,QG:()=>lt.Z,SL:()=>H.Z,Z9:()=>z.Z,fg:()=>U.Z,h3:()=>ct.Z,rw:()=>L.Z});var r=n(63357),i=n(66236),a=n(34791),s=n(56562),o=n(46187),u=n(80472),l=n(52300),c=n(86653),d=n(51103),f=n(68763),h=n(41748),p=n(94162),m=n(67397),y=n(27657),T=n(2047),g=n(6378),v=n(82002),A=n(89998),S=n(28505),b=n(36065),E=n(96315),_=n(66845),D=n(87875),C=n(35273),O=n(34739),x=n(55188),I=n(98445),w=n(9261),N=n(36402),U=n(49231),M=n(57274),L=n(19642),P=n(37776),Y=n(73743),k=n(93182),R=n(89241),B=n(96226),j=n(97947),z=n(2623),W=n(37008),F=n(93757),Z=n(6318),V=n(78573),H=n(22175),$=n(93428),G=n(93815),K=n(40873),q=n(64865),X=n(48741),J=n(88175),Q=n(20435),tt=n(6136),et=n(6156),nt=n(16972),rt=n(34246),it=n(34854),at=n(42213),st=n(22663),ot=n(46318),ut=n(58397),lt=(n(21617),n(93664),n(79753),n(99114)),ct=(n(66238),n(92774),n(49368)),dt=(n(4072),n(69183),n(69254),n(44893),n(74911)),ft=n(35380),ht=n(56857),pt=n(67912),mt=n(90436),yt=n(13888),Tt=n(16024),gt=n(64722),vt=(n(93911),n(85302),n(90318)),At=n(17593),St=(n(79845),n(84722),n(76692),n(40946),n(73045));r.Z,i.Z,a.Z,s.Z,o.Z,u.Z,l.Z,c.Z,f.Z,h.Z,p.Z,d.Z,m.Z,y.Z,T.Z,g.Z,v.Z,A.Z,S.Z,b.Z,E.Z,_.Z,D.Z,C.Z,O.Z,x.Z,I.Z,ot.NcAutoCompleteResult,w.N,N.Z,U.Z,M.Z,L.Z,P.Z,Y.Z,k.Z,R.Z,B.Z,j.Z,z.Z,W.Z,F.Z,Z.Z,V.Z,H.Z,$.Z,G.Z,K.N,q.Z,X.Z,J.Z,Q.Z,st.N,tt.Z,et.Z,nt.Z,rt.Z,it.Z,at.Z,ot.default,ut.N,dt.Z,lt.Z,ft.Z,ht.Z,pt.Z,mt.N,gt.Z,ct.Z,yt.Z,Tt.Z,Symbol.toStringTag,vt.X,At.X,St.VTooltip,Symbol.toStringTag}},a={};function s(t){var e=a[t];if(void 0!==e)return e.exports;var n=a[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,e=[],s.O=(t,n,r,i)=>{if(!n){var a=1/0;for(c=0;c<e.length;c++){n=e[c][0],r=e[c][1],i=e[c][2];for(var o=!0,u=0;u<n.length;u++)(!1&i||a>=i)&&Object.keys(s.O).every((t=>s.O[t](n[u])))?n.splice(u--,1):(o=!1,i<a&&(a=i));if(o){e.splice(c--,1);var l=r();void 0!==l&&(t=l)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,r,i]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,n)=>(s.f[n](t,e),e)),[])),s.u=t=>t+"-"+t+".js?v="+{2250:"ef765e9cb8820a722f6e",2857:"9276a1d7db3dd002d379"}[t],s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},r="nextcloud:",s.l=(t,e,i,a)=>{if(n[t])n[t].push(e);else{var o,u;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==r+i){o=d;break}}o||(u=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",r+i),o.src=t),n[t]=[e];var f=(e,r)=>{o.onerror=o.onload=null,clearTimeout(h);var i=n[t];if(delete n[t],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((t=>t(r))),e)return e(r)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=f.bind(null,o.onerror),o.onload=f.bind(null,o.onload),u&&document.head.appendChild(o)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),s.j=3347,(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!t;)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{s.b=document.baseURI||self.location.href;var t={3347:0,6318:0};s.f.j=(e,n)=>{var r=s.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=t[e]=[n,i]));n.push(r[2]=i);var a=s.p+s.u(e),o=new Error;s.l(a,(n=>{if(s.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;o.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,r[1](o)}}),"chunk-"+e,e)}},s.O.j=e=>0===t[e];var e=(e,n)=>{var r,i,a=n[0],o=n[1],u=n[2],l=0;if(a.some((e=>0!==t[e]))){for(r in o)s.o(o,r)&&(s.m[r]=o[r]);if(u)var c=u(s)}for(e&&e(n);l<a.length;l++)i=a[l],s.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return s.O(c)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),s.nc=void 0;var o=s.O(void 0,[7874],(()=>s(76970)));o=s.O(o)})(); -//# sourceMappingURL=dav-settings-personal-availability.js.map?v=4476702f7744991dbfb8
\ No newline at end of file +(()=>{var e,r,n,i={76970:(e,r,n)=>{"use strict";var i=n(20144),a=n(31352),s=n(67912),o=n(62642),u=n(49368),l=n(64722),c=n(37008),d=n(79753),f=n(93664);function h(t){return`${t.getUTCFullYear()}-${(t.getUTCMonth()+1).toString().padStart(2,"0")}-${t.getUTCDate().toString().padStart(2,"0")}`}var p=n(43554),m=n(64024);const y={name:"AbsenceForm",components:{NcButton:o.Z,NcTextField:u.Z,NcTextArea:l.Z,NcDateTimePickerNative:c.Z},data(){const{firstDay:t,lastDay:e,status:r,message:n}=(0,p.j)("dav","absence",{});return{loading:!1,status:r??"",message:n??"",firstDay:t?new Date(t):new Date,lastDay:e?new Date(e):null}},computed:{valid(){return!!this.firstDay&&!!this.lastDay&&!!this.status&&this.lastDay>this.firstDay}},methods:{resetForm(){this.status="",this.message="",this.firstDay=new Date,this.lastDay=null},async saveForm(){if(this.valid){this.loading=!0;try{await f.Z.post((0,d.generateUrl)("/apps/dav/settings/absence"),{firstDay:h(this.firstDay),lastDay:h(this.lastDay),status:this.status,message:this.message})}catch(t){(0,m.x2)(this.$t("dav","Failed to save your absence settings"))}finally{this.loading=!1}}},async clearAbsence(){this.loading=!0;try{await f.Z.delete((0,d.generateUrl)("/apps/dav/settings/absence")),this.resetForm()}catch(t){(0,m.x2)(this.$t("dav","Failed to clear your absence settings"))}finally{this.loading=!1}}}};var v=n(93379),T=n.n(v),g=n(7795),A=n.n(g),b=n(90569),S=n.n(b),E=n(3565),_=n.n(E),D=n(19216),C=n.n(D),O=n(44589),w=n.n(O),x=n(49980),I={};I.styleTagTransform=w(),I.setAttributes=_(),I.insert=S().bind(null,"head"),I.domAPI=A(),I.insertStyleElement=C(),T()(x.Z,I),x.Z&&x.Z.locals&&x.Z.locals;var N=n(51900),U=(0,N.Z)(y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"absence"},[e("div",{staticClass:"absence__dates"},[e("NcDateTimePickerNative",{staticClass:"absence__dates__picker",attrs:{id:"absence-first-day",label:t.$t("dav","First day")},model:{value:t.firstDay,callback:function(e){t.firstDay=e},expression:"firstDay"}}),t._v(" "),e("NcDateTimePickerNative",{staticClass:"absence__dates__picker",attrs:{id:"absence-last-day",label:t.$t("dav","Last day (inclusive)")},model:{value:t.lastDay,callback:function(e){t.lastDay=e},expression:"lastDay"}})],1),t._v(" "),e("NcTextField",{attrs:{value:t.status,label:t.$t("dav","Short absence status")},on:{"update:value":function(e){t.status=e}}}),t._v(" "),e("NcTextArea",{attrs:{value:t.message,label:t.$t("dav","Long absence Message")},on:{"update:value":function(e){t.message=e}}}),t._v(" "),e("div",{staticClass:"absence__buttons"},[e("NcButton",{attrs:{disabled:t.loading||!t.valid,type:"primary"},on:{click:t.saveForm}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Save"))+"\n\t\t")]),t._v(" "),e("NcButton",{attrs:{disabled:t.loading||!t.valid,type:"error"},on:{click:t.clearAbsence}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Disable absence"))+"\n\t\t")])],1)],1)}),[],!1,null,"5a6b66ca",null);const M=U.exports;var L=n(25108),P=n(34155),Y=n(18350);function k(t,e,r,n,i,a,s,o){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),s?(u=function(t){!(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)&&typeof __VUE_SSR_CONTEXT__<"u"&&(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=u):i&&(u=o?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:l}}!function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@charset "UTF-8";.material-design-icon[data-v-22982259]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.native-datetime-picker[data-v-22982259]{display:flex;flex-direction:column}.native-datetime-picker .native-datetime-picker--input[data-v-22982259]{width:100%;flex:0 0 auto;padding-right:4px}/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */.material-design-icon[data-v-f507b497]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.button-vue[data-v-f507b497]{position:relative;width:fit-content;overflow:hidden;border:0;padding:0;font-size:var(--default-font-size);font-weight:700;min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:22px;transition-property:color,border-color,background-color;transition-duration:.1s;transition-timing-function:linear;color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light)}.button-vue *[data-v-f507b497],.button-vue span[data-v-f507b497]{cursor:pointer}.button-vue[data-v-f507b497]:focus{outline:none}.button-vue[data-v-f507b497]:disabled{cursor:default;opacity:.5;filter:saturate(.7)}.button-vue:disabled *[data-v-f507b497]{cursor:default}.button-vue[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-primary-element-light-hover)}.button-vue[data-v-f507b497]:active{background-color:var(--color-primary-element-light)}.button-vue__wrapper[data-v-f507b497]{display:inline-flex;align-items:center;justify-content:center;width:100%}.button-vue--end .button-vue__wrapper[data-v-f507b497]{justify-content:end}.button-vue--start .button-vue__wrapper[data-v-f507b497]{justify-content:start}.button-vue--reverse .button-vue__wrapper[data-v-f507b497]{flex-direction:row-reverse}.button-vue--reverse.button-vue--icon-and-text[data-v-f507b497]{padding-inline:calc(var(--default-grid-baseline) * 4) var(--default-grid-baseline)}.button-vue__icon[data-v-f507b497]{height:44px;width:44px;min-height:44px;min-width:44px;display:flex;justify-content:center;align-items:center}.button-vue__text[data-v-f507b497]{font-weight:700;margin-bottom:1px;padding:2px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.button-vue--icon-only[data-v-f507b497]{width:44px!important}.button-vue--text-only[data-v-f507b497]{padding:0 12px}.button-vue--text-only .button-vue__text[data-v-f507b497]{margin-left:4px;margin-right:4px}.button-vue--icon-and-text[data-v-f507b497]{padding-block:0;padding-inline:var(--default-grid-baseline) calc(var(--default-grid-baseline) * 4)}.button-vue--wide[data-v-f507b497]{width:100%}.button-vue[data-v-f507b497]:focus-visible{outline:2px solid var(--color-main-text)!important;box-shadow:0 0 0 4px var(--color-main-background)!important}.button-vue:focus-visible.button-vue--vue-tertiary-on-primary[data-v-f507b497]{outline:2px solid var(--color-primary-element-text);border-radius:var(--border-radius);background-color:transparent}.button-vue--vue-primary[data-v-f507b497]{background-color:var(--color-primary-element);color:var(--color-primary-element-text)}.button-vue--vue-primary[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-primary-element-hover)}.button-vue--vue-primary[data-v-f507b497]:active{background-color:var(--color-primary-element)}.button-vue--vue-secondary[data-v-f507b497]{color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light)}.button-vue--vue-secondary[data-v-f507b497]:hover:not(:disabled){color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light-hover)}.button-vue--vue-tertiary[data-v-f507b497]{color:var(--color-main-text);background-color:transparent}.button-vue--vue-tertiary[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-background-hover)}.button-vue--vue-tertiary-no-background[data-v-f507b497]{color:var(--color-main-text);background-color:transparent}.button-vue--vue-tertiary-no-background[data-v-f507b497]:hover:not(:disabled){background-color:transparent}.button-vue--vue-tertiary-on-primary[data-v-f507b497]{color:var(--color-primary-element-text);background-color:transparent}.button-vue--vue-tertiary-on-primary[data-v-f507b497]:hover:not(:disabled){background-color:transparent}.button-vue--vue-success[data-v-f507b497]{background-color:var(--color-success);color:#fff}.button-vue--vue-success[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-success-hover)}.button-vue--vue-success[data-v-f507b497]:active{background-color:var(--color-success)}.button-vue--vue-warning[data-v-f507b497]{background-color:var(--color-warning);color:#fff}.button-vue--vue-warning[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-warning-hover)}.button-vue--vue-warning[data-v-f507b497]:active{background-color:var(--color-warning)}.button-vue--vue-error[data-v-f507b497]{background-color:var(--color-error);color:#fff}.button-vue--vue-error[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-error-hover)}.button-vue--vue-error[data-v-f507b497]:active{background-color:var(--color-error)}.availability-day[data-v-31358f1f]{padding:0 10px;position:absolute}.availability-slots[data-v-31358f1f]{display:flex;white-space:nowrap}.availability-slot[data-v-31358f1f]{display:flex;flex-direction:row;align-items:center}.availability-slot-group[data-v-31358f1f]{display:flex;flex-direction:column}[data-v-31358f1f] .mx-input-wrapper{width:85px}[data-v-31358f1f] .mx-datepicker{width:97px}[data-v-31358f1f] .multiselect{border:1px solid var(--color-border-dark);width:120px}.time-zone[data-v-31358f1f]{padding:32px 12px 12px 0}.grid-table[data-v-31358f1f]{display:grid;margin-bottom:32px;grid-column-gap:24px;grid-row-gap:6px;grid-template-columns:min-content min-content min-content}.button[data-v-31358f1f]{align-self:flex-end}.label-weekday[data-v-31358f1f]{position:relative;display:flex;align-items:flex-start}.label-weekday>span[data-v-31358f1f]{height:50px;display:flex;align-items:center}.add-another[data-v-31358f1f]{background-color:transparent;border:none;opacity:.5;display:inline-flex;padding:0;margin:0 0 3px}.add-another[data-v-31358f1f]:hover{opacity:1}.to-text[data-v-31358f1f]{padding-right:12px}.time-zone-text[data-v-31358f1f]{padding-left:22px}.empty-content[data-v-31358f1f]{color:var(--color-text-lighter);display:inline-flex;align-items:center}.start-date[data-v-31358f1f]{padding-right:12px}')),document.head.appendChild(t)}}catch(t){L.error("vite-plugin-css-injected-by-js",t)}}();const R=["date","datetime-local","month","time","week"],B={name:"NcDateTimePickerNative",inheritAttrs:!1,props:{value:{type:Date,default:null},id:{type:String,required:!0},type:{type:String,default:"date",validate:t=>R.includes(t)},label:{type:String,default:"Please choose a date"},min:{type:[Date,Boolean],default:null},max:{type:[Date,Boolean],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input"],computed:{formattedValue(){return this.formatValue(this.value)},formattedMin(){return!!this.min&&this.formatValue(this.min)},formattedMax(){return!!this.max&&this.formatValue(this.max)},listeners(){return{...this.$listeners,input:t=>{if(isNaN(t.target.valueAsNumber))return this.$emit("input",null);if("time"===this.type){const e=t.target.value;if(""===this.value){const{yyyy:t,MM:r,dd:n}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${t}-${r}-${n}T${e}`))}const{yyyy:r,MM:n,dd:i}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${r}-${n}-${i}T${e}`))}if("month"===this.type){const e=(new Date(t.target.value).getMonth()+1).toString().padStart(2,"0");if(""===this.value){const{yyyy:t,dd:r,hh:n,mm:i}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${t}-${e}-${r}T${n}:${i}`))}const{yyyy:r,dd:n,hh:i,mm:a}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${r}-${e}-${n}T${i}:${a}`))}const e=1e3*new Date(t.target.valueAsNumber).getTimezoneOffset()*60,r=t.target.valueAsNumber+e;return this.$emit("input",new Date(r))}}}},methods:{getReadableDate(t){if(t instanceof Date)return{yyyy:t.getFullYear().toString().padStart(4,"0"),MM:(t.getMonth()+1).toString().padStart(2,"0"),dd:t.getDate().toString().padStart(2,"0"),hh:t.getHours().toString().padStart(2,"0"),mm:t.getMinutes().toString().padStart(2,"0")}},formatValue(t){if(!(t instanceof Date))return"";{const{yyyy:e,MM:r,dd:n,hh:i,mm:a}=this.getReadableDate(t);if("datetime-local"===this.type)return`${e}-${r}-${n}T${i}:${a}`;if("date"===this.type)return`${e}-${r}-${n}`;if("month"===this.type)return`${e}-${r}`;if("time"===this.type)return`${i}:${a}`;if("week"===this.type){const r=new Date(e,0,1),n=Math.floor((t-r)/864e5);return`${e}-W${Math.ceil(n/7)}`}}}}};var j=function(){var t=this,e=t._self._c;return e("div",{staticClass:"native-datetime-picker"},[e("label",{class:{"hidden-visually":t.hideLabel},attrs:{for:t.id}},[t._v(t._s(t.label))]),e("input",t._g(t._b({staticClass:"native-datetime-picker--input",class:t.inputClass,attrs:{id:t.id,type:t.type,min:t.formattedMin,max:t.formattedMax},domProps:{value:t.formattedValue}},"input",t.$attrs,!1),t.listeners))])};const z=k(B,j,[],!1,null,"22982259",null,null).exports;var F;(F=z).mounted?Array.isArray(F.mounted)||(F.mounted=[F.mounted]):F.mounted=[],F.mounted.push((function(){this.$el.setAttribute("data-v-cfad8df","")}));const W={name:"NcButton",props:{alignment:{type:String,default:"center",validator:t=>["start","start-reverse","center","center-reverse","end","end-reverse"].includes(t)},disabled:{type:Boolean,default:!1},type:{type:String,validator:t=>-1!==["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(t),default:"secondary"},nativeType:{type:String,validator:t=>-1!==["submit","reset","button"].indexOf(t),default:"button"},wide:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},href:{type:String,default:null},download:{type:String,default:null},to:{type:[String,Object],default:null},exact:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},pressed:{type:Boolean,default:null}},emits:["update:pressed","click"],computed:{realType(){return this.pressed?"primary":!1===this.pressed&&"primary"===this.type?"secondary":this.type},flexAlignment(){return this.alignment.split("-")[0]},isReverseAligned(){return this.alignment.includes("-")}},render(t){var e,r,n;const i=!!this.$slots.default,a=null==(e=this.$slots)?void 0:e.icon;!i&&!this.ariaLabel&&L.warn("You need to fill either the text or the ariaLabel props in the button component.",{text:null==(n=null==(r=this.$slots.default)?void 0:r[0])?void 0:n.text,ariaLabel:this.ariaLabel},this);const s=({navigate:e,isActive:r,isExactActive:n}={})=>t(this.to||!this.href?"button":"a",{class:["button-vue",{"button-vue--icon-only":a&&!i,"button-vue--text-only":i&&!a,"button-vue--icon-and-text":a&&i,[`button-vue--vue-${this.realType}`]:this.realType,"button-vue--wide":this.wide,[`button-vue--${this.flexAlignment}`]:"center"!==this.flexAlignment,"button-vue--reverse":this.isReverseAligned,active:r,"router-link-exact-active":n}],attrs:{"aria-label":this.ariaLabel,"aria-pressed":this.pressed,disabled:this.disabled,type:this.href?null:this.nativeType,role:this.href?"button":null,href:!this.to&&this.href?this.href:null,target:!this.to&&this.href?"_self":null,rel:!this.to&&this.href?"nofollow noreferrer noopener":null,download:!this.to&&this.href&&this.download?this.download:null,...this.$attrs},on:{...this.$listeners,click:t=>{"boolean"==typeof this.pressed&&this.$emit("update:pressed",!this.pressed),this.$emit("click",t),null==e||e(t)}}},[t("span",{class:"button-vue__wrapper"},[a?t("span",{class:"button-vue__icon",attrs:{"aria-hidden":this.ariaHidden}},[this.$slots.icon]):null,i?t("span",{class:"button-vue__text"},[this.$slots.default]):null])]);return this.to?t("router-link",{props:{custom:!0,to:this.to,exact:this.exact},scopedSlots:{default:s}}):s()}},$=k(W,null,null,!1,null,"f507b497",null,null).exports;function V(t,e,r,n,i,a,s,o){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),s?(u=function(t){!(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)&&typeof __VUE_SSR_CONTEXT__<"u"&&(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=u):i&&(u=o?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:l}}const H=V({name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon delete-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null,null).exports,G={name:"CalendarAvailability",components:{NcDateTimePickerNative:z,NcButton:$,IconAdd:V({name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon plus-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null,null).exports,IconDelete:H},props:{slots:{type:Object,required:!0},loading:{type:Boolean,default:!1},l10nTo:{type:String,required:!0},l10nDeleteSlot:{type:String,required:!0},l10nEmptyDay:{type:String,required:!0},l10nAddSlot:{type:String,required:!0},l10nMonday:{type:String,required:!0},l10nTuesday:{type:String,required:!0},l10nWednesday:{type:String,required:!0},l10nThursday:{type:String,required:!0},l10nFriday:{type:String,required:!0},l10nSaturday:{type:String,required:!0},l10nSunday:{type:String,required:!0},l10nStartPickerLabel:{type:Function,default:t=>`Pick a start time for ${t}`},l10nEndPickerLabel:{type:Function,default:t=>`Pick a end time for ${t}`}},data(){return{internalSlots:this.slotsToInternalData(this.slots)}},watch:{slots(){this.internalSlots=this.slotsToInternalData(this.slots)}},methods:{timeStampSlotsToDateObjectSlots:t=>t.map((t=>({start:new Date(1e3*t.start),end:new Date(1e3*t.end)}))),slotsToInternalData(){const t=[{id:"MO",displayName:this.l10nMonday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.MO)},{id:"TU",displayName:this.l10nTuesday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.TU)},{id:"WE",displayName:this.l10nWednesday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.WE)},{id:"TH",displayName:this.l10nThursday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.TH)},{id:"FR",displayName:this.l10nFriday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.FR)},{id:"SA",displayName:this.l10nSaturday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.SA)}],e={id:"SU",displayName:this.l10nSunday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.SU)};return 1===(0,a.yo)()?[...t,e]:[e,...t]},internalDataToSlots(){const t={};return this.internalSlots.forEach((({id:e,slots:r})=>{t[e]=r.map((t=>({start:Math.round(t.start.getTime()/1e3),end:Math.round(t.end.getTime()/1e3)})))})),t},addSlot(t){const e=new Date;e.setHours(9,0,0,0);const r=new Date;r.setHours(17,0,0,0),t.slots.push({start:e,end:r}),this.onChangeSlots()},removeSlot(t,e){t.slots.splice(e,1),this.onChangeSlots()},onChangeSlots(){this.$emit("update:slots",this.internalDataToSlots())}}},Z=V(G,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"grid-table"},[t._l(t.internalSlots,(function(r){return[e("div",{key:`day-label-${r.id}`,staticClass:"label-weekday"},[e("span",[t._v(t._s(r.displayName))])]),e("div",{key:`day-slots-${r.id}`,staticClass:"availability-slots"},[e("div",{staticClass:"availability-slot-group"},[t._l(r.slots,(function(n,i){var a,s;return[e("div",{key:`slot-${r.id}-${i}`,staticClass:"availability-slot"},[e("NcDateTimePickerNative",{staticClass:"start-date",attrs:{id:`start-${r.id}-${i}`,type:"time",label:null==(a=t.l10nStartPickerLabel)?void 0:a.call(t,r.displayName),"hide-label":!0},on:{change:t.onChangeSlots},model:{value:n.start,callback:function(e){t.$set(n,"start",e)},expression:"slot.start"}}),e("span",{staticClass:"to-text"},[t._v(" "+t._s(t.l10nTo)+" ")]),e("NcDateTimePickerNative",{staticClass:"end-date",attrs:{id:`end-${r.id}-${i}`,type:"time",label:null==(s=t.l10nEndPickerLabel)?void 0:s.call(t,r.displayName),"hide-label":!0},on:{change:t.onChangeSlots},model:{value:n.end,callback:function(e){t.$set(n,"end",e)},expression:"slot.end"}}),e("NcButton",{key:`slot-${r.id}-${i}-btn`,staticClass:"button",attrs:{type:"tertiary","aria-label":t.l10nDeleteSlot,title:t.l10nDeleteSlot},on:{click:function(e){return t.removeSlot(r,i)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDelete",{attrs:{size:20}})]},proxy:!0}],null,!0)})],1)]}))],2),0===r.slots.length?e("span",{staticClass:"empty-content"},[t._v(" "+t._s(t.l10nEmptyDay)+" ")]):t._e()]),e("NcButton",{key:`add-slot-${r.id}`,staticClass:"add-another button",attrs:{disabled:t.loading,title:t.l10nAddSlot,"aria-label":t.l10nAddSlot},on:{click:function(e){return t.addSlot(r)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconAdd",{attrs:{size:20}})]},proxy:!0}],null,!0)})]}))],2)}),[],!1,null,"31358f1f",null,null).exports;var K=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},q={},X={};Object.defineProperty(X,"__esModule",{value:!0}),X.zonesMap=X.defaultStart=void 0,X.defaultStart="19700101T000000",X.zonesMap=new Map([["Africa/Abidjan",{s:{f:"+0000",n:"GMT"}}],["Africa/Accra",{s:{f:"+0000",n:"GMT"}}],["Africa/Addis_Ababa",{s:{f:"+0300",n:"EAT"}}],["Africa/Algiers",{s:{f:"+0100",n:"CET"}}],["Africa/Asmara",{s:{f:"+0300",n:"EAT"}}],["Africa/Bamako",{s:{f:"+0000",n:"GMT"}}],["Africa/Bangui",{s:{f:"+0100",n:"WAT"}}],["Africa/Banjul",{s:{f:"+0000",n:"GMT"}}],["Africa/Bissau",{s:{f:"+0000",n:"GMT"}}],["Africa/Blantyre",{s:{f:"+0200",n:"CAT"}}],["Africa/Brazzaville",{s:{f:"+0100",n:"WAT"}}],["Africa/Bujumbura",{s:{f:"+0200",n:"CAT"}}],["Africa/Cairo",{s:{f:"+0200",n:"EET"}}],["Africa/Casablanca",{s:{f:"+0100",n:"+01"}}],["Africa/Ceuta",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Africa/Conakry",{s:{f:"+0000",n:"GMT"}}],["Africa/Dakar",{s:{f:"+0000",n:"GMT"}}],["Africa/Dar_es_Salaam",{s:{f:"+0300",n:"EAT"}}],["Africa/Djibouti",{s:{f:"+0300",n:"EAT"}}],["Africa/Douala",{s:{f:"+0100",n:"WAT"}}],["Africa/El_Aaiun",{s:{f:"+0100",n:"+01"}}],["Africa/Freetown",{s:{f:"+0000",n:"GMT"}}],["Africa/Gaborone",{s:{f:"+0200",n:"CAT"}}],["Africa/Harare",{s:{f:"+0200",n:"CAT"}}],["Africa/Johannesburg",{s:{f:"+0200",n:"SAST"}}],["Africa/Juba",{s:{f:"+0300",n:"EAT"}}],["Africa/Kampala",{s:{f:"+0300",n:"EAT"}}],["Africa/Khartoum",{s:{f:"+0200",n:"CAT"}}],["Africa/Kigali",{s:{f:"+0200",n:"CAT"}}],["Africa/Kinshasa",{s:{f:"+0100",n:"WAT"}}],["Africa/Lagos",{s:{f:"+0100",n:"WAT"}}],["Africa/Libreville",{s:{f:"+0100",n:"WAT"}}],["Africa/Lome",{s:{f:"+0000",n:"GMT"}}],["Africa/Luanda",{s:{f:"+0100",n:"WAT"}}],["Africa/Lubumbashi",{s:{f:"+0200",n:"CAT"}}],["Africa/Lusaka",{s:{f:"+0200",n:"CAT"}}],["Africa/Malabo",{s:{f:"+0100",n:"WAT"}}],["Africa/Maputo",{s:{f:"+0200",n:"CAT"}}],["Africa/Maseru",{s:{f:"+0200",n:"SAST"}}],["Africa/Mbabane",{s:{f:"+0200",n:"SAST"}}],["Africa/Mogadishu",{s:{f:"+0300",n:"EAT"}}],["Africa/Monrovia",{s:{f:"+0000",n:"GMT"}}],["Africa/Nairobi",{s:{f:"+0300",n:"EAT"}}],["Africa/Ndjamena",{s:{f:"+0100",n:"WAT"}}],["Africa/Niamey",{s:{f:"+0100",n:"WAT"}}],["Africa/Nouakchott",{s:{f:"+0000",n:"GMT"}}],["Africa/Ouagadougou",{s:{f:"+0000",n:"GMT"}}],["Africa/Porto-Novo",{s:{f:"+0100",n:"WAT"}}],["Africa/Sao_Tome",{s:{f:"+0100",n:"WAT"}}],["Africa/Tripoli",{s:{f:"+0200",n:"EET"}}],["Africa/Tunis",{s:{f:"+0100",n:"CET"}}],["Africa/Windhoek",{s:{f:"+0200",n:"CAT"}}],["America/Adak",{s:{f:"-0900",t:"-1000",n:"HST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-1000",t:"-0900",n:"HDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Anchorage",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Anguilla",{s:{f:"-0400",n:"AST"}}],["America/Antigua",{s:{f:"-0400",n:"AST"}}],["America/Araguaina",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Buenos_Aires",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Catamarca",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Cordoba",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Jujuy",{s:{f:"-0300",n:"-03"}}],["America/Argentina/La_Rioja",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Mendoza",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Rio_Gallegos",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Salta",{s:{f:"-0300",n:"-03"}}],["America/Argentina/San_Juan",{s:{f:"-0300",n:"-03"}}],["America/Argentina/San_Luis",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Tucuman",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Ushuaia",{s:{f:"-0300",n:"-03"}}],["America/Aruba",{s:{f:"-0400",n:"AST"}}],["America/Asuncion",{s:{f:"-0300",t:"-0400",n:"-04",s:"19700322T000000",r:{m:3,d:"4SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19701004T000000",r:{m:10,d:"1SU"}}}],["America/Atikokan",{s:{f:"-0500",n:"EST"}}],["America/Bahia_Banderas",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Bahia",{s:{f:"-0300",n:"-03"}}],["America/Barbados",{s:{f:"-0400",n:"AST"}}],["America/Belem",{s:{f:"-0300",n:"-03"}}],["America/Belize",{s:{f:"-0600",n:"CST"}}],["America/Blanc-Sablon",{s:{f:"-0400",n:"AST"}}],["America/Boa_Vista",{s:{f:"-0400",n:"-04"}}],["America/Bogota",{s:{f:"-0500",n:"-05"}}],["America/Boise",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Cambridge_Bay",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Campo_Grande",{s:{f:"-0400",n:"-04",s:"19700215T000000",r:{m:2,d:"3SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19701101T000000",r:{m:11,d:"1SU"}}}],["America/Cancun",{s:{f:"-0500",n:"EST"}}],["America/Caracas",{s:{f:"-0400",n:"-04"}}],["America/Cayenne",{s:{f:"-0300",n:"-03"}}],["America/Cayman",{s:{f:"-0500",n:"EST"}}],["America/Chicago",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Chihuahua",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Costa_Rica",{s:{f:"-0600",n:"CST"}}],["America/Creston",{s:{f:"-0700",n:"MST"}}],["America/Cuiaba",{s:{f:"-0400",n:"-04",s:"19700215T000000",r:{m:2,d:"3SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19701101T000000",r:{m:11,d:"1SU"}}}],["America/Curacao",{s:{f:"-0400",n:"AST"}}],["America/Danmarkshavn",{s:{f:"+0000",n:"GMT"}}],["America/Dawson_Creek",{s:{f:"-0700",n:"MST"}}],["America/Dawson",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Denver",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Detroit",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Dominica",{s:{f:"-0400",n:"AST"}}],["America/Edmonton",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Eirunepe",{s:{f:"-0500",n:"-05"}}],["America/El_Salvador",{s:{f:"-0600",n:"CST"}}],["America/Fort_Nelson",{s:{f:"-0700",n:"MST"}}],["America/Fortaleza",{s:{f:"-0300",n:"-03"}}],["America/Glace_Bay",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Godthab",{s:{f:"-0200",t:"-0300",n:"-03",s:"19701024T230000",r:{m:10,d:"-1SA"}},d:{f:"-0300",t:"-0200",n:"-02",s:"19700328T220000",r:{m:3,d:"-1SA"}}}],["America/Goose_Bay",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Grand_Turk",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Grenada",{s:{f:"-0400",n:"AST"}}],["America/Guadeloupe",{s:{f:"-0400",n:"AST"}}],["America/Guatemala",{s:{f:"-0600",n:"CST"}}],["America/Guayaquil",{s:{f:"-0500",n:"-05"}}],["America/Guyana",{s:{f:"-0400",n:"-04"}}],["America/Halifax",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Havana",{s:{f:"-0400",t:"-0500",n:"CST",s:"19701101T010000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"CDT",s:"19700308T000000",r:{m:3,d:"2SU"}}}],["America/Hermosillo",{s:{f:"-0700",n:"MST"}}],["America/Indiana/Indianapolis",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Knox",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Marengo",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Petersburg",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Tell_City",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Vevay",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Vincennes",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Winamac",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Inuvik",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Iqaluit",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Jamaica",{s:{f:"-0500",n:"EST"}}],["America/Juneau",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Kentucky/Louisville",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Kentucky/Monticello",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Kralendijk",{s:{f:"-0400",n:"AST"}}],["America/La_Paz",{s:{f:"-0400",n:"-04"}}],["America/Lima",{s:{f:"-0500",n:"-05"}}],["America/Los_Angeles",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Lower_Princes",{s:{f:"-0400",n:"AST"}}],["America/Maceio",{s:{f:"-0300",n:"-03"}}],["America/Managua",{s:{f:"-0600",n:"CST"}}],["America/Manaus",{s:{f:"-0400",n:"-04"}}],["America/Marigot",{s:{f:"-0400",n:"AST"}}],["America/Martinique",{s:{f:"-0400",n:"AST"}}],["America/Matamoros",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Mazatlan",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Menominee",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Merida",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Metlakatla",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Mexico_City",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Miquelon",{s:{f:"-0200",t:"-0300",n:"-03",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0300",t:"-0200",n:"-02",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Moncton",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Monterrey",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Montevideo",{s:{f:"-0300",n:"-03"}}],["America/Montserrat",{s:{f:"-0400",n:"AST"}}],["America/Nassau",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/New_York",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Nipigon",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Nome",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Noronha",{s:{f:"-0200",n:"-02"}}],["America/North_Dakota/Beulah",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/North_Dakota/Center",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/North_Dakota/New_Salem",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Ojinaga",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Panama",{s:{f:"-0500",n:"EST"}}],["America/Pangnirtung",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Paramaribo",{s:{f:"-0300",n:"-03"}}],["America/Phoenix",{s:{f:"-0700",n:"MST"}}],["America/Port_of_Spain",{s:{f:"-0400",n:"AST"}}],["America/Port-au-Prince",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Porto_Velho",{s:{f:"-0400",n:"-04"}}],["America/Puerto_Rico",{s:{f:"-0400",n:"AST"}}],["America/Punta_Arenas",{s:{f:"-0300",n:"-03"}}],["America/Rainy_River",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Rankin_Inlet",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Recife",{s:{f:"-0300",n:"-03"}}],["America/Regina",{s:{f:"-0600",n:"CST"}}],["America/Resolute",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Rio_Branco",{s:{f:"-0500",n:"-05"}}],["America/Santarem",{s:{f:"-0300",n:"-03"}}],["America/Santiago",{s:{f:"-0300",t:"-0400",n:"-04",s:"19700405T000000",r:{m:4,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19700906T000000",r:{m:9,d:"1SU"}}}],["America/Santo_Domingo",{s:{f:"-0400",n:"AST"}}],["America/Sao_Paulo",{s:{f:"-0300",n:"-03",s:"19700215T000000",r:{m:2,d:"3SU"}},d:{f:"-0300",t:"-0200",n:"-02",s:"19701101T000000",r:{m:11,d:"1SU"}}}],["America/Scoresbysund",{s:{f:"+0000",t:"-0100",n:"-01",s:"19701025T010000",r:{m:10,d:"-1SU"}},d:{f:"-0100",t:"+0000",n:"+00",s:"19700329T000000",r:{m:3,d:"-1SU"}}}],["America/Sitka",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/St_Barthelemy",{s:{f:"-0400",n:"AST"}}],["America/St_Johns",{s:{f:"-0230",t:"-0330",n:"NST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0330",t:"-0230",n:"NDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/St_Kitts",{s:{f:"-0400",n:"AST"}}],["America/St_Lucia",{s:{f:"-0400",n:"AST"}}],["America/St_Thomas",{s:{f:"-0400",n:"AST"}}],["America/St_Vincent",{s:{f:"-0400",n:"AST"}}],["America/Swift_Current",{s:{f:"-0600",n:"CST"}}],["America/Tegucigalpa",{s:{f:"-0600",n:"CST"}}],["America/Thule",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Thunder_Bay",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Tijuana",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Toronto",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Tortola",{s:{f:"-0400",n:"AST"}}],["America/Vancouver",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Whitehorse",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Winnipeg",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Yakutat",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Yellowknife",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["Antarctica/Casey",{s:{f:"+0800",n:"+08"}}],["Antarctica/Davis",{s:{f:"+0700",n:"+07"}}],["Antarctica/DumontDUrville",{s:{f:"+1000",n:"+10"}}],["Antarctica/Macquarie",{s:{f:"+1100",n:"+11"}}],["Antarctica/Mawson",{s:{f:"+0500",n:"+05"}}],["Antarctica/McMurdo",{s:{f:"+1300",t:"+1200",n:"NZST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1200",t:"+1300",n:"NZDT",s:"19700927T020000",r:{m:9,d:"-1SU"}}}],["Antarctica/Palmer",{s:{f:"-0300",n:"-03"}}],["Antarctica/Rothera",{s:{f:"-0300",n:"-03"}}],["Antarctica/Syowa",{s:{f:"+0300",n:"+03"}}],["Antarctica/Troll",{s:{f:"+0200",t:"+0000",n:"+00",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0200",n:"+02",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Antarctica/Vostok",{s:{f:"+0600",n:"+06"}}],["Arctic/Longyearbyen",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Asia/Aden",{s:{f:"+0300",n:"+03"}}],["Asia/Almaty",{s:{f:"+0600",n:"+06"}}],["Asia/Amman",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701030T010000",r:{m:10,d:"-1FR"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700326T235959",r:{m:3,d:"-1TH"}}}],["Asia/Anadyr",{s:{f:"+1200",n:"+12"}}],["Asia/Aqtau",{s:{f:"+0500",n:"+05"}}],["Asia/Aqtobe",{s:{f:"+0500",n:"+05"}}],["Asia/Ashgabat",{s:{f:"+0500",n:"+05"}}],["Asia/Atyrau",{s:{f:"+0500",n:"+05"}}],["Asia/Baghdad",{s:{f:"+0300",n:"+03"}}],["Asia/Bahrain",{s:{f:"+0300",n:"+03"}}],["Asia/Baku",{s:{f:"+0400",n:"+04"}}],["Asia/Bangkok",{s:{f:"+0700",n:"+07"}}],["Asia/Barnaul",{s:{f:"+0700",n:"+07"}}],["Asia/Beirut",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T000000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T000000",r:{m:3,d:"-1SU"}}}],["Asia/Bishkek",{s:{f:"+0600",n:"+06"}}],["Asia/Brunei",{s:{f:"+0800",n:"+08"}}],["Asia/Chita",{s:{f:"+0900",n:"+09"}}],["Asia/Choibalsan",{s:{f:"+0800",n:"+08"}}],["Asia/Colombo",{s:{f:"+0530",n:"+0530"}}],["Asia/Damascus",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701030T000000",r:{m:10,d:"-1FR"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700327T000000",r:{m:3,d:"-1FR"}}}],["Asia/Dhaka",{s:{f:"+0600",n:"+06"}}],["Asia/Dili",{s:{f:"+0900",n:"+09"}}],["Asia/Dubai",{s:{f:"+0400",n:"+04"}}],["Asia/Dushanbe",{s:{f:"+0500",n:"+05"}}],["Asia/Famagusta",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Asia/Gaza",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701031T010000",r:{m:10,d:"-1SA"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700328T010000",r:{m:3,d:"4SA"}}}],["Asia/Hebron",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701031T010000",r:{m:10,d:"-1SA"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700328T010000",r:{m:3,d:"4SA"}}}],["Asia/Ho_Chi_Minh",{s:{f:"+0700",n:"+07"}}],["Asia/Hong_Kong",{s:{f:"+0800",n:"HKT"}}],["Asia/Hovd",{s:{f:"+0700",n:"+07"}}],["Asia/Irkutsk",{s:{f:"+0800",n:"+08"}}],["Asia/Istanbul",{s:{f:"+0300",n:"+03"}}],["Asia/Jakarta",{s:{f:"+0700",n:"WIB"}}],["Asia/Jayapura",{s:{f:"+0900",n:"WIT"}}],["Asia/Jerusalem",{s:{f:"+0300",t:"+0200",n:"IST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"IDT",s:"19700327T020000",r:{m:3,d:"-1FR"}}}],["Asia/Kabul",{s:{f:"+0430",n:"+0430"}}],["Asia/Kamchatka",{s:{f:"+1200",n:"+12"}}],["Asia/Karachi",{s:{f:"+0500",n:"PKT"}}],["Asia/Kathmandu",{s:{f:"+0545",n:"+0545"}}],["Asia/Khandyga",{s:{f:"+0900",n:"+09"}}],["Asia/Kolkata",{s:{f:"+0530",n:"IST"}}],["Asia/Krasnoyarsk",{s:{f:"+0700",n:"+07"}}],["Asia/Kuala_Lumpur",{s:{f:"+0800",n:"+08"}}],["Asia/Kuching",{s:{f:"+0800",n:"+08"}}],["Asia/Kuwait",{s:{f:"+0300",n:"+03"}}],["Asia/Macau",{s:{f:"+0800",n:"CST"}}],["Asia/Magadan",{s:{f:"+1100",n:"+11"}}],["Asia/Makassar",{s:{f:"+0800",n:"WITA"}}],["Asia/Manila",{s:{f:"+0800",n:"PST"}}],["Asia/Muscat",{s:{f:"+0400",n:"+04"}}],["Asia/Nicosia",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Asia/Novokuznetsk",{s:{f:"+0700",n:"+07"}}],["Asia/Novosibirsk",{s:{f:"+0700",n:"+07"}}],["Asia/Omsk",{s:{f:"+0600",n:"+06"}}],["Asia/Oral",{s:{f:"+0500",n:"+05"}}],["Asia/Phnom_Penh",{s:{f:"+0700",n:"+07"}}],["Asia/Pontianak",{s:{f:"+0700",n:"WIB"}}],["Asia/Pyongyang",{s:{f:"+0900",n:"KST"}}],["Asia/Qatar",{s:{f:"+0300",n:"+03"}}],["Asia/Qyzylorda",{s:{f:"+0600",n:"+06"}}],["Asia/Riyadh",{s:{f:"+0300",n:"+03"}}],["Asia/Sakhalin",{s:{f:"+1100",n:"+11"}}],["Asia/Samarkand",{s:{f:"+0500",n:"+05"}}],["Asia/Seoul",{s:{f:"+0900",n:"KST"}}],["Asia/Shanghai",{s:{f:"+0800",n:"CST"}}],["Asia/Singapore",{s:{f:"+0800",n:"+08"}}],["Asia/Srednekolymsk",{s:{f:"+1100",n:"+11"}}],["Asia/Taipei",{s:{f:"+0800",n:"CST"}}],["Asia/Tashkent",{s:{f:"+0500",n:"+05"}}],["Asia/Tbilisi",{s:{f:"+0400",n:"+04"}}],["Asia/Tehran",{s:{f:"+0430",t:"+0330",n:"+0330",s:"19700921T000000",r:{m:9,d:"3SU"}},d:{f:"+0330",t:"+0430",n:"+0430",s:"19700321T000000",r:{m:3,d:"3SU"}}}],["Asia/Thimphu",{s:{f:"+0600",n:"+06"}}],["Asia/Tokyo",{s:{f:"+0900",n:"JST"}}],["Asia/Tomsk",{s:{f:"+0700",n:"+07"}}],["Asia/Ulaanbaatar",{s:{f:"+0800",n:"+08"}}],["Asia/Urumqi",{s:{f:"+0600",n:"+06"}}],["Asia/Ust-Nera",{s:{f:"+1000",n:"+10"}}],["Asia/Vientiane",{s:{f:"+0700",n:"+07"}}],["Asia/Vladivostok",{s:{f:"+1000",n:"+10"}}],["Asia/Yakutsk",{s:{f:"+0900",n:"+09"}}],["Asia/Yangon",{s:{f:"+0630",n:"+0630"}}],["Asia/Yekaterinburg",{s:{f:"+0500",n:"+05"}}],["Asia/Yerevan",{s:{f:"+0400",n:"+04"}}],["Atlantic/Azores",{s:{f:"+0000",t:"-0100",n:"-01",s:"19701025T010000",r:{m:10,d:"-1SU"}},d:{f:"-0100",t:"+0000",n:"+00",s:"19700329T000000",r:{m:3,d:"-1SU"}}}],["Atlantic/Bermuda",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["Atlantic/Canary",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Atlantic/Cape_Verde",{s:{f:"-0100",n:"-01"}}],["Atlantic/Faroe",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Atlantic/Madeira",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Atlantic/Reykjavik",{s:{f:"+0000",n:"GMT"}}],["Atlantic/South_Georgia",{s:{f:"-0200",n:"-02"}}],["Atlantic/St_Helena",{s:{f:"+0000",n:"GMT"}}],["Atlantic/Stanley",{s:{f:"-0300",n:"-03"}}],["Australia/Adelaide",{s:{f:"+1030",t:"+0930",n:"ACST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+0930",t:"+1030",n:"ACDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Brisbane",{s:{f:"+1000",n:"AEST"}}],["Australia/Broken_Hill",{s:{f:"+1030",t:"+0930",n:"ACST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+0930",t:"+1030",n:"ACDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Currie",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Darwin",{s:{f:"+0930",n:"ACST"}}],["Australia/Eucla",{s:{f:"+0845",n:"+0845"}}],["Australia/Hobart",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Lindeman",{s:{f:"+1000",n:"AEST"}}],["Australia/Lord_Howe",{s:{f:"+1100",t:"+1030",n:"+1030",s:"19700405T020000",r:{m:4,d:"1SU"}},d:{f:"+1030",t:"+1100",n:"+11",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Melbourne",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Perth",{s:{f:"+0800",n:"AWST"}}],["Australia/Sydney",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Etc/GMT-0",{s:{f:"+0000",n:"GMT"}}],["Etc/GMT-1",{s:{f:"-0100",n:"-01"}}],["Etc/GMT-10",{s:{f:"-1000",n:"-10"}}],["Etc/GMT-11",{s:{f:"-1100",n:"-11"}}],["Etc/GMT-12",{s:{f:"-1200",n:"-12"}}],["Etc/GMT-2",{s:{f:"-0200",n:"-02"}}],["Etc/GMT-3",{s:{f:"-0300",n:"-03"}}],["Etc/GMT-4",{s:{f:"-0400",n:"-04"}}],["Etc/GMT-5",{s:{f:"-0500",n:"-05"}}],["Etc/GMT-6",{s:{f:"-0600",n:"-06"}}],["Etc/GMT-7",{s:{f:"-0700",n:"-07"}}],["Etc/GMT-8",{s:{f:"-0800",n:"-08"}}],["Etc/GMT-9",{s:{f:"-0900",n:"-09"}}],["Etc/GMT",{s:{f:"+0000",n:"GMT"}}],["Etc/GMT+0",{s:{f:"+0000",n:"GMT"}}],["Etc/GMT+1",{s:{f:"+0100",n:"+01"}}],["Etc/GMT+10",{s:{f:"+1000",n:"+10"}}],["Etc/GMT+11",{s:{f:"+1100",n:"+11"}}],["Etc/GMT+12",{s:{f:"+1200",n:"+12"}}],["Etc/GMT+13",{s:{f:"+1300",n:"+13"}}],["Etc/GMT+14",{s:{f:"+1400",n:"+14"}}],["Etc/GMT+2",{s:{f:"+0200",n:"+02"}}],["Etc/GMT+3",{s:{f:"+0300",n:"+03"}}],["Etc/GMT+4",{s:{f:"+0400",n:"+04"}}],["Etc/GMT+5",{s:{f:"+0500",n:"+05"}}],["Etc/GMT+6",{s:{f:"+0600",n:"+06"}}],["Etc/GMT+7",{s:{f:"+0700",n:"+07"}}],["Etc/GMT+8",{s:{f:"+0800",n:"+08"}}],["Etc/GMT+9",{s:{f:"+0900",n:"+09"}}],["Etc/GMT0",{s:{f:"+0000",n:"GMT"}}],["Etc/Greenwich",{s:{f:"+0000",n:"GMT"}}],["Etc/UCT",{s:{f:"+0000",n:"UCT"}}],["Etc/Universal",{s:{f:"+0000",n:"UTC"}}],["Etc/UTC",{s:{f:"+0000",n:"UTC"}}],["Etc/Zulu",{s:{f:"+0000",n:"UTC"}}],["Europe/Amsterdam",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Andorra",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Astrakhan",{s:{f:"+0400",n:"+04"}}],["Europe/Athens",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Belgrade",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Berlin",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Bratislava",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Brussels",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Bucharest",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Budapest",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Busingen",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Chisinau",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Copenhagen",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Dublin",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"IST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Gibraltar",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Guernsey",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Helsinki",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Isle_of_Man",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Istanbul",{s:{f:"+0300",n:"+03"}}],["Europe/Jersey",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Kaliningrad",{s:{f:"+0200",n:"EET"}}],["Europe/Kiev",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Kirov",{s:{f:"+0300",n:"+03"}}],["Europe/Lisbon",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Ljubljana",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/London",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Luxembourg",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Madrid",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Malta",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Mariehamn",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Minsk",{s:{f:"+0300",n:"+03"}}],["Europe/Monaco",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Moscow",{s:{f:"+0300",n:"MSK"}}],["Europe/Nicosia",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Oslo",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Paris",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Podgorica",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Prague",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Riga",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Rome",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Samara",{s:{f:"+0400",n:"+04"}}],["Europe/San_Marino",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Sarajevo",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Saratov",{s:{f:"+0400",n:"+04"}}],["Europe/Simferopol",{s:{f:"+0300",n:"MSK"}}],["Europe/Skopje",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Sofia",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Stockholm",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Tallinn",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Tirane",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Ulyanovsk",{s:{f:"+0400",n:"+04"}}],["Europe/Uzhgorod",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Vaduz",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Vatican",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Vienna",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Vilnius",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Volgograd",{s:{f:"+0400",n:"+04"}}],["Europe/Warsaw",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Zagreb",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Zaporozhye",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Zurich",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Indian/Antananarivo",{s:{f:"+0300",n:"EAT"}}],["Indian/Chagos",{s:{f:"+0600",n:"+06"}}],["Indian/Christmas",{s:{f:"+0700",n:"+07"}}],["Indian/Cocos",{s:{f:"+0630",n:"+0630"}}],["Indian/Comoro",{s:{f:"+0300",n:"EAT"}}],["Indian/Kerguelen",{s:{f:"+0500",n:"+05"}}],["Indian/Mahe",{s:{f:"+0400",n:"+04"}}],["Indian/Maldives",{s:{f:"+0500",n:"+05"}}],["Indian/Mauritius",{s:{f:"+0400",n:"+04"}}],["Indian/Mayotte",{s:{f:"+0300",n:"EAT"}}],["Indian/Reunion",{s:{f:"+0400",n:"+04"}}],["Pacific/Apia",{s:{f:"+1400",t:"+1300",n:"+13",s:"19700405T040000",r:{m:4,d:"1SU"}},d:{f:"+1300",t:"+1400",n:"+14",s:"19700927T030000",r:{m:9,d:"-1SU"}}}],["Pacific/Auckland",{s:{f:"+1300",t:"+1200",n:"NZST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1200",t:"+1300",n:"NZDT",s:"19700927T020000",r:{m:9,d:"-1SU"}}}],["Pacific/Bougainville",{s:{f:"+1100",n:"+11"}}],["Pacific/Chatham",{s:{f:"+1345",t:"+1245",n:"+1245",s:"19700405T034500",r:{m:4,d:"1SU"}},d:{f:"+1245",t:"+1345",n:"+1345",s:"19700927T024500",r:{m:9,d:"-1SU"}}}],["Pacific/Chuuk",{s:{f:"+1000",n:"+10"}}],["Pacific/Easter",{s:{f:"-0500",t:"-0600",n:"-06",s:"19700404T220000",r:{m:4,d:"1SA"}},d:{f:"-0600",t:"-0500",n:"-05",s:"19700905T220000",r:{m:9,d:"1SA"}}}],["Pacific/Efate",{s:{f:"+1100",n:"+11"}}],["Pacific/Enderbury",{s:{f:"+1300",n:"+13"}}],["Pacific/Fakaofo",{s:{f:"+1300",n:"+13"}}],["Pacific/Fiji",{s:{f:"+1300",t:"+1200",n:"+12",s:"19700118T030000",r:{m:1,d:"-2SU"}},d:{f:"+1200",t:"+1300",n:"+13",s:"19701101T020000",r:{m:11,d:"1SU"}}}],["Pacific/Funafuti",{s:{f:"+1200",n:"+12"}}],["Pacific/Galapagos",{s:{f:"-0600",n:"-06"}}],["Pacific/Gambier",{s:{f:"-0900",n:"-09"}}],["Pacific/Guadalcanal",{s:{f:"+1100",n:"+11"}}],["Pacific/Guam",{s:{f:"+1000",n:"ChST"}}],["Pacific/Honolulu",{s:{f:"-1000",n:"HST"}}],["Pacific/Kiritimati",{s:{f:"+1400",n:"+14"}}],["Pacific/Kosrae",{s:{f:"+1100",n:"+11"}}],["Pacific/Kwajalein",{s:{f:"+1200",n:"+12"}}],["Pacific/Majuro",{s:{f:"+1200",n:"+12"}}],["Pacific/Marquesas",{s:{f:"-0930",n:"-0930"}}],["Pacific/Midway",{s:{f:"-1100",n:"SST"}}],["Pacific/Nauru",{s:{f:"+1200",n:"+12"}}],["Pacific/Niue",{s:{f:"-1100",n:"-11"}}],["Pacific/Norfolk",{s:{f:"+1100",n:"+11"}}],["Pacific/Noumea",{s:{f:"+1100",n:"+11"}}],["Pacific/Pago_Pago",{s:{f:"-1100",n:"SST"}}],["Pacific/Palau",{s:{f:"+0900",n:"+09"}}],["Pacific/Pitcairn",{s:{f:"-0800",n:"-08"}}],["Pacific/Pohnpei",{s:{f:"+1100",n:"+11"}}],["Pacific/Port_Moresby",{s:{f:"+1000",n:"+10"}}],["Pacific/Rarotonga",{s:{f:"-1000",n:"-10"}}],["Pacific/Saipan",{s:{f:"+1000",n:"ChST"}}],["Pacific/Tahiti",{s:{f:"-1000",n:"-10"}}],["Pacific/Tarawa",{s:{f:"+1200",n:"+12"}}],["Pacific/Tongatapu",{s:{f:"+1300",n:"+13"}}],["Pacific/Wake",{s:{f:"+1200",n:"+12"}}],["Pacific/Wallis",{s:{f:"+1200",n:"+12"}}]]),Object.defineProperty(q,"__esModule",{value:!0});var J=q.getZoneString=q.getZoneLines=void 0;const Q=X;function tt(t){const{n:e,f:r,t:n,r:i,s:a}=t;return[`TZNAME:${e}`,`TZOFFSETFROM:${r}`,`TZOFFSETTO:${n||r}`,`DTSTART:${a||Q.defaultStart}`,...i?[`RRULE:FREQ=${i.f||"YEARLY"};BYMONTH=${i.m};BYDAY=${i.d}`]:[]]}function et(t,e=!0){const r=Q.zonesMap.get(t);if(r){const{s:n,d:i}=r;return[...e?["BEGIN:VTIMEZONE"]:[],`TZID:${t}`,"BEGIN:STANDARD",...tt(n),"END:STANDARD",...i?["BEGIN:DAYLIGHT",...tt(i),"END:DAYLIGHT"]:[],...e?["END:VTIMEZONE"]:[]]}}q.getZoneLines=et,J=q.getZoneString=function(t,e=!0){const r=et(t,e);return null==r?void 0:r.join("\r\n")};var rt={exports:{}};!function(t){var e,r;(e=t.exports).foldLength=75,e.newLineChar="\r\n",e.helpers={updateTimezones:function(t){var r,n,i,a,s,o;if(!t||"vcalendar"!==t.name)return t;for(r=t.getAllSubcomponents(),n=[],i={},s=0;s<r.length;s++)"vtimezone"===r[s].name?i[o=r[s].getFirstProperty("tzid").getFirstValue()]=r[s]:n=n.concat(r[s].getAllProperties());for(a={},s=0;s<n.length;s++)(o=n[s].getParameter("tzid"))&&(a[o]=!0);for(s in i)i.hasOwnProperty(s)&&!a[s]&&t.removeSubcomponent(i[s]);for(s in a)a.hasOwnProperty(s)&&!i[s]&&e.TimezoneService.has(s)&&t.addSubcomponent(e.TimezoneService.get(s).component);return t},isStrictlyNaN:function(t){return"number"==typeof t&&isNaN(t)},strictParseInt:function(t){var r=parseInt(t,10);if(e.helpers.isStrictlyNaN(r))throw new Error('Could not extract integer from "'+t+'"');return r},formatClassType:function(t,e){if(!(typeof t>"u"))return t instanceof e?t:new e(t)},unescapedIndexOf:function(t,e,r){for(;-1!==(r=t.indexOf(e,r));){if(!(r>0&&"\\"===t[r-1]))return r;r+=1}return-1},binsearchInsert:function(t,e,r){if(!t.length)return 0;for(var n,i,a=0,s=t.length-1;a<=s;)if((i=r(e,t[n=a+Math.floor((s-a)/2)]))<0)s=n-1;else{if(!(i>0))break;a=n+1}return i<0?n:i>0?n+1:n},dumpn:function(){e.debug&&(e.helpers.dumpn=typeof L<"u"&&"log"in L?function(t){L.log(t)}:function(t){dump(t+"\n")},e.helpers.dumpn(arguments[0]))},clone:function(t,r){if(!t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t.getTime());if("clone"in t)return t.clone();if(Array.isArray(t)){for(var n=[],i=0;i<t.length;i++)n.push(r?e.helpers.clone(t[i],!0):t[i]);return n}var a={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=r?e.helpers.clone(t[s],!0):t[s]);return a},foldline:function(t){for(var r="",n=t||"",i=0,a=0;n.length;){var s=n.codePointAt(i);s<128?++a:a+=s<2048?2:s<65536?3:4,a<e.foldLength+1?i+=s>65535?2:1:(r+=e.newLineChar+" "+n.substring(0,i),n=n.substring(i),i=a=0)}return r.substr(e.newLineChar.length+1)},pad2:function(t){switch("string"!=typeof t&&("number"==typeof t&&(t=parseInt(t)),t=String(t)),t.length){case 0:return"00";case 1:return"0"+t;default:return t}},trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)},inherits:function(t,r,n){function i(){}i.prototype=t.prototype,r.prototype=new i,n&&e.helpers.extend(n,r.prototype)},extend:function(t,e){for(var r in t){var n=Object.getOwnPropertyDescriptor(t,r);n&&!Object.getOwnPropertyDescriptor(e,r)&&Object.defineProperty(e,r,n)}return e}},e.design=function(){var t=/\\\\|\\,|\\[Nn]/g,r=/\\|,|\n/g;function n(t,e){var r={matches:/.*/,fromICAL:function(e,r){return function(t,e,r){return-1===t.indexOf("\\")?t:(r&&(e=new RegExp(e.source+"|\\\\"+r)),t.replace(e,p))}(e,t,r)},toICAL:function(t,r){var n=e;return r&&(n=new RegExp(n.source+"|"+r)),t.replace(n,(function(t){switch(t){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case"\n":return"\\n";default:return t}}))}};return r}var i={defaultType:"text"},a={defaultType:"text",multiValue:","},s={defaultType:"text",structuredValue:";"},o={defaultType:"integer"},u={defaultType:"date-time",allowedTypes:["date-time","date"]},l={defaultType:"date-time"},c={defaultType:"uri"},d={defaultType:"utc-offset"},f={defaultType:"recur"},h={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function p(t){switch(t){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return"\n";default:return t}}var m={categories:a,url:c,version:i,uid:i},y={boolean:{values:["TRUE","FALSE"],fromICAL:function(t){return"TRUE"===t},toICAL:function(t){return t?"TRUE":"FALSE"}},float:{matches:/^[+-]?\d+\.\d+$/,fromICAL:function(t){var r=parseFloat(t);return e.helpers.isStrictlyNaN(r)?0:r},toICAL:function(t){return String(t)}},integer:{fromICAL:function(t){var r=parseInt(t);return e.helpers.isStrictlyNaN(r)?0:r},toICAL:function(t){return String(t)}},"utc-offset":{toICAL:function(t){return t.length<7?t.substr(0,3)+t.substr(4,2):t.substr(0,3)+t.substr(4,2)+t.substr(7,2)},fromICAL:function(t){return t.length<6?t.substr(0,3)+":"+t.substr(3,2):t.substr(0,3)+":"+t.substr(3,2)+":"+t.substr(5,2)},decorate:function(t){return e.UtcOffset.fromString(t)},undecorate:function(t){return t.toString()}}},v=e.helpers.extend(y,{text:n(/\\\\|\\;|\\,|\\[Nn]/g,/\\|;|,|\n/g),uri:{},binary:{decorate:function(t){return e.Binary.fromString(t)},undecorate:function(t){return t.toString()}},"cal-address":{},date:{decorate:function(t,r){return C.strict?e.Time.fromDateString(t,r):e.Time.fromString(t,r)},undecorate:function(t){return t.toString()},fromICAL:function(t){return!C.strict&&t.length>=15?v["date-time"].fromICAL(t):t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2)},toICAL:function(t){var e=t.length;return 10==e?t.substr(0,4)+t.substr(5,2)+t.substr(8,2):e>=19?v["date-time"].toICAL(t):t}},"date-time":{fromICAL:function(t){if(!C.strict&&8==t.length)return v.date.fromICAL(t);var e=t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2)+"T"+t.substr(9,2)+":"+t.substr(11,2)+":"+t.substr(13,2);return t[15]&&"Z"===t[15]&&(e+="Z"),e},toICAL:function(t){var e=t.length;if(10==e&&!C.strict)return v.date.toICAL(t);if(e>=19){var r=t.substr(0,4)+t.substr(5,2)+t.substr(8,5)+t.substr(14,2)+t.substr(17,2);return t[19]&&"Z"===t[19]&&(r+="Z"),r}return t},decorate:function(t,r){return C.strict?e.Time.fromDateTimeString(t,r):e.Time.fromString(t,r)},undecorate:function(t){return t.toString()}},duration:{decorate:function(t){return e.Duration.fromString(t)},undecorate:function(t){return t.toString()}},period:{fromICAL:function(t){var r=t.split("/");return r[0]=v["date-time"].fromICAL(r[0]),e.Duration.isValueString(r[1])||(r[1]=v["date-time"].fromICAL(r[1])),r},toICAL:function(t){return C.strict||10!=t[0].length?t[0]=v["date-time"].toICAL(t[0]):t[0]=v.date.toICAL(t[0]),e.Duration.isValueString(t[1])||(C.strict||10!=t[1].length?t[1]=v["date-time"].toICAL(t[1]):t[1]=v.date.toICAL(t[1])),t.join("/")},decorate:function(t,r){return e.Period.fromJSON(t,r,!C.strict)},undecorate:function(t){return t.toJSON()}},recur:{fromICAL:function(t){return e.Recur._stringToData(t,!0)},toICAL:function(t){var r="";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];"until"==n?i=i.length>10?v["date-time"].toICAL(i):v.date.toICAL(i):"wkst"==n?"number"==typeof i&&(i=e.Recur.numericDayToIcalDay(i)):Array.isArray(i)&&(i=i.join(",")),r+=n.toUpperCase()+"="+i+";"}return r.substr(0,r.length-1)},decorate:function(t){return e.Recur.fromData(t)},undecorate:function(t){return t.toJSON()}},time:{fromICAL:function(t){if(t.length<6)return t;var e=t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2);return"Z"===t[6]&&(e+="Z"),e},toICAL:function(t){if(t.length<8)return t;var e=t.substr(0,2)+t.substr(3,2)+t.substr(6,2);return"Z"===t[8]&&(e+="Z"),e}}}),T=e.helpers.extend(m,{action:i,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:i,class:i,comment:i,completed:l,contact:i,created:l,description:i,dtend:u,dtstamp:l,dtstart:u,due:u,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:f,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":l,location:i,method:i,organizer:{defaultType:"cal-address"},"percent-complete":o,priority:o,prodid:i,"related-to":i,repeat:o,rdate:{defaultType:"date-time",allowedTypes:["date-time","date","period"],multiValue:",",detectType:function(t){return-1!==t.indexOf("/")?"period":-1===t.indexOf("T")?"date":"date-time"}},"recurrence-id":u,resources:a,"request-status":s,rrule:f,sequence:o,status:i,summary:i,transp:i,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:d,tzoffsetto:d,tzurl:c,tzid:i,tzname:i}),g=e.helpers.extend(y,{text:n(t,r),uri:n(t,r),date:{decorate:function(t){return e.VCardTime.fromDateAndOrTimeString(t,"date")},undecorate:function(t){return t.toString()},fromICAL:function(t){return 8==t.length?v.date.fromICAL(t):"-"==t[0]&&6==t.length?t.substr(0,4)+"-"+t.substr(4):t},toICAL:function(t){return 10==t.length?v.date.toICAL(t):"-"==t[0]&&7==t.length?t.substr(0,4)+t.substr(5):t}},time:{decorate:function(t){return e.VCardTime.fromDateAndOrTimeString("T"+t,"time")},undecorate:function(t){return t.toString()},fromICAL:function(t){var e=g.time._splitZone(t,!0),r=e[0],n=e[1];return 6==n.length?n=n.substr(0,2)+":"+n.substr(2,2)+":"+n.substr(4,2):4==n.length&&"-"!=n[0]?n=n.substr(0,2)+":"+n.substr(2,2):5==n.length&&(n=n.substr(0,3)+":"+n.substr(3,2)),5==r.length&&("-"==r[0]||"+"==r[0])&&(r=r.substr(0,3)+":"+r.substr(3)),n+r},toICAL:function(t){var e=g.time._splitZone(t),r=e[0],n=e[1];return 8==n.length?n=n.substr(0,2)+n.substr(3,2)+n.substr(6,2):5==n.length&&"-"!=n[0]?n=n.substr(0,2)+n.substr(3,2):6==n.length&&(n=n.substr(0,3)+n.substr(4,2)),6==r.length&&("-"==r[0]||"+"==r[0])&&(r=r.substr(0,3)+r.substr(4)),n+r},_splitZone:function(t,e){var r,n,i=t.length-1,a=t.length-(e?5:6),s=t[a];return"Z"==t[i]?(r=t[i],n=t.substr(0,i)):t.length>6&&("-"==s||"+"==s)?(r=t.substr(a),n=t.substr(0,a)):(r="",n=t),[r,n]}},"date-time":{decorate:function(t){return e.VCardTime.fromDateAndOrTimeString(t,"date-time")},undecorate:function(t){return t.toString()},fromICAL:function(t){return g["date-and-or-time"].fromICAL(t)},toICAL:function(t){return g["date-and-or-time"].toICAL(t)}},"date-and-or-time":{decorate:function(t){return e.VCardTime.fromDateAndOrTimeString(t,"date-and-or-time")},undecorate:function(t){return t.toString()},fromICAL:function(t){var e=t.split("T");return(e[0]?g.date.fromICAL(e[0]):"")+(e[1]?"T"+g.time.fromICAL(e[1]):"")},toICAL:function(t){var e=t.split("T");return g.date.toICAL(e[0])+(e[1]?"T"+g.time.toICAL(e[1]):"")}},timestamp:v["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/}}),A=e.helpers.extend(m,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:h,bday:h,caladruri:c,caluri:c,clientpidmap:s,email:i,fburl:c,fn:i,gender:s,geo:c,impp:c,key:c,kind:i,lang:{defaultType:"language-tag"},logo:c,member:c,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:a,note:i,org:{defaultType:"text",structuredValue:";"},photo:c,related:c,rev:{defaultType:"timestamp"},role:i,sound:c,source:c,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:i,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:i}),b=e.helpers.extend(y,{binary:v.binary,date:g.date,"date-time":g["date-time"],"phone-number":{},uri:v.uri,text:v.text,time:v.time,vcard:v.text,"utc-offset":{toICAL:function(t){return t.substr(0,7)},fromICAL:function(t){return t.substr(0,7)},decorate:function(t){return e.UtcOffset.fromString(t)},undecorate:function(t){return t.toString()}}}),S=e.helpers.extend(m,{fn:i,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:a,photo:{defaultType:"binary",allowedTypes:["binary","uri"]},bday:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(t){return-1===t.indexOf("T")?"date":"date-time"}},adr:{defaultType:"text",structuredValue:";",multiValue:","},label:i,tel:{defaultType:"phone-number"},email:i,mailer:i,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:i,role:i,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:s,note:a,prodid:i,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(t){return-1===t.indexOf("T")?"date":"date-time"}},"sort-string":i,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:i,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),E={value:v,param:{cutype:{values:["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"],allowXName:!0,allowIanaToken:!0},"delegated-from":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},"delegated-to":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},encoding:{values:["8BIT","BASE64"]},fbtype:{values:["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],allowXName:!0,allowIanaToken:!0},member:{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},partstat:{values:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"],allowXName:!0,allowIanaToken:!0},range:{values:["THISANDFUTURE"]},related:{values:["START","END"]},reltype:{values:["PARENT","CHILD","SIBLING"],allowXName:!0,allowIanaToken:!0},role:{values:["REQ-PARTICIPANT","CHAIR","OPT-PARTICIPANT","NON-PARTICIPANT"],allowXName:!0,allowIanaToken:!0},rsvp:{values:["TRUE","FALSE"]},"sent-by":{valueType:"cal-address"},tzid:{matches:/^\//},value:{values:["binary","boolean","cal-address","date","date-time","duration","float","integer","period","recur","text","time","uri","utc-offset"],allowXName:!0,allowIanaToken:!0}},property:T},_={value:g,param:{type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","time","date-time","date-and-or-time","timestamp","boolean","integer","float","utc-offset","language-tag"],allowXName:!0,allowIanaToken:!0}},property:A},D={value:b,param:{type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","date-time","phone-number","time","boolean","integer","float","utc-offset","vcard","binary"],allowXName:!0,allowIanaToken:!0}},property:S},C={strict:!0,defaultSet:E,defaultType:"unknown",components:{vcard:_,vcard3:D,vevent:E,vtodo:E,vjournal:E,valarm:E,vtimezone:E,daylight:E,standard:E},icalendar:E,vcard:_,vcard3:D,getDesignSet:function(t){return t&&t in C.components?C.components[t]:C.defaultSet}};return C}(),e.stringify=function(){var t="\r\n",r="unknown",n=e.design,i=e.helpers;function a(e){"string"==typeof e[0]&&(e=[e]);for(var r=0,n=e.length,i="";r<n;r++)i+=a.component(e[r])+t;return i}a.component=function(e,r){var i=e[0].toUpperCase(),s="BEGIN:"+i+t,o=e[1],u=0,l=o.length,c=e[0];for("vcard"===c&&e[1].length>0&&!("version"===e[1][0][0]&&"4.0"===e[1][0][3])&&(c="vcard3"),r=r||n.getDesignSet(c);u<l;u++)s+=a.property(o[u],r)+t;for(var d=e[2]||[],f=0,h=d.length;f<h;f++)s+=a.component(d[f],r)+t;return s+"END:"+i},a.property=function(t,i,s){var o,u=t[0].toUpperCase(),l=t[0],c=t[1],d=u;for(o in c){var f=c[o];c.hasOwnProperty(o)&&((m=o in i.param&&i.param[o].multiValue)&&Array.isArray(f)?(i.param[o].multiValueSeparateDQuote&&(m='"'+m+'"'),f=f.map(a._rfc6868Unescape),f=a.multiValue(f,m,"unknown",null,i)):f=a._rfc6868Unescape(f),d+=";"+o.toUpperCase(),d+="="+a.propertyValue(f))}if(3===t.length)return d+":";var h=t[2];i||(i=n.defaultSet);var p,m=!1,y=!1,v=!1;return l in i.property?("multiValue"in(p=i.property[l])&&(m=p.multiValue),"structuredValue"in p&&Array.isArray(t[3])&&(y=p.structuredValue),"defaultType"in p?h===p.defaultType&&(v=!0):h===r&&(v=!0)):h===r&&(v=!0),v||(d+=";VALUE="+h.toUpperCase()),d+=":",d+=m&&y?a.multiValue(t[3],y,h,m,i,y):m?a.multiValue(t.slice(3),m,h,null,i,!1):y?a.multiValue(t[3],y,h,null,i,y):a.value(t[3],h,i,!1),s?d:e.helpers.foldline(d)},a.propertyValue=function(t){return-1===i.unescapedIndexOf(t,",")&&-1===i.unescapedIndexOf(t,":")&&-1===i.unescapedIndexOf(t,";")?t:'"'+t+'"'},a.multiValue=function(t,e,r,n,i,s){for(var o="",u=t.length,l=0;l<u;l++)n&&Array.isArray(t[l])?o+=a.multiValue(t[l],n,r,null,i,s):o+=a.value(t[l],r,i,s),l!==u-1&&(o+=e);return o},a.value=function(t,e,r,n){return e in r.value&&"toICAL"in r.value[e]?r.value[e].toICAL(t,n):t},a._rfc6868Unescape=function(t){return t.replace(/[\n^"]/g,(function(t){return s[t]}))};var s={'"':"^'","\n":"^n","^":"^^"};return a}(),e.parse=function(){var t=/[^ \t]/,r=e.design,n=e.helpers;function i(t){this.message=t,this.name="ParserError";try{throw new Error}catch(t){if(t.stack){var e=t.stack.split("\n");e.shift(),this.stack=e.join("\n")}}}function a(t){var e={},r=e.component=[];if(e.stack=[r],a._eachLine(t,(function(t,r){a._handleContentLine(r,e)})),e.stack.length>1)throw new i("invalid ical body. component began but did not end");return e=null,1==r.length?r[0]:r}i.prototype=Error.prototype,a.property=function(t,e){var n={component:[[],[]],designSet:e||r.defaultSet};return a._handleContentLine(t,n),n.component[1][0]},a.component=function(t){return a(t)},a.ParserError=i,a._handleContentLine=function(t,e){var n,s,o,u,l,c=t.indexOf(":"),d=t.indexOf(";"),f={};if(-1!==d&&-1!==c&&d>c&&(d=-1),-1!==d){if(o=t.substring(0,d).toLowerCase(),-1==(l=a._parseParameters(t.substring(d),0,e.designSet))[2])throw new i("Invalid parameters in '"+t+"'");if(f=l[0],n=l[1].length+l[2]+d,-1===(s=t.substring(n).indexOf(":")))throw new i("Missing parameter value in '"+t+"'");u=t.substring(n+s+1)}else{if(-1===c)throw new i('invalid line (no token ";" or ":") "'+t+'"');if(o=t.substring(0,c).toLowerCase(),u=t.substring(c+1),"begin"===o){var h=[u.toLowerCase(),[],[]];return 1===e.stack.length?e.component.push(h):e.component[2].push(h),e.stack.push(e.component),e.component=h,void(e.designSet||(e.designSet=r.getDesignSet(e.component[0])))}if("end"===o)return void(e.component=e.stack.pop())}var p,m,y,v=!1,T=!1;o in e.designSet.property&&("multiValue"in(m=e.designSet.property[o])&&(v=m.multiValue),"structuredValue"in m&&(T=m.structuredValue),u&&"detectType"in m&&(p=m.detectType(u))),p||(p="value"in f?f.value.toLowerCase():m?m.defaultType:"unknown"),delete f.value,v&&T?y=[o,f,p,u=a._parseMultiValue(u,T,p,[],v,e.designSet,T)]:v?(y=[o,f,p],a._parseMultiValue(u,v,p,y,null,e.designSet,!1)):y=T?[o,f,p,u=a._parseMultiValue(u,T,p,[],null,e.designSet,T)]:[o,f,p,u=a._parseValue(u,p,e.designSet,!1)],"vcard"===e.component[0]&&0===e.component[1].length&&!("version"===o&&"4.0"===u)&&(e.designSet=r.getDesignSet("vcard3")),e.component[1].push(y)},a._parseValue=function(t,e,r,n){return e in r.value&&"fromICAL"in r.value[e]?r.value[e].fromICAL(t,n):t},a._parseParameters=function(t,e,r){for(var s,o,u,l,c,d,f=e,h=0,p={},m=-1;!1!==h&&-1!==(h=n.unescapedIndexOf(t,"=",h+1));){if(0==(s=t.substr(f+1,h-f-1)).length)throw new i("Empty parameter name in '"+t+"'");if(d=!1,c=!1,l=(o=s.toLowerCase())in r.param&&r.param[o].valueType?r.param[o].valueType:"text",o in r.param&&(c=r.param[o].multiValue,r.param[o].multiValueSeparateDQuote&&(d=a._rfc6868Escape('"'+c+'"'))),'"'===t[h+1]){if(m=h+2,h=n.unescapedIndexOf(t,'"',m),c&&-1!=h)for(var y=!0;y;)t[h+1]==c&&'"'==t[h+2]?h=n.unescapedIndexOf(t,'"',h+3):y=!1;if(-1===h)throw new i('invalid line (no matching double quote) "'+t+'"');u=t.substr(m,h-m),-1===(f=n.unescapedIndexOf(t,";",h))&&(h=!1)}else{m=h+1;var v=n.unescapedIndexOf(t,";",m),T=n.unescapedIndexOf(t,":",m);-1!==T&&v>T?(v=T,h=!1):-1===v?(v=-1===T?t.length:T,h=!1):(f=v,h=v),u=t.substr(m,v-m)}if(u=a._rfc6868Escape(u),c){var g=d||c;u=a._parseMultiValue(u,g,l,[],null,r)}else u=a._parseValue(u,l,r);c&&o in p?Array.isArray(p[o])?p[o].push(u):p[o]=[p[o],u]:p[o]=u}return[p,u,m]},a._rfc6868Escape=function(t){return t.replace(/\^['n^]/g,(function(t){return s[t]}))};var s={"^'":'"',"^n":"\n","^^":"^"};return a._parseMultiValue=function(t,e,r,i,s,o,u){var l,c=0,d=0;if(0===e.length)return t;for(;-1!==(c=n.unescapedIndexOf(t,e,d));)l=t.substr(d,c-d),l=s?a._parseMultiValue(l,s,r,[],null,o,u):a._parseValue(l,r,o,u),i.push(l),d=c+e.length;return l=t.substr(d),l=s?a._parseMultiValue(l,s,r,[],null,o,u):a._parseValue(l,r,o,u),i.push(l),1==i.length?i[0]:i},a._eachLine=function(e,r){var n,i,a,s=e.length,o=e.search(t),u=o;do{a=(u=e.indexOf("\n",o)+1)>1&&"\r"===e[u-2]?2:1,0===u&&(u=s,a=0)," "===(i=e[o])||"\t"===i?n+=e.substr(o+1,u-o-(a+1)):(n&&r(null,n),n=e.substr(o,u-o-a)),o=u}while(u!==s);(n=n.trim()).length&&r(null,n)},a}(),e.Component=function(){function t(t,e){"string"==typeof t&&(t=[t,[],[]]),this.jCal=t,this.parent=e||null}return t.prototype={_hydratedPropertyCount:0,_hydratedComponentCount:0,get name(){return this.jCal[0]},get _designSet(){return this.parent&&this.parent._designSet||e.design.getDesignSet(this.name)},_hydrateComponent:function(e){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[e])return this._components[e];var r=new t(this.jCal[2][e],this);return this._hydratedComponentCount++,this._components[e]=r},_hydrateProperty:function(t){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[t])return this._properties[t];var r=new e.Property(this.jCal[1][t],this);return this._hydratedPropertyCount++,this._properties[t]=r},getFirstSubcomponent:function(t){if(t){for(var e=0,r=this.jCal[2],n=r.length;e<n;e++)if(r[e][0]===t)return this._hydrateComponent(e)}else if(this.jCal[2].length)return this._hydrateComponent(0);return null},getAllSubcomponents:function(t){var e=this.jCal[2].length,r=0;if(t){for(var n=this.jCal[2],i=[];r<e;r++)t===n[r][0]&&i.push(this._hydrateComponent(r));return i}if(!this._components||this._hydratedComponentCount!==e)for(;r<e;r++)this._hydrateComponent(r);return this._components||[]},hasProperty:function(t){for(var e=this.jCal[1],r=e.length,n=0;n<r;n++)if(e[n][0]===t)return!0;return!1},getFirstProperty:function(t){if(t){for(var e=0,r=this.jCal[1],n=r.length;e<n;e++)if(r[e][0]===t)return this._hydrateProperty(e)}else if(this.jCal[1].length)return this._hydrateProperty(0);return null},getFirstPropertyValue:function(t){var e=this.getFirstProperty(t);return e?e.getFirstValue():null},getAllProperties:function(t){var e=this.jCal[1].length,r=0;if(t){for(var n=this.jCal[1],i=[];r<e;r++)t===n[r][0]&&i.push(this._hydrateProperty(r));return i}if(!this._properties||this._hydratedPropertyCount!==e)for(;r<e;r++)this._hydrateProperty(r);return this._properties||[]},_removeObjectByIndex:function(t,e,r){if((e=e||[])[r]){var n=e[r];"parent"in n&&(n.parent=null)}e.splice(r,1),this.jCal[t].splice(r,1)},_removeObject:function(t,e,r){var n=0,i=this.jCal[t],a=i.length,s=this[e];if("string"==typeof r){for(;n<a;n++)if(i[n][0]===r)return this._removeObjectByIndex(t,s,n),!0}else if(s)for(;n<a;n++)if(s[n]&&s[n]===r)return this._removeObjectByIndex(t,s,n),!0;return!1},_removeAllObjects:function(t,e,r){for(var n=this[e],i=this.jCal[t],a=i.length-1;a>=0;a--)(!r||i[a][0]===r)&&this._removeObjectByIndex(t,n,a)},addSubcomponent:function(t){this._components||(this._components=[],this._hydratedComponentCount=0),t.parent&&t.parent.removeSubcomponent(t);var e=this.jCal[2].push(t.jCal);return this._components[e-1]=t,this._hydratedComponentCount++,t.parent=this,t},removeSubcomponent:function(t){var e=this._removeObject(2,"_components",t);return e&&this._hydratedComponentCount--,e},removeAllSubcomponents:function(t){var e=this._removeAllObjects(2,"_components",t);return this._hydratedComponentCount=0,e},addProperty:function(t){if(!(t instanceof e.Property))throw new TypeError("must instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),t.parent&&t.parent.removeProperty(t);var r=this.jCal[1].push(t.jCal);return this._properties[r-1]=t,this._hydratedPropertyCount++,t.parent=this,t},addPropertyWithValue:function(t,r){var n=new e.Property(t);return n.setValue(r),this.addProperty(n),n},updatePropertyWithValue:function(t,e){var r=this.getFirstProperty(t);return r?r.setValue(e):r=this.addPropertyWithValue(t,e),r},removeProperty:function(t){var e=this._removeObject(1,"_properties",t);return e&&this._hydratedPropertyCount--,e},removeAllProperties:function(t){var e=this._removeAllObjects(1,"_properties",t);return this._hydratedPropertyCount=0,e},toJSON:function(){return this.jCal},toString:function(){return e.stringify.component(this.jCal,this._designSet)}},t.fromString=function(r){return new t(e.parse.component(r))},t}(),e.Property=function(){var t=e.design;function r(e,r){this._parent=r||null,"string"==typeof e?(this.jCal=[e,{},t.defaultType],this.jCal[2]=this.getDefaultType()):this.jCal=e,this._updateType()}return r.prototype={get type(){return this.jCal[2]},get name(){return this.jCal[0]},get parent(){return this._parent},set parent(e){var r=!this._parent||e&&e._designSet!=this._parent._designSet;return this._parent=e,this.type==t.defaultType&&r&&(this.jCal[2]=this.getDefaultType(),this._updateType()),e},get _designSet(){return this.parent?this.parent._designSet:t.defaultSet},_updateType:function(){var t=this._designSet;this.type in t.value&&(t.value[this.type],"decorate"in t.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in t.property&&(this.isMultiValue="multiValue"in t.property[this.name],this.isStructuredValue="structuredValue"in t.property[this.name]))},_hydrateValue:function(t){return this._values&&this._values[t]?this._values[t]:this.jCal.length<=3+t?null:this.isDecorated?(this._values||(this._values=[]),this._values[t]=this._decorate(this.jCal[3+t])):this.jCal[3+t]},_decorate:function(t){return this._designSet.value[this.type].decorate(t,this)},_undecorate:function(t){return this._designSet.value[this.type].undecorate(t,this)},_setDecoratedValue:function(t,e){this._values||(this._values=[]),"object"==typeof t&&"icaltype"in t?(this.jCal[3+e]=this._undecorate(t),this._values[e]=t):(this.jCal[3+e]=t,this._values[e]=this._decorate(t))},getParameter:function(t){if(t in this.jCal[1])return this.jCal[1][t]},getFirstParameter:function(t){var e=this.getParameter(t);return Array.isArray(e)?e[0]:e},setParameter:function(t,e){var r=t.toLowerCase();"string"==typeof e&&r in this._designSet.param&&"multiValue"in this._designSet.param[r]&&(e=[e]),this.jCal[1][t]=e},removeParameter:function(t){delete this.jCal[1][t]},getDefaultType:function(){var e=this.jCal[0],r=this._designSet;if(e in r.property){var n=r.property[e];if("defaultType"in n)return n.defaultType}return t.defaultType},resetType:function(t){this.removeAllValues(),this.jCal[2]=t,this._updateType()},getFirstValue:function(){return this._hydrateValue(0)},getValues:function(){var t=this.jCal.length-3;if(t<1)return[];for(var e=0,r=[];e<t;e++)r[e]=this._hydrateValue(e);return r},removeAllValues:function(){this._values&&(this._values.length=0),this.jCal.length=3},setValues:function(t){if(!this.isMultiValue)throw new Error(this.name+": does not not support mulitValue.\noverride isMultiValue");var e=t.length,r=0;if(this.removeAllValues(),e>0&&"object"==typeof t[0]&&"icaltype"in t[0]&&this.resetType(t[0].icaltype),this.isDecorated)for(;r<e;r++)this._setDecoratedValue(t[r],r);else for(;r<e;r++)this.jCal[3+r]=t[r]},setValue:function(t){this.removeAllValues(),"object"==typeof t&&"icaltype"in t&&this.resetType(t.icaltype),this.isDecorated?this._setDecoratedValue(t,0):this.jCal[3]=t},toJSON:function(){return this.jCal},toICALString:function(){return e.stringify.property(this.jCal,this._designSet,!0)}},r.fromString=function(t,n){return new r(e.parse.property(t,n))},r}(),e.UtcOffset=function(){function t(t){this.fromData(t)}return t.prototype={hours:0,minutes:0,factor:1,icaltype:"utc-offset",clone:function(){return e.UtcOffset.fromSeconds(this.toSeconds())},fromData:function(t){if(t)for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._normalize()},fromSeconds:function(t){var r=Math.abs(t);return this.factor=t<0?-1:1,this.hours=e.helpers.trunc(r/3600),r-=3600*this.hours,this.minutes=e.helpers.trunc(r/60),this},toSeconds:function(){return this.factor*(60*this.minutes+3600*this.hours)},compare:function(t){var e=this.toSeconds(),r=t.toSeconds();return(e>r)-(r>e)},_normalize:function(){for(var t=this.toSeconds(),e=this.factor;t<-43200;)t+=97200;for(;t>50400;)t-=97200;this.fromSeconds(t),0==t&&(this.factor=e)},toICALString:function(){return e.design.icalendar.value["utc-offset"].toICAL(this.toString())},toString:function(){return(1==this.factor?"+":"-")+e.helpers.pad2(this.hours)+":"+e.helpers.pad2(this.minutes)}},t.fromString=function(t){var r={};return r.factor="+"===t[0]?1:-1,r.hours=e.helpers.strictParseInt(t.substr(1,2)),r.minutes=e.helpers.strictParseInt(t.substr(4,2)),new e.UtcOffset(r)},t.fromSeconds=function(e){var r=new t;return r.fromSeconds(e),r},t}(),e.Binary=function(){function t(t){this.value=t}return t.prototype={icaltype:"binary",decodeValue:function(){return this._b64_decode(this.value)},setEncodedValue:function(t){this.value=this._b64_encode(t)},_b64_encode:function(t){var e,r,n,i,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=0,u=0,l="",c=[];if(!t)return t;do{e=(a=t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++))>>18&63,r=a>>12&63,n=a>>6&63,i=63&a,c[u++]=s.charAt(e)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(o<t.length);l=c.join("");var d=t.length%3;return(d?l.slice(0,d-3):l)+"===".slice(d||3)},_b64_decode:function(t){var e,r,n,i,a,s,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,l=0,c=[];if(!t)return t;t+="";do{e=(s=o.indexOf(t.charAt(u++))<<18|o.indexOf(t.charAt(u++))<<12|(i=o.indexOf(t.charAt(u++)))<<6|(a=o.indexOf(t.charAt(u++))))>>16&255,r=s>>8&255,n=255&s,c[l++]=64==i?String.fromCharCode(e):64==a?String.fromCharCode(e,r):String.fromCharCode(e,r,n)}while(u<t.length);return c.join("")},toString:function(){return this.value}},t.fromString=function(e){return new t(e)},t}(),e.Period=function(t){if(this.wrappedJSObject=this,t&&"start"in t){if(t.start&&!(t.start instanceof e.Time))throw new TypeError(".start must be an instance of ICAL.Time");this.start=t.start}if(t&&t.end&&t.duration)throw new Error("cannot accept both end and duration");if(t&&"end"in t){if(t.end&&!(t.end instanceof e.Time))throw new TypeError(".end must be an instance of ICAL.Time");this.end=t.end}if(t&&"duration"in t){if(t.duration&&!(t.duration instanceof e.Duration))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=t.duration}},e.Period.prototype={start:null,end:null,duration:null,icalclass:"icalperiod",icaltype:"period",clone:function(){return e.Period.fromData({start:this.start?this.start.clone():null,end:this.end?this.end.clone():null,duration:this.duration?this.duration.clone():null})},getDuration:function(){return this.duration?this.duration:this.end.subtractDate(this.start)},getEnd:function(){if(this.end)return this.end;var t=this.start.clone();return t.addDuration(this.duration),t},toString:function(){return this.start+"/"+(this.end||this.duration)},toJSON:function(){return[this.start.toString(),(this.end||this.duration).toString()]},toICALString:function(){return this.start.toICALString()+"/"+(this.end||this.duration).toICALString()}},e.Period.fromString=function(t,r){var n=t.split("/");if(2!==n.length)throw new Error('Invalid string value: "'+t+'" must contain a "/" char.');var i={start:e.Time.fromDateTimeString(n[0],r)},a=n[1];return e.Duration.isValueString(a)?i.duration=e.Duration.fromString(a):i.end=e.Time.fromDateTimeString(a,r),new e.Period(i)},e.Period.fromData=function(t){return new e.Period(t)},e.Period.fromJSON=function(t,r,n){function i(t,r){return n?e.Time.fromString(t,r):e.Time.fromDateTimeString(t,r)}return e.Duration.isValueString(t[1])?e.Period.fromData({start:i(t[0],r),duration:e.Duration.fromString(t[1])}):e.Period.fromData({start:i(t[0],r),end:i(t[1],r)})},function(){var t=/([PDWHMTS]{1,1})/;function r(t,r,n){var i;switch(t){case"P":n.isNegative=!(!r||"-"!==r);break;case"D":i="days";break;case"W":i="weeks";break;case"H":i="hours";break;case"M":i="minutes";break;case"S":i="seconds";break;default:return 0}if(i){if(!r&&0!==r)throw new Error('invalid duration value: Missing number before "'+t+'"');var a=parseInt(r,10);if(e.helpers.isStrictlyNaN(a))throw new Error('invalid duration value: Invalid number "'+r+'" before "'+t+'"');n[i]=a}return 1}e.Duration=function(t){this.wrappedJSObject=this,this.fromData(t)},e.Duration.prototype={weeks:0,days:0,hours:0,minutes:0,seconds:0,isNegative:!1,icalclass:"icalduration",icaltype:"duration",clone:function(){return e.Duration.fromData(this)},toSeconds:function(){var t=this.seconds+60*this.minutes+3600*this.hours+86400*this.days+604800*this.weeks;return this.isNegative?-t:t},fromSeconds:function(t){var r=Math.abs(t);return this.isNegative=t<0,this.days=e.helpers.trunc(r/86400),this.days%7==0?(this.weeks=this.days/7,this.days=0):this.weeks=0,r-=86400*(this.days+7*this.weeks),this.hours=e.helpers.trunc(r/3600),r-=3600*this.hours,this.minutes=e.helpers.trunc(r/60),r-=60*this.minutes,this.seconds=r,this},fromData:function(t){var e=["weeks","days","hours","minutes","seconds","isNegative"];for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];this[n]=t&&n in t?t[n]:0}},reset:function(){this.isNegative=!1,this.weeks=0,this.days=0,this.hours=0,this.minutes=0,this.seconds=0},compare:function(t){var e=this.toSeconds(),r=t.toSeconds();return(e>r)-(e<r)},normalize:function(){this.fromSeconds(this.toSeconds())},toString:function(){if(0==this.toSeconds())return"PT0S";var t="";return this.isNegative&&(t+="-"),t+="P",this.weeks&&(t+=this.weeks+"W"),this.days&&(t+=this.days+"D"),(this.hours||this.minutes||this.seconds)&&(t+="T",this.hours&&(t+=this.hours+"H"),this.minutes&&(t+=this.minutes+"M"),this.seconds&&(t+=this.seconds+"S")),t},toICALString:function(){return this.toString()}},e.Duration.fromSeconds=function(t){return(new e.Duration).fromSeconds(t)},e.Duration.isValueString=function(t){return"P"===t[0]||"P"===t[1]},e.Duration.fromString=function(n){for(var i=0,a=Object.create(null),s=0;-1!==(i=n.search(t));){var o=n[i],u=n.substr(0,i);n=n.substr(i+1),s+=r(o,u,a)}if(s<2)throw new Error('invalid duration value: Not enough duration components in "'+n+'"');return new e.Duration(a)},e.Duration.fromData=function(t){return new e.Duration(t)}}(),r=["tzid","location","tznames","latitude","longitude"],e.Timezone=function(t){this.wrappedJSObject=this,this.fromData(t)},e.Timezone.prototype={tzid:"",location:"",tznames:"",latitude:0,longitude:0,component:null,expandedUntilYear:0,icalclass:"icaltimezone",fromData:function(t){if(this.expandedUntilYear=0,this.changes=[],t instanceof e.Component)this.component=t;else{if(t&&"component"in t)if("string"==typeof t.component){var n=e.parse(t.component);this.component=new e.Component(n)}else t.component instanceof e.Component?this.component=t.component:this.component=null;for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];t&&a in t&&(this[a]=t[a])}}return this.component instanceof e.Component&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this},utcOffset:function(t){if(this==e.Timezone.utcTimezone||this==e.Timezone.localTimezone||(this._ensureCoverage(t.year),!this.changes.length))return 0;for(var r={year:t.year,month:t.month,day:t.day,hour:t.hour,minute:t.minute,second:t.second},n=this._findNearbyChange(r),i=-1,a=1;;){var s=e.helpers.clone(this.changes[n],!0);if(s.utcOffset<s.prevUtcOffset?e.Timezone.adjust_change(s,0,0,0,s.utcOffset):e.Timezone.adjust_change(s,0,0,0,s.prevUtcOffset),e.Timezone._compare_change_fn(r,s)>=0?i=n:a=-1,-1==a&&-1!=i)break;if((n+=a)<0)return 0;if(n>=this.changes.length)break}var o=this.changes[i];if(o.utcOffset-o.prevUtcOffset<0&&i>0){var u=e.helpers.clone(o,!0);if(e.Timezone.adjust_change(u,0,0,0,u.prevUtcOffset),e.Timezone._compare_change_fn(r,u)<0){var l=this.changes[i-1];0!=o.is_daylight&&0==l.is_daylight&&(o=l)}}return o.utcOffset},_findNearbyChange:function(t){var r=e.helpers.binsearchInsert(this.changes,t,e.Timezone._compare_change_fn);return r>=this.changes.length?this.changes.length-1:r},_ensureCoverage:function(t){if(-1==e.Timezone._minimumExpansionYear){var r=e.Time.now();e.Timezone._minimumExpansionYear=r.year}var n=t;if(n<e.Timezone._minimumExpansionYear&&(n=e.Timezone._minimumExpansionYear),(n+=e.Timezone.EXTRA_COVERAGE)>e.Timezone.MAX_YEAR&&(n=e.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYear<t){for(var i=this.component.getAllSubcomponents(),a=i.length,s=0;s<a;s++)this._expandComponent(i[s],n,this.changes);this.changes.sort(e.Timezone._compare_change_fn),this.expandedUntilYear=n}},_expandComponent:function(t,r,n){if(!t.hasProperty("dtstart")||!t.hasProperty("tzoffsetto")||!t.hasProperty("tzoffsetfrom"))return null;var i,a=t.getFirstProperty("dtstart").getFirstValue();function s(t){return t.factor*(3600*t.hours+60*t.minutes)}function o(){var e={};return e.is_daylight="daylight"==t.name,e.utcOffset=s(t.getFirstProperty("tzoffsetto").getFirstValue()),e.prevUtcOffset=s(t.getFirstProperty("tzoffsetfrom").getFirstValue()),e}if(t.hasProperty("rrule")||t.hasProperty("rdate")){var u=t.getAllProperties("rdate");for(var l in u)if(u.hasOwnProperty(l)){var c=u[l].getFirstValue();(i=o()).year=c.year,i.month=c.month,i.day=c.day,c.isDate?(i.hour=a.hour,i.minute=a.minute,i.second=a.second,a.zone!=e.Timezone.utcTimezone&&e.Timezone.adjust_change(i,0,0,0,-i.prevUtcOffset)):(i.hour=c.hour,i.minute=c.minute,i.second=c.second,c.zone!=e.Timezone.utcTimezone&&e.Timezone.adjust_change(i,0,0,0,-i.prevUtcOffset)),n.push(i)}var d=t.getFirstProperty("rrule");if(d){d=d.getFirstValue(),i=o(),d.until&&d.until.zone==e.Timezone.utcTimezone&&(d.until.adjust(0,0,0,i.prevUtcOffset),d.until.zone=e.Timezone.localTimezone);for(var f,h=d.iterator(a);(f=h.next())&&(i=o(),!(f.year>r)&&f);)i.year=f.year,i.month=f.month,i.day=f.day,i.hour=f.hour,i.minute=f.minute,i.second=f.second,i.isDate=f.isDate,e.Timezone.adjust_change(i,0,0,0,-i.prevUtcOffset),n.push(i)}}else(i=o()).year=a.year,i.month=a.month,i.day=a.day,i.hour=a.hour,i.minute=a.minute,i.second=a.second,e.Timezone.adjust_change(i,0,0,0,-i.prevUtcOffset),n.push(i);return n},toString:function(){return this.tznames?this.tznames:this.tzid}},e.Timezone._compare_change_fn=function(t,e){return t.year<e.year?-1:t.year>e.year?1:t.month<e.month?-1:t.month>e.month?1:t.day<e.day?-1:t.day>e.day?1:t.hour<e.hour?-1:t.hour>e.hour?1:t.minute<e.minute?-1:t.minute>e.minute?1:t.second<e.second?-1:t.second>e.second?1:0},e.Timezone.convert_time=function(t,r,n){if(t.isDate||r.tzid==n.tzid||r==e.Timezone.localTimezone||n==e.Timezone.localTimezone)return t.zone=n,t;var i=r.utcOffset(t);return t.adjust(0,0,0,-i),i=n.utcOffset(t),t.adjust(0,0,0,i),null},e.Timezone.fromData=function(t){return(new e.Timezone).fromData(t)},e.Timezone.utcTimezone=e.Timezone.fromData({tzid:"UTC"}),e.Timezone.localTimezone=e.Timezone.fromData({tzid:"floating"}),e.Timezone.adjust_change=function(t,r,n,i,a){return e.Time.prototype.adjust.call(t,r,n,i,a,t)},e.Timezone._minimumExpansionYear=-1,e.Timezone.MAX_YEAR=2035,e.Timezone.EXTRA_COVERAGE=5,e.TimezoneService=function(){var t,r={get count(){return Object.keys(t).length},reset:function(){t=Object.create(null);var r=e.Timezone.utcTimezone;t.Z=r,t.UTC=r,t.GMT=r},has:function(e){return!!t[e]},get:function(e){return t[e]},register:function(r,n){if(r instanceof e.Component&&"vtimezone"===r.name&&(r=(n=new e.Timezone(r)).tzid),!(n instanceof e.Timezone))throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component");t[r]=n},remove:function(e){return delete t[e]}};return r.reset(),r}(),e.Time=function(t,e){this.wrappedJSObject=this;var r=this._time=Object.create(null);r.year=0,r.month=1,r.day=1,r.hour=0,r.minute=0,r.second=0,r.isDate=!1,this.fromData(t,e)},e.Time._dowCache={},e.Time._wnCache={},e.Time.prototype={icalclass:"icaltime",_cachedUnixTime:null,get icaltype(){return this.isDate?"date":"date-time"},zone:null,_pendingNormalization:!1,clone:function(){return new e.Time(this._time,this.zone)},reset:function(){this.fromData(e.Time.epochTime),this.zone=e.Timezone.utcTimezone},resetTo:function(t,e,r,n,i,a,s){this.fromData({year:t,month:e,day:r,hour:n,minute:i,second:a,zone:s})},fromJSDate:function(t,r){return t?r?(this.zone=e.Timezone.utcTimezone,this.year=t.getUTCFullYear(),this.month=t.getUTCMonth()+1,this.day=t.getUTCDate(),this.hour=t.getUTCHours(),this.minute=t.getUTCMinutes(),this.second=t.getUTCSeconds()):(this.zone=e.Timezone.localTimezone,this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate(),this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds()):this.reset(),this._cachedUnixTime=null,this},fromData:function(t,r){if(t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if("icaltype"===n)continue;this[n]=t[n]}if(r&&(this.zone=r),t&&!("isDate"in t)?this.isDate=!("hour"in t):t&&"isDate"in t&&(this.isDate=t.isDate),t&&"timezone"in t){var i=e.TimezoneService.get(t.timezone);this.zone=i||e.Timezone.localTimezone}return t&&"zone"in t&&(this.zone=t.zone),this.zone||(this.zone=e.Timezone.localTimezone),this._cachedUnixTime=null,this},dayOfWeek:function(t){var r=t||e.Time.SUNDAY,n=(this.year<<12)+(this.month<<8)+(this.day<<3)+r;if(n in e.Time._dowCache)return e.Time._dowCache[n];var i=this.day,a=this.month+(this.month<3?12:0),s=this.year-(this.month<3?1:0),o=i+s+e.helpers.trunc(26*(a+1)/10)+e.helpers.trunc(s/4);return o=((o+=6*e.helpers.trunc(s/100)+e.helpers.trunc(s/400))+7-r)%7+1,e.Time._dowCache[n]=o,o},dayOfYear:function(){var t=e.Time.isLeapYear(this.year)?1:0;return e.Time.daysInYearPassedMonth[t][this.month-1]+this.day},startOfWeek:function(t){var r=t||e.Time.SUNDAY,n=this.clone();return n.day-=(this.dayOfWeek()+7-r)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},endOfWeek:function(t){var r=t||e.Time.SUNDAY,n=this.clone();return n.day+=(7-this.dayOfWeek()+r-e.Time.SUNDAY)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},startOfMonth:function(){var t=this.clone();return t.day=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},endOfMonth:function(){var t=this.clone();return t.day=e.Time.daysInMonth(t.month,t.year),t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},startOfYear:function(){var t=this.clone();return t.day=1,t.month=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},endOfYear:function(){var t=this.clone();return t.day=31,t.month=12,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},startDoyWeek:function(t){var r=t||e.Time.SUNDAY,n=this.dayOfWeek()-r;return n<0&&(n+=7),this.dayOfYear()-n},getDominicalLetter:function(){return e.Time.getDominicalLetter(this.year)},nthWeekDay:function(t,r){var n,i=e.Time.daysInMonth(this.month,this.year),a=r,s=0,o=this.clone();if(a>=0){o.day=1,0!=a&&a--,s=o.day;var u=t-o.dayOfWeek();u<0&&(u+=7),s+=u,s-=t,n=t}else o.day=i,a++,(n=o.dayOfWeek()-t)<0&&(n+=7),n=i-n;return s+(n+7*a)},isNthWeekDay:function(t,e){var r=this.dayOfWeek();return 0===e&&r===t||this.nthWeekDay(t,e)===this.day},weekNumber:function(t){var r=(this.year<<12)+(this.month<<8)+(this.day<<3)+t;if(r in e.Time._wnCache)return e.Time._wnCache[r];var n,i=this.clone();i.isDate=!0;var a=this.year;12==i.month&&i.day>25?(n=e.Time.weekOneStarts(a+1,t),i.compare(n)<0?n=e.Time.weekOneStarts(a,t):a++):(n=e.Time.weekOneStarts(a,t),i.compare(n)<0&&(n=e.Time.weekOneStarts(--a,t)));var s=i.subtractDate(n).toSeconds()/86400,o=e.helpers.trunc(s/7)+1;return e.Time._wnCache[r]=o,o},addDuration:function(t){var e=t.isNegative?-1:1,r=this.second,n=this.minute,i=this.hour,a=this.day;r+=e*t.seconds,n+=e*t.minutes,i+=e*t.hours,a+=e*t.days,a+=7*e*t.weeks,this.second=r,this.minute=n,this.hour=i,this.day=a,this._cachedUnixTime=null},subtractDate:function(t){var r=this.toUnixTime()+this.utcOffset(),n=t.toUnixTime()+t.utcOffset();return e.Duration.fromSeconds(r-n)},subtractDateTz:function(t){var r=this.toUnixTime(),n=t.toUnixTime();return e.Duration.fromSeconds(r-n)},compare:function(t){var e=this.toUnixTime(),r=t.toUnixTime();return e>r?1:r>e?-1:0},compareDateOnlyTz:function(t,r){function n(t){return e.Time._cmp_attr(i,a,t)}var i=this.convertToZone(r),a=t.convertToZone(r),s=0;return 0!=(s=n("year"))||0!=(s=n("month"))||(s=n("day")),s},convertToZone:function(t){var r=this.clone(),n=this.zone.tzid==t.tzid;return!this.isDate&&!n&&e.Timezone.convert_time(r,this.zone,t),r.zone=t,r},utcOffset:function(){return this.zone==e.Timezone.localTimezone||this.zone==e.Timezone.utcTimezone?0:this.zone.utcOffset(this)},toICALString:function(){var t=this.toString();return t.length>10?e.design.icalendar.value["date-time"].toICAL(t):e.design.icalendar.value.date.toICAL(t)},toString:function(){var t=this.year+"-"+e.helpers.pad2(this.month)+"-"+e.helpers.pad2(this.day);return this.isDate||(t+="T"+e.helpers.pad2(this.hour)+":"+e.helpers.pad2(this.minute)+":"+e.helpers.pad2(this.second),this.zone===e.Timezone.utcTimezone&&(t+="Z")),t},toJSDate:function(){return this.zone==e.Timezone.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(1e3*this.toUnixTime())},_normalize:function(){return this._time.isDate,this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this},adjust:function(t,r,n,i,a){var s,o,u,l,c,d,f,h=0,p=0,m=a||this._time;if(m.isDate||(u=m.second+i,m.second=u%60,s=e.helpers.trunc(u/60),m.second<0&&(m.second+=60,s--),l=m.minute+n+s,m.minute=l%60,o=e.helpers.trunc(l/60),m.minute<0&&(m.minute+=60,o--),c=m.hour+r+o,m.hour=c%24,h=e.helpers.trunc(c/24),m.hour<0&&(m.hour+=24,h--)),m.month>12?p=e.helpers.trunc((m.month-1)/12):m.month<1&&(p=e.helpers.trunc(m.month/12)-1),m.year+=p,m.month-=12*p,(d=m.day+t+h)>0)for(;!(d<=(f=e.Time.daysInMonth(m.month,m.year)));)m.month++,m.month>12&&(m.year++,m.month=1),d-=f;else for(;d<=0;)1==m.month?(m.year--,m.month=12):m.month--,d+=e.Time.daysInMonth(m.month,m.year);return m.day=d,this._cachedUnixTime=null,this},fromUnixTime:function(t){this.zone=e.Timezone.utcTimezone;var r=e.Time.epochTime.clone();r.adjust(0,0,0,t),this.year=r.year,this.month=r.month,this.day=r.day,this.hour=r.hour,this.minute=r.minute,this.second=Math.floor(r.second),this._cachedUnixTime=null},toUnixTime:function(){if(null!==this._cachedUnixTime)return this._cachedUnixTime;var t=this.utcOffset(),e=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-t);return this._cachedUnixTime=e/1e3,this._cachedUnixTime},toJSON:function(){for(var t,e=["year","month","day","hour","minute","second","isDate"],r=Object.create(null),n=0,i=e.length;n<i;n++)r[t=e[n]]=this[t];return this.zone&&(r.timezone=this.zone.tzid),r}},function(){function t(t){Object.defineProperty(e.Time.prototype,t,{get:function(){return this._pendingNormalization&&(this._normalize(),this._pendingNormalization=!1),this._time[t]},set:function(e){return"isDate"===t&&e&&!this._time.isDate&&this.adjust(0,0,0,0),this._cachedUnixTime=null,this._pendingNormalization=!0,this._time[t]=e,e}})}"defineProperty"in Object&&(t("year"),t("month"),t("day"),t("hour"),t("minute"),t("second"),t("isDate"))}(),e.Time.daysInMonth=function(t,r){var n=30;return t<1||t>12||(n=[0,31,28,31,30,31,30,31,31,30,31,30,31][t],2==t&&(n+=e.Time.isLeapYear(r))),n},e.Time.isLeapYear=function(t){return t<=1752?t%4==0:t%4==0&&t%100!=0||t%400==0},e.Time.fromDayOfYear=function(t,r){var n=r,i=t,a=new e.Time;a.auto_normalize=!1;var s=e.Time.isLeapYear(n)?1:0;if(i<1)return n--,s=e.Time.isLeapYear(n)?1:0,i+=e.Time.daysInYearPassedMonth[s][12],e.Time.fromDayOfYear(i,n);if(i>e.Time.daysInYearPassedMonth[s][12])return s=e.Time.isLeapYear(n)?1:0,i-=e.Time.daysInYearPassedMonth[s][12],n++,e.Time.fromDayOfYear(i,n);a.year=n,a.isDate=!0;for(var o=11;o>=0;o--)if(i>e.Time.daysInYearPassedMonth[s][o]){a.month=o+1,a.day=i-e.Time.daysInYearPassedMonth[s][o];break}return a.auto_normalize=!0,a},e.Time.fromStringv2=function(t){return new e.Time({year:parseInt(t.substr(0,4),10),month:parseInt(t.substr(5,2),10),day:parseInt(t.substr(8,2),10),isDate:!0})},e.Time.fromDateString=function(t){return new e.Time({year:e.helpers.strictParseInt(t.substr(0,4)),month:e.helpers.strictParseInt(t.substr(5,2)),day:e.helpers.strictParseInt(t.substr(8,2)),isDate:!0})},e.Time.fromDateTimeString=function(t,r){if(t.length<19)throw new Error('invalid date-time value: "'+t+'"');var n;return t[19]&&"Z"===t[19]?n="Z":r&&(n=r.getParameter("tzid")),new e.Time({year:e.helpers.strictParseInt(t.substr(0,4)),month:e.helpers.strictParseInt(t.substr(5,2)),day:e.helpers.strictParseInt(t.substr(8,2)),hour:e.helpers.strictParseInt(t.substr(11,2)),minute:e.helpers.strictParseInt(t.substr(14,2)),second:e.helpers.strictParseInt(t.substr(17,2)),timezone:n})},e.Time.fromString=function(t,r){return t.length>10?e.Time.fromDateTimeString(t,r):e.Time.fromDateString(t)},e.Time.fromJSDate=function(t,r){return(new e.Time).fromJSDate(t,r)},e.Time.fromData=function(t,r){return(new e.Time).fromData(t,r)},e.Time.now=function(){return e.Time.fromJSDate(new Date,!1)},e.Time.weekOneStarts=function(t,r){var n=e.Time.fromData({year:t,month:1,day:1,isDate:!0}),i=n.dayOfWeek(),a=r||e.Time.DEFAULT_WEEK_START;return i>e.Time.THURSDAY&&(n.day+=7),a>e.Time.THURSDAY&&(n.day-=7),n.day-=i-a,n},e.Time.getDominicalLetter=function(t){var r="GFEDCBA",n=(t+(t/4|0)+(t/400|0)-(t/100|0)-1)%7;return e.Time.isLeapYear(t)?r[(n+6)%7]+r[n]:r[n]},e.Time.epochTime=e.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"}),e.Time._cmp_attr=function(t,e,r){return t[r]>e[r]?1:t[r]<e[r]?-1:0},e.Time.daysInYearPassedMonth=[[0,31,59,90,120,151,181,212,243,273,304,334,365],[0,31,60,91,121,152,182,213,244,274,305,335,366]],e.Time.SUNDAY=1,e.Time.MONDAY=2,e.Time.TUESDAY=3,e.Time.WEDNESDAY=4,e.Time.THURSDAY=5,e.Time.FRIDAY=6,e.Time.SATURDAY=7,e.Time.DEFAULT_WEEK_START=e.Time.MONDAY,e.VCardTime=function(t,e,r){this.wrappedJSObject=this;var n=this._time=Object.create(null);n.year=null,n.month=null,n.day=null,n.hour=null,n.minute=null,n.second=null,this.icaltype=r||"date-and-or-time",this.fromData(t,e)},e.helpers.inherits(e.Time,e.VCardTime,{icalclass:"vcardtime",icaltype:"date-and-or-time",zone:null,clone:function(){return new e.VCardTime(this._time,this.zone,this.icaltype)},_normalize:function(){return this},utcOffset:function(){return this.zone instanceof e.UtcOffset?this.zone.toSeconds():e.Time.prototype.utcOffset.apply(this,arguments)},toICALString:function(){return e.design.vcard.value[this.icaltype].toICAL(this.toString())},toString:function(){var t,r=e.helpers.pad2,n=this.year,i=this.month,a=this.day,s=this.hour,o=this.minute,u=this.second,l=null!==i,c=null!==a,d=null!==s,f=null!==o,h=null!==u,p=(null!==n?r(n)+(l||c?"-":""):l||c?"--":"")+(l?r(i):"")+(c?"-"+r(a):""),m=(d?r(s):"-")+(d&&f?":":"")+(f?r(o):"")+(d||f?"":"-")+(f&&h?":":"")+(h?r(u):"");switch(t=this.zone===e.Timezone.utcTimezone?"Z":this.zone instanceof e.UtcOffset?this.zone.toString():this.zone===e.Timezone.localTimezone?"":this.zone instanceof e.Timezone?e.UtcOffset.fromSeconds(this.zone.utcOffset(this)).toString():"",this.icaltype){case"time":return m+t;case"date-and-or-time":case"date-time":return p+("--"==m?"":"T"+m+t);case"date":return p}return null}}),e.VCardTime.fromDateAndOrTimeString=function(t,r){function n(t,r,n){return t?e.helpers.strictParseInt(t.substr(r,n)):null}var i=t.split("T"),a=i[0],s=i[1],o=s?e.design.vcard.value.time._splitZone(s):[],u=o[0],l=o[1];e.helpers.strictParseInt;var c=a?a.length:0,d=l?l.length:0,f=a&&"-"==a[0]&&"-"==a[1],h=l&&"-"==l[0],p={year:f?null:n(a,0,4),month:!f||4!=c&&7!=c?7==c||10==c?n(a,5,2):null:n(a,2,2),day:5==c?n(a,3,2):7==c&&f?n(a,5,2):10==c?n(a,8,2):null,hour:h?null:n(l,0,2),minute:h&&3==d?n(l,1,2):d>4?n(l,h?1:3,2):null,second:4==d?n(l,2,2):6==d?n(l,4,2):8==d?n(l,6,2):null};return u="Z"==u?e.Timezone.utcTimezone:u&&":"==u[3]?e.UtcOffset.fromString(u):null,new e.VCardTime(p,u,r)},function(){var t={SU:e.Time.SUNDAY,MO:e.Time.MONDAY,TU:e.Time.TUESDAY,WE:e.Time.WEDNESDAY,TH:e.Time.THURSDAY,FR:e.Time.FRIDAY,SA:e.Time.SATURDAY},r={};for(var n in t)t.hasOwnProperty(n)&&(r[t[n]]=n);function i(t,r,n,i){var a=i;if("+"===i[0]&&(a=i.substr(1)),a=e.helpers.strictParseInt(a),void 0!==r&&i<r)throw new Error(t+': invalid value "'+i+'" must be > '+r);if(void 0!==n&&i>n)throw new Error(t+': invalid value "'+i+'" must be < '+r);return a}e.Recur=function(t){this.wrappedJSObject=this,this.parts={},t&&"object"==typeof t&&this.fromData(t)},e.Recur.prototype={parts:null,interval:1,wkst:e.Time.MONDAY,until:null,count:null,freq:null,icalclass:"icalrecur",icaltype:"recur",iterator:function(t){return new e.RecurIterator({rule:this,dtstart:t})},clone:function(){return new e.Recur(this.toJSON())},isFinite:function(){return!(!this.count&&!this.until)},isByCount:function(){return!(!this.count||this.until)},addComponent:function(t,e){var r=t.toUpperCase();r in this.parts?this.parts[r].push(e):this.parts[r]=[e]},setComponent:function(t,e){this.parts[t.toUpperCase()]=e.slice()},getComponent:function(t){var e=t.toUpperCase();return e in this.parts?this.parts[e].slice():[]},getNextOccurrence:function(t,e){var r,n=this.iterator(t);do{r=n.next()}while(r&&r.compare(e)<=0);return r&&e.zone&&(r.zone=e.zone),r},fromData:function(t){for(var r in t){var n=r.toUpperCase();n in l?Array.isArray(t[r])?this.parts[n]=t[r]:this.parts[n]=[t[r]]:this[r]=t[r]}this.interval&&"number"!=typeof this.interval&&u.INTERVAL(this.interval,this),this.wkst&&"number"!=typeof this.wkst&&(this.wkst=e.Recur.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof e.Time)&&(this.until=e.Time.fromString(this.until))},toJSON:function(){var t=Object.create(null);for(var r in t.freq=this.freq,this.count&&(t.count=this.count),this.interval>1&&(t.interval=this.interval),this.parts)if(this.parts.hasOwnProperty(r)){var n=this.parts[r];Array.isArray(n)&&1==n.length?t[r.toLowerCase()]=n[0]:t[r.toLowerCase()]=e.helpers.clone(this.parts[r])}return this.until&&(t.until=this.until.toString()),"wkst"in this&&this.wkst!==e.Time.DEFAULT_WEEK_START&&(t.wkst=e.Recur.numericDayToIcalDay(this.wkst)),t},toString:function(){var t="FREQ="+this.freq;for(var r in this.count&&(t+=";COUNT="+this.count),this.interval>1&&(t+=";INTERVAL="+this.interval),this.parts)this.parts.hasOwnProperty(r)&&(t+=";"+r+"="+this.parts[r]);return this.until&&(t+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==e.Time.DEFAULT_WEEK_START&&(t+=";WKST="+e.Recur.numericDayToIcalDay(this.wkst)),t}},e.Recur.icalDayToNumericDay=function(r,n){var i=n||e.Time.SUNDAY;return(t[r]-i+7)%7+1},e.Recur.numericDayToIcalDay=function(t,n){var i=t+(n||e.Time.SUNDAY)-e.Time.SUNDAY;return i>7&&(i-=7),r[i]};var a=/^(SU|MO|TU|WE|TH|FR|SA)$/,s=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,o=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],u={FREQ:function(t,e,r){if(-1===o.indexOf(t))throw new Error('invalid frequency "'+t+'" expected: "'+o.join(", ")+'"');e.freq=t},COUNT:function(t,r,n){r.count=e.helpers.strictParseInt(t)},INTERVAL:function(t,r,n){r.interval=e.helpers.strictParseInt(t),r.interval<1&&(r.interval=1)},UNTIL:function(t,r,n){t.length>10?r.until=e.design.icalendar.value["date-time"].fromICAL(t):r.until=e.design.icalendar.value.date.fromICAL(t),n||(r.until=e.Time.fromString(r.until))},WKST:function(t,r,n){if(!a.test(t))throw new Error('invalid WKST value "'+t+'"');r.wkst=e.Recur.icalDayToNumericDay(t)}},l={BYSECOND:i.bind(this,"BYSECOND",0,60),BYMINUTE:i.bind(this,"BYMINUTE",0,59),BYHOUR:i.bind(this,"BYHOUR",0,23),BYDAY:function(t){if(s.test(t))return t;throw new Error('invalid BYDAY value "'+t+'"')},BYMONTHDAY:i.bind(this,"BYMONTHDAY",-31,31),BYYEARDAY:i.bind(this,"BYYEARDAY",-366,366),BYWEEKNO:i.bind(this,"BYWEEKNO",-53,53),BYMONTH:i.bind(this,"BYMONTH",1,12),BYSETPOS:i.bind(this,"BYSETPOS",-366,366)};e.Recur.fromString=function(t){var r=e.Recur._stringToData(t,!1);return new e.Recur(r)},e.Recur.fromData=function(t){return new e.Recur(t)},e.Recur._stringToData=function(t,e){for(var r=Object.create(null),n=t.split(";"),i=n.length,a=0;a<i;a++){var s=n[a].split("="),o=s[0].toUpperCase(),c=s[0].toLowerCase(),d=e?c:o,f=s[1];if(o in l){for(var h=f.split(","),p=0,m=h.length;p<m;p++)h[p]=l[o](h[p]);r[d]=1==h.length?h[0]:h}else o in u?u[o](f,r,e):r[c]=f}return r}}(),e.RecurIterator=function(){function t(t){this.fromData(t)}return t.prototype={completed:!1,rule:null,dtstart:null,last:null,occurrence_number:0,by_indices:null,initialized:!1,by_data:null,days:null,days_index:0,fromData:function(t){if(this.rule=e.helpers.formatClassType(t.rule,e.Recur),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=e.helpers.formatClassType(t.dtstart,e.Time),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");t.by_data?this.by_data=t.by_data:this.by_data=e.helpers.clone(this.rule.parts,!0),t.occurrence_number&&(this.occurrence_number=t.occurrence_number),this.days=t.days||[],t.last&&(this.last=e.helpers.formatClassType(t.last,e.Time)),this.by_indices=t.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=t.initialized||!1,this.initialized||this.init()},init:function(){this.initialized=!0,this.last=this.dtstart.clone();var t=this.by_data;if("BYDAY"in t&&this.sort_byday_rules(t.BYDAY),"BYYEARDAY"in t&&("BYMONTH"in t||"BYWEEKNO"in t||"BYMONTHDAY"in t||"BYDAY"in t))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in t&&"BYMONTHDAY"in t)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if("MONTHLY"==this.rule.freq&&("BYYEARDAY"in t||"BYWEEKNO"in t))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if("WEEKLY"==this.rule.freq&&("BYYEARDAY"in t||"BYMONTHDAY"in t))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if("YEARLY"!=this.rule.freq&&"BYYEARDAY"in t)throw new Error("BYYEARDAY may only appear in YEARLY rules");if(this.last.second=this.setup_defaults("BYSECOND","SECONDLY",this.dtstart.second),this.last.minute=this.setup_defaults("BYMINUTE","MINUTELY",this.dtstart.minute),this.last.hour=this.setup_defaults("BYHOUR","HOURLY",this.dtstart.hour),this.last.day=this.setup_defaults("BYMONTHDAY","DAILY",this.dtstart.day),this.last.month=this.setup_defaults("BYMONTH","MONTHLY",this.dtstart.month),"WEEKLY"==this.rule.freq)if("BYDAY"in t){var r=(l=this.ruleDayOfWeek(t.BYDAY[0],this.rule.wkst))[0],n=(c=l[1])-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)<c&&n>=0||n<0)&&(this.last.day+=n)}else{var i=e.Recur.numericDayToIcalDay(this.dtstart.dayOfWeek());t.BYDAY=[i]}if("YEARLY"==this.rule.freq){for(;this.expand_year_days(this.last.year),!(this.days.length>0);)this.increment_year(this.rule.interval);this._nextByYearDay()}if("MONTHLY"==this.rule.freq&&this.has_by_data("BYDAY")){var a=null,s=this.last.clone(),o=e.Time.daysInMonth(this.last.month,this.last.year);for(var u in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(u)){this.last=s.clone(),r=(l=this.ruleDayOfWeek(this.by_data.BYDAY[u]))[0];var l,c=l[1],d=this.last.nthWeekDay(c,r);if(r>=6||r<=-6)throw new Error("Malformed values in BYDAY part");if(d>o||d<=0){if(a&&a.month==s.month)continue;for(;d>o||d<=0;)this.increment_month(),o=e.Time.daysInMonth(this.last.month,this.last.year),d=this.last.nthWeekDay(c,r)}this.last.day=d,(!a||this.last.compare(a)<0)&&(a=this.last.clone())}if(this.last=a.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>o||0==this.last.day)throw new Error("Malformed values in BYDAY part")}else this.has_by_data("BYMONTHDAY")&&this.last.day<0&&(o=e.Time.daysInMonth(this.last.month,this.last.year),this.last.day=o+this.last.day+1)},next:function(){var t,e=this.last?this.last.clone():null;if(this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)return this.completed=!0,null;if(0==this.occurrence_number&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;do{switch(t=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":t=this.next_month();break;case"YEARLY":this.next_year();break;default:return null}}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!t);if(0==this.last.compare(e))throw new Error("Same occurrence found twice, protecting you from death by recursion");return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)},next_second:function(){return this.next_generic("BYSECOND","SECONDLY","second","minute")},increment_second:function(t){return this.increment_generic(t,"second",60,"minute")},next_minute:function(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")},increment_minute:function(t){return this.increment_generic(t,"minute",60,"hour")},next_hour:function(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")},increment_hour:function(t){this.increment_generic(t,"hour",24,"monthday")},next_day:function(){this.by_data;var t="DAILY"==this.rule.freq;return 0==this.next_hour()||(t?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0},next_week:function(){var t=0;if(0==this.next_weekday_by_week())return t;if(this.has_by_data("BYWEEKNO")){++this.by_indices.BYWEEKNO,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,t=1),this.last.month=1,this.last.day=1;var e=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*e,t&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return t},normalizeByMonthDayRules:function(t,r,n){for(var i,a=e.Time.daysInMonth(r,t),s=[],o=0,u=n.length;o<u;o++)if(i=n[o],!(Math.abs(i)>a)){if(i<0)i=a+(i+1);else if(0===i)continue;-1===s.indexOf(i)&&s.push(i)}return s.sort((function(t,e){return t-e}))},_byDayAndMonthDay:function(t){var r,n,i,a,s=this.by_data.BYDAY,o=0,u=s.length,l=0,c=this,d=this.last.day;function f(){for(a=e.Time.daysInMonth(c.last.month,c.last.year),r=c.normalizeByMonthDayRules(c.last.year,c.last.month,c.by_data.BYMONTHDAY),i=r.length;r[o]<=d&&(!t||r[o]!=d)&&o<i-1;)o++}function h(){d=0,c.increment_month(),o=0,f()}f(),t&&(d-=1);for(var p=48;!l&&p;)if(p--,(n=d+1)>a)h();else{var m=r[o++];if(m>=n){d=m;for(var y=0;y<u;y++){var v=this.ruleDayOfWeek(s[y]),T=v[0],g=v[1];if(this.last.day=d,this.last.isNthWeekDay(g,T)){l=1;break}}l||o!==i||h()}else h()}if(p<=0)throw new Error("Malformed values in BYDAY combined with BYMONTHDAY parts");return l},next_month:function(){this.rule.freq;var t=1;if(0==this.next_hour())return t;if(this.has_by_data("BYDAY")&&this.has_by_data("BYMONTHDAY"))t=this._byDayAndMonthDay();else if(this.has_by_data("BYDAY")){var r=e.Time.daysInMonth(this.last.month,this.last.year),n=0,i=0;if(this.has_by_data("BYSETPOS")){for(var a=this.last.day,s=1;s<=r;s++)this.last.day=s,this.is_day_in_byday(this.last)&&(i++,s<=a&&n++);this.last.day=a}for(t=0,s=this.last.day+1;s<=r;s++)if(this.last.day=s,this.is_day_in_byday(this.last)&&(!this.has_by_data("BYSETPOS")||this.check_set_position(++n)||this.check_set_position(n-i-1))){t=1;break}s>r&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(t=1):t=0)}else this.has_by_data("BYMONTHDAY")?(this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month()),r=e.Time.daysInMonth(this.last.month,this.last.year),(s=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY])<0&&(s=r+s+1),s>r?(this.last.day=1,t=this.is_day_in_byday(this.last)):this.last.day=s):(this.increment_month(),r=e.Time.daysInMonth(this.last.month,this.last.year),this.by_data.BYMONTHDAY[0]>r?t=0:this.last.day=this.by_data.BYMONTHDAY[0]);return t},next_weekday_by_week:function(){var t=0;if(0==this.next_hour())return t;if(!this.has_by_data("BYDAY"))return 1;for(;;){var r=new e.Time;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,t=1);var n=this.by_data.BYDAY[this.by_indices.BYDAY],i=this.ruleDayOfWeek(n)[1];(i-=this.rule.wkst)<0&&(i+=7),r.year=this.last.year,r.month=this.last.month,r.day=this.last.day;var a=r.startDoyWeek(this.rule.wkst);if(!(i+a<1)||t){var s=e.Time.fromDayOfYear(a+i,this.last.year);return this.last.year=s.year,this.last.month=s.month,this.last.day=s.day,t}}},next_year:function(){if(0==this.next_hour())return 0;if(++this.days_index==this.days.length){this.days_index=0;do{this.increment_year(this.rule.interval),this.expand_year_days(this.last.year)}while(0==this.days.length)}return this._nextByYearDay(),1},_nextByYearDay:function(){var t=this.days[this.days_index],r=this.last.year;t<1&&(t+=1,r+=1);var n=e.Time.fromDayOfYear(t,r);this.last.day=n.day,this.last.month=n.month},ruleDayOfWeek:function(t,r){var n=t.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);return n?[parseInt(n[1]||0,10),t=e.Recur.icalDayToNumericDay(n[2],r)]:[0,0]},next_generic:function(t,e,r,n,i){var a=t in this.by_data,s=this.rule.freq==e,o=0;if(i&&0==this[i]())return o;if(a){this.by_indices[t]++,this.by_indices[t];var u=this.by_data[t];this.by_indices[t]==u.length&&(this.by_indices[t]=0,o=1),this.last[r]=u[this.by_indices[t]]}else s&&this["increment_"+r](this.rule.interval);return a&&o&&s&&this["increment_"+n](1),o},increment_monthday:function(t){for(var r=0;r<t;r++){var n=e.Time.daysInMonth(this.last.month,this.last.year);this.last.day++,this.last.day>n&&(this.last.day-=n,this.increment_month())}},increment_month:function(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{"MONTHLY"==this.rule.freq?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;var t=e.helpers.trunc(this.last.month/12);this.last.month%=12,this.last.month++,0!=t&&this.increment_year(t)}},increment_year:function(t){this.last.year+=t},increment_generic:function(t,r,n,i){this.last[r]+=t;var a=e.helpers.trunc(this.last[r]/n);this.last[r]%=n,0!=a&&this["increment_"+i](a)},has_by_data:function(t){return t in this.rule.parts},expand_year_days:function(t){var r=new e.Time;this.days=[];var n={},i=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];s in this.rule.parts&&(n[s]=this.rule.parts[s])}if("BYMONTH"in n&&"BYWEEKNO"in n){var o=1,u={};r.year=t,r.isDate=!0;for(var l=0;l<this.by_data.BYMONTH.length;l++){var c=this.by_data.BYMONTH[l];r.month=c,r.day=1;var d=r.weekNumber(this.rule.wkst);r.day=e.Time.daysInMonth(c,t);var f=r.weekNumber(this.rule.wkst);for(l=d;l<f;l++)u[l]=1}for(var h=0;h<this.by_data.BYWEEKNO.length&&o;h++)(j=this.by_data.BYWEEKNO[h])<52?o&=u[h]:o=0;o?delete n.BYMONTH:delete n.BYWEEKNO}var p=Object.keys(n).length;if(0==p){var m=this.dtstart.clone();m.year=this.last.year,this.days.push(m.dayOfYear())}else if(1==p&&"BYMONTH"in n){for(var y in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(y)){var v=this.dtstart.clone();v.year=t,v.month=this.by_data.BYMONTH[y],v.isDate=!0,this.days.push(v.dayOfYear())}}else if(1==p&&"BYMONTHDAY"in n){for(var T in this.by_data.BYMONTHDAY)if(this.by_data.BYMONTHDAY.hasOwnProperty(T)){var g=this.dtstart.clone();(S=this.by_data.BYMONTHDAY[T])<0&&(S=S+(b=e.Time.daysInMonth(g.month,t))+1),g.day=S,g.year=t,g.isDate=!0,this.days.push(g.dayOfYear())}}else if(2==p&&"BYMONTHDAY"in n&&"BYMONTH"in n){for(var y in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(y)){var A=this.by_data.BYMONTH[y],b=e.Time.daysInMonth(A,t);for(var T in this.by_data.BYMONTHDAY)if(this.by_data.BYMONTHDAY.hasOwnProperty(T)){var S;(S=this.by_data.BYMONTHDAY[T])<0&&(S=S+b+1),r.day=S,r.month=A,r.year=t,r.isDate=!0,this.days.push(r.dayOfYear())}}}else if(!(1==p&&"BYWEEKNO"in n||2==p&&"BYWEEKNO"in n&&"BYMONTHDAY"in n))if(1==p&&"BYDAY"in n)this.days=this.days.concat(this.expand_by_day(t));else if(2==p&&"BYDAY"in n&&"BYMONTH"in n){for(var y in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(y)){c=this.by_data.BYMONTH[y],b=e.Time.daysInMonth(c,t),r.year=t,r.month=this.by_data.BYMONTH[y],r.day=1,r.isDate=!0;var E=r.dayOfWeek(),_=r.dayOfYear()-1;r.day=b;var D=r.dayOfWeek();if(this.has_by_data("BYSETPOS")){for(var C=[],O=1;O<=b;O++)r.day=O,this.is_day_in_byday(r)&&C.push(O);for(var w=0;w<C.length;w++)(this.check_set_position(w+1)||this.check_set_position(w-C.length))&&this.days.push(_+C[w])}else for(var x in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(x)){var I,N=this.by_data.BYDAY[x],U=this.ruleDayOfWeek(N),M=U[0],L=U[1],P=(L+7-E)%7+1,Y=b-(D+7-L)%7;if(0==M)for(O=P;O<=b;O+=7)this.days.push(_+O);else M>0?(I=P+7*(M-1))<=b&&this.days.push(_+I):(I=Y+7*(M+1))>0&&this.days.push(_+I)}}this.days.sort((function(t,e){return t-e}))}else if(2==p&&"BYDAY"in n&&"BYMONTHDAY"in n){var k=this.expand_by_day(t);for(var R in k)if(k.hasOwnProperty(R)){O=k[R];var B=e.Time.fromDayOfYear(O,t);this.by_data.BYMONTHDAY.indexOf(B.day)>=0&&this.days.push(O)}}else if(3==p&&"BYDAY"in n&&"BYMONTHDAY"in n&&"BYMONTH"in n)for(var R in k=this.expand_by_day(t))k.hasOwnProperty(R)&&(O=k[R],B=e.Time.fromDayOfYear(O,t),this.by_data.BYMONTH.indexOf(B.month)>=0&&this.by_data.BYMONTHDAY.indexOf(B.day)>=0&&this.days.push(O));else if(2==p&&"BYDAY"in n&&"BYWEEKNO"in n){for(var R in k=this.expand_by_day(t))if(k.hasOwnProperty(R)){O=k[R];var j=(B=e.Time.fromDayOfYear(O,t)).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(j)&&this.days.push(O)}}else 3==p&&"BYDAY"in n&&"BYWEEKNO"in n&&"BYMONTHDAY"in n||(this.days=1==p&&"BYYEARDAY"in n?this.days.concat(this.by_data.BYYEARDAY):[]);return 0},expand_by_day:function(t){var e=[],r=this.last.clone();r.year=t,r.month=1,r.day=1,r.isDate=!0;var n=r.dayOfWeek();r.month=12,r.day=31,r.isDate=!0;var i=r.dayOfWeek(),a=r.dayOfYear();for(var s in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(s)){var o=this.by_data.BYDAY[s],u=this.ruleDayOfWeek(o),l=u[0],c=u[1];if(0==l)for(var d=(c+7-n)%7+1;d<=a;d+=7)e.push(d);else if(l>0){var f;f=c>=n?c-n+1:c-n+8,e.push(f+7*(l-1))}else{var h;l=-l,h=c<=i?a-i+c:a-i+c-7,e.push(h-7*(l-1))}}return e},is_day_in_byday:function(t){for(var e in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(e)){var r=this.by_data.BYDAY[e],n=this.ruleDayOfWeek(r),i=n[0],a=n[1],s=t.dayOfWeek();if(0==i&&a==s||t.nthWeekDay(a,i)==t.day)return 1}return 0},check_set_position:function(t){return!!this.has_by_data("BYSETPOS")&&-1!==this.by_data.BYSETPOS.indexOf(t)},sort_byday_rules:function(t){for(var e=0;e<t.length;e++)for(var r=0;r<e;r++)if(this.ruleDayOfWeek(t[r],this.rule.wkst)[1]>this.ruleDayOfWeek(t[e],this.rule.wkst)[1]){var n=t[e];t[e]=t[r],t[r]=n}},check_contract_restriction:function(e,r){var n=t._indexMap[e],i=t._expandMap[this.rule.freq][n],a=!1;if(e in this.by_data&&i==t.CONTRACT){var s=this.by_data[e];for(var o in s)if(s.hasOwnProperty(o)&&s[o]==r){a=!0;break}}else a=!0;return a},check_contracting_rules:function(){var t=this.last.dayOfWeek(),r=this.last.weekNumber(this.rule.wkst),n=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",e.Recur.numericDayToIcalDay(t))&&this.check_contract_restriction("BYWEEKNO",r)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",n)},setup_defaults:function(e,r,n){var i=t._indexMap[e];return t._expandMap[this.rule.freq][i]!=t.CONTRACT&&(e in this.by_data||(this.by_data[e]=[n]),this.rule.freq!=r)?this.by_data[e][0]:n},toJSON:function(){var t=Object.create(null);return t.initialized=this.initialized,t.rule=this.rule.toJSON(),t.dtstart=this.dtstart.toJSON(),t.by_data=this.by_data,t.days=this.days,t.last=this.last.toJSON(),t.by_indices=this.by_indices,t.occurrence_number=this.occurrence_number,t}},t._indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8},t._expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]},t.UNKNOWN=0,t.CONTRACT=1,t.EXPAND=2,t.ILLEGAL=3,t}(),e.RecurExpansion=function(){function t(t){return e.helpers.formatClassType(t,e.Time)}function r(t,e){return t.compare(e)}function n(t){this.ruleDates=[],this.exDates=[],this.fromData(t)}return n.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(r){var n=e.helpers.formatClassType(r.dtstart,e.Time);if(!n)throw new Error(".dtstart (ICAL.Time) must be given");if(this.dtstart=n,r.component)this._init(r.component);else{if(this.last=t(r.last)||n.clone(),!r.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=r.ruleIterators.map((function(t){return e.helpers.formatClassType(t,e.RecurIterator)})),this.ruleDateInc=r.ruleDateInc,this.exDateInc=r.exDateInc,r.ruleDates&&(this.ruleDates=r.ruleDates.map(t),this.ruleDate=this.ruleDates[this.ruleDateInc]),r.exDates&&(this.exDates=r.exDates.map(t),this.exDate=this.exDates[this.exDateInc]),typeof r.complete<"u"&&(this.complete=r.complete)}},next:function(){for(var t,e,r,n=0;;){if(n++>500)throw new Error("max tries have occured, rule may be impossible to forfill.");if(e=this.ruleDate,t=this._nextRecurrenceIter(this.last),!e&&!t){this.complete=!0;break}if((!e||t&&e.compare(t.last)>0)&&(e=t.last.clone(),t.next()),this.ruleDate===e&&this._nextRuleDay(),this.last=e,!this.exDate||((r=this.exDate.compare(this.last))<0&&this._nextExDay(),0!==r))return this.last;this._nextExDay()}},toJSON:function(){function t(t){return t.toJSON()}var e=Object.create(null);return e.ruleIterators=this.ruleIterators.map(t),this.ruleDates&&(e.ruleDates=this.ruleDates.map(t)),this.exDates&&(e.exDates=this.exDates.map(t)),e.ruleDateInc=this.ruleDateInc,e.exDateInc=this.exDateInc,e.last=this.last.toJSON(),e.dtstart=this.dtstart.toJSON(),e.complete=this.complete,e},_extractDates:function(t,n){function i(t){a=e.helpers.binsearchInsert(s,t,r),s.splice(a,0,t)}for(var a,s=[],o=t.getAllProperties(n),u=o.length,l=0;l<u;l++)o[l].getValues().forEach(i);return s},_init:function(t){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!function(t){return t.hasProperty("rdate")||t.hasProperty("rrule")||t.hasProperty("recurrence-id")}(t))return this.ruleDate=this.last.clone(),void(this.complete=!0);if(t.hasProperty("rdate")&&(this.ruleDates=this._extractDates(t,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=e.helpers.binsearchInsert(this.ruleDates,this.last,r),this.ruleDate=this.ruleDates[this.ruleDateInc]),t.hasProperty("rrule"))for(var n,i=t.getAllProperties("rrule"),a=0,s=i.length;a<s;a++)n=i[a].getFirstValue().iterator(this.dtstart),this.ruleIterators.push(n),n.next();t.hasProperty("exdate")&&(this.exDates=this._extractDates(t,"exdate"),this.exDateInc=e.helpers.binsearchInsert(this.exDates,this.last,r),this.exDate=this.exDates[this.exDateInc])},_nextExDay:function(){this.exDate=this.exDates[++this.exDateInc]},_nextRuleDay:function(){this.ruleDate=this.ruleDates[++this.ruleDateInc]},_nextRecurrenceIter:function(){var t=this.ruleIterators;if(0===t.length)return null;for(var e,r,n,i=t.length,a=0;a<i;a++)r=(e=t[a]).last,e.completed?(i--,0!==a&&a--,t.splice(a,1)):(!n||n.last.compare(r)>0)&&(n=e);return n}},n}(),e.Event=function(){function t(t,r){t instanceof e.Component||(r=t,t=null),this.component=t||new e.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],r&&r.strictExceptions&&(this.strictExceptions=r.strictExceptions),r&&r.exceptions?r.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach((function(t){t.hasProperty("recurrence-id")&&this.relateException(t)}),this)}function r(t,e){return t[0]>e[0]?1:e[0]>t[0]?-1:0}return t.prototype={THISANDFUTURE:"THISANDFUTURE",exceptions:null,strictExceptions:!1,relateException:function(t){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(t instanceof e.Component&&(t=new e.Event(t)),this.strictExceptions&&t.uid!==this.uid)throw new Error("attempted to relate unrelated exception");var n=t.recurrenceId.toString();if(this.exceptions[n]=t,t.modifiesFuture()){var i=[t.recurrenceId.toUnixTime(),n],a=e.helpers.binsearchInsert(this.rangeExceptions,i,r);this.rangeExceptions.splice(a,0,i)}},modifiesFuture:function(){return!!this.component.hasProperty("recurrence-id")&&this.component.getFirstProperty("recurrence-id").getParameter("range")===this.THISANDFUTURE},findRangeException:function(t){if(!this.rangeExceptions.length)return null;var n=t.toUnixTime(),i=e.helpers.binsearchInsert(this.rangeExceptions,[n],r);if((i-=1)<0)return null;var a=this.rangeExceptions[i];return n<a[0]?null:a[1]},getOccurrenceDetails:function(t){var r,n=t.toString(),i=t.convertToZone(e.Timezone.utcTimezone).toString(),a={recurrenceId:t};if(n in this.exceptions)r=a.item=this.exceptions[n],a.startDate=r.startDate,a.endDate=r.endDate,a.item=r;else if(i in this.exceptions)r=this.exceptions[i],a.startDate=r.startDate,a.endDate=r.endDate,a.item=r;else{var s,o=this.findRangeException(t);if(o){var u=this.exceptions[o];a.item=u;var l=this._rangeExceptionCache[o];if(!l){var c=u.recurrenceId.clone(),d=u.startDate.clone();c.zone=d.zone,l=d.subtractDate(c),this._rangeExceptionCache[o]=l}var f=t.clone();f.zone=u.startDate.zone,f.addDuration(l),(s=f.clone()).addDuration(u.duration),a.startDate=f,a.endDate=s}else(s=t.clone()).addDuration(this.duration),a.endDate=s,a.startDate=t,a.item=this}return a},iterator:function(t){return new e.RecurExpansion({component:this.component,dtstart:t||this.startDate})},isRecurring:function(){var t=this.component;return t.hasProperty("rrule")||t.hasProperty("rdate")},isRecurrenceException:function(){return this.component.hasProperty("recurrence-id")},getRecurrenceTypes:function(){for(var t=this.component.getAllProperties("rrule"),e=0,r=t.length,n=Object.create(null);e<r;e++)n[t[e].getFirstValue().freq]=!0;return n},get uid(){return this._firstProp("uid")},set uid(t){this._setProp("uid",t)},get startDate(){return this._firstProp("dtstart")},set startDate(t){this._setTime("dtstart",t)},get endDate(){var t=this._firstProp("dtend");if(!t){var e=this._firstProp("duration");t=this.startDate.clone(),e?t.addDuration(e):t.isDate&&(t.day+=1)}return t},set endDate(t){this.component.hasProperty("duration")&&this.component.removeProperty("duration"),this._setTime("dtend",t)},get duration(){return this._firstProp("duration")||this.endDate.subtractDateTz(this.startDate)},set duration(t){this.component.hasProperty("dtend")&&this.component.removeProperty("dtend"),this._setProp("duration",t)},get location(){return this._firstProp("location")},set location(t){return this._setProp("location",t)},get attendees(){return this.component.getAllProperties("attendee")},get summary(){return this._firstProp("summary")},set summary(t){this._setProp("summary",t)},get description(){return this._firstProp("description")},set description(t){this._setProp("description",t)},get color(){return this._firstProp("color")},set color(t){this._setProp("color",t)},get organizer(){return this._firstProp("organizer")},set organizer(t){this._setProp("organizer",t)},get sequence(){return this._firstProp("sequence")},set sequence(t){this._setProp("sequence",t)},get recurrenceId(){return this._firstProp("recurrence-id")},set recurrenceId(t){this._setTime("recurrence-id",t)},_setTime:function(t,r){var n=this.component.getFirstProperty(t);n||(n=new e.Property(t),this.component.addProperty(n)),r.zone===e.Timezone.localTimezone||r.zone===e.Timezone.utcTimezone?n.removeParameter("tzid"):n.setParameter("tzid",r.zone.tzid),n.setValue(r)},_setProp:function(t,e){this.component.updatePropertyWithValue(t,e)},_firstProp:function(t){return this.component.getFirstPropertyValue(t)},toString:function(){return this.component.toString()}},t}(),e.ComponentParser=function(){function t(t){var e;for(e in typeof t>"u"&&(t={}),t)t.hasOwnProperty(e)&&(this[e]=t[e])}return t.prototype={parseEvent:!0,parseTimezone:!0,oncomplete:function(){},onerror:function(t){},ontimezone:function(t){},onevent:function(t){},process:function(t){"string"==typeof t&&(t=e.parse(t)),t instanceof e.Component||(t=new e.Component(t));for(var r,n=t.getAllSubcomponents(),i=0,a=n.length;i<a;i++)switch(r=n[i],r.name){case"vtimezone":if(this.parseTimezone){var s=r.getFirstPropertyValue("tzid");s&&this.ontimezone(new e.Timezone({tzid:s,component:r}))}break;case"vevent":this.parseEvent&&this.onevent(new e.Event(r));break;default:continue}this.oncomplete()}},t}()}(rt);var nt=rt.exports;let it;const at=new Uint8Array(16);function st(){if(!it&&(it=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!it))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return it(at)}const ot=[];for(let t=0;t<256;++t)ot.push((t+256).toString(16).slice(1));const ut={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function lt(t,e,r){if(ut.randomUUID&&!e&&!t)return ut.randomUUID();const n=(t=t||{}).random||(t.rng||st)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=n[t];return e}return function(t,e=0){return ot[t[e+0]]+ot[t[e+1]]+ot[t[e+2]]+ot[t[e+3]]+"-"+ot[t[e+4]]+ot[t[e+5]]+"-"+ot[t[e+6]]+ot[t[e+7]]+"-"+ot[t[e+8]]+ot[t[e+9]]+"-"+ot[t[e+10]]+ot[t[e+11]]+ot[t[e+12]]+ot[t[e+13]]+ot[t[e+14]]+ot[t[e+15]]}(n)}var ct={},dt=function(t){return t&&t.Math===Math&&t},ft=dt("object"==typeof globalThis&&globalThis)||dt("object"==typeof window&&window)||dt("object"==typeof self&&self)||dt("object"==typeof K&&K)||function(){return this}()||K||Function("return this")(),ht={},pt=function(t){try{return!!t()}catch{return!0}},mt=!pt((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),yt=!pt((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),vt=yt,Tt=Function.prototype.call,gt=vt?Tt.bind(Tt):function(){return Tt.apply(Tt,arguments)},At={},bt={}.propertyIsEnumerable,St=Object.getOwnPropertyDescriptor,Et=St&&!bt.call({1:2},1);At.f=Et?function(t){var e=St(this,t);return!!e&&e.enumerable}:bt;var _t,Dt,Ct=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ot=yt,wt=Function.prototype,xt=wt.call,It=Ot&&wt.bind.bind(xt,xt),Nt=Ot?It:function(t){return function(){return xt.apply(t,arguments)}},Ut=Nt,Mt=Ut({}.toString),Lt=Ut("".slice),Pt=function(t){return Lt(Mt(t),8,-1)},Yt=pt,kt=Pt,Rt=Object,Bt=Nt("".split),jt=Yt((function(){return!Rt("z").propertyIsEnumerable(0)}))?function(t){return"String"===kt(t)?Bt(t,""):Rt(t)}:Rt,zt=function(t){return null==t},Ft=zt,Wt=TypeError,$t=function(t){if(Ft(t))throw new Wt("Can't call method on "+t);return t},Vt=jt,Ht=$t,Gt=function(t){return Vt(Ht(t))},Zt="object"==typeof document&&document.all,Kt={all:Zt,IS_HTMLDDA:typeof Zt>"u"&&void 0!==Zt},qt=Kt.all,Xt=Kt.IS_HTMLDDA?function(t){return"function"==typeof t||t===qt}:function(t){return"function"==typeof t},Jt=Xt,Qt=Kt.all,te=Kt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Jt(t)||t===Qt}:function(t){return"object"==typeof t?null!==t:Jt(t)},ee=ft,re=Xt,ne=function(t,e){return arguments.length<2?function(t){return re(t)?t:void 0}(ee[t]):ee[t]&&ee[t][e]},ie=Nt({}.isPrototypeOf),ae=ft,se=typeof navigator<"u"&&String(navigator.userAgent)||"",oe=ae.process,ue=ae.Deno,le=oe&&oe.versions||ue&&ue.version,ce=le&&le.v8;ce&&(Dt=(_t=ce.split("."))[0]>0&&_t[0]<4?1:+(_t[0]+_t[1])),!Dt&&se&&(!(_t=se.match(/Edge\/(\d+)/))||_t[1]>=74)&&(_t=se.match(/Chrome\/(\d+)/))&&(Dt=+_t[1]);var de=Dt,fe=pt,he=ft.String,pe=!!Object.getOwnPropertySymbols&&!fe((function(){var t=Symbol("symbol detection");return!he(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&de&&de<41})),me=pe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ye=ne,ve=Xt,Te=ie,ge=Object,Ae=me?function(t){return"symbol"==typeof t}:function(t){var e=ye("Symbol");return ve(e)&&Te(e.prototype,ge(t))},be=String,Se=function(t){try{return be(t)}catch{return"Object"}},Ee=Xt,_e=Se,De=TypeError,Ce=function(t){if(Ee(t))return t;throw new De(_e(t)+" is not a function")},Oe=Ce,we=zt,xe=gt,Ie=Xt,Ne=te,Ue=TypeError,Me=function(t,e){var r,n;if("string"===e&&Ie(r=t.toString)&&!Ne(n=xe(r,t))||Ie(r=t.valueOf)&&!Ne(n=xe(r,t))||"string"!==e&&Ie(r=t.toString)&&!Ne(n=xe(r,t)))return n;throw new Ue("Can't convert object to primitive value")},Le={exports:{}},Pe=ft,Ye=Object.defineProperty,ke=function(t,e){try{Ye(Pe,t,{value:e,configurable:!0,writable:!0})}catch{Pe[t]=e}return e},Re=ke,Be="__core-js_shared__",je=ft[Be]||Re(Be,{}),ze=je;(Le.exports=function(t,e){return ze[t]||(ze[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Fe=Le.exports,We=$t,$e=Object,Ve=function(t){return $e(We(t))},He=Ve,Ge=Nt({}.hasOwnProperty),Ze=Object.hasOwn||function(t,e){return Ge(He(t),e)},Ke=Nt,qe=0,Xe=Math.random(),Je=Ke(1..toString),Qe=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Je(++qe+Xe,36)},tr=Fe,er=Ze,rr=Qe,nr=pe,ir=me,ar=ft.Symbol,sr=tr("wks"),or=ir?ar.for||ar:ar&&ar.withoutSetter||rr,ur=function(t){return er(sr,t)||(sr[t]=nr&&er(ar,t)?ar[t]:or("Symbol."+t)),sr[t]},lr=gt,cr=te,dr=Ae,fr=Me,hr=TypeError,pr=ur("toPrimitive"),mr=function(t,e){if(!cr(t)||dr(t))return t;var r,n=function(t,e){var r=t[e];return we(r)?void 0:Oe(r)}(t,pr);if(n){if(void 0===e&&(e="default"),r=lr(n,t,e),!cr(r)||dr(r))return r;throw new hr("Can't convert object to primitive value")}return void 0===e&&(e="number"),fr(t,e)},yr=mr,vr=Ae,Tr=function(t){var e=yr(t,"string");return vr(e)?e:e+""},gr=te,Ar=ft.document,br=gr(Ar)&&gr(Ar.createElement),Sr=function(t){return br?Ar.createElement(t):{}},Er=Sr,_r=!mt&&!pt((function(){return 7!==Object.defineProperty(Er("div"),"a",{get:function(){return 7}}).a})),Dr=mt,Cr=gt,Or=At,wr=Ct,xr=Gt,Ir=Tr,Nr=Ze,Ur=_r,Mr=Object.getOwnPropertyDescriptor;ht.f=Dr?Mr:function(t,e){if(t=xr(t),e=Ir(e),Ur)try{return Mr(t,e)}catch{}if(Nr(t,e))return wr(!Cr(Or.f,t,e),t[e])};var Lr={},Pr=mt&&pt((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Yr=te,kr=String,Rr=TypeError,Br=function(t){if(Yr(t))return t;throw new Rr(kr(t)+" is not an object")},jr=mt,zr=_r,Fr=Pr,Wr=Br,$r=Tr,Vr=TypeError,Hr=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,Zr="enumerable",Kr="configurable",qr="writable";Lr.f=jr?Fr?function(t,e,r){if(Wr(t),e=$r(e),Wr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&qr in r&&!r[qr]){var n=Gr(t,e);n&&n[qr]&&(t[e]=r.value,r={configurable:Kr in r?r[Kr]:n[Kr],enumerable:Zr in r?r[Zr]:n[Zr],writable:!1})}return Hr(t,e,r)}:Hr:function(t,e,r){if(Wr(t),e=$r(e),Wr(r),zr)try{return Hr(t,e,r)}catch{}if("get"in r||"set"in r)throw new Vr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Xr=Lr,Jr=Ct,Qr=mt?function(t,e,r){return Xr.f(t,e,Jr(1,r))}:function(t,e,r){return t[e]=r,t},tn={exports:{}},en=mt,rn=Ze,nn=Function.prototype,an=en&&Object.getOwnPropertyDescriptor,sn=rn(nn,"name"),on={EXISTS:sn,PROPER:sn&&"something"===function(){}.name,CONFIGURABLE:sn&&(!en||en&&an(nn,"name").configurable)},un=Xt,ln=je,cn=Nt(Function.toString);un(ln.inspectSource)||(ln.inspectSource=function(t){return cn(t)});var dn,fn,hn,pn=ln.inspectSource,mn=Xt,yn=ft.WeakMap,vn=mn(yn)&&/native code/.test(String(yn)),Tn=Qe,gn=Fe("keys"),An=function(t){return gn[t]||(gn[t]=Tn(t))},bn={},Sn=vn,En=ft,_n=te,Dn=Qr,Cn=Ze,On=je,wn=An,xn=bn,In="Object already initialized",Nn=En.TypeError,Un=En.WeakMap;if(Sn||On.state){var Mn=On.state||(On.state=new Un);Mn.get=Mn.get,Mn.has=Mn.has,Mn.set=Mn.set,dn=function(t,e){if(Mn.has(t))throw new Nn(In);return e.facade=t,Mn.set(t,e),e},fn=function(t){return Mn.get(t)||{}},hn=function(t){return Mn.has(t)}}else{var Ln=wn("state");xn[Ln]=!0,dn=function(t,e){if(Cn(t,Ln))throw new Nn(In);return e.facade=t,Dn(t,Ln,e),e},fn=function(t){return Cn(t,Ln)?t[Ln]:{}},hn=function(t){return Cn(t,Ln)}}var Pn={set:dn,get:fn,has:hn,enforce:function(t){return hn(t)?fn(t):dn(t,{})},getterFor:function(t){return function(e){var r;if(!_n(e)||(r=fn(e)).type!==t)throw new Nn("Incompatible receiver, "+t+" required");return r}}},Yn=Nt,kn=pt,Rn=Xt,Bn=Ze,jn=mt,zn=on.CONFIGURABLE,Fn=pn,Wn=Pn.enforce,$n=Pn.get,Vn=String,Hn=Object.defineProperty,Gn=Yn("".slice),Zn=Yn("".replace),Kn=Yn([].join),qn=jn&&!kn((function(){return 8!==Hn((function(){}),"length",{value:8}).length})),Xn=String(String).split("String"),Jn=tn.exports=function(t,e,r){"Symbol("===Gn(Vn(e),0,7)&&(e="["+Zn(Vn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Bn(t,"name")||zn&&t.name!==e)&&(jn?Hn(t,"name",{value:e,configurable:!0}):t.name=e),qn&&r&&Bn(r,"arity")&&t.length!==r.arity&&Hn(t,"length",{value:r.arity});try{r&&Bn(r,"constructor")&&r.constructor?jn&&Hn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var n=Wn(t);return Bn(n,"source")||(n.source=Kn(Xn,"string"==typeof e?e:"")),t};Function.prototype.toString=Jn((function(){return Rn(this)&&$n(this).source||Fn(this)}),"toString");var Qn=tn.exports,ti=Xt,ei=Lr,ri=Qn,ni=ke,ii=function(t,e,r,n){n||(n={});var i=n.enumerable,a=void 0!==n.name?n.name:e;if(ti(r)&&ri(r,a,n),n.global)i?t[e]=r:ni(e,r);else{try{n.unsafe?t[e]&&(i=!0):delete t[e]}catch{}i?t[e]=r:ei.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ai={},si=Math.ceil,oi=Math.floor,ui=Math.trunc||function(t){var e=+t;return(e>0?oi:si)(e)},li=function(t){var e=+t;return e!=e||0===e?0:ui(e)},ci=li,di=Math.max,fi=Math.min,hi=function(t,e){var r=ci(t);return r<0?di(r+e,0):fi(r,e)},pi=li,mi=Math.min,yi=function(t){return function(t){return t>0?mi(pi(t),9007199254740991):0}(t.length)},vi=Gt,Ti=hi,gi=yi,Ai=function(t){return function(e,r,n){var i,a=vi(e),s=gi(a),o=Ti(n,s);if(t&&r!=r){for(;s>o;)if((i=a[o++])!=i)return!0}else for(;s>o;o++)if((t||o in a)&&a[o]===r)return t||o||0;return!t&&-1}},bi={includes:Ai(!0),indexOf:Ai(!1)},Si=Ze,Ei=Gt,_i=bi.indexOf,Di=bn,Ci=Nt([].push),Oi=function(t,e){var r,n=Ei(t),i=0,a=[];for(r in n)!Si(Di,r)&&Si(n,r)&&Ci(a,r);for(;e.length>i;)Si(n,r=e[i++])&&(~_i(a,r)||Ci(a,r));return a},wi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xi=Oi,Ii=wi.concat("length","prototype");ai.f=Object.getOwnPropertyNames||function(t){return xi(t,Ii)};var Ni={};Ni.f=Object.getOwnPropertySymbols;var Ui=ne,Mi=ai,Li=Ni,Pi=Br,Yi=Nt([].concat),ki=Ui("Reflect","ownKeys")||function(t){var e=Mi.f(Pi(t)),r=Li.f;return r?Yi(e,r(t)):e},Ri=Ze,Bi=ki,ji=ht,zi=Lr,Fi=function(t,e,r){for(var n=Bi(e),i=zi.f,a=ji.f,s=0;s<n.length;s++){var o=n[s];!Ri(t,o)&&(!r||!Ri(r,o))&&i(t,o,a(e,o))}},Wi=pt,$i=Xt,Vi=/#|\.prototype\./,Hi=function(t,e){var r=Zi[Gi(t)];return r===qi||r!==Ki&&($i(e)?Wi(e):!!e)},Gi=Hi.normalize=function(t){return String(t).replace(Vi,".").toLowerCase()},Zi=Hi.data={},Ki=Hi.NATIVE="N",qi=Hi.POLYFILL="P",Xi=Hi,Ji=ft,Qi=ht.f,ta=Qr,ea=ii,ra=ke,na=Fi,ia=Xi,aa=function(t,e){var r,n,i,a,s,o=t.target,u=t.global,l=t.stat;if(r=u?Ji:l?Ji[o]||ra(o,{}):(Ji[o]||{}).prototype)for(n in e){if(a=e[n],i=t.dontCallGetSet?(s=Qi(r,n))&&s.value:r[n],!ia(u?n:o+(l?".":"#")+n,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;na(a,i)}(t.sham||i&&i.sham)&&ta(a,"sham",!0),ea(r,n,a,t)}},sa=aa,oa=mt,ua=Lr.f;sa({target:"Object",stat:!0,forced:Object.defineProperty!==ua,sham:!oa},{defineProperty:ua});var la={},ca=ft,da={},fa=ur;da.f=fa;var ha=ca,pa=Ze,ma=da,ya=Lr.f,va=function(t){var e=ha.Symbol||(ha.Symbol={});pa(e,t)||ya(e,t,{value:ma.f(t)})};va("iterator");var Ta={},ga=Oi,Aa=wi,ba=Object.keys||function(t){return ga(t,Aa)},Sa=mt,Ea=Pr,_a=Lr,Da=Br,Ca=Gt,Oa=ba;Ta.f=Sa&&!Ea?Object.defineProperties:function(t,e){Da(t);for(var r,n=Ca(e),i=Oa(e),a=i.length,s=0;a>s;)_a.f(t,r=i[s++],n[r]);return t};var wa,xa=ne("document","documentElement"),Ia=Br,Na=Ta,Ua=wi,Ma=bn,La=xa,Pa=Sr,Ya="prototype",ka="script",Ra=An("IE_PROTO"),Ba=function(){},ja=function(t){return"<"+ka+">"+t+"</"+ka+">"},za=function(t){t.write(ja("")),t.close();var e=t.parentWindow.Object;return t=null,e},Fa=function(){try{wa=new ActiveXObject("htmlfile")}catch{}Fa=typeof document<"u"?document.domain&&wa?za(wa):function(){var t,e=Pa("iframe"),r="java"+ka+":";return e.style.display="none",La.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(ja("document.F=Object")),t.close(),t.F}():za(wa);for(var t=Ua.length;t--;)delete Fa[Ya][Ua[t]];return Fa()};Ma[Ra]=!0;var Wa=Object.create||function(t,e){var r;return null!==t?(Ba[Ya]=Ia(t),r=new Ba,Ba[Ya]=null,r[Ra]=t):r=Fa(),void 0===e?r:Na.f(r,e)},$a=ur,Va=Wa,Ha=Lr.f,Ga=$a("unscopables"),Za=Array.prototype;void 0===Za[Ga]&&Ha(Za,Ga,{configurable:!0,value:Va(null)});var Ka,qa,Xa,Ja={},Qa=!pt((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ts=Ze,es=Xt,rs=Ve,ns=Qa,is=An("IE_PROTO"),as=Object,ss=as.prototype,os=ns?as.getPrototypeOf:function(t){var e=rs(t);if(ts(e,is))return e[is];var r=e.constructor;return es(r)&&e instanceof r?r.prototype:e instanceof as?ss:null},us=pt,ls=Xt,cs=te,ds=os,fs=ii,hs=ur("iterator"),ps=!1;[].keys&&("next"in(Xa=[].keys())?(qa=ds(ds(Xa)))!==Object.prototype&&(Ka=qa):ps=!0);var ms=!cs(Ka)||us((function(){var t={};return Ka[hs].call(t)!==t}));ms&&(Ka={}),ls(Ka[hs])||fs(Ka,hs,(function(){return this}));var ys={IteratorPrototype:Ka,BUGGY_SAFARI_ITERATORS:ps},vs=Lr.f,Ts=Ze,gs=ur("toStringTag"),As=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Ts(t,gs)&&vs(t,gs,{configurable:!0,value:e})},bs=ys.IteratorPrototype,Ss=Wa,Es=Ct,_s=As,Ds=Ja,Cs=function(){return this},Os=Nt,ws=Ce,xs=Xt,Is=String,Ns=TypeError,Us=Br,Ms=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return Os(ws(Object.getOwnPropertyDescriptor(t,e)[r]))}catch{}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch{}return function(r,n){return Us(r),function(t){if("object"==typeof t||xs(t))return t;throw new Ns("Can't set "+Is(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),Ls=aa,Ps=gt,Ys=Xt,ks=os,Rs=Ms,Bs=As,js=Qr,zs=ii,Fs=Ja,Ws=on.PROPER,$s=on.CONFIGURABLE,Vs=ys.IteratorPrototype,Hs=ys.BUGGY_SAFARI_ITERATORS,Gs=ur("iterator"),Zs="keys",Ks="values",qs="entries",Xs=function(){return this},Js=function(t,e,r,n,i,a,s){!function(t,e,r,n){var i=e+" Iterator";t.prototype=Ss(bs,{next:Es(+!n,r)}),_s(t,i,!1),Ds[i]=Cs}(r,e,n);var o,u,l,c=function(t){if(t===i&&m)return m;if(!Hs&&t&&t in h)return h[t];switch(t){case Zs:case Ks:case qs:return function(){return new r(this,t)}}return function(){return new r(this)}},d=e+" Iterator",f=!1,h=t.prototype,p=h[Gs]||h["@@iterator"]||i&&h[i],m=!Hs&&p||c(i),y="Array"===e&&h.entries||p;if(y&&(o=ks(y.call(new t)))!==Object.prototype&&o.next&&(ks(o)!==Vs&&(Rs?Rs(o,Vs):Ys(o[Gs])||zs(o,Gs,Xs)),Bs(o,d,!0)),Ws&&i===Ks&&p&&p.name!==Ks&&($s?js(h,"name",Ks):(f=!0,m=function(){return Ps(p,this)})),i)if(u={values:c(Ks),keys:a?m:c(Zs),entries:c(qs)},s)for(l in u)(Hs||f||!(l in h))&&zs(h,l,u[l]);else Ls({target:e,proto:!0,forced:Hs||f},u);return h[Gs]!==m&&zs(h,Gs,m,{name:i}),Fs[e]=m,u},Qs=function(t,e){return{value:t,done:e}},to=Gt,eo=function(t){Za[Ga][t]=!0},ro=Ja,no=Pn,io=Lr.f,ao=Js,so=Qs,oo=mt,uo="Array Iterator",lo=no.set,co=no.getterFor(uo),fo=ao(Array,"Array",(function(t,e){lo(this,{type:uo,target:to(t),index:0,kind:e})}),(function(){var t=co(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,so(void 0,!0);switch(r){case"keys":return so(n,!1);case"values":return so(e[n],!1)}return so([n,e[n]],!1)}),"values"),ho=ro.Arguments=ro.Array;if(eo("keys"),eo("values"),eo("entries"),oo&&"values"!==ho.name)try{io(ho,"name",{value:"values"})}catch{}var po={};po[ur("toStringTag")]="z";var mo="[object z]"===String(po),yo=mo,vo=Xt,To=Pt,go=ur("toStringTag"),Ao=Object,bo="Arguments"===To(function(){return arguments}()),So=yo?To:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch{}}(e=Ao(t),go))?r:bo?To(e):"Object"===(n=To(e))&&vo(e.callee)?"Arguments":n},Eo=So,_o=String,Do=function(t){if("Symbol"===Eo(t))throw new TypeError("Cannot convert a Symbol value to a string");return _o(t)},Co=Nt,Oo=li,wo=Do,xo=$t,Io=Co("".charAt),No=Co("".charCodeAt),Uo=Co("".slice),Mo=function(t){return function(e,r){var n,i,a=wo(xo(e)),s=Oo(r),o=a.length;return s<0||s>=o?t?"":void 0:(n=No(a,s))<55296||n>56319||s+1===o||(i=No(a,s+1))<56320||i>57343?t?Io(a,s):n:t?Uo(a,s,s+2):i-56320+(n-55296<<10)+65536}},Lo=(Mo(!1),Mo(!0)),Po=Do,Yo=Pn,ko=Js,Ro=Qs,Bo="String Iterator",jo=Yo.set,zo=Yo.getterFor(Bo);ko(String,"String",(function(t){jo(this,{type:Bo,string:Po(t),index:0})}),(function(){var t,e=zo(this),r=e.string,n=e.index;return n>=r.length?Ro(void 0,!0):(t=Lo(r,n),e.index+=t.length,Ro(t,!1))}));var Fo=Sr("span").classList,Wo=Fo&&Fo.constructor&&Fo.constructor.prototype,$o=Wo===Object.prototype?void 0:Wo,Vo=ft,Ho={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Go=$o,Zo=fo,Ko=Qr,qo=ur,Xo=qo("iterator"),Jo=qo("toStringTag"),Qo=Zo.values,tu=function(t,e){if(t){if(t[Xo]!==Qo)try{Ko(t,Xo,Qo)}catch{t[Xo]=Qo}if(t[Jo]||Ko(t,Jo,e),Ho[e])for(var r in Zo)if(t[r]!==Zo[r])try{Ko(t,r,Zo[r])}catch{t[r]=Zo[r]}}};for(var eu in Ho)tu(Vo[eu]&&Vo[eu].prototype,eu);tu(Go,"DOMTokenList");var ru=mt,nu=Nt,iu=gt,au=pt,su=ba,ou=Ni,uu=At,lu=Ve,cu=jt,du=Object.assign,fu=Object.defineProperty,hu=nu([].concat),pu=!du||au((function(){if(ru&&1!==du({b:1},du(fu({},"a",{enumerable:!0,get:function(){fu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==du({},t)[r]||su(du({},e)).join("")!==n}))?function(t,e){for(var r=lu(t),n=arguments.length,i=1,a=ou.f,s=uu.f;n>i;)for(var o,u=cu(arguments[i++]),l=a?hu(su(u),a(u)):su(u),c=l.length,d=0;c>d;)o=l[d++],(!ru||iu(s,u,o))&&(r[o]=u[o]);return r}:du,mu=pu;aa({target:"Object",stat:!0,arity:2,forced:Object.assign!==mu},{assign:mu});var yu=gt,vu=ne,Tu=ur,gu=ii,Au=function(){var t=vu("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Tu("toPrimitive");e&&!e[n]&&gu(e,n,(function(t){return yu(r,this)}),{arity:1})},bu=Au;va("toPrimitive"),bu();var Su=Br,Eu=Me,_u=TypeError,Du=Ze,Cu=ii,Ou=ur("toPrimitive"),wu=Date.prototype;Du(wu,Ou)||Cu(wu,Ou,(function(t){if(Su(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new _u("Incorrect hint");return Eu(this,t)}));var xu={},Iu=Tr,Nu=Lr,Uu=Ct,Mu=hi,Lu=yi,Pu=function(t,e,r){var n=Iu(e);n in t?Nu.f(t,n,Uu(0,r)):t[n]=r},Yu=Array,ku=Math.max,Ru=Pt,Bu=Gt,ju=ai.f,zu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];xu.f=function(t){return zu&&"Window"===Ru(t)?function(t){try{return ju(t)}catch{return function(t,e,r){for(var n=Lu(t),i=Mu(e,n),a=Mu(void 0===r?n:r,n),s=Yu(ku(a-i,0)),o=0;i<a;i++,o++)Pu(s,o,t[i]);return s.length=o,s}(zu)}}(t):ju(Bu(t))};var Fu=Qn,Wu=Lr,$u=function(t,e,r){return r.get&&Fu(r.get,e,{getter:!0}),r.set&&Fu(r.set,e,{setter:!0}),Wu.f(t,e,r)},Vu=Pt,Hu=Nt,Gu=function(t){if("Function"===Vu(t))return Hu(t)},Zu=Ce,Ku=yt,qu=Gu(Gu.bind),Xu=Pt,Ju=Array.isArray||function(t){return"Array"===Xu(t)},Qu=Nt,tl=pt,el=Xt,rl=So,nl=pn,il=function(){},al=[],sl=ne("Reflect","construct"),ol=/^\s*(?:class|function)\b/,ul=Qu(ol.exec),ll=!ol.test(il),cl=function(t){if(!el(t))return!1;try{return sl(il,al,t),!0}catch{return!1}},dl=function(t){if(!el(t))return!1;switch(rl(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ll||!!ul(ol,nl(t))}catch{return!0}};dl.sham=!0;var fl=!sl||tl((function(){var t;return cl(cl.call)||!cl(Object)||!cl((function(){t=!0}))||t}))?dl:cl,hl=Ju,pl=fl,ml=te,yl=ur("species"),vl=Array,Tl=jt,gl=Ve,Al=yi,bl=function(t,e){return new(function(t){var e;return hl(t)&&(e=t.constructor,(pl(e)&&(e===vl||hl(e.prototype))||ml(e)&&null===(e=e[yl]))&&(e=void 0)),void 0===e?vl:e}(t))(0===e?0:e)},Sl=Nt([].push),El=function(t){var e=1===t,r=2===t,n=3===t,i=4===t,a=6===t,s=7===t,o=5===t||a;return function(u,l,c,d){for(var f,h,p=gl(u),m=Tl(p),y=function(t,e){return Zu(t),void 0===e?t:Ku?qu(t,e):function(){return t.apply(e,arguments)}}(l,c),v=Al(m),T=0,g=d||bl,A=e?g(u,v):r||s?g(u,0):void 0;v>T;T++)if((o||T in m)&&(h=y(f=m[T],T,p),t))if(e)A[T]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return T;case 2:Sl(A,f)}else switch(t){case 4:return!1;case 7:Sl(A,f)}return a?-1:n||i?i:A}},_l={forEach:El(0),map:El(1),filter:El(2),some:El(3),every:El(4),find:El(5),findIndex:El(6),filterReject:El(7)},Dl=aa,Cl=ft,Ol=gt,wl=Nt,xl=mt,Il=pe,Nl=pt,Ul=Ze,Ml=ie,Ll=Br,Pl=Gt,Yl=Tr,kl=Do,Rl=Ct,Bl=Wa,jl=ba,zl=ai,Fl=xu,Wl=Ni,$l=ht,Vl=Lr,Hl=Ta,Gl=At,Zl=ii,Kl=$u,ql=Fe,Xl=bn,Jl=Qe,Ql=ur,tc=da,ec=va,rc=Au,nc=As,ic=Pn,ac=_l.forEach,sc=An("hidden"),oc="Symbol",uc="prototype",lc=ic.set,cc=ic.getterFor(oc),dc=Object[uc],fc=Cl.Symbol,hc=fc&&fc[uc],pc=Cl.RangeError,mc=Cl.TypeError,yc=Cl.QObject,vc=$l.f,Tc=Vl.f,gc=Fl.f,Ac=Gl.f,bc=wl([].push),Sc=ql("symbols"),Ec=ql("op-symbols"),_c=ql("wks"),Dc=!yc||!yc[uc]||!yc[uc].findChild,Cc=function(t,e,r){var n=vc(dc,e);n&&delete dc[e],Tc(t,e,r),n&&t!==dc&&Tc(dc,e,n)},Oc=xl&&Nl((function(){return 7!==Bl(Tc({},"a",{get:function(){return Tc(this,"a",{value:7}).a}})).a}))?Cc:Tc,wc=function(t,e){var r=Sc[t]=Bl(hc);return lc(r,{type:oc,tag:t,description:e}),xl||(r.description=e),r},xc=function(t,e,r){t===dc&&xc(Ec,e,r),Ll(t);var n=Yl(e);return Ll(r),Ul(Sc,n)?(r.enumerable?(Ul(t,sc)&&t[sc][n]&&(t[sc][n]=!1),r=Bl(r,{enumerable:Rl(0,!1)})):(Ul(t,sc)||Tc(t,sc,Rl(1,{})),t[sc][n]=!0),Oc(t,n,r)):Tc(t,n,r)},Ic=function(t,e){Ll(t);var r=Pl(e),n=jl(r).concat(Lc(r));return ac(n,(function(e){(!xl||Ol(Nc,r,e))&&xc(t,e,r[e])})),t},Nc=function(t){var e=Yl(t),r=Ol(Ac,this,e);return!(this===dc&&Ul(Sc,e)&&!Ul(Ec,e))&&(!(r||!Ul(this,e)||!Ul(Sc,e)||Ul(this,sc)&&this[sc][e])||r)},Uc=function(t,e){var r=Pl(t),n=Yl(e);if(r!==dc||!Ul(Sc,n)||Ul(Ec,n)){var i=vc(r,n);return i&&Ul(Sc,n)&&!(Ul(r,sc)&&r[sc][n])&&(i.enumerable=!0),i}},Mc=function(t){var e=gc(Pl(t)),r=[];return ac(e,(function(t){!Ul(Sc,t)&&!Ul(Xl,t)&&bc(r,t)})),r},Lc=function(t){var e=t===dc,r=gc(e?Ec:Pl(t)),n=[];return ac(r,(function(t){Ul(Sc,t)&&(!e||Ul(dc,t))&&bc(n,Sc[t])})),n};Il||(Zl(hc=(fc=function(){if(Ml(hc,this))throw new mc("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?kl(arguments[0]):void 0,e=Jl(t),r=function(t){this===dc&&Ol(r,Ec,t),Ul(this,sc)&&Ul(this[sc],e)&&(this[sc][e]=!1);var n=Rl(1,t);try{Oc(this,e,n)}catch(t){if(!(t instanceof pc))throw t;Cc(this,e,n)}};return xl&&Dc&&Oc(dc,e,{configurable:!0,set:r}),wc(e,t)})[uc],"toString",(function(){return cc(this).tag})),Zl(fc,"withoutSetter",(function(t){return wc(Jl(t),t)})),Gl.f=Nc,Vl.f=xc,Hl.f=Ic,$l.f=Uc,zl.f=Fl.f=Mc,Wl.f=Lc,tc.f=function(t){return wc(Ql(t),t)},xl&&(Kl(hc,"description",{configurable:!0,get:function(){return cc(this).description}}),Zl(dc,"propertyIsEnumerable",Nc,{unsafe:!0}))),Dl({global:!0,constructor:!0,wrap:!0,forced:!Il,sham:!Il},{Symbol:fc}),ac(jl(_c),(function(t){ec(t)})),Dl({target:oc,stat:!0,forced:!Il},{useSetter:function(){Dc=!0},useSimple:function(){Dc=!1}}),Dl({target:"Object",stat:!0,forced:!Il,sham:!xl},{create:function(t,e){return void 0===e?Bl(t):Ic(Bl(t),e)},defineProperty:xc,defineProperties:Ic,getOwnPropertyDescriptor:Uc}),Dl({target:"Object",stat:!0,forced:!Il},{getOwnPropertyNames:Mc}),rc(),nc(fc,oc),Xl[sc]=!0;var Pc=pe&&!!Symbol.for&&!!Symbol.keyFor,Yc=aa,kc=ne,Rc=Ze,Bc=Do,jc=Fe,zc=Pc,Fc=jc("string-to-symbol-registry"),Wc=jc("symbol-to-string-registry");Yc({target:"Symbol",stat:!0,forced:!zc},{for:function(t){var e=Bc(t);if(Rc(Fc,e))return Fc[e];var r=kc("Symbol")(e);return Fc[e]=r,Wc[r]=e,r}});var $c=aa,Vc=Ze,Hc=Ae,Gc=Se,Zc=Pc,Kc=Fe("symbol-to-string-registry");$c({target:"Symbol",stat:!0,forced:!Zc},{keyFor:function(t){if(!Hc(t))throw new TypeError(Gc(t)+" is not a symbol");if(Vc(Kc,t))return Kc[t]}});var qc=yt,Xc=Function.prototype,Jc=Xc.apply,Qc=Xc.call,td="object"==typeof Reflect&&Reflect.apply||(qc?Qc.bind(Jc):function(){return Qc.apply(Jc,arguments)}),ed=Nt([].slice),rd=Ju,nd=Xt,id=Pt,ad=Do,sd=Nt([].push),od=aa,ud=ne,ld=td,cd=gt,dd=Nt,fd=pt,hd=Xt,pd=Ae,md=ed,yd=pe,vd=String,Td=ud("JSON","stringify"),gd=dd(/./.exec),Ad=dd("".charAt),bd=dd("".charCodeAt),Sd=dd("".replace),Ed=dd(1..toString),_d=/[\uD800-\uDFFF]/g,Dd=/^[\uD800-\uDBFF]$/,Cd=/^[\uDC00-\uDFFF]$/,Od=!yd||fd((function(){var t=ud("Symbol")("stringify detection");return"[null]"!==Td([t])||"{}"!==Td({a:t})||"{}"!==Td(Object(t))})),wd=fd((function(){return'"\\udf06\\ud834"'!==Td("\udf06\ud834")||'"\\udead"'!==Td("\udead")})),xd=function(t,e){var r=md(arguments),n=function(t){if(nd(t))return t;if(rd(t)){for(var e=t.length,r=[],n=0;n<e;n++){var i=t[n];"string"==typeof i?sd(r,i):("number"==typeof i||"Number"===id(i)||"String"===id(i))&&sd(r,ad(i))}var a=r.length,s=!0;return function(t,e){if(s)return s=!1,e;if(rd(this))return e;for(var n=0;n<a;n++)if(r[n]===t)return e}}}(e);if(hd(n)||void 0!==t&&!pd(t))return r[1]=function(t,e){if(hd(n)&&(e=cd(n,this,vd(t),e)),!pd(e))return e},ld(Td,null,r)},Id=function(t,e,r){var n=Ad(r,e-1),i=Ad(r,e+1);return gd(Dd,t)&&!gd(Cd,i)||gd(Cd,t)&&!gd(Dd,n)?"\\u"+Ed(bd(t,0),16):t};Td&&od({target:"JSON",stat:!0,arity:3,forced:Od||wd},{stringify:function(t,e,r){var n=md(arguments),i=ld(Od?xd:Td,null,n);return wd&&"string"==typeof i?Sd(i,_d,Id):i}});var Nd=Ni,Ud=Ve;aa({target:"Object",stat:!0,forced:!pe||pt((function(){Nd.f(1)}))},{getOwnPropertySymbols:function(t){var e=Nd.f;return e?e(Ud(t)):[]}});var Md=aa,Ld=mt,Pd=Nt,Yd=Ze,kd=Xt,Rd=ie,Bd=Do,jd=$u,zd=Fi,Fd=ft.Symbol,Wd=Fd&&Fd.prototype;if(Ld&&kd(Fd)&&(!("description"in Wd)||void 0!==Fd().description)){var $d={},Vd=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:Bd(arguments[0]),e=Rd(Wd,this)?new Fd(t):void 0===t?Fd():Fd(t);return""===t&&($d[e]=!0),e};zd(Vd,Fd),Vd.prototype=Wd,Wd.constructor=Vd;var Hd="Symbol(description detection)"===String(Fd("description detection")),Gd=Pd(Wd.valueOf),Zd=Pd(Wd.toString),Kd=/^Symbol\((.*)\)[^)]+$/,qd=Pd("".replace),Xd=Pd("".slice);jd(Wd,"description",{configurable:!0,get:function(){var t=Gd(this);if(Yd($d,t))return"";var e=Zd(t),r=Hd?Xd(e,7,-1):qd(e,Kd,"$1");return""===r?void 0:r}}),Md({global:!0,constructor:!0,forced:!0},{Symbol:Vd})}var Jd=So,Qd=mo?{}.toString:function(){return"[object "+Jd(this)+"]"};mo||ii(Object.prototype,"toString",Qd,{unsafe:!0});var tf=Xt,ef=te,rf=Ms,nf=Nt(1..valueOf),af=$t,sf=Do,of="\t\n\v\f\r \u2028\u2029\ufeff",uf=Nt("".replace),lf=RegExp("^["+of+"]+"),cf=RegExp("(^|[^"+of+"])["+of+"]+$"),df=function(t){return function(e){var r=sf(af(e));return 1&t&&(r=uf(r,lf,"")),2&t&&(r=uf(r,cf,"$1")),r}},ff={start:df(1),end:df(2),trim:df(3)},hf=aa,pf=mt,mf=ft,yf=ca,vf=Nt,Tf=Xi,gf=Ze,Af=ie,bf=Ae,Sf=mr,Ef=pt,_f=ai.f,Df=ht.f,Cf=Lr.f,Of=nf,wf=ff.trim,xf="Number",If=mf[xf];yf[xf];var Nf=If.prototype,Uf=mf.TypeError,Mf=vf("".slice),Lf=vf("".charCodeAt),Pf=Tf(xf,!If(" 0o1")||!If("0b1")||If("+0x1")),Yf=function(t){var e=arguments.length<1?0:If(function(t){var e=Sf(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,i,a,s,o,u,l=Sf(t,"number");if(bf(l))throw new Uf("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=wf(l),43===(e=Lf(l,0))||45===e){if(88===(r=Lf(l,2))||120===r)return NaN}else if(48===e){switch(Lf(l,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(a=Mf(l,2)).length,o=0;o<s;o++)if((u=Lf(a,o))<48||u>i)return NaN;return parseInt(a,n)}return+l}(e)}(t));return function(t){return Af(Nf,t)&&Ef((function(){Of(t)}))}(this)?function(t,e,r){var n,i;return rf&&tf(n=e.constructor)&&n!==r&&ef(i=n.prototype)&&i!==r.prototype&&rf(t,i),t}(Object(e),this,Yf):e};Yf.prototype=Nf,Pf&&(Nf.constructor=Yf),hf({global:!0,constructor:!0,wrap:!0,forced:Pf},{Number:Yf}),Pf&&function(t,e){for(var r,n=pf?_f(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;n.length>i;i++)gf(e,r=n[i])&&!gf(t,r)&&Cf(t,r,Df(e,r))}(yf[xf],If);var kf={};Object.defineProperty(kf,"__esModule",{value:!0}),kf.LogLevel=void 0;var Rf=function(t){return t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Fatal=4]="Fatal",t}({});kf.LogLevel=Rf,Object.defineProperty(la,"__esModule",{value:!0}),la.ConsoleLogger=void 0,la.buildConsoleLogger=function(t){return new Wf(t)};var Bf=kf;function jf(t){return(jf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ff(n.key),n)}}function Ff(t){var e=function(t,e){if("object"!==jf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==jf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===jf(e)?e:String(e)}var Wf=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),function(t,e,r){(e=Ff(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(this,"context",void 0),this.context=e||{}}return function(t,e,r){e&&zf(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"formatMessage",value:function(t,e,r){var n="["+Bf.LogLevel[e].toUpperCase()+"] ";return r&&r.app&&(n+=r.app+": "),"string"==typeof t?n+t:(n+="Unexpected ".concat(t.name),t.message&&(n+=' "'.concat(t.message,'"')),e===Bf.LogLevel.Debug&&t.stack&&(n+="\n\nStack trace:\n".concat(t.stack)),n)}},{key:"log",value:function(t,e,r){var n,i;if(!("number"==typeof(null===(n=this.context)||void 0===n?void 0:n.level)&&t<(null===(i=this.context)||void 0===i?void 0:i.level)))switch("object"===jf(e)&&void 0===(null==r?void 0:r.error)&&(r.error=e),t){case Bf.LogLevel.Debug:L.debug(this.formatMessage(e,Bf.LogLevel.Debug,r),r);break;case Bf.LogLevel.Info:L.info(this.formatMessage(e,Bf.LogLevel.Info,r),r);break;case Bf.LogLevel.Warn:L.warn(this.formatMessage(e,Bf.LogLevel.Warn,r),r);break;case Bf.LogLevel.Error:L.error(this.formatMessage(e,Bf.LogLevel.Error,r),r);break;case Bf.LogLevel.Fatal:default:L.error(this.formatMessage(e,Bf.LogLevel.Fatal,r),r)}}},{key:"debug",value:function(t,e){this.log(Bf.LogLevel.Debug,t,Object.assign({},this.context,e))}},{key:"info",value:function(t,e){this.log(Bf.LogLevel.Info,t,Object.assign({},this.context,e))}},{key:"warn",value:function(t,e){this.log(Bf.LogLevel.Warn,t,Object.assign({},this.context,e))}},{key:"error",value:function(t,e){this.log(Bf.LogLevel.Error,t,Object.assign({},this.context,e))}},{key:"fatal",value:function(t,e){this.log(Bf.LogLevel.Fatal,t,Object.assign({},this.context,e))}}]),t}();la.ConsoleLogger=Wf;var $f={},Vf={},Hf={};const Gf="object"==typeof P&&P.env&&P.env.NODE_DEBUG&&/\bsemver\b/i.test(P.env.NODE_DEBUG)?(...t)=>L.error("SEMVER",...t):()=>{};var Zf=Gf,Kf={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},qf={exports:{}};!function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=Kf,a=Zf,s=(e=t.exports={}).re=[],o=e.safeRe=[],u=e.src=[],l=e.t={};let c=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[d,n]],h=(t,e,r)=>{const n=(t=>{for(const[e,r]of f)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=c++;a(t,i,e),l[t]=i,u[i]=e,s[i]=new RegExp(e,r?"g":void 0),o[i]=new RegExp(n,r?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),h("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${d}+`),h("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),h("FULL",`^${u[l.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),h("LOOSE",`^${u[l.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),h("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),h("COERCERTL",u[l.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",h("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",h("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(qf,qf.exports);var Xf=qf.exports;const Jf=Object.freeze({loose:!0}),Qf=Object.freeze({});const th=/^[0-9]+$/,eh=(t,e)=>{const r=th.test(t),n=th.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1};var rh={compareIdentifiers:eh,rcompareIdentifiers:(t,e)=>eh(e,t)};const nh=Zf,{MAX_LENGTH:ih,MAX_SAFE_INTEGER:ah}=Kf,{safeRe:sh,t:oh}=Xf,uh=t=>t?"object"!=typeof t?Jf:t:Qf,{compareIdentifiers:lh}=rh;var ch=class t{constructor(e,r){if(r=uh(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ih)throw new TypeError(`version is longer than ${ih} characters`);nh("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=e.trim().match(r.loose?sh[oh.LOOSE]:sh[oh.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ah||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ah||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ah||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<ah)return e}return t})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(nh("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if("string"==typeof e&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),lh(this.major,e.major)||lh(this.minor,e.minor)||lh(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{const t=this.prerelease[r],n=e.prerelease[r];if(nh("prerelease compare",r,t,n),void 0===t&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===t)return-1;if(t!==n)return lh(t,n)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{const t=this.build[r],n=e.build[r];if(nh("prerelease compare",r,t,n),void 0===t&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===t)return-1;if(t!==n)return lh(t,n)}while(++r)}inc(t,e,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(r)?1:0;if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let n=[e,t];!1===r&&(n=[e]),0===lh(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const dh=ch;const fh=(t,e,r=!1)=>{if(t instanceof dh)return t;try{return new dh(t,e)}catch(t){if(!r)return null;throw t}};var hh=(t,e)=>{const r=fh(t,e);return r?r.version:null};const ph=ch;Object.defineProperty(Hf,"__esModule",{value:!0});var mh=(t,e)=>new ph(t,e).major;function yh(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var vh=yh(hh),Th=yh(mh),gh=function(){function t(t){"function"==typeof t.getVersion&&vh.default(t.getVersion())?Th.default(t.getVersion())!==Th.default(this.getVersion())&&L.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):L.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}return t.prototype.getVersion=function(){return"3.0.2"},t.prototype.subscribe=function(t,e){this.bus.subscribe(t,e)},t.prototype.unsubscribe=function(t,e){this.bus.unsubscribe(t,e)},t.prototype.emit=function(t,e){this.bus.emit(t,e)},t}(),Ah=function(){function t(){this.handlers=new Map}return t.prototype.getVersion=function(){return"3.0.2"},t.prototype.subscribe=function(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).concat(e))},t.prototype.unsubscribe=function(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).filter((function(t){return t!=e})))},t.prototype.emit=function(t,e){(this.handlers.get(t)||[]).forEach((function(t){try{t(e)}catch(t){L.error("could not invoke event listener",t)}}))},t}(),bh=(typeof window.OC<"u"&&window.OC._eventBus&&typeof window._nc_event_bus>"u"&&(L.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window._nc_event_bus<"u"?new gh(window._nc_event_bus):window._nc_event_bus=new Ah);Hf.ProxyBus=gh,Hf.SimpleBus=Ah,Hf.emit=function(t,e){bh.emit(t,e)},Hf.subscribe=function(t,e){bh.subscribe(t,e)},Hf.unsubscribe=function(t,e){bh.unsubscribe(t,e)},Object.defineProperty(Vf,"__esModule",{value:!0});var Sh=Hf,Eh=document.getElementsByTagName("head")[0],_h=Eh?Eh.getAttribute("data-requesttoken"):null,Dh=[];Sh.subscribe("csrf-token-update",(function(t){_h=t.token,Dh.forEach((function(e){try{e(t.token)}catch(t){L.error("error updating CSRF token observer",t)}}))}));var Ch=function(t,e){return t?t.getAttribute(e):null},Oh=document.getElementsByTagName("head")[0],wh=Ch(Oh,"data-user"),xh=Ch(Oh,"data-user-displayname"),Ih=!(typeof OC>"u")&&OC.isUserAdmin();Vf.getCurrentUser=function(){return null===wh?null:{uid:wh,displayName:xh,isAdmin:Ih}},Vf.getRequestToken=function(){return _h},Vf.onRequestTokenUpdate=function(t){Dh.push(t)},Object.defineProperty($f,"__esModule",{value:!0}),$f.LoggerBuilder=void 0;var Nh=Vf,Uh=kf;function Mh(t){return(Mh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Yh(n.key),n)}}function Ph(t,e,r){return(e=Yh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yh(t){var e=function(t,e){if("object"!==Mh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Mh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Mh(e)?e:String(e)}var kh=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),Ph(this,"context",void 0),Ph(this,"factory",void 0),this.context={},this.factory=e}return function(t,e,r){e&&Lh(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"setApp",value:function(t){return this.context.app=t,this}},{key:"setLogLevel",value:function(t){return this.context.level=t,this}},{key:"setUid",value:function(t){return this.context.uid=t,this}},{key:"detectUser",value:function(){var t=(0,Nh.getCurrentUser)();return null!==t&&(this.context.uid=t.uid),this}},{key:"detectLogLevel",value:function(){var t=this;return function e(){var r,n;"complete"===document.readyState||"interactive"===document.readyState?(t.context.level=null!==(r=null===(n=window._oc_config)||void 0===n?void 0:n.loglevel)&&void 0!==r?r:Uh.LogLevel.Warn,window._oc_debug&&(t.context.level=Uh.LogLevel.Debug),document.removeEventListener("readystatechange",e)):document.addEventListener("readystatechange",e)}(),this}},{key:"build",value:function(){return void 0===this.context.level&&this.detectLogLevel(),this.factory(this.context)}}]),t}();$f.LoggerBuilder=kh,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LogLevel",{enumerable:!0,get:function(){return n.LogLevel}}),t.getLogger=function(){return i().build()},t.getLoggerBuilder=i;var e=la,r=$f,n=kf;function i(){return new r.LoggerBuilder(e.buildConsoleLogger)}}(ct);const Rh=ct.getLoggerBuilder().detectUser().setApp("@nextcloud/calendar-availability-vue").build();var Bh=n(14596),jh=n(56580),zh=n.n(jh),Fh=n(77958);const Wh=zh()((t=>(f.Z.defaults.headers["X-Requested-With"]="XMLHttpRequest",Bh.lD().patch("request",f.Z),Bh.eI((0,d.generateRemoteUrl)(`dav/${t}/${(0,Fh.ts)().uid}`))))),$h=(0,n(17499).IY)().setApp("dav").detectUser().build();var Vh=n(19642),Hh=n(13888),Gh=n(25108);const Zh={name:"AvailabilityForm",components:{NcButton:o.Z,NcCheckboxRadioSwitch:Vh.Z,CalendarAvailability:Z,NcTimezonePicker:Hh.Z},data:()=>({loading:!0,saving:!1,timezone:(new Intl.DateTimeFormat)?.resolvedOptions()?.timeZone??"UTC",slots:{MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]},automated:"yes"===(0,p.j)("dav","user_status_automation")}),computed:{timeZonePickerId:()=>`tz-${(Math.random()+1).toString(36).substring(7)}`},async mounted(){try{const t=await async function(){const t=Wh("calendars"),e=await t.customRequest("inbox",{method:"PROPFIND",data:'<?xml version="1.0"?>\n\t\t\t<x0:propfind xmlns:x0="DAV:">\n\t\t\t <x0:prop>\n\t\t\t\t<x1:calendar-availability xmlns:x1="urn:ietf:params:xml:ns:caldav"/>\n\t\t\t </x0:prop>\n\t\t\t</x0:propfind>'}),r=await(0,Bh.sw)(e.data);if(!r)return;const n=r?.multistatus?.response[0]?.propstat?.prop["calendar-availability"];return n?function(t){const e=nt.parse(t),r=new nt.Component(e),n=r.getFirstSubcomponent("vavailability");let i;const a=r.getFirstSubcomponent("vtimezone");a&&(i=a.getFirstProperty("tzid").getFirstValue());const s=n.getAllSubcomponents("available"),o={MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]};return s.forEach((t=>{const e=t.getFirstProperty("dtstart").getFirstValue().toJSDate(),r=t.getFirstProperty("dtend").getFirstValue().toJSDate(),n=t.getFirstProperty("rrule");"WEEKLY"===n.getFirstValue().freq?n.getFirstValue().getComponent("BYDAY").forEach((t=>{o[t].push({start:e.getTime()/1e3,end:r.getTime()/1e3})})):Rh.warn("rrule not supported",{rrule:n.toICALString()})})),{slots:o,timezoneId:i}}(n):void 0}();if(t){const{slots:e,timezoneId:r}=t;this.slots=e,r&&(this.timezone=r),Gh.info("availability loaded",this.slots,this.timezoneId)}else Gh.info("no availability is set"),this.slots={MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]}}catch(e){Gh.error("could not load existing availability",e),(0,m.x2)(t("dav","Failed to load availability"))}finally{this.loading=!1}},methods:{async save(){try{this.saving=!0,await async function(t,e){const r=function(t,e){const r=new Y.Component("vcalendar");r.addPropertyWithValue("prodid","Nextcloud DAV app");const n=J(e);if(n){const t=new Y.Component(Y.parse(n));r.addSubcomponent(t)}else{const t=new Y.Component("vtimezone");t.addPropertyWithValue("tzid",e),r.addSubcomponent(t)}const i=new Y.Component("vavailability"),a=t.reduce(((t,e)=>{var r;const n=new Date(1e3*e.start),i=new Date(1e3*e.end),a=[n.getHours(),n.getMinutes(),i.getHours(),i.getMinutes()].join("-");return{...t,[a]:[...null!=(r=t[a])?r:[],e]}}),{});return Object.keys(a).map((t=>{const r=a[t],n=r[0].start,i=r[0].end,s=r.map((t=>t.day)).filter(((t,e,r)=>r.indexOf(t)===e)),o=new Y.Component("available");return o.addPropertyWithValue("dtstart",Y.Time.fromJSDate(new Date(1e3*n),!1)).setParameter("tzid",e),o.addPropertyWithValue("dtend",Y.Time.fromJSDate(new Date(1e3*i),!1)).setParameter("tzid",e),o.addPropertyWithValue("uid",lt()),o.addPropertyWithValue("rrule",{freq:"WEEKLY",byday:s}),o})).map(i.addSubcomponent.bind(i)),r.addSubcomponent(i),r.toString()}([...Object.keys(t).flatMap((e=>t[e].map((t=>({...t,day:e})))))],e);$h.debug("New availability ical created",{vavailability:r});const n=Wh("calendars");await n.customRequest("inbox",{method:"PROPPATCH",data:`<?xml version="1.0"?>\n\t\t\t<x0:propertyupdate xmlns:x0="DAV:">\n\t\t\t <x0:set>\n\t\t\t\t<x0:prop>\n\t\t\t\t <x1:calendar-availability xmlns:x1="urn:ietf:params:xml:ns:caldav">${r}</x1:calendar-availability>\n\t\t\t\t</x0:prop>\n\t\t\t </x0:set>\n\t\t\t</x0:propertyupdate>`})}(this.slots,this.timezone),this.automated?await async function(){return await f.Z.post((0,d.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}),{configValue:"yes"})}():await async function(){return await f.Z.delete((0,d.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}))}(),(0,m.s$)(t("dav","Saved availability"))}catch(e){Gh.error("could not save availability",e),(0,m.x2)(t("dav","Failed to save availability"))}finally{this.saving=!1}}}};var Kh=n(43842),qh={};qh.styleTagTransform=w(),qh.setAttributes=_(),qh.insert=S().bind(null,"head"),qh.domAPI=A(),qh.insertStyleElement=C(),T()(Kh.Z,qh),Kh.Z&&Kh.Z.locals&&Kh.Z.locals;var Xh=(0,N.Z)(Zh,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"time-zone"},[e("label",{staticClass:"time-zone__heading",attrs:{for:`vs${t.timeZonePickerId}__combobox`}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Time zone:"))+"\n\t\t")]),t._v(" "),e("span",{staticClass:"time-zone-text"},[e("NcTimezonePicker",{attrs:{uid:t.timeZonePickerId},model:{value:t.timezone,callback:function(e){t.timezone=e},expression:"timezone"}})],1)]),t._v(" "),e("CalendarAvailability",{attrs:{slots:t.slots,loading:t.loading,"l10n-to":t.$t("dav","to"),"l10n-delete-slot":t.$t("dav","Delete slot"),"l10n-empty-day":t.$t("dav","No working hours set"),"l10n-add-slot":t.$t("dav","Add slot"),"l10n-monday":t.$t("dav","Monday"),"l10n-tuesday":t.$t("dav","Tuesday"),"l10n-wednesday":t.$t("dav","Wednesday"),"l10n-thursday":t.$t("dav","Thursday"),"l10n-friday":t.$t("dav","Friday"),"l10n-saturday":t.$t("dav","Saturday"),"l10n-sunday":t.$t("dav","Sunday")},on:{"update:slots":function(e){t.slots=e}}}),t._v(" "),e("NcCheckboxRadioSwitch",{attrs:{checked:t.automated},on:{"update:checked":function(e){t.automated=e}}},[t._v("\n\t\t"+t._s(t.$t("dav",'Automatically set user status to "Do not disturb" outside of availability to mute all notifications.'))+"\n\t")]),t._v(" "),e("NcButton",{attrs:{disabled:t.loading||t.saving,type:"primary"},on:{click:t.save}},[t._v("\n\t\t"+t._s(t.$t("dav","Save"))+"\n\t")])],1)}),[],!1,null,"65b5061b",null);const Jh=Xh.exports,Qh={name:"Availability",components:{NcSettingsSection:s.Z,AbsenceForm:M,AvailabilityForm:Jh},data:()=>({hideAbsenceSettings:(0,p.j)("dav","hide_absence_settings",!0)})};var tp=(0,N.Z)(Qh,(function(){var t=this,e=t._self._c;return e("div",[e("NcSettingsSection",{attrs:{name:t.$t("dav","Availability"),description:t.$t("dav","If you configure your working hours, other users will see when you are out of office when they book a meeting.")}},[e("AvailabilityForm")],1),t._v(" "),t.hideAbsenceSettings?t._e():e("NcSettingsSection",{attrs:{name:t.$t("dav","Absence"),description:t.$t("dav","Configure your next absence period.")}},[e("AbsenceForm")],1)],1)}),[],!1,null,null,null);const ep=tp.exports;i.default.prototype.$t=a.Iu,new(i.default.extend(ep))({}).$mount("#settings-personal-availability")},49980:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(87537),i=r.n(n),a=r(23645),s=r.n(a)()(i());s.push([t.id,".absence[data-v-5a6b66ca]{display:flex;flex-direction:column;gap:5px}.absence__dates[data-v-5a6b66ca]{display:flex;gap:10px;width:100%}.absence__dates__picker[data-v-5a6b66ca]{flex:1 auto}.absence__dates__picker[data-v-5a6b66ca] .native-datetime-picker--input{margin-bottom:0}.absence__buttons[data-v-5a6b66ca]{display:flex;gap:5px}","",{version:3,sources:["webpack://./apps/dav/src/components/AbsenceForm.vue"],names:[],mappings:"AACA,0BACC,YAAA,CACA,qBAAA,CACA,OAAA,CAEA,iCACC,YAAA,CACA,QAAA,CACA,UAAA,CAEA,yCACC,WAAA,CAEA,wEACC,eAAA,CAKH,mCACC,YAAA,CACA,OAAA",sourcesContent:["\n.absence {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 5px;\n\n\t&__dates {\n\t\tdisplay: flex;\n\t\tgap: 10px;\n\t\twidth: 100%;\n\n\t\t&__picker {\n\t\t\tflex: 1 auto;\n\n\t\t\t::v-deep .native-datetime-picker--input {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__buttons {\n\t\tdisplay: flex;\n\t\tgap: 5px;\n\t}\n}\n"],sourceRoot:""}]);const o=s},43842:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(87537),i=r.n(n),a=r(23645),s=r.n(a)()(i());s.push([t.id,"[data-v-65b5061b] .availability-day{padding:0 10px 0 10px;position:absolute}[data-v-65b5061b] .availability-slots{display:flex;white-space:normal}[data-v-65b5061b] .availability-slot{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}[data-v-65b5061b] .availability-slot-group{display:flex;flex-direction:column}[data-v-65b5061b] .mx-input-wrapper{width:85px}[data-v-65b5061b] .mx-datepicker{width:97px}[data-v-65b5061b] .multiselect{border:1px solid var(--color-border-dark);width:120px}.time-zone[data-v-65b5061b]{padding:32px 12px 12px 0;display:flex;flex-wrap:wrap}.time-zone__heading[data-v-65b5061b]{margin-right:calc(var(--default-grid-baseline)*2);line-height:var(--default-clickable-area);font-weight:bold}.grid-table[data-v-65b5061b]{display:grid;margin-bottom:32px;grid-column-gap:24px;grid-row-gap:6px;grid-template-columns:min-content auto min-content;max-width:500px}.button[data-v-65b5061b]{align-self:flex-end}[data-v-65b5061b] .label-weekday{position:relative;display:inline-flex;padding-top:4px;align-self:center}[data-v-65b5061b] .delete-slot{padding-bottom:unset}[data-v-65b5061b] .add-another{align-self:center}.to-text[data-v-65b5061b]{padding-right:12px}.empty-content[data-v-65b5061b]{color:var(--color-text-lighter);margin-top:4px;align-self:center}","",{version:3,sources:["webpack://./apps/dav/src/components/AvailabilityForm.vue"],names:[],mappings:"AACA,oCACC,qBAAA,CACA,iBAAA,CAED,sCACC,YAAA,CACA,kBAAA,CAED,qCACC,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,cAAA,CAED,2CACC,YAAA,CACA,qBAAA,CAED,oCACC,UAAA,CAED,iCACC,UAAA,CAED,+BACC,yCAAA,CACA,WAAA,CAED,4BACC,wBAAA,CACG,YAAA,CACA,cAAA,CAEH,qCACC,iDAAA,CACA,yCAAA,CACA,gBAAA,CAGF,6BACC,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,gBAAA,CACA,kDAAA,CACA,eAAA,CAED,yBACC,mBAAA,CAED,iCACC,iBAAA,CACA,mBAAA,CACA,eAAA,CACA,iBAAA,CAGD,+BACC,oBAAA,CAGD,+BACC,iBAAA,CAGD,0BACC,kBAAA,CAGD,gCACC,+BAAA,CACA,cAAA,CACA,iBAAA",sourcesContent:["\n:deep(.availability-day) {\n\tpadding: 0 10px 0 10px;\n\tposition: absolute;\n}\n:deep(.availability-slots) {\n\tdisplay: flex;\n\twhite-space: normal;\n}\n:deep(.availability-slot) {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tflex-wrap: wrap;\n}\n:deep(.availability-slot-group) {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n:deep(.mx-input-wrapper) {\n\twidth: 85px;\n}\n:deep(.mx-datepicker) {\n\twidth: 97px;\n}\n:deep(.multiselect) {\n\tborder: 1px solid var(--color-border-dark);\n\twidth: 120px;\n}\n.time-zone {\n\tpadding: 32px 12px 12px 0;\n display: flex;\n flex-wrap: wrap;\n\n\t&__heading {\n\t\tmargin-right: calc(var(--default-grid-baseline) * 2);\n\t\tline-height: var(--default-clickable-area);\n\t\tfont-weight: bold;\n\t}\n}\n.grid-table {\n\tdisplay: grid;\n\tmargin-bottom: 32px;\n\tgrid-column-gap: 24px;\n\tgrid-row-gap: 6px;\n\tgrid-template-columns: min-content auto min-content;\n\tmax-width: 500px;\n}\n.button {\n\talign-self: flex-end;\n}\n:deep(.label-weekday) {\n\tposition: relative;\n\tdisplay: inline-flex;\n\tpadding-top: 4px;\n\talign-self: center;\n}\n\n:deep(.delete-slot) {\n\tpadding-bottom: unset;\n}\n\n:deep(.add-another) {\n\talign-self: center;\n}\n\n.to-text {\n\tpadding-right: 12px;\n}\n\n.empty-content {\n\tcolor: var(--color-text-lighter);\n\tmargin-top: 4px;\n\talign-self: center;\n}\n"],sourceRoot:""}]);const o=s},96425:(t,e,r)=>{var n=r(3118),i=r(9435);function a(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}a.prototype=n(i.prototype),a.prototype.constructor=a,t.exports=a},7548:(t,e,r)=>{var n=r(3118),i=r(9435);function a(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}a.prototype=n(i.prototype),a.prototype.constructor=a,t.exports=a},21078:(t,e,r)=>{var n=r(62488),i=r(37285);t.exports=function t(e,r,a,s,o){var u=-1,l=e.length;for(a||(a=i),o||(o=[]);++u<l;){var c=e[u];r>0&&a(c)?r>1?t(c,r-1,a,s,o):n(o,c):s||(o[o.length]=c)}return o}},9435:t=>{t.exports=function(){}},28045:(t,e,r)=>{var n=r(6557),i=r(89250),a=i?function(t,e){return i.set(t,e),t}:n;t.exports=a},52157:t=>{var e=Math.max;t.exports=function(t,r,n,i){for(var a=-1,s=t.length,o=n.length,u=-1,l=r.length,c=e(s-o,0),d=Array(l+c),f=!i;++u<l;)d[u]=r[u];for(;++a<o;)(f||a<s)&&(d[n[a]]=t[a]);for(;c--;)d[u++]=t[a++];return d}},14054:t=>{var e=Math.max;t.exports=function(t,r,n,i){for(var a=-1,s=t.length,o=-1,u=n.length,l=-1,c=r.length,d=e(s-u,0),f=Array(d+c),h=!i;++a<d;)f[a]=t[a];for(var p=a;++l<c;)f[p+l]=r[l];for(;++o<u;)(h||a<s)&&(f[p+n[o]]=t[a++]);return f}},97991:t=>{t.exports=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}},22402:(t,e,r)=>{var n=r(71774),i=r(55639);t.exports=function(t,e,r){var a=1&e,s=n(t);return function e(){return(this&&this!==i&&this instanceof e?s:t).apply(a?r:this,arguments)}}},71774:(t,e,r)=>{var n=r(3118),i=r(13218);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=n(t.prototype),a=t.apply(r,e);return i(a)?a:r}}},46347:(t,e,r)=>{var n=r(96874),i=r(71774),a=r(86935),s=r(94487),o=r(20893),u=r(46460),l=r(55639);t.exports=function(t,e,r){var c=i(t);return function i(){for(var d=arguments.length,f=Array(d),h=d,p=o(i);h--;)f[h]=arguments[h];var m=d<3&&f[0]!==p&&f[d-1]!==p?[]:u(f,p);return(d-=m.length)<r?s(t,e,a,i.placeholder,void 0,f,m,void 0,void 0,r-d):n(this&&this!==l&&this instanceof i?c:t,this,f)}}},86935:(t,e,r)=>{var n=r(52157),i=r(14054),a=r(97991),s=r(71774),o=r(94487),u=r(20893),l=r(90451),c=r(46460),d=r(55639);t.exports=function t(e,r,f,h,p,m,y,v,T,g){var A=128&r,b=1&r,S=2&r,E=24&r,_=512&r,D=S?void 0:s(e);return function C(){for(var O=arguments.length,w=Array(O),x=O;x--;)w[x]=arguments[x];if(E)var I=u(C),N=a(w,I);if(h&&(w=n(w,h,p,E)),m&&(w=i(w,m,y,E)),O-=N,E&&O<g){var U=c(w,I);return o(e,r,t,C.placeholder,f,w,U,v,T,g-O)}var M=b?f:this,L=S?M[e]:e;return O=w.length,v?w=l(w,v):_&&O>1&&w.reverse(),A&&T<O&&(w.length=T),this&&this!==d&&this instanceof C&&(L=D||s(L)),L.apply(M,w)}}},84375:(t,e,r)=>{var n=r(96874),i=r(71774),a=r(55639);t.exports=function(t,e,r,s){var o=1&e,u=i(t);return function e(){for(var i=-1,l=arguments.length,c=-1,d=s.length,f=Array(d+l),h=this&&this!==a&&this instanceof e?u:t;++c<d;)f[c]=s[c];for(;l--;)f[c++]=arguments[++i];return n(h,o?r:this,f)}}},94487:(t,e,r)=>{var n=r(86528),i=r(258),a=r(69255);t.exports=function(t,e,r,s,o,u,l,c,d,f){var h=8&e;e|=h?32:64,4&(e&=~(h?64:32))||(e&=-4);var p=[t,e,o,h?u:void 0,h?l:void 0,h?void 0:u,h?void 0:l,c,d,f],m=r.apply(void 0,p);return n(t)&&i(m,p),m.placeholder=s,a(m,t,e)}},97727:(t,e,r)=>{var n=r(28045),i=r(22402),a=r(46347),s=r(86935),o=r(84375),u=r(66833),l=r(63833),c=r(258),d=r(69255),f=r(40554),h=Math.max;t.exports=function(t,e,r,p,m,y,v,T){var g=2&e;if(!g&&"function"!=typeof t)throw new TypeError("Expected a function");var A=p?p.length:0;if(A||(e&=-97,p=m=void 0),v=void 0===v?v:h(f(v),0),T=void 0===T?T:f(T),A-=m?m.length:0,64&e){var b=p,S=m;p=m=void 0}var E=g?void 0:u(t),_=[t,e,r,p,m,b,S,y,v,T];if(E&&l(_,E),t=_[0],e=_[1],r=_[2],p=_[3],m=_[4],!(T=_[9]=void 0===_[9]?g?0:t.length:h(_[9]-A,0))&&24&e&&(e&=-25),e&&1!=e)D=8==e||16==e?a(t,e,T):32!=e&&33!=e||m.length?s.apply(void 0,_):o(t,e,r,p);else var D=i(t,e,r);return d((E?n:c)(D,_),t,e)}},99021:(t,e,r)=>{var n=r(85564),i=r(45357),a=r(30061);t.exports=function(t){return a(i(t,void 0,n),t+"")}},66833:(t,e,r)=>{var n=r(89250),i=r(50308),a=n?function(t){return n.get(t)}:i;t.exports=a},97658:(t,e,r)=>{var n=r(52060),i=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",r=n[e],a=i.call(n,e)?r.length:0;a--;){var s=r[a],o=s.func;if(null==o||o==t)return s.name}return e}},20893:t=>{t.exports=function(t){return t.placeholder}},58775:t=>{var e=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;t.exports=function(t){var n=t.match(e);return n?n[1].split(r):[]}},83112:t=>{var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,r){var n=r.length;if(!n)return t;var i=n-1;return r[i]=(n>1?"& ":"")+r[i],r=r.join(n>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+r+"] */\n")}},37285:(t,e,r)=>{var n=r(62705),i=r(35694),a=r(1469),s=n?n.isConcatSpreadable:void 0;t.exports=function(t){return a(t)||i(t)||!!(s&&t&&t[s])}},86528:(t,e,r)=>{var n=r(96425),i=r(66833),a=r(97658),s=r(8111);t.exports=function(t){var e=a(t),r=s[e];if("function"!=typeof r||!(e in n.prototype))return!1;if(t===r)return!0;var o=i(r);return!!o&&t===o[0]}},63833:(t,e,r)=>{var n=r(52157),i=r(14054),a=r(46460),s="__lodash_placeholder__",o=Math.min;t.exports=function(t,e){var r=t[1],u=e[1],l=r|u,c=l<131,d=128==u&&8==r||128==u&&256==r&&t[7].length<=e[8]||384==u&&e[7].length<=e[8]&&8==r;if(!c&&!d)return t;1&u&&(t[2]=e[2],l|=1&r?0:4);var f=e[3];if(f){var h=t[3];t[3]=h?n(h,f,e[4]):f,t[4]=h?a(t[3],s):e[4]}return(f=e[5])&&(h=t[5],t[5]=h?i(h,f,e[6]):f,t[6]=h?a(t[5],s):e[6]),(f=e[7])&&(t[7]=f),128&u&&(t[8]=null==t[8]?e[8]:o(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=l,t}},89250:(t,e,r)=>{var n=r(70577),i=n&&new n;t.exports=i},52060:t=>{t.exports={}},90451:(t,e,r)=>{var n=r(278),i=r(65776),a=Math.min;t.exports=function(t,e){for(var r=t.length,s=a(e.length,r),o=n(t);s--;){var u=e[s];t[s]=i(u,r)?o[u]:void 0}return t}},46460:t=>{var e="__lodash_placeholder__";t.exports=function(t,r){for(var n=-1,i=t.length,a=0,s=[];++n<i;){var o=t[n];o!==r&&o!==e||(t[n]=e,s[a++]=n)}return s}},258:(t,e,r)=>{var n=r(28045),i=r(21275)(n);t.exports=i},69255:(t,e,r)=>{var n=r(58775),i=r(83112),a=r(30061),s=r(87241);t.exports=function(t,e,r){var o=e+"";return a(t,i(o,s(n(o),r)))}},87241:(t,e,r)=>{var n=r(77412),i=r(47443),a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return n(a,(function(r){var n="_."+r[0];e&r[1]&&!i(t,n)&&t.push(n)})),t.sort()}},21913:(t,e,r)=>{var n=r(96425),i=r(7548),a=r(278);t.exports=function(t){if(t instanceof n)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=a(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},39514:(t,e,r)=>{var n=r(97727);t.exports=function(t,e,r){return e=r?void 0:e,e=t&&null==e?t.length:e,n(t,128,void 0,void 0,void 0,void 0,e)}},40087:(t,e,r)=>{var n=r(97727);function i(t,e,r){var a=n(t,8,void 0,void 0,void 0,void 0,void 0,e=r?void 0:e);return a.placeholder=i.placeholder,a}i.placeholder={},t.exports=i},85564:(t,e,r)=>{var n=r(21078);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},84599:(t,e,r)=>{var n=r(68836),i=r(69306),a=Array.prototype.push;function s(t,e){return 2==e?function(e,r){return t(e,r)}:function(e){return t(e)}}function o(t){for(var e=t?t.length:0,r=Array(e);e--;)r[e]=t[e];return r}function u(t,e){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var i=n[0]=e.apply(void 0,n);return t.apply(void 0,n),i}}}t.exports=function t(e,r,l,c){var d="function"==typeof r,f=r===Object(r);if(f&&(c=l,l=r,r=void 0),null==l)throw new TypeError;c||(c={});var h={cap:!("cap"in c)||c.cap,curry:!("curry"in c)||c.curry,fixed:!("fixed"in c)||c.fixed,immutable:!("immutable"in c)||c.immutable,rearg:!("rearg"in c)||c.rearg},p=d?l:i,m="curry"in c&&c.curry,y="fixed"in c&&c.fixed,v="rearg"in c&&c.rearg,T=d?l.runInContext():void 0,g=d?l:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},A=g.ary,b=g.assign,S=g.clone,E=g.curry,_=g.forEach,D=g.isArray,C=g.isError,O=g.isFunction,w=g.isWeakMap,x=g.keys,I=g.rearg,N=g.toInteger,U=g.toPath,M=x(n.aryMethod),L={castArray:function(t){return function(){var e=arguments[0];return D(e)?t(o(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],r=t(arguments[0],e),n=r.length;return h.cap&&"number"==typeof e?(e=e>2?e-2:1,n&&n<=e?r:s(r,e)):r}},mixin:function(t){return function(e){var r=this;if(!O(r))return t(r,Object(e));var n=[];return _(x(e),(function(t){O(e[t])&&n.push([t,r.prototype[t]])})),t(r,Object(e)),_(n,(function(t){var e=t[1];O(e)?r.prototype[t[0]]=e:delete r.prototype[t[0]]})),r}},nthArg:function(t){return function(e){var r=e<0?1:N(e)+1;return E(t(e),r)}},rearg:function(t){return function(e,r){var n=r?r.length:0;return E(t(e,r),n)}},runInContext:function(r){return function(n){return t(e,r(n),c)}}};function P(t,e,r){if(h.fixed&&(y||!n.skipFixed[t])){var i=n.methodSpread[t],s=i&&i.start;return void 0===s?A(e,r):function(t,e){return function(){for(var r=arguments.length,n=r-1,i=Array(r);r--;)i[r]=arguments[r];var s=i[e],o=i.slice(0,e);return s&&a.apply(o,s),e!=n&&a.apply(o,i.slice(e+1)),t.apply(this,o)}}(e,s)}return e}function Y(t,e,r){return h.rearg&&r>1&&(v||!n.skipRearg[t])?I(e,n.methodRearg[t]||n.aryRearg[r]):e}function k(t,e){for(var r=-1,n=(e=U(e)).length,i=n-1,a=S(Object(t)),s=a;null!=s&&++r<n;){var o=e[r],u=s[o];null==u||O(u)||C(u)||w(u)||(s[o]=S(r==i?u:Object(u))),s=s[o]}return a}function R(e,r){var i=n.aliasToReal[e]||e,a=n.remap[i]||i,s=c;return function(e){var n=d?T:g,o=d?T[a]:r,u=b(b({},s),e);return t(n,i,o,u)}}function B(t,e){return function(){var r=arguments.length;if(!r)return t();for(var n=Array(r);r--;)n[r]=arguments[r];var i=h.rearg?0:r-1;return n[i]=e(n[i]),t.apply(void 0,n)}}function j(t,e,r){var i,a=n.aliasToReal[t]||t,l=e,c=L[a];return c?l=c(e):h.immutable&&(n.mutate.array[a]?l=u(e,o):n.mutate.object[a]?l=u(e,function(t){return function(e){return t({},e)}}(e)):n.mutate.set[a]&&(l=u(e,k))),_(M,(function(t){return _(n.aryMethod[t],(function(e){if(a==e){var r=n.methodSpread[a],o=r&&r.afterRearg;return i=o?P(a,Y(a,l,t),t):Y(a,P(a,l,t),t),i=function(t,e,r){return m||h.curry&&r>1?E(e,r):e}(0,i=function(t,e){if(h.cap){var r=n.iterateeRearg[t];if(r)return function(t,e){return B(t,(function(t){var r=e.length;return function(t,e){return 2==e?function(e,r){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(I(s(t,r),e),r)}))}(e,r);var i=!d&&n.iterateeAry[t];if(i)return function(t,e){return B(t,(function(t){return"function"==typeof t?s(t,e):t}))}(e,i)}return e}(a,i),t),!1}})),!i})),i||(i=l),i==e&&(i=m?E(i,1):function(){return e.apply(this,arguments)}),i.convert=R(a,e),i.placeholder=e.placeholder=r,i}if(!f)return j(r,l,p);var z=l,F=[];return _(M,(function(t){_(n.aryMethod[t],(function(t){var e=z[n.remap[t]||t];e&&F.push([t,j(t,e,z)])}))})),_(x(z),(function(t){var e=z[t];if("function"==typeof e){for(var r=F.length;r--;)if(F[r][0]==t)return;e.convert=R(t,e),F.push([t,e])}})),_(F,(function(t){z[t[0]]=t[1]})),z.convert=function(t){return z.runInContext.convert(t)(void 0)},z.placeholder=z,_(x(z),(function(t){_(n.realToAlias[t]||[],(function(e){z[e]=z[t]}))})),z}},68836:(t,e)=>{e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,r=e.aliasToReal,n={};for(var i in r){var a=r[i];t.call(n,a)?n[a].push(i):n[a]=[i]}return n}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},4269:(t,e,r)=>{t.exports={ary:r(39514),assign:r(44037),clone:r(66678),curry:r(40087),forEach:r(77412),isArray:r(1469),isError:r(64647),isFunction:r(23560),isWeakMap:r(81018),iteratee:r(72594),keys:r(280),rearg:r(4963),toInteger:r(40554),toPath:r(30084)}},92822:(t,e,r)=>{var n=r(84599),i=r(4269);t.exports=function(t,e,r){return n(i,t,e,r)}},56580:(t,e,r)=>{var n=r(92822)("memoize",r(88306));n.placeholder=r(69306),t.exports=n},69306:t=>{t.exports={}},64647:(t,e,r)=>{var n=r(44239),i=r(37005),a=r(68630);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!a(t)}},81018:(t,e,r)=>{var n=r(64160),i=r(37005);t.exports=function(t){return i(t)&&"[object WeakMap]"==n(t)}},72594:(t,e,r)=>{var n=r(85990),i=r(67206);t.exports=function(t){return i("function"==typeof t?t:n(t,1))}},4963:(t,e,r)=>{var n=r(97727),i=r(99021)((function(t,e){return n(t,256,void 0,void 0,void 0,e)}));t.exports=i},18601:(t,e,r)=>{var n=r(14841);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},40554:(t,e,r)=>{var n=r(18601);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},30084:(t,e,r)=>{var n=r(29932),i=r(278),a=r(1469),s=r(33448),o=r(55514),u=r(40327),l=r(79833);t.exports=function(t){return a(t)?n(t,u):s(t)?[t]:i(o(l(t)))}},8111:(t,e,r)=>{var n=r(96425),i=r(7548),a=r(9435),s=r(1469),o=r(37005),u=r(21913),l=Object.prototype.hasOwnProperty;function c(t){if(o(t)&&!s(t)&&!(t instanceof n)){if(t instanceof i)return t;if(l.call(t,"__wrapped__"))return u(t)}return new i(t)}c.prototype=a.prototype,c.prototype.constructor=c,t.exports=c},42761:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg=="},87210:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K"},94659:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg=="}},a={};function s(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={id:t,loaded:!1,exports:{}};return i[t].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=i,e=[],s.O=(t,r,n,i)=>{if(!r){var a=1/0;for(c=0;c<e.length;c++){r=e[c][0],n=e[c][1],i=e[c][2];for(var o=!0,u=0;u<r.length;u++)(!1&i||a>=i)&&Object.keys(s.O).every((t=>s.O[t](r[u])))?r.splice(u--,1):(o=!1,i<a&&(a=i));if(o){e.splice(c--,1);var l=n();void 0!==l&&(t=l)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[r,n,i]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,r)=>(s.f[r](t,e),e)),[])),s.u=t=>t+"-"+t+".js?v="+{701:"fa881667124db3ba4ced",2250:"62d7d19e457ac44372ef",3240:"29c327d1e4e42959b82f"}[t],s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},n="nextcloud:",s.l=(t,e,i,a)=>{if(r[t])r[t].push(e);else{var o,u;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==n+i){o=d;break}}o||(u=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",n+i),o.src=t),r[t]=[e];var f=(e,n)=>{o.onerror=o.onload=null,clearTimeout(h);var i=r[t];if(delete r[t],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((t=>t(n))),e)return e(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=f.bind(null,o.onerror),o.onload=f.bind(null,o.onload),u&&document.head.appendChild(o)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),s.j=3347,(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&!t;)t=r[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{s.b=document.baseURI||self.location.href;var t={3347:0};s.f.j=(e,r)=>{var n=s.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,i)=>n=t[e]=[r,i]));r.push(n[2]=i);var a=s.p+s.u(e),o=new Error;s.l(a,(r=>{if(s.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;o.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,n[1](o)}}),"chunk-"+e,e)}},s.O.j=e=>0===t[e];var e=(e,r)=>{var n,i,a=r[0],o=r[1],u=r[2],l=0;if(a.some((e=>0!==t[e]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);if(u)var c=u(s)}for(e&&e(r);l<a.length;l++)i=a[l],s.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return s.O(c)},r=self.webpackChunknextcloud=self.webpackChunknextcloud||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),s.nc=void 0;var o=s.O(void 0,[7874],(()=>s(76970)));o=s.O(o)})(); +//# sourceMappingURL=dav-settings-personal-availability.js.map?v=87784966c948cd9335ff
\ No newline at end of file |