!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(t){for(var n,r,i=t[0],o=t[1],c=0,s=[];c=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(74);var p=/[&<>"]/,h=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function m(e){return d[e]}var f=/[.?*+^$[\]\\(){}|-]/g;var b=n(57);t.lib={},t.lib.mdurl=n(75),t.lib.ucmicro=n(123),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=a,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(s,function(e,t,n){return t||function(e,t){var n=0;return a(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?o(n):e}(e,n)})},t.isValidEntityCode=i,t.fromCodePoint=o,t.escapeHtml=function(e){return p.test(e)?e.replace(h,m):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return b.test(e)},t.escapeRE=function(e){return e.replace(f,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(13),a=n.n(r),i=n(16),o=n(84),c=n(41),s=o.beta||[];function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(c.a)(e),o=r.available;r.unavailableReason;if(!o)return!1;var l=Object(i.registerBlockType)("jetpack/".concat(e),s.includes(e)?a()({},t,{title:"".concat(t.title," (beta)")}):t);return n.forEach(function(e){return Object(i.registerBlockType)("jetpack/".concat(e.name),e.settings)}),l}},function(e,t,n){"use strict";var r=n(0),a=n(2);t.a=function(e){return Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a}),n.d(t,"h",function(){return i}),n.d(t,"i",function(){return o}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"g",function(){return p});var r=["image"],a=4,i=20,o=2e3,c="circle",s="columns",l="rectangular",u="square",p=[{isDefault:!0,name:l},{name:c},{name:u},{name:s}]},function(e,t,n){var r=n(46),a=n(47),i=n(48);e.exports=function(e,t){return r(e)||a(e,t)||i()}},function(e,t,n){var r=n(61),a=n(62),i=n(63);e.exports=function(e){return r(e)||a(e)||i()}},function(e,t){e.exports=wp.blob},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),a=n(1),i={name:"map",prefix:"jetpack",title:Object(a.__)("Map","jetpack"),icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z"})),category:"jetpack",keywords:[Object(a._x)("map","block search term","jetpack"),Object(a._x)("location","block search term","jetpack"),Object(a._x)("navigation","block search term","jetpack")],description:Object(a.__)("Add an interactive map showing one or more locations.","jetpack"),attributes:{align:{type:"string"},points:{type:"array",default:[]},mapStyle:{type:"string",default:"default"},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},markerColor:{type:"string",default:"red"}},supports:{html:!1},mapStyleOptions:[{value:"default",label:Object(a.__)("Basic","jetpack")},{value:"black_and_white",label:Object(a.__)("Black and white","jetpack")},{value:"satellite",label:Object(a.__)("Satellite","jetpack")},{value:"terrain",label:Object(a.__)("Terrain","jetpack")}],validAlignments:["center","wide","full"],markerIcon:Object(r.createElement)("svg",{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},Object(r.createElement)("g",{id:"outline-add_location-24px",transform:"translate(-5 -2)"},Object(r.createElement)("polygon",{id:"Shape",points:"0 0 24 0 24 24 0 24"}),Object(r.createElement)("path",{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"}))))}},function(e,t){e.exports=wp.apiFetch},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t0},e.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new r,w=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=p.getInstance(),r=new O(t,n,this);E.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){w.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}});var C=void 0!==i.ResizeObserver?i.ResizeObserver:w;t.a=C},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(40),a=n(41);function i(e,t){var n=Object(a.a)(e),i=n.available;n.unavailableReason;return!!i&&Object(r.registerPlugin)("jetpack-".concat(e),t)}},function(e,t,n){"use strict";var r=n(187),a=n(189);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=j,t.resolve=function(e,t){return j(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?j(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=j(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var o=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),p=["%","/","?",";","#"].concat(u),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(190);function j(e,t,n){if(e&&a.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),c=-1!==i&&i127?z+="x":z+=D[F];if(!z.match(d)){var P=M.slice(0,x),I=M.slice(x+1),L=D.match(m);L&&(P.push(L[1]),I.unshift(L[2])),I.length&&(j="/"+I.join(".")+j),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var R=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+R,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==j[0]&&(j="/"+j))}if(!f[_])for(x=0,T=u.length;x0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!O.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=O.slice(-1)[0],C=(n.host||e.host||O.length>1)&&("."===w||".."===w)||""===w,x=0,S=O.length;S>=0;S--)"."===(w=O[S])?O.splice(S,1):".."===w?(O.splice(S,1),x++):x&&(O.splice(S,1),x--);if(!y&&!_)for(;x--;x)O.unshift("..");!y||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),C&&"/"!==O.join("/").substr(-1)&&O.push("");var A,M=""===O[0]||O[0]&&"/"===O[0].charAt(0);E&&(n.hostname=n.host=M?"":O.length?O.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(y=y||n.host&&O.length)&&!M&&O.unshift(""),O.length?n.pathname=O.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){var r=n(96);e.exports=function(e,t){if(null==e)return{};var n,a,i=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";var r=n(3),a=n.n(r),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(10),m=n.n(d),f=n(0),b=n(1),g=n(12),v=n.n(g),j=n(15),k=n(2),y=n(6),_=n(5),O=window.getComputedStyle,E=Object(k.withFallbackStyles)(function(e,t){var n,r,a,i,o=t.textButtonColor,c=t.backgroundButtonColor,s=c&&c.color,l=o&&o.color;return!l&&e&&(n=e.querySelector('[contenteditable="true"]')),r=e.querySelector(".wp-block-button__link")?e.querySelector(".wp-block-button__link"):e,e&&(a=O(r).backgroundColor),n&&(i=O(n).color),{fallbackBackgroundColor:s||a,fallbackTextColor:l||i}}),w=function(e){function t(){return o()(this,t),u()(this,h()(t).apply(this,arguments))}return m()(t,e),s()(t,[{key:"componentDidUpdate",value:function(e){if(!Object(_.isEqual)(this.props.textButtonColor,e.textButtonColor)||!Object(_.isEqual)(this.props.backgroundButtonColor,e.backgroundButtonColor)){var t=this.getButtonClasses();this.props.setAttributes({submitButtonClasses:t})}}},{key:"getButtonClasses",value:function(){var e,t=this.props,n=t.textButtonColor,r=t.backgroundButtonColor,i=Object(_.get)(n,"class"),o=Object(_.get)(r,"class");return v()("wp-block-button__link",(e={"has-text-color":n},a()(e,i,i),a()(e,"has-background",r),a()(e,o,o),e))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,a=e.setAttributes,i=e.setBackgroundButtonColor,o=e.setTextButtonColor,c=t.customBackgroundButtonColor||n,s=t.customTextButtonColor||r,l={border:"none",backgroundColor:c,color:s},u=this.getButtonClasses();return Object(f.createElement)(f.Fragment,null,Object(f.createElement)("div",{className:"wp-block-button jetpack-submit-button"},Object(f.createElement)(y.RichText,{placeholder:Object(b.__)("Add text…","jetpack"),value:t.submitButtonText,onChange:function(e){return a({submitButtonText:e})},className:u,style:l,keepPlaceholderOnFocus:!0,formattingControls:[]})),Object(f.createElement)(y.InspectorControls,null,Object(f.createElement)(y.PanelColorSettings,{title:Object(b.__)("Button Color Settings","jetpack"),colorSettings:[{value:c,onChange:function(e){i(e),a({customBackgroundButtonColor:e})},label:Object(b.__)("Background Color","jetpack")},{value:s,onChange:function(e){o(e),a({customTextButtonColor:e})},label:Object(b.__)("Text Color","jetpack")}]}),Object(f.createElement)(y.ContrastChecker,{textColor:s,backgroundColor:c})))}}]),t}(f.Component);t.a=Object(j.compose)([Object(y.withColors)("backgroundButtonColor",{textButtonColor:"color"}),E])(w)},function(e,t,n){"use strict";var r=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!r.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some(function(e){return e.length>63})}},function(e,t){function n(e,t,n,r,a,i,o){try{var c=e[i](o),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(a,i){var o=e.apply(t,r);function c(e){n(o,a,i,c,s,"next",e)}function s(e){n(o,a,i,c,s,"throw",e)}c(void 0)})}}},,function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),a=n(2),i=n(42),o=n(40),c=(n(103),n(44)),s=Object(a.createSlotFill)("JetpackPluginSidebar"),l=s.Fill,u=s.Slot;Object(o.registerPlugin)("jetpack-sidebar",{render:function(){return Object(r.createElement)(u,null,function(e){return e.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.PluginSidebarMoreMenuItem,{target:"jetpack",icon:Object(r.createElement)(c.a,null)},"Jetpack"),Object(r.createElement)(i.PluginSidebar,{name:"jetpack",title:"Jetpack",icon:Object(r.createElement)(c.a,null)},e)):null})}})},function(e,t){e.exports=wp.plugins},function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(5),o="Jetpack_Editor_Initial_State";function c(e){var t=Object(i.get)("object"==typeof window?window:null,[o],null),n=Object(i.get)(t,["available_blocks",e,"available"],!1),r=Object(i.get)(t,["available_blocks",e,"unavailable_reason"],"unknown");return a()({available:n},!n&&{unavailableReason:r})}n.d(t,"a",function(){return c})},function(e,t){e.exports=wp.editPost},function(e,t){e.exports=React},function(e,t,n){"use strict";var r=n(0),a=n(2),i=n(12),o=n.n(i);t.a=function(e){var t=e.size,n=void 0===t?24:t,i=e.className;return Object(r.createElement)(a.SVG,{className:o()("jetpack-logo",i),width:n,height:n,viewBox:"0 0 32 32"},Object(r.createElement)(a.Path,{className:"jetpack-logo__icon-circle",fill:"#00be28",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),Object(r.createElement)(a.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"15,19 7,19 15,3 "}),Object(r.createElement)(a.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"17,29 17,13 25,13 "}))}},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return s});var r=n(21),a=n.n(r),i=n(20);function o(e,t){var n=(t-e.reduce(function(e,t){return e+t},0))/e.length;return e.map(function(e){return e+n})}function c(e,t){!function(e,t,n){var r=a()(t,2),c=r[0],s=r[1],d=1/c*(n-i.b*(e.childElementCount-1)-s);!function(e,t){var n=t.rawHeight,r=t.rowWidth,a=l(e),c=a.map(function(e){return(n-i.b*(e.childElementCount-1))*p(e)[0]}),s=o(c,r);a.forEach(function(e,t){var r=c[t],a=s[t];!function(e,t){var n=t.colHeight,r=t.width,a=t.rawWidth,i=o(u(e).map(function(e){return a/h(e)}),n);Array.from(e.children).forEach(function(e,t){var n=i[t];e.setAttribute("style","height:".concat(n,"px;width:").concat(r,"px;"))})}(e,{colHeight:n-i.b*(e.childElementCount-1),width:a,rawWidth:r})})}(e,{rawHeight:d,rowWidth:n-i.b*(e.childElementCount-1)})}(e,function(e){return l(e).map(p).reduce(function(e,t){var n=a()(e,2),r=n[0],i=n[1],o=a()(t,2),c=o[0],s=o[1];return[r+c,i+s]},[0,0])}(e),t)}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function u(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function p(e){var t=u(e),n=t.length,r=1/t.map(h).reduce(function(e,t){return e+1/t},0);return[r,r*n||1]}function h(e){var t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(s){a=!0,i=s}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=wp.date},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n0&&void 0!==p[0]?p[0]:".swiper-container",r=p.length>1&&void 0!==p[1]?p[1]:{},i=p.length>2&&void 0!==p[2]?p[2]:{},o={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,touchStartPreventDefault:!1,on:Object(c.mapValues)(i,function(e){return function(){e(this)}})},e.next=6,Promise.all([n.e(11).then(n.t.bind(null,226,7)),n.e(11).then(n.t.bind(null,227,7))]);case 6:return s=e.sent,l=a()(s,1),u=l[0].default,e.abrupt("return",new u(t,Object(c.merge)({},o,r)));case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)}},function(e,t){e.exports=wp.escapeHtml},function(e,t,n){"use strict";var r=n(21),a=n.n(r),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(4),m=n.n(d),f=n(10),b=n.n(f),g=n(3),v=n.n(g),j=n(0),k=n(1),y=n(5),_=n(2),O=(n(70),function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i'}},{key:"render",value:function(){return null}}]),t}(j.Component));O.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:function(){}};var E=O,w=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i1)return o.fitBounds(p,{padding:{top:40,bottom:40,left:20,right:20}}),e.setState({boundsSetProgrammatically:!0}),void o.removeControl(l);if(o.setCenter(p.getCenter()),u){o.setZoom(12),a(12)}else o.setZoom(parseInt(n,10));o.addControl(l),e.setState({boundsSetProgrammatically:!1})}}),v()(m()(e),"scriptsLoaded",function(){var t=e.props,n=t.mapCenter,r=t.points;e.setState({loaded:!0}),r.length,e.initMap(n)}),e.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},e.mapRef=Object(j.createRef)(),e.debouncedSizeMap=Object(y.debounce)(e.sizeMap,250),e}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.points,r=t.admin,a=t.children,i=t.markerColor,o=this.state,c=o.map,s=o.activeMarker,l=o.mapboxgl,u=this.onMarkerClick,p=this.deleteActiveMarker,h=this.updateActiveMarker,d=Object(y.get)(s,"props.point")||{},m=d.title,f=d.caption,b=j.Children.map(a,function(e){if("AddPoint"===Object(y.get)(e,"props.tagName"))return e}),g=c&&l&&n.map(function(e,t){return Object(j.createElement)(E,{key:t,point:e,index:t,map:c,mapboxgl:l,markerColor:i,onClick:u})}),v=l&&Object(j.createElement)(C,{activeMarker:s,map:c,mapboxgl:l,unsetActiveMarker:function(){return e.setState({activeMarker:null})}},s&&r&&Object(j.createElement)(j.Fragment,null,Object(j.createElement)(_.TextControl,{label:Object(k.__)("Marker Title","jetpack"),value:m,onChange:function(e){return h({title:e})}}),Object(j.createElement)(_.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:Object(k.__)("Marker Caption","jetpack"),value:f,rows:"2",tag:"textarea",onChange:function(e){return h({caption:e})}}),Object(j.createElement)(_.Button,{onClick:p,className:"wp-block-jetpack-map__delete-btn"},Object(j.createElement)(_.Dashicon,{icon:"trash",size:"15"})," ",Object(k.__)("Delete Marker","jetpack"))),s&&!r&&Object(j.createElement)(j.Fragment,null,Object(j.createElement)("h3",null,m),Object(j.createElement)("p",null,f)));return Object(j.createElement)(j.Fragment,null,Object(j.createElement)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef},g),v,b)}},{key:"componentDidMount",value:function(){this.props.apiKey&&this.loadMapLibraries()}},{key:"componentWillUnmount",value:function(){this.debouncedSizeMap.cancel()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.apiKey,r=t.children,a=t.points,i=t.mapStyle,o=t.mapDetails,c=this.state.map;n&&n.length>0&&n!==e.apiKey&&this.loadMapLibraries(),r!==e.children&&!1!==r&&this.clearCurrentMarker(),a!==e.points&&this.setBoundsByMarkers(),a.length!==e.points.length&&this.clearCurrentMarker(),i===e.mapStyle&&o===e.mapDetails||c.setStyle(this.getMapStyle())}},{key:"getMapStyle",value:function(){var e=this.props;return function(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}(e.mapStyle,e.mapDetails)}},{key:"getMapType",value:function(){switch(this.props.mapStyle){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";case"black_and_white":default:return"ROADMAP"}}},{key:"loadMapLibraries",value:function(){var e=this,t=this.props.apiKey;Promise.all([n.e(10).then(n.t.bind(null,275,7)),n.e(10).then(n.t.bind(null,276,7))]).then(function(n){var r=a()(n,1)[0].default;r.accessToken=t,e.setState({mapboxgl:r},e.scriptsLoaded)})}},{key:"initMap",value:function(e){var t=this,n=this.state.mapboxgl,r=this.props,a=r.zoom,i=r.onMapLoaded,o=r.onError,c=r.admin,s=null;try{s=new n.Map({container:this.mapRef.current,style:this.getMapStyle(),center:this.googlePoint2Mapbox(e),zoom:parseInt(a,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(u){return void o("mapbox_error",u.message)}s.on("error",function(e){o("mapbox_error",e.error.message)});var l=new n.NavigationControl({showCompass:!1,showZoom:!0});s.on("zoomend",function(){t.props.onSetZoom(s.getZoom())}),s.getCanvas().addEventListener("click",this.onMapClick),this.setState({map:s,zoomControl:l},function(){t.debouncedSizeMap(),s.addControl(l),c||s.addControl(new n.FullscreenControl),t.mapRef.current.addEventListener("alignmentChanged",t.debouncedSizeMap),s.resize(),i(),t.setState({loaded:!0}),window.addEventListener("resize",t.debouncedSizeMap)})}},{key:"googlePoint2Mapbox",value:function(e){return[e.longitude?e.longitude:0,e.latitude?e.latitude:0]}}]),t}(j.Component);x.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:function(){},onMapLoaded:function(){},onMarkerClick:function(){},onError:function(){},markerColor:"red",apiKey:null,mapCenter:{}};t.a=x},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function a(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",a="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+r+"|"+a+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),o=new RegExp("^(?:"+r+"|"+a+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=o},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,a,i,o=e.pos,c=e.src.charCodeAt(o);if(t)return!1;if(126!==c)return!1;if(a=(r=e.scanDelims(e.pos,!0)).length,i=String.fromCharCode(c),a<2)return!1;for(a%2&&(e.push("text","",0).content=i,a--),n=0;n=0;t--)95!==(n=c[t]).marker&&42!==n.marker||-1!==n.end&&(r=c[n.end],o=t>0&&c[t-1].end===n.end+1&&c[t-1].token===n.token-1&&c[n.end+1].token===r.token+1&&c[t-1].marker===n.marker,i=String.fromCharCode(n.marker),(a=e.tokens[n.token]).type=o?"strong_open":"em_open",a.tag=o?"strong":"em",a.nesting=1,a.markup=o?i+i:i,a.content="",(a=e.tokens[r.token]).type=o?"strong_close":"em_close",a.tag=o?"strong":"em",a.nesting=-1,a.markup=o?i+i:i,a.content="",o&&(e.tokens[c[t-1].token].content="",e.tokens[c[n.end+1].token].content="",t--))}},function(e,t,n){},,function(e){e.exports={production:["business-hours","contact-form","contact-info","gif","likes","mailchimp","map","markdown","publicize","related-posts","repeat-visitor","sharing","shortlinks","simple-payments","slideshow","subscriptions","tiled-gallery","videopress","wordads"],beta:["seo","membership-button"]}},function(e,t,n){"use strict";e.exports=n(117)},function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r=0||(a[n]=e[n]);return a}},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){"use strict";var r=n(17),a=n(125),i=n(129),o=n(130),c=n(138),s=n(152),l=n(165),u=n(75),p=n(167),h={default:n(168),zero:n(169),commonmark:n(170)},d=/^(vbscript|javascript|file|data):/,m=/^data:image\/(gif|png|jpeg|webp);/;function f(e){var t=e.trim().toLowerCase();return!d.test(t)||!!m.test(t)}var b=["http:","https:","mailto:"];function g(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(n){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(n){}return u.decode(u.format(t))}function j(e,t){if(!(this instanceof j))return new j(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new s,this.block=new c,this.core=new o,this.renderer=new i,this.linkify=new l,this.validateLink=f,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=r,this.helpers=r.assign({},a),this.options={},this.configure(e),t&&this.set(t)}j.prototype.set=function(e){return r.assign(this.options,e),this},j.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=h[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},j.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},j.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},j.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},j.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},j.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},j.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},j.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=j},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e,t,n){"use strict";var r={};function a(e,t,n){var i,o,c,s,l,u="";for("string"!=typeof t&&(n=t,t=a.defaultChars),void 0===n&&(n=!0),l=function(e){var t,n,a=r[e];if(a)return a;for(a=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?a.push(n):a.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&c<=57343){if(c>=55296&&c<=56319&&i+1=56320&&s<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}a.defaultChars=";/?:@&=+$,-_.!~*'()#",a.componentChars="-_.!~*'()",e.exports=a},function(e,t,n){"use strict";var r={};function a(e,t){var n;return"string"!=typeof t&&(t=a.defaultChars),n=function(e){var t,n,a=r[e];if(a)return a;for(a=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),a.push(n);for(t=0;t=55296&&s<=57343?"���":String.fromCharCode(s),t+=6):240==(248&a)&&t+91114111?l+="����":(s-=65536,l+=String.fromCharCode(55296+(s>>10),56320+(1023&s))),t+=9):l+="�";return l})}a.defaultChars=";/?:@&=+$,#",a.componentChars="",e.exports=a},function(e,t,n){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var a=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(c),l=["%","/","?",";","#"].concat(s),u=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,i,c,s,f=e;if(f=f.trim(),!t&&1===e.split("#").length){var b=o.exec(f);if(b)return this.pathname=b[1],b[2]&&(this.search=b[2]),this}var g=a.exec(f);if(g&&(i=(g=g[0]).toLowerCase(),this.protocol=g,f=f.substr(g.length)),(t||g||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(s="//"===f.substr(0,2))||g&&d[g]||(f=f.substr(2),this.slashes=!0)),!d[g]&&(s||g&&!m[g])){var v,j,k=-1;for(n=0;n127?w+="x":w+=E[C];if(!w.match(p)){var S=O.slice(0,n),A=O.slice(n+1),M=E.match(h);M&&(S.push(M[1]),A.unshift(M[2])),A.length&&(f=A.join(".")+f),this.hostname=S.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var T=f.indexOf("#");-1!==T&&(this.hash=f.substr(T),f=f.slice(0,T));var D=f.indexOf("?");return-1!==D&&(this.search=f.substr(D),f=f.slice(0,D)),f&&(this.pathname=f),m[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}},function(e,t,n){"use strict";t.Any=n(76),t.Cc=n(77),t.Cf=n(124),t.P=n(57),t.Z=n(78)},function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},function(e,t,n){"use strict";t.parseLinkLabel=n(126),t.parseLinkDestination=n(127),t.parseLinkTitle=n(128)},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a,i,o,c=-1,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos=n)return s;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return s;for(t++,40===i&&(i=41);t"+i(e[t].content)+""},o.code_block=function(e,t,n,r,a){var o=e[t];return""+i(e[t].content)+"\n"},o.fence=function(e,t,n,r,o){var c,s,l,u,p=e[t],h=p.info?a(p.info).trim():"",d="";return h&&(d=h.split(/\s+/g)[0]),0===(c=n.highlight&&n.highlight(p.content,d)||i(p.content)).indexOf(""+c+"\n"):"
"+c+"
\n"},o.image=function(e,t,n,r,a){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=a.renderInlineAsText(i.children,n,r),a.renderToken(e,t,n)},o.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},o.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},o.text=function(e,t){return i(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},c.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},c.prototype.renderInline=function(e,t,n){for(var r,a="",i=this.rules,o=0,c=e.length;o/i.test(e)}e.exports=function(e){var t,n,i,o,c,s,l,u,p,h,d,m,f,b,g,v,j,k,y=e.tokens;if(e.md.options.linkify)for(n=0,i=y.length;n=0;t--)if("link_close"!==(s=o[t]).type){if("html_inline"===s.type&&(k=s.content,/^\s]/i.test(k)&&f>0&&f--,a(s.content)&&f++),!(f>0)&&"text"===s.type&&e.md.linkify.test(s.content)){for(p=s.content,j=e.md.linkify.match(p),l=[],m=s.level,d=0,u=0;ud&&((c=new e.Token("text","",0)).content=p.slice(d,h),c.level=m,l.push(c)),(c=new e.Token("link_open","a",1)).attrs=[["href",g]],c.level=m++,c.markup="linkify",c.info="auto",l.push(c),(c=new e.Token("text","",0)).content=v,c.level=m,l.push(c),(c=new e.Token("link_close","a",-1)).level=--m,c.markup="linkify",c.info="auto",l.push(c),d=j[u].lastIndex);d=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(i,c)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function l(e){var t,n,a=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||a||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&a--,"link_close"===n.type&&"auto"===n.info&&a++}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(a.test(e.tokens[t].content)&&s(e.tokens[t].children),r.test(e.tokens[t].content)&&l(e.tokens[t].children))}},function(e,t,n){"use strict";var r=n(17).isWhiteSpace,a=n(17).isPunctChar,i=n(17).isMdAsciiPunct,o=/['"]/,c=/['"]/g,s="’";function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function u(e,t){var n,o,u,p,h,d,m,f,b,g,v,j,k,y,_,O,E,w,C,x,S;for(C=[],n=0;n=0&&!(C[E].level<=m);E--);if(C.length=E+1,"text"===o.type){h=0,d=(u=o.content).length;e:for(;h=0)b=u.charCodeAt(p.index-1);else for(E=n-1;E>=0&&("softbreak"!==e[E].type&&"hardbreak"!==e[E].type);E--)if("text"===e[E].type){b=e[E].content.charCodeAt(e[E].content.length-1);break}if(g=32,h=48&&b<=57&&(O=_=!1),_&&O&&(_=!1,O=j),_||O){if(O)for(E=C.length-1;E>=0&&(f=C[E],!(C[E].level=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}},function(e,t,n){"use strict";var r=n(59);function a(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}a.prototype.Token=r,e.exports=a},function(e,t,n){"use strict";var r=n(58),a=[["table",n(139),["paragraph","reference"]],["code",n(140)],["fence",n(141),["paragraph","reference","blockquote","list"]],["blockquote",n(142),["paragraph","reference","blockquote","list"]],["hr",n(143),["paragraph","reference","blockquote","list"]],["list",n(144),["paragraph","reference","blockquote"]],["reference",n(145)],["heading",n(146),["paragraph","reference","blockquote"]],["lheading",n(147)],["html_block",n(148),["paragraph","reference","blockquote"]],["paragraph",n(150)]];function i(){this.ruler=new r;for(var e=0;e=n))&&!(e.sCount[o]=s){e.line=n;break}for(r=0;rn)return!1;if(p=t+1,e.sCount[p]=4)return!1;if((l=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(c=e.src.charCodeAt(l++))&&45!==c&&58!==c)return!1;for(;l=4)return!1;if((d=(h=i(s.replace(/^\||\|$/g,""))).length)>f.length)return!1;if(o)return!0;for((m=e.push("table_open","table",1)).map=g=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4);p++){for(h=i(s.replace(/^\||\|$/g,"")),m=e.push("tr_open","tr",1),u=0;u=4))break;a=++r}return e.line=a,(i=e.push("code_block","code",0)).content=e.getLines(t,a,4+e.blkIndent,!0),i.map=[t,e.line],!0}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var a,i,o,c,s,l,u,p=!1,h=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(h+3>d)return!1;if(126!==(a=e.src.charCodeAt(h))&&96!==a)return!1;if(s=h,(i=(h=e.skipChars(h,a))-s)<3)return!1;if(u=e.src.slice(s,h),(o=e.src.slice(h,d)).indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;for(c=t;!(++c>=n)&&!((h=s=e.bMarks[c]+e.tShift[c])<(d=e.eMarks[c])&&e.sCount[c]=4||(h=e.skipChars(h,a))-s=4)return!1;if(62!==e.src.charCodeAt(C++))return!1;if(a)return!0;for(s=d=e.sCount[t]+C-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(C)?(C++,s++,d++,i=!1,k=!0):9===e.src.charCodeAt(C)?(k=!0,(e.bsCount[t]+d)%4==3?(C++,s++,d++,i=!1):i=!0):k=!1,m=[e.bMarks[t]],e.bMarks[t]=C;C=x,v=[e.sCount[t]],e.sCount[t]=d-s,j=[e.tShift[t]],e.tShift[t]=C-e.bMarks[t],_=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",E=!1,h=t+1;h=(x=e.eMarks[h])));h++)if(62!==e.src.charCodeAt(C++)||E){if(u)break;for(y=!1,c=0,l=_.length;c=x,f.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(k?1:0),v.push(e.sCount[h]),e.sCount[h]=d-s,j.push(e.tShift[h]),e.tShift[h]=C-e.bMarks[h]}for(b=e.blkIndent,e.blkIndent=0,(O=e.push("blockquote_open","blockquote",1)).markup=">",O.map=p=[t,0],e.md.block.tokenize(e,t,h),(O=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=w,e.parentType=g,p[1]=e.line,c=0;c=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(o=1;l=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-a>=10)return-1}return i=4)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(F=!0),(S=i(e,t))>=0){if(h=!0,M=e.bMarks[t]+e.tShift[t],v=Number(e.src.substr(M,S-M-1)),F&&1!==v)return!1}else{if(!((S=a(e,t))>=0))return!1;h=!1}if(F&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(S-1),r)return!0;for(b=e.tokens.length,h?(z=e.push("ordered_list_open","ol",1),1!==v&&(z.attrs=[["start",v]])):z=e.push("bullet_list_open","ul",1),z.map=f=[t,0],z.markup=String.fromCharCode(g),k=t,A=!1,D=e.md.block.ruler.getRules("list"),E=e.parentType,e.parentType="list";k=j?1:y-p)>4&&(u=1),l=p+u,(z=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),z.map=d=[t,0],_=e.blkIndent,C=e.tight,w=e.tShift[t],O=e.sCount[t],e.blkIndent=l,e.tight=!0,e.tShift[t]=c-e.bMarks[t],e.sCount[t]=y,c>=j&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(N=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=_,e.tShift[t]=w,e.sCount[t]=O,e.tight=C,(z=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),k=t=e.line,d[1]=k,c=e.bMarks[t],k>=n)break;if(e.sCount[k]=4)return!1;if(91!==e.src.charCodeAt(O))return!1;for(;++O3||e.sCount[w]<0)){for(j=!1,p=0,h=k.length;p=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(o=1,i=e.src.charCodeAt(++l);35===i&&l6||ll&&r(e.src.charCodeAt(c-1))&&(u=c),e.line=t+1,(s=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,u).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o),!0))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a,i,o,c,s,l,u,p,h,d=t+1,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";d3)){if(e.sCount[d]>=e.blkIndent&&(s=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(p=e.src.charCodeAt(s))||61===p)&&(s=e.skipChars(s,p),(s=e.skipSpaces(s))>=l)){u=61===p?1:2;break}if(!(e.sCount[d]<0)){for(a=!1,i=0,o=m.length;i|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(a.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var a,o,c,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,u),a=0;a3||e.sCount[s]<0)){for(r=!1,a=0,i=l.length;a0&&this.level++,this.tokens.push(a),a},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!a(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,r){var i,o,c,s,l,u,p,h=e;if(e>=t)return"";for(u=new Array(t-e),i=0;hn?new Array(o-n+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return u.join("")},i.prototype.Token=r,e.exports=i},function(e,t,n){"use strict";var r=n(58),a=[["text",n(153)],["newline",n(154)],["escape",n(155)],["backticks",n(156)],["strikethrough",n(80).tokenize],["emphasis",n(81).tokenize],["link",n(157)],["image",n(158)],["autolink",n(159)],["html_inline",n(160)],["entity",n(161)]],i=[["balance_pairs",n(162)],["strikethrough",n(80).postProcess],["emphasis",n(81).postProcess],["text_collapse",n(163)]];function o(){var e;for(this.ruler=new r,e=0;e=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,r){var a,i,o,c=new this.State(e,t,n,r);for(this.tokenize(c),o=(i=this.ruler2.getRules("")).length,a=0;a=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i?@[]^_`{|}~-".split("").forEach(function(e){a[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,i=e.pos,o=e.posMax;if(92!==e.src.charCodeAt(i))return!1;if(++i=f)return!1;for(b=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(d=e.md.normalizeLink(u.str),e.md.validateLink(d)?l=u.pos:d=""),b=l;l=f||41!==e.src.charCodeAt(l))&&(g=!0),l++}if(g){if(void 0===e.env.references)return!1;if(l=0?o=e.src.slice(b,l++):l=c+1):l=c+1,o||(o=e.src.slice(s,c)),!(p=e.env.references[r(o)]))return e.pos=m,!1;d=p.href,h=p.title}return t||(e.pos=s,e.posMax=c,e.push("link_open","a",1).attrs=n=[["href",d]],h&&n.push(["title",h]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=f,!0}},function(e,t,n){"use strict";var r=n(17).normalizeReference,a=n(17).isSpace;e.exports=function(e,t){var n,i,o,c,s,l,u,p,h,d,m,f,b,g="",v=e.pos,j=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=s+1)=j)return!1;for(b=u,(h=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(g=e.md.normalizeLink(h.str),e.md.validateLink(g)?u=h.pos:g=""),b=u;u=j||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if(void 0===e.env.references)return!1;if(u=0?c=e.src.slice(b,u++):u=s+1):u=s+1,c||(c=e.src.slice(l,s)),!(p=e.env.references[r(c)]))return e.pos=v,!1;g=p.href,d=p.title}return t||(o=e.src.slice(l,s),e.md.inline.parse(o,e.md,e.env,f=[]),(m=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],m.children=f,m.content=o,d&&n.push(["title",d])),e.pos=u,e.posMax=j,!0}},function(e,t,n){"use strict";var r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,a=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,i,o,c,s,l,u=e.pos;return 60===e.src.charCodeAt(u)&&(!((n=e.src.slice(u)).indexOf(">")<0)&&(a.test(n)?(c=(i=n.match(a))[0].slice(1,-1),s=e.md.normalizeLink(c),!!e.md.validateLink(s)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",s]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(c),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=i[0].length,!0)):!!r.test(n)&&(c=(o=n.match(r))[0].slice(1,-1),s=e.md.normalizeLink("mailto:"+c),!!e.md.validateLink(s)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",s]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(c),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=o[0].length,!0))))}},function(e,t,n){"use strict";var r=n(79).HTML_TAG_RE;e.exports=function(e,t){var n,a,i,o=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(o)||o+2>=i)&&(!(33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(a=e.src.slice(o).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(o,o+a[0].length)),e.pos+=a[0].length,!0))))}},function(e,t,n){"use strict";var r=n(74),a=n(17).has,i=n(17).isValidEntityCode,o=n(17).fromCodePoint,c=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,l,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1=0;){if((a=i[n]).open&&a.marker===r.marker&&a.end<0&&a.level===r.level)if(!((a.close||r.open)&&void 0!==a.length&&void 0!==r.length&&(a.length+r.length)%3==0)){r.jump=t-n,r.open=!1,a.end=t,a.jump=0;break}n-=a.jump+1}}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r=0,a=e.tokens,i=e.tokens.length;for(t=n=0;t0&&this.level++,this.pendingLevel=this.level,this.tokens.push(a),a},c.prototype.scanDelims=function(e,t){var n,r,c,s,l,u,p,h,d,m=e,f=!0,b=!0,g=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;m=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(e){var t=e.re=n(166)(e.__opts__),r=e.__tlds__.slice();function c(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(l),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(c(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(c(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(c(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(c(t.tpl_host_fuzzy_test),"i");var s=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,o={validate:null,link:null};if(e.__compiled__[t]=o,"[object Object]"===a(n))return!function(e){return"[object RegExp]"===a(e)}(n.validate)?i(n.validate)?o.validate=n.validate:u(t,n):o.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}),void(i(n.normalize)?o.normalize=n.normalize:n.normalize?u(t,n):o.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===a(e)}(n)?u(t,n):s.push(t)}}),s.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var p=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function h(e,t){var n=e.__index__,r=e.__last_index__,a=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=a,this.text=a,this.url=a}function d(e,t){var n=new h(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function m(e,t){if(!(this instanceof m))return new m(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||c.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},c,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},s,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},p(this)}m.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},m.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},m.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,a,i,o,c,s;if(this.re.schema_test.test(e))for((c=this.re.schema_search).lastIndex=0;null!==(t=c.exec(e));)if(a=this.testSchemaAt(e,t[2],c.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+a;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=o)),this.__index__>=0},m.prototype.pretest=function(e){return this.re.pretest.test(e)},m.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},m.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},m.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),p(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p(this),this)},m.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},m.prototype.onCompile=function(){},e.exports=m},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(76).source,t.src_Cc=n(77).source,t.src_Z=n(78).source,t.src_P=n(57).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|[><|]|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){"use strict";n.r(t),n.d(t,"ucs2decode",function(){return h}),n.d(t,"ucs2encode",function(){return d}),n.d(t,"decode",function(){return b}),n.d(t,"encode",function(){return g}),n.d(t,"toASCII",function(){return j}),n.d(t,"toUnicode",function(){return v});const r=2147483647,a=/^xn--/,i=/[^\0-\x7E]/,o=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},s=Math.floor,l=String.fromCharCode;function u(e){throw new RangeError(c[e])}function p(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const a=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(o,".")).split("."),t).join(".");return r+a}function h(e){const t=[];let n=0;const r=e.length;for(;n=55296&&a<=56319&&nString.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},f=function(e,t,n){let r=0;for(e=n?s(e/700):e>>1,e+=s(e/t);e>455;r+=36)e=s(e/35);return s(r+36*e/(e+38))},b=function(e){const t=[],n=e.length;let a=0,i=128,o=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let r=0;r=128&&u("not-basic"),t.push(e.charCodeAt(r));for(let p=c>0?c+1:0;p=n&&u("invalid-input");const c=(l=e.charCodeAt(p++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36;(c>=36||c>s((r-a)/t))&&u("overflow"),a+=c*t;const h=i<=o?1:i>=o+26?26:i-o;if(cs(r/d)&&u("overflow"),t*=d}const h=t.length+1;o=f(a-c,h,0==c),s(a/h)>r-i&&u("overflow"),i+=s(a/h),a%=h,t.splice(a++,0,i)}var l;return String.fromCodePoint(...t)},g=function(e){const t=[];let n=(e=h(e)).length,a=128,i=0,o=72;for(const r of e)r<128&&t.push(l(r));let c=t.length,p=c;for(c&&t.push("-");p=a&&ts((r-i)/h)&&u("overflow"),i+=(n-a)*h,a=n;for(const d of e)if(dr&&u("overflow"),d==a){let e=i;for(let n=36;;n+=36){const r=n<=o?1:n>=o+26?26:n-o;if(e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=s-l,y=Math.floor,_=String.fromCharCode;function O(e){throw RangeError(j[e])}function E(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function w(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+E((e=e.replace(v,".")).split("."),t).join(".")}function C(e){for(var t,n,r=[],a=0,i=e.length;a=55296&&t<=56319&&a65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)}).join("")}function S(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?y(e/h):e>>1,e+=y(e/t);e>k*u>>1;r+=s)e=y(e/k);return y(r+(k+1)*e/(e+p))}function M(e){var t,n,r,a,i,o,p,h,b,g,v,j=[],k=e.length,_=0,E=m,w=d;for((n=e.lastIndexOf(f))<0&&(n=0),r=0;r=128&&O("not-basic"),j.push(e.charCodeAt(r));for(a=n>0?n+1:0;a=k&&O("invalid-input"),((h=(v=e.charCodeAt(a++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s)>=s||h>y((c-_)/o))&&O("overflow"),_+=h*o,!(h<(b=p<=w?l:p>=w+u?u:p-w));p+=s)o>y(c/(g=s-b))&&O("overflow"),o*=g;w=A(_-i,t=j.length+1,0==i),y(_/t)>c-E&&O("overflow"),E+=y(_/t),_%=t,j.splice(_++,0,E)}return x(j)}function T(e){var t,n,r,a,i,o,p,h,b,g,v,j,k,E,w,x=[];for(j=(e=C(e)).length,t=m,n=0,i=d,o=0;o=t&&vy((c-n)/(k=r+1))&&O("overflow"),n+=(p-t)*k,t=p,o=0;oc&&O("overflow"),v==t){for(h=n,b=s;!(h<(g=b<=i?l:b>=i+u?u:b-i));b+=s)w=h-g,E=s-g,x.push(_(S(g+w%E,0))),h=y(w/E);x.push(_(S(h,0))),i=A(n,k,r==a),n=0,++r}++n,++t}return x.join("")}o={version:"1.3.2",ucs2:{decode:C,encode:x},decode:M,encode:T,toASCII:function(e){return w(e,function(e){return g.test(e)?"xn--"+T(e):e})},toUnicode:function(e){return w(e,function(e){return b.test(e)?M(e.slice(4).toLowerCase()):e})}},void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(188)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(191),t.encode=t.stringify=n(192)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var c=1e3;a&&"number"==typeof a.maxKeys&&(c=a.maxKeys);var s=e.length;c>0&&s>c&&(s=c);for(var l=0;l=0?(u=m.substr(0,f),p=m.substr(f+1)):(u=m,p=""),h=decodeURIComponent(u),d=decodeURIComponent(p),r(i,h)?Array.isArray(i[h])?i[h].push(d):i[h]=[i[h],d]:i[h]=d}return i}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(a){var i=encodeURIComponent(r(a))+n;return Array.isArray(e[a])?e[a].map(function(e){return i+encodeURIComponent(r(e))}).join(t):i+encodeURIComponent(r(e[a]))}).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""}},function(e,t){!function(){"use strict";var t=[],n=3988292384;function r(e){var t,r,a,i,o=-1;for(t=0,a=e.length;t>>1^n:i>>>=1;o=o>>>8^i}return-1^o}function a(e,n){var r,i,o;if(void 0!==a.crc&&n&&e||(a.crc=-1,e)){for(r=a.crc,i=0,o=e.length;i>>8^t[255&(r^e[i])];return a.crc=r,-1^r}}!function(){var e,r,a;for(r=0;r<256;r+=1){for(e=r,a=0;a<8;a+=1)1&e?e=n^e>>>1:e>>>=1;t[r]=e>>>0}}(),e.exports=function(e,t){var n;e="string"==typeof e?(n=e,Array.prototype.map.call(n,function(e){return e.charCodeAt(0)})):e;return((t?r(e):a(e))>>>0).toString(16)},e.exports.direct=r,e.exports.table=a}()},function(e,t,n){"use strict";var r=256,a=[],i=window,o=Math.pow(r,6),c=Math.pow(2,52),s=2*c,l=r-1,u=Math.random;function p(e){var t,n=e.length,a=this,i=0,o=a.i=a.j=0,c=a.S=[];for(n||(e=[n++]);i=s;)e/=2,t/=2,n>>>=1;return(e+n)/t}},e.exports.resetGlobal=function(){Math.random=u},h(Math.random(),a)},function(e,t,n){function r(){var e;try{e=t.storage.debug}catch(n){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(196)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))}),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(n){}},t.load=r,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(r())},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,a=+new Date,i=a-(n||a);e.diff=i,e.prev=n,e.curr=a,n=a;for(var o=new Array(arguments.length),c=0;c0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*a;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&!1===isNaN(e))return t.long?c(s=e,i,"day")||c(s,a,"hour")||c(s,r,"minute")||c(s,n,"second")||s+" ms":function(e){if(e>=i)return Math.round(e/i)+"d";if(e>=a)return Math.round(e/a)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){},,function(e,t,n){},,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"save",function(){return St}),n.d(r,"attributes",function(){return Mt}),n.d(r,"support",function(){return Tt});var a=n(18),i=n(13),o=n.n(i),c=n(3),s=n.n(c),l=n(0),u=n(1),p=n(16),h=n(5),d=n(2),m=n(22),f=n.n(m),b=n(7),g=n.n(b),v=n(11),j=n.n(v),k=n(8),y=n.n(k),_=n(9),O=n.n(_),E=n(4),w=n.n(E),C=n(10),x=n.n(C),S=n(6),A=[{icon:Object(l.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(d.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:Object(u._x)("Original","image style","jetpack"),value:void 0},{icon:Object(l.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(d.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:Object(u._x)("Black and White","image style","jetpack"),value:"black-and-white"},{icon:Object(l.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(d.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),title:Object(u._x)("Sepia","image style","jetpack"),value:"sepia"},{icon:Object(l.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(d.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:"1977",value:"1977"},{icon:Object(l.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(d.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:Object(u._x)("Clarendon","image style","jetpack"),value:"clarendon"},{icon:Object(l.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0z"}),Object(l.createElement)(d.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:Object(u._x)("Gingham","image style","jetpack"),value:"gingham"}],M=Object(u.__)("Pick an image filter","jetpack");function T(e){var t=e.value,n=e.onChange;return Object(l.createElement)(d.Dropdown,{position:"bottom right",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(l.createElement)(d.Toolbar,{controls:[{onClick:t,extraProps:{"aria-haspopup":"true","aria-expanded":n},title:M,tooltip:M,icon:Object(l.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(d.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(l.createElement)(d.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"}))}]})},renderContent:function(e){var r=e.onClose;return Object(l.createElement)(d.NavigableMenu,{className:"tiled-gallery__filter-picker-menu"},A.map(function(e){var a,i=e.icon,o=e.title,c=e.value;return Object(l.createElement)(d.MenuItem,{className:t===c?"is-active":void 0,icon:i,isSelected:t===c,key:c||"original",onClick:(a=c,function(){n(t===a?void 0:a),r()}),role:"menuitemcheckbox"},o)}))}})}var D=n(34),z=n.n(D),F=n(52),N=n.n(F),P=n(33),I=n(23),L=n(12),R=n.n(L),B=n(27),q=n(14),V=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i=2}]);function fe(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isWide;return function e(n,r){if(!r.length)return n;var a;a=r.length>15&&X(r)&&Y(n)?[2,1,2]:r.length>15&&Q(r)&&ee(n)?[3,1,3]:5!==r.length&&te(r)&&ne(n)?[1,2,1]:re(r)&&ae(n)?[1,3]:ie(r)&&oe(n)?[3,1]:ce(r)&&se(n)?[1,2]:t&&(5===r.length||10!==r.length&&r.length>6)&&le(n)&&Object(h.sum)(Object(h.take)(r,5))<5?[1,1,1,1,1]:function(e,t){var n=Object(h.sum)(Object(h.take)(t,4));return ue(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(n,r)?[1,1,1,1]:function(e,t,n){var r=Object(h.sum)(Object(h.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&pe(e)&&(r<2.5||r<5&&t.length>=3&&t[0]===t[2]||n)}(n,r,t)?[1,1,1]:he(r)&&de(n)?[2,1]:me(r)?[1]:r.length>3?[1,1]:Array(r.length).fill(1);var i=n.concat([a]),o=Object(h.sum)(a);return e(i,r.slice(o))}([],e)}function be(e,t){return function(n){return!Object(h.some)(Object(h.takeRight)(n,t),function(t){return Object(h.isEqual)(t,e)})}}function ge(e){return function(t){return t.length>=e.length&&Object(h.every)(Object(h.zipWith)(e,t.slice(0,e.length),function(e,t){return e(t)}))}}function ve(e){return e>=1&&e<2}function je(e){return e<1}function ke(e){return function(t){return t>=e}}function ye(e){return function(t){return t1&&void 0!==arguments[1]?arguments[1]:{},n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object(P.parse)(e),a=(r.auth,r.hash,r.port,r.query,r.search,z()(r,["auth","hash","port","query","search"]));return a.query=Object.keys(t).reduce(function(e,r){return Object.assign(e,s()({},n.hasOwnProperty(r)?n[r]:r,t[r]))},{}),Object(P.format)(a)}var Se=n(89),Ae=n.n(Se);function Me(e,t){var n=function(e,t){var n=!0,r=!1,a=void 0;try{for(var i,o=new Ae.a(t).values()[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var c=i.value;if(-1!==c.indexOf("is-style-")){var s=c.substring(9),l=Object(h.find)(e,{name:s});if(l)return l}}}catch(u){r=!0,a=u}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return Object(h.find)(e,"isDefault")}(e,t);return n?n.name:null}var Te=[{value:"attachment",label:Object(u.__)("Attachment Page","jetpack")},{value:"media",label:Object(u.__)("Media File","jetpack")},{value:"none",label:Object(u.__)("None","jetpack")}];function De(e){return Math.min(3,e.images.length)}var ze=function(e){var t=Object(h.pick)(e,[["alt"],["id"],["link"]]);return t.url=Object(h.get)(e,["sizes","large","url"])||Object(h.get)(e,["media_details","sizes","large","source_url"])||e.url,t},Fe=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i1&&Object(l.createElement)(d.RangeControl,{label:Object(u.__)("Columns","jetpack"),value:m,onChange:this.setColumnsNumber,min:1,max:Math.min(Oe.h,b.length)}),Object(l.createElement)(d.SelectControl,{label:Object(u.__)("Link To","jetpack"),value:g,onChange:this.setLinkTo,options:Te}))),c,Object(l.createElement)(we,{align:p,className:i,columns:m,imageFilter:f,images:b,layoutStyle:k,linkTo:g,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,selectedImage:a?t:null,setImageAttributes:this.setImageAttributes},v,a&&Object(l.createElement)("div",{className:"tiled-gallery__add-item"},Object(l.createElement)(d.FormFileUpload,{multiple:!0,isLarge:!0,className:"tiled-gallery__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(u.__)("Upload an image","jetpack")))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isSelected||null===t.selectedImage?null:{selectedImage:null}}}]),t}(l.Component),Ne=Object(d.withNotices)(Fe);n(198);function Pe(e){var t,n=e["aria-label"],r=e.alt,a=e.height,i=e.id,o=e.link,c=e.linkTo,s=e.origUrl,u=e.url,p=e.width;if(Object(I.isBlobURL)(s))return null;switch(c){case"media":t=u;break;case"attachment":t=o}var h=Object(l.createElement)("img",{alt:r,"aria-label":n,"data-height":a,"data-id":i,"data-link":o,"data-url":s,"data-width":p,src:u});return Object(l.createElement)("figure",{className:"tiled-gallery__item"},t?Object(l.createElement)("a",{href:t},h):h)}function Ie(e){var t=e.children;return Object(l.createElement)("div",{className:"tiled-gallery__col"},t)}function Le(e){var t=e.children,n=e.galleryRef;return Object(l.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}function Re(e){var t=e.children,n=e.className;return Object(l.createElement)("div",{className:R()("tiled-gallery__row",n)},t)}var Be=n(21),qe=n.n(Be),Ve=4,He=20,Ue=[{isDefault:!0,name:"rectangular"},{name:"circle"},{name:"square"},{name:"columns"}];function Ge(e,t){var n=(t-e.reduce(function(e,t){return e+t},0))/e.length;return e.map(function(e){return e+n})}function Ke(e,t){!function(e,t,n){var r=qe()(t,2),a=r[0],i=r[1],o=1/a*(n-Ve*(e.childElementCount-1)-i);!function(e,t){var n=t.rawHeight,r=t.rowWidth,a=$e(e),i=a.map(function(e){return(n-Ve*(e.childElementCount-1))*We(e)[0]}),o=Ge(i,r);a.forEach(function(e,t){var r=i[t],a=o[t];!function(e,t){var n=t.colHeight,r=t.width,a=t.rawWidth,i=Ge(Ze(e).map(function(e){return a/Je(e)}),n);Array.from(e.children).forEach(function(e,t){var n=i[t];e.setAttribute("style","height:".concat(n,"px;width:").concat(r,"px;"))})}(e,{colHeight:n-Ve*(e.childElementCount-1),width:a,rawWidth:r})})}(e,{rawHeight:o,rowWidth:n-Ve*(e.childElementCount-1)})}(e,function(e){return $e(e).map(We).reduce(function(e,t){var n=qe()(e,2),r=n[0],a=n[1],i=qe()(t,2),o=i[0],c=i[1];return[r+o,a+c]},[0,0])}(e),t)}function $e(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function Ze(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function We(e){var t=Ze(e),n=t.length,r=1/t.map(Je).reduce(function(e,t){return e+1/t},0);return[r,r*n||1]}function Je(e){var t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}function Ye(e){var t=e.height,n=e.width;return t&&n?n/t:1}var Xe=gt([2,1,2],5),Qe=vt([jt,jt,kt,jt,jt]),et=vt([jt,jt,jt,kt,jt,jt,jt]),tt=gt([3,1,3],5),nt=vt([kt,jt,jt,kt]),rt=gt([1,2,1],5),at=vt([kt,jt,jt,jt]),it=gt([1,3],3),ot=vt([jt,jt,jt,kt]),ct=gt([3,1],3),st=vt([_t(1.6),Object(h.overEvery)(yt(.9),_t(2)),Object(h.overEvery)(yt(.9),_t(2))]),lt=gt([1,2],3),ut=gt([1,1,1,1,1],1),pt=gt([1,1,1,1],1),ht=gt([1,1,1],3),dt=vt([Object(h.overEvery)(yt(.9),_t(2)),Object(h.overEvery)(yt(.9),_t(2)),_t(1.6)]),mt=gt([2,1],3),ft=vt([function(e){return e>=2}]);function bt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isWide;return function e(n,r){if(!r.length)return n;var a;a=r.length>15&&Qe(r)&&Xe(n)?[2,1,2]:r.length>15&&et(r)&&tt(n)?[3,1,3]:5!==r.length&&nt(r)&&rt(n)?[1,2,1]:at(r)&&it(n)?[1,3]:ot(r)&&ct(n)?[3,1]:st(r)&<(n)?[1,2]:t&&(5===r.length||10!==r.length&&r.length>6)&&ut(n)&&Object(h.sum)(Object(h.take)(r,5))<5?[1,1,1,1,1]:function(e,t){var n=Object(h.sum)(Object(h.take)(t,4));return pt(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(n,r)?[1,1,1,1]:function(e,t,n){var r=Object(h.sum)(Object(h.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&ht(e)&&(r<2.5||r<5&&t.length>=3&&t[0]===t[2]||n)}(n,r,t)?[1,1,1]:dt(r)&&mt(n)?[2,1]:ft(r)?[1]:r.length>3?[1,1]:Array(r.length).fill(1);var i=n.concat([a]),o=Object(h.sum)(a);return e(i,r.slice(o))}([],e)}function gt(e,t){return function(n){return!Object(h.some)(Object(h.takeRight)(n,t),function(t){return Object(h.isEqual)(t,e)})}}function vt(e){return function(t){return t.length>=e.length&&Object(h.every)(Object(h.zipWith)(e,t.slice(0,e.length),function(e,t){return e(t)}))}}function jt(e){return e>=1&&e<2}function kt(e){return e<1}function yt(e){return function(t){return t>=e}}function _t(e){return function(t){return t1&&void 0!==arguments[1]?arguments[1]:{},n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object(P.parse)(e),a=(r.auth,r.hash,r.port,r.query,r.search,z()(r,["auth","hash","port","query","search"]));return a.query=Object.keys(t).reduce(function(e,r){return Object.assign(e,s()({},n.hasOwnProperty(r)?n[r]:r,t[r]))},{}),Object(P.format)(a)}function St(e){var t=e.attributes,n=t.images;if(!n.length)return null;var r=t.align,a=t.className,i=t.columns,o=void 0===i?function(e){return Math.min(3,e.images.length)}(t):i,c=t.linkTo;return Object(l.createElement)(wt,{align:r,className:a,columns:o,images:n,layoutStyle:Me(Ue,a),linkTo:c})}var At,Mt={align:{default:"center",type:"string"},className:{default:"is-style-".concat("rectangular"),type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},Tt={align:["center","wide","full"],customClassName:!1,html:!1},Dt=(At={},s()(At,Oe.e,Object(u._x)("Tiled mosaic","Tiled gallery layout","jetpack")),s()(At,Oe.c,Object(u._x)("Circles","Tiled gallery layout","jetpack")),s()(At,Oe.d,Object(u._x)("Tiled columns","Tiled gallery layout","jetpack")),s()(At,Oe.f,Object(u._x)("Square tiles","Tiled gallery layout","jetpack")),At),zt=Oe.g.map(function(e){return o()({},e,{label:Dt[e.name]})});function Ft(e){return Object(h.filter)(e,function(e){var t=e.id,n=e.url;return t&&n})}var Nt={align:{default:"center",type:"string"},className:{default:"is-style-".concat(Oe.e),type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},Pt=Object(l.createElement)(d.SVG,{viewBox:"0 0 24 24",width:24,height:24},Object(l.createElement)(d.Path,{fill:"currentColor",d:"M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z"})),It={attributes:Nt,category:"jetpack",description:Object(u.__)("Display multiple images in an elegantly organized tiled layout.","jetpack"),icon:Pt,keywords:[Object(u._x)("images","block search term","jetpack"),Object(u._x)("photos","block search term","jetpack"),Object(u._x)("pictures","block search term","jetpack")],styles:zt,supports:{align:["center","wide","full"],customClassName:!1,html:!1},title:Object(u.__)("Tiled Gallery","jetpack"),transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:function(e){return Ft(e).length>0},transform:function(e){var t=Ft(e);return Object(p.createBlock)("jetpack/".concat("tiled-gallery"),{images:t.map(function(e){return{id:e.id,url:e.url,alt:e.alt}}),ids:t.map(function(e){return e.id})})}},{type:"block",blocks:["core/gallery","jetpack/slideshow"],transform:function(e){var t=Ft(e.images);return t.length>0?Object(p.createBlock)("jetpack/".concat("tiled-gallery"),{images:t.map(function(e){return{id:e.id,url:e.url,alt:e.alt}}),ids:t.map(function(e){return e.id})}):Object(p.createBlock)("jetpack/".concat("tiled-gallery"))}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.ids,r=e.columns,a=e.linkTo;return Object(p.createBlock)("core/gallery",{images:t,ids:n,columns:r,imageCrop:!0,linkTo:a})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.align,n=e.images;return n.length>0?n.map(function(e){var n=e.id,r=e.url,a=e.alt;return Object(p.createBlock)("core/image",{align:t,id:n,url:r,alt:a})}):Object(p.createBlock)("core/image")}}]},edit:Ne,save:function(e){var t=e.attributes,n=t.imageFilter,r=t.images;if(!r.length)return null;var a=t.align,i=t.className,o=t.columns,c=void 0===o?De(t):o,s=t.linkTo;return Object(l.createElement)(we,{align:a,className:i,columns:c,imageFilter:n,images:r,isSave:!0,layoutStyle:Me(Oe.g,i),linkTo:s})},deprecated:[r]};Object(a.a)("tiled-gallery",It)},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"setConnectionTestResults",function(){return p}),n.d(r,"refreshConnectionTestResults",function(){return h}),n.d(r,"fetchFromAPI",function(){return d});var a={};n.r(a),n.d(a,"getFailedConnections",function(){return m}),n.d(a,"getMustReauthConnections",function(){return f});var i=n(0),o=n(1),c=n(2),s=n(42),l=n(6),u=(n(171),n(14));function p(e){return{type:"SET_CONNECTION_TEST_RESULTS",results:e}}function h(){return{type:"REFRESH_CONNECTION_TEST_RESULTS"}}function d(e){return{type:"FETCH_FROM_API",path:e}}function m(e){return e.filter(function(e){return!1===e.test_success})}function f(e){return e.filter(function(e){return"must_reauth"===e.test_success}).map(function(e){return e.service_name})}var b=n(22),g=n.n(b),v=n(86),j=n.n(v),k=n(5),y=n(37),_=n.n(y),O=n(25),E=n.n(O);function w(){return(w=_()(regeneratorRuntime.mark(function e(t,n){var r,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.dispatch,e.prev=1,e.next=4,E()({path:"/wpcom/v2/publicize/connection-test-results"});case 4:return a=e.sent,e.abrupt("return",r(p(a)));case 8:e.prev=8,e.t0=e.catch(1);case 10:case"end":return e.stop()}},e,null,[[1,8]])}))).apply(this,arguments)}var C={REFRESH_CONNECTION_TEST_RESULTS:function(e,t){return w.apply(this,arguments)}};var x,S,A,M,T,D={FETCH_FROM_API:function(e){var t=e.path;return E()({path:t})}},z=Object(u.registerStore)("jetpack/publicize",{actions:r,controls:D,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CONNECTION_TEST_RESULTS":return t.results;case"REFRESH_CONNECTION_TEST_RESULTS":return[]}return e},selectors:a});x=z,A=[j()(C)],M=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},T={getState:x.getState,dispatch:function(){return M.apply(void 0,arguments)}},S=A.map(function(e){return e(T)}),M=k.flowRight.apply(void 0,g()(S))(x.dispatch),x.dispatch=M;var F=n(39),N=n(15),P=n(7),I=n.n(P),L=n(11),R=n.n(L),B=n(8),q=n.n(B),V=n(9),H=n.n(V),U=n(4),G=n.n(U),K=n(10),$=n.n(K),Z=n(3),W=n.n(Z),J=function(e){function t(){var e,n;I()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i0&&Object(i.createElement)(me,{refreshCallback:n}),t&&0===t.length&&Object(i.createElement)(he,{className:"jetpack-publicize-add-connection-wrapper",refreshCallback:n}))}),be={render:function(){return Object(i.createElement)(l.PostTypeSupportCheck,{supportKeys:"publicize"},Object(i.createElement)(F.a,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("Share this post","jetpack")},Object(i.createElement)(fe,null))),Object(i.createElement)(s.PluginPrePublishPanel,{initialOpen:!0,id:"publicize-title",title:Object(i.createElement)("span",{id:"publicize-defaults",key:"publicize-title-span"},Object(o.__)("Share this post","jetpack"))},Object(i.createElement)(fe,null)))}},ge=n(32);Object(ge.a)("publicize",be)},function(e,t,n){"use strict";n.r(t);var r=n(18),a=n(0),i=n(1),o=n(6),c=n(2),s=n(12),l=n.n(s),u=["jetpack/markdown","jetpack/address","jetpack/email","jetpack/phone","jetpack/map","jetpack/business-hours","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/html","core/separator","core/spacer","core/subhead","core/video"],p=[["jetpack/email"],["jetpack/phone"],["jetpack/address"]],h=function(e){var t=e.isSelected;return Object(a.createElement)("div",{className:l()({"jetpack-contact-info-block":!0,"is-selected":t})},Object(a.createElement)(o.InnerBlocks,{allowedBlocks:u,templateLock:!1,template:p}))},d=n(19),m=(n(99),n(66),n(7)),f=n.n(m),b=n(11),g=n.n(b),v=n(8),j=n.n(v),k=n(9),y=n.n(k),_=n(4),O=n.n(_),E=n(10),w=n.n(E),C=function(e){var t=e.attributes,n=t.address,r=t.addressLine2,i=t.addressLine3,o=t.city,c=t.region,s=t.postal,l=t.country;return Object(a.createElement)(a.Fragment,null,n&&Object(a.createElement)("div",{className:"jetpack-address__address jetpack-address__address1"},n),r&&Object(a.createElement)("div",{className:"jetpack-address__address jetpack-address__address2"},r),i&&Object(a.createElement)("div",{className:"jetpack-address__address jetpack-address__address3"},i),o&&!(c||s)&&Object(a.createElement)("div",{className:"jetpack-address__city"},o),o&&(c||s)&&Object(a.createElement)("div",null,[Object(a.createElement)("span",{className:"jetpack-address__city"},o),", ",Object(a.createElement)("span",{className:"jetpack-address__region"},c)," ",Object(a.createElement)("span",{className:"jetpack-address__postal"},s)]),!o&&(c||s)&&Object(a.createElement)("div",null,[Object(a.createElement)("span",{className:"jetpack-address__region"},c)," ",Object(a.createElement)("span",{className:"jetpack-address__postal"},s)]),l&&Object(a.createElement)("div",{className:"jetpack-address__country"},l))},x=function(e){var t=e.attributes,n=t.address,r=t.addressLine2,a=t.addressLine3,i=t.city,o=t.region,c=t.postal,s=t.country,l=n?"".concat(n,","):"",u=r?"".concat(r,","):"",p=a?"".concat(a,","):"",h=i?"+".concat(i,","):"",d=o?"+".concat(o,","):"";d=c?"".concat(d,"+").concat(c):d;var m=s?"+".concat(s):"";return"https://www.google.com/maps/search/".concat(l).concat(u).concat(p).concat(h).concat(d).concat(m).replace(" ","+")},S=function(e){return[(t=e.attributes).address,t.addressLine2,t.addressLine3,t.city,t.region,t.postal,t.country].some(function(e){return""!==e})&&Object(a.createElement)("div",{className:e.className},e.attributes.linkToGoogleMaps&&Object(a.createElement)("a",{href:x(e),target:"_blank",rel:"noopener noreferrer",title:Object(i.__)("Open address in Google Maps","jetpack")},Object(a.createElement)(C,e)),!e.attributes.linkToGoogleMaps&&Object(a.createElement)(C,e));var t},A=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i0}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.attributes.hasFormSettingsSet,r=E()(t,"jetpack-contact-form",{"has-intro":!n});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Email feedback settings","jetpack")},this.renderToAndSubjectFields())),Object(o.createElement)("div",{className:r},!n&&Object(o.createElement)(l.Placeholder,{label:Object(c.__)("Form","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"}))},Object(o.createElement)("form",{onSubmit:this.onFormSettingsSet},Object(o.createElement)("p",{className:"jetpack-contact-form__intro-message"},this.getIntroMessage()),this.renderToAndSubjectFields(),Object(o.createElement)("p",{className:"jetpack-contact-form__intro-message"},Object(c.__)("(If you leave these blank, notifications will go to the author with the post or page title as the subject line.)","jetpack")),Object(o.createElement)("div",{className:"jetpack-contact-form__create"},Object(o.createElement)(l.Button,{isPrimary:!0,type:"submit",disabled:this.hasEmailError()},Object(c.__)("Add form","jetpack"))))),n&&Object(o.createElement)(u.InnerBlocks,{allowedBlocks:I,templateLock:!1,template:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-url",{}],["jetpack/field-textarea",{}]]}),n&&Object(o.createElement)(P.a,this.props)))}}]),t}(o.Component),R=Object(x.compose)([x.withInstanceId])(L),B=function(e){var t=e.setAttributes,n=e.label,r=e.resetFocus,a=e.isSelected,i=e.required;return Object(o.createElement)("div",{className:"jetpack-field-label"},Object(o.createElement)(u.PlainText,{value:n,className:"jetpack-field-label__input",onChange:function(e){r&&r(),t({label:e})},placeholder:Object(c.__)("Write label…","jetpack")}),a&&Object(o.createElement)(l.ToggleControl,{label:Object(c.__)("Required","jetpack"),className:"jetpack-field-label__required",checked:i,onChange:function(e){return t({required:e})}}),!a&&i&&Object(o.createElement)("span",{className:"required"},Object(c.__)("(required)","jetpack")))};var q=function(e){var t=e.isSelected,n=e.type,r=e.required,a=e.label,i=e.setAttributes,s=e.defaultValue,p=e.placeholder,h=e.id;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:E()("jetpack-field",{"is-selected":t})},Object(o.createElement)(l.TextControl,{type:n,label:Object(o.createElement)(B,{required:r,label:a,setAttributes:i,isSelected:t}),placeholder:p,value:p,onChange:function(e){return i({placeholder:e})},title:Object(c.__)("Set the placeholder text","jetpack")})),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.TextControl,{label:Object(c.__)("Default Value","jetpack"),value:s,onChange:function(e){return i({defaultValue:e})}}),Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:h,onChange:function(e){return i({id:e})}}))))};var V=function(e){var t=e.required,n=e.label,r=e.setAttributes,a=e.isSelected,i=e.defaultValue,s=e.placeholder,p=e.id;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"jetpack-field"},Object(o.createElement)(l.TextareaControl,{label:Object(o.createElement)(B,{required:t,label:n,setAttributes:r,isSelected:a}),placeholder:s,value:s,onChange:function(e){return r({placeholder:e})},title:Object(c.__)("Set the placeholder text","jetpack")})),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.TextControl,{label:Object(c.__)("Default Value","jetpack"),value:i,onChange:function(e){return r({defaultValue:e})}}),Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:p,onChange:function(e){return r({id:e})}}))))},H=Object(x.withInstanceId)(function(e){var t=e.instanceId,n=e.required,r=e.label,a=e.setAttributes,i=e.isSelected,s=e.defaultValue,p=e.id;return Object(o.createElement)(l.BaseControl,{id:"jetpack-field-checkbox-".concat(t),className:"jetpack-field jetpack-field-checkbox",label:Object(o.createElement)(o.Fragment,null,Object(o.createElement)("input",{className:"jetpack-field-checkbox__checkbox",type:"checkbox",disabled:!0,checked:s}),Object(o.createElement)(B,{required:n,label:r,setAttributes:a,isSelected:i}),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.ToggleControl,{label:Object(c.__)("Default Checked State","jetpack"),checked:s,onChange:function(e){return a({defaultValue:e})}}),Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:p,onChange:function(e){return a({id:e})}}))))})}),U=function(e){function t(){var e,n;h()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.props.options.slice(0);null===t?(n.splice(e,1),e>0&&this.setState({inFocus:e-1})):(n.splice(e,1,t),this.setState({inFocus:e})),this.props.setAttributes({options:n})}},{key:"addNewOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.options.slice(0),n=0;"object"==typeof e?(t.push(""),n=t.length-1):(t.splice(e+1,0,""),n=e+1),this.setState({inFocus:n}),this.props.setAttributes({options:t})}},{key:"render",value:function(){var e=this,t=this.props,n=t.type,r=t.instanceId,a=t.required,i=t.label,s=t.setAttributes,p=t.isSelected,h=t.id,d=this.props.options,m=this.state.inFocus;return d.length||(d=[""],m=0),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.BaseControl,{id:"jetpack-field-multiple-".concat(r),className:"jetpack-field jetpack-field-multiple",label:Object(o.createElement)(B,{required:a,label:i,setAttributes:s,isSelected:p,resetFocus:function(){return e.setState({inFocus:null})}})},Object(o.createElement)("ol",{className:"jetpack-field-multiple__list",id:"jetpack-field-multiple-".concat(r)},d.map(function(t,r){return Object(o.createElement)(U,{type:n,key:r,option:t,index:r,onChangeOption:e.onChangeOption,onAddOption:e.addNewOption,isInFocus:r===m&&p,isSelected:p})})),p&&Object(o.createElement)(l.IconButton,{className:"jetpack-field-multiple__add-option",icon:"insert",label:Object(c.__)("Insert option","jetpack"),onClick:this.addNewOption},Object(c.__)("Add option","jetpack"))),Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(c.__)("Field Settings","jetpack")},Object(o.createElement)(l.TextControl,{label:Object(c.__)("ID","jetpack"),value:h,onChange:function(e){return s({id:e})}}))))}}]),t}(o.Component),K=Object(x.withInstanceId)(G),$={title:Object(c.__)("Form","jetpack"),description:Object(c.__)("A simple way to get feedback from folks visiting your site.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"})),keywords:[Object(c._x)("email","block search term","jetpack"),Object(c._x)("feedback","block search term","jetpack"),Object(c._x)("contact","block search term","jetpack")],category:"jetpack",supports:{reusable:!1,html:!1},attributes:{subject:{type:"string",default:""},to:{type:"string",default:""},submitButtonText:{type:"string",default:Object(c.__)("Submit","jetpack")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"},hasFormSettingsSet:{type:"string",default:null},has_form_settings_set:{type:"string",default:null},submit_button_text:{type:"string",default:Object(c.__)("Submit","jetpack")}},edit:R,save:u.InnerBlocks.Content,deprecated:[{attributes:{subject:{type:"string",default:""},to:{type:"string",default:""},submit_button_text:{type:"string",default:Object(c.__)("Submit","jetpack")},has_form_settings_set:{type:"string",default:null}},migrate:function(e){return{submitButtonText:e.submit_button_text,hasFormSettingsSet:e.has_form_settings_set,to:e.to,subject:e.subject}},isEligible:function(e){return!(!e.has_form_settings_set&&"Submit"===e.submit_button_text)},save:u.InnerBlocks.Content}]},Z={category:"jetpack",parent:["jetpack/contact-form"],supports:{reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},options:{type:"array",default:[]},defaultValue:{type:"string",default:""},placeholder:{type:"string",default:""},id:{type:"string",default:""}},transforms:{to:[{type:"block",blocks:["jetpack/field-text"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-text",e)}},{type:"block",blocks:["jetpack/field-name"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-name",e)}},{type:"block",blocks:["jetpack/field-email"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-email",e)}},{type:"block",blocks:["jetpack/field-url"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-url",e)}},{type:"block",blocks:["jetpack/field-date"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-date",e)}},{type:"block",blocks:["jetpack/field-telephone"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-telephone",e)}},{type:"block",blocks:["jetpack/field-textarea"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-textarea",e)}},{type:"block",blocks:["jetpack/field-checkbox-multiple"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-checkbox-multiple",e)}},{type:"block",blocks:["jetpack/field-radio"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-radio",e)}},{type:"block",blocks:["jetpack/field-select"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-select",e)}}]},save:function(){return null}},W=function(e){var t=e.attributes,n=e.name;return null===t.label?Object(s.getBlockType)(n).title:t.label},J=function(e){return function(t){return Object(o.createElement)(q,{type:e,label:W(t),required:t.attributes.required,setAttributes:t.setAttributes,isSelected:t.isSelected,defaultValue:t.attributes.defaultValue,placeholder:t.attributes.placeholder,id:t.attributes.id})}},Y=function(e){return function(t){return Object(o.createElement)(K,{label:W(t),required:t.attributes.required,options:t.attributes.options,setAttributes:t.setAttributes,type:e,isSelected:t.isSelected,id:t.attributes.id})}},X=[{name:"field-text",settings:i()({},Z,{title:Object(c.__)("Text","jetpack"),description:Object(c.__)("When you need just a small amount of text, add a text input.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),edit:J("text")})},{name:"field-name",settings:i()({},Z,{title:Object(c.__)("Name","jetpack"),description:Object(c.__)("Introductions are important. Add an input for folks to add their name.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})),edit:J("text")})},{name:"field-email",settings:i()({},Z,{title:Object(c.__)("Email","jetpack"),keywords:[Object(c.__)("e-mail","jetpack"),Object(c.__)("mail","jetpack"),"email"],description:Object(c.__)("Want to reply to folks? Add an email address input.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),edit:J("email")})},{name:"field-url",settings:i()({},Z,{title:Object(c.__)("Website","jetpack"),keywords:["url",Object(c.__)("internet page","jetpack"),"link"],description:Object(c.__)("Add an address input for a website.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"})),edit:J("url")})},{name:"field-date",settings:i()({},Z,{title:Object(c.__)("Date Picker","jetpack"),keywords:[Object(c.__)("Calendar","jetpack"),Object(c.__)("day month year","block search term","jetpack")],description:Object(c.__)("The best way to set a date. Add a date picker.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V9h14v10zm0-12H5V5h14v2zM7 11h5v5H7z"})),edit:J("text")})},{name:"field-telephone",settings:i()({},Z,{title:Object(c.__)("Telephone","jetpack"),keywords:[Object(c.__)("Phone","jetpack"),Object(c.__)("Cellular phone","jetpack"),Object(c.__)("Mobile","jetpack")],description:Object(c.__)("Add a phone number input.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),edit:J("tel")})},{name:"field-textarea",settings:i()({},Z,{title:Object(c.__)("Message","jetpack"),keywords:[Object(c.__)("Textarea","jetpack"),"textarea",Object(c.__)("Multiline text","jetpack")],description:Object(c.__)("Let folks speak their mind. This text box is great for longer responses.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"})),edit:function(e){return Object(o.createElement)(V,{label:W(e),required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id})}})},{name:"field-checkbox",settings:i()({},Z,{title:Object(c.__)("Checkbox","jetpack"),keywords:[Object(c.__)("Confirm","jetpack"),Object(c.__)("Accept","jetpack")],description:Object(c.__)("Add a single checkbox.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})),edit:function(e){return Object(o.createElement)(H,{label:e.attributes.label,required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,id:e.attributes.id})},attributes:i()({},Z.attributes,{label:{type:"string",default:""}})})},{name:"field-checkbox-multiple",settings:i()({},Z,{title:Object(c.__)("Checkbox Group","jetpack"),keywords:[Object(c.__)("Choose Multiple","jetpack"),Object(c.__)("Option","jetpack")],description:Object(c.__)("People love options. Add several checkbox items.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"})),edit:Y("checkbox"),attributes:i()({},Z.attributes,{label:{type:"string",default:"Choose several"}})})},{name:"field-radio",settings:i()({},Z,{title:Object(c.__)("Radio","jetpack"),keywords:[Object(c.__)("Choose","jetpack"),Object(c.__)("Select","jetpack"),Object(c.__)("Option","jetpack")],description:Object(c.__)("Inspired by radios, only one radio item can be selected at a time. Add several radio button items.","jetpack"),icon:Object(N.a)(Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.Path,{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Object(o.createElement)(l.Circle,{cx:"12",cy:"12",r:"5"}))),edit:Y("radio"),attributes:i()({},Z.attributes,{label:{type:"string",default:"Choose one"}})})},{name:"field-select",settings:i()({},Z,{title:Object(c.__)("Select","jetpack"),keywords:[Object(c.__)("Choose","jetpack"),Object(c.__)("Dropdown","jetpack"),Object(c.__)("Option","jetpack")],description:Object(c.__)("Compact, but powerful. Add a select box with several items.","jetpack"),icon:Object(N.a)(Object(o.createElement)(l.Path,{d:"M3 17h18v2H3zm16-5v1H5v-1h14m2-2H3v5h18v-5zM3 6h18v2H3z"})),edit:Y("select"),attributes:i()({},Z.attributes,{label:{type:"string",default:"Select one"}})})}];Object(r.a)("contact-form",$,X)},function(e,t,n){"use strict";n.r(t);var r=n(18),a=n(24),i=n(7),o=n.n(i),c=n(11),s=n.n(c),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(4),m=n.n(d),f=n(10),b=n.n(f),g=n(3),v=n.n(g),j=n(0),k=n(25),y=n.n(k),_=n(1),O=n(2),E=n(6),w=(n(107),n(22)),C=n.n(w),x=n(12),S=n.n(x),A=n(5),M=n(27),T=n(15);function D(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=[],r=0;r0),r)),n.announce(o)}})}},{key:"announce",value:function(e){var t=this.props.debouncedSpeak;t&&(e.length?t(Object(_.sprintf)(Object(_._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"jetpack","jetpack"),e.length),"assertive"):t(Object(_.__)("No results.","jetpack"),"assertive"))}},{key:"render",value:function(){var e=this,t=this.onChange,n=this.onKeyDown,r=this.props,a=r.children,i=r.instanceId,o=r.completer,c=this.state,s=c.selectedIndex,l=c.filteredOptions,u=(l[s]||{}).key,p=void 0===u?"":u,h=o.className,d=l.length>0,m=d?"components-autocomplete-listbox-".concat(i):null,f=d?"components-autocomplete-item-".concat(i,"-").concat(p):null;return Object(j.createElement)("div",{className:"components-autocomplete"},a({isExpanded:d,listBoxId:m,activeId:f,onChange:t,onKeyDown:n}),d&&Object(j.createElement)(O.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0},Object(j.createElement)("div",{id:m,role:"listbox",className:"components-autocomplete__results"},Object(A.map)(l,function(t,n){return Object(j.createElement)(O.Button,{key:t.key,id:"components-autocomplete-item-".concat(i,"-").concat(t.key),role:"option","aria-selected":n===s,disabled:t.isDisabled,className:S()("components-autocomplete__result",h,{"is-selected":n===s}),onClick:function(){return e.select(t)}},t.label)}))))}}]),t}(j.Component),F=Object(T.compose)([O.withSpokenMessages,T.withInstanceId,O.withFocusOutside])(z),N=Object(_.__)("Add a marker…","jetpack"),P=function(e){function t(){var e;return o()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(m()(e),"getOptionCompletion",function(t){var n=t.value,r={placeTitle:n.text,title:n.text,caption:n.place_name,id:n.id,coordinates:{longitude:n.geometry.coordinates[0],latitude:n.geometry.coordinates[1]}};return e.props.onAddPoint(r),n.text}),v()(m()(e),"search",function(t){var n=e.props,r=n.apiKey,a=n.onError,i="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURI(t)+".json?access_token="+r;return new Promise(function(e,t){var n=new XMLHttpRequest;n.open("GET",i),n.onload=function(){if(200===n.status){var r=JSON.parse(n.responseText);e(r.features)}else{var i=JSON.parse(n.responseText);a(i.statusText,i.responseJSON.message),t(new Error("Mapbox Places Error"))}},n.send()})}),v()(m()(e),"onReset",function(){e.textRef.current.value=null}),e.textRef=Object(j.createRef)(),e.containerRef=Object(j.createRef)(),e.state={isEmpty:!0},e.autocompleter={name:"placeSearch",options:e.search,isDebounced:!0,getOptionLabel:function(e){return Object(j.createElement)("span",null,e.place_name)},getOptionKeywords:function(e){return[e.place_name]},getOptionCompletion:e.getOptionCompletion},e}return b()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.containerRef.current.querySelector("input").focus()},50)}},{key:"render",value:function(){var e=this,t=this.props.label;return Object(j.createElement)("div",{ref:this.containerRef},Object(j.createElement)(O.BaseControl,{label:t,className:"components-location-search"},Object(j.createElement)(F,{completer:this.autocompleter,onReset:this.onReset},function(t){var n=t.isExpanded,r=t.listBoxId,a=t.activeId,i=t.onChange,o=t.onKeyDown;return Object(j.createElement)(O.TextControl,{placeholder:N,ref:e.textRef,onChange:i,"aria-expanded":n,"aria-owns":r,"aria-activedescendant":a,onKeyDown:o})})))}}]),t}(j.Component);P.defaultProps={onError:function(){}};var I=P,L=function(e){function t(){return o()(this,t),u()(this,h()(t).apply(this,arguments))}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.onClose,n=e.onAddPoint,r=e.onError,a=e.apiKey;return Object(j.createElement)(O.Button,{className:"component__add-point"},Object(_.__)("Add marker","jetpack"),Object(j.createElement)(O.Popover,{className:"component__add-point__popover"},Object(j.createElement)(O.Button,{className:"component__add-point__close",onClick:t},Object(j.createElement)(O.Dashicon,{icon:"no"})),Object(j.createElement)(I,{onAddPoint:n,label:Object(_.__)("Add a location","jetpack"),apiKey:a,onError:r})))}}]),t}(j.Component);L.defaultProps={onAddPoint:function(){},onClose:function(){},onError:function(){}};var R=L,B=(n(109),function(e){function t(){var e;return o()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(m()(e),"onDeletePoint",function(t){var n=parseInt(t.target.getAttribute("data-id")),r=e.props,a=r.points,i=r.onChange,o=a.slice(0);o.splice(n,1),i(o)}),e.state={selectedCell:null},e}return b()(t,e),s()(t,[{key:"setMarkerField",value:function(e,t,n){var r=this.props,a=r.points,i=r.onChange,o=a.slice(0);o[n][e]=t,i(o)}},{key:"render",value:function(){var e=this,t=this.props.points.map(function(t,n){return Object(j.createElement)(O.PanelBody,{title:t.placeTitle,key:t.id,initialOpen:!1},Object(j.createElement)(O.TextControl,{label:"Marker Title",value:t.title,onChange:function(t){return e.setMarkerField("title",t,n)}}),Object(j.createElement)(O.TextareaControl,{label:"Marker Caption",value:t.caption,rows:"3",onChange:function(t){return e.setMarkerField("caption",t,n)}}),Object(j.createElement)(O.Button,{"data-id":n,onClick:e.onDeletePoint,className:"component__locations__delete-btn"},Object(j.createElement)(O.Dashicon,{icon:"trash",size:"15"})," Delete Marker"))});return Object(j.createElement)("div",{className:"component__locations"},Object(j.createElement)(O.Panel,{className:"component__locations__panel"},t))}}]),t}(j.Component));B.defaultProps={points:Object.freeze([]),onChange:function(){}};var q=B,V=n(56),H=(n(111),function(e){function t(){return o()(this,t),u()(this,h()(t).apply(this,arguments))}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.options,n=e.value,r=e.onChange,a=e.label,i=t.map(function(e,t){var a=S()("component__map-theme-picker__button","is-theme-"+e.value,e.value===n?"is-selected":"");return Object(j.createElement)(O.Button,{className:a,title:e.label,key:t,onClick:function(){return r(e.value)}},e.label)});return Object(j.createElement)("div",{className:"component__map-theme-picker components-base-control"},Object(j.createElement)("label",{className:"components-base-control__label"},a),Object(j.createElement)(O.ButtonGroup,null,i))}}]),t}(j.Component));H.defaultProps={label:"",options:[],value:null,onChange:function(){}};var U=H,G=0,K=function(e){function t(){var e;return o()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(m()(e),"addPoint",function(t){var n=e.props,r=n.attributes,a=n.setAttributes,i=r.points,o=i.slice(0),c=!1;i.map(function(e){e.id===t.id&&(c=!0)}),c||(o.push(t),a({points:o}),e.setState({addPointVisibility:!1}))}),v()(m()(e),"updateAlignment",function(t){e.props.setAttributes({align:t}),setTimeout(e.mapRef.current.sizeMap,0)}),v()(m()(e),"updateAPIKeyControl",function(t){e.setState({apiKeyControl:t})}),v()(m()(e),"updateAPIKey",function(){var t=e.props.noticeOperations,n=e.state.apiKeyControl;t.removeAllNotices(),n&&e.apiCall(n,"POST")}),v()(m()(e),"removeAPIKey",function(){e.apiCall(null,"DELETE")}),v()(m()(e),"onError",function(t,n){var r=e.props.noticeOperations;r.removeAllNotices(),r.createErrorNotice(n)}),e.state={addPointVisibility:!1,apiState:G},e.mapRef=Object(j.createRef)(),e}return b()(t,e),s()(t,[{key:"apiCall",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=this.props.noticeOperations,a=this.state.apiKey,i="/wpcom/v2/service-api-keys/mapbox",o=t?{path:i,method:n,data:{service_api_key:t}}:{path:i,method:n};this.setState({apiRequestOutstanding:!0},function(){y()(o).then(function(t){r.removeAllNotices(),e.setState({apiState:t.service_api_key?2:1,apiKey:t.service_api_key,apiKeyControl:t.service_api_key,apiRequestOutstanding:!1})},function(t){e.onError(null,t.message),e.setState({apiRequestOutstanding:!1,apiKeyControl:a})})})}},{key:"componentDidMount",value:function(){this.apiCall()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.setAttributes,i=t.attributes,o=t.noticeUI,c=t.notices,s=i.mapStyle,l=i.mapDetails,u=i.points,p=i.zoom,h=i.mapCenter,d=i.markerColor,m=i.align,f=this.state,b=f.addPointVisibility,g=f.apiKey,v=f.apiKeyControl,k=f.apiState,y=f.apiRequestOutstanding,w=Object(j.createElement)(j.Fragment,null,Object(j.createElement)(E.BlockControls,null,Object(j.createElement)(E.BlockAlignmentToolbar,{value:m,onChange:this.updateAlignment,controls:["center","wide","full"]}),Object(j.createElement)(O.Toolbar,null,Object(j.createElement)(O.IconButton,{icon:a.a.markerIcon,label:"Add a marker",onClick:function(){return e.setState({addPointVisibility:!0})}}))),Object(j.createElement)(E.InspectorControls,null,Object(j.createElement)(O.PanelBody,{title:Object(_.__)("Map Theme","jetpack")},Object(j.createElement)(U,{value:s,onChange:function(e){return r({mapStyle:e})},options:a.a.mapStyleOptions}),Object(j.createElement)(O.ToggleControl,{label:Object(_.__)("Show street names","jetpack"),checked:l,onChange:function(e){return r({mapDetails:e})}})),Object(j.createElement)(E.PanelColorSettings,{title:Object(_.__)("Colors","jetpack"),initialOpen:!0,colorSettings:[{value:d,onChange:function(e){return r({markerColor:e})},label:"Marker Color"}]}),u.length?Object(j.createElement)(O.PanelBody,{title:Object(_.__)("Markers","jetpack"),initialOpen:!1},Object(j.createElement)(q,{points:u,onChange:function(e){r({points:e})}})):null,Object(j.createElement)(O.PanelBody,{title:Object(_.__)("Mapbox Access Token","jetpack"),initialOpen:!1},Object(j.createElement)(O.TextControl,{label:Object(_.__)("Mapbox Access Token","jetpack"),value:v,onChange:function(t){return e.setState({apiKeyControl:t})}}),Object(j.createElement)(O.ButtonGroup,null,Object(j.createElement)(O.Button,{type:"button",onClick:this.updateAPIKey,isDefault:!0},Object(_.__)("Update Token","jetpack")),Object(j.createElement)(O.Button,{type:"button",onClick:this.removeAPIKey,isDefault:!0},Object(_.__)("Remove Token","jetpack")))))),C=Object(j.createElement)(O.Placeholder,{icon:a.a.icon},Object(j.createElement)(O.Spinner,null)),x=Object(j.createElement)(O.Placeholder,{icon:a.a.icon,label:Object(_.__)("Map","jetpack"),notices:c},Object(j.createElement)(j.Fragment,null,Object(j.createElement)("div",{className:"components-placeholder__instructions"},Object(_.__)("To use the map block, you need an Access Token.","jetpack"),Object(j.createElement)("br",null),Object(j.createElement)(O.ExternalLink,{href:"https://www.mapbox.com"},Object(_.__)("Create an account or log in to Mapbox.","jetpack")),Object(j.createElement)("br",null),Object(_.__)("Locate and copy the default access token. Then, paste it into the field below.","jetpack")),Object(j.createElement)(O.TextControl,{className:"wp-block-jetpack-map-components-text-control-api-key",disabled:y,placeholder:Object(_.__)("Paste Token Here","jetpack"),value:v,onChange:this.updateAPIKeyControl}),Object(j.createElement)(O.Button,{className:"wp-block-jetpack-map-components-text-control-api-key-submit",isLarge:!0,disabled:y||!v||v.length<1,onClick:this.updateAPIKey},Object(_.__)("Set Token","jetpack")))),S=Object(j.createElement)(j.Fragment,null,w,Object(j.createElement)("div",{className:n},Object(j.createElement)(V.a,{ref:this.mapRef,mapStyle:s,mapDetails:l,points:u,zoom:p,mapCenter:h,markerColor:d,onSetZoom:function(e){r({zoom:e})},admin:!0,apiKey:g,onSetPoints:function(e){return r({points:e})},onMapLoaded:function(){return e.setState({addPointVisibility:!0})},onMarkerClick:function(){return e.setState({addPointVisibility:!1})},onError:this.onError},b&&Object(j.createElement)(R,{onAddPoint:this.addPoint,onClose:function(){return e.setState({addPointVisibility:!1})},apiKey:g,onError:this.onError,tagName:"AddPoint"}))));return Object(j.createElement)(j.Fragment,null,o,k===G&&C,1===k&&x,2===k&&S)}}]),t}(j.Component),$=Object(O.withNotices)(K),Z=function(e){function t(){return o()(this,t),u()(this,h()(t).apply(this,arguments))}return b()(t,e),s()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.mapStyle,r=e.mapDetails,a=e.points,i=e.zoom,o=e.mapCenter,c=e.markerColor,s=a.map(function(e,t){var n=e.coordinates,r=n.longitude,a="https://www.google.com/maps/search/?api=1&query="+n.latitude+","+r;return Object(j.createElement)("li",{key:t},Object(j.createElement)("a",{href:a},e.title))}),l=t?"align".concat(t):null;return Object(j.createElement)("div",{className:l,"data-map-style":n,"data-map-details":r,"data-points":JSON.stringify(a),"data-zoom":i,"data-map-center":JSON.stringify(o),"data-marker-color":c},a.length>0&&Object(j.createElement)("ul",null,s))}}]),t}(j.Component),W=(n(72),n(113),a.a.name),J={title:a.a.title,icon:a.a.icon,category:a.a.category,keywords:a.a.keywords,description:a.a.description,attributes:a.a.attributes,supports:a.a.supports,getEditWrapperProps:function(e){var t=e.align;if(-1!==a.a.validAlignments.indexOf(t))return{"data-align":t}},edit:$,save:Z};Object(r.a)(W,J)},function(e,t,n){"use strict";n.r(t);var r=n(18),a=n(0),i=n(1),o=n(2),c=n(7),s=n.n(c),l=n(11),u=n.n(l),p=n(8),h=n.n(p),d=n(9),m=n.n(d),f=n(4),b=n.n(f),g=n(10),v=n.n(g),j=n(3),k=n.n(j),y=n(12),_=n.n(y),O=n(36),E=n.n(O),w=n(15),C=n(14),x=n(5),S=n(60),A=n(26),M=n.n(A),T=n(34),D=n.n(T),z=n(50),F=n.n(z),N=(n(179),function(e){var t=e.children,n=void 0===t?null:t,r=e.isError,i=void 0!==r&&r,o=D()(e,["children","isError"]),c=_()("simple-payments__help-message",{"simple-payments__help-message-is-error":i});return n&&Object(a.createElement)("div",M()({className:c},o),i&&Object(a.createElement)(F.a,{size:"24"}),Object(a.createElement)("span",null,n))}),P=(n(181),n(87)),I=n.n(P),L=n(88),R=n.n(L),B=function(e){var t=e.title,n=void 0===t?"":t,r=e.content,o=void 0===r?"":r,c=e.formattedPrice,s=void 0===c?"":c,l=e.multiple,u=void 0!==l&&l,p=e.featuredMediaUrl,h=void 0===p?null:p,d=e.featuredMediaTitle,m=void 0===d?null:d;return Object(a.createElement)("div",{className:"jetpack-simple-payments-wrapper"},Object(a.createElement)("div",{className:"jetpack-simple-payments-product"},h&&Object(a.createElement)("div",{className:"jetpack-simple-payments-product-image"},Object(a.createElement)("figure",{className:"jetpack-simple-payments-image"},Object(a.createElement)("img",{src:h,alt:m}))),Object(a.createElement)("div",{className:"jetpack-simple-payments-details"},n&&Object(a.createElement)("div",{className:"jetpack-simple-payments-title"},Object(a.createElement)("p",null,n)),o&&Object(a.createElement)("div",{className:"jetpack-simple-payments-description"},Object(a.createElement)("p",null,o)),s&&Object(a.createElement)("div",{className:"jetpack-simple-payments-price"},Object(a.createElement)("p",null,s)),Object(a.createElement)("div",{className:"jetpack-simple-payments-purchase-box"},u&&Object(a.createElement)("div",{className:"jetpack-simple-payments-items"},Object(a.createElement)("input",{className:"jetpack-simple-payments-items-number",readOnly:!0,type:"number",value:"1"})),Object(a.createElement)("div",{className:"jetpack-simple-payments-button"},Object(a.createElement)("img",{alt:Object(i.__)("Pay with PayPal","jetpack"),src:I.a,srcSet:"".concat(R.a," 2x")}))))))},q=n(6),V=function(e){return function(t){return e({featuredMediaId:Object(x.get)(t,"id",0),featuredMediaUrl:Object(x.get)(t,"url",null),featuredMediaTitle:Object(x.get)(t,"title",null)})}},H=function(e){var t=e.featuredMediaId,n=e.featuredMediaUrl,r=e.featuredMediaTitle,c=e.setAttributes;return t?Object(a.createElement)("div",null,Object(a.createElement)(a.Fragment,null,Object(a.createElement)(q.BlockControls,null,Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(q.MediaUpload,{onSelect:V(c),allowedTypes:["image"],value:t,render:function(e){var t=e.open;return Object(a.createElement)(o.IconButton,{className:"components-toolbar__control",label:Object(i.__)("Edit Image","jetpack"),icon:"edit",onClick:t})}}),Object(a.createElement)(o.ToolbarButton,{icon:"trash",title:Object(i.__)("Remove Image","jetpack"),onClick:function(){return c({featuredMediaId:null,featuredMediaUrl:null,featuredMediaTitle:null})}}))),Object(a.createElement)("figure",null,Object(a.createElement)("img",{src:n,alt:r})))):Object(a.createElement)(q.MediaPlaceholder,{icon:"format-image",labels:{title:Object(i.__)("Product Image","jetpack")},accept:"image/*",allowedTypes:["image"],onSelect:V(c)})},U=["USD","EUR","AUD","BRL","CAD","CZK","DKK","HKD","HUF","ILS","JPY","MYR","MXN","TWD","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB"],G=function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},K=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(S.a)(t),a=r.precision,i=r.symbol,o=e.toFixed(a);return n?"".concat(o," ").concat(Object(x.trimEnd)(i,".")):o},$=function(e){function t(){var e,n;s()(this,t);for(var r=arguments.length,a=new Array(r),o=0;oa?0===a?(n.setState({fieldPriceError:Object(i.__)("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")}),!1):(n.setState({fieldPriceError:Object(i.sprintf)(Object(i._n)("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",a,"jetpack"),a)}),!1):(n.state.fieldPriceError&&n.setState({fieldPriceError:null}),!0):(n.setState({fieldPriceError:Object(i.__)("If you’re selling something, you need a price tag. Add yours here.","jetpack")}),!1)}),k()(b()(n),"validateEmail",function(){var e=n.props.attributes.email;return e?E.a.validate(e)?(n.state.fieldEmailError&&n.setState({fieldEmailError:null}),!0):(n.setState({fieldEmailError:Object(i.sprintf)(Object(i.__)("%s is not a valid email address.","jetpack"),e)}),!1):(n.setState({fieldEmailError:Object(i.__)("We want to make sure payments reach you, so please add an email address.","jetpack")}),!1)}),k()(b()(n),"validateTitle",function(){return n.props.attributes.title?(n.state.fieldTitleError&&n.setState({fieldTitleError:null}),!0):(n.setState({fieldTitleError:Object(i.__)("Please add a brief title so that people know what they’re paying for.","jetpack")}),!1)}),k()(b()(n),"handleEmailChange",function(e){n.props.setAttributes({email:e}),n.setState({fieldEmailError:null})}),k()(b()(n),"handleFeaturedMediaSelect",function(e){n.props.setAttributes({featuredMediaId:Object(x.get)(e,"id",0)})}),k()(b()(n),"handleContentChange",function(e){n.props.setAttributes({content:e})}),k()(b()(n),"handlePriceChange",function(e){e=parseFloat(e),isNaN(e)?n.props.setAttributes({price:void 0}):n.props.setAttributes({price:e}),n.setState({fieldPriceError:null})}),k()(b()(n),"handleCurrencyChange",function(e){n.props.setAttributes({currency:e})}),k()(b()(n),"handleMultipleChange",function(e){n.props.setAttributes({multiple:!!e})}),k()(b()(n),"handleTitleChange",function(e){n.props.setAttributes({title:e}),n.setState({fieldTitleError:null})}),k()(b()(n),"getCurrencyList",U.map(function(e){var t=Object(S.a)(e).symbol;return{value:e,label:t===e?e:"".concat(e," ").concat(Object(x.trimEnd)(t,"."))}})),n}return v()(t,e),u()(t,[{key:"componentDidMount",value:function(){this.injectPaymentAttributes();var e=this.props,t=e.attributes,n=e.hasPublishAction;!t.productId&&n&&this.saveProduct()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.hasPublishAction,r=t.isSelected;Object(x.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),!e.isSaving&&this.props.isSaving&&n&&this.validateAttributes()?this.saveProduct():e.isSelected&&!r&&this.validateAttributes()}},{key:"injectPaymentAttributes",value:function(){var e=this.props.simplePayment;if(this.shouldInjectPaymentAttributes&&!Object(x.isEmpty)(e)){var t=this.props,n=t.attributes,r=t.setAttributes,a=n.content,i=n.currency,o=n.email,c=n.featuredMediaId,s=n.multiple,l=n.price,u=n.title;r({content:Object(x.get)(e,["content","raw"],a),currency:Object(x.get)(e,["meta","spay_currency"],i),email:Object(x.get)(e,["meta","spay_email"],o),featuredMediaId:Object(x.get)(e,["featured_media"],c),multiple:Boolean(Object(x.get)(e,["meta","spay_multiple"],Boolean(s))),price:Object(x.get)(e,["meta","spay_price"],l||void 0),title:Object(x.get)(e,["title","raw"],u)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes}}},{key:"toApi",value:function(){var e=this.props.attributes,t=e.content,n=e.currency,r=e.email,a=e.featuredMediaId,i=e.multiple,o=e.price,c=e.productId;return{id:c,content:t,featured_media:a,meta:{spay_currency:n,spay_email:r,spay_multiple:i,spay_price:o},status:c?"publish":"draft",title:e.title}}},{key:"saveProduct",value:function(){var e=this;if(!this.state.isSavingProduct){var t=this.props,n=t.attributes,r=t.setAttributes,a=n.email,o=Object(C.dispatch)("core").saveEntityRecord;this.setState({isSavingProduct:!0},function(){o("postType","jp_pay_product",e.toApi()).then(function(e){return e&&r({productId:e.id}),e}).catch(function(t){if(t&&t.data){var n=t.data.key;e.setState({fieldEmailError:"spay_email"===n?Object(i.sprintf)(Object(i.__)("%s is not a valid email address.","jetpack"),a):null,fieldPriceError:"spay_price"===n?Object(i.__)("Invalid price.","jetpack"):null})}}).finally(function(){e.setState({isSavingProduct:!1})})})}}},{key:"render",value:function(){var e=this.state,t=e.fieldEmailError,n=e.fieldPriceError,r=e.fieldTitleError,c=this.props,s=c.attributes,l=c.featuredMedia,u=c.instanceId,p=c.isSelected,h=c.setAttributes,d=c.simplePayment,m=s.content,f=s.currency,b=s.email,g=s.featuredMediaId,v=s.featuredMediaUrl,j=s.featuredMediaTitle,k=s.multiple,y=s.price,O=s.productId,E=s.title,w=v||l&&l.source_url,C=j||l&&l.alt_text,S=O&&Object(x.isEmpty)(d);if(!p&&S)return Object(a.createElement)("div",{className:"simple-payments__loading"},Object(a.createElement)(B,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!p&&b&&y&&E&&!t&&!n&&!r)return Object(a.createElement)(B,{"aria-busy":"false",content:m,featuredMediaUrl:w,featuredMediaTitle:C,formattedPrice:K(y,f),multiple:k,title:E});var A=S?o.Disabled:"div";return Object(a.createElement)(A,{className:"wp-block-jetpack-simple-payments"},Object(a.createElement)(H,{featuredMediaId:g,featuredMediaUrl:w,featuredMediaTitle:C,setAttributes:h}),Object(a.createElement)("div",null,Object(a.createElement)(o.TextControl,{"aria-describedby":"".concat(u,"-title-error"),className:_()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":r}),label:Object(i.__)("Item name","jetpack"),onChange:this.handleTitleChange,placeholder:Object(i.__)("Item name","jetpack"),required:!0,type:"text",value:E}),Object(a.createElement)(N,{id:"".concat(u,"-title-error"),isError:!0},r),Object(a.createElement)(o.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:Object(i.__)("Describe your item in a few words","jetpack"),onChange:this.handleContentChange,placeholder:Object(i.__)("Describe your item in a few words","jetpack"),value:m}),Object(a.createElement)("div",{className:"simple-payments__price-container"},Object(a.createElement)(o.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:Object(i.__)("Currency","jetpack"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:f}),Object(a.createElement)(o.TextControl,{"aria-describedby":"".concat(u,"-price-error"),className:_()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":n}),label:Object(i.__)("Price","jetpack"),onChange:this.handlePriceChange,placeholder:K(0,f,!1),required:!0,step:"1",type:"number",value:y||""}),Object(a.createElement)(N,{id:"".concat(u,"-price-error"),isError:!0},n)),Object(a.createElement)("div",{className:"simple-payments__field-multiple"},Object(a.createElement)(o.ToggleControl,{checked:Boolean(k),label:Object(i.__)("Allow people to buy more than one item at a time","jetpack"),onChange:this.handleMultipleChange})),Object(a.createElement)(o.TextControl,{"aria-describedby":"".concat(u,"-email-").concat(t?"error":"help"),className:_()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":t}),label:Object(i.__)("Email","jetpack"),onChange:this.handleEmailChange,placeholder:Object(i.__)("Email","jetpack"),required:!0,type:"email",value:b}),Object(a.createElement)(N,{id:"".concat(u,"-email-error"),isError:!0},t),Object(a.createElement)(N,{id:"".concat(u,"-email-help")},Object(i.__)("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",Object(a.createElement)(o.ExternalLink,{href:"https://www.paypal.com/"},Object(i.__)("Create one on PayPal","jetpack")))))}}]),t}(a.Component),Z=Object(C.withSelect)(function(e,t){var n=e("core"),r=n.getEntityRecord,a=n.getMedia,i=e("core/editor"),o=i.isSavingPost,c=i.getCurrentPost,s=t.attributes,l=s.productId,u=s.featuredMediaId,p=l?Object(x.pick)(r("postType","jp_pay_product",l),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0;return{hasPublishAction:!!Object(x.get)(c(),["_links","wp:action-publish"]),isSaving:!!o(),simplePayment:p,featuredMedia:u?a(u):null}}),W=Object(w.compose)(Z,w.withInstanceId)($);n(183);var J={title:Object(i.__)("Simple Payments button","jetpack"),description:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(i.__)("Lets you create and embed credit and debit card payment buttons with minimal setup.","jetpack")),Object(a.createElement)(o.ExternalLink,{href:"https://support.wordpress.com/simple-payments/"},Object(i.__)("Support reference","jetpack"))),icon:Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),category:"jetpack",keywords:[Object(i._x)("shop","block search term","jetpack"),Object(i._x)("sell","block search term","jetpack"),"PayPal"],attributes:{currency:{type:"string",default:"USD"},content:{type:"string",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",default:null},featuredMediaTitle:{type:"string",default:null},multiple:{type:"boolean",default:!1},price:{type:"number"},productId:{type:"number"},title:{type:"string",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:function(e){var t=e.named.id;if(t){var n=parseInt(t,10);return n||void 0}}}}}]},edit:W,save:function(e){var t=e.attributes.productId;return t?Object(a.createElement)(a.RawHTML,null,'[simple-payment id="'.concat(t,'"]')):null},supports:{className:!1,customClassName:!1,html:!1,reusable:!1}};Object(r.a)("simple-payments",J)},function(e,t,n){"use strict";n.r(t);var r=n(18),a=n(0),i=n(1),o=n(2),c=n(13),s=n.n(c),l=n(22),u=n.n(l),p=n(7),h=n.n(p),d=n(11),m=n.n(d),f=n(8),b=n.n(f),g=n(9),v=n.n(g),j=n(4),k=n.n(j),y=n(10),_=n.n(y),O=n(3),E=n.n(O),w=n(15),C=n(5),x=n(23),S=n(14),A=n(6),M=n(12),T=n.n(M),D=n(31),z=n(54),F=n(29),N=function(e){function t(e){var n;return h()(this,t),n=b()(this,v()(t).call(this,e)),E()(k()(n),"pendingRequestAnimationFrame",null),E()(k()(n),"resizeObserver",null),E()(k()(n),"initializeResizeObserver",function(e){n.clearResizeObserver(),n.resizeObserver=new D.a(function(){n.clearPendingRequestAnimationFrame(),n.pendingRequestAnimationFrame=requestAnimationFrame(function(){Object(F.d)(e),e.update()})}),n.resizeObserver.observe(e.el)}),E()(k()(n),"clearPendingRequestAnimationFrame",function(){n.pendingRequestAnimationFrame&&(cancelAnimationFrame(n.pendingRequestAnimationFrame),n.pendingRequestAnimationFrame=null)}),E()(k()(n),"clearResizeObserver",function(){n.resizeObserver&&(n.resizeObserver.disconnect(),n.resizeObserver=null)}),E()(k()(n),"prefersReducedMotion",function(){return"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}),E()(k()(n),"buildSwiper",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Object(z.a)(n.slideshowRef.current,{autoplay:!(!n.props.autoplay||n.prefersReducedMotion())&&{delay:1e3*n.props.delay,disableOnInteraction:!1},effect:n.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:n.btnNextRef.current,prevEl:n.btnPrevRef.current},pagination:{clickable:!0,el:n.paginationRef.current,type:"bullets"}},{init:F.b,imagesReady:F.d,paginationRender:F.c,transitionEnd:F.a})}),n.slideshowRef=Object(a.createRef)(),n.btnNextRef=Object(a.createRef)(),n.btnPrevRef=Object(a.createRef)(),n.paginationRef=Object(a.createRef)(),n}return _()(t,e),m()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.onError;this.buildSwiper().then(function(t){e.swiperInstance=t,e.initializeResizeObserver(t)}).catch(function(){t(Object(i.__)("The Swiper library could not be loaded.","jetpack"))})}},{key:"componentWillUnmount",value:function(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}},{key:"componentDidUpdate",value:function(e){var t,n=this,r=this.props,a=r.align,o=r.autoplay,c=r.delay,s=r.effect,l=r.images,u=r.onError;(a===e.align&&Object(C.isEqual)(l,e.images)||this.swiperInstance&&this.swiperInstance.update(),s!==e.effect||o!==e.autoplay||c!==e.delay||l!==e.images)&&(t=this.swiperIndex?l.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then(function(e){n.swiperInstance=e,n.initializeResizeObserver(e)}).catch(function(){u(Object(i.__)("The Swiper library could not be loaded.","jetpack"))}))}},{key:"render",value:function(){var e=this.props,t=e.autoplay,n=e.className,r=e.delay,i=e.effect,c=e.images;return Object(a.createElement)("div",{className:n,"data-autoplay":t||null,"data-delay":t?r:null,"data-effect":i},Object(a.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},Object(a.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrappper swiper-wrapper"},c.map(function(e){var t=e.alt,n=e.caption,r=e.id,i=e.url;return Object(a.createElement)("li",{className:T()("wp-block-jetpack-slideshow_slide","swiper-slide",Object(x.isBlobURL)(i)&&"is-transient"),key:r},Object(a.createElement)("figure",null,Object(a.createElement)("img",{alt:t,className:"wp-block-jetpack-slideshow_image wp-image-".concat(r),"data-id":r,src:i}),Object(x.isBlobURL)(i)&&Object(a.createElement)(o.Spinner,null),n&&Object(a.createElement)(A.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:n})))})),Object(a.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),Object(a.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),Object(a.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),Object(a.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}}]),t}(a.Component);E()(N,"defaultProps",{effect:"slide"});var P=N,I=(n(185),["image"]),L=[{label:Object(i._x)("Slide","Slideshow transition effect","jetpack"),value:"slide"},{label:Object(i._x)("Fade","Slideshow transition effect","jetpack"),value:"fade"}],R=function(e){return Object(C.pick)(e,["alt","id","link","url","caption"])},B=function(e){function t(){var e;return h()(this,t),e=b()(this,v()(t).apply(this,arguments)),E()(k()(e),"onSelectImages",function(t){var n=t.map(function(e){return R(e)});e.setAttributes({images:n})}),E()(k()(e),"onRemoveImage",function(t){return function(){var n=Object(C.filter)(e.props.attributes.images,function(e,n){return t!==n});e.setState({selectedImage:null}),e.setAttributes({images:n})}}),E()(k()(e),"addFiles",function(t){var n=e.props.attributes.images||[],r=e.props,a=r.lockPostSaving,i=r.unlockPostSaving,o=r.noticeOperations;a("slideshowBlockLock"),Object(A.mediaUpload)({allowedTypes:I,filesList:t,onFileChange:function(t){var r=t.map(function(e){return R(e)});e.setAttributes({images:[].concat(u()(n),u()(r))}),r.every(function(e){return Object(x.isBlobURL)(e.url)})||i("slideshowBlockLock")},onError:o.createErrorNotice})}),E()(k()(e),"uploadFromFiles",function(t){return e.addFiles(t.target.files)}),e.state={selectedImage:null},e}return _()(t,e),m()(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=s()({},e,{ids:e.images.map(function(e){var t=e.id;return parseInt(t,10)})})),this.props.setAttributes(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,c=e.noticeOperations,s=e.noticeUI,l=e.setAttributes,u=t.align,p=t.autoplay,h=t.delay,d=t.effect,m=t.images,f="undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,b=Object(a.createElement)(a.Fragment,null,Object(a.createElement)(A.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Autoplay","jetpack")},Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Autoplay","jetpack"),help:Object(i.__)("Autoplay between slides","jetpack"),checked:p,onChange:function(e){l({autoplay:e})}}),p&&Object(a.createElement)(o.RangeControl,{label:Object(i.__)("Delay between transitions (in seconds)","jetpack"),value:h,onChange:function(e){l({delay:e})},min:1,max:5}),p&&f&&Object(a.createElement)("span",null,Object(i.__)("The Reduce Motion accessibility option is selected, therefore autoplay will be disabled in this browser.","jetpack"))),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Effects","jetpack")},Object(a.createElement)(o.SelectControl,{label:Object(i.__)("Transition effect","jetpack"),value:d,onChange:function(e){l({effect:e})},options:L}))),Object(a.createElement)(A.BlockControls,null,!!m.length&&Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(A.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:I,multiple:!0,gallery:!0,value:m.map(function(e){return e.id}),render:function(e){var t=e.open;return Object(a.createElement)(o.IconButton,{className:"components-toolbar__control",label:Object(i.__)("Edit Slideshow","jetpack"),icon:"edit",onClick:t})}}))));return 0===m.length?Object(a.createElement)(a.Fragment,null,b,Object(a.createElement)(A.MediaPlaceholder,{icon:Object(a.createElement)(A.BlockIcon,{icon:G}),className:n,labels:{title:Object(i.__)("Slideshow","jetpack"),instructions:Object(i.__)("Drag images, upload new ones or select files from your library.","jetpack")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:I,multiple:!0,notices:s,onError:c.createErrorNotice})):Object(a.createElement)(a.Fragment,null,b,s,Object(a.createElement)(P,{align:u,autoplay:p,className:n,delay:h,effect:d,images:m,onError:c.createErrorNotice}),Object(a.createElement)(o.DropZone,{onFilesDrop:this.addFiles}),r&&Object(a.createElement)("div",{className:"wp-block-jetpack-slideshow__add-item"},Object(a.createElement)(o.FormFileUpload,{multiple:!0,isLarge:!0,className:"wp-block-jetpack-slideshow__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(i.__)("Upload an image","jetpack"))))}}]),t}(a.Component),q=Object(w.compose)(Object(S.withDispatch)(function(e){var t=e("core/editor");return{lockPostSaving:t.lockPostSaving,unlockPostSaving:t.unlockPostSaving}}),o.withNotices)(B),V=n(16);function H(e){return Object(C.filter)(e,function(e){var t=e.id,n=e.url;return t&&n})}var U={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:function(e){return H(e).length>0},transform:function(e){var t=H(e);return Object(V.createBlock)("jetpack/slideshow",{images:t.map(function(e){return{alt:e.alt,caption:e.caption,id:e.id,url:e.url}}),ids:t.map(function(e){return e.id})})}},{type:"block",blocks:["core/gallery","jetpack/tiled-gallery"],transform:function(e){var t=H(e.images);return t.length>0?Object(V.createBlock)("jetpack/slideshow",{images:t.map(function(e){return{alt:e.alt,caption:e.caption,id:e.id,url:e.url}}),ids:t.map(function(e){return e.id})}):Object(V.createBlock)("jetpack/slideshow")}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.ids;return Object(V.createBlock)("core/gallery",{images:t,ids:n})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.images;return t.length>0?t.map(function(e){var t=e.id,n=e.url,r=e.alt,a=e.caption;return Object(V.createBlock)("core/image",{id:t,url:n,alt:r,caption:a})}):Object(V.createBlock)("core/image")}}]},G=Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(a.createElement)(o.Path,{d:"M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})),K={title:Object(i.__)("Slideshow","jetpack"),category:"jetpack",keywords:[Object(i._x)("image","block search term","jetpack"),Object(i._x)("gallery","block search term","jetpack"),Object(i._x)("slider","block search term","jetpack")],description:Object(i.__)("Add an interactive slideshow.","jetpack"),attributes:{align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"}}},effect:{type:"string",default:"slide"}},supports:{align:["center","wide","full"],html:!1},icon:G,edit:q,save:function(e){var t=e.attributes,n=t.align,r=t.autoplay,i=t.delay,o=t.effect,c=t.images,s=e.className;return Object(a.createElement)(P,{align:n,autoplay:r,className:s,delay:i,effect:o,images:c})},transforms:U};Object(r.a)("slideshow",K)},function(e,t,n){"use strict";n.r(t);var r=n(18),a=n(0),i=n(1),o=n(2),c=(n(92),n(26)),s=n.n(c),l=n(7),u=n.n(l),p=n(11),h=n.n(p),d=n(8),m=n.n(d),f=n(9),b=n.n(f),g=n(4),v=n.n(g),j=n(10),k=n.n(j),y=n(3),_=n.n(y),O=n(25),E=n.n(O),w=n(12),C=n.n(w),x=n(49),S=n(6),A=n(13),M=n.n(A),T=n(5),D="09:00",z="17:00",F=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,c=new Array(r),s=0;s1&&Object(a.createElement)(o.IconButton,{isSmall:!0,isLink:!0,icon:"trash",onClick:function(){n.removeInterval(t)}}))),t===r.hours.length-1&&Object(a.createElement)("div",{className:"business-hours__row business-hours-row__add"},Object(a.createElement)("div",{className:C()(r.name,"business-hours__day")}," "),Object(a.createElement)("div",{className:C()(r.name,"business-hours__hours")},Object(a.createElement)(o.IconButton,{isLink:!0,label:Object(i.__)("Add Hours","jetpack"),onClick:n.addInterval},Object(i.__)("Add Hours","jetpack"))),Object(a.createElement)("div",{className:"business-hours__remove"}," ")))}),_()(v()(n),"setHour",function(e,t,r){var a=n.props,i=a.day,o=a.attributes;(0,a.setAttributes)({days:o.days.map(function(n){return n.name===i.name?M()({},n,{hours:n.hours.map(function(n,a){return a===r?M()({},n,_()({},t,e)):n})}):n})})}),_()(v()(n),"toggleClosed",function(e){var t=n.props,r=t.day,a=t.attributes;(0,t.setAttributes)({days:a.days.map(function(t){if(t.name===r.name){var n=e?[{opening:D,closing:z}]:[];return M()({},t,{hours:n})}return t})})}),_()(v()(n),"addInterval",function(){var e=n.props,t=e.day,r=e.attributes,a=e.setAttributes,i=r.days;t.hours.push({opening:"",closing:""}),a({days:i.map(function(e){return e.name===t.name?M()({},e,{hours:t.hours}):e})})}),_()(v()(n),"removeInterval",function(e){var t=n.props,r=t.day,a=t.attributes;(0,t.setAttributes)({days:a.days.map(function(t){return r.name===t.name?M()({},t,{hours:t.hours.filter(function(t,n){return e!==n})}):t})})}),n}return k()(t,e),h()(t,[{key:"isClosed",value:function(){var e=this.props.day;return Object(T.isEmpty)(e.hours)}},{key:"renderDayToggle",value:function(){var e=this.props,t=e.day,n=e.localization;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:"business-hours__day-name"},n.days[t.name]),Object(a.createElement)(o.ToggleControl,{label:this.isClosed()?Object(i.__)("Closed","jetpack"):Object(i.__)("Open","jetpack"),checked:!this.isClosed(),onChange:this.toggleClosed}))}},{key:"renderClosed",value:function(){var e=this.props.day;return Object(a.createElement)("div",{className:"business-hours__row business-hours-row__closed"},Object(a.createElement)("div",{className:C()(e.name,"business-hours__day")},this.renderDayToggle()),Object(a.createElement)("div",{className:C()(e.name,"closed","business-hours__hours")}," "),Object(a.createElement)("div",{className:"business-hours__remove"}," "))}},{key:"render",value:function(){var e=this.props.day;return this.isClosed()?this.renderClosed():e.hours.map(this.renderInterval)}}]),t}(a.Component),N=n(21),P=n.n(N),I=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),c=0;c0)return n.props.setAttributes({threshold:+e}),void n.setState({isThresholdValid:!0});n.setState({isThresholdValid:!1})}),n}return j()(t,e),p()(t,[{key:"getNoticeLabel",value:function(){return this.props.attributes.criteria===C.b?Object(i.sprintf)(Object(i._n)("This block will only appear to people who have visited this page more than once.","This block will only appear to people who have visited this page more than %d times.",+this.props.attributes.threshold,"jetpack"),this.props.attributes.threshold):Object(i.sprintf)(Object(i._n)("This block will only appear to people who are visiting this page for the first time.","This block will only appear to people who have visited this page at most %d times.",+this.props.attributes.threshold,"jetpack"),this.props.attributes.threshold)}},{key:"render",value:function(){return Object(a.createElement)("div",{className:w()(this.props.className,{"wp-block-jetpack-repeat-visitor--is-unselected":!this.props.isSelected})},Object(a.createElement)(o.Placeholder,{icon:M,label:Object(i.__)("Repeat Visitor","jetpack"),className:"wp-block-jetpack-repeat-visitor-placeholder"},Object(a.createElement)(o.TextControl,{className:"wp-block-jetpack-repeat-visitor-threshold",defaultValue:this.props.attributes.threshold,help:this.state.isThresholdValid?"":Object(i.__)("Please enter a valid number.","jetpack"),label:Object(i.__)("Visit count threshold","jetpack"),min:"1",onChange:this.setThreshold,pattern:"[0-9]",type:"number"}),Object(a.createElement)(o.RadioControl,{label:Object(i.__)("Visibility","jetpack"),selected:this.props.attributes.criteria,options:x,onChange:this.setCriteria})),Object(a.createElement)(o.Notice,{status:"info",isDismissible:!1},this.getNoticeLabel()),Object(a.createElement)(_.InnerBlocks,null))}}]),t}(a.Component),A=Object(O.withSelect)(function(e,t){var n=e("core/editor"),r=n.isBlockSelected,a=n.hasSelectedInnerBlock;return{isSelected:r(t.clientId)||a(t.clientId)}})(S),M=(n(175),Object(c.a)(Object(a.createElement)(o.Path,{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}))),T={attributes:{criteria:{type:"string",default:C.b},threshold:{type:"number",default:C.d}},category:"jetpack",description:Object(i.__)("Control block visibility based on how often a visitor has viewed the page.","jetpack"),icon:M,keywords:[Object(i._x)("return","block search term","jetpack"),Object(i._x)("visitors","block search term","jetpack"),Object(i._x)("visibility","block search term","jetpack")],supports:{html:!1},title:Object(i.__)("Repeat Visitor","jetpack"),edit:A,save:function(e){var t=e.className;return Object(a.createElement)("div",{className:t},Object(a.createElement)(_.InnerBlocks.Content,null))}};Object(r.a)("repeat-visitor",T)},function(e,t,n){"use strict";n.r(t);var r=n(18),a=n(0),i=n(1),o=n(5),c=n(2),s=n(7),l=n.n(s),u=n(11),p=n.n(u),h=n(8),d=n.n(h),m=n(9),f=n.n(m),b=n(4),g=n.n(b),v=n(10),j=n.n(v),k=n(3),y=n.n(k),_=n(25),O=n.n(_),E=n(35),w=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i0}),k()(b()(n),"thumbnailClicked",function(e){n.selectGiphy(e)}),n}return v()(t,e),u()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,c=t.isSelected,s=t.setAttributes,l=n.align,u=n.caption,p=n.giphyUrl,h=n.searchText,d=n.paddingTop,m=this.state,f=m.captionFocus,b=m.results,g={paddingTop:d},v=_()(r,"align".concat(l)),j=Object(a.createElement)("form",{className:"wp-block-jetpack-gif_input-container",onSubmit:this.onFormSubmit,ref:this.textControlRef},Object(a.createElement)(o.TextControl,{className:"wp-block-jetpack-gif_input",label:w,placeholder:w,onChange:function(e){return s({searchText:e})},value:h}),Object(a.createElement)(o.Button,{isLarge:!0,onClick:this.onSubmit},Object(i.__)("Search","jetpack")));return Object(a.createElement)("div",{className:v},Object(a.createElement)(O.InspectorControls,null,Object(a.createElement)(o.PanelBody,{className:"components-panel__body-gif-branding"},Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 202 22"},Object(a.createElement)(o.Path,{d:"M4.6 5.9H0v10h1.6v-3.1h3c4.8 0 4.8-6.9 0-6.9zm0 5.4h-3v-4h3c2.6.1 2.6 4 0 4zM51.2 12.3c2-.3 2.7-1.7 2.7-3.1 0-1.7-1.2-3.3-3.5-3.3h-4.6v10h1.6v-3.4h2.1l3 3.4h1.9l-.2-.3-3-3.3zM47.4 11V7.4h3c1.3 0 1.9.9 1.9 1.8s-.6 1.8-1.9 1.8h-3zM30.6 13.6L28 5.9h-1.1l-2.5 7.7-2.6-7.7H20l3.7 10H25l1.4-3.5L27.5 9l1.1 3.4 1.3 3.5h1.4l3.5-10h-1.7z"}),Object(a.createElement)(o.Path,{d:"M14.4 5.7c-3 0-5.1 2.2-5.1 5.2 0 2.6 1.6 5.1 5.1 5.1 3.5 0 5.1-2.5 5.1-5.2-.1-2.6-1.7-5.1-5.1-5.1zm-.1 8.9c-2.5 0-3.5-1.9-3.5-3.7 0-2.2 1.2-3.8 3.5-3.8 2.4 0 3.5 2 3.5 3.8.1 2-1 3.7-3.5 3.7zM57.7 11.6h5.5v-1.5h-5.5V7.4h5.7V5.9h-7.3v10h7.3v-1.6h-5.7zM38 14.3v-2.7h5.5v-1.5H38V7.4h5.7V5.9h-7.3v10h7.3v-1.6zM93 10.3l-2.7-4.4h-1.9V6l3.8 5.8v4.1h1.6v-4.1l4-5.8v-.1h-2zM69.3 5.9h-3.8v10h3.8c3.5 0 5.1-2.5 5-5.1-.1-2.5-1.6-4.9-5-4.9zm0 8.4h-2.2V7.4h2.2c2.3 0 3.4 1.7 3.4 3.4s-1 3.5-3.4 3.5zM86.3 10.7c.9-.4 1.4-1.1 1.4-2 0-2-1.5-2.8-3.4-2.8h-4.6v10h4.6c2 0 3.7-.7 3.7-2.8 0-.8-.5-2-1.7-2.4zm-5-3.4h3c1.2 0 1.8.7 1.8 1.4 0 .8-.6 1.3-1.8 1.3h-3V7.3zm3 7.1h-3v-2.9h3c.9 0 2.1.5 2.1 1.6 0 1-1.2 1.3-2.1 1.3zM113.9 13.3h5.3V16c-1.2.9-2.9 1.1-4 1.1-4.2 0-5.6-3.3-5.6-6 0-4.1 2.2-6.1 5.6-6.1 1.4 0 3.2.4 4.8 1.8l3.4-3.4C120.7.6 118.1 0 115.2 0c-7.8 0-11.4 5.6-11.4 11s3.1 10.9 11.4 10.9c4 0 7.6-1.4 8.9-4.1V8.6h-10.2v4.7zM171.9 8.5h-7.4V.6h-5.9v20.8h5.9v-7.8h7.4v7.8h5.9V.6h-5.9zM195.1.6l-4.5 7.1-4.3-7.1h-6.6v.2l7.9 12.3v8.3h5.9v-8.3L201.8.9V.6zM127.4.6h5.9v20.8h-5.9zM147.6.6h-10.1v20.8h5.9v-5.6h4.2c5.6-.1 8.3-3.4 8.3-7.6.1-4.1-2.7-7.6-8.3-7.6zm0 10.2h-4.2V5.6h4.2c1.6 0 2.5 1.2 2.5 2.6 0 1.4-.9 2.6-2.5 2.6z"})))),p?Object(a.createElement)("figure",null,c&&j,c&&b&&b.length>1&&Object(a.createElement)("div",{className:"wp-block-jetpack-gif_thumbnails-container"},b.map(function(t){var n={backgroundImage:"url(".concat(t.images.downsized_still.url,")")};return Object(a.createElement)("button",{className:"wp-block-jetpack-gif_thumbnail-container",key:t.id,onClick:function(){e.thumbnailClicked(t)},style:n})})),Object(a.createElement)("div",{className:"wp-block-jetpack-gif-wrapper",style:g},Object(a.createElement)("div",{className:"wp-block-jetpack-gif_cover",onClick:this.setFocus,onKeyDown:this.setFocus,role:"button",tabIndex:"0"}),Object(a.createElement)("iframe",{src:p,title:h})),(!O.RichText.isEmpty(u)||c)&&!!p&&Object(a.createElement)(O.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:f,unstableOnFocus:function(){e.setState({captionFocus:!0})},onChange:function(e){return s({caption:e})},placeholder:Object(i.__)("Write caption…","jetpack"),tagName:"figcaption",value:u})):Object(a.createElement)(o.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:S,label:x},j))}}]),t}(a.Component),x=(n(68),n(101),Object(i.__)("GIF","jetpack")),S=Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z"})),A={title:x,icon:S,category:"jetpack",keywords:[Object(i._x)("animated","block search term","jetpack"),Object(i._x)("giphy","block search term","jetpack"),Object(i._x)("image","block search term","jetpack")],description:Object(i.__)("Search for and insert an animated image.","jetpack"),attributes:{align:{type:"string",default:"center"},caption:{type:"string"},giphyUrl:{type:"string"},searchText:{type:"string"},paddingTop:{type:"string",default:"56.2%"}},supports:{html:!1,align:!0},edit:C,save:function(){return null}};Object(r.a)("gif",A)},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(1),i=n(2),o=n(15),c=n(6),s=n(14),l=n(51),u=Object(s.withSelect)(function(e){return{areLikesEnabled:(0,e("core/editor").getEditedPostAttribute)("jetpack_likes_enabled")}}),p=Object(s.withDispatch)(function(e){return{editPost:e("core/editor").editPost}}),h={render:Object(o.compose)([u,p])(function(e){var t=e.areLikesEnabled,n=e.editPost;return Object(r.createElement)(c.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes"},Object(r.createElement)(l.a,null,Object(r.createElement)(i.CheckboxControl,{label:Object(a.__)("Show likes.","jetpack"),checked:t,onChange:function(e){n({jetpack_likes_enabled:e})}})))})},d=n(32);Object(d.a)("likes",h)},function(e,t,n){"use strict";n.r(t);var r=n(18),a=n(0),i=n(1),o=n(2),c=n(7),s=n.n(c),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(4),m=n.n(d),f=n(10),b=n.n(f),g=n(3),v=n.n(g),j=n(25),k=n.n(j),y=n(12),_=n.n(y),O=n(35),E=n(6),w=0,C=1,x=2,S="processing",A="success",M="error",T=function(e){function t(){var e;return s()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(m()(e),"componentDidMount",function(){e.apiCall()}),v()(m()(e),"onError",function(t){var n=e.props.noticeOperations;n.removeAllNotices(),n.createErrorNotice(t)}),v()(m()(e),"apiCall",function(){var t={path:"/wpcom/v2/mailchimp",method:"GET"};k()(t).then(function(t){var n=t.connect_url,r="connected"===t.code?C:x;e.setState({connected:r,connectURL:n})},function(t){var n=x;e.setState({connected:n,connectURL:null}),e.onError(t.message)})}),v()(m()(e),"auditionNotification",function(t){e.setState({audition:t}),e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(e.clearAudition,3e3)}),v()(m()(e),"clearAudition",function(){e.setState({audition:null})}),v()(m()(e),"updateProcessingText",function(t){(0,e.props.setAttributes)({processingLabel:t}),e.auditionNotification(S)}),v()(m()(e),"updateSuccessText",function(t){(0,e.props.setAttributes)({successLabel:t}),e.auditionNotification(A)}),v()(m()(e),"updateErrorText",function(t){(0,e.props.setAttributes)({errorLabel:t}),e.auditionNotification(M)}),v()(m()(e),"updateEmailPlaceholder",function(t){(0,e.props.setAttributes)({emailPlaceholder:t}),e.clearAudition()}),v()(m()(e),"labelForAuditionType",function(t){var n=e.props.attributes,r=n.processingLabel,a=n.successLabel,i=n.errorLabel;return t===S?r:t===A?a:t===M?i:null}),v()(m()(e),"roleForAuditionType",function(e){return e===M?"alert":"status"}),v()(m()(e),"render",function(){var t=e.props,n=t.attributes,r=t.className,c=t.notices,s=t.noticeUI,l=t.setAttributes,u=e.state,p=u.audition,h=u.connected,d=u.connectURL,m=n.emailPlaceholder,f=n.consentText,b=n.processingLabel,g=n.successLabel,j=n.errorLabel,k="wp-block-jetpack-mailchimp_",y=Object(a.createElement)(o.Placeholder,{icon:z,notices:c},Object(a.createElement)(o.Spinner,null)),S=Object(a.createElement)(o.Placeholder,{icon:z,label:Object(i.__)("Mailchimp","jetpack"),notices:c},Object(a.createElement)("div",{className:"components-placeholder__instructions"},Object(i.__)("You need to connect your Mailchimp account and choose a list in order to start collecting Email subscribers.","jetpack"),Object(a.createElement)("br",null),Object(a.createElement)("br",null),Object(a.createElement)(o.Button,{isDefault:!0,isLarge:!0,href:d,target:"_blank"},Object(i.__)("Set up Mailchimp form","jetpack")),Object(a.createElement)("br",null),Object(a.createElement)("br",null),Object(a.createElement)(o.Button,{isLink:!0,onClick:e.apiCall},Object(i.__)("Re-check Connection","jetpack")))),A=Object(a.createElement)(E.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Text Elements","jetpack")},Object(a.createElement)(o.TextControl,{label:Object(i.__)("Email Placeholder","jetpack"),value:m,onChange:e.updateEmailPlaceholder})),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Notifications","jetpack")},Object(a.createElement)(o.TextControl,{label:Object(i.__)("Processing text","jetpack"),value:b,onChange:e.updateProcessingText}),Object(a.createElement)(o.TextControl,{label:Object(i.__)("Success text","jetpack"),value:g,onChange:e.updateSuccessText}),Object(a.createElement)(o.TextControl,{label:Object(i.__)("Error text","jetpack"),value:j,onChange:e.updateErrorText})),Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Mailchimp Connection","jetpack")},Object(a.createElement)(o.ExternalLink,{href:d},Object(i.__)("Manage Connection","jetpack")))),M=_()(r,v()({},"".concat(k,"notication-audition"),p)),T=Object(a.createElement)("div",{className:M},Object(a.createElement)(o.TextControl,{"aria-label":m,className:"wp-block-jetpack-mailchimp_text-input",disabled:!0,onChange:function(){return!1},placeholder:m,title:Object(i.__)("You can edit the email placeholder in the sidebar.","jetpack"),type:"email"}),Object(a.createElement)(O.a,e.props),Object(a.createElement)(E.RichText,{tagName:"p",placeholder:Object(i.__)("Write consent text","jetpack"),value:f,onChange:function(e){return l({consentText:e})},inlineToolbar:!0}),p&&Object(a.createElement)("div",{className:"".concat(k,"notification ").concat(k).concat(p),role:e.roleForAuditionType(p)},e.labelForAuditionType(p)));return Object(a.createElement)(a.Fragment,null,s,h===w&&y,h===x&&S,h===C&&A,h===C&&T)}),e.state={audition:null,connected:w,connectURL:null},e.timeout=null,e}return b()(t,e),t}(a.Component),D=Object(o.withNotices)(T),z=(n(105),Object(a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"}))),F={title:Object(i.__)("Mailchimp","jetpack"),icon:z,description:Object(i.__)("A form enabling readers to join a Mailchimp list.","jetpack"),category:"jetpack",keywords:[Object(i._x)("email","block search term","jetpack"),Object(i._x)("subscription","block search term","jetpack"),Object(i._x)("newsletter","block search term","jetpack")],attributes:{emailPlaceholder:{type:"string",default:Object(i.__)("Enter your email","jetpack")},submitButtonText:{type:"string",default:Object(i.__)("Join my email list","jetpack")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},consentText:{type:"string",default:Object(i.__)("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack")},processingLabel:{type:"string",default:Object(i.__)("Processing…","jetpack")},successLabel:{type:"string",default:Object(i.__)("Success! You're on the list.","jetpack")},errorLabel:{type:"string",default:Object(i.__)("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")}},edit:D,save:function(){return null}};Object(r.a)("mailchimp",F)},function(e,t,n){"use strict";n.r(t);var r=n(18),a=n(0),i=n(1),o=n(2),c=n(7),s=n.n(c),l=n(11),u=n.n(l),p=n(8),h=n.n(p),d=n(9),m=n.n(d),f=n(10),b=n.n(f),g=n(6),v=n(5),j=n(14),k=n(15);function y(e){return Object(a.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},Object(a.createElement)("strong",{id:e.id+"-heading",className:"jp-related-posts-i2__post-link"},Object(i.__)("Preview unavailable: you haven't published enough posts with similar content.","jetpack")),e.displayThumbnails&&Object(a.createElement)("figure",{className:"jp-related-posts-i2__post-image-placeholder","aria-label":Object(i.__)("Placeholder image","jetpack")},Object(a.createElement)(o.SVG,{className:"jp-related-posts-i2__post-image-placeholder-square",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 350 200"},Object(a.createElement)("title",null,Object(i.__)("Grey square","jetpack")),Object(a.createElement)(o.Path,{d:"M0 0h350v200H0z",fill:"#8B8B96","fill-opacity":".1"})),Object(a.createElement)(o.SVG,{className:"jp-related-posts-i2__post-image-placeholder-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(a.createElement)("title",null,Object(i.__)("Icon for image","jetpack")),Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))),e.displayDate&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},Object(i.__)("August 3, 2018","jetpack")),e.displayContext&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},Object(i.__)("In “Uncategorized”","jetpack")))}function _(e){return Object(a.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},Object(a.createElement)("a",{className:"jp-related-posts-i2__post-link",id:e.id+"-heading",href:e.post.url,rel:"nofollow noopener noreferrer",target:"_blank"},e.post.title),e.displayThumbnails&&e.post.img&&e.post.img.src&&Object(a.createElement)("a",{className:"jp-related-posts-i2__post-img-link",href:e.post.url},Object(a.createElement)("img",{className:"jp-related-posts-i2__post-img",src:e.post.img.src,alt:e.post.title,rel:"nofollow noopener noreferrer",target:"_blank"})),e.displayDate&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},e.post.date),e.displayContext&&Object(a.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},e.post.context))}function O(e){var t=0,n=e.posts.length>3;switch(e.posts.length){case 2:case 4:case 5:t=2;break;default:t=3}return Object(a.createElement)("div",null,Object(a.createElement)("div",{className:"jp-related-posts-i2__row","data-post-count":e.posts.slice(0,t).length},e.posts.slice(0,t)),n&&Object(a.createElement)("div",{className:"jp-related-posts-i2__row","data-post-count":e.posts.slice(t).length},e.posts.slice(t)))}var E=function(e){function t(){return s()(this,t),h()(this,m()(t).apply(this,arguments))}return b()(t,e),u()(t,[{key:"render",value:function(){for(var e=this.props,t=e.attributes,n=e.className,r=e.posts,c=e.setAttributes,s=e.instanceId,l=t.displayContext,u=t.displayDate,p=t.displayThumbnails,h=t.postLayout,d=t.postsToShow,m=[{icon:"grid-view",title:Object(i.__)("Grid View","jetpack"),onClick:function(){return c({postLayout:"grid"})},isActive:"grid"===h},{icon:"list-view",title:Object(i.__)("List View","jetpack"),onClick:function(){return c({postLayout:"list"})},isActive:"list"===h}],f=[],b=0;b