!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/js/",n(n.s=501)}([function(t,e,n){var r,i,a;ICAL=t.exports,ICAL.foldLength=75,ICAL.newLineChar="\r\n",ICAL.helpers={updateTimezones:function(t){var e,n,r,i,a,o;if(!t||"vcalendar"!==t.name)return t;for(e=t.getAllSubcomponents(),n=[],r={},a=0;a0&&"\\"===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,o=t.length-1;a<=o;)if((i=n(e,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,e){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 n=[],r=0;r=15?m["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?m["date-time"].toICAL(t):t}},"date-time":{fromICAL:function(t){if(D.strict||8!=t.length){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}return m.date.fromICAL(t)},toICAL:function(t){var e=t.length;if(10!=e||D.strict){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}return m.date.toICAL(t)},decorate:function(t,e){return D.strict?ICAL.Time.fromDateTimeString(t,e):ICAL.Time.fromString(t,e)},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 e=t.split("/");return e[0]=m["date-time"].fromICAL(e[0]),ICAL.Duration.isValueString(e[1])||(e[1]=m["date-time"].fromICAL(e[1])),e},toICAL:function(t){return D.strict||10!=t[0].length?t[0]=m["date-time"].toICAL(t[0]):t[0]=m.date.toICAL(t[0]),ICAL.Duration.isValueString(t[1])||(D.strict||10!=t[1].length?t[1]=m["date-time"].toICAL(t[1]):t[1]=m.date.toICAL(t[1])),t.join("/")},decorate:function(t,e){return ICAL.Period.fromJSON(t,e,!D.strict)},undecorate:function(t){return t.toJSON()}},recur:{fromICAL:function(t){return ICAL.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?m["date-time"].toICAL(r):m.date.toICAL(r):"wkst"==n?"number"==typeof r&&(r=ICAL.Recur.numericDayToIcalDay(r)):Array.isArray(r)&&(r=r.join(",")),e+=n.toUpperCase()+"="+r+";"}return e.substr(0,e.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 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=ICAL.helpers.extend(h,{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:A,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:A,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(f,{text:n(t,e),uri:n(t,e),date:{decorate:function(t){return ICAL.VCardTime.fromDateAndOrTimeString(t,"date")},undecorate:function(t){return t.toString()},fromICAL:function(t){return 8==t.length?m.date.fromICAL(t):"-"==t[0]&&6==t.length?t.substr(0,4)+"-"+t.substr(4):t},toICAL:function(t){return 10==t.length?m.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 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),o=t[a];return"Z"==t[i]?(n=t[i],r=t.substr(0,i)):t.length>6&&("-"==o||"+"==o)?(n=t.substr(a),r=t.substr(0,a)):(n="",r=t),[n,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 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:m["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/}}),v=ICAL.helpers.extend(h,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:d,bday:d,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(f,{binary:m.binary,date:g.date,"date-time":g["date-time"],"phone-number":{},uri:m.uri,text:m.text,time:m.time,vcard:m.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(h,{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:m,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:T},y={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},S={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},D={strict:!0,defaultSet:C,defaultType:"unknown",components:{vcard:y,vcard3:S,vevent:C,vtodo:C,vjournal:C,valarm:C,vtimezone:C,daylight:C,standard:C},icalendar:C,vcard:y,vcard3:S,getDesignSet:function(t){return t&&t in D.components?D.components[t]:D.defaultSet}};return D}(),ICAL.stringify=function(){"use strict";var t=ICAL.design,e=ICAL.helpers;function n(t){"string"==typeof t[0]&&(t=[t]);for(var e=0,r=t.length,i="";e0&&("version"!==e[1][0][0]||"4.0"!==e[1][0][3])&&(c="vcard3"),r=r||t.getDesignSet(c);s1)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,o,s,l,c,u,A=t.indexOf(":"),d=t.indexOf(";"),p={};if(-1!==d&&-1!==A&&d>A&&(d=-1),-1!==d){if(s=t.substring(0,d).toLowerCase(),-1==(c=i._parseParameters(t.substring(d),0,n.designSet))[2])throw new r("Invalid parameters in '"+t+"'");if(p=c[0],a=c[1].length+c[2]+d,-1===(o=t.substring(a).indexOf(":")))throw new r("Missing parameter value in '"+t+"'");l=t.substring(a+o+1)}else{if(-1===A)throw new r('invalid line (no token ";" or ":") "'+t+'"');if(s=t.substring(0,A).toLowerCase(),l=t.substring(A+1),"begin"===s){var h=[l.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"===s)return void(n.component=n.stack.pop())}var f,m,T=!1,g=!1;s in n.designSet.property&&("multiValue"in(f=n.designSet.property[s])&&(T=f.multiValue),"structuredValue"in f&&(g=f.structuredValue),l&&"detectType"in f&&(u=f.detectType(l))),u||(u="value"in p?p.value.toLowerCase():f?f.defaultType:"unknown"),delete p.value,T&&g?m=[s,p,u,l=i._parseMultiValue(l,g,u,[],T,n.designSet,g)]:T?(m=[s,p,u],i._parseMultiValue(l,T,u,m,null,n.designSet,!1)):m=g?[s,p,u,l=i._parseMultiValue(l,g,u,[],null,n.designSet,g)]:[s,p,u,l=i._parseValue(l,u,n.designSet,!1)],"vcard"!==n.component[0]||0!==n.component[1].length||"version"===s&&"4.0"===l||(n.designSet=e.getDesignSet("vcard3")),n.component[1].push(m)},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 o,s,l,c,u,A,d=e,p=0,h={},f=-1;!1!==p&&-1!==(p=n.unescapedIndexOf(t,"=",p+1));){if(0==(o=t.substr(d+1,p-d-1)).length)throw new r("Empty parameter name in '"+t+"'");if(A=!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&&(A=i._rfc6868Escape('"'+u+'"'))),'"'===t[p+1]){if(f=p+2,p=n.unescapedIndexOf(t,'"',f),u&&-1!=p)for(var m=!0;m;)t[p+1]==u&&'"'==t[p+2]?p=n.unescapedIndexOf(t,'"',p+3):m=!1;if(-1===p)throw new r('invalid line (no matching double quote) "'+t+'"');l=t.substr(f,p-f),-1===(d=n.unescapedIndexOf(t,";",p))&&(p=!1)}else{f=p+1;var T=n.unescapedIndexOf(t,";",f),g=n.unescapedIndexOf(t,":",f);-1!==g&&T>g?(T=g,p=!1):-1===T?(T=-1===g?t.length:g,p=!1):(d=T,p=T),l=t.substr(f,T-f)}if(l=i._rfc6868Escape(l),u){var v=A||u;l=i._parseMultiValue(l,v,c,[],null,a)}else l=i._parseValue(l,c,a);u&&s in h?Array.isArray(h[s])?h[s].push(l):h[s]=[h[s],l]:h[s]=l}return[h,l,f]},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,o,s,l){var c,u=0,A=0;if(0===e.length)return t;for(;-1!==(u=n.unescapedIndexOf(t,e,A));)c=t.substr(A,u-A),c=o?i._parseMultiValue(c,o,r,[],null,s,l):i._parseValue(c,r,s,l),a.push(c),A=u+e.length;return c=t.substr(A),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(e,n){var r,i,a,o=e.length,s=e.search(t),l=s;do{a=(l=e.indexOf("\n",s)+1)>1&&"\r"===e[l-2]?2:1,0===l&&(l=o,a=0)," "===(i=e[s])||"\t"===i?r+=e.substr(s+1,l-s-(a+1)):(r&&n(null,r),r=e.substr(s,l-s-a)),s=l}while(l!==o);(r=r.trim()).length&&n(null,r)},i}(),ICAL.Component=function(){"use strict";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||ICAL.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 ICAL.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=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 ICAL.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 ICAL.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 ICAL.stringify.component(this.jCal,this._designSet)}},t.fromString=function(e){return new t(ICAL.parse.component(e))},t}(),ICAL.Property=function(){"use strict";var t=ICAL.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;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,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){return t in this.jCal[1]?this.jCal[1][t]:void 0},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=[];e0&&"object"==typeof t[0]&&"icaltype"in t[0]&&this.resetType(t[0].icaltype),this.isDecorated)for(;nn)-(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 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 e={};return e.factor="+"===t[0]?1:-1,e.hours=ICAL.helpers.strictParseInt(t.substr(1,2)),e.minutes=ICAL.helpers.strictParseInt(t.substr(4,2)),new ICAL.UtcOffset(e)},t.fromSeconds=function(e){var n=new t;return n.fromSeconds(e),n},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 e,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!t)return t;do{e=(a=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,u[l++]=o.charAt(e)+o.charAt(n)+o.charAt(r)+o.charAt(i)}while(s>16&255,n=o>>8&255,r=255&o,u[c++]=64==i?String.fromCharCode(e):64==a?String.fromCharCode(e,n):String.fromCharCode(e,n,r)}while(ln)-(e=0?r=n:i=-1,-1==i&&-1!=r)break;if((n+=i)<0)return 0;if(n>=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(e,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 e=ICAL.helpers.binsearchInsert(this.changes,t,ICAL.Timezone._compare_change_fn);return e>=this.changes.length?this.changes.length-1:e},_ensureCoverage:function(t){if(-1==ICAL.Timezone._minimumExpansionYear){var e=ICAL.Time.now();ICAL.Timezone._minimumExpansionYear=e.year}var n=t;if(nICAL.Timezone.MAX_YEAR&&(n=ICAL.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYeare)&&A);)r.year=A.year,r.month=A.month,r.day=A.day,r.hour=A.hour,r.minute=A.minute,r.second=A.second,r.isDate=A.isDate,ICAL.Timezone.adjust_change(r,0,0,0,-r.prevUtcOffset),n.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),n.push(r);return n},toString:function(){return this.tznames?this.tznames:this.tzid}},ICAL.Timezone._compare_change_fn=function(t,e){return t.yeare.year?1:t.monthe.month?1:t.daye.day?1:t.houre.hour?1:t.minutee.minute?1:t.seconde.second?1:0},ICAL.Timezone.convert_time=function(t,e,n){if(t.isDate||e.tzid==n.tzid||e==ICAL.Timezone.localTimezone||n==ICAL.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},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,e,n,r,i){return ICAL.Time.prototype.adjust.call(t,e,n,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,e){if(t instanceof ICAL.Component&&"vtimezone"===t.name&&(t=(e=new ICAL.Timezone(t)).tzid),!(e instanceof ICAL.Timezone))throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component");i[t]=e},remove:function(t){return delete i[t]}}).reset(),a),ICAL.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)},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,e,n,r,i,a,o){this.fromData({year:t,month:e,day:n,hour:r,minute:i,second:a,zone:o})},fromJSDate:function(t,e){return t?e?(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,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=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 e=t||ICAL.Time.SUNDAY,n=(this.year<<12)+(this.month<<8)+(this.day<<3)+e;if(n in ICAL.Time._dowCache)return ICAL.Time._dowCache[n];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-e)%7+1,ICAL.Time._dowCache[n]=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 e=t||ICAL.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||ICAL.Time.SUNDAY,n=this.clone();return n.day+=(7-this.dayOfWeek()+e-ICAL.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=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 e=t||ICAL.Time.SUNDAY,n=this.dayOfWeek()-e;return n<0&&(n+=7),this.dayOfYear()-n},getDominicalLetter:function(){return ICAL.Time.getDominicalLetter(this.year)},nthWeekDay:function(t,e){var n,r=ICAL.Time.daysInMonth(this.month,this.year),i=e,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,n=t}else o.day=r,i++,(n=o.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,n=(this.year<<12)+(this.month<<8)+(this.day<<3)+t;if(n in ICAL.Time._wnCache)return ICAL.Time._wnCache[n];var r=this.clone();r.isDate=!0;var i=this.year;12==r.month&&r.day>25?(e=ICAL.Time.weekOneStarts(i+1,t),r.compare(e)<0?e=ICAL.Time.weekOneStarts(i,t):i++):(e=ICAL.Time.weekOneStarts(i,t),r.compare(e)<0&&(e=ICAL.Time.weekOneStarts(--i,t)));var a=r.subtractDate(e).toSeconds()/86400,o=ICAL.helpers.trunc(a/7)+1;return ICAL.Time._wnCache[n]=o,o},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 ICAL.Duration.fromSeconds(e-n)},subtractDateTz:function(t){var e=this.toUnixTime(),n=t.toUnixTime();return ICAL.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 ICAL.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||ICAL.Timezone.convert_time(e,this.zone,t),e.zone=t,e},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,e,n,r,i){var a,o,s,l,c,u,A,d=0,p=0,h=i||this._time;if(h.isDate||(s=h.second+r,h.second=s%60,a=ICAL.helpers.trunc(s/60),h.second<0&&(h.second+=60,a--),l=h.minute+n+a,h.minute=l%60,o=ICAL.helpers.trunc(l/60),h.minute<0&&(h.minute+=60,o--),c=h.hour+e+o,h.hour=c%24,d=ICAL.helpers.trunc(c/24),h.hour<0&&(h.hour+=24,d--)),h.month>12?p=ICAL.helpers.trunc((h.month-1)/12):h.month<1&&(p=ICAL.helpers.trunc(h.month/12)-1),h.year+=p,h.month-=12*p,(u=h.day+t+d)>0)for(;!(u<=(A=ICAL.Time.daysInMonth(h.month,h.year)));)h.month++,h.month>12&&(h.year++,h.month=1),u-=A;else for(;u<=0;)1==h.month?(h.year--,h.month=12):h.month--,u+=ICAL.Time.daysInMonth(h.month,h.year);return h.day=u,this._cachedUnixTime=null,this},fromUnixTime:function(t){this.zone=ICAL.Timezone.utcTimezone;var e=ICAL.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;r12||(n=[0,31,28,31,30,31,30,31,31,30,31,30,31][t],2==t&&(n+=ICAL.Time.isLeapYear(e))),n},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,e){var n=e,r=t,i=new ICAL.Time;i.auto_normalize=!1;var a=ICAL.Time.isLeapYear(n)?1:0;if(r<1)return n--,a=ICAL.Time.isLeapYear(n)?1:0,r+=ICAL.Time.daysInYearPassedMonth[a][12],ICAL.Time.fromDayOfYear(r,n);if(r>ICAL.Time.daysInYearPassedMonth[a][12])return a=ICAL.Time.isLeapYear(n)?1:0,r-=ICAL.Time.daysInYearPassedMonth[a][12],n++,ICAL.Time.fromDayOfYear(r,n);i.year=n,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,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 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:n})},ICAL.Time.fromString=function(t,e){return t.length>10?ICAL.Time.fromDateTimeString(t,e):ICAL.Time.fromDateString(t)},ICAL.Time.fromJSDate=function(t,e){return(new ICAL.Time).fromJSDate(t,e)},ICAL.Time.fromData=function(t,e){return(new ICAL.Time).fromData(t,e)},ICAL.Time.now=function(){return ICAL.Time.fromJSDate(new Date,!1)},ICAL.Time.weekOneStarts=function(t,e){var n=ICAL.Time.fromData({year:t,month:1,day:1,isDate:!0}),r=n.dayOfWeek(),i=e||ICAL.Time.DEFAULT_WEEK_START;return r>ICAL.Time.THURSDAY&&(n.day+=7),i>ICAL.Time.THURSDAY&&(n.day-=7),n.day-=r-i,n},ICAL.Time.getDominicalLetter=function(t){var e=(t+(t/4|0)+(t/400|0)-(t/100|0)-1)%7;return ICAL.Time.isLeapYear(t)?"GFEDCBA"[(e+6)%7]+"GFEDCBA"[e]:"GFEDCBA"[e]},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,e,n){return t[n]>e[n]?1:t[n]4?n(l,d?1:3,2):null,second:4==u?n(l,2,2):6==u?n(l,4,2):8==u?n(l,6,2):null};return s="Z"==s?ICAL.Timezone.utcTimezone:s&&":"==s[3]?ICAL.UtcOffset.fromString(s):null,new ICAL.VCardTime(p,s,e)},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},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=ICAL.helpers.strictParseInt(i),void 0!==e&&r '+e);if(void 0!==n&&r>n)throw new Error(t+': invalid value "'+r+'" must be < '+e);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,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 l?Array.isArray(t[e])?this.parts[n]=t[e]:this.parts[n]=[t[e]]:this[e]=t[e]}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 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()]=ICAL.helpers.clone(this.parts[e])}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 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!==ICAL.Time.DEFAULT_WEEK_START&&(t+=";WKST="+ICAL.Recur.numericDayToIcalDay(this.wkst)),t}},ICAL.Recur.icalDayToNumericDay=function(e,n){var r=n||ICAL.Time.SUNDAY;return(t[e]-r+7)%7+1},ICAL.Recur.numericDayToIcalDay=function(t,n){var r=t+(n||ICAL.Time.SUNDAY)-ICAL.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)$/,o=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],s={FREQ:function(t,e,n){if(-1===o.indexOf(t))throw new Error('invalid frequency "'+t+'" expected: "'+o.join(", ")+'"');e.freq=t},COUNT:function(t,e,n){e.count=ICAL.helpers.strictParseInt(t)},INTERVAL:function(t,e,n){e.interval=ICAL.helpers.strictParseInt(t),e.interval<1&&(e.interval=1)},UNTIL:function(t,e,n){t.length>10?e.until=ICAL.design.icalendar.value["date-time"].fromICAL(t):e.until=ICAL.design.icalendar.value.date.fromICAL(t),n||(e.until=ICAL.Time.fromString(e.until))},WKST:function(t,e,n){if(!i.test(t))throw new Error('invalid WKST value "'+t+'"');e.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 e=ICAL.Recur._stringToData(t,!1);return new ICAL.Recur(e)},ICAL.Recur.fromData=function(t){return new ICAL.Recur(t)},ICAL.Recur._stringToData=function(t,e){for(var n=Object.create(null),r=t.split(";"),i=r.length,a=0;a=0||n<0)&&(this.last.day+=n)}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();e=(l=this.ruleDayOfWeek(this.by_data.BYDAY[s]))[0];var l,c=l[1],u=this.last.nthWeekDay(c,e);if(e>=6||e<=-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,e)}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,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=ICAL.Time.daysInMonth(e,t),a=[],o=0,s=n.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,e){return t-e}))},_byDayAndMonthDay:function(t){var e,n,r,i,a=this.by_data.BYDAY,o=0,s=a.length,l=0,c=this,u=this.last.day;function A(){for(i=ICAL.Time.daysInMonth(c.last.month,c.last.year),e=c.normalizeByMonthDayRules(c.last.year,c.last.month,c.by_data.BYMONTHDAY),r=e.length;e[o]<=u&&(!t||e[o]!=u)&&oi)d();else{var h=e[o++];if(h>=n){u=h;for(var f=0;fe&&(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());e=ICAL.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}else{this.increment_month();e=ICAL.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 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 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=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],e=this.last.year;t<1&&(t+=1,e+=1);var n=ICAL.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=ICAL.Recur.icalDayToNumericDay(n[2],e)]:[0,0]},next_generic:function(t,e,n,r,i){var a=t in this.by_data,o=this.rule.freq==e,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[n]=l[this.by_indices[t]]}else o&&this["increment_"+n](this.rule.interval);return a&&s&&o&&this["increment_"+r](1),s},increment_monthday:function(t){for(var e=0;en&&(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=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,e,n,r){this.last[e]+=t;var i=ICAL.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 ICAL.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 o=1,s={};e.year=t,e.isDate=!0;for(var l=0;l0?(O=M+7*(F-1))<=E&&this.days.push(y+O):(O=k+7*(F+1))>0&&this.days.push(y+O)}}this.days.sort((function(t,e){return t-e}))}else if(2==p&&"BYDAY"in n&&"BYMONTHDAY"in n){var _=this.expand_by_day(t);for(var L in _)if(_.hasOwnProperty(L)){N=_[L];var Y=ICAL.Time.fromDayOfYear(N,t);this.by_data.BYMONTHDAY.indexOf(Y.day)>=0&&this.days.push(N)}}else if(3==p&&"BYDAY"in n&&"BYMONTHDAY"in n&&"BYMONTH"in n){_=this.expand_by_day(t);for(var L in _)if(_.hasOwnProperty(L)){N=_[L],Y=ICAL.Time.fromDayOfYear(N,t);this.by_data.BYMONTH.indexOf(Y.month)>=0&&this.by_data.BYMONTHDAY.indexOf(Y.day)>=0&&this.days.push(N)}}else if(2==p&&"BYDAY"in n&&"BYWEEKNO"in n){_=this.expand_by_day(t);for(var L in _)if(_.hasOwnProperty(L)){N=_[L];var P=(Y=ICAL.Time.fromDayOfYear(N,t)).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(P)&&this.days.push(N)}}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=[],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 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 A=(u+7-r)%7+1;A<=a;A+=7)e.push(A);else if(c>0){var d;d=u>=r?u-r+1:u-r+8,e.push(d+7*(c-1))}else{var p;c=-c,p=u<=i?a-i+u:a-i+u-7,e.push(p-7*(c-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],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 e=0;ethis.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 o=this.by_data[e];for(var s in o)if(o.hasOwnProperty(s)&&o[s]==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",ICAL.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}(),ICAL.RecurExpansion=function(){function t(t){return ICAL.helpers.formatClassType(t,ICAL.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=ICAL.helpers.formatClassType(e.dtstart,ICAL.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 ICAL.helpers.formatClassType(t,ICAL.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]),void 0!==e.complete&&(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=ICAL.helpers.binsearchInsert(a,t,e),a.splice(i,0,t)}for(var i,a=[],o=t.getAllProperties(n),s=o.length,l=0;l0)&&(r=e);return r}},n}(),ICAL.Event=function(){function t(t,e){t instanceof ICAL.Component||(e=t,t=null),this.component=t||new ICAL.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 ICAL.Component&&(t=new ICAL.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=ICAL.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=ICAL.helpers.binsearchInsert(this.rangeExceptions,[n],e);if((r-=1)<0)return null;var i=this.rangeExceptions[r];return n=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return a(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function h(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var v=Object.prototype.hasOwnProperty;function E(t,e){return v.call(t,e)}function b(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var C=/-(\w)/g,y=b((function(t){return t.replace(C,(function(t,e){return e?e.toUpperCase():""}))})),S=b((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),D=/\B([A-Z])/g,N=b((function(t){return t.replace(D,"-$1").toLowerCase()}));var B=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function x(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function O(t,e){for(var n in e)t[n]=e[n];return t}function R(t){for(var e={},n=0;n0,J=V&&V.indexOf("edge/")>0,K=(V&&V.indexOf("android"),V&&/iphone|ipad|ipod|ios/.test(V)||"ios"===Q),X=(V&&/chrome\/\d+/.test(V),V&&/phantomjs/.test(V),V&&V.match(/firefox\/(\d+)/)),tt={}.watch,et=!1;if(H)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,nt)}catch(t){}var rt=function(){return void 0===G&&(G=!H&&!$&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),G},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=w,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 e=0,n=t.length;e-1)if(a&&!E(i,"default"))o=!1;else if(""===o||o===N(t)){var l=Ut(String,i.type);(l<0||s0&&(Ae((l=t(l,(n||"")+"_"+r))[0])&&Ae(u)&&(A[c]=Tt(u.text+l[0].text),l.shift()),A.push.apply(A,l)):s(l)?Ae(u)?A[c]=Tt(u.text+l):""!==l&&A.push(Tt(l)):Ae(l)&&Ae(u)?A[c]=Tt(u.text+l.text):(o(e._isVList)&&a(l.tag)&&i(l.key)&&a(n)&&(l.key="__vlist"+n+"_"+r+"__"),A.push(l)));return A}(t):void 0}function Ae(t){return a(t)&&a(t.text)&&!1===t.isComment}function de(t,e){if(t){for(var n=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&&n&&n!==r&&s===n.$key&&!a&&!n.$hasNormal)return n;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=Te(e,l,t[l]))}else i={};for(var c in e)c in i||(i[c]=ge(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),j(i,"$stable",o),j(i,"$key",s),j(i,"$hasNormal",a),i}function Te(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!fe(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function ge(t,e){return function(){return t[e]}}function ve(t,e){var n,r,i,o,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(cn=function(){return un.now()})}function An(){var t,e;for(ln=cn(),on=!0,en.sort((function(t,e){return t.id-e.id})),sn=0;snsn&&en[n].id>t.id;)n--;en.splice(n+1,0,t)}else en.push(t);an||(an=!0,ne(An))}}(this)},pn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';zt(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},pn.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 hn={enumerable:!0,configurable:!0,get:w,set:w};function fn(t,e,n){hn.get=function(){return this[e][n]},hn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,hn)}function mn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&yt(!1);var a=function(a){i.push(a);var o=Yt(a,e,n,t);Nt(r,a,o),a in t||fn(t,"_props",a)};for(var o in e)a(o);yt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?w:B(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){dt();try{return t.call(e,e)}catch(t){return Gt(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var a=n[i];0,r&&E(r,a)||(o=void 0,36!==(o=(a+"").charCodeAt(0))&&95!==o&&fn(t,"_data",a))}var o;Dt(e,!0)}(t):Dt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=rt();for(var i in e){var a=e[i],o="function"==typeof a?a:a.get;0,r||(n[i]=new pn(t,o||w,w,Tn)),i in t||gn(t,i,a)}}(t,e.computed),e.watch&&e.watch!==tt&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!A(t)&&t.test(e)}function xn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!e(s)&&On(n,a,r,i)}}}function On(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,g(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Cn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=_t(yn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&We(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=pe(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return je(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return je(t,e,n,r,i,!0)};var a=n&&n.data;Nt(t,"$attrs",a&&a.attrs||r,null,!0),Nt(t,"$listeners",e._parentListeners||r,null,!0)}(e),tn(e,"beforeCreate"),function(t){var e=de(t.$options.inject,t);e&&(yt(!1),Object.keys(e).forEach((function(n){Nt(t,n,e[n])})),yt(!0))}(e),mn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),tn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Sn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Bt,t.prototype.$delete=xt,t.prototype.$watch=function(t,e,n){if(u(e))return bn(this,t,e,n);(n=n||{}).user=!0;var r=new pn(this,t,e,n);if(n.immediate){var i='callback for immediate watcher "'+r.expression+'"';dt(),zt(e,this,[r.value],this,i),pt()}return function(){r.teardown()}}}(Sn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,a=t.length;i1?x(n):n;for(var r=x(arguments,1),i='event handler for "'+t+'"',a=0,o=n.length;aparseInt(this.max)&&On(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)On(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){xn(t,(function(t){return Bn(e,t)}))})),this.$watch("exclude",(function(e){xn(t,(function(t){return!Bn(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=He(t),n=e&&e.componentOptions;if(n){var r=Nn(n),i=this.include,a=this.exclude;if(i&&(!r||!Bn(i,r))||a&&r&&Bn(a,r))return e;var o=this.cache,s=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;o[l]?(e.componentInstance=o[l].componentInstance,g(s,l),s.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return P}};Object.defineProperty(t,"config",e),t.util={warn:lt,extend:O,mergeOptions:_t,defineReactive:Nt},t.set=Bt,t.delete=xt,t.nextTick=ne,t.observable=function(t){return Dt(t),t},t.options=Object.create(null),L.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,O(t.options.components,wn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=x(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=_t(this.options,t),this}}(t),Dn(t),function(t){L.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Sn),Object.defineProperty(Sn.prototype,"$isServer",{get:rt}),Object.defineProperty(Sn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sn,"FunctionalRenderContext",{value:Me}),Sn.version="2.6.14";var Fn=m("style,class"),In=m("input,textarea,option,select,progress"),Mn=m("contenteditable,draggable,spellcheck"),kn=m("events,caret,typing,plaintext-only"),_n=m("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"),Ln="http://www.w3.org/1999/xlink",Yn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Pn=function(t){return Yn(t)?t.slice(6,t.length):""},Zn=function(t){return null==t||!1===t};function jn(t){for(var e=t.data,n=t,r=t;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Un(r.data,e));for(;a(n=n.parent);)n&&n.data&&(e=Un(e,n.data));return function(t,e){if(a(t)||a(e))return Gn(t,zn(e));return""}(e.staticClass,e.class)}function Un(t,e){return{staticClass:Gn(t.staticClass,e.staticClass),class:a(t.class)?[t.class,e.class]:e.class}}function Gn(t,e){return t?e?t+" "+e:t:e||""}function zn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?pr(t,e,n):_n(e)?Zn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Mn(e)?t.setAttribute(e,function(t,e){return Zn(e)||"false"===e?"false":"contenteditable"===t&&kn(e)?e:"true"}(e,n)):Yn(e)?Zn(n)?t.removeAttributeNS(Ln,Pn(e)):t.setAttributeNS(Ln,e,n):pr(t,e,n)}function pr(t,e,n){if(Zn(n))t.removeAttribute(e);else{if(W&&!q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var hr={create:Ar,update:Ar};function fr(t,e){var n=e.elm,r=e.data,o=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=jn(e),l=n._transitionClasses;a(l)&&(s=Gn(s,zn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var mr,Tr={create:fr,update:fr};function gr(t,e,n){var r=mr;return function i(){var a=e.apply(null,arguments);null!==a&&br(t,i,n,r)}}var vr=Vt&&!(X&&Number(X[1])<=53);function Er(t,e,n,r){if(vr){var i=ln,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return a.apply(this,arguments)}}mr.addEventListener(t,e,et?{capture:n,passive:r}:n)}function br(t,e,n,r){(r||mr).removeEventListener(t,e._wrapper||e,n)}function Cr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};mr=e.elm,function(t){if(a(t.__r)){var e=W?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}a(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),se(n,r,Er,br,gr,e.context),mr=void 0}}var yr,Sr={create:Cr,update:Cr};function Dr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,o=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in a(l.__ob__)&&(l=e.data.domProps=O({},l)),s)n in l||(o[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var c=i(r)?"":String(r);Nr(o,c)&&(o.value=c)}else if("innerHTML"===n&&Qn(o.tagName)&&i(o.innerHTML)){(yr=yr||document.createElement("div")).innerHTML=""+r+"";for(var u=yr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;u.firstChild;)o.appendChild(u.firstChild)}else if(r!==s[n])try{o[n]=r}catch(t){}}}}function Nr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(a(r)){if(r.number)return f(n)!==f(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Br={create:Dr,update:Dr},xr=b((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Or(t){var e=Rr(t.style);return t.staticStyle?O(t.staticStyle,e):e}function Rr(t){return Array.isArray(t)?R(t):"string"==typeof t?xr(t):t}var wr,Fr=/^--/,Ir=/\s*!important$/,Mr=function(t,e,n){if(Fr.test(e))t.style.setProperty(e,n);else if(Ir.test(n))t.style.setProperty(N(e),n.replace(Ir,""),"important");else{var r=_r(e);if(Array.isArray(n))for(var i=0,a=n.length;i-1?e.split(Pr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function jr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Pr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Ur(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&O(e,Gr(t.name||"v")),O(e,t),e}return"string"==typeof t?Gr(t):void 0}}var Gr=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"}})),zr=H&&!q,Hr="transition",$r="transitionend",Qr="animation",Vr="animationend";zr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Hr="WebkitTransition",$r="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Qr="WebkitAnimation",Vr="webkitAnimationEnd"));var Wr=H?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function qr(t){Wr((function(){Wr(t)}))}function Jr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Zr(t,e))}function Kr(t,e){t._transitionClasses&&g(t._transitionClasses,e),jr(t,e)}function Xr(t,e,n){var r=ei(t,e),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s="transition"===i?$r:Vr,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=o&&c()};setTimeout((function(){l0&&(n="transition",u=o,A=a.length):"animation"===e?c>0&&(n="animation",u=c,A=l.length):A=(n=(u=Math.max(o,c))>0?o>c?"transition":"animation":null)?"transition"===n?a.length:l.length:0,{type:n,timeout:u,propCount:A,hasTransform:"transition"===n&&ti.test(r[Hr+"Property"])}}function ni(t,e){for(;t.length1}function li(t,e){!0!==e.data.show&&ii(e)}var ci=function(t){var e,n,r={},l=t.modules,c=t.nodeOps;for(e=0;eh?v(t,i(n[T+1])?null:n[T+1].elm,n,p,T,r):p>T&&b(e,d,h)}(d,m,T,n,u):a(T)?(a(t.text)&&c.setTextContent(d,""),v(d,null,T,0,T.length-1,n)):a(m)?b(m,0,m.length-1):a(t.text)&&c.setTextContent(d,""):t.text!==e.text&&c.setTextContent(d,e.text),a(h)&&a(p=h.hook)&&a(p=p.postpatch)&&p(t,e)}}}function D(t,e,n){if(o(n)&&a(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,o.selected!==a&&(o.selected=a);else if(M(hi(o),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function pi(t,e){return e.every((function(e){return!M(e,t)}))}function hi(t){return"_value"in t?t._value:t.value}function fi(t){t.target.composing=!0}function mi(t){t.target.composing&&(t.target.composing=!1,Ti(t.target,"input"))}function Ti(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function gi(t){return!t.componentInstance||t.data&&t.data.transition?t:gi(t.componentInstance._vnode)}var vi={model:ui,show:{bind:function(t,e,n){var r=e.value,i=(n=gi(n)).data&&n.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ii(n,(function(){t.style.display=a}))):t.style.display=r?a:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=gi(n)).data&&n.data.transition?(n.data.show=!0,r?ii(n,(function(){t.style.display=t.__vOriginalDisplay})):ai(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,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 e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?bi(He(e.children)):t}function Ci(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var a in i)e[y(a)]=i[a];return e}function yi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Si=function(t){return t.tag||fe(t)},Di=function(t){return"show"===t.name},Ni={name:"transition",props:Ei,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Si)).length){0;var r=this.mode;0;var i=n[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 yi(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(Di)&&(a.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(a,u)&&!fe(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var A=u.data.transition=O({},l);if("out-in"===r)return this._leaving=!0,le(A,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),yi(t,i);if("in-out"===r){if(fe(a))return c;var d,p=function(){d()};le(l,"afterEnter",p),le(l,"enterCancelled",p),le(A,"delayLeave",(function(t){d=t}))}}return i}}},Bi=O({tag:String,moveClass:String},Ei);function xi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Oi(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ri(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.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 Bi.mode;var wi={Transition:Ni,TransitionGroup:{props:Bi,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Je(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=Ci(this),s=0;s-1?Wn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Wn[t]=/HTMLUnknownElement/.test(e.toString())},O(Sn.options.directives,vi),O(Sn.options.components,wi),Sn.prototype.__patch__=H?ci:w,Sn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=mt),tn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new pn(t,r,w,{before:function(){t._isMounted&&!t._isDestroyed&&tn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,tn(t,"mounted")),t}(this,t=t&&H?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},H&&setTimeout((function(){P.devtools&&it&&it.emit("init",Sn)}),0),e.default=Sn}.call(this,n(17),n(177).setImmediate)},function(t,e,n){"use strict";var r=n(105),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 e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===i.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;ni(t,"",e);e.generateRemoteUrl=t=>window.location.protocol+"//"+window.location.host+(t=>a()+"/remote.php/"+t)(t);e.generateOcsUrl=(t,e,n)=>{const i=1===Object.assign({ocsVersion:2},n||{}).ocsVersion?1:2;return window.location.protocol+"//"+window.location.host+a()+"/ocs/v"+i+".php"+r(t,e,n)};const r=(t,e,n)=>{const r=Object.assign({escape:!0},n||{});return"/"!==t.charAt(0)&&(t="/"+t),i=(i=e||{})||{},t.replace(/{([^{}]*)}/g,(function(t,e){var n=i[e];return r.escape?"string"==typeof n||"number"==typeof n?encodeURIComponent(n.toString()):encodeURIComponent(t):"string"==typeof n||"number"==typeof n?n.toString():t}));var i};e.generateUrl=(t,e,n)=>{const i=Object.assign({noRewrite:!1},n||{});return!0!==OC.config.modRewriteWorking||i.noRewrite?a()+"/index.php"+r(t,e,n):a()+r(t,e,n)};e.imagePath=(t,e)=>-1===e.indexOf(".")?i(t,"img",e+".svg"):i(t,"img",e);const i=(t,e,n)=>{const r=-1!==OC.coreApps.indexOf(t);let i=a();return"php"!==n.substring(n.length-3)||r?"php"===n.substring(n.length-3)||r?(i+="settings"!==t&&"core"!==t&&"search"!==t||"ajax"!==e?"/":"/index.php/",r||(i+="apps/"),""!==t&&(i+=t+="/"),e&&(i+=e+"/"),i+=n):(i=OC.appswebroots[t],e&&(i+="/"+e+"/"),"/"!==i.substring(i.length-1)&&(i+="/"),i+=n):(i+="/index.php/apps/"+t,"index.php"!==n&&(i+="/",e&&(i+=encodeURI(e+"/")),i+=n)),i};e.generateFilePath=i;const a=()=>OC.webroot;e.getRootUrl=a},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(21),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(r(t),e)}},function(t,e,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function s(t){for(var e=-1,n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(41);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},function(t,e,n){var r=n(26);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(12),i=n(18),a=n(34);t.exports=r?function(t,e,n){return i.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(1),i=n(22),a=n(13),o=n(56),s=n(71),l=n(29),c=l.get,u=l.enforce,A=String(String).split("String");(t.exports=function(t,e,n,s){var l,c=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||a(n,"name")||i(n,"name",e),(l=u(n)).source||(l.source=A.join("string"==typeof e?e:""))),t!==r?(c?!p&&t[e]&&(d=!0):delete t[e],d?t[e]=n:i(t,e,n)):d?t[e]=n:o(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRequestToken",{enumerable:!0,get:function(){return r.getRequestToken}}),Object.defineProperty(e,"onRequestTokenUpdate",{enumerable:!0,get:function(){return r.onRequestTokenUpdate}}),Object.defineProperty(e,"getCurrentUser",{enumerable:!0,get:function(){return i.getCurrentUser}});var r=n(181),i=n(184)},function(t,e,n){var r=n(40),i=n(26);t.exports=function(t){return r(i(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(1),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){"use strict"; /*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */var r=/["'&<>]/;t.exports=function(t){var e,n=""+t,i=r.exec(n);if(!i)return n;var a="",o=0,s=0;for(o=i.index;o1)for(var n=1;n0?r:n)(t)}},function(t,e,n){"use strict";var r=n(74),i=n(2),a=n(9),o=n(35),s=n(19),l=n(20),c=n(26),u=n(98),A=n(157),d=n(76),p=n(3)("replace"),h=Math.max,f=Math.min,m="$0"==="a".replace(/./,"$0"),T=!!/./[p]&&""===/./[p]("a","$0");r("replace",(function(t,e,n){var r=T?"$":"$0";return[function(t,n){var r=c(this),i=null==t?void 0:t[p];return void 0!==i?i.call(t,r,n):e.call(l(r),t,n)},function(t,i){var c=a(this),p=l(t);if("string"==typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var m=n(e,c,p,i);if(m.done)return m.value}var T="function"==typeof i;T||(i=l(i));var g=c.global;if(g){var v=c.unicode;c.lastIndex=0}for(var E=[];;){var b=d(c,p);if(null===b)break;if(E.push(b),!g)break;""===l(b[0])&&(c.lastIndex=u(p,s(c.lastIndex),v))}for(var C,y="",S=0,D=0;D=S&&(y+=p.slice(S,B)+F,S=B+N.length)}return y+p.slice(S)}]}),!!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!m||T)},function(t,e,n){var r=n(232),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();t.exports=a},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var r=n(4),i=n(50);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,n){var r=n(2),i=n(31),a="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(27),i=n(91);t.exports=i?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},function(t,e,n){var r,i,a=n(1),o=n(69),s=a.process,l=a.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u?i=(r=u.split("."))[0]<4?1:r[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},function(t,e){t.exports=!1},function(t,e,n){var r,i=n(9),a=n(128),o=n(60),s=n(49),l=n(129),c=n(57),u=n(58),A=u("IE_PROTO"),d=function(){},p=function(t){return"