1/* 2 clipboard.js v2.0.4 3 https://zenorocha.github.io/clipboard.js 4 5 Licensed MIT © Zeno Rocha 6*/ 7!function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():r.ClipboardJS=e()}(this,function(){return function(r){function e(a){if(b[a])return b[a].exports;var f=b[a]={i:a,l:!1,exports:{}};return r[a].call(f.exports,f,f.exports,e),f.l=!0,f.exports}var b={};return e.m=r,e.c=b,e.d=function(a,f,g){e.o(a,f)||Object.defineProperty(a,f,{enumerable:!0,get:g})},e.r=function(a){"undefined"!= 8typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});Object.defineProperty(a,"__esModule",{value:!0})},e.t=function(a,f){if((1&f&&(a=e(a)),8&f)||4&f&&"object"==typeof a&&a&&a.__esModule)return a;var g=Object.create(null);if(e.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:a}),2&f&&"string"!=typeof a)for(var l in a)e.d(g,l,function(h){return a[h]}.bind(null,l));return g},e.n=function(a){var f=a&&a.__esModule?function(){return a.default}:function(){return a}; 9return e.d(f,"a",f),f},e.o=function(a,f){return Object.prototype.hasOwnProperty.call(a,f)},e.p="",e(e.s=0)}([function(r,e,b){function a(k){return k&&k.__esModule?k:{default:k}}function f(k,m){k="data-clipboard-"+k;if(m.hasAttribute(k))return m.getAttribute(k)}var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},l=function(){function k(m,c){for(var n= 100;n<c.length;n++){var p=c[n];p.enumerable=p.enumerable||!1;p.configurable=!0;"value"in p&&(p.writable=!0);Object.defineProperty(m,p.key,p)}}return function(m,c,n){return c&&k(m.prototype,c),n&&k(m,n),m}}(),h=a(b(1)),d=a(b(3)),q=a(b(4));e=function(k){function m(c,n){if(!(this instanceof m))throw new TypeError("Cannot call a class as a function");!0;var p=(m.__proto__||Object.getPrototypeOf(m)).call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 11p=!p||"object"!=typeof p&&"function"!=typeof p?this:p;return p.resolveOptions(n),p.listenClick(c),p}
11return function(c,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);c.prototype=Object.create(n&&n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(c,n):c.__proto__=n)}(m,d.default),l(m,[{key:"resolveOptions",value:function(){var c=0<arguments.length&& 12void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof c.action?c.action:this.defaultAction;this.target="function"==typeof c.target?c.target:this.defaultTarget;this.text="function"==typeof c.text?c.text:this.defaultText;this.container="object"===g(c.container)?c.container:document.body}},{key:"listenClick",value:function(c){var n=this;this.listener=(0,q.default)(c,"click",function(p){return n.onClick(p)})}},{key:"onClick",value:function(c){c=c.delegateTarget||c.currentTarget;this.clipboardAction&& 13(this.clipboardAction=null);this.clipboardAction=new h.default({action:this.action(c),target:this.target(c),text:this.text(c),container:this.container,trigger:c,emitter:this})}},{key:"defaultAction",value:function(c){return f("action",c)}},{key:"defaultTarget",value:function(c){if(c=f("target",c))return document.querySelector(c)}},{key:"defaultText",value:function(c){return f("text",c)}},{key:"destroy",value:function(){this.listener.destroy();this.clipboardAction&&(this.clipboardAction.destroy(), 14this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n=!!document.queryCommandSupported;return("string"==typeof c?[c]:c).forEach(function(p){n=n&&!!document.queryCommandSupported(p)}),n}}]),m}();r.exports=e},function(r,e,b){var a,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype? 15"symbol":typeof h},g=function(){function h(d,q){for(var k=0;k<q.length;k++){var m=q[k];m.enumerable=m.enumerable||!1;m.configurable=!0;"value"in m&&(m.writable=!0);Object.defineProperty(d,m.key,m)}}return function(d,q,k){return q&&h(d.prototype,q),k&&h(d,k),d}}(),l=(a=b(2))&&a.__esModule?a:{default:a};e=function(){function h(d){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");!0;this.resolveOptions(d);this.initSelection()}return g(h,[{key:"resolveOptions",value:function(){var d= 160<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=d.action;this.container=d.container;this.emitter=d.emitter;this.target=d.target;this.text=d.text;this.trigger=d.trigger;this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var d=this,q="rtl"==document.documentElement.getAttribute("dir");this.removeFake();this.fakeHandlerCallback=function(){return d.removeFake()};this.fakeHandler= 17this.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[q?"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); 18this.selectedText=(0,l.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,l.default)(this.target);this.copyText()}},{key:"copyText",value:function(){var d=void 0;try{d=document.execCommand(this.action)}catch(q){d= 19!1}this.handleResult(d)}},{key:"handleResult",value:function(d){this.emitter.emit(d?"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(){if(this._action=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy","copy"!==this._action&& 20"cut"!==this._action)throw Error('Invalid "action" value, use either "copy" or "cut"');},get:function(){return this._action}},{key:"target",set:function(d){if(void 0!==d){if(!d||"object"!==(void 0===d?"undefined":f(d))||1!==d.nodeType)throw Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&d.hasAttribute("disabled"))throw Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(d.hasAttribute("readonly")||d.hasAttribute("disabled")))throw Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes'); 21this._target=d}},get:function(){return this._target}}]),h}();r.exports=e}
21,function(r,e){r.exports=function(b){if("SELECT"===b.nodeName)b.focus(),b=b.value;else if("INPUT"===b.nodeName||"TEXTAREA"===b.nodeName){var a=b.hasAttribute("readonly");a||b.setAttribute("readonly","");b.select();b.setSelectionRange(0,b.value.length);a||b.removeAttribute("readonly");b=b.value}else{b.hasAttribute("contenteditable")&&b.focus();a=window.getSelection();var f=document.createRange();f.selectNodeContents(b);a.removeAllRanges(); 22a.addRange(f);b=a.toString()}return b}},function(r,e){function b(){}b.prototype={on:function(a,f,g){var l=this.e||(this.e={});return(l[a]||(l[a]=[])).push({fn:f,ctx:g}),this},once:function(a,f,g){function l(){h.off(a,l);f.apply(g,arguments)}var h=this;return l._=f,this.on(a,l,g)},emit:function(a){for(var f=[].slice.call(arguments,1),g=((this.e||(this.e={}))[a]||[]).slice(),l=0,h=g.length;l<h;l++)g[l].fn.apply(g[l].ctx,f);return this},off:function(a,f){var g=this.e||(this.e={}),l=g[a],h=[];if(l&&f)for(var d= 230,q=l.length;d<q;d++)l[d].fn!==f&&l[d].fn._!==f&&h.push(l[d]);return h.length?g[a]=h:delete g[a],this}};r.exports=b},function(r,e,b){var a=b(5),f=b(6);r.exports=function(g,l,h){if(!g&&!l&&!h)throw Error("Missing required arguments");if(!a.string(l))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(g))return t=l,u=h,(p=g).addEventListener(t,u),{destroy:function(){p.removeEventListener(t,u)}};if(a.nodeList(g))return m= 24g,c=l,n=h,Array.prototype.forEach.call(m,function(v){v.addEventListener(c,n)}),{destroy:function(){Array.prototype.forEach.call(m,function(v){v.removeEventListener(c,n)})}};if(a.string(g))return d=g,q=l,k=h,f(document.body,d,q,k);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var d,q,k,m,c,n,p,t,u}},function(r,e){e.node=function(b){return void 0!==b&&b instanceof HTMLElement&&1===b.nodeType};e.nodeList=function(b){var a=Object.prototype.toString.call(b); 25return void 0!==b&&("[object NodeList]"===a||"[object HTMLCollection]"===a)&&"length"in b&&(0===b.length||e.node(b[0]))};e.string=function(b){return"string"==typeof b||b instanceof String};e.fn=function(b){return"[object Function]"===Object.prototype.toString.call(b)}},function(r,e,b){function a(g,l,h,d,q){var k=function(m,c,n,p){return function(t){t.delegateTarget=f(t.target,c);t.delegateTarget&&p.call(m,t)}}.apply(this,arguments);return g.addEventListener(h,k,q),{destroy:function(){g.removeEventListener(h, 26k,q)}}}var f=b(7);r.exports=function(g,l,h,d,q){return"function"==typeof g.addEventListener?a.apply(null,arguments):"function"==typeof h?a.bind(null,document).apply(null,arguments):("string"==typeof g&&(g=document.querySelectorAll(g)),Array.prototype.map.call(g,function(k){return a(k,l,h,d,q)}))}},function(r,e){"undefined"==typeof Element||Element.prototype.matches||(e=Element.prototype,e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector); 27r.exports=function(b,a){for(;b&&9!==b.nodeType;){if("function"==typeof b.matches&&b.matches(a))return b;b=b.parentNode}}}])});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.