PageSourceSearch

https://dreimaskenverlag.de/tallstackui/script/tallstackui-NrxCew1f.js

js dreimaskenverlag.de collected 2026-10-02 11:32:53 UTC 49,620 bytes, 1 lines download raw bytes

1import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./helpers-DoHv-iUH.js";import{t as l}from"./copy-ByyOd8Ei.js";var u=class{_data;constructor(){this._data={},this._data.options={}}success=(e,t=null)=>(this._data.type=`success`,this._data.title=e,this._data.description=t,this.onType(),this);error=(e,t=null)=>(this._data.type=`error`,this._data.title=e,this._data.description=t,this.onType(),this);warning=(e,t=null)=>(this._data.type=`warning`,this._data.title=e,this._data.description=t,this.onType(),this);info=(e,t=null)=>(this._data.type=`info`,this._data.title=e,this._data.description=t,this.onType(),this);onType(){}event(){return``}validate(){return!0}payload(){return{event:this.event(),...this._data}}send=()=>{if(!this.validate())return;let e=this.payload();i(e.event,e)}},d=class extends u{question=(e,t=null)=>(this._data.type=`question`,this._data.title=e,this._data.description=t,this.onType(),this);wireable=(e=``)=>{let t=e===``?`first in page`:e,n=e===``?Livewire.first():Livewire.find(e);return n?(this._data.reference=n.id??null,this):c(`The Livewire component [${t}] was not found in the current page.`)};confirm=(e=null,t=null,n=null)=>(this._data.options.confirm=this._data.options.confirm||{},this._data.options.confirm.static=!t,this._data.options.confirm.text=e,this._data.options.confirm.method=t,this._data.options.confirm.params=n,this);cancel=(e=null,t=null,n=null)=>(this._data.options.cancel=this._data.options.cancel||{},this._data.options.cancel.static=!t,this._data.options.cancel.text=e,this._data.options.cancel.method=t,this._data.options.cancel.params=n,this);persistent=()=>(this._data.persistent=!0,this);onType(){this._data.options.confirm={},this._data.options.confirm.static=!0}event(){return`dialog`}validate(){let e=this._data.options??null;return e.cancel&&!e.cancel.text?(c(`You must set the text of [cancel] action.`),!1):e.confirm&&!e.confirm.static&&!e.confirm.text?(c(`You must set the text of [confirm] action.`),!1):(e.cancel?.method||e.confirm?.method)&&!this._data.reference?(c(`You must set the id of the Livewire component to interact with [confirm] or [cancel] action.`),!1):!0}},f=class extends u{question=(e,t=null)=>(this._data.type=`question`,this._data.title=e,this._data.description=t,this);wireable=(e=``)=>{let t=e===``?`first in page`:e,n=e===``?Livewire.first():Livewire.find(e);return n?(this._data.reference=n.id??null,this):c(`The Livewire component [${t}] was not found in the current page.`)};confirm=(e=null,t=null,n=null)=>(this._data.options.confirm=this._data.options.confirm||{},this._data.options.confirm.static=!t,this._data.options.confirm.text=e,this._data.options.confirm.method=t,this._data.options.confirm.params=n,this);cancel=(e=null,t=null,n=null)=>(this._data.options.cancel=this._data.options.cancel||{},this._data.options.cancel.static=!t,this._data.options.cancel.text=e,this._data.options.cancel.method=t,this._data.options.cancel.params=n,this);timeout=(e=3)=>(this._data.timeout=e,this);expandable=(e=!0)=>(this._data.expandable=e,this);persistent=(e=!0)=>(this._data.persistent=e,this);event(){return`toast`}validate(){let e=this._data.options??null;return e.cancel&&!e.cancel.text?(c(`You must set the text of [cancel] action.`),!1):e.confirm&&!e.confirm.static&&!e.confirm.text?(c(`You must set the text of [confirm] action.`),!1):(e.cancel?.method||e.confirm?.method)&&!this._data.reference?(c(`You must set the id of the Livewire component to interact with [confirm] or [cancel] action.`),!1):!0}payload(){return{event:this.event(),...this._data,timeout:this._data.timeout??3,expandable:this._data.expandable??!1,persistent:this._data.persistent??!1}}};window.$tsui={open:{modal:e=>i(`modal:${e}-open`,null,!1),slide:e=>i(`slide:${e}-open`,null,!1),select:e=>i(`select:${e}-open`,null,!1),commandPalette:(e=`command-palette`)=>i(`command-palette:${e}-open`,null,!1)},close:{modal:e=>i(`modal:${e}-close`,null,!1),slide:e=>i(`slide:${e}-close`,null,!1),select:e=>i(`select:${e}-close`,null,!1),commandPalette:(e=`command-palette`)=>i(`command-palette:${e}-close`,null,!1)},copy:l,interaction:(e=`dialog`)=>{let t={dialog:d,toast:f}[e];return t?new t:c(`Unknown interaction type: ${e}`)},select:e=>{let t=document.getElementById(e);if(!t)return c(`Element [#${e}] was not found.`);let n=t.querySelector(`[x-data^="tallstackui_select"]`);if(!n)return c(`Element [#${e}] does not contain a select.styled component.`);let r=Alpine.$data(n);return{setOptions:t=>{if(!r.$refs.options)return c(`Element [#${e}] select has no options ref to update.`);let n=JSON.stringify(t).replace(/[^ -~]/g,e=>`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`),i=btoa(n);r.$refs.options.innerText=`JSON.parse(atob('${i}'))`},refresh:()=>{r._lastSyncRaw=null,r.sync()}}},focus:(e,t=250)=>setTimeout(()=>{let t=document.querySelector(`[data-focus="${e}"]`);t||=document.getElementById(e),t||=document.querySelector(`[x-ref="${e}"]`),t&&t.focus()},t)};function p(e){e.directive(`collapse`,t),t.inline=(e,{modifiers:t})=>{t.includes(`min`)&&(e._x_doShow=()=>{},e._x_doHide=()=>{})};function t(t,{modifiers:n}){let r=m(n,`duration`,250)/1e3,i=m(n,`min`,0),a=!n.includes(`min`);t._x_isShown||(t.style.height=`${i}px`),!t._x_isShown&&a&&(t.hidden=!0),t._x_isShown||(t.style.overflow=`hidden`);let o=(t,n)=>{let r=e.setStyles(t,n);return n.height?()=>{}:r},s={transitionProperty:`height`,transitionDuration:`${r}s`,transitionTimingFunction:`cubic-bezier(0.4, 0.0, 0.2, 1)`};t._x_transition={in(n=()=>{},r=()=>{}){a&&(t.hidden=!1),a&&(t.style.display=null);let o=t.getBoundingClientRect().height;t.style.height=`auto`;let c=t.getBoundingClientRect().height;o===c&&(o=i),e.transition(t,e.setStyles,{during:s,start:{height:o+`px`},end:{height:c+`px`}}
1,()=>t._x_isShown=!0,()=>{Math.abs(t.getBoundingClientRect().height-c)<1&&(t.style.overflow=null)})},out(n=()=>{},r=()=>{}){let c=t.getBoundingClientRect().height;e.transition(t,o,{during:s,start:{height:c+`px`},end:{height:i+`px`}},()=>t.style.overflow=`hidden`,()=>{t._x_isShown=!1,t.style.height==`${i}px`&&a&&(t.style.display=`none`,t.hidden=!0)})}}}}function m(e,t,n){if(e.indexOf(t)===-1)return n;let r=e[e.indexOf(t)+1];if(!r)return n;if(t===`duration`){let e=r.match(/([0-9]+)ms/);if(e)return e[1]}if(t===`min`){let e=r.match(/([0-9]+)px/);if(e)return e[1]}return r}var h=p,g=(e=!1)=>({items:[],multiple:e,toggle(e){let t=this.items.find(t=>t.id===e);t&&(window.dispatchEvent(new CustomEvent(`tallstackui:floating-flush`)),!this.multiple&&!t.open&&this.items.forEach(t=>{t.id!==e&&(t.open=!1)}),t.open=!t.open,this.$refs.wrapper.dispatchEvent(new CustomEvent(t.open?`open`:`close`,{detail:{id:e}})))},isOpen(e){return this.items.find(t=>t.id===e)?.open??!1},openAll(){this.items.forEach(e=>e.open=!0)},closeAll(){window.dispatchEvent(new CustomEvent(`tallstackui:floating-flush`)),this.items.forEach(e=>e.open=!1)}}),_=e=>({show:!0,init(){e&&setTimeout(()=>this.show=!1,e*1e3)}}),v=e=>String(e??``).toLowerCase(),y=(e=null,t=[],n=null,i=!1,a=null)=>({model:e,items:Array.isArray(t)?t:[],request:n,strict:i,lazy:a,show:!1,loading:!1,search:``,highlighted:-1,available:[],selected:null,_abort:null,_debounce:null,init(){this.items=this.normalizeItems(this.items),this.model&&(this.selected=this.findByValue(this.model),this.search=this.selected?this.selected.value:this.strict?``:this.model,this.strict&&!this.selected&&(this.model=null)),this.recompute(),this.$watch(`show`,e=>{if(e){this.highlighted=-1,this.request?this.fetch():this.recompute(),this.$dispatch(`open`);return}this.highlighted=-1,this.strict&&(this.search=this.selected?this.selected.value:``),this.$dispatch(`close`)}),this.$watch(`model`,e=>{if(this.show)return;let t=this.findByValue(e);this.selected=t??this.selected,this.search=t?t.value:this.strict?``:e??``}),this.$watch(`highlighted`,e=>{e<0||!this.$refs.floating||this.$refs.floating.querySelector(`[data-index="${e}"]`)?.scrollIntoView({block:`nearest`})})},normalizeItems(e){return e.map(e=>typeof e==`string`?{value:e,description:null,image:null,disabled:!1}:{value:e.value,description:e.description??null,image:e.image??null,disabled:!!e.disabled})},findByValue(e){return e==null||e===``?null:this.items.find(t=>t.value===e)??null},recompute(){let e=v(this.search);if(!e){this.available=this.items;return}this.available=this.items.filter(t=>v(t.value).includes(e)||t.description&&v(t.description).includes(e))},open(){this.show=!0},toggle(){if(this.show){this.show=!1;return}this.lazy&&(this.search??``).length<this.lazy||this.request&&!(this.search??``).toString().length||(this.show=!0)},close(){this.show=!1},onInput(){if(this.strict||(this.model=this.search),this.lazy&&this.search.length<this.lazy){this.available=[],this.loading=!1,this.show=!1;return}if(this.request&&!this.search){this.available=[],this.loading=!1,this.show=!1;return}if(!this.show){this.show=!0;return}this.request?this.fetch():(this.recompute(),this.highlighted=this.available.length>0?0:-1)},pick(e){e.disabled||(this.selected=e,this.search=e.value,this.model=e.value,this.$root.dispatchEvent(new CustomEvent(`select`,{detail:{item:e},bubbles:!0,composed:!0,cancelable:!0})),this.close(),r(null,this.model))},clear(){this.search=``,this.model=this.strict?null:``,this.selected=null,this.available=this.items,this.highlighted=-1,this.$dispatch(`clear`),this.$refs.input?.focus()},navigate(e){if(e.key===`Escape`){this.show&&(e.preventDefault(),this.close());return}if(e.key===`Tab`){this.close();return}if(e.key===`ArrowDown`){if(e.preventDefault(),!this.show){this.open();return}if(this.available.length===0)return;this.highlighted=(this.highlighted+1)%this.available.length;return}if(e.key===`ArrowUp`){if(e.preventDefault(),!this.show||this.available.length===0)return;this.highlighted=this.highlighted<=0?this.available.length-1:this.highlighted-1;return}if(e.key===`Enter`){if(!this.show)return;let t=this.highlighted>=0?this.available[this.highlighted]:null;if(t){e.preventDefault(),this.pick(t);return}this.strict&&(e.preventDefault(),this.close())}},fetch(){if(this.request){if(!(this.search??``).toString().length){this.available=[],this.loading=!1;return}this._debounce&&clearTimeout(this._debounce),this.loading=!0,this._debounce=setTimeout(()=>{this._abort&&this._abort.abort(),this._abort=new AbortController;let e=this.$refs.params?JSON.parse(this.$refs.params.textContent||`{}`):{},t=new URL(this.request.url,window.location.origin),n={signal:this._abort.signal,headers:{Accept:`application/json`}};if((this.request.method??`get`).toLowerCase()===`post`)n.method=`POST`,n.headers[`Content-Type`]=`application/json`,n.body=JSON.stringify({search:this.search,...e});else{t.searchParams.set(`search`,this.search??``);for(let[n,r]of Object.entries(e))t.searchParams.set(n,r)}
1fetch(t,n).then(e=>e.ok?e.json():Promise.reject(e)).then(e=>{let t=Array.isArray(e)?e:e?.data??[];this.items=this.normalizeItems(t),this.available=this.items,this.highlighted=this.available.length>0?0:-1}).catch(e=>{e?.name!==`AbortError`&&(c(`Autocomplete request failed: ${e?.statusText??e}`),this.available=[])}).finally(()=>{this.loading=!1,this._abort=null})},250)}}}),b=(e,t)=>({show:!1,init(){if(e){let t=document.querySelector(e);if(t){new IntersectionObserver(([e])=>{this.show=!e.isIntersecting}).observe(t);return}}window.addEventListener(`scroll`,()=>{this.show=window.scrollY>200},{passive:!0})},scroll(){window.scrollTo({top:0,behavior:t?`smooth`:`instant`})}}),x=(e,t,n,r,i,a,o)=>({show:t===!1&&n===!1,animated:t,type:`primary`,text:r,enter:i,leave:a,close:o,init(){e&&(window.onload=()=>this.add(e)),e&&document.addEventListener(`livewire:navigated`,()=>this.add(e),{once:!0}),this.animated&&(setTimeout(()=>this.show=!0,this.enter?this.enter*1e3:0),this.leave&&setTimeout(()=>this.show=!1,this.leave*1e3)),this.$watch(`show`,e=>{e===!1||!n||!this.leave||setTimeout(()=>this.show=!1,this.leave*1e3)})},add(e){let t=e.detail??e;if(this.type=t.type,this.text=t.title,this.description=t.description,this.close=t.close,this.enter=t.enter,this.leave=t.leave,!this.enter){this.show=!0;return}setTimeout(()=>this.show=!0,this.enter*1e3)}}),S=(r,i=1,o,c,l,u,d,f)=>({id:s(),images:r,time:c,current:i,interval:null,paused:!1,expanded:null,expandedIndex:null,init(){u&&this.shuffle(),o&&this.play(),d&&this.$watch(`expanded`,(r,i)=>{let a=i===null&&r!==null;!a&&!(i!==null&&r===null)||(n(a,`carousel`),a?e(this.id,`carousel`):t(this.id),this.$refs.carousel.dispatchEvent(new CustomEvent(a?`expand`:`collapse`,{detail:{image:r}})))})},destroy(){t(this.id),window.__tsui_elements.length===0&&n(!1,`carousel`)},get top_ui(){return a(this.id)},get expandedHasPrevious(){return!f||this.expandedIndex===null?!1:!l||this.expandedIndex>1},get expandedHasNext(){return!f||this.expandedIndex===null?!1:!l||this.expandedIndex<this.images.length},expand(e,t){d&&(this.expanded=e,this.expandedIndex=t)},close(){this.expandedIndex!==null&&(this.current=this.expandedIndex),this.expanded=null,this.expandedIndex=null},expandNext(){if(!f||this.expandedIndex===null||l&&this.expandedIndex===this.images.length)return;let e=this.expandedIndex<this.images.length?this.expandedIndex+1:1;this.expandedIndex=e,this.expanded=this.images[e-1],this.$refs.carousel.dispatchEvent(new CustomEvent(`next`,{detail:{current:e,image:this.expanded}}))},expandPrevious(){if(!f||this.expandedIndex===null||l&&this.expandedIndex===1)return;let e=this.expandedIndex>1?this.expandedIndex-1:this.images.length;this.expandedIndex=e,this.expanded=this.images[e-1],this.$refs.carousel.dispatchEvent(new CustomEvent(`previous`,{detail:{current:e,image:this.expanded}}))},shuffle(){for(let e=this.images.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[this.images[e],this.images[t]]=[this.images[t],this.images[e]]}},play(){this.interval=setInterval(()=>{this.paused||this.next()},this.time)},reset(){o&&(clearInterval(this.interval),this.time=c,this.play())},next(){if(!(l&&this.current===this.images.length)){if(window.dispatchEvent(new CustomEvent(`tallstackui:floating-flush`)),this.current<this.images.length){this.current+=1,this.event(`next`);return}this.current=1,this.event(`next`)}},previous(){if(!(l&&this.current===1)){if(window.dispatchEvent(new CustomEvent(`tallstackui:floating-flush`)),this.current>1){--this.current,this.event(`previous`);return}this.current=this.images.length,this.event(`previous`)}},seek(e){this.current!==e&&(window.dispatchEvent(new CustomEvent(`tallstackui:floating-flush`)),this.current=e,this.reset())},event(e){this.$refs.carousel.dispatchEvent(new CustomEvent(e,{detail:{current:this.current,image:this.images[this.current]}}))}}),C=(e=null)=>({show:!0,minimize:e??!1,init(){this.$watch(`minimize`,e=>{this.$el.dispatchEvent(new CustomEvent(e?`minimize`:`maximize`))}),this.$watch(`show`,e=>{e||this.$el.dispatchEvent(new CustomEvent(`close`))})}}),w=(e,t,n,r,i,a,o,s,c)=>({show:!1,model:e,mode:t,colors:n,livewire:r,property:i,value:a,clearable:o,excludedColor:s||[],excludedStep:c||[],weight:6,max:11,palette:[],default:{slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`}},init(){if(this.exclusions(),this.livewire||(this.model=this.value),this.$nextTick(()=>this.clearable=this.$refs.input.value!==``),this.colors.length===0){let e={range:()=>{this.palette=this.range(this.weight),this.$watch(`weight`,e=>this.palette=this.range(e))},picker:()=>{this.palette=this.hex()}};e[this.mode]&&e[this.mode]()}this.colors.length>0&&(this.palette=this.colors),this.model?this.model=this.hashing(this.model):this.value&&(this.model=this.hashing(this.value),this.$refs.input.value=this.value),this.$watch(`model`,e=>{this.model=this.hashing(e),this.sync()}),this.$refs.input.addEventListener(`input`,()=>this.clearable=this.$refs.input.value!==``),this.sync()},sync(){if(this.livewire)return;let e=document.getElementsByName(this.property)[0];e&&(e.value=this.model?this.model:``,this.clearable=!!e.value)},hashing(e){return e?e[0]===`#`?e:`#${e}`:null},set(e){this.show=!1,this.model=e,this.$refs.input.value=e,this.$refs.input.dispatchEvent(new Event(`change`)),this.$el.dispatchEvent(new CustomEvent(`set`,{detail:{color:e}})),this.clearable=!!e},hex(){return Object.values(this.default).map(Object.values).flat().filter(e=>e.match(/^#(?:[0-9a-fA-F]{3}){1,2}$/))},range(e){return Object.entries(this.default).filter(([e])=>Object.hasOwnProperty.call(this.default,e)).map(([t,n])=>n[Object.keys(n)[e-1]])},check(e){if(!e)return!1;e=e.replace(`#`,``);let t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),r=parseInt(e.substring(4,6),16);return(.299*t+.587*n+.114*r)/255>.7},clear(){this.model=null,this.clearable=!1,this.$refs.input.value=``,this.$el.dispatchEvent(new CustomEvent(`clear`,{detail:{color:``}}))},exclusions(){if(this.excludedColor.length===0&&this.excludedStep.length===0)return;for(let e of this.excludedColor)delete this.default[e];if(this.excludedStep.length>0){let e=this.excludedStep.map(String);for(let t in this.default)for(let n of e)delete this.default[t][n]}let e=Object.values(this.default)[0];e&&(this.rangeMax=Object.keys(e).length),this.weight>this.rangeMax&&(this.weight=this.rangeMax)}}),T={open:!0,mobile:!1,collapsible:!1,_media:null,_mediaHandler:null,init(){let e=window.matchMedia(`(max-width: 768px)`);this.mobile=e.matches,this._mediaHandler=e=>{this.mobile=e.matches,this.mobile&&(this.open=!0)},e.addEventListener(`change`,this._mediaHandler),this._media=e;let t=localStorage.getItem(`side-bar`);this.open=!!(t===null||JSON.parse(t)),this.mobile&&(this.open=!1)},toggle(e=null){this.open=e??!this.open,localStorage.setItem(`side-bar`,JSON.stringify(this.open))}},E=(e,t,n,r,i,a,o,s,c,l)=>({model:e,input:``,decimals:t,precision:n,clearable:r,mutate:i,decimal
1:a,livewire:o,property:s,value:c,locale:l,init(){this.livewire||(this.model=this.value),this.model&&(this.input=this.model,this.$nextTick(()=>this.format())),this.$watch(`model`,e=>{if(e==null||e===``){this.clear();return}this.format(e),this.sync()}),this.$watch(`input`,e=>this.format(e))},format(e=null){let t=e??this.input;if(!t&&t!==0)return;let n;if(typeof t==`number`)n=t;else{let e=String(t).replace(/\D/g,``);n=parseFloat(e)/10**this.decimals}if(isNaN(n)){this.input=``;return}this.input=new Intl.NumberFormat(this.locale,{minimumFractionDigits:this.decimals,maximumFractionDigits:Math.max(this.decimals,this.precision)}).format(n)},sync(){let e;if(e=this.decimal?this.numeric():this.mutate?this.input:this.input.replace(/\D/g,``),this.livewire){this.$nextTick(()=>this.model=e);return}let t=document.getElementsByName(this.property)[0];t&&(t.value=e)},numeric(){let e=String(this.input??``);if(e===``)return``;let t=new Intl.NumberFormat(this.locale).formatToParts(12345.6),n=t.find(e=>e.type===`group`)?.value??`,`,r=t.find(e=>e.type===`decimal`)?.value??`.`;return e.split(n).join(``).replace(r,`.`)},clear(){this.input=``,this.model=null}}),D=(e={})=>({storage:e?.name??`dark-theme`,mode:(()=>{let t=localStorage.getItem(e?.name??`dark-theme`);
1return t===`true`?`dark`:t===`false`?`light`:[`light`,`dark`,`system`].includes(t)?t:e?.default===`dark`||e?.default===!0?`dark`:e?.default===`system`?`system`:`light`})(),darkTheme:!1,media:null,init(){let e=()=>this.mode===`dark`||this.mode!==`light`&&window.matchMedia(`(prefers-color-scheme: dark)`).matches;this.darkTheme=e(),this.$watch(`mode`,t=>{localStorage.setItem(this.storage,t),this.darkTheme=e(),this.listen()}),this.listen()},listen(){let e=window.matchMedia(`(prefers-color-scheme: dark)`);this.media&&=(e.removeEventListener(`change`,this.media),null),this.mode===`system`&&(this.media=e=>{this.darkTheme=e.matches},e.addEventListener(`change`,this.media))}}),O=e=>({show:!1,hover:e,_timer:null,toggle(){this.hover||(this.show=!this.show)},enter(){this.hover&&(clearTimeout(this._timer),this.show=!0)},leave(){this.hover&&(this._timer=setTimeout(()=>{this.show=!1},150))}}),k=(r,o,c)=>({id:s(),show:!1,dialog:{},text:{ok:o.ok,confirm:o.confirm,cancel:o.cancel},init(){r&&(window.onload=()=>this.add(r)),r&&document.addEventListener(`livewire:navigated`,()=>this.add(r),{once:!0}),this.$watch(`show`,r=>{n(r,`dialog`,c),r?e(this.id,`dialog`):t(this.id)})},destroy(){t(this.id),window.__tsui_elements.length===0&&n(!1,`dialog`,c)},add(e){this.dialog={},this.dialog=e,this.show=!0},remove(e=!1,t=!1){if(e&&this.dialog.persistent)return;this.show=!1;let n=e?this.dialog.hooks?.dismiss:this.dialog.hooks?.close;n&&!t&&Livewire.find(this.dialog.reference).call(n.method,n.params),e&&i(`dialog:dismissed`,this.dialog,!1)},accept(e,t){i(`dialog:accepted`,e,!1);let n=Livewire.find(e.reference);if(e.options.confirm.static===!0||e.options.confirm.method===null)return e.hooks?.ok&&n.call(e.hooks.ok.method,e.hooks.ok.params),this.remove(!1,!0);setTimeout(()=>{let r=e.options.confirm.method;if(typeof r==`function`){r();return}n.call(r,e.options.confirm.params),t.blur()},100),this.remove(!1,!0)},reject(e,t){i(`dialog:rejected`,e,!1);let n=Livewire.find(e.reference);return!e.options||e.options.cancel.static===!0||e.options.cancel.method===null?(e.hooks?.reject&&n.call(e.hooks.reject.method,e.hooks.reject.params),this.remove(!1,!0)):(setTimeout(()=>{let r=e.options.cancel.method;if(typeof r==`function`){r();return}n.call(r,e.options.cancel.params),t.blur()},100),this.remove(!1,!0))},get top_ui(){return a(this.id)}}),A=e=>({show:!1,animate:e,init(){window.addEventListener(`scroll`,()=>{let e=this.$refs.dropdown?.getBoundingClientRect();this.show=e?.bottom<0||e?.top>window.innerHeight&&this.show?!1:this.show})}});function j(e,t,n,r,i,a,o){let s=r(),c=e.classList.contains(`w-full`),l=()=>{let t=r();t&&t.offsetWidth&&(e.style.width=t.offsetWidth+`px`)},u=()=>{let e=r();return!e||!e.isConnected?!1:e.getClientRects().length>0},d=null,f=()=>{if(!e.isConnected){d=null;return}if(!a()){d=null;return}if(!u()){e.style.display=`none`,o(!1),d=null;return}d=requestAnimationFrame(f)},p=()=>{d||=requestAnimationFrame(f)};if(t(i,t=>{t&&(e.style.display=``,p(),c&&s&&n(()=>l()))}),a()&&p(),c&&s){let t=null;new MutationObserver(()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>l())}).observe(e,{childList:!0,subtree:!0}),a()&&n(()=>l()),window.Livewire?.hook&&window.Livewire.hook(`commit`,({succeed:t})=>{t(()=>{n(()=>{e.isConnected&&a()&&l()})})})}if(s){let e=s.closest(`[x-data*=tallstackui_modal], [x-data*=tallstackui_slide]`);e&&e.addEventListener(`close`,()=>o(!1))}let m=()=>{if(!e.isConnected){window.removeEventListener(`tallstackui:floating-flush`,m);return}a()&&(e.style.display=`none`,o(!1))};window.addEventListener(`tallstackui:floating-flush`,m)}var M=e=>({clearable:!1,init(){this.$nextTick(()=>this.clearable=this.$refs[e].value!==``),this.$refs[e].addEventListener(`input`,()=>this.clearable=this.$refs[e].value!==``)},clear(){this.$refs[e].value=``,this.clearable=!1,this.$refs[e].dispatchEvent(new Event(`input`))}}),N=e=>({bound:null,init(){this.bound=this.handle.bind(this),this.$refs[e].addEventListener(`input`,this.bound)},destroy(){this.$refs[e]&&this.bound&&this.$refs[e].removeEventListener(`input`,this.bound)},handle(e){if(e._stripping)return;let t=e.target,{value:n,type:r}=t;if(!this.process(n))return;let i=n.replace(/^0+/,``)||`0`;if(r===`number`&&t.value!==i){this.value(t,i);return}this.update(t,n,i)},process(e){if(!e||typeof e!=`string`)return!1;let t=e.startsWith(`0`)&&e.length>1,n=e.startsWith(`0.`)||e.startsWith(`0,`);return t&&!n},update(e,t,n){if(t!==n&&(this.numeric(t)||this.format(t))){let r=e.selectionStart,i=t.length-n.length;this.value(e,n),this.position(e,r-i)}},numeric(e){return/^-?\d+$/.test(e)},format(e){return/^-?\d+[.,]\d*$/.test(e)},value(e,t){if(e.value===t)return;e.value=t;let n=new InputEvent(`input`,{bubbles:!0,cancelable:!0,composed:!0});
1n._stripping=!0,e.dispatchEvent(n)},position(e,t){let n=Math.max(0,t);document.activeElement===e&&e.setSelectionRange(n,n)}}),P=(e,t)=>({init(){Livewire.hook(`commit.prepare`,({component:r})=>{r.name===e&&n(!0,`loading`,t)}),Livewire.hook(`morph.updated`,({component:r})=>{r.name===e&&n(!1,`loading`,t)})}}),F=()=>({tallStackUiMenuMobile:!1,init(){this.$watch(`tallStackUiMenuMobile`,e=>{let t=document.querySelector(`html`);Alpine.store(`tsui.side-bar`).toggle(!0),e&&t.classList.add(`overflow-hidden`),e||t.classList.remove(`overflow-hidden`)})}}),I=()=>({search:``,items:[],register(e,t){this.items.push({name:e??``,caption:t??``})},match(e,t){let n=(this.search??``).trim().toLowerCase();return n===``||(e??``).toLowerCase().includes(n)||(t??``).toLowerCase().includes(n)},get hasResults(){return this.items.length===0?!1:(this.search??``).trim().toLowerCase()===``||this.items.some(({name:e,caption:t})=>this.match(e,t))}}),L=(e,t,n,r,i)=>({model:e,rows:[],component:null,init(){this.component=Livewire.find(t).__instance,this.model.length>0&&this.$nextTick(()=>{this.model=this.model.map(e=>({index:Math.random().toString(36).substring(2,12),key:e.key,value:e.value})),this.rows=this.model})},add(){n&&this.rows.length>=n||(this.rows.push({index:Math.random().toString(36).substring(2,12),key:``,value:``}),this.$el.dispatchEvent(new CustomEvent(`add`,{detail:{rows:this.rows}})),this.sync())},remove(e){let t=this.rows;
1this.rows=this.rows.filter((t,n)=>n!==e),this.$el.dispatchEvent(new CustomEvent(`remove`,{detail:{rows:this.rows}})),this.component&&i&&this.component.$wire.call(i,e,t),this.sync()},sync(){this.rows=this.rows.map(e=>({key:e.key,value:e.value})),this.model=this.rows},get addable(){let e=Number(n);return n===null&&!r||n&&this.model.length<e&&this.rows.length<e}}),R=(r,i)=>({id:s(),show:r,init(){this.$watch(`show`,r=>{n(r,`modal`,i),r?e(this.id,`modal`):t(this.id),this.$el.dispatchEvent(new CustomEvent(r?`open`:`close`))})},destroy(){t(this.id),window.__tsui_elements.length===0&&n(!1,`modal`,i)},get top_ui(){return a(this.id)}}),z=(e,t,n,r,i,a)=>({model:e,min:t,max:n,interval:null,delay:r,debounce:a,init(){this.defined&&(this.disableMinus=this.atMinus,this.disablePlus=this.atPlus),this.$watch(`model`,e=>{isNaN(e)||!e||(this.$refs.input.value=this.model=e)})},increment(){let e=e=>{let t=e/(parseFloat(this.$refs.input.step)||1);if(Number.isInteger(t))this.$refs.input.stepUp(t);else{let t=parseFloat(this.$refs.input.value)||0;this.$refs.input.value=(t+e).toFixed(2)}this.dispatch(),this.update()},t=this.model===null?null:parseFloat(this.model),n=this.max;if(t!==null&&n!==null&&t>=n){this.disablePlus=!0;return}if(n!==null){if(t!==null&&t+i<n){e(i);return}if(n>i){e(i);return}if(n===0){e(0);return}}e(i)},decrement(){let e=e=>{let t=e/(parseFloat(this.$refs.input.step)||1);if(Number.isInteger(t))this.$refs.input.stepDown(t);else{let t=parseFloat(this.$refs.input.value)||0;this.$refs.input.value=(t-e).toFixed(2)}this.dispatch(),this.update()},t=this.model===null?null:parseFloat(this.model),n=this.min;if(t!==null&&n!==null&&t<=n){this.disableMinus=!0;return}if(n!==null&&t!==null&&t-i>n){e(i);return}else if(n!==null&&n<i){if(t!==null){e(t-i>=0?i:0);return}else if(n===0){e(0);return}}e(i)},dispatch(){this.$refs.input.dispatchEvent(new Event(`change`)),this.debounce&&this.$refs.input.dispatchEvent(new Event(`input`))},update(){this.model=this.$refs.input.value,this.min!==null&&(this.disableMinus=this.defined&&this.atMinus),this.max!==null&&(this.disablePlus=this.defined&&this.atPlus)},validate(){let e=this.$refs.input.value;this.min!==null&&e<this.min&&(this.$refs.input.value=this.model=null),this.max!==null&&e>this.max&&(this.$refs.input.value=this.model=null),this.disablePlus=this.atPlus,this.disableMinus=this.atMinus},get defined(){return this.model===0||!!this.model},get atMinus(){return this.min!==null&&this.model<=this.min},get atPlus(){return this.max!==null&&this.model>=this.max},set disableMinus(e){this.$refs.minus.disabled=e},set disablePlus(e){this.$refs.plus.disabled=e}}),B=(e,t)=>({rate:e,quantity:t,evaluate(e,t){this.rate=t,this.$el.dispatchEvent(new CustomEvent(`evaluate`,{detail:{evaluate:{method:e,rate:this.rate}}})),this.$wire.call(e,this.rate)}}),V=(e,t,n,r,i,a)=>({model:e,canvas:null,context:null,drawing:!1,lastX:0,lastY:0,stacks:{},color:t,background:n,line:r,height:i,init(){this.canvas=this.$refs.canvas,this.context=this.canvas.getContext(`2d`,{willReadFrequently:!0}),this.context.line=this.line,this.context.lineCap=`round`,this.context.lineJoin=`round`,this.stacks={undo:[],redo:[]},this.$nextTick(()=>this.size(!0)),window.addEventListener(`resize`,this.size.bind(this))},clear(){this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.backgroundColor(),this.store(),this.model=null},start(e){e.preventDefault(),this.drawing=!0;let{offsetX:t,offsetY:n}=this.coordinates(e);this.lastX=t,this.lastY=n,this.draw(e)},draw(e){if(!this.drawing)return;e.preventDefault();let{offsetX:t,offsetY:n}=this.coordinates(e),r=Math.sqrt((t-this.lastX)**2+(n-this.lastY)**2),i=Math.atan2(n-this.lastY,t-this.lastX);for(let e=0;e<r;e+=this.line/3){let t=this.lastX+Math.cos(i)*e,n=this.lastY+Math.sin(i)*e;this.dots(t,n)}this.lastX=t,this.lastY=n},dots(e,t){this.context.beginPath(),this.context.arc(e,t,this.line/2,0,Math.PI*2),this.context.fillStyle=this.color,this.context.fill(),this.context.closePath()},stop(e){this.drawing&&(e.preventDefault(),this.drawing=!1,this.store())}
1,undo(){if(this.stacks.undo.length>1){this.stacks.redo.push(this.stacks.undo.pop()),this.context.putImageData(this.stacks.undo[this.stacks.undo.length-1],0,0),this.save();return}this.stacks.redo.push(this.stacks.undo.pop()),this.clear()},redo(){this.stacks.redo.length>0&&(this.stacks.undo.push(this.stacks.redo.pop()),this.context.putImageData(this.stacks.undo[this.stacks.undo.length-1],0,0)),this.save()},save(){this.model=this.canvas.toDataURL(`image/${this.extension}`)},store(){this.stacks.undo.push(this.context.getImageData(0,0,this.canvas.width,this.canvas.height)),this.stacks.redo=[],this.save()},download(){let e=this.canvas.toDataURL(`image/${this.extension}`),t=document.createElement(`a`);t.href=e,t.download=`signature.${this.extension}`,document.body.appendChild(t),t.click(),document.body.removeChild(t),this.$el.dispatchEvent(new CustomEvent(`export`,{detail:{signature:e}}))},backgroundColor(){a&&this.background===`transparent`&&(this.background=`#FFFFFF`),this.context.fillStyle=this.background,this.context.fillRect(0,0,this.canvas.width,this.canvas.height)},size(e=!1){this.canvas.width=this.$refs.canvas.parentElement.clientWidth,this.canvas.height=this.height,e&&this.clear()},coordinates(e){let t=this.canvas.getBoundingClientRect();if(e.touches&&e.touches.length>0){let n=e.touches[0];return{offsetX:(n.clientX-t.left)*(this.canvas.width/t.width),offsetY:(n.clientY-t.top)*(this.canvas.height/t.height)}}return{offsetX:(e.clientX-t.left)*(this.canvas.width/t.width),offsetY:(e.clientY-t.top)*(this.canvas.height/t.height)}},get extension(){return a?`jpeg`:`png`}}),H=(r,i)=>({id:s(),show:r,init(){this.$watch(`show`,r=>{n(r,`slide`,i),r?e(this.id,`slide`):t(this.id),this.$el.dispatchEvent(new CustomEvent(r?`open`:`close`))})},destroy(){t(this.id),window.__tsui_elements.length===0&&n(!1,`slide`,i)},get top_ui(){return a(this.id)}}),U=(e,t)=>({visible:!1,start:0,number:e,animated:t,duration:1,init(){this.$watch(`visible`,()=>{if(t===!1)return;let e=this.$refs.number,n=t=>{this.start||=t;let r=t-this.start,i=Math.min(r/(this.duration*1e3),1),a=Math.floor(i*this.number);e.innerHTML=a.toLocaleString(),r<this.duration*1e3&&window.requestAnimationFrame(n)};window.requestAnimationFrame(n)})}}),W=(e,t,n,r=null)=>({model:e,show:!1,rules:!1,input:``,min:t.min??null,symbols:t.symbols??null,numbers:t.numbers??null,mixed:t.mixed??null,caps:!1,results:{min:!1,symbols:!1,numbers:!1,mixed:!1},typingOnly:n,init(){this.password=r,this.$watch(`model`,e=>this.input=e??``),this.$watch(`input`,e=>{if(!e){this.reset();return}this.check(e)})},toggle(){this.show=!this.show,this.$el.dispatchEvent(new CustomEvent(`reveal`,{detail:{status:this.show}}))},reset(){this.results={min:!1,symbols:!1,numbers:!1,mixed:!1}},check(e){this.results.min=this.min&&e.length>=this.min,this.symbols&&(this.results.symbols=RegExp(`[${this.symbols.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`)}]`).test(e)),this.results.numbers=this.numbers&&e.match(/\d/)!==null,this.results.mixed=this.mixed&&e.match(/[a-z]/)&&e.match(/[A-Z]/)},generator(){this.$refs.generator.classList.add(`animate-spin`);let e=``,t=`abcdefghijklmnopqrstuvwxyz`,n=`ABCDEFGHIJKLMNOPQRSTUVWXYZ`,r=`0123456789`,i=t+(this.mixed?n:``)+(this.numbers?r:``)+(this.symbols?this.symbols:``);if(typeof window.TallStackUi?.passwordGenerator==`function`)e=window.TallStackUi.passwordGenerator(this.min,this.mixed,this.numbers,this.symbols);else{e+=t.charAt(Math.floor(Math.random()*26)),this.mixed&&(e+=n.charAt(Math.floor(Math.random()*26))),this.numbers&&(e+=r.charAt(Math.floor(Math.random()*10))),this.symbols&&(e+=this.symbols.charAt(Math.floor(Math.random()*this.symbols.length)));for(let t=e.length;t<this.min;t++)e+=i.charAt(Math.floor(Math.random()*i.length));e=e.split(``).sort(()=>.5-Math.random()).join(``)}this.password=e,this.$el.dispatchEvent(new CustomEvent(`generate`,{detail:{password:e}})),setTimeout(()=>this.$refs.generator.classList.remove(`animate-spin`),250)},paste(e){e.preventDefault();let t=e.clipboardData?.getData(`text`)??null;!t||this.typingOnly||(this.password=t,this.$el.dispatchEvent(new CustomEvent(`paste`,{detail:{password:t}})))},indicator(e){typeof e.getModifierState==`function`&&(this.caps=e.getModifierState(`CapsLock`))},set password(e){this.input=this.model=e}}),G=(e,t,n,i,a,o,s,l,u,d=null,f=null)=>({model:e,id:t,length:n,clear:i,pasting:!1,observer:null,observing:!1,error:!1,numbers:a,letters:o,livewire:s,property:l,value:u,smart:f,submitted:!1,init(){if(!this.model&&this.value&&(this.model=this.value),this.model){if(typeof this.model!=`string`&&typeof this.model!=`number`)return c(`The [wire:model] property value must be a string or a number`);this.model=this.model.toString()}this.observation(),this.$watch(`error`,async()=>this.observed()),this.$watch(`model`,e=>{if(this.livewire){if(!e){this.erase(!0);return}return this.syncInput(e)}let t=document.getElementsByName(this.property)[0];t&&(t.value=e)})},observation(){this.errors();let e=this.validate;e!=null&&(this.observer=new MutationObserver(this.errors.bind(this)),this.observer.observe(e,{subtree:!0,characterData:!0}
1))},async observed(){this.observer&&!this.observing&&(this.observer.disconnect(),this.observing=!0),await this.$nextTick(),this.observing=!1,this.observation()},errors(){let e=this.validate;this.error=e?.innerText===`true`},focus(e){this.input(e)?.focus()},left(e){if(e===1){this.focus(this.length);return}this.focus(e-1)},right(e){if(e+1>this.length){this.focus(1);return}this.focus(e+1)},filled(){for(let e=this.length;e>0;e--)if(this.input(e)?.value!==``)return e},keyup(e){if(e!==1){for(let t=1;t<e;t++)if(this.input(t).value===``){this.focus(t),this.input(t).value=this.input(e).value,this.input(e).value=``,this.syncModel();return}}if(this.pasting){this.pasting=!1,this.syncModel();return}if(this.input(e).value&&e!==this.length){if(this.input(e+1)?.value!==``){this.focus(e+1);return}this.focus(e+1)}this.syncModel()},backspace(e,t){if(this.input(t)?.value!==``&&t!==this.length){let e=this.filled();this.focus(e),this.input(e).value=``,this.syncModel();return}else t!==1&&this.focus(t-1);this.syncModel()},syncModel(){this.model=``;for(let e=1;e<=this.length;e++){let t=this.input(e);t&&(this.model+=t.value)}r(d,this.model),this.model&&this.model.length===this.length?(this.$refs.wrapper.dispatchEvent(new CustomEvent(`filled`,{detail:{model:this.model}})),this.smart&&!this.submitted&&(this.submitted=!0,this.$nextTick(()=>{let e=this.$refs.wrapper.closest(`form`);e&&(typeof e.requestSubmit==`function`?e.requestSubmit():e.submit())}))):this.submitted=!1},syncInput(e=null){for(let t=0;t<=e.length;t++){let n=this.input(t+1);!n||e[t]===void 0||this.invalidate(e[t])||(n.value=e[t])}r(d,this.model)},input(e){return document.getElementById(`pin-${t}-${e}`)},paste(e){e.preventDefault();let t=e.clipboardData.getData(`text`);if(t&&!this.invalidate(t)){for(let e=0;e<=this.length;e++){let n=this.input(e+1);!n||!t[e]||(n.value+=t[e])}this.syncModel()}},erase(e=!1){for(let e=1;e<=this.length;e++){let t=this.input(e);t&&(t.value=``)}let t=this.model;this.model=null,this.submitted=!1,this.focus(1),e||this.$refs.wrapper.dispatchEvent(new CustomEvent(`clear`,{detail:{model:t}}))},invalidate(e){return this.numbers&&!/^\d+$/.test(e)?!0:this.letters&&!/^[a-zA-Z]+$/.test(e)},get validate(){return document.getElementById(t)}}),K=(e=null)=>({selected:e,tabs:[],select(e){if(e.href){e.navigate||e.navigateHover?Livewire.navigate(e.href):window.location.href=e.href;return}window.dispatchEvent(new CustomEvent(`tallstackui:floating-flush`)),this.selected=e.tab,this.$refs.ul.dispatchEvent(new CustomEvent(`navigate`,{detail:{select:e.tab}}))},change(){let e=this.tabs.find(e=>e.tab===this.selected);if(e&&e.href){e.navigate||e.navigateHover?Livewire.navigate(e.href):window.location.href=e.href;return}window.dispatchEvent(new CustomEvent(`tallstackui:floating-flush`)),this.$refs.ul.dispatchEvent(new CustomEvent(`navigate`,{detail:{select:this.selected}}))},prefetch(e){if(e.href&&e.navigateHover&&!e._prefetched){let t=document.createElement(`link`);t.rel=`prefetch`,t.href=e.href,document.head.appendChild(t),e._prefetched=!0}}}),q=(e,t)=>({model:e,rows:[],_observer:null,init(){t&&(this.checked(),this._observer=new MutationObserver(()=>this.checked()),this._observer.observe(this.$el,{attributes:!0,attributeFilter:[`data-ids`]}))},destroy(){this._observer?.disconnect()},get ids(){try{return JSON.parse(this.$el.dataset.ids||`[]`)}catch{return[]}},fully(){let e=this.ids;return e.length>0&&e.every(e=>this.model.includes(e))},checked(){this.$refs.checkbox&&this.$nextTick(()=>{this.$refs.checkbox&&(this.$refs.checkbox.checked=this.fully())})},select(e){this.checked(),this.$dispatch(`select`,{row:e})},all(e=!0,t){return e?this.push(t):this.remove(t)},push(e){this.model.push(...e.filter(e=>!this.model.includes(e)))},remove(e){this.model=this.model.filter(t=>!e.includes(t))},redirect(e,t){window.open(e,t?`_blank`:`_self`)},toggle(e){let t=this.rows.indexOf(e);t>-1?this.rows.splice(t,1):this.rows.push(e)},expanded(e){return this.rows.includes(e)}}),J=(e,t,n,r,i,a,o)=>({model:e,limit:t,lazy:n,prefixes:r,livewire:i,property:a,value:o,tag:``,init(){this.livewire||(this.model=typeof this.value==`string`?[this.value]:this.value,this.$nextTick(()=>this.input=this.model)),this.$watch(`model`,e=>this.input=e),this.prefix()},add(e){if(e.key!==`Enter`&&e.key!==`,`)return;if(this.limit&&this.model?.length>=this.limit){this.clean();return}this.tag=this.tag.replace(/,/g,``);let t=this.tag.trim();if(!t||this.prefixes&&t===this.prefixes){this.clean();return}let n=this.prefixes&&t[0]===this.prefixes?t.slice(1):t;if(this.lazy&&n.length<this.lazy){this.clean();return}if(t=this.prefixes&&t[0]!==this.prefixes?this.prefixes+t:t,this.model?.includes(t)){this.clean();return}this.model=Array.isArray(this.model)?[...this.model,t]:[t],this.prefix(),this.$el.dispatchEvent(new CustomEvent(`add`,{detail:{tag:t}})),this.clean()},clean(){this.$nextTick(()=>this.tag=``)},remove(e,t=null){if(e<0||!this.model||this.model.length<=e||t&&t.target.value.trim()!==``)return;let n=this.model.splice(e,1);this.$el.dispatchEvent(new CustomEvent(`remove`,{detail:{tag:n[0]}}))},erase(){this.$el.dispatchEvent(new CustomEvent(`erase`,{detail:{tags:this.model}})),this.model=[]},prefix(){!this.prefixes||!this.model||(this.model=this.model.map(e=>e.indexOf(this.prefixes)===-1?this.prefixes+e:e))},set input(e){if(this.livewire)return;let t=document.getElementsByName(this.property)[0];t&&(e=e?.filter(e=>e!==``),t.value=!e||e.length===0?``:typeof e==`string`&&e.indexOf(`,`)!==-1||typeof e==`object`&&e.length>1?JSON.stringify(e):e)}}),Y=(e,t)=>
1({init(){this.$nextTick(()=>this.resize())},counter(){let e=this.$refs.textarea.maxLength,n=this.$refs.textarea.value.length,r=e!==void 0&&e!==-1,i=t.split(` `),a=()=>{i.forEach(e=>{this.$refs.counter.classList.contains(e)&&this.$refs.counter.classList.remove(e)})};if(n===0)return a(),this.$refs.counter.innerText=``;if(r&&n>=e&&i.forEach(e=>this.$refs.counter.classList.add(e)),r&&n===e-1&&a(),r)return this.$refs.counter.innerText=`${n}/${e}`;this.$refs.counter.innerText=n},resize(){let t=this.$refs.textarea;!t||!t.value||t.scrollHeight===0||!e||(t.style.height=`0px`,t.style.height=`${t.scrollHeight}px`)}}),X=(e,t=null,n=!1)=>({show:!1,toasts:[],position:t,init(){e&&(window.onload=()=>this.add(e)),e&&document.addEventListener(`livewire:navigated`,()=>this.add(e),{once:!0})},add(t){this.$nextTick(()=>this.show=!0),e&&(this.toasts=[],this.toasts.push(e)),t.detail&&(t.detail.sole&&this.toasts.length>0&&(this.toasts=[]),t.detail.id??=`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,this.position=t.detail.position??this.position,this.toasts.push(t.detail))},remove(e){this.toasts=this.toasts.filter(t=>t.id!==e.id)},transition:n?{}:{"x-transition:enter":`transform ease-out duration-300 transition`,"x-transition:enter-start"(){return`translate-y-2 opacity-0 sm:translate-y-0 ${this.position.includes(`-left`)?`sm:-translate-x-2`:`sm:translate-x-2`}`},"x-transition:enter-end":`translate-y-0 opacity-100 sm:translate-x-0`}}),Z=e=>({toast:e,show:!1,init(){let t=!1,n=0,r=this.toast.timeout*10,a=this.toast.timeout*1e3;this.$nextTick(()=>{if(this.show=!0,this.toast.persistent)return;let o=setInterval(()=>{this.show?t||(n+=r,n>=a&&(this.hide(),e.hooks?.timeout&&Livewire.find(e.reference).call(e.hooks.timeout.method,e.hooks.timeout.params),i(`toast:timeout`,this.toast,!1),clearInterval(o))):clearInterval(o)},r),s=this.$refs.progress;this.$refs.toast.addEventListener(`mouseover`,()=>{t=!0,s.style.webkitAnimationPlayState=`paused`,s.style.animationPlayState=`paused`}),this.$refs.toast.addEventListener(`mouseout`,()=>{t=!1,s.style.webkitAnimationPlayState=`running`,s.style.animationPlayState=`running`}),document.addEventListener(`visibilitychange`,()=>{document.hidden||(a-n>2e3?(s.style.animationDuration=a-n+`ms`,s.classList.remove(`animate-progress`),s.offsetWidth,s.classList.add(`animate-progress`),s.style.animationDuration=a-n+`ms`):this.hide())})})},accept(e){if(i(`toast:accepted`,e,!1),e.options.confirm.static===!0||e.options.confirm.method===null)return this.hide();let t=e.options.confirm.method;if(this.hide(),typeof t==`function`){t();return}Livewire.find(e.reference).call(t,e.options.confirm.params)},reject(e){if(i(`toast:rejected`,e,!1),e.options.cancel.static===!0||e.options.cancel.method===null)return this.hide();let t=e.options.cancel.method;if(this.hide(),typeof t==`function`){t();return}Livewire.find(e.reference).call(t,e.options.cancel.params)},hide(t=!0,n=!0){!n&&e.hooks?.close&&Livewire.find(e.reference).call(e.hooks.close.method,e.hooks.close.params),setTimeout(()=>{this.show=!1,this.remove(this.toast)},t?0:this.toast.timeout*100)}}),Q=(e,t,r,i,a,o,s,c,l)=>({show:!1,uploading:!1,error:!1,static:a,warning:i,progress:0,dragging:!1,property:t,multiple:r,placeholders:s,component:null,preview:!1,image:null,init(){this.component=Livewire.find(e).__instance,this.component.$wire.watch(this.property,()=>this.text()),this.$watch(`uploading`,()=>this.text()),this.$watch(`preview`,e=>n(e,`upload`,c))},upload(){if(!this.$refs.files.files.length)return;this.uploading=!0,this.error=!1;let e=!0;if(typeof window.TallStackUi?.upload==`function`&&(e=window.TallStackUi.upload(this.$refs.files.files)),!e){this.progress=0,this.uploading=!1;return}if(this.$el.dispatchEvent(new CustomEvent(`upload`,{detail:{files:this.$refs.files.files}})),this.multiple)return this.multiples();this.single()},multiples(){this.component.$wire.uploadMultiple(this.property,this.$refs.files.files,()=>{this.uploading=!1,this.progress=0},()=>{this.uploading=!1,this.error=!0,this.progress=0},e=>this.progress=e.detail.progress),l&&(this.show=!1)},single(){this.component.$wire.upload(this.property,this.$refs.files.files[0],()=>{this.uploading=!1,this.progress=0},()=>{this.uploading=!1,this.error=!0,this.progress=0},e=>this.progress=e.detail.progress),l&&(this.show=!1)},remove(e,t){this.component.$wire.call(e,t),this.text(),this.$el.dispatchEvent(new CustomEvent(`remove`,{detail:{file:t}}))},text(){setTimeout(()=>{let e=this.component.$wire.get(this.property);if(this.multiple){let t=typeof e==`object`?Object.keys(e).length:e.length;this.input=t===0?null:t;let n=this.$refs.items;n?.scrollTo(0,n.scrollHeight);return}this.input=!e||this.static?null:1},500)},set input(e){let t=this.$refs.input;if(!e){t.value=this.$refs.placeholder?.innerText??o;return}t.value=this.placeholders[this.multiple?`multiple`:`single`].replace(`:count`,e)}});window.__tsui_elements||(window.__tsui_elements=[]),document.addEventListener(`livewire:navigating`,o),window.tallstackui_floating=j,document.addEventListener(`alpine:init`,()=>{Alpine.plugin(h),Alpine.data(`tallstackui_accordion`,g),Alpine.data(`tallstackui_alert`,_),Alpine.data(`tallstackui_autocomplete`,y),Alpine.data(`tallstackui_backToTop`,b),Alpine.data(`tallstackui_banner`,x),Alpine.data(`tallstackui_carousel`,S),Alpine.data(`tallstackui_card`,C),Alpine.data(`tallstackui_formColor`,w),Alpine.data(`tallstackui_formCurrency`,E),Alpine.data(`tallstackui_formInputClearable`,M),Alpine.data(`tallstackui_formInputStripZeros`,N),Alpine.data(`tallstackui_formNumber`,z),Alpine.data(`tallstackui_formPassword`,W),Alpine.data(`tallstackui_formPin`,G),Alpine.data(`tallstackui_formTag`,J),Alpine.data(`tallstackui_formTextArea`,Y),Alpine.data(`tallstackui_formUpload`,Q),Alpine.data(`tallstackui_darkTheme`,D),Alpine.data(`tallstackui_dial`,O),Alpine.data(`tallstackui_dialog`,k),Alpine.data(`tallstackui_dropdown`,A),Alpine.data(`tallstackui_loading`,P),Alpine.data(`tallstackui_layout`,F),Alpine.data(`tallstackui_list`,I),Alpine.data(`tallstackui_keyValue`,L),Alpine.data(`tallstackui_modal`,R),Alpine.data(`tallstackui_rating`,B),Alpine.data(`tallstackui_signature`,V),Alpine.data(`tallstackui_slide`,H),Alpine.data(`tallstackui_stats`,U),Alpine.data(`tallstackui_tab`,K),Alpine.data(`tallstackui_table`,q),Alpine.data(`tallstackui_toastBase`,X),Alpine.data(`tallstackui_toastLoop`,Z),Alpine.store(`tsui.side-bar`,T)});

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.