!function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/js/",e(e.s=583)}([function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e(7))},function(t,n){var e=Function.prototype,r=e.bind,i=e.call,a=r&&r.bind(i);t.exports=r?function(t){return t&&a(i,t)}:function(t){return t&&function(){return i.apply(t,arguments)}}},function(t,n,e){"use strict";function r(t,n,e,r,i,a,o,s){var l,c="function"==typeof t?t.options:t;if(n&&(c.render=n,c.staticRenderFns=e,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,n){return l.call(n),u(t,n)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}e.d(n,"a",(function(){return r}))},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"function"==typeof t}},function(t,n,e){"use strict";var r=e(125),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function o(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==i.call(t))return!1;var n=Object.getPrototypeOf(t);return null===n||n===Object.prototype}function c(t){return"[object Function]"===i.call(t)}function u(t,n){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var e=0,r=t.length;et.length)&&(n=t.length);for(var e=0,r=new Array(n);ei(t,"",n);n.generateRemoteUrl=t=>window.location.protocol+"//"+window.location.host+(t=>a()+"/remote.php/"+t)(t);n.generateOcsUrl=(t,n,e)=>{const i=1===Object.assign({ocsVersion:2},e||{}).ocsVersion?1:2;return window.location.protocol+"//"+window.location.host+a()+"/ocs/v"+i+".php"+r(t,n,e)};const r=(t,n,e)=>{const r=Object.assign({escape:!0},e||{});return"/"!==t.charAt(0)&&(t="/"+t),i=(i=n||{})||{},t.replace(/{([^{}]*)}/g,(function(t,n){var e=i[n];return r.escape?"string"==typeof e||"number"==typeof e?encodeURIComponent(e.toString()):encodeURIComponent(t):"string"==typeof e||"number"==typeof e?e.toString():t}));var i};n.generateUrl=(t,n,e)=>{const i=Object.assign({noRewrite:!1},e||{});return!0!==OC.config.modRewriteWorking||i.noRewrite?a()+"/index.php"+r(t,n,e):a()+r(t,n,e)};n.imagePath=(t,n)=>-1===n.indexOf(".")?i(t,"img",n+".svg"):i(t,"img",n);const i=(t,n,e)=>{const r=-1!==OC.coreApps.indexOf(t);let i=a();return"php"!==e.substring(e.length-3)||r?"php"===e.substring(e.length-3)||r?(i+="settings"!==t&&"core"!==t&&"search"!==t||"ajax"!==n?"/":"/index.php/",r||(i+="apps/"),""!==t&&(i+=t+="/"),n&&(i+=n+"/"),i+=e):(i=OC.appswebroots[t],n&&(i+="/"+n+"/"),"/"!==i.substring(i.length-1)&&(i+="/"),i+=e):(i+="/index.php/apps/"+t,"index.php"!==e&&(i+="/",n&&(i+=encodeURI(n+"/")),i+=e)),i};n.generateFilePath=i;const a=()=>OC.webroot;n.getRootUrl=a},function(t,n,e){var r=e(115),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();t.exports=a},function(t,n,e){var r=e(1),i=e(28),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return a(i(t),n)}},function(t,n,e){"use strict";e.r(n),function(t,e){ /*! * Vue.js v2.6.14 * (c) 2014-2021 Evan You * Released under the MIT License. */ var r=Object.freeze({});function i(t){return null==t}function a(t){return null!=t}function o(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function l(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function d(t){return"[object RegExp]"===c.call(t)}function p(t){var n=parseFloat(String(t));return n>=0&&Math.floor(n)===n&&isFinite(t)}function f(t){return a(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function A(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function h(t){var n=parseFloat(t);return isNaN(n)?t:n}function T(t,n){for(var e=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(e,1)}}var v=Object.prototype.hasOwnProperty;function E(t,n){return v.call(t,n)}function b(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var C=/-(\w)/g,D=b((function(t){return t.replace(C,(function(t,n){return n?n.toUpperCase():""}))})),y=b((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,R=b((function(t){return t.replace(S,"-$1").toLowerCase()}));var N=Function.prototype.bind?function(t,n){return t.bind(n)}:function(t,n){function e(e){var r=arguments.length;return r?r>1?t.apply(n,arguments):t.call(n,e):t.call(n)}return e._length=t.length,e};function F(t,n){n=n||0;for(var e=t.length-n,r=new Array(e);e--;)r[e]=t[e+n];return r}function O(t,n){for(var e in n)t[e]=n[e];return t}function B(t){for(var n={},e=0;e0,K=W&&W.indexOf("edge/")>0,J=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===V),X=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),tt={}.watch,nt=!1;if(H)try{var et={};Object.defineProperty(et,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,et)}catch(t){}var rt=function(){return void 0===j&&(j=!H&&!z&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),j},it=H&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,st="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);ot="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var lt=x,ct=0,ut=function(){this.id=ct++,this.subs=[]};ut.prototype.addSub=function(t){this.subs.push(t)},ut.prototype.removeSub=function(t){g(this.subs,t)},ut.prototype.depend=function(){ut.target&&ut.target.addDep(this)},ut.prototype.notify=function(){var t=this.subs.slice();for(var n=0,e=t.length;n-1)if(a&&!E(i,"default"))o=!1;else if(""===o||o===R(t)){var l=Ut(String,i.type);(l<0||s0&&(pn((l=t(l,(e||"")+"_"+r))[0])&&pn(u)&&(d[c]=mt(u.text+l[0].text),l.shift()),d.push.apply(d,l)):s(l)?pn(u)?d[c]=mt(u.text+l):""!==l&&d.push(mt(l)):pn(l)&&pn(u)?d[c]=mt(u.text+l.text):(o(n._isVList)&&a(l.tag)&&i(l.key)&&a(e)&&(l.key="__vlist"+e+"_"+r+"__"),d.push(l)));return d}(t):void 0}function pn(t){return a(t)&&a(t.text)&&!1===t.isComment}function fn(t,n){if(t){for(var e=Object.create(null),r=st?Reflect.ownKeys(t):Object.keys(t),i=0;i0,o=t?!!t.$stable:!a,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(o&&e&&e!==r&&s===e.$key&&!a&&!e.$hasNormal)return e;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=gn(n,l,t[l]))}else i={};for(var c in n)c in i||(i[c]=vn(n,c));return t&&Object.isExtensible(t)&&(t._normalized=i),P(i,"$stable",o),P(i,"$key",s),P(i,"$hasNormal",a),i}function gn(t,n,e){var r=function(){var t=arguments.length?e.apply(null,arguments):e({}),n=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:dn(t))&&t[0];return t&&(!n||1===t.length&&n.isComment&&!Tn(n))?void 0:t};return e.proxy&&Object.defineProperty(t,n,{get:r,enumerable:!0,configurable:!0}),r}function vn(t,n){return function(){return t[n]}}function En(t,n){var e,r,i,o,s;if(Array.isArray(t)||"string"==typeof t)for(e=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(ce=function(){return ue.now()})}function de(){var t,n;for(le=ce(),oe=!0,ee.sort((function(t,n){return t.id-n.id})),se=0;sese&&ee[e].id>t.id;)e--;ee.splice(e+1,0,t)}else ee.push(t);ae||(ae=!0,en(de))}}(this)},fe.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var n=this.value;if(this.value=t,this.user){var e='callback for watcher "'+this.expression+'"';$t(this.cb,this.vm,[t,n],this.vm,e)}else this.cb.call(this.vm,t,n)}}},fe.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fe.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fe.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Ae={enumerable:!0,configurable:!0,get:x,set:x};function he(t,n,e){Ae.get=function(){return this[n][e]},Ae.set=function(t){this[n][e]=t},Object.defineProperty(t,e,Ae)}function Te(t){t._watchers=[];var n=t.$options;n.props&&function(t,n){var e=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&Dt(!1);var a=function(a){i.push(a);var o=Lt(a,n,e,t);Rt(r,a,o),a in t||he(t,"_props",a)};for(var o in n)a(o);Dt(!0)}(t,n.props),n.methods&&function(t,n){t.$options.props;for(var e in n)t[e]="function"!=typeof n[e]?x:N(n[e],t)}(t,n.methods),n.data?function(t){var n=t.$options.data;u(n=t._data="function"==typeof n?function(t,n){pt();try{return t.call(n,n)}catch(t){return jt(t,n,"data()"),{}}finally{ft()}}(n,t):n||{})||(n={});var e=Object.keys(n),r=t.$options.props,i=(t.$options.methods,e.length);for(;i--;){var a=e[i];0,r&&E(r,a)||(o=void 0,36!==(o=(a+"").charCodeAt(0))&&95!==o&&he(t,"_data",a))}var o;St(n,!0)}(t):St(t._data={},!0),n.computed&&function(t,n){var e=t._computedWatchers=Object.create(null),r=rt();for(var i in n){var a=n[i],o="function"==typeof a?a:a.get;0,r||(e[i]=new fe(t,o||x,x,me)),i in t||ge(t,i,a)}}(t,n.computed),n.watch&&n.watch!==tt&&function(t,n){for(var e in n){var r=n[e];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof t?t.split(",").indexOf(n)>-1:!!d(t)&&t.test(n)}function Fe(t,n){var e=t.cache,r=t.keys,i=t._vnode;for(var a in e){var o=e[a];if(o){var s=o.name;s&&!n(s)&&Oe(e,a,r,i)}}}function Oe(t,n,e,r){var i=t[n];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[n]=null,g(e,n)}!function(t){t.prototype._init=function(t){var n=this;n._uid=Ce++,n._isVue=!0,t&&t._isComponent?function(t,n){var e=t.$options=Object.create(t.constructor.options),r=n._parentVnode;e.parent=n.parent,e._parentVnode=r;var i=r.componentOptions;e.propsData=i.propsData,e._parentListeners=i.listeners,e._renderChildren=i.children,e._componentTag=i.tag,n.render&&(e.render=n.render,e.staticRenderFns=n.staticRenderFns)}(n,t):n.$options=Mt(De(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(t){var n=t.$options,e=n.parent;if(e&&!n.abstract){for(;e.$options.abstract&&e.$parent;)e=e.$parent;e.$children.push(t)}t.$parent=e,t.$root=e?e.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(n),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var n=t.$options._parentListeners;n&&qn(t,n)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,e=t.$vnode=n._parentVnode,i=e&&e.context;t.$slots=An(n._renderChildren,i),t.$scopedSlots=r,t._c=function(n,e,r,i){return Un(t,n,e,r,i,!1)},t.$createElement=function(n,e,r,i){return Un(t,n,e,r,i,!0)};var a=e&&e.data;Rt(t,"$attrs",a&&a.attrs||r,null,!0),Rt(t,"$listeners",n._parentListeners||r,null,!0)}(n),ne(n,"beforeCreate"),function(t){var n=fn(t.$options.inject,t);n&&(Dt(!1),Object.keys(n).forEach((function(e){Rt(t,e,n[e])})),Dt(!0))}(n),Te(n),function(t){var n=t.$options.provide;n&&(t._provided="function"==typeof n?n.call(t):n)}(n),ne(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(ye),function(t){var n={get:function(){return this._data}},e={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",n),Object.defineProperty(t.prototype,"$props",e),t.prototype.$set=Nt,t.prototype.$delete=Ft,t.prototype.$watch=function(t,n,e){if(u(n))return be(this,t,n,e);(e=e||{}).user=!0;var r=new fe(this,t,n,e);if(e.immediate){var i='callback for immediate watcher "'+r.expression+'"';pt(),$t(n,this,[r.value],this,i),ft()}return function(){r.teardown()}}}(ye),function(t){var n=/^hook:/;t.prototype.$on=function(t,e){var r=this;if(Array.isArray(t))for(var i=0,a=t.length;i1?F(e):e;for(var r=F(arguments,1),i='event handler for "'+t+'"',a=0,o=e.length;aparseInt(this.max)&&Oe(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Oe(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(n){Fe(t,(function(t){return Ne(n,t)}))})),this.$watch("exclude",(function(n){Fe(t,(function(t){return!Ne(n,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,n=zn(t),e=n&&n.componentOptions;if(e){var r=Re(e),i=this.include,a=this.exclude;if(i&&(!r||!Ne(i,r))||a&&r&&Ne(a,r))return n;var o=this.cache,s=this.keys,l=null==n.key?e.Ctor.cid+(e.tag?"::"+e.tag:""):n.key;o[l]?(n.componentInstance=o[l].componentInstance,g(s,l),s.push(l)):(this.vnodeToCache=n,this.keyToCache=l),n.data.keepAlive=!0}return n||t&&t[0]}}};!function(t){var n={get:function(){return Z}};Object.defineProperty(t,"config",n),t.util={warn:lt,extend:O,mergeOptions:Mt,defineReactive:Rt},t.set=Nt,t.delete=Ft,t.nextTick=en,t.observable=function(t){return St(t),t},t.options=Object.create(null),Y.forEach((function(n){t.options[n+"s"]=Object.create(null)})),t.options._base=t,O(t.options.components,xe),function(t){t.use=function(t){var n=this._installedPlugins||(this._installedPlugins=[]);if(n.indexOf(t)>-1)return this;var e=F(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):"function"==typeof t&&t.apply(null,e),n.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Mt(this.options,t),this}}(t),Se(t),function(t){Y.forEach((function(n){t[n]=function(t,e){return e?("component"===n&&u(e)&&(e.name=e.name||t,e=this.options._base.extend(e)),"directive"===n&&"function"==typeof e&&(e={bind:e,update:e}),this.options[n+"s"][t]=e,e):this.options[n+"s"][t]}}))}(t)}(ye),Object.defineProperty(ye.prototype,"$isServer",{get:rt}),Object.defineProperty(ye.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ye,"FunctionalRenderContext",{value:In}),ye.version="2.6.14";var we=T("style,class"),_e=T("input,textarea,option,select,progress"),ke=T("contenteditable,draggable,spellcheck"),Ie=T("events,caret,typing,plaintext-only"),Me=T("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ye="http://www.w3.org/1999/xlink",Le=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Ze=function(t){return Le(t)?t.slice(6,t.length):""},Ge=function(t){return null==t||!1===t};function Pe(t){for(var n=t.data,e=t,r=t;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(n=Ue(r.data,n));for(;a(e=e.parent);)e&&e.data&&(n=Ue(n,e.data));return function(t,n){if(a(t)||a(n))return je(t,$e(n));return""}(n.staticClass,n.class)}function Ue(t,n){return{staticClass:je(t.staticClass,n.staticClass),class:a(t.class)?[t.class,n.class]:n.class}}function je(t,n){return t?n?t+" "+n:t:n||""}function $e(t){return Array.isArray(t)?function(t){for(var n,e="",r=0,i=t.length;r-1?fr(t,n,e):Me(n)?Ge(e)?t.removeAttribute(n):(e="allowfullscreen"===n&&"EMBED"===t.tagName?"true":n,t.setAttribute(n,e)):ke(n)?t.setAttribute(n,function(t,n){return Ge(n)||"false"===n?"false":"contenteditable"===t&&Ie(n)?n:"true"}(n,e)):Le(n)?Ge(e)?t.removeAttributeNS(Ye,Ze(n)):t.setAttributeNS(Ye,n,e):fr(t,n,e)}function fr(t,n,e){if(Ge(e))t.removeAttribute(n);else{if(Q&&!q&&"TEXTAREA"===t.tagName&&"placeholder"===n&&""!==e&&!t.__ieph){var r=function(n){n.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(n,e)}}var Ar={create:dr,update:dr};function hr(t,n){var e=n.elm,r=n.data,o=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=Pe(n),l=e._transitionClasses;a(l)&&(s=je(s,$e(l))),s!==e._prevClass&&(e.setAttribute("class",s),e._prevClass=s)}}var Tr,mr={create:hr,update:hr};function gr(t,n,e){var r=Tr;return function i(){var a=n.apply(null,arguments);null!==a&&br(t,i,e,r)}}var vr=Wt&&!(X&&Number(X[1])<=53);function Er(t,n,e,r){if(vr){var i=le,a=n;n=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return a.apply(this,arguments)}}Tr.addEventListener(t,n,nt?{capture:e,passive:r}:e)}function br(t,n,e,r){(r||Tr).removeEventListener(t,n._wrapper||n,e)}function Cr(t,n){if(!i(t.data.on)||!i(n.data.on)){var e=n.data.on||{},r=t.data.on||{};Tr=n.elm,function(t){if(a(t.__r)){var n=Q?"change":"input";t[n]=[].concat(t.__r,t[n]||[]),delete t.__r}a(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(e),ln(e,r,Er,br,gr,n.context),Tr=void 0}}var Dr,yr={create:Cr,update:Cr};function Sr(t,n){if(!i(t.data.domProps)||!i(n.data.domProps)){var e,r,o=n.elm,s=t.data.domProps||{},l=n.data.domProps||{};for(e in a(l.__ob__)&&(l=n.data.domProps=O({},l)),s)e in l||(o[e]="");for(e in l){if(r=l[e],"textContent"===e||"innerHTML"===e){if(n.children&&(n.children.length=0),r===s[e])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===e&&"PROGRESS"!==o.tagName){o._value=r;var c=i(r)?"":String(r);Rr(o,c)&&(o.value=c)}else if("innerHTML"===e&&Ve(o.tagName)&&i(o.innerHTML)){(Dr=Dr||document.createElement("div")).innerHTML=""+r+"";for(var u=Dr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;u.firstChild;)o.appendChild(u.firstChild)}else if(r!==s[e])try{o[e]=r}catch(t){}}}}function Rr(t,n){return!t.composing&&("OPTION"===t.tagName||function(t,n){var e=!0;try{e=document.activeElement!==t}catch(t){}return e&&t.value!==n}(t,n)||function(t,n){var e=t.value,r=t._vModifiers;if(a(r)){if(r.number)return h(e)!==h(n);if(r.trim)return e.trim()!==n.trim()}return e!==n}(t,n))}var Nr={create:Sr,update:Sr},Fr=b((function(t){var n={},e=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(e);r.length>1&&(n[r[0].trim()]=r[1].trim())}})),n}));function Or(t){var n=Br(t.style);return t.staticStyle?O(t.staticStyle,n):n}function Br(t){return Array.isArray(t)?B(t):"string"==typeof t?Fr(t):t}var xr,wr=/^--/,_r=/\s*!important$/,kr=function(t,n,e){if(wr.test(n))t.style.setProperty(n,e);else if(_r.test(e))t.style.setProperty(R(n),e.replace(_r,""),"important");else{var r=Mr(n);if(Array.isArray(e))for(var i=0,a=e.length;i-1?n.split(Zr).forEach((function(n){return t.classList.add(n)})):t.classList.add(n);else{var e=" "+(t.getAttribute("class")||"")+" ";e.indexOf(" "+n+" ")<0&&t.setAttribute("class",(e+n).trim())}}function Pr(t,n){if(n&&(n=n.trim()))if(t.classList)n.indexOf(" ")>-1?n.split(Zr).forEach((function(n){return t.classList.remove(n)})):t.classList.remove(n),t.classList.length||t.removeAttribute("class");else{for(var e=" "+(t.getAttribute("class")||"")+" ",r=" "+n+" ";e.indexOf(r)>=0;)e=e.replace(r," ");(e=e.trim())?t.setAttribute("class",e):t.removeAttribute("class")}}function Ur(t){if(t){if("object"==typeof t){var n={};return!1!==t.css&&O(n,jr(t.name||"v")),O(n,t),n}return"string"==typeof t?jr(t):void 0}}var jr=b((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),$r=H&&!q,Hr="transition",zr="transitionend",Vr="animation",Wr="animationend";$r&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Hr="WebkitTransition",zr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Vr="WebkitAnimation",Wr="webkitAnimationEnd"));var Qr=H?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function qr(t){Qr((function(){Qr(t)}))}function Kr(t,n){var e=t._transitionClasses||(t._transitionClasses=[]);e.indexOf(n)<0&&(e.push(n),Gr(t,n))}function Jr(t,n){t._transitionClasses&&g(t._transitionClasses,n),Pr(t,n)}function Xr(t,n,e){var r=ni(t,n),i=r.type,a=r.timeout,o=r.propCount;if(!i)return e();var s="transition"===i?zr:Wr,l=0,c=function(){t.removeEventListener(s,u),e()},u=function(n){n.target===t&&++l>=o&&c()};setTimeout((function(){l0&&(e="transition",u=o,d=a.length):"animation"===n?c>0&&(e="animation",u=c,d=l.length):d=(e=(u=Math.max(o,c))>0?o>c?"transition":"animation":null)?"transition"===e?a.length:l.length:0,{type:e,timeout:u,propCount:d,hasTransform:"transition"===e&&ti.test(r[Hr+"Property"])}}function ei(t,n){for(;t.length1}function li(t,n){!0!==n.data.show&&ii(n)}var ci=function(t){var n,e,r={},l=t.modules,c=t.nodeOps;for(n=0;nA?v(t,i(e[m+1])?null:e[m+1].elm,e,f,m,r):f>m&&b(n,p,A)}(p,T,m,e,u):a(m)?(a(t.text)&&c.setTextContent(p,""),v(p,null,m,0,m.length-1,e)):a(T)?b(T,0,T.length-1):a(t.text)&&c.setTextContent(p,""):t.text!==n.text&&c.setTextContent(p,n.text),a(A)&&a(f=A.hook)&&a(f=f.postpatch)&&f(t,n)}}}function S(t,n,e){if(o(e)&&a(t.parent))t.parent.data.pendingInsert=n;else for(var r=0;r-1,o.selected!==a&&(o.selected=a);else if(k(Ai(o),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function fi(t,n){return n.every((function(n){return!k(n,t)}))}function Ai(t){return"_value"in t?t._value:t.value}function hi(t){t.target.composing=!0}function Ti(t){t.target.composing&&(t.target.composing=!1,mi(t.target,"input"))}function mi(t,n){var e=document.createEvent("HTMLEvents");e.initEvent(n,!0,!0),t.dispatchEvent(e)}function gi(t){return!t.componentInstance||t.data&&t.data.transition?t:gi(t.componentInstance._vnode)}var vi={model:ui,show:{bind:function(t,n,e){var r=n.value,i=(e=gi(e)).data&&e.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(e.data.show=!0,ii(e,(function(){t.style.display=a}))):t.style.display=r?a:"none"},update:function(t,n,e){var r=n.value;!r!=!n.oldValue&&((e=gi(e)).data&&e.data.transition?(e.data.show=!0,r?ii(e,(function(){t.style.display=t.__vOriginalDisplay})):ai(e,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,n,e,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},Ei={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function bi(t){var n=t&&t.componentOptions;return n&&n.Ctor.options.abstract?bi(zn(n.children)):t}function Ci(t){var n={},e=t.$options;for(var r in e.propsData)n[r]=t[r];var i=e._parentListeners;for(var a in i)n[D(a)]=i[a];return n}function Di(t,n){if(/\d-keep-alive$/.test(n.tag))return t("keep-alive",{props:n.componentOptions.propsData})}var yi=function(t){return t.tag||Tn(t)},Si=function(t){return"show"===t.name},Ri={name:"transition",props:Ei,abstract:!0,render:function(t){var n=this,e=this.$slots.default;if(e&&(e=e.filter(yi)).length){0;var r=this.mode;0;var i=e[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var a=bi(i);if(!a)return i;if(this._leaving)return Di(t,i);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var l=(a.data||(a.data={})).transition=Ci(this),c=this._vnode,u=bi(c);if(a.data.directives&&a.data.directives.some(Si)&&(a.data.show=!0),u&&u.data&&!function(t,n){return n.key===t.key&&n.tag===t.tag}(a,u)&&!Tn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=O({},l);if("out-in"===r)return this._leaving=!0,cn(d,"afterLeave",(function(){n._leaving=!1,n.$forceUpdate()})),Di(t,i);if("in-out"===r){if(Tn(a))return c;var p,f=function(){p()};cn(l,"afterEnter",f),cn(l,"enterCancelled",f),cn(d,"delayLeave",(function(t){p=t}))}}return i}}},Ni=O({tag:String,moveClass:String},Ei);function Fi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Oi(t){t.data.newPos=t.elm.getBoundingClientRect()}function Bi(t){var n=t.data.pos,e=t.data.newPos,r=n.left-e.left,i=n.top-e.top;if(r||i){t.data.moved=!0;var a=t.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}delete Ni.mode;var xi={Transition:Ri,TransitionGroup:{props:Ni,beforeMount:function(){var t=this,n=this._update;this._update=function(e,r){var i=Jn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),n.call(t,e,r)}},render:function(t){for(var n=this.tag||this.$vnode.data.tag||"span",e=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=Ci(this),s=0;s-1?Qe[t]=n.constructor===window.HTMLUnknownElement||n.constructor===window.HTMLElement:Qe[t]=/HTMLUnknownElement/.test(n.toString())},O(ye.options.directives,vi),O(ye.options.components,xi),ye.prototype.__patch__=H?ci:x,ye.prototype.$mount=function(t,n){return function(t,n,e){var r;return t.$el=n,t.$options.render||(t.$options.render=Tt),ne(t,"beforeMount"),r=function(){t._update(t._render(),e)},new fe(t,r,x,{before:function(){t._isMounted&&!t._isDestroyed&&ne(t,"beforeUpdate")}},!0),e=!1,null==t.$vnode&&(t._isMounted=!0,ne(t,"mounted")),t}(this,t=t&&H?function(t){if("string"==typeof t){var n=document.querySelector(t);return n||document.createElement("div")}return t}(t):void 0,n)},H&&setTimeout((function(){Z.devtools&&it&&it.emit("init",ye)}),0),n.default=ye}.call(this,e(7),e(299).setImmediate)},function(t,n,e){var r=e(0),i=e(18),a=r.String,o=r.TypeError;t.exports=function(t){if(i(t))return t;throw o(a(t)+" is not an object")}},function(t,n){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},function(t,n,e){var r,i,a;ICAL=t.exports,ICAL.foldLength=75,ICAL.newLineChar="\r\n",ICAL.helpers={updateTimezones:function(t){var n,e,r,i,a,o;if(!t||"vcalendar"!==t.name)return t;for(n=t.getAllSubcomponents(),e=[],r={},a=0;a0&&"\\"===t[e-1]))return e;e+=1}return-1},binsearchInsert:function(t,n,e){if(!t.length)return 0;for(var r,i,a=0,o=t.length-1;a<=o;)if((i=e(n,t[r=a+Math.floor((o-a)/2)]))<0)o=r-1;else{if(!(i>0))break;a=r+1}return i<0?r:i>0?r+1:r},dumpn:function(){ICAL.debug&&("undefined"!=typeof console&&"log"in console?ICAL.helpers.dumpn=function(t){console.log(t)}:ICAL.helpers.dumpn=function(t){dump(t+"\n")},ICAL.helpers.dumpn(arguments[0]))},clone:function(t,n){if(t&&"object"==typeof t){if(t instanceof Date)return new Date(t.getTime());if("clone"in t)return t.clone();if(Array.isArray(t)){for(var e=[],r=0;r=15?T["date-time"].fromICAL(t):t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2)},toICAL:function(t){var n=t.length;return 10==n?t.substr(0,4)+t.substr(5,2)+t.substr(8,2):n>=19?T["date-time"].toICAL(t):t}},"date-time":{fromICAL:function(t){if(S.strict||8!=t.length){var n=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]&&(n+="Z"),n}return T.date.fromICAL(t)},toICAL:function(t){var n=t.length;if(10!=n||S.strict){if(n>=19){var e=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]&&(e+="Z"),e}return t}return T.date.toICAL(t)},decorate:function(t,n){return S.strict?ICAL.Time.fromDateTimeString(t,n):ICAL.Time.fromString(t,n)},undecorate:function(t){return t.toString()}},duration:{decorate:function(t){return ICAL.Duration.fromString(t)},undecorate:function(t){return t.toString()}},period:{fromICAL:function(t){var n=t.split("/");return n[0]=T["date-time"].fromICAL(n[0]),ICAL.Duration.isValueString(n[1])||(n[1]=T["date-time"].fromICAL(n[1])),n},toICAL:function(t){return S.strict||10!=t[0].length?t[0]=T["date-time"].toICAL(t[0]):t[0]=T.date.toICAL(t[0]),ICAL.Duration.isValueString(t[1])||(S.strict||10!=t[1].length?t[1]=T["date-time"].toICAL(t[1]):t[1]=T.date.toICAL(t[1])),t.join("/")},decorate:function(t,n){return ICAL.Period.fromJSON(t,n,!S.strict)},undecorate:function(t){return t.toJSON()}},recur:{fromICAL:function(t){return ICAL.Recur._stringToData(t,!0)},toICAL:function(t){var n="";for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e];"until"==e?r=r.length>10?T["date-time"].toICAL(r):T.date.toICAL(r):"wkst"==e?"number"==typeof r&&(r=ICAL.Recur.numericDayToIcalDay(r)):Array.isArray(r)&&(r=r.join(",")),n+=e.toUpperCase()+"="+r+";"}return n.substr(0,n.length-1)},decorate:function(t){return ICAL.Recur.fromData(t)},undecorate:function(t){return t.toJSON()}},time:{fromICAL:function(t){if(t.length<6)return t;var n=t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2);return"Z"===t[6]&&(n+="Z"),n},toICAL:function(t){if(t.length<8)return t;var n=t.substr(0,2)+t.substr(3,2)+t.substr(6,2);return"Z"===t[8]&&(n+="Z"),n}}}),m=ICAL.helpers.extend(A,{action:r,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:r,class:r,comment:r,completed:l,contact:r,created:l,description:r,dtend:s,dtstamp:l,dtstart:s,due:s,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:d,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":l,location:r,method:r,organizer:{defaultType:"cal-address"},"percent-complete":o,priority:o,prodid:r,"related-to":r,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":s,resources:i,"request-status":a,rrule:d,sequence:o,status:r,summary:r,transp:r,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:u,tzoffsetto:u,tzurl:c,tzid:r,tzname:r}),g=ICAL.helpers.extend(h,{text:e(t,n),uri:e(t,n),date:{decorate:function(t){return ICAL.VCardTime.fromDateAndOrTimeString(t,"date")},undecorate:function(t){return t.toString()},fromICAL:function(t){return 8==t.length?T.date.fromICAL(t):"-"==t[0]&&6==t.length?t.substr(0,4)+"-"+t.substr(4):t},toICAL:function(t){return 10==t.length?T.date.toICAL(t):"-"==t[0]&&7==t.length?t.substr(0,4)+t.substr(5):t}},time:{decorate:function(t){return ICAL.VCardTime.fromDateAndOrTimeString("T"+t,"time")},undecorate:function(t){return t.toString()},fromICAL:function(t){var n=g.time._splitZone(t,!0),e=n[0],r=n[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!=e.length||"-"!=e[0]&&"+"!=e[0]||(e=e.substr(0,3)+":"+e.substr(3)),r+e},toICAL:function(t){var n=g.time._splitZone(t),e=n[0],r=n[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!=e.length||"-"!=e[0]&&"+"!=e[0]||(e=e.substr(0,3)+e.substr(4)),r+e},_splitZone:function(t,n){var e,r,i=t.length-1,a=t.length-(n?5:6),o=t[a];return"Z"==t[i]?(e=t[i],r=t.substr(0,i)):t.length>6&&("-"==o||"+"==o)?(e=t.substr(a),r=t.substr(0,a)):(e="",r=t),[e,r]}},"date-time":{decorate:function(t){return ICAL.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 ICAL.VCardTime.fromDateAndOrTimeString(t,"date-and-or-time")},undecorate:function(t){return t.toString()},fromICAL:function(t){var n=t.split("T");return(n[0]?g.date.fromICAL(n[0]):"")+(n[1]?"T"+g.time.fromICAL(n[1]):"")},toICAL:function(t){var n=t.split("T");return g.date.toICAL(n[0])+(n[1]?"T"+g.time.toICAL(n[1]):"")}},timestamp:T["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/}}),v=ICAL.helpers.extend(A,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:p,bday:p,caladruri:c,caluri:c,clientpidmap:a,email:r,fburl:c,fn:r,gender:a,geo:c,impp:c,key:c,kind:r,lang:{defaultType:"language-tag"},logo:c,member:c,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:i,note:r,org:{defaultType:"text",structuredValue:";"},photo:c,related:c,rev:{defaultType:"timestamp"},role:r,sound:c,source:c,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:r,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:r}),E=ICAL.helpers.extend(h,{binary:T.binary,date:g.date,"date-time":g["date-time"],"phone-number":{},uri:T.uri,text:T.text,time:T.time,vcard:T.text,"utc-offset":{toICAL:function(t){return t.substr(0,7)},fromICAL:function(t){return t.substr(0,7)},decorate:function(t){return ICAL.UtcOffset.fromString(t)},undecorate:function(t){return t.toString()}}}),b=ICAL.helpers.extend(A,{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"]}}),C={value:T,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:["THISLANDFUTURE"]},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:m},D={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},y={value:E,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:b},S={strict:!0,defaultSet:C,defaultType:"unknown",components:{vcard:D,vcard3:y,vevent:C,vtodo:C,vjournal:C,valarm:C,vtimezone:C,daylight:C,standard:C},icalendar:C,vcard:D,vcard3:y,getDesignSet:function(t){return t&&t in S.components?S.components[t]:S.defaultSet}};return S}(),ICAL.stringify=function(){"use strict";var t=ICAL.design,n=ICAL.helpers;function e(t){"string"==typeof t[0]&&(t=[t]);for(var n=0,r=t.length,i="";n0&&("version"!==n[1][0][0]||"4.0"!==n[1][0][3])&&(c="vcard3"),r=r||t.getDesignSet(c);s1)throw new r("invalid ical body. component began but did not end");return n=null,1==e.length?e[0]:e}r.prototype=Error.prototype,i.property=function(t,e){var r={component:[[],[]],designSet:e||n.defaultSet};return i._handleContentLine(t,r),r.component[1][0]},i.component=function(t){return i(t)},i.ParserError=r,i._handleContentLine=function(t,e){var a,o,s,l,c,u,d=t.indexOf(":"),p=t.indexOf(";"),f={};if(-1!==p&&-1!==d&&p>d&&(p=-1),-1!==p){if(s=t.substring(0,p).toLowerCase(),-1==(c=i._parseParameters(t.substring(p),0,e.designSet))[2])throw new r("Invalid parameters in '"+t+"'");if(f=c[0],a=c[1].length+c[2]+p,-1===(o=t.substring(a).indexOf(":")))throw new r("Missing parameter value in '"+t+"'");l=t.substring(a+o+1)}else{if(-1===d)throw new r('invalid line (no token ";" or ":") "'+t+'"');if(s=t.substring(0,d).toLowerCase(),l=t.substring(d+1),"begin"===s){var A=[l.toLowerCase(),[],[]];return 1===e.stack.length?e.component.push(A):e.component[2].push(A),e.stack.push(e.component),e.component=A,void(e.designSet||(e.designSet=n.getDesignSet(e.component[0])))}if("end"===s)return void(e.component=e.stack.pop())}var h,T,m=!1,g=!1;s in e.designSet.property&&("multiValue"in(h=e.designSet.property[s])&&(m=h.multiValue),"structuredValue"in h&&(g=h.structuredValue),l&&"detectType"in h&&(u=h.detectType(l))),u||(u="value"in f?f.value.toLowerCase():h?h.defaultType:"unknown"),delete f.value,m&&g?T=[s,f,u,l=i._parseMultiValue(l,g,u,[],m,e.designSet,g)]:m?(T=[s,f,u],i._parseMultiValue(l,m,u,T,null,e.designSet,!1)):T=g?[s,f,u,l=i._parseMultiValue(l,g,u,[],null,e.designSet,g)]:[s,f,u,l=i._parseValue(l,u,e.designSet,!1)],"vcard"!==e.component[0]||0!==e.component[1].length||"version"===s&&"4.0"===l||(e.designSet=n.getDesignSet("vcard3")),e.component[1].push(T)},i._parseValue=function(t,n,e,r){return n in e.value&&"fromICAL"in e.value[n]?e.value[n].fromICAL(t,r):t},i._parseParameters=function(t,n,a){for(var o,s,l,c,u,d,p=n,f=0,A={},h=-1;!1!==f&&-1!==(f=e.unescapedIndexOf(t,"=",f+1));){if(0==(o=t.substr(p+1,f-p-1)).length)throw new r("Empty parameter name in '"+t+"'");if(d=!1,u=!1,c=(s=o.toLowerCase())in a.param&&a.param[s].valueType?a.param[s].valueType:"text",s in a.param&&(u=a.param[s].multiValue,a.param[s].multiValueSeparateDQuote&&(d=i._rfc6868Escape('"'+u+'"'))),'"'===t[f+1]){if(h=f+2,f=e.unescapedIndexOf(t,'"',h),u&&-1!=f)for(var T=!0;T;)t[f+1]==u&&'"'==t[f+2]?f=e.unescapedIndexOf(t,'"',f+3):T=!1;if(-1===f)throw new r('invalid line (no matching double quote) "'+t+'"');l=t.substr(h,f-h),-1===(p=e.unescapedIndexOf(t,";",f))&&(f=!1)}else{h=f+1;var m=e.unescapedIndexOf(t,";",h),g=e.unescapedIndexOf(t,":",h);-1!==g&&m>g?(m=g,f=!1):-1===m?(m=-1===g?t.length:g,f=!1):(p=m,f=m),l=t.substr(h,m-h)}if(l=i._rfc6868Escape(l),u){var v=d||u;l=i._parseMultiValue(l,v,c,[],null,a)}else l=i._parseValue(l,c,a);u&&s in A?Array.isArray(A[s])?A[s].push(l):A[s]=[A[s],l]:A[s]=l}return[A,l,h]},i._rfc6868Escape=function(t){return t.replace(/\^['n^]/g,(function(t){return a[t]}))};var a={"^'":'"',"^n":"\n","^^":"^"};return i._parseMultiValue=function(t,n,r,a,o,s,l){var c,u=0,d=0;if(0===n.length)return t;for(;-1!==(u=e.unescapedIndexOf(t,n,d));)c=t.substr(d,u-d),c=o?i._parseMultiValue(c,o,r,[],null,s,l):i._parseValue(c,r,s,l),a.push(c),d=u+n.length;return c=t.substr(d),c=o?i._parseMultiValue(c,o,r,[],null,s,l):i._parseValue(c,r,s,l),a.push(c),1==a.length?a[0]:a},i._eachLine=function(n,e){var r,i,a,o=n.length,s=n.search(t),l=s;do{a=(l=n.indexOf("\n",s)+1)>1&&"\r"===n[l-2]?2:1,0===l&&(l=o,a=0)," "===(i=n[s])||"\t"===i?r+=n.substr(s+1,l-s-(a+1)):(r&&e(null,r),r=n.substr(s,l-s-a)),s=l}while(l!==o);(r=r.trim()).length&&e(null,r)},i}(),ICAL.Component=function(){"use strict";function t(t,n){"string"==typeof t&&(t=[t,[],[]]),this.jCal=t,this.parent=n||null}return t.prototype={_hydratedPropertyCount:0,_hydratedComponentCount:0,get name(){return this.jCal[0]},get _designSet(){return this.parent&&this.parent._designSet||ICAL.design.getDesignSet(this.name)},_hydrateComponent:function(n){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[n])return this._components[n];var e=new t(this.jCal[2][n],this);return this._hydratedComponentCount++,this._components[n]=e},_hydrateProperty:function(t){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[t])return this._properties[t];var n=new ICAL.Property(this.jCal[1][t],this);return this._hydratedPropertyCount++,this._properties[t]=n},getFirstSubcomponent:function(t){if(t)for(var n=0,e=this.jCal[2],r=e.length;n=0;a--)e&&i[a][0]!==e||this._removeObjectByIndex(t,r,a)},addSubcomponent:function(t){this._components||(this._components=[],this._hydratedComponentCount=0),t.parent&&t.parent.removeSubcomponent(t);var n=this.jCal[2].push(t.jCal);return this._components[n-1]=t,this._hydratedComponentCount++,t.parent=this,t},removeSubcomponent:function(t){var n=this._removeObject(2,"_components",t);return n&&this._hydratedComponentCount--,n},removeAllSubcomponents:function(t){var n=this._removeAllObjects(2,"_components",t);return this._hydratedComponentCount=0,n},addProperty:function(t){if(!(t instanceof ICAL.Property))throw new TypeError("must instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),t.parent&&t.parent.removeProperty(t);var n=this.jCal[1].push(t.jCal);return this._properties[n-1]=t,this._hydratedPropertyCount++,t.parent=this,t},addPropertyWithValue:function(t,n){var e=new ICAL.Property(t);return e.setValue(n),this.addProperty(e),e},updatePropertyWithValue:function(t,n){var e=this.getFirstProperty(t);return e?e.setValue(n):e=this.addPropertyWithValue(t,n),e},removeProperty:function(t){var n=this._removeObject(1,"_properties",t);return n&&this._hydratedPropertyCount--,n},removeAllProperties:function(t){var n=this._removeAllObjects(1,"_properties",t);return this._hydratedPropertyCount=0,n},toJSON:function(){return this.jCal},toString:function(){return ICAL.stringify.component(this.jCal,this._designSet)}},t.fromString=function(n){return new t(ICAL.parse.component(n))},t}(),ICAL.Property=function(){"use strict";var t=ICAL.design;function n(n,e){this._parent=e||null,"string"==typeof n?(this.jCal=[n,{},t.defaultType],this.jCal[2]=this.getDefaultType()):this.jCal=n,this._updateType()}return n.prototype={get type(){return this.jCal[2]},get name(){return this.jCal[0]},get parent(){return this._parent},set parent(n){var e=!this._parent||n&&n._designSet!=this._parent._designSet;return this._parent=n,this.type==t.defaultType&&e&&(this.jCal[2]=this.getDefaultType(),this._updateType()),n},get _designSet(){return this.parent?this.parent._designSet:t.defaultSet},_updateType:function(){var t=this._designSet;if(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,n){this._values||(this._values=[]),"object"==typeof t&&"icaltype"in t?(this.jCal[3+n]=this._undecorate(t),this._values[n]=t):(this.jCal[3+n]=t,this._values[n]=this._decorate(t))},getParameter:function(t){return t in this.jCal[1]?this.jCal[1][t]:void 0},getFirstParameter:function(t){var n=this.getParameter(t);return Array.isArray(n)?n[0]:n},setParameter:function(t,n){var e=t.toLowerCase();"string"==typeof n&&e in this._designSet.param&&"multiValue"in this._designSet.param[e]&&(n=[n]),this.jCal[1][t]=n},removeParameter:function(t){delete this.jCal[1][t]},getDefaultType:function(){var n=this.jCal[0],e=this._designSet;if(n in e.property){var r=e.property[n];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 n=0,e=[];n0&&"object"==typeof t[0]&&"icaltype"in t[0]&&this.resetType(t[0].icaltype),this.isDecorated)for(;ee)-(e>n)},_normalize:function(){for(var t=this.toSeconds(),n=this.factor;t<-43200;)t+=97200;for(;t>50400;)t-=97200;this.fromSeconds(t),0==t&&(this.factor=n)},toICALString:function(){return ICAL.design.icalendar.value["utc-offset"].toICAL(this.toString())},toString:function(){return(1==this.factor?"+":"-")+ICAL.helpers.pad2(this.hours)+":"+ICAL.helpers.pad2(this.minutes)}},t.fromString=function(t){var n={};return n.factor="+"===t[0]?1:-1,n.hours=ICAL.helpers.strictParseInt(t.substr(1,2)),n.minutes=ICAL.helpers.strictParseInt(t.substr(4,2)),new ICAL.UtcOffset(n)},t.fromSeconds=function(n){var e=new t;return e.fromSeconds(n),e},t}(),ICAL.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 n,e,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!t)return t;do{n=(a=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,e=a>>12&63,r=a>>6&63,i=63&a,u[l++]=o.charAt(n)+o.charAt(e)+o.charAt(r)+o.charAt(i)}while(s>16&255,e=o>>8&255,r=255&o,u[c++]=64==i?String.fromCharCode(n):64==a?String.fromCharCode(n,e):String.fromCharCode(n,e,r)}while(le)-(n=0?r=e:i=-1,-1==i&&-1!=r)break;if((e+=i)<0)return 0;if(e>=this.changes.length)break}var o=this.changes[r];if(o.utcOffset-o.prevUtcOffset<0&&r>0){var s=ICAL.helpers.clone(o,!0);if(ICAL.Timezone.adjust_change(s,0,0,0,s.prevUtcOffset),ICAL.Timezone._compare_change_fn(n,s)<0){var l=this.changes[r-1];0!=o.is_daylight&&0==l.is_daylight&&(o=l)}}return o.utcOffset},_findNearbyChange:function(t){var n=ICAL.helpers.binsearchInsert(this.changes,t,ICAL.Timezone._compare_change_fn);return n>=this.changes.length?this.changes.length-1:n},_ensureCoverage:function(t){if(-1==ICAL.Timezone._minimumExpansionYear){var n=ICAL.Time.now();ICAL.Timezone._minimumExpansionYear=n.year}var e=t;if(eICAL.Timezone.MAX_YEAR&&(e=ICAL.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYearn)&&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,ICAL.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset),e.push(r)}}else(r=o()).year=i.year,r.month=i.month,r.day=i.day,r.hour=i.hour,r.minute=i.minute,r.second=i.second,ICAL.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset),e.push(r);return e},toString:function(){return this.tznames?this.tznames:this.tzid}},ICAL.Timezone._compare_change_fn=function(t,n){return t.yearn.year?1:t.monthn.month?1:t.dayn.day?1:t.hourn.hour?1:t.minuten.minute?1:t.secondn.second?1:0},ICAL.Timezone.convert_time=function(t,n,e){if(t.isDate||n.tzid==e.tzid||n==ICAL.Timezone.localTimezone||e==ICAL.Timezone.localTimezone)return t.zone=e,t;var r=n.utcOffset(t);return t.adjust(0,0,0,-r),r=e.utcOffset(t),t.adjust(0,0,0,r),null},ICAL.Timezone.fromData=function(t){return(new ICAL.Timezone).fromData(t)},ICAL.Timezone.utcTimezone=ICAL.Timezone.fromData({tzid:"UTC"}),ICAL.Timezone.localTimezone=ICAL.Timezone.fromData({tzid:"floating"}),ICAL.Timezone.adjust_change=function(t,n,e,r,i){return ICAL.Time.prototype.adjust.call(t,n,e,r,i,t)},ICAL.Timezone._minimumExpansionYear=-1,ICAL.Timezone.MAX_YEAR=2035,ICAL.Timezone.EXTRA_COVERAGE=5,ICAL.TimezoneService=((a={get count(){return Object.keys(i).length},reset:function(){i=Object.create(null);var t=ICAL.Timezone.utcTimezone;i.Z=t,i.UTC=t,i.GMT=t},has:function(t){return!!i[t]},get:function(t){return i[t]},register:function(t,n){if(t instanceof ICAL.Component&&"vtimezone"===t.name&&(t=(n=new ICAL.Timezone(t)).tzid),!(n instanceof ICAL.Timezone))throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component");i[t]=n},remove:function(t){return delete i[t]}}).reset(),a),ICAL.Time=function(t,n){this.wrappedJSObject=this;var e=this._time=Object.create(null);e.year=0,e.month=1,e.day=1,e.hour=0,e.minute=0,e.second=0,e.isDate=!1,this.fromData(t,n)},ICAL.Time._dowCache={},ICAL.Time._wnCache={},ICAL.Time.prototype={icalclass:"icaltime",_cachedUnixTime:null,get icaltype(){return this.isDate?"date":"date-time"},zone:null,_pendingNormalization:!1,clone:function(){return new ICAL.Time(this._time,this.zone)},reset:function(){this.fromData(ICAL.Time.epochTime),this.zone=ICAL.Timezone.utcTimezone},resetTo:function(t,n,e,r,i,a,o){this.fromData({year:t,month:n,day:e,hour:r,minute:i,second:a,zone:o})},fromJSDate:function(t,n){return t?n?(this.zone=ICAL.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=ICAL.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,n){if(t)for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){if("icaltype"===e)continue;this[e]=t[e]}if(n&&(this.zone=n),t&&!("isDate"in t)?this.isDate=!("hour"in t):t&&"isDate"in t&&(this.isDate=t.isDate),t&&"timezone"in t){var r=ICAL.TimezoneService.get(t.timezone);this.zone=r||ICAL.Timezone.localTimezone}return t&&"zone"in t&&(this.zone=t.zone),this.zone||(this.zone=ICAL.Timezone.localTimezone),this._cachedUnixTime=null,this},dayOfWeek:function(t){var n=t||ICAL.Time.SUNDAY,e=(this.year<<12)+(this.month<<8)+(this.day<<3)+n;if(e in ICAL.Time._dowCache)return ICAL.Time._dowCache[e];var r=this.day,i=this.month+(this.month<3?12:0),a=this.year-(this.month<3?1:0),o=r+a+ICAL.helpers.trunc(26*(i+1)/10)+ICAL.helpers.trunc(a/4);return o=((o+=6*ICAL.helpers.trunc(a/100)+ICAL.helpers.trunc(a/400))+7-n)%7+1,ICAL.Time._dowCache[e]=o,o},dayOfYear:function(){var t=ICAL.Time.isLeapYear(this.year)?1:0;return ICAL.Time.daysInYearPassedMonth[t][this.month-1]+this.day},startOfWeek:function(t){var n=t||ICAL.Time.SUNDAY,e=this.clone();return e.day-=(this.dayOfWeek()+7-n)%7,e.isDate=!0,e.hour=0,e.minute=0,e.second=0,e},endOfWeek:function(t){var n=t||ICAL.Time.SUNDAY,e=this.clone();return e.day+=(7-this.dayOfWeek()+n-ICAL.Time.SUNDAY)%7,e.isDate=!0,e.hour=0,e.minute=0,e.second=0,e},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=ICAL.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 n=t||ICAL.Time.SUNDAY,e=this.dayOfWeek()-n;return e<0&&(e+=7),this.dayOfYear()-e},getDominicalLetter:function(){return ICAL.Time.getDominicalLetter(this.year)},nthWeekDay:function(t,n){var e,r=ICAL.Time.daysInMonth(this.month,this.year),i=n,a=0,o=this.clone();if(i>=0){o.day=1,0!=i&&i--,a=o.day;var s=t-o.dayOfWeek();s<0&&(s+=7),a+=s,a-=t,e=t}else o.day=r,i++,(e=o.dayOfWeek()-t)<0&&(e+=7),e=r-e;return a+(e+=7*i)},isNthWeekDay:function(t,n){var e=this.dayOfWeek();return 0===n&&e===t||this.nthWeekDay(t,n)===this.day},weekNumber:function(t){var n,e=(this.year<<12)+(this.month<<8)+(this.day<<3)+t;if(e in ICAL.Time._wnCache)return ICAL.Time._wnCache[e];var r=this.clone();r.isDate=!0;var i=this.year;12==r.month&&r.day>25?(n=ICAL.Time.weekOneStarts(i+1,t),r.compare(n)<0?n=ICAL.Time.weekOneStarts(i,t):i++):(n=ICAL.Time.weekOneStarts(i,t),r.compare(n)<0&&(n=ICAL.Time.weekOneStarts(--i,t)));var a=r.subtractDate(n).toSeconds()/86400,o=ICAL.helpers.trunc(a/7)+1;return ICAL.Time._wnCache[e]=o,o},addDuration:function(t){var n=t.isNegative?-1:1,e=this.second,r=this.minute,i=this.hour,a=this.day;e+=n*t.seconds,r+=n*t.minutes,i+=n*t.hours,a+=n*t.days,a+=7*n*t.weeks,this.second=e,this.minute=r,this.hour=i,this.day=a,this._cachedUnixTime=null},subtractDate:function(t){var n=this.toUnixTime()+this.utcOffset(),e=t.toUnixTime()+t.utcOffset();return ICAL.Duration.fromSeconds(n-e)},subtractDateTz:function(t){var n=this.toUnixTime(),e=t.toUnixTime();return ICAL.Duration.fromSeconds(n-e)},compare:function(t){var n=this.toUnixTime(),e=t.toUnixTime();return n>e?1:e>n?-1:0},compareDateOnlyTz:function(t,n){function e(t){return ICAL.Time._cmp_attr(r,i,t)}var r=this.convertToZone(n),i=t.convertToZone(n),a=0;return 0!=(a=e("year"))||0!=(a=e("month"))||(a=e("day")),a},convertToZone:function(t){var n=this.clone(),e=this.zone.tzid==t.tzid;return this.isDate||e||ICAL.Timezone.convert_time(n,this.zone,t),n.zone=t,n},utcOffset:function(){return this.zone==ICAL.Timezone.localTimezone||this.zone==ICAL.Timezone.utcTimezone?0:this.zone.utcOffset(this)},toICALString:function(){var t=this.toString();return t.length>10?ICAL.design.icalendar.value["date-time"].toICAL(t):ICAL.design.icalendar.value.date.toICAL(t)},toString:function(){var t=this.year+"-"+ICAL.helpers.pad2(this.month)+"-"+ICAL.helpers.pad2(this.day);return this.isDate||(t+="T"+ICAL.helpers.pad2(this.hour)+":"+ICAL.helpers.pad2(this.minute)+":"+ICAL.helpers.pad2(this.second),this.zone===ICAL.Timezone.utcTimezone&&(t+="Z")),t},toJSDate:function(){return this.zone==ICAL.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,n,e,r,i){var a,o,s,l,c,u,d,p=0,f=0,A=i||this._time;if(A.isDate||(s=A.second+r,A.second=s%60,a=ICAL.helpers.trunc(s/60),A.second<0&&(A.second+=60,a--),l=A.minute+e+a,A.minute=l%60,o=ICAL.helpers.trunc(l/60),A.minute<0&&(A.minute+=60,o--),c=A.hour+n+o,A.hour=c%24,p=ICAL.helpers.trunc(c/24),A.hour<0&&(A.hour+=24,p--)),A.month>12?f=ICAL.helpers.trunc((A.month-1)/12):A.month<1&&(f=ICAL.helpers.trunc(A.month/12)-1),A.year+=f,A.month-=12*f,(u=A.day+t+p)>0)for(;!(u<=(d=ICAL.Time.daysInMonth(A.month,A.year)));)A.month++,A.month>12&&(A.year++,A.month=1),u-=d;else for(;u<=0;)1==A.month?(A.year--,A.month=12):A.month--,u+=ICAL.Time.daysInMonth(A.month,A.year);return A.day=u,this._cachedUnixTime=null,this},fromUnixTime:function(t){this.zone=ICAL.Timezone.utcTimezone;var n=ICAL.Time.epochTime.clone();n.adjust(0,0,0,t),this.year=n.year,this.month=n.month,this.day=n.day,this.hour=n.hour,this.minute=n.minute,this.second=Math.floor(n.second),this._cachedUnixTime=null},toUnixTime:function(){if(null!==this._cachedUnixTime)return this._cachedUnixTime;var t=this.utcOffset(),n=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-t);return this._cachedUnixTime=n/1e3,this._cachedUnixTime},toJSON:function(){for(var t,n=["year","month","day","hour","minute","second","isDate"],e=Object.create(null),r=0,i=n.length;r12||(e=[0,31,28,31,30,31,30,31,31,30,31,30,31][t],2==t&&(e+=ICAL.Time.isLeapYear(n))),e},ICAL.Time.isLeapYear=function(t){return t<=1752?t%4==0:t%4==0&&t%100!=0||t%400==0},ICAL.Time.fromDayOfYear=function(t,n){var e=n,r=t,i=new ICAL.Time;i.auto_normalize=!1;var a=ICAL.Time.isLeapYear(e)?1:0;if(r<1)return e--,a=ICAL.Time.isLeapYear(e)?1:0,r+=ICAL.Time.daysInYearPassedMonth[a][12],ICAL.Time.fromDayOfYear(r,e);if(r>ICAL.Time.daysInYearPassedMonth[a][12])return a=ICAL.Time.isLeapYear(e)?1:0,r-=ICAL.Time.daysInYearPassedMonth[a][12],e++,ICAL.Time.fromDayOfYear(r,e);i.year=e,i.isDate=!0;for(var o=11;o>=0;o--)if(r>ICAL.Time.daysInYearPassedMonth[a][o]){i.month=o+1,i.day=r-ICAL.Time.daysInYearPassedMonth[a][o];break}return i.auto_normalize=!0,i},ICAL.Time.fromStringv2=function(t){return new ICAL.Time({year:parseInt(t.substr(0,4),10),month:parseInt(t.substr(5,2),10),day:parseInt(t.substr(8,2),10),isDate:!0})},ICAL.Time.fromDateString=function(t){return new ICAL.Time({year:ICAL.helpers.strictParseInt(t.substr(0,4)),month:ICAL.helpers.strictParseInt(t.substr(5,2)),day:ICAL.helpers.strictParseInt(t.substr(8,2)),isDate:!0})},ICAL.Time.fromDateTimeString=function(t,n){if(t.length<19)throw new Error('invalid date-time value: "'+t+'"');var e;return t[19]&&"Z"===t[19]?e="Z":n&&(e=n.getParameter("tzid")),new ICAL.Time({year:ICAL.helpers.strictParseInt(t.substr(0,4)),month:ICAL.helpers.strictParseInt(t.substr(5,2)),day:ICAL.helpers.strictParseInt(t.substr(8,2)),hour:ICAL.helpers.strictParseInt(t.substr(11,2)),minute:ICAL.helpers.strictParseInt(t.substr(14,2)),second:ICAL.helpers.strictParseInt(t.substr(17,2)),timezone:e})},ICAL.Time.fromString=function(t,n){return t.length>10?ICAL.Time.fromDateTimeString(t,n):ICAL.Time.fromDateString(t)},ICAL.Time.fromJSDate=function(t,n){return(new ICAL.Time).fromJSDate(t,n)},ICAL.Time.fromData=function(t,n){return(new ICAL.Time).fromData(t,n)},ICAL.Time.now=function(){return ICAL.Time.fromJSDate(new Date,!1)},ICAL.Time.weekOneStarts=function(t,n){var e=ICAL.Time.fromData({year:t,month:1,day:1,isDate:!0}),r=e.dayOfWeek(),i=n||ICAL.Time.DEFAULT_WEEK_START;return r>ICAL.Time.THURSDAY&&(e.day+=7),i>ICAL.Time.THURSDAY&&(e.day-=7),e.day-=r-i,e},ICAL.Time.getDominicalLetter=function(t){var n=(t+(t/4|0)+(t/400|0)-(t/100|0)-1)%7;return ICAL.Time.isLeapYear(t)?"GFEDCBA"[(n+6)%7]+"GFEDCBA"[n]:"GFEDCBA"[n]},ICAL.Time.epochTime=ICAL.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"}),ICAL.Time._cmp_attr=function(t,n,e){return t[e]>n[e]?1:t[e]4?e(l,p?1:3,2):null,second:4==u?e(l,2,2):6==u?e(l,4,2):8==u?e(l,6,2):null};return s="Z"==s?ICAL.Timezone.utcTimezone:s&&":"==s[3]?ICAL.UtcOffset.fromString(s):null,new ICAL.VCardTime(f,s,n)},function(){var t={SU:ICAL.Time.SUNDAY,MO:ICAL.Time.MONDAY,TU:ICAL.Time.TUESDAY,WE:ICAL.Time.WEDNESDAY,TH:ICAL.Time.THURSDAY,FR:ICAL.Time.FRIDAY,SA:ICAL.Time.SATURDAY},n={};for(var e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);function r(t,n,e,r){var i=r;if("+"===r[0]&&(i=r.substr(1)),i=ICAL.helpers.strictParseInt(i),void 0!==n&&r '+n);if(void 0!==e&&r>e)throw new Error(t+': invalid value "'+r+'" must be < '+n);return i}ICAL.Recur=function(t){this.wrappedJSObject=this,this.parts={},t&&"object"==typeof t&&this.fromData(t)},ICAL.Recur.prototype={parts:null,interval:1,wkst:ICAL.Time.MONDAY,until:null,count:null,freq:null,icalclass:"icalrecur",icaltype:"recur",iterator:function(t){return new ICAL.RecurIterator({rule:this,dtstart:t})},clone:function(){return new ICAL.Recur(this.toJSON())},isFinite:function(){return!(!this.count&&!this.until)},isByCount:function(){return!(!this.count||this.until)},addComponent:function(t,n){var e=t.toUpperCase();e in this.parts?this.parts[e].push(n):this.parts[e]=[n]},setComponent:function(t,n){this.parts[t.toUpperCase()]=n.slice()},getComponent:function(t){var n=t.toUpperCase();return n in this.parts?this.parts[n].slice():[]},getNextOccurrence:function(t,n){var e,r=this.iterator(t);do{e=r.next()}while(e&&e.compare(n)<=0);return e&&n.zone&&(e.zone=n.zone),e},fromData:function(t){for(var n in t){var e=n.toUpperCase();e in l?Array.isArray(t[n])?this.parts[e]=t[n]:this.parts[e]=[t[n]]:this[n]=t[n]}this.interval&&"number"!=typeof this.interval&&s.INTERVAL(this.interval,this),this.wkst&&"number"!=typeof this.wkst&&(this.wkst=ICAL.Recur.icalDayToNumericDay(this.wkst)),!this.until||this.until instanceof ICAL.Time||(this.until=ICAL.Time.fromString(this.until))},toJSON:function(){var t=Object.create(null);for(var n in t.freq=this.freq,this.count&&(t.count=this.count),this.interval>1&&(t.interval=this.interval),this.parts)if(this.parts.hasOwnProperty(n)){var e=this.parts[n];Array.isArray(e)&&1==e.length?t[n.toLowerCase()]=e[0]:t[n.toLowerCase()]=ICAL.helpers.clone(this.parts[n])}return this.until&&(t.until=this.until.toString()),"wkst"in this&&this.wkst!==ICAL.Time.DEFAULT_WEEK_START&&(t.wkst=ICAL.Recur.numericDayToIcalDay(this.wkst)),t},toString:function(){var t="FREQ="+this.freq;for(var n in this.count&&(t+=";COUNT="+this.count),this.interval>1&&(t+=";INTERVAL="+this.interval),this.parts)this.parts.hasOwnProperty(n)&&(t+=";"+n+"="+this.parts[n]);return this.until&&(t+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==ICAL.Time.DEFAULT_WEEK_START&&(t+=";WKST="+ICAL.Recur.numericDayToIcalDay(this.wkst)),t}},ICAL.Recur.icalDayToNumericDay=function(n,e){var r=e||ICAL.Time.SUNDAY;return(t[n]-r+7)%7+1},ICAL.Recur.numericDayToIcalDay=function(t,e){var r=t+(e||ICAL.Time.SUNDAY)-ICAL.Time.SUNDAY;return r>7&&(r-=7),n[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)$/,o=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],s={FREQ:function(t,n,e){if(-1===o.indexOf(t))throw new Error('invalid frequency "'+t+'" expected: "'+o.join(", ")+'"');n.freq=t},COUNT:function(t,n,e){n.count=ICAL.helpers.strictParseInt(t)},INTERVAL:function(t,n,e){n.interval=ICAL.helpers.strictParseInt(t),n.interval<1&&(n.interval=1)},UNTIL:function(t,n,e){t.length>10?n.until=ICAL.design.icalendar.value["date-time"].fromICAL(t):n.until=ICAL.design.icalendar.value.date.fromICAL(t),e||(n.until=ICAL.Time.fromString(n.until))},WKST:function(t,n,e){if(!i.test(t))throw new Error('invalid WKST value "'+t+'"');n.wkst=ICAL.Recur.icalDayToNumericDay(t)}},l={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",0,12),BYSETPOS:r.bind(this,"BYSETPOS",-366,366)};ICAL.Recur.fromString=function(t){var n=ICAL.Recur._stringToData(t,!1);return new ICAL.Recur(n)},ICAL.Recur.fromData=function(t){return new ICAL.Recur(t)},ICAL.Recur._stringToData=function(t,n){for(var e=Object.create(null),r=t.split(";"),i=r.length,a=0;a=0||e<0)&&(this.last.day+=e)}else{var r=ICAL.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(),o=ICAL.Time.daysInMonth(this.last.month,this.last.year);for(var s in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(s)){this.last=a.clone();n=(l=this.ruleDayOfWeek(this.by_data.BYDAY[s]))[0];var l,c=l[1],u=this.last.nthWeekDay(c,n);if(n>=6||n<=-6)throw new Error("Malformed values in BYDAY part");if(u>o||u<=0){if(i&&i.month==a.month)continue;for(;u>o||u<=0;)this.increment_month(),o=ICAL.Time.daysInMonth(this.last.month,this.last.year),u=this.last.nthWeekDay(c,n)}this.last.day=u,(!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>o||0==this.last.day)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")&&this.last.day<0){o=ICAL.Time.daysInMonth(this.last.month,this.last.year);this.last.day=o+this.last.day+1}},next:function(){var t,n=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(n))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 n=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*n,t&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return t},normalizeByMonthDayRules:function(t,n,e){for(var r,i=ICAL.Time.daysInMonth(n,t),a=[],o=0,s=e.length;oi)){if(r<0)r=i+(r+1);else if(0===r)continue;-1===a.indexOf(r)&&a.push(r)}return a.sort((function(t,n){return t-n}))},_byDayAndMonthDay:function(t){var n,e,r,i,a=this.by_data.BYDAY,o=0,s=a.length,l=0,c=this,u=this.last.day;function d(){for(i=ICAL.Time.daysInMonth(c.last.month,c.last.year),n=c.normalizeByMonthDayRules(c.last.year,c.last.month,c.by_data.BYMONTHDAY),r=n.length;n[o]<=u&&(!t||n[o]!=u)&&oi)p();else{var A=n[o++];if(A>=e){u=A;for(var h=0;hn&&(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 if(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());n=ICAL.Time.daysInMonth(this.last.month,this.last.year);(a=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY])<0&&(a=n+a+1),a>n?(this.last.day=1,t=this.is_day_in_byday(this.last)):this.last.day=a}else{this.increment_month();n=ICAL.Time.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>n?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 n=new ICAL.Time;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,t=1);var e=this.by_data.BYDAY[this.by_indices.BYDAY],r=this.ruleDayOfWeek(e)[1];(r-=this.rule.wkst)<0&&(r+=7),n.year=this.last.year,n.month=this.last.month,n.day=this.last.day;var i=n.startDoyWeek(this.rule.wkst);if(!(r+i<1)||t){var a=ICAL.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],n=this.last.year;t<1&&(t+=1,n+=1);var e=ICAL.Time.fromDayOfYear(t,n);this.last.day=e.day,this.last.month=e.month},ruleDayOfWeek:function(t,n){var e=t.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);return e?[parseInt(e[1]||0,10),t=ICAL.Recur.icalDayToNumericDay(e[2],n)]:[0,0]},next_generic:function(t,n,e,r,i){var a=t in this.by_data,o=this.rule.freq==n,s=0;if(i&&0==this[i]())return s;if(a){this.by_indices[t]++;this.by_indices[t];var l=this.by_data[t];this.by_indices[t]==l.length&&(this.by_indices[t]=0,s=1),this.last[e]=l[this.by_indices[t]]}else o&&this["increment_"+e](this.rule.interval);return a&&s&&o&&this["increment_"+r](1),s},increment_monthday:function(t){for(var n=0;ne&&(this.last.day-=e,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=ICAL.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,n,e,r){this.last[n]+=t;var i=ICAL.helpers.trunc(this.last[n]/e);this.last[n]%=e,0!=i&&this["increment_"+r](i)},has_by_data:function(t){return t in this.rule.parts},expand_year_days:function(t){var n=new ICAL.Time;this.days=[];var e={},r=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];a in this.rule.parts&&(e[a]=this.rule.parts[a])}if("BYMONTH"in e&&"BYWEEKNO"in e){var o=1,s={};n.year=t,n.isDate=!0;for(var l=0;l0?(O=k+7*(w-1))<=E&&this.days.push(D+O):(O=I+7*(w+1))>0&&this.days.push(D+O)}}this.days.sort((function(t,n){return t-n}))}else if(2==f&&"BYDAY"in e&&"BYMONTHDAY"in e){var M=this.expand_by_day(t);for(var Y in M)if(M.hasOwnProperty(Y)){R=M[Y];var L=ICAL.Time.fromDayOfYear(R,t);this.by_data.BYMONTHDAY.indexOf(L.day)>=0&&this.days.push(R)}}else if(3==f&&"BYDAY"in e&&"BYMONTHDAY"in e&&"BYMONTH"in e){M=this.expand_by_day(t);for(var Y in M)if(M.hasOwnProperty(Y)){R=M[Y],L=ICAL.Time.fromDayOfYear(R,t);this.by_data.BYMONTH.indexOf(L.month)>=0&&this.by_data.BYMONTHDAY.indexOf(L.day)>=0&&this.days.push(R)}}else if(2==f&&"BYDAY"in e&&"BYWEEKNO"in e){M=this.expand_by_day(t);for(var Y in M)if(M.hasOwnProperty(Y)){R=M[Y];var Z=(L=ICAL.Time.fromDayOfYear(R,t)).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(Z)&&this.days.push(R)}}else 3==f&&"BYDAY"in e&&"BYWEEKNO"in e&&"BYMONTHDAY"in e||(this.days=1==f&&"BYYEARDAY"in e?this.days.concat(this.by_data.BYYEARDAY):[]);return 0},expand_by_day:function(t){var n=[],e=this.last.clone();e.year=t,e.month=1,e.day=1,e.isDate=!0;var r=e.dayOfWeek();e.month=12,e.day=31,e.isDate=!0;var i=e.dayOfWeek(),a=e.dayOfYear();for(var o in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(o)){var s=this.by_data.BYDAY[o],l=this.ruleDayOfWeek(s),c=l[0],u=l[1];if(0==c)for(var d=(u+7-r)%7+1;d<=a;d+=7)n.push(d);else if(c>0){var p;p=u>=r?u-r+1:u-r+8,n.push(p+7*(c-1))}else{var f;c=-c,f=u<=i?a-i+u:a-i+u-7,n.push(f-7*(c-1))}}return n},is_day_in_byday:function(t){for(var n in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(n)){var e=this.by_data.BYDAY[n],r=this.ruleDayOfWeek(e),i=r[0],a=r[1],o=t.dayOfWeek();if(0==i&&a==o||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 n=0;nthis.ruleDayOfWeek(t[n],this.rule.wkst)[1]){var r=t[n];t[n]=t[e],t[e]=r}}},check_contract_restriction:function(n,e){var r=t._indexMap[n],i=t._expandMap[this.rule.freq][r],a=!1;if(n in this.by_data&&i==t.CONTRACT){var o=this.by_data[n];for(var s in o)if(o.hasOwnProperty(s)&&o[s]==e){a=!0;break}}else a=!0;return a},check_contracting_rules:function(){var t=this.last.dayOfWeek(),n=this.last.weekNumber(this.rule.wkst),e=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",ICAL.Recur.numericDayToIcalDay(t))&&this.check_contract_restriction("BYWEEKNO",n)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",e)},setup_defaults:function(n,e,r){var i=t._indexMap[n];return t._expandMap[this.rule.freq][i]!=t.CONTRACT&&(n in this.by_data||(this.by_data[n]=[r]),this.rule.freq!=e)?this.by_data[n][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}(),ICAL.RecurExpansion=function(){function t(t){return ICAL.helpers.formatClassType(t,ICAL.Time)}function n(t,n){return t.compare(n)}function e(t){this.ruleDates=[],this.exDates=[],this.fromData(t)}return e.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(n){var e=ICAL.helpers.formatClassType(n.dtstart,ICAL.Time);if(!e)throw new Error(".dtstart (ICAL.Time) must be given");if(this.dtstart=e,n.component)this._init(n.component);else{if(this.last=t(n.last)||e.clone(),!n.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=n.ruleIterators.map((function(t){return ICAL.helpers.formatClassType(t,ICAL.RecurIterator)})),this.ruleDateInc=n.ruleDateInc,this.exDateInc=n.exDateInc,n.ruleDates&&(this.ruleDates=n.ruleDates.map(t),this.ruleDate=this.ruleDates[this.ruleDateInc]),n.exDates&&(this.exDates=n.exDates.map(t),this.exDate=this.exDates[this.exDateInc]),void 0!==n.complete&&(this.complete=n.complete)}},next:function(){for(var t,n,e,r=0;;){if(r++>500)throw new Error("max tries have occured, rule may be impossible to forfill.");if(n=this.ruleDate,t=this._nextRecurrenceIter(this.last),!n&&!t){this.complete=!0;break}if((!n||t&&n.compare(t.last)>0)&&(n=t.last.clone(),t.next()),this.ruleDate===n&&this._nextRuleDay(),this.last=n,!this.exDate||((e=this.exDate.compare(this.last))<0&&this._nextExDay(),0!==e))return this.last;this._nextExDay()}},toJSON:function(){function t(t){return t.toJSON()}var n=Object.create(null);return n.ruleIterators=this.ruleIterators.map(t),this.ruleDates&&(n.ruleDates=this.ruleDates.map(t)),this.exDates&&(n.exDates=this.exDates.map(t)),n.ruleDateInc=this.ruleDateInc,n.exDateInc=this.exDateInc,n.last=this.last.toJSON(),n.dtstart=this.dtstart.toJSON(),n.complete=this.complete,n},_extractDates:function(t,e){function r(t){i=ICAL.helpers.binsearchInsert(a,t,n),a.splice(i,0,t)}for(var i,a=[],o=t.getAllProperties(e),s=o.length,l=0;l0)&&(r=n);return r}},e}(),ICAL.Event=function(){function t(t,n){t instanceof ICAL.Component||(n=t,t=null),this.component=t||new ICAL.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],n&&n.strictExceptions&&(this.strictExceptions=n.strictExceptions),n&&n.exceptions?n.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 n(t,n){return t[0]>n[0]?1:n[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 ICAL.Component&&(t=new ICAL.Event(t)),this.strictExceptions&&t.uid!==this.uid)throw new Error("attempted to relate unrelated exception");var e=t.recurrenceId.toString();if(this.exceptions[e]=t,t.modifiesFuture()){var r=[t.recurrenceId.toUnixTime(),e],i=ICAL.helpers.binsearchInsert(this.rangeExceptions,r,n);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 e=t.toUnixTime(),r=ICAL.helpers.binsearchInsert(this.rangeExceptions,[e],n);if((r-=1)<0)return null;var i=this.rangeExceptions[r];return e0?r:e)(n)}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(69),i=e(113);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.subscribe=function(t,n){a.subscribe(t,n)},n.unsubscribe=function(t,n){a.unsubscribe(t,n)},n.emit=function(t,n){a.emit(t,n)};var r=e(345),i=e(350);var a=(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),void 0!==window._nc_event_bus?new r.ProxyBus(window._nc_event_bus):window._nc_event_bus=new i.SimpleBus)},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===a||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:a}catch(t){e=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var t=s(p);u=!0;for(var n=c.length;n;){for(l=c,c=[];++d1)for(var e=1;e0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,n,e){var r=e(108);t.exports=function(t){return r(t.length)}},function(t,n,e){var r=e(0),i=e(1),a=e(3),o=e(41),s=r.Object,l=i("".split);t.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?l(t,""):s(t)}:s},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},,function(t,n,e){var r=e(0),i=e(75),a=e(4),o=e(41),s=e(6)("toStringTag"),l=r.Object,c="Arguments"==o(function(){return arguments}());t.exports=i?o:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=l(t),s))?e:c?o(n):"Object"==(r=o(n))&&a(n.callee)?"Arguments":r}},function(t,n,e){var r=e(36),i=e(20);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(t,n,e){(function(t){var r=e(12),i=e(272),a=n&&!n.nodeType&&n,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===a?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;t.exports=l}).call(this,e(71)(t))},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,e){var r=e(21),i=e(142).f,a=e(98),o=e(366),s=e(149),l=e(370),c=e(377);t.exports=function(t,n){var e,u,d,p,f,A=t.target,h=t.global,T=t.stat;if(e=h?r:T?r[A]||s(A,{}):(r[A]||{}).prototype)for(u in n){if(p=n[u],d=t.noTargetGet?(f=i(e,u))&&f.value:e[u],!c(h?u:A+(T?".":"#")+u,t.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&a(p,"sham",!0),o(e,u,p,t)}}},function(t,n,e){var r=e(21),i=e(210),a=e(54),o=e(212),s=e(221),l=e(380),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||o;t.exports=function(t){return a(c,t)||(s&&a(u,t)?c[t]=u[t]:c[t]=d("Symbol."+t)),c[t]}},function(t,n,e){var r,i=e(15),a=e(291),o=e(66),s=e(62),l=e(292),c=e(76),u=e(78),d=u("IE_PROTO"),p=function(){},f=function(t){return"