1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5633],{54098:function(t,e,r){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();(function(t){var e=void 0!==o&&o||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function a(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n.iterable&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){if(2!=t.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function c(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(TypeError("Already read"));t.bodyUsed=!0}}function p(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function l(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){if(this.bodyUsed=this.bodyUsed,this._bodyInit=t,t){if("string"==typeof t)this._bodyText=t;else if(n.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(n.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else{var e;n.arrayBuffer&&n.blob&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t)}}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return c(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(n.blob)return this.blob().then(l);throw Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,o,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,r=p(e=new FileReader),o=(n=/charset=([A-Za-z0-9_-]+)/.exec(t.type))?n[1]:"utf-8",e.readAsText(t,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},n.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=a(t),e=u(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},h.prototype.delete=function(t){delete this.map[a(t)]},h.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},h.prototype.set=function(t,e){this.map[a(t)]=u(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),f(t)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),f(t)},h.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),f(t)},n.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function m(t,r){if(!(this instanceof m))throw TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var n,o,i=(r=r||{}).body;if(t instanceof m){if(t.bodyUsed)throw TypeError("Already read");this.url=t.url,this.credentials=t.credentials,r.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=r.credentials||this.credentials||"same-origin",(r.headers||!this.headers)&&(this.headers=new h(r.headers)),this.method=(o=(n=r.method||this.method||"GET").toUpperCase(),g.indexOf(o)>-1?o:n),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in e)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),("GET"===this.method||"HEAD"===this.method)&&("no-store"===r.cache||"no-cache"===r.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function b(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function v(t,e){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},y.call(m.prototype),y.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},v.error=function(){var t=new v(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var w=[301,302,303,307,308];v.redirect=function(t,e){if(-1===w.indexOf(e))throw RangeError("Invalid status code");return new v(null,{status:e,headers:{location:t}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function A(r,o){return new Promise(function(i,s){var f=new m(r,o);if(f.signal&&f.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function p(){c.abort()}if(c.onload=function(){var t,e,r={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}
1).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{e.append(n,o)}catch(t){console.warn("Response "+t.message)}}}),e)};0===f.url.indexOf("file://")&&(c.status<200||c.status>599)?r.status=200:r.status=c.status,r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var n="response"in c?c.response:c.responseText;setTimeout(function(){i(new v(n,r))},0)},c.onerror=function(){setTimeout(function(){s(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){s(TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){s(new t.DOMException("Aborted","AbortError"))},0)},c.open(f.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(f.url),!0),"include"===f.credentials?c.withCredentials=!0:"omit"===f.credentials&&(c.withCredentials=!1),"responseType"in c&&(n.blob?c.responseType="blob":n.arrayBuffer&&(c.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof h||e.Headers&&o.headers instanceof e.Headers)){var l=[];Object.getOwnPropertyNames(o.headers).forEach(function(t){l.push(a(t)),c.setRequestHeader(t,u(o.headers[t]))}),f.headers.forEach(function(t,e){-1===l.indexOf(e)&&c.setRequestHeader(e,t)})}else f.headers.forEach(function(t,e){c.setRequestHeader(e,t)});f.signal&&(f.signal.addEventListener("abort",p),c.onreadystatechange=function(){4===c.readyState&&f.signal.removeEventListener("abort",p)}),c.send(void 0===f._bodyInit?null:f._bodyInit)})}A.polyfill=!0,e.fetch||(e.fetch=A,e.Headers=h,e.Request=m,e.Response=v),t.Headers=h,t.Request=m,t.Response=v,t.fetch=A,Object.defineProperty(t,"__esModule",{value:!0})})({}),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e},25633:function(t,e,r){"use strict";var n=r(54098),o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},i=function(){function t(t){this.data={},this.data=t}return t.prototype.id=function(){return this.data.id},t.prototype.ref=function(){return this.data.ref},t.prototype.label=function(){return this.data.label},t}(),s=function(){function t(t){this.data={},this.data=t,this.variations=(t.variations||[]).map(function(t){return new i(t)})}return t.prototype.id=function(){return this.data.id},t.prototype.googleId=function(){return this.data.googleId},t.prototype.name=function(){return this.data.name},t}(),a=function(){function t(t){t&&(this.drafts=(t.drafts||[]).map(function(t){return new s(t)}),this.running=(t.running||[]).map(function(t){return new s(t)}))}return t.prototype.current=function(){return this.running.length>0?this.running[0]:null},t.prototype.refFromCookie=function(t){if(!t||""===t.trim())return null;var e=t.trim().split(" ");if(e.length<2)return null;var r=e[0],n=parseInt(e[1],10),o=this.running.filter(function(t){return t.googleId()===r&&t.variations.length>n})[0];return o?o.variations[n].ref():null},t}(),u=function(){function t(t,e){this.id=t,this.api=e,this.fields={}}return t.prototype.set=function(t,e){return this.fields[t]=e,this},t.prototype.ref=function(t){return this.set("ref",t)},t.prototype.query=function(t){return this.set("q",t)},t.prototype.pageSize=function(t){return this.set("pageSize",t)},t.prototype.fetch=function(t){return console.warn("Warning: Using Fetch is deprecated. Use the property `graphQuery` instead."),this.set("fetch",t)},t.prototype.fetchLinks=function(t){return console.warn("Warning: Using FetchLinks is deprecated. Use the property `graphQuery` instead."),this.set("fetchLinks",t)},t.prototype.graphQuery=function(t){return this.set("graphQuery",t)},t.prototype.lang=function(t){return this.set("lang",t)},t.prototype.page=function(t){return this.set("page",t)},t.prototype.after=function(t){return this.set("after",t)},t.prototype.orderings=function(t){return this.set("orderings",t)},t.prototype.url=function(){var e=this;return this.api.get().then(function(r){return t.toSearchForm(e,r).url()})},t.prototype.submit=function(e){var r=this;return this.api.get().then(function(n){return t.toSearchForm(r,n).submit(e)})},t.toSearchForm=function(t,e){var r=e.form(t.id);if(r)return Object.keys(t.fields).reduce(function(e,r){var n=t.fields[r];if("q"===r)return e.query(n);if("pageSize"===r)return e.pageSize(n);if("fetch"===r)return e.fetch(n);if("fetchLinks"===r)return e.fetchLinks(n);if("graphQuery"===r)return e.graphQuery(n);if("lang"===r)return e.lang(n);if("page"===r)return e.page(n);else if("after"===r)return e.after(n);else if("orderings"===r)return e.orderings(n);else return e.set(r,n)},r);throw Error("Unable to access to form "+t.id)},t}(),f=function(){function t(t,e){for(var r in this.httpClient=e,this.form=t,this.data={},t.fields)t.fields[r].default&&(this.data[r]=[t.fields[r].default])}return t.prototype.set=function(t,e){var r=this.form.fields[t];if(!r)throw Error("Unknown field "+t);var n=""===e||void 0===e?null:e,o=this.data[t]||[];return o=r.multiple?n?o.concat([n]):o:n?[n]:o,this.data[t]=o,this},t.prototype.ref=function(t){return this.set("ref",t)},t.prototype.query=function(t){if("string"==typeof t)return this.query([t]);if(Array.isArray(t))return this.set("q","["+t.join("")+"]");throw Error("Invalid query : "+t)},t.prototype.pageSize=function(t){return this.set("pageSize",t)},t.prototype.fetch=function(t){console.warn("Warning: Using Fetch is deprecated. Use the property `graphQuery` instead.");var e=Array.isArray(t)?t.join(","):t;return this.set("fetch",e)},t.prototype.fetchLinks=function(t){console.warn("Warning: Using FetchLinks is deprecated. Use the property `graphQuery` instead.");var e=Array.isArray(t)?t.join(","):t;return this.set("fetchLinks",e)},t.prototype.graphQuery=function(t){return this.set("graphQuery",t)},t.prototype.lang=function(t){return this.set("lang",t)},t.prototype.page=function(t){return this.set("page",t)},t.prototype.after=function(t){return this.set("after",t)},t.prototype.orderings=function(t){return t?this.set("orderings","["+t.join(",")+"]"):this},t.prototype.url=function(){var t=this.form.action;if(this.data){var e=t.indexOf("?")>-1?"&":"?";for(var r in this.data)if(Object.prototype.hasOwnProperty.call(this.data,r)){var n=this.data[r];if(n)for(var o=0;o<n.length;
1o++)t+=e+r+"="+encodeURIComponent(n[o]),e="&"}}return t},t.prototype.submit=function(t){return this.httpClient.cachedRequest(this.url()).then(function(e){return t&&t(null,e),e}).catch(function(e){throw t&&t(e),e})},t}();function h(t){if("string"==typeof t)return'"'+t+'"';if("number"==typeof t)return t.toString();if(t instanceof Date)return t.getTime().toString();if(Array.isArray(t))return"["+t.map(function(t){return h(t)}).join(",")+"]";if("boolean"==typeof t)return t.toString();throw Error("Unable to encode "+t+" of type "+typeof t)}var c={near:function(t,e,r,n){return"[geopoint.near("+t+", "+e+", "+r+", "+n+")]"}},p={before:function(t,e){return"[date.before("+t+", "+h(e)+")]"},after:function(t,e){return"[date.after("+t+", "+h(e)+")]"},between:function(t,e,r){return"[date.between("+t+", "+h(e)+", "+h(r)+")]"},dayOfMonth:function(t,e){return"[date.day-of-month("+t+", "+e+")]"},dayOfMonthAfter:function(t,e){return"[date.day-of-month-after("+t+", "+e+")]"},dayOfMonthBefore:function(t,e){return"[date.day-of-month-before("+t+", "+e+")]"},dayOfWeek:function(t,e){return"[date.day-of-week("+t+", "+h(e)+")]"},dayOfWeekAfter:function(t,e){return"[date.day-of-week-after("+t+", "+h(e)+")]"},dayOfWeekBefore:function(t,e){return"[date.day-of-week-before("+t+", "+h(e)+")]"},month:function(t,e){return"[date.month("+t+", "+h(e)+")]"},monthBefore:function(t,e){return"[date.month-before("+t+", "+h(e)+")]"},monthAfter:function(t,e){return"[date.month-after("+t+", "+h(e)+")]"},year:function(t,e){return"[date.year("+t+", "+e+")]"},hour:function(t,e){return"[date.hour("+t+", "+e+")]"},hourBefore:function(t,e){return"[date.hour-before("+t+", "+e+")]"},hourAfter:function(t,e){return"[date.hour-after("+t+", "+e+")]"}},l={gt:function(t,e){return"[number.gt("+t+", "+e+")]"},lt:function(t,e){return"[number.lt("+t+", "+e+")]"},inRange:function(t,e,r){return"[number.inRange("+t+", "+e+", "+r+")]"}},d={at:function(t,e){return"[at("+t+", "+h(e)+")]"},not:function(t,e){return"[not("+t+", "+h(e)+")]"},missing:function(t){return"[missing("+t+")]"},has:function(t){return"[has("+t+")]"},any:function(t,e){return"[any("+t+", "+h(e)+")]"},in:function(t,e){return"[in("+t+", "+h(e)+")]"},fulltext:function(t,e){return"[fulltext("+t+", "+h(e)+")]"},similar:function(t,e){return'[similar("'+t+'", '+e+")]"},date:p,dateBefore:p.before,dateAfter:p.after,dateBetween:p.between,dayOfMonth:p.dayOfMonth,dayOfMonthAfter:p.dayOfMonthAfter,dayOfMonthBefore:p.dayOfMonthBefore,dayOfWeek:p.dayOfWeek,dayOfWeekAfter:p.dayOfWeekAfter,dayOfWeekBefore:p.dayOfWeekBefore,month:p.month,monthBefore:p.monthBefore,monthAfter:p.monthAfter,year:p.year,hour:p.hour,hourBefore:p.hourBefore,hourAfter:p.hourAfter,number:l,gt:l.gt,lt:l.lt,inRange:l.inRange,near:c.near,geopoint:c},y=decodeURIComponent,g={parse:function(t,e){if("string"!=typeof t)throw TypeError("argument str must be a string");var r={},n=t.split(/; */),o=(e||{}).decode||y;return n.forEach(function(t){var e=t.indexOf("=");if(!(e<0)){var n=t.substr(0,e).trim(),i=t.substr(++e,t.length).trim();'"'==i[0]&&(i=i.slice(1,-1)),void 0==r[n]&&(r[n]=function(t,e){try{return e(t)}catch(e){return t}}(i,o))}}),r}};function m(t,e,r){return{token:t,documentId:e,resolve:function(n,o,i){return e&&r?r(e,{ref:t}).then(function(t){if(!t)return i&&i(null,o),o;var e=n&&n(t)||t.url||o;return i&&i(null,e),e}):Promise.resolve(o)}}}var b="io.prismic.preview",v="io.prismic.experiment",w=function(){function t(t,e,r){this.data=t,this.masterRef=t.refs.filter(function(t){return t.isMasterRef})[0],this.experiments=new a(t.experiments),this.bookmarks=t.bookmarks,this.httpClient=e,this.options=r,this.refs=t.refs,this.tags=t.tags,this.types=t.types,this.languages=t.languages}return t.prototype.form=function(t){var e=this.data.forms[t];return e?new f(e,this.httpClient):null},t.prototype.everything=function(){var t=this.form("everything");if(!t)throw Error("Missing everything form");return t},t.prototype.master=function(){return this.masterRef.ref},t.prototype.ref=function(t){var e=this.data.refs.filter(function(e){return e.label===t})[0];return e?e.ref:null},t.prototype.currentExperiment=function(){return this.experiments.current()},t.prototype.query=function(t,e,r){void 0===r&&(r=function(){});var n="function"==typeof e?{options:{},callback:e}:{options:e||{},callback:r},o=n.options,i=n.callback,s=this.everything();for(var a in o)s=s.set(a,o[a]);if(!o.ref){var u="";this.options.req?u=this.options.req.headers.cookie||"":"undefined"!=typeof window&&window.document&&(u=window.document.cookie||"");var f=g.parse(u),h=f[b],c=this.experiments.refFromCookie(f[v]);s=s.ref(h||c||this.masterRef.ref)}return t&&s.query(t),s.submit(i)},t.prototype.queryFirst=function(t,e,r){var n="function"==typeof e?{options:{},callback:e}:{options:e||{},callback:r||function(){}},o=n.options,i=n.callback;return o.page=1,o.pageSize=1,this.query(t,o).then(function(t){var e=t&&t.results&&t.results[0];return i(null,e),e}).catch(function(t){throw i(t),t})},t.prototype.getByID=function(t,e,r){var n=e?o({},e):{};return n.lang||(n.lang="*"),this.queryFirst(d.at("document.id",t),n,r)},t.prototype.getByIDs=function(t,e,r){var n=e?o({},e):{};return n.lang||(n.lang="*"),this.query(d.in("document.id",t),n,r)},t.prototype.getByUID=function(t,e,r,n){var i=r?o({},r):{};if("*"===i.lang)throw Error("FORBIDDEN. You can't use getByUID with *, use the predicates instead.");return i.page||(i.page=1),this.queryFirst(d.at("my."+t+".uid",e),i,n)},t.prototype.getSingle=function(t,e,r){var n=e?o({},e):{};return this.queryFirst(d.at("document.type",t),n,r)},t.prototype.getBookmark=function(t,e,r){var n=this.data.bookmarks[t];return n?this.getByID(n,e,r):Promise.reject("Error retrieving bookmarked id")},t.prototype.getPreviewResolver=function(t,e){return m(t,e,this.getByID.bind(this))},t.prototype.previewSession=function(t,e,r,n){var o=this;
1return console.warn("previewSession function is deprecated in favor of getPreviewResolver function."),new Promise(function(i,s){o.httpClient.request(t,function(a,u){if(a)n&&n(a),s(a);else if(u){if(u.mainDocument)return o.getByID(u.mainDocument,{ref:t}).then(function(t){if(t){var o=e&&e(t)||t.url||r;n&&n(null,o),i(o)}else n&&n(null,r),i(r)}).catch(s);n&&n(null,r),i(r)}})})},t}();function A(t){this.size=0,this.limit=t,this._keymap={}}A.prototype.put=function(t,e){var r={key:t,value:e};if(this._keymap[t]=r,this.tail?(this.tail.newer=r,r.older=this.tail):this.head=r,this.tail=r,this.size===this.limit)return this.shift();this.size++},A.prototype.shift=function(){var t=this.head;return t&&(this.head.newer?(this.head=this.head.newer,this.head.older=void 0):this.head=void 0,t.newer=t.older=void 0,delete this._keymap[t.key]),console.log("purging ",t.key),t},A.prototype.get=function(t,e){var r=this._keymap[t];if(void 0!==r)return r===this.tail||(r.newer&&(r===this.head&&(this.head=r.newer),r.newer.older=r.older),r.older&&(r.older.newer=r.newer),r.newer=void 0,r.older=this.tail,this.tail&&(this.tail.newer=r),this.tail=r),e?r:r.value},A.prototype.find=function(t){return this._keymap[t]},A.prototype.set=function(t,e){var r,n=this.get(t,!0);return n?(r=n.value,n.value=e):(r=this.put(t,e))&&(r=r.value),r},A.prototype.remove=function(t){var e=this._keymap[t];if(e)return delete this._keymap[e.key],e.newer&&e.older?(e.older.newer=e.newer,e.newer.older=e.older):e.newer?(e.newer.older=void 0,this.head=e.newer):e.older?(e.older.newer=void 0,this.tail=e.older):this.head=this.tail=void 0,this.size--,e.value},A.prototype.removeAll=function(){this.head=this.tail=void 0,this.size=0,this._keymap={}},"function"==typeof Object.keys?A.prototype.keys=function(){return Object.keys(this._keymap)}:A.prototype.keys=function(){var t=[];for(var e in this._keymap)t.push(e);return t},A.prototype.forEach=function(t,e,r){var n;if(!0===e?(r=!0,e=void 0):"object"!=typeof e&&(e=this),r)for(n=this.tail;n;)t.call(e,n.key,n.value,this),n=n.older;else for(n=this.head;n;)t.call(e,n.key,n.value,this),n=n.newer},A.prototype.toString=function(){for(var t="",e=this.head;e;)t+=String(e.key)+":"+e.value,(e=e.newer)&&(t+=" < ");return t};var k=function(){function t(t){void 0===t&&(t=1e3),this.lru=new A(t)}return t.prototype.isExpired=function(t){var e=this.lru.get(t,!1);return!!e&&0!==e.expiredIn&&e.expiredIn<Date.now()},t.prototype.get=function(t,e){var r=this.lru.get(t,!1);r&&!this.isExpired(t)?e(null,r.data):e&&e(null)},t.prototype.set=function(t,e,r,n){this.lru.remove(t),this.lru.put(t,{data:e,expiredIn:r?Date.now()+1e3*r:0}),n&&n(null)},t.prototype.remove=function(t,e){this.lru.remove(t),e&&e(null)},t.prototype.clear=function(t){this.lru.removeAll(),t&&t(null)},t}(),B=function(){function t(t){this.options=t||{}}return t.prototype.request=function(t,e){!function(t,e,r){var o,i={headers:{Accept:"application/json"}};e&&e.proxyAgent&&(i.agent=e.proxyAgent);var s=n(t,i);(e.timeoutInMs?Promise.race([s,new Promise(function(r,n){o=setTimeout(function(){return n(Error(t+" response timeout"))},e.timeoutInMs)})]):s).then(function(e){return(clearTimeout(o),~~(e.status/100!=2))?e.text().then(function(){var r=Error("Unexpected status code ["+e.status+"] on URL "+t);throw r.status=e.status,r}):e.json().then(function(t){var n=e.headers.get("cache-control"),o=n?/max-age=(\d+)/.exec(n):null;r(null,t,e,o?parseInt(o[1],10):void 0)})}).catch(function(t){clearTimeout(o),r(t)})}(t,this.options,e)},t}(),E=function(){function t(t,e,r,n){this.requestHandler=t||new B({proxyAgent:r,timeoutInMs:n}),this.cache=e||new k}return t.prototype.request=function(t,e){this.requestHandler.request(t,function(t,r,n,o){t?e&&e(t,null,n,o):r&&e&&e(null,r,n,o)})},t.prototype.cachedRequest=function(t,e){var r=this,n=e||{},o=function(e){var o=n.cacheKey||t;r.cache.get(o,function(i,s){i||s?e(i,s):r.request(t,function(t,i,s,a){if(t)e(t,null);else{var u=a||n.ttl;u&&r.cache.set(o,i,u,e),e(null,i)}})})};return new Promise(function(t,e){o(function(r,n){r&&e(r),n&&t(n)})})},t}();function O(t){return t.indexOf("?")>-1?"&":"?"}var x=function(){function t(t,e){if(this.options=e||{},this.url=t,this.options.accessToken){var r="access_token="+this.options.accessToken;this.url+=O(t)+r}this.options.routes&&(this.url+=O(t)+"routes="+encodeURIComponent(JSON.stringify(this.options.routes))),this.apiDataTTL=this.options.apiDataTTL||5,this.httpClient=new E(this.options.requestHandler,this.options.apiCache,this.options.proxyAgent,this.options.timeoutInMs)}return t.prototype.get=function(t){var e=this;return this.httpClient.cachedRequest(this.url,{ttl:this.apiDataTTL}).then(function(r){var n=new w(r,e.httpClient,e.options);return t&&t(null,n),n}).catch(function(e){throw t&&t(e),e})},t}(),_=function(){function t(t,e){this.api=new x(t,e)}return t.prototype.getApi=function(){return this.api.get()},t.prototype.everything=function(){return this.form("everything")},t.prototype.form=function(t){return new u(t,this.api)},t.prototype.query=function(t,e,r){return this.getApi().then(function(n){return n.query(t,e,r)})},t.prototype.queryFirst=function(t,e,r){return this.getApi().then(function(n){return n.queryFirst(t,e,r)})},t.prototype.getByID=function(t,e,r){return this.getApi().then(function(n){return n.getByID(t,e,r)})},t.prototype.getByIDs=function(t,e,r){return this.getApi().then(function(n){return n.getByIDs(t,e,r)})},t.prototype.getByUID=function(t,e,r,n){return this.getApi().then(function(o){return o.getByUID(t,e,r,n)})},t.prototype.getSingle=function(t,e,r){return this.getApi().then(function(n){return n.getSingle(t,e,r)})},t.prototype.getBookmark=function(t,e,r){return this.getApi().then(function(n){return n.getBookmark(t,e,r)})},t.prototype.previewSession=function(t,e,r,n){return this.getApi().then(function(o){return o.previewSession(t,e,r,n)})},t.prototype.getPreviewResolver=function(t,e){var r=this;return m(t,e,function(t,e){return r.getApi().then(function(r){return r.getByID(t,e)})})},t.getApi=function(t,e){return new x(t,e).get()},t}();function T(t,e){return _.getApi(t,e)}e.Z={experimentCookie:v,previewCookie:b,Predicates:d,Experiments:a,Api:x,client:function(t,e){return new _(t,e)},getApi:T,api:function(t,e){return T(t,e)}}}}]); 2//# sourceMappingURL=5633-0cef8eea02eae997.js.map
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.