/*
 clipboard.js v2.0.0
 https://zenorocha.github.io/clipboard.js

 Licensed MIT c Zeno Rocha
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(b){var c=0;return function(){return c<b.length?{done:!1,value:b[c++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,c,a){b!=Array.prototype&&b!=Object.prototype&&(b[c]=a.value)};
$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var b=0;return function(c){return $jscomp.SYMBOL_PREFIX+(c||"")+b++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.asyncIterator;b||(b=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(b){$jscomp.initSymbolIterator();b={next:b};b[$jscomp.global.Symbol.iterator]=function(){return this};return b};
(function(b,c){"object"===typeof exports&&"object"===typeof module?module.exports=c():"function"===typeof define&&define.amd?define([],c):"object"===typeof exports?exports.ClipboardJS=c():b.ClipboardJS=c()})(this,function(){return function(b){function c(d){if(a[d])return a[d].exports;var e=a[d]={i:d,l:!1,exports:{}};b[d].call(e.exports,e,e.exports,c);e.l=!0;return e.exports}var a={};c.m=b;c.c=a;c.i=function(d){return d};c.d=function(d,a,b){c.o(d,a)||Object.defineProperty(d,a,{configurable:!1,enumerable:!0,
get:b})};c.n=function(a){var d=a&&a.__esModule?function(){return a["default"]}:function(){return a};c.d(d,"a",d);return d};c.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};c.p="";return c(c.s=3)}([function(b,c,a){var d,e,f;(function(g,h){!(e=[b,a(7)],d=h,f="function"===typeof d?d.apply(c,e):d,void 0!==f&&(b.exports=f))})(this,function(a,d){var b=d&&d.__esModule?d:{"default":d};$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();var c="function"===typeof Symbol&&
"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},g=function(){function a(a,d){for(var b=0;b<d.length;b++){var c=d[b];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(a,c.key,c)}}return function(d,b,c){b&&a(d.prototype,b);c&&a(d,c);return d}}(),h=function(){function a(d){if(!(this instanceof
a))throw new TypeError("Cannot call a class as a function");this.resolveOptions(d);this.initSelection()}g(a,[{key:"resolveOptions",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=a.action;this.container=a.container;this.emitter=a.emitter;this.target=a.target;this.text=a.text;this.trigger=a.trigger;this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var a=
this,d="rtl"==document.documentElement.getAttribute("dir");this.removeFake();this.fakeHandlerCallback=function(){return a.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[d?"right":"left"]="-9999px";this.fakeElem.style.top=
(window.pageYOffset||document.documentElement.scrollTop)+"px";this.fakeElem.setAttribute("readonly","");this.fakeElem.value=this.text;this.container.appendChild(this.fakeElem);this.selectedText=(0,b["default"])(this.fakeElem);this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandlerCallback=this.fakeHandler=null);this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",
value:function(){this.selectedText=(0,b["default"])(this.target);this.copyText()}},{key:"copyText",value:function(){var a=void 0;try{a=document.execCommand(this.action)}catch(n){a=!1}this.handleResult(a)}},{key:"handleResult",value:function(a){this.emitter.emit(a?"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(){this._action=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if("copy"!==this._action&&"cut"!==this._action)throw Error('Invalid "action" value, use either "copy" or "cut"');},get:function(){return this._action}},{key:"target",set:function(a){if(void 0!==a)if(a&&"object"===("undefined"===typeof a?"undefined":c(a))&&1===a.nodeType){if("copy"===this.action&&a.hasAttribute("disabled"))throw Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
if("cut"===this.action&&(a.hasAttribute("readonly")||a.hasAttribute("disabled")))throw Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=a}else throw Error('Invalid "target" value, use a valid Element');},get:function(){return this._target}}]);return a}();a.exports=h})},function(b,c,a){function d(a,d,b){a.addEventListener(d,b);return{destroy:function(){a.removeEventListener(d,b)}}}function e(a,d,b){Array.prototype.forEach.call(a,
function(a){a.addEventListener(d,b)});return{destroy:function(){Array.prototype.forEach.call(a,function(a){a.removeEventListener(d,b)})}}}var f=a(6),g=a(5);b.exports=function(a,b,c){if(!a&&!b&&!c)throw Error("Missing required arguments");if(!f.string(b))throw new TypeError("Second argument must be a String");if(!f.fn(c))throw new TypeError("Third argument must be a Function");if(f.node(a))return d(a,b,c);if(f.nodeList(a))return e(a,b,c);if(f.string(a))return g(document.body,a,b,c);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
}},function(b,c){function a(){}a.prototype={on:function(a,b,c){var d=this.e||(this.e={});(d[a]||(d[a]=[])).push({fn:b,ctx:c});return this},once:function(a,b,c){function d(){e.off(a,d);b.apply(c,arguments)}var e=this;d._=b;return this.on(a,d,c)},emit:function(a){var d=[].slice.call(arguments,1),b=((this.e||(this.e={}))[a]||[]).slice(),c=0,h=b.length;for(c;c<h;c++)b[c].fn.apply(b[c].ctx,d);return this},off:function(a,b){var d=this.e||(this.e={}),c=d[a],e=[];if(c&&b)for(var k=0,l=c.length;k<l;k++)c[k].fn!==
b&&c[k].fn._!==b&&e.push(c[k]);e.length?d[a]=e:delete d[a];return this}};b.exports=a},function(b,c,a){var d,e,f;(function(g,h){!(e=[b,a(0),a(2),a(1)],d=h,f="function"===typeof d?d.apply(c,e):d,void 0!==f&&(b.exports=f))})(this,function(a,b,d,c){function e(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,
enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function f(a,b){var d="data-clipboard-"+a;if(b.hasAttribute(d))return b.getAttribute(d)}var h=e(b);b=e(d);var k=e(c);$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();var l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"===typeof Symbol&&
a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},m=function(){function a(a,b){for(var d=0;d<b.length;d++){var c=b[d];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(a,c.key,c)}}return function(b,d,c){d&&a(b.prototype,d);c&&a(b,c);return b}}();c=function(a){function b(a,d){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var c=(b.__proto__||Object.getPrototypeOf(b)).call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
c=!c||"object"!==typeof c&&"function"!==typeof c?this:c;c.resolveOptions(d);c.listenClick(a);return c}g(b,a);m(b,[{key:"resolveOptions",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof a.action?a.action:this.defaultAction;this.target="function"===typeof a.target?a.target:this.defaultTarget;this.text="function"===typeof a.text?a.text:this.defaultText;this.container="object"===l(a.container)?a.container:document.body}},{key:"listenClick",
value:function(a){var b=this;this.listener=(0,k["default"])(a,"click",function(a){return b.onClick(a)})}},{key:"onClick",value:function(a){a=a.delegateTarget||a.currentTarget;this.clipboardAction&&(this.clipboardAction=null);this.clipboardAction=new h["default"]({action:this.action(a),target:this.target(a),text:this.text(a),container:this.container,trigger:a,emitter:this})}},{key:"defaultAction",value:function(a){return f("action",a)}},{key:"defaultTarget",value:function(a){if(a=f("target",a))return document.querySelector(a)}},
{key:"defaultText",value:function(a){return f("text",a)}},{key:"destroy",value:function(){this.listener.destroy();this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],b=!!document.queryCommandSupported;("string"===typeof a?[a]:a).forEach(function(a){b=b&&!!document.queryCommandSupported(a)});return b}}]);return b}(b["default"]);a.exports=c})},function(b,c){if("undefined"!==
typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}b.exports=function(a,b){for(;a&&9!==a.nodeType;){if("function"===typeof a.matches&&a.matches(b))return a;a=a.parentNode}}},function(b,c,a){function d(a,b,c,d,f){var g=e.apply(this,arguments);a.addEventListener(c,g,f);return{destroy:function(){a.removeEventListener(c,g,f)}}}function e(a,b,c,d){return function(c){c.delegateTarget=
f(c.target,b);c.delegateTarget&&d.call(a,c)}}var f=a(4);b.exports=function(a,b,c,e,f){if("function"===typeof a.addEventListener)return d.apply(null,arguments);if("function"===typeof c)return d.bind(null,document).apply(null,arguments);"string"===typeof a&&(a=document.querySelectorAll(a));return Array.prototype.map.call(a,function(a){return d(a,b,c,e,f)})}},function(b,c){c.node=function(a){return void 0!==a&&a instanceof HTMLElement&&1===a.nodeType};c.nodeList=function(a){var b=Object.prototype.toString.call(a);
return void 0!==a&&("[object NodeList]"===b||"[object HTMLCollection]"===b)&&"length"in a&&(0===a.length||c.node(a[0]))};c.string=function(a){return"string"===typeof a||a instanceof String};c.fn=function(a){return"[object Function]"===Object.prototype.toString.call(a)}},function(b,c){b.exports=function(a){if("SELECT"===a.nodeName)a.focus(),a=a.value;else if("INPUT"===a.nodeName||"TEXTAREA"===a.nodeName){var b=a.hasAttribute("readonly");b||a.setAttribute("readonly","");a.select();a.setSelectionRange(0,
a.value.length);b||a.removeAttribute("readonly");a=a.value}else{a.hasAttribute("contenteditable")&&a.focus();b=window.getSelection();var c=document.createRange();c.selectNodeContents(a);b.removeAllRanges();b.addRange(c);a=b.toString()}return a}}])});