p))return!1;var y=l.get(e);if(y&&l.get(t))return y==t;var g=-1,b=!0,v=n&a?new r:void 0;for(l.set(e,t),l.set(t,e);++g(console.warn("Deprecation Warning: Deprecated since 5.13.1. Use the `OnboardingWizard` from the `@yoast/configuration-wizard` package instead."),null)),t.MessageBox=(()=>(console.warn("Deprecation Warning: Deprecated since 5.13.1. Use the `MessageBox` from the `@yoast/configuration-wizard` package instead."),null)),t.LinkSuggestions=_.default,t.ContentAnalysis=m.default,t.Collapsible=l.Collapsible,t.ButtonSection=h.default,t.LoadingIndicator=(()=>(console.warn("Deprecation Warning: Deprecated since 5.13.1. Use the `LoadingIndicator` from the `@yoast/configuration-wizard` package instead."),null)),t.CornerstoneToggle=x.default,t.sendRequest=b.sendRequest,t.decodeHTML=b.decodeHTML,t.getRtlStyle=j,t.colors=v.colors},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);Object.defineProperty(t,"DashboardWidgetSeoAssessment",{enumerable:!0,get:function(){return r.SiteSEOReport}});var o=n(6);Object.defineProperty(t,"DashboardWidgetWordpressFeed",{enumerable:!0,get:function(){return o.ArticleList}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderRatingToColor=t.AnalysisList=void 0;var r=n(78),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.AnalysisList=o.default,t.renderRatingToColor=r.renderRatingToColor},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.AnalysisList}}),Object.defineProperty(t,"renderRatingToColor",{enumerable:!0,get:function(){return r.renderRatingToColor}})},function(e,t){e.exports=window.yoast.searchMetadataPreviews},function(e,t){e.exports=window.yoast.replacementVariableEditor},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),o=function(e){return e&&e.__esModule?e:{default:e}}(n(82));t.default={getFeed:r.getFeed,getCourseFeed:r.getCourseFeed,getPostFeed:r.getPostFeed,makeOutboundLink:r.makeOutboundLink,buildStructuredUrl:o.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const n=Object.keys(t);let o=e;return n.forEach(e=>{const n=t[e],i=(0,r.isArray)(n)?n.join("/"):n,u=`%${e}%`;o=o.replace(new RegExp(u,"g"),i)}),o};var r=n(47)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTranslations=function(e){a=new r.default(e)},t.getGlobalJed=s,t.translate=c,t.localize=function(e){const t=e.displayName||e.name||"",n={translate:c};return class extends o.default.Component{constructor(e){super(e),this.displayName="Localized"+t}render(){const t=(0,i.default)({},this.props,n);return o.default.createElement(e,t)}}};var r=u(n(84)),o=u(n(2)),i=u(n(85));function u(e){return e&&e.__esModule?e:{default:e}}var a=null;function s(){return null===a&&(a=new r.default({})),a}function c(e,t="",n=0){const r=s();return""===t?r.gettext(e):r.ngettext(e,t,n)}},function(e,t){e.exports=window.yoast.jed},function(e,t,n){var r=n(26),o=n(9),i=n(93),u=n(16),a=n(17),s=n(11),c=Object.prototype.hasOwnProperty,l=i(function(e,t){if(a(t)||u(t))o(t,s(t),e);else for(var n in t)c.call(t,n)&&r(e,n,t[n])});e.exports=l},function(e,t,n){var r=n(50),o=n(90),i=n(3),u=n(52),a=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:a).test(u(e))}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(8),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=u.call(e);return r&&(t?e[a]=n:delete e[a]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(91),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(0)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(94),o=n(99);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,u=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(u=e.length>3&&"function"==typeof u?(i--,u):void 0,a&&o(n[0],n[1],a)&&(u=i<3?void 0:u,i=1),t=Object(t);++r0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(15),o=n(16),i=n(29),u=n(3);e.exports=function(e,t,n){if(!u(n))return!1;var a=typeof t;return!!("number"==a?o(n)&&i(t,n.length):"string"==a&&t in n)&&r(n[t],e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n-1}},function(e,t,n){var r=n(19);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(18);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(18),o=n(37),i=n(38),u=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.lengthe.id===t.result.id?t.result:e);return Object.assign({},e,{[t.keyword]:{results:n}})}(e,t);return Object.assign({},e,{[t.keyword]:{results:[...e[t.keyword].results,t.result]}})}(e,t);case o.REMOVE_KEYWORD:return(0,u.default)(e,t.keyword);case o.SET_SEO_RESULTS_FOR_KEYWORD:return function(e,t){if(!e[t.keyword])return c(e,t.keyword,t.results);return Object.assign({},e,{[t.keyword]:{results:t.results}})}(e,t);case o.SET_OVERALL_SEO_SCORE:return l(e,t);default:return e}};var o=n(35),i=a(n(58)),u=a(n(168));function a(e){return e&&e.__esModule?e:{default:e}}const s={};function c(e,t,n){return Object.assign({},e,{[t]:{results:n}})}function l(e,t){return Object.assign({},e,{[t.keyword]:r({},e[t.keyword],{overallScore:t.overallScore})})}},function(e,t,n){var r=n(67),o=n(169),i=n(191),u=n(23),a=n(9),s=n(195),c=n(197),l=n(70),f=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,function(t){return t=u(t,e),c||(c=t.length>1),t}),a(e,l(e),n),c&&(n=o(n,7,s));for(var f=t.length;f--;)i(n,t[f]);return n});e.exports=f},function(e,t,n){var r=n(36),o=n(170),i=n(26),u=n(171),a=n(172),s=n(175),c=n(176),l=n(177),f=n(178),p=n(62),d=n(70),y=n(22),g=n(179),b=n(180),v=n(185),h=n(1),m=n(31),x=n(187),_=n(3),S=n(189),j=n(11),w=1,O=2,E=4,k="[object Arguments]",R="[object Function]",T="[object GeneratorFunction]",P="[object Object]",A={};A[k]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[P]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[R]=A["[object WeakMap]"]=!1,e.exports=function e(t,n,C,I,L,M){var F,B=n&w,D=n&O,W=n&E;if(C&&(F=L?C(t,I,L,M):C(t)),void 0!==F)return F;if(!_(t))return t;var N=h(t);if(N){if(F=g(t),!B)return c(t,F)}else{var z=y(t),U=z==R||z==T;if(m(t))return s(t,B);if(z==P||z==k||U&&!L){if(F=D||U?{}:v(t),!B)return D?f(t,a(F,t)):l(t,u(F,t))}else{if(!A[z])return L?t:{};F=b(t,z,B)}}M||(M=new r);var K=M.get(t);if(K)return K;if(M.set(t,F),S(t))return t.forEach(function(r){F.add(e(r,n,C,r,t,M))}),F;if(x(t))return t.forEach(function(r,o){F.set(o,e(r,n,C,o,t,M))}),F;var $=W?D?d:p:D?keysIn:j,H=N?void 0:$(t);return o(H||t,function(r,o){H&&(r=t[o=r]),i(F,o,e(r,n,C,o,t,M))}),F}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++no?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r0&&i(l)?n>1?e(l,n-1,i,u,a):r(a,l):u||(a[a.length]=l)}return a}},function(e,t,n){var r=n(8),o=n(30),i=n(1),u=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(u&&e&&e[u])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YoastInputButtonContainer=void 0;var r=l(n(2)),o=l(n(25)),i=l(n(13)),u=n(47),a=n(6),s=n(10),c=n(45);function l(e){return e&&e.__esModule?e:{default:e}}const f=c.colors.$color_bad,p=c.colors.$palette_error_background,d=c.colors.$color_grey_text_light,y=c.colors.$palette_error_text,g=o.default.div.withConfig({displayName:"KeywordInput__KeywordInputContainer",componentId:"sc-35x9sp-0"})(["display:flex;flex-direction:column;"]),b=o.default.label.withConfig({displayName:"KeywordInput__KeywordFieldLabel",componentId:"sc-35x9sp-1"})(["font-size:var(--yoast-font-size-default);font-weight:var(--yoast-font-weight-bold);",";"],(0,s.getDirectionalStyle)("margin-right: 4px","margin-left: 4px")),v=o.default.span.withConfig({displayName:"KeywordInput__KeywordFieldLabelContainer",componentId:"sc-35x9sp-2"})(["margin-bottom:0.5em;"]),h=(0,o.default)(a.InputField).withConfig({displayName:"KeywordInput__KeywordField",componentId:"sc-35x9sp-3"})(["flex:1 !important;box-sizing:border-box;max-width:100%;margin:0;&::-ms-clear{display:none;}&.has-error{border-color:"," !important;background-color:"," !important;&:focus{box-shadow:0 0 2px "," !important;}}"],f,p,f),m=o.default.ul.withConfig({displayName:"KeywordInput__ErrorList",componentId:"sc-35x9sp-4"})(["color:",";list-style-type:disc;list-style-position:outside;margin:0;margin-left:1.2em;"],y),x=o.default.li.withConfig({displayName:"KeywordInput__ErrorListItem",componentId:"sc-35x9sp-5"})(["color:",";margin:0 0 0.5em 0;"],y),_=(0,a.addFocusStyle)(o.default.button.withConfig({displayName:"KeywordInput__BorderlessButton",componentId:"sc-35x9sp-6"})(["border:1px solid transparent;box-shadow:none;background:none;flex:0 0 32px;height:32px;max-width:32px;padding:0;cursor:pointer;"]));_.propTypes={type:i.default.string,focusColor:i.default.string,focusBackgroundColor:i.default.string,focusBorderColor:i.default.string},_.defaultProps={type:"button",focusColor:c.colors.$color_button_text_hover,focusBackgroundColor:"transparent",focusBorderColor:c.colors.$color_blue};const S=(0,o.default)(a.SvgIcon).withConfig({displayName:"KeywordInput__RemoveIcon",componentId:"sc-35x9sp-7"})(["margin-top:4px;"]),j=t.YoastInputButtonContainer=o.default.div.withConfig({displayName:"KeywordInput__YoastInputButtonContainer",componentId:"sc-35x9sp-8"})(["display:flex;flex-direction:row;align-items:center;&.has-remove-keyword-button{","{",";}","{",";}}"],h,(0,s.getDirectionalStyle)("padding-right: 40px","padding-left: 40px"),_,(0,s.getDirectionalStyle)("margin-left: -32px","margin-right: -32px"));class w extends r.default.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this)}handleChange(e){this.props.onChange(e.target.value)}renderLabel(){var e=this.props;const t=e.id,n=e.label,o=e.helpLink;return r.default.createElement(v,null,r.default.createElement(b,{htmlFor:t},n),o)}renderErrorMessages(){const e=[...this.props.errorMessages];return!(0,u.isEmpty)(e)&&r.default.createElement(m,null,e.map((e,t)=>r.default.createElement(x,{key:t},r.default.createElement("span",{role:"alert"},e))))}render(){var e=this.props;const t=e.id,n=e.showLabel,o=e.keyword,i=e.onRemoveKeyword,a=e.onBlurKeyword,s=e.onFocusKeyword,c=e.hasError,l=!n,f=i!==u.noop;return r.default.createElement(g,null,n&&this.renderLabel(),c&&this.renderErrorMessages(),r.default.createElement(j,{className:f?"has-remove-keyword-button":null},r.default.createElement(h,{"aria-label":l?this.props.label:null,type:"text",id:t,className:c?"has-error":null,onChange:this.handleChange,onFocus:s,onBlur:a,value:o,autoComplete:"off"}),f&&r.default.createElement(_,{onClick:i,focusBoxShadowColor:"#084A67"},r.default.createElement(S,{size:"18px",icon:"times-circle",color:d}))))}}w.propTypes={id:i.default.string.isRequired,showLabel:i.default.bool,keyword:i.default.string,onChange:i.default.func.isRequired,onRemoveKeyword:i.default.func,onBlurKeyword:i.default.func,onFocusKeyword:i.default.func,label:i.default.string.isRequired,helpLink:i.default.node,hasError:i.default.bool,errorMessages:i.default.arrayOf(i.default.string)},w.defaultProps={showLabel:!0,keyword:"",onRemoveKeyword:u.noop,onBlurKeyword:u.noop,onFocusKeyword:u.noop,helpLink:null,hasError:!1,errorMessages:[]},t.default=w},function(e,t,n){"use strict";var r=n(203);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,u){if(u!==r){var a=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 a.name="Invariant Violation",a}}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:i,resetWarningCache:o};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";Object.defineProperty(t,"__esModule",{value:!0}),t.insightsReducer=void 0;var r=n(71),o=n(205);t.insightsReducer=(0,r.combineReducers)({prominentWords:o.wordsForInsightsReducer})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordsForInsightsReducer=function(e=o,t){switch(t.type){case r.SET_WORDS_FOR_INSIGHTS:return t.wordsForInsights;default:return e}};var r=n(72);const o=[]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonSection=void 0;var r=u(n(13)),o=u(n(2)),i=n(6);function u(e){return e&&e.__esModule?e:{default:e}}const a=(0,i.wrapInHeading)(i.StyledIconsButton,{level:2,fontSize:"1rem",fontWeight:"normal"}),s=t.ButtonSection=(e=>{const t=e.hasSeparator?i.StyledContainerTopLevel:i.StyledContainer;return o.default.createElement(t,{onClick:e.onClick,className:e.className},o.default.createElement(e.Heading,{prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,hasSubTitle:!!e.subTitle,id:e.id},o.default.createElement(i.SectionTitle,{title:e.title,titleScreenReaderText:e.titleScreenReaderText,subTitle:e.subTitle})))});s.propTypes={hasSeparator:r.default.bool,className:r.default.string,Heading:r.default.func,prefixIcon:r.default.shape({icon:r.default.string,color:r.default.string,size:r.default.string}),suffixIcon:r.default.shape({icon:r.default.string,color:r.default.string,size:r.default.string}),subTitle:r.default.string,title:r.default.string.isRequired,titleScreenReaderText:r.default.string,onClick:r.default.func.isRequired,id:r.default.string},s.defaultProps={Heading:a,id:null},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.ContentAnalysis}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(2)),o=s(n(13)),i=s(n(25)),u=n(6),a=n(46);function s(e){return e&&e.__esModule?e:{default:e}}const c=i.default.div.withConfig({displayName:"CornerstoneToggle__Cornerstone",componentId:"sc-1m1gckt-0"})(["display:flex;margin-top:8px;"]);class l extends r.default.Component{render(){return r.default.createElement(c,null,r.default.createElement(u.Toggle,{id:this.props.id,labelText:(0,a.__)("Mark as cornerstone content","yoast-components"),isEnabled:this.props.isEnabled,onSetToggleState:this.props.onToggle,onToggleDisabled:this.props.onToggleDisabled}))}}l.propTypes={id:o.default.string,isEnabled:o.default.bool,onSetToggleState:o.default.func,onToggle:o.default.func,disable:o.default.bool,onToggleDisabled:o.default.func},l.defaultProps={id:"cornerstone-toggle"},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tt&&(e.length=t);const n=this.getCornerstoneSuggestions(),r=this.getDefaultSuggestions();return o.default.createElement(y,null,n,r,o.default.createElement("p",null,this.getArticleLink()),o.default.createElement("p",null,this.props.customMessages.metaMessage))}getCornerstoneSuggestions(){const e=this.filterSuggestionsByCornerstone(!0);if(0===e.length)return null;const t=(0,c.default)({mixedString:v,components:{a:o.default.createElement(d,{href:"https://yoa.st/metabox-ls-help-cornerstone"})}});return this.getSuggestionsList(t,e)}getDefaultSuggestions(){const e=this.filterSuggestionsByCornerstone(!1);return 0===e.length?null:this.getSuggestionsList(h,e)}getArticleLink(){return(0,c.default)({mixedString:b,components:{a:o.default.createElement(d,{href:"https://yoa.st/site-structure-metabox"})}})}getSuggestionsList(e,t){return o.default.createElement("div",null,o.default.createElement("p",null,e),t.map((e,t)=>o.default.createElement(a.default,r({key:t},e))))}filterSuggestionsByCornerstone(e=!0){return this.props.suggestions.filter(t=>t.isCornerstone===e)}}m.propTypes={suggestions:i.default.array.isRequired,maxSuggestions:i.default.number,customMessages:i.default.object},m.defaultProps={maxSuggestions:10,customMessages:{lengthMessage:"",metaMessage:""}},t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(2)),o=l(n(13)),i=l(n(25)),u=n(46),a=n(45),s=n(6),c=n(10);function l(e){return e&&e.__esModule?e:{default:e}}const f=i.default.div.withConfig({displayName:"LinkSuggestion__LinkSuggestionWrapper",componentId:"sc-1mdih4x-0"})(["display:flex;align-items:center;min-height:40px;margin-bottom:5px;"]),p=i.default.button.withConfig({displayName:"LinkSuggestion__LinkSuggestionIcon",componentId:"sc-1mdih4x-1"})(["box-sizing:border-box;height:30px;width:30px;background-color:",";border-radius:5px;cursor:pointer;outline:none;margin-right:8px;border:1px solid ",";&:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);}"],a.colors.$color_button,a.colors.$color_button_border),d=(0,c.makeOutboundLink)(i.default.a.withConfig({displayName:"LinkSuggestion__Link",componentId:"sc-1mdih4x-2"})(["max-width:128px;padding:6px 0;margin-right:8px;"])),y=i.default.span.withConfig({displayName:"LinkSuggestion__Badge",componentId:"sc-1mdih4x-3"})(["max-width:75px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;display:block;padding:3px 8px;margin-left:auto;font-size:0.85em;background-color:#f3f4f5;border-radius:2px;"]),g=({value:e,url:t,isActive:n,type:o})=>{const i=(0,u.__)("Copy link","yoast-components"),c=(0,u.sprintf)((0,u.__)("Copy link to suggested article: %s","yoast-components"),e);let l="clipboard";return n&&(l="check"),r.default.createElement(f,null,r.default.createElement(p,{type:"button",className:"yoast-link-suggestion__copy yoast-tooltip yoast-tooltip-alt yoast-tooltip-s",onBlur:e=>{e.nativeEvent.target.setAttribute("aria-label",c),e.nativeEvent.target.setAttribute("data-label",i)},"data-clipboard-text":t,"aria-label":c,"data-label":i},r.default.createElement(s.SvgIcon,{icon:l,color:a.colors.$color_grey_dark}),r.default.createElement(s.ScreenReaderText,null,i)),r.default.createElement(d,{href:t},e),r.default.createElement(y,{title:o},o))};g.propTypes={value:o.default.string.isRequired,url:o.default.string.isRequired,isActive:o.default.bool,type:o.default.string.isRequired},g.defaultProps={isActive:!1},t.default=g},function(e,t,n){var r,o,i;o=[e,n(212),n(214),n(215)],void 0===(i="function"==typeof(r=function(e,t,n,r){"use strict";var o=a(t),i=a(n),u=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var s="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},c=function(){function e(e,t){for(var n=0;n0&&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"===s(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,u.default)(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.default({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 f("action",e)}},{key:"defaultTarget",value:function(e){var t=f("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return f("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}(i.default);function f(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=l})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){var r,o,i;o=[e,n(213)],void 0===(i="function"==typeof(r=function(e,t){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}}(t),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},o=function(){function e(e,t){for(var n=0;n0&&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 r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(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=(0,n.default)(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(),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":r(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}();e.exports=i})?r.apply(t,o):r)||(e.exports=i)},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(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),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 o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r "+s);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],a=p;break}g.push(t[f.value])}else g.push(f.value);return n&&(l=function(e,t){var n,r,o=t[e],i=0;for(r=e+1;r