!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){returno={},r.m=n=[function(t,e,n){"use strict";varo="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},r=function(t,e,n){returne&&i(t.prototype,e),n&&i(t,n),t};functioni(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}vara=u(n(1)),c=u(n(3)),l=u(n(4));functionu(t){returnt&&t.__esModule?t:{default:t}}vars=(function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(f,c.default),r(f,[{key:"resolveOptions",value:function(t){vare=0<arguments.length&&void0!==t?t:{};this.action="function"==typeofe.action?e.action:this.defaultAction,this.target="function"==typeofe.target?e.target:this.defaultTarget,this.text="function"==typeofe.text?e.text:this.defaultText,this.container="object"===o(e.container)?e.container:document.body}},{key:"listenClick",value:function(t){vare=this;this.listener=(0,l.default)(t,"click",function(t){returne.onClick(t)})}},{key:"onClick",value:function(t){vare=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=newa.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){returnd("action",t)}},{key:"defaultTarget",value:function(t){vare=d("target",t);if(e)returndocument.querySelector(e)}},{key:"defaultText",value:function(t){returnd("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(t){vare=0<arguments.length&&void0!==t?t:["copy","cut"],n="string"==typeofe?[e]:e,o=!!document.queryCommandSupported;returnn.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),f);functionf(t,e){!function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,f);varn=function(t,e){if(!t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeofe&&"function"!=typeofe?t:e}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));returnn.resolveOptions(e),n.listenClick(t),n}functiond(t,e){varn="data-clipboard-"+t;if(e.hasAttribute(n))returne.getAttribute(n)}t.exports=s},function(t,e,n){"use strict";varo="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},r=function(t,e,n){returne&&i(t.prototype,e),n&&i(t,n),t};functioni(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}vara,c=n(2),l=(a=c)&&a.__esModule?a:{default:a};varu=(r(s,[{key:"resolveOptions",value:function(t){vare=0<arguments.length&&void0!==t?t:{};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(){vart=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){returnt.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document