vendor: 8,204 bytes, lines 1-6
1function Q(y){return y&&y.__esModule&&Object.prototype.hasOwnProperty.call(y,"default")?y.default:y}var k={exports:{}};/*! 2 * clipboard.js v2.0.11 3 * https://clipboardjs.com/ 4 * 5 * Licensed MIT © Zeno Rocha 6 */var W=k.exports,I;function Z(){return I||(I=1,(function(y,T){(function(E,b){y.exports=b()})(W,function(){return(function(){var C={686:(function(f,a,t){t.d(a,{default:function(){return G}});var c=t(279),s=t.n(c),l=t(370),g=t.n(l),h=t(817),m=t.n(h);function p(i){try{return document.execCommand(i)}catch{return!1}}var v=function(n){var e=m()(n);return p("cut"),e},d=v;function _(i){var n=document.documentElement.getAttribute("dir")==="rtl",e=document.createElement("textarea");e.style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[n?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return e.style.top="".concat(r,"px"),e.setAttribute("readonly",""),e.value=i,e}var M=function(n,e){var r=_(n);e.container.appendChild(r);var o=m()(r);return p("copy"),r.remove(),o},q=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},r="";return typeof n=="string"?r=M(n,e):n instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(n?.type)?r=M(n.value,e):(r=m()(n),p("copy")),r},L=q;function x(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(e){return typeof e}:x=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(i)}var H=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.action,r=e===void 0?"copy":e,o=n.container,u=n.target,S=n.text;if(r!=="copy"&&r!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(u!==void 0)if(u&&x(u)==="object"&&u.nodeType===1){if(r==="copy"&&u.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(r==="cut"&&(u.hasAttribute("readonly")||u.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(S)return L(S,{container:o});if(u)return r==="cut"?d(u):L(u,{container:o})},z=H;function w(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(e){return typeof e}:w=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(i)}function B(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function j(i,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}function $(i,n,e){return n&&j(i.prototype,n),e&&j(i,e),i}function U(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),n&&N(i,n)}function N(i,n){return N=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},N(i,n)}function V(i){var n=X();return function(){var r=A(i),o;if(n){var u=A(this).constructor;o=Reflect.construct(r,arguments,u)}else o=r.apply(this,arguments);return Y(this,o)}}function Y(i,n){return n&&(w(n)==="object"||typeof n=="function")?n:K(i)}function K(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function X(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(i){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(i)}function P(i,n){var e="data-clipboard-".concat(i);if(n.hasAttribute(e))return n.getAttribute(e)}var J=(function(i){U(e,i);var n=V(e);function e(r,o){var u;return B(this,e),u=n.call(this),u.resolveOptions(o),u.listenClick(r),u}return $(e,[{key:"resolveOptions",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof o.action=="function"?o.action:this.defaultAction,this.target=typeof o.target=="function"?o.target:this.defaultTarget,this.text=typeof o.text=="function"?o.text:this.defaultText,this.container=w(o.container)==="object"?o.container:document.body}},{key:"listenClick",value:function(o){var u=this;this.listener=g()(o,"click",function(S){return u.onClick(S)})}},{key:"onClick",value:function(o){var u=o.delegateTarget||o.currentTarget,S=this.action(u)||"copy",O=z({action:S,container:this.container,target:this.target(u),text:this.text(u)});this.emit(O?"success":"error",{action:S,text:O,trigger:u,clearSelection:function(){u&&u.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(o){return P("action",o)}},{key:"defaultTarget",value:function(o){var u=P("target",o);if(u)return document.querySelector(u)}},{key:"defaultText",value:function(o){return P("text",o)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return L(o,u)}},{key:"cut",value:function(o){return d(o)}},{key:"isSupported",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],u=typeof o=="string"?[o]:o,S=!!document.queryCommandSupported;return u.forEach(function(O){S=S&&!!document.queryCommandSupported(O)}),S}}]),e})(s()),G=J}),828:(function(f){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}function c(s,l){for(;s&&s.nodeType!==a;){if(typeof s.matches=="function"&&s.matches(l))return s;s=s.parentNode}}f.exports=c}),438:(function(f,a,t){var c=t(828);function s(h,m,p,v,d){var _=g.apply(this,arguments);return h.addEventListener(p,_,d),{destroy:function(){h.removeEventListener(p,_,d)}}}function l(h,m,p,v,d){return typeof h.addEventListener=="function"?s.apply(null,arguments):typeof p=="function"?s.bind(null,document).apply(null,arguments):(typeof h=="string"&&(h=document.querySelectorAll(h)),Array.prototype.map.call(h,function(_){return s(_,m,p,v,d)}))}function g(h,m,p,v){return function(d){d.delegateTarget=c(d.target,m),d.delegateTarget&&v.call(h,d)}}f.exports=l}),879:(function(f,a){a.node=function(t){return t!==void 0&&t instanceof HTMLElement&&t.nodeType===1},a.nodeList=function(t){var c=Object.prototype.toString.call(t);return t!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in t&&(t.length===0||a.node(t[0]))},a.string=function(t){return typeof t=="string"||t instanceof String},a.fn=function(t){var c=Object.prototype.toString.call(t);return c==="[object Function]"}}),370:(function(f,a,t){var c=t(879),s=t(438);function l(p,v,d){if(!p&&!v&&!d)throw new Error("Missing required arguments");if(!c.string(v))throw new TypeError("Second argument must be a String");if(!c.fn(d))throw new TypeError("Third argument must be a Function");if(c.node(p))return g(p,v,d);if(c.nodeList(p))return h(p,v,d);if(c.string(p))return m(p,v,d);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function g(p,v,d){return p.addEventListener(v,d),{destroy:function(){p.removeEventListener(v,d)}}}function h(p,v,d){return Array.prototype.forEach.call(p,function(_){_.addEventListener(v,d)}),{destroy:function(){Array.prototype.forEach.call(p,function(_){_.removeEventListener(v,d)})}}}function m(p,v,d){return s(document.body,p,v,d)}f.exports=l}),817:(function(f){function a(t){var c;if(t.nodeName==="SELECT")t.focus(),c=t.value;else if(t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"){var s=t.hasAttribute("readonly");s||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),s||t.removeAttribute("readonly"),c=t.value}
6else{t.hasAttribute("contenteditable")&&t.focus();var l=window.getSelection(),g=document.createRange();g.selectNodeContents(t),l.removeAllRanges(),l.addRange(g),c=l.toString()}return c}f.exports=a}),279:(function(f){function a(){}a.prototype={on:function(t,c,s){var l=this.e||(this.e={});return(l[t]||(l[t]=[])).push({fn:c,ctx:s}),this},once:function(t,c,s){var l=this;function g(){l.off(t,g),c.apply(s,arguments)}return g._=c,this.on(t,g,s)},emit:function(t){var c=[].slice.call(arguments,1),s=((this.e||(this.e={}))[t]||[]).slice(),l=0,g=s.length;for(l;l<g;l++)s[l].fn.apply(s[l].ctx,c);return this},off:function(t,c){var s=this.e||(this.e={}),l=s[t],g=[];if(l&&c)for(var h=0,m=l.length;h<m;h++)l[h].fn!==c&&l[h].fn._!==c&&g.push(l[h]);return g.length?s[t]=g:delete s[t],this}},f.exports=a,f.exports.TinyEmitter=a})},E={};function b(f){if(E[f])return E[f].exports;var a=E[f]={exports:{}};return C[f](a,a.exports,b),a.exports}return(function(){b.n=function(f){var a=f&&f.__esModule?function(){return f.default}:function(){return f};return b.d(a,{a}),a}})(),(function(){b.d=function(f,a){for(var t in a)b.o(a,t)&&!b.o(f,t)&&Object.defineProperty(f,t,{enumerable:!0,get:a[t]})}})(),(function(){b.o=function(f,a){return Object.prototype.hasOwnProperty.call(f,a)}})(),b(686)})().default})})(k)),k.exports}var tt=Z();const et=Q(tt),R="Copy to clipboard",nt="Edit on StackBlitz";function D(y,T){document.querySelectorAll(y).forEach(C=>{bootstrap.Tooltip.getOrCreateInstance(C,{title:T})})}D(".btn-clipboard",R);D(".btn-edit",nt);const F=new et(".btn-clipboard",{target:y=>y.closest(".bd-code-snippet")?.querySelector(".highlight"),text:y=>y.closest(".bd-code-snippet")?.querySelector(".highlight").textContent?.trim()});F.on("success",y=>{const T=y.trigger.querySelector(".bi")?.firstElementChild,C=bootstrap.Tooltip.getInstance(y.trigger),E="http://www.w3.org/1999/xlink",b=T?.getAttributeNS(E,"href");b!=="#check2"&&(C?.setContent({".tooltip-inner":"Copied!"}),y.trigger.addEventListener("hidden.bs.tooltip",()=>{C?.setContent({".tooltip-inner":R})},{once:!0}),y.clearSelection(),b&&T?.setAttributeNS(E,"href",b.replace("clipboard","check2")),setTimeout(()=>{b&&T?.setAttributeNS(E,"href",b)},2e3))});F.on("error",y=>{const C=`Press ${/mac/i.test(navigator.userAgent)?"â":"Ctrl-"}C to copy`,E=bootstrap.Tooltip.getInstance(y.trigger);E?.setContent({".tooltip-inner":C}),y.trigger.addEventListener("hidden.bs.tooltip",()=>{E?.setContent({".tooltip-inner":R})},{once:!0})});
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.