File Editor
Directories:
.. (Back)
carousel
comment-likes
contact-form
custom-css
custom-post-types
images
infinite-scroll
instant-search
lazy-images
likes
masterbar
photon
related-posts
scan
sharedaddy
shortcodes
tiled-gallery
videopress
widget-visibility
widgets
Files:
accessible-focus.min.js
admin.asset.php
admin.css
admin.js
admin.rtl.css
connect-button.min.js
crowdsignal-shortcode.min.js
crowdsignal-survey.min.js
facebook-embed.min.js
gallery-settings.min.js
idc-notice.min.js
jetpack-admin.min.js
jetpack-connection-banner.min.js
jetpack-deactivate-dialog.min.js
jetpack-jitm.min.js
jetpack-modules.min.js
jetpack-modules.models.min.js
jetpack-modules.views.min.js
jetpack-wizard-banner.min.js
jquery.jetpack-resize.min.js
jquery.spin.min.js
polldaddy-shortcode.min.js
postmessage.min.js
spin.min.js
static-noscript-notice.html
static-version-notice.html
static.css
static.html
static.js
static.rtl.css
style.min.css
style.min.rtl.css
twitter-timeline.min.js
Create New File
Create
Edit File: admin.js
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=374)}([function(e,t){!function(){e.exports=this.React}()},function(e,t,n){e.exports=n(167)()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(174),i=n(4);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){var r=n(62);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var s=i.apply(null,r);s&&e.push(s)}else if("object"===a)for(var o in r)n.call(r,o)&&r[o]&&e.push(o)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(17),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),a(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){var r=n(2);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var s;"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{s=n(293).Buffer}catch(C){}function o(e,t,n){for(var r=0,i=Math.min(e.length,n),a=t;a<i;a++){var s=e.charCodeAt(a)-48;r<<=4,r|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return r}function c(e,t,n,r){for(var i=0,a=Math.min(e.length,n),s=t;s<a;s++){var o=e.charCodeAt(s)-48;i*=r,i+=o>=49?o-49+10:o>=17?o-17+10:o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,s,o=0;if("be"===n)for(i=e.length-1,a=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=s<<o&67108863,this.words[a+1]=s>>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);else if("le"===n)for(i=0,a=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=s<<o&67108863,this.words[a+1]=s>>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,a=0;for(n=e.length-6,r=0;n>=t;n-=6)i=o(e,n,n+6),this.words[r]|=i<<a&67108863,this.words[r+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=o(e,t,n+6),this.words[r]|=i<<a&67108863,this.words[r+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,s=a%r,o=Math.min(a,a-s)+n,l=0,u=n;u<o;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==s){var p=1;for(l=c(e,u,e.length,t),u=0;u<s;u++)p*=t;this.imuln(p),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],s=i*a,o=67108863&s,c=s/67108864|0;n.words[0]=o;for(var l=1;l<r;l++){for(var u=c>>>26,p=67108863&c,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var f=l-h|0;u+=(s=(i=0|e.words[f])*(a=0|t.words[h])+p)/67108864|0,p=67108863&s}n.words[l]=0|p,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,s=0;s<this.length;s++){var o=this.words[s],c=(16777215&(o<<i|a)).toString(16);n=0!==(a=o>>>24-i&16777215)||s!==this.length-1?l[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,s--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],h=p[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(h).toString(e);n=(f=f.idivn(h)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var s,o,c="le"===t,l=new e(a),u=this.clone();if(c){for(o=0;!u.isZero();o++)s=u.andln(255),u.iushrn(8),l[o]=s;for(;o<a;o++)l[o]=0}else{for(o=0;o<a-i;o++)l[o]=0;for(o=0;!u.isZero();o++)s=u.andln(255),u.iushrn(8),l[a-o-1]=s}return l},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},a.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,s=0;s<r.length;s++)a=(t=(0|n.words[s])-(0|r.words[s])+a)>>26,this.words[s]=67108863&t;for(;0!==a&&s<n.length;s++)a=(t=(0|n.words[s])+a)>>26,this.words[s]=67108863&t;if(0===a&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,n){var r,i,a,s=e.words,o=t.words,c=n.words,l=0,u=0|s[0],p=8191&u,d=u>>>13,h=0|s[1],f=8191&h,m=h>>>13,g=0|s[2],v=8191&g,b=g>>>13,y=0|s[3],w=8191&y,_=y>>>13,k=0|s[4],E=8191&k,C=k>>>13,S=0|s[5],T=8191&S,A=S>>>13,x=0|s[6],M=8191&x,j=x>>>13,N=0|s[7],O=8191&N,P=N>>>13,I=0|s[8],D=8191&I,U=I>>>13,R=0|s[9],z=8191&R,F=R>>>13,L=0|o[0],B=8191&L,V=L>>>13,H=0|o[1],q=8191&H,K=H>>>13,J=0|o[2],W=8191&J,G=J>>>13,Y=0|o[3],$=8191&Y,Q=Y>>>13,X=0|o[4],Z=8191&X,ee=X>>>13,te=0|o[5],ne=8191&te,re=te>>>13,ie=0|o[6],ae=8191&ie,se=ie>>>13,oe=0|o[7],ce=8191&oe,le=oe>>>13,ue=0|o[8],pe=8191&ue,de=ue>>>13,he=0|o[9],fe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(p,B))|0)+((8191&(i=(i=Math.imul(p,V))+Math.imul(d,B)|0))<<13)|0;l=((a=Math.imul(d,V))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(f,B),i=(i=Math.imul(f,V))+Math.imul(m,B)|0,a=Math.imul(m,V);var ve=(l+(r=r+Math.imul(p,q)|0)|0)+((8191&(i=(i=i+Math.imul(p,K)|0)+Math.imul(d,q)|0))<<13)|0;l=((a=a+Math.imul(d,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,B),i=(i=Math.imul(v,V))+Math.imul(b,B)|0,a=Math.imul(b,V),r=r+Math.imul(f,q)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,q)|0,a=a+Math.imul(m,K)|0;var be=(l+(r=r+Math.imul(p,W)|0)|0)+((8191&(i=(i=i+Math.imul(p,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((a=a+Math.imul(d,G)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(w,B),i=(i=Math.imul(w,V))+Math.imul(_,B)|0,a=Math.imul(_,V),r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(b,q)|0,a=a+Math.imul(b,K)|0,r=r+Math.imul(f,W)|0,i=(i=i+Math.imul(f,G)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,G)|0;var ye=(l+(r=r+Math.imul(p,$)|0)|0)+((8191&(i=(i=i+Math.imul(p,Q)|0)+Math.imul(d,$)|0))<<13)|0;l=((a=a+Math.imul(d,Q)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(E,B),i=(i=Math.imul(E,V))+Math.imul(C,B)|0,a=Math.imul(C,V),r=r+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,K)|0,r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(b,W)|0,a=a+Math.imul(b,G)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,Q)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,Q)|0;var we=(l+(r=r+Math.imul(p,Z)|0)|0)+((8191&(i=(i=i+Math.imul(p,ee)|0)+Math.imul(d,Z)|0))<<13)|0;l=((a=a+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,B),i=(i=Math.imul(T,V))+Math.imul(A,B)|0,a=Math.imul(A,V),r=r+Math.imul(E,q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(C,q)|0,a=a+Math.imul(C,K)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,G)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(b,$)|0,a=a+Math.imul(b,Q)|0,r=r+Math.imul(f,Z)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,Z)|0,a=a+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(p,ne)|0)|0)+((8191&(i=(i=i+Math.imul(p,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((a=a+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,B),i=(i=Math.imul(M,V))+Math.imul(j,B)|0,a=Math.imul(j,V),r=r+Math.imul(T,q)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(A,q)|0,a=a+Math.imul(A,K)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,G)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,Q)|0,r=r+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,Z)|0,a=a+Math.imul(b,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0;var ke=(l+(r=r+Math.imul(p,ae)|0)|0)+((8191&(i=(i=i+Math.imul(p,se)|0)+Math.imul(d,ae)|0))<<13)|0;l=((a=a+Math.imul(d,se)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(O,B),i=(i=Math.imul(O,V))+Math.imul(P,B)|0,a=Math.imul(P,V),r=r+Math.imul(M,q)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(j,q)|0,a=a+Math.imul(j,K)|0,r=r+Math.imul(T,W)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(A,W)|0,a=a+Math.imul(A,G)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(C,$)|0,a=a+Math.imul(C,Q)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Z)|0,a=a+Math.imul(_,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(b,ne)|0,a=a+Math.imul(b,re)|0,r=r+Math.imul(f,ae)|0,i=(i=i+Math.imul(f,se)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,se)|0;var Ee=(l+(r=r+Math.imul(p,ce)|0)|0)+((8191&(i=(i=i+Math.imul(p,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((a=a+Math.imul(d,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,B),i=(i=Math.imul(D,V))+Math.imul(U,B)|0,a=Math.imul(U,V),r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(P,q)|0,a=a+Math.imul(P,K)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(j,W)|0,a=a+Math.imul(j,G)|0,r=r+Math.imul(T,$)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(A,$)|0,a=a+Math.imul(A,Q)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(C,Z)|0,a=a+Math.imul(C,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,a=a+Math.imul(_,re)|0,r=r+Math.imul(v,ae)|0,i=(i=i+Math.imul(v,se)|0)+Math.imul(b,ae)|0,a=a+Math.imul(b,se)|0,r=r+Math.imul(f,ce)|0,i=(i=i+Math.imul(f,le)|0)+Math.imul(m,ce)|0,a=a+Math.imul(m,le)|0;var Ce=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,de)|0)+Math.imul(d,pe)|0))<<13)|0;l=((a=a+Math.imul(d,de)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(z,B),i=(i=Math.imul(z,V))+Math.imul(F,B)|0,a=Math.imul(F,V),r=r+Math.imul(D,q)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(U,q)|0,a=a+Math.imul(U,K)|0,r=r+Math.imul(O,W)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,G)|0,r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(j,$)|0,a=a+Math.imul(j,Q)|0,r=r+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(A,Z)|0,a=a+Math.imul(A,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,r=r+Math.imul(w,ae)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,se)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(b,ce)|0,a=a+Math.imul(b,le)|0,r=r+Math.imul(f,pe)|0,i=(i=i+Math.imul(f,de)|0)+Math.imul(m,pe)|0,a=a+Math.imul(m,de)|0;var Se=(l+(r=r+Math.imul(p,fe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(d,fe)|0))<<13)|0;l=((a=a+Math.imul(d,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(z,q),i=(i=Math.imul(z,K))+Math.imul(F,q)|0,a=Math.imul(F,K),r=r+Math.imul(D,W)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(U,W)|0,a=a+Math.imul(U,G)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,Q)|0)+Math.imul(P,$)|0,a=a+Math.imul(P,Q)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(j,Z)|0,a=a+Math.imul(j,ee)|0,r=r+Math.imul(T,ne)|0,i=(i=i+Math.imul(T,re)|0)+Math.imul(A,ne)|0,a=a+Math.imul(A,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,se)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,se)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,a=a+Math.imul(_,le)|0,r=r+Math.imul(v,pe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(b,pe)|0,a=a+Math.imul(b,de)|0;var Te=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;l=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(z,W),i=(i=Math.imul(z,G))+Math.imul(F,W)|0,a=Math.imul(F,G),r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,Q)|0)+Math.imul(U,$)|0,a=a+Math.imul(U,Q)|0,r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,Z)|0,a=a+Math.imul(P,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(j,ne)|0,a=a+Math.imul(j,re)|0,r=r+Math.imul(T,ae)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(A,ae)|0,a=a+Math.imul(A,se)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(C,ce)|0,a=a+Math.imul(C,le)|0,r=r+Math.imul(w,pe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,pe)|0,a=a+Math.imul(_,de)|0;var Ae=(l+(r=r+Math.imul(v,fe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(b,fe)|0))<<13)|0;l=((a=a+Math.imul(b,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(z,$),i=(i=Math.imul(z,Q))+Math.imul(F,$)|0,a=Math.imul(F,Q),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(U,Z)|0,a=a+Math.imul(U,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(P,ne)|0,a=a+Math.imul(P,re)|0,r=r+Math.imul(M,ae)|0,i=(i=i+Math.imul(M,se)|0)+Math.imul(j,ae)|0,a=a+Math.imul(j,se)|0,r=r+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(A,ce)|0,a=a+Math.imul(A,le)|0,r=r+Math.imul(E,pe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(C,pe)|0,a=a+Math.imul(C,de)|0;var xe=(l+(r=r+Math.imul(w,fe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,fe)|0))<<13)|0;l=((a=a+Math.imul(_,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(z,Z),i=(i=Math.imul(z,ee))+Math.imul(F,Z)|0,a=Math.imul(F,ee),r=r+Math.imul(D,ne)|0,i=(i=i+Math.imul(D,re)|0)+Math.imul(U,ne)|0,a=a+Math.imul(U,re)|0,r=r+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,se)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,se)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(j,ce)|0,a=a+Math.imul(j,le)|0,r=r+Math.imul(T,pe)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(A,pe)|0,a=a+Math.imul(A,de)|0;var Me=(l+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(C,fe)|0))<<13)|0;l=((a=a+Math.imul(C,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(z,ne),i=(i=Math.imul(z,re))+Math.imul(F,ne)|0,a=Math.imul(F,re),r=r+Math.imul(D,ae)|0,i=(i=i+Math.imul(D,se)|0)+Math.imul(U,ae)|0,a=a+Math.imul(U,se)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(P,ce)|0,a=a+Math.imul(P,le)|0,r=r+Math.imul(M,pe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(j,pe)|0,a=a+Math.imul(j,de)|0;var je=(l+(r=r+Math.imul(T,fe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(A,fe)|0))<<13)|0;l=((a=a+Math.imul(A,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(z,ae),i=(i=Math.imul(z,se))+Math.imul(F,ae)|0,a=Math.imul(F,se),r=r+Math.imul(D,ce)|0,i=(i=i+Math.imul(D,le)|0)+Math.imul(U,ce)|0,a=a+Math.imul(U,le)|0,r=r+Math.imul(O,pe)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(P,pe)|0,a=a+Math.imul(P,de)|0;var Ne=(l+(r=r+Math.imul(M,fe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(j,fe)|0))<<13)|0;l=((a=a+Math.imul(j,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(z,ce),i=(i=Math.imul(z,le))+Math.imul(F,ce)|0,a=Math.imul(F,le),r=r+Math.imul(D,pe)|0,i=(i=i+Math.imul(D,de)|0)+Math.imul(U,pe)|0,a=a+Math.imul(U,de)|0;var Oe=(l+(r=r+Math.imul(O,fe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(P,fe)|0))<<13)|0;l=((a=a+Math.imul(P,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(z,pe),i=(i=Math.imul(z,de))+Math.imul(F,pe)|0,a=Math.imul(F,de);var Pe=(l+(r=r+Math.imul(D,fe)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(U,fe)|0))<<13)|0;l=((a=a+Math.imul(U,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Ie=(l+(r=Math.imul(z,fe))|0)+((8191&(i=(i=Math.imul(z,me))+Math.imul(F,fe)|0))<<13)|0;return l=((a=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,c[0]=ge,c[1]=ve,c[2]=be,c[3]=ye,c[4]=we,c[5]=_e,c[6]=ke,c[7]=Ee,c[8]=Ce,c[9]=Se,c[10]=Te,c[11]=Ae,c[12]=xe,c[13]=Me,c[14]=je,c[15]=Ne,c[16]=Oe,c[17]=Pe,c[18]=Ie,0!==l&&(c[19]=l,n.length++),n};function f(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=d),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var s=i;i=0;for(var o=67108863&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,p=(0|e.words[u])*(0|t.words[l]),d=67108863&p;o=67108863&(d=d+o|0),i+=(s=(s=s+(p/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}n.words[a]=o,r=s,s=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):f(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,a){for(var s=0;s<a;s++)r[s]=t[e[s]],i[s]=n[e[s]]},m.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var s=1;s<i;s<<=1)for(var o=s<<1,c=Math.cos(2*Math.PI/o),l=Math.sin(2*Math.PI/o),u=0;u<i;u+=o)for(var p=c,d=l,h=0;h<s;h++){var f=n[u+h],m=r[u+h],g=n[u+h+s],v=r[u+h+s],b=p*g-d*v;v=p*v+d*g,g=b,n[u+h]=f+g,r[u+h]=m+v,n[u+h+s]=f-g,r[u+h+s]=m-v,h!==o&&(b=c*p-l*d,d=c*d+l*p,p=b)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var a=0,s=0;s<t;s++)a+=0|e[s],n[2*s]=8191&a,a>>>=13,n[2*s+1]=8191&a,a>>>=13;for(s=2*t;s<i;++s)n[s]=0;r(0===a),r(0==(-8192&a))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),s=new Array(r),o=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),p=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,s,r),this.convert13b(t.words,t.length,l,r),this.transform(s,a,o,c,r,i),this.transform(l,a,u,p,r,i);for(var h=0;h<r;h++){var f=o[h]*u[h]-c[h]*p[h];c[h]=o[h]*p[h]+c[h]*u[h],o[h]=f}return this.conjugate(o,c,r),this.transform(o,c,d,a,r,i),this.conjugate(d,a,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),f(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},a.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t<this.length;t++){var o=this.words[t]&a,c=(0|this.words[t])-o<<n;this.words[t]=c|s,s=o>>>26-n}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<<a,c=n;if(i-=s,i=Math.max(0,i),c){for(var l=0;l<s;l++)c.words[l]=this.words[l];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var p=0|this.words[l];this.words[l]=u<<26-a|p>>>a,u=p&o}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},a.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var i,a,s=e.length+n;this._expand(s);var o=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+o;var c=(0|e.words[i])*t;o=((a-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)o=(a=(0|this.words[i+n])+o)>>26,this.words[i+n]=67108863&a;if(0===o)return this.strip();for(r(-1===o),o=0,i=0;i<this.length;i++)o=(a=-(0|this.words[i])+o)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var o,c=r.length-i.length;if("mod"!==t){(o=new a(null)).length=c+1,o.words=new Array(o.length);for(var l=0;l<o.length;l++)o.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,o&&(o.words[c]=1));for(var p=c-1;p>=0;p--){var d=67108864*(0|r.words[i.length+p])+(0|r.words[i.length+p-1]);for(d=Math.min(d/s|0,67108863),r._ishlnsubmul(i,d,p);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,p),r.isZero()||(r.negative^=1);o&&(o.words[p]=d)}return o&&o.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:o||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,s,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),s=new a(0),o=new a(0),c=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),p=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(u),s.isub(p)),i.iushrn(1),s.iushrn(1);for(var f=0,m=1;0==(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(u),c.isub(p)),o.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(o),s.isub(c)):(n.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new a(1),o=new a(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var p=0,d=1;0==(n.words[0]&d)&&p<26;++p,d<<=1);if(p>0)for(n.iushrn(p);p-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);t.cmp(n)>=0?(t.isub(n),s.isub(o)):(n.isub(t),o.isub(s))}return(i=0===t.cmpn(1)?s:o).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,s=n;0!==a&&s<this.length;s++){var o=0|this.words[s];a=(o+=a)>>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(b,v),b.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(y,v),i(w,v),i(_,v),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var p=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),f=s;0!==h.cmp(o);){for(var m=h,g=0;0!==m.cmp(o);g++)m=m.redSqr();r(g<f);var v=this.pow(p,new a(1).iushln(f-g-1));d=d.redMul(v),p=v.redSqr(),h=h.redMul(p),f=g}return d},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new a(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],s=0,o=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var p=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==p||0!==s?(s<<=1,s|=p,(4===++o||0===r&&0===u)&&(i=this.mul(i,n[s]),o=0,s=0)):o=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new E(e)},i(E,k),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(106)(e))},function(e,t,n){"use strict"; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */var r=n(254),i=n(255),a=n(122);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=o(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=o(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?o(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(u(t),e=o(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=o(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(r)return L(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var a,s=1,o=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,o/=2,c/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(a=n;a<o;a++)if(l(e,a)===l(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*s}else-1!==u&&(a-=a-u),u=-1}else for(n+c>o&&(n=o-c),a=n;a>=0;a--){for(var p=!0,d=0;d<c;d++)if(l(e,a+d)!==l(t,d)){p=!1;break}if(p)return a}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var s=0;s<r;++s){var o=parseInt(t.substr(2*s,2),16);if(isNaN(o))return s;e[n+s]=o}return s}function w(e,t,n,r){return V(L(t,e.length-n),e,n,r)}function _(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return _(e,t,n,r)}function E(e,t,n,r){return V(B(t),e,n,r)}function C(e,t,n,r){return V(function(e,t){for(var n,r,i,a=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,s,o,c,l=e[i],u=null,p=l>239?4:l>223?3:l>191?2:1;if(i+p<=n)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(c=(15&l)<<12|(63&a)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(c=(15&l)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==window.TYPED_ARRAY_SUPPORT?window.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return p(null,e)},c.allocUnsafeSlow=function(e){return p(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),o=Math.min(a,s),l=this.slice(r,i),u=e.slice(t,n),p=0;p<o;++p)if(l[p]!==u[p]){a=l[p],s=u[p];break}return a<s?-1:s<a?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=F(e[a]);return i}function j(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function D(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,a){return a||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return a||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var a=n-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=c.isBuffer(e)?e:L(new c(e,r).toString()),o=s.length;for(a=0;a<n-t;++a)this[a+t]=s[a%o]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function B(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}},function(e,t,n){"use strict";var r=n(0),i=n(189);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,a)},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,i=n(16),a=n(19),s=n(144);r.assert=a,r.toArray=s.toArray,r.zero2=s.zero2,r.toHex=s.toHex,r.encode=s.encode,r.getNAF=function(e,t){for(var n=[],r=1<<t+1,i=e.clone();i.cmpn(1)>=0;){var a;if(i.isOdd()){var s=i.andln(r-1);a=s>(r>>1)-1?(r>>1)-s:s,i.isubn(a)}else a=0;n.push(a);for(var o=0!==i.cmpn(0)&&0===i.andln(r-1)?t+1:1,c=1;c<o;c++)n.push(0);i.iushrn(o)}return n},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var a,s,o,c=e.andln(3)+r&3,l=t.andln(3)+i&3;if(3===c&&(c=-1),3===l&&(l=-1),0==(1&c))a=0;else a=3!==(o=e.andln(7)+r&7)&&5!==o||2!==l?c:-c;if(n[0].push(a),0==(1&l))s=0;else s=3!==(o=t.andln(7)+i&7)&&5!==o||2!==c?l:-l;n[1].push(s),2*r===a+1&&(r=1-r),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){(function(r){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))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=function(){try{return 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"],e.exports=n(188)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n(23))},function(e,t,n){var r=n(182),i=n(183),a=n(101),s=n(184);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||s()}},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var c,l=[],u=!1,p=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):p=-1,l.length&&h())}function h(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(19),i=n(12);function a(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):a(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=o(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=o,t.zero8=c,t.join32=function(e,t,n,i){var a=n-t;r(a%4==0);for(var s=new Array(a/4),o=0,c=t;o<s.length;o++,c+=4){var l;l="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[o]=l>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];"big"===t?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,s=(a<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=a},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,a,s,o){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+a>>>0)<a?1:0,e+n+i+s+(c+=(l=l+o>>>0)<o?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,a,s,o){return t+r+a+o>>>0},t.sum64_5_hi=function(e,t,n,r,i,a,s,o,c,l){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+a>>>0)<a?1:0,u+=(p=p+o>>>0)<o?1:0,e+n+i+s+c+(u+=(p=p+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,a,s,o,c,l){return t+r+a+o+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var c=10;function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,a,s,o;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=l(e))>0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,o=c,console&&console.warn&&console.warn(o)}return e}function p(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,a(this.listener,this.target,e))}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):m(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)a(c,this,t);else{var l=c.length,u=m(c,l);for(n=0;n<l;++n)a(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,a,s;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(113)("wks"),i=n(70),a=n(27).Symbol,s="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=s&&a[e]||(s?a:i)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(13).Buffer,i=n(73).Transform,a=n(77).StringDecoder;function s(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(12)(s,i),s.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){r=i}finally{n(r)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(n){t=n}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=s},function(e,t,n){var r=n(185);e.exports=function(e,t){if(null==e)return{};var n,i,a=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(192),a=(r=i)&&r.__esModule?r:{default:r};t.default={shouldComponentUpdate:a.default},e.exports=t.default},function(e,t,n){var r=n(32),i=n(110);e.exports=n(34)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(44),i=n(219),a=n(220),s=Object.defineProperty;t.f=n(34)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return s(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(53)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(55),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=p;var a=n(48);a.inherits=n(12);var s=n(124),o=n(76);a.inherits(p,s);for(var c=i(o.prototype),l=0;l<c.length;l++){var u=c[l];p.prototype[u]||(p.prototype[u]=o.prototype[u])}function p(e){if(!(this instanceof p))return new p(e);s.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";(function(t){var r=n(13).Buffer,i=window.crypto||window.msCrypto;i&&i.getRandomValues?e.exports=function(e,n){if(e>4294967295)throw new RangeError("requested too many random bytes");var a=r.allocUnsafe(e);if(e>0)if(e>65536)for(var s=0;s<e;s+=65536)i.getRandomValues(a.slice(s,s+65536));else i.getRandomValues(a);if("function"==typeof n)return t.nextTick((function(){n(null,a)}));return a}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(23))},function(e,t,n){var r=n(13).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,a=e.length,s=this._len,o=0;o<a;){for(var c=s%i,l=Math.min(a-o,i-c),u=0;u<l;u++)n[c+u]=e[o+u];o+=l,(s+=l)%i==0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){var r=n(171),i=n(172),a=n(101),s=n(173);e.exports=function(e){return r(e)||i(e)||a(e)||s()}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,a,s,o){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,s,o],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(24),i=n(19);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},function(e,t,n){var r=n(27),i=n(42),a=n(43),s=n(31),o=n(45),c=function(e,t,n){var l,u,p,d=e&c.F,h=e&c.G,f=e&c.S,m=e&c.P,g=e&c.B,v=e&c.W,b=h?i:i[t]||(i[t]={}),y=b.prototype,w=h?r:f?r[t]:(r[t]||{}).prototype;for(l in h&&(n=t),n)(u=!d&&w&&void 0!==w[l])&&o(b,l)||(p=u?w[l]:n[l],b[l]=h&&"function"!=typeof w[l]?n[l]:g&&u?a(p,r):v&&w[l]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):m&&"function"==typeof p?a(Function.call,p):p,m&&((b.virtual||(b.virtual={}))[l]=p,e&c.R&&y&&!y[l]&&s(y,l,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(108);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(33);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(12),i=n(72),a=n(78),s=n(79),o=n(28);function c(e){o.call(this,"digest"),this._hash=e}r(c,o),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new c(s(e))}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(17).Buffer)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),a=0;a<r;++a)i[a]=e[a]^n[a];return i}}).call(this,n(17).Buffer)},function(e,t,n){var r=t;r.bignum=n(16),r.define=n(317).define,r.base=n(51),r.constants=n(149),r.decoders=n(322),r.encoders=n(324)},function(e,t,n){var r=t;r.Reporter=n(319).Reporter,r.DecoderBuffer=n(148).DecoderBuffer,r.EncoderBuffer=n(148).EncoderBuffer,r.Node=n(320)},function(e,t,n){var r=n(335);e.exports=function(e){var t=null,n=r(e);if(3===e.nodeType){var i=n.createRange();i.selectNodeContents(e),e=i}if("function"==typeof e.getBoundingClientRect&&(t=e.getBoundingClientRect(),e.startContainer&&0===t.left&&0===t.top)){var a=n.createElement("span");a.appendChild(n.createTextNode("")),e.insertNode(a),t=a.getBoundingClientRect();var s=a.parentNode;s.removeChild(a),s.normalize()}return t}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r=n(43),i=n(235),a=n(236),s=n(44),o=n(68),c=n(237),l={},u={};(t=e.exports=function(e,t,n,p,d){var h,f,m,g,v=d?function(){return e}:c(e),b=r(n,p,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(a(v)){for(h=o(e.length);h>y;y++)if((g=t?b(s(f=e[y])[0],f[1]):b(e[y]))===l||g===u)return g}else for(m=v.call(e);!(f=m.next()).done;)if((g=i(m,b,f.value,t))===l||g===u)return g}).BREAK=l,t.RETURN=u},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,s,o=arguments.length;switch(o){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(a=new Array(o-1),s=0;s<a.length;)a[s++]=arguments[s];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,n(23))},function(e,t,n){var r=n(13).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function a(e){for(;0<e.length;e++)e[0]=0}function s(e,t,n,r,i){for(var a,s,o,c,l=n[0],u=n[1],p=n[2],d=n[3],h=e[0]^t[0],f=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],v=4,b=1;b<i;b++)a=l[h>>>24]^u[f>>>16&255]^p[m>>>8&255]^d[255&g]^t[v++],s=l[f>>>24]^u[m>>>16&255]^p[g>>>8&255]^d[255&h]^t[v++],o=l[m>>>24]^u[g>>>16&255]^p[h>>>8&255]^d[255&f]^t[v++],c=l[g>>>24]^u[h>>>16&255]^p[f>>>8&255]^d[255&m]^t[v++],h=a,f=s,m=o,g=c;return a=(r[h>>>24]<<24|r[f>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[v++],s=(r[f>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[v++],o=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&f])^t[v++],c=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[f>>>8&255]<<8|r[255&m])^t[v++],[a>>>=0,s>>>=0,o>>>=0,c>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],s=0,o=0,c=0;c<256;++c){var l=o^o<<1^o<<2^o<<3^o<<4;l=l>>>8^255&l^99,n[s]=l,r[l]=s;var u=e[s],p=e[u],d=e[p],h=257*e[l]^16843008*l;i[0][s]=h<<24|h>>>8,i[1][s]=h<<16|h>>>16,i[2][s]=h<<8|h>>>24,i[3][s]=h,h=16843009*d^65537*p^257*u^16843008*s,a[0][l]=h<<24|h>>>8,a[1][l]=h<<16|h>>>16,a[2][l]=h<<8|h>>>24,a[3][l]=h,0===s?s=o=1:(s=u^e[e[e[d^u]]],o^=e[e[o]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var s=i[a-1];a%t==0?(s=s<<8|s>>>24,s=c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s],s^=o[a/t|0]<<24):t>6&&a%t==4&&(s=c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s]),i[a]=i[a-t]^s}for(var l=[],u=0;u<r;u++){var p=r-u,d=i[p-(u%4?0:4)];l[u]=u<4||p<=4?d:c.INV_SUB_MIX[0][c.SBOX[d>>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return s(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=s(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},l.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=l},function(e,t,n){var r=n(13).Buffer,i=n(72);e.exports=function(e,t,n,a){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var s=n/8,o=r.alloc(s),c=r.alloc(a||0),l=r.alloc(0);s>0||a>0;){var u=new i;u.update(l),u.update(e),t&&u.update(t),l=u.digest();var p=0;if(s>0){var d=o.length-s;p=Math.min(s,l.length),l.copy(o,d,0,p),s-=p}if(p<l.length&&a>0){var h=c.length-a,f=Math.min(a,l.length-p);l.copy(c,h,p,p+f),a-=f}}return l.fill(0),{key:o,iv:c}}},function(e,t,n){"use strict";var r=n(16),i=n(20),a=i.getNAF,s=i.getJSF,o=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){o(e.precomputed);var n=e._getDoubles(),r=a(t,1),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var s=[],c=0;c<r.length;c+=n.step){var l=0;for(t=c+n.step-1;t>=c;t--)l=(l<<1)+r[t];s.push(l)}for(var u=this.jpoint(null,null,null),p=this.jpoint(null,null,null),d=i;d>0;d--){for(c=0;c<s.length;c++){(l=s[c])===d?p=p.mixedAdd(n.points[c]):l===-d&&(p=p.mixedAdd(n.points[c].neg()))}u=u.add(p)}return u.toP()},c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,s=a(t,n),c=this.jpoint(null,null,null),l=s.length-1;l>=0;l--){for(t=0;l>=0&&0===s[l];l--)t++;if(l>=0&&t++,c=c.dblp(t),l<0)break;var u=s[l];o(0!==u),c="affine"===e.type?u>0?c.mixedAdd(i[u-1>>1]):c.mixedAdd(i[-u-1>>1].neg()):u>0?c.add(i[u-1>>1]):c.add(i[-u-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){for(var o=this._wnafT1,c=this._wnafT2,l=this._wnafT3,u=0,p=0;p<r;p++){var d=(S=t[p])._getNAFPoints(e);o[p]=d.wnd,c[p]=d.points}for(p=r-1;p>=1;p-=2){var h=p-1,f=p;if(1===o[h]&&1===o[f]){var m=[t[h],null,null,t[f]];0===t[h].y.cmp(t[f].y)?(m[1]=t[h].add(t[f]),m[2]=t[h].toJ().mixedAdd(t[f].neg())):0===t[h].y.cmp(t[f].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[f]),m[2]=t[h].add(t[f].neg())):(m[1]=t[h].toJ().mixedAdd(t[f]),m[2]=t[h].toJ().mixedAdd(t[f].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=s(n[h],n[f]);u=Math.max(v[0].length,u),l[h]=new Array(u),l[f]=new Array(u);for(var b=0;b<u;b++){var y=0|v[0][b],w=0|v[1][b];l[h][b]=g[3*(y+1)+(w+1)],l[f][b]=0,c[h]=m}}else l[h]=a(n[h],o[h]),l[f]=a(n[f],o[f]),u=Math.max(l[h].length,u),u=Math.max(l[f].length,u)}var _=this.jpoint(null,null,null),k=this._wnafT4;for(p=u;p>=0;p--){for(var E=0;p>=0;){var C=!0;for(b=0;b<r;b++)k[b]=0|l[b][p],0!==k[b]&&(C=!1);if(!C)break;E++,p--}if(p>=0&&E++,_=_.dblp(E),p<0)break;for(b=0;b<r;b++){var S,T=k[b];0!==T&&(T>0?S=c[b][T-1>>1]:T<0&&(S=c[b][-T-1>>1].neg()),_="affine"===S.type?_.mixedAdd(S):_.add(S))}}for(p=0;p<r;p++)c[p]=null;return i?_:_.toP()},c.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?o(e[e.length-1]%2==0):7===e[0]&&o(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},l.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},l.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t,n){var r=n(316),i=n(327),a=n(328),s=n(81),o=n(133),c=n(13).Buffer;function l(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,l,u=a(e,t),p=u.tag,d=u.data;switch(p){case"CERTIFICATE":l=r.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=r.PublicKey.decode(d,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=r.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+p);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,p=parseInt(a.split("-")[1],10)/8,d=o.pbkdf2Sync(t,n,r,p,"sha1"),h=s.createDecipheriv(a,d,l),f=[];return f.push(h.update(u)),f.push(h.final()),c.concat(f)}(d=r.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(n=(l=r.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:r.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=r.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+p);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=r.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+p)}}e.exports=l,l.signature=r.signature},function(e,t,n){ /** * @preserve jed.js https://github.com/SlexAxton/Jed */ !function(n,r){var i=Array.prototype,a=Object.prototype,s=i.slice,o=a.hasOwnProperty,c=i.forEach,l={},u={forEach:function(e,t,n){var r,i,a;if(null!==e)if(c&&e.forEach===c)e.forEach(t,n);else if(e.length===+e.length){for(r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===l)return}else for(a in e)if(o.call(e,a)&&t.call(n,e[a],a,e)===l)return},extend:function(e){return this.forEach(s.call(arguments,1),(function(t){for(var n in t)e[n]=t[n]})),e}},p=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=u.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};function d(e){return p.PF.compile(e||"nplurals=2; plural=(n != 1);")}function h(e,t){this._key=e,this._i18n=t}p.context_delimiter=String.fromCharCode(4),u.extend(h.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?p.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),u.extend(p.prototype,{translate:function(e){return new h(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){return this.dcnpgettext.call(this,void 0,void 0,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},ngettext:function(e,t,n){return this.dcnpgettext.call(this,void 0,void 0,e,t,n)},dngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},dcngettext:function(e,t,n,r){return this.dcnpgettext.call(this,e,void 0,t,n,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,r){return this.dcnpgettext.call(this,void 0,e,t,n,r)},dnpgettext:function(e,t,n,r,i){return this.dcnpgettext.call(this,e,t,n,r,i)},dcnpgettext:function(e,t,n,r,i){var a;if(r=r||n,e=e||this._textdomain,!this.options)return(a=new p).dcnpgettext.call(a,void 0,void 0,n,r,i);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!n)throw new Error("No translation key found.");var s,o,c,l=t?t+p.context_delimiter+n:n,u=this.options.locale_data,h=u[e],f=(u.messages||this.defaults.locale_data.messages)[""],m=h[""].plural_forms||h[""]["Plural-Forms"]||h[""]["plural-forms"]||f.plural_forms||f["Plural-Forms"]||f["plural-forms"];if(void 0===i)c=0;else{if("number"!=typeof i&&(i=parseInt(i,10),isNaN(i)))throw new Error("The number that was passed in is not a number.");c=d(m)(i)}if(!h)throw new Error("No domain named `"+e+"` could be found.");return!(s=h[l])||c>s.length?(this.options.missing_key_callback&&this.options.missing_key_callback(l,e),o=[n,r],!0===this.options.debug&&console.log(o[d(m)(i)]),o[d()(i)]):(o=s[c])||(o=[n,r])[d()(i)]}});var f,m,g=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")}var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var i,a,s,o,c,l,u,p=1,d=n.length,h="",f=[];for(a=0;a<d;a++)if("string"===(h=e(n[a])))f.push(n[a]);else if("array"===h){if((o=n[a])[2])for(i=r[p],s=0;s<o[2].length;s++){if(!i.hasOwnProperty(o[2][s]))throw g('[sprintf] property "%s" does not exist',o[2][s]);i=i[o[2][s]]}else i=o[1]?r[o[1]]:r[p++];if(/[^s]/.test(o[8])&&"number"!=e(i))throw g("[sprintf] expecting number but found %s",e(i));switch(null==i&&(i=""),o[8]){case"b":i=i.toString(2);break;case"c":i=String.fromCharCode(i);break;case"d":i=parseInt(i,10);break;case"e":i=o[7]?i.toExponential(o[7]):i.toExponential();break;case"f":i=o[7]?parseFloat(i).toFixed(o[7]):parseFloat(i);break;case"o":i=i.toString(8);break;case"s":i=(i=String(i))&&o[7]?i.substring(0,o[7]):i;break;case"u":i=Math.abs(i);break;case"x":i=i.toString(16);break;case"X":i=i.toString(16).toUpperCase()}i=/[def]/.test(o[8])&&o[3]&&i>=0?"+"+i:i,l=o[4]?"0"==o[4]?"0":o[4].charAt(1):" ",u=o[6]-String(i).length,c=o[6]?t(l,u):"",f.push(o[5]?i+c:c+i)}return f.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],i=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(n[2]){i|=1;var a=[],s=n[2],o=[];if(null===(o=/^([a-z_][a-z_\d]*)/i.exec(s)))throw"[sprintf] huh?";for(a.push(o[1]);""!==(s=s.substring(o[0].length));)if(null!==(o=/^\.([a-z_][a-z_\d]*)/i.exec(s)))a.push(o[1]);else{if(null===(o=/^\[(\d+)\]/.exec(s)))throw"[sprintf] huh?";a.push(o[1])}n[2]=a}else i|=2;if(3===i)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}t=t.substring(n[0].length)}return r},n}(),v=function(e,t){return t.unshift(e),g.apply(null,t)};p.parse_plural=function(e,t){return e=e.replace(/n/g,t),p.parse_expression(e)},p.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?v(e,[].slice.call(t)):g.apply(this,[].slice.call(arguments))},p.prototype.sprintf=function(){return p.sprintf.apply(this,arguments)},(p.PF={}).parse=function(e){var t=p.PF.extractPluralExpr(e);return p.PF.parser.parse.call(p.PF.parser,t)},p.PF.compile=function(e){var t=p.PF.parse(e);return function(e){return!0===(n=p.PF.interpreter(t)(e))?1:n||0;var n}},p.PF.interpreter=function(e){return function(t){switch(e.type){case"GROUP":return p.PF.interpreter(e.expr)(t);case"TERNARY":return p.PF.interpreter(e.expr)(t)?p.PF.interpreter(e.truthy)(t):p.PF.interpreter(e.falsey)(t);case"OR":return p.PF.interpreter(e.left)(t)||p.PF.interpreter(e.right)(t);case"AND":return p.PF.interpreter(e.left)(t)&&p.PF.interpreter(e.right)(t);case"LT":return p.PF.interpreter(e.left)(t)<p.PF.interpreter(e.right)(t);case"GT":return p.PF.interpreter(e.left)(t)>p.PF.interpreter(e.right)(t);case"LTE":return p.PF.interpreter(e.left)(t)<=p.PF.interpreter(e.right)(t);case"GTE":return p.PF.interpreter(e.left)(t)>=p.PF.interpreter(e.right)(t);case"EQ":return p.PF.interpreter(e.left)(t)==p.PF.interpreter(e.right)(t);case"NEQ":return p.PF.interpreter(e.left)(t)!=p.PF.interpreter(e.right)(t);case"MOD":return p.PF.interpreter(e.left)(t)%p.PF.interpreter(e.right)(t);case"VAR":return t;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},p.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var t,n=/nplurals\=(\d+);/,r=e.match(n);if(!(r.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(r[1],!((t=(e=e.replace(n,"")).match(/plural\=(.*);/))&&t.length>1))throw new Error("`plural` expression not found: "+e);return t[1]},p.PF.parser=(f={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,t,n,r,i,a,s){var o=a.length-1;switch(i){case 1:return{type:"GROUP",expr:a[o-1]};case 2:this.$={type:"TERNARY",expr:a[o-4],truthy:a[o-2],falsey:a[o]};break;case 3:this.$={type:"OR",left:a[o-2],right:a[o]};break;case 4:this.$={type:"AND",left:a[o-2],right:a[o]};break;case 5:this.$={type:"LT",left:a[o-2],right:a[o]};break;case 6:this.$={type:"LTE",left:a[o-2],right:a[o]};break;case 7:this.$={type:"GT",left:a[o-2],right:a[o]};break;case 8:this.$={type:"GTE",left:a[o-2],right:a[o]};break;case 9:this.$={type:"NEQ",left:a[o-2],right:a[o]};break;case 10:this.$={type:"EQ",left:a[o-2],right:a[o]};break;case 11:this.$={type:"MOD",left:a[o-2],right:a[o]};break;case 12:this.$={type:"GROUP",expr:a[o-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],a=this.table,s="",o=0,c=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;function p(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}i.push(u),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,h,f,m,g,v,b,y,w,_,k={};;){if(f=n[n.length-1],this.defaultActions[f]?m=this.defaultActions[f]:(null==d&&(d=p()),m=a[f]&&a[f][d]),void 0===m||!m.length||!m[0]){if(!l){for(v in w=[],a[f])this.terminals_[v]&&v>2&&w.push("'"+this.terminals_[v]+"'");var E="";E=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+w.join(", ")+", got '"+this.terminals_[d]+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(E,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:u,expected:w})}if(3==l){if(1==d)throw new Error(E||"Parsing halted.");c=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,u=this.lexer.yylloc,d=p()}for(;!(2..toString()in a[f]);){if(0==f)throw new Error(E||"Parsing halted.");_=1,n.length=n.length-2*_,r.length=r.length-_,i.length=i.length-_,f=n[n.length-1]}h=d,d=2,m=a[f=n[n.length-1]]&&a[f][2],l=3}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+d);switch(m[0]){case 1:n.push(d),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(m[1]),d=null,h?(d=h,h=null):(c=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,u=this.lexer.yylloc,l>0&&l--);break;case 2:if(b=this.productions_[m[1]][1],k.$=r[r.length-b],k._$={first_line:i[i.length-(b||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(b||1)].first_column,last_column:i[i.length-1].last_column},void 0!==(g=this.performAction.call(k,s,c,o,this.yy,m[1],r,i)))return g;b&&(n=n.slice(0,-1*b*2),r=r.slice(0,-1*b),i=i.slice(0,-1*b)),n.push(this.productions_[m[1]][0]),r.push(k.$),i.push(k._$),y=a[n[n.length-2]][n[n.length-1]],n.push(y);break;case 3:return!0}}return!0}},m=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if(e=this._input.match(this.rules[n[r]]))return(t=e[0].match(/\n.*/g))&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,n[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},rules:[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};return e}(),f.lexer=m,f),e.exports&&(t=e.exports=p),t.Jed=p}()},,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(107),i=n(41),a=n(221),s=n(31),o=n(46),c=n(222),l=n(71),u=n(229),p=n(26)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,f,m,g,v){c(n,t,f);var b,y,w,_=function(e){if(!d&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",E="values"==m,C=!1,S=e.prototype,T=S[p]||S["@@iterator"]||m&&S[m],A=T||_(m),x=m?E?_("entries"):A:void 0,M="Array"==t&&S.entries||T;if(M&&(w=u(M.call(new e)))!==Object.prototype&&w.next&&(l(w,k,!0),r||"function"==typeof w[p]||s(w,p,h)),E&&T&&"values"!==T.name&&(C=!0,A=function(){return T.call(this)}),r&&!v||!d&&!C&&S[p]||s(S,p,A),o[t]=A,o[k]=h,m)if(b={values:E?A:_("values"),keys:g?A:_("keys"),entries:x},v)for(y in b)y in S||a(S,y,b[y]);else i(i.P+i.F*(d||C),t,b);return b}},function(e,t,n){var r=n(112),i=n(64);e.exports=function(e){return r(i(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(63),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(113)("keys"),i=n(70);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(32).f,i=n(45),a=n(26)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(12),i=n(123),a=n(13).Buffer,s=new Array(16);function o(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function l(e,t,n,r,i,a,s){return c(e+(t&n|~t&r)+i+a|0,s)+t|0}function u(e,t,n,r,i,a,s){return c(e+(t&r|n&~r)+i+a|0,s)+t|0}function p(e,t,n,r,i,a,s){return c(e+(t^n^r)+i+a|0,s)+t|0}function d(e,t,n,r,i,a,s){return c(e+(n^(t|~r))+i+a|0,s)+t|0}r(o,i),o.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,a=this._d;n=l(n,r,i,a,e[0],3614090360,7),a=l(a,n,r,i,e[1],3905402710,12),i=l(i,a,n,r,e[2],606105819,17),r=l(r,i,a,n,e[3],3250441966,22),n=l(n,r,i,a,e[4],4118548399,7),a=l(a,n,r,i,e[5],1200080426,12),i=l(i,a,n,r,e[6],2821735955,17),r=l(r,i,a,n,e[7],4249261313,22),n=l(n,r,i,a,e[8],1770035416,7),a=l(a,n,r,i,e[9],2336552879,12),i=l(i,a,n,r,e[10],4294925233,17),r=l(r,i,a,n,e[11],2304563134,22),n=l(n,r,i,a,e[12],1804603682,7),a=l(a,n,r,i,e[13],4254626195,12),i=l(i,a,n,r,e[14],2792965006,17),n=u(n,r=l(r,i,a,n,e[15],1236535329,22),i,a,e[1],4129170786,5),a=u(a,n,r,i,e[6],3225465664,9),i=u(i,a,n,r,e[11],643717713,14),r=u(r,i,a,n,e[0],3921069994,20),n=u(n,r,i,a,e[5],3593408605,5),a=u(a,n,r,i,e[10],38016083,9),i=u(i,a,n,r,e[15],3634488961,14),r=u(r,i,a,n,e[4],3889429448,20),n=u(n,r,i,a,e[9],568446438,5),a=u(a,n,r,i,e[14],3275163606,9),i=u(i,a,n,r,e[3],4107603335,14),r=u(r,i,a,n,e[8],1163531501,20),n=u(n,r,i,a,e[13],2850285829,5),a=u(a,n,r,i,e[2],4243563512,9),i=u(i,a,n,r,e[7],1735328473,14),n=p(n,r=u(r,i,a,n,e[12],2368359562,20),i,a,e[5],4294588738,4),a=p(a,n,r,i,e[8],2272392833,11),i=p(i,a,n,r,e[11],1839030562,16),r=p(r,i,a,n,e[14],4259657740,23),n=p(n,r,i,a,e[1],2763975236,4),a=p(a,n,r,i,e[4],1272893353,11),i=p(i,a,n,r,e[7],4139469664,16),r=p(r,i,a,n,e[10],3200236656,23),n=p(n,r,i,a,e[13],681279174,4),a=p(a,n,r,i,e[0],3936430074,11),i=p(i,a,n,r,e[3],3572445317,16),r=p(r,i,a,n,e[6],76029189,23),n=p(n,r,i,a,e[9],3654602809,4),a=p(a,n,r,i,e[12],3873151461,11),i=p(i,a,n,r,e[15],530742520,16),n=d(n,r=p(r,i,a,n,e[2],3299628645,23),i,a,e[0],4096336452,6),a=d(a,n,r,i,e[7],1126891415,10),i=d(i,a,n,r,e[14],2878612391,15),r=d(r,i,a,n,e[5],4237533241,21),n=d(n,r,i,a,e[12],1700485571,6),a=d(a,n,r,i,e[3],2399980690,10),i=d(i,a,n,r,e[10],4293915773,15),r=d(r,i,a,n,e[1],2240044497,21),n=d(n,r,i,a,e[8],1873313359,6),a=d(a,n,r,i,e[15],4264355552,10),i=d(i,a,n,r,e[6],2734768916,15),r=d(r,i,a,n,e[13],1309151649,21),n=d(n,r,i,a,e[4],4149444226,6),a=d(a,n,r,i,e[11],3174756917,10),i=d(i,a,n,r,e[2],718787259,15),r=d(r,i,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=o},function(e,t,n){e.exports=i;var r=n(25).EventEmitter;function i(){r.call(this)}n(12)(i,r),i.Readable=n(74),i.Writable=n(264),i.Duplex=n(265),i.Transform=n(266),i.PassThrough=n(267),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",o),n.on("close",c));var s=!1;function o(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",o),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},function(e,t,n){(t=e.exports=n(124)).Stream=t,t.Readable=t,t.Writable=n(76),t.Duplex=n(35),t.Transform=n(127),t.PassThrough=n(263)},function(e,t,n){var r=n(17),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s),a(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r){var i=n(55);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,o=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;v.WritableState=g;var c=n(48);c.inherits=n(12);var l={deprecate:n(261)},u=n(125),p=n(75).Buffer,d=window.Uint8Array||function(){};var h,f=n(126);function m(){}function g(e,t){s=s||n(35),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:r&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(a(r),e._writableState.errorEmitted=!0,e.emit("error",r),E(e,t))}(e,n,r,t,a);else{var s=_(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?o(y,e,n,s,a):y(e,n,s,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||n(35),!(h.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function b(e,t,n,r,i,a,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function y(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var o=0,c=!0;n;)i[o]=n,n.isBuf||(c=!1),n=n.next,o+=1;i.allBuffers=c,b(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,p=n.callback;if(b(e,t,!1,t.objectMode?1:l.length,l,u,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=_(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(v,u),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):h=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,n){var r,a=this._writableState,s=!1,o=!a.objectMode&&(r=e,p.isBuffer(r)||r instanceof d);return o&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=m),a.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(o||function(e,t,n,r){var a=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),i.nextTick(r,s),a=!1),a}(this,a,e,n))&&(a.pendingcb++,s=function(e,t,n,r,i,a){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var o=t.objectMode?1:r.length;t.length+=o;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,o,r,i,a);return c}(this,a,o,e,t,n)),s},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},v.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=f.destroy,v.prototype._undestroy=f.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(23),n(259).setImmediate)},function(e,t,n){"use strict";var r=n(262).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=u,this.end=p,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=s(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=s(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(17).Buffer,i=n(12),a=n(123),s=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],p=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,i,a,s,o){return f(e+(t^n^r)+a+s|0,o)+i|0}function g(e,t,n,r,i,a,s,o){return f(e+(t&n|~t&r)+a+s|0,o)+i|0}function v(e,t,n,r,i,a,s,o){return f(e+((t|~n)^r)+a+s|0,o)+i|0}function b(e,t,n,r,i,a,s,o){return f(e+(t&r|n&~r)+a+s|0,o)+i|0}function y(e,t,n,r,i,a,s,o){return f(e+(t^(n|~r))+a+s|0,o)+i|0}i(h,a),h.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,k=0|this._c,E=0|this._d,C=0|this._e,S=0;S<80;S+=1){var T,A;S<16?(T=m(n,r,i,a,h,e[o[S]],p[0],l[S]),A=y(w,_,k,E,C,e[c[S]],d[0],u[S])):S<32?(T=g(n,r,i,a,h,e[o[S]],p[1],l[S]),A=b(w,_,k,E,C,e[c[S]],d[1],u[S])):S<48?(T=v(n,r,i,a,h,e[o[S]],p[2],l[S]),A=v(w,_,k,E,C,e[c[S]],d[2],u[S])):S<64?(T=b(n,r,i,a,h,e[o[S]],p[3],l[S]),A=g(w,_,k,E,C,e[c[S]],d[3],u[S])):(T=y(n,r,i,a,h,e[o[S]],p[4],l[S]),A=m(w,_,k,E,C,e[c[S]],d[4],u[S])),n=h,h=a,a=f(i,10),i=r,r=T,w=C,C=E,E=f(k,10),k=_,_=A}var x=this._b+i+E|0;this._b=this._c+a+C|0,this._c=this._d+h+w|0,this._d=this._e+n+_|0,this._e=this._a+r+k|0,this._a=x},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(268),t.sha1=n(269),t.sha224=n(270),t.sha256=n(128),t.sha384=n(271),t.sha512=n(129)},function(e,t,n){"use strict";t.utils=n(277),t.Cipher=n(278),t.DES=n(279),t.CBC=n(280),t.EDE=n(281)},function(e,t,n){var r=n(282),i=n(290),a=n(139);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(a)}},function(e,t,n){var r={ECB:n(283),CBC:n(284),CFB:n(285),CFB8:n(286),CFB1:n(287),OFB:n(288),CTR:n(137),GCM:n(137)},i=n(139);for(var a in i)i[a].module=r[i[a].mode];e.exports=i},function(e,t,n){var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=n(294);if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(s){}},function(e,t,n){(function(t){var r=n(16),i=n(36);function a(e,n){var i=function(e){var t=s(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),a=n.modulus.byteLength(),o=(r.mont(n.modulus),new r(e).mul(i.blinder).umod(n.modulus)),c=o.toRed(r.mont(n.prime1)),l=o.toRed(r.mont(n.prime2)),u=n.coefficient,p=n.prime1,d=n.prime2,h=c.redPow(n.exponent1),f=l.redPow(n.exponent2);h=h.fromRed(),f=f.fromRed();var m=h.isub(f).imul(u).umod(p);return m.imul(d),f.iadd(m),new t(f.imul(i.unblinder).umod(n.modulus).toArray(!1,a))}function s(e){for(var t=e.modulus.byteLength(),n=new r(i(t));n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(i(t));return n}e.exports=a,a.getr=s}).call(this,n(17).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(299).version,r.utils=n(20),r.rand=n(83),r.curve=n(145),r.curves=n(86),r.ec=n(309),r.eddsa=n(313)},function(e,t,n){"use strict";var r,i=t,a=n(87),s=n(145),o=n(20).assert;function c(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(308)}catch(u){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(24),r.common=n(40),r.sha=n(303),r.ripemd=n(306),r.hmac=n(307),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";e.exports=n(169)},function(e,t,n){"use strict";var r=n(24),i=n(40),a=n(105),s=r.rotl32,o=r.sum32,c=r.sum32_5,l=a.ft_1,u=i.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],a=this.h[1],u=this.h[2],d=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var f=~~(r/20),m=c(s(i,5),l(f,a,u,d),h,n[r],p[f]);h=d,d=u,u=s(a,30),a=i,i=m}this.h[0]=o(this.h[0],i),this.h[1]=o(this.h[1],a),this.h[2]=o(this.h[2],u),this.h[3]=o(this.h[3],d),this.h[4]=o(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(88),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function c(e){return r.isMemo(e)?s:o[e.$$typeof]||i}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=h(n);i&&i!==f&&e(t,i,r)}var s=u(n);p&&(s=s.concat(p(n)));for(var o=c(t),m=c(n),g=0;g<s.length;++g){var v=s[g];if(!(a[v]||r&&r[v]||m&&m[v]||o&&o[v])){var b=d(n,v);try{l(t,v,b)}catch(y){}}}return t}return t}},function(e,t,n){"use strict";(function(e){var r,i=n(157);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof window?window:e;var a=Object(i.a)(r);t.a=a}).call(this,n(170)(e))},function(e,t){!function(){e.exports=this.moment}()},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){var r=n(200);e.exports=h,e.exports.parse=a,e.exports.compile=function(e,t){return o(a(e,t))},e.exports.tokensToFunction=o,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,s=0,o="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var p=n[0],d=n[1],h=n.index;if(o+=e.slice(s,h),s=h+p.length,d)o+=d[1];else{var f=e[s],m=n[2],g=n[3],v=n[4],b=n[5],y=n[6],w=n[7];o&&(r.push(o),o="");var _=null!=m&&null!=f&&f!==m,k="+"===y||"*"===y,E="?"===y||"*"===y,C=n[2]||u,S=v||b;r.push({name:g||a++,prefix:m||"",delimiter:C,optional:E,repeat:k,partial:_,asterisk:!!w,pattern:S?l(S):w?".*":"[^"+c(C)+"]+?"})}}return s<e.length&&(o+=e.substr(s)),o&&r.push(o),r}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function o(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,i){for(var a="",o=n||{},c=(i||{}).pretty?s:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var p,d=o[u.name];if(null==d){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(p=c(d[h]),!t[l].test(p))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(p)+"`");a+=(0===h?u.prefix:u.delimiter)+p}}else{if(p=u.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(d),!t[l].test(p))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+p+'"');a+=u.prefix+p}}else a+=u}return a}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,a=!1!==n.end,s="",o=0;o<e.length;o++){var l=e[o];if("string"==typeof l)s+=c(l);else{var d=c(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+d+h+")*"),s+=h=l.optional?l.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var f=c(n.delimiter||"/"),m=s.slice(-f.length)===f;return i||(s=(m?s.slice(0,-f.length):s)+"(?:"+f+"(?=$))?"),s+=a?"$":i&&m?"":"(?="+f+"|$)",u(new RegExp("^"+s,p(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",p(n)),t)}(e,t,n):function(e,t,n){return d(a(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";(function(t){var r=n(205);e.exports=d;var i,a,s="undefined"!=typeof document&&document.ontouchstart?"touchstart":"click",o="undefined"!=typeof window&&(window.history.location||window.location),c=!0,l=!0,u="",p=!1;function d(e,t){if("function"==typeof e)return d("*",e);if("function"==typeof t)for(var n=new m(e),r=1;r<arguments.length;++r)d.callbacks.push(n.middleware(arguments[r]));else"string"==typeof e?d["string"==typeof t?"redirect":"show"](e,t):d.start(e)}function h(e){return"string"!=typeof e?e:l?decodeURIComponent(e.replace(/\+/g," ")):e}function f(e,t){"/"===e[0]&&0!==e.indexOf(u)&&(e=u+(p?"#!":"")+e);var n=e.indexOf("?");if(this.canonicalPath=e,this.path=e.replace(u,"")||"/",p&&(this.path=this.path.replace("#!","")||"/"),this.title=document.title,this.state=t||{},this.state.path=e,this.querystring=~n?h(e.slice(n+1)):"",this.pathname=h(~n?e.slice(0,n):e),this.params={},this.hash="",!p){if(!~this.path.indexOf("#"))return;var r=this.path.split("#");this.path=r[0],this.hash=h(r[1])||"",this.querystring=this.querystring.split("#")[0]}}function m(e,t){t=t||{},this.path="*"===e?"(.*)":e,this.method="GET",this.regexp=r(this.path,this.keys=[],t)}d.callbacks=[],d.exits=[],d.current="",d.len=0,d.base=function(e){if(0===arguments.length)return u;u=e},d.start=function(e){if(e=e||{},!i&&(i=!0,!1===e.dispatch&&(c=!1),!1===e.decodeURLComponents&&(l=!1),!1!==e.popstate&&window.addEventListener("popstate",g,!1),!1!==e.click&&document.addEventListener(s,v,!1),!0===e.hashbang&&(p=!0),c)){var t=p&&~o.hash.indexOf("#!")?o.hash.substr(2)+o.search:o.pathname+o.search+o.hash;d.replace(t,null,!0,c)}},d.stop=function(){i&&(d.current="",d.len=0,i=!1,document.removeEventListener(s,v,!1),window.removeEventListener("popstate",g,!1))},d.show=function(e,t,n,r){var i=new f(e,t);return d.current=i.path,!1!==n&&d.dispatch(i),!1!==i.handled&&!1!==r&&i.pushState(),i},d.back=function(e,t){d.len>0?(history.back(),d.len--):e?setTimeout((function(){d.show(e,t)})):setTimeout((function(){d.show(u,t)}))},d.redirect=function(e,t){"string"==typeof e&&"string"==typeof t&&d(e,(function(e){setTimeout((function(){d.replace(t)}),0)})),"string"==typeof e&&void 0===t&&setTimeout((function(){d.replace(e)}),0)},d.replace=function(e,t,n,r){var i=new f(e,t);return d.current=i.path,i.init=n,i.save(),!1!==r&&d.dispatch(i),i},d.dispatch=function(e){var t=a,n=0,r=0;function i(){var t=d.callbacks[n++];if(e.path===d.current)return t?void t(e,i):function(e){if(e.handled)return;var t;t=p?u+o.hash.replace("#!",""):o.pathname+o.search;if(t===e.canonicalPath)return;d.stop(),e.handled=!1,o.href=e.canonicalPath}(e);e.handled=!1}a=e,t?function e(){var n=d.exits[r++];if(!n)return i();n(t,e)}():i()},d.exit=function(e,t){if("function"==typeof e)return d.exit("*",e);for(var n=new m(e),r=1;r<arguments.length;++r)d.exits.push(n.middleware(arguments[r]))},d.Context=f,f.prototype.pushState=function(){d.len++,history.pushState(this.state,this.title,p&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},f.prototype.save=function(){history.replaceState(this.state,this.title,p&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},d.Route=m,m.prototype.middleware=function(e){var t=this;return function(n,r){if(t.match(n.path,n.params))return e(n,r);r()}},m.prototype.match=function(e,t){var n=this.keys,r=e.indexOf("?"),i=~r?e.slice(0,r):e,a=this.regexp.exec(decodeURIComponent(i));if(!a)return!1;for(var s=1,o=a.length;s<o;++s){var c=n[s-1],l=h(a[s]);void 0===l&&hasOwnProperty.call(t,c.name)||(t[c.name]=l)}return!0};var g=function(){var e=!1;if("undefined"!=typeof window)return"complete"===document.readyState?e=!0:window.addEventListener("load",(function(){setTimeout((function(){e=!0}),0)})),function(t){if(e)if(t.state){var n=t.state.path;d.replace(n,t.state)}else d.show(o.pathname+o.hash,void 0,void 0,!1)}}();function v(e){if(1===function(e){return null===(e=e||window.event).which?e.button:e.which}(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented)){for(var n=e.path?e.path[0]:e.target;n&&"A"!==n.nodeName;)n=n.parentNode;if(n&&"A"===n.nodeName&&!n.hasAttribute("download")&&"external"!==n.getAttribute("rel")){var r=n.getAttribute("href");if((p||n.pathname!==o.pathname||!n.hash&&"#"!==r)&&!(r&&r.indexOf("mailto:")>-1)&&!n.target&&b(n.href)){var i=n.pathname+n.search+(n.hash||"");void 0!==t&&i.match(/^\/[a-zA-Z]:\//)&&(i=i.replace(/^\/[a-zA-Z]:\//,"/"));var a=i;0===i.indexOf(u)&&(i=i.substr(u.length)),p&&(i=i.replace("#!","")),u&&a===i||(e.preventDefault(),d.show(a))}}}}function b(e){var t=o.protocol+"//"+o.hostname;return o.port&&(t+=":"+o.port),e&&0===e.indexOf(t)}d.sameOrigin=b}).call(this,n(23))},function(e,t,n){"use strict";var r=n(207),i=n(208);function a(){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=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var s=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),p=["%","/","?",";","#"].concat(u),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(209);function y(e,t,n){if(e&&i.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),o=-1!==a&&a<e.indexOf("#")?"?":"#",l=e.split(o);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(o);if(y=y.trim(),!n&&1===e.split("#").length){var w=c.exec(y);if(w)return this.path=y,this.href=y,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=s.exec(y);if(_){var k=(_=_[0]).toLowerCase();this.protocol=k,y=y.substr(_.length)}if(n||_||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===y.substr(0,2);!E||_&&g[_]||(y=y.substr(2),this.slashes=!0)}if(!g[_]&&(E||_&&!v[_])){for(var C,S,T=-1,A=0;A<d.length;A++){-1!==(x=y.indexOf(d[A]))&&(-1===T||x<T)&&(T=x)}-1!==(S=-1===T?y.lastIndexOf("@"):y.lastIndexOf("@",T))&&(C=y.slice(0,S),y=y.slice(S+1),this.auth=decodeURIComponent(C)),T=-1;for(A=0;A<p.length;A++){var x;-1!==(x=y.indexOf(p[A]))&&(-1===T||x<T)&&(T=x)}-1===T&&(T=y.length),this.host=y.slice(0,T),y=y.slice(T),this.parseHost(),this.hostname=this.hostname||"";var M="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!M)for(var j=this.hostname.split(/\./),N=(A=0,j.length);A<N;A++){var O=j[A];if(O&&!O.match(h)){for(var P="",I=0,D=O.length;I<D;I++)O.charCodeAt(I)>127?P+="x":P+=O[I];if(!P.match(h)){var U=j.slice(0,A),R=j.slice(A+1),z=O.match(f);z&&(U.push(z[1]),R.unshift(z[2])),R.length&&(y="/"+R.join(".")+y),this.hostname=U.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+F,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[k])for(A=0,N=u.length;A<N;A++){var B=u[A];if(-1!==y.indexOf(B)){var V=encodeURIComponent(B);V===B&&(V=escape(B)),y=y.split(B).join(V)}}var H=y.indexOf("#");-1!==H&&(this.hash=y.substr(H),y=y.slice(0,H));var q=y.indexOf("?");if(-1!==q?(this.search=y.substr(q),this.query=y.substr(q+1),t&&(this.query=b.parse(this.query)),y=y.slice(0,q)):t&&(this.search="",this.query={}),y&&(this.pathname=y),v[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var K=this.search||"";this.path=F+K}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,s="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(s=b.stringify(this.query));var o=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),t+a+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(o=o.replace("#","%23"))+r},a.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(i.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var n=new a,r=Object.keys(this),s=0;s<r.length;s++){var o=r[s];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(n[u]=e[u])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var p=Object.keys(e),d=0;d<p.length;d++){var h=p[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",b=n.search||"";n.path=m+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=w||y||n.host&&e.pathname,k=_,E=n.pathname&&n.pathname.split("/")||[],C=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),_=_&&(""===f[0]||""===E[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=f;else if(f.length)E||(E=[]),E.pop(),E=E.concat(f),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(C)n.hostname=n.host=E.shift(),(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=E.slice(-1)[0],T=(n.host||e.host||E.length>1)&&("."===S||".."===S)||""===S,A=0,x=E.length;x>=0;x--)"."===(S=E[x])?E.splice(x,1):".."===S?(E.splice(x,1),A++):A&&(E.splice(x,1),A--);if(!_&&!k)for(;A--;A)E.unshift("..");!_||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),T&&"/"!==E.join("/").substr(-1)&&E.push("");var M,j=""===E[0]||E[0]&&"/"===E[0].charAt(0);C&&(n.hostname=n.host=j?"":E.length?E.shift():"",(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift()));return(_=_||n.host&&E.length)&&!j&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.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},a.prototype.parseHost=function(){var e=this.host,t=o.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){!function(){e.exports=this.wp.components}()},function(e,t,n){var r,i,a=n(361),s=n(362),o=(i=[],{activateTrap:function(e){if(i.length>0){var t=i[i.length-1];t!==e&&t.pause()}var n=i.indexOf(e);-1===n?i.push(e):(i.splice(n,1),i.push(e))},deactivateTrap:function(e){var t=i.indexOf(e);-1!==t&&i.splice(t,1),i.length>0&&i[i.length-1].unpause()}});function c(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,i="string"==typeof e?n.querySelector(e):e,l=s({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),u={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},p={activate:function(e){if(u.active)return;_(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:l.onActivate;t&&t();return h(),p},deactivate:d,pause:function(){if(u.paused||!u.active)return;u.paused=!0,f()},unpause:function(){if(!u.paused||!u.active)return;u.paused=!1,_(),h()}};return p;function d(e){if(u.active){clearTimeout(r),f(),u.active=!1,u.paused=!1,o.deactivateTrap(p);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:l.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:l.returnFocusOnDeactivate)&&c((function(){var e;k((e=u.nodeFocusedBeforeActivation,m("setReturnFocus")||e))})),p}}function h(){if(u.active)return o.activateTrap(p),r=c((function(){k(g())})),n.addEventListener("focusin",b,!0),n.addEventListener("mousedown",v,{capture:!0,passive:!1}),n.addEventListener("touchstart",v,{capture:!0,passive:!1}),n.addEventListener("click",w,{capture:!0,passive:!1}),n.addEventListener("keydown",y,{capture:!0,passive:!1}),p}function f(){if(u.active)return n.removeEventListener("focusin",b,!0),n.removeEventListener("mousedown",v,!0),n.removeEventListener("touchstart",v,!0),n.removeEventListener("click",w,!0),n.removeEventListener("keydown",y,!0),p}function m(e){var t=l[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function g(){var e;if(!(e=null!==m("initialFocus")?m("initialFocus"):i.contains(n.activeElement)?n.activeElement:u.firstTabbableNode||m("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function v(e){i.contains(e.target)||(l.clickOutsideDeactivates?d({returnFocus:!a.isFocusable(e.target)}):l.allowOutsideClick&&l.allowOutsideClick(e)||e.preventDefault())}function b(e){i.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),k(u.mostRecentlyFocusedNode||g()))}function y(e){if(!1!==l.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void d();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(_(),e.shiftKey&&e.target===u.firstTabbableNode)return e.preventDefault(),void k(u.lastTabbableNode);if(!e.shiftKey&&e.target===u.lastTabbableNode)e.preventDefault(),k(u.firstTabbableNode)}(e)}function w(e){l.clickOutsideDeactivates||i.contains(e.target)||l.allowOutsideClick&&l.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function _(){var e=a(i);u.firstTabbableNode=e[0]||g(),u.lastTabbableNode=e[e.length-1]||g()}function k(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),u.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):k(g()))}}},function(e,t,n){var r=n(2);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(100);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){var n=1e3,r=6e4,i=36e5,a=24*i;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)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|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===o&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=a)return s(e,t,a,"day");if(t>=i)return s(e,t,i,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=a)return Math.round(e/a)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=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){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,a,s,o){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,s,o],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(24).rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?a(t,n,r):void 0},t.ch32=i,t.maj32=a,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},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){e.exports=!0},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(33),i=n(27).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(44),i=n(223),a=n(114),s=n(69)("IE_PROTO"),o=function(){},c=function(){var e,t=n(109)("iframe"),r=a.length;for(t.style.display="none",n(228).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[a[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(o.prototype=r(e),n=new o,o.prototype=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(67);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(42),i=n(27),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(107)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(64);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(31);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(67),i=n(26)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var r=n(70)("meta"),i=n(33),a=n(45),s=n(32).f,o=0,c=Object.isExtensible||function(){return!0},l=!n(53)((function(){return c(Object.preventExtensions({}))})),u=function(e){s(e,r,{value:{i:"O"+ ++o,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return l&&p.NEED&&c(e)&&!a(e,r)&&u(e),e}}},function(e,t,n){var r=n(33);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(13).Buffer,i=n(73).Transform;function a(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(12)(a,i),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(i){r=i}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var s=0,o=8*e.length;o>0;++s)this._length[s]+=o,(o=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*o);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},function(e,t,n){"use strict";(function(t){var r=n(55);e.exports=b;var i,a=n(122);b.ReadableState=v;n(25).EventEmitter;var s=function(e,t){return e.listeners(t).length},o=n(125),c=n(75).Buffer,l=window.Uint8Array||function(){};var u=n(48);u.inherits=n(12);var p=n(256),d=void 0;d=p&&p.debuglog?p.debuglog("stream"):function(){};var h,f=n(257),m=n(126);u.inherits(b,o);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var r=t instanceof(i=i||n(35));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,s=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(s||0===s)?s:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(77).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||n(35),!(this instanceof b))return new b(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function y(e,t,n,r,i){var a,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,s)):(i||(a=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?w(e,s,t,!1):C(e,s)):w(e,s,t,!1))):r||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&k(e)),C(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),y(this,e,t,!1,n)},b.prototype.unshift=function(e){return y(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=n(77).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};function _(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(E,e):E(e))}function E(e){d("emit readable"),e.emit("readable"),x(e)}function C(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(S,e,t))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){d("readable nexttick read 0"),e.read(0)}function A(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),x(e),t.flowing&&!t.reading&&e.read(0)}function x(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,s=e>a.length?a.length:e;if(s===a.length?i+=a:i+=a.slice(0,e),0===(e-=s)){s===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(s));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,s),0===(e-=s)){s===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function j(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(N,t,e))}function N(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function O(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):k(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&j(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_(n,t))),null===(r=e>0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&j(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,n){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,n);var c=(!n||!1!==n.end)&&e!==t.stdout&&e!==t.stderr?u:y;function l(t,n){d("onunpipe"),t===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",v),e.removeListener("finish",b),e.removeListener("drain",p),e.removeListener("error",g),e.removeListener("unpipe",l),i.removeListener("end",u),i.removeListener("end",y),i.removeListener("data",m),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function u(){d("onend"),e.end()}o.endEmitted?r.nextTick(c):i.once("end",c),e.on("unpipe",l);var p=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,x(e))}}(i);e.on("drain",p);var h=!1;var f=!1;function m(t){d("ondata"),f=!1,!1!==e.write(t)||f||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==O(o.pipes,e))&&!h&&(d("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,f=!0),i.pause())}function g(t){d("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",b),y()}function b(){d("onfinish"),e.removeListener("close",v),y()}function y(){d("unpipe"),i.unpipe(e)}return i.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",v),e.once("finish",b),e.emit("pipe",i),o.flowing||(d("pipe resume"),i.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var s=O(t.pipes,e);return-1===s?this:(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},b.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&k(this):r.nextTick(T,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(A,e,t))}(this,e)),this},b.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<g.length;a++)e.on(g[a],this.emit.bind(this,g[a]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=M}).call(this,n(23))},function(e,t,n){e.exports=n(25).EventEmitter},function(e,t,n){"use strict";var r=n(55);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=s;var r=n(35),i=n(48);function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(12),i.inherits(s,r),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){var r=n(12),i=n(37),a=n(13).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function c(){this.init(),this._w=o,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function p(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,o=0|this._d,c=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)n[v]=e.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((t=n[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[v-7]+h(n[v-15])+n[v-16];for(var b=0;b<64;++b){var y=g+d(c)+l(c,f,m)+s[b]+n[b]|0,w=p(r)+u(r,i,a)|0;g=m,m=f,f=c,c=o+y|0,o=a,a=i,i=r,r=y+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,t,n){var r=n(12),i=n(37),a=n(13).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function c(){this.init(),this._w=o,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function p(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,o=0|this._eh,c=0|this._fh,b=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,E=0|this._dl,C=0|this._el,S=0|this._fl,T=0|this._gl,A=0|this._hl,x=0;x<32;x+=2)t[x]=e.readInt32BE(4*x),t[x+1]=e.readInt32BE(4*x+4);for(;x<160;x+=2){var M=t[x-30],j=t[x-30+1],N=h(M,j),O=f(j,M),P=m(M=t[x-4],j=t[x-4+1]),I=g(j,M),D=t[x-14],U=t[x-14+1],R=t[x-32],z=t[x-32+1],F=O+U|0,L=N+D+v(F,O)|0;L=(L=L+P+v(F=F+I|0,I)|0)+R+v(F=F+z|0,z)|0,t[x]=L,t[x+1]=F}for(var B=0;B<160;B+=2){L=t[B],F=t[B+1];var V=u(n,r,i),H=u(w,_,k),q=p(n,w),K=p(w,n),J=d(o,C),W=d(C,o),G=s[B],Y=s[B+1],$=l(o,c,b),Q=l(C,S,T),X=A+W|0,Z=y+J+v(X,A)|0;Z=(Z=(Z=Z+$+v(X=X+Q|0,Q)|0)+G+v(X=X+Y|0,Y)|0)+L+v(X=X+F|0,F)|0;var ee=K+H|0,te=q+V+v(ee,K)|0;y=b,A=T,b=c,T=S,c=o,S=C,o=a+Z+v(C=E+X|0,E)|0,a=i,E=k,i=r,k=_,r=n,_=w,n=Z+te+v(w=X+ee|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+E|0,this._el=this._el+C|0,this._fl=this._fl+S|0,this._gl=this._gl+T|0,this._hl=this._hl+A|0,this._ah=this._ah+n+v(this._al,w)|0,this._bh=this._bh+r+v(this._bl,_)|0,this._ch=this._ch+i+v(this._cl,k)|0,this._dh=this._dh+a+v(this._dl,E)|0,this._eh=this._eh+o+v(this._el,C)|0,this._fh=this._fh+c+v(this._fl,S)|0,this._gh=this._gh+b+v(this._gl,T)|0,this._hh=this._hh+y+v(this._hl,A)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,n){"use strict";var r=n(12),i=n(272),a=n(28),s=n(13).Buffer,o=n(131),c=n(78),l=n(79),u=s.alloc(128);function p(e,t){a.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new c:l(e)).update(t).digest():t.length<n&&(t=s.concat([t,u],n));for(var r=this._ipad=s.allocUnsafe(n),i=this._opad=s.allocUnsafe(n),o=0;o<n;o++)r[o]=54^t[o],i[o]=92^t[o];this._hash="rmd160"===e?new c:l(e),this._hash.update(r)}r(p,a),p.prototype._update=function(e){this._hash.update(e)},p.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:l(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new p("rmd160",t):"md5"===e?new i(o,t):new p(e,t)}},function(e,t,n){var r=n(72);e.exports=function(e){return(new r).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,n){t.pbkdf2=n(274),t.pbkdf2Sync=n(136)},function(e,t,n){(function(t){var n=Math.pow(2,30)-1;function r(e,n){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(n+" must be a buffer or string")}e.exports=function(e,t,i,a){if(r(e,"Password"),r(t,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof a)throw new TypeError("Key length not a number");if(a<0||a>n||a!=a)throw new TypeError("Bad key length")}}).call(this,n(17).Buffer)},function(e,t,n){(function(t){var n;t.browser?n="utf-8":n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=n}).call(this,n(23))},function(e,t,n){var r=n(131),i=n(78),a=n(79),s=n(134),o=n(135),c=n(13).Buffer,l=c.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function p(e,t,n){var s=function(e){function t(t){return a(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?r:t}(e),o="sha512"===e||"sha384"===e?128:64;t.length>o?t=s(t):t.length<o&&(t=c.concat([t,l],o));for(var p=c.allocUnsafe(o+u[e]),d=c.allocUnsafe(o+u[e]),h=0;h<o;h++)p[h]=54^t[h],d[h]=92^t[h];var f=c.allocUnsafe(o+n+4);p.copy(f,0,0,o),this.ipad1=f,this.ipad2=p,this.opad=d,this.alg=e,this.blocksize=o,this.hash=s,this.size=u[e]}p.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,r,i){s(e,t,n,r),c.isBuffer(e)||(e=c.from(e,o)),c.isBuffer(t)||(t=c.from(t,o));var a=new p(i=i||"sha1",e,t.length),l=c.allocUnsafe(r),d=c.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var h=0,f=u[i],m=Math.ceil(r/f),g=1;g<=m;g++){d.writeUInt32BE(g,t.length);for(var v=a.run(d,a.ipad1),b=v,y=1;y<n;y++){b=a.run(b,a.ipad2);for(var w=0;w<f;w++)v[w]^=b[w]}v.copy(l,h),h+=f}return l}},function(e,t,n){var r=n(49),i=n(13).Buffer,a=n(138);function s(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var o=0;o<n;o++){var c=s(e),l=a+16*o;e._cache.writeUInt32BE(c[0],l+0),e._cache.writeUInt32BE(c[1],l+4),e._cache.writeUInt32BE(c[2],l+8),e._cache.writeUInt32BE(c[3],l+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,u)}},function(e,t){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,n){var r=n(56),i=n(13).Buffer,a=n(28),s=n(12),o=n(289),c=n(49),l=n(138);function u(e,t,n,s){a.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(c);this._ghash=new o(u),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new o(n),a=t.length,s=a%16;r.update(t),s&&(s=16-s,r.update(i.alloc(s,0))),r.update(i.alloc(8,0));var c=8*a,u=i.alloc(8);u.writeUIntBE(c,0,8),r.update(u),e._finID=r.state;var p=i.from(e._finID);return l(p),p}(this,n,u),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}s(u,a),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=u},function(e,t,n){var r=n(56),i=n(13).Buffer,a=n(28);function s(e,t,n,s){a.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=e}n(12)(s,a),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},e.exports=s},function(e,t,n){var r=n(36);e.exports=b,b.simpleSieve=g,b.fermatTest=v;var i=n(16),a=new i(24),s=new(n(143)),o=new i(1),c=new i(2),l=new i(5),u=(new i(16),new i(8),new i(10)),p=new i(3),d=(new i(7),new i(11)),h=new i(4),f=(new i(12),null);function m(){if(null!==f)return f;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return f=e,e}function g(e){for(var t=m(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function v(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function b(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,f;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(o),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(l))for(;n.mod(u).cmp(p);)n.iadd(h)}else for(;n.mod(a).cmp(d);)n.iadd(h);if(g(f=n.shrn(1))&&g(n)&&v(f)&&v(n)&&s.test(f)&&s.test(n))return n}}},function(e,t,n){var r=n(16),i=n(83);function a(e){this.rand=e||new i.Rand}e.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},a.prototype.test=function(e,t,n){var i=e.bitLength(),a=r.mont(e),s=new r(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var o=e.subn(1),c=0;!o.testn(c);c++);for(var l=e.shrn(c),u=o.toRed(a);t>0;t--){var p=this._randrange(new r(2),o);n&&n(p);var d=p.toRed(a).redPow(l);if(0!==d.cmp(s)&&0!==d.cmp(u)){for(var h=1;h<c;h++){if(0===(d=d.redSqr()).cmp(s))return!1;if(0===d.cmp(u))break}if(h===c)return!1}}return!0},a.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),o=0;!s.testn(o);o++);for(var c=e.shrn(o),l=s.toRed(i);t>0;t--){var u=this._randrange(new r(2),s),p=e.gcd(u);if(0!==p.cmpn(1))return p;var d=u.toRed(i).redPow(c);if(0!==d.cmp(a)&&0!==d.cmp(l)){for(var h=1;h<o;h++){if(0===(d=d.redSqr()).cmp(a))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(l))break}if(h===o)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,s=255&i;a?n.push(a,s):n.push(s)}return n},r.zero2=i,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(58),r.short=n(300),r.mont=n(301),r.edwards=n(302)},function(e,t,n){"use strict";var r=n(24),i=n(40),a=n(105),s=n(19),o=r.sum32,c=r.sum32_4,l=r.sum32_5,u=a.ch32,p=a.maj32,d=a.s0_256,h=a.s1_256,f=a.g0_256,m=a.g1_256,g=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(m(n[r-2]),n[r-7],f(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],g=this.h[2],v=this.h[3],b=this.h[4],y=this.h[5],w=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var k=l(_,h(b),u(b,y,w),this.k[r],n[r]),E=o(d(i),p(i,a,g));_=w,w=y,y=b,b=o(v,k),v=g,g=a,a=i,i=o(k,E)}this.h[0]=o(this.h[0],i),this.h[1]=o(this.h[1],a),this.h[2]=o(this.h[2],g),this.h[3]=o(this.h[3],v),this.h[4]=o(this.h[4],b),this.h[5]=o(this.h[5],y),this.h[6]=o(this.h[6],w),this.h[7]=o(this.h[7],_)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(24),i=n(40),a=n(19),s=r.rotr64_hi,o=r.rotr64_lo,c=r.shr64_hi,l=r.shr64_lo,u=r.sum64,p=r.sum64_hi,d=r.sum64_lo,h=r.sum64_4_hi,f=r.sum64_4_lo,m=r.sum64_5_hi,g=r.sum64_5_lo,v=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function _(e,t,n,r,i,a){var s=t&r^~t&a;return s<0&&(s+=4294967296),s}function k(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function E(e,t,n,r,i,a){var s=t&r^t&a^r&a;return s<0&&(s+=4294967296),s}function C(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function S(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function A(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function x(e,t){var n=s(e,t,1)^s(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function M(e,t){var n=o(e,t,1)^o(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function j(e,t){var n=s(e,t,19)^s(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}function N(e,t){var n=o(e,t,19)^o(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(y,v),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=j(n[r-4],n[r-3]),a=N(n[r-4],n[r-3]),s=n[r-14],o=n[r-13],c=x(n[r-30],n[r-29]),l=M(n[r-30],n[r-29]),u=n[r-32],p=n[r-31];n[r]=h(i,a,s,o,c,l,u,p),n[r+1]=f(i,a,s,o,c,l,u,p)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],s=this.h[2],o=this.h[3],c=this.h[4],l=this.h[5],h=this.h[6],f=this.h[7],v=this.h[8],b=this.h[9],y=this.h[10],x=this.h[11],M=this.h[12],j=this.h[13],N=this.h[14],O=this.h[15];a(this.k.length===n.length);for(var P=0;P<n.length;P+=2){var I=N,D=O,U=T(v,b),R=A(v,b),z=w(v,b,y,x,M),F=_(v,b,y,x,M,j),L=this.k[P],B=this.k[P+1],V=n[P],H=n[P+1],q=m(I,D,U,R,z,F,L,B,V,H),K=g(I,D,U,R,z,F,L,B,V,H);I=C(r,i),D=S(r,i),U=k(r,i,s,o,c),R=E(r,i,s,o,c,l);var J=p(I,D,U,R),W=d(I,D,U,R);N=M,O=j,M=y,j=x,y=v,x=b,v=p(h,f,q,K),b=d(f,f,q,K),h=c,f=l,c=s,l=o,s=r,o=i,r=p(q,K,J,W),i=d(q,K,J,W)}u(this.h,0,r,i),u(this.h,2,s,o),u(this.h,4,c,l),u(this.h,6,h,f),u(this.h,8,v,b),u(this.h,10,y,x),u(this.h,12,M,j),u(this.h,14,N,O)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){var r=n(12),i=n(51).Reporter,a=n(17).Buffer;function s(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof o||(e=new o(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(s,i),t.DecoderBuffer=s,s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new s(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=o,o.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},function(e,t,n){var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(321)},function(e,t,n){var r=n(12),i=n(50),a=i.base,s=i.bignum,o=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){a.Node.call(this,"der",e)}function u(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=o.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){var a=n;for(n=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=127&a}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:o.tag[n]}}function p(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var a=0;a<i;a++){r<<=8;var s=e.readUInt8(n);if(e.isError(s))return s;r|=s}return r}e.exports=c,c.prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},r(l,a.Node),l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},l.prototype._decodeTag=function(e,t,n){var r=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var i=p(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){var n=u(e,t);if(e.isError(n))return n;var r,i=p(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},l.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var s=n.decode(e,"der",r);if(e.isError(s)&&a)break;i.push(s)}return i},l.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",a=0;a<r.length/2;a++)i+=String.fromCharCode(r.readUInt16BE(2*a));return i}if("numstr"===t){var s=e.raw().toString("ascii");return this._isNumstr(s)?s:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var o=e.raw().toString("ascii");return this._isPrintstr(o)?o:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},l.prototype._decodeObjid=function(e,t,n){for(var r,i=[],a=0;!e.isEmpty();){var s=e.readUInt8();a<<=7,a|=127&s,0==(128&s)&&(i.push(a),a=0)}128&s&&i.push(a);var o=i[0]/40|0,c=i[0]%40;if(r=n?i:[o,c].concat(i.slice(1)),t){var l=t[r.join(" ")];void 0===l&&(l=t[r.join(".")]),void 0!==l&&(r=l)}return r},l.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),i=0|n.slice(4,6),a=0|n.slice(6,8),s=0|n.slice(8,10),o=0|n.slice(10,12),c=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),a=0|n.slice(4,6),s=0|n.slice(6,8),o=0|n.slice(8,10),c=0|n.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,a,s,o,c,0)},l.prototype._decodeNull=function(e){return null},l.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){var n=e.raw(),r=new s(n);return t&&(r=t[r.toString(10)]||r),r},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){var r=n(12),i=n(17).Buffer,a=n(50),s=a.base,o=a.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){s.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(l,s.Node),l.prototype._encodeComposite=function(e,t,n,r){var a,s=function(e,t,n,r){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(o.tagByName.hasOwnProperty(e))i=o.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}if(i>=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=o.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128)return(a=new i(2))[0]=s,a[1]=r.length,this._createEncoderBuffer([a,r]);for(var c=1,l=r.length;l>=256;l>>=8)c++;(a=new i(2+c))[0]=s,a[1]=128|c;l=1+c;for(var u=r.length;u>0;l--,u>>=8)a[l]=255&u;return this._createEncoderBuffer([a,r])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new i(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(r=0;r<e.length;r++)e[r]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var a=0;for(r=0;r<e.length;r++){var s=e[r];for(a++;s>=128;s>>=7)a++}var o=new i(a),c=o.length-1;for(r=e.length-1;r>=0;r--){s=e[r];for(o[c--]=127&s;(s>>=7)>0;)o[c--]=128|127&s}return this._createEncoderBuffer(o)},l.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[u(r.getFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new i(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var a=new i(r);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var s=e;s>=256;s>>=8)r++;for(s=(a=new Array(r)).length-1;s>=0;s--)a[s]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new i(a))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),a.length!==i.defaultBuffer.length)return!1;for(r=0;r<a.length;r++)if(a[r]!==i.defaultBuffer[r])return!1;return!0}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,n){var r=n(47),i=n(13).Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,s=i.alloc(0),o=0;s.length<t;)n=a(o++),s=i.concat([s,r("sha1").update(e).update(n).digest()]);return s.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},function(e,t,n){var r=n(16),i=n(13).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},function(e,t,n){},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(5),i=n(62),a=n(175),s=n(176);function o(t){var n="function"==typeof Map?new Map:void 0;return e.exports=o=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return s(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},o(t)}e.exports=o},function(e,t,n){"use strict";(function(r){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":i(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))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=function(){try{return 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"],e.exports=n(178)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n(23))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=o(n(0)),a=o(n(179)),s=o(n(181));function o(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function l(e,t){var n,s,o,u,p,d,h,f,m=[],g={};for(d=0;d<e.length;d++)if("string"!==(p=e[d]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],o=d;break}m.push(t[p.value])}else m.push(p.value);return n&&(u=function(e,t){var n,r,i=t[e],a=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){a++;continue}if("componentClose"===n.type){if(0===a)return r;a--}}throw new Error("Missing closing component token `"+i.value+"`")}(o,e),h=l(e.slice(o+1,u),t),s=i.default.cloneElement(n,{},h),m.push(s),u<e.length-1&&(f=l(e.slice(u+1),t),m=m.concat(f))),1===m.length?m[0]:(m.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,a.default)(g))}t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,s.default)(t);try{return l(a,n)}catch(o){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+o.message+"`");return t}}},function(e,t,n){var r=n(25),i=n(12);function a(e){if(!(this instanceof a))return new a(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=a,i(a,r.EventEmitter),Object.defineProperty(a.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),a.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},a.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},a.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},a.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},a.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},a.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},a.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},a.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},function(e,t,n){"use strict";var r="__global_unique_id__";e.exports=function(){return window[r]=(window[r]||0)+1}},function(e,t,n){"use strict";var r=n(203),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function c(e){return r.isMemo(e)?s:o[e.$$typeof]||i}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=s;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=h(n);i&&i!==f&&e(t,i,r)}var s=u(n);p&&(s=s.concat(p(n)));for(var o=c(t),m=c(n),g=0;g<s.length;++g){var v=s[g];if(!(a[v]||r&&r[v]||m&&m[v]||o&&o[v])){var b=d(n,v);try{l(t,v,b)}catch(y){}}}}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(214));t.default=c;var i=s(n(251)),a=s(n(252));function s(e){return e&&e.__esModule?e:{default:e}}var o=new r.default;function c(e,t){return o.set(e,t),function(){o.delete(e)}}function l(e){o.forEach((function(t,n){(0,a.default)(n,e.target)||t.call(n,e)}))}function u(e){e||(e=document),i.default.bind(e,"click",l)}c.globalClick=l,c.install=u,"undefined"!=typeof document&&u(document),e.exports=t.default},function(e,t,n){function r(e){var t,n;for(t=[],n=0;n<e.length;n++)t.push("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_"[e[n]%64]);return t.join("")}e.exports=function(e){if("undefined"!=typeof window){if(void 0!==window.crypto)return r(window.crypto.getRandomValues(new Uint8Array(e)));for(var t=new Array(e),i=0;i<e;i++)t[i]=Math.floor(256*Math.random());return r(t)}var a=n(253);try{return r(a.randomBytes(e))}catch(s){return r(a.pseudoRandomBytes(e))}}},function(e,t,n){ /*! * clipboard.js v2.0.6 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var a=0,s=r.length;a<s;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){var r=n(3),i=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(5);function i(e,t,n,r,i){var s=a.apply(this,arguments);return e.addEventListener(n,s,i),{destroy:function(){e.removeEventListener(n,s,i)}}}function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,a){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,a)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return s(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),c=n(1),l=n.n(c),u=n(2),p=n.n(u),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),h(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=p()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return m("action",e)}},{key:"defaultTarget",value:function(e){var t=m("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return m("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(l.a);function m(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=f}]).default},e.exports=r()},function(e,t,n){"use strict";var r=n(168);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,s){if(s!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict"; /** @license React v16.8.6 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case d:case s:case c:case o:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case l:return e;default:return t}}case g:case m:case a:return t}}}function b(e){return v(e)===d}t.typeOf=v,t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=s,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=c,t.StrictMode=o,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===c||e===o||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h)},t.isAsyncMode=function(e){return b(e)||v(e)===p},t.isConcurrentMode=b,t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return v(e)===h},t.isFragment=function(e){return v(e)===s},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===m},t.isPortal=function(e){return v(e)===a},t.isProfiler=function(e){return v(e)===c},t.isStrictMode=function(e){return v(e)===o},t.isSuspense=function(e){return v(e)===f}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(100);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(62),i=n(177);function a(t,n,s){return i()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function s(){if(s.enabled){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var a=s,o=Number(new Date),c=o-(n||o);a.diff=c,a.prev=n,a.curr=o,n=o,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var i=r.formatters[n];if("function"==typeof i){var s=t[l];e=i.call(a,s),t.splice(l,1),l--}return e})),r.formatArgs.call(a,t);var u=a.log||r.log;u.apply(a,t)}}return s.namespace=e,s.enabled=r.enabled(e),s.useColors=r.useColors(),s.color=t(e),s.destroy=i,s.extend=a,"function"==typeof r.init&&r.init(s),r.instances.push(s),s}function i(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function a(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var a=r.instances[t];a.enabled=r.enabled(a.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(102),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t,n){"use strict";var r=n(0),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=n(103),s=n(104),o=n(180),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var a,o=typeof e;if("undefined"!==o&&"boolean"!==o||(e=null),null===e||"string"===o||"number"===o||"object"===o&&e.$$typeof===i)return n(r,e,""===t?"."+l(e,0):t),1;var p=0,d=""===t?".":t+":";if(Array.isArray(e))for(var h=0;h<e.length;h++)p+=u(a=e[h],d+l(a,h),n,r);else{var f=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(f){0;for(var m,g=f.call(e),v=0;!(m=g.next()).done;)p+=u(a=m.value,d+l(a,v++),n,r)}else if("object"===o){0;var b=""+e;s(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===b?"object with keys {"+Object.keys(e).join(", ")+"}":b,"")}}return p}var p=/\/+/g;function d(e){return(""+e).replace(p,"$&/")}var h,f,m=g,g=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},v=function(e){s(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function b(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var i,s,o=e.result,c=e.keyPrefix,l=e.func,u=e.context,p=l.call(u,t,e.count++);Array.isArray(p)?w(p,o,n,a.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(i=p,s=c+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+n,p=r.cloneElement(i,{key:s},void 0!==i.props?i.props.children:void 0)),o.push(p))}function w(e,t,n,r,i){var a="";null!=n&&(a=d(n)+"/");var s=b.getPooled(t,a,r,i);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,s),b.release(s)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h=function(e,t,n,r){if(this.instancePool.length){var i=this.instancePool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)},(f=b).instancePool=[],f.getPooled=h||m,f.poolSize||(f.poolSize=10),f.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return o(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return o(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;s(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)w(e[n],t,n,a.thatReturnsArgument);return t}},function(e,t,n){"use strict";var r=n(103);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(r=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){i=!0,a=c}finally{try{r||null==o.return||o.return()}finally{if(i)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(38);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){var n;function r(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];if(r.enabled){var s=r,o=Number(new Date),c=o-(n||o);s.diff=c,s.prev=n,s.curr=o,n=o,t[0]=i.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=i.formatters[n];if("function"==typeof r){var a=t[l];e=r.call(s,a),t.splice(l,1),l--}return e})),i.formatArgs.call(s,t);var u=s.log||i.log;u.apply(s,t)}}return r.namespace=e,r.enabled=i.enabled(e),r.useColors=i.useColors(),r.color=t(e),r.destroy=a,r.extend=s,"function"==typeof i.init&&i.init(r),i.instances.push(r),r}function a(){var e=i.instances.indexOf(this);return-1!==e&&(i.instances.splice(e,1),!0)}function s(e,t){var n=i(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},i.disable=function(){var e=[].concat(r(i.names.map(o)),r(i.skips.map(o).map((function(e){return"-"+e})))).join(",");return i.enable(""),e},i.enable=function(e){var t;i.save(e),i.names=[],i.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")));for(t=0;t<i.instances.length;t++){var a=i.instances[t];a.enabled=i.enabled(a.namespace)}},i.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1},i.humanize=n(102),Object.keys(e).forEach((function(t){i[t]=e[t]})),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i}},function(e,t,n){"use strict";var r=n(190),i=n(191),a=n(104);e.exports=function(e,t,n){var s=[],o={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},l={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=h(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(a(!(n in l),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){var i=c.hasOwnProperty(n)?c[n]:null;return a("DEFINE_MANY_MERGED"===i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=h(e[n],r))}e[n]=r}}}(e,t)},autobind:function(){}};function u(e,t){var n=o.hasOwnProperty(t)?o[t]:null;b.hasOwnProperty(t)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){a("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty("mixins")&&l.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&"mixins"!==s){var c=n[s],p=r.hasOwnProperty(s);if(u(p,s),l.hasOwnProperty(s))l[s](e,c);else{var d=o.hasOwnProperty(s);if("function"==typeof c&&!d&&!p&&!1!==n.autobind)i.push(s,c),r[s]=c;else if(p){var m=o[s];a(d&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,s),"DEFINE_MANY_MERGED"===m?r[s]=h(r[s],c):"DEFINE_MANY"===m&&(r[s]=f(r[s],c))}else r[s]=c}}}else;}function d(e,t){for(var n in a(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(a(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function h(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return d(i,n),d(i,r),i}}function f(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function m(e,t){return t.bind(e)}var g={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},b={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},y=function(){};return r(y.prototype,e.prototype,b),function(e){var t=function(e,r,s){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=m(e,i)}}(this),this.props=e,this.context=r,this.refs=i,this.updater=s||n,this.state=null;var o=this.getInitialState?this.getInitialState():null;a("object"==typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=o};for(var r in t.prototype=new y,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],s.forEach(p.bind(null,t)),p(t,g),p(t,e),p(t,v),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),a(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),o)t.prototype[r]||(t.prototype[r]=null);return t}}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,o,c=s(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(c[u]=n[u]);if(r){o=r(n);for(var p=0;p<o.length;p++)a.call(n,o[p])&&(c[o[p]]=n[o[p]])}}return c}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return!(0,a.default)(this.props,e)||!(0,a.default)(this.state,t)};var r,i=n(193),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),a=0;a<n.length;a++)if(!i(n[a])||e[n[a]]!==t[n[a]])return!1;return!0},e.exports=t.default},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){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports=n(202)},function(e,t,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case d:case s:case c:case o:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case v:case g:case l:return e;default:return t}}case a:return t}}}function E(e){return k(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=s,t.Lazy=v,t.Memo=g,t.Portal=a,t.Profiler=c,t.StrictMode=o,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||k(e)===p},t.isConcurrentMode=E,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return k(e)===h},t.isFragment=function(e){return k(e)===s},t.isLazy=function(e){return k(e)===v},t.isMemo=function(e){return k(e)===g},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===c},t.isStrictMode=function(e){return k(e)===o},t.isSuspense=function(e){return k(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===c||e===o||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===w||e.$$typeof===_||e.$$typeof===b)},t.typeOf=k},function(e,t,n){"use strict";e.exports=n(204)},function(e,t,n){"use strict"; /** @license React v16.8.6 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case d:case s:case c:case o:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case l:return e;default:return t}}case g:case m:case a:return t}}}function b(e){return v(e)===d}t.typeOf=v,t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=s,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=c,t.StrictMode=o,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===c||e===o||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h)},t.isAsyncMode=function(e){return b(e)||v(e)===p},t.isConcurrentMode=b,t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return v(e)===h},t.isFragment=function(e){return v(e)===s},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===m},t.isPortal=function(e){return v(e)===a},t.isProfiler=function(e){return v(e)===c},t.isStrictMode=function(e){return v(e)===o},t.isSuspense=function(e){return v(e)===f}},function(e,t,n){var r=n(206);e.exports=d,e.exports.parse=a,e.exports.compile=function(e){return s(a(e))},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e){for(var t,n=[],r=0,a=0,s="";null!=(t=i.exec(e));){var o=t[0],l=t[1],u=t.index;if(s+=e.slice(a,u),a=u+o.length,l)s+=l[1];else{s&&(n.push(s),s="");var p=t[2],d=t[3],h=t[4],f=t[5],m=t[6],g=t[7],v="+"===m||"*"===m,b="?"===m||"*"===m,y=p||"/",w=h||f||(g?".*":"[^"+y+"]+?");n.push({name:d||r++,prefix:p||"",delimiter:y,optional:b,repeat:v,pattern:c(w)})}}return a<e.length&&(s+=e.substr(a)),s&&n.push(s),n}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^"+e[n].pattern+"$"));return function(n){for(var i="",a=n||{},s=0;s<e.length;s++){var o=e[s];if("string"!=typeof o){var c,l=a[o.name];if(null==l){if(o.optional)continue;throw new TypeError('Expected "'+o.name+'" to be defined')}if(r(l)){if(!o.repeat)throw new TypeError('Expected "'+o.name+'" to not repeat, but received "'+l+'"');if(0===l.length){if(o.optional)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var u=0;u<l.length;u++){if(c=encodeURIComponent(l[u]),!t[s].test(c))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but received "'+c+'"');i+=(0===u?o.prefix:o.delimiter)+c}}else{if(c=encodeURIComponent(l),!t[s].test(c))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but received "'+c+'"');i+=o.prefix+c}}else i+=o}return i}}function o(e){return e.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function u(e){return e.sensitive?"":"i"}function p(e,t){for(var n=(t=t||{}).strict,r=!1!==t.end,i="",a=e[e.length-1],s="string"==typeof a&&/\/$/.test(a),c=0;c<e.length;c++){var l=e[c];if("string"==typeof l)i+=o(l);else{var p=o(l.prefix),d=l.pattern;l.repeat&&(d+="(?:"+p+d+")*"),i+=d=l.optional?p?"(?:"+p+"("+d+"))?":"("+d+")?":p+"("+d+")"}}return n||(i=(s?i.slice(0,-2):i)+"(?:\\/(?=$))?"),i+=r?"$":n&&s?"":"(?=\\/|$)",new RegExp("^"+i,u(t))}function d(e,t,n){return r(t=t||[])?n||(n={}):(n=t,t=[]),e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",u(n)),t)}(e,t,n):function(e,t,n){for(var r=a(e),i=p(r,n),s=0;s<r.length;s++)"string"!=typeof r[s]&&t.push(r[s]);return l(i,t)}(e,t,n)}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){(function(e){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof window&&window;a.global!==a&&a.window!==a&&a.self;var s,o=2147483647,c=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function f(e){throw new RangeError(p[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(u,".")).split("."),t).join(".")}function v(e){for(var t,n,r=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return m(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function y(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))}function _(e){var t,n,r,i,a,s,c,l,u,p,h,m=[],g=e.length,v=0,y=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&f("not-basic"),m.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(a=v,s=1,c=36;i>=g&&f("invalid-input"),((l=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||l>d((o-v)/s))&&f("overflow"),v+=l*s,!(l<(u=c<=_?1:c>=_+26?26:c-_));c+=36)s>d(o/(p=36-u))&&f("overflow"),s*=p;_=w(v-a,t=m.length+1,0==a),d(v/t)>o-y&&f("overflow"),y+=d(v/t),v%=t,m.splice(v++,0,y)}return b(m)}function k(e){var t,n,r,i,a,s,c,l,u,p,m,g,b,_,k,E=[];for(g=(e=v(e)).length,t=128,n=0,a=72,s=0;s<g;++s)(m=e[s])<128&&E.push(h(m));for(r=i=E.length,i&&E.push("-");r<g;){for(c=o,s=0;s<g;++s)(m=e[s])>=t&&m<c&&(c=m);for(c-t>d((o-n)/(b=r+1))&&f("overflow"),n+=(c-t)*b,t=c,s=0;s<g;++s)if((m=e[s])<t&&++n>o&&f("overflow"),m==t){for(l=n,u=36;!(l<(p=u<=a?1:u>=a+26?26:u-a));u+=36)k=l-p,_=36-p,E.push(h(y(p+k%_,0))),l=d(k/_);E.push(h(y(l,0))),a=w(n,b,r==i),n=0,++r}++n,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:v,encode:b},decode:_,encode:k,toASCII:function(e){return g(e,(function(e){return l.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return g(e,(function(e){return c.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(106)(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(210),t.encode=t.stringify=n(211)},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 s={};if("string"!=typeof e||0===e.length)return s;var o=/\+/g;e=e.split(t);var c=1e3;a&&"number"==typeof a.maxKeys&&(c=a.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var p,d,h,f,m=e[u].replace(o,"%20"),g=m.indexOf(n);g>=0?(p=m.substr(0,g),d=m.substr(g+1)):(p=m,d=""),h=decodeURIComponent(p),f=decodeURIComponent(d),r(s,h)?i(s[h])?s[h].push(f):s[h]=[s[h],f]:s[h]=f}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},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,o){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(s(e),(function(s){var o=encodeURIComponent(r(s))+n;return i(e[s])?a(e[s],(function(e){return o+encodeURIComponent(r(e))})).join(t):o+encodeURIComponent(r(e[s]))})).join(t):o?encodeURIComponent(r(o))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var s=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports={default:n(215),__esModule:!0}},function(e,t,n){n(216),n(217),n(230),n(233),n(244),n(247),n(249),e.exports=n(42).Map},function(e,t){},function(e,t,n){"use strict";var r=n(218)(!0);n(65)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(63),i=n(64);e.exports=function(e){return function(t,n){var a,s,o=String(i(t)),c=r(n),l=o.length;return c<0||c>=l?e?"":void 0:(a=o.charCodeAt(c))<55296||a>56319||c+1===l||(s=o.charCodeAt(c+1))<56320||s>57343?e?o.charAt(c):a:e?o.slice(c,c+2):s-56320+(a-55296<<10)+65536}}},function(e,t,n){e.exports=!n(34)&&!n(53)((function(){return 7!=Object.defineProperty(n(109)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(33);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){e.exports=n(31)},function(e,t,n){"use strict";var r=n(111),i=n(110),a=n(71),s={};n(31)(s,n(26)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(32),i=n(44),a=n(224);e.exports=n(34)?Object.defineProperties:function(e,t){i(e);for(var n,s=a(t),o=s.length,c=0;o>c;)r.f(e,n=s[c++],t[n]);return e}},function(e,t,n){var r=n(225),i=n(114);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(45),i=n(66),a=n(226)(!1),s=n(69)("IE_PROTO");e.exports=function(e,t){var n,o=i(e),c=0,l=[];for(n in o)n!=s&&r(o,n)&&l.push(n);for(;t.length>c;)r(o,n=t[c++])&&(~a(l,n)||l.push(n));return l}},function(e,t,n){var r=n(66),i=n(68),a=n(227);e.exports=function(e){return function(t,n,s){var o,c=r(t),l=i(c.length),u=a(s,l);if(e&&n!=n){for(;l>u;)if((o=c[u++])!=o)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(63),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},function(e,t,n){var r=n(27).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(45),i=n(115),a=n(69)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){n(231);for(var r=n(27),i=n(31),a=n(46),s=n(26)("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<o.length;c++){var l=o[c],u=r[l],p=u&&u.prototype;p&&!p[s]&&i(p,s,l),a[l]=a.Array}},function(e,t,n){"use strict";var r=n(232),i=n(116),a=n(46),s=n(66);e.exports=n(65)(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(234),i=n(121);e.exports=n(239)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(32).f,i=n(111),a=n(117),s=n(43),o=n(118),c=n(54),l=n(65),u=n(116),p=n(238),d=n(34),h=n(120).fastKey,f=n(121),m=d?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,r){o(e,u,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,null!=r&&c(r,n,e[l],e)}));return a(u.prototype,{clear:function(){for(var e=f(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=f(this,t),r=g(n,e);if(r){var i=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=i),i&&(i.p=a),n._f==r&&(n._f=i),n._l==r&&(n._l=a),n[m]--}return!!r},forEach:function(e){f(this,t);for(var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(f(this,t),e)}}),d&&r(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var r,i,a=g(e,t);return a?a.v=n:(e._l=a={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=a),r&&(r.n=a),e[m]++,"F"!==i&&(e._i[i]=a)),e},getEntry:g,setStrong:function(e,t,n){l(e,t,(function(e,n){this._t=f(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){var r=n(44);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(s){var a=e.return;throw void 0!==a&&r(a.call(e)),s}}},function(e,t,n){var r=n(46),i=n(26)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},function(e,t,n){var r=n(119),i=n(26)("iterator"),a=n(46);e.exports=n(42).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},function(e,t,n){"use strict";var r=n(27),i=n(42),a=n(32),s=n(34),o=n(26)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];s&&t&&!t[o]&&a.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(27),i=n(41),a=n(120),s=n(53),o=n(31),c=n(117),l=n(54),u=n(118),p=n(33),d=n(71),h=n(32).f,f=n(240)(0),m=n(34);e.exports=function(e,t,n,g,v,b){var y=r[e],w=y,_=v?"set":"add",k=w&&w.prototype,E={};return m&&"function"==typeof w&&(b||k.forEach&&!s((function(){(new w).entries().next()})))?(w=t((function(t,n){u(t,w,e,"_c"),t._c=new y,null!=n&&l(n,v,t[_],t)})),f("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var t="add"==e||"set"==e;e in k&&(!b||"clear"!=e)&&o(w.prototype,e,(function(n,r){if(u(this,w,e),!t&&b&&!p(n))return"get"==e&&void 0;var i=this._c[e](0===n?0:n,r);return t?this:i}))})),b||h(w.prototype,"size",{get:function(){return this._c.size}})):(w=g.getConstructor(t,e,v,_),c(w.prototype,n),a.NEED=!0),d(w,e),E[e]=w,i(i.G+i.W+i.F,E),b||g.setStrong(w,e,v),w}},function(e,t,n){var r=n(43),i=n(112),a=n(115),s=n(68),o=n(241);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,p=6==e,d=5==e||p,h=t||o;return function(t,o,f){for(var m,g,v=a(t),b=i(v),y=r(o,f,3),w=s(b.length),_=0,k=n?h(t,w):c?h(t,0):void 0;w>_;_++)if((d||_ in b)&&(g=y(m=b[_],_,v),e))if(n)k[_]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:k.push(m)}else if(u)return!1;return p?-1:l||u?u:k}}},function(e,t,n){var r=n(242);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(33),i=n(243),a=n(26)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(67);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(41);r(r.P+r.R,"Map",{toJSON:n(245)("Map")})},function(e,t,n){var r=n(119),i=n(246);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){var r=n(54);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){n(248)("Map")},function(e,t,n){"use strict";var r=n(41);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(250)("Map")},function(e,t,n){"use strict";var r=n(41),i=n(108),a=n(43),s=n(54);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,o,c=arguments[1];return i(this),(t=void 0!==c)&&i(c),null==e?new this:(n=[],t?(r=0,o=a(c,arguments[2],2),s(e,!1,(function(e){n.push(o(e,r++))}))):s(e,!1,n.push,n),new this(n))}})}},function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent",r=window.removeEventListener?"removeEventListener":"detachEvent",i="addEventListener"!==n?"on":"";t.bind=function(e,t,r,a){return e[n](i+t,r,a||!1),r},t.unbind=function(e,t,n,a){return e[r](i+t,n,a||!1),n}},function(e,t){e.exports=function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(36),t.createHash=t.Hash=n(47),t.createHmac=t.Hmac=n(130);var r=n(273),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return a};var s=n(133);t.pbkdf2=s.pbkdf2,t.pbkdf2Sync=s.pbkdf2Sync;var o=n(275);t.Cipher=o.Cipher,t.createCipher=o.createCipher,t.Cipheriv=o.Cipheriv,t.createCipheriv=o.createCipheriv,t.Decipher=o.Decipher,t.createDecipher=o.createDecipher,t.Decipheriv=o.Decipheriv,t.createDecipheriv=o.createDecipheriv,t.getCiphers=o.getCiphers,t.listCiphers=o.listCiphers;var c=n(292);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var l=n(297);t.createSign=l.createSign,t.Sign=l.Sign,t.createVerify=l.createVerify,t.Verify=l.Verify,t.createECDH=n(330);var u=n(331);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var p=n(334);t.randomFill=p.randomFill,t.randomFillSync=p.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=l(e),r=n[0],s=n[1],o=new a(function(e,t,n){return 3*(t+n)/4-n}(0,r,s)),c=0,u=s>0?r-4:r,p=0;p<u;p+=4)t=i[e.charCodeAt(p)]<<18|i[e.charCodeAt(p+1)]<<12|i[e.charCodeAt(p+2)]<<6|i[e.charCodeAt(p+3)],o[c++]=t>>16&255,o[c++]=t>>8&255,o[c++]=255&t;2===s&&(t=i[e.charCodeAt(p)]<<2|i[e.charCodeAt(p+1)]>>4,o[c++]=255&t);1===s&&(t=i[e.charCodeAt(p)]<<10|i[e.charCodeAt(p+1)]<<4|i[e.charCodeAt(p+2)]>>2,o[c++]=t>>8&255,o[c++]=255&t);return o},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],s=0,o=n-i;s<o;s+=16383)a.push(u(e,s,s+16383>o?o:s+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,c=s.length;o<c;++o)r[o]=s[o],i[s.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,s=[],o=t;o<n;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),s.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var a,s,o=8*i-r-1,c=(1<<o)-1,l=c>>1,u=-7,p=n?i-1:0,d=n?-1:1,h=e[t+p];for(p+=d,a=h&(1<<-u)-1,h>>=-u,u+=o;u>0;a=256*a+e[t+p],p+=d,u-=8);for(s=a&(1<<-u)-1,a>>=-u,u+=r;u>0;s=256*s+e[t+p],p+=d,u-=8);if(0===a)a=1-l;else{if(a===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),a-=l}return(h?-1:1)*s*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var s,o,c,l=8*a-i-1,u=(1<<l)-1,p=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+p>=1?d/c:d*Math.pow(2,1-p))*c>=2&&(s++,c/=2),s+p>=u?(o=0,s=u):s+p>=1?(o=(t*c-1)*Math.pow(2,i),s+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&o,h+=f,o/=256,i-=8);for(s=s<<i|o,l+=i;l>0;e[n+h]=255&s,h+=f,s/=256,l-=8);e[n+h-f]|=128*m}},function(e,t){},function(e,t,n){"use strict";var r=n(75).Buffer,i=n(258);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,a=r.allocUnsafe(e>>>0),s=this.head,o=0;s;)t=s.data,n=a,i=o,t.copy(n,i),o+=s.data.length,s=s.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){var r="undefined"!=typeof window&&window||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(260),t.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof window&&window.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof window&&window.clearImmediate||this&&this.clearImmediate},function(e,t,n){(function(e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,a,s,o,c=1,l={},u=!1,p=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){f(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){f(e.data)},r=function(e){a.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(i=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(f,0,e)}:(s="setImmediate$"+Math.random()+"$",o=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&f(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),r=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return l[c]=i,r(c),c++},d.clearImmediate=h}function h(e){delete l[e]}function f(e){if(u)setTimeout(f,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),u=!1}}}}}("undefined"==typeof self?"undefined"==typeof window?this:window:self)}).call(this,n(23))},function(e,t){function n(e){try{if(!window.localStorage)return!1}catch(n){return!1}var t=window.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},function(e,t,n){var r=n(17),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s),a(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";e.exports=a;var r=n(127),i=n(48);function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=n(12),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(76)},function(e,t,n){e.exports=n(35)},function(e,t,n){e.exports=n(74).Transform},function(e,t,n){e.exports=n(74).PassThrough},function(e,t,n){var r=n(12),i=n(37),a=n(13).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function c(){this.init(),this._w=o,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,o=0|this._d,c=0|this._e,p=0;p<16;++p)n[p]=e.readInt32BE(4*p);for(;p<80;++p)n[p]=n[p-3]^n[p-8]^n[p-14]^n[p-16];for(var d=0;d<80;++d){var h=~~(d/20),f=0|((t=r)<<5|t>>>27)+u(h,i,a,o)+c+n[d]+s[h];c=o,o=a,a=l(i),i=r,r=f}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,n){var r=n(12),i=n(37),a=n(13).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function c(){this.init(),this._w=o,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function p(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,o=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=(t=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var f=~~(h/20),m=l(r)+p(f,i,a,o)+c+n[h]+s[f]|0;c=o,o=a,a=u(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,n){var r=n(12),i=n(128),a=n(37),s=n(13).Buffer,o=new Array(64);function c(){this.init(),this._w=o,a.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},function(e,t,n){var r=n(12),i=n(129),a=n(37),s=n(13).Buffer,o=new Array(160);function c(){this.init(),this._w=o,a.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},function(e,t,n){"use strict";var r=n(12),i=n(13).Buffer,a=n(28),s=i.alloc(128);function o(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,s],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),o=0;o<64;o++)n[o]=54^t[o],r[o]=92^t[o];this._hash=[n]}r(o,a),o.prototype._update=function(e){this._hash.push(e)},o.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=o},function(e,t,n){e.exports=n(132)},function(e,t,n){(function(t){var r,i=n(134),a=n(135),s=n(136),o=n(13).Buffer,c=window.crypto&&window.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},u=[];function p(e,t,n,r,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,n,d,h,f,m){"function"==typeof f&&(m=f,f=void 0);var g=l[(f=f||"sha1").toLowerCase()];if(!g||"function"!=typeof window.Promise)return t.nextTick((function(){var t;try{t=s(e,n,d,h,f)}catch(r){return m(r)}m(null,t)}));if(i(e,n,d,h),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");o.isBuffer(e)||(e=o.from(e,a)),o.isBuffer(n)||(n=o.from(n,a)),function(e,n){e.then((function(e){t.nextTick((function(){n(null,e)}))}),(function(e){t.nextTick((function(){n(e)}))}))}(function(e){if(window.process&&!window.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==u[e])return u[e];var t=p(r=r||o.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return u[e]=t,t}(g).then((function(t){return t?p(e,n,d,h,g):s(e,n,d,h,f)})),m)}}).call(this,n(23))},function(e,t,n){var r=n(276),i=n(81),a=n(82),s=n(291),o=n(57);function c(e,t,n){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,n);if(s[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function l(e,t,n){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,n);if(s[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");n=8*s[e].key,r=s[e].iv}var i=o(t,!1,n,r);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");n=8*s[e].key,r=s[e].iv}var i=o(t,!1,n,r);return l(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=l,t.listCiphers=t.getCiphers=function(){return Object.keys(s).concat(i.getCiphers())}},function(e,t,n){var r=n(28),i=n(80),a=n(12),s=n(13).Buffer,o={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){r.call(this);var t,n=e.mode.toLowerCase(),i=o[n];t=e.decrypt?"decrypt":"encrypt";var a=e.key;s.isBuffer(a)||(a=s.from(a)),"des-ede"!==n&&"des-ede-cbc"!==n||(a=s.concat([a,a.slice(0,8)]));var c=e.iv;s.isBuffer(c)||(c=s.from(c)),this._des=i.create({key:a,iv:c,type:t})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],e.exports=c,a(c,r),c.prototype._update=function(e){return s.from(this._des.update(e))},c.prototype._final=function(){return s.from(this._des.final())}},function(e,t,n){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,a=0,s=6;s>=0;s-=2){for(var o=0;o<=24;o+=8)i<<=1,i|=t>>>o+s&1;for(o=0;o<=24;o+=8)i<<=1,i|=e>>>o+s&1}for(s=6;s>=0;s-=2){for(o=1;o<=25;o+=8)a<<=1,a|=t>>>o+s&1;for(o=1;o<=25;o+=8)a<<=1,a|=e>>>o+s&1}n[r+0]=i>>>0,n[r+1]=a>>>0},t.rip=function(e,t,n,r){for(var i=0,a=0,s=0;s<4;s++)for(var o=24;o>=0;o-=8)i<<=1,i|=t>>>o+s&1,i<<=1,i|=e>>>o+s&1;for(s=4;s<8;s++)for(o=24;o>=0;o-=8)a<<=1,a|=t>>>o+s&1,a<<=1,a|=e>>>o+s&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.pc1=function(e,t,n,r){for(var i=0,a=0,s=7;s>=5;s--){for(var o=0;o<=24;o+=8)i<<=1,i|=t>>o+s&1;for(o=0;o<=24;o+=8)i<<=1,i|=e>>o+s&1}for(o=0;o<=24;o+=8)i<<=1,i|=t>>o+s&1;for(s=1;s<=3;s++){for(o=0;o<=24;o+=8)a<<=1,a|=t>>o+s&1;for(o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1}for(o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var a=0,s=0,o=r.length>>>1,c=0;c<o;c++)a<<=1,a|=e>>>r[c]&1;for(c=o;c<r.length;c++)s<<=1,s|=t>>>r[c]&1;n[i+0]=a>>>0,n[i+1]=s>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n<a.length;n++)t<<=1,t|=e>>>a[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(" ")}},function(e,t,n){"use strict";var r=n(19);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,n){"use strict";var r=n(19),i=n(12),a=n(80),s=a.utils,o=a.Cipher;function c(){this.tmp=new Array(2),this.keys=null}function l(e){o.call(this,e);var t=new c;this._desState=t,this.deriveKeys(t,e.key)}i(l,o),e.exports=l,l.create=function(e){return new l(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=s.readUInt32BE(t,0),i=s.readUInt32BE(t,4);s.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var o=u[a>>>1];n=s.r28shl(n,o),i=s.r28shl(i,o),s.pc2(n,i,e.keys,a)}},l.prototype._update=function(e,t,n,r){var i=this._desState,a=s.readUInt32BE(e,t),o=s.readUInt32BE(e,t+4);s.ip(a,o,i.tmp,0),a=i.tmp[0],o=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,o,i.tmp,0):this._decrypt(i,a,o,i.tmp,0),a=i.tmp[0],o=i.tmp[1],s.writeUInt32BE(n,a,r),s.writeUInt32BE(n,o,r+4)},l.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},l.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,n,r,i){for(var a=t,o=n,c=0;c<e.keys.length;c+=2){var l=e.keys[c],u=e.keys[c+1];s.expand(o,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var p=s.substitute(l,u),d=o;o=(a^s.permute(p))>>>0,a=d}s.rip(o,a,r,i)},l.prototype._decrypt=function(e,t,n,r,i){for(var a=n,o=t,c=e.keys.length-2;c>=0;c-=2){var l=e.keys[c],u=e.keys[c+1];s.expand(a,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var p=s.substitute(l,u),d=a;a=(o^s.permute(p))>>>0,o=d}s.rip(a,o,r,i)}},function(e,t,n){"use strict";var r=n(19),i=n(12),a={};function s(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(a),r=0;r<n.length;r++){var s=n[r];t.prototype[s]=a[s]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){var e=new s(this.options.iv);this._cbcState=e},a._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,s=i.iv;if("encrypt"===this.type){for(var o=0;o<this.blockSize;o++)s[o]^=e[t+o];a._update.call(this,s,0,n,r);for(o=0;o<this.blockSize;o++)s[o]=n[r+o]}else{a._update.call(this,e,t,n,r);for(o=0;o<this.blockSize;o++)n[r+o]^=s[o];for(o=0;o<this.blockSize;o++)s[o]=e[t+o]}}},function(e,t,n){"use strict";var r=n(19),i=n(12),a=n(80),s=a.Cipher,o=a.DES;function c(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a})]:[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:n})]}function l(e){s.call(this,e);var t=new c(this.type,this.options.key);this._edeState=t}i(l,s),e.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},l.prototype._pad=o.prototype._pad,l.prototype._unpad=o.prototype._unpad},function(e,t,n){var r=n(82),i=n(140),a=n(13).Buffer,s=n(141),o=n(28),c=n(56),l=n(57);function u(e,t,n){o.call(this),this._cache=new d,this._cipher=new c.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}n(12)(u,o),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var p=a.alloc(16,16);function d(){this.cache=a.allocUnsafe(0)}function h(e,t,n){var o=r[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=a.from(n)),"GCM"!==o.mode&&n.length!==o.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===o.type?new s(o.module,t,n):"auth"===o.type?new i(o.module,t,n):new u(o.module,t,n)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(p))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=a.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return a.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(t,!1,n.key,n.iv);return h(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,n){var r=n(49);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},function(e,t,n){var r=n(13).Buffer,i=n(49);function a(e,t,n){var a=t.length,s=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,n?t:s]),s}t.encrypt=function(e,t,n){for(var i,s=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){s=r.concat([s,a(e,t,n)]);break}i=e._cache.length,s=r.concat([s,a(e,t.slice(0,i),n)]),t=t.slice(i)}return s}},function(e,t,n){var r=n(13).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}t.encrypt=function(e,t,n){for(var a=t.length,s=r.allocUnsafe(a),o=-1;++o<a;)s[o]=i(e,t[o],n);return s}},function(e,t,n){var r=n(13).Buffer;function i(e,t,n){for(var r,i,s=-1,o=0;++s<8;)r=t&1<<7-s?128:0,o+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>s%8,e._prev=a(e._prev,n?r:i);return o}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)a[i]=e[i]<<1|e[i+1]>>7;return a}t.encrypt=function(e,t,n){for(var a=t.length,s=r.allocUnsafe(a),o=-1;++o<a;)s[o]=i(e,t[o],n);return s}},function(e,t,n){(function(e){var r=n(49);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,i(t)]);var a=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),r(n,a)}}).call(this,n(17).Buffer)},function(e,t,n){var r=n(13).Buffer,i=r.alloc(16,0);function a(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],s=-1;++s<128;){for(0!=(this.state[~~(s/8)]&1<<7-s%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=a(i)},s.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},function(e,t,n){var r=n(140),i=n(13).Buffer,a=n(82),s=n(141),o=n(28),c=n(56),l=n(57);function u(e,t,n){o.call(this),this._cache=new p,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function p(){this.cache=i.allocUnsafe(0)}function d(e,t,n){var o=a[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==o.mode&&n.length!==o.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===o.type?new s(o.module,t,n,!0):"auth"===o.type?new r(o.module,t,n,!0):new u(o.module,t,n)}n(12)(u,o),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},p.prototype.add=function(e){this.cache=i.concat([this.cache,e])},p.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},p.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(t,!1,n.key,n.iv);return d(e,r.key,r.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,n){(function(e){var r=n(142),i=n(295),a=n(296);var s={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(i[t].prime,"hex"),r=new e(i[t].gen,"hex");return new a(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,i,o,c){return e.isBuffer(i)||void 0===s[i]?t(n,"binary",i,o):(i=i||"binary",c=c||"binary",o=o||new e([2]),e.isBuffer(o)||(o=new e(o,c)),"number"==typeof n?new a(r(n,o),o,!0):(e.isBuffer(n)||(n=new e(n,i)),new a(n,o,!0)))}}).call(this,n(17).Buffer)},function(e,t){},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,n){(function(t){var r=n(16),i=new(n(143)),a=new r(24),s=new r(11),o=new r(10),c=new r(3),l=new r(7),u=n(142),p=n(36);function d(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=m;var f={};function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=d,this.setPrivateKey=h):this._primeCode=8}function g(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in f)return f[r];var p,d=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return d+=1,d+="02"===n||"05"===n?8:4,f[r]=d,d;switch(i.test(e.shrn(1))||(d+=2),n){case"02":e.mod(a).cmp(s)&&(d+=8);break;case"05":(p=e.mod(o)).cmp(c)&&p.cmp(l)&&(d+=8);break;default:d+=4}return f[r]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(p(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(n.toArray()),a=this.getPrime();if(i.length<a.length){var s=new t(a.length-i.length);s.fill(0),i=t.concat([s,i])}return i},m.prototype.getPublicKey=function(e){return g(this._pub,e)},m.prototype.getPrivateKey=function(e){return g(this._priv,e)},m.prototype.getPrime=function(e){return g(this.__prime,e)},m.prototype.getGenerator=function(e){return g(this._gen,e)},m.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new r(e),this}}).call(this,n(17).Buffer)},function(e,t,n){(function(t){var r=n(47),i=n(73),a=n(12),s=n(298),o=n(329),c=n(132);function l(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function p(e){return new l(e)}function d(e){return new u(e)}Object.keys(c).forEach((function(e){c[e].id=new t(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),a(l,i.Writable),l.prototype._write=function(e,t,n){this._hash.update(e),n()},l.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},l.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(u,i.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},u.prototype.verify=function(e,n,r){"string"==typeof n&&(n=new t(n,r)),this.end();var i=this._hash.digest();return o(n,i,e,this._signType,this._tag)},e.exports={Sign:p,Verify:d,createSign:p,createVerify:d}}).call(this,n(17).Buffer)},function(e,t,n){(function(t){var r=n(130),i=n(84),a=n(85).ec,s=n(16),o=n(59),c=n(152);function l(e,n,i,a){if((e=new t(e.toArray())).length<n.byteLength()){var s=new t(n.byteLength()-e.length);s.fill(0),e=t.concat([s,e])}var o=i.length,c=function(e,n){e=(e=u(e,n)).mod(n);var r=new t(e.toArray());if(r.length<n.byteLength()){var i=new t(n.byteLength()-r.length);i.fill(0),r=t.concat([i,r])}return r}(i,n),l=new t(o);l.fill(1);var p=new t(o);return p.fill(0),p=r(a,p).update(l).update(new t([0])).update(e).update(c).digest(),l=r(a,p).update(l).digest(),{k:p=r(a,p).update(l).update(new t([1])).update(e).update(c).digest(),v:l=r(a,p).update(l).digest()}}function u(e,t){var n=new s(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function p(e,n,i){var a,s;do{for(a=new t(0);8*a.length<e.bitLength();)n.v=r(i,n.k).update(n.v).digest(),a=t.concat([a,n.v]);s=u(a,e),n.k=r(i,n.k).update(n.v).update(new t([0])).digest(),n.v=r(i,n.k).update(n.v).digest()}while(-1!==s.cmp(e));return s}function d(e,t,n,r){return e.toRed(s.mont(n)).redPow(t).fromRed().mod(r)}e.exports=function(e,n,r,h,f){var m=o(n);if(m.curve){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong private key type");return function(e,n){var r=c[n.curve.join(".")];if(!r)throw new Error("unknown curve "+n.curve.join("."));var i=new a(r).keyFromPrivate(n.privateKey).sign(e);return new t(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==h)throw new Error("wrong private key type");return function(e,n,r){var i,a=n.params.priv_key,o=n.params.p,c=n.params.q,h=n.params.g,f=new s(0),m=u(e,c).mod(c),g=!1,v=l(a,c,e,r);for(;!1===g;)i=p(c,v,r),f=d(h,i,o,c),0===(g=i.invm(c).imul(m.add(a.mul(f))).mod(c)).cmpn(0)&&(g=!1,f=new s(0));return function(e,n){e=e.toArray(),n=n.toArray(),128&e[0]&&(e=[0].concat(e));128&n[0]&&(n=[0].concat(n));var r=[48,e.length+n.length+4,2,e.length];return r=r.concat(e,[2,n.length],n),new t(r)}(f,g)}(e,m,r)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong private key type");e=t.concat([f,e]);for(var g=m.modulus.byteLength(),v=[0,1];e.length+v.length+1<g;)v.push(255);v.push(0);for(var b=-1;++b<e.length;)v.push(e[b]);return i(v,m)},e.exports.getKey=l,e.exports.makeKey=p}).call(this,n(17).Buffer)},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.0","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^1.4.3","coveralls":"^2.11.3","grunt":"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2","istanbul":"^0.4.2","jscs":"^2.9.0","jshint":"^2.6.0","mocha":"^2.1.0"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}}')},function(e,t,n){"use strict";var r=n(20),i=n(16),a=n(12),s=n(58),o=r.assert;function c(e){s.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,n,r){s.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){s.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(c,s),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?n=a[0]:(n=a[1],o(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,a,s,o,c,l,u,p=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),f=new i(1),m=new i(0),g=new i(0),v=new i(1),b=0;0!==d.cmpn(0);){var y=h.div(d);l=h.sub(y.mul(d)),u=g.sub(y.mul(f));var w=v.sub(y.mul(m));if(!r&&l.cmp(p)<0)t=c.neg(),n=f,r=l.neg(),a=u;else if(r&&2==++b)break;c=l,h=d,d=l,g=f,f=u,v=m,m=w}s=l.neg(),o=u;var _=r.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=n),r.negative&&(r=r.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:r,b:a},{a:s,b:o}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),s=i.mul(n.a),o=a.mul(r.a),c=i.mul(n.b),l=a.mul(r.b);return{k1:e.sub(s).sub(o),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var s=this._endoSplit(t[a]),o=e[a],c=o._getBeta();s.k1.negative&&(s.k1.ineg(),o=o.neg(!0)),s.k2.negative&&(s.k2.ineg(),c=c.neg(!0)),r[2*a]=o,r[2*a+1]=c,i[2*a]=s.k1,i[2*a+1]=s.k2}for(var l=this._wnafMulAdd(1,r,i,2*a,n),u=0;u<2*a;u++)r[u]=null,i[u]=null;return l},a(l,s.BasePoint),c.prototype.point=function(e,t,n){return new l(this,e,t,n)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,s.BasePoint),c.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(n.redMul(this.z)),o=r.redSub(i),c=a.redSub(s);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=o.redSqr(),u=l.redMul(o),p=r.redMul(l),d=c.redSqr().redIAdd(u).redISub(p).redISub(p),h=c.redMul(p.redISub(d)).redISub(a.redMul(u)),f=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(d,h,f)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),s=n.redSub(r),o=i.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),u=n.redMul(c),p=o.redSqr().redIAdd(l).redISub(u).redISub(u),d=o.redMul(u.redISub(p)).redISub(i.redMul(l)),h=this.z.redMul(s);return this.curve.jpoint(p,d,h)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,i=this.curve.tinv,a=this.x,s=this.y,o=this.z,c=o.redSqr().redSqr(),l=s.redAdd(s);for(n=0;n<e;n++){var u=a.redSqr(),p=l.redSqr(),d=p.redSqr(),h=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),f=a.redMul(p),m=h.redSqr().redISub(f.redAdd(f)),g=f.redISub(m),v=h.redMul(g);v=v.redIAdd(v).redISub(d);var b=l.redMul(o);n+1<e&&(c=c.redMul(d)),a=m,o=b,l=v}return this.curve.jpoint(a,l.redMul(i),o)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(r).redISub(a);s=s.redIAdd(s);var o=r.redAdd(r).redIAdd(r),c=o.redSqr().redISub(s).redISub(s),l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=o.redMul(s.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),p=this.y.redSqr(),d=p.redSqr(),h=this.x.redAdd(p).redSqr().redISub(u).redISub(d);h=h.redIAdd(h);var f=u.redAdd(u).redIAdd(u),m=f.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=f.redMul(h.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(r).redISub(a);s=s.redIAdd(s);var o=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=o.redSqr().redISub(s).redISub(s);e=c;var l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),t=o.redMul(s.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),p=this.y.redSqr(),d=this.x.redMul(p),h=this.x.redSub(u).redMul(this.x.redAdd(u));h=h.redAdd(h).redIAdd(h);var f=d.redIAdd(d),m=(f=f.redIAdd(f)).redAdd(f);e=h.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(p).redISub(u);var g=p.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(f.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),s=n.redSqr(),o=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(s),u=o.redSqr().redISub(l.redAdd(l)),p=l.redISub(u),d=s.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=o.redMul(p).redISub(d),f=n.redAdd(n).redMul(r);return this.curve.jpoint(u,h,f)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(r),o=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(a)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(s).redSqr().redISub(a).redISub(o).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var p=this.x.redMul(o).redISub(u);p=(p=p.redIAdd(p)).redIAdd(p);var d=this.y.redMul(l.redMul(c.redISub(l)).redISub(s.redMul(o)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(s).redSqr().redISub(n).redISub(o);return this.curve.jpoint(p,d,h)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(16),i=n(12),a=n(58),s=n(20);function o(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(o,a),e.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new c(this,e,t)},o.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),s=i.redMul(r),o=t.z.redMul(a.redAdd(s).redSqr()),c=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(20),i=n(16),a=n(12),s=n(58),o=r.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function l(e,t,n,r,a){s.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,s),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=r.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=r.redMul(a.redInvm());if(0===s.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},a(l,s.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,n,r){return new l(this,e,t,n,r)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),s=a.redSub(n),o=r.redSub(t),c=i.redMul(s),l=a.redMul(o),u=i.redMul(o),p=s.redMul(a);return this.curve.point(c,l,p,u)},l.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var s=(l=this.curve._mulA(i)).redAdd(a);if(this.zOne)e=r.redSub(i).redSub(a).redMul(s.redSub(this.curve.two)),t=s.redMul(l.redSub(a)),n=s.redSqr().redSub(s).redSub(s);else{var o=this.z.redSqr(),c=s.redSub(o).redISub(o);e=r.redSub(i).redISub(a).redMul(c),t=s.redMul(l.redSub(a)),n=s.redMul(c)}}else{var l=i.redAdd(a);o=this.curve._mulC(this.z).redSqr(),c=l.redSub(o).redSub(o);e=this.curve._mulC(r.redISub(l)).redMul(c),t=this.curve._mulC(l).redMul(i.redISub(a)),n=l.redMul(c)}return this.curve.point(e,t,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),s=i.redSub(r),o=i.redAdd(r),c=n.redAdd(t),l=a.redMul(s),u=o.redMul(c),p=a.redMul(c),d=s.redMul(o);return this.curve.point(l,u,d,p)},l.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),c=i.redSub(o),l=i.redAdd(o),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),p=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(s.redSub(this.curve._mulA(a))),n=c.redMul(l)):(t=r.redMul(l).redMul(s.redSub(a)),n=this.curve._mulC(c).redMul(l)),this.curve.point(p,t,n)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},l.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},function(e,t,n){"use strict";t.sha1=n(89),t.sha224=n(304),t.sha256=n(146),t.sha384=n(305),t.sha512=n(147)},function(e,t,n){"use strict";var r=n(24),i=n(146);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(24),i=n(147);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(24),i=n(40),a=r.rotl32,s=r.sum32,o=r.sum32_3,c=r.sum32_4,l=i.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function p(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,l),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],u=this.h[4],b=n,y=r,w=i,_=l,k=u,E=0;E<80;E++){var C=s(a(c(n,p(E,r,i,l),e[f[E]+t],d(E)),g[E]),u);n=u,u=l,l=a(i,10),i=r,r=C,C=s(a(c(b,p(79-E,y,w,_),e[m[E]+t],h(E)),v[E]),k),b=k,k=_,_=a(w,10),w=y,y=C}C=o(this.h[1],i,_),this.h[1]=o(this.h[2],l,k),this.h[2]=o(this.h[3],u,b),this.h[3]=o(this.h[4],n,y),this.h[4]=o(this.h[0],r,w),this.h[0]=C},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,n){"use strict";var r=n(24),i=n(19);function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,n){"use strict";var r=n(16),i=n(310),a=n(20),s=n(86),o=n(83),c=a.assert,l=n(311),u=n(312);function p(e){if(!(this instanceof p))return new p(e);"string"==typeof e&&(c(s.hasOwnProperty(e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=p,p.prototype.keyPair=function(e){return new l(this,e)},p.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},p.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},p.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new r(2));;){var s=new r(t.generate(n));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},p.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},p.prototype.sign=function(e,t,n,a){"object"==typeof n&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),c=e.toArray("be",s),l=new i({hash:this.hash,entropy:o,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),p=this.n.sub(new r(1)),d=0;;d++){var h=a.k?a.k(d):new r(l.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(p)>=0)){var f=this.g.mul(h);if(!f.isInfinity()){var m=f.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=h.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var b=(f.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return a.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),b^=1),new u({r:g,s:v,recoveryParam:b})}}}}}},p.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var a=(t=new u(t,"hex")).r,s=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o,c=s.invm(this.n),l=c.mul(e).umod(this.n),p=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(l,n.getPublic(),p)).isInfinity()&&o.eqXToP(a):!(o=this.g.mulAdd(l,n.getPublic(),p)).isInfinity()&&0===o.getX().umod(this.n).cmp(a)},p.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var a=this.n,s=new r(e),o=t.r,l=t.s,p=1&n,d=n>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");o=d?this.curve.pointFromX(o.add(this.curve.n),p):this.curve.pointFromX(o,p);var h=t.r.invm(a),f=a.sub(s).mul(h).umod(a),m=l.mul(h).umod(a);return this.g.mulAdd(f,o,m)},p.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(87),i=n(144),a=n(19);function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=s,s.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},s.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},s.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var s=a.slice(0,e);return this._update(n),this._reseed++,i.encode(s,t)}},function(e,t,n){"use strict";var r=n(16),i=n(20).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var r=n(16),i=n(20),a=i.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,i=0,a=0,s=t.place;a<r;a++,s++)i<<=8,i|=e[s];return t.place=s,i}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=s,s.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new o;if(48!==e[n.place++])return!1;if(c(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=c(e,n),s=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var l=c(e,n);if(e.length!==l+n.place)return!1;var u=e.slice(n.place,l+n.place);return 0===s[0]&&128&s[1]&&(s=s.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new r(s),this.s=new r(u),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var a=r.concat(n),s=[48];return u(s,a.length),s=s.concat(a),i.encode(s,e)}},function(e,t,n){"use strict";var r=n(87),i=n(86),a=n(20),s=a.assert,o=a.parseBytes,c=n(314),l=n(315);function u(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=o(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),s=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),c=r.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:a})},u.prototype.verify=function(e,t,n){e=o(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=a.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return a.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(20),i=r.assert,a=r.parseBytes,s=r.cachedProperty;function o(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}o.fromPublic=function(e,t){return t instanceof o?t:new o(e,{pub:t})},o.fromSecret=function(e,t){return t instanceof o?t:new o(e,{secret:t})},o.prototype.secret=function(){return this._secret},s(o,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),s(o,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),s(o,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),s(o,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),s(o,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),s(o,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),o.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},o.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},o.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},o.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=o},function(e,t,n){"use strict";var r=n(16),i=n(20),a=i.assert,s=i.cachedProperty,o=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=o(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},function(e,t,n){"use strict";var r=n(50);t.certificate=n(326);var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var a=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=a;var s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}));t.PublicKey=s;var o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var l=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=l;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=u,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var p=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=p;var d=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,n){var r=n(50),i=n(12);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=n(318).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(r){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,i=n.execScript;!r&&i&&(i.call(n,"null"),r=n.eval),forEach(Object_keys(e),(function(t){n[t]=e[t]})),forEach(globals,(function(t){e[t]&&(n[t]=e[t])}));var a=Object_keys(n),s=r.call(n,this.code);return forEach(Object_keys(n),(function(t){(t in e||-1===indexOf(a,t))&&(e[t]=n[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,n[t])})),document.body.removeChild(t),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return e&&forEach(Object_keys(t),(function(n){e[n]=t[n]})),n},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),(function(n){t[n]=e[n]})),t}},function(e,t,n){var r=n(12);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(e,t,n){var r=n(51).Reporter,i=n(51).EncoderBuffer,a=n(51).DecoderBuffer,s=n(19),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function l(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=l;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};u.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},l.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){l.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),o.forEach((function(e){l.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}})),l.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},l.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,s=!0,o=null;if(null!==n.key&&(o=e.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(s=this._peekTag(e,c,n.any),e.isError(s))return s}else{var l=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),s=!0}catch(f){s=!1}e.restore(l)}}if(n.obj&&s&&(r=e.enterObject()),s){if(null!==n.explicit){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var p=e.offset;if(null===n.use&&null===n.choice){if(n.any)l=e.save();var d=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(d))return d;n.any?i=e.raw(l):e=d}if(t&&t.track&&null!==n.tag&&t.track(e.path(),p,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),i=n.any?i:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&s&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==s?null!==o&&e.exitKey(o):e.leaveKey(o,n.key,i),i},l.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(a){var s=e.save(),o=n.choice[a];try{var c=o._decode(e,t);if(e.isError(c))return!1;r={type:a,value:c},i=!0}catch(l){return e.restore(s),!1}return!0}),this),i?r:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},l.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);var a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var s=null,o=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)s=this._getUse(i.contains,n)._encode(e,t),o=!0;else if(i.children)s=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),c))}else null!==i.use?a=this._getUse(i.use,n)._encode(e,t):(s=this._encodePrimitive(i.tag,e),o=!0);if(!i.any&&null===i.choice){var l=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===l?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(l,o,u,s))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},l.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(149);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(150),r.pem=n(323)},function(e,t,n){var r=n(12),i=n(17).Buffer,a=n(150);function s(e){a.call(this,e),this.enc="pem"}r(s,a),e.exports=s,s.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,c=-1,l=0;l<n.length;l++){var u=n[l].match(s);if(null!==u&&u[2]===r){if(-1!==o){if("END"!==u[1])break;c=l;break}if("BEGIN"!==u[1])break;o=l}}if(-1===o||-1===c)throw new Error("PEM section not found for: "+r);var p=n.slice(o+1,c).join("");p.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new i(p,"base64");return a.prototype.decode.call(this,d,t)}},function(e,t,n){var r=t;r.der=n(151),r.pem=n(325)},function(e,t,n){var r=n(12),i=n(151);function a(e){i.call(this,e),this.enc="pem"}r(a,i),e.exports=a,a.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],a=0;a<n.length;a+=64)r.push(n.slice(a,a+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},function(e,t,n){"use strict";var r=n(50),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),a=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())})),c=r.define("RelativeDistinguishedName",(function(){this.setof(a)})),l=r.define("RDNSequence",(function(){this.seqof(c)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),p=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(u),this.key("validity").use(p),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),f=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())}));e.exports=f},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,s=n(57),o=n(81),c=n(13).Buffer;e.exports=function(e,t){var n,l=e.toString(),u=l.match(r);if(u){var p="aes"+u[1],d=c.from(u[2],"hex"),h=c.from(u[3].replace(/[\r\n]/g,""),"base64"),f=s(t,d.slice(0,8),parseInt(u[1],10)).key,m=[],g=o.createDecipheriv(p,f,d);m.push(g.update(h)),m.push(g.final()),n=c.concat(m)}else{var v=l.match(a);n=new c(v[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:n}}},function(e,t,n){(function(t){var r=n(16),i=n(85).ec,a=n(59),s=n(152);function o(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,n,c,l,u){var p=a(c);if("ec"===p.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new i(r),o=n.data.subjectPrivateKey.data;return a.verify(t,e,o)}(e,n,p)}if("dsa"===p.type){if("dsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var i=n.data.p,s=n.data.q,c=n.data.g,l=n.data.pub_key,u=a.signature.decode(e,"der"),p=u.s,d=u.r;o(p,s),o(d,s);var h=r.mont(i),f=p.invm(s);return 0===c.toRed(h).redPow(new r(t).mul(f).mod(s)).fromRed().mul(l.toRed(h).redPow(d.mul(f).mod(s)).fromRed()).mod(i).mod(s).cmp(d)}(e,n,p)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");n=t.concat([u,n]);for(var d=p.modulus.byteLength(),h=[1],f=0;n.length+h.length+2<d;)h.push(255),f++;h.push(0);for(var m=-1;++m<n.length;)h.push(n[m]);h=new t(h);var g=r.mont(p.modulus);e=(e=new r(e).toRed(g)).redPow(new r(p.publicExponent)),e=new t(e.fromRed().toArray());var v=f<8?1:0;for(d=Math.min(e.length,h.length),e.length!==h.length&&(v=1),m=-1;++m<d;)v|=e[m]^h[m];return 0===v}}).call(this,n(17).Buffer)},function(e,t,n){(function(t){var r=n(85),i=n(16);e.exports=function(e){return new s(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function o(e,n,r){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(r&&i.length<r){var a=new t(r-i.length);a.fill(0),i=t.concat([a,i])}return n?i.toString(n):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),o(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),o(n,e)},s.prototype.getPrivateKey=function(e){return o(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(17).Buffer)},function(e,t,n){t.publicEncrypt=n(332),t.privateDecrypt=n(333),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){var r=n(59),i=n(36),a=n(47),s=n(153),o=n(154),c=n(16),l=n(155),u=n(84),p=n(13).Buffer;e.exports=function(e,t,n){var d;d=e.padding?e.padding:n?1:4;var h,f=r(e);if(4===d)h=function(e,t){var n=e.modulus.byteLength(),r=t.length,l=a("sha1").update(p.alloc(0)).digest(),u=l.length,d=2*u;if(r>n-d-2)throw new Error("message too long");var h=p.alloc(n-r-d-2),f=n-u-1,m=i(u),g=o(p.concat([l,h,p.alloc(1,1),t],f),s(m,f)),v=o(m,s(g,u));return new c(p.concat([p.alloc(1),v,g],n))}(f,t);else if(1===d)h=function(e,t,n){var r,a=t.length,s=e.modulus.byteLength();if(a>s-11)throw new Error("message too long");r=n?p.alloc(s-a-3,255):function(e){var t,n=p.allocUnsafe(e),r=0,a=i(2*e),s=0;for(;r<e;)s===a.length&&(a=i(2*e),s=0),(t=a[s++])&&(n[r++]=t);return n}(s-a-3);return new c(p.concat([p.from([0,n?1:2]),r,p.alloc(1),t],s))}(f,t,n);else{if(3!==d)throw new Error("unknown padding");if((h=new c(t)).cmp(f.modulus)>=0)throw new Error("data too long for modulus")}return n?u(h,f):l(h,f)}},function(e,t,n){var r=n(59),i=n(153),a=n(154),s=n(16),o=n(84),c=n(47),l=n(155),u=n(13).Buffer;e.exports=function(e,t,n){var p;p=e.padding?e.padding:n?1:4;var d,h=r(e),f=h.modulus.byteLength();if(t.length>f||new s(t).cmp(h.modulus)>=0)throw new Error("decryption error");d=n?l(new s(t),h):o(t,h);var m=u.alloc(f-d.length);if(d=u.concat([m,d],f),4===p)return function(e,t){var n=e.modulus.byteLength(),r=c("sha1").update(u.alloc(0)).digest(),s=r.length;if(0!==t[0])throw new Error("decryption error");var o=t.slice(1,s+1),l=t.slice(s+1),p=a(o,i(l,s)),d=a(l,i(p,n-s-1));if(function(e,t){e=u.from(e),t=u.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var i=-1;for(;++i<r;)n+=e[i]^t[i];return n}(r,d.slice(0,s)))throw new Error("decryption error");var h=s;for(;0===d[h];)h++;if(1!==d[h++])throw new Error("decryption error");return d.slice(h)}(h,d);if(1===p)return function(e,t,n){var r=t.slice(0,2),i=2,a=0;for(;0!==t[i++];)if(i>=t.length){a++;break}var s=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&a++;s.length<8&&a++;if(a)throw new Error("decryption error");return t.slice(i)}(0,d,n);if(3===p)return d;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e){function r(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=n(13),a=n(36),s=i.Buffer,o=i.kMaxLength,c=window.crypto||window.msCrypto,l=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>o||e>t)throw new RangeError("offset out of range")}function p(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>o)throw new RangeError("buffer too small")}function d(t,n,r,i){if(e.browser){var s=t.buffer,o=new Uint8Array(s,n,r);return c.getRandomValues(o),i?void e.nextTick((function(){i(null,t)})):t}if(!i)return a(r).copy(t,n),t;a(r,(function(e,r){if(e)return i(e);r.copy(t,n),i(null,t)}))}c&&c.getRandomValues||!e.browser?(t.randomFill=function(e,t,n,r){if(!(s.isBuffer(e)||e instanceof window.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)r=t,t=0,n=e.length;else if("function"==typeof n)r=n,n=e.length-t;else if("function"!=typeof r)throw new TypeError('"cb" argument must be a function');return u(t,e.length),p(n,t,e.length),d(e,t,n,r)},t.randomFillSync=function(e,t,n){void 0===t&&(t=0);if(!(s.isBuffer(e)||e instanceof window.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');u(t,e.length),void 0===n&&(n=e.length-t);return p(n,t,e.length),d(e,t,n)}):(t.randomFill=r,t.randomFillSync=r)}).call(this,n(23))},function(e,t){e.exports=function e(t){if(n(t))return t;if(n(t.ownerDocument))return t.ownerDocument;if(n(t.document))return t.document;if(t.parentNode)return e(t.parentNode);if(t.commonAncestorContainer)return e(t.commonAncestorContainer);if(t.startContainer)return e(t.startContainer);if(t.anchorNode)return e(t.anchorNode)};function n(e){return e&&9===e.nodeType}},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){},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){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=n.join(","),i="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function a(e,t){t=t||{};var n,a,o,c=[],p=[],d=e.querySelectorAll(r);for(t.includeContainer&&i.call(e,r)&&(d=Array.prototype.slice.apply(d)).unshift(e),n=0;n<d.length;n++)s(a=d[n])&&(0===(o=l(a))?c.push(a):p.push({documentOrder:n,tabIndex:o,node:a}));return p.sort(u).map((function(e){return e.node})).concat(c)}function s(e){return!(!o(e)||function(e){return function(e){return p(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||l(e)<0)}function o(e){return!(e.disabled||function(e){return p(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}a.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==i.call(e,r)&&s(e)},a.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==i.call(e,c)&&o(e)};var c=n.concat("iframe").join(",");function l(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function u(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function p(e){return"INPUT"===e.tagName}e.exports=a},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},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){},function(e,t,n){"use strict";n.r(t),n.d(t,"getRouteName",(function(){return Xg}));var r={};n.r(r),n.d(r,"JETPACK_SET_INITIAL_STATE",(function(){return Ot})),n.d(r,"CONNECT_URL_FETCH",(function(){return Pt})),n.d(r,"CONNECT_URL_FETCH_FAIL",(function(){return It})),n.d(r,"CONNECT_URL_FETCH_SUCCESS",(function(){return Dt})),n.d(r,"DISCONNECT_SITE",(function(){return Ut})),n.d(r,"DISCONNECT_SITE_FAIL",(function(){return Rt})),n.d(r,"DISCONNECT_SITE_SUCCESS",(function(){return zt})),n.d(r,"UNLINK_USER",(function(){return Ft})),n.d(r,"UNLINK_USER_FAIL",(function(){return Lt})),n.d(r,"UNLINK_USER_SUCCESS",(function(){return Bt})),n.d(r,"USER_CONNECTION_DATA_FETCH",(function(){return Vt})),n.d(r,"USER_CONNECTION_DATA_FETCH_FAIL",(function(){return Ht})),n.d(r,"USER_CONNECTION_DATA_FETCH_SUCCESS",(function(){return qt})),n.d(r,"USER_TRACKING_SETTINGS_FETCH",(function(){return Kt})),n.d(r,"USER_TRACKING_SETTINGS_FETCH_FAIL",(function(){return Jt})),n.d(r,"USER_TRACKING_SETTINGS_FETCH_SUCCESS",(function(){return Wt})),n.d(r,"USER_TRACKING_SETTINGS_UPDATE",(function(){return Gt})),n.d(r,"USER_TRACKING_SETTINGS_UPDATE_FAIL",(function(){return Yt})),n.d(r,"USER_TRACKING_SETTINGS_UPDATE_SUCCESS",(function(){return $t})),n.d(r,"JETPACK_MODULES_LIST_FETCH",(function(){return Qt})),n.d(r,"JETPACK_MODULES_LIST_FETCH_FAIL",(function(){return Xt})),n.d(r,"JETPACK_MODULES_LIST_RECEIVE",(function(){return Zt})),n.d(r,"JETPACK_MODULE_FETCH",(function(){return en})),n.d(r,"JETPACK_MODULE_FETCH_FAIL",(function(){return tn})),n.d(r,"JETPACK_MODULE_RECEIVE",(function(){return nn})),n.d(r,"JETPACK_MODULE_ACTIVATE",(function(){return rn})),n.d(r,"JETPACK_MODULE_ACTIVATE_SUCCESS",(function(){return an})),n.d(r,"JETPACK_MODULE_ACTIVATE_FAIL",(function(){return sn})),n.d(r,"JETPACK_MODULE_DEACTIVATE",(function(){return on})),n.d(r,"JETPACK_MODULE_DEACTIVATE_FAIL",(function(){return cn})),n.d(r,"JETPACK_MODULE_DEACTIVATE_SUCCESS",(function(){return ln})),n.d(r,"JETPACK_MODULE_UPDATE_OPTIONS",(function(){return un})),n.d(r,"JETPACK_MODULE_UPDATE_OPTIONS_FAIL",(function(){return pn})),n.d(r,"JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",(function(){return dn})),n.d(r,"JETPACK_CONNECTION_STATUS_FETCH",(function(){return hn})),n.d(r,"JETPACK_CONNECTION_TEST_FETCH",(function(){return fn})),n.d(r,"JETPACK_SITE_CONNECTED_PLUGINS_FETCH",(function(){return mn})),n.d(r,"JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE",(function(){return gn})),n.d(r,"JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL",(function(){return vn})),n.d(r,"DASHBOARD_PROTECT_COUNT_FETCH",(function(){return bn})),n.d(r,"DASHBOARD_PROTECT_COUNT_FETCH_FAIL",(function(){return yn})),n.d(r,"DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",(function(){return wn})),n.d(r,"RESET_OPTIONS",(function(){return _n})),n.d(r,"RESET_OPTIONS_FAIL",(function(){return kn})),n.d(r,"RESET_OPTIONS_SUCCESS",(function(){return En})),n.d(r,"VAULTPRESS_SITE_DATA_FETCH",(function(){return Cn})),n.d(r,"VAULTPRESS_SITE_DATA_FETCH_FAIL",(function(){return Sn})),n.d(r,"VAULTPRESS_SITE_DATA_FETCH_SUCCESS",(function(){return Tn})),n.d(r,"AKISMET_DATA_FETCH",(function(){return An})),n.d(r,"AKISMET_DATA_FETCH_FAIL",(function(){return xn})),n.d(r,"AKISMET_DATA_FETCH_SUCCESS",(function(){return Mn})),n.d(r,"AKISMET_KEY_CHECK_FETCH",(function(){return jn})),n.d(r,"AKISMET_KEY_CHECK_FETCH_FAIL",(function(){return Nn})),n.d(r,"AKISMET_KEY_CHECK_FETCH_SUCCESS",(function(){return On})),n.d(r,"PLUGIN_UPDATES_FETCH",(function(){return Pn})),n.d(r,"PLUGIN_UPDATES_FETCH_FAIL",(function(){return In})),n.d(r,"PLUGIN_UPDATES_FETCH_SUCCESS",(function(){return Dn})),n.d(r,"STATS_SWITCH_TAB",(function(){return Un})),n.d(r,"STATS_DATA_FETCH",(function(){return Rn})),n.d(r,"STATS_DATA_FETCH_FAIL",(function(){return zn})),n.d(r,"STATS_DATA_FETCH_SUCCESS",(function(){return Fn})),n.d(r,"JETPACK_PRODUCTS_FETCH",(function(){return Ln})),n.d(r,"JETPACK_PRODUCTS_FETCH_RECEIVE",(function(){return Bn})),n.d(r,"JETPACK_PRODUCTS_FETCH_FAIL",(function(){return Vn})),n.d(r,"JETPACK_SITE_PRODUCTS_FETCH",(function(){return Hn})),n.d(r,"JETPACK_SITE_PRODUCTS_FETCH_FAIL",(function(){return qn})),n.d(r,"JETPACK_SITE_PRODUCTS_FETCH_RECEIVE",(function(){return Kn})),n.d(r,"JETPACK_SETTINGS_FETCH",(function(){return Jn})),n.d(r,"JETPACK_SETTINGS_FETCH_RECEIVE",(function(){return Wn})),n.d(r,"JETPACK_SETTINGS_FETCH_FAIL",(function(){return Gn})),n.d(r,"JETPACK_SETTING_UPDATE",(function(){return Yn})),n.d(r,"JETPACK_SETTING_UPDATE_SUCCESS",(function(){return $n})),n.d(r,"JETPACK_SETTING_UPDATE_FAIL",(function(){return Qn})),n.d(r,"JETPACK_SETTINGS_UPDATE",(function(){return Xn})),n.d(r,"JETPACK_SETTINGS_UPDATE_FAIL",(function(){return Zn})),n.d(r,"JETPACK_SETTINGS_UPDATE_SUCCESS",(function(){return er})),n.d(r,"JETPACK_SETTINGS_SET_UNSAVED_FLAG",(function(){return tr})),n.d(r,"JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",(function(){return nr})),n.d(r,"JETPACK_SITE_DATA_FETCH",(function(){return rr})),n.d(r,"JETPACK_SITE_DATA_FETCH_RECEIVE",(function(){return ir})),n.d(r,"JETPACK_SITE_DATA_FETCH_FAIL",(function(){return ar})),n.d(r,"JETPACK_SITE_BENEFITS_FETCH",(function(){return sr})),n.d(r,"JETPACK_SITE_BENEFITS_FETCH_RECEIVE",(function(){return or})),n.d(r,"JETPACK_SITE_BENEFITS_FETCH_FAIL",(function(){return cr})),n.d(r,"JETPACK_SITE_FEATURES_FETCH",(function(){return lr})),n.d(r,"JETPACK_SITE_FEATURES_FETCH_RECEIVE",(function(){return ur})),n.d(r,"JETPACK_SITE_FEATURES_FETCH_FAIL",(function(){return pr})),n.d(r,"JETPACK_SITE_PLANS_FETCH",(function(){return dr})),n.d(r,"JETPACK_SITE_PLANS_FETCH_RECEIVE",(function(){return hr})),n.d(r,"JETPACK_SITE_PLANS_FETCH_FAIL",(function(){return fr})),n.d(r,"JETPACK_SITE_PURCHASES_FETCH",(function(){return mr})),n.d(r,"JETPACK_SITE_PURCHASES_FETCH_RECEIVE",(function(){return gr})),n.d(r,"JETPACK_SITE_PURCHASES_FETCH_FAIL",(function(){return vr})),n.d(r,"JETPACK_SETUP_WIZARD_QUESTIONNAIRE_FETCH",(function(){return br})),n.d(r,"JETPACK_SETUP_WIZARD_QUESTIONNAIRE_FETCH_RECEIVE",(function(){return yr})),n.d(r,"JETPACK_SETUP_WIZARD_QUESTIONNAIRE_FETCH_FAIL",(function(){return wr})),n.d(r,"JETPACK_SETUP_WIZARD_QUESTIONNAIRE_UPDATE",(function(){return _r})),n.d(r,"JETPACK_SETUP_WIZARD_QUESTIONNAIRE_SAVE",(function(){return kr})),n.d(r,"JETPACK_SETUP_WIZARD_QUESTIONNAIRE_SAVE_SUCCESS",(function(){return Er})),n.d(r,"JETPACK_SETUP_WIZARD_QUESTIONNAIRE_SAVE_FAIL",(function(){return Cr})),n.d(r,"JETPACK_SETUP_WIZARD_STATUS_UPDATE",(function(){return Sr})),n.d(r,"JETPACK_SETUP_WIZARD_STATUS_UPDATE_SUCCESS",(function(){return Tr})),n.d(r,"JETPACK_SETUP_WIZARD_STATUS_UPDATE_FAIL",(function(){return Ar})),n.d(r,"JETPACK_ACTION_NOTICES_DISMISS",(function(){return xr})),n.d(r,"JETPACK_NOTICES_DISPATCH_TYPE",(function(){return Mr})),n.d(r,"JETPACK_NOTICES_DISMISS",(function(){return jr})),n.d(r,"JETPACK_NOTICES_DISMISS_FAIL",(function(){return Nr})),n.d(r,"JETPACK_NOTICES_DISMISS_SUCCESS",(function(){return Or})),n.d(r,"JETPACK_PLUGINS_DATA_FETCH",(function(){return Pr})),n.d(r,"JETPACK_PLUGINS_DATA_FETCH_RECEIVE",(function(){return Ir})),n.d(r,"JETPACK_PLUGINS_DATA_FETCH_FAIL",(function(){return Dr})),n.d(r,"JETPACK_SEARCH_TERM",(function(){return Ur})),n.d(r,"JETPACK_SEARCH_FOCUS",(function(){return Rr})),n.d(r,"JETPACK_SEARCH_BLUR",(function(){return zr})),n.d(r,"SET_PLAN_DURATION",(function(){return Fr})),n.d(r,"JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY",(function(){return Lr})),n.d(r,"JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_SUCCESS",(function(){return Br})),n.d(r,"JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_FAIL",(function(){return Vr})),n.d(r,"DEV_CARD_DISPLAY",(function(){return Hr})),n.d(r,"DEV_CARD_HIDE",(function(){return qr})),n.d(r,"MOCK_SWITCH_USER_PERMISSIONS",(function(){return Kr})),n.d(r,"MOCK_SWITCH_THREATS",(function(){return Jr})),n.d(r,"REWIND_STATUS_FETCH",(function(){return Wr})),n.d(r,"REWIND_STATUS_FETCH_RECEIVE",(function(){return Gr})),n.d(r,"REWIND_STATUS_FETCH_FAIL",(function(){return Yr})),n.d(r,"MOCK_SWITCH_REWIND_STATE",(function(){return $r})),n.d(r,"SCAN_STATUS_FETCH",(function(){return Qr})),n.d(r,"SCAN_STATUS_FETCH_RECEIVE",(function(){return Xr})),n.d(r,"SCAN_STATUS_FETCH_FAIL",(function(){return Zr})),n.d(r,"MOCK_SWITCH_SCAN_STATE",(function(){return ei})),n.d(r,"JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH",(function(){return ti})),n.d(r,"JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL",(function(){return ni})),n.d(r,"JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS",(function(){return ri})),n.d(r,"JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH",(function(){return ii})),n.d(r,"JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH_FAIL",(function(){return ai})),n.d(r,"JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH_SUCCESS",(function(){return si})),n.d(r,"JETPACK_SITE_VERIFY_GOOGLE_REQUEST",(function(){return oi})),n.d(r,"JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS",(function(){return ci})),n.d(r,"JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL",(function(){return li})),n.d(r,"SITE_CHECKLIST_RECEIVE",(function(){return ui})),n.d(r,"SITE_CHECKLIST_REQUEST",(function(){return pi})),n.d(r,"JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL",(function(){return di})),n.d(r,"JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_SUCCESS",(function(){return hi})),n.d(r,"JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_FAIL",(function(){return fi}));var i=n(15),a=n.n(i),s=n(0),o=n.n(s);function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var l=n(1),u=n.n(l),p=o.a.createContext(null),d=function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.store;return n.state={storeState:r.getState(),store:r},n}c(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.subscribe()},n.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},n.componentDidUpdate=function(e){this.props.store!==e.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},n.subscribe=function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){var n=t.getState();e._isMounted&&e.setState((function(e){return e.storeState===n?null:{storeState:n}}))}));var n=t.getState();n!==this.state.storeState&&this.setState({storeState:n})},n.render=function(){var e=this.props.context||p;return o.a.createElement(e.Provider,{value:this.state},this.props.children)},t}(s.Component);d.propTypes={store:u.a.shape({subscribe:u.a.func.isRequired,dispatch:u.a.func.isRequired,getState:u.a.func.isRequired}),context:u.a.object,children:u.a.any};var h=d;function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var g=n(90),v=n.n(g),b=n(39),y=n.n(b),w=n(88);function _(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,a=n.methodName,l=void 0===a?"connectAdvanced":a,u=n.renderCountProp,d=void 0===u?void 0:u,h=n.shouldHandleStateChanges,g=void 0===h||h,b=n.storeKey,_=void 0===b?"store":b,k=n.withRef,E=void 0!==k&&k,C=n.forwardRef,S=void 0!==C&&C,T=n.context,A=void 0===T?p:T,x=m(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);y()(void 0===d,"renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"),y()(!E,"withRef is removed. To access the wrapped instance, use a ref on the connected component");var M="To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect";y()("store"===_,"storeKey has been removed and does not do anything. "+M);var j=A;return function(t){var n=t.displayName||t.name||"Component",r=i(n),a=f({},x,{getDisplayName:i,methodName:l,renderCountProp:d,shouldHandleStateChanges:g,storeKey:_,displayName:r,wrappedComponentName:n,WrappedComponent:t}),u=x.pure,p=s.Component;u&&(p=s.PureComponent);var h=function(n){function i(t){var r,i,a,s,c,l,p,d,h,m,g;return r=n.call(this,t)||this,y()(S?!t.wrapperProps[_]:!t[_],"Passing redux store in props has been removed and does not do anything. "+M),r.selectDerivedProps=function(t,n,r,o){if(u&&i===n&&a===t)return s;r===c&&l===o||(c=r,l=o,p=e(r.dispatch,o)),i=n,a=t;var d=p(t,n);return s=d},r.selectChildElement=function(e,t,n){return t===d&&n===h&&g===e||(d=t,h=n,g=e,m=o.a.createElement(e,f({},t,{ref:n}))),m},r.indirectRenderWrappedComponent=r.indirectRenderWrappedComponent.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}c(i,n);var s=i.prototype;return s.indirectRenderWrappedComponent=function(e){return this.renderWrappedComponent(e)},s.renderWrappedComponent=function(e){y()(e,'Could not find "store" in the context of "'+r+'". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to '+r+" in connect options.");var n,i=e.storeState,s=e.store,o=this.props;S&&(o=this.props.wrapperProps,n=this.props.forwardedRef);var c=this.selectDerivedProps(i,o,s,a);return this.selectChildElement(t,c,n)},s.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(w.isContextConsumer)(o.a.createElement(this.props.context.Consumer,null))?this.props.context:j;return o.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},i}(p);if(h.WrappedComponent=t,h.displayName=r,S){var m=o.a.forwardRef((function(e,t){return o.a.createElement(h,{wrapperProps:e,forwardedRef:t})}));return m.displayName=r,m.WrappedComponent=t,v()(m,t)}return v()(h,t)}}var k=Object.prototype.hasOwnProperty;function E(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(E(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!k.call(t,n[i])||!E(e[n[i]],t[n[i]]))return!1;return!0}var S=n(91),T=function(){return Math.random().toString(36).substring(7).split("").join(".")},A={INIT:"@@redux/INIT"+T(),REPLACE:"@@redux/REPLACE"+T(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+T()}};function x(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function M(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(M)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,a=t,s=[],o=s,c=!1;function l(){o===s&&(o=s.slice())}function u(){if(c)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function p(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(c)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return l(),o.push(e),function(){if(t){if(c)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,l();var n=o.indexOf(e);o.splice(n,1),s=null}}}function d(e){if(!x(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,a=i(a,e)}finally{c=!1}for(var t=s=o,n=0;n<t.length;n++){(0,t[n])()}return e}function h(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,d({type:A.REPLACE})}function f(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[S.a]=function(){return this},e}return d({type:A.INIT}),(r={dispatch:d,subscribe:p,getState:u,replaceReducer:h})[S.a]=f,r}function j(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function N(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var a,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:A.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:A.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+A.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(o){a=o}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},o=0;o<s.length;o++){var c=s[o],l=n[c],u=e[c],p=l(u,t);if(void 0===p){var d=j(c,t);throw new Error(d)}i[c]=p,r=r||p!==u}return(r=r||s.length!==Object.keys(e).length)?i:e}}function O(e,t){return function(){return t(e.apply(this,arguments))}}function P(e,t){if("function"==typeof e)return O(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=O(i,t))}return n}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(n,!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function z(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function F(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function L(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=F(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=F(i),i=r(t,n)),i},r}}var B=[function(e){return"function"==typeof e?L(e):void 0},function(e){return e?void 0:z((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?z((function(t){return P(e,t)})):void 0}];var V=[function(e){return"function"==typeof e?L(e):void 0},function(e){return e?void 0:z((function(){return{}}))}];function H(e,t,n){return f({},n,e,t)}var q=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,a=n.areMergedPropsEqual,s=!1;return function(t,n,o){var c=e(t,n,o);return s?i&&a(c,r)||(r=c):(s=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return H}}];function K(e,t,n,r){return function(i,a){return n(e(i,a),t(r,a),a)}}function J(e,t,n,r,i){var a,s,o,c,l,u=i.areStatesEqual,p=i.areOwnPropsEqual,d=i.areStatePropsEqual,h=!1;function f(i,h){var f,m,g=!p(h,s),v=!u(i,a);return a=i,s=h,g&&v?(o=e(a,s),t.dependsOnOwnProps&&(c=t(r,s)),l=n(o,c,s)):g?(e.dependsOnOwnProps&&(o=e(a,s)),t.dependsOnOwnProps&&(c=t(r,s)),l=n(o,c,s)):v?(f=e(a,s),m=!d(f,o),o=f,m&&(l=n(o,c,s)),l):l}return function(i,u){return h?f(i,u):(o=e(a=i,s=u),c=t(r,s),l=n(o,c,s),h=!0,l)}}function W(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,a=m(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),s=n(e,a),o=r(e,a),c=i(e,a);return(a.pure?J:K)(s,o,c,e,a)}function G(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Y(e,t){return e===t}var $,Q,X,Z,ee,te,ne,re,ie,ae,se,oe,ce=(X=(Q=void 0===$?{}:$).connectHOC,Z=void 0===X?_:X,ee=Q.mapStateToPropsFactories,te=void 0===ee?V:ee,ne=Q.mapDispatchToPropsFactories,re=void 0===ne?B:ne,ie=Q.mergePropsFactories,ae=void 0===ie?q:ie,se=Q.selectorFactory,oe=void 0===se?W:se,function(e,t,n,r){void 0===r&&(r={});var i=r,a=i.pure,s=void 0===a||a,o=i.areStatesEqual,c=void 0===o?Y:o,l=i.areOwnPropsEqual,u=void 0===l?C:l,p=i.areStatePropsEqual,d=void 0===p?C:p,h=i.areMergedPropsEqual,g=void 0===h?C:h,v=m(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),b=G(e,te,"mapStateToProps"),y=G(t,re,"mapDispatchToProps"),w=G(n,ae,"mergeProps");return Z(oe,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:b,initMapDispatchToProps:y,initMergeProps:w,pure:s,areStatesEqual:c,areOwnPropsEqual:u,areStatePropsEqual:d,areMergedPropsEqual:g},v))});function le(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pe(e){return"/"===e.charAt(0)}function de(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var he=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&pe(e),s=t&&pe(t),o=a||s;if(e&&pe(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var c=i[i.length-1];n="."===c||".."===c||""===c}else n=!1;for(var l=0,u=i.length;u>=0;u--){var p=i[u];"."===p?de(i,u):".."===p?(de(i,u),l++):l&&(de(i,u),l--)}if(!o)for(;l--;l)i.unshift("..");!o||""===i[0]||i[0]&&pe(i[0])||i.unshift("");var d=i.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function fe(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var me=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=fe(t),i=fe(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var ge=function(e,t){if(!e)throw new Error("Invariant failed")};function ve(e){return"/"===e.charAt(0)?e:"/"+e}function be(e){return"/"===e.charAt(0)?e.substr(1):e}function ye(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function we(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function _e(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function ke(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=ue({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=he(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Ee(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,i):i(!0):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var Ce=!("undefined"==typeof window||!window.document||!window.document.createElement);function Se(e,t){t(window.confirm(e))}function Te(){try{return window.history.state||{}}catch(e){return{}}}function Ae(e){void 0===e&&(e={}),Ce||ge(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,s=a.forceRefresh,o=void 0!==s&&s,c=a.getUserConfirmation,l=void 0===c?Se:c,u=a.keyLength,p=void 0===u?6:u,d=e.basename?we(ve(e.basename)):"";function h(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return d&&(a=ye(a,d)),ke(a,r,n)}function f(){return Math.random().toString(36).substr(2,p)}var m=Ee();function g(e){ue(x,e),x.length=n.length,m.notifyListeners(x.location,x.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||w(h(e.state))}function b(){w(h(Te()))}var y=!1;function w(e){if(y)y=!1,g();else{m.confirmTransitionTo(e,"POP",l,(function(t){t?g({action:"POP",location:e}):function(e){var t=x.location,n=k.indexOf(t.key);-1===n&&(n=0);var r=k.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(y=!0,C(i))}(e)}))}}var _=h(Te()),k=[_.key];function E(e){return d+_e(e)}function C(e){n.go(e)}var S=0;function T(e){1===(S+=e)&&1===e?(window.addEventListener("popstate",v),i&&window.addEventListener("hashchange",b)):0===S&&(window.removeEventListener("popstate",v),i&&window.removeEventListener("hashchange",b))}var A=!1;var x={length:n.length,action:"POP",location:_,createHref:E,push:function(e,t){var i=ke(e,t,f(),x.location);m.confirmTransitionTo(i,"PUSH",l,(function(e){if(e){var t=E(i),a=i.key,s=i.state;if(r)if(n.pushState({key:a,state:s},null,t),o)window.location.href=t;else{var c=k.indexOf(x.location.key),l=k.slice(0,c+1);l.push(i.key),k=l,g({action:"PUSH",location:i})}else window.location.href=t}}))},replace:function(e,t){var i=ke(e,t,f(),x.location);m.confirmTransitionTo(i,"REPLACE",l,(function(e){if(e){var t=E(i),a=i.key,s=i.state;if(r)if(n.replaceState({key:a,state:s},null,t),o)window.location.replace(t);else{var c=k.indexOf(x.location.key);-1!==c&&(k[c]=i.key),g({action:"REPLACE",location:i})}else window.location.replace(t)}}))},go:C,goBack:function(){C(-1)},goForward:function(){C(1)},block:function(e){void 0===e&&(e=!1);var t=m.setPrompt(e);return A||(T(1),A=!0),function(){return A&&(A=!1,T(-1)),t()}},listen:function(e){var t=m.appendListener(e);return T(1),function(){T(-1),t()}}};return x}var xe={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+be(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:be,decodePath:ve},slash:{encodePath:ve,decodePath:ve}};function Me(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function je(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Ne(e){window.location.replace(Me(window.location.href)+"#"+e)}function Oe(e){void 0===e&&(e={}),Ce||ge(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?Se:r,a=n.hashType,s=void 0===a?"slash":a,o=e.basename?we(ve(e.basename)):"",c=xe[s],l=c.encodePath,u=c.decodePath;function p(){var e=u(je());return o&&(e=ye(e,o)),ke(e)}var d=Ee();function h(e){ue(S,e),S.length=t.length,d.notifyListeners(S.location,S.action)}var f=!1,m=null;function g(){var e,t,n=je(),r=l(n);if(n!==r)Ne(r);else{var a=p(),s=S.location;if(!f&&(t=a,(e=s).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(m===_e(a))return;m=null,function(e){if(f)f=!1,h();else{d.confirmTransitionTo(e,"POP",i,(function(t){t?h({action:"POP",location:e}):function(e){var t=S.location,n=w.lastIndexOf(_e(t));-1===n&&(n=0);var r=w.lastIndexOf(_e(e));-1===r&&(r=0);var i=n-r;i&&(f=!0,_(i))}(e)}))}}(a)}}var v=je(),b=l(v);v!==b&&Ne(b);var y=p(),w=[_e(y)];function _(e){t.go(e)}var k=0;function E(e){1===(k+=e)&&1===e?window.addEventListener("hashchange",g):0===k&&window.removeEventListener("hashchange",g)}var C=!1;var S={length:t.length,action:"POP",location:y,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=Me(window.location.href)),n+"#"+l(o+_e(e))},push:function(e,t){var n=ke(e,void 0,void 0,S.location);d.confirmTransitionTo(n,"PUSH",i,(function(e){if(e){var t=_e(n),r=l(o+t);if(je()!==r){m=t,function(e){window.location.hash=e}(r);var i=w.lastIndexOf(_e(S.location)),a=w.slice(0,i+1);a.push(t),w=a,h({action:"PUSH",location:n})}else h()}}))},replace:function(e,t){var n=ke(e,void 0,void 0,S.location);d.confirmTransitionTo(n,"REPLACE",i,(function(e){if(e){var t=_e(n),r=l(o+t);je()!==r&&(m=t,Ne(r));var i=w.indexOf(_e(S.location));-1!==i&&(w[i]=t),h({action:"REPLACE",location:n})}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=d.setPrompt(e);return C||(E(1),C=!0),function(){return C&&(C=!1,E(-1)),t()}},listen:function(e){var t=d.appendListener(e);return E(1),function(){E(-1),t()}}};return S}function Pe(e,t,n){return Math.min(Math.max(e,t),n)}function Ie(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,a=t.initialIndex,s=void 0===a?0:a,o=t.keyLength,c=void 0===o?6:o,l=Ee();function u(e){ue(g,e),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function p(){return Math.random().toString(36).substr(2,c)}var d=Pe(s,0,i.length-1),h=i.map((function(e){return ke(e,void 0,"string"==typeof e?p():e.key||p())})),f=_e;function m(e){var t=Pe(g.index+e,0,g.entries.length-1),r=g.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var g={length:h.length,action:"POP",location:h[d],index:d,entries:h,createHref:f,push:function(e,t){var r=ke(e,t,p(),g.location);l.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),u({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=ke(e,t,p(),g.location);l.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(g.entries[g.index]=r,u({action:"REPLACE",location:r}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return g}var De=n(93),Ue=n.n(De),Re=n(162),ze=n.n(Re);function Fe(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var Le=o.a.createContext||function(e,t){var n,r,i="__create-react-context-"+ze()()+"__",a=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=Fe(t.props.value),t}Ue()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((a=r)===(s=i)?0!==a||1/a==1/s:a!=a&&s!=s)?n=0:(n="function"==typeof t?t(r,i):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var a,s},r.render=function(){return this.props.children},n}(s.Component);a.childContextTypes=((n={})[i]=u.a.object.isRequired,n);var o=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Ue()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(s.Component);return o.contextTypes=((r={})[i]=u.a.object,r),{Provider:a,Consumer:o}},Be=n(94),Ve=n.n(Be);n(201);function He(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var qe=n(163),Ke=n.n(qe),Je=function(e){var t=Le();return t.displayName=e,t}("Router"),We=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}le(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(Je.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(o.a.Component);o.a.Component;var Ge=function(e){function t(){return e.apply(this,arguments)||this}le(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.a.Component);function Ye(e){var t=e.message,n=e.when,r=void 0===n||n;return o.a.createElement(Je.Consumer,null,(function(e){if(e||ge(!1),!r||e.staticContext)return null;var n=e.history.block;return o.a.createElement(Ge,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var $e={},Qe=0;function Xe(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if($e[e])return $e[e];var t=Ve.a.compile(e);return Qe<1e4&&($e[e]=t,Qe++),t}(e)(t,{pretty:!0})}function Ze(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.a.createElement(Je.Consumer,null,(function(e){e||ge(!1);var r=e.history,a=e.staticContext,s=i?r.push:r.replace,c=ke(t?"string"==typeof n?Xe(n,t.params):ue({},n,{pathname:Xe(n.pathname,t.params)}):n);return a?(s(c),null):o.a.createElement(Ge,{onMount:function(){s(c)},onUpdate:function(e,t){var n,r,i=ke(t.to);n=i,r=ue({},c,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&me(n.state,r.state)||s(c)},to:n})}))}var et={},tt=0;function nt(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,a=void 0!==i&&i,s=n.strict,o=void 0!==s&&s,c=n.sensitive,l=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=et[n]||(et[n]={});if(r[e])return r[e];var i=[],a={regexp:Ve()(e,i,t),keys:i};return tt<1e4&&(r[e]=a,tt++),a}(n,{end:a,strict:o,sensitive:l}),i=r.regexp,s=r.keys,c=i.exec(e);if(!c)return null;var u=c[0],p=c.slice(1),d=e===u;return a&&!d?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:d,params:s.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var rt=function(e){function t(){return e.apply(this,arguments)||this}return le(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(Je.Consumer,null,(function(t){t||ge(!1);var n=e.props.location||t.location,r=ue({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?nt(n.pathname,e.props):t.match}),i=e.props,a=i.children,s=i.component,c=i.render;return Array.isArray(a)&&0===a.length&&(a=null),o.a.createElement(Je.Provider,{value:r},r.match?a?"function"==typeof a?a(r):a:s?o.a.createElement(s,r):c?c(r):null:"function"==typeof a?a(r):null)}))},t}(o.a.Component);function it(e){return"/"===e.charAt(0)?e:"/"+e}function at(e,t){if(!e)return t;var n=it(e);return 0!==t.pathname.indexOf(n)?t:ue({},t,{pathname:t.pathname.substr(n.length)})}function st(e){return"string"==typeof e?e:_e(e)}function ot(e){return function(){ge(!1)}}function ct(){}o.a.Component;var lt=function(e){function t(){return e.apply(this,arguments)||this}return le(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(Je.Consumer,null,(function(t){t||ge(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?nt(i.pathname,ue({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);function ut(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=He(t,["wrappedComponentRef"]);return o.a.createElement(Je.Consumer,null,(function(t){return t||ge(!1),o.a.createElement(e,ue({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,Ke()(n,e)}var pt=o.a.useContext;function dt(){return pt(Je).location}o.a.Component;var ht=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Oe(t.props),t}return le(t,e),t.prototype.render=function(){return o.a.createElement(We,{history:this.history,children:this.props.children})},t}(o.a.Component);var ft=function(e,t){return"function"==typeof e?e(t):e},mt=function(e,t){return"string"==typeof e?ke(e,null,null,t):e},gt=function(e){return e},vt=o.a.forwardRef;void 0===vt&&(vt=gt);var bt=vt((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=He(e,["innerRef","navigate","onClick"]),s=a.target,c=ue({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=gt!==vt&&t||n,o.a.createElement("a",c)}));var yt=vt((function(e,t){var n=e.component,r=void 0===n?bt:n,i=e.replace,a=e.to,s=e.innerRef,c=He(e,["component","replace","to","innerRef"]);return o.a.createElement(Je.Consumer,null,(function(e){e||ge(!1);var n=e.history,l=mt(ft(a,e.location),e.location),u=l?n.createHref(l):"",p=ue({},c,{href:u,navigate:function(){var t=ft(a,e.location);(i?n.replace:n.push)(t)}});return gt!==vt?p.ref=t||s:p.innerRef=s,o.a.createElement(r,p)}))})),wt=function(e){return e},_t=o.a.forwardRef;void 0===_t&&(_t=wt);_t((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,s=e.activeStyle,c=e.className,l=e.exact,u=e.isActive,p=e.location,d=e.strict,h=e.style,f=e.to,m=e.innerRef,g=He(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return o.a.createElement(Je.Consumer,null,(function(e){e||ge(!1);var n=p||e.location,i=mt(ft(f,n),n),v=i.pathname,b=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),y=b?nt(n.pathname,{path:b,exact:l,strict:d}):null,w=!!(u?u(y,n):y),_=w?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(c,a):c,k=w?ue({},h,{},s):h,E=ue({"aria-current":w&&r||null,className:_,style:k,to:i},g);return wt!==_t?E.ref=t||m:E.innerRef=m,o.a.createElement(yt,E)}))}));var kt=n(3),Et=[9,32,37,38,39,40],Ct=!1;var St=function(){document.addEventListener("keydown",(function(e){Ct||-1!==Et.indexOf(e.keyCode)&&(Ct=!0,document.documentElement.classList.add("dops-accessible-focus"))})),document.addEventListener("mouseup",(function(){Ct&&(Ct=!1,document.documentElement.classList.remove("dops-accessible-focus"))}))};function Tt(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var At=Tt();At.withExtraArgument=Tt;var xt=At,Mt=n(38),jt=n.n(Mt);function Nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"NEW_NOTICE":return[t.notice].concat(jt()(e));case"REMOVE_NOTICE":return e.filter((function(e){return e.noticeId!==t.noticeId}))}return e}N({globalNotices:Nt});var Ot="JETPACK_SET_INITIAL_STATE",Pt="CONNECT_URL_FETCH",It="CONNECT_URL_FETCH_FAIL",Dt="CONNECT_URL_FETCH_SUCCESS",Ut="DISCONNECT_SITE",Rt="DISCONNECT_SITE_FAIL",zt="DISCONNECT_SITE_SUCCESS",Ft="UNLINK_USER",Lt="UNLINK_USER_FAIL",Bt="UNLINK_USER_SUCCESS",Vt="USER_CONNECTION_DATA_FETCH",Ht="USER_CONNECTION_DATA_FETCH_FAIL",qt="USER_CONNECTION_DATA_FETCH_SUCCESS",Kt="USER_TRACKING_SETTINGS_FETCH",Jt="USER_TRACKING_SETTINGS_FETCH_FAIL",Wt="USER_TRACKING_SETTINGS_FETCH_SUCCESS",Gt="USER_TRACKING_SETTINGS_UPDATE",Yt="USER_TRACKING_SETTINGS_UPDATE_FAIL",$t="USER_TRACKING_SETTINGS_UPDATE_SUCCESS",Qt="JETPACK_MODULES_LIST_FETCH",Xt="JETPACK_MODULES_LIST_FETCH_FAIL",Zt="JETPACK_MODULES_LIST_RECEIVE",en="JETPACK_MODULE_FETCH",tn="JETPACK_MODULE_FETCH_FAIL",nn="JETPACK_MODULE_RECEIVE",rn="JETPACK_MODULE_ACTIVATE",an="JETPACK_MODULE_ACTIVATE_SUCCESS",sn="JETPACK_MODULE_ACTIVATE_FAIL",on="JETPACK_MODULE_DEACTIVATE",cn="JETPACK_MODULE_DEACTIVATE_FAIL",ln="JETPACK_MODULE_DEACTIVATE_SUCCESS",un="JETPACK_MODULE_UPDATE_OPTIONS",pn="JETPACK_MODULE_UPDATE_OPTIONS_FAIL",dn="JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",hn="JETPACK_CONNECTION_STATUS_FETCH",fn="JETPACK_CONNECTION_TEST_FETCH",mn="JETPACK_SITE_CONNECTED_PLUGINS_FETCH",gn="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE",vn="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL",bn="DASHBOARD_PROTECT_COUNT_FETCH",yn="DASHBOARD_PROTECT_COUNT_FETCH_FAIL",wn="DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",_n="RESET_OPTIONS",kn="RESET_OPTIONS_FAIL",En="RESET_OPTIONS_SUCCESS",Cn="VAULTPRESS_SITE_DATA_FETCH",Sn="VAULTPRESS_SITE_DATA_FETCH_FAIL",Tn="VAULTPRESS_SITE_DATA_FETCH_SUCCESS",An="AKISMET_DATA_FETCH",xn="AKISMET_DATA_FETCH_FAIL",Mn="AKISMET_DATA_FETCH_SUCCESS",jn="AKISMET_KEY_CHECK_FETCH",Nn="AKISMET_KEY_CHECK_FETCH_FAIL",On="AKISMET_KEY_CHECK_FETCH_SUCCESS",Pn="PLUGIN_UPDATES_FETCH",In="PLUGIN_UPDATES_FETCH_FAIL",Dn="PLUGIN_UPDATES_FETCH_SUCCESS",Un="STATS_SWITCH_TAB",Rn="STATS_DATA_FETCH",zn="STATS_DATA_FETCH_FAIL",Fn="STATS_DATA_FETCH_SUCCESS",Ln="JETPACK_PRODUCTS_FETCH",Bn="JETPACK_PRODUCTS_FETCH_RECEIVE",Vn="JETPACK_PRODUCTS_FETCH_FAIL",Hn="JETPACK_SITE_PRODUCTS_FETCH",qn="JETPACK_SITE_PRODUCTS_FETCH_FAIL",Kn="JETPACK_SITE_PRODUCTS_FETCH_RECEIVE",Jn="JETPACK_SETTINGS_FETCH",Wn="JETPACK_SETTINGS_FETCH_RECEIVE",Gn="JETPACK_SETTINGS_FETCH_FAIL",Yn="JETPACK_SETTING_UPDATE",$n="JETPACK_SETTING_UPDATE_SUCCESS",Qn="JETPACK_SETTING_UPDATE_FAIL",Xn="JETPACK_SETTINGS_UPDATE",Zn="JETPACK_SETTINGS_UPDATE_FAIL",er="JETPACK_SETTINGS_UPDATE_SUCCESS",tr="JETPACK_SETTINGS_SET_UNSAVED_FLAG",nr="JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",rr="JETPACK_SITE_DATA_FETCH",ir="JETPACK_SITE_DATA_FETCH_RECEIVE",ar="JETPACK_SITE_DATA_FETCH_FAIL",sr="JETPACK_SITE_BENEFITS_FETCH",or="JETPACK_SITE_BENEFITS_FETCH_RECEIVE",cr="JETPACK_SITE_BENEFITS_FETCH_FAIL",lr="JETPACK_SITE_FEATURES_FETCH",ur="JETPACK_SITE_FEATURES_FETCH_RECEIVE",pr="JETPACK_SITE_FEATURES_FETCH_FAIL",dr="JETPACK_SITE_PLANS_FETCH",hr="JETPACK_SITE_PLANS_FETCH_RECEIVE",fr="JETPACK_SITE_PLANS_FETCH_FAIL",mr="JETPACK_SITE_PURCHASES_FETCH",gr="JETPACK_SITE_PURCHASES_FETCH_RECEIVE",vr="JETPACK_SITE_PURCHASES_FETCH_FAIL",br="JETPACK_SETUP_WIZARD_QUESTIONNAIRE_FETCH",yr="JETPACK_SETUP_WIZARD_QUESTIONNAIRE_FETCH_RECEIVE",wr="JETPACK_SETUP_WIZARD_QUESTIONNAIRE_FETCH_FAIL",_r="JETPACK_SETUP_WIZARD_QUESTIONNAIRE_UPDATE",kr="JETPACK_SETUP_WIZARD_QUESTIONNAIRE_SAVE",Er="JETPACK_SETUP_WIZARD_QUESTIONNAIRE_SAVE_SUCCESS",Cr="JETPACK_SETUP_WIZARD_QUESTIONNAIRE_SAVE_FAIL",Sr="JETPACK_SETUP_WIZARD_STATUS_UPDATE",Tr="JETPACK_SETUP_WIZARD_STATUS_UPDATE_SUCCESS",Ar="JETPACK_SETUP_WIZARD_STATUS_UPDATE_FAIL",xr="JETPACK_ACTION_NOTICES_DISMISS",Mr="JETPACK_NOTICES_DISPATCH_TYPE",jr="JETPACK_NOTICES_DISMISS",Nr="JETPACK_NOTICES_DISMISS_FAIL",Or="JETPACK_NOTICES_DISMISS_SUCCESS",Pr="JETPACK_PLUGINS_DATA_FETCH",Ir="JETPACK_PLUGINS_DATA_FETCH_RECEIVE",Dr="JETPACK_PLUGINS_DATA_FETCH_FAIL",Ur="JETPACK_SEARCH_TERM",Rr="JETPACK_SEARCH_FOCUS",zr="JETPACK_SEARCH_BLUR",Fr="SET_PLAN_DURATION",Lr="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY",Br="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_SUCCESS",Vr="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_FAIL",Hr="DEV_CARD_DISPLAY",qr="DEV_CARD_HIDE",Kr="MOCK_SWITCH_USER_PERMISSIONS",Jr="MOCK_SWITCH_THREATS",Wr="REWIND_STATUS_FETCH",Gr="REWIND_STATUS_FETCH_RECEIVE",Yr="REWIND_STATUS_FETCH_FAIL",$r="MOCK_SWITCH_REWIND_STATE",Qr="SCAN_STATUS_FETCH",Xr="SCAN_STATUS_FETCH_RECEIVE",Zr="SCAN_STATUS_FETCH_FAIL",ei="MOCK_SWITCH_SCAN_STATE",ti="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH",ni="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL",ri="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS",ii="JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH",ai="JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH_FAIL",si="JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH_SUCCESS",oi="JETPACK_SITE_VERIFY_GOOGLE_REQUEST",ci="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS",li="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL",ui="SITE_CHECKLIST_RECEIVE",pi="SITE_CHECKLIST_REQUEST",di="JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL",hi="JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_SUCCESS",fi="JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_FAIL",mi=N({duration:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yearly",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Fr:return t.duration;default:return e}}});function gi(e){return e.jetpack.plans.duration}var vi=n(14),bi=n.n(vi),yi=N({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Kn:return t.siteProducts;default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Hn:return bi()({},e,{isFetching:!0});case Kn:case qn:return bi()({},e,{isFetching:!1});default:return e}}});function wi(e){return!!e.jetpack.siteProducts.requests.isFetching}function _i(e){return e.jetpack.siteProducts.items}var ki=n(6),Ei=n.n(ki),Ci=n(7),Si=n.n(Ci),Ti=n(5),Ai=n.n(Ti),xi=n(8),Mi=n.n(xi),ji=n(158),Ni=n.n(ji);function Oi(e){return function(t){function n(){var t,r;Ei()(this,n);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return(r=Si()(this,(t=Ai()(n)).call.apply(t,[this].concat(a)))).name=e,r}return Mi()(n,t),n}(Ni()(Error))}var Pi=Oi("JsonParseError"),Ii=Oi("JsonParseAfterRedirectError"),Di=Oi("Api404Error"),Ui=Oi("Api404AfterRedirectError"),Ri=Oi("FetchNetworkError");var zi=new function(e,t){var n=e,r={"X-WP-Nonce":t},i={credentials:"same-origin",headers:r},a={method:"post",credentials:"same-origin",headers:Object(kt.assign)({},r,{"Content-type":"application/json"})},s={setApiRoot:function(e){n=e},setApiNonce:function(e){i={credentials:"same-origin",headers:r={"X-WP-Nonce":e}},a={method:"post",credentials:"same-origin",headers:Object(kt.assign)({},r,{"Content-type":"application/json"})}},fetchSiteConnectionStatus:function(){return o("".concat(n,"jetpack/v4/connection"),i).then(Li)},fetchSiteConnectionTest:function(){return o("".concat(n,"jetpack/v4/connection/test"),i).then(Fi).then(Li)},fetchUserConnectionData:function(){return o("".concat(n,"jetpack/v4/connection/data"),i).then(Li)},fetchUserTrackingSettings:function(){return o("".concat(n,"jetpack/v4/tracking/settings"),i).then(Fi).then(Li)},updateUserTrackingSettings:function(e){return c("".concat(n,"jetpack/v4/tracking/settings"),a,{body:JSON.stringify(e)}).then(Fi).then(Li)},disconnectSite:function(){return c("".concat(n,"jetpack/v4/connection"),a,{body:JSON.stringify({isActive:!1})}).then(Fi).then(Li)},fetchConnectUrl:function(){return o("".concat(n,"jetpack/v4/connection/url"),i).then(Fi).then(Li)},unlinkUser:function(){return c("".concat(n,"jetpack/v4/connection/user"),a,{body:JSON.stringify({linked:!1})}).then(Fi).then(Li)},fetchConnectedPlugins:function(){return o("".concat(n,"jetpack/v4/connection/plugins"),i).then(Fi).then(Li)},fetchModules:function(){return o("".concat(n,"jetpack/v4/module/all"),i).then(Fi).then(Li)},fetchModule:function(e){return o("".concat(n,"jetpack/v4/module/").concat(e),i).then(Fi).then(Li)},activateModule:function(e){return c("".concat(n,"jetpack/v4/module/").concat(e,"/active"),a,{body:JSON.stringify({active:!0})}).then(Fi).then(Li)},deactivateModule:function(e){return c("".concat(n,"jetpack/v4/module/").concat(e,"/active"),a,{body:JSON.stringify({active:!1})})},updateModuleOptions:function(e,t){return c("".concat(n,"jetpack/v4/module/").concat(e),a,{body:JSON.stringify(t)}).then(Fi).then(Li)},updateSettings:function(e){return c("".concat(n,"jetpack/v4/settings"),a,{body:JSON.stringify(e)}).then(Fi).then(Li)},getProtectCount:function(){return o("".concat(n,"jetpack/v4/module/protect/data"),i).then(Fi).then(Li)},resetOptions:function(e){return c("".concat(n,"jetpack/v4/options/").concat(e),a,{body:JSON.stringify({reset:!0})}).then(Fi).then(Li)},getVaultPressData:function(){return o("".concat(n,"jetpack/v4/module/vaultpress/data"),i).then(Fi).then(Li)},activateAkismet:function(){return c("".concat(n,"jetpack/v4/plugins/akismet/activate"),a).then(Fi).then(Li)},getAkismetData:function(){return o("".concat(n,"jetpack/v4/module/akismet/data"),i).then(Fi).then(Li)},checkAkismetKey:function(){return o("".concat(n,"jetpack/v4/module/akismet/key/check"),i).then(Fi).then(Li)},checkAkismetKeyTyped:function(e){return c("".concat(n,"jetpack/v4/module/akismet/key/check"),a,{body:JSON.stringify({api_key:e})}).then(Fi).then(Li)},fetchStatsData:function(e){return o(function(e){var t="".concat(n,"jetpack/v4/module/stats/data");-1!==t.indexOf("?")?t+="&range=".concat(encodeURIComponent(e)):t+="?range=".concat(encodeURIComponent(e));return t}(e),i).then(Fi).then(Li).then(l)},getPluginUpdates:function(){return o("".concat(n,"jetpack/v4/updates/plugins"),i).then(Fi).then(Li)},getPlans:function(){return o("".concat(n,"jetpack/v4/plans"),i).then(Fi).then(Li)},fetchSettings:function(){return o("".concat(n,"jetpack/v4/settings"),i).then(Fi).then(Li)},updateSetting:function(e){return c("".concat(n,"jetpack/v4/settings"),a,{body:JSON.stringify(e)}).then(Fi).then(Li)},fetchSiteData:function(){return o("".concat(n,"jetpack/v4/site"),i).then(Fi).then(Li).then((function(e){return JSON.parse(e.data)}))},fetchSiteFeatures:function(){return o("".concat(n,"jetpack/v4/site/features"),i).then(Fi).then(Li).then((function(e){return JSON.parse(e.data)}))},fetchSiteProducts:function(){return o("".concat(n,"jetpack/v4/site/products"),i).then(Fi).then(Li)},fetchSitePurchases:function(){return o("".concat(n,"jetpack/v4/site/purchases"),i).then(Fi).then(Li).then((function(e){return JSON.parse(e.data)}))},fetchSiteBenefits:function(){return o("".concat(n,"jetpack/v4/site/benefits"),i).then(Fi).then(Li).then((function(e){return JSON.parse(e.data)}))},fetchSetupQuestionnaire:function(){return o("".concat(n,"jetpack/v4/setup/questionnaire"),i).then(Fi).then(Li)},fetchProducts:function(){return o("".concat(n,"jetpack/v4/products"),i).then(Fi).then(Li)},fetchRewindStatus:function(){return o("".concat(n,"jetpack/v4/rewind"),i).then(Fi).then(Li).then((function(e){return JSON.parse(e.data)}))},fetchScanStatus:function(){return o("".concat(n,"jetpack/v4/scan"),i).then(Fi).then(Li).then((function(e){return JSON.parse(e.data)}))},dismissJetpackNotice:function(e){return c("".concat(n,"jetpack/v4/notice/").concat(e),a,{body:JSON.stringify({dismissed:!0})}).then(Fi).then(Li)},fetchPluginsData:function(){return o("".concat(n,"jetpack/v4/plugins"),i).then(Fi).then(Li)},fetchVerifySiteGoogleStatus:function(e){return o(null!==e?"".concat(n,"jetpack/v4/verify-site/google/").concat(e):"".concat(n,"jetpack/v4/verify-site/google"),i).then(Fi).then(Li)},verifySiteGoogle:function(e){return c("".concat(n,"jetpack/v4/verify-site/google"),a,{body:JSON.stringify({keyring_id:e})}).then(Fi).then(Li)},sendMobileLoginEmail:function(){return c("".concat(n,"jetpack/v4/mobile/send-login-email"),a).then(Fi).then(Li)},submitSurvey:function(e){return c("".concat(n,"jetpack/v4/marketing/survey"),a,{body:JSON.stringify(e)}).then(Fi).then(Li)},saveSetupQuestionnaire:function(e){return c("".concat(n,"jetpack/v4/setup/questionnaire"),a,{body:JSON.stringify(e)}).then(Fi).then(Li)}};function o(e,t){return fetch(function(e){var t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")}(e),t)}function c(e,t,n){return fetch(e,Object(kt.assign)({},t,n)).catch(Bi)}function l(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object(kt.assign)(this,s)};function Fi(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((function(){throw e.redirected?new Ui(e.redirected):new Di})):e.json().then((function(t){var n=new Error("".concat(t.message," (Status ").concat(e.status,")"));throw n.response=t,n}))}function Li(e){return e.json().catch((function(t){return function(e,t,n){throw t?new Ii(n):new Pi}(0,e.redirected,e.url)}))}function Bi(){throw new Ri}function Vi(e){return!!e.jetpack.initialState.isDevVersion}function Hi(e){return Object(kt.get)(e.jetpack.initialState,"currentVersion","")}function qi(e){return Object(kt.get)(e.jetpack.initialState.stats,"data")}function Ki(e){return Object(kt.get)(e.jetpack.initialState,["userData","currentUser","wpcomUser","email"])}function Ji(e){return Object(kt.get)(e.jetpack.initialState,"rawUrl",{})}function Wi(e){return Object(kt.get)(e.jetpack.initialState,"adminUrl",{})}function Gi(e){return Object(kt.get)(e.jetpack.initialState,"siteTitle","")}function Yi(e){return Object(kt.get)(e.jetpack.initialState,["connectionStatus","isPublic"])}function $i(e){return!Object(kt.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function Qi(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser.permissions,"publish_posts",!1)}function Xi(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_modules",!1)}function Zi(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_options",!1)}function ea(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function ta(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser.permissions,"disconnect",!1)}function na(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect",!1)}function ra(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser,"isMaster",!1)}function ia(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","login"],"")}function aa(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","email"],"")}function sa(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","avatar"])}function oa(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser,["gravatar"])}function ca(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser,["username"])}function la(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser.permissions,"view_stats",!1)}function ua(e){return Object(kt.get)(e.jetpack.initialState.siteData,["icon"])}function pa(e){return Object(kt.get)(e.jetpack.initialState.siteData,["siteVisibleToSearchEngines"],!0)}function da(e){return Object(kt.get)(e.jetpack.initialState,"WP_API_nonce")}function ha(e){return Object(kt.get)(e.jetpack.initialState,"WP_API_root")}function fa(e){return Object(kt.get)(e.jetpack.initialState,"tracksUserData")}function ma(e){return Object(kt.get)(e.jetpack.initialState,"currentIp")}function ga(e){return Object(kt.get)(e.jetpack.initialState,"lastPostUrl")}function va(e){return Object(kt.get)(e.jetpack.initialState.siteData,"showPromotions",!0)}function ba(e){return Object(kt.get)(e.jetpack.initialState.siteData,"isAtomicSite",!1)}function ya(e,t){return Object(kt.get)(e.jetpack.initialState.themeData,["support",t],!1)}function wa(e){return Object(kt.get)(e.jetpack.initialState.siteData,"showBackups",!0)}function _a(e){return Object(kt.get)(e.jetpack.initialState.siteData,"showSetupWizard",!1)}function ka(e){return Object(kt.get)(e.jetpack.initialState.siteData,"isMultisite",!1)}function Ea(e){return Object(kt.get)(e.jetpack.initialState,"aff","")}function Ca(e){return Object(kt.get)(e.jetpack.initialState,"partnerSubsidiaryId","")}var Sa=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Ea(e),a=Ca(e);return r&&"monthly"===gi(e)&&(t+="-monthly"),"https://jetpack.com/redirect/?source=".concat(t,"&site=").concat(Ji(e))+(i?"&aff=".concat(i):"")+(n?"&u=".concat(n):"")+(a?"&subsidiaryId=".concat(a):"")};function Ta(e){var t=Object(kt.get)(e.jetpack.initialState,"products",[]),n=_i(e);return t.map((function(t){var r=t.options[0].key;return{title:t.title,key:t.key,shortDescription:t.short_description,labelPopup:t.label_popup,optionsLabel:t.options_label,defaultOption:t.default_option,options:Aa(e,t,n),learnMore:t.learn_more,learnMoreUrl:Sa(e,"aag-".concat(t.key)),showPromotion:t.show_promotion,promotionPercentage:t.discount_percent,recordCount:Object(kt.get)(n,[r,"price_tier_usage_quantity"],"0"),priceTierSlug:Object(kt.get)(n,[r,"price_tier_slug"],null),includedInPlans:t.included_in_plans}}))}function Aa(e,t,n){return t.options.map((function(t){return{name:t.name,type:t.type,key:t.key,slug:t.slug,description:t.description,currencyCode:Object(kt.get)(n,[t.key,"currency_code"],""),yearly:{fullPrice:Object(kt.get)(n,[t.key,"cost"],""),upgradeUrl:Sa(e,t.slug)},monthly:{fullPrice:Object(kt.get)(n,["".concat(t.key,"_monthly"),"cost"],""),upgradeUrl:Sa(e,"".concat(t.slug,"-monthly"))}}}))}var xa=N({requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Rn:return Object(kt.assign)({},e,{fetchingStatsData:!0});case An:return Object(kt.assign)({},e,{fetchingAkismetData:!0});case jn:return Object(kt.assign)({},e,{checkingAkismetKey:!0});case Cn:return Object(kt.assign)({},e,{fetchingVaultPressData:!0});case bn:return Object(kt.assign)({},e,{fetchingProtectData:!0});case Pn:return Object(kt.assign)({},e,{fetchingPluginUpdates:!0});case zn:case Fn:return Object(kt.assign)({},e,{fetchingStatsData:!1});case xn:case Mn:return Object(kt.assign)({},e,{fetchingAkismetData:!1});case Nn:case On:return Object(kt.assign)({},e,{checkingAkismetKey:!1});case yn:case wn:return Object(kt.assign)({},e,{fetchingProtectData:!1});case In:case Dn:return Object(kt.assign)({},e,{fetchingPluginUpdates:!1});case Sn:case Tn:return Object(kt.assign)({},e,{fetchingVaultPressData:!1});default:return e}},activeStatsTab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"day",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Un:return t.activeStatsTab;default:return e}},protectCount:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case wn:return t.protectCount;default:return e}},vaultPressData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Tn:return t.vaultPressData;case Jr:return Object(kt.assign)({},"N/A"===e?{}:e,{data:{active:!0,features:{security:!0},security:{notice_count:t.mockCount}}});default:return e}},statsData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Fn:return Object(kt.assign)({},e,t.statsData);default:return e}},akismetData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Mn:return t.akismetData;default:return e}},akismet:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{validKey:null,invalidKeyCode:"",invalidKeyMessage:""},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case On:return Object(kt.assign)({},e,t.akismet);default:return e}},pluginUpdates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Dn:return t.pluginUpdates;default:return e}}});function Ma(e){return e.jetpack.dashboard.activeStatsTab}function ja(e){return!!e.jetpack.dashboard.requests.fetchingStatsData}function Na(e){return e.jetpack.dashboard.statsData}function Oa(e){return!!e.jetpack.dashboard.requests.fetchingAkismetData}function Pa(e){return e.jetpack.dashboard.akismetData}function Ia(e){return!!e.jetpack.dashboard.requests.checkingAkismetKey}function Da(e){return Object(kt.get)(e.jetpack.dashboard,["akismet","validKey"],!1)}function Ua(e){return!!e.jetpack.dashboard.requests.fetchingProtectData}function Ra(e){return e.jetpack.dashboard.protectCount}function za(e){return!!e.jetpack.dashboard.requests.fetchingVaultPressData}function Fa(e){return e.jetpack.dashboard.vaultPressData}function La(e){return Object(kt.get)(e.jetpack.dashboard.vaultPressData,"data.security.notice_count",0)}function Ba(e){return!!e.jetpack.dashboard.requests.fetchingPluginUpdates}function Va(e){return e.jetpack.dashboard.pluginUpdates}var Ha=N({checklist:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return t.type===ui?t.checklist:e},isLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pi:return!0;case ui:return!1}return e}}),qa=n(2),Ka=n.n(qa),Ja={isFetchingPluginsData:!1},Wa=N({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ir:return Object(kt.assign)({},t.pluginsData);default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ja,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Pr:return Object(kt.assign)({},e,{isFetchingPluginsData:!0});case Dr:case Ir:return Object(kt.assign)({},e,{isFetchingPluginsData:!1});default:return e}}});function Ga(e){return!!e.jetpack.pluginsData.requests.isFetchingPluginsData}function Ya(e,t){return e.jetpack.pluginsData.items[t]&&e.jetpack.pluginsData.items[t].active}function $a(e,t){return!!e.jetpack.pluginsData.items[t]}var Qa=function(){return function(e){return e({type:Pr}),zi.fetchPluginsData().then((function(t){return e({type:Ir,pluginsData:t}),t})).catch((function(t){e({type:Dr,error:t})}))}},Xa={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}},Za=N({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ot:return Object(kt.assign)({},t.initialState.getModules);case Zt:return Object(kt.assign)({},e,t.modules);case an:return Object(kt.assign)({},e,Ka()({},t.module,Object(kt.assign)({},e[t.module],{activated:!0})));case ln:return Object(kt.assign)({},e,Ka()({},t.module,Object(kt.assign)({},e[t.module],{activated:!1})));case dn:var n=Object(kt.assign)({},e[t.module]);return Object.keys(t.newOptionValues).forEach((function(e){n.options[e].current_value=t.newOptionValues[e]})),Object(kt.assign)({},e,Ka()({},t.module,n));default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xa,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Qt:return Object(kt.assign)({},e,{fetchingModulesList:!0});case Xt:case Zt:return Object(kt.assign)({},e,{fetchingModulesList:!1});case rn:return Object(kt.assign)({},e,{activating:Object(kt.assign)({},e.activating,Ka()({},t.module,!0))});case sn:case an:return Object(kt.assign)({},e,{activating:Object(kt.assign)({},e.activating,Ka()({},t.module,!1))});case on:return Object(kt.assign)({},e,{deactivating:Object(kt.assign)({},e.deactivating,Ka()({},t.module,!0))});case cn:case ln:return Object(kt.assign)({},e,{deactivating:Object(kt.assign)({},e.deactivating,Ka()({},t.module,!1))});case un:var n=Object(kt.assign)({},e.updatingOption);return n[t.module]=Object(kt.assign)({},n[t.module]),Object.keys(t.newOptionValues).forEach((function(e){n[t.module][e]=!0})),Object(kt.assign)({},e,{updatingOption:Object(kt.assign)({},e.updatingOption,n)});case pn:case dn:var r=Object(kt.assign)({},e.updatingOption);return r[t.module]=Object(kt.assign)({},r[t.module]),Object.keys(t.newOptionValues).forEach((function(e){r[t.module][e]=!1})),Object(kt.assign)({},e,{updatingOption:Object(kt.assign)({},e.updatingOption,r)});default:return e}}});function es(e,t,n){return Object(kt.get)(e.jetpack.modules.items,[t,"options",n,"enum_labels"],!1)}function ts(e){return e.jetpack.modules.items}function ns(e,t){return Object(kt.get)(e.jetpack.modules.items,t,{})}function rs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.keys(ts(e));return 0<Object(kt.intersection)(n,t).length}function is(e){return rs(e,["carousel","lazy-images","photon","photon-cdn","search","videopress"])}function as(e){return rs(e,["protect","sso","vaultpress"])||Ya(e,"akismet/akismet.php")}function ss(e,t){return!!Object(kt.get)(e.jetpack.modules.items,[t,"activated"],!1)}function os(e,t){return Object(kt.includes)(Object.keys(e.jetpack.modules.items),t)}function cs(e,t){return Object(kt.get)(e.jetpack.modules.items,[t,"override"],!1)}function ls(e){return{noticeId:e,type:"REMOVE_NOTICE"}}function us(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={noticeId:n.id||Object(kt.uniqueId)(),duration:n.duration,showDismiss:"boolean"!=typeof n.showDismiss||n.showDismiss,isPersistent:n.isPersistent||!1,displayOnNextPage:n.displayOnNextPage||!1,status:e,text:t};return{type:"NEW_NOTICE",notice:r}}us.bind(null,"is-success"),us.bind(null,"is-error"),us.bind(null,"is-info"),us.bind(null,"is-warning");var ps=n(159),ds=n.n(ps),hs=n(160),fs=n.n(hs),ms=n(60),gs=n.n(ms),vs=n(161),bs=n.n(vs),ys=n(92),ws=n.n(ys),_s=n(89),ks=n.n(_s),Es=n(25);function Cs(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):0,s=void 0===r?",":r,o=void 0===n?".":n,c="";return(c=(a? /* * Exposes number format capability * * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors). * @license See CREDITS.md * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js */ function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,a):""+Math.round(i)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(c[1]||"").length<a&&(c[1]=c[1]||"",c[1]+=new Array(a-c[1].length+1).join("0")),c.join(o)}var Ss=ds()("i18n-calypso"),Ts=[function(e){return e}],As={};function xs(){Ps.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function Ms(e){return Array.prototype.slice.call(e)}function js(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&xs("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",Ms(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&xs("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",Ms(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function Ns(e,t){var n="gettext";t.context&&(n="p"+n),"string"==typeof t.original&&"string"==typeof t.plural&&(n="n"+n);var r=function(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}(n,t);return e[n].apply(e,r)}function Os(e,t){for(var n=Ts.length-1;n>=0;n--){var r=Ts[n](Object.assign({},t));if(e.state.locale[r.original])return Ns(e.state.jed,r)}return null}function Ps(){if(!(this instanceof Ps))return new Ps;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:bs()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new Es.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Ps.throwErrors=!1,Ps.prototype.moment=ws.a,Ps.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},Ps.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},Ps.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},Ps.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return Cs(e,n,r,i)},Ps.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Ps.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t=e[""]["key-hash"],n=function(e,t){var n=!1===t?"":String(t);if(void 0!==As[n+e])return As[n+e];var r=ks()().update(e).digest("hex");return As[n+e]=t?r.substr(0,t):r},r=function(e){return function(t){return t.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)Ts.push(r(!1));else{var i=t.substr(5).indexOf("-");if(i<0){var a=Number(t.substr(5));Ts.push(r(a))}else for(var s=Number(t.substr(5,i)),o=Number(t.substr(6+i)),c=s;c<=o;c++)Ts.push(r(c))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=new gs.a({locale_data:{messages:this.state.locale}}),ws.a.locale(this.state.localeSlug),this.state.numberFormatSettings.decimal_point=Ns(this.state.jed,js(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=Ns(this.state.jed,js(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.state.translations.clear(),this.stateObserver.emit("change")},Ps.prototype.getLocale=function(){return this.state.locale},Ps.prototype.getLocaleSlug=function(){return this.state.localeSlug},Ps.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.jed.options.locale_data.messages[t]=e[t]);this.state.translations.clear(),this.stateObserver.emit("change")},Ps.prototype.hasTranslation=function(){return!!Os(this,js(arguments))},Ps.prototype.translate=function(){var e,t=js(arguments),n=!t.components;if(n){try{e=JSON.stringify(t)}catch(o){n=!1}if(e){var r=this.state.translations.get(e);if(r)return r}}var i=Os(this,t);if(i||(i=Ns(this.state.jed,t)),t.args){var a=Array.isArray(t.args)?t.args.slice(0):[t.args];a.unshift(i);try{i=gs.a.sprintf.apply(gs.a,a)}catch(c){if(!window||!window.console)return;var s=this.throwErrors?"error":"warn";"string"!=typeof c?window.console[s](c):window.console[s]("i18n sprintf error:",a)}}return t.components&&(i=fs()({mixedString:i,components:t.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(e){i=e(i,t)})),n&&this.state.translations.set(e,i),i},Ps.prototype.reRenderTranslations=function(){Ss("Re-rendering all translations due to external request"),this.state.translations.clear(),this.stateObserver.emit("change")},Ps.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},Ps.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var Is,Ds,Us=Ps,Rs=n(9),zs=n.n(Rs),Fs=n(4),Ls=n.n(Fs),Bs=n(22),Vs=n.n(Bs),Hs=new Us,qs=Hs,Ks=Hs.moment,Js=Hs.numberFormat.bind(Hs),Ws=Hs.translate.bind(Hs);Hs.configure.bind(Hs),Hs.setLocale.bind(Hs),Hs.getLocale.bind(Hs),Hs.getLocaleSlug.bind(Hs),Hs.addTranslations.bind(Hs),Hs.reRenderTranslations.bind(Hs),Hs.registerComponentUpdateHook.bind(Hs),Hs.registerTranslateHook.bind(Hs),Hs.state,Hs.stateObserver,Hs.on.bind(Hs),Hs.off.bind(Hs),Hs.emit.bind(Hs),Ds={moment:(Is=Hs).moment,numberFormat:Is.numberFormat.bind(Is),translate:Is.translate.bind(Is)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Hs);function Gs(e,t){switch(e){case"custom-content-types":t||jQuery("#menu-posts-jetpack-portfolio, #menu-posts-jetpack-testimonial").toggle(),Object(kt.forEach)(t,(function(e,t){"jetpack_portfolio"===t&&jQuery("#menu-posts-jetpack-portfolio, .jp-toggle-portfolio").toggle(),"jetpack_testimonial"===t&&jQuery("#menu-posts-jetpack-testimonial, .jp-toggle-testimonial").toggle()}));break;default:return!1}}function Ys(e){Object(kt.some)(["masterbar","jetpack_testimonial","jetpack_portfolio"],(function(t){return t in e}))&&window.location.reload()}var $s={disconnectingSite:!1,unlinkingUser:!1,fetchingConnectUrl:!1,fetchingUserData:!1},Qs=N({connectUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ot:return Object(kt.get)(t,"initialState.connectUrl",e);case Dt:return t.connectUrl;default:return e}},status:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{siteConnected:window.Initial_State.connectionStatus},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case hn:case zt:return Object(kt.assign)({},e,{siteConnected:t.siteConnected});default:return e}},user:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.userData,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case qt:return Object(kt.assign)({},e,t.userConnectionData);case Bt:var n=Object(kt.assign)({},e.currentUser,{isConnected:!1});return Object(kt.assign)({},e,{currentUser:n});case Kr:return Object(kt.merge)({},e,t.initialState);default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$s,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ut:return Object(kt.assign)({},e,{disconnectingSite:!0});case Ft:return Object(kt.assign)({},e,{unlinkingUser:!0});case Pt:return Object(kt.assign)({},e,{fetchingConnectUrl:!0});case Vt:return Object(kt.assign)({},e,{fetchingUserData:!0});case Rt:case zt:return Object(kt.assign)({},e,{disconnectingSite:!1});case Lt:case Bt:return Object(kt.assign)({},e,{unlinkingUser:!1});case It:case Dt:return Object(kt.assign)({},e,{fetchingConnectUrl:!1});case Ht:case qt:return Object(kt.assign)({},e,{fetchingUserData:!1});default:return e}}});function Xs(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&(e.jetpack.connection.status.siteConnected.devMode.isActive?"dev":e.jetpack.connection.status.siteConnected.isActive)}function Zs(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&!0!==e.jetpack.connection.status.siteConnected.devMode.isActive&&e.jetpack.connection.status.siteConnected.isActive}function eo(e){return!!Object(kt.get)(e.jetpack.connection.status,["siteConnected","devMode","isActive"])&&Object(kt.get)(e.jetpack.connection.status,["siteConnected","devMode"])}function to(e){return e.jetpack.connection.connectUrl}function no(e){return!!e.jetpack.connection.requests.disconnectingSite}function ro(e){return!!e.jetpack.connection.requests.fetchingConnectUrl}function io(e){return!!e.jetpack.connection.requests.unlinkingUser}function ao(e){return!!e.jetpack.connection.requests.fetchingUserData}function so(e){return!!e.jetpack.connection.user.currentUser.isConnected}function oo(e){return"dev"===Xs(e)}function co(e){return Object(kt.get)(e.jetpack.connection.status,["siteConnected","isStaging"],!1)}function lo(e){return Object(kt.get)(e.jetpack.connection.status,["siteConnected","isInIdentityCrisis"],!1)}function uo(e,t){return Object(kt.includes)(function(e){return Object.keys(e.jetpack.modules.items).filter((function(t){return e.jetpack.modules.items[t].requires_connection}))}(e).concat(["backups","scan"]),t)}function po(e,t){return oo(e)&&uo(e,t)}function ho(e){return Object(kt.get)(e.jetpack.connection.status,["siteConnected","sandboxDomain"],"")}var fo=N({display:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Hr:return!0;case qr:return!1;default:return e}}});function mo(e){return!!e.jetpack.devCard.display}var go=N({notice:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case zt:return"disconnected";default:return e}},dismissed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.dismissedNotices,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case xr:return Object(kt.assign)({},e,Ka()({},t.notice,!0));case Or:return Object(kt.assign)({},e,t.dismissedNotices);case En:return!1;default:return e}}});function vo(e){return e.jetpack.jetpackNotices.notice}function bo(e){return Object(kt.get)(e.jetpack.initialState,["jetpackStateNotices","errorCode"])}function yo(e){return Object(kt.get)(e.jetpack.initialState,["jetpackStateNotices","messageCode"])}function wo(e){return Object(kt.get)(e.jetpack.initialState,["jetpackStateNotices","messageContent"])}function _o(e){return Object(kt.get)(e.jetpack.initialState,["jetpackStateNotices","errorDescription"])}var ko=N({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Bn:return t.products;default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ln:return Object(kt.assign)({},e,{isFetchingProducts:!0});case Bn:case Vn:return Object(kt.assign)({},e,{isFetchingProducts:!1});default:return e}}});var Eo=N({connectUrls:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ot:return Object(kt.assign)({},t.initialState.externalServicesConnectUrls);default:return e}}});function Co(e,t){return Object(kt.get)(e.jetpack.publicize.connectUrls,t,null)}var So={isFetchingRewindStatus:!1},To=N({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gr:return Object(kt.assign)({},e,{status:t.status});case $r:return Object(kt.assign)({},e,{status:t.rewindState});default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:So,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wr:return Object(kt.assign)({},e,{isFetchingRewindStatus:!0});case Gr:case Yr:return Object(kt.assign)({},e,{isFetchingRewindStatus:!1});default:return e}}});function Ao(e){return!!e.jetpack.rewind.requests.isFetchingRewindStatus}function xo(e){return Object(kt.get)(e.jetpack.rewind,["data","status"],{})}var Mo={isFetchingScanStatus:!1},jo=N({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Xr:return Object(kt.assign)({},e,{status:t.status});case ei:return{status:bi()({},e.status,{},t.scanState)};default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Qr:return Object(kt.assign)({},e,{isFetchingScanStatus:!0});case Xr:case Zr:return Object(kt.assign)({},e,{isFetchingScanStatus:!1});default:return e}}});function No(e){return!!e.jetpack.scan.requests.isFetchingScanStatus}function Oo(e){return Object(kt.get)(e.jetpack.scan,["data","status"],{})}var Po=N({searchTerm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ur:return t.term;default:return e}}});function Io(e){return e.jetpack.search.searchTerm}function Do(e,t){var n=Object(kt.find)(Object(kt.get)(e.jetpack,["modules","items"],{}),["module",t]);if(void 0===n)return!1;var r=Object(kt.get)(e.jetpack,["search","searchTerm"],!1);return!r||[n.module,n.name,n.description,n.learn_more_button,n.long_description,n.search_terms,n.additional_search_queries,n.short_description,n.feature?n.feature.toString():""].join(" ").toLowerCase().indexOf(r.toLowerCase())>-1}var Uo={fetchingSettingsList:!1,settingsSent:{},updatedSettings:{}},Ro=N({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ot:return Object(kt.assign)({},e,t.initialState.settings);case Wn:return Object(kt.assign)({},t.settings);case $n:var n=Object.keys(t.updatedOption)[0];return Object(kt.assign)({},e,Ka()({},n,t.updatedOption[n]));case er:return Object(kt.assign)({},e,t.updatedOptions);default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Jn:return Object(kt.assign)({},e,{fetchingSettingsList:!0});case Gn:case Wn:return Object(kt.assign)({},e,{fetchingSettingsList:!1});case Yn:case Xn:return Object(kt.merge)({},e,{settingsSent:Object(kt.mapValues)(t.updatedOptions,(function(){return!0}))});case Qn:case $n:case Zn:case er:return Object(kt.merge)({},e,{settingsSent:Object(kt.mapValues)(t.updatedOptions,(function(){return!1})),updatedSettings:Object(kt.mapValues)(t.updatedOptions,(function(){return Boolean(t.success)}))});default:return e}},unsavedSettingsFlag:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case tr:return!0;case nr:return!1;default:return e}}});function zo(e){return e.jetpack.settings.items}function Fo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(""===n||Object(kt.get)(e.jetpack.settings.items,n,!1))return Object(kt.get)(e.jetpack.settings.items,t,void 0)}function Lo(e){return!!e.jetpack.settings.requests.fetchingSettingsList}function Bo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"object"==typeof t?Object(kt.some)(Object(kt.filter)(e.jetpack.settings.requests.settingsSent,(function(e,n){return Object(kt.includes)(t,n)})),(function(e){return e})):e.jetpack.settings.requests.settingsSent[t]}function Vo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.jetpack.settings.requests.updatedSettings[t]}function Ho(e,t){return!!Object(kt.get)(e.jetpack.settings.items,[t],!1)}function qo(e){return Object(kt.get)(e.jetpack.settings,"unsavedSettingsFlag",!1)}function Ko(e){return Object(kt.get)(e.jetpack.settings.items,"dismiss_dash_app_card",!1)}function Jo(e){return Object(kt.get)(e.jetpack.settings.items,"dismiss_empty_stats_card",!1)}var Wo={security:["anti-spam","backups","brute-force-protect","monitor","scan","sso"],performance:["site-accelerator","lazy-images","search","videopress","site-stats","infinite-scroll"],marketing:["ads","comment-likes","contact-form","google-analytics","likes","notifications","publicize","related-posts","sharing","shortlinks","seo","simple-payments-block","site-verification","sitemaps","subscriptions"],publishing:["beautiful-math","carousel","comments","copy-post","custom-css","enhanced-distribution","extra-sidebar-widgets","gravatar-hovercards","json-api","testimonials","tiled-galleries","markdown","masterbar","portfolio","post-by-email","shortcodes","widget-visibility"]},Go={all:["backups","scan","anti-spam","brute-force-protect","site-accelerator","lazy-images","site-stats","subscriptions","carousel","extra-sidebar-widgets","tiled-galleries"],"business-use":["monitor","contact-form","notifications"],"advertising-revenue":["ads"],"store-revenue":["search","videopress","simple-payments-block"],"blog-posts":["search","infinite-scroll","videopress","publicize","related-posts","sharing","site-verification","copy-post","enhanced-distribution"]},Yo=N({questionnaire:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case yr:return Object(kt.assign)({},e,t.questionnaire);case _r:return Object(kt.assign)({},e,t.answer);default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case br:return Object(kt.assign)({},e,{isFetchingSetupQuestionnaire:!0});case yr:case wr:return Object(kt.assign)({},e,{isFetchingSetupQuestionnaire:!1});default:return e}},status:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Sr:return t.status;default:return e}}}),$o=function(e){return!!e.jetpack.setupWizard.requests.isFetchingSetupQuestionnaire},Qo=function(e,t){return Object(kt.get)(e.jetpack.setupWizard.questionnaire,t)},Xo=function(e){var t=e.jetpack.setupWizard.questionnaire;if(!t)return[];var n=[Go.all];"business"===t.use&&n.push(Go["business-use"]),t["advertising-revenue"]&&n.push(Go["advertising-revenue"]),t["store-revenue"]&&n.push(Go["store-revenue"]),t["site-updates"]&&n.push(Go["blog-posts"]);var r=Object(kt.reduce)(n,(function(e,t){return Object(kt.union)(e,t)}),[]);return["security","performance","marketing","publishing"].map((function(e){return bi()({},function(e){switch(e){case"security":return{title:Ws("Security"),details:Ws("Keep your site backed up, prevent unwanted intrusions, find issues with malware scanning, and stop spammers in their tracks.")};case"performance":return{title:Ws("Performance"),details:Ws("Load pages faster! Shorter load times can lead to happier readers, more page views, and — if you’re running a store — improved sales.")};case"marketing":return{title:Ws("Marketing"),details:Ws("Increase visitors with social integrations, keep them engaged with related content, and so much more.")};case"publishing":return{title:Ws("Design & Publishing"),details:Ws("Customize your homepage, blog posts, sidebars, and widgets — all without touching any code.")}}}(e),{features:Object(kt.intersection)(Wo[e],r)})}))};var Zo=function(e){return""===e.jetpack.setupWizard.status?function(e){return Object(kt.get)(e.jetpack.initialState,"setupWizardStatus","")}(e):e.jetpack.setupWizard.status},ec=["jetpack_backup_daily","jetpack_backup_daily_monthly","jetpack_backup_realtime","jetpack_backup_realtime_monthly"],tc=["jetpack_search","jetpack_search_monthly"],nc=["jetpack_scan","jetpack_scan_monthly"];function rc(e){return Object(kt.includes)(ec,e)}function ic(e){return Object(kt.includes)(tc,e)}function ac(e){return nc.includes(e)}function sc(e){switch(e){case"jetpack_free":case"free_plan":return"is-free-plan";case"personal-bundle":case"personal-bundle-2y":case"personal-bundle-monthly":case"jetpack_personal":case"jetpack_personal_monthly":return"is-personal-plan";case"value_bundle":case"value_bundle-2y":case"value_bundle-monthly":case"jetpack_premium":case"jetpack_premium_monthly":return"is-premium-plan";case"business-bundle":case"business-bundle-2y":case"business-bundle-monthly":case"jetpack_business":case"jetpack_business_monthly":case"vip":case"ecommerce-bundle":case"ecommerce-bundle-2y":case"ecommerce-bundle-monthly":return"is-business-plan";case"jetpack_backup_daily":case"jetpack_backup_daily_monthly":return"is-daily-backup-plan";case"jetpack_backup_realtime":case"jetpack_backup_realtime_monthly":return"is-realtime-backup-plan";case"jetpack_search":case"jetpack_search_monthly":return"is-search-plan";case"jetpack_scan":case"jetpack_scan_monthly":return"is-scan-plan";default:return""}}var oc={isFetchingSiteData:!1},cc=N({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ir:return Object(kt.assign)({},e,t.siteData);case or:return Object(kt.merge)({},e,{site:{benefits:t.siteBenefits}});case gn:return Object(kt.merge)({},e,{site:{connectedPlugins:t.connectedPlugins}});case ur:return Object(kt.merge)({},e,{site:{features:t.siteFeatures}});case hr:return Object(kt.merge)({},e,{sitePlans:t.plans});case gr:return Object(kt.merge)({},e,{sitePurchases:t.purchases});default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case rr:return Object(kt.assign)({},e,{isFetchingSiteData:!0});case sr:return Object(kt.assign)({},e,{isFetchingSiteBenefits:!0});case mn:return Object(kt.assign)({},e,{isFetchingConnectedPlugins:!0});case lr:return Object(kt.assign)({},e,{isFetchingSiteFeatures:!0});case dr:return Object(kt.assign)({},e,{isFetchingSitePlans:!0});case mr:return Object(kt.assign)({},e,{isFetchingSitePurchases:!0});case ar:case ir:return Object(kt.assign)({},e,{isFetchingSiteData:!1});case cr:case or:return Object(kt.assign)({},e,{isFetchingSiteBenefits:!1});case vn:case gn:return Object(kt.assign)({},e,{isFetchingConnectedPlugins:!1,isDoneFetchingConnectedPlugins:!0});case pr:case ur:return Object(kt.assign)({},e,{isFetchingSiteFeatures:!1});case fr:case hr:return Object(kt.assign)({},e,{isFetchingSitePlans:!1});case vr:case gr:return Object(kt.assign)({},e,{isFetchingSitePurchases:!1});default:return e}}});function lc(e){return!!(e.jetpack.siteData.requests.isFetchingSiteData||e.jetpack.siteData.requests.isFetchingSiteFeatures||e.jetpack.siteData.requests.isFetchingSitePlans||e.jetpack.siteData.requests.isFetchingSitePurchases)}function uc(e){return!!e.jetpack.siteData.requests.isFetchingSiteBenefits}function pc(e){return!!e.jetpack.siteData.requests.isFetchingConnectedPlugins}function dc(e){return!!e.jetpack.siteData.requests.isFetchingSitePurchases}function hc(e){return Object(kt.get)(e.jetpack.siteData,["data","plan"],{})}function fc(e){return Object(kt.get)(e.jetpack.siteData,["data","site","benefits"],null)}function mc(e){return Object(kt.get)(e.jetpack.siteData,["data","site","features","available"],{})}function gc(e){return Object(kt.get)(e.jetpack.siteData,["data","site","features","active"],[])}function vc(e){return Object(kt.get)(e.jetpack.siteData,["data","sitePlans"])}function bc(e){return Object(kt.get)(e.jetpack.siteData,["data","sitePurchases"],[])}function yc(e){return bc(e).filter((function(e){return"1"===e.active}))}function wc(e){return yc(e).filter((function(e){return rc(t=e.product_slug)||ic(t)||ac(t);var t}))}function _c(e){return Object(kt.find)(wc(e),(function(e){return rc(e.product_slug)}))}function kc(e){return Object(kt.find)(wc(e),(function(e){return ac(e.product_slug)}))}function Ec(e){return Object(kt.find)(wc(e),(function(e){return ic(e.product_slug)}))}function Cc(e){return!!Ec(e)}function Sc(e){return Object(kt.get)(e.jetpack.siteData,["data","ID"])}function Tc(e){return function(e){return!!e.jetpack.siteData.requests.isDoneFetchingConnectedPlugins}(e)?Object(kt.get)(e.jetpack.siteData,["data","site","connectedPlugins"],[]).filter((function(e){return"jetpack"!==e.slug})):null}var Ac=N({google:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fetching:!1,verifying:!1,verified:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ti:return Object(kt.assign)({},e,{fetching:!0});case ni:return Object(kt.assign)({},e,{fetching:!1,error:t.error});case ri:return Object(kt.assign)({},e,{fetching:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,token:t.token,error:null});case oi:return Object(kt.assign)({},e,{verifying:!0});case ci:return Object(kt.assign)({},e,{verifying:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,error:null});case li:return Object(kt.assign)({},e,{verifying:!1,verified:!1,error:t.error});default:return e}}});function xc(e){return Object(kt.get)(e,"jetpack.siteVerify.google.fetching",!1)}function Mc(e){return Object(kt.get)(e,"jetpack.siteVerify.google.verifying",!1)}function jc(e){return!xc(e)&&"no_token_for_user"!==Object(kt.get)(e,"jetpack.siteVerify.google.error.code",null)}function Nc(e){return Object(kt.get)(e,"jetpack.siteVerify.google.verified",!1)}function Oc(e){return Object(kt.get)(e,"jetpack.siteVerify.google.error",null)}function Pc(e){return Object(kt.get)(e,"jetpack.siteVerify.google.searchConsoleUrl",null)}function Ic(e){return Object(kt.get)(e,"jetpack.siteVerify.google.isOwner",!1)}var Dc=N({disconnectSurvey:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{submitting:!1,submitted:!1,error:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Lr:return Object(kt.assign)({},e,{submitting:!0});case Br:return Object(kt.assign)({},e,{submitting:!1,submitted:!0,error:null});case Vr:return Object(kt.assign)({},e,{submitting:!1,submitted:!1,error:t.error});default:return e}}});var Uc={fetchingTrackingSettings:!1,updatingTrackingSettings:!1},Rc=N({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wt:return Object(kt.assign)({},e,t.settings);case $t:return Object(kt.assign)({},e,t.updatedSettings);default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Kt:return Object(kt.assign)({},e,{fetchingTrackingSettings:!0});case Jt:case Wt:return Object(kt.assign)({},e,{fetchingTrackingSettings:!1});case Gt:return Object(kt.assign)({},e,{updatingTrackingSettings:!0});case Yt:case $t:return Object(kt.assign)({},e,{updatingTrackingSettings:!1});default:return e}}});function zc(e){return e.jetpack.trackingSettings.items}function Fc(e){return e.jetpack.trackingSettings.requests.fetchingTrackingSettings}function Lc(e){return e.jetpack.trackingSettings.requests.updatingTrackingSettings}var Bc=N({mobile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{sendingLoginEmail:!1,loginEmailSent:!1,error:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case di:return Object(kt.assign)({},e,{sendingLoginEmail:!0});case hi:return Object(kt.assign)({},e,{sendingLoginEmail:!1,loginEmailSent:!0,error:null});case fi:return Object(kt.assign)({},e,{sendingLoginEmail:!1,loginEmailSent:!1,error:t.error});default:return e}}});var Vc=N({checklist:Ha,connection:Qs,dashboard:xa,devCard:fo,initialState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ot:return Object(kt.assign)({},e,t.initialState);case Kr:return Object(kt.merge)({},e,{userData:t.initialState});default:return e}},jetpackNotices:go,modules:Za,plans:mi,pluginsData:Wa,products:ko,publicize:Eo,rewind:To,scan:jo,search:Po,settings:Ro,setupWizard:Yo,siteData:cc,siteProducts:yi,siteVerify:Ac,disconnectSurvey:Dc,trackingSettings:Rc,mobile:Bc}),Hc=N({globalNotices:Nt,jetpack:Vc}),qc=R(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return U({},n,{dispatch:r=R.apply(void 0,a)(n.dispatch)})}}}(xt),"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():function(e){return e})(M)(Hc);var Kc=n(29),Jc=n.n(Kc),Wc=n(11),Gc=n.n(Wc),Yc=(n(186),function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.href?"a":"button",t=this.props,n=t.primary,r=t.compact,i=t.scary,a=t.borderless,s=t.className,c=Jc()(t,["primary","compact","scary","borderless","className"]),l=Gc()({"dops-button":!0,"is-compact":r,"is-primary":n,"is-scary":i,"is-borderless":a});return c.className=Gc()(s,l),o.a.createElement(e,c,this.props.children)}}]),t}(o.a.Component));Ka()(Yc,"displayName","Button"),Ka()(Yc,"propTypes",{disabled:u.a.bool,compact:u.a.bool,primary:u.a.bool,scary:u.a.bool,type:u.a.string,href:u.a.string,onClick:u.a.func,borderless:u.a.bool,className:u.a.string}),Ka()(Yc,"defaultProps",{disabled:!1,type:"button",onClick:kt.noop,borderless:!1});n(187);var $c=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=Gc()("dops-button-group",this.props.className);return o.a.createElement("span",{className:e},this.props.children)}}]),t}(o.a.Component);Ka()($c,"displayName","ButtonGroup"),Ka()($c,"propTypes",{children:function(e){var t=null;return o.a.Children.forEach(e.children,(function(e){e.props&&"button"===e.props.type||(t=new Error("All children elements should be a Button."))})),t}});var Qc=n(21),Xc=n.n(Qc),Zc={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};var el,tl,nl=function(e){if(e in Zc)return Zc[e];throw new Error("config key `"+e+"` does not exist")},rl=Xc()("dops:analytics");window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;var il={initialize:function(e,t,n){il.setUser(e,t),il.setSuperProps(n),il.identifyUser()},setUser:function(e,t){tl={ID:e,username:t}},setSuperProps:function(e){el=e},mc:{bumpStat:function(e,t){var n=function(e,t){var n="";if("object"==typeof e){for(var r in e)n+="&x_"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);rl("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),rl('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);nl("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){var n=function(e,t){var n="";if("object"==typeof e){for(var r in e)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);rl("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),rl('Built stat "%s" in group "%s"',t,e);return n}(e,t);nl("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){il.tracks.recordPageView(e),il.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,i,a,s){il.ga.recordPurchase(e,t,n,r,i,a,s)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(el&&(rl("- Super Props: %o",el),t=Object(kt.assign)(t,el)),rl('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):rl('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){var t="object"==typeof e?e:{target:e};il.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){il.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){rl("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){var e={};il.ga.initialized||(tl&&(e={userId:"u-"+tl.ID}),window.ga("create",nl("google_analytics_key"),"auto",e),il.ga.initialized=!0)},recordPageView:function(e,t){il.ga.initialize(),rl("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),nl("google_analytics_enabled")&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){il.ga.initialize();var i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(i+=" [Option Label: "+n+"]"),void 0!==r&&(i+=" [Option Value: "+r+"]"),rl(i),nl("google_analytics_enabled")&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,i,a,s){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:s}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:i,quantity:a}),window.ga("ecommerce:send")}},identifyUser:function(){tl&&window._tkq.push(["identifyUser",tl.ID,tl.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},al=il,sl=function(){return function(e){return e({type:Pt}),zi.fetchConnectUrl().then((function(t){e({type:Dt,connectUrl:t})})).catch((function(t){e({type:It,error:t})}))}},ol=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t){return t({type:Ut}),t(us("is-info",Ws("Disconnecting Jetpack"),{id:"disconnect-jetpack"})),zi.disconnectSite().then((function(e){t({type:zt,disconnectingSite:e}),t(ls("disconnect-jetpack"))})).then((function(){t(sl()),e&&window.location.reload()})).catch((function(e){t({type:Rt,error:e}),t(ls("disconnect-jetpack")),t(us("is-error",Ws("There was an error disconnecting Jetpack. Error: %(error)s",{args:{error:e}}),{id:"disconnect-jetpack"}))}))}},cl=n(10),ll=n.n(cl),ul=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("svg",ll()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 118 32"},this.props),o.a.createElement("path",{fill:"#00BE28",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),o.a.createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),o.a.createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),o.a.createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),o.a.createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),o.a.createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),o.a.createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),o.a.createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"}))}}]),t}(o.a.Component);Ka()(ul,"propTypes",{className:u.a.string,width:u.a.number,height:u.a.number}),Ka()(ul,"defaultProps",{className:"jetpack-logo",height:32});var pl=ul,dl=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackDashClick",(function(){al.tracks.recordJetpackClick({target:"masthead",path:"nav_dashboard"})})),Ka()(Ls()(n),"trackSettingsClick",(function(){al.tracks.recordJetpackClick({target:"masthead",path:"nav_settings"})})),Ka()(Ls()(n),"trackLogoClick",(function(){al.tracks.recordJetpackClick({target:"masthead",path:"logo"})})),Ka()(Ls()(n),"testConnection",(function(){return n.props.testConnection()})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e="dev"===this.props.siteConnectionStatus?o.a.createElement("code",null,"Dev Mode"):"",t=this.props.sandboxDomain?o.a.createElement("code",{id:"sandbox-domain-badge",onClick:this.testConnection,onKeyDown:this.testConnection,role:"button",tabIndex:0,title:"Sandboxing via ".concat(this.props.sandboxDomain,". Click to test connection.")},"API Sandboxed"):"",n=Object(kt.includes)(["/","/dashboard","/my-plan","/plans"],this.props.location.pathname),r=""===this.props.location.pathname,i=this.props.location.pathname.startsWith("/setup");return o.a.createElement("div",{className:"jp-masthead"},o.a.createElement("div",{className:"jp-masthead__inside-container"},o.a.createElement("div",{className:"jp-masthead__logo-container"},o.a.createElement("a",{onClick:this.trackLogoClick,className:"jp-masthead__logo-link",href:"#dashboard"},o.a.createElement(pl,{className:"jetpack-logo__masthead"})),e,t),this.props.userCanEditPosts&&!i&&o.a.createElement("div",{className:"jp-masthead__nav"},!r&&this.props.siteConnectionStatus&&o.a.createElement($c,null,o.a.createElement(Yc,{compact:!0,href:"#/dashboard",primary:n&&!r,onClick:this.trackDashClick},Ws("Dashboard")),o.a.createElement(Yc,{compact:!0,href:"#/settings",primary:!n&&!r,onClick:this.trackSettingsClick},Ws("Settings"))))))}}]),t}(o.a.Component);Ka()(dl,"defaultProps",{location:{pathname:""}});var hl=ce((function(e){return{siteConnectionStatus:Xs(e),sandboxDomain:ho(e),currentVersion:Hi(e),userCanEditPosts:ea(e)}}),(function(e){return{testConnection:function(){return e((function(e){return e(us("is-info",Ws("Testing Jetpack Connection"),{id:"test-jetpack-connection"})),zi.fetchSiteConnectionTest().then((function(t){e({type:fn,connectionTest:t}),e(ls("test-jetpack-connection")),e(us("success"===t.code?"is-success":"is-error",t.message,{id:"test-jetpack-connection"}))})).catch((function(t){e(ls("test-jetpack-connection")),e(us("is-error",Ws("There was an error testing Jetpack. Error: %(error)s",{args:{error:t.message}}),{id:"test-jetpack-connection"}))}))}))}}}))(dl),fl=n(18),ml=n.n(fl),gl="undefined"==typeof window||!window.matchMedia;function vl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,n=e.max;return void 0!==t&&void 0!==n?gl?{matches:769>t&&769<=n}:window.matchMedia("(min-width: ".concat(t+1,"px) and (max-width: ").concat(n,"px)")):void 0!==t?gl?{matches:769>t}:window.matchMedia("(min-width: ".concat(t+1,"px)")):void 0!==n&&(gl?{matches:769<=n}:window.matchMedia("(max-width: ".concat(n,"px)")))}var bl={"<480px":vl({max:480}),"<660px":vl({max:660}),"<800px":vl({max:800}),"<960px":vl({max:960}),"<1040px":vl({max:1040}),"<1280px":vl({max:1280}),"<1400px":vl({max:1400}),">480px":vl({min:480}),">660px":vl({min:660}),">800px":vl({min:800}),">960px":vl({min:960}),">1040px":vl({min:1040}),">1280px":vl({min:1280}),">1400px":vl({min:1400}),"480px-660px":vl({min:480,max:660}),"660px-960px":vl({min:660,max:960}),"480px-960px":vl({min:480,max:960})};function yl(e){if(bl.hasOwnProperty(e))return bl[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function wl(e){var t=yl(e);return t?t.matches:void 0}function _l(){return wl("<480px")}var kl=n(30),El=n.n(kl),Cl=(n(194),ml()({displayName:"Count",mixins:[El.a],propTypes:{count:u.a.number.isRequired},render:function(){return o.a.createElement("span",{className:"dops-count"},this.numberFormat(this.props.count))}})),Sl=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=Gc()(this.props.className,{"dops-select-dropdown__item":!0,"is-selected":this.props.selected,"is-disabled":this.props.disabled});return o.a.createElement("li",{className:"dops-select-dropdown__option"},o.a.createElement("a",{ref:"itemLink",href:this.props.path,className:e,onClick:this.props.disabled?null:this.props.onClick,"data-bold-text":this.props.value||this.props.children,role:"option",tabIndex:0,"aria-selected":this.props.selected},o.a.createElement("span",{className:"dops-select-dropdown__item-text"},this.props.children,"number"==typeof this.props.count&&o.a.createElement(Cl,{count:this.props.count}))))}}]),t}(o.a.Component);Ka()(Sl,"propTypes",{children:u.a.string.isRequired,path:u.a.string,selected:u.a.bool,onClick:u.a.func,count:u.a.number}),Ka()(Sl,"defaultProps",{selected:!1});var Tl=Sl,Al=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("li",{className:"dops-select-dropdown__separator"})}}]),t}(o.a.Component),xl=o.a.Component,Ml=function(e){return e.stopPropagation()},jl=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("li",{role:"menuitem",onClick:Ml,className:"dops-select-dropdown__label"},o.a.createElement("label",null,this.props.children))}}]),t}(xl),Nl=(n(195),function(){}),Ol=function(e){function t(e){var n;Ei()(this,t),(n=Si()(this,Ai()(t).call(this,e))).navigateItem=n.navigateItem.bind(Ls()(n)),n.toggleDropdown=n.toggleDropdown.bind(Ls()(n)),n.handleOutsideClick=n.handleOutsideClick.bind(Ls()(n)),n._onClick=n._onClick.bind(Ls()(n));var r={isOpen:!1};return e.options.length&&(r.selected=n.getInitialSelectedItem(e)),n.state=r,n}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.setState({instanceId:++t.instances})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.state.isOpen&&this.closeDropdown(),void 0!==this.state.selected&&this.props.initialSelected!==e.initialSelected&&this.setState({selected:e.initialSelected})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("click",this.handleOutsideClick)}},{key:"componentDidUpdate",value:function(e,t){this.state.isOpen?window.addEventListener("click",this.handleOutsideClick):window.removeEventListener("click",this.handleOutsideClick),this.state.isOpen!==t.isOpen&&this.props.onToggle({target:this,open:this.state.isOpen})}},{key:"getInitialSelectedItem",value:function(e){if((e=e||this.props).initialSelected)return e.initialSelected;if(e.options.length){var t=Object(kt.find)(e.options,(function(e){return!e.isLabel}));return t&&t.value}}},{key:"dropdownOptions",value:function(){var e=0,t=this;return this.props.children?o.a.Children.map(this.props.children,(function(n,r){if(!n)return null;var i=o.a.cloneElement(n,{ref:n.type===Tl?"item-"+e:null,key:"item-"+r,onClick:function(e){t.refs.dropdownContainer.focus(),"function"==typeof n.props.onClick&&n.props.onClick(e)}});return n.type===Tl&&e++,i}),this):this.props.options.map((function(t,n){if(!t)return o.a.createElement(Al,{key:"dropdown-separator-"+this.state.instanceId+"-"+n});if(t.isLabel)return o.a.createElement(jl,{key:"dropdown-label-"+this.state.instanceId+"-"+n},t.label);var r=o.a.createElement(Tl,{key:"dropdown-item-"+this.state.instanceId+"-"+t.value,ref:"item-"+e,selected:this.state.selected===t.value,onClick:this.onSelectItem(t),path:t.path},t.label);return e++,r}),this)}},{key:"render",value:function(){var e={"dops-select-dropdown":!0,"is-compact":this.props.compact,"is-open":this.state.isOpen,"is-disabled":this.props.disabled};this.props.className&&this.props.className.split(" ").forEach((function(t){e[t]=!0}));var t=Gc()(e),n=this.props.selectedText?this.props.selectedText:Object(kt.result)(Object(kt.find)(this.props.options,{value:this.state.selected}),"label");return o.a.createElement("div",{style:this.props.style,className:t},o.a.createElement("div",{ref:"dropdownContainer",className:"dops-select-dropdown__container",tabIndex:this.props.tabIndex||0,role:"listbox","aria-labelledby":"select-dropdown-"+this.state.instanceId,"aria-haspopup":"true","aria-owns":"select-submenu-"+this.state.instanceId,"aria-controls":"select-submenu-"+this.state.instanceId,"aria-expanded":this.state.isOpen,onClick:this._onClick,onKeyDown:this.navigateItem},o.a.createElement("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header"},o.a.createElement("span",{className:"dops-select-dropdown__header-text"},n,"number"==typeof this.props.selectedCount&&o.a.createElement(Cl,{count:this.props.selectedCount}))),o.a.createElement("ul",{id:"select-submenu-"+this.state.instanceId,className:"dops-select-dropdown__options"},this.dropdownOptions())))}},{key:"_onClick",value:function(){this.props.disabled||this.toggleDropdown()}},{key:"toggleDropdown",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"openDropdown",value:function(){this.setState({isOpen:!0})}},{key:"closeDropdown",value:function(){this.state.isOpen&&(delete this.focused,this.setState({isOpen:!1}))}},{key:"onSelectItem",value:function(e){return this.selectItem.bind(this,e)}},{key:"selectItem",value:function(e){e&&(this.props.onSelect&&this.props.onSelect(e),this.setState({selected:e.value}),this.refs.dropdownContainer.focus())}},{key:"navigateItem",value:function(e){switch(e.keyCode){case 9:this.navigateItemByTabKey(e);break;case 32:case 13:e.preventDefault(),this.activateItem();break;case 38:e.preventDefault(),this.focusSibling("previous"),this.openDropdown();break;case 40:e.preventDefault(),this.focusSibling("next"),this.openDropdown();break;case 27:e.preventDefault(),this.closeDropdown(),this.refs.dropdownContainer.focus()}}},{key:"navigateItemByTabKey",value:function(e){if(this.state.isOpen){e.preventDefault();var t=e.shiftKey?"previous":"next";this.focusSibling(t)}}},{key:"activateItem",value:function(){if(!this.state.isOpen)return this.openDropdown();document.activeElement.click()}},{key:"focusSibling",value:function(e){var t,n;if(this.state.isOpen){this.props.options.length?(t=Object(kt.map)(Object(kt.filter)(this.props.options,(function(e){return e&&!e.isLabel})),"value"),n="number"==typeof this.focused?this.focused:t.indexOf(this.state.selected)):(t=Object(kt.filter)(this.props.children,(function(e){return e.type===Tl})),n="number"==typeof this.focused?this.focused:Object(kt.findIndex)(t,(function(e){return e.props.selected})));var r=n+("previous"===e?-1:1);r>=t.length||r<0||(a.a.findDOMNode(this.refs["item-"+r].refs.itemLink).focus(),this.focused=r)}}},{key:"handleOutsideClick",value:function(e){a.a.findDOMNode(this.refs.dropdownContainer).contains(e.target)||this.closeDropdown()}}]),t}(o.a.Component);Ol.defaultProps={options:[],onSelect:Nl,onToggle:Nl,disabled:!1,style:{}},Ol.propTypes={selectedText:u.a.string,selectedCount:u.a.number,initialSelected:u.a.string,className:u.a.string,style:u.a.object,onSelect:u.a.func,onToggle:u.a.func,focusSibling:u.a.func,tabIndex:u.a.number,disabled:u.a.bool,options:u.a.arrayOf(u.a.shape({value:u.a.string.isRequired,label:u.a.string.isRequired,path:u.a.string}))},Ol.instances=0;var Pl=Ol,Il=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{isDropdown:!1}),Ka()(Ls()(n),"getTabWidths",(function(){var e=0;o.a.Children.forEach(n.props.children,function(t,n){if(t){var r=a.a.findDOMNode(this.refs["tab-"+n]).offsetWidth;e+=r}}.bind(Ls()(n))),n.tabsWidth=e})),Ka()(Ls()(n),"getDropdown",(function(){var e=o.a.Children.map(n.props.children,(function(e,t){return e?o.a.createElement(Tl,ll()({},e.props,{key:"navTabsDropdown-"+t}),e.props.children):null}));return o.a.createElement(Pl,{className:"dops-section-nav-tabs__dropdown",selectedText:n.props.selectedText,selectedCount:n.props.selectedCount},e)})),Ka()(Ls()(n),"setDropdown",(function(){var e;if(window.innerWidth>480){if(!n.refs.navGroup)return;e=n.refs.navGroup.offsetWidth,n.tabsWidth||n.getTabWidths(),e<=n.tabsWidth&&!n.state.isDropdown?n.setState({isDropdown:!0}):e>n.tabsWidth&&n.state.isDropdown&&n.setState({isDropdown:!1})}else window.innerWidth<=480&&n.state.isDropdown&&n.setState({isDropdown:!1})})),Ka()(Ls()(n),"keyHandler",(function(e){switch(e.keyCode){case 32:case 13:e.preventDefault(),document.activeElement.click()}})),n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.setDropdown(),this.debouncedAfterResize=Object(kt.debounce)(this.setDropdown,300),window.addEventListener("resize",this.debouncedAfterResize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(){this.setDropdown()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedAfterResize)}},{key:"render",value:function(){var e=o.a.Children.map(this.props.children,(function(e,t){return e&&o.a.cloneElement(e,{ref:"tab-"+t})})),t=Gc()({"dops-section-nav-tabs":!0,"is-dropdown":this.state.isDropdown,"is-open":this.state.isDropdownOpen,"has-siblings":this.props.hasSiblingControls}),n=gl?769:window.innerWidth;return o.a.createElement("div",{className:"dops-section-nav-group",ref:"navGroup"},o.a.createElement("div",{className:t},this.props.label&&o.a.createElement("h6",{className:"dops-section-nav-group__label"},this.props.label),o.a.createElement("ul",{className:"dops-section-nav-tabs__list",role:"menu",onKeyDown:this.keyHandler},e),this.state.isDropdown&&n>480&&this.getDropdown()))}}]),t}(o.a.Component);Ka()(Il,"propTypes",{selectedText:u.a.string,selectedCount:u.a.number,label:u.a.string,hasSiblingControls:u.a.bool}),Ka()(Il,"defaultProps",{hasSiblingControls:!1});var Dl=Il,Ul=ml()({displayName:"NavItem",mixins:[El.a],propTypes:{itemType:u.a.string,path:u.a.string,selected:u.a.bool,tabIndex:u.a.number,onClick:u.a.func,isExternalLink:u.a.bool,disabled:u.a.bool,count:u.a.number},render:function(){var e=this.props.itemType?this.props.itemType:"tab",t={"is-selected":this.props.selected,"is-external":this.props.isExternalLink};t["dops-section-nav-"+e]=!0;var n,r,i=Gc()(t);return this.props.isExternalLink&&(n="_blank"),this.props.disabled||(r=this.props.onClick),o.a.createElement("li",{className:i},o.a.createElement("a",{href:this.props.path,target:n,className:"dops-section-nav-"+e+"__link",onClick:r,tabIndex:this.props.tabIndex||0,disabled:this.props.disabled,role:"menuitem",rel:this.props.isExternalLink?"external":null},o.a.createElement("span",{className:"dops-section-nav-"+e+"__text"},this.props.children,"number"==typeof this.props.count&&o.a.createElement(Cl,{count:this.props.count}))))}}),Rl=(n(196),function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"isSVGCSSAnimationSupported",(function(){var e=window.window?window.window.navigator.userAgent:"";return!/(MSIE |Trident\/)/.test(e)})),Ka()(Ls()(n),"getClassName",(function(){return Gc()("dops-spinner",n.props.className,{"is-fallback":!n.isSVGCSSAnimationSupported()})})),Ka()(Ls()(n),"renderFallback",(function(){var e={width:n.props.size,height:n.props.size};return o.a.createElement("div",{className:n.getClassName(),style:e},o.a.createElement("span",{className:"dops-spinner__progress is-left"}),o.a.createElement("span",{className:"dops-spinner__progress is-right"}))})),n}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.setState({instanceId:++t.instances})}},{key:"render",value:function(){var e=parseInt(this.state.instanceId,10);return this.isSVGCSSAnimationSupported()?o.a.createElement("div",{className:this.getClassName()},o.a.createElement("svg",{className:"dops-spinner__image",width:this.props.size,height:this.props.size,viewBox:"0 0 100 100",dangerouslySetInnerHTML:{__html:'\n\t\t\t\t\t<defs>\n\t\t\t\t\t\t<mask id="maskBorder'.concat(e,'">\n\t\t\t\t\t\t\t<rect x="0" y="0" width="100%" height="100%" fill="white" />\n\t\t\t\t\t\t\t<circle r="46%" cx="50%" cy="50%" fill="black" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t\t<mask id="maskDonut').concat(e,'">\n\t\t\t\t\t\t\t<rect x="0" y="0" width="100%" height="100%" fill="black" />\n\t\t\t\t\t\t\t<circle r="46%" cx="50%" cy="50%" fill="white" />\n\t\t\t\t\t\t\t<circle r="30%" cx="50%" cy="50%" fill="black" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t\t<mask id="maskLeft').concat(e,'">\n\t\t\t\t\t\t\t<rect x="0" y="0" width="50%" height="100%" fill="white" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t\t<mask id="maskRight').concat(e,'">\n\t\t\t\t\t\t\t<rect x="50%" y="0" width="50%" height="100%" fill="white" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t</defs>\n\t\t\t\t\t<circle class="dops-spinner__border" r="50%" cx="50%" cy="50%" mask="url( #maskBorder').concat(e,' )" />\n\t\t\t\t\t<g mask="url( #maskDonut').concat(e,' )">\n\t\t\t\t\t\t<g mask="url( #maskLeft').concat(e,' )">\n\t\t\t\t\t\t\t<rect class="dops-spinner__progress is-left" x="0" y="0" width="50%" height="100%" />\n\t\t\t\t\t\t</g>\n\t\t\t\t\t\t<g mask="url( #maskRight').concat(e,' )">\n\t\t\t\t\t\t\t<rect class="dops-spinner__progress is-right" x="50%" y="0" width="50%" height="100%" />\n\t\t\t\t\t\t</g>\n\t\t\t\t\t</g>\n\t\t\t\t')}})):this.renderFallback()}}]),t}(o.a.Component));Ka()(Rl,"propTypes",{className:u.a.string,size:u.a.number,duration:u.a.number}),Ka()(Rl,"instances",0),Ka()(Rl,"defaultProps",{size:20,duration:3e3});var zl=Rl,Fl=(n(197),ml()({displayName:"Gridicon",mixins:[El.a],getDefaultProps:function(){return{className:"",size:24}},propTypes:{icon:u.a.string.isRequired,size:u.a.number,onClick:u.a.func,className:u.a.string},needsOffset:function(e,t){return["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-backspace","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plans","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle"].indexOf(e)>=0&&t%18==0},needsOffsetX:function(e,t){return["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"].indexOf(e)>=0&&t%18==0},needsOffsetY:function(e,t){return["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"].indexOf(e)>=0&&t%18==0},render:function(){var e,t="gridicons-"+this.props.icon,n=this.needsOffset(t,this.props.size),r=this.needsOffsetX(t,this.props.size),i=this.needsOffsetY(t,this.props.size),a=Gc()("gridicon",t,this.props.className,{"needs-offset":n,"needs-offset-x":r,"needs-offset-y":i});switch(t){default:e=o.a.createElement("svg",{height:this.props.size,width:this.props.size});break;case"gridicons-add-image":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-backspace":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 7H8l-5 5 5 5h11c1.104 0 2-.896 2-2V9c0-1.104-.896-2-2-2zm-.647 6.646l-.707.707L16 12.707l-1.647 1.647-.707-.707L15.293 12l-1.647-1.646.707-.707L16 11.293l1.646-1.647.707.707L16.707 12l1.646 1.646z"})));break;case"gridicons-bell":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 6h-4V3c0-.5-.5-1-1-1H8c-.5 0-1 .5-1 1v3H3c-.6 0-1 .4-1 1v5h20V7c0-.6-.4-1-1-1zm-6 0H9V4h6v2zM14 15h-4v-2H2v8c0 .6.4 1 1 1h18c.6 0 1-.4 1-1v-8h-8v2z"})));break;case"gridicons-calendar":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-cart":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-checkmark-circle":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})));break;case"gridicons-cloud":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5z"})));break;case"gridicons-code":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4.83 12l4.58 4.59L8 18l-6-6 6-6 1.41 1.41L4.83 12zm9.76 4.59L16 18l6-6-6-6-1.41 1.41L19.17 12l-4.58 4.59z"})));break;case"gridicons-cog":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"})));break;case"gridicons-computer":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})));break;case"gridicons-create":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 11v8c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h8l-2 2H5v14h14v-6l2-2zM7 17h3l7.5-7.5-3-3L7 14v3zm9.94-12.94L15.5 5.5l3 3 1.44-1.44c.585-.585.585-1.535 0-2.12l-.88-.88c-.585-.585-1.535-.585-2.12 0z"})));break;case"gridicons-credit-card":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-small":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})));break;case"gridicons-custom-post-type":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-dropdown":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-flag":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-globe":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-1.962-2v-.528c0-.4.082-.74.246-1.017.163-.276.454-.546.87-.808.333-.21.572-.397.717-.565.146-.168.22-.36.22-.577 0-.172-.078-.308-.234-.41-.156-.1-.358-.15-.608-.15-.62 0-1.34.22-2.168.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.287-.23.362-.6.705-1.11 1.03-.43.278-.7.48-.807.61-.108.13-.163.282-.163.458V13h-1.885z"})));break;case"gridicons-help":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm2.003-6.41c-.23.36-.6.704-1.108 1.028-.43.28-.7.482-.808.61-.108.13-.163.283-.163.46V13H11.04v-.528c0-.4.08-.74.245-1.017.163-.276.454-.546.872-.808.332-.21.57-.397.716-.565.145-.168.217-.36.217-.577 0-.172-.077-.308-.233-.41-.156-.1-.358-.15-.608-.15-.62 0-1.342.22-2.17.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.286z"})));break;case"gridicons-history":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),o.a.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"})));break;case"gridicons-indent-left":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})));break;case"gridicons-ink":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-link-break":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-mention":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10v-2c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8v.5c0 .827-.673 1.5-1.5 1.5s-1.5-.673-1.5-1.5V12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5c1.65 0 3.102-.81 4.013-2.043C16.648 15.6 17.527 16 18.5 16c1.93 0 3.5-1.57 3.5-3.5V12c0-5.523-4.477-10-10-10zm0 13c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3z"})));break;case"gridicons-menu":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 13c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2-1.105 0-2 .896-2 2v5c0 1.104.895 2 2 2zm4-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6c0 2.972 2.164 5.433 5 5.91V20h2v-3.09c2.836-.478 5-2.94 5-5.91h-2z"})));break;case"gridicons-minus-small":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-my-sites-horizon":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-not-visible":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})));break;case"gridicons-notice":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-pages":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pencil":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})));break;case"gridicons-plans":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 12H6l5-10v10zm2 6V10h5l-5 10z"})));break;case"gridicons-plugins":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 13h-7v7h-2v-7H4v-2h7V4h2v7h7v2z"})));break;case"gridicons-popout":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-quote":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-reader":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reader-following":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M23,13.482L15.508,21L12,17.4l1.412-1.388l2.106,2.188l6.094-6.094L23,13.482z M15.545,15.344L20,10.889V2H2v14c0,1.1,0.9,2,2,2h4.538l4.913-4.832L15.545,15.344z M8,13H4v-1h4V13z M11,11H4v-1h7V11z M11,9H4V8h7V9z M18,6H4V4h14V6z"})));break;case"gridicons-reblog":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-reply":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M14 8H6.828l2.586-2.586L8 4 3 9l5 5 1.414-1.414L6.828 10H14c2.206 0 4 1.794 4 4s-1.794 4-4 4h-2v2h2c3.314 0 6-2.686 6-6s-2.686-6-6-6z"})));break;case"gridicons-rotate":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-ios":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-sign-out":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-spam":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})));break;case"gridicons-star":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})));break;case"gridicons-stats-alt":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})));break;case"gridicons-tag":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-circle":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"})));break;case"gridicons-visible":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})));break;case"gridicons-chat":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20,4h-8c-1.1,0-2,0.9-2,2v2h2c1.7,0,3,1.3,3,3v2h2v3.5l3.3-2.3c1.1-0.8,1.7-2,1.7-3.3V6C22,4.9,21.1,4,20,4z"}),o.a.createElement("g",null,o.a.createElement("path",{d:"M14,11v5c0,1.1-0.9,2-2,2H7v3.5l-3.3-2.3c-1.1-0.8-1.7-2-1.7-3.3V11c0-1.1,0.9-2,2-2h8C13.1,9,14,9.9,14,11z"}))))}return e}}));n(198);function Ll(e,t){switch(t.key){case" ":case"Enter":this[e](t)}}var Bl=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{keyword:n.props.initialValue||"",isOpen:!!n.props.isOpen,hasFocus:!1}),Ka()(Ls()(n),"scrollOverlay",(function(){n.refs.overlay&&window.requestAnimationFrame((function(){n.refs.overlay&&n.refs.searchInput&&(n.refs.overlay.scrollLeft=n.getScrollLeft(n.refs.searchInput))}))})),Ka()(Ls()(n),"getScrollLeft",(function(e){if(!e.createTextRange)return e.scrollLeft;var t=e.createTextRange(),n=window.getComputedStyle(e,void 0),r=parseFloat(n.paddingLeft),i=t.getBoundingClientRect();return e.getBoundingClientRect().left+e.clientLeft+r-i.left})),Ka()(Ls()(n),"focus",(function(){setTimeout((function(){return n.refs.searchInput&&a.a.findDOMNode(n.refs.searchInput).focus()}),0)})),Ka()(Ls()(n),"blur",(function(){a.a.findDOMNode(n.refs.searchInput).blur()})),Ka()(Ls()(n),"getCurrentSearchValue",(function(){return a.a.findDOMNode(n.refs.searchInput).value})),Ka()(Ls()(n),"clear",(function(){n.setState({keyword:""})})),Ka()(Ls()(n),"onBlur",(function(e){n.props.onBlur&&n.props.onBlur(e),n.setState({hasFocus:!1})})),Ka()(Ls()(n),"onChange",(function(){n.setState({keyword:n.getCurrentSearchValue()})})),Ka()(Ls()(n),"openSearch",(function(e){n.props.onClick(),e.preventDefault(),n.setState({keyword:"",isOpen:!0}),al.ga.recordEvent(n.props.analyticsGroup,"Clicked Open Search")})),Ka()(Ls()(n),"closeSearch",(function(e){if(e.preventDefault(),!n.props.disabled){var t=a.a.findDOMNode(n.refs.searchInput);n.setState({keyword:"",isOpen:n.props.isOpen||!1}),t.value="",t.blur(),n.props.pinned&&a.a.findDOMNode(n.refs.openIcon).focus(),n.props.onSearchClose(e),al.ga.recordEvent(n.props.analyticsGroup,"Clicked Close Search")}})),Ka()(Ls()(n),"keyUp",(function(e){"Enter"===e.key&&_l()&&n.blur(),n.props.pinned&&("Escape"===e.key&&n.closeSearch(e),n.scrollOverlay())})),Ka()(Ls()(n),"keyDown",(function(e){n.scrollOverlay(),"Escape"===e.key&&""===e.target.value&&n.closeSearch(e),n.props.onKeyDown(e)})),Ka()(Ls()(n),"onFocus",(function(){var e=a.a.findDOMNode(n.refs.searchInput),t=e.value;t&&(e.value="",e.value=t),n.setState({hasFocus:!0}),n.props.onSearchOpen()})),Ka()(Ls()(n),"renderStylingDiv",(function(){return o.a.createElement("div",{className:"dops-search__text-overlay",ref:"overlay"},n.props.overlayStyling(n.state.keyword))})),Ka()(Ls()(n),"closeButton",(function(){return n.props.hideClose||!n.state.keyword&&!n.state.isOpen?null:o.a.createElement("div",{role:"button",className:"dops-search__icon-navigation",onClick:n.closeSearch,tabIndex:"0",onKeyDown:n.closeListener,"aria-controls":"dops-search-component-"+n.state.instanceId,"aria-label":"Close Search"},o.a.createElement(Fl,{icon:"cross",className:"dops-search__close-icon"}))})),n}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.setState({instanceId:++t.instances}),this.closeListener=Ll.bind(this,"closeSearch"),this.openListener=Ll.bind(this,"openSearch")}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.onSearch===this.props.onSearch&&e.delaySearch===this.props.delaySearch||(this.onSearch=this.props.delaySearch?Object(kt.debounce)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch),e.isOpen&&this.setState({isOpen:e.isOpen}),e.initialValue===this.props.initialValue||this.state.keyword!==this.props.initialValue&&""!==this.state.keyword||this.setState({keyword:e.initialValue||""})}},{key:"componentDidUpdate",value:function(e,t){this.scrollOverlay(),(this.state.isOpen&&!t.isOpen||this.props.autoFocus&&!e.autoFocus)&&this.focus(),this.state.keyword!==t.keyword&&(this.state.keyword?this.onSearch(this.state.keyword):(this.props.delaySearch&&this.onSearch.cancel(),this.props.onSearch(this.state.keyword)),this.props.onSearchChange(this.state.keyword))}},{key:"componentDidMount",value:function(){var e=this;this.onSearch=this.props.delaySearch?Object(kt.debounce)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch,this.props.autoFocus&&setTimeout((function(){return e.focus()}),0)}},{key:"render",value:function(){var e=this.state.keyword,t=this.props.placeholder||"Search…",n=this.props.pinned&&!this.state.isOpen,r=this.state.isOpen||!this.props.pinned||this.props.initialValue,i=this.props.disableAutocorrect&&{autoComplete:"off",autoCorrect:"off",spellCheck:"false"},a=Gc()(this.props.additionalClasses,this.props.dir,{"is-expanded-to-container":this.props.fitsContainer,"is-open":r,"is-searching":this.props.searching,"has-focus":this.state.hasFocus,"dops-search":!0}),s=Gc()("dops-search__input-fade",this.props.dir),c=Gc()("dops-search__input",this.props.dir);return o.a.createElement("div",{dir:this.props.dir||null,className:a,role:"search"},o.a.createElement(zl,null),o.a.createElement("div",{role:"button",className:"dops-search__icon-navigation",ref:"openIcon",onClick:n?this.openSearch:this.focus,tabIndex:n?"0":null,onKeyDown:n?this.openListener:null,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Open Search"},o.a.createElement(Fl,{icon:"search",className:"dops-search__open-icon"})),o.a.createElement("div",{className:s},o.a.createElement("input",ll()({type:"search",onChange:this.onChange,id:"dops-search-component-"+this.state.instanceId,className:c,placeholder:t,role:"searchbox",value:e,ref:"searchInput",onKeyUp:this.keyUp,onKeyDown:this.keyDown,onMouseUp:this.props.onClick,onFocus:this.onFocus,onBlur:this.onBlur,disabled:this.props.disabled,"aria-hidden":!r,autoCapitalize:"none",dir:this.props.dir,maxLength:this.props.maxLength},i)),this.props.overlayStyling&&this.renderStylingDiv()),this.closeButton())}}]),t}(o.a.Component);Ka()(Bl,"displayName","Search"),Ka()(Bl,"instances",0),Ka()(Bl,"propTypes",{additionalClasses:u.a.string,initialValue:u.a.string,placeholder:u.a.string,pinned:u.a.bool,delaySearch:u.a.bool,delayTimeout:u.a.number,onSearch:u.a.func.isRequired,onSearchChange:u.a.func,onSearchOpen:u.a.func,onSearchClose:u.a.func,analyticsGroup:u.a.string,overlayStyling:u.a.func,autoFocus:u.a.bool,disabled:u.a.bool,onKeyDown:u.a.func,onClick:u.a.func,disableAutocorrect:u.a.bool,onBlur:u.a.func,searching:u.a.bool,isOpen:u.a.bool,dir:u.a.oneOf(["ltr","rtl"]),fitsContainer:u.a.bool,maxLength:u.a.number,hideClose:u.a.bool}),Ka()(Bl,"defaultProps",{pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:kt.noop,onSearchOpen:kt.noop,onSearchClose:kt.noop,onKeyDown:kt.noop,onClick:kt.noop,overlayStyling:void 0,disableAutocorrect:!1,searching:!1,isOpen:!1,dir:void 0,fitsContainer:!1,hideClose:!1});var Vl=Bl,Hl=(n(199),ml()({displayName:"SectionNav",propTypes:{children:u.a.node,selectedText:u.a.node,selectedCount:u.a.number,hasPinnedItems:u.a.bool,onMobileNavPanelOpen:u.a.func},getInitialState:function(){return{mobileOpen:!1}},getDefaultProps:function(){return{onMobileNavPanelOpen:function(){}}},UNSAFE_componentWillMount:function(){this.checkForSiblingControls(this.props.children)},UNSAFE_componentWillReceiveProps:function(e){Object(kt.isEqual)(this.props,e)||(this.checkForSiblingControls(e.children),this.hasSiblingControls||this.closeMobilePanel())},render:function(){var e,t=this.getChildren();return t?(e=Gc()({"dops-section-nav":!0,"is-open":this.state.mobileOpen,"has-pinned-items":this.hasPinnedSearch||this.props.hasPinnedItems}),o.a.createElement("div",{className:e},o.a.createElement("div",{className:"dops-section-nav__mobile-header",role:"button",onClick:this.toggleMobileOpenState,tabIndex:0,onKeyUp:this.toggleMobileOpenState},o.a.createElement("span",{className:"dops-section-nav__mobile-header-text"},this.props.selectedText)),o.a.createElement("div",{className:"dops-section-nav__panel"},t))):(e=Gc()({"dops-section-nav":!0,"is-empty":!0}),o.a.createElement("div",{className:e},o.a.createElement("div",{className:"dops-section-nav__panel"},o.a.createElement(Ul,null))))},getChildren:function(){return o.a.Children.map(this.props.children,function(e){var t={hasSiblingControls:this.hasSiblingControls,closeSectionNavMobilePanel:this.closeMobilePanel};return e?(e.type!==Dl||e.props.selectedText||"string"!=typeof this.props.selectedText||(t.selectedText=this.props.selectedText),e.type===Dl&&this.props.selectedCount&&(t.selectedCount=this.props.selectedCount),e.type===Vl&&(e.props.pinned&&(this.hasPinnedSearch=!0),t.onSearch=this.generateOnSearch(e.props.onSearch)),o.a.cloneElement(e,t)):null}.bind(this))},closeMobilePanel:function(){window.innerWidth<480&&this.state.mobileOpen&&this.setState({mobileOpen:!1})},toggleMobileOpenState:function(){var e=!this.state.mobileOpen;this.setState({mobileOpen:e}),e&&this.props.onMobileNavPanelOpen()},generateOnSearch:function(e){return function(){e.apply(this,arguments),this.closeMobilePanel()}.bind(this)},checkForSiblingControls:function(e){this.hasSiblingControls=!1,o.a.Children.forEach(e,function(e,t){t&&e&&e.type!==Vl&&(this.hasSiblingControls=!0)}.bind(this))}})),ql=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackNavClick",(function(e){al.tracks.recordJetpackClick({target:"nav_item",path:e})})),Ka()(Ls()(n),"trackDashboardClick",(function(){n.trackNavClick("dashboard")})),Ka()(Ls()(n),"trackMyPlanClick",(function(){n.trackNavClick("my-plan")})),Ka()(Ls()(n),"trackPlansClick",(function(){n.trackNavClick("plans")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e;return e=this.props.userCanManageModules?o.a.createElement(Dl,{selectedText:this.props.routeName},o.a.createElement(Ul,{path:"#/dashboard",onClick:this.trackDashboardClick,selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname},Ws("At a Glance",{context:"Navigation item."})),!this.props.isDevMode&&this.props.isLinked&&o.a.createElement(Ul,{path:"#/my-plan",onClick:this.trackMyPlanClick,selected:"/my-plan"===this.props.location.pathname},Ws("My Plan",{context:"Navigation item."})),!this.props.isDevMode&&this.props.isLinked&&o.a.createElement(Ul,{path:"#/plans",onClick:this.trackPlansClick,selected:"/plans"===this.props.location.pathname},Ws("Plans",{context:"Navigation item."}))):o.a.createElement(Dl,{selectedText:this.props.routeName},o.a.createElement(Ul,{path:"#/dashboard",selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname},Ws("At a Glance",{context:"Navigation item."}))),o.a.createElement("div",{id:"jp-navigation",className:"dops-navigation"},o.a.createElement(Hl,{selectedText:this.props.routeName},e))}}]),t}(o.a.Component);ql.propTypes={routeName:u.a.string.isRequired,isDevMode:u.a.bool.isRequired};var Kl=ce((function(e){return{userCanManageModules:Xi(e),userCanViewStats:la(e),isModuleActivated:function(t){return ss(e,t)},isDevMode:oo(e),isLinked:so(e)}}))(ut(ql)),Jl=n(95),Wl=n.n(Jl),Gl=n(96),Yl=n.n(Gl),$l=Xc()("calypso:url-search"),Ql={getInitialState:function(){return{searchOpen:!1}},UNSAFE_componentWillReceiveProps:function(e){e.search||this.setState({searchOpen:!1})},doSearch:function(e){var t,n,r,i;(this.setState({searchOpen:!1!==e}),this.onSearch)?this.onSearch(e):(this.buildUrl&&"function"==typeof this.buildUrl?t=this.buildUrl(window.location.href,e):(n=window.location.href,r=e,i=Yl.a.parse(n,!0),r?i.query.s=r:delete i.query.s,i=Object(kt.pick)(i,"pathname","hash","query"),t=Yl.a.format(i).replace(/\%20/g,"+")),$l("search posts for:",e),this.props.search&&e?($l("replacing URL: "+t),Wl.a.replace(t)):($l("setting URL: "+t),Wl()(t)))},getSearchOpen:function(){return!1!==this.state.searchOpen||this.props.search}},Xl=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isFetchingPluginsData||this.props.fetchPluginsData()}},{key:"render",value:function(){return null}}]),t}(o.a.Component),Zl=ce((function(e){return{isFetchingPluginsData:Ga(e)}}),(function(e){return{fetchPluginsData:function(){return e(Qa())}}}))(Xl),eu=ml()({displayName:"NavigationSettings",mixins:[Ql],UNSAFE_componentWillMount:function(){this.onRouteChange(this.props.location),this.props.history.listen(this.onRouteChange)},onRouteChange:function(e){var t=(e.search||"").substr(1).split("&").filter((function(e){return 0===e.indexOf("term=")})),n="";t.length>0&&(n=t[0].split("=")[1]),this.props.searchForTerm(decodeURIComponent(n))},maybeShowSearch:function(){if(this.props.userCanManageModules)return o.a.createElement(Vl,{onClick:this.handleClickForTracking("search"),pinned:!0,fitsContainer:!0,placeholder:Ws("Search for a Jetpack feature."),delaySearch:!0,delayTimeout:500,onSearch:this.doSearch,isOpen:!!this.props.searchTerm,initialValue:this.props.searchTerm})},trackNavClick:function(e){al.tracks.recordJetpackClick({target:"nav_item",path:e})},buildUrl:function(e,t){var n=e.split("#")[1].split("?");return this.props.searchForTerm(t),"#"+n[0]+(t?"?term="+t:"")},handleClickForTracking:function(e){var t=this;return function(){return t.trackNavClick(e)}},render:function(){var e,t;return this.props.userCanManageModules?e=o.a.createElement(Dl,{selectedText:this.props.routeName},this.props.hasAnySecurityFeature&&o.a.createElement(Ul,{path:"#security",onClick:this.handleClickForTracking("security"),selected:"/security"===this.props.location.pathname||"/settings"===this.props.location.pathname},Ws("Security",{context:"Navigation item."})),this.props.hasAnyPerformanceFeature&&o.a.createElement(Ul,{path:"#performance",onClick:this.handleClickForTracking("performance"),selected:"/performance"===this.props.location.pathname},Ws("Performance",{context:"Navigation item."})),this.props.hasAnyOfTheseModules(["masterbar","markdown","custom-content-types","post-by-email","infinite-scroll","copy-post"])&&o.a.createElement(Ul,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname},Ws("Writing",{context:"Navigation item."})),this.props.hasAnyOfTheseModules(["publicize","sharedaddy","likes"])&&o.a.createElement(Ul,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.location.pathname},Ws("Sharing",{context:"Navigation item."})),this.props.hasAnyOfTheseModules(["comments","gravatar-hovercards","markdown","subscriptions"])&&o.a.createElement(Ul,{path:"#discussion",onClick:this.handleClickForTracking("discussion"),selected:"/discussion"===this.props.location.pathname},Ws("Discussion",{context:"Navigation item."})),this.props.hasAnyOfTheseModules(["seo-tools","wordads","stats","related-posts","verification-tools","sitemaps","google-analytics"])&&o.a.createElement(Ul,{path:"#traffic",onClick:this.handleClickForTracking("traffic"),selected:"/traffic"===this.props.location.pathname},Ws("Traffic",{context:"Navigation item."}))):this.props.isSubscriber?e=!1:(t=this.props.isModuleActivated("publicize")&&this.props.userCanPublish?this.props.hasAnyOfTheseModules(["publicize"])&&o.a.createElement(Ul,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.location.pathname},Ws("Sharing",{context:"Navigation item."})):"",e=o.a.createElement(Dl,{selectedText:this.props.routeName},this.props.hasAnyOfTheseModules(["post-by-email"])&&o.a.createElement(Ul,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname||"/settings"===this.props.location.pathname},Ws("Writing",{context:"Navigation item."})),t)),o.a.createElement("div",{id:"jp-navigation",className:"dops-navigation"},o.a.createElement(Zl,null),o.a.createElement(Hl,{selectedText:this.props.routeName},e,this.maybeShowSearch()))}});eu.propTypes={userCanManageModules:u.a.bool.isRequired,isSubscriber:u.a.bool.isRequired,userCanPublish:u.a.bool.isRequired,isLinked:u.a.bool.isRequired,isSiteConnected:u.a.bool.isRequired,isModuleActivated:u.a.func.isRequired,searchHasFocus:u.a.bool.isRequired,location:u.a.object.isRequired},eu.defaultProps={userCanManageModules:!1,isSubscriber:!1,userCanPublish:!1,isLinked:!1,isSiteConnected:!1,isModuleActivated:kt.noop,searchHasFocus:!1};var tu=ce((function(e){return{hasAnyOfTheseModules:function(t){return rs(e,t)},hasAnyPerformanceFeature:is(e),hasAnySecurityFeature:as(e),userCanManageModules:Xi(e),isSubscriber:$i(e),userCanPublish:Qi(e),isLinked:so(e),isSiteConnected:Zs(e),isModuleActivated:function(t){return ss(e,t)},moduleList:ts(e),isPluginActive:function(t){return Ya(e,t)},searchTerm:Io(e)}}),(function(e){return{searchForTerm:function(t){return e(function(e){return function(t){t({type:Ur,term:e})}}(t))}}}))(ut(eu)),nu=(n(212),function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"_renderWithTitle",(function(){var e="dops-card-section-orient-"+(n.props.vertical?"vertical":"horizontal");return o.a.createElement("div",{className:e},o.a.createElement("h4",{ref:"label",className:"dops-card-section-label"},n.props.title),o.a.createElement("div",{ref:"content",className:"dops-card-section-content"},n.props.children))})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("div",{className:Gc()("dops-card-section",this.props.className),style:this.props.style},this.props.title?this._renderWithTitle():this.props.children)}}]),t}(o.a.Component));Ka()(nu,"propTypes",{title:u.a.any,vertical:u.a.any,style:u.a.object,className:u.a.string,device:u.a.oneOf(["desktop","tablet","phone"])}),Ka()(nu,"defaultProps",{vertical:null});var ru=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"dops-card-footer"},this.props.children)}}]),t}(o.a.Component),iu=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"_renderIcon",(function(){return o.a.createElement("span",{className:"dops-card-icon",style:{color:n.props.iconColor}},n.props.icon&&o.a.createElement(Fl,{icon:n.props.icon,style:{backgroundColor:n.props.iconColor}}),n.props.iconLabel)})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e,t,n=Gc()("dops-card",this.props.className,{"is-card-link":!!this.props.href,"is-compact":this.props.compact}),r=["compact","tagName","meta","iconColor"];return this.props.href?e=o.a.createElement(Fl,{className:"dops-card__link-indicator",icon:this.props.target?"external":"chevron-right"}):r.push("href","target"),this.props.title&&(t=o.a.createElement("h2",{className:"dops-card-title"},this.props.title,this.props.meta&&o.a.createElement("span",{className:"dops-card-meta"},this.props.meta),(this.props.icon||this.props.iconLabel)&&this._renderIcon())),o.a.createElement(this.props.href?"a":this.props.tagName,Object(kt.assign)(Object(kt.omit)(this.props,r),{className:n}),e,t,this.props.children)}}]),t}(o.a.Component);Ka()(iu,"propTypes",{meta:u.a.any,icon:u.a.string,iconLabel:u.a.any,iconColor:u.a.string,style:u.a.object,className:u.a.string,href:u.a.string,onClick:u.a.func,title:u.a.string,tagName:u.a.string,target:u.a.string,compact:u.a.bool,children:u.a.node}),Ka()(iu,"defaultProps",{iconColor:"#787878",className:"",tagName:"div",onClick:function(){}}),iu.Section=nu,iu.Footer=ru;var au=iu,su=function(){return{type:nr}},ou=function(){return function(e){return e({type:Jn}),zi.fetchSettings().then((function(t){return e({type:Wn,settings:t}),t})).catch((function(t){e({type:Gn,error:t})}))}},cu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=bi()({progress:Ws("Updating settings…"),success:Ws("Updated settings."),error:function(e){return Ws("Error updating settings. %(error)s",{args:{error:e.message||e.code||e.name||e}})}},t);"object"==typeof e&&Object(kt.some)(["masterbar","jetpack_testimonial","jetpack_portfolio"],(function(t){return t in e}))&&(r.success=Ws("Updated settings. Refreshing page…")),n(ls("module-setting-update")),n(ls("module-setting-update-success"));var i=["dismiss_dash_app_card","dismiss_empty_stats_card"];return"object"!=typeof e||Object(kt.some)(i,(function(t){return t in e}))||n(us("is-info",r.progress,{id:"module-setting-update"})),n({type:Xn,updatedOptions:e}),zi.updateSettings(e).then((function(t){n({type:er,updatedOptions:lu(t,e),success:t}),Gs(e),Ys(e),n(ls("module-setting-update")),n(ls("module-setting-update-success")),"object"!=typeof e||Object(kt.some)(i,(function(t){return t in e}))||n(us("is-success",r.success,{id:"module-setting-update-success",duration:2e3}))})).catch((function(t){n({type:Zn,success:!1,error:t,updatedOptions:e}),n(ls("module-setting-update")),n(us("is-error",r.error(t),{id:"module-setting-update"}))}))}};function lu(e,t){var n=t;return"regenerate"===Object(kt.get)(t,"post_by_email_address")&&(n={post_by_email_address:e.post_by_email_address}),n}var uu=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isFetchingSiteData||this.props.isDevMode||!Object(kt.isEmpty)(this.props.sitePlan)||(this.props.fetchSiteData(),this.props.fetchSiteFeatures(),this.props.fetchAvailablePlans(),this.props.fetchSitePurchases())}},{key:"render",value:function(){return null}}]),t}(s.Component);Ka()(uu,"propTypes",{isFetchingSiteData:u.a.bool,isDevMode:u.a.bool,sitePlan:u.a.object}),Ka()(uu,"defaultProps",{isFetchingSiteData:!1,isDevMode:!1,sitePlan:{}});var pu=ce((function(e){return{isFetchingSiteData:lc(e),isDevMode:oo(e),sitePlan:hc(e)}}),(function(e){return{fetchSiteData:function(){return e((function(e){return e({type:rr}),zi.fetchSiteData().then((function(t){return e({type:ir,siteData:t}),t})).catch((function(t){e({type:ar,error:t})}))}))},fetchSiteFeatures:function(){return e((function(e){return e({type:lr}),zi.fetchSiteFeatures().then((function(t){return e({type:ur,siteFeatures:t}),t})).catch((function(t){e({type:pr,error:t})}))}))},fetchAvailablePlans:function(){return e((function(e){return e({type:dr}),zi.getPlans().then((function(t){return e({type:hr,plans:t}),t})).catch((function(t){e({type:fr,error:t})}))}))},fetchSitePurchases:function(){return e((function(e){return e({type:mr}),zi.fetchSitePurchases().then((function(t){return e({type:gr,purchases:t}),t})).catch((function(t){e({type:vr,error:t})}))}))}}}))(uu),du=(n(213),function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"focus",(function(){n.refs.textField.focus()})),Ka()(Ls()(n),"selectOnFocus",(function(e){e.target.select()})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.selectOnFocus,r=Gc()(t,{"dops-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid}),i=Object(kt.omit)(this.props,"selectOnFocus","isError","isValid");return o.a.createElement("input",ll()({},i,{ref:"textField",className:r,onClick:n?this.selectOnFocus:null}))}}]),t}(o.a.Component));function hu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};if(0===e.search("https://")){var r=new URL(e);e="https://".concat(r.host).concat(r.pathname),n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);var i=["site","path","query","anchor"];Object.keys(t).map((function(e){i.includes(e)&&(n[e]=encodeURIComponent(t[e]))}));var a=Object.keys(n).map((function(e){return e+"="+n[e]})).join("&");return"https://jetpack.com/redirect/?"+a}Ka()(du,"displayName","TextInput"),Ka()(du,"defaultProps",{isError:!1,isValid:!1,selectOnFocus:!1,type:"text"});var fu=function(e){return o.a.createElement("fieldset",ll()({},Object(kt.omit)(e,"className"),{className:Gc()(e.className,"jp-form-fieldset")}),e.children)},mu=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.htmlFor,r=Jc()(e,["className","htmlFor"]);return o.a.createElement("label",ll()({},r,{htmlFor:n,className:Gc()(t,"jp-form-label")}),this.props.children)}}]),t}(o.a.Component);Ka()(mu,"displayName","FormLabel");var gu=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("legend",ll()({},Object(kt.omit)(this.props,"className"),{className:Gc()(this.props.className,"jp-form-legend")}),this.props.children)}}]),t}(o.a.Component);Ka()(gu,"displayName","FormLegend");var vu=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=Object(kt.omit)(this.props,["className","type"]);return o.a.createElement("input",ll()({},e,{type:"checkbox",className:Gc()(this.props.className,"jp-form-checkbox")}))}}]),t}(o.a.Component);Ka()(vu,"displayName","FormInputCheckbox");var bu=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"focus",(function(){n.refs.textField.focus()})),Ka()(Ls()(n),"selectOnFocus",(function(e){e.target.select()})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.selectOnFocus,r=Gc()(t,{"jp-form-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid}),i={};for(var a in this.props)["isError","isValid","selectOnFocus"].includes(a)||(i[a]=this.props[a]);return o.a.createElement("input",ll()({},i,{ref:"textField",className:r,onClick:n?this.selectOnFocus:null}))}}]),t}(o.a.Component);Ka()(bu,"displayName","FormTextInput"),Ka()(bu,"defaultProps",{isError:!1,isValid:!1,selectOnFocus:!1,type:"text"});var yu=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("textarea",ll()({},Object(kt.omit)(this.props,"className"),{className:Gc()(this.props.className,"jp-form-textarea")}),this.props.children)}}]),t}(o.a.Component);Ka()(yu,"displayName","FormTextarea");var wu=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=Object(kt.omit)(this.props,["className","type"]);return o.a.createElement("input",ll()({},e,{type:"radio",className:Gc()(this.props.className,"jp-form-radio")}))}}]),t}(o.a.Component);Ka()(wu,"displayName","FormRadio");var _u=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"getDefaultButtonAction",(function(){return n.props.isSubmitting?Ws("Saving…"):Ws("Save Settings")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=Gc()({"jp-form-button":!0});return o.a.createElement(Yc,ll()({},Object(kt.omit)(this.props,"className"),{primary:this.props.isPrimary,className:Gc()(this.props.className,e)}),Object(kt.isEmpty)(this.props.children)?this.getDefaultButtonAction():this.props.children)}}]),t}(o.a.Component);Ka()(_u,"displayName","FormsButton"),Ka()(_u,"defaultProps",{isSubmitting:!1,isPrimary:!0,type:"submit"});var ku=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"handleOnSelect",(function(e){n.props.onOptionChange({target:{type:"select",name:n.props.name,value:e.value}})})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=[];return Object(kt.forOwn)(this.props.validValues,(function(t,n){e.push({label:t,value:n})})),o.a.createElement(Pl,{options:e,onSelect:this.handleOnSelect,disabled:this.props.disabled,initialSelected:this.props.value})}}]),t}(o.a.Component),Eu=n(164),Cu=n.n(Eu),Su=n(165),Tu=n.n(Su),Au=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"renderChildren",(function(){var e;e=n.props&&(Object.keys(n.props).length>1||!n.props.children)?o.a.createElement("div",n.props,n.props.children):n.props.children,n.context.store&&(e=o.a.createElement(h,{store:n.context.store},e)),a.a.render(e,n.container)})),n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()}},{key:"componentDidUpdate",value:function(){this.renderChildren()}},{key:"componentWillUnmount",value:function(){this.container&&(a.a.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)}},{key:"render",value:function(){return null}}]),t}(o.a.Component);Ka()(Au,"displayName","RootChild"),Ka()(Au,"propTypes",{children:u.a.node}),Ka()(Au,"contextTypes",{store:u.a.object});var xu=n(52),Mu=n.n(xu),ju=Xc()("calypso:popover:util");function Nu(){var e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,ju("viewport: %o",e),e}var Ou={top:"bottom",bottom:"top",left:"right",right:"left"},Pu={top:"right",left:"top",bottom:"left",right:"bottom"},Iu=Nu();function Du(){Iu=Nu()}var Uu=!1,Ru=function(e,t,n){var r=Mu()(n),i=t.clientHeight,a=t.clientWidth,s={top:r.top-i,bottom:Iu.height-r.bottom-i,left:r.left-a,right:Iu.width-r.right-a},o=e.split(/\s+/),c=Vs()(o,1)[0],l=Vs()(o,2)[1],u=function(e,t){for(var n,r=[e,Ou[e],Pu[e],Ou[Pu[e]]],i=-1/0,a=0,s=r.length;a<s;a++){var o=r[a],c=t[o];if(c>0)return o;c>i&&(i=c,n=e)}return n}(c,s);return l!==u&&l!==Ou[u]||(l=null),function(e,t,n,r,i,a){for(var s,o=t?[e+" "+t,e,e+" "+Ou[t]]:[e,e+" "+Pu[e],e+" "+Ou[Pu[e]]],c=0,l=i*a,u=0,p=o.length;u<p;u++){var d=o[u],h=zu(d,n,r),f=h.left+i,m=h.top+a,g=Math.min(h.top<Iu.top?m-Iu.top:Iu.bottom-h.top,a),v=Math.min(h.left<Iu.left?f-Iu.left:Iu.right-h.left,i)*g;if(v===l)return d;v>c&&(c=v,s=d)}return s}(u,l,t,n,a,i)||e};function zu(e,t,n){var r=Mu()(t);if(!r)throw new Error("could not get bounding client rect of Tip element");var i=r.width,a=r.height,s=Mu()(n);if(!s)throw new Error("could not get bounding client rect of `target`");var o,c,l,u,p,d,h,f,m=s.width,g=s.height,v=(o=s,c=document,l=c.body||c.getElementsByTagName("body")[0],u=c.documentElement||l.parentNode,p=u.clientTop||l.clientTop||0,d=u.clientLeft||l.clientLeft||0,h=window.pageYOffset||u.scrollTop,f=window.pageXOffset||u.scrollLeft,{top:o.top+h-p,left:o.left+f-d});if(!v)throw new Error("could not determine page offset of `target`");var b={};switch(e){case"top":b={top:v.top-a,left:v.left+m/2-i/2};break;case"bottom":b={top:v.top+g,left:v.left+m/2-i/2};break;case"right":b={top:v.top+g/2-a/2,left:v.left+m};break;case"left":b={top:v.top+g/2-a/2,left:v.left-i};break;case"top left":b={top:v.top-a,left:v.left+m/2-i+15};break;case"top right":b={top:v.top-a,left:v.left+m/2-15};break;case"bottom left":b={top:v.top+g,left:v.left+m/2-i+15};break;case"bottom right":b={top:v.top+g,left:v.left+m/2-15};break;case"left top":b={top:v.top+g/2-a,left:v.left-i};break;case"left bottom":b={top:v.top+g/2,left:v.left-i};break;case"right top":b={top:v.top+g/2-a,left:v.left+m};break;case"right bottom":b={top:v.top+g/2,left:v.left+m};break;default:throw new Error('invalid position "'.concat(e,'"'))}return b}var Fu=function(e){try{return e instanceof HTMLElement}catch(t){return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}},Lu=(n(336),Xc()("calypso:popover")),Bu=new Set,Vu=function(e){function t(e){var n;return Ei()(this,t),(n=Si()(this,Ai()(t).call(this,e))).setPopoverId(e.id),n.setDOMBehavior=n.setDOMBehavior.bind(Ls()(n)),n.setPosition=n.setPosition.bind(Ls()(n)),n.onClickout=n.onClickout.bind(Ls()(n)),n.onKeydown=n.onKeydown.bind(Ls()(n)),n.onWindowChange=n.onWindowChange.bind(Ls()(n)),n.state={show:e.isVisible,left:-99999,top:-99999,positionClass:n.getPositionClass(e.position)},n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.bindEscKeyListener(),this.bindDebouncedReposition(),function(){if(Uu)return ju("window events already bound");Uu=!0,ju("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",Du,!0),window.addEventListener("scroll",Du,!0)}()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){if(Fu(e.context)?this.domContext=e.context:this.domContext=a.a.findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props.isVisible;return n!==e.isVisible&&(n?this.show():this.hide()),this.domContainer&&this.domContext&&n&&n!==e.isVisible?(this.debug("Update position after render completes"),void setTimeout((function(){return t.setPosition()}),0)):null}},{key:"componentWillUnmount",value:function(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),function(){if(!Uu)return ju("window events are not bound");Uu=!1,ju("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",Du,!0),window.removeEventListener("scroll",Du,!0)}(),Bu.delete(this.id),Lu("current popover instances: ",Bu.size)}},{key:"bindEscKeyListener",value:function(){return this.props.closeOnEsc?this.escEventHandlerAdded?null:(this.debug("adding escKey listener ..."),this.escEventHandlerAdded=!0,void document.addEventListener("keydown",this.onKeydown,!0)):null}},{key:"unbindEscKeyListener",value:function(){return this.props.closeOnEsc&&this.escEventHandlerAdded?(this.debug("unbinding `escKey` listener ..."),void document.removeEventListener("keydown",this.onKeydown,!0)):null}},{key:"onKeydown",value:function(e){if(27!==e.keyCode)return null;this.close(!0)}},{key:"bindClickoutHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=Cu()(e,this.onClickout))):(this.debug("no element to bind clickout side "),null)}},{key:"unbindClickoutHandler",value:function(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}},{key:"onClickout",value:function(e){var t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){var n=a.a.findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}},{key:"bindDebouncedReposition",value:function(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}},{key:"unbindDebouncedReposition",value:function(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}},{key:"onWindowChange",value:function(){this.willReposition=window.requestAnimationFrame(this.setPosition)}},{key:"setDOMBehavior",value:function(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,Fu(this.props.context)?this.domContext=this.props.context:this.domContext=a.a.findDOMNode(this.props.context),this.domContainer.focus(),this.setPosition()}},{key:"getPositionClass",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position;return"is-".concat(e.replace(/\s+/g,"-"))}},{key:"computePosition",value:function(){if(!this.props.isVisible)return null;var e=this.domContainer,t=this.domContext,n=this.props.position;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;var r=n;this.debug("position: %o",n),this.props.autoPosition&&(r=Ru(n,e,t),this.debug("suggested position: %o",r));var i,a,s,o=Object(kt.assign)({},(i=zu(r,e,t),a=e,s=Mu()(a).width,i.left=Math.max(0,Math.min(i.left,Iu.width-s)),i),{positionClass:this.getPositionClass(r)});return this.debug("updating reposition: ",o),o}},{key:"debug",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Lu.apply(void 0,["[%s] ".concat(e),this.id].concat(n))}},{key:"setPopoverId",value:function(e){this.id=e||"pop__".concat(Tu()(16)),Bu.add(this.id),this.debug("creating ..."),Lu("current popover instances: ",Bu.size)}},{key:"setPosition",value:function(){var e=this.computePosition();if(!e)return null;this.willReposition=null,this.setState(e)}},{key:"getStylePosition",value:function(){var e=this.state;return{left:e.left,top:e.top}}},{key:"show",value:function(){var e=this;if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o","".concat(this.props.showDelay,"ms")),this.clearShowTimer(),this._openDelayTimer=setTimeout((function(){e.setState({show:!0})}),this.props.showDelay)}},{key:"hide",value:function(){this.unbindClickoutHandler(),this.setState({show:!1}),this.clearShowTimer()}},{key:"clearShowTimer",value:function(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.domContext.focus(),this.props.onClose(e)}},{key:"render",value:function(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;var e=Gc()("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),o.a.createElement(Au,{className:this.props.rootClassName},o.a.createElement("div",{style:this.getStylePosition(),className:e,ref:this.setDOMBehavior},o.a.createElement("div",{className:"dops-popover__arrow"}),o.a.createElement("div",{className:"dops-popover__inner"},this.props.children)))}}]),t}(s.Component);Ka()(Vu,"propTypes",{autoPosition:u.a.bool,className:u.a.string,closeOnEsc:u.a.bool,id:u.a.string,ignoreContext:u.a.shape({getDOMNode:u.a.function}),position:u.a.string,rootClassName:u.a.string,showDelay:u.a.number,onClose:u.a.func.isRequired,onShow:u.a.func}),Ka()(Vu,"defaultProps",{autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:function(){}});var Hu=Vu,qu=(n(337),function(e){function t(){var e;return Ei()(this,t),e=Si()(this,Ai()(t).apply(this,arguments)),Ka()(Ls()(e),"state",{showPopover:!1}),Ka()(Ls()(e),"togglePopover",(function(){e.setState({showPopover:!e.state.showPopover})})),Ka()(Ls()(e),"_onPopoverClose",(function(){e.setState({showPopover:!1})})),Ka()(Ls()(e),"renderPopover",(function(){return o.a.createElement(Hu,{isVisible:e.state.showPopover,context:e.refs&&e.refs.toggleSwitch,position:e.props.disabledPopoverPosition,onClose:e._onPopoverClose,className:"dops-info-popover__tooltip"},e.props.disabledReason)})),e.onKeyDown=e.onKeyDown.bind(Ls()(e)),e.onClick=e.onClick.bind(Ls()(e)),e.onLabelClick=e.onLabelClick.bind(Ls()(e)),e}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.id=this.constructor.idNum++}},{key:"onKeyDown",value:function(e){this.props.disabled||("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.props.onChange()),this.props.onKeyDown(e))}},{key:"onClick",value:function(){this.props.disabled?this.props.disabledReason&&this.togglePopover():this.props.onChange()}},{key:"onLabelClick",value:function(e){if(!this.props.disabled){var t=e.target.nodeName.toLowerCase();"a"!==t&&"input"!==t&&"select"!==t&&(e.preventDefault(),this.props.onChange())}}},{key:"render",value:function(){var e=this.props.id||"toggle-"+this.id,t=Gc()("form-toggle",this.props.className,{"is-toggling":this.props.toggling});return o.a.createElement("span",null,o.a.createElement("input",{className:t,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),o.a.createElement("label",{className:"form-toggle__label",htmlFor:e},o.a.createElement("span",{className:"form-toggle__switch",disabled:this.props.disabled,id:e,onClick:this.onClick,onKeyDown:this.onKeyDown,role:"checkbox","aria-checked":this.props.checked,"aria-label":this.props["aria-label"],tabIndex:this.props.disabled?-1:0,ref:"toggleSwitch"}),o.a.createElement("span",{className:"form-toggle__label-content",onClick:this.onLabelClick},this.props.children)),this.renderPopover())}}]),t}(s.Component));Ka()(qu,"propTypes",{onChange:u.a.func,onKeyDown:u.a.func,checked:u.a.bool,disabled:u.a.bool,id:u.a.string,className:u.a.string,toggling:u.a.bool,"aria-label":u.a.string,children:u.a.node,disabledReason:u.a.node}),Ka()(qu,"defaultProps",{checked:!1,disabled:!1,onKeyDown:function(){},onChange:function(){},disabledPopoverPosition:"bottom",disabledReason:""}),Ka()(qu,"idNum",0);var Ku=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement(qu,ll()({},Object(kt.omit)(this.props,"className"),{className:Gc()(this.props.className,"is-compact")}),this.props.children)}}]),t}(o.a.Component);Ka()(Ku,"displayName","CompactFormToggle");var Ju=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"toggleModule",(function(){return n.trackModuleToggle(n.props.slug,n.props.activated),n.props.toggleModule(n.props.slug,n.props.activated)})),Ka()(Ls()(n),"trackModuleToggle",(function(e,t){"stats"!==e&&al.tracks.recordEvent("jetpack_wpa_module_toggle",{module:e,toggled:t?"off":"on"})})),Ka()(Ls()(n),"isDisabledByOverride",(function(){var e=n.props.getModuleOverride(n.props.slug);return n.props.overrideCondition?n.props.overrideCondition===e:!!e})),Ka()(Ls()(n),"getDisabledReason",(function(){if(!n.isDisabledByOverride())return null;var e=n.props.getModuleOverride(n.props.slug),t={components:{link:o.a.createElement("a",{href:hu("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"underline"}})}};switch(e){case"active":return Ws("This feature has been enabled by a site administrator. {{link}}Learn more{{/link}}.",t);case"inactive":return Ws("This feature has been disabled by a site administrator. {{link}}Learn more{{/link}}.",t);default:return Ws("This feature is being managed by a site administrator. {{link}}Learn more{{/link}}.",t)}})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement(Ku,{checked:this.props.activated||this.props.isModuleActivated,toggling:this.props.toggling,className:this.props.className,disabled:this.props.disabled||this.isDisabledByOverride(),id:this.props.id,onChange:this.toggleModule,disabledReason:this.getDisabledReason()},this.props.children)}}]),t}(s.Component);Ka()(Ju,"displayName","ModuleToggle"),Ka()(Ju,"propTypes",{toggleModule:u.a.func,activated:u.a.bool,disabled:u.a.bool,className:u.a.string,compact:u.a.bool,id:u.a.string,overrideCondition:u.a.string}),Ka()(Ju,"defaultProps",{activated:!1,disabled:!1,overrideCondition:""});var Wu=ce((function(e){return{getModuleOverride:function(t){return cs(e,t)}}}))(Ju);function Gu(e){return ce((function(e,t){return{validValues:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof Object(kt.get)(t,["module","module"])&&(r=t.module.module),es(e,r,n)},getOptionCurrentValue:function(t,n){return function(e,t,n){return Object(kt.get)(e.jetpack.modules.items,[t,"options",n,"current_value"])}(e,t,n)},getSettingCurrentValue:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Fo(e,t,n)},getSiteRoles:function(){return function(e){return Object(kt.get)(e.jetpack.initialState.stats,"roles",{})}(e)},isUpdating:function(t){return Bo(e,t)},adminEmailAddress:Ki(e),currentIp:ma(e),siteAdminUrl:Wi(e),isCurrentUserLinked:so(e)}}),(function(e){return{updateOptions:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(cu(t,n))},regeneratePostByEmailAddress:function(){var t={progress:Ws("Updating Post by Email address…"),success:Ws("Regenerated Post by Email address."),error:function(e){return Ws("Error regenerating Post by Email address. %(error)s",{args:{error:e}})}};return e(cu({post_by_email_address:"regenerate"},t))},setUnsavedSettingsFlag:function(){return e({type:tr})},clearUnsavedSettingsFlag:function(){return e(su())},refreshSettings:function(){return e(ou())}}}))(e)}function Yu(e){return Gu(function(t){function n(){var e,t;Ei()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=Si()(this,(e=Ai()(n)).call.apply(e,[this].concat(i))),Ka()(Ls()(t),"state",{options:{}}),Ka()(Ls()(t),"onOptionChange",(function(e){var n,r=e.target.name;n="checkbox"===e.target.type&&void 0!==e.target.checked?e.target.checked:e.target.value,t.updateFormStateOptionValue(r,n)})),Ka()(Ls()(t),"updateFormStateOptionValue",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;"string"==typeof e&&(e=Ka()({},e,n));var r=bi()({},t.state.options,{},e);return t.setState({options:r}),!0})),Ka()(Ls()(t),"resetFormStateOption",(function(e){return t.setState({options:Object(kt.omit)(t.state.options,[e])}),!0})),Ka()(Ls()(t),"updateFormStateModuleOption",(function(e,n){var r,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(t.trackSettingsToggle(e,n,!t.getOptionValue(n)),t.getOptionValue(e))?a?t.props.updateOptions((r={},Ka()(r,e,!1),Ka()(r,n,!t.getOptionValue(n)),r)):t.props.updateOptions(Ka()({},n,!t.getOptionValue(n))):t.props.updateOptions((i={},Ka()(i,e,!0),Ka()(i,n,!0),i))})),Ka()(Ls()(t),"toggleModuleNow",(function(e){t.props.updateOptions(Ka()({},e,!t.getOptionValue(e)))})),Ka()(Ls()(t),"onSubmit",(function(e){e.preventDefault(),t.props.updateOptions(t.state.options).then((function(){var e={};Object(kt.each)(t.state.options,(function(t,n){n=n.replace(/\-/,"_"),e[n]=t})),t.trackFormSubmission(e),t.setState({options:{}})})).then((function(){t.props.refreshSettings(),t.props.clearUnsavedSettingsFlag()}))})),Ka()(Ls()(t),"getOptionValue",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(kt.get)(t.state.options,e,t.props.getSettingCurrentValue(e,n))})),Ka()(Ls()(t),"shouldSaveButtonBeDisabled",(function(){return t.isSavingAnyOption()||!t.isDirty()})),Ka()(Ls()(t),"isDirty",(function(){return!!Object.keys(t.state.options).length})),Ka()(Ls()(t),"isSavingAnyOption",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.props.isUpdating(e)})),Ka()(Ls()(t),"trackFormSubmission",(function(e){al.tracks.recordEvent("jetpack_wpa_settings_form_submit",e)})),Ka()(Ls()(t),"trackSettingsToggle",(function(e,t,n){al.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:t,toggled:n?"on":"off"})})),t}return Mi()(n,t),zs()(n,[{key:"componentDidUpdate",value:function(){this.isDirty()&&this.props.setUnsavedSettingsFlag()}},{key:"render",value:function(){return o.a.createElement(e,ll()({getOptionValue:this.getOptionValue,onSubmit:this.onSubmit,onOptionChange:this.onOptionChange,updateFormStateOptionValue:this.updateFormStateOptionValue,toggleModuleNow:this.toggleModuleNow,updateFormStateModuleOption:this.updateFormStateModuleOption,shouldSaveButtonBeDisabled:this.shouldSaveButtonBeDisabled,isSavingAnyOption:this.isSavingAnyOption,isDirty:this.isDirty,resetFormStateOption:this.resetFormStateOption},this.props))}}]),n}(o.a.Component))}var $u=function(e){return function(t){return t({type:Rn}),zi.fetchStatsData(e).then((function(e){t({type:Fn,statsData:e})})).catch((function(e){t({type:zn,error:e})}))}},Qu=function(){return function(e){return e({type:bn}),zi.getProtectCount().then((function(t){e({type:wn,protectCount:t})})).catch((function(t){e({type:yn,error:t})}))}},Xu=function(){return function(e){return e({type:Cn}),zi.getVaultPressData().then((function(t){e({type:Tn,vaultPressData:t})})).catch((function(t){e({type:Sn,error:t})}))}},Zu=function(){return function(e){return e({type:An}),zi.getAkismetData().then((function(t){e({type:Mn,akismetData:t})})).catch((function(t){e({type:xn,error:t})}))}},ep=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t){return t({type:jn}),(""===e?zi.checkAkismetKey().then((function(e){t({type:On,akismet:e})})):zi.checkAkismetKeyTyped(e).then((function(e){t({type:On,akismet:e})}))).catch((function(e){t({type:Nn,error:e})}))}},tp=function(){return function(e){return e({type:Pn}),zi.getPluginUpdates().then((function(t){e({type:Dn,pluginUpdates:t})})).catch((function(t){e({type:In,error:t})}))}},np=(n(338),function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=Gc()(this.props.className,"dops-section-header");return o.a.createElement(au,{compact:!0,className:e},o.a.createElement("div",{className:"dops-section-header__label"},o.a.createElement("span",{className:"dops-section-header__label-text"},this.props.label)),o.a.createElement("div",{className:"dops-section-header__actions"},this.props.children))}}]),t}(o.a.Component));Ka()(np,"displayName","SectionHeader"),Ka()(np,"propTypes",{label:u.a.string}),Ka()(np,"defaultProps",{label:""});var rp=function(e){return function(t){13!==t.which&&32!==t.which||e(t)}},ip=(n(156),function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"dismissTimeout",null),Ka()(Ls()(n),"getIcon",(function(){var e;switch(n.props.status){case"is-info":e="info";break;case"is-success":e="checkmark";break;case"is-error":case"is-warning":e="notice";break;default:e="info"}return e})),n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}},{key:"componentWillUnmount",value:function(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.icon,i=e.isCompact,a=e.onDismissClick,s=e.showDismiss,c=void 0===s?!i:s,l=e.status,u=e.text,p=e.dismissText,d=Gc()("dops-notice",l,n,{"is-compact":i,"is-dismissable":c});return o.a.createElement("div",{className:d},o.a.createElement("span",{className:"dops-notice__icon-wrapper"},o.a.createElement(Fl,{className:"dops-notice__icon",icon:r||this.getIcon(),size:24})),o.a.createElement("span",{className:"dops-notice__content"},o.a.createElement("span",{className:"dops-notice__text"},u||t)),u?t:null,c&&o.a.createElement("span",{role:"button",onKeyDown:rp(a),tabIndex:"0",className:"dops-notice__dismiss",onClick:a},o.a.createElement(Fl,{icon:"cross",size:24}),o.a.createElement("span",{className:"dops-notice__screen-reader-text screen-reader-text"},p)))}}]),t}(o.a.Component));Ka()(ip,"displayName","SimpleNotice"),Ka()(ip,"defaultProps",{duration:0,status:null,showDismiss:!0,className:"",onDismissClick:kt.noop}),Ka()(ip,"propTypes",{status:u.a.string,showDismiss:u.a.bool,isCompact:u.a.bool,duration:u.a.number,text:u.a.oneOfType([u.a.oneOfType([u.a.string,u.a.node]),u.a.arrayOf(u.a.oneOfType([u.a.string,u.a.node]))]),icon:u.a.string,className:u.a.string});var ap=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){!this.props.fetchingVaultPressData&&this.props.isModuleActivated("vaultpress")&&this.props.fetchVaultPressData()}},{key:"render",value:function(){return null}}]),t}(s.Component);ap.defaultProps={fetchVaultPressData:function(){}};var sp=ce((function(e){return{fetchVaultPressData:Xu(),fetchingVaultPressData:za(e),isModuleActivated:function(t){return ss(e,t)}}}),(function(e){return P({fetchVaultPressData:Xu},e)}))(ap),op=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isCheckingAkismetKey||this.props.checkAkismetKey()}},{key:"render",value:function(){return null}}]),t}(s.Component);op.defaultProps={checkAkismetKey:function(){}};var cp=ce((function(e){return{checkAkismetKey:ep(),isCheckingAkismetKey:Ia(e)}}),(function(e){return P({checkAkismetKey:ep},e)}))(op),lp=function(e,t){return function(){return function(e,t){return al.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t})}(e,t)}},up=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"getProActions",(function(e,t){var r="",i=!1,a=!1,s="";switch(e){case"threats":r="is-error",a=n.props.isCompact?Ws("Threats",{context:"A caption for a small button to fix security issues."}):Ws("See threats",{context:"A caption for a small button to fix security issues."}),s=hu("vaultpress-dashboard");break;case"free":case"personal":case"pro":return;case"secure":r="is-success",i=Ws("Secure",{context:"Short message informing user that the site is secure."});break;case"invalid_key":return;case"rewind_connected":var c=n.getRewindMessage();return o.a.createElement(ip,{showDismiss:!1,status:c.status,isCompact:!0},c.text);case"active":return o.a.createElement("span",{className:"jp-dash-item__active-label"},Ws("ACTIVE"))}return o.a.createElement(ip,{showDismiss:!1,status:r,isCompact:!0},i,a&&o.a.createElement("a",{className:"dops-notice__text-no-underline",onClick:lp(e,t),href:s},a))})),Ka()(Ls()(n),"getSetUpButton",(function(e){return o.a.createElement(Yc,{onClick:lp("set_up",e),compact:!0,primary:!0,href:hu("calypso-plugins-setup",{site:n.props.siteRawUrl,query:"only=".concat(e)})},Ws("Set up",{context:"Caption for a button to set up a feature."}))})),n}return Mi()(t,e),zs()(t,[{key:"getRewindMessage",value:function(){switch(this.props.rewindStatus.state){case"provisioning":return{status:"is-info",text:Ws("Setting up")};case"awaiting_credentials":return{status:"is-warning",text:Ws("Action needed")};case"active":return{status:"is-success",text:Ws("Connected")};default:return{status:"",text:""}}}},{key:"render",value:function(){var e=this,t=this.props.sitePlan,n=this.props.getVaultPressData(),r="";"scan"!==this.props.proFeature&&"backups"!==this.props.proFeature&&"vaultpress"!==this.props.proFeature||(r="vaultpress/vaultpress.php"),"akismet"===this.props.proFeature&&(r="akismet/akismet.php");var i=/jetpack_personal*/.test(t.product_slug),a=/jetpack_free*/.test(t.product_slug),s=/jetpack_premium*/.test(t.product_slug),c=Object(kt.get)(n,["data","features","backups"],!1),l=Object(kt.get)(n,["data","features","security"],!1),u=this.props.scanStatus;return o.a.createElement("div",null,o.a.createElement(Zl,null),o.a.createElement(cp,null),o.a.createElement(sp,null),!this.props.isDevMode&&function(p,d,h){switch(p){case"rewind":return e.getProActions("rewind_connected","rewind");case"backups":if(a&&!c&&e.props.isCompact)return e.getProActions("free","backups");break;case"scan":if(e.props.fetchingSiteData||e.props.isFetchingVaultPressData)return"";if("N/A"!==n)return!a&&!i||l?l?e.getProActions(0===e.props.getScanThreats()?"secure":"threats","scan"):e.getSetUpButton("scan"):e.props.isCompact?e.getProActions("free","scan"):i&&!c?e.getSetUpButton("backups"):"";if(u&&"unavailable"!==u.state)return Array.isArray(u.threats)&&u.threats.length>0?o.a.createElement(ip,{showDismiss:!1,status:"is-error",isCompact:!0},Ws("Threat","Threats",{count:u.threats.length})):u.credentials?0===u.credentials.length?o.a.createElement(ip,{showDismiss:!1,status:"is-warning",isCompact:!0},Ws("Action needed")):e.getProActions("secure","scan"):"";break;case"search":return a||i||s?e.getProActions("pro","search"):"";case"akismet":if(a&&(!d||!h))return e.props.isCompact?e.getProActions("free","anti-spam"):"";if(!e.props.isAkismetKeyValid&&!e.props.fetchingAkismetData&&d&&h&&!a)return e.getSetUpButton(p)}return t.product_slug&&r&&!a?d&&h?e.getProActions("active"):e.getSetUpButton(p):""}(this.props.proFeature,this.props.pluginActive(r),this.props.pluginInstalled(r)))}}]),t}(o.a.Component);Ka()(up,"propTypes",{isCompact:u.a.bool,proFeature:u.a.string,rewindStatus:u.a.object.isRequired}),Ka()(up,"defaultProps",{isCompact:!0,proFeature:""});var pp=ce((function(e){var t=hc(e);return{siteRawUrl:Ji(e),siteAdminUrl:Wi(e),getScanThreats:function(){return La(e)},getVaultPressData:function(){return Fa(e)},getAkismetData:function(){return Pa(e)},isFetchingVaultPressData:za(e),sitePlan:t,planClass:sc(Object(kt.get)(t,"product_slug","")),fetchingPluginsData:Ga(e),pluginActive:function(t){return Ya(e,t)},pluginInstalled:function(t){return $a(e,t)},isDevMode:oo(e),fetchingSiteData:lc(e),isAkismetKeyValid:Da(e),fetchingAkismetData:Oa(e),paidFeatureUpgradeUrl:Sa(e,"upgrade"),planProUpgradeUrl:Sa(e,"plans-business"),rewindStatus:xo(e),scanStatus:Oo(e)}}))(up),dp=(n(339),function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"getIconClassNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.plan,r=t.className,i=sc(n);return Gc()("dops-plan-icon",i,r,e)}},{key:"getPersonalIcon",value:function(){return o.a.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__personal"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 124 125"},o.a.createElement("circle",{className:"dops-plan-icon__personal-0",cx:"62",cy:"62.1",r:"62"}),o.a.createElement("path",{className:"dops-plan-icon__personal-1",d:"M64 106.1l4-9.8v-3.5H62v14.6C62.9 107.4 63.6 106.9 64 106.1z"}),o.a.createElement("path",{className:"dops-plan-icon__personal-2",d:"M56.2 92.8v3.5l4 9.8c0.3 0.8 1.1 1.3 1.9 1.3V92.8H56.2z"}),o.a.createElement("path",{className:"dops-plan-icon__personal-2",d:"M62 32.9h17.1V2.5C73.7 0.9 68 0.1 62 0.1V32.9z"}),o.a.createElement("path",{className:"dops-plan-icon__personal-3",d:"M62 32.9V0.1c0 0 0 0 0 0 -5.9 0-11.6 0.8-17 2.4v30.5H62z"}),o.a.createElement("polygon",{className:"dops-plan-icon__personal-4",points:"62 32.9 45 32.9 48.3 48.7 53.3 92.8 62 92.8 "}),o.a.createElement("polygon",{className:"dops-plan-icon__personal-5",points:"62 32.9 79.2 32.9 75.9 48.7 70.9 92.8 62 92.8 "}))}},{key:"getPremiumIcon",value:function(){return o.a.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__premium"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 62 61.5"},o.a.createElement("ellipse",{className:"dops-plan-icon__premium-0",cx:"31",cy:"30.8",rx:"31",ry:"30.8"}),o.a.createElement("path",{className:"dops-plan-icon__premium-1",d:"M27.8 46.3v1.9l2.2 5.4c0.2 0.5 0.5 0.7 1 0.7v-7.9L27.8 46.3z"}),o.a.createElement("path",{className:"dops-plan-icon__premium-2",d:"M32 53.6l2.2-5.4v-1.9H31v3.8 4.1C31.5 54.3 31.9 54 32 53.6z"}),o.a.createElement("path",{className:"dops-plan-icon__premium-3",d:"M21.6 18c0.2 2 4.8 28.3 4.8 28.3l4.6 0.1V18H21.6z"}),o.a.createElement("path",{className:"dops-plan-icon__premium-4",d:"M40.5 18H31v23.4 5l4.5-0.1C35.5 46.3 40.1 20.4 40.5 18z"}),o.a.createElement("path",{className:"dops-plan-icon__premium-5",d:"M31 18V0c-3.9 0-7.7 0.7-11.2 2.1 0.7 6 1.8 15.9 1.8 15.9H31z"}),o.a.createElement("path",{className:"dops-plan-icon__premium-6",d:"M31 18h9.5c0 0 1.1-9.9 1.8-15.9C38.8 0.7 35 0 31 0V18z"}))}},{key:"getBusinessIcon",value:function(){return o.a.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__business"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 124 124"},o.a.createElement("circle",{className:"dops-plan-icon__business-0",cx:"62",cy:"62",r:"62"}),o.a.createElement("path",{className:"dops-plan-icon__business-1",d:"M57.4 73.8c0-2.5 2-4.6 4.6-4.6V36.8h-9.6v12.1c-8 3.7-13.5 11.7-13.5 21.1 0 4.9 1.5 9.4 4.1 13.1l0 0c15.4 22.4 15.4 22.4 17 24.8h0.3V78.1C58.6 77.4 57.4 75.7 57.4 73.8L57.4 73.8z"}),o.a.createElement("path",{className:"dops-plan-icon__business-2",d:"M85.2 69.8c0-9.4-5.6-17.4-13.5-21.1v-12H62v32.5c2.5 0 4.6 2 4.6 4.6 0 1.9-1.2 3.5-2.9 4.2v29.8H64c1.6-2.4 1.6-2.4 17-24.8l0 0C83.6 79.2 85.2 74.7 85.2 69.8L85.2 69.8z"}),o.a.createElement("path",{className:"dops-plan-icon__business-3",d:"M48.6 32h-2.4c-3.2 0-5.8 2.6-5.8 5.8V38c0 3.2 2.6 5.8 5.8 5.8H62v-4.7V32 0c-7.2 0-14.1 1.2-20.6 3.5 1.1 5.5 2.5 11 4.1 16.5L48.6 32z"}),o.a.createElement("path",{className:"dops-plan-icon__business-4",d:"M62 39.1v4.7h15.8c3.2 0 5.8-2.6 5.8-5.8v-0.2c0-3.2-2.6-5.8-5.8-5.8h-2.4l3.1-12c1.6-5.5 3-11 4.1-16.5C76.1 1.2 69.2 0 62 0v32V39.1z"}))}},{key:"getSearchIcon",value:function(){return o.a.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__search"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 64 64"},o.a.createElement("circle",{className:"dops-plan-icon__search-0",cx:"32",cy:"32",r:"32",fill:"#2fb41f"}),o.a.createElement("path",{className:"dops-plan-icon__search-1",d:"M48 43.6L39.4 35c1.2-1.8 1.9-4 1.9-6.4 0-6.4-5.2-11.6-11.6-11.6S18 22.2 18 28.7s5.2 11.6 11.6 11.6c2.4 0 4.6-.7 6.4-1.9l8.6 8.6 3.4-3.4zM21.4 28.7c0-4.6 3.7-8.3 8.3-8.3s8.3 3.7 8.3 8.3-3.7 8.3-8.3 8.3-8.3-3.7-8.3-8.3z",fill:"#fff"}))}},{key:"getDefaultIcon",value:function(){return o.a.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__free"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 61.8 61.8"},o.a.createElement("circle",{className:"dops-plan-icon__free-0",cx:"30.9",cy:"30.9",r:"30.9"}),o.a.createElement("polygon",{className:"dops-plan-icon__free-1",points:"41.4 32.8 30.9 22.5 20.3 32.8 30.9 51.8 "}),o.a.createElement("path",{className:"dops-plan-icon__free-2",d:"M30.9 41.6L30.9 41.6c-2 0-3.7 1.6-3.7 3.6l3.7 6.5 3.7-6.5C34.5 43.2 32.9 41.6 30.9 41.6L30.9 41.6z"}),o.a.createElement("path",{className:"dops-plan-icon__free-3",d:"M25.6 27.7c0 2.9 2.3 5.2 5.2 5.2h0.1c2.9 0 5.2-2.3 5.2-5.2v-0.1V0.4c-1.7-0.3-3.5-0.5-5.3-0.5s-3.6 0.2-5.3 0.5v27.3H25.6z"}),o.a.createElement("path",{className:"dops-plan-icon__free-4",d:"M25.6 27.6V0.4c-1.8 0.3-3.6 0.8-5.3 1.4v31C23.2 32.8 25.6 30.5 25.6 27.6z"}),o.a.createElement("path",{className:"dops-plan-icon__free-2",d:"M41.4 32.8v-31c-1.7-0.6-3.5-1.1-5.3-1.4v27.2C36.1 30.5 38.5 32.8 41.4 32.8z"}))}},{key:"render",value:function(){switch(this.props.plan){case"personal-bundle":case"personal-bundle-2y":case"jetpack_personal":case"jetpack_personal_monthly":return this.getPersonalIcon();case"value_bundle":case"value_bundle-2y":case"jetpack_premium":case"jetpack_premium_monthly":return this.getPremiumIcon();case"business-bundle":case"business-bundle-2y":case"jetpack_business":case"jetpack_business_monthly":case"vip":return this.getBusinessIcon();case"jetpack_search":case"jetpack_search_monthly":return this.getSearchIcon();default:return this.getDefaultIcon()}}}]),t}(s.Component));dp.propTypes={classNames:u.a.string,plan:u.a.oneOf(["free_plan","value_bundle","value_bundle-2y","business-bundle","business-bundle-2y","jetpack_free","jetpack_business","jetpack_business_monthly","jetpack_premium","jetpack_premium_monthly","jetpack_personal","jetpack_personal_monthly","personal-bundle","personal-bundle-2y","vip"]).isRequired};n(340);var hp=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"handleClick",(function(){n.props.onClick();var e=n.props,t=e.eventFeature,r=e.path,i=e.currentVersion;if(t||r){var a=t?{feature:t}:{},s=r?{path:r}:{},o=bi()({target:"banner",type:"upgrade",current_version:i},a,{},s);al.tracks.recordJetpackClick(o)}})),n}return Mi()(t,e),zs()(t,[{key:"getHref",value:function(){var e=this.props,t=e.href,n=e.feature,r=e.siteSlug;return!t&&r?n?"/plans/".concat(r,"?feature=").concat(n):"/plans/".concat(r):t}},{key:"getIcon",value:function(){var e=this.props,t=e.icon,n=e.plan;return n&&!t?o.a.createElement("div",{className:"dops-banner__icon-plan"},o.a.createElement(dp,{plan:n})):o.a.createElement("div",{className:"dops-banner__icons"},o.a.createElement("div",{className:"dops-banner__icon"},o.a.createElement(Fl,{icon:t||"info-outline",size:18})),o.a.createElement("div",{className:"dops-banner__icon-circle"},o.a.createElement(Fl,{icon:t||"info-outline",size:18})))}},{key:"getContent",value:function(){var e=this.props,t=e.callToAction,n=e.description,r=e.list,i=e.title;return o.a.createElement("div",{className:"dops-banner__content"},o.a.createElement("div",{className:"dops-banner__info"},o.a.createElement("div",{className:"dops-banner__title"},i),n&&o.a.createElement("div",{className:"dops-banner__description"},n),Object(kt.size)(r)>0&&o.a.createElement("ul",{className:"dops-banner__list"},r.map((function(e,t){return o.a.createElement("li",{key:t},o.a.createElement(Fl,{icon:"checkmark",size:18}),e)})))),t&&o.a.createElement("div",{className:"dops-banner__action"},t&&o.a.createElement(Yc,{compact:!0,href:this.getHref(),onClick:this.handleClick,primary:!0},t)))}},{key:"render",value:function(){var e=this.props,t=e.callToAction,n=e.className,r=sc(e.plan),i=Gc()("dops-banner",n,{"has-call-to-action":t},{"is-upgrade-personal":"is-personal-plan"===r},{"is-upgrade-premium":"is-premium-plan"===r},{"is-upgrade-business":"is-business-plan"===r});return o.a.createElement(au,{className:i,href:t?null:this.getHref(),onClick:t?kt.noop:this.handleClick},this.getIcon(),this.getContent())}}]),t}(s.Component);Ka()(hp,"propTypes",{callToAction:u.a.string,className:u.a.string,currentVersion:u.a.string.isRequired,description:u.a.node,eventFeature:u.a.string,feature:u.a.string,href:u.a.string,icon:u.a.string,list:u.a.arrayOf(u.a.string),onClick:u.a.func,path:u.a.string,plan:u.a.string,siteSlug:u.a.string,title:u.a.string.isRequired}),Ka()(hp,"defaultProps",{onClick:kt.noop});var fp=ce((function(e){return{currentVersion:Hi(e)}}))(hp),mp=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return!(this.props.plan&&!this.props.userCanPurchasePlan)&&(this.props.arePromotionsActive?o.a.createElement(fp,this.props):null)}}]),t}(fp);Ka()(mp,"propTypes",{callToAction:u.a.string,className:u.a.string,description:u.a.node,eventFeature:u.a.string,feature:u.a.string,href:u.a.string,icon:u.a.string,list:u.a.arrayOf(u.a.string),onClick:u.a.func,path:u.a.string,plan:u.a.string,siteSlug:u.a.string,title:u.a.string.isRequired}),Ka()(mp,"defaultProps",{onClick:kt.noop,plan:""});var gp=ce((function(e){return{arePromotionsActive:va(e),userCanPurchasePlan:Xi(e)}}))(mp),vp=(n(341),function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){if(!this.props.moduleName)return null;var e={args:{moduleName:this.props.moduleName},components:{link:o.a.createElement("a",{href:hu("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer"})}},t=Gc()("module-overridden-banner",{"is-compact":this.props.compact});return o.a.createElement(gp,{className:t,title:this.props.moduleName,icon:"cog",description:Ws("%(moduleName)s has been disabled by a site administrator. {{link}}Learn more{{/link}}.",e)})}}]),t}(gp));Ka()(vp,"propTypes",{moduleName:u.a.string.isRequired});var bp=vp,yp=function(e){var t=function(e){return function(){return function(e){al.tracks.recordJetpackClick({target:"upgrade-banner",feature:e,type:"upgrade"})}(e)}},n=!!e.module&&e.getModule(e.module),r=e.vaultPressData,i=Object(kt.get)(r,["data","features","backups"],!1),a=Object(kt.get)(r,["data","features","security"],!1);if(!e.userCanManageModules&&!Object(kt.includes)(["post-by-email","publicize"],e.module))return o.a.createElement("span",null);var s=e.saveDisabled,c=!!e.feature&&e.feature,l=e.header?e.header:"";""===l&&n&&(l=n.name);var u=function(){switch(c){case"video-hosting-jetpack":return"inactive"===e.getModuleOverride("videopress");case"wordads-jetpack":return"inactive"===e.getModuleOverride("wordads");case"google-analytics-jetpack":return"inactive"===e.getModuleOverride("google-analytics");case"seo-tools-jetpack":return"inactive"===e.getModuleOverride("seo-tools");case"search-jetpack":return"inactive"===e.getModuleOverride("search");default:return!1}},p=function(){if(e.fetchingSiteData)return!0;var t=sc(e.sitePlan.product_slug);switch(c){case"security-scanning-jetpack":if("is-free-plan"===t&&!a)return!1;break;case"wordads-jetpack":if("is-premium-plan"!==t&&"is-business-plan"!==t&&-1===e.activeFeatures.indexOf("wordads-jetpack"))return!1;break;case"google-analytics-jetpack":if("is-business-plan"!==t&&"is-premium-plan"!==t)return!1;break;case"spam-akismet-plus":if((Object(kt.includes)(["is-free-plan"],t)||Object(kt.isEmpty)(t))&&!e.isAkismetKeyValid&&!e.isCheckingAkismetKey)return!1}return!0}()&&e.children,d=!e.fetchingSiteData&&!u()&&function(){var n=sc(e.sitePlan.product_slug),r=Ws("Upgrade",{context:"A caption for a button to upgrade an existing paid feature to a higher tier."});switch(c){case"video-hosting-jetpack":return"is-premium-plan"===n||"is-business-plan"===n?"":o.a.createElement(gp,{title:Ws("Host fast, high-quality, ad-free video."),callToAction:r,plan:"jetpack_premium",feature:c,onClick:t(c),href:e.videoPremiumUpgradeUrl});case"wordads-jetpack":return"is-premium-plan"===n||"is-business-plan"===n||-1!==e.activeFeatures.indexOf("wordads-jetpack")?"":o.a.createElement(gp,{title:Ws("Generate income with high-quality ads."),callToAction:r,plan:"jetpack_premium",feature:c,onClick:t(c),href:e.adsUpgradeUrl});case"security-scanning-jetpack":return i||"is-business-plan"===n||e.multisite?"":"is-premium-plan"===n?o.a.createElement(gp,{title:Ws("Real-time site backups and automatic threat resolution."),plan:"jetpack_business",callToAction:r,feature:c,onClick:t(c),href:e.securityProUpgradeUrl}):o.a.createElement(gp,{callToAction:r,title:Ws("Protect against data loss, malware, and malicious attacks."),plan:"jetpack_premium",feature:c,onClick:t(c),href:e.securityPremiumUpgradeUrl});case"google-analytics-jetpack":return"is-business-plan"===n||"is-premium-plan"===n?"":o.a.createElement(gp,{callToAction:r,title:Ws("Connect your site to Google Analytics in seconds with Jetpack Premium or Professional."),plan:"jetpack_premium",feature:c,onClick:t(c),href:e.gaUpgradeUrl});case"seo-tools-jetpack":return"is-business-plan"===n||"is-premium-plan"===n?"":o.a.createElement(gp,{callToAction:r,title:Ws("Boost your search engine ranking with the powerful SEO tools in Jetpack Premium or Professional."),plan:"jetpack_premium",feature:c,onClick:t(c),href:e.seoUpgradeUrl});case"search-jetpack":return e.hasActiveSearchPurchase||e.isAtomicSite?"":o.a.createElement(gp,{callToAction:r,title:Ws("Help visitors quickly find answers with highly relevant instant search results and powerful filtering."),plan:"jetpack_search",feature:c,onClick:t(c),href:e.searchUpgradeUrl});case"spam-akismet-plus":return e.isCheckingAkismetKey||e.isAkismetKeyValid||Object(kt.includes)(["is-personal-plan","is-premium-plan","is-business-plan"],n)?"":o.a.createElement(gp,{callToAction:r,title:Ws("Protect your site from spam."),plan:"jetpack_personal",feature:c,href:e.spamUpgradeUrl});default:return""}}();if(!p&&!d)return null;var h="";return e.feature?h="jp-settings-".concat(e.feature):e.module&&(h="jp-settings-".concat(e.module)),function(){if(!u())return!1;switch(c){case"google-analytics-jetpack":var t=e.getModule("google-analytics");return o.a.createElement(bp,{moduleName:t.name});case"seo-tools-jetpack":var n=e.getModule("seo-tools");return o.a.createElement(bp,{moduleName:n.name});default:return null}}()||o.a.createElement("form",ll()({},h?{id:h}:null,{className:"jp-form-settings-card",onSubmit:s?void 0:e.onSubmit}),o.a.createElement(np,{label:l},!e.hideButton&&o.a.createElement(Yc,{primary:!0,compact:!0,type:"submit",disabled:s||!e.isDirty()},Ws(s?"Saving…":"Save settings",{context:"Button caption"})),e.action&&o.a.createElement(pp,{proFeature:e.action,siteAdminUrl:e.siteAdminUrl,isCompact:!1})),p,d)};yp.propTypes={action:u.a.string,saveDisabled:u.a.bool},yp.defaultProps={action:"",saveDisabled:!1};var wp=ce((function(e){return{sitePlan:hc(e),fetchingSiteData:lc(e),siteAdminUrl:Wi(e),userCanManageModules:Xi(e),isAkismetKeyValid:Da(e),isCheckingAkismetKey:Ia(e),vaultPressData:Fa(e),getModuleOverride:function(t){return cs(e,t)},getModule:function(t){return ns(e,t)},activeFeatures:gc(e),videoPremiumUpgradeUrl:Sa(e,"settings-video-premium"),adsUpgradeUrl:Sa(e,"settings-ads"),securityProUpgradeUrl:Sa(e,"settings-security-pro"),securityPremiumUpgradeUrl:Sa(e,"settings-security-premium"),gaUpgradeUrl:Sa(e,"settings-ga"),seoUpgradeUrl:Sa(e,"settings-seo"),searchUpgradeUrl:Sa(e,"jetpack-search"),spamUpgradeUrl:Sa(e,"settings-spam"),multisite:ka(e),hasActiveSearchPurchase:Cc(e),isAtomicSite:ba(e)}}))(yp),_p=(n(342),ml()({displayName:"InfoPopover",propTypes:{id:u.a.string,position:u.a.string,className:u.a.string,rootClassName:u.a.string,gaEventCategory:u.a.string,popoverName:u.a.string,onClick:u.a.func,ignoreContext:u.a.shape({getDOMNode:u.a.function})},getDefaultProps:function(){return{position:"bottom",onClick:kt.noop}},getInitialState:function(){return{showPopover:!1}},render:function(){var e=Gc()("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return o.a.createElement("button",{ref:"infoPopover",className:e,onClick:this._onClick},o.a.createElement(Fl,{icon:"info-outline",size:18}),this.props.screenReaderText?o.a.createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",o.a.createElement(Hu,{id:this.props.id,isVisible:this.state.showPopover,context:this.refs&&this.refs.infoPopover,ignoreContext:this.props.ignoreContext,position:this.props.position,onClose:this._onClose,className:Gc()("dops-info-popover__tooltip",this.props.className),rootClassName:this.props.rootClassName},this.props.children))},_onClick:function(e){this.props.onClick(),e.preventDefault(),this.setState({showPopover:!this.state.showPopover},this._recordStats)},_onClose:function(){this.setState({showPopover:!1},this._recordStats)},_recordStats:function(){var e=this.props,t=e.gaEventCategory,n=e.popoverName;if(t&&n){var r=this.state.showPopover?" Opened":" Closed";al.ga.recordEvent(t,"InfoPopover: "+n+r)}}})),kp=(n(343),ml()({displayName:"ExternalLink",mixins:[El.a],propTypes:{className:u.a.string,href:u.a.string,onClick:u.a.func,icon:u.a.bool,iconSize:u.a.number},getDefaultProps:function(){return{iconSize:18}},render:function(){var e=Gc()("dops-external-link",this.props.className,{"has-icon":!!this.props.icon}),t=Object(kt.assign)({},Object(kt.omit)(this.props,"icon","iconSize"),{className:e,rel:"external"});return o.a.createElement("a",t,this.props.children,this.props.icon?o.a.createElement(Fl,{icon:"external",size:this.props.iconSize}):null)}})),Ep=(n(344),function(e){function t(){var e;return Ei()(this,t),(e=Si()(this,Ai()(t).apply(this,arguments))).getModule=e.getModule.bind(Ls()(e)),e.trackInfoClick=e.trackInfoClick.bind(Ls()(e)),e.trackLearnMoreClick=e.trackLearnMoreClick.bind(Ls()(e)),e.trackPrivacyInfoClick=e.trackPrivacyInfoClick.bind(Ls()(e)),e}return Mi()(t,e),zs()(t,[{key:"getModule",value:function(){return this.props.module||{}}},{key:"trackInfoClick",value:function(){al.tracks.recordJetpackClick({target:"info-icon",feature:this.getModule().module})}},{key:"trackLearnMoreClick",value:function(){al.tracks.recordJetpackClick({target:"learn-more",feature:this.getModule().module})}},{key:"trackPrivacyInfoClick",value:function(){al.tracks.recordJetpackClick({target:"privacy-info",feature:this.getModule().module})}},{key:"render",value:function(){var e=this.props,t=e.text,n=e.link,r=this.props.privacyLink;return!r&&n&&(r=n+"#privacy"),o.a.createElement("div",{className:"jp-support-info"},o.a.createElement(_p,{position:"left",onClick:this.trackInfoClick,screenReaderText:Ws("Learn more")},t+" ",o.a.createElement("span",{className:"jp-support-info__learn-more"},o.a.createElement(kp,{href:n,onClick:this.trackLearnMoreClick,target:"_blank",rel:"noopener noreferrer"},Ws("Learn more"))),o.a.createElement("span",{className:"jp-support-info__privacy"},o.a.createElement(kp,{href:r,onClick:this.trackPrivacyInfoClick,target:"_blank",rel:"noopener noreferrer"},Ws("Privacy information")))))}}]),t}(s.Component));Ka()(Ep,"propTypes",{module:u.a.object,text:u.a.string,link:u.a.string,privacyLink:u.a.string}),Ka()(Ep,"defaultProps",{module:void 0,text:"",link:"",privacyLink:""});var Cp=function(e){var t=e.module;if(t.module&&!e.userCanManageModules&&!Object(kt.includes)(["post-by-email","publicize"],t.module))return o.a.createElement("span",null);var n=e.disableInDevMode&&e.isUnavailableInDevMode(t.module),r=n;return"post-by-email"!==t.module||e.isLinked||(r=!0),o.a.createElement("div",{className:Gc()("jp-form-settings-group",e.className)},o.a.createElement(au,{className:Gc()({"jp-form-has-child":e.hasChild,"jp-form-settings-disable":n})},r&&o.a.createElement("div",{className:"jp-form-block-fade"}),e.support.link&&o.a.createElement(Ep,ll()({module:t},e.support)),e.children))};Cp.propTypes={support:u.a.object,module:u.a.object,disableInDevMode:u.a.bool.isRequired,isDevMode:u.a.bool.isRequired,isSitePublic:u.a.bool.isRequired,userCanManageModules:u.a.bool.isRequired,isLinked:u.a.bool.isRequired,isUnavailableInDevMode:u.a.func.isRequired,className:u.a.string},Cp.defaultProps={support:{text:"",link:""},module:{},disableInDevMode:!1,isDevMode:!1,isSitePublic:!0,userCanManageModules:!1,isLinked:!1,isUnavailableInDevMode:kt.noop,className:""};var Sp=ce((function(e){return{isDevMode:oo(e),isSitePublic:Yi(e),userCanManageModules:Xi(e),userCanEditPosts:ea(e),isLinked:so(e),isModuleActivated:function(t){return ss(e,t)},isUnavailableInDevMode:function(t){return po(e,t)}}}))(Cp),Tp=(n(345),Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"updateFormStateByMarkdown",(function(e){return n.props.getSettingCurrentValue("wpcom_publish_posts_with_markdown",e)?n.props.updateFormStateModuleOption(e,"wpcom_publish_comments_with_markdown"):n.props.updateFormStateModuleOption(e,"wpcom_publish_comments_with_markdown",!0)})),Ka()(Ls()(n),"handleMarkdownCommentsToggle",(function(){n.props.updateFormStateModuleOption("markdown","wpcom_publish_comments_with_markdown")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.isModuleFound("comments"),t=this.props.isModuleFound("gravatar-hovercards"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("comment-likes");if(!(e||t||n||r))return null;var i=this.props,a=i.isUnavailableInDevMode,s=i.getOptionValue,c=this.props.getModule("comments"),l=this.props.getOptionValue("comments"),u=this.props.isUnavailableInDevMode("comments"),p=this.props.getModule("gravatar-hovercards"),d=this.props.getModule("markdown"),h=a("comment-likes"),f=s("comment-likes");return o.a.createElement(wp,ll()({},this.props,{header:Ws("Comments"),module:"comments",saveDisabled:this.props.isSavingAnyOption(["highlander_comment_form_prompt","jetpack_comment_form_color_scheme"])}),e&&o.a.createElement(Sp,{hasChild:!0,disableInDevMode:!0,module:c,support:{text:Ws("Replaces the standard WordPress comment form with a new comment system that includes social media login options."),link:hu("jetpack-support-comments")}},o.a.createElement(Wu,{slug:"comments",compact:!0,disabled:u,activated:this.props.getOptionValue("comments"),toggling:this.props.isSavingAnyOption("comments"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},c.description)),o.a.createElement(fu,null,o.a.createElement(mu,null,o.a.createElement("span",{className:"jp-form-label-wide"},Ws("Comment form introduction")),o.a.createElement(du,{name:"highlander_comment_form_prompt",value:this.props.getOptionValue("highlander_comment_form_prompt"),disabled:!l||u||this.props.isSavingAnyOption("highlander_comment_form_prompt"),onChange:this.props.onOptionChange})),o.a.createElement("span",{className:"jp-form-setting-explanation"},Ws("A few catchy words to motivate your visitors to comment.")),o.a.createElement(mu,null,o.a.createElement("span",{className:"jp-form-label-wide"},Ws("Color scheme")),o.a.createElement(ku,ll()({name:"jetpack_comment_form_color_scheme",value:this.props.getOptionValue("jetpack_comment_form_color_scheme"),disabled:!l||u||this.props.isSavingAnyOption("jetpack_comment_form_color_scheme"),onChange:this.props.onOptionChange},this.props,{validValues:this.props.validValues("jetpack_comment_form_color_scheme","comments")}))))),(t||n||r)&&o.a.createElement(Sp,null,t&&o.a.createElement("div",{className:"jp-toggle-set"},o.a.createElement(fu,null,o.a.createElement(Wu,{slug:"gravatar-hovercards",compact:!0,activated:this.props.getOptionValue("gravatar-hovercards"),toggling:this.props.isSavingAnyOption("gravatar-hovercards"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},p.description))),o.a.createElement(Ep,{text:Ws("Show Gravatar hovercards alongside comments."),link:p.learn_more_button,privacyLink:p.learn_more_button+"#privacy"})),n&&o.a.createElement("div",{className:"jp-toggle-set"},o.a.createElement(fu,null,o.a.createElement(Ku,{checked:!!this.props.getOptionValue("wpcom_publish_comments_with_markdown","markdown"),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_comments_with_markdown"])||"inactive"===this.props.getModuleOverride("markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_comments_with_markdown"]),onChange:this.handleMarkdownCommentsToggle},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Enable Markdown use for comments.")))),o.a.createElement(Ep,{text:Ws("Allow readers to use markdown in comments."),link:d.learn_more_button,privacyLink:d.learn_more_button+"#privacy"})),r&&o.a.createElement("div",{className:"jp-toggle-set"},o.a.createElement(fu,null,o.a.createElement(Wu,{slug:"comment-likes",compact:!0,disabled:h,activated:f,toggling:this.props.isSavingAnyOption("comment-likes"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Enable comment likes.")))),o.a.createElement(Ep,{text:Ws("Allow readers to like individual comments."),link:hu("jetpack-support-comment-likes"),privacyLink:hu("jetpack-support-comment-likes",{anchor:"privacy"})}))))}}]),t}(o.a.Component))),Ap=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{stb_enabled:n.props.getOptionValue("stb_enabled","subscriptions"),stc_enabled:n.props.getOptionValue("stc_enabled","subscriptions")}),Ka()(Ls()(n),"updateOptions",(function(e){n.setState(Ka()({},e,!n.state[e]),n.props.updateFormStateModuleOption("subscriptions",e))})),Ka()(Ls()(n),"trackConfigureClick",(function(){al.tracks.recordJetpackClick("view-followers")})),Ka()(Ls()(n),"handleSubscribeToBlogToggleChange",(function(){n.updateOptions("stb_enabled")})),Ka()(Ls()(n),"handleSubscribeToCommentToggleChange",(function(){n.updateOptions("stc_enabled")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("subscriptions"),n=this.props.getOptionValue("subscriptions"),r=this.props.isUnavailableInDevMode("subscriptions");return o.a.createElement(wp,ll()({},this.props,{hideButton:!0,module:"subscriptions"}),o.a.createElement(Sp,{hasChild:!0,disableInDevMode:!0,module:t,support:{text:Ws("Allows readers to subscribe to your posts or comments, and receive notifications of new content by email."),link:hu("jetpack-support-subscriptions")}},o.a.createElement(Wu,{slug:"subscriptions",disabled:r,activated:n,toggling:this.props.isSavingAnyOption("subscriptions"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),o.a.createElement(fu,null,o.a.createElement(Ku,{checked:this.state.stb_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stb_enabled"]),onChange:this.handleSubscribeToBlogToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Enable the “subscribe to site” option on your comment form"))),o.a.createElement(Ku,{checked:this.state.stc_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stc_enabled"]),onChange:this.handleSubscribeToCommentToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Enable the “subscribe to comments” option on your comment form"))))),r||!n?"":e.props.isLinked?o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackConfigureClick,href:hu("calypso-people-email-followers",{site:e.props.siteRawUrl})},Ws("View your Email Followers")):o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",href:"".concat(e.props.connectUrl,"&from=unlinked-user-connect-masterbar")},Ws("Create a Jetpack account to view your email followers")," "))}}]),t}(o.a.Component)),xp=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode},t=this.props.isModuleFound("comments"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("gravatar-hovercards"),i=this.props.isModuleFound("subscriptions"),a=this.props.isModuleFound("comment-likes");return(this.props.searchTerm||this.props.active)&&(t||i||n||r||a)?o.a.createElement("div",null,o.a.createElement(pu,null),o.a.createElement(au,{title:this.props.searchTerm?Ws("Discussion"):Ws("Manage advanced comment settings and grow your audience with email subscriptions."),className:"jp-settings-description"}),o.a.createElement(Tp,ll()({},e,{isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride})),i&&o.a.createElement(Ap,ll()({},e,{isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl}))):null}}]),t}(o.a.Component);Ka()(xp,"displayName","DiscussionSettings");var Mp=ce((function(e){return{module:function(t){return ns(e,t)},settings:zo(e),isDevMode:oo(e),isUnavailableInDevMode:function(t){return po(e,t)},isModuleFound:function(t){return Do(e,t)},connectUrl:to(e),isLinked:so(e),getModuleOverride:function(t){return cs(e,t)}}}))(xp),jp=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.isModuleFound("videopress");if(!e)return null;var t=this.props.module("videopress"),n=sc(this.props.sitePlan.product_slug),r=Object(kt.includes)(["is-premium-plan","is-business-plan"],n)&&o.a.createElement(Sp,{hasChild:!0,disableInDevMode:!0,module:t,support:{link:hu("jetpack-support-videopress")}},o.a.createElement(gu,{className:"jp-form-label-wide"},Ws("Video")),o.a.createElement("p",null," ",Ws("Make the content you publish more engaging with high-resolution video. With Jetpack Video you can customize your media player and deliver high-speed, ad-free, and unbranded videos to your visitors. Videos are hosted on our WordPress.com servers and do not subtract space from your hosting plan!")," "),o.a.createElement(Wu,{slug:"videopress",disabled:this.props.isUnavailableInDevMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Enable high-speed, ad-free video player")))),i="inactive"===this.props.getModuleOverride("videopress");return o.a.createElement(wp,ll()({},this.props,{header:Ws("Media"),feature:!i&&"video-hosting-jetpack",hideButton:!0}),e&&r)}}]),t}(o.a.Component),Np=ce((function(e){return{module:function(t){return ns(e,t)},isModuleFound:function(t){return Do(e,t)},sitePlan:hc(e),getModuleOverride:function(t){return cs(e,t)}}}))(Yu(jp)),Op=(Ws("Jetpack Backup"),Ws("Always-on backups ensure you never lose your site."),Ws("Always-on backups ensure you never lose your site. Your changes are saved as you edit and you have unlimited backup archives."),Ws("Jetpack Backup {{em}}Daily{{/em}}",{components:{em:o.a.createElement("em",null)}})),Pp=Ws("Jetpack Backup {{em}}Real-Time{{/em}}",{components:{em:o.a.createElement("em",null)}}),Ip=(Ws("Jetpack Search"),Ws("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.")),Dp=Ws("Customize your Search experience."),Up=Ws("Search supports many customizations. ");var Rp=ce((function(e){var t=sc(hc(e).product_slug);return{isAtomicSite:ba(e),isLoading:dc(e),hasActiveSearchPurchase:Cc(e),isBusinessPlan:"is-business-plan"===t,failedToEnableSearch:!Ho(e,"search")&&!Bo(e,"search")&&!1===Vo(e,"search")}}))(Yu((function(e){var t=e.getOptionValue("search"),n=e.getOptionValue("instant_search_enabled","search"),r=Object(s.useMemo)((function(){return function(e){var t=e.getOptionValue,n=e.hasActiveSearchPurchase,r=e.toggleModuleNow,i=e.updateOptions;return function(e){r(e),n&&t("search")&&i({instant_search_enabled:!0})}}(e)}),[e.hasActiveSearchPurchase]),i=Object(s.useMemo)((function(){return function(e){var t=e.hasActiveSearchPurchase,n=e.getOptionValue,r=e.updateOptions;return function(){t&&n("search")&&r({instant_search_enabled:!n("instant_search_enabled","search")})}}(e)}),[e.hasActiveSearchPurchase]);return Object(s.useEffect)((function(){e.failedToEnableSearch&&e.hasActiveSearchPurchase&&(e.updateOptions({has_jetpack_search_product:!0}),r("search"))}),[e.failedToEnableSearch,e.hasActiveSearchPurchase,r]),o.a.createElement(wp,ll()({},e,{module:"search",feature:"search-jetpack",hideButton:!0}),o.a.createElement(Sp,{hasChild:!0,module:{module:"search"},support:{text:Up,link:hu("jetpack-support-search")}},o.a.createElement("p",null,Ip," "),e.isLoading&&Ws("Loading…"),!e.isLoading&&(e.isBusinessPlan||e.hasActiveSearchPurchase)&&o.a.createElement(s.Fragment,null,o.a.createElement(Wu,{activated:t,compact:!0,slug:"search",toggleModule:r,toggling:e.isSavingAnyOption("search")},Ws("Enable Search")),!e.isAtomicSite&&o.a.createElement(fu,null,o.a.createElement(Ku,{checked:n,disabled:!e.hasActiveSearchPurchase||!t,onChange:i,toggling:e.isSavingAnyOption("instant_search_enabled")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Enable instant search experience (recommended)"))),o.a.createElement("p",{className:"jp-form-setting-explanation jp-form-search-setting-explanation"},Ws("Instant search will allow your visitors to get search results as soon as they start typing. If deactivated, Jetpack Search will still optimize your search results but visitors will have to submit a search query before seeing any results."))))),!e.isLoading&&(e.isBusinessPlan||e.hasActiveSearchPurchase)&&t&&!n&&o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",href:"customize.php?autofocus[panel]=widgets"},Ws("Add Jetpack Search Widget")),e.hasActiveSearchPurchase&&t&&n&&o.a.createElement(au,{className:"jp-settings-card__configure-link",compact:!0,href:"customize.php?autofocus[section]=jetpack_search"},Dp))}))),zp=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"toggleModule",(function(e,t){"photon"===e?!1==!t?n.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):n.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):n.props.updateOptions(Ka()({},e,!t))})),Ka()(Ls()(n),"handleSiteAcceleratorChange",(function(){var e=n.props.getOptionValue("photon"),t=n.props.getOptionValue("photon-cdn"),r=e||t,i=n.props.getModuleOverride("photon"),a=n.props.getModuleOverride("photon-cdn");if(!0===r){var s={progress:Ws("Disabling site accelerator…"),success:Ws("Site accelerator is no longer speeding up your site!"),error:function(e){return Ws("Error disabling site accelerator. %(error)s",{args:{error:e}})}},o={};!1==!e&&"active"!==i&&(e=!1,o={photon:!1,"tiled-gallery":!1,tiled_galleries:!1}),!1==!t&&"active"!==a&&(t=!1,o=bi()({},o,{"photon-cdn":!1})),n.props.updateOptions(o,s)}else{var c={progress:Ws("Enabling Site accelerator…"),success:Ws("Site accelerator is now speeding up your site!"),error:function(e){return Ws("Error enabling Site accelerator. %(error)s",{args:{error:e}})}},l={};!1===e&&"inactive"!==i&&(e=!0,l={photon:!0,"tiled-gallery":!0,tiled_galleries:!0}),!1===t&&"inactive"!==a&&(t=!0,l=bi()({},l,{"photon-cdn":!0})),n.props.updateOptions(l,c)}!0===e||!0===t?al.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"on"}):al.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"off"}),n.props.getOptionValue("photon")!==e&&al.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon",toggled:!1===e?"off":"on"}),n.props.getOptionValue("photon-cdn")!==t&&al.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon-cdn",toggled:!1===t?"off":"on"})})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("photon-cdn"),n=this.props.isModuleFound("lazy-images");if(!e&&!n&&!t)return null;var r,i=this.props.module("lazy-images"),a=this.props.getOptionValue("photon")||this.props.getOptionValue("photon-cdn"),s=this.props.getModuleOverride("photon"),c=this.props.getModuleOverride("photon-cdn"),l=e&&t&&("inactive"!==s||"inactive"!==c),u=(e||t)&&("inactive"!==s||"inactive"!==c);return!this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?r=!this.props.getOptionValue("photon-cdn"):!this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")?r=!this.props.getOptionValue("photon"):this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?(r=!this.props.getOptionValue("photon-cdn"),this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")&&(r=!0)):r=!(!this.props.getOptionValue("photon-cdn")||!this.props.isSavingAnyOption("photon-cdn"))&&!this.props.getOptionValue("photon"),o.a.createElement(wp,ll()({},this.props,{header:Ws("Performance & speed"),hideButton:!0,module:"performance-speed"}),(e||t)&&o.a.createElement(Sp,{hasChild:!0,support:{link:hu("jetpack-support-site-accelerator")}},o.a.createElement("p",null,Ws("Load pages faster by allowing Jetpack to optimize your images and serve your images and static files (like CSS and JavaScript) from our global network of servers.")),u&&o.a.createElement(Ku,{checked:a,toggling:r,onChange:this.handleSiteAcceleratorChange,disabled:!l},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Enable site accelerator"))),o.a.createElement(fu,null,e&&o.a.createElement(Wu,{slug:"photon",disabled:this.props.isUnavailableInDevMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Speed up image load times"))),t&&o.a.createElement(Wu,{slug:"photon-cdn",activated:this.props.getOptionValue("photon-cdn"),toggling:this.props.isSavingAnyOption("photon-cdn"),toggleModule:this.toggleModule},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Speed up static file load times"))))),n&&o.a.createElement(Sp,{hasChild:!0,module:i,support:{link:hu("jetpack-support-lazy-images")}},o.a.createElement("p",null,Ws("Lazy-loading images will improve your site’s speed and create a smoother viewing experience. Images will load as visitors scroll down the screen, instead of all at once.")),o.a.createElement(Wu,{slug:"lazy-images",disabled:this.props.isUnavailableInDevMode("lazy-images"),activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Enable Lazy Loading for images")))))}}]),t}(s.Component)),Fp=ce((function(e){return{module:function(t){return ns(e,t)},isModuleFound:function(t){return Do(e,t)},getModuleOverride:function(t){return cs(e,t)}}}))(zp),Lp=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e={getModule:this.props.module,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride},t=["photon","videopress","lazy-images","photon-cdn","search"].some(this.props.isModuleFound);return(this.props.searchTerm||this.props.active)&&t?o.a.createElement("div",null,o.a.createElement(pu,null),o.a.createElement(au,{title:this.props.searchTerm?Ws("Performance"):Ws("Load pages faster, optimize images, and speed up your visitors’ experience."),className:"jp-settings-description"}),o.a.createElement(Rp,e),o.a.createElement(Fp,e),o.a.createElement(Np,e)):null}}]),t}(s.Component),Bp=ce((function(e){return{module:function(t){return ns(e,t)},isUnavailableInDevMode:function(t){return po(e,t)},isModuleFound:function(t){return Do(e,t)},getModuleOverride:function(t){return cs(e,t)}}}))(Lp),Vp=function(){return al.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"})},Hp=function(){return al.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"})},qp=function(){return al.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"})},Kp=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"isPrivacyFound",(function(){return!n.props.searchTerm||[Ws("privacy",{context:"Search term."}),Ws("tracks",{context:"Search term."}),Ws("data",{context:"Search term."}),Ws("gdpr",{context:"Search term."}),Ws("tos",{context:"Search term."}),Ws("terms of service",{context:"Search term."})].join(" ").toLowerCase().indexOf(n.props.searchTerm.toLowerCase())>-1})),Ka()(Ls()(n),"togglePrivacy",(function(){var e=n.props.trackingSettings.tracks_opt_out;n.props.setTrackingSettings(!e)})),n}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.fetchTrackingSettings()}},{key:"render",value:function(){var e=this.props,t=e.searchTerm,n=e.active;return t||n?this.isPrivacyFound()&&o.a.createElement("div",null,o.a.createElement(wp,ll()({},this.props,{header:Ws("Privacy Settings",{context:"Settings header"}),hideButton:!0}),o.a.createElement(Sp,{hasChild:!0},o.a.createElement("p",null,Ws("We are committed to your privacy and security. ")),o.a.createElement("p",null,o.a.createElement(Ku,{compact:!0,checked:!this.props.trackingSettings.tracks_opt_out,disabled:this.props.isFetchingTrackingSettings||this.props.isUpdatingTrackingSettings,onChange:this.togglePrivacy,id:"privacy-settings"},Ws("Share information with our analytics tool about your use of services while logged in to your WordPress.com account. {{cookiePolicyLink}}Learn more{{/cookiePolicyLink}}.",{components:{cookiePolicyLink:o.a.createElement(kp,{href:hu("a8c-cookies"),onClick:Hp,target:"_blank",rel:"noopener noreferrer"})}}))),o.a.createElement("p",null,Ws("This information helps us improve our products, make marketing to you more relevant, personalize your WordPress.com experience, and more as detailed in our {{pp}}privacy policy{{/pp}}.",{components:{pp:o.a.createElement(kp,{href:hu("a8c-privacy"),onClick:Vp,target:"_blank",rel:"noopener noreferrer"})}})),o.a.createElement("p",null,Ws("We use other tracking tools, including some from third parties. {{cookiePolicyLink}}Read about these{{/cookiePolicyLink}} and how to control them.",{components:{cookiePolicyLink:o.a.createElement(kp,{href:hu("a8c-cookies"),onClick:Hp,target:"_blank",rel:"noopener noreferrer"})}})),o.a.createElement("p",null,Ws("For more information on how specific Jetpack features use data and track activity, please refer to our {{privacyCenterLink}}Privacy Center{{/privacyCenterLink}}.",{components:{privacyCenterLink:o.a.createElement(kp,{href:hu("jetpack-support-privacy"),onClick:qp,target:"_blank",rel:"noopener noreferrer"})}}))))):null}}]),t}(o.a.Component);Ka()(Kp,"displayName","PrivacySettings"),Ka()(Kp,"propTypes",{searchTerm:u.a.string,active:u.a.bool,toggleTracking:u.a.func,getOptionValue:u.a.func,isSavingAnyOption:u.a.func}),Ka()(Kp,"defaultProps",{searchTerm:"",active:!1});var Jp=ce((function(e){return{settings:zo(e),trackingSettings:zc(e),isUpdatingTrackingSettings:Lc(e),isFetchingTrackingSettings:Fc(e)}}),(function(e){return{setTrackingSettings:function(t){var n;al.tracks.setOptOut(t),e((n={tracks_opt_out:t},function(e){var t={progress:Ws("Updating privacy settings…"),success:Ws("Updated privacy settings."),error:function(e){return Ws("Error updating privacy settings. %(error)s",{args:{error:e.message||e.code||e.name||e}})}};return e(ls("tracking-settings-update")),e(ls("tracking-settings-update-success")),e(us("is-info",t.progress,{id:"tracking-settings-update"})),e({type:Gt,updatedSettings:n}),zi.updateUserTrackingSettings(n).then((function(r){e({type:$t,updatedSettings:n,success:r}),e(ls("tracking-settings-update")),e(ls("tracking-settings-update-success")),e(us("is-success",t.success,{id:"tracking-settings-update-success",duration:2e3}))})).catch((function(r){e({type:Yt,updatedSettings:n,success:!1,error:r}),e(ls("tracking-settings-update")),e(ls("tracking-settings-update-success")),e(us("is-error",t.error(r),{id:"tracking-settings-update"}))}))}))},fetchTrackingSettings:function(){return e((function(e){return e({type:Kt}),zi.fetchUserTrackingSettings().then((function(t){return e({type:Wt,settings:t}),t})).catch((function(t){e({type:Jt,error:t})}))}))}}}))(Yu(Kp)),Wp=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"handleBannerClick",(function(e){return function(){return n.props.updateOptions(Ka()({},e,!0))}})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this;if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;var t=["contact-form","enhanced-distribution","json-api","notes"],n=this.props.modules,r=[];return Object(kt.forEach)(n,(function(n,i){if(e.props.isModuleFound(i)&&Object(kt.includes)(t,i)){if(e.props.isDevMode&&e.props.isUnavailableInDevMode(n.module))return r.push(o.a.createElement(Gp,{key:i,moduleData:n,devMode:!0}));e.props.getOptionValue(n.module)?r.push(o.a.createElement(Gp,{key:i,moduleData:n})):r.push(o.a.createElement(fp,{className:"jp-searchable-banner",key:i,callToAction:Ws("Activate"),description:n.description,href:"javascript:void( 0 )",icon:"cog",onClick:e.handleBannerClick(n.module),title:n.name}))}})),o.a.createElement("div",null,r)}}]),t}(s.Component));Wp.propTypes={searchTerm:u.a.string},Wp.defaultProps={searchTerm:""};var Gp=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.moduleData,t=this.props.devMode;return o.a.createElement(wp,{module:e.module,header:e.name,action:e.module,hideButton:!0},o.a.createElement(Sp,{disableInDevMode:t,module:{module:e.module},support:{link:e.learn_more_button}},e.description))}}]),t}(s.Component),Yp=ce((function(e){return{modules:ts(e),isModuleFound:function(t){return Do(e,t)},canManageModules:Xi(e),isUnavailableInDevMode:function(t){return po(e,t)},isDevMode:oo(e)}}))(Wp),$p=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isFetchingRewindStatus||this.props.isDevMode||this.props.fetchRewind()}},{key:"render",value:function(){return null}}]),t}(s.Component);Ka()($p,"propTypes",{isFetchingRewindStatus:u.a.bool,isDevMode:u.a.bool,sitePlan:u.a.object}),Ka()($p,"defaultProps",{isFetchingRewindStatus:!1,isDevMode:!1,sitePlan:{}});var Qp=ce((function(e){return{isFetchingRewindStatus:Ao(e),isDevMode:oo(e),sitePlan:hc(e)}}),(function(e){return{fetchRewind:function(){return e((function(e){return e({type:Wr}),zi.fetchRewindStatus().then((function(t){return e({type:Gr,status:t}),t})).catch((function(t){e({type:Yr,error:t})}))}))}}}))($p),Xp=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement(wp,{header:Ws("Backups and security scanning",{context:"Settings header"}),hideButton:!0,action:"scan"},o.a.createElement(Sp,{disableInDevMode:!0,module:{module:"backups"},support:{text:Ws("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error."),link:hu("vaultpress-help-get-to-know")}},Ws("Checking site status…")))}}]),t}(s.Component),Zp=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"getCardText",(function(){if(n.props.isDevMode)return Ws("Unavailable in Dev Mode.");var e=n.getRewindMessage(),t=e.title,r=e.icon,i=e.description,a=e.url;return o.a.createElement(fp,{title:t,icon:r,feature:"rewind",description:i,className:"is-upgrade-premium jp-banner__no-border",href:a})})),n}return Mi()(t,e),zs()(t,[{key:"getRewindMessage",value:function(){var e=this.props,t=e.siteRawUrl;switch(e.rewindState){case"provisioning":return{title:Ws("Provisioning"),icon:"info",description:Ws("Backups and Scan are being configured for your site."),url:""};case"awaiting_credentials":return{title:Ws("Awaiting credentials"),icon:"notice",description:Ws("You need to enter your server credentials to finish configuring Backups and Scan."),url:hu("calypso-settings-security",{site:t})};case"active":return{title:Ws("Active"),icon:"checkmark-circle",description:Ws("Your site is being backed up in real time and regularly scanned for security threats."),url:hu("calypso-activity-log",{site:t})};default:return{title:Ws("Oops!"),icon:"info",description:Ws("The Jetpack Backup and Scan status could not be retrieved at this time."),url:""}}}},{key:"render",value:function(){return o.a.createElement(wp,ll()({feature:"rewind"},this.props,{header:Ws("Backups and security scanning",{context:"Settings header"}),action:"rewind",hideButton:!0}),this.getCardText())}}]),t}(s.Component);Ka()(Zp,"propTypes",{isDevMode:u.a.bool,siteRawUrl:u.a.string,rewindState:u.a.string}),Ka()(Zp,"defaultProps",{isDevMode:!1,siteRawUrl:"",rewindState:""});var ed=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"toggleModule",(function(e,t){n.props.updateFormStateOptionValue(e,!t)})),Ka()(Ls()(n),"trackConfigureClick",(function(){al.tracks.recordJetpackClick("configure-scan")})),n}return Mi()(t,e),zs()(t,[{key:"getCardText",value:function(){var e=Object(kt.get)(this.props.vaultPressData,["data","features","backups"],!1),t=Object(kt.get)(this.props.vaultPressData,["data","features","security"],!1),n=sc(this.props.sitePlan.product_slug),r="";if(this.props.isDevMode)return Ws("Unavailable in Dev Mode.");if(e&&t){var i=this.props.hasThreats;return i?o.a.createElement("div",null,o.a.createElement("strong",null,Ws("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:i,args:{number:Js(i)}})),o.a.createElement("br",null),o.a.createElement("br",null),Ws("{{a}}View details{{/a}}",{components:{a:o.a.createElement("a",{href:hu("vaultpress-dashboard")})}}),o.a.createElement("br",null),Ws("{{a}}Contact Support{{/a}}",{components:{a:o.a.createElement("a",{href:hu("jetpack-support")})}})):Ws("Your site is backed up and threat-free.")}if(e&&Object(kt.includes)(["is-free-plan","is-personal-plan","is-daily-backup-plan","is-realtime-backup-plan"],n))return Ws("Your site is backed up.");switch(n){case"is-personal-plan":r=Ws("You have paid for backups but they're not yet active."),r+=" "+Ws('Click "Set Up" to finish installation.');break;case"is-premium-plan":case"is-business-plan":r=Ws("You have paid for backups and security scanning but they’re not yet active."),r+=" "+Ws('Click "Set Up" to finish installation.')}return r}},{key:"render",value:function(){if(!this.props.showBackups)return null;var e=Object(kt.get)(this.props.vaultPressData,["data","features","security"],!1),t=Object(kt.get)(this.props.rewindStatus,["state"],!1),n=!1!==t,r="N/A"!==this.props.vaultPressData&&!1!==Object(kt.get)(this.props.vaultPressData,["data"],!1);return n||!this.props.vaultPressActive||r?Object(kt.includes)(["provisioning","awaiting_credentials","active"],t)?o.a.createElement(Zp,ll()({},this.props,{rewindState:t})):o.a.createElement(wp,ll()({feature:"security-scanning-jetpack"},this.props,{header:Ws("Backups and security scanning",{context:"Settings header"}),action:"scan",hideButton:!0}),o.a.createElement(Qp,null),o.a.createElement(Sp,{disableInDevMode:!0,module:{module:"backups"},support:{text:Ws("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error."),link:hu("vaultpress-help-get-to-know")}},this.getCardText()),!this.props.isUnavailableInDevMode("backups")&&e&&o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,target:"_blank",href:hu("vaultpress-dashboard")},Ws("Configure your Security Scans"))):o.a.createElement(Xp,null)}}]),t}(s.Component)),td=ce((function(e){return{sitePlan:hc(e),vaultPressData:Fa(e),hasThreats:La(e),vaultPressActive:ss(e,"vaultpress"),showBackups:wa(e)}}))(ed),nd=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=Object(kt.assign)({},this.props,{className:Gc()(this.props.className,"is-compact")});return o.a.createElement(au,e,this.props.children)}}]),t}(o.a.Component);Ka()(nd,"displayName","CompactCard");n(346);var rd=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{expanded:n.props.expanded}),Ka()(Ls()(n),"onClick",(function(){n.props.children&&n.setState({expanded:!n.state.expanded}),n.props.onClick&&n.props.onClick(),n.state.expanded?n.props.onClose(n.props.cardKey):n.props.onOpen(n.props.cardKey)})),Ka()(Ls()(n),"getClickAction",(function(){if(!n.props.disabled)return n.onClick})),Ka()(Ls()(n),"getActionButton",(function(){return n.state.expanded&&n.props.actionButtonExpanded||n.props.actionButton})),Ka()(Ls()(n),"renderActionButton",(function(){var e=n.props.clickableHeader?null:n.getClickAction();if(n.props.actionButton)return o.a.createElement("button",{className:"dops-foldable-card__action",onClick:e},n.getActionButton());if(n.props.children){return o.a.createElement("button",{type:"button",disabled:n.props.disabled,className:"dops-foldable-card__action dops-foldable-card__expand",onClick:e},o.a.createElement("span",{className:"screen-reader-text"},"More"),o.a.createElement(Fl,{icon:n.props.icon,size:24}))}})),Ka()(Ls()(n),"renderContent",(function(){return o.a.createElement("div",{className:"dops-foldable-card__content"},n.props.children)})),Ka()(Ls()(n),"renderHeader",(function(){var e=n.props.summary?o.a.createElement("span",{className:"dops-foldable-card__summary"},n.props.summary," "):null,t=n.props.expandedSummary?o.a.createElement("span",{className:"dops-foldable-card__summary_expanded"},n.props.expandedSummary," "):null,r=n.props.header?o.a.createElement("div",{className:"dops-foldable-card__header-text"},n.props.header):null,i=n.props.subheader?o.a.createElement("div",{className:"dops-foldable-card__subheader"},n.props.subheader):null,a={role:"button",tabIndex:0,onClick:n.getClickAction(),onKeyDown:rp(n.getClickAction())},s=Gc()("dops-foldable-card__header",{"is-clickable":!!n.props.clickableHeader,"has-border":!!n.props.summary}),c=Gc()("dops-foldable-card__header-text",{"is-clickable":!!n.props.clickableHeaderText});return o.a.createElement("div",ll()({className:s},n.props.clickableHeader?a:{}),o.a.createElement("span",{className:"dops-foldable-card__main"},o.a.createElement("div",ll()({className:c},n.props.clickableHeaderText?a:{}),r,i)),o.a.createElement("span",{className:"dops-foldable-card__secondary"},e,t,n.renderActionButton()))})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.compact?nd:au,t=Gc()("dops-foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return o.a.createElement(e,{className:t},this.renderHeader(),this.state.expanded&&this.renderContent())}}]),t}(o.a.Component);Ka()(rd,"propTypes",{actionButton:u.a.element,actionButtonExpanded:u.a.element,cardKey:u.a.string,compact:u.a.bool,disabled:u.a.bool,expandedSummary:u.a.oneOfType([u.a.string,u.a.element]),expanded:u.a.bool,icon:u.a.string,onClick:u.a.func,onClose:u.a.func,onOpen:u.a.func,summary:u.a.oneOfType([u.a.string,u.a.element]),clickableHeader:u.a.bool,clickableHeaderText:u.a.bool}),Ka()(rd,"defaultProps",{onOpen:kt.noop,onClose:kt.noop,cardKey:"",icon:"chevron-down",isExpanded:!1,clickableHeader:!1,clickableHeaderText:!1});var id=rd,ad=(n(347),function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=Gc()({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return o.a.createElement("div",{className:e},o.a.createElement("span",null,o.a.createElement(Fl,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}}]),t}(o.a.Component));Ka()(ad,"displayName","FormInputValidation"),Ka()(ad,"propTypes",{isError:u.a.bool,isWarning:u.a.bool,text:u.a.node,icon:u.a.string}),Ka()(ad,"defaultProps",{isError:!1});var sd=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{apiKey:n.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}}),Ka()(Ls()(n),"keyChanged",!1),Ka()(Ls()(n),"checkApiKeyTyped",(function(e){0<e.currentTarget.value.length&&n.props.checkAkismetKey(e.currentTarget.value),n.keyChanged=!0,n.setState({delayKeyCheck:!1})})),Ka()(Ls()(n),"updateText",(function(e){var t=Object(kt.assign)({},e);t.currentTarget.value=Object(kt.trim)(t.currentTarget.value),n.setState({apiKey:t.currentTarget.value,delayKeyCheck:!0,currentEvent:t},n.debouncedCheckApiKeyTyped(t))})),Ka()(Ls()(n),"trackOpenCard",(function(){al.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})})),n}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.debouncedCheckApiKeyTyped=Object(kt.debounce)(this.checkApiKeyTyped,500)}},{key:"componentDidUpdate",value:function(){!this.props.isCheckingAkismetKey&&this.props.isAkismetKeyValid&&this.keyChanged&&!Object(kt.isEmpty)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}},{key:"render",value:function(){var e={name:"wordpress_api_key",value:this.state.apiKey,disabled:this.props.isSavingAnyOption("wordpress_api_key"),onChange:this.updateText},t="",n=Ws("Checking your spam protection…"),r=!0;return null===this.props.isAkismetKeyValid?(e.value=Ws("Fetching key…"),e.disabled=!0,r=!1):""===this.state.apiKey?(e.value="",n=Ws("Your site needs an Antispam key.")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=o.a.createElement("div",{className:"form-input-validation is-warning"},o.a.createElement("span",null,o.a.createElement(Fl,{size:24,icon:"sync"}),Ws("Checking key…"))),r=!1):!1===this.props.isAkismetKeyValid?(t=o.a.createElement(ad,{isError:!0,text:Ws("There's a problem with your Antispam API key. {{a}}Learn more{{/a}}.",{components:{a:o.a.createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})}})}),e.isError=!0,n=Ws("Your site is not protected from spam.")):(t=o.a.createElement(ad,{text:Ws("Your Antispam key is valid.")}),e.isValid=!0,n=Ws("Your site is protected from spam."),r=!1),o.a.createElement(wp,ll()({},this.props,{header:Ws("Anti-spam",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:"spam-akismet-plus"}),o.a.createElement(id,{onOpen:this.trackOpenCard,header:n},o.a.createElement(Sp,{support:{text:Ws("Removes spam from comments and contact forms."),link:"https://akismet.com/jetpack/"}},o.a.createElement(fu,null,o.a.createElement(mu,null,o.a.createElement("span",{className:"jp-form-label-wide"},Ws("Your API key")),o.a.createElement(du,e),t),r&&o.a.createElement("p",{className:"jp-form-setting-explanation"},Ws("If you don't already have an API key, then {{a}}get your API key here{{/a}}, and you'll be guided through the process of getting one.",{components:{a:o.a.createElement("a",{href:"https://akismet.com/wordpress/"})}}))))))}}]),t}(s.Component)),od=ce((function(e){return{isAkismetKeyValid:Da(e),isCheckingAkismetKey:Ia(e)}}),(function(e){return{checkAkismetKey:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e(ep(t))}}}))(sd),cd=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"getVaultPressContent",(function(){return o.a.createElement(Sp,{module:{module:"backups"},support:{text:Ws("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error."),link:hu("jetpack-support-backup")}},Ws("Your site is backed up."))})),Ka()(Ls()(n),"getRewindBanner",(function(){var e=n.getRewindMessage(),t=e.title,r=e.icon,i=e.description,a=e.url;return o.a.createElement(fp,{title:t,icon:r,feature:"rewind",description:i,className:"is-upgrade-premium jp-banner__no-border",href:a})})),n}return Mi()(t,e),zs()(t,[{key:"getRewindMessage",value:function(){var e=this.props,t=e.siteRawUrl,n=e.rewindStatus;switch(Object(kt.get)(n,"state",!1)){case"provisioning":return{title:Ws("Provisioning"),icon:"info",description:Ws("Jetpack Backup is being configured for your site."),url:""};case"awaiting_credentials":return{title:Ws("Awaiting credentials"),icon:"notice",description:Ws("You need to enter your server credentials to finish configuring Jetpack Backup."),url:hu("calypso-settings-security",{site:t})};case"active":return{title:Ws("Active"),icon:"checkmark-circle",description:Ws("Your site is being backed up."),url:hu("calypso-activity-log",{site:t})};default:return{title:Ws("Oops!"),icon:"info",description:Ws("The Jetpack Backup status could not be retrieved at this time."),url:""}}}},{key:"render",value:function(){var e=this.props,t=e.rewindStatus,n=e.vaultPressData,r=Object(kt.get)(t,"state",!1),i=Object(kt.get)(n,["data","features","backups"],!1);return!1!==r||i?o.a.createElement(wp,ll()({feature:"site-backups-jetpack"},this.props,{header:Ws("Jetpack Backup",{context:"Settings header"}),hideButton:!0}),"unavailable"===r?this.getVaultPressContent():this.getRewindBanner()):o.a.createElement(wp,{header:Ws("Jetpack Backup",{context:"Settings header"}),hideButton:!0,action:"site-backups-jetpack"},o.a.createElement(Sp,{module:{module:"backups"},support:{text:Ws("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error."),link:hu("jetpack-support-backup")}},Ws("Checking site status…")))}}]),t}(s.Component);Ka()(cd,"propTypes",{siteRawUrl:u.a.string,rewindState:u.a.string}),Ka()(cd,"defaultProps",{siteRawUrl:"",rewindState:""});var ld=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackOpenCard",(function(){al.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"manage-plugins"})})),Ka()(Ls()(n),"configLink",(function(){return o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",onClick:n.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:hu("calypso-plugins-manage",{site:n.props.siteRawUrl})},Ws("Choose which plugins to auto-update"))})),n}return Mi()(t,e),zs()(t,[{key:"trackClickConfigure",value:function(){al.tracks.recordJetpackClick({target:"configure-plugins",page:"plugins-manage"})}},{key:"render",value:function(){return o.a.createElement(wp,ll()({},this.props,{module:"manage",header:Ws("Auto-update plugins",{context:"Settings header"}),hideButton:!0}),o.a.createElement(Sp,{disableInDevMode:!0,module:this.props.getModule("manage")},o.a.createElement("div",null,Ws("With Jetpack you can choose to have your plugins auto-updated with each new plugin release. You’ll get the latest security and bug fixes right away, ensuring your site stays secure."))),this.configLink())}}]),t}(s.Component)),ud=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackConfigureClick",(function(){al.tracks.recordJetpackClick("configure-monitor")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.getOptionValue("monitor"),t=this.props.isUnavailableInDevMode("monitor");return o.a.createElement(wp,ll()({},this.props,{hideButton:!0,module:"monitor",header:Ws("Downtime monitoring",{context:"Settings header"})}),o.a.createElement(Sp,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("monitor"),support:{text:Ws("Jetpack will continuously monitor your site, and alert you the moment downtime is detected."),link:hu("jetpack-support-monitor")}},o.a.createElement(Wu,{slug:"monitor",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Get alerts if your site goes offline. We’ll let you know when it’s back up, too.")))),o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,target:"_blank",href:hu("calypso-settings-security",{site:this.props.siteRawUrl})},Ws("Configure your notification settings")))}}]),t}(s.Component)),pd=(n(348),function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("textarea",ll()({},Object(kt.omit)(this.props,"className"),{className:Gc()(this.props.className,"dops-textarea")}),this.props.children)}}]),t}(o.a.Component));Ka()(pd,"displayName","Textarea");var dd=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{whitelist:n.props.getOptionValue("jetpack_protect_global_whitelist")?n.props.getOptionValue("jetpack_protect_global_whitelist").local:""}),Ka()(Ls()(n),"currentIpIsWhitelisted",(function(){return!!Object(kt.includes)(n.state.whitelist,n.props.currentIp)})),Ka()(Ls()(n),"updateText",(function(e){n.currentIpIsWhitelisted(),n.setState({whitelist:e.target.value}),n.props.onOptionChange(e)})),Ka()(Ls()(n),"addToWhitelist",(function(){var e=n.state.whitelist+(0>=n.state.whitelist.length?"":"\n")+n.props.currentIp;n.props.updateFormStateOptionValue("jetpack_protect_global_whitelist",e),n.setState({whitelist:e}),al.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})})),Ka()(Ls()(n),"trackOpenCard",(function(){al.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInDevMode("protect"),n=o.a.createElement(Wu,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return o.a.createElement(wp,ll()({},this.props,{module:"protect",header:Ws("Brute force attack protection",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),o.a.createElement(id,{onOpen:this.trackOpenCard,header:n,className:Gc()({"jp-foldable-settings-disable":t})},o.a.createElement(Sp,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("protect"),support:{text:Ws("Protects your site from traditional and distributed brute force login attacks."),link:hu("jetpack-support-protect")}},o.a.createElement(fu,null,this.props.currentIp&&o.a.createElement("div",null,o.a.createElement("div",{className:"jp-form-label-wide"},Ws("Your current IP: %(ip)s",{args:{ip:this.props.currentIp}})),o.a.createElement(Yc,{disabled:!e||t||this.currentIpIsWhitelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToWhitelist},Ws("Add to whitelist"))),o.a.createElement(mu,null,o.a.createElement(gu,null,Ws("Whitelisted IP addresses")),o.a.createElement(pd,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_protect_global_whitelist",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateText,value:this.state.whitelist})),o.a.createElement("span",{className:"jp-form-setting-explanation"},Ws("You may whitelist an IP address or series of addresses preventing them from ever being blocked by Jetpack. IPv4 and IPv6 are acceptable. To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100",{components:{br:o.a.createElement("br",null)}}))))))}}]),t}(s.Component)),hd=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{jetpack_sso_match_by_email:n.props.getOptionValue("jetpack_sso_match_by_email","sso"),jetpack_sso_require_two_step:n.props.getOptionValue("jetpack_sso_require_two_step","sso")}),Ka()(Ls()(n),"handleTwoStepToggleChange",(function(){n.updateOptions("jetpack_sso_require_two_step")})),Ka()(Ls()(n),"handleMatchByEmailToggleChange",(function(){n.updateOptions("jetpack_sso_match_by_email")})),Ka()(Ls()(n),"updateOptions",(function(e){n.setState(Ka()({},e,!n.state[e]),n.props.updateFormStateModuleOption("sso",e))})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.getOptionValue("sso"),t=this.props.isUnavailableInDevMode("sso");return o.a.createElement(wp,ll()({},this.props,{hideButton:!0,module:"sso",header:Ws("WordPress.com login",{context:"Settings header, noun."})}),o.a.createElement(Sp,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("sso"),support:{text:Ws("Allows registered users to log in to your site with their WordPress.com accounts."),link:hu("jetpack-support-sso")}},o.a.createElement("p",null,Ws("Add an extra layer of security to your website by enabling WordPress.com login and secure authentication. If you have multiple sites with this option enabled, you will be able to log in to every one of them with the same credentials.")),o.a.createElement(Wu,{slug:"sso",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),o.a.createElement(fu,null,o.a.createElement(Ku,{checked:this.state.jetpack_sso_match_by_email,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:this.handleMatchByEmailToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Match accounts using email addresses"))),o.a.createElement(Ku,{checked:this.state.jetpack_sso_require_two_step,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:this.handleTwoStepToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Require accounts to use WordPress.com Two-Step Authentication"))))))}}]),t}(s.Component)),fd=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"isAkismetFound",(function(){if(!n.props.isPluginActive("akismet/akismet.php"))return!1;if(n.props.searchTerm){var e=n.props.isPluginInstalled("akismet/akismet.php");return["akismet","antispam","spam","comments",e.Description,e.PluginURI].join(" ").toLowerCase().indexOf(n.props.searchTerm.toLowerCase())>-1}return!0})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,rewindStatus:this.props.rewindStatus,siteRawUrl:this.props.siteRawUrl},t=this.props.isModuleFound("protect"),n=this.props.isModuleFound("sso"),r=this.isAkismetFound(),i="active"===Object(kt.get)(this.props.rewindStatus,["state"],!1),a=this.props.isModuleFound("vaultpress")||i,s=this.props.isModuleFound("monitor"),c=this.props.searchTerm;if(!c&&!this.props.active)return null;if(!(n||t||r||a||s))return null;var l=sc(Object(kt.get)(this.props.sitePlan,["product_slug"])),u=this.props.activeSitePurchases.map((function(e){return sc(e.product_slug)})),p="is-personal-plan"===l,d="is-free-plan"===l&&(u.includes("is-daily-backup-plan")||u.includes("is-realtime-backup-plan")),h=p||d?o.a.createElement(cd,ll()({},e,{vaultPressData:this.props.vaultPressData})):o.a.createElement(td,e);return o.a.createElement("div",null,o.a.createElement(pu,null),o.a.createElement(au,{title:Ws(c?"Security":"Your site is protected by Jetpack. You’ll be notified if anything needs attention."),className:"jp-settings-description"}),a&&h,s&&o.a.createElement(ud,e),r&&o.a.createElement(o.a.Fragment,null,o.a.createElement(od,e),o.a.createElement(cp,null)),!c&&o.a.createElement(ld,e),t&&o.a.createElement(dd,e),n&&o.a.createElement(hd,e))}}]),t}(s.Component);Ka()(fd,"displayName","SecuritySettings");var md,gd=ce((function(e){return{activeSitePurchases:yc(e),module:function(t){return ns(e,t)},settings:zo(e),sitePlan:hc(e),isDevMode:oo(e),isUnavailableInDevMode:function(t){return po(e,t)},isModuleFound:function(t){return Do(e,t)},isPluginActive:function(t){return Ya(e,t)},isPluginInstalled:function(t){return $a(e,t)},vaultPressData:Fa(e)}}))(fd),vd=Yu(function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"trackClickConfigure",value:function(){al.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isUnavailableInDevMode("publicize"),n=this.props.isLinked,r=this.props.connectUrl,i=this.props.siteRawUrl,a=this.props.getOptionValue("publicize"),s=this.props.userCanManageModules;return s||a?o.a.createElement(wp,ll()({},this.props,{header:Ws("Publicize connections",{context:"Settings header"}),module:"publicize",hideButton:!0}),s&&o.a.createElement(Sp,{disableInDevMode:!0,module:{module:"publicize"},support:{text:Ws("Allows you to automatically share your newest content on social media sites, including Facebook and Twitter."),link:hu("jetpack-support-publicize")}},o.a.createElement("p",null,Ws("Connect your website to the social media networks you use and share your content across all your social accounts with a single click. When you publish a post, it will appear on all connected accounts.")),o.a.createElement(Wu,{slug:"publicize",disabled:t,activated:a,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},Ws("Automatically share your posts to social networks"))),a&&function(){if(!t)return n?o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:hu("calypso-marketing-connections",{site:i})},Ws("Connect your social media accounts")):o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",target:"_blank",rel:"noopener noreferrer",href:"".concat(r,"&from=unlinked-user-connect-publicize")},Ws("Create a Jetpack account to use this feature"))}()):null}}]),t}(s.Component)),bd=Yu(function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"trackClickConfigure",value:function(){al.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isLinked,n=this.props.connectUrl,r=this.props.siteRawUrl,i=this.props.siteAdminUrl,a=this.props.isDevMode,s=this.props.getOptionValue("sharedaddy");return o.a.createElement(wp,ll()({},this.props,{header:Ws("Sharing buttons",{context:"Settings header"}),module:"sharing",hideButton:!0}),o.a.createElement(Sp,{disableInDevMode:!0,module:{module:"sharing"},support:{text:Ws("You can customize the sharing buttons and choose which services to display."),link:hu("jetpack-support-sharing")}},o.a.createElement("p",null,Ws("Add sharing buttons so visitors can share your posts and pages on social media with a couple of quick clicks.")),o.a.createElement(Wu,{slug:"sharedaddy",activated:s,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},Ws("Add sharing buttons to your posts and pages"))),s&&(a?o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",href:i+"options-general.php?page=sharing"},Ws("Configure your sharing buttons")):t?o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:hu("calypso-marketing-sharing-buttons",{site:r})},Ws("Configure your sharing buttons")):o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",target:"_blank",rel:"noopener noreferrer",href:"".concat(n,"&from=unlinked-user-connect-sharing")},Ws("Create a Jetpack account to use this feature"))))}}]),t}(s.Component)),yd=Yu(function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.isUnavailableInDevMode("likes"),t=this.props.getOptionValue("likes");return o.a.createElement(wp,ll()({},this.props,{header:Ws("Like buttons",{context:"Settings header"}),module:"likes",hideButton:!0}),o.a.createElement(Sp,{disableInDevMode:!0,module:{module:"likes"},support:{text:Ws("Adds like buttons to your content so that visitors can show their appreciation or enjoyment."),link:hu("jetpack-support-likes")}},o.a.createElement("p",null,Ws("When visitors enjoy your content, let them show it with a Like.")),o.a.createElement(Wu,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},Ws("Add Like buttons to your posts and pages"))))}}]),t}(s.Component)),wd=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules},t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),r=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||n||r)?o.a.createElement("div",null,o.a.createElement(pu,null),o.a.createElement(au,{title:this.props.searchTerm?Ws("Sharing"):Ws("Share your content to social media, reaching new audiences and increasing engagement."),className:"jp-settings-description"}),t&&o.a.createElement(vd,e),n&&o.a.createElement(bd,e),r&&o.a.createElement(yd,e)):null}}]),t}(s.Component),_d=ce((function(e){return{module:function(t){return ns(e,t)},settings:zo(e),isDevMode:oo(e),isUnavailableInDevMode:function(t){return po(e,t)},isModuleFound:function(t){return Do(e,t)},isLinked:so(e),connectUrl:to(e),siteRawUrl:Ji(e),siteAdminUrl:Wi(e),userCanManageModules:Xi(e)}}))(wd),kd=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackConfigureClick",(function(){al.tracks.recordJetpackClick("configure-seo")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=sc(this.props.sitePlan.product_slug);return o.a.createElement(wp,ll()({},this.props,{header:Ws("Search engine optimization",{context:"Settings header"}),feature:"seo-tools-jetpack",hideButton:!0}),o.a.createElement(Sp,{disableInDevMode:!0,module:{module:"seo-tools"},support:{text:Ws("Allows you to optimize your site and its content for better results in search engines."),link:hu("jetpack-support-seo-tools")}},o.a.createElement("span",null,Ws("Take control of the way search engines represent your site. With Jetpack’s SEO tools you can preview how your content will look on popular search engines and change items like your site name and tagline in seconds."))),!this.props.isUnavailableInDevMode("seo-tools")&&("is-business-plan"===e||"is-premium-plan"===e)&&o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},Ws("Customize your SEO settings")))}}]),t}(o.a.Component),Ed=ce((function(e){return{sitePlan:hc(e)}}))(Yu(kd)),Cd=Yu(function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"trackConfigureClick",value:function(){al.tracks.recordJetpackClick("configure-ga")}},{key:"render",value:function(){return o.a.createElement(wp,ll()({},this.props,{header:Ws("Google Analytics",{context:"Settings header"}),feature:"google-analytics-jetpack",hideButton:!0}),o.a.createElement(Sp,{disableInDevMode:!0,module:{module:"google-analytics"},support:{text:Ws("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions."),link:hu("jetpack-support-google-analytics")}},Ws("Google Analytics is a free service that complements our {{a}}built-in stats{{/a}} with different insights into your traffic. WordPress.com stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.",{components:{a:o.a.createElement("a",{href:hu("calypso-stats-day",{site:this.props.siteRawUrl})})}})),!this.props.isUnavailableInDevMode("google-analytics")&&o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},Ws("Configure your Google Analytics settings")))}}]),t}(s.Component)),Sd=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"updateOptions",(function(e){n.props.updateFormStateModuleOption("wordads",e)})),Ka()(Ls()(n),"trackConfigureClick",(function(){al.tracks.recordJetpackClick("view-earnings")})),Ka()(Ls()(n),"trackConfigureWidgetClick",(function(){al.tracks.recordJetpackClick("place_ad_widget")})),Ka()(Ls()(n),"handleChange",(function(e){return function(){return n.updateOptions(e)}})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.getOptionValue("wordads"),t=this.props.isUnavailableInDevMode("wordads"),n=this.props.getOptionValue("enable_header_ad","wordads"),r=this.props.getOptionValue("wordads_second_belowpost","wordads"),i=this.props.getOptionValue("wordads_display_front_page","wordads"),a=this.props.getOptionValue("wordads_display_post","wordads"),s=this.props.getOptionValue("wordads_display_page","wordads"),c=this.props.getOptionValue("wordads_display_archive","wordads"),l=this.props.getOptionValue("wordads_custom_adstxt","wordads"),u=-1!==this.props.siteRawUrl.indexOf("::");return o.a.createElement(wp,ll()({},this.props,{header:Ws("Ads",{context:"Ads header"}),feature:"wordads-jetpack",saveDisabled:this.props.isSavingAnyOption(["wordads_custom_adstxt"])}),o.a.createElement(Sp,{disableInDevMode:!0,hasChild:!0,module:{module:"wordads"},support:{text:Ws("Displays high-quality ads on your site that allow you to earn income."),link:hu("jetpack-support-ads")}},o.a.createElement("p",null,Ws("Show ads on the first article on your home page or at the end of every page and post. Place additional ads at the top of your site and to any widget area to increase your earnings."),o.a.createElement("br",null),o.a.createElement("small",{className:"jp-form-setting-explanation"},Ws("By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.",{components:{link:o.a.createElement("a",{href:hu("wpcom-automattic-ads-tos"),target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})}}))),o.a.createElement(Wu,{slug:"wordads",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Enable ads and display an ad below each post"))),o.a.createElement(fu,null,o.a.createElement(gu,null,Ws("Display ads below posts on")),o.a.createElement(Ku,{checked:i,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:this.handleChange("wordads_display_front_page")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Front page"))),o.a.createElement(Ku,{checked:a,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:this.handleChange("wordads_display_post")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Posts"))),o.a.createElement(Ku,{checked:s,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:this.handleChange("wordads_display_page")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Pages"))),o.a.createElement(Ku,{checked:c,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:this.handleChange("wordads_display_archive")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Archives")))),o.a.createElement(fu,null,o.a.createElement(gu,null,Ws("Additional ad placements")),o.a.createElement(Ku,{checked:n,disabled:!e||t||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:this.handleChange("enable_header_ad")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Top of each page"))),o.a.createElement(Ku,{checked:r,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:this.handleChange("wordads_second_belowpost")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Second ad below post"))),o.a.createElement("small",{className:"jp-form-setting-explanation"},e&&Ws("You can place additional ads using the Ad widget. {{link}}Try it out!{{/link}}",{components:{link:o.a.createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})}}))),!u&&o.a.createElement(fu,null,o.a.createElement(gu,null,Ws("Custom ads.txt entries")),o.a.createElement("p",null,e&&Ws("Jetpack automatically generates a custom {{link1}}ads.txt{{/link1}} tailored for your site. If you need to add additional entries for other networks please add them in the space below, one per line. {{link2}}Check here for more details{{/link2}}.",{components:{link1:o.a.createElement("a",{href:"/ads.txt",target:"_blank",rel:"noopener noreferrer"}),link2:o.a.createElement("a",{href:hu("jetpack-how-jetpack-ads-members-can-increase-their-earnings-with-ads-txt"),target:"_blank",rel:"noopener noreferrer"})}}),!e&&Ws("When ads are enabled, Jetpack automatically generates a custom ads.txt tailored for your site.")),o.a.createElement(pd,{name:"wordads_custom_adstxt",value:l,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_custom_adstxt"]),onChange:this.props.onOptionChange}))),!t&&e&&o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},Ws("View your earnings")))}}]),t}(o.a.Component)),Td=window.Initial_State.pluginBaseUrl+"/images/",Ad=hu("jetpack-contact-support"),xd=hu("jetpack-contact-support-beta-group"),Md=Yu(function(e){function t(e){var n;Ei()(this,t),n=Si()(this,Ai()(t).call(this,e)),Ka()(Ls()(n),"updateOptions",(function(e,t){var r=n.props.getOptionValue(t,"stats"),i=!1;n.state["".concat(t,"_").concat(e)]?Object(kt.includes)(r,e)&&(r=Object(kt.filter)(r,(function(t){return t!==e}))):Object(kt.includes)(r,e)||(r.push(e),i=!0),n.setState(Ka()({},"".concat(t,"_").concat(e),!n.state["".concat(t,"_").concat(e)]),(function(){n.props.updateOptions(Ka()({},t,r))})),al.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:i?"on":"off"})})),Ka()(Ls()(n),"activateStats",(function(){n.props.updateOptions({stats:!0})})),Ka()(Ls()(n),"trackOpenCard",(function(){al.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})})),Ka()(Ls()(n),"handleRoleToggleChange",(function(e,t){return function(){return n.updateOptions(e,t)}}));var r=e.getOptionValue("count_roles","stats"),i=e.getOptionValue("roles","stats");return n.state={count_roles:r,roles:i,count_roles_administrator:Object(kt.includes)(r,"administrator",!1),count_roles_editor:Object(kt.includes)(r,"editor",!1),count_roles_author:Object(kt.includes)(r,"author",!1),count_roles_contributor:Object(kt.includes)(r,"contributor",!1),count_roles_subscriber:Object(kt.includes)(r,"subscriber",!1),roles_administrator:!0,roles_editor:Object(kt.includes)(i,"editor",!1),roles_author:Object(kt.includes)(i,"author",!1),roles_contributor:Object(kt.includes)(i,"contributor",!1),roles_subscriber:Object(kt.includes)(i,"subscriber",!1)},n}return Mi()(t,e),zs()(t,[{key:"handleStatsOptionToggle",value:function(e){var t=this;return function(){return t.props.updateFormStateModuleOption("stats",e)}}},{key:"render",value:function(){var e=this,t=this.props.getModule("stats"),n=this.props.getOptionValue("stats"),r=this.props.isUnavailableInDevMode("stats"),i=this.props.getSiteRoles();return"inactive"===this.props.getModuleOverride("stats")?o.a.createElement(bp,{moduleName:t.name}):n?o.a.createElement(wp,ll()({},this.props,{header:Ws("Site stats",{context:"Settings header"}),hideButton:!0,module:"site-stats"}),o.a.createElement(id,{onOpen:this.trackOpenCard,header:Ws("Expand to update settings for how visits are counted and manage who can view this information."),clickableHeader:!0,className:Gc()("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":r})},o.a.createElement(Sp,{disableInDevMode:!0,module:t,support:{text:Ws("Displays information on your site activity, including visitors and popular posts or pages."),link:hu("jetpack-support-wordpress-com-stats")}},o.a.createElement(fu,null,o.a.createElement(Ku,{checked:!!this.props.getOptionValue("admin_bar"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),onChange:this.handleStatsOptionToggle("admin_bar")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Include a small chart in your admin bar with a 48-hour traffic snapshot"))),o.a.createElement(Ku,{checked:!!this.props.getOptionValue("hide_smile"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","hide_smile"]),onChange:this.handleStatsOptionToggle("hide_smile")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Hide the stats smiley face image")),o.a.createElement("span",{className:"jp-form-setting-explanation"},Ws("The image helps collect stats, but should work when hidden.")))),o.a.createElement(fu,null,o.a.createElement(gu,null,Ws("Count logged in page views from")),Object.keys(i).map((function(t){return o.a.createElement(Ku,{checked:e.state["count_roles_".concat(t)],disabled:!n||r||e.props.isSavingAnyOption(["stats","count_roles"]),onChange:e.handleRoleToggleChange(t,"count_roles"),key:"count_roles-".concat(t)},o.a.createElement("span",{className:"jp-form-toggle-explanation"},i[t].name))}))),o.a.createElement(fu,null,o.a.createElement(gu,null,Ws("Allow stats reports to be viewed by")),o.a.createElement(Ku,{checked:!0,disabled:!0},o.a.createElement("span",{className:"jp-form-toggle-explanation"},i.administrator.name)),Object.keys(i).map((function(t){return"administrator"!==t&&o.a.createElement(Ku,{checked:e.state["roles_".concat(t)],disabled:!n||r||e.props.isSavingAnyOption(["stats","roles"]),onChange:e.handleRoleToggleChange(t,"roles"),key:"roles-".concat(t)},o.a.createElement("span",{className:"jp-form-toggle-explanation"},i[t].name))})))))):o.a.createElement(au,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive"},o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},o.a.createElement("img",{src:Td+"stats.svg",width:"60",height:"60",alt:Ws("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?Ws("Unavailable in Dev Mode"):Ws("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:o.a.createElement("a",{href:hu("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},o.a.createElement(Yc,{onClick:this.activateStats,primary:!0},Ws("Activate Site Stats")))))}}]),t}(o.a.Component)),jd=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.isSiteConnected;return o.a.createElement(wp,ll()({},this.props,{header:Ws("WP.me Shortlinks",{context:"Settings header"}),module:"shortlinks",hideButton:!0}),o.a.createElement(Sp,{module:{module:"shortlinks"},support:{text:this.props.shortlinksModule.description,link:hu("jetpack-support-shortlinks")},disableInDevMode:!0},o.a.createElement(Wu,{slug:"shortlinks",disabled:!e,activated:this.props.shortlinksActive,toggling:this.props.isSavingAnyOption("shortlinks"),toggleModule:this.props.toggleModuleNow},Ws("Generate shortened URLs for simpler sharing."))))}}]),t}(s.Component),Nd=Yu(ce((function(e,t){return{shortlinksActive:t.getOptionValue("shortlinks"),shortlinksModule:ns(e,"shortlinks")}}))(jd)),Od=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{show_headline:n.props.getOptionValue("show_headline","related-posts"),show_thumbnails:n.props.getOptionValue("show_thumbnails","related-posts")}),Ka()(Ls()(n),"updateOptions",(function(e){n.setState(Ka()({},e,!n.state[e]),n.props.updateFormStateModuleOption("related-posts",e))})),Ka()(Ls()(n),"handleShowHeadlineToggleChange",(function(){n.updateOptions("show_headline")})),Ka()(Ls()(n),"handleShowThumbnailsToggleChange",(function(){n.updateOptions("show_thumbnails")})),Ka()(Ls()(n),"trackConfigureClick",(function(){al.tracks.recordJetpackClick("configure-related-posts")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("related-posts"),n=this.props.isUnavailableInDevMode("related-posts");return o.a.createElement(wp,ll()({},this.props,{hideButton:!0,module:"related-posts"}),o.a.createElement(Sp,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("related-posts"),support:{text:Ws("The feature helps visitors find more of your content by displaying related posts at the bottom of each post."),link:hu("jetpack-support-related-posts")}},o.a.createElement("p",null,Ws("Keep your visitors engaged with related content at the bottom of each post. These settings won't apply to {{a}}related posts added using the block editor{{/a}}.",{components:{a:o.a.createElement("a",{href:hu("jetpack-support-jetpack-blocks-related-posts-block"),target:"_blank",rel:"noopener noreferrer"})}})),o.a.createElement(Wu,{slug:"related-posts",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Show related content after posts"))),o.a.createElement(fu,null,o.a.createElement(Ku,{checked:this.state.show_headline,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:this.handleShowHeadlineToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Highlight related content with a heading"))),o.a.createElement(Ku,{checked:this.state.show_thumbnails,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:this.handleShowThumbnailsToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Show a thumbnail image where available"))),t&&o.a.createElement("div",null,o.a.createElement(mu,{className:"jp-form-label-wide"},Ws("Preview",{context:"A header for a preview area in the configuration screen."})),o.a.createElement(au,{className:"jp-related-posts-preview"},this.state.show_headline&&o.a.createElement("div",{className:"jp-related-posts-preview__title"},Ws("Related")),[{url:"cat-blog.png",text:Ws("Big iPhone/iPad Update Now Available"),context:Ws('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"devices.jpg",text:Ws("The WordPress for Android App Gets a Big Facelift"),context:Ws('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"mobile-wedding.jpg",text:Ws("Upgrade Focus: VideoPress For Weddings"),context:Ws('In "Upgrade"',{comment:"It refers to the category where a post was found. Used in an example preview."})}].map((function(t,n){return o.a.createElement("div",{key:"preview_".concat(n),className:"jp-related-posts-preview__item"},e.state.show_thumbnails&&o.a.createElement("img",{src:"https://jetpackme.files.wordpress.com/2019/03/".concat(t.url),alt:t.text}),o.a.createElement("h4",{className:"jp-related-posts-preview__post-title"},o.a.createElement("a",{href:"#/traffic"},t.text)),o.a.createElement("p",{className:"jp-related-posts-preview__post-context"},t.context))})))))),!this.props.isUnavailableInDevMode("related-posts")&&t&&o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},Ws("Configure related posts in the Customizer")))}}]),t}(o.a.Component));function Pd(){var e=this;this.intervals={},this.monitorInterval=null,this.windowInstance=null,this.onMessage=function(t){t.source===e.windowInstance&&e.emit("message",t.data)}}md=Pd.prototype,Object(kt.assign)(md,Es.EventEmitter.prototype),md.emitChange=function(){this.emit("change")},md.off=md.removeListener,Pd.prototype.open=function(e,t,n){return t=t||Date.now(),this.windowInstance=window.open(e,t,n),this.startMonitoring(t,this.windowInstance),window.addEventListener("message",this.onMessage,!1),this},Pd.prototype.getScreenCenterSpecs=function(e,t){var n=void 0!==window.screenTop?window.screenTop:window.screenY,r=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(n+window.innerHeight/2-t/2),"left="+(r+window.innerWidth/2-e/2)].join()},Pd.prototype.isOpen=function(e){var t=!1;try{t=this.intervals[e]&&this.intervals[e].closed}catch(n){}return!t},Pd.prototype.checkStatus=function(){for(var e in this.intervals)this.intervals.hasOwnProperty(e)&&!this.isOpen(e)&&(this.emit("close",e),delete this.intervals[e]);0===Object.keys(this.intervals).length&&(clearInterval(this.monitorInterval),delete this.monitorInterval,window.removeEventListener("message",this.onMessage))},Pd.prototype.startMonitoring=function(e,t){this.monitorInterval||(this.monitorInterval=setInterval(this.checkStatus.bind(this),100)),this.intervals[e]=t};var Id=Pd,Dd=function(e,t){var n,r=new Id;r.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+r.getScreenCenterSpecs(780,700)),r.once("close",(function(){var e=null;n&&n.keyring_id&&(e=Number(n.keyring_id)),t(e)})),r.on("message",(function(e){return n=e}))},Ud=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{inputVisible:!1}),Ka()(Ls()(n),"handleClickAutoVerify",(function(){n.props.fetchingSiteData||n.props.fetchingGoogleSiteVerify||(al.tracks.recordEvent("jetpack_site_verification_google_auto_verify_click"),Dd(n.props.googleSiteVerificationConnectUrl,(function(e){e&&n.checkAndVerifySite(e)})))})),Ka()(Ls()(n),"handleClickSetManually",(function(e){al.tracks.recordEvent("jetpack_site_verification_google_manual_verify_click",{is_owner:n.props.isOwner}),n.toggleVerifyMethod(e)})),Ka()(Ls()(n),"handleClickEdit",(function(e){al.tracks.recordEvent("jetpack_site_verification_google_edit_click",{is_owner:n.props.isOwner}),n.toggleVerifyMethod(e)})),Ka()(Ls()(n),"handleClickCancel",(function(e){al.tracks.recordEvent("jetpack_site_verification_google_cancel_click",{is_owner:n.props.isOwner}),n.props.resetFormStateOption("google"),n.toggleVerifyMethod(e)})),Ka()(Ls()(n),"quickSave",(function(e){al.tracks.recordEvent("jetpack_site_verification_google_manual_verify_save",{is_owner:n.props.isOwner,is_empty:!n.props.value}),n.props.onSubmit(e)})),Ka()(Ls()(n),"toggleVerifyMethod",(function(){n.setState({inputVisible:!n.state.inputVisible})})),Ka()(Ls()(n),"handleOnTextInputKeyPress",(function(e){"Enter"===e.key&&n.quickSave()})),n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){var e=this;this.props.isCurrentUserLinked&&this.props.checkVerifyStatusGoogle().then((function(t){if(e.props.googleSiteVerificationError&&"unverify-site-error"===e.props.googleSiteVerificationError.code&&e.props.updateOptions({google:""}).then((function(){return e.props.checkVerifyStatusGoogle()})),t)return!e.props.getOptionValue("google")&&t.token?e.props.updateOptions({google:t.token}):void(!e.props.getOptionValue("google")||t.token||t.verified||e.setState({inputVisible:!0}))}))}},{key:"checkAndVerifySite",value:function(e){var t=this;this.props.createNotice("is-info",Ws("Verifying…"),{id:"verifying-site-google"}),this.props.checkVerifyStatusGoogle(e).then((function(e){if(e)return e.token!==t.props.value?t.props.updateOptions({google:e.token}):void 0})).then((function(){t.props.removeNotice("verifying-site-google"),t.props.isSiteVerifiedWithGoogle||t.props.verifySiteGoogle(e).then((function(){if(t.props.googleSiteVerificationError){var e=t.props.googleSiteVerificationError.message;al.tracks.recordEvent("jetpack_site_verification_google_verify_error",{error_message:e}),t.props.createNotice("is-error",Ws("Site failed to verify: %(error)s",{args:{error:e}}),{id:"verify-site-google-error",duration:5e3})}else t.props.isSiteVerifiedWithGoogle&&al.tracks.recordEvent("jetpack_site_verification_google_verify_success")}))}))}},{key:"render",value:function(){var e=this.props.googleSiteVerificationError&&"forbidden"===this.props.googleSiteVerificationError.code;if(this.state.inputVisible||e||!this.props.isCurrentUserLinked)return o.a.createElement("div",null,o.a.createElement(mu,{className:"jp-form-input-with-prefix",key:"verification_service_google"},o.a.createElement("span",null,Ws("Google")),o.a.createElement(du,{name:"google",value:this.props.value,placeholder:this.props.placeholder,className:"code",disabled:this.props.disabled,onChange:this.props.onOptionChange,onKeyPress:this.handleOnTextInputKeyPress}),this.state.inputVisible&&o.a.createElement("div",{className:"jp-form-site-verification-buttons"},o.a.createElement(Yc,{primary:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.quickSave},Ws("Save")),o.a.createElement(Yc,{type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.handleClickCancel},Ws("Cancel")))));if(this.props.isSiteVerifiedWithGoogle)return o.a.createElement("div",null,o.a.createElement("div",{className:"jp-form-input-with-prefix",key:"verification_service_google"},o.a.createElement("span",null,Ws("Google")),o.a.createElement("div",{className:"jp-form-site-verification-verified"},o.a.createElement(Fl,{icon:"checkmark-circle",size:20})," ",o.a.createElement("span",null,Ws("Your site is verified with Google"))),o.a.createElement(Yc,{type:"button",className:"jp-form-site-verification-edit-button",onClick:this.handleClickEdit},Ws("Edit"))),this.props.isOwner&&o.a.createElement("div",{className:"jp-form-input-with-prefix-bottom-message"},o.a.createElement("div",{className:"jp-form-setting-explanation"},o.a.createElement("p",null,Ws("Monitor your site's traffic and performance from the {{a}}Google Search Console{{/a}}.",{components:{a:o.a.createElement(kp,{icon:!0,iconSize:16,target:"_blank",rel:"noopener noreferrer",href:this.props.googleSearchConsoleUrl})}})," ",Ws("Google will email about certain events that occur with your site, including indications that your website has been {{a1}}hacked{{/a1}}, or problems {{a2}}crawling or indexing{{/a2}} your site.",{components:{a1:o.a.createElement(kp,{icon:!0,iconSize:16,target:"_blank",rel:"noopener noreferrer",href:"https://developers.google.com/web/fundamentals/security/hacked/"}),a2:o.a.createElement(kp,{icon:!0,iconSize:16,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/insidesearch/howsearchworks/crawling-indexing.html"})}})))));var t=this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||this.props.isVerifyingGoogleSite||this.props.disabled;return o.a.createElement("div",{className:"jp-form-input-with-prefix jp-form-google-label-unverified",key:"verification_service_google"},o.a.createElement("span",null,Ws("Google")),o.a.createElement("div",{className:"jp-form-google-label-unverified-actions"},o.a.createElement(Yc,{primary:!0,type:"button",disabled:t,onClick:this.handleClickAutoVerify},Ws("Verify with Google")),o.a.createElement("span",{className:"jp-form-google-separator"},Ws("or")),o.a.createElement(Yc,{type:"button",disabled:t,onClick:this.handleClickSetManually},Ws("Manually Verify "))))}}]),t}(o.a.Component);Ka()(Ud,"propTypes",{disabled:u.a.bool}),Ka()(Ud,"defaultProps",{disabled:!1});var Rd=ce((function(e){return{fetchingSiteData:lc(e),googleSiteVerificationConnectUrl:Co(e,"google_site_verification"),googleSearchConsoleUrl:Pc(e),fetchingGoogleSiteVerify:xc(e),isConnectedToGoogle:jc(e),isSiteVerifiedWithGoogle:Nc(e),isVerifyingGoogleSite:Mc(e),userCanManageOptions:Zi(e),googleSiteVerificationError:Oc(e),isOwner:Ic(e)}}),{checkVerifyStatusGoogle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t({type:ti}),zi.fetchVerifySiteGoogleStatus(e).then((function(e){if(e.errors&&e.errors.length>0){var n=Object.keys(e.errors)[0],r=e.errors[n];return t({type:ni,error:{code:n,message:r}}),e}return t({type:ri,verified:e.verified,token:e.token,isOwner:e.is_owner,searchConsoleUrl:e.google_search_console_url,verificationConsoleUrl:e.google_verification_console_url}),e})).catch((function(e){t({type:ni,error:e.response})}))}},createNotice:us,removeNotice:ls,verifySiteGoogle:function(e){return function(t){return t({type:oi}),zi.verifySiteGoogle(e).then((function(e){if(e.errors&&e.errors.length>0){var n=Object.keys(e.errors)[0],r=e.errors[n];return t({type:li,error:{code:n,message:r}}),e}return t({verified:e.verified,isOwner:e.is_owner,searchConsoleUrl:e.google_search_console_url,verificationConsoleUrl:e.google_verification_console_url,type:ci}),e.verified&&t(us("is-success",Ws("Site is verified"),{id:"verify-site-google-verified",duration:2e3})),e})).catch((function(e){t({type:li,error:e.response})}))}}})(Ud),zd=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"getMetaTag",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?/^[a-z0-9_-]+$/i.test(n)?Object(kt.includes)(n,"<meta")?n:'<meta name="'.concat(Object(kt.get)(t.serviceIds,e,""),'" content="').concat(n,'" />'):n:""}},{key:"getSiteVerificationValue",value:function(e){var t=this.props.getOptionValue(e);return t===this.props.getSettingCurrentValue(e)?this.getMetaTag(e,t):t}},{key:"render",value:function(){var e=this.props.getModule("verification-tools");if("inactive"===this.props.getModuleOverride("verification-tools"))return o.a.createElement(gp,{title:e.name,icon:"cog",description:Ws("%(moduleName)s has been disabled by a site administrator.",{args:{moduleName:e.name}})});var t=!!this.props.getOptionValue(e.module);return o.a.createElement(wp,ll()({},this.props,{module:e.module,saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex"])}),o.a.createElement(Sp,{module:e,support:{text:Ws("Provides the necessary hidden tags needed to verify your WordPress site with various services."),link:hu("jetpack-support-site-verification-tools")}},o.a.createElement(Wu,{slug:e.module,activated:t,toggling:this.props.isSavingAnyOption([e.module]),disabled:this.props.isSavingAnyOption([e.module]),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Verify site ownership with third party services"))),o.a.createElement("p",null,Ws("Note that {{b}}verifying your site with these services is not necessary{{/b}} in order for your site to be indexed by search engines. To use these advanced search engine tools and verify your site with a service, paste the HTML Tag code below. Read the {{support}}full instructions{{/support}} if you are having trouble. Supported verification services: {{google}}Google Search Console{{/google}}, {{bing}}Bing Webmaster Center{{/bing}}, {{pinterest}}Pinterest Site Verification{{/pinterest}}, and {{yandex}}Yandex.Webmaster{{/yandex}}.",{components:{b:o.a.createElement("strong",null),support:o.a.createElement("a",{href:hu("jetpack-support-site-verification-tools")}),google:o.a.createElement(kp,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:o.a.createElement(kp,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:o.a.createElement(kp,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:o.a.createElement(kp,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"})}})),o.a.createElement(fu,null,o.a.createElement(Rd,ll()({value:this.getSiteVerificationValue("google"),placeholder:this.getMetaTag("google","1234")},this.props,{disabled:this.props.isUpdating("google")||!t})),o.a.createElement(mu,{className:"jp-form-input-with-prefix",key:"verification_service_bing"},o.a.createElement("span",null,Ws("Bing")),o.a.createElement(du,{name:"bing",value:this.getSiteVerificationValue("bing"),placeholder:this.getMetaTag("bing","1234"),className:"code",disabled:this.props.isUpdating("bing")||!t,onChange:this.props.onOptionChange})),o.a.createElement(mu,{className:"jp-form-input-with-prefix",key:"verification_service_pinterest"},o.a.createElement("span",null,Ws("Pinterest")),o.a.createElement(du,{name:"pinterest",value:this.getSiteVerificationValue("pinterest"),placeholder:this.getMetaTag("pinterest","1234"),className:"code",disabled:this.props.isUpdating("pinterest")||!t,onChange:this.props.onOptionChange})),o.a.createElement(mu,{className:"jp-form-input-with-prefix",key:"verification_service_yandex"},o.a.createElement("span",null,Ws("Yandex")),o.a.createElement(du,{name:"yandex",value:this.getSiteVerificationValue("yandex"),placeholder:this.getMetaTag("yandex","1234"),className:"code",disabled:this.props.isUpdating("yandex")||!t,onChange:this.props.onOptionChange})))))}}]),t}(o.a.Component);Ka()(zd,"serviceIds",{google:"google-site-verification",bing:"msvalidate.01",pinterest:"p:domain_verify",yandex:"yandex-verification"});var Fd=Yu(zd),Ld=n(166),Bd=n.n(Ld),Vd=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"displayPrompt",(function(){window.prompt(n.props.prompt,n.props.text)})),n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){var e=this,t=a.a.findDOMNode(this.refs.button);this.clipboard=new Bd.a(t,{text:function(){return e.props.text}}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)}},{key:"componentWillUnmount",value:function(){this.clipboard.destroy(),delete this.clipboard}},{key:"render",value:function(){var e=Gc()("dops-clipboard-button",this.props.className);return o.a.createElement(Yc,ll()({ref:"button"},Object(kt.omit)(this.props,Object.keys(this.constructor.propTypes)),{className:e}))}}]),t}(o.a.Component);Ka()(Vd,"displayName","ClipboardButton"),Ka()(Vd,"propTypes",{className:u.a.string,text:u.a.string,prompt:u.a.string,onCopy:u.a.func}),Ka()(Vd,"defaultProps",{onCopy:kt.noop});n(349);var Hd=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{isCopied:!1,disabled:!1}),Ka()(Ls()(n),"showConfirmation",(function(){n.setState({isCopied:!0}),n.confirmationTimeout=setTimeout((function(){n.setState({isCopied:!1})}),4e3)})),n}return Mi()(t,e),zs()(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout}},{key:"render",value:function(){var e=Object(kt.omit)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus");return o.a.createElement("span",{className:Gc()("dops-clipboard-button-input",this.props.className)},o.a.createElement(du,ll()({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),o.a.createElement(Vd,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0},this.state.isCopied?this.props.copied:this.props.copy))}}]),t}(o.a.Component);Ka()(Hd,"displayName","ClipboardButtonInput"),Ka()(Hd,"propTypes",{value:u.a.string,disabled:u.a.bool,className:u.a.string,copied:u.a.string,copy:u.a.string,prompt:u.a.string}),Ka()(Hd,"defaultProps",{value:""});var qd=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"renderSitemapRow",(function(e,t){return o.a.createElement("span",{className:"jp-sitemap-row"},o.a.createElement(Hd,{value:e,copy:Ws("Copy",{context:"verb"}),copied:Ws("Copied!"),prompt:Ws("Highlight and copy the following text to your clipboard:")}),o.a.createElement(kp,{onClick:function(){return al.tracks.recordJetpackClick(t)},icon:!0,target:"_blank",rel:"noopener noreferrer",href:e}))})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.getModule("sitemaps"),t=Object(kt.get)(e,["extra","sitemap_url"],""),n=Object(kt.get)(e,["extra","news_sitemap_url"],""),r=Gc()({"jp-form-setting-explanation":!0,"is-warning":!this.props.isSiteVisibleToSearchEngines&&this.props.getOptionValue("sitemaps")});return o.a.createElement(wp,ll()({},this.props,{module:"sitemaps",hideButton:!0}),o.a.createElement(Sp,{hasChild:!0,module:{module:"sitemaps"},support:{link:hu("jetpack-support-sitemaps")}},o.a.createElement("p",null,Ws("Sitemaps are files that search engines like Google or Bing use to index your website. They can help improve your ranking in search results. When you enable this feature, Jetpack will create sitemaps for you and update them automatically when the content on your site changes.")),o.a.createElement(Wu,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},Ws("Generate XML sitemaps")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&o.a.createElement(fu,null,o.a.createElement("p",{className:"jp-form-setting-explanation"},Ws("Good news: Jetpack is sending your sitemap automatically to all major search engines for indexing."),this.renderSitemapRow(t,"sitemap-url-link"),this.renderSitemapRow(n,"sitemap-news-url-link"))):o.a.createElement(fu,null,o.a.createElement("p",{className:r},Ws("Search engines can't access your site at the moment. If you'd like to make your site accessible, check your {{a}}Reading settings{{/a}} and switch \"Search Engine Visibility\" on.",{components:{a:o.a.createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}})))))}}]),t}(o.a.Component),Kd=ce((function(e){return{isSiteVisibleToSearchEngines:pa(e),siteAdminUrl:Wi(e)}}))(Yu(qd)),Jd=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e={settings:this.props.settings,siteRawUrl:this.props.siteRawUrl,getModule:this.props.module,isSiteConnected:this.props.isSiteConnected,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,getModuleOverride:this.props.getModuleOverride},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),i=this.props.isModuleFound("shortlinks"),a=this.props.isModuleFound("related-posts"),s=this.props.isModuleFound("verification-tools"),c=this.props.isModuleFound("sitemaps"),l=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||i||a||s||c||l)?o.a.createElement("div",null,o.a.createElement(pu,null),o.a.createElement(au,{title:this.props.searchTerm?Ws("Traffic"):Ws("Maximize your site’s visibility in search engines and view traffic stats in real time."),className:"jp-settings-description"}),n&&o.a.createElement(Sd,ll()({},e,{configureUrl:hu("calypso-stats-ads-day",{site:this.props.siteRawUrl})})),a&&o.a.createElement(Od,ll()({},e,{configureUrl:this.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(this.props.siteAdminUrl+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(this.props.lastPostUrl)})),t&&o.a.createElement(Ed,ll()({},e,{configureUrl:hu("calypso-marketing-traffic",{site:this.props.siteRawUrl,anchor:"seo"})})),l&&o.a.createElement(Cd,ll()({},e,{configureUrl:hu("calypso-marketing-traffic",{site:this.props.siteRawUrl,anchor:"analytics"})})),r&&o.a.createElement(Md,e),i&&o.a.createElement(Nd,e),c&&o.a.createElement(Kd,e),s&&o.a.createElement(Fd,e)):null}}]),t}(o.a.Component);Ka()(Jd,"displayName","TrafficSettings");var Wd=ce((function(e){return{module:function(t){return ns(e,t)},settings:zo(e),isDevMode:oo(e),isUnavailableInDevMode:function(t){return po(e,t)},isModuleFound:function(t){return Do(e,t)},isSiteConnected:Zs(e),lastPostUrl:ga(e),getModuleOverride:function(t){return cs(e,t)}}}))(Jd),Gd=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"updateFormStateByMarkdown",(function(e){return n.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?n.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):n.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0)})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.isModuleFound("copy-post"),t=this.props.isModuleFound("latex"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("shortcodes");if(!(e||t||n||r))return null;var i=this.props.module("markdown"),a=this.props.module("latex"),s=this.props.module("copy-post"),c=this.props.module("shortcodes"),l=o.a.createElement(Sp,{module:s,support:{text:Ws("Duplicate existing posts, pages, Testimonials, and Portfolios. All the content will be copied including text, featured images, sharing settings, and more."),link:hu("jetpack-support-copy-post-2")}},o.a.createElement(fu,null,o.a.createElement(Wu,{slug:"copy-post",activated:!!this.props.getOptionValue("copy-post"),toggling:this.props.isSavingAnyOption("copy-post"),disabled:this.props.isSavingAnyOption("copy-post"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},s.description)))),u=o.a.createElement(Sp,{module:i,support:{text:Ws("Use Markdown syntax to compose content with links, lists, and other styles. This setting enables Markdown in the Classic Editor as well as within a Classic Editor block."),link:hu("jetpack-support-markdown")}},o.a.createElement(fu,null,o.a.createElement(Wu,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},o.a.createElement("span",{className:"jp-form-toggle-explanation"},i.description)))),p=o.a.createElement(Sp,{module:a,support:{text:Ws("LaTeX is a powerful markup language for writing complex mathematical equations and formulas."),link:hu("jetpack-support-beautiful-math-with-latex")}},o.a.createElement(fu,null,o.a.createElement(Wu,{slug:"latex",activated:!!this.props.getOptionValue("latex"),toggling:this.props.isSavingAnyOption(["latex"]),disabled:this.props.isSavingAnyOption(["latex"]),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},a.description)))),d=o.a.createElement(Sp,{module:c,support:{text:c.description,link:hu("jetpack-support-shortcode-embeds")}},o.a.createElement(fu,null,o.a.createElement(Wu,{slug:"shortcodes",activated:!!this.props.getOptionValue("shortcodes"),toggling:this.props.isSavingAnyOption(["shortcodes"]),disabled:this.props.isSavingAnyOption(["shortcodes"]),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Compose using shortcodes to embed media from popular sites")))));return o.a.createElement(wp,ll()({},this.props,{header:Ws("Composing",{context:"Settings header"}),module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),e&&l,n&&u,t&&p,r&&d)}}]),t}(o.a.Component),Yd=ce((function(e){return{module:function(t){return ns(e,t)},isModuleFound:function(t){return Do(e,t)}}}))(Yu(Gd)),$d=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{testimonial:n.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:n.props.getOptionValue("jetpack_portfolio","custom-content-types")}),Ka()(Ls()(n),"updateCPTs",(function(e){var t="testimonial"===e?!(!n.state.testimonial||n.state.portfolio):!(!n.state.portfolio||n.state.testimonial);n.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),n.setState(Ka()({},e,!n.state[e]))})),Ka()(Ls()(n),"linkIfActiveCPT",(function(e){return n.props.getSettingCurrentValue("jetpack_".concat(e),"custom-content-types")?o.a.createElement("a",{href:"".concat(n.props.siteAdminUrl,"edit.php?post_type=jetpack-").concat(e)}):o.a.createElement("span",null)})),Ka()(Ls()(n),"handleTestimonialToggleChange",(function(){n.updateCPTs("testimonial")})),Ka()(Ls()(n),"handlePortfolioToggleChange",(function(){n.updateCPTs("portfolio")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){if(!this.props.isModuleFound("custom-content-types"))return null;var e=this.props.module("custom-content-types"),t="inactive"===this.props.getModuleOverride("custom-content-types"),n=t&&Ws("This feature has been disabled by a site administrator.");return o.a.createElement(wp,ll()({},this.props,{module:"custom-content-types",hideButton:!0}),o.a.createElement(Sp,{hasChild:!0,module:e,support:{link:hu("jetpack-support-custom-content-types")}},o.a.createElement("p",null,Ws("Add {{testimonialLink}}testimonials{{/testimonialLink}} to your website to attract new customers. If your theme doesn’t support Jetpack Testimonials, you can still use a simple shortcode to display them on your site.",{components:{testimonialLink:this.linkIfActiveCPT("testimonial")}})),o.a.createElement(Ku,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial")||t,onChange:this.handleTestimonialToggleChange,disabledReason:n},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Testimonials"))),o.a.createElement(fu,null,o.a.createElement("p",{className:"jp-form-setting-explanation"},Ws("Testimonials shortcode: [testimonials]")))),this.props.testimonialActive&&o.a.createElement(nd,{className:"jp-settings-card__configure-link",href:"".concat(this.props.siteAdminUrl,"post-new.php?post_type=jetpack-testimonial")},Ws("Add a testimonial")),o.a.createElement(Sp,{hasChild:!0,module:e,support:{link:hu("jetpack-support-custom-content-types")}},o.a.createElement("p",null,Ws("Use {{portfolioLink}}portfolios{{/portfolioLink}} on your site to showcase your best work. If your theme doesn’t support Jetpack Portfolios, you can still use a simple shortcode to display them on your site.",{components:{portfolioLink:this.linkIfActiveCPT("portfolio")}})),o.a.createElement(Ku,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio")||t,onChange:this.handlePortfolioToggleChange,disabledReason:n},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Portfolios"))),o.a.createElement(fu,null,o.a.createElement("p",{className:"jp-form-setting-explanation"},Ws("Portfolios shortcode: [portfolio]")))),this.props.portfolioActive&&o.a.createElement(nd,{className:"jp-settings-card__configure-link",href:"".concat(this.props.siteAdminUrl,"post-new.php?post_type=jetpack-portfolio")},Ws("Add a portfolio item")))}}]),t}(o.a.Component),Qd=Yu(ce((function(e,t){return{module:function(t){return ns(e,t)},isModuleFound:function(t){return Do(e,t)},getModuleOverride:function(t){return cs(e,t)},portfolioActive:t.getSettingCurrentValue("jetpack_portfolio","custom-content-types"),testimonialActive:t.getSettingCurrentValue("jetpack_testimonial","custom-content-types")}}))($d)),Xd=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"getInfiniteMode",(function(){return n.props.getOptionValue("infinite-scroll")?n.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default"})),Ka()(Ls()(n),"updateInfiniteMode",(function(e){n.setState({infinite_mode:e},n.prepareOptionsToUpdate)})),Ka()(Ls()(n),"prepareOptionsToUpdate",(function(){"infinite_default"===n.state.infinite_mode?n.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==n.state.infinite_mode&&"infinite_button"!==n.state.infinite_mode||n.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===n.state.infinite_mode})})),Ka()(Ls()(n),"updateOptions",(function(e,t){n.setState(Ka()({},e,!n.state[e]),n.props.updateFormStateModuleOption(t,e))})),Ka()(Ls()(n),"trackLearnMoreIS",(function(){al.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})})),Ka()(Ls()(n),"state",{infinite_mode:n.getInfiniteMode()}),Ka()(Ls()(n),"handleInfiniteScrollModeChange",(function(e){return function(){return n.updateInfiniteMode(e)}})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this,t=this.props.isModuleFound("infinite-scroll"),n=this.props.isModuleFound("custom-css");if(!t&&!n)return null;var r=this.props.getModule("infinite-scroll"),i=this.props.getModule("custom-css"),a="inactive"===this.props.getModuleOverride("infinite-scroll");return o.a.createElement(wp,ll()({},this.props,{header:Ws("Theme enhancements"),hideButton:!t||!this.props.isInfiniteScrollSupported,module:"theme-enhancements"}),a&&o.a.createElement(bp,{moduleName:r.name,compact:!0}),t&&!a&&o.a.createElement(Sp,{hasChild:!0,module:{module:r.module},key:"theme_enhancement_".concat(r.module),support:{text:Ws("Loads the next posts automatically when the reader approaches the bottom of the page."),link:hu("jetpack-support-infinite-scroll")}},o.a.createElement(gu,{className:"jp-form-label-wide"},r.name),o.a.createElement("p",null,Ws("Create a smooth, uninterrupted reading experience by loading more content as visitors scroll to the bottom of your archive pages.")),this.props.isInfiniteScrollSupported?[{key:"infinite_default",label:Ws("Load more posts using the default theme behavior")},{key:"infinite_button",label:Ws("Load more posts in page with a button")},{key:"infinite_scroll",label:Ws("Load more posts as the reader scrolls down")}].map((function(t){return o.a.createElement(mu,{key:"".concat(r.module,"_").concat(t.key)},o.a.createElement("input",{type:"radio",name:"infinite_mode",value:t.key,checked:t.key===e.state.infinite_mode,disabled:e.props.isSavingAnyOption([r.module,t.key]),onChange:e.handleInfiniteScrollModeChange(t.key)}),o.a.createElement("span",{className:"jp-form-toggle-explanation"},t.label))})):o.a.createElement("span",null,Ws("Theme support required.")+" ",o.a.createElement("a",{onClick:this.trackLearnMoreIS,href:r.learn_more_button+"#theme",title:Ws("Learn more about adding support for Infinite Scroll to your theme.")},Ws("Learn more")))),n&&o.a.createElement(Sp,{module:{module:i.module},support:{text:i.description,link:hu("jetpack-support-custom-css")}},o.a.createElement(Wu,{slug:"custom-css",activated:!!this.props.getOptionValue("custom-css"),toggling:this.props.isSavingAnyOption(["custom-css"]),disabled:this.props.isSavingAnyOption(["custom-css"]),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Enhance CSS customization panel")))))}}]),t}(o.a.Component),Zd=ce((function(e){return{module:function(t){return ns(e,t)},isInfiniteScrollSupported:ya(e,"infinite-scroll"),isModuleFound:function(t){return Do(e,t)}}}))(Yu(Xd)),eh=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"regeneratePostByEmailAddress",(function(e){al.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),n.props.regeneratePostByEmailAddress()})),Ka()(Ls()(n),"address",(function(){var e=n.props.getOptionValue("post_by_email_address");return!1===e||"1"===e||null===e?"":e})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){if(!this.props.isModuleFound("post-by-email"))return null;var e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),n=this.props.isUnavailableInDevMode("post-by-email")||!this.props.isLinked,r=this.address();return o.a.createElement(wp,ll()({},this.props,{module:"post-by-email",hideButton:!0}),o.a.createElement(Sp,{hasChild:!0,disableInDevMode:!0,module:e,support:{text:Ws("Allows you to publish new posts by sending an email to a special address."),link:hu("jetpack-support-post-by-email")}},o.a.createElement("p",null,Ws("Post by email is a quick way to publish new posts without visiting your site. We’ll generate a unique email address for you to send your content to, which will then appear on your site just like any other post.")),this.props.userCanManageModules?o.a.createElement(Wu,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):o.a.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),o.a.createElement(fu,null,o.a.createElement(mu,null,o.a.createElement(gu,null,Ws("Send your new posts to this email address:")),o.a.createElement(Hd,{value:r,disabled:!t||n,copy:Ws("Copy",{context:"verb"}),copied:Ws("Copied!"),prompt:Ws("Highlight and copy the following text to your clipboard:")})),o.a.createElement(Yc,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},Ws(r?"Regenerate address":"Create address")))),!this.props.isUnavailableInDevMode("post-by-email")&&!this.props.isLinked&&o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",href:"".concat(this.props.connectUrl,"&from=unlinked-user-pbe")},Ws("Create a Jetpack account to use this feature")))}}]),t}(o.a.Component),th=ce((function(e){return{module:function(t){return ns(e,t)},isModuleFound:function(t){return Do(e,t)}}}))(Yu(eh)),nh=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.isModuleFound("widgets"),t=this.props.isModuleFound("widget-visibility");return e||t?o.a.createElement(wp,ll()({},this.props,{header:Ws("Widgets",{context:"Settings header"}),module:"widgets",hideButton:!0}),e&&o.a.createElement(Sp,{module:{module:"widgets"},support:{text:this.props.widgetsModule.description,link:hu("jetpack-support-extra-sidebar-widgets")}},o.a.createElement(Wu,{slug:"widgets",activated:this.props.widgetsActive,toggling:this.props.isSavingAnyOption("widgets"),toggleModule:this.props.toggleModuleNow},Ws("Make extra widgets available for use on your site including subscription forms and Twitter streams"))),t&&o.a.createElement(Sp,{module:{module:"widget-visibility"},support:{text:Ws("Widget visibility lets you decide which widgets appear on which pages, so you can finely tailor widget content."),link:hu("jetpack-support-widget-visibility")}},o.a.createElement(Wu,{slug:"widget-visibility",activated:this.props.widgetVisibilityActive,toggling:this.props.isSavingAnyOption("widget-visibility"),toggleModule:this.props.toggleModuleNow},Ws("Enable widget visibility controls to display widgets only on particular posts or pages")))):null}}]),t}(s.Component),rh=Yu(ce((function(e,t){return{widgetVisibilityActive:t.getOptionValue("widget-visibility"),widgetsActive:t.getOptionValue("widgets"),widgetsModule:ns(e,"widgets"),isModuleFound:function(t){return Do(e,t)}}}))(nh)),ih=Yu(function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInDevMode("masterbar"),n=this.props.isLinked;return o.a.createElement(wp,ll()({},this.props,{header:Ws("WordPress.com toolbar",{context:"Settings header"}),module:"masterbar",hideButton:!0}),o.a.createElement(Sp,{disableInDevMode:!0,module:{module:"masterbar"},support:{text:Ws("Adds a toolbar with links to all your sites, notifications, your WordPress.com profile, and the Reader."),link:hu("jetpack-support-masterbar")}},o.a.createElement("p",null,Ws("The WordPress.com toolbar replaces the default WordPress admin toolbar. It offers one-click access to notifications, your WordPress.com profile and your other Jetpack and WordPress.com websites. You can also catch up on the sites you follow in the Reader.")),o.a.createElement(Wu,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},Ws("Enable the WordPress.com toolbar"))),!this.props.isUnavailableInDevMode("masterbar")&&!this.props.isLinked&&o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",href:"".concat(this.props.connectUrl,"&from=unlinked-user-masterbar")},Ws("Create a Jetpack account to use this feature")))}}]),t}(s.Component));var ah=ce((function(e){return{module:function(t){return ns(e,t)},isModuleFound:function(t){return Do(e,t)}}}))(Yu((function(e){var t=e.isModuleFound("carousel");if(!t)return null;var n=e.getOptionValue("carousel_display_comments","carousel"),r=e.getOptionValue("carousel_display_exif","carousel"),i=e.getOptionValue("carousel"),a=function(t,n,r,a){return o.a.createElement(Ku,{checked:t,disabled:!i||e.isSavingAnyOption(["carousel",n]),onChange:r},o.a.createElement("span",{className:"jp-form-toggle-explanation"},a))};return o.a.createElement(wp,ll()({},e,{module:"media",header:Ws("Media"),hideButton:!t,saveDisabled:e.isSavingAnyOption("carousel_background_color")}),o.a.createElement(Sp,{hasChild:!0,module:{module:"carousel"},support:{link:hu("jetpack-support-carousel")}},o.a.createElement("p",null,Ws("Create full-screen carousel slideshows for the images in your posts and pages. Carousel galleries are mobile-friendly and encourage site visitors to interact with your photos.")),o.a.createElement(Wu,{slug:"carousel",activated:i,toggling:e.isSavingAnyOption("carousel"),toggleModule:e.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Ws("Display images in a full-screen carousel gallery"))),o.a.createElement(fu,null,a(r,"carousel_display_exif",(function(){e.updateFormStateModuleOption("carousel","carousel_display_exif")}),Ws("Show photo Exif metadata in carousel (when available)")),a(n,"carousel_display_comments",(function(){e.updateFormStateModuleOption("carousel","carousel_display_comments")}),Ws("Show comments area in carousel")),o.a.createElement(fu,null,o.a.createElement("p",{className:"jp-form-setting-explanation"},Ws("Exif data shows viewers additional technical details of a photo, like its focal length, aperture, and ISO."))),o.a.createElement(mu,null,o.a.createElement(gu,{className:"jp-form-label-wide"},Ws("Carousel color scheme")),o.a.createElement(ku,ll()({name:"carousel_background_color",value:e.getOptionValue("carousel_background_color"),disabled:!i||e.isSavingAnyOption(["carousel","carousel_background_color"])},e,{validValues:e.validValues("carousel_background_color","carousel")}))))))}))),sh=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,getModuleOverride:this.props.getModuleOverride},t=["carousel","copy-post","custom-css","latex","masterbar","markdown","shortcodes","custom-content-types","post-by-email","infinite-scroll","widgets","widget-visibility"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;var n=this.props.userCanManageModules||this.props.userCanEditPosts,r=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return o.a.createElement("div",null,o.a.createElement(pu,null),o.a.createElement(au,{title:this.props.searchTerm?Ws("Writing"):Ws("Compose content the way you want to and streamline your publishing experience."),className:"jp-settings-description"}),this.props.isModuleFound("carousel")&&o.a.createElement(ah,e),n&&o.a.createElement(Yd,ll()({},e,{userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("custom-content-types")&&o.a.createElement(Qd,e),o.a.createElement(Zd,e),o.a.createElement(rh,e),this.props.isModuleFound("post-by-email")&&r&&o.a.createElement(th,ll()({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&o.a.createElement(ih,ll()({connectUrl:this.props.connectUrl},e)),!n&&!r&&o.a.createElement(au,null,Ws("Writing tools available to you will be shown here when an administrator enables them.")))}}]),t}(o.a.Component);Ka()(sh,"displayName","WritingSettings");var oh=ce((function(e){return{module:function(t){return ns(e,t)},settings:zo(e),masterbarIsAlwaysActive:ba(e),isDevMode:oo(e),isUnavailableInDevMode:function(t){return po(e,t)},userCanEditPosts:ea(e),isModuleActivated:function(t){return ss(e,t)},isLinked:so(e),userCanManageModules:Xi(e),isModuleFound:function(t){return Do(e,t)},connectUrl:to(e),getModuleOverride:function(t){return cs(e,t)}}}))(sh),ch=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e={searchTerm:this.props.searchTerm,rewindStatus:this.props.rewindStatus,userCanManageModules:this.props.userCanManageModules};return o.a.createElement("div",{className:"jp-settings-container"},o.a.createElement("div",{className:"jp-no-results"},e.searchTerm?Ws("No search results found for %(term)s",{args:{term:e.searchTerm}}):Ws("Enter a search term to find settings or close search.")),o.a.createElement(gd,ll()({siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,active:"/security"===this.props.location.pathname||"/settings"===this.props.location.pathname&&e.userCanManageModules},e)),o.a.createElement(Mp,ll()({siteRawUrl:this.props.siteRawUrl,active:"/discussion"===this.props.location.pathname},e)),o.a.createElement(Bp,ll()({active:"/performance"===this.props.location.pathname},e)),o.a.createElement(Wd,ll()({siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,active:"/traffic"===this.props.location.pathname},e)),o.a.createElement(oh,ll()({siteAdminUrl:this.props.siteAdminUrl,active:"/writing"===this.props.location.pathname||"/settings"===this.props.location.pathname&&!e.userCanManageModules},e)),o.a.createElement(_d,ll()({siteAdminUrl:this.props.siteAdminUrl,active:"/sharing"===this.props.location.pathname},e)),o.a.createElement(Jp,ll()({active:"/privacy"===this.props.location.pathname},e)),o.a.createElement(Yp,{searchTerm:this.props.searchTerm}))}}]),t}(o.a.Component);Ka()(ch,"displayName","SearchableSettings");var lh=ut(ch),uh=function(e){return function(t){t({type:_r,answer:e})}},ph=function(){return function(e,t){e({type:_r});var n=t().jetpack.setupWizard;return zi.saveSetupQuestionnaire({questionnaire:n.questionnaire}).then((function(){e({type:Er})})).catch((function(t){return e({type:Cr,error:t})}))}},dh=function(e){return function(t,n){t({type:Sr,status:e});var r=n().jetpack.setupWizard;return zi.saveSetupQuestionnaire({status:r.status}).then((function(){t({type:Tr})})).catch((function(e){return t({type:Ar,error:e})}))}},hh=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.props.isFetchingSetupWizardQuestionnaire||this.props.isDevMode||this.props.fetchSetupWizardQuestionnaire()}},{key:"render",value:function(){return null}}]),t}(s.Component);Ka()(hh,"propTypes",{isFetchingSetupWizardQuestionnaire:u.a.bool,isDevMode:u.a.bool}),Ka()(hh,"defaultProps",{isFetchingScanStatus:!1,isDevMode:!1});var fh=ce((function(e){return{isFetchingSetupWizardQuestionnaire:$o(e),isDevMode:oo(e)}}),(function(e){return{fetchSetupWizardQuestionnaire:function(){return e((function(e){return e({type:br}),zi.fetchSetupQuestionnaire().then((function(t){e({type:yr,questionnaire:t})})).catch((function(t){e({type:wr,error:t})}))}))}}}))(hh),mh=(n(350),function(e){Object(s.useEffect)((function(){e.updateStatus("intro-page"),al.tracks.recordEvent("jetpack_wizard_page_view",{step:"intro-page"})}),[]);var t=Object(s.useCallback)((function(){e.updateSiteUseQuestion({use:"personal"}),e.saveQuestionnaire(),al.tracks.recordEvent("jetpack_wizard_question_answered",{question:"use",answer:"personal"})}),[]),n=Object(s.useCallback)((function(){e.updateSiteUseQuestion({use:"business"}),e.saveQuestionnaire(),al.tracks.recordEvent("jetpack_wizard_question_answered",{question:"use",answer:"business"})}),[]),r=Object(s.useCallback)((function(){al.tracks.recordEvent("jetpack_setup_wizard_question_skipped",{question:"use"})}),[]);return o.a.createElement("div",{className:"jp-setup-wizard-main"},o.a.createElement("img",{width:"200px",height:"200px",src:Td+"/jetpack-powering-up.svg",alt:Ws("A jetpack site powering up")}),o.a.createElement("h1",{className:"jp-setup-wizard-header"},Ws("Set up Jetpack for better site security, performance, and more.")),o.a.createElement("p",{className:"jp-setup-wizard-paragraph"},Ws("Jetpack is a cloud-powered tool built by Automattic.")),o.a.createElement("p",{className:"jp-setup-wizard-paragraph"},Ws("Answer a few questions and we’ll help you secure, speed up, customize, and grow your WordPress website.")),o.a.createElement("div",{className:"jp-setup-wizard-intro-question"},o.a.createElement("h2",null,Ws("What will %(siteTitle)s be used for?",{args:{siteTitle:e.siteTitle}})),o.a.createElement("div",{className:"jp-setup-wizard-answer-buttons"},o.a.createElement(Yc,{href:"#/setup/income",primary:!0,className:"jp-setup-wizard-button",onClick:t},Ws("Personal Use")),o.a.createElement(Yc,{href:"#/setup/income",primary:!0,className:"jp-setup-wizard-button",onClick:n},Ws("Business Use"))),o.a.createElement("a",{className:"jp-setup-wizard-skip-link",href:"#/setup/features",onClick:r},Ws("Skip to recommended features"))))});mh.propTypes={siteTitle:u.a.string.isRequired},mh=ce((function(e){return{}}),(function(e){return{updateSiteUseQuestion:function(t){return e(uh(t))},saveQuestionnaire:function(){return e(ph())},updateStatus:function(t){return e(dh(t))}}}))(mh);n(351);var gh=function(e){var t=e.checked,n=e.title,r=e.details,i=e.answerKey,a=e.updateChecklistAnswerQuestion,c=Object(s.useState)(!1),l=Vs()(c,2),u=l[0],p=l[1],d=Object(s.useState)(!1),h=Vs()(d,2),f=h[0],m=h[1],g=Object(s.useCallback)((function(){m(window.innerWidth<=660?"small":"large")}),[window.innerWidth]);Object(s.useEffect)((function(){return g(),window.addEventListener("resize",g),function(){window.removeEventListener("resize",g)}}));var v=Object(s.useCallback)((function(){if("small"!==f){var e=!t;a(Ka()({},i,e))}}),[t,f]),b=Object(s.useCallback)((function(){if("large"!==f){var e=!t;a(Ka()({},i,e))}}),[t,f]),y=Object(s.useCallback)((function(){p(!u)}),[u]),w="small"===f,_=u?"chevron-up":"chevron-down";return o.a.createElement("div",{className:Gc()("jp-checklist-answer-container",{checked:t}),onClick:v,onKeyPress:v,role:"checkbox","aria-checked":t,tabIndex:w?-1:0},o.a.createElement("div",{className:"jp-checklist-answer-checkbox-container"},o.a.createElement("input",{type:"checkbox",onClick:b,onKeyPress:b,tabIndex:w?0:-1,checked:t})),o.a.createElement("div",{className:"jp-checklist-answer-title"},o.a.createElement("p",null,n)),o.a.createElement("div",{className:Gc()("jp-checklist-answer-details",{expanded:u})},o.a.createElement("p",null,r)),o.a.createElement("div",{className:Gc()("jp-checklist-answer-chevron-container",{expanded:u}),onClick:y,onKeyPress:y,role:"button",tabIndex:w?0:-1},o.a.createElement(Fl,{icon:_,size:21})))};gh.propTypes={answerKey:u.a.string.isRequired,title:u.a.string.isRequired,details:u.a.string.isRequired},gh=ce((function(e,t){return{checked:Qo(e,t.answerKey)}}),(function(e){return{updateChecklistAnswerQuestion:function(t){return e(uh(t))}}}))(gh);n(352);var vh=function(e){var t=dt();Object(s.useEffect)((function(){e.updateStatus("income-page"),al.tracks.recordEvent("jetpack_wizard_page_view",{step:"income-page"});var n=new URLSearchParams(t.search).get("use");["personal","business"].includes(n)&&(e.updateSiteUseQuestion({use:n}),e.saveQuestionnaire(),al.tracks.recordEvent("jetpack_wizard_question_answered",{question:"use",answer:n}))}),[t]);var n=Object(s.useCallback)((function(){for(var t in e.saveQuestionnaire(),e.answers)e.answers[t]&&al.tracks.recordEvent("jetpack_wizard_question_answered",{question:"income",answer:t})}),[e.answers]),r=Object(s.useCallback)((function(){al.tracks.recordEvent("jetpack_setup_wizard_question_skipped",{question:"income"})}));return o.a.createElement("div",{className:"jp-setup-wizard-main"},o.a.createElement("img",{width:"200px",height:"200px",src:Td+"generating-cash.svg",alt:Ws("A jetpack site generating revenue")}),o.a.createElement("h1",null,Ws("Do you intend to make money directly from %(siteUrl)s?",{args:{siteUrl:e.siteTitle}})),o.a.createElement("h2",{className:"jp-setup-wizard-subtitle"},Ws("Check all that apply")),o.a.createElement("div",{className:"jp-setup-wizard-income-answer-container"},o.a.createElement(gh,{answerKey:"advertising-revenue",title:Ws("Advertising or affiliate marketing"),details:Ws("You're planning on putting ads and or affiliate links on your website.")}),o.a.createElement(gh,{answerKey:"store-revenue",title:Ws("Online store"),details:Ws("You're planning on selling physical goods, digital downloads, or services directly to your customers.")}),o.a.createElement(gh,{answerKey:"appointments-revenue",title:Ws("Appointments / bookings"),details:Ws("Your services require booking appointments online, for example a hair salon or accountant.")}),o.a.createElement(gh,{answerKey:"location-revenue",title:Ws("Physical location"),details:Ws("You have a physical store or business and this website will help drive foot traffic to your location.")})),o.a.createElement("div",{className:"jp-setup-wizard-advance-container"},o.a.createElement(Yc,{href:"#/setup/updates",primary:!0,className:"jp-setup-wizard-button",onClick:n},Ws("Continue")),o.a.createElement("a",{className:"jp-setup-wizard-skip-link",href:"#/setup/updates",onClick:r},Ws("None of these apply"))))};vh.propTypes={siteTitle:u.a.string.isRequired},vh=ce((function(e){return{answers:["advertising-revenue","store-revenue","appointments-revenue","location-revenue"].reduce((function(t,n){return bi()({},t,Ka()({},n,Qo(e,n)))}),{})}}),(function(e){return{saveQuestionnaire:function(){return e(ph())},updateSiteUseQuestion:function(t){return e(uh(t))},updateStatus:function(t){return e(dh(t))}}}))(vh);n(353);var bh=function(e){Object(s.useEffect)((function(){e.updateStatus("updates-page"),al.tracks.recordEvent("jetpack_wizard_page_view",{step:"updates-page"})}),[]);var t=Object(s.useCallback)((function(){e.updateUpdatesQuestion({"site-updates":!0}),e.saveQuestionnaire(),al.tracks.recordEvent("jetpack_wizard_question_answered",{question:"updates",answer:"yes"})}),[]),n=Object(s.useCallback)((function(){e.updateUpdatesQuestion({"site-updates":!1}),e.saveQuestionnaire(),al.tracks.recordEvent("jetpack_wizard_question_answered",{question:"updates",answer:"no"})}),[]),r=Object(s.useCallback)((function(){al.tracks.recordEvent("jetpack_setup_wizard_question_skipped",{question:"updates"})}),[]);return o.a.createElement("div",{className:"jp-setup-wizard-main jp-setup-wizard-updates-main"},o.a.createElement("img",{src:Td+"jetpack-publicize-1.svg",alt:Ws("A jetpack site using publicize to share posts")}),o.a.createElement("h1",null,Ws("Will %(siteTitle)s have blog posts, news, or regular updates?",{args:{siteTitle:e.siteTitle}})),o.a.createElement("div",{className:"jp-setup-wizard-updates-answer-buttons-container"},o.a.createElement(Yc,{href:"#/setup/features",primary:!0,className:"jp-setup-wizard-updates-button",onClick:t},Ws("Yes")),o.a.createElement(Yc,{href:"#/setup/features",className:"jp-setup-wizard-updates-button",onClick:n},Ws("No"))),o.a.createElement("a",{className:"jp-setup-wizard-skip-link",href:"#/setup/features",onClick:r},Ws("Skip")))};bh=ce((function(e){return{}}),(function(e){return{updateUpdatesQuestion:function(t){return e(uh(t))},saveQuestionnaire:function(){return e(ph())},updateStatus:function(t){return e(dh(t))}}}))(bh);var yh=n(97);function wh(e){return Ws("Included with %(productName)s",{args:{productName:e}})}var _h={ads:{mapStateToProps:function(e){var t,n,r,i=hc(e),a=sc(i.product_slug),s=["is-premium-plan","is-business-plan"].includes(a);return s||(t="#/plans"),s&&(n=wh(i.product_name),r="#/settings?term=wordads"),{feature:"ads",title:Ws("Ads"),details:Ws("Generate income with high-quality ads."),checked:Fo(e,"wordads"),isPaid:!0,configureLink:r,upgradeLink:t,info:n}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({wordads:!t}))}}}},"anti-spam":{mapStateToProps:function(e){var t,n,r,i=hc(e),a=sc(i.product_slug),s=["is-personal-plan","is-premium-plan","is-business-plan"].includes(a),o=!1;return s&&(t=hu("jetpack-setup-wizard-anti-spam-get-started"),o=!0),s||(n="#/plans"),s&&(r=wh(i.product_name)),{feature:"anti-spam",title:Ws("Anti-spam"),details:Ws("No more approving or vetting."),checked:!0===Da(e),isDisabled:s,isPaid:!0,optionsLink:t,isOptionsLinkExternal:o,upgradeLink:n,info:r}}},backups:{mapStateToProps:function(e){var t,n,r,i=hc(e),a=sc(i.product_slug),s=function(e){return!!_c(e)}(e)||["is-personal-plan","is-premium-plan","is-business-plan","is-daily-backup-plan","is-realtime-backup-plan"].includes(a);if(s&&(t="#/settings?term=backup"),s||(n="#/plans"),s){var o=_c(e);r=wh(o?o.product_name:i.product_name)}return{feature:"backups",title:Ws("Daily or Real-time backups"),details:Ws("Get time travel for your site with Jetpack Backup."),checked:s,isDisabled:s,optionsLink:t,upgradeLink:n,info:r,isPaid:!0}}},"beautiful-math":{mapStateToProps:function(e){return{feature:"beautiful-math",title:Ws("Beautiful math"),details:Ws("Display math and formulas beautifully."),checked:Fo(e,"latex"),optionsLink:"#/settings?term=latex"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({latex:!t}))}}}},"brute-force-protect":{mapStateToProps:function(e){return{feature:"brute-force-protect",title:Ws("Brute force protection"),details:Ws("Stop malicious login attempts."),checked:Fo(e,"protect"),optionsLink:"#/settings?term=brute%20force"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({protect:!t}))}}}},carousel:{mapStateToProps:function(e){return{feature:"carousel",title:Ws("Carousel"),details:Ws("Create full-screen carousel slideshows for the images in your posts and pages."),checked:Fo(e,"carousel"),optionsLink:"#/settings?term=carousel"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({carousel:!t}))}}}},"comment-likes":{mapStateToProps:function(e){return{feature:"comment-likes",title:Ws("Comment Likes"),details:Ws("Increase engagement with liking on comments."),checked:Fo(e,"comment-likes"),optionsLink:"#/settings?term=comment%20likes"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"comment-likes":!t}))}}}},comments:{mapStateToProps:function(e){return{feature:"comments",title:Ws("Comments"),details:Ws("An enhanced comments section with better verfiication."),checked:Fo(e,"comments"),optionsLink:"#/settings?term=comments"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({comments:!t}))}}}},"contact-form":{mapStateToProps:function(e){return{feature:"contact-form",title:Ws("Contact Form"),details:Ws("Add contact forms using the block editor."),checked:Fo(e,"contact-form"),optionsLink:"#/settings?term=contact%20form"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"contact-form":!t}))}}}},"copy-post":{mapStateToProps:function(e){return{feature:"copy-post",title:Ws("Copy Post"),details:Ws("Simply duplicate content."),checked:Fo(e,"copy-post"),optionsLink:"#/settings?term=copy%20post"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"copy-post":!t}))}}}},"custom-css":{mapStateToProps:function(e){return{feature:"custom-css",title:Ws("Custom CSS"),details:Ws("Enable an enhanced CSS customization panel."),checked:Fo(e,"custom-css"),optionsLink:"#/settings?term=custom%20css"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"custom-css":!t}))}}}},"enhanced-distribution":{mapStateToProps:function(e){return{feature:"enhanced-distribution",title:Ws("Enhanced Distribution"),details:Ws("Increase reach and traffic."),checked:Fo(e,"enhanced-distribution"),optionsLink:"#/traffic?term=enhanced"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"enhanced-distribution":!t}))}}}},"extra-sidebar-widgets":{mapStateToProps:function(e){return{feature:"extra-sidebar-widgets",title:Ws("Extra Sidebar Widgets"),details:Ws("Add more widgets."),checked:Fo(e,"widgets"),optionsLink:"#/traffic?term=extra"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({widgets:!t}))}}}},"google-analytics":{mapStateToProps:function(e){var t,n,r,i=hc(e),a=sc(i.product_slug),s=["is-premium-plan","is-business-plan"].includes(a);return s||(t="#/plans"),s&&(n=wh(i.product_name),r="#/settings?term=google%20analytics"),{feature:"google-analytics",title:Ws("Google Analytics"),details:Ws("Add your Google Analytics account."),checked:Fo(e,"google-analytics"),isPaid:!0,configureLink:r,upgradeLink:t,info:n}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"google-analytics":!t}))}}}},"gravatar-hovercards":{mapStateToProps:function(e){return{feature:"gravatar-hovercards",title:Ws("Gravatar Hovercards"),details:Ws("Give comments life."),checked:Fo(e,"gravatar-hovercards"),optionsLink:"#/traffic?term=hovercards"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"gravatar-hovercards":!t}))}}}},"infinite-scroll":{mapStateToProps:function(e){return{feature:"infinite-scroll",title:Ws("Infinite Scroll"),details:Ws("Create a smooth, uninterrupted reading experience by loading more content as visitors scroll to the bottom of your archive pages."),checked:!!Fo(e,"infinite-scroll"),optionsLink:"#/settings?term=infinite"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu(t?{"infinite-scroll":!1}:{"infinite-scroll":!0,infinite_scroll:!0}))}}}},"json-api":{mapStateToProps:function(e){return{feature:"json-api",title:Ws("JSON API"),details:Ws("JSON API access for developers."),checked:Fo(e,"json-api"),optionsLink:"/wp-admin/admin.php?page=jetpack#/traffic?term=json"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"json-api":!t}))}}}},"lazy-images":{mapStateToProps:function(e){return{feature:"lazy-images",title:Ws("Lazy Loading Images"),details:Ws("Further improve site speed and only load images visitors need."),checked:Fo(e,"lazy-images"),optionsLink:"#/settings?term=lazy"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"lazy-images":!t}))}}}},likes:{mapStateToProps:function(e){return{feature:"likes",title:Ws("Likes"),details:Ws("Add a like button to your posts."),checked:Fo(e,"likes"),optionsLink:"#/settings?term=likes"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({likes:!t}))}}}},markdown:{mapStateToProps:function(e){return{feature:"markdown",title:Ws("Markdown"),details:Ws("Write faster rich-text."),checked:Fo(e,"markdown"),optionsLink:"#/traffic?term=markdown"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({markdown:!t}))}}}},masterbar:{mapStateToProps:function(e){return{feature:"masterbar",title:Ws("WordPress.com Toolbar"),details:Ws("The WordPress.com toolbar replaces the default WordPress admin toolbar."),checked:Fo(e,"masterbar"),optionsLink:"#/settings?term=toolbar"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({masterbar:!t}))}}}},monitor:{mapStateToProps:function(e){return{feature:"monitor",title:Ws("Downtime Monitoring"),details:Ws("Get an alert immediately if your site goes down."),checked:Fo(e,"monitor"),optionsLink:"#/settings?term=monitor"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({monitor:!t}))}}}},notifications:{mapStateToProps:function(e){return{feature:"notifications",title:Ws("Notifications"),details:Ws("Stay up-to-date with your site."),checked:Fo(e,"notes"),optionsLink:"#/settings?term=push"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({notes:!t}))}}}},portfolio:{mapStateToProps:function(e){return{feature:"portfolio",title:Ws("Portfolio: Custom content types"),details:Ws("Use portfolios on your site to showcase your best work."),checked:Fo(e,"jetpack_portfolio"),optionsLink:"/wp-admin/admin.php?page=jetpack#/settings?term=portfolios"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e((function(e,n){var r=!t,i=Fo(n(),"jetpack_testimonial");return e(cu({jetpack_portfolio:r,"custom-content-types":r||i}))}))}}}},"post-by-email":{mapStateToProps:function(e){return{feature:"post-by-email",title:Ws("Post by email"),details:Ws("Post by email is a quick way to publish new posts without visiting your site."),checked:Fo(e,"post-by-email"),configureLink:"#/traffic?term=post%20by%20email"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"post-by-email":!t}))}}}},publicize:{mapStateToProps:function(e){var t=Ji(e);return{feature:"publicize",title:Ws("Publicize"),details:Ws("Automaticaly share content on your favorite social media accounts."),checked:Fo(e,"publicize"),configureLink:hu("calypso-marketing-connections",{site:t}),isButtonLinkExternal:!0}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({publicize:!t}))}}}},"related-posts":{mapStateToProps:function(e){return{feature:"related-posts",title:Ws("Related posts"),details:Ws("Keep your visitors engaged with related content at the bottom of each post."),checked:Fo(e,"related-posts"),optionsLink:"#/settings?term=related%20posts"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"related-posts":!t}))}}}},scan:{mapStateToProps:function(e){var t,n,r,i=hc(e),a=sc(i.product_slug),s=function(e){return!!kc(e)}(e)||["is-premium-plan","is-business-plan","is-scan-plan"].includes(a);if(s&&(t="#/settings?term=scan"),s||(n="#/plans"),s){var o=kc(e);r=wh(o?o.product_name:i.product_name)}return{feature:"scan",title:Ws("Security scanning"),details:Ws("Stop threats to keep your website safe."),checked:s,isDisabled:s,isPaid:!0,optionsLink:t,upgradeLink:n,info:r}}},search:{mapStateToProps:function(e){var t,n;return"is-business-plan"===sc(hc(e).product_slug)||Cc(e)?n="#/settings?term=search":t="#/plans",{feature:"search",title:Ws("Search"),details:Ws("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it."),checked:Fo(e,"search"),isPaid:!0,upgradeLink:t,optionsLink:n}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({search:!t}))}}}},sso:{mapStateToProps:function(e){return{feature:"sso",title:Ws("Secure Sign On"),details:Ws("Add an extra layer of security."),checked:Fo(e,"sso"),optionsLink:"#/settings?term=secure%20sign%20on"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({sso:!t}))}}}},seo:{mapStateToProps:function(e){var t,n,r=sc(hc(e).product_slug),i=["is-premium-plan","is-business-plan"].includes(r);return i&&(t="#/settings?term=seo"),i||(n="#/plans"),{feature:"seo",title:Ws("SEO"),details:Ws("Take control of the way search engines represent your site."),checked:Fo(e,"seo-tools"),configureLink:t,upgradeLink:n,isPaid:!0}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"seo-tools":!t}))}}}},sitemaps:{mapStateToProps:function(e){return{feature:"sitemaps",title:Ws("Sitemaps"),details:Ws("Automatically generate sitemaps for all your content."),checked:Fo(e,"sitemaps"),optionsLink:"#/settings?term=sitemaps"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({sitemaps:!t}))}}}},sharing:{mapStateToProps:function(e){return{feature:"sharing",title:Ws("Sharing"),details:Ws("Increase sharing of your posts and pages. "),checked:Fo(e,"sharedaddy"),optionsLink:"#/settings?term=sharedaddy"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({sharedaddy:!t}))}}}},shortcodes:{mapStateToProps:function(e){return{feature:"shortcodes",title:Ws("Shortcode Embeds"),details:Ws("Embed YouTube videos, and other content easily."),checked:Fo(e,"shortcodes"),optionsLink:"#/traffic?term=embeds"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({shortcodes:!t}))}}}},shortlinks:{mapStateToProps:function(e){return{feature:"shortlinks",title:Ws("WP.me Shortlinks"),details:Ws("Build quick links for sharing."),checked:Fo(e,"shortlinks"),optionsLink:"#/settings?term=shortlink"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({shortlinks:!t}))}}}},"simple-payments-block":{mapStateToProps:function(e){var t,n,r,i=hc(e),a=sc(i.product_slug),s=["is-premium-plan","is-business-plan"].includes(a);s||(t="#/plans");var o=!1;return s&&(n=wh(i.product_name),r=hu("jetpack-setup-wizard-simple-payments-support"),o=!0),{feature:"simple-payments-block",title:Ws("Simple Payments Block"),details:Ws("A simple way to accept payments."),checked:s,isDisabled:s,isPaid:!0,configureLink:r,upgradeLink:t,info:n,isButtonLinkExternal:o}}},"site-accelerator":{mapStateToProps:function(e){return{feature:"site-accelerator",title:Ws("Site Accelerator"),details:Ws("Enable for faster images and a faster site."),checked:Fo(e,"photon")&&Fo(e,"photon-cdn"),optionsLink:"#/settings?term=image%20optimize"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({photon:!t,"photon-cdn":!t}))}}}},"site-stats":{mapStateToProps:function(e){return{feature:"site-stats",title:Ws("Site Stats"),details:Ws("Track your site visitors and learn about your most popular content."),checked:Fo(e,"stats"),optionsLink:"#/settings?term=site%20stats"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({stats:!t}))}}}},"site-verification":{mapStateToProps:function(e){return{feature:"site-verification",title:Ws("Site verification"),details:Ws("Verify your site with Google, Bing, Yandex, and Pinterest."),checked:Fo(e,"verification-tools"),configureLink:"#/settings?term=verify"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"verification-tools":!t}))}}}},subscriptions:{mapStateToProps:function(e){return{feature:"subscriptions",title:Ws("Subscriptions"),details:Ws("Send post notifications to your visitors."),checked:Fo(e,"subscriptions"),optionsLink:"#/settings?term=subscriptions"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({subscriptions:!t}))}}}},testimonials:{mapStateToProps:function(e){return{feature:"testimonials",title:Ws("Testimonial: Custom content types"),details:Ws("Add testimonials to your website to attract new customers."),checked:Fo(e,"jetpack_testimonial"),optionsLink:"#/settings?term=testimonials"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e((function(e,n){var r=Fo(n(),"jetpack_portfolio"),i=!t;return e(cu({jetpack_testimonial:i,"custom-content-types":r||i}))}))}}}},"tiled-galleries":{mapStateToProps:function(e){return{feature:"tiled-galleries",title:Ws("Tiled Galleries"),details:"Add beautifully laid out galleries using the block editor.",checked:Fo(e,"tiled-gallery"),optionsLink:"https://jetpack.com/support/jetpack-blocks/tiled-gallery-block/",isOptionsLinkExternal:!0}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"tiled-gallery":!t}))}}}},videopress:{mapStateToProps:function(e){var t,n,r,i=hc(e),a=sc(i.product_slug),s=["is-premium-plan","is-business-plan"].includes(a);return s||(t="#/plans"),s&&(n=wh(i.product_name),r="#/settings?term=video%20player"),{feature:"videopress",title:Ws("VideoPress"),details:Ws("Host fast, high-quality, ad-free video."),checked:Fo(e,"videopress"),isPaid:!0,optionsLink:r,upgradeLink:t,info:n}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({videopress:!t}))}}}},"widget-visibility":{mapStateToProps:function(e){return{feature:"widget-visibility",title:Ws("Widget Visibility"),details:Ws("Control your widgets at the post or page level."),checked:Fo(e,"widget-visibility"),optionsLink:"#/settings?term=visibility"}},mapDispatchToProps:function(e){return{onToggleChange:function(t){return e(cu({"widget-visibility":!t}))}}}}},kh=(n(354),function(e){var t=e.feature,n=e.title,r=e.details,i=e.info,a=e.checked,c=e.configureLink,l=e.upgradeLink,u=e.optionsLink,p=e.isPaid,d=void 0!==p&&p,h=e.isButtonLinkExternal,f=void 0!==h&&h,m=e.isOptionsLinkExternal,g=void 0!==m&&m,v=Object(s.useState)(!1),b=Vs()(v,2),y=b[0],w=b[1],_=Object(s.useCallback)((function(){w(window.innerWidth<=660?"small":"large")}),[window.innerWidth]);Object(s.useEffect)((function(){return _(),window.addEventListener("resize",_),function(){window.removeEventListener("resize",_)}}));var k,E=Object(s.useCallback)((function(){"function"==typeof e.onToggleChange&&(e.onToggleChange(a),al.tracks.recordEvent("jetpack_wizard_feature_toggled",{feature:t,newValue:!a}))}),[a,e.onToggleChange]),C=Object(s.useCallback)((function(){al.tracks.recordEvent("jetpack_wizard_feature_upgrade",{feature:t})}),[t]),S=Object(s.useCallback)((function(){al.tracks.recordEvent("jetpack_wizard_feature_configure",{feature:t})}),[t]),T=Object(s.useCallback)((function(){al.tracks.recordEvent("jetpack_wizard_feature_view_options",{feature:t})}),[t]);!a&&l?k=o.a.createElement(Yc,{href:l,primary:!0,target:f?"_blank":"",onClick:C},Ws("Upgrade now"),f&&o.a.createElement("span",null,o.a.createElement(Fl,{icon:"external"}))):c&&(k=o.a.createElement(Yc,{href:c,target:f?"_blank":"",onClick:S},Ws("Configure"),f&&o.a.createElement("span",null,o.a.createElement(Fl,{icon:"external"}))));var A,x,M="large"===y,j="small"===y;if(i&&(A=o.a.createElement("p",{className:"jp-setup-wizard-feature-toggle-info"},i)),u){var N=g?{target:"_blank",rel:"noopener noreferrer"}:{};x=o.a.createElement("a",ll()({href:u,className:"jp-setup-wizard-view-options-link"},N,{onClick:T}),Ws("View options"),g&&o.a.createElement(Fl,{icon:"external",size:"18"}))}var O=o.a.createElement(yh.FormToggle,{checked:a,onChange:E}),P=!(!e.isDisabled&&!l);return o.a.createElement("div",{className:Gc()("jp-setup-wizard-feature-toggle",{"jp-setup-wizard-fixed-right-column":M&&(k||A)})},o.a.createElement("div",{className:Gc()("jp-setup-wizard-form-toggle-container",{"is-paid-feature":d})},o.a.createElement(Fl,{icon:"star"}),P?o.a.createElement(yh.Disabled,null,O):O),j&&o.a.createElement("div",{className:"jp-setup-wizard-form-toggle-title-small"},o.a.createElement("p",null,n)),o.a.createElement("div",{className:"jp-setup-wizard-feature-toggle-content-container"},o.a.createElement("p",{className:"jp-setup-wizard-feature-toggle-content"},M&&o.a.createElement("span",null,n),r,x&&o.a.createElement("span",null,x))),(k||A)&&o.a.createElement("div",{className:"jp-setup-wizard-feature-toggle-button-container"},k,A))});kh.propTypes={feature:u.a.string.isRequired,title:u.a.string.isRequired,details:u.a.string.isRequired,info:u.a.string,checked:u.a.bool.isRequired,onToggleChange:u.a.func,configureLink:u.a.string,upgradeLink:u.a.string,optionsLink:u.a.string,isPaid:u.a.bool,isDisabled:u.a.bool,isButtonLinkExternal:u.a.bool,isOptionsLinkExternal:u.a.bool},kh=ce((function(e,t){return function(e,t){if(!Object.keys(_h).includes(t))throw"Feature not found: ".concat(t);var n=_h[t].mapStateToProps;return"function"==typeof _h[t].mapStateToProps?n(e):{}}(e,t.feature)}),(function(e,t){return function(e,t){if(!Object.keys(_h).includes(t))throw"Feature not found: ".concat(t);var n=_h[t].mapDispatchToProps;return"function"==typeof n?n(e):{}}(e,t.feature)}))(kh);n(355);var Eh=function(e){var t=e.title,n=e.details,r=e.features;return o.a.createElement("div",{className:"jp-setup-wizard-feature-toggle-group"},o.a.createElement("h2",null,t),o.a.createElement("p",{className:"jp-setup-wizard-feature-toggle-group-details"},n),o.a.createElement("div",{className:"jp-setup-wizard-feature-toggle-group-toggles-area-container"},r.map((function(e){return o.a.createElement("div",{className:"jp-setup-wizard-feature-toggle-group-toggle-container"},o.a.createElement(kh,{feature:e}))}))))};Eh.propTypes={title:u.a.string.isRequired,details:u.a.string.isRequired,features:u.a.array.isRequired};n(356);var Ch=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"componentDidMount",(function(){n.props.isFetchingSettingsList||n.props.fetchSettings(),n.props.updateStatus("features-page"),al.tracks.recordEvent("jetpack_wizard_page_view",{step:"features-page"})})),Ka()(Ls()(n),"onDoneButtonClick",(function(){n.props.updateStatus("completed"),al.tracks.recordEvent("jetpack_wizard_features_done"),window.setTimeout((function(){window.location.reload()}),200)})),Ka()(Ls()(n),"onExploreMoreButtonClick",(function(){al.tracks.recordEvent("jetpack_wizard_features_explore_more")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"jp-setup-wizard-main jp-setup-wizard-recommended-features-main"},o.a.createElement("img",{src:Td+"jetpack-new-heights.svg",alt:Ws("A rocketship using Jetpack to reach new heights")}),o.a.createElement("h1",null,Ws("Get started with Jetpack’s powerful features")),o.a.createElement("p",{className:"jp-setup-wizard-recommended-features-p1"},Ws("Jetpack has a lot of features so we’ve made a few recommendations for you below.")),o.a.createElement("p",{className:"jp-setup-wizard-recommended-features-p2"},Ws("You can change your feature settings at any time.")),o.a.createElement("div",{className:"jp-setup-wizard-feature-groups-container"},this.props.recommendedFeatureGroups.map((function(e){return o.a.createElement(Eh,{title:e.title,details:e.details,features:e.features})}))),o.a.createElement("div",{className:"jp-setup-wizard-recommended-features-buttons-container"},o.a.createElement(Yc,{primary:!0,href:"#/dashboard",onClick:this.onDoneButtonClick},Ws("I’m done for now")),o.a.createElement(Yc,{href:"#/settings",onClick:this.onExploreMoreButtonClick},Ws("Explore more features"))))}}]),t}(s.Component);Ch=ce((function(e){return{isFetchingSettingsList:Lo(e),recommendedFeatureGroups:Xo(e)}}),(function(e){return{fetchSettings:function(){return e(ou())},updateStatus:function(t){return e(dh(t))}}}))(Ch);var Sh=ce((function(e){return{siteTitle:Gi(e),status:Zo(e)}}))((function(e){var t,n=e.siteTitle,r=e.status;switch(r){case"not-started":case"intro-page":t="/intro";break;case"income-page":t="/income";break;case"updates-page":t="/updates";break;case"features-page":case"completed":t="/features";break;default:throw"Unknown status ".concat(r," in SetupWizardComponent")}return o.a.createElement(o.a.Fragment,null,o.a.createElement(pu,null),o.a.createElement(Qp,null),o.a.createElement(sp,null),o.a.createElement(cp,null),o.a.createElement(fh,null),o.a.createElement(lt,null,o.a.createElement(Ze,{exact:!0,from:"/setup",to:"/setup"+t}),o.a.createElement(rt,{path:"/setup/intro"},o.a.createElement(mh,{siteTitle:n})),o.a.createElement(rt,{path:"/setup/income"},o.a.createElement(vh,{siteTitle:n})),o.a.createElement(rt,{path:"/setup/updates"},o.a.createElement(bh,{siteTitle:n})),o.a.createElement(rt,{path:"/setup/features"},o.a.createElement(Ch,null))))})),Th=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackCogClick",(function(){al.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e,t,n=Gc()(this.props.className,"jp-dash-section-header");return this.props.externalLink&&(e=o.a.createElement("a",{className:"jp-dash-section-header__external-link",href:this.props.externalLinkPath,onClick:this.props.externalLinkClick},this.props.externalLink)),this.props.children&&(t=o.a.createElement("div",{className:"jp-dash-section-header__children"},this.props.children)),o.a.createElement("div",{className:n},o.a.createElement("div",{className:"jp-dash-section-header__label"},o.a.createElement("h2",{className:"jp-dash-section-header__name"},this.props.label)),e,t)}}]),t}(o.a.Component);Ka()(Th,"displayName","DashSectionHeader"),Ka()(Th,"propTypes",{label:u.a.string.isRequired,settingsPath:u.a.string,externalLinkPath:u.a.string,externalLink:u.a.string,externalLinkClick:u.a.func}),Ka()(Th,"defaultProps",{label:"",settingsPath:"",externalLinkPath:"",externalLink:""});var Ah=Th,xh=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"toggleModule",(function(){var e=n.props,t=e.updateOptions,r=e.module,i=e.getOptionValue;t(Ka()({},r,!i(r)))})),Ka()(Ls()(n),"trackPaidBtnClick",(function(){al.tracks.recordJetpackClick({target:"paid-button",feature:n.props.module,page:"aag"})})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e,t,n="",r=Gc()(this.props.className,"jp-dash-item",this.props.disabled?"jp-dash-item__disabled":"");return""!==this.props.module&&(t=Object(kt.includes)(["monitor","protect","photon","vaultpress","scan","backups","akismet","search"],this.props.module)&&this.props.isDevMode||"manage"===this.props.module?"":o.a.createElement(Wu,{slug:this.props.module,activated:this.props.getOptionValue(this.props.module),toggling:this.props.isUpdating(this.props.module),toggleModule:this.toggleModule,compact:!0}),"manage"===this.props.module&&("is-warning"===this.props.status&&(t=o.a.createElement("a",{href:this.props.isDevMode?this.props.siteAdminUrl+"update-core.php":hu("calypso-plugins-manage",{site:this.props.siteRawUrl})},o.a.createElement(ip,{showDismiss:!1,status:this.props.status,isCompact:!0},Ws("Updates needed",{context:"Short warning message"})))),"is-working"===this.props.status&&(t=o.a.createElement("span",{className:"jp-dash-item__active-label"},Ws("Active")))),"rewind"===this.props.module&&(t=null)),this.props.pro&&!this.props.isDevMode&&(n=o.a.createElement(Yc,{onClick:this.trackPaidBtnClick,compact:!0,href:"#/plans"},Ws("Paid",{context:"Short label appearing near a paid feature configuration block."})),this.props.isModule&&(t=o.a.createElement(pp,{proFeature:this.props.module,siteAdminUrl:this.props.siteAdminUrl}))),this.props.module&&this.props.getModule&&(e=this.props.getModule(this.props.module)),o.a.createElement("div",{className:r},o.a.createElement(np,{label:this.props.label,cardBadge:n},this.props.userCanToggle?t:""),this.props.overrideContent?this.props.overrideContent:o.a.createElement(au,{className:"jp-dash-item__card",href:this.props.href},o.a.createElement("div",{className:"jp-dash-item__content"},this.props.support.link&&o.a.createElement(Ep,ll()({module:e},this.props.support)),this.props.children)))}}]),t}(s.Component);Ka()(xh,"propTypes",{label:u.a.string,status:u.a.string,statusText:u.a.string,disabled:u.a.bool,module:u.a.string,pro:u.a.bool,isModule:u.a.bool,support:u.a.object,overrideContent:u.a.element}),Ka()(xh,"defaultProps",{label:"",module:"",pro:!1,isModule:!0,support:{text:"",link:""}});var Mh=ce((function(e){return{getModule:function(t){return ns(e,t)},isDevMode:oo(e),userCanToggle:Xi(e),siteRawUrl:Ji(e),siteAdminUrl:Wi(e)}}))(Yu(xh)),jh=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.inDevMode,t=Ws("Jetpack keeps a complete record of everything that happens on your site, taking the guesswork out of site management, debugging, and repair.");return o.a.createElement("div",{className:"jp-dash-item__interior"},o.a.createElement(Mh,{label:Ws("Activity"),isModule:!1,className:Gc()({"jp-dash-item__is-inactive":e}),pro:!1},o.a.createElement("p",{className:"jp-dash-item__description"},e?Ws("Unavailable in Dev Mode."):t)),o.a.createElement(au,{key:"view-activity",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:hu("calypso-activity-log",{site:this.props.siteRawUrl})},Ws("View site activity")))}}]),t}(s.Component);Ka()(jh,"propTypes",{inDevMode:u.a.bool.isRequired,siteRawUrl:u.a.string.isRequired,sitePlan:u.a.object.isRequired}),Ka()(jh,"defaultProps",{inDevMode:!1,siteRawUrl:"",sitePlan:""});var Nh=ce((function(e){return{sitePlan:hc(e),inDevMode:oo(e)}}))(jh),Oh=(n(357),function(){}),Ph=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){if(!this.props.showOnMobile&&_l())return null;var e=Gc()("dops-popover","dops-tooltip","is-".concat(this.props.position),this.props.className);return o.a.createElement(Hu,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:Oh,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}]),t}(s.Component);Ka()(Ph,"propTypes",{autoPosition:u.a.bool,className:u.a.string,id:u.a.string,isVisible:u.a.bool,position:u.a.string,rootClassName:u.a.string,status:u.a.string,showDelay:u.a.number,showOnMobile:u.a.bool}),Ka()(Ph,"defaultProps",{showDelay:100,position:"top",showOnMobile:!1});var Ih=Ph,Dh=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{showPopover:!1}),Ka()(Ls()(n),"buildSections",(function(){var e,t,r=n.props.data.value,i=n.props.max,a=100-(i?Math.ceil(r/i*1e4)/100:0),s=Math.max(1,Math.floor(a)),c=[],l=n.props.data.nestedValue,u={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===a&&!n.props.active},p={height:s+"%"};c.push(o.a.createElement("div",{key:"spacer",className:Gc()(u),style:p}));var d={top:s+"%"};return l&&(t={height:(r?Math.ceil(l/r*1e4)/100:0)+"%"},e=o.a.createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:t})),c.push(o.a.createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:d},e)),c.push(o.a.createElement("div",{key:"label",className:"dops-chart__bar-label"},n.props.label)),c})),Ka()(Ls()(n),"clickHandler",(function(){"function"==typeof n.props.clickHandler&&n.props.clickHandler(n.props.data)})),Ka()(Ls()(n),"mouseEnter",(function(){n.setState({showPopover:!0})})),Ka()(Ls()(n),"mouseLeave",(function(){n.setState({showPopover:!1})})),Ka()(Ls()(n),"renderTooltip",(function(){if(!n.props.data.tooltipData||!n.props.data.tooltipData.length||n.props.isTouch)return null;var e=n.props.data.tooltipData.map((function(e,t){var n,r=["module-content-list-item"];return e.icon&&(n=o.a.createElement(Fl,{icon:e.icon,size:18})),r.push(e.className),o.a.createElement("li",{key:t,className:r.join(" ")},o.a.createElement("span",{className:"dops-wrapper"},o.a.createElement("span",{className:"value"},e.value),o.a.createElement("span",{className:"label"},n,e.label)))}));return o.a.createElement(Ih,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:n.refs&&n.refs.valueBar,isVisible:n.state.showPopover,position:n.props.tooltipPosition},o.a.createElement("ul",null,e))})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props.count||1,t={"dops-chart__bar":!0};this.props.className&&(t[this.props.className]=!0);var n={width:1/e*100+"%"};return o.a.createElement("div",{role:"button",tabIndex:0,onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,className:Gc()(t),style:n},this.buildSections(),o.a.createElement("div",{className:"dops-chart__bar-marker is-hundred"}),o.a.createElement("div",{className:"dops-chart__bar-marker is-fifty"}),o.a.createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}}]),t}(o.a.Component);Ka()(Dh,"displayName","ModuleChartBar"),Ka()(Dh,"propTypes",{isTouch:u.a.bool,tooltipPosition:u.a.string,className:u.a.string,clickHandler:u.a.func,data:u.a.object.isRequired,max:u.a.number,count:u.a.number});var Uh=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e={width:this.props.width+"px"};return e.left=this.props.x+"px",o.a.createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}}]),t}(o.a.Component);Ka()(Uh,"displayName","ModuleChartLabel"),Ka()(Uh,"propTypes",{width:u.a.number.isRequired,x:u.a.number.isRequired,label:u.a.string.isRequired});var Rh=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{divisor:1,spacing:n.props.labelWidth}),Ka()(Ls()(n),"resize",(function(e){var t=n.props,r=n.refs.axis;!e||e instanceof Event||(t=e),r.style.overflow="hidden";var i=r.clientWidth;r.style.overflow="visible";var a=i/(t.data.length||1),s=t.labelWidth,o=Math.ceil(s/a);n.setState({divisor:o,spacing:a})})),n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.resizeThrottled=Object(kt.throttle)(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()}},{key:"componentWillUnmount",value:function(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.resize(e)}},{key:"render",value:function(){var e=this.props.data,t=e.map((function(t,n){var r,i=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2;return(e.length-n-1)%this.state.divisor==0&&(r=o.a.createElement(Uh,{key:n,label:t.label,width:this.props.labelWidth,x:i})),r}),this);return o.a.createElement("div",{ref:"axis",className:"dops-chart__x-axis"},t)}}]),t}(o.a.Component);Ka()(Rh,"displayName","ModuleChartXAxis"),Ka()(Rh,"propTypes",{labelWidth:u.a.number.isRequired,data:u.a.array.isRequired});var zh=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"buildBars",(function(e){var t=n.props.data.length,r=n.props.chartWidth,i=r/t,a="bottom right";return n.props.data.map((function(n,s){var c=i*(s+1);return c+230>r&&c+i-230>0&&(a="bottom left"),o.a.createElement(Dh,{index:s,key:s,isTouch:this.props.isTouch,tooltipPosition:a,className:n.className,clickHandler:this.props.barClick,data:n,max:e,count:t})}),Ls()(n))})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),o.a.createElement(Rh,{data:this.props.data,labelWidth:42}))}}]),t}(o.a.Component); /** * This test is for touch events. * It may not accurately detect a touch screen, but may be close enough depending on the use case. * * @copyright Modernizr © 2009-2015. * @license See CREDITS.md. * @see https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js * * @returns {Boolean} whether touch screen is available */ function Fh(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}Ka()(zh,"displayName","ModuleChartBarContainer"),Ka()(zh,"propTypes",{isTouch:u.a.bool,data:u.a.array,yAxisMax:u.a.number,width:u.a.number,barClick:u.a.func});n(358);var Lh=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{maxBars:100,width:650}),Ka()(Ls()(n),"resize",(function(){var e,t=n.refs.chart.clientWidth-82;Fh()?(t=t<=0?350:t,e=Math.floor(t/n.props.minTouchBarWidth)):e=Math.floor(t/n.props.minBarWidth),n.setState({maxBars:e,width:t})})),Ka()(Ls()(n),"getYAxisMax",(function(e){var t=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1),r=Math.ceil((t+1)/n)*n;return r<10&&(r=10),r})),Ka()(Ls()(n),"getData",(function(){var e=n.props.data;return e=e.slice(0-n.state.maxBars)})),Ka()(Ls()(n),"getValues",(function(){var e=n.getData();return e=e.map((function(e){return e.value}),Ls()(n))})),Ka()(Ls()(n),"isEmptyChart",(function(e){return 0===(e=e.filter((function(e){return e>0}),Ls()(n))).length})),n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.resize=Object(kt.throttle)(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.loading&&!e.loading&&this.resize()}},{key:"render",value:function(){var e,t=this.getValues(),n=this.getYAxisMax(t),r=this.getData();return t.length&&this.isEmptyChart(t)&&(e=o.a.createElement("div",{className:"dops-chart__empty"},o.a.createElement("span",{className:"dops-chart__empty_notice"},Ws("No activity this period",{context:"Notice in the empty statistics chart"})))),o.a.createElement("div",{ref:"chart",className:"dops-chart"},o.a.createElement("div",{className:"dops-chart__y-axis-markers"},o.a.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),o.a.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),o.a.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),o.a.createElement("div",{className:"dops-chart__y-axis"},o.a.createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},n.toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(n/2).toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),o.a.createElement(zh,{barClick:this.props.barClick,data:r,yAxisMax:n,chartWidth:this.state.width,isTouch:Fh()}),e)}}]),t}(o.a.Component);Ka()(Lh,"displayName","ModuleChart"),Ka()(Lh,"propTypes",{loading:u.a.bool,data:u.a.array,minTouchBarWidth:u.a.number,minBarWidth:u.a.number,barClick:u.a.func}),Ka()(Lh,"defaultProps",{minTouchBarWidth:42,minBarWidth:15,barClick:kt.noop});var Bh=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}},{key:"render",value:function(){return null}}]),t}(s.Component);Bh.defaultProps={fetchStatsData:function(){}};var Vh=ce((function(e){return{fetchStatsData:function(t){return $u(e)},fetchingStatsData:ja(e)}}),(function(e){return{fetchStatsData:function(t){return e($u(t))}}}))(Bh),Hh=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackViewDetailedStats",(function(){return al.tracks.recordJetpackClick("view_detailed_stats")})),Ka()(Ls()(n),"trackViewWpcomStats",(function(){return al.tracks.recordJetpackClick("view_wpcom_stats")})),n}return Mi()(t,e),zs()(t,[{key:"statsBottom",value:function(){var e;return[{viewsToday:(e="object"==typeof this.props.statsData.general?this.props.statsData.general.stats:{views:"-",comments:"-",views_today:"-",views_best_day:"-",views_best_day_total:"-"}).views_today,bestDay:{day:e.views_best_day,count:e.views_best_day_total},allTime:{views:e.views,comments:e.comments}}]}},{key:"render",value:function(){var e=this.statsBottom()[0];return o.a.createElement("div",null,o.a.createElement("div",{className:"jp-at-a-glance__stats-summary"},o.a.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},o.a.createElement("p",{className:"jp-at-a-glance__stat-details"},Ws("Views today",{comment:"Referring to a number of page views"})),o.a.createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),o.a.createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},o.a.createElement("p",{className:"jp-at-a-glance__stat-details"},Ws("Best overall day",{comment:"Referring to a number of page views"})),o.a.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.bestDay.count?"-":Ws("%(number)s View","%(number)s Views",{count:e.bestDay.count,args:{number:Js(e.bestDay.count)}})),o.a.createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":Ks(e.bestDay.day).format("MMMM Do, YYYY"))),o.a.createElement("div",{className:"jp-at-a-glance__stats-summary-alltime"},o.a.createElement("div",{className:"jp-at-a-glance__stats-alltime-views"},o.a.createElement("p",{className:"jp-at-a-glance__stat-details"},Ws("All-time views",{comment:"Referring to a number of page views"})),o.a.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":Js(e.allTime.views))),o.a.createElement("div",{className:"jp-at-a-glance__stats-alltime-comments"},o.a.createElement("p",{className:"jp-at-a-glance__stat-details"},Ws("All-time comments",{comment:"Referring to a number of comments"})),o.a.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":Js(e.allTime.comments))))),o.a.createElement("div",{className:"jp-at-a-glance__stats-cta"},o.a.createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),o.a.createElement("div",{className:"jp-at-a-glance__stats-cta-buttons"},Ws("{{button}}View detailed stats{{/button}}",{components:{button:o.a.createElement(Yc,{onClick:this.trackViewDetailedStats,href:this.props.siteAdminUrl+"admin.php?page=stats"})}}),this.props.isLinked&&Ws("{{button}}View more stats on WordPress.com {{/button}}",{components:{button:o.a.createElement(Yc,{onClick:this.trackViewWpcomStats,className:"is-primary",href:hu("calypso-stats-insights",{site:this.props.siteRawUrl})})}}))),!this.props.isLinked&&o.a.createElement(au,{compact:!0,className:"jp-settings-card__configure-link",href:"".concat(this.props.connectUrl,"&from=unlinked-user-connect")},Ws("Connect your account to WordPress.com to view more stats")))}}]),t}(s.Component);Hh.propTypes={siteRawUrl:u.a.string.isRequired,siteAdminUrl:u.a.string.isRequired,statsData:u.a.object.isRequired,isLinked:u.a.bool.isRequired},Hh.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1};var qh=Hh,Kh=function(e){function t(e){var n;return Ei()(this,t),n=Si()(this,Ai()(t).call(this,e)),Ka()(Ls()(n),"dismissCard",(function(){n.setState({emptyStatsDismissed:!0}),n.props.updateOptions({dismiss_empty_stats_card:!0})})),Ka()(Ls()(n),"activateStats",(function(){return n.props.updateOptions({stats:!0})})),Ka()(Ls()(n),"switchToDay",(function(){return n.switchTo("day")})),Ka()(Ls()(n),"switchToWeek",(function(){return n.switchTo("week")})),Ka()(Ls()(n),"switchToMonth",(function(){return n.switchTo("month")})),n.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed},n}return Mi()(t,e),zs()(t,[{key:"barClick",value:function(e){e.data.link&&(al.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,"_blank"))}},{key:"statsChart",value:function(e){var t=this.props,n=[],r=0;return"object"!=typeof t.statsData[e]?{chartData:n,totalViews:!1}:(Object(kt.forEach)(t.statsData[e].data,(function(i){var a=i[1],s=i[0],o="",c="";r+=a,"day"===e?(o=Ks(s).format("MMM D"),c=Ks(s).format("MMMM Do")):"week"===e?(s=s.replace(/W/g,"-"),o=Ks(s).format("MMM D"),c=Ws("Week of %(date)s",{args:{date:Ks(s).format("MMMM Do")}})):"month"===e&&(o=Ks(s).format("MMM"),c=Ks(s).format("MMMM, YYYY")),n.push({label:o,value:a,nestedValue:null,className:"statsChartbar",data:{link:hu("calypso-stats-".concat(e),{site:t.siteRawUrl,query:"startDate=".concat(s)})},tooltipData:[{label:c,value:Ws("Views: %(numberOfViews)s",{args:{numberOfViews:Js(a)}}),className:"tooltip class"},{label:Ws("Click to view detailed stats.")}]})})),{chartData:n,totalViews:r})}},{key:"statsErrors",value:function(){return Object(kt.get)(this.props.statsData,["general","errors"],!1)}},{key:"renderStatsChart",value:function(e){return o.a.createElement("div",null,o.a.createElement("div",{className:"jp-at-a-glance__stats-chart"},o.a.createElement(Lh,{data:e,barClick:this.barClick}),0===e.length&&o.a.createElement(zl,null)),o.a.createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},o.a.createElement(qh,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl})))}},{key:"renderEmptyStatsCard",value:function(){return o.a.createElement(au,{className:"jp-at-a-glance__stats-empty"},o.a.createElement("img",{src:Td+"stats-people.svg",width:"272",height:"144",alt:Ws("Jetpack Stats People"),className:"jp-at-a-glance__stats-icon"}),o.a.createElement("p",null,Ws("Hello there! Your stats have been activated."),o.a.createElement("br",null),Ws("Just give us a little time to collect data so we can display it for you here.")),o.a.createElement(Yc,{onClick:this.dismissCard,primary:!0},Ws("Okay, got it!")))}},{key:"renderStatsArea",value:function(){if(this.props.getOptionValue("stats")){if(this.statsErrors())return o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive"},o.a.createElement("span",null,Ws("Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}",{components:{a:o.a.createElement("a",{href:hu("calypso-stats-insights",{site:this.props.siteRawUrl})})}})));var e=this.statsChart(this.props.activeTab),t=e.chartData,n=e.totalViews,r=t.length&&n<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return o.a.createElement("div",{className:"jp-at-a-glance__stats-container"},r?this.renderEmptyStatsCard():this.renderStatsChart(t))}return o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive"},o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},o.a.createElement("img",{src:Td+"stats.svg",width:"60",height:"60",alt:Ws("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?Ws("Unavailable in Dev Mode"):Ws("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:o.a.createElement("a",{href:hu("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},o.a.createElement(Yc,{onClick:this.activateStats,primary:!0},Ws("Activate Site Stats"))))}},{key:"switchTo",value:function(e){al.tracks.recordJetpackClick({target:"stats_switch_view",view:e}),this.props.switchView(e),this.props.fetchStatsData(e)}},{key:"maybeShowStatsTabs",value:function(){return!(!1===this.statsChart(this.props.activeTab).totalViews&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed)&&(this.props.getOptionValue("stats")&&!this.statsErrors()?o.a.createElement("ul",{className:"jp-at-a-glance__stats-views"},o.a.createElement("li",{className:"jp-at-a-glance__stats-view"},o.a.createElement("a",{tabIndex:"0",href:"javascript:void(0)",onClick:this.switchToDay,className:this.getClass("day")},Ws("Days"))),o.a.createElement("li",{className:"jp-at-a-glance__stats-view"},o.a.createElement("a",{tabIndex:"0",href:"javascript:void(0)",onClick:this.switchToWeek,className:this.getClass("week")},Ws("Weeks"))),o.a.createElement("li",{className:"jp-at-a-glance__stats-view"},o.a.createElement("a",{tabIndex:"0",href:"javascript:void(0)",onClick:this.switchToMonth,className:this.getClass("month")},Ws("Months")))):void 0)}},{key:"getClass",value:function(e){return this.props.activeTab===e?"jp-at-a-glance__stats-view-link is-current":"jp-at-a-glance__stats-view-link"}},{key:"render",value:function(){return"inactive"===this.props.getModuleOverride("stats")?o.a.createElement("div",null,o.a.createElement(bp,{moduleName:Ws("Site Stats")})):this.props.isModuleAvailable&&o.a.createElement("div",null,o.a.createElement(Vh,{range:this.props.activeTab}),o.a.createElement(Ah,{label:Ws("Site Stats")},this.maybeShowStatsTabs()),o.a.createElement(au,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},this.renderStatsArea()))}}]),t}(s.Component);Ka()(Kh,"propTypes",{isDevMode:u.a.bool.isRequired,siteRawUrl:u.a.string.isRequired,siteAdminUrl:u.a.string.isRequired,statsData:u.a.any.isRequired,isModuleAvailable:u.a.bool.isRequired});var Jh=ce((function(e){return{isModuleAvailable:os(e,"stats"),activeTab:Ma(e),isDevMode:oo(e),isLinked:so(e),connectUrl:to(e),statsData:Object(kt.isEmpty)(Na(e))?qi(e):Na(e),isEmptyStatsCardDismissed:Jo(e),getModuleOverride:function(t){return cs(e,t)}}}),(function(e){return{switchView:function(t){return e(function(e){return function(t){t({type:Un,activeStatsTab:e})}}(t))},fetchStatsData:function(t){return e($u(t))}}}))(Kh),Wh=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}},{key:"render",value:function(){return null}}]),t}(s.Component);Wh.defaultProps={fetchProtectCount:function(){}};var Gh=ce((function(e){return{fetchProtectCount:Qu(),fetchingProtectData:Ua(e),isModuleActivated:function(t){return ss(e,t)}}}),(function(e){return P({fetchProtectCount:Qu},e)}))(Wh),Yh=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"activateProtect",(function(){return n.props.updateOptions({protect:!0})})),n}return Mi()(t,e),zs()(t,[{key:"getContent",value:function(){var e=Ws("Protect"),t={text:Ws("Protects your site from traditional and distributed brute force login attacks."),link:hu("jetpack-support-protect")};if(this.props.getOptionValue("protect")){var n=this.props.protectCount;return!1===n||"0"===n||"N/A"===n?o.a.createElement(Mh,{label:e,module:"protect",support:t,status:"is-working",className:"jp-dash-item__recently-activated"},o.a.createElement("div",{className:"jp-dash-item__recently-activated-lower"},o.a.createElement(Gh,null),o.a.createElement("p",{className:"jp-dash-item__description"},Ws("Jetpack is actively blocking malicious login attempts. Data will display here soon!")))):o.a.createElement(Mh,{label:e,module:"protect",support:t,status:"is-working"},o.a.createElement("h2",{className:"jp-dash-item__count"},Js(n)),o.a.createElement("p",{className:"jp-dash-item__description"},Ws("Total malicious attacks blocked on your site.")))}return o.a.createElement(Mh,{label:e,module:"protect",support:t,className:"jp-dash-item__is-inactive"},o.a.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?Ws("Unavailable in Dev Mode"):Ws("{{a}}Activate Protect{{/a}} to keep your site protected from malicious sign in attempts.",{components:{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activateProtect})}})))}},{key:"render",value:function(){return this.props.isModuleAvailable&&o.a.createElement("div",{className:"jp-dash-item__interior"},o.a.createElement(Gh,null),this.getContent())}}]),t}(s.Component);Ka()(Yh,"propTypes",{isDevMode:u.a.bool.isRequired,protectCount:u.a.any.isRequired,isModuleAvailable:u.a.bool.isRequired});var $h=ce((function(e){return{protectCount:Ra(e),isDevMode:oo(e),isModuleAvailable:os(e,"protect")}}))(Yh),Qh=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"activateAndTrack",(function(){al.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"monitor",toggled:"on"}),n.props.updateOptions({monitor:!0})})),n}return Mi()(t,e),zs()(t,[{key:"getContent",value:function(){var e=Ws("Downtime monitor"),t={text:Ws("Jetpack’s downtime monitor will continuously monitor your site, and alert you the moment that downtime is detected."),link:hu("jetpack-support-monitor")};return this.props.getOptionValue("monitor")?o.a.createElement(Mh,{label:e,module:"monitor",support:t,status:"is-working"},o.a.createElement("p",{className:"jp-dash-item__description"},Ws("Jetpack is monitoring your site. If we think your site is down, you will receive an email."))):o.a.createElement(Mh,{label:e,module:"monitor",support:t,className:"jp-dash-item__is-inactive"},o.a.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?Ws("Unavailable in Dev Mode."):Ws("{{a}}Activate Monitor{{/a}} to receive email notifications if your site goes down.",{components:{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activateAndTrack})}})))}},{key:"render",value:function(){return this.props.isModuleAvailable&&this.getContent()}}]),t}(s.Component);Ka()(Qh,"propTypes",{isDevMode:u.a.bool.isRequired,isModuleAvailable:u.a.bool.isRequired});var Xh=ce((function(e){return{isDevMode:oo(e),isModuleAvailable:os(e,"monitor")}}))(Qh),Zh=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isFetchingScanStatus||this.props.isDevMode||this.props.fetchScan()}},{key:"render",value:function(){return null}}]),t}(s.Component);Ka()(Zh,"propTypes",{isFetchingScanStatus:u.a.bool,isDevMode:u.a.bool}),Ka()(Zh,"defaultProps",{isFetchingScanStatus:!1,isDevMode:!1});var ef=ce((function(e){return{isFetchingScanStatus:No(e),isDevMode:oo(e)}}),(function(e){return{fetchScan:function(){return e((function(e){return e({type:Qr}),zi.fetchScanStatus().then((function(t){return e({type:Xr,status:t}),t})).catch((function(t){e({type:Zr,error:t})}))}))}}}))(Zh),tf=function(e){return o.a.createElement(Mh,{label:Ws("Scan"),module:e.feature||"scan",support:{text:Ws("Your site’s files are regularly scanned for unauthorized or suspicious modifications that could compromise your security and data."),link:hu("jetpack-support-security")},className:e.className||"",status:e.status||"",pro:!0,overrideContent:e.overrideContent},Object(kt.isArray)(e.content)?e.content:o.a.createElement("p",{className:"jp-dash-item__description"},e.content))},nf=function(e,t){return o.a.createElement(au,{compact:!0,key:"manage-scan",className:"jp-dash-item__manage-in-wpcom",href:e,target:"_blank",rel:"noopener noreferrer"},t)},rf=function(e){return tf({className:"jp-dash-item__is-active",status:"is-working",content:e})},af=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.planClass,r=e.fetchingSiteData,i=!1!==t,a=this.props.vaultPressData,s=Object(kt.get)(a,["data","features","security"],!1);if(this.props.getOptionValue("vaultpress")){if("N/A"===a)return tf({status:"",content:Ws("Loading…")});if(s){var c=this.props.scanThreats;if(0!==c)return this.renderThreatsFound(c,hu("vaultpress-dashboard"));if("success"===a.code)return tf({status:"is-working",content:Ws("No threats found, you're good to go!")})}}if(r)return tf({status:"",content:Ws("Loading…")});var l=this.props.isVaultPressInstalled?"pro-inactive":"pro-uninstalled",u="is-premium-plan"===n||"is-business-plan"===n||s?o.a.createElement("p",{className:"jp-dash-item__description",key:"inactive-scanning"},Ws("For automated, comprehensive scanning of security threats, please {{a}}install and activate{{/a}} VaultPress.",{components:{a:o.a.createElement("a",{href:hu("calypso-plugins-vaultpress"),target:"_blank",rel:"noopener noreferrer"})}})):null,p=null===u?this.getUpgradeBanner():null;return tf({className:"jp-dash-item__is-inactive",status:i?l:"no-pro-uninstalled-or-inactive",content:[u],overrideContent:p})}},{key:"getUpgradeBanner",value:function(){return o.a.createElement(gp,{callToAction:Ws("Upgrade"),title:Ws("Find threats early so we can help fix them fast."),disableHref:"false",href:this.props.upgradeUrl,eventFeature:"scan",path:"dashboard",plan:"jetpack_premium",icon:"lock"})}},{key:"renderThreatsFound",value:function(e,t){this.props.siteRawUrl;return o.a.createElement(o.a.Fragment,null,rf([o.a.createElement("h2",{className:"jp-dash-item__count is-alert"},Js(e)),o.a.createElement("p",{className:"jp-dash-item__description"},Ws("Security threat found. Please {{a}}fix it{{/a}} as soon as possible.","Security threats found. Please {{a}}fix these{{/a}} as soon as possible.",{count:e,components:{a:o.a.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"})}}))]),nf(t,Ws("View security scan details")))}},{key:"getRewindContent",value:function(){var e=this.props,t=e.scanStatus,n=e.siteRawUrl,r=hu("calypso-scanner",{site:n});if(Array.isArray(t.threats)&&t.threats.length>0)return this.renderThreatsFound(t.threats.length,r);if(t.credentials&&0===t.credentials.length)return o.a.createElement(o.a.Fragment,null,rf(Ws("You need to enter your server's credentials to finish the setup.")),nf(hu("calypso-settings-security",{site:n}),Ws("Enter credentials")));switch(t.state){case"provisioning":return o.a.createElement(o.a.Fragment,null,rf(Ws("We are configuring your site protection.")));case"idle":case"scanning":return o.a.createElement(o.a.Fragment,null,rf(Ws("We are making sure your site stays free of security threats. You will be notified if we find one.")),nf(hu("calypso-scanner",{site:n}),Ws("View security scan details")))}return!1}},{key:"getUpgradeContent",value:function(){return tf({className:"jp-dash-item__is-inactive",overrideContent:this.getUpgradeBanner()})}},{key:"render",value:function(){if(!this.props.showBackups)return null;if(this.props.isDevMode)return tf({className:"jp-dash-item__is-inactive",content:Ws("Unavailable in Dev Mode.")});var e=this.props,t=e.scanStatus,n=e.vaultPressData,r=e.fetchingScanStatus,i=tf({content:Ws("Loading…")});return!r&&t.state&&"unavailable"!==t.state?i=o.a.createElement("div",{className:"jp-dash-item"},this.getRewindContent()):Object(kt.get)(n,["data","features","security"],!1)?i=this.getVPContent():"N/A"!==n||r||(i=this.getUpgradeContent()),o.a.createElement("div",null,o.a.createElement(sp,null),o.a.createElement(ef,null),i)}}]),t}(s.Component);Ka()(af,"propTypes",{siteRawUrl:u.a.string.isRequired,vaultPressData:u.a.any.isRequired,scanThreats:u.a.any.isRequired,sitePlan:u.a.object.isRequired,isDevMode:u.a.bool.isRequired,isVaultPressInstalled:u.a.bool.isRequired,fetchingSiteData:u.a.bool.isRequired,upgradeUrl:u.a.string.isRequired}),Ka()(af,"defaultProps",{siteRawUrl:"",vaultPressData:"",scanThreats:0,sitePlan:"",isDevMode:!1,isVaultPressInstalled:!1,fetchingSiteData:!1});var sf=ce((function(e){var t=hc(e);return{scanStatus:Oo(e),fetchingScanStatus:No(e),vaultPressData:Fa(e),scanThreats:La(e),sitePlan:t,planClass:sc(Object(kt.get)(t,"product_slug","")),isDevMode:oo(e),isVaultPressInstalled:$a(e,"vaultpress/vaultpress.php"),fetchingSiteData:lc(e),showBackups:wa(e),upgradeUrl:Sa(e,"aag-scan")}}))(af),of=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}},{key:"render",value:function(){return null}}]),t}(s.Component);of.defaultProps={fetchAkismetData:function(){}};var cf=ce((function(e){return{fetchAkismetData:Zu(),fetchingAkismetData:Oa(e)}}),(function(e){return P({fetchAkismetData:Zu},e)}))(of),lf=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"onActivateClick",(function(){return n.trackActivateClick(),zi.activateAkismet().then((function(){window.location.href=n.props.siteAdminUrl+"admin.php?page=akismet-key-config"})),!1})),n}return Mi()(t,e),zs()(t,[{key:"trackActivateClick",value:function(){al.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"anti-spam"})}},{key:"getContent",value:function(){var e=this,t=this.props.akismetData,n=Ws("Anti-spam"),r="jetpack_free"===Object(kt.get)(this.props.sitePlan,"product_slug","jetpack_free"),i={text:Ws("Jetpack Anti-spam powered by Akismet. Comments and contact form submissions are checked against our global database of spam."),link:"https://akismet.com/",privacyLink:"https://automattic.com/privacy/"},a=function(){var t=Ws("Already have a key? {{a}}Activate Akismet{{/a}}",{components:{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:e.onActivateClick})}});return o.a.createElement(gp,{callToAction:Ws("Upgrade"),title:Ws("Automatically clear spam from your comments and forms so you can get back to your business."),description:t,disableHref:"false",href:e.props.upgradeUrl,eventFeature:"akismet",path:"dashboard",plan:"jetpack_premium",icon:"flag"})};if("N/A"===t)return o.a.createElement(Mh,{label:n,module:"akismet",support:i,pro:!0},o.a.createElement("p",{className:"jp-dash-item__description"},Ws("Loading…")));var s=!1!==this.props.sitePlan;if(r){if("not_installed"===t)return o.a.createElement(Mh,{label:n,module:"akismet",support:i,className:"jp-dash-item__is-inactive",status:s?"pro-uninstalled":"no-pro-uninstalled-or-inactive",pro:!0,overrideContent:a()});if("not_active"===t)return o.a.createElement(Mh,{label:n,module:"akismet",support:i,status:s?"pro-inactive":"no-pro-uninstalled-or-inactive",className:"jp-dash-item__is-inactive",pro:!0,overrideContent:a()});if("invalid_key"===t)return o.a.createElement(Mh,{label:n,module:"akismet",support:i,className:"jp-dash-item__is-inactive",pro:!0,overrideContent:a()})}return["not_installed","not_active","invalid_key"].includes(t)?o.a.createElement(Mh,{label:n,module:"akismet",support:i,className:"jp-dash-item__is-inactive",pro:!0},Ws("Your Jetpack plan provides anti-spam protection through Akismet. Click 'set up' to enable it on your site.")):[o.a.createElement(Mh,{key:"comment-moderation",label:n,module:"akismet",support:i,status:"is-working",pro:!0},o.a.createElement("h2",{className:"jp-dash-item__count"},Js(t.all.spam)),o.a.createElement("p",{className:"jp-dash-item__description"},Ws("Spam comments blocked.",{context:'Example: "412 Spam comments blocked"'}))),!this.props.isDevMode&&o.a.createElement(au,{key:"moderate-comments",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:hu("calypso-comments-all",{site:this.props.siteRawUrl})},Ws("Moderate comments"))]}},{key:"render",value:function(){return o.a.createElement("div",{className:"jp-dash-item__interior"},o.a.createElement(cf,null),this.getContent())}}]),t}(s.Component);Ka()(lf,"propTypes",{siteRawUrl:u.a.string.isRequired,siteAdminUrl:u.a.string.isRequired,akismetData:u.a.oneOfType([u.a.string,u.a.object]).isRequired,isDevMode:u.a.bool.isRequired,upgradeUrl:u.a.string.isRequired}),Ka()(lf,"defaultProps",{siteRawUrl:"",siteAdminUrl:"",akismetData:"N/A",isDevMode:""});var uf=ce((function(e){return{akismetData:Pa(e),sitePlan:hc(e),isDevMode:oo(e),upgradeUrl:Sa(e,"aag-akismet"),nonce:da(e)}}))(lf),pf=function(e){return o.a.createElement(Mh,{label:Ws("Backup"),module:e.feature||"backups",support:{text:Ws("Jetpack Backups allow you to easily restore or download a backup from a specific moment."),link:hu("jetpack-support-backup")},className:e.className,status:e.status,pro:!0,overrideContent:e.overrideContent},o.a.createElement("p",{className:"jp-dash-item__description"},e.content))},df=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.isVaultPressInstalled,r=e.getOptionValue,i=e.siteRawUrl,a=e.vaultPressData;return r("vaultpress")&&"success"===Object(kt.get)(a,"code","")?pf({className:"jp-dash-item__is-active",status:"is-working",content:o.a.createElement("span",null,Object(kt.get)(a,"message","")," ",Ws("{{a}}View backup details{{/a}}.",{components:{a:o.a.createElement("a",{href:hu("vaultpress-dashboard"),target:"_blank",rel:"noopener noreferrer"})}}))}):Object(kt.isEmpty)(t)?pf({className:"",status:"",content:Ws("Loading…")}):"jetpack_free"!==Object(kt.get)(t,"product_slug","jetpack_free")?pf({className:"jp-dash-item__is-inactive",status:n?"pro-inactive":"pro-uninstalled",content:Ws("To automatically back up your entire site, please {{a}}install and activate{{/a}} VaultPress.",{components:{a:o.a.createElement("a",{href:hu("calypso-plugins-setup",{site:i,query:"only=backups"}),target:"_blank",rel:"noopener noreferrer"})}})}):pf({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",overrideContent:o.a.createElement(gp,{callToAction:Ws("Upgrade"),title:Ws("Never worry about losing your site – automatic backups keep your content safe."),disableHref:"false",href:this.props.upgradeUrl,eventFeature:"backups",path:"dashboard",plan:"jetpack_premium",icon:"history"})})}},{key:"getRewindContent",value:function(){var e=this.props,t=e.planClass,n=e.rewindStatus,r=e.siteRawUrl,i=function(e,t){return o.a.createElement(au,{compact:!0,key:"manage-backups",className:"jp-dash-item__manage-in-wpcom",href:e},t)},a=function(e){return pf({className:"jp-dash-item__is-active",status:"is-working",feature:"rewind",content:e})};switch(n){case"provisioning":return o.a.createElement(o.a.Fragment,null,a(Ws("We are configuring your site's backups.")));case"awaiting_credentials":return o.a.createElement(o.a.Fragment,null,a(Ws("You need to enter your server's credentials to finish the setup.")),i(hu("calypso-settings-security",{site:r}),Ws("Enter credentials")));case"active":var s=["is-business-plan","is-realtime-backup-plan"].includes(t)?Ws("We are backing up your site in real-time."):Ws("We are backing up your site daily.");return o.a.createElement(o.a.Fragment,null,a(s),i(hu("calypso-activity-log",{site:r,query:"group=rewind"}),Ws("View your site's backups")))}return!1}},{key:"render",value:function(){return this.props.showBackups?this.props.isDevMode?o.a.createElement("div",{className:"jp-dash-item__interior"},pf({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:Ws("Unavailable in Dev Mode.")})):o.a.createElement("div",null,o.a.createElement(sp,null),"unavailable"===this.props.rewindStatus?this.getVPContent():o.a.createElement("div",{className:"jp-dash-item"},this.getRewindContent())):null}}]),t}(s.Component);Ka()(df,"propTypes",{siteRawUrl:u.a.string.isRequired,getOptionValue:u.a.func.isRequired,rewindStatus:u.a.string.isRequired,vaultPressData:u.a.any.isRequired,sitePlan:u.a.object.isRequired,isDevMode:u.a.bool.isRequired,isVaultPressInstalled:u.a.bool.isRequired,upgradeUrl:u.a.string.isRequired}),Ka()(df,"defaultProps",{siteRawUrl:"",getOptionValue:kt.noop,vaultPressData:"",sitePlan:"",isDevMode:!1,isVaultPressInstalled:!1,rewindStatus:""});var hf=ce((function(e){var t=hc(e);return{vaultPressData:Fa(e),sitePlan:t,planClass:sc(t),isDevMode:oo(e),isVaultPressInstalled:$a(e,"vaultpress/vaultpress.php"),showBackups:wa(e),upgradeUrl:Sa(e,"aag-backups")}}))(df),ff=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.fetchingPluginUpdates||this.props.fetchPluginUpdates()}},{key:"render",value:function(){return null}}]),t}(s.Component);ff.defaultProps={fetchPluginUpdates:function(){}};var mf=ce((function(e){return{fetchPluginUpdates:tp(),fetchingPluginUpdates:Ba(e)}}),(function(e){return P({fetchPluginUpdates:tp},e)}))(ff),gf=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"trackManagePlugins",value:function(){al.tracks.recordJetpackClick({type:"link",target:"at-a-glance",feature:"manage-plugins"})}},{key:"getContent",value:function(){var e=Ws("Plugin Updates"),t=this.props.pluginUpdates,n={text:Ws("Jetpack’s Plugin Updates allows you to choose which plugins update automatically."),link:hu("jetpack-support-site-management")};if("N/A"===t)return o.a.createElement(Mh,{label:e,module:"manage",support:n,status:"is-working"},o.a.createElement(mf,null),o.a.createElement("p",{className:"jp-dash-item__description"},Ws("Loading…")));var r="updates-available"===t.code,i=hu("calypso-plugins-manage",{site:this.props.siteRawUrl}),a=this.props.getOptionValue("manage")?"is-working":"is-inactive";return[o.a.createElement(Mh,{key:"plugin-updates",label:e,module:"manage",support:n,status:r?"is-warning":a},r&&o.a.createElement("h2",{className:"jp-dash-item__count"},Ws("%(number)s","%(number)s",{count:t.count,args:{number:t.count}})),o.a.createElement("p",{className:"jp-dash-item__description"},r?[Ws("Plugin needs updating.","Plugins need updating.",{count:t.count})+" ",!this.props.isDevMode&&Ws("{{a}}Turn on plugin autoupdates.{{/a}}",{components:{a:o.a.createElement("a",{href:i})}})]:Ws("All plugins are up-to-date. Awesome work!"))),!this.props.isDevMode&&o.a.createElement(au,{key:"manage-plugins",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:i,onClick:this.trackManagePlugins,target:"_blank"},Ws("Manage your plugins"))]}},{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement(mf,null),this.getContent())}}]),t}(s.Component);Ka()(gf,"propTypes",{isDevMode:u.a.bool.isRequired,siteRawUrl:u.a.string.isRequired,siteAdminUrl:u.a.string.isRequired,pluginUpdates:u.a.any.isRequired});var vf=ce((function(e){return{pluginUpdates:Va(e),isDevMode:oo(e)}}))(gf),bf=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"activatePhoton",(function(){return n.props.updateOptions({photon:!0})})),n}return Mi()(t,e),zs()(t,[{key:"getContent",value:function(){var e=Ws("Image Accelerator"),t={text:Ws("Jetpack will optimize your images and serve them from the server location nearest to your visitors. Using our global content delivery network will boost the loading speed of your site."),link:hu("jetpack-support-photon")};return this.props.getOptionValue("photon")?o.a.createElement(Mh,{label:e,module:"photon",support:t,status:"is-working"},o.a.createElement("p",{className:"jp-dash-item__description"},Ws("Jetpack is optimizing your image sizes and download speed using our fast global network of servers. This improves your site's performance on desktop and mobile devices."))):o.a.createElement(Mh,{label:e,module:"photon",support:t,className:"jp-dash-item__is-inactive"},o.a.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?Ws("Unavailable in Dev Mode"):Ws("{{a}}Activate{{/a}} to optimize image sizes and load images from Jetpack's fast global network of servers. This improves your site's performance on desktop and mobile devices.",{components:{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activatePhoton})}})))}},{key:"render",value:function(){return this.props.isModuleAvailable&&this.getContent()}}]),t}(s.Component);Ka()(bf,"propTypes",{isDevMode:u.a.bool.isRequired,isModuleAvailable:u.a.bool.isRequired});var yf=ce((function(e){return{isDevMode:oo(e),isModuleAvailable:os(e,"photon")}}))(bf),wf=function(e){return o.a.createElement(Mh,{label:Ws("Search"),module:"search",support:{text:Up,link:hu("jetpack-support-search")},className:e.className,status:e.status,isModule:e.pro_inactive,pro:!0,overrideContent:e.overrideContent},o.a.createElement("p",{className:"jp-dash-item__description"},e.content))},_f=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"activateSearch",(function(){n.props.updateOptions(bi()({search:!0},n.props.hasSearchProduct?{instant_search_enabled:!0}:{}))})),n}return Mi()(t,e),zs()(t,[{key:"trackSearchLink",value:function(){al.tracks.recordJetpackClick({type:"upgrade-link",target:"at-a-glance",feature:"search"})}},{key:"render",value:function(){return this.props.isAtomicSite?null:this.props.isFetching?wf({status:"",content:Ws("Loading…")}):this.props.isDevMode?wf({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,content:Ws("Unavailable in Dev Mode")}):this.props.isBusinessPlan||this.props.hasSearchProduct?this.props.getOptionValue("search")?o.a.createElement("div",{className:"jp-dash-item"},o.a.createElement(Mh,{label:Ws("Search"),module:"search",support:{text:Up,link:hu("jetpack-support-search")},className:"jp-dash-item__is-active",isModule:!1,pro:!0},o.a.createElement("p",{className:"jp-dash-item__description"},Ws("Jetpack Search is powering search on your site."))),this.props.hasSearchProduct?o.a.createElement(au,{compact:!0,className:"jp-search-config-aag",href:"customize.php?autofocus[section]=jetpack_search"},Dp):o.a.createElement(au,{compact:!0,className:"jp-search-config-aag",href:"customize.php?autofocus[panel]=widgets"},Ws("Add Search (Jetpack) Widget"))):wf({className:"jp-dash-item__is-inactive",pro_inactive:!1,content:Ws("{{a}}Activate{{/a}} to help visitors quickly find answers with highly relevant instant search results and powerful filtering.",{components:{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activateSearch})}})}):wf({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,overrideContent:o.a.createElement(gp,{callToAction:Ws("Upgrade"),title:Ip,disableHref:"false",href:this.props.upgradeUrl,eventFeature:"search",path:"dashboard",plan:"jetpack_search",icon:"search"})})}}]),t}(s.Component);Ka()(_f,"propTypes",{getOptionValue:u.a.func.isRequired,isDevMode:u.a.bool.isRequired}),Ka()(_f,"defaultProps",{getOptionValue:kt.noop,isDevMode:!1});var kf=ce((function(e){return{isAtomicSite:ba(e),isBusinessPlan:"is-business-plan"===sc(hc(e).product_slug),isDevMode:oo(e),isFetching:dc(e),hasSearchProduct:Cc(e),upgradeUrl:Sa(e,"aag-search")}}))(_f),Ef=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isFetchingUserData||this.props.isDevMode||this.props.fetchUserConnectionData()}},{key:"render",value:function(){return null}}]),t}(o.a.Component),Cf=ce((function(e){return{isFetchingUserData:ao(e),isDevMode:oo(e)}}),(function(e){return{fetchUserConnectionData:function(){return e((function(e){return e({type:Vt}),zi.fetchUserConnectionData().then((function(t){e({type:qt,userConnectionData:t})})).catch((function(t){e({type:Ht,error:t})}))}))}}}))(Ef),Sf=function(e){var t=e.amount,n=e.description,r=e.gridIcon,i=e.title;return o.a.createElement("div",{className:"jetpack-termination-dialog__feature"},o.a.createElement("div",{className:"jetpack-termination-dialog__feature-header"},o.a.createElement("h3",null,i),o.a.createElement(Fl,{icon:r})),o.a.createElement("div",{className:"jetpack-termination-dialog__feature-body"},o.a.createElement("p",{className:"jetpack-termination-dialog__feature-body-amount"},Js(t)),o.a.createElement("p",{className:"jetpack-termination-dialog__feature-body-description"},n)))},Tf=(n(359),function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"renderCDNReason",value:function(){return o.a.createElement("li",{key:"reason-cdn"},Ws("Speed up your site and provide mobile-ready images with {{a}}our CDN{{/a}}",{components:{a:o.a.createElement("a",{className:"jetpack-termination-dialog__link",href:hu("jetpack-features-design-content-delivery-network"),rel:"noopener noreferrer",target:"_blank"})}}))}},{key:"renderProtectReason",value:function(){return o.a.createElement("li",{key:"reason-brute-force"},Ws("Block {{a}}brute force attacks{{/a}} and get immediate notifications if your site is down",{components:{a:o.a.createElement("a",{className:"jetpack-termination-dialog__link",href:hu("jetpack-features-security"),rel:"noopener noreferrer",target:"_blank"})}}))}},{key:"renderSocialReason",value:function(){return o.a.createElement("li",{key:"reason-social"},Ws("Grow your traffic with automated social {{a}}publishing and sharing{{/a}}",{components:{a:o.a.createElement("a",{className:"jetpack-termination-dialog__link",href:hu("jetpack-support-social"),rel:"noopener noreferrer",target:"_blank"})}}))}},{key:"renderConnectedPlugins",value:function(e){return o.a.createElement("ul",{class:"jetpack-termination-dialog__active-plugins-list"},e.map((function(e){return o.a.createElement("li",{key:e.slug},o.a.createElement(Fl,{icon:"notice-outline",size:18}),e.name)})))}},{key:"render",value:function(){var e=this.props,t=e.isDevVersion,n=e.purpose,r=e.siteBenefits,i=e.connectedPlugins,a=r.length,s=t?xd:Ad;return o.a.createElement(au,{className:"jetpack-termination-dialog__features"},o.a.createElement("p",{className:"jetpack-termination-dialog__info"},Ws("disconnect"===n?"Jetpack is currently powering features on your site. Once you disconnect Jetpack, these features will no longer be available and your site may no longer function the same way.":"Jetpack is currently powering features on your site. Once you disable Jetpack, these features will no longer be available and your site may no longer function the same way."),a>0&&Ws(" We’ve highlighted some of the features you rely on below.")),o.a.createElement("div",{className:1===a?"jetpack-termination-dialog__features-list-single-column":"jetpack-termination-dialog__features-list"},r.map((function(e){var t=e.amount,n=e.description,r=e.name,i=e.gridIcon,a=e.title;return o.a.createElement(Sf,{key:r,amount:t,description:n,gridIcon:i,title:a})}))),a<=2&&o.a.createElement("div",{className:"jetpack-termination-dialog__generic-info"},o.a.createElement("h2",null,Ws("Jetpack has many powerful tools that can help you achieve your goals")),o.a.createElement("ul",null,this.renderCDNReason(),this.renderProtectReason(),this.renderSocialReason())),i.length>0&&o.a.createElement("div",{className:"jetpack-termination-dialog__generic-info"},o.a.createElement("h2",null,Ws("The Jetpack Connection is also used by another plugin, and it will lose connection.","The Jetpack Connection is also used by other plugins, and they will lose connection.",{count:i.length})),this.renderConnectedPlugins(i)),o.a.createElement("div",{className:"jetpack-termination-dialog__get-help"},o.a.createElement("p",null,Ws("Have a question? We’d love to help! {{a}}Send a question to the Jetpack support team.{{/a}}",{components:{a:o.a.createElement("a",{className:"jetpack-termination-dialog__link",href:s,rel:"noopener noreferrer",target:"_blank"})}}))))}}]),t}(s.Component));Ka()(Tf,"propTypes",{isDevVersion:u.a.bool,purpose:u.a.oneOf(["disconnect","disable"]).isRequired,siteBenefits:u.a.array.isRequired,connectedPlugins:u.a.array.isRequired});var Af=Tf,xf=function(e){function t(e){var n;return Ei()(this,t),n=Si()(this,Ai()(t).call(this,e)),Ka()(Ls()(n),"handleRadioChange",(function(){var e=n.props;(0,e.onAnswerChange)(e.answer.id,n.state.textResponse)})),Ka()(Ls()(n),"handleTextChange",(function(e){var t=n.props,r=t.onAnswerChange,i=t.answer.id,a=e.target.value;r(i,a),n.setState({textResponse:a})})),n.state={textResponse:e.selectedAnswerText},n}return Mi()(t,e),zs()(t,[{key:"renderTextInput",value:function(){var e=this.props,t=e.disabled,n=e.answer.textInputPrompt,r=this.state.value;return o.a.createElement(bu,{className:"multiple-choice-question__answer-item-text-input",value:r,onChange:this.handleTextChange,placeholder:n||"",disabled:t})}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.answer,r=n.id,i=n.answerText,a=n.textInput,s=n.children,c=e.isSelected;return o.a.createElement(mu,null,o.a.createElement(wu,{value:r,onChange:this.handleRadioChange,checked:c,disabled:t}),o.a.createElement("span",null,i),o.a.createElement("div",{className:"multiple-choice-question__answer-item-content"},a&&this.renderTextInput(),s))}}]),t}(s.Component);Ka()(xf,"propTypes",{disabled:u.a.bool,isSelected:u.a.bool,onAnswerChange:u.a.func,answer:u.a.shape({id:u.a.string.isRequired,answerText:u.a.string.isRequired,textInput:u.a.bool,textInputPrompt:u.a.string,children:u.a.object}).isRequired,selectedAnswerText:u.a.string}),Ka()(xf,"defaultProps",{disabled:!1,selectedAnswerText:""});var Mf=xf,jf=(n(360),Object(kt.memoize)((function(e){var t=Object(kt.shuffle)(e.filter((function(e){return!e.doNotShuffle})));return e.map((function(e){return e.doNotShuffle?e:t.pop()}))}),(function(e){return e.map((function(e){return Object(kt.values)(Object(kt.pick)(e,"id","doNotShuffle")).join("_")})).join("-")}))),Nf=function(e){function t(e){var n;return Ei()(this,t),n=Si()(this,Ai()(t).call(this,e)),Ka()(Ls()(n),"handleAnswerChange",(function(e,t){(0,n.props.onAnswerChange)(e,t),n.setState({selectedAnswerId:e})})),n.state={selectedAnswerId:e.selectedAnswerId},n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.disabled,r=t.answers,i=t.question,a=t.selectedAnswerText,s=t.subHeader,c=this.state.selectedAnswerId,l=jf(r);return o.a.createElement(fu,{className:"multiple-choice-question"},o.a.createElement("h2",{className:"multiple-choice-question__question"},i),s&&o.a.createElement("h3",{className:"multiple-choice-question__subheader"},s),l.map((function(t){return o.a.createElement(Mf,{key:t.id,answer:t,disabled:n,isSelected:c===t.id,onAnswerChange:e.handleAnswerChange,selectedAnswerText:c===t.id?a:""})})))}}]),t}(s.Component);Ka()(Nf,"propTypes",{answers:u.a.arrayOf(u.a.shape({id:u.a.string.isRequired,answerText:u.a.string.isRequired,doNotShuffle:u.a.bool,textInput:u.a.bool,textInputPrompt:u.a.string,children:u.a.object})).isRequired,disabled:u.a.bool,onAnswerChange:u.a.func.isRequired,question:u.a.string.isRequired,selectedAnswerId:u.a.string,selectedAnswerText:u.a.string,subHeader:u.a.string}),Ka()(Nf,"defaultProps",{disabled:!1,selectedAnswerId:null,selectedAnswerText:""});var Of=Nf,Pf=[{id:"cannot-work",answerText:Ws("I can't get it to work.")},{id:"slow",answerText:Ws("It slowed down my site.")},{id:"buggy",answerText:Ws("It's buggy.")},{id:"no-clarity",answerText:Ws("I don't know what it does.")},{id:"delete",answerText:Ws("I'm deleting/migrating my site.")},{id:"troubleshooting",answerText:Ws("Troubleshooting - I'll be reconnecting afterwards.")},{id:"other",answerText:Ws("Other:"),textInput:!0,textInputPrompt:Ws("share your experience"),doNotShuffle:!0}],If=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"getQuestion",value:function(){var e=this.props.purpose;return Ws("disconnect"===e?"Please let us know why you're disconnecting Jetpack":"Please let us know why you're disabling Jetpack")}},{key:"render",value:function(){var e=this.props,t=e.onSurveyAnswerChange,n=e.surveyAnswerId,r=e.surveyAnswerText;return o.a.createElement(au,{className:"jetpack-disconnect-dialog__survey"},o.a.createElement(Of,{answers:Pf,question:this.getQuestion(),subHeader:Ws("Your feedback will help us improve the product."),onAnswerChange:t,selectedAnswerId:n,selectedAnswerText:r}))}}]),t}(s.Component);Ka()(If,"propTypes",{onSurveyAnswerChange:u.a.func.isRequired,purpose:u.a.oneOf(["disconnect","disable"]).isRequired,surveyAnswerId:u.a.string,surveyAnswerText:u.a.string});var Df=If,Uf=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.props.isFetchingSiteBenefits||this.props.fetchSiteBenefits()}},{key:"render",value:function(){return null}}]),t}(s.Component);Ka()(Uf,"defaultProps",{isFetchingSiteBenefitsData:!1});var Rf=ce((function(e){return{isFetchingSiteBenefits:uc(e)}}),(function(e){return{fetchSiteBenefits:function(){return e((function(e){return e({type:sr}),zi.fetchSiteBenefits().then((function(t){e({type:or,siteBenefits:t})})).catch((function(t){e({type:cr,error:t})}))}))}}}))(Uf),zf=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.props.isFetchingConnectedPlugins||this.props.fetchConnectedPlugins()}},{key:"render",value:function(){return null}}]),t}(s.Component);Ka()(zf,"defaultProps",{isFetchingConnectedPlugins:!1});var Ff=ce((function(e){return{isFetchingConnectedPlugins:pc(e)}}),(function(e){return{fetchConnectedPlugins:function(){e((function(e){return e({type:mn}),zi.fetchConnectedPlugins().then((function(t){return e({type:gn,connectedPlugins:t}),t})).catch((function(t){e({type:vn,error:t})}))}))}}}))(zf);function Lf(e){switch(e){case"contact-form":return"align-image-center";case"contact-form-feedback":return"mail";case"image-hosting":return"image";case"jetpack-backup":return"cloud-download";case"jetpack-stats":return"stats-alt";case"protect":return"lock";case"publicize":case"sharing":return"share";case"subscribers":return"user";case"video-hosting":return"video-camera";default:return"checkmark"}}function Bf(e){return{name:e.name,title:e.title,description:e.description,amount:e.value,gridIcon:Lf(e.name)}}var Vf=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{step:t.FEATURE_STEP,surveyAnswerId:null,surveyAnswerText:""}),Ka()(Ls()(n),"handleContinueClick",(function(){var e=n.props,r=e.location,i=e.purpose;al.tracks.recordEvent("jetpack_termination_dialog_continue_click",{location:r,purpose:i}),n.setState({step:t.SURVEY_STEP})})),Ka()(Ls()(n),"handleTerminationClick",(function(){var e=n.props,t=e.location,r=e.purpose,i=e.siteId,a=e.sitePlan,s=e.submitSurvey,o=e.terminateJetpack,c=n.state,l=c.surveyAnswerId,u=c.surveyAnswerText;al.tracks.recordEvent("jetpack_termination_dialog_termination_click",{location:t,purpose:r}),s(i,a,l,u,t),o()})),Ka()(Ls()(n),"handleDialogCloseClick",(function(){var e=n.props,t=e.closeDialog,r=e.location,i=e.purpose;al.tracks.recordEvent("jetpack_termination_dialog_close_click",{location:r,purpose:i}),t()})),Ka()(Ls()(n),"handleSurveyAnswerChange",(function(e,t){n.setState({surveyAnswerId:e,surveyAnswerText:t})})),n}return Mi()(t,e),zs()(t,[{key:"renderFeatures",value:function(){var e=this.props,t=e.isDevSite,n=e.purpose,r=e.siteBenefits,i=e.connectedPlugins;return r&&i?o.a.createElement(Af,{isDevSite:t,purpose:n,siteBenefits:r.map(Bf),connectedPlugins:i}):o.a.createElement(au,{className:"jetpack-termination-dialog__spinner"},o.a.createElement(zl,null))}},{key:"renderSurvey",value:function(){var e=this.props.purpose,t=this.state,n=t.surveyAnswerId,r=t.surveyAnswerText;return o.a.createElement(Df,{onSurveyAnswerChange:this.handleSurveyAnswerChange,purpose:e,surveyAnswerId:n,surveyAnswerText:r})}},{key:"renderPrimaryButton",value:function(){var e=this.props,n=e.purpose,r=e.showSurvey,i=this.state.step;return r&&i===t.FEATURE_STEP?o.a.createElement(Yc,{primary:!0,onClick:this.handleContinueClick},Ws("Continue")):o.a.createElement(Yc,{scary:!0,primary:!0,onClick:this.handleTerminationClick},Ws("disconnect"===n?"Disconnect":"Disable"))}},{key:"render",value:function(){var e=this.props,n=e.location,r=e.purpose,i=e.showSurvey,a=this.state.step;return o.a.createElement("div",{className:"jetpack-termination-dialog"},o.a.createElement(pu,null),o.a.createElement(Rf,null),o.a.createElement(Ff,null),o.a.createElement(au,null,o.a.createElement("div",{className:"jetpack-termination-dialog__header"},o.a.createElement("h2",null,Ws("disconnect"===r?"Disconnect Jetpack":"Disable Jetpack")),"dashboard"===n&&o.a.createElement(Fl,{icon:"cross",className:"jetpack-termination-dialog__close-icon",onClick:this.handleDialogCloseClick}))),i&&a!==t.FEATURE_STEP?this.renderSurvey():this.renderFeatures(),o.a.createElement(au,null,o.a.createElement("div",{className:"jetpack-termination-dialog__button-row"},o.a.createElement("p",null,Ws("disconnect"===r?"Are you sure you want to disconnect?":"Are you sure you want to disconnect and deactivate?")),o.a.createElement("div",{className:"jetpack-termination-dialog__button-row-buttons"},o.a.createElement(Yc,{onClick:this.handleDialogCloseClick},Ws("Cancel")),this.renderPrimaryButton()))))}}]),t}(s.Component);Ka()(Vf,"FEATURE_STEP","FEATURE_STEP"),Ka()(Vf,"SURVEY_STEP","SURVEY_STEP"),Ka()(Vf,"propTypes",{closeDialog:u.a.func.isRequired,isDevVersion:u.a.bool,location:u.a.oneOf(["plugins","dashboard"]).isRequired,purpose:u.a.oneOf(["disconnect","disable"]).isRequired,showSurvey:u.a.bool.isRequired,siteBenefits:u.a.array,submitSurvey:u.a.func,terminateJetpack:u.a.func.isRequired,connectedPlugins:u.a.array});var Hf=ce((function(e){return{isDevVersion:Vi(e),siteBenefits:fc(e),siteId:Sc(e),sitePlan:hc(e),connectedPlugins:Tc(e)}}),{submitSurvey:function(e,t,n,r,i){var a={survey_id:"calypso-disconnect-jetpack-july2019",site_id:e,survey_responses:{purchase:t.product_slug,"why-cancel":{response:n},source:{from:"plugins"===i?"Jetpack-Plugins":"Jetpack-Dashboard"}}};return r&&""!==r&&(a.survey_responses["why-cancel"].text=r),function(e){return function(t){return t({type:Lr}),zi.submitSurvey(e).then((function(e){return t({type:Br}),e})).catch((function(e){t({type:Vr,error:e.response})}))}}(a)}})(Vf),qf=n(98),Kf=n.n(qf),Jf=(n(363),!1);var Wf=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{overlayMouseDown:!1}),Ka()(Ls()(n),"handleEscapeKey",(function(e){27===e.keyCode&&n.maybeClose()})),Ka()(Ls()(n),"maybeClose",(function(){n.props.onRequestClose&&!Jf&&n.props.onRequestClose()})),Ka()(Ls()(n),"handleMouseDownOverlay",(function(e){e.preventDefault(),e.stopPropagation(),n.setState({overlayMouseDown:!0})})),Ka()(Ls()(n),"handleClickOverlay",(function(e){e.preventDefault(),e.stopPropagation(),n.state.overlayMouseDown&&n.props.onRequestClose&&!Jf&&(n.setState({overlayMouseDown:!1}),n.props.onRequestClose())})),Ka()(Ls()(n),"handleMouseEventModal",(function(e){e.stopPropagation()})),n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{Kf.a.activate(a.a.findDOMNode(this),{initialFocus:this.props.initialFocus})}catch(e){}}},{key:"componentWillUnmount",value:function(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{Kf.a.deactivate()}catch(e){}}},{key:"render",value:function(){var e,t=this.props,n=t.style,r=t.className,i=t.width,a=t.title,s=Jc()(t,["style","className","width","title"]),c=Object(kt.omit)(s,"onRequestClose").forwardedProps;switch(i){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}var l=Object(kt.assign)({},n,e);return o.a.createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},o.a.createElement("div",ll()({className:Gc()("dops-modal",r),style:l,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":a},c),this.props.children))}}]),t}(o.a.Component);Ka()(Wf,"propTypes",{style:u.a.object,width:u.a.oneOf(["wide","medium","narrow"]),className:u.a.string,title:u.a.string,initialFocus:u.a.string,onRequestClose:u.a.func}),Ka()(Wf,"defaultProps",{style:{}}),Wf.preventClose=function(){Jf=!0},Wf.allowClose=function(){Jf=!1};var Gf=Wf,Yf=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"disconnectJetpack",(function(){n.props.disconnectSite(!0)})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props,t=e.show,n=e.showSurvey,r=e.toggleModal;return t&&o.a.createElement(Gf,{className:"jp-connection-settings__modal",onRequestClose:r},o.a.createElement(Hf,{closeDialog:r,location:"dashboard",purpose:"disconnect",showSurvey:n,terminateJetpack:this.disconnectJetpack}))}}]),t}(s.Component);Ka()(Yf,"propTypes",{show:u.a.bool,showSurvey:u.a.bool,toggleModal:u.a.func}),Ka()(Yf,"defaultProps",{show:!1,showSurvey:!1,toggleModal:kt.noop});var $f=ce(null,(function(e){return{disconnectSite:function(){return e(ol(!0))}}}))(Yf),Qf=(n(364),function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{showModal:!1}),Ka()(Ls()(n),"handleOpenModal",(function(e){al.tracks.recordJetpackClick("manage_site_connection"),e.preventDefault(),n.toggleVisibility()})),Ka()(Ls()(n),"disconnectSite",(function(){n.toggleVisibility(),n.props.disconnectSite()})),Ka()(Ls()(n),"toggleVisibility",(function(){n.setState({showModal:!n.state.showModal})})),Ka()(Ls()(n),"renderUserButton",(function(){if(n.props.isLinked)return o.a.createElement("div",null,o.a.createElement("a",{role:"button",tabIndex:"0",className:"jp-jetpack-unlink__button",onKeyDown:rp(n.props.unlinkUser),onClick:n.props.unlinkUser,disabled:n.props.isUnlinking},Ws("Unlink me from WordPress.com")));var e=n.props.connectUrl;n.props.from&&(e+="&from=".concat(n.props.from),e+="&additional-user");var t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:n.props.fetchingConnectUrl},r=Ws("Link to WordPress.com");return n.props.asLink?o.a.createElement("a",t,r):o.a.createElement(Yc,t,r)})),Ka()(Ls()(n),"renderContent",(function(){if(n.props.connectUser)return n.renderUserButton();if(n.props.isSiteConnected)return o.a.createElement("a",{role:"button",tabIndex:"0",onKeyDown:rp(n.handleOpenModal),onClick:n.handleOpenModal,disabled:n.props.isDisconnecting},Ws("Manage site connection"));var e=n.props.connectUrl;n.props.from&&(e+="&from=".concat(n.props.from));var t={className:"jp-jetpack-connect__button",href:e,disabled:n.props.fetchingConnectUrl},r=Ws("Set up Jetpack");return n.props.asLink?o.a.createElement("a",t,r):o.a.createElement(Yc,t,r)})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("div",null,!this.props.isSiteConnected&&o.a.createElement("p",{className:"jp-banner__tos-blurb"},Ws("By clicking the button below, you agree to our {{tosLink}}Terms of Service{{/tosLink}} and to {{shareDetailsLink}}share details{{/shareDetailsLink}} with WordPress.com.",{components:{tosLink:o.a.createElement("a",{href:hu("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:o.a.createElement("a",{href:hu("jetpack-support-what-data-does-jetpack-sync"),rel:"noopener noreferrer",target:"_blank"})}})),this.renderContent(),this.props.children,o.a.createElement($f,{show:this.state.showModal,showSurvey:!1,toggleModal:this.toggleVisibility}))}}]),t}(o.a.Component));Ka()(Qf,"displayName","ConnectButton"),Ka()(Qf,"propTypes",{connectUser:u.a.bool,from:u.a.string,asLink:u.a.bool}),Ka()(Qf,"defaultProps",{connectUser:!1,from:"",asLink:!1});var Xf=ce((function(e){return{siteRawUrl:Ji(e),isSiteConnected:Xs(e),isDisconnecting:no(e),fetchingConnectUrl:ro(e),connectUrl:to(e),isLinked:so(e),isUnlinking:io(e)}}),(function(e){return{disconnectSite:function(){return e(ol())},unlinkUser:function(){return e((function(e){return e({type:Ft}),e(us("is-info",Ws("Unlinking from WordPress.com"),{id:"unlink-user"})),zi.unlinkUser().then((function(t){e({type:Bt,userUnlinked:t}),e(ls("unlink-user")),e(us("is-success",Ws("Unlinked from WordPress.com."),{id:"unlink-user",duration:2e3}))})).catch((function(t){e({type:Lt,error:t}),e(ls("unlink-user")),e(us("is-error",Ws("Error unlinking from WordPress.com. %(error)s",{args:{error:t}}),{id:"unlink-user"}))}))}))}}}))(Qf),Zf=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{showModal:!1}),Ka()(Ls()(n),"handleOpenModal",(function(e){e.preventDefault(),al.tracks.recordJetpackClick("login_to_mobile_app_modal"),n.toggleModalVisibility()})),Ka()(Ls()(n),"toggleModalVisibility",(function(){n.setState({showModal:!n.state.showModal})})),Ka()(Ls()(n),"clickSendLoginEmail",(function(e){e.preventDefault(),al.tracks.recordJetpackClick("login_to_mobile_send_link"),n.toggleModalVisibility(),n.props.sendMobileLoginEmail()})),n}return Mi()(t,e),zs()(t,[{key:"renderModal",value:function(){return o.a.createElement(Gf,{className:"mobile-magic-link__modal",onRequestClose:this.toggleModalVisibility},o.a.createElement(au,{className:"mobile-magic-link__modal__body"},o.a.createElement("h2",null,Ws("Email me a link to log in to the app")),o.a.createElement("h4",null,Ws("Easily log in to the WordPress app by clicking the link we'll send to the email address on your account.")),o.a.createElement("div",{className:"mobile-magic-link__modal-actions"},o.a.createElement(Yc,{className:"mobile-magic-link__modal-cancel",onClick:this.toggleModalVisibility},Ws("Cancel",{context:"A caption for a button to cancel an action."})),o.a.createElement(Yc,{onClick:this.clickSendLoginEmail,primary:!0},Ws("Send link",{context:"A caption for a button to log in to the WordPress mobile app."})))))}},{key:"render",value:function(){var e=this.state.showModal;return o.a.createElement("div",{className:"mobile-magic-link"},o.a.createElement("a",{className:"mobile-magic-link__button",onClick:this.handleOpenModal,onKeyDown:rp(this.handleOpenModal),role:"button",tabIndex:"0"},Ws("Log in to the WordPress mobile app")),e&&this.renderModal())}}]),t}(o.a.Component);Ka()(Zf,"displayName","MobileMagicLink");var em=ce((function(e){return{isSiteConnected:Xs(e),isLinked:so(e)}}),{sendMobileLoginEmail:function(){return function(e){return e({type:di}),e(ls("mobile-login-email-send")),e(ls("mobile-login-email-sent")),e(ls("mobile-login-email-error")),e(us("is-info",Ws("Sending login email…"),{id:"mobile-login-email-send"})),zi.sendMobileLoginEmail().then((function(t){return e(ls("mobile-login-email-send")),e({type:hi}),e(us("is-success",Ws("Login email sent"),{id:"mobile-login-email-sent",duration:2e3})),t})).catch((function(t){e({type:fi,error:t.response}),e(ls("mobile-login-email-send")),e(us("is-error",Ws("Failed to send login email"),{id:"mobile-login-email-error"}))}))}}})(Zf),tm=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"siteConnection",value:function(){var e="";return this.props.isDevMode?e=o.a.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?o.a.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):o.a.createElement(Fl,{icon:"globe",size:64}),o.a.createElement("div",{className:"jp-connection-settings__text"},Ws("Your site is in Development Mode, so it can not be connected to WordPress.com."))):!0===this.props.siteConnectionStatus&&(e=o.a.createElement("div",null,o.a.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?o.a.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):o.a.createElement(Fl,{icon:"globe",size:64}),o.a.createElement("div",{className:"jp-connection-settings__text"},Ws("Your site is connected to WordPress.com."),this.props.userIsMaster&&o.a.createElement("span",{className:"jp-connection-settings__is-owner"},o.a.createElement("br",null),o.a.createElement("em",null,Ws("You are the Jetpack owner."))))),this.props.userCanDisconnectSite&&o.a.createElement("div",{className:"jp-connection-settings__actions"},o.a.createElement(Xf,{asLink:!0})))),e}},{key:"userConnection",value:function(){var e=this.props.userIsMaster?null:o.a.createElement(Xf,{asLink:!0,connectUser:!0,from:"connection-settings"});return this.props.isDevMode?o.a.createElement("div",{className:"jp-connection-settings__info"},this.props.userGravatar?o.a.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userGravatar}):o.a.createElement(Fl,{icon:"user",size:64}),o.a.createElement("div",{className:"jp-connection-settings__text"},Ws("The site is in Development Mode, so you can not connect to WordPress.com."))):this.props.isLinked?o.a.createElement("div",null,o.a.createElement("div",{className:"jp-connection-settings__info"},o.a.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userWpComAvatar}),o.a.createElement("div",{className:"jp-connection-settings__text"},Ws("Connected as {{span}}%(username)s{{/span}}",{args:{username:this.props.userWpComLogin},components:{span:o.a.createElement("span",{className:"jp-connection-settings__username"})},comment:"%(username) is the WordPress user login name."}),o.a.createElement("div",{className:"jp-connection-settings__email"},this.props.userWpComEmail))),o.a.createElement("div",{className:"jp-connection-settings__actions"},e),o.a.createElement(em,null)):o.a.createElement("div",null,o.a.createElement("div",{className:"jp-connection-settings__info"},Ws("Link your account to WordPress.com to get the most out of Jetpack.")),o.a.createElement("div",{className:"jp-connection-settings__actions"},e))}},{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement(Cf,null),o.a.createElement("div",{className:"jp-at-a-glance__item-grid"},o.a.createElement("div",{className:"jp-at-a-glance__left"},o.a.createElement("div",{className:"jp-dash-item__interior"},o.a.createElement(Mh,{className:"jp-connection-type",label:Ws("Site connection",{context:"Dashboard widget header"})},this.siteConnection()))),o.a.createElement("div",{className:"jp-at-a-glance__right"},o.a.createElement("div",{className:"jp-dash-item__interior"},o.a.createElement(Mh,{className:"jp-connection-type",label:Ws("Account connection",{context:"Dashboard widget header"})},this.userConnection())))))}}]),t}(s.Component);tm.propTypes={siteConnectionStatus:u.a.any.isRequired,isDevMode:u.a.bool.isRequired,userCanDisconnectSite:u.a.bool.isRequired,userIsMaster:u.a.bool.isRequired,isLinked:u.a.bool.isRequired,userWpComLogin:u.a.any.isRequired,userWpComEmail:u.a.any.isRequired,userWpComAvatar:u.a.any.isRequired,userGravatar:u.a.any.isRequired,username:u.a.any.isRequired};var nm=ce((function(e){return{siteConnectionStatus:Xs(e),isDevMode:oo(e),userCanDisconnectSite:ta(e),userIsMaster:ra(e),userWpComLogin:ia(e),userWpComEmail:aa(e),userWpComAvatar:sa(e),userGravatar:oa(e),username:ca(e),isLinked:so(e),siteIcon:ua(e)}}))(tm),rm=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackSecurityClick",(function(){return al.tracks.recordJetpackClick("aag_manage_security_wpcom")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e={updateOptions:this.props.updateOptions,getOptionValue:this.props.getOptionValue,isUpdating:this.props.isUpdating,multisite:this.props.multisite},t={siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl},n=o.a.createElement(Ah,{key:"securityHeader",label:Ws("Security"),settingsPath:this.props.userCanManageModules?"#security":void 0,externalLink:this.props.isDevMode||!this.props.userCanManageModules?"":Ws("Manage security settings"),externalLinkPath:this.props.isDevMode?"":"#/security",externalLinkClick:this.trackSecurityClick}),r=o.a.createElement("div",null,o.a.createElement(Ah,{label:Ws("Connections"),className:"jp-dash-section-header__connections"}),o.a.createElement(nm,null)),i=Object(kt.get)(this.props.rewindStatus,["state"],""),a=[];if(a.push(o.a.createElement(sf,ll()({},e,{siteRawUrl:this.props.siteRawUrl}))),this.props.multisite||a.push(o.a.createElement(hf,ll()({},e,{siteRawUrl:this.props.siteRawUrl,rewindStatus:i}))),a.push(o.a.createElement(uf,t)),a.push(o.a.createElement(vf,ll()({},e,t))),"inactive"!==this.props.getModuleOverride("protect")&&a.push(o.a.createElement($h,e)),"inactive"!==this.props.getModuleOverride("monitor")&&a.push(o.a.createElement(Xh,e)),"active"===i&&a.unshift(o.a.createElement(Nh,ll()({},e,{siteRawUrl:this.props.siteRawUrl}))),this.props.userCanManageModules){var s=[{header:n,cards:a}],c=[];return"inactive"!==this.props.getModuleOverride("photon")&&c.push(o.a.createElement(yf,e)),"inactive"!==this.props.getModuleOverride("search")&&c.push(o.a.createElement(kf,e)),c.length&&s.push({header:o.a.createElement(Ah,{key:"performanceHeader",label:Ws("Performance")}),cards:c}),o.a.createElement("div",{className:"jp-at-a-glance"},o.a.createElement(Zl,null),o.a.createElement(pu,null),o.a.createElement(Jh,ll()({},e,t)),s.map((function(e,t){return[e.header,Object(kt.chunk)(e.cards,2).map((function(e,n){var r=Vs()(e,2),i=r[0],a=r[1];return o.a.createElement("div",{className:"jp-at-a-glance__item-grid",key:"card-".concat(t,"-").concat(n)},o.a.createElement("div",{className:"jp-at-a-glance__left"},i),o.a.createElement("div",{className:"jp-at-a-glance__right"},a))}))]})),r)}var l="";this.props.userCanViewStats&&(l=o.a.createElement(Jh,ll()({},e,t)));var u="";return this.props.getOptionValue("protect")&&(u=o.a.createElement($h,e)),this.props.userIsSubscriber?o.a.createElement("div",null,l,r):o.a.createElement("div",null,l,this.props.getOptionValue("protect")&&n,u,r)}}]),t}(s.Component),im=ce((function(e){return{userCanManageModules:Xi(e),userCanViewStats:la(e),userIsSubscriber:$i(e),isDevMode:oo(e),getModuleOverride:function(t){return cs(e,t)},multisite:ka(e)}}))(Yu(rm)),am=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props,t=e.expiryDate,n=e.purchaseDate,r=e.isRefundable,i=e.dateFormat;if(!t&&!n)return null;if(!t||r){var a=Ks(n);return a.isValid()?Ws("Purchased on %s.",{args:a.format(i)}):null}var s=Ks(t);return s.isValid()?s.diff(new Date)<0?Ws("Expired on %s.",{args:s.format(i)}):Ws("Renews on %s.",{args:s.format(i)}):null}}]),t}(o.a.PureComponent);Ka()(am,"propTypes",{expiryDate:u.a.string,purchaseDate:u.a.string,isRefundable:u.a.bool,dateFormat:u.a.string}),Ka()(am,"defaultProps",{expiryDate:"",purchaseDate:"",isRefundable:!1,dateFormat:"LL"});var sm=am,om=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackClick",(function(){var e=n.props,t=e.target,r=e.feature;if(t){var i=r?{feature:r}:{};al.tracks.recordJetpackClick(bi()({type:"upgrade-link",target:t},i))}})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("a",{href:this.props.upgradeUrl,target:"_blank",rel:"noopener noreferrer",onClick:this.trackClick},this.props.children)}}]),t}(s.PureComponent);Ka()(om,"propTypes",{source:u.a.string.isRequired,target:u.a.string.isRequired,feature:u.a.string,upgradeUrl:u.a.string.isRequired});var cm=ce((function(e,t){var n=t.source;return{upgradeUrl:Sa(e,n)}}))(om);function lm(e){var t=e.onClick,n=e.siteSlug;return o.a.createElement("div",{className:"jp-landing__plan-features-header-checklist-cta-container"},o.a.createElement(Yc,{href:hu("calypso-plans-my-plan",{site:n,query:"checklist"}),onClick:t,primary:!0},Ws("View your setup checklist")))}function um(e){var t=e.children;return o.a.createElement("span",{className:"screen-reader-text"},t)}var pm=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=Gc()(this.props.className,"checklist-header-progress-bar"),t=Math.min(Math.ceil(this.props.value/this.props.total*100),100),n=this.props.title?o.a.createElement(um,null,this.props.title):null;return o.a.createElement("div",{className:e},o.a.createElement("div",{className:"checklist-header-progress-bar__progress",style:{width:t+"%"}},n))}}]),t}(s.PureComponent);function dm(e){return e.jetpack.checklist.isLoading}Ka()(pm,"defaultProps",{total:100}),Ka()(pm,"propTypes",{value:u.a.number.isRequired,total:u.a.number,title:u.a.string,className:u.a.string});var hm=Object(kt.memoize)((function(e){var t=Object.keys(e);return{completed:t.filter((function(t){return e[t].completed})).length,total:t.length}}));function fm(e){var t=function(e){return Object(kt.get)(e,["jetpack","checklist","checklist","tasks"])}(e);return t?hm(t):null}var mm=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.props.isLoading||this.props.requestSiteChecklist()}},{key:"render",value:function(){return null}}]),t}(s.Component);Ka()(mm,"propTypes",{requestSiteChecklist:u.a.func,isLoading:u.a.bool});var gm=ce((function(e){return{isLoading:dm(e)}}),{requestSiteChecklist:function(){return function(e){e({type:pi})}}})(mm),vm=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackCtaClick",(function(){al.tracks.recordEvent("jetpack_myplan_progresschecklistcta_click",n.props.plan?{plan:n.props.plan}:void 0)})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props,t=e.completed,n=e.total,r=e.siteSlug;return o.a.createElement(o.a.Fragment,null,o.a.createElement(gm,null),t&&n&&o.a.createElement(au,{compact:!0,className:"checklist__header"},o.a.createElement("div",{className:"checklist__header-main"},o.a.createElement("div",{className:"checklist__header-progress"},o.a.createElement("span",{className:"checklist__header-progress-text"},Ws("Your Jetpack setup progress",{comment:"Onboarding task list progress"})),o.a.createElement("span",{className:"checklist__header-progress-number"},"".concat(t,"/").concat(n))),o.a.createElement(pm,{total:n,value:t})),o.a.createElement("div",{className:"checklist__header-secondary"},o.a.createElement(Yc,{compact:!0,href:hu("calypso-plans-my-plan",{site:r}),onClick:this.trackCtaClick,primary:!0},Ws("Complete Jetpack Setup",{comment:"Text on link to list of onboarding tasks"})))))}}]),t}(s.Component),bm=ce((function(e){return bi()({siteSlug:Ji(e)},fm(e))}))(vm),ym=(n(365),function(e){var t=e.action,n=e.isError,r=e.isPlaceholder,i=e.details,a=e.icon,s=e.tagLine,c=e.title,l=Gc()("my-plan-card",{"is-placeholder":r,"has-action-only":t&&!i&&!r}),u=Gc()("my-plan-card__details",{"is-error":n});return o.a.createElement("div",{className:l},o.a.createElement("div",{className:"my-plan-card__primary"},o.a.createElement("div",{className:"my-plan-card__icon"},a&&o.a.createElement("img",{src:a,alt:c})),o.a.createElement("div",{className:"my-plan-card__header"},c&&o.a.createElement("h2",{className:"my-plan-card__title"},c),s&&o.a.createElement("p",{className:"my-plan-card__tag-line"},s))),(i||t||r)&&o.a.createElement("div",{className:"my-plan-card__secondary"},o.a.createElement("div",{className:u},r?null:i),o.a.createElement("div",{className:"my-plan-card__action"},r?null:t)))});ym.propTypes={action:u.a.oneOfType([u.a.node,u.a.element]),isError:u.a.bool,isPlaceholder:u.a.bool,details:u.a.oneOfType([u.a.string,u.a.node,u.a.element]),icon:u.a.string,tagLine:u.a.oneOfType([u.a.string,u.a.node,u.a.element]),title:u.a.oneOfType([u.a.string,u.a.node,u.a.element])};var wm=ym,_m=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"getProductProps",value:function(e){var t=this.props,n=t.displayBackups,r=t.purchases;if(!e)return{isPlaceholder:!0};var i,a=Object(kt.find)(r,(function(t){return t.product_slug===e}));switch(a&&(i=o.a.createElement(sm,{expiryDate:a.expiry_date,purchaseDate:a.subscribed_date,isRefundable:a.is_refundable})),sc(e)){case"is-free-plan":return{icon:Td+"/plans/plan-free.svg",tagLine:Ws("Worried about security? Get backups, automated security fixes and more: {{a}}Upgrade now{{/a}}",{components:{a:o.a.createElement(cm,{source:"my-plan-header-free-plan-text-link",target:"upgrade-now",feature:"my-plan-header-free-upgrade"})}}),title:Ws("Jetpack Free")};case"is-personal-plan":return{details:i,icon:Td+"/plans/plan-personal.svg",tagLine:Ws(n?"Daily backups, spam filtering, and priority support.":"Spam filtering and priority support."),title:Ws("Jetpack Personal")};case"is-premium-plan":return{details:i,icon:Td+"/plans/plan-premium.svg",tagLine:Ws("Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support."),title:Ws("Jetpack Premium")};case"is-business-plan":return{details:i,icon:Td+"/plans/plan-business.svg",tagLine:Ws("Full security suite, marketing and revenue automation tools, unlimited video hosting, unlimited themes, and priority support."),title:Ws("Jetpack Professional")};case"is-daily-backup-plan":return{details:i,icon:Td+"/products/product-jetpack-backup.svg",tagLine:Ws("Your data is being securely backed up every day with a 30-day archive."),title:Ws("Jetpack Backup {{em}}Daily{{/em}}",{components:{em:o.a.createElement("em",null)}})};case"is-realtime-backup-plan":return{details:i,icon:Td+"/products/product-jetpack-backup.svg",tagLine:Ws("Your data is being securely backed up as you edit."),title:Ws("Jetpack Backup {{em}}Real-Time{{/em}}",{components:{em:o.a.createElement("em",null)}})};case"is-search-plan":return{details:i,icon:Td+"/products/product-jetpack-search.svg",tagLine:Ws("Fast, highly relevant search results and powerful filtering."),title:Ws("Jetpack Search")};case"is-scan-plan":return{details:i,icon:"".concat(Td,"/products/product-jetpack-scan.svg"),tagLine:Ws("Automatic scanning and one-click fixes keep your site one step ahead of security threats."),title:Ws("Jetpack Scan {{em}}Daily{{/em}}",{components:{em:o.a.createElement("em",null)}})};default:return{isPlaceholder:!0}}}},{key:"renderPlan",value:function(){return o.a.createElement(au,{compact:!0},this.renderHeader(Ws("My Plan")),o.a.createElement(wm,this.getProductProps(this.props.plan)))}},{key:"renderProducts",value:function(){var e=this;return Object(kt.isEmpty)(this.props.activeProducts)?null:o.a.createElement(au,{compact:!0},this.renderHeader(Ws("My Products")),this.props.activeProducts.map((function(t){var n=t.ID,r=t.product_slug;return o.a.createElement(wm,ll()({key:"product-card-"+n},e.getProductProps(r)))})))}},{key:"renderHeader",value:function(e){return o.a.createElement("h3",{className:"jp-landing__card-header"},e)}},{key:"render",value:function(){var e=this.props,t=e.plan,n=e.siteSlug;return o.a.createElement("div",{className:"jp-landing__plans"},this.renderPlan(),this.renderProducts(),o.a.createElement(au,{compact:!0},o.a.createElement(lm,{onClick:this.trackChecklistCtaClick,siteSlug:n})),o.a.createElement(bm,{plan:t}))}}]),t}(o.a.Component);_m.propTypes={plan:u.a.string,siteRawUrl:u.a.string,siteSlug:u.a.string,displayBackups:u.a.bool,plansMainTopUpgradeUrl:u.a.string,purchases:u.a.array};var km=ce((function(e){return{siteSlug:Ji(e),displayBackups:wa(e),plansMainTopUpgradeUrl:Sa(e,"plans-main-top")}}))(_m),Em=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackPlansClick",(function(e){al.tracks.recordJetpackClick({page:"my-plan",target:e,plan:n.props.plan})})),Ka()(Ls()(n),"handleButtonClickForTracking",(function(e){return function(){return n.trackPlansClick(e)}})),Ka()(Ls()(n),"activateAds",(function(){n.props.activateModule("wordads"),n.trackPlansClick("activate_wordads")})),Ka()(Ls()(n),"activatePublicize",(function(){n.props.activateModule("publicize"),n.trackPlansClick("activate_publicize")})),Ka()(Ls()(n),"activateVideoPress",(function(){n.props.activateFeature("videopress"),n.trackPlansClick("activate_videopress")})),Ka()(Ls()(n),"activateSeo",(function(){n.props.activateModule("seo-tools"),n.trackPlansClick("activate_seo")})),Ka()(Ls()(n),"activateGoogleAnalytics",(function(){n.props.activateModule("google-analytics"),n.trackPlansClick("activate_ga")})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e,t=this,n="",r="dev"!==this.props.plan?sc(this.props.plan):"dev",i=Object(kt.includes)(this.props.activeFeatures,"premium-themes"),a="active"===Object(kt.get)(this.props.rewindStatus,["state"],!1),s=!this.props.showBackups||!a&&"unavailable"!==Object(kt.get)(this.props.rewindStatus,["state"],!1),c=function(e){var n=e.title,r=e.description;return o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-backup.svg",className:"jp-landing__plan-features-icon",alt:Ws("A Jetpack Site securely backed up with Jetpack Backup")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},n),o.a.createElement("p",null,r),o.a.createElement(Yc,{onClick:t.handleButtonClickForTracking("view_backup_dash"),href:hu("calypso-activity-log",{site:t.props.siteRawUrl})},Ws("View Your Backups"))))},l=function(){if(!s){if(a)return o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-security.svg",className:"jp-landing__plan-features-icon",alt:Ws("A secure site, locked and protected by Jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Site Backups")),o.a.createElement("p",null,Ws("Real-time backup of all your site data with unlimited space, one-click restores, and automated security scanning.")),o.a.createElement(Yc,{onClick:t.handleButtonClickForTracking("view_security_dash_rewind"),href:hu("calypso-activity-log",{site:t.props.siteRawUrl})},Ws("View your security activity"))));var e="";switch(r){case"is-personal-plan":e=Ws("Daily backup of all your site data with unlimited space and one-click restores");break;case"is-premium-plan":e=Ws("Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support");break;case"is-business-plan":e=Ws("Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support");break;default:e=""}return o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-security.svg",className:"jp-landing__plan-features-icon",alt:Ws("A secure site, locked and protected by Jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Site Security")),o.a.createElement("p",null,e+Ws(" (powered by VaultPress).")),t.props.isPluginInstalled("vaultpress/vaultpress.php")&&t.props.isPluginActive("vaultpress/vaultpress.php")?o.a.createElement(Yc,{onClick:t.handleButtonClickForTracking("view_security_dash"),href:hu("vaultpress-dashboard")},Ws("View your security dashboard")):o.a.createElement(Yc,{onClick:t.handleButtonClickForTracking("configure_vault"),href:hu("calypso-plugins-setup",{site:t.props.siteRawUrl,query:"only=vaultpress"})},Ws("View settings"))))}};"is-daily-backup-plan"===r&&(e=c({title:Ws("Automated Daily Backups"),description:Ws("We back up your website every day, so you never have to worry about your data again.")})),"is-realtime-backup-plan"===r&&(e=c({title:Ws("Automated Real-time Backups"),description:Ws("We back up your website with every change you make, making it easy to fix your mistakes.")}));var u=function(){return o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-search-icon.svg",className:"jp-landing__plan-features-icon",alt:Ws("A Jetpack Site with the power of Jetpack Search")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Instant Search and Filtering")),o.a.createElement("p",null,Ws("Relevant search results and filtering tightly integrated with your theme.")),o.a.createElement(Yc,{onClick:t.handleButtonClickForTracking("view_search_customizer"),href:t.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_search"},Ws("Customize Search"))))};switch(r){case"is-personal-plan":case"is-premium-plan":case"is-business-plan":n=o.a.createElement("div",{className:"jp-landing__plan-features"},"is-personal-plan"===r&&l(),"is-premium-plan"===r&&l(),"is-business-plan"===r&&l(),this.props.hasActiveSearchPurchase&&u(),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-speed-icon.svg",className:"jp-landing__plan-features-icon",alt:Ws("A fast and performant website")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Optimized performance")),o.a.createElement("p",null,Ws("Load pages faster by serving your images from our global network of servers.")),o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("paid_performance"),href:this.props.siteAdminUrl+"admin.php?page=jetpack#/performance"},Ws("Make your site faster")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-spam.svg",className:"jp-landing__plan-features-icon",alt:Ws("A folder holding real comments")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Anti-spam")),o.a.createElement("p",null,Ws("Spam is automatically blocked from your comments.")),this.props.isPluginInstalled("akismet/akismet.php")&&this.props.isPluginActive("akismet/akismet.php")?o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("view_spam_stats"),href:this.props.siteAdminUrl+"admin.php?page=akismet-key-config"},Ws("View your spam stats")):o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("configure_akismet"),href:hu("calypso-plugins-setup",{site:this.props.siteRawUrl,query:"only=akismet"})},Ws("View settings")))),("is-business-plan"===r||"is-premium-plan"===r)&&"inactive"!==this.props.getModuleOverride("videopress")&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-video-hosting.svg",className:"jp-landing__plan-features-icon",alt:Ws("A cloud with multiple types of content floating around it")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Video Hosting")),o.a.createElement("p",null,Ws("High-speed, high-definition video hosting with no third-party ads.")),this.props.getFeatureState("videopress")?o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("upload_videos"),href:this.props.siteAdminUrl+"upload.php"},Ws("Upload videos")):o.a.createElement(Yc,{onClick:this.activateVideoPress,disabled:this.props.isActivatingFeature("videopress")},Ws("Activate video hosting")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-site-activity.svg",className:"jp-landing__plan-features-icon",alt:Ws("Interface showing a chronological list of changes and updates in a site")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Activity")),o.a.createElement("p",null,Ws("View a chronological list of all the changes and updates to your site in an organized, readable way.")),o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("view_site_activity"),href:hu("calypso-activity-log",{site:this.props.siteRawUrl})},Ws("View your site activity")))),("is-business-plan"===r||"is-premium-plan"===r)&&"inactive"!==this.props.getModuleOverride("wordads")&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-wordads.svg",className:"jp-landing__plan-features-icon",alt:Ws("A chart showing an healthy increase in earnings")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Monetize your site with ads")),o.a.createElement("p",null,Ws("WordAds lets you earn money by displaying promotional content. Start earning today.")),this.props.isModuleActivated("wordads")?o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("view_earnings"),href:hu("wpcom-ads-earnings",{site:this.props.siteRawUrl})},Ws("View your earnings")):o.a.createElement(Yc,{onClick:this.activateAds,disabled:this.props.isActivatingModule("wordads")},Ws("Start earning")))),("is-business-plan"===r||"is-premium-plan"===r)&&"inactive"!==this.props.getModuleOverride("seo-tools")&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-performance-icon.svg",className:"jp-landing__plan-features-icon",alt:Ws("Site stats showing an evolution in traffic and engagement")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("SEO Tools")),o.a.createElement("p",null,Ws("Advanced SEO tools to help your site get found when people search for relevant content.")),this.props.isModuleActivated("seo-tools")?o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("configure_seo"),href:hu("calypso-marketing-traffic",{site:this.props.siteRawUrl})},Ws("Configure site SEO")):o.a.createElement(Yc,{onClick:this.activateSeo,disabled:this.props.isActivatingModule("seo-tools")},Ws("Activate SEO tools")))),("is-business-plan"===r||"is-premium-plan"===r)&&"inactive"!==this.props.getModuleOverride("google-analytics")&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-google-analytics.svg",className:"jp-landing__plan-features-icon",alt:Ws("Site stats showing an evolution in traffic and engagement")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Google Analytics")),o.a.createElement("p",null,Ws("Complement WordPress.com’s stats with Google’s in-depth look at your visitors and traffic patterns.")),this.props.isModuleActivated("google-analytics")?o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("configure_ga"),href:hu("calypso-marketing-traffic",{site:this.props.siteRawUrl})},Ws("Configure Google Analytics")):o.a.createElement(Yc,{onClick:this.activateGoogleAnalytics,disabled:this.props.isActivatingModule("google-analytics")},Ws("Activate Google Analytics")))),i&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-themes.svg",className:"jp-landing__plan-features-icon",alt:Ws("A secure site, locked and protected by Jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Try a premium theme")),o.a.createElement("p",null,Ws("Access beautifully designed premium themes at no extra cost.")),o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("premium_themes"),href:hu("calypso-themes-premium",{site:this.props.siteRawUrl})},Ws("Browse premium themes")))),("is-business-plan"===r||"is-premium-plan"===r)&&"inactive"!==this.props.getModuleOverride("publicize")&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-marketing.svg",className:"jp-landing__plan-features-icon",alt:Ws("A secure site, locked and protected by Jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Marketing Automation")),o.a.createElement("p",null,Ws("Schedule unlimited tweets, Facebook posts, and other social posts in advance.")),this.props.isModuleActivated("publicize")?o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("schedule_posts"),href:hu("calypso-edit-posts",{site:this.props.siteRawUrl})},Ws("Schedule posts")):o.a.createElement(Yc,{onClick:this.activatePublicize,disabled:this.props.isActivatingModule("publicize")},Ws("Activate Publicize")))));break;case"is-free-plan":case"is-daily-backup-plan":case"is-realtime-backup-plan":case"is-search-plan":case"dev":n=o.a.createElement("div",{className:"jp-landing__plan-features"},e,this.props.hasActiveSearchPurchase&&u(),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-security.svg",className:"jp-landing__plan-features-icon",alt:Ws("A secure site, locked and protected by Jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Always-on security")),o.a.createElement("p",null,Ws("Prevent login attacks, and get instant notifications when there’s an issue with your site.")),o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("free_security"),href:hu("calypso-settings-security",{site:this.props.siteRawUrl})},Ws("Set up your site security")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-speed-icon.svg",className:"jp-landing__plan-features-icon",alt:Ws("A fast and performant website")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Optimized performance")),o.a.createElement("p",null,Ws("Load pages faster by serving your images from our global network of servers.")),o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("free_performance"),href:this.props.siteAdminUrl+"admin.php?page=jetpack#/performance"},Ws("Make your site faster")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-themes.svg",className:"jp-landing__plan-features-icon",alt:Ws("A wide variety of themes and tools to customize a site")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Design the perfect website")),o.a.createElement("p",null,Ws("Get unlimited access to hundreds of professional themes, and customize your site exactly how you like it.")),o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("free_themes"),href:hu("calypso-themes",{site:this.props.siteRawUrl})},Ws("Explore free themes")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-performance-icon.svg",className:"jp-landing__plan-features-icon",alt:Ws("Site stats showing an evolution in traffic and engagement")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Increase traffic to your site")),o.a.createElement("p",null,Ws("Reach a wider audience by automatically sharing your posts on social media.")),o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("free_sharing"),href:hu("calypso-marketing-connections",{site:this.props.siteRawUrl})},Ws("Start sharing")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-site-activity.svg",className:"jp-landing__plan-features-icon",alt:Ws("Interface showing a chronological list of changes and updates in a site")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Site activity")),o.a.createElement("p",null,Ws("View a chronological list of all the changes and updates to your site in an organized, readable way.")),o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("view_site_activity"),href:hu("calypso-activity-log",{site:this.props.siteRawUrl})},Ws("View your site activity")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Td+"/jetpack-support.svg",className:"jp-landing__plan-features-icon",alt:Ws("Chat bubbles representing getting in touch with support")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Support documentation")),o.a.createElement("p",null,Ws("Need help? Learn about getting started, customizing your site, using advanced code snippets, and more.")),o.a.createElement(Yc,{onClick:this.handleButtonClickForTracking("free_support_documentation"),href:hu("jetpack-support")},Ws("Search support docs")))),"is-free-plan"===r&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Ws("Take your site to the next level!")),o.a.createElement("ul",{className:"jp-landing__plan-features-list"},o.a.createElement("li",null,Ws("Expand your audience with pro SEO tools.")),o.a.createElement("li",null,Ws("Customize your social posting schedule.")),o.a.createElement("li",null,Ws("Monetize your site by running high quality ads."))),o.a.createElement(Yc,{className:"is-primary",onClick:this.handleButtonClickForTracking("free_explore_jetpack_plans"),href:"#/plans"},Ws("Upgrade Jetpack now")))));break;default:n=o.a.createElement("div",{className:"jp-landing__plan-features is-loading"},o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.a.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.a.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.a.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return o.a.createElement("div",null,o.a.createElement(Zl,null),n)}}]),t}(o.a.Component);Ka()(Em,"propTypes",{plan:u.a.string}),Ka()(Em,"defaultProps",{plan:""});var Cm=ce((function(e){return{isFetchingPluginsData:Ga(e),isPluginActive:function(t){return Ya(e,t)},isPluginInstalled:function(t){return $a(e,t)},isModuleActivated:function(t){return ss(e,t)},isActivatingModule:function(t){return function(e,t){return!!e.jetpack.modules.requests.activating[t]}(e,t)},getModuleOverride:function(t){return cs(e,t)},showBackups:wa(e),getFeatureState:function(t){return Fo(e,t)},isActivatingFeature:function(t){return Bo(e,t)}}}),(function(e){return{fetchPluginsData:function(){return e(Qa())},activateModule:function(t){return e(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){return n({type:rn,module:e}),n(ls("module-toggle")),n(us("is-info",Ws("Activating %(slug)s…",{args:{slug:ns(r(),e).name}}),{id:"module-toggle"})),zi.activateModule(e).then((function(){n({type:an,module:e,success:!0}),n(ls("module-toggle")),n(us("is-success",Ws("%(slug)s has been activated.",{args:{slug:ns(r(),e).name}}),{id:"module-toggle",duration:2e3})),t&&window.location.reload()})).catch((function(t){n({type:sn,module:e,success:!1,error:t}),n(ls("module-toggle")),n(us("is-error",Ws("%(slug)s failed to activate. %(error)s",{args:{slug:ns(r(),e).name,error:t}}),{id:"module-toggle"}))}))}}(t))},activateFeature:function(t){return e(cu(Ka()({},t,!0)))}}}))(Em);var Sm=ce((function(e){return{activeFeatures:gc(e),activeProducts:wc(e),availableFeatures:mc(e),getSiteConnectionStatus:function(){return Xs(e)},hasActiveSearchPurchase:Cc(e),purchases:bc(e),sitePlan:hc(e)}}))((function(e){var t=e.sitePlan.product_slug||"",n=e.availableFeatures,r=e.activeFeatures;return"dev"===e.getSiteConnectionStatus(e)&&(t="dev",n={},r={}),o.a.createElement(o.a.Fragment,null,o.a.createElement(pu,null),o.a.createElement(km,{activeProducts:e.activeProducts,plan:t,purchases:e.purchases,siteRawUrl:e.siteRawUrl}),o.a.createElement(Cm,{activeFeatures:r,availableFeatures:n,hasActiveSearchPurchase:e.hasActiveSearchPurchase,plan:t,rewindStatus:e.rewindStatus,siteAdminUrl:e.siteAdminUrl,siteRawUrl:e.siteRawUrl}))})),Tm=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"clickHandler",(function(){var e=n.props,t=e.planType,r=e.productSlug;al.tracks.recordJetpackClick({target:"upgrade-".concat(t),type:"upgrade",plan:r,page:"Plans"})})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this.props,t=e.buttonText,n=e.planType,r=e.isActivePlan,i=e.isPrimary,a=e.shouldRenderButton,s=e.siteRawUrl,c=e.plansUpgradeUrl,l=r?hu("calypso-plans-my-plan",{site:s}):c,u=Gc()("plan-features__table-item","has-border-bottom","is-top-buttons");return a?o.a.createElement("td",{key:"button-"+n,className:u},o.a.createElement(Yc,{href:l,primary:i,onClick:this.clickHandler},t)):o.a.createElement("td",{key:"button-"+n,className:u})}}]),t}(o.a.Component),Am=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"featureLinkClickHandler",(function(){var e=n.props,t=e.feature,r=e.productSlug;al.tracks.recordJetpackClick({target:t.id,type:"feature-discovery",plan:r,page:"Plans"})})),n}return Mi()(t,e),zs()(t,[{key:"renderFeatureLink",value:function(e){var t=this.props,n=t.siteRawUrl,r=t.userId;return o.a.createElement("a",{onClick:this.featureLinkClickHandler,href:"https://jetpack.com/features/".concat(e.info,"?site=").concat(n,"&u=").concat(r)},e.name)}},{key:"render",value:function(){var e=this.props,t=e.itemKey,n=e.feature,r=e.hideBackupFeature;return void 0===n||r?o.a.createElement("td",{key:t,className:"plan-features__table-item"}):o.a.createElement("td",{key:t,className:"plan-features__table-item has-partial-border"},o.a.createElement("div",{className:"plan-features__item"},n.info?this.renderFeatureLink(n):n.name))}}]),t}(s.Component),xm=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"handlePeriodChange",value:function(e){var t=this;return e===this.props.planDuration?null:function(){al.tracks.recordJetpackClick({target:"change-period-"+e,feature:"plans-grid",extra:t.props.type}),t.props.setPlanDuration(e)}}},{key:"render",value:function(){var e=this,t=this.props.planDuration,n={monthly:Ws("Monthly"),yearly:Ws("Yearly")};return o.a.createElement("div",{className:"plan-grid-period"},o.a.createElement($c,null,Object(kt.map)(n,(function(n,r){return o.a.createElement(Yc,{key:"plan-period-button-"+r,primary:r===t,onClick:e.handlePeriodChange(r),compact:!0},n)}))))}}]),t}(o.a.Component),Mm=ce((function(e){return{planDuration:gi(e)}}),{setPlanDuration:function(e){return function(t){t({type:Fr,duration:e})}}})(xm),jm=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"featuredPlans",!1),n}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillUpdate",value:function(){this.featuredPlans=!1}},{key:"handleSeeFeaturesClick",value:function(e){return function(){al.tracks.recordJetpackClick({target:"see-all-features-link",feature:"plans-grid",extra:e})}}},{key:"render",value:function(){if(!this.props.plans||this.props.isFetchingData)return o.a.createElement("div",{className:"plan-features"},this.renderMobileCard(),this.renderSkeletonGrid());var e=Object.values(this.getPlans()).length,t=Gc()("plan-features__table","has-".concat(e,"-cols"));return o.a.createElement("div",{className:"plan-features"},this.renderMobileCard(),o.a.createElement(Mm,{type:"plans"}),o.a.createElement("div",{className:"plan-features__content"},o.a.createElement("table",{className:t},o.a.createElement("tbody",null,o.a.createElement("tr",null,this.renderPlanHeaders()),o.a.createElement("tr",null,this.renderPrices()),o.a.createElement("tr",null,this.renderTopButtons()),this.renderPlanFeatureRows(),o.a.createElement("tr",null,this.renderBottomButtons())))))}},{key:"renderMobileCard",value:function(){var e=Ws("You’re currently on Jetpack %(plan)s.",{args:{plan:this.props.sitePlan.product_name_short}}),t=hu("calypso-plans-my-plan",{site:this.props.siteRawUrl}),n=hu("calypso-plans",{site:this.props.siteRawUrl});return o.a.createElement("div",{className:"plans-mobile-notice dops-card"},o.a.createElement("h2",null,Ws("Your Plan")),o.a.createElement("p",null,e),o.a.createElement(Yc,{href:t},Ws("Manage your plan")),o.a.createElement(Yc,{href:n,primary:!0},Ws("View all Jetpack plans")))}},{key:"renderSkeletonGrid",value:function(){return o.a.createElement("div",{className:"plan-grid-skeletons"},o.a.createElement("div",{className:"plan-grid-skeletons__plan is-placeholder"}),o.a.createElement("div",{className:"plan-grid-skeletons__plan is-placeholder"}),o.a.createElement("div",{className:"plan-grid-skeletons__plan is-placeholder"}))}},{key:"getCurrentPlanType",value:function(){return sc(this.props.sitePlan.product_slug).replace(/^is-/,"").replace(/-plan$/,"")}},{key:"isUpgraded",value:function(){return!Object(kt.includes)(["","free"],this.getCurrentPlanType())}},{key:"isCurrentPlanType",value:function(e){return this.getCurrentPlanType()===e}},{key:"getPlans",value:function(){if(this.featuredPlans)return this.featuredPlans;var e=Object(kt.reduce)(this.props.plans,(function(e,t,n){if("free"===n)return e;var r=t.highlight;return t.features=Object(kt.reduce)(t.features,(function(e,t){return Object(kt.includes)(r,t.id)&&e.push(t),e}),[]),e[n]=t,e}),{});return this.featuredPlans=e,e}},{key:"renderPlanHeaders",value:function(){return Object(kt.map)(this.getPlans(),(function(e,t){var n=Gc()("plan-features__table-item","is-header","has-border-top","is-".concat(t,"-plan"));return o.a.createElement("td",{key:"plan-header-"+t,className:n},o.a.createElement("header",{className:"plan-features__header"},o.a.createElement("h3",{className:"plan-features__header-title"},e.short_name),o.a.createElement("div",{className:"plan-features__description"},e.tagline)))}))}},{key:"renderPrices",value:function(){var e=this,t=this.props.planDuration;return Object(kt.map)(this.getPlans(),(function(n,r){var i=Gc()("plan-features__table-item","plan-price");return e.isCurrentPlanType(r)?o.a.createElement("td",{key:"price-"+r,className:i},n.strings.current):e.shouldRenderButton(r)?o.a.createElement("td",{key:"price-"+r,className:i},o.a.createElement("span",{className:"plan-price__yearly",dangerouslySetInnerHTML:{__html:n.price[t].per}})):o.a.createElement("td",{key:"price-"+r,className:i})}))}},{key:"shouldRenderButton",value:function(e){var t=Object.keys(this.props.plans),n=t.indexOf(this.getCurrentPlanType());return t.indexOf(e)>=n}},{key:"renderTopButtons",value:function(){var e=this,t=this.props.planDuration;return Object(kt.map)(this.getPlans(),(function(n,r){var i=e.props,a=i.siteRawUrl,s=i.plansUpgradeUrl,c=i.sitePlan,l=e.isCurrentPlanType(r),u=l?n.strings.manage:n.strings.upgrade,p=r;return"monthly"===t&&(p+="-monthly"),o.a.createElement(Tm,{key:r,buttonText:u,planType:r,isActivePlan:l,isPrimary:e.isPrimary(r,n),shouldRenderButton:e.shouldRenderButton(r),siteRawUrl:a,plansUpgradeUrl:s(p),productSlug:c.product_slug})}))}},{key:"isPrimary",value:function(e,t){if(this.isUpgraded()){var n=this.getCurrentPlanType(),r=Object.keys(this.getPlans()),i=r.indexOf(n);return r.indexOf(e)===r.indexOf(r[i+1])}return t.is_featured}},{key:"renderBottomButtons",value:function(){var e=this;return Object(kt.map)(this.getPlans(),(function(t,n){return o.a.createElement("td",{key:"bottom-"+n,className:"plan-features__table-item is-bottom-buttons has-border-bottom"},o.a.createElement("a",{href:e.props.plansLearnMoreUpgradeUrl,onClick:e.handleSeeFeaturesClick(n)},t.strings.see_all))}))}},{key:"getLongestFeaturesList",value:function(){return Object(kt.reduce)(this.getPlans(),(function(e,t){var n=Object.keys(t.features);return n.length>e.length?n:e}),[])}},{key:"renderPlanFeatureRows",value:function(){var e=this;return Object(kt.map)(this.getLongestFeaturesList(),(function(t,n){return o.a.createElement("tr",{key:"row-"+n,className:"plan-features-row"},e.renderPlanFeatureColumns(n))}))}},{key:"renderPlanFeatureColumns",value:function(e){var t=this;return Object(kt.map)(this.getPlans(),(function(n,r){var i=r+"-row-"+e,a=n.features[e],s=!t.props.showBackups&&a&&Object(kt.includes)(["backups","malware-scan","real-time-backups"],a.id);return o.a.createElement(Am,{key:r,itemKey:i,feature:a,hideBackupFeature:s,siteRawUrl:t.props.siteRawUrl,userId:t.props.userId,productSlug:t.props.sitePlan.product_slug})}))}}]),t}(o.a.Component),Nm=ce((function(e){var t=function(e){return Object(kt.get)(e.jetpack.initialState.userData.currentUser,"id")}(e);return{plans:vc(e),siteRawUrl:Ji(e),sitePlan:hc(e),userId:t,showBackups:wa(e),planDuration:gi(e),plansUpgradeUrl:function(n){return Sa(e,"plans-".concat(n),t)},plansLearnMoreUpgradeUrl:Sa(e,"plans-learn-more",t),isFetchingData:lc(e)}}),null)(jm);var Om=ce((function(e){return{isFetchingSiteProducts:wi(e)}}),(function(e){return{fetchSiteProducts:function(){return e((function(e){return e({type:Hn}),zi.fetchSiteProducts().then((function(t){e({type:Kn,siteProducts:t.data})})).catch((function(t){e({type:qn,error:t})}))}))}}}))((function(e){return Object(s.useEffect)((function(){!e.isFetchingSiteProducts&&e.fetchSiteProducts()}),[]),null})),Pm=n(99),Im=n.n(Pm),Dm={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 Um(e){return Dm[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}function Rm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Um(t);if(!r||isNaN(e))return null;var i=Im()({},r,n),a=i.decimal,s=i.grouping,o=i.precision,c=i.symbol,l=e<0?"-":"",u=Math.abs(e),p=Math.floor(u),d=Js(p,{decimals:0,thousandsSep:s,decPoint:a}),h=o>0?Js(u-p,{decimals:o,thousandsSep:s,decPoint:a}).slice(1):"";return{sign:l,symbol:c,integer:d,fraction:h}}n(366);var zm=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"getPriceRange",value:function(){var e,t=this.props,n=t.currencyCode,r=t.rawPrice;if(Array.isArray(r)){var i=r.filter((function(e){return e>=0}));e=[Math.min.apply(Math,jt()(i)),Math.max.apply(Math,jt()(i))]}else e=[r];return e.map((function(e){return{price:Rm(e,n),raw:e}}))}},{key:"renderPrice",value:function(e){return o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"plan-price__integer"},e.price.integer),o.a.createElement("sup",{className:"plan-price__fraction"},e.raw-e.price.integer>0&&e.price.fraction))}},{key:"renderContent",value:function(){var e=this.getPriceRange(),t=this.renderPrice(e[0]),n=e[1]&&this.renderPrice(e[1]);return o.a.createElement(o.a.Fragment,null,o.a.createElement("sup",{className:"plan-price__currency-symbol"},e[0].price.symbol),n?Ws("{{smallerPrice/}}-{{higherPrice/}}",{components:{smallerPrice:t,higherPrice:n},comment:"The price range for a particular product"}):t)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.discounted,r=e.inline,i=e.original;if(void 0===e.rawPrice)return null;var a=r?"span":"div",s=Gc()("plan-price",t,{"is-discounted":n,"is-inline":r,"is-original":i});return o.a.createElement(a,{className:s},this.renderContent())}}]),t}(s.Component),Fm=zm;function Lm(e){var t=e.billingTimeFrame,n=e.currencyCode,r=e.discountedPrice,i=e.fullPrice;return o.a.createElement("div",{className:"single-product__price-group"},r?o.a.createElement(o.a.Fragment,null,o.a.createElement(Fm,{currencyCode:n,rawPrice:i,original:!0}),o.a.createElement(Fm,{currencyCode:n,rawPrice:r,discounted:!0})):o.a.createElement(Fm,{currencyCode:n,rawPrice:i}),o.a.createElement("div",{className:"single-product__price-group-billing-timeframe"},function(e){return"yearly"===e?Ws("per year",{comment:"Duration of product subscription timeframe."}):"monthly"===e?Ws("per month",{comment:"Duration of product subscription timeframe."}):""}(t)))}zm.propTypes={className:u.a.string,currencyCode:u.a.string,discounted:u.a.bool,inline:u.a.bool,original:u.a.bool,rawPrice:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)])},zm.defaultProps={className:"",currencyCode:"USD",discounted:!1,original:!1};n(367);function Bm(e){var t=Gc()("plan-radio-button",{"is-selected":e.checked}),n=e.product&&"search"===e.product.key?function(e,t){switch(e){case"up_to_100_records":return Ws("Up to 100 records");case"up_to_1k_records":return Ws("Up to 1,000 records");case"up_to_10k_records":return Ws("Up to 10,000 records");case"up_to_100k_records":return Ws("Up to 100,000 records");case"up_to_1m_records":return Ws("Up to 1,000,000 records");case"more_than_1m_records":var n=1e6*Math.ceil(t/1e6);return Ws("Up to %(tierMaximumRecords)s records",{args:{tierMaximumRecords:Js(n)}});default:return null}}(e.product.priceTierSlug,e.product.recordCount):e.planName;return o.a.createElement("label",{className:t},o.a.createElement("input",{type:"radio",className:"plan-radio-button__input",value:e.radioValue,checked:e.checked,onChange:e.onChange?e.onChange:null}),o.a.createElement("div",{className:"plan-radio-button__label"},o.a.createElement("span",{className:"plan-radio-button__title"},n),o.a.createElement(Lm,{billingTimeFrame:e.billingTimeFrame,currencyCode:e.currencyCode,discountedPrice:e.discountedPrice,fullPrice:e.fullPrice})))}n(368);function Vm(e){var t=e.billingTimeframe,n=void 0===t?"yearly":t,r=e.potentialSavings,i=e.currencyCode;if(!r)return null;var a=o.a.createElement(Fm,{className:"single-product__annual-savings",rawPrice:r,currencyCode:i,inline:!0});return o.a.createElement("p",{className:"single-product__savings"},Ws("monthly"===n?"You would save {{savings /}} by paying yearly":"You are saving {{savings /}} by paying yearly",{components:{savings:a}}))}function Hm(e){var t,n=e.product,r="search"===n.key?(t=n.recordCount,Ws("Your current site record size: %s record","Your current site record size: %s records",{args:Js(t),count:t})):n.optionsLabel;return o.a.createElement("h4",{className:"single-product__options-header"},r,n.labelPopup&&o.a.createElement(_p,{position:"right"},n.labelPopup))}function qm(e){var t=e.selectedUpgrade,n=e.onClickHandler;if(!t)return null;var r=t.link,i=t.name,a=t.type;return o.a.createElement("div",{className:"single-product__upgrade-button-container"},o.a.createElement(Yc,{href:r,onClick:n(a),primary:!0},Ws("Upgrade to %(name)s",{args:{name:i},comment:"Button to purchase product upgrade. %(name)s is the product name."})))}n(369);function Km(e){var t=e.percent,n=t||70;return o.a.createElement("div",{className:"single-product-backup__promo"},o.a.createElement("div",{className:"single-product-backup__promo-star"},Ws("Up to %(percent)d%% off!",{args:{percent:n}})),o.a.createElement("h4",{className:"single-product-backup__promo-header"},Ws("Hurry, these are {{s}}Limited time introductory prices!{{/s}}",{components:{s:o.a.createElement("strong",null)}})))}n(370);function Jm(e,t){return function(){al.tracks.recordJetpackClick({target:"upgrade-".concat(e.type),type:"upgrade",product:e.type,page:t})}}var Wm=ut((function(e){var t,n,r,i=e.planDuration,a=e.isFetching,s=e.purchase,c=e.siteRawlUrl,l=!!s,u=function(e,t,n){if(!t)return e;var r=sc(t.product_slug),i=o.a.createElement("a",{href:hu("calypso-plans-my-plan",{site:n}),target:"_blank",rel:"noopener noreferrer"}),a=o.a.createElement(sm,{expiryDate:t.expiry_date,purchaseDate:t.subscribed_date,isRefundable:t.is_refundable});switch(r){case"is-daily-backup-plan":e.title=Op,e.description=a;break;case"is-realtime-backup-plan":e.title=Pp,e.description=a;break;case"is-personal-plan":e.title="backup"===e.key?Op:e.title,e.description=Ws("Included in your {{planLink}}Personal Plan{{/planLink}}",{components:{planLink:i}});break;case"is-premium-plan":e.title="backup"===e.key?Op:e.title,e.description=Ws("Included in your {{planLink}}Premium Plan{{/planLink}}",{components:{planLink:i}});break;case"is-business-plan":e.title="backup"===e.key?Pp:e.title,e.description=Ws("Included in your {{planLink}}Professional Plan{{/planLink}}",{components:{planLink:i}});break;default:e.description=a}return e}(e.product,s,c);return a?o.a.createElement(au,{className:"single-product__accented-card is-placeholder"}):o.a.createElement(au,{className:"single-product__accented-card"},o.a.createElement("div",{className:"single-product__accented-card-header"},l&&o.a.createElement(Fl,{icon:"checkmark",size:18}),o.a.createElement("h3",{className:"single-product__header-title"},u.title)),o.a.createElement("div",{className:"single-product__accented-card-body"},o.a.createElement("div",{className:"single-product__description"},u.shortDescription),o.a.createElement("div",{className:"single-product__landing-page"},o.a.createElement(kp,{target:"_blank",href:u.learnMoreUrl,icon:!0,iconSize:12,onClick:(t=u.key,n=i,r="monthly"===n?"".concat(t,"-monthly"):t,function(){al.tracks.recordJetpackClick({target:"landing-page-link",feature:"single-product-".concat(t),extra:r})})},u.learnMore)),l?function(e,t){var n=hu("calypso-me-purchases",{site:t.blog_id,path:t.ID});return o.a.createElement("div",{className:"single-product__purchase"},o.a.createElement(Yc,{href:n},Ws("Manage Subscription")),o.a.createElement("div",{className:"single-product__purchase-description"},e.description))}(u,s):function(e,t){var n=t.planDuration,r=t.selectedUpgrade,i=t.match,a=i&&i.path;return o.a.createElement(o.a.Fragment,null,e.showPromotion&&o.a.createElement(Km,{percent:e.promotionPercentage}),o.a.createElement(Hm,{product:e}),o.a.createElement("div",{className:"single-product__radio-buttons-container"},e.options.map((function(i){return o.a.createElement(Bm,{product:e,key:i.type,billingTimeFrame:n,checked:i.type===r.type,currencyCode:i.currencyCode,fullPrice:i[n].fullPrice,discountedPrice:i.discountedPrice,onChange:(a=e.key,s=i.type,function(){t.setSelectedProduct(a,s)}),radioValue:i.type,planName:i.name});var a,s}))),o.a.createElement(Vm,{billingTimeframe:n,currencyCode:r.currencyCode,potentialSavings:r.potentialSavings}),o.a.createElement(qm,{onClickHandler:Jm(r,a),selectedUpgrade:r}))}(u,e)))})),Gm=(n(371),function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{selectedProduct:{}}),Ka()(Ls()(n),"setSelectedProduct",(function(e,t){var r=n.state.selectedProduct;r[e]=t,n.setState({selectedProduct:r})})),n}return Mi()(t,e),zs()(t,[{key:"renderTitleSection",value:function(){return o.a.createElement(s.Fragment,null,o.a.createElement("h1",{className:"plans-section__header"},Ws("Solutions")),o.a.createElement("h2",{className:"plans-section__subheader"},Ws("Looking for specific features? We've got you covered.")))}},{key:"getProduct",value:function(e){return this.props.productsForPurchase.find((function(t){return t.key===e}))}},{key:"getSelectedType",value:function(e){var t=this.getProduct(e);return this.state.selectedProduct&&this.state.selectedProduct[e]?this.state.selectedProduct[e]:t.defaultOption}},{key:"getProductOption",value:function(e,t){return this.getProduct(e).options.find((function(e){return e.type===t}))}},{key:"getOptionName",value:function(e,t){return t.name}},{key:"getOptionPurchaseLink",value:function(e,t){return t[this.props.planDuration]?t[this.props.planDuration].upgradeUrl:null}},{key:"getSelectedUpgrade",value:function(e){var t=this.getSelectedType(e),n=this.getProductOption(e,t),r=this.getOptionName(e,n);return{link:this.getOptionPurchaseLink(e,n),name:r,type:t,currencyCode:n.currencyCode,potentialSavings:12*n.monthly.fullPrice-n.yearly.fullPrice}}},{key:"getPurchase",value:function(e){return this.props.activeSitePurchases.find((function(t){var n=sc(t.product_slug).substring(3);if(e.includedInPlans.includes(n))return t}))}},{key:"renderProductsForPurchase",value:function(){var e=this.props,t=e.isFetchingData,n=e.productsForPurchase,r=e.planDuration,i=e.siteRawlUrl;return o.a.createElement(o.a.Fragment,null,n.map((function(e){return o.a.createElement(Wm,{product:e,key:e.key,isFetching:t,selectedUpgrade:this.getSelectedUpgrade(e.key),planDuration:r,setSelectedProduct:this.setSelectedProduct,purchase:this.getPurchase(e),siteRawlUrl:i})}),this))}},{key:"render",value:function(){return o.a.createElement("div",{className:"plans-feature-main-group"},o.a.createElement(Om,null),this.renderTitleSection(),o.a.createElement(Mm,{type:"solutions"}),o.a.createElement("div",{className:"product-selector"},this.renderProductsForPurchase()))}}]),t}(s.Component)),Ym=ce((function(e){return{activeSitePurchases:yc(e),productsForPurchase:Ta(e),isFetchingData:lc(e)||!vc(e)||wi(e),planDuration:gi(e),multisite:ka(e),searchPurchase:Ec(e),sitePlan:hc(e),siteProducts:_i(e),siteRawlUrl:Ji(e)}}))(Gm);function $m(){return o.a.createElement(s.Fragment,null,o.a.createElement(pu,null),o.a.createElement(Nm,null),o.a.createElement(Ym,null))}var Qm=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"trackStartWithFreeClick",value:function(){al.tracks.recordJetpackClick({target:"free-plan",feature:"plans-prompt"})}},{key:"renderBanner",value:function(){return o.a.createElement("div",{className:"plans-prompt__banner"},o.a.createElement(pl,{className:"plans-prompt__logo"}),o.a.createElement("h2",{className:"plans-prompt__heading"},Ws("Explore our Jetpack plans")),o.a.createElement("p",{className:"plans-prompt__intro"},Ws("Now that you're set up, pick a plan that fits your needs.")))}},{key:"renderFooter",value:function(){return this.props.plans?o.a.createElement("div",{className:"plans-prompt__footer"},o.a.createElement(Yc,{href:this.props.siteAdminUrl+"admin.php?page=jetpack",onClick:this.trackStartWithFreeClick},Ws("Start with free"),o.a.createElement(Fl,{icon:"arrow-right",size:18}))):null}},{key:"render",value:function(){return o.a.createElement("div",{className:"plans-prompt"},this.renderBanner(),o.a.createElement($m,null),this.renderFooter())}}]),t}(o.a.Component),Xm=ce((function(e){return{plans:vc(e)}}))(Qm),Zm={currentUser:{isMaster:!0,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}},eg={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}},tg={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!0,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},ng={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!1,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},rg={currentUser:{permissions:{view_stats:!0}}},ig={currentUser:{permissions:{view_stats:!1}}},ag={currentUser:{isConnected:!0}},sg={currentUser:{isConnected:!1}},og=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"onPlanChange",(function(e){n.props.switchPlanPreview(e.target.value)})),Ka()(Ls()(n),"onPermissionsChange",(function(e){n.props.switchUserPermissions(e.target.value)})),Ka()(Ls()(n),"onThreatsChange",(function(e){n.props.switchThreats(e.target.value)})),Ka()(Ls()(n),"onRewindStatusChange",(function(e){n.props.switchRewindState(e.target.value)})),Ka()(Ls()(n),"onScanStatusChange",(function(e){n.props.switchScanState(e.target.value)})),Ka()(Ls()(n),"maybeShowStatsToggle",(function(){if(!n.props.isAdmin)return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"view_stats"},o.a.createElement("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:n.props.canViewStats,onChange:n.onPermissionsChange}),"Can view stats")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"hide_stats"},o.a.createElement("input",{type:"radio",id:"hide_stats",value:"hide_stats",name:"hide_stats",checked:!n.props.canViewStats,onChange:n.onPermissionsChange}),"Can not view stats"))))})),Ka()(Ls()(n),"maybeShowIsLinkedToggle",(function(){if(!n.props.isMaster)return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"is_linked"},o.a.createElement("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:n.props.isUserLinked,onChange:n.onPermissionsChange}),"Linked")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"is_unlinked"},o.a.createElement("input",{type:"radio",id:"is_unlinked",value:"is_unlinked",name:"is_unlinked",checked:!n.props.isUserLinked,onChange:n.onPermissionsChange}),"Unlinked"))))})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){if(!this.props.canDisplayDevCard)return null;var e=Gc()(this.props.className,"jp-dev-card"),t=sc(this.props.sitePlan.product_slug),n=Object(kt.get)(this.props.rewindStatus,["state"],!1),r=Object(kt.get)(this.props.scanStatus,["state"],!1);return o.a.createElement(au,{compact:!0,className:e},o.a.createElement("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:rp(this.props.disableDevCard),onClick:this.props.disableDevCard},"x"),o.a.createElement("div",{className:"jp-dev-card__heading"},"Dev Tools"),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_free"},o.a.createElement("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_personal"},o.a.createElement("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_premium"},o.a.createElement("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_business"},o.a.createElement("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_backup_daily"},o.a.createElement("input",{type:"radio",id:"jetpack_backup_daily",value:"jetpack_backup_daily",name:"jetpack_backup_daily",checked:"is-daily-backup-plan"===t,onChange:this.onPlanChange}),"Jetpack Backup Daily")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_backup_realtime"},o.a.createElement("input",{type:"radio",id:"jetpack_backup_realtime",value:"jetpack_backup_realtime",name:"jetpack_backup_realtime",checked:"is-realtime-backup-plan"===t,onChange:this.onPlanChange}),"Jetpack Backup Reatime"))),o.a.createElement("hr",null),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"admin_master"},o.a.createElement("input",{type:"radio",id:"admin_master",value:"admin_master",name:"admin_master",checked:this.props.isMaster,onChange:this.onPermissionsChange}),"Admin (master)")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"admin_secondary"},o.a.createElement("input",{type:"radio",id:"admin_secondary",value:"admin_secondary",name:"admin_secondary",checked:this.props.isAdmin&&!this.props.isMaster,onChange:this.onPermissionsChange}),"Admin (secondary)")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"editor"},o.a.createElement("input",{type:"radio",id:"editor",value:"editor",name:"editor",checked:this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Editor")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"subscriber"},o.a.createElement("input",{type:"radio",id:"subscriber",value:"subscriber",name:"subscriber",checked:!this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Subscriber"))),o.a.createElement("hr",null),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"nothreats"},o.a.createElement("input",{type:"radio",id:"nothreats",value:0,name:"nothreats",checked:0===this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"No threats")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"threats"},o.a.createElement("input",{type:"radio",id:"threats",value:17,name:"threats",checked:0!==this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"Threats"))),o.a.createElement("hr",null),o.a.createElement("ul",null,o.a.createElement("strong",null,"Backup"),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"rewindUnavailable"},o.a.createElement("input",{type:"radio",id:"rewindUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===n,onChange:this.onRewindStatusChange}),"Unavailable")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"rewindProvisioning"},o.a.createElement("input",{type:"radio",id:"rewindProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===n,onChange:this.onRewindStatusChange}),"Provisioning")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"rewindAwatingCreds"},o.a.createElement("input",{type:"radio",id:"rewindAwatingCreds",value:"awaiting_credentials",name:"awaiting_credentials",checked:"awaiting_credentials"===n,onChange:this.onRewindStatusChange}),"Awaiting credentials")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"rewindActive"},o.a.createElement("input",{type:"radio",id:"rewindActive",value:"active",name:"active",checked:"active"===n,onChange:this.onRewindStatusChange}),"Active"))),o.a.createElement("ul",null,o.a.createElement("strong",null,"Scan"),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"scanUnavailable"},o.a.createElement("input",{type:"radio",id:"scanUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===r,onChange:this.onScanStatusChange}),"Unavailable")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"scanProvisioning"},o.a.createElement("input",{type:"radio",id:"scanProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===r,onChange:this.onScanStatusChange}),"Provisioning")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"scanIdle"},o.a.createElement("input",{type:"radio",id:"scanIdle",value:"idle",name:"idle",checked:"idle"===r,onChange:this.onScanStatusChange}),"Idle")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"scanScanning"},o.a.createElement("input",{type:"radio",id:"scanScanning",value:"scanning",name:"scanning",checked:"scanning"===r,onChange:this.onScanStatusChange}),"Scanning"))),this.maybeShowStatsToggle(),this.maybeShowIsLinkedToggle())}}]),t}(o.a.Component);Ka()(og,"displayName","DevCard");var cg=ce((function(e){return{isDevVersion:Vi(e),sitePlan:hc(e),canDisplayDevCard:mo(e),isUserLinked:so(e),canViewStats:la(e),isMaster:ra(e),isAdmin:ta(e),canEditPosts:ea(e),getVaultPressScanThreatCount:function(){return La(e)},rewindStatus:xo(e),scanStatus:Oo(e)}}),(function(e){return{switchPlanPreview:function(t){return e(function(e){return function(t){t({type:ir,siteData:{plan:{product_slug:e}}})}}(t))},switchUserPermissions:function(t){return e(function(e){var t={};return function(n){switch(e){case"admin_master":t=Zm;break;case"admin_secondary":t=eg;break;case"editor":case"contributor":case"author":t=tg;break;case"subscriber":t=ng;break;case"view_stats":t=rg;break;case"hide_stats":t=ig;break;case"is_linked":t=ag;break;case"is_unlinked":t=sg}n({type:Kr,initialState:t})}}(t))},switchThreats:function(t){return e(function(e){return function(t){t({type:Jr,mockCount:e})}}(parseInt(t)))},disableDevCard:function(){return e((function(e){e({type:qr})}))},switchRewindState:function(t){return e((n=t,function(e){e({type:$r,rewindState:{state:n}})}));var n},switchScanState:function(t){return e((n=t,function(e){e({type:ei,scanState:{state:n}})}));var n}}}))(og),lg=function e(){var t=document.getElementById("jp-navigation").offsetTop;window.scrollTo(0,window.scrollY-t/1.5),window.scrollY>t&&window.requestAnimationFrame(e)},ug=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"resetOnClick",(function(){window.confirm(Ws("This will reset all Jetpack options, are you sure?"))&&n.props.resetOptions()})),Ka()(Ls()(n),"trackVersionClick",(function(){al.tracks.recordJetpackClick({target:"footer_link",link:"version"})})),Ka()(Ls()(n),"trackTermsClick",(function(){al.tracks.recordJetpackClick({target:"footer_link",link:"terms"})})),Ka()(Ls()(n),"trackAboutClick",(function(){al.tracks.recordJetpackClick({target:"footer_link",link:"about"})})),Ka()(Ls()(n),"trackPrivacyClick",(function(){window.requestAnimationFrame(lg),al.tracks.recordJetpackClick({target:"footer_link",link:"privacy"})})),Ka()(Ls()(n),"trackModulesClick",(function(){al.tracks.recordJetpackClick({target:"footer_link",link:"modules"})})),Ka()(Ls()(n),"trackDebugClick",(function(){al.tracks.recordJetpackClick({target:"footer_link",link:"debug"})})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e=this,t=Gc()(this.props.className,"jp-footer"),n=this.props.currentVersion,r=this.props.siteConnectionStatus?this.props.siteAdminUrl+"admin.php?page=jetpack_about":hu("jetpack"),i=this.props.siteConnectionStatus?this.props.siteAdminUrl+"admin.php?page=jetpack#/privacy":hu("a8c-privacy");return o.a.createElement("div",{className:t},o.a.createElement("div",{className:"jp-footer__a8c-attr-container"},o.a.createElement("a",{href:r},o.a.createElement("svg",{role:"img",className:"jp-footer__a8c-attr",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"a8c-svg-title"},o.a.createElement("title",{id:"a8c-svg-title"},Ws("An Automattic Airline")),o.a.createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),o.a.createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),o.a.createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})))),o.a.createElement("ul",{className:"jp-footer__links"},o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:this.trackVersionClick,href:hu("jetpack"),target:"_blank",rel:"noopener noreferrer",className:"jp-footer__link",title:Ws("Jetpack version")},n?Ws("Jetpack version %(version)s",{args:{version:n}}):"Jetpack")),o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:this.trackAboutClick,href:r,className:"jp-footer__link",title:Ws("About Jetpack")},Ws("About",{context:"Link to learn more about Jetpack."}))),o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:this.trackTermsClick,href:hu("wpcom-tos"),target:"_blank",rel:"noopener noreferrer",title:Ws("WordPress.com Terms of Service"),className:"jp-footer__link"},Ws("Terms",{context:"Shorthand for Terms of Service."}))),o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:this.trackPrivacyClick,href:i,rel:"noopener noreferrer",title:Ws("Automattic's Privacy Policy"),className:"jp-footer__link"},Ws("Privacy",{context:"Shorthand for Privacy Policy."}))),function(){if(e.props.siteConnectionStatus&&e.props.userCanManageOptions)return o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:e.trackModulesClick,href:e.props.siteAdminUrl+"admin.php?page=jetpack_modules",title:Ws("Access the full list of Jetpack modules available on your site."),className:"jp-footer__link"},Ws("Modules",{context:"Navigation item. Noun. Links to a list of modules for Jetpack."})))}(),function(){if(e.props.userCanManageOptions)return o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:e.trackDebugClick,href:e.props.siteAdminUrl+"admin.php?page=jetpack-debugger",title:Ws("Test your site’s compatibility with Jetpack."),className:"jp-footer__link"},Ws("Debug",{context:"Navigation item. Noun. Links to a debugger tool for Jetpack."})))}(),e.props.isDevVersion&&e.props.userCanManageOptions?o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{role:"button",tabIndex:"0",onKeyDown:rp(e.resetOnClick),onClick:e.resetOnClick,className:"jp-footer__link"},Ws("Reset Options (dev only)",{context:"Navigation item."}))):"",e.props.isDevVersion?o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{role:"button",tabIndex:"0",onKeyDown:rp(e.props.enableDevCard),onClick:e.props.enableDevCard,className:"jp-footer__link"},Ws("Dev Tools",{context:"Navigation item."}))):"",function(){if(e.props.isDevVersion&&e.props.displayDevCard)return o.a.createElement(cg,null)}()))}}]),t}(o.a.Component);Ka()(ug,"displayName","Footer");var pg=ce((function(e){return{currentVersion:Hi(e),displayDevCard:mo(e),isDevVersion:Vi(e),isInIdentityCrisis:lo(e),siteAdminUrl:Wi(e),siteConnectionStatus:Xs(e),userCanManageOptions:Zi(e)}}),(function(e){return{resetOptions:function(){return e((t="options",function(e){return e({type:_n}),e(us("is-info",Ws("Resetting Jetpack options…"),{id:"reset-options"})),zi.resetOptions(t).then((function(){e({type:En}),e(ls("reset-options")),e(us("is-success",Ws("Options reset."),{id:"reset-options",duration:2e3}))})).catch((function(t){e({type:kn,error:t}),e(ls("reset-options")),e(us("is-error",Ws("Options failed to reset."),{id:"reset-options"}))}))}));var t},enableDevCard:function(){return e((function(e){e({type:Hr})}))}}}))(ug),dg=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackBannerClick",(function(){al.tracks.recordJetpackClick({target:"banner-click",feature:"support",page:n.props.path})})),Ka()(Ls()(n),"trackAskQuestionClick",(function(){al.tracks.recordJetpackClick({target:"support-card",button:"support-ask",page:n.props.path})})),Ka()(Ls()(n),"trackSearchClick",(function(){al.tracks.recordJetpackClick({target:"support-card",button:"support-search",page:n.props.path})})),n}return Mi()(t,e),zs()(t,[{key:"shouldComponentUpdate",value:function(e){return e.sitePlan.product_slug!==this.props.sitePlan.product_slug}},{key:"render",value:function(){if(void 0===this.props.sitePlan.product_slug&&this.props.isFetchingSiteData)return o.a.createElement("div",null);var e=Gc()(this.props.className,"jp-support-card"),t=void 0===this.props.sitePlan.product_slug||"jetpack_free"===this.props.sitePlan.product_slug,n=this.props.isDevVersion?xd:Ad;return o.a.createElement("div",{className:e},o.a.createElement(au,{className:"jp-support-card__happiness"},o.a.createElement("div",{className:"jp-support-card__happiness-contact"},o.a.createElement("h3",{className:"jp-support-card__header"},Ws("We're here to help")),o.a.createElement("p",{className:"jp-support-card__description"},Ws(t?"Jetpack comes with free, basic support for all users.":"Your paid plan gives you access to prioritized Jetpack support.")),o.a.createElement("p",{className:"jp-support-card__description"},o.a.createElement(Yc,{onClick:this.trackAskQuestionClick,href:this.props.isAtomicSite?hu("calypso-help-contact"):n},Ws("Ask a question")),o.a.createElement(Yc,{onClick:this.trackSearchClick,href:this.props.isAtomicSite?hu("calypso-help"):hu("jetpack-support")},Ws("Search our support site"))))),this.props.siteConnectionStatus&&t&&o.a.createElement(gp,{title:Ws("Get a faster resolution to your support questions."),plan:"jetpack_personal",callToAction:Ws("Upgrade"),onClick:this.trackBannerClick,href:this.props.supportUpgradeUrl}))}}]),t}(o.a.Component);Ka()(dg,"displayName","SupportCard"),Ka()(dg,"defaultProps",{className:"",siteConnectionStatus:!1}),dg.propTypes={siteConnectionStatus:u.a.any.isRequired,className:u.a.string};var hg=ce((function(e){return{sitePlan:hc(e),siteConnectionStatus:Xs(e),isFetchingSiteData:lc(e),isAtomicSite:ba(e),isDevVersion:Vi(e),supportUpgradeUrl:Sa(e,"support")}}))(dg),fg=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackDownloadClick",(function(){al.tracks.recordJetpackClick({target:"apps-card",button:"apps-download",page:n.props.path})})),Ka()(Ls()(n),"dismissCard",(function(){n.props.dismissAppCard(),al.tracks.recordJetpackClick({target:"apps-card",button:"dismiss",page:n.props.path})})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){if(!this.props.arePromotionsActive||this.props.isAppsCardDismissed)return null;var e=Gc()(this.props.className,"jp-apps-card");return o.a.createElement("div",{className:e},o.a.createElement(au,{className:"jp-apps-card__content"},this.props.userCanManageOptions&&o.a.createElement(Yc,{borderless:!0,compact:!0,className:"jp-apps-card__dismiss",href:"javascript:void(0)",onClick:this.dismissCard},o.a.createElement("span",{className:"dashicons dashicons-no"})),o.a.createElement("div",{className:"jp-apps-card__top"},o.a.createElement("img",{src:Td+"get-apps.svg",alt:""})),o.a.createElement("div",{className:"jp-apps-card__description"},o.a.createElement("h3",{className:"jp-apps-card__header"},Ws("Get WordPress Apps for every device")),o.a.createElement("p",{className:"jp-apps-card__paragraph"},Ws("Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.")),o.a.createElement(Yc,{className:"is-primary",onClick:this.trackDownloadClick,href:"https://apps.wordpress.com/get?utm_source=jpdash&utm_medium=cta&utm_campaign=getappscard"},Ws("Download the free apps")))))}}]),t}(o.a.Component);Ka()(fg,"displayName","AppsCard"),fg.propTypes={className:u.a.string};var mg=ce((function(e){return{isAppsCardDismissed:Ko(e),arePromotionsActive:va(e),userCanManageOptions:Zi(e)}}),(function(e){return{dismissAppCard:function(){return e(cu({dismiss_dash_app_card:!0}))}}}))(fg),gg=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"renderMainContent",(function(e){var t,r=o.a.createElement(Kl,n.props);switch(e){case"/dashboard":default:t=o.a.createElement(im,n.props);break;case"/settings":case"/writing":case"/sharing":case"/performance":n.props.isSubscriber||(r=o.a.createElement(tu,n.props),t=o.a.createElement(lh,{siteAdminUrl:n.props.siteAdminUrl,siteRawUrl:n.props.siteRawUrl,searchTerm:n.props.searchTerm,userCanManageModules:n.props.userCanManageModules}))}return window.wpNavMenuClassChange(),o.a.createElement("div",null,r,t)})),n}return Mi()(t,e),zs()(t,[{key:"shouldComponentUpdate",value:function(e){return e.siteConnectionStatus!==this.props.siteConnectionStatus||e.location.pathname!==this.props.location.pathname}},{key:"render",value:function(){return this.renderMainContent(this.props.location.pathname)}}]),t}(o.a.Component);gg.propTypes={userCanViewStats:u.a.bool.isRequired,isSubscriber:u.a.bool.isRequired,siteConnectionStatus:u.a.any.isRequired};var vg=ce((function(e){return{userCanViewStats:la(e),siteConnectionStatus:Xs(e),isSubscriber:$i(e),isModuleActivated:function(t){return ss(e,t)},userCanManageModules:Xi(e)}}))(gg),bg=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){var e={className:"dops-notice__action",href:this.props.href,onClick:this.props.onClick};return this.props.external&&(e.target="_blank"),o.a.createElement("a",e,o.a.createElement("span",null,this.props.children),this.props.icon&&o.a.createElement(Fl,{icon:this.props.icon,size:24}),this.props.external&&o.a.createElement(Fl,{icon:"external",size:24}))}}]),t}(o.a.Component);Ka()(bg,"displayName","NoticeAction"),Ka()(bg,"propTypes",{href:u.a.string,onClick:u.a.func,external:u.a.bool,icon:u.a.string}),Ka()(bg,"defaultProps",{external:!1});n(372);var yg=Xc()("calypso:notices");yg("initializing notices");var wg={containerNames:{}};!function(e){Object(kt.assign)(e,Es.EventEmitter.prototype),e.emitChange=function(){this.emit("change")},e.off=e.removeListener}(wg);var _g=[],kg={new:function(e,t,n){var r=t.overlay?"overlay-notices":"notices";wg.containerNames[r]=r,yg("creating notice",e,t,n),wg[r]=[];var i={type:t.type||"message",status:n,text:e,duration:t.duration,container:r,button:t.button,href:t.href,onClick:function(e){if("function"==typeof t.onClick){var n=kg.removeNotice.bind(kg,i);return t.onClick(e,n)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?_g.push(i):wg[r].push(i),wg.emit("change"),i},success:function(e,t){return t=t||{},this.new(e,t,"is-success")},error:function(e,t){return t=t||{},this.new(e,t,"is-error")},info:function(e,t){return t=t||{},this.new(e,t,"is-info")},warning:function(e,t){return t=t||{},this.new(e,t,"is-warning")},list:wg,removeNotice:function(e){if(e.container){var t=wg[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),wg.emit("change"))}},clearNoticesOnNavigation:function(e,t){yg("clearNoticesOnNavigation");var n,r,i=!1,a=function(e){return e.persistent};for(r in wg.containerNames)n=wg[r].length,wg[r]=wg[r].filter(a),n!==wg[r].length&&(i=!0);_g.length&&(_g.forEach((function(e){wg[e.container]=[],wg[e.container].push(e)})),_g=[]),i&&wg.emit("change"),t()},clearNotices:function(e){wg[e]=[],wg.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}},Eg=kg,Cg=(n(373),Xc()("calypso:notices")),Sg=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"removeNotice",(function(e){e&&Eg.removeNotice(e)})),Ka()(Ls()(n),"handleLocalNoticeDismissClick",(function(e){return function(){return n.removeNotice(e)}})),Ka()(Ls()(n),"handleReduxNoticeDismissClick",(function(e){return function(){return n.props.removeNotice(e)}})),n}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){Cg("Mounting Global Notices React component.")}},{key:"render",value:function(){var e=(this.props.notices[this.props.id]||[]).map((function(e,t){return o.a.createElement(ip,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.handleLocalNoticeDismissClick(e),showDismiss:e.showDismiss},e.button&&o.a.createElement(bg,{href:e.href,onClick:e.onClick},e.button))}),this);return(e=e.concat(this.props.storeNotices.map((function(e,t){return o.a.createElement(ip,{key:"notice-"+t,status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.handleReduxNoticeDismissClick(e.noticeId),text:e.text})}),this))).length?o.a.createElement("div",{id:this.props.id,className:"global-notices"},e):null}}]),t}(o.a.Component);Ka()(Sg,"displayName","NoticesList"),Ka()(Sg,"propTypes",{id:u.a.string,notices:u.a.oneOfType([u.a.object,u.a.array])}),Ka()(Sg,"defaultProps",{id:"overlay-notices",notices:Object.freeze([])});var Tg=ce((function(e){return{storeNotices:e.globalNotices}}),(function(e){return P({removeNotice:ls},e)}))(Sg),Ag=function(e){return function(t){t({type:xr,notice:e})}},xg=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"maybeDismiss",(function(e){!n.props.showDismiss||e.keyCode&&27!==e.keyCode||n.props.dismiss(e)})),n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.maybeDismiss.bind(this),!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.maybeDismiss.bind(this),!1)}},{key:"clickForeground",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=Gc()(this.props.className,"jp-dialogue-modern",{"has-featured-image":!!this.props.svg});return o.a.createElement("div",{className:"jp-dialogue-modern-full__container",role:"presentation",onClick:this.maybeDismiss,onKeyDown:rp(this.maybeDismiss)},o.a.createElement("div",{className:e,role:"presentation",onClick:this.clickForeground,onKeyDown:rp(this.clickForeground)},this.props.showDismiss&&o.a.createElement(Fl,{icon:"cross-small",className:"jp-dialogue-modern-full__dismiss",tabIndex:"0",onKeyDown:rp(this.props.dismiss),onClick:this.props.dismiss}),this.props.svg,o.a.createElement("div",{className:"jp-dialogue-modern__content"},o.a.createElement("h1",{className:"jp-dialogue-modern__title"},this.props.title),this.props.content),o.a.createElement("div",null,this.props.belowContent)))}}]),t}(s.Component);xg.propTypes={content:u.a.oneOfType([u.a.string,u.a.object]).isRequired,belowContent:u.a.oneOfType([u.a.string,u.a.object]).isRequired,svg:u.a.oneOfType([u.a.bool,u.a.object]),dismissOnClick:u.a.func,showDismiss:u.a.bool,title:u.a.string,adminUrl:u.a.string,dismiss:u.a.func},xg.defaultProps={svg:!1,showDismiss:!0,dismiss:kt.noop,content:"",belowContent:"",title:""};var Mg=xg,jg=Yu(function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackLearnMoreClick",(function(){al.tracks.recordJetpackClick({target:"warm_welcome_view_editor",version:n.props.version})})),Ka()(Ls()(n),"dismissNotice",(function(){al.tracks.recordJetpackClick({target:"warm_welcome_dismiss",version:n.props.version}),n.props.dismiss()})),n}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){jQuery("body").addClass("jp-dialogue-modern-showing"),al.tracks.recordEvent("jetpack_warm_welcome_view",{version:this.props.version})}},{key:"componentWillUnmount",value:function(){jQuery("body").removeClass("jp-dialogue-modern-showing")}},{key:"renderInnerContent",value:function(){for(var e=(new DOMParser).parseFromString(this.props.releasePostContent,"text/html"),t=e.getElementsByTagName("a"),n=0;n<t.length;n++)t[n].setAttribute("target","_blank"),t[n].setAttribute("rel","noopener noreferrer");var r=e.body.innerHTML;return o.a.createElement("div",{className:"jp-upgrade-notice__content"},o.a.createElement("div",{dangerouslySetInnerHTML:{__html:r}}))}},{key:"render",value:function(){var e=this.props.featuredImage,t=null,n=this.props.title;return e&&e.length>0&&(t=o.a.createElement("img",{src:e,alt:""})),n&&0!==n.length||(n=Ws("New in Jetpack %(version)s",{args:{version:this.props.version},comment:"%(version) is a version number."})),o.a.createElement(Mg,{svg:t,title:n,content:this.renderInnerContent(),dismiss:this.dismissNotice})}}]),t}(s.Component)),Ng=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{showNotice:!0}),Ka()(Ls()(n),"dismissJetpackStateNotice",(function(){n.setState({showNotice:!1})})),Ka()(Ls()(n),"getErrorFromKey",(function(e){var t=n.props.jetpackStateNoticesErrorDescription||!1,r="";switch(e){case"cheatin":r=Ws("Cheatin' uh?");break;case"access_denied":r=Ws("{{p}}Would you mind telling us why you did not complete the Jetpack connection in this {{a}}2 question survey{{/a}}?{{/p}}{{p}}A Jetpack connection is required for our free security and traffic features to work.{{/p}}",{components:{a:o.a.createElement("a",{href:hu("jetpack-cancelled-connection"),target:"_blank",rel:"noopener noreferrer"}),p:o.a.createElement("p",null)}});break;case"wrong_state":r=Ws("You need to stay logged in to your WordPress blog while you authorize Jetpack.");break;case"invalid_client":r=Ws("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.");break;case"invalid_grant":r=Ws('There was an issue connecting your Jetpack. Please click "Connect to WordPress.com" again.');break;case"site_inaccessible":case"site_requires_authorization":r=Ws("Your website needs to be publicly accessible to use Jetpack: %(error_key)s",{args:{error_key:e}});break;case"site_blacklisted":r=Ws("This site can't be connected to WordPress.com because it violates our {{a}}Terms of Service{{/a}}.",{components:{a:o.a.createElement("a",{href:hu("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"})}});break;case"not_public":r=Ws("{{s}}Your Jetpack has a glitch.{{/s}} Connecting this site with WordPress.com is not possible. This usually means your site is not publicly accessible (localhost).",{components:{s:o.a.createElement("strong",null)}});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":r=Ws("WordPress.com is currently having problems and is unable to fuel up your Jetpack. Please try again later.");break;case"register_http_request_failed":case"token_http_request_failed":r=Ws("Jetpack could not contact WordPress.com: %(error_key)s. This usually means something is incorrectly configured on your web host.",{args:{error_key:e}});break;case"no_role":case"no_cap":case"no_code":case"no_state":case"invalid_state":case"invalid_request":case"invalid_scope":case"unsupported_response_type":case"invalid_token":case"no_token":case"missing_secrets":case"home_missing":case"siteurl_missing":case"gmt_offset_missing":case"site_name_missing":case"secret_1_missing":case"secret_2_missing":case"site_lang_missing":case"home_malformed":case"siteurl_malformed":case"gmt_offset_malformed":case"timezone_string_malformed":case"site_name_malformed":case"secret_1_malformed":case"secret_2_malformed":case"site_lang_malformed":case"secrets_mismatch":case"verify_secret_1_missing":case"verify_secret_1_malformed":case"verify_secrets_missing":case"verify_secrets_mismatch":r=Ws("{{s}}Your Jetpack has a glitch.{{/s}} We're sorry for the inconvenience. Please try again later, if the issue continues please contact support with this message: %(error_key)s",{components:{s:o.a.createElement("strong",null)},args:{error_key:e}});break;default:r=e}return t?o.a.createElement("div",null,r,o.a.createElement("br",null),t):o.a.createElement("div",null,r)})),Ka()(Ls()(n),"getMessageFromKey",(function(e){var t,r="",i="is-info";switch(e){case"modules_activated":r=Ws("Welcome to {{s}}Jetpack %(jetpack_version)s{{/s}}!",{args:{jetpack_version:n.props.currentVersion},components:{s:o.a.createElement("strong",null)}});break;case"already_authorized":r=Ws("Your Jetpack is already connected."),i="is-success";break;case"authorized":r=Ws("You're fueled up and ready to go, Jetpack is now active."),i="is-success";break;case"linked":r=Ws("You're fueled up and ready to go."),i="is-success";break;case"protect_misconfigured_ip":r=Ws("Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site."),i="is-info",t=o.a.createElement(bg,{href:hu("jetpack-support-security-troubleshooting-protect")},Ws("Learn More"));break;default:r=e}return[r,i,t]})),Ka()(Ls()(n),"renderContent",(function(){var e,t="is-info",r="",i=n.props.jetpackStateNoticesErrorCode,a=n.props.jetpackStateNoticesMessageCode,s=n.props.jetpackStateNoticesMessageContent;if(i||a||s){if(i&&(r=n.getErrorFromKey(i),"access_denied"!==i&&(t="is-error")),s&&s.release_post_content)return o.a.createElement(jg,{dismiss:n.dismissJetpackStateNotice,version:n.props.currentVersion,releasePostContent:s.release_post_content,featuredImage:s.release_post_featured_image,title:s.release_post_title});if(a){var c=n.getMessageFromKey(a);r=c[0],t=c[1],e=c[2]}return o.a.createElement(ip,{status:t,onDismissClick:n.dismissJetpackStateNotice,text:r},e)}})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("div",null,this.state.showNotice?this.renderContent():null)}}]),t}(o.a.Component);Ka()(Ng,"displayName","JetpackStateNotices");var Og=ce((function(e){return{currentVersion:Hi(e),jetpackStateNoticesErrorCode:bo(e),jetpackStateNoticesMessageCode:yo(e),jetpackStateNoticesErrorDescription:_o(e),jetpackStateNoticesMessageContent:wo(e)}}))(Ng),Pg=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"dismissJetpackActionNotice",(function(){n.props.dismissJetpackActionNotice(n.props.jetpackNotices)})),Ka()(Ls()(n),"renderNotices",(function(){n.props.jetpackNotices;return!1})),n}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("div",null,this.renderNotices())}}]),t}(o.a.Component);Ka()(Pg,"displayName","DismissableNotices");var Ig=ce((function(e){return{jetpackNotices:vo(e),isDismissed:function(t){return function(e,t){return Object(kt.get)(e.jetpack.jetpackNotices.dismissed,[t],!1)}(e,t)}}}),(function(e){return P({dismissJetpackActionNotice:Ag},e)}))(Pg);var Dg=ut((function(e){var t=e.activeSitePurchases;if("/plans"!==e.location.pathname)return null;if(t.length<=1)return null;var n=t.map((function(e){var t=e.product_slug,n=Jc()(e,["product_slug"]);return bi()({},n,{product_slug:t.replace("_monthly","")})})),r=n.find((function(e){return e.product_slug.includes("backup")}));if(!r)return null;var i=n.find((function(e){var t=e.product_slug;return"jetpack_personal"===t||"jetpack_premium"===t||"jetpack_business"===t}));if(!i)return null;if("jetpack_backup_realtime"===r.product_slug&&"jetpack_business"!==i.product_slug)return null;var a=Ws("daily backups");return"jetpack_business"===i.product_slug&&(a=Ws("real-time backups")),o.a.createElement(ip,{status:"is-warning",showDismiss:!1,text:Ws("Your %(planName)s Plan includes %(featureName)s. Looks like you also purchased the %(productName)s product. Consider removing %(productName)s.",{args:{featureName:a,planName:i.product_name,productName:r.product_name}})})})),Ug=ce((function(e){return{activeSitePurchases:yc(e)}}))(Dg),Rg=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&o.a.createElement(ip,{showDismiss:!1,text:Ws("You are currently running a development version of Jetpack.")},o.a.createElement(bg,{href:xd},Ws("Submit Beta feedback")))}}]),t}(o.a.Component);Ka()(Rg,"displayName","DevVersionNotice"),Rg.propTypes={isDevVersion:u.a.bool.isRequired,userIsSubscriber:u.a.bool.isRequired};var zg=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){if(this.props.isStaging&&!this.props.isInIdentityCrisis){var e=hu("jetpack-support-staging-sites"),t={text:Ws("You are running Jetpack on a staging server."),status:"is-basic",showDismiss:!1};return o.a.createElement(ip,t,o.a.createElement(bg,{href:e},Ws("More Info")))}return!1}}]),t}(o.a.Component);Ka()(zg,"displayName","StagingSiteNotice"),zg.propTypes={isStaging:u.a.bool.isRequired,isInIdentityCrisis:u.a.bool.isRequired};var Fg=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){if("dev"===this.props.siteConnectionStatus){var e=this.props.siteDevMode,t=[];e.filter&&t.push(Ws("{{li}}The jetpack_development_mode filter is active{{/li}}",{components:{li:o.a.createElement("li",null)}})),e.constant&&t.push(Ws("{{li}}The JETPACK_DEV_DEBUG constant is defined{{/li}}",{components:{li:o.a.createElement("li",null)}})),e.url&&t.push(Ws("{{li}}Your site URL lacks a dot (e.g. http://localhost){{/li}}",{components:{li:o.a.createElement("li",null)}}));var n=Ws("Currently in {{a}}Development Mode{{/a}} (some features are disabled) because: {{reasons/}}",{components:{a:o.a.createElement("a",{href:hu("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"}),reasons:o.a.createElement("ul",null,t)}});return o.a.createElement(ip,{showDismiss:!1,status:"is-info",text:n},o.a.createElement(bg,{href:hu("jetpack-support-development-mode")},Ws("Learn More")))}return!1}}]),t}(o.a.Component);Ka()(Fg,"displayName","DevModeNotice"),Fg.propTypes={siteConnectionStatus:u.a.oneOfType([u.a.string,u.a.bool]).isRequired,siteDevMode:u.a.oneOfType([u.a.bool,u.a.object]).isRequired};var Lg=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&o.a.createElement("div",{className:"jp-unlinked-notice"},o.a.createElement(gp,{title:Ws("Jetpack is powering your site, but to access all of its features you’ll need to create an account."),callToAction:Ws("Create account"),href:"".concat(this.props.connectUrl,"&from=unlinked-user-connect"),icon:"my-sites",className:"is-jetpack-info"}))}}]),t}(o.a.Component);Ka()(Lg,"displayName","UserUnlinked"),Lg.propTypes={connectUrl:u.a.string.isRequired,siteConnected:u.a.bool.isRequired};var Bg=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"render",value:function(){return o.a.createElement("div",{"aria-live":"polite"},o.a.createElement(Tg,null),o.a.createElement(Og,null),o.a.createElement(Rg,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),o.a.createElement(Fg,{siteConnectionStatus:this.props.siteConnectionStatus,siteDevMode:this.props.siteDevMode}),o.a.createElement(zg,{isStaging:this.props.isStaging,isInIdentityCrisis:this.props.isInIdentityCrisis}),o.a.createElement(Ug,null),o.a.createElement(Ig,null),o.a.createElement(Lg,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanConnectSite&&o.a.createElement(ip,{showDismiss:!1,status:"is-warning",text:Ws("This site is not connected to WordPress.com. Please ask the site administrator to connect.")}))}}]),t}(o.a.Component);Ka()(Bg,"displayName","JetpackNotices");var Vg=ce((function(e){return{connectUrl:to(e),siteConnectionStatus:Xs(e),userCanConnectSite:na(e),userIsSubscriber:$i(e),isLinked:so(e),isDevVersion:Vi(e),siteDevMode:eo(e),isStaging:co(e),isInIdentityCrisis:lo(e)}}))(Bg),Hg=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){var e=jQuery(this.refs.adminNotices),t=jQuery(".vp-deactivated");t.length>0&&t.each((function(){var t=jQuery(this).addClass("dops-notice is-success is-dismissable").removeClass("wrap vp-notice notice notice-success");t.wrapInner('<span class="dops-notice__content">'),t.find(".dops-notice__content").before('<span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"/></svg></span>').css("display","block"),t.find(".dops-notice__content").after('<span role="button" tabindex="0" class="dops-notice__dismiss"><svg class="gridicon gridicons-cross" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg><span class="screen-reader-text"/></span>'),t.find("h2").replaceWith((function(){return jQuery("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return jQuery("<div/>",{html:this.innerHTML})})),t.prependTo(e).css("display","flex")}));var n=jQuery(".vp-notice");n.length>0&&n.each((function(){var t=jQuery(this);if(0===t.find(".dops-notice__icon").length){var n=t.hasClass("vp-registered"),r=n?"is-success":"is-error";t.addClass("dops-notice vp-notice-jp "+r),t.wrapInner('<span class="dops-notice__content">');var i=n?'<span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"/></svg></span>':'<span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"/></svg></span>';t.find(".dops-notice__content").before(i),t.find(".vp-message").removeClass("vp-message").addClass("dops-notice__text"),t.find("h3").replaceWith((function(){return jQuery("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return jQuery("<div/>",{html:this.innerHTML})})),t.css("display","flex")}t.find('a[href*="admin.php?page=vaultpress"]').remove(),t.prependTo(e).removeClass("wrap vp-notice")}));var r=jQuery(".woocommerce-message");r.length>0&&r.each((function(){var t=jQuery(this).addClass("dops-notice").removeClass("updated wc-connect");t.find(".button-primary").addClass("dops-notice__action").removeClass("button-primary").detach().appendTo(t),t.find("p").not(".submit").wrapAll('<span class="dops-notice__text"/>');var n=t.find(".dops-notice__text");n.find("p").replaceWith((function(){return jQuery("<div/>",{html:this.innerHTML,class:"dops-notice__moved_text"})})),n.find("br").remove(),t.find(".button-secondary").removeClass("button-secondary").detach().appendTo(n),t.find(".submit").remove(),t.find(".woocommerce-message-close").removeClass("woocommerce-message-close notice-dismiss").addClass("dops-notice__action"),t.wrapInner('<span class="dops-notice__content">').prependTo(e).css("display","flex"),t.find(".dops-notice__action").not(":first").removeClass("dops-notice__action").detach().appendTo(t.find(".dops-notice__text")),t.find(".dops-notice__action:first").detach().appendTo(t)}));var i=jQuery(".notice");i.length>0&&i.each((function(){jQuery(this).hide()})),e.length>0&&jQuery(".dops-notice__dismiss").click((function(){jQuery(this).parent().closest("div").hide()}))}},{key:"render",value:function(){return o.a.createElement("div",{id:"jp-admin-notices",ref:"adminNotices","aria-live":"polite"})}}]),t}(o.a.Component),qg=function(e){function t(){return Ei()(this,t),Si()(this,Ai()(t).apply(this,arguments))}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props.analytics.tracks.recordEvent;e.searchTerm!==this.props.searchTerm&&e.searchTerm.length>=3&&t("jetpack_wpa_search_term",{term:e.searchTerm})}},{key:"render",value:function(){return null}}]),t}(s.Component);qg.propTypes={analytics:u.a.object,searchTerm:u.a.string};var Kg=ce((function(e){return{searchTerm:Io(e)}}))(qg),Jg=["/setup","/setup/intro","/setup/income","/setup/updates","/setup/features"],Wg=["/","/dashboard","/my-plan","/plans"],Gg=["/settings","/security","/performance","/writing","/sharing","/discussion","/traffic","/privacy"],Yg=function(e){function t(){var e,n;Ei()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"handleRouterWillLeave",(function(){var e=Ws("There are unsaved settings in this tab that will be lost if you leave it. Proceed?");return!!confirm(e)&&(window.setTimeout(n.props.clearUnsavedSettingsFlag,10),!0)})),Ka()(Ls()(n),"initializeAnalytics",(function(){var e=n.props.tracksUserData;e&&al.initialize(e.userid,e.username,{blog_id:e.blogid})})),Ka()(Ls()(n),"renderMainContent",(function(e){if(!n.props.userCanManageModules)return!!n.props.siteConnectionStatus&&o.a.createElement("div",{"aria-live":"assertive"},o.a.createElement(vg,n.props));if(!1===n.props.siteConnectionStatus&&n.props.userCanConnectSite)return o.a.createElement("div",{className:"jp-jetpack-connect__container","aria-live":"assertive"});var t,r=o.a.createElement(tu,{routeName:n.props.routeName,siteRawUrl:n.props.siteRawUrl,siteAdminUrl:n.props.siteAdminUrl}),i=o.a.createElement(Kl,{routeName:n.props.routeName});switch(e){case"/dashboard":t=o.a.createElement(im,{siteRawUrl:n.props.siteRawUrl,siteAdminUrl:n.props.siteAdminUrl,rewindStatus:n.props.rewindStatus});break;case"/my-plan":t=o.a.createElement(Sm,{siteRawUrl:n.props.siteRawUrl,siteAdminUrl:n.props.siteAdminUrl,rewindStatus:n.props.rewindStatus});break;case"/plans":t=o.a.createElement($m,{siteRawUrl:n.props.siteRawUrl,siteAdminUrl:n.props.siteAdminUrl,rewindStatus:n.props.rewindStatus});break;case"/plans-prompt":i=null,t=o.a.createElement(Xm,{siteAdminUrl:n.props.siteAdminUrl});break;case"/settings":case"/security":case"/performance":case"/writing":case"/sharing":case"/discussion":case"/traffic":case"/privacy":i=r,t=o.a.createElement(lh,{siteAdminUrl:n.props.siteAdminUrl,siteRawUrl:n.props.siteRawUrl,searchTerm:n.props.searchTerm,rewindStatus:n.props.rewindStatus,userCanManageModules:n.props.userCanManageModules});break;case"/setup":case"/setup/intro":case"/setup/income":case"/setup/updates":case"/setup/features":n.props.showSetupWizard?(i=null,t=o.a.createElement(Sh,null)):(n.props.history.replace("/dashboard"),t=n.getAtAGlance());break;default:n.props.history.replace("/dashboard"),t=n.getAtAGlance()}var a=n.props.showSetupWizard?{dashboard:1,setup:2,settings:3}:{setup:-1,dashboard:1,settings:2};return window.wpNavMenuClassChange(a),o.a.createElement("div",{"aria-live":"assertive"},i,t)})),n}return Mi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.setInitialState(),zi.setApiRoot(this.props.apiRoot),zi.setApiNonce(this.props.apiNonce),this.initializeAnalytics(),window.addEventListener("beforeunload",this.props.clearUnsavedSettingsFlag),this.props.isSiteConnected&&al.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion})}},{key:"componentDidMount",value:function(){var e=jQuery(".jp-jetpack-connect__container"),t=jQuery(".jp-connect-full__container");e&&t.length>0&&t.prependTo(e)}},{key:"shouldComponentUpdate",value:function(e){return!["/wpbody-content","/wp-toolbar"].includes(e.location.pathname)&&(e.siteConnectionStatus!==this.props.siteConnectionStatus||e.isLinked!==this.props.isLinked||e.location.pathname!==this.props.location.pathname||e.searchTerm!==this.props.searchTerm||e.rewindStatus!==this.props.rewindStatus||e.areThereUnsavedSettings!==this.props.areThereUnsavedSettings)}},{key:"componentDidUpdate",value:function(e){if(e.location.pathname!==this.props.location.pathname&&this.props.isSiteConnected&&al.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion}),e.siteConnectionStatus!==this.props.siteConnectionStatus){var t=jQuery("#toplevel_page_jetpack").find("ul.wp-submenu li");t.find('a[href$="#/settings"]').hide(),t.find('a[href$="admin.php?page=stats"]').hide()}}},{key:"getAtAGlance",value:function(){return o.a.createElement(im,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus})}},{key:"shouldShowAppsCard",value:function(){return this.props.isSiteConnected&&Wg.includes(this.props.location.pathname)}},{key:"shouldShowSupportCard",value:function(){return this.props.isSiteConnected&&Wg.includes(this.props.location.pathname)}},{key:"shouldShowRewindStatus",value:function(){return this.props.isSiteConnected&&Wg.includes(this.props.location.pathname)}},{key:"shouldShowMasthead",value:function(){return[].concat(Jg,Wg,Gg).includes(this.props.location.pathname)}},{key:"shouldShowFooter",value:function(){return[].concat(Wg,Gg).includes(this.props.location.pathname)}},{key:"render",value:function(){return o.a.createElement("div",null,this.shouldShowMasthead()&&o.a.createElement(hl,{location:this.props.location}),o.a.createElement("div",{className:"jp-lower"},this.shouldShowRewindStatus()&&o.a.createElement(Qp,null),o.a.createElement(Hg,null),o.a.createElement(Vg,null),o.a.createElement(Ye,{when:this.props.areThereUnsavedSettings,message:this.handleRouterWillLeave}),this.renderMainContent(this.props.location.pathname),this.shouldShowSupportCard()&&o.a.createElement(hg,{path:this.props.location.pathname}),this.shouldShowAppsCard()&&o.a.createElement(mg,null)),this.shouldShowFooter()&&o.a.createElement(pg,{siteAdminUrl:this.props.siteAdminUrl}),o.a.createElement(Kg,{analytics:al}))}}]),t}(o.a.Component),$g=ce((function(e){return{siteConnectionStatus:Xs(e),isLinked:so(e),siteRawUrl:Ji(e),siteAdminUrl:Wi(e),searchTerm:Io(e),apiRoot:ha(e),apiNonce:da(e),tracksUserData:fa(e),areThereUnsavedSettings:qo(e),userCanManageModules:Xi(e),userCanConnectSite:na(e),isSiteConnected:Zs(e),rewindStatus:xo(e),currentVersion:Hi(e),showSetupWizard:_a(e)}}),(function(e){return{setInitialState:function(){return e((function(e){e({type:Ot,initialState:window.Initial_State})}))},clearUnsavedSettingsFlag:function(){return e(su())}}}))(ut(Yg));window.wpNavMenuClassChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{setup:-1,dashboard:1,settings:2},t=window.location.hash;jQuery(".current").each((function(e,t){jQuery(t).removeClass("current")}));var n=function(e){return jQuery("#toplevel_page_jetpack").find("li").filter((function(t){return t===e}))[0]};t=t.split("?")[0].replace(/#/,""),Jg.includes(t)?n(e.setup).classList.add("current"):Wg.includes(t)?n(e.dashboard).classList.add("current"):Gg.includes(t)&&n(e.settings).classList.add("current");var r=jQuery("body");r.on("click",'a[href$="#/dashboard"], a[href$="#/settings"], .jp-dash-section-header__settings[href="#/security"], .dops-button[href="#/my-plan"], .dops-button[href="#/plans"], .jp-dash-section-header__external-link[href="#/security"]',(function(){window.scrollTo(0,0)})),r.on("click",".jetpack-js-stop-propagation",(function(e){e.stopPropagation()}))},St();var Qg=window.Initial_State;function Xg(e){switch(e){case"/dashboard":return qs.translate("At A Glance",{context:"Navigation item."});case"/setup":return qs.translate("Set up",{context:"Navigation item."});case"/my-plan":return qs.translate("My Plan",{context:"Navigation item."});case"/plans":case"/plans-prompt":return qs.translate("Plans",{context:"Navigation item."});case"/settings":return qs.translate("Settings",{context:"Navigation item."});case"/discussion":return qs.translate("Discussion",{context:"Navigation item."});case"/security":return qs.translate("Security",{context:"Navigation item."});case"/performance":return qs.translate("Performance",{context:"Navigation item."});case"/traffic":return qs.translate("Traffic",{context:"Navigation item."});case"/writing":return qs.translate("Writing",{context:"Navigation item."});case"/sharing":return qs.translate("Sharing",{context:"Navigation item."});default:return qs.translate("At A Glance",{context:"Navigation item."})}}Qg.locale=JSON.parse(Qg.locale),Qg.locale=Object(kt.get)(Qg.locale,["locale_data","jetpack"],{}),void 0!==Qg.locale[""]?(Qg.locale[""].localeSlug=Qg.localeSlug,Number.prototype.realToLocaleString=Number.prototype.toLocaleString,Number.prototype.toLocaleString=function(e,t){return e=e||Qg.localeSlug,t=t||{},this.realToLocaleString(e,t)}):Qg.locale={"":{localeSlug:Qg.localeSlug}},qs.setLocale(Qg.locale),function(){var e=document.getElementById("jp-plugin-container");if(null===e)return;a.a.render(o.a.createElement("div",null,o.a.createElement(h,{store:qc},o.a.createElement(ht,null,o.a.createElement(lt,null,o.a.createElement(rt,{path:"/dashboard"},o.a.createElement($g,{routeName:Xg("/dashboard")})),o.a.createElement(rt,{path:"/setup"},o.a.createElement($g,{routeName:Xg("/setup")})),o.a.createElement(rt,{path:"/my-plan"},o.a.createElement($g,{routeName:Xg("/my-plan")})),o.a.createElement(rt,{path:"/plans"},o.a.createElement($g,{routeName:Xg("/plans")})),o.a.createElement(rt,{path:"/plans-prompt"},o.a.createElement($g,{routeName:Xg("/plans-prompt")})),o.a.createElement(rt,{path:"/settings"},o.a.createElement($g,{routeName:Xg("/settings")})),o.a.createElement(rt,{path:"/discussion"},o.a.createElement($g,{routeName:Xg("/discussion")})),o.a.createElement(rt,{path:"/security"},o.a.createElement($g,{routeName:Xg("/security")})),o.a.createElement(rt,{path:"/performance"},o.a.createElement($g,{routeName:Xg("/performance")})),o.a.createElement(rt,{path:"/traffic"},o.a.createElement($g,{routeName:Xg("/traffic")})),o.a.createElement(rt,{path:"/writing"},o.a.createElement($g,{routeName:Xg("/writing")})),o.a.createElement(rt,{path:"/sharing"},o.a.createElement($g,{routeName:Xg("/sharing")})),o.a.createElement(rt,{path:"/wpbody-content",component:$g}),o.a.createElement(rt,{path:"/wp-toolbar",component:$g}),o.a.createElement(rt,{path:"/privacy",component:$g}),o.a.createElement(rt,{path:"/*"},o.a.createElement($g,{routeName:Xg("/*")})))))),e)}()}]));
Save Changes
Rename File
Rename