(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1486],{65258:function(a,b,c){"use strict";function d(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}var e=c(96086),f=c(15092),g=f.map,h=f.filter,i=c(93202),j=c(42947);function k(a){this.client=a}e(k.prototype,{upload:function(a,b){var c=arguments.length>2&& void 0!==arguments[2]?arguments[2]:{};j.validateAssetType(a);var d=c.extract||void 0;d&&!d.length&&(d=["none"]);var f,i,k=j.hasDataset(this.client.clientConfig),l=(f=c,i=b,"undefined"!=typeof window&&i instanceof window.File?e({filename:!1===f.preserveFilename?void 0:i.name,contentType:i.type},f):f),m=l.tag,n=l.label,o=l.title,p=l.description,q=l.creditLine,r=l.filename,s=l.source,t={label:n,title:o,description:p,filename:r,meta:d,creditLine:q};s&&(t.sourceId=s.id,t.sourceName=s.name,t.sourceUrl=s.url);var u=this.client._requestObservable({tag:m,method:"POST",timeout:l.timeout||0,uri:"/assets/".concat("image"===a?"images":"files","/").concat(k),headers:l.contentType?{"Content-Type":l.contentType}:{},query:t,body:b});return this.client.isPromiseAPI()?u.pipe(h(function(a){return"response"===a.type}),g(function(a){return a.body.document})).toPromise():u},delete:function(a,b){console.warn("client.assets.delete() is deprecated, please use client.delete(<document-id>)");var c=b||"";return/^(image|file)-/.test(c)?a._id&&(c=a._id):c="".concat(a,"-").concat(c),j.hasDataset(this.client.clientConfig),this.client.delete(c)},getImageUrl:function(a,b){var c=a._ref||a;if("string"!=typeof c)throw Error("getImageUrl() needs either an object with a _ref, or a string with an asset document ID");if(!/^image-[A-Za-z0-9_]+-\d+x\d+-[a-z]{1,5}$/.test(c))throw Error('Unsupported asset ID "'.concat(c,'". URL generation only works for auto-generated IDs.'));var e,f,g=(e=c.split("-"),f=4,function a(b){if(Array.isArray(b))return b}(e)||function a(b,c){var d,e,f=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=f){var g=[],h=!0,i=!1;try{for(f=f.call(b);!(h=(d=f.next()).done)&&(g.push(d.value),!c||g.length!==c);h=!0);}catch(j){i=!0,e=j}finally{try{h||null==f.return||f.return()}finally{if(i)throw e}}return g}}(e,f)||function a(b,c){if(b){if("string"==typeof b)return d(b,c);var e=Object.prototype.toString.call(b).slice(8,-1);if("Object"===e&&b.constructor&&(e=b.constructor.name),"Map"===e||"Set"===e)return Array.from(b);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return d(b,c)}}(e,f)||function a(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=g[1],k=g[2],l=g[3];j.hasDataset(this.client.clientConfig);var m=this.client.clientConfig,n=m.projectId,o=m.dataset,p=b?i(b):"";return"https://cdn.sanity.io/images/".concat(n,"/").concat(o,"/").concat(h,"-").concat(k,".").concat(l).concat(p)}}),a.exports=k},76586:function(a,b,c){"use strict";var d=c(96086);function e(a){this.client=a}d(e.prototype,{getLoginProviders:function(){return this.client.request({uri:"/auth/providers"})},logout:function(){return this.client.request({uri:"/auth/logout",method:"POST"})}}),a.exports=e},79895:function(a,b,c){"use strict";var d=c(16956).generateHelpUrl,e=c(96086),f=c(42947),g=c(1356),h={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,isPromiseAPI:!0},i=["localhost","127.0.0.1","0.0.0.0"];b.defaultConfig=h,b.initConfig=function(a,c){var j=e({},c,a);j.apiVersion||g.printNoApiVersionSpecifiedWarning();var k=e({},h,j),l=k.useProjectHostname;if("undefined"==typeof Promise){var m=d("js-client-promise-polyfill");throw Error("No native Promise-implementation found, polyfill needed - see ".concat(m))}if(l&&!k.projectId)throw Error("Configuration must contain `projectId`");var n,o="undefined"!=typeof window&&window.location&&window.location.hostname,p=o&&(n=window.location.hostname,-1!==i.indexOf(n));o&&p&&k.token&& !0!==k.ignoreBrowserTokenWarning?g.printBrowserTokenWarning():void 0===k.useCdn&&g.printCdnWarning(),l&&f.projectId(k.projectId),k.dataset&&f.dataset(k.dataset),"requestTagPrefix"in k&&(k.requestTagPrefix=k.requestTagPrefix?f.requestTag(k.requestTagPrefix).replace(/\.+$/,""):void 0),k.apiVersion="".concat(k.apiVersion).replace(/^v/,""),k.isDefaultApi=k.apiHost===h.apiHost,k.useCdn=Boolean(k.useCdn)&&!k.withCredentials,b.validateApiVersion(k.apiVersion);var q=k.apiHost.split("://",2),r=q[0],s=q[1],t=k.isDefaultApi?"apicdn.sanity.io":s;return k.useProjectHostname?(k.url="".concat(r,"://").concat(k.projectId,".").concat(s,"/v").concat(k.apiVersion),k.cdnUrl="".concat(r,"://").concat(k.projectId,".").concat(t,"/v").concat(k.apiVersion)):(k.url="".concat(k.apiHost,"/v").concat(k.apiVersion),k.cdnUrl=k.url),k},b.validateApiVersion=function(a){if("1"!==a&&"X"!==a){var b=new Date(a);if(!(/^\d{4}-\d{2}-\d{2}$/.test(a)&&b instanceof Date&&b.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}}},51078:function(a,b,c){"use strict";function d(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function e(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var f=c(96086),g=c(15092),h=g.map,i=g.filter,j=c(42947),k=c(47054),l=c(46102),m=c(70485),n=c(95770),o=c(5420),p=function(){var a,b,c=arguments.length>0&& void 0!==arguments[0]?arguments[0]:{};return function(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?d(Object(c),!0).forEach(function(b){e(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):d(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}({returnIds:!0,returnDocuments:(a=c.returnDocuments,b=!0,!1===a?void 0:void 0===a?b:a),visibility:c.visibility||"sync"},c.skipCrossDatasetReferenceValidation&&{skipCrossDatasetReferenceValidation:c.skipCrossDatasetReferenceValidation})},q=function(a){return"response"===a.type},r=function(a){return a.body},s=function(a){return a.toPromise()};a.exports={listen:o,getDataUrl:function(a,b){var c=this.clientConfig,d=j.hasDataset(c),e="/".concat(a,"/").concat(d),f=b?"".concat(e,"/").concat(b):e;return"/data".concat(f).replace(/\/($|\?)/,"$1")},fetch:function(a,b){var c=arguments.length>2&& void 0!==arguments[2]?arguments[2]:{},d=!1===c.filterResponse?function(a){return a}:function(a){return a.result},e=this._dataRequest("query",{query:a,params:b},c).pipe(h(d));return this.isPromiseAPI()?s(e):e},getDocument:function(a){var b=arguments.length>1&& void 0!==arguments[1]?arguments[1]:{},c={uri:this.getDataUrl("doc",a),json:!0,tag:b.tag},d=this._requestObservable(c).pipe(i(q),h(function(a){return a.body.documents&&a.body.documents[0]}));return this.isPromiseAPI()?s(d):d},getDocuments:function(a){var b=arguments.length>1&& void 0!==arguments[1]?arguments[1]:{},c={uri:this.getDataUrl("doc",a.join(",")),json:!0,tag:b.tag},d=this._requestObservable(c).pipe(i(q),h(function(b){var c=function(a,b){return a.reduce(function(a,c){return a[b(c)]=c,a},Object.create(null))}(b.body.documents||[],function(a){return a._id});return a.map(function(a){return c[a]||null})}));return this.isPromiseAPI()?s(d):d},create:function(a,b){return this._create(a,"create",b)},createIfNotExists:function(a,b){return j.requireDocumentId("createIfNotExists",a),this._create(a,"createIfNotExists",b)},createOrReplace:function(a,b){return j.requireDocumentId("createOrReplace",a),this._create(a,"createOrReplace",b)},patch:function(a,b){return new n(a,b,this)},delete:function(a,b){return this.dataRequest("mutate",{mutations:[{delete:k(a)}]},b)},mutate:function(a,b){var c=a instanceof n||a instanceof m?a.serialize():a,d=Array.isArray(c)?c:[c],e=b&&b.transactionId;return this.dataRequest("mutate",{mutations:d,transactionId:e},b)},transaction:function(a){return new m(a,this)},dataRequest:function(a,b){var c=arguments.length>2&& void 0!==arguments[2]?arguments[2]:{},d=this._dataRequest(a,b,c);return this.isPromiseAPI()?s(d):d},_dataRequest:function(a,b){var c=arguments.length>2&& void 0!==arguments[2]?arguments[2]:{},d="mutate"===a,f=!d&&l(b),g=!d&&f.length<11264,j=c.returnFirst,k=c.timeout,m=c.token,n=c.tag,o=c.headers,s=this.getDataUrl(a,g?f:""),t={method:g?"GET":"POST",uri:s,json:!0,body:g?void 0:b,query:d&&p(c),timeout:k,headers:o,token:m,tag:n,canUseCdn:"query"===a};return this._requestObservable(t).pipe(i(q),h(r),h(function(a){if(!d)return a;var b=a.results||[];if(c.returnDocuments)return j?b[0]&&b[0].document:b.map(function(a){return a.document});var f=j?b[0]&&b[0].id:b.map(function(a){return a.id});return e({transactionId:a.transactionId,results:b},j?"documentId":"documentIds",f)}))},_create:function(a,b){var c=arguments.length>2&& void 0!==arguments[2]?arguments[2]:{},d=e({},b,a),g=f({returnFirst:!0,returnDocuments:!0},c);return this.dataRequest("mutate",{mutations:[d]},g)}}},46102:function(a){"use strict";var b=["tag"],c=encodeURIComponent;a.exports=function(a){var d=a.query,e=a.params,f=void 0===e?{}:e,g=a.options,h=void 0===g?{}:g,i=h.tag,j=function(a,b){if(null==a)return{};var c,d,e=function a(b,c){if(null==b)return{};var d,e,f={},g=Object.keys(b);for(e=0;e<g.length;e++)d=g[e],c.indexOf(d)>=0||(f[d]=b[d]);return f}(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],!(b.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}(h,b),k="query=".concat(c(d)),l=i?"?tag=".concat(c(i),"&").concat(k):"?".concat(k),m=Object.keys(f).reduce(function(a,b){return"".concat(a,"&").concat(c("$".concat(b)),"=").concat(c(JSON.stringify(f[b])))},l);return Object.keys(j).reduce(function(a,b){return h[b]?"".concat(a,"&").concat(c(b),"=").concat(c(h[b])):a},m)}},5420:function(a,b,c){"use strict";function d(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function e(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?d(Object(c),!0).forEach(function(b){f(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):d(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}function f(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var g=c(96086),h=c(15092).Observable,i=c(21982),j=c(88201),k=c(9119),l=c(46102),m=i,n=["includePreviousRevision","includeResult","visibility","effectFormat","tag"],o={includeResult:!0};function p(a){try{var b=a.data&&JSON.parse(a.data)||{};return g({type:a.type},b)}catch(c){return c}}function q(a){return a.error?a.error.description?a.error.description:"string"==typeof a.error?a.error:JSON.stringify(a.error,null,2):a.message||"Unknown listener error"}a.exports=function(a,b){var c=arguments.length>2&& void 0!==arguments[2]?arguments[2]:{},d=this.clientConfig,f=d.url,g=d.token,i=d.withCredentials,r=d.requestTagPrefix,s=c.tag&&r?[r,c.tag].join("."):c.tag,t=e(e({},k(c,o)),{},{tag:s}),u=j(t,n),v=l({query:a,params:b,options:u,tag:s}),w="".concat(f).concat(this.getDataUrl("listen",v));if(w.length>14800)return new h(function(a){return a.error(Error("Query too large for listener"))});var x=t.events?t.events:["mutation"],y=-1!==x.indexOf("reconnect"),z={};return(g||i)&&(z.withCredentials=!0),g&&(z.headers={Authorization:"Bearer ".concat(g)}),new h(function(a){var b,c=k(),d=!1;function e(){if(!d)j(),!d&&c.readyState===m.CLOSED&&(i(),clearTimeout(b),b=setTimeout(l,100))}function f(b){a.error(function a(b){if(b instanceof Error)return b;var c=p(b);return c instanceof Error?c:Error(q(c))}(b))}function g(b){var c=p(b);return c instanceof Error?a.error(c):a.next(c)}function h(b){d=!0,i(),a.complete()}function i(){c.removeEventListener("error",e,!1),c.removeEventListener("channelError",f,!1),c.removeEventListener("disconnect",h,!1),x.forEach(function(a){return c.removeEventListener(a,g,!1)}),c.close()}function j(){y&&a.next({type:"reconnect"})}function k(){var a=new m(w,z);return a.addEventListener("error",e,!1),a.addEventListener("channelError",f,!1),a.addEventListener("disconnect",h,!1),x.forEach(function(b){return a.addEventListener(b,g,!1)}),a}function l(){c=k()}return function(){d=!0,i()}})}},95770:function(a,b,c){"use strict";function d(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var e=c(96086),f=c(47054),g=c(42947),h=g.validateObject,i=g.validateInsert;function j(a){var b=arguments.length>1&& void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&& void 0!==arguments[2]?arguments[2]:null;this.selection=a,this.operations=e({},b),this.client=c}e(j.prototype,{clone:function(){return new j(this.selection,e({},this.operations),this.client)},set:function(a){return this._assign("set",a)},diffMatchPatch:function(a){return h("diffMatchPatch",a),this._assign("diffMatchPatch",a)},unset:function(a){if(!Array.isArray(a))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=e({},this.operations,{unset:a}),this},setIfMissing:function(a){return this._assign("setIfMissing",a)},replace:function(a){return h("replace",a),this._set("set",{$:a})},inc:function(a){return this._assign("inc",a)},dec:function(a){return this._assign("dec",a)},insert:function(a,b,c){var e;return i(a,b,c),this._assign("insert",(d(e={},a,b),d(e,"items",c),e))},append:function(a,b){return this.insert("after","".concat(a,"[-1]"),b)},prepend:function(a,b){return this.insert("before","".concat(a,"[0]"),b)},splice:function(a,b,c,d){var e=b<0?b-1:b,f=void 0===c|| -1===c?-1:Math.max(0,b+c),g="".concat(a,"[").concat(e,":").concat(e<0&&f>=0?"":f,"]");return this.insert("replace",g,d||[])},ifRevisionId:function(a){return this.operations.ifRevisionID=a,this},serialize:function(){return e(f(this.selection),this.operations)},toJSON:function(){return this.serialize()},commit:function(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:{};if(!this.client)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");var b=e({returnFirst:"string"==typeof this.selection,returnDocuments:!0},a);return this.client.mutate({patch:this.serialize()},b)},reset:function(){return this.operations={},this},_set:function(a,b){return this._assign(a,b,!1)},_assign:function(a,b){var c=!(arguments.length>2)|| void 0===arguments[2]||arguments[2];return h(a,b),this.operations=e({},this.operations,d({},a,e({},c&&this.operations[a]||{},b))),this}}),a.exports=j},70485:function(a,b,c){"use strict";function d(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var e=c(96086),f=c(42947),g=c(95770),h={returnDocuments:!1};function i(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:[],b=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0;this.trxId=c,this.operations=a,this.client=b}e(i.prototype,{clone:function(){return new i(this.operations.slice(0),this.client,this.trxId)},create:function(a){return f.validateObject("create",a),this._add({create:a})},createIfNotExists:function(a){var b="createIfNotExists";return f.validateObject(b,a),f.requireDocumentId(b,a),this._add(d({},b,a))},createOrReplace:function(a){var b="createOrReplace";return f.validateObject(b,a),f.requireDocumentId(b,a),this._add(d({},b,a))},delete:function(a){return f.validateDocumentId("delete",a),this._add({delete:{id:a}})},patch:function(a,b){if(a instanceof g)return this._add({patch:a.serialize()});if("function"==typeof b){var c=b(new g(a,{},this.client));if(!(c instanceof g))throw Error("function passed to `patch()` must return the patch");return this._add({patch:c.serialize()})}return this._add({patch:e({id:a},b)})},transactionId:function(a){return a?(this.trxId=a,this):this.trxId},serialize:function(){return this.operations.slice()},toJSON:function(){return this.serialize()},commit:function(a){if(!this.client)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.client.mutate(this.serialize(),e({transactionId:this.trxId},h,a||{}))},reset:function(){return this.operations=[],this},_add:function(a){return this.operations.push(a),this}}),a.exports=i},38288:function(a,b,c){"use strict";var d=c(96086),e=c(42947);function f(a){this.request=a.request.bind(a)}d(f.prototype,{create:function(a,b){return this._modify("PUT",a,b)},edit:function(a,b){return this._modify("PATCH",a,b)},delete:function(a){return this._modify("DELETE",a)},list:function(){return this.request({uri:"/datasets"})},_modify:function(a,b,c){return e.dataset(b),this.request({method:a,uri:"/datasets/".concat(b),body:c})}}),a.exports=f},61708:function(a){"use strict";a.exports=[]},52288:function(a,b,c){"use strict";var d=c(81432),e=c(96086);function f(a){var b=h(a);f.super.call(this,b.message),e(this,b)}function g(a){var b=h(a);g.super.call(this,b.message),e(this,b)}function h(a){var b=a.body,c={response:a,statusCode:a.statusCode,responseBody:j(b,a)};return b.error&&b.message?(c.message="".concat(b.error," - ").concat(b.message),c):b.error&&b.error.description?(c.message=b.error.description,c.details=b.error,c):(c.message=b.error||b.message||i(a),c)}function i(a){var b=a.statusMessage?" ".concat(a.statusMessage):"";return"".concat(a.method,"-request to ").concat(a.url," resulted in HTTP ").concat(a.statusCode).concat(b)}function j(a,b){return -1!==(b.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(a,null,2):a}d(f),d(g),b.ClientError=f,b.ServerError=g},93202:function(a){"use strict";a.exports=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push("".concat(encodeURIComponent(c),"=").concat(encodeURIComponent(a[c])));return b.length>0?"?".concat(b.join("&")):""}},67343:function(a,b,c){"use strict";var d=c(46258),e=c(96086),f=c(6890),g=c(63366),h=c(68362),i=c(95018),j=c(15092),k=j.Observable,l=c(52288),m=l.ClientError,n=l.ServerError,o=c(61708).concat([{onResponse:function(a){var b=a.headers["x-sanity-warning"];return(Array.isArray(b)?b:[b]).filter(Boolean).forEach(function(a){return console.warn(a)}),a}},g(),h(),i(),{onResponse:function(a){if(a.statusCode>=500)throw new n(a);if(a.statusCode>=400)throw new m(a);return a}},f({implementation:k})]),p=d(o);function q(a){var b=arguments.length>1&& void 0!==arguments[1]?arguments[1]:p;return b(e({maxRedirects:0},a))}q.defaultRequester=p,q.ClientError=m,q.ServerError=n,a.exports=q},93914:function(a,b,c){"use strict";var d=c(96086);a.exports=function(a){var b=arguments.length>1&& void 0!==arguments[1]?arguments[1]:{},c={},e=b.token||a.token;e&&(c.Authorization="Bearer ".concat(e)),b.useGlobalApi||a.useProjectHostname||!a.projectId||(c["X-Sanity-Project-ID"]=a.projectId);var f=Boolean(void 0===b.withCredentials?a.token||a.withCredentials:b.withCredentials),g=void 0===b.timeout?a.timeout:b.timeout;return d({},b,{headers:d({},c,b.headers||{}),timeout:void 0===g?3e5:g,proxy:b.proxy||a.proxy,json:!0,withCredentials:f})}},17015:function(a,b,c){"use strict";var d=c(96086);function e(a){this.client=a}d(e.prototype,{list:function(){return this.client.request({uri:"/projects"})},getById:function(a){return this.client.request({uri:"/projects/".concat(a)})}}),a.exports=e},59729:function(a,b,c){"use strict";function d(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function e(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var f=c(96086),g=c(15092),h=g.Observable,i=g.map,j=g.filter,k=c(95770),l=c(70485),m=c(51078),n=c(38288),o=c(17015),p=c(65258),q=c(91102),r=c(76586),s=c(67343),t=c(93914),u=c(79895),v=u.defaultConfig,w=u.initConfig,x=c(42947);function y(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:v;if(!(this instanceof y))return new y(a);if(this.config(a),this.assets=new p(this),this.datasets=new n(this),this.projects=new o(this),this.users=new q(this),this.auth=new r(this),this.clientConfig.isPromiseAPI){var b=f({},this.clientConfig,{isPromiseAPI:!1});this.observable=new y(b)}}f(y.prototype,m),f(y.prototype,{clone:function(){return new y(this.config())},config:function(a){if(void 0===a)return f({},this.clientConfig);if(this.observable){var b=f({},a,{isPromiseAPI:!1});this.observable.config(b)}return this.clientConfig=w(a,this.clientConfig||{}),this},withConfig:function(a){return this.clone().config(a)},getUrl:function(a){var b=arguments.length>1&& void 0!==arguments[1]&&arguments[1],c=b?this.clientConfig.cdnUrl:this.clientConfig.url;return"".concat(c,"/").concat(a.replace(/^\//,""))},isPromiseAPI:function(){return this.clientConfig.isPromiseAPI},_requestObservable:function(a){var b=this,c=a.url||a.uri,g=void 0===a.canUseCdn?["GET","HEAD"].indexOf(a.method||"GET")>=0&&0===c.indexOf("/data/"):a.canUseCdn,i=this.clientConfig.useCdn&&g,j=a.tag&&this.clientConfig.requestTagPrefix?[this.clientConfig.requestTagPrefix,a.tag].join("."):a.tag||this.clientConfig.requestTagPrefix;j&&(a.query=function(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?d(Object(c),!0).forEach(function(b){e(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):d(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}({tag:x.requestTag(j)},a.query));var k=t(this.clientConfig,f({},a,{url:this.getUrl(c,i)}));return new h(function(a){return s(k,b.clientConfig.requester).subscribe(a)})},request:function(a){var b,c=this._requestObservable(a).pipe(j(function(a){return"response"===a.type}),i(function(a){return a.body}));return this.isPromiseAPI()?(b=c).toPromise():c}}),y.Patch=k,y.Transaction=l,y.ClientError=s.ClientError,y.ServerError=s.ServerError,y.requester=s.defaultRequester,a.exports=y},91102:function(a,b,c){"use strict";var d=c(96086);function e(a){this.client=a}d(e.prototype,{getById:function(a){return this.client.request({uri:"/users/".concat(a)})}}),a.exports=e},9119:function(a){"use strict";a.exports=function(a,b){return Object.keys(b).concat(Object.keys(a)).reduce(function(c,d){return c[d]=void 0===a[d]?b[d]:a[d],c},{})}},47054:function(a){"use strict";a.exports=function(a){if("string"==typeof a||Array.isArray(a))return{id:a};if(a&&a.query)return"params"in a?{query:a.query,params:a.params}:{query:a.query};throw Error("Unknown selection - must be one of:\n\n".concat("* Document ID (<docId>)\n* Array of document IDs\n* Object containing `query`"))}},15092:function(a,b,c){"use strict";var d=c(12837).Observable,e=c(57224),f=e.filter,g=c(48359),h=g.map;a.exports={Observable:d,filter:f,map:h}},27826:function(a){"use strict";a.exports=function(a){var b,c=!1;return function(){return c||(b=a.apply(void 0,arguments),c=!0),b}}},88201:function(a){"use strict";a.exports=function(a,b){return b.reduce(function(b,c){return void 0===a[c]||(b[c]=a[c]),b},{})}},42947:function(a,b){"use strict";function c(a){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}var d=["image","file"],e=["before","after","replace"];b.dataset=function(a){if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(a))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},b.projectId=function(a){if(!/^[-a-z0-9]+$/i.test(a))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},b.validateAssetType=function(a){if(-1===d.indexOf(a))throw Error("Invalid asset type: ".concat(a,". Must be one of ").concat(d.join(", ")))},b.validateObject=function(a,b){if(null===b||"object"!==c(b)||Array.isArray(b))throw Error("".concat(a,"() takes an object of properties"))},b.requireDocumentId=function(a,c){if(!c._id)throw Error("".concat(a,'() requires that the document contains an ID ("_id" property)'));b.validateDocumentId(a,c._id)},b.validateDocumentId=function(a,b){if("string"!=typeof b||!/^[a-z0-9_.-]+$/i.test(b))throw Error("".concat(a,'(): "').concat(b,'" is not a valid document ID'))},b.validateInsert=function(a,b,c){var d="insert(at, selector, items)";if(-1===e.indexOf(a)){var f=e.map(function(a){return'"'.concat(a,'"')}).join(", ");throw Error("".concat(d,' takes an "at"-argument which is one of: ').concat(f))}if("string"!=typeof b)throw Error("".concat(d,' takes a "selector"-argument which must be a string'));if(!Array.isArray(c))throw Error("".concat(d,' takes an "items"-argument which must be an array'))},b.hasDataset=function(a){if(!a.dataset)throw Error("`dataset` must be provided to perform queries");return a.dataset||""},b.requestTag=function(a){if("string"!=typeof a||!/^[a-z0-9._-]{1,75}$/i.test(a))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return a}},1356:function(a,b,c){"use strict";var d=c(16956).generateHelpUrl,e=c(27826),f=function(a){return e(function(){for(var b,c=arguments.length,d=Array(c),e=0;e<c;e++)d[e]=arguments[e];return(b=console).warn.apply(b,[a.join(" ")].concat(d))})};b.printCdnWarning=f(["You are not using the Sanity CDN. That means your data is always fresh, but the CDN is faster and","cheaper. Think about it! For more info, see ".concat(d("js-client-cdn-configuration"),"."),"To hide this warning, please set the `useCdn` option to either `true` or `false` when creating","the client."]),b.printBrowserTokenWarning=f(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.","See ".concat(d("js-client-browser-token")," for more information and how to hide this warning.")]),b.printNoApiVersionSpecifiedWarning=f(["Using the Sanity client without specifying an API version is deprecated.","See ".concat(d("js-client-api-version"))])},21982:function(a,b,c){var d=c(88541);a.exports=d.EventSourcePolyfill},16956:function(a,b){"use strict";function c(a){return"https://docs.sanity.io/help/"+a}Object.defineProperty(b,"__esModule",{value:!0}),b[Symbol.toStringTag]="Module",b.generateHelpUrl=c},6803:function(a){!function(b,c){a.exports=c()}(this,function(){var a="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg",b=function(a){var b=a;return!!b&&"string"==typeof b._ref},c=function(a){var b=a;return!!b&&"string"==typeof b._id},d=function(a){var b=a;return!!b&&!!b.asset&&"string"==typeof b.asset.url};function e(a){return("image-"+a.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var f=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"]],g=["clip","crop","fill","fillmax","max","scale","min"],h=["top","bottom","left","right","center","focalpoint","entropy"],i=["format"];function j(a){for(var b=0,c=f;b<c.length;b+=1){var d=c[b],e=d[0],g=d[1];if(a===e||a===g)return e}return a}var k=function(a,b){this.options=a?Object.assign({},a.options||{},b||{}):Object.assign({},b||{})};return k.prototype.withOptions=function(a){var b=a.baseUrl||this.options.baseUrl,c={baseUrl:b};for(var d in a)a.hasOwnProperty(d)&&(c[j(d)]=a[d]);return new k(this,Object.assign({},{baseUrl:b},c))},k.prototype.image=function(a){return this.withOptions({source:a})},k.prototype.dataset=function(a){return this.withOptions({dataset:a})},k.prototype.projectId=function(a){return this.withOptions({projectId:a})},k.prototype.bg=function(a){return this.withOptions({bg:a})},k.prototype.dpr=function(a){return this.withOptions(a&&1!==a?{dpr:a}:{})},k.prototype.width=function(a){return this.withOptions({width:a})},k.prototype.height=function(a){return this.withOptions({height:a})},k.prototype.focalPoint=function(a,b){return this.withOptions({focalPoint:{x:a,y:b}})},k.prototype.maxWidth=function(a){return this.withOptions({maxWidth:a})},k.prototype.minWidth=function(a){return this.withOptions({minWidth:a})},k.prototype.maxHeight=function(a){return this.withOptions({maxHeight:a})},k.prototype.minHeight=function(a){return this.withOptions({minHeight:a})},k.prototype.size=function(a,b){return this.withOptions({width:a,height:b})},k.prototype.blur=function(a){return this.withOptions({blur:a})},k.prototype.sharpen=function(a){return this.withOptions({sharpen:a})},k.prototype.rect=function(a,b,c,d){return this.withOptions({rect:{left:a,top:b,width:c,height:d}})},k.prototype.format=function(a){return this.withOptions({format:a})},k.prototype.invert=function(a){return this.withOptions({invert:a})},k.prototype.orientation=function(a){return this.withOptions({orientation:a})},k.prototype.quality=function(a){return this.withOptions({quality:a})},k.prototype.forceDownload=function(a){return this.withOptions({download:a})},k.prototype.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},k.prototype.flipVertical=function(){return this.withOptions({flipVertical:!0})},k.prototype.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},k.prototype.fit=function(a){if(-1===g.indexOf(a))throw Error('Invalid fit mode "'+a+'"');return this.withOptions({fit:a})},k.prototype.crop=function(a){if(-1===h.indexOf(a))throw Error('Invalid crop mode "'+a+'"');return this.withOptions({crop:a})},k.prototype.saturation=function(a){return this.withOptions({saturation:a})},k.prototype.auto=function(a){if(-1===i.indexOf(a))throw Error('Invalid auto mode "'+a+'"');return this.withOptions({auto:a})},k.prototype.pad=function(a){return this.withOptions({pad:a})},k.prototype.url=function(){return function(g){var h=Object.assign({},g||{}),i=h.source;delete h.source;var j=function(a){if(!a)return null;if("string"==typeof a&&(f=a,/^https?:\/\//.test(""+f)))g={asset:{_ref:e(a)}};else if("string"==typeof a)g={asset:{_ref:a}};else if(b(a))g={asset:a};else if(c(a))g={asset:{_ref:a._id||""}};else if(d(a))g={asset:{_ref:e(a.asset.url)}};else{if("object"!=typeof a.asset)return null;g=a}var f,g,h=a;return h.crop&&(g.crop=h.crop),h.hotspot&&(g.hotspot=h.hotspot),function a(b){if(b.crop&&b.hotspot)return b;var c=Object.assign({},b);return c.crop||(c.crop={left:0,top:0,bottom:0,right:0}),c.hotspot||(c.hotspot={x:.5,y:.5,height:1,width:1}),c}(g)}(i);if(!j)throw Error("Unable to resolve image URL from source ("+JSON.stringify(i)+")");var k=function(b){var c=b.split("-"),d=c[1],e=c[2],f=c[3];if(!d||!e||!f)throw Error("Malformed asset _ref '"+b+"'. Expected an id like \""+a+'".');var g=e.split("x"),h=g[0],i=g[1],j=+h,k=+i,l=isFinite(j)&&isFinite(k);if(!l)throw Error("Malformed asset _ref '"+b+"'. Expected an id like \""+a+'".');return{id:d,width:j,height:k,format:f}}(j.asset._ref||j.asset._id||""),l=Math.round(j.crop.left*k.width),m=Math.round(j.crop.top*k.height),n={left:l,top:m,width:Math.round(k.width-j.crop.right*k.width-l),height:Math.round(k.height-j.crop.bottom*k.height-m)},o=j.hotspot.height*k.height/2,p=j.hotspot.width*k.width/2,q=j.hotspot.x*k.width,r=j.hotspot.y*k.height;return h.rect||h.focalPoint||h.ignoreImageParams||h.crop||(h=Object.assign({},h,function a(b,c){var d,e=c.width,f=c.height;if(!(e&&f))return{width:e,height:f,rect:b.crop};var g=b.crop,h=b.hotspot,i=e/f;if(g.width/g.height>i){var j=Math.round(g.height),k=Math.round(j*i),l=Math.max(0,Math.round(g.top)),m=Math.round((h.right-h.left)/2+h.left),n=Math.max(0,Math.round(m-k/2));n<g.left?n=g.left:n+k>g.left+g.width&&(n=g.left+g.width-k),d={left:n,top:l,width:k,height:j}}else{var o=g.width,p=Math.round(o/i),q=Math.max(0,Math.round(g.left)),r=Math.round((h.bottom-h.top)/2+h.top),s=Math.max(0,Math.round(r-p/2));s<g.top?s=g.top:s+p>g.top+g.height&&(s=g.top+g.height-p),d={left:q,top:s,width:o,height:p}}return{width:e,height:f,rect:d}}({crop:n,hotspot:{left:q-p,top:r-o,right:q+p,bottom:r+o}},h))),function a(b){var c=b.baseUrl||"https://cdn.sanity.io",d=b.asset.id+"-"+b.asset.width+"x"+b.asset.height+"."+b.asset.format,e=c+"/images/"+b.projectId+"/"+b.dataset+"/"+d,g=[];if(b.rect){var h=b.rect,i=h.left,j=h.top,k=h.width,l=h.height;(0!==i||0!==j||l!==b.asset.height||k!==b.asset.width)&&g.push("rect="+i+","+j+","+k+","+l)}b.bg&&g.push("bg="+b.bg),b.focalPoint&&(g.push("fp-x="+b.focalPoint.x),g.push("fp-y="+b.focalPoint.y));var m=[b.flipHorizontal&&"h",b.flipVertical&&"v"].filter(Boolean).join("");return(m&&g.push("flip="+m),f.forEach(function(a){var c=a[0],d=a[1];void 0!==b[c]?g.push(d+"="+encodeURIComponent(b[c])):void 0!==b[d]&&g.push(d+"="+encodeURIComponent(b[d]))}),0===g.length)?e:e+"?"+g.join("&")}(Object.assign({},h,{asset:k}))}(this.options)},k.prototype.toString=function(){return this.url()},function(a){var b,c=a;if((b=c)&&"object"==typeof b.clientConfig){var d=c.clientConfig,e=d.apiHost,f=d.projectId,g=d.dataset,h=e||"https://api.sanity.io";return new k(null,{baseUrl:h.replace(/^https:\/\/api\./,"https://cdn."),projectId:f,dataset:g})}return new k(null,a)}})},88541:function(a,b){var c,d,e; /** @license
 * eventsource.js
 * Available under MIT License (MIT)
 * https://github.com/Yaffle/EventSource/
 */ !function(f){"use strict";var g=f.setTimeout,h=f.clearTimeout,i=f.XMLHttpRequest,j=f.XDomainRequest,k=f.ActiveXObject,l=f.EventSource,m=f.document,n=f.Promise,o=f.fetch,p=f.Response,q=f.TextDecoder,r=f.TextEncoder,s=f.AbortController;if("undefined"==typeof window|| void 0===m||"readyState"in m||null!=m.body||(m.readyState="loading",window.addEventListener("load",function(a){m.readyState="complete"},!1)),null==i&&null!=k&&(i=function(){return new k("Microsoft.XMLHTTP")}),void 0==Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),Date.now||(Date.now=function(){return new Date().getTime()}),void 0==s){var t=o;o=function(a,b){var c=b.signal;return t(a,{headers:b.headers,credentials:b.credentials,cache:b.cache}).then(function(a){var b=a.body.getReader();return c._reader=b,c._aborted&&c._reader.cancel(),{status:a.status,statusText:a.statusText,headers:a.headers,body:{getReader:function(){return b}}}})},s=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function u(){this.bitsNeeded=0,this.codePoint=0}u.prototype.decode=function(a){function b(a,b,c){if(1===c)return a>=128>>b&&a<<b<=2047;if(2===c)return a>=2048>>b&&a<<b<=55295||a>=57344>>b&&a<<b<=65535;if(3===c)return a>=65536>>b&&a<<b<=1114111;throw Error()}function c(a,b){if(6===a)return b>>6>15?3:b>31?2:1;if(12===a)return b>15?3:2;if(18===a)return 3;throw Error()}for(var d="",e=this.bitsNeeded,f=this.codePoint,g=0;g<a.length;g+=1){var h=a[g];0!==e&&(h<128||h>191||!b(f<<6|63&h,e-6,c(e,f)))&&(e=0,d+=String.fromCharCode(f=65533)),0===e?(h>=0&&h<=127?(e=0,f=h):h>=192&&h<=223?(e=6,f=31&h):h>=224&&h<=239?(e=12,f=15&h):h>=240&&h<=247?(e=18,f=7&h):(e=0,f=65533),0===e||b(f,e,c(e,f))||(e=0,f=65533)):(e-=6,f=f<<6|63&h),0===e&&(f<=65535?d+=String.fromCharCode(f):(d+=String.fromCharCode(55296+(f-65535-1>>10)),d+=String.fromCharCode(56320+(f-65535-1&1023))))}return this.bitsNeeded=e,this.codePoint=f,d},(void 0==q|| void 0==r||!function(){try{return"test"===new q().decode(new r().encode("test"),{stream:!0})}catch(a){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+a)}return!1}())&&(q=u);var v=function(){};function w(a){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType="",this._xhr=a,this._sendTimeout=0,this._abort=v}function x(a){return a.replace(/[A-Z]/g,function(a){return String.fromCharCode(a.charCodeAt(0)+32)})}function y(a){for(var b=Object.create(null),c=a.split("\r\n"),d=0;d<c.length;d+=1){var e=c[d].split(": "),f=e.shift(),g=e.join(": ");b[x(f)]=g}this._map=b}function z(){}function A(a){this._headers=a}function B(){}function C(){this._listeners=Object.create(null)}function D(a){g(function(){throw a},0)}function E(a){this.type=a,this.target=void 0}function F(a,b){E.call(this,a),this.data=b.data,this.lastEventId=b.lastEventId}function G(a,b){E.call(this,a),this.status=b.status,this.statusText=b.statusText,this.headers=b.headers}function H(a,b){E.call(this,a),this.error=b.error}w.prototype.open=function(a,b){this._abort(!0);var c=this,d=this._xhr,e=1,f=0;this._abort=function(a){0!==c._sendTimeout&&(h(c._sendTimeout),c._sendTimeout=0),1!==e&&2!==e&&3!==e||(e=4,d.onload=v,d.onerror=v,d.onabort=v,d.onprogress=v,d.onreadystatechange=v,d.abort(),0!==f&&(h(f),f=0),a||(c.readyState=4,c.onabort(null),c.onreadystatechange())),e=0};var j=function(){if(1===e){var a=0,b="",f=void 0;if("contentType"in d)a=200,b="OK",f=d.contentType;else try{a=d.status,b=d.statusText,f=d.getResponseHeader("Content-Type")}catch(g){a=0,b="",f=void 0}0!==a&&(e=2,c.readyState=2,c.status=a,c.statusText=b,c._contentType=f,c.onreadystatechange())}},k=function(){if(j(),2===e||3===e){e=3;var a="";try{a=d.responseText}catch(b){}c.readyState=3,c.responseText=a,c.onprogress()}},l=function(a,b){if((null==b||null==b.preventDefault)&&(b={preventDefault:v}),k(),1===e||2===e||3===e){if(e=4,0!==f&&(h(f),f=0),c.readyState=4,"load"===a)c.onload(b);else if("error"===a)c.onerror(b);else if("abort"===a)c.onabort(b);else throw TypeError();c.onreadystatechange()}},m=function(a){void 0==d||(4===d.readyState?"onload"in d&&"onerror"in d&&"onabort"in d||l(""===d.responseText?"error":"load",a):3===d.readyState?"onprogress"in d||k():2===d.readyState&&j())},n=function(){f=g(function(){n()},500),3===d.readyState&&k()};"onload"in d&&(d.onload=function(a){l("load",a)}),"onerror"in d&&(d.onerror=function(a){l("error",a)}),"onabort"in d&&(d.onabort=function(a){l("abort",a)}),"onprogress"in d&&(d.onprogress=k),"onreadystatechange"in d&&(d.onreadystatechange=function(a){m(a)}),("contentType"in d||!("ontimeout"in i.prototype))&&(b+=(-1===b.indexOf("?")?"?":"&")+"padding=true"),d.open(a,b,!0),"readyState"in d&&(f=g(function(){n()},0))},w.prototype.abort=function(){this._abort(!1)},w.prototype.getResponseHeader=function(a){return this._contentType},w.prototype.setRequestHeader=function(a,b){var c=this._xhr;"setRequestHeader"in c&&c.setRequestHeader(a,b)},w.prototype.getAllResponseHeaders=function(){return void 0!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},w.prototype.send=function(){if((!("ontimeout"in i.prototype)|| !("sendAsBinary"in i.prototype)&&!("mozAnon"in i.prototype))&& void 0!=m&& void 0!=m.readyState&&"complete"!==m.readyState){var a=this;a._sendTimeout=g(function(){a._sendTimeout=0,a.send()},4);return}var b=this._xhr;"withCredentials"in b&&(b.withCredentials=this.withCredentials);try{b.send(void 0)}catch(c){throw c}},y.prototype.get=function(a){return this._map[x(a)]},null!=i&&null==i.HEADERS_RECEIVED&&(i.HEADERS_RECEIVED=2),z.prototype.open=function(a,b,c,d,e,f,g){a.open("GET",e);var h=0;for(var j in a.onprogress=function(){var b=a.responseText.slice(h);h+=b.length,c(b)},a.onerror=function(a){a.preventDefault(),d(Error("NetworkError"))},a.onload=function(){d(null)},a.onabort=function(){d(null)},a.onreadystatechange=function(){if(a.readyState===i.HEADERS_RECEIVED){var c=a.status,d=a.statusText,e=a.getResponseHeader("Content-Type"),f=a.getAllResponseHeaders();b(c,d,e,new y(f))}},a.withCredentials=f,g)Object.prototype.hasOwnProperty.call(g,j)&&a.setRequestHeader(j,g[j]);return a.send(),a},A.prototype.get=function(a){return this._headers.get(a)},B.prototype.open=function(a,b,c,d,e,f,g){var h=null,i=new s,j=i.signal,k=new q;return o(e,{headers:g,credentials:f?"include":"same-origin",signal:j,cache:"no-store"}).then(function(a){return h=a.body.getReader(),b(a.status,a.statusText,a.headers.get("Content-Type"),new A(a.headers)),new n(function(a,b){var d=function(){h.read().then(function(b){b.done?a(void 0):(c(k.decode(b.value,{stream:!0})),d())}).catch(function(a){b(a)})};d()})}).catch(function(a){if("AbortError"!==a.name)return a}).then(function(a){d(a)}),{abort:function(){null!=h&&h.cancel(),i.abort()}}},C.prototype.dispatchEvent=function(a){a.target=this;var b=this._listeners[a.type];if(void 0!=b)for(var c=b.length,d=0;d<c;d+=1){var e=b[d];try{"function"==typeof e.handleEvent?e.handleEvent(a):e.call(this,a)}catch(f){D(f)}}},C.prototype.addEventListener=function(a,b){a=String(a);var c=this._listeners,d=c[a];void 0==d&&(d=[],c[a]=d);for(var e=!1,f=0;f<d.length;f+=1)d[f]===b&&(e=!0);e||d.push(b)},C.prototype.removeEventListener=function(a,b){a=String(a);var c=this._listeners,d=c[a];if(void 0!=d){for(var e=[],f=0;f<d.length;f+=1)d[f]!==b&&e.push(d[f]);0===e.length?delete c[a]:c[a]=e}},F.prototype=Object.create(E.prototype),G.prototype=Object.create(E.prototype),H.prototype=Object.create(E.prototype);var I=/^text\/event\-stream(;.*)?$/i,J=function(a,b){var c=null==a?b:parseInt(a,10);return c!=c&&(c=b),K(c)},K=function(a){return Math.min(Math.max(a,1e3),18e6)},L=function(a,b,c){try{"function"==typeof b&&b.call(a,c)}catch(d){D(d)}};function M(a,b){C.call(this),b=b||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,O(this,a,b)}var N=void 0!=o&& void 0!=p&&"body"in p.prototype;function O(a,b,c){b=String(b);var d=Boolean(c.withCredentials),e=c.lastEventIdQueryParameterName||"lastEventId",f=K(1e3),k=J(c.heartbeatTimeout,45e3),l="",m=f,n=!1,o=0,p=c.headers||{},q=c.Transport,r=N&& void 0==q?void 0:new w(void 0!=q?new q:void 0!=i&&"withCredentials"in i.prototype|| void 0==j?new i:new j),s=null!=q&&"string"!=typeof q?new q:void 0==r?new B:new z,t=void 0,u=0,v=-1,x="",y="",A="",C="",D=0,E=0,M=0,O=function(b,c,d,e){if(0===v){if(200===b&& void 0!=d&&I.test(d)){v=1,n=Date.now(),m=f,a.readyState=1;var g=new G("open",{status:b,statusText:c,headers:e});a.dispatchEvent(g),L(a,a.onopen,g)}else{var h="";200!==b?(c&&(c=c.replace(/\s+/g," ")),h="EventSource's response has a status "+b+" "+c+" that is not 200. Aborting the connection."):h="EventSource's response has a Content-Type specifying an unsupported type: "+(void 0==d?"-":d.replace(/\s+/g," "))+". Aborting the connection.",R();var g=new G("error",{status:b,statusText:c,headers:e});a.dispatchEvent(g),L(a,a.onerror,g),console.error(h)}}},P=function(b){if(1===v){for(var c=-1,d=0;d<b.length;d+=1){var e=b.charCodeAt(d);(10===e||13===e)&&(c=d)}var i=(-1!==c?C:"")+b.slice(0,c+1);C=(-1===c?C:"")+b.slice(c+1),""!==b&&(n=Date.now(),o+=b.length);for(var j=0;j<i.length;j+=1){var e=i.charCodeAt(j);if(-1===D&&10===e)D=0;else if(-1===D&&(D=0),13===e||10===e){if(0!==D){1===D&&(M=j+1);var p=i.slice(E,M-1),q=i.slice(M+(M<j&&32===i.charCodeAt(M)?1:0),j);"data"===p?(x+="\n",x+=q):"id"===p?y=q:"event"===p?A=q:"retry"===p?m=f=J(q,f):"heartbeatTimeout"===p&&(k=J(q,k),0!==u&&(h(u),u=g(function(){S()},k)))}if(0===D){if(""!==x){l=y,""===A&&(A="message");var r=new F(A,{data:x.slice(1),lastEventId:y});if(a.dispatchEvent(r),"open"===A?L(a,a.onopen,r):"message"===A?L(a,a.onmessage,r):"error"===A&&L(a,a.onerror,r),2===v)return}x="",A=""}D=13===e?-1:0}else 0===D&&(E=j,D=1),1===D?58===e&&(M=j+1,D=2):2===D&&(D=3)}}},Q=function(b){if(1===v||0===v){v=-1,0!==u&&(h(u),u=0),u=g(function(){S()},m),m=K(Math.min(16*f,2*m)),a.readyState=0;var c=new H("error",{error:b});a.dispatchEvent(c),L(a,a.onerror,c),void 0!=b&&console.error(b)}},R=function(){v=2,void 0!=t&&(t.abort(),t=void 0),0!==u&&(h(u),u=0),a.readyState=2},S=function(){if(u=0,-1!==v){if(n|| void 0==t){var c=Math.max((n||Date.now())+k-Date.now(),1);n=!1,u=g(function(){S()},c)}else Q(Error("No activity within "+k+" milliseconds. "+(0===v?"No response received.":o+" chars received.")+" Reconnecting.")),void 0!=t&&(t.abort(),t=void 0);return}n=!1,o=0,u=g(function(){S()},k),v=0,x="",A="",y=l,C="",E=0,M=0,D=0;var d=b;if("data:"!==b.slice(0,5)&&"blob:"!==b.slice(0,5)&&""!==l){var f=b.indexOf("?");d=-1===f?b:b.slice(0,f+1)+b.slice(f+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(a,b){return b===e?"":a}),d+=(-1===b.indexOf("?")?"?":"&")+e+"="+encodeURIComponent(l)}var h=a.withCredentials,i={};i.Accept="text/event-stream";var j=a.headers;if(void 0!=j)for(var m in j)Object.prototype.hasOwnProperty.call(j,m)&&(i[m]=j[m]);try{t=s.open(r,O,P,Q,d,h,i)}catch(p){throw R(),p}};a.url=b,a.readyState=0,a.withCredentials=d,a.headers=p,a._close=R,S()}M.prototype=Object.create(C.prototype),M.prototype.CONNECTING=0,M.prototype.OPEN=1,M.prototype.CLOSED=2,M.prototype.close=function(){this._close()},M.CONNECTING=0,M.OPEN=1,M.CLOSED=2,M.prototype.withCredentials=void 0;var P=l;void 0==i|| void 0!=l&&"withCredentials"in l.prototype||(P=M),function(f){if("object"==typeof a.exports){var g=f(b);void 0!==g&&(a.exports=g)}else d=[b],void 0!==(e="function"==typeof(c=f)?c.apply(b,d):c)&&(a.exports=e)}(function(a){a.EventSourcePolyfill=M,a.NativeEventSource=l,a.EventSource=P})}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:this:globalThis)},46258:function(a,b,c){a.exports=c(28763)},28763:function(a,b,c){"use strict";var d=c(71979),e=c(46604),f=c(65734),g=c(15139),h=c(39825),i=["request","response","progress","error","abort"],j=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];a.exports=function a(){var b=arguments.length>0&& void 0!==arguments[0]?arguments[0]:[],c=arguments.length>1&& void 0!==arguments[1]?arguments[1]:h,k=[],l=j.reduce(function(a,b){return a[b]=a[b]||[],a},{processOptions:[f],validateOptions:[g]});function m(a){var b=i.reduce(function(a,b){return a[b]=d(),a},{}),f=e(l),g=f("processOptions",a);f("validateOptions",g);var h={options:g,channels:b,applyMiddleware:f},j=null,k=b.request.subscribe(function(a){j=c(a,function(b,c){return n(b,c,a)})});b.abort.subscribe(function(){k(),j&&j.abort()});var m=f("onReturn",b,h);return m===b&&b.request.publish(h),m;function n(a,c,d){var e=a,g=c;if(!e)try{g=f("onResponse",c,d)}catch(h){g=null,e=h}(e=e&&f("onError",e,d))?b.error.publish(e):g&&b.response.publish(g)}}return m.use=function(a){if(!a)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof a)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(a.onReturn&&l.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return j.forEach(function(b){a[b]&&l[b].push(a[b])}),k.push(a),m},m.clone=function(){return a(k)},b.forEach(m.use),m}},65734:function(a,b,c){"use strict";var d=c(96086),e=c(84564),f="undefined"!=typeof navigator&&"ReactNative"===navigator.product,g=Object.prototype.hasOwnProperty,h={timeout:f?6e4:12e4};function i(a){var b=[];for(var c in a)g.call(a,c)&&d(c,a[c]);return b.length?b.join("&"):"";function d(a,c){Array.isArray(c)?c.forEach(function(b){return d(a,b)}):b.push([a,c].map(encodeURIComponent).join("="))}}function j(a){if(!1===a||0===a)return!1;if(a.connect||a.socket)return a;var b=Number(a);return isNaN(b)?j(h.timeout):{connect:b,socket:b}}a.exports=function(a){var b="string"==typeof a?d({url:a},h):d({},h,a),c=e(b.url,{},!0);return b.timeout=j(b.timeout),b.query&&(c.query=d({},c.query,function a(b){var c={};for(var d in b)void 0!==b[d]&&(c[d]=b[d]);return c}(b.query))),b.method=b.body&&!b.method?"POST":(b.method||"GET").toUpperCase(),b.url=c.toString(i),b}},15139:function(a){"use strict";var b=/^https?:\/\//i;a.exports=function(a){if(!b.test(a.url))throw Error('"'.concat(a.url,'" is not a valid URL'))}},63366:function(a,b,c){"use strict";function d(a){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}var e=c(96086),f=c(55299),g=["boolean","string","number"];a.exports=function(){return{processOptions:function(a){var b,c=a.body;return c?"function"!=typeof c.pipe&&!((b=c).constructor&&"function"==typeof b.constructor.isBuffer&&b.constructor.isBuffer(b))&&(-1!==g.indexOf(d(c))||Array.isArray(c)||f(c))?e({},a,{body:JSON.stringify(a.body),headers:e({},a.headers,{"Content-Type":"application/json"})}):a:a}}}},68362:function(a,b,c){"use strict";var d=c(96086);a.exports=function(a){return{onResponse:function(b){var c=b.headers["content-type"]||"",e=a&&a.force|| -1!==c.indexOf("application/json");return b.body&&c&&e?d({},b,{body:function a(b){try{return JSON.parse(b)}catch(c){throw c.message="Failed to parsed response body as JSON: ".concat(c.message),c}}(b.body)}):b},processOptions:function(a){return d({},a,{headers:d({Accept:"application/json"},a.headers)})}}}},6890:function(a,b,c){"use strict";var d=c(53366),e=c(96086);a.exports=function(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:{},b=a.implementation||d.Observable;if(!b)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(a,c){return new b(function(b){return a.error.subscribe(function(a){return b.error(a)}),a.progress.subscribe(function(a){return b.next(e({type:"progress"},a))}),a.response.subscribe(function(a){b.next(e({type:"response"},a)),b.complete()}),a.request.publish(c),function(){return a.abort.publish()}})}}}},54393:function(a){"use strict";a.exports=function(){return{onRequest:function(a){if("xhr"===a.adapter){var b=a.request,c=a.context;"upload"in b&&"onprogress"in b.upload&&(b.upload.onprogress=d("upload")),"onprogress"in b&&(b.onprogress=d("download"))}function d(a){return function(b){var d=b.lengthComputable?b.loaded/b.total*100:-1;c.channels.progress.publish({stage:a,percent:d,total:b.total,loaded:b.loaded,lengthComputable:b.lengthComputable})}}}}}},95018:function(a,b,c){"use strict";a.exports=c(54393)},47288:function(a,b,c){"use strict";var d=c(47215),e=c(4947),f=c(56377),g=function(){},h="undefined"==typeof window?void 0:window,i=h?"xhr":"fetch",j="function"==typeof XMLHttpRequest?XMLHttpRequest:g,k="withCredentials"in new j,l="undefined"==typeof XDomainRequest?void 0:XDomainRequest,m=k?j:l;h||(j=f,m=f),a.exports=function(a,b){var c=a.options,f=a.applyMiddleware("finalizeOptions",c),g={},k=h&&h.location&&!d(h.location.href,f.url),l=a.applyMiddleware("interceptRequest",void 0,{adapter:i,context:a});if(l){var n=setTimeout(b,0,null,l);return{abort:function(){return clearTimeout(n)}}}var o=k?new m:new j,p=h&&h.XDomainRequest&&o instanceof h.XDomainRequest,q=f.headers,r=f.timeout,s=!1,t=!1,u=!1;if(o.onerror=z,o.ontimeout=z,o.onabort=function(){y(!0),s=!0},o.onprogress=function(){},o[p?"onload":"onreadystatechange"]=function(){x(),!s&&(4===o.readyState||p)&&0!==o.status&&A()},o.open(f.method,f.url,!0),o.withCredentials=!!f.withCredentials,q&&o.setRequestHeader)for(var v in q)q.hasOwnProperty(v)&&o.setRequestHeader(v,q[v]);else if(q&&p)throw Error("Headers cannot be set on an XDomainRequest object");return f.rawBody&&(o.responseType="arraybuffer"),a.applyMiddleware("onRequest",{options:f,adapter:i,request:o,context:a}),o.send(f.body||null),r&&(g.connect=setTimeout(function(){return w("ETIMEDOUT")},r.connect)),{abort:function(){s=!0,o&&o.abort()}};function w(b){u=!0,o.abort();var c=Error("ESOCKETTIMEDOUT"===b?"Socket timed out on request to ".concat(f.url):"Connection timed out on request to ".concat(f.url));c.code=b,a.channels.error.publish(c)}function x(){r&&(y(),g.socket=setTimeout(function(){return w("ESOCKETTIMEDOUT")},r.socket))}function y(a){(a||s||o.readyState>=2&&g.connect)&&clearTimeout(g.connect),g.socket&&clearTimeout(g.socket)}function z(a){if(!t){y(!0),t=!0,o=null;var c=a||Error("Network error while attempting to reach ".concat(f.url));c.isNetworkError=!0,c.request=f,b(c)}}function A(){if(!s&&!t&&!u){if(0===o.status){z(Error("Unknown XHR error"));return}y(),t=!0,b(null,function(){var a=o.status,b=o.statusText;if(p&& void 0===a)a=200;else{if(a>12e3&&a<12156)return z();a=1223===o.status?204:o.status,b=1223===o.status?"No Content":b}return{body:o.response||o.responseText,url:f.url,method:f.method,headers:p?{}:e(o.getAllResponseHeaders()),statusCode:a,statusMessage:b}}())}}}},56377:function(a){"use strict";function b(){this.readyState=0}b.prototype.open=function(a,b){this._method=a,this._url=b,this._resHeaders="",this.readyState=1,this.onreadystatechange()},b.prototype.abort=function(){this._controller&&this._controller.abort()},b.prototype.getAllResponseHeaders=function(){return this._resHeaders},b.prototype.setRequestHeader=function(a,b){this._headers=this._headers||{},this._headers[a]=b},b.prototype.send=function(a){var b=this,c=this._controller="function"==typeof AbortController&&new AbortController,d="arraybuffer"!==this.responseType,e={method:this._method,headers:this._headers,signal:c&&c.signal,body:a};"undefined"!=typeof window&&(e.credentials=this.withCredentials?"include":"omit"),fetch(this._url,e).then(function(a){return a.headers.forEach(function(a,c){b._resHeaders+="".concat(c,": ").concat(a,"\r\n")}),b.status=a.status,b.statusText=a.statusText,b.readyState=3,d?a.text():a.arrayBuffer()}).then(function(a){d?b.responseText=a:b.response=a,b.readyState=4,b.onreadystatechange()}).catch(function(a){if("AbortError"===a.name){b.onabort();return}b.onerror(a)})},a.exports=b},39825:function(a,b,c){"use strict";a.exports=c(47288)},53366:function(a,b,c){"use strict";"undefined"!=typeof globalThis?a.exports=globalThis:"undefined"!=typeof window?a.exports=window:void 0!==c.g?a.exports=c.g:"undefined"!=typeof self?a.exports=self:a.exports={}},46604:function(a){"use strict";a.exports=function(a){return function(b,c){for(var d="onError"===b,e=c,f=arguments.length,g=Array(f>2?f-2:0),h=2;h<f;h++)g[h-2]=arguments[h];for(var i=0;i<a[b].length&&(e=a[b][i].apply(void 0,[e].concat(g)),!d||e);i++);return e}}},55299:function(a,b,c){"use strict";/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */ var d=c(47798);function e(a){return!0===d(a)&&"[object Object]"===Object.prototype.toString.call(a)}a.exports=function(a){var b,c;return!1!==e(a)&&"function"==typeof(b=a.constructor)&& !1!==e(c=b.prototype)&& !1!==c.hasOwnProperty("isPrototypeOf")}},47798:function(a){"use strict";/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */ a.exports=function(a){return null!=a&&"object"==typeof a&& !1===Array.isArray(a)}},96874:function(a){a.exports=function(a,b,c){switch(c.length){case 0:return a.call(b);case 1:return a.call(b,c[0]);case 2:return a.call(b,c[0],c[1]);case 3:return a.call(b,c[0],c[1],c[2])}return a.apply(b,c)}},34865:function(a,b,c){var d=c(89465),e=c(77813),f=Object.prototype.hasOwnProperty;a.exports=function(a,b,c){var g=a[b];f.call(a,b)&&e(g,c)&&(void 0!==c||b in a)||d(a,b,c)}},89465:function(a,b,c){var d=c(38777);a.exports=function(a,b,c){"__proto__"==b&&d?d(a,b,{configurable:!0,enumerable:!0,value:c,writable:!0}):a[b]=c}},5976:function(a,b,c){var d=c(6557),e=c(45357),f=c(30061);a.exports=function(a,b){return f(e(a,b,d),a+"")}},56560:function(a,b,c){var d=c(75703),e=c(38777),f=c(6557);a.exports=e?function(a,b){return e(a,"toString",{configurable:!0,enumerable:!1,value:d(b),writable:!0})}:f},98363:function(a,b,c){var d=c(34865),e=c(89465);a.exports=function(a,b,c,f){var g=!c;c||(c={});for(var h=-1,i=b.length;++h<i;){var j=b[h],k=f?f(c[j],a[j],j,c,a):void 0;void 0===k&&(k=a[j]),g?e(c,j,k):d(c,j,k)}return c}},21463:function(a,b,c){var d=c(5976),e=c(16612);a.exports=function(a){return d(function(b,c){var d=-1,f=c.length,g=f>1?c[f-1]:void 0,h=f>2?c[2]:void 0;for(g=a.length>3&&"function"==typeof g?(f--,g):void 0,h&&e(c[0],c[1],h)&&(g=f<3?void 0:g,f=1),b=Object(b);++d<f;){var i=c[d];i&&a(b,i,d,g)}return b})}},38777:function(a,b,c){var d=c(10852),e=function(){try{var a=d(Object,"defineProperty");return a({},"",{}),a}catch(b){}}();a.exports=e},16612:function(a,b,c){var d=c(77813),e=c(98612),f=c(65776),g=c(13218);a.exports=function(a,b,c){if(!g(c))return!1;var h=typeof b;return("number"==h?!!(e(c)&&f(b,c.length)):"string"==h&&b in c)&&d(c[b],a)}},45357:function(a,b,c){var d=c(96874),e=Math.max;a.exports=function(a,b,c){return b=e(void 0===b?a.length-1:b,0),function(){for(var f=arguments,g=-1,h=e(f.length-b,0),i=Array(h);++g<h;)i[g]=f[b+g];g=-1;for(var j=Array(b+1);++g<b;)j[g]=f[g];return j[b]=c(i),d(a,this,j)}}},30061:function(a,b,c){var d=c(56560),e=c(21275),f=e(d);a.exports=f},21275:function(a){var b=16,c=Date.now;a.exports=function(a){var d=0,e=0;return function(){var f=c(),g=b-(f-e);if(e=f,g>0){if(++d>=800)return arguments[0]}else d=0;return a.apply(void 0,arguments)}}},28583:function(a,b,c){var d=c(34865),e=c(98363),f=c(21463),g=c(98612),h=c(25726),i=c(3674),j=Object.prototype,k=j.hasOwnProperty,l=f(function(a,b){if(h(b)||g(b)){e(b,i(b),a);return}for(var c in b)k.call(b,c)&&d(a,c,b[c])});a.exports=l},75703:function(a){a.exports=function(a){return function(){return a}}},81432:function(a,b){"use strict";var c="undefined"!=typeof Reflect?Reflect.construct:void 0,d=Object.defineProperty,e=Error.captureStackTrace;function f(a){void 0!==a&&d(this,"message",{configurable:!0,value:a,writable:!0});var b=this.constructor.name;void 0!==b&&b!==this.name&&d(this,"name",{configurable:!0,value:b,writable:!0}),e(this,this.constructor)}void 0===e&&(e=function(a){var b=Error();d(a,"stack",{configurable:!0,get:function(){var a=b.stack;return d(this,"stack",{configurable:!0,value:a,writable:!0}),a},set:function(b){d(a,"stack",{configurable:!0,value:b,writable:!0})}})}),f.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:f,writable:!0}});var g=function(){function a(a,b){return d(a,"name",{configurable:!0,value:b})}try{var b=function(){};if(a(b,"foo"),"foo"===b.name)return a}catch(c){}}();(a.exports=function(a,b){if(null==b||b===Error)b=f;else if("function"!=typeof b)throw TypeError("super_ should be a function");if("string"==typeof a)d=a,a=void 0!==c?function(){return c(b,arguments,this.constructor)}:function(){b.apply(this,arguments)},void 0!==g&&(g(a,d),d=void 0);else if("function"!=typeof a)throw TypeError("constructor should be either a string or a function");a.super_=a.super=b;var d,e={constructor:{configurable:!0,value:a,writable:!0}};return void 0!==d&&(e.name={configurable:!0,value:d,writable:!0}),a.prototype=Object.create(b.prototype,e),a}).BaseError=f},71979:function(a){a.exports=function(){var a=[];return{subscribe:function(b){return a.push(b),function(){var c=a.indexOf(b);c> -1&&a.splice(c,1)}},publish:function(){for(var b=0;b<a.length;b++)a[b].apply(null,arguments)}}}},41561:function(a,b,c){"use strict";c.d(b,{KF:function(){return m},eI:function(){return g}});var d=c(59729),e=c.n(d),f=c(67294);function g(a){return e()(a)}function h(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}c(12870);var i=function(){var a,b,c;function d(){this._signal={aborted:!1}}return d.prototype.abort=function(){this._signal.aborted=!0},a=d,b=[{key:"signal",get:function(){return this._signal}}],h(a.prototype,b),c&&h(a,c),Object.defineProperty(a,"prototype",{writable:!1}),d}();function j(){return"undefined"==typeof AbortController?new i:new AbortController}function k(a,b){return fetch("https://"+a+".api.sanity.io/v1/users/me",{credentials:"include",signal:b.signal}).then(function(a){return a.json()}).then(function(a){return null!=a&&a.id?a:null})}var l={};function m(a){var b,d=a.projectId,e=a.dataset,f=a.documentLimit,g=void 0===f?3e3:f;return function(a,b){void 0===b&&(b={});var c=b,e=c.params,f=c.initialData,g=c.enabled;return n({getStore:h,projectId:d,query:a,params:void 0===e?l:e,initialData:f,enabled:!!g&&"undefined"!=typeof window})};function h(a){return b||(b=c.e(6743).then(c.t.bind(c,54820,19)).then(function(b){var c=b.groqStore;if(a.signal.aborted){var f=Error("Cancelling groq store creation");return f.name="AbortError",Promise.reject(f)}return c({projectId:d,dataset:e,documentLimit:g,listen:!0,overlayDrafts:!0,subscriptionThrottleMs:10})})),b}}function n(a){var b=a.getStore,c=a.projectId,d=a.query,e=a.initialData,g=a.enabled,h=void 0!==g&&g,i=(0,f.useState)(),l=i[0],m=i[1],n=(0,f.useState)(!1),p=n[0],q=n[1],r=(0,f.useState)(),s=r[0],t=r[1],u=o(a.params);return(0,f.useEffect)(function(){if(h){q(!0);var a,e=j();return k(c,e).then(function(a){if(!a)throw console.warn("Not authenticated - preview not available"),Error("Not authenticated - preview not available")}).then(function(){return b(e)}).then(function(b){a=b.subscribe(d,u,function(a,b){a?m(a):t(b)})}).catch(function(a){return"AbortError"===a.name?null:m(a)}).finally(function(){return q(!1)}),function(){a&&a.unsubscribe(),e.abort()}}},[b,d,u,h]),{data:void 0===s?e:s,loading:p,error:l}}function o(a){var b=(0,f.useMemo)(function(){return JSON.stringify(a)},[a]);return(0,f.useMemo)(function(){return JSON.parse(b)},[b])}},96086:function(a){"use strict";var b=Object.assign.bind(Object);a.exports=b,a.exports.default=a.exports},11987:function(a,b,c){!function(){var b={477:function(a){"use strict";a.exports=c(17673)}},d={};function e(a){var c=d[a];if(void 0!==c)return c.exports;var f=d[a]={exports:{}},g=!0;try{b[a](f,f.exports,e),g=!1}finally{g&&delete d[a]}return f.exports}e.ab="//";var f={};!function(){var a,b=f,c=(a=e(477))&&"object"==typeof a&&"default"in a?a.default:a,d=/https?|ftp|gopher|file/;function g(a){"string"==typeof a&&(a=s(a));var b,e,f,g,h,i,j,k,l,m,n,o=(b=a,e=c,f=d,g=b.auth,h=b.hostname,i=b.protocol||"",j=b.pathname||"",k=b.hash||"",l=b.query||"",m=!1,g=g?encodeURIComponent(g).replace(/%3A/i,":")+"@":"",b.host?m=g+b.host:h&&(m=g+(~h.indexOf(":")?"["+h+"]":h),b.port&&(m+=":"+b.port)),l&&"object"==typeof l&&(l=e.encode(l)),n=b.search||l&&"?"+l||"",i&&":"!==i.substr(-1)&&(i+=":"),b.slashes||(!i||f.test(i))&& !1!==m?(m="//"+(m||""),j&&"/"!==j[0]&&(j="/"+j)):m||(m=""),k&&"#"!==k[0]&&(k="#"+k),n&&"?"!==n[0]&&(n="?"+n),{protocol:i,host:m,pathname:j=j.replace(/[?#]/g,encodeURIComponent),search:n=n.replace("#","%23"),hash:k});return""+o.protocol+o.host+o.pathname+o.search+o.hash}var h="http://",i=h+"w.w",j=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,k=/https?|ftp|gopher|file/;function l(a,b){var c="string"==typeof a?s(a):a;a="object"==typeof a?g(a):a;var d=s(b),e="";c.protocol&&!c.slashes&&(e=c.protocol,a=a.replace(c.protocol,""),e+="/"===b[0]||"/"===a[0]?"/":""),e&&d.protocol&&(e="",d.slashes||(e=d.protocol,b=b.replace(d.protocol,"")));var f=a.match(j);f&&!d.protocol&&(a=a.substr((e=f[1]+(f[2]||"")).length),/^\/\/[^/]/.test(b)&&(e=e.slice(0,-1)));var l=new URL(a,i+"/"),m=new URL(b,l).toString().replace(i,""),n=d.protocol||c.protocol;return n+=c.slashes||d.slashes?"//":"",!e&&n?m=m.replace(h,n):e&&(m=m.replace(h,"")),k.test(m)|| ~b.indexOf(".")||"/"===a.slice(-1)||"/"===b.slice(-1)||"/"!==m.slice(-1)||(m=m.slice(0,-1)),e&&(m=e+("/"===m[0]?m.substr(1):m)),m}function m(){}m.prototype.parse=s,m.prototype.format=g,m.prototype.resolve=l,m.prototype.resolveObject=l;var n=/^https?|ftp|gopher|file/,o=/^(.*?)([#?].*)/,p=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,q=/^([a-z0-9.+-]*:)?\/\/\/*/i,r=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function s(a,b,d){if(void 0===b&&(b=!1),void 0===d&&(d=!1),a&&"object"==typeof a&&a instanceof m)return a;var e=(a=a.trim()).match(o);a=e?e[1].replace(/\\/g,"/")+e[2]:a.replace(/\\/g,"/"),r.test(a)&&"/"!==a.slice(-1)&&(a+="/");var f=!/(^javascript)/.test(a)&&a.match(p),h=q.test(a),j="";f&&(n.test(f[1])||(j=f[1].toLowerCase(),a=""+f[2]+f[3]),f[2]||(h=!1,n.test(f[1])?(j=f[1],a=""+f[3]):a="//"+f[3]),3!==f[2].length&&1!==f[2].length||(j=f[1],a="/"+f[3]));var k,l=(e?e[1]:a).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),s=l&&l[1],t=new m,u="",v="";try{k=new URL(a)}catch(w){u=w,j||d||!/^\/\//.test(a)||/^\/\/.+[@.]/.test(a)||(v="/",a=a.substr(1));try{k=new URL(a,i)}catch(x){return t.protocol=j,t.href=j,t}}t.slashes=h&&!v,t.host="w.w"===k.host?"":k.host,t.hostname="w.w"===k.hostname?"":k.hostname.replace(/(\[|\])/g,""),t.protocol=u?j||null:k.protocol,t.search=k.search.replace(/\\/g,"%5C"),t.hash=k.hash.replace(/\\/g,"%5C");var y,z=a.split("#");!t.search&& ~z[0].indexOf("?")&&(t.search="?"),t.hash||""!==z[1]||(t.hash="#"),t.query=b?c.decode(k.search.substr(1)):t.search.substr(1),t.pathname=v+(f?(y=k.pathname).replace(/['^|`]/g,function(a){return"%"+a.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(a,b){try{return decodeURIComponent(b).split("").map(function(a){var b=a.charCodeAt();return b>256||/^[a-z0-9]$/i.test(a)?a:"%"+b.toString(16).toUpperCase()}).join("")}catch(c){return b}}):k.pathname),"about:"===t.protocol&&"blank"===t.pathname&&(t.protocol="",t.pathname=""),u&&"/"!==a[0]&&(t.pathname=t.pathname.substr(1)),j&&!n.test(j)&&"/"!==a.slice(-1)&&"/"===t.pathname&&(t.pathname=""),t.path=t.pathname+t.search,t.auth=[k.username,k.password].map(decodeURIComponent).filter(Boolean).join(":"),t.port=k.port,s&&!t.host.endsWith(s)&&(t.host+=s,t.port=s.slice(1)),t.href=v?""+t.pathname+t.search+t.hash:g(t);var A=/^(file)/.test(t.href)?["host","hostname"]:[];return Object.keys(t).forEach(function(a){~A.indexOf(a)||(t[a]=t[a]||null)}),t}b.parse=s,b.format=g,b.resolve=l,b.resolveObject=function(a,b){return s(l(a,b))},b.Url=m}(),a.exports=f}()},9008:function(a,b,c){a.exports=c(5443)},4947:function(a){var b=function(a){return a.replace(/^\s+|\s+$/g,"")};a.exports=function(a){if(!a)return{};for(var c={},d=b(a).split("\n"),e=0;e<d.length;e++){var f,g=d[e],h=g.indexOf(":"),i=b(g.slice(0,h)).toLowerCase(),j=b(g.slice(h+1));void 0===c[i]?c[i]=j:(f=c[i],"[object Array]"===Object.prototype.toString.call(f))?c[i].push(j):c[i]=[c[i],j]}return c}},221:function(a,b,c){"use strict";var d=c(35030);a.exports=function(a){var b=function(a,b){return fetch(a,b)};return new d(a,{fetch:b})}},35030:function(a){"use strict";var b=encodeURIComponent,c={}.hasOwnProperty;function d(a,b){if(!(this instanceof d))return new d(a);this.clientConfig=a,this.fetcher=b.fetch,this.headers=b.headers||{}}function e(a){if(!(a.headers.get("content-type")||"").includes("json"))throw f(a);return a.json().then(function(b){if(a.status<400)return b.result;throw f(a,b)})}function f(a,b){var c=a.url,d=a.statusText;return b&&b.error&&b.error.description&&(c=b.error.description,d=b.error.type||d),Error("HTTP ".concat(a.status," ").concat(d,": ").concat(c))}["clone","create","createIfNotExists","createOrReplace","delete","listen","mutate","patch","transaction"].forEach(function(a){var b;d.prototype[a]=(b=a,function(){throw Error('Method "'.concat(b,'" not implemented, use @sanity/client'))})}),d.prototype.config=function(a){return a?(this.clientConfig=Object.assign({},this.clientConfig,a),this):this.clientConfig},d.prototype.fetch=function(a,d){var f=this.clientConfig,g=f.apiVersion?"v".concat(f.apiVersion.replace(/^v/,"")):"v1",h=function a(d,e){var f="?query=".concat(b(d));if(!e)return f;for(var g in e)c.call(e,g)&&(f+="&".concat(b("$".concat(g)),"=").concat(b(JSON.stringify(e[g]))));return f}(a,d),i=h.length>11264,j=f.token?{Authorization:"Bearer ".concat(f.token)}:void 0,k=Object.assign({},this.headers,j,i?{"content-type":"application/json"}:void 0),l=f.useCdn?"apicdn.sanity.io":"api.sanity.io",m={headers:k,method:i?"POST":"GET"};i&&(m.body=JSON.stringify({query:a,params:d})),"undefined"!=typeof window&&(m.credentials=f.withCredentials?"include":"omit");var n="https://".concat(f.projectId,".").concat(l,"/").concat(g,"/data/query/").concat(f.dataset);return this.fetcher("".concat(n).concat(i?"":h),m).then(e)},a.exports=d},62587:function(a){"use strict";function b(a,b){return Object.prototype.hasOwnProperty.call(a,b)}a.exports=function(a,c,d,e){c=c||"&",d=d||"=";var f={};if("string"!=typeof a||0===a.length)return f;var g=/\+/g;a=a.split(c);var h=1e3;e&&"number"==typeof e.maxKeys&&(h=e.maxKeys);var i=a.length;h>0&&i>h&&(i=h);for(var j=0;j<i;++j){var k,l,m,n,o=a[j].replace(g,"%20"),p=o.indexOf(d);p>=0?(k=o.substr(0,p),l=o.substr(p+1)):(k=o,l=""),m=decodeURIComponent(k),n=decodeURIComponent(l),b(f,m)?Array.isArray(f[m])?f[m].push(n):f[m]=[f[m],n]:f[m]=n}return f}},12361:function(a){"use strict";var b=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};a.exports=function(a,c,d,e){return(c=c||"&",d=d||"=",null===a&&(a=void 0),"object"==typeof a)?Object.keys(a).map(function(e){var f=encodeURIComponent(b(e))+d;return Array.isArray(a[e])?a[e].map(function(a){return f+encodeURIComponent(b(a))}).join(c):f+encodeURIComponent(b(a[e]))}).filter(Boolean).join(c):e?encodeURIComponent(b(e))+d+encodeURIComponent(b(a)):""}},17673:function(a,b,c){"use strict";b.decode=b.parse=c(62587),b.encode=b.stringify=c(12361)},12837:function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d=c(87481),e=c(73123),f=c(36079),g=c(28105),h=c(49079),i=function(){function a(a){this._isScalar=!1,a&&(this._subscribe=a)}return a.prototype.lift=function(b){var c=new a;return c.source=this,c.operator=b,c},a.prototype.subscribe=function(a,b,c){var d=this.operator,f=e.toSubscriber(a,b,c);if(d?f.add(d.call(f,this.source)):f.add(this.source||h.config.useDeprecatedSynchronousErrorHandling&&!f.syncErrorThrowable?this._subscribe(f):this._trySubscribe(f)),h.config.useDeprecatedSynchronousErrorHandling&&f.syncErrorThrowable&&(f.syncErrorThrowable=!1,f.syncErrorThrown))throw f.syncErrorValue;return f},a.prototype._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){h.config.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=b),d.canReportError(a)?a.error(b):console.warn(b)}},a.prototype.forEach=function(a,b){var c=this;return new(b=j(b))(function(b,d){var e;e=c.subscribe(function(b){try{a(b)}catch(c){d(c),e&&e.unsubscribe()}},d,b)})},a.prototype._subscribe=function(a){var b=this.source;return b&&b.subscribe(a)},a.prototype[f.observable]=function(){return this},a.prototype.pipe=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return 0===a.length?this:g.pipeFromArray(a)(this)},a.prototype.toPromise=function(a){var b=this;return new(a=j(a))(function(a,c){var d;b.subscribe(function(a){return d=a},function(a){return c(a)},function(){return a(d)})})},a.create=function(b){return new a(b)},a}();function j(a){if(a||(a=h.config.Promise||Promise),!a)throw Error("no Promise impl found");return a}b.Observable=i},24556:function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d=c(49079),e=c(59219);b.empty={closed:!0,next:function(a){},error:function(a){if(d.config.useDeprecatedSynchronousErrorHandling)throw a;e.hostReportError(a)},complete:function(){}}},49454:function(a,b,c){"use strict";var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(a,b)},function(a,b){function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0});var f=c(71517),g=c(24556),h=c(30598),i=c(93188),j=c(49079),k=c(59219),l=function(a){function b(c,d,e){var f=a.call(this)||this;switch(f.syncErrorValue=null,f.syncErrorThrown=!1,f.syncErrorThrowable=!1,f.isStopped=!1,arguments.length){case 0:f.destination=g.empty;break;case 1:if(!c){f.destination=g.empty;break}if("object"==typeof c){c instanceof b?(f.syncErrorThrowable=c.syncErrorThrowable,f.destination=c,c.add(f)):(f.syncErrorThrowable=!0,f.destination=new m(f,c));break}default:f.syncErrorThrowable=!0,f.destination=new m(f,c,d,e)}return f}return e(b,a),b.prototype[i.rxSubscriber]=function(){return this},b.create=function(a,c,d){var e=new b(a,c,d);return e.syncErrorThrowable=!1,e},b.prototype.next=function(a){this.isStopped||this._next(a)},b.prototype.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))},b.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},b.prototype.unsubscribe=function(){!this.closed&&(this.isStopped=!0,a.prototype.unsubscribe.call(this))},b.prototype._next=function(a){this.destination.next(a)},b.prototype._error=function(a){this.destination.error(a),this.unsubscribe()},b.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},b.prototype._unsubscribeAndRecycle=function(){var a=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=a,this},b}(h.Subscription);b.Subscriber=l;var m=function(a){function b(b,c,d,e){var h,i=a.call(this)||this;i._parentSubscriber=b;var j=i;return f.isFunction(c)?h=c:c&&(h=c.next,d=c.error,e=c.complete,c!==g.empty&&(j=Object.create(c),f.isFunction(j.unsubscribe)&&i.add(j.unsubscribe.bind(j)),j.unsubscribe=i.unsubscribe.bind(i))),i._context=j,i._next=h,i._error=d,i._complete=e,i}return e(b,a),b.prototype.next=function(a){if(!this.isStopped&&this._next){var b=this._parentSubscriber;j.config.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable?this.__tryOrSetError(b,this._next,a)&&this.unsubscribe():this.__tryOrUnsub(this._next,a)}},b.prototype.error=function(a){if(!this.isStopped){var b=this._parentSubscriber,c=j.config.useDeprecatedSynchronousErrorHandling;if(this._error)c&&b.syncErrorThrowable?(this.__tryOrSetError(b,this._error,a),this.unsubscribe()):(this.__tryOrUnsub(this._error,a),this.unsubscribe());else if(b.syncErrorThrowable)c?(b.syncErrorValue=a,b.syncErrorThrown=!0):k.hostReportError(a),this.unsubscribe();else{if(this.unsubscribe(),c)throw a;k.hostReportError(a)}}},b.prototype.complete=function(){var a=this;if(!this.isStopped){var b=this._parentSubscriber;if(this._complete){var c=function(){return a._complete.call(a._context)};j.config.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable?(this.__tryOrSetError(b,c),this.unsubscribe()):(this.__tryOrUnsub(c),this.unsubscribe())}else this.unsubscribe()}},b.prototype.__tryOrUnsub=function(a,b){try{a.call(this._context,b)}catch(c){if(this.unsubscribe(),j.config.useDeprecatedSynchronousErrorHandling)throw c;k.hostReportError(c)}},b.prototype.__tryOrSetError=function(a,b,c){if(!j.config.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{b.call(this._context,c)}catch(d){if(j.config.useDeprecatedSynchronousErrorHandling)return a.syncErrorValue=d,a.syncErrorThrown=!0,!0;return k.hostReportError(d),!0}return!1},b.prototype._unsubscribe=function(){var a=this._parentSubscriber;this._context=null,this._parentSubscriber=null,a.unsubscribe()},b}(l);b.SafeSubscriber=m},30598:function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d=c(26835),e=c(57399),f=c(71517),g=c(33305),h=function(){var a;function b(a){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,a&&(this._ctorUnsubscribe=!0,this._unsubscribe=a)}return b.prototype.unsubscribe=function(){if(!this.closed){var a,c=this._parentOrParents,h=this._ctorUnsubscribe,j=this._unsubscribe,k=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,c instanceof b)c.remove(this);else if(null!==c)for(var l=0;l<c.length;++l)c[l].remove(this);if(f.isFunction(j)){h&&(this._unsubscribe=void 0);try{j.call(this)}catch(m){a=m instanceof g.UnsubscriptionError?i(m.errors):[m]}}if(d.isArray(k))for(var l=-1,n=k.length;++l<n;){var o=k[l];if(e.isObject(o))try{o.unsubscribe()}catch(p){a=a||[],p instanceof g.UnsubscriptionError?a=a.concat(i(p.errors)):a.push(p)}}if(a)throw new g.UnsubscriptionError(a)}},b.prototype.add=function(a){var c=a;if(!a)return b.EMPTY;switch(typeof a){case"function":c=new b(a);case"object":if(c===this||c.closed||"function"!=typeof c.unsubscribe)return c;if(this.closed)return c.unsubscribe(),c;if(!(c instanceof b)){var d=c;(c=new b)._subscriptions=[d]}break;default:throw Error("unrecognized teardown "+a+" added to Subscription.")}var e=c._parentOrParents;if(null===e)c._parentOrParents=this;else if(e instanceof b){if(e===this)return c;c._parentOrParents=[e,this]}else{if(-1!==e.indexOf(this))return c;e.push(this)}var f=this._subscriptions;return null===f?this._subscriptions=[c]:f.push(c),c},b.prototype.remove=function(a){var b=this._subscriptions;if(b){var c=b.indexOf(a);-1!==c&&b.splice(c,1)}},b.EMPTY=((a=new b).closed=!0,a),b}();function i(a){return a.reduce(function(a,b){return a.concat(b instanceof g.UnsubscriptionError?b.errors:b)},[])}b.Subscription=h},49079:function(a,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var c=!1;b.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){if(value){var d=Error();console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+d.stack)}else c&&console.log("RxJS: Back to a better error behavior. Thank you. <3");c=value},get useDeprecatedSynchronousErrorHandling(){return c}}},57224:function(a,b,c){"use strict";var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(a,b)},function(a,b){function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0});var f=c(49454);b.filter=function(a,b){return function(c){return c.lift(new g(a,b))}};var g=function(){function a(a,b){this.predicate=a,this.thisArg=b}return a.prototype.call=function(a,b){return b.subscribe(new h(a,this.predicate,this.thisArg))},a}(),h=function(a){function b(b,c,d){var e=a.call(this,b)||this;return e.predicate=c,e.thisArg=d,e.count=0,e}return e(b,a),b.prototype._next=function(a){var b;try{b=this.predicate.call(this.thisArg,a,this.count++)}catch(c){this.destination.error(c);return}b&&this.destination.next(a)},b}(f.Subscriber)},48359:function(a,b,c){"use strict";var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(a,b)},function(a,b){function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0});var f=c(49454);b.map=function(a,b){return function(c){if("function"!=typeof a)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return c.lift(new g(a,b))}};var g=function(){function a(a,b){this.project=a,this.thisArg=b}return a.prototype.call=function(a,b){return b.subscribe(new h(a,this.project,this.thisArg))},a}();b.MapOperator=g;var h=function(a){function b(b,c,d){var e=a.call(this,b)||this;return e.project=c,e.count=0,e.thisArg=d||e,e}return e(b,a),b.prototype._next=function(a){var b;try{b=this.project.call(this.thisArg,a,this.count++)}catch(c){this.destination.error(c);return}this.destination.next(b)},b}(f.Subscriber)},36079:function(a,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},93188:function(a,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),b.$$rxSubscriber=b.rxSubscriber},33305:function(a,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var c=function(){function a(a){return Error.call(this),this.message=a?a.length+" errors occurred during unsubscription:\n"+a.map(function(a,b){return b+1+") "+a.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=a,this}return a.prototype=Object.create(Error.prototype),a}();b.UnsubscriptionError=c},87481:function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d=c(49454);b.canReportError=function(a){for(;a;){var b=a,c=b.closed,e=b.destination,f=b.isStopped;if(c||f)return!1;a=e&&e instanceof d.Subscriber?e:null}return!0}},59219:function(a,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.hostReportError=function(a){setTimeout(function(){throw a},0)}},80141:function(a,b){"use strict";function c(a){return a}Object.defineProperty(b,"__esModule",{value:!0}),b.identity=c},26835:function(a,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isArray=Array.isArray||function(a){return a&&"number"==typeof a.length}},71517:function(a,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isFunction=function(a){return"function"==typeof a}},57399:function(a,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isObject=function(a){return null!==a&&"object"==typeof a}},28105:function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d=c(80141);function e(a){return 0===a.length?d.identity:1===a.length?a[0]:function(b){return a.reduce(function(a,b){return b(a)},b)}}b.pipe=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return e(a)},b.pipeFromArray=e},73123:function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d=c(49454),e=c(93188),f=c(24556);b.toSubscriber=function(a,b,c){if(a){if(a instanceof d.Subscriber)return a;if(a[e.rxSubscriber])return a[e.rxSubscriber]()}return a||b||c?new d.Subscriber(a,b,c):new d.Subscriber(f.empty)}},47215:function(a,b,c){"use strict";var d=c(11987);a.exports=function(a,b,c){if(a===b)return!0;var e=d.parse(a,!1,!0),f=d.parse(b,!1,!0),g=0|e.port||("https"===e.protocol?443:80),h=0|f.port||("https"===f.protocol?443:80),i={proto:e.protocol===f.protocol,hostname:e.hostname===f.hostname,port:g===h};return i.proto&&i.hostname&&(i.port||c)}}}])