2022-12-24 18:43:04 +02:00
|
|
|
/*!
|
|
|
|
* clipboard.js v2.0.11
|
|
|
|
* https://clipboardjs.com/
|
|
|
|
*
|
|
|
|
* Licensed MIT © Zeno Rocha
|
2024-02-20 17:22:07 +02:00
|
|
|
*/!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return n={686:function(e,t,n){"use strict";n.d(t,{default:function(){return p}});var s,c,d,p,t=n(279),g=n.n(t),t=n(370),b=n.n(t),t=n(817),a=n.n(t);function r(e){try{return document.execCommand(e)}catch{return}}c=function(e){return e=a()(e),r("cut"),e};function f(e,t){var n,s,e=(s=e,n="rtl"===document.documentElement.getAttribute("dir"),(e=document.createElement("textarea")).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",n=window.pageYOffset||document.documentElement.scrollTop,e.style.top="".concat(n,"px"),e.setAttribute("readonly",""),e.value=s,e);return t.container.appendChild(e),t=a()(e),r("copy"),e.remove(),t}s=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},t="";return"string"==typeof e?t=f(e,n):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(e?.type)?t=f(e.value,n):(t=a()(e),r("copy")),t};function u(e){return(u="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})(e)}d=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,o=t.container,e=t.target,t=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==e){if(!e||"object"!==u(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}return t?s(t,{container:o}):e?"cut"===n?c(e):s(e,{container:o}):void 0};function o(e){return(o="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})(e)}function h(e,t){for(var n,s=0;s<t.length;s++)n=t[s],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var n,s=l(e);return n=t?(n=l(this).constructor,Reflect.construct(s,arguments,n)):s.apply(this,arguments),s=this,!(n=n)||"object"!==o(n)&&"function"!=typeof n?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(s):n}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}p=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(e,g());var t,n,a,r=v(e);function e(t,n){var s;return function(t){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),(s=r.call(this)).resolveOptions(n),s.listenClick(t),s}return t=e,n=[{key:"copy",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return s(e,t)}},{key:"cut",value:function(e)
|
|
|
|
* JavaScript for Bootstrap's docs (https://getbootstrap.com/)
|
|
|
|
* Copyright 2011-2024 The Bootstrap Authors
|
|
|
|
* Licensed under the Creative Commons Attribution 3.0 Unported License.
|
|
|
|
* For details, see https://creativecommons.org/licenses/by/3.0/.
|
|
|
|
*/(()=>{"use strict";const e=document.querySelector(".bd-sidebar"),t=document.querySelector(".bd-links-nav .active");if(e&&t){const s=e.clientHeight,i=t.offsetTop,o=t.clientHeight,n=i,a=n-s+o;(e.scrollTop>n||e.scrollTop<a)&&(e.scrollTop=n-s/2+o/2)}})();/*!
|
|
|
|
* JavaScript for Bootstrap's docs (https://getbootstrap.com/)
|
|
|
|
* Copyright 2011-2024 The Bootstrap Authors
|
|
|
|
* Licensed under the Creative Commons Attribution 3.0 Unported License.
|
|
|
|
* For details, see https://creativecommons.org/licenses/by/3.0/.
|
|
|
|
*/(()=>{"use strict";const e="Copy to clipboard",s="Edit on StackBlitz",o=['<div class="bd-code-snippet">',' <div class="bd-clipboard">',' <button type="button" class="btn-clipboard">',' <svg class="bi" role="img" aria-label="Copy"><use xlink:href="#clipboard"/></svg>'," </button>"," </div>","</div>"].join("");document.querySelectorAll(".highlight").forEach(e=>{e.closest(".bd-example-snippet")||(e.insertAdjacentHTML("beforebegin",o),e.previousElementSibling.append(e))});function t(e,t){document.querySelectorAll(e).forEach(e=>{bootstrap.Tooltip.getOrCreateInstance(e,{title:t})})}t(".btn-clipboard",e),t(".btn-edit",s);const n=new ClipboardJS(".btn-clipboard",{target:e=>e.closest(".bd-code-snippet").querySelector(".highlight"),text:e=>e.closest(".bd-code-snippet").querySelector(".highlight").textContent.trimEnd()});n.on("success",t=>{const n=t.trigger.querySelector(".bi").firstElementChild,o=bootstrap.Tooltip.getInstance(t.trigger),s="http://www.w3.org/1999/xlink",i=n.getAttributeNS(s,"href"),a=t.trigger.title;o.setContent({".tooltip-inner":"Copied!"}),t.trigger.addEventListener("hidden.bs.tooltip",()=>{o.setContent({".tooltip-inner":e})},{once:!0}),t.clearSelection(),n.setAttributeNS(s,"href",i.replace("clipboard","check2")),setTimeout(()=>{n.setAttributeNS(s,"href",i),t.trigger.title=a},2e3)}),n.on("error",t=>{const s=/mac/i.test(navigator.userAgent)?"⌘":"Ctrl-",o=`Press ${s}C to copy`,n=bootstrap.Tooltip.getInstance(t.trigger);n.setContent({".tooltip-inner":o}),t.trigger.addEventListener("hidden.bs.tooltip",()=>{n.setContent({".tooltip-inner":e})},{once:!0})})})(),(()=>{"use strict";const e=document.getElementById("docsearch");if(!window.docsearch||!e)return;const t=e.getAttribute("data-bd-docs-version");window.docsearch({apiKey:"3151f502c7b9e9dafd5e6372b691a24e",indexName:"bootstrap",appId:"AK7KMZKZHQ",container:e,searchParameters:{facetFilters:[`version:${t}`]},transformItems(e){return e.map(e=>{const t="https://getbootstrap.com/";return e.url=window.location.origin.startsWith(t)?e.url:e.url.replace(t,"/"),e.anchor==="content"&&(e.url=e.url.replace(/#content$/,""),e.anchor=null),e})}})})();/*!
|
|
|
|
* JavaScript for Bootstrap's docs (https://getbootstrap.com/)
|
|
|
|
* Copyright 2011-2024 The Bootstrap Authors
|
|
|
|
* Licensed under the Creative Commons Attribution 3.0 Unported License.
|
|
|
|
* For details, see https://creativecommons.org/licenses/by/3.0/.
|
|
|
|
*/(()=>{"use strict";document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach(e=>{new bootstrap.Tooltip(e)}),document.querySelectorAll('[data-bs-toggle="popover"]').forEach(e=>{new bootstrap.Popover(e)});const e=document.getElementById("toastPlacement");e&&document.getElementById("selectToastPlacement").addEventListener("change",function(){e.dataset.originalClass||(e.dataset.originalClass=e.className),e.className=`${e.dataset.originalClass} ${this.value}`}),document.querySelectorAll(".bd-example .toast").forEach(e=>{const t=new bootstrap.Toast(e,{autohide:!1});t.show()});const n=document.getElementById("liveToastBtn"),i=document.getElementById("liveToast");if(n){const e=bootstrap.Toast.getOrCreateInstance(i);n.addEventListener("click",()=>{e.show()})}const a=document.getElementById("liveAlertPlaceholder"),r=(e,t)=>{const n=document.createElement("div");n.innerHTML=[`<div class="alert alert-${t} alert-dismissible" role="alert">`,` <div>${e}</div>`,' <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>',"</div>"].join(""),a.append(n)},s=document.getElementById("liveAlertBtn");s&&s.addEventListener("click",()=>{r("Nice, you triggered this alert message!","success")}),document.querySelectorAll('.carousel:not([data-bs-ride="carousel"])').forEach(e=>{bootstrap.Carousel.getOrCreateInstance(e)}),document.querySelectorAll('.bd-example-indeterminate [type="checkbox"]').forEach(e=>{e.id.includes("Indeterminate")&&(e.indeterminate=!0)}),document.querySelectorAll('.bd-content [href="#"]').forEach(e=>{e.addEventListener("click",e=>{e.preventDefault()})});const t=document.getElementById("exampleModal");t&&t.addEventListener("show.bs.modal",e=>{const s=e.relatedTarget,n=s.getAttribute("data-bs-whatever"),o=t.querySelector(".modal-title"),i=t.querySelector(".modal-body input");o.textContent=`New message to ${n}`,i.value=n});const o=document.querySelectorAll(".bd-example-offcanvas .offcanvas");o&&o.forEach(e=>{e.addEventListener("show.bs.offcanvas",e=>{e.preventDefault()},!1)})})()
|