text: (self.webpackChunkgatsby_admin=self.webpackChunkgatsby_admin||[]).push([[238],{94180:function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},981:function(t){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(s){o=!0,i=s}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}},t.exports.default=t.exports,t.exports.__esModule=!0},37365:function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},51068:function(t,e,r){var n=r(94180),o=r(981),i=r(6487),a=r(37365);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},77162:function(t,e,r){t.exports=r(25047)},18893:function(t){"use strict";t.exports=a;var e=/(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/,r={reset:["fff","000"],black:"000",red:"ff0000",green:"209805",yellow:"e8bf03",blue:"0000ff",magenta:"ff00ff",cyan:"00ffee",lightgrey:"f0f0f0",darkgrey:"888"},n={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"lightgrey"},o={1:"font-weight:bold",2:"opacity:0.5",3:"<i>",4:"<u>",8:"display:none",9:"<del>"},i={23:"</i>",24:"</u>",29:"</del>"};function a(t){if(!e.test(t))return t;var r=[],n=t.replace(/\033\[(\d+)*m/g,(function(t,e){var n=o[e];if(n)return~r.indexOf(e)?(r.pop(),"</span>"):(r.push(e),"<"===n[0]?n:'<span style="'+n+';">');var a=i[e];return a?(r.pop(),a):""})),a=r.length;return a>0&&(n+=Array(a+1).join("</span>")),n}function u(t){for(var e in o[0]="font-weight:normal;opacity:1;color:#"+t.reset[0]+";background:#"+t.reset[1],o[7]="color:#"+t.reset[1]+";background:#"+t.reset[0],o[90]="color:#"+t.darkgrey,n){var r=t[n[e]]||"000";o[e]="color:#"+r,e=parseInt(e),o[(e+10).toString()]="background:#"+r}}[0,21,22,27,28,39,49].forEach((function(t){i[t]="</span>"})),a.setColors=function(t){if("object"!=typeof t)throw new Error("`colors` parameter must be an Object.");var e={};for(var n in r){var o=t.hasOwnProperty(n)?t[n]:null;if(o){if("reset"===n){if("string"==typeof o&&(o=[o]),!Array.isArray(o)||0===o.length||o.some((function(t){return"string"!=typeof t})))throw new Error("The value of `"+n+"` property must be an Array and each item could only be a hex string, e.g.: FF0000");var i=r[n];o[0]||(o[0]=i[0]),1!==o.length&&o[1]||(o=[o[0]]).push(i[1]),o=o.slice(0,2)}else if("string"!=typeof o)throw new Error("The value of `"+n+"` property must be a hex string, e.g.: FF0000");e[n]=o}else e[n]=r[n]}u(e)},a.reset=function(){u(r)},a.tags={},Object.defineProperty?(Object.defineProperty(a.tags,"open",{get:function(){return o}}),Object.defineProperty(a.tags,"close",{get:function(){return i}})):(a.tags.open=o,a.tags.close=i),a.reset()},95917:function(t){var e=function(t){function e(){this.fetch=!1}return e.prototype=t,new e}("undefined"!=typeof self?self:this);(function(t){!function(t){if(!t.fetch){var e="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,n="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,i="ArrayBuffer"in t;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=function(t){return t&&DataView.prototype.isPrototypeOf(t)},s=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};d.prototype.append=function(t,e){t=f(t),e=p(e);var r=this.map[t];this.map[t]=r?r+","+e:e},d.prototype.delete=function(t){delete this.map[f(t)]},d.prototype.get=function(t){return t=f(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(f(t))},d.prototype.set=function(t,e){this.map[f(t)]=p(e)},d.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},d.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),h(t)},d.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),h(t)},d.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),h(t)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var c=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},b.call(x.prototype),b.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:0,statusText:""});return t.type="error",t};var l=[301,302,303,307,308];E.redirect=function(t,e){if(-1===l.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})},t.Headers=d,t.Request=x,t.Response=E,t.fetch=function(t,e){return new Promise((function(r,o){var i=new x(t,e),a=new XMLHttpRequest;a.onload=function(){var t,e,n={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;r(new E(o,n))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&n&&(a.responseType="blob"),i.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),a.send(void 0===i._bodyInit?null:i._bodyInit)}))},t.fetch.polyfill=!0}function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function p(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function y(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function v(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function g(t){var e=new FileReader,r=v(e);return e.readAsArrayBuffer(t),r}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(n&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(o&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(i&&n&&u(t))this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(t)&&!s(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=m(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var t=y(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var t,e,r,n=y(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=v(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}function x(t,e){var r,n,o=(e=e||{}).body;if(t instanceof x){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),c.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function E(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}}(void 0!==t?t:this)}).call(e,void 0);var r=e.fetch;r.Response=e.Response,r.Request=e.Request,r.Headers=e.Headers;t.exports&&(t.exports=r)},69771:function(t){"use strict";var e="%[a-f0-9]{2}",r=new RegExp(e,"gi"),n=new RegExp("("+e+")+","gi");function o(t,e){try{return decodeURIComponent(t.join(""))}catch(i){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],o(r),o(n))}function i(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(r),n=1;n<e.length;n++)e=(t=o(e,n).join("")).match(r);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var r={"%FE%FF":"��","%FF%FE":"��"},o=n.exec(t);o;){try{r[o[0]]=decodeURIComponent(o[0])}catch(e){var a=i(o[0]);a!==o[0]&&(r[o[0]]=a)}o=n.exec(t)}r["%C2"]="�";for(var u=Object.keys(r),s=0;s<u.length;s++){var c=u[s];t=t.replace(new RegExp(c,"g"),r[c])}return t}(t)}}},33284:function(t,e,r){"use strict";var n=r(51068),o=r(75182);function i(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw i}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var u=r(73951),s=r(69771),c=r(33052);function l(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function f(t,e){return e.encode?e.strict?u(t):encodeURIComponent(t):t}function p(t,e){return e.decode?s(t):t}function h(t){return Array.isArray(t)?t.sort():"object"==typeof t?h(Object.keys(t)).sort((function(t,e){return Number(t)-Number(e)})).map((function(e){return t[e]})):t}function d(t){var e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function y(t){var e=(t=d(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function v(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function g(t,e){l((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);var r=function(t){var e;switch(t.arrayFormat){case"index":return function(t,r,n){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return function(t,r,n){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"comma":case"separator":return function(e,r,n){var o="string"==typeof r&&r.includes(t.arrayFormatSeparator),i="string"==typeof r&&!o&&p(r,t).includes(t.arrayFormatSeparator);r=i?p(r,t):r;var a=o||i?r.split(t.arrayFormatSeparator).map((function(e){return p(e,t)})):null===r?r:p(r,t);n[e]=a};default:return function(t,e,r){void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e),o=Object.create(null);if("string"!=typeof t)return o;if(!(t=t.trim().replace(/^[?#&]/,"")))return o;var a,u=i(t.split("&"));try{for(u.s();!(a=u.n()).done;){var s=a.value,f=c(e.decode?s.replace(/\+/g," "):s,"="),d=n(f,2),y=d[0],g=d[1];g=void 0===g?null:["comma","separator"].includes(e.arrayFormat)?g:p(g,e),r(p(y,e),g,o)}}catch(A){u.e(A)}finally{u.f()}for(var m=0,b=Object.keys(o);m<b.length;m++){var x=b[m],w=o[x];if("object"==typeof w&&null!==w)for(var E=0,O=Object.keys(w);E<O.length;E++){var j=O[E];w[j]=v(w[j],e)}else o[x]=v(w,e)}return!1===e.sort?o:(!0===e.sort?Object.keys(o).sort():Object.keys(o).sort(e.sort)).reduce((function(t,e){var r=o[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=h(r):t[e]=r,t}),Object.create(null))}e.extract=y,e.parse=g,e.stringify=function(t,e){if(!t)return"";l((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);for(var r=function(r){return e.skipNull&&null==t[r]||e.skipEmptyString&&""===t[r]},n=function(t){switch(t.arrayFormat){case"index":return function(e){return function(r,n){var i=r.length;return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:[].concat(o(r),null===n?[[f(e,t),"[",i,"]"].join("")]:[[f(e,t),"[",f(i,t),"]=",f(n,t)].join("")])}};case"bracket":return function(e){return function(r,n){return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:[].concat(o(r),null===n?[[f(e,t),"[]"].join("")]:[[f(e,t),"[]=",f(n,t)].join("")])}};case"comma":case"separator":return function(e){return function(r,n){return null==n||0===n.length?r:0===r.length?[[f(e,t),"=",f(n,t)].join("")]:[[r,f(n,t)].join(t.arrayFormatSeparator)]}};default:return function(e){return function(r,n){return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:[].concat(o(r),null===n?[f(e,t)]:[[f(e,t),"=",f(n,t)].join("")])}}}}(e),i={},a=0,u=Object.keys(t);a<u.length;a++){var s=u[a];r(s)||(i[s]=t[s])}var c=Object.keys(i);return!1!==e.sort&&c.sort(e.sort),c.map((function(r){var o=t[r];return void 0===o?"":null===o?f(r,e):Array.isArray(o)?o.reduce(n(r),[]).join("&"):f(r,e)+"="+f(o,e)})).filter((function(t){return t.length>0})).join("&")},e.parseUrl=function(t,e){e=Object.assign({decode:!0},e);var r=c(t,"#"),o=n(r,2),i=o[0],a=o[1];return Object.assign({url:i.split("?")[0]||"",query:g(y(t),e)},e&&e.parseFragmentIdentifier&&a?{fragmentIdentifier:p(a,e)}:{})},e.stringifyUrl=function(t,r){r=Object.assign({encode:!0,strict:!0},r);var n=d(t.url).split("?")[0]||"",o=e.extract(t.url),i=e.parse(o,{sort:!1}),a=Object.assign(i,t.query),u=e.stringify(a,r);u&&(u="?".concat(u));var s=function(t){var e="",r=t.indexOf("#");return-1!==r&&(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&&(s="#".concat(f(t.fragmentIdentifier,r))),"".concat(n).concat(u).concat(s)}},48436:function(t){var e;e=function(){var t=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","ǈ":"LJ","ǉ":"lj","ǋ":"NJ","ǌ":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}'),e=JSON.parse('{"vi":{"Đ":"D","đ":"d"}}');function r(r,n){if("string"!=typeof r)throw new Error("slugify: string argument expected");var o=e[(n="string"==typeof n?{replacement:n}:n||{}).locale]||{},i=void 0===n.replacement?"-":n.replacement,a=r.split("").reduce((function(e,r){return e+(o[r]||t[r]||r).replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"").trim().replace(new RegExp("[\\s"+i+"]+","g"),i);return n.lower&&(a=a.toLowerCase()),n.strict&&(a=a.replace(new RegExp("[^a-zA-Z0-9"+i+"]","g"),"").replace(new RegExp("[\\s"+i+"]+","g"),i)),a}return r.extend=function(e){for(var r in e)t[r]=e[r]},r},t.exports=e(),t.exports.default=e()},33052:function(t){"use strict";t.exports=function(t,e){if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var r=t.indexOf(e);return-1===r?[t]:[t.slice(0,r),t.slice(r+e.length)]}},73951:function(t){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%".concat(t.charCodeAt(0).toString(16).toUpperCase())}))}},34001:function(t){"use strict";function e(t){if("string"==typeof t)return function(t){return e;function e(e){return Boolean(e&&e.type===t)}}(t);if(null==t)return o;if("object"==typeof t)return("length"in t?n:r)(t);if("function"==typeof t)return t;throw new Error("Expected function, string, or object as test")}function r(t){return function(e){var r;for(r in t)if(e[r]!==t[r])return!1;return!0}}function n(t){var r=function(t){for(var r=[],n=t.length,o=-1;++o<n;)r[o]=e(t[o]);return r}(t),n=r.length;return function(){var t=-1;for(;++t<n;)if(r[t].apply(this,arguments))return!0;return!1}}function o(){return!0}t.exports=e},95781:function(t,e,r){"use strict";var n=r(34001);t.exports=function(t,e,r){var o,i;r||(r=e,e={});return i=null==(i=e.cascade)||i,o=n(r),function t(e,r,n){var a,u,s,c,l;if(o(e,r,n))return null;if(!(a=e.children)||0===a.length)return e;c=0,u=a.length,s=-1;for(;++s<u;)(l=t(a[s],s,e))&&(a[c++]=l);if(i&&0===c)return null;return a.length=c,e}(t,null,null)}},65338:function(t){t.exports=function(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(n,a,r(a),t)}return n}},12825:function(t,e,r){var n=r(24303);t.exports=function(t,e,r,o){return n(t,(function(t,n,i){e(o,t,r(t),i)})),o}},36740:function(t,e,r){var n=r(65338),o=r(12825),i=r(68286),a=r(86152);t.exports=function(t,e){return function(r,u){var s=a(r)?n:o,c=e?e():{};return s(r,t,i(u,2),c)}}},3440:function(t,e,r){var n=r(13940),o=r(36740),i=Object.prototype.hasOwnProperty,a=o((function(t,e,r){i.call(t,r)?t[r].push(e):n(t,r,[e])}));t.exports=a},25047:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(Z){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return T()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:p,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(Z){return{type:"throw",arg:Z}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};b[i]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(S([])));w&&w!==r&&n.call(w,i)&&(b=w);var E=m.prototype=v.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,u){var s=l(t[o],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function A(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,A(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function S(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return g.prototype=E.constructor=m,m.constructor=g,g.displayName=s(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},O(j.prototype),j.prototype[a]=function(){return this},t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new j(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(E),s(E,u,"Generator"),E[i]=function(){return this},E.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(r){Function("r","regeneratorRuntime = r")(e)}},27839:function(t,e,r){"use strict";r.d(e,{X:function(){return p}});var n=r(98283),o=r(88001),i=r(2784),a=r(13980),u=r.n(a);function s(t){var e=t.children,r=t.as,o=void 0===r?"h1":r,a=(0,n.Z)(t,["children","as"]);return(0,i.createElement)(o,Object.assign({},a),e)}s.propTypes={as:u().oneOf(["h1","h2","h3","h4","h5","h6","span"])};var c=function(t){return{margin:0,lineHeight:t.lineHeights.heading}},l={DISPLAY:function(t){return{fontFamily:t.fonts.heading}},UI:function(t){return{fontFamily:t.fonts.headingUI}}},f=function(t,e){return function(r){return[{color:r.tones[e].text},"PRIMARY"===t&&{fontWeight:r.fontWeights.bold},"EMPHASIZED"===t&&{fontWeight:r.fontWeights.extraBold},"LIGHT"===t&&{fontWeight:100,textTransform:"uppercase"}]}};function p(t){var e=t.tone,r=void 0===e?"NEUTRAL":e,i=t.variant,a=void 0===i?"PRIMARY":i,u=t.fontVariant,p=void 0===u?"DISPLAY":u,h=t.as,d=void 0===h?"h2":h,y=t.customCss,v=(0,n.Z)(t,["tone","variant","fontVariant","as","customCss"]);return function(t){var e;void 0!==t&&void 0===e&&(e="warning")}(y),(0,o.tZ)(s,Object.assign({as:d,css:function(t){return[c(t),f(a,r)(t),l[p](t),y]}},v))}},64109:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return ut}});var n=r(2784),o=r(77162),i=r.n(o);function a(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(c){return void r(c)}u.done?e(s):Promise.resolve(s).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){a(i,n,o,u,s,"next",t)}function s(t){a(i,n,o,u,s,"throw",t)}u(void 0)}))}}var s=r(3440),c=r.n(s),l=r(82394),f=r(24454),p=n.createContext({}),h=p.Provider,d=n.createContext([]),y=d.Provider,v=r(98708),g=r(17853),m=r(95917),b=r.n(m),x=r(57255),w=r(27839),E=r(21103),O=r(80623);var j=function(){return(0,l.tZ)("div",{sx:{marginTop:8,marginBottom:8,background:function(t){return t.tones.BRAND.superLight},border:function(t){return"1px solid "+t.tones.BRAND.light},padding:4}},(0,l.tZ)(f.RQ.p,null,"Thank you for trying the experimental version of Gatsby Recipes! 🤗"),(0,l.tZ)(f.RQ.p,{sx:{margin:0}},"Please ask questions, share your recipes, report bugs, and subscribe for updates in our umbrella issue at"," ",(0,l.tZ)(O.C,{href:"https://github.com/gatsbyjs/gatsby/issues/22991"},"https://github.com/gatsbyjs/gatsby/issues/22991")))},A=r(98283),R=r(18893),P=r.n(R),k=(0,r(51309).g)();P().setColors({red:k.tones.DANGER.medium.slice(1),green:k.tones.SUCCESS.medium.slice(1),yellow:k.tones.WARNING.medium.slice(1)});var S=function(t){var e,r=t.resourcePlan,n=(0,A.Z)(t,["resourcePlan"]);return(0,l.tZ)(f.RQ.pre,Object.assign({},n,{sx:{background:function(t){return t.tones.BRAND.superLight},borderRadius:2,padding:4},dangerouslySetInnerHTML:{__html:P()((e=r.diff,e.replace(/</g,"&lt;")))}}))},T=function(t){var e=t.resourcePlan,r=(0,A.Z)(t,["resourcePlan"]);return e.diff?"File"===e.resourceName?(0,l.tZ)("div",{sx:{background:function(t){return t.tones.BRAND.superLight},border:function(t){return"1px solid "+t.tones.BRAND.lighter},borderRadius:2}},(0,l.tZ)(w.X,{as:"h6",sx:{px:4,py:3,fontWeight:"normal",borderBottom:function(t){return"1px solid "+t.tones.BRAND.lighter}}},e.resourceDefinitions.path),(0,l.tZ)(S,{resourcePlan:e,sx:{borderTopLeftRadius:0,borderTopRightRadius:0}})):(0,l.tZ)(S,Object.assign({},r,{resourcePlan:e,sx:{border:function(t){return"1px solid "+t.tones.BRAND.lighter}}})):null},Z=r(95781),C=r.n(Z),_=r(48436),I=r.n(_),N={Config:function(){return null},GatsbyPlugin:function(){return null},NPMPackageJson:function(){return null},NPMPackage:function(){return null},File:function(){return null},Input:function(){return null},Directory:function(){return null},GatsbyShadowFile:function(){return null},NPMScript:function(){return null},RecipeIntroduction:function(t){return n.createElement("div",null,t.children)},RecipeStep:function(t){return n.createElement("div",null,t.children)},ContentfulSpace:function(){return null},ContentfulEnvironment:function(){return null},ContentfulType:function(){return null}},L=function(){return function(t){return C()(t,"export",(function(){return!0})),t}},U=function(t){return t.describe||(t.describe=""),encodeURIComponent(t.resourceName+"-"+I()(t.describe))},B=function(t,e){console.log(t,e)},F=function t(e){var r,n=e.resourcePlan;e.isLastPlan;return(0,l.tZ)("div",{id:U(n),sx:{}},(0,l.tZ)("div",null,(0,l.tZ)(f.RQ.p,{sx:{mb:n.diff?6:0}},(0,l.tZ)(f.RQ.em,null,n.resourceName)," ","—"," ",n.describe)),(0,l.tZ)(T,{resourcePlan:n}),null==n||null===(r=n.resourceChildren)||void 0===r?void 0:r.map((function(e){return(0,l.tZ)(t,{key:e._uuid,resourcePlan:e})})))},D=function(t){var e,r,n,o=t.sendEvent,i=t.state,a=t.step,u=t.i,s=null===(e=i.context)||void 0===e||null===(r=e.plan)||void 0===r?void 0:r.filter((function(t){return parseInt(t._stepMetadata.step,10)===u+1}));return(0,l.tZ)("div",{key:"step-"+u,sx:{position:"relative",borderRadius:2,border:function(t){return"1px solid "+t.tones.BRAND.light},marginBottom:7}},(0,l.tZ)("div",{sx:{position:"absolute",backgroundColor:"white",color:function(t){return t.tones.BRAND.dark},right:"6px",top:"6px",border:function(t){return"1px solid "+t.tones.BRAND.light},borderRadius:9999,height:30,width:30,display:"flex",alignContent:"center",justifyContent:"center",lineHeight:"28px"}},u+1),(0,l.tZ)("div",{sx:{display:"flex","& > *":{marginY:0},borderTopLeftRadius:2,borderTopRightRadius:2,borderBottom:function(t){return"1px solid "+t.tones.BRAND.light},background:function(t){return t.tones.BRAND.lighter},padding:4}},(0,l.tZ)("div",{sx:{"p:last-child":{margin:0}}},(0,l.tZ)(E.StepRenderer,{key:"DOC",components:N,scope:{sendEvent:o},remarkPlugins:[L]},(null===(n=i.context.exports)||void 0===n?void 0:n.join("\n"))+"\n\n"+a))),(null==s?void 0:s.length)>0&&(0,l.tZ)("div",null,(0,l.tZ)("div",{sx:{padding:6}},(0,l.tZ)(w.X,{sx:{mb:4,mt:0,color:function(t){return t.tones.NEUTRAL.darker},fontWeight:500},as:"h3"},"Proposed changes"),s.map((function(t,e){return(0,l.tZ)(F,{key:"res-plan-"+e,resourcePlan:t,isLastPlan:e===s.length-1})})))))},G=r(73182),M=r(18737),Y=r(86053),H=r(32521);var q,z,W,$,J,X=function(t){return(0,n.createElement)(H.Z,Object.assign({},t,{iconName:"SuccessIcon",applyColorToStroke:!1}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.5228-4.4772 10-10 10-5.52285 0-10-4.4772-10-10C2 6.47715 6.47715 2 12 2c5.5228 0 10 4.47715 10 10zm-11.3557 4.2175c-.2986-.0436-.5802-.2059-.76709-.4763l-2.48775-3.3963c-.25012-.362-.18368-.8548.15337-1.1376.33705-.2829.83396-.2627 1.14701.0465l1.76846 1.8456c.1645.1481.3187.207.5228.0394l4.7666-5.19716c.2935-.31996.7868-.35219 1.1194-.07311.3326.27907.3866.77052.1224 1.11509L11.788 15.7688c-.2786.3633-.724.5199-1.1437.4487z"}))},Q=function(t){var e=t.state,r=t.resource,o=(0,l.tZ)(M.qt,{sx:{height:"10px",width:"15px",display:"inline-block"}}),i=r.describe;if("applyingPlan"===e.value&&r.isDone)o=(0,l.tZ)(X,null);else if("applyingPlan"===e.value){var a=(0,Y.F4)(q||(q=(0,G.Z)(["\n    0% {\n      transform: rotate(0);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  "])));o=(0,l.tZ)(M.la_,{sx:{display:"inline-block",animation:a+" 1s linear infinite",height:"15px",width:"15px",top:"3px",position:"relative"}}),i=r.describe}else"done"===e.value&&(o=(0,l.tZ)(X,{height:"15px",width:"15px"}),i=r._message);return(0,l.tZ)(n.Fragment,null,o," ",(0,l.tZ)(O.C,{href:"#"+U(r),onClick:function(t){t.preventDefault(),document.getElementById(t.currentTarget.hash.slice(1)).scrollIntoView({behavior:"smooth",block:"start"})}},i))},K=!1,V=function(){var t=u(i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b()(J+"/session");case 2:return e=t.sent,t.next=5,e.text();case 5:r=t.sent,z?r!==z&&window.location.reload():z=r;case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),tt=function(){return(0,l.tZ)("span",null,"Loading...")};function et(t){var e=t.children;return(0,l.tZ)("div",{sx:{maxWidth:1e3,margin:"0 auto"}},e)}var rt=function(t){return"done"===t.value?"Refresh State":"Install Recipe"},nt=function t(e){var r=e.resourceChildren,n=e.state;return r&&r.length?(0,l.tZ)(f.RQ.ul,{sx:{ml:0,mt:0,pl:0}},r.map((function(e){return(0,l.tZ)(f.RQ.li,{sx:{listStyleType:"none"},key:e._uuid},(0,l.tZ)(Q,{state:n,resource:e}),(0,l.tZ)(t,{state:n,resourceChildren:e.resourceChildren}))}))):null},ot=function(t){var e=t.recipe,r=(0,n.useState)(null),o=r[0],a=r[1];n.useEffect((function(){b()("/___services").then((function(t){return t.json()})).then((function(t){if(t.metadata&&($=t.metadata.sitePath),t.recipesgraphqlserver){J="http://localhost:"+t.recipesgraphqlserver.port;var r=(0,v.M)({port:t.recipesgraphqlserver.port,connectionCallback:(n=u(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:V(),A(e);case 2:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})});a(r)}var n}))}),[]);var s=(0,g.mU)({query:"\n          subscription {\n            operation {\n              state\n            }\n          }\n        "},(function(t,e){return e}))[0],p=(0,g.Db)("\n        mutation ($recipePath: String!, $projectRoot: String!) {\n          createOperation(recipePath: $recipePath, projectRoot: $projectRoot)\n        }\n      "),d=(p[0],p[1]),m=(0,g.Db)("\n        mutation($event: String!, $input: String) {\n          sendEvent(event: $event, input: $input)\n        }\n      "),O=(m[0],m[1]);W=function(t){var e=t.event,r=t.input;O(r?{event:e,input:JSON.stringify(r)}:{event:e})};var A=function(){var t=u(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(B("createOperation"),K){t.next=12;break}return K=!0,t.prev=3,t.next=6,d({recipePath:e,projectRoot:$});case 6:t.next=12;break;case 8:t.prev=8,t.t0=t.catch(3),B("error creating operation",t.t0),K=!1;case 12:V();case 13:case"end":return t.stop()}}),t,null,[[3,8]])})));return function(e){return t.apply(this,arguments)}}();var R=s.data&&JSON.parse(s.data.operation.state);if(!R)return(0,l.tZ)(et,null,(0,l.tZ)(tt,null)," ",e);var P="done"===R.value;"doneError"===R.value&&console.log("doneError state",R),B("state",R),B("plan",R.context.plan),B("stepResources",R.context.stepResources),P&&process.nextTick((function(){try{o.close()}catch(t){}B(e+" finished successfully")}));var k=R.context,S=k.plan,T=k.stepsAsJS,Z=k.exports,C=c()(S,(function(t){return t.resourceName}));return(0,l.tZ)(n.Fragment,null,(0,l.tZ)(f.RQ.p,null," "),(0,l.tZ)(y,{value:(null==S?void 0:S.filter((function(t){var e;return null===(e=t.resourceDefinitions)||void 0===e?void 0:e._key})))||[]},(0,l.tZ)(h,{value:{}},(0,l.tZ)(et,null,(0,l.tZ)(j,null),(0,l.tZ)("div",{sx:{mb:8,display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},(0,l.tZ)("div",{sx:{"*:last-child":{mb:0}}},(0,l.tZ)(E.StepRenderer,{components:N,scope:{sendEvent:W},remarkPlugins:[L]},(null==Z?void 0:Z.join("\n"))+"\n\n"+T[0])),(0,l.tZ)(x.z,{onClick:function(){return W({event:"CONTINUE"})},loading:"applyingPlan"===R.value,loadingLabel:"Installing",sx:{width:"140px",ml:6}},(0,l.tZ)(rt,{state:R}))),(0,l.tZ)("div",{sx:{marginBottom:14}},(0,l.tZ)(w.X,{sx:{marginBottom:6}},null==S?void 0:S.length," ","Changes"),Object.entries(C).map((function(t){var e=t[0],r=t[1];return(0,l.tZ)("div",{key:"key-"+e},(0,l.tZ)(w.X,{as:"h3",sx:{mb:3,fontWeight:400,fontStyle:"italic"}},e),(0,l.tZ)(f.RQ.ul,{sx:{pl:3,marginTop:0,mb:5}},r.filter((function(t){return"Input"!==t.resourceName})).map((function(t,r){return(0,l.tZ)(f.RQ.li,{sx:{listStyleType:"none"},key:e+"-plan-"+r},(0,l.tZ)(Q,{state:R,resource:t}),(0,l.tZ)(nt,{state:R,resourceChildren:t.resourceChildren}))}))))}))),(0,l.tZ)(w.X,{sx:{mb:6}},T.length-1," Steps"),T.slice(1).map((function(t,e){return(0,l.tZ)(D,{sendEvent:W,state:R,step:t,key:"step-"+e,i:e})}))))))},it=function(t){var e=t.recipe;return(0,l.tZ)(ot,{recipe:e})},at=r(33284);function ut(t){var e=t.location,r=at.parse(e.search);return n.createElement(it,{recipe:r.name})}},21103:function(t,e,r){var n=r(13106);t.exports=n},13106:function(t,e,r){"use strict";r.r(e),r.d(e,{StepRenderer:function(){return R}});var n=r(74938);function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function i(t,e,r){return(i=o()?Reflect.construct:function(t,e,r){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return r&&(0,n.Z)(i,r.prototype),i}).apply(null,arguments)}var a=r(62502),u=r(98283),s=r(2784);function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var h=s.createContext({}),d=function(t){var e=s.useContext(h);return"function"==typeof t?t(e):f(f({},e),t)},y=function(t){var e=t.components,r=t.children,n=t.disableParentContext,o=d(e);return n&&(o=e),s.createElement(h.Provider,{value:o},r)},v={inlineCode:"code",wrapper:function(t){var e=t.children;return s.createElement(s.Fragment,{},e)}},g=s.forwardRef((function(t,e){var r=t.components,n=t.mdxType,o=t.originalType,i=t.parentName,a=p(t,["components","mdxType","originalType","parentName"]),u=d(r),c=n,l=u["".concat(i,".").concat(c)]||u[c]||v[c]||o;return r?s.createElement(l,f(f({ref:e},a),{},{components:r})):s.createElement(l,f({ref:e},a))}));function m(t,e){var r=arguments,n=e&&e.mdxType;if("string"==typeof t||n){var o=r.length,i=new Array(o);i[0]=g;var a={};for(var u in e)hasOwnProperty.call(e,u)&&(a[u]=e[u]);a.originalType=t,a.mdxType="string"==typeof t?t:n,i[1]=a;for(var c=2;c<o;c++)i[c]=r[c];return s.createElement.apply(null,i)}return s.createElement.apply(null,r)}function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}g.displayName="MDXCreateElement";var x=s.createContext({}),w=function(t){var e=((0,s.useContext)(x)||{})[t];return null==e?void 0:e.value},E=function(t){var e=t.type,r=void 0===e?"text":e,n=t.label,o=t.key,i=w(void 0===o?"123":o)||"",a=(0,s.useState)(i),u=a[0],c=a[1];return[function(t){return s.createElement("div",null,s.createElement("label",null,n),s.createElement("input",b({},t,{type:r,value:u,onChange:function(t){return c(t.target.value)}})))},u]};x.Provider;var O=s.createContext([]),j=function(t){return(0,s.useContext)(O).find((function(e){return e.resourceDefinitions._key===t}))||{}};O.Provider;var A=function(t){return{contentful:{accessToken:{}.CONTENTFUL_ACCESS_TOKEN}}[t]},R=function(t){var e,r=t.children,n=t.scope,o=t.components,c=(0,u.Z)(t,["children","scope","components"]),l=Object.assign({mdx:m,MDXProvider:y,React:s},o,{components:o,props:c,useInput:E,useInputByKey:w,useResource:j,useProvider:A},n),f=Object.keys(l),p=Object.values(l);return i(Function,(0,a.Z)(f).concat([(e=r,e+"\n\n  return React.createElement(MDXProvider, { components },\n    React.createElement(MDXContent, props)\n  );")])).apply(void 0,(0,a.Z)(p))};console.log(R)}}]);
  //# sourceMappingURL=component---src-pages-recipe-js-8f8adf2df036716aba19.js.map