this.wp=this.wp||{},this.wp.listReusableBlocks=function(t){vare={};functionn(r){if(e[r])returne[r].exports;varo=e[r]={i:r,l:!1,exports:{}};returnt[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}returnn.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)returnt;if(4&e&&"object"==typeoft&&t&&t.__esModule)returnt;varr=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeoft)for(varoint)n.d(r,o,function(e){returnt[e]}.bind(null,o));returnr},n.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returnn.d(e,"a",e),e},n.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="SdGz")}({"1OyB":function(t,e,n){"use strict";functionr(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}n.d(e,"a",(function(){returnr}))},GRId:function(t,e){t.exports=window.wp.element},"HaE+":function(t,e,n){"use strict";functionr(t,e,n,r,o,i,c){try{vara=t[i](c),u=a.value}catch(t){returnvoidn(t)}a.done?e(u):Promise.resolve(u).then(r,o)}functiono(t){returnfunction(){vare=this,n=arguments;returnnewPromise((function(o,i){varc=t.apply(e,n);functiona(t){r(c,o,i,a,u,"next",t)}functionu(t){r(c,o,i,a,u,"throw",t)}a(void0)}))}}n.d(e,"a",(function(){returno}))},JX7q:function(t,e,n){"use strict";functionr(t){if(void0===t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returnt}n.d(e,"a",(function(){returnr}))},Ji7U:function(t,e,n){"use strict";n.d(e,"a",(function(){returno}));varr=n("s4An");functiono(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Object(r.a)(t,e)}},K9lf:function(t,e){t.exports=window.wp.compose},SdGz:function(t,e,n){"use strict";n.r(e);varr=n("GRId"),o=n("l3Sj"),i=n("dvlR"),c=n.n(i),a=n("HaE+"),u=n("YLtl"),s=n("ywyh"),l=n.n(s);functionf(t,e,n){varr=newwindow.Blob([e],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(r,t);else{varo=document.createElement("a");o.href=URL.createObjectURL(r),o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}}functionp(t){vare=newwindow.FileReader;returnnewPromise((function(n){e.onload=function(){n(e.result)},e.readAsText(t)}))}functiond(){return(d=Object(a.a)(c.a.mark((functiont(e){varn,r,o,i,a;returnc.a.wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,l()({path:"/wp/v2/types/wp_block"});case2:returnn=t.sent,t.next=5,l()({path:"/wp/v2/".concat(n.rest_base,"/").concat(e,"?context=edit")});case5:r=t.sent,o=r.title.raw,i=r.content.raw,a=JSON.stringify({__file:"wp_block",title:o,content:i},null,2),f(Object(u.kebabCase)(o)+".json",a,"application/json");case11:case"end":returnt.stop()}}),t)})))).apply(this,arguments)}varb=function(t){returnd.apply(this,arguments)},m=n("tI+e"),v=n("1OyB"),y=n("vuIU"),w=n("JX7q"),O=n("Ji7U"),h=n("md7G"),j=n("foSv"),S=n("K9lf");function_(){return(_=Object(a.a)(c.a.mark((functiont(e){varn,r,o,i;returnc.a.wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,p(e);case2:n=t.sent,t.prev=3,r=JSON.parse(n),t.next=10;break;case7:throwt.prev=7,t.t0=t.catch(3),newError("Invalid JSON file");case10:if("wp_block"===r.__file&&r.title&&r.content&&Object(u.isString)(r.title)&&Object(u.isString)(r.content)){t.next=12;break}thrownewError("Invalid Reusable Block JSON file");case12:returnt.next=14,l()({path:"/wp/v2/types/wp_block"});case14:returno=t.sent,t.next=17,l()({path:"/wp/v2/".concat(o.rest_base),data:{title:r.title,content:r.content,status:"publish"},method:"POST"});case17:returni=t.sent,t.abrupt("return",i);case19:ca