(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9545],{65258:function(t,e,n){"use strict";function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n2&&void 0!==arguments[2]?arguments[2]:{};u.validateAssetType(t);var i=n.extract||void 0;i&&!i.length&&(i=["none"]);var c=u.hasDataset(this.client.clientConfig),p="image"===t?"images":"files",b="undefined"!=typeof window&&e instanceof window.File?o({filename:!1===n.preserveFilename?void 0:e.name,contentType:e.type},n):n,y=b.tag,v=b.label,g=b.title,m=b.description,w=b.creditLine,_=b.filename,E=b.source,S={label:v,title:g,description:m,filename:_,meta:i,creditLine:w};E&&(S.sourceId=E.id,S.sourceName=E.name,S.sourceUrl=E.url);var O=this.client._requestObservable({tag:y,method:"POST",timeout:b.timeout||0,uri:"/assets/".concat(p,"/").concat(c),headers:b.contentType?{"Content-Type":b.contentType}:{},query:S,body:e});return this.client.isPromiseAPI()?O.pipe(a(function(t){return"response"===t.type}),s(function(t){return t.body.document})).toPromise():O},delete:function(t,e){console.warn("client.assets.delete() is deprecated, please use client.delete()");var n=e||"";return/^(image|file)-/.test(n)?t._id&&(n=t._id):n="".concat(t,"-").concat(n),u.hasDataset(this.client.clientConfig),this.client.delete(n)},getImageUrl:function(t,e){var n,o=t._ref||t;if("string"!=typeof o)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(o))throw Error('Unsupported asset ID "'.concat(o,'". URL generation only works for auto-generated IDs.'));var i=function(t){if(Array.isArray(t))return t}(n=o.split("-"))||function(t,e){var n,o,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s=[],a=!0,c=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(s.push(n.value),!e||s.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==i.return||i.return()}finally{if(c)throw o}}return s}}(n,4)||function(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(t,e)}}(n,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=i[1],a=i[2],p=i[3];u.hasDataset(this.client.clientConfig);var b=this.client.clientConfig,y=b.projectId,v=b.dataset,g=e?c(e):"";return"https://cdn.sanity.io/images/".concat(y,"/").concat(v,"/").concat(s,"-").concat(a,".").concat(p).concat(g)}}),t.exports=AssetsClient},76586:function(t,e,n){"use strict";function AuthClient(t){this.client=t}n(96086)(AuthClient.prototype,{getLoginProviders:function(){return this.client.request({uri:"/auth/providers"})},logout:function(){return this.client.request({uri:"/auth/logout",method:"POST"})}}),t.exports=AuthClient},79895:function(t,e,n){"use strict";var o=n(96086),i=n(2913),s=n(42947),a=n(1356),c={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,isPromiseAPI:!0},u=["localhost","127.0.0.1","0.0.0.0"];e.defaultConfig=c,e.initConfig=function(t,n){var p,b=o({},n,t);b.apiVersion||a.printNoApiVersionSpecifiedWarning();var y=o({},c,b),v=y.useProjectHostname;if("undefined"==typeof Promise){var g=i("js-client-promise-polyfill");throw Error("No native Promise-implementation found, polyfill needed - see ".concat(g))}if(v&&!y.projectId)throw Error("Configuration must contain `projectId`");var m="undefined"!=typeof window&&window.location&&window.location.hostname,w=m&&(p=window.location.hostname,-1!==u.indexOf(p));m&&w&&y.token&&!0!==y.ignoreBrowserTokenWarning?a.printBrowserTokenWarning():void 0===y.useCdn&&a.printCdnWarning(),v&&s.projectId(y.projectId),y.dataset&&s.dataset(y.dataset),"requestTagPrefix"in y&&(y.requestTagPrefix=y.requestTagPrefix?s.requestTag(y.requestTagPrefix).replace(/\.+$/,""):void 0),y.apiVersion="".concat(y.apiVersion).replace(/^v/,""),y.isDefaultApi=y.apiHost===c.apiHost,y.useCdn=!!y.useCdn&&!y.withCredentials,e.validateApiVersion(y.apiVersion);var _=y.apiHost.split("://",2),E=_[0],S=_[1],O=y.isDefaultApi?"apicdn.sanity.io":S;return y.useProjectHostname?(y.url="".concat(E,"://").concat(y.projectId,".").concat(S,"/v").concat(y.apiVersion),y.cdnUrl="".concat(E,"://").concat(y.projectId,".").concat(O,"/v").concat(y.apiVersion)):(y.url="".concat(y.apiHost,"/v").concat(y.apiVersion),y.cdnUrl=y.url),y},e.validateApiVersion=function(t){if("1"!==t&&"X"!==t){var e=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&e instanceof Date&&e.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}}},51078:function(t,e,n){"use strict";function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(96086),i=n(15092),s=i.map,a=i.filter,c=n(42947),u=n(47054),p=n(46102),b=n(70485),y=n(95770),v=n(5420),getMutationQuery=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{dryRun:e.dryRun,returnIds:!0,returnDocuments:!1===(t=e.returnDocuments)?void 0:void 0===t||t,visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}},isResponse=function(t){return"response"===t.type},getBody=function(t){return t.body},toPromise=function(t){return t.toPromise()};t.exports={listen:v,getDataUrl:function(t,e){var n=this.clientConfig,o=c.hasDataset(n),i="/".concat(t,"/").concat(o),s=e?"".concat(i,"/").concat(e):i;return"/data".concat(s).replace(/\/($|\?)/,"$1")},fetch:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!1===n.filterResponse?function(t){return t}:function(t){return t.result},i=this._dataRequest("query",{query:t,params:e},n).pipe(s(o));return this.isPromiseAPI()?toPromise(i):i},getDocument:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={uri:this.getDataUrl("doc",t),json:!0,tag:e.tag},o=this._requestObservable(n).pipe(a(isResponse),s(function(t){return t.body.documents&&t.body.documents[0]}));return this.isPromiseAPI()?toPromise(o):o},getDocuments:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={uri:this.getDataUrl("doc",t.join(",")),json:!0,tag:e.tag},o=this._requestObservable(n).pipe(a(isResponse),s(function(e){var n=(e.body.documents||[]).reduce(function(t,e){return t[e._id]=e,t},Object.create(null));return t.map(function(t){return n[t]||null})}));return this.isPromiseAPI()?toPromise(o):o},create:function(t,e){return this._create(t,"create",e)},createIfNotExists:function(t,e){return c.requireDocumentId("createIfNotExists",t),this._create(t,"createIfNotExists",e)},createOrReplace:function(t,e){return c.requireDocumentId("createOrReplace",t),this._create(t,"createOrReplace",e)},patch:function(t,e){return new y(t,e,this)},delete:function(t,e){return this.dataRequest("mutate",{mutations:[{delete:u(t)}]},e)},mutate:function(t,e){var n=t instanceof y||t instanceof b?t.serialize():t,o=Array.isArray(n)?n:[n],i=e&&e.transactionId;return this.dataRequest("mutate",{mutations:o,transactionId:i},e)},transaction:function(t){return new b(t,this)},dataRequest:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this._dataRequest(t,e,n);return this.isPromiseAPI()?toPromise(o):o},_dataRequest:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="mutate"===t,i="query"===t,c=!o&&p(e),u=!o&&c.length<11264,b=n.returnFirst,y=n.timeout,v=n.token,g=n.tag,m=n.headers,w={method:u?"GET":"POST",uri:this.getDataUrl(t,u?c:""),json:!0,body:u?void 0:e,query:o&&getMutationQuery(n),timeout:y,headers:m,token:v,tag:g,canUseCdn:i};return this._requestObservable(w).pipe(a(isResponse),s(getBody),s(function(t){if(!o)return t;var e=t.results||[];if(n.returnDocuments)return b?e[0]&&e[0].document:e.map(function(t){return t.document});var i=b?e[0]&&e[0].id:e.map(function(t){return t.id});return _defineProperty({transactionId:t.transactionId,results:e},b?"documentId":"documentIds",i)}))},_create:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=_defineProperty({},e,t),s=o({returnFirst:!0,returnDocuments:!0},n);return this.dataRequest("mutate",{mutations:[i]},s)}}},46102:function(t){"use strict";var e=["tag"],n=encodeURIComponent;t.exports=function(t){var o=t.query,i=t.params,s=void 0===i?{}:i,a=t.options,c=void 0===a?{}:a,u=c.tag,p=function(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n,o,i={},s=Object.keys(t);for(o=0;o=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(c,e),b="query=".concat(n(o)),y=u?"?tag=".concat(n(u),"&").concat(b):"?".concat(b),v=Object.keys(s).reduce(function(t,e){return"".concat(t,"&").concat(n("$".concat(e)),"=").concat(n(JSON.stringify(s[e])))},y);return Object.keys(p).reduce(function(t,e){return c[e]?"".concat(t,"&").concat(n(e),"=").concat(n(c[e])):t},v)}},5420:function(t,e,n){"use strict";function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function _objectSpread(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},o=this.clientConfig,y=o.url,v=o.token,g=o.withCredentials,m=o.requestTagPrefix,w=n.tag&&m?[m,n.tag].join("."):n.tag,_=_objectSpread(_objectSpread({},c(n,b)),{},{tag:w}),E=u({query:t,params:e,options:a(_,p),tag:w}),S="".concat(y).concat(this.getDataUrl("listen",E));if(S.length>14800)return new i(function(t){return t.error(Error("Query too large for listener"))});var O=_.events?_.events:["mutation"],x=-1!==O.indexOf("reconnect"),C={};return(v||g)&&(C.withCredentials=!0),v&&(C.headers={Authorization:"Bearer ".concat(v)}),new i(function(t){var e,n=getEventSource(),o=!1;function onError(){!o&&(x&&t.next({type:"reconnect"}),o||n.readyState!==s.CLOSED||(unsubscribe(),clearTimeout(e),e=setTimeout(open,100)))}function onChannelError(e){t.error(function(t){if(t instanceof Error)return t;var e=parseEvent(t);return e instanceof Error?e:Error(e.error?e.error.description?e.error.description:"string"==typeof e.error?e.error:JSON.stringify(e.error,null,2):e.message||"Unknown listener error")}(e))}function onMessage(e){var n=parseEvent(e);return n instanceof Error?t.error(n):t.next(n)}function onDisconnect(e){o=!0,unsubscribe(),t.complete()}function unsubscribe(){n.removeEventListener("error",onError,!1),n.removeEventListener("channelError",onChannelError,!1),n.removeEventListener("disconnect",onDisconnect,!1),O.forEach(function(t){return n.removeEventListener(t,onMessage,!1)}),n.close()}function getEventSource(){var t=new s(S,C);return t.addEventListener("error",onError,!1),t.addEventListener("channelError",onChannelError,!1),t.addEventListener("disconnect",onDisconnect,!1),O.forEach(function(e){return t.addEventListener(e,onMessage,!1)}),t}function open(){n=getEventSource()}return function(){o=!0,unsubscribe()}})}},95770:function(t,e,n){"use strict";function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(96086),i=n(47054),s=n(42947),a=s.validateObject,c=s.validateInsert;function Patch(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.selection=t,this.operations=o({},e),this.client=n}o(Patch.prototype,{clone:function(){return new Patch(this.selection,o({},this.operations),this.client)},set:function(t){return this._assign("set",t)},diffMatchPatch:function(t){return a("diffMatchPatch",t),this._assign("diffMatchPatch",t)},unset:function(t){if(!Array.isArray(t))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=o({},this.operations,{unset:t}),this},setIfMissing:function(t){return this._assign("setIfMissing",t)},replace:function(t){return a("replace",t),this._set("set",{$:t})},inc:function(t){return this._assign("inc",t)},dec:function(t){return this._assign("dec",t)},insert:function(t,e,n){var o;return c(t,e,n),this._assign("insert",(_defineProperty(o={},t,e),_defineProperty(o,"items",n),o))},append:function(t,e){return this.insert("after","".concat(t,"[-1]"),e)},prepend:function(t,e){return this.insert("before","".concat(t,"[0]"),e)},splice:function(t,e,n,o){var i=e<0?e-1:e,s=void 0===n||-1===n?-1:Math.max(0,e+n),a=i<0&&s>=0?"":s,c="".concat(t,"[").concat(i,":").concat(a,"]");return this.insert("replace",c,o||[])},ifRevisionId:function(t){return this.operations.ifRevisionID=t,this},serialize:function(){return o(i(this.selection),this.operations)},toJSON:function(){return this.serialize()},commit:function(){var t=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 e=o({returnFirst:"string"==typeof this.selection,returnDocuments:!0},t);return this.client.mutate({patch:this.serialize()},e)},reset:function(){return this.operations={},this},_set:function(t,e){return this._assign(t,e,!1)},_assign:function(t,e){var n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return a(t,e),this.operations=o({},this.operations,_defineProperty({},t,o({},n&&this.operations[t]||{},e))),this}}),t.exports=Patch},70485:function(t,e,n){"use strict";function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(96086),i=n(42947),s=n(95770),a={returnDocuments:!1};function Transaction(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;this.trxId=n,this.operations=t,this.client=e}o(Transaction.prototype,{clone:function(){return new Transaction(this.operations.slice(0),this.client,this.trxId)},create:function(t){return i.validateObject("create",t),this._add({create:t})},createIfNotExists:function(t){var e="createIfNotExists";return i.validateObject(e,t),i.requireDocumentId(e,t),this._add(_defineProperty({},e,t))},createOrReplace:function(t){var e="createOrReplace";return i.validateObject(e,t),i.requireDocumentId(e,t),this._add(_defineProperty({},e,t))},delete:function(t){return i.validateDocumentId("delete",t),this._add({delete:{id:t}})},patch:function(t,e){var n="function"==typeof e;if(t instanceof s)return this._add({patch:t.serialize()});if(n){var i=e(new s(t,{},this.client));if(!(i instanceof s))throw Error("function passed to `patch()` must return the patch");return this._add({patch:i.serialize()})}return this._add({patch:o({id:t},e)})},transactionId:function(t){return t?(this.trxId=t,this):this.trxId},serialize:function(){return this.operations.slice()},toJSON:function(){return this.serialize()},commit:function(t){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(),o({transactionId:this.trxId},a,t||{}))},reset:function(){return this.operations=[],this},_add:function(t){return this.operations.push(t),this}}),t.exports=Transaction},38288:function(t,e,n){"use strict";var o=n(96086),i=n(42947);function DatasetsClient(t){this.request=t.request.bind(t)}o(DatasetsClient.prototype,{create:function(t,e){return this._modify("PUT",t,e)},edit:function(t,e){return this._modify("PATCH",t,e)},delete:function(t){return this._modify("DELETE",t)},list:function(){return this.request({uri:"/datasets"})},_modify:function(t,e,n){return i.dataset(e),this.request({method:t,uri:"/datasets/".concat(e),body:n})}}),t.exports=DatasetsClient},2913:function(t){"use strict";t.exports=function(t){return"https://docs.sanity.io/help/"+t}},61708:function(t){"use strict";t.exports=[]},52288:function(t,e,n){"use strict";var o=n(81432),i=n(96086);function ClientError(t){var e=extractErrorProps(t);ClientError.super.call(this,e.message),i(this,e)}function ServerError(t){var e=extractErrorProps(t);ServerError.super.call(this,e.message),i(this,e)}function extractErrorProps(t){var e,n=t.body,o={response:t,statusCode:t.statusCode,responseBody:-1!==(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(n,null,2):n};return n.error&&n.message?o.message="".concat(n.error," - ").concat(n.message):n.error&&n.error.description?(o.message=n.error.description,o.details=n.error):o.message=n.error||n.message||(e=t.statusMessage?" ".concat(t.statusMessage):"","".concat(t.method,"-request to ").concat(t.url," resulted in HTTP ").concat(t.statusCode).concat(e)),o}o(ClientError),o(ServerError),e.ClientError=ClientError,e.ServerError=ServerError},93202:function(t){"use strict";t.exports=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(t[n])));return e.length>0?"?".concat(e.join("&")):""}},67343:function(t,e,n){"use strict";var o=n(46258),i=n(96086),s=n(6890),a=n(63366),c=n(68362),u=n(95018),p=n(15092).Observable,b=n(52288),y=b.ClientError,v=b.ServerError,g=o(n(61708).concat([{onResponse:function(t){var e=t.headers["x-sanity-warning"];return(Array.isArray(e)?e:[e]).filter(Boolean).forEach(function(t){return console.warn(t)}),t}},a(),c(),u(),{onResponse:function(t){if(t.statusCode>=500)throw new v(t);if(t.statusCode>=400)throw new y(t);return t}},s({implementation:p})]));function httpRequest(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;return e(i({maxRedirects:0},t))}httpRequest.defaultRequester=g,httpRequest.ClientError=y,httpRequest.ServerError=v,t.exports=httpRequest},93914:function(t,e,n){"use strict";var o=n(96086);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},i=e.token||t.token;i&&(n.Authorization="Bearer ".concat(i)),e.useGlobalApi||t.useProjectHostname||!t.projectId||(n["X-Sanity-Project-ID"]=t.projectId);var s=!!(void 0===e.withCredentials?t.token||t.withCredentials:e.withCredentials),a=void 0===e.timeout?t.timeout:e.timeout;return o({},e,{headers:o({},n,e.headers||{}),timeout:void 0===a?3e5:a,proxy:e.proxy||t.proxy,json:!0,withCredentials:s})}},17015:function(t,e,n){"use strict";function ProjectsClient(t){this.client=t}n(96086)(ProjectsClient.prototype,{list:function(){return this.client.request({uri:"/projects"})},getById:function(t){return this.client.request({uri:"/projects/".concat(t)})}}),t.exports=ProjectsClient},59729:function(t,e,n){"use strict";function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function _objectSpread(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:O;if(!(this instanceof SanityClient))return new SanityClient(t);if(this.config(t),this.assets=new g(this),this.datasets=new y(this),this.projects=new v(this),this.users=new m(this),this.auth=new w(this),this.clientConfig.isPromiseAPI){var e=o({},this.clientConfig,{isPromiseAPI:!1});this.observable=new SanityClient(e)}}o(SanityClient.prototype,b),o(SanityClient.prototype,{clone:function(){return new SanityClient(this.config())},config:function(t){if(void 0===t)return o({},this.clientConfig);if(this.clientConfig&&!1===this.clientConfig.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");if(this.observable){var e=o({},t,{isPromiseAPI:!1});this.observable.config(e)}return this.clientConfig=x(t,this.clientConfig||{}),this},withConfig:function(t){return new SanityClient(_objectSpread(_objectSpread({},this.config()),t))},getUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?this.clientConfig.cdnUrl:this.clientConfig.url;return"".concat(n,"/").concat(t.replace(/^\//,""))},isPromiseAPI:function(){return this.clientConfig.isPromiseAPI},_requestObservable:function(t){var e=this,n=t.url||t.uri,i=void 0===t.canUseCdn?["GET","HEAD"].indexOf(t.method||"GET")>=0&&0===n.indexOf("/data/"):t.canUseCdn,a=this.clientConfig.useCdn&&i,c=t.tag&&this.clientConfig.requestTagPrefix?[this.clientConfig.requestTagPrefix,t.tag].join("."):t.tag||this.clientConfig.requestTagPrefix;c&&(t.query=_objectSpread({tag:C.requestTag(c)},t.query));var u=E(this.clientConfig,o({},t,{url:this.getUrl(n,a)}));return new s(function(t){return _(u,e.clientConfig.requester).subscribe(t)})},request:function(t){var e=this._requestObservable(t).pipe(c(function(t){return"response"===t.type}),a(function(t){return t.body}));return this.isPromiseAPI()?e.toPromise():e}}),SanityClient.Patch=u,SanityClient.Transaction=p,SanityClient.ClientError=_.ClientError,SanityClient.ServerError=_.ServerError,SanityClient.requester=_.defaultRequester,t.exports=SanityClient},91102:function(t,e,n){"use strict";function UsersClient(t){this.client=t}n(96086)(UsersClient.prototype,{getById:function(t){return this.client.request({uri:"/users/".concat(t)})}}),t.exports=UsersClient},9119:function(t){"use strict";t.exports=function(t,e){return Object.keys(e).concat(Object.keys(t)).reduce(function(n,o){return n[o]=void 0===t[o]?e[o]:t[o],n},{})}},47054:function(t){"use strict";t.exports=function(t){if("string"==typeof t||Array.isArray(t))return{id:t};if(t&&t.query)return"params"in t?{query:t.query,params:t.params}:{query:t.query};throw Error("Unknown selection - must be one of:\n\n".concat("* Document ID ()\n* Array of document IDs\n* Object containing `query`"))}},15092:function(t,e,n){"use strict";var o=n(12837).Observable,i=n(57224).filter,s=n(48359).map;t.exports={Observable:o,filter:i,map:s}},27826:function(t){"use strict";t.exports=function(t){var e,n=!1;return function(){return n||(e=t.apply(void 0,arguments),n=!0),e}}},88201:function(t){"use strict";t.exports=function(t,e){return e.reduce(function(e,n){return void 0===t[n]||(e[n]=t[n]),e},{})}},42947:function(t,e){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=["image","file"],o=["before","after","replace"];e.dataset=function(t){if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(t))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},e.projectId=function(t){if(!/^[-a-z0-9]+$/i.test(t))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},e.validateAssetType=function(t){if(-1===n.indexOf(t))throw Error("Invalid asset type: ".concat(t,". Must be one of ").concat(n.join(", ")))},e.validateObject=function(t,e){if(null===e||"object"!==_typeof(e)||Array.isArray(e))throw Error("".concat(t,"() takes an object of properties"))},e.requireDocumentId=function(t,n){if(!n._id)throw Error("".concat(t,'() requires that the document contains an ID ("_id" property)'));e.validateDocumentId(t,n._id)},e.validateDocumentId=function(t,e){if("string"!=typeof e||!/^[a-z0-9_.-]+$/i.test(e))throw Error("".concat(t,'(): "').concat(e,'" is not a valid document ID'))},e.validateInsert=function(t,e,n){var i="insert(at, selector, items)";if(-1===o.indexOf(t)){var s=o.map(function(t){return'"'.concat(t,'"')}).join(", ");throw Error("".concat(i,' takes an "at"-argument which is one of: ').concat(s))}if("string"!=typeof e)throw Error("".concat(i,' takes a "selector"-argument which must be a string'));if(!Array.isArray(n))throw Error("".concat(i,' takes an "items"-argument which must be an array'))},e.hasDataset=function(t){if(!t.dataset)throw Error("`dataset` must be provided to perform queries");return t.dataset||""},e.requestTag=function(t){if("string"!=typeof t||!/^[a-z0-9._-]{1,75}$/i.test(t))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return t}},1356:function(t,e,n){"use strict";var o=n(2913),i=n(27826),createWarningPrinter=function(t){return i(function(){for(var e,n=arguments.length,o=Array(n),i=0;it.length)&&(e=t.length);for(var n=0,o=Array(e);n=t.length?{done:!0}:{done:!1,value:t[e++]}};throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(e=t[Symbol.iterator]()).next.bind(e)}(e);!(n=o()).done;){var i=n.value,s=i[0],a=i[1];if(t===s||t===a)return s}return t}(i)]=t[i]);return new ImageUrlBuilder(this,_extends({baseUrl:n},o))},s.image=function(t){return this.withOptions({source:t})},s.dataset=function(t){return this.withOptions({dataset:t})},s.projectId=function(t){return this.withOptions({projectId:t})},s.bg=function(t){return this.withOptions({bg:t})},s.dpr=function(t){return this.withOptions({dpr:t})},s.width=function(t){return this.withOptions({width:t})},s.height=function(t){return this.withOptions({height:t})},s.focalPoint=function(t,e){return this.withOptions({focalPoint:{x:t,y:e}})},s.maxWidth=function(t){return this.withOptions({maxWidth:t})},s.minWidth=function(t){return this.withOptions({minWidth:t})},s.maxHeight=function(t){return this.withOptions({maxHeight:t})},s.minHeight=function(t){return this.withOptions({minHeight:t})},s.size=function(t,e){return this.withOptions({width:t,height:e})},s.blur=function(t){return this.withOptions({blur:t})},s.sharpen=function(t){return this.withOptions({sharpen:t})},s.rect=function(t,e,n,o){return this.withOptions({rect:{left:t,top:e,width:n,height:o}})},s.format=function(t){return this.withOptions({format:t})},s.invert=function(t){return this.withOptions({invert:t})},s.orientation=function(t){return this.withOptions({orientation:t})},s.quality=function(t){return this.withOptions({quality:t})},s.forceDownload=function(t){return this.withOptions({download:t})},s.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},s.flipVertical=function(){return this.withOptions({flipVertical:!0})},s.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},s.fit=function(t){if(-1===n.indexOf(t))throw Error('Invalid fit mode "'+t+'"');return this.withOptions({fit:t})},s.crop=function(t){if(-1===o.indexOf(t))throw Error('Invalid crop mode "'+t+'"');return this.withOptions({crop:t})},s.saturation=function(t){return this.withOptions({saturation:t})},s.auto=function(t){if(-1===i.indexOf(t))throw Error('Invalid auto mode "'+t+'"');return this.withOptions({auto:t})},s.pad=function(t){return this.withOptions({pad:t})},s.url=function(){return function(n){var o=_extends({},n||{}),i=o.source;delete o.source;var s=function(t){var e;if(!t)return null;if("string"==typeof t&&/^https?:\/\//.test(""+t))e={asset:{_ref:urlToId(t)}};else if("string"==typeof t)e={asset:{_ref:t}};else if(t&&"string"==typeof t._ref)e={asset:t};else if(t&&"string"==typeof t._id)e={asset:{_ref:t._id||""}};else if(t&&t.asset&&"string"==typeof t.asset.url)e={asset:{_ref:urlToId(t.asset.url)}};else{if("object"!=typeof t.asset)return null;e=t}return t.crop&&(e.crop=t.crop),t.hotspot&&(e.hotspot=t.hotspot),function(t){if(t.crop&&t.hotspot)return t;var e=_extends({},t);return e.crop||(e.crop={left:0,top:0,bottom:0,right:0}),e.hotspot||(e.hotspot={x:.5,y:.5,height:1,width:1}),e}(e)}(i);if(!s)return null;var a=function(e){var n=e.split("-"),o=n[1],i=n[2],s=n[3];if(!o||!i||!s)throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+t+'".');var a=i.split("x"),c=a[0],u=a[1],p=+c,b=+u;if(!(isFinite(p)&&isFinite(b)))throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+t+'".');return{id:o,width:p,height:b,format:s}}(s.asset._ref||s.asset._id||""),c=Math.round(s.crop.left*a.width),u=Math.round(s.crop.top*a.height),p={left:c,top:u,width:Math.round(a.width-s.crop.right*a.width-c),height:Math.round(a.height-s.crop.bottom*a.height-u)},b=s.hotspot.height*a.height/2,y=s.hotspot.width*a.width/2,v=s.hotspot.x*a.width,g=s.hotspot.y*a.height;return o.rect||o.focalPoint||o.ignoreImageParams||o.crop||(o=_extends(_extends({},o),function(t,e){var n,o=e.width,i=e.height;if(!(o&&i))return{width:o,height:i,rect:t.crop};var s=t.crop,a=t.hotspot,c=o/i;if(s.width/s.height>c){var u=s.height,p=u*c,b=s.top,y=(a.right-a.left)/2+a.left-p/2;ys.left+s.width&&(y=s.left+s.width-p),n={left:Math.round(y),top:Math.round(b),width:Math.round(p),height:Math.round(u)}}else{var v=s.width,g=v/c,m=s.left,w=(a.bottom-a.top)/2+a.top-g/2;ws.top+s.height&&(w=s.top+s.height-g),n={left:Math.max(0,Math.floor(m)),top:Math.max(0,Math.floor(w)),width:Math.round(v),height:Math.round(g)}}return{width:o,height:i,rect:n}}({crop:p,hotspot:{left:v-y,top:g-b,right:v+y,bottom:g+b}},o))),function(t){var n=t.baseUrl||"https://cdn.sanity.io",o=t.asset.id+"-"+t.asset.width+"x"+t.asset.height+"."+t.asset.format,i=n+"/images/"+t.projectId+"/"+t.dataset+"/"+o,s=[];if(t.rect){var a=t.rect,c=a.left,u=a.top,p=a.width,b=a.height;(0!==c||0!==u||b!==t.asset.height||p!==t.asset.width)&&s.push("rect="+c+","+u+","+p+","+b)}t.bg&&s.push("bg="+t.bg),t.focalPoint&&(s.push("fp-x="+t.focalPoint.x),s.push("fp-y="+t.focalPoint.y));var y=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return(y&&s.push("flip="+y),e.forEach(function(e){var n=e[0],o=e[1];void 0!==t[n]?s.push(o+"="+encodeURIComponent(t[n])):void 0!==t[o]&&s.push(o+"="+encodeURIComponent(t[o]))}),0===s.length)?i:i+"?"+s.join("&")}(_extends(_extends({},o),{},{asset:a}))}(this.options)},s.toString=function(){return this.url()},ImageUrlBuilder}();return function(t){if(t&&"object"==typeof t.clientConfig){var e=t.clientConfig,n=e.apiHost,o=e.projectId,i=e.dataset;return new s(null,{baseUrl:(n||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:o,dataset:i})}return new s(null,t)}}()},88541:function(t,e){var n,o,i;/** @license * eventsource.js * Available under MIT License (MIT) * https://github.com/Yaffle/EventSource/ */!function(s){"use strict";var a=s.setTimeout,c=s.clearTimeout,u=s.XMLHttpRequest,p=s.XDomainRequest,b=s.ActiveXObject,y=s.EventSource,v=s.document,g=s.Promise,m=s.fetch,w=s.Response,_=s.TextDecoder,E=s.TextEncoder,S=s.AbortController;if("undefined"==typeof window||void 0===v||"readyState"in v||null!=v.body||(v.readyState="loading",window.addEventListener("load",function(t){v.readyState="complete"},!1)),null==u&&null!=b&&(u=function(){return new b("Microsoft.XMLHTTP")}),void 0==Object.create&&(Object.create=function(t){function F(){}return F.prototype=t,new F}),Date.now||(Date.now=function(){return new Date().getTime()}),void 0==S){var O=m;m=function(t,e){var n=e.signal;return O(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then(function(t){var e=t.body.getReader();return n._reader=e,n._aborted&&n._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}})},S=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function TextDecoderPolyfill(){this.bitsNeeded=0,this.codePoint=0}TextDecoderPolyfill.prototype.decode=function(t){function valid(t,e,n){if(1===n)return t>=128>>e&&t<=2048>>e&&t<=57344>>e&&t<=65536>>e&&t<>6>15?3:e>31?2:1;if(12===t)return e>15?3:2;if(18===t)return 3;throw Error()}for(var e="",n=this.bitsNeeded,o=this.codePoint,i=0;i191||!valid(o<<6|63&s,n-6,octetsCount(n,o)))&&(n=0,e+=String.fromCharCode(o=65533)),0===n?(s>=0&&s<=127?(n=0,o=s):s>=192&&s<=223?(n=6,o=31&s):s>=224&&s<=239?(n=12,o=15&s):s>=240&&s<=247?(n=18,o=7&s):(n=0,o=65533),0===n||valid(o,n,octetsCount(n,o))||(n=0,o=65533)):(n-=6,o=o<<6|63&s),0===n&&(o<=65535?e+=String.fromCharCode(o):e+=String.fromCharCode(55296+(o-65535-1>>10))+String.fromCharCode(56320+(o-65535-1&1023)))}return this.bitsNeeded=n,this.codePoint=o,e},(void 0==_||void 0==E||!function(){try{return"test"===new _().decode(new E().encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}())&&(_=TextDecoderPolyfill);var k=function(){};function XHRWrapper(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=k,this.onload=k,this.onerror=k,this.onreadystatechange=k,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=k}function toLowerCase(t){return t.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)+32)})}function HeadersPolyfill(t){for(var e=Object.create(null),n=t.split("\r\n"),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,n=[],b=p.reduce(function(t,e){return t[e]=t[e]||[],t},{processOptions:[s],validateOptions:[a]});function request(t){var n=u.reduce(function(t,e){return t[e]=o(),t},{}),s=i(b),a=s("processOptions",t);s("validateOptions",a);var c={options:a,channels:n,applyMiddleware:s},p=null,y=n.request.subscribe(function(t){p=e(t,function(e,o){return function(t,e,o){var i=t,a=e;if(!i)try{a=s("onResponse",e,o)}catch(t){a=null,i=t}(i=i&&s("onError",i,o))?n.error.publish(i):a&&n.response.publish(a)}(e,o,t)})});n.abort.subscribe(function(){y(),p&&p.abort()});var v=s("onReturn",n,c);return v===n&&n.request.publish(c),v}return request.use=function(t){if(!t)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof t)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(t.onReturn&&b.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return p.forEach(function(e){t[e]&&b[e].push(t[e])}),n.push(t),request},request.clone=function(){return createRequester(n)},t.forEach(request.use),request}},65734:function(t,e,n){"use strict";var o=n(96086),i=n(84564),s="undefined"!=typeof navigator&&"ReactNative"===navigator.product,a=Object.prototype.hasOwnProperty,c={timeout:s?6e4:12e4};function stringifyQueryString(t){var e=[];for(var n in t)a.call(t,n)&&function push(t,n){Array.isArray(n)?n.forEach(function(e){return push(t,e)}):e.push([t,n].map(encodeURIComponent).join("="))}(n,t[n]);return e.length?e.join("&"):""}t.exports=function(t){var e="string"==typeof t?o({url:t},c):o({},c,t),n=i(e.url,{},!0);return e.timeout=function normalizeTimeout(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;var e=Number(t);return isNaN(e)?normalizeTimeout(c.timeout):{connect:e,socket:e}}(e.timeout),e.query&&(n.query=o({},n.query,function(t){var e={};for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}(e.query))),e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e.url=n.toString(stringifyQueryString),e}},15139:function(t){"use strict";var e=/^https?:\/\//i;t.exports=function(t){if(!e.test(t.url))throw Error('"'.concat(t.url,'" is not a valid URL'))}},63366:function(t,e,n){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(96086),i=n(55299),s=["boolean","string","number"];t.exports=function(){return{processOptions:function(t){var e=t.body;return e&&"function"!=typeof e.pipe&&!(e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))&&(-1!==s.indexOf(_typeof(e))||Array.isArray(e)||i(e))?o({},t,{body:JSON.stringify(t.body),headers:o({},t.headers,{"Content-Type":"application/json"})}):t}}}},68362:function(t,e,n){"use strict";var o=n(96086);t.exports=function(t){return{onResponse:function(e){var n=e.headers["content-type"]||"",i=t&&t.force||-1!==n.indexOf("application/json");return e.body&&n&&i?o({},e,{body:function(t){try{return JSON.parse(t)}catch(t){throw t.message="Failed to parsed response body as JSON: ".concat(t.message),t}}(e.body)}):e},processOptions:function(t){return o({},t,{headers:o({Accept:"application/json"},t.headers)})}}}},6890:function(t,e,n){"use strict";var o=n(53366),i=n(96086);t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.implementation||o.Observable;if(!e)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(t,n){return new e(function(e){return t.error.subscribe(function(t){return e.error(t)}),t.progress.subscribe(function(t){return e.next(i({type:"progress"},t))}),t.response.subscribe(function(t){e.next(i({type:"response"},t)),e.complete()}),t.request.publish(n),function(){return t.abort.publish()}})}}}},54393:function(t){"use strict";t.exports=function(){return{onRequest:function(t){if("xhr"===t.adapter){var e=t.request,n=t.context;"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=handleProgress("upload")),"onprogress"in e&&(e.onprogress=handleProgress("download"))}function handleProgress(t){return function(e){var o=e.lengthComputable?e.loaded/e.total*100:-1;n.channels.progress.publish({stage:t,percent:o,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}}}}},95018:function(t,e,n){"use strict";t.exports=n(54393)},47288:function(t,e,n){"use strict";var o=n(47215),i=n(4947),s=n(56377),a="undefined"==typeof window?void 0:window,c=a?"xhr":"fetch",u="function"==typeof XMLHttpRequest?XMLHttpRequest:function(){},p="withCredentials"in new u,b="undefined"==typeof XDomainRequest?void 0:XDomainRequest,y=p?u:b;a||(u=s,y=s),t.exports=function(t,e){var n=t.options,s=t.applyMiddleware("finalizeOptions",n),p={},b=a&&a.location&&!o(a.location.href,s.url),v=t.applyMiddleware("interceptRequest",void 0,{adapter:c,context:t});if(v){var g=setTimeout(e,0,null,v);return{abort:function(){return clearTimeout(g)}}}var m=b?new y:new u,w=a&&a.XDomainRequest&&m instanceof a.XDomainRequest,_=s.headers,E=s.timeout,S=!1,O=!1,x=!1;if(m.onerror=onError,m.ontimeout=onError,m.onabort=function(){stopTimers(!0),S=!0},m.onprogress=function(){},m[w?"onload":"onreadystatechange"]=function(){E&&(stopTimers(),p.socket=setTimeout(function(){return timeoutRequest("ESOCKETTIMEDOUT")},E.socket)),!S&&(4===m.readyState||w)&&0!==m.status&&function(){if(!S&&!O&&!x){if(0===m.status){onError(Error("Unknown XHR error"));return}stopTimers(),O=!0,e(null,function(){var t=m.status,e=m.statusText;if(w&&void 0===t)t=200;else{if(t>12e3&&t<12156)return onError();t=1223===m.status?204:m.status,e=1223===m.status?"No Content":e}return{body:m.response||m.responseText,url:s.url,method:s.method,headers:w?{}:i(m.getAllResponseHeaders()),statusCode:t,statusMessage:e}}())}}()},m.open(s.method,s.url,!0),m.withCredentials=!!s.withCredentials,_&&m.setRequestHeader)for(var C in _)_.hasOwnProperty(C)&&m.setRequestHeader(C,_[C]);else if(_&&w)throw Error("Headers cannot be set on an XDomainRequest object");return s.rawBody&&(m.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:s,adapter:c,request:m,context:t}),m.send(s.body||null),E&&(p.connect=setTimeout(function(){return timeoutRequest("ETIMEDOUT")},E.connect)),{abort:function(){S=!0,m&&m.abort()}};function timeoutRequest(e){x=!0,m.abort();var n=Error("ESOCKETTIMEDOUT"===e?"Socket timed out on request to ".concat(s.url):"Connection timed out on request to ".concat(s.url));n.code=e,t.channels.error.publish(n)}function stopTimers(t){(t||S||m.readyState>=2&&p.connect)&&clearTimeout(p.connect),p.socket&&clearTimeout(p.socket)}function onError(t){if(!O){stopTimers(!0),O=!0,m=null;var n=t||Error("Network error while attempting to reach ".concat(s.url));n.isNetworkError=!0,n.request=s,e(n)}}}},56377:function(t){"use strict";function FetchXhr(){this.readyState=0}FetchXhr.prototype.open=function(t,e){this._method=t,this._url=e,this._resHeaders="",this.readyState=1,this.onreadystatechange()},FetchXhr.prototype.abort=function(){this._controller&&this._controller.abort()},FetchXhr.prototype.getAllResponseHeaders=function(){return this._resHeaders},FetchXhr.prototype.setRequestHeader=function(t,e){this._headers=this._headers||{},this._headers[t]=e},FetchXhr.prototype.send=function(t){var e=this,n=this._controller="function"==typeof AbortController&&new AbortController,o="arraybuffer"!==this.responseType,i={method:this._method,headers:this._headers,signal:n&&n.signal,body:t};"undefined"!=typeof window&&(i.credentials=this.withCredentials?"include":"omit"),fetch(this._url,i).then(function(t){return t.headers.forEach(function(t,n){e._resHeaders+="".concat(n,": ").concat(t,"\r\n")}),e.status=t.status,e.statusText=t.statusText,e.readyState=3,o?t.text():t.arrayBuffer()}).then(function(t){o?e.responseText=t:e.response=t,e.readyState=4,e.onreadystatechange()}).catch(function(t){if("AbortError"===t.name){e.onabort();return}e.onerror(t)})},t.exports=FetchXhr},39825:function(t,e,n){"use strict";t.exports=n(47288)},53366:function(t,e,n){"use strict";"undefined"!=typeof globalThis?t.exports=globalThis:"undefined"!=typeof window?t.exports=window:void 0!==n.g?t.exports=n.g:"undefined"!=typeof self?t.exports=self:t.exports={}},46604:function(t){"use strict";t.exports=function(t){return function(e,n){for(var o="onError"===e,i=n,s=arguments.length,a=Array(s>2?s-2:0),c=2;c1?e-1:0),o=1;o * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */var o=n(47798);function isObjectObject(t){return!0===o(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,n;return!1!==isObjectObject(t)&&"function"==typeof(e=t.constructor)&&!1!==isObjectObject(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},47798:function(t){"use strict";/*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},81432:function(t,e){"use strict";var n="undefined"!=typeof Reflect?Reflect.construct:void 0,o=Object.defineProperty,i=Error.captureStackTrace;function BaseError(t){void 0!==t&&o(this,"message",{configurable:!0,value:t,writable:!0});var e=this.constructor.name;void 0!==e&&e!==this.name&&o(this,"name",{configurable:!0,value:e,writable:!0}),i(this,this.constructor)}void 0===i&&(i=function(t){var e=Error();o(t,"stack",{configurable:!0,get:function(){var t=e.stack;return o(this,"stack",{configurable:!0,value:t,writable:!0}),t},set:function(e){o(t,"stack",{configurable:!0,value:e,writable:!0})}})}),BaseError.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:BaseError,writable:!0}});var s=function(){function setFunctionName(t,e){return o(t,"name",{configurable:!0,value:e})}try{var f=function(){};if(setFunctionName(f,"foo"),"foo"===f.name)return setFunctionName}catch(t){}}();(t.exports=function(t,e){if(null==e||e===Error)e=BaseError;else if("function"!=typeof e)throw TypeError("super_ should be a function");if("string"==typeof t)o=t,t=void 0!==n?function(){return n(e,arguments,this.constructor)}:function(){e.apply(this,arguments)},void 0!==s&&(s(t,o),o=void 0);else if("function"!=typeof t)throw TypeError("constructor should be either a string or a function");t.super_=t.super=e;var o,i={constructor:{configurable:!0,value:t,writable:!0}};return void 0!==o&&(i.name={configurable:!0,value:o,writable:!0}),t.prototype=Object.create(e.prototype,i),t}).BaseError=BaseError},38749:function(t){t.exports=function(){var t=[];return{subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}},publish:function(){for(var e=0;e256||/^[a-z0-9]$/i.test(t)?t:"%"+e.toString(16).toUpperCase()}).join("")}catch(t){return e}}):m.pathname),"about:"===E.protocol&&"blank"===E.pathname&&(E.protocol="",E.pathname=""),S&&"/"!==t[0]&&(E.pathname=E.pathname.substr(1)),g&&!u.test(g)&&"/"!==t.slice(-1)&&"/"===E.pathname&&(E.pathname=""),E.path=E.pathname+E.search,E.auth=[m.username,m.password].map(decodeURIComponent).filter(Boolean).join(":"),E.port=m.port,_&&!E.host.endsWith(_)&&(E.host+=_,E.port=_.slice(1)),E.href=O?""+E.pathname+E.search+E.hash:r(E);var C=/^(file)/.test(E.href)?["host","hostname"]:[];return Object.keys(E).forEach(function(t){~C.indexOf(t)||(E[t]=E[t]||null)}),E}i.parse=d,i.format=r,i.resolve=h,i.resolveObject=function(t,e){return d(h(t,e))},i.Url=l}(),t.exports=i}()},97334:function(t){!function(){"use strict";var e={815:function(t){t.exports=function(t,n,o,i){n=n||"&",o=o||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(n);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var p=0;p=0?(b=m.substr(0,w),y=m.substr(w+1)):(b=m,y=""),v=decodeURIComponent(b),g=decodeURIComponent(y),Object.prototype.hasOwnProperty.call(s,v))?e(s[v])?s[v].push(g):s[v]=[s[v],g]:s[v]=g}return s};var e=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},577:function(t){var stringifyPrimitive=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,o,i,s){return(o=o||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t)?map(n(t),function(n){var s=encodeURIComponent(stringifyPrimitive(n))+i;return e(t[n])?map(t[n],function(t){return s+encodeURIComponent(stringifyPrimitive(t))}).join(o):s+encodeURIComponent(stringifyPrimitive(t[n]))}).join(o):s?encodeURIComponent(stringifyPrimitive(s))+i+encodeURIComponent(stringifyPrimitive(t)):""};var e=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function map(t,e){if(t.map)return t.map(e);for(var n=[],o=0;o=2&&(n=n.slice(2)):isSpecial(i)?n=o[4]:i?s&&(n=n.slice(2)):u>=2&&isSpecial(e.protocol)&&(n=o[4]),{protocol:i,slashes:s||isSpecial(i),slashesCount:u,rest:n}}function Url(t,e,n){if(t=(t=trimLeft(t)).replace(a,""),!(this instanceof Url))return new Url(t,e,n);var s,c,u,p,v,g,m=y.slice(),w=typeof e,_=0;for("object"!==w&&"string"!==w&&(n=e,e=null),n&&"function"!=typeof n&&(n=i.parse),s=!(c=extractProtocol(t||"",e=lolcation(e))).protocol&&!c.slashes,this.slashes=c.slashes||s&&e.slashes,this.protocol=c.protocol||e.protocol||"",t=c.rest,("file:"===c.protocol&&(2!==c.slashesCount||b.test(t))||!c.slashes&&(c.protocol||c.slashesCount<2||!isSpecial(this.protocol)))&&(m[3]=[/(.*)/,"pathname"]);_