PageSourceSearch

https://www.imtilak.net/build/assets/dropdown-c72186a5.js

js imtilak.net collected 2026-10-02 11:24:24 UTC 7,098 bytes, 5 lines download raw bytes

1import{g as st,c as rt,a as it}from"./_commonjsHelpers-23102255.js";import{P as at}from"./index-8746c87e.js";import{r as ct,a as pt,b as ut,c as ft,d as lt}from"./selector-engine-a8c8c0e9.js";function dt(h,T){for(var d=0;d<T.length;d++){const a=T[d];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in h)){const _=Object.getOwnPropertyDescriptor(a,o);_&&Object.defineProperty(h,o,_.get?_:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}};const _t=st(at);/*!
2  * Bootstrap dropdown.js v5.3.3 (https://getbootstrap.com/)
3  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5  */(function(h,T){(function(d,a){h.exports=a(_t,ct(),pt(),ut(),ft(),lt())})(rt,function(d,a,o,_,c,n){function R(f){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(f){for(const e in f)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(f,e);Object.defineProperty(t,e,s.get?s:{enumerable:!0,get:()=>f[e]})}}return t.default=f,Object.freeze(t)}const b=R(d),N="dropdown",p=".bs.dropdown",A=".data-api",S="Escape",y="Tab",M="ArrowUp",O="ArrowDown",I=2,$=`hide${p}`,B=`hidden${p}`,K=`show${p}`,V=`shown${p}`,P=`click${p}${A}`,C=`keydown${p}${A}`,k=`keyup${p}${A}`,m="show",v="dropup",U="dropend",Y="dropstart",W="dropup-center",q="dropdown-center",u='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',G=`${u}.${m}`,E=".dropdown-menu",H=".navbar",z=".navbar-nav",F=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Q=n.isRTL()?"top-end":"top-start",j=n.isRTL()?"top-start":"top-end",x=n.isRTL()?"bottom-end":"bottom-start",J=n.isRTL()?"bottom-start":"bottom-end",X=n.isRTL()?"left-start":"right-start",Z=n.isRTL()?"right-start":"left-start",tt="top",et="bottom",ot={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},nt={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class i extends a{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=c.next(this._element,E)[0]||c.prev(this._element,E)[0]||c.findOne(E,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ot}static get DefaultType(){return nt}static get NAME(){return N}toggle(){return this._isShown()?this.hide():this.show()}show(){if(n.isDisabled(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!o.trigger(this._element,K,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(z))for(const s of[].concat(...document.body.children))o.on(s,"mouseover",n.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(m),this._element.classList.add(m),o.trigger(this._element,V,t)}}hide(){if(n.isDisabled(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!o.trigger(this._element,$,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))o.off(s,"mouseover",n.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(m),this._element.classList.remove(m),this._element.setAttribute("aria-expanded","false"),_.removeDataAttribute(this._menu,"popper"),o.trigger(this._element,B,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!n.isElement(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${N.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof b>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:n.isElement(this._config.reference)?t=n.getElement(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=b.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(m)}_getPlacement(){const t=this._parent;if(t.classList.contains(U))return X;if(t.classList.contains(Y))return Z;if(t.classList.contains(W))return tt;if(t.classList.contains(q))return et;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(v)?e?j:Q:e?J:x}_detectNavbar(){return this._element.closest(H)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boun
5dary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(_.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...n.execute(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const s=c.find(F,this._menu).filter(r=>n.isVisible(r));s.length&&n.getNextActiveElement(s,e,t===O,!s.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===I||t.type==="keyup"&&t.key!==y)return;const e=c.find(G);for(const s of e){const r=i.getInstance(s);if(!r||r._config.autoClose===!1)continue;const g=t.composedPath(),l=g.includes(r._menu);if(g.includes(r._element)||r._config.autoClose==="inside"&&!l||r._config.autoClose==="outside"&&l||r._menu.contains(t.target)&&(t.type==="keyup"&&t.key===y||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const w={relatedTarget:r._element};t.type==="click"&&(w.clickEvent=t),r._completeHide(w)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),s=t.key===S,r=[M,O].includes(t.key);if(!r&&!s||e&&!s)return;t.preventDefault();const g=this.matches(u)?this:c.prev(this,u)[0]||c.next(this,u)[0]||c.findOne(u,t.delegateTarget.parentNode),l=i.getOrCreateInstance(g);if(r){t.stopPropagation(),l.show(),l._selectMenuItem(t);return}l._isShown()&&(t.stopPropagation(),l.hide(),g.focus())}}return o.on(document,C,u,i.dataApiKeydownHandler),o.on(document,C,E,i.dataApiKeydownHandler),o.on(document,P,i.clearMenus),o.on(document,k,i.clearMenus),o.on(document,P,u,function(f){f.preventDefault(),i.getOrCreateInstance(this).toggle()}),n.defineJQueryPlugin(i),i})})(L);var D=L.exports;const mt=it(D),At=dt({__proto__:null,default:mt},[D]);export{mt as D,At as d};

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.