PageSourceSearch

https://asheboronc.gov/revize/plugins/revize_calendar/ics/ics.min.js

js asheboronc.gov collected 2026-09-25 04:33:29 UTC 15,208 bytes, 2 lines download raw bytes

1/*! ics.js Tue Feb 16 2021 18:20:27 */
2!function(){function a(a){return a.map(function(a){if(a.buffer instanceof ArrayBuffer){var b=a.buffer;if(a.byteLength!==b.byteLength){var c=new Uint8Array(a.byteLength);c.set(new Uint8Array(b,a.byteOffset,a.byteLength)),b=c.buffer}return b}return a})}function b(b,c){c=c||{};var d=new j;return a(b).forEach(function(a){d.append(a)}),c.type?d.getBlob(c.type):d.getBlob()}function c(b,c){return new k(a(b),c||{})}function d(a){for(var b=0,c=a.length,d=i.Uint8Array||Array,e=0,f=Math.max(32,c+(c>>1)+7),g=new d(f>>3<<3);c>b;){var h=a.charCodeAt(b++);if(h>=55296&&56319>=h){if(c>b){var j=a.charCodeAt(b);56320===(64512&j)&&(++b,h=((1023&h)<<10)+(1023&j)+65536)}if(h>=55296&&56319>=h)continue}if(e+4>g.length){f+=8,f*=1+b/a.length*2,f=f>>3<<3;var k=new Uint8Array(f);k.set(g),g=k}if(0!==(4294967168&h)){if(0===(4294965248&h))g[e++]=h>>6&31|192;else if(0===(4294901760&h))g[e++]=h>>12&15|224,g[e++]=h>>6&63|128;else{if(0!==(4292870144&h))continue;g[e++]=h>>18&7|240,g[e++]=h>>12&63|128,g[e++]=h>>6&63|128}g[e++]=63&h|128}else g[e++]=h}return g.slice(0,e)}function e(a){for(var b=a.length,c=[],d=0;b>d;){var e=a[d],f=null,g=e>239?4:e>223?3:e>191?2:1;if(b>=d+g){var h,i,j,k;switch(g){case 1:128>e&&(f=e);break;case 2:h=a[d+1],128===(192&h)&&(k=(31&e)<<6|63&h,k>127&&(f=k));break;case 3:h=a[d+1],i=a[d+2],128===(192&h)&&128===(192&i)&&(k=(15&e)<<12|(63&h)<<6|63&i,k>2047&&(55296>k||k>57343)&&(f=k));break;case 4:h=a[d+1],i=a[d+2],j=a[d+3],128===(192&h)&&128===(192&i)&&128===(192&j)&&(k=(15&e)<<18|(63&h)<<12|(63&i)<<6|63&j,k>65535&&1114112>k&&(f=k))}}null===f?(f=65533,g=1):f>65535&&(f-=65536,c.push(f>>>10&1023|55296),f=56320|1023&f),c.push(f),d+=g}for(var l=c.length,m="",d=0;l>d;)m+=String.fromCharCode.apply(String,c.slice(d,d+=4096));return m}function f(){function a(a){return a&&DataView.prototype.isPrototypeOf(a)}function b(a){for(var b=new Array(a.byteLength),c=new Uint8Array(a),d=b.length;d--;)b[d]=c[d];return b}function c(a){for(var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=[],d=0;d<a.length;d+=3){var e=a[d],f=d+1<a.length,g=f?a[d+1]:0,h=d+2<a.length,i=h?a[d+2]:0,j=e>>2,k=(3&e)<<4|g>>
24,l=(15&g)<<2|i>>6,m=63&i;h||(m=64,f||(l=64)),c.push(b[j],b[k],b[l],b[m])}return c.join("")}function d(a){for(var b=0,c=a.length;c--;)b+=a[c].length;var d=new Uint8Array(b),e=0;for(c=0,l=a.length;c<l;c++){var f=a[c];d.set(f,e),e+=f.byteLength||f.length}return d}function e(c,f){c=c||[],f=null==f?{}:f;for(var g=0,h=c.length;h>g;g++){var j=c[g];j instanceof e?c[g]=j._buffer:"string"==typeof j?c[g]=u(j):r&&(ArrayBuffer.prototype.isPrototypeOf(j)||o(j))?c[g]=b(j):r&&a(j)?c[g]=b(j.buffer):c[g]=u(String(j))}this._buffer=i.Uint8Array?d(c):[].concat.apply([],c),this.size=this._buffer.length,this.type=f.type||"",/[^\u0020-\u007E]/.test(this.type)?this.type="":this.type=this.type.toLowerCase()}function f(a,b,c){c=c||{};var d=e.call(this,a,c)||this;return d.name=b.replace(/\//g,":"),d.lastModifiedDate=c.lastModified?new Date(c.lastModified):new Date,d.lastModified=+d.lastModifiedDate,d}function g(){if(!(this instanceof g))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var a=document.createDocumentFragment();this.addEventListener=a.addEventListener,this.dispatchEvent=function(b){var c=this["on"+b.type];"function"==typeof c&&c(b),a.dispatchEvent(b)},this.removeEventListener=a.removeEventListener}function h(a,b,c){if(!(b instanceof e))throw new TypeError("Failed to execute '"+c+"' on 'FileReader': parameter 1 is not of type 'Blob'.");a.result="",setTimeout(function(){this.readyState=g.LOADING,a.dispatchEvent(new Event("load")),a.dispatchEvent(new Event("loadend"))})}var j=Object.create||function(a){function b(){}return b.prototype=a,new b};if(r)var k=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(a){return a&&k.indexOf(Object.prototype.toString.call(a))>-1};if(e.prototype.arrayBuffer=function(){return Promise.resolve(this._buffer)},e.prototype.text=function(){return Promise.resolve(v(this._buffer))},e.prototype.slice=function(a,b,c){var d=this._buffer.slice(a||0,b||this._buffer.length);return new e([d],{type:c})},e.prototype.toString=function(){return"[object Blob]"},f.prototype=j(e.prototype),f.prototype.constructor=f,Object.setPrototypeOf)Object.setPrototypeOf(f,e);else try{f.__proto__=e}catch(p){}f.prototype.toString=function(){return"[object File]"},g.EMPTY=0,g.LOADING=1,g.DONE=2,g.prototype.error=null,g.prototype.onabort=null,g.prototype.onerror=null,g.prototype.onload=null,g.prototype.onloadend=null,g.prototype.onloadstart=null,g.prototype.onprogress=null,g.prototype.readAsDataURL=function(a){h(this,a,"readAsDataURL"),this.result="data:"+a.type+";base64,"+c(a._buffer)},g.prototype.readAsText=function(a){h(this,a,"readAsText"),this.result=v(a._buffer)},g.prototype.readAsArrayBuffer=function(a){h(this,a,"readAsText"),this.result=(a._buffer.buffer||a._buffer).slice()},g.prototype.abort=function(){},URL.createObjectURL=function(a){return a instanceof e?"data:"+a.type+";base64,"+c(a._buffer):m.call(URL,a)},URL.revokeObjectURL=function(a){n&&n.call(URL,a)};var q=i.XMLHttpRequest&&i.XMLHttpRequest.prototype.send;q&&(XMLHttpRequest.prototype.send=function(a){a instanceof e?(this.setRequestHeader("Content-Type",a.type),q.call(this,v(a._buffer))):q.call(this,a)}),i.FileReader=g,i.File=f,i.Blob=e}function g(){var a=!!i.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,b=i.XMLHttpRequest&&i.XMLHttpRequest.prototype.send;a&&b&&(XMLHttpRequest.prototype.send=function(a){a instanceof Blob?(this.setRequestHeader("Content-Type",a.type),b.call(this,a)):b.call(this,a)});try{new File([],"")}catch(c){try{var d=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name.replace(///g, ":");this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date();this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();i.File=d}catch(c){var d=function(a,b,c){var d=new Blob(a,c),e=c&&void 0!==c.lastModified?new Date(c.lastModified):new Date;return d.name=b.replace(/\//g,":"),d.lastModifiedDate=e,d.lastModified=+e,d.toString=function(){return"[object File]"},o&&(d[o]="File"),d};i.File=d}}}function h(a){return new Promise(function(b,c){a.onload=a.onerror=function(d){a.onload=a.onerror=null,"load"===d.type?b(a.result||a):c(new Error("Failed to read the blob/file"))}})}var i="object"==typeof window?window:"object"==typeof self?self:this,j=i.BlobBuilder||i.WebKitBlobBuilder||i.MSBlobBuilder||i.MozBlobBuilder;i.URL=i.URL||i.webkitURL||function(a,b){return b=document.createElement("a"),b.href=a,b};var k=i.Blob,m=URL.createObjectURL,n=URL.revokeObjectURL,o=i.Symbol&&i.Symbol.toStringTag,p=!1,q=!1,r=!!i.ArrayBuffer,s=j&&j.prototype.append&&j.prototype.getBlob;
2try{p=2===new Blob(["ä"]).size,q=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}i.Blob&&(b.prototype=Blob.prototype,c.prototype=Blob.prototype);var u="function"==typeof TextEncoder?TextEncoder.prototype.encode.bind(new TextEncoder):d,v="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):e;p?(g(),i.Blob=q?i.Blob:c):s?(g(),i.Blob=b):f(),o&&(File.prototype[o]="File",Blob.prototype[o]="Blob",FileReader.prototype[o]="FileReader");var w,x=i.Blob.prototype;try{new ReadableStream({type:"bytes"}),w=function(){var a=0,b=this;return new ReadableStream({type:"bytes",autoAllocateChunkSize:524288,pull:function(c){var d=c.byobRequest.view,e=b.slice(a,a+d.byteLength);return e.arrayBuffer().then(function(e){var f=new Uint8Array(e),g=f.byteLength;a+=g,d.set(f),c.byobRequest.respond(g),a>=b.size&&c.close()})}})}}catch(t){try{new ReadableStream({}),w=function(a){var b=0,a=this;return new ReadableStream({pull:function(c){var d=a.slice(b,b+524288);return d.arrayBuffer().then(function(d){b+=d.byteLength;var e=new Uint8Array(d);c.enqueue(e),b==a.size&&c.close()})}})}}catch(t){try{new Response("").body.getReader().read(),w=function(){return new Response(this).body}}catch(t){w=function(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}x.arrayBuffer||(x.arrayBuffer=function(){var a=new FileReader;return a.readAsArrayBuffer(this),h(a)}),x.text||(x.text=function(){var a=new FileReader;return a.readAsText(this),h(a)}),x.stream||(x.stream=w)}(),function(a,b){if("function"==typeof define&&define.amd)define([],b);else if("undefined"!=typeof exports)b();else{var c={exports:{}};b(),a.FileSaver=c.exports}}(this,function(){"use strict";function a(a,b){return"undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob([String.fromCharCode(65279),a],{type:a.type}):a}function b(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c)},d.onerror=function(){console.error("could not download file")},d.send()}function c(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(c){}return b.status>=200&&b.status<=299}function d(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(b){var c=document.createEvent("MouseEvents");
2c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(c)}}var e="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,f=/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=e.saveAs||("object"!=typeof window||window!==e?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(a,f,g){var h=e.URL||e.webkitURL,i=document.createElement("a");f=f||a.name||"download",i.download=f,i.rel="noopener","string"==typeof a?(i.href=a,i.origin!==location.origin?c(i.href)?b(a,f,g):d(i,i.target="_blank"):d(i)):(i.href=h.createObjectURL(a),setTimeout(function(){h.revokeObjectURL(i.href)},4e4),setTimeout(function(){d(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,f,g){if(f=f||e.name||"download","string"==typeof e)if(c(e))b(e,f,g);else{var h=document.createElement("a");h.href=e,h.target="_blank",setTimeout(function(){d(h)})}else navigator.msSaveOrOpenBlob(a(e,g),f)}:function(a,c,d,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof a)return b(a,c,d);var h="application/octet-stream"===a.type,i=/constructor/i.test(e.HTMLElement)||e.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||f)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null},k.readAsDataURL(a)}else{var l=e.URL||e.webkitURL,m=l.createObjectURL(a);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m)},4e4)}});e.saveAs=g.saveAs=g,"undefined"!=typeof module&&(module.exports=g)});var ics=function(a,b){"use strict";if(navigator.userAgent.indexOf("MSIE")>-1&&-1==navigator.userAgent.indexOf("MSIE 10"))return void console.log("Unsupported Browser");"undefined"==typeof a&&(a="default"),"undefined"==typeof b&&(b="Calendar");var c=-1!==navigator.appVersion.indexOf("Win")?"\r\n":"\n",d=[],e=["BEGIN:VCALENDAR","PRODID:"+b,"VERSION:2.0"].join(c),f=c+"END:VCALENDAR",g=["SU","MO","TU","WE","TH","FR","SA"];return{events:function(){return d},calendar:function(){return e+c+d.join(c)+f},addEvent:function(b,e,f,h,i,j,k){if("undefined"==typeof b||"undefined"==typeof e||"undefined"==typeof f||"undefined"==typeof h||"undefined"==typeof i)return!1;if(j&&!j.rrule){if("YEARLY"!==j.freq&&"MONTHLY"!==j.freq&&"WEEKLY"!==j.freq&&"DAILY"!==j.freq)throw"Recurrence rrule frequency must be provided and be one of the following: 'YEARLY', 'MONTHLY', 'WEEKLY', or 'DAILY'";if(j.until&&isNaN(Date.parse(j.until)))throw"Recurrence rrule 'until' must be a valid date string";if(j.interval&&isNaN(parseInt(j.interval)))throw"Recurrence rrule 'interval' must be an integer";if(j.count&&isNaN(parseInt(j.count)))throw"Recurrence rrule 'count' must be an integer";if("undefined"!=typeof j.byday){if("[object Array]"!==Object.prototype.toString.call(j.byday))throw"Recurrence rrule 'byday' must be an array";if(j.byday.length>7)throw"Recurrence rrule 'byday' array must not be longer than the 7 days in a week";j.byday=j.byday.filter(function(a,b){return j.byday.indexOf(a)==b});for(var l in j.byday)if(g.indexOf(j.byday[l])<0)throw"Recurrence rrule 'byday' values must include only the following: 'SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'"}}var m=new Date(h); m.setMinutes(m.getMinutes() + m.getTimezoneOffset());var n=new Date(i); n.setMinutes(n.getMinutes() + n.getTimezoneOffset()); var o=new Date,p=("0000"+m.getFullYear().toString()).slice(-4),q=("00"+(m.getMonth()+1).toString()).slice(-2),r=("00"+m.getDate().toString()).slice(-2),s=("00"+m.getHours().toString()).slice(-2),t=("00"+m.getMinutes().toString()).slice(-2),u=("00"+m.getSeconds().toString()).slice(-2),v=("0000"+n.getFullYear().toString()).slice(-4),w=("00"+(n.getMonth()+1).toString()).slice(-2),x=("00"+n.getDate().toString()).slice(-2),y=("00"+n.getHours().toString()).slice(-2),z=("00"+n.getMinutes().toString()).slice(-2),A=("00"+n.getSeconds().toString()).slice(-2),B=("0000"+o.getFullYear().toString()).slice(-4),C=("00"+(o.getMonth()+1).toString()).slice(-2),D=("00"+o.getDate().toString()).slice(-2),E=("00"+o.getHours().toString()).slice(-2),F=("00"+o.getMinutes().toString()).slice(-2),G=("00"+o.getSeconds().toString()).slice(-2),H="",I="";n.getTime()-m.getTime()>0&&(H="T"+s+t+u,I="T"+y+z+A);var J="T"+E+F+G+"Z",K=p+q+r+H,L=v+w+x+I,M=B+C+D+J,N=["BEGIN:VEVENT","UID:"+d.length+"@"+a,"CLASS:PUBLIC","DESCRIPTION:"+e];if(j){var O;if(j.rrule)O=j.rrule;else{if(O="RRULE:FREQ="+j.freq,j.until){var P=new Date(Date.parse(j.until)).toISOString();O+=";UNTIL="+P.substring(0,P.length-13).replace(/[-]/g,"")+"000000Z"}j.interval&&(O+=";INTERVAL="+j.interval),j.count&&(O+=";COUNT="+j.count),j.byday&&j.byday.length>0&&(O+=";BYDAY="+j.byday.join(","))}N.push(O)}return N.push("DTSTAMP;VALUE=DATE-TIME:"+M),""!==H?N.push("DTSTART;VALUE=DATE-TIME:"+K+"Z"):N.push("DTSTART;VALUE=DATE:"+K),""!==I?N.push("DTEND;VALUE=DATE-TIME:"+L+"Z"):L!==K&&N.push("DTEND;VALUE=DATE:"+L),N.push("LOCATION:"+f,"SUMMARY;LANGUAGE=en-us:"+b,"TRANSP:TRANSPARENT","END:VEVENT"),N=N.join(c),d.push(N),N},download:function(a,b){if(d.length<1)return!1;b="undefined"!=typeof b?b:".ics",a="undefined"!=typeof a?a:"calendar";var g,h=e+c+d.join(c)+f;if(-1===navigator.userAgent.indexOf("MSIE 10"))g=new Blob([h]);else{var i=new BlobBuilder;i.append(h),g=i.getBlob("text/x-vCalendar;charset="+document.characterSet)}return saveAs(g,a+b),h},build:function(){if(d.length<1)return!1;var a=e+c+d.join(c)+f;return a}}};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.