tfwm-travel-updates-widget
Version:
A shareable travel updates (disruptions) widget which is shown on the TfWM homepage
1 lines • 59 kB
JavaScript
!function(){var e={569:function(e,t,n){e.exports=n(36)},381:function(e,t,n){"use strict";var r=n(589),o=n(297),i=n(301),a=n(774),s=n(804),c=n(145),u=n(411),l=n(467);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,_=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(h+":"+m)}var v=s(e.baseURL,e.url);function y(){if(p){var r="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,i={data:_&&"text"!==_&&"json"!==_?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,i),p=null}}if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(l("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||u(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}"setRequestHeader"in p&&r.forEach(f,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),_&&"json"!==_&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},36:function(e,t,n){"use strict";var r=n(589),o=n(49),i=n(773),a=n(777);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(n(221));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(346),c.CancelToken=n(857),c.isCancel=n(517),c.all=function(e){return Promise.all(e)},c.spread=n(89),c.isAxiosError=n(580),e.exports=c,e.exports.default=c},346:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},857:function(e,t,n){"use strict";var r=n(346);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},517:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},773:function(e,t,n){"use strict";var r=n(589),o=n(774),i=n(470),a=n(733),s=n(777),c=n(835),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var d=e;n.length;){var f=n.shift(),_=n.shift();try{d=f(d)}catch(p){_(p);break}}try{o=a(d)}catch(p){return Promise.reject(p)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},470:function(e,t,n){"use strict";var r=n(589);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},804:function(e,t,n){"use strict";var r=n(44),o=n(549);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},467:function(e,t,n){"use strict";var r=n(460);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},733:function(e,t,n){"use strict";var r=n(589),o=n(693),i=n(517),a=n(221);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},460:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},777:function(e,t,n){"use strict";var r=n(589);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(i,u),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var l=o.concat(i).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(d,u),n}},297:function(e,t,n){"use strict";var r=n(467);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},693:function(e,t,n){"use strict";var r=n(589),o=n(221);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},221:function(e,t,n){"use strict";var r=n(589),o=n(341),i=n(460),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(381)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw i(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(a)})),e.exports=c},49:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},774:function(e,t,n){"use strict";var r=n(589);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},549:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},301:function(e,t,n){"use strict";var r=n(589);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},44:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},580:function(e){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},411:function(e,t,n){"use strict";var r=n(589);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},341:function(e,t,n){"use strict";var r=n(589);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},145:function(e,t,n){"use strict";var r=n(589),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},89:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},835:function(e,t,n){"use strict";var r=n(593),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&s(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},589:function(e,t,n){"use strict";var r=n(49),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},593:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,r,o,i,a,s,c,u={},l=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function _(e){var t=e.parentNode;t&&t.removeChild(e)}function p(t,n,r){var o,i,a,s={};for(a in n)"key"==a?o=n[a]:"ref"==a?i=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return h(t,s,o,i,null)}function h(e,n,o,i,a){var s={type:e,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++r:a};return null==a&&null!=t.vnode&&t.vnode(s),s}function m(e){return e.children}function v(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function y(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||v(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||v(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?b:g,i):e.removeEventListener(t,i?b:g,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function g(e){o=!0;try{return this.l[e.type+!1](t.event?t.event(e):e)}finally{o=!1}}function b(e){o=!0;try{return this.l[e.type+!0](t.event?t.event(e):e)}finally{o=!1}}function w(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function x(e){o?setTimeout(e):s(e)}function k(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!N.__r++||a!==t.debounceRendering)&&((a=t.debounceRendering)||x)(N)}function N(){var e,t,n,r,o,a,s,c;for(i.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=i.shift();)e.__d&&(t=i.length,r=void 0,o=void 0,s=(a=(n=e).__v).__e,(c=n.__P)&&(r=[],(o=f({},a)).__v=a.__v+1,A(c,a,o,n.__n,void 0!==c.ownerSVGElement,null!=a.__h?[s]:null,r,null==s?S(a):s,a.__h),R(r,a),a.__e!=s&&E(a)),i.length>t&&i.sort((function(e,t){return e.__v.__b-t.__v.__b})));N.__r=0}function O(e,t,n,r,o,i,a,s,c,d){var f,_,p,v,y,g,b,w=r&&r.__k||l,E=w.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(v=n.__k[f]=null==(v=t[f])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?h(null,v,null,null,v):Array.isArray(v)?h(m,{children:v},null,null,null):v.__b>0?h(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(p=w[f])||p&&v.key==p.key&&v.type===p.type)w[f]=void 0;else for(_=0;_<E;_++){if((p=w[_])&&v.key==p.key&&v.type===p.type){w[_]=void 0;break}p=null}A(e,v,p=p||u,o,i,a,s,c,d),y=v.__e,(_=v.ref)&&p.ref!=_&&(b||(b=[]),p.ref&&b.push(p.ref,null,v),b.push(_,v.__c||y,v)),null!=y?(null==g&&(g=y),"function"==typeof v.type&&v.__k===p.__k?v.__d=c=T(v,c,e):c=P(e,v,p,w,y,c),"function"==typeof n.type&&(n.__d=c)):c&&p.__e==c&&c.parentNode!=e&&(c=S(p))}for(n.__e=g,f=E;f--;)null!=w[f]&&("function"==typeof n.type&&null!=w[f].__e&&w[f].__e==n.__d&&(n.__d=j(r).nextSibling),I(w[f],w[f]));if(b)for(f=0;f<b.length;f++)U(b[f],b[++f],b[++f])}function T(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?T(r,t,n):P(n,r,r,o,r.__e,t));return t}function C(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){C(e,t)})):t.push(e)),t}function P(e,t,n,r,o,i){var a,s,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,c=0;(s=s.nextSibling)&&c<r.length;c+=1)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function j(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=j(n)))return r;return null}function A(e,n,r,o,i,a,s,c,u){var l,d,_,p,h,v,y,g,b,S,E,x,k,N,T,C=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(u=r.__h,c=n.__e=r.__e,n.__h=null,a=[c]),(l=t.__b)&&l(n);try{e:if("function"==typeof C){if(g=n.props,b=(l=C.contextType)&&o[l.__c],S=l?b?b.props.value:l.__:o,r.__c?y=(d=n.__c=r.__c).__=d.__E:("prototype"in C&&C.prototype.render?n.__c=d=new C(g,S):(n.__c=d=new w(g,S),d.constructor=C,d.render=L),b&&b.sub(d),d.props=g,d.state||(d.state={}),d.context=S,d.__n=o,_=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,C.getDerivedStateFromProps(g,d.__s))),p=d.props,h=d.state,d.__v=n,_)null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==C.getDerivedStateFromProps&&g!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,S),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,S)||n.__v===r.__v){for(n.__v!==r.__v&&(d.props=g,d.state=d.__s,d.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(e){e&&(e.__=n)})),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,S),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,h,v)}))}if(d.context=S,d.props=g,d.__P=e,x=t.__r,k=0,"prototype"in C&&C.prototype.render){for(d.state=d.__s,d.__d=!1,x&&x(n),l=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do{d.__d=!1,x&&x(n),l=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(o=f(f({},o),d.getChildContext())),_||null==d.getSnapshotBeforeUpdate||(v=d.getSnapshotBeforeUpdate(p,h)),T=null!=l&&l.type===m&&null==l.key?l.props.children:l,O(e,Array.isArray(T)?T:[T],n,r,o,i,a,s,c,u),d.base=n.__e,n.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else null==a&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=D(r.__e,n,r,o,i,a,s,u);(l=t.diffed)&&l(n)}catch(e){n.__v=null,(u||null!=a)&&(n.__e=c,n.__h=!!u,a[a.indexOf(c)]=null),t.__e(e,n,r)}}function R(e,n){t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function D(t,n,r,o,i,a,s,c){var l,d,f,p=r.props,h=n.props,m=n.type,v=0;if("svg"===m&&(i=!0),null!=a)for(;v<a.length;v++)if((l=a[v])&&"setAttribute"in l==!!m&&(m?l.localName===m:3===l.nodeType)){t=l,a[v]=null;break}if(null==t){if(null===m)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),a=null,c=!1}if(null===m)p===h||c&&t.data===h||(t.data=h);else{if(a=a&&e.call(t.childNodes),d=(p=r.props||u).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!c){if(null!=a)for(p={},v=0;v<t.attributes.length;v++)p[t.attributes[v].name]=t.attributes[v].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||y(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||y(e,i,t[i],n[i],r)}(t,h,p,i,c),f)n.__k=[];else if(v=n.props.children,O(t,Array.isArray(v)?v:[v],n,r,o,i&&"foreignObject"!==m,a,s,a?a[0]:r.__k&&S(r,0),c),null!=a)for(v=a.length;v--;)null!=a[v]&&_(a[v]);c||("value"in h&&void 0!==(v=h.value)&&(v!==t.value||"progress"===m&&!v||"option"===m&&v!==p.value)&&y(t,"value",v,p.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==t.checked&&y(t,"checked",v,p.checked,!1))}return t}function U(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function I(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||U(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&I(o[i],n,r||"function"!=typeof e.type);r||null==e.__e||_(e.__e),e.__=e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function F(n,r,o){var i,a,s;t.__&&t.__(n,r),a=(i="function"==typeof o)?null:o&&o.__k||r.__k,s=[],A(r,n=(!i&&o||r).__k=p(m,null,[n]),a||u,u,void 0!==r.ownerSVGElement,!i&&o?[o]:a?null:r.firstChild?e.call(r.childNodes):null,s,!i&&o?o:a?a.__e:r.firstChild,i),R(s,n)}function M(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,k(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}e=l.slice,t={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},r=0,o=!1,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},w.prototype.render=m,i=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,N.__r=0,c=0;var H=function(e){var t=e.selector,n=e.inline,r=e.clientSpecified,o=[],i=document.currentScript||function(){var e=document.getElementsByTagName("script");return e[e.length-1]}();if(!0===n){var a=i.parentNode;o.push(a)}return!0!==r||t||(t=function(e){var t=e.attributes,n=null;return Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&"data-mount-in"===t[e].name&&(n=t[e].nodeValue)})),n}(i)),t&&[].forEach.call(document.querySelectorAll(t),(function(e){o.push(e)})),o},B=function(e,t,n,r,o){t.forEach((function(t){var i=t;if(!i._habitat){i._habitat=!0;var a=function(e,t){void 0===t&&(t={});var n=e.attributes,r=Object.assign({},t);return Object.keys(n).forEach((function(e){if(n.hasOwnProperty(e)){var t=n[e].name;if(!t||"string"!==typeof t)return!1;var o=t.split(/(data-props?-)/).pop()||"";if(t!==(o=o.replace(/-([a-z])/gi,(function(e,t){return t.toUpperCase()})))){var i=n[e].nodeValue;r[o]=i}}})),[].forEach.call(e.getElementsByTagName("script"),(function(e){var t={};if(e.hasAttribute("type")){if("text/props"!==e.getAttribute("type")&&"application/json"!==e.getAttribute("type"))return;try{t=JSON.parse(e.innerHTML)}catch(c){throw new Error(c)}Object.assign(r,t)}})),r}(t,o)||o;return r&&(i.innerHTML=""),F(p(e,a),i,n)}}))},V=function(e){var t=e;return{render:function(e){void 0===e&&(e={});var n=e.selector;void 0===n&&(n=null);var r=e.inline;void 0===r&&(r=!1);var o=e.clean;void 0===o&&(o=!1);var i=e.clientSpecified;void 0===i&&(i=!1);var a=e.defaultProps;void 0===a&&(a={});var s=H({selector:n,inline:r,clientSpecified:i}),c=function(){if(s.length>0){var e=H({selector:n,inline:r,clientSpecified:i});return B(t,e,null,o,a)}};c(),document.addEventListener("DOMContentLoaded",c),document.addEventListener("load",c)}}};function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){if(e){if("string"===typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(l){u=!0,o=l}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||W(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var z,$,G,K,X=0,Z=[],Y=[],Q=t.__b,ee=t.__r,te=t.diffed,ne=t.__c,re=t.unmount;function oe(e,n){t.__h&&t.__h($,e,X||n),X=0;var r=$.__H||($.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Y}),r.__[e]}function ie(e){return X=1,ae(he,e)}function ae(e,t,n){var r=oe(z++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):he(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=$,!$.u)){$.u=!0;var o=$.shouldComponentUpdate;$.shouldComponentUpdate=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!o||o.call(this,e,t,n))}}return r.__N||r.__}function se(e,n){var r=oe(z++,3);!t.__s&&pe(r.__H,n)&&(r.__=e,r.i=n,$.__H.__h.push(r))}function ce(e){var t=$.context[e.__c],n=oe(z++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub($)),t.props.value):e.__}function ue(){for(var e;e=Z.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fe),e.__H.__h.forEach(_e),e.__H.__h=[]}catch(i){e.__H.__h=[],t.__e(i,e.__v)}}t.__b=function(e){$=null,Q&&Q(e)},t.__r=function(e){ee&&ee(e),z=0;var t=($=e.__c).__H;t&&(G===$?(t.__h=[],$.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Y,e.__N=e.i=void 0}))):(t.__h.forEach(fe),t.__h.forEach(_e),t.__h=[])),G=$},t.diffed=function(e){te&&te(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==Z.push(n)&&K===t.requestAnimationFrame||((K=t.requestAnimationFrame)||de)(ue)),n.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Y&&(e.__=e.__V),e.i=void 0,e.__V=Y}))),G=$=null},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(fe),e.__h=e.__h.filter((function(e){return!e.__||_e(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),ne&&ne(e,n)},t.unmount=function(e){re&&re(e);var n,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{fe(e)}catch(e){n=e}})),r.__H=void 0,n&&t.__e(n,r.__v))};var le="function"==typeof requestAnimationFrame;function de(e){var t,n=function(){clearTimeout(r),le&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);le&&(t=requestAnimationFrame(n))}function fe(e){var t=$,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),$=t}function _e(e){var t=$;e.__c=e.__(),$=t}function pe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function he(e,t){return"function"==typeof t?t(e):t}function me(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||W(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(e)}function ye(e){var t=function(e,t){if("object"!==ve(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ve(t)?t:String(t)}function ge(e,t,n){return(t=ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Se=function(){var e=document.cookie,t="disruptionsApp";if(e.indexOf(t)>-1){var n=e.split("; ").find((function(e){return e.startsWith("".concat(t,"="))}));if(void 0!==n){var r=n.split("=")[1];return JSON.parse(r)}}},Ee=function(){var e=Se();if(void 0===e)return{};var t=e.favs;return t||{}},xe=function(){return Object.values(Ee()).reduce((function(e,t){var n=!1;return t.length&&(n=!0),n?e+1:e}),0)>0};function ke(e,t){for(var n in t)e[n]=t[n];return e}function Ne(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Oe(e){this.props=e}(Oe.prototype=new w).isPureReactComponent=!0,Oe.prototype.shouldComponentUpdate=function(e,t){return Ne(this.props,e)||Ne(this.state,t)};var Te=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Te&&Te(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var Ce=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ce(e,t,n,r)};var Pe=t.unmount;function je(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=ke({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return je(e,t,n)}))),e}function Ae(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ae(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Re(){this.__u=0,this.t=null,this.__b=null}function De(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ue(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Pe&&Pe(e)},(Re.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=De(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ae(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Re.prototype.componentWillUnmount=function(){this.t=[]},Re.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=je(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&p(m,null,e.fallback);return o&&(o.__h=null),[p(m,null,t.__a?null:e.children),o]};var Ie=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Ue.prototype=new w).__a=function(e){var t=this,n=De(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ie(t,e,r)):o()};n?n(i):i()}},Ue.prototype.render=function(e){this.u=null,this.o=new Map;var t=C(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ue.prototype.componentDidUpdate=Ue.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ie(e,n,t)}))};var Le="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Fe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Me="undefined"!=typeof document,He=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Be=t.event;function Ve(){}function qe(){return this.cancelBubble}function We(){return this.defaultPrevented}t.event=function(e){return Be&&(e=Be(e)),e.persist=Ve,e.isPropagationStopped=qe,e.isDefaultPrevented=We,e.nativeEvent=e};var Je={configurable:!0,get:function(){return this.class}},ze=t.vnode;t.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var a=n[i];Me&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!He(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Fe.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=C(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=C(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Je.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Je))}e.$$typeof=Le,ze&&ze(e)};var $e=t.__r;t.__r=function(e){$e&&$e(e),e.__c};var Ge=0;function Ke(e,n,r,o,i,a){var s,c,u={};for(c in n)"ref"==c?s=n[c]:u[c]=n[c];var l={type:e,props:u,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ge,__source:i,__self:a};if("function"==typeof e&&(s=e.defaultProps))for(c in s)void 0===u[c]&&(u[c]=s[c]);return t.vnode&&t.vnode(l),l}var Xe={editMode:!1,isRowExpandedOnMobile:{bus:!1,tram:!1,train:!1,roads:!1},hasFavs:xe(),favs:{bus:[],tram:[],train:[],roads:[]},previousFavs:{bus:[],tram:[],train:[],roads:[]},favsToRemoveOnSave:[]},Ze=M([Xe,function(){}]),Ye=function(e){var t=e.children,n=ae((function(e,t){switch(t.type){case"SET_EDIT_MODE":return we(we({},e),{},{editMode:t.payload});case"TOGGLE_ROW_VISIBILITY":var n=t.payload,r=n.mode,o=n.visible;return we(we({},e),{},{isRowExpandedOnMobile:we(we({},e.isRowExpandedOnMobile),{},ge({},r,o))});case"UPDATE_SERVICES":var i=t.payload,a=i.mode,s=i.data;return we(we({},e),{},{favs:we(we({},e.favs),{},ge({},a,s)),previousFavs:we(we({},e.previousFavs),{},ge({},a,s))});case"REMOVE_SERVICE":var c=t.payload,u=c.mode,l=c.id;return we(we({},e),{},{favs:we(we({},e.favs),{},ge({},u,e.favs[u].filter((function(e){return l!==e.id})))),favsToRemoveOnSave:[].concat(me(e.favsToRemoveOnSave),[{id:l,mode:u}])});case"CANCEL_STATE":return we(we({},e),{},{favs:we({},e.previousFavs),favsToRemoveOnSave:[]});case"SAVE_NEW_STATE":var d=Se();e.favsToRemoveOnSave.forEach((function(e){var t=e.id,n=e.mode;if(d&&d.favs){var r=d.favs[n];r&&(d.favs[n]="train"===n?r.filter((function(e){return e.line!==t})):"roads"===n?r.filter((function(e){var n=e.address,r=e.radius;return!n||!r||n+r!==t})):r.filter((function(e){return e!==t})))}})),function(e,t,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var o="expires=".concat(r.toUTCString()),i="domain=.".concat("tfwm.org.uk");document.cookie="".concat(e,"=").concat(t,";").concat(o,";").concat(i,";path=/")}("disruptionsApp",JSON.stringify(d),181);var f=xe();return we(we({},e),{},{previousFavs:we({},e.favs),favsToRemoveOnSave:[],hasFavs:f});default:return Xe}}),Xe),r=J(n,2),o=r[0],i=r[1];return Ke(Ze.Provider,{value:[o,i],children:[t," "]})},Qe=n(569),et=n.n(Qe),tt="https://api.wmnetwork.co.uk",nt="514b8bafa009424289cb2d7a12c54f6e";et().defaults.baseURL=tt,et().defaults.headers={"Ocp-Apim-Subscription-Key":nt};var rt=function(e){var t=J(ie(null),2),n=t[0],r=t[1],o=J(ie(!0),2),i=o[0],a=o[1],s=J(ie(!1),2),c=s[0],u=s[1];return se((function(){if(e){et().get(e).then((function(e){return r(e.data)})).catch((function(e){console.error({error:e}),u(!0)})).finally((function(){return a(!1)}))}}),[e]),{response:n,isFetching:i,hasError:c}},ot=function(e){var t=e.title,n=e.description,r=e.className,o=e.iconName;return Ke("svg",{className:r,children:[t&&Ke("title",{children:t}),n&&Ke("desc",{children:n}),Ke("use",{xlinkHref:"#wmnds-".concat(o),href:"#wmnds-".concat(o)})]})};ot.defaultProps={title:"",description:"",className:""};var it=ot,at=function(e){var t=e.href,n=e.children,r=e.className,o=e.isButton;return Ke("a",{href:encodeURI(t),className:"".concat(!o&&"wmnds-link"," ").concat(r),children:n})};at.defaultProps={className:"",isButton:!1};var st=at,ct=function(){var e="//disruptions.tfwm.org.uk/?when=now&isMapVisible=false";return Ke("div",{className:"wmnds-grid wmnds-grid--spacing-sm-2-lg wmnds-p-t-md",children:[Ke("div",{className:"wmnds-col-1 wmnds-col-sm-1-2",children:Ke(st,{href:e,className:"wmnds-btn wmnds-btn--mode wmnds-btn--block wmnds-m-b-md",isButton:!0,children:["Add services",Ke(it,{className:"wmnds-btn__icon wmnds-btn__icon--right",iconName:"general-expand"})]})}),Ke("div",{className:"wmnds-col-1 wmnds-col-sm-1-2",children:Ke(st,{className:"wmnds-btn wmnds-btn--block",href:e,isButton:!0,children:["View all updates",Ke(it,{className:"wmnds-btn__icon wmnds-btn__icon--right",iconName:"general-chevron-right"})]})})]})},ut=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},lt=function(e){var t=e.isFetching,n=e.response,r=e.mode,o=e.from,i=e.to,a=function(e){return"tram"===e?"metro":"train"===e?"rail":e}(r),s="roads"===r?"road":r,c=function(e,t,n,r){var o="general-success",i="wmnds-disruption-indicator-medium--success",a=Ke("strong",{children:"No known disruptions"});return 0!==e&&(o="general-warning-circle",i="wmnds-disruption-indicator-medium--warning",a=Ke(st,{href:"//disruptions.tfwm.org.uk/?mode=".concat(t),children:[e," ",1===e?"disruption":"disruptions"]})),{iconName:o,disruptionIndicatorClass:i,htmlToShow:a,from:n,to:r}}(null===n||void 0===n?void 0:n.totals[s],r,o,i),u=c.iconName,l=c.disruptionIndicatorClass,d=c.htmlToShow;return t&&(u="general-warning-circle",d=Ke("strong",{children:"Loading"}),l=""),Ke(m,{children:[Ke("div",{className:"wmnds-travel-update",children:Ke("div",{className:"wmnds-travel-update__disruption",children:[Ke("div",{className:"wmnds-disruption-indicator-medium wmnds-disruption-indicator-medium--with-icon wmnds-disruption-indicator-medium--narrow ".concat(l),children:[Ke(it,{className:"wmnds-disruption-indicator-medium__icon wmnds-disruption-indicator-medium__icon--left",iconName:"modes-isolated-".concat(a)}),Ke(it,{className:"wmnds-disruption-indicator-medium__icon wmnds-disruption-indicator-medium__icon--right",iconName:u})]}),Ke("h3",{className:"wmnds-m-none",children:ut(r)}),Ke("div",{className:"wmnds-travel-update__disruption-text",children:d})]})}),Ke("hr",{})]})},dt=new Date;dt.setHours(0,0,0,0);var ft=dt.toISOString(),_t=new Date(dt.getFullYear(),dt.getMonth(),dt.getDate(),23,59,59);_t.setHours(_t.getHours()+2);var pt=_t.toISOString(),ht=function(){var e=rt("/Disruption/v2/count?from=".concat(ft,"&to=").concat(pt)),t=e.response,n=e.isFetching;return Ke(m,{children:[Ke(lt,{isFetching:n,response:t,mode:"bus",from:ft,to:pt}),Ke(lt,{isFetching:n,response:t,mode:"train",from:ft,to:pt}),Ke(lt,{isFetching:n,response:t,mode:"tram",from:ft,to:pt}),Ke(lt,{isFetching:n,response:t,mode:"roads",from:ft,to:pt}),Ke(ct,{})]})},mt=function(){var e=J(ce(Ze),2),t=e[0],n=e[1],r=t.editMode,o=t.favs;return{disruptionsLink:"//disruptions.tfwm.org.uk/?when=now&isMapVisible=false",editMode:r,handleEditServicesClick:function(){return n({type:"SET_EDIT_MODE",payload:!0})},handleCancelChanges:function(){n({type:"SET_EDIT_MODE",payload:!1}),n({type:"CANCEL_STATE",payload:o})},handleSaveChanges:function(){n({type:"SET_EDIT_MODE",payload:!1}),n({type:"SAVE_NEW_STATE"})}}},vt=function(){var e=mt(),t=e.disruptionsLink,n=e.editMode,r=e.handleEditServicesClick,o=e.handleSaveChanges,i=e.handleCancelChanges;return Ke("div",{className:"wmnds-grid wmnds-grid--spacing-sm-2-lg wmnds-p-t-md",children:[Ke("div",{className:"wmnds-col-1 wmnds-col-sm-1-2",children:Ke("button",n?{type:"button",className:"wmnds-btn wmnds-btn--mode wmnds-btn--block wmnds-m-b-md",onClick:i,children:"Cancel"}:{className:"wmnds-btn wmnds-btn--mode wmnds-btn--block wmnds-m-b-md",type:"button","data-btn-name":"edit-services",onClick:r,children:["Edit your services ",n]})}),Ke("div",{className:"wmnds-col-1 wmnds-col-sm-1-2",children:n?Ke("button",{type:"button",className:"wmnds-btn wmnds-btn--block",onClick:o,children:"Save changes"}):Ke(st,{className:"wmnds-btn wmnds-btn--block",href:t,isButton:!0,children:["View all updates",Ke(it,{className:"wmnds-btn__icon wmnds-btn__icon--right",iconName:"general-chevron-right"})]})})]})},yt=function(e){var t=e.isFetching,n=e.isRowOpen,r=e.setIsRowOpen,o=e.hasError,i=e.mode;return Ke(m,{children:[Ke("div",{className:"wmnds-travel-update__disruption-title",children:[Ke("h3",{className:"wmnds-m-none",children:ut(i)}),t&&Ke("strong",{children:"Loading..."}),!t&&!o&&Ke("button",{type:"button",className:"wmnds-travel-update__disruption-detail-toggle","data-show-details":"".concat(n),onClick:function(){r((function(e){return"all"!==e&&!e&&"all"}))},children:Ke(it,{iconName:"general-chevron-right"})})]}),!t&&o&&Ke("span",{children:["Apologies, we are having technical difficulties loading your ",i.toLowerCase()," travel updates.",Ke("br",{}),"Please try again later."]})]})},gt=function(e,t,n){var r=J(ce(Ze),2),o=r[0].editMode,i=r[1];return{handleRemoveService:function(){i({type:"REMOVE_SERVICE",payload:{mode:t,id:e}})},handleToggleIndicator:function(){n((function(t){return t.map((function(t){return t.id===e?we(we({},t),{},{visible:!t.visible}):t}))}))},editMode:o}},bt=function(e){var t,n,r=e.id,o=e.disruptionSeverity,i=e.disruptionUrlSearchParams,a=e.formatDisruptionIndicatorText,s=e.indicatorText,c=e.mode,u=e.modalIcon,l=e.optionalText,d=e.setIndicatorsVisibility,f=e.indicatorsVisibility,_=e.isRowOpen,p=gt(r,c,d),h=p.handleToggleIndicator,m=p.handleRemoveService,v=p.editMode,y=function(e){var t={text:"Unknown servi