@kubex/zinc 1.1.143 → 1.1.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +155 -74
- package/dist/vscode.html-custom-data.json +11 -11
- package/dist/web-types.json +23 -23
- package/dist/zn.d.ts +13 -0
- package/dist/zn.min.js +50 -49
- package/package.json +1 -1
- package/src/components/confirm/confirm.component.ts +83 -8
- package/src/components/confirm/confirm.test.ts +84 -0
- package/src/selection-card.scss +7 -1
package/dist/zn.min.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var Xu=Hn((Wl,Qu)=>{(function(o,i){typeof Wl=="object"&&typeof Qu=="object"?Qu.exports=i():typeof define=="function"&&define.amd?define([],i):typeof Wl=="object"?Wl.AirDatepicker=i():o.AirDatepicker=i()})(Wl,(function(){return(function(){"use strict";var o={d:function(P,x){for(var E in x)o.o(x,E)&&!o.o(P,E)&&Object.defineProperty(P,E,{enumerable:!0,get:x[E]})},o:function(P,x){return Object.prototype.hasOwnProperty.call(P,x)}},i={};o.d(i,{default:function(){return ae}});var t={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},r={classes:"",inline:!1,locale:{days:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],daysShort:["\u0412\u043E\u0441","\u041F\u043E\u043D","\u0412\u0442\u043E","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041F\u044F\u0442","\u0421\u0443\u0431"],daysMin:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:t.days,minView:t.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,fixedHeight:!1,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function n(P){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof P=="string"?x.querySelector(P):P}function a(){let{tagName:P="div",className:x="",innerHtml:E="",id:w="",attrs:R={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=document.createElement(P);return x&&q.classList.add(...x.split(" ")),w&&(q.id=w),E&&(q.innerHTML=E),R&&s(q,R),q}function s(P,x){for(let[E,w]of Object.entries(x))w!==void 0&&P.setAttribute(E,w);return P}function l(P){return new Date(P.getFullYear(),P.getMonth()+1,0).getDate()}function p(P){let x=P.getHours(),{hours:E,dayPeriod:w}=h(x);return{year:P.getFullYear(),month:P.getMonth(),fullMonth:P.getMonth()+1<10?"0"+(P.getMonth()+1):P.getMonth()+1,date:P.getDate(),fullDate:P.getDate()<10?"0"+P.getDate():P.getDate(),day:P.getDay(),hours:x,fullHours:m(x),hours12:E,dayPeriod:w,fullHours12:m(E),minutes:P.getMinutes(),fullMinutes:P.getMinutes()<10?"0"+P.getMinutes():P.getMinutes()}}function h(P){return{dayPeriod:P>11?"pm":"am",hours:P%12==0?12:P%12}}function m(P){return P<10?"0"+P:P}function f(P){let x=10*Math.floor(P.getFullYear()/10);return[x,x+9]}function b(){let P=[];for(var x=arguments.length,E=new Array(x),w=0;w<x;w++)E[w]=arguments[w];return E.forEach((R=>{if(typeof R=="object")for(let q in R)R[q]&&P.push(q);else R&&P.push(R)})),P.join(" ")}function g(P,x){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.days;if(!P||!x)return!1;let w=p(P),R=p(x);return{[t.days]:w.date===R.date&&w.month===R.month&&w.year===R.year,[t.months]:w.month===R.month&&w.year===R.year,[t.years]:w.year===R.year}[E]}function v(P,x,E){let w=C(P,!1).getTime(),R=C(x,!1).getTime();return E?w>=R:w>R}function y(P,x){return!v(P,x,!0)}function C(P){let x=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],E=new Date(P.getTime());return typeof x!="boolean"||x||(function(w){w.setHours(0,0,0,0)})(E),E}function T(P,x,E){P.length?P.forEach((w=>{w.addEventListener(x,E)})):P.addEventListener(x,E)}function O(P,x){return!(!P||P===document||P instanceof DocumentFragment)&&(P.matches(x)?P:O(P.parentNode,x))}function U(P,x,E){return P>E?E:P<x?x:P}function D(P){for(var x=arguments.length,E=new Array(x>1?x-1:0),w=1;w<x;w++)E[w-1]=arguments[w];return E.filter((R=>R)).forEach((R=>{for(let[q,A]of Object.entries(R))if(A!==void 0&&A.toString()==="[object Object]"){let H=P[q]!==void 0?P[q].toString():void 0,j=A.toString(),Q=Array.isArray(A)?[]:{};P[q]=P[q]?H!==j?Q:P[q]:Q,D(P[q],A)}else P[q]=A})),P}function S(P){let x=P;return P instanceof Date||(typeof P=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(P)&&(P+="T00:00:00"),x=new Date(P)),isNaN(x.getTime())&&(console.log(`Unable to convert value "${P}" to Date object`),x=!1),x}function $(P){let x="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+x+")("+P+")($|<|"+x+")","g")}function L(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}class W{constructor(){let{type:x,date:E,dp:w,opts:R,body:q}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(this,"focus",(()=>{this.$cell.classList.add("-focus-"),this.focused=!0})),L(this,"removeFocus",(()=>{this.$cell.classList.remove("-focus-"),this.focused=!1})),L(this,"select",(()=>{this.$cell.classList.add("-selected-"),this.selected=!0})),L(this,"removeSelect",(()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1})),L(this,"onChangeSelectedDate",(()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())})),L(this,"onChangeFocusDate",(A=>{if(!A)return void(this.focused&&this.removeFocus());let H=g(A,this.date,this.type);H?this.focus():!H&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()})),L(this,"render",(()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell))),this.type=x,this.singleType=this.type.slice(0,-1),this.date=E,this.dp=w,this.opts=R,this.body=q,this.customData=!1,this.init()}init(){var x,E;let{onRenderCell:w}=this.opts;w&&(this.customData=w({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(x=this.customData)!==null&&x!==void 0&&x.disabled?this.dp.disableDate(this.date):((E=this.customData)===null||E===void 0?void 0:E.disabled)===!1&&this.dp.enableDate(this.date)}_bindDatepickerEvents(){this.dp.on(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(t.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(t.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var x;let{year:E,month:w,fullMonth:R,date:q,fullDate:A}=p(this.date),H=((x=this.customData)===null||x===void 0?void 0:x.attrs)||{};this.$cell=a({attrs:{"data-year":E,"data-month":w,"data-date":q,"data-iso-date":`${E}-${R}-${A}`,...H}}),this.$cell.adpCell=this}_getClassName(){var x;let E=new Date,{selectOtherMonths:w,selectOtherYears:R}=this.opts,{minDate:q,maxDate:A,isDateDisabled:H}=this.dp,{day:j}=p(this.date),Q=this._isOutOfMinMaxRange(),ie=H(this.date),te=b("air-datepicker-cell",`-${this.singleType}-`,{"-current-":g(E,this.date,this.type),"-min-date-":q&&g(q,this.date,this.type),"-max-date-":A&&g(A,this.date,this.type)}),se="";switch(this.type){case t.days:se=b({"-weekend-":this.dp.isWeekend(j),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!w||Q||ie});break;case t.months:se=b({"-disabled-":Q});break;case t.years:se=b({"-other-decade-":this.isOtherDecade,"-disabled-":Q||this.isOtherDecade&&!R})}return b(te,se,(x=this.customData)===null||x===void 0?void 0:x.classes).split(" ")}_getHtml(){var x;let{year:E,month:w,date:R}=p(this.date),{showOtherMonths:q,showOtherYears:A}=this.opts;if((x=this.customData)!==null&&x!==void 0&&x.html)return this.customData.html;switch(this.type){case t.days:return!q&&this.isOtherMonth?"":R;case t.months:return this.dp.locale[this.opts.monthsField][w];case t.years:return!A&&this.isOtherDecade?"":E}}_isOutOfMinMaxRange(){let{minDate:x,maxDate:E}=this.dp,{type:w,date:R}=this,{month:q,year:A,date:H}=p(R),j=w===t.days,Q=w===t.years,ie=!!x&&new Date(A,Q?x.getMonth():q,j?H:x.getDate()),te=!!E&&new Date(A,Q?E.getMonth():q,j?H:E.getDate());return x&&E?y(ie,x)||v(te,E):x?y(ie,x):E?v(te,E):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:x,focusDate:E,rangeDateTo:w,rangeDateFrom:R}=this.dp,q=x.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!q)return;let A=R,H=w;if(q===1&&E){let se=v(E,x[0]);A=se?x[0]:E,H=se?E:x[0]}let j=b({"-in-range-":A&&H&&(Q=this.date,ie=A,te=H,v(Q,ie)&&y(Q,te)),"-range-from-":A&&g(this.date,A,this.type),"-range-to-":H&&g(this.date,H,this.type)});var Q,ie,te;j&&this.$cell.classList.add(...j.split(" "))}_handleSelectedStatus(){let x=this.dp._checkIfDateIsSelected(this.date,this.type);x?this.select():!x&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){g(this.dp.focusDate,this.date,this.type)&&this.focus()}_handleClasses(){this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),this.$cell.classList.add(...this._getClassName())}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function oe(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}let xe={[t.days]:`<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -${t.days}-"></div>`,[t.months]:`<div class="air-datepicker-body--cells -${t.months}-"></div>`,[t.years]:`<div class="air-datepicker-body--cells -${t.years}-"></div>`},Re=".air-datepicker-cell";class Ne{constructor(x){let{dp:E,type:w,opts:R}=x;oe(this,"handleClick",(q=>{let A=q.target.closest(Re).adpCell;if(A.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let H=this.dp._checkIfDateIsSelected(A.date,A.type);H?this.dp._handleAlreadySelectedDates(H,A.date):this.dp.selectDate(A.date)})),oe(this,"handleDayNameClick",(q=>{let A=q.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(A),datepicker:this.dp})})),oe(this,"onChangeCurrentView",(q=>{q!==this.type?this.hide():(this.show(),this.render())})),oe(this,"onMouseOverCell",(q=>{let A=O(q.target,Re);this.dp.setFocusDate(!!A&&A.adpCell.date)})),oe(this,"onMouseOutCell",(()=>{this.dp.setFocusDate(!1)})),oe(this,"onClickBody",(q=>{let{onClickDayName:A}=this.opts,H=q.target;H.closest(Re)&&this.handleClick(q),A&&H.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(q)})),oe(this,"onMouseDown",(q=>{this.pressed=!0;let A=O(q.target,Re),H=A&&A.adpCell;g(H.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),g(H.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)})),oe(this,"onMouseMove",(q=>{if(!this.pressed||!this.dp.isMinViewReached)return;q.preventDefault();let A=O(q.target,Re),H=A&&A.adpCell,{selectedDates:j,rangeDateTo:Q,rangeDateFrom:ie}=this.dp;if(!H||H.isDisabled)return;let{date:te}=H;if(j.length===2){if(this.rangeFromFocused&&!v(te,Q)){let{hours:se,minutes:St}=p(ie);te.setHours(se),te.setMinutes(St),this.dp.rangeDateFrom=te,this.dp.replaceDate(ie,te)}if(this.rangeToFocused&&!y(te,ie)){let{hours:se,minutes:St}=p(Q);te.setHours(se),te.setMinutes(St),this.dp.rangeDateTo=te,this.dp.replaceDate(Q,te)}}})),oe(this,"onMouseUp",(()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1})),oe(this,"onChangeViewDate",((q,A)=>{if(!this.isVisible)return;let H=f(q),j=f(A);switch(this.dp.currentView){case t.days:if(g(q,A,t.months))return;break;case t.months:if(g(q,A,t.years))return;break;case t.years:if(H[0]===j[0]&&H[1]===j[1])return}this.render()})),oe(this,"render",(()=>{this.destroyCells(),this._generateCells(),this.cells.forEach((q=>{this.$cells.appendChild(q.render())}))})),this.dp=E,this.type=w,this.opts=R,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===t.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:x,dynamicRange:E}=this.opts;T(this.$el,"mouseover",this.onMouseOverCell),T(this.$el,"mouseout",this.onMouseOutCell),T(this.$el,"click",this.onClickBody),x&&E&&(T(this.$el,"mousedown",this.onMouseDown),T(this.$el,"mousemove",this.onMouseMove),T(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(t.eventChangeViewDate,this.onChangeViewDate),this.dp.on(t.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=a({className:`air-datepicker-body -${this.type}-`,innerHtml:xe[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,E="",w=this.dp.isWeekend,{onClickDayName:R}=this.opts,q=x,A=0;for(;A<7;){let H=q%7;E+=`<div class="${b("air-datepicker-body--day-name",{[t.cssClassWeekend]:w(H),"-clickable-":!!R})}" data-day-index='${H}'>${this.dp.locale.daysMin[H]}</div>`,A++,q++}return E}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(x){let{type:E,dp:w,opts:R}=this;return new W({type:E,dp:w,opts:R,date:x,body:this})}_generateCells(){Ne.getDatesFunction(this.type)(this.dp,(x=>{this.cells.push(this._generateCell(x))}))}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach((x=>x.destroy())),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(t.eventChangeViewDate,this.onChangeViewDate),this.dp.off(t.eventChangeCurrentView,this.onChangeCurrentView)}static getDaysDates(x,E){let{viewDate:w,opts:{fixedHeight:R},locale:{firstDay:q}}=x,A=l(w),{year:H,month:j}=p(w),Q=new Date(H,j,1),ie=new Date(H,j,A),te=Q.getDay()-q,se=6-ie.getDay()+q;te=te<0?te+7:te,se=se>6?se-7:se;let St=(function(la,Qh){let{year:od,month:v3,date:y3}=p(la);return new Date(od,v3,y3-Qh)})(Q,te),Yr=A+te+se,zr=St.getDate(),{year:vn,month:vl}=p(St),aa=0;R&&(Yr=42);let sa=[];for(;aa<Yr;){let la=new Date(vn,vl,zr+aa);E&&E(la),sa.push(la),aa++}return sa}static getMonthsDates(x,E){let{year:w}=x.parsedViewDate,R=0,q=[];for(;R<12;){let A=new Date(w,R);q.push(A),E&&E(A),R++}return q}static getYearsDates(x,E){let w=f(x.viewDate),R=w[0]-1,q=w[1]+1,A=R,H=[];for(;A<=q;){let j=new Date(A,0);H.push(j),E&&E(j),A++}return H}static getDatesFunction(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return{[t.days]:Ne.getDaysDates,[t.months]:Ne.getMonthsDates,[t.years]:Ne.getYearsDates}[x]}}function nt(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}class tr{constructor(x){let{dp:E,opts:w}=x;nt(this,"onClickNav",(R=>{let q=O(R.target,".air-datepicker-nav--action");if(!q)return;let A=q.dataset.action;this.dp[A]()})),nt(this,"onChangeViewDate",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),nt(this,"onChangeCurrentView",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),nt(this,"onClickNavTitle",(()=>{this.dp.isFinalView||this.dp.up()})),nt(this,"update",(()=>{let{prevHtml:R,nextHtml:q}=this.opts;this.$prev.innerHTML=R,this.$next.innerHTML=q,this._resetNavStatus(),this.render(),this.handleNavStatus()})),nt(this,"renderDelay",(()=>{setTimeout(this.render)})),nt(this,"render",(()=>{this.$title.innerHTML=this._getTitle(),(function(R,q){for(let A in q)q[A]?R.classList.add(A):R.classList.remove(A)})(this.$title,{"-disabled-":this.dp.isFinalView})})),this.dp=E,this.opts=w,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=n(".air-datepicker-nav--title",this.$el),this.$prev=n('[data-action="prev"]',this.$el),this.$next=n('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(t.eventChangeViewDate,this.onChangeViewDate),this.dp.on(t.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(t.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(t.eventChangeTime,this.render))}destroy(){this.dp.off(t.eventChangeViewDate,this.onChangeViewDate),this.dp.off(t.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(t.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(t.eventChangeTime,this.render))}_createElement(){this.$el=a({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:x,opts:E}=this,w=E.navTitles[x.currentView];return typeof w=="function"?w(x):x.formatDate(x.viewDate,w)}handleNavStatus(){let{disableNavWhenOutOfRange:x}=this.opts,{minDate:E,maxDate:w}=this.dp;if(!E&&!w||!x)return;let{year:R,month:q}=this.dp.parsedViewDate,A=!!E&&p(E),H=!!w&&p(w);switch(this.dp.currentView){case t.days:E&&A.month>=q&&A.year>=R&&this._disableNav("prev"),w&&H.month<=q&&H.year<=R&&this._disableNav("next");break;case t.months:E&&A.year>=R&&this._disableNav("prev"),w&&H.year<=R&&this._disableNav("next");break;case t.years:{let j=f(this.dp.viewDate);E&&A.year>=j[0]&&this._disableNav("prev"),w&&H.year<=j[1]&&this._disableNav("next");break}}}_disableNav(x){n('[data-action="'+x+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(x){for(var E=arguments.length,w=new Array(E>1?E-1:0),R=1;R<E;R++)w[R-1]=arguments[R];x.length?x.forEach((q=>{q.classList.remove(...w)})):x.classList.remove(...w)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:x,nextHtml:E}=this.opts;this.$el.innerHTML=`<div class="air-datepicker-nav--action" data-action="prev">${x}</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">${E}</div>`}get isNavIsFunction(){let{navTitles:x}=this.opts;return Object.keys(x).find((E=>typeof x[E]=="function"))}}var Pr={today:{content:P=>P.locale.today,onClick:P=>P.setViewDate(new Date)},clear:{content:P=>P.locale.clear,onClick:P=>P.clear()}};class wr{constructor(x){let{dp:E,opts:w}=x;this.dp=E,this.opts=w,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=a({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:x}=this.opts;Array.isArray(x)||(x=[x]),x.forEach((E=>{let w=E;typeof E=="string"&&Pr[E]&&(w=Pr[E]);let R=this.createButton(w);w.onClick&&this.attachEventToButton(R,w.onClick),this.$el.appendChild(R)}))}attachEventToButton(x,E){x.addEventListener("click",(()=>{E(this.dp)}))}createButton(x){let{content:E,className:w,tagName:R="button",attrs:q={}}=x;return a({tagName:R,innerHtml:`<span tabindex='-1'>${typeof E=="function"?E(this.dp):E}</span>`,className:b("air-datepicker-button",w),attrs:q})}render(){this.generateButtons()}}function Nt(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}class rr{constructor(){let{opts:x,dp:E}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nt(this,"toggleTimepickerIsActive",(R=>{this.dp.timepickerIsActive=R})),Nt(this,"onChangeSelectedDate",(R=>{let{date:q,updateTime:A=!1}=R;q&&(this.setMinMaxTime(q),this.setCurrentTime(!!A&&q),this.addTimeToDate(q))})),Nt(this,"onChangeLastSelectedDate",(R=>{R&&(this.setTime(R),this.render())})),Nt(this,"onChangeInputRange",(R=>{let q=R.target;this[q.getAttribute("name")]=q.value,this.updateText(),this.dp.trigger(t.eventChangeTime,{hours:this.hours,minutes:this.minutes})})),Nt(this,"onMouseEnterLeave",(R=>{let q=R.target.getAttribute("name"),A=this.$minutesText;q==="hours"&&(A=this.$hoursText),A.classList.toggle("-focus-")})),Nt(this,"onFocus",(()=>{this.toggleTimepickerIsActive(!0)})),Nt(this,"onBlur",(()=>{this.toggleTimepickerIsActive(!1)})),this.opts=x,this.dp=E;let{timeFormat:w}=this.dp.locale;w&&(w.match($("h"))||w.match($("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(t.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let x="input";navigator.userAgent.match(/trident/gi)&&(x="change"),T(this.$ranges,x,this.onChangeInputRange),T(this.$ranges,"mouseenter",this.onMouseEnterLeave),T(this.$ranges,"mouseleave",this.onMouseEnterLeave),T(this.$ranges,"focus",this.onFocus),T(this.$ranges,"mousedown",this.onFocus),T(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=a({className:b("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(t.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:x,hours:E,displayHours:w,minutes:R,minHours:q,minMinutes:A,maxHours:H,maxMinutes:j,dayPeriod:Q,opts:{hoursStep:ie,minutesStep:te}}=this;this.$el.innerHTML=`<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">${m(w)}</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">${m(R)}</span> `+(x?`<span class='air-datepicker-time--current-ampm'>${Q}</span>`:"")+`</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row"> <input type="range" name="hours" value="${E}" min="${q}" max="${H}" step="${ie}"/> </div> <div class="air-datepicker-time--row"> <input type="range" name="minutes" value="${R}" min="${A}" max="${j}" step="${te}"/> </div></div>`}defineDOM(){let x=E=>n(E,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=x('[name="hours"]'),this.$minutes=x('[name="minutes"]'),this.$hoursText=x(".air-datepicker-time--current-hours"),this.$minutesText=x(".air-datepicker-time--current-minutes"),this.$ampm=x(".air-datepicker-time--current-ampm")}setTime(x){this.setMinMaxTime(x),this.setCurrentTime(x)}addTimeToDate(x){x&&(x.setHours(this.hours),x.setMinutes(this.minutes))}setMinMaxTime(x){if(this.setMinMaxTimeFromOptions(),x){let{minDate:E,maxDate:w}=this.dp;E&&g(x,E)&&this.setMinTimeFromMinDate(E),w&&g(x,w)&&this.setMaxTimeFromMaxDate(w)}}setCurrentTime(x){let{hours:E,minutes:w}=x?p(x):this;this.hours=U(E,this.minHours,this.maxHours),this.minutes=U(w,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:x,minMinutes:E,maxHours:w,maxMinutes:R}=this.opts;this.minHours=U(x,0,23),this.minMinutes=U(E,0,59),this.maxHours=U(w,0,23),this.maxMinutes=U(R,0,59)}setMinTimeFromMinDate(x){let{lastSelectedDate:E}=this.dp;this.minHours=x.getHours(),E&&E.getHours()>x.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=x.getMinutes()}setMaxTimeFromMaxDate(x){let{lastSelectedDate:E}=this.dp;this.maxHours=x.getHours(),E&&E.getHours()<x.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=x.getMinutes()}updateSliders(){s(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,s(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes}updateText(){this.$hoursText.innerHTML=m(this.displayHours),this.$minutesText.innerHTML=m(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)}set hours(x){this._hours=x;let{hours:E,dayPeriod:w}=h(x);this.displayHours=this.ampm?E:x,this.dayPeriod=w}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function Lt(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}class uo{constructor(x){let{dp:E,opts:w}=x;Lt(this,"pressedKeys",new Set),Lt(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],R=>R.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],R=>R.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],R=>R.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],R=>R.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],R=>R.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],R=>R.year-=10],[["Control","Shift","ArrowUp"],(R,q)=>q.up()]])),Lt(this,"handleHotKey",(R=>{let q=this.hotKeys.get(R),A=p(this.getInitialFocusDate());q(A,this.dp);let{year:H,month:j,date:Q}=A,ie=l(new Date(H,j));ie<Q&&(Q=ie);let te=this.dp.getClampedDate(new Date(H,j,Q));this.dp.setFocusDate(te,{viewDateTransition:!0})})),Lt(this,"isHotKeyPressed",(()=>{let R=!1,q=this.pressedKeys.size,A=H=>this.pressedKeys.has(H);for(let[H]of this.hotKeys){if(R)break;if(Array.isArray(H[0]))H.forEach((j=>{R||q!==j.length||(R=j.every(A)&&H)}));else{if(q!==H.length)continue;R=H.every(A)&&H}}return R})),Lt(this,"isArrow",(R=>R>=37&&R<=40)),Lt(this,"onKeyDown",(R=>{if(!this.dp.visible&&!this.dp.treatAsInline)return;let{key:q,which:A}=R,{dp:H,dp:{focusDate:j},opts:Q}=this;this.registerKey(q);let ie=this.isHotKeyPressed();if(ie)return R.preventDefault(),void this.handleHotKey(ie);if(this.isArrow(A))return R.preventDefault(),void this.focusNextCell(q);if(q==="Enter"){if(H.currentView!==Q.minView)return void H.down();if(j){let te=H._checkIfDateIsSelected(j);return void(te?H._handleAlreadySelectedDates(te,j):H.selectDate(j))}}q==="Escape"&&this.dp.hide()})),Lt(this,"onKeyUp",(R=>{this.removeKey(R.key)})),this.dp=E,this.opts=w,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:x}=this.dp;x.addEventListener("keydown",this.onKeyDown),x.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:x}=this.dp;x.removeEventListener("keydown",this.onKeyDown),x.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:x,currentView:E,selectedDates:w,parsedViewDate:{year:R,month:q}}=this.dp,A=x||w[w.length-1];if(!A)switch(E){case t.days:A=new Date(R,q,new Date().getDate());break;case t.months:A=new Date(R,q,1);break;case t.years:A=new Date(R,0,1)}return A}focusNextCell(x){let E=this.getInitialFocusDate(),{currentView:w}=this.dp,{days:R,months:q,years:A}=t,H=p(E),j=H.year,Q=H.month,ie=H.date;switch(x){case"ArrowLeft":w===R&&(ie-=1),w===q&&(Q-=1),w===A&&(j-=1);break;case"ArrowUp":w===R&&(ie-=7),w===q&&(Q-=3),w===A&&(j-=4);break;case"ArrowRight":w===R&&(ie+=1),w===q&&(Q+=1),w===A&&(j+=1);break;case"ArrowDown":w===R&&(ie+=7),w===q&&(Q+=3),w===A&&(j+=4)}let te=this.dp.getClampedDate(new Date(j,Q,ie));this.dp.setFocusDate(te,{viewDateTransition:!0})}registerKey(x){this.pressedKeys.add(x)}removeKey(x){this.pressedKeys.delete(x)}}let Qa={on(P,x){this.__events||(this.__events={}),this.__events[P]?this.__events[P].push(x):this.__events[P]=[x]},off(P,x){this.__events&&this.__events[P]&&(this.__events[P]=this.__events[P].filter((E=>E!==x)))},removeAllEvents(){this.__events={}},trigger(P){for(var x=arguments.length,E=new Array(x>1?x-1:0),w=1;w<x;w++)E[w-1]=arguments[w];this.__events&&this.__events[P]&&this.__events[P].forEach((R=>{R(...E)}))}};function ue(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}let Yi="",Qi="",he=!1;class ae{static buildGlobalContainer(x){he=!0,Yi=a({className:x,id:x}),n("body").appendChild(Yi)}constructor(x,E){var w=this;if(ue(this,"viewIndexes",[t.days,t.months,t.years]),ue(this,"next",(()=>{let{year:A,month:H}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,H+1,1));break;case t.months:this.setViewDate(new Date(A+1,H,1));break;case t.years:this.setViewDate(new Date(A+10,0,1))}})),ue(this,"prev",(()=>{let{year:A,month:H}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,H-1,1));break;case t.months:this.setViewDate(new Date(A-1,H,1));break;case t.years:this.setViewDate(new Date(A-10,0,1))}})),ue(this,"_finishHide",(()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)})),ue(this,"setPosition",(function(A){let H=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(A=A||w.opts.position)=="function")return void(w.customHide=A({$datepicker:w.$datepicker,$target:w.$el,$pointer:w.$pointer,isViewChange:H,done:w._finishHide}));let j,Q,{isMobile:ie}=w.opts,te=w.$el.getBoundingClientRect(),se=w.$el.getBoundingClientRect(),St=w.$datepicker.offsetParent,Yr=w.$el.offsetParent,zr=w.$datepicker.getBoundingClientRect(),vn=A.split(" "),vl=window.scrollY,aa=window.scrollX,sa=w.opts.offset,la=vn[0],Qh=vn[1];if(ie)w.$datepicker.style.cssText="left: 50%; top: 50%";else{if(St===Yr&&St!==document.body&&(se={top:w.$el.offsetTop,left:w.$el.offsetLeft,width:te.width,height:w.$el.offsetHeight},vl=0,aa=0),St!==Yr&&St!==document.body){let od=St.getBoundingClientRect();se={top:te.top-od.top,left:te.left-od.left,width:te.width,height:te.height},vl=0,aa=0}switch(la){case"top":j=se.top-zr.height-sa;break;case"right":Q=se.left+se.width+sa;break;case"bottom":j=se.top+se.height+sa;break;case"left":Q=se.left-zr.width-sa}switch(Qh){case"top":j=se.top;break;case"right":Q=se.left+se.width-zr.width;break;case"bottom":j=se.top+se.height-zr.height;break;case"left":Q=se.left;break;case"center":/left|right/.test(la)?j=se.top+se.height/2-zr.height/2:Q=se.left+se.width/2-zr.width/2}w.$datepicker.style.cssText=`left: ${Q+aa}px; top: ${j+vl}px`}})),ue(this,"_setInputValue",(()=>{let{opts:A,$altField:H,locale:{dateFormat:j}}=this,{altFieldDateFormat:Q,altField:ie}=A;ie&&H&&(H.value=this._getInputValue(Q)),this.$el.value=this._getInputValue(j),this.$el.dispatchEvent(new Event("change"))})),ue(this,"_getInputValue",(A=>{let{selectedDates:H,opts:j}=this,{multipleDates:Q,multipleDatesSeparator:ie}=j;if(!H.length)return"";let te=typeof A=="function",se=te?A(Q?H:H[0]):H.map((St=>this.formatDate(St,A)));return se=te?se:se.join(ie),se})),ue(this,"_checkIfDateIsSelected",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.days,j=!1;return w.selectedDates.some((Q=>{let ie=g(A,Q,H);return j=ie&&Q,ie})),j})),ue(this,"_scheduleCallAfterTransition",(A=>{this._cancelScheduledCall(),A&&A(!1),this._onTransitionEnd=()=>{A&&A(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})})),ue(this,"_cancelScheduledCall",(()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)})),ue(this,"setViewDate",(A=>{if(!((A=S(A))instanceof Date)||g(A,this.viewDate))return;let H=this.viewDate;this.viewDate=A;let{onChangeViewDate:j}=this.opts;if(j){let{month:Q,year:ie}=this.parsedViewDate;j({month:Q,year:ie,decade:this.curDecade})}this.trigger(t.eventChangeViewDate,A,H)})),ue(this,"setFocusDate",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!A||(A=S(A))instanceof Date)&&(w.focusDate=A,w.trigger(t.eventChangeFocusDate,A,H))})),ue(this,"setCurrentView",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w.viewIndexes.includes(A)){if(w.currentView=A,w.elIsInput&&w.visible&&w.setPosition(void 0,!0),w.trigger(t.eventChangeCurrentView,A),!w.views[A]){let j=w.views[A]=new Ne({dp:w,opts:w.opts,type:A});w.shouldUpdateDOM&&w.$content.appendChild(j.$el)}w.opts.onChangeView&&!H.silent&&w.opts.onChangeView(A)}})),ue(this,"_updateLastSelectedDate",(A=>{this.lastSelectedDate=A,this.trigger(t.eventChangeLastSelectedDate,A)})),ue(this,"destroy",(()=>{if(this.isDestroyed)return;let{showEvent:A,isMobile:H}=this.opts,j=this.$datepicker.parentNode;j&&j.removeChild(this.$datepicker),this.$el.removeEventListener(A,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),H&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts={},this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=[],this.rangeDateFrom=null,this.rangeDateTo=null,this.isDestroyed=!0})),ue(this,"update",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=D({},w.opts),{silent:Q}=H;D(w.opts,A);let{timepicker:ie,buttons:te,range:se,selectedDates:St,isMobile:Yr}=w.opts,zr=w.visible||w.treatAsInline;w._createMinMaxDates(),w._limitViewDateByMaxMinDates(),w._handleLocale(),St&&(w.selectedDates=[],w.selectDate(St,{silent:Q})),A.view&&w.setCurrentView(A.view,{silent:Q}),w._setInputValue(),j.range&&!se?(w.rangeDateTo=!1,w.rangeDateFrom=!1):!j.range&&se&&w.selectedDates.length&&(w.rangeDateFrom=w.selectedDates[0],w.rangeDateTo=w.selectedDates[1]),j.timepicker&&!ie?(zr&&w.timepicker.destroy(),w.timepicker=!1,w.$timepicker.parentNode.removeChild(w.$timepicker)):!j.timepicker&&ie&&w._addTimepicker(),!j.buttons&&te?w._addButtons():j.buttons&&!te?(w.buttons.destroy(),w.$buttons.parentNode.removeChild(w.$buttons)):zr&&j.buttons&&te&&w.buttons.clearHtml().render(),!j.isMobile&&Yr?(w.treatAsInline||Qi||w._createMobileOverlay(),w._addMobileAttributes(),w.visible&&w._showMobileOverlay()):j.isMobile&&!Yr&&(w._removeMobileAttributes(),w.visible&&(Qi.classList.remove("-active-"),typeof w.opts.position!="function"&&w.setPosition())),zr&&(w.nav.update(),w.views[w.currentView].render(),w.currentView===t.days&&w.views[w.currentView].renderDayNames())})),ue(this,"disableDate",((A,H)=>{(Array.isArray(A)?A:[A]).forEach((j=>{let Q=S(j);if(!Q)return;let ie=H?"delete":"add";this.disabledDates[ie](this.formatDate(Q,"yyyy-MM-dd"));let te=this.getCell(Q,this.currentViewSingular);te&&te.adpCell.render()}),[])})),ue(this,"enableDate",(A=>{this.disableDate(A,!0)})),ue(this,"isDateDisabled",(A=>{let H=S(A);return this.disabledDates.has(this.formatDate(H,"yyyy-MM-dd"))})),ue(this,"isOtherMonth",(A=>{let{month:H}=p(A);return H!==this.parsedViewDate.month})),ue(this,"isOtherYear",(A=>{let{year:H}=p(A);return H!==this.parsedViewDate.year})),ue(this,"isOtherDecade",(A=>{let{year:H}=p(A),[j,Q]=f(this.viewDate);return H<j||H>Q})),ue(this,"_onChangeSelectedDate",(A=>{let{silent:H}=A;setTimeout((()=>{this._setInputValue(),this.opts.onSelect&&!H&&this._triggerOnSelect()}))})),ue(this,"_onChangeFocusedDate",(function(A){let{viewDateTransition:H}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!A)return;let j=!1;H&&(j=w.isOtherMonth(A)||w.isOtherYear(A)||w.isOtherDecade(A)),j&&w.setViewDate(A),w.opts.onFocus&&w.opts.onFocus({datepicker:w,date:A})})),ue(this,"_onChangeTime",(A=>{let{hours:H,minutes:j}=A,Q=new Date,{lastSelectedDate:ie,opts:{onSelect:te}}=this,se=ie;ie||(se=Q);let St=this.getCell(se,this.currentViewSingular),Yr=St&&St.adpCell;Yr&&Yr.isDisabled||(se.setHours(H),se.setMinutes(j),ie?(this._setInputValue(),te&&this._triggerOnSelect()):this.selectDate(se))})),ue(this,"_onFocus",(A=>{this.visible||this.show()})),ue(this,"_onBlur",(A=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()})),ue(this,"_onMouseDown",(A=>{this.inFocus=!0})),ue(this,"_onMouseUp",(A=>{this.inFocus=!1,this.$el.focus()})),ue(this,"_onResize",(()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()})),ue(this,"_onClickOverlay",(()=>{this.visible&&this.hide()})),ue(this,"getViewDates",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return Ne.getDatesFunction(A)(w)})),ue(this,"isWeekend",(A=>this.opts.weekends.includes(A))),ue(this,"getClampedDate",(A=>{let{minDate:H,maxDate:j}=this,Q=A;return j&&v(A,j)?Q=j:H&&y(A,H)&&(Q=H),Q})),this.$el=n(x),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=D({},r,E),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||!1);let{view:R,startDate:q}=this.opts;q||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=S(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=R,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=!1,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:x,treatAsInline:E,opts:{inline:w,isMobile:R,selectedDates:q,keyboardNav:A,onlyTimepicker:H}}=this,j=n("body");(!he||he&&Yi&&!j.contains(Yi))&&!w&&this.elIsInput&&!this.$customContainer&&ae.buildGlobalContainer(ae.defaultGlobalContainerId),!R||Qi||E||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(w||this._bindEvents(),A&&!H&&(this.keyboardNav=new uo({dp:this,opts:x}))),q&&this.selectDate(q,{silent:!0}),this.opts.visible&&!E&&this.show(),R&&!E&&this.$el.setAttribute("readonly",!0),E&&this._createComponents()}_createMobileOverlay(){Qi=a({className:"air-datepicker-overlay"}),Yi.appendChild(Qi)}_createComponents(){let{opts:x,treatAsInline:E,opts:{inline:w,buttons:R,timepicker:q,position:A,classes:H,onlyTimepicker:j,isMobile:Q}}=this;this._buildBaseHtml(),this.elIsInput&&(w||this._setPositionClasses(A)),!w&&this.elIsInput||this.$datepicker.classList.add("-inline-"),H&&this.$datepicker.classList.add(...H.split(" ")),j&&this.$datepicker.classList.add("-only-timepicker-"),Q&&!E&&this._addMobileAttributes(),this.views[this.currentView]=new Ne({dp:this,type:this.currentView,opts:x}),this.nav=new tr({dp:this,opts:x}),q&&this._addTimepicker(),R&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let x in this.views)this.views[x].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){Qi.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Qi.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:x,maxDate:E}=this.opts;this.minDate=!!x&&S(x),this.maxDate=!!E&&S(E)}_addTimepicker(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new rr({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=a({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new wr({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(t.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(t.eventChangeFocusDate,this._onChangeFocusedDate),this.on(t.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:x}=this.opts;var E,w;this.elIsInput?x?(E=this.$datepicker,(w=this.$el).parentNode.insertBefore(E,w.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=n(".air-datepicker--content",this.$datepicker),this.$pointer=n(".air-datepicker--pointer",this.$datepicker),this.$nav=n(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:x,dateFormat:E,firstDay:w,timepicker:R,onlyTimepicker:q,timeFormat:A,dateTimeSeparator:H}=this.opts;var j;this.locale=(j=x,JSON.parse(JSON.stringify(j))),E&&(this.locale.dateFormat=E),A!==void 0&&A!==""&&(this.locale.timeFormat=A);let{timeFormat:Q}=this.locale;if(w!==""&&(this.locale.firstDay=w),R&&typeof E!="function"){let ie=Q?H:"";this.locale.dateFormat=[this.locale.dateFormat,Q||""].join(ie)}q&&typeof E!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(x){if(typeof x=="function")return void this.$datepicker.classList.add("-custom-position-");let E=(x=x.split(" "))[0],w=`air-datepicker -${E}-${x[1]}- -from-${E}-`;this.$datepicker.classList.add(...w.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:x,minDate:E,maxDate:w}=this;w&&v(x,w)&&this.setViewDate(w),E&&y(x,E)&&this.setViewDate(E)}formatDate(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,E=arguments.length>1?arguments[1]:void 0;if(x=S(x),!(x instanceof Date))return;let w=E,R=this.locale,q=p(x),A=q.dayPeriod,H=f(x),j=ae.replacer,Q={T:x.getTime(),m:q.minutes,mm:q.fullMinutes,h:q.hours12,hh:q.fullHours12,H:q.hours,HH:q.fullHours,aa:A,AA:A.toUpperCase(),E:R.daysShort[q.day],EEEE:R.days[q.day],d:q.date,dd:q.fullDate,M:q.month+1,MM:q.fullMonth,MMM:R.monthsShort[q.month],MMMM:R.months[q.month],yy:q.year.toString().slice(-2),yyyy:q.year,yyyy1:H[0],yyyy2:H[1]};for(let[ie,te]of Object.entries(Q))w=j(w,$(ie),te);return w}down(x){this._handleUpDownActions(x,"down")}up(x){this._handleUpDownActions(x,"up")}selectDate(x){let E,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:R,parsedViewDate:q,selectedDates:A}=this,{updateTime:H,silent:j}=w,{moveToOtherMonthsOnSelect:Q,moveToOtherYearsOnSelect:ie,multipleDates:te,range:se,autoClose:St,onBeforeSelect:Yr}=this.opts,zr=A.length;if(Array.isArray(x))return x.forEach((vn=>{this.selectDate(vn,w)})),new Promise((vn=>{setTimeout(vn)}));if((x=S(x))instanceof Date){if(Yr&&!j&&!Yr({date:x,datepicker:this}))return Promise.resolve();if(R===t.days&&x.getMonth()!==q.month&&Q&&(E=new Date(x.getFullYear(),x.getMonth(),1)),R===t.years&&x.getFullYear()!==q.year&&ie&&(E=new Date(x.getFullYear(),0,1)),E&&this.setViewDate(E),te&&!se){if(zr===te)return;this._checkIfDateIsSelected(x)||A.push(x)}else if(se)switch(zr){case 1:A.push(x),this.rangeDateTo||(this.rangeDateTo=x),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=x),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[x],this.rangeDateFrom=x,this.rangeDateTo="";break;default:this.selectedDates=[x],this.rangeDateFrom=x}else this.selectedDates=[x];return this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,silent:w?.silent,date:x,updateTime:H}),this._updateLastSelectedDate(x),St&&!this.timepickerIsActive&&this.visible&&(te||se?se&&zr===1&&this.hide():this.hide()),new Promise((vn=>{setTimeout(vn)}))}}unselectDate(x){let E=this.selectedDates,w=this;if((x=S(x))instanceof Date)return E.some(((R,q)=>{if(g(R,x))return E.splice(q,1),w.selectedDates.length?(w.rangeDateTo="",w.rangeDateFrom=E[0],w._updateLastSelectedDate(w.selectedDates[w.selectedDates.length-1])):(w.rangeDateFrom="",w.rangeDateTo="",w._updateLastSelectedDate(!1)),this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,date:x}),!0}))}replaceDate(x,E){let w=this.selectedDates.find((q=>g(q,x,this.currentView))),R=this.selectedDates.indexOf(w);R<0||g(this.selectedDates[R],E,this.currentView)||(this.selectedDates[R]=E,this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,date:E,updateTime:!0}),this._updateLastSelectedDate(E))}clear(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.lastSelectedDate=!1,this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,silent:x.silent}),new Promise((E=>{setTimeout(E)}))}show(){let{onShow:x,isMobile:E}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,x&&this._scheduleCallAfterTransition(x),E&&this._showMobileOverlay()}hide(){let{onHide:x,isMobile:E}=this.opts,w=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((R=>{!this.customHide&&(R&&w||!R&&!w)&&this._finishHide(),x&&x(R)})),E&&Qi.classList.remove("-active-")}_triggerOnSelect(){let x=[],E=[],{selectedDates:w,locale:R,opts:{onSelect:q,multipleDates:A,range:H}}=this,j=A||H,Q=typeof R.dateFormat=="function";w.length&&(x=w.map(C),E=Q?A?R.dateFormat(x):x.map((ie=>R.dateFormat(ie))):x.map((ie=>this.formatDate(ie,R.dateFormat)))),q({date:j?x:x[0],formattedDate:j?E:E[0],datepicker:this})}_handleAlreadySelectedDates(x,E){let{selectedDates:w,rangeDateFrom:R,rangeDateTo:q}=this,{range:A,toggleSelected:H}=this.opts,j=w.length,Q=typeof H=="function"?H({datepicker:this,date:E}):H,ie=!!(A&&j===1&&x),te=ie?C(E):E;A&&!Q&&(j!==2&&this.selectDate(te),j===2&&g(R,q))||(Q?this.unselectDate(te):this._updateLastSelectedDate(ie?te:x))}_handleUpDownActions(x,E){if(!((x=S(x||this.focusDate||this.viewDate))instanceof Date))return;let w=E==="up"?this.viewIndex+1:this.viewIndex-1;w>2&&(w=2),w<0&&(w=0),this.setViewDate(new Date(x.getFullYear(),x.getMonth(),1)),this.setCurrentView(this.viewIndexes[w])}getCell(x){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.day;if(!((x=S(x))instanceof Date))return;let{year:w,month:R,date:q}=p(x),A=`[data-year="${w}"]`,H=`[data-month="${R}"]`,j={[t.day]:`${A}${H}[data-date="${q}"]`,[t.month]:`${A}${H}`,[t.year]:`${A}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(j[E]):void 0}_showMobileOverlay(){Qi.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce(((x,E)=>parseFloat(E)+x),0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return p(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return f(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===t.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===t.days}get $container(){return this.$customContainer||Yi}static replacer(x,E,w){return x.replace(E,(function(R,q,A,H){return q+w+H}))}}var _e;return ue(ae,"defaults",r),ue(ae,"version","3.6.0"),ue(ae,"defaultGlobalContainerId","air-datepicker-global-container"),_e=ae.prototype,Object.assign(_e,Qa),i.default})()}))});var K1=Hn((Gie,W1)=>{var zi=-1,Br=1,Qt=0;function Ql(o,i,t,r,n){if(o===i)return o?[[Qt,o]]:[];if(t!=null){var a=M8(o,i,t);if(a)return a}var s=fm(o,i),l=o.substring(0,s);o=o.substring(s),i=i.substring(s),s=sp(o,i);var p=o.substring(o.length-s);o=o.substring(0,o.length-s),i=i.substring(0,i.length-s);var h=_8(o,i);return l&&h.unshift([Qt,l]),p&&h.push([Qt,p]),gm(h,n),r&&C8(h),h}function _8(o,i){var t;if(!o)return[[Br,i]];if(!i)return[[zi,o]];var r=o.length>i.length?o:i,n=o.length>i.length?i:o,a=r.indexOf(n);if(a!==-1)return t=[[Br,r.substring(0,a)],[Qt,n],[Br,r.substring(a+n.length)]],o.length>i.length&&(t[0][0]=t[2][0]=zi),t;if(n.length===1)return[[zi,o],[Br,i]];var s=S8(o,i);if(s){var l=s[0],p=s[1],h=s[2],m=s[3],f=s[4],b=Ql(l,h),g=Ql(p,m);return b.concat([[Qt,f]],g)}return k8(o,i)}function k8(o,i){for(var t=o.length,r=i.length,n=Math.ceil((t+r)/2),a=n,s=2*n,l=new Array(s),p=new Array(s),h=0;h<s;h++)l[h]=-1,p[h]=-1;l[a+1]=0,p[a+1]=0;for(var m=t-r,f=m%2!==0,b=0,g=0,v=0,y=0,C=0;C<n;C++){for(var T=-C+b;T<=C-g;T+=2){var O=a+T,U;T===-C||T!==C&&l[O-1]<l[O+1]?U=l[O+1]:U=l[O-1]+1;for(var D=U-T;U<t&&D<r&&o.charAt(U)===i.charAt(D);)U++,D++;if(l[O]=U,U>t)g+=2;else if(D>r)b+=2;else if(f){var S=a+m-T;if(S>=0&&S<s&&p[S]!==-1){var $=t-p[S];if(U>=$)return N1(o,i,U,D)}}}for(var L=-C+v;L<=C-y;L+=2){var S=a+L,$;L===-C||L!==C&&p[S-1]<p[S+1]?$=p[S+1]:$=p[S-1]+1;for(var W=$-L;$<t&&W<r&&o.charAt(t-$-1)===i.charAt(r-W-1);)$++,W++;if(p[S]=$,$>t)y+=2;else if(W>r)v+=2;else if(!f){var O=a+m-L;if(O>=0&&O<s&&l[O]!==-1){var U=l[O],D=a+U-O;if($=t-$,U>=$)return N1(o,i,U,D)}}}}return[[zi,o],[Br,i]]}function N1(o,i,t,r){var n=o.substring(0,t),a=i.substring(0,r),s=o.substring(t),l=i.substring(r),p=Ql(n,a),h=Ql(s,l);return p.concat(h)}function fm(o,i){if(!o||!i||o.charAt(0)!==i.charAt(0))return 0;for(var t=0,r=Math.min(o.length,i.length),n=r,a=0;t<n;)o.substring(a,n)==i.substring(a,n)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return V1(o.charCodeAt(n-1))&&n--,n}function P1(o,i){var t=o.length,r=i.length;if(t==0||r==0)return 0;t>r?o=o.substring(t-r):t<r&&(i=i.substring(0,t));var n=Math.min(t,r);if(o==i)return n;for(var a=0,s=1;;){var l=o.substring(n-s),p=i.indexOf(l);if(p==-1)return a;s+=p,(p==0||o.substring(n-s)==i.substring(0,s))&&(a=s,s++)}}function sp(o,i){if(!o||!i||o.slice(-1)!==i.slice(-1))return 0;for(var t=0,r=Math.min(o.length,i.length),n=r,a=0;t<n;)o.substring(o.length-n,o.length-a)==i.substring(i.length-n,i.length-a)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return U1(o.charCodeAt(o.length-n))&&n--,n}function S8(o,i){var t=o.length>i.length?o:i,r=o.length>i.length?i:o;if(t.length<4||r.length*2<t.length)return null;function n(g,v,y){for(var C=g.substring(y,y+Math.floor(g.length/4)),T=-1,O="",U,D,S,$;(T=v.indexOf(C,T+1))!==-1;){var L=fm(g.substring(y),v.substring(T)),W=sp(g.substring(0,y),v.substring(0,T));O.length<W+L&&(O=v.substring(T-W,T)+v.substring(T,T+L),U=g.substring(0,y-W),D=g.substring(y+L),S=v.substring(0,T-W),$=v.substring(T+L))}return O.length*2>=g.length?[U,D,S,$,O]:null}var a=n(t,r,Math.ceil(t.length/4)),s=n(t,r,Math.ceil(t.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var p,h,m,f;o.length>i.length?(p=l[0],h=l[1],m=l[2],f=l[3]):(m=l[0],f=l[1],p=l[2],h=l[3]);var b=l[4];return[p,h,m,f,b]}function C8(o){for(var i=!1,t=[],r=0,n=null,a=0,s=0,l=0,p=0,h=0;a<o.length;)o[a][0]==Qt?(t[r++]=a,s=p,l=h,p=0,h=0,n=o[a][1]):(o[a][0]==Br?p+=o[a][1].length:h+=o[a][1].length,n&&n.length<=Math.max(s,l)&&n.length<=Math.max(p,h)&&(o.splice(t[r-1],0,[zi,n]),o[t[r-1]+1][0]=Br,r--,r--,a=r>0?t[r-1]:-1,s=0,l=0,p=0,h=0,n=null,i=!0)),a++;for(i&&gm(o),$8(o),a=1;a<o.length;){if(o[a-1][0]==zi&&o[a][0]==Br){var m=o[a-1][1],f=o[a][1],b=P1(m,f),g=P1(f,m);b>=g?(b>=m.length/2||b>=f.length/2)&&(o.splice(a,0,[Qt,f.substring(0,b)]),o[a-1][1]=m.substring(0,m.length-b),o[a+1][1]=f.substring(b),a++):(g>=m.length/2||g>=f.length/2)&&(o.splice(a,0,[Qt,m.substring(0,g)]),o[a-1][0]=Br,o[a-1][1]=f.substring(0,f.length-g),o[a+1][0]=zi,o[a+1][1]=m.substring(g),a++),a++}a++}}var H1=/[^a-zA-Z0-9]/,F1=/\s/,B1=/[\r\n]/,E8=/\n\r?\n$/,T8=/^\r?\n\r?\n/;function $8(o){function i(g,v){if(!g||!v)return 6;var y=g.charAt(g.length-1),C=v.charAt(0),T=y.match(H1),O=C.match(H1),U=T&&y.match(F1),D=O&&C.match(F1),S=U&&y.match(B1),$=D&&C.match(B1),L=S&&g.match(E8),W=$&&v.match(T8);return L||W?5:S||$?4:T&&!U&&D?3:U||D?2:T||O?1:0}for(var t=1;t<o.length-1;){if(o[t-1][0]==Qt&&o[t+1][0]==Qt){var r=o[t-1][1],n=o[t][1],a=o[t+1][1],s=sp(r,n);if(s){var l=n.substring(n.length-s);r=r.substring(0,r.length-s),n=l+n.substring(0,n.length-s),a=l+a}for(var p=r,h=n,m=a,f=i(r,n)+i(n,a);n.charAt(0)===a.charAt(0);){r+=n.charAt(0),n=n.substring(1)+a.charAt(0),a=a.substring(1);var b=i(r,n)+i(n,a);b>=f&&(f=b,p=r,h=n,m=a)}o[t-1][1]!=p&&(p?o[t-1][1]=p:(o.splice(t-1,1),t--),o[t][1]=h,m?o[t+1][1]=m:(o.splice(t+1,1),t--))}t++}}function gm(o,i){o.push([Qt,""]);for(var t=0,r=0,n=0,a="",s="",l;t<o.length;){if(t<o.length-1&&!o[t][1]){o.splice(t,1);continue}switch(o[t][0]){case Br:n++,s+=o[t][1],t++;break;case zi:r++,a+=o[t][1],t++;break;case Qt:var p=t-n-r-1;if(i){if(p>=0&&G1(o[p][1])){var h=o[p][1].slice(-1);if(o[p][1]=o[p][1].slice(0,-1),a=h+a,s=h+s,!o[p][1]){o.splice(p,1),t--;var m=p-1;o[m]&&o[m][0]===Br&&(n++,s=o[m][1]+s,m--),o[m]&&o[m][0]===zi&&(r++,a=o[m][1]+a,m--),p=m}}if(j1(o[t][1])){var h=o[t][1].charAt(0);o[t][1]=o[t][1].slice(1),a+=h,s+=h}}if(t<o.length-1&&!o[t][1]){o.splice(t,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=fm(s,a),l!==0&&(p>=0?o[p][1]+=s.substring(0,l):(o.splice(0,0,[Qt,s.substring(0,l)]),t++),s=s.substring(l),a=a.substring(l)),l=sp(s,a),l!==0&&(o[t][1]=s.substring(s.length-l)+o[t][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var f=n+r;a.length===0&&s.length===0?(o.splice(t-f,f),t=t-f):a.length===0?(o.splice(t-f,f,[Br,s]),t=t-f+1):s.length===0?(o.splice(t-f,f,[zi,a]),t=t-f+1):(o.splice(t-f,f,[zi,a],[Br,s]),t=t-f+2)}t!==0&&o[t-1][0]===Qt?(o[t-1][1]+=o[t][1],o.splice(t,1)):t++,n=0,r=0,a="",s="";break}}o[o.length-1][1]===""&&o.pop();var b=!1;for(t=1;t<o.length-1;)o[t-1][0]===Qt&&o[t+1][0]===Qt&&(o[t][1].substring(o[t][1].length-o[t-1][1].length)===o[t-1][1]?(o[t][1]=o[t-1][1]+o[t][1].substring(0,o[t][1].length-o[t-1][1].length),o[t+1][1]=o[t-1][1]+o[t+1][1],o.splice(t-1,1),b=!0):o[t][1].substring(0,o[t+1][1].length)==o[t+1][1]&&(o[t-1][1]+=o[t+1][1],o[t][1]=o[t][1].substring(o[t+1][1].length)+o[t+1][1],o.splice(t+1,1),b=!0)),t++;b&&gm(o,i)}function V1(o){return o>=55296&&o<=56319}function U1(o){return o>=56320&&o<=57343}function j1(o){return U1(o.charCodeAt(0))}function G1(o){return V1(o.charCodeAt(o.length-1))}function A8(o){for(var i=[],t=0;t<o.length;t++)o[t][1].length>0&&i.push(o[t]);return i}function mm(o,i,t,r){return G1(o)||j1(r)?null:A8([[Qt,o],[zi,i],[Br,t],[Qt,r]])}function M8(o,i,t){var r=typeof t=="number"?{index:t,length:0}:t.oldRange,n=typeof t=="number"?null:t.newRange,a=o.length,s=i.length;if(r.length===0&&(n===null||n.length===0)){var l=r.index,p=o.slice(0,l),h=o.slice(l),m=n?n.index:null;e:{var f=l+s-a;if(m!==null&&m!==f||f<0||f>s)break e;var b=i.slice(0,f),g=i.slice(f);if(g!==h)break e;var v=Math.min(l,f),y=p.slice(0,v),C=b.slice(0,v);if(y!==C)break e;var T=p.slice(v),O=b.slice(v);return mm(y,T,O,h)}e:{if(m!==null&&m!==l)break e;var U=l,b=i.slice(0,U),g=i.slice(U);if(b!==p)break e;var D=Math.min(a-U,s-U),S=h.slice(h.length-D),$=g.slice(g.length-D);if(S!==$)break e;var T=h.slice(0,h.length-D),O=g.slice(0,g.length-D);return mm(p,T,O,S)}}if(r.length>0&&n&&n.length===0)e:{var y=o.slice(0,r.index),S=o.slice(r.index+r.length),v=y.length,D=S.length;if(s<v+D)break e;var C=i.slice(0,v),$=i.slice(s-D);if(y!==C||S!==$)break e;var T=o.slice(v,a-D),O=i.slice(v,s-D);return mm(y,T,O,S)}return null}function lp(o,i,t,r){return Ql(o,i,t,r,!0)}lp.INSERT=Br;lp.DELETE=zi;lp.EQUAL=Qt;W1.exports=lp});var Mm=Hn((Xl,zs)=>{var L8=200,ay="__lodash_hash_undefined__",sy=9007199254740991,km="[object Arguments]",q8="[object Array]",ly="[object Boolean]",cy="[object Date]",I8="[object Error]",Sm="[object Function]",dy="[object GeneratorFunction]",cp="[object Map]",py="[object Number]",Cm="[object Object]",Y1="[object Promise]",hy="[object RegExp]",dp="[object Set]",uy="[object String]",my="[object Symbol]",vm="[object WeakMap]",fy="[object ArrayBuffer]",pp="[object DataView]",gy="[object Float32Array]",by="[object Float64Array]",vy="[object Int8Array]",yy="[object Int16Array]",xy="[object Int32Array]",wy="[object Uint8Array]",zy="[object Uint8ClampedArray]",_y="[object Uint16Array]",ky="[object Uint32Array]",D8=/[\\^$.*+?()[\]{}|]/g,R8=/\w*$/,O8=/^\[object .+?Constructor\]$/,N8=/^(?:0|[1-9]\d*)$/,rt={};rt[km]=rt[q8]=rt[fy]=rt[pp]=rt[ly]=rt[cy]=rt[gy]=rt[by]=rt[vy]=rt[yy]=rt[xy]=rt[cp]=rt[py]=rt[Cm]=rt[hy]=rt[dp]=rt[uy]=rt[my]=rt[wy]=rt[zy]=rt[_y]=rt[ky]=!0;rt[I8]=rt[Sm]=rt[vm]=!1;var P8=typeof global=="object"&&global&&global.Object===Object&&global,H8=typeof self=="object"&&self&&self.Object===Object&&self,Kn=P8||H8||Function("return this")(),Sy=typeof Xl=="object"&&Xl&&!Xl.nodeType&&Xl,Q1=Sy&&typeof zs=="object"&&zs&&!zs.nodeType&&zs,F8=Q1&&Q1.exports===Sy;function B8(o,i){return o.set(i[0],i[1]),o}function V8(o,i){return o.add(i),o}function U8(o,i){for(var t=-1,r=o?o.length:0;++t<r&&i(o[t],t,o)!==!1;);return o}function j8(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}function Cy(o,i,t,r){var n=-1,a=o?o.length:0;for(r&&a&&(t=o[++n]);++n<a;)t=i(t,o[n],n,o);return t}function G8(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function W8(o,i){return o?.[i]}function Ey(o){var i=!1;if(o!=null&&typeof o.toString!="function")try{i=!!(o+"")}catch{}return i}function X1(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function Em(o,i){return function(t){return o(i(t))}}function J1(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var K8=Array.prototype,Y8=Function.prototype,hp=Object.prototype,bm=Kn["__core-js_shared__"],Z1=(function(){var o=/[^.]+$/.exec(bm&&bm.keys&&bm.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),Ty=Y8.toString,$o=hp.hasOwnProperty,up=hp.toString,Q8=RegExp("^"+Ty.call($o).replace(D8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ey=F8?Kn.Buffer:void 0,ty=Kn.Symbol,ry=Kn.Uint8Array,X8=Em(Object.getPrototypeOf,Object),J8=Object.create,Z8=hp.propertyIsEnumerable,e9=K8.splice,iy=Object.getOwnPropertySymbols,t9=ey?ey.isBuffer:void 0,r9=Em(Object.keys,Object),ym=Ss(Kn,"DataView"),Jl=Ss(Kn,"Map"),xm=Ss(Kn,"Promise"),wm=Ss(Kn,"Set"),zm=Ss(Kn,"WeakMap"),Zl=Ss(Object,"create"),i9=$a(ym),n9=$a(Jl),o9=$a(xm),a9=$a(wm),s9=$a(zm),ny=ty?ty.prototype:void 0,oy=ny?ny.valueOf:void 0;function Ta(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function l9(){this.__data__=Zl?Zl(null):{}}function c9(o){return this.has(o)&&delete this.__data__[o]}function d9(o){var i=this.__data__;if(Zl){var t=i[o];return t===ay?void 0:t}return $o.call(i,o)?i[o]:void 0}function p9(o){var i=this.__data__;return Zl?i[o]!==void 0:$o.call(i,o)}function h9(o,i){var t=this.__data__;return t[o]=Zl&&i===void 0?ay:i,this}Ta.prototype.clear=l9;Ta.prototype.delete=c9;Ta.prototype.get=d9;Ta.prototype.has=p9;Ta.prototype.set=h9;function Yn(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function u9(){this.__data__=[]}function m9(o){var i=this.__data__,t=mp(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():e9.call(i,t,1),!0}function f9(o){var i=this.__data__,t=mp(i,o);return t<0?void 0:i[t][1]}function g9(o){return mp(this.__data__,o)>-1}function b9(o,i){var t=this.__data__,r=mp(t,o);return r<0?t.push([o,i]):t[r][1]=i,this}Yn.prototype.clear=u9;Yn.prototype.delete=m9;Yn.prototype.get=f9;Yn.prototype.has=g9;Yn.prototype.set=b9;function _s(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function v9(){this.__data__={hash:new Ta,map:new(Jl||Yn),string:new Ta}}function y9(o){return fp(this,o).delete(o)}function x9(o){return fp(this,o).get(o)}function w9(o){return fp(this,o).has(o)}function z9(o,i){return fp(this,o).set(o,i),this}_s.prototype.clear=v9;_s.prototype.delete=y9;_s.prototype.get=x9;_s.prototype.has=w9;_s.prototype.set=z9;function ks(o){this.__data__=new Yn(o)}function _9(){this.__data__=new Yn}function k9(o){return this.__data__.delete(o)}function S9(o){return this.__data__.get(o)}function C9(o){return this.__data__.has(o)}function E9(o,i){var t=this.__data__;if(t instanceof Yn){var r=t.__data__;if(!Jl||r.length<L8-1)return r.push([o,i]),this;t=this.__data__=new _s(r)}return t.set(o,i),this}ks.prototype.clear=_9;ks.prototype.delete=k9;ks.prototype.get=S9;ks.prototype.has=C9;ks.prototype.set=E9;function T9(o,i){var t=$m(o)||J9(o)?G8(o.length,String):[],r=t.length,n=!!r;for(var a in o)(i||$o.call(o,a))&&!(n&&(a=="length"||K9(a,r)))&&t.push(a);return t}function $y(o,i,t){var r=o[i];(!($o.call(o,i)&&qy(r,t))||t===void 0&&!(i in o))&&(o[i]=t)}function mp(o,i){for(var t=o.length;t--;)if(qy(o[t][0],i))return t;return-1}function $9(o,i){return o&&Ay(i,Am(i),o)}function _m(o,i,t,r,n,a,s){var l;if(r&&(l=a?r(o,n,a,s):r(o)),l!==void 0)return l;if(!gp(o))return o;var p=$m(o);if(p){if(l=j9(o),!i)return B9(o,l)}else{var h=Ea(o),m=h==Sm||h==dy;if(e6(o))return D9(o,i);if(h==Cm||h==km||m&&!a){if(Ey(o))return a?o:{};if(l=G9(m?{}:o),!i)return V9(o,$9(l,o))}else{if(!rt[h])return a?o:{};l=W9(o,h,_m,i)}}s||(s=new ks);var f=s.get(o);if(f)return f;if(s.set(o,l),!p)var b=t?U9(o):Am(o);return U8(b||o,function(g,v){b&&(v=g,g=o[v]),$y(l,v,_m(g,i,t,r,v,o,s))}),l}function A9(o){return gp(o)?J8(o):{}}function M9(o,i,t){var r=i(o);return $m(o)?r:j8(r,t(o))}function L9(o){return up.call(o)}function q9(o){if(!gp(o)||Q9(o))return!1;var i=Dy(o)||Ey(o)?Q8:O8;return i.test($a(o))}function I9(o){if(!Ly(o))return r9(o);var i=[];for(var t in Object(o))$o.call(o,t)&&t!="constructor"&&i.push(t);return i}function D9(o,i){if(i)return o.slice();var t=new o.constructor(o.length);return o.copy(t),t}function Tm(o){var i=new o.constructor(o.byteLength);return new ry(i).set(new ry(o)),i}function R9(o,i){var t=i?Tm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}function O9(o,i,t){var r=i?t(X1(o),!0):X1(o);return Cy(r,B8,new o.constructor)}function N9(o){var i=new o.constructor(o.source,R8.exec(o));return i.lastIndex=o.lastIndex,i}function P9(o,i,t){var r=i?t(J1(o),!0):J1(o);return Cy(r,V8,new o.constructor)}function H9(o){return oy?Object(oy.call(o)):{}}function F9(o,i){var t=i?Tm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}function B9(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}function Ay(o,i,t,r){t||(t={});for(var n=-1,a=i.length;++n<a;){var s=i[n],l=r?r(t[s],o[s],s,t,o):void 0;$y(t,s,l===void 0?o[s]:l)}return t}function V9(o,i){return Ay(o,My(o),i)}function U9(o){return M9(o,Am,My)}function fp(o,i){var t=o.__data__;return Y9(i)?t[typeof i=="string"?"string":"hash"]:t.map}function Ss(o,i){var t=W8(o,i);return q9(t)?t:void 0}var My=iy?Em(iy,Object):i6,Ea=L9;(ym&&Ea(new ym(new ArrayBuffer(1)))!=pp||Jl&&Ea(new Jl)!=cp||xm&&Ea(xm.resolve())!=Y1||wm&&Ea(new wm)!=dp||zm&&Ea(new zm)!=vm)&&(Ea=function(o){var i=up.call(o),t=i==Cm?o.constructor:void 0,r=t?$a(t):void 0;if(r)switch(r){case i9:return pp;case n9:return cp;case o9:return Y1;case a9:return dp;case s9:return vm}return i});function j9(o){var i=o.length,t=o.constructor(i);return i&&typeof o[0]=="string"&&$o.call(o,"index")&&(t.index=o.index,t.input=o.input),t}function G9(o){return typeof o.constructor=="function"&&!Ly(o)?A9(X8(o)):{}}function W9(o,i,t,r){var n=o.constructor;switch(i){case fy:return Tm(o);case ly:case cy:return new n(+o);case pp:return R9(o,r);case gy:case by:case vy:case yy:case xy:case wy:case zy:case _y:case ky:return F9(o,r);case cp:return O9(o,r,t);case py:case uy:return new n(o);case hy:return N9(o);case dp:return P9(o,r,t);case my:return H9(o)}}function K9(o,i){return i=i??sy,!!i&&(typeof o=="number"||N8.test(o))&&o>-1&&o%1==0&&o<i}function Y9(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function Q9(o){return!!Z1&&Z1 in o}function Ly(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||hp;return o===t}function $a(o){if(o!=null){try{return Ty.call(o)}catch{}try{return o+""}catch{}}return""}function X9(o){return _m(o,!0,!0)}function qy(o,i){return o===i||o!==o&&i!==i}function J9(o){return Z9(o)&&$o.call(o,"callee")&&(!Z8.call(o,"callee")||up.call(o)==km)}var $m=Array.isArray;function Iy(o){return o!=null&&t6(o.length)&&!Dy(o)}function Z9(o){return r6(o)&&Iy(o)}var e6=t9||n6;function Dy(o){var i=gp(o)?up.call(o):"";return i==Sm||i==dy}function t6(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=sy}function gp(o){var i=typeof o;return!!o&&(i=="object"||i=="function")}function r6(o){return!!o&&typeof o=="object"}function Am(o){return Iy(o)?T9(o):I9(o)}function i6(){return[]}function n6(){return!1}zs.exports=X9});var Vm=Hn((ec,Es)=>{var o6=200,Bm="__lodash_hash_undefined__",kp=1,Wy=2,Ky=9007199254740991,bp="[object Arguments]",Dm="[object Array]",a6="[object AsyncFunction]",Yy="[object Boolean]",Qy="[object Date]",Xy="[object Error]",Jy="[object Function]",s6="[object GeneratorFunction]",vp="[object Map]",Zy="[object Number]",l6="[object Null]",Cs="[object Object]",Ry="[object Promise]",c6="[object Proxy]",ex="[object RegExp]",yp="[object Set]",tx="[object String]",d6="[object Symbol]",p6="[object Undefined]",Rm="[object WeakMap]",rx="[object ArrayBuffer]",xp="[object DataView]",h6="[object Float32Array]",u6="[object Float64Array]",m6="[object Int8Array]",f6="[object Int16Array]",g6="[object Int32Array]",b6="[object Uint8Array]",v6="[object Uint8ClampedArray]",y6="[object Uint16Array]",x6="[object Uint32Array]",w6=/[\\^$.*+?()[\]{}|]/g,z6=/^\[object .+?Constructor\]$/,_6=/^(?:0|[1-9]\d*)$/,lt={};lt[h6]=lt[u6]=lt[m6]=lt[f6]=lt[g6]=lt[b6]=lt[v6]=lt[y6]=lt[x6]=!0;lt[bp]=lt[Dm]=lt[rx]=lt[Yy]=lt[xp]=lt[Qy]=lt[Xy]=lt[Jy]=lt[vp]=lt[Zy]=lt[Cs]=lt[ex]=lt[yp]=lt[tx]=lt[Rm]=!1;var ix=typeof global=="object"&&global&&global.Object===Object&&global,k6=typeof self=="object"&&self&&self.Object===Object&&self,Qn=ix||k6||Function("return this")(),nx=typeof ec=="object"&&ec&&!ec.nodeType&&ec,Oy=nx&&typeof Es=="object"&&Es&&!Es.nodeType&&Es,ox=Oy&&Oy.exports===nx,Lm=ox&&ix.process,Ny=(function(){try{return Lm&&Lm.binding&&Lm.binding("util")}catch{}})(),Py=Ny&&Ny.isTypedArray;function S6(o,i){for(var t=-1,r=o==null?0:o.length,n=0,a=[];++t<r;){var s=o[t];i(s,t,o)&&(a[n++]=s)}return a}function C6(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}function E6(o,i){for(var t=-1,r=o==null?0:o.length;++t<r;)if(i(o[t],t,o))return!0;return!1}function T6(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function $6(o){return function(i){return o(i)}}function A6(o,i){return o.has(i)}function M6(o,i){return o?.[i]}function L6(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function q6(o,i){return function(t){return o(i(t))}}function I6(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var D6=Array.prototype,R6=Function.prototype,Sp=Object.prototype,qm=Qn["__core-js_shared__"],ax=R6.toString,Tn=Sp.hasOwnProperty,Hy=(function(){var o=/[^.]+$/.exec(qm&&qm.keys&&qm.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),sx=Sp.toString,O6=RegExp("^"+ax.call(Tn).replace(w6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fy=ox?Qn.Buffer:void 0,wp=Qn.Symbol,By=Qn.Uint8Array,lx=Sp.propertyIsEnumerable,N6=D6.splice,Aa=wp?wp.toStringTag:void 0,Vy=Object.getOwnPropertySymbols,P6=Fy?Fy.isBuffer:void 0,H6=q6(Object.keys,Object),Om=Ts(Qn,"DataView"),tc=Ts(Qn,"Map"),Nm=Ts(Qn,"Promise"),Pm=Ts(Qn,"Set"),Hm=Ts(Qn,"WeakMap"),rc=Ts(Object,"create"),F6=qa(Om),B6=qa(tc),V6=qa(Nm),U6=qa(Pm),j6=qa(Hm),Uy=wp?wp.prototype:void 0,Im=Uy?Uy.valueOf:void 0;function Ma(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function G6(){this.__data__=rc?rc(null):{},this.size=0}function W6(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}function K6(o){var i=this.__data__;if(rc){var t=i[o];return t===Bm?void 0:t}return Tn.call(i,o)?i[o]:void 0}function Y6(o){var i=this.__data__;return rc?i[o]!==void 0:Tn.call(i,o)}function Q6(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=rc&&i===void 0?Bm:i,this}Ma.prototype.clear=G6;Ma.prototype.delete=W6;Ma.prototype.get=K6;Ma.prototype.has=Y6;Ma.prototype.set=Q6;function Xn(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function X6(){this.__data__=[],this.size=0}function J6(o){var i=this.__data__,t=Cp(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():N6.call(i,t,1),--this.size,!0}function Z6(o){var i=this.__data__,t=Cp(i,o);return t<0?void 0:i[t][1]}function eS(o){return Cp(this.__data__,o)>-1}function tS(o,i){var t=this.__data__,r=Cp(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}Xn.prototype.clear=X6;Xn.prototype.delete=J6;Xn.prototype.get=Z6;Xn.prototype.has=eS;Xn.prototype.set=tS;function La(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function rS(){this.size=0,this.__data__={hash:new Ma,map:new(tc||Xn),string:new Ma}}function iS(o){var i=Ep(this,o).delete(o);return this.size-=i?1:0,i}function nS(o){return Ep(this,o).get(o)}function oS(o){return Ep(this,o).has(o)}function aS(o,i){var t=Ep(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}La.prototype.clear=rS;La.prototype.delete=iS;La.prototype.get=nS;La.prototype.has=oS;La.prototype.set=aS;function zp(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new La;++i<t;)this.add(o[i])}function sS(o){return this.__data__.set(o,Bm),this}function lS(o){return this.__data__.has(o)}zp.prototype.add=zp.prototype.push=sS;zp.prototype.has=lS;function Mo(o){var i=this.__data__=new Xn(o);this.size=i.size}function cS(){this.__data__=new Xn,this.size=0}function dS(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}function pS(o){return this.__data__.get(o)}function hS(o){return this.__data__.has(o)}function uS(o,i){var t=this.__data__;if(t instanceof Xn){var r=t.__data__;if(!tc||r.length<o6-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new La(r)}return t.set(o,i),this.size=t.size,this}Mo.prototype.clear=cS;Mo.prototype.delete=dS;Mo.prototype.get=pS;Mo.prototype.has=hS;Mo.prototype.set=uS;function mS(o,i){var t=_p(o),r=!t&&$S(o),n=!t&&!r&&Fm(o),a=!t&&!r&&!n&&fx(o),s=t||r||n||a,l=s?T6(o.length,String):[],p=l.length;for(var h in o)(i||Tn.call(o,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||kS(h,p)))&&l.push(h);return l}function Cp(o,i){for(var t=o.length;t--;)if(px(o[t][0],i))return t;return-1}function fS(o,i,t){var r=i(o);return _p(o)?r:C6(r,t(o))}function nc(o){return o==null?o===void 0?p6:l6:Aa&&Aa in Object(o)?zS(o):TS(o)}function jy(o){return ic(o)&&nc(o)==bp}function cx(o,i,t,r,n){return o===i?!0:o==null||i==null||!ic(o)&&!ic(i)?o!==o&&i!==i:gS(o,i,t,r,cx,n)}function gS(o,i,t,r,n,a){var s=_p(o),l=_p(i),p=s?Dm:Ao(o),h=l?Dm:Ao(i);p=p==bp?Cs:p,h=h==bp?Cs:h;var m=p==Cs,f=h==Cs,b=p==h;if(b&&Fm(o)){if(!Fm(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Mo),s||fx(o)?dx(o,i,t,r,n,a):xS(o,i,p,t,r,n,a);if(!(t&kp)){var g=m&&Tn.call(o,"__wrapped__"),v=f&&Tn.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,C=v?i.value():i;return a||(a=new Mo),n(y,C,t,r,a)}}return b?(a||(a=new Mo),wS(o,i,t,r,n,a)):!1}function bS(o){if(!mx(o)||CS(o))return!1;var i=hx(o)?O6:z6;return i.test(qa(o))}function vS(o){return ic(o)&&ux(o.length)&&!!lt[nc(o)]}function yS(o){if(!ES(o))return H6(o);var i=[];for(var t in Object(o))Tn.call(o,t)&&t!="constructor"&&i.push(t);return i}function dx(o,i,t,r,n,a){var s=t&kp,l=o.length,p=i.length;if(l!=p&&!(s&&p>l))return!1;var h=a.get(o);if(h&&a.get(i))return h==i;var m=-1,f=!0,b=t&Wy?new zp:void 0;for(a.set(o,i),a.set(i,o);++m<l;){var g=o[m],v=i[m];if(r)var y=s?r(v,g,m,i,o,a):r(g,v,m,o,i,a);if(y!==void 0){if(y)continue;f=!1;break}if(b){if(!E6(i,function(C,T){if(!A6(b,T)&&(g===C||n(g,C,t,r,a)))return b.push(T)})){f=!1;break}}else if(!(g===v||n(g,v,t,r,a))){f=!1;break}}return a.delete(o),a.delete(i),f}function xS(o,i,t,r,n,a,s){switch(t){case xp:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case rx:return!(o.byteLength!=i.byteLength||!a(new By(o),new By(i)));case Yy:case Qy:case Zy:return px(+o,+i);case Xy:return o.name==i.name&&o.message==i.message;case ex:case tx:return o==i+"";case vp:var l=L6;case yp:var p=r&kp;if(l||(l=I6),o.size!=i.size&&!p)return!1;var h=s.get(o);if(h)return h==i;r|=Wy,s.set(o,i);var m=dx(l(o),l(i),r,n,a,s);return s.delete(o),m;case d6:if(Im)return Im.call(o)==Im.call(i)}return!1}function wS(o,i,t,r,n,a){var s=t&kp,l=Gy(o),p=l.length,h=Gy(i),m=h.length;if(p!=m&&!s)return!1;for(var f=p;f--;){var b=l[f];if(!(s?b in i:Tn.call(i,b)))return!1}var g=a.get(o);if(g&&a.get(i))return g==i;var v=!0;a.set(o,i),a.set(i,o);for(var y=s;++f<p;){b=l[f];var C=o[b],T=i[b];if(r)var O=s?r(T,C,b,i,o,a):r(C,T,b,o,i,a);if(!(O===void 0?C===T||n(C,T,t,r,a):O)){v=!1;break}y||(y=b=="constructor")}if(v&&!y){var U=o.constructor,D=i.constructor;U!=D&&"constructor"in o&&"constructor"in i&&!(typeof U=="function"&&U instanceof U&&typeof D=="function"&&D instanceof D)&&(v=!1)}return a.delete(o),a.delete(i),v}function Gy(o){return fS(o,LS,_S)}function Ep(o,i){var t=o.__data__;return SS(i)?t[typeof i=="string"?"string":"hash"]:t.map}function Ts(o,i){var t=M6(o,i);return bS(t)?t:void 0}function zS(o){var i=Tn.call(o,Aa),t=o[Aa];try{o[Aa]=void 0;var r=!0}catch{}var n=sx.call(o);return r&&(i?o[Aa]=t:delete o[Aa]),n}var _S=Vy?function(o){return o==null?[]:(o=Object(o),S6(Vy(o),function(i){return lx.call(o,i)}))}:qS,Ao=nc;(Om&&Ao(new Om(new ArrayBuffer(1)))!=xp||tc&&Ao(new tc)!=vp||Nm&&Ao(Nm.resolve())!=Ry||Pm&&Ao(new Pm)!=yp||Hm&&Ao(new Hm)!=Rm)&&(Ao=function(o){var i=nc(o),t=i==Cs?o.constructor:void 0,r=t?qa(t):"";if(r)switch(r){case F6:return xp;case B6:return vp;case V6:return Ry;case U6:return yp;case j6:return Rm}return i});function kS(o,i){return i=i??Ky,!!i&&(typeof o=="number"||_6.test(o))&&o>-1&&o%1==0&&o<i}function SS(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function CS(o){return!!Hy&&Hy in o}function ES(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||Sp;return o===t}function TS(o){return sx.call(o)}function qa(o){if(o!=null){try{return ax.call(o)}catch{}try{return o+""}catch{}}return""}function px(o,i){return o===i||o!==o&&i!==i}var $S=jy((function(){return arguments})())?jy:function(o){return ic(o)&&Tn.call(o,"callee")&&!lx.call(o,"callee")},_p=Array.isArray;function AS(o){return o!=null&&ux(o.length)&&!hx(o)}var Fm=P6||IS;function MS(o,i){return cx(o,i)}function hx(o){if(!mx(o))return!1;var i=nc(o);return i==Jy||i==s6||i==a6||i==c6}function ux(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Ky}function mx(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}function ic(o){return o!=null&&typeof o=="object"}var fx=Py?$6(Py):vS;function LS(o){return AS(o)?mS(o):yS(o)}function qS(){return[]}function IS(){return!1}Es.exports=MS});var gx=Hn(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var DS=Mm(),RS=Vm(),Um;(function(o){function i(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let p=DS(s);l||(p=Object.keys(p).reduce((h,m)=>(p[m]!=null&&(h[m]=p[m]),h),{}));for(let h in a)a[h]!==void 0&&s[h]===void 0&&(p[h]=a[h]);return Object.keys(p).length>0?p:void 0}o.compose=i;function t(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let l=Object.keys(a).concat(Object.keys(s)).reduce((p,h)=>(RS(a[h],s[h])||(p[h]=s[h]===void 0?null:s[h]),p),{});return Object.keys(l).length>0?l:void 0}o.diff=t;function r(a={},s={}){a=a||{};let l=Object.keys(s).reduce((p,h)=>(s[h]!==a[h]&&a[h]!==void 0&&(p[h]=s[h]),p),{});return Object.keys(a).reduce((p,h)=>(a[h]!==s[h]&&s[h]===void 0&&(p[h]=null),p),l)}o.invert=r;function n(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;let p=Object.keys(s).reduce((h,m)=>(a[m]===void 0&&(h[m]=s[m]),h),{});return Object.keys(p).length>0?p:void 0}o.transform=n})(Um||(Um={}));jm.default=Um});var Km=Hn(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});var Gm;(function(o){function i(t){return typeof t.delete=="number"?t.delete:typeof t.retain=="number"?t.retain:typeof t.retain=="object"&&t.retain!==null?1:typeof t.insert=="string"?t.insert.length:1}o.length=i})(Gm||(Gm={}));Wm.default=Gm});var vx=Hn(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var bx=Km(),Ym=class{constructor(i){this.ops=i,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(i){i||(i=1/0);let t=this.ops[this.index];if(t){let r=this.offset,n=bx.default.length(t);if(i>=n-r?(i=n-r,this.index+=1,this.offset=0):this.offset+=i,typeof t.delete=="number")return{delete:i};{let a={};return t.attributes&&(a.attributes=t.attributes),typeof t.retain=="number"?a.retain=i:typeof t.retain=="object"&&t.retain!==null?a.retain=t.retain:typeof t.insert=="string"?a.insert=t.insert.substr(r,i):a.insert=t.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?bx.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let i=this.ops[this.index];return i?typeof i.delete=="number"?"delete":typeof i.retain=="number"||typeof i.retain=="object"&&i.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let i=this.offset,t=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=i,this.index=t,[r].concat(n)}}else return[]}};Qm.default=Ym});var ei=Hn((Zn,$p)=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.AttributeMap=Zn.OpIterator=Zn.Op=void 0;var Tp=K1(),OS=Mm(),Xm=Vm(),Ia=gx();Zn.AttributeMap=Ia.default;var Jn=Km();Zn.Op=Jn.default;var Oi=vx();Zn.OpIterator=Oi.default;var NS="\0",yx=(o,i)=>{if(typeof o!="object"||o===null)throw new Error(`cannot retain a ${typeof o}`);if(typeof i!="object"||i===null)throw new Error(`cannot retain a ${typeof i}`);let t=Object.keys(o)[0];if(!t||t!==Object.keys(i)[0])throw new Error(`embed types not matched: ${t} != ${Object.keys(i)[0]}`);return[t,o[t],i[t]]},eo=class o{constructor(i){Array.isArray(i)?this.ops=i:i!=null&&Array.isArray(i.ops)?this.ops=i.ops:this.ops=[]}static registerEmbed(i,t){this.handlers[i]=t}static unregisterEmbed(i){delete this.handlers[i]}static getHandler(i){let t=this.handlers[i];if(!t)throw new Error(`no handlers for embed type "${i}"`);return t}insert(i,t){let r={};return typeof i=="string"&&i.length===0?this:(r.insert=i,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r))}delete(i){return i<=0?this:this.push({delete:i})}retain(i,t){if(typeof i=="number"&&i<=0)return this;let r={retain:i};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r)}push(i){let t=this.ops.length,r=this.ops[t-1];if(i=OS(i),typeof r=="object"){if(typeof i.delete=="number"&&typeof r.delete=="number")return this.ops[t-1]={delete:r.delete+i.delete},this;if(typeof r.delete=="number"&&i.insert!=null&&(t-=1,r=this.ops[t-1],typeof r!="object"))return this.ops.unshift(i),this;if(Xm(i.attributes,r.attributes)){if(typeof i.insert=="string"&&typeof r.insert=="string")return this.ops[t-1]={insert:r.insert+i.insert},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this;if(typeof i.retain=="number"&&typeof r.retain=="number")return this.ops[t-1]={retain:r.retain+i.retain},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this}}return t===this.ops.length?this.ops.push(i):this.ops.splice(t,0,i),this}chop(){let i=this.ops[this.ops.length-1];return i&&typeof i.retain=="number"&&!i.attributes&&this.ops.pop(),this}filter(i){return this.ops.filter(i)}forEach(i){this.ops.forEach(i)}map(i){return this.ops.map(i)}partition(i){let t=[],r=[];return this.forEach(n=>{(i(n)?t:r).push(n)}),[t,r]}reduce(i,t){return this.ops.reduce(i,t)}changeLength(){return this.reduce((i,t)=>t.insert?i+Jn.default.length(t):t.delete?i-t.delete:i,0)}length(){return this.reduce((i,t)=>i+Jn.default.length(t),0)}slice(i=0,t=1/0){let r=[],n=new Oi.default(this.ops),a=0;for(;a<t&&n.hasNext();){let s;a<i?s=n.next(i-a):(s=n.next(t-a),r.push(s)),a+=Jn.default.length(s)}return new o(r)}compose(i){let t=new Oi.default(this.ops),r=new Oi.default(i.ops),n=[],a=r.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){let l=a.retain;for(;t.peekType()==="insert"&&t.peekLength()<=l;)l-=t.peekLength(),n.push(t.next());a.retain-l>0&&r.next(a.retain-l)}let s=new o(n);for(;t.hasNext()||r.hasNext();)if(r.peekType()==="insert")s.push(r.next());else if(t.peekType()==="delete")s.push(t.next());else{let l=Math.min(t.peekLength(),r.peekLength()),p=t.next(l),h=r.next(l);if(h.retain){let m={};if(typeof p.retain=="number")m.retain=typeof h.retain=="number"?l:h.retain;else if(typeof h.retain=="number")p.retain==null?m.insert=p.insert:m.retain=p.retain;else{let b=p.retain==null?"insert":"retain",[g,v,y]=yx(p[b],h.retain),C=o.getHandler(g);m[b]={[g]:C.compose(v,y,b==="retain")}}let f=Ia.default.compose(p.attributes,h.attributes,typeof p.retain=="number");if(f&&(m.attributes=f),s.push(m),!r.hasNext()&&Xm(s.ops[s.ops.length-1],m)){let b=new o(t.rest());return s.concat(b).chop()}}else typeof h.delete=="number"&&(typeof p.retain=="number"||typeof p.retain=="object"&&p.retain!==null)&&s.push(h)}return s.chop()}concat(i){let t=new o(this.ops.slice());return i.ops.length>0&&(t.push(i.ops[0]),t.ops=t.ops.concat(i.ops.slice(1))),t}diff(i,t){if(this.ops===i.ops)return new o;let r=[this,i].map(p=>p.map(h=>{if(h.insert!=null)return typeof h.insert=="string"?h.insert:NS;let m=p===i?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")),n=new o,a=Tp(r[0],r[1],t,!0),s=new Oi.default(this.ops),l=new Oi.default(i.ops);return a.forEach(p=>{let h=p[1].length;for(;h>0;){let m=0;switch(p[0]){case Tp.INSERT:m=Math.min(l.peekLength(),h),n.push(l.next(m));break;case Tp.DELETE:m=Math.min(h,s.peekLength()),s.next(m),n.delete(m);break;case Tp.EQUAL:m=Math.min(s.peekLength(),l.peekLength(),h);let f=s.next(m),b=l.next(m);Xm(f.insert,b.insert)?n.retain(m,Ia.default.diff(f.attributes,b.attributes)):n.push(b).delete(m);break}h-=m}}),n.chop()}eachLine(i,t=`
|
|
1
|
+
import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var Xu=Hn((Wl,Qu)=>{(function(o,i){typeof Wl=="object"&&typeof Qu=="object"?Qu.exports=i():typeof define=="function"&&define.amd?define([],i):typeof Wl=="object"?Wl.AirDatepicker=i():o.AirDatepicker=i()})(Wl,(function(){return(function(){"use strict";var o={d:function(P,x){for(var E in x)o.o(x,E)&&!o.o(P,E)&&Object.defineProperty(P,E,{enumerable:!0,get:x[E]})},o:function(P,x){return Object.prototype.hasOwnProperty.call(P,x)}},i={};o.d(i,{default:function(){return ae}});var t={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},r={classes:"",inline:!1,locale:{days:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],daysShort:["\u0412\u043E\u0441","\u041F\u043E\u043D","\u0412\u0442\u043E","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041F\u044F\u0442","\u0421\u0443\u0431"],daysMin:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:t.days,minView:t.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,fixedHeight:!1,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function n(P){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof P=="string"?x.querySelector(P):P}function a(){let{tagName:P="div",className:x="",innerHtml:E="",id:w="",attrs:R={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=document.createElement(P);return x&&q.classList.add(...x.split(" ")),w&&(q.id=w),E&&(q.innerHTML=E),R&&s(q,R),q}function s(P,x){for(let[E,w]of Object.entries(x))w!==void 0&&P.setAttribute(E,w);return P}function l(P){return new Date(P.getFullYear(),P.getMonth()+1,0).getDate()}function p(P){let x=P.getHours(),{hours:E,dayPeriod:w}=h(x);return{year:P.getFullYear(),month:P.getMonth(),fullMonth:P.getMonth()+1<10?"0"+(P.getMonth()+1):P.getMonth()+1,date:P.getDate(),fullDate:P.getDate()<10?"0"+P.getDate():P.getDate(),day:P.getDay(),hours:x,fullHours:m(x),hours12:E,dayPeriod:w,fullHours12:m(E),minutes:P.getMinutes(),fullMinutes:P.getMinutes()<10?"0"+P.getMinutes():P.getMinutes()}}function h(P){return{dayPeriod:P>11?"pm":"am",hours:P%12==0?12:P%12}}function m(P){return P<10?"0"+P:P}function f(P){let x=10*Math.floor(P.getFullYear()/10);return[x,x+9]}function b(){let P=[];for(var x=arguments.length,E=new Array(x),w=0;w<x;w++)E[w]=arguments[w];return E.forEach((R=>{if(typeof R=="object")for(let q in R)R[q]&&P.push(q);else R&&P.push(R)})),P.join(" ")}function g(P,x){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.days;if(!P||!x)return!1;let w=p(P),R=p(x);return{[t.days]:w.date===R.date&&w.month===R.month&&w.year===R.year,[t.months]:w.month===R.month&&w.year===R.year,[t.years]:w.year===R.year}[E]}function v(P,x,E){let w=C(P,!1).getTime(),R=C(x,!1).getTime();return E?w>=R:w>R}function y(P,x){return!v(P,x,!0)}function C(P){let x=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],E=new Date(P.getTime());return typeof x!="boolean"||x||(function(w){w.setHours(0,0,0,0)})(E),E}function T(P,x,E){P.length?P.forEach((w=>{w.addEventListener(x,E)})):P.addEventListener(x,E)}function O(P,x){return!(!P||P===document||P instanceof DocumentFragment)&&(P.matches(x)?P:O(P.parentNode,x))}function U(P,x,E){return P>E?E:P<x?x:P}function D(P){for(var x=arguments.length,E=new Array(x>1?x-1:0),w=1;w<x;w++)E[w-1]=arguments[w];return E.filter((R=>R)).forEach((R=>{for(let[q,A]of Object.entries(R))if(A!==void 0&&A.toString()==="[object Object]"){let H=P[q]!==void 0?P[q].toString():void 0,j=A.toString(),Q=Array.isArray(A)?[]:{};P[q]=P[q]?H!==j?Q:P[q]:Q,D(P[q],A)}else P[q]=A})),P}function S(P){let x=P;return P instanceof Date||(typeof P=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(P)&&(P+="T00:00:00"),x=new Date(P)),isNaN(x.getTime())&&(console.log(`Unable to convert value "${P}" to Date object`),x=!1),x}function $(P){let x="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+x+")("+P+")($|<|"+x+")","g")}function L(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}class W{constructor(){let{type:x,date:E,dp:w,opts:R,body:q}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(this,"focus",(()=>{this.$cell.classList.add("-focus-"),this.focused=!0})),L(this,"removeFocus",(()=>{this.$cell.classList.remove("-focus-"),this.focused=!1})),L(this,"select",(()=>{this.$cell.classList.add("-selected-"),this.selected=!0})),L(this,"removeSelect",(()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1})),L(this,"onChangeSelectedDate",(()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())})),L(this,"onChangeFocusDate",(A=>{if(!A)return void(this.focused&&this.removeFocus());let H=g(A,this.date,this.type);H?this.focus():!H&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()})),L(this,"render",(()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell))),this.type=x,this.singleType=this.type.slice(0,-1),this.date=E,this.dp=w,this.opts=R,this.body=q,this.customData=!1,this.init()}init(){var x,E;let{onRenderCell:w}=this.opts;w&&(this.customData=w({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(x=this.customData)!==null&&x!==void 0&&x.disabled?this.dp.disableDate(this.date):((E=this.customData)===null||E===void 0?void 0:E.disabled)===!1&&this.dp.enableDate(this.date)}_bindDatepickerEvents(){this.dp.on(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(t.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(t.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var x;let{year:E,month:w,fullMonth:R,date:q,fullDate:A}=p(this.date),H=((x=this.customData)===null||x===void 0?void 0:x.attrs)||{};this.$cell=a({attrs:{"data-year":E,"data-month":w,"data-date":q,"data-iso-date":`${E}-${R}-${A}`,...H}}),this.$cell.adpCell=this}_getClassName(){var x;let E=new Date,{selectOtherMonths:w,selectOtherYears:R}=this.opts,{minDate:q,maxDate:A,isDateDisabled:H}=this.dp,{day:j}=p(this.date),Q=this._isOutOfMinMaxRange(),ie=H(this.date),te=b("air-datepicker-cell",`-${this.singleType}-`,{"-current-":g(E,this.date,this.type),"-min-date-":q&&g(q,this.date,this.type),"-max-date-":A&&g(A,this.date,this.type)}),se="";switch(this.type){case t.days:se=b({"-weekend-":this.dp.isWeekend(j),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!w||Q||ie});break;case t.months:se=b({"-disabled-":Q});break;case t.years:se=b({"-other-decade-":this.isOtherDecade,"-disabled-":Q||this.isOtherDecade&&!R})}return b(te,se,(x=this.customData)===null||x===void 0?void 0:x.classes).split(" ")}_getHtml(){var x;let{year:E,month:w,date:R}=p(this.date),{showOtherMonths:q,showOtherYears:A}=this.opts;if((x=this.customData)!==null&&x!==void 0&&x.html)return this.customData.html;switch(this.type){case t.days:return!q&&this.isOtherMonth?"":R;case t.months:return this.dp.locale[this.opts.monthsField][w];case t.years:return!A&&this.isOtherDecade?"":E}}_isOutOfMinMaxRange(){let{minDate:x,maxDate:E}=this.dp,{type:w,date:R}=this,{month:q,year:A,date:H}=p(R),j=w===t.days,Q=w===t.years,ie=!!x&&new Date(A,Q?x.getMonth():q,j?H:x.getDate()),te=!!E&&new Date(A,Q?E.getMonth():q,j?H:E.getDate());return x&&E?y(ie,x)||v(te,E):x?y(ie,x):E?v(te,E):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:x,focusDate:E,rangeDateTo:w,rangeDateFrom:R}=this.dp,q=x.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!q)return;let A=R,H=w;if(q===1&&E){let se=v(E,x[0]);A=se?x[0]:E,H=se?E:x[0]}let j=b({"-in-range-":A&&H&&(Q=this.date,ie=A,te=H,v(Q,ie)&&y(Q,te)),"-range-from-":A&&g(this.date,A,this.type),"-range-to-":H&&g(this.date,H,this.type)});var Q,ie,te;j&&this.$cell.classList.add(...j.split(" "))}_handleSelectedStatus(){let x=this.dp._checkIfDateIsSelected(this.date,this.type);x?this.select():!x&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){g(this.dp.focusDate,this.date,this.type)&&this.focus()}_handleClasses(){this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),this.$cell.classList.add(...this._getClassName())}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function oe(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}let xe={[t.days]:`<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -${t.days}-"></div>`,[t.months]:`<div class="air-datepicker-body--cells -${t.months}-"></div>`,[t.years]:`<div class="air-datepicker-body--cells -${t.years}-"></div>`},Re=".air-datepicker-cell";class Ne{constructor(x){let{dp:E,type:w,opts:R}=x;oe(this,"handleClick",(q=>{let A=q.target.closest(Re).adpCell;if(A.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let H=this.dp._checkIfDateIsSelected(A.date,A.type);H?this.dp._handleAlreadySelectedDates(H,A.date):this.dp.selectDate(A.date)})),oe(this,"handleDayNameClick",(q=>{let A=q.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(A),datepicker:this.dp})})),oe(this,"onChangeCurrentView",(q=>{q!==this.type?this.hide():(this.show(),this.render())})),oe(this,"onMouseOverCell",(q=>{let A=O(q.target,Re);this.dp.setFocusDate(!!A&&A.adpCell.date)})),oe(this,"onMouseOutCell",(()=>{this.dp.setFocusDate(!1)})),oe(this,"onClickBody",(q=>{let{onClickDayName:A}=this.opts,H=q.target;H.closest(Re)&&this.handleClick(q),A&&H.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(q)})),oe(this,"onMouseDown",(q=>{this.pressed=!0;let A=O(q.target,Re),H=A&&A.adpCell;g(H.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),g(H.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)})),oe(this,"onMouseMove",(q=>{if(!this.pressed||!this.dp.isMinViewReached)return;q.preventDefault();let A=O(q.target,Re),H=A&&A.adpCell,{selectedDates:j,rangeDateTo:Q,rangeDateFrom:ie}=this.dp;if(!H||H.isDisabled)return;let{date:te}=H;if(j.length===2){if(this.rangeFromFocused&&!v(te,Q)){let{hours:se,minutes:St}=p(ie);te.setHours(se),te.setMinutes(St),this.dp.rangeDateFrom=te,this.dp.replaceDate(ie,te)}if(this.rangeToFocused&&!y(te,ie)){let{hours:se,minutes:St}=p(Q);te.setHours(se),te.setMinutes(St),this.dp.rangeDateTo=te,this.dp.replaceDate(Q,te)}}})),oe(this,"onMouseUp",(()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1})),oe(this,"onChangeViewDate",((q,A)=>{if(!this.isVisible)return;let H=f(q),j=f(A);switch(this.dp.currentView){case t.days:if(g(q,A,t.months))return;break;case t.months:if(g(q,A,t.years))return;break;case t.years:if(H[0]===j[0]&&H[1]===j[1])return}this.render()})),oe(this,"render",(()=>{this.destroyCells(),this._generateCells(),this.cells.forEach((q=>{this.$cells.appendChild(q.render())}))})),this.dp=E,this.type=w,this.opts=R,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===t.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:x,dynamicRange:E}=this.opts;T(this.$el,"mouseover",this.onMouseOverCell),T(this.$el,"mouseout",this.onMouseOutCell),T(this.$el,"click",this.onClickBody),x&&E&&(T(this.$el,"mousedown",this.onMouseDown),T(this.$el,"mousemove",this.onMouseMove),T(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(t.eventChangeViewDate,this.onChangeViewDate),this.dp.on(t.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=a({className:`air-datepicker-body -${this.type}-`,innerHtml:xe[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,E="",w=this.dp.isWeekend,{onClickDayName:R}=this.opts,q=x,A=0;for(;A<7;){let H=q%7;E+=`<div class="${b("air-datepicker-body--day-name",{[t.cssClassWeekend]:w(H),"-clickable-":!!R})}" data-day-index='${H}'>${this.dp.locale.daysMin[H]}</div>`,A++,q++}return E}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(x){let{type:E,dp:w,opts:R}=this;return new W({type:E,dp:w,opts:R,date:x,body:this})}_generateCells(){Ne.getDatesFunction(this.type)(this.dp,(x=>{this.cells.push(this._generateCell(x))}))}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach((x=>x.destroy())),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(t.eventChangeViewDate,this.onChangeViewDate),this.dp.off(t.eventChangeCurrentView,this.onChangeCurrentView)}static getDaysDates(x,E){let{viewDate:w,opts:{fixedHeight:R},locale:{firstDay:q}}=x,A=l(w),{year:H,month:j}=p(w),Q=new Date(H,j,1),ie=new Date(H,j,A),te=Q.getDay()-q,se=6-ie.getDay()+q;te=te<0?te+7:te,se=se>6?se-7:se;let St=(function(la,Qh){let{year:od,month:v3,date:y3}=p(la);return new Date(od,v3,y3-Qh)})(Q,te),Yr=A+te+se,zr=St.getDate(),{year:vn,month:vl}=p(St),aa=0;R&&(Yr=42);let sa=[];for(;aa<Yr;){let la=new Date(vn,vl,zr+aa);E&&E(la),sa.push(la),aa++}return sa}static getMonthsDates(x,E){let{year:w}=x.parsedViewDate,R=0,q=[];for(;R<12;){let A=new Date(w,R);q.push(A),E&&E(A),R++}return q}static getYearsDates(x,E){let w=f(x.viewDate),R=w[0]-1,q=w[1]+1,A=R,H=[];for(;A<=q;){let j=new Date(A,0);H.push(j),E&&E(j),A++}return H}static getDatesFunction(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return{[t.days]:Ne.getDaysDates,[t.months]:Ne.getMonthsDates,[t.years]:Ne.getYearsDates}[x]}}function ot(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}class tr{constructor(x){let{dp:E,opts:w}=x;ot(this,"onClickNav",(R=>{let q=O(R.target,".air-datepicker-nav--action");if(!q)return;let A=q.dataset.action;this.dp[A]()})),ot(this,"onChangeViewDate",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),ot(this,"onChangeCurrentView",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),ot(this,"onClickNavTitle",(()=>{this.dp.isFinalView||this.dp.up()})),ot(this,"update",(()=>{let{prevHtml:R,nextHtml:q}=this.opts;this.$prev.innerHTML=R,this.$next.innerHTML=q,this._resetNavStatus(),this.render(),this.handleNavStatus()})),ot(this,"renderDelay",(()=>{setTimeout(this.render)})),ot(this,"render",(()=>{this.$title.innerHTML=this._getTitle(),(function(R,q){for(let A in q)q[A]?R.classList.add(A):R.classList.remove(A)})(this.$title,{"-disabled-":this.dp.isFinalView})})),this.dp=E,this.opts=w,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=n(".air-datepicker-nav--title",this.$el),this.$prev=n('[data-action="prev"]',this.$el),this.$next=n('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(t.eventChangeViewDate,this.onChangeViewDate),this.dp.on(t.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(t.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(t.eventChangeTime,this.render))}destroy(){this.dp.off(t.eventChangeViewDate,this.onChangeViewDate),this.dp.off(t.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(t.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(t.eventChangeTime,this.render))}_createElement(){this.$el=a({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:x,opts:E}=this,w=E.navTitles[x.currentView];return typeof w=="function"?w(x):x.formatDate(x.viewDate,w)}handleNavStatus(){let{disableNavWhenOutOfRange:x}=this.opts,{minDate:E,maxDate:w}=this.dp;if(!E&&!w||!x)return;let{year:R,month:q}=this.dp.parsedViewDate,A=!!E&&p(E),H=!!w&&p(w);switch(this.dp.currentView){case t.days:E&&A.month>=q&&A.year>=R&&this._disableNav("prev"),w&&H.month<=q&&H.year<=R&&this._disableNav("next");break;case t.months:E&&A.year>=R&&this._disableNav("prev"),w&&H.year<=R&&this._disableNav("next");break;case t.years:{let j=f(this.dp.viewDate);E&&A.year>=j[0]&&this._disableNav("prev"),w&&H.year<=j[1]&&this._disableNav("next");break}}}_disableNav(x){n('[data-action="'+x+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(x){for(var E=arguments.length,w=new Array(E>1?E-1:0),R=1;R<E;R++)w[R-1]=arguments[R];x.length?x.forEach((q=>{q.classList.remove(...w)})):x.classList.remove(...w)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:x,nextHtml:E}=this.opts;this.$el.innerHTML=`<div class="air-datepicker-nav--action" data-action="prev">${x}</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">${E}</div>`}get isNavIsFunction(){let{navTitles:x}=this.opts;return Object.keys(x).find((E=>typeof x[E]=="function"))}}var Pr={today:{content:P=>P.locale.today,onClick:P=>P.setViewDate(new Date)},clear:{content:P=>P.locale.clear,onClick:P=>P.clear()}};class wr{constructor(x){let{dp:E,opts:w}=x;this.dp=E,this.opts=w,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=a({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:x}=this.opts;Array.isArray(x)||(x=[x]),x.forEach((E=>{let w=E;typeof E=="string"&&Pr[E]&&(w=Pr[E]);let R=this.createButton(w);w.onClick&&this.attachEventToButton(R,w.onClick),this.$el.appendChild(R)}))}attachEventToButton(x,E){x.addEventListener("click",(()=>{E(this.dp)}))}createButton(x){let{content:E,className:w,tagName:R="button",attrs:q={}}=x;return a({tagName:R,innerHtml:`<span tabindex='-1'>${typeof E=="function"?E(this.dp):E}</span>`,className:b("air-datepicker-button",w),attrs:q})}render(){this.generateButtons()}}function Nt(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}class rr{constructor(){let{opts:x,dp:E}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nt(this,"toggleTimepickerIsActive",(R=>{this.dp.timepickerIsActive=R})),Nt(this,"onChangeSelectedDate",(R=>{let{date:q,updateTime:A=!1}=R;q&&(this.setMinMaxTime(q),this.setCurrentTime(!!A&&q),this.addTimeToDate(q))})),Nt(this,"onChangeLastSelectedDate",(R=>{R&&(this.setTime(R),this.render())})),Nt(this,"onChangeInputRange",(R=>{let q=R.target;this[q.getAttribute("name")]=q.value,this.updateText(),this.dp.trigger(t.eventChangeTime,{hours:this.hours,minutes:this.minutes})})),Nt(this,"onMouseEnterLeave",(R=>{let q=R.target.getAttribute("name"),A=this.$minutesText;q==="hours"&&(A=this.$hoursText),A.classList.toggle("-focus-")})),Nt(this,"onFocus",(()=>{this.toggleTimepickerIsActive(!0)})),Nt(this,"onBlur",(()=>{this.toggleTimepickerIsActive(!1)})),this.opts=x,this.dp=E;let{timeFormat:w}=this.dp.locale;w&&(w.match($("h"))||w.match($("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(t.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let x="input";navigator.userAgent.match(/trident/gi)&&(x="change"),T(this.$ranges,x,this.onChangeInputRange),T(this.$ranges,"mouseenter",this.onMouseEnterLeave),T(this.$ranges,"mouseleave",this.onMouseEnterLeave),T(this.$ranges,"focus",this.onFocus),T(this.$ranges,"mousedown",this.onFocus),T(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=a({className:b("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(t.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:x,hours:E,displayHours:w,minutes:R,minHours:q,minMinutes:A,maxHours:H,maxMinutes:j,dayPeriod:Q,opts:{hoursStep:ie,minutesStep:te}}=this;this.$el.innerHTML=`<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">${m(w)}</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">${m(R)}</span> `+(x?`<span class='air-datepicker-time--current-ampm'>${Q}</span>`:"")+`</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row"> <input type="range" name="hours" value="${E}" min="${q}" max="${H}" step="${ie}"/> </div> <div class="air-datepicker-time--row"> <input type="range" name="minutes" value="${R}" min="${A}" max="${j}" step="${te}"/> </div></div>`}defineDOM(){let x=E=>n(E,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=x('[name="hours"]'),this.$minutes=x('[name="minutes"]'),this.$hoursText=x(".air-datepicker-time--current-hours"),this.$minutesText=x(".air-datepicker-time--current-minutes"),this.$ampm=x(".air-datepicker-time--current-ampm")}setTime(x){this.setMinMaxTime(x),this.setCurrentTime(x)}addTimeToDate(x){x&&(x.setHours(this.hours),x.setMinutes(this.minutes))}setMinMaxTime(x){if(this.setMinMaxTimeFromOptions(),x){let{minDate:E,maxDate:w}=this.dp;E&&g(x,E)&&this.setMinTimeFromMinDate(E),w&&g(x,w)&&this.setMaxTimeFromMaxDate(w)}}setCurrentTime(x){let{hours:E,minutes:w}=x?p(x):this;this.hours=U(E,this.minHours,this.maxHours),this.minutes=U(w,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:x,minMinutes:E,maxHours:w,maxMinutes:R}=this.opts;this.minHours=U(x,0,23),this.minMinutes=U(E,0,59),this.maxHours=U(w,0,23),this.maxMinutes=U(R,0,59)}setMinTimeFromMinDate(x){let{lastSelectedDate:E}=this.dp;this.minHours=x.getHours(),E&&E.getHours()>x.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=x.getMinutes()}setMaxTimeFromMaxDate(x){let{lastSelectedDate:E}=this.dp;this.maxHours=x.getHours(),E&&E.getHours()<x.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=x.getMinutes()}updateSliders(){s(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,s(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes}updateText(){this.$hoursText.innerHTML=m(this.displayHours),this.$minutesText.innerHTML=m(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)}set hours(x){this._hours=x;let{hours:E,dayPeriod:w}=h(x);this.displayHours=this.ampm?E:x,this.dayPeriod=w}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function Lt(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}class uo{constructor(x){let{dp:E,opts:w}=x;Lt(this,"pressedKeys",new Set),Lt(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],R=>R.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],R=>R.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],R=>R.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],R=>R.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],R=>R.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],R=>R.year-=10],[["Control","Shift","ArrowUp"],(R,q)=>q.up()]])),Lt(this,"handleHotKey",(R=>{let q=this.hotKeys.get(R),A=p(this.getInitialFocusDate());q(A,this.dp);let{year:H,month:j,date:Q}=A,ie=l(new Date(H,j));ie<Q&&(Q=ie);let te=this.dp.getClampedDate(new Date(H,j,Q));this.dp.setFocusDate(te,{viewDateTransition:!0})})),Lt(this,"isHotKeyPressed",(()=>{let R=!1,q=this.pressedKeys.size,A=H=>this.pressedKeys.has(H);for(let[H]of this.hotKeys){if(R)break;if(Array.isArray(H[0]))H.forEach((j=>{R||q!==j.length||(R=j.every(A)&&H)}));else{if(q!==H.length)continue;R=H.every(A)&&H}}return R})),Lt(this,"isArrow",(R=>R>=37&&R<=40)),Lt(this,"onKeyDown",(R=>{if(!this.dp.visible&&!this.dp.treatAsInline)return;let{key:q,which:A}=R,{dp:H,dp:{focusDate:j},opts:Q}=this;this.registerKey(q);let ie=this.isHotKeyPressed();if(ie)return R.preventDefault(),void this.handleHotKey(ie);if(this.isArrow(A))return R.preventDefault(),void this.focusNextCell(q);if(q==="Enter"){if(H.currentView!==Q.minView)return void H.down();if(j){let te=H._checkIfDateIsSelected(j);return void(te?H._handleAlreadySelectedDates(te,j):H.selectDate(j))}}q==="Escape"&&this.dp.hide()})),Lt(this,"onKeyUp",(R=>{this.removeKey(R.key)})),this.dp=E,this.opts=w,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:x}=this.dp;x.addEventListener("keydown",this.onKeyDown),x.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:x}=this.dp;x.removeEventListener("keydown",this.onKeyDown),x.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:x,currentView:E,selectedDates:w,parsedViewDate:{year:R,month:q}}=this.dp,A=x||w[w.length-1];if(!A)switch(E){case t.days:A=new Date(R,q,new Date().getDate());break;case t.months:A=new Date(R,q,1);break;case t.years:A=new Date(R,0,1)}return A}focusNextCell(x){let E=this.getInitialFocusDate(),{currentView:w}=this.dp,{days:R,months:q,years:A}=t,H=p(E),j=H.year,Q=H.month,ie=H.date;switch(x){case"ArrowLeft":w===R&&(ie-=1),w===q&&(Q-=1),w===A&&(j-=1);break;case"ArrowUp":w===R&&(ie-=7),w===q&&(Q-=3),w===A&&(j-=4);break;case"ArrowRight":w===R&&(ie+=1),w===q&&(Q+=1),w===A&&(j+=1);break;case"ArrowDown":w===R&&(ie+=7),w===q&&(Q+=3),w===A&&(j+=4)}let te=this.dp.getClampedDate(new Date(j,Q,ie));this.dp.setFocusDate(te,{viewDateTransition:!0})}registerKey(x){this.pressedKeys.add(x)}removeKey(x){this.pressedKeys.delete(x)}}let Qa={on(P,x){this.__events||(this.__events={}),this.__events[P]?this.__events[P].push(x):this.__events[P]=[x]},off(P,x){this.__events&&this.__events[P]&&(this.__events[P]=this.__events[P].filter((E=>E!==x)))},removeAllEvents(){this.__events={}},trigger(P){for(var x=arguments.length,E=new Array(x>1?x-1:0),w=1;w<x;w++)E[w-1]=arguments[w];this.__events&&this.__events[P]&&this.__events[P].forEach((R=>{R(...E)}))}};function ue(P,x,E){return(x=(function(w){var R=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof R=="symbol"?R:String(R)})(x))in P?Object.defineProperty(P,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[x]=E,P}let Yi="",Qi="",he=!1;class ae{static buildGlobalContainer(x){he=!0,Yi=a({className:x,id:x}),n("body").appendChild(Yi)}constructor(x,E){var w=this;if(ue(this,"viewIndexes",[t.days,t.months,t.years]),ue(this,"next",(()=>{let{year:A,month:H}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,H+1,1));break;case t.months:this.setViewDate(new Date(A+1,H,1));break;case t.years:this.setViewDate(new Date(A+10,0,1))}})),ue(this,"prev",(()=>{let{year:A,month:H}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,H-1,1));break;case t.months:this.setViewDate(new Date(A-1,H,1));break;case t.years:this.setViewDate(new Date(A-10,0,1))}})),ue(this,"_finishHide",(()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)})),ue(this,"setPosition",(function(A){let H=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(A=A||w.opts.position)=="function")return void(w.customHide=A({$datepicker:w.$datepicker,$target:w.$el,$pointer:w.$pointer,isViewChange:H,done:w._finishHide}));let j,Q,{isMobile:ie}=w.opts,te=w.$el.getBoundingClientRect(),se=w.$el.getBoundingClientRect(),St=w.$datepicker.offsetParent,Yr=w.$el.offsetParent,zr=w.$datepicker.getBoundingClientRect(),vn=A.split(" "),vl=window.scrollY,aa=window.scrollX,sa=w.opts.offset,la=vn[0],Qh=vn[1];if(ie)w.$datepicker.style.cssText="left: 50%; top: 50%";else{if(St===Yr&&St!==document.body&&(se={top:w.$el.offsetTop,left:w.$el.offsetLeft,width:te.width,height:w.$el.offsetHeight},vl=0,aa=0),St!==Yr&&St!==document.body){let od=St.getBoundingClientRect();se={top:te.top-od.top,left:te.left-od.left,width:te.width,height:te.height},vl=0,aa=0}switch(la){case"top":j=se.top-zr.height-sa;break;case"right":Q=se.left+se.width+sa;break;case"bottom":j=se.top+se.height+sa;break;case"left":Q=se.left-zr.width-sa}switch(Qh){case"top":j=se.top;break;case"right":Q=se.left+se.width-zr.width;break;case"bottom":j=se.top+se.height-zr.height;break;case"left":Q=se.left;break;case"center":/left|right/.test(la)?j=se.top+se.height/2-zr.height/2:Q=se.left+se.width/2-zr.width/2}w.$datepicker.style.cssText=`left: ${Q+aa}px; top: ${j+vl}px`}})),ue(this,"_setInputValue",(()=>{let{opts:A,$altField:H,locale:{dateFormat:j}}=this,{altFieldDateFormat:Q,altField:ie}=A;ie&&H&&(H.value=this._getInputValue(Q)),this.$el.value=this._getInputValue(j),this.$el.dispatchEvent(new Event("change"))})),ue(this,"_getInputValue",(A=>{let{selectedDates:H,opts:j}=this,{multipleDates:Q,multipleDatesSeparator:ie}=j;if(!H.length)return"";let te=typeof A=="function",se=te?A(Q?H:H[0]):H.map((St=>this.formatDate(St,A)));return se=te?se:se.join(ie),se})),ue(this,"_checkIfDateIsSelected",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.days,j=!1;return w.selectedDates.some((Q=>{let ie=g(A,Q,H);return j=ie&&Q,ie})),j})),ue(this,"_scheduleCallAfterTransition",(A=>{this._cancelScheduledCall(),A&&A(!1),this._onTransitionEnd=()=>{A&&A(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})})),ue(this,"_cancelScheduledCall",(()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)})),ue(this,"setViewDate",(A=>{if(!((A=S(A))instanceof Date)||g(A,this.viewDate))return;let H=this.viewDate;this.viewDate=A;let{onChangeViewDate:j}=this.opts;if(j){let{month:Q,year:ie}=this.parsedViewDate;j({month:Q,year:ie,decade:this.curDecade})}this.trigger(t.eventChangeViewDate,A,H)})),ue(this,"setFocusDate",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!A||(A=S(A))instanceof Date)&&(w.focusDate=A,w.trigger(t.eventChangeFocusDate,A,H))})),ue(this,"setCurrentView",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w.viewIndexes.includes(A)){if(w.currentView=A,w.elIsInput&&w.visible&&w.setPosition(void 0,!0),w.trigger(t.eventChangeCurrentView,A),!w.views[A]){let j=w.views[A]=new Ne({dp:w,opts:w.opts,type:A});w.shouldUpdateDOM&&w.$content.appendChild(j.$el)}w.opts.onChangeView&&!H.silent&&w.opts.onChangeView(A)}})),ue(this,"_updateLastSelectedDate",(A=>{this.lastSelectedDate=A,this.trigger(t.eventChangeLastSelectedDate,A)})),ue(this,"destroy",(()=>{if(this.isDestroyed)return;let{showEvent:A,isMobile:H}=this.opts,j=this.$datepicker.parentNode;j&&j.removeChild(this.$datepicker),this.$el.removeEventListener(A,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),H&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts={},this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=[],this.rangeDateFrom=null,this.rangeDateTo=null,this.isDestroyed=!0})),ue(this,"update",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=D({},w.opts),{silent:Q}=H;D(w.opts,A);let{timepicker:ie,buttons:te,range:se,selectedDates:St,isMobile:Yr}=w.opts,zr=w.visible||w.treatAsInline;w._createMinMaxDates(),w._limitViewDateByMaxMinDates(),w._handleLocale(),St&&(w.selectedDates=[],w.selectDate(St,{silent:Q})),A.view&&w.setCurrentView(A.view,{silent:Q}),w._setInputValue(),j.range&&!se?(w.rangeDateTo=!1,w.rangeDateFrom=!1):!j.range&&se&&w.selectedDates.length&&(w.rangeDateFrom=w.selectedDates[0],w.rangeDateTo=w.selectedDates[1]),j.timepicker&&!ie?(zr&&w.timepicker.destroy(),w.timepicker=!1,w.$timepicker.parentNode.removeChild(w.$timepicker)):!j.timepicker&&ie&&w._addTimepicker(),!j.buttons&&te?w._addButtons():j.buttons&&!te?(w.buttons.destroy(),w.$buttons.parentNode.removeChild(w.$buttons)):zr&&j.buttons&&te&&w.buttons.clearHtml().render(),!j.isMobile&&Yr?(w.treatAsInline||Qi||w._createMobileOverlay(),w._addMobileAttributes(),w.visible&&w._showMobileOverlay()):j.isMobile&&!Yr&&(w._removeMobileAttributes(),w.visible&&(Qi.classList.remove("-active-"),typeof w.opts.position!="function"&&w.setPosition())),zr&&(w.nav.update(),w.views[w.currentView].render(),w.currentView===t.days&&w.views[w.currentView].renderDayNames())})),ue(this,"disableDate",((A,H)=>{(Array.isArray(A)?A:[A]).forEach((j=>{let Q=S(j);if(!Q)return;let ie=H?"delete":"add";this.disabledDates[ie](this.formatDate(Q,"yyyy-MM-dd"));let te=this.getCell(Q,this.currentViewSingular);te&&te.adpCell.render()}),[])})),ue(this,"enableDate",(A=>{this.disableDate(A,!0)})),ue(this,"isDateDisabled",(A=>{let H=S(A);return this.disabledDates.has(this.formatDate(H,"yyyy-MM-dd"))})),ue(this,"isOtherMonth",(A=>{let{month:H}=p(A);return H!==this.parsedViewDate.month})),ue(this,"isOtherYear",(A=>{let{year:H}=p(A);return H!==this.parsedViewDate.year})),ue(this,"isOtherDecade",(A=>{let{year:H}=p(A),[j,Q]=f(this.viewDate);return H<j||H>Q})),ue(this,"_onChangeSelectedDate",(A=>{let{silent:H}=A;setTimeout((()=>{this._setInputValue(),this.opts.onSelect&&!H&&this._triggerOnSelect()}))})),ue(this,"_onChangeFocusedDate",(function(A){let{viewDateTransition:H}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!A)return;let j=!1;H&&(j=w.isOtherMonth(A)||w.isOtherYear(A)||w.isOtherDecade(A)),j&&w.setViewDate(A),w.opts.onFocus&&w.opts.onFocus({datepicker:w,date:A})})),ue(this,"_onChangeTime",(A=>{let{hours:H,minutes:j}=A,Q=new Date,{lastSelectedDate:ie,opts:{onSelect:te}}=this,se=ie;ie||(se=Q);let St=this.getCell(se,this.currentViewSingular),Yr=St&&St.adpCell;Yr&&Yr.isDisabled||(se.setHours(H),se.setMinutes(j),ie?(this._setInputValue(),te&&this._triggerOnSelect()):this.selectDate(se))})),ue(this,"_onFocus",(A=>{this.visible||this.show()})),ue(this,"_onBlur",(A=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()})),ue(this,"_onMouseDown",(A=>{this.inFocus=!0})),ue(this,"_onMouseUp",(A=>{this.inFocus=!1,this.$el.focus()})),ue(this,"_onResize",(()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()})),ue(this,"_onClickOverlay",(()=>{this.visible&&this.hide()})),ue(this,"getViewDates",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return Ne.getDatesFunction(A)(w)})),ue(this,"isWeekend",(A=>this.opts.weekends.includes(A))),ue(this,"getClampedDate",(A=>{let{minDate:H,maxDate:j}=this,Q=A;return j&&v(A,j)?Q=j:H&&y(A,H)&&(Q=H),Q})),this.$el=n(x),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=D({},r,E),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||!1);let{view:R,startDate:q}=this.opts;q||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=S(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=R,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=!1,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:x,treatAsInline:E,opts:{inline:w,isMobile:R,selectedDates:q,keyboardNav:A,onlyTimepicker:H}}=this,j=n("body");(!he||he&&Yi&&!j.contains(Yi))&&!w&&this.elIsInput&&!this.$customContainer&&ae.buildGlobalContainer(ae.defaultGlobalContainerId),!R||Qi||E||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(w||this._bindEvents(),A&&!H&&(this.keyboardNav=new uo({dp:this,opts:x}))),q&&this.selectDate(q,{silent:!0}),this.opts.visible&&!E&&this.show(),R&&!E&&this.$el.setAttribute("readonly",!0),E&&this._createComponents()}_createMobileOverlay(){Qi=a({className:"air-datepicker-overlay"}),Yi.appendChild(Qi)}_createComponents(){let{opts:x,treatAsInline:E,opts:{inline:w,buttons:R,timepicker:q,position:A,classes:H,onlyTimepicker:j,isMobile:Q}}=this;this._buildBaseHtml(),this.elIsInput&&(w||this._setPositionClasses(A)),!w&&this.elIsInput||this.$datepicker.classList.add("-inline-"),H&&this.$datepicker.classList.add(...H.split(" ")),j&&this.$datepicker.classList.add("-only-timepicker-"),Q&&!E&&this._addMobileAttributes(),this.views[this.currentView]=new Ne({dp:this,type:this.currentView,opts:x}),this.nav=new tr({dp:this,opts:x}),q&&this._addTimepicker(),R&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let x in this.views)this.views[x].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){Qi.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Qi.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:x,maxDate:E}=this.opts;this.minDate=!!x&&S(x),this.maxDate=!!E&&S(E)}_addTimepicker(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new rr({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=a({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new wr({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(t.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(t.eventChangeFocusDate,this._onChangeFocusedDate),this.on(t.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:x}=this.opts;var E,w;this.elIsInput?x?(E=this.$datepicker,(w=this.$el).parentNode.insertBefore(E,w.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=n(".air-datepicker--content",this.$datepicker),this.$pointer=n(".air-datepicker--pointer",this.$datepicker),this.$nav=n(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:x,dateFormat:E,firstDay:w,timepicker:R,onlyTimepicker:q,timeFormat:A,dateTimeSeparator:H}=this.opts;var j;this.locale=(j=x,JSON.parse(JSON.stringify(j))),E&&(this.locale.dateFormat=E),A!==void 0&&A!==""&&(this.locale.timeFormat=A);let{timeFormat:Q}=this.locale;if(w!==""&&(this.locale.firstDay=w),R&&typeof E!="function"){let ie=Q?H:"";this.locale.dateFormat=[this.locale.dateFormat,Q||""].join(ie)}q&&typeof E!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(x){if(typeof x=="function")return void this.$datepicker.classList.add("-custom-position-");let E=(x=x.split(" "))[0],w=`air-datepicker -${E}-${x[1]}- -from-${E}-`;this.$datepicker.classList.add(...w.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:x,minDate:E,maxDate:w}=this;w&&v(x,w)&&this.setViewDate(w),E&&y(x,E)&&this.setViewDate(E)}formatDate(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,E=arguments.length>1?arguments[1]:void 0;if(x=S(x),!(x instanceof Date))return;let w=E,R=this.locale,q=p(x),A=q.dayPeriod,H=f(x),j=ae.replacer,Q={T:x.getTime(),m:q.minutes,mm:q.fullMinutes,h:q.hours12,hh:q.fullHours12,H:q.hours,HH:q.fullHours,aa:A,AA:A.toUpperCase(),E:R.daysShort[q.day],EEEE:R.days[q.day],d:q.date,dd:q.fullDate,M:q.month+1,MM:q.fullMonth,MMM:R.monthsShort[q.month],MMMM:R.months[q.month],yy:q.year.toString().slice(-2),yyyy:q.year,yyyy1:H[0],yyyy2:H[1]};for(let[ie,te]of Object.entries(Q))w=j(w,$(ie),te);return w}down(x){this._handleUpDownActions(x,"down")}up(x){this._handleUpDownActions(x,"up")}selectDate(x){let E,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:R,parsedViewDate:q,selectedDates:A}=this,{updateTime:H,silent:j}=w,{moveToOtherMonthsOnSelect:Q,moveToOtherYearsOnSelect:ie,multipleDates:te,range:se,autoClose:St,onBeforeSelect:Yr}=this.opts,zr=A.length;if(Array.isArray(x))return x.forEach((vn=>{this.selectDate(vn,w)})),new Promise((vn=>{setTimeout(vn)}));if((x=S(x))instanceof Date){if(Yr&&!j&&!Yr({date:x,datepicker:this}))return Promise.resolve();if(R===t.days&&x.getMonth()!==q.month&&Q&&(E=new Date(x.getFullYear(),x.getMonth(),1)),R===t.years&&x.getFullYear()!==q.year&&ie&&(E=new Date(x.getFullYear(),0,1)),E&&this.setViewDate(E),te&&!se){if(zr===te)return;this._checkIfDateIsSelected(x)||A.push(x)}else if(se)switch(zr){case 1:A.push(x),this.rangeDateTo||(this.rangeDateTo=x),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=x),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[x],this.rangeDateFrom=x,this.rangeDateTo="";break;default:this.selectedDates=[x],this.rangeDateFrom=x}else this.selectedDates=[x];return this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,silent:w?.silent,date:x,updateTime:H}),this._updateLastSelectedDate(x),St&&!this.timepickerIsActive&&this.visible&&(te||se?se&&zr===1&&this.hide():this.hide()),new Promise((vn=>{setTimeout(vn)}))}}unselectDate(x){let E=this.selectedDates,w=this;if((x=S(x))instanceof Date)return E.some(((R,q)=>{if(g(R,x))return E.splice(q,1),w.selectedDates.length?(w.rangeDateTo="",w.rangeDateFrom=E[0],w._updateLastSelectedDate(w.selectedDates[w.selectedDates.length-1])):(w.rangeDateFrom="",w.rangeDateTo="",w._updateLastSelectedDate(!1)),this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,date:x}),!0}))}replaceDate(x,E){let w=this.selectedDates.find((q=>g(q,x,this.currentView))),R=this.selectedDates.indexOf(w);R<0||g(this.selectedDates[R],E,this.currentView)||(this.selectedDates[R]=E,this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,date:E,updateTime:!0}),this._updateLastSelectedDate(E))}clear(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.lastSelectedDate=!1,this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,silent:x.silent}),new Promise((E=>{setTimeout(E)}))}show(){let{onShow:x,isMobile:E}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,x&&this._scheduleCallAfterTransition(x),E&&this._showMobileOverlay()}hide(){let{onHide:x,isMobile:E}=this.opts,w=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((R=>{!this.customHide&&(R&&w||!R&&!w)&&this._finishHide(),x&&x(R)})),E&&Qi.classList.remove("-active-")}_triggerOnSelect(){let x=[],E=[],{selectedDates:w,locale:R,opts:{onSelect:q,multipleDates:A,range:H}}=this,j=A||H,Q=typeof R.dateFormat=="function";w.length&&(x=w.map(C),E=Q?A?R.dateFormat(x):x.map((ie=>R.dateFormat(ie))):x.map((ie=>this.formatDate(ie,R.dateFormat)))),q({date:j?x:x[0],formattedDate:j?E:E[0],datepicker:this})}_handleAlreadySelectedDates(x,E){let{selectedDates:w,rangeDateFrom:R,rangeDateTo:q}=this,{range:A,toggleSelected:H}=this.opts,j=w.length,Q=typeof H=="function"?H({datepicker:this,date:E}):H,ie=!!(A&&j===1&&x),te=ie?C(E):E;A&&!Q&&(j!==2&&this.selectDate(te),j===2&&g(R,q))||(Q?this.unselectDate(te):this._updateLastSelectedDate(ie?te:x))}_handleUpDownActions(x,E){if(!((x=S(x||this.focusDate||this.viewDate))instanceof Date))return;let w=E==="up"?this.viewIndex+1:this.viewIndex-1;w>2&&(w=2),w<0&&(w=0),this.setViewDate(new Date(x.getFullYear(),x.getMonth(),1)),this.setCurrentView(this.viewIndexes[w])}getCell(x){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.day;if(!((x=S(x))instanceof Date))return;let{year:w,month:R,date:q}=p(x),A=`[data-year="${w}"]`,H=`[data-month="${R}"]`,j={[t.day]:`${A}${H}[data-date="${q}"]`,[t.month]:`${A}${H}`,[t.year]:`${A}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(j[E]):void 0}_showMobileOverlay(){Qi.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce(((x,E)=>parseFloat(E)+x),0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return p(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return f(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===t.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===t.days}get $container(){return this.$customContainer||Yi}static replacer(x,E,w){return x.replace(E,(function(R,q,A,H){return q+w+H}))}}var _e;return ue(ae,"defaults",r),ue(ae,"version","3.6.0"),ue(ae,"defaultGlobalContainerId","air-datepicker-global-container"),_e=ae.prototype,Object.assign(_e,Qa),i.default})()}))});var K1=Hn((Gie,W1)=>{var zi=-1,Br=1,Qt=0;function Ql(o,i,t,r,n){if(o===i)return o?[[Qt,o]]:[];if(t!=null){var a=M8(o,i,t);if(a)return a}var s=fm(o,i),l=o.substring(0,s);o=o.substring(s),i=i.substring(s),s=sp(o,i);var p=o.substring(o.length-s);o=o.substring(0,o.length-s),i=i.substring(0,i.length-s);var h=_8(o,i);return l&&h.unshift([Qt,l]),p&&h.push([Qt,p]),gm(h,n),r&&C8(h),h}function _8(o,i){var t;if(!o)return[[Br,i]];if(!i)return[[zi,o]];var r=o.length>i.length?o:i,n=o.length>i.length?i:o,a=r.indexOf(n);if(a!==-1)return t=[[Br,r.substring(0,a)],[Qt,n],[Br,r.substring(a+n.length)]],o.length>i.length&&(t[0][0]=t[2][0]=zi),t;if(n.length===1)return[[zi,o],[Br,i]];var s=S8(o,i);if(s){var l=s[0],p=s[1],h=s[2],m=s[3],f=s[4],b=Ql(l,h),g=Ql(p,m);return b.concat([[Qt,f]],g)}return k8(o,i)}function k8(o,i){for(var t=o.length,r=i.length,n=Math.ceil((t+r)/2),a=n,s=2*n,l=new Array(s),p=new Array(s),h=0;h<s;h++)l[h]=-1,p[h]=-1;l[a+1]=0,p[a+1]=0;for(var m=t-r,f=m%2!==0,b=0,g=0,v=0,y=0,C=0;C<n;C++){for(var T=-C+b;T<=C-g;T+=2){var O=a+T,U;T===-C||T!==C&&l[O-1]<l[O+1]?U=l[O+1]:U=l[O-1]+1;for(var D=U-T;U<t&&D<r&&o.charAt(U)===i.charAt(D);)U++,D++;if(l[O]=U,U>t)g+=2;else if(D>r)b+=2;else if(f){var S=a+m-T;if(S>=0&&S<s&&p[S]!==-1){var $=t-p[S];if(U>=$)return N1(o,i,U,D)}}}for(var L=-C+v;L<=C-y;L+=2){var S=a+L,$;L===-C||L!==C&&p[S-1]<p[S+1]?$=p[S+1]:$=p[S-1]+1;for(var W=$-L;$<t&&W<r&&o.charAt(t-$-1)===i.charAt(r-W-1);)$++,W++;if(p[S]=$,$>t)y+=2;else if(W>r)v+=2;else if(!f){var O=a+m-L;if(O>=0&&O<s&&l[O]!==-1){var U=l[O],D=a+U-O;if($=t-$,U>=$)return N1(o,i,U,D)}}}}return[[zi,o],[Br,i]]}function N1(o,i,t,r){var n=o.substring(0,t),a=i.substring(0,r),s=o.substring(t),l=i.substring(r),p=Ql(n,a),h=Ql(s,l);return p.concat(h)}function fm(o,i){if(!o||!i||o.charAt(0)!==i.charAt(0))return 0;for(var t=0,r=Math.min(o.length,i.length),n=r,a=0;t<n;)o.substring(a,n)==i.substring(a,n)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return V1(o.charCodeAt(n-1))&&n--,n}function P1(o,i){var t=o.length,r=i.length;if(t==0||r==0)return 0;t>r?o=o.substring(t-r):t<r&&(i=i.substring(0,t));var n=Math.min(t,r);if(o==i)return n;for(var a=0,s=1;;){var l=o.substring(n-s),p=i.indexOf(l);if(p==-1)return a;s+=p,(p==0||o.substring(n-s)==i.substring(0,s))&&(a=s,s++)}}function sp(o,i){if(!o||!i||o.slice(-1)!==i.slice(-1))return 0;for(var t=0,r=Math.min(o.length,i.length),n=r,a=0;t<n;)o.substring(o.length-n,o.length-a)==i.substring(i.length-n,i.length-a)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return U1(o.charCodeAt(o.length-n))&&n--,n}function S8(o,i){var t=o.length>i.length?o:i,r=o.length>i.length?i:o;if(t.length<4||r.length*2<t.length)return null;function n(g,v,y){for(var C=g.substring(y,y+Math.floor(g.length/4)),T=-1,O="",U,D,S,$;(T=v.indexOf(C,T+1))!==-1;){var L=fm(g.substring(y),v.substring(T)),W=sp(g.substring(0,y),v.substring(0,T));O.length<W+L&&(O=v.substring(T-W,T)+v.substring(T,T+L),U=g.substring(0,y-W),D=g.substring(y+L),S=v.substring(0,T-W),$=v.substring(T+L))}return O.length*2>=g.length?[U,D,S,$,O]:null}var a=n(t,r,Math.ceil(t.length/4)),s=n(t,r,Math.ceil(t.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var p,h,m,f;o.length>i.length?(p=l[0],h=l[1],m=l[2],f=l[3]):(m=l[0],f=l[1],p=l[2],h=l[3]);var b=l[4];return[p,h,m,f,b]}function C8(o){for(var i=!1,t=[],r=0,n=null,a=0,s=0,l=0,p=0,h=0;a<o.length;)o[a][0]==Qt?(t[r++]=a,s=p,l=h,p=0,h=0,n=o[a][1]):(o[a][0]==Br?p+=o[a][1].length:h+=o[a][1].length,n&&n.length<=Math.max(s,l)&&n.length<=Math.max(p,h)&&(o.splice(t[r-1],0,[zi,n]),o[t[r-1]+1][0]=Br,r--,r--,a=r>0?t[r-1]:-1,s=0,l=0,p=0,h=0,n=null,i=!0)),a++;for(i&&gm(o),$8(o),a=1;a<o.length;){if(o[a-1][0]==zi&&o[a][0]==Br){var m=o[a-1][1],f=o[a][1],b=P1(m,f),g=P1(f,m);b>=g?(b>=m.length/2||b>=f.length/2)&&(o.splice(a,0,[Qt,f.substring(0,b)]),o[a-1][1]=m.substring(0,m.length-b),o[a+1][1]=f.substring(b),a++):(g>=m.length/2||g>=f.length/2)&&(o.splice(a,0,[Qt,m.substring(0,g)]),o[a-1][0]=Br,o[a-1][1]=f.substring(0,f.length-g),o[a+1][0]=zi,o[a+1][1]=m.substring(g),a++),a++}a++}}var H1=/[^a-zA-Z0-9]/,F1=/\s/,B1=/[\r\n]/,E8=/\n\r?\n$/,T8=/^\r?\n\r?\n/;function $8(o){function i(g,v){if(!g||!v)return 6;var y=g.charAt(g.length-1),C=v.charAt(0),T=y.match(H1),O=C.match(H1),U=T&&y.match(F1),D=O&&C.match(F1),S=U&&y.match(B1),$=D&&C.match(B1),L=S&&g.match(E8),W=$&&v.match(T8);return L||W?5:S||$?4:T&&!U&&D?3:U||D?2:T||O?1:0}for(var t=1;t<o.length-1;){if(o[t-1][0]==Qt&&o[t+1][0]==Qt){var r=o[t-1][1],n=o[t][1],a=o[t+1][1],s=sp(r,n);if(s){var l=n.substring(n.length-s);r=r.substring(0,r.length-s),n=l+n.substring(0,n.length-s),a=l+a}for(var p=r,h=n,m=a,f=i(r,n)+i(n,a);n.charAt(0)===a.charAt(0);){r+=n.charAt(0),n=n.substring(1)+a.charAt(0),a=a.substring(1);var b=i(r,n)+i(n,a);b>=f&&(f=b,p=r,h=n,m=a)}o[t-1][1]!=p&&(p?o[t-1][1]=p:(o.splice(t-1,1),t--),o[t][1]=h,m?o[t+1][1]=m:(o.splice(t+1,1),t--))}t++}}function gm(o,i){o.push([Qt,""]);for(var t=0,r=0,n=0,a="",s="",l;t<o.length;){if(t<o.length-1&&!o[t][1]){o.splice(t,1);continue}switch(o[t][0]){case Br:n++,s+=o[t][1],t++;break;case zi:r++,a+=o[t][1],t++;break;case Qt:var p=t-n-r-1;if(i){if(p>=0&&G1(o[p][1])){var h=o[p][1].slice(-1);if(o[p][1]=o[p][1].slice(0,-1),a=h+a,s=h+s,!o[p][1]){o.splice(p,1),t--;var m=p-1;o[m]&&o[m][0]===Br&&(n++,s=o[m][1]+s,m--),o[m]&&o[m][0]===zi&&(r++,a=o[m][1]+a,m--),p=m}}if(j1(o[t][1])){var h=o[t][1].charAt(0);o[t][1]=o[t][1].slice(1),a+=h,s+=h}}if(t<o.length-1&&!o[t][1]){o.splice(t,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=fm(s,a),l!==0&&(p>=0?o[p][1]+=s.substring(0,l):(o.splice(0,0,[Qt,s.substring(0,l)]),t++),s=s.substring(l),a=a.substring(l)),l=sp(s,a),l!==0&&(o[t][1]=s.substring(s.length-l)+o[t][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var f=n+r;a.length===0&&s.length===0?(o.splice(t-f,f),t=t-f):a.length===0?(o.splice(t-f,f,[Br,s]),t=t-f+1):s.length===0?(o.splice(t-f,f,[zi,a]),t=t-f+1):(o.splice(t-f,f,[zi,a],[Br,s]),t=t-f+2)}t!==0&&o[t-1][0]===Qt?(o[t-1][1]+=o[t][1],o.splice(t,1)):t++,n=0,r=0,a="",s="";break}}o[o.length-1][1]===""&&o.pop();var b=!1;for(t=1;t<o.length-1;)o[t-1][0]===Qt&&o[t+1][0]===Qt&&(o[t][1].substring(o[t][1].length-o[t-1][1].length)===o[t-1][1]?(o[t][1]=o[t-1][1]+o[t][1].substring(0,o[t][1].length-o[t-1][1].length),o[t+1][1]=o[t-1][1]+o[t+1][1],o.splice(t-1,1),b=!0):o[t][1].substring(0,o[t+1][1].length)==o[t+1][1]&&(o[t-1][1]+=o[t+1][1],o[t][1]=o[t][1].substring(o[t+1][1].length)+o[t+1][1],o.splice(t+1,1),b=!0)),t++;b&&gm(o,i)}function V1(o){return o>=55296&&o<=56319}function U1(o){return o>=56320&&o<=57343}function j1(o){return U1(o.charCodeAt(0))}function G1(o){return V1(o.charCodeAt(o.length-1))}function A8(o){for(var i=[],t=0;t<o.length;t++)o[t][1].length>0&&i.push(o[t]);return i}function mm(o,i,t,r){return G1(o)||j1(r)?null:A8([[Qt,o],[zi,i],[Br,t],[Qt,r]])}function M8(o,i,t){var r=typeof t=="number"?{index:t,length:0}:t.oldRange,n=typeof t=="number"?null:t.newRange,a=o.length,s=i.length;if(r.length===0&&(n===null||n.length===0)){var l=r.index,p=o.slice(0,l),h=o.slice(l),m=n?n.index:null;e:{var f=l+s-a;if(m!==null&&m!==f||f<0||f>s)break e;var b=i.slice(0,f),g=i.slice(f);if(g!==h)break e;var v=Math.min(l,f),y=p.slice(0,v),C=b.slice(0,v);if(y!==C)break e;var T=p.slice(v),O=b.slice(v);return mm(y,T,O,h)}e:{if(m!==null&&m!==l)break e;var U=l,b=i.slice(0,U),g=i.slice(U);if(b!==p)break e;var D=Math.min(a-U,s-U),S=h.slice(h.length-D),$=g.slice(g.length-D);if(S!==$)break e;var T=h.slice(0,h.length-D),O=g.slice(0,g.length-D);return mm(p,T,O,S)}}if(r.length>0&&n&&n.length===0)e:{var y=o.slice(0,r.index),S=o.slice(r.index+r.length),v=y.length,D=S.length;if(s<v+D)break e;var C=i.slice(0,v),$=i.slice(s-D);if(y!==C||S!==$)break e;var T=o.slice(v,a-D),O=i.slice(v,s-D);return mm(y,T,O,S)}return null}function lp(o,i,t,r){return Ql(o,i,t,r,!0)}lp.INSERT=Br;lp.DELETE=zi;lp.EQUAL=Qt;W1.exports=lp});var Mm=Hn((Xl,zs)=>{var L8=200,ay="__lodash_hash_undefined__",sy=9007199254740991,km="[object Arguments]",q8="[object Array]",ly="[object Boolean]",cy="[object Date]",I8="[object Error]",Sm="[object Function]",dy="[object GeneratorFunction]",cp="[object Map]",py="[object Number]",Cm="[object Object]",Y1="[object Promise]",hy="[object RegExp]",dp="[object Set]",uy="[object String]",my="[object Symbol]",vm="[object WeakMap]",fy="[object ArrayBuffer]",pp="[object DataView]",gy="[object Float32Array]",by="[object Float64Array]",vy="[object Int8Array]",yy="[object Int16Array]",xy="[object Int32Array]",wy="[object Uint8Array]",zy="[object Uint8ClampedArray]",_y="[object Uint16Array]",ky="[object Uint32Array]",D8=/[\\^$.*+?()[\]{}|]/g,R8=/\w*$/,O8=/^\[object .+?Constructor\]$/,N8=/^(?:0|[1-9]\d*)$/,it={};it[km]=it[q8]=it[fy]=it[pp]=it[ly]=it[cy]=it[gy]=it[by]=it[vy]=it[yy]=it[xy]=it[cp]=it[py]=it[Cm]=it[hy]=it[dp]=it[uy]=it[my]=it[wy]=it[zy]=it[_y]=it[ky]=!0;it[I8]=it[Sm]=it[vm]=!1;var P8=typeof global=="object"&&global&&global.Object===Object&&global,H8=typeof self=="object"&&self&&self.Object===Object&&self,Kn=P8||H8||Function("return this")(),Sy=typeof Xl=="object"&&Xl&&!Xl.nodeType&&Xl,Q1=Sy&&typeof zs=="object"&&zs&&!zs.nodeType&&zs,F8=Q1&&Q1.exports===Sy;function B8(o,i){return o.set(i[0],i[1]),o}function V8(o,i){return o.add(i),o}function U8(o,i){for(var t=-1,r=o?o.length:0;++t<r&&i(o[t],t,o)!==!1;);return o}function j8(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}function Cy(o,i,t,r){var n=-1,a=o?o.length:0;for(r&&a&&(t=o[++n]);++n<a;)t=i(t,o[n],n,o);return t}function G8(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function W8(o,i){return o?.[i]}function Ey(o){var i=!1;if(o!=null&&typeof o.toString!="function")try{i=!!(o+"")}catch{}return i}function X1(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function Em(o,i){return function(t){return o(i(t))}}function J1(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var K8=Array.prototype,Y8=Function.prototype,hp=Object.prototype,bm=Kn["__core-js_shared__"],Z1=(function(){var o=/[^.]+$/.exec(bm&&bm.keys&&bm.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),Ty=Y8.toString,$o=hp.hasOwnProperty,up=hp.toString,Q8=RegExp("^"+Ty.call($o).replace(D8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ey=F8?Kn.Buffer:void 0,ty=Kn.Symbol,ry=Kn.Uint8Array,X8=Em(Object.getPrototypeOf,Object),J8=Object.create,Z8=hp.propertyIsEnumerable,e9=K8.splice,iy=Object.getOwnPropertySymbols,t9=ey?ey.isBuffer:void 0,r9=Em(Object.keys,Object),ym=Ss(Kn,"DataView"),Jl=Ss(Kn,"Map"),xm=Ss(Kn,"Promise"),wm=Ss(Kn,"Set"),zm=Ss(Kn,"WeakMap"),Zl=Ss(Object,"create"),i9=$a(ym),n9=$a(Jl),o9=$a(xm),a9=$a(wm),s9=$a(zm),ny=ty?ty.prototype:void 0,oy=ny?ny.valueOf:void 0;function Ta(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function l9(){this.__data__=Zl?Zl(null):{}}function c9(o){return this.has(o)&&delete this.__data__[o]}function d9(o){var i=this.__data__;if(Zl){var t=i[o];return t===ay?void 0:t}return $o.call(i,o)?i[o]:void 0}function p9(o){var i=this.__data__;return Zl?i[o]!==void 0:$o.call(i,o)}function h9(o,i){var t=this.__data__;return t[o]=Zl&&i===void 0?ay:i,this}Ta.prototype.clear=l9;Ta.prototype.delete=c9;Ta.prototype.get=d9;Ta.prototype.has=p9;Ta.prototype.set=h9;function Yn(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function u9(){this.__data__=[]}function m9(o){var i=this.__data__,t=mp(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():e9.call(i,t,1),!0}function f9(o){var i=this.__data__,t=mp(i,o);return t<0?void 0:i[t][1]}function g9(o){return mp(this.__data__,o)>-1}function b9(o,i){var t=this.__data__,r=mp(t,o);return r<0?t.push([o,i]):t[r][1]=i,this}Yn.prototype.clear=u9;Yn.prototype.delete=m9;Yn.prototype.get=f9;Yn.prototype.has=g9;Yn.prototype.set=b9;function _s(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function v9(){this.__data__={hash:new Ta,map:new(Jl||Yn),string:new Ta}}function y9(o){return fp(this,o).delete(o)}function x9(o){return fp(this,o).get(o)}function w9(o){return fp(this,o).has(o)}function z9(o,i){return fp(this,o).set(o,i),this}_s.prototype.clear=v9;_s.prototype.delete=y9;_s.prototype.get=x9;_s.prototype.has=w9;_s.prototype.set=z9;function ks(o){this.__data__=new Yn(o)}function _9(){this.__data__=new Yn}function k9(o){return this.__data__.delete(o)}function S9(o){return this.__data__.get(o)}function C9(o){return this.__data__.has(o)}function E9(o,i){var t=this.__data__;if(t instanceof Yn){var r=t.__data__;if(!Jl||r.length<L8-1)return r.push([o,i]),this;t=this.__data__=new _s(r)}return t.set(o,i),this}ks.prototype.clear=_9;ks.prototype.delete=k9;ks.prototype.get=S9;ks.prototype.has=C9;ks.prototype.set=E9;function T9(o,i){var t=$m(o)||J9(o)?G8(o.length,String):[],r=t.length,n=!!r;for(var a in o)(i||$o.call(o,a))&&!(n&&(a=="length"||K9(a,r)))&&t.push(a);return t}function $y(o,i,t){var r=o[i];(!($o.call(o,i)&&qy(r,t))||t===void 0&&!(i in o))&&(o[i]=t)}function mp(o,i){for(var t=o.length;t--;)if(qy(o[t][0],i))return t;return-1}function $9(o,i){return o&&Ay(i,Am(i),o)}function _m(o,i,t,r,n,a,s){var l;if(r&&(l=a?r(o,n,a,s):r(o)),l!==void 0)return l;if(!gp(o))return o;var p=$m(o);if(p){if(l=j9(o),!i)return B9(o,l)}else{var h=Ea(o),m=h==Sm||h==dy;if(e6(o))return D9(o,i);if(h==Cm||h==km||m&&!a){if(Ey(o))return a?o:{};if(l=G9(m?{}:o),!i)return V9(o,$9(l,o))}else{if(!it[h])return a?o:{};l=W9(o,h,_m,i)}}s||(s=new ks);var f=s.get(o);if(f)return f;if(s.set(o,l),!p)var b=t?U9(o):Am(o);return U8(b||o,function(g,v){b&&(v=g,g=o[v]),$y(l,v,_m(g,i,t,r,v,o,s))}),l}function A9(o){return gp(o)?J8(o):{}}function M9(o,i,t){var r=i(o);return $m(o)?r:j8(r,t(o))}function L9(o){return up.call(o)}function q9(o){if(!gp(o)||Q9(o))return!1;var i=Dy(o)||Ey(o)?Q8:O8;return i.test($a(o))}function I9(o){if(!Ly(o))return r9(o);var i=[];for(var t in Object(o))$o.call(o,t)&&t!="constructor"&&i.push(t);return i}function D9(o,i){if(i)return o.slice();var t=new o.constructor(o.length);return o.copy(t),t}function Tm(o){var i=new o.constructor(o.byteLength);return new ry(i).set(new ry(o)),i}function R9(o,i){var t=i?Tm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}function O9(o,i,t){var r=i?t(X1(o),!0):X1(o);return Cy(r,B8,new o.constructor)}function N9(o){var i=new o.constructor(o.source,R8.exec(o));return i.lastIndex=o.lastIndex,i}function P9(o,i,t){var r=i?t(J1(o),!0):J1(o);return Cy(r,V8,new o.constructor)}function H9(o){return oy?Object(oy.call(o)):{}}function F9(o,i){var t=i?Tm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}function B9(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}function Ay(o,i,t,r){t||(t={});for(var n=-1,a=i.length;++n<a;){var s=i[n],l=r?r(t[s],o[s],s,t,o):void 0;$y(t,s,l===void 0?o[s]:l)}return t}function V9(o,i){return Ay(o,My(o),i)}function U9(o){return M9(o,Am,My)}function fp(o,i){var t=o.__data__;return Y9(i)?t[typeof i=="string"?"string":"hash"]:t.map}function Ss(o,i){var t=W8(o,i);return q9(t)?t:void 0}var My=iy?Em(iy,Object):i6,Ea=L9;(ym&&Ea(new ym(new ArrayBuffer(1)))!=pp||Jl&&Ea(new Jl)!=cp||xm&&Ea(xm.resolve())!=Y1||wm&&Ea(new wm)!=dp||zm&&Ea(new zm)!=vm)&&(Ea=function(o){var i=up.call(o),t=i==Cm?o.constructor:void 0,r=t?$a(t):void 0;if(r)switch(r){case i9:return pp;case n9:return cp;case o9:return Y1;case a9:return dp;case s9:return vm}return i});function j9(o){var i=o.length,t=o.constructor(i);return i&&typeof o[0]=="string"&&$o.call(o,"index")&&(t.index=o.index,t.input=o.input),t}function G9(o){return typeof o.constructor=="function"&&!Ly(o)?A9(X8(o)):{}}function W9(o,i,t,r){var n=o.constructor;switch(i){case fy:return Tm(o);case ly:case cy:return new n(+o);case pp:return R9(o,r);case gy:case by:case vy:case yy:case xy:case wy:case zy:case _y:case ky:return F9(o,r);case cp:return O9(o,r,t);case py:case uy:return new n(o);case hy:return N9(o);case dp:return P9(o,r,t);case my:return H9(o)}}function K9(o,i){return i=i??sy,!!i&&(typeof o=="number"||N8.test(o))&&o>-1&&o%1==0&&o<i}function Y9(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function Q9(o){return!!Z1&&Z1 in o}function Ly(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||hp;return o===t}function $a(o){if(o!=null){try{return Ty.call(o)}catch{}try{return o+""}catch{}}return""}function X9(o){return _m(o,!0,!0)}function qy(o,i){return o===i||o!==o&&i!==i}function J9(o){return Z9(o)&&$o.call(o,"callee")&&(!Z8.call(o,"callee")||up.call(o)==km)}var $m=Array.isArray;function Iy(o){return o!=null&&t6(o.length)&&!Dy(o)}function Z9(o){return r6(o)&&Iy(o)}var e6=t9||n6;function Dy(o){var i=gp(o)?up.call(o):"";return i==Sm||i==dy}function t6(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=sy}function gp(o){var i=typeof o;return!!o&&(i=="object"||i=="function")}function r6(o){return!!o&&typeof o=="object"}function Am(o){return Iy(o)?T9(o):I9(o)}function i6(){return[]}function n6(){return!1}zs.exports=X9});var Vm=Hn((ec,Es)=>{var o6=200,Bm="__lodash_hash_undefined__",kp=1,Wy=2,Ky=9007199254740991,bp="[object Arguments]",Dm="[object Array]",a6="[object AsyncFunction]",Yy="[object Boolean]",Qy="[object Date]",Xy="[object Error]",Jy="[object Function]",s6="[object GeneratorFunction]",vp="[object Map]",Zy="[object Number]",l6="[object Null]",Cs="[object Object]",Ry="[object Promise]",c6="[object Proxy]",ex="[object RegExp]",yp="[object Set]",tx="[object String]",d6="[object Symbol]",p6="[object Undefined]",Rm="[object WeakMap]",rx="[object ArrayBuffer]",xp="[object DataView]",h6="[object Float32Array]",u6="[object Float64Array]",m6="[object Int8Array]",f6="[object Int16Array]",g6="[object Int32Array]",b6="[object Uint8Array]",v6="[object Uint8ClampedArray]",y6="[object Uint16Array]",x6="[object Uint32Array]",w6=/[\\^$.*+?()[\]{}|]/g,z6=/^\[object .+?Constructor\]$/,_6=/^(?:0|[1-9]\d*)$/,ct={};ct[h6]=ct[u6]=ct[m6]=ct[f6]=ct[g6]=ct[b6]=ct[v6]=ct[y6]=ct[x6]=!0;ct[bp]=ct[Dm]=ct[rx]=ct[Yy]=ct[xp]=ct[Qy]=ct[Xy]=ct[Jy]=ct[vp]=ct[Zy]=ct[Cs]=ct[ex]=ct[yp]=ct[tx]=ct[Rm]=!1;var ix=typeof global=="object"&&global&&global.Object===Object&&global,k6=typeof self=="object"&&self&&self.Object===Object&&self,Qn=ix||k6||Function("return this")(),nx=typeof ec=="object"&&ec&&!ec.nodeType&&ec,Oy=nx&&typeof Es=="object"&&Es&&!Es.nodeType&&Es,ox=Oy&&Oy.exports===nx,Lm=ox&&ix.process,Ny=(function(){try{return Lm&&Lm.binding&&Lm.binding("util")}catch{}})(),Py=Ny&&Ny.isTypedArray;function S6(o,i){for(var t=-1,r=o==null?0:o.length,n=0,a=[];++t<r;){var s=o[t];i(s,t,o)&&(a[n++]=s)}return a}function C6(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}function E6(o,i){for(var t=-1,r=o==null?0:o.length;++t<r;)if(i(o[t],t,o))return!0;return!1}function T6(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function $6(o){return function(i){return o(i)}}function A6(o,i){return o.has(i)}function M6(o,i){return o?.[i]}function L6(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function q6(o,i){return function(t){return o(i(t))}}function I6(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var D6=Array.prototype,R6=Function.prototype,Sp=Object.prototype,qm=Qn["__core-js_shared__"],ax=R6.toString,Tn=Sp.hasOwnProperty,Hy=(function(){var o=/[^.]+$/.exec(qm&&qm.keys&&qm.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),sx=Sp.toString,O6=RegExp("^"+ax.call(Tn).replace(w6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fy=ox?Qn.Buffer:void 0,wp=Qn.Symbol,By=Qn.Uint8Array,lx=Sp.propertyIsEnumerable,N6=D6.splice,Aa=wp?wp.toStringTag:void 0,Vy=Object.getOwnPropertySymbols,P6=Fy?Fy.isBuffer:void 0,H6=q6(Object.keys,Object),Om=Ts(Qn,"DataView"),tc=Ts(Qn,"Map"),Nm=Ts(Qn,"Promise"),Pm=Ts(Qn,"Set"),Hm=Ts(Qn,"WeakMap"),rc=Ts(Object,"create"),F6=qa(Om),B6=qa(tc),V6=qa(Nm),U6=qa(Pm),j6=qa(Hm),Uy=wp?wp.prototype:void 0,Im=Uy?Uy.valueOf:void 0;function Ma(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function G6(){this.__data__=rc?rc(null):{},this.size=0}function W6(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}function K6(o){var i=this.__data__;if(rc){var t=i[o];return t===Bm?void 0:t}return Tn.call(i,o)?i[o]:void 0}function Y6(o){var i=this.__data__;return rc?i[o]!==void 0:Tn.call(i,o)}function Q6(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=rc&&i===void 0?Bm:i,this}Ma.prototype.clear=G6;Ma.prototype.delete=W6;Ma.prototype.get=K6;Ma.prototype.has=Y6;Ma.prototype.set=Q6;function Xn(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function X6(){this.__data__=[],this.size=0}function J6(o){var i=this.__data__,t=Cp(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():N6.call(i,t,1),--this.size,!0}function Z6(o){var i=this.__data__,t=Cp(i,o);return t<0?void 0:i[t][1]}function eS(o){return Cp(this.__data__,o)>-1}function tS(o,i){var t=this.__data__,r=Cp(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}Xn.prototype.clear=X6;Xn.prototype.delete=J6;Xn.prototype.get=Z6;Xn.prototype.has=eS;Xn.prototype.set=tS;function La(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function rS(){this.size=0,this.__data__={hash:new Ma,map:new(tc||Xn),string:new Ma}}function iS(o){var i=Ep(this,o).delete(o);return this.size-=i?1:0,i}function nS(o){return Ep(this,o).get(o)}function oS(o){return Ep(this,o).has(o)}function aS(o,i){var t=Ep(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}La.prototype.clear=rS;La.prototype.delete=iS;La.prototype.get=nS;La.prototype.has=oS;La.prototype.set=aS;function zp(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new La;++i<t;)this.add(o[i])}function sS(o){return this.__data__.set(o,Bm),this}function lS(o){return this.__data__.has(o)}zp.prototype.add=zp.prototype.push=sS;zp.prototype.has=lS;function Mo(o){var i=this.__data__=new Xn(o);this.size=i.size}function cS(){this.__data__=new Xn,this.size=0}function dS(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}function pS(o){return this.__data__.get(o)}function hS(o){return this.__data__.has(o)}function uS(o,i){var t=this.__data__;if(t instanceof Xn){var r=t.__data__;if(!tc||r.length<o6-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new La(r)}return t.set(o,i),this.size=t.size,this}Mo.prototype.clear=cS;Mo.prototype.delete=dS;Mo.prototype.get=pS;Mo.prototype.has=hS;Mo.prototype.set=uS;function mS(o,i){var t=_p(o),r=!t&&$S(o),n=!t&&!r&&Fm(o),a=!t&&!r&&!n&&fx(o),s=t||r||n||a,l=s?T6(o.length,String):[],p=l.length;for(var h in o)(i||Tn.call(o,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||kS(h,p)))&&l.push(h);return l}function Cp(o,i){for(var t=o.length;t--;)if(px(o[t][0],i))return t;return-1}function fS(o,i,t){var r=i(o);return _p(o)?r:C6(r,t(o))}function nc(o){return o==null?o===void 0?p6:l6:Aa&&Aa in Object(o)?zS(o):TS(o)}function jy(o){return ic(o)&&nc(o)==bp}function cx(o,i,t,r,n){return o===i?!0:o==null||i==null||!ic(o)&&!ic(i)?o!==o&&i!==i:gS(o,i,t,r,cx,n)}function gS(o,i,t,r,n,a){var s=_p(o),l=_p(i),p=s?Dm:Ao(o),h=l?Dm:Ao(i);p=p==bp?Cs:p,h=h==bp?Cs:h;var m=p==Cs,f=h==Cs,b=p==h;if(b&&Fm(o)){if(!Fm(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Mo),s||fx(o)?dx(o,i,t,r,n,a):xS(o,i,p,t,r,n,a);if(!(t&kp)){var g=m&&Tn.call(o,"__wrapped__"),v=f&&Tn.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,C=v?i.value():i;return a||(a=new Mo),n(y,C,t,r,a)}}return b?(a||(a=new Mo),wS(o,i,t,r,n,a)):!1}function bS(o){if(!mx(o)||CS(o))return!1;var i=hx(o)?O6:z6;return i.test(qa(o))}function vS(o){return ic(o)&&ux(o.length)&&!!ct[nc(o)]}function yS(o){if(!ES(o))return H6(o);var i=[];for(var t in Object(o))Tn.call(o,t)&&t!="constructor"&&i.push(t);return i}function dx(o,i,t,r,n,a){var s=t&kp,l=o.length,p=i.length;if(l!=p&&!(s&&p>l))return!1;var h=a.get(o);if(h&&a.get(i))return h==i;var m=-1,f=!0,b=t&Wy?new zp:void 0;for(a.set(o,i),a.set(i,o);++m<l;){var g=o[m],v=i[m];if(r)var y=s?r(v,g,m,i,o,a):r(g,v,m,o,i,a);if(y!==void 0){if(y)continue;f=!1;break}if(b){if(!E6(i,function(C,T){if(!A6(b,T)&&(g===C||n(g,C,t,r,a)))return b.push(T)})){f=!1;break}}else if(!(g===v||n(g,v,t,r,a))){f=!1;break}}return a.delete(o),a.delete(i),f}function xS(o,i,t,r,n,a,s){switch(t){case xp:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case rx:return!(o.byteLength!=i.byteLength||!a(new By(o),new By(i)));case Yy:case Qy:case Zy:return px(+o,+i);case Xy:return o.name==i.name&&o.message==i.message;case ex:case tx:return o==i+"";case vp:var l=L6;case yp:var p=r&kp;if(l||(l=I6),o.size!=i.size&&!p)return!1;var h=s.get(o);if(h)return h==i;r|=Wy,s.set(o,i);var m=dx(l(o),l(i),r,n,a,s);return s.delete(o),m;case d6:if(Im)return Im.call(o)==Im.call(i)}return!1}function wS(o,i,t,r,n,a){var s=t&kp,l=Gy(o),p=l.length,h=Gy(i),m=h.length;if(p!=m&&!s)return!1;for(var f=p;f--;){var b=l[f];if(!(s?b in i:Tn.call(i,b)))return!1}var g=a.get(o);if(g&&a.get(i))return g==i;var v=!0;a.set(o,i),a.set(i,o);for(var y=s;++f<p;){b=l[f];var C=o[b],T=i[b];if(r)var O=s?r(T,C,b,i,o,a):r(C,T,b,o,i,a);if(!(O===void 0?C===T||n(C,T,t,r,a):O)){v=!1;break}y||(y=b=="constructor")}if(v&&!y){var U=o.constructor,D=i.constructor;U!=D&&"constructor"in o&&"constructor"in i&&!(typeof U=="function"&&U instanceof U&&typeof D=="function"&&D instanceof D)&&(v=!1)}return a.delete(o),a.delete(i),v}function Gy(o){return fS(o,LS,_S)}function Ep(o,i){var t=o.__data__;return SS(i)?t[typeof i=="string"?"string":"hash"]:t.map}function Ts(o,i){var t=M6(o,i);return bS(t)?t:void 0}function zS(o){var i=Tn.call(o,Aa),t=o[Aa];try{o[Aa]=void 0;var r=!0}catch{}var n=sx.call(o);return r&&(i?o[Aa]=t:delete o[Aa]),n}var _S=Vy?function(o){return o==null?[]:(o=Object(o),S6(Vy(o),function(i){return lx.call(o,i)}))}:qS,Ao=nc;(Om&&Ao(new Om(new ArrayBuffer(1)))!=xp||tc&&Ao(new tc)!=vp||Nm&&Ao(Nm.resolve())!=Ry||Pm&&Ao(new Pm)!=yp||Hm&&Ao(new Hm)!=Rm)&&(Ao=function(o){var i=nc(o),t=i==Cs?o.constructor:void 0,r=t?qa(t):"";if(r)switch(r){case F6:return xp;case B6:return vp;case V6:return Ry;case U6:return yp;case j6:return Rm}return i});function kS(o,i){return i=i??Ky,!!i&&(typeof o=="number"||_6.test(o))&&o>-1&&o%1==0&&o<i}function SS(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function CS(o){return!!Hy&&Hy in o}function ES(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||Sp;return o===t}function TS(o){return sx.call(o)}function qa(o){if(o!=null){try{return ax.call(o)}catch{}try{return o+""}catch{}}return""}function px(o,i){return o===i||o!==o&&i!==i}var $S=jy((function(){return arguments})())?jy:function(o){return ic(o)&&Tn.call(o,"callee")&&!lx.call(o,"callee")},_p=Array.isArray;function AS(o){return o!=null&&ux(o.length)&&!hx(o)}var Fm=P6||IS;function MS(o,i){return cx(o,i)}function hx(o){if(!mx(o))return!1;var i=nc(o);return i==Jy||i==s6||i==a6||i==c6}function ux(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Ky}function mx(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}function ic(o){return o!=null&&typeof o=="object"}var fx=Py?$6(Py):vS;function LS(o){return AS(o)?mS(o):yS(o)}function qS(){return[]}function IS(){return!1}Es.exports=MS});var gx=Hn(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var DS=Mm(),RS=Vm(),Um;(function(o){function i(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let p=DS(s);l||(p=Object.keys(p).reduce((h,m)=>(p[m]!=null&&(h[m]=p[m]),h),{}));for(let h in a)a[h]!==void 0&&s[h]===void 0&&(p[h]=a[h]);return Object.keys(p).length>0?p:void 0}o.compose=i;function t(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let l=Object.keys(a).concat(Object.keys(s)).reduce((p,h)=>(RS(a[h],s[h])||(p[h]=s[h]===void 0?null:s[h]),p),{});return Object.keys(l).length>0?l:void 0}o.diff=t;function r(a={},s={}){a=a||{};let l=Object.keys(s).reduce((p,h)=>(s[h]!==a[h]&&a[h]!==void 0&&(p[h]=s[h]),p),{});return Object.keys(a).reduce((p,h)=>(a[h]!==s[h]&&s[h]===void 0&&(p[h]=null),p),l)}o.invert=r;function n(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;let p=Object.keys(s).reduce((h,m)=>(a[m]===void 0&&(h[m]=s[m]),h),{});return Object.keys(p).length>0?p:void 0}o.transform=n})(Um||(Um={}));jm.default=Um});var Km=Hn(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});var Gm;(function(o){function i(t){return typeof t.delete=="number"?t.delete:typeof t.retain=="number"?t.retain:typeof t.retain=="object"&&t.retain!==null?1:typeof t.insert=="string"?t.insert.length:1}o.length=i})(Gm||(Gm={}));Wm.default=Gm});var vx=Hn(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var bx=Km(),Ym=class{constructor(i){this.ops=i,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(i){i||(i=1/0);let t=this.ops[this.index];if(t){let r=this.offset,n=bx.default.length(t);if(i>=n-r?(i=n-r,this.index+=1,this.offset=0):this.offset+=i,typeof t.delete=="number")return{delete:i};{let a={};return t.attributes&&(a.attributes=t.attributes),typeof t.retain=="number"?a.retain=i:typeof t.retain=="object"&&t.retain!==null?a.retain=t.retain:typeof t.insert=="string"?a.insert=t.insert.substr(r,i):a.insert=t.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?bx.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let i=this.ops[this.index];return i?typeof i.delete=="number"?"delete":typeof i.retain=="number"||typeof i.retain=="object"&&i.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let i=this.offset,t=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=i,this.index=t,[r].concat(n)}}else return[]}};Qm.default=Ym});var ei=Hn((Zn,$p)=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.AttributeMap=Zn.OpIterator=Zn.Op=void 0;var Tp=K1(),OS=Mm(),Xm=Vm(),Ia=gx();Zn.AttributeMap=Ia.default;var Jn=Km();Zn.Op=Jn.default;var Oi=vx();Zn.OpIterator=Oi.default;var NS="\0",yx=(o,i)=>{if(typeof o!="object"||o===null)throw new Error(`cannot retain a ${typeof o}`);if(typeof i!="object"||i===null)throw new Error(`cannot retain a ${typeof i}`);let t=Object.keys(o)[0];if(!t||t!==Object.keys(i)[0])throw new Error(`embed types not matched: ${t} != ${Object.keys(i)[0]}`);return[t,o[t],i[t]]},eo=class o{constructor(i){Array.isArray(i)?this.ops=i:i!=null&&Array.isArray(i.ops)?this.ops=i.ops:this.ops=[]}static registerEmbed(i,t){this.handlers[i]=t}static unregisterEmbed(i){delete this.handlers[i]}static getHandler(i){let t=this.handlers[i];if(!t)throw new Error(`no handlers for embed type "${i}"`);return t}insert(i,t){let r={};return typeof i=="string"&&i.length===0?this:(r.insert=i,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r))}delete(i){return i<=0?this:this.push({delete:i})}retain(i,t){if(typeof i=="number"&&i<=0)return this;let r={retain:i};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r)}push(i){let t=this.ops.length,r=this.ops[t-1];if(i=OS(i),typeof r=="object"){if(typeof i.delete=="number"&&typeof r.delete=="number")return this.ops[t-1]={delete:r.delete+i.delete},this;if(typeof r.delete=="number"&&i.insert!=null&&(t-=1,r=this.ops[t-1],typeof r!="object"))return this.ops.unshift(i),this;if(Xm(i.attributes,r.attributes)){if(typeof i.insert=="string"&&typeof r.insert=="string")return this.ops[t-1]={insert:r.insert+i.insert},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this;if(typeof i.retain=="number"&&typeof r.retain=="number")return this.ops[t-1]={retain:r.retain+i.retain},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this}}return t===this.ops.length?this.ops.push(i):this.ops.splice(t,0,i),this}chop(){let i=this.ops[this.ops.length-1];return i&&typeof i.retain=="number"&&!i.attributes&&this.ops.pop(),this}filter(i){return this.ops.filter(i)}forEach(i){this.ops.forEach(i)}map(i){return this.ops.map(i)}partition(i){let t=[],r=[];return this.forEach(n=>{(i(n)?t:r).push(n)}),[t,r]}reduce(i,t){return this.ops.reduce(i,t)}changeLength(){return this.reduce((i,t)=>t.insert?i+Jn.default.length(t):t.delete?i-t.delete:i,0)}length(){return this.reduce((i,t)=>i+Jn.default.length(t),0)}slice(i=0,t=1/0){let r=[],n=new Oi.default(this.ops),a=0;for(;a<t&&n.hasNext();){let s;a<i?s=n.next(i-a):(s=n.next(t-a),r.push(s)),a+=Jn.default.length(s)}return new o(r)}compose(i){let t=new Oi.default(this.ops),r=new Oi.default(i.ops),n=[],a=r.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){let l=a.retain;for(;t.peekType()==="insert"&&t.peekLength()<=l;)l-=t.peekLength(),n.push(t.next());a.retain-l>0&&r.next(a.retain-l)}let s=new o(n);for(;t.hasNext()||r.hasNext();)if(r.peekType()==="insert")s.push(r.next());else if(t.peekType()==="delete")s.push(t.next());else{let l=Math.min(t.peekLength(),r.peekLength()),p=t.next(l),h=r.next(l);if(h.retain){let m={};if(typeof p.retain=="number")m.retain=typeof h.retain=="number"?l:h.retain;else if(typeof h.retain=="number")p.retain==null?m.insert=p.insert:m.retain=p.retain;else{let b=p.retain==null?"insert":"retain",[g,v,y]=yx(p[b],h.retain),C=o.getHandler(g);m[b]={[g]:C.compose(v,y,b==="retain")}}let f=Ia.default.compose(p.attributes,h.attributes,typeof p.retain=="number");if(f&&(m.attributes=f),s.push(m),!r.hasNext()&&Xm(s.ops[s.ops.length-1],m)){let b=new o(t.rest());return s.concat(b).chop()}}else typeof h.delete=="number"&&(typeof p.retain=="number"||typeof p.retain=="object"&&p.retain!==null)&&s.push(h)}return s.chop()}concat(i){let t=new o(this.ops.slice());return i.ops.length>0&&(t.push(i.ops[0]),t.ops=t.ops.concat(i.ops.slice(1))),t}diff(i,t){if(this.ops===i.ops)return new o;let r=[this,i].map(p=>p.map(h=>{if(h.insert!=null)return typeof h.insert=="string"?h.insert:NS;let m=p===i?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")),n=new o,a=Tp(r[0],r[1],t,!0),s=new Oi.default(this.ops),l=new Oi.default(i.ops);return a.forEach(p=>{let h=p[1].length;for(;h>0;){let m=0;switch(p[0]){case Tp.INSERT:m=Math.min(l.peekLength(),h),n.push(l.next(m));break;case Tp.DELETE:m=Math.min(h,s.peekLength()),s.next(m),n.delete(m);break;case Tp.EQUAL:m=Math.min(s.peekLength(),l.peekLength(),h);let f=s.next(m),b=l.next(m);Xm(f.insert,b.insert)?n.retain(m,Ia.default.diff(f.attributes,b.attributes)):n.push(b).delete(m);break}h-=m}}),n.chop()}eachLine(i,t=`
|
|
2
2
|
`){let r=new Oi.default(this.ops),n=new o,a=0;for(;r.hasNext();){if(r.peekType()!=="insert")return;let s=r.peek(),l=Jn.default.length(s)-r.peekLength(),p=typeof s.insert=="string"?s.insert.indexOf(t,l)-l:-1;if(p<0)n.push(r.next());else if(p>0)n.push(r.next(p));else{if(i(n,r.next(1).attributes||{},a)===!1)return;a+=1,n=new o}}n.length()>0&&i(n,{},a)}invert(i){let t=new o;return this.reduce((r,n)=>{if(n.insert)t.delete(Jn.default.length(n));else{if(typeof n.retain=="number"&&n.attributes==null)return t.retain(n.retain),r+n.retain;if(n.delete||typeof n.retain=="number"){let a=n.delete||n.retain;return i.slice(r,r+a).forEach(l=>{n.delete?t.push(l):n.retain&&n.attributes&&t.retain(Jn.default.length(l),Ia.default.invert(n.attributes,l.attributes))}),r+a}else if(typeof n.retain=="object"&&n.retain!==null){let a=i.slice(r,r+1),s=new Oi.default(a.ops).next(),[l,p,h]=yx(n.retain,s.insert),m=o.getHandler(l);return t.retain({[l]:m.invert(p,h)},Ia.default.invert(n.attributes,s.attributes)),r+1}}return r},0),t.chop()}transform(i,t=!1){if(t=!!t,typeof i=="number")return this.transformPosition(i,t);let r=i,n=new Oi.default(this.ops),a=new Oi.default(r.ops),s=new o;for(;n.hasNext()||a.hasNext();)if(n.peekType()==="insert"&&(t||a.peekType()!=="insert"))s.retain(Jn.default.length(n.next()));else if(a.peekType()==="insert")s.push(a.next());else{let l=Math.min(n.peekLength(),a.peekLength()),p=n.next(l),h=a.next(l);if(p.delete)continue;if(h.delete)s.push(h);else{let m=p.retain,f=h.retain,b=typeof f=="object"&&f!==null?f:l;if(typeof m=="object"&&m!==null&&typeof f=="object"&&f!==null){let g=Object.keys(m)[0];if(g===Object.keys(f)[0]){let v=o.getHandler(g);v&&(b={[g]:v.transform(m[g],f[g],t)})}}s.retain(b,Ia.default.transform(p.attributes,h.attributes,t))}}return s.chop()}transformPosition(i,t=!1){t=!!t;let r=new Oi.default(this.ops),n=0;for(;r.hasNext()&&n<=i;){let a=r.peekLength(),s=r.peekType();if(r.next(),s==="delete"){i-=Math.min(a,i-n);continue}else s==="insert"&&(n<i||!t)&&(i+=a);n+=a}return i}};eo.Op=Jn.default;eo.OpIterator=Oi.default;eo.AttributeMap=Ia.default;eo.handlers={};Zn.default=eo;typeof $p=="object"&&($p.exports=eo,$p.exports.default=eo)});var Dz=Hn((jpe,bf)=>{"use strict";var xA=Object.prototype.hasOwnProperty,Ur="~";function fc(){}Object.create&&(fc.prototype=Object.create(null),new fc().__proto__||(Ur=!1));function wA(o,i,t){this.fn=o,this.context=i,this.once=t||!1}function Iz(o,i,t,r,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var a=new wA(t,r||o,n),s=Ur?Ur+i:i;return o._events[s]?o._events[s].fn?o._events[s]=[o._events[s],a]:o._events[s].push(a):(o._events[s]=a,o._eventsCount++),o}function rh(o,i){--o._eventsCount===0?o._events=new fc:delete o._events[i]}function qr(){this._events=new fc,this._eventsCount=0}qr.prototype.eventNames=function(){var i=[],t,r;if(this._eventsCount===0)return i;for(r in t=this._events)xA.call(t,r)&&i.push(Ur?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i};qr.prototype.listeners=function(i){var t=Ur?Ur+i:i,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,a=r.length,s=new Array(a);n<a;n++)s[n]=r[n].fn;return s};qr.prototype.listenerCount=function(i){var t=Ur?Ur+i:i,r=this._events[t];return r?r.fn?1:r.length:0};qr.prototype.emit=function(i,t,r,n,a,s){var l=Ur?Ur+i:i;if(!this._events[l])return!1;var p=this._events[l],h=arguments.length,m,f;if(p.fn){switch(p.once&&this.removeListener(i,p.fn,void 0,!0),h){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,t),!0;case 3:return p.fn.call(p.context,t,r),!0;case 4:return p.fn.call(p.context,t,r,n),!0;case 5:return p.fn.call(p.context,t,r,n,a),!0;case 6:return p.fn.call(p.context,t,r,n,a,s),!0}for(f=1,m=new Array(h-1);f<h;f++)m[f-1]=arguments[f];p.fn.apply(p.context,m)}else{var b=p.length,g;for(f=0;f<b;f++)switch(p[f].once&&this.removeListener(i,p[f].fn,void 0,!0),h){case 1:p[f].fn.call(p[f].context);break;case 2:p[f].fn.call(p[f].context,t);break;case 3:p[f].fn.call(p[f].context,t,r);break;case 4:p[f].fn.call(p[f].context,t,r,n);break;default:if(!m)for(g=1,m=new Array(h-1);g<h;g++)m[g-1]=arguments[g];p[f].fn.apply(p[f].context,m)}}return!0};qr.prototype.on=function(i,t,r){return Iz(this,i,t,r,!1)};qr.prototype.once=function(i,t,r){return Iz(this,i,t,r,!0)};qr.prototype.removeListener=function(i,t,r,n){var a=Ur?Ur+i:i;if(!this._events[a])return this;if(!t)return rh(this,a),this;var s=this._events[a];if(s.fn)s.fn===t&&(!n||s.once)&&(!r||s.context===r)&&rh(this,a);else{for(var l=0,p=[],h=s.length;l<h;l++)(s[l].fn!==t||n&&!s[l].once||r&&s[l].context!==r)&&p.push(s[l]);p.length?this._events[a]=p.length===1?p[0]:p:rh(this,a)}return this};qr.prototype.removeAllListeners=function(i){var t;return i?(t=Ur?Ur+i:i,this._events[t]&&rh(this,t)):(this._events=new fc,this._eventsCount=0),this};qr.prototype.off=qr.prototype.removeListener;qr.prototype.addListener=qr.prototype.on;qr.prefixed=Ur;qr.EventEmitter=qr;typeof bf<"u"&&(bf.exports=qr)});var xl=globalThis,ib=o=>o,ad=xl.trustedTypes,nb=ad?ad.createPolicy("lit-html",{createHTML:o=>o}):void 0,Jh="$lit$",Fn=`lit$${Math.random().toFixed(9).slice(2)}$`,Zh="?"+Fn,w3=`<${Zh}>`,pa=document,wl=()=>pa.createComment(""),zl=o=>o===null||typeof o!="object"&&typeof o!="function",eu=Array.isArray,db=o=>eu(o)||typeof o?.[Symbol.iterator]=="function",Xh=`[
|
|
3
3
|
\f\r]`,yl=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ob=/-->/g,ab=/>/g,ca=RegExp(`>|${Xh}(?:([^\\s"'>=/]+)(${Xh}*=${Xh}*(?:[^
|
|
4
4
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),sb=/'/g,lb=/"/g,pb=/^(?:script|style|textarea|title)$/i,tu=o=>(i,...t)=>({_$litType$:o,strings:i,values:t}),u=tu(1),Xi=tu(2),hb=tu(3),vt=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),cb=new WeakMap,da=pa.createTreeWalker(pa,129);function ub(o,i){if(!eu(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return nb!==void 0?nb.createHTML(i):i}var mb=(o,i)=>{let t=o.length-1,r=[],n,a=i===2?"<svg>":i===3?"<math>":"",s=yl;for(let l=0;l<t;l++){let p=o[l],h,m,f=-1,b=0;for(;b<p.length&&(s.lastIndex=b,m=s.exec(p),m!==null);)b=s.lastIndex,s===yl?m[1]==="!--"?s=ob:m[1]!==void 0?s=ab:m[2]!==void 0?(pb.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=ca):m[3]!==void 0&&(s=ca):s===ca?m[0]===">"?(s=n??yl,f=-1):m[1]===void 0?f=-2:(f=s.lastIndex-m[2].length,h=m[1],s=m[3]===void 0?ca:m[3]==='"'?lb:sb):s===lb||s===sb?s=ca:s===ob||s===ab?s=yl:(s=ca,n=void 0);let g=s===ca&&o[l+1].startsWith("/>")?" ":"";a+=s===yl?p+w3:f>=0?(r.push(h),p.slice(0,f)+Jh+p.slice(f)+Fn+g):p+Fn+(f===-2?l:g)}return[ub(o,a+(o[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]},_l=class o{constructor({strings:i,_$litType$:t},r){let n;this.parts=[];let a=0,s=0,l=i.length-1,p=this.parts,[h,m]=mb(i,t);if(this.el=o.createElement(h,r),da.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=da.nextNode())!==null&&p.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Jh)){let b=m[s++],g=n.getAttribute(f).split(Fn),v=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:v[2],strings:g,ctor:v[1]==="."?ld:v[1]==="?"?cd:v[1]==="@"?dd:ua}),n.removeAttribute(f)}else f.startsWith(Fn)&&(p.push({type:6,index:a}),n.removeAttribute(f));if(pb.test(n.tagName)){let f=n.textContent.split(Fn),b=f.length-1;if(b>0){n.textContent=ad?ad.emptyScript:"";for(let g=0;g<b;g++)n.append(f[g],wl()),da.nextNode(),p.push({type:2,index:++a});n.append(f[b],wl())}}}else if(n.nodeType===8)if(n.data===Zh)p.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Fn,f+1))!==-1;)p.push({type:7,index:a}),f+=Fn.length-1}a++}}static createElement(i,t){let r=pa.createElement("template");return r.innerHTML=i,r}};function ha(o,i,t=o,r){if(i===vt)return i;let n=r!==void 0?t._$Co?.[r]:t._$Cl,a=zl(i)?void 0:i._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,t,r)),r!==void 0?(t._$Co??(t._$Co=[]))[r]=n:t._$Cl=n),n!==void 0&&(i=ha(o,n._$AS(o,i.values),n,r)),i}var sd=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){let{el:{content:t},parts:r}=this._$AD,n=(i?.creationScope??pa).importNode(t,!0);da.currentNode=n;let a=da.nextNode(),s=0,l=0,p=r[0];for(;p!==void 0;){if(s===p.index){let h;p.type===2?h=new Xa(a,a.nextSibling,this,i):p.type===1?h=new p.ctor(a,p.name,p.strings,this,i):p.type===6&&(h=new pd(a,this,i)),this._$AV.push(h),p=r[++l]}s!==p?.index&&(a=da.nextNode(),s++)}return da.currentNode=pa,n}p(i){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,t),t+=r.strings.length-2):r._$AI(i[t])),t++}},Xa=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(i,t,r,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&i?.nodeType===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=ha(this,i,t),zl(i)?i===B||i==null||i===""?(this._$AH!==B&&this._$AR(),this._$AH=B):i!==this._$AH&&i!==vt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):db(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==B&&zl(this._$AH)?this._$AA.nextSibling.data=i:this.T(pa.createTextNode(i)),this._$AH=i}$(i){let{values:t,_$litType$:r}=i,n=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=_l.createElement(ub(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new sd(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(i){let t=cb.get(i.strings);return t===void 0&&cb.set(i.strings,t=new _l(i)),t}k(i){eu(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let a of i)n===t.length?t.push(r=new o(this.O(wl()),this.O(wl()),this,this.options)):r=t[n],r._$AI(a),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(i=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);i!==this._$AB;){let r=ib(i).nextSibling;ib(i).remove(),i=r}}setConnected(i){this._$AM===void 0&&(this._$Cv=i,this._$AP?.(i))}},ua=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,r,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=i,this.name=t,this._$AM=n,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=B}_$AI(i,t=this,r,n){let a=this.strings,s=!1;if(a===void 0)i=ha(this,i,t,0),s=!zl(i)||i!==this._$AH&&i!==vt,s&&(this._$AH=i);else{let l=i,p,h;for(i=a[0],p=0;p<a.length-1;p++)h=ha(this,l[r+p],t,p),h===vt&&(h=this._$AH[p]),s||(s=!zl(h)||h!==this._$AH[p]),h===B?i=B:i!==B&&(i+=(h??"")+a[p+1]),this._$AH[p]=h}s&&!n&&this.j(i)}j(i){i===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i??"")}},ld=class extends ua{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===B?void 0:i}},cd=class extends ua{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==B)}},dd=class extends ua{constructor(i,t,r,n,a){super(i,t,r,n,a),this.type=5}_$AI(i,t=this){if((i=ha(this,i,t,0)??B)===vt)return;let r=this._$AH,n=i===B&&r!==B||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,a=i!==B&&(r===B||n);n&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,i):this._$AH.handleEvent(i)}},pd=class{constructor(i,t,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){ha(this,i)}},fb={M:Jh,P:Fn,A:Zh,C:1,L:mb,R:sd,D:db,V:ha,I:Xa,H:ua,N:cd,U:dd,B:ld,F:pd},z3=xl.litHtmlPolyfillSupport;z3?.(_l,Xa),(xl.litHtmlVersions??(xl.litHtmlVersions=[])).push("3.3.3");var Ja=(o,i,t)=>{let r=t?.renderBefore??i,n=r._$litPart$;if(n===void 0){let a=t?.renderBefore??null;r._$litPart$=n=new Xa(i.insertBefore(wl(),a),a,void 0,t??{})}return n._$AI(o),n};var dr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yt=o=>(...i)=>({_$litDirective$:o,values:i}),ir=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,r){this._$Ct=i,this._$AM=t,this._$Ci=r}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var M=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(i=>o[i]).join(" ")+" "}update(o,[i]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(let r in i)i[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(i)}let t=o.element.classList;for(let r of this.st)r in i||(t.remove(r),this.st.delete(r));for(let r in i){let n=!!i[r];n===this.st.has(r)||this.nt?.has(r)||(n?(t.add(r),this.st.add(r)):(t.remove(r),this.st.delete(r)))}return vt}});var hd=globalThis,ud=hd.ShadowRoot&&(hd.ShadyCSS===void 0||hd.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ru=Symbol(),gb=new WeakMap,kl=class{constructor(i,t,r){if(this._$cssResult$=!0,r!==ru)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(ud&&i===void 0){let r=t!==void 0&&t.length===1;r&&(i=gb.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&gb.set(t,i))}return i}toString(){return this.cssText}},z=o=>new kl(typeof o=="string"?o:o+"",void 0,ru),_=(o,...i)=>{let t=o.length===1?o[0]:i.reduce((r,n,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[a+1],o[0]);return new kl(t,o,ru)},bb=(o,i)=>{if(ud)o.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let r=document.createElement("style"),n=hd.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,o.appendChild(r)}},iu=ud?o=>o:o=>o instanceof CSSStyleSheet?(i=>{let t="";for(let r of i.cssRules)t+=r.cssText;return z(t)})(o):o;var{is:_3,defineProperty:k3,getOwnPropertyDescriptor:S3,getOwnPropertyNames:C3,getOwnPropertySymbols:E3,getPrototypeOf:T3}=Object,mo=globalThis,vb=mo.trustedTypes,$3=vb?vb.emptyScript:"",A3=mo.reactiveElementPolyfillSupport,Sl=(o,i)=>o,fo={toAttribute(o,i){switch(i){case Boolean:o=o?$3:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,i){let t=o;switch(i){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},Za=(o,i)=>!_3(o,i),yb={attribute:!0,type:String,converter:fo,reflect:!1,useDefault:!1,hasChanged:Za};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),mo.litPropertyMetadata??(mo.litPropertyMetadata=new WeakMap);var Bn=class extends HTMLElement{static addInitializer(i){this._$Ei(),(this.l??(this.l=[])).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=yb){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(i,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(i,r,t);n!==void 0&&k3(this.prototype,i,n)}}static getPropertyDescriptor(i,t,r){let{get:n,set:a}=S3(this.prototype,i)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(i,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){return this.elementProperties.get(i)??yb}static _$Ei(){if(this.hasOwnProperty(Sl("elementProperties")))return;let i=T3(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Sl("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Sl("properties"))){let t=this.properties,r=[...C3(t),...E3(t)];for(let n of r)this.createProperty(n,t[n])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let r=new Set(i.flat(1/0).reverse());for(let n of r)t.unshift(iu(n))}else i!==void 0&&t.push(iu(i));return t}static _$Eu(i,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(i=>i(this))}addController(i){(this._$EO??(this._$EO=new Set)).add(i),this.renderRoot!==void 0&&this.isConnected&&i.hostConnected?.()}removeController(i){this._$EO?.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){let i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bb(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(i=>i.hostConnected?.())}enableUpdating(i){}disconnectedCallback(){this._$EO?.forEach(i=>i.hostDisconnected?.())}attributeChangedCallback(i,t,r){this._$AK(i,r)}_$ET(i,t){let r=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,r);if(n!==void 0&&r.reflect===!0){let a=(r.converter?.toAttribute!==void 0?r.converter:fo).toAttribute(t,r.type);this._$Em=i,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(i,t){let r=this.constructor,n=r._$Eh.get(i);if(n!==void 0&&this._$Em!==n){let a=r.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:fo;this._$Em=n;let l=s.fromAttribute(t,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(i,t,r,n=!1,a){if(i!==void 0){let s=this.constructor;if(n===!1&&(a=this[i]),r??(r=s.getPropertyOptions(i)),!((r.hasChanged??Za)(a,t)||r.useDefault&&r.reflect&&a===this._$Ej?.get(i)&&!this.hasAttribute(s._$Eu(i,r))))return;this.C(i,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,t,{useDefault:r,reflect:n,wrapped:a},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(i)&&(this._$Ej.set(i,s??t??this[i]),a!==!0||s!==void 0)||(this._$AL.has(i)||(this.hasUpdated||r||(t=void 0),this._$AL.set(i,t)),n===!0&&this._$Em!==i&&(this._$Eq??(this._$Eq=new Set)).add(i))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,a]of r){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw i=!1,this._$EM(),r}i&&this._$AE(t)}willUpdate(i){}_$AE(i){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(i){}firstUpdated(i){}};Bn.elementStyles=[],Bn.shadowRootOptions={mode:"open"},Bn[Sl("elementProperties")]=new Map,Bn[Sl("finalized")]=new Map,A3?.({ReactiveElement:Bn}),(mo.reactiveElementVersions??(mo.reactiveElementVersions=[])).push("2.1.2");var Cl=globalThis,go=class extends Bn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;let i=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=Ja(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return vt}};go._$litElement$=!0,go.finalized=!0,Cl.litElementHydrateSupport?.({LitElement:go});var M3=Cl.litElementPolyfillSupport;M3?.({LitElement:go});(Cl.litElementVersions??(Cl.litElementVersions=[])).push("4.2.2");var xb=new WeakMap;function wb(o){let i=xb.get(o);return i||(i=window.getComputedStyle(o,null),xb.set(o,i)),i}function L3(o){if(typeof o.checkVisibility=="function")return o.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let i=wb(o);return i.visibility!=="hidden"&&i.display!=="none"}function q3(o){let i=wb(o),{overflowY:t,overflowX:r}=i;return t==="scroll"||r==="scroll"?!0:t!=="auto"||r!=="auto"?!1:o.scrollHeight>o.clientHeight&&t==="auto"||o.scrollWidth>o.clientWidth&&r==="auto"}function I3(o){let i=o.tagName.toLowerCase(),t=Number(o.getAttribute("tabindex"));return o.hasAttribute("tabindex")&&(isNaN(t)||t<=-1)||o.hasAttribute("disabled")||o.closest("[inert]")||i==="input"&&o.getAttribute("type")==="radio"&&!o.hasAttribute("checked")||!L3(o)?!1:(i==="audio"||i==="video")&&o.hasAttribute("controls")||o.hasAttribute("tabindex")||o.hasAttribute("contenteditable")&&o.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(i)?!0:q3(o)}function zb(o){let i=nu(o),t=i[0]??null,r=i[i.length-1]??null;return{start:t,end:r}}function D3(o,i){return o.getRootNode({composed:!0})?.host!==i}function nu(o){let i=new WeakMap,t=[];function r(n){if(n instanceof Element){if(n.hasAttribute("inert")||n.closest("[inert]")||i.has(n))return;i.set(n,!0),!t.includes(n)&&I3(n)&&t.push(n),n instanceof HTMLSlotElement&&D3(n,o)&&n.assignedElements({flatten:!0}).forEach(a=>{r(a)}),n.shadowRoot!==null&&n.shadowRoot.mode==="open"&&r(n.shadowRoot)}for(let a of n.children)r(a)}return r(o),t.sort((n,a)=>{let s=Number(n.getAttribute("tabindex"))||0;return(Number(a.getAttribute("tabindex"))||0)-s})}var _b=new WeakMap,ou=class{constructor(i){this.handleKeyDown=i=>{if(i.key==="Enter"){if(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey||i.isComposing||i.defaultPrevented)return;let r=i.target;if(this.isSelectOption(r)){i.preventDefault(),setTimeout(()=>{let a=this.findParentSelect(r);a&&this.focusNextControl(a)},0);return}if(this.shouldSkipEnterKey(r)||r.hasAttribute("trigger-submit"))return;let n=this.findParentGroup(r);if(n){i.preventDefault(),this.focusNextInGroup(r,n)||this.focusNextControl(n);return}i.preventDefault(),this.areRequiredFieldsFilled()?this.submitForm():this.focusNextControl(r);return}if(i.key==="ArrowDown"){let t=i.target,r=t.tagName;if(!(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey)&&!i.defaultPrevented){let a=this.findParentGroup(t);if(a){i.preventDefault(),this.focusNextInGroup(t,a)||this.focusNextControl(a);return}(r==="ZN-CHECKBOX"||r==="ZN-TOGGLE")&&(i.preventDefault(),this.focusNextControl(t))}}if(i.key==="ArrowUp"){let t=i.target,r=t.tagName;if(!(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey)&&!i.defaultPrevented){let a=this.findParentGroup(t);if(a){i.preventDefault(),this.focusPreviousInGroup(t,a)||this.focusPreviousControl(a);return}(r==="ZN-CHECKBOX"||r==="ZN-TOGGLE")&&(i.preventDefault(),this.focusPreviousControl(t))}}};this.form=i,this.form.addEventListener("keydown",this.handleKeyDown,!0)}shouldSkipEnterKey(i){let t=i.tagName.toLowerCase();return t==="zn-textarea"||t==="textarea"||(t==="zn-input"||t==="input")&&i.getAttribute("type")==="search"?!0:t==="button"||t==="zn-button"}shouldExcludeFromNavigation(i){let t=i.tagName.toLowerCase();return t==="button"||t==="zn-button"}isSelectOption(i){return i.tagName.toLowerCase()==="zn-option"}findParentSelect(i){let t=i;for(;t;){if(t.tagName.toLowerCase()==="zn-select")return t;let r=t.getRootNode();if(r instanceof ShadowRoot)t=r.host;else if(t.parentElement)t=t.parentElement;else break}return null}findParentGroup(i){let t=i;for(;t;){let r=t.tagName;if(r==="ZN-RADIO-GROUP"||r==="ZN-CHECKBOX-GROUP")return t;let n=t.getRootNode();if(n instanceof ShadowRoot)t=n.host;else if(t.parentElement)t=t.parentElement;else break}return null}getGroupItems(i){let t=i.tagName==="ZN-RADIO-GROUP"?"ZN-RADIO":"ZN-CHECKBOX",r=[],n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>s.tagName===t?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),a;for(;a=n.nextNode();)r.push(a);return r}focusNextInGroup(i,t){let r=this.getGroupItems(t);if(r.length===0)return!1;let n=-1;for(let a=0;a<r.length;a++)if(r[a]===i||r[a].contains(i)){n=a;break}if(n>=0&&n<r.length-1){let a=r[n+1];if(typeof a.focus=="function")return a.focus(),!0}return!1}focusPreviousInGroup(i,t){let r=this.getGroupItems(t);if(r.length===0)return!1;let n=-1;for(let a=0;a<r.length;a++)if(r[a]===i||r[a].contains(i)){n=a;break}if(n>0){let a=r[n-1];if(typeof a.focus=="function")return a.focus(),!0}return!1}areRequiredFieldsFilled(){let i=ma.get(this.form);if(!i)return!0;for(let t of i){let r=t;if(!r.name||r.disabled)continue;let n=r.value;if(!(n!=null&&n!=="")||typeof r.checkValidity=="function"&&!r.checkValidity())return!1}return!0}getNavigableControls(){let i=nu(this.form),t=[],r=new Set;for(let n of i){let a=n.tagName.toLowerCase();if(["zn-input","zn-select","zn-datepicker","zn-textarea","zn-file","zn-checkbox","zn-radio","zn-radio-group","zn-toggle"].includes(a)){if(a==="zn-radio"){let h=n.closest("zn-radio-group");if(h){r.has(h)||(r.add(h),this.shouldExcludeFromNavigation(h)||t.push(h));continue}}if(r.has(n)||(r.add(n),this.shouldExcludeFromNavigation(n)))continue;t.push(n);continue}let l=n.getRootNode().host;if(l&&l!==this.form){let h=l.tagName.toLowerCase();if(["zn-input","zn-select","zn-datepicker","zn-textarea","zn-file","zn-checkbox","zn-radio","zn-radio-group","zn-toggle"].includes(h)){if(h==="zn-radio"){let f=l.closest("zn-radio-group");if(f){r.has(f)||(r.add(f),this.shouldExcludeFromNavigation(f)||t.push(f));continue}}if(r.has(l)||(r.add(l),this.shouldExcludeFromNavigation(l)))continue;t.push(l);continue}}if(["input","select"].includes(a)){if(r.has(n)||(r.add(n),n.getAttribute("type")==="search"))continue;t.push(n)}}return t}findCurrentControlIndex(i,t){for(let r=0;r<t.length;r++){let n=t[r];if(n===i)return r;let a=i.getRootNode();if(a instanceof ShadowRoot&&a.host===n||n.contains(i)||i.contains(n))return r}return-1}focusNextControl(i){let t=this.getNavigableControls(),r=this.findCurrentControlIndex(i,t);if(r>=0&&r<t.length-1){let n=t[r+1];if(typeof n.focus=="function"&&(n.focus(),n.tagName.toLowerCase()==="zn-select")){let s=n;typeof s.show=="function"&&setTimeout(()=>{s.show?.()},0)}}}focusPreviousControl(i){let t=this.getNavigableControls(),r=this.findCurrentControlIndex(i,t);if(r>0){let n=t[r-1];if(typeof n.focus=="function"&&(n.focus(),n.tagName.toLowerCase()==="zn-select")){let s=n;typeof s.show=="function"&&setTimeout(()=>{s.show?.()},0)}}}submitForm(){let i=this.form.querySelector('[type="submit"]');if(i)i.click();else if(typeof this.form.requestSubmit=="function")this.form.requestSubmit();else{let t=new Event("submit",{bubbles:!0,cancelable:!0});this.form.dispatchEvent(t)}}destroy(){this.form.removeEventListener("keydown",this.handleKeyDown,!0)}};function kb(o){let i=_b.get(o);return i||(i=new ou(o),_b.set(o,i)),i}function pr(o){return`#${CSS.escape(o.startsWith("#")?o.slice(1):o)}`}function R3(o,i=document){let t=i.querySelector(o);if(t)return t;for(let r of i.querySelectorAll("*"))if(r.shadowRoot){let n=R3(o,r.shadowRoot);if(n)return n}return null}function O3(o,i=document,t=[]){t.push(...i.querySelectorAll(o));for(let r of i.querySelectorAll("*"))r.shadowRoot&&O3(o,r.shadowRoot,t);return t}function Ge(o,i,t){let r=[],n=(a,s)=>{if(!a||a.nodeType!==Node.ELEMENT_NODE||s&&t&&a.matches(t))return;a.matches(o)&&r.push(a);let l=a.children;if(l.length)for(let h of l)n(h,!0);let p=a.shadowRoot;if(p){let h=p.children;for(let m of h)n(m,!0)}};return n(i,!1),r}var kr=class{constructor(i,t,r=0){this.storage=i,this.prefix=t,this.ttl=r*1e3,this.cleanup()}get(i){return!i||i.length<1?null:this.stripTtl(this.storage.getItem(this.prefix+i))}stripTtl(i){if(i===null)return null;let t=i.split(",");if(t.length===1)return t[0];let r=t.shift(),n=r?parseInt(r):0;return n>0&&n<Date.now()?null:t.join(",")||""}setWithTTL(i,t,r){!i||i.length<1||(r=r>0?Date.now()+r*1e3:0,this.storage.setItem(this.prefix+i,r+","+t))}set(i,t){this.setWithTTL(i,t,this.ttl)}remove(i){this.storage.removeItem(this.prefix+i)}cleanup(){for(let i=0;i<this.storage.length;i++){let t=this.storage.key(i);t!==null&&t.startsWith(this.prefix)&&this.stripTtl(this.storage.getItem(t))===null&&this.storage.removeItem(t)}}};var ma=new WeakMap,El=new WeakMap,Tl=new WeakMap,md=new WeakMap,au=new WeakSet,fd=new WeakMap,$b="znform:";function su(o=!1){try{return o?window.localStorage:window.sessionStorage}catch{return null}}function N3(o=!1,i=0){let t=su(o);return t?new kr(t,$b,i):null}function Sb(o){let i=o?.getAttribute("store-ttl");return i&&Number(i)||0}function Cb(o){return!!o?.hasAttribute("local-storage")}function Ab(o){return o?.getAttribute("store-key")||""}function P3(o){return o.getAttribute("store-key")||""}function H3(o){return o.getAttribute("name")||("name"in o&&typeof o.name=="string"?o.name:"")}function Mb(o,i){let t=P3(o),r=Ab(i);if(t)return r?`${r}:${t}`:t;let n=H3(o);return r&&n?`${r}:${n}`:""}function Lb(o,i){let t=Cb(o)||Cb(i),r=Sb(o)||Sb(i);return N3(t,r)}function qb(o,i){let t=Mb(o,i),n=(t?Lb(o,i):null)?.get(t);if(!n)return null;try{return JSON.parse(n)}catch{return{value:n}}}function Ib(o,i,t){let r=Mb(o,i),n=r?Lb(o,i):null;n&&n.set(r,JSON.stringify(t))}function F3(o){return o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement}function B3(o){return o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")?{checked:o.checked,value:o.value}:{value:o.value}}function V3(o){o.querySelectorAll("input, textarea, select").forEach(t=>{let r=qb(t,o);if(r){if(t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")){typeof r.checked=="boolean"&&(t.checked=r.checked);return}"value"in r&&(t.value=String(r.value??""))}})}function Eb(o,i){!F3(o)||o.form!==i||Ib(o,i,B3(o))}function U3(o,i){let t={value:i};return"checked"in o&&typeof o.checked=="boolean"&&(t.checked=o.checked),"indeterminate"in o&&typeof o.indeterminate=="boolean"&&(t.indeterminate=o.indeterminate),t}function Tb(o,i){let t=[],r=$b+i;for(let n=0;n<o.length;n++){let a=o.key(n);(a===r||a?.startsWith(r+":"))&&t.push(a)}t.forEach(n=>o.removeItem(n))}function j3(o){let i=typeof o=="string"?o:Ab(o);if(!i)return;let t=su(!0),r=su(!1);t&&Tb(t,i),r&&r!==t&&Tb(r,i)}var re=class{constructor(i,t){this.handleFormData=i=>{let t=this.options.disabled(this.host),r=this.options.name(this.host),n=this.options.value(this.host),a=this.host.tagName.toLowerCase()==="zn-button";if(this.host.isConnected&&!t&&!a&&r.length>0&&typeof n<"u"){let s=m=>{i.formData.append(r,m.toString())},l=(m,f)=>{let b=m,g=f??(typeof b.name=="string"?b.name:void 0);typeof g=="string"?i.formData.append(r,m,g):i.formData.append(r,m)},p=m=>typeof FileList<"u"&&m instanceof FileList,h=m=>typeof Blob<"u"&&m instanceof Blob;if(p(n)){if(n.length>0)for(let m=0;m<n.length;m++){let f=n.item(m);f&&l(f,f.name)}}else h(n)?l(n,n.name):Array.isArray(n)?n.forEach(m=>{if(h(m))l(m,m.name);else if(p(m)){let f=m;for(let b=0;b<f.length;b++){let g=f.item(b);g&&l(g,g.name)}}else s(m)}):s(n);this.host.dispatchEvent(new CustomEvent("zn-formdata",{bubbles:!0,composed:!0}))}};this.handleFormSubmit=i=>{let t=this.options.disabled(this.host),r=this.options.reportValidity;this.form&&!this.form.noValidate&&ma.get(this.form)?.forEach(s=>{this.setUserInteracted(s,!0)});let n=this.form?.querySelector('[type="submit"]'),a=n?.innerHTML??"Submit";n&&(n.setAttribute("data-original-text",a),setTimeout(()=>{n.disabled=!0,n.innerHTML=this.form?.hasAttribute("data-no-loading-text")?a:this.form?.getAttribute("data-loading-text")||"Processing..."},20),setTimeout(()=>{n.disabled=!1,n.innerHTML=a},15e3)),this.form&&!this.form.noValidate&&!t&&!r(this.host)&&(i.preventDefault(),i.stopImmediatePropagation(),n&&(n.disabled=!1,n.innerHTML=a))};this.enableSubmit=i=>{if(i.target!==this.form)return;let r=this.form?.querySelector('[type="submit"]');if(r){let n=r.getAttribute("data-original-text")??r.innerHTML;r.disabled=!1,r.innerHTML=n}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),fd.set(this.host,[])};this.handleInteraction=i=>{let t=fd.get(this.host);t.includes(i.type)||t.push(i.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0),this.persistHostValue(),this.checkFormValidity()};this.checkFormValidity=()=>{let i=this.form?.querySelector('[type="submit"]');if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let r of t)if(typeof r.checkValidity=="function"&&!r.checkValidity())return i?.setAttribute("disabled","disabled"),!1}return i?.removeAttribute("disabled"),!0};this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){let i=this.form.querySelectorAll("*");for(let t of i)if(typeof t.reportValidity=="function"&&!t.reportValidity())return!1}return!0};(this.host=i).addController(this),this.options={form:r=>{let n=r.form;if(n){let s=r.getRootNode().querySelector(pr(n));if(s)return s}return r.closest("form")},name:r=>r.name,value:r=>r.value,defaultValue:r=>r.defaultValue,disabled:r=>r.disabled??!1,reportValidity:r=>typeof r.reportValidity=="function"?r.reportValidity():!0,checkValidity:r=>typeof r.checkValidity=="function"?r.checkValidity():!0,setValue:(r,n)=>r.value=n,assumeInteractionOn:["zn-input"],...t}}async hostConnected(){let i=this.options.form(this.host);i&&this.attachForm(i),fd.set(this.host,[]),this.options.assumeInteractionOn.forEach(t=>{this.host.addEventListener(t,this.handleInteraction)}),await this.host.updateComplete,this.restorePersistedValue(),i&&this.checkFormValidity()}hostDisconnected(){this.detachForm(),fd.delete(this.host),this.options.assumeInteractionOn.forEach(i=>{this.host.removeEventListener(i,this.handleInteraction)})}hostUpdated(){let i=this.options.form(this.host);i||this.detachForm(),i&&this.form!==i&&(this.detachForm(),this.attachForm(i)),this.host.hasUpdated&&this.setValidity(this.host.validity?.valid)}attachForm(i){if(!i){this.form=void 0;return}this.form=i,ma.has(this.form)?ma.get(this.form).add(this.host):ma.set(this.form,new Set([this.host])),this.form.hasAttribute("data-enter-navigation")&&kb(this.form),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),this.form.addEventListener("complete",this.enableSubmit),this.form.addEventListener("cancelled",this.enableSubmit),this.form.addEventListener("error",this.enableSubmit),this.attachFormPersistence(this.form),El.has(this.form)||(El.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),Tl.has(this.form)||(Tl.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())}detachForm(){if(!this.form)return;let i=ma.get(this.form);i&&(i.delete(this.host),i.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),this.form.removeEventListener("complete",this.enableSubmit),this.form.removeEventListener("cancelled",this.enableSubmit),this.form.removeEventListener("error",this.enableSubmit),this.detachFormPersistence(this.form),El.has(this.form)&&(this.form.reportValidity=El.get(this.form),El.delete(this.form)),Tl.has(this.form)&&(this.form.checkValidity=Tl.get(this.form),Tl.delete(this.form)),this.form=void 0))}attachFormPersistence(i){if(md.has(i))return;let t=n=>Eb(n.target,i),r=n=>Eb(n.target,i);i.addEventListener("input",t),i.addEventListener("change",r),md.set(i,{handleInput:t,handleChange:r}),V3(i)}detachFormPersistence(i){let t=md.get(i);t&&(i.removeEventListener("input",t.handleInput),i.removeEventListener("change",t.handleChange),md.delete(i))}restorePersistedValue(){let i=qb(this.host,this.form);i&&("checked"in this.host&&typeof i.checked=="boolean"?this.options.setValue(this.host,i.checked):"value"in i&&this.options.setValue(this.host,i.value),"indeterminate"in this.host&&typeof i.indeterminate=="boolean"&&(this.host.indeterminate=i.indeterminate))}persistHostValue(){Ib(this.host,this.form,U3(this.host,this.options.value(this.host)))}setUserInteracted(i,t){t?au.add(i):au.delete(i),i.requestUpdate()}doAction(i,t){if(this.form){let r=document.createElement("button");r.type=i,r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.clipPath="inset(50%)",r.style.overflow="hidden",r.style.whiteSpace="nowrap",t&&(r.name=t.name,r.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(n=>{t.hasAttribute(n)&&r.setAttribute(n,t.getAttribute(n))})),this.form.append(r),this.form instanceof HTMLFormElement&&document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:this.form}})),r.click(),r.remove()}}getForm(){return this.form??null}reset(i){this.doAction("reset",i)}submit(i){this.doAction("submit",i)}setValidity(i){let t=this.host,r=!!au.has(t),n=!!t.required;t.toggleAttribute("data-required",n),t.toggleAttribute("data-optional",!n),t.toggleAttribute("data-invalid",!i),t.toggleAttribute("data-valid",i),t.toggleAttribute("data-user-invalid",!i&&r),t.toggleAttribute("data-user-valid",i&&r)}updateValidity(){let i=this.host;this.setValidity(i.validity?.valid)}emitInvalidEvent(i){let t=new CustomEvent("zn-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});i||t.preventDefault(),this.host.dispatchEvent(t)||i?.preventDefault()}},Je=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),gd=Object.freeze({...Je,customError:!0,valid:!1}),es=Object.freeze({...Je,valueMissing:!0,valid:!1});var Y=class{constructor(i,...t){this.slotNames=[];this.handleSlotChange=i=>{let t=i.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()};(this.host=i).addController(this),this.slotNames=t}hasDefaultSlot(){return[...this.host.childNodes].some(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent.trim()!=="")return!0;if(i.nodeType===i.ELEMENT_NODE){let t=i;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(i){return this.host.querySelector(`:scope > [slot="${i}"]`)!==null}test(i){return i==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(i)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}getSlot(i){return this.host.querySelector(`:scope > [slot="${i}"]`)}getDefaultSlot(){return[...this.host.childNodes].filter(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent.trim()!=="")return!0;if(i.nodeType===i.ELEMENT_NODE){let t=i;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}getSlots(i){return this.host.querySelectorAll(`:scope > [slot="${i}"]`)}};function Db(o){if(!o)return"";let i=o.assignedNodes({flatten:!0}),t="";return[...i].forEach(r=>{r.nodeType===Node.TEXT_NODE&&(t+=r.textContent)}),t}var Ob=Symbol.for(""),G3=o=>{if(o?.r===Ob)return o?._$litStatic$};var Ai=(o,...i)=>({_$litStatic$:i.reduce((t,r,n)=>t+(a=>{if(a._$litStatic$!==void 0)return a._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${a}. Use 'unsafeStatic' to pass non-literal values, but
|
|
5
|
-
take care to ensure page security.`)})(r)+o[n+1],o[0]),r:Ob}),Rb=new Map,lu=o=>(i,...t)=>{let r=t.length,n,a,s=[],l=[],p,h=0,m=!1;for(;h<r;){for(p=i[h];h<r&&(a=t[h],(n=G3(a))!==void 0);)p+=n+i[++h],m=!0;h!==r&&l.push(a),s.push(p),h++}if(h===r&&s.push(i[r]),m){let f=s.join("$$lit$$");(i=Rb.get(f))===void 0&&(s.raw=s,Rb.set(f,i=s)),t=l}return o(i,...t)},Se=lu(u),ZD=lu(Xi),eR=lu(hb);var N=o=>o??B;var Nb=o=>(i,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var W3={attribute:!0,type:String,converter:fo,reflect:!1,hasChanged:Za},K3=(o=W3,i,t)=>{let{kind:r,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),a.set(t.name,o),r==="accessor"){let{name:s}=t;return{set(l){let p=i.get.call(this);i.set.call(this,l),this.requestUpdate(s,p,o,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,o,l),l}}}if(r==="setter"){let{name:s}=t;return function(l){let p=this[s];i.call(this,l),this.requestUpdate(s,p,o,!0,l)}}throw Error("Unsupported decorator location: "+r)};function d(o){return(i,t)=>typeof t=="object"?K3(o,i,t):((r,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,r),s?Object.getOwnPropertyDescriptor(n,a):void 0})(o,i,t)}function I(o){return d({...o,state:!0,attribute:!1})}function Pb(o){return(i,t)=>{let r=typeof i=="function"?i:i[t];Object.assign(r,o)}}var yn=(o,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(o,i,t),t);function F(o,i){return(t,r,n)=>{let a=s=>s.renderRoot?.querySelector(o)??null;if(i){let{get:s,set:l}=typeof r=="object"?t:n??(()=>{let p=Symbol();return{get(){return this[p]},set(h){this[p]=h}}})();return yn(t,r,{get(){let p=s.call(this);return p===void 0&&(p=a(this),(p!==null||this.hasUpdated)&&l.call(this,p)),p}})}return yn(t,r,{get(){return a(this)}})}}var Y3;function ts(o){return(i,t)=>yn(i,t,{get(){return(this.renderRoot??Y3??(Y3=document.createDocumentFragment())).querySelectorAll(o)}})}function Hb(o){return(i,t)=>yn(i,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(o)??null}})}function Fb(o){return(i,t)=>{let{slot:r}=o??{},n="slot"+(r?`[name=${r}]`:":not([name])");return yn(i,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(o)??[]}})}}var Bb="important",Q3=" !"+Bb,xt=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((i,t)=>{let r=o[t];return r==null?i:i+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(o,[i]){let{style:t}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(i)),this.render(i);for(let r of this.ft)i[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(let r in i){let n=i[r];if(n!=null){this.ft.add(r);let a=typeof n=="string"&&n.endsWith(Q3);r.includes("-")||a?t.setProperty(r,a?n.slice(0,-11):n,a?Bb:""):t[r]=n}}return vt}});function K(o,i){let t={waitUntilFirstUpdate:!1,...i};return(r,n)=>{let{update:a}=r,s=Array.isArray(o)?o:[o];r.update=function(l){s.forEach(p=>{let h=p;if(l.has(h)){let m=l.get(h),f=this[h];m!==f&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[n](m,f)}}),a.call(this,l)}}}var X3=Object.defineProperty,J3=(o,i,t)=>i in o?X3(o,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[i]=t,cu=(o,i,t)=>(J3(o,typeof i!="symbol"?i+"":i,t),t),Z3=(o,i,t)=>{if(!i.has(o))throw TypeError("Cannot "+t)},du=(o,i)=>{if(Object(i)!==i)throw TypeError('Cannot use the "in" operator on this value');return o.has(i)},bd=(o,i,t)=>{if(i.has(o))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(o):i.set(o,t)},Vb=(o,i,t)=>(Z3(o,i,"access private method"),t);function Ub(o,i){return Object.is(o,i)}var Pt=null,$l=!1,vd=1,yd=Symbol("SIGNAL");function rs(o){let i=Pt;return Pt=o,i}function e5(){return Pt}function t5(){return $l}var fu={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function xd(o){if($l)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Pt===null)return;Pt.consumerOnSignalRead(o);let i=Pt.nextProducerIndex++;if(is(Pt),i<Pt.producerNode.length&&Pt.producerNode[i]!==o&&uu(Pt)){let t=Pt.producerNode[i];wd(t,Pt.producerIndexOfThis[i])}Pt.producerNode[i]!==o&&(Pt.producerNode[i]=o,Pt.producerIndexOfThis[i]=uu(Pt)?Wb(o,Pt,i):0),Pt.producerLastReadVersion[i]=o.version}function r5(){vd++}function jb(o){if(!(!o.dirty&&o.lastCleanEpoch===vd)){if(!o.producerMustRecompute(o)&&!s5(o)){o.dirty=!1,o.lastCleanEpoch=vd;return}o.producerRecomputeValue(o),o.dirty=!1,o.lastCleanEpoch=vd}}function Gb(o){if(o.liveConsumerNode===void 0)return;let i=$l;$l=!0;try{for(let t of o.liveConsumerNode)t.dirty||n5(t)}finally{$l=i}}function i5(){return Pt?.consumerAllowSignalWrites!==!1}function n5(o){var i;o.dirty=!0,Gb(o),(i=o.consumerMarkedDirty)==null||i.call(o.wrapper??o)}function o5(o){return o&&(o.nextProducerIndex=0),rs(o)}function a5(o,i){if(rs(i),!(!o||o.producerNode===void 0||o.producerIndexOfThis===void 0||o.producerLastReadVersion===void 0)){if(uu(o))for(let t=o.nextProducerIndex;t<o.producerNode.length;t++)wd(o.producerNode[t],o.producerIndexOfThis[t]);for(;o.producerNode.length>o.nextProducerIndex;)o.producerNode.pop(),o.producerLastReadVersion.pop(),o.producerIndexOfThis.pop()}}function s5(o){is(o);for(let i=0;i<o.producerNode.length;i++){let t=o.producerNode[i],r=o.producerLastReadVersion[i];if(r!==t.version||(jb(t),r!==t.version))return!0}return!1}function Wb(o,i,t){var r;if(gu(o),is(o),o.liveConsumerNode.length===0){(r=o.watched)==null||r.call(o.wrapper);for(let n=0;n<o.producerNode.length;n++)o.producerIndexOfThis[n]=Wb(o.producerNode[n],o,n)}return o.liveConsumerIndexOfThis.push(t),o.liveConsumerNode.push(i)-1}function wd(o,i){var t;if(gu(o),is(o),typeof ngDevMode<"u"&&ngDevMode&&i>=o.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${i} is out of bounds of ${o.liveConsumerNode.length} consumers)`);if(o.liveConsumerNode.length===1){(t=o.unwatched)==null||t.call(o.wrapper);for(let n=0;n<o.producerNode.length;n++)wd(o.producerNode[n],o.producerIndexOfThis[n])}let r=o.liveConsumerNode.length-1;if(o.liveConsumerNode[i]=o.liveConsumerNode[r],o.liveConsumerIndexOfThis[i]=o.liveConsumerIndexOfThis[r],o.liveConsumerNode.length--,o.liveConsumerIndexOfThis.length--,i<o.liveConsumerNode.length){let n=o.liveConsumerIndexOfThis[i],a=o.liveConsumerNode[i];is(a),a.producerIndexOfThis[n]=i}}function uu(o){var i;return o.consumerIsAlwaysLive||(((i=o?.liveConsumerNode)==null?void 0:i.length)??0)>0}function is(o){o.producerNode??(o.producerNode=[]),o.producerIndexOfThis??(o.producerIndexOfThis=[]),o.producerLastReadVersion??(o.producerLastReadVersion=[])}function gu(o){o.liveConsumerNode??(o.liveConsumerNode=[]),o.liveConsumerIndexOfThis??(o.liveConsumerIndexOfThis=[])}function Kb(o){if(jb(o),xd(o),o.value===mu)throw o.error;return o.value}function l5(o){let i=Object.create(c5);i.computation=o;let t=()=>Kb(i);return t[yd]=i,t}var pu=Symbol("UNSET"),hu=Symbol("COMPUTING"),mu=Symbol("ERRORED"),c5={...fu,value:pu,dirty:!0,error:null,equal:Ub,producerMustRecompute(o){return o.value===pu||o.value===hu},producerRecomputeValue(o){if(o.value===hu)throw new Error("Detected cycle in computations.");let i=o.value;o.value=hu;let t=o5(o),r,n=!1;try{r=o.computation.call(o.wrapper),n=i!==pu&&i!==mu&&o.equal.call(o.wrapper,i,r)}catch(a){r=mu,o.error=a}finally{a5(o,t)}if(n){o.value=i;return}o.value=r,o.version++}};function d5(){throw new Error}var p5=d5;function h5(){p5()}function u5(o){let i=Object.create(g5);i.value=o;let t=()=>(xd(i),i.value);return t[yd]=i,t}function m5(){return xd(this),this.value}function f5(o,i){i5()||h5(),o.equal.call(o.wrapper,o.value,i)||(o.value=i,b5(o))}var g5={...fu,equal:Ub,value:void 0};function b5(o){o.version++,r5(),Gb(o)}var hr=Symbol("node"),ot;(o=>{var i,t,r,n,a,s;class l{constructor(m,f={}){bd(this,t),cu(this,i);let g=u5(m)[yd];if(this[hr]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[o.subtle.watched],g.unwatched=f[o.subtle.unwatched]}}get(){if(!(0,o.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return m5.call(this[hr])}set(m){if(!(0,o.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(t5())throw new Error("Writes to signals not permitted during Watcher callback");let f=this[hr];f5(f,m)}}i=hr,t=new WeakSet,r=function(){},o.isState=h=>typeof h=="object"&&du(t,h),o.State=l;class p{constructor(m,f){bd(this,a),cu(this,n);let g=l5(m)[yd];if(g.consumerAllowSignalWrites=!0,this[hr]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[o.subtle.watched],g.unwatched=f[o.subtle.unwatched]}}get(){if(!(0,o.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return Kb(this[hr])}}n=hr,a=new WeakSet,s=function(){},o.isComputed=h=>typeof h=="object"&&du(a,h),o.Computed=p,(h=>{var m,f,b,g,v;function y($){let L,W=null;try{W=rs(null),L=$()}finally{rs(W)}return L}h.untrack=y;function C($){var L;if(!(0,o.isComputed)($)&&!(0,o.isWatcher)($))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((L=$[hr].producerNode)==null?void 0:L.map(W=>W.wrapper))??[]}h.introspectSources=C;function T($){var L;if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called introspectSinks without a Signal argument");return((L=$[hr].liveConsumerNode)==null?void 0:L.map(W=>W.wrapper))??[]}h.introspectSinks=T;function O($){if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called hasSinks without a Signal argument");let L=$[hr].liveConsumerNode;return L?L.length>0:!1}h.hasSinks=O;function U($){if(!(0,o.isComputed)($)&&!(0,o.isWatcher)($))throw new TypeError("Called hasSources without a Computed or Watcher argument");let L=$[hr].producerNode;return L?L.length>0:!1}h.hasSources=U;class D{constructor(L){bd(this,f),bd(this,g),cu(this,m);let W=Object.create(fu);W.wrapper=this,W.consumerMarkedDirty=L,W.consumerIsAlwaysLive=!0,W.consumerAllowSignalWrites=!1,W.producerNode=[],this[hr]=W}watch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");Vb(this,g,v).call(this,L);let W=this[hr];W.dirty=!1;let oe=rs(W);for(let xe of L)xd(xe[hr]);rs(oe)}unwatch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");Vb(this,g,v).call(this,L);let W=this[hr];is(W);for(let oe=W.producerNode.length-1;oe>=0;oe--)if(L.includes(W.producerNode[oe].wrapper)){wd(W.producerNode[oe],W.producerIndexOfThis[oe]);let xe=W.producerNode.length-1;if(W.producerNode[oe]=W.producerNode[xe],W.producerIndexOfThis[oe]=W.producerIndexOfThis[xe],W.producerNode.length--,W.producerIndexOfThis.length--,W.nextProducerIndex--,oe<W.producerNode.length){let Re=W.producerIndexOfThis[oe],Ne=W.producerNode[oe];gu(Ne),Ne.liveConsumerIndexOfThis[Re]=oe}}}getPending(){if(!(0,o.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[hr].producerNode.filter(W=>W.dirty).map(W=>W.wrapper)}}m=hr,f=new WeakSet,b=function(){},g=new WeakSet,v=function($){for(let L of $)if(!(0,o.isComputed)(L)&&!(0,o.isState)(L))throw new TypeError("Called watch/unwatch without a Computed or State argument")},o.isWatcher=$=>du(f,$),h.Watcher=D;function S(){var $;return($=e5())==null?void 0:$.wrapper}h.currentComputed=S,h.watched=Symbol("watched"),h.unwatched=Symbol("unwatched")})(o.subtle||(o.subtle={}))})(ot||(ot={}));var bu=!1,Yb=new ot.subtle.Watcher(()=>{bu||(bu=!0,queueMicrotask(()=>{bu=!1;for(let o of Yb.getPending())o.get();Yb.watch()}))}),v5=Symbol("SignalWatcherBrand"),y5=new FinalizationRegistry(o=>{o.unwatch(...ot.subtle.introspectSources(o))}),Qb=new WeakMap;function zd(o){return o[v5]===!0?(console.warn("SignalWatcher should not be applied to the same class more than once."),o):class extends o{constructor(){super(...arguments),this._$St=new Map,this._$So=new ot.State(0),this._$Si=!1}_$Sl(){var i,t;let r=[],n=[];this._$St.forEach((s,l)=>{(s?.beforeUpdate?r:n).push(l)});let a=(i=this.h)===null||i===void 0?void 0:i.getPending().filter(s=>s!==this._$Su&&!this._$St.has(s));r.forEach(s=>s.get()),(t=this._$Su)===null||t===void 0||t.get(),a.forEach(s=>s.get()),n.forEach(s=>s.get())}_$Sv(){this.isUpdatePending||queueMicrotask(()=>{this.isUpdatePending||this._$Sl()})}_$S_(){if(this.h!==void 0)return;this._$Su=new ot.Computed(()=>{this._$So.get(),super.performUpdate()});let i=this.h=new ot.subtle.Watcher(function(){let t=Qb.get(this);t!==void 0&&(t._$Si===!1&&(new Set(this.getPending()).has(t._$Su)?t.requestUpdate():t._$Sv()),this.watch())});Qb.set(i,this),y5.register(this,i),i.watch(this._$Su),i.watch(...Array.from(this._$St).map(([t])=>t))}_$Sp(){if(this.h===void 0)return;let i=!1;this.h.unwatch(...ot.subtle.introspectSources(this.h).filter(t=>{var r;let n=((r=this._$St.get(t))===null||r===void 0?void 0:r.manualDispose)!==!0;return n&&this._$St.delete(t),i||(i=!n),n})),i||(this._$Su=void 0,this.h=void 0,this._$St.clear())}updateEffect(i,t){var r;this._$S_();let n=new ot.Computed(()=>{i()});return this.h.watch(n),this._$St.set(n,t),(r=t?.beforeUpdate)!==null&&r!==void 0&&r?ot.subtle.untrack(()=>n.get()):this.updateComplete.then(()=>ot.subtle.untrack(()=>n.get())),()=>{this._$St.delete(n),this.h.unwatch(n),this.isConnected===!1&&this._$Sp()}}performUpdate(){this.isUpdatePending&&(this._$S_(),this._$Si=!0,this._$So.set(this._$So.get()+1),this._$Si=!1,this._$Sl())}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected===!1&&this._$Sp()})}}}var{I:x5}=fb,Xb=o=>o;var _d=o=>o.strings===void 0,Jb=()=>document.createComment(""),ns=(o,i,t)=>{let r=o._$AA.parentNode,n=i===void 0?o._$AB:i._$AA;if(t===void 0){let a=r.insertBefore(Jb(),n),s=r.insertBefore(Jb(),n);t=new x5(a,s,o,o.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==o;if(l){let p;t._$AQ?.(o),t._$AM=o,t._$AP!==void 0&&(p=o._$AU)!==s._$AU&&t._$AP(p)}if(a!==n||l){let p=t._$AA;for(;p!==a;){let h=Xb(p).nextSibling;Xb(r).insertBefore(p,n),p=h}}}return t},bo=(o,i,t=o)=>(o._$AI(i,t),o),w5={},os=(o,i=w5)=>o._$AH=i,Zb=o=>o._$AH,kd=o=>{o._$AR(),o._$AA.remove()};var Al=(o,i)=>{let t=o._$AN;if(t===void 0)return!1;for(let r of t)r._$AO?.(i,!1),Al(r,i);return!0},Sd=o=>{let i,t;do{if((i=o._$AM)===void 0)break;t=i._$AN,t.delete(o),o=i}while(t?.size===0)},ev=o=>{for(let i;i=o._$AM;o=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(o))break;t.add(o),k5(i)}};function z5(o){this._$AN!==void 0?(Sd(this),this._$AM=o,ev(this)):this._$AM=o}function _5(o,i=!1,t=0){let r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(i)if(Array.isArray(r))for(let a=t;a<r.length;a++)Al(r[a],!1),Sd(r[a]);else r!=null&&(Al(r,!1),Sd(r));else Al(this,o)}var k5=o=>{o.type==dr.CHILD&&(o._$AP??(o._$AP=_5),o._$AQ??(o._$AQ=z5))},vo=class extends ir{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,r){super._$AT(i,t,r),ev(this),this.isConnected=i._$AU}_$AO(i,t=!0){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(Al(this,i),Sd(this))}setValue(i){if(_d(this._$Ct))this._$Ct._$AI(i,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=i,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var vu=!1,yu=new ot.subtle.Watcher(async()=>{vu||(vu=!0,queueMicrotask(()=>{vu=!1;for(let o of yu.getPending())o.get();yu.watch()}))}),Cd=class extends vo{_$S_(){var i,t;this._$Sm===void 0&&(this._$Sj=new ot.Computed(()=>{var r;let n=(r=this._$SW)===null||r===void 0?void 0:r.get();return this.setValue(n),n}),this._$Sm=(t=(i=this._$Sk)===null||i===void 0?void 0:i.h)!==null&&t!==void 0?t:yu,this._$Sm.watch(this._$Sj),ot.subtle.untrack(()=>{var r;return(r=this._$Sj)===null||r===void 0?void 0:r.get()}))}_$Sp(){this._$Sm!==void 0&&(this._$Sm.unwatch(this._$SW),this._$Sm=void 0)}render(i){return ot.subtle.untrack(()=>i.get())}update(i,[t]){var r,n;return(r=this._$Sk)!==null&&r!==void 0||(this._$Sk=(n=i.options)===null||n===void 0?void 0:n.host),t!==this._$SW&&this._$SW!==void 0&&this._$Sp(),this._$SW=t,this._$S_(),ot.subtle.untrack(()=>this._$SW.get())}disconnected(){this._$Sp()}reconnected(){this._$S_()}},xu=yt(Cd);var wu=o=>(i,...t)=>o(i,...t.map(r=>r instanceof ot.State||r instanceof ot.Computed?xu(r):r)),S5=wu(u),C5=wu(Xi);var uO=ot.State,mO=ot.Computed,zu=(o,i)=>new ot.State(o,i);function rv(o,i){return typeof document>"u"?i:document.documentElement.getAttribute(o)||document.body?.getAttribute(o)||i}function iv(){return rv("t","light")}function nv(){return rv("m","light")}var Ed=zu(iv()),Td=zu(nv()),tv=!1;function E5(){tv||typeof window>"u"||(tv=!0,window.addEventListener("theme-change",o=>{let i=o.detail,t,r;if(typeof i=="string")t=i;else if(i&&typeof i=="object"){let n=i;typeof n.theme=="string"&&(t=n.theme),typeof n.mode=="string"&&(r=n.mode)}t===void 0&&(t=iv()),r===void 0&&(r=nv()),t!==Ed.get()&&Ed.set(t),r!==Td.get()&&Td.set(r)}))}E5();var T5=zd(go),k=class extends T5{willUpdate(i){this.t=Ed.get(),this.m=Td.get(),super.willUpdate(i)}static define(i,t=this,r={}){let n=customElements.get(i);if(!n){customElements.define(i,class extends t{},r);return}let a=" (unknown version)",s=a;"version"in t&&t.version&&typeof t.version=="string"&&(a=` v${t.version}`),"version"in n&&n.version&&typeof n.version=="string"&&(s=` v${n.version}`),!(a&&s&&a===s)&&console.warn(`Attempted to register <${i}>${a} but it is already registered as <${i}>${s}.`)}constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([i,t])=>{this.constructor.define(i,t)})}emit(i,t){let r=new CustomEvent(i,{bubbles:!0,cancelable:!0,composed:!0,detail:{element:this},...t});return this.dispatchEvent(r),r}};k.dependencies={},c([d()],k.prototype,"dir",2),c([d()],k.prototype,"lang",2),c([d({reflect:!0})],k.prototype,"t",2),c([d({reflect:!0})],k.prototype,"m",2);var fa=class extends ir{constructor(i){if(super(i),this.it=B,i.type!==dr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===B||i==null)return this._t=void 0,this.it=i;if(i===vt)return i;if(typeof i!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(i===this.it)return this._t;this.it=i;let t=[i];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};fa.directiveName="unsafeHTML",fa.resultType=1;var Ct=yt(fa);function Mi(o,i){return new Promise(t=>{function r(n){n.target===o&&(o.removeEventListener(i,r),t())}o.addEventListener(i,r)})}var _u=class{constructor(){this.openDropdowns=new Set;this.openTooltips=new Set}registerDropdown(i){this.openDropdowns.add(i)}unregisterDropdown(i){this.openDropdowns.delete(i)}isDropdownOpen(){return this.openDropdowns.size>0}registerTooltip(i){this.openTooltips.add(i)}unregisterTooltip(i){this.openTooltips.delete(i)}isTooltipOpen(){return this.openTooltips.size>0}},$5=new _u,Vn=$5;var ov=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block}.dropdown::part(popup){z-index:var(--zn-z-index-dropdown)}`;var Et=class extends k{constructor(){super(...arguments);this.open=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.hoist=!0;this.sync=void 0;this.fetchedContent="";this.handlePanelSelect=t=>{let r=t.target;!this.stayOpenOnSelect&&r.tagName.toLowerCase()==="zn-menu"&&(this.hide().then(n=>n),this.focusOnTrigger())};this.handlePreload=()=>{this.preloadContent().then(t=>t)}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}focusOnTrigger(){let t=this.trigger?.assignedElements({flatten:!0})[0];typeof t?.focus=="function"&&t.focus()}firstUpdated(t){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0),super.firstUpdated(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide().then(t=>t)}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="zn-menu")}addOpenListeners(){this.panel.addEventListener("zn-select",this.handlePanelSelect),"CloseWatcher"in window?(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide().then(t=>t),this.focusOnTrigger()}):this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown.bind(this)),document.addEventListener("mousedown",this.handleDocumentMouseDown.bind(this)),this.closeWatcher?.destroy()}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("zn-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.closeWatcher?.destroy()}async preloadContent(){if(this.uri&&!this.fetchedContent){let t=await fetch(this.uri,{credentials:"same-origin",headers:{"x-kx-inline":"inline"}});this.fetchedContent=await t.text(),this.requestUpdate()}}async handleTriggerClick(){this.open?await this.hide():(await this.show(),this.focusOnTrigger())}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide().then(r=>r),this.focusOnTrigger())}async handleTriggerKeyDown(t){if([" ","Enter","Tab"].includes(t.key)){t.preventDefault(),await this.handleTriggerClick();return}let r=this.getMenu();if(r){let n=r.getAllItems(),a=n[0],s=n[n.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||(this.show().then(l=>l),await this.updateComplete),n.length>0&&this.updateComplete.then(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(r.setCurrentItem(a),a.focus()),(t.key==="ArrowUp"||t.key==="End")&&(r.setCurrentItem(s),s.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}handleDocumentMouseDown(t){let r=t.composedPath();this.containingElement&&!r.includes(this.containingElement)&&this.hide().then(n=>n)}handleDocumentKeyDown(t){if(t.key==="Escape"&&this.open&&!this.closeWatcher){t.stopPropagation(),this.focusOnTrigger(),this.hide().then(r=>r);return}if(t.key==="Tab"){if(this.open){t.preventDefault(),this.hide().then(r=>r),this.focusOnTrigger();return}setTimeout(()=>{let r=this.containingElement?.getRootNode()instanceof ShadowRoot?document.activeElement?.shadowRoot?.activeElement:document.activeElement;(!this.containingElement||r?.closest(this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide().then(n=>n)})}}async show(){if(!this.open)return this.open=!0,Mi(this,"zn-after-show")}async hide(){if(this.open)return this.open=!1,Mi(this,"zn-after-hide")}reposition(){this.popup.reposition()}updateAccessibleTrigger(){let r=this.trigger.assignedElements({flatten:!0}).find(a=>zb(a).start),n=null;r&&(r.tagName.toLowerCase()==="zn-button"?n=r.button:n=r),n&&(n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-expanded",this.open.toString()))}handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open)this.emit("zn-show"),Vn.registerDropdown(this),this.addOpenListeners(),this.panel.hidden=!1,this.popup.active=!0,this.panel.focus(),this.emit("zn-after-show");else{this.emit("zn-hide"),Vn.unregisterDropdown(this),this.removeOpenListeners();let t=this.getRootNode().activeElement;t&&this.panel.assignedElements({flatten:!0}).some(r=>r.contains(t))&&(this.focusOnTrigger(),t.blur()),this.panel.blur(),this.panel.hidden=!0,this.popup.active=!1,this.emit("zn-after-hide")}}render(){return u`
|
|
5
|
+
take care to ensure page security.`)})(r)+o[n+1],o[0]),r:Ob}),Rb=new Map,lu=o=>(i,...t)=>{let r=t.length,n,a,s=[],l=[],p,h=0,m=!1;for(;h<r;){for(p=i[h];h<r&&(a=t[h],(n=G3(a))!==void 0);)p+=n+i[++h],m=!0;h!==r&&l.push(a),s.push(p),h++}if(h===r&&s.push(i[r]),m){let f=s.join("$$lit$$");(i=Rb.get(f))===void 0&&(s.raw=s,Rb.set(f,i=s)),t=l}return o(i,...t)},Se=lu(u),ZD=lu(Xi),eR=lu(hb);var N=o=>o??B;var Nb=o=>(i,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var W3={attribute:!0,type:String,converter:fo,reflect:!1,hasChanged:Za},K3=(o=W3,i,t)=>{let{kind:r,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),a.set(t.name,o),r==="accessor"){let{name:s}=t;return{set(l){let p=i.get.call(this);i.set.call(this,l),this.requestUpdate(s,p,o,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,o,l),l}}}if(r==="setter"){let{name:s}=t;return function(l){let p=this[s];i.call(this,l),this.requestUpdate(s,p,o,!0,l)}}throw Error("Unsupported decorator location: "+r)};function d(o){return(i,t)=>typeof t=="object"?K3(o,i,t):((r,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,r),s?Object.getOwnPropertyDescriptor(n,a):void 0})(o,i,t)}function I(o){return d({...o,state:!0,attribute:!1})}function Pb(o){return(i,t)=>{let r=typeof i=="function"?i:i[t];Object.assign(r,o)}}var yn=(o,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(o,i,t),t);function F(o,i){return(t,r,n)=>{let a=s=>s.renderRoot?.querySelector(o)??null;if(i){let{get:s,set:l}=typeof r=="object"?t:n??(()=>{let p=Symbol();return{get(){return this[p]},set(h){this[p]=h}}})();return yn(t,r,{get(){let p=s.call(this);return p===void 0&&(p=a(this),(p!==null||this.hasUpdated)&&l.call(this,p)),p}})}return yn(t,r,{get(){return a(this)}})}}var Y3;function ts(o){return(i,t)=>yn(i,t,{get(){return(this.renderRoot??Y3??(Y3=document.createDocumentFragment())).querySelectorAll(o)}})}function Hb(o){return(i,t)=>yn(i,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(o)??null}})}function Fb(o){return(i,t)=>{let{slot:r}=o??{},n="slot"+(r?`[name=${r}]`:":not([name])");return yn(i,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(o)??[]}})}}var Bb="important",Q3=" !"+Bb,xt=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((i,t)=>{let r=o[t];return r==null?i:i+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(o,[i]){let{style:t}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(i)),this.render(i);for(let r of this.ft)i[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(let r in i){let n=i[r];if(n!=null){this.ft.add(r);let a=typeof n=="string"&&n.endsWith(Q3);r.includes("-")||a?t.setProperty(r,a?n.slice(0,-11):n,a?Bb:""):t[r]=n}}return vt}});function K(o,i){let t={waitUntilFirstUpdate:!1,...i};return(r,n)=>{let{update:a}=r,s=Array.isArray(o)?o:[o];r.update=function(l){s.forEach(p=>{let h=p;if(l.has(h)){let m=l.get(h),f=this[h];m!==f&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[n](m,f)}}),a.call(this,l)}}}var X3=Object.defineProperty,J3=(o,i,t)=>i in o?X3(o,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[i]=t,cu=(o,i,t)=>(J3(o,typeof i!="symbol"?i+"":i,t),t),Z3=(o,i,t)=>{if(!i.has(o))throw TypeError("Cannot "+t)},du=(o,i)=>{if(Object(i)!==i)throw TypeError('Cannot use the "in" operator on this value');return o.has(i)},bd=(o,i,t)=>{if(i.has(o))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(o):i.set(o,t)},Vb=(o,i,t)=>(Z3(o,i,"access private method"),t);function Ub(o,i){return Object.is(o,i)}var Pt=null,$l=!1,vd=1,yd=Symbol("SIGNAL");function rs(o){let i=Pt;return Pt=o,i}function e5(){return Pt}function t5(){return $l}var fu={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function xd(o){if($l)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Pt===null)return;Pt.consumerOnSignalRead(o);let i=Pt.nextProducerIndex++;if(is(Pt),i<Pt.producerNode.length&&Pt.producerNode[i]!==o&&uu(Pt)){let t=Pt.producerNode[i];wd(t,Pt.producerIndexOfThis[i])}Pt.producerNode[i]!==o&&(Pt.producerNode[i]=o,Pt.producerIndexOfThis[i]=uu(Pt)?Wb(o,Pt,i):0),Pt.producerLastReadVersion[i]=o.version}function r5(){vd++}function jb(o){if(!(!o.dirty&&o.lastCleanEpoch===vd)){if(!o.producerMustRecompute(o)&&!s5(o)){o.dirty=!1,o.lastCleanEpoch=vd;return}o.producerRecomputeValue(o),o.dirty=!1,o.lastCleanEpoch=vd}}function Gb(o){if(o.liveConsumerNode===void 0)return;let i=$l;$l=!0;try{for(let t of o.liveConsumerNode)t.dirty||n5(t)}finally{$l=i}}function i5(){return Pt?.consumerAllowSignalWrites!==!1}function n5(o){var i;o.dirty=!0,Gb(o),(i=o.consumerMarkedDirty)==null||i.call(o.wrapper??o)}function o5(o){return o&&(o.nextProducerIndex=0),rs(o)}function a5(o,i){if(rs(i),!(!o||o.producerNode===void 0||o.producerIndexOfThis===void 0||o.producerLastReadVersion===void 0)){if(uu(o))for(let t=o.nextProducerIndex;t<o.producerNode.length;t++)wd(o.producerNode[t],o.producerIndexOfThis[t]);for(;o.producerNode.length>o.nextProducerIndex;)o.producerNode.pop(),o.producerLastReadVersion.pop(),o.producerIndexOfThis.pop()}}function s5(o){is(o);for(let i=0;i<o.producerNode.length;i++){let t=o.producerNode[i],r=o.producerLastReadVersion[i];if(r!==t.version||(jb(t),r!==t.version))return!0}return!1}function Wb(o,i,t){var r;if(gu(o),is(o),o.liveConsumerNode.length===0){(r=o.watched)==null||r.call(o.wrapper);for(let n=0;n<o.producerNode.length;n++)o.producerIndexOfThis[n]=Wb(o.producerNode[n],o,n)}return o.liveConsumerIndexOfThis.push(t),o.liveConsumerNode.push(i)-1}function wd(o,i){var t;if(gu(o),is(o),typeof ngDevMode<"u"&&ngDevMode&&i>=o.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${i} is out of bounds of ${o.liveConsumerNode.length} consumers)`);if(o.liveConsumerNode.length===1){(t=o.unwatched)==null||t.call(o.wrapper);for(let n=0;n<o.producerNode.length;n++)wd(o.producerNode[n],o.producerIndexOfThis[n])}let r=o.liveConsumerNode.length-1;if(o.liveConsumerNode[i]=o.liveConsumerNode[r],o.liveConsumerIndexOfThis[i]=o.liveConsumerIndexOfThis[r],o.liveConsumerNode.length--,o.liveConsumerIndexOfThis.length--,i<o.liveConsumerNode.length){let n=o.liveConsumerIndexOfThis[i],a=o.liveConsumerNode[i];is(a),a.producerIndexOfThis[n]=i}}function uu(o){var i;return o.consumerIsAlwaysLive||(((i=o?.liveConsumerNode)==null?void 0:i.length)??0)>0}function is(o){o.producerNode??(o.producerNode=[]),o.producerIndexOfThis??(o.producerIndexOfThis=[]),o.producerLastReadVersion??(o.producerLastReadVersion=[])}function gu(o){o.liveConsumerNode??(o.liveConsumerNode=[]),o.liveConsumerIndexOfThis??(o.liveConsumerIndexOfThis=[])}function Kb(o){if(jb(o),xd(o),o.value===mu)throw o.error;return o.value}function l5(o){let i=Object.create(c5);i.computation=o;let t=()=>Kb(i);return t[yd]=i,t}var pu=Symbol("UNSET"),hu=Symbol("COMPUTING"),mu=Symbol("ERRORED"),c5={...fu,value:pu,dirty:!0,error:null,equal:Ub,producerMustRecompute(o){return o.value===pu||o.value===hu},producerRecomputeValue(o){if(o.value===hu)throw new Error("Detected cycle in computations.");let i=o.value;o.value=hu;let t=o5(o),r,n=!1;try{r=o.computation.call(o.wrapper),n=i!==pu&&i!==mu&&o.equal.call(o.wrapper,i,r)}catch(a){r=mu,o.error=a}finally{a5(o,t)}if(n){o.value=i;return}o.value=r,o.version++}};function d5(){throw new Error}var p5=d5;function h5(){p5()}function u5(o){let i=Object.create(g5);i.value=o;let t=()=>(xd(i),i.value);return t[yd]=i,t}function m5(){return xd(this),this.value}function f5(o,i){i5()||h5(),o.equal.call(o.wrapper,o.value,i)||(o.value=i,b5(o))}var g5={...fu,equal:Ub,value:void 0};function b5(o){o.version++,r5(),Gb(o)}var hr=Symbol("node"),at;(o=>{var i,t,r,n,a,s;class l{constructor(m,f={}){bd(this,t),cu(this,i);let g=u5(m)[yd];if(this[hr]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[o.subtle.watched],g.unwatched=f[o.subtle.unwatched]}}get(){if(!(0,o.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return m5.call(this[hr])}set(m){if(!(0,o.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(t5())throw new Error("Writes to signals not permitted during Watcher callback");let f=this[hr];f5(f,m)}}i=hr,t=new WeakSet,r=function(){},o.isState=h=>typeof h=="object"&&du(t,h),o.State=l;class p{constructor(m,f){bd(this,a),cu(this,n);let g=l5(m)[yd];if(g.consumerAllowSignalWrites=!0,this[hr]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[o.subtle.watched],g.unwatched=f[o.subtle.unwatched]}}get(){if(!(0,o.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return Kb(this[hr])}}n=hr,a=new WeakSet,s=function(){},o.isComputed=h=>typeof h=="object"&&du(a,h),o.Computed=p,(h=>{var m,f,b,g,v;function y($){let L,W=null;try{W=rs(null),L=$()}finally{rs(W)}return L}h.untrack=y;function C($){var L;if(!(0,o.isComputed)($)&&!(0,o.isWatcher)($))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((L=$[hr].producerNode)==null?void 0:L.map(W=>W.wrapper))??[]}h.introspectSources=C;function T($){var L;if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called introspectSinks without a Signal argument");return((L=$[hr].liveConsumerNode)==null?void 0:L.map(W=>W.wrapper))??[]}h.introspectSinks=T;function O($){if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called hasSinks without a Signal argument");let L=$[hr].liveConsumerNode;return L?L.length>0:!1}h.hasSinks=O;function U($){if(!(0,o.isComputed)($)&&!(0,o.isWatcher)($))throw new TypeError("Called hasSources without a Computed or Watcher argument");let L=$[hr].producerNode;return L?L.length>0:!1}h.hasSources=U;class D{constructor(L){bd(this,f),bd(this,g),cu(this,m);let W=Object.create(fu);W.wrapper=this,W.consumerMarkedDirty=L,W.consumerIsAlwaysLive=!0,W.consumerAllowSignalWrites=!1,W.producerNode=[],this[hr]=W}watch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");Vb(this,g,v).call(this,L);let W=this[hr];W.dirty=!1;let oe=rs(W);for(let xe of L)xd(xe[hr]);rs(oe)}unwatch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");Vb(this,g,v).call(this,L);let W=this[hr];is(W);for(let oe=W.producerNode.length-1;oe>=0;oe--)if(L.includes(W.producerNode[oe].wrapper)){wd(W.producerNode[oe],W.producerIndexOfThis[oe]);let xe=W.producerNode.length-1;if(W.producerNode[oe]=W.producerNode[xe],W.producerIndexOfThis[oe]=W.producerIndexOfThis[xe],W.producerNode.length--,W.producerIndexOfThis.length--,W.nextProducerIndex--,oe<W.producerNode.length){let Re=W.producerIndexOfThis[oe],Ne=W.producerNode[oe];gu(Ne),Ne.liveConsumerIndexOfThis[Re]=oe}}}getPending(){if(!(0,o.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[hr].producerNode.filter(W=>W.dirty).map(W=>W.wrapper)}}m=hr,f=new WeakSet,b=function(){},g=new WeakSet,v=function($){for(let L of $)if(!(0,o.isComputed)(L)&&!(0,o.isState)(L))throw new TypeError("Called watch/unwatch without a Computed or State argument")},o.isWatcher=$=>du(f,$),h.Watcher=D;function S(){var $;return($=e5())==null?void 0:$.wrapper}h.currentComputed=S,h.watched=Symbol("watched"),h.unwatched=Symbol("unwatched")})(o.subtle||(o.subtle={}))})(at||(at={}));var bu=!1,Yb=new at.subtle.Watcher(()=>{bu||(bu=!0,queueMicrotask(()=>{bu=!1;for(let o of Yb.getPending())o.get();Yb.watch()}))}),v5=Symbol("SignalWatcherBrand"),y5=new FinalizationRegistry(o=>{o.unwatch(...at.subtle.introspectSources(o))}),Qb=new WeakMap;function zd(o){return o[v5]===!0?(console.warn("SignalWatcher should not be applied to the same class more than once."),o):class extends o{constructor(){super(...arguments),this._$St=new Map,this._$So=new at.State(0),this._$Si=!1}_$Sl(){var i,t;let r=[],n=[];this._$St.forEach((s,l)=>{(s?.beforeUpdate?r:n).push(l)});let a=(i=this.h)===null||i===void 0?void 0:i.getPending().filter(s=>s!==this._$Su&&!this._$St.has(s));r.forEach(s=>s.get()),(t=this._$Su)===null||t===void 0||t.get(),a.forEach(s=>s.get()),n.forEach(s=>s.get())}_$Sv(){this.isUpdatePending||queueMicrotask(()=>{this.isUpdatePending||this._$Sl()})}_$S_(){if(this.h!==void 0)return;this._$Su=new at.Computed(()=>{this._$So.get(),super.performUpdate()});let i=this.h=new at.subtle.Watcher(function(){let t=Qb.get(this);t!==void 0&&(t._$Si===!1&&(new Set(this.getPending()).has(t._$Su)?t.requestUpdate():t._$Sv()),this.watch())});Qb.set(i,this),y5.register(this,i),i.watch(this._$Su),i.watch(...Array.from(this._$St).map(([t])=>t))}_$Sp(){if(this.h===void 0)return;let i=!1;this.h.unwatch(...at.subtle.introspectSources(this.h).filter(t=>{var r;let n=((r=this._$St.get(t))===null||r===void 0?void 0:r.manualDispose)!==!0;return n&&this._$St.delete(t),i||(i=!n),n})),i||(this._$Su=void 0,this.h=void 0,this._$St.clear())}updateEffect(i,t){var r;this._$S_();let n=new at.Computed(()=>{i()});return this.h.watch(n),this._$St.set(n,t),(r=t?.beforeUpdate)!==null&&r!==void 0&&r?at.subtle.untrack(()=>n.get()):this.updateComplete.then(()=>at.subtle.untrack(()=>n.get())),()=>{this._$St.delete(n),this.h.unwatch(n),this.isConnected===!1&&this._$Sp()}}performUpdate(){this.isUpdatePending&&(this._$S_(),this._$Si=!0,this._$So.set(this._$So.get()+1),this._$Si=!1,this._$Sl())}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected===!1&&this._$Sp()})}}}var{I:x5}=fb,Xb=o=>o;var _d=o=>o.strings===void 0,Jb=()=>document.createComment(""),ns=(o,i,t)=>{let r=o._$AA.parentNode,n=i===void 0?o._$AB:i._$AA;if(t===void 0){let a=r.insertBefore(Jb(),n),s=r.insertBefore(Jb(),n);t=new x5(a,s,o,o.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==o;if(l){let p;t._$AQ?.(o),t._$AM=o,t._$AP!==void 0&&(p=o._$AU)!==s._$AU&&t._$AP(p)}if(a!==n||l){let p=t._$AA;for(;p!==a;){let h=Xb(p).nextSibling;Xb(r).insertBefore(p,n),p=h}}}return t},bo=(o,i,t=o)=>(o._$AI(i,t),o),w5={},os=(o,i=w5)=>o._$AH=i,Zb=o=>o._$AH,kd=o=>{o._$AR(),o._$AA.remove()};var Al=(o,i)=>{let t=o._$AN;if(t===void 0)return!1;for(let r of t)r._$AO?.(i,!1),Al(r,i);return!0},Sd=o=>{let i,t;do{if((i=o._$AM)===void 0)break;t=i._$AN,t.delete(o),o=i}while(t?.size===0)},ev=o=>{for(let i;i=o._$AM;o=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(o))break;t.add(o),k5(i)}};function z5(o){this._$AN!==void 0?(Sd(this),this._$AM=o,ev(this)):this._$AM=o}function _5(o,i=!1,t=0){let r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(i)if(Array.isArray(r))for(let a=t;a<r.length;a++)Al(r[a],!1),Sd(r[a]);else r!=null&&(Al(r,!1),Sd(r));else Al(this,o)}var k5=o=>{o.type==dr.CHILD&&(o._$AP??(o._$AP=_5),o._$AQ??(o._$AQ=z5))},vo=class extends ir{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,r){super._$AT(i,t,r),ev(this),this.isConnected=i._$AU}_$AO(i,t=!0){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(Al(this,i),Sd(this))}setValue(i){if(_d(this._$Ct))this._$Ct._$AI(i,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=i,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var vu=!1,yu=new at.subtle.Watcher(async()=>{vu||(vu=!0,queueMicrotask(()=>{vu=!1;for(let o of yu.getPending())o.get();yu.watch()}))}),Cd=class extends vo{_$S_(){var i,t;this._$Sm===void 0&&(this._$Sj=new at.Computed(()=>{var r;let n=(r=this._$SW)===null||r===void 0?void 0:r.get();return this.setValue(n),n}),this._$Sm=(t=(i=this._$Sk)===null||i===void 0?void 0:i.h)!==null&&t!==void 0?t:yu,this._$Sm.watch(this._$Sj),at.subtle.untrack(()=>{var r;return(r=this._$Sj)===null||r===void 0?void 0:r.get()}))}_$Sp(){this._$Sm!==void 0&&(this._$Sm.unwatch(this._$SW),this._$Sm=void 0)}render(i){return at.subtle.untrack(()=>i.get())}update(i,[t]){var r,n;return(r=this._$Sk)!==null&&r!==void 0||(this._$Sk=(n=i.options)===null||n===void 0?void 0:n.host),t!==this._$SW&&this._$SW!==void 0&&this._$Sp(),this._$SW=t,this._$S_(),at.subtle.untrack(()=>this._$SW.get())}disconnected(){this._$Sp()}reconnected(){this._$S_()}},xu=yt(Cd);var wu=o=>(i,...t)=>o(i,...t.map(r=>r instanceof at.State||r instanceof at.Computed?xu(r):r)),S5=wu(u),C5=wu(Xi);var uO=at.State,mO=at.Computed,zu=(o,i)=>new at.State(o,i);function rv(o,i){return typeof document>"u"?i:document.documentElement.getAttribute(o)||document.body?.getAttribute(o)||i}function iv(){return rv("t","light")}function nv(){return rv("m","light")}var Ed=zu(iv()),Td=zu(nv()),tv=!1;function E5(){tv||typeof window>"u"||(tv=!0,window.addEventListener("theme-change",o=>{let i=o.detail,t,r;if(typeof i=="string")t=i;else if(i&&typeof i=="object"){let n=i;typeof n.theme=="string"&&(t=n.theme),typeof n.mode=="string"&&(r=n.mode)}t===void 0&&(t=iv()),r===void 0&&(r=nv()),t!==Ed.get()&&Ed.set(t),r!==Td.get()&&Td.set(r)}))}E5();var T5=zd(go),k=class extends T5{willUpdate(i){this.t=Ed.get(),this.m=Td.get(),super.willUpdate(i)}static define(i,t=this,r={}){let n=customElements.get(i);if(!n){customElements.define(i,class extends t{},r);return}let a=" (unknown version)",s=a;"version"in t&&t.version&&typeof t.version=="string"&&(a=` v${t.version}`),"version"in n&&n.version&&typeof n.version=="string"&&(s=` v${n.version}`),!(a&&s&&a===s)&&console.warn(`Attempted to register <${i}>${a} but it is already registered as <${i}>${s}.`)}constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([i,t])=>{this.constructor.define(i,t)})}emit(i,t){let r=new CustomEvent(i,{bubbles:!0,cancelable:!0,composed:!0,detail:{element:this},...t});return this.dispatchEvent(r),r}};k.dependencies={},c([d()],k.prototype,"dir",2),c([d()],k.prototype,"lang",2),c([d({reflect:!0})],k.prototype,"t",2),c([d({reflect:!0})],k.prototype,"m",2);var fa=class extends ir{constructor(i){if(super(i),this.it=B,i.type!==dr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===B||i==null)return this._t=void 0,this.it=i;if(i===vt)return i;if(typeof i!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(i===this.it)return this._t;this.it=i;let t=[i];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};fa.directiveName="unsafeHTML",fa.resultType=1;var Ct=yt(fa);function Mi(o,i){return new Promise(t=>{function r(n){n.target===o&&(o.removeEventListener(i,r),t())}o.addEventListener(i,r)})}var _u=class{constructor(){this.openDropdowns=new Set;this.openTooltips=new Set}registerDropdown(i){this.openDropdowns.add(i)}unregisterDropdown(i){this.openDropdowns.delete(i)}isDropdownOpen(){return this.openDropdowns.size>0}registerTooltip(i){this.openTooltips.add(i)}unregisterTooltip(i){this.openTooltips.delete(i)}isTooltipOpen(){return this.openTooltips.size>0}},$5=new _u,Vn=$5;var ov=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block}.dropdown::part(popup){z-index:var(--zn-z-index-dropdown)}`;var Et=class extends k{constructor(){super(...arguments);this.open=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.hoist=!0;this.sync=void 0;this.fetchedContent="";this.handlePanelSelect=t=>{let r=t.target;!this.stayOpenOnSelect&&r.tagName.toLowerCase()==="zn-menu"&&(this.hide().then(n=>n),this.focusOnTrigger())};this.handlePreload=()=>{this.preloadContent().then(t=>t)}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}focusOnTrigger(){let t=this.trigger?.assignedElements({flatten:!0})[0];typeof t?.focus=="function"&&t.focus()}firstUpdated(t){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0),super.firstUpdated(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide().then(t=>t)}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="zn-menu")}addOpenListeners(){this.panel.addEventListener("zn-select",this.handlePanelSelect),"CloseWatcher"in window?(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide().then(t=>t),this.focusOnTrigger()}):this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown.bind(this)),document.addEventListener("mousedown",this.handleDocumentMouseDown.bind(this)),this.closeWatcher?.destroy()}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("zn-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.closeWatcher?.destroy()}async preloadContent(){if(this.uri&&!this.fetchedContent){let t=await fetch(this.uri,{credentials:"same-origin",headers:{"x-kx-inline":"inline"}});this.fetchedContent=await t.text(),this.requestUpdate()}}async handleTriggerClick(){this.open?await this.hide():(await this.show(),this.focusOnTrigger())}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide().then(r=>r),this.focusOnTrigger())}async handleTriggerKeyDown(t){if([" ","Enter","Tab"].includes(t.key)){t.preventDefault(),await this.handleTriggerClick();return}let r=this.getMenu();if(r){let n=r.getAllItems(),a=n[0],s=n[n.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||(this.show().then(l=>l),await this.updateComplete),n.length>0&&this.updateComplete.then(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(r.setCurrentItem(a),a.focus()),(t.key==="ArrowUp"||t.key==="End")&&(r.setCurrentItem(s),s.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}handleDocumentMouseDown(t){let r=t.composedPath();this.containingElement&&!r.includes(this.containingElement)&&this.hide().then(n=>n)}handleDocumentKeyDown(t){if(t.key==="Escape"&&this.open&&!this.closeWatcher){t.stopPropagation(),this.focusOnTrigger(),this.hide().then(r=>r);return}if(t.key==="Tab"){if(this.open){t.preventDefault(),this.hide().then(r=>r),this.focusOnTrigger();return}setTimeout(()=>{let r=this.containingElement?.getRootNode()instanceof ShadowRoot?document.activeElement?.shadowRoot?.activeElement:document.activeElement;(!this.containingElement||r?.closest(this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide().then(n=>n)})}}async show(){if(!this.open)return this.open=!0,Mi(this,"zn-after-show")}async hide(){if(this.open)return this.open=!1,Mi(this,"zn-after-hide")}reposition(){this.popup.reposition()}updateAccessibleTrigger(){let r=this.trigger.assignedElements({flatten:!0}).find(a=>zb(a).start),n=null;r&&(r.tagName.toLowerCase()==="zn-button"?n=r.button:n=r),n&&(n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-expanded",this.open.toString()))}handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open)this.emit("zn-show"),Vn.registerDropdown(this),this.addOpenListeners(),this.panel.hidden=!1,this.popup.active=!0,this.panel.focus(),this.emit("zn-after-show");else{this.emit("zn-hide"),Vn.unregisterDropdown(this),this.removeOpenListeners();let t=this.getRootNode().activeElement;t&&this.panel.assignedElements({flatten:!0}).some(r=>r.contains(t))&&(this.focusOnTrigger(),t.blur()),this.panel.blur(),this.panel.hidden=!0,this.popup.active=!1,this.emit("zn-after-hide")}}render(){return u`
|
|
6
6
|
<zn-popup
|
|
7
7
|
part="base"
|
|
8
8
|
exportparts="popup:base__popup"
|
|
@@ -36,7 +36,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
36
36
|
</div>
|
|
37
37
|
</zn-popup>
|
|
38
38
|
`}};Et.styles=z(ov),c([F(".dropdown")],Et.prototype,"popup",2),c([F(".dropdown__trigger")],Et.prototype,"trigger",2),c([F(".dropdown__panel")],Et.prototype,"panel",2),c([d({type:Boolean,reflect:!0})],Et.prototype,"open",2),c([d({reflect:!0})],Et.prototype,"placement",2),c([d({type:Boolean,reflect:!0})],Et.prototype,"disabled",2),c([d({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],Et.prototype,"stayOpenOnSelect",2),c([d({attribute:!1})],Et.prototype,"containingElement",2),c([d({type:Number})],Et.prototype,"distance",2),c([d({type:Number})],Et.prototype,"skidding",2),c([d({type:Boolean})],Et.prototype,"hoist",2),c([d({reflect:!0})],Et.prototype,"sync",2),c([d()],Et.prototype,"uri",2),c([d({type:String})],Et.prototype,"fetchedContent",2),c([K("open",{waitUntilFirstUpdate:!0})],Et.prototype,"handleOpenChange",1);var ur=Et;Et.define("zn-dropdown");var av=(o,i,t)=>{for(let r of i)if(r[0]===o)return(0,r[1])();return t?.()};function sv(o){function i(b,g){return b>>>g|b<<32-g}function t(b){b=b.replace(/\r\n/g,`
|
|
39
|
-
`);let g="";for(let v=0;v<b.length;v++){let y=b.charCodeAt(v);y<128?g+=String.fromCharCode(y):y<2048?(g+=String.fromCharCode(y>>6|192),g+=String.fromCharCode(y&63|128)):(g+=String.fromCharCode(y>>12|224),g+=String.fromCharCode(y>>6&63|128),g+=String.fromCharCode(y&63|128))}return g}let r=Math.pow,n=r(2,32),a=[],s=[],l=[],p={},h=0,m=t(o),f=m.length*8;for(let b=2;h<64;b++)if(!p[b]){for(let g=0;g<313;g+=b)p[g]=!0;h<8&&(s[h]=r(b,.5)*n|0),l[h]=r(b,1/3)*n|0,h++}for(m+="\x80";m.length%64!==56;)m+="\0";for(let b=0;b<m.length;b++)a[b>>2]|=m.charCodeAt(b)<<(3-b%4)*8;a[a.length]=f/n|0,a[a.length]=f;for(let b=0;b<a.length;b+=16){let g=s.slice(0,8),v=a.slice(b,b+16);for(let y=16;y<64;y++){let C=v[y-15],T=v[y-2],O=i(C,7)^i(C,18)^C>>>3,U=i(T,17)^i(T,19)^T>>>10;v[y]=v[y-16]+O+v[y-7]+U|0}for(let y=0;y<64;y++){let C=g[0],T=g[1],O=g[2],U=g[3],D=g[4],S=g[5],$=g[6],L=g[7],W=i(D,6)^i(D,11)^i(D,25),oe=D&S^~D&$,xe=L+W+oe+l[y]+v[y]|0,Re=i(C,2)^i(C,13)^i(C,22),Ne=C&T^C&O^T&O,nt=Re+Ne|0;g[7]=$,g[6]=S,g[5]=D,g[4]=U+xe|0,g[3]=O,g[2]=T,g[1]=C,g[0]=xe+nt|0}for(let y=0;y<8;y++)s[y]=s[y]+g[y]|0}return s.map(b=>(b>>>0).toString(16).padStart(8,"0")).join("")}var Ml=class extends fa{};Ml.directiveName="unsafeSVG",Ml.resultType=2;var lv=yt(Ml);var cv=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.lni{display:inline-block;font:normal normal normal 1em/1 "Lineicons";color:inherit;flex-shrink:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lni-sm{font-size:0.8em}.lni-lg{font-size:1.2em}.lni-16{font-size:16px}.lni-32{font-size:32px}.lni-is-spinning{animation:lni-spin 1s infinite linear}@keyframes lni-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.lni-rotate-90{transform:rotate(90deg)}.lni-rotate-180{transform:rotate(180deg)}.lni-rotate-270{transform:rotate(270deg)}.lni-flip-y{transform:scaleY(-1)}.lni-flip-x{transform:scaleX(-1)}.lni-500px::before{content:"\\ea01"}.lni-adobe::before{content:"\\ea02"}.lni-adonis::before{content:"\\ea03"}.lni-aeroplane-1::before{content:"\\ea04"}.lni-agenda::before{content:"\\ea05"}.lni-airbnb::before{content:"\\ea06"}.lni-airtable::before{content:"\\ea07"}.lni-alarm-1::before{content:"\\ea08"}.lni-align-text-center::before{content:"\\ea09"}.lni-align-text-left::before{content:"\\ea0a"}.lni-align-text-right::before{content:"\\ea0b"}.lni-alpinejs::before{content:"\\ea0c"}.lni-amazon::before{content:"\\ea0d"}.lni-amazon-original::before{content:"\\ea0e"}.lni-amazon-pay::before{content:"\\ea0f"}.lni-ambulance-1::before{content:"\\ea10"}.lni-amd::before{content:"\\ea11"}.lni-amex::before{content:"\\ea12"}.lni-anchor::before{content:"\\ea13"}.lni-android::before{content:"\\ea14"}.lni-android-old::before{content:"\\ea15"}.lni-angellist::before{content:"\\ea16"}.lni-angle-double-down::before{content:"\\ea17"}.lni-angle-double-left::before{content:"\\ea18"}.lni-angle-double-right::before{content:"\\ea19"}.lni-angle-double-up::before{content:"\\ea1a"}.lni-angular::before{content:"\\ea1b"}.lni-app-store::before{content:"\\ea1c"}.lni-apple-brand::before{content:"\\ea1d"}.lni-apple-music::before{content:"\\ea1e"}.lni-apple-music-alt::before{content:"\\ea1f"}.lni-apple-pay::before{content:"\\ea20"}.lni-arc-browser::before{content:"\\ea21"}.lni-arrow-all-direction::before{content:"\\ea22"}.lni-arrow-angular-top-left::before{content:"\\ea23"}.lni-arrow-angular-top-right::before{content:"\\ea24"}.lni-arrow-both-direction-horizontal-1::before{content:"\\ea25"}.lni-arrow-both-direction-vertical-1::before{content:"\\ea26"}.lni-arrow-downward::before{content:"\\ea27"}.lni-arrow-left::before{content:"\\ea28"}.lni-arrow-left-circle::before{content:"\\ea29"}.lni-arrow-right::before{content:"\\ea2a"}.lni-arrow-right-circle::before{content:"\\ea2b"}.lni-arrow-upward::before{content:"\\ea2c"}.lni-asana::before{content:"\\ea2d"}.lni-astro::before{content:"\\ea2e"}.lni-atlassian::before{content:"\\ea2f"}.lni-audi::before{content:"\\ea30"}.lni-audi-alt::before{content:"\\ea31"}.lni-aws::before{content:"\\ea32"}.lni-azure::before{content:"\\ea33"}.lni-badge-decagram-percent::before{content:"\\ea34"}.lni-balloons::before{content:"\\ea35"}.lni-ban-2::before{content:"\\ea36"}.lni-bar-chart-4::before{content:"\\ea37"}.lni-bar-chart-dollar::before{content:"\\ea38"}.lni-basket-shopping-3::before{content:"\\ea39"}.lni-beat::before{content:"\\ea3a"}.lni-behance::before{content:"\\ea3b"}.lni-bell-1::before{content:"\\ea3c"}.lni-bike::before{content:"\\ea3d"}.lni-bing::before{content:"\\ea3e"}.lni-bitbucket::before{content:"\\ea3f"}.lni-bitcoin::before{content:"\\ea40"}.lni-bittorrent::before{content:"\\ea41"}.lni-blogger::before{content:"\\ea42"}.lni-blogger-alt::before{content:"\\ea43"}.lni-bluetooth::before{content:"\\ea44"}.lni-bluetooth-logo::before{content:"\\ea45"}.lni-bmw::before{content:"\\ea46"}.lni-board-writing-3::before{content:"\\ea47"}.lni-bold::before{content:"\\ea48"}.lni-bolt-2::before{content:"\\ea49"}.lni-bolt-3::before{content:"\\ea4a"}.lni-book-1::before{content:"\\ea4b"}.lni-bookmark-1::before{content:"\\ea4c"}.lni-bookmark-circle::before{content:"\\ea4d"}.lni-books-2::before{content:"\\ea4e"}.lni-bootstrap-5::before{content:"\\ea4f"}.lni-bootstrap-5-square::before{content:"\\ea50"}.lni-box-archive-1::before{content:"\\ea51"}.lni-box-closed::before{content:"\\ea52"}.lni-box-gift-1::before{content:"\\ea53"}.lni-brave::before{content:"\\ea54"}.lni-bricks::before{content:"\\ea55"}.lni-bridge-3::before{content:"\\ea56"}.lni-briefcase-1::before{content:"\\ea57"}.lni-briefcase-2::before{content:"\\ea58"}.lni-briefcase-plus-1::before{content:"\\ea59"}.lni-brush-1-rotated::before{content:"\\ea5a"}.lni-brush-2::before{content:"\\ea5b"}.lni-btc::before{content:"\\ea5c"}.lni-bug-1::before{content:"\\ea5d"}.lni-buildings-1::before{content:"\\ea5e"}.lni-bulb-2::before{content:"\\ea5f"}.lni-bulb-4::before{content:"\\ea60"}.lni-burger-1::before{content:"\\ea61"}.lni-burger-drink::before{content:"\\ea62"}.lni-bus-1::before{content:"\\ea63"}.lni-busket-ball::before{content:"\\ea64"}.lni-cake-1::before{content:"\\ea65"}.lni-calculator-1::before{content:"\\ea66"}.lni-calculator-2::before{content:"\\ea67"}.lni-calendar-days::before{content:"\\ea68"}.lni-camera-1::before{content:"\\ea69"}.lni-camera-movie-1::before{content:"\\ea6a"}.lni-candy-cane-2::before{content:"\\ea6b"}.lni-candy-round-1::before{content:"\\ea6c"}.lni-canva::before{content:"\\ea6d"}.lni-capsule-1::before{content:"\\ea6e"}.lni-car-2::before{content:"\\ea6f"}.lni-car-4::before{content:"\\ea70"}.lni-car-6::before{content:"\\ea71"}.lni-caravan-1::before{content:"\\ea72"}.lni-cart-1::before{content:"\\ea73"}.lni-cart-2::before{content:"\\ea74"}.lni-cash-app::before{content:"\\ea75"}.lni-certificate-badge-1::before{content:"\\ea76"}.lni-chat-bubble-2::before{content:"\\ea77"}.lni-check::before{content:"\\ea78"}.lni-check-circle-1::before{content:"\\ea79"}.lni-check-square-2::before{content:"\\ea7a"}.lni-chevron-down::before{content:"\\ea7b"}.lni-chevron-down-circle::before{content:"\\ea7c"}.lni-chevron-left::before{content:"\\ea7d"}.lni-chevron-left-circle::before{content:"\\ea7e"}.lni-chevron-right-circle::before{content:"\\ea7f"}.lni-chevron-up::before{content:"\\ea80"}.lni-chevron-up-circle::before{content:"\\ea81"}.lni-chrome::before{content:"\\ea82"}.lni-chromecast::before{content:"\\ea83"}.lni-cisco::before{content:"\\ea84"}.lni-claude::before{content:"\\ea85"}.lni-clickup::before{content:"\\ea86"}.lni-clipboard::before{content:"\\ea87"}.lni-cloud-2::before{content:"\\ea88"}.lni-cloud-bolt-1::before{content:"\\ea89"}.lni-cloud-bolt-2::before{content:"\\ea8a"}.lni-cloud-check-circle::before{content:"\\ea8b"}.lni-cloud-download::before{content:"\\ea8c"}.lni-cloud-iot-2::before{content:"\\ea8d"}.lni-cloud-rain::before{content:"\\ea8e"}.lni-cloud-refresh-clockwise::before{content:"\\ea8f"}.lni-cloud-sun::before{content:"\\ea90"}.lni-cloud-upload::before{content:"\\ea91"}.lni-cloudflare::before{content:"\\ea92"}.lni-code-1::before{content:"\\ea93"}.lni-code-s::before{content:"\\ea94"}.lni-codepen::before{content:"\\ea95"}.lni-coffee-cup-2::before{content:"\\ea96"}.lni-coinbase::before{content:"\\ea97"}.lni-colour-palette-3::before{content:"\\ea98"}.lni-comment-1::before{content:"\\ea99"}.lni-comment-1-share::before{content:"\\ea9a"}.lni-comment-1-text::before{content:"\\ea9b"}.lni-compass-drafting-2::before{content:"\\ea9c"}.lni-connectdevelop::before{content:"\\ea9d"}.lni-copilot::before{content:"\\ea9e"}.lni-coral::before{content:"\\ea9f"}.lni-cpanel::before{content:"\\eaa0"}.lni-crane-4::before{content:"\\eaa1"}.lni-creative-commons::before{content:"\\eaa2"}.lni-credit-card-multiple::before{content:"\\eaa3"}.lni-crop-2::before{content:"\\eaa4"}.lni-crown-3::before{content:"\\eaa5"}.lni-css3::before{content:"\\eaa6"}.lni-dashboard-square-1::before{content:"\\eaa7"}.lni-database-2::before{content:"\\eaa8"}.lni-deno::before{content:"\\eaa9"}.lni-dev::before{content:"\\eaaa"}.lni-dialogflow::before{content:"\\eaab"}.lni-diamonds-1::before{content:"\\eaac"}.lni-diamonds-2::before{content:"\\eaad"}.lni-digitalocean::before{content:"\\eaae"}.lni-diners-club::before{content:"\\eaaf"}.lni-direction-ltr::before{content:"\\eab0"}.lni-direction-rtl::before{content:"\\eab1"}.lni-discord::before{content:"\\eab2"}.lni-discord-chat::before{content:"\\eab3"}.lni-discover::before{content:"\\eab4"}.lni-docker::before{content:"\\eab5"}.lni-dollar::before{content:"\\eab6"}.lni-dollar-circle::before{content:"\\eab7"}.lni-double-quotes-end-1::before{content:"\\eab8"}.lni-download-1::before{content:"\\eab9"}.lni-download-circle-1::before{content:"\\eaba"}.lni-dribbble::before{content:"\\eabb"}.lni-dribbble-symbol::before{content:"\\eabc"}.lni-drizzle::before{content:"\\eabd"}.lni-dropbox::before{content:"\\eabe"}.lni-drupal::before{content:"\\eabf"}.lni-dumbbell-1::before{content:"\\eac0"}.lni-edge::before{content:"\\eac1"}.lni-emoji-expressionless::before{content:"\\eac2"}.lni-emoji-expressionless-flat-eyes::before{content:"\\eac3"}.lni-emoji-grin::before{content:"\\eac4"}.lni-emoji-sad::before{content:"\\eac5"}.lni-emoji-smile::before{content:"\\eac6"}.lni-emoji-smile-side::before{content:"\\eac7"}.lni-emoji-smile-sunglass::before{content:"\\eac8"}.lni-emoji-smile-tongue::before{content:"\\eac9"}.lni-enter::before{content:"\\eaca"}.lni-enter-down::before{content:"\\eacb"}.lni-envato::before{content:"\\eacc"}.lni-envelope-1::before{content:"\\eacd"}.lni-eraser-1::before{content:"\\eace"}.lni-ethereum-logo::before{content:"\\eacf"}.lni-euro::before{content:"\\ead0"}.lni-exit::before{content:"\\ead1"}.lni-exit-up::before{content:"\\ead2"}.lni-expand-arrow-1::before{content:"\\ead3"}.lni-expand-square-4::before{content:"\\ead4"}.lni-expressjs::before{content:"\\ead5"}.lni-eye::before{content:"\\ead6"}.lni-facebook::before{content:"\\ead7"}.lni-facebook-messenger::before{content:"\\ead8"}.lni-facebook-rounded::before{content:"\\ead9"}.lni-facebook-square::before{content:"\\eada"}.lni-facetime::before{content:"\\eadb"}.lni-figma::before{content:"\\eadc"}.lni-file-format-zip::before{content:"\\eadd"}.lni-file-multiple::before{content:"\\eade"}.lni-file-pencil::before{content:"\\eadf"}.lni-file-plus-circle::before{content:"\\eae0"}.lni-file-question::before{content:"\\eae1"}.lni-file-xmark::before{content:"\\eae2"}.lni-firebase::before{content:"\\eae3"}.lni-firefox::before{content:"\\eae4"}.lni-firework-rocket-4::before{content:"\\eae5"}.lni-fitbit::before{content:"\\eae6"}.lni-flag-1::before{content:"\\eae7"}.lni-flag-2::before{content:"\\eae8"}.lni-flickr::before{content:"\\eae9"}.lni-floppy-disk-1::before{content:"\\eaea"}.lni-flower-2::before{content:"\\eaeb"}.lni-flutter::before{content:"\\eaec"}.lni-folder-1::before{content:"\\eaed"}.lni-ford::before{content:"\\eaee"}.lni-framer::before{content:"\\eaef"}.lni-funnel-1::before{content:"\\eaf0"}.lni-gallery::before{content:"\\eaf1"}.lni-game-pad-modern-1::before{content:"\\eaf2"}.lni-gatsby::before{content:"\\eaf3"}.lni-gauge-1::before{content:"\\eaf4"}.lni-gear-1::before{content:"\\eaf5"}.lni-gears-3::before{content:"\\eaf6"}.lni-gemini::before{content:"\\eaf7"}.lni-git::before{content:"\\eaf8"}.lni-github::before{content:"\\eaf9"}.lni-glass-juice-1::before{content:"\\eafa"}.lni-globe-1::before{content:"\\eafb"}.lni-globe-stand::before{content:"\\eafc"}.lni-go::before{content:"\\eafd"}.lni-goodreads::before{content:"\\eafe"}.lni-google::before{content:"\\eaff"}.lni-google-cloud::before{content:"\\eb00"}.lni-google-drive::before{content:"\\eb01"}.lni-google-meet::before{content:"\\eb02"}.lni-google-pay::before{content:"\\eb03"}.lni-google-wallet::before{content:"\\eb04"}.lni-graduation-cap-1::before{content:"\\eb05"}.lni-grammarly::before{content:"\\eb06"}.lni-hacker-news::before{content:"\\eb07"}.lni-hammer-1::before{content:"\\eb08"}.lni-hammer-2::before{content:"\\eb09"}.lni-hand-mic::before{content:"\\eb0a"}.lni-hand-shake::before{content:"\\eb0b"}.lni-hand-stop::before{content:"\\eb0c"}.lni-hand-taking-dollar::before{content:"\\eb0d"}.lni-hand-taking-leaf-1::before{content:"\\eb0e"}.lni-hand-taking-user::before{content:"\\eb0f"}.lni-hashnode::before{content:"\\eb10"}.lni-hat-chef-3::before{content:"\\eb11"}.lni-headphone-1::before{content:"\\eb12"}.lni-heart::before{content:"\\eb13"}.lni-helicopter-2::before{content:"\\eb14"}.lni-helmet-safety-1::before{content:"\\eb15"}.lni-hierarchy-1::before{content:"\\eb16"}.lni-highlighter-1::before{content:"\\eb17"}.lni-highlighter-2::before{content:"\\eb18"}.lni-home-2::before{content:"\\eb19"}.lni-hospital-2::before{content:"\\eb1a"}.lni-hourglass::before{content:"\\eb1b"}.lni-html5::before{content:"\\eb1c"}.lni-ibm::before{content:"\\eb1d"}.lni-id-card::before{content:"\\eb1e"}.lni-imdb::before{content:"\\eb1f"}.lni-indent::before{content:"\\eb20"}.lni-info::before{content:"\\eb21"}.lni-injection-1::before{content:"\\eb22"}.lni-instagram::before{content:"\\eb23"}.lni-instagram-logotype::before{content:"\\eb24"}.lni-intel::before{content:"\\eb25"}.lni-ios::before{content:"\\eb26"}.lni-island-2::before{content:"\\eb27"}.lni-jaguar::before{content:"\\eb28"}.lni-jamstack::before{content:"\\eb29"}.lni-java::before{content:"\\eb2a"}.lni-javascript::before{content:"\\eb2b"}.lni-jcb::before{content:"\\eb2c"}.lni-joomla::before{content:"\\eb2d"}.lni-jsfiddle::before{content:"\\eb2e"}.lni-key-1::before{content:"\\eb2f"}.lni-keyboard::before{content:"\\eb30"}.lni-knife-fork-1::before{content:"\\eb31"}.lni-kubernetes::before{content:"\\eb32"}.lni-label-dollar-2::before{content:"\\eb33"}.lni-laptop-2::before{content:"\\eb34"}.lni-laptop-phone::before{content:"\\eb35"}.lni-laravel::before{content:"\\eb36"}.lni-layers-1::before{content:"\\eb37"}.lni-layout-26::before{content:"\\eb38"}.lni-layout-9::before{content:"\\eb39"}.lni-leaf-1::before{content:"\\eb3a"}.lni-leaf-6::before{content:"\\eb3b"}.lni-lemon-squeezy::before{content:"\\eb3c"}.lni-life-guard-tube-1::before{content:"\\eb3d"}.lni-line::before{content:"\\eb3e"}.lni-line-dashed::before{content:"\\eb3f"}.lni-line-dotted::before{content:"\\eb40"}.lni-line-height::before{content:"\\eb41"}.lni-lineicons::before{content:"\\eb42"}.lni-link-2-angular-right::before{content:"\\eb43"}.lni-linkedin::before{content:"\\eb44"}.lni-location-arrow-right::before{content:"\\eb45"}.lni-locked-1::before{content:"\\eb46"}.lni-locked-2::before{content:"\\eb47"}.lni-loom::before{content:"\\eb48"}.lni-magento::before{content:"\\eb49"}.lni-magnet::before{content:"\\eb4a"}.lni-mailchimp::before{content:"\\eb4b"}.lni-map-marker-1::before{content:"\\eb4c"}.lni-map-marker-5::before{content:"\\eb4d"}.lni-map-pin-5::before{content:"\\eb4e"}.lni-markdown::before{content:"\\eb4f"}.lni-mastercard::before{content:"\\eb50"}.lni-medium::before{content:"\\eb51"}.lni-medium-alt::before{content:"\\eb52"}.lni-megaphone-1::before{content:"\\eb53"}.lni-menu-cheesburger::before{content:"\\eb54"}.lni-menu-hamburger-1::before{content:"\\eb55"}.lni-menu-meatballs-1::before{content:"\\eb56"}.lni-menu-meatballs-2::before{content:"\\eb57"}.lni-mercedes::before{content:"\\eb58"}.lni-message-2::before{content:"\\eb59"}.lni-message-2-question::before{content:"\\eb5a"}.lni-message-3-text::before{content:"\\eb5b"}.lni-meta::before{content:"\\eb5c"}.lni-meta-alt::before{content:"\\eb5d"}.lni-microphone-1::before{content:"\\eb5e"}.lni-microscope::before{content:"\\eb5f"}.lni-microsoft::before{content:"\\eb60"}.lni-microsoft-edge::before{content:"\\eb61"}.lni-microsoft-teams::before{content:"\\eb62"}.lni-minus::before{content:"\\eb63"}.lni-minus-circle::before{content:"\\eb64"}.lni-mongodb::before{content:"\\eb65"}.lni-monitor::before{content:"\\eb66"}.lni-monitor-code::before{content:"\\eb67"}.lni-monitor-mac::before{content:"\\eb68"}.lni-moon-half-right-5::before{content:"\\eb69"}.lni-mountains-2::before{content:"\\eb6a"}.lni-mouse-2::before{content:"\\eb6b"}.lni-mushroom-1::before{content:"\\eb6c"}.lni-mushroom-5::before{content:"\\eb6d"}.lni-music::before{content:"\\eb6e"}.lni-mysql::before{content:"\\eb6f"}.lni-nasa::before{content:"\\eb70"}.lni-netflix::before{content:"\\eb71"}.lni-netlify::before{content:"\\eb72"}.lni-next-step-2::before{content:"\\eb73"}.lni-nextjs::before{content:"\\eb74"}.lni-nike::before{content:"\\eb75"}.lni-nissan::before{content:"\\eb76"}.lni-nodejs::before{content:"\\eb77"}.lni-nodejs-alt::before{content:"\\eb78"}.lni-notebook-1::before{content:"\\eb79"}.lni-notion::before{content:"\\eb7a"}.lni-npm::before{content:"\\eb7b"}.lni-nuxt::before{content:"\\eb7c"}.lni-nvidia::before{content:"\\eb7d"}.lni-oculus::before{content:"\\eb7e"}.lni-open-ai::before{content:"\\eb7f"}.lni-opera-mini::before{content:"\\eb80"}.lni-oracle::before{content:"\\eb81"}.lni-outdent::before{content:"\\eb82"}.lni-paddle::before{content:"\\eb83"}.lni-page-break-1::before{content:"\\eb84"}.lni-pagination::before{content:"\\eb85"}.lni-paint-bucket::before{content:"\\eb86"}.lni-paint-roller-1::before{content:"\\eb87"}.lni-paperclip-1::before{content:"\\eb88"}.lni-party-flags::before{content:"\\eb89"}.lni-party-spray::before{content:"\\eb8a"}.lni-patreon::before{content:"\\eb8b"}.lni-pause::before{content:"\\eb8c"}.lni-payoneer::before{content:"\\eb8d"}.lni-paypal::before{content:"\\eb8e"}.lni-pen-to-square::before{content:"\\eb8f"}.lni-pencil-1::before{content:"\\eb90"}.lni-pepsi::before{content:"\\eb91"}.lni-phone::before{content:"\\eb92"}.lni-photos::before{content:"\\eb93"}.lni-php::before{content:"\\eb94"}.lni-pie-chart-2::before{content:"\\eb95"}.lni-pilcrow::before{content:"\\eb96"}.lni-pimjo-logo::before{content:"\\eb97"}.lni-pimjo-symbol::before{content:"\\eb98"}.lni-pinterest::before{content:"\\eb99"}.lni-pizza-2::before{content:"\\eb9a"}.lni-placeholder-dollar::before{content:"\\eb9b"}.lni-plantscale::before{content:"\\eb9c"}.lni-play::before{content:"\\eb9d"}.lni-play-store::before{content:"\\eb9e"}.lni-playstation::before{content:"\\eb9f"}.lni-plug-1::before{content:"\\eba0"}.lni-plus::before{content:"\\eba1"}.lni-plus-circle::before{content:"\\eba2"}.lni-pnpm::before{content:"\\eba3"}.lni-postgresql::before{content:"\\eba4"}.lni-postman::before{content:"\\eba5"}.lni-pound::before{content:"\\eba6"}.lni-power-button::before{content:"\\eba7"}.lni-previous-step-2::before{content:"\\eba8"}.lni-printer::before{content:"\\eba9"}.lni-prisma::before{content:"\\ebaa"}.lni-producthunt::before{content:"\\ebab"}.lni-proton-mail-logo::before{content:"\\ebac"}.lni-proton-mail-symbol::before{content:"\\ebad"}.lni-python::before{content:"\\ebae"}.lni-question-mark::before{content:"\\ebaf"}.lni-question-mark-circle::before{content:"\\ebb0"}.lni-quora::before{content:"\\ebb1"}.lni-radis::before{content:"\\ebb2"}.lni-react::before{content:"\\ebb3"}.lni-reddit::before{content:"\\ebb4"}.lni-refresh-circle-1-clockwise::before{content:"\\ebb5"}.lni-refresh-dollar-1::before{content:"\\ebb6"}.lni-refresh-user-1::before{content:"\\ebb7"}.lni-remix-js::before{content:"\\ebb8"}.lni-road-1::before{content:"\\ebb9"}.lni-rocket-5::before{content:"\\ebba"}.lni-route-1::before{content:"\\ebbb"}.lni-rss-right::before{content:"\\ebbc"}.lni-ruler-1::before{content:"\\ebbd"}.lni-ruler-pen::before{content:"\\ebbe"}.lni-rupee::before{content:"\\ebbf"}.lni-safari::before{content:"\\ebc0"}.lni-sanity::before{content:"\\ebc1"}.lni-school-bench-1::before{content:"\\ebc2"}.lni-school-bench-2::before{content:"\\ebc3"}.lni-scissors-1-vertical::before{content:"\\ebc4"}.lni-scoter::before{content:"\\ebc5"}.lni-scroll-down-2::before{content:"\\ebc6"}.lni-search-1::before{content:"\\ebc7"}.lni-search-2::before{content:"\\ebc8"}.lni-search-minus::before{content:"\\ebc9"}.lni-search-plus::before{content:"\\ebca"}.lni-search-text::before{content:"\\ebcb"}.lni-select-cursor-1::before{content:"\\ebcc"}.lni-seo-monitor::before{content:"\\ebcd"}.lni-service-bell-1::before{content:"\\ebce"}.lni-share-1::before{content:"\\ebcf"}.lni-share-1-circle::before{content:"\\ebd0"}.lni-share-2::before{content:"\\ebd1"}.lni-shield-2::before{content:"\\ebd2"}.lni-shield-2-check::before{content:"\\ebd3"}.lni-shield-dollar::before{content:"\\ebd4"}.lni-shift-left::before{content:"\\ebd5"}.lni-shift-right::before{content:"\\ebd6"}.lni-ship-1::before{content:"\\ebd7"}.lni-shirt-1::before{content:"\\ebd8"}.lni-shopify::before{content:"\\ebd9"}.lni-shovel::before{content:"\\ebda"}.lni-shuffle::before{content:"\\ebdb"}.lni-sign-post-left::before{content:"\\ebdc"}.lni-signal-app::before{content:"\\ebdd"}.lni-signs-post-2::before{content:"\\ebde"}.lni-sketch::before{content:"\\ebdf"}.lni-skype::before{content:"\\ebe0"}.lni-slack::before{content:"\\ebe1"}.lni-slice-2::before{content:"\\ebe2"}.lni-sliders-horizontal-square-2::before{content:"\\ebe3"}.lni-slideshare::before{content:"\\ebe4"}.lni-snapchat::before{content:"\\ebe5"}.lni-sort-alphabetical::before{content:"\\ebe6"}.lni-sort-high-to-low::before{content:"\\ebe7"}.lni-soundcloud::before{content:"\\ebe8"}.lni-spacex::before{content:"\\ebe9"}.lni-spellcheck::before{content:"\\ebea"}.lni-spinner-2-sacle::before{content:"\\ebeb"}.lni-spinner-3::before{content:"\\ebec"}.lni-sports::before{content:"\\ebed"}.lni-spotify::before{content:"\\ebee"}.lni-spotify-alt::before{content:"\\ebef"}.lni-squarespace::before{content:"\\ebf0"}.lni-stackoverflow::before{content:"\\ebf1"}.lni-stamp::before{content:"\\ebf2"}.lni-star-fat::before{content:"\\ebf3"}.lni-star-fat-half-2::before{content:"\\ebf4"}.lni-star-sharp-disabled::before{content:"\\ebf5"}.lni-statista::before{content:"\\ebf6"}.lni-steam::before{content:"\\ebf7"}.lni-stethoscope-1::before{content:"\\ebf8"}.lni-stopwatch::before{content:"\\ebf9"}.lni-storage-hdd-2::before{content:"\\ebfa"}.lni-strikethrough-1::before{content:"\\ebfb"}.lni-stripe::before{content:"\\ebfc"}.lni-stumbleupon::before{content:"\\ebfd"}.lni-sun-1::before{content:"\\ebfe"}.lni-supabase::before{content:"\\ebff"}.lni-surfboard-2::before{content:"\\ec00"}.lni-svelte::before{content:"\\ec01"}.lni-swift::before{content:"\\ec02"}.lni-tab::before{content:"\\ec03"}.lni-tailwindcss::before{content:"\\ec04"}.lni-target-user::before{content:"\\ec05"}.lni-telegram::before{content:"\\ec06"}.lni-telephone-1::before{content:"\\ec07"}.lni-telephone-3::before{content:"\\ec08"}.lni-tesla::before{content:"\\ec09"}.lni-text-format::before{content:"\\ec0a"}.lni-text-format-remove::before{content:"\\ec0b"}.lni-text-paragraph::before{content:"\\ec0c"}.lni-thumbs-down-3::before{content:"\\ec0d"}.lni-thumbs-up-3::before{content:"\\ec0e"}.lni-ticket-1::before{content:"\\ec0f"}.lni-tickets-3::before{content:"\\ec10"}.lni-tiktok::before{content:"\\ec11"}.lni-tiktok-alt::before{content:"\\ec12"}.lni-tower-broadcast-1::before{content:"\\ec13"}.lni-toyota::before{content:"\\ec14"}.lni-train-1::before{content:"\\ec15"}.lni-train-3::before{content:"\\ec16"}.lni-trash-3::before{content:"\\ec17"}.lni-tree-2::before{content:"\\ec18"}.lni-trees-3::before{content:"\\ec19"}.lni-trello::before{content:"\\ec1a"}.lni-trend-down-1::before{content:"\\ec1b"}.lni-trend-up-1::before{content:"\\ec1c"}.lni-trophy-1::before{content:"\\ec1d"}.lni-trowel-1::before{content:"\\ec1e"}.lni-truck-delivery-1::before{content:"\\ec1f"}.lni-tumblr::before{content:"\\ec20"}.lni-turborepo::before{content:"\\ec21"}.lni-twitch::before{content:"\\ec22"}.lni-twitter-old::before{content:"\\ec23"}.lni-typescript::before{content:"\\ec24"}.lni-uber::before{content:"\\ec25"}.lni-uber-symbol::before{content:"\\ec26"}.lni-ubuntu::before{content:"\\ec27"}.lni-underline::before{content:"\\ec28"}.lni-unlink-2-angular-eft::before{content:"\\ec29"}.lni-unlocked-2::before{content:"\\ec2a"}.lni-unsplash::before{content:"\\ec2b"}.lni-upload-1::before{content:"\\ec2c"}.lni-upload-circle-1::before{content:"\\ec2d"}.lni-user-4::before{content:"\\ec2e"}.lni-user-multiple-4::before{content:"\\ec2f"}.lni-vector-nodes-6::before{content:"\\ec30"}.lni-vector-nodes-7::before{content:"\\ec31"}.lni-vercel::before{content:"\\ec32"}.lni-vimeo::before{content:"\\ec33"}.lni-visa::before{content:"\\ec34"}.lni-vite::before{content:"\\ec35"}.lni-vk::before{content:"\\ec36"}.lni-vmware::before{content:"\\ec37"}.lni-volkswagen::before{content:"\\ec38"}.lni-volume-1::before{content:"\\ec39"}.lni-volume-high::before{content:"\\ec3a"}.lni-volume-low::before{content:"\\ec3b"}.lni-volume-mute::before{content:"\\ec3c"}.lni-volume-off::before{content:"\\ec3d"}.lni-vs-code::before{content:"\\ec3e"}.lni-vuejs::before{content:"\\ec3f"}.lni-wallet-1::before{content:"\\ec40"}.lni-watch-beat-1::before{content:"\\ec41"}.lni-water-drop-1::before{content:"\\ec42"}.lni-webflow::before{content:"\\ec43"}.lni-webhooks::before{content:"\\ec44"}.lni-wechat::before{content:"\\ec45"}.lni-weight-machine-1::before{content:"\\ec46"}.lni-whatsapp::before{content:"\\ec47"}.lni-wheelbarrow-empty::before{content:"\\ec48"}.lni-wheelchair-1::before{content:"\\ec49"}.lni-windows::before{content:"\\ec4a"}.lni-wise::before{content:"\\ec4b"}.lni-wordpress::before{content:"\\ec4c"}.lni-www::before{content:"\\ec4d"}.lni-www-cursor::before{content:"\\ec4e"}.lni-x::before{content:"\\ec4f"}.lni-xampp::before{content:"\\ec50"}.lni-xbox::before{content:"\\ec51"}.lni-xmark::before{content:"\\ec52"}.lni-xmark-circle::before{content:"\\ec53"}.lni-xrp::before{content:"\\ec54"}.lni-yahoo::before{content:"\\ec55"}.lni-yarn::before{content:"\\ec56"}.lni-ycombinator::before{content:"\\ec57"}.lni-yen::before{content:"\\ec58"}.lni-youtube::before{content:"\\ec59"}.lni-youtube-kids::before{content:"\\ec5a"}.lni-youtube-music::before{content:"\\ec5b"}.lni-zapier::before{content:"\\ec5c"}.lni-zero-size::before{content:"\\ec5d"}.lni-zoom::before{content:"\\ec5e"}:host{display:inline-block;box-sizing:content-box !important;--icon-size:24px;--icon-color:inherit}:host([split-pane-focus]) .icon-wrapper{cursor:pointer}.icon-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:sans-serif;overflow:hidden;margin:0;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:100%;height:100%}.icon{width:var(--icon-size);height:var(--icon-size);color:var(--icon-color);overflow:hidden;line-height:1}.icon i{font-size:var(--icon-size) !important}.icon--default{--icon-color:rgb(var(--zn-text))}.icon--primary{--icon-color:rgb(var(--zn-primary))}.icon--accent{--icon-color:rgb(var(--zn-accent))}.icon--info{--icon-color:rgb(var(--zn-color-info))}.icon--warning{--icon-color:rgb(var(--zn-color-warning))}.icon--error{--icon-color:rgb(var(--zn-color-error))}.icon--success{--icon-color:rgb(var(--zn-color-success))}.icon--white{--icon-color:rgb(var(--zn-body))}.icon--disabled{--icon-color:rgb(var(--zn-color-disabled))}.icon--red{--icon-color:rgb(var(--zn-red))}.icon--blue{--icon-color:rgb(var(--zn-blue))}.icon--green{--icon-color:rgb(var(--zn-green))}.icon--orange{--icon-color:rgb(var(--zn-orange))}.icon--yellow{--icon-color:rgb(var(--zn-yellow))}.icon--indigo{--icon-color:rgb(var(--zn-indigo))}.icon--violet{--icon-color:rgb(var(--zn-violet))}.icon--pink{--icon-color:rgb(var(--zn-pink))}.icon--grey{--icon-color:rgb(var(--zn-grey))}.icon--filled .lucide{fill:var(--icon-fill,currentColor)}.icon--fill-default{--icon-fill:rgb(var(--zn-text))}.icon--fill-primary{--icon-fill:rgb(var(--zn-primary))}.icon--fill-accent{--icon-fill:rgb(var(--zn-accent))}.icon--fill-info{--icon-fill:rgb(var(--zn-color-info))}.icon--fill-warning{--icon-fill:rgb(var(--zn-color-warning))}.icon--fill-error{--icon-fill:rgb(var(--zn-color-error))}.icon--fill-success{--icon-fill:rgb(var(--zn-color-success))}.icon--fill-white{--icon-fill:rgb(var(--zn-body))}.icon--fill-disabled{--icon-fill:rgb(var(--zn-color-disabled))}.icon--fill-red{--icon-fill:rgb(var(--zn-red))}.icon--fill-blue{--icon-fill:rgb(var(--zn-blue))}.icon--fill-green{--icon-fill:rgb(var(--zn-green))}.icon--fill-orange{--icon-fill:rgb(var(--zn-orange))}.icon--fill-yellow{--icon-fill:rgb(var(--zn-yellow))}.icon--fill-indigo{--icon-fill:rgb(var(--zn-indigo))}.icon--fill-violet{--icon-fill:rgb(var(--zn-violet))}.icon--fill-pink{--icon-fill:rgb(var(--zn-pink))}.icon--fill-grey{--icon-fill:rgb(var(--zn-grey))}.icon--round{border-radius:50%}.icon--tile{border-radius:20%}.icon--depth{position:relative}.icon--depth:before,.icon--depth:after{content:"";position:absolute;inset:0;border-radius:inherit}.icon--depth:before{box-shadow:inset -2px -2px 1px rgba(0,0,0,0.1)}.icon--depth:after{box-shadow:inset 2px 2px 1px rgba(255,255,255,0.2)}.icon--blink{animation:blink-animation 1.5s steps(5,start) infinite}.icon--avatar{background-color:var(--avatar-color,var(--icon-color));color:hsl(from var(--avatar-color,var(--icon-color)) h s 95);display:flex;justify-content:center;align-items:center}.icon--avatar .avatar__text{font-size:calc(var(--icon-size) / 2.4);color:hsl(from var(--avatar-color,var(--icon-color)) h s 95);font-weight:var(--zn-font-weight-semibold)}.icon--padded{padding:var(--zn-spacing-small)}.icon--squared{width:auto !important;height:auto !important;aspect-ratio:1/1;display:block}.icon .mi{font-family:"Material Icons";font-size:inherit;font-weight:300;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased;font-variation-settings:"FILL" 0,"wght" 300,"GRAD" 0,"opsz" 24}.icon .mi--outlined{font-family:"Material Icons Outlined"}.icon .mi--round{font-family:"Material Icons Round"}.icon .mi--sharp{font-family:"Material Icons Sharp"}.icon .mi--two-tone{font-family:"Material Icons Two Tone"}.icon .mi--symbol-outlined{font-family:"Material Symbols Outlined"}.icon .kb{font-family:"Kubex Icons Brands";font-style:normal;font-weight:normal !important;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased}.icon .lucide{display:block;width:100%;height:100%;color:currentColor;stroke:currentColor}.icon img{max-width:100%;vertical-align:middle}@keyframes blink-animation{0%,100%{opacity:1}50%{opacity:0.5}}`;var as,ku;function dv(){return ku??(ku=import("./chunks/zn.SBAUMVLL.js").then(o=>{as=o.icons}).catch(o=>{ku=void 0,console.warn("<zn-icon> failed to load the lucide icon chunk",o)})),ku}var mr=class mr extends k{constructor(){super(...arguments);this.size=24;this.round=!1;this.tile=!1;this.depth=!1;this.padded=!1;this.blink=!1;this.squared=!1;this.gravatarOptions="";this.defaultLibrary="material-symbols-outlined";this.libraryAutoSet=!1}isPresetColor(t){return mr.presetColors.has(t)}convertToLibrary(t){return this.convertIndicatorToLibrary(t)??this.defaultLibrary}convertIndicatorToLibrary(t){switch(t){case"material":case"mat":case"m":return"material";case"material-outlined":case"mo":return"material-outlined";case"material-round":case"mr":return"material-round";case"material-sharp":case"ms":return"material-sharp";case"material-two-tone":case"mt":case"m2":return"material-two-tone";case"material-symbols-outlined":case"mso":return"material-symbols-outlined";case"gravatar":case"grav":return"gravatar";case"libravatar":return"libravatar";case"avatar":case"av":return"avatar";case"line":return"line";case"lucide":case"lu":return"lucide";case"brand":case"brands":return"brands"}}connectedCallback(){super.connectedCallback(),Ja(u`
|
|
39
|
+
`);let g="";for(let v=0;v<b.length;v++){let y=b.charCodeAt(v);y<128?g+=String.fromCharCode(y):y<2048?(g+=String.fromCharCode(y>>6|192),g+=String.fromCharCode(y&63|128)):(g+=String.fromCharCode(y>>12|224),g+=String.fromCharCode(y>>6&63|128),g+=String.fromCharCode(y&63|128))}return g}let r=Math.pow,n=r(2,32),a=[],s=[],l=[],p={},h=0,m=t(o),f=m.length*8;for(let b=2;h<64;b++)if(!p[b]){for(let g=0;g<313;g+=b)p[g]=!0;h<8&&(s[h]=r(b,.5)*n|0),l[h]=r(b,1/3)*n|0,h++}for(m+="\x80";m.length%64!==56;)m+="\0";for(let b=0;b<m.length;b++)a[b>>2]|=m.charCodeAt(b)<<(3-b%4)*8;a[a.length]=f/n|0,a[a.length]=f;for(let b=0;b<a.length;b+=16){let g=s.slice(0,8),v=a.slice(b,b+16);for(let y=16;y<64;y++){let C=v[y-15],T=v[y-2],O=i(C,7)^i(C,18)^C>>>3,U=i(T,17)^i(T,19)^T>>>10;v[y]=v[y-16]+O+v[y-7]+U|0}for(let y=0;y<64;y++){let C=g[0],T=g[1],O=g[2],U=g[3],D=g[4],S=g[5],$=g[6],L=g[7],W=i(D,6)^i(D,11)^i(D,25),oe=D&S^~D&$,xe=L+W+oe+l[y]+v[y]|0,Re=i(C,2)^i(C,13)^i(C,22),Ne=C&T^C&O^T&O,ot=Re+Ne|0;g[7]=$,g[6]=S,g[5]=D,g[4]=U+xe|0,g[3]=O,g[2]=T,g[1]=C,g[0]=xe+ot|0}for(let y=0;y<8;y++)s[y]=s[y]+g[y]|0}return s.map(b=>(b>>>0).toString(16).padStart(8,"0")).join("")}var Ml=class extends fa{};Ml.directiveName="unsafeSVG",Ml.resultType=2;var lv=yt(Ml);var cv=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.lni{display:inline-block;font:normal normal normal 1em/1 "Lineicons";color:inherit;flex-shrink:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lni-sm{font-size:0.8em}.lni-lg{font-size:1.2em}.lni-16{font-size:16px}.lni-32{font-size:32px}.lni-is-spinning{animation:lni-spin 1s infinite linear}@keyframes lni-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.lni-rotate-90{transform:rotate(90deg)}.lni-rotate-180{transform:rotate(180deg)}.lni-rotate-270{transform:rotate(270deg)}.lni-flip-y{transform:scaleY(-1)}.lni-flip-x{transform:scaleX(-1)}.lni-500px::before{content:"\\ea01"}.lni-adobe::before{content:"\\ea02"}.lni-adonis::before{content:"\\ea03"}.lni-aeroplane-1::before{content:"\\ea04"}.lni-agenda::before{content:"\\ea05"}.lni-airbnb::before{content:"\\ea06"}.lni-airtable::before{content:"\\ea07"}.lni-alarm-1::before{content:"\\ea08"}.lni-align-text-center::before{content:"\\ea09"}.lni-align-text-left::before{content:"\\ea0a"}.lni-align-text-right::before{content:"\\ea0b"}.lni-alpinejs::before{content:"\\ea0c"}.lni-amazon::before{content:"\\ea0d"}.lni-amazon-original::before{content:"\\ea0e"}.lni-amazon-pay::before{content:"\\ea0f"}.lni-ambulance-1::before{content:"\\ea10"}.lni-amd::before{content:"\\ea11"}.lni-amex::before{content:"\\ea12"}.lni-anchor::before{content:"\\ea13"}.lni-android::before{content:"\\ea14"}.lni-android-old::before{content:"\\ea15"}.lni-angellist::before{content:"\\ea16"}.lni-angle-double-down::before{content:"\\ea17"}.lni-angle-double-left::before{content:"\\ea18"}.lni-angle-double-right::before{content:"\\ea19"}.lni-angle-double-up::before{content:"\\ea1a"}.lni-angular::before{content:"\\ea1b"}.lni-app-store::before{content:"\\ea1c"}.lni-apple-brand::before{content:"\\ea1d"}.lni-apple-music::before{content:"\\ea1e"}.lni-apple-music-alt::before{content:"\\ea1f"}.lni-apple-pay::before{content:"\\ea20"}.lni-arc-browser::before{content:"\\ea21"}.lni-arrow-all-direction::before{content:"\\ea22"}.lni-arrow-angular-top-left::before{content:"\\ea23"}.lni-arrow-angular-top-right::before{content:"\\ea24"}.lni-arrow-both-direction-horizontal-1::before{content:"\\ea25"}.lni-arrow-both-direction-vertical-1::before{content:"\\ea26"}.lni-arrow-downward::before{content:"\\ea27"}.lni-arrow-left::before{content:"\\ea28"}.lni-arrow-left-circle::before{content:"\\ea29"}.lni-arrow-right::before{content:"\\ea2a"}.lni-arrow-right-circle::before{content:"\\ea2b"}.lni-arrow-upward::before{content:"\\ea2c"}.lni-asana::before{content:"\\ea2d"}.lni-astro::before{content:"\\ea2e"}.lni-atlassian::before{content:"\\ea2f"}.lni-audi::before{content:"\\ea30"}.lni-audi-alt::before{content:"\\ea31"}.lni-aws::before{content:"\\ea32"}.lni-azure::before{content:"\\ea33"}.lni-badge-decagram-percent::before{content:"\\ea34"}.lni-balloons::before{content:"\\ea35"}.lni-ban-2::before{content:"\\ea36"}.lni-bar-chart-4::before{content:"\\ea37"}.lni-bar-chart-dollar::before{content:"\\ea38"}.lni-basket-shopping-3::before{content:"\\ea39"}.lni-beat::before{content:"\\ea3a"}.lni-behance::before{content:"\\ea3b"}.lni-bell-1::before{content:"\\ea3c"}.lni-bike::before{content:"\\ea3d"}.lni-bing::before{content:"\\ea3e"}.lni-bitbucket::before{content:"\\ea3f"}.lni-bitcoin::before{content:"\\ea40"}.lni-bittorrent::before{content:"\\ea41"}.lni-blogger::before{content:"\\ea42"}.lni-blogger-alt::before{content:"\\ea43"}.lni-bluetooth::before{content:"\\ea44"}.lni-bluetooth-logo::before{content:"\\ea45"}.lni-bmw::before{content:"\\ea46"}.lni-board-writing-3::before{content:"\\ea47"}.lni-bold::before{content:"\\ea48"}.lni-bolt-2::before{content:"\\ea49"}.lni-bolt-3::before{content:"\\ea4a"}.lni-book-1::before{content:"\\ea4b"}.lni-bookmark-1::before{content:"\\ea4c"}.lni-bookmark-circle::before{content:"\\ea4d"}.lni-books-2::before{content:"\\ea4e"}.lni-bootstrap-5::before{content:"\\ea4f"}.lni-bootstrap-5-square::before{content:"\\ea50"}.lni-box-archive-1::before{content:"\\ea51"}.lni-box-closed::before{content:"\\ea52"}.lni-box-gift-1::before{content:"\\ea53"}.lni-brave::before{content:"\\ea54"}.lni-bricks::before{content:"\\ea55"}.lni-bridge-3::before{content:"\\ea56"}.lni-briefcase-1::before{content:"\\ea57"}.lni-briefcase-2::before{content:"\\ea58"}.lni-briefcase-plus-1::before{content:"\\ea59"}.lni-brush-1-rotated::before{content:"\\ea5a"}.lni-brush-2::before{content:"\\ea5b"}.lni-btc::before{content:"\\ea5c"}.lni-bug-1::before{content:"\\ea5d"}.lni-buildings-1::before{content:"\\ea5e"}.lni-bulb-2::before{content:"\\ea5f"}.lni-bulb-4::before{content:"\\ea60"}.lni-burger-1::before{content:"\\ea61"}.lni-burger-drink::before{content:"\\ea62"}.lni-bus-1::before{content:"\\ea63"}.lni-busket-ball::before{content:"\\ea64"}.lni-cake-1::before{content:"\\ea65"}.lni-calculator-1::before{content:"\\ea66"}.lni-calculator-2::before{content:"\\ea67"}.lni-calendar-days::before{content:"\\ea68"}.lni-camera-1::before{content:"\\ea69"}.lni-camera-movie-1::before{content:"\\ea6a"}.lni-candy-cane-2::before{content:"\\ea6b"}.lni-candy-round-1::before{content:"\\ea6c"}.lni-canva::before{content:"\\ea6d"}.lni-capsule-1::before{content:"\\ea6e"}.lni-car-2::before{content:"\\ea6f"}.lni-car-4::before{content:"\\ea70"}.lni-car-6::before{content:"\\ea71"}.lni-caravan-1::before{content:"\\ea72"}.lni-cart-1::before{content:"\\ea73"}.lni-cart-2::before{content:"\\ea74"}.lni-cash-app::before{content:"\\ea75"}.lni-certificate-badge-1::before{content:"\\ea76"}.lni-chat-bubble-2::before{content:"\\ea77"}.lni-check::before{content:"\\ea78"}.lni-check-circle-1::before{content:"\\ea79"}.lni-check-square-2::before{content:"\\ea7a"}.lni-chevron-down::before{content:"\\ea7b"}.lni-chevron-down-circle::before{content:"\\ea7c"}.lni-chevron-left::before{content:"\\ea7d"}.lni-chevron-left-circle::before{content:"\\ea7e"}.lni-chevron-right-circle::before{content:"\\ea7f"}.lni-chevron-up::before{content:"\\ea80"}.lni-chevron-up-circle::before{content:"\\ea81"}.lni-chrome::before{content:"\\ea82"}.lni-chromecast::before{content:"\\ea83"}.lni-cisco::before{content:"\\ea84"}.lni-claude::before{content:"\\ea85"}.lni-clickup::before{content:"\\ea86"}.lni-clipboard::before{content:"\\ea87"}.lni-cloud-2::before{content:"\\ea88"}.lni-cloud-bolt-1::before{content:"\\ea89"}.lni-cloud-bolt-2::before{content:"\\ea8a"}.lni-cloud-check-circle::before{content:"\\ea8b"}.lni-cloud-download::before{content:"\\ea8c"}.lni-cloud-iot-2::before{content:"\\ea8d"}.lni-cloud-rain::before{content:"\\ea8e"}.lni-cloud-refresh-clockwise::before{content:"\\ea8f"}.lni-cloud-sun::before{content:"\\ea90"}.lni-cloud-upload::before{content:"\\ea91"}.lni-cloudflare::before{content:"\\ea92"}.lni-code-1::before{content:"\\ea93"}.lni-code-s::before{content:"\\ea94"}.lni-codepen::before{content:"\\ea95"}.lni-coffee-cup-2::before{content:"\\ea96"}.lni-coinbase::before{content:"\\ea97"}.lni-colour-palette-3::before{content:"\\ea98"}.lni-comment-1::before{content:"\\ea99"}.lni-comment-1-share::before{content:"\\ea9a"}.lni-comment-1-text::before{content:"\\ea9b"}.lni-compass-drafting-2::before{content:"\\ea9c"}.lni-connectdevelop::before{content:"\\ea9d"}.lni-copilot::before{content:"\\ea9e"}.lni-coral::before{content:"\\ea9f"}.lni-cpanel::before{content:"\\eaa0"}.lni-crane-4::before{content:"\\eaa1"}.lni-creative-commons::before{content:"\\eaa2"}.lni-credit-card-multiple::before{content:"\\eaa3"}.lni-crop-2::before{content:"\\eaa4"}.lni-crown-3::before{content:"\\eaa5"}.lni-css3::before{content:"\\eaa6"}.lni-dashboard-square-1::before{content:"\\eaa7"}.lni-database-2::before{content:"\\eaa8"}.lni-deno::before{content:"\\eaa9"}.lni-dev::before{content:"\\eaaa"}.lni-dialogflow::before{content:"\\eaab"}.lni-diamonds-1::before{content:"\\eaac"}.lni-diamonds-2::before{content:"\\eaad"}.lni-digitalocean::before{content:"\\eaae"}.lni-diners-club::before{content:"\\eaaf"}.lni-direction-ltr::before{content:"\\eab0"}.lni-direction-rtl::before{content:"\\eab1"}.lni-discord::before{content:"\\eab2"}.lni-discord-chat::before{content:"\\eab3"}.lni-discover::before{content:"\\eab4"}.lni-docker::before{content:"\\eab5"}.lni-dollar::before{content:"\\eab6"}.lni-dollar-circle::before{content:"\\eab7"}.lni-double-quotes-end-1::before{content:"\\eab8"}.lni-download-1::before{content:"\\eab9"}.lni-download-circle-1::before{content:"\\eaba"}.lni-dribbble::before{content:"\\eabb"}.lni-dribbble-symbol::before{content:"\\eabc"}.lni-drizzle::before{content:"\\eabd"}.lni-dropbox::before{content:"\\eabe"}.lni-drupal::before{content:"\\eabf"}.lni-dumbbell-1::before{content:"\\eac0"}.lni-edge::before{content:"\\eac1"}.lni-emoji-expressionless::before{content:"\\eac2"}.lni-emoji-expressionless-flat-eyes::before{content:"\\eac3"}.lni-emoji-grin::before{content:"\\eac4"}.lni-emoji-sad::before{content:"\\eac5"}.lni-emoji-smile::before{content:"\\eac6"}.lni-emoji-smile-side::before{content:"\\eac7"}.lni-emoji-smile-sunglass::before{content:"\\eac8"}.lni-emoji-smile-tongue::before{content:"\\eac9"}.lni-enter::before{content:"\\eaca"}.lni-enter-down::before{content:"\\eacb"}.lni-envato::before{content:"\\eacc"}.lni-envelope-1::before{content:"\\eacd"}.lni-eraser-1::before{content:"\\eace"}.lni-ethereum-logo::before{content:"\\eacf"}.lni-euro::before{content:"\\ead0"}.lni-exit::before{content:"\\ead1"}.lni-exit-up::before{content:"\\ead2"}.lni-expand-arrow-1::before{content:"\\ead3"}.lni-expand-square-4::before{content:"\\ead4"}.lni-expressjs::before{content:"\\ead5"}.lni-eye::before{content:"\\ead6"}.lni-facebook::before{content:"\\ead7"}.lni-facebook-messenger::before{content:"\\ead8"}.lni-facebook-rounded::before{content:"\\ead9"}.lni-facebook-square::before{content:"\\eada"}.lni-facetime::before{content:"\\eadb"}.lni-figma::before{content:"\\eadc"}.lni-file-format-zip::before{content:"\\eadd"}.lni-file-multiple::before{content:"\\eade"}.lni-file-pencil::before{content:"\\eadf"}.lni-file-plus-circle::before{content:"\\eae0"}.lni-file-question::before{content:"\\eae1"}.lni-file-xmark::before{content:"\\eae2"}.lni-firebase::before{content:"\\eae3"}.lni-firefox::before{content:"\\eae4"}.lni-firework-rocket-4::before{content:"\\eae5"}.lni-fitbit::before{content:"\\eae6"}.lni-flag-1::before{content:"\\eae7"}.lni-flag-2::before{content:"\\eae8"}.lni-flickr::before{content:"\\eae9"}.lni-floppy-disk-1::before{content:"\\eaea"}.lni-flower-2::before{content:"\\eaeb"}.lni-flutter::before{content:"\\eaec"}.lni-folder-1::before{content:"\\eaed"}.lni-ford::before{content:"\\eaee"}.lni-framer::before{content:"\\eaef"}.lni-funnel-1::before{content:"\\eaf0"}.lni-gallery::before{content:"\\eaf1"}.lni-game-pad-modern-1::before{content:"\\eaf2"}.lni-gatsby::before{content:"\\eaf3"}.lni-gauge-1::before{content:"\\eaf4"}.lni-gear-1::before{content:"\\eaf5"}.lni-gears-3::before{content:"\\eaf6"}.lni-gemini::before{content:"\\eaf7"}.lni-git::before{content:"\\eaf8"}.lni-github::before{content:"\\eaf9"}.lni-glass-juice-1::before{content:"\\eafa"}.lni-globe-1::before{content:"\\eafb"}.lni-globe-stand::before{content:"\\eafc"}.lni-go::before{content:"\\eafd"}.lni-goodreads::before{content:"\\eafe"}.lni-google::before{content:"\\eaff"}.lni-google-cloud::before{content:"\\eb00"}.lni-google-drive::before{content:"\\eb01"}.lni-google-meet::before{content:"\\eb02"}.lni-google-pay::before{content:"\\eb03"}.lni-google-wallet::before{content:"\\eb04"}.lni-graduation-cap-1::before{content:"\\eb05"}.lni-grammarly::before{content:"\\eb06"}.lni-hacker-news::before{content:"\\eb07"}.lni-hammer-1::before{content:"\\eb08"}.lni-hammer-2::before{content:"\\eb09"}.lni-hand-mic::before{content:"\\eb0a"}.lni-hand-shake::before{content:"\\eb0b"}.lni-hand-stop::before{content:"\\eb0c"}.lni-hand-taking-dollar::before{content:"\\eb0d"}.lni-hand-taking-leaf-1::before{content:"\\eb0e"}.lni-hand-taking-user::before{content:"\\eb0f"}.lni-hashnode::before{content:"\\eb10"}.lni-hat-chef-3::before{content:"\\eb11"}.lni-headphone-1::before{content:"\\eb12"}.lni-heart::before{content:"\\eb13"}.lni-helicopter-2::before{content:"\\eb14"}.lni-helmet-safety-1::before{content:"\\eb15"}.lni-hierarchy-1::before{content:"\\eb16"}.lni-highlighter-1::before{content:"\\eb17"}.lni-highlighter-2::before{content:"\\eb18"}.lni-home-2::before{content:"\\eb19"}.lni-hospital-2::before{content:"\\eb1a"}.lni-hourglass::before{content:"\\eb1b"}.lni-html5::before{content:"\\eb1c"}.lni-ibm::before{content:"\\eb1d"}.lni-id-card::before{content:"\\eb1e"}.lni-imdb::before{content:"\\eb1f"}.lni-indent::before{content:"\\eb20"}.lni-info::before{content:"\\eb21"}.lni-injection-1::before{content:"\\eb22"}.lni-instagram::before{content:"\\eb23"}.lni-instagram-logotype::before{content:"\\eb24"}.lni-intel::before{content:"\\eb25"}.lni-ios::before{content:"\\eb26"}.lni-island-2::before{content:"\\eb27"}.lni-jaguar::before{content:"\\eb28"}.lni-jamstack::before{content:"\\eb29"}.lni-java::before{content:"\\eb2a"}.lni-javascript::before{content:"\\eb2b"}.lni-jcb::before{content:"\\eb2c"}.lni-joomla::before{content:"\\eb2d"}.lni-jsfiddle::before{content:"\\eb2e"}.lni-key-1::before{content:"\\eb2f"}.lni-keyboard::before{content:"\\eb30"}.lni-knife-fork-1::before{content:"\\eb31"}.lni-kubernetes::before{content:"\\eb32"}.lni-label-dollar-2::before{content:"\\eb33"}.lni-laptop-2::before{content:"\\eb34"}.lni-laptop-phone::before{content:"\\eb35"}.lni-laravel::before{content:"\\eb36"}.lni-layers-1::before{content:"\\eb37"}.lni-layout-26::before{content:"\\eb38"}.lni-layout-9::before{content:"\\eb39"}.lni-leaf-1::before{content:"\\eb3a"}.lni-leaf-6::before{content:"\\eb3b"}.lni-lemon-squeezy::before{content:"\\eb3c"}.lni-life-guard-tube-1::before{content:"\\eb3d"}.lni-line::before{content:"\\eb3e"}.lni-line-dashed::before{content:"\\eb3f"}.lni-line-dotted::before{content:"\\eb40"}.lni-line-height::before{content:"\\eb41"}.lni-lineicons::before{content:"\\eb42"}.lni-link-2-angular-right::before{content:"\\eb43"}.lni-linkedin::before{content:"\\eb44"}.lni-location-arrow-right::before{content:"\\eb45"}.lni-locked-1::before{content:"\\eb46"}.lni-locked-2::before{content:"\\eb47"}.lni-loom::before{content:"\\eb48"}.lni-magento::before{content:"\\eb49"}.lni-magnet::before{content:"\\eb4a"}.lni-mailchimp::before{content:"\\eb4b"}.lni-map-marker-1::before{content:"\\eb4c"}.lni-map-marker-5::before{content:"\\eb4d"}.lni-map-pin-5::before{content:"\\eb4e"}.lni-markdown::before{content:"\\eb4f"}.lni-mastercard::before{content:"\\eb50"}.lni-medium::before{content:"\\eb51"}.lni-medium-alt::before{content:"\\eb52"}.lni-megaphone-1::before{content:"\\eb53"}.lni-menu-cheesburger::before{content:"\\eb54"}.lni-menu-hamburger-1::before{content:"\\eb55"}.lni-menu-meatballs-1::before{content:"\\eb56"}.lni-menu-meatballs-2::before{content:"\\eb57"}.lni-mercedes::before{content:"\\eb58"}.lni-message-2::before{content:"\\eb59"}.lni-message-2-question::before{content:"\\eb5a"}.lni-message-3-text::before{content:"\\eb5b"}.lni-meta::before{content:"\\eb5c"}.lni-meta-alt::before{content:"\\eb5d"}.lni-microphone-1::before{content:"\\eb5e"}.lni-microscope::before{content:"\\eb5f"}.lni-microsoft::before{content:"\\eb60"}.lni-microsoft-edge::before{content:"\\eb61"}.lni-microsoft-teams::before{content:"\\eb62"}.lni-minus::before{content:"\\eb63"}.lni-minus-circle::before{content:"\\eb64"}.lni-mongodb::before{content:"\\eb65"}.lni-monitor::before{content:"\\eb66"}.lni-monitor-code::before{content:"\\eb67"}.lni-monitor-mac::before{content:"\\eb68"}.lni-moon-half-right-5::before{content:"\\eb69"}.lni-mountains-2::before{content:"\\eb6a"}.lni-mouse-2::before{content:"\\eb6b"}.lni-mushroom-1::before{content:"\\eb6c"}.lni-mushroom-5::before{content:"\\eb6d"}.lni-music::before{content:"\\eb6e"}.lni-mysql::before{content:"\\eb6f"}.lni-nasa::before{content:"\\eb70"}.lni-netflix::before{content:"\\eb71"}.lni-netlify::before{content:"\\eb72"}.lni-next-step-2::before{content:"\\eb73"}.lni-nextjs::before{content:"\\eb74"}.lni-nike::before{content:"\\eb75"}.lni-nissan::before{content:"\\eb76"}.lni-nodejs::before{content:"\\eb77"}.lni-nodejs-alt::before{content:"\\eb78"}.lni-notebook-1::before{content:"\\eb79"}.lni-notion::before{content:"\\eb7a"}.lni-npm::before{content:"\\eb7b"}.lni-nuxt::before{content:"\\eb7c"}.lni-nvidia::before{content:"\\eb7d"}.lni-oculus::before{content:"\\eb7e"}.lni-open-ai::before{content:"\\eb7f"}.lni-opera-mini::before{content:"\\eb80"}.lni-oracle::before{content:"\\eb81"}.lni-outdent::before{content:"\\eb82"}.lni-paddle::before{content:"\\eb83"}.lni-page-break-1::before{content:"\\eb84"}.lni-pagination::before{content:"\\eb85"}.lni-paint-bucket::before{content:"\\eb86"}.lni-paint-roller-1::before{content:"\\eb87"}.lni-paperclip-1::before{content:"\\eb88"}.lni-party-flags::before{content:"\\eb89"}.lni-party-spray::before{content:"\\eb8a"}.lni-patreon::before{content:"\\eb8b"}.lni-pause::before{content:"\\eb8c"}.lni-payoneer::before{content:"\\eb8d"}.lni-paypal::before{content:"\\eb8e"}.lni-pen-to-square::before{content:"\\eb8f"}.lni-pencil-1::before{content:"\\eb90"}.lni-pepsi::before{content:"\\eb91"}.lni-phone::before{content:"\\eb92"}.lni-photos::before{content:"\\eb93"}.lni-php::before{content:"\\eb94"}.lni-pie-chart-2::before{content:"\\eb95"}.lni-pilcrow::before{content:"\\eb96"}.lni-pimjo-logo::before{content:"\\eb97"}.lni-pimjo-symbol::before{content:"\\eb98"}.lni-pinterest::before{content:"\\eb99"}.lni-pizza-2::before{content:"\\eb9a"}.lni-placeholder-dollar::before{content:"\\eb9b"}.lni-plantscale::before{content:"\\eb9c"}.lni-play::before{content:"\\eb9d"}.lni-play-store::before{content:"\\eb9e"}.lni-playstation::before{content:"\\eb9f"}.lni-plug-1::before{content:"\\eba0"}.lni-plus::before{content:"\\eba1"}.lni-plus-circle::before{content:"\\eba2"}.lni-pnpm::before{content:"\\eba3"}.lni-postgresql::before{content:"\\eba4"}.lni-postman::before{content:"\\eba5"}.lni-pound::before{content:"\\eba6"}.lni-power-button::before{content:"\\eba7"}.lni-previous-step-2::before{content:"\\eba8"}.lni-printer::before{content:"\\eba9"}.lni-prisma::before{content:"\\ebaa"}.lni-producthunt::before{content:"\\ebab"}.lni-proton-mail-logo::before{content:"\\ebac"}.lni-proton-mail-symbol::before{content:"\\ebad"}.lni-python::before{content:"\\ebae"}.lni-question-mark::before{content:"\\ebaf"}.lni-question-mark-circle::before{content:"\\ebb0"}.lni-quora::before{content:"\\ebb1"}.lni-radis::before{content:"\\ebb2"}.lni-react::before{content:"\\ebb3"}.lni-reddit::before{content:"\\ebb4"}.lni-refresh-circle-1-clockwise::before{content:"\\ebb5"}.lni-refresh-dollar-1::before{content:"\\ebb6"}.lni-refresh-user-1::before{content:"\\ebb7"}.lni-remix-js::before{content:"\\ebb8"}.lni-road-1::before{content:"\\ebb9"}.lni-rocket-5::before{content:"\\ebba"}.lni-route-1::before{content:"\\ebbb"}.lni-rss-right::before{content:"\\ebbc"}.lni-ruler-1::before{content:"\\ebbd"}.lni-ruler-pen::before{content:"\\ebbe"}.lni-rupee::before{content:"\\ebbf"}.lni-safari::before{content:"\\ebc0"}.lni-sanity::before{content:"\\ebc1"}.lni-school-bench-1::before{content:"\\ebc2"}.lni-school-bench-2::before{content:"\\ebc3"}.lni-scissors-1-vertical::before{content:"\\ebc4"}.lni-scoter::before{content:"\\ebc5"}.lni-scroll-down-2::before{content:"\\ebc6"}.lni-search-1::before{content:"\\ebc7"}.lni-search-2::before{content:"\\ebc8"}.lni-search-minus::before{content:"\\ebc9"}.lni-search-plus::before{content:"\\ebca"}.lni-search-text::before{content:"\\ebcb"}.lni-select-cursor-1::before{content:"\\ebcc"}.lni-seo-monitor::before{content:"\\ebcd"}.lni-service-bell-1::before{content:"\\ebce"}.lni-share-1::before{content:"\\ebcf"}.lni-share-1-circle::before{content:"\\ebd0"}.lni-share-2::before{content:"\\ebd1"}.lni-shield-2::before{content:"\\ebd2"}.lni-shield-2-check::before{content:"\\ebd3"}.lni-shield-dollar::before{content:"\\ebd4"}.lni-shift-left::before{content:"\\ebd5"}.lni-shift-right::before{content:"\\ebd6"}.lni-ship-1::before{content:"\\ebd7"}.lni-shirt-1::before{content:"\\ebd8"}.lni-shopify::before{content:"\\ebd9"}.lni-shovel::before{content:"\\ebda"}.lni-shuffle::before{content:"\\ebdb"}.lni-sign-post-left::before{content:"\\ebdc"}.lni-signal-app::before{content:"\\ebdd"}.lni-signs-post-2::before{content:"\\ebde"}.lni-sketch::before{content:"\\ebdf"}.lni-skype::before{content:"\\ebe0"}.lni-slack::before{content:"\\ebe1"}.lni-slice-2::before{content:"\\ebe2"}.lni-sliders-horizontal-square-2::before{content:"\\ebe3"}.lni-slideshare::before{content:"\\ebe4"}.lni-snapchat::before{content:"\\ebe5"}.lni-sort-alphabetical::before{content:"\\ebe6"}.lni-sort-high-to-low::before{content:"\\ebe7"}.lni-soundcloud::before{content:"\\ebe8"}.lni-spacex::before{content:"\\ebe9"}.lni-spellcheck::before{content:"\\ebea"}.lni-spinner-2-sacle::before{content:"\\ebeb"}.lni-spinner-3::before{content:"\\ebec"}.lni-sports::before{content:"\\ebed"}.lni-spotify::before{content:"\\ebee"}.lni-spotify-alt::before{content:"\\ebef"}.lni-squarespace::before{content:"\\ebf0"}.lni-stackoverflow::before{content:"\\ebf1"}.lni-stamp::before{content:"\\ebf2"}.lni-star-fat::before{content:"\\ebf3"}.lni-star-fat-half-2::before{content:"\\ebf4"}.lni-star-sharp-disabled::before{content:"\\ebf5"}.lni-statista::before{content:"\\ebf6"}.lni-steam::before{content:"\\ebf7"}.lni-stethoscope-1::before{content:"\\ebf8"}.lni-stopwatch::before{content:"\\ebf9"}.lni-storage-hdd-2::before{content:"\\ebfa"}.lni-strikethrough-1::before{content:"\\ebfb"}.lni-stripe::before{content:"\\ebfc"}.lni-stumbleupon::before{content:"\\ebfd"}.lni-sun-1::before{content:"\\ebfe"}.lni-supabase::before{content:"\\ebff"}.lni-surfboard-2::before{content:"\\ec00"}.lni-svelte::before{content:"\\ec01"}.lni-swift::before{content:"\\ec02"}.lni-tab::before{content:"\\ec03"}.lni-tailwindcss::before{content:"\\ec04"}.lni-target-user::before{content:"\\ec05"}.lni-telegram::before{content:"\\ec06"}.lni-telephone-1::before{content:"\\ec07"}.lni-telephone-3::before{content:"\\ec08"}.lni-tesla::before{content:"\\ec09"}.lni-text-format::before{content:"\\ec0a"}.lni-text-format-remove::before{content:"\\ec0b"}.lni-text-paragraph::before{content:"\\ec0c"}.lni-thumbs-down-3::before{content:"\\ec0d"}.lni-thumbs-up-3::before{content:"\\ec0e"}.lni-ticket-1::before{content:"\\ec0f"}.lni-tickets-3::before{content:"\\ec10"}.lni-tiktok::before{content:"\\ec11"}.lni-tiktok-alt::before{content:"\\ec12"}.lni-tower-broadcast-1::before{content:"\\ec13"}.lni-toyota::before{content:"\\ec14"}.lni-train-1::before{content:"\\ec15"}.lni-train-3::before{content:"\\ec16"}.lni-trash-3::before{content:"\\ec17"}.lni-tree-2::before{content:"\\ec18"}.lni-trees-3::before{content:"\\ec19"}.lni-trello::before{content:"\\ec1a"}.lni-trend-down-1::before{content:"\\ec1b"}.lni-trend-up-1::before{content:"\\ec1c"}.lni-trophy-1::before{content:"\\ec1d"}.lni-trowel-1::before{content:"\\ec1e"}.lni-truck-delivery-1::before{content:"\\ec1f"}.lni-tumblr::before{content:"\\ec20"}.lni-turborepo::before{content:"\\ec21"}.lni-twitch::before{content:"\\ec22"}.lni-twitter-old::before{content:"\\ec23"}.lni-typescript::before{content:"\\ec24"}.lni-uber::before{content:"\\ec25"}.lni-uber-symbol::before{content:"\\ec26"}.lni-ubuntu::before{content:"\\ec27"}.lni-underline::before{content:"\\ec28"}.lni-unlink-2-angular-eft::before{content:"\\ec29"}.lni-unlocked-2::before{content:"\\ec2a"}.lni-unsplash::before{content:"\\ec2b"}.lni-upload-1::before{content:"\\ec2c"}.lni-upload-circle-1::before{content:"\\ec2d"}.lni-user-4::before{content:"\\ec2e"}.lni-user-multiple-4::before{content:"\\ec2f"}.lni-vector-nodes-6::before{content:"\\ec30"}.lni-vector-nodes-7::before{content:"\\ec31"}.lni-vercel::before{content:"\\ec32"}.lni-vimeo::before{content:"\\ec33"}.lni-visa::before{content:"\\ec34"}.lni-vite::before{content:"\\ec35"}.lni-vk::before{content:"\\ec36"}.lni-vmware::before{content:"\\ec37"}.lni-volkswagen::before{content:"\\ec38"}.lni-volume-1::before{content:"\\ec39"}.lni-volume-high::before{content:"\\ec3a"}.lni-volume-low::before{content:"\\ec3b"}.lni-volume-mute::before{content:"\\ec3c"}.lni-volume-off::before{content:"\\ec3d"}.lni-vs-code::before{content:"\\ec3e"}.lni-vuejs::before{content:"\\ec3f"}.lni-wallet-1::before{content:"\\ec40"}.lni-watch-beat-1::before{content:"\\ec41"}.lni-water-drop-1::before{content:"\\ec42"}.lni-webflow::before{content:"\\ec43"}.lni-webhooks::before{content:"\\ec44"}.lni-wechat::before{content:"\\ec45"}.lni-weight-machine-1::before{content:"\\ec46"}.lni-whatsapp::before{content:"\\ec47"}.lni-wheelbarrow-empty::before{content:"\\ec48"}.lni-wheelchair-1::before{content:"\\ec49"}.lni-windows::before{content:"\\ec4a"}.lni-wise::before{content:"\\ec4b"}.lni-wordpress::before{content:"\\ec4c"}.lni-www::before{content:"\\ec4d"}.lni-www-cursor::before{content:"\\ec4e"}.lni-x::before{content:"\\ec4f"}.lni-xampp::before{content:"\\ec50"}.lni-xbox::before{content:"\\ec51"}.lni-xmark::before{content:"\\ec52"}.lni-xmark-circle::before{content:"\\ec53"}.lni-xrp::before{content:"\\ec54"}.lni-yahoo::before{content:"\\ec55"}.lni-yarn::before{content:"\\ec56"}.lni-ycombinator::before{content:"\\ec57"}.lni-yen::before{content:"\\ec58"}.lni-youtube::before{content:"\\ec59"}.lni-youtube-kids::before{content:"\\ec5a"}.lni-youtube-music::before{content:"\\ec5b"}.lni-zapier::before{content:"\\ec5c"}.lni-zero-size::before{content:"\\ec5d"}.lni-zoom::before{content:"\\ec5e"}:host{display:inline-block;box-sizing:content-box !important;--icon-size:24px;--icon-color:inherit}:host([split-pane-focus]) .icon-wrapper{cursor:pointer}.icon-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:sans-serif;overflow:hidden;margin:0;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:100%;height:100%}.icon{width:var(--icon-size);height:var(--icon-size);color:var(--icon-color);overflow:hidden;line-height:1}.icon i{font-size:var(--icon-size) !important}.icon--default{--icon-color:rgb(var(--zn-text))}.icon--primary{--icon-color:rgb(var(--zn-primary))}.icon--accent{--icon-color:rgb(var(--zn-accent))}.icon--info{--icon-color:rgb(var(--zn-color-info))}.icon--warning{--icon-color:rgb(var(--zn-color-warning))}.icon--error{--icon-color:rgb(var(--zn-color-error))}.icon--success{--icon-color:rgb(var(--zn-color-success))}.icon--white{--icon-color:rgb(var(--zn-body))}.icon--disabled{--icon-color:rgb(var(--zn-color-disabled))}.icon--red{--icon-color:rgb(var(--zn-red))}.icon--blue{--icon-color:rgb(var(--zn-blue))}.icon--green{--icon-color:rgb(var(--zn-green))}.icon--orange{--icon-color:rgb(var(--zn-orange))}.icon--yellow{--icon-color:rgb(var(--zn-yellow))}.icon--indigo{--icon-color:rgb(var(--zn-indigo))}.icon--violet{--icon-color:rgb(var(--zn-violet))}.icon--pink{--icon-color:rgb(var(--zn-pink))}.icon--grey{--icon-color:rgb(var(--zn-grey))}.icon--filled .lucide{fill:var(--icon-fill,currentColor)}.icon--fill-default{--icon-fill:rgb(var(--zn-text))}.icon--fill-primary{--icon-fill:rgb(var(--zn-primary))}.icon--fill-accent{--icon-fill:rgb(var(--zn-accent))}.icon--fill-info{--icon-fill:rgb(var(--zn-color-info))}.icon--fill-warning{--icon-fill:rgb(var(--zn-color-warning))}.icon--fill-error{--icon-fill:rgb(var(--zn-color-error))}.icon--fill-success{--icon-fill:rgb(var(--zn-color-success))}.icon--fill-white{--icon-fill:rgb(var(--zn-body))}.icon--fill-disabled{--icon-fill:rgb(var(--zn-color-disabled))}.icon--fill-red{--icon-fill:rgb(var(--zn-red))}.icon--fill-blue{--icon-fill:rgb(var(--zn-blue))}.icon--fill-green{--icon-fill:rgb(var(--zn-green))}.icon--fill-orange{--icon-fill:rgb(var(--zn-orange))}.icon--fill-yellow{--icon-fill:rgb(var(--zn-yellow))}.icon--fill-indigo{--icon-fill:rgb(var(--zn-indigo))}.icon--fill-violet{--icon-fill:rgb(var(--zn-violet))}.icon--fill-pink{--icon-fill:rgb(var(--zn-pink))}.icon--fill-grey{--icon-fill:rgb(var(--zn-grey))}.icon--round{border-radius:50%}.icon--tile{border-radius:20%}.icon--depth{position:relative}.icon--depth:before,.icon--depth:after{content:"";position:absolute;inset:0;border-radius:inherit}.icon--depth:before{box-shadow:inset -2px -2px 1px rgba(0,0,0,0.1)}.icon--depth:after{box-shadow:inset 2px 2px 1px rgba(255,255,255,0.2)}.icon--blink{animation:blink-animation 1.5s steps(5,start) infinite}.icon--avatar{background-color:var(--avatar-color,var(--icon-color));color:hsl(from var(--avatar-color,var(--icon-color)) h s 95);display:flex;justify-content:center;align-items:center}.icon--avatar .avatar__text{font-size:calc(var(--icon-size) / 2.4);color:hsl(from var(--avatar-color,var(--icon-color)) h s 95);font-weight:var(--zn-font-weight-semibold)}.icon--padded{padding:var(--zn-spacing-small)}.icon--squared{width:auto !important;height:auto !important;aspect-ratio:1/1;display:block}.icon .mi{font-family:"Material Icons";font-size:inherit;font-weight:300;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased;font-variation-settings:"FILL" 0,"wght" 300,"GRAD" 0,"opsz" 24}.icon .mi--outlined{font-family:"Material Icons Outlined"}.icon .mi--round{font-family:"Material Icons Round"}.icon .mi--sharp{font-family:"Material Icons Sharp"}.icon .mi--two-tone{font-family:"Material Icons Two Tone"}.icon .mi--symbol-outlined{font-family:"Material Symbols Outlined"}.icon .kb{font-family:"Kubex Icons Brands";font-style:normal;font-weight:normal !important;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased}.icon .lucide{display:block;width:100%;height:100%;color:currentColor;stroke:currentColor}.icon img{max-width:100%;vertical-align:middle}@keyframes blink-animation{0%,100%{opacity:1}50%{opacity:0.5}}`;var as,ku;function dv(){return ku??(ku=import("./chunks/zn.SBAUMVLL.js").then(o=>{as=o.icons}).catch(o=>{ku=void 0,console.warn("<zn-icon> failed to load the lucide icon chunk",o)})),ku}var mr=class mr extends k{constructor(){super(...arguments);this.size=24;this.round=!1;this.tile=!1;this.depth=!1;this.padded=!1;this.blink=!1;this.squared=!1;this.gravatarOptions="";this.defaultLibrary="material-symbols-outlined";this.libraryAutoSet=!1}isPresetColor(t){return mr.presetColors.has(t)}convertToLibrary(t){return this.convertIndicatorToLibrary(t)??this.defaultLibrary}convertIndicatorToLibrary(t){switch(t){case"material":case"mat":case"m":return"material";case"material-outlined":case"mo":return"material-outlined";case"material-round":case"mr":return"material-round";case"material-sharp":case"ms":return"material-sharp";case"material-two-tone":case"mt":case"m2":return"material-two-tone";case"material-symbols-outlined":case"mso":return"material-symbols-outlined";case"gravatar":case"grav":return"gravatar";case"libravatar":return"libravatar";case"avatar":case"av":return"avatar";case"line":return"line";case"lucide":case"lu":return"lucide";case"brand":case"brands":return"brands"}}connectedCallback(){super.connectedCallback(),Ja(u`
|
|
40
40
|
<link
|
|
41
41
|
href="https://cdn.jsdelivr.net/gh/kubex/icons@0.0.8/dist/kubex-icons.css"
|
|
42
42
|
rel="stylesheet">
|
|
@@ -136,7 +136,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
136
136
|
${this.loadingText}<span class="loading-countdown"></span>
|
|
137
137
|
</span>
|
|
138
138
|
</div>
|
|
139
|
-
`:null}`}};le.styles=[z($d),z(hv)],le.dependencies={"zn-tooltip":gi,"zn-icon":ne},c([F(".button")],le.prototype,"button",2),c([ts(".loading-countdown")],le.prototype,"countdownContainer",2),c([d({})],le.prototype,"color",2),c([d({attribute:"hover-color"})],le.prototype,"hoverColor",2),c([d({type:Boolean})],le.prototype,"text",2),c([d({type:Boolean})],le.prototype,"outline",2),c([d({type:Boolean})],le.prototype,"disabled",2),c([d({type:Boolean})],le.prototype,"grow",2),c([d({type:Boolean})],le.prototype,"square",2),c([d({attribute:"icon-button",converter:{fromAttribute:t=>t==="small"||t==="round"?t:t!==null,toAttribute:t=>t==="small"||t==="round"?t:t?"":null}})],le.prototype,"iconButton",2),c([d({type:Boolean})],le.prototype,"plain",2),c([d({type:Boolean,attribute:"no-hover"})],le.prototype,"noHover",2),c([d({type:Boolean,reflect:!0})],le.prototype,"pill",2),c([d({type:Boolean,attribute:"panel-bg"})],le.prototype,"panelBackground",2),c([d({attribute:"dropdown-closer",type:Boolean})],le.prototype,"dropdownCloser",2),c([d({type:Number})],le.prototype,"notification",2),c([d({attribute:"muted-notifications",type:Boolean})],le.prototype,"mutedNotifications",2),c([d()],le.prototype,"verticalAlign",2),c([d()],le.prototype,"content",2),c([d()],le.prototype,"icon",2),c([d()],le.prototype,"gaid",2),c([d({attribute:"icon-position"})],le.prototype,"iconPosition",2),c([d({attribute:"icon-size"})],le.prototype,"iconSize",2),c([d({attribute:"icon-color"})],le.prototype,"iconColor",2),c([d({attribute:"icon-fill"})],le.prototype,"iconFill",2),c([d({attribute:"icon-library"})],le.prototype,"iconLibrary",2),c([d()],le.prototype,"type",2),c([d()],le.prototype,"name",2),c([d()],le.prototype,"value",2),c([d()],le.prototype,"form",2),c([d({attribute:"formaction"})],le.prototype,"formAction",2),c([d({attribute:"formenctype"})],le.prototype,"formEnctype",2),c([d({attribute:"formmethod"})],le.prototype,"formMethod",2),c([d({attribute:"formnovalidate",type:Boolean})],le.prototype,"formNoValidate",2),c([d({attribute:"formtarget"})],le.prototype,"formTarget",2),c([d()],le.prototype,"href",2),c([d()],le.prototype,"target",2),c([d({attribute:"data-target"})],le.prototype,"dataTarget",2),c([d()],le.prototype,"rel",2),c([d()],le.prototype,"tooltip",2),c([d()],le.prototype,"label",2),c([d({type:Boolean,attribute:"auto-click"})],le.prototype,"autoClick",2),c([d({type:Number,attribute:"auto-click-delay"})],le.prototype,"autoClickDelay",2),c([d({type:String,attribute:"loading-text"})],le.prototype,"loadingText",2),c([d({type:String,attribute:"loading-text-position"})],le.prototype,"loadingTextPosition",2),c([d({type:Boolean})],le.prototype,"loading",2),c([K("autoClick")],le.prototype,"handleAutoClickChange",1);var Me=le;le.define("zn-button");var Pe=class{constructor(i,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=i,t!==null&&this.t.add(t??i),this.l=r,this.o=a??this.o,this.callback=n,window.MutationObserver?(this.u=new MutationObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),i.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(i){this.value=this.callback?.(i,this.u)}hostConnected(){for(let i of this.t)this.observe(i)}hostDisconnected(){this.disconnect()}async hostUpdated(){let i=this.u.takeRecords();(i.length||!this.o&&this.i)&&this.handleChanges(i),this.i=!1}observe(i){this.t.add(i),this.u.observe(i,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}};var ss=class extends k{constructor(){super();this._resizeFrame=null;new Pe(this,{config:{childList:!0,subtree:!0,attributes:!0,characterData:!0},callback:()=>this.resize(),skipInitial:!0})}firstUpdated(t){super.firstUpdated(t),this.resize()}disconnectedCallback(){super.disconnectedCallback(),this._resizeFrame!==null&&(cancelAnimationFrame(this._resizeFrame),this._resizeFrame=null)}resize(){this._resizeFrame===null&&(this._resizeFrame=requestAnimationFrame(()=>{this._resizeFrame=null;let t=0;Array.from(this.children).forEach(n=>{t+=n.getBoundingClientRect().height});let r=t+"px";this.style.minHeight!==r&&(this.style.minHeight=r)}))}createRenderRoot(){return this}};var A5=ss;ss.define("zn-absolute-container");var xn=Math.min,Ji=Math.max,ql=Math.round,Il=Math.floor,wn=o=>({x:o,y:o}),M5={left:"right",right:"left",bottom:"top",top:"bottom"};function Cu(o,i,t){return Ji(o,xn(i,t))}function ga(o,i){return typeof o=="function"?o(i):o}function xo(o){return o.split("-")[0]}function ba(o){return o.split("-")[1]}function Eu(o){return o==="x"?"y":"x"}function Md(o){return o==="y"?"height":"width"}function zn(o){let i=o[0];return i==="t"||i==="b"?"y":"x"}function Ld(o){return Eu(zn(o))}function fv(o,i,t){t===void 0&&(t=!1);let r=ba(o),n=Ld(o),a=Md(n),s=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(s=Ll(s)),[s,Ll(s)]}function gv(o){let i=Ll(o);return[Ad(o),i,Ad(i)]}function Ad(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}var uv=["left","right"],mv=["right","left"],L5=["top","bottom"],q5=["bottom","top"];function I5(o,i,t){switch(o){case"top":case"bottom":return t?i?mv:uv:i?uv:mv;case"left":case"right":return i?L5:q5;default:return[]}}function bv(o,i,t,r){let n=ba(o),a=I5(xo(o),t==="start",r);return n&&(a=a.map(s=>s+"-"+n),i&&(a=a.concat(a.map(Ad)))),a}function Ll(o){let i=xo(o);return M5[i]+o.slice(i.length)}function D5(o){var i,t,r,n;return{top:(i=o.top)!=null?i:0,right:(t=o.right)!=null?t:0,bottom:(r=o.bottom)!=null?r:0,left:(n=o.left)!=null?n:0}}function Tu(o){return typeof o!="number"?D5(o):{top:o,right:o,bottom:o,left:o}}function va(o){let{x:i,y:t,width:r,height:n}=o;return{width:r,height:n,top:t,left:i,right:i+r,bottom:t+n,x:i,y:t}}function vv(o,i,t){let{reference:r,floating:n}=o,a=zn(i),s=Ld(i),l=Md(s),p=xo(i),h=a==="y",m=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,b=r[l]/2-n[l]/2,g;switch(p){case"top":g={x:m,y:r.y-n.height};break;case"bottom":g={x:m,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-n.width,y:f};break;default:g={x:r.x,y:r.y}}let v=ba(i);return v&&(g[s]+=b*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function yv(o,i){var t;i===void 0&&(i={});let{x:r,y:n,platform:a,rects:s,elements:l,strategy:p}=o,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:b=!1,padding:g=0}=ga(i,o),v=Tu(g),C=l[b?f==="floating"?"reference":"floating":f],T=va(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(C)))==null||t?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:m,strategy:p})),O=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,U=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),D=await(a.isElement==null?void 0:a.isElement(U))&&await(a.getScale==null?void 0:a.getScale(U))||{x:1,y:1},S=va(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:U,strategy:p}):O);return{top:(T.top-S.top+v.top)/D.y,bottom:(S.bottom-T.bottom+v.bottom)/D.y,left:(T.left-S.left+v.left)/D.x,right:(S.right-T.right+v.right)/D.x}}var R5=50,xv=async(o,i,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:yv},p=await(s.isRTL==null?void 0:s.isRTL(i)),h=await s.getElementRects({reference:o,floating:i,strategy:n}),{x:m,y:f}=vv(h,r,p),b=r,g=0,v={};for(let y=0;y<a.length;y++){let C=a[y];if(!C)continue;let{name:T,fn:O}=C,{x:U,y:D,data:S,reset:$}=await O({x:m,y:f,initialPlacement:r,placement:b,strategy:n,middlewareData:v,rects:h,platform:l,elements:{reference:o,floating:i}});m=U??m,f=D??f,v[T]={...v[T],...S},$&&g<R5&&(g++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(h=$.rects===!0?await s.getElementRects({reference:o,floating:i,strategy:n}):$.rects),{x:m,y:f}=vv(h,b,p)),y=-1)}return{x:m,y:f,placement:b,strategy:n,middlewareData:v}},wv=o=>({name:"arrow",options:o,async fn(i){let{x:t,y:r,placement:n,rects:a,platform:s,elements:l,middlewareData:p}=i,{element:h,padding:m=0}=ga(o,i)||{};if(h==null)return{};let f=Tu(m),b={x:t,y:r},g=Ld(n),v=Md(g),y=await s.getDimensions(h),C=g==="y",T=C?"top":"left",O=C?"bottom":"right",U=C?"clientHeight":"clientWidth",D=a.reference[v]+a.reference[g]-b[g]-a.floating[v],S=b[g]-a.reference[g],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h)),L=$?$[U]:0;(!L||!await(s.isElement==null?void 0:s.isElement($)))&&(L=l.floating[U]||a.floating[v]);let W=D/2-S/2,oe=L/2-y[v]/2-1,xe=xn(f[T],oe),Re=xn(f[O],oe),Ne=L-y[v]-Re,nt=L/2-y[v]/2+W,tr=Cu(xe,nt,Ne),Pr=!p.arrow&&ba(n)!=null&&nt!==tr&&a.reference[v]/2-(nt<xe?xe:Re)-y[v]/2<0,wr=Pr?nt<xe?nt-xe:nt-Ne:0;return{[g]:b[g]+wr,data:{[g]:tr,centerOffset:nt-tr-wr,...Pr&&{alignmentOffset:wr}},reset:Pr}}});var zv=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(i){var t,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:p,elements:h}=i,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...C}=ga(o,i);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let T=xo(n),O=zn(l),U=xo(l)===l,D=await(p.isRTL==null?void 0:p.isRTL(h.floating)),S=b||(U||!y?[Ll(l)]:gv(l)),$=v!=="none";!b&&$&&S.push(...bv(l,y,v,D));let L=[l,...S],W=await p.detectOverflow(i,C),oe=[],xe=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&oe.push(W[T]),f){let tr=fv(n,s,D);oe.push(W[tr[0]],W[tr[1]])}if(xe=[...xe,{placement:n,overflows:oe}],!oe.every(tr=>tr<=0)){var Re,Ne;let tr=(((Re=a.flip)==null?void 0:Re.index)||0)+1,Pr=L[tr];if(Pr&&(!(f==="alignment"?O!==zn(Pr):!1)||xe.every(rr=>zn(rr.placement)===O?rr.overflows[0]>0:!0)))return{data:{index:tr,overflows:xe},reset:{placement:Pr}};let wr=(Ne=xe.filter(Nt=>Nt.overflows[0]<=0).sort((Nt,rr)=>Nt.overflows[1]-rr.overflows[1])[0])==null?void 0:Ne.placement;if(!wr)switch(g){case"bestFit":{var nt;let Nt=(nt=xe.filter(rr=>{if($){let Lt=zn(rr.placement);return Lt===O||Lt==="y"}return!0}).map(rr=>[rr.placement,rr.overflows.filter(Lt=>Lt>0).reduce((Lt,uo)=>Lt+uo,0)]).sort((rr,Lt)=>rr[1]-Lt[1])[0])==null?void 0:nt[0];Nt&&(wr=Nt);break}case"initialPlacement":wr=l;break}if(n!==wr)return{reset:{placement:wr}}}return{}}}};var O5=new Set(["left","top"]);async function N5(o,i){let{placement:t,platform:r,elements:n}=o,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=xo(t),l=ba(t),p=zn(t)==="y",h=O5.has(s)?-1:1,m=a&&p?-1:1,f=ga(i,o),{mainAxis:b,crossAxis:g,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(g=l==="end"?v*-1:v),p?{x:g*m,y:b*h}:{x:b*h,y:g*m}}var _v=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(i){var t,r;let{x:n,y:a,placement:s,middlewareData:l}=i,p=await N5(i,o);return s===((t=l.offset)==null?void 0:t.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:n+p.x,y:a+p.y,data:{...p,placement:s}}}}},kv=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(i){let{x:t,y:r,placement:n,platform:a}=i,{mainAxis:s=!0,crossAxis:l=!1,limiter:p={fn:O=>{let{x:U,y:D}=O;return{x:U,y:D}}},...h}=ga(o,i),m={x:t,y:r},f=await a.detectOverflow(i,h),b=zn(n),g=Eu(b),v=m[g],y=m[b],C=(O,U)=>Cu(U+f[O==="y"?"top":"left"],U,U-f[O==="y"?"bottom":"right"]);s&&(v=C(g,v)),l&&(y=C(b,y));let T=p.fn({...i,[g]:v,[b]:y});return{...T,data:{x:T.x-t,y:T.y-r,enabled:{[g]:s,[b]:l}}}}}};var Sv=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(i){let{placement:t,rects:r,platform:n,elements:a}=i,{apply:s=()=>{},...l}=ga(o,i),p=await n.detectOverflow(i,l),h=xo(t),m=ba(t),f=zn(t)==="y",{width:b,height:g}=r.floating,v,y;h==="top"||h==="bottom"?(v=h,y=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,v=m==="end"?"top":"bottom");let C=g-p.top-p.bottom,T=b-p.left-p.right,O=xn(g-p[v],C),U=xn(b-p[y],T),D=i.middlewareData.shift,S=!D,$=O,L=U;D!=null&&D.enabled.x&&(L=T),D!=null&&D.enabled.y&&($=C),S&&!m&&(f?L=b-2*Ji(p.left,p.right):$=g-2*Ji(p.top,p.bottom)),await s({...i,availableWidth:L,availableHeight:$});let W=await n.getDimensions(a.floating);return b!==W.width||g!==W.height?{reset:{rects:!0}}:{}}}};function qd(){return typeof window<"u"}function xa(o){return Ev(o)?(o.nodeName||"").toLowerCase():"#document"}function Hr(o){var i;return(o==null||(i=o.ownerDocument)==null?void 0:i.defaultView)||window}function _n(o){var i;return(i=(Ev(o)?o.ownerDocument:o.document)||window.document)==null?void 0:i.documentElement}function Ev(o){return qd()?o instanceof Node||o instanceof Hr(o).Node:!1}function Zi(o){return qd()?o instanceof Element||o instanceof Hr(o).Element:!1}function Un(o){return qd()?o instanceof HTMLElement||o instanceof Hr(o).HTMLElement:!1}function Cv(o){return!qd()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Hr(o).ShadowRoot}function Dl(o){let{overflow:i,overflowX:t,overflowY:r,display:n}=en(o);return/auto|scroll|overlay|hidden|clip/.test(i+r+t)&&n!=="inline"&&n!=="contents"}function Tv(o){return/^(table|td|th)$/.test(xa(o))}function Rl(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}var P5=/transform|translate|scale|rotate|perspective|filter/,H5=/paint|layout|strict|content/,ya=o=>!!o&&o!=="none",$u;function cs(o){let i=Zi(o)?en(o):o;return ya(i.transform)||ya(i.translate)||ya(i.scale)||ya(i.rotate)||ya(i.perspective)||!Id()&&(ya(i.backdropFilter)||ya(i.filter))||P5.test(i.willChange||"")||H5.test(i.contain||"")}function $v(o){let i=wo(o);for(;Un(i)&&!ds(i);){if(cs(i))return i;if(Rl(i))return null;i=wo(i)}return null}function Id(){return $u==null&&($u=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$u}function ds(o){return/^(html|body|#document)$/.test(xa(o))}function en(o){return Hr(o).getComputedStyle(o)}function Ol(o){return Zi(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function wo(o){if(xa(o)==="html")return o;let i=o.assignedSlot||o.parentNode||Cv(o)&&o.host||_n(o);return Cv(i)?i.host:i}function Av(o){let i=wo(o);return ds(i)?(o.ownerDocument||o).body:Un(i)&&Dl(i)?i:Av(i)}function ls(o,i,t){var r;i===void 0&&(i=[]),t===void 0&&(t=!0);let n=Av(o),a=n===((r=o.ownerDocument)==null?void 0:r.body),s=Hr(n);if(a){let l=Dd(s);return i.concat(s,s.visualViewport||[],Dl(n)?n:[],l&&t?ls(l):[])}else return i.concat(n,ls(n,[],t))}function Dd(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function qv(o){let i=en(o),t=parseFloat(i.width)||0,r=parseFloat(i.height)||0,n=Un(o),a=n?o.offsetWidth:t,s=n?o.offsetHeight:r,l=ql(t)!==a||ql(r)!==s;return l&&(t=a,r=s),{width:t,height:r,$:l}}function Mu(o){return Zi(o)?o:o.contextElement}function ps(o){let i=Mu(o);if(!Un(i))return wn(1);let t=i.getBoundingClientRect(),{width:r,height:n,$:a}=qv(i),s=(a?ql(t.width):t.width)/r,l=(a?ql(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var F5=wn(0);function Iv(o){let i=Hr(o);return!Id()||!i.visualViewport?F5:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function B5(o,i,t){return i===void 0&&(i=!1),!!t&&i&&t===Hr(o)}function wa(o,i,t,r){i===void 0&&(i=!1),t===void 0&&(t=!1);let n=o.getBoundingClientRect(),a=Mu(o),s=wn(1);i&&(r?Zi(r)&&(s=ps(r)):s=ps(o));let l=B5(a,t,r)?Iv(a):wn(0),p=(n.left+l.x)/s.x,h=(n.top+l.y)/s.y,m=n.width/s.x,f=n.height/s.y;if(a&&r){let b=Hr(a),g=Zi(r)?Hr(r):r,v=b,y=Dd(v);for(;y&&g!==v;){let C=ps(y),T=y.getBoundingClientRect(),O=en(y),U=T.left+(y.clientLeft+parseFloat(O.paddingLeft))*C.x,D=T.top+(y.clientTop+parseFloat(O.paddingTop))*C.y;p*=C.x,h*=C.y,m*=C.x,f*=C.y,p+=U,h+=D,v=Hr(y),y=Dd(v)}}return va({width:m,height:f,x:p,y:h})}function Rd(o,i){let t=Ol(o).scrollLeft;return i?i.left+t:wa(_n(o)).left+t}function Dv(o,i){let t=o.getBoundingClientRect(),r=t.left+i.scrollLeft-Rd(o,t),n=t.top+i.scrollTop;return{x:r,y:n}}function V5(o){let{elements:i,rect:t,offsetParent:r,strategy:n}=o,a=n==="fixed",s=_n(r),l=i?Rl(i.floating):!1;if(r===s||l&&a)return t;let p={scrollLeft:0,scrollTop:0},h=wn(1),m=wn(0),f=Un(r);if((f||!a)&&((xa(r)!=="body"||Dl(s))&&(p=Ol(r)),f)){let g=wa(r);h=ps(r),m.x=g.x+r.clientLeft,m.y=g.y+r.clientTop}let b=s&&!f&&!a?Dv(s,p):wn(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-p.scrollLeft*h.x+m.x+b.x,y:t.y*h.y-p.scrollTop*h.y+m.y+b.y}}function U5(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function j5(o){let i=Ol(o),t=o.ownerDocument.body,r=Ji(o.scrollWidth,o.clientWidth,t.scrollWidth,t.clientWidth),n=Ji(o.scrollHeight,o.clientHeight,t.scrollHeight,t.clientHeight),a=-i.scrollLeft+Rd(o),s=-i.scrollTop;return en(t).direction==="rtl"&&(a+=Ji(o.clientWidth,t.clientWidth)-r),{width:r,height:n,x:a,y:s}}var G5=25;function W5(o,i,t){t===void 0&&(t="viewport");let r=t==="layoutViewport",n=Hr(o),a=_n(o),s=n.visualViewport,l=a.clientWidth,p=a.clientHeight,h=0,m=0;if(s){let b=!Id()||i==="fixed";r?b||(h=-s.offsetLeft,m=-s.offsetTop):(l=s.width,p=s.height,b&&(h=s.offsetLeft,m=s.offsetTop))}if(Rd(a)<=0){let b=a.ownerDocument,g=b.body,v=getComputedStyle(g),y=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,C=Math.abs(a.clientWidth-g.clientWidth-y),T=getComputedStyle(a).scrollbarGutter==="stable both-edges"?C/2:C;T<=G5&&(l-=T)}return{width:l,height:p,x:h,y:m}}function K5(o,i){let t=wa(o,!0,i==="fixed"),r=t.top+o.clientTop,n=t.left+o.clientLeft,a=ps(o),s=o.clientWidth*a.x,l=o.clientHeight*a.y,p=n*a.x,h=r*a.y;return{width:s,height:l,x:p,y:h}}function Mv(o,i,t){let r;if(i==="viewport"||i==="layoutViewport")r=W5(o,t,i);else if(i==="document")r=j5(_n(o));else if(Zi(i))r=K5(i,t);else{let n=Iv(o);r={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return va(r)}function Y5(o,i){let t=i.get(o);if(t)return t;let r=ls(o,[],!1).filter(l=>Zi(l)&&xa(l)!=="body"),n=null,a=en(o).position==="fixed",s=a?wo(o):o;for(;Zi(s)&&!ds(s);){let l=en(s),p=cs(s),h=n?n.position:a?"fixed":"";!p&&(h==="fixed"||h==="absolute"&&l.position==="static")?r=r.filter(f=>f!==s):n=l,s=wo(s)}return i.set(o,r),r}function Q5(o){let{element:i,boundary:t,rootBoundary:r,strategy:n}=o,s=[...t==="clippingAncestors"?Rl(i)?[]:Y5(i,this._c):[].concat(t),r],l=Mv(i,s[0],n),p=l.top,h=l.right,m=l.bottom,f=l.left;for(let b=1;b<s.length;b++){let g=Mv(i,s[b],n);p=Ji(g.top,p),h=xn(g.right,h),m=xn(g.bottom,m),f=Ji(g.left,f)}return{width:h-f,height:m-p,x:f,y:p}}function X5(o){let{width:i,height:t}=qv(o);return{width:i,height:t}}function J5(o,i,t){let r=Un(i),n=_n(i),a=t==="fixed",s=wa(o,!0,a,i),l={scrollLeft:0,scrollTop:0},p=wn(0);if((r||!a)&&((xa(i)!=="body"||Dl(n))&&(l=Ol(i)),r)){let b=wa(i,!0,a,i);p.x=b.x+i.clientLeft,p.y=b.y+i.clientTop}!r&&n&&(p.x=Rd(n));let h=n&&!r&&!a?Dv(n,l):wn(0),m=s.left+l.scrollLeft-p.x-h.x,f=s.top+l.scrollTop-p.y-h.y;return{x:m,y:f,width:s.width,height:s.height}}function Au(o){return en(o).position==="static"}function Lv(o,i){if(!Un(o)||en(o).position==="fixed")return null;if(i)return i(o);let t=o.offsetParent;return _n(o)===t&&(t=t.ownerDocument.body),t}function Rv(o,i){let t=Hr(o);if(Rl(o))return t;if(!Un(o)){let n=wo(o);for(;n&&!ds(n);){if(Zi(n)&&!Au(n))return n;n=wo(n)}return t}let r=Lv(o,i);for(;r&&Tv(r)&&Au(r);)r=Lv(r,i);return r&&ds(r)&&Au(r)&&!cs(r)?t:r||$v(o)||t}var Z5=async function(o){let i=this.getOffsetParent||Rv,t=this.getDimensions,r=await t(o.floating);return{reference:J5(o.reference,await i(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function e4(o){return en(o).direction==="rtl"}var Nl={convertOffsetParentRelativeRectToViewportRelativeRect:V5,getDocumentElement:_n,getClippingRect:Q5,getOffsetParent:Rv,getElementRects:Z5,getClientRects:U5,getDimensions:X5,getScale:ps,isElement:Zi,isRTL:e4};function Ov(o,i){return o.x===i.x&&o.y===i.y&&o.width===i.width&&o.height===i.height}function t4(o,i,t){let r=null,n,a=_n(o);function s(){var m;clearTimeout(n),(m=r)==null||m.disconnect(),r=null}function l(m,f){m===void 0&&(m=!1),f===void 0&&(f=1),s();let b=o.getBoundingClientRect(),{left:g,top:v,width:y,height:C}=b;if(m||i(),!y||!C)return;let T=Il(v),O=Il(a.clientWidth-(g+y)),U=Il(a.clientHeight-(v+C)),D=Il(g),$={rootMargin:-T+"px "+-O+"px "+-U+"px "+-D+"px",threshold:Ji(0,xn(1,f))||1},L=!0;function W(oe){let xe=oe[0].intersectionRatio;if(!Ov(b,o.getBoundingClientRect()))return l();if(xe!==f){if(!L)return l();xe?l(!1,xe):n=setTimeout(()=>{l(!1,1e-7)},1e3)}L=!1}try{r=new IntersectionObserver(W,{...$,root:a.ownerDocument})}catch{r=new IntersectionObserver(W,$)}r.observe(o)}let p=Hr(o),h=()=>l(t);return p.addEventListener("resize",h),l(!0),()=>{p.removeEventListener("resize",h),s()}}function Od(o,i,t,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,h=Mu(o),m=n||a?[...h?ls(h):[],...i?ls(i):[]]:[];m.forEach(T=>{n&&T.addEventListener("scroll",t),a&&T.addEventListener("resize",t)});let f=h&&l?t4(h,t,a):null,b=-1,g=null;s&&(g=new ResizeObserver(T=>{let[O]=T;O&&O.target===h&&g&&i&&(g.unobserve(i),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var U;(U=g)==null||U.observe(i)})),t()}),h&&!p&&g.observe(h),i&&g.observe(i));let v,y=p?wa(o):null;p&&C();function C(){let T=wa(o);y&&!Ov(y,T)&&t(),y=T,v=requestAnimationFrame(C)}return t(),()=>{var T;m.forEach(O=>{n&&O.removeEventListener("scroll",t),a&&O.removeEventListener("resize",t)}),f?.(),(T=g)==null||T.disconnect(),g=null,p&&cancelAnimationFrame(v)}}var Nd=_v;var Pd=kv,Hd=zv,Pl=Sv;var Nv=wv;var Fd=(o,i,t)=>{let r=new Map,n=t??{},a={...Nl,...n.platform,_c:r};return xv(o,i,{...n,platform:a})};function Pv(o){return r4(o)}function Lu(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function r4(o){for(let i=o;i;i=Lu(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=Lu(o);i;i=Lu(i)){if(!(i instanceof Element))continue;let t=getComputedStyle(i);if(t.display!=="contents"&&(t.position!=="static"||cs(t)||i.tagName==="BODY"))return i}return null}var Hv=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--arrow-color:rgb(var(--zn-color-text));--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * 0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}.popup{position:absolute;isolation:isolate;margin:0;border:0;padding:0;background:transparent;overflow:visible;max-width:var(--auto-size-available-width,none)}.popup--fixed{position:fixed}.popup:not(.popup--active){display:none}.popup__arrow{position:absolute;width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);rotate:45deg;background:var(--arrow-color);z-index:-1}.popup{}.popup-hover-bridge:not(.popup-hover-bridge--visible){display:none}.popup-hover-bridge{position:fixed;z-index:calc(var(--zn-z-index-dropdown) - 1);top:0;right:0;bottom:0;left:0;clip-path:polygon(var(--hover-bridge-top-left-x,0) var(--hover-bridge-top-left-y,0),var(--hover-bridge-top-right-x,0) var(--hover-bridge-top-right-y,0),var(--hover-bridge-bottom-right-x,0) var(--hover-bridge-bottom-right-y,0),var(--hover-bridge-bottom-left-x,0) var(--hover-bridge-bottom-left-y,0))}`;function i4(o){return o!==null&&typeof o=="object"&&"getBoundingClientRect"in o&&("contextElement"in o?o instanceof Element:!0)}var Oe=class extends k{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="fixed";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0;this.hoverBridge=!1;this.handleAnchorHover=()=>{this.active||this.start()};this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){let t=this.anchorEl.getBoundingClientRect(),r=this.popup.getBoundingClientRect(),n=this.placement.includes("top")||this.placement.includes("bottom"),a,s,l,p,h,m,f,b;n?t.top<r.top?(a=t.left,s=t.bottom,l=t.right,p=t.bottom,h=r.left,m=r.top,f=r.right,b=r.top):(a=r.left,s=r.bottom,l=r.right,p=r.bottom,h=t.left,m=t.top,f=t.right,b=t.top):t.left<r.left?(a=t.right,s=t.top,l=r.left,p=r.top,h=t.right,m=t.bottom,f=r.left,b=r.bottom):(a=r.right,s=r.top,l=t.left,p=t.top,h=r.right,m=r.bottom,f=t.left,b=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${a}px`),this.style.setProperty("--hover-bridge-top-left-y",`${s}px`),this.style.setProperty("--hover-bridge-top-right-x",`${l}px`),this.style.setProperty("--hover-bridge-top-right-y",`${p}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${h}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${m}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${f}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${b}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.active&&this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||i4(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&!this.active&&this.anchorEl instanceof Element&&(this.anchorEl.removeEventListener("mouseover",this.handleAnchorHover),this.anchorEl.addEventListener("mouseover",this.handleAnchorHover))}start(){this.anchorEl&&(this.cleanup?.(),this.cleanup=Od(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),this.popup.hidePopover(),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;let t=[Nd({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Pl({apply:({rects:n})=>{let a=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.minWidth=a?`${n.reference.width}px`:"",this.popup.style.minHeight=s?`${n.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(Hd({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(Pd({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Pl({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:n,availableHeight:a})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${a}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${n}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(Nv({element:this.arrowEl,padding:this.arrowPadding}));let r=this.strategy==="absolute"?n=>Nl.getOffsetParent(n,Pv):Nl.getOffsetParent;Fd(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...Nl,getOffsetParent:r}}).then(({x:n,y:a,middlewareData:s,placement:l})=>{let p={top:"bottom",right:"left",bottom:"top",left:"right"}[l.split("-")[0]];if(this.setAttribute("data-current-placement",l),Object.assign(this.popup.style,{left:`${n}px`,top:`${a}px`}),!!this.popup?.isConnected&&(this.popup.matches(":popover-open")||this.popup.showPopover(),this.arrow)){let h=s.arrow.x,m=s.arrow.y,f="",b="",g="",v;this.arrowPlacement==="start"?(f=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",b="",v=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""):this.arrowPlacement==="end"?(b=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",v="",g=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""):this.arrowPlacement==="center"?(v=typeof h=="number"?"calc(50% - var(--arrow-size-diagonal))":"",f=typeof m=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(v=typeof h=="number"?`${h}px`:"",f=typeof m=="number"?`${m}px`:""),Object.assign(this.arrowEl.style,{top:f,right:b,bottom:g,left:v,[p]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge())}render(){return u`
|
|
139
|
+
`:null}`}};le.styles=[z($d),z(hv)],le.dependencies={"zn-tooltip":gi,"zn-icon":ne},c([F(".button")],le.prototype,"button",2),c([ts(".loading-countdown")],le.prototype,"countdownContainer",2),c([d({})],le.prototype,"color",2),c([d({attribute:"hover-color"})],le.prototype,"hoverColor",2),c([d({type:Boolean})],le.prototype,"text",2),c([d({type:Boolean})],le.prototype,"outline",2),c([d({type:Boolean})],le.prototype,"disabled",2),c([d({type:Boolean})],le.prototype,"grow",2),c([d({type:Boolean})],le.prototype,"square",2),c([d({attribute:"icon-button",converter:{fromAttribute:t=>t==="small"||t==="round"?t:t!==null,toAttribute:t=>t==="small"||t==="round"?t:t?"":null}})],le.prototype,"iconButton",2),c([d({type:Boolean})],le.prototype,"plain",2),c([d({type:Boolean,attribute:"no-hover"})],le.prototype,"noHover",2),c([d({type:Boolean,reflect:!0})],le.prototype,"pill",2),c([d({type:Boolean,attribute:"panel-bg"})],le.prototype,"panelBackground",2),c([d({attribute:"dropdown-closer",type:Boolean})],le.prototype,"dropdownCloser",2),c([d({type:Number})],le.prototype,"notification",2),c([d({attribute:"muted-notifications",type:Boolean})],le.prototype,"mutedNotifications",2),c([d()],le.prototype,"verticalAlign",2),c([d()],le.prototype,"content",2),c([d()],le.prototype,"icon",2),c([d()],le.prototype,"gaid",2),c([d({attribute:"icon-position"})],le.prototype,"iconPosition",2),c([d({attribute:"icon-size"})],le.prototype,"iconSize",2),c([d({attribute:"icon-color"})],le.prototype,"iconColor",2),c([d({attribute:"icon-fill"})],le.prototype,"iconFill",2),c([d({attribute:"icon-library"})],le.prototype,"iconLibrary",2),c([d()],le.prototype,"type",2),c([d()],le.prototype,"name",2),c([d()],le.prototype,"value",2),c([d()],le.prototype,"form",2),c([d({attribute:"formaction"})],le.prototype,"formAction",2),c([d({attribute:"formenctype"})],le.prototype,"formEnctype",2),c([d({attribute:"formmethod"})],le.prototype,"formMethod",2),c([d({attribute:"formnovalidate",type:Boolean})],le.prototype,"formNoValidate",2),c([d({attribute:"formtarget"})],le.prototype,"formTarget",2),c([d()],le.prototype,"href",2),c([d()],le.prototype,"target",2),c([d({attribute:"data-target"})],le.prototype,"dataTarget",2),c([d()],le.prototype,"rel",2),c([d()],le.prototype,"tooltip",2),c([d()],le.prototype,"label",2),c([d({type:Boolean,attribute:"auto-click"})],le.prototype,"autoClick",2),c([d({type:Number,attribute:"auto-click-delay"})],le.prototype,"autoClickDelay",2),c([d({type:String,attribute:"loading-text"})],le.prototype,"loadingText",2),c([d({type:String,attribute:"loading-text-position"})],le.prototype,"loadingTextPosition",2),c([d({type:Boolean})],le.prototype,"loading",2),c([K("autoClick")],le.prototype,"handleAutoClickChange",1);var Me=le;le.define("zn-button");var Pe=class{constructor(i,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=i,t!==null&&this.t.add(t??i),this.l=r,this.o=a??this.o,this.callback=n,window.MutationObserver?(this.u=new MutationObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),i.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(i){this.value=this.callback?.(i,this.u)}hostConnected(){for(let i of this.t)this.observe(i)}hostDisconnected(){this.disconnect()}async hostUpdated(){let i=this.u.takeRecords();(i.length||!this.o&&this.i)&&this.handleChanges(i),this.i=!1}observe(i){this.t.add(i),this.u.observe(i,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}};var ss=class extends k{constructor(){super();this._resizeFrame=null;new Pe(this,{config:{childList:!0,subtree:!0,attributes:!0,characterData:!0},callback:()=>this.resize(),skipInitial:!0})}firstUpdated(t){super.firstUpdated(t),this.resize()}disconnectedCallback(){super.disconnectedCallback(),this._resizeFrame!==null&&(cancelAnimationFrame(this._resizeFrame),this._resizeFrame=null)}resize(){this._resizeFrame===null&&(this._resizeFrame=requestAnimationFrame(()=>{this._resizeFrame=null;let t=0;Array.from(this.children).forEach(n=>{t+=n.getBoundingClientRect().height});let r=t+"px";this.style.minHeight!==r&&(this.style.minHeight=r)}))}createRenderRoot(){return this}};var A5=ss;ss.define("zn-absolute-container");var xn=Math.min,Ji=Math.max,ql=Math.round,Il=Math.floor,wn=o=>({x:o,y:o}),M5={left:"right",right:"left",bottom:"top",top:"bottom"};function Cu(o,i,t){return Ji(o,xn(i,t))}function ga(o,i){return typeof o=="function"?o(i):o}function xo(o){return o.split("-")[0]}function ba(o){return o.split("-")[1]}function Eu(o){return o==="x"?"y":"x"}function Md(o){return o==="y"?"height":"width"}function zn(o){let i=o[0];return i==="t"||i==="b"?"y":"x"}function Ld(o){return Eu(zn(o))}function fv(o,i,t){t===void 0&&(t=!1);let r=ba(o),n=Ld(o),a=Md(n),s=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(s=Ll(s)),[s,Ll(s)]}function gv(o){let i=Ll(o);return[Ad(o),i,Ad(i)]}function Ad(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}var uv=["left","right"],mv=["right","left"],L5=["top","bottom"],q5=["bottom","top"];function I5(o,i,t){switch(o){case"top":case"bottom":return t?i?mv:uv:i?uv:mv;case"left":case"right":return i?L5:q5;default:return[]}}function bv(o,i,t,r){let n=ba(o),a=I5(xo(o),t==="start",r);return n&&(a=a.map(s=>s+"-"+n),i&&(a=a.concat(a.map(Ad)))),a}function Ll(o){let i=xo(o);return M5[i]+o.slice(i.length)}function D5(o){var i,t,r,n;return{top:(i=o.top)!=null?i:0,right:(t=o.right)!=null?t:0,bottom:(r=o.bottom)!=null?r:0,left:(n=o.left)!=null?n:0}}function Tu(o){return typeof o!="number"?D5(o):{top:o,right:o,bottom:o,left:o}}function va(o){let{x:i,y:t,width:r,height:n}=o;return{width:r,height:n,top:t,left:i,right:i+r,bottom:t+n,x:i,y:t}}function vv(o,i,t){let{reference:r,floating:n}=o,a=zn(i),s=Ld(i),l=Md(s),p=xo(i),h=a==="y",m=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,b=r[l]/2-n[l]/2,g;switch(p){case"top":g={x:m,y:r.y-n.height};break;case"bottom":g={x:m,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-n.width,y:f};break;default:g={x:r.x,y:r.y}}let v=ba(i);return v&&(g[s]+=b*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function yv(o,i){var t;i===void 0&&(i={});let{x:r,y:n,platform:a,rects:s,elements:l,strategy:p}=o,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:b=!1,padding:g=0}=ga(i,o),v=Tu(g),C=l[b?f==="floating"?"reference":"floating":f],T=va(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(C)))==null||t?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:m,strategy:p})),O=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,U=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),D=await(a.isElement==null?void 0:a.isElement(U))&&await(a.getScale==null?void 0:a.getScale(U))||{x:1,y:1},S=va(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:U,strategy:p}):O);return{top:(T.top-S.top+v.top)/D.y,bottom:(S.bottom-T.bottom+v.bottom)/D.y,left:(T.left-S.left+v.left)/D.x,right:(S.right-T.right+v.right)/D.x}}var R5=50,xv=async(o,i,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:yv},p=await(s.isRTL==null?void 0:s.isRTL(i)),h=await s.getElementRects({reference:o,floating:i,strategy:n}),{x:m,y:f}=vv(h,r,p),b=r,g=0,v={};for(let y=0;y<a.length;y++){let C=a[y];if(!C)continue;let{name:T,fn:O}=C,{x:U,y:D,data:S,reset:$}=await O({x:m,y:f,initialPlacement:r,placement:b,strategy:n,middlewareData:v,rects:h,platform:l,elements:{reference:o,floating:i}});m=U??m,f=D??f,v[T]={...v[T],...S},$&&g<R5&&(g++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(h=$.rects===!0?await s.getElementRects({reference:o,floating:i,strategy:n}):$.rects),{x:m,y:f}=vv(h,b,p)),y=-1)}return{x:m,y:f,placement:b,strategy:n,middlewareData:v}},wv=o=>({name:"arrow",options:o,async fn(i){let{x:t,y:r,placement:n,rects:a,platform:s,elements:l,middlewareData:p}=i,{element:h,padding:m=0}=ga(o,i)||{};if(h==null)return{};let f=Tu(m),b={x:t,y:r},g=Ld(n),v=Md(g),y=await s.getDimensions(h),C=g==="y",T=C?"top":"left",O=C?"bottom":"right",U=C?"clientHeight":"clientWidth",D=a.reference[v]+a.reference[g]-b[g]-a.floating[v],S=b[g]-a.reference[g],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h)),L=$?$[U]:0;(!L||!await(s.isElement==null?void 0:s.isElement($)))&&(L=l.floating[U]||a.floating[v]);let W=D/2-S/2,oe=L/2-y[v]/2-1,xe=xn(f[T],oe),Re=xn(f[O],oe),Ne=L-y[v]-Re,ot=L/2-y[v]/2+W,tr=Cu(xe,ot,Ne),Pr=!p.arrow&&ba(n)!=null&&ot!==tr&&a.reference[v]/2-(ot<xe?xe:Re)-y[v]/2<0,wr=Pr?ot<xe?ot-xe:ot-Ne:0;return{[g]:b[g]+wr,data:{[g]:tr,centerOffset:ot-tr-wr,...Pr&&{alignmentOffset:wr}},reset:Pr}}});var zv=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(i){var t,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:p,elements:h}=i,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...C}=ga(o,i);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let T=xo(n),O=zn(l),U=xo(l)===l,D=await(p.isRTL==null?void 0:p.isRTL(h.floating)),S=b||(U||!y?[Ll(l)]:gv(l)),$=v!=="none";!b&&$&&S.push(...bv(l,y,v,D));let L=[l,...S],W=await p.detectOverflow(i,C),oe=[],xe=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&oe.push(W[T]),f){let tr=fv(n,s,D);oe.push(W[tr[0]],W[tr[1]])}if(xe=[...xe,{placement:n,overflows:oe}],!oe.every(tr=>tr<=0)){var Re,Ne;let tr=(((Re=a.flip)==null?void 0:Re.index)||0)+1,Pr=L[tr];if(Pr&&(!(f==="alignment"?O!==zn(Pr):!1)||xe.every(rr=>zn(rr.placement)===O?rr.overflows[0]>0:!0)))return{data:{index:tr,overflows:xe},reset:{placement:Pr}};let wr=(Ne=xe.filter(Nt=>Nt.overflows[0]<=0).sort((Nt,rr)=>Nt.overflows[1]-rr.overflows[1])[0])==null?void 0:Ne.placement;if(!wr)switch(g){case"bestFit":{var ot;let Nt=(ot=xe.filter(rr=>{if($){let Lt=zn(rr.placement);return Lt===O||Lt==="y"}return!0}).map(rr=>[rr.placement,rr.overflows.filter(Lt=>Lt>0).reduce((Lt,uo)=>Lt+uo,0)]).sort((rr,Lt)=>rr[1]-Lt[1])[0])==null?void 0:ot[0];Nt&&(wr=Nt);break}case"initialPlacement":wr=l;break}if(n!==wr)return{reset:{placement:wr}}}return{}}}};var O5=new Set(["left","top"]);async function N5(o,i){let{placement:t,platform:r,elements:n}=o,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=xo(t),l=ba(t),p=zn(t)==="y",h=O5.has(s)?-1:1,m=a&&p?-1:1,f=ga(i,o),{mainAxis:b,crossAxis:g,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(g=l==="end"?v*-1:v),p?{x:g*m,y:b*h}:{x:b*h,y:g*m}}var _v=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(i){var t,r;let{x:n,y:a,placement:s,middlewareData:l}=i,p=await N5(i,o);return s===((t=l.offset)==null?void 0:t.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:n+p.x,y:a+p.y,data:{...p,placement:s}}}}},kv=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(i){let{x:t,y:r,placement:n,platform:a}=i,{mainAxis:s=!0,crossAxis:l=!1,limiter:p={fn:O=>{let{x:U,y:D}=O;return{x:U,y:D}}},...h}=ga(o,i),m={x:t,y:r},f=await a.detectOverflow(i,h),b=zn(n),g=Eu(b),v=m[g],y=m[b],C=(O,U)=>Cu(U+f[O==="y"?"top":"left"],U,U-f[O==="y"?"bottom":"right"]);s&&(v=C(g,v)),l&&(y=C(b,y));let T=p.fn({...i,[g]:v,[b]:y});return{...T,data:{x:T.x-t,y:T.y-r,enabled:{[g]:s,[b]:l}}}}}};var Sv=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(i){let{placement:t,rects:r,platform:n,elements:a}=i,{apply:s=()=>{},...l}=ga(o,i),p=await n.detectOverflow(i,l),h=xo(t),m=ba(t),f=zn(t)==="y",{width:b,height:g}=r.floating,v,y;h==="top"||h==="bottom"?(v=h,y=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,v=m==="end"?"top":"bottom");let C=g-p.top-p.bottom,T=b-p.left-p.right,O=xn(g-p[v],C),U=xn(b-p[y],T),D=i.middlewareData.shift,S=!D,$=O,L=U;D!=null&&D.enabled.x&&(L=T),D!=null&&D.enabled.y&&($=C),S&&!m&&(f?L=b-2*Ji(p.left,p.right):$=g-2*Ji(p.top,p.bottom)),await s({...i,availableWidth:L,availableHeight:$});let W=await n.getDimensions(a.floating);return b!==W.width||g!==W.height?{reset:{rects:!0}}:{}}}};function qd(){return typeof window<"u"}function xa(o){return Ev(o)?(o.nodeName||"").toLowerCase():"#document"}function Hr(o){var i;return(o==null||(i=o.ownerDocument)==null?void 0:i.defaultView)||window}function _n(o){var i;return(i=(Ev(o)?o.ownerDocument:o.document)||window.document)==null?void 0:i.documentElement}function Ev(o){return qd()?o instanceof Node||o instanceof Hr(o).Node:!1}function Zi(o){return qd()?o instanceof Element||o instanceof Hr(o).Element:!1}function Un(o){return qd()?o instanceof HTMLElement||o instanceof Hr(o).HTMLElement:!1}function Cv(o){return!qd()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Hr(o).ShadowRoot}function Dl(o){let{overflow:i,overflowX:t,overflowY:r,display:n}=en(o);return/auto|scroll|overlay|hidden|clip/.test(i+r+t)&&n!=="inline"&&n!=="contents"}function Tv(o){return/^(table|td|th)$/.test(xa(o))}function Rl(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}var P5=/transform|translate|scale|rotate|perspective|filter/,H5=/paint|layout|strict|content/,ya=o=>!!o&&o!=="none",$u;function cs(o){let i=Zi(o)?en(o):o;return ya(i.transform)||ya(i.translate)||ya(i.scale)||ya(i.rotate)||ya(i.perspective)||!Id()&&(ya(i.backdropFilter)||ya(i.filter))||P5.test(i.willChange||"")||H5.test(i.contain||"")}function $v(o){let i=wo(o);for(;Un(i)&&!ds(i);){if(cs(i))return i;if(Rl(i))return null;i=wo(i)}return null}function Id(){return $u==null&&($u=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$u}function ds(o){return/^(html|body|#document)$/.test(xa(o))}function en(o){return Hr(o).getComputedStyle(o)}function Ol(o){return Zi(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function wo(o){if(xa(o)==="html")return o;let i=o.assignedSlot||o.parentNode||Cv(o)&&o.host||_n(o);return Cv(i)?i.host:i}function Av(o){let i=wo(o);return ds(i)?(o.ownerDocument||o).body:Un(i)&&Dl(i)?i:Av(i)}function ls(o,i,t){var r;i===void 0&&(i=[]),t===void 0&&(t=!0);let n=Av(o),a=n===((r=o.ownerDocument)==null?void 0:r.body),s=Hr(n);if(a){let l=Dd(s);return i.concat(s,s.visualViewport||[],Dl(n)?n:[],l&&t?ls(l):[])}else return i.concat(n,ls(n,[],t))}function Dd(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function qv(o){let i=en(o),t=parseFloat(i.width)||0,r=parseFloat(i.height)||0,n=Un(o),a=n?o.offsetWidth:t,s=n?o.offsetHeight:r,l=ql(t)!==a||ql(r)!==s;return l&&(t=a,r=s),{width:t,height:r,$:l}}function Mu(o){return Zi(o)?o:o.contextElement}function ps(o){let i=Mu(o);if(!Un(i))return wn(1);let t=i.getBoundingClientRect(),{width:r,height:n,$:a}=qv(i),s=(a?ql(t.width):t.width)/r,l=(a?ql(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var F5=wn(0);function Iv(o){let i=Hr(o);return!Id()||!i.visualViewport?F5:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function B5(o,i,t){return i===void 0&&(i=!1),!!t&&i&&t===Hr(o)}function wa(o,i,t,r){i===void 0&&(i=!1),t===void 0&&(t=!1);let n=o.getBoundingClientRect(),a=Mu(o),s=wn(1);i&&(r?Zi(r)&&(s=ps(r)):s=ps(o));let l=B5(a,t,r)?Iv(a):wn(0),p=(n.left+l.x)/s.x,h=(n.top+l.y)/s.y,m=n.width/s.x,f=n.height/s.y;if(a&&r){let b=Hr(a),g=Zi(r)?Hr(r):r,v=b,y=Dd(v);for(;y&&g!==v;){let C=ps(y),T=y.getBoundingClientRect(),O=en(y),U=T.left+(y.clientLeft+parseFloat(O.paddingLeft))*C.x,D=T.top+(y.clientTop+parseFloat(O.paddingTop))*C.y;p*=C.x,h*=C.y,m*=C.x,f*=C.y,p+=U,h+=D,v=Hr(y),y=Dd(v)}}return va({width:m,height:f,x:p,y:h})}function Rd(o,i){let t=Ol(o).scrollLeft;return i?i.left+t:wa(_n(o)).left+t}function Dv(o,i){let t=o.getBoundingClientRect(),r=t.left+i.scrollLeft-Rd(o,t),n=t.top+i.scrollTop;return{x:r,y:n}}function V5(o){let{elements:i,rect:t,offsetParent:r,strategy:n}=o,a=n==="fixed",s=_n(r),l=i?Rl(i.floating):!1;if(r===s||l&&a)return t;let p={scrollLeft:0,scrollTop:0},h=wn(1),m=wn(0),f=Un(r);if((f||!a)&&((xa(r)!=="body"||Dl(s))&&(p=Ol(r)),f)){let g=wa(r);h=ps(r),m.x=g.x+r.clientLeft,m.y=g.y+r.clientTop}let b=s&&!f&&!a?Dv(s,p):wn(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-p.scrollLeft*h.x+m.x+b.x,y:t.y*h.y-p.scrollTop*h.y+m.y+b.y}}function U5(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function j5(o){let i=Ol(o),t=o.ownerDocument.body,r=Ji(o.scrollWidth,o.clientWidth,t.scrollWidth,t.clientWidth),n=Ji(o.scrollHeight,o.clientHeight,t.scrollHeight,t.clientHeight),a=-i.scrollLeft+Rd(o),s=-i.scrollTop;return en(t).direction==="rtl"&&(a+=Ji(o.clientWidth,t.clientWidth)-r),{width:r,height:n,x:a,y:s}}var G5=25;function W5(o,i,t){t===void 0&&(t="viewport");let r=t==="layoutViewport",n=Hr(o),a=_n(o),s=n.visualViewport,l=a.clientWidth,p=a.clientHeight,h=0,m=0;if(s){let b=!Id()||i==="fixed";r?b||(h=-s.offsetLeft,m=-s.offsetTop):(l=s.width,p=s.height,b&&(h=s.offsetLeft,m=s.offsetTop))}if(Rd(a)<=0){let b=a.ownerDocument,g=b.body,v=getComputedStyle(g),y=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,C=Math.abs(a.clientWidth-g.clientWidth-y),T=getComputedStyle(a).scrollbarGutter==="stable both-edges"?C/2:C;T<=G5&&(l-=T)}return{width:l,height:p,x:h,y:m}}function K5(o,i){let t=wa(o,!0,i==="fixed"),r=t.top+o.clientTop,n=t.left+o.clientLeft,a=ps(o),s=o.clientWidth*a.x,l=o.clientHeight*a.y,p=n*a.x,h=r*a.y;return{width:s,height:l,x:p,y:h}}function Mv(o,i,t){let r;if(i==="viewport"||i==="layoutViewport")r=W5(o,t,i);else if(i==="document")r=j5(_n(o));else if(Zi(i))r=K5(i,t);else{let n=Iv(o);r={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return va(r)}function Y5(o,i){let t=i.get(o);if(t)return t;let r=ls(o,[],!1).filter(l=>Zi(l)&&xa(l)!=="body"),n=null,a=en(o).position==="fixed",s=a?wo(o):o;for(;Zi(s)&&!ds(s);){let l=en(s),p=cs(s),h=n?n.position:a?"fixed":"";!p&&(h==="fixed"||h==="absolute"&&l.position==="static")?r=r.filter(f=>f!==s):n=l,s=wo(s)}return i.set(o,r),r}function Q5(o){let{element:i,boundary:t,rootBoundary:r,strategy:n}=o,s=[...t==="clippingAncestors"?Rl(i)?[]:Y5(i,this._c):[].concat(t),r],l=Mv(i,s[0],n),p=l.top,h=l.right,m=l.bottom,f=l.left;for(let b=1;b<s.length;b++){let g=Mv(i,s[b],n);p=Ji(g.top,p),h=xn(g.right,h),m=xn(g.bottom,m),f=Ji(g.left,f)}return{width:h-f,height:m-p,x:f,y:p}}function X5(o){let{width:i,height:t}=qv(o);return{width:i,height:t}}function J5(o,i,t){let r=Un(i),n=_n(i),a=t==="fixed",s=wa(o,!0,a,i),l={scrollLeft:0,scrollTop:0},p=wn(0);if((r||!a)&&((xa(i)!=="body"||Dl(n))&&(l=Ol(i)),r)){let b=wa(i,!0,a,i);p.x=b.x+i.clientLeft,p.y=b.y+i.clientTop}!r&&n&&(p.x=Rd(n));let h=n&&!r&&!a?Dv(n,l):wn(0),m=s.left+l.scrollLeft-p.x-h.x,f=s.top+l.scrollTop-p.y-h.y;return{x:m,y:f,width:s.width,height:s.height}}function Au(o){return en(o).position==="static"}function Lv(o,i){if(!Un(o)||en(o).position==="fixed")return null;if(i)return i(o);let t=o.offsetParent;return _n(o)===t&&(t=t.ownerDocument.body),t}function Rv(o,i){let t=Hr(o);if(Rl(o))return t;if(!Un(o)){let n=wo(o);for(;n&&!ds(n);){if(Zi(n)&&!Au(n))return n;n=wo(n)}return t}let r=Lv(o,i);for(;r&&Tv(r)&&Au(r);)r=Lv(r,i);return r&&ds(r)&&Au(r)&&!cs(r)?t:r||$v(o)||t}var Z5=async function(o){let i=this.getOffsetParent||Rv,t=this.getDimensions,r=await t(o.floating);return{reference:J5(o.reference,await i(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function e4(o){return en(o).direction==="rtl"}var Nl={convertOffsetParentRelativeRectToViewportRelativeRect:V5,getDocumentElement:_n,getClippingRect:Q5,getOffsetParent:Rv,getElementRects:Z5,getClientRects:U5,getDimensions:X5,getScale:ps,isElement:Zi,isRTL:e4};function Ov(o,i){return o.x===i.x&&o.y===i.y&&o.width===i.width&&o.height===i.height}function t4(o,i,t){let r=null,n,a=_n(o);function s(){var m;clearTimeout(n),(m=r)==null||m.disconnect(),r=null}function l(m,f){m===void 0&&(m=!1),f===void 0&&(f=1),s();let b=o.getBoundingClientRect(),{left:g,top:v,width:y,height:C}=b;if(m||i(),!y||!C)return;let T=Il(v),O=Il(a.clientWidth-(g+y)),U=Il(a.clientHeight-(v+C)),D=Il(g),$={rootMargin:-T+"px "+-O+"px "+-U+"px "+-D+"px",threshold:Ji(0,xn(1,f))||1},L=!0;function W(oe){let xe=oe[0].intersectionRatio;if(!Ov(b,o.getBoundingClientRect()))return l();if(xe!==f){if(!L)return l();xe?l(!1,xe):n=setTimeout(()=>{l(!1,1e-7)},1e3)}L=!1}try{r=new IntersectionObserver(W,{...$,root:a.ownerDocument})}catch{r=new IntersectionObserver(W,$)}r.observe(o)}let p=Hr(o),h=()=>l(t);return p.addEventListener("resize",h),l(!0),()=>{p.removeEventListener("resize",h),s()}}function Od(o,i,t,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,h=Mu(o),m=n||a?[...h?ls(h):[],...i?ls(i):[]]:[];m.forEach(T=>{n&&T.addEventListener("scroll",t),a&&T.addEventListener("resize",t)});let f=h&&l?t4(h,t,a):null,b=-1,g=null;s&&(g=new ResizeObserver(T=>{let[O]=T;O&&O.target===h&&g&&i&&(g.unobserve(i),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var U;(U=g)==null||U.observe(i)})),t()}),h&&!p&&g.observe(h),i&&g.observe(i));let v,y=p?wa(o):null;p&&C();function C(){let T=wa(o);y&&!Ov(y,T)&&t(),y=T,v=requestAnimationFrame(C)}return t(),()=>{var T;m.forEach(O=>{n&&O.removeEventListener("scroll",t),a&&O.removeEventListener("resize",t)}),f?.(),(T=g)==null||T.disconnect(),g=null,p&&cancelAnimationFrame(v)}}var Nd=_v;var Pd=kv,Hd=zv,Pl=Sv;var Nv=wv;var Fd=(o,i,t)=>{let r=new Map,n=t??{},a={...Nl,...n.platform,_c:r};return xv(o,i,{...n,platform:a})};function Pv(o){return r4(o)}function Lu(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function r4(o){for(let i=o;i;i=Lu(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=Lu(o);i;i=Lu(i)){if(!(i instanceof Element))continue;let t=getComputedStyle(i);if(t.display!=="contents"&&(t.position!=="static"||cs(t)||i.tagName==="BODY"))return i}return null}var Hv=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--arrow-color:rgb(var(--zn-color-text));--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * 0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}.popup{position:absolute;isolation:isolate;margin:0;border:0;padding:0;background:transparent;overflow:visible;max-width:var(--auto-size-available-width,none)}.popup--fixed{position:fixed}.popup:not(.popup--active){display:none}.popup__arrow{position:absolute;width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);rotate:45deg;background:var(--arrow-color);z-index:-1}.popup{}.popup-hover-bridge:not(.popup-hover-bridge--visible){display:none}.popup-hover-bridge{position:fixed;z-index:calc(var(--zn-z-index-dropdown) - 1);top:0;right:0;bottom:0;left:0;clip-path:polygon(var(--hover-bridge-top-left-x,0) var(--hover-bridge-top-left-y,0),var(--hover-bridge-top-right-x,0) var(--hover-bridge-top-right-y,0),var(--hover-bridge-bottom-right-x,0) var(--hover-bridge-bottom-right-y,0),var(--hover-bridge-bottom-left-x,0) var(--hover-bridge-bottom-left-y,0))}`;function i4(o){return o!==null&&typeof o=="object"&&"getBoundingClientRect"in o&&("contextElement"in o?o instanceof Element:!0)}var Oe=class extends k{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="fixed";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0;this.hoverBridge=!1;this.handleAnchorHover=()=>{this.active||this.start()};this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){let t=this.anchorEl.getBoundingClientRect(),r=this.popup.getBoundingClientRect(),n=this.placement.includes("top")||this.placement.includes("bottom"),a,s,l,p,h,m,f,b;n?t.top<r.top?(a=t.left,s=t.bottom,l=t.right,p=t.bottom,h=r.left,m=r.top,f=r.right,b=r.top):(a=r.left,s=r.bottom,l=r.right,p=r.bottom,h=t.left,m=t.top,f=t.right,b=t.top):t.left<r.left?(a=t.right,s=t.top,l=r.left,p=r.top,h=t.right,m=t.bottom,f=r.left,b=r.bottom):(a=r.right,s=r.top,l=t.left,p=t.top,h=r.right,m=r.bottom,f=t.left,b=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${a}px`),this.style.setProperty("--hover-bridge-top-left-y",`${s}px`),this.style.setProperty("--hover-bridge-top-right-x",`${l}px`),this.style.setProperty("--hover-bridge-top-right-y",`${p}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${h}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${m}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${f}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${b}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.active&&this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||i4(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&!this.active&&this.anchorEl instanceof Element&&(this.anchorEl.removeEventListener("mouseover",this.handleAnchorHover),this.anchorEl.addEventListener("mouseover",this.handleAnchorHover))}start(){this.anchorEl&&(this.cleanup?.(),this.cleanup=Od(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),this.popup.hidePopover(),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;let t=[Nd({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Pl({apply:({rects:n})=>{let a=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.minWidth=a?`${n.reference.width}px`:"",this.popup.style.minHeight=s?`${n.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(Hd({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(Pd({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Pl({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:n,availableHeight:a})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${a}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${n}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(Nv({element:this.arrowEl,padding:this.arrowPadding}));let r=this.strategy==="absolute"?n=>Nl.getOffsetParent(n,Pv):Nl.getOffsetParent;Fd(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...Nl,getOffsetParent:r}}).then(({x:n,y:a,middlewareData:s,placement:l})=>{let p={top:"bottom",right:"left",bottom:"top",left:"right"}[l.split("-")[0]];if(this.setAttribute("data-current-placement",l),Object.assign(this.popup.style,{left:`${n}px`,top:`${a}px`}),!!this.popup?.isConnected&&(this.popup.matches(":popover-open")||this.popup.showPopover(),this.arrow)){let h=s.arrow.x,m=s.arrow.y,f="",b="",g="",v;this.arrowPlacement==="start"?(f=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",b="",v=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""):this.arrowPlacement==="end"?(b=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",v="",g=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""):this.arrowPlacement==="center"?(v=typeof h=="number"?"calc(50% - var(--arrow-size-diagonal))":"",f=typeof m=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(v=typeof h=="number"?`${h}px`:"",f=typeof m=="number"?`${m}px`:""),Object.assign(this.arrowEl.style,{top:f,right:b,bottom:g,left:v,[p]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge())}render(){return u`
|
|
140
140
|
<slot class="anchor" name="anchor" @slotchange="${this.handleAnchorChange}"></slot>
|
|
141
141
|
|
|
142
142
|
<span
|
|
@@ -293,7 +293,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
293
293
|
</slot>
|
|
294
294
|
</button>
|
|
295
295
|
</zn-tooltip>
|
|
296
|
-
`}showStatus(t){let r=t==="success"?this.successIcon:this.errorIcon;this.tooltip.content=t==="success"?"Copied!":"Error!",this.copyIcon.hidden=!0,this.status=t,r.hidden=!1,setTimeout(()=>{this.status="rest",this.copyIcon.hidden=!1,r.hidden=!0,this.tooltip.content=this.copyLabel||"Copy",this.isCopying=!1},1500)}async handleCopy(){if(this.isCopying)return;this.isCopying=!0;let t=this.value||this.textContent;if(this.from){let r=this.getRootNode(),n=this.from.includes("."),a=this.from.includes("[")&&this.from.includes("]"),s=this.from,l="";n?[s,l]=this.from.trim().split("."):a&&([s,l]=this.from.trim().replace(/]$/,"").split("["));let p="getElementById"in r?r.getElementById(s):null;p?a?t=p.getAttribute(l)||"":n?t=p[l]||"":t=p.textContent||"":(console.error("No target element found with id:",s),this.showStatus("error"),this.emit("zn-error"))}if(!t){console.error('No value to copy. Please provide a value or a valid "from" attribute.'),this.showStatus("error"),this.emit("zn-error");return}try{await navigator.clipboard.writeText(t),this.showStatus("success"),this.emit("zn-copy",{detail:{value:t}})}catch(r){console.error("Failed to copy text: ",r),this.showStatus("error"),this.emit("zn-error")}}};or.styles=z(Qv),c([F('slot[name="copy-icon"')],or.prototype,"copyIcon",2),c([F('slot[name="success-icon"')],or.prototype,"successIcon",2),c([F('slot[name="error-icon"')],or.prototype,"errorIcon",2),c([F("zn-tooltip")],or.prototype,"tooltip",2),c([I()],or.prototype,"isCopying",2),c([I()],or.prototype,"status",2),c([d()],or.prototype,"value",2),c([d({attribute:"copy-label"})],or.prototype,"copyLabel",2),c([d()],or.prototype,"src",2),c([d({type:Number,reflect:!0})],or.prototype,"size",2),c([d()],or.prototype,"from",2);var Iu=or;or.define("zn-copy-button");var Xv=()=>new Ru,Ru=class{},Du=new WeakMap,Bl=yt(class extends vo{render(o){return B}update(o,[i]){let t=i!==this.G;return t&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=i,this.ht=o.options?.host,this.rt(this.ct=o.element)),B}rt(o){if(this.G!==void 0)if(this.isConnected||(o=void 0),typeof this.G=="function"){let i=this.ht??globalThis,t=Du.get(i);t===void 0&&(t=new WeakMap,Du.set(i,t)),t.get(this.G)!==void 0&&this.G.call(this.ht,void 0),t.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Du.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ht=class{constructor(i,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=i,t!==null&&this.t.add(t??i),this.l=r,this.o=a??this.o,this.callback=n,window.ResizeObserver?(this.u=new ResizeObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),i.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(i){this.value=this.callback?.(i,this.u)}hostConnected(){for(let i of this.t)this.observe(i)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(i){this.t.add(i),this.u.observe(i,this.l),this.i=!0,this.h.requestUpdate()}unobserve(i){this.t.delete(i),this.u.unobserve(i)}disconnect(){this.u.disconnect()}target(i){return p4(this,i)}},p4=yt(class extends vo{constructor(){super(...arguments),this.observing=!1}render(o,i){}update(o,[i,t]){this.controller=i,this.part=o,this.observe=t,t===!1?(i.unobserve(o.element),this.observing=!1):this.observing===!1&&(i.observe(o.element),this.observing=!0)}disconnected(){this.controller?.unobserve(this.part.element),this.observing=!1}reconnected(){this.observe!==!1&&this.observing===!1&&(this.controller?.observe(this.part.element),this.observing=!0)}});var Jv=Symbol(),Vl=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((i,t)=>{this.o=i,this.h=t})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(i,t,r){this.p=0,this.i=0,(this._=i).addController(this);let n=typeof t=="object"?t:{task:t,args:r};this.v=n.task,this.j=n.args,this.m=n.argsEqual??Zv,this.k=n.onComplete,this.A=n.onError,this.autoRun=n.autoRun??!0,"initialValue"in n&&(this.u=n.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let i=this.j();if(!Array.isArray(i))throw Error("The args function must return an array");return i}async S(){let i=this.T(),t=this.O;this.O=i,i===t||i===void 0||t!==void 0&&this.m(t,i)||await this.run(i)}async run(i){let t,r;i??(i=this.T()),this.O=i,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let n=++this.p;this.q=new AbortController;let a=!1;try{t=await this.v(i,{signal:this.q.signal})}catch(s){a=!0,r=s}if(this.p===n){if(t===Jv)this.i=0;else{if(a===!1){try{this.k?.(t)}catch{}this.i=2,this.o?.(t)}else{try{this.A?.(r)}catch{}this.i=3,this.h?.(r)}this.u=t,this.l=r}this._.requestUpdate()}}abort(i){this.i===1&&this.q?.abort(i)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(i){switch(this.i){case 0:return i.initial?.();case 1:return i.pending?.();case 2:return i.complete?.(this.value);case 3:return i.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},Zv=(o,i)=>o===i||o.length===i.length&&o.every(((t,r)=>!Za(t,i[r])));function e0(o,i){return{top:Math.round(o.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(o.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Ou=new Set;function h4(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function t0(o){if(Ou.add(o),!document.body.classList.contains("zn-scroll-lock")){let i=h4();document.body.classList.add("zn-scroll-lock"),document.body.style.setProperty("--zn-scroll-lock-size",`${i}px`)}}function _a(o){Ou.delete(o),Ou.size===0&&(document.body.classList.remove("zn-scroll-lock"),document.body.style.removeProperty("--zn-scroll-lock-size"))}function r0(o,i,t="vertical",r="smooth"){let n=e0(o,i),a=n.top+i.scrollTop,s=n.left+i.scrollLeft,l=i.scrollLeft,p=i.scrollLeft+i.offsetWidth,h=i.scrollTop,m=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(s<l?i.scrollTo({left:s,behavior:r}):s+o.clientWidth>p&&i.scrollTo({left:s-i.offsetWidth+o.clientWidth,behavior:r})),(t==="vertical"||t==="both")&&(a<h?i.scrollTo({top:a,behavior:r}):a+o.clientHeight>m&&i.scrollTo({top:a-i.offsetHeight+o.clientHeight,behavior:r}))}function i0(o){let i=[],t=o;for(;t;)t instanceof Element&&t.scrollTop>0&&i.push(t),t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode;return i}function n0(o,i="auto"){for(let t of o)t.scrollTo({top:0,behavior:i})}var o0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--width:30rem;--header-spacing:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-medium);--body-spacing:var(--zn-spacing-x-small) var(--zn-spacing-large);--footer-spacing:var(--zn-spacing-large);--icon-background-color:var(--zn-color-primary-200);--icon-color:var(--zn-color-primary-600);--caption-color:var(--zn-color-primary-600);display:contents}.dialog-container{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;border-radius:var(--zn-border-radius);background-color:var(--zn-panel-background-color);margin:2px;overflow:hidden}.dialog__header+.dialog__body{padding-top:0}.dialog{flex-direction:column;z-index:2;width:calc(var(--width) + 1px);overflow:hidden;max-width:calc(100% - var(--zn-spacing-2x-large));max-height:calc(100% - 20vh);background-color:var(--zn-panel-background-color);border-radius:var(--zn-border-radius);box-shadow:var(--zn-shadow-x-large);padding:0;margin:10vh auto}.dialog[open]{display:flex}.dialog__header{flex:0 0 auto;display:flex}.dialog__title{display:flex;flex:1 1 auto;align-items:center;font:inherit;margin:0;width:100%;overflow:hidden}.dialog__header-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:end;align-items:center;gap:var(--zn-spacing-x-small);padding:var(--header-spacing)}.dialog__header-actions zn-button,.dialog__header-actions::slotted(zn-button){flex:0 0 auto;display:flex;align-items:center;font-size:var(--zn-font-size-medium)}.dialog__label{overflow:hidden;word-break:break-word;display:inline-block}.dialog__body{flex:1 1 auto;min-height:0;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch;color:var(--zn-color-text-default);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);letter-spacing:var(--zn-tracking-normal);line-height:var(--zn-line-height-dense)}.dialog__footer{flex:0 0 auto;text-align:right;padding:var(--footer-spacing)}.dialog__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}.dialog{}.dialog--default .dialog__title,.dialog--warning .dialog__title{color:rgb(var(--zn-text-panel-title));font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-font-size-x-large);padding:var(--header-spacing)}.dialog--announcement .dialog__title{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;align-content:center;color:var(--caption-color);font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-line-height-dense);padding:var(--header-spacing);margin:0}.dialog--default .dialog__title ::slotted(zn-icon),.dialog--warning .dialog__title ::slotted(zn-icon){border-radius:var(--zn-border-radius-pill);padding:var(--zn-spacing-2x-small);margin-right:var(--zn-spacing-small)}.dialog--announcement .dialog__title ::slotted(zn-icon){--icon-size:var(--zn-font-size-3x-large);border-radius:var(--zn-border-radius-pill);padding:var(--zn-spacing-medium);margin-bottom:var(--zn-spacing-medium)}.dialog__title ::slotted(zn-icon){background-color:var(--icon-background-color);color:var(--icon-color)}.dialog--warning .dialog__title{--icon-background-color:rgba(var(--zn-color-warning),.3);--icon-color:rgb(var(--zn-color-warning))}.dialog--announcement .dialog__title ::slotted([slot=announcement-intro]){color:var(--zn-color-neutral-800);font-size:var(--zn-font-size-large);font-weight:var(--zn-font-weight-semibold);padding:var(--zn-spacing-medium) 0}.dialog--announcement .dialog__header-actions{display:none}.dialog--announcement .dialog__body{padding:var(--zn-spacing-x-small) var(--zn-spacing-2x-large)}.dialog--announcement .dialog__title,.dialog--announcement .dialog__body,.dialog--announcement .dialog__footer{text-align:center}.dialog--announcement .dialog__footer ::slotted([slot=footer-text]){color:var(--zn-color-neutral-700);font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-normal)}.dialog{}.dialog--small{--width:25rem}.dialog--small .dialog__body{color:rgb(var(--zn-text));padding:var(--body-spacing)}.dialog--medium{--width:30rem}.dialog--large{--width:37.5rem}.dialog{}.dialog--announcement .dialog__footer ::slotted([slot=footer-text]){padding:var(--zn-spacing-large)}.dialog__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}.dialog:not(.dialog--has-footer) .dialog__body{padding-bottom:var(--zn-spacing-3x-large)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}.dialog--cosmic{border:1px solid transparent}.dialog--cosmic:before{content:"";z-index:-1;position:absolute;top:-2px;left:-2px;height:calc(100% + 4px);width:calc(100% + 4px);filter:blur(var(--zn-blur,1px));opacity:0.9;border-radius:var(--zn-border-radius);background-image:conic-gradient(from var(--rotate) at 50% 50%,#71d9ff 0%,#a100ff 22%,#71d9ff 44%,#ff00ce 74%,#71d9ff 94%);animation:rotate-gradient 6s linear infinite}.dialog--cosmic{position:relative;border:none !important}`;var fr=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","footer");this.variant="default";this.size="medium";this.open=!1;this.cosmic=!1;this.noHeader=!1;this.closeClickHandler=t=>{if(t.target instanceof HTMLElement&&t.target.hasAttribute("dialog-closer")){this.hide();return}for(let r of t.composedPath()){if(r===this)return;if(r instanceof HTMLElement){if(r.hasAttribute("modal-closer")){this.hide();return}if(r.localName==="zn-dialog"||r.localName==="zn-slideout")return}}}}firstUpdated(t){super.firstUpdated(t),this.open&&this.show()}connectedCallback(){if(super.connectedCallback(),this.addEventListener("click",this.closeClickHandler),this.shadowRoot?.addEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentNode?.querySelector(pr(this.trigger));t&&t.addEventListener("click",()=>this.show())}if(window.CSS.registerProperty)try{window.CSS.registerProperty({inherits:!1,initialValue:"0deg",name:"--rotate",syntax:"<angle>"})}catch{}}disconnectedCallback(){if(super.disconnectedCallback(),this.dialog.close(),_a(this),this.closeWatcher?.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentElement?.querySelector(pr(this.trigger));t&&t.removeEventListener("click",()=>this.show())}}requestClose(t){this.emit("zn-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented||this.hide()}addOpenListeners(){"CloseWatcher"in window&&(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))}removeOpenListeners(){this.closeWatcher?.destroy()}show(){this.emit("zn-show"),this.addOpenListeners(),this.open=!0,this.dialog.showModal()}hide(){this.emit("zn-close"),this.removeOpenListeners(),this.open=!1,this.dialog.close()}render(){let t=this.hasSlotController.test("footer");return u`
|
|
296
|
+
`}showStatus(t){let r=t==="success"?this.successIcon:this.errorIcon;this.tooltip.content=t==="success"?"Copied!":"Error!",this.copyIcon.hidden=!0,this.status=t,r.hidden=!1,setTimeout(()=>{this.status="rest",this.copyIcon.hidden=!1,r.hidden=!0,this.tooltip.content=this.copyLabel||"Copy",this.isCopying=!1},1500)}async handleCopy(){if(this.isCopying)return;this.isCopying=!0;let t=this.value||this.textContent;if(this.from){let r=this.getRootNode(),n=this.from.includes("."),a=this.from.includes("[")&&this.from.includes("]"),s=this.from,l="";n?[s,l]=this.from.trim().split("."):a&&([s,l]=this.from.trim().replace(/]$/,"").split("["));let p="getElementById"in r?r.getElementById(s):null;p?a?t=p.getAttribute(l)||"":n?t=p[l]||"":t=p.textContent||"":(console.error("No target element found with id:",s),this.showStatus("error"),this.emit("zn-error"))}if(!t){console.error('No value to copy. Please provide a value or a valid "from" attribute.'),this.showStatus("error"),this.emit("zn-error");return}try{await navigator.clipboard.writeText(t),this.showStatus("success"),this.emit("zn-copy",{detail:{value:t}})}catch(r){console.error("Failed to copy text: ",r),this.showStatus("error"),this.emit("zn-error")}}};or.styles=z(Qv),c([F('slot[name="copy-icon"')],or.prototype,"copyIcon",2),c([F('slot[name="success-icon"')],or.prototype,"successIcon",2),c([F('slot[name="error-icon"')],or.prototype,"errorIcon",2),c([F("zn-tooltip")],or.prototype,"tooltip",2),c([I()],or.prototype,"isCopying",2),c([I()],or.prototype,"status",2),c([d()],or.prototype,"value",2),c([d({attribute:"copy-label"})],or.prototype,"copyLabel",2),c([d()],or.prototype,"src",2),c([d({type:Number,reflect:!0})],or.prototype,"size",2),c([d()],or.prototype,"from",2);var Iu=or;or.define("zn-copy-button");var Xv=()=>new Ru,Ru=class{},Du=new WeakMap,Bl=yt(class extends vo{render(o){return B}update(o,[i]){let t=i!==this.G;return t&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=i,this.ht=o.options?.host,this.rt(this.ct=o.element)),B}rt(o){if(this.G!==void 0)if(this.isConnected||(o=void 0),typeof this.G=="function"){let i=this.ht??globalThis,t=Du.get(i);t===void 0&&(t=new WeakMap,Du.set(i,t)),t.get(this.G)!==void 0&&this.G.call(this.ht,void 0),t.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Du.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ut=class{constructor(i,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=i,t!==null&&this.t.add(t??i),this.l=r,this.o=a??this.o,this.callback=n,window.ResizeObserver?(this.u=new ResizeObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),i.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(i){this.value=this.callback?.(i,this.u)}hostConnected(){for(let i of this.t)this.observe(i)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(i){this.t.add(i),this.u.observe(i,this.l),this.i=!0,this.h.requestUpdate()}unobserve(i){this.t.delete(i),this.u.unobserve(i)}disconnect(){this.u.disconnect()}target(i){return p4(this,i)}},p4=yt(class extends vo{constructor(){super(...arguments),this.observing=!1}render(o,i){}update(o,[i,t]){this.controller=i,this.part=o,this.observe=t,t===!1?(i.unobserve(o.element),this.observing=!1):this.observing===!1&&(i.observe(o.element),this.observing=!0)}disconnected(){this.controller?.unobserve(this.part.element),this.observing=!1}reconnected(){this.observe!==!1&&this.observing===!1&&(this.controller?.observe(this.part.element),this.observing=!0)}});var Jv=Symbol(),Vl=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((i,t)=>{this.o=i,this.h=t})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(i,t,r){this.p=0,this.i=0,(this._=i).addController(this);let n=typeof t=="object"?t:{task:t,args:r};this.v=n.task,this.j=n.args,this.m=n.argsEqual??Zv,this.k=n.onComplete,this.A=n.onError,this.autoRun=n.autoRun??!0,"initialValue"in n&&(this.u=n.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let i=this.j();if(!Array.isArray(i))throw Error("The args function must return an array");return i}async S(){let i=this.T(),t=this.O;this.O=i,i===t||i===void 0||t!==void 0&&this.m(t,i)||await this.run(i)}async run(i){let t,r;i??(i=this.T()),this.O=i,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let n=++this.p;this.q=new AbortController;let a=!1;try{t=await this.v(i,{signal:this.q.signal})}catch(s){a=!0,r=s}if(this.p===n){if(t===Jv)this.i=0;else{if(a===!1){try{this.k?.(t)}catch{}this.i=2,this.o?.(t)}else{try{this.A?.(r)}catch{}this.i=3,this.h?.(r)}this.u=t,this.l=r}this._.requestUpdate()}}abort(i){this.i===1&&this.q?.abort(i)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(i){switch(this.i){case 0:return i.initial?.();case 1:return i.pending?.();case 2:return i.complete?.(this.value);case 3:return i.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},Zv=(o,i)=>o===i||o.length===i.length&&o.every(((t,r)=>!Za(t,i[r])));function e0(o,i){return{top:Math.round(o.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(o.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Ou=new Set;function h4(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function t0(o){if(Ou.add(o),!document.body.classList.contains("zn-scroll-lock")){let i=h4();document.body.classList.add("zn-scroll-lock"),document.body.style.setProperty("--zn-scroll-lock-size",`${i}px`)}}function _a(o){Ou.delete(o),Ou.size===0&&(document.body.classList.remove("zn-scroll-lock"),document.body.style.removeProperty("--zn-scroll-lock-size"))}function r0(o,i,t="vertical",r="smooth"){let n=e0(o,i),a=n.top+i.scrollTop,s=n.left+i.scrollLeft,l=i.scrollLeft,p=i.scrollLeft+i.offsetWidth,h=i.scrollTop,m=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(s<l?i.scrollTo({left:s,behavior:r}):s+o.clientWidth>p&&i.scrollTo({left:s-i.offsetWidth+o.clientWidth,behavior:r})),(t==="vertical"||t==="both")&&(a<h?i.scrollTo({top:a,behavior:r}):a+o.clientHeight>m&&i.scrollTo({top:a-i.offsetHeight+o.clientHeight,behavior:r}))}function i0(o){let i=[],t=o;for(;t;)t instanceof Element&&t.scrollTop>0&&i.push(t),t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode;return i}function n0(o,i="auto"){for(let t of o)t.scrollTo({top:0,behavior:i})}var o0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--width:30rem;--header-spacing:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-medium);--body-spacing:var(--zn-spacing-x-small) var(--zn-spacing-large);--footer-spacing:var(--zn-spacing-large);--icon-background-color:var(--zn-color-primary-200);--icon-color:var(--zn-color-primary-600);--caption-color:var(--zn-color-primary-600);display:contents}.dialog-container{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;border-radius:var(--zn-border-radius);background-color:var(--zn-panel-background-color);margin:2px;overflow:hidden}.dialog__header+.dialog__body{padding-top:0}.dialog{flex-direction:column;z-index:2;width:calc(var(--width) + 1px);overflow:hidden;max-width:calc(100% - var(--zn-spacing-2x-large));max-height:calc(100% - 20vh);background-color:var(--zn-panel-background-color);border-radius:var(--zn-border-radius);box-shadow:var(--zn-shadow-x-large);padding:0;margin:10vh auto}.dialog[open]{display:flex}.dialog__header{flex:0 0 auto;display:flex}.dialog__title{display:flex;flex:1 1 auto;align-items:center;font:inherit;margin:0;width:100%;overflow:hidden}.dialog__header-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:end;align-items:center;gap:var(--zn-spacing-x-small);padding:var(--header-spacing)}.dialog__header-actions zn-button,.dialog__header-actions::slotted(zn-button){flex:0 0 auto;display:flex;align-items:center;font-size:var(--zn-font-size-medium)}.dialog__label{overflow:hidden;word-break:break-word;display:inline-block}.dialog__body{flex:1 1 auto;min-height:0;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch;color:var(--zn-color-text-default);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);letter-spacing:var(--zn-tracking-normal);line-height:var(--zn-line-height-dense)}.dialog__footer{flex:0 0 auto;text-align:right;padding:var(--footer-spacing)}.dialog__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}.dialog{}.dialog--default .dialog__title,.dialog--warning .dialog__title{color:rgb(var(--zn-text-panel-title));font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-font-size-x-large);padding:var(--header-spacing)}.dialog--announcement .dialog__title{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;align-content:center;color:var(--caption-color);font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-line-height-dense);padding:var(--header-spacing);margin:0}.dialog--default .dialog__title ::slotted(zn-icon),.dialog--warning .dialog__title ::slotted(zn-icon){border-radius:var(--zn-border-radius-pill);padding:var(--zn-spacing-2x-small);margin-right:var(--zn-spacing-small)}.dialog--announcement .dialog__title ::slotted(zn-icon){--icon-size:var(--zn-font-size-3x-large);border-radius:var(--zn-border-radius-pill);padding:var(--zn-spacing-medium);margin-bottom:var(--zn-spacing-medium)}.dialog__title ::slotted(zn-icon){background-color:var(--icon-background-color);color:var(--icon-color)}.dialog--warning .dialog__title{--icon-background-color:rgba(var(--zn-color-warning),.3);--icon-color:rgb(var(--zn-color-warning))}.dialog--announcement .dialog__title ::slotted([slot=announcement-intro]){color:var(--zn-color-neutral-800);font-size:var(--zn-font-size-large);font-weight:var(--zn-font-weight-semibold);padding:var(--zn-spacing-medium) 0}.dialog--announcement .dialog__header-actions{display:none}.dialog--announcement .dialog__body{padding:var(--zn-spacing-x-small) var(--zn-spacing-2x-large)}.dialog--announcement .dialog__title,.dialog--announcement .dialog__body,.dialog--announcement .dialog__footer{text-align:center}.dialog--announcement .dialog__footer ::slotted([slot=footer-text]){color:var(--zn-color-neutral-700);font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-normal)}.dialog{}.dialog--small{--width:25rem}.dialog--small .dialog__body{color:rgb(var(--zn-text));padding:var(--body-spacing)}.dialog--medium{--width:30rem}.dialog--large{--width:37.5rem}.dialog{}.dialog--announcement .dialog__footer ::slotted([slot=footer-text]){padding:var(--zn-spacing-large)}.dialog__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}.dialog:not(.dialog--has-footer) .dialog__body{padding-bottom:var(--zn-spacing-3x-large)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}.dialog--cosmic{border:1px solid transparent}.dialog--cosmic:before{content:"";z-index:-1;position:absolute;top:-2px;left:-2px;height:calc(100% + 4px);width:calc(100% + 4px);filter:blur(var(--zn-blur,1px));opacity:0.9;border-radius:var(--zn-border-radius);background-image:conic-gradient(from var(--rotate) at 50% 50%,#71d9ff 0%,#a100ff 22%,#71d9ff 44%,#ff00ce 74%,#71d9ff 94%);animation:rotate-gradient 6s linear infinite}.dialog--cosmic{position:relative;border:none !important}`;var fr=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","footer");this.variant="default";this.size="medium";this.open=!1;this.cosmic=!1;this.noHeader=!1;this.closeClickHandler=t=>{if(t.target instanceof HTMLElement&&t.target.hasAttribute("dialog-closer")){this.hide();return}for(let r of t.composedPath()){if(r===this)return;if(r instanceof HTMLElement){if(r.hasAttribute("modal-closer")){this.hide();return}if(r.localName==="zn-dialog"||r.localName==="zn-slideout")return}}}}firstUpdated(t){super.firstUpdated(t),this.open&&this.show()}connectedCallback(){if(super.connectedCallback(),this.addEventListener("click",this.closeClickHandler),this.shadowRoot?.addEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentNode?.querySelector(pr(this.trigger));t&&t.addEventListener("click",()=>this.show())}if(window.CSS.registerProperty)try{window.CSS.registerProperty({inherits:!1,initialValue:"0deg",name:"--rotate",syntax:"<angle>"})}catch{}}disconnectedCallback(){if(super.disconnectedCallback(),this.dialog.close(),_a(this),this.closeWatcher?.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentElement?.querySelector(pr(this.trigger));t&&t.removeEventListener("click",()=>this.show())}}requestClose(t){this.emit("zn-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented||this.hide()}addOpenListeners(){"CloseWatcher"in window&&(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))}removeOpenListeners(){this.closeWatcher?.destroy()}show(){this.emit("zn-show"),this.addOpenListeners(),this.open=!0,this.dialog.showModal()}hide(){this.emit("zn-close"),this.removeOpenListeners(),this.open=!1,this.dialog.close()}render(){let t=this.hasSlotController.test("footer");return u`
|
|
297
297
|
<dialog
|
|
298
298
|
part="base"
|
|
299
299
|
role="alertdialog"
|
|
@@ -339,7 +339,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
339
339
|
</footer>
|
|
340
340
|
</div>
|
|
341
341
|
</dialog>
|
|
342
|
-
`}};fr.styles=z(o0),fr.dependencies={"zn-button":Me},c([F(".dialog")],fr.prototype,"dialog",2),c([F(".dialog__close")],fr.prototype,"closer",2),c([d({reflect:!0})],fr.prototype,"variant",2),c([d({reflect:!0})],fr.prototype,"size",2),c([d({type:Boolean,reflect:!0})],fr.prototype,"open",2),c([d({reflect:!0})],fr.prototype,"label",2),c([d({type:Boolean,reflect:!0})],fr.prototype,"cosmic",2),c([d({attribute:"no-header",type:Boolean,reflect:!0})],fr.prototype,"noHeader",2),c([d({type:String,reflect:!0})],fr.prototype,"trigger",2);var ka=fr;fr.define("zn-dialog");var a0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.confirm-dialog__content{margin:0;text-wrap:auto}.confirm-dialog::part(footer){text-align:right}.confirm-dialog::part(body){text-align:left}.confirm-dialog--has-default-slot .confirm-dialog__content{margin-bottom:var(--zn-spacing-large)}.confirm-dialog--error::part(title){--icon-background-color:rgb(var(--zn-color-error),.3);--icon-color:rgb(var(--zn-color-error),1);--caption-color:rgb(var(--zn-color-error),1)}.confirm-dialog--warning::part(title){--icon-background-color:rgb(var(--zn-color-warning),.3);--icon-color:rgb(var(--zn-color-warning),1);--caption-color:rgb(var(--zn-color-warning),1)}.confirm-dialog--success::part(title){--icon-background-color:rgb(var(--zn-color-success),.3);--icon-color:rgb(var(--zn-color-success),1);--caption-color:rgb(var(--zn-color-success),1)}.confirm-dialog--info::part(title){--icon-background-color:rgb(var(--zn-color-info),.3);--icon-color:rgb(var(--zn-color-info),1);--caption-color:rgb(var(--zn-color-info),1)}`;var
|
|
342
|
+
`}};fr.styles=z(o0),fr.dependencies={"zn-button":Me},c([F(".dialog")],fr.prototype,"dialog",2),c([F(".dialog__close")],fr.prototype,"closer",2),c([d({reflect:!0})],fr.prototype,"variant",2),c([d({reflect:!0})],fr.prototype,"size",2),c([d({type:Boolean,reflect:!0})],fr.prototype,"open",2),c([d({reflect:!0})],fr.prototype,"label",2),c([d({type:Boolean,reflect:!0})],fr.prototype,"cosmic",2),c([d({attribute:"no-header",type:Boolean,reflect:!0})],fr.prototype,"noHeader",2),c([d({type:String,reflect:!0})],fr.prototype,"trigger",2);var ka=fr;fr.define("zn-dialog");var a0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.confirm-dialog__content{margin:0;text-wrap:auto}.confirm-dialog::part(footer){text-align:right}.confirm-dialog::part(body){text-align:left}.confirm-dialog--has-default-slot .confirm-dialog__content{margin-bottom:var(--zn-spacing-large)}.confirm-dialog--error::part(title){--icon-background-color:rgb(var(--zn-color-error),.3);--icon-color:rgb(var(--zn-color-error),1);--caption-color:rgb(var(--zn-color-error),1)}.confirm-dialog--warning::part(title){--icon-background-color:rgb(var(--zn-color-warning),.3);--icon-color:rgb(var(--zn-color-warning),1);--caption-color:rgb(var(--zn-color-warning),1)}.confirm-dialog--success::part(title){--icon-background-color:rgb(var(--zn-color-success),.3);--icon-color:rgb(var(--zn-color-success),1);--caption-color:rgb(var(--zn-color-success),1)}.confirm-dialog--info::part(title){--icon-background-color:rgb(var(--zn-color-info),.3);--icon-color:rgb(var(--zn-color-info),1);--caption-color:rgb(var(--zn-color-info),1)}`;var Ze=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","footer");this.variant="default";this.size="medium";this.type="warning";this.open=!1;this.caption="";this.action="";this.content="";this.confirmText="Confirm";this.cancelText="Cancel";this.hideIcon=!1;this.showLoading=!1;this.announcement="";this.footerText="";this.loading=!1;this.failed=!1;this.failure="";this.submitted=null;this.show=(t=void 0)=>{t?.target?.disabled||(this.reset(),this.dialog.show())};this.settle=t=>{let r=t.detail?.response;if(this.stopWatching(),t.type==="error"||this.responseFailed(r)){this.loading=!1,this.failed=!0,this.failure=this.alertTitle(r),this.dialog?.closer&&(this.dialog.closer.disabled=!1);return}this.hide()}}firstUpdated(t){super.firstUpdated(t),this.open&&this.dialog.show()}connectedCallback(){super.connectedCallback(),this.hasSlotController.test("trigger")?this.hasSlotController.getSlot("trigger")?.addEventListener("click",this.show):this.trigger&&Ge(pr(this.trigger),this.parentElement,"").forEach(r=>{r.addEventListener("click",this.show)})}updateTriggers(){Ge(pr(this.trigger),this.parentElement,"").forEach(r=>{r.removeEventListener("click",this.show),r.addEventListener("click",this.show)})}hide(){this.reset(),this.dialog.hide()}disconnectedCallback(){super.disconnectedCallback(),this.stopWatching()}reset(){this.stopWatching(),this.loading=!1,this.failed=!1,this.failure="",this.dialog?.closer&&(this.dialog.closer.disabled=!1)}stopWatching(){this.submitted?.removeEventListener("complete",this.settle),this.submitted?.removeEventListener("error",this.settle),this.submitted=null}responseFailed(t){return!t||(t.status??0)>=400?!0:(t.actions??[]).some(r=>r.action==="alert"&&r.style==="error")}alertTitle(t){return(t?.actions??[]).find(n=>n.action==="alert"&&n.style==="error")?.title??""}render(){let t={warning:"priority_high",error:"priority_high",success:"check",info:"help"};return u`
|
|
343
343
|
<slot name="trigger" slot="trigger"></slot>
|
|
344
344
|
<zn-dialog size="${this.size}" variant="${this.variant}" label=${N(this.caption)} trigger=${this.trigger}
|
|
345
345
|
class=${M({"confirm-dialog":!0,"confirm-dialog--warning":this.type==="warning","confirm-dialog--error":this.type==="error","confirm-dialog--success":this.type==="success","confirm-dialog--info":this.type==="info","confirm-dialog--has-default-slot":this.hasSlotController.test("[default]")})}>
|
|
@@ -350,8 +350,9 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
350
350
|
<zn-icon slot="header-icon" color="${this.type}" src="${t[this.type]}"></zn-icon>`}
|
|
351
351
|
|
|
352
352
|
<div class="confirm-dialog__content">
|
|
353
|
-
${this.loading?u`
|
|
354
|
-
|
|
353
|
+
${this.loading?u`Loading...`:this.failed?u`
|
|
354
|
+
<strong>Failed</strong>
|
|
355
|
+
${this.failure?u`<p>${this.failure}</p>`:""}`:u`
|
|
355
356
|
${this.content?u`${this.content}`:""}
|
|
356
357
|
<slot></slot>`}
|
|
357
358
|
</div>
|
|
@@ -364,7 +365,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
364
365
|
</zn-button>
|
|
365
366
|
|
|
366
367
|
<slot name="footer-text" slot="footer-text">${this.footerText}</slot>
|
|
367
|
-
</zn-dialog>`}submitDialog(){let t=this.querySelector("form");!t&&this.action&&(t=document.createElement("form"),t.action=this.action,t.method="POST",Array.from(this.attributes).forEach(r=>{r.name.startsWith("data-")&&t?.setAttribute(r.name,r.value)}),this.querySelectorAll("input").forEach(r=>{t?.appendChild(r.cloneNode())}),this.appendChild(t)),t&&t.reportValidity()&&(document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:t}})),t.requestSubmit(),this.showLoading?(this.loading=!0,this.dialog.closer.disabled=!0):this.hide())}};ut.styles=z(a0),ut.dependencies={"zn-dialog":ka},c([d({reflect:!0})],ut.prototype,"variant",2),c([d({reflect:!0})],ut.prototype,"size",2),c([d()],ut.prototype,"type",2),c([d({type:Boolean,reflect:!0})],ut.prototype,"open",2),c([d()],ut.prototype,"caption",2),c([d()],ut.prototype,"action",2),c([d()],ut.prototype,"content",2),c([d()],ut.prototype,"confirmText",2),c([d()],ut.prototype,"cancelText",2),c([d({type:Boolean,attribute:"hide-icon"})],ut.prototype,"hideIcon",2),c([d({type:Boolean,attribute:"show-loading"})],ut.prototype,"showLoading",2),c([d({reflect:!0})],ut.prototype,"trigger",2),c([d()],ut.prototype,"announcement",2),c([d({attribute:"footer-text"})],ut.prototype,"footerText",2),c([F("zn-dialog")],ut.prototype,"dialog",2),c([I()],ut.prototype,"loading",2);var Ul=ut;ut.define("zn-confirm");function It(o){let i=document.createDocumentFragment();return Ja(o,i),i.firstElementChild}var Ce=(o="value")=>(i,t)=>{let r=i.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(a,s,l){let p=r.getPropertyOptions(o),h=typeof p.attribute=="string"?p.attribute:o;if(a===h){let m=p.converter||fo,b=(typeof m=="function"?m:m?.fromAttribute??fo.fromAttribute)(l,p.type);this[o]!==b&&(this[t]=b)}n.call(this,a,s,l)}};var u4=new Map;function Bd(o){return(Array.isArray(o)?o:o.split(",")).reduce((t,r)=>{let n=u4.get(r.trim());return n?[...t,...n]:t},[])}function m4(o){return typeof o=="object"&&o!==null&&typeof o.label=="string"}function zo(o){let i=o?.trim();if(!i)return[];if(i.startsWith("["))try{let t=JSON.parse(i);return Array.isArray(t)?t.filter(m4):[]}catch{return console.warn("slash-items could not be parsed as JSON",i),[]}return i.split(",").map(t=>t.trim()).filter(t=>t!=="").map(t=>{let r=t.indexOf("=");if(r===-1)return{label:t,value:t};let n=t.slice(0,r).trim(),a=t.slice(r+1).trim();return{label:n||a,value:a}}).filter(t=>t.label!=="")}function f4(o){return o.keywords?(Array.isArray(o.keywords)?o.keywords:o.keywords.split(",")).map(t=>t.trim().toLowerCase()).filter(t=>t!==""):[]}function g4(o,i){let t=o.label.toLowerCase();return t.startsWith(i)?0:t.split(/\s+/).some(r=>r.startsWith(i))?1:t.includes(i)?2:f4(o).some(r=>r.includes(i))?3:o.value?.toLowerCase().includes(i)?4:o.description?.toLowerCase().includes(i)?5:-1}function Vd(o,i){let t=i.trim().toLowerCase();return o.map((r,n)=>({item:r,index:n,score:t?g4(r,t):0})).filter(r=>r.score!==-1).sort((r,n)=>r.score-n.score||(r.item.order??r.index)-(n.item.order??n.index)||r.index-n.index).map(r=>r.item)}var Nu="zn-slash-recent:",b4=10;function Pu(o){return o.action?`action:${o.action}`:`value:${o.value||o.label}`}function Hu(o){if(!o)return[];try{let i=JSON.parse(localStorage.getItem(Nu+o)??"[]");return Array.isArray(i)?i.filter(t=>typeof t=="string"):[]}catch{return[]}}function s0(o,i){if(!o)return[];let t=Pu(i),r=[t,...Hu(o).filter(n=>n!==t)].slice(0,b4);try{localStorage.setItem(Nu+o,JSON.stringify(r))}catch{}return r}function l0(o){if(o)try{localStorage.removeItem(Nu+o)}catch{}}var c0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{--slash-menu-width:320px;--slash-menu-max-height:260px;--slash-menu-border-radius:12px;--slash-menu-item-border-radius:8px;display:contents}:host(:not([open])) .slash-menu__panel{display:none}.slash-menu__panel{display:flex;flex-direction:column;position:fixed;inset:0 auto auto 0;margin:0;width:var(--slash-menu-width);max-width:var(--auto-size-available-width,none);max-height:min(var(--slash-menu-max-height),var(--auto-size-available-height,100vh));z-index:var(--zn-z-index-dropdown);overflow:hidden;background:var(--zn-panel-background-color);border:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);border-radius:var(--slash-menu-border-radius);box-shadow:var(--zn-shadow-medium);font-family:var(--zn-font-sans);font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text))}.slash-menu__list{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--zn-spacing-3x-small,2px);min-height:0;overflow-y:auto;overscroll-behavior:none;padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px)}.slash-menu__group-heading,.slash-menu__footer,.slash-menu__empty{padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);-moz-user-select:none;user-select:none;-webkit-user-select:none}.slash-menu__group-heading{padding-top:var(--zn-spacing-x-small,8px);font-weight:var(--zn-font-weight-semibold);text-transform:uppercase;letter-spacing:0.06em;color:var(--zn-color-neutral-400)}.slash-menu__footer{border-top:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);margin-top:var(--zn-spacing-2x-small,4px)}.slash-menu__divider{height:var(--zn-panel-border-width,1px);margin:var(--zn-spacing-2x-small,4px) 0;background:var(--zn-panel-border-color)}.slash-menu__hints{display:flex;flex:0 0 auto;align-items:center;gap:var(--zn-spacing-small,12px);padding:var(--zn-spacing-x-small,8px) var(--zn-spacing-small,12px);border-top:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);-moz-user-select:none;user-select:none;-webkit-user-select:none}.slash-menu__hint{display:flex;align-items:center;gap:var(--zn-spacing-2x-small,4px)}.slash-menu__key{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 var(--zn-spacing-2x-small,4px);border:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);border-radius:var(--zn-border-radius,6px);background:var(--zn-panel-background-color);font-family:var(--zn-font-sans);font-size:var(--zn-font-size-2x-small);line-height:1;color:var(--zn-color-neutral-600)}.slash-menu__item{display:flex;align-items:center;gap:var(--zn-spacing-small,12px);width:100%;padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px);border:none;border-radius:var(--slash-menu-item-border-radius);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.slash-menu__item:hover:not(.slash-menu__item--disabled){background:var(--zn-input-background-color-hover)}.slash-menu__item--active,.slash-menu__item--active:hover:not(.slash-menu__item--disabled){background:rgba(var(--zn-color-primary),0.08)}.slash-menu__item--disabled{opacity:0.5;cursor:not-allowed}.slash-menu__icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;border:solid var(--zn-panel-border-width,1px) rgba(var(--zn-color-primary),0.18);border-radius:var(--slash-menu-item-border-radius);background:rgba(var(--zn-color-primary),0.06);color:var(--zn-color-neutral-700)}.slash-menu__icon--empty{border-color:transparent;background:none}.slash-menu__item--active .slash-menu__icon{border-color:rgba(var(--zn-color-primary),0.3);background:rgba(var(--zn-color-primary),0.14);color:rgb(var(--zn-color-primary))}.slash-menu__text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.slash-menu__label{font-weight:var(--zn-font-weight-semibold);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-menu__description{font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-menu__token{flex:0 1 auto;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--zn-font-mono);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-600)}`;var us="zn-slash-item-select";function v4(o,i){return!!o&&o.length===i.length&&o.every((t,r)=>t.label===i[r].label&&t.value===i[r].value&&t.disabled===i[r].disabled)}var Ze=class extends k{constructor(){super(...arguments);this.open=!1;this.items=[];this.query="";this.heading="Insert";this.emptyText="No matches";this.maxItems=25;this.hideKeys=!1;this.hideHints=!1;this.recentKey="";this.maxRecent=3;this.recentHeading="Recently used";this.anchor=null;this.placement="bottom-start";this.distance=4;this.activeIndex=0;this.recentKeys=[];this.recentCount=0;this.handleItemMouseDown=t=>{t.preventDefault(),t.stopPropagation();let r=Number(t.currentTarget.dataset.index),n=this.visibleItems[r];n&&(this.activeIndex=r,this.selectItem(n))}}get listItems(){return this.maxItems>0?this.items.slice(0,this.maxItems):this.items}get recentItems(){if(!this.recentKey||this.maxRecent<1||this.query.trim()!=="")return[];let t=new Map;for(let n of this.items){let a=Pu(n);!n.disabled&&!t.has(a)&&t.set(a,n)}let r=this.recentKeys.map(n=>t.get(n)).filter(n=>n!==void 0).slice(0,this.maxRecent);return r.length<this.items.length?r:[]}get visibleItems(){return[...this.recentItems,...this.listItems]}get activeItem(){return this.visibleItems[this.activeIndex]}show(){this.open=!0}hide(){this.open=!1}clearRecent(){l0(this.recentKey),this.recentKeys=[]}setActiveIndex(t){let r=this.visibleItems;if(!r.filter(l=>!l.disabled).length){this.activeIndex=-1;return}let a=(t+r.length)%r.length,s=t<this.activeIndex?-1:1;for(;r[a]?.disabled;)a=(a+s+r.length)%r.length;this.activeIndex=a,this.updateComplete.then(()=>this.scrollActiveIntoView())}moveActive(t){this.setActiveIndex(this.activeIndex+t)}selectActive(){let t=this.activeItem;t&&this.selectItem(t)}reposition(){this.position()}connectedCallback(){super.connectedCallback(),this.open&&this.updateComplete.then(()=>this.startPositioner())}disconnectedCallback(){super.disconnectedCallback(),this.stopPositioner(),this.hidePanelPopover()}showPanelPopover(){let t=this.panel;typeof t?.showPopover=="function"&&!t.matches(":popover-open")&&t.showPopover()}hidePanelPopover(){let t=this.panel;typeof t?.hidePopover=="function"&&t.matches(":popover-open")&&t.hidePopover()}startPositioner(){this.stopPositioner(),!(!this.anchor||!this.panel)&&(this.stopAutoUpdate=Od(this.anchor,this.panel,()=>{this.position()}))}stopPositioner(){this.stopAutoUpdate?.(),this.stopAutoUpdate=void 0}async position(){let{anchor:t,panel:r}=this;if(!this.open||!t||!r)return;this.showPanelPopover();let{x:n,y:a}=await Fd(t,r,{placement:this.placement,strategy:"fixed",middleware:[Nd(this.distance),Hd({padding:8}),Pd({padding:8}),Pl({padding:8,apply:({availableHeight:s})=>{r.style.setProperty("--auto-size-available-height",`${Math.max(s,0)}px`)}})]});Object.assign(r.style,{left:`${n}px`,top:`${a}px`})}selectItem(t){t.disabled||(this.recentKey&&(this.recentKeys=s0(this.recentKey,t)),this.dispatchEvent(new CustomEvent(us,{bubbles:!0,cancelable:!0,composed:!1,detail:{item:t,query:this.query}})))}scrollActiveIntoView(){let t=this.renderRoot.querySelector('[data-slash-item][aria-selected="true"]');if(!t)return;let r=this.visibleItems,n=this.list;if(n&&r.slice(0,this.activeIndex).every(a=>a.disabled)){n.scrollTop=0;return}if(n&&r.slice(this.activeIndex+1).every(a=>a.disabled)){n.scrollTop=n.scrollHeight;return}t.scrollIntoView({block:"nearest"})}willUpdate(t){super.willUpdate(t),(t.has("recentKey")||t.has("open")&&this.open)&&(this.recentKeys=Hu(this.recentKey));let r=t.has("items")&&!v4(t.get("items"),this.items),n=this.recentItems.length;(r||n!==this.recentCount)&&(this.recentCount=n,this.activeIndex=this.visibleItems.findIndex(a=>!a.disabled))}updated(t){super.updated(t),(t.has("open")||t.has("anchor"))&&(this.open?this.startPositioner():(this.stopPositioner(),this.hidePanelPopover())),this.open&&this.position(),(t.has("items")||t.has("open")&&this.open)&&this.scrollActiveIntoView()}renderItem(t,r,n){let a=r===this.activeIndex,s=!this.hideKeys&&t.value&&t.value!==t.label&&!t.value.includes(`
|
|
368
|
+
</zn-dialog>`}submitDialog(){let t=this.querySelector("form");!t&&this.action&&(t=document.createElement("form"),t.action=this.action,t.method="POST",Array.from(this.attributes).forEach(r=>{r.name.startsWith("data-")&&t?.setAttribute(r.name,r.value)}),this.querySelectorAll("input").forEach(r=>{t?.appendChild(r.cloneNode())}),this.appendChild(t)),t&&t.reportValidity()&&(document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:t}})),this.showLoading&&(this.failed=!1,this.failure="",this.loading=!0,this.dialog.closer.disabled=!0,this.submitted=t,t.addEventListener("complete",this.settle),t.addEventListener("error",this.settle)),t.requestSubmit(),this.showLoading||this.hide())}};Ze.styles=z(a0),Ze.dependencies={"zn-dialog":ka},c([d({reflect:!0})],Ze.prototype,"variant",2),c([d({reflect:!0})],Ze.prototype,"size",2),c([d()],Ze.prototype,"type",2),c([d({type:Boolean,reflect:!0})],Ze.prototype,"open",2),c([d()],Ze.prototype,"caption",2),c([d()],Ze.prototype,"action",2),c([d()],Ze.prototype,"content",2),c([d()],Ze.prototype,"confirmText",2),c([d()],Ze.prototype,"cancelText",2),c([d({type:Boolean,attribute:"hide-icon"})],Ze.prototype,"hideIcon",2),c([d({type:Boolean,attribute:"show-loading"})],Ze.prototype,"showLoading",2),c([d({reflect:!0})],Ze.prototype,"trigger",2),c([d()],Ze.prototype,"announcement",2),c([d({attribute:"footer-text"})],Ze.prototype,"footerText",2),c([F("zn-dialog")],Ze.prototype,"dialog",2),c([I()],Ze.prototype,"loading",2),c([I()],Ze.prototype,"failed",2),c([I()],Ze.prototype,"failure",2);var Ul=Ze;Ze.define("zn-confirm");function It(o){let i=document.createDocumentFragment();return Ja(o,i),i.firstElementChild}var Ce=(o="value")=>(i,t)=>{let r=i.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(a,s,l){let p=r.getPropertyOptions(o),h=typeof p.attribute=="string"?p.attribute:o;if(a===h){let m=p.converter||fo,b=(typeof m=="function"?m:m?.fromAttribute??fo.fromAttribute)(l,p.type);this[o]!==b&&(this[t]=b)}n.call(this,a,s,l)}};var u4=new Map;function Bd(o){return(Array.isArray(o)?o:o.split(",")).reduce((t,r)=>{let n=u4.get(r.trim());return n?[...t,...n]:t},[])}function m4(o){return typeof o=="object"&&o!==null&&typeof o.label=="string"}function zo(o){let i=o?.trim();if(!i)return[];if(i.startsWith("["))try{let t=JSON.parse(i);return Array.isArray(t)?t.filter(m4):[]}catch{return console.warn("slash-items could not be parsed as JSON",i),[]}return i.split(",").map(t=>t.trim()).filter(t=>t!=="").map(t=>{let r=t.indexOf("=");if(r===-1)return{label:t,value:t};let n=t.slice(0,r).trim(),a=t.slice(r+1).trim();return{label:n||a,value:a}}).filter(t=>t.label!=="")}function f4(o){return o.keywords?(Array.isArray(o.keywords)?o.keywords:o.keywords.split(",")).map(t=>t.trim().toLowerCase()).filter(t=>t!==""):[]}function g4(o,i){let t=o.label.toLowerCase();return t.startsWith(i)?0:t.split(/\s+/).some(r=>r.startsWith(i))?1:t.includes(i)?2:f4(o).some(r=>r.includes(i))?3:o.value?.toLowerCase().includes(i)?4:o.description?.toLowerCase().includes(i)?5:-1}function Vd(o,i){let t=i.trim().toLowerCase();return o.map((r,n)=>({item:r,index:n,score:t?g4(r,t):0})).filter(r=>r.score!==-1).sort((r,n)=>r.score-n.score||(r.item.order??r.index)-(n.item.order??n.index)||r.index-n.index).map(r=>r.item)}var Nu="zn-slash-recent:",b4=10;function Pu(o){return o.action?`action:${o.action}`:`value:${o.value||o.label}`}function Hu(o){if(!o)return[];try{let i=JSON.parse(localStorage.getItem(Nu+o)??"[]");return Array.isArray(i)?i.filter(t=>typeof t=="string"):[]}catch{return[]}}function s0(o,i){if(!o)return[];let t=Pu(i),r=[t,...Hu(o).filter(n=>n!==t)].slice(0,b4);try{localStorage.setItem(Nu+o,JSON.stringify(r))}catch{}return r}function l0(o){if(o)try{localStorage.removeItem(Nu+o)}catch{}}var c0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{--slash-menu-width:320px;--slash-menu-max-height:260px;--slash-menu-border-radius:12px;--slash-menu-item-border-radius:8px;display:contents}:host(:not([open])) .slash-menu__panel{display:none}.slash-menu__panel{display:flex;flex-direction:column;position:fixed;inset:0 auto auto 0;margin:0;width:var(--slash-menu-width);max-width:var(--auto-size-available-width,none);max-height:min(var(--slash-menu-max-height),var(--auto-size-available-height,100vh));z-index:var(--zn-z-index-dropdown);overflow:hidden;background:var(--zn-panel-background-color);border:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);border-radius:var(--slash-menu-border-radius);box-shadow:var(--zn-shadow-medium);font-family:var(--zn-font-sans);font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text))}.slash-menu__list{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--zn-spacing-3x-small,2px);min-height:0;overflow-y:auto;overscroll-behavior:none;padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px)}.slash-menu__group-heading,.slash-menu__footer,.slash-menu__empty{padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);-moz-user-select:none;user-select:none;-webkit-user-select:none}.slash-menu__group-heading{padding-top:var(--zn-spacing-x-small,8px);font-weight:var(--zn-font-weight-semibold);text-transform:uppercase;letter-spacing:0.06em;color:var(--zn-color-neutral-400)}.slash-menu__footer{border-top:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);margin-top:var(--zn-spacing-2x-small,4px)}.slash-menu__divider{height:var(--zn-panel-border-width,1px);margin:var(--zn-spacing-2x-small,4px) 0;background:var(--zn-panel-border-color)}.slash-menu__hints{display:flex;flex:0 0 auto;align-items:center;gap:var(--zn-spacing-small,12px);padding:var(--zn-spacing-x-small,8px) var(--zn-spacing-small,12px);border-top:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);-moz-user-select:none;user-select:none;-webkit-user-select:none}.slash-menu__hint{display:flex;align-items:center;gap:var(--zn-spacing-2x-small,4px)}.slash-menu__key{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 var(--zn-spacing-2x-small,4px);border:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);border-radius:var(--zn-border-radius,6px);background:var(--zn-panel-background-color);font-family:var(--zn-font-sans);font-size:var(--zn-font-size-2x-small);line-height:1;color:var(--zn-color-neutral-600)}.slash-menu__item{display:flex;align-items:center;gap:var(--zn-spacing-small,12px);width:100%;padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px);border:none;border-radius:var(--slash-menu-item-border-radius);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.slash-menu__item:hover:not(.slash-menu__item--disabled){background:var(--zn-input-background-color-hover)}.slash-menu__item--active,.slash-menu__item--active:hover:not(.slash-menu__item--disabled){background:rgba(var(--zn-color-primary),0.08)}.slash-menu__item--disabled{opacity:0.5;cursor:not-allowed}.slash-menu__icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;border:solid var(--zn-panel-border-width,1px) rgba(var(--zn-color-primary),0.18);border-radius:var(--slash-menu-item-border-radius);background:rgba(var(--zn-color-primary),0.06);color:var(--zn-color-neutral-700)}.slash-menu__icon--empty{border-color:transparent;background:none}.slash-menu__item--active .slash-menu__icon{border-color:rgba(var(--zn-color-primary),0.3);background:rgba(var(--zn-color-primary),0.14);color:rgb(var(--zn-color-primary))}.slash-menu__text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.slash-menu__label{font-weight:var(--zn-font-weight-semibold);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-menu__description{font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-menu__token{flex:0 1 auto;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--zn-font-mono);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-600)}`;var us="zn-slash-item-select";function v4(o,i){return!!o&&o.length===i.length&&o.every((t,r)=>t.label===i[r].label&&t.value===i[r].value&&t.disabled===i[r].disabled)}var et=class extends k{constructor(){super(...arguments);this.open=!1;this.items=[];this.query="";this.heading="Insert";this.emptyText="No matches";this.maxItems=25;this.hideKeys=!1;this.hideHints=!1;this.recentKey="";this.maxRecent=3;this.recentHeading="Recently used";this.anchor=null;this.placement="bottom-start";this.distance=4;this.activeIndex=0;this.recentKeys=[];this.recentCount=0;this.handleItemMouseDown=t=>{t.preventDefault(),t.stopPropagation();let r=Number(t.currentTarget.dataset.index),n=this.visibleItems[r];n&&(this.activeIndex=r,this.selectItem(n))}}get listItems(){return this.maxItems>0?this.items.slice(0,this.maxItems):this.items}get recentItems(){if(!this.recentKey||this.maxRecent<1||this.query.trim()!=="")return[];let t=new Map;for(let n of this.items){let a=Pu(n);!n.disabled&&!t.has(a)&&t.set(a,n)}let r=this.recentKeys.map(n=>t.get(n)).filter(n=>n!==void 0).slice(0,this.maxRecent);return r.length<this.items.length?r:[]}get visibleItems(){return[...this.recentItems,...this.listItems]}get activeItem(){return this.visibleItems[this.activeIndex]}show(){this.open=!0}hide(){this.open=!1}clearRecent(){l0(this.recentKey),this.recentKeys=[]}setActiveIndex(t){let r=this.visibleItems;if(!r.filter(l=>!l.disabled).length){this.activeIndex=-1;return}let a=(t+r.length)%r.length,s=t<this.activeIndex?-1:1;for(;r[a]?.disabled;)a=(a+s+r.length)%r.length;this.activeIndex=a,this.updateComplete.then(()=>this.scrollActiveIntoView())}moveActive(t){this.setActiveIndex(this.activeIndex+t)}selectActive(){let t=this.activeItem;t&&this.selectItem(t)}reposition(){this.position()}connectedCallback(){super.connectedCallback(),this.open&&this.updateComplete.then(()=>this.startPositioner())}disconnectedCallback(){super.disconnectedCallback(),this.stopPositioner(),this.hidePanelPopover()}showPanelPopover(){let t=this.panel;typeof t?.showPopover=="function"&&!t.matches(":popover-open")&&t.showPopover()}hidePanelPopover(){let t=this.panel;typeof t?.hidePopover=="function"&&t.matches(":popover-open")&&t.hidePopover()}startPositioner(){this.stopPositioner(),!(!this.anchor||!this.panel)&&(this.stopAutoUpdate=Od(this.anchor,this.panel,()=>{this.position()}))}stopPositioner(){this.stopAutoUpdate?.(),this.stopAutoUpdate=void 0}async position(){let{anchor:t,panel:r}=this;if(!this.open||!t||!r)return;this.showPanelPopover();let{x:n,y:a}=await Fd(t,r,{placement:this.placement,strategy:"fixed",middleware:[Nd(this.distance),Hd({padding:8}),Pd({padding:8}),Pl({padding:8,apply:({availableHeight:s})=>{r.style.setProperty("--auto-size-available-height",`${Math.max(s,0)}px`)}})]});Object.assign(r.style,{left:`${n}px`,top:`${a}px`})}selectItem(t){t.disabled||(this.recentKey&&(this.recentKeys=s0(this.recentKey,t)),this.dispatchEvent(new CustomEvent(us,{bubbles:!0,cancelable:!0,composed:!1,detail:{item:t,query:this.query}})))}scrollActiveIntoView(){let t=this.renderRoot.querySelector('[data-slash-item][aria-selected="true"]');if(!t)return;let r=this.visibleItems,n=this.list;if(n&&r.slice(0,this.activeIndex).every(a=>a.disabled)){n.scrollTop=0;return}if(n&&r.slice(this.activeIndex+1).every(a=>a.disabled)){n.scrollTop=n.scrollHeight;return}t.scrollIntoView({block:"nearest"})}willUpdate(t){super.willUpdate(t),(t.has("recentKey")||t.has("open")&&this.open)&&(this.recentKeys=Hu(this.recentKey));let r=t.has("items")&&!v4(t.get("items"),this.items),n=this.recentItems.length;(r||n!==this.recentCount)&&(this.recentCount=n,this.activeIndex=this.visibleItems.findIndex(a=>!a.disabled))}updated(t){super.updated(t),(t.has("open")||t.has("anchor"))&&(this.open?this.startPositioner():(this.stopPositioner(),this.hidePanelPopover())),this.open&&this.position(),(t.has("items")||t.has("open")&&this.open)&&this.scrollActiveIntoView()}renderItem(t,r,n){let a=r===this.activeIndex,s=!this.hideKeys&&t.value&&t.value!==t.label&&!t.value.includes(`
|
|
368
369
|
`)?t.value:"";return u`
|
|
369
370
|
<button
|
|
370
371
|
type="button"
|
|
@@ -421,7 +422,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
421
422
|
<div part="footer" class="slash-menu__footer">${t} more — keep typing to narrow</div>`:""}
|
|
422
423
|
</div>
|
|
423
424
|
${this.hideHints?"":this.renderHints()}
|
|
424
|
-
</div>`}};Ze.styles=z(c0),Ze.dependencies={"zn-icon":ne},c([F(".slash-menu__panel")],Ze.prototype,"panel",2),c([F(".slash-menu__list")],Ze.prototype,"list",2),c([d({type:Boolean,reflect:!0})],Ze.prototype,"open",2),c([d({type:Array})],Ze.prototype,"items",2),c([d()],Ze.prototype,"query",2),c([d()],Ze.prototype,"heading",2),c([d({attribute:"empty-text"})],Ze.prototype,"emptyText",2),c([d({attribute:"max-items",type:Number})],Ze.prototype,"maxItems",2),c([d({attribute:"hide-keys",type:Boolean})],Ze.prototype,"hideKeys",2),c([d({attribute:"hide-hints",type:Boolean})],Ze.prototype,"hideHints",2),c([d({attribute:"recent-key"})],Ze.prototype,"recentKey",2),c([d({attribute:"max-recent",type:Number})],Ze.prototype,"maxRecent",2),c([d({attribute:"recent-heading"})],Ze.prototype,"recentHeading",2),c([d({attribute:!1})],Ze.prototype,"anchor",2),c([d()],Ze.prototype,"placement",2),c([d({type:Number})],Ze.prototype,"distance",2),c([I()],Ze.prototype,"activeIndex",2),c([I()],Ze.prototype,"recentKeys",2);var y4=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize"];function x4(o){let i=parseFloat(o.lineHeight);if(!Number.isNaN(i))return i;let t=parseFloat(o.fontSize);return Number.isNaN(t)?16:t*1.2}function Fu(o,i){let t=o.ownerDocument,r=getComputedStyle(o),n=o.nodeName==="INPUT",a=t.createElement("div"),s=a.style,l=r;s.position="absolute",s.visibility="hidden",s.top="0",s.left="-9999px",s.whiteSpace=n?"pre":"pre-wrap",s.overflow="hidden",n||(s.wordWrap="break-word"),y4.forEach(f=>{let b=l[f];typeof b=="string"&&(s[f]=b)}),n&&(s.height="auto");let p=o.value.slice(0,i);a.textContent=n?p.replace(/\s/g,"\xA0"):p;let h=t.createElement("span");h.textContent=o.value.slice(i)||".",a.appendChild(h),t.body.appendChild(a);let m={top:h.offsetTop+(parseFloat(r.borderTopWidth)||0),left:h.offsetLeft+(parseFloat(r.borderLeftWidth)||0),height:x4(r)};return a.remove(),m}function Bu(o,{top:i,left:t,height:r}){let n=o.getBoundingClientRect(),a=Math.max(n.top,n.bottom-r),s=Math.min(Math.max(n.top+i-o.scrollTop,n.top),a),l=Math.min(Math.max(n.left+t-o.scrollLeft,n.left),n.right);return new DOMRect(l,s,1,r)}function aV(o,i){return Bu(o,Fu(o,i))}var w4=40,_o=class{constructor(i,t){this.caretAnchor={getBoundingClientRect:()=>this.caretRect()};this.field=null;this.menu=null;this.triggerIndex=-1;this.query="";this.dismissedIndex=-1;this.resolveToken=0;this.inserting=!1;this.isOpen=!1;this.listening=!1;this.handleInput=()=>this.detect();this.handleCaretMove=()=>this.detect();this.handleKeyUp=i=>{this.isOpen&&(i.key==="ArrowDown"||i.key==="ArrowUp")||(i.key.startsWith("Arrow")||i.key==="Home"||i.key==="End")&&this.detect()};this.handleBlur=()=>this.close();this.handleScroll=()=>{this.isOpen&&this.menu?.reposition()};this.handleKeyDown=i=>{if(!this.isOpen||i.isComposing)return;let t=()=>{i.preventDefault(),i.stopPropagation()};switch(i.key){case"Escape":t(),this.dismissedIndex=this.triggerIndex,this.close();return;case"ArrowDown":t(),this.menu?.moveActive(1);return;case"ArrowUp":t(),this.menu?.moveActive(-1);return;case"Enter":case"Tab":{if(i.shiftKey||i.metaKey||i.ctrlKey||i.altKey)return;let r=this.menu?.activeItem;if(!r){this.close();return}t(),this.select(r)}}};this.handleItemSelect=i=>{let{item:t}=i.detail;t&&this.select(t)};this.host=i,this.options=t,i.addController(this)}get open(){return this.isOpen}hostConnected(){this.addListeners()}hostDisconnected(){this.removeListeners()}attach(i){this.field===i&&this.listening||(this.removeListeners(),this.field=i,this.caretAnchor.contextElement=i,this.addListeners())}detach(){this.removeListeners(),this.field=null}addListeners(){let i=this.field;!i||this.listening||(i.addEventListener("keydown",this.handleKeyDown,{capture:!0}),i.addEventListener("input",this.handleInput),i.addEventListener("keyup",this.handleKeyUp),i.addEventListener("click",this.handleCaretMove),i.addEventListener("blur",this.handleBlur),i.addEventListener("scroll",this.handleScroll),this.listening=!0)}removeListeners(){let i=this.field;!i||!this.listening||(this.close(),i.removeEventListener("keydown",this.handleKeyDown,{capture:!0}),i.removeEventListener("input",this.handleInput),i.removeEventListener("keyup",this.handleKeyUp),i.removeEventListener("click",this.handleCaretMove),i.removeEventListener("blur",this.handleBlur),i.removeEventListener("scroll",this.handleScroll),this.listening=!1)}close(){this.resolveToken++,this.triggerIndex=-1,this.query="",this.isOpen&&(this.isOpen=!1,this.menu?.hide(),this.field?.setAttribute("aria-expanded","false"))}requestOpen(){this.dismissedIndex=-1,this.detect()}caretRect(){let i=this.field;if(!i)return new DOMRect;let t=this.triggerIndex>=0?this.triggerIndex:i.selectionStart??0,r=i.clientWidth,n=this.measured;return(!n||n.index!==t||n.width!==r||n.value!==i.value)&&(this.measured={value:i.value,index:t,width:r,coordinates:Fu(i,t)}),Bu(i,this.measured.coordinates)}detect(){if(this.inserting)return;let i=this.field;if(!i||i.disabled||i.readOnly){this.close();return}let t=this.options.trigger?.()||"/",r=i.selectionStart;if(!t||r===null||i.selectionEnd!==r){this.close();return}let n=i.value,a=n.lastIndexOf(t,Math.max(0,r-t.length));if(a===-1||a+t.length>r){this.close();return}let s=a>0?n.charAt(a-1):"";if(s!==""&&!/\s/.test(s)){this.close();return}let l=n.slice(a+t.length,r);if(l.length>w4||/[\r\n]/.test(l)){this.close();return}if(a===this.dismissedIndex){this.close();return}this.triggerIndex=a,this.query=l,this.resolve(l)}async resolve(i){let t=++this.resolveToken,r=[];try{r=await this.options.items(i)}catch(s){console.warn("slash menu items could not be resolved",s)}if(t!==this.resolveToken)return;let n=Vd(r,i);if(!n.length){this.close();return}let a=await this.options.menu();!a||t!==this.resolveToken||(a!==this.menu&&(this.menu?.removeEventListener(us,this.handleItemSelect),a.addEventListener(us,this.handleItemSelect),this.menu=a),a.anchor=this.caretAnchor,a.query=i,a.items=n,this.isOpen||(this.isOpen=!0,this.dismissedIndex=-1,a.show(),this.field?.setAttribute("aria-expanded","true"),this.field?.setAttribute("aria-haspopup","listbox")),await a.updateComplete,this.isOpen&&a.reposition())}select(i){let t=this.field,r=this.triggerIndex,n=t?.selectionStart??r,a=this.query,s=this.options.trigger?.()||"/";if(i.disabled||(this.close(),!t||r<0))return;let l=this.options.onSelect?.(i,a)===!1,p=l?"":i.value??"";t.value.slice(r,n)===s+a&&(this.replace(t,r,n,p,i),!l&&p&&this.options.onInsert?.(i,p))}replace(i,t,r,n,a){this.inserting=!0;try{i.focus({preventScroll:!0}),i.setSelectionRange(t,r);let s=!1;try{s=i.ownerDocument.execCommand("insertText",!1,n)}catch{s=!1}s||(i.setRangeText(n,t,r,"end"),i.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})));let l=Math.min(Math.max(a.caretOffset??n.length,0),n.length);i.setSelectionRange(t+l,t+l)}finally{this.inserting=!1}this.host.requestUpdate()}};var Sa=Ze;Ze.define("zn-slash-menu");var ar=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.PROPERTY&&o.type!==dr.ATTRIBUTE&&o.type!==dr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!_d(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[i]){if(i===vt||i===B)return i;let t=o.element,r=o.name;if(o.type===dr.PROPERTY){if(i===t[r])return vt}else if(o.type===dr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(r))return vt}else if(o.type===dr.ATTRIBUTE&&t.getAttribute(r)===i+"")return vt;return os(o),i}});var Vu=new Set,ms=new Map,Gn,Uu="ltr",ju="en",d0=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(d0){let o=new MutationObserver(p0);Uu=document.documentElement.dir||"ltr",ju=document.documentElement.lang||navigator.language,o.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function jl(...o){o.map(i=>{let t=i.$code.toLowerCase();ms.has(t)?ms.set(t,Object.assign(Object.assign({},ms.get(t)),i)):ms.set(t,i),Gn||(Gn=i)}),p0()}function p0(){d0&&(Uu=document.documentElement.dir||"ltr",ju=document.documentElement.lang||navigator.language),[...Vu.keys()].map(o=>{typeof o.requestUpdate=="function"&&o.requestUpdate()})}var Ud=class{constructor(i){this.host=i,this.host.addController(this)}hostConnected(){Vu.add(this.host)}hostDisconnected(){Vu.delete(this.host)}dir(){return`${this.host.dir||Uu}`.toLowerCase()}lang(){let i=`${this.host.lang||ju}`.toLowerCase().replace(/_/g,"-");try{return new Intl.Locale(i),i}catch{return Gn?Gn.$code.toLowerCase():"en"}}getTranslationData(i){var t,r;let n;try{n=new Intl.Locale(i.replace(/_/g,"-"))}catch{return{locale:void 0,language:"",region:"",primary:void 0,secondary:void 0}}let a=n.language.toLowerCase(),s=(r=(t=n.region)===null||t===void 0?void 0:t.toLowerCase())!==null&&r!==void 0?r:"",l=ms.get(`${a}-${s}`),p=ms.get(a);return{locale:n,language:a,region:s,primary:l,secondary:p}}exists(i,t){var r;let{primary:n,secondary:a}=this.getTranslationData((r=t.lang)!==null&&r!==void 0?r:this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[i]||a&&a[i]||t.includeFallback&&Gn&&Gn[i])}term(i,...t){let{primary:r,secondary:n}=this.getTranslationData(this.lang()),a;if(r&&r[i])a=r[i];else if(n&&n[i])a=n[i];else if(Gn&&Gn[i])a=Gn[i];else return console.error(`No translation found for: ${String(i)}`),String(i);return typeof a=="function"?a(...t):a}date(i,t){return i=new Date(i),new Intl.DateTimeFormat(this.lang(),t).format(i)}number(i,t){return i=Number(i),isNaN(i)?"":new Intl.NumberFormat(this.lang(),t).format(i)}relativeTime(i,t,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(i,t)}};var h0={$code:"en",$name:"English",$dir:"ltr",onChange:"onChange",showPassword:"Show password",hidePassword:"Hide password",clearEntry:"Clear entry",numOptionsSelected:o=>o===0?"No options selected":o===1?"1 option selected":`${o} options selected`,fileButtonText:"Choose a file",fileButtonTextMultiple:"Choose files",folderButtonText:"Choose a folder",fileDragDrop:"Drop files here to upload",folderDragDrop:"Drop folder here to upload",numFilesSelected:o=>o===0?"No files selected":o===1?"1 file selected":`${o} files selected`};jl(h0);var u0=h0;var Ft=class extends Ud{};jl(u0);var m0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:none}`;var gr=class extends k{constructor(){super(...arguments);this.label="";this.disabled=!1}toSlashMenuItem(){return{label:this.label||this.insertValue,value:this.insertValue,icon:this.icon,description:this.description,keywords:this.keywords,group:this.group,order:this.order,action:this.action,caretOffset:this.caretOffset,disabled:this.disabled}}get insertValue(){return this.value??(this.textContent??"").trim()}render(){return u`
|
|
425
|
+
</div>`}};et.styles=z(c0),et.dependencies={"zn-icon":ne},c([F(".slash-menu__panel")],et.prototype,"panel",2),c([F(".slash-menu__list")],et.prototype,"list",2),c([d({type:Boolean,reflect:!0})],et.prototype,"open",2),c([d({type:Array})],et.prototype,"items",2),c([d()],et.prototype,"query",2),c([d()],et.prototype,"heading",2),c([d({attribute:"empty-text"})],et.prototype,"emptyText",2),c([d({attribute:"max-items",type:Number})],et.prototype,"maxItems",2),c([d({attribute:"hide-keys",type:Boolean})],et.prototype,"hideKeys",2),c([d({attribute:"hide-hints",type:Boolean})],et.prototype,"hideHints",2),c([d({attribute:"recent-key"})],et.prototype,"recentKey",2),c([d({attribute:"max-recent",type:Number})],et.prototype,"maxRecent",2),c([d({attribute:"recent-heading"})],et.prototype,"recentHeading",2),c([d({attribute:!1})],et.prototype,"anchor",2),c([d()],et.prototype,"placement",2),c([d({type:Number})],et.prototype,"distance",2),c([I()],et.prototype,"activeIndex",2),c([I()],et.prototype,"recentKeys",2);var y4=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize"];function x4(o){let i=parseFloat(o.lineHeight);if(!Number.isNaN(i))return i;let t=parseFloat(o.fontSize);return Number.isNaN(t)?16:t*1.2}function Fu(o,i){let t=o.ownerDocument,r=getComputedStyle(o),n=o.nodeName==="INPUT",a=t.createElement("div"),s=a.style,l=r;s.position="absolute",s.visibility="hidden",s.top="0",s.left="-9999px",s.whiteSpace=n?"pre":"pre-wrap",s.overflow="hidden",n||(s.wordWrap="break-word"),y4.forEach(f=>{let b=l[f];typeof b=="string"&&(s[f]=b)}),n&&(s.height="auto");let p=o.value.slice(0,i);a.textContent=n?p.replace(/\s/g,"\xA0"):p;let h=t.createElement("span");h.textContent=o.value.slice(i)||".",a.appendChild(h),t.body.appendChild(a);let m={top:h.offsetTop+(parseFloat(r.borderTopWidth)||0),left:h.offsetLeft+(parseFloat(r.borderLeftWidth)||0),height:x4(r)};return a.remove(),m}function Bu(o,{top:i,left:t,height:r}){let n=o.getBoundingClientRect(),a=Math.max(n.top,n.bottom-r),s=Math.min(Math.max(n.top+i-o.scrollTop,n.top),a),l=Math.min(Math.max(n.left+t-o.scrollLeft,n.left),n.right);return new DOMRect(l,s,1,r)}function aV(o,i){return Bu(o,Fu(o,i))}var w4=40,_o=class{constructor(i,t){this.caretAnchor={getBoundingClientRect:()=>this.caretRect()};this.field=null;this.menu=null;this.triggerIndex=-1;this.query="";this.dismissedIndex=-1;this.resolveToken=0;this.inserting=!1;this.isOpen=!1;this.listening=!1;this.handleInput=()=>this.detect();this.handleCaretMove=()=>this.detect();this.handleKeyUp=i=>{this.isOpen&&(i.key==="ArrowDown"||i.key==="ArrowUp")||(i.key.startsWith("Arrow")||i.key==="Home"||i.key==="End")&&this.detect()};this.handleBlur=()=>this.close();this.handleScroll=()=>{this.isOpen&&this.menu?.reposition()};this.handleKeyDown=i=>{if(!this.isOpen||i.isComposing)return;let t=()=>{i.preventDefault(),i.stopPropagation()};switch(i.key){case"Escape":t(),this.dismissedIndex=this.triggerIndex,this.close();return;case"ArrowDown":t(),this.menu?.moveActive(1);return;case"ArrowUp":t(),this.menu?.moveActive(-1);return;case"Enter":case"Tab":{if(i.shiftKey||i.metaKey||i.ctrlKey||i.altKey)return;let r=this.menu?.activeItem;if(!r){this.close();return}t(),this.select(r)}}};this.handleItemSelect=i=>{let{item:t}=i.detail;t&&this.select(t)};this.host=i,this.options=t,i.addController(this)}get open(){return this.isOpen}hostConnected(){this.addListeners()}hostDisconnected(){this.removeListeners()}attach(i){this.field===i&&this.listening||(this.removeListeners(),this.field=i,this.caretAnchor.contextElement=i,this.addListeners())}detach(){this.removeListeners(),this.field=null}addListeners(){let i=this.field;!i||this.listening||(i.addEventListener("keydown",this.handleKeyDown,{capture:!0}),i.addEventListener("input",this.handleInput),i.addEventListener("keyup",this.handleKeyUp),i.addEventListener("click",this.handleCaretMove),i.addEventListener("blur",this.handleBlur),i.addEventListener("scroll",this.handleScroll),this.listening=!0)}removeListeners(){let i=this.field;!i||!this.listening||(this.close(),i.removeEventListener("keydown",this.handleKeyDown,{capture:!0}),i.removeEventListener("input",this.handleInput),i.removeEventListener("keyup",this.handleKeyUp),i.removeEventListener("click",this.handleCaretMove),i.removeEventListener("blur",this.handleBlur),i.removeEventListener("scroll",this.handleScroll),this.listening=!1)}close(){this.resolveToken++,this.triggerIndex=-1,this.query="",this.isOpen&&(this.isOpen=!1,this.menu?.hide(),this.field?.setAttribute("aria-expanded","false"))}requestOpen(){this.dismissedIndex=-1,this.detect()}caretRect(){let i=this.field;if(!i)return new DOMRect;let t=this.triggerIndex>=0?this.triggerIndex:i.selectionStart??0,r=i.clientWidth,n=this.measured;return(!n||n.index!==t||n.width!==r||n.value!==i.value)&&(this.measured={value:i.value,index:t,width:r,coordinates:Fu(i,t)}),Bu(i,this.measured.coordinates)}detect(){if(this.inserting)return;let i=this.field;if(!i||i.disabled||i.readOnly){this.close();return}let t=this.options.trigger?.()||"/",r=i.selectionStart;if(!t||r===null||i.selectionEnd!==r){this.close();return}let n=i.value,a=n.lastIndexOf(t,Math.max(0,r-t.length));if(a===-1||a+t.length>r){this.close();return}let s=a>0?n.charAt(a-1):"";if(s!==""&&!/\s/.test(s)){this.close();return}let l=n.slice(a+t.length,r);if(l.length>w4||/[\r\n]/.test(l)){this.close();return}if(a===this.dismissedIndex){this.close();return}this.triggerIndex=a,this.query=l,this.resolve(l)}async resolve(i){let t=++this.resolveToken,r=[];try{r=await this.options.items(i)}catch(s){console.warn("slash menu items could not be resolved",s)}if(t!==this.resolveToken)return;let n=Vd(r,i);if(!n.length){this.close();return}let a=await this.options.menu();!a||t!==this.resolveToken||(a!==this.menu&&(this.menu?.removeEventListener(us,this.handleItemSelect),a.addEventListener(us,this.handleItemSelect),this.menu=a),a.anchor=this.caretAnchor,a.query=i,a.items=n,this.isOpen||(this.isOpen=!0,this.dismissedIndex=-1,a.show(),this.field?.setAttribute("aria-expanded","true"),this.field?.setAttribute("aria-haspopup","listbox")),await a.updateComplete,this.isOpen&&a.reposition())}select(i){let t=this.field,r=this.triggerIndex,n=t?.selectionStart??r,a=this.query,s=this.options.trigger?.()||"/";if(i.disabled||(this.close(),!t||r<0))return;let l=this.options.onSelect?.(i,a)===!1,p=l?"":i.value??"";t.value.slice(r,n)===s+a&&(this.replace(t,r,n,p,i),!l&&p&&this.options.onInsert?.(i,p))}replace(i,t,r,n,a){this.inserting=!0;try{i.focus({preventScroll:!0}),i.setSelectionRange(t,r);let s=!1;try{s=i.ownerDocument.execCommand("insertText",!1,n)}catch{s=!1}s||(i.setRangeText(n,t,r,"end"),i.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})));let l=Math.min(Math.max(a.caretOffset??n.length,0),n.length);i.setSelectionRange(t+l,t+l)}finally{this.inserting=!1}this.host.requestUpdate()}};var Sa=et;et.define("zn-slash-menu");var ar=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.PROPERTY&&o.type!==dr.ATTRIBUTE&&o.type!==dr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!_d(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[i]){if(i===vt||i===B)return i;let t=o.element,r=o.name;if(o.type===dr.PROPERTY){if(i===t[r])return vt}else if(o.type===dr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(r))return vt}else if(o.type===dr.ATTRIBUTE&&t.getAttribute(r)===i+"")return vt;return os(o),i}});var Vu=new Set,ms=new Map,Gn,Uu="ltr",ju="en",d0=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(d0){let o=new MutationObserver(p0);Uu=document.documentElement.dir||"ltr",ju=document.documentElement.lang||navigator.language,o.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function jl(...o){o.map(i=>{let t=i.$code.toLowerCase();ms.has(t)?ms.set(t,Object.assign(Object.assign({},ms.get(t)),i)):ms.set(t,i),Gn||(Gn=i)}),p0()}function p0(){d0&&(Uu=document.documentElement.dir||"ltr",ju=document.documentElement.lang||navigator.language),[...Vu.keys()].map(o=>{typeof o.requestUpdate=="function"&&o.requestUpdate()})}var Ud=class{constructor(i){this.host=i,this.host.addController(this)}hostConnected(){Vu.add(this.host)}hostDisconnected(){Vu.delete(this.host)}dir(){return`${this.host.dir||Uu}`.toLowerCase()}lang(){let i=`${this.host.lang||ju}`.toLowerCase().replace(/_/g,"-");try{return new Intl.Locale(i),i}catch{return Gn?Gn.$code.toLowerCase():"en"}}getTranslationData(i){var t,r;let n;try{n=new Intl.Locale(i.replace(/_/g,"-"))}catch{return{locale:void 0,language:"",region:"",primary:void 0,secondary:void 0}}let a=n.language.toLowerCase(),s=(r=(t=n.region)===null||t===void 0?void 0:t.toLowerCase())!==null&&r!==void 0?r:"",l=ms.get(`${a}-${s}`),p=ms.get(a);return{locale:n,language:a,region:s,primary:l,secondary:p}}exists(i,t){var r;let{primary:n,secondary:a}=this.getTranslationData((r=t.lang)!==null&&r!==void 0?r:this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[i]||a&&a[i]||t.includeFallback&&Gn&&Gn[i])}term(i,...t){let{primary:r,secondary:n}=this.getTranslationData(this.lang()),a;if(r&&r[i])a=r[i];else if(n&&n[i])a=n[i];else if(Gn&&Gn[i])a=Gn[i];else return console.error(`No translation found for: ${String(i)}`),String(i);return typeof a=="function"?a(...t):a}date(i,t){return i=new Date(i),new Intl.DateTimeFormat(this.lang(),t).format(i)}number(i,t){return i=Number(i),isNaN(i)?"":new Intl.NumberFormat(this.lang(),t).format(i)}relativeTime(i,t,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(i,t)}};var h0={$code:"en",$name:"English",$dir:"ltr",onChange:"onChange",showPassword:"Show password",hidePassword:"Hide password",clearEntry:"Clear entry",numOptionsSelected:o=>o===0?"No options selected":o===1?"1 option selected":`${o} options selected`,fileButtonText:"Choose a file",fileButtonTextMultiple:"Choose files",folderButtonText:"Choose a folder",fileDragDrop:"Drop files here to upload",folderDragDrop:"Drop folder here to upload",numFilesSelected:o=>o===0?"No files selected":o===1?"1 file selected":`${o} files selected`};jl(h0);var u0=h0;var Ft=class extends Ud{};jl(u0);var m0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:none}`;var gr=class extends k{constructor(){super(...arguments);this.label="";this.disabled=!1}toSlashMenuItem(){return{label:this.label||this.insertValue,value:this.insertValue,icon:this.icon,description:this.description,keywords:this.keywords,group:this.group,order:this.order,action:this.action,caretOffset:this.caretOffset,disabled:this.disabled}}get insertValue(){return this.value??(this.textContent??"").trim()}render(){return u`
|
|
425
426
|
<slot></slot>`}};gr.styles=z(m0),c([d()],gr.prototype,"label",2),c([d()],gr.prototype,"value",2),c([d()],gr.prototype,"icon",2),c([d()],gr.prototype,"description",2),c([d()],gr.prototype,"keywords",2),c([d()],gr.prototype,"group",2),c([d({type:Number})],gr.prototype,"order",2),c([d({attribute:"caret-offset",type:Number})],gr.prototype,"caretOffset",2),c([d()],gr.prototype,"action",2),c([d({type:Boolean,reflect:!0})],gr.prototype,"disabled",2);var Gl=gr;gr.define("zn-slash-item");var Ee=_`.form-control-input{margin:var(--zn-spacing-2x-small) 3px 3px 0}.form-control-input--flush{margin:0}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control--has-label .form-control__label{display:inline-block;color:var(--zn-input-label-color);font-weight:var(--zn-input-label-font-weight);line-height:var(--zn-input-label-line-height);margin-bottom:var(--zn-spacing-x-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--zn-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control__label{font-size:var(--zn-input-label-font-size-large)}:host([required]) .form-control--has-label .form-control__label::after{content:var(--zn-input-required-content);margin-inline-start:var(--zn-input-required-content-offset);color:var(--zn-input-required-content-color)}.form-control--has-label.form-control--radio-group .form-control__label,.form-control--has-label.form-control--checkbox-group .form-control__label{margin-bottom:0}.form-control--has-label.form-control--has-label-tooltip .form-control__label{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small)}.form-control--has-label.form-control--small .form-control__label{font-size:var(--zn-input-label-font-size-small)}.form-control--label-tooltip{color:var(--zn-color-neutral-700);font-size:var(--zn-font-size-small)}.form-control--label-tooltip zn-icon{--icon-color:var(--zn-color-neutral-700);--icon-size:var(--zn-font-size-small)}.form-control--has-label.form-control--has-context-note{display:flex;justify-content:space-between;flex-wrap:wrap}.form-control__label-context-note{color:var(--zn-input-help-text-color);font-size:var(--zn-font-size-small);margin-bottom:var(--zn-spacing-2x-small)}.form-control--has-label.form-control--has-context-note .form-control-input{width:100%}.form-control--has-help-text .form-control__help-text,.radio--has-description .radio__description,.checkbox--has-description .checkbox__description{display:block;color:var(--zn-input-help-text-color);margin-top:var(--zn-spacing-x-small)}.radio--has-description .radio__description,.checkbox--has-description .checkbox__description{margin-top:0.375rem}.radio--has-selected-content .radio__selected-content,.checkbox--has-selected-content .checkbox__selected-content{display:block;margin-top:var(--zn-spacing-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--zn-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text,.radio--has-description .radio__description,.checkbox--has-description .checkbox__description{font-size:var(--zn-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--zn-input-help-text-font-size-large)}.form-control--has-help-text.form-control--radio-group .form-control__help-text,.form-control--has-help-text.form-control--checkbox-group .form-control__help-text{margin-top:var(--zn-spacing-medium)}.form-control--has-help-text .switch .form-control__help-text{margin-top:var(--zn-spacing-3x-small)}.form-control--checkbox-contained-wrapper,.form-control--radio-contained-wrapper{height:100%}`;var f0=_`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.input{flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;font-family:var(--zn-input-font-family),sans-serif;font-weight:var(--zn-input-font-weight);letter-spacing:var(--zn-input-letter-spacing);vertical-align:middle;overflow:hidden;cursor:text;transition:var(--zn-transition-fast) color,var(--zn-transition-fast) border,var(--zn-transition-fast) background-color}.input--standard{background-color:var(--zn-input-background-color);border:solid var(--zn-input-border-width) var(--zn-input-border-color)}.input--standard:hover:not(.input--disabled,.input--filled){background-color:var(--zn-input-background-color-hover);border-color:var(--zn-input-border-color-hover)}.input--filled:hover:not(.input--disabled){background-color:var(--zn-color-neutral-50);border-color:var(--zn-input-border-color-hover)}.input--standard.input--focused:not(.input--disabled){background-color:var(--zn-input-background-color-focus);border-color:var(--zn-input-border-color-focus)}.input--standard.input--focused:not(.input--disabled):not(.input--x-small){box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input--standard.input--focused:not(.input--disabled).input--x-small{box-shadow:0 0 0 var(--zn-focus-ring-width-x-small) var(--zn-input-focus-ring-color)}.input--standard.input--focused:not(.input--disabled) .input__control{color:var(--zn-input-color-focus)}.input--standard.input--disabled{background-color:var(--zn-input-background-color-disabled);border-color:var(--zn-input-border-color-disabled);opacity:0.5;cursor:not-allowed}.input--standard.input--filled{background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.input--standard.input--disabled .input__control{color:var(--zn-input-color-disabled)}.input--standard.input--disabled .input__control::-moz-placeholder{color:var(--zn-input-placeholder-color-disabled)}.input--standard.input--disabled .input__control::placeholder{color:var(--zn-input-placeholder-color-disabled)}.input__control{flex:1 1 auto;font-family:inherit;font-size:inherit;font-weight:inherit;min-width:0;height:100%;color:var(--zn-input-color);border:none;background:inherit;box-shadow:none;padding:0;margin:0;cursor:inherit;-webkit-appearance:none;line-height:var(--zn-input-line-height)}input[type=text].input__control[data-color-input]{font-family:var(--zn-font-mono,"SFMono-Regular","Consolas","Liberation Mono","Menlo",monospace);font-size:0.9em}.input__control::-webkit-search-decoration,.input__control::-webkit-search-cancel-button,.input__control::-webkit-search-results-button,.input__control::-webkit-search-results-decoration{-webkit-appearance:none}.input__control:-webkit-autofill,.input__control:-webkit-autofill:hover,.input__control:-webkit-autofill:focus,.input__control:-webkit-autofill:active{box-shadow:0 0 0 var(--zn-input-height-large) var(--zn-input-background-color) inset !important;-webkit-text-fill-color:var(--zn-input-color);caret-color:var(--zn-input-color)}.input__control::-moz-placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.input__control::placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.input:hover:not(.input--disabled) .input__control{color:var(--zn-input-color-hover)}.input__control:focus{outline:none}.input__prefix,.input__suffix{display:inline-flex;flex:0 0 auto;align-items:center;align-self:stretch;height:100%;cursor:default;color:var(--zn-input-icon-color);font-size:var(--zn-font-size-small)}.input__prefix zn-icon,.input__suffix zn-icon{--icon-size:var(--zn-font-size-x-large);color:var(--zn-input-icon-color);font-size:var(--zn-font-size-small)}.input__prefix ::slotted(zn-icon),.input__suffix ::slotted(zn-icon){--icon-size:var(--zn-font-size-medium);font-size:var(--zn-font-size-medium);color:var(--zn-input-icon-color)}.input--x-small{border-radius:var(--zn-input-border-radius-x-small);font-size:var(--zn-input-font-size-small);height:var(--zn-input-height-x-small)}.input--x-small .input__control{height:calc(var(--zn-input-height-x-small) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small) 0 var(--zn-spacing-small)}.input--x-small .input__clear,.input--x-small .input__password-toggle{width:calc(1em + var(--zn-input-spacing-x-small) * 2)}.input--x-small .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-spacing-x-small)}.input--x-small .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-x-small)}.input--x-small .input__suffix ::slotted(zn-button),.input--x-small .input__prefix ::slotted(zn-button),.input--x-small .input__suffix ::slotted(zn-checkbox),.input--x-small .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input--small{border-radius:var(--zn-input-border-radius-small);font-size:var(--zn-input-font-size-small);height:var(--zn-input-height-small)}.input--small .input__control{height:calc(var(--zn-input-height-small) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small) 0 var(--zn-spacing-small)}.input--small .input__clear,.input--small .input__password-toggle{width:calc(1em + var(--zn-input-spacing-small) * 2)}.input--small .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-input-spacing-small)}.input--small .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-small)}.input--small .input__suffix ::slotted(zn-button),.input--small .input__prefix ::slotted(zn-button),.input--small .input__suffix ::slotted(zn-checkbox),.input--small .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input--medium{border-radius:var(--zn-input-border-radius-medium);font-size:var(--zn-input-font-size-medium);height:var(--zn-input-height-medium)}.input--medium .input__control{height:calc(var(--zn-input-height-medium) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small) 0 var(--zn-spacing-small)}.input--medium .input__clear,.input--medium .input__password-toggle{width:calc(1em + var(--zn-input-spacing-medium) * 2)}.input--medium .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-spacing-small)}.input--medium .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-spacing-small)}.input--medium .input__suffix ::slotted(zn-button),.input--medium .input__prefix ::slotted(zn-button),.input--medium .input__suffix ::slotted(zn-checkbox),.input--medium .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input__suffix ::slotted(zn-button),.input__prefix ::slotted(zn-button){--zn-button-border-color:rgb(var(--zn-color-border));--zn-button-border-width:0}.input__suffix ::slotted(zn-button){--zn-button-border-left-width:1px}.input__prefix ::slotted(zn-button){--zn-button-border-right-width:1px}.input--large{border-radius:var(--zn-input-border-radius-large);font-size:var(--zn-input-font-size-large);height:var(--zn-input-height-large)}.input--large .input__control{height:calc(var(--zn-input-height-large) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-medium) 0 var(--zn-spacing-small)}.input--large .input__clear,.input--large .input__password-toggle{width:calc(1em + var(--zn-input-spacing-large) * 2)}.input--large .input__suffix ::slotted(zn-button),.input--large .input__prefix ::slotted(zn-button),.input--large .input__suffix ::slotted(zn-checkbox),.input--large .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input--pill.input--x-small{border-radius:var(--zn-input-height-small);padding:0 var(--zn-spacing-x-small)}.input--pill.input--small{border-radius:var(--zn-input-height-small);padding:0 var(--zn-spacing-x-small)}.input--pill.input--medium{border-radius:var(--zn-input-height-medium);padding:0 var(--zn-spacing-x-small)}.input--pill.input--large{border-radius:var(--zn-input-height-large);padding:0 var(--zn-spacing-x-small)}.input__clear:not(.input__clear--visible){visibility:hidden}.input__clear,.input__password-toggle{display:inline-flex;align-items:center;justify-content:center;font-size:var(--zn-font-size-large);color:var(--zn-input-icon-color);border:none;background:none;padding:0;transition:var(--zn-transition-fast) color;cursor:pointer}.input__clear zn-icon,.input__password-toggle zn-icon{--icon-size:var(--zn-font-size-large)}.input__clear:hover,.input__password-toggle:hover{color:var(--zn-input-icon-color-hover)}.input__clear:focus,.input__password-toggle:focus{outline:none}.input--empty .input__clear{visibility:hidden}::-ms-reveal{display:none}.input--no-spin-buttons input[type=number]::-webkit-outer-spin-button,.input--no-spin-buttons input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.input--no-spin-buttons input[type=number]{-moz-appearance:textfield}input[type=date]::-webkit-calendar-picker-indicator{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="14" width="12.25" viewBox="0 0 448 512"><path fill="%236d7176" d="M128 0c13.3 0 24 10.7 24 24V64H296V24c0-13.3 10.7-24 24-24s24 10.7 24 24V64h40c35.3 0 64 28.7 64 64v16 48V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192 144 128C0 92.7 28.7 64 64 64h40V24c0-13.3 10.7-24 24-24zM400 192H48V448c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V192zM112 256h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H112c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16z"/></svg>')}.input__color-swatch{display:inline-flex;align-self:stretch;border:none;border-inline-start:solid var(--zn-input-border-width) var(--zn-input-border-color);border-radius:0;background-color:var(--zn-color-neutral-0);cursor:pointer;overflow:hidden;position:relative;flex-shrink:0;margin:0}.input__color-swatch:hover .input__color-swatch-inner{filter:brightness(0.95)}.input__color-swatch-inner{width:100%;height:100%;background-color:var(--color-value,#000000);transition:var(--zn-transition-fast) filter}.input--x-small .input__color-swatch{width:calc(var(--zn-input-height-x-small) * 1.2)}.input--small .input__color-swatch{width:calc(var(--zn-input-height-small) * 1.2)}.input--medium .input__color-swatch{width:calc(var(--zn-input-height-medium) * 1.2)}.input--large .input__color-swatch{width:calc(var(--zn-input-height-large) * 1.2)}:host([type=range]) .form-control--has-label .form-control__label,:host([type=range]) .form-control__label-context-note{margin-bottom:0}:host([type=range]) .form-control-input{margin-top:0}.input--standard.input--range{--zn-range-track-height:6px;--zn-range-track-color:var(--zn-color-neutral-200);--zn-range-thumb-size:18px;--zn-range-thumb-color:var(--zn-color-primary-600);--zn-range-thumb-ring-width:4px;align-items:center;height:var(--zn-range-thumb-size);padding:0;overflow:visible;cursor:pointer}.input--standard.input--range,.input--standard.input--range:hover,.input--standard.input--range.input--focused,.input--standard.input--range.input--disabled{border:none;background:none;box-shadow:none}.input--standard.input--range.input--x-small{--zn-range-track-height:4px;--zn-range-thumb-size:14px;--zn-range-thumb-ring-width:3px}.input--standard.input--range.input--small{--zn-range-track-height:5px;--zn-range-thumb-size:16px;--zn-range-thumb-ring-width:3px}.input--standard.input--range.input--large{--zn-range-track-height:7px;--zn-range-thumb-size:20px}.input--range .input__control{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:var(--zn-range-thumb-size);padding:0;margin:0;background:none;cursor:inherit}.input--range .input__control::-webkit-slider-runnable-track{height:var(--zn-range-track-height);border-radius:calc(var(--zn-range-track-height) / 2);background-color:var(--zn-range-track-color)}.input--range .input__control::-moz-range-track{height:var(--zn-range-track-height);border-radius:calc(var(--zn-range-track-height) / 2);background-color:var(--zn-range-track-color)}.input--range .input__control::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:var(--zn-range-thumb-size);height:var(--zn-range-thumb-size);margin-top:calc((var(--zn-range-track-height) - var(--zn-range-thumb-size)) / 2);border:var(--zn-range-thumb-ring-width) solid var(--zn-color-neutral-0);border-radius:50%;background-color:var(--zn-range-thumb-color);box-shadow:0 0 0 1px var(--zn-input-border-color);-webkit-transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color;transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color}.input--range .input__control::-moz-range-thumb{width:var(--zn-range-thumb-size);height:var(--zn-range-thumb-size);box-sizing:border-box;border:var(--zn-range-thumb-ring-width) solid var(--zn-color-neutral-0);border-radius:50%;background-color:var(--zn-range-thumb-color);box-shadow:0 0 0 1px var(--zn-input-border-color);-moz-transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color;transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color}.input--range:hover:not(.input--disabled) .input__control::-webkit-slider-thumb{background-color:var(--zn-color-primary-500);box-shadow:0 0 0 1px var(--zn-input-border-color-hover)}.input--range:hover:not(.input--disabled) .input__control::-moz-range-thumb{background-color:var(--zn-color-primary-500);box-shadow:0 0 0 1px var(--zn-input-border-color-hover)}.input--range .input__control:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input--range .input__control:focus-visible::-moz-range-thumb{box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input__color-picker{position:absolute;opacity:0;width:0;height:0;padding:0;margin:0;pointer-events:none;border:none;visibility:hidden}`;var ee=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text","label","label-tooltip");this.localize=new Ft(this);this.slashController=new _o(this,{menu:()=>this.mountSlashMenu(),items:t=>this.resolveSlashItems(t),trigger:()=>this.slashTrigger,onSelect:(t,r)=>!this.emit("zn-slash-select",{detail:{item:t,query:r}}).defaultPrevented,onInsert:(t,r)=>this.emit("zn-slash-insert",{detail:{item:t,value:r}})});this.hasFocus=!1;this.hasSlashMenu=!1;this.isUserTyping=!1;this.title="";this.__numberInput=Object.assign(document.createElement("input"),{type:"number"});this.__dateInput=Object.assign(document.createElement("input"),{type:"date"});this.type="text";this.name="";this.value="";this.defaultValue="";this.size="medium";this.pill=!1;this.label="";this.labelTooltip="";this.contextNote="";this.helpText="";this.clearable=!1;this.optionalIcon=!1;this.disabled=!1;this.filled=!1;this.placeholder="";this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.noSpinButtons=!1;this.colorFormat="hex";this.valueSuffix="";this.required=!1;this.spellcheck=!0;this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.slashRecentKey="";this.triggerSubmit=!1}get valueAsDate(){return this.__dateInput.type=this.type,this.__dateInput.value=this.value,this.input?.valueAsDate||this.__dateInput.valueAsDate}set valueAsDate(t){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=t,this.value=this.__dateInput.value}get valueAsNumber(){return this.__numberInput.value=this.value,this.input?.valueAsNumber||this.__numberInput.valueAsNumber}set valueAsNumber(t){this.__numberInput.valueAsNumber=t,this.value=this.__numberInput.value}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}validateMinMax(){this.type!=="number"&&this.type!=="date"||(typeof this.min<"u"&&parseInt(this.value)<parseInt(this.min)&&(this.value=this.min.toString()),typeof this.max<"u"&&parseInt(this.value)>parseInt(this.max)&&(this.value=this.max.toString()))}hexToRgb(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16);return`rgb(${n}, ${a}, ${s})`}rgbToHex(t){let r=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(!r)return"";let n=parseInt(r[1]).toString(16).padStart(2,"0"),a=parseInt(r[2]).toString(16).padStart(2,"0"),s=parseInt(r[3]).toString(16).padStart(2,"0");return`#${n}${a}${s}`}hexToOklch(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16)/255,a=parseInt(r[2],16)/255,s=parseInt(r[3],16)/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;let l=n*.4124564+a*.3575761+s*.1804375,p=n*.2126729+a*.7151522+s*.072175,h=n*.0193339+a*.119192+s*.9503041,m=l/.95047,f=p/1,b=h/1.08883,g=m>.008856?Math.pow(m,1/3):7.787*m+16/116,v=f>.008856?Math.pow(f,1/3):7.787*f+16/116,y=b>.008856?Math.pow(b,1/3):7.787*b+16/116,C=116*v-16,T=500*(g-v),O=200*(v-y),U=Math.sqrt(T*T+O*O),D=Math.atan2(O,T)*180/Math.PI;D<0&&(D+=360);let S=(C/100).toFixed(3),$=(U/150).toFixed(3),L=D.toFixed(1);return`oklch(${S} ${$} ${L})`}oklchToHex(t){let r=t.match(/^oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)$/);if(!r)return"";let n=parseFloat(r[1])*100,a=parseFloat(r[2])*150,s=parseFloat(r[3]),l=a*Math.cos(s*Math.PI/180),p=a*Math.sin(s*Math.PI/180),h=(n+16)/116,m=l/500+h,f=h-p/200,b=m>.206897?Math.pow(m,3):(m-16/116)/7.787,g=h>.206897?Math.pow(h,3):(h-16/116)/7.787,v=f>.206897?Math.pow(f,3):(f-16/116)/7.787,y=b*.95047,C=g*1,T=v*1.08883,O=y*3.2404542+C*-1.5371385+T*-.4985314,U=y*-.969266+C*1.8760108+T*.041556,D=y*.0556434+C*-.2040259+T*1.0572252;O=O>.0031308?1.055*Math.pow(O,1/2.4)-.055:12.92*O,U=U>.0031308?1.055*Math.pow(U,1/2.4)-.055:12.92*U,D=D>.0031308?1.055*Math.pow(D,1/2.4)-.055:12.92*D,O=Math.max(0,Math.min(1,O)),U=Math.max(0,Math.min(1,U)),D=Math.max(0,Math.min(1,D));let S=Math.round(O*255).toString(16).padStart(2,"0"),$=Math.round(U*255).toString(16).padStart(2,"0"),L=Math.round(D*255).toString(16).padStart(2,"0");return`#${S}${$}${L}`}hexToHsl(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16)/255,a=parseInt(r[2],16)/255,s=parseInt(r[3],16)/255,l=Math.max(n,a,s),p=Math.min(n,a,s),h=(l+p)/2,m=0,f=0;if(l!==p){let b=l-p;switch(f=h>.5?b/(2-l-p):b/(l+p),l){case n:m=((a-s)/b+(a<s?6:0))/6;break;case a:m=((s-n)/b+2)/6;break;case s:m=((n-a)/b+4)/6;break}}return`hsl(${Math.round(m*360)}, ${Math.round(f*100)}%, ${Math.round(h*100)}%)`}hslToHex(t){let r=t.match(/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)$/);if(!r)return"";let n=parseInt(r[1])/360,a=parseInt(r[2])/100,s=parseInt(r[3])/100,l,p,h;if(a===0)l=s,p=s,h=s;else{let g=(C,T,O)=>(O<0&&(O+=1),O>1&&(O-=1),O<.16666666666666666?C+(T-C)*6*O:O<.5?T:O<.6666666666666666?C+(T-C)*(.6666666666666666-O)*6:C),v=s<.5?s*(1+a):s+a-s*a,y=2*s-v;l=g(y,v,n+1/3),p=g(y,v,n),h=g(y,v,n-1/3)}let m=Math.round(l*255).toString(16).padStart(2,"0"),f=Math.round(p*255).toString(16).padStart(2,"0"),b=Math.round(h*255).toString(16).padStart(2,"0");return`#${m}${f}${b}`}convertToHex(t){return t?t.startsWith("#")?t:t.startsWith("rgb")?this.rgbToHex(t):t.startsWith("hsl")?this.hslToHex(t):t.startsWith("oklch")?this.oklchToHex(t):t:"#000000"}convertFromHex(t){return t?this.colorFormat==="hex"?t:this.colorFormat==="rgb"?this.hexToRgb(t):this.colorFormat==="hsl"?this.hexToHsl(t):this.colorFormat==="oklch"?this.hexToOklch(t):t:""}handleBlur(){if(this.hasFocus=!1,this.isUserTyping=!1,this.validateMinMax(),this.type==="color"&&this.value){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);r!==this.value&&(this.value=r)}}this.emit("zn-blur")}handleChange(){if(this.type==="currency"&&this.input.value)this.value=parseFloat(this.input.value).toFixed(2);else if(this.type==="color"){let t=this.input.value.trim();if(t==="")this.value="";else if(this.colorFormat==="hex"){let r=t;r&&!r.startsWith("#")&&(r="#"+r),/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(r)&&(this.value=r.toLowerCase())}else this.colorFormat==="rgb"?/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(t)&&(this.value=t):this.colorFormat==="hsl"?/^hsl\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*\)$/.test(t)&&(this.value=t):this.colorFormat==="oklch"&&/^oklch\(\s*[0-9.]+\s+[0-9.]+\s+[0-9.]+\s*\)$/.test(t)&&(this.value=t)}else this.value=this.input.value;this.emit("zn-change")}handleClearClick(t){this.value="",this.emit("zn-clear"),this.emit("zn-input"),this.emit("zn-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("zn-focus")}handleInput(){this.isUserTyping=!0,this.type==="color"?this.value=this.input.value:this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){if(this.slashController.open)return;if(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let r=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;if(t.key==="Enter"&&!r&&!t.defaultPrevented&&!t.isComposing){let n=this.formControlController.getForm();if(!this.triggerSubmit&&(n?.hasAttribute("enter-navigation")||n?.hasAttribute("data-enter-navigation")))return;this.formControlController.submit()}}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleColorSwatchClick(){this.type==="color"&&this.colorPicker&&this.colorPicker.click()}handleColorPickerChange(){if(this.type==="color"&&this.colorPicker){let t=this.colorPicker.value;this.value=this.convertFromHex(t),this.emit("zn-change"),this.emit("zn-input")}}focusInput(t){if(this.hasFocus)return;let r=t.target;r.tagName==="ZN-CHECKBOX"&&(r.slot==="prefix"||r.closest('[slot="prefix"]'))||(r.classList.contains("input__prefix")||r.slot==="prefix"||r.hasAttribute("part")&&r.getAttribute("part")==="base")&&(this.handleFocus(),this.input.focus())}firstUpdated(){this.type==="range"&&this.value===""&&(this.value=this.input.value),this.slashController.attach(this.input)}async resolveSlashItems(t=""){let r=[...Bd(this.slashPreset),...this.slashItems,...this.slottedSlashItems()],n=await this.slashItemsProvider?.(t);return n?[...r,...n]:r}async showSlashMenu(){this.focus();let t=this.input.selectionStart??this.input.value.length;this.input.value.slice(t-this.slashTrigger.length,t)!==this.slashTrigger&&this.setRangeText(this.slashTrigger,t,t,"end"),await this.updateComplete,this.slashController.requestOpen()}hideSlashMenu(){this.slashController.close()}slottedSlashItems(){return[...this.querySelectorAll("zn-slash-item")].map(r=>{if(typeof r.toSlashMenuItem=="function")return r.toSlashMenuItem();let n=r.getAttribute("value")??(r.textContent??"").trim(),a=r.getAttribute("order"),s=r.getAttribute("caret-offset");return{label:r.getAttribute("label")??n,value:n,icon:r.getAttribute("icon")??void 0,description:r.getAttribute("description")??void 0,keywords:r.getAttribute("keywords")??void 0,group:r.getAttribute("group")??void 0,action:r.getAttribute("action")??void 0,order:a===null?void 0:Number(a),caretOffset:s===null?void 0:Number(s),disabled:r.hasAttribute("disabled")}})}async mountSlashMenu(){let t=this.querySelector("zn-slash-menu");return t||(this.hasSlashMenu||(this.hasSlashMenu=!0,await this.updateComplete),this.slashMenuElement)}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){if(await this.updateComplete,this.type==="color"&&this.value&&!this.isUserTyping){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);if(r!==this.value){this.value=r,this.emit("zn-change");return}}}this.formControlController.updateValidity(),this.type==="color"&&this.colorPicker&&(this.colorPicker.value=this.convertToHex(this.value)||"#000000")}handleColorFormatChange(){if(this.type==="color"&&this.value){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);r!==this.value&&(this.value=r,this.emit("zn-change"))}}}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,r,n="none"){this.input.setSelectionRange(t,r,n)}setRangeText(t,r,n,a="preserve"){let s=r??this.input.selectionStart,l=n??this.input.selectionEnd;this.input.setRangeText(t,s,l,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("label-tooltip"),n=this.hasSlotController.test("context-note"),a=this.hasSlotController.test("help-text"),s=this.type==="range",l=this.label?!0:t,p=this.labelTooltip?!0:r,h=this.contextNote||s?!0:n,m=this.helpText?!0:a,f=this.clearable&&!this.disabled&&!this.readonly,b=this.optionalIcon,g=f&&(typeof this.value=="number"||this.value.length>0);return u`
|
|
426
427
|
<div part="form-control"
|
|
427
428
|
class="${M({"form-control":!0,"form-control--x-small":this.size==="x-small","form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":l,"form-control--has-label-tooltip":p,"form-control--has-context-note":h,"form-control--has-help-text":m})}">
|
|
@@ -561,7 +562,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
561
562
|
<slot name="help-text">${this.helpText}</slot>
|
|
562
563
|
</div>
|
|
563
564
|
|
|
564
|
-
</div>`}};ee.styles=[z(Ee),z(f0)],ee.dependencies={"zn-icon":ne,"zn-slash-item":Gl,"zn-slash-menu":Sa,"zn-tooltip":gi},c([F(".input__control")],ee.prototype,"input",2),c([F(".input__color-picker")],ee.prototype,"colorPicker",2),c([F("zn-slash-menu")],ee.prototype,"slashMenuElement",2),c([I()],ee.prototype,"hasFocus",2),c([I()],ee.prototype,"hasSlashMenu",2),c([I()],ee.prototype,"isUserTyping",2),c([d()],ee.prototype,"title",2),c([d({reflect:!0})],ee.prototype,"type",2),c([d()],ee.prototype,"name",2),c([d()],ee.prototype,"value",2),c([Ce()],ee.prototype,"defaultValue",2),c([d({reflect:!0})],ee.prototype,"size",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"pill",2),c([d()],ee.prototype,"label",2),c([d({attribute:"label-tooltip"})],ee.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],ee.prototype,"contextNote",2),c([d({attribute:"help-text"})],ee.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"clearable",2),c([d({attribute:"optional-icon",type:Boolean})],ee.prototype,"optionalIcon",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"filled",2),c([d()],ee.prototype,"placeholder",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"readonly",2),c([d({attribute:"password-toggle",type:Boolean})],ee.prototype,"passwordToggle",2),c([d({attribute:"password-visible",type:Boolean})],ee.prototype,"passwordVisible",2),c([d({attribute:"no-spin-buttons",type:Boolean})],ee.prototype,"noSpinButtons",2),c([d({attribute:"color-format"})],ee.prototype,"colorFormat",2),c([d({attribute:"value-suffix"})],ee.prototype,"valueSuffix",2),c([d({reflect:!0})],ee.prototype,"form",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"required",2),c([d()],ee.prototype,"pattern",2),c([d({type:Number})],ee.prototype,"minlength",2),c([d({type:Number})],ee.prototype,"maxlength",2),c([d()],ee.prototype,"min",2),c([d()],ee.prototype,"max",2),c([d()],ee.prototype,"step",2),c([d()],ee.prototype,"autocapitalize",2),c([d()],ee.prototype,"autocorrect",2),c([d()],ee.prototype,"autocomplete",2),c([d({type:Boolean})],ee.prototype,"autofocus",2),c([d()],ee.prototype,"enterkeyhint",2),c([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],ee.prototype,"spellcheck",2),c([d()],ee.prototype,"inputmode",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],ee.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],ee.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],ee.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],ee.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],ee.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],ee.prototype,"slashRecentKey",2),c([d({attribute:!1})],ee.prototype,"slashItemsProvider",2),c([d({type:Boolean,attribute:"trigger-submit"})],ee.prototype,"triggerSubmit",2),c([K("disabled",{waitUntilFirstUpdate:!0})],ee.prototype,"handleDisabledChange",1),c([K("step",{waitUntilFirstUpdate:!0})],ee.prototype,"handleStepChange",1),c([K("value",{waitUntilFirstUpdate:!0})],ee.prototype,"handleValueChange",1),c([K("colorFormat",{waitUntilFirstUpdate:!0})],ee.prototype,"handleColorFormatChange",1);var
|
|
565
|
+
</div>`}};ee.styles=[z(Ee),z(f0)],ee.dependencies={"zn-icon":ne,"zn-slash-item":Gl,"zn-slash-menu":Sa,"zn-tooltip":gi},c([F(".input__control")],ee.prototype,"input",2),c([F(".input__color-picker")],ee.prototype,"colorPicker",2),c([F("zn-slash-menu")],ee.prototype,"slashMenuElement",2),c([I()],ee.prototype,"hasFocus",2),c([I()],ee.prototype,"hasSlashMenu",2),c([I()],ee.prototype,"isUserTyping",2),c([d()],ee.prototype,"title",2),c([d({reflect:!0})],ee.prototype,"type",2),c([d()],ee.prototype,"name",2),c([d()],ee.prototype,"value",2),c([Ce()],ee.prototype,"defaultValue",2),c([d({reflect:!0})],ee.prototype,"size",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"pill",2),c([d()],ee.prototype,"label",2),c([d({attribute:"label-tooltip"})],ee.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],ee.prototype,"contextNote",2),c([d({attribute:"help-text"})],ee.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"clearable",2),c([d({attribute:"optional-icon",type:Boolean})],ee.prototype,"optionalIcon",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"filled",2),c([d()],ee.prototype,"placeholder",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"readonly",2),c([d({attribute:"password-toggle",type:Boolean})],ee.prototype,"passwordToggle",2),c([d({attribute:"password-visible",type:Boolean})],ee.prototype,"passwordVisible",2),c([d({attribute:"no-spin-buttons",type:Boolean})],ee.prototype,"noSpinButtons",2),c([d({attribute:"color-format"})],ee.prototype,"colorFormat",2),c([d({attribute:"value-suffix"})],ee.prototype,"valueSuffix",2),c([d({reflect:!0})],ee.prototype,"form",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"required",2),c([d()],ee.prototype,"pattern",2),c([d({type:Number})],ee.prototype,"minlength",2),c([d({type:Number})],ee.prototype,"maxlength",2),c([d()],ee.prototype,"min",2),c([d()],ee.prototype,"max",2),c([d()],ee.prototype,"step",2),c([d()],ee.prototype,"autocapitalize",2),c([d()],ee.prototype,"autocorrect",2),c([d()],ee.prototype,"autocomplete",2),c([d({type:Boolean})],ee.prototype,"autofocus",2),c([d()],ee.prototype,"enterkeyhint",2),c([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],ee.prototype,"spellcheck",2),c([d()],ee.prototype,"inputmode",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],ee.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],ee.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],ee.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],ee.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],ee.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],ee.prototype,"slashRecentKey",2),c([d({attribute:!1})],ee.prototype,"slashItemsProvider",2),c([d({type:Boolean,attribute:"trigger-submit"})],ee.prototype,"triggerSubmit",2),c([K("disabled",{waitUntilFirstUpdate:!0})],ee.prototype,"handleDisabledChange",1),c([K("step",{waitUntilFirstUpdate:!0})],ee.prototype,"handleStepChange",1),c([K("value",{waitUntilFirstUpdate:!0})],ee.prototype,"handleValueChange",1),c([K("colorFormat",{waitUntilFirstUpdate:!0})],ee.prototype,"handleColorFormatChange",1);var st=ee;ee.define("zn-input");var g0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;-moz-user-select:none;user-select:none;-webkit-user-select:none}:host([hidden]){display:none !important}:host(:focus){outline:none}.option{position:relative;display:flex;align-items:center;font-family:var(--zn-font-sans);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);line-height:var(--zn-line-height-normal);letter-spacing:var(--zn-letter-spacing-normal);color:var(--zn-input-color);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);transition:var(--zn-transition-fast) fill;cursor:pointer}.option--selected{background-color:var(--zn-color-primary-200)}.option--hover:not(.option--disabled),.option--current,.option--current.option--disabled{background-color:var(--zn-color-primary-100);color:var(--zn-input-color);opacity:1}.option--disabled{outline:none;opacity:0.5;cursor:not-allowed}.option__label{flex:1 1 auto;display:inline-block;font-size:var(--zn-font-size-small);line-height:var(--ts-leading-5)}.option .option__check{flex:0 0 auto;display:flex;align-items:center;justify-content:center;visibility:hidden;padding-inline-start:0.375rem;padding-inline-end:0.375rem}.option--selected .option__check{visibility:visible}.option__prefix,.option__suffix{flex:0 0 auto;display:flex;align-items:center}.option__prefix::slotted(*){margin-inline-end:var(--zn-spacing-small);font-size:var(--zn-font-size-large)}.option__suffix::slotted(*){margin-inline-start:var(--zn-spacing-small)}@media (forced-colors:active){:host(:hover:not([aria-disabled=true])) .option{outline:dashed 1px SelectedItem;outline-offset:-1px}}`;var Sr=class extends k{constructor(){super(...arguments);this.localize=new Ft(this);this.multiple=!1;this.current=!1;this.hasHover=!1;this.value="";this.disabled=!1;this.selected=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let t=this.getTextLabel();if(typeof this.cachedTextLabel>"u"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}getTextLabel(){let t=this.childNodes,r="";return[...t].forEach(n=>{n.nodeType===Node.ELEMENT_NODE&&(n.hasAttribute("slot")||(r+=n.textContent)),n.nodeType===Node.TEXT_NODE&&(r+=n.textContent)}),r.trim()}render(){return u`
|
|
565
566
|
<div
|
|
566
567
|
part="base"
|
|
567
568
|
class=${M({option:!0,"option--current":this.current,"option--disabled":this.disabled,"option--selected":this.selected,"option--hover":this.hasHover,"option--singular":!this.multiple})}
|
|
@@ -577,7 +578,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
577
578
|
aria-hidden="true"
|
|
578
579
|
></zn-icon>
|
|
579
580
|
</div>
|
|
580
|
-
`}};Sr.styles=z(g0),Sr.dependencies={"zn-icon":ne},c([F(".option__label")],Sr.prototype,"defaultSlot",2),c([I()],Sr.prototype,"current",2),c([I()],Sr.prototype,"hasHover",2),c([d({reflect:!0})],Sr.prototype,"value",2),c([d({type:Boolean,reflect:!0})],Sr.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],Sr.prototype,"selected",2),c([K("disabled")],Sr.prototype,"handleDisabledChange",1),c([K("selected")],Sr.prototype,"handleSelectedChange",1);var
|
|
581
|
+
`}};Sr.styles=z(g0),Sr.dependencies={"zn-icon":ne},c([F(".option__label")],Sr.prototype,"defaultSlot",2),c([I()],Sr.prototype,"current",2),c([I()],Sr.prototype,"hasHover",2),c([d({reflect:!0})],Sr.prototype,"value",2),c([d({type:Boolean,reflect:!0})],Sr.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],Sr.prototype,"selected",2),c([K("disabled")],Sr.prototype,"handleDisabledChange",1),c([K("selected")],Sr.prototype,"handleSelectedChange",1);var lt=Sr;Sr.define("zn-option");function yi(o,i,t){return new Promise(r=>{if(t?.duration===1/0)throw new Error("Promise-based animations must be finite.");let n=o.animate(i,{...t,duration:Gu()?0:t.duration});n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})})}function Gu(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Wu(o){return Promise.all(o.getAnimations().map(i=>new Promise(t=>{i.cancel(),requestAnimationFrame(t)})))}function b0(o){return(Array.isArray(o.value)?o.value:[o.value]).some(t=>t!==""&&t!=="0")}var fs=class{constructor(i){this.conditionals=[];this.required=[];this.initiallyDisabled=!1;this.handleChange=()=>this.checkConditionals();(this.host=i).addController(this)}setup(){this.conditionals=this.resolve(this.host.conditional),this.required=this.resolve(this.host.requires),this.initiallyDisabled=this.host.disabled;let i=[...this.conditionals,...this.required];i.length!==0&&(i.forEach(t=>{t.addEventListener("zn-change",this.handleChange),t.addEventListener("zn-input",this.handleChange)}),this.checkConditionals())}resolve(i){if(!i)return[];let t=[],r=new Set;return i.split(",").map(n=>n.trim()).filter(Boolean).forEach(n=>{let a=Ge(pr(n),document.documentElement,""),s=Ge(`[name="${n}"]`,document.documentElement,"");[...a,...s].forEach(l=>{r.has(l)||(r.add(l),t.push(l))})}),t}hostConnected(){}hostDisconnected(){[...this.conditionals,...this.required].forEach(i=>{i.removeEventListener("zn-change",this.handleChange),i.removeEventListener("zn-input",this.handleChange)}),this.conditionals=[],this.required=[]}check(){this.checkConditionals()}checkConditionals(){let i=this.conditionals.some(b0),t=this.required.length>0&&!this.required.every(b0),r=this.required.length>0?!1:this.initiallyDisabled;this.host.disabled=r||i||t}};var y0=new Map,z4=new WeakMap;function _4(o){return o??{keyframes:[],options:{duration:0}}}function v0(o,i){return i.toLowerCase()==="rtl"?{keyframes:o.rtlKeyframes||o.keyframes,options:o.options}:o}function kn(o,i){y0.set(o,_4(i))}function Sn(o,i,t){let r=z4.get(o);if(r?.[i])return v0(r[i],t.dir);let n=y0.get(i);return n?v0(n,t.dir):{keyframes:[],options:{duration:0}}}var x0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}:host([hidden]){display:none !important}:host(:not(:first-child):not([data-first-visible])){border-block-start:solid var(--zn-panel-border-width) var(--zn-panel-border-color);margin-block-start:var(--zn-spacing-2x-small)}.opt-group__label{font-family:var(--zn-font-sans);font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold);line-height:var(--zn-line-height-normal);letter-spacing:var(--zn-letter-spacing-loose);text-transform:uppercase;color:var(--zn-color-neutral-600);padding-block:var(--zn-spacing-x-small) var(--zn-spacing-2x-small);padding-inline:var(--zn-spacing-small);-moz-user-select:none;user-select:none;-webkit-user-select:none}.opt-group__options{display:block}:host([disabled]) .opt-group__label{opacity:0.5}`;var Wn=class Wn extends k{constructor(){super(...arguments);this.label="";this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group"),this.setAttribute("aria-label",this.label)}handleLabelChange(){this.setAttribute("aria-label",this.label)}handleDisabledChange(){this.propagateDisabled()}updateVisibility(){let t=[...this.querySelectorAll("zn-option")];this.hidden=t.length>0&&t.every(r=>r.hidden)}updateSeparator(){let t=this.previousElementSibling;for(;t&&!Wn.isRendered(t);)t=t.previousElementSibling;this.toggleAttribute("data-first-visible",t===null)}static isRendered(t){return t instanceof HTMLSlotElement?t.assignedElements().some(r=>Wn.isRendered(r)):!(t instanceof HTMLElement)||!t.hidden}render(){return u`
|
|
581
582
|
<div part="base" class="opt-group">
|
|
582
583
|
${this.label?u`<div part="label" class="opt-group__label" aria-hidden="true">${this.label}</div>`:B}
|
|
583
584
|
<div class="opt-group__options" role="none">
|
|
@@ -770,7 +771,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
770
771
|
<slot name="help-text">${this.helpText}</slot>
|
|
771
772
|
</div>
|
|
772
773
|
</div>
|
|
773
|
-
`}};Z.styles=[z(Ee),z(w0)],Z.dependencies={"zn-icon":ne,"zn-opt-group":Ku,"zn-option":st,"zn-popup":Hl,"zn-tag":jn},c([F(".select")],Z.prototype,"popup",2),c([F(".select__combobox")],Z.prototype,"combobox",2),c([F(".select__display-input")],Z.prototype,"displayInput",2),c([F(".select__value-input")],Z.prototype,"valueInput",2),c([F(".select__listbox")],Z.prototype,"listbox",2),c([F('slot[name="prefix"]')],Z.prototype,"prefixSlot",2),c([I()],Z.prototype,"hasFocus",2),c([I()],Z.prototype,"displayLabel",2),c([I()],Z.prototype,"currentOption",2),c([I()],Z.prototype,"selectedOptions",2),c([I()],Z.prototype,"valueHasChanged",2),c([I()],Z.prototype,"inputPrefix",2),c([I()],Z.prototype,"_searchDisplayValue",2),c([I()],Z.prototype,"_noResultsVisible",2),c([I()],Z.prototype,"_addOptionActive",2),c([I()],Z.prototype,"_fetchedOptions",2),c([I()],Z.prototype,"_fetchLoading",2),c([I()],Z.prototype,"_fetchError",2),c([I()],Z.prototype,"_searchLoading",2),c([I()],Z.prototype,"_totalResultCount",2),c([d()],Z.prototype,"name",2),c([d({type:Boolean,attribute:"non-removable"})],Z.prototype,"nonRemovable",2),c([I()],Z.prototype,"value",1),c([d({attribute:"value",converter:{fromAttribute:t=>{if(!t||Array.isArray(t))return t;if(t.trimStart().startsWith("["))try{let r=JSON.parse(t);if(Array.isArray(r))return r}catch{}return t.includes(" ")?t.split(" "):t},toAttribute:t=>Array.isArray(t)&&t.some(r=>r.includes(" "))?JSON.stringify(t):Array.isArray(t)?t.join(" "):t}})],Z.prototype,"defaultValue",2),c([d({reflect:!0})],Z.prototype,"size",2),c([d()],Z.prototype,"placeholder",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"multiple",2),c([d({attribute:"max-options",type:Number})],Z.prototype,"maxOptions",2),c([d({attribute:"max-options-visible",type:Number})],Z.prototype,"maxOptionsVisible",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),c([d({type:Boolean})],Z.prototype,"clearable",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"open",2),c([d({type:Boolean})],Z.prototype,"hoist",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"pill",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"search",2),c([d({type:Boolean,reflect:!0,attribute:"free-text"})],Z.prototype,"freeText",2),c([d()],Z.prototype,"label",2),c([d({attribute:"label-tooltip"})],Z.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],Z.prototype,"contextNote",2),c([d({reflect:!0})],Z.prototype,"placement",2),c([d({attribute:"help-text"})],Z.prototype,"helpText",2),c([d({reflect:!0})],Z.prototype,"form",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"required",2),c([d({attribute:"cache-key"})],Z.prototype,"cacheKey",2),c([d({type:Boolean,attribute:"trigger-submit"})],Z.prototype,"triggerSubmit",2),c([d()],Z.prototype,"getTag",2),c([d({attribute:"select-first",type:Boolean})],Z.prototype,"selectFirst",2),c([d()],Z.prototype,"distinct",2),c([d()],Z.prototype,"conditional",2),c([d()],Z.prototype,"requires",2),c([d({attribute:"data-uri"})],Z.prototype,"dataUri",2),c([d({attribute:"context-data"})],Z.prototype,"contextData",2),c([d({attribute:"max-results",type:Number})],Z.prototype,"maxResults",2),c([d({attribute:"search-debounce",type:Number})],Z.prototype,"searchDebounce",2),c([d({attribute:"search-param"})],Z.prototype,"searchParam",2),c([d({attribute:"search-only",type:Boolean})],Z.prototype,"searchOnly",2),c([K("disabled",{waitUntilFirstUpdate:!0})],Z.prototype,"handleDisabledChange",1),c([K(["dataUri","contextData"],{waitUntilFirstUpdate:!0})],Z.prototype,"handleSrcChange",1),c([K(["defaultValue","value"],{waitUntilFirstUpdate:!0})],Z.prototype,"handleValueChange",1),c([K("open",{waitUntilFirstUpdate:!0})],Z.prototype,"handleOpenChange",1);kn("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});kn("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var Be=Z;Z.define("zn-select");var bs=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}button,.zn-button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}button:hover:not([disabled]),.zn-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],input[type=file],input[list],textarea,select{display:block;width:100%;border-radius:5px;border-style:solid;border-width:1px;border-color:rgb(var(--zn-border-color));background-color:rgb(var(--zn-input-bg));outline:none}input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,input[type=file]:focus,input[list]:focus,textarea:focus,select:focus{border-color:rgb(var(--zn-primary));box-shadow:0 0 0 3px rgba(var(--zn-primary),0.3)}input[type=date]::-moz-placeholder, input[type=datetime-local]::-moz-placeholder, input[type=email]::-moz-placeholder, input[type=month]::-moz-placeholder, input[type=number]::-moz-placeholder, input[type=password]::-moz-placeholder, input[type=search]::-moz-placeholder, input[type=tel]::-moz-placeholder, input[type=text]::-moz-placeholder, input[type=time]::-moz-placeholder, input[type=url]::-moz-placeholder, input[type=week]::-moz-placeholder, input[type=file]::-moz-placeholder, input[list]::-moz-placeholder, textarea::-moz-placeholder, select::-moz-placeholder{font-weight:400;color:rgba(var(--zn-text),0.6)}input[type=date]::placeholder,input[type=datetime-local]::placeholder,input[type=email]::placeholder,input[type=month]::placeholder,input[type=number]::placeholder,input[type=password]::placeholder,input[type=search]::placeholder,input[type=tel]::placeholder,input[type=text]::placeholder,input[type=time]::placeholder,input[type=url]::placeholder,input[type=week]::placeholder,input[type=file]::placeholder,input[list]::placeholder,textarea::placeholder,select::placeholder{font-weight:400;color:rgba(var(--zn-text),0.6)}@media (min-width:360px){input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],input[type=file],input[list],textarea,select{padding:8px}}label{font-weight:600;font-size:rgb(var(--zn-font-size-medium));line-height:var(--zn-spacing-medium);color:rgb(var(--zn-text-heading));display:block;margin-bottom:4px;margin-top:16px}input[type=checkbox],input[type=radio]{border-radius:5px}input[type=radio]{border-radius:50%}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:10px;background-color:rgb(var(--zn-border-color));height:8px;accent-color:rgb(var(--zn-primary));width:100%;max-width:768px}fieldset{border-color:rgba(var(--zn-primary),20%);border-width:2px;padding:0 16px 16px}select option{padding:4px}select>option:checked{background-color:rgba(var(--zn-primary),20%);border-radius:5px}fieldset>legend{padding:4px}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}input[type=button]:hover:not([disabled]),input[type=submit]:hover:not([disabled]),button[type=submit]:not(.button):hover:not([disabled]),button[type=button]:not(.button):hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){width:auto}div+button{margin-top:16px}input[type=file]::-webkit-file-upload-button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}input[type=file]::-webkit-file-upload-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=file]::-webkit-file-upload-button{margin-right:8px}input::-webkit-calendar-picker-indicator{cursor:pointer;padding:8px}input[list]::-webkit-calendar-picker-indicator{padding:8px 4px}.input--with-icon{position:relative}.input--with-icon zn-icon{padding:14px;position:absolute;top:50%;pointer-events:none;transform:translateY(-50%);left:8px;background-color:rgb(var(--zn-primary));color:rgb(var(--zn-text));border-radius:50%}.input--with-icon input{padding-left:40px}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;-webkit-text-fill-color:rgb(var(--zn-text));-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;box-shadow:inset 0 0 20px 20px rgba(35,35,35,0.1607843137)}select{height:43px}.no-border{border:none !important}`;var z0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:contents;--zn-input-bg:var(--zn-panel)}.add-rule{max-width:250px;margin-bottom:10px}.query-builder{display:flex;flex-direction:column;flex-wrap:wrap}.query-builder zn-button{align-self:flex-end}.query-builder--popup:has(.query-builder__row){min-width:990px}.query-builder__row,.query-builder__wrapper{display:flex;width:100%;gap:10px}.query-builder__row{padding-bottom:10px}.query-builder__key,.query-builder__comparator{flex-basis:60%}.query-builder__value{flex-grow:1}.query-builder--dropdown:has(.query-builder__row){min-width:900px}`;var Yu={eq:"Equals",neq:"Not Equals",eqi:"Equals (Insensitive)",neqi:"Not Equals (Insensitive)",before:"Was Before",after:"Was After",in:"In",nin:"Not In",matchphrasepre:"Match Phrase Prefix",nmatchphrasepre:"Does Not Match Phrase Prefix",matchphrase:"Match Phrase",nmatchphrase:"Does Not Match Phrase",match:"Match",nmatch:"Does Not Match",contains:"Contains",doesnotcontain:"Does Not Contain",starts:"Starts With",nstarts:"Does Not Start With",ends:"Ends With",nends:"Does Not End With",wild:"Wildcard Match",nwild:"Does Not Match Wildcard",like:"Like Match With",nlike:"Does Not Like Match With",fuzzy:"Fuzzy Match With",nfuzzy:"Does Not Match Fuzzy With",gte:"Greater Than or Equals",gt:"Greater Than",lt:"Less Than",lte:"Less Than or Equals"},Cr=class extends k{constructor(){super(...arguments);this._selectedRules=new Map;this._formController=new re(this,{});this.filters=[];this.dropdown=!1;this.showValues=[]}get _usedFilterIds(){return new Set([...this._selectedRules.values()].map(t=>t.id))}get validationMessage(){return""}get validity(){return this.input?.validity}firstUpdated(t){super.firstUpdated(t),this.showValues&&this.showValues.forEach(r=>{this._addRule(null,r)}),this._handleChange(),this._formController.updateValidity()}render(){return u`
|
|
774
|
+
`}};Z.styles=[z(Ee),z(w0)],Z.dependencies={"zn-icon":ne,"zn-opt-group":Ku,"zn-option":lt,"zn-popup":Hl,"zn-tag":jn},c([F(".select")],Z.prototype,"popup",2),c([F(".select__combobox")],Z.prototype,"combobox",2),c([F(".select__display-input")],Z.prototype,"displayInput",2),c([F(".select__value-input")],Z.prototype,"valueInput",2),c([F(".select__listbox")],Z.prototype,"listbox",2),c([F('slot[name="prefix"]')],Z.prototype,"prefixSlot",2),c([I()],Z.prototype,"hasFocus",2),c([I()],Z.prototype,"displayLabel",2),c([I()],Z.prototype,"currentOption",2),c([I()],Z.prototype,"selectedOptions",2),c([I()],Z.prototype,"valueHasChanged",2),c([I()],Z.prototype,"inputPrefix",2),c([I()],Z.prototype,"_searchDisplayValue",2),c([I()],Z.prototype,"_noResultsVisible",2),c([I()],Z.prototype,"_addOptionActive",2),c([I()],Z.prototype,"_fetchedOptions",2),c([I()],Z.prototype,"_fetchLoading",2),c([I()],Z.prototype,"_fetchError",2),c([I()],Z.prototype,"_searchLoading",2),c([I()],Z.prototype,"_totalResultCount",2),c([d()],Z.prototype,"name",2),c([d({type:Boolean,attribute:"non-removable"})],Z.prototype,"nonRemovable",2),c([I()],Z.prototype,"value",1),c([d({attribute:"value",converter:{fromAttribute:t=>{if(!t||Array.isArray(t))return t;if(t.trimStart().startsWith("["))try{let r=JSON.parse(t);if(Array.isArray(r))return r}catch{}return t.includes(" ")?t.split(" "):t},toAttribute:t=>Array.isArray(t)&&t.some(r=>r.includes(" "))?JSON.stringify(t):Array.isArray(t)?t.join(" "):t}})],Z.prototype,"defaultValue",2),c([d({reflect:!0})],Z.prototype,"size",2),c([d()],Z.prototype,"placeholder",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"multiple",2),c([d({attribute:"max-options",type:Number})],Z.prototype,"maxOptions",2),c([d({attribute:"max-options-visible",type:Number})],Z.prototype,"maxOptionsVisible",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),c([d({type:Boolean})],Z.prototype,"clearable",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"open",2),c([d({type:Boolean})],Z.prototype,"hoist",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"pill",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"search",2),c([d({type:Boolean,reflect:!0,attribute:"free-text"})],Z.prototype,"freeText",2),c([d()],Z.prototype,"label",2),c([d({attribute:"label-tooltip"})],Z.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],Z.prototype,"contextNote",2),c([d({reflect:!0})],Z.prototype,"placement",2),c([d({attribute:"help-text"})],Z.prototype,"helpText",2),c([d({reflect:!0})],Z.prototype,"form",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"required",2),c([d({attribute:"cache-key"})],Z.prototype,"cacheKey",2),c([d({type:Boolean,attribute:"trigger-submit"})],Z.prototype,"triggerSubmit",2),c([d()],Z.prototype,"getTag",2),c([d({attribute:"select-first",type:Boolean})],Z.prototype,"selectFirst",2),c([d()],Z.prototype,"distinct",2),c([d()],Z.prototype,"conditional",2),c([d()],Z.prototype,"requires",2),c([d({attribute:"data-uri"})],Z.prototype,"dataUri",2),c([d({attribute:"context-data"})],Z.prototype,"contextData",2),c([d({attribute:"max-results",type:Number})],Z.prototype,"maxResults",2),c([d({attribute:"search-debounce",type:Number})],Z.prototype,"searchDebounce",2),c([d({attribute:"search-param"})],Z.prototype,"searchParam",2),c([d({attribute:"search-only",type:Boolean})],Z.prototype,"searchOnly",2),c([K("disabled",{waitUntilFirstUpdate:!0})],Z.prototype,"handleDisabledChange",1),c([K(["dataUri","contextData"],{waitUntilFirstUpdate:!0})],Z.prototype,"handleSrcChange",1),c([K(["defaultValue","value"],{waitUntilFirstUpdate:!0})],Z.prototype,"handleValueChange",1),c([K("open",{waitUntilFirstUpdate:!0})],Z.prototype,"handleOpenChange",1);kn("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});kn("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var Be=Z;Z.define("zn-select");var bs=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}button,.zn-button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}button:hover:not([disabled]),.zn-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],input[type=file],input[list],textarea,select{display:block;width:100%;border-radius:5px;border-style:solid;border-width:1px;border-color:rgb(var(--zn-border-color));background-color:rgb(var(--zn-input-bg));outline:none}input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,input[type=file]:focus,input[list]:focus,textarea:focus,select:focus{border-color:rgb(var(--zn-primary));box-shadow:0 0 0 3px rgba(var(--zn-primary),0.3)}input[type=date]::-moz-placeholder, input[type=datetime-local]::-moz-placeholder, input[type=email]::-moz-placeholder, input[type=month]::-moz-placeholder, input[type=number]::-moz-placeholder, input[type=password]::-moz-placeholder, input[type=search]::-moz-placeholder, input[type=tel]::-moz-placeholder, input[type=text]::-moz-placeholder, input[type=time]::-moz-placeholder, input[type=url]::-moz-placeholder, input[type=week]::-moz-placeholder, input[type=file]::-moz-placeholder, input[list]::-moz-placeholder, textarea::-moz-placeholder, select::-moz-placeholder{font-weight:400;color:rgba(var(--zn-text),0.6)}input[type=date]::placeholder,input[type=datetime-local]::placeholder,input[type=email]::placeholder,input[type=month]::placeholder,input[type=number]::placeholder,input[type=password]::placeholder,input[type=search]::placeholder,input[type=tel]::placeholder,input[type=text]::placeholder,input[type=time]::placeholder,input[type=url]::placeholder,input[type=week]::placeholder,input[type=file]::placeholder,input[list]::placeholder,textarea::placeholder,select::placeholder{font-weight:400;color:rgba(var(--zn-text),0.6)}@media (min-width:360px){input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],input[type=file],input[list],textarea,select{padding:8px}}label{font-weight:600;font-size:rgb(var(--zn-font-size-medium));line-height:var(--zn-spacing-medium);color:rgb(var(--zn-text-heading));display:block;margin-bottom:4px;margin-top:16px}input[type=checkbox],input[type=radio]{border-radius:5px}input[type=radio]{border-radius:50%}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:10px;background-color:rgb(var(--zn-border-color));height:8px;accent-color:rgb(var(--zn-primary));width:100%;max-width:768px}fieldset{border-color:rgba(var(--zn-primary),20%);border-width:2px;padding:0 16px 16px}select option{padding:4px}select>option:checked{background-color:rgba(var(--zn-primary),20%);border-radius:5px}fieldset>legend{padding:4px}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}input[type=button]:hover:not([disabled]),input[type=submit]:hover:not([disabled]),button[type=submit]:not(.button):hover:not([disabled]),button[type=button]:not(.button):hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){width:auto}div+button{margin-top:16px}input[type=file]::-webkit-file-upload-button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}input[type=file]::-webkit-file-upload-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=file]::-webkit-file-upload-button{margin-right:8px}input::-webkit-calendar-picker-indicator{cursor:pointer;padding:8px}input[list]::-webkit-calendar-picker-indicator{padding:8px 4px}.input--with-icon{position:relative}.input--with-icon zn-icon{padding:14px;position:absolute;top:50%;pointer-events:none;transform:translateY(-50%);left:8px;background-color:rgb(var(--zn-primary));color:rgb(var(--zn-text));border-radius:50%}.input--with-icon input{padding-left:40px}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;-webkit-text-fill-color:rgb(var(--zn-text));-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;box-shadow:inset 0 0 20px 20px rgba(35,35,35,0.1607843137)}select{height:43px}.no-border{border:none !important}`;var z0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:contents;--zn-input-bg:var(--zn-panel)}.add-rule{max-width:250px;margin-bottom:10px}.query-builder{display:flex;flex-direction:column;flex-wrap:wrap}.query-builder zn-button{align-self:flex-end}.query-builder--popup:has(.query-builder__row){min-width:990px}.query-builder__row,.query-builder__wrapper{display:flex;width:100%;gap:10px}.query-builder__row{padding-bottom:10px}.query-builder__key,.query-builder__comparator{flex-basis:60%}.query-builder__value{flex-grow:1}.query-builder--dropdown:has(.query-builder__row){min-width:900px}`;var Yu={eq:"Equals",neq:"Not Equals",eqi:"Equals (Insensitive)",neqi:"Not Equals (Insensitive)",before:"Was Before",after:"Was After",in:"In",nin:"Not In",matchphrasepre:"Match Phrase Prefix",nmatchphrasepre:"Does Not Match Phrase Prefix",matchphrase:"Match Phrase",nmatchphrase:"Does Not Match Phrase",match:"Match",nmatch:"Does Not Match",contains:"Contains",doesnotcontain:"Does Not Contain",starts:"Starts With",nstarts:"Does Not Start With",ends:"Ends With",nends:"Does Not End With",wild:"Wildcard Match",nwild:"Does Not Match Wildcard",like:"Like Match With",nlike:"Does Not Like Match With",fuzzy:"Fuzzy Match With",nfuzzy:"Does Not Match Fuzzy With",gte:"Greater Than or Equals",gt:"Greater Than",lt:"Less Than",lte:"Less Than or Equals"},Cr=class extends k{constructor(){super(...arguments);this._selectedRules=new Map;this._formController=new re(this,{});this.filters=[];this.dropdown=!1;this.showValues=[]}get _usedFilterIds(){return new Set([...this._selectedRules.values()].map(t=>t.id))}get validationMessage(){return""}get validity(){return this.input?.validity}firstUpdated(t){super.firstUpdated(t),this.showValues&&this.showValues.forEach(r=>{this._addRule(null,r)}),this._handleChange(),this._formController.updateValidity()}render(){return u`
|
|
774
775
|
<div class=${M({"query-builder":!0,"query-builder--dropdown":this.dropdown})}>
|
|
775
776
|
<zn-select class="add-rule"
|
|
776
777
|
size="medium"
|
|
@@ -852,7 +853,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
852
853
|
<zn-input type="text"
|
|
853
854
|
class="query-builder__value"
|
|
854
855
|
@zn-input="${n=>this._updateValue(t,n)}">
|
|
855
|
-
</zn-input>`;return It(r)}_updateOperatorValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;this._previousOperator=n.operator,n.operator=a.value,this._selectedRules.set(t,n),this._handleChange()}_updateDateValue(t,r,n="legacy"){let a=this._selectedRules.get(t);if(!a)return;let s=r.target,l=a.operator,p,h;switch(n){case"legacy":if(l==="eq"||l==="neq")h=(s.timestamp/1e3).toString();else{let m=l==="before"?-1:1;h=(Math.floor((Date.now()-s.timestamp)/1e3/60)*m).toString()}break;case"timestamp":h=s.timestamp.toString();break;case"iso":p=new Date(s.timestamp),h=new Date(p.getTime()-p.getTimezoneOffset()*6e4).toISOString();break}a.value=h,this._selectedRules.set(t,a),this._handleChange()}_updateValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;n.value=a.value,this._selectedRules.set(t,n),this._handleChange()}updateInValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;n.value=a.value,this._selectedRules.set(t,n),this._handleChange()}_changeRule(t,r){let n=this._getRulePosition(t),a=r.target;a.popup.active=!1,a?.parentElement?.remove(),this._removeRule(t,r),this._addRule(r,"",n)}_getRulePosition(t){let r=this.container.querySelectorAll(".query-builder__row"),n=-1;return r.forEach((a,s)=>{a.id===t&&(n=s)}),n}_removeRule(t,r){this._selectedRules.delete(t),r.target?.closest(".query-builder__row")?.remove(),this._handleChange()}clear(){this._selectedRules.clear(),this.value="",this.container.querySelectorAll(".query-builder__row").forEach(r=>{r.remove()}),this.requestUpdate(),this._formController.updateValidity()}reset(){this.clear(),this.showValues.forEach(t=>{this._addRule(null,t)}),this._handleChange(),this._formController.updateValidity()}checkValidity(){return this.input.checkValidity()}getForm(){return this._formController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this._formController.updateValidity()}};Cr.styles=[z(bs),z(z0)],Cr.dependencies={"zn-button":Me,"zn-input":at,"zn-option":st,"zn-select":Be},c([F(".query-builder")],Cr.prototype,"container",2),c([F(".add-rule")],Cr.prototype,"addRule",2),c([F("input#main-input")],Cr.prototype,"input",2),c([d({type:Array})],Cr.prototype,"filters",2),c([d({type:Boolean})],Cr.prototype,"dropdown",2),c([d()],Cr.prototype,"name",2),c([d()],Cr.prototype,"value",2),c([d({attribute:"show-values",converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],Cr.prototype,"showValues",2);var k4=Cr;Cr.define("zn-query-builder");var S0=_r(Xu(),1);var _0=_`.air-datepicker-cell.-year-.-other-decade-,.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.air-datepicker-cell.-year-.-other-decade-:hover,.air-datepicker-cell.-day-.-other-month-:hover{color:var(--adp-color-other-month-hover)}.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.-selected-.air-datepicker-cell.-year-.-other-decade-,.-selected-.air-datepicker-cell.-day-.-other-month-{color:#fff;background:var(--adp-background-color-selected-other-month)}.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-selected-.-focus-.air-datepicker-cell.-day-.-other-month-{background:var(--adp-background-color-selected-other-month-focused)}.-in-range-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range);color:var(--adp-color)}.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range-focused)}.air-datepicker-cell.-year-.-other-decade-:empty,.air-datepicker-cell.-day-.-other-month-:empty{background:none;border:none}.air-datepicker-cell{border-radius:var(--adp-cell-border-radius);box-sizing:border-box;cursor:pointer;display:flex;position:relative;align-items:center;justify-content:center;z-index:1}.air-datepicker-cell.-focus-{background:var(--adp-cell-background-color-hover)}.air-datepicker-cell.-current-{color:var(--adp-color-current-date)}.air-datepicker-cell.-current-.-focus-{color:var(--adp-color)}.air-datepicker-cell.-current-.-in-range-{color:var(--adp-color-current-date)}.air-datepicker-cell.-disabled-{cursor:default;color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-in-range-{color:var(--adp-color-disabled-in-range)}.air-datepicker-cell.-disabled-.-current-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-in-range-{background:var(--adp-cell-background-color-in-range);border-radius:0}.air-datepicker-cell.-in-range-:hover,.air-datepicker-cell.-in-range-.-focus-{background:var(--adp-cell-background-color-in-range-hover)}.air-datepicker-cell.-range-from-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius)}.air-datepicker-cell.-range-to-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0}.air-datepicker-cell.-range-to-.-range-from-{border-radius:var(--adp-cell-border-radius)}.air-datepicker-cell.-selected-{color:#fff;border:none;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-current-{color:#fff;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-focus-{background:var(--adp-cell-background-color-selected-hover)}.air-datepicker-body{transition:all var(--adp-transition-duration) var(--adp-transition-ease)}.air-datepicker-body.-hidden-{display:none}.air-datepicker-body--day-names{display:grid;grid-template-columns:repeat(7,var(--adp-day-cell-width));margin:8px 0 3px}.air-datepicker-body--day-name{color:var(--adp-day-name-color);display:flex;align-items:center;justify-content:center;flex:1;text-align:center;text-transform:uppercase;font-size:0.8em}.air-datepicker-body--day-name.-clickable-{cursor:pointer}.air-datepicker-body--day-name.-clickable-:hover{color:var(--adp-day-name-color-hover)}.air-datepicker-body--cells{display:grid}.air-datepicker-body--cells.-days-{grid-template-columns:repeat(7,var(--adp-day-cell-width));grid-auto-rows:var(--adp-day-cell-height)}.air-datepicker-body--cells.-months-{grid-template-columns:repeat(3,1fr);grid-auto-rows:var(--adp-month-cell-height)}.air-datepicker-body--cells.-years-{grid-template-columns:repeat(4,1fr);grid-auto-rows:var(--adp-year-cell-height)}.air-datepicker-nav{display:flex;justify-content:space-between;border-bottom:1px solid var(--adp-border-color-inner);min-height:var(--adp-nav-height);padding:var(--adp-padding);box-sizing:content-box}.-only-timepicker- .air-datepicker-nav{display:none}.air-datepicker-nav--title,.air-datepicker-nav--action{display:flex;cursor:pointer;align-items:center;justify-content:center}.air-datepicker-nav--action{width:var(--adp-nav-action-size);border-radius:var(--adp-border-radius);-webkit-user-select:none;-moz-user-select:none;user-select:none}.air-datepicker-nav--action:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--action:active{background:var(--adp-background-color-active)}.air-datepicker-nav--action.-disabled-{visibility:hidden}.air-datepicker-nav--action svg{width:32px;height:32px}.air-datepicker-nav--action path{fill:none;stroke:var(--adp-nav-arrow-color);stroke-width:2px}.air-datepicker-nav--title{border-radius:var(--adp-border-radius);padding:0 8px}.air-datepicker-nav--title i{font-style:normal;color:var(--adp-nav-color-secondary);margin-left:0.3em}.air-datepicker-nav--title:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--title:active{background:var(--adp-background-color-active)}.air-datepicker-nav--title.-disabled-{cursor:default;background:none}.air-datepicker-buttons{display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.air-datepicker-button{display:inline-flex;color:var(--adp-btn-color);border-radius:var(--adp-btn-border-radius);cursor:pointer;height:var(--adp-btn-height);border:none;background:rgba(255,255,255,0)}.air-datepicker-button:hover{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover)}.air-datepicker-button:focus{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover);outline:none}.air-datepicker-button:active{background:var(--adp-btn-background-color-active)}.air-datepicker-button span{outline:none;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.air-datepicker-time{display:grid;grid-template-columns:max-content 1fr;grid-column-gap:12px;align-items:center;position:relative;padding:0 var(--adp-time-padding-inner)}.-only-timepicker- .air-datepicker-time{border-top:none}.air-datepicker-time--current{display:flex;align-items:center;flex:1;font-size:14px;text-align:center}.air-datepicker-time--current-colon{margin:0 2px 3px;line-height:1}.air-datepicker-time--current-hours,.air-datepicker-time--current-minutes{line-height:1;font-size:19px;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif;position:relative;z-index:1}.air-datepicker-time--current-hours:after,.air-datepicker-time--current-minutes:after{content:"";background:var(--adp-background-color-hover);border-radius:var(--adp-border-radius);position:absolute;left:-2px;top:-3px;right:-2px;bottom:-2px;z-index:-1;opacity:0}.air-datepicker-time--current-hours.-focus-:after,.air-datepicker-time--current-minutes.-focus-:after{opacity:1}.air-datepicker-time--current-ampm{text-transform:uppercase;align-self:flex-end;color:var(--adp-time-day-period-color);margin-left:6px;font-size:11px;margin-bottom:1px}.air-datepicker-time--row{display:flex;align-items:center;font-size:11px;height:17px;background:linear-gradient(to right,var(--adp-time-track-color),var(--adp-time-track-color)) left 50%/100% var(--adp-time-track-height) no-repeat}.air-datepicker-time--row:first-child{margin-bottom:4px}.air-datepicker-time--row input[type=range]{background:none;cursor:pointer;flex:1;height:100%;width:100%;padding:0;margin:0;-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-ms-tooltip{display:none}.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-ms-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:focus{outline:none}.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-ms-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-webkit-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-moz-range-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-moz-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-ms-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-ms-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{margin-top:calc(var(--adp-time-thumb-size) / 2 * -1)}.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-moz-range-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-lower{background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-upper{background:rgba(0,0,0,0)}.air-datepicker{--adp-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--adp-font-size:14px;--adp-width:246px;--adp-z-index:100;--adp-padding:4px;--adp-grid-areas:"nav" "body" "timepicker" "buttons";--adp-transition-duration:.3s;--adp-transition-ease:ease-out;--adp-transition-offset:8px;--adp-background-color:#fff;--adp-background-color-hover:#f0f0f0;--adp-background-color-active:#eaeaea;--adp-background-color-in-range:rgba(92,196,239,.1);--adp-background-color-in-range-focused:rgba(92,196,239,.2);--adp-background-color-selected-other-month-focused:#8ad5f4;--adp-background-color-selected-other-month:#a2ddf6;--adp-color:#4a4a4a;--adp-color-secondary:#9c9c9c;--adp-accent-color:#4eb5e6;--adp-color-current-date:var(--adp-accent-color);--adp-color-other-month:#dedede;--adp-color-disabled:#aeaeae;--adp-color-disabled-in-range:#939393;--adp-color-other-month-hover:#c5c5c5;--adp-border-color:#dbdbdb;--adp-border-color-inner:#efefef;--adp-border-radius:4px;--adp-border-color-inline:#d7d7d7;--adp-nav-height:32px;--adp-nav-arrow-color:var(--adp-color-secondary);--adp-nav-action-size:32px;--adp-nav-color-secondary:var(--adp-color-secondary);--adp-day-name-color:#ff9a19;--adp-day-name-color-hover:#8ad5f4;--adp-day-cell-width:1fr;--adp-day-cell-height:32px;--adp-month-cell-height:42px;--adp-year-cell-height:56px;--adp-pointer-size:10px;--adp-poiner-border-radius:2px;--adp-pointer-offset:14px;--adp-cell-border-radius:4px;--adp-cell-background-color-hover:var(--adp-background-color-hover);--adp-cell-background-color-selected:#5cc4ef;--adp-cell-background-color-selected-hover:#45bced;--adp-cell-background-color-in-range:rgba(92,196,239,0.1);--adp-cell-background-color-in-range-hover:rgba(92,196,239,0.2);--adp-cell-border-color-in-range:var(--adp-cell-background-color-selected);--adp-btn-height:32px;--adp-btn-color:var(--adp-accent-color);--adp-btn-color-hover:var(--adp-color);--adp-btn-border-radius:var(--adp-border-radius);--adp-btn-background-color-hover:var(--adp-background-color-hover);--adp-btn-background-color-active:var(--adp-background-color-active);--adp-time-track-height:1px;--adp-time-track-color:#dedede;--adp-time-track-color-hover:#b1b1b1;--adp-time-thumb-size:12px;--adp-time-padding-inner:10px;--adp-time-day-period-color:var(--adp-color-secondary);--adp-mobile-font-size:16px;--adp-mobile-nav-height:40px;--adp-mobile-width:320px;--adp-mobile-day-cell-height:38px;--adp-mobile-month-cell-height:48px;--adp-mobile-year-cell-height:64px}.air-datepicker-overlay{--adp-overlay-background-color:rgba(0,0,0,.3);--adp-overlay-transition-duration:.3s;--adp-overlay-transition-ease:ease-out;--adp-overlay-z-index:99}.air-datepicker{background:var(--adp-background-color);border:1px solid var(--adp-border-color);box-shadow:0 4px 12px rgba(0,0,0,0.15);border-radius:var(--adp-border-radius);box-sizing:content-box;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,max-content);grid-template-areas:var(--adp-grid-areas);font-family:var(--adp-font-family),sans-serif;font-size:var(--adp-font-size);color:var(--adp-color);width:var(--adp-width);position:absolute;transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease);z-index:var(--adp-z-index)}.air-datepicker:not(.-custom-position-){opacity:0}.air-datepicker.-from-top-{transform:translateY(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-from-right-{transform:translateX(var(--adp-transition-offset))}.air-datepicker.-from-bottom-{transform:translateY(var(--adp-transition-offset))}.air-datepicker.-from-left-{transform:translateX(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-active-:not(.-custom-position-){transform:translate(0,0);opacity:1}.air-datepicker.-active-.-custom-position-{transition:none}.air-datepicker.-inline-{border-color:var(--adp-border-color-inline);box-shadow:none;position:static;left:auto;right:auto;opacity:1;transform:none}.air-datepicker.-inline- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-{--adp-font-size:var(--adp-mobile-font-size);--adp-day-cell-height:var(--adp-mobile-day-cell-height);--adp-month-cell-height:var(--adp-mobile-month-cell-height);--adp-year-cell-height:var(--adp-mobile-year-cell-height);--adp-nav-height:var(--adp-mobile-nav-height);--adp-nav-action-size:var(--adp-mobile-nav-height);position:fixed;width:var(--adp-mobile-width);border:none}.air-datepicker.-is-mobile- *{-webkit-tap-highlight-color:rgba(0,0,0,0)}.air-datepicker.-is-mobile- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-:not(.-custom-position-){transform:translate(-50%,calc(-50% + var(--adp-transition-offset)))}.air-datepicker.-is-mobile-.-active-:not(.-custom-position-){transform:translate(-50%,-50%)}.air-datepicker.-custom-position-{transition:none}.air-datepicker-global-container{position:absolute;left:0;top:0}.air-datepicker--pointer{--pointer-half-size:calc(var(--adp-pointer-size) / 2);position:absolute;width:var(--adp-pointer-size);height:var(--adp-pointer-size);z-index:-1}.air-datepicker--pointer:after{content:"";position:absolute;background:#fff;border-top:1px solid var(--adp-border-color-inline);border-right:1px solid var(--adp-border-color-inline);border-top-right-radius:var(--adp-poiner-border-radius);width:var(--adp-pointer-size);height:var(--adp-pointer-size);box-sizing:border-box}.-top-left- .air-datepicker--pointer,.-top-center- .air-datepicker--pointer,.-top-right- .air-datepicker--pointer,[data-popper-placement^=top] .air-datepicker--pointer{top:calc(100% - var(--pointer-half-size) + 1px)}.-top-left- .air-datepicker--pointer:after,.-top-center- .air-datepicker--pointer:after,.-top-right- .air-datepicker--pointer:after,[data-popper-placement^=top] .air-datepicker--pointer:after{transform:rotate(135deg)}.-right-top- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer,[data-popper-placement^=right] .air-datepicker--pointer{right:calc(100% - var(--pointer-half-size) + 1px)}.-right-top- .air-datepicker--pointer:after,.-right-center- .air-datepicker--pointer:after,.-right-bottom- .air-datepicker--pointer:after,[data-popper-placement^=right] .air-datepicker--pointer:after{transform:rotate(225deg)}.-bottom-left- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer,[data-popper-placement^=bottom] .air-datepicker--pointer{bottom:calc(100% - var(--pointer-half-size) + 1px)}.-bottom-left- .air-datepicker--pointer:after,.-bottom-center- .air-datepicker--pointer:after,.-bottom-right- .air-datepicker--pointer:after,[data-popper-placement^=bottom] .air-datepicker--pointer:after{transform:rotate(315deg)}.-left-top- .air-datepicker--pointer,.-left-center- .air-datepicker--pointer,.-left-bottom- .air-datepicker--pointer,[data-popper-placement^=left] .air-datepicker--pointer{left:calc(100% - var(--pointer-half-size) + 1px)}.-left-top- .air-datepicker--pointer:after,.-left-center- .air-datepicker--pointer:after,.-left-bottom- .air-datepicker--pointer:after,[data-popper-placement^=left] .air-datepicker--pointer:after{transform:rotate(45deg)}.-top-left- .air-datepicker--pointer,.-bottom-left- .air-datepicker--pointer{left:var(--adp-pointer-offset)}.-top-right- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer{right:var(--adp-pointer-offset)}.-top-center- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer{left:calc(50% - var(--adp-pointer-size) / 2)}.-left-top- .air-datepicker--pointer,.-right-top- .air-datepicker--pointer{top:var(--adp-pointer-offset)}.-left-bottom- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer{bottom:var(--adp-pointer-offset)}.-left-center- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer{top:calc(50% - var(--adp-pointer-size) / 2)}.air-datepicker--navigation{grid-area:nav}.air-datepicker--content{box-sizing:content-box;padding:var(--adp-padding);grid-area:body}.-only-timepicker- .air-datepicker--content{display:none}.air-datepicker--time{grid-area:timepicker}.air-datepicker--buttons{grid-area:buttons}.air-datepicker--buttons,.air-datepicker--time{padding:var(--adp-padding);border-top:1px solid var(--adp-border-color-inner)}.air-datepicker-overlay{position:fixed;background:var(--adp-overlay-background-color);left:0;top:0;width:0;height:0;opacity:0;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);z-index:var(--adp-overlay-z-index)}.air-datepicker-overlay.-active-{opacity:1;width:100%;height:100%;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s}.air-datepicker{--adp-color:rgba(var(--zn-text),var(--zn-text-opacity));--adp-nav-color-secondary:rgb(var(--zn-purple-text));--adp-day-name-color:var(--zn-color-primary-600);--adp-day-name-color-hover:var(--zn-color-primary-700);--adp-cell-background-color-selected:var(--zn-color-primary-600);--adp-cell-background-color-selected-hover:var(--zn-color-primary-700);--adp-color-current-date:var(--zn-color-primary-600);--adp-background-color:var(--zn-input-background-color);--adp-background-color-hover:var(--zn-input-background-color-hover);--adp-background-color-active:var(--zn-input-background-color-hover);--adp-background-color-selected-other-month:var(--zn-color-primary-300);--adp-background-color-in-range:var(--zn-color-primary-100);--adp-border-color:rgb(var(--zn-border-color));--adp-border-color-inline:rgb(var(--zn-border-color));--adp-border-color-inner:rgb(var(--zn-border-color));--adp-cell-background-color-in-range:var(--zn-color-primary-100);--adp-cell-background-color-in-range-hover:var(--zn-color-primary-200)}.air-datepicker--pointer:after{background-color:var(--zn-input-background-color)}.air-datepicker-global-container{z-index:1000000}.air-datepicker-button{border:none;padding:var(--zn-spacing-2x-small) var(--zn-spacing-x-small);border-radius:var(--adp-border-radius);font-family:var(--adp-font-family),sans-serif;font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);cursor:pointer;color:rgba(var(--zn-text),var(--zn-text-opacity))}.air-datepicker-button:hover{background-color:var(--zn-input-background-color-hover) !important}`;var k0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.input{flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;font-family:var(--zn-input-font-family),sans-serif;font-weight:var(--zn-input-font-weight);letter-spacing:var(--zn-input-letter-spacing);vertical-align:middle;overflow:hidden;cursor:text;transition:var(--zn-transition-fast) color,var(--zn-transition-fast) border,var(--zn-transition-fast) background-color}.input--standard{background-color:var(--zn-input-background-color);border:solid var(--zn-input-border-width) var(--zn-input-border-color)}.input--standard:hover:not(.input--disabled){background-color:var(--zn-input-background-color-hover);border-color:var(--zn-input-border-color-hover)}.input--standard.input--focused:not(.input--disabled){background-color:var(--zn-input-background-color-focus);border-color:var(--zn-input-border-color-focus);box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input--standard.input--focused:not(.input--disabled) .input__control{color:var(--zn-input-color-focus)}.input--standard.input--disabled{background-color:var(--zn-input-background-color-disabled);border-color:var(--zn-input-border-color-disabled);opacity:0.5;cursor:not-allowed}.input--standard.input--disabled .input__control{color:var(--zn-input-color-disabled)}.input--standard.input--disabled .input__control::-moz-placeholder{color:var(--zn-input-placeholder-color-disabled)}.input--standard.input--disabled .input__control::placeholder{color:var(--zn-input-placeholder-color-disabled)}.input__control{flex:1 1 auto;font-family:inherit;font-size:inherit;font-weight:inherit;min-width:0;height:100%;color:var(--zn-input-color);border:none;background:inherit;box-shadow:none;padding:0;margin:0;cursor:inherit;-webkit-appearance:none}.input__control::-webkit-search-decoration,.input__control::-webkit-search-cancel-button,.input__control::-webkit-search-results-button,.input__control::-webkit-search-results-decoration{-webkit-appearance:none}.input__control:-webkit-autofill,.input__control:-webkit-autofill:hover,.input__control:-webkit-autofill:focus,.input__control:-webkit-autofill:active{box-shadow:0 0 0 var(--zn-input-height-large) var(--zn-input-background-color) inset !important;-webkit-text-fill-color:var(--zn-input-color);caret-color:var(--zn-input-color)}.input__control::-moz-placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.input__control::placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.input:hover:not(.input--disabled) .input__control{color:var(--zn-input-color-hover)}.input__control:focus{outline:none}.input__prefix,.input__suffix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default;color:var(--zn-input-icon-color);font-size:var(--zn-font-size-small)}.input__prefix zn-icon,.input__suffix zn-icon{--icon-size:var(--zn-font-size-x-large);color:var(--zn-input-icon-color);font-size:var(--zn-font-size-small)}.input__prefix ::slotted(zn-icon),.input__suffix ::slotted(zn-icon){--icon-size:var(--zn-font-size-medium);font-size:var(--zn-font-size-medium);color:var(--zn-input-icon-color)}.input__prefix-default zn-icon{display:contents}.input--small{border-radius:var(--zn-input-border-radius-small);font-size:var(--zn-input-font-size-small);height:var(--zn-input-height-small)}.input--small .input__control{height:calc(var(--zn-input-height-small) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small)}.input--small .input__clear,.input--small .input__password-toggle{width:calc(1em + var(--zn-input-spacing-small) * 2)}.input--small .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-input-spacing-small)}.input--small .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-small)}.input--small .input__suffix ::slotted(zn-button),.input--small .input__prefix ::slotted(zn-button){margin-inline-end:0;margin-inline-start:0}.input--medium{border-radius:var(--zn-input-border-radius-medium);font-size:var(--zn-input-font-size-medium);height:var(--zn-input-height-medium)}.input--medium .input__control{height:calc(var(--zn-input-height-medium) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-medium)}.input--medium .input__clear,.input--medium .input__password-toggle{width:calc(1em + var(--zn-input-spacing-medium) * 2)}.input--medium .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-medium)}.input--medium .input__suffix ::slotted(zn-button),.input--medium .input__prefix ::slotted(zn-button){margin-inline-end:0;margin-inline-start:0}.input--large{border-radius:var(--zn-input-border-radius-large);font-size:var(--zn-input-font-size-large);height:var(--zn-input-height-large)}.input--large .input__control{height:calc(var(--zn-input-height-large) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-medium)}.input--large .input__clear,.input--large .input__password-toggle{width:calc(1em + var(--zn-input-spacing-large) * 2)}.input--large .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-large)}.input--large .input__suffix ::slotted(zn-button),.input--large .input__prefix ::slotted(zn-button){margin-inline-end:0;margin-inline-start:0}:host([inline]) .input{display:block;height:auto;overflow:visible;border:none;border-radius:0;background:none;box-shadow:none;cursor:default}:host([inline]) .air-datepicker{--adp-border-color-inline:var(--zn-datepicker-inline-border-color,rgb(var(--zn-border-color)))}:host([inline]) .input__control,:host([inline]) .input__prefix,:host([inline]) .input__suffix{display:none}`;var ye=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text","label","label-tooltip");this.hasFocus=!1;this.title="";this.name="";this.value="";this.defaultValue="";this.size="medium";this.label="";this.labelTooltip="";this.contextNote="";this.helpText="";this.disabled=!1;this.placeholder="";this.readonly=!1;this.flush=!1;this.inline=!1;this.required=!1;this.clearable=!1;this.range=!1;this.disablePastDates=!1;this.format="MM/dd/yyyy";this.timePicker=!1;this.onlyTimepicker=!1;this.timeFormat="hh:mm AA"}get timestamp(){let t=this.input.parentElement.querySelector("#date-picker-timestamp").value??"";return Number(t)}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){if(await this.updateComplete,this.formControlController.updateValidity(),this._instance&&this.value){let t=this.parseDate(String(this.value));t&&this._instance.selectDate(t,{silent:!0})}else this._instance&&!this.value&&this._instance.clear({silent:!0})}handleDatepickerOptionsChange(){this.init()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}init(){this._instance&&Object.prototype.hasOwnProperty.call(this._instance,"destroy")&&this._instance.destroy();let t=this.shadowRoot.querySelector("input");if(t){let r=this.shadowRoot.querySelector("#date-picker-timestamp"),n={locale:C4,inline:this.inline,dateFormat:this.format,range:this.range,toggleSelected:!1,timepicker:this.timePicker,onlyTimepicker:this.onlyTimepicker,timeFormat:this.timeFormat,container:this.container??this.getCalendarContainer(),altField:r,onSelect:({date:a})=>{if(this.timePicker||this.onlyTimepicker){this.inline&&this.handleChange();return}a&&!this.range?(this.input.blur(),this.handleChange()):a&&this.range&&Array.isArray(a)&&a.length===2&&(this.input.blur(),this.handleChange())},onHide:a=>{a&&(this.timePicker||this.onlyTimepicker)&&this.handleChange()}};this.minDate?n.minDate=typeof this.minDate=="string"?new Date(this.minDate):this.minDate:this.disablePastDates&&(n.minDate=this.normalizeDate(new Date)),this.maxDate&&(n.maxDate=typeof this.maxDate=="string"?new Date(this.maxDate):this.maxDate),this.clearable&&(n.buttons=["clear"]),this.inline&&this.adoptCalendarStyles(this.shadowRoot),this._instance=new S0.default(t,n)}}getCalendarContainer(){let t=this.findTopLayerAncestor();if(!t)return;let r=t.querySelector(":scope > .zn-datepicker-container");r||(r=document.createElement("div"),r.className="air-datepicker-global-container zn-datepicker-container",r.style.cssText="position: fixed; top: 0; left: 0;",t.appendChild(r));let n=r.getRootNode();return n instanceof ShadowRoot&&this.adoptCalendarStyles(n),r}adoptCalendarStyles(t){let r=S4();t.adoptedStyleSheets.includes(r)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,r])}findTopLayerAncestor(){let t=this.assignedSlot??this.parentNode;for(;t;){if(t instanceof HTMLElement&&(t.tagName==="DIALOG"||t.hasAttribute("popover")))return t;t=t.assignedSlot??(t instanceof ShadowRoot?t.host:t.parentNode)}return null}handleInput(t){let r=this.input.value,n=this.input.selectionStart||0,a=this.getFormatSeparator(),s=new RegExp(`[^0-9${this.escapeRegex(a)}]`,"g"),l=r.replace(s,""),p=this.autoFormatDate(l,a);if(r!==p)if(this.input.value=p,p.length>r.length&&t?.inputType==="insertText"){let h=n+(p.length-r.length);this.input.setSelectionRange(h,h)}else this.input.setSelectionRange(n,n);this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleChange(){this.value=this.input.value,this.emit("zn-change")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){if(this._instance&&this._instance.visible)return;if(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let r=["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"];if(t.ctrlKey||t.metaKey||r.includes(t.key))return;let n=this.getFormatSeparator();new RegExp(`^[0-9${this.escapeRegex(n)}]$`).test(t.key)||t.preventDefault()}handlePaste(t){let r=t.clipboardData?.getData("text")||"",n=this.getFormatSeparator();new RegExp(`^[0-9${this.escapeRegex(n)}\\s]*$`).test(r)||t.preventDefault()}handleBlur(){if(this._instance&&this._instance.visible||!this.input.value||this.input.value.trim()==="")return;if(!this.isValidDateString(this.input.value)){this.clearInvalidDate();return}let t=this.parseDate(this.input.value);if(t&&!this.isDateInRange(t)){this.clearInvalidDate();return}t&&this._instance&&this._instance.selectDate(t)}isValidDateString(t){let r=this.parseDateString(t);if(!r)return!1;let{day:n,month:a,year:s}=r,l=new Date(s,a-1,n);return l.getFullYear()===s&&l.getMonth()===a-1&&l.getDate()===n}parseDate(t){let r=this.parseDateString(t);if(!r)return null;let{day:n,month:a,year:s}=r,l=new Date(s,a-1,n);return this.normalizeDate(l)}parseDateString(t){let r=this.getFormatSeparator(),n=this.escapeRegex(r),a=this.format.replace(/dd/g,"(\\d{1,2})").replace(/MM/g,"(\\d{1,2})").replace(/yyyy/g,"(\\d{4})").replace(new RegExp(n,"g"),n),s=new RegExp(`^${a}$`),l=t.match(s);if(!l)return null;let p=this.format.split(r),h=-1,m=-1,f=-1;return p.forEach((b,g)=>{b==="dd"&&(h=g+1),b==="MM"&&(m=g+1),b==="yyyy"&&(f=g+1)}),h===-1||m===-1||f===-1?null:{day:parseInt(l[h]),month:parseInt(l[m]),year:parseInt(l[f])}}isDateInRange(t){let r,n;return this.minDate?(r=typeof this.minDate=="string"?new Date(this.minDate):new Date(this.minDate),this.normalizeDate(r)):this.disablePastDates&&(r=this.normalizeDate(new Date)),this.maxDate&&(n=typeof this.maxDate=="string"?new Date(this.maxDate):new Date(this.maxDate),this.normalizeDate(n)),!(r&&t<r||n&&t>n)}clearInvalidDate(){this.input.value="",this.value="",this._instance&&this._instance.clear(),this.formControlController.updateValidity()}getFormatSeparator(){let t=this.format.match(/[^dMy]/);return t?t[0]:"/"}escapeRegex(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}normalizeDate(t){return t.setHours(0,0,0,0),t}autoFormatDate(t,r){let n=t.replace(new RegExp(`\\${r}`,"g"),""),s=this.format.split(r).map(h=>h.length),l="",p=0;for(let h=0;h<s.length;h++){let m=s[h],f=n.substring(p,p+m);f&&(l+=f,p+=m,h<s.length-1&&p<n.length&&(l+=r))}return l}updated(t){super.updated(t)}firstUpdated(){this.init()}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("label-tooltip"),n=this.hasSlotController.test("context-note"),a=this.hasSlotController.test("help-text"),s=this.label?!0:t,l=this.labelTooltip?!0:r,p=this.contextNote?!0:n,h=this.helpText?!0:a;return u`
|
|
856
|
+
</zn-input>`;return It(r)}_updateOperatorValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;this._previousOperator=n.operator,n.operator=a.value,this._selectedRules.set(t,n),this._handleChange()}_updateDateValue(t,r,n="legacy"){let a=this._selectedRules.get(t);if(!a)return;let s=r.target,l=a.operator,p,h;switch(n){case"legacy":if(l==="eq"||l==="neq")h=(s.timestamp/1e3).toString();else{let m=l==="before"?-1:1;h=(Math.floor((Date.now()-s.timestamp)/1e3/60)*m).toString()}break;case"timestamp":h=s.timestamp.toString();break;case"iso":p=new Date(s.timestamp),h=new Date(p.getTime()-p.getTimezoneOffset()*6e4).toISOString();break}a.value=h,this._selectedRules.set(t,a),this._handleChange()}_updateValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;n.value=a.value,this._selectedRules.set(t,n),this._handleChange()}updateInValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;n.value=a.value,this._selectedRules.set(t,n),this._handleChange()}_changeRule(t,r){let n=this._getRulePosition(t),a=r.target;a.popup.active=!1,a?.parentElement?.remove(),this._removeRule(t,r),this._addRule(r,"",n)}_getRulePosition(t){let r=this.container.querySelectorAll(".query-builder__row"),n=-1;return r.forEach((a,s)=>{a.id===t&&(n=s)}),n}_removeRule(t,r){this._selectedRules.delete(t),r.target?.closest(".query-builder__row")?.remove(),this._handleChange()}clear(){this._selectedRules.clear(),this.value="",this.container.querySelectorAll(".query-builder__row").forEach(r=>{r.remove()}),this.requestUpdate(),this._formController.updateValidity()}reset(){this.clear(),this.showValues.forEach(t=>{this._addRule(null,t)}),this._handleChange(),this._formController.updateValidity()}checkValidity(){return this.input.checkValidity()}getForm(){return this._formController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this._formController.updateValidity()}};Cr.styles=[z(bs),z(z0)],Cr.dependencies={"zn-button":Me,"zn-input":st,"zn-option":lt,"zn-select":Be},c([F(".query-builder")],Cr.prototype,"container",2),c([F(".add-rule")],Cr.prototype,"addRule",2),c([F("input#main-input")],Cr.prototype,"input",2),c([d({type:Array})],Cr.prototype,"filters",2),c([d({type:Boolean})],Cr.prototype,"dropdown",2),c([d()],Cr.prototype,"name",2),c([d()],Cr.prototype,"value",2),c([d({attribute:"show-values",converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],Cr.prototype,"showValues",2);var k4=Cr;Cr.define("zn-query-builder");var S0=_r(Xu(),1);var _0=_`.air-datepicker-cell.-year-.-other-decade-,.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.air-datepicker-cell.-year-.-other-decade-:hover,.air-datepicker-cell.-day-.-other-month-:hover{color:var(--adp-color-other-month-hover)}.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.-selected-.air-datepicker-cell.-year-.-other-decade-,.-selected-.air-datepicker-cell.-day-.-other-month-{color:#fff;background:var(--adp-background-color-selected-other-month)}.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-selected-.-focus-.air-datepicker-cell.-day-.-other-month-{background:var(--adp-background-color-selected-other-month-focused)}.-in-range-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range);color:var(--adp-color)}.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range-focused)}.air-datepicker-cell.-year-.-other-decade-:empty,.air-datepicker-cell.-day-.-other-month-:empty{background:none;border:none}.air-datepicker-cell{border-radius:var(--adp-cell-border-radius);box-sizing:border-box;cursor:pointer;display:flex;position:relative;align-items:center;justify-content:center;z-index:1}.air-datepicker-cell.-focus-{background:var(--adp-cell-background-color-hover)}.air-datepicker-cell.-current-{color:var(--adp-color-current-date)}.air-datepicker-cell.-current-.-focus-{color:var(--adp-color)}.air-datepicker-cell.-current-.-in-range-{color:var(--adp-color-current-date)}.air-datepicker-cell.-disabled-{cursor:default;color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-in-range-{color:var(--adp-color-disabled-in-range)}.air-datepicker-cell.-disabled-.-current-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-in-range-{background:var(--adp-cell-background-color-in-range);border-radius:0}.air-datepicker-cell.-in-range-:hover,.air-datepicker-cell.-in-range-.-focus-{background:var(--adp-cell-background-color-in-range-hover)}.air-datepicker-cell.-range-from-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius)}.air-datepicker-cell.-range-to-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0}.air-datepicker-cell.-range-to-.-range-from-{border-radius:var(--adp-cell-border-radius)}.air-datepicker-cell.-selected-{color:#fff;border:none;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-current-{color:#fff;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-focus-{background:var(--adp-cell-background-color-selected-hover)}.air-datepicker-body{transition:all var(--adp-transition-duration) var(--adp-transition-ease)}.air-datepicker-body.-hidden-{display:none}.air-datepicker-body--day-names{display:grid;grid-template-columns:repeat(7,var(--adp-day-cell-width));margin:8px 0 3px}.air-datepicker-body--day-name{color:var(--adp-day-name-color);display:flex;align-items:center;justify-content:center;flex:1;text-align:center;text-transform:uppercase;font-size:0.8em}.air-datepicker-body--day-name.-clickable-{cursor:pointer}.air-datepicker-body--day-name.-clickable-:hover{color:var(--adp-day-name-color-hover)}.air-datepicker-body--cells{display:grid}.air-datepicker-body--cells.-days-{grid-template-columns:repeat(7,var(--adp-day-cell-width));grid-auto-rows:var(--adp-day-cell-height)}.air-datepicker-body--cells.-months-{grid-template-columns:repeat(3,1fr);grid-auto-rows:var(--adp-month-cell-height)}.air-datepicker-body--cells.-years-{grid-template-columns:repeat(4,1fr);grid-auto-rows:var(--adp-year-cell-height)}.air-datepicker-nav{display:flex;justify-content:space-between;border-bottom:1px solid var(--adp-border-color-inner);min-height:var(--adp-nav-height);padding:var(--adp-padding);box-sizing:content-box}.-only-timepicker- .air-datepicker-nav{display:none}.air-datepicker-nav--title,.air-datepicker-nav--action{display:flex;cursor:pointer;align-items:center;justify-content:center}.air-datepicker-nav--action{width:var(--adp-nav-action-size);border-radius:var(--adp-border-radius);-webkit-user-select:none;-moz-user-select:none;user-select:none}.air-datepicker-nav--action:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--action:active{background:var(--adp-background-color-active)}.air-datepicker-nav--action.-disabled-{visibility:hidden}.air-datepicker-nav--action svg{width:32px;height:32px}.air-datepicker-nav--action path{fill:none;stroke:var(--adp-nav-arrow-color);stroke-width:2px}.air-datepicker-nav--title{border-radius:var(--adp-border-radius);padding:0 8px}.air-datepicker-nav--title i{font-style:normal;color:var(--adp-nav-color-secondary);margin-left:0.3em}.air-datepicker-nav--title:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--title:active{background:var(--adp-background-color-active)}.air-datepicker-nav--title.-disabled-{cursor:default;background:none}.air-datepicker-buttons{display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.air-datepicker-button{display:inline-flex;color:var(--adp-btn-color);border-radius:var(--adp-btn-border-radius);cursor:pointer;height:var(--adp-btn-height);border:none;background:rgba(255,255,255,0)}.air-datepicker-button:hover{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover)}.air-datepicker-button:focus{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover);outline:none}.air-datepicker-button:active{background:var(--adp-btn-background-color-active)}.air-datepicker-button span{outline:none;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.air-datepicker-time{display:grid;grid-template-columns:max-content 1fr;grid-column-gap:12px;align-items:center;position:relative;padding:0 var(--adp-time-padding-inner)}.-only-timepicker- .air-datepicker-time{border-top:none}.air-datepicker-time--current{display:flex;align-items:center;flex:1;font-size:14px;text-align:center}.air-datepicker-time--current-colon{margin:0 2px 3px;line-height:1}.air-datepicker-time--current-hours,.air-datepicker-time--current-minutes{line-height:1;font-size:19px;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif;position:relative;z-index:1}.air-datepicker-time--current-hours:after,.air-datepicker-time--current-minutes:after{content:"";background:var(--adp-background-color-hover);border-radius:var(--adp-border-radius);position:absolute;left:-2px;top:-3px;right:-2px;bottom:-2px;z-index:-1;opacity:0}.air-datepicker-time--current-hours.-focus-:after,.air-datepicker-time--current-minutes.-focus-:after{opacity:1}.air-datepicker-time--current-ampm{text-transform:uppercase;align-self:flex-end;color:var(--adp-time-day-period-color);margin-left:6px;font-size:11px;margin-bottom:1px}.air-datepicker-time--row{display:flex;align-items:center;font-size:11px;height:17px;background:linear-gradient(to right,var(--adp-time-track-color),var(--adp-time-track-color)) left 50%/100% var(--adp-time-track-height) no-repeat}.air-datepicker-time--row:first-child{margin-bottom:4px}.air-datepicker-time--row input[type=range]{background:none;cursor:pointer;flex:1;height:100%;width:100%;padding:0;margin:0;-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-ms-tooltip{display:none}.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-ms-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:focus{outline:none}.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-ms-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-webkit-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-moz-range-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-moz-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-ms-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-ms-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{margin-top:calc(var(--adp-time-thumb-size) / 2 * -1)}.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-moz-range-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-lower{background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-upper{background:rgba(0,0,0,0)}.air-datepicker{--adp-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--adp-font-size:14px;--adp-width:246px;--adp-z-index:100;--adp-padding:4px;--adp-grid-areas:"nav" "body" "timepicker" "buttons";--adp-transition-duration:.3s;--adp-transition-ease:ease-out;--adp-transition-offset:8px;--adp-background-color:#fff;--adp-background-color-hover:#f0f0f0;--adp-background-color-active:#eaeaea;--adp-background-color-in-range:rgba(92,196,239,.1);--adp-background-color-in-range-focused:rgba(92,196,239,.2);--adp-background-color-selected-other-month-focused:#8ad5f4;--adp-background-color-selected-other-month:#a2ddf6;--adp-color:#4a4a4a;--adp-color-secondary:#9c9c9c;--adp-accent-color:#4eb5e6;--adp-color-current-date:var(--adp-accent-color);--adp-color-other-month:#dedede;--adp-color-disabled:#aeaeae;--adp-color-disabled-in-range:#939393;--adp-color-other-month-hover:#c5c5c5;--adp-border-color:#dbdbdb;--adp-border-color-inner:#efefef;--adp-border-radius:4px;--adp-border-color-inline:#d7d7d7;--adp-nav-height:32px;--adp-nav-arrow-color:var(--adp-color-secondary);--adp-nav-action-size:32px;--adp-nav-color-secondary:var(--adp-color-secondary);--adp-day-name-color:#ff9a19;--adp-day-name-color-hover:#8ad5f4;--adp-day-cell-width:1fr;--adp-day-cell-height:32px;--adp-month-cell-height:42px;--adp-year-cell-height:56px;--adp-pointer-size:10px;--adp-poiner-border-radius:2px;--adp-pointer-offset:14px;--adp-cell-border-radius:4px;--adp-cell-background-color-hover:var(--adp-background-color-hover);--adp-cell-background-color-selected:#5cc4ef;--adp-cell-background-color-selected-hover:#45bced;--adp-cell-background-color-in-range:rgba(92,196,239,0.1);--adp-cell-background-color-in-range-hover:rgba(92,196,239,0.2);--adp-cell-border-color-in-range:var(--adp-cell-background-color-selected);--adp-btn-height:32px;--adp-btn-color:var(--adp-accent-color);--adp-btn-color-hover:var(--adp-color);--adp-btn-border-radius:var(--adp-border-radius);--adp-btn-background-color-hover:var(--adp-background-color-hover);--adp-btn-background-color-active:var(--adp-background-color-active);--adp-time-track-height:1px;--adp-time-track-color:#dedede;--adp-time-track-color-hover:#b1b1b1;--adp-time-thumb-size:12px;--adp-time-padding-inner:10px;--adp-time-day-period-color:var(--adp-color-secondary);--adp-mobile-font-size:16px;--adp-mobile-nav-height:40px;--adp-mobile-width:320px;--adp-mobile-day-cell-height:38px;--adp-mobile-month-cell-height:48px;--adp-mobile-year-cell-height:64px}.air-datepicker-overlay{--adp-overlay-background-color:rgba(0,0,0,.3);--adp-overlay-transition-duration:.3s;--adp-overlay-transition-ease:ease-out;--adp-overlay-z-index:99}.air-datepicker{background:var(--adp-background-color);border:1px solid var(--adp-border-color);box-shadow:0 4px 12px rgba(0,0,0,0.15);border-radius:var(--adp-border-radius);box-sizing:content-box;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,max-content);grid-template-areas:var(--adp-grid-areas);font-family:var(--adp-font-family),sans-serif;font-size:var(--adp-font-size);color:var(--adp-color);width:var(--adp-width);position:absolute;transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease);z-index:var(--adp-z-index)}.air-datepicker:not(.-custom-position-){opacity:0}.air-datepicker.-from-top-{transform:translateY(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-from-right-{transform:translateX(var(--adp-transition-offset))}.air-datepicker.-from-bottom-{transform:translateY(var(--adp-transition-offset))}.air-datepicker.-from-left-{transform:translateX(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-active-:not(.-custom-position-){transform:translate(0,0);opacity:1}.air-datepicker.-active-.-custom-position-{transition:none}.air-datepicker.-inline-{border-color:var(--adp-border-color-inline);box-shadow:none;position:static;left:auto;right:auto;opacity:1;transform:none}.air-datepicker.-inline- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-{--adp-font-size:var(--adp-mobile-font-size);--adp-day-cell-height:var(--adp-mobile-day-cell-height);--adp-month-cell-height:var(--adp-mobile-month-cell-height);--adp-year-cell-height:var(--adp-mobile-year-cell-height);--adp-nav-height:var(--adp-mobile-nav-height);--adp-nav-action-size:var(--adp-mobile-nav-height);position:fixed;width:var(--adp-mobile-width);border:none}.air-datepicker.-is-mobile- *{-webkit-tap-highlight-color:rgba(0,0,0,0)}.air-datepicker.-is-mobile- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-:not(.-custom-position-){transform:translate(-50%,calc(-50% + var(--adp-transition-offset)))}.air-datepicker.-is-mobile-.-active-:not(.-custom-position-){transform:translate(-50%,-50%)}.air-datepicker.-custom-position-{transition:none}.air-datepicker-global-container{position:absolute;left:0;top:0}.air-datepicker--pointer{--pointer-half-size:calc(var(--adp-pointer-size) / 2);position:absolute;width:var(--adp-pointer-size);height:var(--adp-pointer-size);z-index:-1}.air-datepicker--pointer:after{content:"";position:absolute;background:#fff;border-top:1px solid var(--adp-border-color-inline);border-right:1px solid var(--adp-border-color-inline);border-top-right-radius:var(--adp-poiner-border-radius);width:var(--adp-pointer-size);height:var(--adp-pointer-size);box-sizing:border-box}.-top-left- .air-datepicker--pointer,.-top-center- .air-datepicker--pointer,.-top-right- .air-datepicker--pointer,[data-popper-placement^=top] .air-datepicker--pointer{top:calc(100% - var(--pointer-half-size) + 1px)}.-top-left- .air-datepicker--pointer:after,.-top-center- .air-datepicker--pointer:after,.-top-right- .air-datepicker--pointer:after,[data-popper-placement^=top] .air-datepicker--pointer:after{transform:rotate(135deg)}.-right-top- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer,[data-popper-placement^=right] .air-datepicker--pointer{right:calc(100% - var(--pointer-half-size) + 1px)}.-right-top- .air-datepicker--pointer:after,.-right-center- .air-datepicker--pointer:after,.-right-bottom- .air-datepicker--pointer:after,[data-popper-placement^=right] .air-datepicker--pointer:after{transform:rotate(225deg)}.-bottom-left- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer,[data-popper-placement^=bottom] .air-datepicker--pointer{bottom:calc(100% - var(--pointer-half-size) + 1px)}.-bottom-left- .air-datepicker--pointer:after,.-bottom-center- .air-datepicker--pointer:after,.-bottom-right- .air-datepicker--pointer:after,[data-popper-placement^=bottom] .air-datepicker--pointer:after{transform:rotate(315deg)}.-left-top- .air-datepicker--pointer,.-left-center- .air-datepicker--pointer,.-left-bottom- .air-datepicker--pointer,[data-popper-placement^=left] .air-datepicker--pointer{left:calc(100% - var(--pointer-half-size) + 1px)}.-left-top- .air-datepicker--pointer:after,.-left-center- .air-datepicker--pointer:after,.-left-bottom- .air-datepicker--pointer:after,[data-popper-placement^=left] .air-datepicker--pointer:after{transform:rotate(45deg)}.-top-left- .air-datepicker--pointer,.-bottom-left- .air-datepicker--pointer{left:var(--adp-pointer-offset)}.-top-right- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer{right:var(--adp-pointer-offset)}.-top-center- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer{left:calc(50% - var(--adp-pointer-size) / 2)}.-left-top- .air-datepicker--pointer,.-right-top- .air-datepicker--pointer{top:var(--adp-pointer-offset)}.-left-bottom- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer{bottom:var(--adp-pointer-offset)}.-left-center- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer{top:calc(50% - var(--adp-pointer-size) / 2)}.air-datepicker--navigation{grid-area:nav}.air-datepicker--content{box-sizing:content-box;padding:var(--adp-padding);grid-area:body}.-only-timepicker- .air-datepicker--content{display:none}.air-datepicker--time{grid-area:timepicker}.air-datepicker--buttons{grid-area:buttons}.air-datepicker--buttons,.air-datepicker--time{padding:var(--adp-padding);border-top:1px solid var(--adp-border-color-inner)}.air-datepicker-overlay{position:fixed;background:var(--adp-overlay-background-color);left:0;top:0;width:0;height:0;opacity:0;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);z-index:var(--adp-overlay-z-index)}.air-datepicker-overlay.-active-{opacity:1;width:100%;height:100%;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s}.air-datepicker{--adp-color:rgba(var(--zn-text),var(--zn-text-opacity));--adp-nav-color-secondary:rgb(var(--zn-purple-text));--adp-day-name-color:var(--zn-color-primary-600);--adp-day-name-color-hover:var(--zn-color-primary-700);--adp-cell-background-color-selected:var(--zn-color-primary-600);--adp-cell-background-color-selected-hover:var(--zn-color-primary-700);--adp-color-current-date:var(--zn-color-primary-600);--adp-background-color:var(--zn-input-background-color);--adp-background-color-hover:var(--zn-input-background-color-hover);--adp-background-color-active:var(--zn-input-background-color-hover);--adp-background-color-selected-other-month:var(--zn-color-primary-300);--adp-background-color-in-range:var(--zn-color-primary-100);--adp-border-color:rgb(var(--zn-border-color));--adp-border-color-inline:rgb(var(--zn-border-color));--adp-border-color-inner:rgb(var(--zn-border-color));--adp-cell-background-color-in-range:var(--zn-color-primary-100);--adp-cell-background-color-in-range-hover:var(--zn-color-primary-200)}.air-datepicker--pointer:after{background-color:var(--zn-input-background-color)}.air-datepicker-global-container{z-index:1000000}.air-datepicker-button{border:none;padding:var(--zn-spacing-2x-small) var(--zn-spacing-x-small);border-radius:var(--adp-border-radius);font-family:var(--adp-font-family),sans-serif;font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);cursor:pointer;color:rgba(var(--zn-text),var(--zn-text-opacity))}.air-datepicker-button:hover{background-color:var(--zn-input-background-color-hover) !important}`;var k0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.input{flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;font-family:var(--zn-input-font-family),sans-serif;font-weight:var(--zn-input-font-weight);letter-spacing:var(--zn-input-letter-spacing);vertical-align:middle;overflow:hidden;cursor:text;transition:var(--zn-transition-fast) color,var(--zn-transition-fast) border,var(--zn-transition-fast) background-color}.input--standard{background-color:var(--zn-input-background-color);border:solid var(--zn-input-border-width) var(--zn-input-border-color)}.input--standard:hover:not(.input--disabled){background-color:var(--zn-input-background-color-hover);border-color:var(--zn-input-border-color-hover)}.input--standard.input--focused:not(.input--disabled){background-color:var(--zn-input-background-color-focus);border-color:var(--zn-input-border-color-focus);box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input--standard.input--focused:not(.input--disabled) .input__control{color:var(--zn-input-color-focus)}.input--standard.input--disabled{background-color:var(--zn-input-background-color-disabled);border-color:var(--zn-input-border-color-disabled);opacity:0.5;cursor:not-allowed}.input--standard.input--disabled .input__control{color:var(--zn-input-color-disabled)}.input--standard.input--disabled .input__control::-moz-placeholder{color:var(--zn-input-placeholder-color-disabled)}.input--standard.input--disabled .input__control::placeholder{color:var(--zn-input-placeholder-color-disabled)}.input__control{flex:1 1 auto;font-family:inherit;font-size:inherit;font-weight:inherit;min-width:0;height:100%;color:var(--zn-input-color);border:none;background:inherit;box-shadow:none;padding:0;margin:0;cursor:inherit;-webkit-appearance:none}.input__control::-webkit-search-decoration,.input__control::-webkit-search-cancel-button,.input__control::-webkit-search-results-button,.input__control::-webkit-search-results-decoration{-webkit-appearance:none}.input__control:-webkit-autofill,.input__control:-webkit-autofill:hover,.input__control:-webkit-autofill:focus,.input__control:-webkit-autofill:active{box-shadow:0 0 0 var(--zn-input-height-large) var(--zn-input-background-color) inset !important;-webkit-text-fill-color:var(--zn-input-color);caret-color:var(--zn-input-color)}.input__control::-moz-placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.input__control::placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.input:hover:not(.input--disabled) .input__control{color:var(--zn-input-color-hover)}.input__control:focus{outline:none}.input__prefix,.input__suffix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default;color:var(--zn-input-icon-color);font-size:var(--zn-font-size-small)}.input__prefix zn-icon,.input__suffix zn-icon{--icon-size:var(--zn-font-size-x-large);color:var(--zn-input-icon-color);font-size:var(--zn-font-size-small)}.input__prefix ::slotted(zn-icon),.input__suffix ::slotted(zn-icon){--icon-size:var(--zn-font-size-medium);font-size:var(--zn-font-size-medium);color:var(--zn-input-icon-color)}.input__prefix-default zn-icon{display:contents}.input--small{border-radius:var(--zn-input-border-radius-small);font-size:var(--zn-input-font-size-small);height:var(--zn-input-height-small)}.input--small .input__control{height:calc(var(--zn-input-height-small) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small)}.input--small .input__clear,.input--small .input__password-toggle{width:calc(1em + var(--zn-input-spacing-small) * 2)}.input--small .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-input-spacing-small)}.input--small .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-small)}.input--small .input__suffix ::slotted(zn-button),.input--small .input__prefix ::slotted(zn-button){margin-inline-end:0;margin-inline-start:0}.input--medium{border-radius:var(--zn-input-border-radius-medium);font-size:var(--zn-input-font-size-medium);height:var(--zn-input-height-medium)}.input--medium .input__control{height:calc(var(--zn-input-height-medium) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-medium)}.input--medium .input__clear,.input--medium .input__password-toggle{width:calc(1em + var(--zn-input-spacing-medium) * 2)}.input--medium .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-medium)}.input--medium .input__suffix ::slotted(zn-button),.input--medium .input__prefix ::slotted(zn-button){margin-inline-end:0;margin-inline-start:0}.input--large{border-radius:var(--zn-input-border-radius-large);font-size:var(--zn-input-font-size-large);height:var(--zn-input-height-large)}.input--large .input__control{height:calc(var(--zn-input-height-large) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-medium)}.input--large .input__clear,.input--large .input__password-toggle{width:calc(1em + var(--zn-input-spacing-large) * 2)}.input--large .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-large)}.input--large .input__suffix ::slotted(zn-button),.input--large .input__prefix ::slotted(zn-button){margin-inline-end:0;margin-inline-start:0}:host([inline]) .input{display:block;height:auto;overflow:visible;border:none;border-radius:0;background:none;box-shadow:none;cursor:default}:host([inline]) .air-datepicker{--adp-border-color-inline:var(--zn-datepicker-inline-border-color,rgb(var(--zn-border-color)))}:host([inline]) .input__control,:host([inline]) .input__prefix,:host([inline]) .input__suffix{display:none}`;var ye=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text","label","label-tooltip");this.hasFocus=!1;this.title="";this.name="";this.value="";this.defaultValue="";this.size="medium";this.label="";this.labelTooltip="";this.contextNote="";this.helpText="";this.disabled=!1;this.placeholder="";this.readonly=!1;this.flush=!1;this.inline=!1;this.required=!1;this.clearable=!1;this.range=!1;this.disablePastDates=!1;this.format="MM/dd/yyyy";this.timePicker=!1;this.onlyTimepicker=!1;this.timeFormat="hh:mm AA"}get timestamp(){let t=this.input.parentElement.querySelector("#date-picker-timestamp").value??"";return Number(t)}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){if(await this.updateComplete,this.formControlController.updateValidity(),this._instance&&this.value){let t=this.parseDate(String(this.value));t&&this._instance.selectDate(t,{silent:!0})}else this._instance&&!this.value&&this._instance.clear({silent:!0})}handleDatepickerOptionsChange(){this.init()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}init(){this._instance&&Object.prototype.hasOwnProperty.call(this._instance,"destroy")&&this._instance.destroy();let t=this.shadowRoot.querySelector("input");if(t){let r=this.shadowRoot.querySelector("#date-picker-timestamp"),n={locale:C4,inline:this.inline,dateFormat:this.format,range:this.range,toggleSelected:!1,timepicker:this.timePicker,onlyTimepicker:this.onlyTimepicker,timeFormat:this.timeFormat,container:this.container??this.getCalendarContainer(),altField:r,onSelect:({date:a})=>{if(this.timePicker||this.onlyTimepicker){this.inline&&this.handleChange();return}a&&!this.range?(this.input.blur(),this.handleChange()):a&&this.range&&Array.isArray(a)&&a.length===2&&(this.input.blur(),this.handleChange())},onHide:a=>{a&&(this.timePicker||this.onlyTimepicker)&&this.handleChange()}};this.minDate?n.minDate=typeof this.minDate=="string"?new Date(this.minDate):this.minDate:this.disablePastDates&&(n.minDate=this.normalizeDate(new Date)),this.maxDate&&(n.maxDate=typeof this.maxDate=="string"?new Date(this.maxDate):this.maxDate),this.clearable&&(n.buttons=["clear"]),this.inline&&this.adoptCalendarStyles(this.shadowRoot),this._instance=new S0.default(t,n)}}getCalendarContainer(){let t=this.findTopLayerAncestor();if(!t)return;let r=t.querySelector(":scope > .zn-datepicker-container");r||(r=document.createElement("div"),r.className="air-datepicker-global-container zn-datepicker-container",r.style.cssText="position: fixed; top: 0; left: 0;",t.appendChild(r));let n=r.getRootNode();return n instanceof ShadowRoot&&this.adoptCalendarStyles(n),r}adoptCalendarStyles(t){let r=S4();t.adoptedStyleSheets.includes(r)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,r])}findTopLayerAncestor(){let t=this.assignedSlot??this.parentNode;for(;t;){if(t instanceof HTMLElement&&(t.tagName==="DIALOG"||t.hasAttribute("popover")))return t;t=t.assignedSlot??(t instanceof ShadowRoot?t.host:t.parentNode)}return null}handleInput(t){let r=this.input.value,n=this.input.selectionStart||0,a=this.getFormatSeparator(),s=new RegExp(`[^0-9${this.escapeRegex(a)}]`,"g"),l=r.replace(s,""),p=this.autoFormatDate(l,a);if(r!==p)if(this.input.value=p,p.length>r.length&&t?.inputType==="insertText"){let h=n+(p.length-r.length);this.input.setSelectionRange(h,h)}else this.input.setSelectionRange(n,n);this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleChange(){this.value=this.input.value,this.emit("zn-change")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){if(this._instance&&this._instance.visible)return;if(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let r=["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"];if(t.ctrlKey||t.metaKey||r.includes(t.key))return;let n=this.getFormatSeparator();new RegExp(`^[0-9${this.escapeRegex(n)}]$`).test(t.key)||t.preventDefault()}handlePaste(t){let r=t.clipboardData?.getData("text")||"",n=this.getFormatSeparator();new RegExp(`^[0-9${this.escapeRegex(n)}\\s]*$`).test(r)||t.preventDefault()}handleBlur(){if(this._instance&&this._instance.visible||!this.input.value||this.input.value.trim()==="")return;if(!this.isValidDateString(this.input.value)){this.clearInvalidDate();return}let t=this.parseDate(this.input.value);if(t&&!this.isDateInRange(t)){this.clearInvalidDate();return}t&&this._instance&&this._instance.selectDate(t)}isValidDateString(t){let r=this.parseDateString(t);if(!r)return!1;let{day:n,month:a,year:s}=r,l=new Date(s,a-1,n);return l.getFullYear()===s&&l.getMonth()===a-1&&l.getDate()===n}parseDate(t){let r=this.parseDateString(t);if(!r)return null;let{day:n,month:a,year:s}=r,l=new Date(s,a-1,n);return this.normalizeDate(l)}parseDateString(t){let r=this.getFormatSeparator(),n=this.escapeRegex(r),a=this.format.replace(/dd/g,"(\\d{1,2})").replace(/MM/g,"(\\d{1,2})").replace(/yyyy/g,"(\\d{4})").replace(new RegExp(n,"g"),n),s=new RegExp(`^${a}$`),l=t.match(s);if(!l)return null;let p=this.format.split(r),h=-1,m=-1,f=-1;return p.forEach((b,g)=>{b==="dd"&&(h=g+1),b==="MM"&&(m=g+1),b==="yyyy"&&(f=g+1)}),h===-1||m===-1||f===-1?null:{day:parseInt(l[h]),month:parseInt(l[m]),year:parseInt(l[f])}}isDateInRange(t){let r,n;return this.minDate?(r=typeof this.minDate=="string"?new Date(this.minDate):new Date(this.minDate),this.normalizeDate(r)):this.disablePastDates&&(r=this.normalizeDate(new Date)),this.maxDate&&(n=typeof this.maxDate=="string"?new Date(this.maxDate):new Date(this.maxDate),this.normalizeDate(n)),!(r&&t<r||n&&t>n)}clearInvalidDate(){this.input.value="",this.value="",this._instance&&this._instance.clear(),this.formControlController.updateValidity()}getFormatSeparator(){let t=this.format.match(/[^dMy]/);return t?t[0]:"/"}escapeRegex(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}normalizeDate(t){return t.setHours(0,0,0,0),t}autoFormatDate(t,r){let n=t.replace(new RegExp(`\\${r}`,"g"),""),s=this.format.split(r).map(h=>h.length),l="",p=0;for(let h=0;h<s.length;h++){let m=s[h],f=n.substring(p,p+m);f&&(l+=f,p+=m,h<s.length-1&&p<n.length&&(l+=r))}return l}updated(t){super.updated(t)}firstUpdated(){this.init()}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("label-tooltip"),n=this.hasSlotController.test("context-note"),a=this.hasSlotController.test("help-text"),s=this.label?!0:t,l=this.labelTooltip?!0:r,p=this.contextNote?!0:n,h=this.helpText?!0:a;return u`
|
|
856
857
|
<div part="form-control"
|
|
857
858
|
class="${M({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":s,"form-control--has-label-tooltip":l,"form-control--has-context-note":p,"form-control--has-help-text":h})}">
|
|
858
859
|
|
|
@@ -1110,7 +1111,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
1110
1111
|
${this._active.length>0?u`
|
|
1111
1112
|
<zn-button class="filter-bar__clear" text @click="${this.clear}">Clear</zn-button>`:B}
|
|
1112
1113
|
</div>
|
|
1113
|
-
`}};Er.styles=z(T0),Er.dependencies={"zn-button":Me,"zn-datepicker":Ju,"zn-dropdown":ur,"zn-input":
|
|
1114
|
+
`}};Er.styles=z(T0),Er.dependencies={"zn-button":Me,"zn-datepicker":Ju,"zn-dropdown":ur,"zn-input":st,"zn-menu":nn,"zn-menu-item":xi},c([d({type:Array})],Er.prototype,"filters",2),c([d()],Er.prototype,"name",2),c([d()],Er.prototype,"value",2),c([d({attribute:"default-filters"})],Er.prototype,"defaultFilters",2),c([d({attribute:!1})],Er.prototype,"suggestions",2),c([I()],Er.prototype,"_active",2),c([I()],Er.prototype,"_typing",2),c([I()],Er.prototype,"_optionQuery",2);var Wd=Er;Er.define("zn-data-table-filter");var $0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.data-table-search{display:flex;align-items:center;gap:var(--zn-spacing-small);min-width:200px}zn-input::part(form-control-input){margin:var(--zn-focus-ring-width)}zn-input::part(form-control-help-text){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}zn-input::part(clear-button){width:auto;margin-inline-end:var(--zn-spacing-small)}.data-table-search__tooltip{display:flex;align-items:center}.data-table-search__tooltip zn-icon{color:var(--zn-input-icon-color);cursor:help}`;var Jr=class extends k{constructor(){super(...arguments);this._formController=new re(this,{});this.name="search";this.value="";this.placeholder="Search...";this.helpText="";this.debounceDelay=350;this.handleInput=t=>{let r=t.target;this.value=r.value,this._formController.updateValidity(),this._searchTimeout&&window.clearTimeout(this._searchTimeout),this._searchTimeout=window.setTimeout(()=>{this.emitSearchChange()},this.debounceDelay)};this.handleClear=()=>{this._searchTimeout&&window.clearTimeout(this._searchTimeout),this.value="";let t=this.shadowRoot?.querySelector("zn-input");t&&(t.value=""),this._formController.updateValidity(),this.emitSearchChange()}}get validationMessage(){return""}get validity(){return Je}checkValidity(){return!0}getForm(){return this._formController.getForm()}reportValidity(){return!0}setCustomValidity(){this._formController.updateValidity()}firstUpdated(t){super.firstUpdated(t),this._formController.updateValidity()}getFormData(){let t={},r=["zn-input","zn-select","zn-query-builder","zn-multiselect","zn-params-select","zn-datepicker","input","select","textarea","zn-cols","zn-input-group"],n=s=>{if(!r.includes(s.tagName.toLowerCase()))return;let l=s,p=l.value,h=l.name||s.getAttribute("name");h&&(t[h]=p)};return this.shadowRoot?.querySelectorAll("slot")?.forEach(s=>{s.assignedElements({flatten:!0}).forEach(l=>{n(l),l.querySelectorAll(r.join(",")).forEach(p=>n(p))})}),t}disconnectedCallback(){super.disconnectedCallback(),this._searchTimeout&&window.clearTimeout(this._searchTimeout)}emitSearchChange(){let t=this.getFormData();this.emit("zn-search-change",{detail:{value:this.value,formData:t,searchUri:this.searchUri}})}render(){return u`
|
|
1114
1115
|
<div class="data-table-search">
|
|
1115
1116
|
<zn-input
|
|
1116
1117
|
type="search"
|
|
@@ -1129,7 +1130,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
1129
1130
|
</zn-input>
|
|
1130
1131
|
<slot style="display: none"></slot>
|
|
1131
1132
|
</div>
|
|
1132
|
-
`}};Jr.styles=z($0),Jr.dependencies={"zn-input":
|
|
1133
|
+
`}};Jr.styles=z($0),Jr.dependencies={"zn-input":st,"zn-tooltip":gi},c([d()],Jr.prototype,"name",2),c([d()],Jr.prototype,"value",2),c([d()],Jr.prototype,"placeholder",2),c([d({attribute:"help-text"})],Jr.prototype,"helpText",2),c([d({attribute:"search-uri"})],Jr.prototype,"searchUri",2),c([d({type:Number,attribute:"debounce-delay"})],Jr.prototype,"debounceDelay",2);var Zu=Jr;Jr.define("zn-data-table-search");var A0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;container-type:inline-size;width:100%}.empty-state{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--zn-spacing-x-small)}.empty-state ::slotted(*){display:flex;margin-top:var(--zn-spacing-small)}.empty-state .caption{font-weight:var(--zn-font-weight-semibold);font-size:var(--zn-font-size-large);line-height:var(--zn-line-height-dense);color:rgb(var(--zn-text-heading));text-align:center}.empty-state .description{font-size:var(--zn-font-size-small);line-height:var(--zn-line-height-normal);color:rgb(var(--zn-text));text-align:center}.empty-state__wrapper{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-large);flex-grow:1}.empty-state--error{background-color:rgba(var(--zn-color-error),0.05);min-height:100px}.empty-state--error .empty-state__wrapper{border:dashed 1px rgb(var(--zn-color-error)) !important}.empty-state--error ::slotted(*),.empty-state--error .caption,.empty-state--error .description{color:rgb(var(--zn-color-error))}.empty-state--info{background-color:rgba(var(--zn-color-info),0.05);min-height:100px}.empty-state--info .empty-state__wrapper{border:dashed 1px rgb(var(--zn-color-info)) !important}.empty-state--info ::slotted(*),.empty-state--info .caption,.empty-state--info .description{color:rgb(var(--zn-color-info))}.empty-state--primary{background-color:rgba(var(--zn-primary),0.05);min-height:100px}.empty-state--primary .empty-state__wrapper{border:dashed 1px rgb(var(--zn-primary)) !important}.empty-state--primary ::slotted(*),.empty-state--primary .caption,.empty-state--primary .description{color:rgb(var(--zn-primary))}.empty-state--padded{padding:var(--zn-spacing-medium)}`;var Li=class extends k{constructor(){super(...arguments);this.icon="";this.caption="";this.description="";this.type="";this.padded=!1;this.hasSlotController=new Y(this,"[default]","caption","description")}render(){return u`
|
|
1133
1134
|
<div class="${M({"empty-state":!0,"empty-state--error":this.type==="error","empty-state--info":this.type==="info","empty-state--primary":this.type==="primary","empty-state--padded":this.padded})}">
|
|
1134
1135
|
<div class="empty-state__wrapper">
|
|
1135
1136
|
${this.icon||this.hasSlotController.test("icon")?u`
|
|
@@ -1163,7 +1164,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
1163
1164
|
aria-label="hover-container">
|
|
1164
1165
|
<slot name="content">${this.content}</slot>
|
|
1165
1166
|
</div>
|
|
1166
|
-
</zn-popup>`}};Dt.styles=z(M0),c([F("slot:not([name])")],Dt.prototype,"defaultSlot",2),c([F(".hover-container__body")],Dt.prototype,"body",2),c([F("zn-popup")],Dt.prototype,"popup",2),c([d()],Dt.prototype,"content",2),c([d()],Dt.prototype,"placement",2),c([d({type:Boolean,reflect:!0})],Dt.prototype,"disabled",2),c([d({type:Number})],Dt.prototype,"distance",2),c([d({type:Boolean,reflect:!0})],Dt.prototype,"open",2),c([d({type:Number})],Dt.prototype,"skidding",2),c([d()],Dt.prototype,"trigger",2),c([d({type:Boolean})],Dt.prototype,"hoist",2),c([K("open",{waitUntilFirstUpdate:!0})],Dt.prototype,"handleOpenChange",1),c([K(["content","distance","hoist","placement","skidding"])],Dt.prototype,"handleOptionsChange",1),c([K("disabled")],Dt.prototype,"handleDisabledChange",1);var tm=Dt;Dt.define("zn-hover-container");var L0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{flex-grow:1;overflow:visible;display:flex;max-width:100%;z-index:1;position:relative;min-width:var(--zn-spacing-small-panel);flex-basis:var(--zn-panel-basis);--zn-page-surface-background:var(--zn-panel);--zn-active-nav-background:var(--zn-panel)}.panel{position:relative;border:1px solid rgb(var(--zn-border-color));display:flex;border-radius:var(--zn-border-radius);flex-direction:column;flex-grow:1;flex-basis:var(--zn-spacing-small-panel);width:100%;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.panel__inner{overflow:hidden;display:flex;border-radius:var(--zn-border-radius);flex-direction:column;flex-grow:1}.panel__content{display:flex;flex-grow:1;overflow:hidden;position:relative}.panel__header{padding:var(--zn-panel-header-padding,var(--zn-base-gap))}.panel__header::part(base){border-bottom:0;overflow:visible}.panel__header--inline{border-bottom:0}.panel__header--underline{border-bottom:1px solid rgb(var(--zn-border-color))}.panel__header::part(content){padding:0}.panel__body{display:flex;flex-direction:column;overflow-y:auto;flex-grow:1;padding:var(--zn-base-gap)}.panel__body>:not([hidden])~:not([hidden]){border:1px solid rgb(var(--zn-border-color))}.panel__footer{font-size:var(--zn-font-size-small);display:block;padding:var(--zn-panel-footer-padding,var(--zn-spacing-small) var(--zn-base-gap));background:rgb(var(--zn-body));border-bottom-left-radius:var(--zn-border-radius);border-bottom-right-radius:var(--zn-border-radius)}.panel--tabbed .panel__body{padding:0}.panel--transparent{background-color:transparent;border:none}.panel--transparent:before{display:none}.panel:not(.panel--flush,.panel--flush-x,.panel--flush-y) ::slotted(zn-sp){--zn-sp-padding:0 !important}.panel.panel--borderless-header:not(.panel--flush,.panel--flush-y) .panel__body{padding-top:0}.panel--empty .panel__body{padding:0}.panel--flush .panel__body{padding:0}.panel--flush-x .panel__body{padding-inline:0}.panel--flush-y .panel__body{padding-block:0}.panel--flush-footer .panel__footer{padding:0}.panel--transparent .panel__header{padding-left:0;padding-right:0}.panel--cosmic{border:1px solid transparent}.panel--cosmic:before{content:"";z-index:-1;position:absolute;top:-2px;left:-2px;height:calc(100% + 4px);width:calc(100% + 4px);filter:blur(var(--zn-blur,1px));opacity:0.9;border-radius:var(--zn-border-radius);background-image:conic-gradient(from var(--rotate) at 50% 50%,#71d9ff 0%,#a100ff 22%,#71d9ff 44%,#ff00ce 74%,#71d9ff 94%);animation:rotate-gradient 6s linear infinite}.panel--shadow{box-shadow:0 6px 20px 10px rgba(0,0,0,0.25)}`;var
|
|
1167
|
+
</zn-popup>`}};Dt.styles=z(M0),c([F("slot:not([name])")],Dt.prototype,"defaultSlot",2),c([F(".hover-container__body")],Dt.prototype,"body",2),c([F("zn-popup")],Dt.prototype,"popup",2),c([d()],Dt.prototype,"content",2),c([d()],Dt.prototype,"placement",2),c([d({type:Boolean,reflect:!0})],Dt.prototype,"disabled",2),c([d({type:Number})],Dt.prototype,"distance",2),c([d({type:Boolean,reflect:!0})],Dt.prototype,"open",2),c([d({type:Number})],Dt.prototype,"skidding",2),c([d()],Dt.prototype,"trigger",2),c([d({type:Boolean})],Dt.prototype,"hoist",2),c([K("open",{waitUntilFirstUpdate:!0})],Dt.prototype,"handleOpenChange",1),c([K(["content","distance","hoist","placement","skidding"])],Dt.prototype,"handleOptionsChange",1),c([K("disabled")],Dt.prototype,"handleDisabledChange",1);var tm=Dt;Dt.define("zn-hover-container");var L0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{flex-grow:1;overflow:visible;display:flex;max-width:100%;z-index:1;position:relative;min-width:var(--zn-spacing-small-panel);flex-basis:var(--zn-panel-basis);--zn-page-surface-background:var(--zn-panel);--zn-active-nav-background:var(--zn-panel)}.panel{position:relative;border:1px solid rgb(var(--zn-border-color));display:flex;border-radius:var(--zn-border-radius);flex-direction:column;flex-grow:1;flex-basis:var(--zn-spacing-small-panel);width:100%;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.panel__inner{overflow:hidden;display:flex;border-radius:var(--zn-border-radius);flex-direction:column;flex-grow:1}.panel__content{display:flex;flex-grow:1;overflow:hidden;position:relative}.panel__header{padding:var(--zn-panel-header-padding,var(--zn-base-gap))}.panel__header::part(base){border-bottom:0;overflow:visible}.panel__header--inline{border-bottom:0}.panel__header--underline{border-bottom:1px solid rgb(var(--zn-border-color))}.panel__header::part(content){padding:0}.panel__body{display:flex;flex-direction:column;overflow-y:auto;flex-grow:1;padding:var(--zn-base-gap)}.panel__body>:not([hidden])~:not([hidden]){border:1px solid rgb(var(--zn-border-color))}.panel__footer{font-size:var(--zn-font-size-small);display:block;padding:var(--zn-panel-footer-padding,var(--zn-spacing-small) var(--zn-base-gap));background:rgb(var(--zn-body));border-bottom-left-radius:var(--zn-border-radius);border-bottom-right-radius:var(--zn-border-radius)}.panel--tabbed .panel__body{padding:0}.panel--transparent{background-color:transparent;border:none}.panel--transparent:before{display:none}.panel:not(.panel--flush,.panel--flush-x,.panel--flush-y) ::slotted(zn-sp){--zn-sp-padding:0 !important}.panel.panel--borderless-header:not(.panel--flush,.panel--flush-y) .panel__body{padding-top:0}.panel--empty .panel__body{padding:0}.panel--flush .panel__body{padding:0}.panel--flush-x .panel__body{padding-inline:0}.panel--flush-y .panel__body{padding-block:0}.panel--flush-footer .panel__footer{padding:0}.panel--transparent .panel__header{padding-left:0;padding-right:0}.panel--cosmic{border:1px solid transparent}.panel--cosmic:before{content:"";z-index:-1;position:absolute;top:-2px;left:-2px;height:calc(100% + 4px);width:calc(100% + 4px);filter:blur(var(--zn-blur,1px));opacity:0.9;border-radius:var(--zn-border-radius);background-image:conic-gradient(from var(--rotate) at 50% 50%,#71d9ff 0%,#a100ff 22%,#71d9ff 44%,#ff00ce 74%,#71d9ff 94%);animation:rotate-gradient 6s linear infinite}.panel--shadow{box-shadow:0 6px 20px 10px rgba(0,0,0,0.25)}`;var tt=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","actions","footer");this.bodyEmpty=!1;this.resizeObserver=null}firstUpdated(t){if(super.firstUpdated(t),this.observeBodyContent(),this.basis&&this.style.setProperty("--zn-panel-basis",this.basis.toString()+"px"),!this.tabbed){let r=this.querySelector("zn-tabs");if(r){r.setAttribute("flush-x","");let n=this.shadowRoot?.querySelector(".body");n&&n.classList.toggle("ntp",!0)}}}connectedCallback(){if(super.connectedCallback(),this.hasUpdated&&this.observeBodyContent(),window.CSS.registerProperty)try{window.CSS.registerProperty({inherits:!1,initialValue:"0deg",name:"--rotate",syntax:"<angle>"})}catch{}}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.resizeObserver=null}observeBodyContent(){let t=this.renderRoot?.querySelector(".panel__body");t&&(this.resizeObserver??(this.resizeObserver=new ResizeObserver(()=>this.measureBodyContent())),this.resizeObserver.disconnect(),this.resizeObserver.observe(t),this.measureBodyContent())}measureBodyContent(){let t=this.renderRoot?.querySelector(".panel__body");if(!t)return;let r=getComputedStyle(t),n=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom);this.bodyEmpty=t.scrollHeight-n<=0}render(){let t=this.hasSlotController.test("actions"),r=this.hasSlotController.test("footer"),n=this.caption||t,a=!this.hasSlotController.test("[default]")||this.bodyEmpty,s=this.flush||this.tabbed||this.flushY,l=!this.headerBorderless&&!(this.transparent&&s)&&!a;return u`
|
|
1167
1168
|
<div class="${M({panel:!0,"panel--flush":this.flush||this.tabbed,"panel--flush-x":this.flushX,"panel--flush-y":this.flushY,"panel--flush-footer":this.flushFooter,"panel--tabbed":this.tabbed,"panel--transparent":this.transparent,"panel--has-actions":t,"panel--has-footer":r,"panel--empty":a,"panel--has-header":n,"panel--borderless-header":this.headerBorderless,"panel--cosmic":this.cosmic,"panel--shadow":this.shadow})}">
|
|
1168
1169
|
|
|
1169
1170
|
<div class="panel__inner">
|
|
@@ -1187,14 +1188,14 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
1187
1188
|
${r?u`
|
|
1188
1189
|
<slot name="footer" part="footer" class="panel__footer"></slot>`:null}
|
|
1189
1190
|
</div>
|
|
1190
|
-
</div>`}};
|
|
1191
|
+
</div>`}};tt.styles=z(L0),c([d({attribute:"basis-px",type:Number})],tt.prototype,"basis",2),c([d()],tt.prototype,"caption",2),c([d()],tt.prototype,"icon",2),c([d({type:Boolean})],tt.prototype,"tabbed",2),c([d({attribute:"header-borderless",type:Boolean})],tt.prototype,"headerBorderless",2),c([d({type:Boolean})],tt.prototype,"cosmic",2),c([d({type:Boolean})],tt.prototype,"flush",2),c([d({attribute:"flush-x",type:Boolean})],tt.prototype,"flushX",2),c([d({attribute:"flush-y",type:Boolean})],tt.prototype,"flushY",2),c([d({attribute:"flush-footer",type:Boolean})],tt.prototype,"flushFooter",2),c([d({type:Boolean})],tt.prototype,"transparent",2),c([d({type:Boolean})],tt.prototype,"shadow",2),c([I()],tt.prototype,"bodyEmpty",2);var rm=tt;tt.define("zn-panel");var q0=_`:host{--skeleton-speed:3s;--skeleton-width:100%;--skeleton-height:20px;--skeleton-border-radius:4px}.skeleton{height:var(--skeleton-height);width:var(--skeleton-width);border-radius:var(--skeleton-border-radius);background-color:lightgrey}@media (prefers-reduced-motion:reduce){.skeleton{background-repeat:no-repeat;background-color:lightgrey}}@media (prefers-reduced-motion:no-preference){.skeleton{background-repeat:no-repeat;background-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(255,255,255,0) 100%);background-size:200% 100%;background-position:-150% 0;animation:loading var(--skeleton-speed) infinite linear both}}@keyframes loading{from{background-position:250% 0}to{background-position:-250% 0}}`;var on=class extends k{constructor(){super(...arguments);this.speed="3s";this.width="100%";this.height="20px";this.radius="4px"}render(){return u`
|
|
1191
1192
|
<div class="skeleton"
|
|
1192
1193
|
style=${xt({"--skeleton-speed":`${this.speed}`,"--skeleton-width":`${this.width}`,"--skeleton-height":`${this.height}`,"--skeleton-border-radius":`${this.radius}`})}
|
|
1193
1194
|
></div>`}};on.styles=z(q0),c([d({attribute:"speed",type:String})],on.prototype,"speed",2),c([d({attribute:"width",type:String})],on.prototype,"width",2),c([d({attribute:"height",type:String})],on.prototype,"height",2),c([d({attribute:"radius",type:String})],on.prototype,"radius",2);var im=on;on.define("zn-skeleton");var I0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}`;var Ue=class extends k{constructor(){super(...arguments);this.localize=new Ft(this);this.color="";this.border="";this.size="";this.error=!1;this.success=!1;this.info=!1;this.warning=!1;this.primary=!1;this.accent=!1;this.center=!1;this.display=null;this.font="";this.width="";this.height="";this.pad="";this.margin="";this.muted=!1;this.gutter=!1;this.autoMargin=""}connectedCallback(){super.connectedCallback();let t=this.display||"contents";this.gutter&&(this.classList.add("zn-gutter"),t==="contents"&&(t="block")),this.color===""&&(this.error?this.color="error":this.success?this.color="success":this.info?this.color="info":this.warning?this.color="warning":this.primary?this.color="primary":this.accent&&(this.color="accent")),this.color&&this.classList.toggle("zn-"+this.color,!0),this.center&&(t="flex",this.classList.toggle("flex-mid",!0),this.classList.toggle("flex-jc",!0)),this.font&&this.font==="mono"&&this.classList.toggle("zn-mono",!0),this.width==="f"&&this.classList.toggle("w-full",!0),this.height==="f"&&this.classList.toggle("h-full",!0);let r=this.hasAttribute("border")?this.border||"a":"";if(r){t="inline-block";for(let n of r)switch(n){case"a":this.classList.toggle("zn-border",!0);break;case"t":this.classList.toggle("zn-bt",!0);break;case"b":this.classList.toggle("zn-bb",!0);break;case"l":this.classList.toggle("zn-bl",!0);break;case"r":this.classList.toggle("zn-br",!0);break}}if(this.pad){t="inline-block",this.style.display="inline-block";for(let n of this.pad)switch(n){case"a":this.classList.toggle("zn-pad",!0);break;case"l":this.classList.toggle("zn-pl",!0);break;case"r":this.classList.toggle("zn-pr",!0);break;case"t":this.classList.toggle("zn-pt",!0);break;case"b":this.classList.toggle("zn-pb",!0);break;case"x":this.classList.toggle("zn-px",!0);break;case"y":this.classList.toggle("zn-py",!0);break}}if(this.margin){t="inline-block";for(let n of this.margin)switch(n){case"a":this.classList.toggle("zn-margin",!0);break;case"l":this.classList.toggle("zn-ml",!0);break;case"r":this.classList.toggle("zn-mr",!0);break;case"t":this.classList.toggle("zn-mt",!0);break;case"b":this.classList.toggle("zn-mb",!0);break;case"x":this.classList.toggle("zn-mx",!0);break;case"y":this.classList.toggle("zn-my",!0);break}}if(this.autoMargin){t="inline-block";for(let n of this.autoMargin)switch(n){case"a":this.classList.toggle("m-auto",!0);break;case"t":this.classList.toggle("zn-mta",!0);break;case"b":this.classList.toggle("zn-mba",!0);break;case"l":this.classList.toggle("zn-mla",!0);break;case"r":this.classList.toggle("zn-mra",!0);break;case"x":this.classList.toggle("zn-mra",!0),this.classList.toggle("zn-mla",!0);break;case"y":this.classList.toggle("zn-mta",!0),this.classList.toggle("zn-mba",!0);break}}this.muted&&(t="inline-block",this.classList.toggle("zn-muted",!0)),this.size&&this.size!=="m"&&this.classList.toggle("zn-size-"+this.size,!0),this.display&&(t=this.display),this.style.display=t}createRenderRoot(){return this}};Ue.styles=z(I0),c([d()],Ue.prototype,"color",2),c([d()],Ue.prototype,"border",2),c([d()],Ue.prototype,"size",2),c([d({type:Boolean})],Ue.prototype,"error",2),c([d({type:Boolean})],Ue.prototype,"success",2),c([d({type:Boolean})],Ue.prototype,"info",2),c([d({type:Boolean})],Ue.prototype,"warning",2),c([d({type:Boolean})],Ue.prototype,"primary",2),c([d({type:Boolean})],Ue.prototype,"accent",2),c([d({type:Boolean})],Ue.prototype,"center",2),c([d({type:String})],Ue.prototype,"display",2),c([d()],Ue.prototype,"font",2),c([d()],Ue.prototype,"width",2),c([d()],Ue.prototype,"height",2),c([d()],Ue.prototype,"pad",2),c([d()],Ue.prototype,"margin",2),c([d({type:Boolean})],Ue.prototype,"muted",2),c([d({type:Boolean})],Ue.prototype,"gutter",2),c([d({attribute:"a-margin"})],Ue.prototype,"autoMargin",2),Ue=c([Nb("zn-style")],Ue);var nm=Ue;Ue.define("zn-style");var vs=_`@charset "UTF-8";:root,[t=light],.theme-light{color-scheme:light;--zn-color-gray-100:hsl(240,13%,95%);--zn-color-gray-300:hsl(260,21%,89%);--zn-color-gray-400:hsl(251,17%,76%);--zn-color-gray-500:hsl(254,17%,66%);--zn-color-gray-800:hsl(259,13%,42%);--zn-color-gray-900:hsl(262,12%,35%);--zn-color-red-500:hsl(0 84.2% 60.2%);--zn-color-red-600:hsl(0 72.2% 50.6%);--zn-color-orange-500:hsl(24.6 95% 53.1%);--zn-color-amber-400:hsl(43.3 96.4% 56.3%);--zn-color-yellow-400:hsl(51,100%,53%);--zn-color-green-500:hsl(142.1 70.6% 45.3%);--zn-color-blue-500:hsl(217.2 91.2% 59.8%);--zn-color-indigo-400:hsl(234.5 89.5% 73.9%);--zn-color-indigo-500:hsl(238.7 83.5% 66.7%);--zn-color-violet-500:hsl(258.3 89.5% 66.3%);--zn-color-violet-600:hsl(262.1 83.3% 57.8%);--zn-color-purple-50:hsl(249,100%,97%);--zn-color-purple-100:hsl(245,100%,95%);--zn-color-purple-200:hsl(244,100%,92%);--zn-color-purple-600:hsl(256,91%,59%);--zn-color-pink-400:hsl(328.6 85.5% 70.2%);--zn-color-pink-500:hsl(330.4 81.2% 60.4%);--zn-color-primary-50:var(--zn-color-purple-50);--zn-color-primary-100:var(--zn-color-purple-100);--zn-color-primary-200:var(--zn-color-purple-200);--zn-color-primary-300:hsl(246,100%,85%);--zn-color-primary-400:hsl(249,100%,76%);--zn-color-primary-500:hsl(252,98%,66%);--zn-color-primary-600:var(--zn-color-purple-600);--zn-color-primary-700:hsl(257,76%,50%);--zn-color-primary-800:hsl(257,76%,42%);--zn-color-primary-900:hsl(257,73%,35%);--zn-color-success-50:hsl(138.5 76.5% 96.7%);--zn-color-success-200:rgb(var(--zn-green));--zn-color-success-300:hsl(141.7 76.6% 73.1%);--zn-color-success-400:hsl(141.9 69.2% 58%);--zn-color-success-500:var(--zn-color-green-500);--zn-color-success-600:hsl(142.1 76.2% 36.3%);--zn-color-success-700:hsl(142.4 71.8% 29.2%);--zn-color-warning-50:hsl(48 100% 96.1%);--zn-color-warning-400:var(--zn-color-amber-400);--zn-color-warning-500:hsl(37.7 92.1% 50.2%);--zn-color-warning-600:hsl(32.1 94.6% 43.7%);--zn-color-danger-50:hsl(0 85.7% 97.3%);--zn-color-danger-100:rgb(var(--zn-red));--zn-color-danger-200:rgb(var(--zn-red));--zn-color-danger-300:hsl(0 93.5% 81.8%);--zn-color-danger-500:var(--zn-color-red-500);--zn-color-danger-600:var(--zn-color-red-600);--zn-color-danger-700:rgb(var(--zn-red));--zn-color-danger-800:hsl(0 70% 35.3%);--zn-color-neutral-50:hsl(255,33%,98%);--zn-color-neutral-100:var(--zn-color-gray-100);--zn-color-neutral-200:hsl(255,12%,94%);--zn-color-neutral-300:var(--zn-color-gray-300);--zn-color-neutral-400:var(--zn-color-gray-400);--zn-color-neutral-500:var(--zn-color-gray-500);--zn-color-neutral-600:hsl(258,15%,58%);--zn-color-neutral-700:hsl(259,13%,54%);--zn-color-neutral-800:var(--zn-color-gray-800);--zn-color-neutral-900:var(--zn-color-gray-900);--zn-color-neutral-0:hsl(0,0%,100%);--zn-color-neutral-1000:hsl(0,0%,0%);--zn-border-radius:6px;--zn-border-radius-small:2px;--zn-border-radius-x-large:var(--zn-border-radius);--zn-border-radius-circle:50%;--zn-border-radius-pill:9999px;--zn-shadow-x-small:0 1px 4px rgba(0,0,0,0.10);--zn-shadow-small:0 3px 9px rgba(0,0,0,0.15);--zn-shadow-medium:0 6px 18px rgba(0,0,0,0.15);--zn-shadow-large:0 6px 20px rgba(0,0,0,0.15);--zn-shadow-x-large:0 6px 20px rgba(0,0,0,0.25);--zn-container:var(--zn-container-hd);--zn-container-default:100%;--zn-container-sm:360px;--zn-container-smp:480px;--zn-container-ph:600px;--zn-container-md:768px;--zn-container-lg:1100px;--zn-container-hd:1400px;--zn-container-3k:1960px;--zn-container-4k:2560px;--zn-transition-x-slow:1000ms;--zn-transition-slow:500ms;--zn-transition-medium:250ms;--zn-transition-fast:150ms;--zn-transition-x-fast:50ms;--zn-gap:var(--zn-base-gap,var(--zn-spacing-medium,4px));--zn-font-mono:'Roboto Mono',SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;--zn-font-sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';--zn-font-serif:'Roboto Slab',Georgia,'Times New Roman',serif;--zn-font-size-2x-small:0.625rem;--zn-font-size-x-small:0.75rem;--zn-font-size-small:0.929rem;--zn-font-size-medium:1rem;--zn-font-size-large:1.15rem;--zn-font-size-x-large:1.25rem;--zn-font-size-2x-large:2.25rem;--zn-font-size-3x-large:3rem;--zn-font-size-4x-large:4.5rem;--zn-font-weight-light:300;--zn-font-weight-normal:400;--zn-font-weight-medium:500;--zn-font-weight-semibold:600;--zn-font-weight-bold:700;--zn-letter-spacing-normal:normal;--zn-letter-spacing-loose:0.5px;--zn-line-height-denser:1;--zn-line-height-dense:1.5;--zn-line-height-normal:2;--zn-line-height-loose:2.5;--zn-line-height-looser:3;--zn-focus-ring-color:var(--zn-color-primary-600);--zn-focus-ring-style:solid;--zn-focus-ring-width-x-small:1px;--zn-focus-ring-width:3px;--zn-focus-ring:var(--zn-focus-ring-style) var(--zn-focus-ring-width) var(--zn-focus-ring-color);--zn-focus-ring-offset:1px;--zn-focus-ring-outset:4px;--zn-input-height-x-small:24px;--zn-input-height-small:30px;--zn-input-height-medium:36px;--zn-input-height-large:40px;--zn-input-background-color:rgb(var(--zn-color-body));--zn-input-background-color-hover:color-mix(in srgb,rgb(var(--zn-color-body)) 98%,black);--zn-input-background-color-focus:var(--zn-color-neutral-100);--zn-input-background-color-disabled:var(--zn-color-neutral-400);--zn-input-border-color:var(--zn-color-neutral-300);--zn-input-border-color-hover:var(--zn-color-neutral-400);--zn-input-border-color-focus:var(--zn-color-primary-500);--zn-input-border-color-disabled:var(--zn-color-neutral-300);--zn-input-border-width:1px;--zn-input-required-content:'*';--zn-input-required-content-offset:-2px;--zn-input-required-content-color:var(--zn-input-label-color);--zn-input-border-radius-x-small:var(--zn-border-radius);--zn-input-border-radius-small:var(--zn-border-radius);--zn-input-border-radius-medium:var(--zn-border-radius);--zn-input-border-radius-large:var(--zn-border-radius);--zn-input-font-family:var(--zn-font-sans);--zn-input-font-weight:var(--zn-text-input-content-font-weight);--zn-input-font-size-x-small:var(--zn-font-size-x-small);--zn-input-font-size-small:var(--zn-font-size-small);--zn-input-font-size-medium:var(--zn-text-input-content-font-size);--zn-input-font-size-large:var(--zn-font-size-large);--zn-input-line-height:var(--zn-text-input-content-line-height);--zn-input-letter-spacing:var(--zn-letter-spacing-normal);--zn-input-color:var(--zn-text-input-content-color);--zn-input-color-hover:var(--zn-color-neutral-800);--zn-input-color-focus:var(--zn-color-neutral-700);--zn-input-color-disabled:var(--zn-color-neutral-800);--zn-input-icon-color:var(--zn-color-neutral-500);--zn-input-icon-color-hover:var(--zn-color-neutral-800);--zn-input-icon-color-focus:var(--zn-color-neutral-600);--zn-input-placeholder-color:var(--zn-text-input-placeholder-color);--zn-input-placeholder-color-disabled:var(--zn-color-neutral-600);--zn-input-spacing-small:var(--zn-spacing-small);--zn-input-spacing-medium:var(--zn-spacing-medium);--zn-input-spacing-large:var(--zn-spacing-large);--zn-input-focus-ring-color:hsl(256 91% 59%/40%);--zn-input-focus-ring-offset:0;--zn-input-label-font-size-small:var(--zn-font-size-small);--zn-input-label-font-size-medium:var(--zn-text-input-label-font-size);--zn-input-label-font-size-large:var(--zn-font-size-large);--zn-input-label-font-weight:var(--zn-text-input-label-font-weight);--zn-input-label-line-height:var(--zn-text-input-label-line-height);--zn-input-label-color:var(--zn-text-input-label-color);--zn-input-help-text-font-size-small:var(--zn-font-size-x-small);--zn-input-help-text-font-size-medium:var(--zn-font-size-small);--zn-input-help-text-font-size-large:var(--zn-font-size-medium);--zn-input-help-text-color:var(--zn-color-neutral-500);--zn-toggle-size-small:0.875rem;--zn-toggle-size-medium:1.125rem;--zn-toggle-size-large:1.375rem;--zn-overlay-background-color:hsl(none 0% 0%/0.7);--zn-panel-background-color:var(--zn-color-neutral-0);--zn-panel-border-color:var(--zn-color-neutral-200);--zn-panel-border-width:1px;--zn-tooltip-border-radius:var(--zn-border-radius);--zn-tooltip-background-color:var(--zn-color-neutral-900);--zn-tooltip-color:var(--zn-color-neutral-0);--zn-tooltip-font-family:var(--zn-font-sans);--zn-tooltip-font-weight:var(--zn-font-weight-normal);--zn-tooltip-font-size:var(--zn-font-size-small);--zn-tooltip-line-height:var(--zn-line-height-dense);--zn-tooltip-padding:var(--zn-spacing-x-small) var(--zn-spacing-small);--zn-tooltip-arrow-size:6px;--zn-z-index-page-nav:500;--zn-z-index-drawer:700;--zn-z-index-dialog:800;--zn-z-index-dropdown:900;--zn-z-index-toast:950;--zn-z-index-tooltip:1000;--zn-z-index-editor-action:1000000;--zn-table-header-background-color:252,251,254}:root[m=dark],[t=dark],.theme-dark{color-scheme:dark;--zn-color-gray-50:hsl(258,15%,23%);--zn-color-gray-100:hsl(262,12%,35%);--zn-color-gray-200:hsl(259,13%,42%);--zn-color-gray-300:hsl(259,13%,54%);--zn-color-gray-400:hsl(258,15%,58%);--zn-color-gray-500:hsl(254,17%,66%);--zn-color-gray-600:hsl(251,17%,76%);--zn-color-gray-700:hsl(260,21%,89%);--zn-color-gray-800:hsl(255,12%,94%);--zn-color-gray-900:hsl(240,13%,95%);--zn-color-gray-950:hsl(255,33%,98%);--zn-color-red-50:hsl(0 56% 23.9%);--zn-color-red-100:hsl(0.6 60% 33.9%);--zn-color-red-200:hsl(0.9 67.2% 37.1%);--zn-color-red-300:hsl(1.1 71.3% 43.7%);--zn-color-red-400:hsl(1 76% 52.5%);--zn-color-red-500:hsl(0.7 89.6% 57.2%);--zn-color-red-600:hsl(0 98.6% 67.9%);--zn-color-red-700:hsl(0 100% 72.3%);--zn-color-red-800:hsl(0 100% 85.6%);--zn-color-red-900:hsl(0 100% 90.3%);--zn-color-red-950:hsl(0 100% 95.9%);--zn-color-orange-50:hsl(15 64.2% 23.3%);--zn-color-orange-100:hsl(15.1 70.9% 31.1%);--zn-color-orange-200:hsl(15.3 75.7% 35.5%);--zn-color-orange-300:hsl(17.1 83.5% 42.7%);--zn-color-orange-400:hsl(20.1 88% 50.8%);--zn-color-orange-500:hsl(24.3 100% 50.5%);--zn-color-orange-600:hsl(27.2 100% 57.7%);--zn-color-orange-700:hsl(31.3 100% 68.7%);--zn-color-orange-800:hsl(33.8 100% 79.3%);--zn-color-orange-900:hsl(38.9 100% 87.7%);--zn-color-orange-950:hsl(46.2 100% 95%);--zn-color-amber-50:hsl(21.9 66.3% 21.1%);--zn-color-amber-100:hsl(21.5 73.6% 29.7%);--zn-color-amber-200:hsl(22.3 77.6% 33.3%);--zn-color-amber-300:hsl(25.4 84.2% 39.6%);--zn-color-amber-400:hsl(31.4 87.4% 46.7%);--zn-color-amber-500:hsl(37 96.6% 48.3%);--zn-color-amber-600:hsl(43.3 100% 53.4%);--zn-color-amber-700:hsl(46.5 100% 61.1%);--zn-color-amber-800:hsl(49.3 100% 73%);--zn-color-amber-900:hsl(51.8 100% 85%);--zn-color-amber-950:hsl(60 100% 94.6%);--zn-color-yellow-50:hsl(34,86%,14%);--zn-color-yellow-100:hsl(36,74%,26%);--zn-color-yellow-200:hsl(40,82%,29%);--zn-color-yellow-300:hsl(43,94%,33%);--zn-color-yellow-400:hsl(48,98%,40%);--zn-color-yellow-500:hsl(53,95%,47%);--zn-color-yellow-600:hsl(51,100%,53%);--zn-color-yellow-700:hsl(54,100%,63%);--zn-color-yellow-800:hsl(61,100%,77%);--zn-color-yellow-900:hsl(63,100%,88%);--zn-color-yellow-950:hsl(63,92%,95%);--zn-color-lime-50:hsl(86.5 54.4% 18%);--zn-color-lime-100:hsl(87.6 56.8% 23.3%);--zn-color-lime-200:hsl(85.8 63.2% 24.5%);--zn-color-lime-300:hsl(86.1 72% 29.4%);--zn-color-lime-400:hsl(85.5 76.8% 37.3%);--zn-color-lime-500:hsl(84.3 74.2% 42.1%);--zn-color-lime-600:hsl(82.8 81.5% 52.6%);--zn-color-lime-700:hsl(82 89.9% 64%);--zn-color-lime-800:hsl(80.9 97.9% 76.6%);--zn-color-lime-900:hsl(77.9 100% 85.8%);--zn-color-lime-950:hsl(69.5 100% 93.8%);--zn-color-green-50:hsl(144.3 53.6% 16%);--zn-color-green-100:hsl(143.2 55.4% 23.5%);--zn-color-green-200:hsl(141.5 58.2% 26.3%);--zn-color-green-300:hsl(140.8 64.2% 31.8%);--zn-color-green-400:hsl(140.3 68% 39.2%);--zn-color-green-500:hsl(141.1 64.9% 43%);--zn-color-green-600:hsl(141.6 72.4% 55.2%);--zn-color-green-700:hsl(141.7 82.7% 70.1%);--zn-color-green-800:hsl(141 90.9% 82.1%);--zn-color-green-900:hsl(142 100% 89.1%);--zn-color-green-950:hsl(144 100% 95.5%);--zn-color-emerald-50:hsl(164.3 75% 13.5%);--zn-color-emerald-100:hsl(163.5 72.6% 20.1%);--zn-color-emerald-200:hsl(162.1 73.7% 22.4%);--zn-color-emerald-300:hsl(161.3 77.3% 27.6%);--zn-color-emerald-400:hsl(159.6 77.1% 34.3%);--zn-color-emerald-500:hsl(159.1 73.5% 37.9%);--zn-color-emerald-600:hsl(157.8 66.8% 48.9%);--zn-color-emerald-700:hsl(156.2 76.1% 63.8%);--zn-color-emerald-800:hsl(152.4 84.4% 77.4%);--zn-color-emerald-900:hsl(149.3 100% 87%);--zn-color-emerald-950:hsl(158.6 100% 94.8%);--zn-color-teal-50:hsl(176.5 51.5% 15.4%);--zn-color-teal-100:hsl(175.9 54.7% 22.3%);--zn-color-teal-200:hsl(175.9 60.7% 23.9%);--zn-color-teal-300:hsl(174.5 67.3% 28.8%);--zn-color-teal-400:hsl(174.4 71.9% 34.9%);--zn-color-teal-500:hsl(173.1 71% 38.3%);--zn-color-teal-600:hsl(172.3 68.2% 48.1%);--zn-color-teal-700:hsl(170.5 81.3% 61.5%);--zn-color-teal-800:hsl(168.4 92.1% 75.2%);--zn-color-teal-900:hsl(168.3 100% 86%);--zn-color-teal-950:hsl(180 100% 95.5%);--zn-color-cyan-50:hsl(197.1 53.8% 20.3%);--zn-color-cyan-100:hsl(196.8 57.3% 27.2%);--zn-color-cyan-200:hsl(195.3 62.7% 29.4%);--zn-color-cyan-300:hsl(193.5 71.3% 34.1%);--zn-color-cyan-400:hsl(192.5 76.8% 40.6%);--zn-color-cyan-500:hsl(189.4 78.6% 42.6%);--zn-color-cyan-600:hsl(188.2 89.1% 51.7%);--zn-color-cyan-700:hsl(187 98.6% 66.2%);--zn-color-cyan-800:hsl(184.9 100% 78.3%);--zn-color-cyan-900:hsl(180 100% 86.6%);--zn-color-cyan-950:hsl(180 100% 94.8%);--zn-color-sky-50:hsl(203 63.8% 20.9%);--zn-color-sky-100:hsl(203.4 70.4% 28%);--zn-color-sky-200:hsl(202.7 75.8% 30.8%);--zn-color-sky-300:hsl(203.1 80.4% 36.1%);--zn-color-sky-400:hsl(202.1 80.5% 44.3%);--zn-color-sky-500:hsl(199.7 85.9% 47.7%);--zn-color-sky-600:hsl(198.7 97.9% 57.2%);--zn-color-sky-700:hsl(198.7 100% 70.5%);--zn-color-sky-800:hsl(198.8 100% 82.5%);--zn-color-sky-900:hsl(198.5 100% 89.9%);--zn-color-sky-950:hsl(186 100% 95.5%);--zn-color-blue-50:hsl(227.1 49.5% 22.7%);--zn-color-blue-100:hsl(225.8 58.9% 36.8%);--zn-color-blue-200:hsl(227.7 64.4% 42.9%);--zn-color-blue-300:hsl(226.1 72.7% 51.2%);--zn-color-blue-400:hsl(222.6 86.5% 56.3%);--zn-color-blue-500:hsl(217.8 95.8% 57.4%);--zn-color-blue-600:hsl(213.3 100% 65%);--zn-color-blue-700:hsl(210.9 100% 74.8%);--zn-color-blue-800:hsl(211.5 100% 83.4%);--zn-color-blue-900:hsl(211 100% 88.9%);--zn-color-blue-950:hsl(201.8 100% 95.3%);--zn-color-indigo-50:hsl(243.5 40.8% 27%);--zn-color-indigo-100:hsl(242.9 45.7% 37.6%);--zn-color-indigo-200:hsl(244.7 52.7% 43.1%);--zn-color-indigo-300:hsl(245.3 60.5% 52.4%);--zn-color-indigo-400:hsl(244.1 79.2% 60.4%);--zn-color-indigo-500:hsl(239.6 88.7% 63.8%);--zn-color-indigo-600:hsl(234.5 96.7% 70.9%);--zn-color-indigo-700:hsl(229.4 100% 78.3%);--zn-color-indigo-800:hsl(227.1 100% 85%);--zn-color-indigo-900:hsl(223.8 100% 89.9%);--zn-color-indigo-950:hsl(220 100% 95.1%);--zn-color-violet-50:hsl(265.1 57.3% 25.4%);--zn-color-violet-100:hsl(263.5 63.8% 39.4%);--zn-color-violet-200:hsl(263.4 66.2% 44.1%);--zn-color-violet-300:hsl(263.7 72.8% 52.4%);--zn-color-violet-400:hsl(262.5 87.3% 59.8%);--zn-color-violet-500:hsl(258.3 95.1% 63.2%);--zn-color-violet-600:hsl(255.1 100% 67.2%);--zn-color-violet-700:hsl(253 100% 81.5%);--zn-color-violet-800:hsl(251.7 100% 87.9%);--zn-color-violet-900:hsl(254.1 100% 91.7%);--zn-color-violet-950:hsl(257.1 100% 96.1%);--zn-color-purple-50:hsl(255,79%,23%);--zn-color-purple-100:hsl(257,73%,35%);--zn-color-purple-200:hsl(257,76%,42%);--zn-color-purple-300:hsl(257,76%,50%);--zn-color-purple-400:hsl(256,91%,59%);--zn-color-purple-500:hsl(252,98%,66%);--zn-color-purple-600:hsl(249,100%,76%);--zn-color-purple-700:hsl(246,100%,85%);--zn-color-purple-800:hsl(244,100%,92%);--zn-color-purple-900:hsl(245,100%,95%);--zn-color-purple-950:hsl(249,100%,97%);--zn-color-fuchsia-50:hsl(297.1 51.2% 18.6%);--zn-color-fuchsia-100:hsl(296.7 59.5% 31.5%);--zn-color-fuchsia-200:hsl(295.4 65.4% 35.1%);--zn-color-fuchsia-300:hsl(294.6 67.4% 42.2%);--zn-color-fuchsia-400:hsl(293.3 68.7% 51.2%);--zn-color-fuchsia-500:hsl(292.1 88.4% 57.7%);--zn-color-fuchsia-600:hsl(292 98.5% 59.5%);--zn-color-fuchsia-700:hsl(292.4 100% 79.5%);--zn-color-fuchsia-800:hsl(292.9 100% 86.8%);--zn-color-fuchsia-900:hsl(300 100% 91.5%);--zn-color-fuchsia-950:hsl(300 100% 96.3%);--zn-color-pink-50:hsl(336.2 59.6% 20%);--zn-color-pink-100:hsl(336.8 63.9% 34%);--zn-color-pink-200:hsl(336.8 68.7% 37.6%);--zn-color-pink-300:hsl(336.1 71.8% 44.5%);--zn-color-pink-400:hsl(333.9 74.9% 53.1%);--zn-color-pink-500:hsl(330.7 86.3% 57.7%);--zn-color-pink-600:hsl(328.6 91.5% 67.2%);--zn-color-pink-700:hsl(327.4 97.6% 78.7%);--zn-color-pink-800:hsl(325.1 100% 86.6%);--zn-color-pink-900:hsl(322.1 100% 91.3%);--zn-color-pink-950:hsl(315 100% 95.9%);--zn-color-rose-50:hsl(342.3 62.9% 21.5%);--zn-color-rose-100:hsl(342.8 68.9% 34.2%);--zn-color-rose-200:hsl(344.8 72.6% 37.3%);--zn-color-rose-300:hsl(346.9 75.8% 43.7%);--zn-color-rose-400:hsl(348.2 80.1% 52.7%);--zn-color-rose-500:hsl(350.4 94.8% 57.5%);--zn-color-rose-600:hsl(351.2 100% 58.1%);--zn-color-rose-700:hsl(352.3 100% 78.1%);--zn-color-rose-800:hsl(352 100% 86.2%);--zn-color-rose-900:hsl(354.5 100% 90.7%);--zn-color-rose-950:hsl(353.3 100% 95.7%);--zn-color-neutral-0:hsl(0,0%,0%);--zn-color-neutral-1000:hsl(0,0%,100%);--zn-color-neutral-50:var(--zn-color-gray-50);--zn-color-neutral-200:var(--zn-color-gray-200);--zn-shadow-x-small:0 1px 4px rgba(0,0,0,0.18);--zn-shadow-small:0 3px 9px rgba(0,0,0,0.24);--zn-shadow-medium:0 6px 18px rgba(0,0,0,0.24);--zn-shadow-large:0 6px 20px rgba(0,0,0,0.24);--zn-shadow-x-large:0 6px 20px rgba(0,0,0,0.34);--zn-input-background-color:rgb(var(--zn-color-body));--zn-input-background-color-hover:rgb(var(--zn-color-body));--zn-input-background-color-focus:hsl(252,15%,13%);--zn-input-background-color-disabled:hsl(280,6%,9%);--zn-input-border-color:rgb(var(--zn-color-border));--zn-input-border-color-hover:rgb(var(--zn-color-border-active));--zn-input-border-color-focus:var(--zn-color-primary-500);--zn-input-border-color-disabled:hsl(280,6%,9%);--zn-focus-ring-color:var(--zn-color-primary-700);--zn-overlay-background-color:hsl(0 0% 0%/43%);--zn-panel-background-color:rgb(var(--zn-panel));--zn-tooltip-background-color:var(--zn-color-neutral-800);--zn-table-header-background-color:27,27,30}html[t=aura],body[t=aura],html.theme-aura,body.theme-aura{color-scheme:light;--zn-color-primary-50:hsl(258,100%,97%);--zn-color-primary-100:hsl(256,95%,94%);--zn-color-primary-200:hsl(255,90%,90%);--zn-color-primary-300:hsl(255,88%,83%);--zn-color-primary-400:hsl(256,85%,75%);--zn-color-primary-500:hsl(255,82%,68%);--zn-color-primary-600:hsl(256,78%,62%);--zn-color-primary-700:hsl(257,70%,54%);--zn-color-primary-800:hsl(258,68%,46%);--zn-color-primary-900:hsl(259,66%,38%);--zn-shadow-x-small:0 1px 4px rgba(60,44,110,0.08);--zn-shadow-small:0 3px 9px rgba(60,44,110,0.12);--zn-shadow-medium:0 6px 18px rgba(60,44,110,0.12);--zn-shadow-large:0 6px 20px rgba(60,44,110,0.14);--zn-shadow-x-large:0 6px 20px rgba(60,44,110,0.22);--zn-input-focus-ring-color:hsl(255 82% 68%/40%)}html[t=aura][m=dark],body[t=aura][m=dark],html.theme-aura.theme-dark,body.theme-aura.theme-dark{color-scheme:dark;--zn-color-primary-50:hsl(257,45%,25%);--zn-color-primary-100:hsl(257,50%,34%);--zn-color-primary-200:hsl(257,55%,41%);--zn-color-primary-300:hsl(257,62%,50%);--zn-color-primary-400:hsl(256,75%,60%);--zn-color-primary-500:hsl(255,88%,68%);--zn-color-primary-600:hsl(253,95%,75%);--zn-color-primary-700:hsl(251,100%,83%);--zn-color-primary-800:hsl(249,100%,90%);--zn-color-primary-900:hsl(250,100%,94%);--zn-shadow-x-small:0 1px 4px rgba(6,10,20,0.30);--zn-shadow-small:0 3px 9px rgba(6,10,20,0.38);--zn-shadow-medium:0 6px 18px rgba(6,10,20,0.38);--zn-shadow-large:0 6px 20px rgba(6,10,20,0.42);--zn-shadow-x-large:0 6px 20px rgba(6,10,20,0.52);--zn-input-focus-ring-color:hsl(255 88% 68%/45%);--zn-color-gray-100:hsl(221.6,41.21%,27.22%);--zn-color-gray-50:hsl(220,33%,20%);--zn-color-gray-200:hsl(220,28%,35%);--zn-input-background-color-focus:rgb(35,47,70);--zn-input-background-color-disabled:rgb(33,44,65);--zn-tooltip-background-color:rgb(24,33,50);--zn-table-header-background-color:46,61,88}:root{--zn-spacing-unit:8px;--zn-spacing-3x-small:2px;--zn-spacing-2x-small:4px;--zn-spacing-x-small:8px;--zn-spacing-small:16px;--zn-spacing-medium:24px;--zn-spacing-large:32px;--zn-spacing-x-large:40px;--zn-spacing-2x-large:48px;--zn-spacing-3x-large:56px;--zn-spacing-4x-large:72px;--zn-spacing-narrow-bar:45px;--zn-spacing-bar:60px;--zn-spacing-tile:80px;--zn-spacing-sidenav:320px;--zn-spacing-small-panel:200px;--zn-spacing-medium-panel:320px;--zn-spacing-panel:360px;--zn-spacing-lside:460px}:root{--zn-text-color:rgb(var(--zn-color-text));--zn-text-color-muted:rgb(var(--zn-color-muted-text));--zn-text-paragraph-font-size:14px;--zn-text-paragraph-line-height:21px;--zn-text-paragraph-spacing:21px;--zn-text-paragraph-font-weight:var(--zn-font-weight-normal);--zn-text-paragraph-color:var(--zn-text-color);--zn-text-paragraph-transform:none;--zn-text-paragraph-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-table-content-font-size:14px;--zn-text-table-content-line-height:16px;--zn-text-table-content-spacing:15px;--zn-text-table-content-font-weight:var(--zn-font-weight-normal);--zn-text-table-content-color:var(--zn-text-color);--zn-text-table-content-transform:none;--zn-text-table-content-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-chat-font-size:16px;--zn-text-chat-line-height:24px;--zn-text-chat-spacing:15px;--zn-text-chat-font-weight:var(--zn-font-weight-normal);--zn-text-chat-color:var(--zn-text-color);--zn-text-chat-transform:none;--zn-text-chat-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-h1-font-size:16px;--zn-text-h1-line-height:16px;--zn-text-h1-spacing:18px;--zn-text-h1-font-weight:var(--zn-font-weight-semibold);--zn-text-h1-color:var(--zn-text-color);--zn-text-h1-transform:none;--zn-text-h1-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-h2-font-size:14px;--zn-text-h2-line-height:16px;--zn-text-h2-spacing:15px;--zn-text-h2-font-weight:var(--zn-font-weight-semibold);--zn-text-h2-color:var(--zn-text-color);--zn-text-h2-transform:none;--zn-text-h2-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-h3-font-size:11px;--zn-text-h3-line-height:16px;--zn-text-h3-spacing:15px;--zn-text-h3-font-weight:var(--zn-font-weight-semibold);--zn-text-h3-color:var(--zn-text-color);--zn-text-h3-transform:none;--zn-text-h3-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-heading-section-font-size:14px;--zn-text-heading-section-line-height:16px;--zn-text-heading-section-spacing:15px;--zn-text-heading-section-font-weight:var(--zn-font-weight-semibold);--zn-text-heading-section-color:var(--zn-text-color);--zn-text-heading-section-transform:none;--zn-text-heading-section-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-subheading-font-size:14px;--zn-text-subheading-line-height:16px;--zn-text-subheading-spacing:15px;--zn-text-subheading-font-weight:var(--zn-font-weight-normal);--zn-text-subheading-color:var(--zn-text-color-muted);--zn-text-subheading-transform:none;--zn-text-subheading-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-subheading-small-font-size:13px;--zn-text-subheading-small-line-height:16px;--zn-text-subheading-small-spacing:15px;--zn-text-subheading-small-font-weight:var(--zn-font-weight-normal);--zn-text-subheading-small-color:var(--zn-text-color-muted);--zn-text-subheading-small-transform:none;--zn-text-subheading-small-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-input-placeholder-font-size:14px;--zn-text-input-placeholder-line-height:24px;--zn-text-input-placeholder-spacing:18px;--zn-text-input-placeholder-font-weight:var(--zn-font-weight-normal);--zn-text-input-placeholder-color:var(--zn-text-color-muted);--zn-text-input-placeholder-transform:none;--zn-text-input-placeholder-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-input-content-font-size:14px;--zn-text-input-content-line-height:24px;--zn-text-input-content-spacing:18px;--zn-text-input-content-font-weight:var(--zn-font-weight-normal);--zn-text-input-content-color:var(--zn-text-color);--zn-text-input-content-transform:none;--zn-text-input-content-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-input-label-font-size:14px;--zn-text-input-label-line-height:16px;--zn-text-input-label-spacing:15px;--zn-text-input-label-font-weight:var(--zn-font-weight-semibold);--zn-text-input-label-color:var(--zn-text-color);--zn-text-input-label-transform:none;--zn-text-input-label-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-chart-minor-font-size:14px;--zn-text-chart-minor-line-height:16px;--zn-text-chart-minor-spacing:15px;--zn-text-chart-minor-font-weight:var(--zn-font-weight-semibold);--zn-text-chart-minor-color:var(--zn-text-color-muted);--zn-text-chart-minor-transform:none;--zn-text-chart-minor-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-chart-major-font-size:21px;--zn-text-chart-major-line-height:24px;--zn-text-chart-major-spacing:18px;--zn-text-chart-major-font-weight:var(--zn-font-weight-normal);--zn-text-chart-major-color:var(--zn-text-color);--zn-text-chart-major-transform:none;--zn-text-chart-major-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-button-label-font-size:13px;--zn-text-button-label-line-height:16px;--zn-text-button-label-spacing:18px;--zn-text-button-label-font-weight:var(--zn-font-weight-semibold);--zn-text-button-label-color:var(--zn-text-color);--zn-text-button-label-transform:uppercase;--zn-text-button-label-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-chip-font-size:10px;--zn-text-chip-line-height:16px;--zn-text-chip-spacing:15px;--zn-text-chip-font-weight:var(--zn-font-weight-semibold);--zn-text-chip-color:var(--zn-text-color);--zn-text-chip-transform:uppercase;--zn-text-chip-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-navbar-link-font-size:16px;--zn-text-navbar-link-line-height:16px;--zn-text-navbar-link-spacing:18px;--zn-text-navbar-link-font-weight:var(--zn-font-weight-semibold);--zn-text-navbar-link-color:var(--zn-text-color-muted);--zn-text-navbar-link-transform:none;--zn-text-navbar-link-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-tab-link-font-size:14px;--zn-text-tab-link-line-height:16px;--zn-text-tab-link-spacing:15px;--zn-text-tab-link-font-weight:var(--zn-font-weight-semibold);--zn-text-tab-link-color:var(--zn-text-color-muted);--zn-text-tab-link-transform:none;--zn-text-tab-link-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-tab-link-active-font-size:14px;--zn-text-tab-link-active-line-height:16px;--zn-text-tab-link-active-spacing:15px;--zn-text-tab-link-active-font-weight:var(--zn-font-weight-semibold);--zn-text-tab-link-active-color:var(--zn-text-color);--zn-text-tab-link-active-transform:none;--zn-text-tab-link-active-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-menu-link-font-size:14px;--zn-text-menu-link-line-height:16px;--zn-text-menu-link-spacing:15px;--zn-text-menu-link-font-weight:var(--zn-font-weight-normal);--zn-text-menu-link-color:var(--zn-text-color-muted);--zn-text-menu-link-transform:none;--zn-text-menu-link-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-notification-font-size:9px;--zn-text-notification-line-height:11px;--zn-text-notification-spacing:0;--zn-text-notification-font-weight:var(--zn-font-weight-semibold);--zn-text-notification-color:#fff;--zn-text-notification-transform:none;--zn-text-notification-letter-spacing:var(--zn-letter-spacing-normal,normal)}@supports (scrollbar-gutter:stable){.zn-scroll-lock{scrollbar-gutter:stable !important;overflow:hidden !important}}@supports not (scrollbar-gutter:stable){.zn-scroll-lock{padding-right:var(--zn-scroll-lock-size) !important;overflow:hidden !important}}.zn-toast-stack{position:fixed;bottom:0;inset-inline-end:0;z-index:var(--zn-z-index-toast);width:28rem;max-width:100%;max-height:100%;overflow:auto}.zn-toast-stack zn-alert{margin:var(--zn-spacing-medium)}.zn-toast-stack zn-alert::part(base){box-shadow:var(--zn-shadow-large)}@media screen and (min-width:768px){.zn-toast-stack zn-alert{margin:var(--zn-spacing-large)}}.zn-gutter{margin:0 var(--zn-gutter)}.zn-gap{gap:var(--zn-gap,0);padding:var(--zn-base-gap,0);display:flex;flex-wrap:wrap}.zn-gap-in{gap:var(--zn-gap,0);display:flex;flex-wrap:wrap}.zn-gap-in-sm{--zn-gap:var(--zn-spacing-small,0);gap:var(--zn-gap,0)}.zn-gap-md{gap:24px}.zn-gap-inner{gap:var(--zn-gap,0)}.zn-gap-ism{gap:var(--zn-gap,0);--zn-gap:16px}.zn-gap-ixs{gap:var(--zn-gap,0);--zn-gap:8px}.zn-max-hide{max-height:100%;overflow:hidden}.zn-hide-empty:empty{display:none}.zn-nopoint{pointer-events:none}.form-spacing{display:grid;grid-template-columns:1fr;gap:var(--zn-spacing-medium) var(--zn-spacing-small)}@media (min-width:768px){.form-spacing{grid-template-columns:repeat(6,1fr)}}.form-spacing~.form-spacing{margin-top:var(--zn-base-gap)}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--zn-spacing-small)}zn-form-group~zn-form-group{margin-top:var(--zn-base-gap);padding-top:var(--zn-base-gap);border-top:1px solid rgb(var(--zn-border-color))}zn-sp[divide]>zn-form-group~zn-form-group{margin-top:0;padding-top:0;border-top:0}.form-spacing>*{grid-column:span 6/span 6}@media (min-width:768px){.form-spacing>*[span="1"]{grid-column:span 1/span 1}}@media (min-width:768px){.form-spacing>*[span="2"]{grid-column:span 2/span 2}}@media (min-width:768px){.form-spacing>*[span="3"]{grid-column:span 3/span 3}}@media (min-width:768px){.form-spacing>*[span="4"]{grid-column:span 4/span 4}}@media (min-width:768px){.form-spacing>*[span="5"]{grid-column:span 5/span 5}}@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:root{--zn-base-px:8px;--zn-base-gap:calc(var(--zn-base-px) * 2);--zn-gutter:2px;--zn-default-margin:0 auto 0 0;--zn-icon-size:20px;--zn-button-gutter:2px;--zn-font-family-sans:'Inter',sans-serif;--zn-font-family-serif:'Roboto Slab',serif;--zn-font-family-mono:'Roboto Mono',monospace}:root,[t=light],.theme-light{--zn-backdrop-color:rgba(0,0,0,0.5);--zn-color-text:33,33,33;--zn-color-muted-text:125,119,146;--zn-color-base:255,255,255;--zn-color-body:248,247,252;--zn-color-navigation:var(--zn-color-base);--zn-color-navigation-hightlight:248,249,252;--zn-color-border:219,217,236;--zn-color-border-active:209,207,226;--zn-color-tab:236,235,249;--zn-color-panel:255,255,255;--zn-color-primary:105,54,245;--zn-color-info:53,104,195;--zn-color-success:98,177,121;--zn-color-warning:241,168,80;--zn-color-error:236,68,91;--zn-color-disabled:181,181,181}:root[m=dark],[t=dark],.theme-dark{--zn-backdrop-color:rgba(0,0,0,0.85);--zn-color-text:215,215,215;--zn-color-muted-text:145,145,145;--zn-color-base:0,0,0;--zn-color-body:23,23,23;--zn-color-navigation:var(--zn-color-base);--zn-color-navigation-hightlight:10,10,10;--zn-color-border:38,38,38;--zn-color-border-active:80,80,80;--zn-color-tab:5,5,5;--zn-color-panel:30,30,30;--zn-color-primary:105,54,245;--zn-color-info:53,104,195;--zn-color-success:98,177,121;--zn-color-warning:241,168,80;--zn-color-error:236,68,91;--zn-color-disabled:181,181,181}@media (min-width:1200px){:root{--zn-base-gap:calc(var(--zn-base-px) * 3)}}@media (min-width:2500px){:root{--zn-default-margin:0 auto}}:root{--zn-primary:var(--zn-color-primary);--zn-color-on-primary:255,255,255;--zn-color-on-info:255,255,255;--zn-color-on-success:255,255,255;--zn-color-on-warning:255,255,255;--zn-color-on-error:255,255,255;--zn-color-on-accent:255,255,255;--zn-red:237,84,109;--zn-blue:100,117,242;--zn-green:43,192,145;--zn-orange:255,136,0;--zn-yellow:255,193,7;--zn-indigo:63,81,181;--zn-violet:156,39,176;--zn-pink:255,108,156;--zn-grey:158,158,158;--zn-accent:71,214,214;--zn-size-bar:60px;--zn-size-tile:80px;--zn-size-sidenav:320px;--zn-size-spanel:170px;--zn-size-mpanel:320px;--zn-size-panel:360px;--zn-size-lside:460px;--zn-bg-opacity:1;--zn-text-opacity:1;--base:255,255,255;--inverse-base:0,0,0}.zn-mono{font-family:var(--zn-font-family-mono),monospace}.zn-muted{color:var(--zn-color-muted-text)}.zn-size-xs{font-size:var(--zn-font-size-x-small)}.zn-size-s{font-size:var(--zn-font-size-small)}.zn-size-l{font-size:var(--zn-font-size-large)}.zn-size-xl{font-size:var(--zn-font-size-x-large)}:root,[t=light],.theme-light,:root[m=dark],[t=dark],.theme-dark{--zn-body:var(--zn-color-body);--zn-text:var(--zn-color-text);--zn-text-heading:var(--zn-color-text);--zn-text-page-title:var(--zn-color-text);--zn-text-panel-title:var(--zn-color-text);--zn-panel:var(--zn-color-panel);--zn-border-color:var(--zn-color-border);--zn-input-bg:var(--zn-color-body)}:root,[t=light],.theme-light{--zn-panel-opacity:1;--zn-shadow:236,235,249;--zn-panel-secondary:246 246 246;--zn-panel-highlight:248,249,252;--zn-panel-highlight-opacity:1;--zn-input-bg-accent:237,235,245;--zn-bright-bg:255,255,255;--zn-light-text:123,112,151;--zn-dark-text:56,39,104;--zn-purple-text:104,54,245}:root .zn-primary,[t=light] .zn-primary,.theme-light .zn-primary{color:rgb(var(--zn-color-primary))}:root[m=dark],[t=dark],.theme-dark{--zn-shadow:10,10,10;--zn-panel-secondary:27,27,30;--zn-panel-opacity:1;--zn-panel-highlight:25,27,32;--zn-panel-highlight-opacity:0.1;--zn-input-bg-accent:72,84,102;--zn-bright-bg:225,225,225;--zn-light-text:173,163,192;--zn-dark-text:201,201,201;--zn-purple-text:129,140,249;--zn-accent:15,165,234;--zn-primary:137,103,239;--base:0,0,0;--inverse-base:255,255,255}:root[m=dark] .zn-primary,[t=dark] .zn-primary,.theme-dark .zn-primary{color:#8967ef !important}.ml-px{margin-left:2px}.mr-px{margin-right:2px}.mt-px{margin-top:2px}.mb-px{margin-bottom:2px}.mx-px{margin-left:2px;margin-right:2px}.my-px{margin-top:2px;margin-bottom:2px}.m-px{margin:2px}.ml-xxs{margin-left:4px}.mr-xxs{margin-right:4px}.mt-xxs{margin-top:4px}.mb-xxs{margin-bottom:4px}.mx-xxs{margin-left:4px;margin-right:4px}.my-xxs{margin-top:4px;margin-bottom:4px}.m-xxs{margin:4px}.ml-xs{margin-left:8px}.mr-xs{margin-right:8px}.mt-xs{margin-top:8px}.mb-xs{margin-bottom:8px}.mx-xs{margin-left:8px;margin-right:8px}.my-xs{margin-top:8px;margin-bottom:8px}.m-xs{margin:8px}.ml-sm{margin-left:16px}.mr-sm{margin-right:16px}.mt-sm{margin-top:16px}.mb-sm{margin-bottom:16px}.mx-sm{margin-left:16px;margin-right:16px}.my-sm{margin-top:16px;margin-bottom:16px}.m-sm{margin:16px}.ml-md{margin-left:24px}.mr-md{margin-right:24px}.mt-md{margin-top:24px}.mb-md{margin-bottom:24px}.mx-md{margin-left:24px;margin-right:24px}.my-md{margin-top:24px;margin-bottom:24px}.m-md{margin:24px}.ml-lg{margin-left:32px}.mr-lg{margin-right:32px}.mt-lg{margin-top:32px}.mb-lg{margin-bottom:32px}.mx-lg{margin-left:32px;margin-right:32px}.my-lg{margin-top:32px;margin-bottom:32px}.m-lg{margin:32px}.ml-xl{margin-left:40px}.mr-xl{margin-right:40px}.mt-xl{margin-top:40px}.mb-xl{margin-bottom:40px}.mx-xl{margin-left:40px;margin-right:40px}.my-xl{margin-top:40px;margin-bottom:40px}.m-xl{margin:40px}.zn-red{color:rgb(var(--zn-red))}.zn-blue{color:rgb(var(--zn-blue))}.zn-green{color:rgb(var(--zn-green))}.zn-orange{color:rgb(var(--zn-orange))}.zn-yellow{color:rgb(var(--zn-yellow))}.zn-indigo{color:rgb(var(--zn-indigo))}.zn-violet{color:rgb(var(--zn-violet))}.zn-pink{color:rgb(var(--zn-pink))}.zn-grey{color:rgb(var(--zn-grey))}.zn-primary{color:rgb(var(--zn-primary))}.zn-accent{color:rgb(var(--zn-accent))}.zn-info{color:rgb(var(--zn-color-info))}.zn-warning{color:rgb(var(--zn-color-warning))}.zn-error{color:rgb(var(--zn-color-error))}.zn-success{color:rgb(var(--zn-color-success))}ul.gap li{margin:5px 0}ul.circle,ul.decimal,ul.disc,ul.square{padding:5px 0 5px 15px}ul.circle{list-style-type:circle}ul.decimal{list-style-type:decimal}ul.disc{list-style-type:disc}ul.square{list-style-type:square}html[t=aura],body[t=aura],html.theme-aura,body.theme-aura{--zn-backdrop-color:rgba(30,27,60,0.45);--zn-color-text:42,32,89;--zn-color-muted-text:128,118,158;--zn-color-base:255,255,255;--zn-color-body:250,248,255;--zn-color-navigation:var(--zn-color-base);--zn-color-navigation-hightlight:245,242,255;--zn-color-border:228,222,246;--zn-color-border-active:214,206,240;--zn-color-tab:240,235,252;--zn-color-panel:255,255,255;--zn-color-primary:139,110,245;--zn-color-info:53,104,195;--zn-color-success:98,177,121;--zn-color-warning:241,168,80;--zn-color-error:236,68,91;--zn-color-disabled:181,181,181;--zn-panel-opacity:1;--zn-shadow:232,226,250;--zn-panel-secondary:248 246 255;--zn-panel-highlight:245,242,255;--zn-panel-highlight-opacity:1;--zn-input-bg-accent:240,236,252;--zn-bright-bg:255,255,255;--zn-light-text:130,120,160;--zn-dark-text:60,44,110;--zn-purple-text:124,92,246;--zn-accent:200,130,230;--navbar-page-inactive-tab-background:rgba(255,255,255,0.5);--navbar-page-inactive-tab-filter:none;--zn-page-header-aurora:linear-gradient(225deg,rgba(233,227,255,1) 0%,rgba(214,246,245,1) 40%,rgba(233,227,255,1) 100%),linear-gradient(180deg,rgba(129,153,217,0) 0%,rgba(0,0,0,1) 100%);--zn-page-header-wave-opacity:0.04}html[t=aura] .zn-primary,body[t=aura] .zn-primary,html.theme-aura .zn-primary,body.theme-aura .zn-primary{color:rgb(var(--zn-color-primary))}html[t=aura][m=dark],body[t=aura][m=dark],html.theme-aura.theme-dark,body.theme-aura.theme-dark{--zn-backdrop-color:rgba(8,12,24,0.65);--zn-color-text:226,228,242;--zn-color-muted-text:154,163,190;--zn-color-base:30,41,61;--zn-color-body:19,29,45;--zn-color-navigation:var(--zn-color-base);--zn-color-navigation-hightlight:35,47,70;--zn-color-border:64,82,113;--zn-color-border-active:92,111,145;--zn-color-tab:33,45,66;--zn-color-panel:34,53,85;--zn-color-primary:163,140,250;--zn-color-info:96,148,232;--zn-color-success:116,199,140;--zn-color-warning:245,183,105;--zn-color-error:244,106,126;--zn-color-disabled:118,130,152;--zn-panel-opacity:1;--zn-shadow:12,18,32;--zn-panel-secondary:46 61 88;--zn-panel-highlight:66,86,120;--zn-panel-highlight-opacity:1;--zn-input-bg-accent:34,46,68;--zn-bright-bg:52,69,99;--zn-light-text:168,176,201;--zn-dark-text:226,228,242;--zn-purple-text:178,158,252;--zn-accent:96,196,220;--zn-primary:126,238,255;--zn-color-on-primary:19,29,45;--base:0,0,0;--inverse-base:255,255,255;--navbar-page-inactive-tab-background:rgba(0,0,0,0.30);--navbar-page-inactive-tab-filter:none;--zn-page-canvas:31,45,70;--zn-page-header-aurora:linear-gradient(225deg,rgb(76 42 202) 0%,rgb(0 100 150) 40%,rgb(56 40 115) 100%),linear-gradient(180deg,rgb(31 50 103/0%) 0%,rgb(0,0,0) 100%);--zn-page-header-wave-opacity:0.10}html[t=aura][m=dark] .zn-primary,body[t=aura][m=dark] .zn-primary,html.theme-aura.theme-dark .zn-primary,body.theme-aura.theme-dark .zn-primary{color:rgb(var(--zn-color-primary)) !important}:host,html,body{color:rgba(var(--zn-text),var(--zn-text-opacity));font-family:var(--zn-font-family-sans);font-feature-settings:normal;font-variation-settings:normal;font-size:var(--zn-text-paragraph-font-size);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-moz-tab-size:4;-o-tab-size:4;tab-size:4;margin:0}html,body{background-color:rgba(var(--zn-body),var(--zn-bg-opacity));container-type:size;min-height:100%;height:100%}.inline-container{container-type:inline-size}.app-container{container-type:normal;display:flex;flex:1;flex-direction:column;position:relative;max-height:100%;height:100%;width:100%;max-width:100%}.inline-app-container,.app-container.inline-app-container,[inline-container] .app-container{display:block;height:auto;flex:unset}hr{height:0;border:none;border-top:1px solid rgb(var(--zn-border-color))}code,kbd,samp,pre,.mono{font-family:var(--zn-font-family-mono);font-size:1em}small{font-size:80%}.hidden{display:none !important}.visibility-hidden{visibility:hidden}p{font-size:var(--zn-text-paragraph-font-size);line-height:var(--zn-text-paragraph-line-height);font-weight:var(--zn-text-paragraph-font-weight)}h1,h2,h3,h4,h5,h6{color:rgb(var(--zn-text-heading))}h1{font-size:var(--zn-text-h1-font-size);line-height:var(--zn-text-h1-line-height);font-weight:var(--zn-text-h1-font-weight)}h2{font-size:var(--zn-text-h2-font-size);line-height:var(--zn-text-h2-line-height);font-weight:var(--zn-text-h2-font-weight)}h3,h4,h5,h6{font-size:var(--zn-text-h3-font-size);line-height:var(--zn-text-h3-line-height);font-weight:var(--zn-text-h3-font-weight)}kbd{font-family:monospace;background-color:#eee;color:#333;border:1px solid rgb(var(--zn-border-color));border-radius:3px;box-shadow:0 1px 1px rgba(0,0,0,0.2),0 1px 0 0 rgba(255,255,255,0.5) inset;display:inline-block;font-size:13px;line-height:20px;padding:1px 6px;white-space:nowrap;min-width:15px;color:rgba(0,0,0,0.5)}:root[m=dark] kbd,[t=dark] kbd,.theme-dark kbd{background-color:rgb(25,25,25);box-shadow:0 1px 1px rgba(0,0,0,0.2),0 1px 0 0 rgba(110,110,110,0.5) inset;color:#eee}[tab]{cursor:pointer}.zn-link:hover{--zn-text:rgb(var(--zn-primary));--icon-color:rgb(var(--zn-primary));--zn-text-heading:rgb(var(--zn-primary));--property-color:rgb(var(--zn-primary));opacity:1}.grow{flex-grow:1}.no-grow{flex-grow:0}.shrink{flex-shrink:1}.no-shrink{flex-shrink:0}.block{display:block}.flex{display:flex}.flex-wrap{display:flex;flex-wrap:wrap}.flex-col{display:flex;flex-direction:column}.flex-mid{display:flex;align-items:center}.flex-jc{justify-content:center}.flex-between{display:flex;justify-content:space-between}.flex-end{display:flex;justify-content:flex-end}.flex-bottom{display:flex;align-items:flex-end}.equal{flex-basis:50%}.m-auto{margin:auto}.mt-auto{margin-top:auto}.zn-pad{padding:var(--zn-base-gap,0)}.zn-pad-y,.zn-py{padding-top:16px;padding-bottom:16px}.zn-pad-x,.zn-px{padding-left:16px;padding-right:16px}.zn-pr{padding-right:16px}.zn-pl{padding-left:16px}.zn-pt{padding-top:16px}.zn-pb{padding-bottom:16px}.zn-margin{margin:16px}.zn-mx{margin-left:16px;margin-right:16px}.zn-my{margin-top:16px;margin-bottom:16px}.zn-mt{margin-top:16px}.zn-mb{margin-bottom:16px}.zn-ml{margin-left:16px}.zn-mr{margin-right:16px}.zn-mxa{margin-left:auto;margin-right:auto}.zn-mya{margin-top:auto;margin-bottom:auto}.zn-mta{margin-top:auto}.zn-mba{margin-bottom:auto}.zn-mla{margin-left:auto}.zn-mra{margin-right:auto}.rotate-45{transform:rotate(45deg)}.rotate-90{transform:rotate(90deg)}.rotate-180{transform:rotate(180deg)}@keyframes act-vanish{from{transform:scale(1);opacity:1;max-height:100%}to{transform:scale(0.8);opacity:0;max-height:0}}.act-vanish{animation:ease-in act-vanish 600ms forwards;transform-origin:top center;background-color:rgba(var(--zn-color-error),0.3);display:block;overflow:hidden}.h-full{height:100%}.w-full{width:100%}.zn-panel-bg{--zn-page-surface-background:var(--zn-panel);background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.zn-panel{background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);--zn-page-surface-background:var(--zn-panel)}.zn-container{display:flex;flex-direction:column;flex-grow:1;max-height:100%;overflow:hidden}.tar{text-align:right}.tal{text-align:left}.tac{text-align:center}.zn-empty-hide:empty{display:none}.ml-auto{margin-left:auto}.zn-b-dash{border-style:dashed}.zn-b-dotted{border-style:dotted}.zn-border{border-style:solid;border-width:1px}.zn-bt{border-top-style:solid;border-top-width:1px}.zn-bb{border-bottom-style:solid;border-bottom-width:1px}.zn-bl{border-left-style:solid;border-left-width:1px}.zn-br{border-right-style:solid;border-right-width:1px}.unifi-action{display:flex;gap:10px;padding:10px 0;align-items:center}.zn-panel-bar{border-bottom:1px solid rgb(var(--zn-border-color));background-color:rgba(var(--zn-panel),0.9);padding:var(--zn-base-px);gap:var(--zn-base-px);display:flex;flex-wrap:wrap;align-items:center;z-index:1}.zn-panel-bar--pill{border-radius:var(--zn-border-radius);border:1px solid rgb(var(--zn-border-color))}.zn-panel-bar--large{padding:var(--zn-base-px) calc(var(--zn-base-gap) + var(--zn-gutter));gap:var(--zn-base-px);height:50px}.scroll-container{overflow:auto;flex-grow:1;position:relative;display:flex;flex-direction:column;max-height:100%}.zn-divide{display:flex;flex-direction:column}.zn-divide>*:not(:first-child){border-top:1px solid rgb(var(--zn-border-color))}.zn-divide>div:empty+div:not(:first-child){border-top:0}.zn-divide-y{display:flex;flex-direction:row}.zn-divide-y>*:not(:first-child):not(:empty){border-left:1px solid rgb(var(--zn-border-color))}.zn-c-pad{--zn-pad-spacing:var(--zn-spacing-large)}.zn-c-pad-x>*{padding-left:var(--zn-pad-spacing);padding-right:var(--zn-pad-spacing)}.zn-c-pad-y>*:not(:first-child){padding-top:var(--zn-pad-spacing)}.zn-c-pad-y>*:not(:last-child){padding-bottom:var(--zn-pad-spacing)}.zn-nav.zn-transparent{background:transparent}.zn-nav{background:rgba(var(--zn-panel),var(--zn-panel-opacity));border-right:1px solid rgb(var(--zn-border-color));max-width:320px;height:100%;padding-top:5px}.zn-nav ul{list-style:none;padding-bottom:10px;margin:0;display:flex;flex-direction:column;position:relative}.zn-nav ul:after{content:"";height:1px;left:18px;right:18px;bottom:0;position:absolute;background:rgb(var(--zn-border-color))}.zn-nav ul li a{text-decoration:none;color:rgb(var(--zn-text));display:block;font-weight:500;cursor:pointer}.zn-nav ul li a:hover,.zn-nav ul li a.zn-tb-active{background:rgb(var(--zn-body))}.zn-nav ul li a.zn-tb-active{color:rgb(var(--zn-purple-text))}.zn-nav ul:last-child:after{display:none}.zn-nav strong,.zn-nav li a{padding:10px 20px}.zn-nav strong{display:block;margin-top:10px;font-size:13px;letter-spacing:0.93px;color:rgb(var(--zn-text-heading));font-weight:600;padding-bottom:5px;text-transform:uppercase}@keyframes shimmer-text-sweep{0%{background-position:100% center}100%{background-position:0% center}}@media (prefers-reduced-motion:no-preference){.shimmer-text{--shimmer-base:rgb(var(--zn-text));--shimmer-highlight:rgb(var(--zn-text-heading));--shimmer-core:0.5ch;--shimmer-spread:1.5ch;--shimmer-duration:1.5s;display:inline-block;width:-moz-fit-content;width:fit-content;max-width:100%;background-image:linear-gradient(90deg,transparent calc(50% - var(--shimmer-spread)),var(--shimmer-highlight) calc(50% - var(--shimmer-core)),var(--shimmer-highlight) calc(50% + var(--shimmer-core)),transparent calc(50% + var(--shimmer-spread))),linear-gradient(var(--shimmer-base),var(--shimmer-base));background-size:250% 100%,auto;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent !important;color:transparent !important;animation:var(--shimmer-duration) linear infinite shimmer-text-sweep}.shimmer-text.zn-error{--shimmer-base:rgb(var(--zn-color-error));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-error)) 55%,white)}.shimmer-text.zn-success{--shimmer-base:rgb(var(--zn-color-success));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-success)) 55%,white)}.shimmer-text.zn-info{--shimmer-base:rgb(var(--zn-color-info));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-info)) 55%,white)}.shimmer-text.zn-warning{--shimmer-base:rgb(var(--zn-color-warning));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-warning)) 55%,white)}.shimmer-text.zn-primary{--shimmer-base:rgb(var(--zn-primary));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-primary)) 55%,white)}.shimmer-text.zn-accent{--shimmer-base:rgb(var(--zn-accent));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-accent)) 55%,white)}}@media (prefers-reduced-motion:reduce){.shimmer-text{color:rgb(var(--zn-text))}.shimmer-text.zn-error{color:rgb(var(--zn-color-error)) !important}.shimmer-text.zn-success{color:rgb(var(--zn-color-success)) !important}.shimmer-text.zn-info{color:rgb(var(--zn-color-info)) !important}.shimmer-text.zn-warning{color:rgb(var(--zn-color-warning)) !important}.shimmer-text.zn-primary{color:rgb(var(--zn-primary)) !important}.shimmer-text.zn-accent{color:rgb(var(--zn-accent)) !important}}*,*::before,*::after{box-sizing:border-box}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}a{color:inherit;text-decoration:inherit}strong{font-weight:bolder}b{font-weight:600}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:inline-block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}button,.zn-button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}button:hover:not([disabled]),.zn-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],input[type=file],input[list],textarea,select{display:block;width:100%;border-radius:5px;border-style:solid;border-width:1px;border-color:rgb(var(--zn-border-color));background-color:rgb(var(--zn-input-bg));outline:none}input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,input[type=file]:focus,input[list]:focus,textarea:focus,select:focus{border-color:rgb(var(--zn-primary));box-shadow:0 0 0 3px rgba(var(--zn-primary),0.3)}input[type=date]::-moz-placeholder, input[type=datetime-local]::-moz-placeholder, input[type=email]::-moz-placeholder, input[type=month]::-moz-placeholder, input[type=number]::-moz-placeholder, input[type=password]::-moz-placeholder, input[type=search]::-moz-placeholder, input[type=tel]::-moz-placeholder, input[type=text]::-moz-placeholder, input[type=time]::-moz-placeholder, input[type=url]::-moz-placeholder, input[type=week]::-moz-placeholder, input[type=file]::-moz-placeholder, input[list]::-moz-placeholder, textarea::-moz-placeholder, select::-moz-placeholder{font-weight:400;color:rgba(var(--zn-text),0.6)}input[type=date]::placeholder,input[type=datetime-local]::placeholder,input[type=email]::placeholder,input[type=month]::placeholder,input[type=number]::placeholder,input[type=password]::placeholder,input[type=search]::placeholder,input[type=tel]::placeholder,input[type=text]::placeholder,input[type=time]::placeholder,input[type=url]::placeholder,input[type=week]::placeholder,input[type=file]::placeholder,input[list]::placeholder,textarea::placeholder,select::placeholder{font-weight:400;color:rgba(var(--zn-text),0.6)}@media (min-width:360px){input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],input[type=file],input[list],textarea,select{padding:8px}}label{font-weight:600;font-size:rgb(var(--zn-font-size-medium));line-height:var(--zn-spacing-medium);color:rgb(var(--zn-text-heading));display:block;margin-bottom:4px;margin-top:16px}input[type=checkbox],input[type=radio]{border-radius:5px}input[type=radio]{border-radius:50%}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:10px;background-color:rgb(var(--zn-border-color));height:8px;accent-color:rgb(var(--zn-primary));width:100%;max-width:768px}fieldset{border-color:rgba(var(--zn-primary),20%);border-width:2px;padding:0 16px 16px}select option{padding:4px}select>option:checked{background-color:rgba(var(--zn-primary),20%);border-radius:5px}fieldset>legend{padding:4px}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}input[type=button]:hover:not([disabled]),input[type=submit]:hover:not([disabled]),button[type=submit]:not(.button):hover:not([disabled]),button[type=button]:not(.button):hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){width:auto}div+button{margin-top:16px}input[type=file]::-webkit-file-upload-button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}input[type=file]::-webkit-file-upload-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=file]::-webkit-file-upload-button{margin-right:8px}input::-webkit-calendar-picker-indicator{cursor:pointer;padding:8px}input[list]::-webkit-calendar-picker-indicator{padding:8px 4px}.input--with-icon{position:relative}.input--with-icon zn-icon{padding:14px;position:absolute;top:50%;pointer-events:none;transform:translateY(-50%);left:8px;background-color:rgb(var(--zn-primary));color:rgb(var(--zn-text));border-radius:50%}.input--with-icon input{padding-left:40px}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;-webkit-text-fill-color:rgb(var(--zn-text));-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;box-shadow:inset 0 0 20px 20px rgba(35,35,35,0.1607843137)}select{height:43px}.no-border{border:none !important}table:not(.remarkd-table){border-collapse:separate !important;border-spacing:0;width:100%;max-width:100%;table-layout:auto;text-align:left;font-family:var(--zn-font-sans);font-size:var(--zn-text-table-content-font-size);font-weight:var(--zn-text-table-content-font-weight);line-height:var(--zn-text-table-content-line-height);color:var(--zn-text-table-content-color);text-transform:var(--zn-text-table-content-transform);letter-spacing:var(--zn-text-table-content-letter-spacing,normal)}table:not(.remarkd-table) thead{font-weight:var(--zn-font-weight-medium)}table:not(.remarkd-table) thead tr th{background-color:rgb(var(--zn-table-header-background-color))}table:not(.remarkd-table) tbody a{cursor:pointer;color:rgb(var(--zn-primary))}table:not(.remarkd-table) tbody tr td{border-top:1px solid rgb(var(--zn-border-color)) !important}table:not(.remarkd-table) tbody tr:first-of-type td{border-top:0 !important}table:not(.remarkd-table) th,table:not(.remarkd-table) td{padding:var(--zn-spacing-small) var(--zn-spacing-medium);min-width:90px;white-space:nowrap}table:not(.remarkd-table) td>span{white-space:normal}table:not(.remarkd-table) th{font-family:var(--zn-font-sans);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);color:var(--zn-text-button-label-color);text-transform:var(--zn-text-button-label-transform);letter-spacing:var(--zn-text-button-label-letter-spacing,normal);text-transform:capitalize;border-bottom:1px solid rgb(var(--zn-border-color))}.zn-table-fixed{table-layout:fixed}.opacity-100{opacity:1}.opacity-90{opacity:0.9}.opacity-80{opacity:0.8}.opacity-60{opacity:0.6}.opacity-50{opacity:0.5}.opacity-40{opacity:0.4}.opacity-10{opacity:0.1}.air-datepicker-cell.-year-.-other-decade-,.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.air-datepicker-cell.-year-.-other-decade-:hover,.air-datepicker-cell.-day-.-other-month-:hover{color:var(--adp-color-other-month-hover)}.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.-selected-.air-datepicker-cell.-year-.-other-decade-,.-selected-.air-datepicker-cell.-day-.-other-month-{color:#fff;background:var(--adp-background-color-selected-other-month)}.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-selected-.-focus-.air-datepicker-cell.-day-.-other-month-{background:var(--adp-background-color-selected-other-month-focused)}.-in-range-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range);color:var(--adp-color)}.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range-focused)}.air-datepicker-cell.-year-.-other-decade-:empty,.air-datepicker-cell.-day-.-other-month-:empty{background:none;border:none}.air-datepicker-cell{border-radius:var(--adp-cell-border-radius);box-sizing:border-box;cursor:pointer;display:flex;position:relative;align-items:center;justify-content:center;z-index:1}.air-datepicker-cell.-focus-{background:var(--adp-cell-background-color-hover)}.air-datepicker-cell.-current-{color:var(--adp-color-current-date)}.air-datepicker-cell.-current-.-focus-{color:var(--adp-color)}.air-datepicker-cell.-current-.-in-range-{color:var(--adp-color-current-date)}.air-datepicker-cell.-disabled-{cursor:default;color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-in-range-{color:var(--adp-color-disabled-in-range)}.air-datepicker-cell.-disabled-.-current-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-in-range-{background:var(--adp-cell-background-color-in-range);border-radius:0}.air-datepicker-cell.-in-range-:hover,.air-datepicker-cell.-in-range-.-focus-{background:var(--adp-cell-background-color-in-range-hover)}.air-datepicker-cell.-range-from-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius)}.air-datepicker-cell.-range-to-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0}.air-datepicker-cell.-range-to-.-range-from-{border-radius:var(--adp-cell-border-radius)}.air-datepicker-cell.-selected-{color:#fff;border:none;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-current-{color:#fff;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-focus-{background:var(--adp-cell-background-color-selected-hover)}.air-datepicker-body{transition:all var(--adp-transition-duration) var(--adp-transition-ease)}.air-datepicker-body.-hidden-{display:none}.air-datepicker-body--day-names{display:grid;grid-template-columns:repeat(7,var(--adp-day-cell-width));margin:8px 0 3px}.air-datepicker-body--day-name{color:var(--adp-day-name-color);display:flex;align-items:center;justify-content:center;flex:1;text-align:center;text-transform:uppercase;font-size:0.8em}.air-datepicker-body--day-name.-clickable-{cursor:pointer}.air-datepicker-body--day-name.-clickable-:hover{color:var(--adp-day-name-color-hover)}.air-datepicker-body--cells{display:grid}.air-datepicker-body--cells.-days-{grid-template-columns:repeat(7,var(--adp-day-cell-width));grid-auto-rows:var(--adp-day-cell-height)}.air-datepicker-body--cells.-months-{grid-template-columns:repeat(3,1fr);grid-auto-rows:var(--adp-month-cell-height)}.air-datepicker-body--cells.-years-{grid-template-columns:repeat(4,1fr);grid-auto-rows:var(--adp-year-cell-height)}.air-datepicker-nav{display:flex;justify-content:space-between;border-bottom:1px solid var(--adp-border-color-inner);min-height:var(--adp-nav-height);padding:var(--adp-padding);box-sizing:content-box}.-only-timepicker- .air-datepicker-nav{display:none}.air-datepicker-nav--title,.air-datepicker-nav--action{display:flex;cursor:pointer;align-items:center;justify-content:center}.air-datepicker-nav--action{width:var(--adp-nav-action-size);border-radius:var(--adp-border-radius);-webkit-user-select:none;-moz-user-select:none;user-select:none}.air-datepicker-nav--action:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--action:active{background:var(--adp-background-color-active)}.air-datepicker-nav--action.-disabled-{visibility:hidden}.air-datepicker-nav--action svg{width:32px;height:32px}.air-datepicker-nav--action path{fill:none;stroke:var(--adp-nav-arrow-color);stroke-width:2px}.air-datepicker-nav--title{border-radius:var(--adp-border-radius);padding:0 8px}.air-datepicker-nav--title i{font-style:normal;color:var(--adp-nav-color-secondary);margin-left:0.3em}.air-datepicker-nav--title:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--title:active{background:var(--adp-background-color-active)}.air-datepicker-nav--title.-disabled-{cursor:default;background:none}.air-datepicker-buttons{display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.air-datepicker-button{display:inline-flex;color:var(--adp-btn-color);border-radius:var(--adp-btn-border-radius);cursor:pointer;height:var(--adp-btn-height);border:none;background:rgba(255,255,255,0)}.air-datepicker-button:hover{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover)}.air-datepicker-button:focus{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover);outline:none}.air-datepicker-button:active{background:var(--adp-btn-background-color-active)}.air-datepicker-button span{outline:none;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.air-datepicker-time{display:grid;grid-template-columns:max-content 1fr;grid-column-gap:12px;align-items:center;position:relative;padding:0 var(--adp-time-padding-inner)}.-only-timepicker- .air-datepicker-time{border-top:none}.air-datepicker-time--current{display:flex;align-items:center;flex:1;font-size:14px;text-align:center}.air-datepicker-time--current-colon{margin:0 2px 3px;line-height:1}.air-datepicker-time--current-hours,.air-datepicker-time--current-minutes{line-height:1;font-size:19px;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif;position:relative;z-index:1}.air-datepicker-time--current-hours:after,.air-datepicker-time--current-minutes:after{content:"";background:var(--adp-background-color-hover);border-radius:var(--adp-border-radius);position:absolute;left:-2px;top:-3px;right:-2px;bottom:-2px;z-index:-1;opacity:0}.air-datepicker-time--current-hours.-focus-:after,.air-datepicker-time--current-minutes.-focus-:after{opacity:1}.air-datepicker-time--current-ampm{text-transform:uppercase;align-self:flex-end;color:var(--adp-time-day-period-color);margin-left:6px;font-size:11px;margin-bottom:1px}.air-datepicker-time--row{display:flex;align-items:center;font-size:11px;height:17px;background:linear-gradient(to right,var(--adp-time-track-color),var(--adp-time-track-color)) left 50%/100% var(--adp-time-track-height) no-repeat}.air-datepicker-time--row:first-child{margin-bottom:4px}.air-datepicker-time--row input[type=range]{background:none;cursor:pointer;flex:1;height:100%;width:100%;padding:0;margin:0;-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-ms-tooltip{display:none}.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-ms-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:focus{outline:none}.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-ms-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-webkit-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-moz-range-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-moz-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-ms-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-ms-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{margin-top:calc(var(--adp-time-thumb-size) / 2 * -1)}.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-moz-range-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-lower{background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-upper{background:rgba(0,0,0,0)}.air-datepicker{--adp-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--adp-font-size:14px;--adp-width:246px;--adp-z-index:100;--adp-padding:4px;--adp-grid-areas:"nav" "body" "timepicker" "buttons";--adp-transition-duration:.3s;--adp-transition-ease:ease-out;--adp-transition-offset:8px;--adp-background-color:#fff;--adp-background-color-hover:#f0f0f0;--adp-background-color-active:#eaeaea;--adp-background-color-in-range:rgba(92,196,239,.1);--adp-background-color-in-range-focused:rgba(92,196,239,.2);--adp-background-color-selected-other-month-focused:#8ad5f4;--adp-background-color-selected-other-month:#a2ddf6;--adp-color:#4a4a4a;--adp-color-secondary:#9c9c9c;--adp-accent-color:#4eb5e6;--adp-color-current-date:var(--adp-accent-color);--adp-color-other-month:#dedede;--adp-color-disabled:#aeaeae;--adp-color-disabled-in-range:#939393;--adp-color-other-month-hover:#c5c5c5;--adp-border-color:#dbdbdb;--adp-border-color-inner:#efefef;--adp-border-radius:4px;--adp-border-color-inline:#d7d7d7;--adp-nav-height:32px;--adp-nav-arrow-color:var(--adp-color-secondary);--adp-nav-action-size:32px;--adp-nav-color-secondary:var(--adp-color-secondary);--adp-day-name-color:#ff9a19;--adp-day-name-color-hover:#8ad5f4;--adp-day-cell-width:1fr;--adp-day-cell-height:32px;--adp-month-cell-height:42px;--adp-year-cell-height:56px;--adp-pointer-size:10px;--adp-poiner-border-radius:2px;--adp-pointer-offset:14px;--adp-cell-border-radius:4px;--adp-cell-background-color-hover:var(--adp-background-color-hover);--adp-cell-background-color-selected:#5cc4ef;--adp-cell-background-color-selected-hover:#45bced;--adp-cell-background-color-in-range:rgba(92,196,239,0.1);--adp-cell-background-color-in-range-hover:rgba(92,196,239,0.2);--adp-cell-border-color-in-range:var(--adp-cell-background-color-selected);--adp-btn-height:32px;--adp-btn-color:var(--adp-accent-color);--adp-btn-color-hover:var(--adp-color);--adp-btn-border-radius:var(--adp-border-radius);--adp-btn-background-color-hover:var(--adp-background-color-hover);--adp-btn-background-color-active:var(--adp-background-color-active);--adp-time-track-height:1px;--adp-time-track-color:#dedede;--adp-time-track-color-hover:#b1b1b1;--adp-time-thumb-size:12px;--adp-time-padding-inner:10px;--adp-time-day-period-color:var(--adp-color-secondary);--adp-mobile-font-size:16px;--adp-mobile-nav-height:40px;--adp-mobile-width:320px;--adp-mobile-day-cell-height:38px;--adp-mobile-month-cell-height:48px;--adp-mobile-year-cell-height:64px}.air-datepicker-overlay{--adp-overlay-background-color:rgba(0,0,0,.3);--adp-overlay-transition-duration:.3s;--adp-overlay-transition-ease:ease-out;--adp-overlay-z-index:99}.air-datepicker{background:var(--adp-background-color);border:1px solid var(--adp-border-color);box-shadow:0 4px 12px rgba(0,0,0,0.15);border-radius:var(--adp-border-radius);box-sizing:content-box;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,max-content);grid-template-areas:var(--adp-grid-areas);font-family:var(--adp-font-family),sans-serif;font-size:var(--adp-font-size);color:var(--adp-color);width:var(--adp-width);position:absolute;transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease);z-index:var(--adp-z-index)}.air-datepicker:not(.-custom-position-){opacity:0}.air-datepicker.-from-top-{transform:translateY(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-from-right-{transform:translateX(var(--adp-transition-offset))}.air-datepicker.-from-bottom-{transform:translateY(var(--adp-transition-offset))}.air-datepicker.-from-left-{transform:translateX(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-active-:not(.-custom-position-){transform:translate(0,0);opacity:1}.air-datepicker.-active-.-custom-position-{transition:none}.air-datepicker.-inline-{border-color:var(--adp-border-color-inline);box-shadow:none;position:static;left:auto;right:auto;opacity:1;transform:none}.air-datepicker.-inline- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-{--adp-font-size:var(--adp-mobile-font-size);--adp-day-cell-height:var(--adp-mobile-day-cell-height);--adp-month-cell-height:var(--adp-mobile-month-cell-height);--adp-year-cell-height:var(--adp-mobile-year-cell-height);--adp-nav-height:var(--adp-mobile-nav-height);--adp-nav-action-size:var(--adp-mobile-nav-height);position:fixed;width:var(--adp-mobile-width);border:none}.air-datepicker.-is-mobile- *{-webkit-tap-highlight-color:rgba(0,0,0,0)}.air-datepicker.-is-mobile- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-:not(.-custom-position-){transform:translate(-50%,calc(-50% + var(--adp-transition-offset)))}.air-datepicker.-is-mobile-.-active-:not(.-custom-position-){transform:translate(-50%,-50%)}.air-datepicker.-custom-position-{transition:none}.air-datepicker-global-container{position:absolute;left:0;top:0}.air-datepicker--pointer{--pointer-half-size:calc(var(--adp-pointer-size) / 2);position:absolute;width:var(--adp-pointer-size);height:var(--adp-pointer-size);z-index:-1}.air-datepicker--pointer:after{content:"";position:absolute;background:#fff;border-top:1px solid var(--adp-border-color-inline);border-right:1px solid var(--adp-border-color-inline);border-top-right-radius:var(--adp-poiner-border-radius);width:var(--adp-pointer-size);height:var(--adp-pointer-size);box-sizing:border-box}.-top-left- .air-datepicker--pointer,.-top-center- .air-datepicker--pointer,.-top-right- .air-datepicker--pointer,[data-popper-placement^=top] .air-datepicker--pointer{top:calc(100% - var(--pointer-half-size) + 1px)}.-top-left- .air-datepicker--pointer:after,.-top-center- .air-datepicker--pointer:after,.-top-right- .air-datepicker--pointer:after,[data-popper-placement^=top] .air-datepicker--pointer:after{transform:rotate(135deg)}.-right-top- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer,[data-popper-placement^=right] .air-datepicker--pointer{right:calc(100% - var(--pointer-half-size) + 1px)}.-right-top- .air-datepicker--pointer:after,.-right-center- .air-datepicker--pointer:after,.-right-bottom- .air-datepicker--pointer:after,[data-popper-placement^=right] .air-datepicker--pointer:after{transform:rotate(225deg)}.-bottom-left- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer,[data-popper-placement^=bottom] .air-datepicker--pointer{bottom:calc(100% - var(--pointer-half-size) + 1px)}.-bottom-left- .air-datepicker--pointer:after,.-bottom-center- .air-datepicker--pointer:after,.-bottom-right- .air-datepicker--pointer:after,[data-popper-placement^=bottom] .air-datepicker--pointer:after{transform:rotate(315deg)}.-left-top- .air-datepicker--pointer,.-left-center- .air-datepicker--pointer,.-left-bottom- .air-datepicker--pointer,[data-popper-placement^=left] .air-datepicker--pointer{left:calc(100% - var(--pointer-half-size) + 1px)}.-left-top- .air-datepicker--pointer:after,.-left-center- .air-datepicker--pointer:after,.-left-bottom- .air-datepicker--pointer:after,[data-popper-placement^=left] .air-datepicker--pointer:after{transform:rotate(45deg)}.-top-left- .air-datepicker--pointer,.-bottom-left- .air-datepicker--pointer{left:var(--adp-pointer-offset)}.-top-right- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer{right:var(--adp-pointer-offset)}.-top-center- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer{left:calc(50% - var(--adp-pointer-size) / 2)}.-left-top- .air-datepicker--pointer,.-right-top- .air-datepicker--pointer{top:var(--adp-pointer-offset)}.-left-bottom- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer{bottom:var(--adp-pointer-offset)}.-left-center- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer{top:calc(50% - var(--adp-pointer-size) / 2)}.air-datepicker--navigation{grid-area:nav}.air-datepicker--content{box-sizing:content-box;padding:var(--adp-padding);grid-area:body}.-only-timepicker- .air-datepicker--content{display:none}.air-datepicker--time{grid-area:timepicker}.air-datepicker--buttons{grid-area:buttons}.air-datepicker--buttons,.air-datepicker--time{padding:var(--adp-padding);border-top:1px solid var(--adp-border-color-inner)}.air-datepicker-overlay{position:fixed;background:var(--adp-overlay-background-color);left:0;top:0;width:0;height:0;opacity:0;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);z-index:var(--adp-overlay-z-index)}.air-datepicker-overlay.-active-{opacity:1;width:100%;height:100%;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s}.air-datepicker{--adp-color:rgba(var(--zn-text),var(--zn-text-opacity));--adp-nav-color-secondary:rgb(var(--zn-purple-text));--adp-day-name-color:var(--zn-color-primary-600);--adp-day-name-color-hover:var(--zn-color-primary-700);--adp-cell-background-color-selected:var(--zn-color-primary-600);--adp-cell-background-color-selected-hover:var(--zn-color-primary-700);--adp-color-current-date:var(--zn-color-primary-600);--adp-background-color:var(--zn-input-background-color);--adp-background-color-hover:var(--zn-input-background-color-hover);--adp-background-color-active:var(--zn-input-background-color-hover);--adp-background-color-selected-other-month:var(--zn-color-primary-300);--adp-background-color-in-range:var(--zn-color-primary-100);--adp-border-color:rgb(var(--zn-border-color));--adp-border-color-inline:rgb(var(--zn-border-color));--adp-border-color-inner:rgb(var(--zn-border-color));--adp-cell-background-color-in-range:var(--zn-color-primary-100);--adp-cell-background-color-in-range-hover:var(--zn-color-primary-200)}.air-datepicker--pointer:after{background-color:var(--zn-input-background-color)}.air-datepicker-global-container{z-index:1000000}.air-datepicker-button{border:none;padding:var(--zn-spacing-2x-small) var(--zn-spacing-x-small);border-radius:var(--adp-border-radius);font-family:var(--adp-font-family),sans-serif;font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);cursor:pointer;color:rgba(var(--zn-text),var(--zn-text-opacity))}.air-datepicker-button:hover{background-color:var(--zn-input-background-color-hover) !important}.zn-cloak:has(:not(:defined)){animation:2s step-end zn-cloak}@keyframes zn-cloak{from{opacity:0}to{opacity:1}}`;var D0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}slot[name=filter-top]::slotted(*){margin-bottom:var(--zn-spacing-small)}.table__scroll{overflow-x:auto}.table__scroll ::-webkit-scrollbar{width:5px;height:5px}.table__scroll{}.table__scroll ::-webkit-scrollbar-track{background:transparent}.table__scroll{}.table__scroll ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.table__scroll{}.table__scroll ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}table{border-collapse:separate !important;border-spacing:0;width:100%;max-width:100%;table-layout:auto;text-align:left;font-family:var(--zn-font-sans);font-size:var(--zn-text-table-content-font-size);font-weight:var(--zn-text-table-content-font-weight);line-height:var(--zn-text-table-content-line-height);color:var(--zn-text-table-content-color);text-transform:var(--zn-text-table-content-transform);letter-spacing:var(--zn-text-table-content-letter-spacing,normal)}table tbody tr.table__row--data td{height:48px;padding-block:0;overflow:hidden}table tbody tr.table__row--details td{background-color:rgb(var(--zn-shadow))}table thead{color:rgb(var(--zn-text-heading));font-weight:var(--zn-font-weight-medium)}table thead tr th{background-color:rgb(var(--zn-table-header-background-color));border-bottom:1px solid rgb(var(--zn-border-color)) !important}table.with-hover tbody tr.table__row--data:not(.table__row--selected):hover td{background-color:rgba(var(--zn-primary),0.05) !important;cursor:pointer}table.with-hover tbody tr.table__row--details:hover{background-color:inherit;cursor:default}table tbody tr td{border-top:1px solid rgb(var(--zn-border-color)) !important}table tbody tr:first-of-type td{border-top:0 !important}table th,table td{padding:var(--zn-spacing-small) var(--zn-spacing-medium);min-width:90px;white-space:nowrap}table th span,table td span{white-space:normal}table th{font-family:var(--zn-font-sans);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);color:var(--zn-text-button-label-color);text-transform:var(--zn-text-button-label-transform);letter-spacing:var(--zn-text-button-label-letter-spacing,normal);border-bottom:1px solid rgb(var(--zn-border-color))}.zn-table-fixed{table-layout:fixed}.table tr th,.table tr td{min-width:50px}.table tr th>div,.table tr td>div{display:flex;flex-direction:row;align-items:center;width:100%;gap:var(--zn-spacing-x-small)}.table tr th>div>code,.table tr td>div>code{font-size:10px;display:block;max-width:420px;float:right;max-height:100px;white-space:pre;overflow-x:scroll}.table tr th:first-of-type>div:has(zn-checkbox),.table tr td:first-of-type>div:has(zn-checkbox){justify-content:center}.table tr th:first-of-type>div:has(zn-checkbox) zn-checkbox,.table tr td:first-of-type>div:has(zn-checkbox) zn-checkbox{margin:0}.table__head{text-transform:capitalize}.table__head__sort{margin:0;padding:0;opacity:1;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.table__head--wide{width:100%}.table__head--left div{justify-content:flex-start}.table__head--right div{justify-content:flex-end}.table__head--center div{justify-content:center}.table__head--hidden>div{visibility:hidden}.table__head--expander{width:28px;min-width:28px;padding-right:0}.table__cell--wide{width:100%}.table__cell--left div{justify-content:flex-start}.table__cell--right div{justify-content:flex-end}.table__cell--center div{justify-content:center}.table__cell--actions{width:25px;min-width:25px;text-align:right}.table__cell .caption{flex-grow:1;flex-direction:column}.table__cell .caption span{display:block}.table__cell .caption .title:empty,.table__cell .caption .summary:empty{display:none}.table__cell .caption .title{font-weight:var(--zn-font-weight-semibold);color:rgb(var(--zn-text-heading));font-size:var(--zn-text-table-content-font-size);text-decoration:none}.table__cell .caption a.title{color:rgb(var(--zn-primary))}.table__cell .caption .summary{font-size:90%;text-wrap:initial;color:rgb(var(--zn-text))}.table__cell .caption--icon{display:flex;flex-direction:row;gap:var(--zn-spacing-small)}.table__cell--expander{width:28px;min-width:28px}.table__header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--zn-spacing-x-small) var(--zn-spacing-medium);gap:var(--zn-spacing-small)}.table__header__actions,.table__header__query-builder{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-small)}.table__header__toggle--active::part(base){background-color:rgb(var(--zn-color-tab))}.table__header__caption{font-family:var(--zn-font-sans);font-size:var(--zn-text-h1-font-size);font-weight:var(--zn-text-h1-font-weight);line-height:var(--zn-text-h1-line-height);color:var(--zn-text-h1-color);text-transform:var(--zn-text-h1-transform);letter-spacing:var(--zn-text-h1-letter-spacing,normal);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.table__header__right{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-x-small);margin-left:auto}.table__filters{padding:var(--zn-spacing-x-small) var(--zn-spacing-medium)}.table__filters[hidden]{display:none}.table__footer{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-medium)}.table__footer zn-button-group::part(base){flex-wrap:nowrap}.table__footer--panel{padding:0}.table__footer__right,.table__footer__left{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-large)}.table__footer__rows-per-page{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-x-small)}.table__footer__rows-per-page p{margin:0;color:rgb(var(--zn-text));opacity:0.7;white-space:nowrap}.table__footer__rows-per-page zn-select[name=rowPerPage]{--zn-input-background-color:rgb(var(--zn-panel));width:66px}.table__footer__rows-per-page zn-select[name=rowPerPage]::part(combobox){min-height:36px;padding-inline:var(--zn-spacing-x-small)}.table__footer__rows-per-page zn-select[name=rowPerPage]::part(expand-icon){margin-inline-start:0}.table__footer__pagination-page::part(base){height:36px;min-height:36px;max-height:36px;min-width:32px;padding:0 var(--zn-spacing-2x-small);justify-content:center;border-color:rgb(var(--zn-border-color));color:rgb(var(--zn-text));font-weight:var(--zn-font-weight-normal);white-space:nowrap}.table__footer__pagination-page--active::part(base){background-color:var(--zn-color-neutral-300);border-color:var(--zn-color-neutral-300)}.table__details{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:var(--zn-spacing-x-large) !important}.table__details__item{display:flex;flex-direction:column;gap:var(--zn-spacing-2x-small,4px)}.table__details__label{font-size:12px;color:rgb(var(--zn-text-subtle,var(--zn-text)));opacity:0.8}.table__details__value{font-size:var(--zn-text-table-content-font-size)}zn-menu{--zn-menu-min-width:var(--zn-size-spanel)}zn-panel{--zn-panel-header-padding:var(--zn-spacing-x-small) var(--zn-spacing-x-small) var(--zn-spacing-x-small) var(--zn-spacing-medium);--zn-panel-footer-padding:var(--zn-spacing-x-small) var(--zn-spacing-medium)}zn-panel::part(footer){border-top:1px solid rgb(var(--zn-border-color))}zn-menu::part(base){background-color:rgb(var(--zn-panel))}.reduced-opacity .table tbody{opacity:0.5}.hidden{display:none}.dropdown__query-builder{display:block;position:relative;padding:var(--zn-spacing-large);border-width:1px;border-radius:5px;width:-moz-fit-content;width:fit-content;min-width:var(--zn-spacing-small-panel);max-height:650px;overflow:auto;overscroll-behavior:none;filter:drop-shadow(0 5px 4px rgba(0,0,0,0.04)) drop-shadow(0 4px 3px rgba(0,0,0,0.1));background-color:rgb(var(--zn-panel,255,255,255))}table tbody tr.table__row--selected{background-color:var(--zn-color-purple-100)}table tbody tr.table__row--selected:hover{background-color:var(--zn-color-purple-200) !important}table tbody tr.table__row--selected td{border-top:1px solid var(--zn-color-purple-600) !important;border-bottom:1px solid var(--zn-color-purple-600) !important}table tbody tr.table__row--selected td:first-of-type{border-left:1px solid var(--zn-color-purple-600)}table tbody tr.table__row--selected td:last-of-type{border-right:1px solid var(--zn-color-purple-600)}table tbody tr.table__row--selected:last-of-type td:first-of-type{border-bottom-left-radius:var(--zn-border-radius)}table tbody tr.table__row--selected:last-of-type td:last-of-type{border-bottom-right-radius:var(--zn-border-radius)}table tbody tr.table__row--selected+tr.table__row--selected td{border-top:0 !important}table tbody tr.table__row--selected+tr.table__row--selected td:first-of-type{border-top-left-radius:0}table tbody tr.table__row--selected+tr.table__row--selected td:last-of-type{border-top-right-radius:0}table tbody tr.table__row--selected:has(+tr.table__row--selected) td{border-bottom:0 !important}table tbody tr.table__row--selected:first-of-type td{border-top:0 !important}table tbody tr.table__row--selected:has(+tr.table__row--selected) td:first-of-type{border-bottom-left-radius:0}table tbody tr.table__row--selected:has(+tr.table__row--selected) td:last-of-type{border-bottom-right-radius:0}table:has(tbody tr:first-of-type.table__row--selected) thead tr th{border-bottom-color:var(--zn-color-purple-600) !important}tbody tr.table__row--group th{padding:var(--zn-spacing-small) var(--zn-spacing-medium);text-align:left;white-space:nowrap;background-color:rgb(var(--zn-panel));color:rgba(var(--zn-text-panel-title),100%);font-weight:var(--zn-font-weight-semibold);font-size:var(--zn-font-size-large)}tbody tr.table__row--group:not(:first-of-type) th{border-top:1px solid rgb(var(--zn-border-color))}tbody tr.table__row--error td{padding-block:var(--zn-spacing-x-small)}.table__error{padding-bottom:var(--zn-spacing-small)}.table__collum--datetime{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.table__cell--subtext{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);letter-spacing:var(--zn-text-subheading-small-letter-spacing,normal)}`;var R0=1,om=10,L4=3,q4=25;var I4={dateTime:(o=>{let i=o.text||"";return u`
|
|
1194
1195
|
<div class="table__collum--datetime" title="${N(o.title)}">
|
|
1195
1196
|
<span><strong>${i.slice(0,10)}</strong></span>
|
|
1196
1197
|
<zn-style size="s" muted>${i.slice(11)}</zn-style>
|
|
1197
|
-
</div>`})},fe=class fe extends k{constructor(){super(...arguments);this.data=[];this.sortDirection="asc";this.localSort=!1;this.filter="";this.search="";this.key="id";this.headers={};this.displayTemplates={};this.hiddenHeaders="{}";this.hiddenColumns="{}";this.unsortableHeaders="{}";this.unsortable=!1;this.hideColumnSelect=!1;this.hideRefresh=!1;this.standalone=!1;this.emptyStateIcon="data_alert";this.filters=[];this.method="POST";this.noInitialLoad=!1;this.sharable=!1;this.groupBy="";this.groups="";this.itemsPerPage=om;this._initialLoad=!0;this._hasLoadedData=!1;this._lastLoadHadRows=!1;this._lastTableContent=u``;this._sharableInitialised=!1;this._sharableDefaults=null;this._urlManagedKeys=new Set(["search","filter","sortColumn","sortDirection","page","perPage"]);this.resizeObserver=new
|
|
1198
|
+
</div>`})},fe=class fe extends k{constructor(){super(...arguments);this.data=[];this.sortDirection="asc";this.localSort=!1;this.filter="";this.search="";this.key="id";this.headers={};this.displayTemplates={};this.hiddenHeaders="{}";this.hiddenColumns="{}";this.unsortableHeaders="{}";this.unsortable=!1;this.hideColumnSelect=!1;this.hideRefresh=!1;this.standalone=!1;this.emptyStateIcon="data_alert";this.filters=[];this.method="POST";this.noInitialLoad=!1;this.sharable=!1;this.groupBy="";this.groups="";this.itemsPerPage=om;this._initialLoad=!0;this._hasLoadedData=!1;this._lastLoadHadRows=!1;this._lastTableContent=u``;this._sharableInitialised=!1;this._sharableDefaults=null;this._urlManagedKeys=new Set(["search","filter","sortColumn","sortDirection","page","perPage"]);this.resizeObserver=new ut(this,{target:null,callback:()=>{this.tableContainer&&this.tableContainer.scrollIntoView({behavior:"smooth",block:"nearest"})}});this.page=R0;this._totalRows=0;this._rows=[];this._suggestionsKey="";this.numberOfRowsSelected=0;this.selectedRows=[];this.hasSlotController=new Y(this,"[default]","search".valueOf(),"delete-action".valueOf(),"modify-action".valueOf(),"create-action".valueOf(),"filter".valueOf(),"sort".valueOf(),"inputs".valueOf(),"empty-state","no-results");this._dataTask=new Vl(this,{task:async([t,r],{signal:n})=>{if(this._updateSharableUrl(),t===void 0||this.noInitialLoad&&this._initialLoad)return{rows:[],page:1,perPage:this.itemsPerPage,total:0};this.groupBy&&(this.itemsPerPage=1e3);let a={page:this.page,perPage:this.itemsPerPage,sortColumn:this.sortColumn,sortDirection:this.sortDirection,filter:this.filter,search:this.search},s=this.hasSlotController.getSlots("inputs".valueOf()),l={};s&&(s.forEach(m=>{if(["zn-input","zn-select","zn-query-builder","zn-multiselect","zn-params-select","zn-datepicker","input","select","textarea"].includes(m.tagName.toLowerCase())){let b=m.value||m.getAttribute("value"),g=m.name||m.getAttribute("name");g&&(l[g]=b)}}),Object.assign(a,l));let p={};if(r&&typeof r=="object")for(let[m,f]of Object.entries(r))f!=null&&f!==""&&(p[m]=f);(this.search||Object.keys(p).length>0)&&(p.q=this.search),a.searchFields=Object.keys(p).length>0?p:null;let h=await fetch(t,{method:this.method,headers:{"x-kx-fetch-style":"zn-data-table"},signal:n,credentials:"same-origin",body:this.method==="POST"?JSON.stringify(a):void 0});if(!h.ok)throw new Error(h.statusText);return h.json()},args:()=>[this.dataUri,this.requestParams]});this.rowHasActions=!1;this._expandedRows=new Set;this._hiddenCells=new Map;this._deselectedColumns=new Set;this._filtersOpen=!1;this._columnDefaultsApplied=!1;this._formatTemplates=I4;this.requestParams={};this.filterClearListener=t=>{t.target instanceof Wd&&(this._filtersOpen=!1)};this.filterChangeListener=t=>{t.target instanceof Wd&&(this.filter=t.target.value,this._dataTask.run().then(r=>r))};this.searchChangeListener=t=>{let r=t.target;if(r&&r.tagName==="ZN-DATA-TABLE-SEARCH"){if(this.search=r.value,t.detail){let{formData:n,searchUri:a}=t.detail;if(n&&typeof n=="object"&&(this.requestParams={...this.requestParams,...n}),a){let s=this.dataUri;this.dataUri=a,this._dataTask.run().then(()=>{this.dataUri=s});return}}this._dataTask.run().then(n=>n)}};this.toggleFilters=()=>{this._filtersOpen=!this._filtersOpen};this.handleColumnSelect=t=>{let r=Object.values(this.headers).find(n=>n.key===t.detail.value);r&&this.toggleColumn(r)}}refresh(){this._initialLoad=!1,this._dataTask.run().then(t=>t)}visibleHeaders(){return this.selectableHeaders().filter(t=>this.isColumnVisible(t))}selectableHeaders(){return Object.values(this.headers).filter(t=>t.hideHeader||t.hideColumn||t.secondary?!1:!Object.values(this.hiddenColumns).includes(t.key))}isColumnVisible(t){return t.required===!0||!this._deselectedColumns.has(t.key)}applyColumnDefaults(){if(this._columnDefaultsApplied)return;let t=Object.values(this.headers);if(t.length===0)return;this._columnDefaultsApplied=!0;let r=new Set(this._deselectedColumns);t.forEach(n=>{n.default===!1&&n.required!==!0&&r.add(n.key)}),this._deselectedColumns=r}toggleColumn(t){if(t.required===!0)return;let r=new Set(this._deselectedColumns);if(!r.delete(t.key)){if(this.visibleHeaders().length<=1)return;r.add(t.key)}this._deselectedColumns=r}_captureSharableDefaults(){this._sharableDefaults||(this._sharableDefaults={search:this.search||"",filter:this.filter||"",sortColumn:this.sortColumn||"",sortDirection:this.sortDirection||"",page:String(this.page),perPage:String(this.itemsPerPage)})}_readSharableState(){if(!this.sharable||this._sharableInitialised||typeof window>"u")return;this._sharableInitialised=!0;let t=new URLSearchParams(window.location.search),r=!1;if(t.has("search")&&(this.search=t.get("search"),r=!0),t.has("filter")&&(this.filter=t.get("filter"),r=!0),t.has("sortColumn")&&(this.sortColumn=t.get("sortColumn"),r=!0),t.has("sortDirection")&&(this.sortDirection=t.get("sortDirection"),r=!0),t.has("page")){let s=parseInt(t.get("page"),10);!isNaN(s)&&s>0&&(this.page=s),r=!0}if(t.has("perPage")){let s=parseInt(t.get("perPage"),10);!isNaN(s)&&s>0&&(this.itemsPerPage=s),r=!0}let n=new Set(fe._sharableKnownKeys),a={};t.forEach((s,l)=>{n.has(l)||!this._hasFieldNamed(l)||(r=!0,this._urlManagedKeys.add(l),a[l]=s)}),Object.keys(a).length>0&&(this.requestParams={...this.requestParams,...a}),r&&this.noInitialLoad&&(this._initialLoad=!1)}_populateSharableFields(){if(this.search){let r=this.querySelector("zn-data-table-search");r&&(r.value=this.search)}if(this.filter){let r=this.querySelector("zn-data-table-filter");r&&(r.value=this.filter)}let t=new Set(fe._sharableKnownKeys);Object.entries(this.requestParams).forEach(([r,n])=>{t.has(r)||r==="searchUri"||n===void 0||n===null||this._setSharableFieldValue(r,String(n))})}_hasFieldNamed(t){try{let r=`[name="${window.CSS&&CSS.escape?CSS.escape(t):t}"]`;return this.querySelector(r)!==null}catch{return!1}}_setSharableFieldValue(t,r){let n;try{n=`[name="${window.CSS&&CSS.escape?CSS.escape(t):t}"]`}catch{n=`[name="${t}"]`}this.querySelectorAll(n).forEach(a=>{a.value=r,a.tagName.includes("-")&&a.setAttribute("value",r)})}_updateSharableUrl(){if(!this.sharable||!window?.history)return;let t=this._sharableDefaults??{},r=new URLSearchParams(window.location.search);this._urlManagedKeys.forEach(p=>r.delete(p));let n=(p,h)=>{this._urlManagedKeys.add(p);let m=h==null?"":String(h);m===""||m===(t[p]||"")||r.set(p,m)},a=new Set(fe._sharableKnownKeys);Object.entries(this.requestParams).forEach(([p,h])=>{a.has(p)||p==="searchUri"||n(p,h)}),n("search",this.search),n("filter",this.filter),n("sortColumn",this.sortColumn),n("sortDirection",this.sortDirection),n("page",this.page),n("perPage",this.itemsPerPage);let s=r.toString(),l=`${window.location.pathname}${s?`?${s}`:""}${window.location.hash}`;window.history.replaceState(window.history.state,"",l)}render(){this.applyColumnDefaults();let t=u``,r=!1;if(this.noInitialLoad&&this._initialLoad)t=u`
|
|
1198
1199
|
<slot name="empty-state"></slot>`,r=!0;else if(this.dataUri)t=this._dataTask.render({pending:()=>this._initialLoad||!this._hasLoadedData||!this._lastLoadHadRows?u`
|
|
1199
1200
|
<div>${this.loadingTable()}</div>`:u`
|
|
1200
1201
|
<div class="reduced-opacity">${this._lastTableContent}</div>`,complete:h=>(this._initialLoad=!1,this._hasLoadedData=!0,this._lastLoadHadRows=(h?.rows?.length??0)>0,r=!this._lastLoadHadRows,this._lastTableContent=u`
|
|
@@ -1662,7 +1663,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
1662
1663
|
@zn-input="${this.handleInputValueChange}"></zn-input>`):B}
|
|
1663
1664
|
</div>
|
|
1664
1665
|
</zn-dropdown>
|
|
1665
|
-
`}};Gt.styles=z(P0),Gt.dependencies={"zn-button":Me,"zn-dropdown":ur,"zn-input":
|
|
1666
|
+
`}};Gt.styles=z(P0),Gt.dependencies={"zn-button":Me,"zn-dropdown":ur,"zn-input":st,"zn-option":lt,"zn-select":Be},c([F(".defined-label__input")],Gt.prototype,"input",2),c([F(".defined-label__dropdown")],Gt.prototype,"dropdown",2),c([d()],Gt.prototype,"value",2),c([d()],Gt.prototype,"inputValue",2),c([d({attribute:"input-size",reflect:!0})],Gt.prototype,"inputSize",2),c([d()],Gt.prototype,"name",2),c([d()],Gt.prototype,"title",2),c([d({type:Boolean})],Gt.prototype,"disabled",2),c([d({attribute:"allow-custom",type:Boolean})],Gt.prototype,"allowCustom",2),c([d({type:Array,attribute:"predefined-labels"})],Gt.prototype,"predefinedLabels",2),c([K("value",{waitUntilFirstUpdate:!0})],Gt.prototype,"handleValueChange",1);var N4=Gt;Gt.define("zn-defined-label");var H0=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.note{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;flex-wrap:nowrap;padding:var(--zn-spacing-x-small) var(--zn-spacing-small);gap:var(--zn-spacing-3x-small);border-left:3px solid transparent}.note__header{display:flex;justify-content:space-between}.note__header__caption{font-weight:var(--zn-font-weight-semibold);font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text-heading))}.note__header__date{font-size:var(--zn-font-size-small)}.note__header__end{display:flex;gap:var(--zn-spacing-small)}.note__body-container{position:relative;max-width:var(--zn-container-md)}.note__body{display:block}.note__toggle{margin-top:var(--zn-spacing-2x-small)}.note__toggle__btn{background:none;border:none;color:var(--zn-color-primary-500,currentColor);font:inherit;cursor:pointer;padding:0}.note__body--clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--note-collapse-lines,0);overflow:hidden;text-overflow:ellipsis}.note--red .note__header__caption{color:hsl(from var(--zn-color-red-600) h s 40%)}.note--red{border-left:3px solid var(--zn-color-red-600);background-color:hsla(from var(--zn-color-red-600) h s l/0.02)}.note--blue .note__header__caption{color:hsl(from var(--zn-color-blue-500) h s 40%)}.note--blue{border-left:3px solid var(--zn-color-blue-500);background-color:hsla(from var(--zn-color-blue-500) h s l/0.02)}.note--orange .note__header__caption{color:hsl(from var(--zn-color-orange-500) h s 40%)}.note--orange{border-left:3px solid var(--zn-color-orange-500);background-color:hsla(from var(--zn-color-orange-500) h s l/0.02)}.note--yellow .note__header__caption{color:hsl(from var(--zn-color-yellow-400) h s 40%)}.note--yellow{border-left:3px solid var(--zn-color-yellow-400);background-color:hsla(from var(--zn-color-yellow-400) h s l/0.02)}.note--indigo .note__header__caption{color:hsl(from var(--zn-color-indigo-400) h s 40%)}.note--indigo{border-left:3px solid var(--zn-color-indigo-400);background-color:hsla(from var(--zn-color-indigo-400) h s l/0.02)}.note--violet .note__header__caption{color:hsl(from var(--zn-color-violet-600) h s 40%)}.note--violet{border-left:3px solid var(--zn-color-violet-600);background-color:hsla(from var(--zn-color-violet-600) h s l/0.02)}.note--green .note__header__caption{color:hsl(from var(--zn-color-green-500) h s 40%)}.note--green{border-left:3px solid var(--zn-color-green-500);background-color:hsla(from var(--zn-color-green-500) h s l/0.02)}.note--pink .note__header__caption{color:hsl(from var(--zn-color-pink-400) h s 40%)}.note--pink{border-left:3px solid var(--zn-color-pink-400);background-color:hsla(from var(--zn-color-pink-400) h s l/0.02)}.note--gray .note__header__caption{color:hsl(from var(--zn-color-gray-500) h s 40%)}.note--gray{border-left:3px solid var(--zn-color-gray-500);background-color:hsla(from var(--zn-color-gray-500) h s l/0.02)}.note__footer{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--zn-spacing-x-small)}`;var qi=class extends k{constructor(){super(...arguments);this.caption="";this.date="";this.body="";this.hasSlotController=new Y(this,"caption","date","[default]","snippet","footer");this.expanded=!1}_toggleExpand(){this.expanded=!this.expanded}render(){let t=this.hasSlotController.test("snippet")&&this.hasSlotController.test("[default]");return u`
|
|
1666
1667
|
<div class="${M({note:!0,"note--red":this.color==="red","note--blue":this.color==="blue","note--orange":this.color==="orange","note--yellow":this.color==="yellow","note--indigo":this.color==="indigo","note--violet":this.color==="violet","note--green":this.color==="green","note--pink":this.color==="pink","note--gray":this.color==="gray"})}">
|
|
1667
1668
|
<div class="note__header">
|
|
1668
1669
|
<slot name="caption" class="note__header__caption">${this.caption}</slot>
|
|
@@ -1738,7 +1739,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
1738
1739
|
<p part="caption" class="tile__caption">${this.caption}</p>
|
|
1739
1740
|
<slot part="description" class="tile__description">${this.description}</slot>
|
|
1740
1741
|
</div>
|
|
1741
|
-
</div>`}};Cn.styles=z(V0),c([d({attribute:"caption",reflect:!0})],Cn.prototype,"caption",2),c([d({attribute:"description",reflect:!0})],Cn.prototype,"description",2),c([d({attribute:"icon",reflect:!0})],Cn.prototype,"icon",2);var B4=Cn;Cn.define("zn-tile-property");var U0=_`:host{--channel-tile-color:var(--zn-color-border);flex:1 1 280px;width:280px;min-width:180px;max-width:320px;display:block}.channel-tile{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;cursor:pointer;border-right:1px solid rgb(var(--zn-border-color));background-color:rgb(var(--zn-body));transition:background-color 0.15s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none}.channel-tile:focus-visible{outline:2px solid rgb(var(--zn-primary));outline-offset:-2px}:host(.active) .channel-tile{background-color:rgb(var(--zn-panel));cursor:default}:host(:not(.active)) .channel-tile--active:hover{background-color:rgb(var(--zn-panel))}.channel-tile--incoming{background-color:rgba(var(--zn-color-success),0.15)}.channel-tile--incoming:hover{background-color:rgba(var(--zn-color-success),0.22)}.channel-tile--disabled .channel-tile__body{opacity:0.6}.channel-tile__header{display:flex;align-items:center;flex-shrink:0;height:24px;padding:0 var(--zn-spacing-small);background-color:rgb(var(--zn-color-tab))}.channel-tile__header h3{margin:0;font-size:var(--zn-text-h3-font-size);line-height:var(--zn-text-h3-line-height);font-weight:var(--zn-text-h3-font-weight);color:rgb(var(--zn-text-heading));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__overlay{position:absolute;top:24px;left:0;bottom:0;width:0;background-color:rgb(154,232,162);transition:width 0.2s linear;pointer-events:none;z-index:0}.channel-tile__body{position:relative;flex:1;display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);width:100%;overflow:hidden;z-index:1}.channel-tile__content{display:flex;flex-direction:column;flex-grow:1;gap:4px;overflow:hidden}@container (max-width:200px){.channel-tile__content{display:none}}.channel-tile__title{margin:0;font-size:var(--zn-text-heading-section-font-size);line-height:var(--zn-text-heading-section-line-height);font-weight:var(--zn-text-heading-section-font-weight);color:var(--zn-text-heading-section-color);text-transform:var(--zn-text-heading-section-transform);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__subtitle{margin:0;font-size:var(--zn-text-subheading-small-font-size);line-height:var(--zn-text-subheading-small-line-height);font-weight:var(--zn-text-subheading-small-font-weight);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__footer{display:flex;align-items:center;align-self:flex-start;gap:var(--zn-spacing-small)}.channel-tile__reject{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:none;padding:0;margin:0;background-color:rgba(var(--zn-color-panel));color:rgb(var(--zn-color-error));cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,0.15)}.channel-tile__reject:hover{background-color:rgba(var(--zn-color-error));color:rgb(var(--zn-color-panel))}.channel-tile__bar{position:absolute;bottom:0;left:0;right:0;height:3px;background-color:rgba(var(--zn-shadow),0.2);overflow:hidden;z-index:1}.channel-tile__bar-fill{height:100%;width:0;transition:width 0.5s linear,background-color 0.5s ease}.channel-tile--primary{--channel-tile-color:var(--zn-color-primary)}.channel-tile--info{--channel-tile-color:var(--zn-color-info)}.channel-tile--success{--channel-tile-color:var(--zn-color-success)}.channel-tile--warning{--channel-tile-color:var(--zn-color-warning)}.channel-tile--error{--channel-tile-color:var(--zn-color-error)}.channel-tile--disabled{--channel-tile-color:var(--zn-color-disabled,204,204,204)}.channel-tile--incoming .channel-tile__body zn-button{--zn-color-tab:var(--zn-color-panel)}`;var
|
|
1742
|
+
</div>`}};Cn.styles=z(V0),c([d({attribute:"caption",reflect:!0})],Cn.prototype,"caption",2),c([d({attribute:"description",reflect:!0})],Cn.prototype,"description",2),c([d({attribute:"icon",reflect:!0})],Cn.prototype,"icon",2);var B4=Cn;Cn.define("zn-tile-property");var U0=_`:host{--channel-tile-color:var(--zn-color-border);flex:1 1 280px;width:280px;min-width:180px;max-width:320px;display:block}.channel-tile{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;cursor:pointer;border-right:1px solid rgb(var(--zn-border-color));background-color:rgb(var(--zn-body));transition:background-color 0.15s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none}.channel-tile:focus-visible{outline:2px solid rgb(var(--zn-primary));outline-offset:-2px}:host(.active) .channel-tile{background-color:rgb(var(--zn-panel));cursor:default}:host(:not(.active)) .channel-tile--active:hover{background-color:rgb(var(--zn-panel))}.channel-tile--incoming{background-color:rgba(var(--zn-color-success),0.15)}.channel-tile--incoming:hover{background-color:rgba(var(--zn-color-success),0.22)}.channel-tile--disabled .channel-tile__body{opacity:0.6}.channel-tile__header{display:flex;align-items:center;flex-shrink:0;height:24px;padding:0 var(--zn-spacing-small);background-color:rgb(var(--zn-color-tab))}.channel-tile__header h3{margin:0;font-size:var(--zn-text-h3-font-size);line-height:var(--zn-text-h3-line-height);font-weight:var(--zn-text-h3-font-weight);color:rgb(var(--zn-text-heading));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__overlay{position:absolute;top:24px;left:0;bottom:0;width:0;background-color:rgb(154,232,162);transition:width 0.2s linear;pointer-events:none;z-index:0}.channel-tile__body{position:relative;flex:1;display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);width:100%;overflow:hidden;z-index:1}.channel-tile__content{display:flex;flex-direction:column;flex-grow:1;gap:4px;overflow:hidden}@container (max-width:200px){.channel-tile__content{display:none}}.channel-tile__title{margin:0;font-size:var(--zn-text-heading-section-font-size);line-height:var(--zn-text-heading-section-line-height);font-weight:var(--zn-text-heading-section-font-weight);color:var(--zn-text-heading-section-color);text-transform:var(--zn-text-heading-section-transform);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__subtitle{margin:0;font-size:var(--zn-text-subheading-small-font-size);line-height:var(--zn-text-subheading-small-line-height);font-weight:var(--zn-text-subheading-small-font-weight);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__footer{display:flex;align-items:center;align-self:flex-start;gap:var(--zn-spacing-small)}.channel-tile__reject{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:none;padding:0;margin:0;background-color:rgba(var(--zn-color-panel));color:rgb(var(--zn-color-error));cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,0.15)}.channel-tile__reject:hover{background-color:rgba(var(--zn-color-error));color:rgb(var(--zn-color-panel))}.channel-tile__bar{position:absolute;bottom:0;left:0;right:0;height:3px;background-color:rgba(var(--zn-shadow),0.2);overflow:hidden;z-index:1}.channel-tile__bar-fill{height:100%;width:0;transition:width 0.5s linear,background-color 0.5s ease}.channel-tile--primary{--channel-tile-color:var(--zn-color-primary)}.channel-tile--info{--channel-tile-color:var(--zn-color-info)}.channel-tile--success{--channel-tile-color:var(--zn-color-success)}.channel-tile--warning{--channel-tile-color:var(--zn-color-warning)}.channel-tile--error{--channel-tile-color:var(--zn-color-error)}.channel-tile--disabled{--channel-tile-color:var(--zn-color-disabled,204,204,204)}.channel-tile--incoming .channel-tile__body zn-button{--zn-color-tab:var(--zn-color-panel)}`;var rt=class extends k{constructor(){super(...arguments);this.available=!1;this.incoming=!1;this.variant="";this.header="";this.icon="";this.color="default";this.title="";this.subtitle="";this.progress=0;this.progressColor="";this.itemId="";this.acceptUri="";this.reservedUntil=0;this.autoAcceptDelay=0;this.rejectable=!1;this.acceptIcon="plus@lu";this.acceptGaid="";this.rejectIcon="close";this.rejectLabel="Reject";this._autoAcceptFired="";this._handleReject=t=>{t.preventDefault(),t.stopPropagation(),this.emit("zn-reject",{detail:{itemId:this.itemId,variant:this.variant}})};this._handleClick=t=>{!this._isCountingDown()||!this.acceptUri||t.defaultPrevented||(t.preventDefault(),t.stopPropagation(),this._accept())}}firstUpdated(t){super.firstUpdated(t),this._startTicker()}disconnectedCallback(){this._stopTicker(),super.disconnectedCallback()}updated(t){super.updated(t),t.has("itemId")&&this.itemId!==this._autoAcceptFired&&(this._autoAcceptFired="")}_isCountingDown(){return this.available&&this.incoming}_startTicker(){this._tickInterval===void 0&&(this._tickInterval=window.setInterval(()=>{this._isCountingDown()&&(this.requestUpdate(),this._maybeAutoAccept())},200))}_stopTicker(){this._tickInterval!==void 0&&(clearInterval(this._tickInterval),this._tickInterval=void 0)}_maybeAutoAccept(){if(!this._isCountingDown()||!this.acceptUri||!this.autoAcceptDelay||!this.reservedUntil||this._autoAcceptFired===this.itemId)return;let t=this._reservedUntilMs();!t||Date.now()<t||(this._autoAcceptFired=this.itemId,this._accept())}_accept(){this.emit("zn-accept",{cancelable:!0,detail:{itemId:this.itemId,acceptUri:this.acceptUri}}).defaultPrevented||!this.acceptUri||fetch(this.acceptUri,{credentials:"same-origin"}).catch(r=>{console.error("Error accepting interaction",r)})}_reservedUntilMs(){return this.reservedUntil?this.reservedUntil.toString().length===10?this.reservedUntil*1e3:this.reservedUntil:0}_countdownPercent(){let t=this._reservedUntilMs();if(!t||!this.autoAcceptDelay)return 0;let r=this.autoAcceptDelay,n=Math.max(0,t-Date.now()),a=Math.max(0,r-n);return Math.min(100,Math.max(0,a/r*100))}_remainingSeconds(){let t=this._reservedUntilMs();return!t||!this.autoAcceptDelay?null:Math.max(0,Math.ceil((t-Date.now())/1e3))}render(){let t=this.title||(this.available?"Available":""),r=this._isCountingDown()?this._countdownPercent():null,n=this._isCountingDown()?this._remainingSeconds():null;return u`
|
|
1742
1743
|
<div
|
|
1743
1744
|
part="base"
|
|
1744
1745
|
class=${M({"channel-tile":!0,"channel-tile--available":this.available,"channel-tile--active":!this.available,"channel-tile--incoming":this.available&&this.incoming,[`channel-tile--${this.color}`]:!0})}
|
|
@@ -1800,7 +1801,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
1800
1801
|
gaid=${this.acceptGaid}
|
|
1801
1802
|
no-hover>
|
|
1802
1803
|
</zn-button>
|
|
1803
|
-
</slot>`}};tt.styles=z(U0),c([d({type:Boolean,reflect:!0})],tt.prototype,"available",2),c([d({type:Boolean,reflect:!0})],tt.prototype,"incoming",2),c([d({reflect:!0})],tt.prototype,"variant",2),c([d()],tt.prototype,"header",2),c([d()],tt.prototype,"icon",2),c([d({reflect:!0})],tt.prototype,"color",2),c([d()],tt.prototype,"title",2),c([d()],tt.prototype,"subtitle",2),c([d({type:Number})],tt.prototype,"progress",2),c([d({attribute:"progress-color"})],tt.prototype,"progressColor",2),c([d({attribute:"item-id"})],tt.prototype,"itemId",2),c([d({attribute:"accept-uri"})],tt.prototype,"acceptUri",2),c([d({type:Number,attribute:"reserved-until"})],tt.prototype,"reservedUntil",2),c([d({type:Number,attribute:"auto-accept-delay"})],tt.prototype,"autoAcceptDelay",2),c([d({type:Boolean,reflect:!0})],tt.prototype,"rejectable",2),c([d({attribute:"accept-icon"})],tt.prototype,"acceptIcon",2),c([d({attribute:"accept-gaid"})],tt.prototype,"acceptGaid",2),c([d({attribute:"reject-icon"})],tt.prototype,"rejectIcon",2),c([d({attribute:"reject-label"})],tt.prototype,"rejectLabel",2);var V4=tt;tt.define("zn-channel-tile");function So(o,i){let t=o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",r=o.textColor??t,n=o.enableAnimations!==!1&&o.enableAnimations!==0,a=typeof o.enableAnimations=="number"?o.enableAnimations:1500;return{animation:n,animationDuration:a,animationEasing:"cubicOut",...o.colors?{color:o.colors}:{},textStyle:{color:r},tooltip:{trigger:i,appendTo:"body",valueFormatter:o.yAxisAppend?s=>`${s}${o.yAxisAppend}`:void 0},legend:{top:0,right:0,icon:"circle",textStyle:{color:r}}}}function Kd(o){return{...So(o,"axis"),grid:{left:40,right:20,top:40,bottom:30}}}function U4(o){return o.length===0||o.every(i=>!i.data||i.data.length===0)}function Yd(o){let i=U4(o.data)?{min:0,max:6}:{},t=o.scale?{scale:!0,...typeof o.scale=="number"?{boundaryGap:[`${o.scale}%`,`${o.scale}%`]}:{}}:{};return{type:"value",...o.borderColor?{splitLine:{lineStyle:{color:o.borderColor}}}:{},...i,...t,axisLabel:o.yAxisAppend?{formatter:n=>`${n}${o.yAxisAppend}`}:{}}}function Qd(o,i=!1){let t=o.borderColor?{axisLine:{lineStyle:{color:o.borderColor}}}:{};return o.xAxisType==="datetime"?{type:"time",...t}:o.xAxisType==="numeric"?{type:"value",...t}:{type:"category",data:o.categories,...i?{boundaryGap:!1}:{},...t}}function G0(o){return o.map(i=>i&&typeof i=="object"&&!Array.isArray(i)&&"x"in i&&"y"in i?[i.x,i.y]:i)}function Xd(o,i,t=()=>({})){return o.data.map(r=>({type:i,name:r.name,data:G0(r.data),...r.color?{itemStyle:{color:r.color}}:{},...o.stacked?{stack:"total"}:{},...o.enableAnimations!==!1&&o.enableAnimations!==0&&i==="bar"?{animationDelay:n=>n*50}:{},...t(r)}))}function am(o){return{...Kd(o),xAxis:Qd(o),yAxis:Yd(o),series:Xd(o,"bar")}}function W0(o){return{...Kd(o),xAxis:Qd(o,!0),yAxis:Yd(o),series:Xd(o,"line",()=>({symbolSize:o.datapointSize,smooth:o.smooth}))}}function K0(o){return{...Kd(o),xAxis:Qd(o,!0),yAxis:Yd(o),series:Xd(o,"line",()=>({symbolSize:o.datapointSize,smooth:o.smooth,areaStyle:{opacity:.1}}))}}function Y0(o){return{...Kd(o),xAxis:Qd({...o,xAxisType:o.xAxisType??"numeric"}),yAxis:Yd(o),series:Xd(o,"scatter",()=>({symbolSize:o.datapointSize}))}}function sm(o,i){return o.map((t,r)=>{if(typeof t=="number")return{name:i[r]??`${r+1}`,value:t};let{color:n,itemStyle:a,...s}=t;return{...s,name:t.name??i[r]??`${r+1}`,...n?{itemStyle:{...a,color:n}}:a?{itemStyle:a}:{}}})}function Q0(o){let i=o.data[0]??{name:"",data:[]},t=o.textColor??(o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)"),r=o.type==="donut"?o.innerRadius??"50%":0,n=o.outerRadius??"70%";return{...So(o,"item"),series:[{type:"pie",name:i.name,data:sm(i.data??[],o.categories),radius:[r,n],center:["50%","55%"],avoidLabelOverlap:!0,label:{show:o.showLabels??!1,color:t},labelLine:{show:o.showLabels??!1,...o.borderColor?{lineStyle:{color:o.borderColor}}:{}},emphasis:{label:{show:o.showLabels??!1}}}]}}function X0(o){let i=o.indicators?.length?o.indicators:o.categories.map(t=>({name:t}));return{...So(o,"item"),radar:{indicator:i},series:[{type:"radar",data:o.data.map(t=>({name:t.name,value:G0(t.data),...t.color?{itemStyle:{color:t.color},lineStyle:{color:t.color}}:{}}))}]}}function J0(o){let i=o.data[0]??{name:"",data:[]},[t]=i.data,r=typeof t=="number"?[{name:i.name,value:t}]:sm(i.data??[],o.categories);return{...So(o,"item"),series:[{type:"gauge",name:i.name,min:o.minValue??0,max:o.maxValue??100,data:r,progress:{show:!0},detail:{valueAnimation:o.enableAnimations!==!1&&o.enableAnimations!==0,formatter:o.yAxisAppend?n=>`${n}${o.yAxisAppend}`:"{value}"}}]}}function Z0(o){let i=o.data[0]??{name:"",data:[]};return{...So(o,"item"),series:[{type:"funnel",name:i.name,min:o.minValue,max:o.maxValue,data:sm(i.data??[],o.categories),label:{show:o.showLabels??!0},emphasis:{label:{fontWeight:"bold"}}}]}}function j4(o){return Array.isArray(o)?typeof o[2]=="number":!1}function j0(o,i,t){let r=o.filter(j4).map(n=>n[2]);return r.length?Math[i](...r):t}function e1(o){let i=o.data[0]??{name:"",data:[]},t=i.data??[];return{...So(o,"item"),grid:{left:60,right:20,top:40,bottom:70},xAxis:{type:"category",data:o.categories,splitArea:{show:!0}},yAxis:{type:"category",data:o.yCategories??[],splitArea:{show:!0}},visualMap:{min:o.minValue??j0(t,"min",0),max:o.maxValue??j0(t,"max",100),calculable:!0,orient:"horizontal",left:"center",bottom:0},series:[{type:"heatmap",name:i.name,data:t,label:{show:o.showLabels??!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.35)"}}}]}}function t1(o){let i=o.data[0]??{name:"",data:[]};return{...So(o,"item"),series:[{type:"treemap",name:i.name,data:i.data??[],label:{show:o.showLabels??!0},upperLabel:{show:o.showLabels??!0}}]}}function r1(o){let i=o.data[0]??{name:"",data:[]};return{...So(o,"item"),series:[{type:"sunburst",name:i.name,data:i.data??[],radius:[o.innerRadius??0,o.outerRadius??"90%"],label:{show:o.showLabels??!0},emphasis:{focus:"ancestor"}}]}}function G4(o){let i=new Set,t=[];for(let r of o)i.has(r.source)||(i.add(r.source),t.push({name:r.source})),i.has(r.target)||(i.add(r.target),t.push({name:r.target}));return t}function i1(o){let i=o.data[0]??{name:"",data:[]},t=i.data??[],n=i.nodes??G4(t),a=o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",s=o.textColor??a,l=o.enableAnimations!==!1&&o.enableAnimations!==0,p=typeof o.enableAnimations=="number"?o.enableAnimations:1500;return{animation:l,animationDuration:p,animationEasing:"cubicOut",...o.colors?{color:o.colors}:{},textStyle:{color:s},tooltip:{trigger:"item",appendTo:"body"},series:[{type:"sankey",name:i.name,data:n,links:t,label:{color:s,textBorderWidth:0},lineStyle:{color:"source",opacity:o.theme==="dark"?.4:.3},emphasis:{focus:"adjacency"}}]}}var n1;function Jd(){return n1??(n1=(async()=>{let[o,i,t,r]=await Promise.all([import("./chunks/zn.AI3T35DX.js"),import("./chunks/zn.EHO4QQOL.js"),import("./chunks/zn.6RARZYEJ.js"),import("./chunks/zn.S4ZVBYAS.js")]);return o.use([i.BarChart,i.FunnelChart,i.GaugeChart,i.HeatmapChart,i.LineChart,i.PieChart,i.RadarChart,i.SankeyChart,i.ScatterChart,i.SunburstChart,i.TreemapChart,t.GridComponent,t.TooltipComponent,t.LegendComponent,t.TitleComponent,t.DataZoomComponent,t.RadarComponent,t.VisualMapComponent,r.CanvasRenderer]),o})()),n1}var o1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block;width:100%}.chart{position:relative}`;var He=class extends k{constructor(){super(...arguments);this.type="bar";this.data=[];this.categories=[];this.yCategories=[];this.indicators=[];this.datapointSize=1;this.stacked=!1;this.live=!1;this.dataUrl="";this.liveInterval=1e3;this.height=300;this.enableAnimations=!1;this.smooth=!1;this.scale=!1;this.resizeObserver=new ht(this,{target:null,skipInitial:!0,callback:()=>this.chart?.resize()})}firstUpdated(t){this.initPromise=this.initChart().catch(()=>{}),super.firstUpdated(t)}async getUpdateComplete(){let t=await super.getUpdateComplete();return await this.initPromise,t}getTheme(){return this.getAttribute("m")==="dark"?"dark":this.getAttribute("m")==="light"?"light":this.getAttribute("t")==="dark"?"dark":"light"}getTextColor(){let t=getComputedStyle(this),r=t.getPropertyValue("--zn-text").trim();if(!r)return;let n=t.getPropertyValue("--zn-text-opacity").trim()||"1";return`rgba(${r}, ${n})`}getBorderColor(){let t=getComputedStyle(this).getPropertyValue("--zn-border-color").trim();return t?`rgb(${t})`:void 0}buildOption(){let t={type:this.type,data:this.data??[],categories:Array.isArray(this.categories)?this.categories:[],xAxisType:this.xAxis,yAxisAppend:this.yAxisAppend,stacked:this.stacked,enableAnimations:this.enableAnimations,datapointSize:this.datapointSize,colors:this.colors,theme:this.getTheme(),smooth:this.smooth,scale:this.scale,textColor:this.getTextColor(),borderColor:this.getBorderColor(),innerRadius:this.innerRadius,outerRadius:this.outerRadius,showLabels:this.showLabels,yCategories:Array.isArray(this.yCategories)?this.yCategories:[],indicators:Array.isArray(this.indicators)?this.indicators:[],minValue:this.minValue,maxValue:this.maxValue};switch(this.type){case"bar":return am(t);case"line":return W0(t);case"area":return K0(t);case"funnel":return Z0(t);case"gauge":return J0(t);case"heatmap":return e1(t);case"donut":case"pie":return Q0(t);case"radar":return X0(t);case"sankey":return i1(t);case"scatter":return Y0(t);case"sunburst":return r1(t);case"treemap":return t1(t);default:return am(t)}}async initChart(){let t=this.shadowRoot?.getElementById("chart");if(!t)return;t.style.height=`${this.height}px`;let r=await Jd();!this.isConnected||this.chart||(this.echarts=r,this.chart=r.init(t),this.chart.setOption(this.buildOption()),this.syncGroup&&(this.chart.group=this.syncGroup,r.connect(this.syncGroup)),this.resizeObserver.observe(t),this.live&&this.dataUrl&&this.startLive())}startLive(){this.liveTimer=window.setInterval(async()=>{try{let r=await(await fetch(this.dataUrl)).json();this.data=r,this.chart?.setOption({...this.buildOption()})}catch{}},this.liveInterval)}reinit(){this.chart?.dispose(),this.chart=void 0,this.initPromise=this.initChart().catch(()=>{})}attributeChangedCallback(t,r,n){if(super.attributeChangedCallback(t,r,n),!!this.chart){if(t==="t"){this.reinit();return}if(t==="type"){this.reinit();return}if(t==="height"){let a=this.shadowRoot?.getElementById("chart");a&&(a.style.height=`${this.height}px`),this.chart.resize();return}if(t==="sync-group"){n?(this.chart.group=n,this.echarts?.connect(n)):this.chart.group="";return}this.chart.setOption({...this.buildOption()})}}disconnectedCallback(){super.disconnectedCallback(),this.liveTimer&&clearInterval(this.liveTimer),this.chart?.dispose(),this.chart=void 0}render(){return u`<div class="chart"><div id="chart"></div></div>`}};He.styles=z(o1),c([d()],He.prototype,"type",2),c([d({type:Array})],He.prototype,"data",2),c([d({type:Array})],He.prototype,"categories",2),c([d({attribute:"y-categories",type:Array})],He.prototype,"yCategories",2),c([d({type:Array})],He.prototype,"indicators",2),c([d({attribute:"xaxis"})],He.prototype,"xAxis",2),c([d({type:Number,attribute:"d-size"})],He.prototype,"datapointSize",2),c([d({type:Boolean})],He.prototype,"stacked",2),c([d({type:Boolean})],He.prototype,"live",2),c([d({attribute:"data-url"})],He.prototype,"dataUrl",2),c([d({attribute:"live-interval",type:Number})],He.prototype,"liveInterval",2),c([d({type:Number,reflect:!0})],He.prototype,"height",2),c([d({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],He.prototype,"enableAnimations",2),c([d({attribute:"y-axis-append"})],He.prototype,"yAxisAppend",2),c([d({type:Array})],He.prototype,"colors",2),c([d({attribute:"sync-group"})],He.prototype,"syncGroup",2),c([d({type:Boolean})],He.prototype,"smooth",2),c([d({attribute:"inner-radius"})],He.prototype,"innerRadius",2),c([d({attribute:"outer-radius"})],He.prototype,"outerRadius",2),c([d({attribute:"show-labels",type:Boolean})],He.prototype,"showLabels",2),c([d({attribute:"min-value",type:Number})],He.prototype,"minValue",2),c([d({attribute:"max-value",type:Number})],He.prototype,"maxValue",2),c([d({converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],He.prototype,"scale",2);var W4=He;He.define("zn-chart");var a1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host>div,zn-simplechart>div{width:115px;height:50px;cursor:pointer}`;var K4=["Jun 2016","Jul 2016","Aug 2016","Sep 2016","Oct 2016","Nov 2016","Dec 2016","Jan 2017","Feb 2017","Mar 2017","Apr 2017","May 2017"],Y4=[56.4,39.8,66.8,66.4,40.6,55.2,77.4,69.8,57.8,76,110.8,142.6],En=class extends k{constructor(){super(...arguments);this.enableAnimations=!1;this.resizeObserver=new ht(this,{target:null,skipInitial:!0,callback:()=>this.chart?.resize()})}firstUpdated(){this.initPromise=this.initChart().catch(()=>{})}async getUpdateComplete(){let t=await super.getUpdateComplete();return await this.initPromise,t}async initChart(){let t=this.shadowRoot?.getElementById("chart");if(!t)return;let r=await Jd();if(!this.isConnected||this.chart)return;this.chart=r.init(t);let n=this.datasets?.[0]?.data??Y4,a=this.labels??K4,s=this.enableAnimations!==!1&&this.enableAnimations!==0,l=typeof this.enableAnimations=="number"?this.enableAnimations:1500;this.chart.setOption({animation:s,animationDuration:l,animationEasing:"cubicOut",tooltip:{trigger:"axis",appendTo:"body",backgroundColor:"rgba(0,0,0,0.7)",borderWidth:0,textStyle:{color:"#fff"}},xAxis:{type:"category",data:a,show:!1},yAxis:{type:"value",show:!1},grid:{left:0,right:0,top:0,bottom:0},series:[{type:"bar",data:n,barWidth:7,itemStyle:{color:"#29C1BC",borderRadius:10},emphasis:{itemStyle:{color:"#19837f"}}}]}),this.resizeObserver.observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.chart?.dispose()}render(){return u`<div id="chart"></div>`}};En.styles=z(a1),c([d({attribute:"datasets",type:Array})],En.prototype,"datasets",2),c([d({attribute:"labels",type:Array})],En.prototype,"labels",2),c([d({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],En.prototype,"enableAnimations",2);var Q4=En;En.define("zn-simple-chart");var s1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.header{flex-grow:1}.header .caption{justify-content:space-between;gap:var(--zn-base-gap);max-width:100%}.header__caption{font-weight:var(--zn-text-h1-font-weight);font-size:var(--zn-text-h1-font-size);text-transform:var(--zn-text-h1-transform,none);letter-spacing:var(--zn-text-h1-letter-spacing,normal);color:rgba(var(--zn-text-panel-title),100%);line-height:var(--zn-icon-size,20px);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;gap:var(--zn-spacing-2x-small);align-items:center;text-wrap:auto}.caption__back{display:flex;justify-content:center;align-items:center;color:inherit}:host([transparent])>div{background-color:transparent}:host([with-closer]) .content{padding-right:40px}:host([navigation])>div h1{padding-bottom:0}:host #nav-container{gap:0;border-bottom:1px solid rgb(var(--zn-border-color));margin:0 3px}.alt-overlay{display:none}:host(.alt-pressed) .alt-overlay:empty{display:none !important}:host(.alt-pressed) .alt-overlay{display:flex;gap:10px;align-items:flex-end;position:absolute;left:0;top:10px;padding:6px 15px;background:rgba(var(--zn-panel),0.95);z-index:10}:host(.alt-pressed) .alt-overlay a{display:flex}:host(.alt-pressed) .alt-overlay zn-icon:hover{color:rgb(var(--zn-primary));cursor:pointer}:host([transparent]) .header{margin:0}.header{display:flex;flex-direction:column;margin:0;overflow:hidden}.header .content{display:flex;flex-wrap:wrap;width:100%;max-width:100%;height:-moz-fit-content;height:fit-content;min-height:var(--zn-input-height-medium,36px);gap:10px;margin:0 auto;padding:var(--zn-base-gap)}.header__left{display:flex;justify-content:center;flex-direction:column;gap:1px;flex-shrink:1;max-width:100%}.header__right{flex-grow:1;flex-shrink:1;overflow-x:clip;overflow-clip-margin:var(--zn-focus-ring-outset);overflow-y:visible;min-width:20px}.header .navless{min-height:10px}.header .content{position:relative;gap:10px}.header .breadcrumb{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);font:inherit;color:inherit}.header .breadcrumb::slotted(a){font:inherit;color:inherit;text-decoration:inherit}.header .breadcrumb::slotted(a:hover){color:rgb(var(--zn-primary))}.header .breadcrumb::slotted(a)::after{content:">";margin-left:var(--zn-spacing-2x-small);color:rgb(var(--zn-text-muted));font-weight:var(--zn-font-weight-normal)}.header .caption{flex-grow:1;display:flex;align-items:center;gap:10px;max-width:100%;line-height:var(--zn-icon-size,20px)}.header .caption a{display:flex;align-items:center;color:inherit;text-decoration:none}.header .caption a zn-icon{cursor:pointer}.header .caption a zn-icon:hover{color:rgb(var(--zn-primary))}.header h1{flex-grow:1;overflow:hidden;text-overflow:ellipsis;color:rgb(var(--zn-text-page-title));margin:0;font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-medium)}@media screen and (min-width:var(--zn-container-lg)){.header h1{font-size:var(--zn-font-size-large)}}.header h1:empty{display:none}.header slot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);word-break:break-word}.header slot[name=nav]{flex-basis:100%}.header slot[name=actions]{justify-content:end;flex-wrap:nowrap}.header slot[name=actions]::slotted(zn-button-menu){flex-grow:1;flex-shrink:1}.header .actions{display:flex}:host([baseless]) .header{border-bottom:none !important}`;var Kt=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","nav","breadcrumb");this.transparent=!1;this.navigation=[];this.hideBreadcrumb=!1;this.handleAltPress=()=>{this.classList.toggle("alt-pressed",!0)};this.handleAltUp=()=>{this.classList.toggle("alt-pressed",!1)}}connectedCallback(){super.connectedCallback(),window.addEventListener("alt-press",this.handleAltPress),window.addEventListener("alt-up",this.handleAltUp)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("alt-press",this.handleAltPress),window.removeEventListener("alt-up",this.handleAltUp)}firstUpdated(t){super.firstUpdated(t),this.navbar=this.querySelector("zn-navbar"),this.updateNav()}updateNav(){if(!this.navbar&&this.navigation&&this.navigation.length>0){this.navbar=document.createElement("zn-navbar");let t=this.shadowRoot?.querySelector("#nav-container");t&&t.appendChild(this.navbar)}this.navbar&&(this.navbar.navigation=this.navigation,this.navbar.setAttribute("baseless",""))}render(){let t=this.hasSlotController.test("[default]"),r=this.hasSlotController.test("nav"),n=this.navigation&&this.navigation.length>0||r,a=this.previousPath,s=this.entityId,l=this.fullLocation,p=!this.hideBreadcrumb&&this.hasSlotController.test("breadcrumb"),h=u`
|
|
1804
|
+
</slot>`}};rt.styles=z(U0),c([d({type:Boolean,reflect:!0})],rt.prototype,"available",2),c([d({type:Boolean,reflect:!0})],rt.prototype,"incoming",2),c([d({reflect:!0})],rt.prototype,"variant",2),c([d()],rt.prototype,"header",2),c([d()],rt.prototype,"icon",2),c([d({reflect:!0})],rt.prototype,"color",2),c([d()],rt.prototype,"title",2),c([d()],rt.prototype,"subtitle",2),c([d({type:Number})],rt.prototype,"progress",2),c([d({attribute:"progress-color"})],rt.prototype,"progressColor",2),c([d({attribute:"item-id"})],rt.prototype,"itemId",2),c([d({attribute:"accept-uri"})],rt.prototype,"acceptUri",2),c([d({type:Number,attribute:"reserved-until"})],rt.prototype,"reservedUntil",2),c([d({type:Number,attribute:"auto-accept-delay"})],rt.prototype,"autoAcceptDelay",2),c([d({type:Boolean,reflect:!0})],rt.prototype,"rejectable",2),c([d({attribute:"accept-icon"})],rt.prototype,"acceptIcon",2),c([d({attribute:"accept-gaid"})],rt.prototype,"acceptGaid",2),c([d({attribute:"reject-icon"})],rt.prototype,"rejectIcon",2),c([d({attribute:"reject-label"})],rt.prototype,"rejectLabel",2);var V4=rt;rt.define("zn-channel-tile");function So(o,i){let t=o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",r=o.textColor??t,n=o.enableAnimations!==!1&&o.enableAnimations!==0,a=typeof o.enableAnimations=="number"?o.enableAnimations:1500;return{animation:n,animationDuration:a,animationEasing:"cubicOut",...o.colors?{color:o.colors}:{},textStyle:{color:r},tooltip:{trigger:i,appendTo:"body",valueFormatter:o.yAxisAppend?s=>`${s}${o.yAxisAppend}`:void 0},legend:{top:0,right:0,icon:"circle",textStyle:{color:r}}}}function Kd(o){return{...So(o,"axis"),grid:{left:40,right:20,top:40,bottom:30}}}function U4(o){return o.length===0||o.every(i=>!i.data||i.data.length===0)}function Yd(o){let i=U4(o.data)?{min:0,max:6}:{},t=o.scale?{scale:!0,...typeof o.scale=="number"?{boundaryGap:[`${o.scale}%`,`${o.scale}%`]}:{}}:{};return{type:"value",...o.borderColor?{splitLine:{lineStyle:{color:o.borderColor}}}:{},...i,...t,axisLabel:o.yAxisAppend?{formatter:n=>`${n}${o.yAxisAppend}`}:{}}}function Qd(o,i=!1){let t=o.borderColor?{axisLine:{lineStyle:{color:o.borderColor}}}:{};return o.xAxisType==="datetime"?{type:"time",...t}:o.xAxisType==="numeric"?{type:"value",...t}:{type:"category",data:o.categories,...i?{boundaryGap:!1}:{},...t}}function G0(o){return o.map(i=>i&&typeof i=="object"&&!Array.isArray(i)&&"x"in i&&"y"in i?[i.x,i.y]:i)}function Xd(o,i,t=()=>({})){return o.data.map(r=>({type:i,name:r.name,data:G0(r.data),...r.color?{itemStyle:{color:r.color}}:{},...o.stacked?{stack:"total"}:{},...o.enableAnimations!==!1&&o.enableAnimations!==0&&i==="bar"?{animationDelay:n=>n*50}:{},...t(r)}))}function am(o){return{...Kd(o),xAxis:Qd(o),yAxis:Yd(o),series:Xd(o,"bar")}}function W0(o){return{...Kd(o),xAxis:Qd(o,!0),yAxis:Yd(o),series:Xd(o,"line",()=>({symbolSize:o.datapointSize,smooth:o.smooth}))}}function K0(o){return{...Kd(o),xAxis:Qd(o,!0),yAxis:Yd(o),series:Xd(o,"line",()=>({symbolSize:o.datapointSize,smooth:o.smooth,areaStyle:{opacity:.1}}))}}function Y0(o){return{...Kd(o),xAxis:Qd({...o,xAxisType:o.xAxisType??"numeric"}),yAxis:Yd(o),series:Xd(o,"scatter",()=>({symbolSize:o.datapointSize}))}}function sm(o,i){return o.map((t,r)=>{if(typeof t=="number")return{name:i[r]??`${r+1}`,value:t};let{color:n,itemStyle:a,...s}=t;return{...s,name:t.name??i[r]??`${r+1}`,...n?{itemStyle:{...a,color:n}}:a?{itemStyle:a}:{}}})}function Q0(o){let i=o.data[0]??{name:"",data:[]},t=o.textColor??(o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)"),r=o.type==="donut"?o.innerRadius??"50%":0,n=o.outerRadius??"70%";return{...So(o,"item"),series:[{type:"pie",name:i.name,data:sm(i.data??[],o.categories),radius:[r,n],center:["50%","55%"],avoidLabelOverlap:!0,label:{show:o.showLabels??!1,color:t},labelLine:{show:o.showLabels??!1,...o.borderColor?{lineStyle:{color:o.borderColor}}:{}},emphasis:{label:{show:o.showLabels??!1}}}]}}function X0(o){let i=o.indicators?.length?o.indicators:o.categories.map(t=>({name:t}));return{...So(o,"item"),radar:{indicator:i},series:[{type:"radar",data:o.data.map(t=>({name:t.name,value:G0(t.data),...t.color?{itemStyle:{color:t.color},lineStyle:{color:t.color}}:{}}))}]}}function J0(o){let i=o.data[0]??{name:"",data:[]},[t]=i.data,r=typeof t=="number"?[{name:i.name,value:t}]:sm(i.data??[],o.categories);return{...So(o,"item"),series:[{type:"gauge",name:i.name,min:o.minValue??0,max:o.maxValue??100,data:r,progress:{show:!0},detail:{valueAnimation:o.enableAnimations!==!1&&o.enableAnimations!==0,formatter:o.yAxisAppend?n=>`${n}${o.yAxisAppend}`:"{value}"}}]}}function Z0(o){let i=o.data[0]??{name:"",data:[]};return{...So(o,"item"),series:[{type:"funnel",name:i.name,min:o.minValue,max:o.maxValue,data:sm(i.data??[],o.categories),label:{show:o.showLabels??!0},emphasis:{label:{fontWeight:"bold"}}}]}}function j4(o){return Array.isArray(o)?typeof o[2]=="number":!1}function j0(o,i,t){let r=o.filter(j4).map(n=>n[2]);return r.length?Math[i](...r):t}function e1(o){let i=o.data[0]??{name:"",data:[]},t=i.data??[];return{...So(o,"item"),grid:{left:60,right:20,top:40,bottom:70},xAxis:{type:"category",data:o.categories,splitArea:{show:!0}},yAxis:{type:"category",data:o.yCategories??[],splitArea:{show:!0}},visualMap:{min:o.minValue??j0(t,"min",0),max:o.maxValue??j0(t,"max",100),calculable:!0,orient:"horizontal",left:"center",bottom:0},series:[{type:"heatmap",name:i.name,data:t,label:{show:o.showLabels??!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.35)"}}}]}}function t1(o){let i=o.data[0]??{name:"",data:[]};return{...So(o,"item"),series:[{type:"treemap",name:i.name,data:i.data??[],label:{show:o.showLabels??!0},upperLabel:{show:o.showLabels??!0}}]}}function r1(o){let i=o.data[0]??{name:"",data:[]};return{...So(o,"item"),series:[{type:"sunburst",name:i.name,data:i.data??[],radius:[o.innerRadius??0,o.outerRadius??"90%"],label:{show:o.showLabels??!0},emphasis:{focus:"ancestor"}}]}}function G4(o){let i=new Set,t=[];for(let r of o)i.has(r.source)||(i.add(r.source),t.push({name:r.source})),i.has(r.target)||(i.add(r.target),t.push({name:r.target}));return t}function i1(o){let i=o.data[0]??{name:"",data:[]},t=i.data??[],n=i.nodes??G4(t),a=o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",s=o.textColor??a,l=o.enableAnimations!==!1&&o.enableAnimations!==0,p=typeof o.enableAnimations=="number"?o.enableAnimations:1500;return{animation:l,animationDuration:p,animationEasing:"cubicOut",...o.colors?{color:o.colors}:{},textStyle:{color:s},tooltip:{trigger:"item",appendTo:"body"},series:[{type:"sankey",name:i.name,data:n,links:t,label:{color:s,textBorderWidth:0},lineStyle:{color:"source",opacity:o.theme==="dark"?.4:.3},emphasis:{focus:"adjacency"}}]}}var n1;function Jd(){return n1??(n1=(async()=>{let[o,i,t,r]=await Promise.all([import("./chunks/zn.AI3T35DX.js"),import("./chunks/zn.EHO4QQOL.js"),import("./chunks/zn.6RARZYEJ.js"),import("./chunks/zn.S4ZVBYAS.js")]);return o.use([i.BarChart,i.FunnelChart,i.GaugeChart,i.HeatmapChart,i.LineChart,i.PieChart,i.RadarChart,i.SankeyChart,i.ScatterChart,i.SunburstChart,i.TreemapChart,t.GridComponent,t.TooltipComponent,t.LegendComponent,t.TitleComponent,t.DataZoomComponent,t.RadarComponent,t.VisualMapComponent,r.CanvasRenderer]),o})()),n1}var o1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block;width:100%}.chart{position:relative}`;var He=class extends k{constructor(){super(...arguments);this.type="bar";this.data=[];this.categories=[];this.yCategories=[];this.indicators=[];this.datapointSize=1;this.stacked=!1;this.live=!1;this.dataUrl="";this.liveInterval=1e3;this.height=300;this.enableAnimations=!1;this.smooth=!1;this.scale=!1;this.resizeObserver=new ut(this,{target:null,skipInitial:!0,callback:()=>this.chart?.resize()})}firstUpdated(t){this.initPromise=this.initChart().catch(()=>{}),super.firstUpdated(t)}async getUpdateComplete(){let t=await super.getUpdateComplete();return await this.initPromise,t}getTheme(){return this.getAttribute("m")==="dark"?"dark":this.getAttribute("m")==="light"?"light":this.getAttribute("t")==="dark"?"dark":"light"}getTextColor(){let t=getComputedStyle(this),r=t.getPropertyValue("--zn-text").trim();if(!r)return;let n=t.getPropertyValue("--zn-text-opacity").trim()||"1";return`rgba(${r}, ${n})`}getBorderColor(){let t=getComputedStyle(this).getPropertyValue("--zn-border-color").trim();return t?`rgb(${t})`:void 0}buildOption(){let t={type:this.type,data:this.data??[],categories:Array.isArray(this.categories)?this.categories:[],xAxisType:this.xAxis,yAxisAppend:this.yAxisAppend,stacked:this.stacked,enableAnimations:this.enableAnimations,datapointSize:this.datapointSize,colors:this.colors,theme:this.getTheme(),smooth:this.smooth,scale:this.scale,textColor:this.getTextColor(),borderColor:this.getBorderColor(),innerRadius:this.innerRadius,outerRadius:this.outerRadius,showLabels:this.showLabels,yCategories:Array.isArray(this.yCategories)?this.yCategories:[],indicators:Array.isArray(this.indicators)?this.indicators:[],minValue:this.minValue,maxValue:this.maxValue};switch(this.type){case"bar":return am(t);case"line":return W0(t);case"area":return K0(t);case"funnel":return Z0(t);case"gauge":return J0(t);case"heatmap":return e1(t);case"donut":case"pie":return Q0(t);case"radar":return X0(t);case"sankey":return i1(t);case"scatter":return Y0(t);case"sunburst":return r1(t);case"treemap":return t1(t);default:return am(t)}}async initChart(){let t=this.shadowRoot?.getElementById("chart");if(!t)return;t.style.height=`${this.height}px`;let r=await Jd();!this.isConnected||this.chart||(this.echarts=r,this.chart=r.init(t),this.chart.setOption(this.buildOption()),this.syncGroup&&(this.chart.group=this.syncGroup,r.connect(this.syncGroup)),this.resizeObserver.observe(t),this.live&&this.dataUrl&&this.startLive())}startLive(){this.liveTimer=window.setInterval(async()=>{try{let r=await(await fetch(this.dataUrl)).json();this.data=r,this.chart?.setOption({...this.buildOption()})}catch{}},this.liveInterval)}reinit(){this.chart?.dispose(),this.chart=void 0,this.initPromise=this.initChart().catch(()=>{})}attributeChangedCallback(t,r,n){if(super.attributeChangedCallback(t,r,n),!!this.chart){if(t==="t"){this.reinit();return}if(t==="type"){this.reinit();return}if(t==="height"){let a=this.shadowRoot?.getElementById("chart");a&&(a.style.height=`${this.height}px`),this.chart.resize();return}if(t==="sync-group"){n?(this.chart.group=n,this.echarts?.connect(n)):this.chart.group="";return}this.chart.setOption({...this.buildOption()})}}disconnectedCallback(){super.disconnectedCallback(),this.liveTimer&&clearInterval(this.liveTimer),this.chart?.dispose(),this.chart=void 0}render(){return u`<div class="chart"><div id="chart"></div></div>`}};He.styles=z(o1),c([d()],He.prototype,"type",2),c([d({type:Array})],He.prototype,"data",2),c([d({type:Array})],He.prototype,"categories",2),c([d({attribute:"y-categories",type:Array})],He.prototype,"yCategories",2),c([d({type:Array})],He.prototype,"indicators",2),c([d({attribute:"xaxis"})],He.prototype,"xAxis",2),c([d({type:Number,attribute:"d-size"})],He.prototype,"datapointSize",2),c([d({type:Boolean})],He.prototype,"stacked",2),c([d({type:Boolean})],He.prototype,"live",2),c([d({attribute:"data-url"})],He.prototype,"dataUrl",2),c([d({attribute:"live-interval",type:Number})],He.prototype,"liveInterval",2),c([d({type:Number,reflect:!0})],He.prototype,"height",2),c([d({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],He.prototype,"enableAnimations",2),c([d({attribute:"y-axis-append"})],He.prototype,"yAxisAppend",2),c([d({type:Array})],He.prototype,"colors",2),c([d({attribute:"sync-group"})],He.prototype,"syncGroup",2),c([d({type:Boolean})],He.prototype,"smooth",2),c([d({attribute:"inner-radius"})],He.prototype,"innerRadius",2),c([d({attribute:"outer-radius"})],He.prototype,"outerRadius",2),c([d({attribute:"show-labels",type:Boolean})],He.prototype,"showLabels",2),c([d({attribute:"min-value",type:Number})],He.prototype,"minValue",2),c([d({attribute:"max-value",type:Number})],He.prototype,"maxValue",2),c([d({converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],He.prototype,"scale",2);var W4=He;He.define("zn-chart");var a1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host>div,zn-simplechart>div{width:115px;height:50px;cursor:pointer}`;var K4=["Jun 2016","Jul 2016","Aug 2016","Sep 2016","Oct 2016","Nov 2016","Dec 2016","Jan 2017","Feb 2017","Mar 2017","Apr 2017","May 2017"],Y4=[56.4,39.8,66.8,66.4,40.6,55.2,77.4,69.8,57.8,76,110.8,142.6],En=class extends k{constructor(){super(...arguments);this.enableAnimations=!1;this.resizeObserver=new ut(this,{target:null,skipInitial:!0,callback:()=>this.chart?.resize()})}firstUpdated(){this.initPromise=this.initChart().catch(()=>{})}async getUpdateComplete(){let t=await super.getUpdateComplete();return await this.initPromise,t}async initChart(){let t=this.shadowRoot?.getElementById("chart");if(!t)return;let r=await Jd();if(!this.isConnected||this.chart)return;this.chart=r.init(t);let n=this.datasets?.[0]?.data??Y4,a=this.labels??K4,s=this.enableAnimations!==!1&&this.enableAnimations!==0,l=typeof this.enableAnimations=="number"?this.enableAnimations:1500;this.chart.setOption({animation:s,animationDuration:l,animationEasing:"cubicOut",tooltip:{trigger:"axis",appendTo:"body",backgroundColor:"rgba(0,0,0,0.7)",borderWidth:0,textStyle:{color:"#fff"}},xAxis:{type:"category",data:a,show:!1},yAxis:{type:"value",show:!1},grid:{left:0,right:0,top:0,bottom:0},series:[{type:"bar",data:n,barWidth:7,itemStyle:{color:"#29C1BC",borderRadius:10},emphasis:{itemStyle:{color:"#19837f"}}}]}),this.resizeObserver.observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.chart?.dispose()}render(){return u`<div id="chart"></div>`}};En.styles=z(a1),c([d({attribute:"datasets",type:Array})],En.prototype,"datasets",2),c([d({attribute:"labels",type:Array})],En.prototype,"labels",2),c([d({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],En.prototype,"enableAnimations",2);var Q4=En;En.define("zn-simple-chart");var s1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.header{flex-grow:1}.header .caption{justify-content:space-between;gap:var(--zn-base-gap);max-width:100%}.header__caption{font-weight:var(--zn-text-h1-font-weight);font-size:var(--zn-text-h1-font-size);text-transform:var(--zn-text-h1-transform,none);letter-spacing:var(--zn-text-h1-letter-spacing,normal);color:rgba(var(--zn-text-panel-title),100%);line-height:var(--zn-icon-size,20px);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;gap:var(--zn-spacing-2x-small);align-items:center;text-wrap:auto}.caption__back{display:flex;justify-content:center;align-items:center;color:inherit}:host([transparent])>div{background-color:transparent}:host([with-closer]) .content{padding-right:40px}:host([navigation])>div h1{padding-bottom:0}:host #nav-container{gap:0;border-bottom:1px solid rgb(var(--zn-border-color));margin:0 3px}.alt-overlay{display:none}:host(.alt-pressed) .alt-overlay:empty{display:none !important}:host(.alt-pressed) .alt-overlay{display:flex;gap:10px;align-items:flex-end;position:absolute;left:0;top:10px;padding:6px 15px;background:rgba(var(--zn-panel),0.95);z-index:10}:host(.alt-pressed) .alt-overlay a{display:flex}:host(.alt-pressed) .alt-overlay zn-icon:hover{color:rgb(var(--zn-primary));cursor:pointer}:host([transparent]) .header{margin:0}.header{display:flex;flex-direction:column;margin:0;overflow:hidden}.header .content{display:flex;flex-wrap:wrap;width:100%;max-width:100%;height:-moz-fit-content;height:fit-content;min-height:var(--zn-input-height-medium,36px);gap:10px;margin:0 auto;padding:var(--zn-base-gap)}.header__left{display:flex;justify-content:center;flex-direction:column;gap:1px;flex-shrink:1;max-width:100%}.header__right{flex-grow:1;flex-shrink:1;overflow-x:clip;overflow-clip-margin:var(--zn-focus-ring-outset);overflow-y:visible;min-width:20px}.header .navless{min-height:10px}.header .content{position:relative;gap:10px}.header .breadcrumb{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);font:inherit;color:inherit}.header .breadcrumb::slotted(a){font:inherit;color:inherit;text-decoration:inherit}.header .breadcrumb::slotted(a:hover){color:rgb(var(--zn-primary))}.header .breadcrumb::slotted(a)::after{content:">";margin-left:var(--zn-spacing-2x-small);color:rgb(var(--zn-text-muted));font-weight:var(--zn-font-weight-normal)}.header .caption{flex-grow:1;display:flex;align-items:center;gap:10px;max-width:100%;line-height:var(--zn-icon-size,20px)}.header .caption a{display:flex;align-items:center;color:inherit;text-decoration:none}.header .caption a zn-icon{cursor:pointer}.header .caption a zn-icon:hover{color:rgb(var(--zn-primary))}.header h1{flex-grow:1;overflow:hidden;text-overflow:ellipsis;color:rgb(var(--zn-text-page-title));margin:0;font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-medium)}@media screen and (min-width:var(--zn-container-lg)){.header h1{font-size:var(--zn-font-size-large)}}.header h1:empty{display:none}.header slot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);word-break:break-word}.header slot[name=nav]{flex-basis:100%}.header slot[name=actions]{justify-content:end;flex-wrap:nowrap}.header slot[name=actions]::slotted(zn-button-menu){flex-grow:1;flex-shrink:1}.header .actions{display:flex}:host([baseless]) .header{border-bottom:none !important}`;var Kt=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","nav","breadcrumb");this.transparent=!1;this.navigation=[];this.hideBreadcrumb=!1;this.handleAltPress=()=>{this.classList.toggle("alt-pressed",!0)};this.handleAltUp=()=>{this.classList.toggle("alt-pressed",!1)}}connectedCallback(){super.connectedCallback(),window.addEventListener("alt-press",this.handleAltPress),window.addEventListener("alt-up",this.handleAltUp)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("alt-press",this.handleAltPress),window.removeEventListener("alt-up",this.handleAltUp)}firstUpdated(t){super.firstUpdated(t),this.navbar=this.querySelector("zn-navbar"),this.updateNav()}updateNav(){if(!this.navbar&&this.navigation&&this.navigation.length>0){this.navbar=document.createElement("zn-navbar");let t=this.shadowRoot?.querySelector("#nav-container");t&&t.appendChild(this.navbar)}this.navbar&&(this.navbar.navigation=this.navigation,this.navbar.setAttribute("baseless",""))}render(){let t=this.hasSlotController.test("[default]"),r=this.hasSlotController.test("nav"),n=this.navigation&&this.navigation.length>0||r,a=this.previousPath,s=this.entityId,l=this.fullLocation,p=!this.hideBreadcrumb&&this.hasSlotController.test("breadcrumb"),h=u`
|
|
1804
1805
|
<div class="${M({header:!0,"header--transparent":this.transparent,"header--full-width":this.fullWidth,"header--has-nav":n,"header--has-breadcrumb":p,"header--has-previous":a,"header--has-entity-id":s,"header--has-full-location":l})}" part="base">
|
|
1805
1806
|
|
|
1806
1807
|
${l||s?u`
|
|
@@ -1857,7 +1858,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
1857
1858
|
:host {
|
|
1858
1859
|
--max-width: 100%;
|
|
1859
1860
|
}
|
|
1860
|
-
</style>${h}`:h}};Kt.styles=z(s1),c([d({attribute:"full-location"})],Kt.prototype,"fullLocation",2),c([d({attribute:"entity-id"})],Kt.prototype,"entityId",2),c([d({attribute:"entity-id-show",type:Boolean})],Kt.prototype,"entityIdShow",2),c([d({type:Boolean})],Kt.prototype,"transparent",2),c([d()],Kt.prototype,"caption",2),c([d()],Kt.prototype,"icon",2),c([d({type:Array})],Kt.prototype,"navigation",2),c([d({attribute:"full-width",type:Boolean})],Kt.prototype,"fullWidth",2),c([d({attribute:"previous-path"})],Kt.prototype,"previousPath",2),c([d({attribute:"previous-target"})],Kt.prototype,"previousTarget",2),c([d({attribute:"hide-breadcrumb",type:Boolean})],Kt.prototype,"hideBreadcrumb",2),c([K("navigation",{waitUntilFirstUpdate:!0})],Kt.prototype,"updateNav",1);var X4=Kt;Kt.define("zn-header");var l1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host{display:block;--navbar-active-colour:var(--zn-active-nav-background,var(--zn-page-content-background,var(--zn-page-surface-background,var(--zn-body))))}:host ul.navbar{padding:0;margin-inline:var(--zn-spacing-small)}:host ul.navbar--color-body{background-color:rgb(var(--zn-color-body))}:host([gutter]) ul.navbar{margin:0 calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host([hover]){position:absolute;transform:translateY(-100%)}:host([hover]) ul.navbar{position:relative}:host([hover]) ul.navbar li{z-index:2}:host([hover]) ul.navbar::after{z-index:1;content:"";position:absolute;inset:0;border-radius:6px 6px 0 0;background-color:rgb(var(--zn-body))}:host([hover]) ul.navbar::before{z-index:1;content:"";position:absolute;top:-2px;right:-2px;left:-2px;bottom:0;border-radius:10px;backdrop-filter:blur(2px) opacity(0.8)}:host([icon-only]) ul.navbar li{padding:0;width:36px;min-width:36px;justify-content:center}:host([icon-only]) ul.navbar li:hover:not(.active):not(.zn-tb-active):not(.more)::after{display:none}.navbar__container{display:flex;flex-direction:row;position:relative;justify-content:space-between}.navbar{margin:0}:host:not([stacked]) .navbar{margin:0 0 0 calc(var(--zn-gutter,0) + var(--zn-base-gap,0));padding-left:0}:host:not([stacked]) .navbar--flush{padding:0}ul.navbar li{padding-top:0;font-size:var(--zn-text-tab-link-font-size);line-height:var(--zn-text-tab-link-line-height);font-weight:var(--zn-text-tab-link-font-weight);white-space:nowrap;color:var(--zn-text-tab-link-color)}ul.navbar li a{text-decoration:none;color:inherit}:host-context(zn-page) ul.navbar li:not(.active):not(.zn-tb-active){background:var(--navbar-page-inactive-tab-background,transparent);backdrop-filter:var(--navbar-page-inactive-tab-filter,none)}:host([baseless]) .navbar__container{border-bottom:none}:host([stacked]){width:unset;height:100%;margin:0 0}:host([stacked]) .navbar__container{border-bottom:none;height:100%}:host([stacked]) ul.navbar.navbar--no-pad li{padding:0 !important}:host([stacked]) ul.navbar{padding:0;margin:0;flex-direction:column;gap:0}:host([stacked]) ul.navbar li{border-bottom:1px solid rgb(var(--zn-border-color));padding:var(--zn-base-px)}:host([stacked]) ul.navbar li.active:before,:host([stacked]) ul.navbar li.zn-tb-active:before{display:none}:host([stacked]) ul.navbar li.zn-tb-active{background-color:rgb(var(--zn-color-navigation))}:host([stacked]) ul.navbar li:hover:before{left:0;right:0}:host([stacked][slot=left]) ul.navbar--border{border-right:1px solid rgb(var(--zn-border-color))}:host([stacked][slot=right]) ul.navbar--border{border-left:1px solid rgb(var(--zn-border-color))}:host([panel]){background:rgb(var(--zn-panel))}:host([icon-bar]) ul.navbar{display:flex;flex-direction:row;gap:5px;padding:5px;border-radius:10px;margin:0;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));flex-basis:100%;min-height:50px}:host([icon-bar]) ul.navbar li{flex-direction:column;border-radius:6px;flex-basis:100%;padding:5px 10px}:host([icon-bar]) ul.navbar li:before{display:none !important}:host([icon-bar]) ul.navbar li.active,:host([icon-bar]) ul.navbar li.zn-tb-active{background:rgba(0,0,0,0.03);color:rgb(var(--zn-primary))}:host([icon-bar]) ul.navbar li:hover{color:rgb(var(--zn-primary))}:host([icon-bar]) .navbar__container{border-bottom:0}.navbar__container--stacked.navbar__container--icon-bar{display:inline}ul.navbar.navbar--stacked.navbar--icon-bar{flex-direction:column;padding:0;gap:0}ul.navbar.navbar--stacked.navbar--icon-bar li{border-radius:0;align-items:flex-start;padding:8px}:host(:not([stacked]):not([icon-bar])) ul.navbar{height:40px;align-self:end}:host(:not([stacked]):not([icon-bar]):not([icon-only])) ul.navbar{min-width:200px}:host([icon-only]:not([stacked]):not([icon-bar])) ul.navbar{height:36px}:host([pad]) ul.navbar{padding:var(--zn-spacing-medium) var(--zn-spacing-medium) 0}:host(:not([stacked])) ul.navbar>li{border-right-width:1px;border-top-width:1px}:host(:not([stacked])) ul.navbar>li:first-of-type{border-left-width:1px;border-top-left-radius:6px}:host(:not([stacked])) ul.navbar>li:last-of-type{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar>li.active,:host(:not([stacked])) ul.navbar>li.zn-tb-active{color:var(--zn-text-tab-link-active-color)}:host(:not([stacked])) ul.navbar:not(.has-hidden)>li.last-visible{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar.has-hidden>li.more{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar.more-only>li.more{border-left-width:1px;border-top-left-radius:6px}:host([icon-bar]:not([stacked])) ul.navbar>li{border-width:1px;border-radius:6px}:host{display:block;width:100%}:host .navbar__container{border-bottom:1px solid rgb(var(--zn-border-color))}:host ul.navbar{display:flex;flex-basis:fit-content;gap:0;list-style:none}:host ul.navbar li.more{display:none}:host ul.navbar.has-hidden li.more{display:flex}:host ul.navbar li.hidden{visibility:hidden;position:absolute;pointer-events:none}:host ul.navbar li .closer{display:none}:host ul.navbar li{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:var(--zn-text-tab-link-font-weight);padding:0 calc(var(--zn-base-px,8px) * 2);background:rgb(var(--zn-color-tab));transition:background-color 100ms ease-in-out;position:relative}:host ul.navbar li:hover{background:rgba(var(--zn-color-tab),0.5)}:host ul.navbar li:hover::after{content:"";position:absolute;inset:0;border-radius:inherit;background:rgb(var(--navbar-active-colour));z-index:-1}:host ul.navbar li{display:flex;align-items:center;justify-content:center;gap:3px;cursor:pointer}:host ul.navbar li zn-icon,:host ul.navbar li zn-tooltip{pointer-events:none}:host ul.navbar li#dropdown-item{flex-grow:1;justify-content:flex-start;padding:0}:host ul.navbar li#dropdown-item zn-dropdown{height:100%}:host ul.navbar li#dropdown-item zn-dropdown zn-button{height:100%}:host ul.navbar li::before{content:"";left:50%;right:50%;bottom:-1px;position:absolute;background-color:rgb(var(--navbar-active-colour));transition:all 300ms ease-in-out;height:1px}:host ul.navbar li:hover:before:not(#dropdown-item){left:-2px;right:-2px}:host ul.navbar li.active,:host ul.navbar li.zn-tb-active{background:rgb(var(--navbar-active-colour));font-size:var(--zn-text-tab-link-active-font-size);line-height:var(--zn-text-tab-link-active-line-height);font-weight:var(--zn-text-tab-link-active-font-weight);color:var(--zn-text-tab-link-active-color)}:host ul.navbar li.active::before,:host ul.navbar li.zn-tb-active::before{left:0;right:0}:host ul.navbar li[closable] .closer{display:block;margin-left:10px;pointer-events:all;opacity:0.8}:host ul.navbar li[closable] .closer:hover{opacity:1}:host([small]){width:unset}:host([small]) ul.navbar{padding:0;gap:0;border-radius:5px}:host([small]) ul.navbar li{border-left:1px solid rgb(var(--zn-border-color));border-radius:0}:host([small]) ul.navbar li:first-of-type{border-left:none}button[popovertarget]{display:flex;justify-content:center;align-items:center}:host([highlight]){margin:0 0}:host([highlight]) .navbar__container{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(var(--zn-border-color));height:40px}:host([highlight]):host([dropdown]) li{border-bottom:0}:host([highlight]) ul.navbar{gap:0;overflow:initial}:host([highlight]) ul.navbar li{padding-left:var(--zn-spacing-medium);padding-right:var(--zn-spacing-medium);padding-top:var(--zn-spacing-small);position:relative}:host([highlight]) ul.navbar li:hover::before,:host([highlight]) ul.navbar li::before:not(.active):not(#dropdown-item){display:none}:host([highlight]) ul.navbar li.active{border-right:1px solid rgb(var(--zn-border-color))}:host([highlight]) ul.navbar li.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background-color:rgb(var(--navbar-active-colour))}:host([highlight]) .active{background-color:rgb(var(--navbar-active-colour))}:host([dropdown]) ul.navbar li{border-bottom:1px solid rgb(var(--zn-border-color));border-right:1px solid rgb(var(--zn-border-color));border-right:1px solid rgb(var(--zn-border-color));border-left:0}:host([dropdown]) ul.navbar li.active{border-bottom:0}:host([dropdown]) ul.navbar li:before{display:none}:host([dropdown]) ul.navbar li#dropdown-item{border-right:0}.expandables{flex-grow:0;flex-shrink:0;margin:0;display:flex;gap:var(--zn-spacing-x-small);padding-right:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}.expandables:empty{display:none}:host ul.navbar li.more{padding:0;width:40px;min-width:40px}:host ul.navbar li.more zn-dropdown,:host ul.navbar li.more zn-button[slot=trigger]{height:100%;width:100%}:host ul.navbar li.more zn-button[slot=trigger] zn-icon{transition:transform 200ms ease-in-out;--icon-color:var(--zn-text-tab-link-color)}:host ul.navbar li.more zn-dropdown[open] zn-button[slot=trigger] zn-icon{transform:rotate(90deg);--icon-color:var(--zn-text-tab-link-active-color)}:host ul.navbar li.more:has(zn-dropdown[open]){background:rgb(var(--zn-panel))}:host ul.navbar li.more:has(zn-dropdown[open])::after{content:"";position:absolute;inset:auto 0 -1px 0;height:1px;border-radius:0;background:rgb(var(--zn-panel));z-index:1}:host ul.navbar li.more zn-button::part(base){height:100%;padding-left:0;padding-right:0;outline:none}:host ul.navbar li.more zn-button::part(base):hover{background-color:transparent}:host ul.navbar li.more ul#extended-menu{--navbar-more-trigger-width:40px;box-shadow:0 4px 8px -4px rgba(33,33,33,0.1);border:1px solid rgb(var(--zn-border-color));border-top:0;border-radius:0 0 var(--zn-border-radius) var(--zn-border-radius);overflow:hidden;position:relative;inset-inline-end:-1px}:host ul.navbar li.more ul#extended-menu::before{content:"";position:absolute;inset:0 calc(var(--navbar-more-trigger-width) - 2px) auto 0;height:1px;background:rgb(var(--zn-border-color));z-index:2}:host ul.navbar li.more ul#extended-menu{background:rgb(var(--zn-panel));display:flex;flex-direction:column;height:auto;width:-moz-fit-content;width:fit-content;min-width:var(--zn-size-spanel);margin:-1px 0 0;padding:1px}:host ul.navbar li.more ul#extended-menu li{justify-content:left;background:rgb(var(--zn-panel));font-size:var(--zn-text-menu-link-font-size);line-height:var(--zn-text-menu-link-line-height);font-weight:var(--zn-text-menu-link-font-weight);color:var(--zn-text-menu-link-color);padding:var(--zn-spacing-small) var(--zn-spacing-medium)}:host ul.navbar li.more ul#extended-menu li:hover{background:linear-gradient(rgba(0,0,0,0.06),rgba(0,0,0,0.06)),rgb(var(--zn-panel))}:host ul.navbar li.more ul#extended-menu li.active,:host ul.navbar li.more ul#extended-menu li.zn-tb-active{font-weight:var(--zn-text-tab-link-font-weight);color:var(--zn-text-tab-link-color)}:host ul.navbar li.more ul#extended-menu li.active::before,:host ul.navbar li.more ul#extended-menu li.zn-tb-active::before{left:0;right:0}`;var J4=200,We=class extends k{constructor(){super();this.navigation=[];this.flush=!1;this.gutter=!1;this.dropdown=[];this.manualAddItems=!1;this.isolated=!1;this.storeKey="";this.storeTtl=0;this._preItems=[];this._postItems=[];this._expanding=[];this._openedTabs=[];this._itemsObserver=new Pe(this,{target:null,config:{childList:!0},callback:()=>this._updateVisibility()});this._navItems=null;this._expandable=null;this._extendedMenu=null;this._cloneSources=new WeakMap;this._lightDomClones=new WeakMap;this._navItemsGap=0;this._expandableMargin=0;this._totalItemWidth=0;this._resizeFrame=null;this._expandingActionObserver=new Pe(this,{target:null,config:{attributes:!0,attributeFilter:["open","method","basis"]},callback:()=>this._scheduleResize()});this._scheduleResize=()=>{this._resizeFrame!==null&&cancelAnimationFrame(this._resizeFrame),this._resizeFrame=requestAnimationFrame(()=>{this._resizeFrame=null,this.handleResize()})};this._updateVisibility=()=>{if(this._expanding.length>0){this.style.display="";return}let t=this.itemCount();t===0||t<2&&this.hideOne?this.style.display="none":this.style.display=""};this.handleResize=()=>{if(this._extendedMenu===null||this.iconBar||this.stacked)return;let t=this._resolveAvailableWidth(),r=this._getExpandableWidth(t);if(this._totalItemWidth=this._measureTotalItemWidth(),this._totalItemWidth===0)return;let n=(this._navItems?.querySelectorAll("li.hidden").length||0)>0,a=this._navItems?this._getHorizontalSpacing(this._navItems):0,l=Math.max(t-r,J4)-a;if(!n&&this._totalItemWidth<=l){this._navItems?.classList.toggle("has-hidden",!1),this._syncLastVisibleItem();return}let p=this._getMoreItemWidth(),h=l-p,m=0,f=!1,b=this._navItems?.querySelectorAll(":scope > li")||[];this._extendedMenu.innerHTML="";for(let g of b){if(g.classList.contains("more")||!(g instanceof HTMLElement))continue;let v=this._getItemWidth(g);if(f||v+m>h){let y=g.cloneNode(!0);y.classList.remove("hidden"),this._cloneSources.set(y,g),y.addEventListener("click",()=>{g.click(),(this.shadowRoot?.querySelector("#extended-dropdown")||null)?.hide()}),this._extendedMenu?.appendChild(y),g.classList.add("hidden"),n=!0,f=!0}else g.classList.remove("hidden"),m+=v}this._navItems?.classList.toggle("has-hidden",n&&f),this._syncLastVisibleItem()};this._syncExtendedActive=()=>{let t=this._extendedMenu?.querySelectorAll(":scope > li")||[];for(let r of t){let n=this._cloneSources.get(r);n&&(r.classList.toggle("active",n.classList.contains("active")),r.classList.toggle("zn-tb-active",n.classList.contains("zn-tb-active")))}};this.handleClick=t=>{let r=t.composedPath(),n=this.isolated?"data-tab":"tab",a=r.find(s=>s instanceof HTMLElement&&s.tagName==="LI"&&(s.hasAttribute(n)||s.hasAttribute("tab-uri")));a&&(t.stopPropagation(),this.emit("zn-select",{detail:{item:a}}))};this._resizeController=new ht(this,{callback:()=>this._scheduleResize()}),new Pe(this,{config:{childList:!0},callback:t=>this._adoptNewLightItems(t)})}appendItem(t){this._appended=[...this._appended||[],t]}_cloneLightItem(t){let r=this._lightDomClones.get(t);if(r)return r;let n=t.cloneNode(!0);return this._cloneSources.set(n,t),this._lightDomClones.set(t,n),n.addEventListener("click",()=>t.click()),n}_syncLightDomItems(){let t=[],r=[];Array.from(this.children).forEach(n=>{if(!(n instanceof HTMLElement)||n.tagName!=="LI")return;let a=this._cloneLightItem(n);n.hasAttribute("suffix")?r.push(a):t.push(a)}),this._preItems=t,this._postItems=r}addExpandingAction(t){this._expanding.includes(t)||(this._expanding=[...this._expanding,t]),t.parentElement!==this&&this.appendChild(t),this.requestUpdate(),this._updateVisibility(),this._observeExpandingAction(t),this._scheduleResize()}_observeExpandingAction(t){this._expandingActionObserver.observe(t),this._resizeController.observe(t)}_adoptNewLightItems(t){for(let r of t)for(let n of Array.from(r.addedNodes))n instanceof Element&&n.tagName==="ZN-EXPANDING-ACTION"&&this.addExpandingAction(n);t.some(r=>Array.from(r.addedNodes).some(n=>n instanceof HTMLLIElement)||Array.from(r.removedNodes).some(n=>n instanceof HTMLLIElement))&&(this._syncLightDomItems(),this.requestUpdate())}connectedCallback(){super.connectedCallback(),this._syncLightDomItems(),this._expanding=Array.from(this.querySelectorAll("zn-expanding-action")),this.masterId||(this.masterId=this.storeKey||Math.floor(Math.random()*1e6).toString()),this.storeKey&&this.storeTtl===0&&(this.storeTtl=300),this._store=new kr(this.localStorage?window.localStorage:window.sessionStorage,"znnav:",this.storeTtl)}itemCount(){return(this._navItems?.querySelectorAll(":scope > li:not(.more):not(#dropdown-item)")||[]).length}_resolveAvailableWidth(){let t=this.parentElement,r=this.offsetWidth||t?.offsetWidth||0;for(;r===0&&t?.parentElement;)t=t.parentElement,r=t.offsetWidth||0;return r}_measureTotalItemWidth(){let t=this._navItems?.querySelectorAll(":scope > li")||[],r=0;for(let n of t)n.classList.contains("more")||!(n instanceof HTMLElement)||(r+=this._getItemWidth(n));return r}_getItemWidth(t){return(t.getBoundingClientRect().width||t.offsetWidth||0)+this._navItemsGap+5}_getHorizontalSpacing(t){let r=getComputedStyle(t);return(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)}_getMoreItemWidth(){let t=this._navItems?.querySelector(":scope > li.more");if(!t||!this._navItems)return 0;let r=this._getItemWidth(t);if(r>0)return r;let n=this._navItems.classList.contains("has-hidden");return this._navItems.classList.add("has-hidden"),r=this._getItemWidth(t),this._navItems.classList.toggle("has-hidden",n),r}_syncLastVisibleItem(){let t=this._navItems?.querySelectorAll(":scope > li")||[],r=null;for(let n of t)n.classList.remove("last-visible"),!(n.classList.contains("more")||n.classList.contains("hidden")||n.id==="dropdown-item")&&(r=n);r?.classList.add("last-visible"),this._navItems?.classList.toggle("more-only",!r&&this._navItems.classList.contains("has-hidden"))}_getExpandableWidth(t){let r=this._expandableMargin+(this._expandable?.getBoundingClientRect().width||this._expandable?.offsetWidth||0),n=0;for(let a of this._expanding){if(!(a instanceof HTMLElement))continue;let s=a.method||a.getAttribute("method")||"drop",l=!!(a.open||a.hasAttribute("open"));if(s!=="fill"||!l)continue;let h=a.shadowRoot?.querySelector(".expanding-action--fill")?.getBoundingClientRect().width||0;n=Math.max(n,h,Math.min(t,800))}return Math.max(r,n)}addItem(t,r=!0){let n=t.getAttribute("tab-uri");if(typeof n!="string"||this._openedTabs.includes(n))return;this._openedTabs.push(n);let a=this.shadowRoot?.querySelector("ul"),s=this.shadowRoot?.querySelector('[id="dropdown-item"]');r&&s&&(s.querySelector("zn-dropdown")?.hide(),this._saveTabToStorage({uri:n,title:t.innerText})),s?a?.insertBefore(t,s):a?.appendChild(t),this._updateVisibility()}firstUpdated(t){if(super.firstUpdated(t),this._extendedMenu=this.shadowRoot?.querySelector("#extended-menu")||null,this.shadowRoot?.querySelector("#extended-dropdown")?.addEventListener("zn-show",this._syncExtendedActive),this._expandable=this.shadowRoot?.querySelector(".navbar__container > div.expandables")||null,this._expandable){let r=getComputedStyle(this._expandable);this._expandableMargin=(parseFloat(r.marginLeft)||0)+(parseFloat(r.marginRight)||0),this._resizeController.observe(this._expandable)}if(this._navItems=this.shadowRoot?.querySelector(".navbar__container > ul")||null,this._navItems){let r=getComputedStyle(this._navItems);this._navItemsGap=parseFloat(r.columnGap)||0,this._resizeController.observe(this._navItems),this._navItems.addEventListener("click",n=>{let a=n.target.closest("li[tab-uri]");if(a&&this.storeKey){let s=a.getAttribute("tab-uri");s&&this._store.set(this.storeKey+":active",s)}})}if(this._loadStoredTabs(),this._navItems&&this._itemsObserver.observe(this._navItems),this._expanding.forEach(r=>this._observeExpandingAction(r)),this._updateVisibility(),setTimeout(()=>{this.handleResize()},100),this.dropdown.length>0){let r=this.shadowRoot?.querySelector("zn-menu");r&&r.addEventListener("zn-menu-select",n=>{if(this.manualAddItems)return;if(n.detail.element.hasAttribute("data-path")){let s=document.createElement("li");s.setAttribute("tab-uri",n.detail.element.getAttribute("data-path")),s.innerText=n.detail.value,this.addItem(s,!0),setTimeout(()=>{s.click()},300)}})}}_loadStoredTabs(){if(!this.storeKey||!this._store)return;let t=this._store.get(this.storeKey),r=this._store.get(this.storeKey+":active");if(t)try{let n=JSON.parse(t);Array.isArray(n)&&n.forEach(a=>{if(a.uri&&a.title){let s=document.createElement("li");s.setAttribute("tab-uri",a.uri),s.innerText=a.title,this.addItem(s,!1),r&&a.uri===r&&setTimeout(()=>{s.click()},100)}})}catch(n){console.warn("ZnNavbar: Failed to load stored tabs",n)}}_saveTabToStorage(t){if(!(!this.storeKey||!this._store))try{let r=this._store.get(this.storeKey),n=[];r&&(n=JSON.parse(r)),n.some(a=>a.uri===t.uri)||(n.push(t),this._store.set(this.storeKey,JSON.stringify(n)))}catch(r){console.warn("ZnNavbar: Failed to save tab",r)}}updated(t){super.updated(t),(t.has("hideOne")||t.has("navigation")||t.has("_appended"))&&this._updateVisibility()}render(){return this.navigation||(this.navigation=[]),u`
|
|
1861
|
+
</style>${h}`:h}};Kt.styles=z(s1),c([d({attribute:"full-location"})],Kt.prototype,"fullLocation",2),c([d({attribute:"entity-id"})],Kt.prototype,"entityId",2),c([d({attribute:"entity-id-show",type:Boolean})],Kt.prototype,"entityIdShow",2),c([d({type:Boolean})],Kt.prototype,"transparent",2),c([d()],Kt.prototype,"caption",2),c([d()],Kt.prototype,"icon",2),c([d({type:Array})],Kt.prototype,"navigation",2),c([d({attribute:"full-width",type:Boolean})],Kt.prototype,"fullWidth",2),c([d({attribute:"previous-path"})],Kt.prototype,"previousPath",2),c([d({attribute:"previous-target"})],Kt.prototype,"previousTarget",2),c([d({attribute:"hide-breadcrumb",type:Boolean})],Kt.prototype,"hideBreadcrumb",2),c([K("navigation",{waitUntilFirstUpdate:!0})],Kt.prototype,"updateNav",1);var X4=Kt;Kt.define("zn-header");var l1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host{display:block;--navbar-active-colour:var(--zn-active-nav-background,var(--zn-page-content-background,var(--zn-page-surface-background,var(--zn-body))))}:host ul.navbar{padding:0;margin-inline:var(--zn-spacing-small)}:host ul.navbar--color-body{background-color:rgb(var(--zn-color-body))}:host([gutter]) ul.navbar{margin:0 calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host([hover]){position:absolute;transform:translateY(-100%)}:host([hover]) ul.navbar{position:relative}:host([hover]) ul.navbar li{z-index:2}:host([hover]) ul.navbar::after{z-index:1;content:"";position:absolute;inset:0;border-radius:6px 6px 0 0;background-color:rgb(var(--zn-body))}:host([hover]) ul.navbar::before{z-index:1;content:"";position:absolute;top:-2px;right:-2px;left:-2px;bottom:0;border-radius:10px;backdrop-filter:blur(2px) opacity(0.8)}:host([icon-only]) ul.navbar li{padding:0;width:36px;min-width:36px;justify-content:center}:host([icon-only]) ul.navbar li:hover:not(.active):not(.zn-tb-active):not(.more)::after{display:none}.navbar__container{display:flex;flex-direction:row;position:relative;justify-content:space-between}.navbar{margin:0}:host:not([stacked]) .navbar{margin:0 0 0 calc(var(--zn-gutter,0) + var(--zn-base-gap,0));padding-left:0}:host:not([stacked]) .navbar--flush{padding:0}ul.navbar li{padding-top:0;font-size:var(--zn-text-tab-link-font-size);line-height:var(--zn-text-tab-link-line-height);font-weight:var(--zn-text-tab-link-font-weight);white-space:nowrap;color:var(--zn-text-tab-link-color)}ul.navbar li a{text-decoration:none;color:inherit}:host-context(zn-page) ul.navbar li:not(.active):not(.zn-tb-active){background:var(--navbar-page-inactive-tab-background,transparent);backdrop-filter:var(--navbar-page-inactive-tab-filter,none)}:host([baseless]) .navbar__container{border-bottom:none}:host([stacked]){width:unset;height:100%;margin:0 0}:host([stacked]) .navbar__container{border-bottom:none;height:100%}:host([stacked]) ul.navbar.navbar--no-pad li{padding:0 !important}:host([stacked]) ul.navbar{padding:0;margin:0;flex-direction:column;gap:0}:host([stacked]) ul.navbar li{border-bottom:1px solid rgb(var(--zn-border-color));padding:var(--zn-base-px)}:host([stacked]) ul.navbar li.active:before,:host([stacked]) ul.navbar li.zn-tb-active:before{display:none}:host([stacked]) ul.navbar li.zn-tb-active{background-color:rgb(var(--zn-color-navigation))}:host([stacked]) ul.navbar li:hover:before{left:0;right:0}:host([stacked][slot=left]) ul.navbar--border{border-right:1px solid rgb(var(--zn-border-color))}:host([stacked][slot=right]) ul.navbar--border{border-left:1px solid rgb(var(--zn-border-color))}:host([panel]){background:rgb(var(--zn-panel))}:host([icon-bar]) ul.navbar{display:flex;flex-direction:row;gap:5px;padding:5px;border-radius:10px;margin:0;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));flex-basis:100%;min-height:50px}:host([icon-bar]) ul.navbar li{flex-direction:column;border-radius:6px;flex-basis:100%;padding:5px 10px}:host([icon-bar]) ul.navbar li:before{display:none !important}:host([icon-bar]) ul.navbar li.active,:host([icon-bar]) ul.navbar li.zn-tb-active{background:rgba(0,0,0,0.03);color:rgb(var(--zn-primary))}:host([icon-bar]) ul.navbar li:hover{color:rgb(var(--zn-primary))}:host([icon-bar]) .navbar__container{border-bottom:0}.navbar__container--stacked.navbar__container--icon-bar{display:inline}ul.navbar.navbar--stacked.navbar--icon-bar{flex-direction:column;padding:0;gap:0}ul.navbar.navbar--stacked.navbar--icon-bar li{border-radius:0;align-items:flex-start;padding:8px}:host(:not([stacked]):not([icon-bar])) ul.navbar{height:40px;align-self:end}:host(:not([stacked]):not([icon-bar]):not([icon-only])) ul.navbar{min-width:200px}:host([icon-only]:not([stacked]):not([icon-bar])) ul.navbar{height:36px}:host([pad]) ul.navbar{padding:var(--zn-spacing-medium) var(--zn-spacing-medium) 0}:host(:not([stacked])) ul.navbar>li{border-right-width:1px;border-top-width:1px}:host(:not([stacked])) ul.navbar>li:first-of-type{border-left-width:1px;border-top-left-radius:6px}:host(:not([stacked])) ul.navbar>li:last-of-type{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar>li.active,:host(:not([stacked])) ul.navbar>li.zn-tb-active{color:var(--zn-text-tab-link-active-color)}:host(:not([stacked])) ul.navbar:not(.has-hidden)>li.last-visible{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar.has-hidden>li.more{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar.more-only>li.more{border-left-width:1px;border-top-left-radius:6px}:host([icon-bar]:not([stacked])) ul.navbar>li{border-width:1px;border-radius:6px}:host{display:block;width:100%}:host .navbar__container{border-bottom:1px solid rgb(var(--zn-border-color))}:host ul.navbar{display:flex;flex-basis:fit-content;gap:0;list-style:none}:host ul.navbar li.more{display:none}:host ul.navbar.has-hidden li.more{display:flex}:host ul.navbar li.hidden{visibility:hidden;position:absolute;pointer-events:none}:host ul.navbar li .closer{display:none}:host ul.navbar li{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:var(--zn-text-tab-link-font-weight);padding:0 calc(var(--zn-base-px,8px) * 2);background:rgb(var(--zn-color-tab));transition:background-color 100ms ease-in-out;position:relative}:host ul.navbar li:hover{background:rgba(var(--zn-color-tab),0.5)}:host ul.navbar li:hover::after{content:"";position:absolute;inset:0;border-radius:inherit;background:rgb(var(--navbar-active-colour));z-index:-1}:host ul.navbar li{display:flex;align-items:center;justify-content:center;gap:3px;cursor:pointer}:host ul.navbar li zn-icon,:host ul.navbar li zn-tooltip{pointer-events:none}:host ul.navbar li#dropdown-item{flex-grow:1;justify-content:flex-start;padding:0}:host ul.navbar li#dropdown-item zn-dropdown{height:100%}:host ul.navbar li#dropdown-item zn-dropdown zn-button{height:100%}:host ul.navbar li::before{content:"";left:50%;right:50%;bottom:-1px;position:absolute;background-color:rgb(var(--navbar-active-colour));transition:all 300ms ease-in-out;height:1px}:host ul.navbar li:hover:before:not(#dropdown-item){left:-2px;right:-2px}:host ul.navbar li.active,:host ul.navbar li.zn-tb-active{background:rgb(var(--navbar-active-colour));font-size:var(--zn-text-tab-link-active-font-size);line-height:var(--zn-text-tab-link-active-line-height);font-weight:var(--zn-text-tab-link-active-font-weight);color:var(--zn-text-tab-link-active-color)}:host ul.navbar li.active::before,:host ul.navbar li.zn-tb-active::before{left:0;right:0}:host ul.navbar li[closable] .closer{display:block;margin-left:10px;pointer-events:all;opacity:0.8}:host ul.navbar li[closable] .closer:hover{opacity:1}:host([small]){width:unset}:host([small]) ul.navbar{padding:0;gap:0;border-radius:5px}:host([small]) ul.navbar li{border-left:1px solid rgb(var(--zn-border-color));border-radius:0}:host([small]) ul.navbar li:first-of-type{border-left:none}button[popovertarget]{display:flex;justify-content:center;align-items:center}:host([highlight]){margin:0 0}:host([highlight]) .navbar__container{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(var(--zn-border-color));height:40px}:host([highlight]):host([dropdown]) li{border-bottom:0}:host([highlight]) ul.navbar{gap:0;overflow:initial}:host([highlight]) ul.navbar li{padding-left:var(--zn-spacing-medium);padding-right:var(--zn-spacing-medium);padding-top:var(--zn-spacing-small);position:relative}:host([highlight]) ul.navbar li:hover::before,:host([highlight]) ul.navbar li::before:not(.active):not(#dropdown-item){display:none}:host([highlight]) ul.navbar li.active{border-right:1px solid rgb(var(--zn-border-color))}:host([highlight]) ul.navbar li.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background-color:rgb(var(--navbar-active-colour))}:host([highlight]) .active{background-color:rgb(var(--navbar-active-colour))}:host([dropdown]) ul.navbar li{border-bottom:1px solid rgb(var(--zn-border-color));border-right:1px solid rgb(var(--zn-border-color));border-right:1px solid rgb(var(--zn-border-color));border-left:0}:host([dropdown]) ul.navbar li.active{border-bottom:0}:host([dropdown]) ul.navbar li:before{display:none}:host([dropdown]) ul.navbar li#dropdown-item{border-right:0}.expandables{flex-grow:0;flex-shrink:0;margin:0;display:flex;gap:var(--zn-spacing-x-small);padding-right:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}.expandables:empty{display:none}:host ul.navbar li.more{padding:0;width:40px;min-width:40px}:host ul.navbar li.more zn-dropdown,:host ul.navbar li.more zn-button[slot=trigger]{height:100%;width:100%}:host ul.navbar li.more zn-button[slot=trigger] zn-icon{transition:transform 200ms ease-in-out;--icon-color:var(--zn-text-tab-link-color)}:host ul.navbar li.more zn-dropdown[open] zn-button[slot=trigger] zn-icon{transform:rotate(90deg);--icon-color:var(--zn-text-tab-link-active-color)}:host ul.navbar li.more:has(zn-dropdown[open]){background:rgb(var(--zn-panel))}:host ul.navbar li.more:has(zn-dropdown[open])::after{content:"";position:absolute;inset:auto 0 -1px 0;height:1px;border-radius:0;background:rgb(var(--zn-panel));z-index:1}:host ul.navbar li.more zn-button::part(base){height:100%;padding-left:0;padding-right:0;outline:none}:host ul.navbar li.more zn-button::part(base):hover{background-color:transparent}:host ul.navbar li.more ul#extended-menu{--navbar-more-trigger-width:40px;box-shadow:0 4px 8px -4px rgba(33,33,33,0.1);border:1px solid rgb(var(--zn-border-color));border-top:0;border-radius:0 0 var(--zn-border-radius) var(--zn-border-radius);overflow:hidden;position:relative;inset-inline-end:-1px}:host ul.navbar li.more ul#extended-menu::before{content:"";position:absolute;inset:0 calc(var(--navbar-more-trigger-width) - 2px) auto 0;height:1px;background:rgb(var(--zn-border-color));z-index:2}:host ul.navbar li.more ul#extended-menu{background:rgb(var(--zn-panel));display:flex;flex-direction:column;height:auto;width:-moz-fit-content;width:fit-content;min-width:var(--zn-size-spanel);margin:-1px 0 0;padding:1px}:host ul.navbar li.more ul#extended-menu li{justify-content:left;background:rgb(var(--zn-panel));font-size:var(--zn-text-menu-link-font-size);line-height:var(--zn-text-menu-link-line-height);font-weight:var(--zn-text-menu-link-font-weight);color:var(--zn-text-menu-link-color);padding:var(--zn-spacing-small) var(--zn-spacing-medium)}:host ul.navbar li.more ul#extended-menu li:hover{background:linear-gradient(rgba(0,0,0,0.06),rgba(0,0,0,0.06)),rgb(var(--zn-panel))}:host ul.navbar li.more ul#extended-menu li.active,:host ul.navbar li.more ul#extended-menu li.zn-tb-active{font-weight:var(--zn-text-tab-link-font-weight);color:var(--zn-text-tab-link-color)}:host ul.navbar li.more ul#extended-menu li.active::before,:host ul.navbar li.more ul#extended-menu li.zn-tb-active::before{left:0;right:0}`;var J4=200,We=class extends k{constructor(){super();this.navigation=[];this.flush=!1;this.gutter=!1;this.dropdown=[];this.manualAddItems=!1;this.isolated=!1;this.storeKey="";this.storeTtl=0;this._preItems=[];this._postItems=[];this._expanding=[];this._openedTabs=[];this._itemsObserver=new Pe(this,{target:null,config:{childList:!0},callback:()=>this._updateVisibility()});this._navItems=null;this._expandable=null;this._extendedMenu=null;this._cloneSources=new WeakMap;this._lightDomClones=new WeakMap;this._navItemsGap=0;this._expandableMargin=0;this._totalItemWidth=0;this._resizeFrame=null;this._expandingActionObserver=new Pe(this,{target:null,config:{attributes:!0,attributeFilter:["open","method","basis"]},callback:()=>this._scheduleResize()});this._scheduleResize=()=>{this._resizeFrame!==null&&cancelAnimationFrame(this._resizeFrame),this._resizeFrame=requestAnimationFrame(()=>{this._resizeFrame=null,this.handleResize()})};this._updateVisibility=()=>{if(this._expanding.length>0){this.style.display="";return}let t=this.itemCount();t===0||t<2&&this.hideOne?this.style.display="none":this.style.display=""};this.handleResize=()=>{if(this._extendedMenu===null||this.iconBar||this.stacked)return;let t=this._resolveAvailableWidth(),r=this._getExpandableWidth(t);if(this._totalItemWidth=this._measureTotalItemWidth(),this._totalItemWidth===0)return;let n=(this._navItems?.querySelectorAll("li.hidden").length||0)>0,a=this._navItems?this._getHorizontalSpacing(this._navItems):0,l=Math.max(t-r,J4)-a;if(!n&&this._totalItemWidth<=l){this._navItems?.classList.toggle("has-hidden",!1),this._syncLastVisibleItem();return}let p=this._getMoreItemWidth(),h=l-p,m=0,f=!1,b=this._navItems?.querySelectorAll(":scope > li")||[];this._extendedMenu.innerHTML="";for(let g of b){if(g.classList.contains("more")||!(g instanceof HTMLElement))continue;let v=this._getItemWidth(g);if(f||v+m>h){let y=g.cloneNode(!0);y.classList.remove("hidden"),this._cloneSources.set(y,g),y.addEventListener("click",()=>{g.click(),(this.shadowRoot?.querySelector("#extended-dropdown")||null)?.hide()}),this._extendedMenu?.appendChild(y),g.classList.add("hidden"),n=!0,f=!0}else g.classList.remove("hidden"),m+=v}this._navItems?.classList.toggle("has-hidden",n&&f),this._syncLastVisibleItem()};this._syncExtendedActive=()=>{let t=this._extendedMenu?.querySelectorAll(":scope > li")||[];for(let r of t){let n=this._cloneSources.get(r);n&&(r.classList.toggle("active",n.classList.contains("active")),r.classList.toggle("zn-tb-active",n.classList.contains("zn-tb-active")))}};this.handleClick=t=>{let r=t.composedPath(),n=this.isolated?"data-tab":"tab",a=r.find(s=>s instanceof HTMLElement&&s.tagName==="LI"&&(s.hasAttribute(n)||s.hasAttribute("tab-uri")));a&&(t.stopPropagation(),this.emit("zn-select",{detail:{item:a}}))};this._resizeController=new ut(this,{callback:()=>this._scheduleResize()}),new Pe(this,{config:{childList:!0},callback:t=>this._adoptNewLightItems(t)})}appendItem(t){this._appended=[...this._appended||[],t]}_cloneLightItem(t){let r=this._lightDomClones.get(t);if(r)return r;let n=t.cloneNode(!0);return this._cloneSources.set(n,t),this._lightDomClones.set(t,n),n.addEventListener("click",()=>t.click()),n}_syncLightDomItems(){let t=[],r=[];Array.from(this.children).forEach(n=>{if(!(n instanceof HTMLElement)||n.tagName!=="LI")return;let a=this._cloneLightItem(n);n.hasAttribute("suffix")?r.push(a):t.push(a)}),this._preItems=t,this._postItems=r}addExpandingAction(t){this._expanding.includes(t)||(this._expanding=[...this._expanding,t]),t.parentElement!==this&&this.appendChild(t),this.requestUpdate(),this._updateVisibility(),this._observeExpandingAction(t),this._scheduleResize()}_observeExpandingAction(t){this._expandingActionObserver.observe(t),this._resizeController.observe(t)}_adoptNewLightItems(t){for(let r of t)for(let n of Array.from(r.addedNodes))n instanceof Element&&n.tagName==="ZN-EXPANDING-ACTION"&&this.addExpandingAction(n);t.some(r=>Array.from(r.addedNodes).some(n=>n instanceof HTMLLIElement)||Array.from(r.removedNodes).some(n=>n instanceof HTMLLIElement))&&(this._syncLightDomItems(),this.requestUpdate())}connectedCallback(){super.connectedCallback(),this._syncLightDomItems(),this._expanding=Array.from(this.querySelectorAll("zn-expanding-action")),this.masterId||(this.masterId=this.storeKey||Math.floor(Math.random()*1e6).toString()),this.storeKey&&this.storeTtl===0&&(this.storeTtl=300),this._store=new kr(this.localStorage?window.localStorage:window.sessionStorage,"znnav:",this.storeTtl)}itemCount(){return(this._navItems?.querySelectorAll(":scope > li:not(.more):not(#dropdown-item)")||[]).length}_resolveAvailableWidth(){let t=this.parentElement,r=this.offsetWidth||t?.offsetWidth||0;for(;r===0&&t?.parentElement;)t=t.parentElement,r=t.offsetWidth||0;return r}_measureTotalItemWidth(){let t=this._navItems?.querySelectorAll(":scope > li")||[],r=0;for(let n of t)n.classList.contains("more")||!(n instanceof HTMLElement)||(r+=this._getItemWidth(n));return r}_getItemWidth(t){return(t.getBoundingClientRect().width||t.offsetWidth||0)+this._navItemsGap+5}_getHorizontalSpacing(t){let r=getComputedStyle(t);return(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)}_getMoreItemWidth(){let t=this._navItems?.querySelector(":scope > li.more");if(!t||!this._navItems)return 0;let r=this._getItemWidth(t);if(r>0)return r;let n=this._navItems.classList.contains("has-hidden");return this._navItems.classList.add("has-hidden"),r=this._getItemWidth(t),this._navItems.classList.toggle("has-hidden",n),r}_syncLastVisibleItem(){let t=this._navItems?.querySelectorAll(":scope > li")||[],r=null;for(let n of t)n.classList.remove("last-visible"),!(n.classList.contains("more")||n.classList.contains("hidden")||n.id==="dropdown-item")&&(r=n);r?.classList.add("last-visible"),this._navItems?.classList.toggle("more-only",!r&&this._navItems.classList.contains("has-hidden"))}_getExpandableWidth(t){let r=this._expandableMargin+(this._expandable?.getBoundingClientRect().width||this._expandable?.offsetWidth||0),n=0;for(let a of this._expanding){if(!(a instanceof HTMLElement))continue;let s=a.method||a.getAttribute("method")||"drop",l=!!(a.open||a.hasAttribute("open"));if(s!=="fill"||!l)continue;let h=a.shadowRoot?.querySelector(".expanding-action--fill")?.getBoundingClientRect().width||0;n=Math.max(n,h,Math.min(t,800))}return Math.max(r,n)}addItem(t,r=!0){let n=t.getAttribute("tab-uri");if(typeof n!="string"||this._openedTabs.includes(n))return;this._openedTabs.push(n);let a=this.shadowRoot?.querySelector("ul"),s=this.shadowRoot?.querySelector('[id="dropdown-item"]');r&&s&&(s.querySelector("zn-dropdown")?.hide(),this._saveTabToStorage({uri:n,title:t.innerText})),s?a?.insertBefore(t,s):a?.appendChild(t),this._updateVisibility()}firstUpdated(t){if(super.firstUpdated(t),this._extendedMenu=this.shadowRoot?.querySelector("#extended-menu")||null,this.shadowRoot?.querySelector("#extended-dropdown")?.addEventListener("zn-show",this._syncExtendedActive),this._expandable=this.shadowRoot?.querySelector(".navbar__container > div.expandables")||null,this._expandable){let r=getComputedStyle(this._expandable);this._expandableMargin=(parseFloat(r.marginLeft)||0)+(parseFloat(r.marginRight)||0),this._resizeController.observe(this._expandable)}if(this._navItems=this.shadowRoot?.querySelector(".navbar__container > ul")||null,this._navItems){let r=getComputedStyle(this._navItems);this._navItemsGap=parseFloat(r.columnGap)||0,this._resizeController.observe(this._navItems),this._navItems.addEventListener("click",n=>{let a=n.target.closest("li[tab-uri]");if(a&&this.storeKey){let s=a.getAttribute("tab-uri");s&&this._store.set(this.storeKey+":active",s)}})}if(this._loadStoredTabs(),this._navItems&&this._itemsObserver.observe(this._navItems),this._expanding.forEach(r=>this._observeExpandingAction(r)),this._updateVisibility(),setTimeout(()=>{this.handleResize()},100),this.dropdown.length>0){let r=this.shadowRoot?.querySelector("zn-menu");r&&r.addEventListener("zn-menu-select",n=>{if(this.manualAddItems)return;if(n.detail.element.hasAttribute("data-path")){let s=document.createElement("li");s.setAttribute("tab-uri",n.detail.element.getAttribute("data-path")),s.innerText=n.detail.value,this.addItem(s,!0),setTimeout(()=>{s.click()},300)}})}}_loadStoredTabs(){if(!this.storeKey||!this._store)return;let t=this._store.get(this.storeKey),r=this._store.get(this.storeKey+":active");if(t)try{let n=JSON.parse(t);Array.isArray(n)&&n.forEach(a=>{if(a.uri&&a.title){let s=document.createElement("li");s.setAttribute("tab-uri",a.uri),s.innerText=a.title,this.addItem(s,!1),r&&a.uri===r&&setTimeout(()=>{s.click()},100)}})}catch(n){console.warn("ZnNavbar: Failed to load stored tabs",n)}}_saveTabToStorage(t){if(!(!this.storeKey||!this._store))try{let r=this._store.get(this.storeKey),n=[];r&&(n=JSON.parse(r)),n.some(a=>a.uri===t.uri)||(n.push(t),this._store.set(this.storeKey,JSON.stringify(n)))}catch(r){console.warn("ZnNavbar: Failed to save tab",r)}}updated(t){super.updated(t),(t.has("hideOne")||t.has("navigation")||t.has("_appended"))&&this._updateVisibility()}render(){return this.navigation||(this.navigation=[]),u`
|
|
1861
1862
|
<div part="container" class="${M({navbar__container:!0,"navbar__container--stacked":this.stacked,"navbar__container--icon-bar":this.iconBar})}">
|
|
1862
1863
|
<ul @click="${this.handleClick}" part="navbar" class="${M({navbar:!0,"navbar--slim":this.slim,"navbar--border":this.border,"navbar--flush":this.flush,"navbar--no-pad":this.noPad,"navbar--stacked":this.stacked,"navbar--icon-bar":this.iconBar,[`navbar--color-${this.color}`]:!!this.color})}">
|
|
1863
1864
|
${this._preItems}
|
|
@@ -1900,7 +1901,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
1900
1901
|
`:""}
|
|
1901
1902
|
</div>
|
|
1902
1903
|
<slot name="bottom" part="bottom"></slot>`}};We.styles=z(l1),We.dependencies={"zn-dropdown":ur},c([d({attribute:"navigation",type:Array})],We.prototype,"navigation",2),c([d({attribute:"full-width",type:Boolean,reflect:!0})],We.prototype,"fullWidth",2),c([d({attribute:"icon-bar",type:Boolean,reflect:!0})],We.prototype,"iconBar",2),c([d({attribute:"slim",type:Boolean,reflect:!0})],We.prototype,"slim",2),c([d({attribute:"border",type:Boolean,reflect:!0})],We.prototype,"border",2),c([d({attribute:"hide-one",type:Boolean,reflect:!0})],We.prototype,"hideOne",2),c([d({attribute:"flush",type:Boolean,reflect:!0})],We.prototype,"flush",2),c([d({attribute:"gutter",type:Boolean,reflect:!0})],We.prototype,"gutter",2),c([d({type:Boolean})],We.prototype,"stacked",2),c([d({type:Array})],We.prototype,"dropdown",2),c([d({attribute:"no-pad",type:Boolean})],We.prototype,"noPad",2),c([d({attribute:"manual-add-items",type:Boolean})],We.prototype,"manualAddItems",2),c([d({type:Boolean})],We.prototype,"isolated",2),c([d({reflect:!0})],We.prototype,"color",2),c([d({attribute:"master-id",reflect:!0})],We.prototype,"masterId",2),c([d({attribute:"store-key",type:String})],We.prototype,"storeKey",2),c([d({attribute:"store-ttl",type:Number,reflect:!0})],We.prototype,"storeTtl",2),c([d({attribute:"local-storage",type:Boolean,reflect:!0})],We.prototype,"localStorage",2),c([d()],We.prototype,"_appended",2);var Ca=We;We.define("zn-navbar");function Zd(o){function i(he,ae){return he<<ae|he>>>32-ae}function t(he,ae){let _e,P,x,E,w;return x=he&2147483648,E=ae&2147483648,_e=he&1073741824,P=ae&1073741824,w=(he&1073741823)+(ae&1073741823),_e&&P?w^2147483648^x^E:_e||P?w?w^3221225472^x^E:w^1073741824^x^E:w^x^E}function r(he,ae,_e){return he&ae|~he&_e}function n(he,ae,_e){return he&_e|ae&~_e}function a(he,ae,_e){return he^ae^_e}function s(he,ae,_e){return ae^(he|~_e)}function l(he,ae,_e,P,x,E,w){return he=t(he,t(t(r(ae,_e,P),x),w)),t(i(he,E),ae)}function p(he,ae,_e,P,x,E,w){return he=t(he,t(t(n(ae,_e,P),x),w)),t(i(he,E),ae)}function h(he,ae,_e,P,x,E,w){return he=t(he,t(t(a(ae,_e,P),x),w)),t(i(he,E),ae)}function m(he,ae,_e,P,x,E,w){return he=t(he,t(t(s(ae,_e,P),x),w)),t(i(he,E),ae)}function f(he){for(var ae,_e=he.length,P=_e+8,x=(P-P%64)/64,E=(x+1)*16,w=Array(E-1),R=0,q=0;q<_e;)ae=(q-q%4)/4,R=q%4*8,w[ae]=w[ae]|he.charCodeAt(q)<<R,q++;return ae=(q-q%4)/4,R=q%4*8,w[ae]=w[ae]|128<<R,w[E-2]=_e<<3,w[E-1]=_e>>>29,w}function b(he){var ae="",_e="",P,x;for(x=0;x<=3;x++)P=he>>>x*8&255,_e="0"+P.toString(16),ae=ae+_e.substr(_e.length-2,2);return ae}function g(he){he=he.replace(/\r\n/g,`
|
|
1903
|
-
`);let ae="";for(let _e=0;_e<he.length;_e++){let P=he.charCodeAt(_e);P<128?ae+=String.fromCharCode(P):P>127&&P<2048?(ae+=String.fromCharCode(P>>6|192),ae+=String.fromCharCode(P&63|128)):(ae+=String.fromCharCode(P>>12|224),ae+=String.fromCharCode(P>>6&63|128),ae+=String.fromCharCode(P&63|128))}return ae}let v,y,C,T,O,U,D,S,$,L,W=7,oe=12,xe=17,Re=22,Ne=5,nt=9,tr=14,Pr=20,wr=4,Nt=11,rr=16,Lt=23,uo=6,Qa=10,ue=15,Yi=21;for(o=g(o),v=f(o),D=1732584193,S=4023233417,$=2562383102,L=271733878,y=0;y<v.length;y+=16)C=D,T=S,O=$,U=L,D=l(D,S,$,L,v[y+0],W,3614090360),L=l(L,D,S,$,v[y+1],oe,3905402710),$=l($,L,D,S,v[y+2],xe,606105819),S=l(S,$,L,D,v[y+3],Re,3250441966),D=l(D,S,$,L,v[y+4],W,4118548399),L=l(L,D,S,$,v[y+5],oe,1200080426),$=l($,L,D,S,v[y+6],xe,2821735955),S=l(S,$,L,D,v[y+7],Re,4249261313),D=l(D,S,$,L,v[y+8],W,1770035416),L=l(L,D,S,$,v[y+9],oe,2336552879),$=l($,L,D,S,v[y+10],xe,4294925233),S=l(S,$,L,D,v[y+11],Re,2304563134),D=l(D,S,$,L,v[y+12],W,1804603682),L=l(L,D,S,$,v[y+13],oe,4254626195),$=l($,L,D,S,v[y+14],xe,2792965006),S=l(S,$,L,D,v[y+15],Re,1236535329),D=p(D,S,$,L,v[y+1],Ne,4129170786),L=p(L,D,S,$,v[y+6],nt,3225465664),$=p($,L,D,S,v[y+11],tr,643717713),S=p(S,$,L,D,v[y+0],Pr,3921069994),D=p(D,S,$,L,v[y+5],Ne,3593408605),L=p(L,D,S,$,v[y+10],nt,38016083),$=p($,L,D,S,v[y+15],tr,3634488961),S=p(S,$,L,D,v[y+4],Pr,3889429448),D=p(D,S,$,L,v[y+9],Ne,568446438),L=p(L,D,S,$,v[y+14],nt,3275163606),$=p($,L,D,S,v[y+3],tr,4107603335),S=p(S,$,L,D,v[y+8],Pr,1163531501),D=p(D,S,$,L,v[y+13],Ne,2850285829),L=p(L,D,S,$,v[y+2],nt,4243563512),$=p($,L,D,S,v[y+7],tr,1735328473),S=p(S,$,L,D,v[y+12],Pr,2368359562),D=h(D,S,$,L,v[y+5],wr,4294588738),L=h(L,D,S,$,v[y+8],Nt,2272392833),$=h($,L,D,S,v[y+11],rr,1839030562),S=h(S,$,L,D,v[y+14],Lt,4259657740),D=h(D,S,$,L,v[y+1],wr,2763975236),L=h(L,D,S,$,v[y+4],Nt,1272893353),$=h($,L,D,S,v[y+7],rr,4139469664),S=h(S,$,L,D,v[y+10],Lt,3200236656),D=h(D,S,$,L,v[y+13],wr,681279174),L=h(L,D,S,$,v[y+0],Nt,3936430074),$=h($,L,D,S,v[y+3],rr,3572445317),S=h(S,$,L,D,v[y+6],Lt,76029189),D=h(D,S,$,L,v[y+9],wr,3654602809),L=h(L,D,S,$,v[y+12],Nt,3873151461),$=h($,L,D,S,v[y+15],rr,530742520),S=h(S,$,L,D,v[y+2],Lt,3299628645),D=m(D,S,$,L,v[y+0],uo,4096336452),L=m(L,D,S,$,v[y+7],Qa,1126891415),$=m($,L,D,S,v[y+14],ue,2878612391),S=m(S,$,L,D,v[y+5],Yi,4237533241),D=m(D,S,$,L,v[y+12],uo,1700485571),L=m(L,D,S,$,v[y+3],Qa,2399980690),$=m($,L,D,S,v[y+10],ue,4293915773),S=m(S,$,L,D,v[y+1],Yi,2240044497),D=m(D,S,$,L,v[y+8],uo,1873313359),L=m(L,D,S,$,v[y+15],Qa,4264355552),$=m($,L,D,S,v[y+6],ue,2734768916),S=m(S,$,L,D,v[y+13],Yi,1309151649),D=m(D,S,$,L,v[y+4],uo,4149444226),L=m(L,D,S,$,v[y+11],Qa,3174756917),$=m($,L,D,S,v[y+2],ue,718787259),S=m(S,$,L,D,v[y+9],Yi,3951481745),D=t(D,C),S=t(S,T),$=t($,O),L=t(L,U);var Qi=b(D)+b(S)+b($)+b(L);return Qi.toLowerCase()}var c1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.expanding-action--fill{padding-inline:var(--zn-spacing-medium);padding-bottom:var(--zn-spacing-2x-small);position:absolute;top:0;left:auto;right:0;bottom:0;background-color:rgb(var(--zn-panel));width:0;transition:width var(--zn-transition-slow) cubic-bezier(0.62,0.16,0.13,1.01),opacity var(--zn-transition-slow) cubic-bezier(0.62,0.16,0.13,1.01),display var(--zn-transition-slow) ease-in-out allow-discrete}@starting-style {.expanding-action--fill.expanding-action--open{width:0}}.expanding-action--fill.expanding-action--open{display:flex;flex-direction:row;align-items:center;gap:10px;height:100%;width:min(100%,800px);overflow:hidden;z-index:100;max-width:800px}.expanding-action--fill.expanding-action--open::before{content:"";position:absolute;left:calc(var(--zn-spacing-medium) * -1);right:calc(var(--zn-spacing-medium) * -1);bottom:6px;background-color:rgb(var(--zn-primary));height:2px}.expanding-action--fill.expanding-action--open>zn-icon{display:block;color:rgb(var(--zn-primary))}.expanding-action--fill.expanding-action--closed{display:none;opacity:0}@starting-style {.expanding-action--fill .expanding-action__content{opacity:0}}.expanding-action--fill .expanding-action__content{opacity:1;width:100%;display:flex;flex-direction:column;justify-content:center;padding:0}.expanding-action--drop,.expanding-action--drop .expanding-action__dropdown,.expanding-action--drop .expanding-action__dropdown zn-button[slot=trigger]{height:100%}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar{width:5px;height:5px}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-track{background:transparent}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.expanding-action--drop .expanding-action__frame{--expanding-action-trigger-width:36px;position:relative;display:flex;flex-direction:column;min-width:300px;width:var(--expanding-action-basis,var(--zn-container-smp,320px));max-width:80vw;max-height:var(--expanding-action-max-height,var(--auto-size-available-height,80vh));background-color:rgb(var(--zn-panel));box-shadow:0 8px 16px -6px rgba(33,33,33,0.18);border:solid 1px rgb(var(--zn-border-color));border-radius:var(--zn-border-radius) 0 var(--zn-border-radius) var(--zn-border-radius);padding:0;height:100%}.expanding-action--drop .expanding-action__frame::before{content:"";position:absolute;top:-1px;left:calc(100% - var(--expanding-action-trigger-width) + 2px);right:0;z-index:1;height:2px;background:rgb(var(--zn-panel))}.expanding-action--drop .expanding-action__content{flex:1 1 auto;min-height:0;overflow-y:auto;border-radius:inherit}:host([data-trigger-side=left]) .expanding-action--drop .expanding-action__frame{border-radius:0 var(--zn-border-radius) var(--zn-border-radius) var(--zn-border-radius)}:host([data-trigger-side=left]) .expanding-action--drop .expanding-action__frame::before{left:0;right:calc(100% - var(--expanding-action-trigger-width) + 2px)}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]{position:relative;z-index:calc(var(--zn-z-index-dropdown) + 1)}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::before{content:"";position:absolute;inset:0;z-index:-1;height:41px;background:rgb(var(--zn-panel));border:solid 1px rgb(var(--zn-border-color));border-bottom-color:rgb(var(--zn-panel));border-radius:var(--zn-border-radius) var(--zn-border-radius) 0 0}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::part(base):hover,:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::part(base):active{background:transparent}`;var Yt=class extends k{constructor(){super();this.method="drop";this.prefetch=!1;this.basis="300";this.open=!1;this.fetchStyle="";this.noPrefetch=!1;this._knownUri=new Map;this._actions=[];this._preload=!0;this._metaObserved=!1;this._countObserver=new Pe(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Ge("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="count"]');if(!r)return;let n=r.getAttribute("content"),a=this.shadowRoot?.querySelector(".expanding-action__dropdown zn-button");n&&a&&a.setAttribute("notification",n)}});this._colorObserver=new Pe(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Ge("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="color"]');if(!r)return;let n=r.getAttribute("content");n&&(this.color=n)}});this.handleIconClicked=()=>{this.open=!this.open};this.handleIconCloseClicked=()=>{this.open=!1};this._updateTriggerSide=()=>{let t=this.shadowRoot?.querySelector('.expanding-action__dropdown zn-button[slot="trigger"]'),r=this.shadowRoot?.querySelector("#content");if(!t||!r)return;let n=t.getBoundingClientRect(),a=r.getBoundingClientRect();if(a.width===0)return;let s=(n.left+n.right)/2,l=(a.left+a.right)/2;this.setAttribute("data-trigger-side",s>l?"right":"left")};this._panels=new Map}async connectedCallback(){super.connectedCallback(),this.masterId||(this.masterId=Math.floor(Math.random()*1e6).toString()),this._preload=!this.noPrefetch,await this.updateComplete,this._panel=this.shadowRoot?.querySelector("#content")}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>{this._registerActions()},10),this.contextUri&&setTimeout(()=>{this.fetchContextHeaders().then(r=>r)},10)}_observeMetaData(){if(this._metaObserved)return;let r=Ge("app-content",this,"")[0]?.shadowRoot;r&&(this._countObserver.observe(r),this._colorObserver.observe(r),this._metaObserved=!0)}_registerActions(){Ge("[action-uri]",this,"zn-expanding-action").forEach(t=>{t.getAttribute("action-uri")===""&&(t.setAttribute("action",""),t.removeAttribute("action-uri")),this._addAction(t)})}_addAction(t){this._actions.includes(t)||(this._actions.push(t),this._preload&&t.addEventListener("mouseover",this.fetchUri.bind(this,t)),t.addEventListener("click",this._handleClick.bind(this)))}_uriToId(t){return"action-"+Zd(t).substr(0,8)+"-"+this.masterId}_handleClick(t){let r=t.relatedTarget??t.target;r&&this.clickAction(r)}_createUriPanel(t,r,n){if(t.hasAttribute("action")||t.setAttribute("action",n),this._knownUri.has(r)||this._knownUri.set(r,n),this._panels.has(n)&&this._panels.get(n)!==void 0)return this._panels.get(n)[0];let a=document.createElement("div");return a.setAttribute("id",n),this.fetchStyle!==""&&a.setAttribute("data-fetch-style",this.fetchStyle),a.setAttribute("data-self-uri",r),a.setAttribute("data-fetch-style","expanding-action"),a.textContent="Loading ...",this._panel instanceof HTMLElement&&(this._panel.appendChild(a),this._panels.set(n,[a])),document.dispatchEvent(new CustomEvent("zn-new-element",{detail:{element:a,source:t}})),a}fetchUri(t){if(!t.hasAttribute("action")&&t.hasAttribute("action-uri")){let r=t.getAttribute("action-uri")??"";this._createUriPanel(t,r,this._uriToId(r)),this._observeMetaData()}}async fetchContextHeaders(){try{let t=await fetch(this.contextUri,{credentials:"same-origin",method:"head",headers:{"x-requested-with":"XMLHttpRequest"}}),r=t.headers.get("x-kubex-count");r&&(this.count=r);let n=t.headers.get("x-kubex-color");n&&(this.color=n)}catch{}}clickAction(t){this.fetchUri(t)}_observePlacement(){let r=this.shadowRoot?.querySelector(".expanding-action__dropdown")?.shadowRoot?.querySelector(".dropdown");if(!r){requestAnimationFrame(()=>this._observePlacement());return}this._updateTriggerSide(),!this._placementObserver&&(this._placementObserver=new MutationObserver(this._updateTriggerSide),this._placementObserver.observe(r,{attributes:!0,attributeFilter:["data-current-placement"]}))}disconnectedCallback(){super.disconnectedCallback(),this._placementObserver?.disconnect(),this._placementObserver=void 0}render(){return u`
|
|
1904
|
+
`);let ae="";for(let _e=0;_e<he.length;_e++){let P=he.charCodeAt(_e);P<128?ae+=String.fromCharCode(P):P>127&&P<2048?(ae+=String.fromCharCode(P>>6|192),ae+=String.fromCharCode(P&63|128)):(ae+=String.fromCharCode(P>>12|224),ae+=String.fromCharCode(P>>6&63|128),ae+=String.fromCharCode(P&63|128))}return ae}let v,y,C,T,O,U,D,S,$,L,W=7,oe=12,xe=17,Re=22,Ne=5,ot=9,tr=14,Pr=20,wr=4,Nt=11,rr=16,Lt=23,uo=6,Qa=10,ue=15,Yi=21;for(o=g(o),v=f(o),D=1732584193,S=4023233417,$=2562383102,L=271733878,y=0;y<v.length;y+=16)C=D,T=S,O=$,U=L,D=l(D,S,$,L,v[y+0],W,3614090360),L=l(L,D,S,$,v[y+1],oe,3905402710),$=l($,L,D,S,v[y+2],xe,606105819),S=l(S,$,L,D,v[y+3],Re,3250441966),D=l(D,S,$,L,v[y+4],W,4118548399),L=l(L,D,S,$,v[y+5],oe,1200080426),$=l($,L,D,S,v[y+6],xe,2821735955),S=l(S,$,L,D,v[y+7],Re,4249261313),D=l(D,S,$,L,v[y+8],W,1770035416),L=l(L,D,S,$,v[y+9],oe,2336552879),$=l($,L,D,S,v[y+10],xe,4294925233),S=l(S,$,L,D,v[y+11],Re,2304563134),D=l(D,S,$,L,v[y+12],W,1804603682),L=l(L,D,S,$,v[y+13],oe,4254626195),$=l($,L,D,S,v[y+14],xe,2792965006),S=l(S,$,L,D,v[y+15],Re,1236535329),D=p(D,S,$,L,v[y+1],Ne,4129170786),L=p(L,D,S,$,v[y+6],ot,3225465664),$=p($,L,D,S,v[y+11],tr,643717713),S=p(S,$,L,D,v[y+0],Pr,3921069994),D=p(D,S,$,L,v[y+5],Ne,3593408605),L=p(L,D,S,$,v[y+10],ot,38016083),$=p($,L,D,S,v[y+15],tr,3634488961),S=p(S,$,L,D,v[y+4],Pr,3889429448),D=p(D,S,$,L,v[y+9],Ne,568446438),L=p(L,D,S,$,v[y+14],ot,3275163606),$=p($,L,D,S,v[y+3],tr,4107603335),S=p(S,$,L,D,v[y+8],Pr,1163531501),D=p(D,S,$,L,v[y+13],Ne,2850285829),L=p(L,D,S,$,v[y+2],ot,4243563512),$=p($,L,D,S,v[y+7],tr,1735328473),S=p(S,$,L,D,v[y+12],Pr,2368359562),D=h(D,S,$,L,v[y+5],wr,4294588738),L=h(L,D,S,$,v[y+8],Nt,2272392833),$=h($,L,D,S,v[y+11],rr,1839030562),S=h(S,$,L,D,v[y+14],Lt,4259657740),D=h(D,S,$,L,v[y+1],wr,2763975236),L=h(L,D,S,$,v[y+4],Nt,1272893353),$=h($,L,D,S,v[y+7],rr,4139469664),S=h(S,$,L,D,v[y+10],Lt,3200236656),D=h(D,S,$,L,v[y+13],wr,681279174),L=h(L,D,S,$,v[y+0],Nt,3936430074),$=h($,L,D,S,v[y+3],rr,3572445317),S=h(S,$,L,D,v[y+6],Lt,76029189),D=h(D,S,$,L,v[y+9],wr,3654602809),L=h(L,D,S,$,v[y+12],Nt,3873151461),$=h($,L,D,S,v[y+15],rr,530742520),S=h(S,$,L,D,v[y+2],Lt,3299628645),D=m(D,S,$,L,v[y+0],uo,4096336452),L=m(L,D,S,$,v[y+7],Qa,1126891415),$=m($,L,D,S,v[y+14],ue,2878612391),S=m(S,$,L,D,v[y+5],Yi,4237533241),D=m(D,S,$,L,v[y+12],uo,1700485571),L=m(L,D,S,$,v[y+3],Qa,2399980690),$=m($,L,D,S,v[y+10],ue,4293915773),S=m(S,$,L,D,v[y+1],Yi,2240044497),D=m(D,S,$,L,v[y+8],uo,1873313359),L=m(L,D,S,$,v[y+15],Qa,4264355552),$=m($,L,D,S,v[y+6],ue,2734768916),S=m(S,$,L,D,v[y+13],Yi,1309151649),D=m(D,S,$,L,v[y+4],uo,4149444226),L=m(L,D,S,$,v[y+11],Qa,3174756917),$=m($,L,D,S,v[y+2],ue,718787259),S=m(S,$,L,D,v[y+9],Yi,3951481745),D=t(D,C),S=t(S,T),$=t($,O),L=t(L,U);var Qi=b(D)+b(S)+b($)+b(L);return Qi.toLowerCase()}var c1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.expanding-action--fill{padding-inline:var(--zn-spacing-medium);padding-bottom:var(--zn-spacing-2x-small);position:absolute;top:0;left:auto;right:0;bottom:0;background-color:rgb(var(--zn-panel));width:0;transition:width var(--zn-transition-slow) cubic-bezier(0.62,0.16,0.13,1.01),opacity var(--zn-transition-slow) cubic-bezier(0.62,0.16,0.13,1.01),display var(--zn-transition-slow) ease-in-out allow-discrete}@starting-style {.expanding-action--fill.expanding-action--open{width:0}}.expanding-action--fill.expanding-action--open{display:flex;flex-direction:row;align-items:center;gap:10px;height:100%;width:min(100%,800px);overflow:hidden;z-index:100;max-width:800px}.expanding-action--fill.expanding-action--open::before{content:"";position:absolute;left:calc(var(--zn-spacing-medium) * -1);right:calc(var(--zn-spacing-medium) * -1);bottom:6px;background-color:rgb(var(--zn-primary));height:2px}.expanding-action--fill.expanding-action--open>zn-icon{display:block;color:rgb(var(--zn-primary))}.expanding-action--fill.expanding-action--closed{display:none;opacity:0}@starting-style {.expanding-action--fill .expanding-action__content{opacity:0}}.expanding-action--fill .expanding-action__content{opacity:1;width:100%;display:flex;flex-direction:column;justify-content:center;padding:0}.expanding-action--drop,.expanding-action--drop .expanding-action__dropdown,.expanding-action--drop .expanding-action__dropdown zn-button[slot=trigger]{height:100%}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar{width:5px;height:5px}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-track{background:transparent}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.expanding-action--drop .expanding-action__frame{--expanding-action-trigger-width:36px;position:relative;display:flex;flex-direction:column;min-width:300px;width:var(--expanding-action-basis,var(--zn-container-smp,320px));max-width:80vw;max-height:var(--expanding-action-max-height,var(--auto-size-available-height,80vh));background-color:rgb(var(--zn-panel));box-shadow:0 8px 16px -6px rgba(33,33,33,0.18);border:solid 1px rgb(var(--zn-border-color));border-radius:var(--zn-border-radius) 0 var(--zn-border-radius) var(--zn-border-radius);padding:0;height:100%}.expanding-action--drop .expanding-action__frame::before{content:"";position:absolute;top:-1px;left:calc(100% - var(--expanding-action-trigger-width) + 2px);right:0;z-index:1;height:2px;background:rgb(var(--zn-panel))}.expanding-action--drop .expanding-action__content{flex:1 1 auto;min-height:0;overflow-y:auto;border-radius:inherit}:host([data-trigger-side=left]) .expanding-action--drop .expanding-action__frame{border-radius:0 var(--zn-border-radius) var(--zn-border-radius) var(--zn-border-radius)}:host([data-trigger-side=left]) .expanding-action--drop .expanding-action__frame::before{left:0;right:calc(100% - var(--expanding-action-trigger-width) + 2px)}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]{position:relative;z-index:calc(var(--zn-z-index-dropdown) + 1)}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::before{content:"";position:absolute;inset:0;z-index:-1;height:41px;background:rgb(var(--zn-panel));border:solid 1px rgb(var(--zn-border-color));border-bottom-color:rgb(var(--zn-panel));border-radius:var(--zn-border-radius) var(--zn-border-radius) 0 0}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::part(base):hover,:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::part(base):active{background:transparent}`;var Yt=class extends k{constructor(){super();this.method="drop";this.prefetch=!1;this.basis="300";this.open=!1;this.fetchStyle="";this.noPrefetch=!1;this._knownUri=new Map;this._actions=[];this._preload=!0;this._metaObserved=!1;this._countObserver=new Pe(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Ge("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="count"]');if(!r)return;let n=r.getAttribute("content"),a=this.shadowRoot?.querySelector(".expanding-action__dropdown zn-button");n&&a&&a.setAttribute("notification",n)}});this._colorObserver=new Pe(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Ge("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="color"]');if(!r)return;let n=r.getAttribute("content");n&&(this.color=n)}});this.handleIconClicked=()=>{this.open=!this.open};this.handleIconCloseClicked=()=>{this.open=!1};this._updateTriggerSide=()=>{let t=this.shadowRoot?.querySelector('.expanding-action__dropdown zn-button[slot="trigger"]'),r=this.shadowRoot?.querySelector("#content");if(!t||!r)return;let n=t.getBoundingClientRect(),a=r.getBoundingClientRect();if(a.width===0)return;let s=(n.left+n.right)/2,l=(a.left+a.right)/2;this.setAttribute("data-trigger-side",s>l?"right":"left")};this._panels=new Map}async connectedCallback(){super.connectedCallback(),this.masterId||(this.masterId=Math.floor(Math.random()*1e6).toString()),this._preload=!this.noPrefetch,await this.updateComplete,this._panel=this.shadowRoot?.querySelector("#content")}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>{this._registerActions()},10),this.contextUri&&setTimeout(()=>{this.fetchContextHeaders().then(r=>r)},10)}_observeMetaData(){if(this._metaObserved)return;let r=Ge("app-content",this,"")[0]?.shadowRoot;r&&(this._countObserver.observe(r),this._colorObserver.observe(r),this._metaObserved=!0)}_registerActions(){Ge("[action-uri]",this,"zn-expanding-action").forEach(t=>{t.getAttribute("action-uri")===""&&(t.setAttribute("action",""),t.removeAttribute("action-uri")),this._addAction(t)})}_addAction(t){this._actions.includes(t)||(this._actions.push(t),this._preload&&t.addEventListener("mouseover",this.fetchUri.bind(this,t)),t.addEventListener("click",this._handleClick.bind(this)))}_uriToId(t){return"action-"+Zd(t).substr(0,8)+"-"+this.masterId}_handleClick(t){let r=t.relatedTarget??t.target;r&&this.clickAction(r)}_createUriPanel(t,r,n){if(t.hasAttribute("action")||t.setAttribute("action",n),this._knownUri.has(r)||this._knownUri.set(r,n),this._panels.has(n)&&this._panels.get(n)!==void 0)return this._panels.get(n)[0];let a=document.createElement("div");return a.setAttribute("id",n),this.fetchStyle!==""&&a.setAttribute("data-fetch-style",this.fetchStyle),a.setAttribute("data-self-uri",r),a.setAttribute("data-fetch-style","expanding-action"),a.textContent="Loading ...",this._panel instanceof HTMLElement&&(this._panel.appendChild(a),this._panels.set(n,[a])),document.dispatchEvent(new CustomEvent("zn-new-element",{detail:{element:a,source:t}})),a}fetchUri(t){if(!t.hasAttribute("action")&&t.hasAttribute("action-uri")){let r=t.getAttribute("action-uri")??"";this._createUriPanel(t,r,this._uriToId(r)),this._observeMetaData()}}async fetchContextHeaders(){try{let t=await fetch(this.contextUri,{credentials:"same-origin",method:"head",headers:{"x-requested-with":"XMLHttpRequest"}}),r=t.headers.get("x-kubex-count");r&&(this.count=r);let n=t.headers.get("x-kubex-color");n&&(this.color=n)}catch{}}clickAction(t){this.fetchUri(t)}_observePlacement(){let r=this.shadowRoot?.querySelector(".expanding-action__dropdown")?.shadowRoot?.querySelector(".dropdown");if(!r){requestAnimationFrame(()=>this._observePlacement());return}this._updateTriggerSide(),!this._placementObserver&&(this._placementObserver=new MutationObserver(this._updateTriggerSide),this._placementObserver.observe(r,{attributes:!0,attributeFilter:["data-current-placement"]}))}disconnectedCallback(){super.disconnectedCallback(),this._placementObserver?.disconnect(),this._placementObserver=void 0}render(){return u`
|
|
1904
1905
|
${this.method==="fill"?u`
|
|
1905
1906
|
<zn-button class="expanding-action__button"
|
|
1906
1907
|
@click="${this.handleIconClicked}"
|
|
@@ -2272,7 +2273,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
2272
2273
|
</zn-dialog>
|
|
2273
2274
|
`:B}
|
|
2274
2275
|
|
|
2275
|
-
</div>`}};ke.styles=[z(Ee),z(w1)],ke.dependencies={"zn-icon":ne,"zn-button":Me,"zn-dialog":ka,"zn-input":
|
|
2276
|
+
</div>`}};ke.styles=[z(Ee),z(w1)],ke.dependencies={"zn-icon":ne,"zn-button":Me,"zn-dialog":ka,"zn-input":st,"zn-select":Be,"zn-option":lt},ke.freeInputLibraries=new Set(["gravatar","libravatar","avatar"]),c([d()],ke.prototype,"name",2),c([d()],ke.prototype,"icon",2),c([d()],ke.prototype,"label",2),c([d()],ke.prototype,"library",2),c([d()],ke.prototype,"color",2),c([d({type:Boolean,attribute:"no-color"})],ke.prototype,"noColor",2),c([d({type:Boolean,attribute:"no-library"})],ke.prototype,"noLibrary",2),c([d({attribute:"help-text"})],ke.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],ke.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],ke.prototype,"required",2),c([d({type:Boolean,attribute:"trigger-submit"})],ke.prototype,"triggerSubmit",2),c([d({type:Boolean,attribute:"allow-upload"})],ke.prototype,"allowUpload",2),c([d()],ke.prototype,"accept",2),c([d({reflect:!0})],ke.prototype,"form",2),c([Ce("icon")],ke.prototype,"defaultValue",2),c([I()],ke.prototype,"_dialogOpen",2),c([I()],ke.prototype,"_searchQuery",2),c([I()],ke.prototype,"_iconList",2),c([I()],ke.prototype,"_filteredIcons",2),c([I()],ke.prototype,"_pendingIcon",2),c([I()],ke.prototype,"_pendingLibrary",2),c([I()],ke.prototype,"_pendingColor",2),c([I()],ke.prototype,"_pendingFile",2),c([I()],ke.prototype,"_pendingFileUrl",2),c([I()],ke.prototype,"_mode",2),c([I()],ke.prototype,"_file",2),c([I()],ke.prototype,"_fileUrl",2),c([F("zn-dialog")],ke.prototype,"_dialog",2),c([F(".icon-picker__file-input")],ke.prototype,"_fileInput",2);var ws=ke;var n8=ws;ws.define("zn-icon-picker");var z1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;container-type:inline-size;width:100%}.ai{display:flex;width:100%;flex-direction:row;gap:10px}.ai:not(.ai--editing) .ai__input::part(base),.ai:not(.ai--editing) .ai__input::part(combobox),.ai:not(.ai--editing) .ai__input::part(textarea){background-color:transparent;border-color:transparent;box-shadow:none;opacity:1;cursor:initial}.ai:not(.ai--editing) .ai__input::part(input){line-height:var(--zn-line-height-looser)}.ai:not(.ai--editing) .ai__input::part(display-input){color:rgb(var(--zn-text))}.ai:not(.ai--editing) .ai__input::part(input),.ai:not(.ai--editing) .ai__input::part(combobox),.ai:not(.ai--editing) .ai__input::part(textarea){padding:0;color:rgb(var(--zn-text));text-decoration:underline;text-decoration-style:dashed;text-decoration-color:rgb(var(--zn-primary),0.5);text-underline-offset:3px}.ai:not(.ai--editing) .ai__input::part(textarea){padding-top:8px;box-shadow:none;text-decoration:none}.ai:not(.ai--editing) .ai__input::part(expand-icon){display:none}.ai:not(.ai--editing) .ai__input::part(form-control-help-text){display:none}.ai:not(.ai--editing):hover .button--edit{display:inline-block}.ai__input::part(form-control-input){margin:0}.ai__input{height:unset;opacity:1}.ai__input[dir=rtl]::part(input),.ai__input[dir=rtl]::part(textarea),.ai__input[dir=rtl]::part(combobox){text-align:left}.ai:not(.ai--editing) .ai__input::part(input)::-webkit-inner-spin-button,.ai:not(.ai--editing) .ai__input::part(input)::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.ai--padded{padding:var(--zn-spacing-large)}.ai--inline{display:flex;flex-direction:row;align-items:start;gap:5px}@container (min-width:480px){.ai--inline{align-items:center}}.ai--inline .ai__input{width:100%}.ai--inline .ai__left{width:100%;display:flex;flex-direction:row;justify-content:flex-end}@container (max-width:479px){.ai--inline .ai__left{justify-content:flex-start;flex-direction:column}}.ai--editing .ai__right{display:flex !important}.ai__left{display:flex;flex-direction:column;gap:5px;width:100%}.ai--masked:not(.ai--editing) .ai__input{display:none}.ai__reveal{line-height:var(--zn-line-height-looser);color:rgb(var(--zn-text))}.ai__reveal::part(base){width:100%;text-decoration:underline;text-decoration-style:dashed;text-decoration-color:rgb(var(--zn-primary),0.5);text-underline-offset:3px}.ai:not(.ai--disabled) .ai__left{cursor:pointer}.ai__description{font-size:12px;font-weight:500;line-height:18px;color:rgb(var(--zn-text))}.ai__right{font-size:12px;color:rgb(var(--zn-primary));font-weight:500;cursor:pointer;flex-direction:row;gap:10px;align-items:center;justify-content:flex-end}.ai__right .button--edit{display:none}.ai--disabled:not(.ai--editing) .ai__input::part(input),.ai--disabled:not(.ai--editing) .ai__input::part(combobox),.ai--disabled:not(.ai--editing) .ai__input::part(textarea){text-decoration:none;caret-color:transparent;border-radius:0}.ai--disabled:not(.ai--editing) .ai__reveal::part(base){text-decoration:none}.ai--disabled:not(.ai--editing) .ai__input::part(display-input){cursor:text}.ai--disabled:not(.ai--editing) .ai__right{display:none !important}zn-textarea::part(textarea){resize:none}`;var de=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{defaultValue:t=>t.defaultValue,value:t=>{if(t.multiple){let r=typeof t.value=="string"?t.value.split(" ").filter(n=>n!==""):t.value;return r.length>0?r:""}return t.value}});this.hasSlotController=new Y(this,"help-text","[default]");this.conditionalController=new fs(this);this.value="";this.displayValue="";this.clearOnEdit=!1;this.conditional="";this.requires="";this.size="medium";this.inputType="text";this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.slashRecentKey="";this.options={};this.iconPosition="none";this.helpText="";this.dir="auto";this.mouseEventHandler=t=>{this.isEditing&&!this.contains(t.target)&&((Array.isArray(this.value)?JSON.stringify(this.value)!==JSON.stringify(this._editStartValue):this.value!==this._editStartValue)||(this.isEditing=!1,this.value=this._valueBeforeEdit,this.input.blur()))};this.escKeyHandler=t=>{t.key==="Escape"&&this.isEditing&&(this.isEditing=!1,this.value=this._valueBeforeEdit,this.input.blur())};this.submitKeyHandler=t=>{t.key==="Enter"&&this.isEditing&&!t.shiftKey&&(this.isEditing=!1,this.emit("zn-submit",{detail:{value:this.value,element:this}}),this.formControlController.submit(),this.input.blur())};this.captureMouseDown=t=>{this.disabled&&!this.isEditing&&t.stopPropagation()};this.captureKeyDown=t=>{this.disabled&&!this.isEditing&&(t.stopPropagation(),t.preventDefault())};this.handleEditClick=t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(this.isEditing||(this._valueBeforeEdit=this.value,this.clearOnEdit&&(this.value=this.multiple?[]:""),this._editStartValue=this.value),this.isEditing=!0)};this.handleSubmitClick=t=>{t.preventDefault(),this.isEditing=!1,this.emit("zn-submit",{detail:{value:this.value,element:this}}),this.formControlController.submit()};this.handleCancelClick=t=>{t.preventDefault(),this.isEditing=!1,this.value=this._valueBeforeEdit};this.handleBlur=()=>{this.hasFocus=!1};this.handleInput=t=>{this.disabled||!this.isEditing||(this.value=t.target.value,this.emit("zn-input"))};this.handleSlotChange=async()=>{await this.updateComplete,this.input instanceof Be&&this.moveSlottedOptionsToSelect()}}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.escKeyHandler),document.addEventListener("keydown",this.submitKeyHandler),document.addEventListener("click",this.mouseEventHandler),this.addEventListener("mousedown",this.captureMouseDown,{capture:!0}),this.addEventListener("keydown",this.captureKeyDown,{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.escKeyHandler),document.removeEventListener("keydown",this.submitKeyHandler),document.removeEventListener("click",this.mouseEventHandler),this.removeEventListener("mousedown",this.captureMouseDown,!0),this.removeEventListener("keydown",this.captureKeyDown,!0)}async firstUpdated(){await this.updateComplete,this.input.addEventListener("onclick",this.handleEditClick),this.conditionalController.setup()}willUpdate(t){(t.has("value")||t.has("multiple"))&&(this.multiple&&typeof this.value=="string"?this.value=this.value.split(" ").filter(r=>r!==""):!this.multiple&&Array.isArray(this.value)&&(this.value=this.value.join(" ")))}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}async handleIsEditingChange(){await this.updateComplete,this.input instanceof Be&&!this.isEditing&&await this.input.hide(),this.conditionalController.check()}moveSlottedOptionsToSelect(){if(!(this.input instanceof Be))return;Array.from(this.querySelectorAll("zn-option")).forEach(r=>{this.input.appendChild(r)})}render(){let t=this.editText,r=this.hasSlotController.test("help-text"),n=this.helpText?!0:r;Object.keys(this.options).length>0&&(this.inputType="select"),this.selectProvider&&(this.inputType="data-select"),this.freeText&&!this.selectProvider&&(this.inputType="select");let a;switch(this.inputType){case"select":a=this._getSelectInput();break;case"data-select":a=this._getDataSelectInput();break;case"number":a=this._getNumberInput();break;case"textarea":a=this._getTextAreaInput();break;default:a=this._getTextInput()}return u`
|
|
2276
2277
|
<div class="${M({ai:!0,"ai--editing":this.isEditing,"ai--focused":this.hasFocus,"ai--disabled":this.disabled,"ai--inline":this.inline,"ai--padded":this.padded,"ai--masked":!!this.displayValue})}" dir="ltr">
|
|
2277
2278
|
|
|
2278
2279
|
<div class="ai__left" @click="${this.disabled?void 0:this.handleEditClick}">
|
|
@@ -2465,7 +2466,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
2465
2466
|
<span class="last-message-indicator" part="indicator"></span>
|
|
2466
2467
|
</div>`}render(){return u`
|
|
2467
2468
|
${this._getLastMessage()}
|
|
2468
|
-
`}_getTimes(t){let r=Math.floor(t/1e3/60/60/24/30),n=Math.floor(t/1e3/60/60/24/7),a=Math.floor(t/1e3/60/60/24),s=Math.floor(t/1e3/60/60)%24,l=Math.floor(t/1e3/60)%60,p=Math.floor(t/1e3)%60;return r>0?`${r} Month`+(r>1?"s":""):n>0?`${n} Week`+(n>1?"s":""):a>0?`${a} Day`+(a>1?"s":""):s>0?l>0?`${s}hr ${l}m`:`${s} Hour`+(s>1?"s":""):l>0?p>0?`${l}m ${p}s`:`${l} Minute`+(l>1?"s":""):`${p} Second`+(p>1?"s":"")}};Co.styles=z(S1),c([d({type:Number})],Co.prototype,"timestamp",2);var s8=Co;Co.define("zn-timer");var C1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}table:not(.remarkd-table){border-collapse:separate !important;border-spacing:0;width:100%;max-width:100%;table-layout:auto;text-align:left;font-family:var(--zn-font-sans);font-size:var(--zn-text-table-content-font-size);font-weight:var(--zn-text-table-content-font-weight);line-height:var(--zn-text-table-content-line-height);color:var(--zn-text-table-content-color);text-transform:var(--zn-text-table-content-transform);letter-spacing:var(--zn-text-table-content-letter-spacing,normal)}table:not(.remarkd-table) thead{font-weight:var(--zn-font-weight-medium)}table:not(.remarkd-table) thead tr th{background-color:rgb(var(--zn-table-header-background-color))}table:not(.remarkd-table) tbody a{cursor:pointer;color:rgb(var(--zn-primary))}table:not(.remarkd-table) tbody tr td{border-top:1px solid rgb(var(--zn-border-color)) !important}table:not(.remarkd-table) tbody tr:first-of-type td{border-top:0 !important}table:not(.remarkd-table) th,table:not(.remarkd-table) td{padding:var(--zn-spacing-small) var(--zn-spacing-medium);min-width:90px;white-space:nowrap}table:not(.remarkd-table) td>span{white-space:normal}table:not(.remarkd-table) th{font-family:var(--zn-font-sans);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);color:var(--zn-text-button-label-color);text-transform:var(--zn-text-button-label-transform);letter-spacing:var(--zn-text-button-label-letter-spacing,normal);text-transform:capitalize;border-bottom:1px solid rgb(var(--zn-border-color))}.zn-table-fixed{table-layout:fixed}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:block}.table-wrapper{max-width:100%;width:100%;overflow:hidden;position:relative}zn-checkbox{padding:0}zn-icon[src=more_vert]{cursor:pointer}thead{color:rgb(var(--zn-text-heading));font-weight:600;font-size:14px}.table-wrapper{width:100%;max-width:100%;overflow-x:auto;display:block}table,thead,tbody,tr,td,th{box-sizing:border-box}tr td{min-height:40px;height:52px}tr.with-summary td{min-height:80px;height:80px}.table-row.table-row--error{color:rgb(var(--zn-color-error));border-color:rgb(var(--zn-color-error));background:rgba(var(--zn-color-error),0.1)}.table-row.table-row--info{color:rgb(var(--zn-color-info));border-color:rgb(var(--zn-color-info));background:rgba(var(--zn-color-info),0.1)}.table-row.table-row--warning{color:rgb(var(--zn-color-warning));border-color:rgb(var(--zn-color-warning));background:rgba(var(--zn-color-warning),0.1)}.table-row.table-row--success{color:rgb(var(--zn-color-success)) !important;border-color:rgb(var(--zn-color-success));background:rgba(var(--zn-color-success),0.1)}.table-row.table-row--nested td:first-of-type{padding-left:var(--zn-spacing-medium)}.table-row.table-row--nested td:first-of-type zn-icon{--icon-color:rgb(var(--zn-text-heading))}th.wide-column{width:60%}td.capcol .actions:empty{display:none}td.capcol .actions button{display:flex;padding:0;margin:0;background:transparent;border:transparent;color:rgb(var(--zn-text))}td.capcol>div{display:flex;-moz-column-gap:var(--zn-spacing-small);column-gap:var(--zn-spacing-small);align-items:center}td.capcol>div div{display:flex;justify-items:center}td.capcol>div div.capd{flex-grow:1;flex-direction:column}td.capcol>div div.capd span{display:block}td.capcol>div div.capd .caption:empty,td.capcol>div div.capd .summary:empty{display:none}td.capcol>div div.capd .caption{font-weight:600;color:rgb(var(--zn-text-heading));font-size:14px;text-decoration:none}td.capcol>div div.capd .caption a{color:inherit;text-decoration:inherit}td.capcol>div div.capd .summary{font-size:90%;text-wrap:initial}.table--last-right tr td:last-of-type,.table--last-right tr th:last-of-type{text-align:right}zn-table[fixed-first]{--capcol-width:250px}zn-table[fixed-first] tbody tr:nth-of-type(even) td.capcol{background-color:rgba(var(--zn-body))}zn-table[fixed-first] thead th:first-of-type,zn-table[fixed-first] td.capcol{position:sticky;left:0;top:0;overflow:hidden;background-color:rgba(var(--zn-panel));min-width:var(--capcol-width);max-width:var(--capcol-width);border-right:1px solid rgb(var(--zn-border-color))}zn-table[borders] tr,zn-table[borders] td{margin:0}zn-table[borders] tbody tr td:last-of-type{border-right-width:1px !important}zn-table[borders] tbody tr td:first-of-type{border-left-width:1px !important}zn-table[borders] tbody tr:first-of-type td{border-top-width:1px !important}zn-table[borders] tbody tr:last-of-type td{border-bottom-width:1px !important}zn-table[cborders] tbody tr td{border-left-width:1px !important}zn-table[fixed] table{table-layout:fixed}`;var wi=class extends k{constructor(){super(...arguments);this.fixedFirst=!1;this.hasActions=!1;this.headless=!1;this.allLeft=!1;this.boolIcons=!1;this.columns=[];this.columnDisplay=[];this.wideColumn=[];this.rows=[];this.resizeObserver=new
|
|
2469
|
+
`}_getTimes(t){let r=Math.floor(t/1e3/60/60/24/30),n=Math.floor(t/1e3/60/60/24/7),a=Math.floor(t/1e3/60/60/24),s=Math.floor(t/1e3/60/60)%24,l=Math.floor(t/1e3/60)%60,p=Math.floor(t/1e3)%60;return r>0?`${r} Month`+(r>1?"s":""):n>0?`${n} Week`+(n>1?"s":""):a>0?`${a} Day`+(a>1?"s":""):s>0?l>0?`${s}hr ${l}m`:`${s} Hour`+(s>1?"s":""):l>0?p>0?`${l}m ${p}s`:`${l} Minute`+(l>1?"s":""):`${p} Second`+(p>1?"s":"")}};Co.styles=z(S1),c([d({type:Number})],Co.prototype,"timestamp",2);var s8=Co;Co.define("zn-timer");var C1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}table:not(.remarkd-table){border-collapse:separate !important;border-spacing:0;width:100%;max-width:100%;table-layout:auto;text-align:left;font-family:var(--zn-font-sans);font-size:var(--zn-text-table-content-font-size);font-weight:var(--zn-text-table-content-font-weight);line-height:var(--zn-text-table-content-line-height);color:var(--zn-text-table-content-color);text-transform:var(--zn-text-table-content-transform);letter-spacing:var(--zn-text-table-content-letter-spacing,normal)}table:not(.remarkd-table) thead{font-weight:var(--zn-font-weight-medium)}table:not(.remarkd-table) thead tr th{background-color:rgb(var(--zn-table-header-background-color))}table:not(.remarkd-table) tbody a{cursor:pointer;color:rgb(var(--zn-primary))}table:not(.remarkd-table) tbody tr td{border-top:1px solid rgb(var(--zn-border-color)) !important}table:not(.remarkd-table) tbody tr:first-of-type td{border-top:0 !important}table:not(.remarkd-table) th,table:not(.remarkd-table) td{padding:var(--zn-spacing-small) var(--zn-spacing-medium);min-width:90px;white-space:nowrap}table:not(.remarkd-table) td>span{white-space:normal}table:not(.remarkd-table) th{font-family:var(--zn-font-sans);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);color:var(--zn-text-button-label-color);text-transform:var(--zn-text-button-label-transform);letter-spacing:var(--zn-text-button-label-letter-spacing,normal);text-transform:capitalize;border-bottom:1px solid rgb(var(--zn-border-color))}.zn-table-fixed{table-layout:fixed}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:block}.table-wrapper{max-width:100%;width:100%;overflow:hidden;position:relative}zn-checkbox{padding:0}zn-icon[src=more_vert]{cursor:pointer}thead{color:rgb(var(--zn-text-heading));font-weight:600;font-size:14px}.table-wrapper{width:100%;max-width:100%;overflow-x:auto;display:block}table,thead,tbody,tr,td,th{box-sizing:border-box}tr td{min-height:40px;height:52px}tr.with-summary td{min-height:80px;height:80px}.table-row.table-row--error{color:rgb(var(--zn-color-error));border-color:rgb(var(--zn-color-error));background:rgba(var(--zn-color-error),0.1)}.table-row.table-row--info{color:rgb(var(--zn-color-info));border-color:rgb(var(--zn-color-info));background:rgba(var(--zn-color-info),0.1)}.table-row.table-row--warning{color:rgb(var(--zn-color-warning));border-color:rgb(var(--zn-color-warning));background:rgba(var(--zn-color-warning),0.1)}.table-row.table-row--success{color:rgb(var(--zn-color-success)) !important;border-color:rgb(var(--zn-color-success));background:rgba(var(--zn-color-success),0.1)}.table-row.table-row--nested td:first-of-type{padding-left:var(--zn-spacing-medium)}.table-row.table-row--nested td:first-of-type zn-icon{--icon-color:rgb(var(--zn-text-heading))}th.wide-column{width:60%}td.capcol .actions:empty{display:none}td.capcol .actions button{display:flex;padding:0;margin:0;background:transparent;border:transparent;color:rgb(var(--zn-text))}td.capcol>div{display:flex;-moz-column-gap:var(--zn-spacing-small);column-gap:var(--zn-spacing-small);align-items:center}td.capcol>div div{display:flex;justify-items:center}td.capcol>div div.capd{flex-grow:1;flex-direction:column}td.capcol>div div.capd span{display:block}td.capcol>div div.capd .caption:empty,td.capcol>div div.capd .summary:empty{display:none}td.capcol>div div.capd .caption{font-weight:600;color:rgb(var(--zn-text-heading));font-size:14px;text-decoration:none}td.capcol>div div.capd .caption a{color:inherit;text-decoration:inherit}td.capcol>div div.capd .summary{font-size:90%;text-wrap:initial}.table--last-right tr td:last-of-type,.table--last-right tr th:last-of-type{text-align:right}zn-table[fixed-first]{--capcol-width:250px}zn-table[fixed-first] tbody tr:nth-of-type(even) td.capcol{background-color:rgba(var(--zn-body))}zn-table[fixed-first] thead th:first-of-type,zn-table[fixed-first] td.capcol{position:sticky;left:0;top:0;overflow:hidden;background-color:rgba(var(--zn-panel));min-width:var(--capcol-width);max-width:var(--capcol-width);border-right:1px solid rgb(var(--zn-border-color))}zn-table[borders] tr,zn-table[borders] td{margin:0}zn-table[borders] tbody tr td:last-of-type{border-right-width:1px !important}zn-table[borders] tbody tr td:first-of-type{border-left-width:1px !important}zn-table[borders] tbody tr:first-of-type td{border-top-width:1px !important}zn-table[borders] tbody tr:last-of-type td{border-bottom-width:1px !important}zn-table[cborders] tbody tr td{border-left-width:1px !important}zn-table[fixed] table{table-layout:fixed}`;var wi=class extends k{constructor(){super(...arguments);this.fixedFirst=!1;this.hasActions=!1;this.headless=!1;this.allLeft=!1;this.boolIcons=!1;this.columns=[];this.columnDisplay=[];this.wideColumn=[];this.rows=[];this.resizeObserver=new ut(this,{target:null,callback:()=>this.resizing()})}resizing(){}connectedCallback(){if(this.fixedFirst&&this.parentElement&&this.resizeObserver.observe(this.parentElement),(this.data===null||this.data===void 0)&&this.childNodes.length>0&&this.childNodes[0].nodeType===3){let t=this.childNodes,r="";for(let n of t)r+=n.textContent;r=r.replace(/\n/g,"");try{this.data=JSON.parse(r),this.innerText=""}catch(n){console.error("Error parsing JSON",n)}}if(this.data!==null&&this.data!==void 0&&(this.data.hasOwnProperty("header")&&this.data.header.forEach(t=>{typeof t=="string"&&(t={name:t}),this.columns.push(t.hasOwnProperty("name")?t.name:""),this.columnDisplay.push(t.hasOwnProperty("display")?t.display:""),this.wideColumn.push(t.hasOwnProperty("wide")?t.wide:"")}),this.data.hasOwnProperty("items")&&this.data.items!=null&&(this.rows=this.data.items),this.rows.length==0&&this.columns.length==0)){this.columns.push("");for(let t in this.data){for(let r in this.data[t]){let n=r.replace(/([A-Z]+)/g," $1").replace(/([A-Z][a-z])/g," $1");this.columns.includes(n)||this.columns.push(n)}this.rows.push({data:Object.values(this.data[t])})}}return super.connectedCallback()}tableHead(){if(this.headless)return;let t=[];return this.columns.forEach((r,n)=>{if(r==="")return;r==="_"&&(r="");let a=this.columnDisplay[n];if(n==0)t.push(u`
|
|
2469
2470
|
<th>${r}</th>`);else{let s="";a!=""&&a!=null&&(s="hidden "+a+":table-cell"),this.wideColumn[n]&&(s+=" wide-column"),t.push(u`
|
|
2470
2471
|
<th class="${s}">${r}</th>`)}}),u`
|
|
2471
2472
|
<thead>
|
|
@@ -2592,7 +2593,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
2592
2593
|
</div>
|
|
2593
2594
|
</div>
|
|
2594
2595
|
</div>
|
|
2595
|
-
`}};Fr.styles=z(L1),c([d()],Fr.prototype,"caption",2),c([d()],Fr.prototype,"description",2),c([d()],Fr.prototype,"amount",2),c([d()],Fr.prototype,"type",2),c([d()],Fr.prototype,"previous",2),c([d()],Fr.prototype,"currency",2),c([d({type:Boolean,attribute:"show-delta"})],Fr.prototype,"showDelta",2),c([d()],Fr.prototype,"color",2);var g8=Fr;Fr.define("zn-stat");var q1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:block;height:var(--zn-scroll-container-height-property,var(--zn-scroll-container-height,100%));max-height:var(--zn-scroll-container-height-property,var(--zn-scroll-container-height,100%));--zn-scroll-footer-height:0px;--zn-scroll-header-height:0px}.container{max-height:100%;max-width:100%;height:100%;width:100%;display:flex;flex-direction:column;position:relative;overflow:hidden}.scroll-container{container-type:inline-size;display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;width:100%;overflow-y:auto;flex-grow:1;margin:0;padding:0 0 var(--zn-scroll-footer-height,0px) 0}.scroll-header{display:contents}.scroll-footer{padding:0;margin:0;position:absolute;bottom:0;left:0;right:0;display:flex}`;var dn=class extends k{constructor(){super(...arguments);this.height="";this.startScrolled=!1;this._footerObserved=!1;this._footerHeightFrame=null;this._footerResizeObserver=new
|
|
2596
|
+
`}};Fr.styles=z(L1),c([d()],Fr.prototype,"caption",2),c([d()],Fr.prototype,"description",2),c([d()],Fr.prototype,"amount",2),c([d()],Fr.prototype,"type",2),c([d()],Fr.prototype,"previous",2),c([d()],Fr.prototype,"currency",2),c([d({type:Boolean,attribute:"show-delta"})],Fr.prototype,"showDelta",2),c([d()],Fr.prototype,"color",2);var g8=Fr;Fr.define("zn-stat");var q1=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:block;height:var(--zn-scroll-container-height-property,var(--zn-scroll-container-height,100%));max-height:var(--zn-scroll-container-height-property,var(--zn-scroll-container-height,100%));--zn-scroll-footer-height:0px;--zn-scroll-header-height:0px}.container{max-height:100%;max-width:100%;height:100%;width:100%;display:flex;flex-direction:column;position:relative;overflow:hidden}.scroll-container{container-type:inline-size;display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;width:100%;overflow-y:auto;flex-grow:1;margin:0;padding:0 0 var(--zn-scroll-footer-height,0px) 0}.scroll-header{display:contents}.scroll-footer{padding:0;margin:0;position:absolute;bottom:0;left:0;right:0;display:flex}`;var dn=class extends k{constructor(){super(...arguments);this.height="";this.startScrolled=!1;this._footerObserved=!1;this._footerHeightFrame=null;this._footerResizeObserver=new ut(this,{target:null,callback:()=>this._syncFooterHeight()});this._domObserver=new Pe(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>{setTimeout(()=>this.scrollEnd(),100),this.footer&&(this._syncFooterHeight(),this._footerObserved||(this._footerObserved=!0,this._footerResizeObserver.observe(this.footer)))}})}firstUpdated(t){super.firstUpdated(t),this.startScrolled&&this.container&&setTimeout(this.scrollEnd.bind(this),10)}updated(t){super.updated(t),t.has("height")&&(this.height?this.style.setProperty("--zn-scroll-container-height-property",this.height):this.style.removeProperty("--zn-scroll-container-height-property"))}disconnectedCallback(){super.disconnectedCallback(),this._footerHeightFrame!==null&&(cancelAnimationFrame(this._footerHeightFrame),this._footerHeightFrame=null)}scrollEnd(){this.container.scrollTop=this.container.scrollHeight}_syncFooterHeight(){this._footerHeightFrame===null&&(this._footerHeightFrame=requestAnimationFrame(()=>{this._footerHeightFrame=null;let t=`${this.footer?.clientHeight??0}px`;this.style.getPropertyValue("--zn-scroll-footer-height")!==t&&this.style.setProperty("--zn-scroll-footer-height",t)}))}connectedCallback(){super.connectedCallback(),this.startScrolled&&this._domObserver.observe(this)}render(){return u`
|
|
2596
2597
|
<div class="container">
|
|
2597
2598
|
<div class="scroll-header">
|
|
2598
2599
|
<slot name="header"></slot>
|
|
@@ -2856,7 +2857,7 @@ import{a as Hn,b as x3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var X
|
|
|
2856
2857
|
<zn-input type="text"
|
|
2857
2858
|
class="query-builder__value"
|
|
2858
2859
|
@zn-input="${a=>this._updateValue(t,a)}">
|
|
2859
|
-
</zn-input>`;return It(n)}_updateValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;n.value=a.value,this._selectedRules.set(t,n),this._handleChange()}_getRulePosition(t){let r=this.container.querySelectorAll(".query-builder__row"),n=-1;return r.forEach((a,s)=>{a.id===t&&(n=s)}),n}_changeRule(t,r){let n=this._getRulePosition(t),a=r.target;a.popup.active=!1,a?.parentElement?.remove(),this._removeRule(t,r),this._addRule(r,"",n)}_removeRule(t,r){this._selectedRules.delete(t),r.target?.closest(".query-builder__row")?.remove(),this._handleChange()}checkValidity(){return this.input.checkValidity()}getForm(){return this._formController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this._formController.updateValidity()}};Zr.styles=[z(bs),z(O1)],Zr.dependencies={"zn-button":Me,"zn-input":at,"zn-option":st,"zn-select":Be},c([F(".bulk-actions")],Zr.prototype,"container",2),c([F(".add-rule")],Zr.prototype,"addRule",2),c([F("input#main-input")],Zr.prototype,"input",2),c([d()],Zr.prototype,"name",2),c([d()],Zr.prototype,"value",2),c([d({type:Array})],Zr.prototype,"actions",2);var w8=Zr;Zr.define("zn-bulk-actions");var z8=()=>{let o="attachment",i=new Date().getTime();return`${o}_${i}`},Yl=class{constructor(i,t){this._attachmentContainer=document.createElement("div");this._quill=i,this._options=t,typeof this._options.upload!="function"&&console.warn("[Quill Attachment Module] No upload function provided"),typeof this._options.onFileUploaded!="function"&&console.warn("[Quill Attachment Module] No file uploaded function provided"),this._quill.getModule("toolbar").addHandler("attachment",this._selectLocalImage.bind(this)),this._createAttachmentContainer()}_selectLocalImage(){this._fileHolder=document.createElement("input"),this._fileHolder.setAttribute("type","file"),this._fileHolder.setAttribute("accept","*/*"),this._fileHolder.onchange=this._fileChanged.bind(this),this._fileHolder.click()}_fileChanged(){if(!this._fileHolder?.files||this._fileHolder.files.length<0)return;let i=this._fileHolder.files[0];this.addAttachment(i)}addAttachment(i,t){let r=z8(),n=a=>{this._insertAttachment({dataUrl:a,file:i,id:r})};if(t)n(t);else{let a=new FileReader;a.addEventListener("load",()=>{let s=a.result;n(s)},!1),a.readAsDataURL(i)}typeof this._options.upload=="function"&&this._options.upload(i).then(async({path:a,url:s})=>{await this._uploadAttachment(i,s),this._updateAttachment(r,s,a)}).catch(a=>{console.warn(a.message)})}_createAttachmentContainer(){let i=this._attachmentContainer;i.id="attachment-container",i.style.display="flex",i.style.flexWrap="wrap",i.style.gap="10px",i.style.position="absolute",i.style.bottom="0",i.style.left="0",i.style.right="0",i.style.padding="10px",this._quill.container.appendChild(i)}_insertAttachment({dataUrl:i,file:t,id:r}){this._attachmentContainer.appendChild(this._createAttachment(i,t,r))}_updateAttachment(i,t,r){let n=this._quill.container.querySelector(`#${i}`);if(!n)return;n.setAttribute("href",t);let a=n.querySelector(".attachment-name");a&&(r?a.textContent=r:a.textContent="Error uploading file"),this._options.onFileUploaded&&this._options.onFileUploaded(n,{url:t});let s=this._options.attachmentInput;if(s&&r){let l=s.value,p=l?JSON.parse(l):[];p.push(r),s.value=JSON.stringify(p)}}_createAttachment(i,t,r){let n=document.createElement("a");n.setAttribute("href",i),n.setAttribute("id",r),n.setAttribute("download",t.name),n.style.padding="10px",n.style.backgroundColor="white",n.style.border="1px solid #ccc",n.style.borderRadius="5px",n.style.display="flex",n.style.alignItems="center",n.style.gap="5px";let a=document.createElement("p");a.classList.add("attachment-name"),a.textContent="Uploading...",n.appendChild(a);let s=document.createElement("button");return s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 30 30"><path d="M7 4a.995.995 0 0 0-.707.293l-2 2a.999.999 0 0 0 0 1.414L11.586 15l-7.293 7.293a.999.999 0 0 0 0 1.414l2 2a.999.999 0 0 0 1.414 0L15 18.414l7.293 7.293a.999.999 0 0 0 1.414 0l2-2a.999.999 0 0 0 0-1.414L18.414 15l7.293-7.293a.999.999 0 0 0 0-1.414l-2-2a.999.999 0 0 0-1.414 0L15 11.586 7.707 4.293A.996.996 0 0 0 7 4z"/></svg>',s.onclick=l=>{l.preventDefault(),l.stopImmediatePropagation(),this._removeAttachment(r)},n.appendChild(s),n}reset(){this._attachmentContainer.replaceChildren();let i=this._options.attachmentInput;i&&(i.value="")}_removeAttachment(i){let t=this._quill.container.querySelector(`#${i}`);t&&t.remove();let r=this._options.attachmentInput;if(r){let n=r.value,a=t?.querySelector(".attachment-name"),s=n?JSON.parse(n):[],l=s.indexOf(a?.textContent?a.textContent:"");l>-1&&(s.splice(l,1),r.value=JSON.stringify(s))}}_uploadAttachment(i,t){return new Promise((r,n)=>{let a=new XMLHttpRequest;a.open("PUT",t,!0),a.setRequestHeader("Content-Type",i.type),a.onload=()=>{a.status>=200&&a.status<300?r():n(new Error(`[Quill Attachment Module] Failed to upload file. Status: ${a.status}`))},a.onerror=()=>{n(new Error("[Quill Attachment Module] Error occurred while uploading file."))},a.send(i)})}};var D_=_r(ei(),1);var PS=typeof global=="object"&&global&&global.Object===Object&&global,Ap=PS;var HS=typeof self=="object"&&self&&self.Object===Object&&self,FS=Ap||HS||Function("return this")(),Bt=FS;var BS=Bt.Symbol,Ni=BS;var xx=Object.prototype,VS=xx.hasOwnProperty,US=xx.toString,oc=Ni?Ni.toStringTag:void 0;function jS(o){var i=VS.call(o,oc),t=o[oc];try{o[oc]=void 0;var r=!0}catch{}var n=US.call(o);return r&&(i?o[oc]=t:delete o[oc]),n}var wx=jS;var GS=Object.prototype,WS=GS.toString;function KS(o){return WS.call(o)}var zx=KS;var YS="[object Null]",QS="[object Undefined]",_x=Ni?Ni.toStringTag:void 0;function XS(o){return o==null?o===void 0?QS:YS:_x&&_x in Object(o)?wx(o):zx(o)}var pn=XS;function JS(o){return o!=null&&typeof o=="object"}var br=JS;var ZS=Array.isArray,Pi=ZS;function eC(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}var Ar=eC;function tC(o){return o}var Mp=tC;var rC="[object AsyncFunction]",iC="[object Function]",nC="[object GeneratorFunction]",oC="[object Proxy]";function aC(o){if(!Ar(o))return!1;var i=pn(o);return i==iC||i==nC||i==rC||i==oC}var $s=aC;var sC=Bt["__core-js_shared__"],Lp=sC;var kx=(function(){var o=/[^.]+$/.exec(Lp&&Lp.keys&&Lp.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function lC(o){return!!kx&&kx in o}var Sx=lC;var cC=Function.prototype,dC=cC.toString;function pC(o){if(o!=null){try{return dC.call(o)}catch{}try{return o+""}catch{}}return""}var to=pC;var hC=/[\\^$.*+?()[\]{}|]/g,uC=/^\[object .+?Constructor\]$/,mC=Function.prototype,fC=Object.prototype,gC=mC.toString,bC=fC.hasOwnProperty,vC=RegExp("^"+gC.call(bC).replace(hC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yC(o){if(!Ar(o)||Sx(o))return!1;var i=$s(o)?vC:uC;return i.test(to(o))}var Cx=yC;function xC(o,i){return o?.[i]}var Ex=xC;function wC(o,i){var t=Ex(o,i);return Cx(t)?t:void 0}var ti=wC;var zC=ti(Bt,"WeakMap"),qp=zC;var Tx=Object.create,_C=(function(){function o(){}return function(i){if(!Ar(i))return{};if(Tx)return Tx(i);o.prototype=i;var t=new o;return o.prototype=void 0,t}})(),$x=_C;function kC(o,i,t){switch(t.length){case 0:return o.call(i);case 1:return o.call(i,t[0]);case 2:return o.call(i,t[0],t[1]);case 3:return o.call(i,t[0],t[1],t[2])}return o.apply(i,t)}var Ax=kC;function SC(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}var Ip=SC;var CC=800,EC=16,TC=Date.now;function $C(o){var i=0,t=0;return function(){var r=TC(),n=EC-(r-t);if(t=r,n>0){if(++i>=CC)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}var Mx=$C;function AC(o){return function(){return o}}var Lx=AC;var MC=(function(){try{var o=ti(Object,"defineProperty");return o({},"",{}),o}catch{}})(),As=MC;var LC=As?function(o,i){return As(o,"toString",{configurable:!0,enumerable:!1,value:Lx(i),writable:!0})}:Mp,qx=LC;var qC=Mx(qx),Ix=qC;function IC(o,i){for(var t=-1,r=o==null?0:o.length;++t<r&&i(o[t],t,o)!==!1;);return o}var Dx=IC;var DC=9007199254740991,RC=/^(?:0|[1-9]\d*)$/;function OC(o,i){var t=typeof o;return i=i??DC,!!i&&(t=="number"||t!="symbol"&&RC.test(o))&&o>-1&&o%1==0&&o<i}var Dp=OC;function NC(o,i,t){i=="__proto__"&&As?As(o,i,{configurable:!0,enumerable:!0,value:t,writable:!0}):o[i]=t}var Ms=NC;function PC(o,i){return o===i||o!==o&&i!==i}var $n=PC;var HC=Object.prototype,FC=HC.hasOwnProperty;function BC(o,i,t){var r=o[i];(!(FC.call(o,i)&&$n(r,t))||t===void 0&&!(i in o))&&Ms(o,i,t)}var Rp=BC;function VC(o,i,t,r){var n=!t;t||(t={});for(var a=-1,s=i.length;++a<s;){var l=i[a],p=r?r(t[l],o[l],l,t,o):void 0;p===void 0&&(p=o[l]),n?Ms(t,l,p):Rp(t,l,p)}return t}var An=VC;var Rx=Math.max;function UC(o,i,t){return i=Rx(i===void 0?o.length-1:i,0),function(){for(var r=arguments,n=-1,a=Rx(r.length-i,0),s=Array(a);++n<a;)s[n]=r[i+n];n=-1;for(var l=Array(i+1);++n<i;)l[n]=r[n];return l[i]=t(s),Ax(o,this,l)}}var Ox=UC;function jC(o,i){return Ix(Ox(o,i,Mp),o+"")}var Nx=jC;var GC=9007199254740991;function WC(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=GC}var Op=WC;function KC(o){return o!=null&&Op(o.length)&&!$s(o)}var Lo=KC;function YC(o,i,t){if(!Ar(t))return!1;var r=typeof i;return(r=="number"?Lo(t)&&Dp(i,t.length):r=="string"&&i in t)?$n(t[i],o):!1}var Px=YC;function QC(o){return Nx(function(i,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(a=o.length>3&&typeof a=="function"?(n--,a):void 0,s&&Px(t[0],t[1],s)&&(a=n<3?void 0:a,n=1),i=Object(i);++r<n;){var l=t[r];l&&o(i,l,r,a)}return i})}var Hx=QC;var XC=Object.prototype;function JC(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||XC;return o===t}var Ls=JC;function ZC(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}var Fx=ZC;var e7="[object Arguments]";function t7(o){return br(o)&&pn(o)==e7}var Jm=t7;var Bx=Object.prototype,r7=Bx.hasOwnProperty,i7=Bx.propertyIsEnumerable,n7=Jm((function(){return arguments})())?Jm:function(o){return br(o)&&r7.call(o,"callee")&&!i7.call(o,"callee")},ac=n7;function o7(){return!1}var Vx=o7;var Gx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ux=Gx&&typeof module=="object"&&module&&!module.nodeType&&module,a7=Ux&&Ux.exports===Gx,jx=a7?Bt.Buffer:void 0,s7=jx?jx.isBuffer:void 0,l7=s7||Vx,ro=l7;var c7="[object Arguments]",d7="[object Array]",p7="[object Boolean]",h7="[object Date]",u7="[object Error]",m7="[object Function]",f7="[object Map]",g7="[object Number]",b7="[object Object]",v7="[object RegExp]",y7="[object Set]",x7="[object String]",w7="[object WeakMap]",z7="[object ArrayBuffer]",_7="[object DataView]",k7="[object Float32Array]",S7="[object Float64Array]",C7="[object Int8Array]",E7="[object Int16Array]",T7="[object Int32Array]",$7="[object Uint8Array]",A7="[object Uint8ClampedArray]",M7="[object Uint16Array]",L7="[object Uint32Array]",ct={};ct[k7]=ct[S7]=ct[C7]=ct[E7]=ct[T7]=ct[$7]=ct[A7]=ct[M7]=ct[L7]=!0;ct[c7]=ct[d7]=ct[z7]=ct[p7]=ct[_7]=ct[h7]=ct[u7]=ct[m7]=ct[f7]=ct[g7]=ct[b7]=ct[v7]=ct[y7]=ct[x7]=ct[w7]=!1;function q7(o){return br(o)&&Op(o.length)&&!!ct[pn(o)]}var Wx=q7;function I7(o){return function(i){return o(i)}}var qs=I7;var Kx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sc=Kx&&typeof module=="object"&&module&&!module.nodeType&&module,D7=sc&&sc.exports===Kx,Zm=D7&&Ap.process,R7=(function(){try{var o=sc&&sc.require&&sc.require("util").types;return o||Zm&&Zm.binding&&Zm.binding("util")}catch{}})(),io=R7;var Yx=io&&io.isTypedArray,O7=Yx?qs(Yx):Wx,Is=O7;var N7=Object.prototype,P7=N7.hasOwnProperty;function H7(o,i){var t=Pi(o),r=!t&&ac(o),n=!t&&!r&&ro(o),a=!t&&!r&&!n&&Is(o),s=t||r||n||a,l=s?Fx(o.length,String):[],p=l.length;for(var h in o)(i||P7.call(o,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Dp(h,p)))&&l.push(h);return l}var Np=H7;function F7(o,i){return function(t){return o(i(t))}}var Pp=F7;var B7=Pp(Object.keys,Object),Qx=B7;var V7=Object.prototype,U7=V7.hasOwnProperty;function j7(o){if(!Ls(o))return Qx(o);var i=[];for(var t in Object(o))U7.call(o,t)&&t!="constructor"&&i.push(t);return i}var Xx=j7;function G7(o){return Lo(o)?Np(o):Xx(o)}var Ds=G7;function W7(o){var i=[];if(o!=null)for(var t in Object(o))i.push(t);return i}var Jx=W7;var K7=Object.prototype,Y7=K7.hasOwnProperty;function Q7(o){if(!Ar(o))return Jx(o);var i=Ls(o),t=[];for(var r in o)r=="constructor"&&(i||!Y7.call(o,r))||t.push(r);return t}var Zx=Q7;function X7(o){return Lo(o)?Np(o,!0):Zx(o)}var Mn=X7;var J7=ti(Object,"create"),no=J7;function Z7(){this.__data__=no?no(null):{},this.size=0}var ew=Z7;function eE(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}var tw=eE;var tE="__lodash_hash_undefined__",rE=Object.prototype,iE=rE.hasOwnProperty;function nE(o){var i=this.__data__;if(no){var t=i[o];return t===tE?void 0:t}return iE.call(i,o)?i[o]:void 0}var rw=nE;var oE=Object.prototype,aE=oE.hasOwnProperty;function sE(o){var i=this.__data__;return no?i[o]!==void 0:aE.call(i,o)}var iw=sE;var lE="__lodash_hash_undefined__";function cE(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=no&&i===void 0?lE:i,this}var nw=cE;function Rs(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Rs.prototype.clear=ew;Rs.prototype.delete=tw;Rs.prototype.get=rw;Rs.prototype.has=iw;Rs.prototype.set=nw;var ef=Rs;function dE(){this.__data__=[],this.size=0}var ow=dE;function pE(o,i){for(var t=o.length;t--;)if($n(o[t][0],i))return t;return-1}var qo=pE;var hE=Array.prototype,uE=hE.splice;function mE(o){var i=this.__data__,t=qo(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():uE.call(i,t,1),--this.size,!0}var aw=mE;function fE(o){var i=this.__data__,t=qo(i,o);return t<0?void 0:i[t][1]}var sw=fE;function gE(o){return qo(this.__data__,o)>-1}var lw=gE;function bE(o,i){var t=this.__data__,r=qo(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}var cw=bE;function Os(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Os.prototype.clear=ow;Os.prototype.delete=aw;Os.prototype.get=sw;Os.prototype.has=lw;Os.prototype.set=cw;var Io=Os;var vE=ti(Bt,"Map"),Do=vE;function yE(){this.size=0,this.__data__={hash:new ef,map:new(Do||Io),string:new ef}}var dw=yE;function xE(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}var pw=xE;function wE(o,i){var t=o.__data__;return pw(i)?t[typeof i=="string"?"string":"hash"]:t.map}var Ro=wE;function zE(o){var i=Ro(this,o).delete(o);return this.size-=i?1:0,i}var hw=zE;function _E(o){return Ro(this,o).get(o)}var uw=_E;function kE(o){return Ro(this,o).has(o)}var mw=kE;function SE(o,i){var t=Ro(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}var fw=SE;function Ns(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Ns.prototype.clear=dw;Ns.prototype.delete=hw;Ns.prototype.get=uw;Ns.prototype.has=mw;Ns.prototype.set=fw;var Hp=Ns;function CE(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}var Fp=CE;var EE=Pp(Object.getPrototypeOf,Object),Ps=EE;var TE="[object Object]",$E=Function.prototype,AE=Object.prototype,gw=$E.toString,ME=AE.hasOwnProperty,LE=gw.call(Object);function qE(o){if(!br(o)||pn(o)!=TE)return!1;var i=Ps(o);if(i===null)return!0;var t=ME.call(i,"constructor")&&i.constructor;return typeof t=="function"&&t instanceof t&&gw.call(t)==LE}var bw=qE;function IE(){this.__data__=new Io,this.size=0}var vw=IE;function DE(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}var yw=DE;function RE(o){return this.__data__.get(o)}var xw=RE;function OE(o){return this.__data__.has(o)}var ww=OE;var NE=200;function PE(o,i){var t=this.__data__;if(t instanceof Io){var r=t.__data__;if(!Do||r.length<NE-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new Hp(r)}return t.set(o,i),this.size=t.size,this}var zw=PE;function Hs(o){var i=this.__data__=new Io(o);this.size=i.size}Hs.prototype.clear=vw;Hs.prototype.delete=yw;Hs.prototype.get=xw;Hs.prototype.has=ww;Hs.prototype.set=zw;var Oo=Hs;function HE(o,i){return o&&An(i,Ds(i),o)}var _w=HE;function FE(o,i){return o&&An(i,Mn(i),o)}var kw=FE;var Tw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sw=Tw&&typeof module=="object"&&module&&!module.nodeType&&module,BE=Sw&&Sw.exports===Tw,Cw=BE?Bt.Buffer:void 0,Ew=Cw?Cw.allocUnsafe:void 0;function VE(o,i){if(i)return o.slice();var t=o.length,r=Ew?Ew(t):new o.constructor(t);return o.copy(r),r}var Bp=VE;function UE(o,i){for(var t=-1,r=o==null?0:o.length,n=0,a=[];++t<r;){var s=o[t];i(s,t,o)&&(a[n++]=s)}return a}var $w=UE;function jE(){return[]}var Vp=jE;var GE=Object.prototype,WE=GE.propertyIsEnumerable,Aw=Object.getOwnPropertySymbols,KE=Aw?function(o){return o==null?[]:(o=Object(o),$w(Aw(o),function(i){return WE.call(o,i)}))}:Vp,Fs=KE;function YE(o,i){return An(o,Fs(o),i)}var Mw=YE;var QE=Object.getOwnPropertySymbols,XE=QE?function(o){for(var i=[];o;)Fp(i,Fs(o)),o=Ps(o);return i}:Vp,Up=XE;function JE(o,i){return An(o,Up(o),i)}var Lw=JE;function ZE(o,i,t){var r=i(o);return Pi(o)?r:Fp(r,t(o))}var jp=ZE;function eT(o){return jp(o,Ds,Fs)}var lc=eT;function tT(o){return jp(o,Mn,Up)}var qw=tT;var rT=ti(Bt,"DataView"),Gp=rT;var iT=ti(Bt,"Promise"),Wp=iT;var nT=ti(Bt,"Set"),Kp=nT;var Iw="[object Map]",oT="[object Object]",Dw="[object Promise]",Rw="[object Set]",Ow="[object WeakMap]",Nw="[object DataView]",aT=to(Gp),sT=to(Do),lT=to(Wp),cT=to(Kp),dT=to(qp),Da=pn;(Gp&&Da(new Gp(new ArrayBuffer(1)))!=Nw||Do&&Da(new Do)!=Iw||Wp&&Da(Wp.resolve())!=Dw||Kp&&Da(new Kp)!=Rw||qp&&Da(new qp)!=Ow)&&(Da=function(o){var i=pn(o),t=i==oT?o.constructor:void 0,r=t?to(t):"";if(r)switch(r){case aT:return Nw;case sT:return Iw;case lT:return Dw;case cT:return Rw;case dT:return Ow}return i});var oo=Da;var pT=Object.prototype,hT=pT.hasOwnProperty;function uT(o){var i=o.length,t=new o.constructor(i);return i&&typeof o[0]=="string"&&hT.call(o,"index")&&(t.index=o.index,t.input=o.input),t}var Pw=uT;var mT=Bt.Uint8Array,Bs=mT;function fT(o){var i=new o.constructor(o.byteLength);return new Bs(i).set(new Bs(o)),i}var Vs=fT;function gT(o,i){var t=i?Vs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}var Hw=gT;var bT=/\w*$/;function vT(o){var i=new o.constructor(o.source,bT.exec(o));return i.lastIndex=o.lastIndex,i}var Fw=vT;var Bw=Ni?Ni.prototype:void 0,Vw=Bw?Bw.valueOf:void 0;function yT(o){return Vw?Object(Vw.call(o)):{}}var Uw=yT;function xT(o,i){var t=i?Vs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}var Yp=xT;var wT="[object Boolean]",zT="[object Date]",_T="[object Map]",kT="[object Number]",ST="[object RegExp]",CT="[object Set]",ET="[object String]",TT="[object Symbol]",$T="[object ArrayBuffer]",AT="[object DataView]",MT="[object Float32Array]",LT="[object Float64Array]",qT="[object Int8Array]",IT="[object Int16Array]",DT="[object Int32Array]",RT="[object Uint8Array]",OT="[object Uint8ClampedArray]",NT="[object Uint16Array]",PT="[object Uint32Array]";function HT(o,i,t){var r=o.constructor;switch(i){case $T:return Vs(o);case wT:case zT:return new r(+o);case AT:return Hw(o,t);case MT:case LT:case qT:case IT:case DT:case RT:case OT:case NT:case PT:return Yp(o,t);case _T:return new r;case kT:case ET:return new r(o);case ST:return Fw(o);case CT:return new r;case TT:return Uw(o)}}var jw=HT;function FT(o){return typeof o.constructor=="function"&&!Ls(o)?$x(Ps(o)):{}}var Qp=FT;var BT="[object Map]";function VT(o){return br(o)&&oo(o)==BT}var Gw=VT;var Ww=io&&io.isMap,UT=Ww?qs(Ww):Gw,Kw=UT;var jT="[object Set]";function GT(o){return br(o)&&oo(o)==jT}var Yw=GT;var Qw=io&&io.isSet,WT=Qw?qs(Qw):Yw,Xw=WT;var KT=1,YT=2,QT=4,Jw="[object Arguments]",XT="[object Array]",JT="[object Boolean]",ZT="[object Date]",e$="[object Error]",Zw="[object Function]",t$="[object GeneratorFunction]",r$="[object Map]",i$="[object Number]",ez="[object Object]",n$="[object RegExp]",o$="[object Set]",a$="[object String]",s$="[object Symbol]",l$="[object WeakMap]",c$="[object ArrayBuffer]",d$="[object DataView]",p$="[object Float32Array]",h$="[object Float64Array]",u$="[object Int8Array]",m$="[object Int16Array]",f$="[object Int32Array]",g$="[object Uint8Array]",b$="[object Uint8ClampedArray]",v$="[object Uint16Array]",y$="[object Uint32Array]",it={};it[Jw]=it[XT]=it[c$]=it[d$]=it[JT]=it[ZT]=it[p$]=it[h$]=it[u$]=it[m$]=it[f$]=it[r$]=it[i$]=it[ez]=it[n$]=it[o$]=it[a$]=it[s$]=it[g$]=it[b$]=it[v$]=it[y$]=!0;it[e$]=it[Zw]=it[l$]=!1;function Xp(o,i,t,r,n,a){var s,l=i&KT,p=i&YT,h=i&QT;if(t&&(s=n?t(o,r,n,a):t(o)),s!==void 0)return s;if(!Ar(o))return o;var m=Pi(o);if(m){if(s=Pw(o),!l)return Ip(o,s)}else{var f=oo(o),b=f==Zw||f==t$;if(ro(o))return Bp(o,l);if(f==ez||f==Jw||b&&!n){if(s=p||b?{}:Qp(o),!l)return p?Lw(o,kw(s,o)):Mw(o,_w(s,o))}else{if(!it[f])return n?o:{};s=jw(o,f,l)}}a||(a=new Oo);var g=a.get(o);if(g)return g;a.set(o,s),Xw(o)?o.forEach(function(C){s.add(Xp(C,i,t,C,o,a))}):Kw(o)&&o.forEach(function(C,T){s.set(T,Xp(C,i,t,T,o,a))});var v=h?p?qw:lc:p?Mn:Ds,y=m?void 0:v(o);return Dx(y||o,function(C,T){y&&(T=C,C=o[T]),Rp(s,T,Xp(C,i,t,T,o,a))}),s}var tz=Xp;var x$=1,w$=4;function z$(o){return tz(o,x$|w$)}var Ln=z$;var _$="__lodash_hash_undefined__";function k$(o){return this.__data__.set(o,_$),this}var rz=k$;function S$(o){return this.__data__.has(o)}var iz=S$;function Jp(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new Hp;++i<t;)this.add(o[i])}Jp.prototype.add=Jp.prototype.push=rz;Jp.prototype.has=iz;var nz=Jp;function C$(o,i){for(var t=-1,r=o==null?0:o.length;++t<r;)if(i(o[t],t,o))return!0;return!1}var oz=C$;function E$(o,i){return o.has(i)}var az=E$;var T$=1,$$=2;function A$(o,i,t,r,n,a){var s=t&T$,l=o.length,p=i.length;if(l!=p&&!(s&&p>l))return!1;var h=a.get(o),m=a.get(i);if(h&&m)return h==i&&m==o;var f=-1,b=!0,g=t&$$?new nz:void 0;for(a.set(o,i),a.set(i,o);++f<l;){var v=o[f],y=i[f];if(r)var C=s?r(y,v,f,i,o,a):r(v,y,f,o,i,a);if(C!==void 0){if(C)continue;b=!1;break}if(g){if(!oz(i,function(T,O){if(!az(g,O)&&(v===T||n(v,T,t,r,a)))return g.push(O)})){b=!1;break}}else if(!(v===y||n(v,y,t,r,a))){b=!1;break}}return a.delete(o),a.delete(i),b}var Zp=A$;function M$(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}var sz=M$;function L$(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var lz=L$;var q$=1,I$=2,D$="[object Boolean]",R$="[object Date]",O$="[object Error]",N$="[object Map]",P$="[object Number]",H$="[object RegExp]",F$="[object Set]",B$="[object String]",V$="[object Symbol]",U$="[object ArrayBuffer]",j$="[object DataView]",cz=Ni?Ni.prototype:void 0,tf=cz?cz.valueOf:void 0;function G$(o,i,t,r,n,a,s){switch(t){case j$:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case U$:return!(o.byteLength!=i.byteLength||!a(new Bs(o),new Bs(i)));case D$:case R$:case P$:return $n(+o,+i);case O$:return o.name==i.name&&o.message==i.message;case H$:case B$:return o==i+"";case N$:var l=sz;case F$:var p=r&q$;if(l||(l=lz),o.size!=i.size&&!p)return!1;var h=s.get(o);if(h)return h==i;r|=I$,s.set(o,i);var m=Zp(l(o),l(i),r,n,a,s);return s.delete(o),m;case V$:if(tf)return tf.call(o)==tf.call(i)}return!1}var dz=G$;var W$=1,K$=Object.prototype,Y$=K$.hasOwnProperty;function Q$(o,i,t,r,n,a){var s=t&W$,l=lc(o),p=l.length,h=lc(i),m=h.length;if(p!=m&&!s)return!1;for(var f=p;f--;){var b=l[f];if(!(s?b in i:Y$.call(i,b)))return!1}var g=a.get(o),v=a.get(i);if(g&&v)return g==i&&v==o;var y=!0;a.set(o,i),a.set(i,o);for(var C=s;++f<p;){b=l[f];var T=o[b],O=i[b];if(r)var U=s?r(O,T,b,i,o,a):r(T,O,b,o,i,a);if(!(U===void 0?T===O||n(T,O,t,r,a):U)){y=!1;break}C||(C=b=="constructor")}if(y&&!C){var D=o.constructor,S=i.constructor;D!=S&&"constructor"in o&&"constructor"in i&&!(typeof D=="function"&&D instanceof D&&typeof S=="function"&&S instanceof S)&&(y=!1)}return a.delete(o),a.delete(i),y}var pz=Q$;var X$=1,hz="[object Arguments]",uz="[object Array]",eh="[object Object]",J$=Object.prototype,mz=J$.hasOwnProperty;function Z$(o,i,t,r,n,a){var s=Pi(o),l=Pi(i),p=s?uz:oo(o),h=l?uz:oo(i);p=p==hz?eh:p,h=h==hz?eh:h;var m=p==eh,f=h==eh,b=p==h;if(b&&ro(o)){if(!ro(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Oo),s||Is(o)?Zp(o,i,t,r,n,a):dz(o,i,p,t,r,n,a);if(!(t&X$)){var g=m&&mz.call(o,"__wrapped__"),v=f&&mz.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,C=v?i.value():i;return a||(a=new Oo),n(y,C,t,r,a)}}return b?(a||(a=new Oo),pz(o,i,t,r,n,a)):!1}var fz=Z$;function gz(o,i,t,r,n){return o===i?!0:o==null||i==null||!br(o)&&!br(i)?o!==o&&i!==i:fz(o,i,t,r,gz,n)}var bz=gz;function eA(o){return function(i,t,r){for(var n=-1,a=Object(i),s=r(i),l=s.length;l--;){var p=s[o?l:++n];if(t(a[p],p,a)===!1)break}return i}}var vz=eA;var tA=vz(),yz=tA;function rA(o,i,t){(t!==void 0&&!$n(o[i],t)||t===void 0&&!(i in o))&&Ms(o,i,t)}var cc=rA;function iA(o){return br(o)&&Lo(o)}var xz=iA;function nA(o,i){if(!(i==="constructor"&&typeof o[i]=="function")&&i!="__proto__")return o[i]}var dc=nA;function oA(o){return An(o,Mn(o))}var wz=oA;function aA(o,i,t,r,n,a,s){var l=dc(o,t),p=dc(i,t),h=s.get(p);if(h){cc(o,t,h);return}var m=a?a(l,p,t+"",o,i,s):void 0,f=m===void 0;if(f){var b=Pi(p),g=!b&&ro(p),v=!b&&!g&&Is(p);m=p,b||g||v?Pi(l)?m=l:xz(l)?m=Ip(l):g?(f=!1,m=Bp(p,!0)):v?(f=!1,m=Yp(p,!0)):m=[]:bw(p)||ac(p)?(m=l,ac(l)?m=wz(l):(!Ar(l)||$s(l))&&(m=Qp(p))):f=!1}f&&(s.set(p,m),n(m,p,r,a,s),s.delete(p)),cc(o,t,m)}var zz=aA;function _z(o,i,t,r,n){o!==i&&yz(i,function(a,s){if(n||(n=new Oo),Ar(a))zz(o,i,s,t,_z,r,n);else{var l=r?r(dc(o,s),a,s+"",o,i,n):void 0;l===void 0&&(l=a),cc(o,s,l)}},Mn)}var kz=_z;function sA(o,i){return bz(o,i)}var Ra=sA;var lA=Hx(function(o,i,t){kz(o,i,t)}),ri=lA;var uc={};x3(uc,{Attributor:()=>Vr,AttributorStore:()=>pc,BlockBlot:()=>Oa,ClassAttributor:()=>Vt,ContainerBlot:()=>Ks,EmbedBlot:()=>wt,InlineBlot:()=>th,LeafBlot:()=>Ut,ParentBlot:()=>ii,Registry:()=>Ho,Scope:()=>X,ScrollBlot:()=>hc,StyleAttributor:()=>ni,TextBlot:()=>Ys});var X=(o=>(o[o.TYPE=3]="TYPE",o[o.LEVEL=12]="LEVEL",o[o.ATTRIBUTE=13]="ATTRIBUTE",o[o.BLOT=14]="BLOT",o[o.INLINE=7]="INLINE",o[o.BLOCK=11]="BLOCK",o[o.BLOCK_BLOT=10]="BLOCK_BLOT",o[o.INLINE_BLOT=6]="INLINE_BLOT",o[o.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",o[o.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",o[o.ANY=15]="ANY",o))(X||{}),Vr=class{constructor(i,t,r={}){this.attrName=i,this.keyName=t;let n=X.TYPE&X.ATTRIBUTE;this.scope=r.scope!=null?r.scope&X.LEVEL|n:X.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(i){return Array.from(i.attributes).map(t=>t.name)}add(i,t){return this.canAdd(i,t)?(i.setAttribute(this.keyName,t),!0):!1}canAdd(i,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(i){i.removeAttribute(this.keyName)}value(i){let t=i.getAttribute(this.keyName);return this.canAdd(i,t)&&t?t:""}},Po=class extends Error{constructor(i){i="[Parchment] "+i,super(i),this.message=i,this.name=this.constructor.name}},Ez=class nf{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(i,t=!1){if(i==null)return null;if(this.blots.has(i))return this.blots.get(i)||null;if(t){let r=null;try{r=i.parentNode}catch{return null}return this.find(r,t)}return null}create(i,t,r){let n=this.query(t);if(n==null)throw new Po(`Unable to create ${t} blot`);let a=n,s=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:a.create(r),l=new a(i,s,r);return nf.blots.set(l.domNode,l),l}find(i,t=!1){return nf.find(i,t)}query(i,t=X.ANY){let r;return typeof i=="string"?r=this.types[i]||this.attributes[i]:i instanceof Text||i.nodeType===Node.TEXT_NODE?r=this.types.text:typeof i=="number"?i&X.LEVEL&X.BLOCK?r=this.types.block:i&X.LEVEL&X.INLINE&&(r=this.types.inline):i instanceof Element&&((i.getAttribute("class")||"").split(/\s+/).some(n=>(r=this.classes[n],!!r)),r=r||this.tags[i.tagName]),r==null?null:"scope"in r&&t&X.LEVEL&r.scope&&t&X.TYPE&r.scope?r:null}register(...i){return i.map(t=>{let r="blotName"in t,n="attrName"in t;if(!r&&!n)throw new Po("Invalid definition");if(r&&t.blotName==="abstract")throw new Po("Cannot register abstract class");let a=r?t.blotName:n?t.attrName:void 0;return this.types[a]=t,n?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(s=>s.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(s=>{(this.tags[s]==null||t.className==null)&&(this.tags[s]=t)}))),t})}};Ez.blots=new WeakMap;var Ho=Ez;function Sz(o,i){return(o.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${i}-`)===0)}var of=class extends Vr{static keys(i){return(i.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(i,t){return this.canAdd(i,t)?(this.remove(i),i.classList.add(`${this.keyName}-${t}`),!0):!1}remove(i){Sz(i,this.keyName).forEach(t=>{i.classList.remove(t)}),i.classList.length===0&&i.removeAttribute("class")}value(i){let t=(Sz(i,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(i,t)?t:""}},Vt=of;function rf(o){let i=o.split("-"),t=i.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return i[0]+t}var af=class extends Vr{static keys(i){return(i.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(i,t){return this.canAdd(i,t)?(i.style[rf(this.keyName)]=t,!0):!1}remove(i){i.style[rf(this.keyName)]="",i.getAttribute("style")||i.removeAttribute("style")}value(i){let t=i.style[rf(this.keyName)];return this.canAdd(i,t)?t:""}},ni=af,sf=class{constructor(i){this.attributes={},this.domNode=i,this.build()}attribute(i,t){t?i.add(this.domNode,t)&&(i.value(this.domNode)!=null?this.attributes[i.attrName]=i:delete this.attributes[i.attrName]):(i.remove(this.domNode),delete this.attributes[i.attrName])}build(){this.attributes={};let i=Ho.find(this.domNode);if(i==null)return;let t=Vr.keys(this.domNode),r=Vt.keys(this.domNode),n=ni.keys(this.domNode);t.concat(r).concat(n).forEach(a=>{let s=i.scroll.query(a,X.ATTRIBUTE);s instanceof Vr&&(this.attributes[s.attrName]=s)})}copy(i){Object.keys(this.attributes).forEach(t=>{let r=this.attributes[t].value(this.domNode);i.format(t,r)})}move(i){this.copy(i),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((i,t)=>(i[t]=this.attributes[t].value(this.domNode),i),{})}},pc=sf,Tz=class{constructor(i,t){this.scroll=i,this.domNode=t,Ho.blots.set(t,this),this.prev=null,this.next=null}static create(i){if(this.tagName==null)throw new Po("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof i=="string"?(r=i.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof i=="number"&&(r=i),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){let i=this.domNode.cloneNode(!1);return this.scroll.create(i)}detach(){this.parent!=null&&this.parent.removeChild(this),Ho.blots.delete(this.domNode)}deleteAt(i,t){this.isolate(i,t).remove()}formatAt(i,t,r,n){let a=this.isolate(i,t);if(this.scroll.query(r,X.BLOT)!=null&&n)a.wrap(r,n);else if(this.scroll.query(r,X.ATTRIBUTE)!=null){let s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(r,n)}}insertAt(i,t,r){let n=r==null?this.scroll.create("text",t):this.scroll.create(t,r),a=this.split(i);this.parent.insertBefore(n,a||void 0)}isolate(i,t){let r=this.split(i);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(i=this.parent){return this.parent==null||this===i?0:this.parent.children.offset(this)+this.parent.offset(i)}optimize(i){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(i,t){return i===0?this:this.next}update(i,t){}wrap(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new Po(`Cannot wrap ${i}`);return r.appendChild(this),r}};Tz.blotName="abstract";var $z=Tz,Az=class extends $z{static value(i){return!0}index(i,t){return this.domNode===i||this.domNode.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(i,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return i>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Az.scope=X.INLINE_BLOT;var cA=Az,Ut=cA,lf=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...i){if(this.insertBefore(i[0],null),i.length>1){let t=i.slice(1);this.append(...t)}}at(i){let t=this.iterator(),r=t();for(;r&&i>0;)i-=1,r=t();return r}contains(i){let t=this.iterator(),r=t();for(;r;){if(r===i)return!0;r=t()}return!1}indexOf(i){let t=this.iterator(),r=t(),n=0;for(;r;){if(r===i)return n;n+=1,r=t()}return-1}insertBefore(i,t){i!=null&&(this.remove(i),i.next=t,t!=null?(i.prev=t.prev,t.prev!=null&&(t.prev.next=i),t.prev=i,t===this.head&&(this.head=i)):this.tail!=null?(this.tail.next=i,i.prev=this.tail,this.tail=i):(i.prev=null,this.head=this.tail=i),this.length+=1)}offset(i){let t=0,r=this.head;for(;r!=null;){if(r===i)return t;t+=r.length(),r=r.next}return-1}remove(i){this.contains(i)&&(i.prev!=null&&(i.prev.next=i.next),i.next!=null&&(i.next.prev=i.prev),i===this.head&&(this.head=i.next),i===this.tail&&(this.tail=i.prev),this.length-=1)}iterator(i=this.head){return()=>{let t=i;return i!=null&&(i=i.next),t}}find(i,t=!1){let r=this.iterator(),n=r();for(;n;){let a=n.length();if(i<a||t&&i===a&&(n.next==null||n.next.length()!==0))return[n,i];i-=a,n=r()}return[null,0]}forEach(i){let t=this.iterator(),r=t();for(;r;)i(r),r=t()}forEachAt(i,t,r){if(t<=0)return;let[n,a]=this.find(i),s=i-a,l=this.iterator(n),p=l();for(;p&&s<i+t;){let h=p.length();i>s?r(p,i-s,Math.min(t,s+h-i)):r(p,0,Math.min(h,i+t-s)),s+=h,p=l()}}map(i){return this.reduce((t,r)=>(t.push(i(r)),t),[])}reduce(i,t){let r=this.iterator(),n=r();for(;n;)t=i(t,n),n=r();return t}};function Cz(o,i){let t=i.find(o);if(t)return t;try{return i.create(o)}catch{let r=i.create(X.INLINE);return Array.from(o.childNodes).forEach(n=>{r.domNode.appendChild(n)}),o.parentNode&&o.parentNode.replaceChild(r.domNode,o),r.attach(),r}}var Mz=class No extends $z{constructor(i,t){super(i,t),this.uiNode=null,this.build()}appendChild(i){this.insertBefore(i)}attach(){super.attach(),this.children.forEach(i=>{i.attach()})}attachUI(i){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=i,No.uiClass&&this.uiNode.classList.add(No.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new lf,Array.from(this.domNode.childNodes).filter(i=>i!==this.uiNode).reverse().forEach(i=>{try{let t=Cz(i,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Po)return;throw t}})}deleteAt(i,t){if(i===0&&t===this.length())return this.remove();this.children.forEachAt(i,t,(r,n,a)=>{r.deleteAt(n,a)})}descendant(i,t=0){let[r,n]=this.children.find(t);return i.blotName==null&&i(r)||i.blotName!=null&&r instanceof i?[r,n]:r instanceof No?r.descendant(i,n):[null,-1]}descendants(i,t=0,r=Number.MAX_VALUE){let n=[],a=r;return this.children.forEachAt(t,r,(s,l,p)=>{(i.blotName==null&&i(s)||i.blotName!=null&&s instanceof i)&&n.push(s),s instanceof No&&(n=n.concat(s.descendants(i,l,a))),a-=p}),n}detach(){this.children.forEach(i=>{i.detach()}),super.detach()}enforceAllowedChildren(){let i=!1;this.children.forEach(t=>{i||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===X.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),i=!0):t instanceof No?t.unwrap():t.remove())})}formatAt(i,t,r,n){this.children.forEachAt(i,t,(a,s,l)=>{a.formatAt(s,l,r,n)})}insertAt(i,t,r){let[n,a]=this.children.find(i);if(n)n.insertAt(a,t,r);else{let s=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(s)}}insertBefore(i,t){i.parent!=null&&i.parent.children.remove(i);let r=null;this.children.insertBefore(i,t||null),i.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==i.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(i.domNode,r),i.attach()}length(){return this.children.reduce((i,t)=>i+t.length(),0)}moveChildren(i,t){this.children.forEach(r=>{i.insertBefore(r,t)})}optimize(i){if(super.optimize(i),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(i,t=!1){let[r,n]=this.children.find(i,t),a=[[this,i]];return r instanceof No?a.concat(r.path(n,t)):(r!=null&&a.push([r,n]),a)}removeChild(i){this.children.remove(i)}replaceWith(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;return r instanceof No&&this.moveChildren(r),super.replaceWith(r)}split(i,t=!1){if(!t){if(i===0)return this;if(i===this.length())return this.next}let r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(i,this.length(),(n,a,s)=>{let l=n.split(a,t);l!=null&&r.appendChild(l)}),r}splitAfter(i){let t=this.clone();for(;i.next!=null;)t.appendChild(i.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(i,t){let r=[],n=[];i.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),n.push(...a.removedNodes))}),n.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;let s=this.scroll.find(a);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,s)=>a===s?0:a.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let s=null;a.nextSibling!=null&&(s=this.scroll.find(a.nextSibling));let l=Cz(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Mz.uiClass="";var dA=Mz,ii=dA;function pA(o,i){if(Object.keys(o).length!==Object.keys(i).length)return!1;for(let t in o)if(o[t]!==i[t])return!1;return!0}var Us=class js extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(js.blotName);if(!(r!=null&&i.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return i.tagName.toLowerCase()}}constructor(i,t){super(i,t),this.attributes=new pc(this.domNode)}format(i,t){if(i===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof js||(r=r.wrap(js.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{let r=this.scroll.query(i,X.INLINE);if(r==null)return;r instanceof Vr?this.attributes.attribute(r,t):t&&(i!==this.statics.blotName||this.formats()[i]!==t)&&this.replaceWith(i,t)}}formats(){let i=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(i[this.statics.blotName]=t),i}formatAt(i,t,r,n){this.formats()[r]!=null||this.scroll.query(r,X.ATTRIBUTE)?this.isolate(i,t).format(r,n):super.formatAt(i,t,r,n)}optimize(i){super.optimize(i);let t=this.formats();if(Object.keys(t).length===0)return this.unwrap();let r=this.next;r instanceof js&&r.prev===this&&pA(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(i,t){let r=super.replaceWith(i,t);return this.attributes.copy(r),r}update(i,t){super.update(i,t),i.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(i,t){let r=super.wrap(i,t);return r instanceof js&&this.attributes.move(r),r}};Us.allowedChildren=[Us,Ut],Us.blotName="inline",Us.scope=X.INLINE_BLOT,Us.tagName="SPAN";var hA=Us,th=hA,Gs=class cf extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(cf.blotName);if(!(r!=null&&i.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return i.tagName.toLowerCase()}}constructor(i,t){super(i,t),this.attributes=new pc(this.domNode)}format(i,t){let r=this.scroll.query(i,X.BLOCK);r!=null&&(r instanceof Vr?this.attributes.attribute(r,t):i===this.statics.blotName&&!t?this.replaceWith(cf.blotName):t&&(i!==this.statics.blotName||this.formats()[i]!==t)&&this.replaceWith(i,t))}formats(){let i=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(i[this.statics.blotName]=t),i}formatAt(i,t,r,n){this.scroll.query(r,X.BLOCK)!=null?this.format(r,n):super.formatAt(i,t,r,n)}insertAt(i,t,r){if(r==null||this.scroll.query(t,X.INLINE)!=null)super.insertAt(i,t,r);else{let n=this.split(i);if(n!=null){let a=this.scroll.create(t,r);n.parent.insertBefore(a,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(i,t){let r=super.replaceWith(i,t);return this.attributes.copy(r),r}update(i,t){super.update(i,t),i.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};Gs.blotName="block",Gs.scope=X.BLOCK_BLOT,Gs.tagName="P",Gs.allowedChildren=[th,Gs,Ut];var uA=Gs,Oa=uA,df=class extends ii{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(i,t){super.deleteAt(i,t),this.enforceAllowedChildren()}formatAt(i,t,r,n){super.formatAt(i,t,r,n),this.enforceAllowedChildren()}insertAt(i,t,r){super.insertAt(i,t,r),this.enforceAllowedChildren()}optimize(i){super.optimize(i),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};df.blotName="container",df.scope=X.BLOCK_BLOT;var mA=df,Ks=mA,pf=class extends Ut{static formats(i,t){}format(i,t){super.formatAt(0,this.length(),i,t)}formatAt(i,t,r,n){i===0&&t===this.length()?this.format(r,n):super.formatAt(i,t,r,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},wt=pf,fA={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},gA=100,Ws=class extends ii{constructor(i,t){super(null,t),this.registry=i,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,fA),this.attach()}create(i,t){return this.registry.create(this,i,t)}find(i,t=!1){let r=this.registry.find(i,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(i,t=X.ANY){return this.registry.query(i,t)}register(...i){return this.registry.register(...i)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(i,t){this.update(),i===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(i,t)}formatAt(i,t,r,n){this.update(),super.formatAt(i,t,r,n)}insertAt(i,t,r){this.update(),super.insertAt(i,t,r)}optimize(i=[],t={}){super.optimize(t);let r=t.mutationsMap||new WeakMap,n=Array.from(this.observer.takeRecords());for(;n.length>0;)i.push(n.pop());let a=(p,h=!0)=>{p==null||p===this||p.domNode.parentNode!=null&&(r.has(p.domNode)||r.set(p.domNode,[]),h&&a(p.parent))},s=p=>{r.has(p.domNode)&&(p instanceof ii&&p.children.forEach(s),r.delete(p.domNode),p.optimize(t))},l=i;for(let p=0;l.length>0;p+=1){if(p>=gA)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(h=>{let m=this.find(h.target,!0);m!=null&&(m.domNode===h.target&&(h.type==="childList"?(a(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(f=>{let b=this.find(f,!1);a(b,!1),b instanceof ii&&b.children.forEach(g=>{a(g,!1)})})):h.type==="attributes"&&a(m.prev)),a(m))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),n=l.slice();n.length>0;)i.push(n.pop())}}update(i,t={}){i=i||this.observer.takeRecords();let r=new WeakMap;i.map(n=>{let a=this.find(n.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(n),null):(r.set(a.domNode,[n]),a)}).forEach(n=>{n!=null&&n!==this&&r.has(n.domNode)&&n.update(r.get(n.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(i,t)}};Ws.blotName="scroll",Ws.defaultChild=Oa,Ws.allowedChildren=[Oa,Ks],Ws.scope=X.BLOCK_BLOT,Ws.tagName="DIV";var bA=Ws,hc=bA,hf=class Lz extends Ut{static create(i){return document.createTextNode(i)}static value(i){return i.data}constructor(i,t){super(i,t),this.text=this.statics.value(this.domNode)}deleteAt(i,t){this.domNode.data=this.text=this.text.slice(0,i)+this.text.slice(i+t)}index(i,t){return this.domNode===i?t:-1}insertAt(i,t,r){r==null?(this.text=this.text.slice(0,i)+t+this.text.slice(i),this.domNode.data=this.text):super.insertAt(i,t,r)}length(){return this.text.length}optimize(i){super.optimize(i),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Lz&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(i,t=!1){return[this.domNode,i]}split(i,t=!1){if(!t){if(i===0)return this;if(i===this.length())return this.next}let r=this.scroll.create(this.domNode.splitText(i));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(i,t){i.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};hf.blotName="text",hf.scope=X.INLINE_BLOT;var vA=hf,Ys=vA;var Bo=_r(ei(),1);var zt=_r(ei(),1);var mf=_r(ei(),1);var mc=class extends wt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};mc.blotName="break";mc.tagName="BR";var Mr=mc;var Rt=class extends Ys{},yA={"&":"&","<":"<",">":">",'"':""","'":"'"};function Na(o){return o.replace(/[&<>"']/g,i=>yA[i])}var qn=class qn extends th{static compare(i,t){let r=qn.order.indexOf(i),n=qn.order.indexOf(t);return r>=0||n>=0?r-n:i===t?0:i<t?-1:1}formatAt(i,t,r,n){if(qn.compare(this.statics.blotName,r)<0&&this.scroll.query(r,X.BLOT)){let a=this.isolate(i,t);n&&a.wrap(r,n)}else super.formatAt(i,t,r,n)}optimize(i){if(super.optimize(i),this.parent instanceof qn&&qn.compare(this.statics.blotName,this.parent.statics.blotName)>0){let t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};V(qn,"allowedChildren",[qn,Mr,wt,Rt]),V(qn,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var uf=qn,Lr=uf;var qz=1,Qe=class extends Oa{constructor(){super(...arguments);V(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=ff(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,n,a){r<=0||(this.scroll.query(n,X.BLOCK)?t+r===this.length()&&this.format(n,a):super.formatAt(t,Math.min(r,this.length()-t-1),n,a),this.cache={})}insertAt(t,r,n){if(n!=null){super.insertAt(t,r,n),this.cache={};return}if(r.length===0)return;let a=r.split(`
|
|
2860
|
+
</zn-input>`;return It(n)}_updateValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;n.value=a.value,this._selectedRules.set(t,n),this._handleChange()}_getRulePosition(t){let r=this.container.querySelectorAll(".query-builder__row"),n=-1;return r.forEach((a,s)=>{a.id===t&&(n=s)}),n}_changeRule(t,r){let n=this._getRulePosition(t),a=r.target;a.popup.active=!1,a?.parentElement?.remove(),this._removeRule(t,r),this._addRule(r,"",n)}_removeRule(t,r){this._selectedRules.delete(t),r.target?.closest(".query-builder__row")?.remove(),this._handleChange()}checkValidity(){return this.input.checkValidity()}getForm(){return this._formController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this._formController.updateValidity()}};Zr.styles=[z(bs),z(O1)],Zr.dependencies={"zn-button":Me,"zn-input":st,"zn-option":lt,"zn-select":Be},c([F(".bulk-actions")],Zr.prototype,"container",2),c([F(".add-rule")],Zr.prototype,"addRule",2),c([F("input#main-input")],Zr.prototype,"input",2),c([d()],Zr.prototype,"name",2),c([d()],Zr.prototype,"value",2),c([d({type:Array})],Zr.prototype,"actions",2);var w8=Zr;Zr.define("zn-bulk-actions");var z8=()=>{let o="attachment",i=new Date().getTime();return`${o}_${i}`},Yl=class{constructor(i,t){this._attachmentContainer=document.createElement("div");this._quill=i,this._options=t,typeof this._options.upload!="function"&&console.warn("[Quill Attachment Module] No upload function provided"),typeof this._options.onFileUploaded!="function"&&console.warn("[Quill Attachment Module] No file uploaded function provided"),this._quill.getModule("toolbar").addHandler("attachment",this._selectLocalImage.bind(this)),this._createAttachmentContainer()}_selectLocalImage(){this._fileHolder=document.createElement("input"),this._fileHolder.setAttribute("type","file"),this._fileHolder.setAttribute("accept","*/*"),this._fileHolder.onchange=this._fileChanged.bind(this),this._fileHolder.click()}_fileChanged(){if(!this._fileHolder?.files||this._fileHolder.files.length<0)return;let i=this._fileHolder.files[0];this.addAttachment(i)}addAttachment(i,t){let r=z8(),n=a=>{this._insertAttachment({dataUrl:a,file:i,id:r})};if(t)n(t);else{let a=new FileReader;a.addEventListener("load",()=>{let s=a.result;n(s)},!1),a.readAsDataURL(i)}typeof this._options.upload=="function"&&this._options.upload(i).then(async({path:a,url:s})=>{await this._uploadAttachment(i,s),this._updateAttachment(r,s,a)}).catch(a=>{console.warn(a.message)})}_createAttachmentContainer(){let i=this._attachmentContainer;i.id="attachment-container",i.style.display="flex",i.style.flexWrap="wrap",i.style.gap="10px",i.style.position="absolute",i.style.bottom="0",i.style.left="0",i.style.right="0",i.style.padding="10px",this._quill.container.appendChild(i)}_insertAttachment({dataUrl:i,file:t,id:r}){this._attachmentContainer.appendChild(this._createAttachment(i,t,r))}_updateAttachment(i,t,r){let n=this._quill.container.querySelector(`#${i}`);if(!n)return;n.setAttribute("href",t);let a=n.querySelector(".attachment-name");a&&(r?a.textContent=r:a.textContent="Error uploading file"),this._options.onFileUploaded&&this._options.onFileUploaded(n,{url:t});let s=this._options.attachmentInput;if(s&&r){let l=s.value,p=l?JSON.parse(l):[];p.push(r),s.value=JSON.stringify(p)}}_createAttachment(i,t,r){let n=document.createElement("a");n.setAttribute("href",i),n.setAttribute("id",r),n.setAttribute("download",t.name),n.style.padding="10px",n.style.backgroundColor="white",n.style.border="1px solid #ccc",n.style.borderRadius="5px",n.style.display="flex",n.style.alignItems="center",n.style.gap="5px";let a=document.createElement("p");a.classList.add("attachment-name"),a.textContent="Uploading...",n.appendChild(a);let s=document.createElement("button");return s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 30 30"><path d="M7 4a.995.995 0 0 0-.707.293l-2 2a.999.999 0 0 0 0 1.414L11.586 15l-7.293 7.293a.999.999 0 0 0 0 1.414l2 2a.999.999 0 0 0 1.414 0L15 18.414l7.293 7.293a.999.999 0 0 0 1.414 0l2-2a.999.999 0 0 0 0-1.414L18.414 15l7.293-7.293a.999.999 0 0 0 0-1.414l-2-2a.999.999 0 0 0-1.414 0L15 11.586 7.707 4.293A.996.996 0 0 0 7 4z"/></svg>',s.onclick=l=>{l.preventDefault(),l.stopImmediatePropagation(),this._removeAttachment(r)},n.appendChild(s),n}reset(){this._attachmentContainer.replaceChildren();let i=this._options.attachmentInput;i&&(i.value="")}_removeAttachment(i){let t=this._quill.container.querySelector(`#${i}`);t&&t.remove();let r=this._options.attachmentInput;if(r){let n=r.value,a=t?.querySelector(".attachment-name"),s=n?JSON.parse(n):[],l=s.indexOf(a?.textContent?a.textContent:"");l>-1&&(s.splice(l,1),r.value=JSON.stringify(s))}}_uploadAttachment(i,t){return new Promise((r,n)=>{let a=new XMLHttpRequest;a.open("PUT",t,!0),a.setRequestHeader("Content-Type",i.type),a.onload=()=>{a.status>=200&&a.status<300?r():n(new Error(`[Quill Attachment Module] Failed to upload file. Status: ${a.status}`))},a.onerror=()=>{n(new Error("[Quill Attachment Module] Error occurred while uploading file."))},a.send(i)})}};var D_=_r(ei(),1);var PS=typeof global=="object"&&global&&global.Object===Object&&global,Ap=PS;var HS=typeof self=="object"&&self&&self.Object===Object&&self,FS=Ap||HS||Function("return this")(),Bt=FS;var BS=Bt.Symbol,Ni=BS;var xx=Object.prototype,VS=xx.hasOwnProperty,US=xx.toString,oc=Ni?Ni.toStringTag:void 0;function jS(o){var i=VS.call(o,oc),t=o[oc];try{o[oc]=void 0;var r=!0}catch{}var n=US.call(o);return r&&(i?o[oc]=t:delete o[oc]),n}var wx=jS;var GS=Object.prototype,WS=GS.toString;function KS(o){return WS.call(o)}var zx=KS;var YS="[object Null]",QS="[object Undefined]",_x=Ni?Ni.toStringTag:void 0;function XS(o){return o==null?o===void 0?QS:YS:_x&&_x in Object(o)?wx(o):zx(o)}var pn=XS;function JS(o){return o!=null&&typeof o=="object"}var br=JS;var ZS=Array.isArray,Pi=ZS;function eC(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}var Ar=eC;function tC(o){return o}var Mp=tC;var rC="[object AsyncFunction]",iC="[object Function]",nC="[object GeneratorFunction]",oC="[object Proxy]";function aC(o){if(!Ar(o))return!1;var i=pn(o);return i==iC||i==nC||i==rC||i==oC}var $s=aC;var sC=Bt["__core-js_shared__"],Lp=sC;var kx=(function(){var o=/[^.]+$/.exec(Lp&&Lp.keys&&Lp.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function lC(o){return!!kx&&kx in o}var Sx=lC;var cC=Function.prototype,dC=cC.toString;function pC(o){if(o!=null){try{return dC.call(o)}catch{}try{return o+""}catch{}}return""}var to=pC;var hC=/[\\^$.*+?()[\]{}|]/g,uC=/^\[object .+?Constructor\]$/,mC=Function.prototype,fC=Object.prototype,gC=mC.toString,bC=fC.hasOwnProperty,vC=RegExp("^"+gC.call(bC).replace(hC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yC(o){if(!Ar(o)||Sx(o))return!1;var i=$s(o)?vC:uC;return i.test(to(o))}var Cx=yC;function xC(o,i){return o?.[i]}var Ex=xC;function wC(o,i){var t=Ex(o,i);return Cx(t)?t:void 0}var ti=wC;var zC=ti(Bt,"WeakMap"),qp=zC;var Tx=Object.create,_C=(function(){function o(){}return function(i){if(!Ar(i))return{};if(Tx)return Tx(i);o.prototype=i;var t=new o;return o.prototype=void 0,t}})(),$x=_C;function kC(o,i,t){switch(t.length){case 0:return o.call(i);case 1:return o.call(i,t[0]);case 2:return o.call(i,t[0],t[1]);case 3:return o.call(i,t[0],t[1],t[2])}return o.apply(i,t)}var Ax=kC;function SC(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}var Ip=SC;var CC=800,EC=16,TC=Date.now;function $C(o){var i=0,t=0;return function(){var r=TC(),n=EC-(r-t);if(t=r,n>0){if(++i>=CC)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}var Mx=$C;function AC(o){return function(){return o}}var Lx=AC;var MC=(function(){try{var o=ti(Object,"defineProperty");return o({},"",{}),o}catch{}})(),As=MC;var LC=As?function(o,i){return As(o,"toString",{configurable:!0,enumerable:!1,value:Lx(i),writable:!0})}:Mp,qx=LC;var qC=Mx(qx),Ix=qC;function IC(o,i){for(var t=-1,r=o==null?0:o.length;++t<r&&i(o[t],t,o)!==!1;);return o}var Dx=IC;var DC=9007199254740991,RC=/^(?:0|[1-9]\d*)$/;function OC(o,i){var t=typeof o;return i=i??DC,!!i&&(t=="number"||t!="symbol"&&RC.test(o))&&o>-1&&o%1==0&&o<i}var Dp=OC;function NC(o,i,t){i=="__proto__"&&As?As(o,i,{configurable:!0,enumerable:!0,value:t,writable:!0}):o[i]=t}var Ms=NC;function PC(o,i){return o===i||o!==o&&i!==i}var $n=PC;var HC=Object.prototype,FC=HC.hasOwnProperty;function BC(o,i,t){var r=o[i];(!(FC.call(o,i)&&$n(r,t))||t===void 0&&!(i in o))&&Ms(o,i,t)}var Rp=BC;function VC(o,i,t,r){var n=!t;t||(t={});for(var a=-1,s=i.length;++a<s;){var l=i[a],p=r?r(t[l],o[l],l,t,o):void 0;p===void 0&&(p=o[l]),n?Ms(t,l,p):Rp(t,l,p)}return t}var An=VC;var Rx=Math.max;function UC(o,i,t){return i=Rx(i===void 0?o.length-1:i,0),function(){for(var r=arguments,n=-1,a=Rx(r.length-i,0),s=Array(a);++n<a;)s[n]=r[i+n];n=-1;for(var l=Array(i+1);++n<i;)l[n]=r[n];return l[i]=t(s),Ax(o,this,l)}}var Ox=UC;function jC(o,i){return Ix(Ox(o,i,Mp),o+"")}var Nx=jC;var GC=9007199254740991;function WC(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=GC}var Op=WC;function KC(o){return o!=null&&Op(o.length)&&!$s(o)}var Lo=KC;function YC(o,i,t){if(!Ar(t))return!1;var r=typeof i;return(r=="number"?Lo(t)&&Dp(i,t.length):r=="string"&&i in t)?$n(t[i],o):!1}var Px=YC;function QC(o){return Nx(function(i,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(a=o.length>3&&typeof a=="function"?(n--,a):void 0,s&&Px(t[0],t[1],s)&&(a=n<3?void 0:a,n=1),i=Object(i);++r<n;){var l=t[r];l&&o(i,l,r,a)}return i})}var Hx=QC;var XC=Object.prototype;function JC(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||XC;return o===t}var Ls=JC;function ZC(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}var Fx=ZC;var e7="[object Arguments]";function t7(o){return br(o)&&pn(o)==e7}var Jm=t7;var Bx=Object.prototype,r7=Bx.hasOwnProperty,i7=Bx.propertyIsEnumerable,n7=Jm((function(){return arguments})())?Jm:function(o){return br(o)&&r7.call(o,"callee")&&!i7.call(o,"callee")},ac=n7;function o7(){return!1}var Vx=o7;var Gx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ux=Gx&&typeof module=="object"&&module&&!module.nodeType&&module,a7=Ux&&Ux.exports===Gx,jx=a7?Bt.Buffer:void 0,s7=jx?jx.isBuffer:void 0,l7=s7||Vx,ro=l7;var c7="[object Arguments]",d7="[object Array]",p7="[object Boolean]",h7="[object Date]",u7="[object Error]",m7="[object Function]",f7="[object Map]",g7="[object Number]",b7="[object Object]",v7="[object RegExp]",y7="[object Set]",x7="[object String]",w7="[object WeakMap]",z7="[object ArrayBuffer]",_7="[object DataView]",k7="[object Float32Array]",S7="[object Float64Array]",C7="[object Int8Array]",E7="[object Int16Array]",T7="[object Int32Array]",$7="[object Uint8Array]",A7="[object Uint8ClampedArray]",M7="[object Uint16Array]",L7="[object Uint32Array]",dt={};dt[k7]=dt[S7]=dt[C7]=dt[E7]=dt[T7]=dt[$7]=dt[A7]=dt[M7]=dt[L7]=!0;dt[c7]=dt[d7]=dt[z7]=dt[p7]=dt[_7]=dt[h7]=dt[u7]=dt[m7]=dt[f7]=dt[g7]=dt[b7]=dt[v7]=dt[y7]=dt[x7]=dt[w7]=!1;function q7(o){return br(o)&&Op(o.length)&&!!dt[pn(o)]}var Wx=q7;function I7(o){return function(i){return o(i)}}var qs=I7;var Kx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sc=Kx&&typeof module=="object"&&module&&!module.nodeType&&module,D7=sc&&sc.exports===Kx,Zm=D7&&Ap.process,R7=(function(){try{var o=sc&&sc.require&&sc.require("util").types;return o||Zm&&Zm.binding&&Zm.binding("util")}catch{}})(),io=R7;var Yx=io&&io.isTypedArray,O7=Yx?qs(Yx):Wx,Is=O7;var N7=Object.prototype,P7=N7.hasOwnProperty;function H7(o,i){var t=Pi(o),r=!t&&ac(o),n=!t&&!r&&ro(o),a=!t&&!r&&!n&&Is(o),s=t||r||n||a,l=s?Fx(o.length,String):[],p=l.length;for(var h in o)(i||P7.call(o,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Dp(h,p)))&&l.push(h);return l}var Np=H7;function F7(o,i){return function(t){return o(i(t))}}var Pp=F7;var B7=Pp(Object.keys,Object),Qx=B7;var V7=Object.prototype,U7=V7.hasOwnProperty;function j7(o){if(!Ls(o))return Qx(o);var i=[];for(var t in Object(o))U7.call(o,t)&&t!="constructor"&&i.push(t);return i}var Xx=j7;function G7(o){return Lo(o)?Np(o):Xx(o)}var Ds=G7;function W7(o){var i=[];if(o!=null)for(var t in Object(o))i.push(t);return i}var Jx=W7;var K7=Object.prototype,Y7=K7.hasOwnProperty;function Q7(o){if(!Ar(o))return Jx(o);var i=Ls(o),t=[];for(var r in o)r=="constructor"&&(i||!Y7.call(o,r))||t.push(r);return t}var Zx=Q7;function X7(o){return Lo(o)?Np(o,!0):Zx(o)}var Mn=X7;var J7=ti(Object,"create"),no=J7;function Z7(){this.__data__=no?no(null):{},this.size=0}var ew=Z7;function eE(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}var tw=eE;var tE="__lodash_hash_undefined__",rE=Object.prototype,iE=rE.hasOwnProperty;function nE(o){var i=this.__data__;if(no){var t=i[o];return t===tE?void 0:t}return iE.call(i,o)?i[o]:void 0}var rw=nE;var oE=Object.prototype,aE=oE.hasOwnProperty;function sE(o){var i=this.__data__;return no?i[o]!==void 0:aE.call(i,o)}var iw=sE;var lE="__lodash_hash_undefined__";function cE(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=no&&i===void 0?lE:i,this}var nw=cE;function Rs(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Rs.prototype.clear=ew;Rs.prototype.delete=tw;Rs.prototype.get=rw;Rs.prototype.has=iw;Rs.prototype.set=nw;var ef=Rs;function dE(){this.__data__=[],this.size=0}var ow=dE;function pE(o,i){for(var t=o.length;t--;)if($n(o[t][0],i))return t;return-1}var qo=pE;var hE=Array.prototype,uE=hE.splice;function mE(o){var i=this.__data__,t=qo(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():uE.call(i,t,1),--this.size,!0}var aw=mE;function fE(o){var i=this.__data__,t=qo(i,o);return t<0?void 0:i[t][1]}var sw=fE;function gE(o){return qo(this.__data__,o)>-1}var lw=gE;function bE(o,i){var t=this.__data__,r=qo(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}var cw=bE;function Os(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Os.prototype.clear=ow;Os.prototype.delete=aw;Os.prototype.get=sw;Os.prototype.has=lw;Os.prototype.set=cw;var Io=Os;var vE=ti(Bt,"Map"),Do=vE;function yE(){this.size=0,this.__data__={hash:new ef,map:new(Do||Io),string:new ef}}var dw=yE;function xE(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}var pw=xE;function wE(o,i){var t=o.__data__;return pw(i)?t[typeof i=="string"?"string":"hash"]:t.map}var Ro=wE;function zE(o){var i=Ro(this,o).delete(o);return this.size-=i?1:0,i}var hw=zE;function _E(o){return Ro(this,o).get(o)}var uw=_E;function kE(o){return Ro(this,o).has(o)}var mw=kE;function SE(o,i){var t=Ro(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}var fw=SE;function Ns(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Ns.prototype.clear=dw;Ns.prototype.delete=hw;Ns.prototype.get=uw;Ns.prototype.has=mw;Ns.prototype.set=fw;var Hp=Ns;function CE(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}var Fp=CE;var EE=Pp(Object.getPrototypeOf,Object),Ps=EE;var TE="[object Object]",$E=Function.prototype,AE=Object.prototype,gw=$E.toString,ME=AE.hasOwnProperty,LE=gw.call(Object);function qE(o){if(!br(o)||pn(o)!=TE)return!1;var i=Ps(o);if(i===null)return!0;var t=ME.call(i,"constructor")&&i.constructor;return typeof t=="function"&&t instanceof t&&gw.call(t)==LE}var bw=qE;function IE(){this.__data__=new Io,this.size=0}var vw=IE;function DE(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}var yw=DE;function RE(o){return this.__data__.get(o)}var xw=RE;function OE(o){return this.__data__.has(o)}var ww=OE;var NE=200;function PE(o,i){var t=this.__data__;if(t instanceof Io){var r=t.__data__;if(!Do||r.length<NE-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new Hp(r)}return t.set(o,i),this.size=t.size,this}var zw=PE;function Hs(o){var i=this.__data__=new Io(o);this.size=i.size}Hs.prototype.clear=vw;Hs.prototype.delete=yw;Hs.prototype.get=xw;Hs.prototype.has=ww;Hs.prototype.set=zw;var Oo=Hs;function HE(o,i){return o&&An(i,Ds(i),o)}var _w=HE;function FE(o,i){return o&&An(i,Mn(i),o)}var kw=FE;var Tw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sw=Tw&&typeof module=="object"&&module&&!module.nodeType&&module,BE=Sw&&Sw.exports===Tw,Cw=BE?Bt.Buffer:void 0,Ew=Cw?Cw.allocUnsafe:void 0;function VE(o,i){if(i)return o.slice();var t=o.length,r=Ew?Ew(t):new o.constructor(t);return o.copy(r),r}var Bp=VE;function UE(o,i){for(var t=-1,r=o==null?0:o.length,n=0,a=[];++t<r;){var s=o[t];i(s,t,o)&&(a[n++]=s)}return a}var $w=UE;function jE(){return[]}var Vp=jE;var GE=Object.prototype,WE=GE.propertyIsEnumerable,Aw=Object.getOwnPropertySymbols,KE=Aw?function(o){return o==null?[]:(o=Object(o),$w(Aw(o),function(i){return WE.call(o,i)}))}:Vp,Fs=KE;function YE(o,i){return An(o,Fs(o),i)}var Mw=YE;var QE=Object.getOwnPropertySymbols,XE=QE?function(o){for(var i=[];o;)Fp(i,Fs(o)),o=Ps(o);return i}:Vp,Up=XE;function JE(o,i){return An(o,Up(o),i)}var Lw=JE;function ZE(o,i,t){var r=i(o);return Pi(o)?r:Fp(r,t(o))}var jp=ZE;function eT(o){return jp(o,Ds,Fs)}var lc=eT;function tT(o){return jp(o,Mn,Up)}var qw=tT;var rT=ti(Bt,"DataView"),Gp=rT;var iT=ti(Bt,"Promise"),Wp=iT;var nT=ti(Bt,"Set"),Kp=nT;var Iw="[object Map]",oT="[object Object]",Dw="[object Promise]",Rw="[object Set]",Ow="[object WeakMap]",Nw="[object DataView]",aT=to(Gp),sT=to(Do),lT=to(Wp),cT=to(Kp),dT=to(qp),Da=pn;(Gp&&Da(new Gp(new ArrayBuffer(1)))!=Nw||Do&&Da(new Do)!=Iw||Wp&&Da(Wp.resolve())!=Dw||Kp&&Da(new Kp)!=Rw||qp&&Da(new qp)!=Ow)&&(Da=function(o){var i=pn(o),t=i==oT?o.constructor:void 0,r=t?to(t):"";if(r)switch(r){case aT:return Nw;case sT:return Iw;case lT:return Dw;case cT:return Rw;case dT:return Ow}return i});var oo=Da;var pT=Object.prototype,hT=pT.hasOwnProperty;function uT(o){var i=o.length,t=new o.constructor(i);return i&&typeof o[0]=="string"&&hT.call(o,"index")&&(t.index=o.index,t.input=o.input),t}var Pw=uT;var mT=Bt.Uint8Array,Bs=mT;function fT(o){var i=new o.constructor(o.byteLength);return new Bs(i).set(new Bs(o)),i}var Vs=fT;function gT(o,i){var t=i?Vs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}var Hw=gT;var bT=/\w*$/;function vT(o){var i=new o.constructor(o.source,bT.exec(o));return i.lastIndex=o.lastIndex,i}var Fw=vT;var Bw=Ni?Ni.prototype:void 0,Vw=Bw?Bw.valueOf:void 0;function yT(o){return Vw?Object(Vw.call(o)):{}}var Uw=yT;function xT(o,i){var t=i?Vs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}var Yp=xT;var wT="[object Boolean]",zT="[object Date]",_T="[object Map]",kT="[object Number]",ST="[object RegExp]",CT="[object Set]",ET="[object String]",TT="[object Symbol]",$T="[object ArrayBuffer]",AT="[object DataView]",MT="[object Float32Array]",LT="[object Float64Array]",qT="[object Int8Array]",IT="[object Int16Array]",DT="[object Int32Array]",RT="[object Uint8Array]",OT="[object Uint8ClampedArray]",NT="[object Uint16Array]",PT="[object Uint32Array]";function HT(o,i,t){var r=o.constructor;switch(i){case $T:return Vs(o);case wT:case zT:return new r(+o);case AT:return Hw(o,t);case MT:case LT:case qT:case IT:case DT:case RT:case OT:case NT:case PT:return Yp(o,t);case _T:return new r;case kT:case ET:return new r(o);case ST:return Fw(o);case CT:return new r;case TT:return Uw(o)}}var jw=HT;function FT(o){return typeof o.constructor=="function"&&!Ls(o)?$x(Ps(o)):{}}var Qp=FT;var BT="[object Map]";function VT(o){return br(o)&&oo(o)==BT}var Gw=VT;var Ww=io&&io.isMap,UT=Ww?qs(Ww):Gw,Kw=UT;var jT="[object Set]";function GT(o){return br(o)&&oo(o)==jT}var Yw=GT;var Qw=io&&io.isSet,WT=Qw?qs(Qw):Yw,Xw=WT;var KT=1,YT=2,QT=4,Jw="[object Arguments]",XT="[object Array]",JT="[object Boolean]",ZT="[object Date]",e$="[object Error]",Zw="[object Function]",t$="[object GeneratorFunction]",r$="[object Map]",i$="[object Number]",ez="[object Object]",n$="[object RegExp]",o$="[object Set]",a$="[object String]",s$="[object Symbol]",l$="[object WeakMap]",c$="[object ArrayBuffer]",d$="[object DataView]",p$="[object Float32Array]",h$="[object Float64Array]",u$="[object Int8Array]",m$="[object Int16Array]",f$="[object Int32Array]",g$="[object Uint8Array]",b$="[object Uint8ClampedArray]",v$="[object Uint16Array]",y$="[object Uint32Array]",nt={};nt[Jw]=nt[XT]=nt[c$]=nt[d$]=nt[JT]=nt[ZT]=nt[p$]=nt[h$]=nt[u$]=nt[m$]=nt[f$]=nt[r$]=nt[i$]=nt[ez]=nt[n$]=nt[o$]=nt[a$]=nt[s$]=nt[g$]=nt[b$]=nt[v$]=nt[y$]=!0;nt[e$]=nt[Zw]=nt[l$]=!1;function Xp(o,i,t,r,n,a){var s,l=i&KT,p=i&YT,h=i&QT;if(t&&(s=n?t(o,r,n,a):t(o)),s!==void 0)return s;if(!Ar(o))return o;var m=Pi(o);if(m){if(s=Pw(o),!l)return Ip(o,s)}else{var f=oo(o),b=f==Zw||f==t$;if(ro(o))return Bp(o,l);if(f==ez||f==Jw||b&&!n){if(s=p||b?{}:Qp(o),!l)return p?Lw(o,kw(s,o)):Mw(o,_w(s,o))}else{if(!nt[f])return n?o:{};s=jw(o,f,l)}}a||(a=new Oo);var g=a.get(o);if(g)return g;a.set(o,s),Xw(o)?o.forEach(function(C){s.add(Xp(C,i,t,C,o,a))}):Kw(o)&&o.forEach(function(C,T){s.set(T,Xp(C,i,t,T,o,a))});var v=h?p?qw:lc:p?Mn:Ds,y=m?void 0:v(o);return Dx(y||o,function(C,T){y&&(T=C,C=o[T]),Rp(s,T,Xp(C,i,t,T,o,a))}),s}var tz=Xp;var x$=1,w$=4;function z$(o){return tz(o,x$|w$)}var Ln=z$;var _$="__lodash_hash_undefined__";function k$(o){return this.__data__.set(o,_$),this}var rz=k$;function S$(o){return this.__data__.has(o)}var iz=S$;function Jp(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new Hp;++i<t;)this.add(o[i])}Jp.prototype.add=Jp.prototype.push=rz;Jp.prototype.has=iz;var nz=Jp;function C$(o,i){for(var t=-1,r=o==null?0:o.length;++t<r;)if(i(o[t],t,o))return!0;return!1}var oz=C$;function E$(o,i){return o.has(i)}var az=E$;var T$=1,$$=2;function A$(o,i,t,r,n,a){var s=t&T$,l=o.length,p=i.length;if(l!=p&&!(s&&p>l))return!1;var h=a.get(o),m=a.get(i);if(h&&m)return h==i&&m==o;var f=-1,b=!0,g=t&$$?new nz:void 0;for(a.set(o,i),a.set(i,o);++f<l;){var v=o[f],y=i[f];if(r)var C=s?r(y,v,f,i,o,a):r(v,y,f,o,i,a);if(C!==void 0){if(C)continue;b=!1;break}if(g){if(!oz(i,function(T,O){if(!az(g,O)&&(v===T||n(v,T,t,r,a)))return g.push(O)})){b=!1;break}}else if(!(v===y||n(v,y,t,r,a))){b=!1;break}}return a.delete(o),a.delete(i),b}var Zp=A$;function M$(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}var sz=M$;function L$(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var lz=L$;var q$=1,I$=2,D$="[object Boolean]",R$="[object Date]",O$="[object Error]",N$="[object Map]",P$="[object Number]",H$="[object RegExp]",F$="[object Set]",B$="[object String]",V$="[object Symbol]",U$="[object ArrayBuffer]",j$="[object DataView]",cz=Ni?Ni.prototype:void 0,tf=cz?cz.valueOf:void 0;function G$(o,i,t,r,n,a,s){switch(t){case j$:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case U$:return!(o.byteLength!=i.byteLength||!a(new Bs(o),new Bs(i)));case D$:case R$:case P$:return $n(+o,+i);case O$:return o.name==i.name&&o.message==i.message;case H$:case B$:return o==i+"";case N$:var l=sz;case F$:var p=r&q$;if(l||(l=lz),o.size!=i.size&&!p)return!1;var h=s.get(o);if(h)return h==i;r|=I$,s.set(o,i);var m=Zp(l(o),l(i),r,n,a,s);return s.delete(o),m;case V$:if(tf)return tf.call(o)==tf.call(i)}return!1}var dz=G$;var W$=1,K$=Object.prototype,Y$=K$.hasOwnProperty;function Q$(o,i,t,r,n,a){var s=t&W$,l=lc(o),p=l.length,h=lc(i),m=h.length;if(p!=m&&!s)return!1;for(var f=p;f--;){var b=l[f];if(!(s?b in i:Y$.call(i,b)))return!1}var g=a.get(o),v=a.get(i);if(g&&v)return g==i&&v==o;var y=!0;a.set(o,i),a.set(i,o);for(var C=s;++f<p;){b=l[f];var T=o[b],O=i[b];if(r)var U=s?r(O,T,b,i,o,a):r(T,O,b,o,i,a);if(!(U===void 0?T===O||n(T,O,t,r,a):U)){y=!1;break}C||(C=b=="constructor")}if(y&&!C){var D=o.constructor,S=i.constructor;D!=S&&"constructor"in o&&"constructor"in i&&!(typeof D=="function"&&D instanceof D&&typeof S=="function"&&S instanceof S)&&(y=!1)}return a.delete(o),a.delete(i),y}var pz=Q$;var X$=1,hz="[object Arguments]",uz="[object Array]",eh="[object Object]",J$=Object.prototype,mz=J$.hasOwnProperty;function Z$(o,i,t,r,n,a){var s=Pi(o),l=Pi(i),p=s?uz:oo(o),h=l?uz:oo(i);p=p==hz?eh:p,h=h==hz?eh:h;var m=p==eh,f=h==eh,b=p==h;if(b&&ro(o)){if(!ro(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Oo),s||Is(o)?Zp(o,i,t,r,n,a):dz(o,i,p,t,r,n,a);if(!(t&X$)){var g=m&&mz.call(o,"__wrapped__"),v=f&&mz.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,C=v?i.value():i;return a||(a=new Oo),n(y,C,t,r,a)}}return b?(a||(a=new Oo),pz(o,i,t,r,n,a)):!1}var fz=Z$;function gz(o,i,t,r,n){return o===i?!0:o==null||i==null||!br(o)&&!br(i)?o!==o&&i!==i:fz(o,i,t,r,gz,n)}var bz=gz;function eA(o){return function(i,t,r){for(var n=-1,a=Object(i),s=r(i),l=s.length;l--;){var p=s[o?l:++n];if(t(a[p],p,a)===!1)break}return i}}var vz=eA;var tA=vz(),yz=tA;function rA(o,i,t){(t!==void 0&&!$n(o[i],t)||t===void 0&&!(i in o))&&Ms(o,i,t)}var cc=rA;function iA(o){return br(o)&&Lo(o)}var xz=iA;function nA(o,i){if(!(i==="constructor"&&typeof o[i]=="function")&&i!="__proto__")return o[i]}var dc=nA;function oA(o){return An(o,Mn(o))}var wz=oA;function aA(o,i,t,r,n,a,s){var l=dc(o,t),p=dc(i,t),h=s.get(p);if(h){cc(o,t,h);return}var m=a?a(l,p,t+"",o,i,s):void 0,f=m===void 0;if(f){var b=Pi(p),g=!b&&ro(p),v=!b&&!g&&Is(p);m=p,b||g||v?Pi(l)?m=l:xz(l)?m=Ip(l):g?(f=!1,m=Bp(p,!0)):v?(f=!1,m=Yp(p,!0)):m=[]:bw(p)||ac(p)?(m=l,ac(l)?m=wz(l):(!Ar(l)||$s(l))&&(m=Qp(p))):f=!1}f&&(s.set(p,m),n(m,p,r,a,s),s.delete(p)),cc(o,t,m)}var zz=aA;function _z(o,i,t,r,n){o!==i&&yz(i,function(a,s){if(n||(n=new Oo),Ar(a))zz(o,i,s,t,_z,r,n);else{var l=r?r(dc(o,s),a,s+"",o,i,n):void 0;l===void 0&&(l=a),cc(o,s,l)}},Mn)}var kz=_z;function sA(o,i){return bz(o,i)}var Ra=sA;var lA=Hx(function(o,i,t){kz(o,i,t)}),ri=lA;var uc={};x3(uc,{Attributor:()=>Vr,AttributorStore:()=>pc,BlockBlot:()=>Oa,ClassAttributor:()=>Vt,ContainerBlot:()=>Ks,EmbedBlot:()=>wt,InlineBlot:()=>th,LeafBlot:()=>Ut,ParentBlot:()=>ii,Registry:()=>Ho,Scope:()=>X,ScrollBlot:()=>hc,StyleAttributor:()=>ni,TextBlot:()=>Ys});var X=(o=>(o[o.TYPE=3]="TYPE",o[o.LEVEL=12]="LEVEL",o[o.ATTRIBUTE=13]="ATTRIBUTE",o[o.BLOT=14]="BLOT",o[o.INLINE=7]="INLINE",o[o.BLOCK=11]="BLOCK",o[o.BLOCK_BLOT=10]="BLOCK_BLOT",o[o.INLINE_BLOT=6]="INLINE_BLOT",o[o.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",o[o.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",o[o.ANY=15]="ANY",o))(X||{}),Vr=class{constructor(i,t,r={}){this.attrName=i,this.keyName=t;let n=X.TYPE&X.ATTRIBUTE;this.scope=r.scope!=null?r.scope&X.LEVEL|n:X.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(i){return Array.from(i.attributes).map(t=>t.name)}add(i,t){return this.canAdd(i,t)?(i.setAttribute(this.keyName,t),!0):!1}canAdd(i,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(i){i.removeAttribute(this.keyName)}value(i){let t=i.getAttribute(this.keyName);return this.canAdd(i,t)&&t?t:""}},Po=class extends Error{constructor(i){i="[Parchment] "+i,super(i),this.message=i,this.name=this.constructor.name}},Ez=class nf{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(i,t=!1){if(i==null)return null;if(this.blots.has(i))return this.blots.get(i)||null;if(t){let r=null;try{r=i.parentNode}catch{return null}return this.find(r,t)}return null}create(i,t,r){let n=this.query(t);if(n==null)throw new Po(`Unable to create ${t} blot`);let a=n,s=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:a.create(r),l=new a(i,s,r);return nf.blots.set(l.domNode,l),l}find(i,t=!1){return nf.find(i,t)}query(i,t=X.ANY){let r;return typeof i=="string"?r=this.types[i]||this.attributes[i]:i instanceof Text||i.nodeType===Node.TEXT_NODE?r=this.types.text:typeof i=="number"?i&X.LEVEL&X.BLOCK?r=this.types.block:i&X.LEVEL&X.INLINE&&(r=this.types.inline):i instanceof Element&&((i.getAttribute("class")||"").split(/\s+/).some(n=>(r=this.classes[n],!!r)),r=r||this.tags[i.tagName]),r==null?null:"scope"in r&&t&X.LEVEL&r.scope&&t&X.TYPE&r.scope?r:null}register(...i){return i.map(t=>{let r="blotName"in t,n="attrName"in t;if(!r&&!n)throw new Po("Invalid definition");if(r&&t.blotName==="abstract")throw new Po("Cannot register abstract class");let a=r?t.blotName:n?t.attrName:void 0;return this.types[a]=t,n?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(s=>s.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(s=>{(this.tags[s]==null||t.className==null)&&(this.tags[s]=t)}))),t})}};Ez.blots=new WeakMap;var Ho=Ez;function Sz(o,i){return(o.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${i}-`)===0)}var of=class extends Vr{static keys(i){return(i.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(i,t){return this.canAdd(i,t)?(this.remove(i),i.classList.add(`${this.keyName}-${t}`),!0):!1}remove(i){Sz(i,this.keyName).forEach(t=>{i.classList.remove(t)}),i.classList.length===0&&i.removeAttribute("class")}value(i){let t=(Sz(i,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(i,t)?t:""}},Vt=of;function rf(o){let i=o.split("-"),t=i.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return i[0]+t}var af=class extends Vr{static keys(i){return(i.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(i,t){return this.canAdd(i,t)?(i.style[rf(this.keyName)]=t,!0):!1}remove(i){i.style[rf(this.keyName)]="",i.getAttribute("style")||i.removeAttribute("style")}value(i){let t=i.style[rf(this.keyName)];return this.canAdd(i,t)?t:""}},ni=af,sf=class{constructor(i){this.attributes={},this.domNode=i,this.build()}attribute(i,t){t?i.add(this.domNode,t)&&(i.value(this.domNode)!=null?this.attributes[i.attrName]=i:delete this.attributes[i.attrName]):(i.remove(this.domNode),delete this.attributes[i.attrName])}build(){this.attributes={};let i=Ho.find(this.domNode);if(i==null)return;let t=Vr.keys(this.domNode),r=Vt.keys(this.domNode),n=ni.keys(this.domNode);t.concat(r).concat(n).forEach(a=>{let s=i.scroll.query(a,X.ATTRIBUTE);s instanceof Vr&&(this.attributes[s.attrName]=s)})}copy(i){Object.keys(this.attributes).forEach(t=>{let r=this.attributes[t].value(this.domNode);i.format(t,r)})}move(i){this.copy(i),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((i,t)=>(i[t]=this.attributes[t].value(this.domNode),i),{})}},pc=sf,Tz=class{constructor(i,t){this.scroll=i,this.domNode=t,Ho.blots.set(t,this),this.prev=null,this.next=null}static create(i){if(this.tagName==null)throw new Po("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof i=="string"?(r=i.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof i=="number"&&(r=i),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){let i=this.domNode.cloneNode(!1);return this.scroll.create(i)}detach(){this.parent!=null&&this.parent.removeChild(this),Ho.blots.delete(this.domNode)}deleteAt(i,t){this.isolate(i,t).remove()}formatAt(i,t,r,n){let a=this.isolate(i,t);if(this.scroll.query(r,X.BLOT)!=null&&n)a.wrap(r,n);else if(this.scroll.query(r,X.ATTRIBUTE)!=null){let s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(r,n)}}insertAt(i,t,r){let n=r==null?this.scroll.create("text",t):this.scroll.create(t,r),a=this.split(i);this.parent.insertBefore(n,a||void 0)}isolate(i,t){let r=this.split(i);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(i=this.parent){return this.parent==null||this===i?0:this.parent.children.offset(this)+this.parent.offset(i)}optimize(i){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(i,t){return i===0?this:this.next}update(i,t){}wrap(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new Po(`Cannot wrap ${i}`);return r.appendChild(this),r}};Tz.blotName="abstract";var $z=Tz,Az=class extends $z{static value(i){return!0}index(i,t){return this.domNode===i||this.domNode.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(i,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return i>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Az.scope=X.INLINE_BLOT;var cA=Az,Ut=cA,lf=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...i){if(this.insertBefore(i[0],null),i.length>1){let t=i.slice(1);this.append(...t)}}at(i){let t=this.iterator(),r=t();for(;r&&i>0;)i-=1,r=t();return r}contains(i){let t=this.iterator(),r=t();for(;r;){if(r===i)return!0;r=t()}return!1}indexOf(i){let t=this.iterator(),r=t(),n=0;for(;r;){if(r===i)return n;n+=1,r=t()}return-1}insertBefore(i,t){i!=null&&(this.remove(i),i.next=t,t!=null?(i.prev=t.prev,t.prev!=null&&(t.prev.next=i),t.prev=i,t===this.head&&(this.head=i)):this.tail!=null?(this.tail.next=i,i.prev=this.tail,this.tail=i):(i.prev=null,this.head=this.tail=i),this.length+=1)}offset(i){let t=0,r=this.head;for(;r!=null;){if(r===i)return t;t+=r.length(),r=r.next}return-1}remove(i){this.contains(i)&&(i.prev!=null&&(i.prev.next=i.next),i.next!=null&&(i.next.prev=i.prev),i===this.head&&(this.head=i.next),i===this.tail&&(this.tail=i.prev),this.length-=1)}iterator(i=this.head){return()=>{let t=i;return i!=null&&(i=i.next),t}}find(i,t=!1){let r=this.iterator(),n=r();for(;n;){let a=n.length();if(i<a||t&&i===a&&(n.next==null||n.next.length()!==0))return[n,i];i-=a,n=r()}return[null,0]}forEach(i){let t=this.iterator(),r=t();for(;r;)i(r),r=t()}forEachAt(i,t,r){if(t<=0)return;let[n,a]=this.find(i),s=i-a,l=this.iterator(n),p=l();for(;p&&s<i+t;){let h=p.length();i>s?r(p,i-s,Math.min(t,s+h-i)):r(p,0,Math.min(h,i+t-s)),s+=h,p=l()}}map(i){return this.reduce((t,r)=>(t.push(i(r)),t),[])}reduce(i,t){let r=this.iterator(),n=r();for(;n;)t=i(t,n),n=r();return t}};function Cz(o,i){let t=i.find(o);if(t)return t;try{return i.create(o)}catch{let r=i.create(X.INLINE);return Array.from(o.childNodes).forEach(n=>{r.domNode.appendChild(n)}),o.parentNode&&o.parentNode.replaceChild(r.domNode,o),r.attach(),r}}var Mz=class No extends $z{constructor(i,t){super(i,t),this.uiNode=null,this.build()}appendChild(i){this.insertBefore(i)}attach(){super.attach(),this.children.forEach(i=>{i.attach()})}attachUI(i){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=i,No.uiClass&&this.uiNode.classList.add(No.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new lf,Array.from(this.domNode.childNodes).filter(i=>i!==this.uiNode).reverse().forEach(i=>{try{let t=Cz(i,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Po)return;throw t}})}deleteAt(i,t){if(i===0&&t===this.length())return this.remove();this.children.forEachAt(i,t,(r,n,a)=>{r.deleteAt(n,a)})}descendant(i,t=0){let[r,n]=this.children.find(t);return i.blotName==null&&i(r)||i.blotName!=null&&r instanceof i?[r,n]:r instanceof No?r.descendant(i,n):[null,-1]}descendants(i,t=0,r=Number.MAX_VALUE){let n=[],a=r;return this.children.forEachAt(t,r,(s,l,p)=>{(i.blotName==null&&i(s)||i.blotName!=null&&s instanceof i)&&n.push(s),s instanceof No&&(n=n.concat(s.descendants(i,l,a))),a-=p}),n}detach(){this.children.forEach(i=>{i.detach()}),super.detach()}enforceAllowedChildren(){let i=!1;this.children.forEach(t=>{i||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===X.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),i=!0):t instanceof No?t.unwrap():t.remove())})}formatAt(i,t,r,n){this.children.forEachAt(i,t,(a,s,l)=>{a.formatAt(s,l,r,n)})}insertAt(i,t,r){let[n,a]=this.children.find(i);if(n)n.insertAt(a,t,r);else{let s=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(s)}}insertBefore(i,t){i.parent!=null&&i.parent.children.remove(i);let r=null;this.children.insertBefore(i,t||null),i.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==i.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(i.domNode,r),i.attach()}length(){return this.children.reduce((i,t)=>i+t.length(),0)}moveChildren(i,t){this.children.forEach(r=>{i.insertBefore(r,t)})}optimize(i){if(super.optimize(i),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(i,t=!1){let[r,n]=this.children.find(i,t),a=[[this,i]];return r instanceof No?a.concat(r.path(n,t)):(r!=null&&a.push([r,n]),a)}removeChild(i){this.children.remove(i)}replaceWith(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;return r instanceof No&&this.moveChildren(r),super.replaceWith(r)}split(i,t=!1){if(!t){if(i===0)return this;if(i===this.length())return this.next}let r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(i,this.length(),(n,a,s)=>{let l=n.split(a,t);l!=null&&r.appendChild(l)}),r}splitAfter(i){let t=this.clone();for(;i.next!=null;)t.appendChild(i.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(i,t){let r=[],n=[];i.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),n.push(...a.removedNodes))}),n.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;let s=this.scroll.find(a);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,s)=>a===s?0:a.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let s=null;a.nextSibling!=null&&(s=this.scroll.find(a.nextSibling));let l=Cz(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Mz.uiClass="";var dA=Mz,ii=dA;function pA(o,i){if(Object.keys(o).length!==Object.keys(i).length)return!1;for(let t in o)if(o[t]!==i[t])return!1;return!0}var Us=class js extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(js.blotName);if(!(r!=null&&i.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return i.tagName.toLowerCase()}}constructor(i,t){super(i,t),this.attributes=new pc(this.domNode)}format(i,t){if(i===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof js||(r=r.wrap(js.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{let r=this.scroll.query(i,X.INLINE);if(r==null)return;r instanceof Vr?this.attributes.attribute(r,t):t&&(i!==this.statics.blotName||this.formats()[i]!==t)&&this.replaceWith(i,t)}}formats(){let i=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(i[this.statics.blotName]=t),i}formatAt(i,t,r,n){this.formats()[r]!=null||this.scroll.query(r,X.ATTRIBUTE)?this.isolate(i,t).format(r,n):super.formatAt(i,t,r,n)}optimize(i){super.optimize(i);let t=this.formats();if(Object.keys(t).length===0)return this.unwrap();let r=this.next;r instanceof js&&r.prev===this&&pA(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(i,t){let r=super.replaceWith(i,t);return this.attributes.copy(r),r}update(i,t){super.update(i,t),i.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(i,t){let r=super.wrap(i,t);return r instanceof js&&this.attributes.move(r),r}};Us.allowedChildren=[Us,Ut],Us.blotName="inline",Us.scope=X.INLINE_BLOT,Us.tagName="SPAN";var hA=Us,th=hA,Gs=class cf extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(cf.blotName);if(!(r!=null&&i.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return i.tagName.toLowerCase()}}constructor(i,t){super(i,t),this.attributes=new pc(this.domNode)}format(i,t){let r=this.scroll.query(i,X.BLOCK);r!=null&&(r instanceof Vr?this.attributes.attribute(r,t):i===this.statics.blotName&&!t?this.replaceWith(cf.blotName):t&&(i!==this.statics.blotName||this.formats()[i]!==t)&&this.replaceWith(i,t))}formats(){let i=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(i[this.statics.blotName]=t),i}formatAt(i,t,r,n){this.scroll.query(r,X.BLOCK)!=null?this.format(r,n):super.formatAt(i,t,r,n)}insertAt(i,t,r){if(r==null||this.scroll.query(t,X.INLINE)!=null)super.insertAt(i,t,r);else{let n=this.split(i);if(n!=null){let a=this.scroll.create(t,r);n.parent.insertBefore(a,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(i,t){let r=super.replaceWith(i,t);return this.attributes.copy(r),r}update(i,t){super.update(i,t),i.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};Gs.blotName="block",Gs.scope=X.BLOCK_BLOT,Gs.tagName="P",Gs.allowedChildren=[th,Gs,Ut];var uA=Gs,Oa=uA,df=class extends ii{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(i,t){super.deleteAt(i,t),this.enforceAllowedChildren()}formatAt(i,t,r,n){super.formatAt(i,t,r,n),this.enforceAllowedChildren()}insertAt(i,t,r){super.insertAt(i,t,r),this.enforceAllowedChildren()}optimize(i){super.optimize(i),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};df.blotName="container",df.scope=X.BLOCK_BLOT;var mA=df,Ks=mA,pf=class extends Ut{static formats(i,t){}format(i,t){super.formatAt(0,this.length(),i,t)}formatAt(i,t,r,n){i===0&&t===this.length()?this.format(r,n):super.formatAt(i,t,r,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},wt=pf,fA={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},gA=100,Ws=class extends ii{constructor(i,t){super(null,t),this.registry=i,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,fA),this.attach()}create(i,t){return this.registry.create(this,i,t)}find(i,t=!1){let r=this.registry.find(i,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(i,t=X.ANY){return this.registry.query(i,t)}register(...i){return this.registry.register(...i)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(i,t){this.update(),i===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(i,t)}formatAt(i,t,r,n){this.update(),super.formatAt(i,t,r,n)}insertAt(i,t,r){this.update(),super.insertAt(i,t,r)}optimize(i=[],t={}){super.optimize(t);let r=t.mutationsMap||new WeakMap,n=Array.from(this.observer.takeRecords());for(;n.length>0;)i.push(n.pop());let a=(p,h=!0)=>{p==null||p===this||p.domNode.parentNode!=null&&(r.has(p.domNode)||r.set(p.domNode,[]),h&&a(p.parent))},s=p=>{r.has(p.domNode)&&(p instanceof ii&&p.children.forEach(s),r.delete(p.domNode),p.optimize(t))},l=i;for(let p=0;l.length>0;p+=1){if(p>=gA)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(h=>{let m=this.find(h.target,!0);m!=null&&(m.domNode===h.target&&(h.type==="childList"?(a(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(f=>{let b=this.find(f,!1);a(b,!1),b instanceof ii&&b.children.forEach(g=>{a(g,!1)})})):h.type==="attributes"&&a(m.prev)),a(m))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),n=l.slice();n.length>0;)i.push(n.pop())}}update(i,t={}){i=i||this.observer.takeRecords();let r=new WeakMap;i.map(n=>{let a=this.find(n.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(n),null):(r.set(a.domNode,[n]),a)}).forEach(n=>{n!=null&&n!==this&&r.has(n.domNode)&&n.update(r.get(n.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(i,t)}};Ws.blotName="scroll",Ws.defaultChild=Oa,Ws.allowedChildren=[Oa,Ks],Ws.scope=X.BLOCK_BLOT,Ws.tagName="DIV";var bA=Ws,hc=bA,hf=class Lz extends Ut{static create(i){return document.createTextNode(i)}static value(i){return i.data}constructor(i,t){super(i,t),this.text=this.statics.value(this.domNode)}deleteAt(i,t){this.domNode.data=this.text=this.text.slice(0,i)+this.text.slice(i+t)}index(i,t){return this.domNode===i?t:-1}insertAt(i,t,r){r==null?(this.text=this.text.slice(0,i)+t+this.text.slice(i),this.domNode.data=this.text):super.insertAt(i,t,r)}length(){return this.text.length}optimize(i){super.optimize(i),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Lz&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(i,t=!1){return[this.domNode,i]}split(i,t=!1){if(!t){if(i===0)return this;if(i===this.length())return this.next}let r=this.scroll.create(this.domNode.splitText(i));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(i,t){i.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};hf.blotName="text",hf.scope=X.INLINE_BLOT;var vA=hf,Ys=vA;var Bo=_r(ei(),1);var zt=_r(ei(),1);var mf=_r(ei(),1);var mc=class extends wt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};mc.blotName="break";mc.tagName="BR";var Mr=mc;var Rt=class extends Ys{},yA={"&":"&","<":"<",">":">",'"':""","'":"'"};function Na(o){return o.replace(/[&<>"']/g,i=>yA[i])}var qn=class qn extends th{static compare(i,t){let r=qn.order.indexOf(i),n=qn.order.indexOf(t);return r>=0||n>=0?r-n:i===t?0:i<t?-1:1}formatAt(i,t,r,n){if(qn.compare(this.statics.blotName,r)<0&&this.scroll.query(r,X.BLOT)){let a=this.isolate(i,t);n&&a.wrap(r,n)}else super.formatAt(i,t,r,n)}optimize(i){if(super.optimize(i),this.parent instanceof qn&&qn.compare(this.statics.blotName,this.parent.statics.blotName)>0){let t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};V(qn,"allowedChildren",[qn,Mr,wt,Rt]),V(qn,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var uf=qn,Lr=uf;var qz=1,Qe=class extends Oa{constructor(){super(...arguments);V(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=ff(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,n,a){r<=0||(this.scroll.query(n,X.BLOCK)?t+r===this.length()&&this.format(n,a):super.formatAt(t,Math.min(r,this.length()-t-1),n,a),this.cache={})}insertAt(t,r,n){if(n!=null){super.insertAt(t,r,n),this.cache={};return}if(r.length===0)return;let a=r.split(`
|
|
2860
2861
|
`),s=a.shift();s.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;a.reduce((p,h)=>(l=l.split(p,!0),l.insertAt(0,h),h.length),t+s.length)}insertBefore(t,r){let{head:n}=this.children;super.insertBefore(t,r),n instanceof Mr&&n.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+qz),this.cache.length}moveChildren(t,r){super.moveChildren(t,r),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(t===0||t>=this.length()-qz)){let a=this.clone();return t===0?(this.parent.insertBefore(a,this),this):(this.parent.insertBefore(a,this.next),a)}let n=super.split(t,r);return this.cache={},n}};Qe.blotName="block";Qe.tagName="P";Qe.defaultChild=Mr;Qe.allowedChildren=[Mr,Lr,wt,Rt];var Xt=class extends wt{attach(){super.attach(),this.attributes=new pc(this.domNode)}delta(){return new mf.default().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(i,t){let r=this.scroll.query(i,X.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,t)}formatAt(i,t,r,n){this.format(r,n)}insertAt(i,t,r){if(r!=null){super.insertAt(i,t,r);return}let n=t.split(`
|
|
2861
2862
|
`),a=n.pop(),s=n.map(p=>{let h=this.scroll.create(Qe.blotName);return h.insertAt(0,p),h}),l=this.split(i);s.forEach(p=>{this.parent.insertBefore(p,l)}),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}};Xt.scope=X.BLOCK_BLOT;function ff(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return o.descendants(Ut).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),oi(r,{},i)),new mf.default).insert(`
|
|
2862
2863
|
`,oi(o))}function oi(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return o==null||("formats"in o&&typeof o.formats=="function"&&(i={...i,...o.formats()},t&&delete i["code-token"]),o.parent==null||o.parent.statics.blotName==="scroll"||o.parent.statics.scope!==o.statics.scope)?i:oi(o.parent,i,t)}var Hi=class Hi extends wt{static value(){}constructor(i,t,r){super(i,t),this.selection=r,this.textNode=document.createTextNode(Hi.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(i,t){if(this.savedLength!==0){super.format(i,t);return}let r=this,n=0;for(;r!=null&&r.statics.scope!==X.BLOCK_BLOT;)n+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=Hi.CONTENTS.length,r.optimize(),r.formatAt(n,Hi.CONTENTS.length,i,t),this.savedLength=0)}index(i,t){return i===this.textNode?0:super.index(i,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;let i=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);let t=this.prev instanceof Rt?this.prev:null,r=t?t.length():0,n=this.next instanceof Rt?this.next:null,a=n?n.text:"",{textNode:s}=this,l=s.data.split(Hi.CONTENTS).join("");s.data=Hi.CONTENTS;let p;if(t)p=t,(l||n)&&(t.insertAt(t.length(),l+a),n&&n.remove());else if(n)p=n,n.insertAt(0,l);else{let h=document.createTextNode(l);p=this.scroll.create(h),this.parent.insertBefore(p,this)}if(this.remove(),i){let h=(b,g)=>t&&b===t.domNode?g:b===s?r+g-1:n&&b===n.domNode?r+l.length+g:null,m=h(i.start.node,i.start.offset),f=h(i.end.node,i.end.offset);if(m!==null&&f!==null)return{startNode:p.domNode,startOffset:m,endNode:p.domNode,endOffset:f}}return null}update(i,t){if(i.some(r=>r.type==="characterData"&&r.target===this.textNode)){let r=this.restore();r&&(t.range=r)}}optimize(i){super.optimize(i);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=Hi.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};V(Hi,"blotName","cursor"),V(Hi,"className","ql-cursor"),V(Hi,"tagName","span"),V(Hi,"CONTENTS","\uFEFF");var gf=Hi,Fo=gf;var vf=_r(Dz(),1);var gc=new WeakMap;var yf=["error","warn","log","info"],xf="warn";function Rz(o){if(xf&&yf.indexOf(o)<=yf.indexOf(xf)){for(var i=arguments.length,t=new Array(i>1?i-1:0),r=1;r<i;r++)t[r-1]=arguments[r];console[o](...t)}}function wf(o){return yf.reduce((i,t)=>(i[t]=Rz.bind(console,t,o),i),{})}wf.level=o=>{xf=o};Rz.level=wf.level;var _i=wf;var zf=_i("quill:events"),zA=["selectionchange","mousedown","mouseup","click"];zA.forEach(o=>{document.addEventListener(o,function(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{let a=gc.get(n);a&&a.emitter&&a.emitter.handleDOM(...t)})})});var bc=class extends vf.default{constructor(){super(),this.domListeners={},this.on("error",zf.error)}emit(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];return zf.log.call(zf,...t),super.emit(...t)}handleDOM(i){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(this.domListeners[i.type]||[]).forEach(a=>{let{node:s,handler:l}=a;(i.target===s||s.contains(i.target))&&l(i,...r)})}listenDOM(i,t,r){this.domListeners[i]||(this.domListeners[i]=[]),this.domListeners[i].push({node:t,handler:r})}};V(bc,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),V(bc,"sources",{API:"api",SILENT:"silent",USER:"user"});var J=bc;var _f=_i("quill:selection"),jr=class{constructor(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=i,this.length=t}},Sf=class{constructor(i,t){this.emitter=t,this.scroll=i,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new jr(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,J.sources.USER),1)}),this.emitter.on(J.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;let r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(J.events.SCROLL_UPDATE,(n,a)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);let s=a.some(l=>l.type==="characterData"||l.type==="childList"||l.type==="attributes"&&l.target===this.root);this.update(s?J.sources.SILENT:n)}catch{}})}),this.emitter.on(J.events.SCROLL_OPTIMIZE,(r,n)=>{if(n.range){let{startNode:a,startOffset:s,endNode:l,endOffset:p}=n.range;this.setNativeRange(a,s,l,p),this.update(J.sources.SILENT)}}),this.update(J.sources.SILENT)}handleComposition(){this.emitter.on(J.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(J.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){let i=this.cursor.restore();if(!i)return;setTimeout(()=>{this.setNativeRange(i.startNode,i.startOffset,i.endNode,i.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(J.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(i,t){this.scroll.update();let r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(i,X.BLOCK))){if(r.start.node!==this.cursor.textNode){let n=this.scroll.find(r.start.node,!1);if(n==null)return;if(n instanceof Ut){let a=n.split(r.start.offset);n.parent.insertBefore(this.cursor,a)}else n.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(i,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=this.scroll.length();i=Math.min(i,r-1),t=Math.min(i+t,r-1)-i;let n,[a,s]=this.scroll.leaf(i);if(a==null)return null;if(t>0&&s===a.length()){let[m]=this.scroll.leaf(i+1);if(m){let[f]=this.scroll.line(i),[b]=this.scroll.line(i+1);f===b&&(a=m,s=0)}}[n,s]=a.position(s,!0);let l=document.createRange();if(t>0)return l.setStart(n,s),[a,s]=this.scroll.leaf(i+t),a==null?null:([n,s]=a.position(s,!0),l.setEnd(n,s),l.getBoundingClientRect());let p="left",h;if(n instanceof Text){if(!n.data.length)return null;s<n.data.length?(l.setStart(n,s),l.setEnd(n,s+1)):(l.setStart(n,s-1),l.setEnd(n,s),p="right"),h=l.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;h=a.domNode.getBoundingClientRect(),s>0&&(p="right")}return{bottom:h.top+h.height,height:h.height,left:h[p],right:h[p],top:h.top,width:0}}getNativeRange(){let i=document.getSelection();if(i==null||i.rangeCount<=0)return null;let t=i.getRangeAt(0);if(t==null)return null;let r=this.normalizeNative(t);return _f.info("getNativeRange",r),r}getRange(){let i=this.scroll.domNode;if("isConnected"in i&&!i.isConnected)return[null,null];let t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&kf(this.root,document.activeElement)}normalizedToRange(i){let t=[[i.start.node,i.start.offset]];i.native.collapsed||t.push([i.end.node,i.end.offset]);let r=t.map(s=>{let[l,p]=s,h=this.scroll.find(l,!0),m=h.offset(this.scroll);return p===0?m:h instanceof Ut?m+h.index(l,p):m+h.length()}),n=Math.min(Math.max(...r),this.scroll.length()-1),a=Math.min(n,...r);return new jr(a,n-a)}normalizeNative(i){if(!kf(this.root,i.startContainer)||!i.collapsed&&!kf(this.root,i.endContainer))return null;let t={start:{node:i.startContainer,offset:i.startOffset},end:{node:i.endContainer,offset:i.endOffset},native:i};return[t.start,t.end].forEach(r=>{let{node:n,offset:a}=r;for(;!(n instanceof Text)&&n.childNodes.length>0;)if(n.childNodes.length>a)n=n.childNodes[a],a=0;else if(n.childNodes.length===a)n=n.lastChild,n instanceof Text?a=n.data.length:n.childNodes.length>0?a=n.childNodes.length:a=n.childNodes.length+1;else break;r.node=n,r.offset=a}),t}rangeToNative(i){let t=this.scroll.length(),r=(n,a)=>{n=Math.min(t-1,n);let[s,l]=this.scroll.leaf(n);return s?s.position(l,a):[null,-1]};return[...r(i.index,!1),...r(i.index+i.length,!0)]}setNativeRange(i,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(_f.info("setNativeRange",i,t,r,n),i!=null&&(this.root.parentNode==null||i.parentNode==null||r.parentNode==null))return;let s=document.getSelection();if(s!=null)if(i!=null){this.hasFocus()||this.root.focus({preventScroll:!0});let{native:l}=this.getNativeRange()||{};if(l==null||a||i!==l.startContainer||t!==l.startOffset||r!==l.endContainer||n!==l.endOffset){i instanceof Element&&i.tagName==="BR"&&(t=Array.from(i.parentNode.childNodes).indexOf(i),i=i.parentNode),r instanceof Element&&r.tagName==="BR"&&(n=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);let p=document.createRange();p.setStart(i,t),p.setEnd(r,n),s.removeAllRanges(),s.addRange(p)}}else s.removeAllRanges(),this.root.blur()}setRange(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:J.sources.API;if(typeof t=="string"&&(r=t,t=!1),_f.info("setRange",i),i!=null){let n=this.rangeToNative(i);this.setNativeRange(...n,t)}else this.setNativeRange(null);this.update(r)}update(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J.sources.USER,t=this.lastRange,[r,n]=this.getRange();if(this.lastRange=r,this.lastNative=n,this.lastRange!=null&&(this.savedRange=this.lastRange),!Ra(t,this.lastRange)){if(!this.composing&&n!=null&&n.native.collapsed&&n.start.node!==this.cursor.textNode){let s=this.cursor.restore();s&&this.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)}let a=[J.events.SELECTION_CHANGE,Ln(this.lastRange),Ln(t),i];this.emitter.emit(J.events.EDITOR_CHANGE,...a),i!==J.sources.SILENT&&this.emitter.emit(...a)}}};function kf(o,i){try{i.parentNode}catch{return!1}return o.contains(i)}var Oz=Sf;var _A=/^[ -~]*$/,Ef=class{constructor(i){this.scroll=i,this.delta=this.getDelta()}applyDelta(i){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();let r=Nz(i),n=new zt.default;return SA(r.ops.slice()).reduce((s,l)=>{let p=zt.Op.length(l),h=l.attributes||{},m=!1,f=!1;if(l.insert!=null){if(n.retain(p),typeof l.insert=="string"){let v=l.insert;f=!v.endsWith(`
|
|
@@ -2994,7 +2995,7 @@ ${Na(this.code(i,t))}
|
|
|
2994
2995
|
<button type="button" class="ai-tooltip">
|
|
2995
2996
|
<zn-icon src="stylus" size="18"></zn-icon>
|
|
2996
2997
|
<span class="label">Refine</span>
|
|
2997
|
-
</button>`}};Qo.styles=z(G_),c([d({type:Boolean,reflect:!0})],Qo.prototype,"open",2);Qo.define("zn-ai-tooltip");var W_=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.form-control{display:flex;flex-direction:column;height:100%}.textarea{display:flex;align-items:center;position:relative;width:100%;font-family:var(--zn-input-font-family);font-weight:var(--zn-input-font-weight);line-height:var(--zn-line-height-normal);letter-spacing:var(--zn-input-letter-spacing);vertical-align:middle;transition:var(--zn-transition-fast) color,var(--zn-transition-fast) border,var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color;cursor:text}.textarea--standard{background-color:var(--zn-input-background-color);border:solid var(--zn-input-border-width) var(--zn-input-border-color)}.textarea--standard:hover:not(.textarea--disabled){background-color:var(--zn-input-background-color-hover);border-color:var(--zn-input-border-color-hover)}.textarea--standard:hover:not(.textarea--disabled) .textarea__control{color:var(--zn-input-color-hover)}.textarea--standard.textarea--focused:not(.textarea--disabled){background-color:var(--zn-input-background-color-focus);border-color:var(--zn-input-border-color-focus);color:var(--zn-input-color-focus);box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.textarea--standard.textarea--focused:not(.textarea--disabled) .textarea__control{color:var(--zn-input-color-focus)}.textarea--standard.textarea--disabled{background-color:var(--zn-input-background-color-disabled);border-color:var(--zn-input-border-color-disabled);opacity:0.5;cursor:not-allowed}.textarea--standard.textarea--disabled .textarea__control{color:var(--zn-input-color-disabled)}.textarea--standard.textarea--disabled .textarea__control::-moz-placeholder{color:var(--zn-input-placeholder-color-disabled)}.textarea--standard.textarea--disabled .textarea__control::placeholder{color:var(--zn-input-placeholder-color-disabled)}.textarea__control{flex:1 1 auto;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.4;color:var(--zn-input-color);border:none;background:none;cursor:inherit;-webkit-appearance:none;height:100%}.textarea__control::-webkit-search-decoration,.textarea__control::-webkit-search-cancel-button,.textarea__control::-webkit-search-results-button,.textarea__control::-webkit-search-results-decoration{-webkit-appearance:none}.textarea__control::-moz-placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.textarea__control::placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.textarea__control:focus{outline:none}.textarea--small{border-radius:var(--zn-input-border-radius-small);font-size:var(--zn-input-font-size-small)}.textarea--small .textarea__control{padding:0.5em var(--zn-input-spacing-small)}.textarea--medium{border-radius:var(--zn-input-border-radius-medium);font-size:var(--zn-input-font-size-medium)}.textarea--medium .textarea__control{padding:var(--zn-input-spacing-small)}.textarea--large{border-radius:var(--zn-input-border-radius-large);font-size:var(--zn-input-font-size-large)}.textarea--large .textarea__control{padding:0.75em var(--zn-input-spacing-large)}.textarea--resize-none .textarea__control{resize:none}.textarea--resize-vertical .textarea__control{resize:vertical}.textarea--resize-auto .textarea__control{height:auto;resize:none;overflow-y:hidden}.textarea--transparent{background-color:transparent;box-shadow:none !important;border:none !important}.textarea--transparent:hover{background-color:transparent !important}.textarea--transparent.textarea--focused{border:none !important;background-color:transparent !important}.textarea--transparent .textarea__control{background-color:transparent;box-shadow:none;border:none}`;var pe=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text","label");this.resizeObserver=new
|
|
2998
|
+
</button>`}};Qo.styles=z(G_),c([d({type:Boolean,reflect:!0})],Qo.prototype,"open",2);Qo.define("zn-ai-tooltip");var W_=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.form-control{display:flex;flex-direction:column;height:100%}.textarea{display:flex;align-items:center;position:relative;width:100%;font-family:var(--zn-input-font-family);font-weight:var(--zn-input-font-weight);line-height:var(--zn-line-height-normal);letter-spacing:var(--zn-input-letter-spacing);vertical-align:middle;transition:var(--zn-transition-fast) color,var(--zn-transition-fast) border,var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color;cursor:text}.textarea--standard{background-color:var(--zn-input-background-color);border:solid var(--zn-input-border-width) var(--zn-input-border-color)}.textarea--standard:hover:not(.textarea--disabled){background-color:var(--zn-input-background-color-hover);border-color:var(--zn-input-border-color-hover)}.textarea--standard:hover:not(.textarea--disabled) .textarea__control{color:var(--zn-input-color-hover)}.textarea--standard.textarea--focused:not(.textarea--disabled){background-color:var(--zn-input-background-color-focus);border-color:var(--zn-input-border-color-focus);color:var(--zn-input-color-focus);box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.textarea--standard.textarea--focused:not(.textarea--disabled) .textarea__control{color:var(--zn-input-color-focus)}.textarea--standard.textarea--disabled{background-color:var(--zn-input-background-color-disabled);border-color:var(--zn-input-border-color-disabled);opacity:0.5;cursor:not-allowed}.textarea--standard.textarea--disabled .textarea__control{color:var(--zn-input-color-disabled)}.textarea--standard.textarea--disabled .textarea__control::-moz-placeholder{color:var(--zn-input-placeholder-color-disabled)}.textarea--standard.textarea--disabled .textarea__control::placeholder{color:var(--zn-input-placeholder-color-disabled)}.textarea__control{flex:1 1 auto;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.4;color:var(--zn-input-color);border:none;background:none;cursor:inherit;-webkit-appearance:none;height:100%}.textarea__control::-webkit-search-decoration,.textarea__control::-webkit-search-cancel-button,.textarea__control::-webkit-search-results-button,.textarea__control::-webkit-search-results-decoration{-webkit-appearance:none}.textarea__control::-moz-placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.textarea__control::placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.textarea__control:focus{outline:none}.textarea--small{border-radius:var(--zn-input-border-radius-small);font-size:var(--zn-input-font-size-small)}.textarea--small .textarea__control{padding:0.5em var(--zn-input-spacing-small)}.textarea--medium{border-radius:var(--zn-input-border-radius-medium);font-size:var(--zn-input-font-size-medium)}.textarea--medium .textarea__control{padding:var(--zn-input-spacing-small)}.textarea--large{border-radius:var(--zn-input-border-radius-large);font-size:var(--zn-input-font-size-large)}.textarea--large .textarea__control{padding:0.75em var(--zn-input-spacing-large)}.textarea--resize-none .textarea__control{resize:none}.textarea--resize-vertical .textarea__control{resize:vertical}.textarea--resize-auto .textarea__control{height:auto;resize:none;overflow-y:hidden}.textarea--transparent{background-color:transparent;box-shadow:none !important;border:none !important}.textarea--transparent:hover{background-color:transparent !important}.textarea--transparent.textarea--focused{border:none !important;background-color:transparent !important}.textarea--transparent .textarea__control{background-color:transparent;box-shadow:none;border:none}`;var pe=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text","label");this.resizeObserver=new ut(this,{target:null,callback:()=>this.setTextareaHeight()});this._didInitFromContent=!1;this.slashController=new _o(this,{menu:()=>this.mountSlashMenu(),items:t=>this.resolveSlashItems(t),trigger:()=>this.slashTrigger,onSelect:(t,r)=>!this.emit("zn-slash-select",{detail:{item:t,query:r}}).defaultPrevented,onInsert:(t,r)=>this.emit("zn-slash-insert",{detail:{item:t,value:r}})});this.hasFocus=!1;this.hasSlashMenu=!1;this.title="";this.name="";this.value="";this.size="medium";this.label="";this.labelTooltip="";this.contextNote="";this.helpText="";this.placeholder="";this.rows=4;this.resize="vertical";this.disabled=!1;this.readonly=!1;this.form="";this.flush=!1;this.required=!1;this.spellcheck=!0;this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.slashRecentKey="";this.defaultValue="";this.transparent=!1}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){if(super.connectedCallback(),!this._didInitFromContent){this._didInitFromContent=!0;let t=this.hasAttribute("value"),r=typeof this.value=="string"&&this.value.length>0;if(!t&&!r){let n=Array.from(this.childNodes).filter(l=>l.nodeType===Node.TEXT_NODE),s=n.map(l=>l.textContent??"").join("").replace(/\r\n/g,`
|
|
2998
2999
|
`).trim();s.length>0&&(this.value=s,this.defaultValue=s,n.forEach(l=>{(l.textContent??"").trim().length>0&&l.parentNode?.removeChild(l)}))}}this.updateComplete.then(()=>{this.resizeObserver.observe(this.input),this.formControl.style.display="flex",this.formControl.style.flexGrow="1"})}firstUpdated(){this.formControlController.updateValidity(),this.slashController.attach(this.input)}async resolveSlashItems(t=""){let r=[...Bd(this.slashPreset),...this.slashItems,...this.slottedSlashItems()],n=await this.slashItemsProvider?.(t);return n?[...r,...n]:r}async showSlashMenu(){this.focus();let t=this.input.selectionStart??this.input.value.length;this.input.value.slice(t-this.slashTrigger.length,t)!==this.slashTrigger&&this.setRangeText(this.slashTrigger,t,t,"end"),await this.updateComplete,this.slashController.requestOpen()}hideSlashMenu(){this.slashController.close()}slottedSlashItems(){return[...this.querySelectorAll("zn-slash-item")].map(r=>{if(typeof r.toSlashMenuItem=="function")return r.toSlashMenuItem();let n=r.getAttribute("value")??(r.textContent??"").trim(),a=r.getAttribute("order"),s=r.getAttribute("caret-offset");return{label:r.getAttribute("label")??n,value:n,icon:r.getAttribute("icon")??void 0,description:r.getAttribute("description")??void 0,keywords:r.getAttribute("keywords")??void 0,group:r.getAttribute("group")??void 0,action:r.getAttribute("action")??void 0,order:a===null?void 0:Number(a),caretOffset:s===null?void 0:Number(s),disabled:r.hasAttribute("disabled")}})}async mountSlashMenu(){let t=this.querySelector("zn-slash-menu");return t||(this.hasSlashMenu||(this.hasSlashMenu=!0,await this.updateComplete),this.slashMenuElement)}handleBlur(){this.hasFocus=!1,this.emit("zn-blur")}handleChange(){this.value=this.input.value,this.setTextareaHeight(),this.emit("zn-change")}handleFocus(){this.hasFocus=!0,this.emit("zn-focus")}handleInput(){this.value=this.input.value,this.emit("zn-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){this.slashController.open||t.key==="Escape"&&(this.input.blur(),t.stopPropagation())}setTextareaHeight(){this.resize==="auto"?(this.input.style.height="auto",this.input.style.height=`${this.input.scrollHeight}px`):this.input.style.height=void 0,this.formControl.style.height=this.input.style.height,this.formControl.style.height!==""&&(this.formControl.style.flexGrow="0")}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.input.scrollTop=t.top),typeof t.left=="number"&&(this.input.scrollLeft=t.left);return}return{top:this.input.scrollTop,left:this.input.scrollLeft}}setSelectionRange(t,r,n="none"){this.input.setSelectionRange(t,r,n)}setRangeText(t,r,n,a="preserve"){let s=r??this.input.selectionStart,l=n??this.input.selectionEnd;this.input.setRangeText(t,s,l,a),this.value!==this.input.value&&(this.value=this.input.value,this.setTextareaHeight())}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("label-tooltip"),n=this.hasSlotController.test("context-note"),a=this.hasSlotController.test("help-text"),s=this.label?!0:t,l=this.labelTooltip?!0:r,p=this.contextNote?!0:n,h=this.helpText?!0:a;return u`
|
|
2999
3000
|
<div
|
|
3000
3001
|
part="form-control"
|
|
@@ -3070,7 +3071,7 @@ ${Na(this.code(i,t))}
|
|
|
3070
3071
|
</div>
|
|
3071
3072
|
</div>`}};pe.styles=[z(Ee),z(W_)],pe.dependencies={"zn-slash-item":Gl,"zn-slash-menu":Sa},c([F(".form-control-input")],pe.prototype,"formControl",2),c([F(".textarea__control")],pe.prototype,"input",2),c([F("zn-slash-menu")],pe.prototype,"slashMenuElement",2),c([I()],pe.prototype,"hasFocus",2),c([I()],pe.prototype,"hasSlashMenu",2),c([d()],pe.prototype,"title",2),c([d()],pe.prototype,"name",2),c([d()],pe.prototype,"value",2),c([d({reflect:!0})],pe.prototype,"size",2),c([d()],pe.prototype,"label",2),c([d({attribute:"label-tooltip"})],pe.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],pe.prototype,"contextNote",2),c([d({attribute:"help-text"})],pe.prototype,"helpText",2),c([d()],pe.prototype,"placeholder",2),c([d({attribute:"rows",type:Number})],pe.prototype,"rows",2),c([d()],pe.prototype,"resize",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"readonly",2),c([d({reflect:!0})],pe.prototype,"form",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"flush",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"required",2),c([d({type:Number})],pe.prototype,"minlength",2),c([d({type:Number})],pe.prototype,"maxlength",2),c([d()],pe.prototype,"autocapitalize",2),c([d()],pe.prototype,"autocorrect",2),c([d()],pe.prototype,"autocomplete",2),c([d({type:Boolean})],pe.prototype,"autofocus",2),c([d()],pe.prototype,"enterkeyhint",2),c([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],pe.prototype,"spellcheck",2),c([d()],pe.prototype,"inputmode",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],pe.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],pe.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],pe.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],pe.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],pe.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],pe.prototype,"slashRecentKey",2),c([d({attribute:!1})],pe.prototype,"slashItemsProvider",2),c([Ce()],pe.prototype,"defaultValue",2),c([d({type:Boolean})],pe.prototype,"transparent",2),c([K("disabled",{waitUntilFirstUpdate:!0})],pe.prototype,"handleDisabledChange",1),c([K("rows",{waitUntilFirstUpdate:!0})],pe.prototype,"handleRowsChange",1),c([K("value",{waitUntilFirstUpdate:!0})],pe.prototype,"handleValueChange",1);var Xo=pe;pe.define("zn-textarea");var sg=class{constructor(i,t){this._path="";this._selectedText="";this._prompt="";this._aiResponseContent="";this._onEscapeKey=i=>{i.key==="Escape"&&(this._hide(),this._component.remove(),this._initComponent())};this._quill=i,this._path=t.path,this._initComponent(),this._attachEvents()}_initComponent(){this._component=this._createTooltipComponent(),this._component.addEventListener("click",i=>this._replaceTooltip(i)),this._quill.container.ownerDocument.body.appendChild(this._component)}_attachEvents(){this._quill.on(ce.events.SELECTION_CHANGE,i=>this._updateFromEditor(i))}_latestContent(i){if(i==null&&(i=this._component.shadowRoot?.querySelector(".ai-panel")),i){let t=i.querySelector('[name="editor-response-text"]');if(t instanceof HTMLInputElement||t instanceof Xo)return t.value}return this._aiResponseContent}async processAIRequest(){let i=this._selectedText?this._selectedText:this._quill.getText(),t=this._component.shadowRoot?.querySelector(".ai-panel"),r=await fetch(this._path,{method:"POST",headers:{"Content-Type":"application/json","x-kx-fetch-style":"zn-editor","x-kx-editor-id":this._quill?.container?.getAttribute("x-editor-id")||""},body:JSON.stringify({text:i,prompt:this._prompt})});if(r.ok){let n=await r.text();t&&(t.style.width="500px",t.innerHTML=n,this._aiResponseContent=this._latestContent(t))}else{let n=await r.json();if(typeof n=="string"){let a=this._quill.getSelection();a&&(this._quill.deleteText(a.index,a.length),this._quill.insertText(a.index,n),this._quill.setSelection(a.index+n.length,0))}}}_createTooltipComponent(){let i=u`
|
|
3072
3073
|
<zn-ai-tooltip></zn-ai-tooltip>`;return It(i)}_createPanelComponent(){let i=u`
|
|
3073
|
-
<zn-ai-panel></zn-ai-panel>`;return It(i)}_replaceTooltip(i){i.preventDefault(),i.stopPropagation(),this._component.remove();let t=this._createPanelComponent();t&&(this._component=t,this._component.requestUpdate(),this._attachPanelEvents(t),this._quill.container.ownerDocument.body.appendChild(this._component),this._show(),this._positionComponent())}_onDocumentClick(i){let t=i.composedPath?i.composedPath():[i.target],r=t.includes(this._component)||t.includes(this._component.shadowRoot),n=this._quill.root.contains(t[0]),a=t.some(s=>s instanceof HTMLElement?s.tagName==="ZN-AI-PANEL":!1);if(this._latestContent(null)&&!a){i.preventDefault(),i.stopPropagation();return}!r&&!n&&!a&&this.resetComponent()}_updateFromEditor(i){this._component instanceof mn||(i?.length>25?(this._selectedText=this._quill.getText(i.index,i.length),this._show(),this._positionComponent()):this.resetComponent())}_positionComponent(){if(!this._component||!this._component.open)return;let i=this._quill.getSelection();if(!i)return;if(this._component instanceof Qo){let r=this._quill.container.getBoundingClientRect(),n=i.index+i.length,a=this._quill.getBounds(n);if(!a)return;let s=r.left+a.left-10,l=r.top+a.bottom+4;this._component.style.left=`${Math.max(0,s)}px`,this._component.style.top=`${l}px`;return}requestAnimationFrame(()=>{let r=this._quill.container.getBoundingClientRect(),n;if(i.length===this._quill.getLength()-1)n=this._quill.getBounds(i.index,i.length);else{let l=i.index+i.length;n=this._quill.getBounds(l)}if(!n)return;let a=r.left+n.right,s=r.top+n.top-8;if(a>window.innerWidth){this._setPanelPosition(window.innerWidth-10,s);return}this._setPanelPosition(a,s)})}_setPanelPosition(i,t){this._component.style.right=`${Math.max(0,window.innerWidth-i)}px`,this._component.style.bottom=`${Math.max(0,window.innerHeight-t)}px`}resetComponent(){this._hide(),this._component.remove(),this._initComponent()}_show(){this._component.open||(this._component.show(),this._quill.container.ownerDocument.addEventListener("click",i=>this._onDocumentClick(i)),this._quill.container.ownerDocument.addEventListener("keydown",this._onEscapeKey))}_hide(){this._component.hide(),this._quill.container.ownerDocument.removeEventListener("click",i=>this._onDocumentClick(i)),this._quill.container.ownerDocument.removeEventListener("keydown",this._onEscapeKey)}_attachPanelEvents(i){i.refine=this._enterCustomPrompt.bind(this),i.refineBuiltIn=this._clickPreDefinedEvent.bind(this)}_clickPreDefinedEvent(i){if(i instanceof PointerEvent){let t=i.target;if(this._prompt=t.getAttribute("data-ai-option")||"",this._prompt===""){for(let r of i.composedPath())if(r instanceof HTMLElement&&(this._prompt=r.getAttribute("data-ai-option")||"",this._prompt))break}this.processAIRequest().then(r=>r)}}_enterCustomPrompt(i){this._prompt=i,this.processAIRequest().then(t=>t)}},K_=sg;var Vc=class{constructor(i,t){this._quill=i,this._options=t,this._quill.on("editor-change",this._updateStartTime.bind(this)),this._updateOpenTime()}_updateOpenTime(){this._options.openTimeInput&&!this._openTime&&(this._openTime=Math.floor(new Date().getTime()/1e3),this._options.openTimeInput.value=this._openTime.toString())}_updateStartTime(){this._options.startTimeInput&&!this._startTime&&(this._startTime=Math.floor(new Date().getTime()/1e3),this._options.startTimeInput.value=this._startTime.toString())}};var lg=["Red","Blue","Orange","Yellow","Indigo","Violet","Green","Pink","Gray"],Eh={getName:"color",getData:Object.entries(lg).map(([,o])=>({key:o.toLowerCase(),value:o,prefix:u`<div class="color-icon color-icon--${o.toLowerCase()}"></div>`}))};var Y_=_`.toolbar{display:flex;flex-wrap:wrap;align-items:center}.toolbar__group{display:flex;align-items:center;position:relative}.toolbar__group--overflow{display:none}.toolbar__group--empty{display:none}.toolbar__group{}.toolbar__group:not(.toolbar__group--empty):not(.toolbar__group--hidden)+.toolbar__group::before{content:"";display:inline-block;width:1px;height:18px;background-color:var(--zn-color-gray-300);opacity:0.8;margin-inline:var(--zn-spacing-2x-small);border-radius:10px}.toolbar__group{}.toolbar__group--has-prev-visible::before{content:"";display:inline-block;width:1px;height:18px;background-color:var(--zn-color-gray-300);opacity:0.8;margin-inline:var(--zn-spacing-2x-small);border-radius:10px}.toolbar__dropdown-trigger::part(icon){margin-left:4px}.color-icon{width:18px;height:18px;display:block;border-radius:100%;flex-shrink:0}.color-icon--red{background-color:var(--zn-color-red-500)}.color-icon--blue{background-color:var(--zn-color-blue-500)}.color-icon--orange{background-color:var(--zn-color-orange-500)}.color-icon--yellow{background-color:var(--zn-color-yellow-400)}.color-icon--indigo{background-color:var(--zn-color-indigo-500)}.color-icon--violet{background-color:var(--zn-color-violet-500)}.color-icon--green{background-color:var(--zn-color-green-500)}.color-icon--pink{background-color:var(--zn-color-pink-500)}.color-icon--gray{background-color:var(--zn-color-gray-500)}`;var Dn=class extends k{constructor(){super(...arguments);this._featureConfig={};this._resizeId=null;this._resizeObserver=new ht(this,{callback:()=>this.handleResize()});this._movedContent=new Map;this.handleResize=()=>{this.containerWidth=this.getToolbarWidth(),this._resizeId!==null&&cancelAnimationFrame(this._resizeId),this._resizeId=requestAnimationFrame(()=>{this.calculateOverflow(),this._resizeId=null})}}connectedCallback(){super.connectedCallback(),this.containerWidth=this.offsetWidth,this.parentElement&&this._resizeObserver.observe(this.parentElement)}disconnectedCallback(){super.disconnectedCallback(),this._resizeId!==null&&(cancelAnimationFrame(this._resizeId),this._resizeId=null),this.restoreMovedContent()}firstUpdated(t){super.firstUpdated(t),this.containerWidth=this.getToolbarWidth(),this.updateEmptyGroups(),this.renderRoot?.querySelector("slot")?.addEventListener("slotchange",()=>this.calculateOverflow()),this.updateComplete.then(()=>this.calculateOverflow())}configureToolbar(t){this._featureConfig=t}getToolbarWidth(){let t=this,r=t.getBoundingClientRect?.().width||t.offsetWidth||0;return(!r||r<=0)&&this._toolbarEl&&(r=this._toolbarEl.getBoundingClientRect().width),r}getOverflowGroupWidth(){let t=50,r=this._overflowGroup;if(!r)return t;let n=r.style.display,a=r.style.visibility;return r.style.display="flex",r.style.visibility="hidden",t=r.offsetWidth||t,r.style.visibility=a,r.style.display=n||"none",t}restoreMovedContent(){this._movedContent.forEach(({placeholder:t,originalParent:r},n)=>{t.parentNode?(r.insertBefore(n,t),t.parentNode.removeChild(t)):r.appendChild(n)}),this._movedContent.clear()}moveContentTo(t,r){if(this._movedContent.has(t)){t.parentElement!==r&&r.appendChild(t);return}let n=t.parentElement;if(!n)return;let a=document.createComment("toolbar-overflow-placeholder");n.insertBefore(a,t),r.appendChild(t),this._movedContent.set(t,{placeholder:a,originalParent:n})}isGroupEmpty(t){let r=t.querySelector("slot");return r?r.assignedElements({flatten:!0}).length===0:t.childElementCount===0}updateEmptyGroups(){Array.from(this._groups||[]).forEach(r=>{let n=this.isGroupEmpty(r);r.classList.toggle("toolbar__group--empty",n)})}_updateDividerClasses(){let t=Array.from(this._groups||[]),r=!1;t.forEach(n=>{let a=n.classList.contains("toolbar__group--empty"),s=n.style.display==="none",l=!a&&!s;n.classList.toggle("toolbar__group--has-prev-visible",l&&r),l&&(r=!0)})}calculateOverflow(){let t=Array.from(this._groups||[]);if(!t.length)return;this.restoreMovedContent(),this.updateEmptyGroups();let r=t.filter(h=>!h.classList.contains("toolbar__group--overflow")&&!h.classList.contains("toolbar__group--empty"));r.forEach(h=>{h.style.display="flex",h.classList.remove("toolbar__group--hidden","toolbar__group--has-prev-visible")}),this._overflowGroup&&(this._overflowGroup.style.display="none",this._overflowGroup.classList.remove("toolbar__group--hidden","toolbar__group--has-prev-visible"));let n=this.getToolbarWidth();if(!n||n<=0){r.forEach(h=>h.style.display="flex"),this._overflowGroup&&(this._overflowGroup.style.display="none"),this.restoreMovedContent(),this._overflowMenu&&(this._overflowMenu.innerHTML=""),this._updateDividerClasses(),this._dispatchOverflowEvent();return}let a=0,s=0;for(let h of r){let m=h.offsetWidth;if(a+m<=n)a+=m,s++;else break}if(s>=r.length){r.forEach(h=>h.style.display="flex"),this._overflowGroup&&(this._overflowGroup.style.display="none"),this.restoreMovedContent(),this._overflowMenu&&(this._overflowMenu.innerHTML=""),this._updateDividerClasses(),this._dispatchOverflowEvent();return}let l=this.getOverflowGroupWidth();a=0,s=0;for(let h of r){let m=h.offsetWidth;if(a+m+l<=n)a+=m,s++;else break}r.forEach((h,m)=>{h.style.display=m<s?"flex":"none"}),r.forEach((h,m)=>{let f=m>=s;h.classList.toggle("toolbar__group--hidden",f)}),this._overflowGroup&&(this._overflowGroup.style.display="flex"),this._updateDividerClasses();let p=r.slice(s);this.populateOverflowMenu(p),this._dispatchOverflowEvent()}_dispatchOverflowEvent(){this.dispatchEvent(new CustomEvent("zn-toolbar-overflow-updated",{bubbles:!0,composed:!0}))}populateOverflowMenu(t){let r=this._overflowMenu;if(!r)return;this.restoreMovedContent(),r.innerHTML="";let n=(h,m,f,b,g={})=>{let v=document.createElement("zn-menu-item");if(v.innerText=m,Object.keys(g).forEach(y=>v.setAttribute(y,g[y])),f){let y=document.createElement("zn-icon");y.setAttribute("src",f),y.setAttribute("size","18"),y.setAttribute("slot","prefix"),v.appendChild(y)}return b&&v.addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),b()}),h.appendChild(v),v},a=h=>{let m=document.createElement("zn-menu-item");for(let f of h.attributes)f.name!=="id"&&m.setAttribute(f.name,f.value);return m.innerHTML=h.innerHTML,m},s=h=>{let f=h.querySelector('zn-button[slot="trigger"]')?.querySelector("zn-icon"),b=f?.getAttribute("src");if(!b)return b??void 0;let g=f?.getAttribute("library");return g?`${b}@${g}`:b},l={bold:"Bold",italic:"Italic",underline:"Underline",undo:"Undo",redo:"Redo"},p={"toolbar__header-dropdown":"Text","toolbar__format-dropdown":"Format","toolbar__color-dropdown":"Color","toolbar__list-dropdown":"Lists","toolbar__file-dropdown":"Insert","toolbar__emoji-dropdown":"Emoji","toolbar__date-dropdown":"Date"};t.forEach(h=>{if(Array.from(h.querySelectorAll("zn-dropdown")).forEach(g=>{let v="";for(let U in p)if(g.classList.contains(U)){v=p[U];break}v||(v=g.getAttribute("aria-label")||g.getAttribute("title")||"More");let y=s(g)||"",C=n(r,v,y);g.classList.contains("toolbar__date-dropdown")&&C.setAttribute("data-overflow-source","date");let T=document.createElement("zn-menu");T.setAttribute("slot","submenu"),T.setAttribute("variant","shell");let O=g.querySelectorAll("zn-menu-item");if(O.length)O.forEach(U=>{let D=a(U);T.appendChild(D)});else{let U=Array.from(g.children).filter(S=>{let $=S.getAttribute("slot")==="trigger"||S instanceof Me,L=S instanceof nn||S instanceof xi;return!$&&!L}),D=document.createElement("div");D.className="toolbar__submenu-content",U.forEach(S=>this.moveContentTo(S,D)),T.appendChild(D)}C.appendChild(T)}),h.querySelectorAll("zn-button.toolbar__format-button, zn-button.toolbar__action-button").forEach(g=>{let v=g.getAttribute("icon")??"",y=g.getAttribute("data-format")??"",C=g.getAttribute("data-text")??l[y]??(y?y.charAt(0).toUpperCase()+y.slice(1):g.getAttribute("aria-label")??g.textContent?.trim()??"Action"),T={"data-format":y},O=g.getAttribute("data-format-type")??"";O&&(T["data-format-type"]=O),v&&(T["data-icon"]=v),C&&(T["data-text"]=C),n(r,C,v,void 0,T)}),Array.from(h.querySelectorAll("zn-menu-item")).filter(g=>!g.closest("zn-dropdown")).forEach(g=>{let v=a(g);r.appendChild(v)}),h.querySelector("slot")){let g=h.querySelector("slot"),v=g?g.assignedElements({flatten:!0}):[];if(!v.length)return;v.forEach(y=>{if(y instanceof Fc){let C=y.icon,T=y.label,O=y.handler||"dialog",U=y.uri||"",D=y.key||"",S={"data-format":O};U&&(S["data-format-type"]=U),D&&(S["data-toolbar-key"]=D),C&&(S["data-icon"]=C),T&&(S["data-text"]=T),n(r,T,C,void 0,S)}})}})}render(){let t=this._featureConfig.dividersEnabled||this._featureConfig.linksEnabled||this._featureConfig.attachmentsEnabled||this._featureConfig.imagesEnabled||this._featureConfig.videosEnabled,r=t||this._featureConfig.datesEnabled||this._featureConfig.emojisEnabled;return u`
|
|
3074
|
+
<zn-ai-panel></zn-ai-panel>`;return It(i)}_replaceTooltip(i){i.preventDefault(),i.stopPropagation(),this._component.remove();let t=this._createPanelComponent();t&&(this._component=t,this._component.requestUpdate(),this._attachPanelEvents(t),this._quill.container.ownerDocument.body.appendChild(this._component),this._show(),this._positionComponent())}_onDocumentClick(i){let t=i.composedPath?i.composedPath():[i.target],r=t.includes(this._component)||t.includes(this._component.shadowRoot),n=this._quill.root.contains(t[0]),a=t.some(s=>s instanceof HTMLElement?s.tagName==="ZN-AI-PANEL":!1);if(this._latestContent(null)&&!a){i.preventDefault(),i.stopPropagation();return}!r&&!n&&!a&&this.resetComponent()}_updateFromEditor(i){this._component instanceof mn||(i?.length>25?(this._selectedText=this._quill.getText(i.index,i.length),this._show(),this._positionComponent()):this.resetComponent())}_positionComponent(){if(!this._component||!this._component.open)return;let i=this._quill.getSelection();if(!i)return;if(this._component instanceof Qo){let r=this._quill.container.getBoundingClientRect(),n=i.index+i.length,a=this._quill.getBounds(n);if(!a)return;let s=r.left+a.left-10,l=r.top+a.bottom+4;this._component.style.left=`${Math.max(0,s)}px`,this._component.style.top=`${l}px`;return}requestAnimationFrame(()=>{let r=this._quill.container.getBoundingClientRect(),n;if(i.length===this._quill.getLength()-1)n=this._quill.getBounds(i.index,i.length);else{let l=i.index+i.length;n=this._quill.getBounds(l)}if(!n)return;let a=r.left+n.right,s=r.top+n.top-8;if(a>window.innerWidth){this._setPanelPosition(window.innerWidth-10,s);return}this._setPanelPosition(a,s)})}_setPanelPosition(i,t){this._component.style.right=`${Math.max(0,window.innerWidth-i)}px`,this._component.style.bottom=`${Math.max(0,window.innerHeight-t)}px`}resetComponent(){this._hide(),this._component.remove(),this._initComponent()}_show(){this._component.open||(this._component.show(),this._quill.container.ownerDocument.addEventListener("click",i=>this._onDocumentClick(i)),this._quill.container.ownerDocument.addEventListener("keydown",this._onEscapeKey))}_hide(){this._component.hide(),this._quill.container.ownerDocument.removeEventListener("click",i=>this._onDocumentClick(i)),this._quill.container.ownerDocument.removeEventListener("keydown",this._onEscapeKey)}_attachPanelEvents(i){i.refine=this._enterCustomPrompt.bind(this),i.refineBuiltIn=this._clickPreDefinedEvent.bind(this)}_clickPreDefinedEvent(i){if(i instanceof PointerEvent){let t=i.target;if(this._prompt=t.getAttribute("data-ai-option")||"",this._prompt===""){for(let r of i.composedPath())if(r instanceof HTMLElement&&(this._prompt=r.getAttribute("data-ai-option")||"",this._prompt))break}this.processAIRequest().then(r=>r)}}_enterCustomPrompt(i){this._prompt=i,this.processAIRequest().then(t=>t)}},K_=sg;var Vc=class{constructor(i,t){this._quill=i,this._options=t,this._quill.on("editor-change",this._updateStartTime.bind(this)),this._updateOpenTime()}_updateOpenTime(){this._options.openTimeInput&&!this._openTime&&(this._openTime=Math.floor(new Date().getTime()/1e3),this._options.openTimeInput.value=this._openTime.toString())}_updateStartTime(){this._options.startTimeInput&&!this._startTime&&(this._startTime=Math.floor(new Date().getTime()/1e3),this._options.startTimeInput.value=this._startTime.toString())}};var lg=["Red","Blue","Orange","Yellow","Indigo","Violet","Green","Pink","Gray"],Eh={getName:"color",getData:Object.entries(lg).map(([,o])=>({key:o.toLowerCase(),value:o,prefix:u`<div class="color-icon color-icon--${o.toLowerCase()}"></div>`}))};var Y_=_`.toolbar{display:flex;flex-wrap:wrap;align-items:center}.toolbar__group{display:flex;align-items:center;position:relative}.toolbar__group--overflow{display:none}.toolbar__group--empty{display:none}.toolbar__group{}.toolbar__group:not(.toolbar__group--empty):not(.toolbar__group--hidden)+.toolbar__group::before{content:"";display:inline-block;width:1px;height:18px;background-color:var(--zn-color-gray-300);opacity:0.8;margin-inline:var(--zn-spacing-2x-small);border-radius:10px}.toolbar__group{}.toolbar__group--has-prev-visible::before{content:"";display:inline-block;width:1px;height:18px;background-color:var(--zn-color-gray-300);opacity:0.8;margin-inline:var(--zn-spacing-2x-small);border-radius:10px}.toolbar__dropdown-trigger::part(icon){margin-left:4px}.color-icon{width:18px;height:18px;display:block;border-radius:100%;flex-shrink:0}.color-icon--red{background-color:var(--zn-color-red-500)}.color-icon--blue{background-color:var(--zn-color-blue-500)}.color-icon--orange{background-color:var(--zn-color-orange-500)}.color-icon--yellow{background-color:var(--zn-color-yellow-400)}.color-icon--indigo{background-color:var(--zn-color-indigo-500)}.color-icon--violet{background-color:var(--zn-color-violet-500)}.color-icon--green{background-color:var(--zn-color-green-500)}.color-icon--pink{background-color:var(--zn-color-pink-500)}.color-icon--gray{background-color:var(--zn-color-gray-500)}`;var Dn=class extends k{constructor(){super(...arguments);this._featureConfig={};this._resizeId=null;this._resizeObserver=new ut(this,{callback:()=>this.handleResize()});this._movedContent=new Map;this.handleResize=()=>{this.containerWidth=this.getToolbarWidth(),this._resizeId!==null&&cancelAnimationFrame(this._resizeId),this._resizeId=requestAnimationFrame(()=>{this.calculateOverflow(),this._resizeId=null})}}connectedCallback(){super.connectedCallback(),this.containerWidth=this.offsetWidth,this.parentElement&&this._resizeObserver.observe(this.parentElement)}disconnectedCallback(){super.disconnectedCallback(),this._resizeId!==null&&(cancelAnimationFrame(this._resizeId),this._resizeId=null),this.restoreMovedContent()}firstUpdated(t){super.firstUpdated(t),this.containerWidth=this.getToolbarWidth(),this.updateEmptyGroups(),this.renderRoot?.querySelector("slot")?.addEventListener("slotchange",()=>this.calculateOverflow()),this.updateComplete.then(()=>this.calculateOverflow())}configureToolbar(t){this._featureConfig=t}getToolbarWidth(){let t=this,r=t.getBoundingClientRect?.().width||t.offsetWidth||0;return(!r||r<=0)&&this._toolbarEl&&(r=this._toolbarEl.getBoundingClientRect().width),r}getOverflowGroupWidth(){let t=50,r=this._overflowGroup;if(!r)return t;let n=r.style.display,a=r.style.visibility;return r.style.display="flex",r.style.visibility="hidden",t=r.offsetWidth||t,r.style.visibility=a,r.style.display=n||"none",t}restoreMovedContent(){this._movedContent.forEach(({placeholder:t,originalParent:r},n)=>{t.parentNode?(r.insertBefore(n,t),t.parentNode.removeChild(t)):r.appendChild(n)}),this._movedContent.clear()}moveContentTo(t,r){if(this._movedContent.has(t)){t.parentElement!==r&&r.appendChild(t);return}let n=t.parentElement;if(!n)return;let a=document.createComment("toolbar-overflow-placeholder");n.insertBefore(a,t),r.appendChild(t),this._movedContent.set(t,{placeholder:a,originalParent:n})}isGroupEmpty(t){let r=t.querySelector("slot");return r?r.assignedElements({flatten:!0}).length===0:t.childElementCount===0}updateEmptyGroups(){Array.from(this._groups||[]).forEach(r=>{let n=this.isGroupEmpty(r);r.classList.toggle("toolbar__group--empty",n)})}_updateDividerClasses(){let t=Array.from(this._groups||[]),r=!1;t.forEach(n=>{let a=n.classList.contains("toolbar__group--empty"),s=n.style.display==="none",l=!a&&!s;n.classList.toggle("toolbar__group--has-prev-visible",l&&r),l&&(r=!0)})}calculateOverflow(){let t=Array.from(this._groups||[]);if(!t.length)return;this.restoreMovedContent(),this.updateEmptyGroups();let r=t.filter(h=>!h.classList.contains("toolbar__group--overflow")&&!h.classList.contains("toolbar__group--empty"));r.forEach(h=>{h.style.display="flex",h.classList.remove("toolbar__group--hidden","toolbar__group--has-prev-visible")}),this._overflowGroup&&(this._overflowGroup.style.display="none",this._overflowGroup.classList.remove("toolbar__group--hidden","toolbar__group--has-prev-visible"));let n=this.getToolbarWidth();if(!n||n<=0){r.forEach(h=>h.style.display="flex"),this._overflowGroup&&(this._overflowGroup.style.display="none"),this.restoreMovedContent(),this._overflowMenu&&(this._overflowMenu.innerHTML=""),this._updateDividerClasses(),this._dispatchOverflowEvent();return}let a=0,s=0;for(let h of r){let m=h.offsetWidth;if(a+m<=n)a+=m,s++;else break}if(s>=r.length){r.forEach(h=>h.style.display="flex"),this._overflowGroup&&(this._overflowGroup.style.display="none"),this.restoreMovedContent(),this._overflowMenu&&(this._overflowMenu.innerHTML=""),this._updateDividerClasses(),this._dispatchOverflowEvent();return}let l=this.getOverflowGroupWidth();a=0,s=0;for(let h of r){let m=h.offsetWidth;if(a+m+l<=n)a+=m,s++;else break}r.forEach((h,m)=>{h.style.display=m<s?"flex":"none"}),r.forEach((h,m)=>{let f=m>=s;h.classList.toggle("toolbar__group--hidden",f)}),this._overflowGroup&&(this._overflowGroup.style.display="flex"),this._updateDividerClasses();let p=r.slice(s);this.populateOverflowMenu(p),this._dispatchOverflowEvent()}_dispatchOverflowEvent(){this.dispatchEvent(new CustomEvent("zn-toolbar-overflow-updated",{bubbles:!0,composed:!0}))}populateOverflowMenu(t){let r=this._overflowMenu;if(!r)return;this.restoreMovedContent(),r.innerHTML="";let n=(h,m,f,b,g={})=>{let v=document.createElement("zn-menu-item");if(v.innerText=m,Object.keys(g).forEach(y=>v.setAttribute(y,g[y])),f){let y=document.createElement("zn-icon");y.setAttribute("src",f),y.setAttribute("size","18"),y.setAttribute("slot","prefix"),v.appendChild(y)}return b&&v.addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),b()}),h.appendChild(v),v},a=h=>{let m=document.createElement("zn-menu-item");for(let f of h.attributes)f.name!=="id"&&m.setAttribute(f.name,f.value);return m.innerHTML=h.innerHTML,m},s=h=>{let f=h.querySelector('zn-button[slot="trigger"]')?.querySelector("zn-icon"),b=f?.getAttribute("src");if(!b)return b??void 0;let g=f?.getAttribute("library");return g?`${b}@${g}`:b},l={bold:"Bold",italic:"Italic",underline:"Underline",undo:"Undo",redo:"Redo"},p={"toolbar__header-dropdown":"Text","toolbar__format-dropdown":"Format","toolbar__color-dropdown":"Color","toolbar__list-dropdown":"Lists","toolbar__file-dropdown":"Insert","toolbar__emoji-dropdown":"Emoji","toolbar__date-dropdown":"Date"};t.forEach(h=>{if(Array.from(h.querySelectorAll("zn-dropdown")).forEach(g=>{let v="";for(let U in p)if(g.classList.contains(U)){v=p[U];break}v||(v=g.getAttribute("aria-label")||g.getAttribute("title")||"More");let y=s(g)||"",C=n(r,v,y);g.classList.contains("toolbar__date-dropdown")&&C.setAttribute("data-overflow-source","date");let T=document.createElement("zn-menu");T.setAttribute("slot","submenu"),T.setAttribute("variant","shell");let O=g.querySelectorAll("zn-menu-item");if(O.length)O.forEach(U=>{let D=a(U);T.appendChild(D)});else{let U=Array.from(g.children).filter(S=>{let $=S.getAttribute("slot")==="trigger"||S instanceof Me,L=S instanceof nn||S instanceof xi;return!$&&!L}),D=document.createElement("div");D.className="toolbar__submenu-content",U.forEach(S=>this.moveContentTo(S,D)),T.appendChild(D)}C.appendChild(T)}),h.querySelectorAll("zn-button.toolbar__format-button, zn-button.toolbar__action-button").forEach(g=>{let v=g.getAttribute("icon")??"",y=g.getAttribute("data-format")??"",C=g.getAttribute("data-text")??l[y]??(y?y.charAt(0).toUpperCase()+y.slice(1):g.getAttribute("aria-label")??g.textContent?.trim()??"Action"),T={"data-format":y},O=g.getAttribute("data-format-type")??"";O&&(T["data-format-type"]=O),v&&(T["data-icon"]=v),C&&(T["data-text"]=C),n(r,C,v,void 0,T)}),Array.from(h.querySelectorAll("zn-menu-item")).filter(g=>!g.closest("zn-dropdown")).forEach(g=>{let v=a(g);r.appendChild(v)}),h.querySelector("slot")){let g=h.querySelector("slot"),v=g?g.assignedElements({flatten:!0}):[];if(!v.length)return;v.forEach(y=>{if(y instanceof Fc){let C=y.icon,T=y.label,O=y.handler||"dialog",U=y.uri||"",D=y.key||"",S={"data-format":O};U&&(S["data-format-type"]=U),D&&(S["data-toolbar-key"]=D),C&&(S["data-icon"]=C),T&&(S["data-text"]=T),n(r,T,C,void 0,S)}})}})}render(){let t=this._featureConfig.dividersEnabled||this._featureConfig.linksEnabled||this._featureConfig.attachmentsEnabled||this._featureConfig.imagesEnabled||this._featureConfig.videosEnabled,r=t||this._featureConfig.datesEnabled||this._featureConfig.emojisEnabled;return u`
|
|
3074
3075
|
<div class="toolbar">
|
|
3075
3076
|
<div class="toolbar__group">${this._textOptions()}</div>
|
|
3076
3077
|
<div class="toolbar__group">${this._formatOptions()}</div>
|
|
@@ -3419,7 +3420,7 @@ ${Na(this.code(i,t))}
|
|
|
3419
3420
|
aria-hidden=${n?"false":"true"}>
|
|
3420
3421
|
<slot name="help-text">${this.helpText}</slot>
|
|
3421
3422
|
</div>
|
|
3422
|
-
</div>`}};Xe.styles=[z(Ee),z(Z_)],c([F('input[type="checkbox"]')],Xe.prototype,"input",2),c([I()],Xe.prototype,"hasFocus",2),c([d()],Xe.prototype,"title",2),c([d()],Xe.prototype,"name",2),c([d()],Xe.prototype,"value",2),c([d({attribute:"fallback"})],Xe.prototype,"fallbackValue",2),c([d({reflect:!0})],Xe.prototype,"size",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"checked",2),c([Ce("checked")],Xe.prototype,"defaultChecked",2),c([d({reflect:!0})],Xe.prototype,"form",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"required",2),c([d({attribute:"help-text"})],Xe.prototype,"helpText",2),c([d({type:Boolean,attribute:"trigger-submit"})],Xe.prototype,"triggerSubmit",2),c([d({attribute:"on-text"})],Xe.prototype,"onText",2),c([d({attribute:"off-text"})],Xe.prototype,"offText",2),c([d()],Xe.prototype,"label",2),c([d()],Xe.prototype,"description",2),c([d({attribute:"label-position",reflect:!0})],Xe.prototype,"labelPosition",2),c([d({type:Boolean})],Xe.prototype,"inline",2);var hL=Xe;Xe.define("zn-toggle");var Th=_`@charset "UTF-8";:host([contained]) .selection-card{--selection-card-padding:var(--zn-selection-card-padding,var(--zn-spacing-large));--selection-card-gap:var(--zn-selection-card-gap,var(--zn-spacing-medium));--selection-card-image-width:var(--zn-selection-card-image-width,5rem);--selection-card-image-height:var(--zn-selection-card-image-height,5rem);--selection-card-control-offset:var(--zn-selection-card-control-offset,var(--zn-spacing-medium));--selection-card-control-gutter:calc(var(--selection-card-control-offset) + var(--toggle-size) + var(--selection-card-gap));align-items:center;align-content:center;gap:var(--selection-card-gap);padding:var(--selection-card-padding)}:host([contained]) .selection-card .selection-card__content{flex:1 1 auto;min-width:0;margin-inline-start:0;line-height:var(--zn-line-height-normal)}:host([contained]) .selection-card .selection-card__title{display:block;font-size:var(--zn-selection-card-title-font-size,var(--zn-font-size-large));font-weight:var(--zn-font-weight-semibold);line-height:var(--zn-line-height-dense)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--has-image{min-height:var(--zn-selection-card-min-height,9rem);flex-wrap:wrap}:host([contained]) .selection-card.selection-card--has-image .selection-card__content{flex-basis:var(--zn-selection-card-content-min-width,8rem)}:host([contained]) .selection-card .selection-card__image-container{flex:0 0 auto;display:flex;align-items:center;justify-content:center}:host([contained]) .selection-card .selection-card__image-container ::slotted(*){display:block;max-width:100%;max-height:var(--selection-card-image-height)}:host([contained]) .selection-card .selection-card__image{display:block;width:var(--selection-card-image-width);max-width:100%;height:var(--selection-card-image-height);-o-object-fit:contain;object-fit:contain}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--image-right .selection-card__image-container,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__image-container{order:2}:host([contained]) .selection-card.selection-card--image-right .selection-card__content,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__content{order:1}:host([contained]) .selection-card.selection-card--image-top,:host([contained]) .selection-card.selection-card--image-bottom{flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:center}:host([contained]) .selection-card.selection-card--image-top .selection-card__image-container,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__image-container{align-self:center}:host([contained]) .selection-card.selection-card--image-top .selection-card__content,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__content{flex:0 0 auto;text-align:center}:host([contained]) .selection-card.selection-card--image-top,:host([contained]) .selection-card.selection-card--image-bottom{}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-top-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-top-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-top-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-top-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-center-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-center-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-center-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-center-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-bottom-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-bottom-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-bottom-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-bottom-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--control-top-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-top-center{padding-block-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-top-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-center-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-center-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-center-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-center-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-bottom-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-bottom-center{padding-block-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-bottom-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--control-none .selection-card__control{display:none}:host([contained]) .selection-card.selection-card--control-none:has(input:focus-visible){outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}:host([contained]) [part~=base]{border-radius:var(--zn-selection-card-border-radius,var(--zn-border-radius))}:host([square]) [part~=base]{border-radius:0}`;var e2=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.form-control{display:flex;flex-direction:column;height:100%}.form-control .form-control__label{padding-bottom:var(--zn-spacing-small)}.checkbox{position:relative;display:inline-flex;align-items:flex-start;font-family:var(--zn-input-font-family),sans-serif;font-weight:var(--zn-input-font-weight);color:var(--zn-input-label-color);vertical-align:middle;cursor:pointer;height:100%;--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-icon-color:var(--zn-color-neutral-0);--checkbox-border-color:var(--zn-input-border-color);--checkbox-bg-color:var(--zn-input-background-color)}.checkbox.checkbox--default{--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-border-color:var(--zn-input-border-color)}.checkbox.checkbox--primary{--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-border-color:var(--zn-color-primary-600)}.checkbox.checkbox--secondary{--checkbox-color:var(--zn-color-neutral-600);--checkbox-color-hover:var(--zn-color-neutral-500);--checkbox-border-color:var(--zn-color-neutral-300);--checkbox-bg-color:var(--zn-color-neutral-50)}.checkbox.checkbox--info{--checkbox-color:var(--zn-color-info-600);--checkbox-color-hover:var(--zn-color-info-500);--checkbox-border-color:var(--zn-color-info-600)}.checkbox.checkbox--success{--checkbox-color:var(--zn-color-success-600);--checkbox-color-hover:var(--zn-color-success-500);--checkbox-border-color:var(--zn-color-success-600)}.checkbox.checkbox--warning{--checkbox-color:var(--zn-color-warning-600);--checkbox-color-hover:var(--zn-color-warning-500);--checkbox-border-color:var(--zn-color-warning-600)}.checkbox.checkbox--error{--checkbox-color:var(--zn-color-danger-600);--checkbox-color-hover:var(--zn-color-danger-500);--checkbox-border-color:var(--zn-color-danger-600)}.checkbox.checkbox--transparent{--checkbox-bg-color:transparent;--checkbox-border-color:transparent}.checkbox--small{--toggle-size:var(--zn-toggle-size-small);font-size:var(--zn-input-font-size-small)}.checkbox--small .checkbox__description{font-size:var(--zn-font-size-x-small)}.checkbox--medium{--toggle-size:var(--zn-toggle-size-medium);font-size:var(--zn-input-font-size-medium)}.checkbox--medium .checkbox__description,.checkbox--large .checkbox__description{font-size:var(--zn-input-font-size-small)}.checkbox--large{--toggle-size:var(--zn-toggle-size-large);font-size:var(--zn-input-font-size-large)}.checkbox__control{flex:0 0 auto;position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--toggle-size);height:var(--toggle-size);border:solid var(--zn-input-border-width) var(--checkbox-border-color);background-color:var(--checkbox-bg-color);border-radius:var(--zn-border-radius-small);color:var(--checkbox-icon-color);transition:var(--zn-transition-fast) border-color,var(--zn-transition-fast) background-color,var(--zn-transition-fast) color,var(--zn-transition-fast) box-shadow}.checkbox__input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.checkbox__indeterminate-icon{--icon-size:var(--toggle-size);--icon-color:var(--checkbox-icon-color);display:inline-flex;width:var(--toggle-size);height:var(--toggle-size)}.svg-icon{height:max(16px,70%);--icon-color:var(--checkbox-icon-color)}.svg-icon .checkbox__checked-icon{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset 0.4s cubic-bezier(0.4,0,0.2,1)}.checkbox--indeterminate .svg-icon{color:transparent}.checkbox--checked .svg-icon{color:var(--checkbox-icon-color)}.checkbox--checked .checkbox__checked-icon{stroke-dashoffset:0}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--checkbox-color-hover,var(--zn-input-border-color-hover));background-color:var(--zn-input-background-color-hover)}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{border-color:var(--checkbox-color);outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.checkbox--checked .checkbox__control,.checkbox--indeterminate .checkbox__control{border-color:var(--checkbox-color);background-color:var(--checkbox-color);color:var(--checkbox-icon-color)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--checkbox-color-hover);background-color:var(--checkbox-color-hover)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.checkbox--disabled{opacity:0.5;cursor:not-allowed}:host-context([required]) .checkbox__label::after{display:none}:host([required]) .checkbox__label::after{display:none}:host(.checkbox-user-invalid) .checkbox__control{border-color:var(--zn-color-danger-600)}:host(.checkbox-user-invalid) .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{border-color:var(--zn-color-danger-600);outline:var(--zn-focus-ring-style) var(--zn-focus-ring-width) var(--zn-error-focus-ring-color);outline-offset:var(--zn-focus-ring-offset)}:host(.groupedCheckbox){margin-top:var(--zn-spacing-medium)}:host(.groupedCheckbox[horizontal]),:host(.groupedCheckbox[contained]){margin-top:var(--zn-spacing-small)}:host(.groupedCheckbox[horizontal][contained]){margin-top:0;height:100%}.checkbox__label{display:inline-block;color:var(--zn-input-label-color);line-height:var(--toggle-size);margin-inline-start:0.75em;-moz-user-select:none;user-select:none;-webkit-user-select:none}.checkbox--no-border{border:none !important;outline:none !important;border-radius:0 !important}.checkbox--contained{padding:1.375rem var(--zn-spacing-large) 1.375rem var(--zn-spacing-medium);border:1px solid var(--zn-color-gray-400);border-radius:var(--zn-border-radius);width:100%;height:100%}:not(.checkbox--disabled).checkbox--contained:hover,:not(.checkbox--disabled).checkbox--contained.checkbox--checked:hover{background-color:var(--zn-color-purple-50);transition:var(--zn-transition-medium) all}.checkbox--contained.checkbox--checked .checkbox__label{color:var(--zn-color-purple-600);font-weight:var(--zn-font-weight-semibold)}.checkbox--contained.checkbox--checked .checkbox__description{color:var(--zn-color-gray-900);font-weight:var(--zn-font-weight-normal)}.checkbox--contained.checkbox--checked{background-color:var(--zn-color-purple-100);border:1px solid var(--zn-color-purple-600);outline:1px solid var(--zn-color-purple-600);transition:var(--zn-transition-medium) all}:host([slot=prefix]){height:100%;aspect-ratio:1}:host([slot=prefix]) .checkbox__control{height:100%;width:100%;border:unset;box-shadow:unset;background-color:var(--zn-color-purple-50)}:host([slot=prefix]) .checkbox--primary .checkbox__control,:host([slot=prefix]) .checkbox--success .checkbox__control,:host([slot=prefix]) .checkbox--warning .checkbox__control,:host([slot=prefix]) .checkbox--error .checkbox__control,:host([slot=prefix]) .checkbox--info .checkbox__control{background-color:var(--checkbox-color);color:var(--zn-color-neutral-0);border-color:var(--checkbox-color)}:host([slot=prefix]) .checkbox--primary:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--success:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--warning:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--error:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--info:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{background-color:var(--checkbox-color-hover);border-color:var(--checkbox-color-hover);color:var(--zn-color-neutral-0)}:host([slot=prefix]) .checkbox--secondary .checkbox__control{background-color:var(--zn-color-neutral-200);color:var(--zn-color-neutral-700)}:host([slot=prefix]) .checkbox--secondary:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{background-color:var(--zn-color-neutral-300);border-color:var(--zn-color-neutral-300);color:var(--zn-color-neutral-800)}:host([slot=prefix]) .checkbox--checked .checkbox__control{background-color:var(--checkbox-color);color:var(--zn-color-neutral-0)}`;var ge=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{value:t=>t.checked?t.value||"on":t.uncheckedValue||void 0,defaultValue:t=>t.defaultChecked,setValue:(t,r)=>t.checked=r});this.hasSlotController=new Y(this,"[default]","description","image");this.hasFocus=!1;this.title="";this.name="";this.cardTitle="";this.size="medium";this.disabled=!1;this.checked=!1;this.indeterminate=!1;this.contained=!1;this.square=!1;this.src="";this.imageAlt="";this.imagePosition="left";this.controlPosition="start";this.borderless=!1;this.horizontal=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.submitOnClick=!1;this.description="";this.checkedIcon="";this.uncheckedIcon="";this.color="default"}get validity(){return this.input?.validity}get isChecked(){return this.checked}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){if(this.disabled)return;this.checked=!this.checked,this.indeterminate=!1,this.emit("zn-change");let t=this.getForm();this.submitOnClick&&t&&t.requestSubmit()}handleBlur(){this.hasFocus=!1,this.emit("zn-blur")}handleInput(){this.emit("zn-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleFocus(){this.hasFocus=!0,this.emit("zn-focus")}handleSelectedContentClick(t){t.preventDefault()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("description"),r=this.description?!0:t,n=this.contained&&(!!this.src||this.hasSlotController.test("image")),a=this.hasSlotController.test("[default]"),s=this.contained&&(n||!!this.cardTitle||this.controlPosition!=="start"),l=this.hasSlotController.test("label"),p=this.hasSlotController.test("label-tooltip"),h=this.label||l,m=this.checked||this.indeterminate?this.checkedColor||this.color:this.uncheckedColor||this.color;return u`
|
|
3423
|
+
</div>`}};Xe.styles=[z(Ee),z(Z_)],c([F('input[type="checkbox"]')],Xe.prototype,"input",2),c([I()],Xe.prototype,"hasFocus",2),c([d()],Xe.prototype,"title",2),c([d()],Xe.prototype,"name",2),c([d()],Xe.prototype,"value",2),c([d({attribute:"fallback"})],Xe.prototype,"fallbackValue",2),c([d({reflect:!0})],Xe.prototype,"size",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"checked",2),c([Ce("checked")],Xe.prototype,"defaultChecked",2),c([d({reflect:!0})],Xe.prototype,"form",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"required",2),c([d({attribute:"help-text"})],Xe.prototype,"helpText",2),c([d({type:Boolean,attribute:"trigger-submit"})],Xe.prototype,"triggerSubmit",2),c([d({attribute:"on-text"})],Xe.prototype,"onText",2),c([d({attribute:"off-text"})],Xe.prototype,"offText",2),c([d()],Xe.prototype,"label",2),c([d()],Xe.prototype,"description",2),c([d({attribute:"label-position",reflect:!0})],Xe.prototype,"labelPosition",2),c([d({type:Boolean})],Xe.prototype,"inline",2);var hL=Xe;Xe.define("zn-toggle");var Th=_`@charset "UTF-8";:host([contained]) .selection-card{--selection-card-padding:var(--zn-selection-card-padding,var(--zn-spacing-large));--selection-card-gap:var(--zn-selection-card-gap,var(--zn-spacing-medium));--selection-card-image-width:var(--zn-selection-card-image-width,5rem);--selection-card-image-height:var(--zn-selection-card-image-height,5rem);--selection-card-control-offset:var(--zn-selection-card-control-offset,var(--zn-spacing-medium));--selection-card-control-gutter:calc(var(--selection-card-control-offset) + var(--toggle-size) + var(--selection-card-gap));align-items:center;align-content:center;gap:var(--selection-card-gap);padding:var(--selection-card-padding)}:host([contained]) .selection-card .selection-card__content{flex:1 1 auto;min-width:0;margin-inline-start:0;line-height:var(--zn-line-height-normal)}:host([contained]) .selection-card .selection-card__title{display:block;font-size:var(--zn-selection-card-title-font-size,var(--zn-font-size-large));font-weight:var(--zn-font-weight-semibold);line-height:var(--zn-line-height-dense)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--has-image{min-height:var(--zn-selection-card-min-height,9rem);flex-wrap:wrap}:host([contained]) .selection-card.selection-card--has-image .selection-card__content{flex-basis:var(--zn-selection-card-content-min-width,8rem)}:host([contained]) .selection-card .selection-card__image-container{flex:0 0 auto;display:flex;align-items:center;justify-content:center}:host([contained]) .selection-card .selection-card__image-container ::slotted(*){display:block;max-width:100%;max-height:var(--selection-card-image-height)}:host([contained]) .selection-card .selection-card__image{display:block;width:var(--selection-card-image-width);max-width:100%;height:var(--selection-card-image-height);-o-object-fit:contain;object-fit:contain}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--image-right .selection-card__image-container,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__image-container{order:2}:host([contained]) .selection-card.selection-card--image-right .selection-card__content,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__content{order:1}:host([contained]) .selection-card.selection-card--image-top,:host([contained]) .selection-card.selection-card--image-bottom{flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start}:host([contained]) .selection-card.selection-card--image-top .selection-card__image-container,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__image-container{align-self:center}:host([contained]) .selection-card.selection-card--image-top .selection-card__content,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__content{flex:0 0 auto;text-align:center}:host([contained]) .selection-card.selection-card--image-top,:host([contained]) .selection-card.selection-card--image-bottom{}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-top-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-top-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-top-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-top-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-center-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-center-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-center-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-center-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-bottom-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-bottom-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-bottom-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-bottom-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-bottom{justify-content:flex-end}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--control-top-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-top-center{padding-block-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-top-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-center-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-center-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-center-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-center-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-bottom-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-bottom-center{padding-block-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-bottom-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--control-none .selection-card__control{display:none}:host([contained]) .selection-card.selection-card--control-none:has(input:focus-visible){outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}:host([contained]) [part~=base]{border-radius:var(--zn-selection-card-border-radius,var(--zn-border-radius))}:host([square]) [part~=base]{border-radius:0}`;var e2=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.form-control{display:flex;flex-direction:column;height:100%}.form-control .form-control__label{padding-bottom:var(--zn-spacing-small)}.checkbox{position:relative;display:inline-flex;align-items:flex-start;font-family:var(--zn-input-font-family),sans-serif;font-weight:var(--zn-input-font-weight);color:var(--zn-input-label-color);vertical-align:middle;cursor:pointer;height:100%;--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-icon-color:var(--zn-color-neutral-0);--checkbox-border-color:var(--zn-input-border-color);--checkbox-bg-color:var(--zn-input-background-color)}.checkbox.checkbox--default{--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-border-color:var(--zn-input-border-color)}.checkbox.checkbox--primary{--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-border-color:var(--zn-color-primary-600)}.checkbox.checkbox--secondary{--checkbox-color:var(--zn-color-neutral-600);--checkbox-color-hover:var(--zn-color-neutral-500);--checkbox-border-color:var(--zn-color-neutral-300);--checkbox-bg-color:var(--zn-color-neutral-50)}.checkbox.checkbox--info{--checkbox-color:var(--zn-color-info-600);--checkbox-color-hover:var(--zn-color-info-500);--checkbox-border-color:var(--zn-color-info-600)}.checkbox.checkbox--success{--checkbox-color:var(--zn-color-success-600);--checkbox-color-hover:var(--zn-color-success-500);--checkbox-border-color:var(--zn-color-success-600)}.checkbox.checkbox--warning{--checkbox-color:var(--zn-color-warning-600);--checkbox-color-hover:var(--zn-color-warning-500);--checkbox-border-color:var(--zn-color-warning-600)}.checkbox.checkbox--error{--checkbox-color:var(--zn-color-danger-600);--checkbox-color-hover:var(--zn-color-danger-500);--checkbox-border-color:var(--zn-color-danger-600)}.checkbox.checkbox--transparent{--checkbox-bg-color:transparent;--checkbox-border-color:transparent}.checkbox--small{--toggle-size:var(--zn-toggle-size-small);font-size:var(--zn-input-font-size-small)}.checkbox--small .checkbox__description{font-size:var(--zn-font-size-x-small)}.checkbox--medium{--toggle-size:var(--zn-toggle-size-medium);font-size:var(--zn-input-font-size-medium)}.checkbox--medium .checkbox__description,.checkbox--large .checkbox__description{font-size:var(--zn-input-font-size-small)}.checkbox--large{--toggle-size:var(--zn-toggle-size-large);font-size:var(--zn-input-font-size-large)}.checkbox__control{flex:0 0 auto;position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--toggle-size);height:var(--toggle-size);border:solid var(--zn-input-border-width) var(--checkbox-border-color);background-color:var(--checkbox-bg-color);border-radius:var(--zn-border-radius-small);color:var(--checkbox-icon-color);transition:var(--zn-transition-fast) border-color,var(--zn-transition-fast) background-color,var(--zn-transition-fast) color,var(--zn-transition-fast) box-shadow}.checkbox__input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.checkbox__indeterminate-icon{--icon-size:var(--toggle-size);--icon-color:var(--checkbox-icon-color);display:inline-flex;width:var(--toggle-size);height:var(--toggle-size)}.svg-icon{height:max(16px,70%);--icon-color:var(--checkbox-icon-color)}.svg-icon .checkbox__checked-icon{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset 0.4s cubic-bezier(0.4,0,0.2,1)}.checkbox--indeterminate .svg-icon{color:transparent}.checkbox--checked .svg-icon{color:var(--checkbox-icon-color)}.checkbox--checked .checkbox__checked-icon{stroke-dashoffset:0}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--checkbox-color-hover,var(--zn-input-border-color-hover));background-color:var(--zn-input-background-color-hover)}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{border-color:var(--checkbox-color);outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.checkbox--checked .checkbox__control,.checkbox--indeterminate .checkbox__control{border-color:var(--checkbox-color);background-color:var(--checkbox-color);color:var(--checkbox-icon-color)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--checkbox-color-hover);background-color:var(--checkbox-color-hover)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.checkbox--disabled{opacity:0.5;cursor:not-allowed}:host-context([required]) .checkbox__label::after{display:none}:host([required]) .checkbox__label::after{display:none}:host(.checkbox-user-invalid) .checkbox__control{border-color:var(--zn-color-danger-600)}:host(.checkbox-user-invalid) .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{border-color:var(--zn-color-danger-600);outline:var(--zn-focus-ring-style) var(--zn-focus-ring-width) var(--zn-error-focus-ring-color);outline-offset:var(--zn-focus-ring-offset)}:host(.groupedCheckbox){margin-top:var(--zn-spacing-medium)}:host(.groupedCheckbox[horizontal]),:host(.groupedCheckbox[contained]){margin-top:var(--zn-spacing-small)}:host(.groupedCheckbox[horizontal][contained]){margin-top:0;height:100%}.checkbox__label{display:inline-block;color:var(--zn-input-label-color);line-height:var(--toggle-size);margin-inline-start:0.75em;-moz-user-select:none;user-select:none;-webkit-user-select:none}.checkbox--no-border{border:none !important;outline:none !important;border-radius:0 !important}.checkbox--contained{padding:1.375rem var(--zn-spacing-large) 1.375rem var(--zn-spacing-medium);border:1px solid var(--zn-color-gray-400);border-radius:var(--zn-border-radius);width:100%;height:100%}:not(.checkbox--disabled).checkbox--contained:hover,:not(.checkbox--disabled).checkbox--contained.checkbox--checked:hover{background-color:var(--zn-color-purple-50);transition:var(--zn-transition-medium) all}.checkbox--contained.checkbox--checked .checkbox__label{color:var(--zn-color-purple-600);font-weight:var(--zn-font-weight-semibold)}.checkbox--contained.checkbox--checked .checkbox__description{color:var(--zn-color-gray-900);font-weight:var(--zn-font-weight-normal)}.checkbox--contained.checkbox--checked{background-color:var(--zn-color-purple-100);border:1px solid var(--zn-color-purple-600);outline:1px solid var(--zn-color-purple-600);transition:var(--zn-transition-medium) all}:host([slot=prefix]){height:100%;aspect-ratio:1}:host([slot=prefix]) .checkbox__control{height:100%;width:100%;border:unset;box-shadow:unset;background-color:var(--zn-color-purple-50)}:host([slot=prefix]) .checkbox--primary .checkbox__control,:host([slot=prefix]) .checkbox--success .checkbox__control,:host([slot=prefix]) .checkbox--warning .checkbox__control,:host([slot=prefix]) .checkbox--error .checkbox__control,:host([slot=prefix]) .checkbox--info .checkbox__control{background-color:var(--checkbox-color);color:var(--zn-color-neutral-0);border-color:var(--checkbox-color)}:host([slot=prefix]) .checkbox--primary:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--success:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--warning:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--error:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--info:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{background-color:var(--checkbox-color-hover);border-color:var(--checkbox-color-hover);color:var(--zn-color-neutral-0)}:host([slot=prefix]) .checkbox--secondary .checkbox__control{background-color:var(--zn-color-neutral-200);color:var(--zn-color-neutral-700)}:host([slot=prefix]) .checkbox--secondary:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{background-color:var(--zn-color-neutral-300);border-color:var(--zn-color-neutral-300);color:var(--zn-color-neutral-800)}:host([slot=prefix]) .checkbox--checked .checkbox__control{background-color:var(--checkbox-color);color:var(--zn-color-neutral-0)}`;var ge=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{value:t=>t.checked?t.value||"on":t.uncheckedValue||void 0,defaultValue:t=>t.defaultChecked,setValue:(t,r)=>t.checked=r});this.hasSlotController=new Y(this,"[default]","description","image");this.hasFocus=!1;this.title="";this.name="";this.cardTitle="";this.size="medium";this.disabled=!1;this.checked=!1;this.indeterminate=!1;this.contained=!1;this.square=!1;this.src="";this.imageAlt="";this.imagePosition="left";this.controlPosition="start";this.borderless=!1;this.horizontal=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.submitOnClick=!1;this.description="";this.checkedIcon="";this.uncheckedIcon="";this.color="default"}get validity(){return this.input?.validity}get isChecked(){return this.checked}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){if(this.disabled)return;this.checked=!this.checked,this.indeterminate=!1,this.emit("zn-change");let t=this.getForm();this.submitOnClick&&t&&t.requestSubmit()}handleBlur(){this.hasFocus=!1,this.emit("zn-blur")}handleInput(){this.emit("zn-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleFocus(){this.hasFocus=!0,this.emit("zn-focus")}handleSelectedContentClick(t){t.preventDefault()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("description"),r=this.description?!0:t,n=this.contained&&(!!this.src||this.hasSlotController.test("image")),a=this.hasSlotController.test("[default]"),s=this.contained&&(n||!!this.cardTitle||this.controlPosition!=="start"),l=this.hasSlotController.test("label"),p=this.hasSlotController.test("label-tooltip"),h=this.label||l,m=this.checked||this.indeterminate?this.checkedColor||this.color:this.uncheckedColor||this.color;return u`
|
|
3423
3424
|
<div
|
|
3424
3425
|
class=${M({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--checkbox-contained-wrapper":this.contained,"form-control--has-label":h})}>
|
|
3425
3426
|
|
|
@@ -3753,7 +3754,7 @@ ${Na(this.code(i,t))}
|
|
|
3753
3754
|
<slot name="help-text">${this.helpText}</slot>
|
|
3754
3755
|
</div>
|
|
3755
3756
|
</div>
|
|
3756
|
-
`}};_t.styles=[z(Ee),z(a2)],c([F(".rating")],_t.prototype,"rating",2),c([F(".rating__symbols")],_t.prototype,"symbols",2),c([I()],_t.prototype,"hoverValue",2),c([I()],_t.prototype,"isHovering",2),c([d()],_t.prototype,"label",2),c([d({attribute:"help-text"})],_t.prototype,"helpText",2),c([d()],_t.prototype,"name",2),c([d({type:Number})],_t.prototype,"value",2),c([Ce()],_t.prototype,"defaultValue",2),c([d({type:Number})],_t.prototype,"max",2),c([d({type:Number})],_t.prototype,"precision",2),c([d({type:Boolean})],_t.prototype,"readonly",2),c([d({type:Boolean})],_t.prototype,"disabled",2),c([d({type:Boolean})],_t.prototype,"preview",2),c([d({})],_t.prototype,"size",2),c([d()],_t.prototype,"getSymbol",2);var vL=_t;_t.define("zn-rating");var s2=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;line-height:var(--zn-line-height-dense)}:host([horizontal]) .form-control-input{display:flex;flex-wrap:wrap;-moz-column-gap:var(--zn-spacing-2x-large);column-gap:var(--zn-spacing-2x-large);row-gap:var(--zn-spacing-small)}:host([contained]) .form-control--has-label .form-control-input{margin-top:var(--zn-spacing-medium)}:host([horizontal][contained]) .form-control-input{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--zn-radio-group-column-width,152px)),1fr));align-items:stretch;gap:var(--zn-spacing-small)}::slotted(zn-radio){margin-top:var(--zn-spacing-medium)}::slotted(zn-radio[horizontal]),::slotted(zn-radio[contained]){margin-top:var(--zn-spacing-small)}::slotted(zn-radio[horizontal][contained]){margin-top:0;height:100%}:host([horizontal][contained][wrap]) .form-control-input{display:flex;flex-wrap:wrap;align-items:stretch;gap:var(--zn-base-gap)}:host([wrap]) ::slotted(zn-radio[horizontal][contained]){flex:1 1 var(--zn-radio-group-column-width,152px);min-width:0;height:auto}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}`;var
|
|
3757
|
+
`}};_t.styles=[z(Ee),z(a2)],c([F(".rating")],_t.prototype,"rating",2),c([F(".rating__symbols")],_t.prototype,"symbols",2),c([I()],_t.prototype,"hoverValue",2),c([I()],_t.prototype,"isHovering",2),c([d()],_t.prototype,"label",2),c([d({attribute:"help-text"})],_t.prototype,"helpText",2),c([d()],_t.prototype,"name",2),c([d({type:Number})],_t.prototype,"value",2),c([Ce()],_t.prototype,"defaultValue",2),c([d({type:Number})],_t.prototype,"max",2),c([d({type:Number})],_t.prototype,"precision",2),c([d({type:Boolean})],_t.prototype,"readonly",2),c([d({type:Boolean})],_t.prototype,"disabled",2),c([d({type:Boolean})],_t.prototype,"preview",2),c([d({})],_t.prototype,"size",2),c([d()],_t.prototype,"getSymbol",2);var vL=_t;_t.define("zn-rating");var s2=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;line-height:var(--zn-line-height-dense)}:host([horizontal]) .form-control-input{display:flex;flex-wrap:wrap;-moz-column-gap:var(--zn-spacing-2x-large);column-gap:var(--zn-spacing-2x-large);row-gap:var(--zn-spacing-small)}:host([contained]) .form-control--has-label .form-control-input{margin-top:var(--zn-spacing-medium)}:host([horizontal][contained]) .form-control-input{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--zn-radio-group-column-width,152px)),1fr));align-items:stretch;gap:var(--zn-spacing-small)}::slotted(zn-radio){margin-top:var(--zn-spacing-medium)}::slotted(zn-radio[horizontal]),::slotted(zn-radio[contained]){margin-top:var(--zn-spacing-small)}::slotted(zn-radio[horizontal][contained]){margin-top:0;height:100%}:host([horizontal][contained][wrap]) .form-control-input{display:flex;flex-wrap:wrap;align-items:stretch;gap:var(--zn-base-gap)}:host([wrap]) ::slotted(zn-radio[horizontal][contained]){flex:1 1 var(--zn-radio-group-column-width,152px);min-width:0;height:auto}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}`;var pt=class extends k{constructor(){super(...arguments);this.formControlController=new re(this);this.hasSlotController=new Y(this,"help-text","label");this.customValidityMessage="";this.errorMessage="";this.defaultValue="";this.label="";this.labelTooltip="";this.helpText="";this.name="";this.value="";this.size="medium";this.horizontal=!1;this.contained=!1;this.square=!1;this.wrap=!1;this.form="";this.required=!1}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?gd:t?es:Je}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(t){super.firstUpdated(t),this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("zn-radio")]}handleRadioClick(t){let r=t.target.closest("zn-radio"),n=this.getAllRadios();!r||r.disabled||(this.value=r.value,n.forEach(a=>a.checked=a===r))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let r=this.getAllRadios().filter(l=>!l.disabled),n=r.find(l=>l.checked)??r[0],a=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,s=r.indexOf(n)+a;s<0&&(s=r.length-1),s>r.length-1&&(s=0),this.getAllRadios().forEach(l=>{l.checked=!1}),this.value=r[s].value,r[s].checked=!0,r[s].shadowRoot.querySelector("button").focus(),t.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}async syncRadioElements(){let t=this.getAllRadios();await Promise.all(t.map(async r=>{await r.updateComplete,r.checked=r.value===this.value,r.size=this.size,r.horizontal=this.horizontal,r.contained=this.contained,this.square&&(r.square=!0)})),t.length>0&&!t.some(r=>r.checked)&&t[0].setAttribute("tabindex","0")}syncRadios(){if(customElements.get("zn-radio")){this.syncRadioElements();return}customElements.get("zn-radio")?this.syncRadioElements():customElements.whenDefined("zn-radio").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(r=>r.checked=r.value===this.value),this.formControlController.setValidity(this.validity?.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let t=this.required&&!this.value,r=this.customValidityMessage!=="";return t||r?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity?.valid;return this.errorMessage=this.customValidityMessage||t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.errorMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){let r=this.getAllRadios(),n=r.find(l=>l.checked),a=r.find(l=>!l.disabled),s=n||a;s&&s.focus(t)}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("label-tooltip"),n=this.hasSlotController.test("help-text"),a=this.label?!0:!!t,s=this.labelTooltip?!0:r,l=this.helpText?!0:!!n,p=u`
|
|
3757
3758
|
<slot @slotchange=${this.syncRadios} @click=${this.handleRadioClick} @keydown=${this.handleKeyDown}></slot>
|
|
3758
3759
|
`;return u`
|
|
3759
3760
|
<fieldset
|
|
@@ -3803,7 +3804,7 @@ ${Na(this.code(i,t))}
|
|
|
3803
3804
|
<slot name="help-text">${this.helpText}</slot>
|
|
3804
3805
|
</div>
|
|
3805
3806
|
</fieldset>
|
|
3806
|
-
`}};dt.styles=[z(Ee),z(s2)],c([F("slot:not([name])")],dt.prototype,"defaultSlot",2),c([F(".radio-group__validation-input")],dt.prototype,"validationInput",2),c([I()],dt.prototype,"errorMessage",2),c([I()],dt.prototype,"defaultValue",2),c([d()],dt.prototype,"label",2),c([d({attribute:"label-tooltip"})],dt.prototype,"labelTooltip",2),c([d({attribute:"help-text"})],dt.prototype,"helpText",2),c([d()],dt.prototype,"name",2),c([d({reflect:!0})],dt.prototype,"value",2),c([d({reflect:!0})],dt.prototype,"size",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"horizontal",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"contained",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"square",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"wrap",2),c([d({reflect:!0})],dt.prototype,"form",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"required",2),c([K("size",{waitUntilFirstUpdate:!0})],dt.prototype,"handleSizeChange",1),c([K("value")],dt.prototype,"handleValueChange",1);var yL=dt;dt.define("zn-radio-group");var l2=(o,i,t)=>{let r=new Map;for(let n=i;n<=t;n++)r.set(o[n],n);return r},Jo=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,i,t){let r;t===void 0?t=i:i!==void 0&&(r=i);let n=[],a=[],s=0;for(let l of o)n[s]=r?r(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(o,i,t){return this.dt(o,i,t).values}update(o,[i,t,r]){let n=Zb(o),{values:a,keys:s}=this.dt(i,t,r);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??(this.ut=[]),p=[],h,m,f=0,b=n.length-1,g=0,v=a.length-1;for(;f<=b&&g<=v;)if(n[f]===null)f++;else if(n[b]===null)b--;else if(l[f]===s[g])p[g]=bo(n[f],a[g]),f++,g++;else if(l[b]===s[v])p[v]=bo(n[b],a[v]),b--,v--;else if(l[f]===s[v])p[v]=bo(n[f],a[v]),ns(o,p[v+1],n[f]),f++,v--;else if(l[b]===s[g])p[g]=bo(n[b],a[g]),ns(o,n[f],n[b]),b--,g++;else if(h===void 0&&(h=l2(s,g,v),m=l2(l,f,b)),h.has(l[f]))if(h.has(l[b])){let y=m.get(s[g]),C=y!==void 0?n[y]:null;if(C===null){let T=ns(o,n[f]);bo(T,a[g]),p[g]=T}else p[g]=bo(C,a[g]),ns(o,n[f],C),n[y]=null;g++}else kd(n[b]),b--;else kd(n[f]),f++;for(;g<=v;){let y=ns(o,p[v+1]);bo(y,a[g]),p[g++]=y}for(;f<=b;){let y=n[f++];y!==null&&kd(y)}return this.ut=s,os(o,p),vt}});var c2=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.input__control{border:0;clip-path:inset(50%);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.form-control--droparea .input__control{left:50%}.form-control-input{position:relative}.button__wrapper{align-items:center;display:flex;gap:var(--zn-input-spacing-medium)}.form-control--small .button__wrapper{gap:var(--zn-input-spacing-small)}:host([size=large]) .button__wrapper{gap:var(--zn-input-spacing-large)}.input__value{display:inline-flex;justify-content:center;align-items:center;gap:var(--zn-spacing-small);color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium)}.input__value.input__value--hidden{display:none}.input__delete{cursor:pointer;color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium)}.input__delete:hover{color:var(--zn-color-primary-600)}.input__value--placeholder{color:var(--zn-input-help-text-color)}.form-control--small .input__value{font-size:var(--zn-input-label-font-size-small)}.form-control--large .input__value{font-size:var(--zn-input-label-font-size-large)}.form-control--user-dragging:not([disabled]) .button::part(base){background:none;border-color:var(--zn-color-primary-900);color:var(--zn-color-primary-900)}.droparea{--highlight-color:var(--zn-color-primary-600);position:relative;border:1px solid var(--zn-input-border-color);border-radius:var(--zn-border-radius);font:var(--zn-font-size-medium);min-height:180px;transition:var(--zn-transition-medium) background,var(--zn-transition-medium) border-color}.droparea:focus-visible{border-color:var(--zn-color-primary-600);outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}:host([disabled]) .droparea{--highlight-color:var(--zn-color-neutral-600)}:host([disabled]) .input__value{display:none}.droparea__background{align-items:center;display:flex;justify-content:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-large) var(--zn-spacing-medium);width:100%;height:100%;min-height:inherit;box-sizing:border-box}.droparea__clear{position:absolute;top:var(--zn-spacing-small);right:var(--zn-spacing-small);z-index:1}.droparea__upload{text-transform:uppercase;letter-spacing:0.02em}.droparea--has-preview .droparea__background{--zn-droparea-checker-size:12px;--zn-droparea-checker-a:var(--zn-color-neutral-50);--zn-droparea-checker-b:var(--zn-color-neutral-100);background-color:var(--zn-droparea-checker-a);background-image:linear-gradient(45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(-45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--zn-droparea-checker-b) 75%),linear-gradient(-45deg,transparent 75%,var(--zn-droparea-checker-b) 75%);background-size:var(--zn-droparea-checker-size) var(--zn-droparea-checker-size);background-position:0 0,0 calc(var(--zn-droparea-checker-size) / 2),calc(var(--zn-droparea-checker-size) / 2) calc(var(--zn-droparea-checker-size) / -2),calc(var(--zn-droparea-checker-size) / -2) 0;border-radius:calc(var(--zn-border-radius) - 1px)}.droparea__preview{display:block;position:relative;z-index:1;width:100%;height:150px;max-width:100%;-o-object-fit:contain;object-fit:contain;overflow:hidden;overflow-wrap:anywhere;word-break:break-word;text-align:center;font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-input-color)}.droparea__filename{color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium);font-weight:var(--zn-font-weight-medium);word-break:break-all;text-align:center;padding:0 var(--zn-spacing-3x-large)}.file-wrapper{display:flex;flex-direction:row;flex-wrap:wrap}.form-control--small .droparea{font:var(--zn-font-size-small);min-height:140px}.form-control--small .droparea__preview{height:110px}.form-control--large .droparea{font:var(--zn-font-size-large);min-height:220px}.form-control--large .droparea__preview{height:190px}:host([disabled]) .droparea,:host([disabled]) .input__value{cursor:not-allowed;opacity:0.5}:host(:not([disabled])) .form-control--user-dragging .droparea{background:var(--zn-color-primary-50);border-color:var(--zn-color-primary-600);cursor:pointer}:host(:not([disabled])) .droparea:not(:focus-visible):hover{--highlight-color:var(--zn-color-primary-800);border-color:var(--zn-color-primary-700);cursor:pointer}:host(:not([disabled])) .droparea:hover .droparea__upload::part(base),:host(:not([disabled])) .droparea__upload:hover::part(base),:host(:not([disabled])) .form-control--user-dragging .droparea__upload::part(base){background:var(--zn-color-primary-50);border-color:var(--zn-color-primary-700);color:var(--zn-color-primary-800)}.droparea__upload::part(icon){pointer-events:none}:host([data-user-invalid]:not([disabled])) .droparea{border-color:var(--zn-color-error)}.clear-confirm__text{margin:0;color:var(--zn-input-color)}.form-control__link{display:inline-block;margin-top:var(--zn-spacing-x-small);font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-color-primary-700);word-break:break-all;text-decoration:none;max-width:100%}.form-control__link:hover{color:var(--zn-color-primary-800);text-decoration:underline}`;var be=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-change"],value:t=>t.uploadUrl?t.src?t.src:t.clearedByUser?"":void 0:t.files?.length?t.files:t.clearedByUser?"":void 0});this.clearedByUser=!1;this.hasSlotController=new Y(this,"help-text","label");this.localize=new Ft(this);this.userIsDragging=!1;this.fileObjectUrl=null;this.name="";this.defaultValue="";this.size="medium";this.label="";this.clearable=!1;this.helpText="";this.disabled=!1;this.droparea=!1;this.accept="";this.multiple=!1;this.webkitdirectory=!1;this.form="";this.required=!1;this.hideValue=!1;this.src="";this.triggerSubmit=!1;this.showLink=!1;this.uploadUrl="";this.uploading=!1;this.handleInvalid=t=>{this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)};this.handleDragOver=t=>{t.preventDefault(),t.stopPropagation(),this.userIsDragging=!0};this.handleDragLeave=t=>{t.preventDefault(),t.stopPropagation(),this.userIsDragging=!1};this.handleDrop=async t=>{if(t.preventDefault(),t.stopPropagation(),!t.dataTransfer)return;let r=await this.handleTransferItems(t.dataTransfer.items);if(this.userIsDragging=!1,!r)return;if(!this.multiple&&!this.webkitdirectory&&r.length>1){this.emit("zn-error");return}if(this.hasSlotController.test("trigger"))this.handleFiles(r);else{let a=this.inputChosen,s=this.dropareaIcon;if(this.droparea&&s){let l=Sn(s,"file.iconDrop",{dir:this.localize.dir()});yi(s,l.keyframes,l.options)}if(a){let l=Sn(a,"file.text.disappear",{dir:this.localize.dir()});await yi(a,l.keyframes,l.options)}if(this.handleFiles(r),a){let l=Sn(a,"file.text.appear",{dir:this.localize.dir()});await yi(a,l.keyframes,l.options)}}this.input.dispatchEvent(new Event("change"))};this.removeFile=t=>{t.preventDefault(),t.stopPropagation();let r=Array.from(this.files||[]),n=t.target.closest("[data-file-name]")?.getAttribute("data-file-name"),a=r.findIndex(l=>l.name===n);a!==-1&&r.splice(a,1);let s=new DataTransfer;r.forEach(l=>s.items.add(l)),this.files=s.files,s.files.length||(this.clearedByUser=!0),this.input.dispatchEvent(new Event("change"))};this.handleClearClick=t=>{t.preventDefault(),t.stopPropagation(),this.clearConfirmDialog?.show()};this.confirmClear=()=>{let t=(this.files?.length??0)>0;this.input.value="",this.files=null,t||(this.src=""),this.clearedByUser=!0,this.clearConfirmDialog?.hide(),this.input.dispatchEvent(new Event("change")),this.emit("zn-clear")}}set files(t){this.input&&(this.input.files=t,t?.length&&(this.clearedByUser=!1),this.updatePreview())}get files(){return this.input?.files}set value(t){if(this.uploadUrl){this.src=t??"";return}this.input&&(this.input.value=t)}get value(){return this.uploadUrl?this.src??"":this.input?.value}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){if(this.droparea){this.dropareaWrapper?.focus(t);return}this.button?.focus(t)}blur(){if(this.droparea){this.dropareaWrapper?.blur();return}this.button?.blur()}handleFiles(t){if(!t){this.value="";return}this.files=t}async handleTransferItems(t){if(!t)return this.value="",new Promise((p,h)=>{h(new Error("No proper items found"))});let n=Array.from(t).map(p=>p.webkitGetAsEntry()).map(p=>this.getFilesFromEntry(p)),s=(await Promise.all(n)).flat(),l=new DataTransfer;return Array.from(s).forEach(p=>l.items.add(p)),l.files}async getFilesFromEntry(t){return t?t.isFile?new Promise((r,n)=>{t.file(a=>r([a]),n)}):t.isDirectory?new Promise((r,n)=>{t.createReader().readEntries(s=>{Promise.all(s.map(l=>this.getFilesFromEntry(l))).then(l=>{r(l.flat())}).catch(n)})}):[]:[]}handleClick(t){t.preventDefault(),this.input.click()}handleChange(t){t.preventDefault(),t.stopPropagation(),this.updatePreview();let r=this.files?.[0];if(this.uploadUrl&&r){this.uploadFile(r);return}this.emit("zn-input"),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}async uploadFile(t){this.uploading=!0;try{let r=new FormData;r.append("file",t,t.name);let n=await fetch(this.uploadUrl,{method:"POST",body:r,credentials:"same-origin"});if(!n.ok)throw new Error(`upload failed with status ${n.status}`);let a=await n.json();if(!a.url)throw new Error("upload response missing url");this.src=a.url,this.input.value="",this.files=null,this.clearedByUser=!1,this.emit("zn-input"),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}catch(r){console.warn("<zn-file> upload failed",r),this.input.value="",this.files=null,this.emit("zn-error")}finally{this.uploading=!1}}handleFocus(){this.emit("zn-focus")}handleBlur(){this.emit("zn-blur")}clear(){this.input&&(this.input.value=""),this.files=null,this.src="",this.updatePreview(),this.formControlController.updateValidity()}updatePreview(){this.fileObjectUrl&&(URL.revokeObjectURL(this.fileObjectUrl),this.fileObjectUrl=null);let t=this.files?.[0];t&&t.type.startsWith("image/")&&(this.fileObjectUrl=URL.createObjectURL(t))}get previewSrc(){return this.fileObjectUrl??this.src??""}disconnectedCallback(){super.disconnectedCallback(),this.fileObjectUrl&&(URL.revokeObjectURL(this.fileObjectUrl),this.fileObjectUrl=null)}renderFileValueWithDelete(){let t=Array.from(this.files||[]),r=this.clearable,n=this.localize.term("numFilesSelected",0,this.webkitdirectory);return u`
|
|
3807
|
+
`}};pt.styles=[z(Ee),z(s2)],c([F("slot:not([name])")],pt.prototype,"defaultSlot",2),c([F(".radio-group__validation-input")],pt.prototype,"validationInput",2),c([I()],pt.prototype,"errorMessage",2),c([I()],pt.prototype,"defaultValue",2),c([d()],pt.prototype,"label",2),c([d({attribute:"label-tooltip"})],pt.prototype,"labelTooltip",2),c([d({attribute:"help-text"})],pt.prototype,"helpText",2),c([d()],pt.prototype,"name",2),c([d({reflect:!0})],pt.prototype,"value",2),c([d({reflect:!0})],pt.prototype,"size",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"horizontal",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"contained",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"square",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"wrap",2),c([d({reflect:!0})],pt.prototype,"form",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"required",2),c([K("size",{waitUntilFirstUpdate:!0})],pt.prototype,"handleSizeChange",1),c([K("value")],pt.prototype,"handleValueChange",1);var yL=pt;pt.define("zn-radio-group");var l2=(o,i,t)=>{let r=new Map;for(let n=i;n<=t;n++)r.set(o[n],n);return r},Jo=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,i,t){let r;t===void 0?t=i:i!==void 0&&(r=i);let n=[],a=[],s=0;for(let l of o)n[s]=r?r(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(o,i,t){return this.dt(o,i,t).values}update(o,[i,t,r]){let n=Zb(o),{values:a,keys:s}=this.dt(i,t,r);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??(this.ut=[]),p=[],h,m,f=0,b=n.length-1,g=0,v=a.length-1;for(;f<=b&&g<=v;)if(n[f]===null)f++;else if(n[b]===null)b--;else if(l[f]===s[g])p[g]=bo(n[f],a[g]),f++,g++;else if(l[b]===s[v])p[v]=bo(n[b],a[v]),b--,v--;else if(l[f]===s[v])p[v]=bo(n[f],a[v]),ns(o,p[v+1],n[f]),f++,v--;else if(l[b]===s[g])p[g]=bo(n[b],a[g]),ns(o,n[f],n[b]),b--,g++;else if(h===void 0&&(h=l2(s,g,v),m=l2(l,f,b)),h.has(l[f]))if(h.has(l[b])){let y=m.get(s[g]),C=y!==void 0?n[y]:null;if(C===null){let T=ns(o,n[f]);bo(T,a[g]),p[g]=T}else p[g]=bo(C,a[g]),ns(o,n[f],C),n[y]=null;g++}else kd(n[b]),b--;else kd(n[f]),f++;for(;g<=v;){let y=ns(o,p[v+1]);bo(y,a[g]),p[g++]=y}for(;f<=b;){let y=n[f++];y!==null&&kd(y)}return this.ut=s,os(o,p),vt}});var c2=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.input__control{border:0;clip-path:inset(50%);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.form-control--droparea .input__control{left:50%}.form-control-input{position:relative}.button__wrapper{align-items:center;display:flex;gap:var(--zn-input-spacing-medium)}.form-control--small .button__wrapper{gap:var(--zn-input-spacing-small)}:host([size=large]) .button__wrapper{gap:var(--zn-input-spacing-large)}.input__value{display:inline-flex;justify-content:center;align-items:center;gap:var(--zn-spacing-small);color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium)}.input__value.input__value--hidden{display:none}.input__delete{cursor:pointer;color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium)}.input__delete:hover{color:var(--zn-color-primary-600)}.input__value--placeholder{color:var(--zn-input-help-text-color)}.form-control--small .input__value{font-size:var(--zn-input-label-font-size-small)}.form-control--large .input__value{font-size:var(--zn-input-label-font-size-large)}.form-control--user-dragging:not([disabled]) .button::part(base){background:none;border-color:var(--zn-color-primary-900);color:var(--zn-color-primary-900)}.droparea{--highlight-color:var(--zn-color-primary-600);position:relative;border:1px solid var(--zn-input-border-color);border-radius:var(--zn-border-radius);font:var(--zn-font-size-medium);min-height:180px;transition:var(--zn-transition-medium) background,var(--zn-transition-medium) border-color}.droparea:focus-visible{border-color:var(--zn-color-primary-600);outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}:host([disabled]) .droparea{--highlight-color:var(--zn-color-neutral-600)}:host([disabled]) .input__value{display:none}.droparea__background{align-items:center;display:flex;justify-content:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-large) var(--zn-spacing-medium);width:100%;height:100%;min-height:inherit;box-sizing:border-box}.droparea__clear{position:absolute;top:var(--zn-spacing-small);right:var(--zn-spacing-small);z-index:1}.droparea__upload{text-transform:uppercase;letter-spacing:0.02em}.droparea--has-preview .droparea__background{--zn-droparea-checker-size:12px;--zn-droparea-checker-a:var(--zn-color-neutral-50);--zn-droparea-checker-b:var(--zn-color-neutral-100);background-color:var(--zn-droparea-checker-a);background-image:linear-gradient(45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(-45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--zn-droparea-checker-b) 75%),linear-gradient(-45deg,transparent 75%,var(--zn-droparea-checker-b) 75%);background-size:var(--zn-droparea-checker-size) var(--zn-droparea-checker-size);background-position:0 0,0 calc(var(--zn-droparea-checker-size) / 2),calc(var(--zn-droparea-checker-size) / 2) calc(var(--zn-droparea-checker-size) / -2),calc(var(--zn-droparea-checker-size) / -2) 0;border-radius:calc(var(--zn-border-radius) - 1px)}.droparea__preview{display:block;position:relative;z-index:1;width:100%;height:150px;max-width:100%;-o-object-fit:contain;object-fit:contain;overflow:hidden;overflow-wrap:anywhere;word-break:break-word;text-align:center;font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-input-color)}.droparea__filename{color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium);font-weight:var(--zn-font-weight-medium);word-break:break-all;text-align:center;padding:0 var(--zn-spacing-3x-large)}.file-wrapper{display:flex;flex-direction:row;flex-wrap:wrap}.form-control--small .droparea{font:var(--zn-font-size-small);min-height:140px}.form-control--small .droparea__preview{height:110px}.form-control--large .droparea{font:var(--zn-font-size-large);min-height:220px}.form-control--large .droparea__preview{height:190px}:host([disabled]) .droparea,:host([disabled]) .input__value{cursor:not-allowed;opacity:0.5}:host(:not([disabled])) .form-control--user-dragging .droparea{background:var(--zn-color-primary-50);border-color:var(--zn-color-primary-600);cursor:pointer}:host(:not([disabled])) .droparea:not(:focus-visible):hover{--highlight-color:var(--zn-color-primary-800);border-color:var(--zn-color-primary-700);cursor:pointer}:host(:not([disabled])) .droparea:hover .droparea__upload::part(base),:host(:not([disabled])) .droparea__upload:hover::part(base),:host(:not([disabled])) .form-control--user-dragging .droparea__upload::part(base){background:var(--zn-color-primary-50);border-color:var(--zn-color-primary-700);color:var(--zn-color-primary-800)}.droparea__upload::part(icon){pointer-events:none}:host([data-user-invalid]:not([disabled])) .droparea{border-color:var(--zn-color-error)}.clear-confirm__text{margin:0;color:var(--zn-input-color)}.form-control__link{display:inline-block;margin-top:var(--zn-spacing-x-small);font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-color-primary-700);word-break:break-all;text-decoration:none;max-width:100%}.form-control__link:hover{color:var(--zn-color-primary-800);text-decoration:underline}`;var be=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-change"],value:t=>t.uploadUrl?t.src?t.src:t.clearedByUser?"":void 0:t.files?.length?t.files:t.clearedByUser?"":void 0});this.clearedByUser=!1;this.hasSlotController=new Y(this,"help-text","label");this.localize=new Ft(this);this.userIsDragging=!1;this.fileObjectUrl=null;this.name="";this.defaultValue="";this.size="medium";this.label="";this.clearable=!1;this.helpText="";this.disabled=!1;this.droparea=!1;this.accept="";this.multiple=!1;this.webkitdirectory=!1;this.form="";this.required=!1;this.hideValue=!1;this.src="";this.triggerSubmit=!1;this.showLink=!1;this.uploadUrl="";this.uploading=!1;this.handleInvalid=t=>{this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)};this.handleDragOver=t=>{t.preventDefault(),t.stopPropagation(),this.userIsDragging=!0};this.handleDragLeave=t=>{t.preventDefault(),t.stopPropagation(),this.userIsDragging=!1};this.handleDrop=async t=>{if(t.preventDefault(),t.stopPropagation(),!t.dataTransfer)return;let r=await this.handleTransferItems(t.dataTransfer.items);if(this.userIsDragging=!1,!r)return;if(!this.multiple&&!this.webkitdirectory&&r.length>1){this.emit("zn-error");return}if(this.hasSlotController.test("trigger"))this.handleFiles(r);else{let a=this.inputChosen,s=this.dropareaIcon;if(this.droparea&&s){let l=Sn(s,"file.iconDrop",{dir:this.localize.dir()});yi(s,l.keyframes,l.options)}if(a){let l=Sn(a,"file.text.disappear",{dir:this.localize.dir()});await yi(a,l.keyframes,l.options)}if(this.handleFiles(r),a){let l=Sn(a,"file.text.appear",{dir:this.localize.dir()});await yi(a,l.keyframes,l.options)}}this.input.dispatchEvent(new Event("change"))};this.removeFile=t=>{t.preventDefault(),t.stopPropagation();let r=Array.from(this.files||[]),n=t.target.closest("[data-file-name]")?.getAttribute("data-file-name"),a=r.findIndex(l=>l.name===n);a!==-1&&r.splice(a,1);let s=new DataTransfer;r.forEach(l=>s.items.add(l)),this.files=s.files,s.files.length||(this.clearedByUser=!0),this.input.dispatchEvent(new Event("change"))};this.handleClearClick=t=>{t.preventDefault(),t.stopPropagation(),this.clearConfirmDialog?.show()};this.confirmClear=()=>{let t=(this.files?.length??0)>0;this.input.value="",this.files=null,t||(this.src=""),this.clearedByUser=!0,this.clearConfirmDialog?.hide(),this.input.dispatchEvent(new Event("change")),this.emit("zn-clear")}}set files(t){this.input&&(this.input.files=t,t?.length&&(this.clearedByUser=!1),this.updatePreview())}get files(){return this.input?.files}set value(t){if(this.uploadUrl){this.src=t??"";return}this.input&&(this.input.value=t)}get value(){return this.uploadUrl?this.src??"":this.input?.value}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){if(this.droparea){this.dropareaWrapper?.focus(t);return}this.button?.focus(t)}blur(){if(this.droparea){this.dropareaWrapper?.blur();return}this.button?.blur()}handleFiles(t){if(!t){this.value="";return}this.files=t}async handleTransferItems(t){if(!t)return this.value="",new Promise((p,h)=>{h(new Error("No proper items found"))});let n=Array.from(t).map(p=>p.webkitGetAsEntry()).map(p=>this.getFilesFromEntry(p)),s=(await Promise.all(n)).flat(),l=new DataTransfer;return Array.from(s).forEach(p=>l.items.add(p)),l.files}async getFilesFromEntry(t){return t?t.isFile?new Promise((r,n)=>{t.file(a=>r([a]),n)}):t.isDirectory?new Promise((r,n)=>{t.createReader().readEntries(s=>{Promise.all(s.map(l=>this.getFilesFromEntry(l))).then(l=>{r(l.flat())}).catch(n)})}):[]:[]}handleClick(t){t.preventDefault(),this.input.click()}handleChange(t){t.preventDefault(),t.stopPropagation(),this.updatePreview();let r=this.files?.[0];if(this.uploadUrl&&r){this.uploadFile(r);return}this.emit("zn-input"),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}async uploadFile(t){this.uploading=!0;try{let r=new FormData;r.append("file",t,t.name);let n=await fetch(this.uploadUrl,{method:"POST",body:r,credentials:"same-origin"});if(!n.ok)throw new Error(`upload failed with status ${n.status}`);let a=await n.json();if(!a.url)throw new Error("upload response missing url");this.src=a.url,this.input.value="",this.files=null,this.clearedByUser=!1,this.emit("zn-input"),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}catch(r){console.warn("<zn-file> upload failed",r),this.input.value="",this.files=null,this.emit("zn-error")}finally{this.uploading=!1}}handleFocus(){this.emit("zn-focus")}handleBlur(){this.emit("zn-blur")}clear(){this.input&&(this.input.value=""),this.files=null,this.src="",this.updatePreview(),this.formControlController.updateValidity()}updatePreview(){this.fileObjectUrl&&(URL.revokeObjectURL(this.fileObjectUrl),this.fileObjectUrl=null);let t=this.files?.[0];t&&t.type.startsWith("image/")&&(this.fileObjectUrl=URL.createObjectURL(t))}get previewSrc(){return this.fileObjectUrl??this.src??""}disconnectedCallback(){super.disconnectedCallback(),this.fileObjectUrl&&(URL.revokeObjectURL(this.fileObjectUrl),this.fileObjectUrl=null)}renderFileValueWithDelete(){let t=Array.from(this.files||[]),r=this.clearable,n=this.localize.term("numFilesSelected",0,this.webkitdirectory);return u`
|
|
3807
3808
|
${t?u`
|
|
3808
3809
|
<div class="file_wrapper">
|
|
3809
3810
|
${Jo(t,a=>u`
|
|
@@ -4049,7 +4050,7 @@ ${Na(this.code(i,t))}
|
|
|
4049
4050
|
slot="prefix">${a.prefix}</span>`:""}
|
|
4050
4051
|
${this.iconOnly?void 0:a.value}
|
|
4051
4052
|
</zn-option>`)}
|
|
4052
|
-
</zn-select>`}_updatePrefix(){if(!this.select||!this.shadowRoot)return;let t=this.shadowRoot.querySelector(".select__icon");if(!(this.iconPosition!=="none"||this.iconOnly)){t&&(t.innerHTML=""),this._updateIconEmptyState();return}this.iconPosition==="none"&&this.iconOnly&&(this.iconPosition="start");let n=this.select.selectedOptions;if(!n||n.length===0){t&&(t.innerHTML=""),this._updateIconEmptyState();return}if(!t)return;let s=n[0].querySelector('[slot="prefix"]');s?(t.innerHTML="",t.appendChild(s.cloneNode(!0))):t.innerHTML="",this._updateIconEmptyState()}_updateIconEmptyState(){if(!this.shadowRoot)return;let t=this.shadowRoot.querySelector(".select__icon");!t||t.innerHTML.trim()===""?this.setAttribute("icon-empty",""):this.removeAttribute("icon-empty")}getPlaceholder(t){return this.value?(Array.isArray(this.value)?this.value.length>0:this.value.length>0)?"":`Choose a ${t.getName}`:`Choose a ${t.getName}`}_observeSelectDisabled(){this.select&&(this._syncDisabledState(),this.selectObserver.observe(this.select))}_syncDisabledState(){this.select&&(this.disabled=this.select.disabled)}_normalizeValue(){this.multiple?typeof this.value=="string"&&(this.value===""?this.value=[]:this.value=this.value.split(",").map(t=>t.trim()).filter(t=>t!=="")):Array.isArray(this.value)&&(this.value=this.value.length>0?this.value[0]:"")}};Le.styles=z(_2),Le.dependencies={"zn-select":Be,"zn-option":
|
|
4053
|
+
</zn-select>`}_updatePrefix(){if(!this.select||!this.shadowRoot)return;let t=this.shadowRoot.querySelector(".select__icon");if(!(this.iconPosition!=="none"||this.iconOnly)){t&&(t.innerHTML=""),this._updateIconEmptyState();return}this.iconPosition==="none"&&this.iconOnly&&(this.iconPosition="start");let n=this.select.selectedOptions;if(!n||n.length===0){t&&(t.innerHTML=""),this._updateIconEmptyState();return}if(!t)return;let s=n[0].querySelector('[slot="prefix"]');s?(t.innerHTML="",t.appendChild(s.cloneNode(!0))):t.innerHTML="",this._updateIconEmptyState()}_updateIconEmptyState(){if(!this.shadowRoot)return;let t=this.shadowRoot.querySelector(".select__icon");!t||t.innerHTML.trim()===""?this.setAttribute("icon-empty",""):this.removeAttribute("icon-empty")}getPlaceholder(t){return this.value?(Array.isArray(this.value)?this.value.length>0:this.value.length>0)?"":`Choose a ${t.getName}`:`Choose a ${t.getName}`}_observeSelectDisabled(){this.select&&(this._syncDisabledState(),this.selectObserver.observe(this.select))}_syncDisabledState(){this.select&&(this.disabled=this.select.disabled)}_normalizeValue(){this.multiple?typeof this.value=="string"&&(this.value===""?this.value=[]:this.value=this.value.split(",").map(t=>t.trim()).filter(t=>t!=="")):Array.isArray(this.value)&&(this.value=this.value.length>0?this.value[0]:"")}};Le.styles=z(_2),Le.dependencies={"zn-select":Be,"zn-option":lt},c([F("#select")],Le.prototype,"select",2),c([d()],Le.prototype,"name",2),c([d({converter:{fromAttribute:t=>t||"",toAttribute:t=>Array.isArray(t)?t.join(","):t||""}})],Le.prototype,"value",2),c([Ce()],Le.prototype,"defaultValue",2),c([d()],Le.prototype,"provider",2),c([d({attribute:"icon-position"})],Le.prototype,"iconPosition",2),c([d({attribute:"filter",converter:{fromAttribute:t=>t.split(","),toAttribute:t=>t.join(",")}})],Le.prototype,"filter",2),c([d({reflect:!0})],Le.prototype,"size",2),c([d({type:Boolean})],Le.prototype,"clearable",2),c([d({type:Boolean,attribute:"allow-all"})],Le.prototype,"allowAll",2),c([d({type:Boolean,attribute:"allow-common"})],Le.prototype,"allowCommon",2),c([d()],Le.prototype,"label",2),c([d({attribute:"label-tooltip"})],Le.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],Le.prototype,"contextNote",2),c([d({reflect:!0})],Le.prototype,"placement",2),c([d({attribute:"help-text"})],Le.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"required",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"disabled",2),c([d({attribute:"icon-only",type:Boolean,reflect:!0})],Le.prototype,"iconOnly",2),c([d({type:Boolean})],Le.prototype,"multiple",2),c([d({attribute:"select-first",type:Boolean})],Le.prototype,"selectFirst",2),c([d()],Le.prototype,"distinct",2),c([d()],Le.prototype,"conditional",2),c([d()],Le.prototype,"requires",2),c([K("value",{waitUntilFirstUpdate:!0})],Le.prototype,"handleValueChange",1);var qL=Le;Le.define("zn-data-select");var k2=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block}.color-swatch{width:var(--zn-spacing-small);height:var(--zn-spacing-small);display:block;border-radius:var(--zn-border-radius-circle);flex-shrink:0}.color-swatch--red{background-color:var(--zn-color-red-500)}.color-swatch--blue{background-color:var(--zn-color-blue-500)}.color-swatch--orange{background-color:var(--zn-color-orange-500)}.color-swatch--yellow{background-color:var(--zn-color-yellow-400)}.color-swatch--indigo{background-color:var(--zn-color-indigo-500)}.color-swatch--violet{background-color:var(--zn-color-violet-500)}.color-swatch--green{background-color:var(--zn-color-green-500)}.color-swatch--pink{background-color:var(--zn-color-pink-500)}.color-swatch--gray{background-color:var(--zn-color-gray-500)}.color-swatch--empty{border:1px dashed var(--zn-color-neutral-400)}zn-select::part(combobox){width:-moz-fit-content;width:fit-content;padding-inline-end:var(--zn-spacing-2x-small)}zn-select::part(display-input){width:0;min-width:0;color:transparent;caret-color:transparent}zn-select::part(listbox){min-width:-moz-max-content;min-width:max-content;max-height:300px;padding-block:0}.color-swatch[part=swatch]{margin-inline-start:var(--zn-spacing-x-small);margin-inline-end:0}zn-option .color-swatch{margin-inline-end:var(--zn-spacing-x-small)}zn-select::part(clear-button),zn-select::part(expand-icon){margin-inline-start:var(--zn-spacing-2x-small)}zn-select::part(clear-button){margin-inline-start:var(--zn-spacing-x-small)}`;var yr=class extends k{constructor(){super(...arguments);this.value="";this.label="";this.helpText="";this.disabled=!1;this.required=!1;this.clearable=!1;this.formControlController=new re(this);this.handleInput=t=>{let r=t.target;this.value=r.value??""};this.handleClear=()=>{this.value=""}}get validity(){return this.select.validity}get validationMessage(){return this.select.validationMessage}checkValidity(){return this.select.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.select.reportValidity()}setCustomValidity(t){this.select.setCustomValidity(t)}handleValueChange(){this.formControlController.updateValidity()}render(){return u`
|
|
4053
4054
|
<zn-select id="select"
|
|
4054
4055
|
placement="bottom-start"
|
|
4055
4056
|
label="${this.label}"
|
|
@@ -4069,7 +4070,7 @@ ${Na(this.code(i,t))}
|
|
|
4069
4070
|
<div slot="prefix" class="color-swatch color-swatch--${t.toLowerCase()}"></div>
|
|
4070
4071
|
${t}
|
|
4071
4072
|
</zn-option>`)}
|
|
4072
|
-
</zn-select>`}};yr.styles=z(k2),yr.dependencies={"zn-select":Be,"zn-option":
|
|
4073
|
+
</zn-select>`}};yr.styles=z(k2),yr.dependencies={"zn-select":Be,"zn-option":lt},c([F("#select")],yr.prototype,"select",2),c([d()],yr.prototype,"name",2),c([d()],yr.prototype,"value",2),c([d()],yr.prototype,"label",2),c([d({attribute:"help-text"})],yr.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],yr.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],yr.prototype,"required",2),c([d({type:Boolean})],yr.prototype,"clearable",2),c([K("value",{waitUntilFirstUpdate:!0})],yr.prototype,"handleValueChange",1);var IL=yr;yr.define("zn-color-select");var S2=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;max-width:100%;--menu-gap:var(--zn-spacing-x-small)}.button-menu--no-gap{--menu-gap:0}.button-menu{display:flex;flex-direction:row;justify-content:flex-end;margin:0;min-width:34px;max-width:var(--zn-max-width);gap:var(--menu-gap)}.button-menu--no-padding{padding:0}.button-menu__container{display:flex;flex-direction:row;gap:var(--menu-gap);margin:0;max-width:calc(100% - 34px)}.button-menu__container:empty{display:none}.button-menu ::slotted(*){display:contents}.button-menu zn-button{min-width:34px;flex-shrink:0}`;var Gr=class extends k{constructor(){super(...arguments);this.limit=-1;this.maxLevel=2;this.iconSize=20;this._buttons=[];this._originalButtons=[];this._resizeRafId=0;this.resizeObserver=new ut(this,{target:null,callback:()=>{this._resizeRafId||(this._resizeRafId=requestAnimationFrame(()=>{this._resizeRafId=0,this.containerWidth=this.offsetWidth}))}})}async firstUpdated(t){super.firstUpdated(t);let r=this.querySelectorAll("zn-button");for(let n of r)await n.updateComplete;this._originalButtons=Array.from(r).map(n=>({button:n,width:Math.max(n.offsetWidth,150)})),this.querySelectorAll("zn-button").forEach(n=>{n.remove()}),this.containerWidth=this.parentNode?this.parentNode.offsetWidth:0,this.maxWidth&&(this.containerWidth=Math.min(this.containerWidth,this.maxWidth))}watchContainerMaxWidth(){this.maxWidth&&(this.containerWidth=Math.min(this.containerWidth,this.maxWidth)),this.calculateVisibleButtons()}connectedCallback(){super.connectedCallback(),this.containerWidth=this.offsetWidth,this.parentNode&&this.resizeObserver.observe(this.parentNode)}calculateVisibleButtons(){let t=this.containerWidth,r=0,n=0,a=0,s=0,l=t;this._buttons=[...this._originalButtons],l-=50,this._buttons.sort((m,f)=>{let b=m.button.hasAttribute("primary")?1:m.button.hasAttribute("secondary")?2:3,g=f.button.hasAttribute("primary")?1:f.button.hasAttribute("secondary")?2:3;return b-g}),this._buttons.forEach(m=>{s++,m.button.hasAttribute("primary")?r++:m.button.hasAttribute("secondary")&&n++,l-m.width>0?(l-=m.width,a++):l=0}),this.maxLevel<2?this.limit=this.limit>0?Math.min(this.limit,r):r:this.maxLevel<3&&(this.limit=this.limit>0?Math.min(this.limit,r+n):r+n),this.limit>-1&&(a=Math.min(a,this.limit));let p=this.shadowRoot?.querySelector(".button-menu__container");p&&(p.innerHTML="");let h=this.shadowRoot?.querySelector("zn-menu");h&&(h.innerHTML=""),this._buttons.forEach((m,f)=>{f<a&&(this.shadowRoot?.querySelector(".button-menu__container")?.appendChild(m.button),(m.button.hasAttribute("primary")||m.button.hasAttribute("secondary"))&&m.button.setAttribute("text",""))}),this.calculateMenuButtons(s,a,this._buttons)}calculateMenuButtons(t,r,n){let a=this.shadowRoot?.querySelector("zn-menu"),s=this.shadowRoot?.querySelector("zn-dropdown");if(a&&s){let p=new Set,h={};s.toggleAttribute("hidden",n.length===0||n.length<=r),r!==n.length&&t>0&&(n.forEach((m,f)=>{if(f>=r){let b=document.createElement("zn-menu-item");b.textContent=this.getButtonLabel(m.button),b.setAttribute("id",m.button.id||`zn-button-menu-item-${f}`),b.setAttribute("role","menuitem");let g=m.button.attributes;for(let C of Array.from(g))C.name!=="icon"&&C.name!=="category"&&b.setAttribute(C.name,C.value);let v=m.button.getAttribute("icon");if(v){let C=document.createElement("zn-icon");C.setAttribute("src",v);let T=m.button.getAttribute("icon-library");T&&C.setAttribute("library",T),C.setAttribute("size","18"),C.setAttribute("slot","prefix"),b.appendChild(C)}let y=m.button.getAttribute("category")||"default";p.add(y),h[y]||(h[y]=[]),h[y].push(b)}}),p.forEach(m=>{if(m==="default")h[m].forEach(f=>{a.appendChild(f)});else if(h[m].length===1){let f=h[m][0];a.appendChild(f)}else{let f=document.createElement("zn-menu-item");f.innerText=m.charAt(0).toUpperCase()+m.slice(1);let b=document.createElement("zn-menu");b.setAttribute("slot","submenu"),b.setAttribute("variant",a.variant),h[m].forEach(g=>{b.appendChild(g)}),f.appendChild(b),a.appendChild(f)}}))}Ge("zn-confirm",this,"").forEach(p=>{p.updateTriggers()})}getButtonLabel(t){let r=t.shadowRoot?.querySelector('slot[part="label"]');return((r?[...r.assignedNodes({flatten:!0})].map(s=>s.textContent??"").join("").trim():"")||t.content||t.getAttribute("content")||t.caption||t.getAttribute("caption")||t.tooltip||t.getAttribute("tooltip")||t.getAttribute("aria-label")||t.button?.innerText||t.textContent||"").trim()}render(){return u`
|
|
4073
4074
|
<div class="${M({"button-menu":!0,"button-menu--no-padding":this.noPadding,"button-menu--no-gap":this.noGap})}">
|
|
4074
4075
|
<div class="button-menu__container"></div>
|
|
4075
4076
|
<zn-dropdown placement="bottom-end">
|
|
@@ -4397,7 +4398,7 @@ endif::[]`,caretOffset:9},{key:"inline-formatting",label:"Strong",icon:"bold@lu"
|
|
|
4397
4398
|
`)}</div></div>`}inline(i){let t=i,r=[],n=a=>{let s=`RMDPASS${r.length}`;return r.push(a),s};return t=t.replace(/\bpass:\[([^\]]*)]/gs,(a,s)=>n(s)).replace(/\+\+\+(.+?)\+\+\+/gs,(a,s)=>n(s)),t=t.replace(/{{([^}: ]+)(?::([^ }]+))?([^}]*)}}/g,(a,s,l="",p="")=>this.renderObject(s,l,ol(p))),t=t.replace(/"`([^`]+)`"/g,"“$1”"),t=t.replace(/``([^`]+)``/g,(a,s)=>`<span class="monospace">${jc(s)}</span>`),t=t.replace(/`([^`\n]+)`/g,(a,s)=>`<span class="monospace">${jc(s)}</span>`),t=t.replace(/___(.+?)___/g,"<u>$1</u>"),t=t.replace(/\(c\)|\(C\)/g,"\xA9").replace(/\(r\)|\(R\)/g,"\xAE").replace(/\(tm\)|\(TM\)/g,"\u2122").replace(/\(p\)|\(P\)/g,"\xA7").replace(/\(\+-\)/g,"\xB1").replace(/-\.-/g,"•"),t=t.replace(/:(\S+):/g,(a,s)=>ZL[s.replaceAll("-","_")]||a),t=t.replace(/kbd:\[([^\]]+)]/g,"<kbd>$1</kbd>"),t=t.replace(/[^#&]#([^#]+)#/g,'<mark class="highlight">$1</mark>'),t=t.replace(/{(.*?)}\((.*?)\)/g,'<span class="tooltip" title="$2">$1</span>'),t=t.replace(/!\[([^\]]*)]\((.*?)\s*"([^"]+)"\s*\)/g,(a,s,l,p)=>`<img src="${n(l)}" alt="${n(s)}" title="${n(p)}"/>`),t=t.replace(/!\[([^\]]*)]\(([^)]*)\)/g,(a,s,l)=>s?`<img src="${n(l)}" alt="${n(s)}"/>`:`<img src="${n(l)}"/>`),t=t.replace(/image::([^\[]+)\[([^\]]*)]/g,(a,s,l)=>{let[p,h,m]=l.split(",").map(f=>f.trim());return`<img class="block" src="${n(s)}"${p?` alt="${n(p)}"`:""}${h?` width="${h}"`:""}${m?` height="${m}"`:""}/>`}),t=t.replace(/\[([^\]]*)]\(([^)]*)\)/g,(a,s,l)=>`<a href="${n(l)}">${s}</a>`),t=t.replace(/([^="(])((?:http|ftp|https|mailto):\/\/[\w_-]+(?:(?:\.[\w_-]+)+)[\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])(?:\[([^\]\n]+)])?/g,(a,s,l,p)=>`${s}<a href="${n(l)}">${p||n(l)}</a>`),t=t.replace(/<<([\w\-_]+)(,([^>]+))?>>/g,(a,s,l,p)=>`<a href="#${s.replace(/^_/,"").replace(/_/g,"-")}">${p||Uc(s)}</a>`),t=t.replace(/footnote:\[([^\]]+)]/g,'<sup class="footnote">$1</sup>'),t=t.replace(/\*\*([^*]+?)\*\*/g,"<strong>$1</strong>"),t=t.replace(/__([^_]+?)__/g,"<em>$1</em>"),t=t.replace(/([^\\w])\*([^*]+)\*/g,"$1<strong>$2</strong>"),t=t.replace(/(\s|^)_([^_]+)_/g,"$1<em>$2</em>"),t=t.replace(/~~(.+?)~~/g,"<del>$1</del>"),t=t.replace(/~([^~]+?)~/g,"<sub>$1</sub>"),t=t.replace(/\^([^^]+?)\^/g,"<sup>$1</sup>"),t=t.replace(/\[( |x|_|\*)]/g,(a,s)=>s===" "?'<input type="checkbox" readonly="readonly">':s==="x"?'<input type="checkbox" readonly="readonly" checked>':s==="_"?'<input type="checkbox">':'<input type="checkbox" checked>'),t=t.replace(/(\[[^\]]+])##([^#]+)##/g,(a,s,l)=>`<span class="${ol(s).pos[0]}">${l}</span>`),t=t.replace(/<(\d+|\d+\.\d+)>/g,'<i class="conum" data-value="$1"></i>'),r.reduce((a,s,l)=>a.replaceAll(`RMDPASS${l}`,s),t)}renderObject(i,t,r){switch(i){case"link":{let n=r.named.text||Uc(t),a=r.named.target?` target="${r.named.target}"`:"",s=r.named.hreflang?` hreflang="${r.named.hreflang}"`:"";return`<a href="${r.named.href||t}"${a}${s}>${n}</a>`}case"button":{let n=r.named.text||Uc(t),a=r.named.color||"gray",s=r.named.target?` target="${r.named.target}"`:"";return`<a href="${r.named.href||`#${t}`}" class="btn btn--${a}"${s}>${n}</a>`}case"br":return"<br>";case"anchor":return r.named.name?`<a name="${r.named.name}"></a>`:"[ANCHOR MISSING NAME]";case"meter":{let n=r.named.id||"remarkd-meter-150";return`${r.named.label?`<label for="${n}" class="remarkd-meter-label">${r.named.label}</label>`:""}<meter id="${n}" class="remarkd-meter" min="${r.named.min||"0"}" max="${r.named.max||"100"}" value="${r.named.value||"0"}"">${r.named.text||""}</meter>`}case"video":{let n=r.named.aspect==="4:3"?"75":r.named.aspect==="1:1"?"100":r.named.aspect==="3:2"?"66.66":r.named.aspect==="8:5"?"62.5":"56.25";if(r.named.source==="self")return`<div class="video-container" style="padding-top: ${n}%"><video controls><source src="${t}" type="${r.named.type||"video/mp4"}"></video></div>`;let a=["rel=0"];return r.named.end&&a.unshift(`end=${r.named.end}`),r.named.start&&a.unshift(`start=${r.named.start}`),`<div class="video-container" style="padding-top: ${n}%"><iframe src="https://www.youtube.com/embed/${t}?${a.join(";")}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`}case"ref":{let n={num:this.references.length+1,code:r.named.code||`${this.references.length+1}RM`,content:r.named.content||""};return this.references.push(n),`<sup class="reference"><a id="rmdref-bdy-${n.code}" href="#rmdref-ft-${n.code}">[${n.num}]</a></sup>`}case"reflist":return this.references.length?`<ol class="reference">${this.references.map(n=>`<li id="rmdref-ft-${n.code}"><a href="#rmdref-bdy-${n.code}" class="reference-tobody">^</a> ${this.inline(n.content)}</li>`).join("")}</ol>`:"";case"img":{let n=`display: ${r.named.display||"inline-block"};max-width: ${r.named["max-width"]||"100%"};`;r.named.float&&(n+=`float: ${r.named.float};`);let a=r.pos.filter(s=>s.startsWith(".")).map(s=>s.slice(1));return`<img src="${r.named.src||""}"${r.named.alt?` alt="${r.named.alt}"`:""} style="${n}"${a.length?` class="${a.join(" ")}"`:""} />`}default:return""}}replaceAttrs(i){for(let[t,r]of Object.entries(this.attrs))i=i.replaceAll(`{${t}}`,String(r));return i}addDocumentAttr(i){let t=i.match(/^:(!?[\w.-]+)(!)?:(.*)?$/);t&&(this.attrs[t[1]]=t[3]?.trim()||!t[2])}parseConditional(i){let t=i.match(/^(end)?if(def|ndef|eval|nempty|empty|true|false)?::([^\[]*)\[([^]*)]$/);if(!t)return{handled:!1};if(this.index++,t[1]==="end")return this.conditions.pop(),{handled:!0};let n=!this.conditions.includes(!1)&&this.validateCondition(t[2]||"def",t[3],t[4]);return t[2]!=="eval"&&t[4]?{handled:!0,inline:n?t[4]:void 0}:(this.conditions.push(n),{handled:!0})}validateCondition(i,t,r){return i==="eval"?tq(r):t.split(",").some(a=>a.split("+").every(s=>{let l=this.attrs[s];return i==="def"?l!==void 0:i==="ndef"?l===void 0:i==="true"?l===!0||l==="true"||l==="1":i==="false"?l===!1||l==="false"||l==="0":i==="empty"?l===void 0||l==="":i==="nempty"?l!==void 0&&l!=="":!1}))}isBlockStart(i){return i==="```"||i==="____"||i==="|==="||/^[-=*.!]{4,10}$/.test(i)||/^#{1,6} /.test(i)||/^={2,6} /.test(i)||i.trim()==="<<<"||/^((\d*\.)+) /.test(i)||/^((\*|-){1,10}) /.test(i)||/^(end)?if(def|ndef|eval|nempty|empty|true|false)?::/.test(i)||/^!![\w-]+!!$/.test(i)||/^include::[^\[]+\[.*]\s*$/.test(i)||i.startsWith("_|_#")||i.startsWith("_-_#")||i.startsWith("_|- ")||/^[^:]+:: .+/.test(i)||/^(SUCCESS|WARNING|CAUTION|NOTE|NOTICE|IMPORTANT|DANGER|TIP)([:|)])/.test(i)||/^<(\d+|\d+\.\d+|\w|[^>])> /.test(i)||/^-{3}$/.test(i.trim())}};function V2(o){let i=[];for(let t of o.replace(/\r\n?/g,`
|
|
4398
4399
|
`).replace(/\n$/,"").split(`
|
|
4399
4400
|
`)){let r=t.replace(/{!(.*)!}/g,"$1");i.length&&i[i.length-1].endsWith("\\")?i[i.length-1]=i[i.length-1].replace(/[\\ ]+$/,"")+`
|
|
4400
|
-
`+r:i.push(r)}return i}function mg(o,i){let t=new F2(o,!1,i.options);return t.attrs=i.attrs,t.parse().replace(/^<div class="remarkd-section section--level0 section--with-content">/,"").replace(/<\/div>$/,"")}function U2(o,i,t=0){if(t>10)return o;let r=[];for(let n of o){let a=n.match(/^t::partial::(.*)$/);if(!a){r.push(n);continue}let[s,l]=KL(a[1]??""),p=j2(i,s);if(p===null){r.push(`File not found: ${s}`);continue}let h=V2(p);for(YL(l,"strip-title")&&(h[0]??"").startsWith("=")&&(h=h.slice(1));h.length&&h[h.length-1].trim()==="";)h.pop();let m=Number.parseInt(l["drop-last"]??"0",10);m>0&&h.splice(-m),r.push(...U2(h,i,t+1))}return r}function KL(o){let i=o.trim(),t={},r=i.match(/^(.*?)\[([^\]]*)]$/);if(r){i=r[1].trim();for(let n of r[2].split(",")){let a=n.trim();if(!a)continue;let s=a.indexOf("=");s===-1?t[a]="true":t[a.slice(0,s).trim()]=a.slice(s+1).trim().replace(/^["']|["']$/g,"")}}return[i,t]}function YL(o,i){return i in o?!["0","false","no"].includes(o[i].toLowerCase()):!1}function j2(o,i){if(o.partials&&Object.prototype.hasOwnProperty.call(o.partials,i))return o.partials[i];let t=globalThis.process,r=t?.getBuiltinModule?.("node:fs");if(!r?.existsSync||!r?.readFileSync)return null;let n=QL(o.projectRoot||t?.cwd?.()||"",i);return r.existsSync(n)?r.readFileSync(n,"utf8"):null}function QL(o,i){return/^(\/|[A-Za-z]:[\\/])/.test(i)||!o?i:`${o.replace(/[\\/]+$/,"")}/${i.replace(/^[\\/]+/,"")}`}function ol(o){let i=o.trim().replace(/^\[/,"").replace(/]$/,""),t=[],r={},n=/(^|[\s,]+)([^, =}]+)(=(("([^"]*)")|([^\s,}]*)))?/g,a;for(;a=n.exec(i);){let s=a[2],l=a[6]||a[7]||"";t.push(s),r[s]=l}return{raw:i,pos:t,named:r}}function XL(o){return!!o&&(o.pos[0]==="pros-cons"||o.pos[0]==="proscons"||"pros-cons"in o.named||"proscons"in o.named)}function Ua(o,i,t){return!o||!(i in o.named)?t:!["0","false","no","off"].includes((o.named[i]||"").toLowerCase())}function JL(o,i){let t=i===0?o?.named["con-icon"]||"\u274C":o?.named["pro-icon"]||"\u2705";return`<span class="pros-cons-icon">${jc(t)}</span>`}var ZL={"+1":"\u{1F44D}",thumbsup:"\u{1F44D}","-1":"\u{1F44E}",thumbsdown:"\u{1F44E}",eyes:"\u{1F440}",grinning:"\u{1F600}",grin:"\u{1F601}",joy:"\u{1F602}",smiley:"\u{1F603}",smile:"\u{1F604}",sweat_smile:"\u{1F605}",satisfied:"\u{1F606}",laughing:"\u{1F606}",innocent:"\u{1F607}",smiling_imp:"\u{1F608}",wink:"\u{1F609}",blush:"\u{1F60A}",yum:"\u{1F60B}",relieved:"\u{1F60C}",heart_eyes:"\u{1F60D}",sunglasses:"\u{1F60E}",smirk:"\u{1F60F}",neutral_face:"\u{1F610}",expressionless:"\u{1F611}",unamused:"\u{1F612}",sweat:"\u{1F613}",pensive:"\u{1F614}",confused:"\u{1F615}",confounded:"\u{1F616}",kissing:"\u{1F617}",kissing_heart:"\u{1F618}",kissing_smiling_eyes:"\u{1F619}",kissing_closed_eyes:"\u{1F61A}",stuck_out_tongue:"\u{1F61B}",stuck_out_tongue_winking_eye:"\u{1F61C}",stuck_out_tongue_closed_eyes:"\u{1F61D}",disappointed:"\u{1F61E}",worried:"\u{1F61F}",angry:"\u{1F620}",rage:"\u{1F621}",cry:"\u{1F622}",persevere:"\u{1F623}",triumph:"\u{1F624}",disappointed_relieved:"\u{1F625}",frowning:"\u{1F626}",anguished:"\u{1F627}",fearful:"\u{1F628}",weary:"\u{1F629}",sleepy:"\u{1F62A}",tired_face:"\u{1F62B}"};function Uc(o){return o.replace(/[-_]+/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function eq(o){return o.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function tq(o){let i=o.trim().match(/^(.+?)\s*(===|==|!=|<=|<|>=|>|in|nin)\s*(.+)$/);if(!i)return!1;let t=i[1].trim(),r=i[2],n=i[3].trim();switch(r){case"===":return t===n;case"==":return t==n;case"!=":return t!=n;case"<=":return t<=n;case"<":return t<n;case">=":return t>=n;case">":return t>n;case"in":return n.split(",").map(a=>a.trim()).includes(t);case"nin":return!n.split(",").map(a=>a.trim()).includes(t);default:return!1}}function jc(o){return o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}var $h=class{constructor(i,t){this.visibleCount=1/0;this.resizeRafId=0;this.host=i,this.options=t,i.addController(this),new ht(i,{callback:()=>{this.resizeRafId||(this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=0,this.measure()}))}})}hostUpdated(){this.measure()}measure(){let i=this.options.groups(),t=this.options.container();if(!i.length||!t)return;let r=getComputedStyle(t),n=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),a=[...t.children].filter(m=>!m.classList.contains("toolbar__group")).reduce((m,f)=>m+f.getBoundingClientRect().width,0),s=t.clientWidth-n-a;if(s<=0)return;i.forEach(m=>m.style.display="");let l=i.map(m=>m.getBoundingClientRect().width),h=l.reduce((m,f)=>m+f,0)<=s?i.length:this.countThatFit(l,s-(this.options.reserve??44));i.forEach((m,f)=>m.style.display=f<h?"":"none"),h!==this.visibleCount&&(this.visibleCount=h,this.host.requestUpdate())}countThatFit(i,t){let r=0,n=0;for(let a of i){if(r+a>t)break;r+=a,n++}return n}};var G2=_`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.remarkd-rendered{--rmd-accent:#2367c8;--rmd-border:#d9dee7;--rmd-muted:#5f6d80;--rmd-soft:#eef5ff;--rmd-code-bg:#0f1626;--rmd-code-text:#f5f8ff;color:#18202f;font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;word-wrap:break-word}.remarkd-rendered>.remarkd-section>:first-child,.remarkd-rendered>:first-child{margin-top:0}.remarkd-rendered p{margin:0 0 12px}.remarkd-rendered h1,.remarkd-rendered h2,.remarkd-rendered h3,.remarkd-rendered h4{line-height:1.2;margin:18px 0 10px}.remarkd-rendered h1{font-size:26px}.remarkd-rendered h2{font-size:21px}.remarkd-rendered h3{font-size:17px}.remarkd-rendered a{color:var(--rmd-accent)}.remarkd-rendered .btn{align-items:center;background:#f4f6f8;border:1px solid #cfd6df;border-radius:6px;color:#263241;cursor:pointer;display:inline-flex;font-weight:600;gap:6px;justify-content:center;line-height:1.2;margin:2px 4px 2px 0;min-height:36px;padding:8px 14px;text-align:center;text-decoration:none;transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,color 160ms ease;vertical-align:middle}.remarkd-rendered .btn:hover,.remarkd-rendered .btn:focus{background:#e9edf2;border-color:#b9c3cf;color:#182230;text-decoration:none}.remarkd-rendered .btn:focus{box-shadow:0 0 0 3px rgba(35,103,200,0.22);outline:none}.remarkd-rendered .btn--primary{background:#2367c8;border-color:#2367c8;color:#fff}.remarkd-rendered .btn--primary:hover,.remarkd-rendered .btn--primary:focus{background:#1d58ad;border-color:#1d58ad;color:#fff}.remarkd-rendered .btn--secondary{background:#263241;border-color:#263241;color:#fff}.remarkd-rendered .btn--secondary:hover,.remarkd-rendered .btn--secondary:focus{background:#1a2430;border-color:#1a2430;color:#fff}.remarkd-rendered .btn--success{background:#177245;border-color:#177245;color:#fff}.remarkd-rendered .btn--success:hover,.remarkd-rendered .btn--success:focus{background:#105d37;border-color:#105d37;color:#fff}.remarkd-rendered .btn--danger{background:#b42318;border-color:#b42318;color:#fff}.remarkd-rendered .btn--danger:hover,.remarkd-rendered .btn--danger:focus{background:#971b12;border-color:#971b12;color:#fff}.remarkd-rendered .monospace,.remarkd-rendered kbd{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.9em}.remarkd-rendered .monospace{background:#eef2f7;border-radius:4px;padding:1px 5px}.remarkd-rendered kbd{background:#f6f8fb;border:1px solid var(--rmd-border);border-bottom-width:2px;border-radius:5px;padding:1px 6px}.remarkd-rendered mark.highlight{background:#fff3bf;border-radius:3px;padding:0 3px}.remarkd-rendered .tooltip{border-bottom:1px dotted var(--rmd-muted);cursor:help}.remarkd-rendered sup.footnote,.remarkd-rendered sup.reference{color:var(--rmd-accent);font-size:0.75em}.remarkd-rendered ul,.remarkd-rendered ol{margin:0 0 12px;padding-left:24px}.remarkd-rendered li>p{margin:0 0 4px}.remarkd-rendered input[type=checkbox]{margin-right:4px;vertical-align:middle}.remarkd-rendered dl{margin:0 0 12px}.remarkd-rendered dt{font-weight:700}.remarkd-rendered dd{margin:0 0 8px 18px;color:var(--rmd-muted)}.remarkd-rendered blockquote{margin:0 0 12px;padding:4px 16px;border-left:4px solid var(--rmd-border);color:var(--rmd-muted)}.remarkd-rendered .hint-note{margin:0 0 12px;padding:12px 14px;border-left:4px solid var(--rmd-accent);background:var(--rmd-soft);border-radius:0 6px 6px 0}.remarkd-rendered .hint-caption{color:var(--rmd-accent)}.remarkd-rendered .hint-tip,.remarkd-rendered .hint-warning,.remarkd-rendered .hint-important,.remarkd-rendered .hint-caution,.remarkd-rendered .hint-danger,.remarkd-rendered .hint-success,.remarkd-rendered .hint-notice{margin:0 0 12px;padding:12px 14px;border-left:4px solid var(--rmd-accent);background:#f6f8fb;border-radius:0 6px 6px 0}.remarkd-rendered .hint-tip,.remarkd-rendered .hint-success{border-left-color:#1f9d57;background:#eafaf1}.remarkd-rendered .hint-tip .hint-caption,.remarkd-rendered .hint-success .hint-caption{color:#1f7a47}.remarkd-rendered .hint-warning,.remarkd-rendered .hint-caution{border-left-color:#b7791f;background:#fdf6e3}.remarkd-rendered .hint-warning .hint-caption,.remarkd-rendered .hint-caution .hint-caption{color:#8a5a07}.remarkd-rendered .hint-danger{border-left-color:#c0392b;background:#fdecea}.remarkd-rendered .hint-danger .hint-caption{color:#a02b1f}.remarkd-rendered .verse-block{margin:0 0 12px;padding:12px 14px;background:#f6f8fb;border-radius:6px;font-family:inherit;white-space:pre-wrap}.remarkd-rendered code{display:block;margin:0 0 12px;padding:14px 16px;border-radius:8px;background:var(--rmd-code-bg);color:var(--rmd-code-text);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.5;white-space:pre;overflow-x:auto}.remarkd-rendered .listing-block{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered .listing-block .content{padding:14px 16px;background:#f6f8fb;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;white-space:pre-wrap}.remarkd-rendered .callout{list-style:none;margin:0 0 6px;padding-left:28px;position:relative;color:var(--rmd-muted)}.remarkd-rendered .callout::before{content:attr(data-marker);position:absolute;left:0;top:0;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--rmd-accent);color:#fff;font-size:12px;font-weight:700}.remarkd-rendered .example-block,.remarkd-rendered .sidebar-block{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px}.remarkd-rendered .example-block .content,.remarkd-rendered .sidebar-block .content{padding:14px 16px}.remarkd-rendered .sidebar-block{background:#f6f8fb}.remarkd-rendered .title{display:block;font-weight:700;color:var(--rmd-muted);margin-bottom:6px}.remarkd-rendered .accordion-container{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered button.accordion{display:block;width:100%;text-align:left;padding:11px 14px;border:0;border-top:1px solid var(--rmd-border);background:#f6f8fb;font:inherit;font-weight:650;cursor:pointer}.remarkd-rendered button.accordion:first-child{border-top:0}.remarkd-rendered .accordion-container .panel{padding:12px 14px}.remarkd-rendered .tab-group{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered .tab-header{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:6px 6px 0;list-style:none;background:#f6f8fb;border-bottom:1px solid var(--rmd-border)}.remarkd-rendered .tab-header a{display:block;padding:7px 12px;border-radius:6px 6px 0 0;text-decoration:none;color:var(--rmd-muted);font-weight:650}.remarkd-rendered .tab-header a.active{background:#fff;color:var(--rmd-accent)}.remarkd-rendered .tabs .tab{padding:14px}.remarkd-rendered .tabs .tab+.tab{border-top:1px dashed var(--rmd-border)}.remarkd-rendered .steps-container{margin:0 0 12px;counter-reset:rmd-step}.remarkd-rendered .step{display:flex;gap:14px;padding:12px 0;border-top:1px solid var(--rmd-border)}.remarkd-rendered .step:first-child{border-top:0}.remarkd-rendered .step-content{flex:1}.remarkd-rendered .step-content h3{margin:0 0 6px;counter-increment:rmd-step}.remarkd-rendered .step-content h3::before{content:counter(rmd-step) ". ";color:var(--rmd-accent)}.remarkd-rendered .step-image img{max-width:120px;border-radius:6px}.remarkd-rendered .table-block{margin:0 0 12px}.remarkd-rendered .remarkd-table{border-collapse:collapse;width:100%}.remarkd-rendered .remarkd-table th,.remarkd-rendered .remarkd-table td{border:1px solid var(--rmd-border);padding:8px 10px;text-align:left}.remarkd-rendered .remarkd-table th{background:#eef2f7}.remarkd-rendered .remarkd-table--striped tbody tr:nth-child(even) td{background:#f8fafc}.remarkd-rendered .pros-cons-table th{background:#2367a6;color:#fff;font-size:1rem}.remarkd-rendered .pros-cons-table{table-layout:fixed}.remarkd-rendered .pros-cons-table .pros-cons-cell{width:50%}.remarkd-rendered .pros-cons-table--background .pros-cons-cell--con{background:#fae9e7}.remarkd-rendered .pros-cons-table--background .pros-cons-cell--pro{background:#e8f4ec}.remarkd-rendered .pros-cons-table--background.remarkd-table--striped tbody tr:nth-child(even) .pros-cons-cell--con{background:#f5d8d5}.remarkd-rendered .pros-cons-table--background.remarkd-table--striped tbody tr:nth-child(even) .pros-cons-cell--pro{background:#d4eadb}.remarkd-rendered .pros-cons-table--text-color .pros-cons-cell--con{color:#a62b25}.remarkd-rendered .pros-cons-table--text-color .pros-cons-cell--pro{color:#155d30}.remarkd-rendered .pros-cons-table .pros-cons-icon{display:inline-block;margin-right:8px}.remarkd-rendered img{max-width:100%}.remarkd-rendered img.block{display:block;margin:0 0 12px}.remarkd-rendered .align-center{text-align:center}.remarkd-rendered .align-right{text-align:right}.remarkd-rendered .align-center img.block{margin-left:auto;margin-right:auto}.remarkd-rendered .align-right img.block{margin-left:auto}.remarkd-rendered .video-container{position:relative;width:100%;margin:0 0 12px;background:#000;border-radius:8px;overflow:hidden}.remarkd-rendered .video-container iframe,.remarkd-rendered .video-container video{position:absolute;inset:0;width:100%;height:100%;border:0}.remarkd-rendered ol.reference{font-size:0.9em;color:var(--rmd-muted)}.remarkd-rendered .reference-tobody{text-decoration:none;margin-right:4px}.remarkd-rendered .remarkd-meter-label{display:block;font-size:0.85em;color:var(--rmd-muted)}.remarkd-rendered .remarkd-meter{width:180px;max-width:100%}.remarkd-rendered hr{border:0;border-top:1px solid var(--rmd-border);margin:18px 0}:host{display:block;overflow:hidden}.remarkd-editor{position:relative;display:flex;flex-direction:column;max-height:var(--remarkd-editor-max-height,100dvh);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.remarkd-editor__toolbar{display:flex;flex:none;gap:2px;flex-wrap:nowrap;padding:var(--zn-spacing-x-small);border-bottom:1px solid rgb(var(--zn-border-color))}.toolbar__group{display:flex;flex-shrink:0;gap:2px;align-items:center}.toolbar__group+.toolbar__group::before{content:"";align-self:stretch;margin-inline:4px;border-left:1px solid rgb(var(--zn-border-color))}.remarkd-editor__toolbar-more zn-menu{--zn-menu-max-height:var(--auto-size-available-height,60dvh)}.remarkd-editor__body{padding:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-large) 52px;min-height:10rem;overflow-y:auto}.remarkd-editor__body--raw{display:flex;padding-left:var(--zn-spacing-large)}.remarkd-editor__raw-toggle{margin-left:auto}.remarkd-editor__raw{flex:1;min-height:10rem;resize:vertical;border:0;background:transparent;color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.875rem;line-height:1.5;padding:0;outline:none}.remarkd-editor--disabled{opacity:0.6;pointer-events:none}.remarkd-editor__block{position:relative;border-radius:var(--zn-border-radius)}.remarkd-editor__actions{position:absolute;left:-40px;top:4px;display:flex;flex-direction:column;align-items:center;gap:2px;opacity:0;transition:opacity 0.15s ease}.remarkd-editor__block:hover .remarkd-editor__actions,.remarkd-editor__actions:focus-within{opacity:1}.remarkd-editor__delete{position:absolute;top:2px;right:2px;z-index:5;opacity:0;transition:opacity 0.15s ease}.remarkd-editor__block:hover .remarkd-editor__delete,.remarkd-editor__delete:focus-within{opacity:1}.remarkd-editor__drag-handle{display:inline-flex;align-items:center;padding:2px;color:var(--zn-color-neutral-400,#9aa4b2);cursor:grab;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.remarkd-editor__drag-handle:active{cursor:grabbing}.remarkd-editor__ghost{position:fixed;top:0;left:0;z-index:20;pointer-events:none;opacity:0.9;background:var(--zn-color-neutral-0,white);border-radius:var(--zn-border-radius);box-shadow:0 8px 24px rgba(0,0,0,0.15);max-width:50%;max-height:160px;overflow:hidden}.remarkd-editor__block--dragging{opacity:0.4}.remarkd-editor__block--drop-before::before,.remarkd-editor__block--drop-after::after{content:"";position:absolute;left:0;right:0;height:6px;border-radius:3px;background:rgba(var(--zn-primary),0.6);pointer-events:none}.remarkd-editor__block--drop-before::before{top:-4px}.remarkd-editor__block--drop-after::after{bottom:-4px}.remarkd-editor__rendered{padding:var(--zn-spacing-x-small);border-radius:var(--zn-border-radius);cursor:text}.remarkd-editor__rendered:hover{background:var(--zn-color-neutral-100)}.remarkd-editor__edit-shell{border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);padding:var(--zn-spacing-x-small)}.remarkd-editor__edit-shell:focus-within{border-top-color:rgb(var(--zn-primary));border-right-color:rgb(var(--zn-primary));border-bottom-color:rgb(var(--zn-primary))}.remarkd-editor__edit-shell:not([class*=hint-]):focus-within{border-left-color:rgb(var(--zn-primary))}.remarkd-editor__input{display:block;width:100%;resize:none;overflow:hidden;border:0;background:transparent;color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.875rem;line-height:1.5;padding:0;outline:none}.remarkd-editor__edit-shell[class*=hint-] .remarkd-editor__input{font:inherit}.remarkd-editor__edit-shell--h1 .remarkd-editor__input,.remarkd-editor__edit-shell--h2 .remarkd-editor__input,.remarkd-editor__edit-shell--h3 .remarkd-editor__input{font-family:inherit;font-weight:700;line-height:1.2}.remarkd-editor__edit-shell--h1 .remarkd-editor__input{font-size:26px}.remarkd-editor__edit-shell--h2 .remarkd-editor__input{font-size:21px}.remarkd-editor__edit-shell--h3 .remarkd-editor__input{font-size:17px}.remarkd-editor__edit-shell--code{background:var(--rmd-code-bg,#0f1626)}.remarkd-editor__edit-shell--code .remarkd-editor__input{color:var(--rmd-code-text,#f5f8ff)}.remarkd-editor__include{display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-small);border:1px dashed rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__include-title{font-weight:600}.remarkd-editor__include-meta{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__include--missing{border-style:solid;border-color:rgb(var(--zn-color-error))}.remarkd-editor__include-scope{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__include-link{margin-left:auto;font-size:var(--zn-font-size-small)}.remarkd-editor__conditional{border-left:3px solid rgba(var(--zn-primary),0.5);padding-left:var(--zn-spacing-small)}.remarkd-editor__conditional-label{display:inline-flex;align-items:center;gap:4px;margin-bottom:var(--zn-spacing-x-small);color:rgb(var(--zn-primary));font-size:0.75rem;text-transform:uppercase;letter-spacing:0.04em}.remarkd-editor__meta{display:flex;flex-wrap:wrap;gap:var(--zn-spacing-x-small)}.remarkd-editor__variable{display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);padding:2px var(--zn-spacing-x-small);border:1px dashed rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);font-size:0.875rem}.remarkd-editor__variable-name{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.remarkd-editor__variable-state{color:rgb(var(--zn-text-body));font-style:italic}.remarkd-editor__var{padding:0 2px;border-radius:3px;background:rgba(var(--zn-primary),0.12);color:rgb(var(--zn-primary));font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.remarkd-editor__include-picker{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-small);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__include-picker-head{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__include-filter{flex:1 1 auto}.remarkd-editor__include-option{display:flex;justify-content:space-between;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);border:0;border-radius:var(--zn-border-radius);background:none;cursor:pointer;text-align:left}.remarkd-editor__include-option:hover:not(:disabled){background:var(--zn-color-neutral-100)}.remarkd-editor__include-option:disabled{cursor:default;opacity:0.6}.remarkd-editor__include-option-meta,.remarkd-editor__include-picker-empty{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__image-controls{display:flex;flex-direction:column;gap:var(--zn-spacing-small);border:1px solid rgb(var(--zn-primary));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);padding:var(--zn-spacing-small)}.remarkd-editor__image-controls-preview{text-align:left}.remarkd-editor__image-controls-preview--center{text-align:center}.remarkd-editor__image-controls-preview--right{text-align:right}.remarkd-editor__image-controls-preview img{max-width:100%;max-height:240px}.remarkd-editor__image-row{display:flex;align-items:flex-end;gap:var(--zn-spacing-small);flex-wrap:wrap}.remarkd-editor__image-field{display:flex;flex-direction:column;gap:2px}.remarkd-editor__image-field span{font-size:var(--zn-input-label-font-size-small);color:var(--zn-input-label-color);font-weight:var(--zn-font-weight-semibold)}.remarkd-editor__image-field input{border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);color:inherit;font:inherit;font-size:0.875rem;padding:4px 8px;outline:none}.remarkd-editor__image-field input:focus{border-color:rgb(var(--zn-primary))}.remarkd-editor__image-field:first-child input{width:100%}.remarkd-editor__image-buttons{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__image-buttons-spacer{margin-left:auto}.remarkd-editor__image-picker{display:flex;align-items:flex-start;gap:var(--zn-spacing-x-small);margin:var(--zn-spacing-x-small) 0}.remarkd-editor__image-picker zn-file{flex:1}.remarkd-editor__add{padding:var(--zn-spacing-x-small);min-height:1.8em;color:var(--zn-color-neutral-400,#9aa4b2);cursor:text}.remarkd-editor__edit-wrap{position:relative}.remarkd-editor__validation{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}.remarkd-editor__link-picker{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);margin-top:var(--zn-spacing-x-small);padding:var(--zn-spacing-small);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__link-picker-head{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__link-filter{flex:1 1 auto}.remarkd-editor__link-option{display:flex;justify-content:space-between;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);border:0;border-radius:var(--zn-border-radius);background:none;cursor:pointer;text-align:left}.remarkd-editor__link-option:hover{background:var(--zn-color-neutral-100)}.remarkd-editor__link-option-meta,.remarkd-editor__link-picker-empty{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__link--missing{text-decoration-line:underline;text-decoration-style:wavy;text-decoration-color:rgb(var(--zn-color-error))}`;var W2=/^include::([^[]+)\[(.*)]\s*$/,Q2="kb:(?:document|category|page)\\/[A-Za-z0-9_-]+",rq=new RegExp(`^${Q2}$`),iq=new RegExp(Q2,"g"),nq=/^:([A-Za-z0-9_-]+)(!)?:\s*(.*)$/,oq=/^\.([^.\s].*)$/,aq=/^\[.+]$/;function sq(o){let i=nq.exec(o);if(i)return{kind:"attribute",name:i[1],value:i[3],unset:!!i[2]};let t=oq.exec(o);return t?{kind:"title",text:t[1]}:aq.test(o)?{kind:"bracket",text:o}:null}function lq(o){let i=o.split(`
|
|
4401
|
+
`+r:i.push(r)}return i}function mg(o,i){let t=new F2(o,!1,i.options);return t.attrs=i.attrs,t.parse().replace(/^<div class="remarkd-section section--level0 section--with-content">/,"").replace(/<\/div>$/,"")}function U2(o,i,t=0){if(t>10)return o;let r=[];for(let n of o){let a=n.match(/^t::partial::(.*)$/);if(!a){r.push(n);continue}let[s,l]=KL(a[1]??""),p=j2(i,s);if(p===null){r.push(`File not found: ${s}`);continue}let h=V2(p);for(YL(l,"strip-title")&&(h[0]??"").startsWith("=")&&(h=h.slice(1));h.length&&h[h.length-1].trim()==="";)h.pop();let m=Number.parseInt(l["drop-last"]??"0",10);m>0&&h.splice(-m),r.push(...U2(h,i,t+1))}return r}function KL(o){let i=o.trim(),t={},r=i.match(/^(.*?)\[([^\]]*)]$/);if(r){i=r[1].trim();for(let n of r[2].split(",")){let a=n.trim();if(!a)continue;let s=a.indexOf("=");s===-1?t[a]="true":t[a.slice(0,s).trim()]=a.slice(s+1).trim().replace(/^["']|["']$/g,"")}}return[i,t]}function YL(o,i){return i in o?!["0","false","no"].includes(o[i].toLowerCase()):!1}function j2(o,i){if(o.partials&&Object.prototype.hasOwnProperty.call(o.partials,i))return o.partials[i];let t=globalThis.process,r=t?.getBuiltinModule?.("node:fs");if(!r?.existsSync||!r?.readFileSync)return null;let n=QL(o.projectRoot||t?.cwd?.()||"",i);return r.existsSync(n)?r.readFileSync(n,"utf8"):null}function QL(o,i){return/^(\/|[A-Za-z]:[\\/])/.test(i)||!o?i:`${o.replace(/[\\/]+$/,"")}/${i.replace(/^[\\/]+/,"")}`}function ol(o){let i=o.trim().replace(/^\[/,"").replace(/]$/,""),t=[],r={},n=/(^|[\s,]+)([^, =}]+)(=(("([^"]*)")|([^\s,}]*)))?/g,a;for(;a=n.exec(i);){let s=a[2],l=a[6]||a[7]||"";t.push(s),r[s]=l}return{raw:i,pos:t,named:r}}function XL(o){return!!o&&(o.pos[0]==="pros-cons"||o.pos[0]==="proscons"||"pros-cons"in o.named||"proscons"in o.named)}function Ua(o,i,t){return!o||!(i in o.named)?t:!["0","false","no","off"].includes((o.named[i]||"").toLowerCase())}function JL(o,i){let t=i===0?o?.named["con-icon"]||"\u274C":o?.named["pro-icon"]||"\u2705";return`<span class="pros-cons-icon">${jc(t)}</span>`}var ZL={"+1":"\u{1F44D}",thumbsup:"\u{1F44D}","-1":"\u{1F44E}",thumbsdown:"\u{1F44E}",eyes:"\u{1F440}",grinning:"\u{1F600}",grin:"\u{1F601}",joy:"\u{1F602}",smiley:"\u{1F603}",smile:"\u{1F604}",sweat_smile:"\u{1F605}",satisfied:"\u{1F606}",laughing:"\u{1F606}",innocent:"\u{1F607}",smiling_imp:"\u{1F608}",wink:"\u{1F609}",blush:"\u{1F60A}",yum:"\u{1F60B}",relieved:"\u{1F60C}",heart_eyes:"\u{1F60D}",sunglasses:"\u{1F60E}",smirk:"\u{1F60F}",neutral_face:"\u{1F610}",expressionless:"\u{1F611}",unamused:"\u{1F612}",sweat:"\u{1F613}",pensive:"\u{1F614}",confused:"\u{1F615}",confounded:"\u{1F616}",kissing:"\u{1F617}",kissing_heart:"\u{1F618}",kissing_smiling_eyes:"\u{1F619}",kissing_closed_eyes:"\u{1F61A}",stuck_out_tongue:"\u{1F61B}",stuck_out_tongue_winking_eye:"\u{1F61C}",stuck_out_tongue_closed_eyes:"\u{1F61D}",disappointed:"\u{1F61E}",worried:"\u{1F61F}",angry:"\u{1F620}",rage:"\u{1F621}",cry:"\u{1F622}",persevere:"\u{1F623}",triumph:"\u{1F624}",disappointed_relieved:"\u{1F625}",frowning:"\u{1F626}",anguished:"\u{1F627}",fearful:"\u{1F628}",weary:"\u{1F629}",sleepy:"\u{1F62A}",tired_face:"\u{1F62B}"};function Uc(o){return o.replace(/[-_]+/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function eq(o){return o.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function tq(o){let i=o.trim().match(/^(.+?)\s*(===|==|!=|<=|<|>=|>|in|nin)\s*(.+)$/);if(!i)return!1;let t=i[1].trim(),r=i[2],n=i[3].trim();switch(r){case"===":return t===n;case"==":return t==n;case"!=":return t!=n;case"<=":return t<=n;case"<":return t<n;case">=":return t>=n;case">":return t>n;case"in":return n.split(",").map(a=>a.trim()).includes(t);case"nin":return!n.split(",").map(a=>a.trim()).includes(t);default:return!1}}function jc(o){return o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}var $h=class{constructor(i,t){this.visibleCount=1/0;this.resizeRafId=0;this.host=i,this.options=t,i.addController(this),new ut(i,{callback:()=>{this.resizeRafId||(this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=0,this.measure()}))}})}hostUpdated(){this.measure()}measure(){let i=this.options.groups(),t=this.options.container();if(!i.length||!t)return;let r=getComputedStyle(t),n=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),a=[...t.children].filter(m=>!m.classList.contains("toolbar__group")).reduce((m,f)=>m+f.getBoundingClientRect().width,0),s=t.clientWidth-n-a;if(s<=0)return;i.forEach(m=>m.style.display="");let l=i.map(m=>m.getBoundingClientRect().width),h=l.reduce((m,f)=>m+f,0)<=s?i.length:this.countThatFit(l,s-(this.options.reserve??44));i.forEach((m,f)=>m.style.display=f<h?"":"none"),h!==this.visibleCount&&(this.visibleCount=h,this.host.requestUpdate())}countThatFit(i,t){let r=0,n=0;for(let a of i){if(r+a>t)break;r+=a,n++}return n}};var G2=_`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.remarkd-rendered{--rmd-accent:#2367c8;--rmd-border:#d9dee7;--rmd-muted:#5f6d80;--rmd-soft:#eef5ff;--rmd-code-bg:#0f1626;--rmd-code-text:#f5f8ff;color:#18202f;font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;word-wrap:break-word}.remarkd-rendered>.remarkd-section>:first-child,.remarkd-rendered>:first-child{margin-top:0}.remarkd-rendered p{margin:0 0 12px}.remarkd-rendered h1,.remarkd-rendered h2,.remarkd-rendered h3,.remarkd-rendered h4{line-height:1.2;margin:18px 0 10px}.remarkd-rendered h1{font-size:26px}.remarkd-rendered h2{font-size:21px}.remarkd-rendered h3{font-size:17px}.remarkd-rendered a{color:var(--rmd-accent)}.remarkd-rendered .btn{align-items:center;background:#f4f6f8;border:1px solid #cfd6df;border-radius:6px;color:#263241;cursor:pointer;display:inline-flex;font-weight:600;gap:6px;justify-content:center;line-height:1.2;margin:2px 4px 2px 0;min-height:36px;padding:8px 14px;text-align:center;text-decoration:none;transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,color 160ms ease;vertical-align:middle}.remarkd-rendered .btn:hover,.remarkd-rendered .btn:focus{background:#e9edf2;border-color:#b9c3cf;color:#182230;text-decoration:none}.remarkd-rendered .btn:focus{box-shadow:0 0 0 3px rgba(35,103,200,0.22);outline:none}.remarkd-rendered .btn--primary{background:#2367c8;border-color:#2367c8;color:#fff}.remarkd-rendered .btn--primary:hover,.remarkd-rendered .btn--primary:focus{background:#1d58ad;border-color:#1d58ad;color:#fff}.remarkd-rendered .btn--secondary{background:#263241;border-color:#263241;color:#fff}.remarkd-rendered .btn--secondary:hover,.remarkd-rendered .btn--secondary:focus{background:#1a2430;border-color:#1a2430;color:#fff}.remarkd-rendered .btn--success{background:#177245;border-color:#177245;color:#fff}.remarkd-rendered .btn--success:hover,.remarkd-rendered .btn--success:focus{background:#105d37;border-color:#105d37;color:#fff}.remarkd-rendered .btn--danger{background:#b42318;border-color:#b42318;color:#fff}.remarkd-rendered .btn--danger:hover,.remarkd-rendered .btn--danger:focus{background:#971b12;border-color:#971b12;color:#fff}.remarkd-rendered .monospace,.remarkd-rendered kbd{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.9em}.remarkd-rendered .monospace{background:#eef2f7;border-radius:4px;padding:1px 5px}.remarkd-rendered kbd{background:#f6f8fb;border:1px solid var(--rmd-border);border-bottom-width:2px;border-radius:5px;padding:1px 6px}.remarkd-rendered mark.highlight{background:#fff3bf;border-radius:3px;padding:0 3px}.remarkd-rendered .tooltip{border-bottom:1px dotted var(--rmd-muted);cursor:help}.remarkd-rendered sup.footnote,.remarkd-rendered sup.reference{color:var(--rmd-accent);font-size:0.75em}.remarkd-rendered ul,.remarkd-rendered ol{margin:0 0 12px;padding-left:24px}.remarkd-rendered li>p{margin:0 0 4px}.remarkd-rendered input[type=checkbox]{margin-right:4px;vertical-align:middle}.remarkd-rendered dl{margin:0 0 12px}.remarkd-rendered dt{font-weight:700}.remarkd-rendered dd{margin:0 0 8px 18px;color:var(--rmd-muted)}.remarkd-rendered blockquote{margin:0 0 12px;padding:4px 16px;border-left:4px solid var(--rmd-border);color:var(--rmd-muted)}.remarkd-rendered .hint-note{margin:0 0 12px;padding:12px 14px;border-left:4px solid var(--rmd-accent);background:var(--rmd-soft);border-radius:0 6px 6px 0}.remarkd-rendered .hint-caption{color:var(--rmd-accent)}.remarkd-rendered .hint-tip,.remarkd-rendered .hint-warning,.remarkd-rendered .hint-important,.remarkd-rendered .hint-caution,.remarkd-rendered .hint-danger,.remarkd-rendered .hint-success,.remarkd-rendered .hint-notice{margin:0 0 12px;padding:12px 14px;border-left:4px solid var(--rmd-accent);background:#f6f8fb;border-radius:0 6px 6px 0}.remarkd-rendered .hint-tip,.remarkd-rendered .hint-success{border-left-color:#1f9d57;background:#eafaf1}.remarkd-rendered .hint-tip .hint-caption,.remarkd-rendered .hint-success .hint-caption{color:#1f7a47}.remarkd-rendered .hint-warning,.remarkd-rendered .hint-caution{border-left-color:#b7791f;background:#fdf6e3}.remarkd-rendered .hint-warning .hint-caption,.remarkd-rendered .hint-caution .hint-caption{color:#8a5a07}.remarkd-rendered .hint-danger{border-left-color:#c0392b;background:#fdecea}.remarkd-rendered .hint-danger .hint-caption{color:#a02b1f}.remarkd-rendered .verse-block{margin:0 0 12px;padding:12px 14px;background:#f6f8fb;border-radius:6px;font-family:inherit;white-space:pre-wrap}.remarkd-rendered code{display:block;margin:0 0 12px;padding:14px 16px;border-radius:8px;background:var(--rmd-code-bg);color:var(--rmd-code-text);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.5;white-space:pre;overflow-x:auto}.remarkd-rendered .listing-block{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered .listing-block .content{padding:14px 16px;background:#f6f8fb;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;white-space:pre-wrap}.remarkd-rendered .callout{list-style:none;margin:0 0 6px;padding-left:28px;position:relative;color:var(--rmd-muted)}.remarkd-rendered .callout::before{content:attr(data-marker);position:absolute;left:0;top:0;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--rmd-accent);color:#fff;font-size:12px;font-weight:700}.remarkd-rendered .example-block,.remarkd-rendered .sidebar-block{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px}.remarkd-rendered .example-block .content,.remarkd-rendered .sidebar-block .content{padding:14px 16px}.remarkd-rendered .sidebar-block{background:#f6f8fb}.remarkd-rendered .title{display:block;font-weight:700;color:var(--rmd-muted);margin-bottom:6px}.remarkd-rendered .accordion-container{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered button.accordion{display:block;width:100%;text-align:left;padding:11px 14px;border:0;border-top:1px solid var(--rmd-border);background:#f6f8fb;font:inherit;font-weight:650;cursor:pointer}.remarkd-rendered button.accordion:first-child{border-top:0}.remarkd-rendered .accordion-container .panel{padding:12px 14px}.remarkd-rendered .tab-group{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered .tab-header{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:6px 6px 0;list-style:none;background:#f6f8fb;border-bottom:1px solid var(--rmd-border)}.remarkd-rendered .tab-header a{display:block;padding:7px 12px;border-radius:6px 6px 0 0;text-decoration:none;color:var(--rmd-muted);font-weight:650}.remarkd-rendered .tab-header a.active{background:#fff;color:var(--rmd-accent)}.remarkd-rendered .tabs .tab{padding:14px}.remarkd-rendered .tabs .tab+.tab{border-top:1px dashed var(--rmd-border)}.remarkd-rendered .steps-container{margin:0 0 12px;counter-reset:rmd-step}.remarkd-rendered .step{display:flex;gap:14px;padding:12px 0;border-top:1px solid var(--rmd-border)}.remarkd-rendered .step:first-child{border-top:0}.remarkd-rendered .step-content{flex:1}.remarkd-rendered .step-content h3{margin:0 0 6px;counter-increment:rmd-step}.remarkd-rendered .step-content h3::before{content:counter(rmd-step) ". ";color:var(--rmd-accent)}.remarkd-rendered .step-image img{max-width:120px;border-radius:6px}.remarkd-rendered .table-block{margin:0 0 12px}.remarkd-rendered .remarkd-table{border-collapse:collapse;width:100%}.remarkd-rendered .remarkd-table th,.remarkd-rendered .remarkd-table td{border:1px solid var(--rmd-border);padding:8px 10px;text-align:left}.remarkd-rendered .remarkd-table th{background:#eef2f7}.remarkd-rendered .remarkd-table--striped tbody tr:nth-child(even) td{background:#f8fafc}.remarkd-rendered .pros-cons-table th{background:#2367a6;color:#fff;font-size:1rem}.remarkd-rendered .pros-cons-table{table-layout:fixed}.remarkd-rendered .pros-cons-table .pros-cons-cell{width:50%}.remarkd-rendered .pros-cons-table--background .pros-cons-cell--con{background:#fae9e7}.remarkd-rendered .pros-cons-table--background .pros-cons-cell--pro{background:#e8f4ec}.remarkd-rendered .pros-cons-table--background.remarkd-table--striped tbody tr:nth-child(even) .pros-cons-cell--con{background:#f5d8d5}.remarkd-rendered .pros-cons-table--background.remarkd-table--striped tbody tr:nth-child(even) .pros-cons-cell--pro{background:#d4eadb}.remarkd-rendered .pros-cons-table--text-color .pros-cons-cell--con{color:#a62b25}.remarkd-rendered .pros-cons-table--text-color .pros-cons-cell--pro{color:#155d30}.remarkd-rendered .pros-cons-table .pros-cons-icon{display:inline-block;margin-right:8px}.remarkd-rendered img{max-width:100%}.remarkd-rendered img.block{display:block;margin:0 0 12px}.remarkd-rendered .align-center{text-align:center}.remarkd-rendered .align-right{text-align:right}.remarkd-rendered .align-center img.block{margin-left:auto;margin-right:auto}.remarkd-rendered .align-right img.block{margin-left:auto}.remarkd-rendered .video-container{position:relative;width:100%;margin:0 0 12px;background:#000;border-radius:8px;overflow:hidden}.remarkd-rendered .video-container iframe,.remarkd-rendered .video-container video{position:absolute;inset:0;width:100%;height:100%;border:0}.remarkd-rendered ol.reference{font-size:0.9em;color:var(--rmd-muted)}.remarkd-rendered .reference-tobody{text-decoration:none;margin-right:4px}.remarkd-rendered .remarkd-meter-label{display:block;font-size:0.85em;color:var(--rmd-muted)}.remarkd-rendered .remarkd-meter{width:180px;max-width:100%}.remarkd-rendered hr{border:0;border-top:1px solid var(--rmd-border);margin:18px 0}:host{display:block;overflow:hidden}.remarkd-editor{position:relative;display:flex;flex-direction:column;max-height:var(--remarkd-editor-max-height,100dvh);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.remarkd-editor__toolbar{display:flex;flex:none;gap:2px;flex-wrap:nowrap;padding:var(--zn-spacing-x-small);border-bottom:1px solid rgb(var(--zn-border-color))}.toolbar__group{display:flex;flex-shrink:0;gap:2px;align-items:center}.toolbar__group+.toolbar__group::before{content:"";align-self:stretch;margin-inline:4px;border-left:1px solid rgb(var(--zn-border-color))}.remarkd-editor__toolbar-more zn-menu{--zn-menu-max-height:var(--auto-size-available-height,60dvh)}.remarkd-editor__body{padding:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-large) 52px;min-height:10rem;overflow-y:auto}.remarkd-editor__body--raw{display:flex;padding-left:var(--zn-spacing-large)}.remarkd-editor__raw-toggle{margin-left:auto}.remarkd-editor__raw{flex:1;min-height:10rem;resize:vertical;border:0;background:transparent;color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.875rem;line-height:1.5;padding:0;outline:none}.remarkd-editor--disabled{opacity:0.6;pointer-events:none}.remarkd-editor__block{position:relative;border-radius:var(--zn-border-radius)}.remarkd-editor__actions{position:absolute;left:-40px;top:4px;display:flex;flex-direction:column;align-items:center;gap:2px;opacity:0;transition:opacity 0.15s ease}.remarkd-editor__block:hover .remarkd-editor__actions,.remarkd-editor__actions:focus-within{opacity:1}.remarkd-editor__delete{position:absolute;top:2px;right:2px;z-index:5;opacity:0;transition:opacity 0.15s ease}.remarkd-editor__block:hover .remarkd-editor__delete,.remarkd-editor__delete:focus-within{opacity:1}.remarkd-editor__drag-handle{display:inline-flex;align-items:center;padding:2px;color:var(--zn-color-neutral-400,#9aa4b2);cursor:grab;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.remarkd-editor__drag-handle:active{cursor:grabbing}.remarkd-editor__ghost{position:fixed;top:0;left:0;z-index:20;pointer-events:none;opacity:0.9;background:var(--zn-color-neutral-0,white);border-radius:var(--zn-border-radius);box-shadow:0 8px 24px rgba(0,0,0,0.15);max-width:50%;max-height:160px;overflow:hidden}.remarkd-editor__block--dragging{opacity:0.4}.remarkd-editor__block--drop-before::before,.remarkd-editor__block--drop-after::after{content:"";position:absolute;left:0;right:0;height:6px;border-radius:3px;background:rgba(var(--zn-primary),0.6);pointer-events:none}.remarkd-editor__block--drop-before::before{top:-4px}.remarkd-editor__block--drop-after::after{bottom:-4px}.remarkd-editor__rendered{padding:var(--zn-spacing-x-small);border-radius:var(--zn-border-radius);cursor:text}.remarkd-editor__rendered:hover{background:var(--zn-color-neutral-100)}.remarkd-editor__edit-shell{border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);padding:var(--zn-spacing-x-small)}.remarkd-editor__edit-shell:focus-within{border-top-color:rgb(var(--zn-primary));border-right-color:rgb(var(--zn-primary));border-bottom-color:rgb(var(--zn-primary))}.remarkd-editor__edit-shell:not([class*=hint-]):focus-within{border-left-color:rgb(var(--zn-primary))}.remarkd-editor__input{display:block;width:100%;resize:none;overflow:hidden;border:0;background:transparent;color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.875rem;line-height:1.5;padding:0;outline:none}.remarkd-editor__edit-shell[class*=hint-] .remarkd-editor__input{font:inherit}.remarkd-editor__edit-shell--h1 .remarkd-editor__input,.remarkd-editor__edit-shell--h2 .remarkd-editor__input,.remarkd-editor__edit-shell--h3 .remarkd-editor__input{font-family:inherit;font-weight:700;line-height:1.2}.remarkd-editor__edit-shell--h1 .remarkd-editor__input{font-size:26px}.remarkd-editor__edit-shell--h2 .remarkd-editor__input{font-size:21px}.remarkd-editor__edit-shell--h3 .remarkd-editor__input{font-size:17px}.remarkd-editor__edit-shell--code{background:var(--rmd-code-bg,#0f1626)}.remarkd-editor__edit-shell--code .remarkd-editor__input{color:var(--rmd-code-text,#f5f8ff)}.remarkd-editor__include{display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-small);border:1px dashed rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__include-title{font-weight:600}.remarkd-editor__include-meta{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__include--missing{border-style:solid;border-color:rgb(var(--zn-color-error))}.remarkd-editor__include-scope{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__include-link{margin-left:auto;font-size:var(--zn-font-size-small)}.remarkd-editor__conditional{border-left:3px solid rgba(var(--zn-primary),0.5);padding-left:var(--zn-spacing-small)}.remarkd-editor__conditional-label{display:inline-flex;align-items:center;gap:4px;margin-bottom:var(--zn-spacing-x-small);color:rgb(var(--zn-primary));font-size:0.75rem;text-transform:uppercase;letter-spacing:0.04em}.remarkd-editor__meta{display:flex;flex-wrap:wrap;gap:var(--zn-spacing-x-small)}.remarkd-editor__variable{display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);padding:2px var(--zn-spacing-x-small);border:1px dashed rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);font-size:0.875rem}.remarkd-editor__variable-name{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.remarkd-editor__variable-state{color:rgb(var(--zn-text-body));font-style:italic}.remarkd-editor__var{padding:0 2px;border-radius:3px;background:rgba(var(--zn-primary),0.12);color:rgb(var(--zn-primary));font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.remarkd-editor__include-picker{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-small);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__include-picker-head{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__include-filter{flex:1 1 auto}.remarkd-editor__include-option{display:flex;justify-content:space-between;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);border:0;border-radius:var(--zn-border-radius);background:none;cursor:pointer;text-align:left}.remarkd-editor__include-option:hover:not(:disabled){background:var(--zn-color-neutral-100)}.remarkd-editor__include-option:disabled{cursor:default;opacity:0.6}.remarkd-editor__include-option-meta,.remarkd-editor__include-picker-empty{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__image-controls{display:flex;flex-direction:column;gap:var(--zn-spacing-small);border:1px solid rgb(var(--zn-primary));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);padding:var(--zn-spacing-small)}.remarkd-editor__image-controls-preview{text-align:left}.remarkd-editor__image-controls-preview--center{text-align:center}.remarkd-editor__image-controls-preview--right{text-align:right}.remarkd-editor__image-controls-preview img{max-width:100%;max-height:240px}.remarkd-editor__image-row{display:flex;align-items:flex-end;gap:var(--zn-spacing-small);flex-wrap:wrap}.remarkd-editor__image-field{display:flex;flex-direction:column;gap:2px}.remarkd-editor__image-field span{font-size:var(--zn-input-label-font-size-small);color:var(--zn-input-label-color);font-weight:var(--zn-font-weight-semibold)}.remarkd-editor__image-field input{border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);color:inherit;font:inherit;font-size:0.875rem;padding:4px 8px;outline:none}.remarkd-editor__image-field input:focus{border-color:rgb(var(--zn-primary))}.remarkd-editor__image-field:first-child input{width:100%}.remarkd-editor__image-buttons{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__image-buttons-spacer{margin-left:auto}.remarkd-editor__image-picker{display:flex;align-items:flex-start;gap:var(--zn-spacing-x-small);margin:var(--zn-spacing-x-small) 0}.remarkd-editor__image-picker zn-file{flex:1}.remarkd-editor__add{padding:var(--zn-spacing-x-small);min-height:1.8em;color:var(--zn-color-neutral-400,#9aa4b2);cursor:text}.remarkd-editor__edit-wrap{position:relative}.remarkd-editor__validation{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}.remarkd-editor__link-picker{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);margin-top:var(--zn-spacing-x-small);padding:var(--zn-spacing-small);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__link-picker-head{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__link-filter{flex:1 1 auto}.remarkd-editor__link-option{display:flex;justify-content:space-between;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);border:0;border-radius:var(--zn-border-radius);background:none;cursor:pointer;text-align:left}.remarkd-editor__link-option:hover{background:var(--zn-color-neutral-100)}.remarkd-editor__link-option-meta,.remarkd-editor__link-picker-empty{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__link--missing{text-decoration-line:underline;text-decoration-style:wavy;text-decoration-color:rgb(var(--zn-color-error))}`;var W2=/^include::([^[]+)\[(.*)]\s*$/,Q2="kb:(?:document|category|page)\\/[A-Za-z0-9_-]+",rq=new RegExp(`^${Q2}$`),iq=new RegExp(Q2,"g"),nq=/^:([A-Za-z0-9_-]+)(!)?:\s*(.*)$/,oq=/^\.([^.\s].*)$/,aq=/^\[.+]$/;function sq(o){let i=nq.exec(o);if(i)return{kind:"attribute",name:i[1],value:i[3],unset:!!i[2]};let t=oq.exec(o);return t?{kind:"title",text:t[1]}:aq.test(o)?{kind:"bracket",text:o}:null}function lq(o){let i=o.split(`
|
|
4401
4402
|
`).map(r=>r.trim()).filter(r=>r!=="");if(!i.length)return null;let t=[];for(let r of i){let n=sq(r);if(!n)return null;t.push(n)}return t}var K2="|===",Y2=/^\|={3,}$/,Gc=/^(?:ifdef|ifndef)::[^[]*\[]$/,al=/^ifeval::\[[^\]]*]$/,X2=/^endif::\[]$/,cq=/^(ifdef|ifndef|iftrue|iffalse|ifempty|ifnempty)::([^[]+)\[([^\]]+)]\s*$/;function dq(o,i){let t=i.replace(/[\r\n]+/g," ").replace(/\[/g,"(").replace(/]/g,")").trim();return`include::${o}[${t}]`}function pq(o,i){return`[${i.replace(/[\r\n]/g," ").replace(/\[/g,"(").replace(/]/g,")").trim()}](${o})`}var hq=P2(ug),uq=200;function mq(o){let i=o.indexOf("(");if(i===-1||!o.endsWith(")"))return null;let t=o.slice(0,i).replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`^${t}\\([^)]*\\)`)}function fg(o){try{return H2(o)}catch{return`<pre class="remarkd-editor__unparsed">${o.replace(/[&<>]/g,i=>({"&":"&","<":"<",">":">"})[i])}</pre>`}}function J2(o,i){let t=1;for(let r=i;r<o.length;r++){let n=o[r].trimEnd();if(Gc.test(n)||al.test(n))t++;else if(X2.test(n)&&--t===0)return r}return-1}var Z2={ifdef:"is defined",ifndef:"is not defined",iftrue:"is true",iffalse:"is false",ifempty:"is empty",ifnempty:"is not empty"};function ek(o){if(al.test(o))return`shown when ${o.slice(9,-1)}`;let i=o.slice(0,o.indexOf("::"));return`shown when ${o.slice(o.indexOf("::")+2,o.indexOf("["))} ${Z2[i]??"is defined"}`}function fq(o,i){return`shown when ${i} ${Z2[o]??"is defined"}`}function tk(o){let i=[],t=[],r=()=>{t.length&&i.push({kind:"content",lines:t}),t=[]};for(let n=0;n<o.length;n++){let a=o[n].trimEnd();if(Gc.test(a)||al.test(a)){r();let s=J2(o,n+1),l=o.slice(n+1,s===-1?void 0:s);i.push({kind:"nested",label:ek(a),parts:tk(l)}),n=s===-1?o.length:s;continue}t.push(o[n])}return r(),i}function gq(o){let i=o.length===1&&o[0].kind==="content"?o[0]:void 0;if(o.length===0||i){let t=i?.lines.join(`
|
|
4402
4403
|
`).trim()??"";return u`
|
|
4403
4404
|
<div class="remarkd-editor__conditional-body remarkd-rendered remarkd-editor__rendered--parsed">
|
|
@@ -4748,7 +4749,7 @@ endif::[]`,caretOffset:9},{key:"inline-formatting",label:"Strong",icon:"bold@lu"
|
|
|
4748
4749
|
</div>
|
|
4749
4750
|
`:B}
|
|
4750
4751
|
</div>
|
|
4751
|
-
`}};$e.styles=[z(Ee),z(rk)],$e.dependencies={"zn-chip":jn,"zn-inline-edit":op,"zn-input":
|
|
4752
|
+
`}};$e.styles=[z(Ee),z(rk)],$e.dependencies={"zn-chip":jn,"zn-inline-edit":op,"zn-input":st,"zn-option":lt,"zn-remarkd-editor":bg,"zn-select":Be,"zn-textarea":Xo},c([d()],$e.prototype,"name",2),c([d()],$e.prototype,"value",2),c([d()],$e.prototype,"label",2),c([d({attribute:"help-text"})],$e.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],$e.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],$e.prototype,"required",2),c([d({type:Boolean,reflect:!0})],$e.prototype,"flush",2),c([d({attribute:"input-type"})],$e.prototype,"inputType",2),c([d({attribute:"textarea-rows",type:Number})],$e.prototype,"textareaRows",2),c([d({type:Boolean,attribute:"allow-raw"})],$e.prototype,"allowRaw",2),c([d({attribute:"attachment-url"})],$e.prototype,"attachmentUrl",2),c([d({attribute:"include-url"})],$e.prototype,"includeUrl",2),c([d({attribute:"link-url"})],$e.prototype,"linkUrl",2),c([d({type:Boolean,reflect:!0,attribute:"inline-edit"})],$e.prototype,"inlineEdit",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],$e.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],$e.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],$e.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],$e.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],$e.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],$e.prototype,"slashRecentKey",2),c([d({attribute:!1})],$e.prototype,"slashItemsProvider",2),c([d({type:Boolean,reflect:!0})],$e.prototype,"grouped",2),c([d({type:Object})],$e.prototype,"languages",2),c([d({type:Object})],$e.prototype,"values",2),c([Ce()],$e.prototype,"defaultValue",2),c([I()],$e.prototype,"_activeLanguage",2);var vq=$e;$e.define("zn-translations");var ik=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.key{cursor:pointer;display:flex;flex-direction:row;gap:var(--zn-spacing-medium);align-items:center;text-align:left}.key__description{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-body));opacity:0.7;line-height:var(--zn-line-height-normal);-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([active]) .key__label{color:rgb(var(--zn-text-heading));font-weight:600}:host(:not([active])) .key__description{opacity:0.6}:host(:not([active])) zn-chip{--zn-chip-color:rgb(var(--zn-text-body));opacity:0.5}`;var Ti=class extends k{constructor(){super(...arguments);this.icon="";this.attribute="";this.value="";this.color="primary";this.active=!1;this.iconSize=24}_handleClick(){this.active=!this.active,this.emit("zn-change")}render(){let t=this.active?this.color:"transparent";return u`
|
|
4752
4753
|
<div class="key" @click="${this._handleClick}">
|
|
4753
4754
|
<zn-chip
|
|
4754
4755
|
.icon="${this.icon}"
|
|
@@ -4827,7 +4828,7 @@ endif::[]`,caretOffset:9},{key:"inline-formatting",label:"Strong",icon:"bold@lu"
|
|
|
4827
4828
|
</span>
|
|
4828
4829
|
`}
|
|
4829
4830
|
</button>
|
|
4830
|
-
`}};jt.styles=[z($d),z(ok)],jt.dependencies={"zn-icon":yo},c([I()],jt.prototype,"currentState",2),c([I()],jt.prototype,"errorMessage",2),c([d({attribute:"idle-text"})],jt.prototype,"idleText",2),c([d({attribute:"processing-text"})],jt.prototype,"processingText",2),c([d({attribute:"success-text"})],jt.prototype,"successText",2),c([d({attribute:"failure-text"})],jt.prototype,"failureText",2),c([d({attribute:"redirect-url"})],jt.prototype,"redirectUrl",2),c([d({type:Number,attribute:"redirect-delay"})],jt.prototype,"redirectDelay",2),c([d({type:Number,attribute:"failure-reset-delay"})],jt.prototype,"failureResetDelay",2),c([d({type:Boolean,reflect:!0})],jt.prototype,"disabled",2),c([d()],jt.prototype,"name",2),c([d()],jt.prototype,"value",2);var wq=jt;jt.define("zn-animated-button");var ak=_`:host{display:block}.panel__body{gap:var(--zn-spacing-medium)}::slotted(:not([slot])){grid-column:1/-1}.translation-group__language-select::part(form-control-label){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.translation-group__actions{display:flex;align-items:center;gap:var(--zn-spacing-small);max-width:var(--zn-container-lg)}.translation-group__actions-spacer{order:1;flex:1 1 auto}::slotted([slot=actions]){order:2}::slotted([slot=actions][align=start]){order:0}.panel--has-actions .panel__body>.translation-group__actions{border:0}.translation-group--inline .panel__inner,.translation-group--inline .panel__content,.translation-group--inline .panel__body{overflow:visible}`;var hi=class extends
|
|
4831
|
+
`}};jt.styles=[z($d),z(ok)],jt.dependencies={"zn-icon":yo},c([I()],jt.prototype,"currentState",2),c([I()],jt.prototype,"errorMessage",2),c([d({attribute:"idle-text"})],jt.prototype,"idleText",2),c([d({attribute:"processing-text"})],jt.prototype,"processingText",2),c([d({attribute:"success-text"})],jt.prototype,"successText",2),c([d({attribute:"failure-text"})],jt.prototype,"failureText",2),c([d({attribute:"redirect-url"})],jt.prototype,"redirectUrl",2),c([d({type:Number,attribute:"redirect-delay"})],jt.prototype,"redirectDelay",2),c([d({type:Number,attribute:"failure-reset-delay"})],jt.prototype,"failureResetDelay",2),c([d({type:Boolean,reflect:!0})],jt.prototype,"disabled",2),c([d()],jt.prototype,"name",2),c([d()],jt.prototype,"value",2);var wq=jt;jt.define("zn-animated-button");var ak=_`:host{display:block}.panel__body{gap:var(--zn-spacing-medium)}::slotted(:not([slot])){grid-column:1/-1}.translation-group__language-select::part(form-control-label){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.translation-group__actions{display:flex;align-items:center;gap:var(--zn-spacing-small);max-width:var(--zn-container-lg)}.translation-group__actions-spacer{order:1;flex:1 1 auto}::slotted([slot=actions]){order:2}::slotted([slot=actions][align=start]){order:0}.panel--has-actions .panel__body>.translation-group__actions{border:0}.translation-group--inline .panel__inner,.translation-group--inline .panel__content,.translation-group--inline .panel__body{overflow:visible}`;var hi=class extends tt{constructor(){super(...arguments);this._slotController=new Y(this,"actions","footer");this.label="";this.helpText="";this.inline=!1;this.languageLabel="Edit Languages";this.languages={en:"EN"};this._activeLanguage="en";this._form=null;this.handleSlotChange=()=>{this.syncChildren()};this.handleLanguageSelect=t=>{t.stopPropagation();let r=t.target.value;typeof r=="string"&&r&&r!==this._activeLanguage&&this.switchLanguage(r)};this.handleLanguageInput=t=>{t.stopPropagation()};this.handleChildChange=()=>{this.requestUpdate()};this.handleFormReset=()=>{requestAnimationFrame(()=>this.requestUpdate())}}connectedCallback(){super.connectedCallback(),this._form=this.closest("form"),this._form?.addEventListener("reset",this.handleFormReset)}disconnectedCallback(){super.disconnectedCallback(),this._form?.removeEventListener("reset",this.handleFormReset),this._form=null}firstUpdated(t){super.firstUpdated(t),this.syncChildren()}updated(t){super.updated(t),t.has("languages")&&this.syncChildLanguages()}getAllTranslations(){return[...this.querySelectorAll("zn-translations")]}syncChildren(){this.getAllTranslations().forEach(t=>{t.grouped=!0,t.languages=this.languages,t.setActiveLanguage(this._activeLanguage)})}languageState(t){let r=this.getAllTranslations(),n=r.filter(a=>a.hasTranslation(t)).length;return r.length>0&&n===r.length?{type:"success",label:"Translated"}:n>0?{type:"warning",label:"Partial"}:{type:"error",label:t==="en"?"Empty":"English"}}displayName(t){return this.languages[t]??t.toUpperCase()}syncChildLanguages(){this.getAllTranslations().forEach(t=>{t.languages=this.languages})}switchLanguage(t){this._activeLanguage=t,this.getAllTranslations().forEach(r=>r.setActiveLanguage(t)),this.emit("zn-language-change",{detail:{language:t}})}render(){let t=this._slotController.test("actions"),r=this._slotController.test("footer"),n=this.caption||this.label,a=new Set;this.getAllTranslations().forEach(m=>m.getValueLanguages().filter(f=>!Object.prototype.hasOwnProperty.call(this.languages,f)).forEach(f=>a.add(f)));let s=[...Object.keys(this.languages),...a],l=s.length>1,p=s.filter(m=>this.languageState(m).type==="success").length,h={label:`${p}/${s.length}`,type:p===s.length?"success":p>0?"warning":"error"};return u`
|
|
4831
4832
|
<div part="base" class="${M({panel:!0,"panel--flush":this.flush||this.inline,"panel--transparent":this.transparent||this.inline,"translation-group--inline":this.inline,"panel--has-actions":t,"panel--has-footer":r})}">
|
|
4832
4833
|
|
|
4833
4834
|
<div class="panel__inner">
|
|
@@ -4875,7 +4876,7 @@ endif::[]`,caretOffset:9},{key:"inline-formatting",label:"Strong",icon:"bold@lu"
|
|
|
4875
4876
|
${r?u`
|
|
4876
4877
|
<slot name="footer" class="panel__footer"></slot>`:null}
|
|
4877
4878
|
</div>
|
|
4878
|
-
</div>`}};hi.styles=[
|
|
4879
|
+
</div>`}};hi.styles=[tt.styles,z(ak)],hi.dependencies={"zn-chip":jn,"zn-form-group":dg,"zn-option":lt,"zn-select":Be},c([d()],hi.prototype,"label",2),c([d({attribute:"help-text"})],hi.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],hi.prototype,"inline",2),c([d({attribute:"language-label"})],hi.prototype,"languageLabel",2),c([d({type:Object})],hi.prototype,"languages",2),c([I()],hi.prototype,"_activeLanguage",2);var zq=hi;hi.define("zn-translation-group");var sk=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;line-height:var(--zn-line-height-dense);--zn-priority-list-item-gap:var(--zn-spacing-2x-small);--zn-priority-list-item-padding:var(--zn-spacing-small) var(--zn-spacing-medium);--zn-priority-list-actions-gap:var(--zn-spacing-small);--zn-priority-list-handle-color:var(--zn-color-neutral-400);--zn-priority-list-priority-color:var(--zn-color-neutral-600)}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.priority-list{display:flex;flex-direction:column;gap:var(--zn-priority-list-item-gap)}.priority-list--disabled{opacity:0.5;pointer-events:none}.priority-list--drag-active .priority-list__item{transition:transform 200ms ease,opacity 200ms ease,box-shadow 200ms ease}.priority-list__item{display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-priority-list-item-padding);background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:element;position:relative}.priority-list__item:hover{background:rgb(var(--zn-panel-hover,var(--zn-panel)));border-color:rgb(var(--zn-color-primary-500))}.priority-list__item:hover .priority-list__handle{color:rgb(var(--zn-color-primary-500))}.priority-list__item:focus-visible{outline:2px solid rgb(var(--zn-color-primary-500));outline-offset:-1px;border-color:rgb(var(--zn-color-primary-500))}.priority-list__item:active{cursor:grabbing}.priority-list__item--dragging{opacity:0.3;border-style:dashed;border-color:rgb(var(--zn-color-primary-400));background:rgb(var(--zn-color-primary-50,var(--zn-panel)));box-shadow:none}.priority-list__item--disabled{cursor:not-allowed;opacity:0.6}.priority-list__item--disabled:hover{background:rgb(var(--zn-panel));border-color:rgb(var(--zn-border-color))}.priority-list__handle{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--zn-priority-list-handle-color);cursor:grab;transition:color 150ms ease}.priority-list__handle:active{cursor:grabbing}.priority-list__priority{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:1.5em;font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-semibold);color:var(--zn-priority-list-priority-color)}.priority-list__content{flex:1;min-width:0;overflow:hidden;pointer-events:none}.priority-list__content ::slotted(*){pointer-events:none;-webkit-user-drag:none}.priority-list__actions{display:flex;align-items:center;gap:var(--zn-priority-list-actions-gap);flex-shrink:0;pointer-events:auto}.priority-list__actions ::slotted(*){pointer-events:auto;-webkit-user-drag:none}:host([size=small]) .priority-list__item{padding:var(--zn-spacing-2x-small) var(--zn-spacing-small);font-size:var(--zn-font-size-small)}:host([size=small]) .priority-list__priority{font-size:var(--zn-font-size-x-small);min-width:1.25em}:host([size=large]) .priority-list__item{padding:var(--zn-spacing-medium) var(--zn-spacing-large);font-size:var(--zn-font-size-medium)}:host([size=large]) .priority-list__priority{font-size:var(--zn-font-size-medium);min-width:1.75em}.priority-list__collector{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.priority-list__hidden-inputs{display:none}`;function _q(o){try{return JSON.parse(o)}catch{return}}var gt=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{value:t=>JSON.stringify(t.getPriorityMap()),defaultValue:t=>t.defaultValue,setValue:(t,r)=>{if(!r||Array.isArray(r)&&r.length===0)return;let n=Array.isArray(r)?r:_q(r);Array.isArray(n)&&n.every(a=>typeof a=="string")&&(t.value=n)}});this.hasSlotController=new Y(this,"help-text","label");this.name="";this._value=[];this.defaultValue=[];this.label="";this.labelTooltip="";this.helpText="";this.form="";this.size="medium";this.disabled=!1;this.required=!1;this.priorityStart=1;this.order="";this.draggedKey=null;this.isDragging=!1;this.dragOverKey=null}get value(){return this._value}set value(t){let r=this._value;this._value=[...t],this._assignSlotNames(),this.requestUpdate("value",r)}get validity(){return Je}get validationMessage(){return""}connectedCallback(){super.connectedCallback(),this.defaultValue=[...this._value]}firstUpdated(t){super.firstUpdated(t),this.formControlController.updateValidity(),this._initializeOrderFromSlot()}_initializeOrderFromSlot(){if(this._value.length===0){let r=this._getSlottedItems().map(n=>n.getAttribute("value")||"").filter(n=>n!=="");if(this.order){let n=this.order.split(",").map(h=>h.trim()).filter(h=>h!==""),a=new Set(r),s=n.filter(h=>a.has(h)),l=new Set(s),p=r.filter(h=>!l.has(h));this._value=[...s,...p]}else this._value=r}this.defaultValue=[...this._value],this._assignSlotNames(),this._syncHiddenInputs(),this.requestUpdate()}_getSlottedItems(){let t=["label","label-tooltip","help-text"];return[...this.querySelectorAll(":scope > [value]")].filter(r=>{let n=r.getAttribute("slot");return!n||n.startsWith("_item-")||!t.includes(n)})}_assignSlotNames(){[...this.querySelectorAll(":scope > [value]")].forEach(r=>{let n=r.getAttribute("value");n&&!["label","label-tooltip","help-text"].includes(n)&&r.setAttribute("slot",`_item-${n}`)})}getPriorityMap(){return this._value.map((t,r)=>({key:t,priority:this.priorityStart+r}))}_syncHiddenInputs(){this.hiddenInputsContainer&&(this.hiddenInputsContainer.innerHTML="",this.name&&this._value.forEach((t,r)=>{let n=document.createElement("input");n.type="hidden",n.name=`${this.name}[${t}]`,n.value=String(this.priorityStart+r),this.hiddenInputsContainer.appendChild(n)}))}_moveItem(t,r){if(t===r||t<0||r<0||t>=this._value.length||r>=this._value.length)return;let n=[...this._value],[a]=n.splice(t,1);n.splice(r,0,a),this._value=n,this._assignSlotNames(),this._syncHiddenInputs(),this.requestUpdate(),this.emit("zn-change"),this.emit("zn-reorder"),this._submitForm()}_submitForm(){if(this.formAction===void 0||this.formAction===null)return;if(this.getForm()){let r=document.createElement("input");r.type="submit",this.formAction&&r.setAttribute("formaction",this.formAction),this.formControlController.submit(r)}else if(this.formAction){let r=document.createElement("form");r.method="post",r.action=this.formAction,r.hidden=!0,this._value.forEach((n,a)=>{if(this.name){let s=document.createElement("input");s.type="hidden",s.name=`${this.name}[${n}]`,s.value=String(this.priorityStart+a),r.appendChild(s)}}),document.body.appendChild(r),r.requestSubmit(),r.remove()}}_handleDragStart(t,r){if(this.disabled){t.preventDefault();return}this.draggedKey=r,this.isDragging=!0,t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",r))}_handleDragEnd(){this.isDragging&&(this._syncHiddenInputs(),this.emit("zn-change"),this.emit("zn-reorder"),this._submitForm()),this.draggedKey=null,this.dragOverKey=null,this.isDragging=!1}_handleDragOver(t,r){if(t.preventDefault(),!this.draggedKey||this.draggedKey===r)return;t.dataTransfer&&(t.dataTransfer.dropEffect="move");let n=this._value.indexOf(this.draggedKey),a=this._value.indexOf(r);if(n===-1||a===-1||n===a)return;let s=[...this._value],[l]=s.splice(n,1);s.splice(a,0,l),this._value=s,this._assignSlotNames(),this.requestUpdate(),this.dragOverKey=r}_handleDragLeave(t,r){let n=t.relatedTarget,a=t.currentTarget;n&&a.contains(n)||this.dragOverKey===r&&(this.dragOverKey=null)}_handleDrop(t){t.preventDefault()}_handleKeyDown(t,r){if(this.disabled)return;let n=this._value.indexOf(r);if(n===-1)return;let a=null;switch(t.key){case"ArrowUp":n>0&&(a=n-1);break;case"ArrowDown":n<this._value.length-1&&(a=n+1);break;case"Home":n>0&&(a=0);break;case"End":n<this._value.length-1&&(a=this._value.length-1);break;default:return}a!==null&&(t.preventDefault(),this._moveItem(n,a),this.updateComplete.then(()=>{this.shadowRoot?.querySelectorAll(".priority-list__item")?.[a]?.focus()}))}_handleSlotChange(){let t=[...this.querySelectorAll(":scope > [value]")],r=["label","label-tooltip","help-text"],n=t.filter(h=>{let m=h.getAttribute("slot");return!m||m.startsWith("_item-")||!r.includes(m)}).map(h=>h.getAttribute("value")||"").filter(h=>h!=="");if(n.length===0&&this._value.length>0)return;let a=new Set(this._value),s=new Set(n),l=n.filter(h=>!a.has(h)),p=this._value.filter(h=>s.has(h));(l.length>0||p.length!==this._value.length)&&(this._value=[...p,...l],this._assignSlotNames(),this._syncHiddenInputs(),this.requestUpdate())}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(t=""){}updated(t){super.updated(t),(t.has("value")||t.has("name")||t.has("priorityStart"))&&this._syncHiddenInputs()}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("label-tooltip"),n=this.hasSlotController.test("help-text"),a=this.label?!0:t,s=this.labelTooltip?!0:r,l=this.helpText?!0:n;return u`
|
|
4879
4880
|
<fieldset
|
|
4880
4881
|
part="form-control"
|
|
4881
4882
|
class=${M({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":a,"form-control--has-label-tooltip":s,"form-control--has-help-text":l})}
|
|
@@ -5012,7 +5013,7 @@ ${this.parser.parse(o)}</blockquote>
|
|
|
5012
5013
|
${o}</tr>
|
|
5013
5014
|
`}tablecell(o){let i=this.parser.parseInline(o.tokens),t=o.header?"th":"td";return(o.align?`<${t} align="${o.align}">`:`<${t}>`)+i+`</${t}>
|
|
5014
5015
|
`}strong({tokens:o}){return`<strong>${this.parser.parseInline(o)}</strong>`}em({tokens:o}){return`<em>${this.parser.parseInline(o)}</em>`}codespan({text:o}){return`<code>${Nn(o,!0)}</code>`}br(o){return"<br>"}del({tokens:o}){return`<del>${this.parser.parseInline(o)}</del>`}link({href:o,title:i,tokens:t}){let r=this.parser.parseInline(t),n=pk(o);if(n===null)return r;o=n;let a='<a href="'+o+'"';return i&&(a+=' title="'+Nn(i)+'"'),a+=">"+r+"</a>",a}image({href:o,title:i,text:t,tokens:r}){r&&(t=this.parser.parseInline(r,this.parser.textRenderer));let n=pk(o);if(n===null)return Nn(t);o=n;let a=`<img src="${o}" alt="${Nn(t)}"`;return i&&(a+=` title="${Nn(i)}"`),a+=">",a}text(o){return"tokens"in o&&o.tokens?this.parser.parseInline(o.tokens):"escaped"in o&&o.escaped?o.text:Nn(o.text)}},$g=class{strong({text:o}){return o}em({text:o}){return o}codespan({text:o}){return o}del({text:o}){return o}html({text:o}){return o}text({text:o}){return o}link({text:o}){return""+o}image({text:o}){return""+o}br(){return""}checkbox({raw:o}){return o}},gn=class xg{constructor(i){V(this,"options");V(this,"renderer");V(this,"textRenderer");this.options=i||Wa,this.options.renderer=this.options.renderer||new Ih,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $g}static parse(i,t){return new xg(t).parse(i)}static parseInline(i,t){return new xg(t).parseInline(i)}parse(i){this.renderer.parser=this;let t="";for(let r=0;r<i.length;r++){let n=i[r];if(this.options.extensions?.renderers?.[n.type]){let s=n,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){t+=l||"";continue}}let a=n;switch(a.type){case"space":{t+=this.renderer.space(a);break}case"hr":{t+=this.renderer.hr(a);break}case"heading":{t+=this.renderer.heading(a);break}case"code":{t+=this.renderer.code(a);break}case"table":{t+=this.renderer.table(a);break}case"blockquote":{t+=this.renderer.blockquote(a);break}case"list":{t+=this.renderer.list(a);break}case"checkbox":{t+=this.renderer.checkbox(a);break}case"html":{t+=this.renderer.html(a);break}case"def":{t+=this.renderer.def(a);break}case"paragraph":{t+=this.renderer.paragraph(a);break}case"text":{t+=this.renderer.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return t}parseInline(i,t=this.renderer){this.renderer.parser=this;let r="";for(let n=0;n<i.length;n++){let a=i[n];if(this.options.extensions?.renderers?.[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=l||"";continue}}let s=a;switch(s.type){case"escape":{r+=t.text(s);break}case"html":{r+=t.html(s);break}case"link":{r+=t.link(s);break}case"image":{r+=t.image(s);break}case"checkbox":{r+=t.checkbox(s);break}case"strong":{r+=t.strong(s);break}case"em":{r+=t.em(s);break}case"codespan":{r+=t.codespan(s);break}case"br":{r+=t.br(s);break}case"del":{r+=t.del(s);break}case"text":{r+=t.text(s);break}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},Mh,Kc=(Mh=class{constructor(o){V(this,"options");V(this,"block");this.options=o||Wa}preprocess(o){return o}postprocess(o){return o}processAllTokens(o){return o}emStrongMask(o){return o}provideLexer(o=this.block){return o?fn.lex:fn.lexInline}provideParser(o=this.block){return o?gn.parse:gn.parseInline}},V(Mh,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),V(Mh,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Mh),uI=class{constructor(...o){V(this,"defaults",wg());V(this,"options",this.setOptions);V(this,"parse",this.parseMarkdown(!0));V(this,"parseInline",this.parseMarkdown(!1));V(this,"Parser",gn);V(this,"Renderer",Ih);V(this,"TextRenderer",$g);V(this,"Lexer",fn);V(this,"Tokenizer",qh);V(this,"Hooks",Kc);this.use(...o)}walkTokens(o,i){let t=[];for(let r of o)switch(t=t.concat(i.call(this,r)),r.type){case"table":{let n=r;for(let a of n.header)t=t.concat(this.walkTokens(a.tokens,i));for(let a of n.rows)for(let s of a)t=t.concat(this.walkTokens(s.tokens,i));break}case"list":{let n=r;t=t.concat(this.walkTokens(n.items,i));break}default:{let n=r;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(a=>{let s=n[a].flat(1/0);t=t.concat(this.walkTokens(s,i))}):n.tokens&&(t=t.concat(this.walkTokens(n.tokens,i)))}}return t}use(...o){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return o.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let a=i.renderers[n.name];a?i.renderers[n.name]=function(...s){let l=n.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:i.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=i[n.level];a?a.unshift(n.tokenizer):i[n.level]=[n.tokenizer],n.start&&(n.level==="block"?i.startBlock?i.startBlock.push(n.start):i.startBlock=[n.start]:n.level==="inline"&&(i.startInline?i.startInline.push(n.start):i.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(i.childTokens[n.name]=n.childTokens)}),r.extensions=i),t.renderer){let n=this.defaults.renderer||new Ih(this.defaults);for(let a in t.renderer){if(!(a in n))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,l=t.renderer[s],p=n[s];n[s]=(...h)=>{let m=l.apply(n,h);return m===!1&&(m=p.apply(n,h)),m||""}}r.renderer=n}if(t.tokenizer){let n=this.defaults.tokenizer||new qh(this.defaults);for(let a in t.tokenizer){if(!(a in n))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,l=t.tokenizer[s],p=n[s];n[s]=(...h)=>{let m=l.apply(n,h);return m===!1&&(m=p.apply(n,h)),m}}r.tokenizer=n}if(t.hooks){let n=this.defaults.hooks||new Kc;for(let a in t.hooks){if(!(a in n))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,l=t.hooks[s],p=n[s];Kc.passThroughHooks.has(a)?n[s]=h=>{if(this.defaults.async&&Kc.passThroughHooksRespectAsync.has(a))return(async()=>{let f=await l.call(n,h);return p.call(n,f)})();let m=l.call(n,h);return p.call(n,m)}:n[s]=(...h)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(n,h);return f===!1&&(f=await p.apply(n,h)),f})();let m=l.apply(n,h);return m===!1&&(m=p.apply(n,h)),m}}r.hooks=n}if(t.walkTokens){let n=this.defaults.walkTokens,a=t.walkTokens;r.walkTokens=function(s){let l=[];return l.push(a.call(this,s)),n&&(l=l.concat(n.call(this,s))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(o){return this.defaults={...this.defaults,...o},this}lexer(o,i){return fn.lex(o,i??this.defaults)}parser(o,i){return gn.parse(o,i??this.defaults)}parseMarkdown(o){return(i,t)=>{let r={...t},n={...this.defaults,...r},a=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=o),n.async)return(async()=>{let s=n.hooks?await n.hooks.preprocess(i):i,l=await(n.hooks?await n.hooks.provideLexer(o):o?fn.lex:fn.lexInline)(s,n),p=n.hooks?await n.hooks.processAllTokens(l):l;n.walkTokens&&await Promise.all(this.walkTokens(p,n.walkTokens));let h=await(n.hooks?await n.hooks.provideParser(o):o?gn.parse:gn.parseInline)(p,n);return n.hooks?await n.hooks.postprocess(h):h})().catch(a);try{n.hooks&&(i=n.hooks.preprocess(i));let s=(n.hooks?n.hooks.provideLexer(o):o?fn.lex:fn.lexInline)(i,n);n.hooks&&(s=n.hooks.processAllTokens(s)),n.walkTokens&&this.walkTokens(s,n.walkTokens);let l=(n.hooks?n.hooks.provideParser(o):o?gn.parse:gn.parseInline)(s,n);return n.hooks&&(l=n.hooks.postprocess(l)),l}catch(s){return a(s)}}}onError(o,i){return t=>{if(t.message+=`
|
|
5015
|
-
Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error occurred:</p><pre>"+Nn(t.message+"",!0)+"</pre>";return i?Promise.resolve(r):r}if(i)return Promise.reject(t);throw t}}},Ga=new uI;function Fe(o,i){return Ga.parse(o,i)}Fe.options=Fe.setOptions=function(o){return Ga.setOptions(o),Fe.defaults=Ga.defaults,fk(Fe.defaults),Fe};Fe.getDefaults=wg;Fe.defaults=Wa;Fe.use=function(...o){return Ga.use(...o),Fe.defaults=Ga.defaults,fk(Fe.defaults),Fe};Fe.walkTokens=function(o,i){return Ga.walkTokens(o,i)};Fe.parseInline=Ga.parseInline;Fe.Parser=gn;Fe.parser=gn.parse;Fe.Renderer=Ih;Fe.TextRenderer=$g;Fe.Lexer=fn;Fe.lexer=fn.lex;Fe.Tokenizer=qh;Fe.Hooks=Kc;Fe.parse=Fe;var X5e=Fe.options,J5e=Fe.setOptions,Z5e=Fe.use,e4e=Fe.walkTokens,t4e=Fe.parseInline;var r4e=gn.parse,i4e=fn.lex;var Sk=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.panel{border:1px solid rgb(var(--zn-border-color));background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));border-radius:var(--zn-border-radius)}.markdown-editor{display:flex;flex-direction:column;gap:var(--zn-spacing-small);width:100%;height:100%;min-height:0}:host([expanded]){position:absolute;top:10px;bottom:10px;left:var(--zn-sp-padding);right:var(--zn-sp-padding);z-index:var(--zn-z-index-editor-action,1000000)}:host([expanded]) .panel,:host([expanded]) .panel__inner,:host([expanded]) .panel__content,:host([expanded]) .panel__body{height:100%;max-height:100%}:host([expanded]) .markdown-editor{height:100%}.markdown-editor__label{font-size:var(--zn-input-label-font-size-medium);color:var(--zn-input-label-color);font-weight:var(--zn-font-weight-semibold)}.markdown-editor__toolbar{display:flex;align-items:end;gap:var(--zn-spacing-small);justify-content:flex-end;flex-wrap:wrap}.markdown-editor__markdown-link{display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);margin-right:auto;font-size:var(--zn-input-label-font-size-small);line-height:1;color:var(--zn-color-neutral-500,#656d76);text-decoration:none;cursor:pointer;transition:color 0.15s ease;padding-left:var(--zn-spacing-x-small)}.markdown-editor__markdown-link:hover{color:var(--zn-color-primary-600,#0969da)}.markdown-editor__markdown-link span{white-space:nowrap}.markdown-editor__view-toggle{display:inline-flex}.markdown-editor__body{display:flex;flex:1;min-height:0;gap:var(--zn-spacing-medium)}.markdown-editor__editor,.markdown-editor__preview-wrapper{flex:1;min-width:0;min-height:0;display:flex}.markdown-editor__editor[hidden],.markdown-editor__preview-wrapper[hidden]{display:none}.markdown-editor__editor zn-textarea{flex:1;width:100%}.markdown-editor__preview-wrapper{overflow:hidden}.markdown-editor__preview{flex:1;background:var(--zn-color-neutral-0,white);border:1px solid var(--zn-color-neutral-200);border-radius:var(--zn-border-radius);padding:var(--zn-spacing-x-large);overflow-y:auto;font-family:inherit;line-height:1.7;color:var(--zn-color-text,#222)}.markdown-editor__preview h1{font-size:1.8em;margin:0.8em 0 0.4em;border-bottom:1px solid var(--zn-color-neutral-200);padding-bottom:0.3em}.markdown-editor__preview h2{font-size:1.5em;margin:0.8em 0 0.4em;border-bottom:1px solid var(--zn-color-neutral-200);padding-bottom:0.2em}.markdown-editor__preview h3{font-size:1.25em;margin:0.7em 0 0.3em}.markdown-editor__preview h4,.markdown-editor__preview h5,.markdown-editor__preview h6{font-size:1.1em;margin:0.6em 0 0.3em}.markdown-editor__preview p{margin:0.6em 0}.markdown-editor__preview ul,.markdown-editor__preview ol{margin:0.6em 0;padding-left:2em;display:block}.markdown-editor__preview ul{list-style-type:disc}.markdown-editor__preview ol{list-style-type:decimal}.markdown-editor__preview ul ul{list-style-type:circle}.markdown-editor__preview ul ul ul{list-style-type:square}.markdown-editor__preview li{margin:0.2em 0;display:list-item}.markdown-editor__preview blockquote{border-left:4px solid var(--zn-color-neutral-300);margin:0.8em 0;padding:0.4em 1em;color:var(--zn-color-neutral-600,#555)}.markdown-editor__preview table{border-collapse:collapse;width:100%;margin:0.8em 0}.markdown-editor__preview th,.markdown-editor__preview td{border:1px solid var(--zn-color-neutral-300);padding:0.4em 0.8em;text-align:left}.markdown-editor__preview th{background:var(--zn-color-neutral-100);font-weight:bold}.markdown-editor__preview code{background:var(--zn-color-neutral-100);padding:0.15em 0.4em;border-radius:3px;font-size:0.9em}.markdown-editor__preview pre{background:var(--zn-color-neutral-100);padding:1em;border-radius:4px;overflow-x:auto}.markdown-editor__preview pre code{background:none;padding:0}.markdown-editor__preview hr{border:none;border-top:1px solid var(--zn-color-neutral-300);margin:1.5em 0}.markdown-editor__preview a{color:var(--zn-color-primary-600)}.markdown-editor__help-text{font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-input-help-text-color)}`;var mI=[{mode:"editor",icon:"edit_note",label:"Editor"},{mode:"split",icon:"vertical_split",label:"Split"},{mode:"preview",icon:"visibility",label:"Preview"}],
|
|
5016
|
+
Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error occurred:</p><pre>"+Nn(t.message+"",!0)+"</pre>";return i?Promise.resolve(r):r}if(i)return Promise.reject(t);throw t}}},Ga=new uI;function Fe(o,i){return Ga.parse(o,i)}Fe.options=Fe.setOptions=function(o){return Ga.setOptions(o),Fe.defaults=Ga.defaults,fk(Fe.defaults),Fe};Fe.getDefaults=wg;Fe.defaults=Wa;Fe.use=function(...o){return Ga.use(...o),Fe.defaults=Ga.defaults,fk(Fe.defaults),Fe};Fe.walkTokens=function(o,i){return Ga.walkTokens(o,i)};Fe.parseInline=Ga.parseInline;Fe.Parser=gn;Fe.parser=gn.parse;Fe.Renderer=Ih;Fe.TextRenderer=$g;Fe.Lexer=fn;Fe.lexer=fn.lex;Fe.Tokenizer=qh;Fe.Hooks=Kc;Fe.parse=Fe;var X5e=Fe.options,J5e=Fe.setOptions,Z5e=Fe.use,e4e=Fe.walkTokens,t4e=Fe.parseInline;var r4e=gn.parse,i4e=fn.lex;var Sk=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.panel{border:1px solid rgb(var(--zn-border-color));background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));border-radius:var(--zn-border-radius)}.markdown-editor{display:flex;flex-direction:column;gap:var(--zn-spacing-small);width:100%;height:100%;min-height:0}:host([expanded]){position:absolute;top:10px;bottom:10px;left:var(--zn-sp-padding);right:var(--zn-sp-padding);z-index:var(--zn-z-index-editor-action,1000000)}:host([expanded]) .panel,:host([expanded]) .panel__inner,:host([expanded]) .panel__content,:host([expanded]) .panel__body{height:100%;max-height:100%}:host([expanded]) .markdown-editor{height:100%}.markdown-editor__label{font-size:var(--zn-input-label-font-size-medium);color:var(--zn-input-label-color);font-weight:var(--zn-font-weight-semibold)}.markdown-editor__toolbar{display:flex;align-items:end;gap:var(--zn-spacing-small);justify-content:flex-end;flex-wrap:wrap}.markdown-editor__markdown-link{display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);margin-right:auto;font-size:var(--zn-input-label-font-size-small);line-height:1;color:var(--zn-color-neutral-500,#656d76);text-decoration:none;cursor:pointer;transition:color 0.15s ease;padding-left:var(--zn-spacing-x-small)}.markdown-editor__markdown-link:hover{color:var(--zn-color-primary-600,#0969da)}.markdown-editor__markdown-link span{white-space:nowrap}.markdown-editor__view-toggle{display:inline-flex}.markdown-editor__body{display:flex;flex:1;min-height:0;gap:var(--zn-spacing-medium)}.markdown-editor__editor,.markdown-editor__preview-wrapper{flex:1;min-width:0;min-height:0;display:flex}.markdown-editor__editor[hidden],.markdown-editor__preview-wrapper[hidden]{display:none}.markdown-editor__editor zn-textarea{flex:1;width:100%}.markdown-editor__preview-wrapper{overflow:hidden}.markdown-editor__preview{flex:1;background:var(--zn-color-neutral-0,white);border:1px solid var(--zn-color-neutral-200);border-radius:var(--zn-border-radius);padding:var(--zn-spacing-x-large);overflow-y:auto;font-family:inherit;line-height:1.7;color:var(--zn-color-text,#222)}.markdown-editor__preview h1{font-size:1.8em;margin:0.8em 0 0.4em;border-bottom:1px solid var(--zn-color-neutral-200);padding-bottom:0.3em}.markdown-editor__preview h2{font-size:1.5em;margin:0.8em 0 0.4em;border-bottom:1px solid var(--zn-color-neutral-200);padding-bottom:0.2em}.markdown-editor__preview h3{font-size:1.25em;margin:0.7em 0 0.3em}.markdown-editor__preview h4,.markdown-editor__preview h5,.markdown-editor__preview h6{font-size:1.1em;margin:0.6em 0 0.3em}.markdown-editor__preview p{margin:0.6em 0}.markdown-editor__preview ul,.markdown-editor__preview ol{margin:0.6em 0;padding-left:2em;display:block}.markdown-editor__preview ul{list-style-type:disc}.markdown-editor__preview ol{list-style-type:decimal}.markdown-editor__preview ul ul{list-style-type:circle}.markdown-editor__preview ul ul ul{list-style-type:square}.markdown-editor__preview li{margin:0.2em 0;display:list-item}.markdown-editor__preview blockquote{border-left:4px solid var(--zn-color-neutral-300);margin:0.8em 0;padding:0.4em 1em;color:var(--zn-color-neutral-600,#555)}.markdown-editor__preview table{border-collapse:collapse;width:100%;margin:0.8em 0}.markdown-editor__preview th,.markdown-editor__preview td{border:1px solid var(--zn-color-neutral-300);padding:0.4em 0.8em;text-align:left}.markdown-editor__preview th{background:var(--zn-color-neutral-100);font-weight:bold}.markdown-editor__preview code{background:var(--zn-color-neutral-100);padding:0.15em 0.4em;border-radius:3px;font-size:0.9em}.markdown-editor__preview pre{background:var(--zn-color-neutral-100);padding:1em;border-radius:4px;overflow-x:auto}.markdown-editor__preview pre code{background:none;padding:0}.markdown-editor__preview hr{border:none;border-top:1px solid var(--zn-color-neutral-300);margin:1.5em 0}.markdown-editor__preview a{color:var(--zn-color-primary-600)}.markdown-editor__help-text{font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-input-help-text-color)}`;var mI=[{mode:"editor",icon:"edit_note",label:"Editor"},{mode:"split",icon:"vertical_split",label:"Split"},{mode:"preview",icon:"visibility",label:"Preview"}],ht=class extends tt{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-input","zn-change"]});this.markdownSlotController=new Y(this,"label","help-text","actions","footer");this.debounceTimer=null;this.name="";this.value="";this.defaultValue="";this.label="";this.helpText="";this.placeholder="Enter markdown content...";this.rows=20;this.viewMode="editor";this.storageKey="zn-markdown-editor-view-mode";this.required=!1;this.readonly=!1;this.disabled=!1;this.expanded=!1;this.handleInput=()=>{this.value=this.textarea.value,this.emit("zn-input"),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.renderPreview(),150)};this.handleChange=()=>{this.value=this.textarea.value,this.emit("zn-change"),this.renderPreview()};this.handleViewToggle=t=>{let n=t.target.closest("[data-mode]")?.dataset.mode;!n||n===this.viewMode||(this.viewMode=n)};this.handleExpandToggle=()=>{this.expanded=!this.expanded}}get validity(){return this.textarea?.validity}get validationMessage(){return this.textarea?.validationMessage??""}checkValidity(){return this.textarea?.checkValidity()??!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.textarea?.reportValidity()??!0}setCustomValidity(t){this.textarea?.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.textarea?.focus(t)}blur(){this.textarea?.blur()}connectedCallback(){if(super.connectedCallback(),!this.hasAttribute("value")&&!this.value){let r=Array.from(this.childNodes).filter(s=>s.nodeType===Node.TEXT_NODE),a=r.map(s=>s.textContent??"").join("").replace(/\r\n/g,`
|
|
5016
5017
|
`).trim();a.length>0&&(this.value=a,this.defaultValue=a,r.forEach(s=>{(s.textContent??"").trim().length>0&&s.parentNode?.removeChild(s)}))}let t=this.readStoredViewMode();t&&(this.viewMode=t),this.addEventListener("toggle",this.handleExpandToggle)}disconnectedCallback(){super.disconnectedCallback(),this.debounceTimer&&clearTimeout(this.debounceTimer),this.removeEventListener("toggle",this.handleExpandToggle)}firstUpdated(t){super.firstUpdated(t),this.formControlController.updateValidity(),this.viewMode!=="editor"&&this.renderPreview()}readStoredViewMode(){if(!this.storageKey)return null;try{let t=localStorage.getItem(this.storageKey);if(t==="editor"||t==="split"||t==="preview")return t}catch{}return null}writeStoredViewMode(t){if(this.storageKey)try{localStorage.setItem(this.storageKey,t)}catch{}}renderPreview(){if(this.viewMode==="editor"||!this.previewEl)return;let t=Fe.parse(this.value||"",{async:!1});this.previewEl.innerHTML=typeof t=="string"?t:""}async handleViewModeChange(){await this.updateComplete,this.writeStoredViewMode(this.viewMode),this.renderPreview(),this.dispatchEvent(new CustomEvent("zn-view-mode-change",{bubbles:!0,composed:!0,detail:{mode:this.viewMode}}))}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.renderPreview()}handleMarkedReady(){this.renderPreview()}render(){let t=this.markdownSlotController.test("label"),r=this.markdownSlotController.test("help-text"),n=this.markdownSlotController.test("actions"),a=this.markdownSlotController.test("footer"),s=!!this.label||t,l=!!this.helpText||r,p=!!this.caption||n,h=this.viewMode==="editor"||this.viewMode==="split",m=this.viewMode==="preview"||this.viewMode==="split";return u`
|
|
5017
5018
|
<div part="base" class=${M({panel:!0,"panel--flush":this.flush||this.tabbed,"panel--flush-x":this.flushX,"panel--flush-y":this.flushY,"panel--flush-footer":this.flushFooter,"panel--tabbed":this.tabbed,"panel--transparent":this.transparent,"panel--has-actions":n,"panel--has-footer":a,"panel--has-header":p,"panel--cosmic":this.cosmic,"panel--shadow":this.shadow})}>
|
|
5018
5019
|
|
|
@@ -5111,7 +5112,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
|
|
|
5111
5112
|
tooltip=${n}
|
|
5112
5113
|
aria-pressed=${a?"true":"false"}
|
|
5113
5114
|
></zn-button>
|
|
5114
|
-
`}};pt.styles=[et.styles,z(Sk)],c([F("zn-textarea")],pt.prototype,"textarea",2),c([F(".markdown-editor__preview")],pt.prototype,"previewEl",2),c([d()],pt.prototype,"name",2),c([d()],pt.prototype,"value",2),c([Ce()],pt.prototype,"defaultValue",2),c([d()],pt.prototype,"label",2),c([d({attribute:"help-text"})],pt.prototype,"helpText",2),c([d()],pt.prototype,"placeholder",2),c([d({type:Number})],pt.prototype,"rows",2),c([d({reflect:!0,attribute:"view-mode"})],pt.prototype,"viewMode",2),c([d({attribute:"storage-key"})],pt.prototype,"storageKey",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"required",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"expanded",2),c([K("viewMode",{waitUntilFirstUpdate:!0})],pt.prototype,"handleViewModeChange",1),c([K("value",{waitUntilFirstUpdate:!0})],pt.prototype,"handleValueChange",1),c([K("markedReady",{waitUntilFirstUpdate:!0})],pt.prototype,"handleMarkedReady",1);var fI=pt;pt.define("zn-markdown-editor");var gI={},Ag=yt(class extends ir{constructor(){super(...arguments),this.ot=gI}render(o,i){return i()}update(o,[i,t]){if(Array.isArray(i)){if(Array.isArray(this.ot)&&this.ot.length===i.length&&i.every((r,n)=>r===this.ot[n]))return vt}else if(this.ot===i)return vt;return this.ot=Array.isArray(i)?Array.from(i):i,this.render(i,t)}});var bI={eq:"Is Equal To",neq:"Is Not Equal To",gt:"Greater Than",gte:"Greater Than or Equal To",lt:"Less Than",lte:"Less Than or Equal To",is:"Is","is-not":"Is Not",in:"Is One Of","not-in":"Is Not One Of",contains:"Contains","not-contains":"Does Not Contain","starts-with":"Starts With","ends-with":"Ends With",empty:"Is Empty","not-empty":"Is Not Empty",within:"Within the Last",before:"Before the Last",between:"Between",matches:"Matches"};function Mg(o){return o.label??bI[o.value]??o.value}var vI=[];function $k(o){let i=o.data?.conditions;return Array.isArray(i)?i:vI}var Ck={id:"in"},Nh={id:"out"},Xc="__new__",cl="application/x-zn-flow-type",Oh;function Ph(){return Oh||(Oh=new Image,Oh.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),Oh}var bt=240,lr=60,Lg=bt+80,yI=Lg-bt,xI=40,wI=20,qg=40,zI=40,_I=40,Ek=240,kI=20,SI=20,CI=20,EI=240;function Ig(o,i,t,r=!1){let n=o.y+lr,a=n+qg;if(t&&t.y>=n){if(t.y-n>EI)return a;let s=r?n+CI:a,l=Math.round((n+t.y)/2-i/2);return Math.max(s,Math.min(l,t.y-SI-i))}return a+zI}function Hh(o){let i=o.length*7.2,t=Math.max(1,Math.ceil(i/(Ek-36)));return{w:Math.min(Ek,Math.round(36+i)),h:_I+(t-1)*kI}}var Zt=20;function Rr(o){return Math.round(o/Zt)*Zt}var Ak=10,TI=4,$I=20;function Dg(o,i){let t=o.m+i.m;return o.x<i.x+i.w+t&&i.x<o.x+o.w+t&&o.y<i.y+i.h+t&&i.y<o.y+o.h+t}function Tk(o,i){return i?bt/2:o.label?Hh(o.label).w/2:wI}function Jc(o,i,t=[]){let r=er(o,i(o.type)),n=o.x+bt/2;if(r.length<2)return r.map(()=>n);let a=r.map(m=>t.some(f=>f.source.node===o.id&&f.source.port===m.id)),s=[0];for(let m=1;m<r.length;m++){let f=a[m-1]&&a[m]?yI:xI,b=Tk(r[m-1],a[m-1])+Tk(r[m],a[m])+f;s.push(s[m-1]+Rr(b))}let l=s.filter((m,f)=>a[f]),p=l.length?l:s,h=(Math.min(...p)+Math.max(...p))/2;return s.map(m=>Math.round(n+m-h))}function Qc(o,i,t,r){let n=[{x:o.x,y:o.y,w:bt,h:lr,m:Ak}],a=er(o,i(o.type)),s=Jc(o,i,r);return a.forEach((l,p)=>{if(!l.label)return;let h=Hh(l.label),m=r.find(b=>b.source.node===o.id&&b.source.port===l.id),f=m?t.find(b=>b.id===m.target.node):void 0;n.push({x:s[p]-h.w/2,y:Ig(o,h.h,f,a.length===1),w:h.w,h:h.h+$I,m:TI})}),n}function Mk(o,i,t,r,n){let a=Qc(o,t,r,n);return Qc(i,t,r,n).some(s=>a.some(l=>Dg(l,s)))}function Fh(o,i,t,r){let n=Qc(o,i,t,r).slice(1);return n.length?t.some(a=>a.id!==o.id&&Qc(a,i,t,r).some(s=>n.some(l=>Dg(l,s)))):!1}function Lk(o,i,t,r,n){let a={x:o.x,y:o.y,w:bt,h:lr,m:Ak};return Qc(i,t,r,n).some(s=>Dg(a,s))}var Rg=200,Og=120,qk=120,Ik=80;function Dk(o,i,t,r){return{x:o.x+bt*(t+1)/(r+1),y:o.y+(i==="in"?0:lr)}}function Rk(){return{nodes:[],connections:[],notes:[]}}function Bh(o){return o?o.inputs??[Ck]:[Ck]}function Ng(o){return o?o.outputs??[Nh]:[Nh]}function ra(o,i){return o.inputs??Bh(i)}function er(o,i){return o.outputs??Ng(i)}function Zc(o,i){return ra(o,i)[0]?.id??null}function Ok(o,i){let t=new Set,r=n=>{for(let a of o.connections)a.source.node===n&&!t.has(a.target.node)&&(t.add(a.target.node),r(a.target.node))};return r(i),t}function ia(o,i){let t=new Set(o.map(h=>h.id)),r=new Map(o.map(h=>[h.id,[]])),n=new Set;for(let h of i)!t.has(h.source.node)||!t.has(h.target.node)||(r.get(h.source.node).push(h),n.add(h.target.node));let a=new Set,s=new Set,l=new Set,p=h=>{s.add(h),l.add(h);for(let m of r.get(h)??[])l.has(m.target.node)?a.add(m):s.has(m.target.node)||p(m.target.node);l.delete(h)};return o.filter(h=>!n.has(h.id)).forEach(h=>p(h.id)),o.forEach(h=>{s.has(h.id)||p(h.id)}),a}var Nk=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;font-size:0.8125rem}.editor{display:flex;flex-direction:column;gap:14px}.picker{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid rgb(var(--zn-border-color));border-radius:8px;background:rgb(var(--zn-panel))}.picker__head{display:flex;align-items:center;justify-content:space-between;font-weight:600}.picker__back{flex:0 0 auto}.picker__list{display:flex;flex-direction:column}.picker__item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;margin-top:-1px;border:1px solid rgb(var(--zn-border-color));background:rgb(var(--zn-panel));color:rgb(var(--zn-text));font-size:0.8125rem;text-align:left;cursor:pointer}.picker__item:first-child{margin-top:0;border-top-left-radius:8px;border-top-right-radius:8px}.picker__item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.picker__item:hover{background:rgb(var(--zn-color-tab))}.picker__item-text{display:flex;flex-direction:column;gap:2px;min-width:0}.picker__item-label{font-weight:500}.picker__item-description{font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.picker__empty{margin:0;padding:10px 2px;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.conditions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.group{display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%;padding:14px;border:1px solid rgb(var(--zn-border-color));border-radius:8px;background:rgb(var(--zn-panel))}.and-rule{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);display:flex;align-items:center;gap:10px;width:100%;color:rgb(var(--zn-color-success))}.and-rule::after{content:"";flex:1;height:1px;background:color-mix(in srgb,rgb(var(--zn-color-success)) 50%,transparent)}.or-label{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);margin:2px 0;color:rgb(var(--zn-color-error))}.condition{display:flex;flex-direction:column;gap:10px;width:100%}.condition__head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}.condition__name{font-family:var(--zn-font-sans);font-size:var(--zn-text-heading-section-font-size);font-weight:var(--zn-text-heading-section-font-weight);line-height:var(--zn-text-heading-section-line-height);color:var(--zn-text-heading-section-color);text-transform:var(--zn-text-heading-section-transform);letter-spacing:var(--zn-text-heading-section-letter-spacing,normal)}.condition__remove{flex:0 0 auto}.condition__row{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.condition__row-label,.condition__suffix{font-size:0.75rem;color:rgb(var(--zn-color-muted-text));white-space:nowrap}.control{min-width:0}.control--operator{flex:1 1 0;min-width:120px}.control--number{flex:0 0 auto;width:80px}.control--unit{flex:1 1 0}.control--value{flex:1 1 0;min-width:100px}zn-select.control::part(display-input){text-overflow:ellipsis}.actions{display:flex;align-items:center;gap:8px;margin-top:2px;padding-top:16px;border-top:1px solid rgb(var(--zn-border-color))}`;var Ki=class Ki extends k{constructor(){super(...arguments);this.filters=[];this.value=[];this._draft=[];this._picker=null;this._search="";this._valueJson="";this._save=()=>{this._emit("flow-conditions-save",{conditions:JSON.parse(JSON.stringify(this._draft))})};this._cancel=()=>{this._emit("flow-conditions-cancel")}}willUpdate(t){if(super.willUpdate(t),t.has("value")){let r=JSON.stringify(this.value??[]);r!==this._valueJson&&(this._valueJson=r,this._draft=JSON.parse(r),this._picker=null,this._search="")}}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}_cloneDraft(){return this._draft.map(t=>t.map(r=>({...r,values:{...r.values}})))}_addCondition(t){let r={};t.fields.forEach(s=>{r[s.id]={...s.operators?.length?{operator:s.operators[0].value}:{},...s.value!==void 0?{value:s.value}:{},...s.units?.length?{unit:s.units[0].value}:{}}});let n=this._cloneDraft(),a=Math.min(this._picker??0,n.length);a===n.length&&n.push([]),n[a].push({filter:t.id,values:r}),this._draft=n,this._picker=null,this._search=""}_removeCondition(t,r){let n=this._cloneDraft();n[t].splice(r,1),this._draft=n.filter(a=>a.length)}_setField(t,r,n,a){let s=this._cloneDraft(),l=s[t][r];l.values[n]={...l.values[n],...a},this._draft=s}_renderPicker(){let t=this._search.trim().toLowerCase(),r=this.filters.filter(n=>!t||n.label.toLowerCase().includes(t));return u`
|
|
5115
|
+
`}};ht.styles=[tt.styles,z(Sk)],c([F("zn-textarea")],ht.prototype,"textarea",2),c([F(".markdown-editor__preview")],ht.prototype,"previewEl",2),c([d()],ht.prototype,"name",2),c([d()],ht.prototype,"value",2),c([Ce()],ht.prototype,"defaultValue",2),c([d()],ht.prototype,"label",2),c([d({attribute:"help-text"})],ht.prototype,"helpText",2),c([d()],ht.prototype,"placeholder",2),c([d({type:Number})],ht.prototype,"rows",2),c([d({reflect:!0,attribute:"view-mode"})],ht.prototype,"viewMode",2),c([d({attribute:"storage-key"})],ht.prototype,"storageKey",2),c([d({type:Boolean,reflect:!0})],ht.prototype,"required",2),c([d({type:Boolean,reflect:!0})],ht.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],ht.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],ht.prototype,"expanded",2),c([K("viewMode",{waitUntilFirstUpdate:!0})],ht.prototype,"handleViewModeChange",1),c([K("value",{waitUntilFirstUpdate:!0})],ht.prototype,"handleValueChange",1),c([K("markedReady",{waitUntilFirstUpdate:!0})],ht.prototype,"handleMarkedReady",1);var fI=ht;ht.define("zn-markdown-editor");var gI={},Ag=yt(class extends ir{constructor(){super(...arguments),this.ot=gI}render(o,i){return i()}update(o,[i,t]){if(Array.isArray(i)){if(Array.isArray(this.ot)&&this.ot.length===i.length&&i.every((r,n)=>r===this.ot[n]))return vt}else if(this.ot===i)return vt;return this.ot=Array.isArray(i)?Array.from(i):i,this.render(i,t)}});var bI={eq:"Is Equal To",neq:"Is Not Equal To",gt:"Greater Than",gte:"Greater Than or Equal To",lt:"Less Than",lte:"Less Than or Equal To",is:"Is","is-not":"Is Not",in:"Is One Of","not-in":"Is Not One Of",contains:"Contains","not-contains":"Does Not Contain","starts-with":"Starts With","ends-with":"Ends With",empty:"Is Empty","not-empty":"Is Not Empty",within:"Within the Last",before:"Before the Last",between:"Between",matches:"Matches"};function Mg(o){return o.label??bI[o.value]??o.value}var vI=[];function $k(o){let i=o.data?.conditions;return Array.isArray(i)?i:vI}var Ck={id:"in"},Nh={id:"out"},Xc="__new__",cl="application/x-zn-flow-type",Oh;function Ph(){return Oh||(Oh=new Image,Oh.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),Oh}var bt=240,lr=60,Lg=bt+80,yI=Lg-bt,xI=40,wI=20,qg=40,zI=40,_I=40,Ek=240,kI=20,SI=20,CI=20,EI=240;function Ig(o,i,t,r=!1){let n=o.y+lr,a=n+qg;if(t&&t.y>=n){if(t.y-n>EI)return a;let s=r?n+CI:a,l=Math.round((n+t.y)/2-i/2);return Math.max(s,Math.min(l,t.y-SI-i))}return a+zI}function Hh(o){let i=o.length*7.2,t=Math.max(1,Math.ceil(i/(Ek-36)));return{w:Math.min(Ek,Math.round(36+i)),h:_I+(t-1)*kI}}var Zt=20;function Rr(o){return Math.round(o/Zt)*Zt}var Ak=10,TI=4,$I=20;function Dg(o,i){let t=o.m+i.m;return o.x<i.x+i.w+t&&i.x<o.x+o.w+t&&o.y<i.y+i.h+t&&i.y<o.y+o.h+t}function Tk(o,i){return i?bt/2:o.label?Hh(o.label).w/2:wI}function Jc(o,i,t=[]){let r=er(o,i(o.type)),n=o.x+bt/2;if(r.length<2)return r.map(()=>n);let a=r.map(m=>t.some(f=>f.source.node===o.id&&f.source.port===m.id)),s=[0];for(let m=1;m<r.length;m++){let f=a[m-1]&&a[m]?yI:xI,b=Tk(r[m-1],a[m-1])+Tk(r[m],a[m])+f;s.push(s[m-1]+Rr(b))}let l=s.filter((m,f)=>a[f]),p=l.length?l:s,h=(Math.min(...p)+Math.max(...p))/2;return s.map(m=>Math.round(n+m-h))}function Qc(o,i,t,r){let n=[{x:o.x,y:o.y,w:bt,h:lr,m:Ak}],a=er(o,i(o.type)),s=Jc(o,i,r);return a.forEach((l,p)=>{if(!l.label)return;let h=Hh(l.label),m=r.find(b=>b.source.node===o.id&&b.source.port===l.id),f=m?t.find(b=>b.id===m.target.node):void 0;n.push({x:s[p]-h.w/2,y:Ig(o,h.h,f,a.length===1),w:h.w,h:h.h+$I,m:TI})}),n}function Mk(o,i,t,r,n){let a=Qc(o,t,r,n);return Qc(i,t,r,n).some(s=>a.some(l=>Dg(l,s)))}function Fh(o,i,t,r){let n=Qc(o,i,t,r).slice(1);return n.length?t.some(a=>a.id!==o.id&&Qc(a,i,t,r).some(s=>n.some(l=>Dg(l,s)))):!1}function Lk(o,i,t,r,n){let a={x:o.x,y:o.y,w:bt,h:lr,m:Ak};return Qc(i,t,r,n).some(s=>Dg(a,s))}var Rg=200,Og=120,qk=120,Ik=80;function Dk(o,i,t,r){return{x:o.x+bt*(t+1)/(r+1),y:o.y+(i==="in"?0:lr)}}function Rk(){return{nodes:[],connections:[],notes:[]}}function Bh(o){return o?o.inputs??[Ck]:[Ck]}function Ng(o){return o?o.outputs??[Nh]:[Nh]}function ra(o,i){return o.inputs??Bh(i)}function er(o,i){return o.outputs??Ng(i)}function Zc(o,i){return ra(o,i)[0]?.id??null}function Ok(o,i){let t=new Set,r=n=>{for(let a of o.connections)a.source.node===n&&!t.has(a.target.node)&&(t.add(a.target.node),r(a.target.node))};return r(i),t}function ia(o,i){let t=new Set(o.map(h=>h.id)),r=new Map(o.map(h=>[h.id,[]])),n=new Set;for(let h of i)!t.has(h.source.node)||!t.has(h.target.node)||(r.get(h.source.node).push(h),n.add(h.target.node));let a=new Set,s=new Set,l=new Set,p=h=>{s.add(h),l.add(h);for(let m of r.get(h)??[])l.has(m.target.node)?a.add(m):s.has(m.target.node)||p(m.target.node);l.delete(h)};return o.filter(h=>!n.has(h.id)).forEach(h=>p(h.id)),o.forEach(h=>{s.has(h.id)||p(h.id)}),a}var Nk=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;font-size:0.8125rem}.editor{display:flex;flex-direction:column;gap:14px}.picker{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid rgb(var(--zn-border-color));border-radius:8px;background:rgb(var(--zn-panel))}.picker__head{display:flex;align-items:center;justify-content:space-between;font-weight:600}.picker__back{flex:0 0 auto}.picker__list{display:flex;flex-direction:column}.picker__item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;margin-top:-1px;border:1px solid rgb(var(--zn-border-color));background:rgb(var(--zn-panel));color:rgb(var(--zn-text));font-size:0.8125rem;text-align:left;cursor:pointer}.picker__item:first-child{margin-top:0;border-top-left-radius:8px;border-top-right-radius:8px}.picker__item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.picker__item:hover{background:rgb(var(--zn-color-tab))}.picker__item-text{display:flex;flex-direction:column;gap:2px;min-width:0}.picker__item-label{font-weight:500}.picker__item-description{font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.picker__empty{margin:0;padding:10px 2px;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.conditions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.group{display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%;padding:14px;border:1px solid rgb(var(--zn-border-color));border-radius:8px;background:rgb(var(--zn-panel))}.and-rule{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);display:flex;align-items:center;gap:10px;width:100%;color:rgb(var(--zn-color-success))}.and-rule::after{content:"";flex:1;height:1px;background:color-mix(in srgb,rgb(var(--zn-color-success)) 50%,transparent)}.or-label{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);margin:2px 0;color:rgb(var(--zn-color-error))}.condition{display:flex;flex-direction:column;gap:10px;width:100%}.condition__head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}.condition__name{font-family:var(--zn-font-sans);font-size:var(--zn-text-heading-section-font-size);font-weight:var(--zn-text-heading-section-font-weight);line-height:var(--zn-text-heading-section-line-height);color:var(--zn-text-heading-section-color);text-transform:var(--zn-text-heading-section-transform);letter-spacing:var(--zn-text-heading-section-letter-spacing,normal)}.condition__remove{flex:0 0 auto}.condition__row{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.condition__row-label,.condition__suffix{font-size:0.75rem;color:rgb(var(--zn-color-muted-text));white-space:nowrap}.control{min-width:0}.control--operator{flex:1 1 0;min-width:120px}.control--number{flex:0 0 auto;width:80px}.control--unit{flex:1 1 0}.control--value{flex:1 1 0;min-width:100px}zn-select.control::part(display-input){text-overflow:ellipsis}.actions{display:flex;align-items:center;gap:8px;margin-top:2px;padding-top:16px;border-top:1px solid rgb(var(--zn-border-color))}`;var Ki=class Ki extends k{constructor(){super(...arguments);this.filters=[];this.value=[];this._draft=[];this._picker=null;this._search="";this._valueJson="";this._save=()=>{this._emit("flow-conditions-save",{conditions:JSON.parse(JSON.stringify(this._draft))})};this._cancel=()=>{this._emit("flow-conditions-cancel")}}willUpdate(t){if(super.willUpdate(t),t.has("value")){let r=JSON.stringify(this.value??[]);r!==this._valueJson&&(this._valueJson=r,this._draft=JSON.parse(r),this._picker=null,this._search="")}}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}_cloneDraft(){return this._draft.map(t=>t.map(r=>({...r,values:{...r.values}})))}_addCondition(t){let r={};t.fields.forEach(s=>{r[s.id]={...s.operators?.length?{operator:s.operators[0].value}:{},...s.value!==void 0?{value:s.value}:{},...s.units?.length?{unit:s.units[0].value}:{}}});let n=this._cloneDraft(),a=Math.min(this._picker??0,n.length);a===n.length&&n.push([]),n[a].push({filter:t.id,values:r}),this._draft=n,this._picker=null,this._search=""}_removeCondition(t,r){let n=this._cloneDraft();n[t].splice(r,1),this._draft=n.filter(a=>a.length)}_setField(t,r,n,a){let s=this._cloneDraft(),l=s[t][r];l.values[n]={...l.values[n],...a},this._draft=s}_renderPicker(){let t=this._search.trim().toLowerCase(),r=this.filters.filter(n=>!t||n.label.toLowerCase().includes(t));return u`
|
|
5115
5116
|
<div part="picker" class="picker">
|
|
5116
5117
|
<div class="picker__head">
|
|
5117
5118
|
<span>Add Filters</span>
|
|
@@ -5230,7 +5231,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
|
|
|
5230
5231
|
<zn-button class="actions__cancel" icon="x@lu" @click="${this._cancel}" panel-bg>Cancel</zn-button>
|
|
5231
5232
|
</div>
|
|
5232
5233
|
</div>
|
|
5233
|
-
`}};Ki.styles=z(Nk),Ki.dependencies={"zn-button":Me,"zn-icon":ne,"zn-input":
|
|
5234
|
+
`}};Ki.styles=z(Nk),Ki.dependencies={"zn-button":Me,"zn-icon":ne,"zn-input":st,"zn-option":lt,"zn-select":Be},c([d({attribute:!1})],Ki.prototype,"filters",2),c([d({attribute:!1})],Ki.prototype,"value",2),c([I()],Ki.prototype,"_draft",2),c([I()],Ki.prototype,"_picker",2),c([I()],Ki.prototype,"_search",2);var dl=Ki;var Pg=dl;dl.define("zn-flow-branch-conditions");var Pk=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--node-accent:rgb(var(--zn-color-primary));--port-size:11px;position:absolute;top:0;left:0;display:block;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:none}:host([dragging]) .card{cursor:grabbing}.card{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;padding:0 10px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:10px;box-shadow:0 1px 2px rgba(var(--zn-shadow),0.4);cursor:grab;transition:border-color 0.12s ease,box-shadow 0.12s ease}.card:hover{border-color:rgb(var(--zn-color-border-active))}.card.selected{border-color:var(--node-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--node-accent) 35%,transparent)}.card.link-target{border-color:rgb(var(--zn-color-primary));box-shadow:0 0 0 3px color-mix(in srgb,rgb(var(--zn-color-primary)) 30%,transparent)}.card.error{border-color:rgb(var(--zn-color-error));background:color-mix(in srgb,rgb(var(--zn-color-error)) 6%,rgb(var(--zn-panel)))}.body{display:flex;align-items:center;gap:10px}.icon-tile{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:8px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 14%,transparent)}.text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.text .title{font-size:0.8125rem;font-weight:600;color:rgb(var(--zn-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text .subtitle{font-size:0.75rem;color:rgb(var(--zn-color-muted-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu{flex:0 0 auto}zn-menu-item.danger{color:rgb(var(--zn-color-error))}.ports{position:absolute;left:0;width:100%;height:0}.ports--in{top:0}.ports--out{bottom:0}.port{position:absolute;left:0;top:0;transform:translate(-50%,-50%);width:var(--port-size);height:var(--port-size);border-radius:50%;background:rgb(var(--zn-panel));border:2px solid var(--node-accent);box-sizing:border-box;pointer-events:none}.port--in{transition:transform 0.12s ease,background 0.12s ease,box-shadow 0.12s ease}:host([link-target]) .port--in{transform:translate(-50%,-50%) scale(1.4);background:rgb(var(--zn-color-primary));border-color:rgb(var(--zn-color-primary));box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 25%,transparent)}.port--out{pointer-events:auto;cursor:pointer;transition:transform 0.12s ease,background 0.12s ease,box-shadow 0.12s ease}.port--out:hover{transform:translate(-50%,-50%) scale(1.4);background:var(--node-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--node-accent) 25%,transparent)}.port-wrap{position:absolute}.port-label{position:absolute;top:calc(var(--port-size) / 2 + 3px);left:8px;font-size:0.625rem;font-weight:600;letter-spacing:0.02em;color:rgb(var(--zn-color-muted-text));white-space:nowrap;pointer-events:none}`;var ui=class extends k{constructor(){super(...arguments);this.selected=!1;this.error=!1;this.dragging=!1;this.linkTarget=!1;this._onBodyPointerDown=t=>{if(t.button!==0)return;let r=t.target;r.closest(".port")||r.closest("zn-dropdown")||(t.stopPropagation(),this._emit("flow-node-select",{nodeId:this.node.id}),this._emit("flow-node-grab",{nodeId:this.node.id,clientX:t.clientX,clientY:t.clientY}))}}updated(t){super.updated(t),this.style.width=`${bt}px`,this.style.height=`${lr}px`,this.style.setProperty("--node-accent",this.type?.color??"rgb(var(--zn-color-primary))")}get nodeTitle(){return this.node?.label??this.type?.label??this.node?.type??"Node"}get nodeSubtitle(){let t=this.node?.data?.subtitle??this.node?.data?.description;return typeof t=="string"?t:this.type?.description??""}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}_action(t){this._emit("flow-node-action",{nodeId:this.node.id,action:t})}_renderPorts(t,r){let n=t.length;return u`
|
|
5234
5235
|
<div class="ports ports--${r}">
|
|
5235
5236
|
${t.map((a,s)=>{let l=`${100*(s+1)/(n+1)}%`;return u`
|
|
5236
5237
|
<div class="port-wrap" style="left:${l}">
|
|
@@ -5678,7 +5679,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
|
|
|
5678
5679
|
</div>
|
|
5679
5680
|
${this._renderRightPanel()}
|
|
5680
5681
|
</div>
|
|
5681
|
-
`}};we.styles=z(Qk),we.dependencies={"zn-icon":ne,"zn-input":
|
|
5682
|
+
`}};we.styles=z(Qk),we.dependencies={"zn-icon":ne,"zn-input":st,"zn-tabs":sn,"zn-navbar":Ca,"zn-flow-branch-conditions":Pg,"zn-flow-canvas":Gk,"zn-flow-step-group":Vg},c([d({attribute:!1})],we.prototype,"nodeTypes",2),c([d({reflect:!0})],we.prototype,"heading",2),c([d({attribute:"subheading",reflect:!0})],we.prototype,"subheading",2),c([d({attribute:!1})],we.prototype,"errorNodes",2),c([d({attribute:"auto-save",converter:{fromAttribute:t=>{if(t===null)return null;let r=parseFloat(t);return Number.isFinite(r)&&r>0?r:DI},toAttribute:t=>t===null?null:String(t)}})],we.prototype,"autoSave",2),c([d({attribute:"entrypoints-hint"})],we.prototype,"entrypointsHint",2),c([d({attribute:"triggers-hint"})],we.prototype,"triggersHint",2),c([d({attribute:"actions-hint"})],we.prototype,"actionsHint",2),c([d({attribute:"rules-hint"})],we.prototype,"rulesHint",2),c([I()],we.prototype,"_state",2),c([I()],we.prototype,"_selectedNodeId",2),c([I()],we.prototype,"_selectedBranch",2),c([I()],we.prototype,"_search",2),c([I()],we.prototype,"_activeGroup",2),c([I()],we.prototype,"_stepsCollapsed",2),c([I()],we.prototype,"_sideCollapsed",2),c([I()],we.prototype,"_movingNodeId",2),c([I()],we.prototype,"_picker",2),c([I()],we.prototype,"_draggingType",2),c([I()],we.prototype,"_lastSavedAt",2),c([I()],we.prototype,"_justSaved",2),c([I()],we.prototype,"_statusNow",2),c([I()],we.prototype,"_restorePrompt",2);var hl=we;var OI=hl;hl.define("zn-flow-builder");var e3=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:flex;flex-direction:column;min-height:0;height:100%;--zn-active-nav-background:var(--zn-panel)}.search{padding:12px var(--zn-base-gap) 8px}.body{display:flex;flex-direction:column;flex:1;min-height:0}`;var bn=class extends k{constructor(){super(...arguments);this.searchable=!0;this.searchPlaceholder="Search by step name";this._search="";this._tabObserver=new MutationObserver(()=>this._applyFilter())}connectedCallback(){super.connectedCallback(),this._tabObserver.observe(this,{subtree:!0,attributeFilter:["selected"]})}disconnectedCallback(){this._tabObserver.disconnect(),super.disconnectedCallback()}updated(t){super.updated(t),this._applyFilter()}_inActiveTab(t){return!t.closest("zn-tabs")||!!t.closest("[selected]")}_applyFilter(){let t=this._search.trim().toLowerCase();this.querySelectorAll("zn-flow-step").forEach(r=>{r.hidden=t!==""&&this._inActiveTab(r)&&!(r.textContent??"").toLowerCase().includes(t)}),this.querySelectorAll("zn-flow-step-group").forEach(r=>{let n=Array.from(r.querySelectorAll("zn-flow-step"));r.hidden=t!==""&&this._inActiveTab(r)&&n.length>0&&n.every(a=>a.hidden)})}render(){return u`
|
|
5682
5683
|
${this.searchable?u`
|
|
5683
5684
|
<zn-input
|
|
5684
5685
|
part="search"
|
|
@@ -5693,7 +5694,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
|
|
|
5693
5694
|
<div class="body">
|
|
5694
5695
|
<slot></slot>
|
|
5695
5696
|
</div>
|
|
5696
|
-
`}};bn.styles=z(e3),bn.dependencies={"zn-input":
|
|
5697
|
+
`}};bn.styles=z(e3),bn.dependencies={"zn-input":st},c([d({type:Boolean})],bn.prototype,"searchable",2),c([d({attribute:"search-placeholder"})],bn.prototype,"searchPlaceholder",2),c([I()],bn.prototype,"_search",2);var NI=bn;bn.define("zn-flow-steps");var t3=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;gap:10px;padding:8px 10px;margin-bottom:6px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;overflow:hidden;cursor:grab;transition:border-color 0.12s ease,box-shadow 0.12s ease;max-height:40px}:host(:hover){border-color:rgb(var(--zn-color-border-active));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4)}:host(:active){cursor:grabbing}:host([hidden]){display:none}.item__icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:28px;height:28px;border-radius:6px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 14%,transparent)}.item__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item__label ::slotted(*){display:none}`;var xr=class extends k{constructor(){super(...arguments);this.fixedOutputs=!1;this._onDragStart=t=>{!t.dataTransfer||!this.type||(t.dataTransfer.setData(cl,this.type),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage(Ph(),0,0),this.dispatchEvent(new CustomEvent("flow-step-drag",{bubbles:!0,composed:!0,detail:{type:this.type}})))};this._onDragEnd=()=>{this.dispatchEvent(new CustomEvent("flow-step-drag-end",{bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.draggable=!0,this.addEventListener("dragstart",this._onDragStart),this.addEventListener("dragend",this._onDragEnd)}disconnectedCallback(){this.removeEventListener("dragstart",this._onDragStart),this.removeEventListener("dragend",this._onDragEnd),super.disconnectedCallback()}updated(t){super.updated(t),this.style.setProperty("--node-accent",this.color??"rgb(var(--zn-color-primary))")}render(){return u`
|
|
5697
5698
|
<span part="base" class="item__icon">
|
|
5698
5699
|
<zn-icon src="${this.icon??"circle"}" library="${N(this.iconLibrary)}" size="16"></zn-icon>
|
|
5699
5700
|
</span>
|
|
@@ -5976,7 +5977,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
|
|
|
5976
5977
|
<slot name="config" class="declarations" @slotchange="${this._registerSlottedTemplates}"></slot>
|
|
5977
5978
|
</div>
|
|
5978
5979
|
${this._renderDragGhost()}
|
|
5979
|
-
`}};ze.styles=z(n3),ze.dependencies={"zn-collapsible":za,"zn-icon":ne,"zn-input":
|
|
5980
|
+
`}};ze.styles=z(n3),ze.dependencies={"zn-collapsible":za,"zn-icon":ne,"zn-input":st,"zn-page-palette-item":Kg,"zn-page-section-card":Yg},c([d()],ze.prototype,"name",2),c([d({reflect:!0})],ze.prototype,"form",2),c([d()],ze.prototype,"config",2),c([d({reflect:!0})],ze.prototype,"heading",2),c([d({reflect:!0})],ze.prototype,"subheading",2),c([d({attribute:"required-first",reflect:!0})],ze.prototype,"requiredFirst",2),c([d({attribute:!1})],ze.prototype,"sectionTypes",2),c([d({type:Boolean,reflect:!0,attribute:"palette-collapsed"})],ze.prototype,"paletteCollapsed",2),c([d({type:Boolean,reflect:!0,attribute:"inspector-collapsed"})],ze.prototype,"inspectorCollapsed",2),c([d({attribute:"auto-save",converter:{fromAttribute:t=>{if(t===null)return null;let r=parseFloat(t);return Number.isFinite(r)&&r>0?r:jI},toAttribute:t=>t===null?null:String(t)}})],ze.prototype,"autoSave",2),c([I()],ze.prototype,"_state",2),c([I()],ze.prototype,"_selectedId",2),c([I()],ze.prototype,"_search",2),c([I()],ze.prototype,"_pickerIndex",2),c([I()],ze.prototype,"_dragOverIndex",2),c([I()],ze.prototype,"_draggingId",2),c([I()],ze.prototype,"_dragGhost",2),c([I()],ze.prototype,"_slotDragOver",2),c([I()],ze.prototype,"_slotPicker",2),c([I()],ze.prototype,"_form",2),c([I()],ze.prototype,"_inspectorWidth",2),c([I()],ze.prototype,"_inspectorWide",2),c([K("config")],ze.prototype,"handleConfigChange",1),c([K("requiredFirst")],ze.prototype,"handleRequiredFirstChange",1),c([K("sectionTypes")],ze.prototype,"handleSectionTypesChange",1),c([I()],ze.prototype,"_lastSavedAt",2),c([I()],ze.prototype,"_justSaved",2),c([I()],ze.prototype,"_statusNow",2),c([I()],ze.prototype,"_restorePrompt",2);var WI=ze;ze.define("zn-page-builder");var s3=_`:host{display:block}:host([fill]){flex:1 1 auto;min-height:0}.preview{position:relative;width:100%;overflow-x:hidden;overflow-y:auto;background:radial-gradient(circle,rgba(var(--zn-text),var(--zn-preview-frame-dot-opacity,0.08)) 1px,transparent 1px) 0 0/var(--zn-preview-frame-dot-spacing,20px) var(--zn-preview-frame-dot-spacing,20px),rgb(var(--zn-body))}:host([backdrop=panel]) .preview{background:rgb(var(--zn-panel))}.preview__stage{height:100%;max-width:100%;margin:0 auto;overflow:hidden}iframe{display:block;width:100%;border:0;pointer-events:none;background:rgb(var(--zn-body))}:host([interactive]) iframe{pointer-events:auto}.preview__error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:1rem;text-align:center;background:rgba(0,0,0,0.65);color:#fff}`;var l3={desktop:"100%",tablet:"768px",mobile:"390px"},At=class extends k{constructor(){super(...arguments);this.src="";this.frameOrigin="";this.dataUri="";this.watch="form[data-auto-save]";this.refreshOn="form";this.debounce=400;this.zoom=1;this.minHeight=480;this.fill=!1;this.device="desktop";this.backdrop="dots";this.interactive=!1;this.error="";this._contentHeight=0;this._generation=0;this._watchedForms=new Set;this._debounceTimers=new Map;this._shellSaveRoots=[];this._formObserver=new Pe(this,{target:null,config:{subtree:!0,childList:!0},callback:()=>this._attachForms()});this._onMessage=t=>{if(t.origin!==this.frameOrigin||!this.frame||t.source!==this.frame.contentWindow)return;let r=t.data;switch(r?.type){case"hp-preview:ready":this._sendConfig().then(()=>this._postTheme());break;case"hp-preview:rendered":this.error="",this._applyContentHeight(r.height);break;case"hp-preview:height":this._applyContentHeight(r.height);break;case"hp-preview:error":this._fail(String(r.message??"Preview failed to render"));break}};this._onFrameLoad=()=>{this._contentObserver?.disconnect(),this._contentObserver=void 0;let t;try{t=this.frame?.contentDocument?.documentElement}catch{return}if(!t)return;let r=()=>{let n=t.getBoundingClientRect().height;n>(this.frame?.clientHeight??0)&&this._applyContentHeight(n)};r(),this._contentObserver=new ResizeObserver(r),this._contentObserver.observe(t)};this._onShellSave=t=>{if(t===this._lastShellSave||(this._lastShellSave=t,!this.refreshOn))return;let r=t.composedPath()[0];!(r instanceof HTMLFormElement)||!r.matches(this.refreshOn)||this._watchedForms.has(r)||this._sendConfig()};this._onChange=t=>{let r=t.currentTarget,n=this._debounceTimers.get(r);n&&window.clearTimeout(n),this._debounceTimers.set(r,window.setTimeout(()=>{this._debounceTimers.delete(r),r.isConnected&&r.requestSubmit()},this.debounce))};this._onSubmit=t=>{t.preventDefault(),t.stopImmediatePropagation(),this._save(t.currentTarget)}}connectedCallback(){super.connectedCallback(),window.addEventListener("message",this._onMessage),this._attachForms();let t=this.getRootNode();this._shellSaveRoots=t instanceof ShadowRoot?[document,t]:[document],this._shellSaveRoots.forEach(r=>r.addEventListener("complete",this._onShellSave)),t instanceof Document?this._formObserver.observe(t.body):t instanceof ShadowRoot&&this._formObserver.observe(t)}willUpdate(t){t.has("src")&&this._resetContentHeight()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this._onMessage),this._contentObserver?.disconnect(),this._contentObserver=void 0,this._watchedForms.forEach(t=>this._detachForm(t)),this._watchedForms.clear(),this._shellSaveRoots.forEach(t=>t.removeEventListener("complete",this._onShellSave)),this._shellSaveRoots=[]}_applyContentHeight(t){let r=Math.round(Number(t));!Number.isFinite(r)||r<=0||(this._contentHeight=r)}_resetContentHeight(){this._contentHeight=0,this._contentObserver?.disconnect(),this._contentObserver=void 0}refresh(){return this._sendConfig()}setTheme(t){this._theme=t,this._postTheme()}_postTheme(){!this._theme||!this.frameOrigin||this.frame?.contentWindow?.postMessage({type:"hp-preview:theme",...this._theme},this.frameOrigin)}async _sendConfig(){if(!this.dataUri||!this.frameOrigin)return;let t=++this._generation;try{let r=await fetch(this.dataUri,{credentials:"same-origin",headers:{"x-kx-fetch-style":"download"}});if(!r.ok)throw new Error(await r.text()||r.statusText);let n=await r.json();if(t!==this._generation)return;this.frame?.contentWindow?.postMessage({type:"hp-preview:config",...n},this.frameOrigin)}catch(r){t===this._generation&&this._fail(r instanceof Error?r.message:String(r))}}_attachForms(){let t=this.getRootNode(),r=new Set;t.querySelectorAll(this.watch).forEach(n=>{n instanceof HTMLFormElement&&r.add(n)}),this._watchedForms.forEach(n=>{r.has(n)||(this._detachForm(n),this._watchedForms.delete(n))}),r.forEach(n=>{this._watchedForms.has(n)||(this._watchedForms.add(n),n.addEventListener("submit",this._onSubmit,{capture:!0}),n.addEventListener("zn-change",this._onChange),n.addEventListener("zn-input",this._onChange),n.addEventListener("change",this._onChange))})}_detachForm(t){t.removeEventListener("submit",this._onSubmit,{capture:!0}),t.removeEventListener("zn-change",this._onChange),t.removeEventListener("zn-input",this._onChange),t.removeEventListener("change",this._onChange);let r=this._debounceTimers.get(t);r&&window.clearTimeout(r),this._debounceTimers.delete(t)}async _save(t){try{let r=await fetch(t.getAttribute("action")||"",{method:"POST",credentials:"same-origin",headers:{"x-kx-fetch-style":"download"},body:new FormData(t)}),n=r.headers.get("x-kubex-alert-danger");if(n)throw new Error(n);if(!r.ok)throw new Error(await r.text()||r.statusText);await this._sendConfig()}catch(r){this._fail(r instanceof Error?r.message:String(r))}}_fail(t){this.error=t,this.emit("zn-error",{detail:{message:t}})}render(){let t=this.zoom>0&&this.zoom<=1?this.zoom:1,r=this.error||this.interactive?0:this._contentHeight,n=this.fill?{width:"100%",height:r?`max(${r}px, 100%)`:"100%"}:{width:`${100/t}%`,height:`${Math.max(r,this.minHeight/t)}px`,transform:`scale(${t})`,transformOrigin:"0 0"},a=this.fill?{height:"100%",minHeight:`${this.minHeight}px`}:{height:`${this.minHeight}px`},s={width:l3[this.device]??l3.desktop};return r&&(s.height=this.fill?`max(${r}px, 100%)`:`${Math.max(r*t,this.minHeight)}px`),u`
|
|
5980
5981
|
<div part="base" class="preview" style="${xt(a)}">
|
|
5981
5982
|
<div part="stage" class="preview__stage" style="${xt(s)}">
|
|
5982
5983
|
<iframe part="iframe"
|
|
@@ -6115,7 +6116,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
|
|
|
6115
6116
|
@zn-error="${this._onFrameError}"></zn-preview-frame>
|
|
6116
6117
|
</div>
|
|
6117
6118
|
</div>
|
|
6118
|
-
</div>`}};De.styles=z(c3),De.dependencies={"zn-collapsible":za,"zn-preview-frame":Jg,"zn-icon":ne,"zn-button":Me,"zn-button-group":Fl,"zn-tabs":sn,"zn-navbar":Ca,"zn-select":Be,"zn-option":st},c([d()],De.prototype,"src",2),c([d({attribute:"frame-origin"})],De.prototype,"frameOrigin",2),c([d({attribute:"data-uri"})],De.prototype,"dataUri",2),c([d({reflect:!0})],De.prototype,"mode",2),c([d({reflect:!0})],De.prototype,"device",2),c([d({type:Number,attribute:"min-height"})],De.prototype,"minHeight",2),c([d({type:Number})],De.prototype,"debounce",2),c([d()],De.prototype,"action",2),c([d({type:Number,attribute:"save-debounce"})],De.prototype,"saveDebounce",2),c([d({type:Array})],De.prototype,"sections",2),c([d({attribute:"section-layout"})],De.prototype,"sectionLayout",2),c([d({type:Array})],De.prototype,"sources",2),c([d({type:Boolean,reflect:!0,attribute:"controls-collapsed"})],De.prototype,"controlsCollapsed",2),c([d({type:Boolean,reflect:!0})],De.prototype,"standalone",2),c([d({attribute:"controls-caption"})],De.prototype,"controlsCaption",2),c([d({attribute:"preview-caption"})],De.prototype,"previewCaption",2),c([d({attribute:"submit-label"})],De.prototype,"submitLabel",2),c([d({type:Boolean})],De.prototype,"manual",2),c([F("zn-preview-frame")],De.prototype,"frame",2),c([F("slot:not([name])")],De.prototype,"controlsSlot",2),c([ts(".editor__section-slot")],De.prototype,"sectionSlots",2),c([I()],De.prototype,"error",2),c([I()],De.prototype,"_submitting",2),c([I()],De.prototype,"_sourceIndex",2);var JI=De;De.define("zn-theme-editor");var d3=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--slot-height:18px;--gutter-width:64px;--open-color:rgb(var(--zn-primary));--reduced-color:rgba(var(--zn-primary),0.3);--closed-color:var(--zn-color-neutral-0);--grid-line-color:rgb(var(--zn-border-color));display:block}.schedule-builder{color:rgb(var(--zn-text));font-size:var(--zn-font-size-small)}.schedule-builder--disabled{opacity:0.6;pointer-events:none}.schedule-builder__toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-x-small)}.schedule-builder__hint{flex:1 1 240px;margin:0;color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-small)}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);margin:0;padding:0;list-style:none}.legend__item{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);color:var(--zn-color-neutral-600);font-size:var(--zn-font-size-x-small);white-space:nowrap}.legend__swatch{width:14px;height:14px;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius-small);background-color:var(--closed-color)}.legend__swatch--open{border-color:transparent;background-color:var(--open-color)}.timezone{flex:0 1 auto;width:260px;max-width:100%}.view-toggle{display:inline-flex;overflow:hidden;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius)}.view-toggle__button{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border:none;background:none;color:var(--zn-color-neutral-500);cursor:pointer}.view-toggle__button:not(:first-child){border-left:1px solid var(--grid-line-color)}.view-toggle__button:hover{background-color:var(--zn-color-neutral-100)}.view-toggle__button:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:-2px}.view-toggle__button--active{background-color:var(--zn-color-primary-100);color:var(--zn-color-primary-700)}.view-toggle__button--active:hover{background-color:var(--zn-color-primary-100)}.schedule-builder__calendar{display:flex;align-items:flex-start;gap:var(--zn-spacing-medium)}.calendar{flex:1 1 auto;min-width:0;overflow:hidden;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius);background-color:var(--zn-panel-background-color)}.calendar__head,.calendar__body{display:grid;grid-template-columns:var(--gutter-width) repeat(var(--columns),minmax(0,1fr))}.calendar__head{border-bottom:1px solid var(--grid-line-color);background-color:var(--zn-color-neutral-50)}.calendar__head-cell{display:flex;flex-direction:column;gap:2px;padding:var(--zn-spacing-x-small);border-left:1px solid var(--grid-line-color);overflow:hidden}.calendar__head-day{font-weight:var(--zn-font-weight-semibold,600);white-space:nowrap}.calendar__head-hours{color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar__head-cell--closed .calendar__head-day,.calendar__head-cell--closed .calendar__head-hours{color:var(--zn-color-neutral-400)}.calendar__body{padding-top:var(--zn-spacing-x-small);padding-bottom:var(--zn-spacing-x-small)}.calendar__gutter{display:grid;grid-auto-rows:calc(var(--slot-height) * var(--slots-per-hour))}.calendar__hour{position:relative}.calendar__hour span{position:absolute;top:0;right:var(--zn-spacing-x-small);transform:translateY(-50%);color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);font-variant-numeric:tabular-nums;white-space:nowrap}.calendar__canvas{display:grid;grid-column:span var(--columns);grid-template-columns:repeat(var(--columns),minmax(0,1fr));touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.calendar__col{display:grid;grid-auto-rows:var(--slot-height);border-left:1px solid var(--grid-line-color)}.calendar__slot{border-bottom:1px dotted rgba(var(--zn-border-color),0.6);background-color:var(--closed-color)}.calendar__slot--hour{border-top:1px solid rgba(var(--zn-border-color),0.6)}.calendar__slot--open{background-color:var(--open-color);border-bottom-color:rgba(255,255,255,0.25)}.calendar__slot--reduced{background-color:var(--reduced-color);border-bottom-color:rgba(255,255,255,0.4)}.schedule-builder:not(.schedule-builder--readonly):not(.schedule-builder--disabled) .calendar__canvas{cursor:crosshair}.summary{flex:0 0 260px;max-width:260px}.summary__title{margin:0 0 var(--zn-spacing-x-small);color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold,600);letter-spacing:0.06em;text-transform:uppercase}.summary__list{margin:0}.summary__row{display:flex;align-items:baseline;justify-content:space-between;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-x-small) 0;border-bottom:1px solid var(--grid-line-color)}.summary__row dt{font-weight:var(--zn-font-weight-semibold,600)}.summary__row dd{margin:0;font-variant-numeric:tabular-nums;text-align:right}.summary__closed{color:var(--zn-color-neutral-400)}.summary__row--total{border-bottom:none}.summary__row--total dd{font-weight:var(--zn-font-weight-semibold,600)}.list{display:flex;flex-direction:column}.list__row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-2x-small);border-bottom:1px solid var(--grid-line-color)}.list__row--editing{border-radius:var(--zn-border-radius);background-color:var(--zn-color-primary-50)}.list__day{font-weight:var(--zn-font-weight-semibold,600)}.list__day--closed{color:var(--zn-color-neutral-400)}.list__ranges{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-x-small);min-height:32px}.list__closed{color:var(--zn-color-neutral-400)}.list__note{color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small)}.list__chip{padding:6px 10px;border:none;border-radius:var(--zn-border-radius);background-color:var(--zn-color-primary-100);color:var(--zn-color-primary-700);font-family:inherit;font-size:var(--zn-font-size-small);font-variant-numeric:tabular-nums;cursor:pointer}.list__chip:hover:not([disabled]){background-color:var(--zn-color-primary-200)}.list__chip[disabled]{cursor:default}.list__chip:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:1px}.list__chip--reduced{background-color:var(--zn-color-warning-50);color:var(--zn-color-warning-600)}.list__chip--reduced:hover:not([disabled]){background-color:var(--zn-color-warning-50)}.list__editor{display:flex;align-items:center;gap:var(--zn-spacing-2x-small)}.list__editor zn-input{width:130px}.list__editor-separator{color:var(--zn-color-neutral-500)}.list__remove{display:inline-flex;align-items:center;justify-content:center;padding:4px;border:none;border-radius:var(--zn-border-radius);background:none;color:var(--zn-color-neutral-500);cursor:pointer}.list__remove:hover{background-color:var(--zn-color-neutral-100);color:rgb(var(--zn-text))}.list__add{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);padding:4px var(--zn-spacing-x-small);border:none;border-radius:var(--zn-border-radius);background:none;color:rgb(var(--zn-text));font-family:inherit;font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold,600);letter-spacing:0.04em;text-transform:uppercase;white-space:nowrap;cursor:pointer}.list__add:hover{background-color:var(--zn-color-neutral-100)}.list__add:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:-2px}@media (max-width:900px){.schedule-builder__calendar{flex-direction:column}.summary{flex:1 1 auto;max-width:none;width:100%}}`;var cr=["mon","tue","wed","thu","fri","sat","sun"],ml={mon:{short:"Mon",long:"Monday"},tue:{short:"Tue",long:"Tuesday"},wed:{short:"Wed",long:"Wednesday"},thu:{short:"Thu",long:"Thursday"},fri:{short:"Fri",long:"Friday"},sat:{short:"Sat",long:"Saturday"},sun:{short:"Sun",long:"Sunday"}},$i=1440;function fl(){return{mon:[],tue:[],wed:[],thu:[],fri:[],sat:[],sun:[]}}function fi(o){if(typeof o=="number"&&Number.isFinite(o))return Math.min(Math.max(Math.round(o),0),$i);if(typeof o!="string")return null;let i=/^(\d{1,2}):(\d{2})(?::\d{2})?$/.exec(o.trim());if(!i)return null;let t=Number(i[1]),r=Number(i[2]);if(t>24||r>59)return null;let n=t*60+r;return n>$i?null:n}function Kr(o){let i=Math.min(Math.max(Math.round(o),0),$i),t=Math.floor(i/60),r=i%60;return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function gl(o){let i=[];o.forEach(r=>{let n=fi(r?.start),a=fi(r?.end);n===null||a===null||a<=n||i.push([n,a])}),i.sort((r,n)=>r[0]-n[0]);let t=[];return i.forEach(r=>{let n=t[t.length-1];if(n&&r[0]<=n[1]){n[1]=Math.max(n[1],r[1]);return}t.push([r[0],r[1]])}),t.map(([r,n])=>({start:Kr(r),end:Kr(n)}))}function Kh(o){if(!Array.isArray(o))return[];let i=[];return o.forEach(t=>{if(typeof t=="string"){let[r,n]=t.split(/\s*[-–—]\s*/);r&&n&&i.push({start:r,end:n});return}if(t&&typeof t=="object"){let r=t;r.start&&r.end&&i.push({start:String(r.start),end:String(r.end)})}}),gl(i)}function ZI(o,i,t){return gl([...o,{start:Kr(i),end:Kr(t)}])}function eD(o,i,t){let r=[];return o.forEach(n=>{let a=fi(n.start),s=fi(n.end);if(!(a===null||s===null)){if(s<=i||a>=t){r.push(n);return}a<i&&r.push({start:Kr(a),end:Kr(i)}),s>t&&r.push({start:Kr(t),end:Kr(s)})}}),gl(r)}function tD(o){return o.reduce((i,t)=>{let r=fi(t.start),n=fi(t.end);return r===null||n===null?i:i+(n-r)},0)}function Yh(o){if(!o)return null;let i=/^(\d{4})-(\d{2})-(\d{2})/.exec(o.trim());if(!i)return null;let t=new Date(Number(i[1]),Number(i[2])-1,Number(i[3]));return Number.isNaN(t.getTime())?null:t}function rD(o){return Yh(o.date??o.from)}function iD(o){return Yh(o.to??o.date??o.from)}function p3(o){if(o.days?.length)return o.days.filter(s=>cr.includes(s));let i=rD(o),t=iD(o);if(!i||!t)return[];let r=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()),n=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n-r)/864e5)>=cr.length-1?[...cr]:[]}function Zg(o){return o.closed?[]:o.ranges?Kh(o.ranges):null}var Ka=7*$i;function bl(o){let i=o.filter(([r,n])=>n>r).sort((r,n)=>r[0]-n[0]),t=[];return i.forEach(r=>{let n=t[t.length-1];if(n&&r[0]<=n[1]){n[1]=Math.max(n[1],r[1]);return}t.push([r[0],r[1]])}),t}function rb(o){let i=[];return cr.forEach((t,r)=>{let n=r*$i;o[t].forEach(a=>{let s=fi(a.start),l=fi(a.end);s===null||l===null||l<=s||i.push([n+s,n+l])})}),bl(i)}function nD(o){let i=fl();return bl(o).forEach(([t,r])=>{let n=t;for(;n<r;){let a=Math.min(Math.floor(n/$i),cr.length-1),s=a*$i,l=Math.min(r,s+$i);i[cr[a]].push({start:Kr(n-s),end:Kr(l-s)}),n=l}}),cr.forEach(t=>{i[t]=gl(i[t])}),i}function u3(o,i){if(!i)return o.map(r=>[r[0],r[1]]);let t=[];return o.forEach(([r,n])=>{let a=Math.min(n-r,Ka),s=((r+i)%Ka+Ka)%Ka,l=s+a;if(l<=Ka){t.push([s,l]);return}t.push([s,Ka]),t.push([0,l-Ka])}),bl(t)}function eb(o,i){return i?nD(u3(rb(o),i)):o}function oD(o,i){let t=bl(o);return bl(i).forEach(([r,n])=>{let a=[];t.forEach(([s,l])=>{if(l<=r||s>=n){a.push([s,l]);return}s<r&&a.push([s,r]),l>n&&a.push([n,l])}),t=a}),t}function tb(o,i){return o.some(([t,r])=>i>=t&&i<r)}function Ya(o,i){if(!o)return 0;try{let t=new Intl.DateTimeFormat("en-US",{timeZone:o,hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(i),r=s=>Number(t.find(l=>l.type===s)?.value),n=r("hour")%24,a=Date.UTC(r("year"),r("month")-1,r("day"),n,r("minute"),r("second"));return Math.round((a-i.getTime())/6e4)}catch{return 0}}function aD(o){let i=o<0?"-":"+",t=Math.abs(o);return`UTC${i}${String(Math.floor(t/60)).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`}function sD(o,i){return!o.label&&o.zone==="UTC"?"UTC":`${o.label??o.zone.replace(/_/g," ")} (${aD(Ya(o.zone,i))})`}function h3(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}var lD=[{zone:"America/New_York",label:"US Eastern"},{zone:"America/Chicago",label:"US Central"},{zone:"America/Denver",label:"US Mountain"},{zone:"America/Los_Angeles",label:"US Pacific"},{zone:"Europe/London",label:"UK"},{zone:"Australia/Sydney",label:"Australia"}],cD=["UTC","Pacific/Auckland","Australia/Sydney","Australia/Brisbane","Australia/Adelaide","Australia/Perth","Asia/Tokyo","Asia/Seoul","Asia/Shanghai","Asia/Hong_Kong","Asia/Singapore","Asia/Bangkok","Asia/Jakarta","Asia/Kolkata","Asia/Karachi","Asia/Dubai","Europe/Moscow","Africa/Nairobi","Europe/Istanbul","Europe/Athens","Africa/Johannesburg","Europe/Berlin","Europe/Paris","Europe/Madrid","Europe/Amsterdam","Europe/Dublin","Europe/London","Europe/Lisbon","Atlantic/Reykjavik","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Halifax","America/New_York","America/Toronto","America/Chicago","America/Mexico_City","America/Denver","America/Phoenix","America/Los_Angeles","America/Vancouver","America/Anchorage","Pacific/Honolulu"],m3=["Pacific/Midway","Pacific/Honolulu","Pacific/Marquesas","America/Anchorage","America/Los_Angeles","America/Vancouver","America/Tijuana","America/Denver","America/Phoenix","America/Edmonton","America/Chicago","America/Mexico_City","America/Winnipeg","America/Guatemala","America/New_York","America/Toronto","America/Bogota","America/Lima","America/Panama","America/Halifax","America/Puerto_Rico","America/Santiago","America/St_Johns","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Montevideo","America/Noronha","America/Nuuk","Atlantic/Azores","Atlantic/Cape_Verde","UTC","Europe/London","Europe/Dublin","Europe/Lisbon","Atlantic/Reykjavik","Africa/Abidjan","Africa/Casablanca","Africa/Lagos","Africa/Algiers","Europe/Paris","Europe/Berlin","Europe/Madrid","Europe/Rome","Europe/Amsterdam","Europe/Brussels","Europe/Zurich","Europe/Vienna","Europe/Prague","Europe/Warsaw","Europe/Stockholm","Europe/Oslo","Europe/Copenhagen","Europe/Budapest","Europe/Athens","Europe/Helsinki","Europe/Bucharest","Europe/Kyiv","Africa/Cairo","Africa/Johannesburg","Asia/Jerusalem","Europe/Istanbul","Europe/Moscow","Africa/Nairobi","Asia/Riyadh","Asia/Baghdad","Asia/Tehran","Asia/Dubai","Asia/Baku","Asia/Tbilisi","Asia/Kabul","Asia/Karachi","Asia/Tashkent","Asia/Kolkata","Asia/Colombo","Asia/Kathmandu","Asia/Dhaka","Asia/Almaty","Asia/Yangon","Asia/Bangkok","Asia/Jakarta","Asia/Ho_Chi_Minh","Asia/Shanghai","Asia/Hong_Kong","Asia/Singapore","Asia/Kuala_Lumpur","Asia/Taipei","Asia/Manila","Asia/Tokyo","Asia/Seoul","Australia/Perth","Australia/Eucla","Australia/Darwin","Australia/Adelaide","Australia/Brisbane","Australia/Sydney","Australia/Melbourne","Australia/Hobart","Pacific/Guam","Pacific/Noumea","Pacific/Auckland","Pacific/Fiji","Pacific/Chatham","Pacific/Tongatapu","Pacific/Kiritimati"];function dD(){return typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):m3}function pD(o){switch(o.toLowerCase()){case"en":return lD;case"offsets":return cD.map(i=>({zone:i}));case"common":return m3.map(i=>({zone:i}));case"all":return dD().map(i=>({zone:i}));default:return[{zone:o}]}}var ve=class extends k{constructor(){super();this.formControlController=new re(this,{assumeInteractionOn:["zn-change"]});this.hasSlotController=new Y(this,"help-text","label");this.localize=new Ft(this);this._days=fl();this._exceptions=[];this._dragPreview=null;this._editing=null;this._dragMode="open";this._dragAnchor=null;this._dragPointerId=null;this.value="";this.defaultValue="";this.label="";this.helpText="";this.view="calendar";this.openLabel="Available";this.closedLabel="Closed";this.noToggle=!1;this.hideSummary=!1;this.startHour=6;this.endHour=22;this.interval=30;this.weekStart="mon";this.timeFormat="24";this.displayTimezone="";this.saveTimezone="";this.showTimezone=!1;this.timezones=[];this.referenceDate="";this.disabled=!1;this.readonly=!1;this.required=!1;this._customValidity="";this._handleCanvasPointerDown=t=>{if(!this._isEditable||t.button!==0)return;let r=this._pointerPosition(t);if(!r)return;let n=this._orderedDays[r.col],a=rb(this._storedAsShown);this._dragMode=tb(a,this._slotMinute(n,r.row))?"close":"open",this._dragAnchor=r,this._dragPointerId=t.pointerId,this._dragPreview=this._buildDragPreview(r),this.canvas.setPointerCapture(t.pointerId),t.preventDefault()};this._handleCanvasPointerMove=t=>{if(!this._dragAnchor||t.pointerId!==this._dragPointerId)return;let r=this._pointerPosition(t);r&&(this._dragPreview=this._buildDragPreview(r))};this._handleCanvasPointerUp=t=>{if(!this._dragAnchor||t.pointerId!==this._dragPointerId)return;let r=this._pointerPosition(t)??this._dragAnchor,n=this._buildDragPreview(r);this._dragAnchor=null,this._dragPointerId=null,this._dragPreview=null,this.canvas.hasPointerCapture(t.pointerId)&&this.canvas.releasePointerCapture(t.pointerId),this._commitShownDays(n)};this._handleCanvasPointerCancel=()=>{this._dragAnchor=null,this._dragPointerId=null,this._dragPreview=null};this.internals=typeof this.attachInternals=="function"?this.attachInternals():null}get schedule(){return{...this._saveZone?{timezone:this._saveZone}:{},days:this._cloneDays(this._days),exceptions:this._exceptions}}set schedule(t){this._applySchedule(t),this._commit(!1)}get exceptions(){return this._exceptions}set exceptions(t){this._exceptions=Array.isArray(t)?t:[],this._commit(!1)}get validity(){return this.internals?.validity??Je}get validationMessage(){return this.internals?.validationMessage??""}get _isZoned(){return!!(this.saveTimezone||this.displayTimezone||this.showTimezone)}get _saveZone(){return this.saveTimezone?this.saveTimezone:this._isZoned?"UTC":""}get _displayZone(){return this.displayTimezone==="auto"?h3():this.displayTimezone||this._saveZone}get _reference(){return Yh(this.referenceDate)??new Date}get _offsetDelta(){let t=this._saveZone,r=this._displayZone;if(!t||!r||t===r)return 0;let n=this._reference;return Ya(r,n)-Ya(t,n)}get _orderedDays(){let t=Math.max(cr.indexOf(this.weekStart),0);return[...cr.slice(t),...cr.slice(0,t)]}get _interval(){let t=Math.round(this.interval);return[5,10,15,20,30,60].includes(t)?t:30}get _startMinute(){return Math.min(Math.max(Math.round(this.startHour),0),23)*60}get _endMinute(){let t=Math.min(Math.max(Math.round(this.endHour),1),24)*60;return t<=this._startMinute?Math.min(this._startMinute+60,$i):t}get _slotCount(){return Math.ceil((this._endMinute-this._startMinute)/this._interval)}get _slotsPerHour(){return Math.max(Math.round(60/this._interval),1)}get _isEditable(){return!this.disabled&&!this.readonly}get _hasHours(){return cr.some(t=>this._days[t].length>0)}connectedCallback(){super.connectedCallback(),this.value&&this._applySchedule(this.value),this._syncFormValue()}firstUpdated(){this._commit(!1)}handleValueChange(){this.value!==this._serialise()&&(this._applySchedule(this.value),this._syncFormValue())}handleValidationStateChange(){this._syncFormValue()}checkValidity(){return this.internals?.checkValidity()??!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.internals?.reportValidity()??!0}setCustomValidity(t){this._customValidity=t,this._syncFormValue(),this.formControlController.updateValidity()}setDay(t,r){cr.includes(t)&&(this._days={...this._days,[t]:Kh(r)},this._commit())}getDay(t){return this._days[t]??[]}get displayedDays(){return this._cloneDays(this._storedAsShown)}setDisplayDay(t,r){cr.includes(t)&&this._commitShownDays({...this._storedAsShown,[t]:Kh(r)})}formResetCallback(){this._applySchedule(this.defaultValue),this._commit(!1)}formStateRestoreCallback(t){this._applySchedule(t),this._commit(!1)}_cloneDays(t){let r=fl();return cr.forEach(n=>{r[n]=t[n].map(a=>({...a}))}),r}_serialise(){return JSON.stringify(this.schedule)}_applySchedule(t){let r=t;if(typeof t=="string"){let p=t.trim();if(!p){this._days=fl(),this._exceptions=[];return}try{r=JSON.parse(p)}catch{return}}if(!r||typeof r!="object"){this._days=fl(),this._exceptions=[];return}let n=r,a=n.days??n,s=fl();cr.forEach(p=>{s[p]=Kh(a?.[p])});let l=typeof n.timezone=="string"?n.timezone:"";if(l&&!this.saveTimezone)this.saveTimezone=l;else if(l&&l!==this.saveTimezone){let p=this._reference,h=Ya(this.saveTimezone,p)-Ya(l,p);this._days=eb(s,h),this._exceptions=Array.isArray(n.exceptions)?n.exceptions:[];return}this._days=s,this._exceptions=Array.isArray(n.exceptions)?n.exceptions:[]}_syncFormValue(){if(!this.internals)return;this.internals.setFormValue(this.value);let t=this.shadowRoot?.querySelector(".schedule-builder")??void 0;if(this._customValidity){this.internals.setValidity({customError:!0},this._customValidity,t);return}if(this.required&&!this._hasHours){this.internals.setValidity({valueMissing:!0},"Please open at least one period.",t);return}this.internals.setValidity({})}_commit(t=!0){let r=this._serialise();r!==this.value&&(this.value=r),this._syncFormValue(),this.formControlController.updateValidity(),t&&this.emit("zn-change")}_formatTime(t){let r=fi(t);if(r===null)return t;if(this.timeFormat==="24")return Kr(r);let n=Math.floor(r/60)%24,a=r%60,s=n<12?"am":"pm",l=n%12===0?12:n%12;return a===0?`${l}${s}`:`${l}:${String(a).padStart(2,"0")}${s}`}_formatRange(t){return`${this._formatTime(t.start)}\u2013${this._formatTime(t.end)}`}_formatDate(t){let r=Yh(t);return r?this.localize.date(r,{day:"numeric",month:"short"}):""}_summariseDay(t,r){let n=r[t];return n.length?n.map(a=>this._formatRange(a)).join(", "):this.closedLabel}get _storedAsShown(){return eb(this._days,this._offsetDelta)}get _shownDays(){return this._dragPreview??this._storedAsShown}_commitShownDays(t){this._days=eb(t,-this._offsetDelta),this._commit()}_exceptionsForDay(t){return this._exceptions.filter(r=>p3(r).includes(t))}get _shownReductionSpans(){let t=[];return this._exceptions.forEach(r=>{let n=Zg(r);n!==null&&p3(r).forEach(a=>{let s=cr.indexOf(a)*$i;t.push(...oD([[s,s+$i]],n.reduce((l,p)=>{let h=fi(p.start),m=fi(p.end);return h!==null&&m!==null&&l.push([s+h,s+m]),l},[])))})}),u3(bl(t),this._offsetDelta)}_slotMinute(t,r){return cr.indexOf(t)*$i+this._startMinute+r*this._interval+this._interval/2}_slotState(t,r,n,a){let s=this._slotMinute(t,r);return tb(n,s)?tb(a,s)?"reduced":"open":"closed"}_pointerPosition(t){if(!this.canvas)return null;let r=this.canvas.getBoundingClientRect();if(!r.width||!r.height)return null;let n=this._orderedDays.length,a=Math.floor((t.clientX-r.left)/r.width*n),s=Math.floor((t.clientY-r.top)/r.height*this._slotCount);return{col:Math.min(Math.max(a,0),n-1),row:Math.min(Math.max(s,0),this._slotCount-1)}}_buildDragPreview(t){let r=this._dragAnchor,n=this._cloneDays(this._storedAsShown),a=Math.min(r.col,t.col),s=Math.max(r.col,t.col),l=Math.min(r.row,t.row),p=Math.max(r.row,t.row),h=this._startMinute+l*this._interval,m=Math.min(this._startMinute+(p+1)*this._interval,this._endMinute);return this._orderedDays.slice(a,s+1).forEach(b=>{n[b]=this._dragMode==="open"?ZI(n[b],h,m):eD(n[b],h,m)}),n}_handleViewToggle(t){this.view!==t&&(this._editing=null,this.view=t)}_nextFreeRange(t){if(!t.length)return{start:"09:00",end:"17:00"};let r=this._startMinute;for(let a of t){let s=fi(a.start)??0,l=fi(a.end)??0;if(s-r>=60)break;r=Math.max(r,l)}let n=Math.min(r,$i-60);return{start:Kr(n),end:Kr(n+60)}}_handleAddRange(t){if(!this._isEditable)return;let r=this._storedAsShown,n=this._nextFreeRange(r[t]),a=gl([...r[t],n]);this._commitShownDays({...r,[t]:a}),this._editing={day:t,index:Math.max(a.findIndex(s=>s.start===n.start),0)}}_handleRemoveRange(t,r){if(!this._isEditable)return;let n=this._storedAsShown;this._editing=null,this._commitShownDays({...n,[t]:n[t].filter((a,s)=>s!==r)})}_handleRangeEdit(t,r,n,a){let s=fi(a);if(s===null)return;let l=this._storedAsShown,p=gl(l[t].map((h,m)=>m===r?{...h,[n]:Kr(s)}:h));this._editing&&this._editing.day===t&&this._editing.index>=p.length&&(this._editing=p.length?{day:t,index:p.length-1}:null),this._commitShownDays({...l,[t]:p})}_handleEditorKeyDown(t){(t.key==="Enter"||t.key==="Escape")&&(t.preventDefault(),t.stopPropagation(),this._editing=null)}_handleEditorFocusOut(t){let r=t.currentTarget,n=t.relatedTarget;n&&r.contains(n)||(this._editing=null)}_renderToolbar(){let t=!this.noToggle,r=this.view==="calendar";return!t&&!r&&!this.showTimezone?B:u`
|
|
6119
|
+
</div>`}};De.styles=z(c3),De.dependencies={"zn-collapsible":za,"zn-preview-frame":Jg,"zn-icon":ne,"zn-button":Me,"zn-button-group":Fl,"zn-tabs":sn,"zn-navbar":Ca,"zn-select":Be,"zn-option":lt},c([d()],De.prototype,"src",2),c([d({attribute:"frame-origin"})],De.prototype,"frameOrigin",2),c([d({attribute:"data-uri"})],De.prototype,"dataUri",2),c([d({reflect:!0})],De.prototype,"mode",2),c([d({reflect:!0})],De.prototype,"device",2),c([d({type:Number,attribute:"min-height"})],De.prototype,"minHeight",2),c([d({type:Number})],De.prototype,"debounce",2),c([d()],De.prototype,"action",2),c([d({type:Number,attribute:"save-debounce"})],De.prototype,"saveDebounce",2),c([d({type:Array})],De.prototype,"sections",2),c([d({attribute:"section-layout"})],De.prototype,"sectionLayout",2),c([d({type:Array})],De.prototype,"sources",2),c([d({type:Boolean,reflect:!0,attribute:"controls-collapsed"})],De.prototype,"controlsCollapsed",2),c([d({type:Boolean,reflect:!0})],De.prototype,"standalone",2),c([d({attribute:"controls-caption"})],De.prototype,"controlsCaption",2),c([d({attribute:"preview-caption"})],De.prototype,"previewCaption",2),c([d({attribute:"submit-label"})],De.prototype,"submitLabel",2),c([d({type:Boolean})],De.prototype,"manual",2),c([F("zn-preview-frame")],De.prototype,"frame",2),c([F("slot:not([name])")],De.prototype,"controlsSlot",2),c([ts(".editor__section-slot")],De.prototype,"sectionSlots",2),c([I()],De.prototype,"error",2),c([I()],De.prototype,"_submitting",2),c([I()],De.prototype,"_sourceIndex",2);var JI=De;De.define("zn-theme-editor");var d3=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--slot-height:18px;--gutter-width:64px;--open-color:rgb(var(--zn-primary));--reduced-color:rgba(var(--zn-primary),0.3);--closed-color:var(--zn-color-neutral-0);--grid-line-color:rgb(var(--zn-border-color));display:block}.schedule-builder{color:rgb(var(--zn-text));font-size:var(--zn-font-size-small)}.schedule-builder--disabled{opacity:0.6;pointer-events:none}.schedule-builder__toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-x-small)}.schedule-builder__hint{flex:1 1 240px;margin:0;color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-small)}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);margin:0;padding:0;list-style:none}.legend__item{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);color:var(--zn-color-neutral-600);font-size:var(--zn-font-size-x-small);white-space:nowrap}.legend__swatch{width:14px;height:14px;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius-small);background-color:var(--closed-color)}.legend__swatch--open{border-color:transparent;background-color:var(--open-color)}.timezone{flex:0 1 auto;width:260px;max-width:100%}.view-toggle{display:inline-flex;overflow:hidden;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius)}.view-toggle__button{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border:none;background:none;color:var(--zn-color-neutral-500);cursor:pointer}.view-toggle__button:not(:first-child){border-left:1px solid var(--grid-line-color)}.view-toggle__button:hover{background-color:var(--zn-color-neutral-100)}.view-toggle__button:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:-2px}.view-toggle__button--active{background-color:var(--zn-color-primary-100);color:var(--zn-color-primary-700)}.view-toggle__button--active:hover{background-color:var(--zn-color-primary-100)}.schedule-builder__calendar{display:flex;align-items:flex-start;gap:var(--zn-spacing-medium)}.calendar{flex:1 1 auto;min-width:0;overflow:hidden;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius);background-color:var(--zn-panel-background-color)}.calendar__head,.calendar__body{display:grid;grid-template-columns:var(--gutter-width) repeat(var(--columns),minmax(0,1fr))}.calendar__head{border-bottom:1px solid var(--grid-line-color);background-color:var(--zn-color-neutral-50)}.calendar__head-cell{display:flex;flex-direction:column;gap:2px;padding:var(--zn-spacing-x-small);border-left:1px solid var(--grid-line-color);overflow:hidden}.calendar__head-day{font-weight:var(--zn-font-weight-semibold,600);white-space:nowrap}.calendar__head-hours{color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar__head-cell--closed .calendar__head-day,.calendar__head-cell--closed .calendar__head-hours{color:var(--zn-color-neutral-400)}.calendar__body{padding-top:var(--zn-spacing-x-small);padding-bottom:var(--zn-spacing-x-small)}.calendar__gutter{display:grid;grid-auto-rows:calc(var(--slot-height) * var(--slots-per-hour))}.calendar__hour{position:relative}.calendar__hour span{position:absolute;top:0;right:var(--zn-spacing-x-small);transform:translateY(-50%);color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);font-variant-numeric:tabular-nums;white-space:nowrap}.calendar__canvas{display:grid;grid-column:span var(--columns);grid-template-columns:repeat(var(--columns),minmax(0,1fr));touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.calendar__col{display:grid;grid-auto-rows:var(--slot-height);border-left:1px solid var(--grid-line-color)}.calendar__slot{border-bottom:1px dotted rgba(var(--zn-border-color),0.6);background-color:var(--closed-color)}.calendar__slot--hour{border-top:1px solid rgba(var(--zn-border-color),0.6)}.calendar__slot--open{background-color:var(--open-color);border-bottom-color:rgba(255,255,255,0.25)}.calendar__slot--reduced{background-color:var(--reduced-color);border-bottom-color:rgba(255,255,255,0.4)}.schedule-builder:not(.schedule-builder--readonly):not(.schedule-builder--disabled) .calendar__canvas{cursor:crosshair}.summary{flex:0 0 260px;max-width:260px}.summary__title{margin:0 0 var(--zn-spacing-x-small);color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold,600);letter-spacing:0.06em;text-transform:uppercase}.summary__list{margin:0}.summary__row{display:flex;align-items:baseline;justify-content:space-between;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-x-small) 0;border-bottom:1px solid var(--grid-line-color)}.summary__row dt{font-weight:var(--zn-font-weight-semibold,600)}.summary__row dd{margin:0;font-variant-numeric:tabular-nums;text-align:right}.summary__closed{color:var(--zn-color-neutral-400)}.summary__row--total{border-bottom:none}.summary__row--total dd{font-weight:var(--zn-font-weight-semibold,600)}.list{display:flex;flex-direction:column}.list__row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-2x-small);border-bottom:1px solid var(--grid-line-color)}.list__row--editing{border-radius:var(--zn-border-radius);background-color:var(--zn-color-primary-50)}.list__day{font-weight:var(--zn-font-weight-semibold,600)}.list__day--closed{color:var(--zn-color-neutral-400)}.list__ranges{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-x-small);min-height:32px}.list__closed{color:var(--zn-color-neutral-400)}.list__note{color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small)}.list__chip{padding:6px 10px;border:none;border-radius:var(--zn-border-radius);background-color:var(--zn-color-primary-100);color:var(--zn-color-primary-700);font-family:inherit;font-size:var(--zn-font-size-small);font-variant-numeric:tabular-nums;cursor:pointer}.list__chip:hover:not([disabled]){background-color:var(--zn-color-primary-200)}.list__chip[disabled]{cursor:default}.list__chip:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:1px}.list__chip--reduced{background-color:var(--zn-color-warning-50);color:var(--zn-color-warning-600)}.list__chip--reduced:hover:not([disabled]){background-color:var(--zn-color-warning-50)}.list__editor{display:flex;align-items:center;gap:var(--zn-spacing-2x-small)}.list__editor zn-input{width:130px}.list__editor-separator{color:var(--zn-color-neutral-500)}.list__remove{display:inline-flex;align-items:center;justify-content:center;padding:4px;border:none;border-radius:var(--zn-border-radius);background:none;color:var(--zn-color-neutral-500);cursor:pointer}.list__remove:hover{background-color:var(--zn-color-neutral-100);color:rgb(var(--zn-text))}.list__add{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);padding:4px var(--zn-spacing-x-small);border:none;border-radius:var(--zn-border-radius);background:none;color:rgb(var(--zn-text));font-family:inherit;font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold,600);letter-spacing:0.04em;text-transform:uppercase;white-space:nowrap;cursor:pointer}.list__add:hover{background-color:var(--zn-color-neutral-100)}.list__add:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:-2px}@media (max-width:900px){.schedule-builder__calendar{flex-direction:column}.summary{flex:1 1 auto;max-width:none;width:100%}}`;var cr=["mon","tue","wed","thu","fri","sat","sun"],ml={mon:{short:"Mon",long:"Monday"},tue:{short:"Tue",long:"Tuesday"},wed:{short:"Wed",long:"Wednesday"},thu:{short:"Thu",long:"Thursday"},fri:{short:"Fri",long:"Friday"},sat:{short:"Sat",long:"Saturday"},sun:{short:"Sun",long:"Sunday"}},$i=1440;function fl(){return{mon:[],tue:[],wed:[],thu:[],fri:[],sat:[],sun:[]}}function fi(o){if(typeof o=="number"&&Number.isFinite(o))return Math.min(Math.max(Math.round(o),0),$i);if(typeof o!="string")return null;let i=/^(\d{1,2}):(\d{2})(?::\d{2})?$/.exec(o.trim());if(!i)return null;let t=Number(i[1]),r=Number(i[2]);if(t>24||r>59)return null;let n=t*60+r;return n>$i?null:n}function Kr(o){let i=Math.min(Math.max(Math.round(o),0),$i),t=Math.floor(i/60),r=i%60;return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function gl(o){let i=[];o.forEach(r=>{let n=fi(r?.start),a=fi(r?.end);n===null||a===null||a<=n||i.push([n,a])}),i.sort((r,n)=>r[0]-n[0]);let t=[];return i.forEach(r=>{let n=t[t.length-1];if(n&&r[0]<=n[1]){n[1]=Math.max(n[1],r[1]);return}t.push([r[0],r[1]])}),t.map(([r,n])=>({start:Kr(r),end:Kr(n)}))}function Kh(o){if(!Array.isArray(o))return[];let i=[];return o.forEach(t=>{if(typeof t=="string"){let[r,n]=t.split(/\s*[-–—]\s*/);r&&n&&i.push({start:r,end:n});return}if(t&&typeof t=="object"){let r=t;r.start&&r.end&&i.push({start:String(r.start),end:String(r.end)})}}),gl(i)}function ZI(o,i,t){return gl([...o,{start:Kr(i),end:Kr(t)}])}function eD(o,i,t){let r=[];return o.forEach(n=>{let a=fi(n.start),s=fi(n.end);if(!(a===null||s===null)){if(s<=i||a>=t){r.push(n);return}a<i&&r.push({start:Kr(a),end:Kr(i)}),s>t&&r.push({start:Kr(t),end:Kr(s)})}}),gl(r)}function tD(o){return o.reduce((i,t)=>{let r=fi(t.start),n=fi(t.end);return r===null||n===null?i:i+(n-r)},0)}function Yh(o){if(!o)return null;let i=/^(\d{4})-(\d{2})-(\d{2})/.exec(o.trim());if(!i)return null;let t=new Date(Number(i[1]),Number(i[2])-1,Number(i[3]));return Number.isNaN(t.getTime())?null:t}function rD(o){return Yh(o.date??o.from)}function iD(o){return Yh(o.to??o.date??o.from)}function p3(o){if(o.days?.length)return o.days.filter(s=>cr.includes(s));let i=rD(o),t=iD(o);if(!i||!t)return[];let r=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()),n=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n-r)/864e5)>=cr.length-1?[...cr]:[]}function Zg(o){return o.closed?[]:o.ranges?Kh(o.ranges):null}var Ka=7*$i;function bl(o){let i=o.filter(([r,n])=>n>r).sort((r,n)=>r[0]-n[0]),t=[];return i.forEach(r=>{let n=t[t.length-1];if(n&&r[0]<=n[1]){n[1]=Math.max(n[1],r[1]);return}t.push([r[0],r[1]])}),t}function rb(o){let i=[];return cr.forEach((t,r)=>{let n=r*$i;o[t].forEach(a=>{let s=fi(a.start),l=fi(a.end);s===null||l===null||l<=s||i.push([n+s,n+l])})}),bl(i)}function nD(o){let i=fl();return bl(o).forEach(([t,r])=>{let n=t;for(;n<r;){let a=Math.min(Math.floor(n/$i),cr.length-1),s=a*$i,l=Math.min(r,s+$i);i[cr[a]].push({start:Kr(n-s),end:Kr(l-s)}),n=l}}),cr.forEach(t=>{i[t]=gl(i[t])}),i}function u3(o,i){if(!i)return o.map(r=>[r[0],r[1]]);let t=[];return o.forEach(([r,n])=>{let a=Math.min(n-r,Ka),s=((r+i)%Ka+Ka)%Ka,l=s+a;if(l<=Ka){t.push([s,l]);return}t.push([s,Ka]),t.push([0,l-Ka])}),bl(t)}function eb(o,i){return i?nD(u3(rb(o),i)):o}function oD(o,i){let t=bl(o);return bl(i).forEach(([r,n])=>{let a=[];t.forEach(([s,l])=>{if(l<=r||s>=n){a.push([s,l]);return}s<r&&a.push([s,r]),l>n&&a.push([n,l])}),t=a}),t}function tb(o,i){return o.some(([t,r])=>i>=t&&i<r)}function Ya(o,i){if(!o)return 0;try{let t=new Intl.DateTimeFormat("en-US",{timeZone:o,hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(i),r=s=>Number(t.find(l=>l.type===s)?.value),n=r("hour")%24,a=Date.UTC(r("year"),r("month")-1,r("day"),n,r("minute"),r("second"));return Math.round((a-i.getTime())/6e4)}catch{return 0}}function aD(o){let i=o<0?"-":"+",t=Math.abs(o);return`UTC${i}${String(Math.floor(t/60)).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`}function sD(o,i){return!o.label&&o.zone==="UTC"?"UTC":`${o.label??o.zone.replace(/_/g," ")} (${aD(Ya(o.zone,i))})`}function h3(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}var lD=[{zone:"America/New_York",label:"US Eastern"},{zone:"America/Chicago",label:"US Central"},{zone:"America/Denver",label:"US Mountain"},{zone:"America/Los_Angeles",label:"US Pacific"},{zone:"Europe/London",label:"UK"},{zone:"Australia/Sydney",label:"Australia"}],cD=["UTC","Pacific/Auckland","Australia/Sydney","Australia/Brisbane","Australia/Adelaide","Australia/Perth","Asia/Tokyo","Asia/Seoul","Asia/Shanghai","Asia/Hong_Kong","Asia/Singapore","Asia/Bangkok","Asia/Jakarta","Asia/Kolkata","Asia/Karachi","Asia/Dubai","Europe/Moscow","Africa/Nairobi","Europe/Istanbul","Europe/Athens","Africa/Johannesburg","Europe/Berlin","Europe/Paris","Europe/Madrid","Europe/Amsterdam","Europe/Dublin","Europe/London","Europe/Lisbon","Atlantic/Reykjavik","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Halifax","America/New_York","America/Toronto","America/Chicago","America/Mexico_City","America/Denver","America/Phoenix","America/Los_Angeles","America/Vancouver","America/Anchorage","Pacific/Honolulu"],m3=["Pacific/Midway","Pacific/Honolulu","Pacific/Marquesas","America/Anchorage","America/Los_Angeles","America/Vancouver","America/Tijuana","America/Denver","America/Phoenix","America/Edmonton","America/Chicago","America/Mexico_City","America/Winnipeg","America/Guatemala","America/New_York","America/Toronto","America/Bogota","America/Lima","America/Panama","America/Halifax","America/Puerto_Rico","America/Santiago","America/St_Johns","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Montevideo","America/Noronha","America/Nuuk","Atlantic/Azores","Atlantic/Cape_Verde","UTC","Europe/London","Europe/Dublin","Europe/Lisbon","Atlantic/Reykjavik","Africa/Abidjan","Africa/Casablanca","Africa/Lagos","Africa/Algiers","Europe/Paris","Europe/Berlin","Europe/Madrid","Europe/Rome","Europe/Amsterdam","Europe/Brussels","Europe/Zurich","Europe/Vienna","Europe/Prague","Europe/Warsaw","Europe/Stockholm","Europe/Oslo","Europe/Copenhagen","Europe/Budapest","Europe/Athens","Europe/Helsinki","Europe/Bucharest","Europe/Kyiv","Africa/Cairo","Africa/Johannesburg","Asia/Jerusalem","Europe/Istanbul","Europe/Moscow","Africa/Nairobi","Asia/Riyadh","Asia/Baghdad","Asia/Tehran","Asia/Dubai","Asia/Baku","Asia/Tbilisi","Asia/Kabul","Asia/Karachi","Asia/Tashkent","Asia/Kolkata","Asia/Colombo","Asia/Kathmandu","Asia/Dhaka","Asia/Almaty","Asia/Yangon","Asia/Bangkok","Asia/Jakarta","Asia/Ho_Chi_Minh","Asia/Shanghai","Asia/Hong_Kong","Asia/Singapore","Asia/Kuala_Lumpur","Asia/Taipei","Asia/Manila","Asia/Tokyo","Asia/Seoul","Australia/Perth","Australia/Eucla","Australia/Darwin","Australia/Adelaide","Australia/Brisbane","Australia/Sydney","Australia/Melbourne","Australia/Hobart","Pacific/Guam","Pacific/Noumea","Pacific/Auckland","Pacific/Fiji","Pacific/Chatham","Pacific/Tongatapu","Pacific/Kiritimati"];function dD(){return typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):m3}function pD(o){switch(o.toLowerCase()){case"en":return lD;case"offsets":return cD.map(i=>({zone:i}));case"common":return m3.map(i=>({zone:i}));case"all":return dD().map(i=>({zone:i}));default:return[{zone:o}]}}var ve=class extends k{constructor(){super();this.formControlController=new re(this,{assumeInteractionOn:["zn-change"]});this.hasSlotController=new Y(this,"help-text","label");this.localize=new Ft(this);this._days=fl();this._exceptions=[];this._dragPreview=null;this._editing=null;this._dragMode="open";this._dragAnchor=null;this._dragPointerId=null;this.value="";this.defaultValue="";this.label="";this.helpText="";this.view="calendar";this.openLabel="Available";this.closedLabel="Closed";this.noToggle=!1;this.hideSummary=!1;this.startHour=6;this.endHour=22;this.interval=30;this.weekStart="mon";this.timeFormat="24";this.displayTimezone="";this.saveTimezone="";this.showTimezone=!1;this.timezones=[];this.referenceDate="";this.disabled=!1;this.readonly=!1;this.required=!1;this._customValidity="";this._handleCanvasPointerDown=t=>{if(!this._isEditable||t.button!==0)return;let r=this._pointerPosition(t);if(!r)return;let n=this._orderedDays[r.col],a=rb(this._storedAsShown);this._dragMode=tb(a,this._slotMinute(n,r.row))?"close":"open",this._dragAnchor=r,this._dragPointerId=t.pointerId,this._dragPreview=this._buildDragPreview(r),this.canvas.setPointerCapture(t.pointerId),t.preventDefault()};this._handleCanvasPointerMove=t=>{if(!this._dragAnchor||t.pointerId!==this._dragPointerId)return;let r=this._pointerPosition(t);r&&(this._dragPreview=this._buildDragPreview(r))};this._handleCanvasPointerUp=t=>{if(!this._dragAnchor||t.pointerId!==this._dragPointerId)return;let r=this._pointerPosition(t)??this._dragAnchor,n=this._buildDragPreview(r);this._dragAnchor=null,this._dragPointerId=null,this._dragPreview=null,this.canvas.hasPointerCapture(t.pointerId)&&this.canvas.releasePointerCapture(t.pointerId),this._commitShownDays(n)};this._handleCanvasPointerCancel=()=>{this._dragAnchor=null,this._dragPointerId=null,this._dragPreview=null};this.internals=typeof this.attachInternals=="function"?this.attachInternals():null}get schedule(){return{...this._saveZone?{timezone:this._saveZone}:{},days:this._cloneDays(this._days),exceptions:this._exceptions}}set schedule(t){this._applySchedule(t),this._commit(!1)}get exceptions(){return this._exceptions}set exceptions(t){this._exceptions=Array.isArray(t)?t:[],this._commit(!1)}get validity(){return this.internals?.validity??Je}get validationMessage(){return this.internals?.validationMessage??""}get _isZoned(){return!!(this.saveTimezone||this.displayTimezone||this.showTimezone)}get _saveZone(){return this.saveTimezone?this.saveTimezone:this._isZoned?"UTC":""}get _displayZone(){return this.displayTimezone==="auto"?h3():this.displayTimezone||this._saveZone}get _reference(){return Yh(this.referenceDate)??new Date}get _offsetDelta(){let t=this._saveZone,r=this._displayZone;if(!t||!r||t===r)return 0;let n=this._reference;return Ya(r,n)-Ya(t,n)}get _orderedDays(){let t=Math.max(cr.indexOf(this.weekStart),0);return[...cr.slice(t),...cr.slice(0,t)]}get _interval(){let t=Math.round(this.interval);return[5,10,15,20,30,60].includes(t)?t:30}get _startMinute(){return Math.min(Math.max(Math.round(this.startHour),0),23)*60}get _endMinute(){let t=Math.min(Math.max(Math.round(this.endHour),1),24)*60;return t<=this._startMinute?Math.min(this._startMinute+60,$i):t}get _slotCount(){return Math.ceil((this._endMinute-this._startMinute)/this._interval)}get _slotsPerHour(){return Math.max(Math.round(60/this._interval),1)}get _isEditable(){return!this.disabled&&!this.readonly}get _hasHours(){return cr.some(t=>this._days[t].length>0)}connectedCallback(){super.connectedCallback(),this.value&&this._applySchedule(this.value),this._syncFormValue()}firstUpdated(){this._commit(!1)}handleValueChange(){this.value!==this._serialise()&&(this._applySchedule(this.value),this._syncFormValue())}handleValidationStateChange(){this._syncFormValue()}checkValidity(){return this.internals?.checkValidity()??!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.internals?.reportValidity()??!0}setCustomValidity(t){this._customValidity=t,this._syncFormValue(),this.formControlController.updateValidity()}setDay(t,r){cr.includes(t)&&(this._days={...this._days,[t]:Kh(r)},this._commit())}getDay(t){return this._days[t]??[]}get displayedDays(){return this._cloneDays(this._storedAsShown)}setDisplayDay(t,r){cr.includes(t)&&this._commitShownDays({...this._storedAsShown,[t]:Kh(r)})}formResetCallback(){this._applySchedule(this.defaultValue),this._commit(!1)}formStateRestoreCallback(t){this._applySchedule(t),this._commit(!1)}_cloneDays(t){let r=fl();return cr.forEach(n=>{r[n]=t[n].map(a=>({...a}))}),r}_serialise(){return JSON.stringify(this.schedule)}_applySchedule(t){let r=t;if(typeof t=="string"){let p=t.trim();if(!p){this._days=fl(),this._exceptions=[];return}try{r=JSON.parse(p)}catch{return}}if(!r||typeof r!="object"){this._days=fl(),this._exceptions=[];return}let n=r,a=n.days??n,s=fl();cr.forEach(p=>{s[p]=Kh(a?.[p])});let l=typeof n.timezone=="string"?n.timezone:"";if(l&&!this.saveTimezone)this.saveTimezone=l;else if(l&&l!==this.saveTimezone){let p=this._reference,h=Ya(this.saveTimezone,p)-Ya(l,p);this._days=eb(s,h),this._exceptions=Array.isArray(n.exceptions)?n.exceptions:[];return}this._days=s,this._exceptions=Array.isArray(n.exceptions)?n.exceptions:[]}_syncFormValue(){if(!this.internals)return;this.internals.setFormValue(this.value);let t=this.shadowRoot?.querySelector(".schedule-builder")??void 0;if(this._customValidity){this.internals.setValidity({customError:!0},this._customValidity,t);return}if(this.required&&!this._hasHours){this.internals.setValidity({valueMissing:!0},"Please open at least one period.",t);return}this.internals.setValidity({})}_commit(t=!0){let r=this._serialise();r!==this.value&&(this.value=r),this._syncFormValue(),this.formControlController.updateValidity(),t&&this.emit("zn-change")}_formatTime(t){let r=fi(t);if(r===null)return t;if(this.timeFormat==="24")return Kr(r);let n=Math.floor(r/60)%24,a=r%60,s=n<12?"am":"pm",l=n%12===0?12:n%12;return a===0?`${l}${s}`:`${l}:${String(a).padStart(2,"0")}${s}`}_formatRange(t){return`${this._formatTime(t.start)}\u2013${this._formatTime(t.end)}`}_formatDate(t){let r=Yh(t);return r?this.localize.date(r,{day:"numeric",month:"short"}):""}_summariseDay(t,r){let n=r[t];return n.length?n.map(a=>this._formatRange(a)).join(", "):this.closedLabel}get _storedAsShown(){return eb(this._days,this._offsetDelta)}get _shownDays(){return this._dragPreview??this._storedAsShown}_commitShownDays(t){this._days=eb(t,-this._offsetDelta),this._commit()}_exceptionsForDay(t){return this._exceptions.filter(r=>p3(r).includes(t))}get _shownReductionSpans(){let t=[];return this._exceptions.forEach(r=>{let n=Zg(r);n!==null&&p3(r).forEach(a=>{let s=cr.indexOf(a)*$i;t.push(...oD([[s,s+$i]],n.reduce((l,p)=>{let h=fi(p.start),m=fi(p.end);return h!==null&&m!==null&&l.push([s+h,s+m]),l},[])))})}),u3(bl(t),this._offsetDelta)}_slotMinute(t,r){return cr.indexOf(t)*$i+this._startMinute+r*this._interval+this._interval/2}_slotState(t,r,n,a){let s=this._slotMinute(t,r);return tb(n,s)?tb(a,s)?"reduced":"open":"closed"}_pointerPosition(t){if(!this.canvas)return null;let r=this.canvas.getBoundingClientRect();if(!r.width||!r.height)return null;let n=this._orderedDays.length,a=Math.floor((t.clientX-r.left)/r.width*n),s=Math.floor((t.clientY-r.top)/r.height*this._slotCount);return{col:Math.min(Math.max(a,0),n-1),row:Math.min(Math.max(s,0),this._slotCount-1)}}_buildDragPreview(t){let r=this._dragAnchor,n=this._cloneDays(this._storedAsShown),a=Math.min(r.col,t.col),s=Math.max(r.col,t.col),l=Math.min(r.row,t.row),p=Math.max(r.row,t.row),h=this._startMinute+l*this._interval,m=Math.min(this._startMinute+(p+1)*this._interval,this._endMinute);return this._orderedDays.slice(a,s+1).forEach(b=>{n[b]=this._dragMode==="open"?ZI(n[b],h,m):eD(n[b],h,m)}),n}_handleViewToggle(t){this.view!==t&&(this._editing=null,this.view=t)}_nextFreeRange(t){if(!t.length)return{start:"09:00",end:"17:00"};let r=this._startMinute;for(let a of t){let s=fi(a.start)??0,l=fi(a.end)??0;if(s-r>=60)break;r=Math.max(r,l)}let n=Math.min(r,$i-60);return{start:Kr(n),end:Kr(n+60)}}_handleAddRange(t){if(!this._isEditable)return;let r=this._storedAsShown,n=this._nextFreeRange(r[t]),a=gl([...r[t],n]);this._commitShownDays({...r,[t]:a}),this._editing={day:t,index:Math.max(a.findIndex(s=>s.start===n.start),0)}}_handleRemoveRange(t,r){if(!this._isEditable)return;let n=this._storedAsShown;this._editing=null,this._commitShownDays({...n,[t]:n[t].filter((a,s)=>s!==r)})}_handleRangeEdit(t,r,n,a){let s=fi(a);if(s===null)return;let l=this._storedAsShown,p=gl(l[t].map((h,m)=>m===r?{...h,[n]:Kr(s)}:h));this._editing&&this._editing.day===t&&this._editing.index>=p.length&&(this._editing=p.length?{day:t,index:p.length-1}:null),this._commitShownDays({...l,[t]:p})}_handleEditorKeyDown(t){(t.key==="Enter"||t.key==="Escape")&&(t.preventDefault(),t.stopPropagation(),this._editing=null)}_handleEditorFocusOut(t){let r=t.currentTarget,n=t.relatedTarget;n&&r.contains(n)||(this._editing=null)}_renderToolbar(){let t=!this.noToggle,r=this.view==="calendar";return!t&&!r&&!this.showTimezone?B:u`
|
|
6119
6120
|
<div class="schedule-builder__toolbar" part="toolbar">
|
|
6120
6121
|
${this.view==="calendar"&&this._isEditable?u`<p class="schedule-builder__hint">
|
|
6121
6122
|
Drag across the grid to open hours; drag over open hours to close them.
|
|
@@ -6284,7 +6285,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
|
|
|
6284
6285
|
<slot name="help-text">${this.helpText}</slot>
|
|
6285
6286
|
</div>
|
|
6286
6287
|
</div>
|
|
6287
|
-
`}};ve.styles=[z(Ee),z(d3)],ve.formAssociated=!0,ve.dependencies={"zn-icon":ne,"zn-input":at,"zn-option":st,"zn-select":Be},c([F(".schedule-builder__canvas")],ve.prototype,"canvas",2),c([I()],ve.prototype,"_days",2),c([I()],ve.prototype,"_exceptions",2),c([I()],ve.prototype,"_dragPreview",2),c([I()],ve.prototype,"_editing",2),c([d({reflect:!0})],ve.prototype,"name",2),c([d()],ve.prototype,"value",2),c([Ce()],ve.prototype,"defaultValue",2),c([d()],ve.prototype,"label",2),c([d({attribute:"help-text"})],ve.prototype,"helpText",2),c([d({reflect:!0})],ve.prototype,"view",2),c([d({attribute:"open-label"})],ve.prototype,"openLabel",2),c([d({attribute:"closed-label"})],ve.prototype,"closedLabel",2),c([d({attribute:"no-toggle",type:Boolean})],ve.prototype,"noToggle",2),c([d({attribute:"hide-summary",type:Boolean})],ve.prototype,"hideSummary",2),c([d({attribute:"start-hour",type:Number})],ve.prototype,"startHour",2),c([d({attribute:"end-hour",type:Number})],ve.prototype,"endHour",2),c([d({type:Number})],ve.prototype,"interval",2),c([d({attribute:"week-start"})],ve.prototype,"weekStart",2),c([d({attribute:"time-format"})],ve.prototype,"timeFormat",2),c([d({attribute:"display-timezone"})],ve.prototype,"displayTimezone",2),c([d({attribute:"save-timezone"})],ve.prototype,"saveTimezone",2),c([d({attribute:"show-timezone",type:Boolean})],ve.prototype,"showTimezone",2),c([d({attribute:"timezones",converter:{fromAttribute:t=>t.split(/[,\s]+/).filter(Boolean),toAttribute:t=>t.join(" ")}})],ve.prototype,"timezones",2),c([d({attribute:"reference-date"})],ve.prototype,"referenceDate",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"required",2),c([d({reflect:!0})],ve.prototype,"form",2),c([K("value")],ve.prototype,"handleValueChange",1),c([K(["required","disabled"])],ve.prototype,"handleValidationStateChange",1);var hD=ve;ve.define("zn-schedule-builder");var f3=_`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;min-width:0}.thumbnail{position:relative;min-width:0}.thumbnail__link{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);min-width:0;color:inherit;text-decoration:none;outline:none}.thumbnail--interactive .thumbnail__link{cursor:pointer}.thumbnail__media{position:relative;aspect-ratio:var(--zn-thumbnail-aspect-ratio,16/9);width:100%;overflow:hidden;border-radius:var(--zn-thumbnail-radius,var(--zn-border-radius));background-color:rgb(var(--zn-panel));--thumbnail-ring-color:rgb(var(--zn-border-color));--thumbnail-ring-width:1px;--thumbnail-ring-gap:0px}.thumbnail__media::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 var(--thumbnail-ring-width) var(--thumbnail-ring-color),inset 0 0 0 calc(var(--thumbnail-ring-width) + var(--thumbnail-ring-gap)) rgb(var(--zn-body));transition:box-shadow var(--zn-transition-fast) ease-in-out}.thumbnail__image{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.thumbnail__slotted-media{display:grid;place-items:center;width:100%;height:100%}.thumbnail__slotted-media::slotted(img),.thumbnail__slotted-media::slotted(video),.thumbnail__slotted-media::slotted(canvas),.thumbnail__slotted-media::slotted(picture),.thumbnail__slotted-media::slotted(div){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.thumbnail__caption{font-family:var(--zn-font-sans);font-size:var(--zn-text-table-content-font-size);font-weight:var(--zn-text-table-content-font-weight);line-height:var(--zn-text-table-content-line-height);color:var(--zn-text-table-content-color);text-transform:var(--zn-text-table-content-transform);letter-spacing:var(--zn-text-table-content-letter-spacing,normal);min-width:0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.thumbnail__overlay{position:absolute;top:0;left:0;right:0;aspect-ratio:var(--zn-thumbnail-aspect-ratio,16/9);border-radius:var(--zn-thumbnail-radius,var(--zn-border-radius));overflow:hidden;pointer-events:none}.thumbnail__badge,.thumbnail__actions,.thumbnail__preview-button{position:absolute;display:flex;align-items:center;gap:var(--zn-thumbnail-chip-gap,var(--zn-spacing-2x-small))}.thumbnail__badge{bottom:var(--zn-spacing-2x-small);left:var(--zn-spacing-2x-small);pointer-events:none}.thumbnail__actions,.thumbnail__preview-button{pointer-events:auto}.thumbnail__actions{bottom:var(--zn-spacing-2x-small);right:var(--zn-spacing-2x-small)}.thumbnail__preview-button{display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__preview-button:hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail__preview-button{top:var(--zn-spacing-2x-small);right:var(--zn-spacing-2x-small)}.thumbnail__badge-items,.thumbnail__action-items{display:contents}.thumbnail__badge-icon,.thumbnail__badge-items::slotted(*){display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:default;opacity:var(--zn-thumbnail-badge-opacity,0.65)}.thumbnail__action-items::slotted(*){display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__action-items::slotted(*):hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail:hover:not(.thumbnail--disabled):not(.thumbnail--selected):not(.thumbnail--active) .thumbnail__media{--thumbnail-ring-color:rgb(var(--zn-primary))}.thumbnail--selected .thumbnail__media{--thumbnail-ring-color:var(--zn-thumbnail-selected-color,rgb(var(--zn-primary)));--thumbnail-ring-width:2px;--thumbnail-ring-gap:1px}.thumbnail--active .thumbnail__media{--thumbnail-ring-color:var(--zn-thumbnail-active-color,rgb(var(--zn-color-success)));--thumbnail-ring-width:2px;--thumbnail-ring-gap:1px}.thumbnail__link:focus-visible .thumbnail__media{outline:var(--zn-focus-ring);outline-offset:calc(-1 * var(--zn-focus-ring-width))}.thumbnail__preview-button:focus-visible,.thumbnail__action-items::slotted(*:focus-visible){outline:var(--zn-focus-ring);outline-offset:1px}.thumbnail--disabled .thumbnail__link{cursor:not-allowed}.thumbnail--disabled .thumbnail__media,.thumbnail--disabled .thumbnail__caption{opacity:0.5}.thumbnail__preview{position:fixed;inset:0;display:none;width:100%;max-width:none;height:100%;max-height:none;padding:0;border:none;background:transparent;overflow:hidden}.thumbnail__preview[open]{display:grid;place-items:center}.thumbnail__preview::backdrop{background:transparent}.thumbnail__preview-backdrop{position:fixed;inset:0;background:var(--zn-overlay-background-color)}.thumbnail__preview-frame{--preview-max-width:var(--zn-thumbnail-preview-max-width,70vw);--preview-max-height:var(--zn-thumbnail-preview-max-height,70vh);--preview-ratio:var(--zn-thumbnail-preview-aspect-ratio,var(--zn-thumbnail-preview-measured-ratio,var(--zn-thumbnail-aspect-ratio,16/9)));position:relative;width:min(var(--preview-max-width),var(--preview-max-height) * (var(--preview-ratio)));max-width:var(--preview-max-width);max-height:var(--preview-max-height);aspect-ratio:var(--preview-ratio);overflow:hidden;border-radius:var(--zn-thumbnail-preview-radius,var(--zn-border-radius));background-color:rgb(var(--zn-panel));box-shadow:var(--zn-shadow-x-large);transform-origin:center center}.thumbnail__preview-image,.thumbnail__preview-placeholder{display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.thumbnail__preview-placeholder{position:absolute;inset:0;-o-object-fit:cover;object-fit:cover;filter:blur(12px);transform:scale(1.05)}.thumbnail__preview-media::slotted(*){position:relative;display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.thumbnail__preview-image{position:relative}.thumbnail__preview-close{display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__preview-close:hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail__preview-close{position:absolute;top:var(--zn-spacing-x-small);right:var(--zn-spacing-x-small);min-width:28px;min-height:28px}.thumbnail__preview-close:focus-visible{outline:var(--zn-focus-ring);outline-offset:1px}`;var uD=260,mD="cubic-bezier(0.2, 0, 0.2, 1)",qe=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","image","caption","badge","actions","preview");this.caption="";this.aspectRatio="";this.fullUri="";this.previewTrigger="click";this.previewLabel="Preview";this.value="";this.selected=!1;this.active=!1;this.selectable=!1;this.disabled=!1;this.icon="";this.hideCaption=!1;this._previewOpen=!1;this._previewRatio=0;this._origin=null;this._animating=!1;this._handleClick=t=>{let r=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;this._activate(t,!r)};this._handleKeyDown=t=>{t.key!=="Enter"&&t.key!==" "||this._isLink()&&t.key==="Enter"||(t.preventDefault(),this._activate(t,!0))};this._handlePreviewButtonClick=t=>{t.preventDefault(),t.stopPropagation(),this.showPreview()};this._handlePreviewCancel=t=>{t.preventDefault(),this.hidePreview()};this._handleBackdropClick=()=>{this.hidePreview()};this._handlePreviewImageLoad=t=>{let r=t.target;if(!r.naturalWidth||!r.naturalHeight)return;let n=r.naturalWidth/r.naturalHeight;this._previewRatio&&Math.abs(n-this._previewRatio)/this._previewRatio<.01||(this._previewRatio=n)}}disconnectedCallback(){super.disconnectedCallback(),this._previewOpen&&(this._preview?.close(),this._previewOpen=!1),_a(this)}_isLink(){return!!this.href&&!this.disabled}get _previewable(){return(!!this.fullUri||this.hasSlotController.test("preview"))&&!this.disabled}get _previewOnActivate(){return this._previewable&&this.previewTrigger==="click"}_resolveRatio(){let t=[this._previewImage,this._image];for(let n of t)if(n?.naturalWidth&&n.naturalHeight)return n.naturalWidth/n.naturalHeight;let r=this._media?.getBoundingClientRect();return r?.width&&r.height?r.width/r.height:0}async showPreview(){!this._previewable||this._previewOpen||this._animating||(this._origin=this._media?.getBoundingClientRect()??null,this._previewRatio=this._resolveRatio(),this.emit("zn-show"),this._previewOpen=!0,await this.updateComplete,this._preview&&(this._preview.showModal(),t0(this),await this._animatePreview("in"),this._previewClose?.focus()))}async hidePreview(){!this._previewOpen||this._animating||(await this._animatePreview("out"),this._preview?.close(),this._previewOpen=!1,_a(this),this.emit("zn-close"))}async _animatePreview(t){let r=this._previewFrame,n=this._previewBackdrop;if(!r||!n)return;this._animating=!0;let a=t==="in"?this._origin:this._media?.getBoundingClientRect()??this._origin,s=[{transform:this._collapsedTransform(a,r.getBoundingClientRect()),opacity:"0.4"},{transform:"none",opacity:"1"}],l=[{opacity:"0"},{opacity:"1"}],p={duration:uD,easing:mD},h=t==="in"?s:[...s].reverse(),m=t==="in"?l:[...l].reverse();await Promise.all([yi(r,h,p),yi(n,m,p)]),this._animating=!1}_collapsedTransform(t,r){if(!t||!r.width||!r.height||Gu())return"scale(0.94)";let n=Math.max(t.width/r.width,.01),a=Math.max(t.height/r.height,.01),s=t.left+t.width/2-(r.left+r.width/2),l=t.top+t.height/2-(r.top+r.height/2);return`translate(${s}px, ${l}px) scale(${n}, ${a})`}_activate(t,r){if(this.disabled){t.preventDefault(),t.stopPropagation();return}if(this.emit("zn-select",{detail:{item:this}}).defaultPrevented){t.preventDefault();return}r&&this._previewOnActivate&&(t.preventDefault(),this.showPreview())}render(){let t=this._isLink(),r=this._previewable,n=r&&this.previewTrigger==="button",a=t||this.selectable||this._previewOnActivate,s=t?Ai`a`:Ai`div`,l=this.hasSlotController.test("image"),p=this.hasSlotController.test("badge")||!!this.icon,h=this.hasSlotController.test("actions"),m=p||h||n,f=!this.hideCaption&&(!!this.caption||this.hasSlotController.test("caption"));return Se`
|
|
6288
|
+
`}};ve.styles=[z(Ee),z(d3)],ve.formAssociated=!0,ve.dependencies={"zn-icon":ne,"zn-input":st,"zn-option":lt,"zn-select":Be},c([F(".schedule-builder__canvas")],ve.prototype,"canvas",2),c([I()],ve.prototype,"_days",2),c([I()],ve.prototype,"_exceptions",2),c([I()],ve.prototype,"_dragPreview",2),c([I()],ve.prototype,"_editing",2),c([d({reflect:!0})],ve.prototype,"name",2),c([d()],ve.prototype,"value",2),c([Ce()],ve.prototype,"defaultValue",2),c([d()],ve.prototype,"label",2),c([d({attribute:"help-text"})],ve.prototype,"helpText",2),c([d({reflect:!0})],ve.prototype,"view",2),c([d({attribute:"open-label"})],ve.prototype,"openLabel",2),c([d({attribute:"closed-label"})],ve.prototype,"closedLabel",2),c([d({attribute:"no-toggle",type:Boolean})],ve.prototype,"noToggle",2),c([d({attribute:"hide-summary",type:Boolean})],ve.prototype,"hideSummary",2),c([d({attribute:"start-hour",type:Number})],ve.prototype,"startHour",2),c([d({attribute:"end-hour",type:Number})],ve.prototype,"endHour",2),c([d({type:Number})],ve.prototype,"interval",2),c([d({attribute:"week-start"})],ve.prototype,"weekStart",2),c([d({attribute:"time-format"})],ve.prototype,"timeFormat",2),c([d({attribute:"display-timezone"})],ve.prototype,"displayTimezone",2),c([d({attribute:"save-timezone"})],ve.prototype,"saveTimezone",2),c([d({attribute:"show-timezone",type:Boolean})],ve.prototype,"showTimezone",2),c([d({attribute:"timezones",converter:{fromAttribute:t=>t.split(/[,\s]+/).filter(Boolean),toAttribute:t=>t.join(" ")}})],ve.prototype,"timezones",2),c([d({attribute:"reference-date"})],ve.prototype,"referenceDate",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"required",2),c([d({reflect:!0})],ve.prototype,"form",2),c([K("value")],ve.prototype,"handleValueChange",1),c([K(["required","disabled"])],ve.prototype,"handleValidationStateChange",1);var hD=ve;ve.define("zn-schedule-builder");var f3=_`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;min-width:0}.thumbnail{position:relative;min-width:0}.thumbnail__link{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);min-width:0;color:inherit;text-decoration:none;outline:none}.thumbnail--interactive .thumbnail__link{cursor:pointer}.thumbnail__media{position:relative;aspect-ratio:var(--zn-thumbnail-aspect-ratio,16/9);width:100%;overflow:hidden;border-radius:var(--zn-thumbnail-radius,var(--zn-border-radius));background-color:rgb(var(--zn-panel));--thumbnail-ring-color:rgb(var(--zn-border-color));--thumbnail-ring-width:1px;--thumbnail-ring-gap:0px}.thumbnail__media::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 var(--thumbnail-ring-width) var(--thumbnail-ring-color),inset 0 0 0 calc(var(--thumbnail-ring-width) + var(--thumbnail-ring-gap)) rgb(var(--zn-body));transition:box-shadow var(--zn-transition-fast) ease-in-out}.thumbnail__image{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.thumbnail__slotted-media{display:grid;place-items:center;width:100%;height:100%}.thumbnail__slotted-media::slotted(img),.thumbnail__slotted-media::slotted(video),.thumbnail__slotted-media::slotted(canvas),.thumbnail__slotted-media::slotted(picture),.thumbnail__slotted-media::slotted(div){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.thumbnail__caption{font-family:var(--zn-font-sans);font-size:var(--zn-text-table-content-font-size);font-weight:var(--zn-text-table-content-font-weight);line-height:var(--zn-text-table-content-line-height);color:var(--zn-text-table-content-color);text-transform:var(--zn-text-table-content-transform);letter-spacing:var(--zn-text-table-content-letter-spacing,normal);min-width:0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.thumbnail__overlay{position:absolute;top:0;left:0;right:0;aspect-ratio:var(--zn-thumbnail-aspect-ratio,16/9);border-radius:var(--zn-thumbnail-radius,var(--zn-border-radius));overflow:hidden;pointer-events:none}.thumbnail__badge,.thumbnail__actions,.thumbnail__preview-button{position:absolute;display:flex;align-items:center;gap:var(--zn-thumbnail-chip-gap,var(--zn-spacing-2x-small))}.thumbnail__badge{bottom:var(--zn-spacing-2x-small);left:var(--zn-spacing-2x-small);pointer-events:none}.thumbnail__actions,.thumbnail__preview-button{pointer-events:auto}.thumbnail__actions{bottom:var(--zn-spacing-2x-small);right:var(--zn-spacing-2x-small)}.thumbnail__preview-button{display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__preview-button:hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail__preview-button{top:var(--zn-spacing-2x-small);right:var(--zn-spacing-2x-small)}.thumbnail__badge-items,.thumbnail__action-items{display:contents}.thumbnail__badge-icon,.thumbnail__badge-items::slotted(*){display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:default;opacity:var(--zn-thumbnail-badge-opacity,0.65)}.thumbnail__action-items::slotted(*){display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__action-items::slotted(*):hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail:hover:not(.thumbnail--disabled):not(.thumbnail--selected):not(.thumbnail--active) .thumbnail__media{--thumbnail-ring-color:rgb(var(--zn-primary))}.thumbnail--selected .thumbnail__media{--thumbnail-ring-color:var(--zn-thumbnail-selected-color,rgb(var(--zn-primary)));--thumbnail-ring-width:2px;--thumbnail-ring-gap:1px}.thumbnail--active .thumbnail__media{--thumbnail-ring-color:var(--zn-thumbnail-active-color,rgb(var(--zn-color-success)));--thumbnail-ring-width:2px;--thumbnail-ring-gap:1px}.thumbnail__link:focus-visible .thumbnail__media{outline:var(--zn-focus-ring);outline-offset:calc(-1 * var(--zn-focus-ring-width))}.thumbnail__preview-button:focus-visible,.thumbnail__action-items::slotted(*:focus-visible){outline:var(--zn-focus-ring);outline-offset:1px}.thumbnail--disabled .thumbnail__link{cursor:not-allowed}.thumbnail--disabled .thumbnail__media,.thumbnail--disabled .thumbnail__caption{opacity:0.5}.thumbnail__preview{position:fixed;inset:0;display:none;width:100%;max-width:none;height:100%;max-height:none;padding:0;border:none;background:transparent;overflow:hidden}.thumbnail__preview[open]{display:grid;place-items:center}.thumbnail__preview::backdrop{background:transparent}.thumbnail__preview-backdrop{position:fixed;inset:0;background:var(--zn-overlay-background-color)}.thumbnail__preview-frame{--preview-max-width:var(--zn-thumbnail-preview-max-width,70vw);--preview-max-height:var(--zn-thumbnail-preview-max-height,70vh);--preview-ratio:var(--zn-thumbnail-preview-aspect-ratio,var(--zn-thumbnail-preview-measured-ratio,var(--zn-thumbnail-aspect-ratio,16/9)));position:relative;width:min(var(--preview-max-width),var(--preview-max-height) * (var(--preview-ratio)));max-width:var(--preview-max-width);max-height:var(--preview-max-height);aspect-ratio:var(--preview-ratio);overflow:hidden;border-radius:var(--zn-thumbnail-preview-radius,var(--zn-border-radius));background-color:rgb(var(--zn-panel));box-shadow:var(--zn-shadow-x-large);transform-origin:center center}.thumbnail__preview-image,.thumbnail__preview-placeholder{display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.thumbnail__preview-placeholder{position:absolute;inset:0;-o-object-fit:cover;object-fit:cover;filter:blur(12px);transform:scale(1.05)}.thumbnail__preview-media::slotted(*){position:relative;display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.thumbnail__preview-image{position:relative}.thumbnail__preview-close{display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__preview-close:hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail__preview-close{position:absolute;top:var(--zn-spacing-x-small);right:var(--zn-spacing-x-small);min-width:28px;min-height:28px}.thumbnail__preview-close:focus-visible{outline:var(--zn-focus-ring);outline-offset:1px}`;var uD=260,mD="cubic-bezier(0.2, 0, 0.2, 1)",qe=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","image","caption","badge","actions","preview");this.caption="";this.aspectRatio="";this.fullUri="";this.previewTrigger="click";this.previewLabel="Preview";this.value="";this.selected=!1;this.active=!1;this.selectable=!1;this.disabled=!1;this.icon="";this.hideCaption=!1;this._previewOpen=!1;this._previewRatio=0;this._origin=null;this._animating=!1;this._handleClick=t=>{let r=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;this._activate(t,!r)};this._handleKeyDown=t=>{t.key!=="Enter"&&t.key!==" "||this._isLink()&&t.key==="Enter"||(t.preventDefault(),this._activate(t,!0))};this._handlePreviewButtonClick=t=>{t.preventDefault(),t.stopPropagation(),this.showPreview()};this._handlePreviewCancel=t=>{t.preventDefault(),this.hidePreview()};this._handleBackdropClick=()=>{this.hidePreview()};this._handlePreviewImageLoad=t=>{let r=t.target;if(!r.naturalWidth||!r.naturalHeight)return;let n=r.naturalWidth/r.naturalHeight;this._previewRatio&&Math.abs(n-this._previewRatio)/this._previewRatio<.01||(this._previewRatio=n)}}disconnectedCallback(){super.disconnectedCallback(),this._previewOpen&&(this._preview?.close(),this._previewOpen=!1),_a(this)}_isLink(){return!!this.href&&!this.disabled}get _previewable(){return(!!this.fullUri||this.hasSlotController.test("preview"))&&!this.disabled}get _previewOnActivate(){return this._previewable&&this.previewTrigger==="click"}_resolveRatio(){let t=[this._previewImage,this._image];for(let n of t)if(n?.naturalWidth&&n.naturalHeight)return n.naturalWidth/n.naturalHeight;let r=this._media?.getBoundingClientRect();return r?.width&&r.height?r.width/r.height:0}async showPreview(){!this._previewable||this._previewOpen||this._animating||(this._origin=this._media?.getBoundingClientRect()??null,this._previewRatio=this._resolveRatio(),this.emit("zn-show"),this._previewOpen=!0,await this.updateComplete,this._preview&&(this._preview.showModal(),t0(this),await this._animatePreview("in"),this._previewClose?.focus()))}async hidePreview(){!this._previewOpen||this._animating||(await this._animatePreview("out"),this._preview?.close(),this._previewOpen=!1,_a(this),this.emit("zn-close"))}async _animatePreview(t){let r=this._previewFrame,n=this._previewBackdrop;if(!r||!n)return;this._animating=!0;let a=t==="in"?this._origin:this._media?.getBoundingClientRect()??this._origin,s=[{transform:this._collapsedTransform(a,r.getBoundingClientRect()),opacity:"0.4"},{transform:"none",opacity:"1"}],l=[{opacity:"0"},{opacity:"1"}],p={duration:uD,easing:mD},h=t==="in"?s:[...s].reverse(),m=t==="in"?l:[...l].reverse();await Promise.all([yi(r,h,p),yi(n,m,p)]),this._animating=!1}_collapsedTransform(t,r){if(!t||!r.width||!r.height||Gu())return"scale(0.94)";let n=Math.max(t.width/r.width,.01),a=Math.max(t.height/r.height,.01),s=t.left+t.width/2-(r.left+r.width/2),l=t.top+t.height/2-(r.top+r.height/2);return`translate(${s}px, ${l}px) scale(${n}, ${a})`}_activate(t,r){if(this.disabled){t.preventDefault(),t.stopPropagation();return}if(this.emit("zn-select",{detail:{item:this}}).defaultPrevented){t.preventDefault();return}r&&this._previewOnActivate&&(t.preventDefault(),this.showPreview())}render(){let t=this._isLink(),r=this._previewable,n=r&&this.previewTrigger==="button",a=t||this.selectable||this._previewOnActivate,s=t?Ai`a`:Ai`div`,l=this.hasSlotController.test("image"),p=this.hasSlotController.test("badge")||!!this.icon,h=this.hasSlotController.test("actions"),m=p||h||n,f=!this.hideCaption&&(!!this.caption||this.hasSlotController.test("caption"));return Se`
|
|
6288
6289
|
<div
|
|
6289
6290
|
part="base"
|
|
6290
6291
|
style="${xt({"--zn-thumbnail-aspect-ratio":this.aspectRatio||null})}"
|
|
@@ -6404,7 +6405,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
|
|
|
6404
6405
|
<div part="items" class="thumbnail-group__items">
|
|
6405
6406
|
<slot @slotchange="${this._handleSlotChange}" @zn-select="${this._handleSelect}"></slot>
|
|
6406
6407
|
</div>
|
|
6407
|
-
</div>`}};Mt.styles=z(g3),c([d()],Mt.prototype,"caption",2),c([d({type:Boolean,reflect:!0})],Mt.prototype,"expanded",2),c([d({type:Number})],Mt.prototype,"total",2),c([d({attribute:"show-all-label"})],Mt.prototype,"showAllLabel",2),c([d({attribute:"show-less-label"})],Mt.prototype,"showLessLabel",2),c([d({type:Boolean,attribute:"hide-toggle"})],Mt.prototype,"hideToggle",2),c([d({type:Boolean,attribute:"always-toggle"})],Mt.prototype,"alwaysToggle",2),c([d({type:Boolean,reflect:!0})],Mt.prototype,"selectable",2),c([d({attribute:"aspect-ratio",reflect:!0})],Mt.prototype,"aspectRatio",2),c([d({attribute:"thumbnail-width",reflect:!0})],Mt.prototype,"thumbnailWidth",2),c([d({reflect:!0})],Mt.prototype,"gap",2),c([d()],Mt.prototype,"value",2),c([I()],Mt.prototype,"_overflowing",2),c([I()],Mt.prototype,"_count",2),c([F(".thumbnail-group__items")],Mt.prototype,"_items",2);var gD=Mt;Mt.define("zn-thumbnail-group");var b3=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;position:relative;min-width:0;min-height:0;overflow:hidden;isolation:isolate}.background{position:relative;box-sizing:border-box;width:100%;height:100%;min-height:inherit;overflow:hidden;background-color:var(--_zn-background-color,var(--zn-background-color,transparent))}.background__image,.background__overlay,.background__floating-icons{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.background__image{width:108%;height:108%;max-width:none;inset:-4%;-o-object-fit:cover;object-fit:cover;-o-object-position:var(--zn-background-image-position,center);object-position:var(--zn-background-image-position,center);opacity:1}:host([image-strength=soft]) .background__image{opacity:0.3}:host([image-strength=medium]) .background__image{opacity:0.62}.background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(255,255,255,0.18),rgba(255,255,255,0.04))}:host([overlay=none]) .background__overlay{display:none}:host([overlay=strong]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(255,255,255,0.48),rgba(255,255,255,0.18))}:host([overlay-tone=dark]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(4,12,32,0.28),rgba(4,12,32,0.06))}:host([overlay-tone=dark][overlay=strong]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(4,12,32,0.62),rgba(4,12,32,0.28))}:host([motion=drift]) .background__image{animation:zn-background-drift 28s ease-in-out infinite alternate}:host([motion=breathe]) .background__image{animation:zn-background-breathe 18s ease-in-out infinite}:host([paused]) .background__image{animation-play-state:paused}.background__floating-icons{overflow:hidden;color:var(--zn-background-floating-icon-color,currentColor)}.background__floating-icon{--_zn-background-icon-opacity-min:0.01;--_zn-background-icon-opacity-max:0.18;position:absolute;left:8%;top:13%;opacity:var(--_zn-background-icon-opacity-min);animation:zn-background-icon-float 11s ease-in-out infinite alternate both}.background__floating-icon:nth-child(2){--_zn-background-icon-opacity-min:0.08;--_zn-background-icon-opacity-max:0.34;left:auto;right:9%;top:9%;animation-delay:-4s;animation-duration:14s}.background__floating-icon:nth-child(3){--_zn-background-icon-opacity-min:0.03;--_zn-background-icon-opacity-max:0.5;left:2%;top:47%;animation-delay:-7s;animation-duration:13s}.background__floating-icon:nth-child(4){--_zn-background-icon-opacity-min:0.12;--_zn-background-icon-opacity-max:0.38;left:auto;right:12%;top:45%;animation-delay:-2s;animation-duration:10s}.background__floating-icon:nth-child(5){--_zn-background-icon-opacity-min:0.05;--_zn-background-icon-opacity-max:0.29;left:21%;top:auto;bottom:4%;animation-delay:-5s;animation-duration:15s}.background__floating-icon:nth-child(6){--_zn-background-icon-opacity-min:0.01;--_zn-background-icon-opacity-max:0.42;left:auto;right:4%;top:auto;bottom:3%;animation-delay:-9s;animation-duration:12s}.background__floating-icon:nth-child(7){--_zn-background-icon-opacity-min:0.09;--_zn-background-icon-opacity-max:0.31;left:42%;top:7%;animation-delay:-6s;animation-duration:16s}.background__floating-icon:nth-child(8){--_zn-background-icon-opacity-min:0.04;--_zn-background-icon-opacity-max:0.46;left:54%;top:auto;bottom:8%;animation-delay:-11s;animation-duration:17s}:host([paused]) .background__floating-icon{animation-play-state:paused}.background__content{position:relative;z-index:1;box-sizing:border-box;width:100%;height:100%;min-height:inherit}@keyframes zn-background-drift{from{transform:scale(1.04) translate3d(-1.2%,-0.6%,0)}to{transform:scale(1.04) translate3d(1.2%,0.6%,0)}}@keyframes zn-background-breathe{0%,100%{transform:scale(1.02)}50%{transform:scale(1.07)}}@keyframes zn-background-icon-float{from{opacity:var(--_zn-background-icon-opacity-min);transform:translate3d(-8%,-12%,0) scale(0.88) rotate(-8deg)}to{opacity:var(--_zn-background-icon-opacity-max);transform:translate3d(8%,12%,0) scale(1.06) rotate(8deg)}}@media (prefers-reduced-motion:reduce){.background__image,.background__floating-icon{animation:none}.background__floating-icon{opacity:var(--_zn-background-icon-opacity-max)}}`;var Nr=class extends k{constructor(){super(...arguments);this.resizeObserver=new
|
|
6408
|
+
</div>`}};Mt.styles=z(g3),c([d()],Mt.prototype,"caption",2),c([d({type:Boolean,reflect:!0})],Mt.prototype,"expanded",2),c([d({type:Number})],Mt.prototype,"total",2),c([d({attribute:"show-all-label"})],Mt.prototype,"showAllLabel",2),c([d({attribute:"show-less-label"})],Mt.prototype,"showLessLabel",2),c([d({type:Boolean,attribute:"hide-toggle"})],Mt.prototype,"hideToggle",2),c([d({type:Boolean,attribute:"always-toggle"})],Mt.prototype,"alwaysToggle",2),c([d({type:Boolean,reflect:!0})],Mt.prototype,"selectable",2),c([d({attribute:"aspect-ratio",reflect:!0})],Mt.prototype,"aspectRatio",2),c([d({attribute:"thumbnail-width",reflect:!0})],Mt.prototype,"thumbnailWidth",2),c([d({reflect:!0})],Mt.prototype,"gap",2),c([d()],Mt.prototype,"value",2),c([I()],Mt.prototype,"_overflowing",2),c([I()],Mt.prototype,"_count",2),c([F(".thumbnail-group__items")],Mt.prototype,"_items",2);var gD=Mt;Mt.define("zn-thumbnail-group");var b3=_`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;position:relative;min-width:0;min-height:0;overflow:hidden;isolation:isolate}.background{position:relative;box-sizing:border-box;width:100%;height:100%;min-height:inherit;overflow:hidden;background-color:var(--_zn-background-color,var(--zn-background-color,transparent))}.background__image,.background__overlay,.background__floating-icons{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.background__image{width:108%;height:108%;max-width:none;inset:-4%;-o-object-fit:cover;object-fit:cover;-o-object-position:var(--zn-background-image-position,center);object-position:var(--zn-background-image-position,center);opacity:1}:host([image-strength=soft]) .background__image{opacity:0.3}:host([image-strength=medium]) .background__image{opacity:0.62}.background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(255,255,255,0.18),rgba(255,255,255,0.04))}:host([overlay=none]) .background__overlay{display:none}:host([overlay=strong]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(255,255,255,0.48),rgba(255,255,255,0.18))}:host([overlay-tone=dark]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(4,12,32,0.28),rgba(4,12,32,0.06))}:host([overlay-tone=dark][overlay=strong]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(4,12,32,0.62),rgba(4,12,32,0.28))}:host([motion=drift]) .background__image{animation:zn-background-drift 28s ease-in-out infinite alternate}:host([motion=breathe]) .background__image{animation:zn-background-breathe 18s ease-in-out infinite}:host([paused]) .background__image{animation-play-state:paused}.background__floating-icons{overflow:hidden;color:var(--zn-background-floating-icon-color,currentColor)}.background__floating-icon{--_zn-background-icon-opacity-min:0.01;--_zn-background-icon-opacity-max:0.18;position:absolute;left:8%;top:13%;opacity:var(--_zn-background-icon-opacity-min);animation:zn-background-icon-float 11s ease-in-out infinite alternate both}.background__floating-icon:nth-child(2){--_zn-background-icon-opacity-min:0.08;--_zn-background-icon-opacity-max:0.34;left:auto;right:9%;top:9%;animation-delay:-4s;animation-duration:14s}.background__floating-icon:nth-child(3){--_zn-background-icon-opacity-min:0.03;--_zn-background-icon-opacity-max:0.5;left:2%;top:47%;animation-delay:-7s;animation-duration:13s}.background__floating-icon:nth-child(4){--_zn-background-icon-opacity-min:0.12;--_zn-background-icon-opacity-max:0.38;left:auto;right:12%;top:45%;animation-delay:-2s;animation-duration:10s}.background__floating-icon:nth-child(5){--_zn-background-icon-opacity-min:0.05;--_zn-background-icon-opacity-max:0.29;left:21%;top:auto;bottom:4%;animation-delay:-5s;animation-duration:15s}.background__floating-icon:nth-child(6){--_zn-background-icon-opacity-min:0.01;--_zn-background-icon-opacity-max:0.42;left:auto;right:4%;top:auto;bottom:3%;animation-delay:-9s;animation-duration:12s}.background__floating-icon:nth-child(7){--_zn-background-icon-opacity-min:0.09;--_zn-background-icon-opacity-max:0.31;left:42%;top:7%;animation-delay:-6s;animation-duration:16s}.background__floating-icon:nth-child(8){--_zn-background-icon-opacity-min:0.04;--_zn-background-icon-opacity-max:0.46;left:54%;top:auto;bottom:8%;animation-delay:-11s;animation-duration:17s}:host([paused]) .background__floating-icon{animation-play-state:paused}.background__content{position:relative;z-index:1;box-sizing:border-box;width:100%;height:100%;min-height:inherit}@keyframes zn-background-drift{from{transform:scale(1.04) translate3d(-1.2%,-0.6%,0)}to{transform:scale(1.04) translate3d(1.2%,0.6%,0)}}@keyframes zn-background-breathe{0%,100%{transform:scale(1.02)}50%{transform:scale(1.07)}}@keyframes zn-background-icon-float{from{opacity:var(--_zn-background-icon-opacity-min);transform:translate3d(-8%,-12%,0) scale(0.88) rotate(-8deg)}to{opacity:var(--_zn-background-icon-opacity-max);transform:translate3d(8%,12%,0) scale(1.06) rotate(8deg)}}@media (prefers-reduced-motion:reduce){.background__image,.background__floating-icon{animation:none}.background__floating-icon{opacity:var(--_zn-background-icon-opacity-max)}}`;var Nr=class extends k{constructor(){super(...arguments);this.resizeObserver=new ut(this,{callback:t=>{let r=t[0]?.contentRect.width??this.offsetWidth;return Math.max(1,Math.min(r*.05,150))}});this.image="";this.color="";this.imageStrength="full";this.motion="none";this.overlay="soft";this.overlayTone="light";this.floatingIcons="";this.paused=!1}render(){let t=this.floatingIcons.split(",").map(n=>n.trim()).filter(Boolean).slice(0,8),r=this.resizeObserver.value??1;return u`
|
|
6408
6409
|
<div
|
|
6409
6410
|
part="base"
|
|
6410
6411
|
class="background"
|
|
@@ -6432,4 +6433,4 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
|
|
|
6432
6433
|
`:""}
|
|
6433
6434
|
<div part="content" class="background__content"><slot></slot></div>
|
|
6434
6435
|
</div>
|
|
6435
|
-
`}};Nr.styles=z(b3),Nr.dependencies={"zn-icon":ne},c([d()],Nr.prototype,"image",2),c([d()],Nr.prototype,"color",2),c([d({attribute:"image-strength",reflect:!0})],Nr.prototype,"imageStrength",2),c([d({reflect:!0})],Nr.prototype,"motion",2),c([d({reflect:!0})],Nr.prototype,"overlay",2),c([d({attribute:"overlay-tone",reflect:!0})],Nr.prototype,"overlayTone",2),c([d({attribute:"floating-icons"})],Nr.prototype,"floatingIcons",2),c([d({type:Boolean,reflect:!0})],Nr.prototype,"paused",2);var bD=Nr;Nr.define("zn-background");export{A5 as AbsoluteContainer,NL as ActionBar,qu as Alert,wq as AnimatedButton,WL as AudioSelect,bD as Background,w8 as BulkActions,Me as Button,Fl as ButtonGroup,DL as ButtonMenu,V4 as ChannelTile,W4 as Chart,l4 as ChatMessage,c4 as ChatMessageAttachment,uL as Checkbox,wL as CheckboxGroup,jn as Chip,za as Collapsible,IL as ColorSelect,O4 as Cols,Ul as Confirm,BL as ContentBlock,Iu as CopyButton,qL as DataSelect,D4 as DataTable,Wd as DataTableFilter,Zu as DataTableSearch,OL as DataTableSort,Ju as Datepicker,N4 as DefinedLabel,ka as Dialog,ur as Dropdown,pL as Editor,ji as EditorDialog,tg as EditorQuickAction,Fc as EditorTool,em as EmptyState,lm as ExpandingAction,xL as File,jL as FilterContainer,VL as FilterWrapper,Pg as FlowBranchConditions,OI as FlowBuilder,PI as FlowStep,Vg as FlowStepGroup,NI as FlowSteps,mL as FormActions,dg as FormGroup,X4 as Header,tm as HoverContainer,ne as Icon,n8 as IconPicker,op as InlineEdit,
|
|
6436
|
+
`}};Nr.styles=z(b3),Nr.dependencies={"zn-icon":ne},c([d()],Nr.prototype,"image",2),c([d()],Nr.prototype,"color",2),c([d({attribute:"image-strength",reflect:!0})],Nr.prototype,"imageStrength",2),c([d({reflect:!0})],Nr.prototype,"motion",2),c([d({reflect:!0})],Nr.prototype,"overlay",2),c([d({attribute:"overlay-tone",reflect:!0})],Nr.prototype,"overlayTone",2),c([d({attribute:"floating-icons"})],Nr.prototype,"floatingIcons",2),c([d({type:Boolean,reflect:!0})],Nr.prototype,"paused",2);var bD=Nr;Nr.define("zn-background");export{A5 as AbsoluteContainer,NL as ActionBar,qu as Alert,wq as AnimatedButton,WL as AudioSelect,bD as Background,w8 as BulkActions,Me as Button,Fl as ButtonGroup,DL as ButtonMenu,V4 as ChannelTile,W4 as Chart,l4 as ChatMessage,c4 as ChatMessageAttachment,uL as Checkbox,wL as CheckboxGroup,jn as Chip,za as Collapsible,IL as ColorSelect,O4 as Cols,Ul as Confirm,BL as ContentBlock,Iu as CopyButton,qL as DataSelect,D4 as DataTable,Wd as DataTableFilter,Zu as DataTableSearch,OL as DataTableSort,Ju as Datepicker,N4 as DefinedLabel,ka as Dialog,ur as Dropdown,pL as Editor,ji as EditorDialog,tg as EditorQuickAction,Fc as EditorTool,em as EmptyState,lm as ExpandingAction,xL as File,jL as FilterContainer,VL as FilterWrapper,Pg as FlowBranchConditions,OI as FlowBuilder,PI as FlowStep,Vg as FlowStepGroup,NI as FlowSteps,mL as FormActions,dg as FormGroup,X4 as Header,tm as HoverContainer,ne as Icon,n8 as IconPicker,op as InlineEdit,st as Input,fL as InputGroup,zL as Item,yq as Key,xq as KeyContainer,gL as LinkedSelect,fI as MarkdownEditor,nn as Menu,xi as MenuItem,Ca as Navbar,P4 as Note,Ku as OptGroup,lt as Option,x8 as OrderTable,i8 as Page,WI as PageBuilder,PL as PageNav,Kg as PagePaletteItem,Yg as PageSectionCard,o8 as Pagination,c8 as Pane,rm as Panel,Hl as Popup,Jg as PreviewFrame,kq as PriorityList,y8 as ProgressBar,v8 as ProgressTile,k4 as QueryBuilder,bL as Radio,yL as RadioGroup,vL as Rating,bg as RemarkdEditor,GL as Reveal,hD as ScheduleBuilder,b8 as ScrollContainer,Be as Select,UL as SettingsContainer,h8 as Sidebar,Q4 as SimpleChart,im as Skeleton,Gl as SlashItem,Sa as SlashMenu,RL as Slideout,m8 as Sp,FL as SplitButton,p8 as SplitPane,g8 as Stat,HL as StatusIndicator,f8 as Stepper,nm as Style,cm as Tab,l8 as Table,sn as Tabs,Xo as Textarea,JI as ThemeEditor,fD as Thumbnail,gD as ThumbnailGroup,H4 as Tile,F4 as TileGroup,B4 as TileProperty,s8 as Timer,hL as Toggle,gi as Tooltip,zq as TranslationGroup,vq as Translations,a8 as VerticalStepper,d4 as Well,k as ZincElement,Bu as caretRectFrom,j3 as clearFormStoreValues,R3 as deepQuery,O3 as deepQueryAll,Ge as deepQuerySelectorAll,Fu as getCaretCoordinates,aV as getCaretRect,pr as idSelector,It as litToHTML,ap as on};
|