diff --git a/docs/api/index.html b/docs/api/index.html index b10eec9..3308e7c 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -5,7 +5,7 @@ use-bootstrap-tag | Tag input for Bootstrap 5 - + diff --git a/docs/assets/index-65e135c7.js b/docs/assets/index-65e135c7.js deleted file mode 100644 index df792ee..0000000 --- a/docs/assets/index-65e135c7.js +++ /dev/null @@ -1,258 +0,0 @@ -var us=Object.defineProperty;var ps=(t,e,n)=>e in t?us(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ka=(t,e,n)=>(ps(t,typeof e!="symbol"?e+"":e,n),n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bs={exports:{}},$a={exports:{}},Ca={exports:{}};/*! - * Bootstrap data.js v5.3.1 (https://getbootstrap.com/) - * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Fn;function gs(){return Fn||(Fn=1,function(t,e){(function(n,r){t.exports=r()})(re,function(){const n=new Map;return{set(o,l,d){n.has(o)||n.set(o,new Map);const i=n.get(o);if(!i.has(l)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(l,d)},get(o,l){return n.has(o)&&n.get(o).get(l)||null},remove(o,l){if(!n.has(o))return;const d=n.get(o);d.delete(l),d.size===0&&n.delete(o)}}})}(Ca)),Ca.exports}var Ta={exports:{}},sa={exports:{}};/*! - * Bootstrap index.js v5.3.1 (https://getbootstrap.com/) - * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var In;function ht(){return In||(In=1,function(t,e){(function(n,r){r(e)})(re,function(n){const l="transitionend",d=b=>(b&&window.CSS&&window.CSS.escape&&(b=b.replace(/#([^\s"#']+)/g,(k,A)=>`#${CSS.escape(A)}`)),b),i=b=>b==null?`${b}`:Object.prototype.toString.call(b).match(/\s([a-z]+)/i)[1].toLowerCase(),m=b=>{do b+=Math.floor(Math.random()*1e6);while(document.getElementById(b));return b},f=b=>{if(!b)return 0;let{transitionDuration:k,transitionDelay:A}=window.getComputedStyle(b);const D=Number.parseFloat(k),P=Number.parseFloat(A);return!D&&!P?0:(k=k.split(",")[0],A=A.split(",")[0],(Number.parseFloat(k)+Number.parseFloat(A))*1e3)},h=b=>{b.dispatchEvent(new Event(l))},x=b=>!b||typeof b!="object"?!1:(typeof b.jquery<"u"&&(b=b[0]),typeof b.nodeType<"u"),T=b=>x(b)?b.jquery?b[0]:b:typeof b=="string"&&b.length>0?document.querySelector(d(b)):null,N=b=>{if(!x(b)||b.getClientRects().length===0)return!1;const k=getComputedStyle(b).getPropertyValue("visibility")==="visible",A=b.closest("details:not([open])");if(!A)return k;if(A!==b){const D=b.closest("summary");if(D&&D.parentNode!==A||D===null)return!1}return k},B=b=>!b||b.nodeType!==Node.ELEMENT_NODE||b.classList.contains("disabled")?!0:typeof b.disabled<"u"?b.disabled:b.hasAttribute("disabled")&&b.getAttribute("disabled")!=="false",F=b=>{if(!document.documentElement.attachShadow)return null;if(typeof b.getRootNode=="function"){const k=b.getRootNode();return k instanceof ShadowRoot?k:null}return b instanceof ShadowRoot?b:b.parentNode?F(b.parentNode):null},O=()=>{},I=b=>{b.offsetHeight},g=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,p=[],v=b=>{document.readyState==="loading"?(p.length||document.addEventListener("DOMContentLoaded",()=>{for(const k of p)k()}),p.push(b)):b()},_=()=>document.documentElement.dir==="rtl",u=b=>{v(()=>{const k=g();if(k){const A=b.NAME,D=k.fn[A];k.fn[A]=b.jQueryInterface,k.fn[A].Constructor=b,k.fn[A].noConflict=()=>(k.fn[A]=D,b.jQueryInterface)}})},y=(b,k=[],A=b)=>typeof b=="function"?b(...k):A,$=(b,k,A=!0)=>{if(!A){y(b);return}const D=5,P=f(k)+D;let M=!1;const H=({target:U})=>{U===k&&(M=!0,k.removeEventListener(l,H),y(b))};k.addEventListener(l,H),setTimeout(()=>{M||h(k)},P)},E=(b,k,A,D)=>{const P=b.length;let M=b.indexOf(k);return M===-1?!A&&D?b[P-1]:b[0]:(M+=A?1:-1,D&&(M=(M+P)%P),b[Math.max(0,Math.min(M,P-1))])};n.defineJQueryPlugin=u,n.execute=y,n.executeAfterTransition=$,n.findShadowRoot=F,n.getElement=T,n.getNextActiveElement=E,n.getTransitionDurationFromElement=f,n.getUID=m,n.getjQuery=g,n.isDisabled=B,n.isElement=x,n.isRTL=_,n.isVisible=N,n.noop=O,n.onDOMContentLoaded=v,n.parseSelector=d,n.reflow=I,n.toType=i,n.triggerTransitionEnd=h,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})}(sa,sa.exports)),sa.exports}/*! - * Bootstrap event-handler.js v5.3.1 (https://getbootstrap.com/) - * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var On;function Zn(){return On||(On=1,function(t,e){(function(n,r){t.exports=r(ht())})(re,function(n){const r=/[^.]*(?=\..*)\.|.*/,o=/\..*/,l=/::\d+$/,d={};let i=1;const m={mouseenter:"mouseover",mouseleave:"mouseout"},f=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function h(u,y){return y&&`${y}::${i++}`||u.uidEvent||i++}function x(u){const y=h(u);return u.uidEvent=y,d[y]=d[y]||{},d[y]}function T(u,y){return function $(E){return _(E,{delegateTarget:u}),$.oneOff&&v.off(u,E.type,y),y.apply(u,[E])}}function N(u,y,$){return function E(b){const k=u.querySelectorAll(y);for(let{target:A}=b;A&&A!==this;A=A.parentNode)for(const D of k)if(D===A)return _(b,{delegateTarget:A}),E.oneOff&&v.off(u,b.type,y,$),$.apply(A,[b])}}function B(u,y,$=null){return Object.values(u).find(E=>E.callable===y&&E.delegationSelector===$)}function F(u,y,$){const E=typeof y=="string",b=E?$:y||$;let k=p(u);return f.has(k)||(k=u),[E,b,k]}function O(u,y,$,E,b){if(typeof y!="string"||!u)return;let[k,A,D]=F(y,$,E);y in m&&(A=(G=>function(w){if(!w.relatedTarget||w.relatedTarget!==w.delegateTarget&&!w.delegateTarget.contains(w.relatedTarget))return G.call(this,w)})(A));const P=x(u),M=P[D]||(P[D]={}),H=B(M,A,k?$:null);if(H){H.oneOff=H.oneOff&&b;return}const U=h(A,y.replace(r,"")),V=k?N(u,$,A):T(u,A);V.delegationSelector=k?$:null,V.callable=A,V.oneOff=b,V.uidEvent=U,M[U]=V,u.addEventListener(D,V,k)}function I(u,y,$,E,b){const k=B(y[$],E,b);k&&(u.removeEventListener($,k,!!b),delete y[$][k.uidEvent])}function g(u,y,$,E){const b=y[$]||{};for(const[k,A]of Object.entries(b))k.includes(E)&&I(u,y,$,A.callable,A.delegationSelector)}function p(u){return u=u.replace(o,""),m[u]||u}const v={on(u,y,$,E){O(u,y,$,E,!1)},one(u,y,$,E){O(u,y,$,E,!0)},off(u,y,$,E){if(typeof y!="string"||!u)return;const[b,k,A]=F(y,$,E),D=A!==y,P=x(u),M=P[A]||{},H=y.startsWith(".");if(typeof k<"u"){if(!Object.keys(M).length)return;I(u,P,A,k,b?$:null);return}if(H)for(const U of Object.keys(P))g(u,P,U,y.slice(1));for(const[U,V]of Object.entries(M)){const z=U.replace(l,"");(!D||y.includes(z))&&I(u,P,A,V.callable,V.delegationSelector)}},trigger(u,y,$){if(typeof y!="string"||!u)return null;const E=n.getjQuery(),b=p(y),k=y!==b;let A=null,D=!0,P=!0,M=!1;k&&E&&(A=E.Event(y,$),E(u).trigger(A),D=!A.isPropagationStopped(),P=!A.isImmediatePropagationStopped(),M=A.isDefaultPrevented());const H=_(new Event(y,{bubbles:D,cancelable:!0}),$);return M&&H.preventDefault(),P&&u.dispatchEvent(H),H.defaultPrevented&&A&&A.preventDefault(),H}};function _(u,y={}){for(const[$,E]of Object.entries(y))try{u[$]=E}catch{Object.defineProperty(u,$,{configurable:!0,get(){return E}})}return u}return v})}(Ta)),Ta.exports}var La={exports:{}},Sa={exports:{}};/*! - * Bootstrap manipulator.js v5.3.1 (https://getbootstrap.com/) - * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Dn;function hs(){return Dn||(Dn=1,function(t,e){(function(n,r){t.exports=r()})(re,function(){function n(l){if(l==="true")return!0;if(l==="false")return!1;if(l===Number(l).toString())return Number(l);if(l===""||l==="null")return null;if(typeof l!="string")return l;try{return JSON.parse(decodeURIComponent(l))}catch{return l}}function r(l){return l.replace(/[A-Z]/g,d=>`-${d.toLowerCase()}`)}return{setDataAttribute(l,d,i){l.setAttribute(`data-bs-${r(d)}`,i)},removeDataAttribute(l,d){l.removeAttribute(`data-bs-${r(d)}`)},getDataAttributes(l){if(!l)return{};const d={},i=Object.keys(l.dataset).filter(m=>m.startsWith("bs")&&!m.startsWith("bsConfig"));for(const m of i){let f=m.replace(/^bs/,"");f=f.charAt(0).toLowerCase()+f.slice(1,f.length),d[f]=n(l.dataset[m])}return d},getDataAttribute(l,d){return n(l.getAttribute(`data-bs-${r(d)}`))}}})}(Sa)),Sa.exports}/*! - * Bootstrap config.js v5.3.1 (https://getbootstrap.com/) - * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Mn;function ms(){return Mn||(Mn=1,function(t,e){(function(n,r){t.exports=r(hs(),ht())})(re,function(n,r){class o{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(d){return d=this._mergeConfigObj(d),d=this._configAfterMerge(d),this._typeCheckConfig(d),d}_configAfterMerge(d){return d}_mergeConfigObj(d,i){const m=r.isElement(i)?n.getDataAttribute(i,"config"):{};return{...this.constructor.Default,...typeof m=="object"?m:{},...r.isElement(i)?n.getDataAttributes(i):{},...typeof d=="object"?d:{}}}_typeCheckConfig(d,i=this.constructor.DefaultType){for(const[m,f]of Object.entries(i)){const h=d[m],x=r.isElement(h)?"element":r.toType(h);if(!new RegExp(f).test(x))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${m}" provided type "${x}" but expected type "${f}".`)}}}return o})}(La)),La.exports}/*! - * Bootstrap base-component.js v5.3.1 (https://getbootstrap.com/) - * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Nn;function vs(){return Nn||(Nn=1,function(t,e){(function(n,r){t.exports=r(gs(),Zn(),ms(),ht())})(re,function(n,r,o,l){const d="5.3.1";class i extends o{constructor(f,h){super(),f=l.getElement(f),f&&(this._element=f,this._config=this._getConfig(h),n.set(this._element,this.constructor.DATA_KEY,this))}dispose(){n.remove(this._element,this.constructor.DATA_KEY),r.off(this._element,this.constructor.EVENT_KEY);for(const f of Object.getOwnPropertyNames(this))this[f]=null}_queueCallback(f,h,x=!0){l.executeAfterTransition(f,h,x)}_getConfig(f){return f=this._mergeConfigObj(f,this._element),f=this._configAfterMerge(f),this._typeCheckConfig(f),f}static getInstance(f){return n.get(l.getElement(f),this.DATA_KEY)}static getOrCreateInstance(f,h={}){return this.getInstance(f)||new this(f,typeof h=="object"?h:null)}static get VERSION(){return d}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(f){return`${f}${this.EVENT_KEY}`}}return i})}($a)),$a.exports}var Fa={exports:{}};/*! - * Bootstrap selector-engine.js v5.3.1 (https://getbootstrap.com/) - * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Vn;function ys(){return Vn||(Vn=1,function(t,e){(function(n,r){t.exports=r(ht())})(re,function(n){const r=l=>{let d=l.getAttribute("data-bs-target");if(!d||d==="#"){let i=l.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),d=i&&i!=="#"?i.trim():null}return n.parseSelector(d)},o={find(l,d=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(d,l))},findOne(l,d=document.documentElement){return Element.prototype.querySelector.call(d,l)},children(l,d){return[].concat(...l.children).filter(i=>i.matches(d))},parents(l,d){const i=[];let m=l.parentNode.closest(d);for(;m;)i.push(m),m=m.parentNode.closest(d);return i},prev(l,d){let i=l.previousElementSibling;for(;i;){if(i.matches(d))return[i];i=i.previousElementSibling}return[]},next(l,d){let i=l.nextElementSibling;for(;i;){if(i.matches(d))return[i];i=i.nextElementSibling}return[]},focusableChildren(l){const d=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(i=>`${i}:not([tabindex^="-"])`).join(",");return this.find(d,l).filter(i=>!n.isDisabled(i)&&n.isVisible(i))},getSelectorFromElement(l){const d=r(l);return d&&o.findOne(d)?d:null},getElementFromSelector(l){const d=r(l);return d?o.findOne(d):null},getMultipleElementsFromSelector(l){const d=r(l);return d?o.find(d):[]}};return o})}(Fa)),Fa.exports}/*! - * Bootstrap tab.js v5.3.1 (https://getbootstrap.com/) - * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */(function(t,e){(function(n,r){t.exports=r(vs(),Zn(),ys(),ht())})(re,function(n,r,o,l){const d="tab",m=".bs.tab",f=`hide${m}`,h=`hidden${m}`,x=`show${m}`,T=`shown${m}`,N=`click${m}`,B=`keydown${m}`,F=`load${m}`,O="ArrowLeft",I="ArrowRight",g="ArrowUp",p="ArrowDown",v="Home",_="End",u="active",y="fade",$="show",E="dropdown",b=".dropdown-toggle",k=".dropdown-menu",A=":not(.dropdown-toggle)",D='.list-group, .nav, [role="tablist"]',P=".nav-item, .list-group-item",M=`.nav-link${A}, .list-group-item${A}, [role="tab"]${A}`,H='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',U=`${M}, ${H}`,V=`.${u}[data-bs-toggle="tab"], .${u}[data-bs-toggle="pill"], .${u}[data-bs-toggle="list"]`;class z extends n{constructor(w){super(w),this._parent=this._element.closest(D),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),r.on(this._element,B,L=>this._keydown(L)))}static get NAME(){return d}show(){const w=this._element;if(this._elemIsActive(w))return;const L=this._getActiveElem(),R=L?r.trigger(L,f,{relatedTarget:w}):null;r.trigger(w,x,{relatedTarget:L}).defaultPrevented||R&&R.defaultPrevented||(this._deactivate(L,w),this._activate(w,L))}_activate(w,L){if(!w)return;w.classList.add(u),this._activate(o.getElementFromSelector(w));const R=()=>{if(w.getAttribute("role")!=="tab"){w.classList.add($);return}w.removeAttribute("tabindex"),w.setAttribute("aria-selected",!0),this._toggleDropDown(w,!0),r.trigger(w,T,{relatedTarget:L})};this._queueCallback(R,w,w.classList.contains(y))}_deactivate(w,L){if(!w)return;w.classList.remove(u),w.blur(),this._deactivate(o.getElementFromSelector(w));const R=()=>{if(w.getAttribute("role")!=="tab"){w.classList.remove($);return}w.setAttribute("aria-selected",!1),w.setAttribute("tabindex","-1"),this._toggleDropDown(w,!1),r.trigger(w,h,{relatedTarget:L})};this._queueCallback(R,w,w.classList.contains(y))}_keydown(w){if(![O,I,g,p,v,_].includes(w.key))return;w.stopPropagation(),w.preventDefault();const L=this._getChildren().filter(S=>!l.isDisabled(S));let R;if([v,_].includes(w.key))R=L[w.key===v?0:L.length-1];else{const S=[I,p].includes(w.key);R=l.getNextActiveElement(L,w.target,S,!0)}R&&(R.focus({preventScroll:!0}),z.getOrCreateInstance(R).show())}_getChildren(){return o.find(U,this._parent)}_getActiveElem(){return this._getChildren().find(w=>this._elemIsActive(w))||null}_setInitialAttributes(w,L){this._setAttributeIfNotExists(w,"role","tablist");for(const R of L)this._setInitialAttributesOnChild(R)}_setInitialAttributesOnChild(w){w=this._getInnerElement(w);const L=this._elemIsActive(w),R=this._getOuterElement(w);w.setAttribute("aria-selected",L),R!==w&&this._setAttributeIfNotExists(R,"role","presentation"),L||w.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(w,"role","tab"),this._setInitialAttributesOnTargetPanel(w)}_setInitialAttributesOnTargetPanel(w){const L=o.getElementFromSelector(w);L&&(this._setAttributeIfNotExists(L,"role","tabpanel"),w.id&&this._setAttributeIfNotExists(L,"aria-labelledby",`${w.id}`))}_toggleDropDown(w,L){const R=this._getOuterElement(w);if(!R.classList.contains(E))return;const S=(q,K)=>{const W=o.findOne(q,R);W&&W.classList.toggle(K,L)};S(b,u),S(k,$),R.setAttribute("aria-expanded",L)}_setAttributeIfNotExists(w,L,R){w.hasAttribute(L)||w.setAttribute(L,R)}_elemIsActive(w){return w.classList.contains(u)}_getInnerElement(w){return w.matches(U)?w:o.findOne(U,w)}_getOuterElement(w){return w.closest(P)||w}static jQueryInterface(w){return this.each(function(){const L=z.getOrCreateInstance(this);if(typeof w=="string"){if(L[w]===void 0||w.startsWith("_")||w==="constructor")throw new TypeError(`No method named "${w}"`);L[w]()}})}}return r.on(document,N,H,function(G){["A","AREA"].includes(this.tagName)&&G.preventDefault(),!l.isDisabled(this)&&z.getOrCreateInstance(this).show()}),r.on(window,F,()=>{for(const G of o.find(V))z.getOrCreateInstance(G)}),l.defineJQueryPlugin(z),z})})(bs);var Xn={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** - * Prism: Lightweight, robust, elegant syntax highlighting - * - * @license MIT - * @author Lea Verou - * @namespace - * @public - */var n=function(r){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,d={},i={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function g(p){return p instanceof m?new m(p.type,g(p.content),p.alias):Array.isArray(p)?p.map(g):p.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(_){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(g){var p=document.getElementsByTagName("script");for(var v in p)if(p[v].src==g)return p[v]}return null}},isActive:function(g,p,v){for(var _="no-"+p;g;){var u=g.classList;if(u.contains(p))return!0;if(u.contains(_))return!1;g=g.parentElement}return!!v}},languages:{plain:d,plaintext:d,text:d,txt:d,extend:function(g,p){var v=i.util.clone(i.languages[g]);for(var _ in p)v[_]=p[_];return v},insertBefore:function(g,p,v,_){_=_||i.languages;var u=_[g],y={};for(var $ in u)if(u.hasOwnProperty($)){if($==p)for(var E in v)v.hasOwnProperty(E)&&(y[E]=v[E]);v.hasOwnProperty($)||(y[$]=u[$])}var b=_[g];return _[g]=y,i.languages.DFS(i.languages,function(k,A){A===b&&k!=g&&(this[k]=y)}),y},DFS:function g(p,v,_,u){u=u||{};var y=i.util.objId;for(var $ in p)if(p.hasOwnProperty($)){v.call(p,$,p[$],_||$);var E=p[$],b=i.util.type(E);b==="Object"&&!u[y(E)]?(u[y(E)]=!0,g(E,v,null,u)):b==="Array"&&!u[y(E)]&&(u[y(E)]=!0,g(E,v,$,u))}}},plugins:{},highlightAll:function(g,p){i.highlightAllUnder(document,g,p)},highlightAllUnder:function(g,p,v){var _={callback:v,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),i.hooks.run("before-all-elements-highlight",_);for(var u=0,y;y=_.elements[u++];)i.highlightElement(y,p===!0,_.callback)},highlightElement:function(g,p,v){var _=i.util.getLanguage(g),u=i.languages[_];i.util.setLanguage(g,_);var y=g.parentElement;y&&y.nodeName.toLowerCase()==="pre"&&i.util.setLanguage(y,_);var $=g.textContent,E={element:g,language:_,grammar:u,code:$};function b(A){E.highlightedCode=A,i.hooks.run("before-insert",E),E.element.innerHTML=E.highlightedCode,i.hooks.run("after-highlight",E),i.hooks.run("complete",E),v&&v.call(E.element)}if(i.hooks.run("before-sanity-check",E),y=E.element.parentElement,y&&y.nodeName.toLowerCase()==="pre"&&!y.hasAttribute("tabindex")&&y.setAttribute("tabindex","0"),!E.code){i.hooks.run("complete",E),v&&v.call(E.element);return}if(i.hooks.run("before-highlight",E),!E.grammar){b(i.util.encode(E.code));return}if(p&&r.Worker){var k=new Worker(i.filename);k.onmessage=function(A){b(A.data)},k.postMessage(JSON.stringify({language:E.language,code:E.code,immediateClose:!0}))}else b(i.highlight(E.code,E.grammar,E.language))},highlight:function(g,p,v){var _={code:g,grammar:p,language:v};if(i.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=i.tokenize(_.code,_.grammar),i.hooks.run("after-tokenize",_),m.stringify(i.util.encode(_.tokens),_.language)},tokenize:function(g,p){var v=p.rest;if(v){for(var _ in v)p[_]=v[_];delete p.rest}var u=new x;return T(u,u.head,g),h(g,u,p,u.head,0),B(u)},hooks:{all:{},add:function(g,p){var v=i.hooks.all;v[g]=v[g]||[],v[g].push(p)},run:function(g,p){var v=i.hooks.all[g];if(!(!v||!v.length))for(var _=0,u;u=v[_++];)u(p)}},Token:m};r.Prism=i;function m(g,p,v,_){this.type=g,this.content=p,this.alias=v,this.length=(_||"").length|0}m.stringify=function g(p,v){if(typeof p=="string")return p;if(Array.isArray(p)){var _="";return p.forEach(function(b){_+=g(b,v)}),_}var u={type:p.type,content:g(p.content,v),tag:"span",classes:["token",p.type],attributes:{},language:v},y=p.alias;y&&(Array.isArray(y)?Array.prototype.push.apply(u.classes,y):u.classes.push(y)),i.hooks.run("wrap",u);var $="";for(var E in u.attributes)$+=" "+E+'="'+(u.attributes[E]||"").replace(/"/g,""")+'"';return"<"+u.tag+' class="'+u.classes.join(" ")+'"'+$+">"+u.content+""};function f(g,p,v,_){g.lastIndex=p;var u=g.exec(v);if(u&&_&&u[1]){var y=u[1].length;u.index+=y,u[0]=u[0].slice(y)}return u}function h(g,p,v,_,u,y){for(var $ in v)if(!(!v.hasOwnProperty($)||!v[$])){var E=v[$];E=Array.isArray(E)?E:[E];for(var b=0;b=y.reach);z+=V.value.length,V=V.next){var G=V.value;if(p.length>g.length)return;if(!(G instanceof m)){var w=1,L;if(P){if(L=f(U,z,g,D),!L||L.index>=g.length)break;var K=L.index,R=L.index+L[0].length,S=z;for(S+=V.value.length;K>=S;)V=V.next,S+=V.value.length;if(S-=V.value.length,z=S,V.value instanceof m)continue;for(var q=V;q!==p.tail&&(Sy.reach&&(y.reach=le);var j=V.prev;Z&&(j=T(p,j,Z),z+=Z.length),N(p,j,w);var Q=new m($,A?i.tokenize(W,A):W,M,W);if(V=T(p,j,Q),ee&&T(p,V,ee),w>1){var se={cause:$+","+b,reach:le};h(g,p,v,V.prev,z,se),y&&se.reach>y.reach&&(y.reach=se.reach)}}}}}}function x(){var g={value:null,prev:null,next:null},p={value:null,prev:g,next:null};g.next=p,this.head=g,this.tail=p,this.length=0}function T(g,p,v){var _=p.next,u={value:v,prev:p,next:_};return p.next=u,_.prev=u,g.length++,u}function N(g,p,v){for(var _=p.next,u=0;u/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(o,l){var d={};d["language-"+l]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[l]},d.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:d}};i["language-"+l]={pattern:/[\s\S]+/,inside:n.languages[l]};var m={};m[o]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,o){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:n.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+o.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var l=r.languages.markup;l&&(l.tag.addInlined("style","css"),l.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",o=function(F,O){return"✖ Error "+F+" while fetching file: "+O},l="✖ Error: File does not exist or is empty",d={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},i="data-src-status",m="loading",f="loaded",h="failed",x="pre[data-src]:not(["+i+'="'+f+'"]):not(['+i+'="'+m+'"])';function T(F,O,I){var g=new XMLHttpRequest;g.open("GET",F,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?O(g.responseText):g.status>=400?I(o(g.status,g.statusText)):I(l))},g.send(null)}function N(F){var O=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(F||"");if(O){var I=Number(O[1]),g=O[2],p=O[3];return g?p?[I,Number(p)]:[I,void 0]:[I,I]}}n.hooks.add("before-highlightall",function(F){F.selector+=", "+x}),n.hooks.add("before-sanity-check",function(F){var O=F.element;if(O.matches(x)){F.code="",O.setAttribute(i,m);var I=O.appendChild(document.createElement("CODE"));I.textContent=r;var g=O.getAttribute("data-src"),p=F.language;if(p==="none"){var v=(/\.(\w+)$/.exec(g)||[,"none"])[1];p=d[v]||v}n.util.setLanguage(I,p),n.util.setLanguage(O,p);var _=n.plugins.autoloader;_&&_.loadLanguages(p),T(g,function(u){O.setAttribute(i,f);var y=N(O.getAttribute("data-range"));if(y){var $=u.split(/\r\n?|\n/g),E=y[0],b=y[1]==null?$.length:y[1];E<0&&(E+=$.length),E=Math.max(0,Math.min(E-1,$.length)),b<0&&(b+=$.length),b=Math.max(0,Math.min(b,$.length)),u=$.slice(E,b).join(` -`),O.hasAttribute("data-start")||O.setAttribute("data-start",String(E+1))}I.textContent=u,n.highlightElement(I)},function(u){O.setAttribute(i,h),I.textContent=u})}}),n.plugins.fileHighlight={highlight:function(O){for(var I=(O||document).querySelectorAll(x),g=0,p;p=I[g++];)n.highlightElement(p)}};var B=!1;n.fileHighlight=function(){B||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),B=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Xn);var xs=Xn.exports;const mt=fs(xs);function J(){}const ws=t=>t;function es(t){return t()}function Pn(){return Object.create(null)}function ie(t){t.forEach(es)}function Ba(t){return typeof t=="function"}function Le(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let ra;function _s(t,e){return t===e?!0:(ra||(ra=document.createElement("a")),ra.href=e,t===ra.href)}function Es(t){return Object.keys(t).length===0}const ts=typeof window<"u";let As=ts?()=>window.performance.now():()=>Date.now(),ja=ts?t=>requestAnimationFrame(t):J;const ct=new Set;function as(t){ct.forEach(e=>{e.c(t)||(ct.delete(e),e.f())}),ct.size!==0&&ja(as)}function ks(t){let e;return ct.size===0&&ja(as),{promise:new Promise(n=>{ct.add(e={c:t,f:n})}),abort(){ct.delete(e)}}}function s(t,e){t.appendChild(e)}function ns(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function $s(t){const e=c("style");return e.textContent="/* empty */",Cs(ns(t),e),e.sheet}function Cs(t,e){return s(t.head||t,e),e.sheet}function te(t,e,n){t.insertBefore(e,n||null)}function X(t){t.parentNode&&t.parentNode.removeChild(t)}function ss(t,e){for(let n=0;nt.removeEventListener(e,n,r)}function a(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Ts(t){return Array.from(t.childNodes)}function Ls(t,e){e=""+e,t.data!==e&&(t.data=e)}function Rn(t,e){t.value=e??""}function ia(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Y(t,e,n){t.classList.toggle(e,!!n)}function Ss(t,e,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}function qn(t,e){return new t(e)}const oa=new Map;let ca=0;function Fs(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function Is(t,e){const n={stylesheet:$s(e),rules:{}};return oa.set(t,n),n}function Os(t,e,n,r,o,l,d,i=0){const m=16.666/r;let f=`{ -`;for(let O=0;O<=1;O+=m){const I=e+(n-e)*l(O);f+=O*100+`%{${d(I,1-I)}} -`}const h=f+`100% {${d(n,1-n)}} -}`,x=`__svelte_${Fs(h)}_${i}`,T=ns(t),{stylesheet:N,rules:B}=oa.get(T)||Is(T,t);B[x]||(B[x]=!0,N.insertRule(`@keyframes ${x} ${h}`,N.cssRules.length));const F=t.style.animation||"";return t.style.animation=`${F?`${F}, `:""}${x} ${r}ms linear ${o}ms 1 both`,ca+=1,x}function Bn(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?l=>l.indexOf(e)<0:l=>l.indexOf("__svelte")===-1),o=n.length-r.length;o&&(t.style.animation=r.join(", "),ca-=o,ca||Ds())}function Ds(){ja(()=>{ca||(oa.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&X(e)}),oa.clear())})}let bt;function ft(t){bt=t}function Ms(){if(!bt)throw new Error("Function called outside component initialization");return bt}function vt(t){Ms().$$.on_mount.push(t)}const ot=[],da=[];let dt=[];const jn=[],rs=Promise.resolve();let Da=!1;function ls(){Da||(Da=!0,rs.then(is))}function Ns(){return ls(),rs}function gt(t){dt.push(t)}const Ia=new Set;let it=0;function is(){if(it!==0)return;const t=bt;do{try{for(;itt.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),dt=e}let pt;function Rs(){return pt||(pt=Promise.resolve(),pt.then(()=>{pt=null})),pt}function zn(t,e,n){t.dispatchEvent(Ss(`${e?"intro":"outro"}${n}`))}const la=new Set;let Te;function qs(){Te={r:0,c:[],p:Te}}function Bs(){Te.r||ie(Te.c),Te=Te.p}function ut(t,e){t&&t.i&&(la.delete(t),t.i(e))}function Hn(t,e,n,r){if(t&&t.o){if(la.has(t))return;la.add(t),Te.c.push(()=>{la.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}const js={duration:0};function zs(t,e,n){const r={direction:"in"};let o=e(t,n,r),l=!1,d,i,m=0;function f(){d&&Bn(t,d)}function h(){const{delay:T=0,duration:N=300,easing:B=ws,tick:F=J,css:O}=o||js;O&&(d=Os(t,0,1,N,T,B,O,m++)),F(0,1);const I=As()+T,g=I+N;i&&i.abort(),l=!0,gt(()=>zn(t,!0,"start")),i=ks(p=>{if(l){if(p>=g)return F(1,0),zn(t,!0,"end"),f(),l=!1;if(p>=I){const v=B((p-I)/N);F(v,1-v)}}return l})}let x=!1;return{start(){x||(x=!0,Bn(t),Ba(o)?(o=o(r),Rs().then(h)):h())},invalidate(){x=!1},end(){l&&(f(),l=!1)}}}function ua(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Un(t){t&&t.c()}function Ma(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),gt(()=>{const l=t.$$.on_mount.map(es).filter(Ba);t.$$.on_destroy?t.$$.on_destroy.push(...l):ie(l),t.$$.on_mount=[]}),o.forEach(gt)}function Na(t,e){const n=t.$$;n.fragment!==null&&(Ps(n.after_update),ie(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Hs(t,e){t.$$.dirty[0]===-1&&(ot.push(t),ls(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const B=N.length?N[0]:T;return f.ctx&&o(f.ctx[x],f.ctx[x]=B)&&(!f.skip_bound&&f.bound[x]&&f.bound[x](B),h&&Hs(t,x)),T}):[],f.update(),h=!0,ie(f.before_update),f.fragment=r?r(f.ctx):!1,e.target){if(e.hydrate){const x=Ts(e.target);f.fragment&&f.fragment.l(x),x.forEach(X)}else f.fragment&&f.fragment.c();e.intro&&ut(t.$$.fragment),Ma(t,e.target,e.anchor),is()}ft(m)}class Fe{constructor(){ka(this,"$$");ka(this,"$$set")}$destroy(){Na(this,1),this.$destroy=J}$on(e,n){if(!Ba(n))return J;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!Es(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Us="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Us);function Ks(t,e){if(t instanceof RegExp)return{keys:!1,pattern:t};var n,r,o,l,d=[],i="",m=t.split("/");for(m[0]||m.shift();o=m.shift();)n=o[0],n==="*"?(d.push("wild"),i+="/(.*)"):n===":"?(r=o.indexOf("?",1),l=o.indexOf(".",1),d.push(o.substring(1,~r?r:~l?l:o.length)),i+=~r&&!~l?"(?:/([^/]+?))?":"/([^/]+?)",~l&&(i+=(~r?"?":"")+"\\"+o.substring(l))):i+="/"+o;return{keys:d,pattern:new RegExp("^"+i+(e?"(?=$|/)":"/?$"),"i")}}function Ws(t,e){var n,r,o=[],l={},d=l.format=function(i){return i&&(i="/"+i.replace(/^\/|\/$/g,""),n.test(i)&&i.replace(n,"/"))};return t="/"+(t||"").replace(/^\/|\/$/g,""),n=t=="/"?/^\/+/:new RegExp("^\\"+t+"(?=\\/|$)\\/?","i"),l.route=function(i,m){i[0]=="/"&&!n.test(i)&&(i=t+i),history[(i===r||m?"replace":"push")+"State"](i,null,i)},l.on=function(i,m){return(i=Ks(i)).fn=m,o.push(i),l},l.run=function(i){var m=0,f={},h,x;if(i=d(i||location.pathname)){for(i=i.match(/[^\?#]*/)[0],r=i;mCustom separator - : Set a specific delimiter character between tag elements.
  • Enable/disable duplicates - : Toggle the allowance of duplicate tags.
  • Custom transformation - : Define personalized modifications to input tag entries.
  • Sizing - : Adjustable sizing to match user preferences or layouts.
  • Validation - : Reflects validation states visually to align with Bootstrap's form validation - feedback.
  • `,N=C(),B=c("hr"),F=C(),O=c("h4"),O.textContent="Repository",I=C(),g=c("a"),g.textContent=`${Va}`,p=C(),v=c("hr"),_=C(),u=c("h4"),u.textContent="License",y=C(),$=fa(Gs),E=C(),b=c("div"),b.innerHTML=` Next page - Install`,a(n,"class","fw-bold"),a(d,"class","d-flex flex-wrap gap-2"),a(h,"class","fw-bold"),a(T,"class","text-body-secondary"),a(O,"class","fw-bold"),a(g,"class","link-body-emphasis"),a(g,"href",Va),a(g,"target","_blank"),a(u,"class","fw-bold"),a(b,"class","d-flex justify-content-between gap-3")},m(D,P){te(D,e,P),s(e,n),s(e,r),s(e,o),s(e,l),s(e,d);for(let M=0;M - - - - - Example - - - - - - + @@ -65,10 +65,10 @@ // 8. Include use-bootstrap-tag @import "../node_modules/use-bootstrap-tag/scss/use-bootstrap-tag"; -// 9. Add additional custom code here

    By default, use-bootstrap-tag inherits its style from default bootstrap - style, so anything you change in bootstrap automatically changes - use-bootstrap-tag style as well. Read more about customize bootstrap styles - at https://getbootstrap.com/docs/5.3/customize/sass/.

    diff --git a/docs/demo/index.html b/docs/demo/index.html index 56f0d82..8566793 100644 --- a/docs/demo/index.html +++ b/docs/demo/index.html @@ -5,7 +5,7 @@ use-bootstrap-tag | Tag input for Bootstrap 5 - + @@ -15,12 +15,12 @@ <script> UseBootstrapTag(document.getElementById('example-basic')) </script> -
    Placeholder
    <input type="text" class="form-control" placeholder="Add a color then press comma" id="example-placeholder">
    +
    Placeholder
    <input type="text" class="form-control" placeholder="Add a color then press comma" id="example-placeholder">
     
     <script>
       UseBootstrapTag(document.getElementById('example-placeholder'))
     </script>
    -
    Custom separator
    <!-- Using data-ub-tag-separator attribute: -->
    +
    Custom separator
    <!-- Using data-ub-tag-separator attribute: -->
     <input type="text" class="form-control" placeholder="Add a color then press space" data-ub-tag-separator=" " id="example-separator">
     
     <script>
    diff --git a/docs/index.html b/docs/index.html
    index 373fa41..ad78e6d 100644
    --- a/docs/index.html
    +++ b/docs/index.html
    @@ -5,7 +5,7 @@
       
       
       use-bootstrap-tag | Tag input for Bootstrap 5
    -  
    +  
       
     
     
    diff --git a/docs/install/index.html b/docs/install/index.html
    index b9d6a74..0b5a2ba 100644
    --- a/docs/install/index.html
    +++ b/docs/install/index.html
    @@ -5,7 +5,7 @@
       
       
       use-bootstrap-tag | Tag input for Bootstrap 5
    -  
    +  
       
     
     
    diff --git a/src/docs/pages/Demo.svelte b/src/docs/pages/Demo.svelte
    index 5d7e9ae..1f426e9 100644
    --- a/src/docs/pages/Demo.svelte
    +++ b/src/docs/pages/Demo.svelte
    @@ -160,7 +160,7 @@