@kubex/zinc 1.1.59 → 1.1.60

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/zn.min.js CHANGED
@@ -1,7 +1,7 @@
1
- import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var Bv=_n((lJ,Fv)=>{var eo=-1,kr=1,Re=0;function sl(i,r,t,o,n){if(i===r)return i?[[Re,i]]:[];if(t!=null){var a=qk(i,r,t);if(a)return a}var s=jh(i,r),l=i.substring(0,s);i=i.substring(s),r=r.substring(s),s=Qc(i,r);var d=i.substring(i.length-s);i=i.substring(0,i.length-s),r=r.substring(0,r.length-s);var h=_k(i,r);return l&&h.unshift([Re,l]),d&&h.push([Re,d]),Gh(h,n),o&&Sk(h),h}function _k(i,r){var t;if(!i)return[[kr,r]];if(!r)return[[eo,i]];var o=i.length>r.length?i:r,n=i.length>r.length?r:i,a=o.indexOf(n);if(a!==-1)return t=[[kr,o.substring(0,a)],[Re,n],[kr,o.substring(a+n.length)]],i.length>r.length&&(t[0][0]=t[2][0]=eo),t;if(n.length===1)return[[eo,i],[kr,r]];var s=Ck(i,r);if(s){var l=s[0],d=s[1],h=s[2],m=s[3],f=s[4],b=sl(l,h),g=sl(d,m);return b.concat([[Re,f]],g)}return kk(i,r)}function kk(i,r){for(var t=i.length,o=r.length,n=Math.ceil((t+o)/2),a=n,s=2*n,l=new Array(s),d=new Array(s),h=0;h<s;h++)l[h]=-1,d[h]=-1;l[a+1]=0,d[a+1]=0;for(var m=t-o,f=m%2!==0,b=0,g=0,v=0,x=0,_=0;_<n;_++){for(var k=-_+b;k<=_-g;k+=2){var O=a+k,j;k===-_||k!==_&&l[O-1]<l[O+1]?j=l[O+1]:j=l[O-1]+1;for(var I=j-k;j<t&&I<o&&i.charAt(j)===r.charAt(I);)j++,I++;if(l[O]=j,j>t)g+=2;else if(I>o)b+=2;else if(f){var w=a+m-k;if(w>=0&&w<s&&d[w]!==-1){var E=t-d[w];if(j>=E)return Lv(i,r,j,I)}}}for(var q=-_+v;q<=_-x;q+=2){var w=a+q,E;q===-_||q!==_&&d[w-1]<d[w+1]?E=d[w+1]:E=d[w-1]+1;for(var W=E-q;E<t&&W<o&&i.charAt(t-E-1)===r.charAt(o-W-1);)E++,W++;if(d[w]=E,E>t)x+=2;else if(W>o)v+=2;else if(!f){var O=a+m-q;if(O>=0&&O<s&&l[O]!==-1){var j=l[O],I=a+j-O;if(E=t-E,j>=E)return Lv(i,r,j,I)}}}}return[[eo,i],[kr,r]]}function Lv(i,r,t,o){var n=i.substring(0,t),a=r.substring(0,o),s=i.substring(t),l=r.substring(o),d=sl(n,a),h=sl(s,l);return d.concat(h)}function jh(i,r){if(!i||!r||i.charAt(0)!==r.charAt(0))return 0;for(var t=0,o=Math.min(i.length,r.length),n=o,a=0;t<n;)i.substring(a,n)==r.substring(a,n)?(t=n,a=t):o=n,n=Math.floor((o-t)/2+t);return Rv(i.charCodeAt(n-1))&&n--,n}function Mv(i,r){var t=i.length,o=r.length;if(t==0||o==0)return 0;t>o?i=i.substring(t-o):t<o&&(r=r.substring(0,t));var n=Math.min(t,o);if(i==r)return n;for(var a=0,s=1;;){var l=i.substring(n-s),d=r.indexOf(l);if(d==-1)return a;s+=d,(d==0||i.substring(n-s)==r.substring(0,s))&&(a=s,s++)}}function Qc(i,r){if(!i||!r||i.slice(-1)!==r.slice(-1))return 0;for(var t=0,o=Math.min(i.length,r.length),n=o,a=0;t<n;)i.substring(i.length-n,i.length-a)==r.substring(r.length-n,r.length-a)?(t=n,a=t):o=n,n=Math.floor((o-t)/2+t);return Ov(i.charCodeAt(i.length-n))&&n--,n}function Ck(i,r){var t=i.length>r.length?i:r,o=i.length>r.length?r:i;if(t.length<4||o.length*2<t.length)return null;function n(g,v,x){for(var _=g.substring(x,x+Math.floor(g.length/4)),k=-1,O="",j,I,w,E;(k=v.indexOf(_,k+1))!==-1;){var q=jh(g.substring(x),v.substring(k)),W=Qc(g.substring(0,x),v.substring(0,k));O.length<W+q&&(O=v.substring(k-W,k)+v.substring(k,k+q),j=g.substring(0,x-W),I=g.substring(x+q),w=v.substring(0,k-W),E=v.substring(k+q))}return O.length*2>=g.length?[j,I,w,E,O]:null}var a=n(t,o,Math.ceil(t.length/4)),s=n(t,o,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 d,h,m,f;i.length>r.length?(d=l[0],h=l[1],m=l[2],f=l[3]):(m=l[0],f=l[1],d=l[2],h=l[3]);var b=l[4];return[d,h,m,f,b]}function Sk(i){for(var r=!1,t=[],o=0,n=null,a=0,s=0,l=0,d=0,h=0;a<i.length;)i[a][0]==Re?(t[o++]=a,s=d,l=h,d=0,h=0,n=i[a][1]):(i[a][0]==kr?d+=i[a][1].length:h+=i[a][1].length,n&&n.length<=Math.max(s,l)&&n.length<=Math.max(d,h)&&(i.splice(t[o-1],0,[eo,n]),i[t[o-1]+1][0]=kr,o--,o--,a=o>0?t[o-1]:-1,s=0,l=0,d=0,h=0,n=null,r=!0)),a++;for(r&&Gh(i),Ak(i),a=1;a<i.length;){if(i[a-1][0]==eo&&i[a][0]==kr){var m=i[a-1][1],f=i[a][1],b=Mv(m,f),g=Mv(f,m);b>=g?(b>=m.length/2||b>=f.length/2)&&(i.splice(a,0,[Re,f.substring(0,b)]),i[a-1][1]=m.substring(0,m.length-b),i[a+1][1]=f.substring(b),a++):(g>=m.length/2||g>=f.length/2)&&(i.splice(a,0,[Re,m.substring(0,g)]),i[a-1][0]=kr,i[a-1][1]=f.substring(0,f.length-g),i[a+1][0]=eo,i[a+1][1]=m.substring(g),a++),a++}a++}}var Iv=/[^a-zA-Z0-9]/,Nv=/\s/,Dv=/[\r\n]/,Ek=/\n\r?\n$/,Tk=/^\r?\n\r?\n/;function Ak(i){function r(g,v){if(!g||!v)return 6;var x=g.charAt(g.length-1),_=v.charAt(0),k=x.match(Iv),O=_.match(Iv),j=k&&x.match(Nv),I=O&&_.match(Nv),w=j&&x.match(Dv),E=I&&_.match(Dv),q=w&&g.match(Ek),W=E&&v.match(Tk);return q||W?5:w||E?4:k&&!j&&I?3:j||I?2:k||O?1:0}for(var t=1;t<i.length-1;){if(i[t-1][0]==Re&&i[t+1][0]==Re){var o=i[t-1][1],n=i[t][1],a=i[t+1][1],s=Qc(o,n);if(s){var l=n.substring(n.length-s);o=o.substring(0,o.length-s),n=l+n.substring(0,n.length-s),a=l+a}for(var d=o,h=n,m=a,f=r(o,n)+r(n,a);n.charAt(0)===a.charAt(0);){o+=n.charAt(0),n=n.substring(1)+a.charAt(0),a=a.substring(1);var b=r(o,n)+r(n,a);b>=f&&(f=b,d=o,h=n,m=a)}i[t-1][1]!=d&&(d?i[t-1][1]=d:(i.splice(t-1,1),t--),i[t][1]=h,m?i[t+1][1]=m:(i.splice(t+1,1),t--))}t++}}function Gh(i,r){i.push([Re,""]);for(var t=0,o=0,n=0,a="",s="",l;t<i.length;){if(t<i.length-1&&!i[t][1]){i.splice(t,1);continue}switch(i[t][0]){case kr:n++,s+=i[t][1],t++;break;case eo:o++,a+=i[t][1],t++;break;case Re:var d=t-n-o-1;if(r){if(d>=0&&Hv(i[d][1])){var h=i[d][1].slice(-1);if(i[d][1]=i[d][1].slice(0,-1),a=h+a,s=h+s,!i[d][1]){i.splice(d,1),t--;var m=d-1;i[m]&&i[m][0]===kr&&(n++,s=i[m][1]+s,m--),i[m]&&i[m][0]===eo&&(o++,a=i[m][1]+a,m--),d=m}}if(Pv(i[t][1])){var h=i[t][1].charAt(0);i[t][1]=i[t][1].slice(1),a+=h,s+=h}}if(t<i.length-1&&!i[t][1]){i.splice(t,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=jh(s,a),l!==0&&(d>=0?i[d][1]+=s.substring(0,l):(i.splice(0,0,[Re,s.substring(0,l)]),t++),s=s.substring(l),a=a.substring(l)),l=Qc(s,a),l!==0&&(i[t][1]=s.substring(s.length-l)+i[t][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var f=n+o;a.length===0&&s.length===0?(i.splice(t-f,f),t=t-f):a.length===0?(i.splice(t-f,f,[kr,s]),t=t-f+1):s.length===0?(i.splice(t-f,f,[eo,a]),t=t-f+1):(i.splice(t-f,f,[eo,a],[kr,s]),t=t-f+2)}t!==0&&i[t-1][0]===Re?(i[t-1][1]+=i[t][1],i.splice(t,1)):t++,n=0,o=0,a="",s="";break}}i[i.length-1][1]===""&&i.pop();var b=!1;for(t=1;t<i.length-1;)i[t-1][0]===Re&&i[t+1][0]===Re&&(i[t][1].substring(i[t][1].length-i[t-1][1].length)===i[t-1][1]?(i[t][1]=i[t-1][1]+i[t][1].substring(0,i[t][1].length-i[t-1][1].length),i[t+1][1]=i[t-1][1]+i[t+1][1],i.splice(t-1,1),b=!0):i[t][1].substring(0,i[t+1][1].length)==i[t+1][1]&&(i[t-1][1]+=i[t+1][1],i[t][1]=i[t][1].substring(i[t+1][1].length)+i[t+1][1],i.splice(t+1,1),b=!0)),t++;b&&Gh(i,r)}function Rv(i){return i>=55296&&i<=56319}function Ov(i){return i>=56320&&i<=57343}function Pv(i){return Ov(i.charCodeAt(0))}function Hv(i){return Rv(i.charCodeAt(i.length-1))}function $k(i){for(var r=[],t=0;t<i.length;t++)i[t][1].length>0&&r.push(i[t]);return r}function Uh(i,r,t,o){return Hv(i)||Pv(o)?null:$k([[Re,i],[eo,r],[kr,t],[Re,o]])}function qk(i,r,t){var o=typeof t=="number"?{index:t,length:0}:t.oldRange,n=typeof t=="number"?null:t.newRange,a=i.length,s=r.length;if(o.length===0&&(n===null||n.length===0)){var l=o.index,d=i.slice(0,l),h=i.slice(l),m=n?n.index:null;t:{var f=l+s-a;if(m!==null&&m!==f||f<0||f>s)break t;var b=r.slice(0,f),g=r.slice(f);if(g!==h)break t;var v=Math.min(l,f),x=d.slice(0,v),_=b.slice(0,v);if(x!==_)break t;var k=d.slice(v),O=b.slice(v);return Uh(x,k,O,h)}t:{if(m!==null&&m!==l)break t;var j=l,b=r.slice(0,j),g=r.slice(j);if(b!==d)break t;var I=Math.min(a-j,s-j),w=h.slice(h.length-I),E=g.slice(g.length-I);if(w!==E)break t;var k=h.slice(0,h.length-I),O=g.slice(0,g.length-I);return Uh(d,k,O,w)}}if(o.length>0&&n&&n.length===0)t:{var x=i.slice(0,o.index),w=i.slice(o.index+o.length),v=x.length,I=w.length;if(s<v+I)break t;var _=r.slice(0,v),E=r.slice(s-I);if(x!==_||w!==E)break t;var k=i.slice(v,a-I),O=r.slice(v,s-I);return Uh(x,k,O,w)}return null}function Jc(i,r,t,o){return sl(i,r,t,o,!0)}Jc.INSERT=kr;Jc.DELETE=eo;Jc.EQUAL=Re;Fv.exports=Jc});var su=_n((ll,Ba)=>{var Lk=200,t0="__lodash_hash_undefined__",e0=9007199254740991,tu="[object Arguments]",Mk="[object Array]",r0="[object Boolean]",o0="[object Date]",Ik="[object Error]",eu="[object Function]",n0="[object GeneratorFunction]",Zc="[object Map]",i0="[object Number]",ru="[object Object]",Vv="[object Promise]",a0="[object RegExp]",td="[object Set]",s0="[object String]",l0="[object Symbol]",Kh="[object WeakMap]",c0="[object ArrayBuffer]",ed="[object DataView]",d0="[object Float32Array]",p0="[object Float64Array]",h0="[object Int8Array]",u0="[object Int16Array]",m0="[object Int32Array]",f0="[object Uint8Array]",g0="[object Uint8ClampedArray]",b0="[object Uint16Array]",v0="[object Uint32Array]",Nk=/[\\^$.*+?()[\]{}|]/g,Dk=/\w*$/,Rk=/^\[object .+?Constructor\]$/,Ok=/^(?:0|[1-9]\d*)$/,Bt={};Bt[tu]=Bt[Mk]=Bt[c0]=Bt[ed]=Bt[r0]=Bt[o0]=Bt[d0]=Bt[p0]=Bt[h0]=Bt[u0]=Bt[m0]=Bt[Zc]=Bt[i0]=Bt[ru]=Bt[a0]=Bt[td]=Bt[s0]=Bt[l0]=Bt[f0]=Bt[g0]=Bt[b0]=Bt[v0]=!0;Bt[Ik]=Bt[eu]=Bt[Kh]=!1;var Pk=typeof global=="object"&&global&&global.Object===Object&&global,Hk=typeof self=="object"&&self&&self.Object===Object&&self,Mn=Pk||Hk||Function("return this")(),x0=typeof ll=="object"&&ll&&!ll.nodeType&&ll,Uv=x0&&typeof Ba=="object"&&Ba&&!Ba.nodeType&&Ba,Fk=Uv&&Uv.exports===x0;function Bk(i,r){return i.set(r[0],r[1]),i}function Vk(i,r){return i.add(r),i}function Uk(i,r){for(var t=-1,o=i?i.length:0;++t<o&&r(i[t],t,i)!==!1;);return i}function jk(i,r){for(var t=-1,o=r.length,n=i.length;++t<o;)i[n+t]=r[t];return i}function y0(i,r,t,o){var n=-1,a=i?i.length:0;for(o&&a&&(t=i[++n]);++n<a;)t=r(t,i[n],n,i);return t}function Gk(i,r){for(var t=-1,o=Array(i);++t<i;)o[t]=r(t);return o}function Wk(i,r){return i?.[r]}function z0(i){var r=!1;if(i!=null&&typeof i.toString!="function")try{r=!!(i+"")}catch{}return r}function jv(i){var r=-1,t=Array(i.size);return i.forEach(function(o,n){t[++r]=[n,o]}),t}function ou(i,r){return function(t){return i(r(t))}}function Gv(i){var r=-1,t=Array(i.size);return i.forEach(function(o){t[++r]=o}),t}var Kk=Array.prototype,Yk=Function.prototype,rd=Object.prototype,Wh=Mn["__core-js_shared__"],Wv=(function(){var i=/[^.]+$/.exec(Wh&&Wh.keys&&Wh.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),w0=Yk.toString,di=rd.hasOwnProperty,od=rd.toString,Xk=RegExp("^"+w0.call(di).replace(Nk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kv=Fk?Mn.Buffer:void 0,Yv=Mn.Symbol,Xv=Mn.Uint8Array,Qk=ou(Object.getPrototypeOf,Object),Jk=Object.create,Zk=rd.propertyIsEnumerable,t5=Kk.splice,Qv=Object.getOwnPropertySymbols,e5=Kv?Kv.isBuffer:void 0,r5=ou(Object.keys,Object),Yh=ja(Mn,"DataView"),cl=ja(Mn,"Map"),Xh=ja(Mn,"Promise"),Qh=ja(Mn,"Set"),Jh=ja(Mn,"WeakMap"),dl=ja(Object,"create"),o5=na(Yh),n5=na(cl),i5=na(Xh),a5=na(Qh),s5=na(Jh),Jv=Yv?Yv.prototype:void 0,Zv=Jv?Jv.valueOf:void 0;function oa(i){var r=-1,t=i?i.length:0;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function l5(){this.__data__=dl?dl(null):{}}function c5(i){return this.has(i)&&delete this.__data__[i]}function d5(i){var r=this.__data__;if(dl){var t=r[i];return t===t0?void 0:t}return di.call(r,i)?r[i]:void 0}function p5(i){var r=this.__data__;return dl?r[i]!==void 0:di.call(r,i)}function h5(i,r){var t=this.__data__;return t[i]=dl&&r===void 0?t0:r,this}oa.prototype.clear=l5;oa.prototype.delete=c5;oa.prototype.get=d5;oa.prototype.has=p5;oa.prototype.set=h5;function In(i){var r=-1,t=i?i.length:0;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function u5(){this.__data__=[]}function m5(i){var r=this.__data__,t=nd(r,i);if(t<0)return!1;var o=r.length-1;return t==o?r.pop():t5.call(r,t,1),!0}function f5(i){var r=this.__data__,t=nd(r,i);return t<0?void 0:r[t][1]}function g5(i){return nd(this.__data__,i)>-1}function b5(i,r){var t=this.__data__,o=nd(t,i);return o<0?t.push([i,r]):t[o][1]=r,this}In.prototype.clear=u5;In.prototype.delete=m5;In.prototype.get=f5;In.prototype.has=g5;In.prototype.set=b5;function Va(i){var r=-1,t=i?i.length:0;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function v5(){this.__data__={hash:new oa,map:new(cl||In),string:new oa}}function x5(i){return id(this,i).delete(i)}function y5(i){return id(this,i).get(i)}function z5(i){return id(this,i).has(i)}function w5(i,r){return id(this,i).set(i,r),this}Va.prototype.clear=v5;Va.prototype.delete=x5;Va.prototype.get=y5;Va.prototype.has=z5;Va.prototype.set=w5;function Ua(i){this.__data__=new In(i)}function _5(){this.__data__=new In}function k5(i){return this.__data__.delete(i)}function C5(i){return this.__data__.get(i)}function S5(i){return this.__data__.has(i)}function E5(i,r){var t=this.__data__;if(t instanceof In){var o=t.__data__;if(!cl||o.length<Lk-1)return o.push([i,r]),this;t=this.__data__=new Va(o)}return t.set(i,r),this}Ua.prototype.clear=_5;Ua.prototype.delete=k5;Ua.prototype.get=C5;Ua.prototype.has=S5;Ua.prototype.set=E5;function T5(i,r){var t=iu(i)||J5(i)?Gk(i.length,String):[],o=t.length,n=!!o;for(var a in i)(r||di.call(i,a))&&!(n&&(a=="length"||K5(a,o)))&&t.push(a);return t}function _0(i,r,t){var o=i[r];(!(di.call(i,r)&&E0(o,t))||t===void 0&&!(r in i))&&(i[r]=t)}function nd(i,r){for(var t=i.length;t--;)if(E0(i[t][0],r))return t;return-1}function A5(i,r){return i&&k0(r,au(r),i)}function Zh(i,r,t,o,n,a,s){var l;if(o&&(l=a?o(i,n,a,s):o(i)),l!==void 0)return l;if(!ad(i))return i;var d=iu(i);if(d){if(l=j5(i),!r)return B5(i,l)}else{var h=ra(i),m=h==eu||h==n0;if(t4(i))return N5(i,r);if(h==ru||h==tu||m&&!a){if(z0(i))return a?i:{};if(l=G5(m?{}:i),!r)return V5(i,A5(l,i))}else{if(!Bt[h])return a?i:{};l=W5(i,h,Zh,r)}}s||(s=new Ua);var f=s.get(i);if(f)return f;if(s.set(i,l),!d)var b=t?U5(i):au(i);return Uk(b||i,function(g,v){b&&(v=g,g=i[v]),_0(l,v,Zh(g,r,t,o,v,i,s))}),l}function $5(i){return ad(i)?Jk(i):{}}function q5(i,r,t){var o=r(i);return iu(i)?o:jk(o,t(i))}function L5(i){return od.call(i)}function M5(i){if(!ad(i)||X5(i))return!1;var r=A0(i)||z0(i)?Xk:Rk;return r.test(na(i))}function I5(i){if(!S0(i))return r5(i);var r=[];for(var t in Object(i))di.call(i,t)&&t!="constructor"&&r.push(t);return r}function N5(i,r){if(r)return i.slice();var t=new i.constructor(i.length);return i.copy(t),t}function nu(i){var r=new i.constructor(i.byteLength);return new Xv(r).set(new Xv(i)),r}function D5(i,r){var t=r?nu(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)}function R5(i,r,t){var o=r?t(jv(i),!0):jv(i);return y0(o,Bk,new i.constructor)}function O5(i){var r=new i.constructor(i.source,Dk.exec(i));return r.lastIndex=i.lastIndex,r}function P5(i,r,t){var o=r?t(Gv(i),!0):Gv(i);return y0(o,Vk,new i.constructor)}function H5(i){return Zv?Object(Zv.call(i)):{}}function F5(i,r){var t=r?nu(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}function B5(i,r){var t=-1,o=i.length;for(r||(r=Array(o));++t<o;)r[t]=i[t];return r}function k0(i,r,t,o){t||(t={});for(var n=-1,a=r.length;++n<a;){var s=r[n],l=o?o(t[s],i[s],s,t,i):void 0;_0(t,s,l===void 0?i[s]:l)}return t}function V5(i,r){return k0(i,C0(i),r)}function U5(i){return q5(i,au,C0)}function id(i,r){var t=i.__data__;return Y5(r)?t[typeof r=="string"?"string":"hash"]:t.map}function ja(i,r){var t=Wk(i,r);return M5(t)?t:void 0}var C0=Qv?ou(Qv,Object):o4,ra=L5;(Yh&&ra(new Yh(new ArrayBuffer(1)))!=ed||cl&&ra(new cl)!=Zc||Xh&&ra(Xh.resolve())!=Vv||Qh&&ra(new Qh)!=td||Jh&&ra(new Jh)!=Kh)&&(ra=function(i){var r=od.call(i),t=r==ru?i.constructor:void 0,o=t?na(t):void 0;if(o)switch(o){case o5:return ed;case n5:return Zc;case i5:return Vv;case a5:return td;case s5:return Kh}return r});function j5(i){var r=i.length,t=i.constructor(r);return r&&typeof i[0]=="string"&&di.call(i,"index")&&(t.index=i.index,t.input=i.input),t}function G5(i){return typeof i.constructor=="function"&&!S0(i)?$5(Qk(i)):{}}function W5(i,r,t,o){var n=i.constructor;switch(r){case c0:return nu(i);case r0:case o0:return new n(+i);case ed:return D5(i,o);case d0:case p0:case h0:case u0:case m0:case f0:case g0:case b0:case v0:return F5(i,o);case Zc:return R5(i,o,t);case i0:case s0:return new n(i);case a0:return O5(i);case td:return P5(i,o,t);case l0:return H5(i)}}function K5(i,r){return r=r??e0,!!r&&(typeof i=="number"||Ok.test(i))&&i>-1&&i%1==0&&i<r}function Y5(i){var r=typeof i;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?i!=="__proto__":i===null}function X5(i){return!!Wv&&Wv in i}function S0(i){var r=i&&i.constructor,t=typeof r=="function"&&r.prototype||rd;return i===t}function na(i){if(i!=null){try{return w0.call(i)}catch{}try{return i+""}catch{}}return""}function Q5(i){return Zh(i,!0,!0)}function E0(i,r){return i===r||i!==i&&r!==r}function J5(i){return Z5(i)&&di.call(i,"callee")&&(!Zk.call(i,"callee")||od.call(i)==tu)}var iu=Array.isArray;function T0(i){return i!=null&&e4(i.length)&&!A0(i)}function Z5(i){return r4(i)&&T0(i)}var t4=e5||n4;function A0(i){var r=ad(i)?od.call(i):"";return r==eu||r==n0}function e4(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=e0}function ad(i){var r=typeof i;return!!i&&(r=="object"||r=="function")}function r4(i){return!!i&&typeof i=="object"}function au(i){return T0(i)?T5(i):I5(i)}function o4(){return[]}function n4(){return!1}Ba.exports=Q5});var xu=_n((pl,Wa)=>{var i4=200,vu="__lodash_hash_undefined__",md=1,F0=2,B0=9007199254740991,sd="[object Arguments]",pu="[object Array]",a4="[object AsyncFunction]",V0="[object Boolean]",U0="[object Date]",j0="[object Error]",G0="[object Function]",s4="[object GeneratorFunction]",ld="[object Map]",W0="[object Number]",l4="[object Null]",Ga="[object Object]",$0="[object Promise]",c4="[object Proxy]",K0="[object RegExp]",cd="[object Set]",Y0="[object String]",d4="[object Symbol]",p4="[object Undefined]",hu="[object WeakMap]",X0="[object ArrayBuffer]",dd="[object DataView]",h4="[object Float32Array]",u4="[object Float64Array]",m4="[object Int8Array]",f4="[object Int16Array]",g4="[object Int32Array]",b4="[object Uint8Array]",v4="[object Uint8ClampedArray]",x4="[object Uint16Array]",y4="[object Uint32Array]",z4=/[\\^$.*+?()[\]{}|]/g,w4=/^\[object .+?Constructor\]$/,_4=/^(?:0|[1-9]\d*)$/,Kt={};Kt[h4]=Kt[u4]=Kt[m4]=Kt[f4]=Kt[g4]=Kt[b4]=Kt[v4]=Kt[x4]=Kt[y4]=!0;Kt[sd]=Kt[pu]=Kt[X0]=Kt[V0]=Kt[dd]=Kt[U0]=Kt[j0]=Kt[G0]=Kt[ld]=Kt[W0]=Kt[Ga]=Kt[K0]=Kt[cd]=Kt[Y0]=Kt[hu]=!1;var Q0=typeof global=="object"&&global&&global.Object===Object&&global,k4=typeof self=="object"&&self&&self.Object===Object&&self,Nn=Q0||k4||Function("return this")(),J0=typeof pl=="object"&&pl&&!pl.nodeType&&pl,q0=J0&&typeof Wa=="object"&&Wa&&!Wa.nodeType&&Wa,Z0=q0&&q0.exports===J0,lu=Z0&&Q0.process,L0=(function(){try{return lu&&lu.binding&&lu.binding("util")}catch{}})(),M0=L0&&L0.isTypedArray;function C4(i,r){for(var t=-1,o=i==null?0:i.length,n=0,a=[];++t<o;){var s=i[t];r(s,t,i)&&(a[n++]=s)}return a}function S4(i,r){for(var t=-1,o=r.length,n=i.length;++t<o;)i[n+t]=r[t];return i}function E4(i,r){for(var t=-1,o=i==null?0:i.length;++t<o;)if(r(i[t],t,i))return!0;return!1}function T4(i,r){for(var t=-1,o=Array(i);++t<i;)o[t]=r(t);return o}function A4(i){return function(r){return i(r)}}function $4(i,r){return i.has(r)}function q4(i,r){return i?.[r]}function L4(i){var r=-1,t=Array(i.size);return i.forEach(function(o,n){t[++r]=[n,o]}),t}function M4(i,r){return function(t){return i(r(t))}}function I4(i){var r=-1,t=Array(i.size);return i.forEach(function(o){t[++r]=o}),t}var N4=Array.prototype,D4=Function.prototype,fd=Object.prototype,cu=Nn["__core-js_shared__"],t1=D4.toString,pn=fd.hasOwnProperty,I0=(function(){var i=/[^.]+$/.exec(cu&&cu.keys&&cu.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),e1=fd.toString,R4=RegExp("^"+t1.call(pn).replace(z4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N0=Z0?Nn.Buffer:void 0,pd=Nn.Symbol,D0=Nn.Uint8Array,r1=fd.propertyIsEnumerable,O4=N4.splice,ia=pd?pd.toStringTag:void 0,R0=Object.getOwnPropertySymbols,P4=N0?N0.isBuffer:void 0,H4=M4(Object.keys,Object),uu=Ka(Nn,"DataView"),hl=Ka(Nn,"Map"),mu=Ka(Nn,"Promise"),fu=Ka(Nn,"Set"),gu=Ka(Nn,"WeakMap"),ul=Ka(Object,"create"),F4=la(uu),B4=la(hl),V4=la(mu),U4=la(fu),j4=la(gu),O0=pd?pd.prototype:void 0,du=O0?O0.valueOf:void 0;function aa(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function G4(){this.__data__=ul?ul(null):{},this.size=0}function W4(i){var r=this.has(i)&&delete this.__data__[i];return this.size-=r?1:0,r}function K4(i){var r=this.__data__;if(ul){var t=r[i];return t===vu?void 0:t}return pn.call(r,i)?r[i]:void 0}function Y4(i){var r=this.__data__;return ul?r[i]!==void 0:pn.call(r,i)}function X4(i,r){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=ul&&r===void 0?vu:r,this}aa.prototype.clear=G4;aa.prototype.delete=W4;aa.prototype.get=K4;aa.prototype.has=Y4;aa.prototype.set=X4;function Dn(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function Q4(){this.__data__=[],this.size=0}function J4(i){var r=this.__data__,t=gd(r,i);if(t<0)return!1;var o=r.length-1;return t==o?r.pop():O4.call(r,t,1),--this.size,!0}function Z4(i){var r=this.__data__,t=gd(r,i);return t<0?void 0:r[t][1]}function t8(i){return gd(this.__data__,i)>-1}function e8(i,r){var t=this.__data__,o=gd(t,i);return o<0?(++this.size,t.push([i,r])):t[o][1]=r,this}Dn.prototype.clear=Q4;Dn.prototype.delete=J4;Dn.prototype.get=Z4;Dn.prototype.has=t8;Dn.prototype.set=e8;function sa(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function r8(){this.size=0,this.__data__={hash:new aa,map:new(hl||Dn),string:new aa}}function o8(i){var r=bd(this,i).delete(i);return this.size-=r?1:0,r}function n8(i){return bd(this,i).get(i)}function i8(i){return bd(this,i).has(i)}function a8(i,r){var t=bd(this,i),o=t.size;return t.set(i,r),this.size+=t.size==o?0:1,this}sa.prototype.clear=r8;sa.prototype.delete=o8;sa.prototype.get=n8;sa.prototype.has=i8;sa.prototype.set=a8;function hd(i){var r=-1,t=i==null?0:i.length;for(this.__data__=new sa;++r<t;)this.add(i[r])}function s8(i){return this.__data__.set(i,vu),this}function l8(i){return this.__data__.has(i)}hd.prototype.add=hd.prototype.push=s8;hd.prototype.has=l8;function hi(i){var r=this.__data__=new Dn(i);this.size=r.size}function c8(){this.__data__=new Dn,this.size=0}function d8(i){var r=this.__data__,t=r.delete(i);return this.size=r.size,t}function p8(i){return this.__data__.get(i)}function h8(i){return this.__data__.has(i)}function u8(i,r){var t=this.__data__;if(t instanceof Dn){var o=t.__data__;if(!hl||o.length<i4-1)return o.push([i,r]),this.size=++t.size,this;t=this.__data__=new sa(o)}return t.set(i,r),this.size=t.size,this}hi.prototype.clear=c8;hi.prototype.delete=d8;hi.prototype.get=p8;hi.prototype.has=h8;hi.prototype.set=u8;function m8(i,r){var t=ud(i),o=!t&&A8(i),n=!t&&!o&&bu(i),a=!t&&!o&&!n&&c1(i),s=t||o||n||a,l=s?T4(i.length,String):[],d=l.length;for(var h in i)(r||pn.call(i,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||k8(h,d)))&&l.push(h);return l}function gd(i,r){for(var t=i.length;t--;)if(i1(i[t][0],r))return t;return-1}function f8(i,r,t){var o=r(i);return ud(i)?o:S4(o,t(i))}function fl(i){return i==null?i===void 0?p4:l4:ia&&ia in Object(i)?w8(i):T8(i)}function P0(i){return ml(i)&&fl(i)==sd}function o1(i,r,t,o,n){return i===r?!0:i==null||r==null||!ml(i)&&!ml(r)?i!==i&&r!==r:g8(i,r,t,o,o1,n)}function g8(i,r,t,o,n,a){var s=ud(i),l=ud(r),d=s?pu:pi(i),h=l?pu:pi(r);d=d==sd?Ga:d,h=h==sd?Ga:h;var m=d==Ga,f=h==Ga,b=d==h;if(b&&bu(i)){if(!bu(r))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new hi),s||c1(i)?n1(i,r,t,o,n,a):y8(i,r,d,t,o,n,a);if(!(t&md)){var g=m&&pn.call(i,"__wrapped__"),v=f&&pn.call(r,"__wrapped__");if(g||v){var x=g?i.value():i,_=v?r.value():r;return a||(a=new hi),n(x,_,t,o,a)}}return b?(a||(a=new hi),z8(i,r,t,o,n,a)):!1}function b8(i){if(!l1(i)||S8(i))return!1;var r=a1(i)?R4:w4;return r.test(la(i))}function v8(i){return ml(i)&&s1(i.length)&&!!Kt[fl(i)]}function x8(i){if(!E8(i))return H4(i);var r=[];for(var t in Object(i))pn.call(i,t)&&t!="constructor"&&r.push(t);return r}function n1(i,r,t,o,n,a){var s=t&md,l=i.length,d=r.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(i);if(h&&a.get(r))return h==r;var m=-1,f=!0,b=t&F0?new hd:void 0;for(a.set(i,r),a.set(r,i);++m<l;){var g=i[m],v=r[m];if(o)var x=s?o(v,g,m,r,i,a):o(g,v,m,i,r,a);if(x!==void 0){if(x)continue;f=!1;break}if(b){if(!E4(r,function(_,k){if(!$4(b,k)&&(g===_||n(g,_,t,o,a)))return b.push(k)})){f=!1;break}}else if(!(g===v||n(g,v,t,o,a))){f=!1;break}}return a.delete(i),a.delete(r),f}function y8(i,r,t,o,n,a,s){switch(t){case dd:if(i.byteLength!=r.byteLength||i.byteOffset!=r.byteOffset)return!1;i=i.buffer,r=r.buffer;case X0:return!(i.byteLength!=r.byteLength||!a(new D0(i),new D0(r)));case V0:case U0:case W0:return i1(+i,+r);case j0:return i.name==r.name&&i.message==r.message;case K0:case Y0:return i==r+"";case ld:var l=L4;case cd:var d=o&md;if(l||(l=I4),i.size!=r.size&&!d)return!1;var h=s.get(i);if(h)return h==r;o|=F0,s.set(i,r);var m=n1(l(i),l(r),o,n,a,s);return s.delete(i),m;case d4:if(du)return du.call(i)==du.call(r)}return!1}function z8(i,r,t,o,n,a){var s=t&md,l=H0(i),d=l.length,h=H0(r),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in r:pn.call(r,b)))return!1}var g=a.get(i);if(g&&a.get(r))return g==r;var v=!0;a.set(i,r),a.set(r,i);for(var x=s;++f<d;){b=l[f];var _=i[b],k=r[b];if(o)var O=s?o(k,_,b,r,i,a):o(_,k,b,i,r,a);if(!(O===void 0?_===k||n(_,k,t,o,a):O)){v=!1;break}x||(x=b=="constructor")}if(v&&!x){var j=i.constructor,I=r.constructor;j!=I&&"constructor"in i&&"constructor"in r&&!(typeof j=="function"&&j instanceof j&&typeof I=="function"&&I instanceof I)&&(v=!1)}return a.delete(i),a.delete(r),v}function H0(i){return f8(i,L8,_8)}function bd(i,r){var t=i.__data__;return C8(r)?t[typeof r=="string"?"string":"hash"]:t.map}function Ka(i,r){var t=q4(i,r);return b8(t)?t:void 0}function w8(i){var r=pn.call(i,ia),t=i[ia];try{i[ia]=void 0;var o=!0}catch{}var n=e1.call(i);return o&&(r?i[ia]=t:delete i[ia]),n}var _8=R0?function(i){return i==null?[]:(i=Object(i),C4(R0(i),function(r){return r1.call(i,r)}))}:M8,pi=fl;(uu&&pi(new uu(new ArrayBuffer(1)))!=dd||hl&&pi(new hl)!=ld||mu&&pi(mu.resolve())!=$0||fu&&pi(new fu)!=cd||gu&&pi(new gu)!=hu)&&(pi=function(i){var r=fl(i),t=r==Ga?i.constructor:void 0,o=t?la(t):"";if(o)switch(o){case F4:return dd;case B4:return ld;case V4:return $0;case U4:return cd;case j4:return hu}return r});function k8(i,r){return r=r??B0,!!r&&(typeof i=="number"||_4.test(i))&&i>-1&&i%1==0&&i<r}function C8(i){var r=typeof i;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?i!=="__proto__":i===null}function S8(i){return!!I0&&I0 in i}function E8(i){var r=i&&i.constructor,t=typeof r=="function"&&r.prototype||fd;return i===t}function T8(i){return e1.call(i)}function la(i){if(i!=null){try{return t1.call(i)}catch{}try{return i+""}catch{}}return""}function i1(i,r){return i===r||i!==i&&r!==r}var A8=P0((function(){return arguments})())?P0:function(i){return ml(i)&&pn.call(i,"callee")&&!r1.call(i,"callee")},ud=Array.isArray;function $8(i){return i!=null&&s1(i.length)&&!a1(i)}var bu=P4||I8;function q8(i,r){return o1(i,r)}function a1(i){if(!l1(i))return!1;var r=fl(i);return r==G0||r==s4||r==a4||r==c4}function s1(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=B0}function l1(i){var r=typeof i;return i!=null&&(r=="object"||r=="function")}function ml(i){return i!=null&&typeof i=="object"}var c1=M0?A4(M0):v8;function L8(i){return $8(i)?m8(i):x8(i)}function M8(){return[]}function I8(){return!1}Wa.exports=q8});var d1=_n(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var N8=su(),D8=xu(),yu;(function(i){function r(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let d=N8(s);l||(d=Object.keys(d).reduce((h,m)=>(d[m]!=null&&(h[m]=d[m]),h),{}));for(let h in a)a[h]!==void 0&&s[h]===void 0&&(d[h]=a[h]);return Object.keys(d).length>0?d:void 0}i.compose=r;function t(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let l=Object.keys(a).concat(Object.keys(s)).reduce((d,h)=>(D8(a[h],s[h])||(d[h]=s[h]===void 0?null:s[h]),d),{});return Object.keys(l).length>0?l:void 0}i.diff=t;function o(a={},s={}){a=a||{};let l=Object.keys(s).reduce((d,h)=>(s[h]!==a[h]&&a[h]!==void 0&&(d[h]=s[h]),d),{});return Object.keys(a).reduce((d,h)=>(a[h]!==s[h]&&s[h]===void 0&&(d[h]=null),d),l)}i.invert=o;function n(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;let d=Object.keys(s).reduce((h,m)=>(a[m]===void 0&&(h[m]=s[m]),h),{});return Object.keys(d).length>0?d:void 0}i.transform=n})(yu||(yu={}));zu.default=yu});var ku=_n(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var wu;(function(i){function r(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}i.length=r})(wu||(wu={}));_u.default=wu});var h1=_n(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var p1=ku(),Cu=class{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);let t=this.ops[this.index];if(t){let o=this.offset,n=p1.default.length(t);if(r>=n-o?(r=n-o,this.index+=1,this.offset=0):this.offset+=r,typeof t.delete=="number")return{delete:r};{let a={};return t.attributes&&(a.attributes=t.attributes),typeof t.retain=="number"?a.retain=r:typeof t.retain=="object"&&t.retain!==null?a.retain=t.retain:typeof t.insert=="string"?a.insert=t.insert.substr(o,r):a.insert=t.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?p1.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let r=this.offset,t=this.index,o=this.next(),n=this.ops.slice(this.index);return this.offset=r,this.index=t,[o].concat(n)}}else return[]}};Su.default=Cu});var Or=_n((On,xd)=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.AttributeMap=On.OpIterator=On.Op=void 0;var vd=Bv(),R8=su(),Eu=xu(),ca=d1();On.AttributeMap=ca.default;var Rn=ku();On.Op=Rn.default;var fo=h1();On.OpIterator=fo.default;var O8="\0",u1=(i,r)=>{if(typeof i!="object"||i===null)throw new Error(`cannot retain a ${typeof i}`);if(typeof r!="object"||r===null)throw new Error(`cannot retain a ${typeof r}`);let t=Object.keys(i)[0];if(!t||t!==Object.keys(r)[0])throw new Error(`embed types not matched: ${t} != ${Object.keys(r)[0]}`);return[t,i[t],r[t]]},Pn=class i{constructor(r){Array.isArray(r)?this.ops=r:r!=null&&Array.isArray(r.ops)?this.ops=r.ops:this.ops=[]}static registerEmbed(r,t){this.handlers[r]=t}static unregisterEmbed(r){delete this.handlers[r]}static getHandler(r){let t=this.handlers[r];if(!t)throw new Error(`no handlers for embed type "${r}"`);return t}insert(r,t){let o={};return typeof r=="string"&&r.length===0?this:(o.insert=r,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(o.attributes=t),this.push(o))}delete(r){return r<=0?this:this.push({delete:r})}retain(r,t){if(typeof r=="number"&&r<=0)return this;let o={retain:r};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(o.attributes=t),this.push(o)}push(r){let t=this.ops.length,o=this.ops[t-1];if(r=R8(r),typeof o=="object"){if(typeof r.delete=="number"&&typeof o.delete=="number")return this.ops[t-1]={delete:o.delete+r.delete},this;if(typeof o.delete=="number"&&r.insert!=null&&(t-=1,o=this.ops[t-1],typeof o!="object"))return this.ops.unshift(r),this;if(Eu(r.attributes,o.attributes)){if(typeof r.insert=="string"&&typeof o.insert=="string")return this.ops[t-1]={insert:o.insert+r.insert},typeof r.attributes=="object"&&(this.ops[t-1].attributes=r.attributes),this;if(typeof r.retain=="number"&&typeof o.retain=="number")return this.ops[t-1]={retain:o.retain+r.retain},typeof r.attributes=="object"&&(this.ops[t-1].attributes=r.attributes),this}}return t===this.ops.length?this.ops.push(r):this.ops.splice(t,0,r),this}chop(){let r=this.ops[this.ops.length-1];return r&&typeof r.retain=="number"&&!r.attributes&&this.ops.pop(),this}filter(r){return this.ops.filter(r)}forEach(r){this.ops.forEach(r)}map(r){return this.ops.map(r)}partition(r){let t=[],o=[];return this.forEach(n=>{(r(n)?t:o).push(n)}),[t,o]}reduce(r,t){return this.ops.reduce(r,t)}changeLength(){return this.reduce((r,t)=>t.insert?r+Rn.default.length(t):t.delete?r-t.delete:r,0)}length(){return this.reduce((r,t)=>r+Rn.default.length(t),0)}slice(r=0,t=1/0){let o=[],n=new fo.default(this.ops),a=0;for(;a<t&&n.hasNext();){let s;a<r?s=n.next(r-a):(s=n.next(t-a),o.push(s)),a+=Rn.default.length(s)}return new i(o)}compose(r){let t=new fo.default(this.ops),o=new fo.default(r.ops),n=[],a=o.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&&o.next(a.retain-l)}let s=new i(n);for(;t.hasNext()||o.hasNext();)if(o.peekType()==="insert")s.push(o.next());else if(t.peekType()==="delete")s.push(t.next());else{let l=Math.min(t.peekLength(),o.peekLength()),d=t.next(l),h=o.next(l);if(h.retain){let m={};if(typeof d.retain=="number")m.retain=typeof h.retain=="number"?l:h.retain;else if(typeof h.retain=="number")d.retain==null?m.insert=d.insert:m.retain=d.retain;else{let b=d.retain==null?"insert":"retain",[g,v,x]=u1(d[b],h.retain),_=i.getHandler(g);m[b]={[g]:_.compose(v,x,b==="retain")}}let f=ca.default.compose(d.attributes,h.attributes,typeof d.retain=="number");if(f&&(m.attributes=f),s.push(m),!o.hasNext()&&Eu(s.ops[s.ops.length-1],m)){let b=new i(t.rest());return s.concat(b).chop()}}else typeof h.delete=="number"&&(typeof d.retain=="number"||typeof d.retain=="object"&&d.retain!==null)&&s.push(h)}return s.chop()}concat(r){let t=new i(this.ops.slice());return r.ops.length>0&&(t.push(r.ops[0]),t.ops=t.ops.concat(r.ops.slice(1))),t}diff(r,t){if(this.ops===r.ops)return new i;let o=[this,r].map(d=>d.map(h=>{if(h.insert!=null)return typeof h.insert=="string"?h.insert:O8;let m=d===r?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")),n=new i,a=vd(o[0],o[1],t,!0),s=new fo.default(this.ops),l=new fo.default(r.ops);return a.forEach(d=>{let h=d[1].length;for(;h>0;){let m=0;switch(d[0]){case vd.INSERT:m=Math.min(l.peekLength(),h),n.push(l.next(m));break;case vd.DELETE:m=Math.min(h,s.peekLength()),s.next(m),n.delete(m);break;case vd.EQUAL:m=Math.min(s.peekLength(),l.peekLength(),h);let f=s.next(m),b=l.next(m);Eu(f.insert,b.insert)?n.retain(m,ca.default.diff(f.attributes,b.attributes)):n.push(b).delete(m);break}h-=m}}),n.chop()}eachLine(r,t=`
1
+ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var Bv=_n((lJ,Fv)=>{var eo=-1,kr=1,Re=0;function sl(i,r,t,o,n){if(i===r)return i?[[Re,i]]:[];if(t!=null){var a=qk(i,r,t);if(a)return a}var s=jh(i,r),l=i.substring(0,s);i=i.substring(s),r=r.substring(s),s=Qc(i,r);var d=i.substring(i.length-s);i=i.substring(0,i.length-s),r=r.substring(0,r.length-s);var h=_k(i,r);return l&&h.unshift([Re,l]),d&&h.push([Re,d]),Gh(h,n),o&&Sk(h),h}function _k(i,r){var t;if(!i)return[[kr,r]];if(!r)return[[eo,i]];var o=i.length>r.length?i:r,n=i.length>r.length?r:i,a=o.indexOf(n);if(a!==-1)return t=[[kr,o.substring(0,a)],[Re,n],[kr,o.substring(a+n.length)]],i.length>r.length&&(t[0][0]=t[2][0]=eo),t;if(n.length===1)return[[eo,i],[kr,r]];var s=Ck(i,r);if(s){var l=s[0],d=s[1],h=s[2],m=s[3],f=s[4],b=sl(l,h),g=sl(d,m);return b.concat([[Re,f]],g)}return kk(i,r)}function kk(i,r){for(var t=i.length,o=r.length,n=Math.ceil((t+o)/2),a=n,s=2*n,l=new Array(s),d=new Array(s),h=0;h<s;h++)l[h]=-1,d[h]=-1;l[a+1]=0,d[a+1]=0;for(var m=t-o,f=m%2!==0,b=0,g=0,v=0,x=0,_=0;_<n;_++){for(var k=-_+b;k<=_-g;k+=2){var O=a+k,j;k===-_||k!==_&&l[O-1]<l[O+1]?j=l[O+1]:j=l[O-1]+1;for(var I=j-k;j<t&&I<o&&i.charAt(j)===r.charAt(I);)j++,I++;if(l[O]=j,j>t)g+=2;else if(I>o)b+=2;else if(f){var w=a+m-k;if(w>=0&&w<s&&d[w]!==-1){var E=t-d[w];if(j>=E)return Lv(i,r,j,I)}}}for(var q=-_+v;q<=_-x;q+=2){var w=a+q,E;q===-_||q!==_&&d[w-1]<d[w+1]?E=d[w+1]:E=d[w-1]+1;for(var W=E-q;E<t&&W<o&&i.charAt(t-E-1)===r.charAt(o-W-1);)E++,W++;if(d[w]=E,E>t)x+=2;else if(W>o)v+=2;else if(!f){var O=a+m-q;if(O>=0&&O<s&&l[O]!==-1){var j=l[O],I=a+j-O;if(E=t-E,j>=E)return Lv(i,r,j,I)}}}}return[[eo,i],[kr,r]]}function Lv(i,r,t,o){var n=i.substring(0,t),a=r.substring(0,o),s=i.substring(t),l=r.substring(o),d=sl(n,a),h=sl(s,l);return d.concat(h)}function jh(i,r){if(!i||!r||i.charAt(0)!==r.charAt(0))return 0;for(var t=0,o=Math.min(i.length,r.length),n=o,a=0;t<n;)i.substring(a,n)==r.substring(a,n)?(t=n,a=t):o=n,n=Math.floor((o-t)/2+t);return Rv(i.charCodeAt(n-1))&&n--,n}function Mv(i,r){var t=i.length,o=r.length;if(t==0||o==0)return 0;t>o?i=i.substring(t-o):t<o&&(r=r.substring(0,t));var n=Math.min(t,o);if(i==r)return n;for(var a=0,s=1;;){var l=i.substring(n-s),d=r.indexOf(l);if(d==-1)return a;s+=d,(d==0||i.substring(n-s)==r.substring(0,s))&&(a=s,s++)}}function Qc(i,r){if(!i||!r||i.slice(-1)!==r.slice(-1))return 0;for(var t=0,o=Math.min(i.length,r.length),n=o,a=0;t<n;)i.substring(i.length-n,i.length-a)==r.substring(r.length-n,r.length-a)?(t=n,a=t):o=n,n=Math.floor((o-t)/2+t);return Ov(i.charCodeAt(i.length-n))&&n--,n}function Ck(i,r){var t=i.length>r.length?i:r,o=i.length>r.length?r:i;if(t.length<4||o.length*2<t.length)return null;function n(g,v,x){for(var _=g.substring(x,x+Math.floor(g.length/4)),k=-1,O="",j,I,w,E;(k=v.indexOf(_,k+1))!==-1;){var q=jh(g.substring(x),v.substring(k)),W=Qc(g.substring(0,x),v.substring(0,k));O.length<W+q&&(O=v.substring(k-W,k)+v.substring(k,k+q),j=g.substring(0,x-W),I=g.substring(x+q),w=v.substring(0,k-W),E=v.substring(k+q))}return O.length*2>=g.length?[j,I,w,E,O]:null}var a=n(t,o,Math.ceil(t.length/4)),s=n(t,o,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 d,h,m,f;i.length>r.length?(d=l[0],h=l[1],m=l[2],f=l[3]):(m=l[0],f=l[1],d=l[2],h=l[3]);var b=l[4];return[d,h,m,f,b]}function Sk(i){for(var r=!1,t=[],o=0,n=null,a=0,s=0,l=0,d=0,h=0;a<i.length;)i[a][0]==Re?(t[o++]=a,s=d,l=h,d=0,h=0,n=i[a][1]):(i[a][0]==kr?d+=i[a][1].length:h+=i[a][1].length,n&&n.length<=Math.max(s,l)&&n.length<=Math.max(d,h)&&(i.splice(t[o-1],0,[eo,n]),i[t[o-1]+1][0]=kr,o--,o--,a=o>0?t[o-1]:-1,s=0,l=0,d=0,h=0,n=null,r=!0)),a++;for(r&&Gh(i),Ak(i),a=1;a<i.length;){if(i[a-1][0]==eo&&i[a][0]==kr){var m=i[a-1][1],f=i[a][1],b=Mv(m,f),g=Mv(f,m);b>=g?(b>=m.length/2||b>=f.length/2)&&(i.splice(a,0,[Re,f.substring(0,b)]),i[a-1][1]=m.substring(0,m.length-b),i[a+1][1]=f.substring(b),a++):(g>=m.length/2||g>=f.length/2)&&(i.splice(a,0,[Re,m.substring(0,g)]),i[a-1][0]=kr,i[a-1][1]=f.substring(0,f.length-g),i[a+1][0]=eo,i[a+1][1]=m.substring(g),a++),a++}a++}}var Iv=/[^a-zA-Z0-9]/,Nv=/\s/,Dv=/[\r\n]/,Ek=/\n\r?\n$/,Tk=/^\r?\n\r?\n/;function Ak(i){function r(g,v){if(!g||!v)return 6;var x=g.charAt(g.length-1),_=v.charAt(0),k=x.match(Iv),O=_.match(Iv),j=k&&x.match(Nv),I=O&&_.match(Nv),w=j&&x.match(Dv),E=I&&_.match(Dv),q=w&&g.match(Ek),W=E&&v.match(Tk);return q||W?5:w||E?4:k&&!j&&I?3:j||I?2:k||O?1:0}for(var t=1;t<i.length-1;){if(i[t-1][0]==Re&&i[t+1][0]==Re){var o=i[t-1][1],n=i[t][1],a=i[t+1][1],s=Qc(o,n);if(s){var l=n.substring(n.length-s);o=o.substring(0,o.length-s),n=l+n.substring(0,n.length-s),a=l+a}for(var d=o,h=n,m=a,f=r(o,n)+r(n,a);n.charAt(0)===a.charAt(0);){o+=n.charAt(0),n=n.substring(1)+a.charAt(0),a=a.substring(1);var b=r(o,n)+r(n,a);b>=f&&(f=b,d=o,h=n,m=a)}i[t-1][1]!=d&&(d?i[t-1][1]=d:(i.splice(t-1,1),t--),i[t][1]=h,m?i[t+1][1]=m:(i.splice(t+1,1),t--))}t++}}function Gh(i,r){i.push([Re,""]);for(var t=0,o=0,n=0,a="",s="",l;t<i.length;){if(t<i.length-1&&!i[t][1]){i.splice(t,1);continue}switch(i[t][0]){case kr:n++,s+=i[t][1],t++;break;case eo:o++,a+=i[t][1],t++;break;case Re:var d=t-n-o-1;if(r){if(d>=0&&Hv(i[d][1])){var h=i[d][1].slice(-1);if(i[d][1]=i[d][1].slice(0,-1),a=h+a,s=h+s,!i[d][1]){i.splice(d,1),t--;var m=d-1;i[m]&&i[m][0]===kr&&(n++,s=i[m][1]+s,m--),i[m]&&i[m][0]===eo&&(o++,a=i[m][1]+a,m--),d=m}}if(Pv(i[t][1])){var h=i[t][1].charAt(0);i[t][1]=i[t][1].slice(1),a+=h,s+=h}}if(t<i.length-1&&!i[t][1]){i.splice(t,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=jh(s,a),l!==0&&(d>=0?i[d][1]+=s.substring(0,l):(i.splice(0,0,[Re,s.substring(0,l)]),t++),s=s.substring(l),a=a.substring(l)),l=Qc(s,a),l!==0&&(i[t][1]=s.substring(s.length-l)+i[t][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var f=n+o;a.length===0&&s.length===0?(i.splice(t-f,f),t=t-f):a.length===0?(i.splice(t-f,f,[kr,s]),t=t-f+1):s.length===0?(i.splice(t-f,f,[eo,a]),t=t-f+1):(i.splice(t-f,f,[eo,a],[kr,s]),t=t-f+2)}t!==0&&i[t-1][0]===Re?(i[t-1][1]+=i[t][1],i.splice(t,1)):t++,n=0,o=0,a="",s="";break}}i[i.length-1][1]===""&&i.pop();var b=!1;for(t=1;t<i.length-1;)i[t-1][0]===Re&&i[t+1][0]===Re&&(i[t][1].substring(i[t][1].length-i[t-1][1].length)===i[t-1][1]?(i[t][1]=i[t-1][1]+i[t][1].substring(0,i[t][1].length-i[t-1][1].length),i[t+1][1]=i[t-1][1]+i[t+1][1],i.splice(t-1,1),b=!0):i[t][1].substring(0,i[t+1][1].length)==i[t+1][1]&&(i[t-1][1]+=i[t+1][1],i[t][1]=i[t][1].substring(i[t+1][1].length)+i[t+1][1],i.splice(t+1,1),b=!0)),t++;b&&Gh(i,r)}function Rv(i){return i>=55296&&i<=56319}function Ov(i){return i>=56320&&i<=57343}function Pv(i){return Ov(i.charCodeAt(0))}function Hv(i){return Rv(i.charCodeAt(i.length-1))}function $k(i){for(var r=[],t=0;t<i.length;t++)i[t][1].length>0&&r.push(i[t]);return r}function Uh(i,r,t,o){return Hv(i)||Pv(o)?null:$k([[Re,i],[eo,r],[kr,t],[Re,o]])}function qk(i,r,t){var o=typeof t=="number"?{index:t,length:0}:t.oldRange,n=typeof t=="number"?null:t.newRange,a=i.length,s=r.length;if(o.length===0&&(n===null||n.length===0)){var l=o.index,d=i.slice(0,l),h=i.slice(l),m=n?n.index:null;t:{var f=l+s-a;if(m!==null&&m!==f||f<0||f>s)break t;var b=r.slice(0,f),g=r.slice(f);if(g!==h)break t;var v=Math.min(l,f),x=d.slice(0,v),_=b.slice(0,v);if(x!==_)break t;var k=d.slice(v),O=b.slice(v);return Uh(x,k,O,h)}t:{if(m!==null&&m!==l)break t;var j=l,b=r.slice(0,j),g=r.slice(j);if(b!==d)break t;var I=Math.min(a-j,s-j),w=h.slice(h.length-I),E=g.slice(g.length-I);if(w!==E)break t;var k=h.slice(0,h.length-I),O=g.slice(0,g.length-I);return Uh(d,k,O,w)}}if(o.length>0&&n&&n.length===0)t:{var x=i.slice(0,o.index),w=i.slice(o.index+o.length),v=x.length,I=w.length;if(s<v+I)break t;var _=r.slice(0,v),E=r.slice(s-I);if(x!==_||w!==E)break t;var k=i.slice(v,a-I),O=r.slice(v,s-I);return Uh(x,k,O,w)}return null}function Jc(i,r,t,o){return sl(i,r,t,o,!0)}Jc.INSERT=kr;Jc.DELETE=eo;Jc.EQUAL=Re;Fv.exports=Jc});var su=_n((ll,Ba)=>{var Lk=200,t0="__lodash_hash_undefined__",e0=9007199254740991,tu="[object Arguments]",Mk="[object Array]",r0="[object Boolean]",o0="[object Date]",Ik="[object Error]",eu="[object Function]",n0="[object GeneratorFunction]",Zc="[object Map]",i0="[object Number]",ru="[object Object]",Vv="[object Promise]",a0="[object RegExp]",td="[object Set]",s0="[object String]",l0="[object Symbol]",Kh="[object WeakMap]",c0="[object ArrayBuffer]",ed="[object DataView]",d0="[object Float32Array]",p0="[object Float64Array]",h0="[object Int8Array]",u0="[object Int16Array]",m0="[object Int32Array]",f0="[object Uint8Array]",g0="[object Uint8ClampedArray]",b0="[object Uint16Array]",v0="[object Uint32Array]",Nk=/[\\^$.*+?()[\]{}|]/g,Dk=/\w*$/,Rk=/^\[object .+?Constructor\]$/,Ok=/^(?:0|[1-9]\d*)$/,Vt={};Vt[tu]=Vt[Mk]=Vt[c0]=Vt[ed]=Vt[r0]=Vt[o0]=Vt[d0]=Vt[p0]=Vt[h0]=Vt[u0]=Vt[m0]=Vt[Zc]=Vt[i0]=Vt[ru]=Vt[a0]=Vt[td]=Vt[s0]=Vt[l0]=Vt[f0]=Vt[g0]=Vt[b0]=Vt[v0]=!0;Vt[Ik]=Vt[eu]=Vt[Kh]=!1;var Pk=typeof global=="object"&&global&&global.Object===Object&&global,Hk=typeof self=="object"&&self&&self.Object===Object&&self,Mn=Pk||Hk||Function("return this")(),x0=typeof ll=="object"&&ll&&!ll.nodeType&&ll,Uv=x0&&typeof Ba=="object"&&Ba&&!Ba.nodeType&&Ba,Fk=Uv&&Uv.exports===x0;function Bk(i,r){return i.set(r[0],r[1]),i}function Vk(i,r){return i.add(r),i}function Uk(i,r){for(var t=-1,o=i?i.length:0;++t<o&&r(i[t],t,i)!==!1;);return i}function jk(i,r){for(var t=-1,o=r.length,n=i.length;++t<o;)i[n+t]=r[t];return i}function y0(i,r,t,o){var n=-1,a=i?i.length:0;for(o&&a&&(t=i[++n]);++n<a;)t=r(t,i[n],n,i);return t}function Gk(i,r){for(var t=-1,o=Array(i);++t<i;)o[t]=r(t);return o}function Wk(i,r){return i?.[r]}function z0(i){var r=!1;if(i!=null&&typeof i.toString!="function")try{r=!!(i+"")}catch{}return r}function jv(i){var r=-1,t=Array(i.size);return i.forEach(function(o,n){t[++r]=[n,o]}),t}function ou(i,r){return function(t){return i(r(t))}}function Gv(i){var r=-1,t=Array(i.size);return i.forEach(function(o){t[++r]=o}),t}var Kk=Array.prototype,Yk=Function.prototype,rd=Object.prototype,Wh=Mn["__core-js_shared__"],Wv=(function(){var i=/[^.]+$/.exec(Wh&&Wh.keys&&Wh.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),w0=Yk.toString,di=rd.hasOwnProperty,od=rd.toString,Xk=RegExp("^"+w0.call(di).replace(Nk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kv=Fk?Mn.Buffer:void 0,Yv=Mn.Symbol,Xv=Mn.Uint8Array,Qk=ou(Object.getPrototypeOf,Object),Jk=Object.create,Zk=rd.propertyIsEnumerable,t5=Kk.splice,Qv=Object.getOwnPropertySymbols,e5=Kv?Kv.isBuffer:void 0,r5=ou(Object.keys,Object),Yh=ja(Mn,"DataView"),cl=ja(Mn,"Map"),Xh=ja(Mn,"Promise"),Qh=ja(Mn,"Set"),Jh=ja(Mn,"WeakMap"),dl=ja(Object,"create"),o5=na(Yh),n5=na(cl),i5=na(Xh),a5=na(Qh),s5=na(Jh),Jv=Yv?Yv.prototype:void 0,Zv=Jv?Jv.valueOf:void 0;function oa(i){var r=-1,t=i?i.length:0;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function l5(){this.__data__=dl?dl(null):{}}function c5(i){return this.has(i)&&delete this.__data__[i]}function d5(i){var r=this.__data__;if(dl){var t=r[i];return t===t0?void 0:t}return di.call(r,i)?r[i]:void 0}function p5(i){var r=this.__data__;return dl?r[i]!==void 0:di.call(r,i)}function h5(i,r){var t=this.__data__;return t[i]=dl&&r===void 0?t0:r,this}oa.prototype.clear=l5;oa.prototype.delete=c5;oa.prototype.get=d5;oa.prototype.has=p5;oa.prototype.set=h5;function In(i){var r=-1,t=i?i.length:0;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function u5(){this.__data__=[]}function m5(i){var r=this.__data__,t=nd(r,i);if(t<0)return!1;var o=r.length-1;return t==o?r.pop():t5.call(r,t,1),!0}function f5(i){var r=this.__data__,t=nd(r,i);return t<0?void 0:r[t][1]}function g5(i){return nd(this.__data__,i)>-1}function b5(i,r){var t=this.__data__,o=nd(t,i);return o<0?t.push([i,r]):t[o][1]=r,this}In.prototype.clear=u5;In.prototype.delete=m5;In.prototype.get=f5;In.prototype.has=g5;In.prototype.set=b5;function Va(i){var r=-1,t=i?i.length:0;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function v5(){this.__data__={hash:new oa,map:new(cl||In),string:new oa}}function x5(i){return id(this,i).delete(i)}function y5(i){return id(this,i).get(i)}function z5(i){return id(this,i).has(i)}function w5(i,r){return id(this,i).set(i,r),this}Va.prototype.clear=v5;Va.prototype.delete=x5;Va.prototype.get=y5;Va.prototype.has=z5;Va.prototype.set=w5;function Ua(i){this.__data__=new In(i)}function _5(){this.__data__=new In}function k5(i){return this.__data__.delete(i)}function C5(i){return this.__data__.get(i)}function S5(i){return this.__data__.has(i)}function E5(i,r){var t=this.__data__;if(t instanceof In){var o=t.__data__;if(!cl||o.length<Lk-1)return o.push([i,r]),this;t=this.__data__=new Va(o)}return t.set(i,r),this}Ua.prototype.clear=_5;Ua.prototype.delete=k5;Ua.prototype.get=C5;Ua.prototype.has=S5;Ua.prototype.set=E5;function T5(i,r){var t=iu(i)||J5(i)?Gk(i.length,String):[],o=t.length,n=!!o;for(var a in i)(r||di.call(i,a))&&!(n&&(a=="length"||K5(a,o)))&&t.push(a);return t}function _0(i,r,t){var o=i[r];(!(di.call(i,r)&&E0(o,t))||t===void 0&&!(r in i))&&(i[r]=t)}function nd(i,r){for(var t=i.length;t--;)if(E0(i[t][0],r))return t;return-1}function A5(i,r){return i&&k0(r,au(r),i)}function Zh(i,r,t,o,n,a,s){var l;if(o&&(l=a?o(i,n,a,s):o(i)),l!==void 0)return l;if(!ad(i))return i;var d=iu(i);if(d){if(l=j5(i),!r)return B5(i,l)}else{var h=ra(i),m=h==eu||h==n0;if(t4(i))return N5(i,r);if(h==ru||h==tu||m&&!a){if(z0(i))return a?i:{};if(l=G5(m?{}:i),!r)return V5(i,A5(l,i))}else{if(!Vt[h])return a?i:{};l=W5(i,h,Zh,r)}}s||(s=new Ua);var f=s.get(i);if(f)return f;if(s.set(i,l),!d)var b=t?U5(i):au(i);return Uk(b||i,function(g,v){b&&(v=g,g=i[v]),_0(l,v,Zh(g,r,t,o,v,i,s))}),l}function $5(i){return ad(i)?Jk(i):{}}function q5(i,r,t){var o=r(i);return iu(i)?o:jk(o,t(i))}function L5(i){return od.call(i)}function M5(i){if(!ad(i)||X5(i))return!1;var r=A0(i)||z0(i)?Xk:Rk;return r.test(na(i))}function I5(i){if(!S0(i))return r5(i);var r=[];for(var t in Object(i))di.call(i,t)&&t!="constructor"&&r.push(t);return r}function N5(i,r){if(r)return i.slice();var t=new i.constructor(i.length);return i.copy(t),t}function nu(i){var r=new i.constructor(i.byteLength);return new Xv(r).set(new Xv(i)),r}function D5(i,r){var t=r?nu(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)}function R5(i,r,t){var o=r?t(jv(i),!0):jv(i);return y0(o,Bk,new i.constructor)}function O5(i){var r=new i.constructor(i.source,Dk.exec(i));return r.lastIndex=i.lastIndex,r}function P5(i,r,t){var o=r?t(Gv(i),!0):Gv(i);return y0(o,Vk,new i.constructor)}function H5(i){return Zv?Object(Zv.call(i)):{}}function F5(i,r){var t=r?nu(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}function B5(i,r){var t=-1,o=i.length;for(r||(r=Array(o));++t<o;)r[t]=i[t];return r}function k0(i,r,t,o){t||(t={});for(var n=-1,a=r.length;++n<a;){var s=r[n],l=o?o(t[s],i[s],s,t,i):void 0;_0(t,s,l===void 0?i[s]:l)}return t}function V5(i,r){return k0(i,C0(i),r)}function U5(i){return q5(i,au,C0)}function id(i,r){var t=i.__data__;return Y5(r)?t[typeof r=="string"?"string":"hash"]:t.map}function ja(i,r){var t=Wk(i,r);return M5(t)?t:void 0}var C0=Qv?ou(Qv,Object):o4,ra=L5;(Yh&&ra(new Yh(new ArrayBuffer(1)))!=ed||cl&&ra(new cl)!=Zc||Xh&&ra(Xh.resolve())!=Vv||Qh&&ra(new Qh)!=td||Jh&&ra(new Jh)!=Kh)&&(ra=function(i){var r=od.call(i),t=r==ru?i.constructor:void 0,o=t?na(t):void 0;if(o)switch(o){case o5:return ed;case n5:return Zc;case i5:return Vv;case a5:return td;case s5:return Kh}return r});function j5(i){var r=i.length,t=i.constructor(r);return r&&typeof i[0]=="string"&&di.call(i,"index")&&(t.index=i.index,t.input=i.input),t}function G5(i){return typeof i.constructor=="function"&&!S0(i)?$5(Qk(i)):{}}function W5(i,r,t,o){var n=i.constructor;switch(r){case c0:return nu(i);case r0:case o0:return new n(+i);case ed:return D5(i,o);case d0:case p0:case h0:case u0:case m0:case f0:case g0:case b0:case v0:return F5(i,o);case Zc:return R5(i,o,t);case i0:case s0:return new n(i);case a0:return O5(i);case td:return P5(i,o,t);case l0:return H5(i)}}function K5(i,r){return r=r??e0,!!r&&(typeof i=="number"||Ok.test(i))&&i>-1&&i%1==0&&i<r}function Y5(i){var r=typeof i;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?i!=="__proto__":i===null}function X5(i){return!!Wv&&Wv in i}function S0(i){var r=i&&i.constructor,t=typeof r=="function"&&r.prototype||rd;return i===t}function na(i){if(i!=null){try{return w0.call(i)}catch{}try{return i+""}catch{}}return""}function Q5(i){return Zh(i,!0,!0)}function E0(i,r){return i===r||i!==i&&r!==r}function J5(i){return Z5(i)&&di.call(i,"callee")&&(!Zk.call(i,"callee")||od.call(i)==tu)}var iu=Array.isArray;function T0(i){return i!=null&&e4(i.length)&&!A0(i)}function Z5(i){return r4(i)&&T0(i)}var t4=e5||n4;function A0(i){var r=ad(i)?od.call(i):"";return r==eu||r==n0}function e4(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=e0}function ad(i){var r=typeof i;return!!i&&(r=="object"||r=="function")}function r4(i){return!!i&&typeof i=="object"}function au(i){return T0(i)?T5(i):I5(i)}function o4(){return[]}function n4(){return!1}Ba.exports=Q5});var xu=_n((pl,Wa)=>{var i4=200,vu="__lodash_hash_undefined__",md=1,F0=2,B0=9007199254740991,sd="[object Arguments]",pu="[object Array]",a4="[object AsyncFunction]",V0="[object Boolean]",U0="[object Date]",j0="[object Error]",G0="[object Function]",s4="[object GeneratorFunction]",ld="[object Map]",W0="[object Number]",l4="[object Null]",Ga="[object Object]",$0="[object Promise]",c4="[object Proxy]",K0="[object RegExp]",cd="[object Set]",Y0="[object String]",d4="[object Symbol]",p4="[object Undefined]",hu="[object WeakMap]",X0="[object ArrayBuffer]",dd="[object DataView]",h4="[object Float32Array]",u4="[object Float64Array]",m4="[object Int8Array]",f4="[object Int16Array]",g4="[object Int32Array]",b4="[object Uint8Array]",v4="[object Uint8ClampedArray]",x4="[object Uint16Array]",y4="[object Uint32Array]",z4=/[\\^$.*+?()[\]{}|]/g,w4=/^\[object .+?Constructor\]$/,_4=/^(?:0|[1-9]\d*)$/,Kt={};Kt[h4]=Kt[u4]=Kt[m4]=Kt[f4]=Kt[g4]=Kt[b4]=Kt[v4]=Kt[x4]=Kt[y4]=!0;Kt[sd]=Kt[pu]=Kt[X0]=Kt[V0]=Kt[dd]=Kt[U0]=Kt[j0]=Kt[G0]=Kt[ld]=Kt[W0]=Kt[Ga]=Kt[K0]=Kt[cd]=Kt[Y0]=Kt[hu]=!1;var Q0=typeof global=="object"&&global&&global.Object===Object&&global,k4=typeof self=="object"&&self&&self.Object===Object&&self,Nn=Q0||k4||Function("return this")(),J0=typeof pl=="object"&&pl&&!pl.nodeType&&pl,q0=J0&&typeof Wa=="object"&&Wa&&!Wa.nodeType&&Wa,Z0=q0&&q0.exports===J0,lu=Z0&&Q0.process,L0=(function(){try{return lu&&lu.binding&&lu.binding("util")}catch{}})(),M0=L0&&L0.isTypedArray;function C4(i,r){for(var t=-1,o=i==null?0:i.length,n=0,a=[];++t<o;){var s=i[t];r(s,t,i)&&(a[n++]=s)}return a}function S4(i,r){for(var t=-1,o=r.length,n=i.length;++t<o;)i[n+t]=r[t];return i}function E4(i,r){for(var t=-1,o=i==null?0:i.length;++t<o;)if(r(i[t],t,i))return!0;return!1}function T4(i,r){for(var t=-1,o=Array(i);++t<i;)o[t]=r(t);return o}function A4(i){return function(r){return i(r)}}function $4(i,r){return i.has(r)}function q4(i,r){return i?.[r]}function L4(i){var r=-1,t=Array(i.size);return i.forEach(function(o,n){t[++r]=[n,o]}),t}function M4(i,r){return function(t){return i(r(t))}}function I4(i){var r=-1,t=Array(i.size);return i.forEach(function(o){t[++r]=o}),t}var N4=Array.prototype,D4=Function.prototype,fd=Object.prototype,cu=Nn["__core-js_shared__"],t1=D4.toString,pn=fd.hasOwnProperty,I0=(function(){var i=/[^.]+$/.exec(cu&&cu.keys&&cu.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),e1=fd.toString,R4=RegExp("^"+t1.call(pn).replace(z4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N0=Z0?Nn.Buffer:void 0,pd=Nn.Symbol,D0=Nn.Uint8Array,r1=fd.propertyIsEnumerable,O4=N4.splice,ia=pd?pd.toStringTag:void 0,R0=Object.getOwnPropertySymbols,P4=N0?N0.isBuffer:void 0,H4=M4(Object.keys,Object),uu=Ka(Nn,"DataView"),hl=Ka(Nn,"Map"),mu=Ka(Nn,"Promise"),fu=Ka(Nn,"Set"),gu=Ka(Nn,"WeakMap"),ul=Ka(Object,"create"),F4=la(uu),B4=la(hl),V4=la(mu),U4=la(fu),j4=la(gu),O0=pd?pd.prototype:void 0,du=O0?O0.valueOf:void 0;function aa(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function G4(){this.__data__=ul?ul(null):{},this.size=0}function W4(i){var r=this.has(i)&&delete this.__data__[i];return this.size-=r?1:0,r}function K4(i){var r=this.__data__;if(ul){var t=r[i];return t===vu?void 0:t}return pn.call(r,i)?r[i]:void 0}function Y4(i){var r=this.__data__;return ul?r[i]!==void 0:pn.call(r,i)}function X4(i,r){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=ul&&r===void 0?vu:r,this}aa.prototype.clear=G4;aa.prototype.delete=W4;aa.prototype.get=K4;aa.prototype.has=Y4;aa.prototype.set=X4;function Dn(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function Q4(){this.__data__=[],this.size=0}function J4(i){var r=this.__data__,t=gd(r,i);if(t<0)return!1;var o=r.length-1;return t==o?r.pop():O4.call(r,t,1),--this.size,!0}function Z4(i){var r=this.__data__,t=gd(r,i);return t<0?void 0:r[t][1]}function t8(i){return gd(this.__data__,i)>-1}function e8(i,r){var t=this.__data__,o=gd(t,i);return o<0?(++this.size,t.push([i,r])):t[o][1]=r,this}Dn.prototype.clear=Q4;Dn.prototype.delete=J4;Dn.prototype.get=Z4;Dn.prototype.has=t8;Dn.prototype.set=e8;function sa(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}function r8(){this.size=0,this.__data__={hash:new aa,map:new(hl||Dn),string:new aa}}function o8(i){var r=bd(this,i).delete(i);return this.size-=r?1:0,r}function n8(i){return bd(this,i).get(i)}function i8(i){return bd(this,i).has(i)}function a8(i,r){var t=bd(this,i),o=t.size;return t.set(i,r),this.size+=t.size==o?0:1,this}sa.prototype.clear=r8;sa.prototype.delete=o8;sa.prototype.get=n8;sa.prototype.has=i8;sa.prototype.set=a8;function hd(i){var r=-1,t=i==null?0:i.length;for(this.__data__=new sa;++r<t;)this.add(i[r])}function s8(i){return this.__data__.set(i,vu),this}function l8(i){return this.__data__.has(i)}hd.prototype.add=hd.prototype.push=s8;hd.prototype.has=l8;function hi(i){var r=this.__data__=new Dn(i);this.size=r.size}function c8(){this.__data__=new Dn,this.size=0}function d8(i){var r=this.__data__,t=r.delete(i);return this.size=r.size,t}function p8(i){return this.__data__.get(i)}function h8(i){return this.__data__.has(i)}function u8(i,r){var t=this.__data__;if(t instanceof Dn){var o=t.__data__;if(!hl||o.length<i4-1)return o.push([i,r]),this.size=++t.size,this;t=this.__data__=new sa(o)}return t.set(i,r),this.size=t.size,this}hi.prototype.clear=c8;hi.prototype.delete=d8;hi.prototype.get=p8;hi.prototype.has=h8;hi.prototype.set=u8;function m8(i,r){var t=ud(i),o=!t&&A8(i),n=!t&&!o&&bu(i),a=!t&&!o&&!n&&c1(i),s=t||o||n||a,l=s?T4(i.length,String):[],d=l.length;for(var h in i)(r||pn.call(i,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||k8(h,d)))&&l.push(h);return l}function gd(i,r){for(var t=i.length;t--;)if(i1(i[t][0],r))return t;return-1}function f8(i,r,t){var o=r(i);return ud(i)?o:S4(o,t(i))}function fl(i){return i==null?i===void 0?p4:l4:ia&&ia in Object(i)?w8(i):T8(i)}function P0(i){return ml(i)&&fl(i)==sd}function o1(i,r,t,o,n){return i===r?!0:i==null||r==null||!ml(i)&&!ml(r)?i!==i&&r!==r:g8(i,r,t,o,o1,n)}function g8(i,r,t,o,n,a){var s=ud(i),l=ud(r),d=s?pu:pi(i),h=l?pu:pi(r);d=d==sd?Ga:d,h=h==sd?Ga:h;var m=d==Ga,f=h==Ga,b=d==h;if(b&&bu(i)){if(!bu(r))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new hi),s||c1(i)?n1(i,r,t,o,n,a):y8(i,r,d,t,o,n,a);if(!(t&md)){var g=m&&pn.call(i,"__wrapped__"),v=f&&pn.call(r,"__wrapped__");if(g||v){var x=g?i.value():i,_=v?r.value():r;return a||(a=new hi),n(x,_,t,o,a)}}return b?(a||(a=new hi),z8(i,r,t,o,n,a)):!1}function b8(i){if(!l1(i)||S8(i))return!1;var r=a1(i)?R4:w4;return r.test(la(i))}function v8(i){return ml(i)&&s1(i.length)&&!!Kt[fl(i)]}function x8(i){if(!E8(i))return H4(i);var r=[];for(var t in Object(i))pn.call(i,t)&&t!="constructor"&&r.push(t);return r}function n1(i,r,t,o,n,a){var s=t&md,l=i.length,d=r.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(i);if(h&&a.get(r))return h==r;var m=-1,f=!0,b=t&F0?new hd:void 0;for(a.set(i,r),a.set(r,i);++m<l;){var g=i[m],v=r[m];if(o)var x=s?o(v,g,m,r,i,a):o(g,v,m,i,r,a);if(x!==void 0){if(x)continue;f=!1;break}if(b){if(!E4(r,function(_,k){if(!$4(b,k)&&(g===_||n(g,_,t,o,a)))return b.push(k)})){f=!1;break}}else if(!(g===v||n(g,v,t,o,a))){f=!1;break}}return a.delete(i),a.delete(r),f}function y8(i,r,t,o,n,a,s){switch(t){case dd:if(i.byteLength!=r.byteLength||i.byteOffset!=r.byteOffset)return!1;i=i.buffer,r=r.buffer;case X0:return!(i.byteLength!=r.byteLength||!a(new D0(i),new D0(r)));case V0:case U0:case W0:return i1(+i,+r);case j0:return i.name==r.name&&i.message==r.message;case K0:case Y0:return i==r+"";case ld:var l=L4;case cd:var d=o&md;if(l||(l=I4),i.size!=r.size&&!d)return!1;var h=s.get(i);if(h)return h==r;o|=F0,s.set(i,r);var m=n1(l(i),l(r),o,n,a,s);return s.delete(i),m;case d4:if(du)return du.call(i)==du.call(r)}return!1}function z8(i,r,t,o,n,a){var s=t&md,l=H0(i),d=l.length,h=H0(r),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in r:pn.call(r,b)))return!1}var g=a.get(i);if(g&&a.get(r))return g==r;var v=!0;a.set(i,r),a.set(r,i);for(var x=s;++f<d;){b=l[f];var _=i[b],k=r[b];if(o)var O=s?o(k,_,b,r,i,a):o(_,k,b,i,r,a);if(!(O===void 0?_===k||n(_,k,t,o,a):O)){v=!1;break}x||(x=b=="constructor")}if(v&&!x){var j=i.constructor,I=r.constructor;j!=I&&"constructor"in i&&"constructor"in r&&!(typeof j=="function"&&j instanceof j&&typeof I=="function"&&I instanceof I)&&(v=!1)}return a.delete(i),a.delete(r),v}function H0(i){return f8(i,L8,_8)}function bd(i,r){var t=i.__data__;return C8(r)?t[typeof r=="string"?"string":"hash"]:t.map}function Ka(i,r){var t=q4(i,r);return b8(t)?t:void 0}function w8(i){var r=pn.call(i,ia),t=i[ia];try{i[ia]=void 0;var o=!0}catch{}var n=e1.call(i);return o&&(r?i[ia]=t:delete i[ia]),n}var _8=R0?function(i){return i==null?[]:(i=Object(i),C4(R0(i),function(r){return r1.call(i,r)}))}:M8,pi=fl;(uu&&pi(new uu(new ArrayBuffer(1)))!=dd||hl&&pi(new hl)!=ld||mu&&pi(mu.resolve())!=$0||fu&&pi(new fu)!=cd||gu&&pi(new gu)!=hu)&&(pi=function(i){var r=fl(i),t=r==Ga?i.constructor:void 0,o=t?la(t):"";if(o)switch(o){case F4:return dd;case B4:return ld;case V4:return $0;case U4:return cd;case j4:return hu}return r});function k8(i,r){return r=r??B0,!!r&&(typeof i=="number"||_4.test(i))&&i>-1&&i%1==0&&i<r}function C8(i){var r=typeof i;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?i!=="__proto__":i===null}function S8(i){return!!I0&&I0 in i}function E8(i){var r=i&&i.constructor,t=typeof r=="function"&&r.prototype||fd;return i===t}function T8(i){return e1.call(i)}function la(i){if(i!=null){try{return t1.call(i)}catch{}try{return i+""}catch{}}return""}function i1(i,r){return i===r||i!==i&&r!==r}var A8=P0((function(){return arguments})())?P0:function(i){return ml(i)&&pn.call(i,"callee")&&!r1.call(i,"callee")},ud=Array.isArray;function $8(i){return i!=null&&s1(i.length)&&!a1(i)}var bu=P4||I8;function q8(i,r){return o1(i,r)}function a1(i){if(!l1(i))return!1;var r=fl(i);return r==G0||r==s4||r==a4||r==c4}function s1(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=B0}function l1(i){var r=typeof i;return i!=null&&(r=="object"||r=="function")}function ml(i){return i!=null&&typeof i=="object"}var c1=M0?A4(M0):v8;function L8(i){return $8(i)?m8(i):x8(i)}function M8(){return[]}function I8(){return!1}Wa.exports=q8});var d1=_n(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var N8=su(),D8=xu(),yu;(function(i){function r(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let d=N8(s);l||(d=Object.keys(d).reduce((h,m)=>(d[m]!=null&&(h[m]=d[m]),h),{}));for(let h in a)a[h]!==void 0&&s[h]===void 0&&(d[h]=a[h]);return Object.keys(d).length>0?d:void 0}i.compose=r;function t(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let l=Object.keys(a).concat(Object.keys(s)).reduce((d,h)=>(D8(a[h],s[h])||(d[h]=s[h]===void 0?null:s[h]),d),{});return Object.keys(l).length>0?l:void 0}i.diff=t;function o(a={},s={}){a=a||{};let l=Object.keys(s).reduce((d,h)=>(s[h]!==a[h]&&a[h]!==void 0&&(d[h]=s[h]),d),{});return Object.keys(a).reduce((d,h)=>(a[h]!==s[h]&&s[h]===void 0&&(d[h]=null),d),l)}i.invert=o;function n(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;let d=Object.keys(s).reduce((h,m)=>(a[m]===void 0&&(h[m]=s[m]),h),{});return Object.keys(d).length>0?d:void 0}i.transform=n})(yu||(yu={}));zu.default=yu});var ku=_n(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var wu;(function(i){function r(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}i.length=r})(wu||(wu={}));_u.default=wu});var h1=_n(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var p1=ku(),Cu=class{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);let t=this.ops[this.index];if(t){let o=this.offset,n=p1.default.length(t);if(r>=n-o?(r=n-o,this.index+=1,this.offset=0):this.offset+=r,typeof t.delete=="number")return{delete:r};{let a={};return t.attributes&&(a.attributes=t.attributes),typeof t.retain=="number"?a.retain=r:typeof t.retain=="object"&&t.retain!==null?a.retain=t.retain:typeof t.insert=="string"?a.insert=t.insert.substr(o,r):a.insert=t.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?p1.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let r=this.offset,t=this.index,o=this.next(),n=this.ops.slice(this.index);return this.offset=r,this.index=t,[o].concat(n)}}else return[]}};Su.default=Cu});var Or=_n((On,xd)=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.AttributeMap=On.OpIterator=On.Op=void 0;var vd=Bv(),R8=su(),Eu=xu(),ca=d1();On.AttributeMap=ca.default;var Rn=ku();On.Op=Rn.default;var fo=h1();On.OpIterator=fo.default;var O8="\0",u1=(i,r)=>{if(typeof i!="object"||i===null)throw new Error(`cannot retain a ${typeof i}`);if(typeof r!="object"||r===null)throw new Error(`cannot retain a ${typeof r}`);let t=Object.keys(i)[0];if(!t||t!==Object.keys(r)[0])throw new Error(`embed types not matched: ${t} != ${Object.keys(r)[0]}`);return[t,i[t],r[t]]},Pn=class i{constructor(r){Array.isArray(r)?this.ops=r:r!=null&&Array.isArray(r.ops)?this.ops=r.ops:this.ops=[]}static registerEmbed(r,t){this.handlers[r]=t}static unregisterEmbed(r){delete this.handlers[r]}static getHandler(r){let t=this.handlers[r];if(!t)throw new Error(`no handlers for embed type "${r}"`);return t}insert(r,t){let o={};return typeof r=="string"&&r.length===0?this:(o.insert=r,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(o.attributes=t),this.push(o))}delete(r){return r<=0?this:this.push({delete:r})}retain(r,t){if(typeof r=="number"&&r<=0)return this;let o={retain:r};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(o.attributes=t),this.push(o)}push(r){let t=this.ops.length,o=this.ops[t-1];if(r=R8(r),typeof o=="object"){if(typeof r.delete=="number"&&typeof o.delete=="number")return this.ops[t-1]={delete:o.delete+r.delete},this;if(typeof o.delete=="number"&&r.insert!=null&&(t-=1,o=this.ops[t-1],typeof o!="object"))return this.ops.unshift(r),this;if(Eu(r.attributes,o.attributes)){if(typeof r.insert=="string"&&typeof o.insert=="string")return this.ops[t-1]={insert:o.insert+r.insert},typeof r.attributes=="object"&&(this.ops[t-1].attributes=r.attributes),this;if(typeof r.retain=="number"&&typeof o.retain=="number")return this.ops[t-1]={retain:o.retain+r.retain},typeof r.attributes=="object"&&(this.ops[t-1].attributes=r.attributes),this}}return t===this.ops.length?this.ops.push(r):this.ops.splice(t,0,r),this}chop(){let r=this.ops[this.ops.length-1];return r&&typeof r.retain=="number"&&!r.attributes&&this.ops.pop(),this}filter(r){return this.ops.filter(r)}forEach(r){this.ops.forEach(r)}map(r){return this.ops.map(r)}partition(r){let t=[],o=[];return this.forEach(n=>{(r(n)?t:o).push(n)}),[t,o]}reduce(r,t){return this.ops.reduce(r,t)}changeLength(){return this.reduce((r,t)=>t.insert?r+Rn.default.length(t):t.delete?r-t.delete:r,0)}length(){return this.reduce((r,t)=>r+Rn.default.length(t),0)}slice(r=0,t=1/0){let o=[],n=new fo.default(this.ops),a=0;for(;a<t&&n.hasNext();){let s;a<r?s=n.next(r-a):(s=n.next(t-a),o.push(s)),a+=Rn.default.length(s)}return new i(o)}compose(r){let t=new fo.default(this.ops),o=new fo.default(r.ops),n=[],a=o.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&&o.next(a.retain-l)}let s=new i(n);for(;t.hasNext()||o.hasNext();)if(o.peekType()==="insert")s.push(o.next());else if(t.peekType()==="delete")s.push(t.next());else{let l=Math.min(t.peekLength(),o.peekLength()),d=t.next(l),h=o.next(l);if(h.retain){let m={};if(typeof d.retain=="number")m.retain=typeof h.retain=="number"?l:h.retain;else if(typeof h.retain=="number")d.retain==null?m.insert=d.insert:m.retain=d.retain;else{let b=d.retain==null?"insert":"retain",[g,v,x]=u1(d[b],h.retain),_=i.getHandler(g);m[b]={[g]:_.compose(v,x,b==="retain")}}let f=ca.default.compose(d.attributes,h.attributes,typeof d.retain=="number");if(f&&(m.attributes=f),s.push(m),!o.hasNext()&&Eu(s.ops[s.ops.length-1],m)){let b=new i(t.rest());return s.concat(b).chop()}}else typeof h.delete=="number"&&(typeof d.retain=="number"||typeof d.retain=="object"&&d.retain!==null)&&s.push(h)}return s.chop()}concat(r){let t=new i(this.ops.slice());return r.ops.length>0&&(t.push(r.ops[0]),t.ops=t.ops.concat(r.ops.slice(1))),t}diff(r,t){if(this.ops===r.ops)return new i;let o=[this,r].map(d=>d.map(h=>{if(h.insert!=null)return typeof h.insert=="string"?h.insert:O8;let m=d===r?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")),n=new i,a=vd(o[0],o[1],t,!0),s=new fo.default(this.ops),l=new fo.default(r.ops);return a.forEach(d=>{let h=d[1].length;for(;h>0;){let m=0;switch(d[0]){case vd.INSERT:m=Math.min(l.peekLength(),h),n.push(l.next(m));break;case vd.DELETE:m=Math.min(h,s.peekLength()),s.next(m),n.delete(m);break;case vd.EQUAL:m=Math.min(s.peekLength(),l.peekLength(),h);let f=s.next(m),b=l.next(m);Eu(f.insert,b.insert)?n.retain(m,ca.default.diff(f.attributes,b.attributes)):n.push(b).delete(m);break}h-=m}}),n.chop()}eachLine(r,t=`
2
2
  `){let o=new fo.default(this.ops),n=new i,a=0;for(;o.hasNext();){if(o.peekType()!=="insert")return;let s=o.peek(),l=Rn.default.length(s)-o.peekLength(),d=typeof s.insert=="string"?s.insert.indexOf(t,l)-l:-1;if(d<0)n.push(o.next());else if(d>0)n.push(o.next(d));else{if(r(n,o.next(1).attributes||{},a)===!1)return;a+=1,n=new i}}n.length()>0&&r(n,{},a)}invert(r){let t=new i;return this.reduce((o,n)=>{if(n.insert)t.delete(Rn.default.length(n));else{if(typeof n.retain=="number"&&n.attributes==null)return t.retain(n.retain),o+n.retain;if(n.delete||typeof n.retain=="number"){let a=n.delete||n.retain;return r.slice(o,o+a).forEach(l=>{n.delete?t.push(l):n.retain&&n.attributes&&t.retain(Rn.default.length(l),ca.default.invert(n.attributes,l.attributes))}),o+a}else if(typeof n.retain=="object"&&n.retain!==null){let a=r.slice(o,o+1),s=new fo.default(a.ops).next(),[l,d,h]=u1(n.retain,s.insert),m=i.getHandler(l);return t.retain({[l]:m.invert(d,h)},ca.default.invert(n.attributes,s.attributes)),o+1}}return o},0),t.chop()}transform(r,t=!1){if(t=!!t,typeof r=="number")return this.transformPosition(r,t);let o=r,n=new fo.default(this.ops),a=new fo.default(o.ops),s=new i;for(;n.hasNext()||a.hasNext();)if(n.peekType()==="insert"&&(t||a.peekType()!=="insert"))s.retain(Rn.default.length(n.next()));else if(a.peekType()==="insert")s.push(a.next());else{let l=Math.min(n.peekLength(),a.peekLength()),d=n.next(l),h=a.next(l);if(d.delete)continue;if(h.delete)s.push(h);else{let m=d.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=i.getHandler(g);v&&(b={[g]:v.transform(m[g],f[g],t)})}}s.retain(b,ca.default.transform(d.attributes,h.attributes,t))}}return s.chop()}transformPosition(r,t=!1){t=!!t;let o=new fo.default(this.ops),n=0;for(;o.hasNext()&&n<=r;){let a=o.peekLength(),s=o.peekType();if(o.next(),s==="delete"){r-=Math.min(a,r-n);continue}else s==="insert"&&(n<r||!t)&&(r+=a);n+=a}return r}};Pn.Op=Rn.default;Pn.OpIterator=fo.default;Pn.AttributeMap=ca.default;Pn.handlers={};On.default=Pn;typeof xd=="object"&&(xd.exports=Pn,xd.exports.default=Pn)});var Ay=_n((cat,Gu)=>{"use strict";var yE=Object.prototype.hasOwnProperty,Sr="~";function Sl(){}Object.create&&(Sl.prototype=Object.create(null),new Sl().__proto__||(Sr=!1));function zE(i,r,t){this.fn=i,this.context=r,this.once=t||!1}function Ty(i,r,t,o,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var a=new zE(t,o||i,n),s=Sr?Sr+r:r;return i._events[s]?i._events[s].fn?i._events[s]=[i._events[s],a]:i._events[s].push(a):(i._events[s]=a,i._eventsCount++),i}function Gd(i,r){--i._eventsCount===0?i._events=new Sl:delete i._events[r]}function mr(){this._events=new Sl,this._eventsCount=0}mr.prototype.eventNames=function(){var r=[],t,o;if(this._eventsCount===0)return r;for(o in t=this._events)yE.call(t,o)&&r.push(Sr?o.slice(1):o);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r};mr.prototype.listeners=function(r){var t=Sr?Sr+r:r,o=this._events[t];if(!o)return[];if(o.fn)return[o.fn];for(var n=0,a=o.length,s=new Array(a);n<a;n++)s[n]=o[n].fn;return s};mr.prototype.listenerCount=function(r){var t=Sr?Sr+r:r,o=this._events[t];return o?o.fn?1:o.length:0};mr.prototype.emit=function(r,t,o,n,a,s){var l=Sr?Sr+r:r;if(!this._events[l])return!1;var d=this._events[l],h=arguments.length,m,f;if(d.fn){switch(d.once&&this.removeListener(r,d.fn,void 0,!0),h){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,o),!0;case 4:return d.fn.call(d.context,t,o,n),!0;case 5:return d.fn.call(d.context,t,o,n,a),!0;case 6:return d.fn.call(d.context,t,o,n,a,s),!0}for(f=1,m=new Array(h-1);f<h;f++)m[f-1]=arguments[f];d.fn.apply(d.context,m)}else{var b=d.length,g;for(f=0;f<b;f++)switch(d[f].once&&this.removeListener(r,d[f].fn,void 0,!0),h){case 1:d[f].fn.call(d[f].context);break;case 2:d[f].fn.call(d[f].context,t);break;case 3:d[f].fn.call(d[f].context,t,o);break;case 4:d[f].fn.call(d[f].context,t,o,n);break;default:if(!m)for(g=1,m=new Array(h-1);g<h;g++)m[g-1]=arguments[g];d[f].fn.apply(d[f].context,m)}}return!0};mr.prototype.on=function(r,t,o){return Ty(this,r,t,o,!1)};mr.prototype.once=function(r,t,o){return Ty(this,r,t,o,!0)};mr.prototype.removeListener=function(r,t,o,n){var a=Sr?Sr+r:r;if(!this._events[a])return this;if(!t)return Gd(this,a),this;var s=this._events[a];if(s.fn)s.fn===t&&(!n||s.once)&&(!o||s.context===o)&&Gd(this,a);else{for(var l=0,d=[],h=s.length;l<h;l++)(s[l].fn!==t||n&&!s[l].once||o&&s[l].context!==o)&&d.push(s[l]);d.length?this._events[a]=d.length===1?d[0]:d:Gd(this,a)}return this};mr.prototype.removeAllListeners=function(r){var t;return r?(t=Sr?Sr+r:r,this._events[t]&&Gd(this,t)):(this._events=new Sl,this._eventsCount=0),this};mr.prototype.off=mr.prototype.removeListener;mr.prototype.addListener=mr.prototype.on;mr.prefixed=Sr;mr.EventEmitter=mr;typeof Gu<"u"&&(Gu.exports=mr)});var Mm=_n((Zl,Lm)=>{(function(i,r){typeof Zl=="object"&&typeof Lm=="object"?Lm.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Zl=="object"?Zl.AirDatepicker=r():i.AirDatepicker=r()})(Zl,(function(){return(function(){"use strict";var i={d:function(D,y){for(var C in y)i.o(y,C)&&!i.o(D,C)&&Object.defineProperty(D,C,{enumerable:!0,get:y[C]})},o:function(D,y){return Object.prototype.hasOwnProperty.call(D,y)}},r={};i.d(r,{default:function(){return nt}});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-"},o={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(D){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof D=="string"?y.querySelector(D):D}function a(){let{tagName:D="div",className:y="",innerHtml:C="",id:z="",attrs:M={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=document.createElement(D);return y&&L.classList.add(...y.split(" ")),z&&(L.id=z),C&&(L.innerHTML=C),M&&s(L,M),L}function s(D,y){for(let[C,z]of Object.entries(y))z!==void 0&&D.setAttribute(C,z);return D}function l(D){return new Date(D.getFullYear(),D.getMonth()+1,0).getDate()}function d(D){let y=D.getHours(),{hours:C,dayPeriod:z}=h(y);return{year:D.getFullYear(),month:D.getMonth(),fullMonth:D.getMonth()+1<10?"0"+(D.getMonth()+1):D.getMonth()+1,date:D.getDate(),fullDate:D.getDate()<10?"0"+D.getDate():D.getDate(),day:D.getDay(),hours:y,fullHours:m(y),hours12:C,dayPeriod:z,fullHours12:m(C),minutes:D.getMinutes(),fullMinutes:D.getMinutes()<10?"0"+D.getMinutes():D.getMinutes()}}function h(D){return{dayPeriod:D>11?"pm":"am",hours:D%12==0?12:D%12}}function m(D){return D<10?"0"+D:D}function f(D){let y=10*Math.floor(D.getFullYear()/10);return[y,y+9]}function b(){let D=[];for(var y=arguments.length,C=new Array(y),z=0;z<y;z++)C[z]=arguments[z];return C.forEach((M=>{if(typeof M=="object")for(let L in M)M[L]&&D.push(L);else M&&D.push(M)})),D.join(" ")}function g(D,y){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.days;if(!D||!y)return!1;let z=d(D),M=d(y);return{[t.days]:z.date===M.date&&z.month===M.month&&z.year===M.year,[t.months]:z.month===M.month&&z.year===M.year,[t.years]:z.year===M.year}[C]}function v(D,y,C){let z=_(D,!1).getTime(),M=_(y,!1).getTime();return C?z>=M:z>M}function x(D,y){return!v(D,y,!0)}function _(D){let y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],C=new Date(D.getTime());return typeof y!="boolean"||y||(function(z){z.setHours(0,0,0,0)})(C),C}function k(D,y,C){D.length?D.forEach((z=>{z.addEventListener(y,C)})):D.addEventListener(y,C)}function O(D,y){return!(!D||D===document||D instanceof DocumentFragment)&&(D.matches(y)?D:O(D.parentNode,y))}function j(D,y,C){return D>C?C:D<y?y:D}function I(D){for(var y=arguments.length,C=new Array(y>1?y-1:0),z=1;z<y;z++)C[z-1]=arguments[z];return C.filter((M=>M)).forEach((M=>{for(let[L,$]of Object.entries(M))if($!==void 0&&$.toString()==="[object Object]"){let R=D[L]!==void 0?D[L].toString():void 0,B=$.toString(),Y=Array.isArray($)?[]:{};D[L]=D[L]?R!==B?Y:D[L]:Y,I(D[L],$)}else D[L]=$})),D}function w(D){let y=D;return D instanceof Date||(typeof D=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(D)&&(D+="T00:00:00"),y=new Date(D)),isNaN(y.getTime())&&(console.log(`Unable to convert value "${D}" to Date object`),y=!1),y}function E(D){let y="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+y+")("+D+")($|<|"+y+")","g")}function q(D,y,C){return(y=(function(z){var M=(function(L,$){if(typeof L!="object"||L===null)return L;var R=L[Symbol.toPrimitive];if(R!==void 0){var B=R.call(L,"string");if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)})(z);return typeof M=="symbol"?M:String(M)})(y))in D?Object.defineProperty(D,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):D[y]=C,D}class W{constructor(){let{type:y,date:C,dp:z,opts:M,body:L}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};q(this,"focus",(()=>{this.$cell.classList.add("-focus-"),this.focused=!0})),q(this,"removeFocus",(()=>{this.$cell.classList.remove("-focus-"),this.focused=!1})),q(this,"select",(()=>{this.$cell.classList.add("-selected-"),this.selected=!0})),q(this,"removeSelect",(()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1})),q(this,"onChangeSelectedDate",(()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())})),q(this,"onChangeFocusDate",($=>{if(!$)return void(this.focused&&this.removeFocus());let R=g($,this.date,this.type);R?this.focus():!R&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()})),q(this,"render",(()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell))),this.type=y,this.singleType=this.type.slice(0,-1),this.date=C,this.dp=z,this.opts=M,this.body=L,this.customData=!1,this.init()}init(){var y,C;let{onRenderCell:z}=this.opts;z&&(this.customData=z({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(y=this.customData)!==null&&y!==void 0&&y.disabled?this.dp.disableDate(this.date):((C=this.customData)===null||C===void 0?void 0:C.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 y;let{year:C,month:z,fullMonth:M,date:L,fullDate:$}=d(this.date),R=((y=this.customData)===null||y===void 0?void 0:y.attrs)||{};this.$cell=a({attrs:{"data-year":C,"data-month":z,"data-date":L,"data-iso-date":`${C}-${M}-${$}`,...R}}),this.$cell.adpCell=this}_getClassName(){var y;let C=new Date,{selectOtherMonths:z,selectOtherYears:M}=this.opts,{minDate:L,maxDate:$,isDateDisabled:R}=this.dp,{day:B}=d(this.date),Y=this._isOutOfMinMaxRange(),rt=R(this.date),et=b("air-datepicker-cell",`-${this.singleType}-`,{"-current-":g(C,this.date,this.type),"-min-date-":L&&g(L,this.date,this.type),"-max-date-":$&&g($,this.date,this.type)}),it="";switch(this.type){case t.days:it=b({"-weekend-":this.dp.isWeekend(B),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!z||Y||rt});break;case t.months:it=b({"-disabled-":Y});break;case t.years:it=b({"-other-decade-":this.isOtherDecade,"-disabled-":Y||this.isOtherDecade&&!M})}return b(et,it,(y=this.customData)===null||y===void 0?void 0:y.classes).split(" ")}_getHtml(){var y;let{year:C,month:z,date:M}=d(this.date),{showOtherMonths:L,showOtherYears:$}=this.opts;if((y=this.customData)!==null&&y!==void 0&&y.html)return this.customData.html;switch(this.type){case t.days:return!L&&this.isOtherMonth?"":M;case t.months:return this.dp.locale[this.opts.monthsField][z];case t.years:return!$&&this.isOtherDecade?"":C}}_isOutOfMinMaxRange(){let{minDate:y,maxDate:C}=this.dp,{type:z,date:M}=this,{month:L,year:$,date:R}=d(M),B=z===t.days,Y=z===t.years,rt=!!y&&new Date($,Y?y.getMonth():L,B?R:y.getDate()),et=!!C&&new Date($,Y?C.getMonth():L,B?R:C.getDate());return y&&C?x(rt,y)||v(et,C):y?x(rt,y):C?v(et,C):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:y,focusDate:C,rangeDateTo:z,rangeDateFrom:M}=this.dp,L=y.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!L)return;let $=M,R=z;if(L===1&&C){let it=v(C,y[0]);$=it?y[0]:C,R=it?C:y[0]}let B=b({"-in-range-":$&&R&&(Y=this.date,rt=$,et=R,v(Y,rt)&&x(Y,et)),"-range-from-":$&&g(this.date,$,this.type),"-range-to-":R&&g(this.date,R,this.type)});var Y,rt,et;B&&this.$cell.classList.add(...B.split(" "))}_handleSelectedStatus(){let y=this.dp._checkIfDateIsSelected(this.date,this.type);y?this.select():!y&&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 tt(D,y,C){return(y=(function(z){var M=(function(L,$){if(typeof L!="object"||L===null)return L;var R=L[Symbol.toPrimitive];if(R!==void 0){var B=R.call(L,"string");if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)})(z);return typeof M=="symbol"?M:String(M)})(y))in D?Object.defineProperty(D,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):D[y]=C,D}let dt={[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>`},ft=".air-datepicker-cell";class wt{constructor(y){let{dp:C,type:z,opts:M}=y;tt(this,"handleClick",(L=>{let $=L.target.closest(ft).adpCell;if($.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let R=this.dp._checkIfDateIsSelected($.date,$.type);R?this.dp._handleAlreadySelectedDates(R,$.date):this.dp.selectDate($.date)})),tt(this,"handleDayNameClick",(L=>{let $=L.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number($),datepicker:this.dp})})),tt(this,"onChangeCurrentView",(L=>{L!==this.type?this.hide():(this.show(),this.render())})),tt(this,"onMouseOverCell",(L=>{let $=O(L.target,ft);this.dp.setFocusDate(!!$&&$.adpCell.date)})),tt(this,"onMouseOutCell",(()=>{this.dp.setFocusDate(!1)})),tt(this,"onClickBody",(L=>{let{onClickDayName:$}=this.opts,R=L.target;R.closest(ft)&&this.handleClick(L),$&&R.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(L)})),tt(this,"onMouseDown",(L=>{this.pressed=!0;let $=O(L.target,ft),R=$&&$.adpCell;g(R.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),g(R.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)})),tt(this,"onMouseMove",(L=>{if(!this.pressed||!this.dp.isMinViewReached)return;L.preventDefault();let $=O(L.target,ft),R=$&&$.adpCell,{selectedDates:B,rangeDateTo:Y,rangeDateFrom:rt}=this.dp;if(!R||R.isDisabled)return;let{date:et}=R;if(B.length===2){if(this.rangeFromFocused&&!v(et,Y)){let{hours:it,minutes:pe}=d(rt);et.setHours(it),et.setMinutes(pe),this.dp.rangeDateFrom=et,this.dp.replaceDate(rt,et)}if(this.rangeToFocused&&!x(et,rt)){let{hours:it,minutes:pe}=d(Y);et.setHours(it),et.setMinutes(pe),this.dp.rangeDateTo=et,this.dp.replaceDate(Y,et)}}})),tt(this,"onMouseUp",(()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1})),tt(this,"onChangeViewDate",((L,$)=>{if(!this.isVisible)return;let R=f(L),B=f($);switch(this.dp.currentView){case t.days:if(g(L,$,t.months))return;break;case t.months:if(g(L,$,t.years))return;break;case t.years:if(R[0]===B[0]&&R[1]===B[1])return}this.render()})),tt(this,"render",(()=>{this.destroyCells(),this._generateCells(),this.cells.forEach((L=>{this.$cells.appendChild(L.render())}))})),this.dp=C,this.type=z,this.opts=M,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:y,dynamicRange:C}=this.opts;k(this.$el,"mouseover",this.onMouseOverCell),k(this.$el,"mouseout",this.onMouseOutCell),k(this.$el,"click",this.onClickBody),y&&C&&(k(this.$el,"mousedown",this.onMouseDown),k(this.$el,"mousemove",this.onMouseMove),k(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:dt[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,C="",z=this.dp.isWeekend,{onClickDayName:M}=this.opts,L=y,$=0;for(;$<7;){let R=L%7;C+=`<div class="${b("air-datepicker-body--day-name",{[t.cssClassWeekend]:z(R),"-clickable-":!!M})}" data-day-index='${R}'>${this.dp.locale.daysMin[R]}</div>`,$++,L++}return C}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(y){let{type:C,dp:z,opts:M}=this;return new W({type:C,dp:z,opts:M,date:y,body:this})}_generateCells(){wt.getDatesFunction(this.type)(this.dp,(y=>{this.cells.push(this._generateCell(y))}))}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach((y=>y.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(y,C){let{viewDate:z,opts:{fixedHeight:M},locale:{firstDay:L}}=y,$=l(z),{year:R,month:B}=d(z),Y=new Date(R,B,1),rt=new Date(R,B,$),et=Y.getDay()-L,it=6-rt.getDay()+L;et=et<0?et+7:et,it=it>6?it-7:it;let pe=(function(Hi,Rp){let{year:hc,month:H2,date:F2}=d(Hi);return new Date(hc,H2,F2-Rp)})(Y,et),Mr=$+et+it,ir=pe.getDate(),{year:Qo,month:Ls}=d(pe),Oi=0;M&&(Mr=42);let Pi=[];for(;Oi<Mr;){let Hi=new Date(Qo,Ls,ir+Oi);C&&C(Hi),Pi.push(Hi),Oi++}return Pi}static getMonthsDates(y,C){let{year:z}=y.parsedViewDate,M=0,L=[];for(;M<12;){let $=new Date(z,M);L.push($),C&&C($),M++}return L}static getYearsDates(y,C){let z=f(y.viewDate),M=z[0]-1,L=z[1]+1,$=M,R=[];for(;$<=L;){let B=new Date($,0);R.push(B),C&&C(B),$++}return R}static getDatesFunction(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return{[t.days]:wt.getDaysDates,[t.months]:wt.getMonthsDates,[t.years]:wt.getYearsDates}[y]}}function Mt(D,y,C){return(y=(function(z){var M=(function(L,$){if(typeof L!="object"||L===null)return L;var R=L[Symbol.toPrimitive];if(R!==void 0){var B=R.call(L,"string");if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)})(z);return typeof M=="symbol"?M:String(M)})(y))in D?Object.defineProperty(D,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):D[y]=C,D}class ge{constructor(y){let{dp:C,opts:z}=y;Mt(this,"onClickNav",(M=>{let L=O(M.target,".air-datepicker-nav--action");if(!L)return;let $=L.dataset.action;this.dp[$]()})),Mt(this,"onChangeViewDate",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),Mt(this,"onChangeCurrentView",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),Mt(this,"onClickNavTitle",(()=>{this.dp.isFinalView||this.dp.up()})),Mt(this,"update",(()=>{let{prevHtml:M,nextHtml:L}=this.opts;this.$prev.innerHTML=M,this.$next.innerHTML=L,this._resetNavStatus(),this.render(),this.handleNavStatus()})),Mt(this,"renderDelay",(()=>{setTimeout(this.render)})),Mt(this,"render",(()=>{this.$title.innerHTML=this._getTitle(),(function(M,L){for(let $ in L)L[$]?M.classList.add($):M.classList.remove($)})(this.$title,{"-disabled-":this.dp.isFinalView})})),this.dp=C,this.opts=z,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:y,opts:C}=this,z=C.navTitles[y.currentView];return typeof z=="function"?z(y):y.formatDate(y.viewDate,z)}handleNavStatus(){let{disableNavWhenOutOfRange:y}=this.opts,{minDate:C,maxDate:z}=this.dp;if(!C&&!z||!y)return;let{year:M,month:L}=this.dp.parsedViewDate,$=!!C&&d(C),R=!!z&&d(z);switch(this.dp.currentView){case t.days:C&&$.month>=L&&$.year>=M&&this._disableNav("prev"),z&&R.month<=L&&R.year<=M&&this._disableNav("next");break;case t.months:C&&$.year>=M&&this._disableNav("prev"),z&&R.year<=M&&this._disableNav("next");break;case t.years:{let B=f(this.dp.viewDate);C&&$.year>=B[0]&&this._disableNav("prev"),z&&R.year<=B[1]&&this._disableNav("next");break}}}_disableNav(y){n('[data-action="'+y+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(y){for(var C=arguments.length,z=new Array(C>1?C-1:0),M=1;M<C;M++)z[M-1]=arguments[M];y.length?y.forEach((L=>{L.classList.remove(...z)})):y.classList.remove(...z)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:y,nextHtml:C}=this.opts;this.$el.innerHTML=`<div class="air-datepicker-nav--action" data-action="prev">${y}</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">${C}</div>`}get isNavIsFunction(){let{navTitles:y}=this.opts;return Object.keys(y).find((C=>typeof y[C]=="function"))}}var Ve={today:{content:D=>D.locale.today,onClick:D=>D.setViewDate(new Date)},clear:{content:D=>D.locale.clear,onClick:D=>D.clear()}};class nr{constructor(y){let{dp:C,opts:z}=y;this.dp=C,this.opts=z,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:y}=this.opts;Array.isArray(y)||(y=[y]),y.forEach((C=>{let z=C;typeof C=="string"&&Ve[C]&&(z=Ve[C]);let M=this.createButton(z);z.onClick&&this.attachEventToButton(M,z.onClick),this.$el.appendChild(M)}))}attachEventToButton(y,C){y.addEventListener("click",(()=>{C(this.dp)}))}createButton(y){let{content:C,className:z,tagName:M="button",attrs:L={}}=y;return a({tagName:M,innerHtml:`<span tabindex='-1'>${typeof C=="function"?C(this.dp):C}</span>`,className:b("air-datepicker-button",z),attrs:L})}render(){this.generateButtons()}}function ke(D,y,C){return(y=(function(z){var M=(function(L,$){if(typeof L!="object"||L===null)return L;var R=L[Symbol.toPrimitive];if(R!==void 0){var B=R.call(L,"string");if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)})(z);return typeof M=="symbol"?M:String(M)})(y))in D?Object.defineProperty(D,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):D[y]=C,D}class Ue{constructor(){let{opts:y,dp:C}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ke(this,"toggleTimepickerIsActive",(M=>{this.dp.timepickerIsActive=M})),ke(this,"onChangeSelectedDate",(M=>{let{date:L,updateTime:$=!1}=M;L&&(this.setMinMaxTime(L),this.setCurrentTime(!!$&&L),this.addTimeToDate(L))})),ke(this,"onChangeLastSelectedDate",(M=>{M&&(this.setTime(M),this.render())})),ke(this,"onChangeInputRange",(M=>{let L=M.target;this[L.getAttribute("name")]=L.value,this.updateText(),this.dp.trigger(t.eventChangeTime,{hours:this.hours,minutes:this.minutes})})),ke(this,"onMouseEnterLeave",(M=>{let L=M.target.getAttribute("name"),$=this.$minutesText;L==="hours"&&($=this.$hoursText),$.classList.toggle("-focus-")})),ke(this,"onFocus",(()=>{this.toggleTimepickerIsActive(!0)})),ke(this,"onBlur",(()=>{this.toggleTimepickerIsActive(!1)})),this.opts=y,this.dp=C;let{timeFormat:z}=this.dp.locale;z&&(z.match(E("h"))||z.match(E("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 y="input";navigator.userAgent.match(/trident/gi)&&(y="change"),k(this.$ranges,y,this.onChangeInputRange),k(this.$ranges,"mouseenter",this.onMouseEnterLeave),k(this.$ranges,"mouseleave",this.onMouseEnterLeave),k(this.$ranges,"focus",this.onFocus),k(this.$ranges,"mousedown",this.onFocus),k(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:y,hours:C,displayHours:z,minutes:M,minHours:L,minMinutes:$,maxHours:R,maxMinutes:B,dayPeriod:Y,opts:{hoursStep:rt,minutesStep:et}}=this;this.$el.innerHTML=`<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">${m(z)}</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">${m(M)}</span> `+(y?`<span class='air-datepicker-time--current-ampm'>${Y}</span>`:"")+`</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row"> <input type="range" name="hours" value="${C}" min="${L}" max="${R}" step="${rt}"/> </div> <div class="air-datepicker-time--row"> <input type="range" name="minutes" value="${M}" min="${$}" max="${B}" step="${et}"/> </div></div>`}defineDOM(){let y=C=>n(C,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=y('[name="hours"]'),this.$minutes=y('[name="minutes"]'),this.$hoursText=y(".air-datepicker-time--current-hours"),this.$minutesText=y(".air-datepicker-time--current-minutes"),this.$ampm=y(".air-datepicker-time--current-ampm")}setTime(y){this.setMinMaxTime(y),this.setCurrentTime(y)}addTimeToDate(y){y&&(y.setHours(this.hours),y.setMinutes(this.minutes))}setMinMaxTime(y){if(this.setMinMaxTimeFromOptions(),y){let{minDate:C,maxDate:z}=this.dp;C&&g(y,C)&&this.setMinTimeFromMinDate(C),z&&g(y,z)&&this.setMaxTimeFromMaxDate(z)}}setCurrentTime(y){let{hours:C,minutes:z}=y?d(y):this;this.hours=j(C,this.minHours,this.maxHours),this.minutes=j(z,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:y,minMinutes:C,maxHours:z,maxMinutes:M}=this.opts;this.minHours=j(y,0,23),this.minMinutes=j(C,0,59),this.maxHours=j(z,0,23),this.maxMinutes=j(M,0,59)}setMinTimeFromMinDate(y){let{lastSelectedDate:C}=this.dp;this.minHours=y.getHours(),C&&C.getHours()>y.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=y.getMinutes()}setMaxTimeFromMaxDate(y){let{lastSelectedDate:C}=this.dp;this.maxHours=y.getHours(),C&&C.getHours()<y.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=y.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(y){this._hours=y;let{hours:C,dayPeriod:z}=h(y);this.displayHours=this.ampm?C:y,this.dayPeriod=z}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function be(D,y,C){return(y=(function(z){var M=(function(L,$){if(typeof L!="object"||L===null)return L;var R=L[Symbol.toPrimitive];if(R!==void 0){var B=R.call(L,"string");if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)})(z);return typeof M=="symbol"?M:String(M)})(y))in D?Object.defineProperty(D,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):D[y]=C,D}class Qn{constructor(y){let{dp:C,opts:z}=y;be(this,"pressedKeys",new Set),be(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],M=>M.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],M=>M.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],M=>M.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],M=>M.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],M=>M.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],M=>M.year-=10],[["Control","Shift","ArrowUp"],(M,L)=>L.up()]])),be(this,"handleHotKey",(M=>{let L=this.hotKeys.get(M),$=d(this.getInitialFocusDate());L($,this.dp);let{year:R,month:B,date:Y}=$,rt=l(new Date(R,B));rt<Y&&(Y=rt);let et=this.dp.getClampedDate(new Date(R,B,Y));this.dp.setFocusDate(et,{viewDateTransition:!0})})),be(this,"isHotKeyPressed",(()=>{let M=!1,L=this.pressedKeys.size,$=R=>this.pressedKeys.has(R);for(let[R]of this.hotKeys){if(M)break;if(Array.isArray(R[0]))R.forEach((B=>{M||L!==B.length||(M=B.every($)&&R)}));else{if(L!==R.length)continue;M=R.every($)&&R}}return M})),be(this,"isArrow",(M=>M>=37&&M<=40)),be(this,"onKeyDown",(M=>{if(!this.dp.visible&&!this.dp.treatAsInline)return;let{key:L,which:$}=M,{dp:R,dp:{focusDate:B},opts:Y}=this;this.registerKey(L);let rt=this.isHotKeyPressed();if(rt)return M.preventDefault(),void this.handleHotKey(rt);if(this.isArrow($))return M.preventDefault(),void this.focusNextCell(L);if(L==="Enter"){if(R.currentView!==Y.minView)return void R.down();if(B){let et=R._checkIfDateIsSelected(B);return void(et?R._handleAlreadySelectedDates(et,B):R.selectDate(B))}}L==="Escape"&&this.dp.hide()})),be(this,"onKeyUp",(M=>{this.removeKey(M.key)})),this.dp=C,this.opts=z,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:y}=this.dp;y.addEventListener("keydown",this.onKeyDown),y.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:y}=this.dp;y.removeEventListener("keydown",this.onKeyDown),y.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:y,currentView:C,selectedDates:z,parsedViewDate:{year:M,month:L}}=this.dp,$=y||z[z.length-1];if(!$)switch(C){case t.days:$=new Date(M,L,new Date().getDate());break;case t.months:$=new Date(M,L,1);break;case t.years:$=new Date(M,0,1)}return $}focusNextCell(y){let C=this.getInitialFocusDate(),{currentView:z}=this.dp,{days:M,months:L,years:$}=t,R=d(C),B=R.year,Y=R.month,rt=R.date;switch(y){case"ArrowLeft":z===M&&(rt-=1),z===L&&(Y-=1),z===$&&(B-=1);break;case"ArrowUp":z===M&&(rt-=7),z===L&&(Y-=3),z===$&&(B-=4);break;case"ArrowRight":z===M&&(rt+=1),z===L&&(Y+=1),z===$&&(B+=1);break;case"ArrowDown":z===M&&(rt+=7),z===L&&(Y+=3),z===$&&(B+=4)}let et=this.dp.getClampedDate(new Date(B,Y,rt));this.dp.setFocusDate(et,{viewDateTransition:!0})}registerKey(y){this.pressedKeys.add(y)}removeKey(y){this.pressedKeys.delete(y)}}let _a={on(D,y){this.__events||(this.__events={}),this.__events[D]?this.__events[D].push(y):this.__events[D]=[y]},off(D,y){this.__events&&this.__events[D]&&(this.__events[D]=this.__events[D].filter((C=>C!==y)))},removeAllEvents(){this.__events={}},trigger(D){for(var y=arguments.length,C=new Array(y>1?y-1:0),z=1;z<y;z++)C[z-1]=arguments[z];this.__events&&this.__events[D]&&this.__events[D].forEach((M=>{M(...C)}))}};function ut(D,y,C){return(y=(function(z){var M=(function(L,$){if(typeof L!="object"||L===null)return L;var R=L[Symbol.toPrimitive];if(R!==void 0){var B=R.call(L,"string");if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(L)})(z);return typeof M=="symbol"?M:String(M)})(y))in D?Object.defineProperty(D,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):D[y]=C,D}let To="",Ao="",pt=!1;class nt{static buildGlobalContainer(y){pt=!0,To=a({className:y,id:y}),n("body").appendChild(To)}constructor(y,C){var z=this;if(ut(this,"viewIndexes",[t.days,t.months,t.years]),ut(this,"next",(()=>{let{year:$,month:R}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date($,R+1,1));break;case t.months:this.setViewDate(new Date($+1,R,1));break;case t.years:this.setViewDate(new Date($+10,0,1))}})),ut(this,"prev",(()=>{let{year:$,month:R}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date($,R-1,1));break;case t.months:this.setViewDate(new Date($-1,R,1));break;case t.years:this.setViewDate(new Date($-10,0,1))}})),ut(this,"_finishHide",(()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)})),ut(this,"setPosition",(function($){let R=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof($=$||z.opts.position)=="function")return void(z.customHide=$({$datepicker:z.$datepicker,$target:z.$el,$pointer:z.$pointer,isViewChange:R,done:z._finishHide}));let B,Y,{isMobile:rt}=z.opts,et=z.$el.getBoundingClientRect(),it=z.$el.getBoundingClientRect(),pe=z.$datepicker.offsetParent,Mr=z.$el.offsetParent,ir=z.$datepicker.getBoundingClientRect(),Qo=$.split(" "),Ls=window.scrollY,Oi=window.scrollX,Pi=z.opts.offset,Hi=Qo[0],Rp=Qo[1];if(rt)z.$datepicker.style.cssText="left: 50%; top: 50%";else{if(pe===Mr&&pe!==document.body&&(it={top:z.$el.offsetTop,left:z.$el.offsetLeft,width:et.width,height:z.$el.offsetHeight},Ls=0,Oi=0),pe!==Mr&&pe!==document.body){let hc=pe.getBoundingClientRect();it={top:et.top-hc.top,left:et.left-hc.left,width:et.width,height:et.height},Ls=0,Oi=0}switch(Hi){case"top":B=it.top-ir.height-Pi;break;case"right":Y=it.left+it.width+Pi;break;case"bottom":B=it.top+it.height+Pi;break;case"left":Y=it.left-ir.width-Pi}switch(Rp){case"top":B=it.top;break;case"right":Y=it.left+it.width-ir.width;break;case"bottom":B=it.top+it.height-ir.height;break;case"left":Y=it.left;break;case"center":/left|right/.test(Hi)?B=it.top+it.height/2-ir.height/2:Y=it.left+it.width/2-ir.width/2}z.$datepicker.style.cssText=`left: ${Y+Oi}px; top: ${B+Ls}px`}})),ut(this,"_setInputValue",(()=>{let{opts:$,$altField:R,locale:{dateFormat:B}}=this,{altFieldDateFormat:Y,altField:rt}=$;rt&&R&&(R.value=this._getInputValue(Y)),this.$el.value=this._getInputValue(B),this.$el.dispatchEvent(new Event("change"))})),ut(this,"_getInputValue",($=>{let{selectedDates:R,opts:B}=this,{multipleDates:Y,multipleDatesSeparator:rt}=B;if(!R.length)return"";let et=typeof $=="function",it=et?$(Y?R:R[0]):R.map((pe=>this.formatDate(pe,$)));return it=et?it:it.join(rt),it})),ut(this,"_checkIfDateIsSelected",(function($){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.days,B=!1;return z.selectedDates.some((Y=>{let rt=g($,Y,R);return B=rt&&Y,rt})),B})),ut(this,"_scheduleCallAfterTransition",($=>{this._cancelScheduledCall(),$&&$(!1),this._onTransitionEnd=()=>{$&&$(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})})),ut(this,"_cancelScheduledCall",(()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)})),ut(this,"setViewDate",($=>{if(!(($=w($))instanceof Date)||g($,this.viewDate))return;let R=this.viewDate;this.viewDate=$;let{onChangeViewDate:B}=this.opts;if(B){let{month:Y,year:rt}=this.parsedViewDate;B({month:Y,year:rt,decade:this.curDecade})}this.trigger(t.eventChangeViewDate,$,R)})),ut(this,"setFocusDate",(function($){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!$||($=w($))instanceof Date)&&(z.focusDate=$,z.trigger(t.eventChangeFocusDate,$,R))})),ut(this,"setCurrentView",(function($){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(z.viewIndexes.includes($)){if(z.currentView=$,z.elIsInput&&z.visible&&z.setPosition(void 0,!0),z.trigger(t.eventChangeCurrentView,$),!z.views[$]){let B=z.views[$]=new wt({dp:z,opts:z.opts,type:$});z.shouldUpdateDOM&&z.$content.appendChild(B.$el)}z.opts.onChangeView&&!R.silent&&z.opts.onChangeView($)}})),ut(this,"_updateLastSelectedDate",($=>{this.lastSelectedDate=$,this.trigger(t.eventChangeLastSelectedDate,$)})),ut(this,"destroy",(()=>{if(this.isDestroyed)return;let{showEvent:$,isMobile:R}=this.opts,B=this.$datepicker.parentNode;B&&B.removeChild(this.$datepicker),this.$el.removeEventListener($,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),R&&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})),ut(this,"update",(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=I({},z.opts),{silent:Y}=R;I(z.opts,$);let{timepicker:rt,buttons:et,range:it,selectedDates:pe,isMobile:Mr}=z.opts,ir=z.visible||z.treatAsInline;z._createMinMaxDates(),z._limitViewDateByMaxMinDates(),z._handleLocale(),pe&&(z.selectedDates=[],z.selectDate(pe,{silent:Y})),$.view&&z.setCurrentView($.view,{silent:Y}),z._setInputValue(),B.range&&!it?(z.rangeDateTo=!1,z.rangeDateFrom=!1):!B.range&&it&&z.selectedDates.length&&(z.rangeDateFrom=z.selectedDates[0],z.rangeDateTo=z.selectedDates[1]),B.timepicker&&!rt?(ir&&z.timepicker.destroy(),z.timepicker=!1,z.$timepicker.parentNode.removeChild(z.$timepicker)):!B.timepicker&&rt&&z._addTimepicker(),!B.buttons&&et?z._addButtons():B.buttons&&!et?(z.buttons.destroy(),z.$buttons.parentNode.removeChild(z.$buttons)):ir&&B.buttons&&et&&z.buttons.clearHtml().render(),!B.isMobile&&Mr?(z.treatAsInline||Ao||z._createMobileOverlay(),z._addMobileAttributes(),z.visible&&z._showMobileOverlay()):B.isMobile&&!Mr&&(z._removeMobileAttributes(),z.visible&&(Ao.classList.remove("-active-"),typeof z.opts.position!="function"&&z.setPosition())),ir&&(z.nav.update(),z.views[z.currentView].render(),z.currentView===t.days&&z.views[z.currentView].renderDayNames())})),ut(this,"disableDate",(($,R)=>{(Array.isArray($)?$:[$]).forEach((B=>{let Y=w(B);if(!Y)return;let rt=R?"delete":"add";this.disabledDates[rt](this.formatDate(Y,"yyyy-MM-dd"));let et=this.getCell(Y,this.currentViewSingular);et&&et.adpCell.render()}),[])})),ut(this,"enableDate",($=>{this.disableDate($,!0)})),ut(this,"isDateDisabled",($=>{let R=w($);return this.disabledDates.has(this.formatDate(R,"yyyy-MM-dd"))})),ut(this,"isOtherMonth",($=>{let{month:R}=d($);return R!==this.parsedViewDate.month})),ut(this,"isOtherYear",($=>{let{year:R}=d($);return R!==this.parsedViewDate.year})),ut(this,"isOtherDecade",($=>{let{year:R}=d($),[B,Y]=f(this.viewDate);return R<B||R>Y})),ut(this,"_onChangeSelectedDate",($=>{let{silent:R}=$;setTimeout((()=>{this._setInputValue(),this.opts.onSelect&&!R&&this._triggerOnSelect()}))})),ut(this,"_onChangeFocusedDate",(function($){let{viewDateTransition:R}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!$)return;let B=!1;R&&(B=z.isOtherMonth($)||z.isOtherYear($)||z.isOtherDecade($)),B&&z.setViewDate($),z.opts.onFocus&&z.opts.onFocus({datepicker:z,date:$})})),ut(this,"_onChangeTime",($=>{let{hours:R,minutes:B}=$,Y=new Date,{lastSelectedDate:rt,opts:{onSelect:et}}=this,it=rt;rt||(it=Y);let pe=this.getCell(it,this.currentViewSingular),Mr=pe&&pe.adpCell;Mr&&Mr.isDisabled||(it.setHours(R),it.setMinutes(B),rt?(this._setInputValue(),et&&this._triggerOnSelect()):this.selectDate(it))})),ut(this,"_onFocus",($=>{this.visible||this.show()})),ut(this,"_onBlur",($=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()})),ut(this,"_onMouseDown",($=>{this.inFocus=!0})),ut(this,"_onMouseUp",($=>{this.inFocus=!1,this.$el.focus()})),ut(this,"_onResize",(()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()})),ut(this,"_onClickOverlay",(()=>{this.visible&&this.hide()})),ut(this,"getViewDates",(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return wt.getDatesFunction($)(z)})),ut(this,"isWeekend",($=>this.opts.weekends.includes($))),ut(this,"getClampedDate",($=>{let{minDate:R,maxDate:B}=this,Y=$;return B&&v($,B)?Y=B:R&&x($,R)&&(Y=R),Y})),this.$el=n(y),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=I({},o,C),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||!1);let{view:M,startDate:L}=this.opts;L||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=w(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=M,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:y,treatAsInline:C,opts:{inline:z,isMobile:M,selectedDates:L,keyboardNav:$,onlyTimepicker:R}}=this,B=n("body");(!pt||pt&&To&&!B.contains(To))&&!z&&this.elIsInput&&!this.$customContainer&&nt.buildGlobalContainer(nt.defaultGlobalContainerId),!M||Ao||C||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(z||this._bindEvents(),$&&!R&&(this.keyboardNav=new Qn({dp:this,opts:y}))),L&&this.selectDate(L,{silent:!0}),this.opts.visible&&!C&&this.show(),M&&!C&&this.$el.setAttribute("readonly",!0),C&&this._createComponents()}_createMobileOverlay(){Ao=a({className:"air-datepicker-overlay"}),To.appendChild(Ao)}_createComponents(){let{opts:y,treatAsInline:C,opts:{inline:z,buttons:M,timepicker:L,position:$,classes:R,onlyTimepicker:B,isMobile:Y}}=this;this._buildBaseHtml(),this.elIsInput&&(z||this._setPositionClasses($)),!z&&this.elIsInput||this.$datepicker.classList.add("-inline-"),R&&this.$datepicker.classList.add(...R.split(" ")),B&&this.$datepicker.classList.add("-only-timepicker-"),Y&&!C&&this._addMobileAttributes(),this.views[this.currentView]=new wt({dp:this,type:this.currentView,opts:y}),this.nav=new ge({dp:this,opts:y}),L&&this._addTimepicker(),M&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let y in this.views)this.views[y].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){Ao.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Ao.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:y,maxDate:C}=this.opts;this.minDate=!!y&&w(y),this.maxDate=!!C&&w(C)}_addTimepicker(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new Ue({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 nr({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:y}=this.opts;var C,z;this.elIsInput?y?(C=this.$datepicker,(z=this.$el).parentNode.insertBefore(C,z.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:y,dateFormat:C,firstDay:z,timepicker:M,onlyTimepicker:L,timeFormat:$,dateTimeSeparator:R}=this.opts;var B;this.locale=(B=y,JSON.parse(JSON.stringify(B))),C&&(this.locale.dateFormat=C),$!==void 0&&$!==""&&(this.locale.timeFormat=$);let{timeFormat:Y}=this.locale;if(z!==""&&(this.locale.firstDay=z),M&&typeof C!="function"){let rt=Y?R:"";this.locale.dateFormat=[this.locale.dateFormat,Y||""].join(rt)}L&&typeof C!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(y){if(typeof y=="function")return void this.$datepicker.classList.add("-custom-position-");let C=(y=y.split(" "))[0],z=`air-datepicker -${C}-${y[1]}- -from-${C}-`;this.$datepicker.classList.add(...z.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:y,minDate:C,maxDate:z}=this;z&&v(y,z)&&this.setViewDate(z),C&&x(y,C)&&this.setViewDate(C)}formatDate(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,C=arguments.length>1?arguments[1]:void 0;if(y=w(y),!(y instanceof Date))return;let z=C,M=this.locale,L=d(y),$=L.dayPeriod,R=f(y),B=nt.replacer,Y={T:y.getTime(),m:L.minutes,mm:L.fullMinutes,h:L.hours12,hh:L.fullHours12,H:L.hours,HH:L.fullHours,aa:$,AA:$.toUpperCase(),E:M.daysShort[L.day],EEEE:M.days[L.day],d:L.date,dd:L.fullDate,M:L.month+1,MM:L.fullMonth,MMM:M.monthsShort[L.month],MMMM:M.months[L.month],yy:L.year.toString().slice(-2),yyyy:L.year,yyyy1:R[0],yyyy2:R[1]};for(let[rt,et]of Object.entries(Y))z=B(z,E(rt),et);return z}down(y){this._handleUpDownActions(y,"down")}up(y){this._handleUpDownActions(y,"up")}selectDate(y){let C,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:M,parsedViewDate:L,selectedDates:$}=this,{updateTime:R,silent:B}=z,{moveToOtherMonthsOnSelect:Y,moveToOtherYearsOnSelect:rt,multipleDates:et,range:it,autoClose:pe,onBeforeSelect:Mr}=this.opts,ir=$.length;if(Array.isArray(y))return y.forEach((Qo=>{this.selectDate(Qo,z)})),new Promise((Qo=>{setTimeout(Qo)}));if((y=w(y))instanceof Date){if(Mr&&!B&&!Mr({date:y,datepicker:this}))return Promise.resolve();if(M===t.days&&y.getMonth()!==L.month&&Y&&(C=new Date(y.getFullYear(),y.getMonth(),1)),M===t.years&&y.getFullYear()!==L.year&&rt&&(C=new Date(y.getFullYear(),0,1)),C&&this.setViewDate(C),et&&!it){if(ir===et)return;this._checkIfDateIsSelected(y)||$.push(y)}else if(it)switch(ir){case 1:$.push(y),this.rangeDateTo||(this.rangeDateTo=y),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=y),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[y],this.rangeDateFrom=y,this.rangeDateTo="";break;default:this.selectedDates=[y],this.rangeDateFrom=y}else this.selectedDates=[y];return this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,silent:z?.silent,date:y,updateTime:R}),this._updateLastSelectedDate(y),pe&&!this.timepickerIsActive&&this.visible&&(et||it?it&&ir===1&&this.hide():this.hide()),new Promise((Qo=>{setTimeout(Qo)}))}}unselectDate(y){let C=this.selectedDates,z=this;if((y=w(y))instanceof Date)return C.some(((M,L)=>{if(g(M,y))return C.splice(L,1),z.selectedDates.length?(z.rangeDateTo="",z.rangeDateFrom=C[0],z._updateLastSelectedDate(z.selectedDates[z.selectedDates.length-1])):(z.rangeDateFrom="",z.rangeDateTo="",z._updateLastSelectedDate(!1)),this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,date:y}),!0}))}replaceDate(y,C){let z=this.selectedDates.find((L=>g(L,y,this.currentView))),M=this.selectedDates.indexOf(z);M<0||g(this.selectedDates[M],C,this.currentView)||(this.selectedDates[M]=C,this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,date:C,updateTime:!0}),this._updateLastSelectedDate(C))}clear(){let y=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:y.silent}),new Promise((C=>{setTimeout(C)}))}show(){let{onShow:y,isMobile:C}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,y&&this._scheduleCallAfterTransition(y),C&&this._showMobileOverlay()}hide(){let{onHide:y,isMobile:C}=this.opts,z=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((M=>{!this.customHide&&(M&&z||!M&&!z)&&this._finishHide(),y&&y(M)})),C&&Ao.classList.remove("-active-")}_triggerOnSelect(){let y=[],C=[],{selectedDates:z,locale:M,opts:{onSelect:L,multipleDates:$,range:R}}=this,B=$||R,Y=typeof M.dateFormat=="function";z.length&&(y=z.map(_),C=Y?$?M.dateFormat(y):y.map((rt=>M.dateFormat(rt))):y.map((rt=>this.formatDate(rt,M.dateFormat)))),L({date:B?y:y[0],formattedDate:B?C:C[0],datepicker:this})}_handleAlreadySelectedDates(y,C){let{selectedDates:z,rangeDateFrom:M,rangeDateTo:L}=this,{range:$,toggleSelected:R}=this.opts,B=z.length,Y=typeof R=="function"?R({datepicker:this,date:C}):R,rt=!!($&&B===1&&y),et=rt?_(C):C;$&&!Y&&(B!==2&&this.selectDate(et),B===2&&g(M,L))||(Y?this.unselectDate(et):this._updateLastSelectedDate(rt?et:y))}_handleUpDownActions(y,C){if(!((y=w(y||this.focusDate||this.viewDate))instanceof Date))return;let z=C==="up"?this.viewIndex+1:this.viewIndex-1;z>2&&(z=2),z<0&&(z=0),this.setViewDate(new Date(y.getFullYear(),y.getMonth(),1)),this.setCurrentView(this.viewIndexes[z])}getCell(y){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.day;if(!((y=w(y))instanceof Date))return;let{year:z,month:M,date:L}=d(y),$=`[data-year="${z}"]`,R=`[data-month="${M}"]`,B={[t.day]:`${$}${R}[data-date="${L}"]`,[t.month]:`${$}${R}`,[t.year]:`${$}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(B[C]):void 0}_showMobileOverlay(){Ao.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce(((y,C)=>parseFloat(C)+y),0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return d(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||To}static replacer(y,C,z){return y.replace(C,(function(M,L,$,R){return L+z+R}))}}var xt;return ut(nt,"defaults",o),ut(nt,"version","3.6.0"),ut(nt,"defaultGlobalContainerId","air-datepicker-global-container"),xt=nt.prototype,Object.assign(xt,_a),r.default})()}))});var Is=globalThis,zf=i=>i,uc=Is.trustedTypes,wf=uc?uc.createPolicy("lit-html",{createHTML:i=>i}):void 0,Pp="$lit$",kn=`lit$${Math.random().toFixed(9).slice(2)}$`,Hp="?"+kn,V2=`<${Hp}>`,Vi=document,Ns=()=>Vi.createComment(""),Ds=i=>i===null||typeof i!="object"&&typeof i!="function",Fp=Array.isArray,Tf=i=>Fp(i)||typeof i?.[Symbol.iterator]=="function",Op=`[
3
3
  \f\r]`,Ms=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_f=/-->/g,kf=/>/g,Fi=RegExp(`>|${Op}(?:([^\\s"'>=/]+)(${Op}*=${Op}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Cf=/'/g,Sf=/"/g,Af=/^(?:script|style|textarea|title)$/i,Bp=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),u=Bp(1),$o=Bp(2),$f=Bp(3),re=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Ef=new WeakMap,Bi=Vi.createTreeWalker(Vi,129);function qf(i,r){if(!Fp(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return wf!==void 0?wf.createHTML(r):r}var Lf=(i,r)=>{let t=i.length-1,o=[],n,a=r===2?"<svg>":r===3?"<math>":"",s=Ms;for(let l=0;l<t;l++){let d=i[l],h,m,f=-1,b=0;for(;b<d.length&&(s.lastIndex=b,m=s.exec(d),m!==null);)b=s.lastIndex,s===Ms?m[1]==="!--"?s=_f:m[1]!==void 0?s=kf:m[2]!==void 0?(Af.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Fi):m[3]!==void 0&&(s=Fi):s===Fi?m[0]===">"?(s=n??Ms,f=-1):m[1]===void 0?f=-2:(f=s.lastIndex-m[2].length,h=m[1],s=m[3]===void 0?Fi:m[3]==='"'?Sf:Cf):s===Sf||s===Cf?s=Fi:s===_f||s===kf?s=Ms:(s=Fi,n=void 0);let g=s===Fi&&i[l+1].startsWith("/>")?" ":"";a+=s===Ms?d+V2:f>=0?(o.push(h),d.slice(0,f)+Pp+d.slice(f)+kn+g):d+kn+(f===-2?l:g)}return[qf(i,a+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),o]},Rs=class i{constructor({strings:r,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=r.length-1,d=this.parts,[h,m]=Lf(r,t);if(this.el=i.createElement(h,o),Bi.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=Bi.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Pp)){let b=m[s++],g=n.getAttribute(f).split(kn),v=/([.?@])?(.*)/.exec(b);d.push({type:1,index:a,name:v[2],strings:g,ctor:v[1]==="."?fc:v[1]==="?"?gc:v[1]==="@"?bc:ji}),n.removeAttribute(f)}else f.startsWith(kn)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(Af.test(n.tagName)){let f=n.textContent.split(kn),b=f.length-1;if(b>0){n.textContent=uc?uc.emptyScript:"";for(let g=0;g<b;g++)n.append(f[g],Ns()),Bi.nextNode(),d.push({type:2,index:++a});n.append(f[b],Ns())}}}else if(n.nodeType===8)if(n.data===Hp)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(kn,f+1))!==-1;)d.push({type:7,index:a}),f+=kn.length-1}a++}}static createElement(r,t){let o=Vi.createElement("template");return o.innerHTML=r,o}};function Ui(i,r,t=i,o){if(r===re)return r;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=Ds(r)?void 0:r._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(i),n._$AT(i,t,o)),o!==void 0?(t._$Co??(t._$Co=[]))[o]=n:t._$Cl=n),n!==void 0&&(r=Ui(i,n._$AS(i,r.values),n,o)),r}var mc=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:o}=this._$AD,n=(r?.creationScope??Vi).importNode(t,!0);Bi.currentNode=n;let a=Bi.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new ka(a,a.nextSibling,this,r):d.type===1?h=new d.ctor(a,d.name,d.strings,this,r):d.type===6&&(h=new vc(a,this,r)),this._$AV.push(h),d=o[++l]}s!==d?.index&&(a=Bi.nextNode(),s++)}return Bi.currentNode=Vi,n}p(r){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(r,o,t),t+=o.strings.length-2):o._$AI(r[t])),t++}},ka=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,o,n){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=Ui(this,r,t),Ds(r)?r===G||r==null||r===""?(this._$AH!==G&&this._$AR(),this._$AH=G):r!==this._$AH&&r!==re&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):Tf(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==G&&Ds(this._$AH)?this._$AA.nextSibling.data=r:this.T(Vi.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:o}=r,n=typeof o=="number"?this._$AC(r):(o.el===void 0&&(o.el=Rs.createElement(qf(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new mc(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(r){let t=Ef.get(r.strings);return t===void 0&&Ef.set(r.strings,t=new Rs(r)),t}k(r){Fp(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of r)n===t.length?t.push(o=new i(this.O(Ns()),this.O(Ns()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let o=zf(r).nextSibling;zf(r).remove(),r=o}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},ji=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,o,n,a){this.type=1,this._$AH=G,this._$AN=void 0,this.element=r,this.name=t,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=G}_$AI(r,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)r=Ui(this,r,t,0),s=!Ds(r)||r!==this._$AH&&r!==re,s&&(this._$AH=r);else{let l=r,d,h;for(r=a[0],d=0;d<a.length-1;d++)h=Ui(this,l[o+d],t,d),h===re&&(h=this._$AH[d]),s||(s=!Ds(h)||h!==this._$AH[d]),h===G?r=G:r!==G&&(r+=(h??"")+a[d+1]),this._$AH[d]=h}s&&!n&&this.j(r)}j(r){r===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},fc=class extends ji{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===G?void 0:r}},gc=class extends ji{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==G)}},bc=class extends ji{constructor(r,t,o,n,a){super(r,t,o,n,a),this.type=5}_$AI(r,t=this){if((r=Ui(this,r,t,0)??G)===re)return;let o=this._$AH,n=r===G&&o!==G||r.capture!==o.capture||r.once!==o.once||r.passive!==o.passive,a=r!==G&&(o===G||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},vc=class{constructor(r,t,o){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(r){Ui(this,r)}},Mf={M:Pp,P:kn,A:Hp,C:1,L:Lf,R:mc,D:Tf,V:Ui,I:ka,H:ji,N:gc,U:bc,B:fc,F:vc},U2=Is.litHtmlPolyfillSupport;U2?.(Rs,ka),(Is.litHtmlVersions??(Is.litHtmlVersions=[])).push("3.3.3");var Ca=(i,r,t)=>{let o=t?.renderBefore??r,n=o._$litPart$;if(n===void 0){let a=t?.renderBefore??null;o._$litPart$=n=new ka(r.insertBefore(Ns(),a),a,void 0,t??{})}return n._$AI(i),n};var Je={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},oe=i=>(...r)=>({_$litDirective$:i,values:r}),je=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,t,o){this._$Ct=r,this._$AM=t,this._$Ci=o}_$AS(r,t){return this.update(r,t)}update(r,t){return this.render(...t)}};var N=oe(class extends je{constructor(i){if(super(i),i.type!==Je.ATTRIBUTE||i.name!=="class"||i.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(r=>i[r]).join(" ")+" "}update(i,[r]){if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in r)r[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(r)}let t=i.element.classList;for(let o of this.st)o in r||(t.remove(o),this.st.delete(o));for(let o in r){let n=!!r[o];n===this.st.has(o)||this.nt?.has(o)||(n?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return re}});var xc=globalThis,yc=xc.ShadowRoot&&(xc.ShadyCSS===void 0||xc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vp=Symbol(),If=new WeakMap,Os=class{constructor(r,t,o){if(this._$cssResult$=!0,o!==Vp)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if(yc&&r===void 0){let o=t!==void 0&&t.length===1;o&&(r=If.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),o&&If.set(t,r))}return r}toString(){return this.cssText}},A=i=>new Os(typeof i=="string"?i:i+"",void 0,Vp),T=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((o,n,a)=>o+(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)+i[a+1],i[0]);return new Os(t,i,Vp)},Nf=(i,r)=>{if(yc)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let o=document.createElement("style"),n=xc.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,i.appendChild(o)}},Up=yc?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let o of r.cssRules)t+=o.cssText;return A(t)})(i):i;var{is:j2,defineProperty:G2,getOwnPropertyDescriptor:W2,getOwnPropertyNames:K2,getOwnPropertySymbols:Y2,getPrototypeOf:X2}=Object,Jn=globalThis,Df=Jn.trustedTypes,Q2=Df?Df.emptyScript:"",J2=Jn.reactiveElementPolyfillSupport,Ps=(i,r)=>i,Zn={toAttribute(i,r){switch(r){case Boolean:i=i?Q2:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Sa=(i,r)=>!j2(i,r),Rf={attribute:!0,type:String,converter:Zn,reflect:!1,useDefault:!1,hasChanged:Sa};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Jn.litPropertyMetadata??(Jn.litPropertyMetadata=new WeakMap);var Cn=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??(this.l=[])).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=Rf){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(r,o,t);n!==void 0&&G2(this.prototype,r,n)}}static getPropertyDescriptor(r,t,o){let{get:n,set:a}=W2(this.prototype,r)??{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(r,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??Rf}static _$Ei(){if(this.hasOwnProperty(Ps("elementProperties")))return;let r=X2(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Ps("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ps("properties"))){let t=this.properties,o=[...K2(t),...Y2(t)];for(let n of o)this.createProperty(n,t[n])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let o=new Set(r.flat(1/0).reverse());for(let n of o)t.unshift(Up(n))}else r!==void 0&&t.push(Up(r));return t}static _$Eu(r,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof r=="string"?r.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(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??(this._$EO=new Set)).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(r.set(o,this[o]),delete this[o]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Nf(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,o){this._$AK(r,o)}_$ET(r,t){let o=this.constructor.elementProperties.get(r),n=this.constructor._$Eu(r,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Zn).toAttribute(t,o.type);this._$Em=r,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(r,t){let o=this.constructor,n=o._$Eh.get(r);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Zn;this._$Em=n;let l=s.fromAttribute(t,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(r,t,o,n=!1,a){if(r!==void 0){let s=this.constructor;if(n===!1&&(a=this[r]),o??(o=s.getPropertyOptions(r)),!((o.hasChanged??Sa)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(r)&&!this.hasAttribute(s._$Eu(r,o))))return;this.C(r,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??(this._$Ej=new Map)).has(r)&&(this._$Ej.set(r,s??t??this[r]),a!==!0||s!==void 0)||(this._$AL.has(r)||(this.hasUpdated||o||(t=void 0),this._$AL.set(r,t)),n===!0&&this._$Em!==r&&(this._$Eq??(this._$Eq=new Set)).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!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 o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EM()}catch(o){throw r=!1,this._$EM(),o}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(r){}firstUpdated(r){}};Cn.elementStyles=[],Cn.shadowRootOptions={mode:"open"},Cn[Ps("elementProperties")]=new Map,Cn[Ps("finalized")]=new Map,J2?.({ReactiveElement:Cn}),(Jn.reactiveElementVersions??(Jn.reactiveElementVersions=[])).push("2.1.2");var Hs=globalThis,ti=class extends Cn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;let r=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=r.firstChild),r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Ca(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return re}};ti._$litElement$=!0,ti.finalized=!0,Hs.litElementHydrateSupport?.({LitElement:ti});var Z2=Hs.litElementPolyfillSupport;Z2?.({LitElement:ti});(Hs.litElementVersions??(Hs.litElementVersions=[])).push("4.2.2");var Of=new WeakMap;function Pf(i){let r=Of.get(i);return r||(r=window.getComputedStyle(i,null),Of.set(i,r)),r}function t_(i){if(typeof i.checkVisibility=="function")return i.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let r=Pf(i);return r.visibility!=="hidden"&&r.display!=="none"}function e_(i){let r=Pf(i),{overflowY:t,overflowX:o}=r;return t==="scroll"||o==="scroll"?!0:t!=="auto"||o!=="auto"?!1:i.scrollHeight>i.clientHeight&&t==="auto"||i.scrollWidth>i.clientWidth&&o==="auto"}function r_(i){let r=i.tagName.toLowerCase(),t=Number(i.getAttribute("tabindex"));return i.hasAttribute("tabindex")&&(isNaN(t)||t<=-1)||i.hasAttribute("disabled")||i.closest("[inert]")||r==="input"&&i.getAttribute("type")==="radio"&&!i.hasAttribute("checked")||!t_(i)?!1:(r==="audio"||r==="video")&&i.hasAttribute("controls")||i.hasAttribute("tabindex")||i.hasAttribute("contenteditable")&&i.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(r)?!0:e_(i)}function Hf(i){let r=jp(i),t=r[0]??null,o=r[r.length-1]??null;return{start:t,end:o}}function o_(i,r){return i.getRootNode({composed:!0})?.host!==r}function jp(i){let r=new WeakMap,t=[];function o(n){if(n instanceof Element){if(n.hasAttribute("inert")||n.closest("[inert]")||r.has(n))return;r.set(n,!0),!t.includes(n)&&r_(n)&&t.push(n),n instanceof HTMLSlotElement&&o_(n,i)&&n.assignedElements({flatten:!0}).forEach(a=>{o(a)}),n.shadowRoot!==null&&n.shadowRoot.mode==="open"&&o(n.shadowRoot)}for(let a of n.children)o(a)}return o(i),t.sort((n,a)=>{let s=Number(n.getAttribute("tabindex"))||0;return(Number(a.getAttribute("tabindex"))||0)-s})}var Ff=new WeakMap,Gp=class{constructor(r){this.handleKeyDown=r=>{if(r.key==="Enter"){if(r.altKey||r.ctrlKey||r.metaKey||r.shiftKey||r.isComposing||r.defaultPrevented)return;let o=r.target;if(this.isSelectOption(o)){r.preventDefault(),setTimeout(()=>{let a=this.findParentSelect(o);a&&this.focusNextControl(a)},0);return}if(this.shouldSkipEnterKey(o))return;let n=this.findParentGroup(o);if(n){r.preventDefault(),this.focusNextInGroup(o,n)||this.focusNextControl(n);return}r.preventDefault(),this.areRequiredFieldsFilled()?this.submitForm():this.focusNextControl(o);return}if(r.key==="ArrowDown"){let t=r.target,o=t.tagName;if(!(r.altKey||r.ctrlKey||r.metaKey||r.shiftKey)&&!r.defaultPrevented){let a=this.findParentGroup(t);if(a){r.preventDefault(),this.focusNextInGroup(t,a)||this.focusNextControl(a);return}(o==="ZN-CHECKBOX"||o==="ZN-TOGGLE")&&(r.preventDefault(),this.focusNextControl(t))}}if(r.key==="ArrowUp"){let t=r.target,o=t.tagName;if(!(r.altKey||r.ctrlKey||r.metaKey||r.shiftKey)&&!r.defaultPrevented){let a=this.findParentGroup(t);if(a){r.preventDefault(),this.focusPreviousInGroup(t,a)||this.focusPreviousControl(a);return}(o==="ZN-CHECKBOX"||o==="ZN-TOGGLE")&&(r.preventDefault(),this.focusPreviousControl(t))}}};this.form=r,this.form.addEventListener("keydown",this.handleKeyDown,!0)}shouldSkipEnterKey(r){let t=r.tagName.toLowerCase();return t==="zn-textarea"||t==="textarea"||(t==="zn-input"||t==="input")&&r.getAttribute("type")==="search"?!0:t==="button"||t==="zn-button"}shouldExcludeFromNavigation(r){let t=r.tagName.toLowerCase();return t==="button"||t==="zn-button"}isSelectOption(r){return r.tagName.toLowerCase()==="zn-option"}findParentSelect(r){let t=r;for(;t;){if(t.tagName.toLowerCase()==="zn-select")return t;let o=t.getRootNode();if(o instanceof ShadowRoot)t=o.host;else if(t.parentElement)t=t.parentElement;else break}return null}findParentGroup(r){let t=r;for(;t;){let o=t.tagName;if(o==="ZN-RADIO-GROUP"||o==="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(r){let t=r.tagName==="ZN-RADIO-GROUP"?"ZN-RADIO":"ZN-CHECKBOX",o=[],n=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>s.tagName===t?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),a;for(;a=n.nextNode();)o.push(a);return o}focusNextInGroup(r,t){let o=this.getGroupItems(t);if(o.length===0)return!1;let n=-1;for(let a=0;a<o.length;a++)if(o[a]===r||o[a].contains(r)){n=a;break}if(n>=0&&n<o.length-1){let a=o[n+1];if(typeof a.focus=="function")return a.focus(),!0}return!1}focusPreviousInGroup(r,t){let o=this.getGroupItems(t);if(o.length===0)return!1;let n=-1;for(let a=0;a<o.length;a++)if(o[a]===r||o[a].contains(r)){n=a;break}if(n>0){let a=o[n-1];if(typeof a.focus=="function")return a.focus(),!0}return!1}areRequiredFieldsFilled(){let r=Gi.get(this.form);if(!r)return!0;for(let t of r){let o=t;if(!o.name||o.disabled)continue;let n=o.value;if(!(n!=null&&n!=="")||typeof o.checkValidity=="function"&&!o.checkValidity())return!1}return!0}getNavigableControls(){let r=jp(this.form),t=[],o=new Set;for(let n of r){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){o.has(h)||(o.add(h),this.shouldExcludeFromNavigation(h)||t.push(h));continue}}if(o.has(n)||(o.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){o.has(f)||(o.add(f),this.shouldExcludeFromNavigation(f)||t.push(f));continue}}if(o.has(l)||(o.add(l),this.shouldExcludeFromNavigation(l)))continue;t.push(l);continue}}if(["input","select"].includes(a)){if(o.has(n)||(o.add(n),n.getAttribute("type")==="search"))continue;t.push(n)}}return t}findCurrentControlIndex(r,t){for(let o=0;o<t.length;o++){let n=t[o];if(n===r)return o;let a=r.getRootNode();if(a instanceof ShadowRoot&&a.host===n||n.contains(r)||r.contains(n))return o}return-1}focusNextControl(r){let t=this.getNavigableControls(),o=this.findCurrentControlIndex(r,t);if(o>=0&&o<t.length-1){let n=t[o+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(r){let t=this.getNavigableControls(),o=this.findCurrentControlIndex(r,t);if(o>0){let n=t[o-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 r=this.form.querySelector('[type="submit"]');if(r)r.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 Bf(i){let r=Ff.get(i);return r||(r=new Gp(i),Ff.set(i,r)),r}var sr=class{constructor(r,t,o=0){this.storage=r,this.prefix=t,this.ttl=o*1e3,this.cleanup()}get(r){return!r||r.length<1?null:this.stripTtl(this.storage.getItem(this.prefix+r))}stripTtl(r){if(r===null)return null;let t=r.split(",");if(t.length===1)return t[0];let o=t.shift(),n=o?parseInt(o):0;return n>0&&n<Date.now()?null:t.join(",")||""}setWithTTL(r,t,o){!r||r.length<1||(o=o>0?Date.now()+o*1e3:0,this.storage.setItem(this.prefix+r,o+","+t))}set(r,t){this.setWithTTL(r,t,this.ttl)}remove(r){this.storage.removeItem(this.prefix+r)}cleanup(){for(let r=0;r<this.storage.length;r++){let t=this.storage.key(r);t!==null&&t.startsWith(this.prefix)&&this.stripTtl(this.storage.getItem(t))===null&&this.storage.removeItem(t)}}};var Gi=new WeakMap,Fs=new WeakMap,Bs=new WeakMap,zc=new WeakMap,Wp=new WeakSet,wc=new WeakMap,Wf="znform:";function Kp(i=!1){try{return i?window.localStorage:window.sessionStorage}catch{return null}}function n_(i=!1,r=0){let t=Kp(i);return t?new sr(t,Wf,r):null}function Vf(i){let r=i?.getAttribute("store-ttl");return r&&Number(r)||0}function Uf(i){return!!i?.hasAttribute("local-storage")}function Kf(i){return i?.getAttribute("store-key")||""}function i_(i){return i.getAttribute("store-key")||""}function a_(i){return i.getAttribute("name")||("name"in i&&typeof i.name=="string"?i.name:"")}function Yf(i,r){let t=i_(i),o=Kf(r);if(t)return o?`${o}:${t}`:t;let n=a_(i);return o&&n?`${o}:${n}`:""}function Xf(i,r){let t=Uf(i)||Uf(r),o=Vf(i)||Vf(r);return n_(t,o)}function Qf(i,r){let t=Yf(i,r),n=(t?Xf(i,r):null)?.get(t);if(!n)return null;try{return JSON.parse(n)}catch{return{value:n}}}function Jf(i,r,t){let o=Yf(i,r),n=o?Xf(i,r):null;n&&n.set(o,JSON.stringify(t))}function s_(i){return i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement}function l_(i){return i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")?{checked:i.checked,value:i.value}:{value:i.value}}function c_(i){i.querySelectorAll("input, textarea, select").forEach(t=>{let o=Qf(t,i);if(o){if(t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")){typeof o.checked=="boolean"&&(t.checked=o.checked);return}"value"in o&&(t.value=String(o.value??""))}})}function jf(i,r){!s_(i)||i.form!==r||Jf(i,r,l_(i))}function d_(i,r){let t={value:r};return"checked"in i&&typeof i.checked=="boolean"&&(t.checked=i.checked),"indeterminate"in i&&typeof i.indeterminate=="boolean"&&(t.indeterminate=i.indeterminate),t}function Gf(i,r){let t=[],o=Wf+r;for(let n=0;n<i.length;n++){let a=i.key(n);(a===o||a?.startsWith(o+":"))&&t.push(a)}t.forEach(n=>i.removeItem(n))}function p_(i){let r=typeof i=="string"?i:Kf(i);if(!r)return;let t=Kp(!0),o=Kp(!1);t&&Gf(t,r),o&&o!==t&&Gf(o,r)}var ot=class{constructor(r,t){this.handleFormData=r=>{let t=this.options.disabled(this.host),o=this.options.name(this.host),n=this.options.value(this.host),a=this.host.tagName.toLowerCase()==="zn-button";if(this.host.isConnected&&!t&&!a&&o.length>0&&typeof n<"u"){let s=m=>{r.formData.append(o,m.toString())},l=(m,f)=>{let b=m,g=f??(typeof b.name=="string"?b.name:void 0);typeof g=="string"?r.formData.append(o,m,g):r.formData.append(o,m)},d=m=>typeof FileList<"u"&&m instanceof FileList,h=m=>typeof Blob<"u"&&m instanceof Blob;if(d(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(d(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=r=>{let t=this.options.disabled(this.host),o=this.options.reportValidity;this.form&&!this.form.noValidate&&Gi.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&&!o(this.host)&&(r.preventDefault(),r.stopImmediatePropagation(),n&&(n.disabled=!1,n.innerHTML=a))};this.enableSubmit=r=>{if(r.target!==this.form)return;let o=this.form?.querySelector('[type="submit"]');if(o){let n=o.getAttribute("data-original-text")??o.innerHTML;o.disabled=!1,o.innerHTML=n}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),wc.set(this.host,[])};this.handleInteraction=r=>{let t=wc.get(this.host);t.includes(r.type)||t.push(r.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0),this.persistHostValue(),this.checkFormValidity()};this.checkFormValidity=()=>{let r=this.form?.querySelector('[type="submit"]');if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let o of t)if(typeof o.checkValidity=="function"&&!o.checkValidity())return r?.setAttribute("disabled","disabled"),!1}return r?.removeAttribute("disabled"),!0};this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){let r=this.form.querySelectorAll("*");for(let t of r)if(typeof t.reportValidity=="function"&&!t.reportValidity())return!1}return!0};(this.host=r).addController(this),this.options={form:o=>{let n=o.form;if(n){let s=o.getRootNode().querySelector(`#${n}`);if(s)return s}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>o.disabled??!1,reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,checkValidity:o=>typeof o.checkValidity=="function"?o.checkValidity():!0,setValue:(o,n)=>o.value=n,assumeInteractionOn:["zn-input"],...t}}async hostConnected(){let r=this.options.form(this.host);r&&this.attachForm(r),wc.set(this.host,[]),this.options.assumeInteractionOn.forEach(t=>{this.host.addEventListener(t,this.handleInteraction)}),await this.host.updateComplete,this.restorePersistedValue(),r&&this.checkFormValidity()}hostDisconnected(){this.detachForm(),wc.delete(this.host),this.options.assumeInteractionOn.forEach(r=>{this.host.removeEventListener(r,this.handleInteraction)})}hostUpdated(){let r=this.options.form(this.host);r||this.detachForm(),r&&this.form!==r&&(this.detachForm(),this.attachForm(r)),this.host.hasUpdated&&this.setValidity(this.host.validity?.valid)}attachForm(r){if(!r){this.form=void 0;return}this.form=r,Gi.has(this.form)?Gi.get(this.form).add(this.host):Gi.set(this.form,new Set([this.host])),this.form.hasAttribute("data-enter-navigation")&&Bf(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),Fs.has(this.form)||(Fs.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),Bs.has(this.form)||(Bs.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())}detachForm(){if(!this.form)return;let r=Gi.get(this.form);r&&(r.delete(this.host),r.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),Fs.has(this.form)&&(this.form.reportValidity=Fs.get(this.form),Fs.delete(this.form)),Bs.has(this.form)&&(this.form.checkValidity=Bs.get(this.form),Bs.delete(this.form)),this.form=void 0))}attachFormPersistence(r){if(zc.has(r))return;let t=n=>jf(n.target,r),o=n=>jf(n.target,r);r.addEventListener("input",t),r.addEventListener("change",o),zc.set(r,{handleInput:t,handleChange:o}),c_(r)}detachFormPersistence(r){let t=zc.get(r);t&&(r.removeEventListener("input",t.handleInput),r.removeEventListener("change",t.handleChange),zc.delete(r))}restorePersistedValue(){let r=Qf(this.host,this.form);r&&("checked"in this.host&&typeof r.checked=="boolean"?this.options.setValue(this.host,r.checked):"value"in r&&this.options.setValue(this.host,r.value),"indeterminate"in this.host&&typeof r.indeterminate=="boolean"&&(this.host.indeterminate=r.indeterminate))}persistHostValue(){Jf(this.host,this.form,d_(this.host,this.options.value(this.host)))}setUserInteracted(r,t){t?Wp.add(r):Wp.delete(r),r.requestUpdate()}doAction(r,t){if(this.form){let o=document.createElement("button");o.type=r,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",t&&(o.name=t.name,o.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(n=>{t.hasAttribute(n)&&o.setAttribute(n,t.getAttribute(n))})),this.form.append(o),this.form instanceof HTMLFormElement&&document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:this.form}})),o.click(),o.remove()}}getForm(){return this.form??null}reset(r){this.doAction("reset",r)}submit(r){this.doAction("submit",r)}setValidity(r){let t=this.host,o=!!Wp.has(t),n=!!t.required;t.toggleAttribute("data-required",n),t.toggleAttribute("data-optional",!n),t.toggleAttribute("data-invalid",!r),t.toggleAttribute("data-valid",r),t.toggleAttribute("data-user-invalid",!r&&o),t.toggleAttribute("data-user-valid",r&&o)}updateValidity(){let r=this.host;this.setValidity(r.validity?.valid)}emitInvalidEvent(r){let t=new CustomEvent("zn-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});r||t.preventDefault(),this.host.dispatchEvent(t)||r?.preventDefault()}},Ce=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),_c=Object.freeze({...Ce,customError:!0,valid:!1}),kc=Object.freeze({...Ce,valueMissing:!0,valid:!1});var Q=class{constructor(r,...t){this.slotNames=[];this.handleSlotChange=r=>{let t=r.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()};(this.host=r).addController(this),this.slotNames=t}hasDefaultSlot(){return[...this.host.childNodes].some(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent.trim()!=="")return!0;if(r.nodeType===r.ELEMENT_NODE){let t=r;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(r){return this.host.querySelector(`:scope > [slot="${r}"]`)!==null}test(r){return r==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(r)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}getSlot(r){return this.host.querySelector(`:scope > [slot="${r}"]`)}getDefaultSlot(){return[...this.host.childNodes].filter(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent.trim()!=="")return!0;if(r.nodeType===r.ELEMENT_NODE){let t=r;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}getSlots(r){return this.host.querySelectorAll(`:scope > [slot="${r}"]`)}};function Zf(i){if(!i)return"";let r=i.assignedNodes({flatten:!0}),t="";return[...r].forEach(o=>{o.nodeType===Node.TEXT_NODE&&(t+=o.textContent)}),t}var eg=Symbol.for(""),h_=i=>{if(i?.r===eg)return i?._$litStatic$};var Sn=(i,...r)=>({_$litStatic$:r.reduce((t,o,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
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Cf=/'/g,Sf=/"/g,Af=/^(?:script|style|textarea|title)$/i,Bp=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),u=Bp(1),$o=Bp(2),$f=Bp(3),re=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Ef=new WeakMap,Bi=Vi.createTreeWalker(Vi,129);function qf(i,r){if(!Fp(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return wf!==void 0?wf.createHTML(r):r}var Lf=(i,r)=>{let t=i.length-1,o=[],n,a=r===2?"<svg>":r===3?"<math>":"",s=Ms;for(let l=0;l<t;l++){let d=i[l],h,m,f=-1,b=0;for(;b<d.length&&(s.lastIndex=b,m=s.exec(d),m!==null);)b=s.lastIndex,s===Ms?m[1]==="!--"?s=_f:m[1]!==void 0?s=kf:m[2]!==void 0?(Af.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Fi):m[3]!==void 0&&(s=Fi):s===Fi?m[0]===">"?(s=n??Ms,f=-1):m[1]===void 0?f=-2:(f=s.lastIndex-m[2].length,h=m[1],s=m[3]===void 0?Fi:m[3]==='"'?Sf:Cf):s===Sf||s===Cf?s=Fi:s===_f||s===kf?s=Ms:(s=Fi,n=void 0);let g=s===Fi&&i[l+1].startsWith("/>")?" ":"";a+=s===Ms?d+V2:f>=0?(o.push(h),d.slice(0,f)+Pp+d.slice(f)+kn+g):d+kn+(f===-2?l:g)}return[qf(i,a+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),o]},Rs=class i{constructor({strings:r,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=r.length-1,d=this.parts,[h,m]=Lf(r,t);if(this.el=i.createElement(h,o),Bi.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=Bi.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Pp)){let b=m[s++],g=n.getAttribute(f).split(kn),v=/([.?@])?(.*)/.exec(b);d.push({type:1,index:a,name:v[2],strings:g,ctor:v[1]==="."?fc:v[1]==="?"?gc:v[1]==="@"?bc:ji}),n.removeAttribute(f)}else f.startsWith(kn)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(Af.test(n.tagName)){let f=n.textContent.split(kn),b=f.length-1;if(b>0){n.textContent=uc?uc.emptyScript:"";for(let g=0;g<b;g++)n.append(f[g],Ns()),Bi.nextNode(),d.push({type:2,index:++a});n.append(f[b],Ns())}}}else if(n.nodeType===8)if(n.data===Hp)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(kn,f+1))!==-1;)d.push({type:7,index:a}),f+=kn.length-1}a++}}static createElement(r,t){let o=Vi.createElement("template");return o.innerHTML=r,o}};function Ui(i,r,t=i,o){if(r===re)return r;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=Ds(r)?void 0:r._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(i),n._$AT(i,t,o)),o!==void 0?(t._$Co??(t._$Co=[]))[o]=n:t._$Cl=n),n!==void 0&&(r=Ui(i,n._$AS(i,r.values),n,o)),r}var mc=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:o}=this._$AD,n=(r?.creationScope??Vi).importNode(t,!0);Bi.currentNode=n;let a=Bi.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new ka(a,a.nextSibling,this,r):d.type===1?h=new d.ctor(a,d.name,d.strings,this,r):d.type===6&&(h=new vc(a,this,r)),this._$AV.push(h),d=o[++l]}s!==d?.index&&(a=Bi.nextNode(),s++)}return Bi.currentNode=Vi,n}p(r){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(r,o,t),t+=o.strings.length-2):o._$AI(r[t])),t++}},ka=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,o,n){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=Ui(this,r,t),Ds(r)?r===G||r==null||r===""?(this._$AH!==G&&this._$AR(),this._$AH=G):r!==this._$AH&&r!==re&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):Tf(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==G&&Ds(this._$AH)?this._$AA.nextSibling.data=r:this.T(Vi.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:o}=r,n=typeof o=="number"?this._$AC(r):(o.el===void 0&&(o.el=Rs.createElement(qf(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new mc(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(r){let t=Ef.get(r.strings);return t===void 0&&Ef.set(r.strings,t=new Rs(r)),t}k(r){Fp(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of r)n===t.length?t.push(o=new i(this.O(Ns()),this.O(Ns()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let o=zf(r).nextSibling;zf(r).remove(),r=o}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},ji=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,o,n,a){this.type=1,this._$AH=G,this._$AN=void 0,this.element=r,this.name=t,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=G}_$AI(r,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)r=Ui(this,r,t,0),s=!Ds(r)||r!==this._$AH&&r!==re,s&&(this._$AH=r);else{let l=r,d,h;for(r=a[0],d=0;d<a.length-1;d++)h=Ui(this,l[o+d],t,d),h===re&&(h=this._$AH[d]),s||(s=!Ds(h)||h!==this._$AH[d]),h===G?r=G:r!==G&&(r+=(h??"")+a[d+1]),this._$AH[d]=h}s&&!n&&this.j(r)}j(r){r===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},fc=class extends ji{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===G?void 0:r}},gc=class extends ji{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==G)}},bc=class extends ji{constructor(r,t,o,n,a){super(r,t,o,n,a),this.type=5}_$AI(r,t=this){if((r=Ui(this,r,t,0)??G)===re)return;let o=this._$AH,n=r===G&&o!==G||r.capture!==o.capture||r.once!==o.once||r.passive!==o.passive,a=r!==G&&(o===G||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},vc=class{constructor(r,t,o){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(r){Ui(this,r)}},Mf={M:Pp,P:kn,A:Hp,C:1,L:Lf,R:mc,D:Tf,V:Ui,I:ka,H:ji,N:gc,U:bc,B:fc,F:vc},U2=Is.litHtmlPolyfillSupport;U2?.(Rs,ka),(Is.litHtmlVersions??(Is.litHtmlVersions=[])).push("3.3.3");var Ca=(i,r,t)=>{let o=t?.renderBefore??r,n=o._$litPart$;if(n===void 0){let a=t?.renderBefore??null;o._$litPart$=n=new ka(r.insertBefore(Ns(),a),a,void 0,t??{})}return n._$AI(i),n};var Je={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},oe=i=>(...r)=>({_$litDirective$:i,values:r}),je=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,t,o){this._$Ct=r,this._$AM=t,this._$Ci=o}_$AS(r,t){return this.update(r,t)}update(r,t){return this.render(...t)}};var N=oe(class extends je{constructor(i){if(super(i),i.type!==Je.ATTRIBUTE||i.name!=="class"||i.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(r=>i[r]).join(" ")+" "}update(i,[r]){if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in r)r[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(r)}let t=i.element.classList;for(let o of this.st)o in r||(t.remove(o),this.st.delete(o));for(let o in r){let n=!!r[o];n===this.st.has(o)||this.nt?.has(o)||(n?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return re}});var xc=globalThis,yc=xc.ShadowRoot&&(xc.ShadyCSS===void 0||xc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vp=Symbol(),If=new WeakMap,Os=class{constructor(r,t,o){if(this._$cssResult$=!0,o!==Vp)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if(yc&&r===void 0){let o=t!==void 0&&t.length===1;o&&(r=If.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),o&&If.set(t,r))}return r}toString(){return this.cssText}},A=i=>new Os(typeof i=="string"?i:i+"",void 0,Vp),T=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((o,n,a)=>o+(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)+i[a+1],i[0]);return new Os(t,i,Vp)},Nf=(i,r)=>{if(yc)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let o=document.createElement("style"),n=xc.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,i.appendChild(o)}},Up=yc?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let o of r.cssRules)t+=o.cssText;return A(t)})(i):i;var{is:j2,defineProperty:G2,getOwnPropertyDescriptor:W2,getOwnPropertyNames:K2,getOwnPropertySymbols:Y2,getPrototypeOf:X2}=Object,Jn=globalThis,Df=Jn.trustedTypes,Q2=Df?Df.emptyScript:"",J2=Jn.reactiveElementPolyfillSupport,Ps=(i,r)=>i,Zn={toAttribute(i,r){switch(r){case Boolean:i=i?Q2:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Sa=(i,r)=>!j2(i,r),Rf={attribute:!0,type:String,converter:Zn,reflect:!1,useDefault:!1,hasChanged:Sa};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Jn.litPropertyMetadata??(Jn.litPropertyMetadata=new WeakMap);var Cn=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??(this.l=[])).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=Rf){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(r,o,t);n!==void 0&&G2(this.prototype,r,n)}}static getPropertyDescriptor(r,t,o){let{get:n,set:a}=W2(this.prototype,r)??{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(r,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??Rf}static _$Ei(){if(this.hasOwnProperty(Ps("elementProperties")))return;let r=X2(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Ps("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ps("properties"))){let t=this.properties,o=[...K2(t),...Y2(t)];for(let n of o)this.createProperty(n,t[n])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let o=new Set(r.flat(1/0).reverse());for(let n of o)t.unshift(Up(n))}else r!==void 0&&t.push(Up(r));return t}static _$Eu(r,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof r=="string"?r.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(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??(this._$EO=new Set)).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(r.set(o,this[o]),delete this[o]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Nf(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,o){this._$AK(r,o)}_$ET(r,t){let o=this.constructor.elementProperties.get(r),n=this.constructor._$Eu(r,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Zn).toAttribute(t,o.type);this._$Em=r,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(r,t){let o=this.constructor,n=o._$Eh.get(r);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Zn;this._$Em=n;let l=s.fromAttribute(t,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(r,t,o,n=!1,a){if(r!==void 0){let s=this.constructor;if(n===!1&&(a=this[r]),o??(o=s.getPropertyOptions(r)),!((o.hasChanged??Sa)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(r)&&!this.hasAttribute(s._$Eu(r,o))))return;this.C(r,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??(this._$Ej=new Map)).has(r)&&(this._$Ej.set(r,s??t??this[r]),a!==!0||s!==void 0)||(this._$AL.has(r)||(this.hasUpdated||o||(t=void 0),this._$AL.set(r,t)),n===!0&&this._$Em!==r&&(this._$Eq??(this._$Eq=new Set)).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!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 o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EM()}catch(o){throw r=!1,this._$EM(),o}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(r){}firstUpdated(r){}};Cn.elementStyles=[],Cn.shadowRootOptions={mode:"open"},Cn[Ps("elementProperties")]=new Map,Cn[Ps("finalized")]=new Map,J2?.({ReactiveElement:Cn}),(Jn.reactiveElementVersions??(Jn.reactiveElementVersions=[])).push("2.1.2");var Hs=globalThis,ti=class extends Cn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;let r=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=r.firstChild),r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Ca(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return re}};ti._$litElement$=!0,ti.finalized=!0,Hs.litElementHydrateSupport?.({LitElement:ti});var Z2=Hs.litElementPolyfillSupport;Z2?.({LitElement:ti});(Hs.litElementVersions??(Hs.litElementVersions=[])).push("4.2.2");var Of=new WeakMap;function Pf(i){let r=Of.get(i);return r||(r=window.getComputedStyle(i,null),Of.set(i,r)),r}function t_(i){if(typeof i.checkVisibility=="function")return i.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let r=Pf(i);return r.visibility!=="hidden"&&r.display!=="none"}function e_(i){let r=Pf(i),{overflowY:t,overflowX:o}=r;return t==="scroll"||o==="scroll"?!0:t!=="auto"||o!=="auto"?!1:i.scrollHeight>i.clientHeight&&t==="auto"||i.scrollWidth>i.clientWidth&&o==="auto"}function r_(i){let r=i.tagName.toLowerCase(),t=Number(i.getAttribute("tabindex"));return i.hasAttribute("tabindex")&&(isNaN(t)||t<=-1)||i.hasAttribute("disabled")||i.closest("[inert]")||r==="input"&&i.getAttribute("type")==="radio"&&!i.hasAttribute("checked")||!t_(i)?!1:(r==="audio"||r==="video")&&i.hasAttribute("controls")||i.hasAttribute("tabindex")||i.hasAttribute("contenteditable")&&i.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(r)?!0:e_(i)}function Hf(i){let r=jp(i),t=r[0]??null,o=r[r.length-1]??null;return{start:t,end:o}}function o_(i,r){return i.getRootNode({composed:!0})?.host!==r}function jp(i){let r=new WeakMap,t=[];function o(n){if(n instanceof Element){if(n.hasAttribute("inert")||n.closest("[inert]")||r.has(n))return;r.set(n,!0),!t.includes(n)&&r_(n)&&t.push(n),n instanceof HTMLSlotElement&&o_(n,i)&&n.assignedElements({flatten:!0}).forEach(a=>{o(a)}),n.shadowRoot!==null&&n.shadowRoot.mode==="open"&&o(n.shadowRoot)}for(let a of n.children)o(a)}return o(i),t.sort((n,a)=>{let s=Number(n.getAttribute("tabindex"))||0;return(Number(a.getAttribute("tabindex"))||0)-s})}var Ff=new WeakMap,Gp=class{constructor(r){this.handleKeyDown=r=>{if(r.key==="Enter"){if(r.altKey||r.ctrlKey||r.metaKey||r.shiftKey||r.isComposing||r.defaultPrevented)return;let o=r.target;if(this.isSelectOption(o)){r.preventDefault(),setTimeout(()=>{let a=this.findParentSelect(o);a&&this.focusNextControl(a)},0);return}if(this.shouldSkipEnterKey(o)||o.hasAttribute("trigger-submit"))return;let n=this.findParentGroup(o);if(n){r.preventDefault(),this.focusNextInGroup(o,n)||this.focusNextControl(n);return}r.preventDefault(),this.areRequiredFieldsFilled()?this.submitForm():this.focusNextControl(o);return}if(r.key==="ArrowDown"){let t=r.target,o=t.tagName;if(!(r.altKey||r.ctrlKey||r.metaKey||r.shiftKey)&&!r.defaultPrevented){let a=this.findParentGroup(t);if(a){r.preventDefault(),this.focusNextInGroup(t,a)||this.focusNextControl(a);return}(o==="ZN-CHECKBOX"||o==="ZN-TOGGLE")&&(r.preventDefault(),this.focusNextControl(t))}}if(r.key==="ArrowUp"){let t=r.target,o=t.tagName;if(!(r.altKey||r.ctrlKey||r.metaKey||r.shiftKey)&&!r.defaultPrevented){let a=this.findParentGroup(t);if(a){r.preventDefault(),this.focusPreviousInGroup(t,a)||this.focusPreviousControl(a);return}(o==="ZN-CHECKBOX"||o==="ZN-TOGGLE")&&(r.preventDefault(),this.focusPreviousControl(t))}}};this.form=r,this.form.addEventListener("keydown",this.handleKeyDown,!0)}shouldSkipEnterKey(r){let t=r.tagName.toLowerCase();return t==="zn-textarea"||t==="textarea"||(t==="zn-input"||t==="input")&&r.getAttribute("type")==="search"?!0:t==="button"||t==="zn-button"}shouldExcludeFromNavigation(r){let t=r.tagName.toLowerCase();return t==="button"||t==="zn-button"}isSelectOption(r){return r.tagName.toLowerCase()==="zn-option"}findParentSelect(r){let t=r;for(;t;){if(t.tagName.toLowerCase()==="zn-select")return t;let o=t.getRootNode();if(o instanceof ShadowRoot)t=o.host;else if(t.parentElement)t=t.parentElement;else break}return null}findParentGroup(r){let t=r;for(;t;){let o=t.tagName;if(o==="ZN-RADIO-GROUP"||o==="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(r){let t=r.tagName==="ZN-RADIO-GROUP"?"ZN-RADIO":"ZN-CHECKBOX",o=[],n=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>s.tagName===t?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),a;for(;a=n.nextNode();)o.push(a);return o}focusNextInGroup(r,t){let o=this.getGroupItems(t);if(o.length===0)return!1;let n=-1;for(let a=0;a<o.length;a++)if(o[a]===r||o[a].contains(r)){n=a;break}if(n>=0&&n<o.length-1){let a=o[n+1];if(typeof a.focus=="function")return a.focus(),!0}return!1}focusPreviousInGroup(r,t){let o=this.getGroupItems(t);if(o.length===0)return!1;let n=-1;for(let a=0;a<o.length;a++)if(o[a]===r||o[a].contains(r)){n=a;break}if(n>0){let a=o[n-1];if(typeof a.focus=="function")return a.focus(),!0}return!1}areRequiredFieldsFilled(){let r=Gi.get(this.form);if(!r)return!0;for(let t of r){let o=t;if(!o.name||o.disabled)continue;let n=o.value;if(!(n!=null&&n!=="")||typeof o.checkValidity=="function"&&!o.checkValidity())return!1}return!0}getNavigableControls(){let r=jp(this.form),t=[],o=new Set;for(let n of r){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){o.has(h)||(o.add(h),this.shouldExcludeFromNavigation(h)||t.push(h));continue}}if(o.has(n)||(o.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){o.has(f)||(o.add(f),this.shouldExcludeFromNavigation(f)||t.push(f));continue}}if(o.has(l)||(o.add(l),this.shouldExcludeFromNavigation(l)))continue;t.push(l);continue}}if(["input","select"].includes(a)){if(o.has(n)||(o.add(n),n.getAttribute("type")==="search"))continue;t.push(n)}}return t}findCurrentControlIndex(r,t){for(let o=0;o<t.length;o++){let n=t[o];if(n===r)return o;let a=r.getRootNode();if(a instanceof ShadowRoot&&a.host===n||n.contains(r)||r.contains(n))return o}return-1}focusNextControl(r){let t=this.getNavigableControls(),o=this.findCurrentControlIndex(r,t);if(o>=0&&o<t.length-1){let n=t[o+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(r){let t=this.getNavigableControls(),o=this.findCurrentControlIndex(r,t);if(o>0){let n=t[o-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 r=this.form.querySelector('[type="submit"]');if(r)r.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 Bf(i){let r=Ff.get(i);return r||(r=new Gp(i),Ff.set(i,r)),r}var sr=class{constructor(r,t,o=0){this.storage=r,this.prefix=t,this.ttl=o*1e3,this.cleanup()}get(r){return!r||r.length<1?null:this.stripTtl(this.storage.getItem(this.prefix+r))}stripTtl(r){if(r===null)return null;let t=r.split(",");if(t.length===1)return t[0];let o=t.shift(),n=o?parseInt(o):0;return n>0&&n<Date.now()?null:t.join(",")||""}setWithTTL(r,t,o){!r||r.length<1||(o=o>0?Date.now()+o*1e3:0,this.storage.setItem(this.prefix+r,o+","+t))}set(r,t){this.setWithTTL(r,t,this.ttl)}remove(r){this.storage.removeItem(this.prefix+r)}cleanup(){for(let r=0;r<this.storage.length;r++){let t=this.storage.key(r);t!==null&&t.startsWith(this.prefix)&&this.stripTtl(this.storage.getItem(t))===null&&this.storage.removeItem(t)}}};var Gi=new WeakMap,Fs=new WeakMap,Bs=new WeakMap,zc=new WeakMap,Wp=new WeakSet,wc=new WeakMap,Wf="znform:";function Kp(i=!1){try{return i?window.localStorage:window.sessionStorage}catch{return null}}function n_(i=!1,r=0){let t=Kp(i);return t?new sr(t,Wf,r):null}function Vf(i){let r=i?.getAttribute("store-ttl");return r&&Number(r)||0}function Uf(i){return!!i?.hasAttribute("local-storage")}function Kf(i){return i?.getAttribute("store-key")||""}function i_(i){return i.getAttribute("store-key")||""}function a_(i){return i.getAttribute("name")||("name"in i&&typeof i.name=="string"?i.name:"")}function Yf(i,r){let t=i_(i),o=Kf(r);if(t)return o?`${o}:${t}`:t;let n=a_(i);return o&&n?`${o}:${n}`:""}function Xf(i,r){let t=Uf(i)||Uf(r),o=Vf(i)||Vf(r);return n_(t,o)}function Qf(i,r){let t=Yf(i,r),n=(t?Xf(i,r):null)?.get(t);if(!n)return null;try{return JSON.parse(n)}catch{return{value:n}}}function Jf(i,r,t){let o=Yf(i,r),n=o?Xf(i,r):null;n&&n.set(o,JSON.stringify(t))}function s_(i){return i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement}function l_(i){return i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")?{checked:i.checked,value:i.value}:{value:i.value}}function c_(i){i.querySelectorAll("input, textarea, select").forEach(t=>{let o=Qf(t,i);if(o){if(t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")){typeof o.checked=="boolean"&&(t.checked=o.checked);return}"value"in o&&(t.value=String(o.value??""))}})}function jf(i,r){!s_(i)||i.form!==r||Jf(i,r,l_(i))}function d_(i,r){let t={value:r};return"checked"in i&&typeof i.checked=="boolean"&&(t.checked=i.checked),"indeterminate"in i&&typeof i.indeterminate=="boolean"&&(t.indeterminate=i.indeterminate),t}function Gf(i,r){let t=[],o=Wf+r;for(let n=0;n<i.length;n++){let a=i.key(n);(a===o||a?.startsWith(o+":"))&&t.push(a)}t.forEach(n=>i.removeItem(n))}function p_(i){let r=typeof i=="string"?i:Kf(i);if(!r)return;let t=Kp(!0),o=Kp(!1);t&&Gf(t,r),o&&o!==t&&Gf(o,r)}var ot=class{constructor(r,t){this.handleFormData=r=>{let t=this.options.disabled(this.host),o=this.options.name(this.host),n=this.options.value(this.host),a=this.host.tagName.toLowerCase()==="zn-button";if(this.host.isConnected&&!t&&!a&&o.length>0&&typeof n<"u"){let s=m=>{r.formData.append(o,m.toString())},l=(m,f)=>{let b=m,g=f??(typeof b.name=="string"?b.name:void 0);typeof g=="string"?r.formData.append(o,m,g):r.formData.append(o,m)},d=m=>typeof FileList<"u"&&m instanceof FileList,h=m=>typeof Blob<"u"&&m instanceof Blob;if(d(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(d(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=r=>{let t=this.options.disabled(this.host),o=this.options.reportValidity;this.form&&!this.form.noValidate&&Gi.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&&!o(this.host)&&(r.preventDefault(),r.stopImmediatePropagation(),n&&(n.disabled=!1,n.innerHTML=a))};this.enableSubmit=r=>{if(r.target!==this.form)return;let o=this.form?.querySelector('[type="submit"]');if(o){let n=o.getAttribute("data-original-text")??o.innerHTML;o.disabled=!1,o.innerHTML=n}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),wc.set(this.host,[])};this.handleInteraction=r=>{let t=wc.get(this.host);t.includes(r.type)||t.push(r.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0),this.persistHostValue(),this.checkFormValidity()};this.checkFormValidity=()=>{let r=this.form?.querySelector('[type="submit"]');if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let o of t)if(typeof o.checkValidity=="function"&&!o.checkValidity())return r?.setAttribute("disabled","disabled"),!1}return r?.removeAttribute("disabled"),!0};this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){let r=this.form.querySelectorAll("*");for(let t of r)if(typeof t.reportValidity=="function"&&!t.reportValidity())return!1}return!0};(this.host=r).addController(this),this.options={form:o=>{let n=o.form;if(n){let s=o.getRootNode().querySelector(`#${n}`);if(s)return s}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>o.disabled??!1,reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,checkValidity:o=>typeof o.checkValidity=="function"?o.checkValidity():!0,setValue:(o,n)=>o.value=n,assumeInteractionOn:["zn-input"],...t}}async hostConnected(){let r=this.options.form(this.host);r&&this.attachForm(r),wc.set(this.host,[]),this.options.assumeInteractionOn.forEach(t=>{this.host.addEventListener(t,this.handleInteraction)}),await this.host.updateComplete,this.restorePersistedValue(),r&&this.checkFormValidity()}hostDisconnected(){this.detachForm(),wc.delete(this.host),this.options.assumeInteractionOn.forEach(r=>{this.host.removeEventListener(r,this.handleInteraction)})}hostUpdated(){let r=this.options.form(this.host);r||this.detachForm(),r&&this.form!==r&&(this.detachForm(),this.attachForm(r)),this.host.hasUpdated&&this.setValidity(this.host.validity?.valid)}attachForm(r){if(!r){this.form=void 0;return}this.form=r,Gi.has(this.form)?Gi.get(this.form).add(this.host):Gi.set(this.form,new Set([this.host])),this.form.hasAttribute("data-enter-navigation")&&Bf(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),Fs.has(this.form)||(Fs.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),Bs.has(this.form)||(Bs.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())}detachForm(){if(!this.form)return;let r=Gi.get(this.form);r&&(r.delete(this.host),r.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),Fs.has(this.form)&&(this.form.reportValidity=Fs.get(this.form),Fs.delete(this.form)),Bs.has(this.form)&&(this.form.checkValidity=Bs.get(this.form),Bs.delete(this.form)),this.form=void 0))}attachFormPersistence(r){if(zc.has(r))return;let t=n=>jf(n.target,r),o=n=>jf(n.target,r);r.addEventListener("input",t),r.addEventListener("change",o),zc.set(r,{handleInput:t,handleChange:o}),c_(r)}detachFormPersistence(r){let t=zc.get(r);t&&(r.removeEventListener("input",t.handleInput),r.removeEventListener("change",t.handleChange),zc.delete(r))}restorePersistedValue(){let r=Qf(this.host,this.form);r&&("checked"in this.host&&typeof r.checked=="boolean"?this.options.setValue(this.host,r.checked):"value"in r&&this.options.setValue(this.host,r.value),"indeterminate"in this.host&&typeof r.indeterminate=="boolean"&&(this.host.indeterminate=r.indeterminate))}persistHostValue(){Jf(this.host,this.form,d_(this.host,this.options.value(this.host)))}setUserInteracted(r,t){t?Wp.add(r):Wp.delete(r),r.requestUpdate()}doAction(r,t){if(this.form){let o=document.createElement("button");o.type=r,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",t&&(o.name=t.name,o.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(n=>{t.hasAttribute(n)&&o.setAttribute(n,t.getAttribute(n))})),this.form.append(o),this.form instanceof HTMLFormElement&&document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:this.form}})),o.click(),o.remove()}}getForm(){return this.form??null}reset(r){this.doAction("reset",r)}submit(r){this.doAction("submit",r)}setValidity(r){let t=this.host,o=!!Wp.has(t),n=!!t.required;t.toggleAttribute("data-required",n),t.toggleAttribute("data-optional",!n),t.toggleAttribute("data-invalid",!r),t.toggleAttribute("data-valid",r),t.toggleAttribute("data-user-invalid",!r&&o),t.toggleAttribute("data-user-valid",r&&o)}updateValidity(){let r=this.host;this.setValidity(r.validity?.valid)}emitInvalidEvent(r){let t=new CustomEvent("zn-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});r||t.preventDefault(),this.host.dispatchEvent(t)||r?.preventDefault()}},Ce=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),_c=Object.freeze({...Ce,customError:!0,valid:!1}),kc=Object.freeze({...Ce,valueMissing:!0,valid:!1});var Q=class{constructor(r,...t){this.slotNames=[];this.handleSlotChange=r=>{let t=r.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()};(this.host=r).addController(this),this.slotNames=t}hasDefaultSlot(){return[...this.host.childNodes].some(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent.trim()!=="")return!0;if(r.nodeType===r.ELEMENT_NODE){let t=r;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(r){return this.host.querySelector(`:scope > [slot="${r}"]`)!==null}test(r){return r==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(r)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}getSlot(r){return this.host.querySelector(`:scope > [slot="${r}"]`)}getDefaultSlot(){return[...this.host.childNodes].filter(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent.trim()!=="")return!0;if(r.nodeType===r.ELEMENT_NODE){let t=r;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}getSlots(r){return this.host.querySelectorAll(`:scope > [slot="${r}"]`)}};function Zf(i){if(!i)return"";let r=i.assignedNodes({flatten:!0}),t="";return[...r].forEach(o=>{o.nodeType===Node.TEXT_NODE&&(t+=o.textContent)}),t}var eg=Symbol.for(""),h_=i=>{if(i?.r===eg)return i?._$litStatic$};var Sn=(i,...r)=>({_$litStatic$:r.reduce((t,o,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
5
  take care to ensure page security.`)})(o)+i[n+1],i[0]),r:eg}),tg=new Map,Yp=i=>(r,...t)=>{let o=t.length,n,a,s=[],l=[],d,h=0,m=!1;for(;h<o;){for(d=r[h];h<o&&(a=t[h],(n=h_(a))!==void 0);)d+=n+r[++h],m=!0;h!==o&&l.push(a),s.push(d),h++}if(h===o&&s.push(r[o]),m){let f=s.join("$$lit$$");(r=tg.get(f))===void 0&&(s.raw=s,tg.set(f,r=s)),t=l}return i(r,...t)},ne=Yp(u),Qq=Yp($o),Jq=Yp($f);var P=i=>i??G;var rg=i=>(r,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(i,r)}):customElements.define(i,r)};var u_={attribute:!0,type:String,converter:Zn,reflect:!1,hasChanged:Sa},m_=(i=u_,r,t)=>{let{kind:o,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((i=Object.create(i)).wrapped=!0),a.set(t.name,i),o==="accessor"){let{name:s}=t;return{set(l){let d=r.get.call(this);r.set.call(this,l),this.requestUpdate(s,d,i,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,i,l),l}}}if(o==="setter"){let{name:s}=t;return function(l){let d=this[s];r.call(this,l),this.requestUpdate(s,d,i,!0,l)}}throw Error("Unsupported decorator location: "+o)};function p(i){return(r,t)=>typeof t=="object"?m_(i,r,t):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(i,r,t)}function H(i){return p({...i,state:!0,attribute:!1})}function og(i){return(r,t)=>{let o=typeof r=="function"?r:r[t];Object.assign(o,i)}}var Jo=(i,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,t),t);function F(i,r){return(t,o,n)=>{let a=s=>s.renderRoot?.querySelector(i)??null;if(r){let{get:s,set:l}=typeof o=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(h){this[d]=h}}})();return Jo(t,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Jo(t,o,{get(){return a(this)}})}}var f_;function Cc(i){return(r,t)=>Jo(r,t,{get(){return(this.renderRoot??f_??(f_=document.createDocumentFragment())).querySelectorAll(i)}})}function ng(i){return(r,t)=>Jo(r,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(i)??null}})}function ig(i){return(r,t)=>{let{slot:o}=i??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Jo(r,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(i)??[]}})}}var ag="important",g_=" !"+ag,qo=oe(class extends je{constructor(i){if(super(i),i.type!==Je.ATTRIBUTE||i.name!=="style"||i.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(i){return Object.keys(i).reduce((r,t)=>{let o=i[t];return o==null?r:r+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(i,[r]){let{style:t}=i.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(r)),this.render(r);for(let o of this.ft)r[o]==null&&(this.ft.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in r){let n=r[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(g_);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?ag:""):t[o]=n}}return re}});function K(i,r){let t={waitUntilFirstUpdate:!1,...r};return(o,n)=>{let{update:a}=o,s=Array.isArray(i)?i:[i];o.update=function(l){s.forEach(d=>{let h=d;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 b_=Object.defineProperty,v_=(i,r,t)=>r in i?b_(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t,Xp=(i,r,t)=>(v_(i,typeof r!="symbol"?r+"":r,t),t),x_=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)},Qp=(i,r)=>{if(Object(r)!==r)throw TypeError('Cannot use the "in" operator on this value');return i.has(r)},Sc=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},sg=(i,r,t)=>(x_(i,r,"access private method"),t);function lg(i,r){return Object.is(i,r)}var Se=null,Vs=!1,Ec=1,Tc=Symbol("SIGNAL");function Ea(i){let r=Se;return Se=i,r}function y_(){return Se}function z_(){return Vs}var rh={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 Ac(i){if(Vs)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Se===null)return;Se.consumerOnSignalRead(i);let r=Se.nextProducerIndex++;if(Ta(Se),r<Se.producerNode.length&&Se.producerNode[r]!==i&&th(Se)){let t=Se.producerNode[r];$c(t,Se.producerIndexOfThis[r])}Se.producerNode[r]!==i&&(Se.producerNode[r]=i,Se.producerIndexOfThis[r]=th(Se)?pg(i,Se,r):0),Se.producerLastReadVersion[r]=i.version}function w_(){Ec++}function cg(i){if(!(!i.dirty&&i.lastCleanEpoch===Ec)){if(!i.producerMustRecompute(i)&&!E_(i)){i.dirty=!1,i.lastCleanEpoch=Ec;return}i.producerRecomputeValue(i),i.dirty=!1,i.lastCleanEpoch=Ec}}function dg(i){if(i.liveConsumerNode===void 0)return;let r=Vs;Vs=!0;try{for(let t of i.liveConsumerNode)t.dirty||k_(t)}finally{Vs=r}}function __(){return Se?.consumerAllowSignalWrites!==!1}function k_(i){var r;i.dirty=!0,dg(i),(r=i.consumerMarkedDirty)==null||r.call(i.wrapper??i)}function C_(i){return i&&(i.nextProducerIndex=0),Ea(i)}function S_(i,r){if(Ea(r),!(!i||i.producerNode===void 0||i.producerIndexOfThis===void 0||i.producerLastReadVersion===void 0)){if(th(i))for(let t=i.nextProducerIndex;t<i.producerNode.length;t++)$c(i.producerNode[t],i.producerIndexOfThis[t]);for(;i.producerNode.length>i.nextProducerIndex;)i.producerNode.pop(),i.producerLastReadVersion.pop(),i.producerIndexOfThis.pop()}}function E_(i){Ta(i);for(let r=0;r<i.producerNode.length;r++){let t=i.producerNode[r],o=i.producerLastReadVersion[r];if(o!==t.version||(cg(t),o!==t.version))return!0}return!1}function pg(i,r,t){var o;if(oh(i),Ta(i),i.liveConsumerNode.length===0){(o=i.watched)==null||o.call(i.wrapper);for(let n=0;n<i.producerNode.length;n++)i.producerIndexOfThis[n]=pg(i.producerNode[n],i,n)}return i.liveConsumerIndexOfThis.push(t),i.liveConsumerNode.push(r)-1}function $c(i,r){var t;if(oh(i),Ta(i),typeof ngDevMode<"u"&&ngDevMode&&r>=i.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${r} is out of bounds of ${i.liveConsumerNode.length} consumers)`);if(i.liveConsumerNode.length===1){(t=i.unwatched)==null||t.call(i.wrapper);for(let n=0;n<i.producerNode.length;n++)$c(i.producerNode[n],i.producerIndexOfThis[n])}let o=i.liveConsumerNode.length-1;if(i.liveConsumerNode[r]=i.liveConsumerNode[o],i.liveConsumerIndexOfThis[r]=i.liveConsumerIndexOfThis[o],i.liveConsumerNode.length--,i.liveConsumerIndexOfThis.length--,r<i.liveConsumerNode.length){let n=i.liveConsumerIndexOfThis[r],a=i.liveConsumerNode[r];Ta(a),a.producerIndexOfThis[n]=r}}function th(i){var r;return i.consumerIsAlwaysLive||(((r=i?.liveConsumerNode)==null?void 0:r.length)??0)>0}function Ta(i){i.producerNode??(i.producerNode=[]),i.producerIndexOfThis??(i.producerIndexOfThis=[]),i.producerLastReadVersion??(i.producerLastReadVersion=[])}function oh(i){i.liveConsumerNode??(i.liveConsumerNode=[]),i.liveConsumerIndexOfThis??(i.liveConsumerIndexOfThis=[])}function hg(i){if(cg(i),Ac(i),i.value===eh)throw i.error;return i.value}function T_(i){let r=Object.create(A_);r.computation=i;let t=()=>hg(r);return t[Tc]=r,t}var Jp=Symbol("UNSET"),Zp=Symbol("COMPUTING"),eh=Symbol("ERRORED"),A_={...rh,value:Jp,dirty:!0,error:null,equal:lg,producerMustRecompute(i){return i.value===Jp||i.value===Zp},producerRecomputeValue(i){if(i.value===Zp)throw new Error("Detected cycle in computations.");let r=i.value;i.value=Zp;let t=C_(i),o,n=!1;try{o=i.computation.call(i.wrapper),n=r!==Jp&&r!==eh&&i.equal.call(i.wrapper,r,o)}catch(a){o=eh,i.error=a}finally{S_(i,t)}if(n){i.value=r;return}i.value=o,i.version++}};function $_(){throw new Error}var q_=$_;function L_(){q_()}function M_(i){let r=Object.create(D_);r.value=i;let t=()=>(Ac(r),r.value);return t[Tc]=r,t}function I_(){return Ac(this),this.value}function N_(i,r){__()||L_(),i.equal.call(i.wrapper,i.value,r)||(i.value=r,R_(i))}var D_={...rh,equal:lg,value:void 0};function R_(i){i.version++,w_(),dg(i)}var Ze=Symbol("node"),Gt;(i=>{var r,t,o,n,a,s;class l{constructor(m,f={}){Sc(this,t),Xp(this,r);let g=M_(m)[Tc];if(this[Ze]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[i.subtle.watched],g.unwatched=f[i.subtle.unwatched]}}get(){if(!(0,i.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return I_.call(this[Ze])}set(m){if(!(0,i.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(z_())throw new Error("Writes to signals not permitted during Watcher callback");let f=this[Ze];N_(f,m)}}r=Ze,t=new WeakSet,o=function(){},i.isState=h=>typeof h=="object"&&Qp(t,h),i.State=l;class d{constructor(m,f){Sc(this,a),Xp(this,n);let g=T_(m)[Tc];if(g.consumerAllowSignalWrites=!0,this[Ze]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[i.subtle.watched],g.unwatched=f[i.subtle.unwatched]}}get(){if(!(0,i.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return hg(this[Ze])}}n=Ze,a=new WeakSet,s=function(){},i.isComputed=h=>typeof h=="object"&&Qp(a,h),i.Computed=d,(h=>{var m,f,b,g,v;function x(E){let q,W=null;try{W=Ea(null),q=E()}finally{Ea(W)}return q}h.untrack=x;function _(E){var q;if(!(0,i.isComputed)(E)&&!(0,i.isWatcher)(E))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((q=E[Ze].producerNode)==null?void 0:q.map(W=>W.wrapper))??[]}h.introspectSources=_;function k(E){var q;if(!(0,i.isComputed)(E)&&!(0,i.isState)(E))throw new TypeError("Called introspectSinks without a Signal argument");return((q=E[Ze].liveConsumerNode)==null?void 0:q.map(W=>W.wrapper))??[]}h.introspectSinks=k;function O(E){if(!(0,i.isComputed)(E)&&!(0,i.isState)(E))throw new TypeError("Called hasSinks without a Signal argument");let q=E[Ze].liveConsumerNode;return q?q.length>0:!1}h.hasSinks=O;function j(E){if(!(0,i.isComputed)(E)&&!(0,i.isWatcher)(E))throw new TypeError("Called hasSources without a Computed or Watcher argument");let q=E[Ze].producerNode;return q?q.length>0:!1}h.hasSources=j;class I{constructor(q){Sc(this,f),Sc(this,g),Xp(this,m);let W=Object.create(rh);W.wrapper=this,W.consumerMarkedDirty=q,W.consumerIsAlwaysLive=!0,W.consumerAllowSignalWrites=!1,W.producerNode=[],this[Ze]=W}watch(...q){if(!(0,i.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");sg(this,g,v).call(this,q);let W=this[Ze];W.dirty=!1;let tt=Ea(W);for(let dt of q)Ac(dt[Ze]);Ea(tt)}unwatch(...q){if(!(0,i.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");sg(this,g,v).call(this,q);let W=this[Ze];Ta(W);for(let tt=W.producerNode.length-1;tt>=0;tt--)if(q.includes(W.producerNode[tt].wrapper)){$c(W.producerNode[tt],W.producerIndexOfThis[tt]);let dt=W.producerNode.length-1;if(W.producerNode[tt]=W.producerNode[dt],W.producerIndexOfThis[tt]=W.producerIndexOfThis[dt],W.producerNode.length--,W.producerIndexOfThis.length--,W.nextProducerIndex--,tt<W.producerNode.length){let ft=W.producerIndexOfThis[tt],wt=W.producerNode[tt];oh(wt),wt.liveConsumerIndexOfThis[ft]=tt}}}getPending(){if(!(0,i.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[Ze].producerNode.filter(W=>W.dirty).map(W=>W.wrapper)}}m=Ze,f=new WeakSet,b=function(){},g=new WeakSet,v=function(E){for(let q of E)if(!(0,i.isComputed)(q)&&!(0,i.isState)(q))throw new TypeError("Called watch/unwatch without a Computed or State argument")},i.isWatcher=E=>Qp(f,E),h.Watcher=I;function w(){var E;return(E=y_())==null?void 0:E.wrapper}h.currentComputed=w,h.watched=Symbol("watched"),h.unwatched=Symbol("unwatched")})(i.subtle||(i.subtle={}))})(Gt||(Gt={}));var nh=!1,ug=new Gt.subtle.Watcher(()=>{nh||(nh=!0,queueMicrotask(()=>{nh=!1;for(let i of ug.getPending())i.get();ug.watch()}))}),O_=Symbol("SignalWatcherBrand"),P_=new FinalizationRegistry(i=>{i.unwatch(...Gt.subtle.introspectSources(i))}),mg=new WeakMap;function qc(i){return i[O_]===!0?(console.warn("SignalWatcher should not be applied to the same class more than once."),i):class extends i{constructor(){super(...arguments),this._$St=new Map,this._$So=new Gt.State(0),this._$Si=!1}_$Sl(){var r,t;let o=[],n=[];this._$St.forEach((s,l)=>{(s?.beforeUpdate?o:n).push(l)});let a=(r=this.h)===null||r===void 0?void 0:r.getPending().filter(s=>s!==this._$Su&&!this._$St.has(s));o.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 Gt.Computed(()=>{this._$So.get(),super.performUpdate()});let r=this.h=new Gt.subtle.Watcher(function(){let t=mg.get(this);t!==void 0&&(t._$Si===!1&&(new Set(this.getPending()).has(t._$Su)?t.requestUpdate():t._$Sv()),this.watch())});mg.set(r,this),P_.register(this,r),r.watch(this._$Su),r.watch(...Array.from(this._$St).map(([t])=>t))}_$Sp(){if(this.h===void 0)return;let r=!1;this.h.unwatch(...Gt.subtle.introspectSources(this.h).filter(t=>{var o;let n=((o=this._$St.get(t))===null||o===void 0?void 0:o.manualDispose)!==!0;return n&&this._$St.delete(t),r||(r=!n),n})),r||(this._$Su=void 0,this.h=void 0,this._$St.clear())}updateEffect(r,t){var o;this._$S_();let n=new Gt.Computed(()=>{r()});return this.h.watch(n),this._$St.set(n,t),(o=t?.beforeUpdate)!==null&&o!==void 0&&o?Gt.subtle.untrack(()=>n.get()):this.updateComplete.then(()=>Gt.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:H_}=Mf,fg=i=>i;var Lc=i=>i.strings===void 0,gg=()=>document.createComment(""),Aa=(i,r,t)=>{let o=i._$AA.parentNode,n=r===void 0?i._$AB:r._$AA;if(t===void 0){let a=o.insertBefore(gg(),n),s=o.insertBefore(gg(),n);t=new H_(a,s,i,i.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==i;if(l){let d;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(d=i._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let h=fg(d).nextSibling;fg(o).insertBefore(d,n),d=h}}}return t},ei=(i,r,t=i)=>(i._$AI(r,t),i),F_={},$a=(i,r=F_)=>i._$AH=r,bg=i=>i._$AH,Mc=i=>{i._$AR(),i._$AA.remove()};var Us=(i,r)=>{let t=i._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(r,!1),Us(o,r);return!0},Ic=i=>{let r,t;do{if((r=i._$AM)===void 0)break;t=r._$AN,t.delete(i),i=r}while(t?.size===0)},vg=i=>{for(let r;r=i._$AM;i=r){let t=r._$AN;if(t===void 0)r._$AN=t=new Set;else if(t.has(i))break;t.add(i),U_(r)}};function B_(i){this._$AN!==void 0?(Ic(this),this._$AM=i,vg(this)):this._$AM=i}function V_(i,r=!1,t=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(r)if(Array.isArray(o))for(let a=t;a<o.length;a++)Us(o[a],!1),Ic(o[a]);else o!=null&&(Us(o,!1),Ic(o));else Us(this,i)}var U_=i=>{i.type==Je.CHILD&&(i._$AP??(i._$AP=V_),i._$AQ??(i._$AQ=B_))},ri=class extends je{constructor(){super(...arguments),this._$AN=void 0}_$AT(r,t,o){super._$AT(r,t,o),vg(this),this.isConnected=r._$AU}_$AO(r,t=!0){r!==this.isConnected&&(this.isConnected=r,r?this.reconnected?.():this.disconnected?.()),t&&(Us(this,r),Ic(this))}setValue(r){if(Lc(this._$Ct))this._$Ct._$AI(r,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=r,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var ih=!1,ah=new Gt.subtle.Watcher(async()=>{ih||(ih=!0,queueMicrotask(()=>{ih=!1;for(let i of ah.getPending())i.get();ah.watch()}))}),Nc=class extends ri{_$S_(){var r,t;this._$Sm===void 0&&(this._$Sj=new Gt.Computed(()=>{var o;let n=(o=this._$SW)===null||o===void 0?void 0:o.get();return this.setValue(n),n}),this._$Sm=(t=(r=this._$Sk)===null||r===void 0?void 0:r.h)!==null&&t!==void 0?t:ah,this._$Sm.watch(this._$Sj),Gt.subtle.untrack(()=>{var o;return(o=this._$Sj)===null||o===void 0?void 0:o.get()}))}_$Sp(){this._$Sm!==void 0&&(this._$Sm.unwatch(this._$SW),this._$Sm=void 0)}render(r){return Gt.subtle.untrack(()=>r.get())}update(r,[t]){var o,n;return(o=this._$Sk)!==null&&o!==void 0||(this._$Sk=(n=r.options)===null||n===void 0?void 0:n.host),t!==this._$SW&&this._$SW!==void 0&&this._$Sp(),this._$SW=t,this._$S_(),Gt.subtle.untrack(()=>this._$SW.get())}disconnected(){this._$Sp()}reconnected(){this._$S_()}},sh=oe(Nc);var lh=i=>(r,...t)=>i(r,...t.map(o=>o instanceof Gt.State||o instanceof Gt.Computed?sh(o):o)),j_=lh(u),G_=lh($o);var pM=Gt.State,hM=Gt.Computed,xg=(i,r)=>new Gt.State(i,r);function zg(){return typeof document>"u"?"light":document.documentElement.getAttribute("t")||document.body.getAttribute("t")||"light"}var Dc=xg(zg()),yg=!1;function W_(){yg||typeof window>"u"||(yg=!0,window.addEventListener("theme-change",i=>{let r=i.detail,t;typeof r=="string"?t=r:r&&typeof r=="object"&&"theme"in r&&typeof r.theme=="string"?t=r.theme:t=zg(),t!==Dc.get()&&Dc.set(t)}))}W_();var K_=qc(ti),S=class extends K_{willUpdate(r){this.t=Dc.get(),super.willUpdate(r)}static define(r,t=this,o={}){let n=customElements.get(r);if(!n){customElements.define(r,class extends t{},o);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 <${r}>${a} but it is already registered as <${r}>${s}.`)}constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([r,t])=>{this.constructor.define(r,t)})}emit(r,t){let o=new CustomEvent(r,{bubbles:!0,cancelable:!0,composed:!0,detail:{element:this},...t});return this.dispatchEvent(o),o}};S.dependencies={},c([p()],S.prototype,"dir",2),c([p()],S.prototype,"lang",2),c([p({reflect:!0})],S.prototype,"t",2);var Wi=class extends je{constructor(r){if(super(r),this.it=G,r.type!==Je.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===G||r==null)return this._t=void 0,this.it=r;if(r===re)return r;if(typeof r!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this._t;this.it=r;let t=[r];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Wi.directiveName="unsafeHTML",Wi.resultType=1;var Ge=oe(Wi);function lo(i,r){return new Promise(t=>{function o(n){n.target===i&&(i.removeEventListener(r,o),t())}i.addEventListener(r,o)})}var ch=class{constructor(){this.openDropdowns=new Set;this.openTooltips=new Set}registerDropdown(r){this.openDropdowns.add(r)}unregisterDropdown(r){this.openDropdowns.delete(r)}isDropdownOpen(){return this.openDropdowns.size>0}registerTooltip(r){this.openTooltips.add(r)}unregisterTooltip(r){this.openTooltips.delete(r)}isTooltipOpen(){return this.openTooltips.size>0}},Y_=new ch,Lo=Y_;var wg=T`@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}:host *,:host *::before,:host *::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 he=class extends S{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 o=t.target;!this.stayOpenOnSelect&&o.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(o=>o),this.focusOnTrigger())}async handleTriggerKeyDown(t){if([" ","Enter","Tab"].includes(t.key)){t.preventDefault(),await this.handleTriggerClick();return}let o=this.getMenu();if(o){let n=o.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")&&(o.setCurrentItem(a),a.focus()),(t.key==="ArrowUp"||t.key==="End")&&(o.setCurrentItem(s),s.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}handleDocumentMouseDown(t){let o=t.composedPath();this.containingElement&&!o.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(o=>o);return}if(t.key==="Tab"){if(this.open){t.preventDefault(),this.hide().then(o=>o),this.focusOnTrigger();return}setTimeout(()=>{let o=this.containingElement?.getRootNode()instanceof ShadowRoot?document.activeElement?.shadowRoot?.activeElement:document.activeElement;(!this.containingElement||o?.closest(this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide().then(n=>n)})}}async show(){if(!this.open)return this.open=!0,lo(this,"zn-after-show")}async hide(){if(this.open)return this.open=!1,lo(this,"zn-after-hide")}reposition(){this.popup.reposition()}updateAccessibleTrigger(){let o=this.trigger.assignedElements({flatten:!0}).find(a=>Hf(a).start),n=null;o&&(o.tagName.toLowerCase()==="zn-button"?n=o.button:n=o),n&&(n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-expanded",this.open.toString()))}handleOpenChange(){if(this.disabled){this.open=!1;return}this.updateAccessibleTrigger(),this.open?(this.emit("zn-show"),Lo.registerDropdown(this),this.addOpenListeners(),this.panel.hidden=!1,this.popup.active=!0,this.panel.focus(),this.emit("zn-after-show")):(this.emit("zn-hide"),Lo.unregisterDropdown(this),this.removeOpenListeners(),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"
@@ -135,7 +135,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
135
135
  ${this.loadingText}<span class="loading-countdown"></span>
136
136
  </span>
137
137
  </div>
138
- `:null}`}};st.styles=A(Ag),st.dependencies={"zn-tooltip":Mo,"zn-icon":ct},c([F(".button")],st.prototype,"button",2),c([Cc(".loading-countdown")],st.prototype,"countdownContainer",2),c([p({})],st.prototype,"color",2),c([p({attribute:"hover-color"})],st.prototype,"hoverColor",2),c([p({type:Boolean})],st.prototype,"text",2),c([p({type:Boolean})],st.prototype,"outline",2),c([p({type:Boolean})],st.prototype,"disabled",2),c([p({type:Boolean})],st.prototype,"grow",2),c([p({type:Boolean})],st.prototype,"square",2),c([p({attribute:"icon-button",converter:{fromAttribute:t=>t==="small"||t==="round"?t:t!==null,toAttribute:t=>t==="small"||t==="round"?t:t?"":null}})],st.prototype,"iconButton",2),c([p({type:Boolean})],st.prototype,"plain",2),c([p({type:Boolean,attribute:"no-hover"})],st.prototype,"noHover",2),c([p({type:Boolean,attribute:"panel-bg"})],st.prototype,"panelBackground",2),c([p({attribute:"dropdown-closer",type:Boolean})],st.prototype,"dropdownCloser",2),c([p({type:Number})],st.prototype,"notification",2),c([p({attribute:"muted-notifications",type:Boolean})],st.prototype,"mutedNotifications",2),c([p()],st.prototype,"verticalAlign",2),c([p()],st.prototype,"content",2),c([p()],st.prototype,"icon",2),c([p()],st.prototype,"gaid",2),c([p({attribute:"icon-position"})],st.prototype,"iconPosition",2),c([p({attribute:"icon-size"})],st.prototype,"iconSize",2),c([p({attribute:"icon-color"})],st.prototype,"iconColor",2),c([p({attribute:"icon-fill"})],st.prototype,"iconFill",2),c([p({attribute:"icon-library"})],st.prototype,"iconLibrary",2),c([p()],st.prototype,"type",2),c([p()],st.prototype,"name",2),c([p()],st.prototype,"value",2),c([p()],st.prototype,"form",2),c([p({attribute:"formaction"})],st.prototype,"formAction",2),c([p({attribute:"formenctype"})],st.prototype,"formEnctype",2),c([p({attribute:"formmethod"})],st.prototype,"formMethod",2),c([p({attribute:"formnovalidate",type:Boolean})],st.prototype,"formNoValidate",2),c([p({attribute:"formtarget"})],st.prototype,"formTarget",2),c([p()],st.prototype,"href",2),c([p()],st.prototype,"target",2),c([p({attribute:"data-target"})],st.prototype,"dataTarget",2),c([p()],st.prototype,"rel",2),c([p()],st.prototype,"tooltip",2),c([p({type:Boolean,attribute:"auto-click"})],st.prototype,"autoClick",2),c([p({type:Number,attribute:"auto-click-delay"})],st.prototype,"autoClickDelay",2),c([p({type:String,attribute:"loading-text"})],st.prototype,"loadingText",2),c([p({type:String,attribute:"loading-text-position"})],st.prototype,"loadingTextPosition",2),c([p({type:Boolean})],st.prototype,"loading",2),c([K("autoClick")],st.prototype,"handleAutoClickChange",1);var Tt=st;st.define("zn-button");var Pt=class{constructor(r,{target:t,config:o,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=r,t!==null&&this.t.add(t??r),this.l=o,this.o=a??this.o,this.callback=n,window.MutationObserver?(this.u=new MutationObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),r.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(r){this.value=this.callback?.(r,this.u)}hostConnected(){for(let r of this.t)this.observe(r)}hostDisconnected(){this.disconnect()}async hostUpdated(){let r=this.u.takeRecords();(r.length||!this.o&&this.i)&&this.handleChanges(r),this.i=!1}observe(r){this.t.add(r),this.u.observe(r,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}};var La=class extends S{constructor(){super(),new Pt(this,{config:{childList:!0,subtree:!0,attributes:!0,characterData:!0},callback:()=>this.resize(),skipInitial:!0})}firstUpdated(r){super.firstUpdated(r),this.resize()}resize(){let r=0;Array.from(this.children).forEach(t=>{r+=t.getBoundingClientRect().height}),this.style.minHeight=r+"px"}createRenderRoot(){return this}};var X_=La;La.define("zn-absolute-container");var Zo=Math.min,Io=Math.max,Ws=Math.round,Ks=Math.floor,tn=i=>({x:i,y:i}),Q_={left:"right",right:"left",bottom:"top",top:"bottom"};function hh(i,r,t){return Io(i,Zo(r,t))}function Ki(i,r){return typeof i=="function"?i(r):i}function ni(i){return i.split("-")[0]}function Yi(i){return i.split("-")[1]}function uh(i){return i==="x"?"y":"x"}function Oc(i){return i==="y"?"height":"width"}function en(i){let r=i[0];return r==="t"||r==="b"?"y":"x"}function Pc(i){return uh(en(i))}function Lg(i,r,t){t===void 0&&(t=!1);let o=Yi(i),n=Pc(i),a=Oc(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(s=Gs(s)),[s,Gs(s)]}function Mg(i){let r=Gs(i);return[Rc(i),r,Rc(r)]}function Rc(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var $g=["left","right"],qg=["right","left"],J_=["top","bottom"],Z_=["bottom","top"];function t3(i,r,t){switch(i){case"top":case"bottom":return t?r?qg:$g:r?$g:qg;case"left":case"right":return r?J_:Z_;default:return[]}}function Ig(i,r,t,o){let n=Yi(i),a=t3(ni(i),t==="start",o);return n&&(a=a.map(s=>s+"-"+n),r&&(a=a.concat(a.map(Rc)))),a}function Gs(i){let r=ni(i);return Q_[r]+i.slice(r.length)}function e3(i){var r,t,o,n;return{top:(r=i.top)!=null?r:0,right:(t=i.right)!=null?t:0,bottom:(o=i.bottom)!=null?o:0,left:(n=i.left)!=null?n:0}}function mh(i){return typeof i!="number"?e3(i):{top:i,right:i,bottom:i,left:i}}function Xi(i){let{x:r,y:t,width:o,height:n}=i;return{width:o,height:n,top:t,left:r,right:r+o,bottom:t+n,x:r,y:t}}function Ng(i,r,t){let{reference:o,floating:n}=i,a=en(r),s=Pc(r),l=Oc(s),d=ni(r),h=a==="y",m=o.x+o.width/2-n.width/2,f=o.y+o.height/2-n.height/2,b=o[l]/2-n[l]/2,g;switch(d){case"top":g={x:m,y:o.y-n.height};break;case"bottom":g={x:m,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:f};break;case"left":g={x:o.x-n.width,y:f};break;default:g={x:o.x,y:o.y}}let v=Yi(r);return v&&(g[s]+=b*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function Dg(i,r){var t;r===void 0&&(r={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:b=!1,padding:g=0}=Ki(r,i),v=mh(g),_=l[b?f==="floating"?"reference":"floating":f],k=Xi(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(_)))==null||t?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:m,strategy:d})),O=f==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),I=await(a.isElement==null?void 0:a.isElement(j))&&await(a.getScale==null?void 0:a.getScale(j))||{x:1,y:1},w=Xi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:j,strategy:d}):O);return{top:(k.top-w.top+v.top)/I.y,bottom:(w.bottom-k.bottom+v.bottom)/I.y,left:(k.left-w.left+v.left)/I.x,right:(w.right-k.right+v.right)/I.x}}var r3=50,Rg=async(i,r,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:Dg},d=await(s.isRTL==null?void 0:s.isRTL(r)),h=await s.getElementRects({reference:i,floating:r,strategy:n}),{x:m,y:f}=Ng(h,o,d),b=o,g=0,v={};for(let x=0;x<a.length;x++){let _=a[x];if(!_)continue;let{name:k,fn:O}=_,{x:j,y:I,data:w,reset:E}=await O({x:m,y:f,initialPlacement:o,placement:b,strategy:n,middlewareData:v,rects:h,platform:l,elements:{reference:i,floating:r}});m=j??m,f=I??f,v[k]={...v[k],...w},E&&g<r3&&(g++,typeof E=="object"&&(E.placement&&(b=E.placement),E.rects&&(h=E.rects===!0?await s.getElementRects({reference:i,floating:r,strategy:n}):E.rects),{x:m,y:f}=Ng(h,b,d)),x=-1)}return{x:m,y:f,placement:b,strategy:n,middlewareData:v}},Og=i=>({name:"arrow",options:i,async fn(r){let{x:t,y:o,placement:n,rects:a,platform:s,elements:l,middlewareData:d}=r,{element:h,padding:m=0}=Ki(i,r)||{};if(h==null)return{};let f=mh(m),b={x:t,y:o},g=Pc(n),v=Oc(g),x=await s.getDimensions(h),_=g==="y",k=_?"top":"left",O=_?"bottom":"right",j=_?"clientHeight":"clientWidth",I=a.reference[v]+a.reference[g]-b[g]-a.floating[v],w=b[g]-a.reference[g],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h)),q=E?E[j]:0;(!q||!await(s.isElement==null?void 0:s.isElement(E)))&&(q=l.floating[j]||a.floating[v]);let W=I/2-w/2,tt=q/2-x[v]/2-1,dt=Zo(f[k],tt),ft=Zo(f[O],tt),wt=q-x[v]-ft,Mt=q/2-x[v]/2+W,ge=hh(dt,Mt,wt),Ve=!d.arrow&&Yi(n)!=null&&Mt!==ge&&a.reference[v]/2-(Mt<dt?dt:ft)-x[v]/2<0,nr=Ve?Mt<dt?Mt-dt:Mt-wt:0;return{[g]:b[g]+nr,data:{[g]:ge,centerOffset:Mt-ge-nr,...Ve&&{alignmentOffset:nr}},reset:Ve}}});var Pg=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var t,o;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:h}=r,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,..._}=Ki(i,r);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let k=ni(n),O=en(l),j=ni(l)===l,I=await(d.isRTL==null?void 0:d.isRTL(h.floating)),w=b||(j||!x?[Gs(l)]:Mg(l)),E=v!=="none";!b&&E&&w.push(...Ig(l,x,v,I));let q=[l,...w],W=await d.detectOverflow(r,_),tt=[],dt=((o=a.flip)==null?void 0:o.overflows)||[];if(m&&tt.push(W[k]),f){let ge=Lg(n,s,I);tt.push(W[ge[0]],W[ge[1]])}if(dt=[...dt,{placement:n,overflows:tt}],!tt.every(ge=>ge<=0)){var ft,wt;let ge=(((ft=a.flip)==null?void 0:ft.index)||0)+1,Ve=q[ge];if(Ve&&(!(f==="alignment"?O!==en(Ve):!1)||dt.every(Ue=>en(Ue.placement)===O?Ue.overflows[0]>0:!0)))return{data:{index:ge,overflows:dt},reset:{placement:Ve}};let nr=(wt=dt.filter(ke=>ke.overflows[0]<=0).sort((ke,Ue)=>ke.overflows[1]-Ue.overflows[1])[0])==null?void 0:wt.placement;if(!nr)switch(g){case"bestFit":{var Mt;let ke=(Mt=dt.filter(Ue=>{if(E){let be=en(Ue.placement);return be===O||be==="y"}return!0}).map(Ue=>[Ue.placement,Ue.overflows.filter(be=>be>0).reduce((be,Qn)=>be+Qn,0)]).sort((Ue,be)=>Ue[1]-be[1])[0])==null?void 0:Mt[0];ke&&(nr=ke);break}case"initialPlacement":nr=l;break}if(n!==nr)return{reset:{placement:nr}}}return{}}}};var o3=new Set(["left","top"]);async function n3(i,r){let{placement:t,platform:o,elements:n}=i,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=ni(t),l=Yi(t),d=en(t)==="y",h=o3.has(s)?-1:1,m=a&&d?-1:1,f=Ki(r,i),{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),d?{x:g*m,y:b*h}:{x:b*h,y:g*m}}var Hg=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var t,o;let{x:n,y:a,placement:s,middlewareData:l}=r,d=await n3(r,i);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Fg=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:t,y:o,placement:n,platform:a}=r,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:O=>{let{x:j,y:I}=O;return{x:j,y:I}}},...h}=Ki(i,r),m={x:t,y:o},f=await a.detectOverflow(r,h),b=en(n),g=uh(b),v=m[g],x=m[b],_=(O,j)=>hh(j+f[O==="y"?"top":"left"],j,j-f[O==="y"?"bottom":"right"]);s&&(v=_(g,v)),l&&(x=_(b,x));let k=d.fn({...r,[g]:v,[b]:x});return{...k,data:{x:k.x-t,y:k.y-o,enabled:{[g]:s,[b]:l}}}}}};var Bg=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){let{placement:t,rects:o,platform:n,elements:a}=r,{apply:s=()=>{},...l}=Ki(i,r),d=await n.detectOverflow(r,l),h=ni(t),m=Yi(t),f=en(t)==="y",{width:b,height:g}=o.floating,v,x;h==="top"||h==="bottom"?(v=h,x=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(x=h,v=m==="end"?"top":"bottom");let _=g-d.top-d.bottom,k=b-d.left-d.right,O=Zo(g-d[v],_),j=Zo(b-d[x],k),I=r.middlewareData.shift,w=!I,E=O,q=j;I!=null&&I.enabled.x&&(q=k),I!=null&&I.enabled.y&&(E=_),w&&!m&&(f?q=b-2*Io(d.left,d.right):E=g-2*Io(d.top,d.bottom)),await s({...r,availableWidth:q,availableHeight:E});let W=await n.getDimensions(a.floating);return b!==W.width||g!==W.height?{reset:{rects:!0}}:{}}}};function Hc(){return typeof window<"u"}function Ji(i){return Ug(i)?(i.nodeName||"").toLowerCase():"#document"}function xr(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function rn(i){var r;return(r=(Ug(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function Ug(i){return Hc()?i instanceof Node||i instanceof xr(i).Node:!1}function No(i){return Hc()?i instanceof Element||i instanceof xr(i).Element:!1}function En(i){return Hc()?i instanceof HTMLElement||i instanceof xr(i).HTMLElement:!1}function Vg(i){return!Hc()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof xr(i).ShadowRoot}function Ys(i){let{overflow:r,overflowX:t,overflowY:o,display:n}=Do(i);return/auto|scroll|overlay|hidden|clip/.test(r+o+t)&&n!=="inline"&&n!=="contents"}function jg(i){return/^(table|td|th)$/.test(Ji(i))}function Xs(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var i3=/transform|translate|scale|rotate|perspective|filter/,a3=/paint|layout|strict|content/,Qi=i=>!!i&&i!=="none",fh;function Ia(i){let r=No(i)?Do(i):i;return Qi(r.transform)||Qi(r.translate)||Qi(r.scale)||Qi(r.rotate)||Qi(r.perspective)||!Fc()&&(Qi(r.backdropFilter)||Qi(r.filter))||i3.test(r.willChange||"")||a3.test(r.contain||"")}function Gg(i){let r=ii(i);for(;En(r)&&!Na(r);){if(Ia(r))return r;if(Xs(r))return null;r=ii(r)}return null}function Fc(){return fh==null&&(fh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),fh}function Na(i){return/^(html|body|#document)$/.test(Ji(i))}function Do(i){return xr(i).getComputedStyle(i)}function Qs(i){return No(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function ii(i){if(Ji(i)==="html")return i;let r=i.assignedSlot||i.parentNode||Vg(i)&&i.host||rn(i);return Vg(r)?r.host:r}function Wg(i){let r=ii(i);return Na(r)?(i.ownerDocument||i).body:En(r)&&Ys(r)?r:Wg(r)}function Ma(i,r,t){var o;r===void 0&&(r=[]),t===void 0&&(t=!0);let n=Wg(i),a=n===((o=i.ownerDocument)==null?void 0:o.body),s=xr(n);if(a){let l=Bc(s);return r.concat(s,s.visualViewport||[],Ys(n)?n:[],l&&t?Ma(l):[])}else return r.concat(n,Ma(n,[],t))}function Bc(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Xg(i){let r=Do(i),t=parseFloat(r.width)||0,o=parseFloat(r.height)||0,n=En(i),a=n?i.offsetWidth:t,s=n?i.offsetHeight:o,l=Ws(t)!==a||Ws(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function bh(i){return No(i)?i:i.contextElement}function Da(i){let r=bh(i);if(!En(r))return tn(1);let t=r.getBoundingClientRect(),{width:o,height:n,$:a}=Xg(r),s=(a?Ws(t.width):t.width)/o,l=(a?Ws(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var s3=tn(0);function Qg(i){let r=xr(i);return!Fc()||!r.visualViewport?s3:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function l3(i,r,t){return r===void 0&&(r=!1),!!t&&r&&t===xr(i)}function Zi(i,r,t,o){r===void 0&&(r=!1),t===void 0&&(t=!1);let n=i.getBoundingClientRect(),a=bh(i),s=tn(1);r&&(o?No(o)&&(s=Da(o)):s=Da(i));let l=l3(a,t,o)?Qg(a):tn(0),d=(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&&o){let b=xr(a),g=No(o)?xr(o):o,v=b,x=Bc(v);for(;x&&g!==v;){let _=Da(x),k=x.getBoundingClientRect(),O=Do(x),j=k.left+(x.clientLeft+parseFloat(O.paddingLeft))*_.x,I=k.top+(x.clientTop+parseFloat(O.paddingTop))*_.y;d*=_.x,h*=_.y,m*=_.x,f*=_.y,d+=j,h+=I,v=xr(x),x=Bc(v)}}return Xi({width:m,height:f,x:d,y:h})}function Vc(i,r){let t=Qs(i).scrollLeft;return r?r.left+t:Zi(rn(i)).left+t}function Jg(i,r){let t=i.getBoundingClientRect(),o=t.left+r.scrollLeft-Vc(i,t),n=t.top+r.scrollTop;return{x:o,y:n}}function c3(i){let{elements:r,rect:t,offsetParent:o,strategy:n}=i,a=n==="fixed",s=rn(o),l=r?Xs(r.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},h=tn(1),m=tn(0),f=En(o);if((f||!a)&&((Ji(o)!=="body"||Ys(s))&&(d=Qs(o)),f)){let g=Zi(o);h=Da(o),m.x=g.x+o.clientLeft,m.y=g.y+o.clientTop}let b=s&&!f&&!a?Jg(s,d):tn(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:t.y*h.y-d.scrollTop*h.y+m.y+b.y}}function d3(i){return i.getClientRects?Array.from(i.getClientRects()):[]}function p3(i){let r=Qs(i),t=i.ownerDocument.body,o=Io(i.scrollWidth,i.clientWidth,t.scrollWidth,t.clientWidth),n=Io(i.scrollHeight,i.clientHeight,t.scrollHeight,t.clientHeight),a=-r.scrollLeft+Vc(i),s=-r.scrollTop;return Do(t).direction==="rtl"&&(a+=Io(i.clientWidth,t.clientWidth)-o),{width:o,height:n,x:a,y:s}}var h3=25;function u3(i,r,t){t===void 0&&(t="viewport");let o=t==="layoutViewport",n=xr(i),a=rn(i),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,h=0,m=0;if(s){let b=!Fc()||r==="fixed";o?b||(h=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,b&&(h=s.offsetLeft,m=s.offsetTop))}if(Vc(a)<=0){let b=a.ownerDocument,g=b.body,v=getComputedStyle(g),x=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,_=Math.abs(a.clientWidth-g.clientWidth-x),k=getComputedStyle(a).scrollbarGutter==="stable both-edges"?_/2:_;k<=h3&&(l-=k)}return{width:l,height:d,x:h,y:m}}function m3(i,r){let t=Zi(i,!0,r==="fixed"),o=t.top+i.clientTop,n=t.left+i.clientLeft,a=Da(i),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=n*a.x,h=o*a.y;return{width:s,height:l,x:d,y:h}}function Kg(i,r,t){let o;if(r==="viewport"||r==="layoutViewport")o=u3(i,t,r);else if(r==="document")o=p3(rn(i));else if(No(r))o=m3(r,t);else{let n=Qg(i);o={x:r.x-n.x,y:r.y-n.y,width:r.width,height:r.height}}return Xi(o)}function f3(i,r){let t=r.get(i);if(t)return t;let o=Ma(i,[],!1).filter(l=>No(l)&&Ji(l)!=="body"),n=null,a=Do(i).position==="fixed",s=a?ii(i):i;for(;No(s)&&!Na(s);){let l=Do(s),d=Ia(s),h=n?n.position:a?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&l.position==="static")?o=o.filter(f=>f!==s):n=l,s=ii(s)}return r.set(i,o),o}function g3(i){let{element:r,boundary:t,rootBoundary:o,strategy:n}=i,s=[...t==="clippingAncestors"?Xs(r)?[]:f3(r,this._c):[].concat(t),o],l=Kg(r,s[0],n),d=l.top,h=l.right,m=l.bottom,f=l.left;for(let b=1;b<s.length;b++){let g=Kg(r,s[b],n);d=Io(g.top,d),h=Zo(g.right,h),m=Zo(g.bottom,m),f=Io(g.left,f)}return{width:h-f,height:m-d,x:f,y:d}}function b3(i){let{width:r,height:t}=Xg(i);return{width:r,height:t}}function v3(i,r,t){let o=En(r),n=rn(r),a=t==="fixed",s=Zi(i,!0,a,r),l={scrollLeft:0,scrollTop:0},d=tn(0);if((o||!a)&&((Ji(r)!=="body"||Ys(n))&&(l=Qs(r)),o)){let b=Zi(r,!0,a,r);d.x=b.x+r.clientLeft,d.y=b.y+r.clientTop}!o&&n&&(d.x=Vc(n));let h=n&&!o&&!a?Jg(n,l):tn(0),m=s.left+l.scrollLeft-d.x-h.x,f=s.top+l.scrollTop-d.y-h.y;return{x:m,y:f,width:s.width,height:s.height}}function gh(i){return Do(i).position==="static"}function Yg(i,r){if(!En(i)||Do(i).position==="fixed")return null;if(r)return r(i);let t=i.offsetParent;return rn(i)===t&&(t=t.ownerDocument.body),t}function Zg(i,r){let t=xr(i);if(Xs(i))return t;if(!En(i)){let n=ii(i);for(;n&&!Na(n);){if(No(n)&&!gh(n))return n;n=ii(n)}return t}let o=Yg(i,r);for(;o&&jg(o)&&gh(o);)o=Yg(o,r);return o&&Na(o)&&gh(o)&&!Ia(o)?t:o||Gg(i)||t}var x3=async function(i){let r=this.getOffsetParent||Zg,t=this.getDimensions,o=await t(i.floating);return{reference:v3(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function y3(i){return Do(i).direction==="rtl"}var Js={convertOffsetParentRelativeRectToViewportRelativeRect:c3,getDocumentElement:rn,getClippingRect:g3,getOffsetParent:Zg,getElementRects:x3,getClientRects:d3,getDimensions:b3,getScale:Da,isElement:No,isRTL:y3};function tb(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function z3(i,r,t){let o=null,n,a=rn(i);function s(){var m;clearTimeout(n),(m=o)==null||m.disconnect(),o=null}function l(m,f){m===void 0&&(m=!1),f===void 0&&(f=1),s();let b=i.getBoundingClientRect(),{left:g,top:v,width:x,height:_}=b;if(m||r(),!x||!_)return;let k=Ks(v),O=Ks(a.clientWidth-(g+x)),j=Ks(a.clientHeight-(v+_)),I=Ks(g),E={rootMargin:-k+"px "+-O+"px "+-j+"px "+-I+"px",threshold:Io(0,Zo(1,f))||1},q=!0;function W(tt){let dt=tt[0].intersectionRatio;if(!tb(b,i.getBoundingClientRect()))return l();if(dt!==f){if(!q)return l();dt?l(!1,dt):n=setTimeout(()=>{l(!1,1e-7)},1e3)}q=!1}try{o=new IntersectionObserver(W,{...E,root:a.ownerDocument})}catch{o=new IntersectionObserver(W,E)}o.observe(i)}let d=xr(i),h=()=>l(t);return d.addEventListener("resize",h),l(!0),()=>{d.removeEventListener("resize",h),s()}}function eb(i,r,t,o){o===void 0&&(o={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,h=bh(i),m=n||a?[...h?Ma(h):[],...r?Ma(r):[]]:[];m.forEach(k=>{n&&k.addEventListener("scroll",t),a&&k.addEventListener("resize",t)});let f=h&&l?z3(h,t,a):null,b=-1,g=null;s&&(g=new ResizeObserver(k=>{let[O]=k;O&&O.target===h&&g&&r&&(g.unobserve(r),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var j;(j=g)==null||j.observe(r)})),t()}),h&&!d&&g.observe(h),r&&g.observe(r));let v,x=d?Zi(i):null;d&&_();function _(){let k=Zi(i);x&&!tb(x,k)&&t(),x=k,v=requestAnimationFrame(_)}return t(),()=>{var k;m.forEach(O=>{n&&O.removeEventListener("scroll",t),a&&O.removeEventListener("resize",t)}),f?.(),(k=g)==null||k.disconnect(),g=null,d&&cancelAnimationFrame(v)}}var rb=Hg;var ob=Fg,nb=Pg,vh=Bg;var ib=Og;var ab=(i,r,t)=>{let o=new Map,n=t??{},a={...Js,...n.platform,_c:o};return Rg(i,r,{...n,platform:a})};function sb(i){return w3(i)}function xh(i){return i.assignedSlot?i.assignedSlot:i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}function w3(i){for(let r=i;r;r=xh(r))if(r instanceof Element&&getComputedStyle(r).display==="none")return null;for(let r=xh(i);r;r=xh(r)){if(!(r instanceof Element))continue;let t=getComputedStyle(r);if(t.display!=="contents"&&(t.position!=="static"||Ia(t)||r.tagName==="BODY"))return r}return null}var lb=T`@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}:host *,:host *::before,:host *::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 _3(i){return i!==null&&typeof i=="object"&&"getBoundingClientRect"in i&&("contextElement"in i?i instanceof Element:!0)}var Ct=class extends S{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(),o=this.popup.getBoundingClientRect(),n=this.placement.includes("top")||this.placement.includes("bottom"),a,s,l,d,h,m,f,b;n?t.top<o.top?(a=t.left,s=t.bottom,l=t.right,d=t.bottom,h=o.left,m=o.top,f=o.right,b=o.top):(a=o.left,s=o.bottom,l=o.right,d=o.bottom,h=t.left,m=t.top,f=t.right,b=t.top):t.left<o.left?(a=t.right,s=t.top,l=o.left,d=o.top,h=t.right,m=t.bottom,f=o.left,b=o.bottom):(a=o.right,s=o.top,l=t.left,d=t.top,h=o.right,m=o.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",`${d}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||_3(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=eb(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=[rb({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(vh({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(nb({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ob({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(vh({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(ib({element:this.arrowEl,padding:this.arrowPadding}));let o=this.strategy==="absolute"?n=>Js.getOffsetParent(n,sb):Js.getOffsetParent;ab(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...Js,getOffsetParent:o}}).then(({x:n,y:a,middlewareData:s,placement:l})=>{let d={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.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,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge())}render(){return u`
138
+ `:null}`}};st.styles=A(Ag),st.dependencies={"zn-tooltip":Mo,"zn-icon":ct},c([F(".button")],st.prototype,"button",2),c([Cc(".loading-countdown")],st.prototype,"countdownContainer",2),c([p({})],st.prototype,"color",2),c([p({attribute:"hover-color"})],st.prototype,"hoverColor",2),c([p({type:Boolean})],st.prototype,"text",2),c([p({type:Boolean})],st.prototype,"outline",2),c([p({type:Boolean})],st.prototype,"disabled",2),c([p({type:Boolean})],st.prototype,"grow",2),c([p({type:Boolean})],st.prototype,"square",2),c([p({attribute:"icon-button",converter:{fromAttribute:t=>t==="small"||t==="round"?t:t!==null,toAttribute:t=>t==="small"||t==="round"?t:t?"":null}})],st.prototype,"iconButton",2),c([p({type:Boolean})],st.prototype,"plain",2),c([p({type:Boolean,attribute:"no-hover"})],st.prototype,"noHover",2),c([p({type:Boolean,attribute:"panel-bg"})],st.prototype,"panelBackground",2),c([p({attribute:"dropdown-closer",type:Boolean})],st.prototype,"dropdownCloser",2),c([p({type:Number})],st.prototype,"notification",2),c([p({attribute:"muted-notifications",type:Boolean})],st.prototype,"mutedNotifications",2),c([p()],st.prototype,"verticalAlign",2),c([p()],st.prototype,"content",2),c([p()],st.prototype,"icon",2),c([p()],st.prototype,"gaid",2),c([p({attribute:"icon-position"})],st.prototype,"iconPosition",2),c([p({attribute:"icon-size"})],st.prototype,"iconSize",2),c([p({attribute:"icon-color"})],st.prototype,"iconColor",2),c([p({attribute:"icon-fill"})],st.prototype,"iconFill",2),c([p({attribute:"icon-library"})],st.prototype,"iconLibrary",2),c([p()],st.prototype,"type",2),c([p()],st.prototype,"name",2),c([p()],st.prototype,"value",2),c([p()],st.prototype,"form",2),c([p({attribute:"formaction"})],st.prototype,"formAction",2),c([p({attribute:"formenctype"})],st.prototype,"formEnctype",2),c([p({attribute:"formmethod"})],st.prototype,"formMethod",2),c([p({attribute:"formnovalidate",type:Boolean})],st.prototype,"formNoValidate",2),c([p({attribute:"formtarget"})],st.prototype,"formTarget",2),c([p()],st.prototype,"href",2),c([p()],st.prototype,"target",2),c([p({attribute:"data-target"})],st.prototype,"dataTarget",2),c([p()],st.prototype,"rel",2),c([p()],st.prototype,"tooltip",2),c([p({type:Boolean,attribute:"auto-click"})],st.prototype,"autoClick",2),c([p({type:Number,attribute:"auto-click-delay"})],st.prototype,"autoClickDelay",2),c([p({type:String,attribute:"loading-text"})],st.prototype,"loadingText",2),c([p({type:String,attribute:"loading-text-position"})],st.prototype,"loadingTextPosition",2),c([p({type:Boolean})],st.prototype,"loading",2),c([K("autoClick")],st.prototype,"handleAutoClickChange",1);var Tt=st;st.define("zn-button");var Ht=class{constructor(r,{target:t,config:o,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=r,t!==null&&this.t.add(t??r),this.l=o,this.o=a??this.o,this.callback=n,window.MutationObserver?(this.u=new MutationObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),r.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(r){this.value=this.callback?.(r,this.u)}hostConnected(){for(let r of this.t)this.observe(r)}hostDisconnected(){this.disconnect()}async hostUpdated(){let r=this.u.takeRecords();(r.length||!this.o&&this.i)&&this.handleChanges(r),this.i=!1}observe(r){this.t.add(r),this.u.observe(r,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}};var La=class extends S{constructor(){super(),new Ht(this,{config:{childList:!0,subtree:!0,attributes:!0,characterData:!0},callback:()=>this.resize(),skipInitial:!0})}firstUpdated(r){super.firstUpdated(r),this.resize()}resize(){let r=0;Array.from(this.children).forEach(t=>{r+=t.getBoundingClientRect().height}),this.style.minHeight=r+"px"}createRenderRoot(){return this}};var X_=La;La.define("zn-absolute-container");var Zo=Math.min,Io=Math.max,Ws=Math.round,Ks=Math.floor,tn=i=>({x:i,y:i}),Q_={left:"right",right:"left",bottom:"top",top:"bottom"};function hh(i,r,t){return Io(i,Zo(r,t))}function Ki(i,r){return typeof i=="function"?i(r):i}function ni(i){return i.split("-")[0]}function Yi(i){return i.split("-")[1]}function uh(i){return i==="x"?"y":"x"}function Oc(i){return i==="y"?"height":"width"}function en(i){let r=i[0];return r==="t"||r==="b"?"y":"x"}function Pc(i){return uh(en(i))}function Lg(i,r,t){t===void 0&&(t=!1);let o=Yi(i),n=Pc(i),a=Oc(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(s=Gs(s)),[s,Gs(s)]}function Mg(i){let r=Gs(i);return[Rc(i),r,Rc(r)]}function Rc(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var $g=["left","right"],qg=["right","left"],J_=["top","bottom"],Z_=["bottom","top"];function t3(i,r,t){switch(i){case"top":case"bottom":return t?r?qg:$g:r?$g:qg;case"left":case"right":return r?J_:Z_;default:return[]}}function Ig(i,r,t,o){let n=Yi(i),a=t3(ni(i),t==="start",o);return n&&(a=a.map(s=>s+"-"+n),r&&(a=a.concat(a.map(Rc)))),a}function Gs(i){let r=ni(i);return Q_[r]+i.slice(r.length)}function e3(i){var r,t,o,n;return{top:(r=i.top)!=null?r:0,right:(t=i.right)!=null?t:0,bottom:(o=i.bottom)!=null?o:0,left:(n=i.left)!=null?n:0}}function mh(i){return typeof i!="number"?e3(i):{top:i,right:i,bottom:i,left:i}}function Xi(i){let{x:r,y:t,width:o,height:n}=i;return{width:o,height:n,top:t,left:r,right:r+o,bottom:t+n,x:r,y:t}}function Ng(i,r,t){let{reference:o,floating:n}=i,a=en(r),s=Pc(r),l=Oc(s),d=ni(r),h=a==="y",m=o.x+o.width/2-n.width/2,f=o.y+o.height/2-n.height/2,b=o[l]/2-n[l]/2,g;switch(d){case"top":g={x:m,y:o.y-n.height};break;case"bottom":g={x:m,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:f};break;case"left":g={x:o.x-n.width,y:f};break;default:g={x:o.x,y:o.y}}let v=Yi(r);return v&&(g[s]+=b*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function Dg(i,r){var t;r===void 0&&(r={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:b=!1,padding:g=0}=Ki(r,i),v=mh(g),_=l[b?f==="floating"?"reference":"floating":f],k=Xi(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(_)))==null||t?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:m,strategy:d})),O=f==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),I=await(a.isElement==null?void 0:a.isElement(j))&&await(a.getScale==null?void 0:a.getScale(j))||{x:1,y:1},w=Xi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:j,strategy:d}):O);return{top:(k.top-w.top+v.top)/I.y,bottom:(w.bottom-k.bottom+v.bottom)/I.y,left:(k.left-w.left+v.left)/I.x,right:(w.right-k.right+v.right)/I.x}}var r3=50,Rg=async(i,r,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:Dg},d=await(s.isRTL==null?void 0:s.isRTL(r)),h=await s.getElementRects({reference:i,floating:r,strategy:n}),{x:m,y:f}=Ng(h,o,d),b=o,g=0,v={};for(let x=0;x<a.length;x++){let _=a[x];if(!_)continue;let{name:k,fn:O}=_,{x:j,y:I,data:w,reset:E}=await O({x:m,y:f,initialPlacement:o,placement:b,strategy:n,middlewareData:v,rects:h,platform:l,elements:{reference:i,floating:r}});m=j??m,f=I??f,v[k]={...v[k],...w},E&&g<r3&&(g++,typeof E=="object"&&(E.placement&&(b=E.placement),E.rects&&(h=E.rects===!0?await s.getElementRects({reference:i,floating:r,strategy:n}):E.rects),{x:m,y:f}=Ng(h,b,d)),x=-1)}return{x:m,y:f,placement:b,strategy:n,middlewareData:v}},Og=i=>({name:"arrow",options:i,async fn(r){let{x:t,y:o,placement:n,rects:a,platform:s,elements:l,middlewareData:d}=r,{element:h,padding:m=0}=Ki(i,r)||{};if(h==null)return{};let f=mh(m),b={x:t,y:o},g=Pc(n),v=Oc(g),x=await s.getDimensions(h),_=g==="y",k=_?"top":"left",O=_?"bottom":"right",j=_?"clientHeight":"clientWidth",I=a.reference[v]+a.reference[g]-b[g]-a.floating[v],w=b[g]-a.reference[g],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h)),q=E?E[j]:0;(!q||!await(s.isElement==null?void 0:s.isElement(E)))&&(q=l.floating[j]||a.floating[v]);let W=I/2-w/2,tt=q/2-x[v]/2-1,dt=Zo(f[k],tt),ft=Zo(f[O],tt),wt=q-x[v]-ft,Mt=q/2-x[v]/2+W,ge=hh(dt,Mt,wt),Ve=!d.arrow&&Yi(n)!=null&&Mt!==ge&&a.reference[v]/2-(Mt<dt?dt:ft)-x[v]/2<0,nr=Ve?Mt<dt?Mt-dt:Mt-wt:0;return{[g]:b[g]+nr,data:{[g]:ge,centerOffset:Mt-ge-nr,...Ve&&{alignmentOffset:nr}},reset:Ve}}});var Pg=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var t,o;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:h}=r,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,..._}=Ki(i,r);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let k=ni(n),O=en(l),j=ni(l)===l,I=await(d.isRTL==null?void 0:d.isRTL(h.floating)),w=b||(j||!x?[Gs(l)]:Mg(l)),E=v!=="none";!b&&E&&w.push(...Ig(l,x,v,I));let q=[l,...w],W=await d.detectOverflow(r,_),tt=[],dt=((o=a.flip)==null?void 0:o.overflows)||[];if(m&&tt.push(W[k]),f){let ge=Lg(n,s,I);tt.push(W[ge[0]],W[ge[1]])}if(dt=[...dt,{placement:n,overflows:tt}],!tt.every(ge=>ge<=0)){var ft,wt;let ge=(((ft=a.flip)==null?void 0:ft.index)||0)+1,Ve=q[ge];if(Ve&&(!(f==="alignment"?O!==en(Ve):!1)||dt.every(Ue=>en(Ue.placement)===O?Ue.overflows[0]>0:!0)))return{data:{index:ge,overflows:dt},reset:{placement:Ve}};let nr=(wt=dt.filter(ke=>ke.overflows[0]<=0).sort((ke,Ue)=>ke.overflows[1]-Ue.overflows[1])[0])==null?void 0:wt.placement;if(!nr)switch(g){case"bestFit":{var Mt;let ke=(Mt=dt.filter(Ue=>{if(E){let be=en(Ue.placement);return be===O||be==="y"}return!0}).map(Ue=>[Ue.placement,Ue.overflows.filter(be=>be>0).reduce((be,Qn)=>be+Qn,0)]).sort((Ue,be)=>Ue[1]-be[1])[0])==null?void 0:Mt[0];ke&&(nr=ke);break}case"initialPlacement":nr=l;break}if(n!==nr)return{reset:{placement:nr}}}return{}}}};var o3=new Set(["left","top"]);async function n3(i,r){let{placement:t,platform:o,elements:n}=i,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=ni(t),l=Yi(t),d=en(t)==="y",h=o3.has(s)?-1:1,m=a&&d?-1:1,f=Ki(r,i),{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),d?{x:g*m,y:b*h}:{x:b*h,y:g*m}}var Hg=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var t,o;let{x:n,y:a,placement:s,middlewareData:l}=r,d=await n3(r,i);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Fg=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:t,y:o,placement:n,platform:a}=r,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:O=>{let{x:j,y:I}=O;return{x:j,y:I}}},...h}=Ki(i,r),m={x:t,y:o},f=await a.detectOverflow(r,h),b=en(n),g=uh(b),v=m[g],x=m[b],_=(O,j)=>hh(j+f[O==="y"?"top":"left"],j,j-f[O==="y"?"bottom":"right"]);s&&(v=_(g,v)),l&&(x=_(b,x));let k=d.fn({...r,[g]:v,[b]:x});return{...k,data:{x:k.x-t,y:k.y-o,enabled:{[g]:s,[b]:l}}}}}};var Bg=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){let{placement:t,rects:o,platform:n,elements:a}=r,{apply:s=()=>{},...l}=Ki(i,r),d=await n.detectOverflow(r,l),h=ni(t),m=Yi(t),f=en(t)==="y",{width:b,height:g}=o.floating,v,x;h==="top"||h==="bottom"?(v=h,x=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(x=h,v=m==="end"?"top":"bottom");let _=g-d.top-d.bottom,k=b-d.left-d.right,O=Zo(g-d[v],_),j=Zo(b-d[x],k),I=r.middlewareData.shift,w=!I,E=O,q=j;I!=null&&I.enabled.x&&(q=k),I!=null&&I.enabled.y&&(E=_),w&&!m&&(f?q=b-2*Io(d.left,d.right):E=g-2*Io(d.top,d.bottom)),await s({...r,availableWidth:q,availableHeight:E});let W=await n.getDimensions(a.floating);return b!==W.width||g!==W.height?{reset:{rects:!0}}:{}}}};function Hc(){return typeof window<"u"}function Ji(i){return Ug(i)?(i.nodeName||"").toLowerCase():"#document"}function xr(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function rn(i){var r;return(r=(Ug(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function Ug(i){return Hc()?i instanceof Node||i instanceof xr(i).Node:!1}function No(i){return Hc()?i instanceof Element||i instanceof xr(i).Element:!1}function En(i){return Hc()?i instanceof HTMLElement||i instanceof xr(i).HTMLElement:!1}function Vg(i){return!Hc()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof xr(i).ShadowRoot}function Ys(i){let{overflow:r,overflowX:t,overflowY:o,display:n}=Do(i);return/auto|scroll|overlay|hidden|clip/.test(r+o+t)&&n!=="inline"&&n!=="contents"}function jg(i){return/^(table|td|th)$/.test(Ji(i))}function Xs(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var i3=/transform|translate|scale|rotate|perspective|filter/,a3=/paint|layout|strict|content/,Qi=i=>!!i&&i!=="none",fh;function Ia(i){let r=No(i)?Do(i):i;return Qi(r.transform)||Qi(r.translate)||Qi(r.scale)||Qi(r.rotate)||Qi(r.perspective)||!Fc()&&(Qi(r.backdropFilter)||Qi(r.filter))||i3.test(r.willChange||"")||a3.test(r.contain||"")}function Gg(i){let r=ii(i);for(;En(r)&&!Na(r);){if(Ia(r))return r;if(Xs(r))return null;r=ii(r)}return null}function Fc(){return fh==null&&(fh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),fh}function Na(i){return/^(html|body|#document)$/.test(Ji(i))}function Do(i){return xr(i).getComputedStyle(i)}function Qs(i){return No(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function ii(i){if(Ji(i)==="html")return i;let r=i.assignedSlot||i.parentNode||Vg(i)&&i.host||rn(i);return Vg(r)?r.host:r}function Wg(i){let r=ii(i);return Na(r)?(i.ownerDocument||i).body:En(r)&&Ys(r)?r:Wg(r)}function Ma(i,r,t){var o;r===void 0&&(r=[]),t===void 0&&(t=!0);let n=Wg(i),a=n===((o=i.ownerDocument)==null?void 0:o.body),s=xr(n);if(a){let l=Bc(s);return r.concat(s,s.visualViewport||[],Ys(n)?n:[],l&&t?Ma(l):[])}else return r.concat(n,Ma(n,[],t))}function Bc(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Xg(i){let r=Do(i),t=parseFloat(r.width)||0,o=parseFloat(r.height)||0,n=En(i),a=n?i.offsetWidth:t,s=n?i.offsetHeight:o,l=Ws(t)!==a||Ws(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function bh(i){return No(i)?i:i.contextElement}function Da(i){let r=bh(i);if(!En(r))return tn(1);let t=r.getBoundingClientRect(),{width:o,height:n,$:a}=Xg(r),s=(a?Ws(t.width):t.width)/o,l=(a?Ws(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var s3=tn(0);function Qg(i){let r=xr(i);return!Fc()||!r.visualViewport?s3:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function l3(i,r,t){return r===void 0&&(r=!1),!!t&&r&&t===xr(i)}function Zi(i,r,t,o){r===void 0&&(r=!1),t===void 0&&(t=!1);let n=i.getBoundingClientRect(),a=bh(i),s=tn(1);r&&(o?No(o)&&(s=Da(o)):s=Da(i));let l=l3(a,t,o)?Qg(a):tn(0),d=(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&&o){let b=xr(a),g=No(o)?xr(o):o,v=b,x=Bc(v);for(;x&&g!==v;){let _=Da(x),k=x.getBoundingClientRect(),O=Do(x),j=k.left+(x.clientLeft+parseFloat(O.paddingLeft))*_.x,I=k.top+(x.clientTop+parseFloat(O.paddingTop))*_.y;d*=_.x,h*=_.y,m*=_.x,f*=_.y,d+=j,h+=I,v=xr(x),x=Bc(v)}}return Xi({width:m,height:f,x:d,y:h})}function Vc(i,r){let t=Qs(i).scrollLeft;return r?r.left+t:Zi(rn(i)).left+t}function Jg(i,r){let t=i.getBoundingClientRect(),o=t.left+r.scrollLeft-Vc(i,t),n=t.top+r.scrollTop;return{x:o,y:n}}function c3(i){let{elements:r,rect:t,offsetParent:o,strategy:n}=i,a=n==="fixed",s=rn(o),l=r?Xs(r.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},h=tn(1),m=tn(0),f=En(o);if((f||!a)&&((Ji(o)!=="body"||Ys(s))&&(d=Qs(o)),f)){let g=Zi(o);h=Da(o),m.x=g.x+o.clientLeft,m.y=g.y+o.clientTop}let b=s&&!f&&!a?Jg(s,d):tn(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:t.y*h.y-d.scrollTop*h.y+m.y+b.y}}function d3(i){return i.getClientRects?Array.from(i.getClientRects()):[]}function p3(i){let r=Qs(i),t=i.ownerDocument.body,o=Io(i.scrollWidth,i.clientWidth,t.scrollWidth,t.clientWidth),n=Io(i.scrollHeight,i.clientHeight,t.scrollHeight,t.clientHeight),a=-r.scrollLeft+Vc(i),s=-r.scrollTop;return Do(t).direction==="rtl"&&(a+=Io(i.clientWidth,t.clientWidth)-o),{width:o,height:n,x:a,y:s}}var h3=25;function u3(i,r,t){t===void 0&&(t="viewport");let o=t==="layoutViewport",n=xr(i),a=rn(i),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,h=0,m=0;if(s){let b=!Fc()||r==="fixed";o?b||(h=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,b&&(h=s.offsetLeft,m=s.offsetTop))}if(Vc(a)<=0){let b=a.ownerDocument,g=b.body,v=getComputedStyle(g),x=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,_=Math.abs(a.clientWidth-g.clientWidth-x),k=getComputedStyle(a).scrollbarGutter==="stable both-edges"?_/2:_;k<=h3&&(l-=k)}return{width:l,height:d,x:h,y:m}}function m3(i,r){let t=Zi(i,!0,r==="fixed"),o=t.top+i.clientTop,n=t.left+i.clientLeft,a=Da(i),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=n*a.x,h=o*a.y;return{width:s,height:l,x:d,y:h}}function Kg(i,r,t){let o;if(r==="viewport"||r==="layoutViewport")o=u3(i,t,r);else if(r==="document")o=p3(rn(i));else if(No(r))o=m3(r,t);else{let n=Qg(i);o={x:r.x-n.x,y:r.y-n.y,width:r.width,height:r.height}}return Xi(o)}function f3(i,r){let t=r.get(i);if(t)return t;let o=Ma(i,[],!1).filter(l=>No(l)&&Ji(l)!=="body"),n=null,a=Do(i).position==="fixed",s=a?ii(i):i;for(;No(s)&&!Na(s);){let l=Do(s),d=Ia(s),h=n?n.position:a?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&l.position==="static")?o=o.filter(f=>f!==s):n=l,s=ii(s)}return r.set(i,o),o}function g3(i){let{element:r,boundary:t,rootBoundary:o,strategy:n}=i,s=[...t==="clippingAncestors"?Xs(r)?[]:f3(r,this._c):[].concat(t),o],l=Kg(r,s[0],n),d=l.top,h=l.right,m=l.bottom,f=l.left;for(let b=1;b<s.length;b++){let g=Kg(r,s[b],n);d=Io(g.top,d),h=Zo(g.right,h),m=Zo(g.bottom,m),f=Io(g.left,f)}return{width:h-f,height:m-d,x:f,y:d}}function b3(i){let{width:r,height:t}=Xg(i);return{width:r,height:t}}function v3(i,r,t){let o=En(r),n=rn(r),a=t==="fixed",s=Zi(i,!0,a,r),l={scrollLeft:0,scrollTop:0},d=tn(0);if((o||!a)&&((Ji(r)!=="body"||Ys(n))&&(l=Qs(r)),o)){let b=Zi(r,!0,a,r);d.x=b.x+r.clientLeft,d.y=b.y+r.clientTop}!o&&n&&(d.x=Vc(n));let h=n&&!o&&!a?Jg(n,l):tn(0),m=s.left+l.scrollLeft-d.x-h.x,f=s.top+l.scrollTop-d.y-h.y;return{x:m,y:f,width:s.width,height:s.height}}function gh(i){return Do(i).position==="static"}function Yg(i,r){if(!En(i)||Do(i).position==="fixed")return null;if(r)return r(i);let t=i.offsetParent;return rn(i)===t&&(t=t.ownerDocument.body),t}function Zg(i,r){let t=xr(i);if(Xs(i))return t;if(!En(i)){let n=ii(i);for(;n&&!Na(n);){if(No(n)&&!gh(n))return n;n=ii(n)}return t}let o=Yg(i,r);for(;o&&jg(o)&&gh(o);)o=Yg(o,r);return o&&Na(o)&&gh(o)&&!Ia(o)?t:o||Gg(i)||t}var x3=async function(i){let r=this.getOffsetParent||Zg,t=this.getDimensions,o=await t(i.floating);return{reference:v3(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function y3(i){return Do(i).direction==="rtl"}var Js={convertOffsetParentRelativeRectToViewportRelativeRect:c3,getDocumentElement:rn,getClippingRect:g3,getOffsetParent:Zg,getElementRects:x3,getClientRects:d3,getDimensions:b3,getScale:Da,isElement:No,isRTL:y3};function tb(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function z3(i,r,t){let o=null,n,a=rn(i);function s(){var m;clearTimeout(n),(m=o)==null||m.disconnect(),o=null}function l(m,f){m===void 0&&(m=!1),f===void 0&&(f=1),s();let b=i.getBoundingClientRect(),{left:g,top:v,width:x,height:_}=b;if(m||r(),!x||!_)return;let k=Ks(v),O=Ks(a.clientWidth-(g+x)),j=Ks(a.clientHeight-(v+_)),I=Ks(g),E={rootMargin:-k+"px "+-O+"px "+-j+"px "+-I+"px",threshold:Io(0,Zo(1,f))||1},q=!0;function W(tt){let dt=tt[0].intersectionRatio;if(!tb(b,i.getBoundingClientRect()))return l();if(dt!==f){if(!q)return l();dt?l(!1,dt):n=setTimeout(()=>{l(!1,1e-7)},1e3)}q=!1}try{o=new IntersectionObserver(W,{...E,root:a.ownerDocument})}catch{o=new IntersectionObserver(W,E)}o.observe(i)}let d=xr(i),h=()=>l(t);return d.addEventListener("resize",h),l(!0),()=>{d.removeEventListener("resize",h),s()}}function eb(i,r,t,o){o===void 0&&(o={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,h=bh(i),m=n||a?[...h?Ma(h):[],...r?Ma(r):[]]:[];m.forEach(k=>{n&&k.addEventListener("scroll",t),a&&k.addEventListener("resize",t)});let f=h&&l?z3(h,t,a):null,b=-1,g=null;s&&(g=new ResizeObserver(k=>{let[O]=k;O&&O.target===h&&g&&r&&(g.unobserve(r),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var j;(j=g)==null||j.observe(r)})),t()}),h&&!d&&g.observe(h),r&&g.observe(r));let v,x=d?Zi(i):null;d&&_();function _(){let k=Zi(i);x&&!tb(x,k)&&t(),x=k,v=requestAnimationFrame(_)}return t(),()=>{var k;m.forEach(O=>{n&&O.removeEventListener("scroll",t),a&&O.removeEventListener("resize",t)}),f?.(),(k=g)==null||k.disconnect(),g=null,d&&cancelAnimationFrame(v)}}var rb=Hg;var ob=Fg,nb=Pg,vh=Bg;var ib=Og;var ab=(i,r,t)=>{let o=new Map,n=t??{},a={...Js,...n.platform,_c:o};return Rg(i,r,{...n,platform:a})};function sb(i){return w3(i)}function xh(i){return i.assignedSlot?i.assignedSlot:i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}function w3(i){for(let r=i;r;r=xh(r))if(r instanceof Element&&getComputedStyle(r).display==="none")return null;for(let r=xh(i);r;r=xh(r)){if(!(r instanceof Element))continue;let t=getComputedStyle(r);if(t.display!=="contents"&&(t.position!=="static"||Ia(t)||r.tagName==="BODY"))return r}return null}var lb=T`@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}:host *,:host *::before,:host *::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 _3(i){return i!==null&&typeof i=="object"&&"getBoundingClientRect"in i&&("contextElement"in i?i instanceof Element:!0)}var Ct=class extends S{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(),o=this.popup.getBoundingClientRect(),n=this.placement.includes("top")||this.placement.includes("bottom"),a,s,l,d,h,m,f,b;n?t.top<o.top?(a=t.left,s=t.bottom,l=t.right,d=t.bottom,h=o.left,m=o.top,f=o.right,b=o.top):(a=o.left,s=o.bottom,l=o.right,d=o.bottom,h=t.left,m=t.top,f=t.right,b=t.top):t.left<o.left?(a=t.right,s=t.top,l=o.left,d=o.top,h=t.right,m=t.bottom,f=o.left,b=o.bottom):(a=o.right,s=o.top,l=t.left,d=t.top,h=o.right,m=o.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",`${d}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||_3(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=eb(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=[rb({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(vh({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(nb({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ob({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(vh({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(ib({element:this.arrowEl,padding:this.arrowPadding}));let o=this.strategy==="absolute"?n=>Js.getOffsetParent(n,sb):Js.getOffsetParent;ab(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...Js,getOffsetParent:o}}).then(({x:n,y:a,middlewareData:s,placement:l})=>{let d={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.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,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge())}render(){return u`
139
139
  <slot class="anchor" name="anchor" @slotchange="${this.handleAnchorChange}"></slot>
140
140
 
141
141
  <span
@@ -153,7 +153,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
153
153
  ${this.arrow?u`
154
154
  <div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
155
155
  </div>
156
- `}};Ct.styles=A(lb),c([F(".popup")],Ct.prototype,"popup",2),c([F(".popup__arrow")],Ct.prototype,"arrowEl",2),c([p()],Ct.prototype,"anchor",2),c([p({type:Boolean,reflect:!0})],Ct.prototype,"active",2),c([p({reflect:!0})],Ct.prototype,"placement",2),c([p({reflect:!0})],Ct.prototype,"strategy",2),c([p({type:Number})],Ct.prototype,"distance",2),c([p({type:Number})],Ct.prototype,"skidding",2),c([p({type:Boolean})],Ct.prototype,"arrow",2),c([p({attribute:"arrow-placement"})],Ct.prototype,"arrowPlacement",2),c([p({attribute:"arrow-padding",type:Number})],Ct.prototype,"arrowPadding",2),c([p({type:Boolean})],Ct.prototype,"flip",2),c([p({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(o=>o.trim()).filter(o=>o!==""),toAttribute:t=>t.join(" ")}})],Ct.prototype,"flipFallbackPlacements",2),c([p({attribute:"flip-fallback-strategy"})],Ct.prototype,"flipFallbackStrategy",2),c([p({type:Object})],Ct.prototype,"flipBoundary",2),c([p({attribute:"flip-padding",type:Number})],Ct.prototype,"flipPadding",2),c([p({type:Boolean})],Ct.prototype,"shift",2),c([p({type:Object})],Ct.prototype,"shiftBoundary",2),c([p({attribute:"shift-padding",type:Number})],Ct.prototype,"shiftPadding",2),c([p({attribute:"auto-size"})],Ct.prototype,"autoSize",2),c([p()],Ct.prototype,"sync",2),c([p({type:Object})],Ct.prototype,"autoSizeBoundary",2),c([p({attribute:"auto-size-padding",type:Number})],Ct.prototype,"autoSizePadding",2),c([p({attribute:"hover-bridge",type:Boolean})],Ct.prototype,"hoverBridge",2);var Zs=Ct;Ct.define("zn-popup");var cb=T`@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}:host *,:host *::before,:host *::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(:not([expanded])){cursor:pointer}:host([expanded]) .expand{transform:rotate(180deg)}:host-context(.app-navigation) .header{padding:var(--zn-base-px)}.header{display:flex;flex-direction:row;justify-content:space-between;cursor:pointer;overflow:hidden;padding:var(--zn-base-gap);justify-items:center}.header .caption{font-weight:600;margin:0;flex-grow:1;width:100%;color:rgb(var(--zn-text-heading))}.header .description{text-align:right;padding:0;margin:0}.header .summary{font-weight:500;font-size:90%}.header .label{font-weight:500;font-size:90%}.header__left{flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.header__right{display:flex;flex-direction:row;align-items:center}:host([error-label]) .header .caption{color:rgb(var(--zn-color-error))}:host([warning-label]) .header .caption{color:rgb(var(--zn-color-warning))}:host(:not([flush])).content{padding:var(--zn-base-gap,0)}.content{transition:0.1s all ease-out}:host([expanded]) .content{margin:0 var(--zn-spacing-medium);padding-bottom:var(--zn-spacing-medium)}:host([expanded]) .content--flush{margin:0;padding:0}:host(:not([expanded])) .content{max-height:0;opacity:0;overflow:hidden;padding:0}.expand{margin-left:var(--zn-spacing-medium)}`;var qe=class extends S{constructor(){super(...arguments);this.caption="";this.label="";this.showNumber=!1;this.countElement="*";this.expanded=!1;this.storeKey="";this.storeTtl=0;this.flush=!1;this.numberOfItems=0;this.hasSlotController=new Q(this,"[default]","header","caption","label","description");this.observer=new Pt(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>this.recalculateNumberOfItems()});this.showArrow=!0;this.handleCaptionToggle=t=>{let o=t.target;o&&(this.expanded=o.checked)};this.handleCollapse=t=>{let o=t.target;o.tagName.toLowerCase()==="input"&&o.type==="checkbox"||this.expanded&&(this.expanded=!1,t.stopPropagation())};this.recalculateNumberOfItems=()=>{let t=this.hasSlotController.getDefaultSlot().filter(n=>n.nodeType===Node.ELEMENT_NODE);if(this.countElement==="*"){this.numberOfItems=t.length;return}let o=t.flatMap(n=>Array.from(n.querySelectorAll(this.countElement)));this.numberOfItems=o.length}}async connectedCallback(){if(super.connectedCallback(),this._store=new sr(this.localStorage?window.localStorage:window.sessionStorage,"zncla:",this.storeTtl),this.expanded=this.defaultState==="open",this.storeKey){let o=this._store.get(this.storeKey);o&&(this.expanded=o==="true")}this.showNumber&&this.observer.observe(this),await this.updateComplete;let t=this.hasSlotController.getSlot("caption");if(t){let o=t.querySelectorAll("zn-toggle");this.showArrow=!1,o.forEach(n=>{n.removeEventListener("zn-input",this.handleCaptionToggle),n.addEventListener("zn-input",this.handleCaptionToggle)})}}updated(t){super.updated(t),t.has("expanded")&&this.storeKey&&this._store.set(this.storeKey,this.expanded.toString())}render(){return this.recalculateNumberOfItems(),u`
156
+ `}};Ct.styles=A(lb),c([F(".popup")],Ct.prototype,"popup",2),c([F(".popup__arrow")],Ct.prototype,"arrowEl",2),c([p()],Ct.prototype,"anchor",2),c([p({type:Boolean,reflect:!0})],Ct.prototype,"active",2),c([p({reflect:!0})],Ct.prototype,"placement",2),c([p({reflect:!0})],Ct.prototype,"strategy",2),c([p({type:Number})],Ct.prototype,"distance",2),c([p({type:Number})],Ct.prototype,"skidding",2),c([p({type:Boolean})],Ct.prototype,"arrow",2),c([p({attribute:"arrow-placement"})],Ct.prototype,"arrowPlacement",2),c([p({attribute:"arrow-padding",type:Number})],Ct.prototype,"arrowPadding",2),c([p({type:Boolean})],Ct.prototype,"flip",2),c([p({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(o=>o.trim()).filter(o=>o!==""),toAttribute:t=>t.join(" ")}})],Ct.prototype,"flipFallbackPlacements",2),c([p({attribute:"flip-fallback-strategy"})],Ct.prototype,"flipFallbackStrategy",2),c([p({type:Object})],Ct.prototype,"flipBoundary",2),c([p({attribute:"flip-padding",type:Number})],Ct.prototype,"flipPadding",2),c([p({type:Boolean})],Ct.prototype,"shift",2),c([p({type:Object})],Ct.prototype,"shiftBoundary",2),c([p({attribute:"shift-padding",type:Number})],Ct.prototype,"shiftPadding",2),c([p({attribute:"auto-size"})],Ct.prototype,"autoSize",2),c([p()],Ct.prototype,"sync",2),c([p({type:Object})],Ct.prototype,"autoSizeBoundary",2),c([p({attribute:"auto-size-padding",type:Number})],Ct.prototype,"autoSizePadding",2),c([p({attribute:"hover-bridge",type:Boolean})],Ct.prototype,"hoverBridge",2);var Zs=Ct;Ct.define("zn-popup");var cb=T`@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}:host *,:host *::before,:host *::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(:not([expanded])){cursor:pointer}:host([expanded]) .expand{transform:rotate(180deg)}:host-context(.app-navigation) .header{padding:var(--zn-base-px)}.header{display:flex;flex-direction:row;justify-content:space-between;cursor:pointer;overflow:hidden;padding:var(--zn-base-gap);justify-items:center}.header .caption{font-weight:600;margin:0;flex-grow:1;width:100%;color:rgb(var(--zn-text-heading))}.header .description{text-align:right;padding:0;margin:0}.header .summary{font-weight:500;font-size:90%}.header .label{font-weight:500;font-size:90%}.header__left{flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.header__right{display:flex;flex-direction:row;align-items:center}:host([error-label]) .header .caption{color:rgb(var(--zn-color-error))}:host([warning-label]) .header .caption{color:rgb(var(--zn-color-warning))}:host(:not([flush])).content{padding:var(--zn-base-gap,0)}.content{transition:0.1s all ease-out}:host([expanded]) .content{margin:0 var(--zn-spacing-medium);padding-bottom:var(--zn-spacing-medium)}:host([expanded]) .content--flush{margin:0;padding:0}:host(:not([expanded])) .content{max-height:0;opacity:0;overflow:hidden;padding:0}.expand{margin-left:var(--zn-spacing-medium)}`;var qe=class extends S{constructor(){super(...arguments);this.caption="";this.label="";this.showNumber=!1;this.countElement="*";this.expanded=!1;this.storeKey="";this.storeTtl=0;this.flush=!1;this.numberOfItems=0;this.hasSlotController=new Q(this,"[default]","header","caption","label","description");this.observer=new Ht(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>this.recalculateNumberOfItems()});this.showArrow=!0;this.handleCaptionToggle=t=>{let o=t.target;o&&(this.expanded=o.checked)};this.handleCollapse=t=>{let o=t.target;o.tagName.toLowerCase()==="input"&&o.type==="checkbox"||this.expanded&&(this.expanded=!1,t.stopPropagation())};this.recalculateNumberOfItems=()=>{let t=this.hasSlotController.getDefaultSlot().filter(n=>n.nodeType===Node.ELEMENT_NODE);if(this.countElement==="*"){this.numberOfItems=t.length;return}let o=t.flatMap(n=>Array.from(n.querySelectorAll(this.countElement)));this.numberOfItems=o.length}}async connectedCallback(){if(super.connectedCallback(),this._store=new sr(this.localStorage?window.localStorage:window.sessionStorage,"zncla:",this.storeTtl),this.expanded=this.defaultState==="open",this.storeKey){let o=this._store.get(this.storeKey);o&&(this.expanded=o==="true")}this.showNumber&&this.observer.observe(this),await this.updateComplete;let t=this.hasSlotController.getSlot("caption");if(t){let o=t.querySelectorAll("zn-toggle");this.showArrow=!1,o.forEach(n=>{n.removeEventListener("zn-input",this.handleCaptionToggle),n.addEventListener("zn-input",this.handleCaptionToggle)})}}updated(t){super.updated(t),t.has("expanded")&&this.storeKey&&this._store.set(this.storeKey,this.expanded.toString())}render(){return this.recalculateNumberOfItems(),u`
157
157
  <div @click="${()=>this.expanded?"":this.expanded=!0}">
158
158
  <slot name="header" part="header" class="header" @click="${this.handleCollapse}">
159
159
  <div class="header__left">
@@ -377,7 +377,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
377
377
  <zn-button color="default" slot="footer" @click=${this.handleQBUpdate}>Show Results</zn-button>
378
378
  </div>
379
379
  </zn-slideout>
380
- `}};on.styles=A(Eb),c([p()],on.prototype,"filters",2),c([p()],on.prototype,"name",2),c([p()],on.prototype,"value",2);var kh=on;on.define("zn-data-table-filter");var ue=(i="value")=>(r,t)=>{let o=r.constructor,n=o.prototype.attributeChangedCallback;o.prototype.attributeChangedCallback=function(a,s,l){let d=o.getPropertyOptions(i),h=typeof d.attribute=="string"?d.attribute:i;if(a===h){let m=d.converter||Zn,b=(typeof m=="function"?m:m?.fromAttribute??Zn.fromAttribute)(l,d.type);this[i]!==b&&(this[t]=b)}n.call(this,a,s,l)}};var yr=oe(class extends je{constructor(i){if(super(i),i.type!==Je.PROPERTY&&i.type!==Je.ATTRIBUTE&&i.type!==Je.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Lc(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[r]){if(r===re||r===G)return r;let t=i.element,o=i.name;if(i.type===Je.PROPERTY){if(r===t[o])return re}else if(i.type===Je.BOOLEAN_ATTRIBUTE){if(!!r===t.hasAttribute(o))return re}else if(i.type===Je.ATTRIBUTE&&t.getAttribute(o)===r+"")return re;return $a(i),r}});var Ch=new Set,Pa=new Map,An,Sh="ltr",Eh="en",Tb=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(Tb){let i=new MutationObserver(Ab);Sh=document.documentElement.dir||"ltr",Eh=document.documentElement.lang||navigator.language,i.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function nl(...i){i.map(r=>{let t=r.$code.toLowerCase();Pa.has(t)?Pa.set(t,Object.assign(Object.assign({},Pa.get(t)),r)):Pa.set(t,r),An||(An=r)}),Ab()}function Ab(){Tb&&(Sh=document.documentElement.dir||"ltr",Eh=document.documentElement.lang||navigator.language),[...Ch.keys()].map(i=>{typeof i.requestUpdate=="function"&&i.requestUpdate()})}var jc=class{constructor(r){this.host=r,this.host.addController(this)}hostConnected(){Ch.add(this.host)}hostDisconnected(){Ch.delete(this.host)}dir(){return`${this.host.dir||Sh}`.toLowerCase()}lang(){let r=`${this.host.lang||Eh}`.toLowerCase().replace(/_/g,"-");try{return new Intl.Locale(r),r}catch{return An?An.$code.toLowerCase():"en"}}getTranslationData(r){var t,o;let n;try{n=new Intl.Locale(r.replace(/_/g,"-"))}catch{return{locale:void 0,language:"",region:"",primary:void 0,secondary:void 0}}let a=n.language.toLowerCase(),s=(o=(t=n.region)===null||t===void 0?void 0:t.toLowerCase())!==null&&o!==void 0?o:"",l=Pa.get(`${a}-${s}`),d=Pa.get(a);return{locale:n,language:a,region:s,primary:l,secondary:d}}exists(r,t){var o;let{primary:n,secondary:a}=this.getTranslationData((o=t.lang)!==null&&o!==void 0?o:this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[r]||a&&a[r]||t.includeFallback&&An&&An[r])}term(r,...t){let{primary:o,secondary:n}=this.getTranslationData(this.lang()),a;if(o&&o[r])a=o[r];else if(n&&n[r])a=n[r];else if(An&&An[r])a=An[r];else return console.error(`No translation found for: ${String(r)}`),String(r);return typeof a=="function"?a(...t):a}date(r,t){return r=new Date(r),new Intl.DateTimeFormat(this.lang(),t).format(r)}number(r,t){return r=Number(r),isNaN(r)?"":new Intl.NumberFormat(this.lang(),t).format(r)}relativeTime(r,t,o){return new Intl.RelativeTimeFormat(this.lang(),o).format(r,t)}};var $b={$code:"en",$name:"English",$dir:"ltr",onChange:"onChange",showPassword:"Show password",hidePassword:"Hide password",clearEntry:"Clear entry",numOptionsSelected:i=>i===0?"No options selected":i===1?"1 option selected":`${i} 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:i=>i===0?"No files selected":i===1?"1 file selected":`${i} files selected`};nl($b);var qb=$b;var Ye=class extends jc{};nl(qb);var Lb=T`@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}:host *,:host *::before,:host *::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)}.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{height:100%}:host{display:block}.input{flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;box-shadow:var(--zn-shadow-x-small);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-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:var(--zn-border-radius);border:solid 1px rgba(0,0,0,0.15);background-color:var(--zn-color-neutral-0);cursor:pointer;transition:var(--zn-transition-fast) border-color,var(--zn-transition-fast) box-shadow;overflow:hidden;position:relative;flex-shrink:0;margin-inline-start:var(--zn-input-spacing-small)}.input__color-swatch:hover{border-color:rgba(0,0,0,0.25);box-shadow:0 0 0 2px rgba(0,0,0,0.05)}.input--x-small .input__color-swatch{margin-inline-start:var(--zn-input-spacing-x-small)}.input--small .input__color-swatch{margin-inline-start:var(--zn-spacing-x2-small)}.input--medium .input__color-swatch{margin-inline-start:var(--zn-spacing-x-small)}.input--large .input__color-swatch{margin-inline-start:var(--zn-spacing-small)}.input__color-swatch-inner{width:100%;height:100%;border-radius:calc(var(--zn-border-radius) - 2px);background-color:var(--color-value,#000000)}.input__color-picker{position:absolute;opacity:0;width:0;height:0;padding:0;margin:0;pointer-events:none;border:none;visibility:hidden}.input--x-small .input__color-swatch{width:1.25rem;height:1.25rem}.input--small .input__color-swatch{width:1.5rem;height:1.5rem}.input--medium .input__color-swatch{width:1.75rem;height:1.75rem}.input--large .input__color-swatch{width:2rem;height:2rem}`;var lt=class extends S{constructor(){super(...arguments);this.formControlController=new ot(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Q(this,"help-text","label","label-tooltip");this.localize=new Ye(this);this.hasFocus=!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.required=!1;this.spellcheck=!0}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 o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!o)return"";let n=parseInt(o[1],16),a=parseInt(o[2],16),s=parseInt(o[3],16);return`rgb(${n}, ${a}, ${s})`}rgbToHex(t){let o=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(!o)return"";let n=parseInt(o[1]).toString(16).padStart(2,"0"),a=parseInt(o[2]).toString(16).padStart(2,"0"),s=parseInt(o[3]).toString(16).padStart(2,"0");return`#${n}${a}${s}`}hexToOklch(t){let o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!o)return"";let n=parseInt(o[1],16)/255,a=parseInt(o[2],16)/255,s=parseInt(o[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,d=n*.2126729+a*.7151522+s*.072175,h=n*.0193339+a*.119192+s*.9503041,m=l/.95047,f=d/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,x=b>.008856?Math.pow(b,1/3):7.787*b+16/116,_=116*v-16,k=500*(g-v),O=200*(v-x),j=Math.sqrt(k*k+O*O),I=Math.atan2(O,k)*180/Math.PI;I<0&&(I+=360);let w=(_/100).toFixed(3),E=(j/150).toFixed(3),q=I.toFixed(1);return`oklch(${w} ${E} ${q})`}oklchToHex(t){let o=t.match(/^oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)$/);if(!o)return"";let n=parseFloat(o[1])*100,a=parseFloat(o[2])*150,s=parseFloat(o[3]),l=a*Math.cos(s*Math.PI/180),d=a*Math.sin(s*Math.PI/180),h=(n+16)/116,m=l/500+h,f=h-d/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,x=b*.95047,_=g*1,k=v*1.08883,O=x*3.2404542+_*-1.5371385+k*-.4985314,j=x*-.969266+_*1.8760108+k*.041556,I=x*.0556434+_*-.2040259+k*1.0572252;O=O>.0031308?1.055*Math.pow(O,1/2.4)-.055:12.92*O,j=j>.0031308?1.055*Math.pow(j,1/2.4)-.055:12.92*j,I=I>.0031308?1.055*Math.pow(I,1/2.4)-.055:12.92*I,O=Math.max(0,Math.min(1,O)),j=Math.max(0,Math.min(1,j)),I=Math.max(0,Math.min(1,I));let w=Math.round(O*255).toString(16).padStart(2,"0"),E=Math.round(j*255).toString(16).padStart(2,"0"),q=Math.round(I*255).toString(16).padStart(2,"0");return`#${w}${E}${q}`}hexToHsl(t){let o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!o)return"";let n=parseInt(o[1],16)/255,a=parseInt(o[2],16)/255,s=parseInt(o[3],16)/255,l=Math.max(n,a,s),d=Math.min(n,a,s),h=(l+d)/2,m=0,f=0;if(l!==d){let b=l-d;switch(f=h>.5?b/(2-l-d):b/(l+d),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 o=t.match(/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)$/);if(!o)return"";let n=parseInt(o[1])/360,a=parseInt(o[2])/100,s=parseInt(o[3])/100,l,d,h;if(a===0)l=d=h=s;else{let g=(_,k,O)=>(O<0&&(O+=1),O>1&&(O-=1),O<.16666666666666666?_+(k-_)*6*O:O<.5?k:O<.6666666666666666?_+(k-_)*(.6666666666666666-O)*6:_),v=s<.5?s*(1+a):s+a-s*a,x=2*s-v;l=g(x,v,n+1/3),d=g(x,v,n),h=g(x,v,n-1/3)}let m=Math.round(l*255).toString(16).padStart(2,"0"),f=Math.round(d*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 o=this.convertFromHex(t);o!==this.value&&(this.value=o)}}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 o=t;o&&!o.startsWith("#")&&(o="#"+o),/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(o)&&(this.value=o.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(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let o=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;if(t.key==="Enter"&&!o&&!t.defaultPrevented&&!t.isComposing){let n=this.formControlController.getForm();if(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 o=t.target;o.tagName==="ZN-CHECKBOX"&&(o.slot==="prefix"||o.closest('[slot="prefix"]'))||(o.classList.contains("input__prefix")||o.slot==="prefix"||o.hasAttribute("part")&&o.getAttribute("part")==="base")&&(this.handleFocus(),this.input.focus())}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 o=this.convertFromHex(t);if(o!==this.value){this.value=o,this.emit("zn-change");return}}}this.formControlController.updateValidity(),this.type==="color"&&this.colorPicker&&(this.colorPicker.value=this.convertToHex(this.value)||"#000000")}async handleColorFormatChange(){if(this.type==="color"&&this.value){let t=this.convertToHex(this.value);if(t){let o=this.convertFromHex(t);o!==this.value&&(this.value=o,this.emit("zn-change"))}}}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,o,n="none"){this.input.setSelectionRange(t,o,n)}setRangeText(t,o,n,a="preserve"){let s=o??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"),o=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:o,d=this.contextNote?!0:n,h=this.helpText?!0:a,m=this.clearable&&!this.disabled&&!this.readonly,f=this.optionalIcon,b=m&&(typeof this.value=="number"||this.value.length>0);return u`
380
+ `}};on.styles=A(Eb),c([p()],on.prototype,"filters",2),c([p()],on.prototype,"name",2),c([p()],on.prototype,"value",2);var kh=on;on.define("zn-data-table-filter");var ue=(i="value")=>(r,t)=>{let o=r.constructor,n=o.prototype.attributeChangedCallback;o.prototype.attributeChangedCallback=function(a,s,l){let d=o.getPropertyOptions(i),h=typeof d.attribute=="string"?d.attribute:i;if(a===h){let m=d.converter||Zn,b=(typeof m=="function"?m:m?.fromAttribute??Zn.fromAttribute)(l,d.type);this[i]!==b&&(this[t]=b)}n.call(this,a,s,l)}};var yr=oe(class extends je{constructor(i){if(super(i),i.type!==Je.PROPERTY&&i.type!==Je.ATTRIBUTE&&i.type!==Je.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Lc(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[r]){if(r===re||r===G)return r;let t=i.element,o=i.name;if(i.type===Je.PROPERTY){if(r===t[o])return re}else if(i.type===Je.BOOLEAN_ATTRIBUTE){if(!!r===t.hasAttribute(o))return re}else if(i.type===Je.ATTRIBUTE&&t.getAttribute(o)===r+"")return re;return $a(i),r}});var Ch=new Set,Pa=new Map,An,Sh="ltr",Eh="en",Tb=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(Tb){let i=new MutationObserver(Ab);Sh=document.documentElement.dir||"ltr",Eh=document.documentElement.lang||navigator.language,i.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function nl(...i){i.map(r=>{let t=r.$code.toLowerCase();Pa.has(t)?Pa.set(t,Object.assign(Object.assign({},Pa.get(t)),r)):Pa.set(t,r),An||(An=r)}),Ab()}function Ab(){Tb&&(Sh=document.documentElement.dir||"ltr",Eh=document.documentElement.lang||navigator.language),[...Ch.keys()].map(i=>{typeof i.requestUpdate=="function"&&i.requestUpdate()})}var jc=class{constructor(r){this.host=r,this.host.addController(this)}hostConnected(){Ch.add(this.host)}hostDisconnected(){Ch.delete(this.host)}dir(){return`${this.host.dir||Sh}`.toLowerCase()}lang(){let r=`${this.host.lang||Eh}`.toLowerCase().replace(/_/g,"-");try{return new Intl.Locale(r),r}catch{return An?An.$code.toLowerCase():"en"}}getTranslationData(r){var t,o;let n;try{n=new Intl.Locale(r.replace(/_/g,"-"))}catch{return{locale:void 0,language:"",region:"",primary:void 0,secondary:void 0}}let a=n.language.toLowerCase(),s=(o=(t=n.region)===null||t===void 0?void 0:t.toLowerCase())!==null&&o!==void 0?o:"",l=Pa.get(`${a}-${s}`),d=Pa.get(a);return{locale:n,language:a,region:s,primary:l,secondary:d}}exists(r,t){var o;let{primary:n,secondary:a}=this.getTranslationData((o=t.lang)!==null&&o!==void 0?o:this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[r]||a&&a[r]||t.includeFallback&&An&&An[r])}term(r,...t){let{primary:o,secondary:n}=this.getTranslationData(this.lang()),a;if(o&&o[r])a=o[r];else if(n&&n[r])a=n[r];else if(An&&An[r])a=An[r];else return console.error(`No translation found for: ${String(r)}`),String(r);return typeof a=="function"?a(...t):a}date(r,t){return r=new Date(r),new Intl.DateTimeFormat(this.lang(),t).format(r)}number(r,t){return r=Number(r),isNaN(r)?"":new Intl.NumberFormat(this.lang(),t).format(r)}relativeTime(r,t,o){return new Intl.RelativeTimeFormat(this.lang(),o).format(r,t)}};var $b={$code:"en",$name:"English",$dir:"ltr",onChange:"onChange",showPassword:"Show password",hidePassword:"Hide password",clearEntry:"Clear entry",numOptionsSelected:i=>i===0?"No options selected":i===1?"1 option selected":`${i} 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:i=>i===0?"No files selected":i===1?"1 file selected":`${i} files selected`};nl($b);var qb=$b;var Ye=class extends jc{};nl(qb);var Lb=T`@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}:host *,:host *::before,:host *::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)}.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{height:100%}:host{display:block}.input{flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;box-shadow:var(--zn-shadow-x-small);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-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:var(--zn-border-radius);border:solid 1px rgba(0,0,0,0.15);background-color:var(--zn-color-neutral-0);cursor:pointer;transition:var(--zn-transition-fast) border-color,var(--zn-transition-fast) box-shadow;overflow:hidden;position:relative;flex-shrink:0;margin-inline-start:var(--zn-input-spacing-small)}.input__color-swatch:hover{border-color:rgba(0,0,0,0.25);box-shadow:0 0 0 2px rgba(0,0,0,0.05)}.input--x-small .input__color-swatch{margin-inline-start:var(--zn-input-spacing-x-small)}.input--small .input__color-swatch{margin-inline-start:var(--zn-spacing-x2-small)}.input--medium .input__color-swatch{margin-inline-start:var(--zn-spacing-x-small)}.input--large .input__color-swatch{margin-inline-start:var(--zn-spacing-small)}.input__color-swatch-inner{width:100%;height:100%;border-radius:calc(var(--zn-border-radius) - 2px);background-color:var(--color-value,#000000)}.input__color-picker{position:absolute;opacity:0;width:0;height:0;padding:0;margin:0;pointer-events:none;border:none;visibility:hidden}.input--x-small .input__color-swatch{width:1.25rem;height:1.25rem}.input--small .input__color-swatch{width:1.5rem;height:1.5rem}.input--medium .input__color-swatch{width:1.75rem;height:1.75rem}.input--large .input__color-swatch{width:2rem;height:2rem}`;var lt=class extends S{constructor(){super(...arguments);this.formControlController=new ot(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Q(this,"help-text","label","label-tooltip");this.localize=new Ye(this);this.hasFocus=!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.required=!1;this.spellcheck=!0;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 o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!o)return"";let n=parseInt(o[1],16),a=parseInt(o[2],16),s=parseInt(o[3],16);return`rgb(${n}, ${a}, ${s})`}rgbToHex(t){let o=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(!o)return"";let n=parseInt(o[1]).toString(16).padStart(2,"0"),a=parseInt(o[2]).toString(16).padStart(2,"0"),s=parseInt(o[3]).toString(16).padStart(2,"0");return`#${n}${a}${s}`}hexToOklch(t){let o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!o)return"";let n=parseInt(o[1],16)/255,a=parseInt(o[2],16)/255,s=parseInt(o[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,d=n*.2126729+a*.7151522+s*.072175,h=n*.0193339+a*.119192+s*.9503041,m=l/.95047,f=d/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,x=b>.008856?Math.pow(b,1/3):7.787*b+16/116,_=116*v-16,k=500*(g-v),O=200*(v-x),j=Math.sqrt(k*k+O*O),I=Math.atan2(O,k)*180/Math.PI;I<0&&(I+=360);let w=(_/100).toFixed(3),E=(j/150).toFixed(3),q=I.toFixed(1);return`oklch(${w} ${E} ${q})`}oklchToHex(t){let o=t.match(/^oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)$/);if(!o)return"";let n=parseFloat(o[1])*100,a=parseFloat(o[2])*150,s=parseFloat(o[3]),l=a*Math.cos(s*Math.PI/180),d=a*Math.sin(s*Math.PI/180),h=(n+16)/116,m=l/500+h,f=h-d/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,x=b*.95047,_=g*1,k=v*1.08883,O=x*3.2404542+_*-1.5371385+k*-.4985314,j=x*-.969266+_*1.8760108+k*.041556,I=x*.0556434+_*-.2040259+k*1.0572252;O=O>.0031308?1.055*Math.pow(O,1/2.4)-.055:12.92*O,j=j>.0031308?1.055*Math.pow(j,1/2.4)-.055:12.92*j,I=I>.0031308?1.055*Math.pow(I,1/2.4)-.055:12.92*I,O=Math.max(0,Math.min(1,O)),j=Math.max(0,Math.min(1,j)),I=Math.max(0,Math.min(1,I));let w=Math.round(O*255).toString(16).padStart(2,"0"),E=Math.round(j*255).toString(16).padStart(2,"0"),q=Math.round(I*255).toString(16).padStart(2,"0");return`#${w}${E}${q}`}hexToHsl(t){let o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!o)return"";let n=parseInt(o[1],16)/255,a=parseInt(o[2],16)/255,s=parseInt(o[3],16)/255,l=Math.max(n,a,s),d=Math.min(n,a,s),h=(l+d)/2,m=0,f=0;if(l!==d){let b=l-d;switch(f=h>.5?b/(2-l-d):b/(l+d),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 o=t.match(/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)$/);if(!o)return"";let n=parseInt(o[1])/360,a=parseInt(o[2])/100,s=parseInt(o[3])/100,l,d,h;if(a===0)l=d=h=s;else{let g=(_,k,O)=>(O<0&&(O+=1),O>1&&(O-=1),O<.16666666666666666?_+(k-_)*6*O:O<.5?k:O<.6666666666666666?_+(k-_)*(.6666666666666666-O)*6:_),v=s<.5?s*(1+a):s+a-s*a,x=2*s-v;l=g(x,v,n+1/3),d=g(x,v,n),h=g(x,v,n-1/3)}let m=Math.round(l*255).toString(16).padStart(2,"0"),f=Math.round(d*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 o=this.convertFromHex(t);o!==this.value&&(this.value=o)}}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 o=t;o&&!o.startsWith("#")&&(o="#"+o),/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(o)&&(this.value=o.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(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let o=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;if(t.key==="Enter"&&!o&&!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 o=t.target;o.tagName==="ZN-CHECKBOX"&&(o.slot==="prefix"||o.closest('[slot="prefix"]'))||(o.classList.contains("input__prefix")||o.slot==="prefix"||o.hasAttribute("part")&&o.getAttribute("part")==="base")&&(this.handleFocus(),this.input.focus())}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 o=this.convertFromHex(t);if(o!==this.value){this.value=o,this.emit("zn-change");return}}}this.formControlController.updateValidity(),this.type==="color"&&this.colorPicker&&(this.colorPicker.value=this.convertToHex(this.value)||"#000000")}async handleColorFormatChange(){if(this.type==="color"&&this.value){let t=this.convertToHex(this.value);if(t){let o=this.convertFromHex(t);o!==this.value&&(this.value=o,this.emit("zn-change"))}}}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,o,n="none"){this.input.setSelectionRange(t,o,n)}setRangeText(t,o,n,a="preserve"){let s=o??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"),o=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:o,d=this.contextNote?!0:n,h=this.helpText?!0:a,m=this.clearable&&!this.disabled&&!this.readonly,f=this.optionalIcon,b=m&&(typeof this.value=="number"||this.value.length>0);return u`
381
381
  <div part="form-control"
382
382
  class="${N({"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":s,"form-control--has-label-tooltip":l,"form-control--has-context-note":d,"form-control--has-help-text":h})}">
383
383
 
@@ -507,7 +507,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
507
507
  <slot name="help-text">${this.helpText}</slot>
508
508
  </div>
509
509
 
510
- </div>`}};lt.styles=A(Lb),lt.dependencies={"zn-icon":ct,"zn-tooltip":Mo},c([F(".input__control")],lt.prototype,"input",2),c([F(".input__color-picker")],lt.prototype,"colorPicker",2),c([H()],lt.prototype,"hasFocus",2),c([H()],lt.prototype,"isUserTyping",2),c([p()],lt.prototype,"title",2),c([p({reflect:!0})],lt.prototype,"type",2),c([p()],lt.prototype,"name",2),c([p()],lt.prototype,"value",2),c([ue()],lt.prototype,"defaultValue",2),c([p({reflect:!0})],lt.prototype,"size",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"pill",2),c([p()],lt.prototype,"label",2),c([p({attribute:"label-tooltip"})],lt.prototype,"labelTooltip",2),c([p({attribute:"context-note"})],lt.prototype,"contextNote",2),c([p({attribute:"help-text"})],lt.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"clearable",2),c([p({attribute:"optional-icon",type:Boolean})],lt.prototype,"optionalIcon",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"filled",2),c([p()],lt.prototype,"placeholder",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"readonly",2),c([p({attribute:"password-toggle",type:Boolean})],lt.prototype,"passwordToggle",2),c([p({attribute:"password-visible",type:Boolean})],lt.prototype,"passwordVisible",2),c([p({attribute:"no-spin-buttons",type:Boolean})],lt.prototype,"noSpinButtons",2),c([p({attribute:"color-format"})],lt.prototype,"colorFormat",2),c([p({reflect:!0})],lt.prototype,"form",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"required",2),c([p()],lt.prototype,"pattern",2),c([p({type:Number})],lt.prototype,"minlength",2),c([p({type:Number})],lt.prototype,"maxlength",2),c([p()],lt.prototype,"min",2),c([p()],lt.prototype,"max",2),c([p()],lt.prototype,"step",2),c([p()],lt.prototype,"autocapitalize",2),c([p()],lt.prototype,"autocorrect",2),c([p()],lt.prototype,"autocomplete",2),c([p({type:Boolean})],lt.prototype,"autofocus",2),c([p()],lt.prototype,"enterkeyhint",2),c([p({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],lt.prototype,"spellcheck",2),c([p()],lt.prototype,"inputmode",2),c([K("disabled",{waitUntilFirstUpdate:!0})],lt.prototype,"handleDisabledChange",1),c([K("step",{waitUntilFirstUpdate:!0})],lt.prototype,"handleStepChange",1),c([K("value",{waitUntilFirstUpdate:!0})],lt.prototype,"handleValueChange",1),c([K("colorFormat",{waitUntilFirstUpdate:!0})],lt.prototype,"handleColorFormatChange",1);var Le=lt;lt.define("zn-input");var Mb=T`@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}:host *,:host *::before,:host *::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-help-text){font-size:var(--zn-input-help-text-font-size-small);padding-left:var(--zn-spacing-2x-small)}`;var Dr=class extends S{constructor(){super(...arguments);this._formController=new ot(this,{});this.name="search";this.value="";this.placeholder="Search...";this.helpText="";this.debounceDelay=350;this.handleInput=t=>{let o=t.target;this.value=o.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 Ce}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={},o=this.shadowRoot?.querySelector("slot");if(!o)return t;let n=o.assignedElements({flatten:!0}),a=["zn-input","zn-select","zn-query-builder","zn-multiselect","zn-params-select","zn-datepicker","input","select","textarea","zn-cols","zn-input-group"];return n.forEach(s=>{if(a.includes(s.tagName.toLowerCase())){let l=s,d=l.value||s.getAttribute("value"),h=l.name||s.getAttribute("name");h&&(t[h]=d)}}),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`
510
+ </div>`}};lt.styles=A(Lb),lt.dependencies={"zn-icon":ct,"zn-tooltip":Mo},c([F(".input__control")],lt.prototype,"input",2),c([F(".input__color-picker")],lt.prototype,"colorPicker",2),c([H()],lt.prototype,"hasFocus",2),c([H()],lt.prototype,"isUserTyping",2),c([p()],lt.prototype,"title",2),c([p({reflect:!0})],lt.prototype,"type",2),c([p()],lt.prototype,"name",2),c([p()],lt.prototype,"value",2),c([ue()],lt.prototype,"defaultValue",2),c([p({reflect:!0})],lt.prototype,"size",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"pill",2),c([p()],lt.prototype,"label",2),c([p({attribute:"label-tooltip"})],lt.prototype,"labelTooltip",2),c([p({attribute:"context-note"})],lt.prototype,"contextNote",2),c([p({attribute:"help-text"})],lt.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"clearable",2),c([p({attribute:"optional-icon",type:Boolean})],lt.prototype,"optionalIcon",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"filled",2),c([p()],lt.prototype,"placeholder",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"readonly",2),c([p({attribute:"password-toggle",type:Boolean})],lt.prototype,"passwordToggle",2),c([p({attribute:"password-visible",type:Boolean})],lt.prototype,"passwordVisible",2),c([p({attribute:"no-spin-buttons",type:Boolean})],lt.prototype,"noSpinButtons",2),c([p({attribute:"color-format"})],lt.prototype,"colorFormat",2),c([p({reflect:!0})],lt.prototype,"form",2),c([p({type:Boolean,reflect:!0})],lt.prototype,"required",2),c([p()],lt.prototype,"pattern",2),c([p({type:Number})],lt.prototype,"minlength",2),c([p({type:Number})],lt.prototype,"maxlength",2),c([p()],lt.prototype,"min",2),c([p()],lt.prototype,"max",2),c([p()],lt.prototype,"step",2),c([p()],lt.prototype,"autocapitalize",2),c([p()],lt.prototype,"autocorrect",2),c([p()],lt.prototype,"autocomplete",2),c([p({type:Boolean})],lt.prototype,"autofocus",2),c([p()],lt.prototype,"enterkeyhint",2),c([p({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],lt.prototype,"spellcheck",2),c([p()],lt.prototype,"inputmode",2),c([p({type:Boolean,attribute:"trigger-submit"})],lt.prototype,"triggerSubmit",2),c([K("disabled",{waitUntilFirstUpdate:!0})],lt.prototype,"handleDisabledChange",1),c([K("step",{waitUntilFirstUpdate:!0})],lt.prototype,"handleStepChange",1),c([K("value",{waitUntilFirstUpdate:!0})],lt.prototype,"handleValueChange",1),c([K("colorFormat",{waitUntilFirstUpdate:!0})],lt.prototype,"handleColorFormatChange",1);var Le=lt;lt.define("zn-input");var Mb=T`@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}:host *,:host *::before,:host *::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-help-text){font-size:var(--zn-input-help-text-font-size-small);padding-left:var(--zn-spacing-2x-small)}`;var Dr=class extends S{constructor(){super(...arguments);this._formController=new ot(this,{});this.name="search";this.value="";this.placeholder="Search...";this.helpText="";this.debounceDelay=350;this.handleInput=t=>{let o=t.target;this.value=o.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 Ce}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={},o=this.shadowRoot?.querySelector("slot");if(!o)return t;let n=o.assignedElements({flatten:!0}),a=["zn-input","zn-select","zn-query-builder","zn-multiselect","zn-params-select","zn-datepicker","input","select","textarea","zn-cols","zn-input-group"];return n.forEach(s=>{if(a.includes(s.tagName.toLowerCase())){let l=s,d=l.value||s.getAttribute("value"),h=l.name||s.getAttribute("name");h&&(t[h]=d)}}),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`
511
511
  <div class="data-table-search">
512
512
  <zn-input
513
513
  type="search"
@@ -1133,7 +1133,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
1133
1133
  <p part="caption" class="tile__caption">${this.caption}</p>
1134
1134
  <slot part="description" class="tile__description">${this.description}</slot>
1135
1135
  </div>
1136
- </div>`}};nn.styles=A(Wb),c([p({attribute:"caption",reflect:!0})],nn.prototype,"caption",2),c([p({attribute:"description",reflect:!0})],nn.prototype,"description",2),c([p({attribute:"icon",reflect:!0})],nn.prototype,"icon",2);var F3=nn;nn.define("zn-tile-property");var Kb=T`: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 Ht=class extends S{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(o=>{console.error("Error accepting interaction",o)})}_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 o=this.autoAcceptDelay,n=Math.max(0,t-Date.now()),a=Math.max(0,o-n);return Math.min(100,Math.max(0,a/o*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":""),o=this._isCountingDown()?this._countdownPercent():null,n=this._isCountingDown()?this._remainingSeconds():null;return u`
1136
+ </div>`}};nn.styles=A(Wb),c([p({attribute:"caption",reflect:!0})],nn.prototype,"caption",2),c([p({attribute:"description",reflect:!0})],nn.prototype,"description",2),c([p({attribute:"icon",reflect:!0})],nn.prototype,"icon",2);var F3=nn;nn.define("zn-tile-property");var Kb=T`: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 Ft=class extends S{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(o=>{console.error("Error accepting interaction",o)})}_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 o=this.autoAcceptDelay,n=Math.max(0,t-Date.now()),a=Math.max(0,o-n);return Math.min(100,Math.max(0,a/o*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":""),o=this._isCountingDown()?this._countdownPercent():null,n=this._isCountingDown()?this._remainingSeconds():null;return u`
1137
1137
  <div
1138
1138
  part="base"
1139
1139
  class=${N({"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})}
@@ -1195,7 +1195,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
1195
1195
  gaid=${this.acceptGaid}
1196
1196
  no-hover>
1197
1197
  </zn-button>
1198
- </slot>`}};Ht.styles=A(Kb),c([p({type:Boolean,reflect:!0})],Ht.prototype,"available",2),c([p({type:Boolean,reflect:!0})],Ht.prototype,"incoming",2),c([p({reflect:!0})],Ht.prototype,"variant",2),c([p()],Ht.prototype,"header",2),c([p()],Ht.prototype,"icon",2),c([p({reflect:!0})],Ht.prototype,"color",2),c([p()],Ht.prototype,"title",2),c([p()],Ht.prototype,"subtitle",2),c([p({type:Number})],Ht.prototype,"progress",2),c([p({attribute:"progress-color"})],Ht.prototype,"progressColor",2),c([p({attribute:"item-id"})],Ht.prototype,"itemId",2),c([p({attribute:"accept-uri"})],Ht.prototype,"acceptUri",2),c([p({type:Number,attribute:"reserved-until"})],Ht.prototype,"reservedUntil",2),c([p({type:Number,attribute:"auto-accept-delay"})],Ht.prototype,"autoAcceptDelay",2),c([p({type:Boolean,reflect:!0})],Ht.prototype,"rejectable",2),c([p({attribute:"accept-icon"})],Ht.prototype,"acceptIcon",2),c([p({attribute:"accept-gaid"})],Ht.prototype,"acceptGaid",2),c([p({attribute:"reject-icon"})],Ht.prototype,"rejectIcon",2),c([p({attribute:"reject-label"})],Ht.prototype,"rejectLabel",2);var B3=Ht;Ht.define("zn-channel-tile");function Ih(i){let r=i.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",t=i.textColor??r,o=i.enableAnimations!==!1&&i.enableAnimations!==0,n=typeof i.enableAnimations=="number"?i.enableAnimations:1500;return{animation:o,animationDuration:n,animationEasing:"cubicOut",...i.colors?{color:i.colors}:{},textStyle:{color:t},tooltip:{trigger:"axis",appendTo:"body",valueFormatter:i.yAxisAppend?a=>`${a}${i.yAxisAppend}`:void 0},legend:{top:0,right:0,icon:"circle",textStyle:{color:t}},grid:{left:40,right:20,top:40,bottom:30}}}function V3(i){return i.length===0||i.every(r=>!r.data||r.data.length===0)}function Nh(i){let r=V3(i.data)?{min:0,max:6}:{},t=i.scale?{scale:!0,...typeof i.scale=="number"?{boundaryGap:[`${i.scale}%`,`${i.scale}%`]}:{}}:{};return{type:"value",...i.borderColor?{splitLine:{lineStyle:{color:i.borderColor}}}:{},...r,...t,axisLabel:i.yAxisAppend?{formatter:n=>`${n}${i.yAxisAppend}`}:{}}}function Dh(i,r=!1){let t=i.borderColor?{axisLine:{lineStyle:{color:i.borderColor}}}:{};return i.xAxisType==="datetime"?{type:"time",...t}:i.xAxisType==="numeric"?{type:"value",...t}:{type:"category",data:i.categories,...r?{boundaryGap:!1}:{},...t}}function U3(i){return i.map(r=>r&&typeof r=="object"&&!Array.isArray(r)&&"x"in r&&"y"in r?[r.x,r.y]:r)}function Rh(i,r,t=()=>({})){return i.data.map(o=>({type:r,name:o.name,data:U3(o.data),...o.color?{itemStyle:{color:o.color}}:{},...i.stacked?{stack:"total"}:{},...i.enableAnimations!==!1&&i.enableAnimations!==0&&r==="bar"?{animationDelay:n=>n*50}:{},...t(o)}))}function Oh(i){return{...Ih(i),xAxis:Dh(i),yAxis:Nh(i),series:Rh(i,"bar")}}function Yb(i){return{...Ih(i),xAxis:Dh(i,!0),yAxis:Nh(i),series:Rh(i,"line",()=>({symbolSize:i.datapointSize,smooth:i.smooth}))}}function Xb(i){return{...Ih(i),xAxis:Dh(i,!0),yAxis:Nh(i),series:Rh(i,"line",()=>({symbolSize:i.datapointSize,smooth:i.smooth,areaStyle:{opacity:.1}}))}}function j3(i){let r=new Set,t=[];for(let o of i)r.has(o.source)||(r.add(o.source),t.push({name:o.source})),r.has(o.target)||(r.add(o.target),t.push({name:o.target}));return t}function Qb(i){let r=i.data[0]??{name:"",data:[]},t=r.data??[],n=r.nodes??j3(t),a=i.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",s=i.textColor??a,l=i.enableAnimations!==!1&&i.enableAnimations!==0,d=typeof i.enableAnimations=="number"?i.enableAnimations:1500;return{animation:l,animationDuration:d,animationEasing:"cubicOut",...i.colors?{color:i.colors}:{},textStyle:{color:s},tooltip:{trigger:"item",appendTo:"body"},series:[{type:"sankey",name:r.name,data:n,links:t,label:{color:s,textBorderWidth:0},lineStyle:{color:"source",opacity:i.theme==="dark"?.4:.3},emphasis:{focus:"adjacency"}}]}}var Jb;function Wc(){return Jb??(Jb=(async()=>{let[i,r,t,o]=await Promise.all([import("./chunks/zn.AI3T35DX.js"),import("./chunks/zn.EHO4QQOL.js"),import("./chunks/zn.6RARZYEJ.js"),import("./chunks/zn.S4ZVBYAS.js")]);return i.use([r.BarChart,r.LineChart,r.SankeyChart,t.GridComponent,t.TooltipComponent,t.LegendComponent,t.TitleComponent,t.DataZoomComponent,o.CanvasRenderer]),i})()),Jb}var Zb=T`@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}:host *,:host *::before,:host *::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 ie=class extends S{constructor(){super(...arguments);this.type="bar";this.data=[];this.categories=[];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 Qt(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("t")==="dark"?"dark":"light"}getTextColor(){let t=getComputedStyle(this),o=t.getPropertyValue("--zn-text").trim();if(!o)return;let n=t.getPropertyValue("--zn-text-opacity").trim()||"1";return`rgba(${o}, ${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()};switch(this.type){case"bar":return Oh(t);case"line":return Yb(t);case"area":return Xb(t);case"sankey":return Qb(t);default:return Oh(t)}}async initChart(){let t=this.shadowRoot?.getElementById("chart");if(!t)return;t.style.height=`${this.height}px`;let o=await Wc();!this.isConnected||this.chart||(this.echarts=o,this.chart=o.init(t),this.chart.setOption(this.buildOption()),this.syncGroup&&(this.chart.group=this.syncGroup,o.connect(this.syncGroup)),this.resizeObserver.observe(t),this.live&&this.dataUrl&&this.startLive())}startLive(){this.liveTimer=window.setInterval(async()=>{try{let o=await(await fetch(this.dataUrl)).json();this.data=o,this.chart?.setOption({...this.buildOption()})}catch{}},this.liveInterval)}reinit(){this.chart?.dispose(),this.chart=void 0,this.initPromise=this.initChart().catch(()=>{})}attributeChangedCallback(t,o,n){if(super.attributeChangedCallback(t,o,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>`}};ie.styles=A(Zb),c([p()],ie.prototype,"type",2),c([p({type:Array})],ie.prototype,"data",2),c([p({type:Array})],ie.prototype,"categories",2),c([p({attribute:"xaxis"})],ie.prototype,"xAxis",2),c([p({type:Number,attribute:"d-size"})],ie.prototype,"datapointSize",2),c([p({type:Boolean})],ie.prototype,"stacked",2),c([p({type:Boolean})],ie.prototype,"live",2),c([p({attribute:"data-url"})],ie.prototype,"dataUrl",2),c([p({attribute:"live-interval",type:Number})],ie.prototype,"liveInterval",2),c([p({type:Number,reflect:!0})],ie.prototype,"height",2),c([p({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let o=parseFloat(t);return Number.isNaN(o)?!0:o}}})],ie.prototype,"enableAnimations",2),c([p({attribute:"y-axis-append"})],ie.prototype,"yAxisAppend",2),c([p({type:Array})],ie.prototype,"colors",2),c([p({attribute:"sync-group"})],ie.prototype,"syncGroup",2),c([p({type:Boolean})],ie.prototype,"smooth",2),c([p({converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let o=parseFloat(t);return Number.isNaN(o)?!0:o}}})],ie.prototype,"scale",2);var G3=ie;ie.define("zn-chart");var tv=T`@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}:host *,:host *::before,:host *::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 W3=["Jun 2016","Jul 2016","Aug 2016","Sep 2016","Oct 2016","Nov 2016","Dec 2016","Jan 2017","Feb 2017","Mar 2017","Apr 2017","May 2017"],K3=[56.4,39.8,66.8,66.4,40.6,55.2,77.4,69.8,57.8,76,110.8,142.6],an=class extends S{constructor(){super(...arguments);this.enableAnimations=!1;this.resizeObserver=new Qt(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 o=await Wc();if(!this.isConnected||this.chart)return;this.chart=o.init(t);let n=this.datasets?.[0]?.data??K3,a=this.labels??W3,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>`}};an.styles=A(tv),c([p({attribute:"datasets",type:Array})],an.prototype,"datasets",2),c([p({attribute:"labels",type:Array})],an.prototype,"labels",2),c([p({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let o=parseFloat(t);return Number.isNaN(o)?!0:o}}})],an.prototype,"enableAnimations",2);var Y3=an;an.define("zn-simple-chart");var ev=T`@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}:host *,:host *::before,:host *::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);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-x-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;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-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;height:var(--zn-icon-size,20px)}.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 Ie=class extends S{constructor(){super(...arguments);this.hasSlotController=new Q(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]"),o=this.hasSlotController.test("nav"),n=this.navigation&&this.navigation.length>0||o,a=this.previousPath,s=this.entityId,l=this.fullLocation,d=!this.hideBreadcrumb&&this.hasSlotController.test("breadcrumb"),h=u`
1198
+ </slot>`}};Ft.styles=A(Kb),c([p({type:Boolean,reflect:!0})],Ft.prototype,"available",2),c([p({type:Boolean,reflect:!0})],Ft.prototype,"incoming",2),c([p({reflect:!0})],Ft.prototype,"variant",2),c([p()],Ft.prototype,"header",2),c([p()],Ft.prototype,"icon",2),c([p({reflect:!0})],Ft.prototype,"color",2),c([p()],Ft.prototype,"title",2),c([p()],Ft.prototype,"subtitle",2),c([p({type:Number})],Ft.prototype,"progress",2),c([p({attribute:"progress-color"})],Ft.prototype,"progressColor",2),c([p({attribute:"item-id"})],Ft.prototype,"itemId",2),c([p({attribute:"accept-uri"})],Ft.prototype,"acceptUri",2),c([p({type:Number,attribute:"reserved-until"})],Ft.prototype,"reservedUntil",2),c([p({type:Number,attribute:"auto-accept-delay"})],Ft.prototype,"autoAcceptDelay",2),c([p({type:Boolean,reflect:!0})],Ft.prototype,"rejectable",2),c([p({attribute:"accept-icon"})],Ft.prototype,"acceptIcon",2),c([p({attribute:"accept-gaid"})],Ft.prototype,"acceptGaid",2),c([p({attribute:"reject-icon"})],Ft.prototype,"rejectIcon",2),c([p({attribute:"reject-label"})],Ft.prototype,"rejectLabel",2);var B3=Ft;Ft.define("zn-channel-tile");function Ih(i){let r=i.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",t=i.textColor??r,o=i.enableAnimations!==!1&&i.enableAnimations!==0,n=typeof i.enableAnimations=="number"?i.enableAnimations:1500;return{animation:o,animationDuration:n,animationEasing:"cubicOut",...i.colors?{color:i.colors}:{},textStyle:{color:t},tooltip:{trigger:"axis",appendTo:"body",valueFormatter:i.yAxisAppend?a=>`${a}${i.yAxisAppend}`:void 0},legend:{top:0,right:0,icon:"circle",textStyle:{color:t}},grid:{left:40,right:20,top:40,bottom:30}}}function V3(i){return i.length===0||i.every(r=>!r.data||r.data.length===0)}function Nh(i){let r=V3(i.data)?{min:0,max:6}:{},t=i.scale?{scale:!0,...typeof i.scale=="number"?{boundaryGap:[`${i.scale}%`,`${i.scale}%`]}:{}}:{};return{type:"value",...i.borderColor?{splitLine:{lineStyle:{color:i.borderColor}}}:{},...r,...t,axisLabel:i.yAxisAppend?{formatter:n=>`${n}${i.yAxisAppend}`}:{}}}function Dh(i,r=!1){let t=i.borderColor?{axisLine:{lineStyle:{color:i.borderColor}}}:{};return i.xAxisType==="datetime"?{type:"time",...t}:i.xAxisType==="numeric"?{type:"value",...t}:{type:"category",data:i.categories,...r?{boundaryGap:!1}:{},...t}}function U3(i){return i.map(r=>r&&typeof r=="object"&&!Array.isArray(r)&&"x"in r&&"y"in r?[r.x,r.y]:r)}function Rh(i,r,t=()=>({})){return i.data.map(o=>({type:r,name:o.name,data:U3(o.data),...o.color?{itemStyle:{color:o.color}}:{},...i.stacked?{stack:"total"}:{},...i.enableAnimations!==!1&&i.enableAnimations!==0&&r==="bar"?{animationDelay:n=>n*50}:{},...t(o)}))}function Oh(i){return{...Ih(i),xAxis:Dh(i),yAxis:Nh(i),series:Rh(i,"bar")}}function Yb(i){return{...Ih(i),xAxis:Dh(i,!0),yAxis:Nh(i),series:Rh(i,"line",()=>({symbolSize:i.datapointSize,smooth:i.smooth}))}}function Xb(i){return{...Ih(i),xAxis:Dh(i,!0),yAxis:Nh(i),series:Rh(i,"line",()=>({symbolSize:i.datapointSize,smooth:i.smooth,areaStyle:{opacity:.1}}))}}function j3(i){let r=new Set,t=[];for(let o of i)r.has(o.source)||(r.add(o.source),t.push({name:o.source})),r.has(o.target)||(r.add(o.target),t.push({name:o.target}));return t}function Qb(i){let r=i.data[0]??{name:"",data:[]},t=r.data??[],n=r.nodes??j3(t),a=i.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",s=i.textColor??a,l=i.enableAnimations!==!1&&i.enableAnimations!==0,d=typeof i.enableAnimations=="number"?i.enableAnimations:1500;return{animation:l,animationDuration:d,animationEasing:"cubicOut",...i.colors?{color:i.colors}:{},textStyle:{color:s},tooltip:{trigger:"item",appendTo:"body"},series:[{type:"sankey",name:r.name,data:n,links:t,label:{color:s,textBorderWidth:0},lineStyle:{color:"source",opacity:i.theme==="dark"?.4:.3},emphasis:{focus:"adjacency"}}]}}var Jb;function Wc(){return Jb??(Jb=(async()=>{let[i,r,t,o]=await Promise.all([import("./chunks/zn.AI3T35DX.js"),import("./chunks/zn.EHO4QQOL.js"),import("./chunks/zn.6RARZYEJ.js"),import("./chunks/zn.S4ZVBYAS.js")]);return i.use([r.BarChart,r.LineChart,r.SankeyChart,t.GridComponent,t.TooltipComponent,t.LegendComponent,t.TitleComponent,t.DataZoomComponent,o.CanvasRenderer]),i})()),Jb}var Zb=T`@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}:host *,:host *::before,:host *::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 ie=class extends S{constructor(){super(...arguments);this.type="bar";this.data=[];this.categories=[];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 Qt(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("t")==="dark"?"dark":"light"}getTextColor(){let t=getComputedStyle(this),o=t.getPropertyValue("--zn-text").trim();if(!o)return;let n=t.getPropertyValue("--zn-text-opacity").trim()||"1";return`rgba(${o}, ${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()};switch(this.type){case"bar":return Oh(t);case"line":return Yb(t);case"area":return Xb(t);case"sankey":return Qb(t);default:return Oh(t)}}async initChart(){let t=this.shadowRoot?.getElementById("chart");if(!t)return;t.style.height=`${this.height}px`;let o=await Wc();!this.isConnected||this.chart||(this.echarts=o,this.chart=o.init(t),this.chart.setOption(this.buildOption()),this.syncGroup&&(this.chart.group=this.syncGroup,o.connect(this.syncGroup)),this.resizeObserver.observe(t),this.live&&this.dataUrl&&this.startLive())}startLive(){this.liveTimer=window.setInterval(async()=>{try{let o=await(await fetch(this.dataUrl)).json();this.data=o,this.chart?.setOption({...this.buildOption()})}catch{}},this.liveInterval)}reinit(){this.chart?.dispose(),this.chart=void 0,this.initPromise=this.initChart().catch(()=>{})}attributeChangedCallback(t,o,n){if(super.attributeChangedCallback(t,o,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>`}};ie.styles=A(Zb),c([p()],ie.prototype,"type",2),c([p({type:Array})],ie.prototype,"data",2),c([p({type:Array})],ie.prototype,"categories",2),c([p({attribute:"xaxis"})],ie.prototype,"xAxis",2),c([p({type:Number,attribute:"d-size"})],ie.prototype,"datapointSize",2),c([p({type:Boolean})],ie.prototype,"stacked",2),c([p({type:Boolean})],ie.prototype,"live",2),c([p({attribute:"data-url"})],ie.prototype,"dataUrl",2),c([p({attribute:"live-interval",type:Number})],ie.prototype,"liveInterval",2),c([p({type:Number,reflect:!0})],ie.prototype,"height",2),c([p({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let o=parseFloat(t);return Number.isNaN(o)?!0:o}}})],ie.prototype,"enableAnimations",2),c([p({attribute:"y-axis-append"})],ie.prototype,"yAxisAppend",2),c([p({type:Array})],ie.prototype,"colors",2),c([p({attribute:"sync-group"})],ie.prototype,"syncGroup",2),c([p({type:Boolean})],ie.prototype,"smooth",2),c([p({converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let o=parseFloat(t);return Number.isNaN(o)?!0:o}}})],ie.prototype,"scale",2);var G3=ie;ie.define("zn-chart");var tv=T`@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}:host *,:host *::before,:host *::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 W3=["Jun 2016","Jul 2016","Aug 2016","Sep 2016","Oct 2016","Nov 2016","Dec 2016","Jan 2017","Feb 2017","Mar 2017","Apr 2017","May 2017"],K3=[56.4,39.8,66.8,66.4,40.6,55.2,77.4,69.8,57.8,76,110.8,142.6],an=class extends S{constructor(){super(...arguments);this.enableAnimations=!1;this.resizeObserver=new Qt(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 o=await Wc();if(!this.isConnected||this.chart)return;this.chart=o.init(t);let n=this.datasets?.[0]?.data??K3,a=this.labels??W3,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>`}};an.styles=A(tv),c([p({attribute:"datasets",type:Array})],an.prototype,"datasets",2),c([p({attribute:"labels",type:Array})],an.prototype,"labels",2),c([p({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let o=parseFloat(t);return Number.isNaN(o)?!0:o}}})],an.prototype,"enableAnimations",2);var Y3=an;an.define("zn-simple-chart");var ev=T`@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}:host *,:host *::before,:host *::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);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-x-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;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-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;height:var(--zn-icon-size,20px)}.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 Ie=class extends S{constructor(){super(...arguments);this.hasSlotController=new Q(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]"),o=this.hasSlotController.test("nav"),n=this.navigation&&this.navigation.length>0||o,a=this.previousPath,s=this.entityId,l=this.fullLocation,d=!this.hideBreadcrumb&&this.hasSlotController.test("breadcrumb"),h=u`
1199
1199
  <div class="${N({header:!0,"header--transparent":this.transparent,"header--full-width":this.fullWidth,"header--has-nav":n,"header--has-breadcrumb":d,"header--has-previous":a,"header--has-entity-id":s,"header--has-full-location":l})}" part="base">
1200
1200
 
1201
1201
  ${l||s?u`
@@ -1252,7 +1252,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
1252
1252
  :host {
1253
1253
  --max-width: 100%;
1254
1254
  }
1255
- </style>${h}`:h}};Ie.styles=A(ev),c([p({attribute:"full-location"})],Ie.prototype,"fullLocation",2),c([p({attribute:"entity-id"})],Ie.prototype,"entityId",2),c([p({attribute:"entity-id-show",type:Boolean})],Ie.prototype,"entityIdShow",2),c([p({type:Boolean})],Ie.prototype,"transparent",2),c([p()],Ie.prototype,"caption",2),c([p()],Ie.prototype,"icon",2),c([p({type:Array})],Ie.prototype,"navigation",2),c([p({attribute:"full-width",type:Boolean})],Ie.prototype,"fullWidth",2),c([p({attribute:"previous-path"})],Ie.prototype,"previousPath",2),c([p({attribute:"previous-target"})],Ie.prototype,"previousTarget",2),c([p({attribute:"hide-breadcrumb",type:Boolean})],Ie.prototype,"hideBreadcrumb",2),c([K("navigation",{waitUntilFirstUpdate:!0})],Ie.prototype,"updateNav",1);var Ph=Ie;Ie.define("zn-header");var rv=T`@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}:host *,:host *::before,:host *::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{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 X3=200,Nt=class extends S{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 Pt(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 Pt(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(),o=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-o,X3)-a;if(!n&&this._totalItemWidth<=l){this._navItems?.classList.toggle("has-hidden",!1),this._syncLastVisibleItem();return}let d=this._getMoreItemWidth(),h=l-d,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 x=g.cloneNode(!0);x.classList.remove("hidden"),this._cloneSources.set(x,g),x.addEventListener("click",()=>{g.click(),(this.shadowRoot?.querySelector("#extended-dropdown")||null)?.hide()}),this._extendedMenu?.appendChild(x),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 o of t){let n=this._cloneSources.get(o);n&&(o.classList.toggle("active",n.classList.contains("active")),o.classList.toggle("zn-tb-active",n.classList.contains("zn-tb-active")))}};this.handleClick=t=>{let o=t.composedPath(),n=this.isolated?"data-tab":"tab",a=o.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 Qt(this,{callback:()=>this._scheduleResize()}),new Pt(this,{config:{childList:!0},callback:t=>this._adoptNewLightItems(t)})}appendItem(t){this._appended=[...this._appended||[],t]}_cloneLightItem(t){let o=this._lightDomClones.get(t);if(o)return o;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=[],o=[];Array.from(this.children).forEach(n=>{if(!(n instanceof HTMLElement)||n.tagName!=="LI")return;let a=this._cloneLightItem(n);n.hasAttribute("suffix")?o.push(a):t.push(a)}),this._preItems=t,this._postItems=o}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 o of t)for(let n of Array.from(o.addedNodes))n instanceof Element&&n.tagName==="ZN-EXPANDING-ACTION"&&this.addExpandingAction(n);t.some(o=>Array.from(o.addedNodes).some(n=>n instanceof HTMLLIElement)||Array.from(o.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 sr(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,o=this.offsetWidth||t?.offsetWidth||0;for(;o===0&&t?.parentElement;)t=t.parentElement,o=t.offsetWidth||0;return o}_measureTotalItemWidth(){let t=this._navItems?.querySelectorAll(":scope > li")||[],o=0;for(let n of t)n.classList.contains("more")||!(n instanceof HTMLElement)||(o+=this._getItemWidth(n));return o}_getItemWidth(t){return(t.getBoundingClientRect().width||t.offsetWidth||0)+this._navItemsGap+5}_getHorizontalSpacing(t){let o=getComputedStyle(t);return(parseFloat(o.paddingLeft)||0)+(parseFloat(o.paddingRight)||0)}_getMoreItemWidth(){let t=this._navItems?.querySelector(":scope > li.more");if(!t||!this._navItems)return 0;let o=this._getItemWidth(t);if(o>0)return o;let n=this._navItems.classList.contains("has-hidden");return this._navItems.classList.add("has-hidden"),o=this._getItemWidth(t),this._navItems.classList.toggle("has-hidden",n),o}_syncLastVisibleItem(){let t=this._navItems?.querySelectorAll(":scope > li")||[],o=null;for(let n of t)n.classList.remove("last-visible"),!(n.classList.contains("more")||n.classList.contains("hidden")||n.id==="dropdown-item")&&(o=n);o?.classList.add("last-visible"),this._navItems?.classList.toggle("more-only",!o&&this._navItems.classList.contains("has-hidden"))}_getExpandableWidth(t){let o=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(o,n)}addItem(t,o=!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"]');o&&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 o=getComputedStyle(this._expandable);this._expandableMargin=(parseFloat(o.marginLeft)||0)+(parseFloat(o.marginRight)||0),this._resizeController.observe(this._expandable)}if(this._navItems=this.shadowRoot?.querySelector(".navbar__container > ul")||null,this._navItems){let o=getComputedStyle(this._navItems);this._navItemsGap=parseFloat(o.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(o=>this._observeExpandingAction(o)),this._updateVisibility(),setTimeout(()=>{this.handleResize()},100),this.dropdown.length>0){let o=this.shadowRoot?.querySelector("zn-menu");o&&o.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),o=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),o&&a.uri===o&&setTimeout(()=>{s.click()},100)}})}catch(n){console.warn("ZnNavbar: Failed to load stored tabs",n)}}_saveTabToStorage(t){if(!(!this.storeKey||!this._store))try{let o=this._store.get(this.storeKey),n=[];o&&(n=JSON.parse(o)),n.some(a=>a.uri===t.uri)||(n.push(t),this._store.set(this.storeKey,JSON.stringify(n)))}catch(o){console.warn("ZnNavbar: Failed to save tab",o)}}updated(t){super.updated(t),(t.has("hideOne")||t.has("navigation")||t.has("_appended"))&&this._updateVisibility()}render(){return this.navigation||(this.navigation=[]),u`
1255
+ </style>${h}`:h}};Ie.styles=A(ev),c([p({attribute:"full-location"})],Ie.prototype,"fullLocation",2),c([p({attribute:"entity-id"})],Ie.prototype,"entityId",2),c([p({attribute:"entity-id-show",type:Boolean})],Ie.prototype,"entityIdShow",2),c([p({type:Boolean})],Ie.prototype,"transparent",2),c([p()],Ie.prototype,"caption",2),c([p()],Ie.prototype,"icon",2),c([p({type:Array})],Ie.prototype,"navigation",2),c([p({attribute:"full-width",type:Boolean})],Ie.prototype,"fullWidth",2),c([p({attribute:"previous-path"})],Ie.prototype,"previousPath",2),c([p({attribute:"previous-target"})],Ie.prototype,"previousTarget",2),c([p({attribute:"hide-breadcrumb",type:Boolean})],Ie.prototype,"hideBreadcrumb",2),c([K("navigation",{waitUntilFirstUpdate:!0})],Ie.prototype,"updateNav",1);var Ph=Ie;Ie.define("zn-header");var rv=T`@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}:host *,:host *::before,:host *::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{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 X3=200,Nt=class extends S{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 Ht(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 Ht(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(),o=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-o,X3)-a;if(!n&&this._totalItemWidth<=l){this._navItems?.classList.toggle("has-hidden",!1),this._syncLastVisibleItem();return}let d=this._getMoreItemWidth(),h=l-d,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 x=g.cloneNode(!0);x.classList.remove("hidden"),this._cloneSources.set(x,g),x.addEventListener("click",()=>{g.click(),(this.shadowRoot?.querySelector("#extended-dropdown")||null)?.hide()}),this._extendedMenu?.appendChild(x),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 o of t){let n=this._cloneSources.get(o);n&&(o.classList.toggle("active",n.classList.contains("active")),o.classList.toggle("zn-tb-active",n.classList.contains("zn-tb-active")))}};this.handleClick=t=>{let o=t.composedPath(),n=this.isolated?"data-tab":"tab",a=o.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 Qt(this,{callback:()=>this._scheduleResize()}),new Ht(this,{config:{childList:!0},callback:t=>this._adoptNewLightItems(t)})}appendItem(t){this._appended=[...this._appended||[],t]}_cloneLightItem(t){let o=this._lightDomClones.get(t);if(o)return o;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=[],o=[];Array.from(this.children).forEach(n=>{if(!(n instanceof HTMLElement)||n.tagName!=="LI")return;let a=this._cloneLightItem(n);n.hasAttribute("suffix")?o.push(a):t.push(a)}),this._preItems=t,this._postItems=o}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 o of t)for(let n of Array.from(o.addedNodes))n instanceof Element&&n.tagName==="ZN-EXPANDING-ACTION"&&this.addExpandingAction(n);t.some(o=>Array.from(o.addedNodes).some(n=>n instanceof HTMLLIElement)||Array.from(o.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 sr(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,o=this.offsetWidth||t?.offsetWidth||0;for(;o===0&&t?.parentElement;)t=t.parentElement,o=t.offsetWidth||0;return o}_measureTotalItemWidth(){let t=this._navItems?.querySelectorAll(":scope > li")||[],o=0;for(let n of t)n.classList.contains("more")||!(n instanceof HTMLElement)||(o+=this._getItemWidth(n));return o}_getItemWidth(t){return(t.getBoundingClientRect().width||t.offsetWidth||0)+this._navItemsGap+5}_getHorizontalSpacing(t){let o=getComputedStyle(t);return(parseFloat(o.paddingLeft)||0)+(parseFloat(o.paddingRight)||0)}_getMoreItemWidth(){let t=this._navItems?.querySelector(":scope > li.more");if(!t||!this._navItems)return 0;let o=this._getItemWidth(t);if(o>0)return o;let n=this._navItems.classList.contains("has-hidden");return this._navItems.classList.add("has-hidden"),o=this._getItemWidth(t),this._navItems.classList.toggle("has-hidden",n),o}_syncLastVisibleItem(){let t=this._navItems?.querySelectorAll(":scope > li")||[],o=null;for(let n of t)n.classList.remove("last-visible"),!(n.classList.contains("more")||n.classList.contains("hidden")||n.id==="dropdown-item")&&(o=n);o?.classList.add("last-visible"),this._navItems?.classList.toggle("more-only",!o&&this._navItems.classList.contains("has-hidden"))}_getExpandableWidth(t){let o=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(o,n)}addItem(t,o=!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"]');o&&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 o=getComputedStyle(this._expandable);this._expandableMargin=(parseFloat(o.marginLeft)||0)+(parseFloat(o.marginRight)||0),this._resizeController.observe(this._expandable)}if(this._navItems=this.shadowRoot?.querySelector(".navbar__container > ul")||null,this._navItems){let o=getComputedStyle(this._navItems);this._navItemsGap=parseFloat(o.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(o=>this._observeExpandingAction(o)),this._updateVisibility(),setTimeout(()=>{this.handleResize()},100),this.dropdown.length>0){let o=this.shadowRoot?.querySelector("zn-menu");o&&o.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),o=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),o&&a.uri===o&&setTimeout(()=>{s.click()},100)}})}catch(n){console.warn("ZnNavbar: Failed to load stored tabs",n)}}_saveTabToStorage(t){if(!(!this.storeKey||!this._store))try{let o=this._store.get(this.storeKey),n=[];o&&(n=JSON.parse(o)),n.some(a=>a.uri===t.uri)||(n.push(t),this._store.set(this.storeKey,JSON.stringify(n)))}catch(o){console.warn("ZnNavbar: Failed to save tab",o)}}updated(t){super.updated(t),(t.has("hideOne")||t.has("navigation")||t.has("_appended"))&&this._updateVisibility()}render(){return this.navigation||(this.navigation=[]),u`
1256
1256
  <div part="container" class="${N({navbar__container:!0,"navbar__container--stacked":this.stacked,"navbar__container--icon-bar":this.iconBar})}">
1257
1257
  <ul @click="${this.handleClick}" part="navbar" class="${N({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})}">
1258
1258
  ${this._preItems}
@@ -1295,7 +1295,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
1295
1295
  `:""}
1296
1296
  </div>
1297
1297
  <slot name="bottom" part="bottom"></slot>`}};Nt.styles=A(rv),Nt.dependencies={"zn-dropdown":vr},c([p({attribute:"navigation",type:Array})],Nt.prototype,"navigation",2),c([p({attribute:"full-width",type:Boolean,reflect:!0})],Nt.prototype,"fullWidth",2),c([p({attribute:"icon-bar",type:Boolean,reflect:!0})],Nt.prototype,"iconBar",2),c([p({attribute:"slim",type:Boolean,reflect:!0})],Nt.prototype,"slim",2),c([p({attribute:"border",type:Boolean,reflect:!0})],Nt.prototype,"border",2),c([p({attribute:"hide-one",type:Boolean,reflect:!0})],Nt.prototype,"hideOne",2),c([p({attribute:"flush",type:Boolean,reflect:!0})],Nt.prototype,"flush",2),c([p({attribute:"gutter",type:Boolean,reflect:!0})],Nt.prototype,"gutter",2),c([p({type:Boolean})],Nt.prototype,"stacked",2),c([p({type:Array})],Nt.prototype,"dropdown",2),c([p({attribute:"no-pad",type:Boolean})],Nt.prototype,"noPad",2),c([p({attribute:"manual-add-items",type:Boolean})],Nt.prototype,"manualAddItems",2),c([p({type:Boolean})],Nt.prototype,"isolated",2),c([p({reflect:!0})],Nt.prototype,"color",2),c([p({attribute:"master-id",reflect:!0})],Nt.prototype,"masterId",2),c([p({attribute:"store-key",type:String})],Nt.prototype,"storeKey",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],Nt.prototype,"storeTtl",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],Nt.prototype,"localStorage",2),c([p()],Nt.prototype,"_appended",2);var il=Nt;Nt.define("zn-navbar");function Kc(i){function r(pt,nt){return pt<<nt|pt>>>32-nt}function t(pt,nt){let xt,D,y,C,z;return y=pt&2147483648,C=nt&2147483648,xt=pt&1073741824,D=nt&1073741824,z=(pt&1073741823)+(nt&1073741823),xt&&D?z^2147483648^y^C:xt||D?z?z^3221225472^y^C:z^1073741824^y^C:z^y^C}function o(pt,nt,xt){return pt&nt|~pt&xt}function n(pt,nt,xt){return pt&xt|nt&~xt}function a(pt,nt,xt){return pt^nt^xt}function s(pt,nt,xt){return nt^(pt|~xt)}function l(pt,nt,xt,D,y,C,z){return pt=t(pt,t(t(o(nt,xt,D),y),z)),t(r(pt,C),nt)}function d(pt,nt,xt,D,y,C,z){return pt=t(pt,t(t(n(nt,xt,D),y),z)),t(r(pt,C),nt)}function h(pt,nt,xt,D,y,C,z){return pt=t(pt,t(t(a(nt,xt,D),y),z)),t(r(pt,C),nt)}function m(pt,nt,xt,D,y,C,z){return pt=t(pt,t(t(s(nt,xt,D),y),z)),t(r(pt,C),nt)}function f(pt){for(var nt,xt=pt.length,D=xt+8,y=(D-D%64)/64,C=(y+1)*16,z=Array(C-1),M=0,L=0;L<xt;)nt=(L-L%4)/4,M=L%4*8,z[nt]=z[nt]|pt.charCodeAt(L)<<M,L++;return nt=(L-L%4)/4,M=L%4*8,z[nt]=z[nt]|128<<M,z[C-2]=xt<<3,z[C-1]=xt>>>29,z}function b(pt){var nt="",xt="",D,y;for(y=0;y<=3;y++)D=pt>>>y*8&255,xt="0"+D.toString(16),nt=nt+xt.substr(xt.length-2,2);return nt}function g(pt){pt=pt.replace(/\r\n/g,`
1298
- `);let nt="";for(let xt=0;xt<pt.length;xt++){let D=pt.charCodeAt(xt);D<128?nt+=String.fromCharCode(D):D>127&&D<2048?(nt+=String.fromCharCode(D>>6|192),nt+=String.fromCharCode(D&63|128)):(nt+=String.fromCharCode(D>>12|224),nt+=String.fromCharCode(D>>6&63|128),nt+=String.fromCharCode(D&63|128))}return nt}let v,x,_,k,O,j,I,w,E,q,W=7,tt=12,dt=17,ft=22,wt=5,Mt=9,ge=14,Ve=20,nr=4,ke=11,Ue=16,be=23,Qn=6,_a=10,ut=15,To=21;for(i=g(i),v=f(i),I=1732584193,w=4023233417,E=2562383102,q=271733878,x=0;x<v.length;x+=16)_=I,k=w,O=E,j=q,I=l(I,w,E,q,v[x+0],W,3614090360),q=l(q,I,w,E,v[x+1],tt,3905402710),E=l(E,q,I,w,v[x+2],dt,606105819),w=l(w,E,q,I,v[x+3],ft,3250441966),I=l(I,w,E,q,v[x+4],W,4118548399),q=l(q,I,w,E,v[x+5],tt,1200080426),E=l(E,q,I,w,v[x+6],dt,2821735955),w=l(w,E,q,I,v[x+7],ft,4249261313),I=l(I,w,E,q,v[x+8],W,1770035416),q=l(q,I,w,E,v[x+9],tt,2336552879),E=l(E,q,I,w,v[x+10],dt,4294925233),w=l(w,E,q,I,v[x+11],ft,2304563134),I=l(I,w,E,q,v[x+12],W,1804603682),q=l(q,I,w,E,v[x+13],tt,4254626195),E=l(E,q,I,w,v[x+14],dt,2792965006),w=l(w,E,q,I,v[x+15],ft,1236535329),I=d(I,w,E,q,v[x+1],wt,4129170786),q=d(q,I,w,E,v[x+6],Mt,3225465664),E=d(E,q,I,w,v[x+11],ge,643717713),w=d(w,E,q,I,v[x+0],Ve,3921069994),I=d(I,w,E,q,v[x+5],wt,3593408605),q=d(q,I,w,E,v[x+10],Mt,38016083),E=d(E,q,I,w,v[x+15],ge,3634488961),w=d(w,E,q,I,v[x+4],Ve,3889429448),I=d(I,w,E,q,v[x+9],wt,568446438),q=d(q,I,w,E,v[x+14],Mt,3275163606),E=d(E,q,I,w,v[x+3],ge,4107603335),w=d(w,E,q,I,v[x+8],Ve,1163531501),I=d(I,w,E,q,v[x+13],wt,2850285829),q=d(q,I,w,E,v[x+2],Mt,4243563512),E=d(E,q,I,w,v[x+7],ge,1735328473),w=d(w,E,q,I,v[x+12],Ve,2368359562),I=h(I,w,E,q,v[x+5],nr,4294588738),q=h(q,I,w,E,v[x+8],ke,2272392833),E=h(E,q,I,w,v[x+11],Ue,1839030562),w=h(w,E,q,I,v[x+14],be,4259657740),I=h(I,w,E,q,v[x+1],nr,2763975236),q=h(q,I,w,E,v[x+4],ke,1272893353),E=h(E,q,I,w,v[x+7],Ue,4139469664),w=h(w,E,q,I,v[x+10],be,3200236656),I=h(I,w,E,q,v[x+13],nr,681279174),q=h(q,I,w,E,v[x+0],ke,3936430074),E=h(E,q,I,w,v[x+3],Ue,3572445317),w=h(w,E,q,I,v[x+6],be,76029189),I=h(I,w,E,q,v[x+9],nr,3654602809),q=h(q,I,w,E,v[x+12],ke,3873151461),E=h(E,q,I,w,v[x+15],Ue,530742520),w=h(w,E,q,I,v[x+2],be,3299628645),I=m(I,w,E,q,v[x+0],Qn,4096336452),q=m(q,I,w,E,v[x+7],_a,1126891415),E=m(E,q,I,w,v[x+14],ut,2878612391),w=m(w,E,q,I,v[x+5],To,4237533241),I=m(I,w,E,q,v[x+12],Qn,1700485571),q=m(q,I,w,E,v[x+3],_a,2399980690),E=m(E,q,I,w,v[x+10],ut,4293915773),w=m(w,E,q,I,v[x+1],To,2240044497),I=m(I,w,E,q,v[x+8],Qn,1873313359),q=m(q,I,w,E,v[x+15],_a,4264355552),E=m(E,q,I,w,v[x+6],ut,2734768916),w=m(w,E,q,I,v[x+13],To,1309151649),I=m(I,w,E,q,v[x+4],Qn,4149444226),q=m(q,I,w,E,v[x+11],_a,3174756917),E=m(E,q,I,w,v[x+2],ut,718787259),w=m(w,E,q,I,v[x+9],To,3951481745),I=t(I,_),w=t(w,k),E=t(E,O),q=t(q,j);var Ao=b(I)+b(w)+b(E)+b(q);return Ao.toLowerCase()}var ov=T`@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}:host *,:host *::before,:host *::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__content{--expanding-action-trigger-width:36px;position:relative;min-width:300px;width:var(--expanding-action-basis,var(--zn-container-smp,320px));max-width:80vw;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__content::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))}:host([data-trigger-side=left]) .expanding-action--drop .expanding-action__content{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__content::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 Ne=class extends S{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 Pt(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let o=It("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="count"]');if(!o)return;let n=o.getAttribute("content"),a=this.shadowRoot?.querySelector(".expanding-action__dropdown zn-button");n&&a&&a.setAttribute("notification",n)}});this._colorObserver=new Pt(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let o=It("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="color"]');if(!o)return;let n=o.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"]'),o=this.shadowRoot?.querySelector("#content");if(!t||!o)return;let n=t.getBoundingClientRect(),a=o.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(o=>o)},10)}_observeMetaData(){if(this._metaObserved)return;let o=It("app-content",this,"")[0]?.shadowRoot;o&&(this._countObserver.observe(o),this._colorObserver.observe(o),this._metaObserved=!0)}_registerActions(){It("[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-"+Kc(t).substr(0,8)+"-"+this.masterId}_handleClick(t){let o=t.relatedTarget??t.target;o&&this.clickAction(o)}_createUriPanel(t,o,n){if(t.hasAttribute("action")||t.setAttribute("action",n),this._knownUri.has(o)||this._knownUri.set(o,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",o),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 o=t.getAttribute("action-uri")??"";this._createUriPanel(t,o,this._uriToId(o)),this._observeMetaData()}}async fetchContextHeaders(){try{let t=await fetch(this.contextUri,{credentials:"same-origin",method:"head",headers:{"x-requested-with":"XMLHttpRequest"}}),o=t.headers.get("x-kubex-count");o&&(this.count=o);let n=t.headers.get("x-kubex-color");n&&(this.color=n)}catch{}}clickAction(t){this.fetchUri(t)}_observePlacement(){let o=this.shadowRoot?.querySelector(".expanding-action__dropdown")?.shadowRoot?.querySelector(".dropdown");if(!o){requestAnimationFrame(()=>this._observePlacement());return}this._updateTriggerSide(),!this._placementObserver&&(this._placementObserver=new MutationObserver(this._updateTriggerSide),this._placementObserver.observe(o,{attributes:!0,attributeFilter:["data-current-placement"]}))}disconnectedCallback(){super.disconnectedCallback(),this._placementObserver?.disconnect(),this._placementObserver=void 0}render(){return u`
1298
+ `);let nt="";for(let xt=0;xt<pt.length;xt++){let D=pt.charCodeAt(xt);D<128?nt+=String.fromCharCode(D):D>127&&D<2048?(nt+=String.fromCharCode(D>>6|192),nt+=String.fromCharCode(D&63|128)):(nt+=String.fromCharCode(D>>12|224),nt+=String.fromCharCode(D>>6&63|128),nt+=String.fromCharCode(D&63|128))}return nt}let v,x,_,k,O,j,I,w,E,q,W=7,tt=12,dt=17,ft=22,wt=5,Mt=9,ge=14,Ve=20,nr=4,ke=11,Ue=16,be=23,Qn=6,_a=10,ut=15,To=21;for(i=g(i),v=f(i),I=1732584193,w=4023233417,E=2562383102,q=271733878,x=0;x<v.length;x+=16)_=I,k=w,O=E,j=q,I=l(I,w,E,q,v[x+0],W,3614090360),q=l(q,I,w,E,v[x+1],tt,3905402710),E=l(E,q,I,w,v[x+2],dt,606105819),w=l(w,E,q,I,v[x+3],ft,3250441966),I=l(I,w,E,q,v[x+4],W,4118548399),q=l(q,I,w,E,v[x+5],tt,1200080426),E=l(E,q,I,w,v[x+6],dt,2821735955),w=l(w,E,q,I,v[x+7],ft,4249261313),I=l(I,w,E,q,v[x+8],W,1770035416),q=l(q,I,w,E,v[x+9],tt,2336552879),E=l(E,q,I,w,v[x+10],dt,4294925233),w=l(w,E,q,I,v[x+11],ft,2304563134),I=l(I,w,E,q,v[x+12],W,1804603682),q=l(q,I,w,E,v[x+13],tt,4254626195),E=l(E,q,I,w,v[x+14],dt,2792965006),w=l(w,E,q,I,v[x+15],ft,1236535329),I=d(I,w,E,q,v[x+1],wt,4129170786),q=d(q,I,w,E,v[x+6],Mt,3225465664),E=d(E,q,I,w,v[x+11],ge,643717713),w=d(w,E,q,I,v[x+0],Ve,3921069994),I=d(I,w,E,q,v[x+5],wt,3593408605),q=d(q,I,w,E,v[x+10],Mt,38016083),E=d(E,q,I,w,v[x+15],ge,3634488961),w=d(w,E,q,I,v[x+4],Ve,3889429448),I=d(I,w,E,q,v[x+9],wt,568446438),q=d(q,I,w,E,v[x+14],Mt,3275163606),E=d(E,q,I,w,v[x+3],ge,4107603335),w=d(w,E,q,I,v[x+8],Ve,1163531501),I=d(I,w,E,q,v[x+13],wt,2850285829),q=d(q,I,w,E,v[x+2],Mt,4243563512),E=d(E,q,I,w,v[x+7],ge,1735328473),w=d(w,E,q,I,v[x+12],Ve,2368359562),I=h(I,w,E,q,v[x+5],nr,4294588738),q=h(q,I,w,E,v[x+8],ke,2272392833),E=h(E,q,I,w,v[x+11],Ue,1839030562),w=h(w,E,q,I,v[x+14],be,4259657740),I=h(I,w,E,q,v[x+1],nr,2763975236),q=h(q,I,w,E,v[x+4],ke,1272893353),E=h(E,q,I,w,v[x+7],Ue,4139469664),w=h(w,E,q,I,v[x+10],be,3200236656),I=h(I,w,E,q,v[x+13],nr,681279174),q=h(q,I,w,E,v[x+0],ke,3936430074),E=h(E,q,I,w,v[x+3],Ue,3572445317),w=h(w,E,q,I,v[x+6],be,76029189),I=h(I,w,E,q,v[x+9],nr,3654602809),q=h(q,I,w,E,v[x+12],ke,3873151461),E=h(E,q,I,w,v[x+15],Ue,530742520),w=h(w,E,q,I,v[x+2],be,3299628645),I=m(I,w,E,q,v[x+0],Qn,4096336452),q=m(q,I,w,E,v[x+7],_a,1126891415),E=m(E,q,I,w,v[x+14],ut,2878612391),w=m(w,E,q,I,v[x+5],To,4237533241),I=m(I,w,E,q,v[x+12],Qn,1700485571),q=m(q,I,w,E,v[x+3],_a,2399980690),E=m(E,q,I,w,v[x+10],ut,4293915773),w=m(w,E,q,I,v[x+1],To,2240044497),I=m(I,w,E,q,v[x+8],Qn,1873313359),q=m(q,I,w,E,v[x+15],_a,4264355552),E=m(E,q,I,w,v[x+6],ut,2734768916),w=m(w,E,q,I,v[x+13],To,1309151649),I=m(I,w,E,q,v[x+4],Qn,4149444226),q=m(q,I,w,E,v[x+11],_a,3174756917),E=m(E,q,I,w,v[x+2],ut,718787259),w=m(w,E,q,I,v[x+9],To,3951481745),I=t(I,_),w=t(w,k),E=t(E,O),q=t(q,j);var Ao=b(I)+b(w)+b(E)+b(q);return Ao.toLowerCase()}var ov=T`@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}:host *,:host *::before,:host *::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__content{--expanding-action-trigger-width:36px;position:relative;min-width:300px;width:var(--expanding-action-basis,var(--zn-container-smp,320px));max-width:80vw;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__content::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))}:host([data-trigger-side=left]) .expanding-action--drop .expanding-action__content{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__content::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 Ne=class extends S{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 Ht(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let o=It("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="count"]');if(!o)return;let n=o.getAttribute("content"),a=this.shadowRoot?.querySelector(".expanding-action__dropdown zn-button");n&&a&&a.setAttribute("notification",n)}});this._colorObserver=new Ht(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let o=It("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="color"]');if(!o)return;let n=o.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"]'),o=this.shadowRoot?.querySelector("#content");if(!t||!o)return;let n=t.getBoundingClientRect(),a=o.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(o=>o)},10)}_observeMetaData(){if(this._metaObserved)return;let o=It("app-content",this,"")[0]?.shadowRoot;o&&(this._countObserver.observe(o),this._colorObserver.observe(o),this._metaObserved=!0)}_registerActions(){It("[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-"+Kc(t).substr(0,8)+"-"+this.masterId}_handleClick(t){let o=t.relatedTarget??t.target;o&&this.clickAction(o)}_createUriPanel(t,o,n){if(t.hasAttribute("action")||t.setAttribute("action",n),this._knownUri.has(o)||this._knownUri.set(o,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",o),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 o=t.getAttribute("action-uri")??"";this._createUriPanel(t,o,this._uriToId(o)),this._observeMetaData()}}async fetchContextHeaders(){try{let t=await fetch(this.contextUri,{credentials:"same-origin",method:"head",headers:{"x-requested-with":"XMLHttpRequest"}}),o=t.headers.get("x-kubex-count");o&&(this.count=o);let n=t.headers.get("x-kubex-color");n&&(this.color=n)}catch{}}clickAction(t){this.fetchUri(t)}_observePlacement(){let o=this.shadowRoot?.querySelector(".expanding-action__dropdown")?.shadowRoot?.querySelector(".dropdown");if(!o){requestAnimationFrame(()=>this._observePlacement());return}this._updateTriggerSide(),!this._placementObserver&&(this._placementObserver=new MutationObserver(this._updateTriggerSide),this._placementObserver.observe(o,{attributes:!0,attributeFilter:["data-current-placement"]}))}disconnectedCallback(){super.disconnectedCallback(),this._placementObserver?.disconnect(),this._placementObserver=void 0}render(){return u`
1299
1299
  ${this.method==="fill"?u`
1300
1300
  <zn-button class="expanding-action__button"
1301
1301
  @click="${this.handleIconClicked}"
@@ -1337,7 +1337,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
1337
1337
  @click="${this.handleIconCloseClicked}"
1338
1338
  icon="close"
1339
1339
  icon-size="20">
1340
- </zn-button>`}};Ne.styles=A(ov),c([p()],Ne.prototype,"icon",2),c([p()],Ne.prototype,"method",2),c([p({attribute:"context-uri",reflect:!0})],Ne.prototype,"contextUri",2),c([p({reflect:!0})],Ne.prototype,"count",2),c([p({reflect:!0})],Ne.prototype,"color",2),c([p({type:Boolean})],Ne.prototype,"prefetch",2),c([p()],Ne.prototype,"basis",2),c([p({attribute:"max-height"})],Ne.prototype,"maxHeight",2),c([p({reflect:!0,type:Boolean})],Ne.prototype,"open",2),c([p({attribute:"master-id",reflect:!0})],Ne.prototype,"masterId",2),c([p({attribute:"fetch-style",type:String,reflect:!0})],Ne.prototype,"fetchStyle",2),c([p({attribute:"no-prefetch",type:Boolean,reflect:!0})],Ne.prototype,"noPrefetch",2);var Hh=Ne;Ne.define("zn-expanding-action");var nv=T`@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}:host *,:host *::before,:host *::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;height:100%}`;var Ho=class extends S{constructor(){super(...arguments);this.selected=!1}render(){return u`<slot></slot>`}};Ho.styles=A(nv),c([p()],Ho.prototype,"caption",2),c([p({type:Number})],Ho.prototype,"priority",2),c([p()],Ho.prototype,"uri",2),c([p({type:Boolean,reflect:!0})],Ho.prototype,"selected",2);var Fh=Ho;Ho.define("zn-tab");var iv=T`@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}:host *,:host *::before,:host *::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)}: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-input-height-x-small:24px;--zn-input-height-small:30px;--zn-input-height-medium:36px;--zn-input-height-large:40px;--zn-input-background-color:var(--zn-color-neutral-50);--zn-input-background-color-hover:var(--zn-color-neutral-100);--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-600);--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}[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-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}[t=aura],.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-border-color:218,212,246;--zn-input-focus-ring-color:hsl(255 82% 68%/40%)}: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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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}@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)}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))}.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}}: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}[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-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,[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)}[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}[t=light] .zn-primary,.theme-light .zn-primary{color:rgb(var(--zn-color-primary))}[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}[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}[t=aura],.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:blur(2px)}[t=aura] .zn-primary,.theme-aura .zn-primary{color:rgb(var(--zn-color-primary))}: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)}[t=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 !important}.zn-bt{border-top-style:solid;border-top-width:1px !important}.zn-bb{border-bottom-style:solid;border-bottom-width:1px !important}.zn-bl{border-left-style:solid;border-left-width:1px !important}.zn-br{border-right-style:solid;border-right-width:1px !important}.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-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(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 !important;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-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(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-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(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)}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);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}}: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:contents}#mid,#content{flex:1;display:flex;flex-direction:column;overflow:hidden}.tabs{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100%;min-height:100%;max-height:100%;width:100%}h1,h2{padding:0;margin:0}#mid{container-type:inline-size;flex-direction:row}#content{flex:1;max-height:100%;min-height:15px;padding:var(--zn-base-gap,0)}#content ::-webkit-scrollbar{width:5px;height:5px}#content{}#content ::-webkit-scrollbar-track{background:transparent}#content{}#content ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}#content{}#content ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}#content{display:flex;align-items:normal;overflow:auto}#content>::slotted(div),#content>div{max-height:100%}:host([no-scroll]) #content{overflow:hidden}:host([no-scroll]) #content>div{max-height:100%}:host([no-scroll]) #content>::slotted(div){max-height:100%}:host([flush]) #content{padding:0}:host([flush-x]) #content{padding-left:0;padding-right:0}#content.contents-slot slot{display:contents}#content ::slotted([selected]),#content>[selected]{flex-grow:1}#content ::slotted(:not([selected])),#content>:not([selected]):not(slot){display:none !important}:host #header~slot[name=top]::slotted(zn-navbar){padding-top:0}:host #header:not(:empty){display:flex;align-items:center;padding:var(--zn-spacing-medium);gap:var(--zn-spacing-medium)}:host #header:not(:empty) #actions ::slotted(*:not(.zn-tb-active)){display:none}:host #header:not(:empty) #actions{display:flex;overflow:visible}:host #header:not(:empty) h1,:host #header:not(:empty) h2{flex-grow:1}:host h2{font-weight:var(--zn-font-weight-bold);flex-grow:1;font-size:var(--zn-font-size-medium);color:rgba(var(--zn-text-panel-title),100%);padding:0;margin:0}::slotted(div[ref-tab]:not(.zn-tb-active)){display:none}`;var Lt=class extends S{constructor(){super();this.defaultUri="";this._current="";this._splitMin=60;this.primaryCaption="Navigation";this.secondaryCaption="Content";this.noPrefetch=!1;this.noCache=!1;this.storeTtl=0;this.padded=!1;this.fetchStyle="";this.fullWidth=!1;this.paddedRight=!1;this.preload=!0;this._activeClicks=0;this._activeTab=null;this._tabs=[];this._actions=[];this._knownUri=new Map;this.hasSlotController=new Q(this,"[default]","bottom","right","left","top","actions");this._domObserver=new Pt(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(o=>{o.type==="childList"&&(o.addedNodes.length>0&&this._registerTabs(),o.removedNodes.length>0&&o.removedNodes.forEach(n=>{let a=n instanceof HTMLElement?n.id:"";a&&this.removeTabAndPanel(a)}))})}});this._monitorObserver=new Pt(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(o=>{o.type==="childList"&&o.addedNodes.forEach(n=>{if(n instanceof HTMLElement&&n.id===this.monitor){this.reRegisterTabs();let a=this._store.get(this.storeKey);a!==null&&(this._prepareTab(a),this.setActiveTab(a,!1,!1))}})})}});this.reRegisterTabs=()=>{this._registerTabs()};this._registerTabs=()=>{It("[tab]",this,"zn-tabs").forEach(t=>{this._addTab(t)}),It("[tab-uri]",this,"zn-tabs").forEach(t=>{t.getAttribute("tab-uri")===""&&(t.setAttribute("tab",""),t.removeAttribute("tab-uri")),this._addTab(t)}),It("[ref-tab-uri]",this,"zn-tabs").forEach(t=>{t.hasAttribute("ref-tab")||(t.setAttribute("ref-tab",this._uriToId(t.getAttribute("ref-tab-uri"))),t.removeAttribute("ref-tab-uri"),this._actions.push(t))})};this._panels=new Map}async connectedCallback(){super.connectedCallback(),this.masterId||(this.masterId=this.storeKey||Math.floor(Math.random()*1e6).toString()),this.preload=!this.noPrefetch&&!this.noCache,await this.updateComplete,this._panel=this.shadowRoot?.querySelector("#content"),this.observerDom(),this._registerTabs(),this.storeKey&&this.storeTtl===0&&(this.storeTtl=300);let t=this.defaultUri?this._uriToId(this.defaultUri):"";this._store=new sr(this.localStorage?window.localStorage:window.sessionStorage,"zntab:",this.storeTtl),Array.from(this.children).forEach(o=>{o.slot===""&&this._panels.set(o.getAttribute("id")||t,[o])}),this.observerDom(),this.monitorDom()}monitorDom(){this.monitor&&this._monitorObserver.observe(this)}_addPanel(t){this._panels.has(t.getAttribute("id"))||this._panels.set(t.getAttribute("id"),[t])}_addTab(t){this._tabs.includes(t)||(this._tabs.push(t),this.preload&&t.addEventListener("mouseover",this.fetchUriTab.bind(this,t)),t.addEventListener("click",this._handleClick.bind(this)))}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>{this._registerTabs();let o=this._store.get(this.storeKey);if(o!==null){this._prepareTab(o),this.setActiveTab(o,!1,!1);return}let n=this._current||"";if(!this._panels.has(n)&&this._tabs.length>0&&this._tabs[0].getAttribute("tab-uri")){this.clickTab(this._tabs[0],!1);return}this.setActiveTab(n,!1,!1)},10),this.addEventListener("zn-menu-select",()=>{setTimeout(this.reRegisterTabs,200)},{passive:!0})}switchTab(t){let o=this._panels.size;if(o<2)return;let a=Array.from(this._panels.keys()).indexOf(this._current)+t;a<0?a=o-1:a>=o&&(a=0);let s=Array.from(this._panels.keys())[a];this.setActiveTab(s,!0,!1)}nextTab(){this.switchTab(1)}previousTab(){this.switchTab(-1)}_prepareTab(t){for(let o of this._tabs)if(o.getAttribute("tab")===t)return;for(let o of It("[tab-uri]",this,"")){let n=o.getAttribute("tab-uri"),a=this._uriToId(n);a===t&&this._createUriPanel(o,n,a)}}_uriToId(t){return"tab-"+Kc(t).substr(0,8)+"-"+this.masterId}_createUriPanel(t,o,n){if(t.hasAttribute("tab")||(t.setAttribute("tab",n),this._setTabEleActive(t,this._current===n)),this._knownUri.has(o)||this._knownUri.set(o,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):t.hasAttribute("data-fetch-style")&&a.setAttribute("data-fetch-style",t.getAttribute("data-fetch-style")??""),a.setAttribute("data-self-uri",o),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}_handleClick(t){let o=t.relatedTarget??t.target;o&&("startViewTransition"in document?document.startViewTransition(()=>this.clickTab(o,t.altKey)):this.clickTab(o,t.altKey))}fetchUriTab(t){if(!t.hasAttribute("tab")&&t.hasAttribute("tab-uri")){let o=t.getAttribute("tab-uri")??"";this._createUriPanel(t,o,this._uriToId(o)),t.setAttribute("tab-id",this._uriToId(o))}}clickTab(t,o){let n=t.getAttribute("tab-uri"),a=!!n&&this._panels.has(this._uriToId(n));if(this.fetchUriTab(t),t.hasAttribute("tab")){let s=o||this.noCache&&a;setTimeout(()=>{this.setActiveTab(t.getAttribute("tab")||"",!0,s,this.getRefTab(t))},10)}}getRefTab(t){let o=t;for(;o;){if(o===this)return null;if(o.hasAttribute("ref-tab"))return o.getAttribute("ref-tab");o=o?.parentElement||o?.getRootNode()?.host}return null}setActiveTab(t,o,n,a=null){let s=!1;this._tabs.forEach(l=>{l.hasAttribute("tab-uri")&&this._knownUri.has(l.getAttribute("tab-uri"))&&l.setAttribute("tab",this._knownUri.get(l.getAttribute("tab-uri")));let d=t===l.getAttribute("tab");!d&&a&&!this.getRefTab(l)&&(d=a===l.getAttribute("tab")),s=s||d,this._setTabEleActive(l,d)}),!s&&this._tabs.length>0&&this._setTabEleActive(this._tabs[0],!0),this._actions.forEach(l=>this._setTabEleActive(l,l.getAttribute("ref-tab")===(a||t))),this.selectTab(t,n),o&&this._store!==null&&this._store.set(this.storeKey,t)}_setTabEleActive(t,o){o&&(this._activeTab=t),t.classList.toggle("zn-tb-active",o),t.classList.toggle("active",o)}selectTab(t,o){if(t&&!this._panels.has(t))return!1;this._current===t?(this._activeClicks++,this._activeClicks>2&&(o=!0,this._activeClicks=0)):this._activeClicks=0;let a=!0;return this._panels.forEach((l,d)=>{let h=d===t;l.forEach(m=>{if(h&&m.parentNode!==this&&(a=!1),m.toggleAttribute("selected",h),h&&o){let f="",b="";this._activeTab&&this._activeTab.hasAttribute("tab-uri")&&(f=this._activeTab.getAttribute("tab-uri"),b=this._activeTab.getAttribute("gaid")),document.dispatchEvent(new CustomEvent("zn-refresh-element",{detail:{element:m,uri:f,gaid:b}}))}})}),this._panel&&this._panel.classList.toggle("contents-slot",!a),this._current=t,!0}getActiveTab(){return this._panels.get(this._current)||[]}observerDom(){this._domObserver.observe(this)}removeTabAndPanel(t){this._current===t&&this.setActiveTab("",!0,!1);for(let o of this._tabs)if(o.getAttribute("tab")===t){if(o.hasAttribute("tab-uri")){let n=o.getAttribute("tab-uri");this._knownUri.has(n)&&this._knownUri.delete(n)}o.parentElement?.removeChild(o),this._tabs.splice(this._tabs.indexOf(o),1)}if(this._panels.has(t)){let o=this._panels.get(t);o instanceof HTMLElement?o.remove():o instanceof Array&&o.forEach(n=>{n instanceof HTMLElement&&n.remove()}),this._panels.delete(t)}}render(){let t=this.hasSlotController.test("actions"),o=this.caption&&this.caption.length>0,n=this.description&&this.description.length>0,a=o||t||n;if(this._split>0){let s=this.storeKey;s&&(s+="-split");let l="secondary";return this.querySelectorAll('[slot="right"]').length>0&&(l="primary"),u`
1340
+ </zn-button>`}};Ne.styles=A(ov),c([p()],Ne.prototype,"icon",2),c([p()],Ne.prototype,"method",2),c([p({attribute:"context-uri",reflect:!0})],Ne.prototype,"contextUri",2),c([p({reflect:!0})],Ne.prototype,"count",2),c([p({reflect:!0})],Ne.prototype,"color",2),c([p({type:Boolean})],Ne.prototype,"prefetch",2),c([p()],Ne.prototype,"basis",2),c([p({attribute:"max-height"})],Ne.prototype,"maxHeight",2),c([p({reflect:!0,type:Boolean})],Ne.prototype,"open",2),c([p({attribute:"master-id",reflect:!0})],Ne.prototype,"masterId",2),c([p({attribute:"fetch-style",type:String,reflect:!0})],Ne.prototype,"fetchStyle",2),c([p({attribute:"no-prefetch",type:Boolean,reflect:!0})],Ne.prototype,"noPrefetch",2);var Hh=Ne;Ne.define("zn-expanding-action");var nv=T`@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}:host *,:host *::before,:host *::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;height:100%}`;var Ho=class extends S{constructor(){super(...arguments);this.selected=!1}render(){return u`<slot></slot>`}};Ho.styles=A(nv),c([p()],Ho.prototype,"caption",2),c([p({type:Number})],Ho.prototype,"priority",2),c([p()],Ho.prototype,"uri",2),c([p({type:Boolean,reflect:!0})],Ho.prototype,"selected",2);var Fh=Ho;Ho.define("zn-tab");var iv=T`@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}:host *,:host *::before,:host *::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)}: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-input-height-x-small:24px;--zn-input-height-small:30px;--zn-input-height-medium:36px;--zn-input-height-large:40px;--zn-input-background-color:var(--zn-color-neutral-50);--zn-input-background-color-hover:var(--zn-color-neutral-100);--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-600);--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}[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-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}[t=aura],.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-border-color:218,212,246;--zn-input-focus-ring-color:hsl(255 82% 68%/40%)}: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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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}@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)}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))}.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}}: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}[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-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,[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)}[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}[t=light] .zn-primary,.theme-light .zn-primary{color:rgb(var(--zn-color-primary))}[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}[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}[t=aura],.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:blur(2px)}[t=aura] .zn-primary,.theme-aura .zn-primary{color:rgb(var(--zn-color-primary))}: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)}[t=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 !important}.zn-bt{border-top-style:solid;border-top-width:1px !important}.zn-bb{border-bottom-style:solid;border-bottom-width:1px !important}.zn-bl{border-left-style:solid;border-left-width:1px !important}.zn-br{border-right-style:solid;border-right-width:1px !important}.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-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(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 !important;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-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(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-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(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)}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);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}}: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:contents}#mid,#content{flex:1;display:flex;flex-direction:column;overflow:hidden}.tabs{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100%;min-height:100%;max-height:100%;width:100%}h1,h2{padding:0;margin:0}#mid{container-type:inline-size;flex-direction:row}#content{flex:1;max-height:100%;min-height:15px;padding:var(--zn-base-gap,0)}#content ::-webkit-scrollbar{width:5px;height:5px}#content{}#content ::-webkit-scrollbar-track{background:transparent}#content{}#content ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}#content{}#content ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}#content{display:flex;align-items:normal;overflow:auto}#content>::slotted(div),#content>div{max-height:100%}:host([no-scroll]) #content{overflow:hidden}:host([no-scroll]) #content>div{max-height:100%}:host([no-scroll]) #content>::slotted(div){max-height:100%}:host([flush]) #content{padding:0}:host([flush-x]) #content{padding-left:0;padding-right:0}#content.contents-slot slot{display:contents}#content ::slotted([selected]),#content>[selected]{flex-grow:1}#content ::slotted(:not([selected])),#content>:not([selected]):not(slot){display:none !important}:host #header~slot[name=top]::slotted(zn-navbar){padding-top:0}:host #header:not(:empty){display:flex;align-items:center;padding:var(--zn-spacing-medium);gap:var(--zn-spacing-medium)}:host #header:not(:empty) #actions ::slotted(*:not(.zn-tb-active)){display:none}:host #header:not(:empty) #actions{display:flex;overflow:visible}:host #header:not(:empty) h1,:host #header:not(:empty) h2{flex-grow:1}:host h2{font-weight:var(--zn-font-weight-bold);flex-grow:1;font-size:var(--zn-font-size-medium);color:rgba(var(--zn-text-panel-title),100%);padding:0;margin:0}::slotted(div[ref-tab]:not(.zn-tb-active)){display:none}`;var Lt=class extends S{constructor(){super();this.defaultUri="";this._current="";this._splitMin=60;this.primaryCaption="Navigation";this.secondaryCaption="Content";this.noPrefetch=!1;this.noCache=!1;this.storeTtl=0;this.padded=!1;this.fetchStyle="";this.fullWidth=!1;this.paddedRight=!1;this.preload=!0;this._activeClicks=0;this._activeTab=null;this._tabs=[];this._actions=[];this._knownUri=new Map;this.hasSlotController=new Q(this,"[default]","bottom","right","left","top","actions");this._domObserver=new Ht(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(o=>{o.type==="childList"&&(o.addedNodes.length>0&&this._registerTabs(),o.removedNodes.length>0&&o.removedNodes.forEach(n=>{let a=n instanceof HTMLElement?n.id:"";a&&this.removeTabAndPanel(a)}))})}});this._monitorObserver=new Ht(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(o=>{o.type==="childList"&&o.addedNodes.forEach(n=>{if(n instanceof HTMLElement&&n.id===this.monitor){this.reRegisterTabs();let a=this._store.get(this.storeKey);a!==null&&(this._prepareTab(a),this.setActiveTab(a,!1,!1))}})})}});this.reRegisterTabs=()=>{this._registerTabs()};this._registerTabs=()=>{It("[tab]",this,"zn-tabs").forEach(t=>{this._addTab(t)}),It("[tab-uri]",this,"zn-tabs").forEach(t=>{t.getAttribute("tab-uri")===""&&(t.setAttribute("tab",""),t.removeAttribute("tab-uri")),this._addTab(t)}),It("[ref-tab-uri]",this,"zn-tabs").forEach(t=>{t.hasAttribute("ref-tab")||(t.setAttribute("ref-tab",this._uriToId(t.getAttribute("ref-tab-uri"))),t.removeAttribute("ref-tab-uri"),this._actions.push(t))})};this._panels=new Map}async connectedCallback(){super.connectedCallback(),this.masterId||(this.masterId=this.storeKey||Math.floor(Math.random()*1e6).toString()),this.preload=!this.noPrefetch&&!this.noCache,await this.updateComplete,this._panel=this.shadowRoot?.querySelector("#content"),this.observerDom(),this._registerTabs(),this.storeKey&&this.storeTtl===0&&(this.storeTtl=300);let t=this.defaultUri?this._uriToId(this.defaultUri):"";this._store=new sr(this.localStorage?window.localStorage:window.sessionStorage,"zntab:",this.storeTtl),Array.from(this.children).forEach(o=>{o.slot===""&&this._panels.set(o.getAttribute("id")||t,[o])}),this.observerDom(),this.monitorDom()}monitorDom(){this.monitor&&this._monitorObserver.observe(this)}_addPanel(t){this._panels.has(t.getAttribute("id"))||this._panels.set(t.getAttribute("id"),[t])}_addTab(t){this._tabs.includes(t)||(this._tabs.push(t),this.preload&&t.addEventListener("mouseover",this.fetchUriTab.bind(this,t)),t.addEventListener("click",this._handleClick.bind(this)))}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>{this._registerTabs();let o=this._store.get(this.storeKey);if(o!==null){this._prepareTab(o),this.setActiveTab(o,!1,!1);return}let n=this._current||"";if(!this._panels.has(n)&&this._tabs.length>0&&this._tabs[0].getAttribute("tab-uri")){this.clickTab(this._tabs[0],!1);return}this.setActiveTab(n,!1,!1)},10),this.addEventListener("zn-menu-select",()=>{setTimeout(this.reRegisterTabs,200)},{passive:!0})}switchTab(t){let o=this._panels.size;if(o<2)return;let a=Array.from(this._panels.keys()).indexOf(this._current)+t;a<0?a=o-1:a>=o&&(a=0);let s=Array.from(this._panels.keys())[a];this.setActiveTab(s,!0,!1)}nextTab(){this.switchTab(1)}previousTab(){this.switchTab(-1)}_prepareTab(t){for(let o of this._tabs)if(o.getAttribute("tab")===t)return;for(let o of It("[tab-uri]",this,"")){let n=o.getAttribute("tab-uri"),a=this._uriToId(n);a===t&&this._createUriPanel(o,n,a)}}_uriToId(t){return"tab-"+Kc(t).substr(0,8)+"-"+this.masterId}_createUriPanel(t,o,n){if(t.hasAttribute("tab")||(t.setAttribute("tab",n),this._setTabEleActive(t,this._current===n)),this._knownUri.has(o)||this._knownUri.set(o,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):t.hasAttribute("data-fetch-style")&&a.setAttribute("data-fetch-style",t.getAttribute("data-fetch-style")??""),a.setAttribute("data-self-uri",o),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}_handleClick(t){let o=t.relatedTarget??t.target;o&&("startViewTransition"in document?document.startViewTransition(()=>this.clickTab(o,t.altKey)):this.clickTab(o,t.altKey))}fetchUriTab(t){if(!t.hasAttribute("tab")&&t.hasAttribute("tab-uri")){let o=t.getAttribute("tab-uri")??"";this._createUriPanel(t,o,this._uriToId(o)),t.setAttribute("tab-id",this._uriToId(o))}}clickTab(t,o){let n=t.getAttribute("tab-uri"),a=!!n&&this._panels.has(this._uriToId(n));if(this.fetchUriTab(t),t.hasAttribute("tab")){let s=o||this.noCache&&a;setTimeout(()=>{this.setActiveTab(t.getAttribute("tab")||"",!0,s,this.getRefTab(t))},10)}}getRefTab(t){let o=t;for(;o;){if(o===this)return null;if(o.hasAttribute("ref-tab"))return o.getAttribute("ref-tab");o=o?.parentElement||o?.getRootNode()?.host}return null}setActiveTab(t,o,n,a=null){let s=!1;this._tabs.forEach(l=>{l.hasAttribute("tab-uri")&&this._knownUri.has(l.getAttribute("tab-uri"))&&l.setAttribute("tab",this._knownUri.get(l.getAttribute("tab-uri")));let d=t===l.getAttribute("tab");!d&&a&&!this.getRefTab(l)&&(d=a===l.getAttribute("tab")),s=s||d,this._setTabEleActive(l,d)}),!s&&this._tabs.length>0&&this._setTabEleActive(this._tabs[0],!0),this._actions.forEach(l=>this._setTabEleActive(l,l.getAttribute("ref-tab")===(a||t))),this.selectTab(t,n),o&&this._store!==null&&this._store.set(this.storeKey,t)}_setTabEleActive(t,o){o&&(this._activeTab=t),t.classList.toggle("zn-tb-active",o),t.classList.toggle("active",o)}selectTab(t,o){if(t&&!this._panels.has(t))return!1;this._current===t?(this._activeClicks++,this._activeClicks>2&&(o=!0,this._activeClicks=0)):this._activeClicks=0;let a=!0;return this._panels.forEach((l,d)=>{let h=d===t;l.forEach(m=>{if(h&&m.parentNode!==this&&(a=!1),m.toggleAttribute("selected",h),h&&o){let f="",b="";this._activeTab&&this._activeTab.hasAttribute("tab-uri")&&(f=this._activeTab.getAttribute("tab-uri"),b=this._activeTab.getAttribute("gaid")),document.dispatchEvent(new CustomEvent("zn-refresh-element",{detail:{element:m,uri:f,gaid:b}}))}})}),this._panel&&this._panel.classList.toggle("contents-slot",!a),this._current=t,!0}getActiveTab(){return this._panels.get(this._current)||[]}observerDom(){this._domObserver.observe(this)}removeTabAndPanel(t){this._current===t&&this.setActiveTab("",!0,!1);for(let o of this._tabs)if(o.getAttribute("tab")===t){if(o.hasAttribute("tab-uri")){let n=o.getAttribute("tab-uri");this._knownUri.has(n)&&this._knownUri.delete(n)}o.parentElement?.removeChild(o),this._tabs.splice(this._tabs.indexOf(o),1)}if(this._panels.has(t)){let o=this._panels.get(t);o instanceof HTMLElement?o.remove():o instanceof Array&&o.forEach(n=>{n instanceof HTMLElement&&n.remove()}),this._panels.delete(t)}}render(){let t=this.hasSlotController.test("actions"),o=this.caption&&this.caption.length>0,n=this.description&&this.description.length>0,a=o||t||n;if(this._split>0){let s=this.storeKey;s&&(s+="-split");let l="secondary";return this.querySelectorAll('[slot="right"]').length>0&&(l="primary"),u`
1341
1341
  <slot name="top"></slot>
1342
1342
  <div id="mid">
1343
1343
  <zn-split-pane
@@ -1650,7 +1650,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
1650
1650
  <slot name="help-text">${this.helpText}</slot>
1651
1651
  </div>
1652
1652
  </div>
1653
- `}};Z.styles=A(pv),Z.dependencies={"zn-icon":ct,"zn-opt-group":Vh,"zn-option":wr,"zn-popup":Zs,"zn-tag":el},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([H()],Z.prototype,"hasFocus",2),c([H()],Z.prototype,"displayLabel",2),c([H()],Z.prototype,"currentOption",2),c([H()],Z.prototype,"selectedOptions",2),c([H()],Z.prototype,"valueHasChanged",2),c([H()],Z.prototype,"inputPrefix",2),c([H()],Z.prototype,"_searchDisplayValue",2),c([H()],Z.prototype,"_noResultsVisible",2),c([H()],Z.prototype,"_addOptionActive",2),c([H()],Z.prototype,"_fetchedOptions",2),c([H()],Z.prototype,"_fetchLoading",2),c([H()],Z.prototype,"_fetchError",2),c([H()],Z.prototype,"_searchLoading",2),c([H()],Z.prototype,"_totalResultCount",2),c([p()],Z.prototype,"name",2),c([p({type:Boolean,attribute:"non-removable"})],Z.prototype,"nonRemovable",2),c([H()],Z.prototype,"value",1),c([p({attribute:"value",converter:{fromAttribute:t=>{if(!t||Array.isArray(t))return t;if(t.trimStart().startsWith("["))try{let o=JSON.parse(t);if(Array.isArray(o))return o}catch{}return t.includes(" ")?t.split(" "):t},toAttribute:t=>Array.isArray(t)&&t.some(o=>o.includes(" "))?JSON.stringify(t):Array.isArray(t)?t.join(" "):t}})],Z.prototype,"defaultValue",2),c([p({reflect:!0})],Z.prototype,"size",2),c([p()],Z.prototype,"placeholder",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"multiple",2),c([p({attribute:"max-options",type:Number})],Z.prototype,"maxOptions",2),c([p({attribute:"max-options-visible",type:Number})],Z.prototype,"maxOptionsVisible",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),c([p({type:Boolean})],Z.prototype,"clearable",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"open",2),c([p({type:Boolean})],Z.prototype,"hoist",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"pill",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"search",2),c([p({type:Boolean,reflect:!0,attribute:"free-text"})],Z.prototype,"freeText",2),c([p()],Z.prototype,"label",2),c([p({attribute:"label-tooltip"})],Z.prototype,"labelTooltip",2),c([p({attribute:"context-note"})],Z.prototype,"contextNote",2),c([p({reflect:!0})],Z.prototype,"placement",2),c([p({attribute:"help-text"})],Z.prototype,"helpText",2),c([p({reflect:!0})],Z.prototype,"form",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"required",2),c([p({attribute:"cache-key"})],Z.prototype,"cacheKey",2),c([p({type:Boolean,attribute:"trigger-submit"})],Z.prototype,"triggerSubmit",2),c([p()],Z.prototype,"getTag",2),c([p({attribute:"select-first",type:Boolean})],Z.prototype,"selectFirst",2),c([p()],Z.prototype,"distinct",2),c([p()],Z.prototype,"conditional",2),c([p({attribute:"data-uri"})],Z.prototype,"dataUri",2),c([p({attribute:"context-data"})],Z.prototype,"contextData",2),c([p({attribute:"max-results",type:Number})],Z.prototype,"maxResults",2),c([p({attribute:"search-debounce",type:Number})],Z.prototype,"searchDebounce",2),c([p({attribute:"search-param"})],Z.prototype,"searchParam",2),c([p({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);ln("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});ln("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var De=Z;Z.define("zn-select");var hv=T`@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}:host *,:host *::before,:host *::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)}.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{height:100%}:host{display:block}.form-control-input{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}zn-dialog{--width:min(80vw,900px);--icon-color:rgb(var(--zn-text))}.icon-picker__dialog-layout{display:flex;gap:var(--zn-spacing-large);height:40vh}.icon-picker__dialog-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.icon-picker__dialog-sidebar{width:180px;flex-shrink:0}@media (max-width:640px){zn-dialog{--width:100vw}zn-dialog::part(base){max-width:100%;max-height:100%;margin:0;border-radius:0;height:100dvh;width:100vw}.icon-picker__dialog-layout{height:calc(100dvh - 8rem);flex-direction:column}.icon-picker__dialog-sidebar{width:100%;flex-shrink:0}}.icon-picker__dialog-controls{display:flex;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-small)}.icon-picker__library-select{flex:1;min-width:0}.icon-picker__color-input{width:140px;flex-shrink:0}.icon-picker__icon-input{margin-bottom:var(--zn-spacing-small)}.icon-picker__search{margin-bottom:var(--zn-spacing-small)}.icon-picker__free-input{margin-bottom:var(--zn-spacing-small)}.icon-picker__grid{display:flex;flex-wrap:wrap;gap:var(--zn-spacing-x-small);flex:1;overflow-y:auto;align-content:flex-start;border:solid 1px rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);padding:var(--zn-spacing-x-small)}.icon-picker__grid-item{display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:2px solid transparent;border-radius:var(--zn-border-radius);background:transparent;color:var(--zn-text-color);cursor:pointer;transition:var(--zn-transition-fast) background-color,var(--zn-transition-fast) border-color}.icon-picker__grid-item:hover{background-color:rgba(var(--zn-color-primary),0.1)}.icon-picker__grid-item--selected{border-color:rgb(var(--zn-color-primary));background-color:rgba(var(--zn-color-primary),0.1)}.icon-picker__no-results{width:100%;text-align:center;padding:var(--zn-spacing-large);color:rgb(var(--zn-text-muted))}.icon-picker__preview{display:flex;flex-direction:column;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-medium);background-color:rgba(var(--zn-panel-secondary),0.5);border-radius:var(--zn-border-radius);text-align:center}.icon-picker__preview--empty{color:rgb(var(--zn-text-muted))}.icon-picker__preview-name{font-size:var(--zn-font-size-medium);font-family:var(--zn-font-mono);word-break:break-all}.icon-picker__preview-library{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted))}.icon-picker__preview-hint{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted))}`;var Ft=class Ft extends S{constructor(){super(...arguments);this.formControlController=new ot(this,{assumeInteractionOn:["zn-change"]});this.name="";this.icon="";this.label="";this.library="material";this.color="";this.noColor=!1;this.noLibrary=!1;this.helpText="";this.disabled=!1;this.required=!1;this.defaultValue="";this._dialogOpen=!1;this._searchQuery="";this._iconList=[];this._filteredIcons=[];this._pendingIcon="";this._pendingLibrary="";this._pendingColor=""}get value(){return this.icon}set value(t){this.icon=t}get validity(){return this.required&&!this.icon?{valid:!1,valueMissing:!0,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1}:{valid:!0,valueMissing:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1}}get validationMessage(){return this.required&&!this.icon?"Please select an icon.":""}checkValidity(){return this.validity.valid}getForm(){return this.formControlController.getForm()}reportValidity(){return this.checkValidity()}setCustomValidity(t){this.formControlController.updateValidity()}isFreeInputLibrary(t){return Ft.freeInputLibraries.has(t)}async getIconsForLibrary(t){try{switch(t){case"brands":return(await import("./chunks/zn.CU5HCKLN.js")).brandIcons;case"line":return(await import("./chunks/zn.7VCR5ZZL.js")).lineIcons;default:{let o=await import("./chunks/zn.NKUIXDNI.js");switch(t){case"material-outlined":return o.material_outlinedIcons;case"material-round":return o.material_roundIcons;case"material-sharp":return o.material_sharpIcons;case"material-two-tone":return o.material_two_toneIcons;case"material-symbols-outlined":return o.material_symbols_outlinedIcons;default:return o.materialIcons}}}}catch{return[]}}async openDialog(){this._pendingIcon=this.icon,this._pendingLibrary=this.library,this._pendingColor=this.color,this._searchQuery="",this._iconList=await this.getIconsForLibrary(this.library),this._filteredIcons=this._iconList.slice(0,200),this._dialogOpen=!0,await this.updateComplete,this._dialog.show()}closeDialog(){this._dialog.hide(),this._dialogOpen=!1}handleConfirm(){this.icon=this._pendingIcon,this.library=this._pendingLibrary,this.color=this._pendingColor,this.closeDialog(),this.emit("zn-change")}handleCancel(){this.closeDialog()}handleSearchInput(t){let o=t.target;this._searchQuery=o.value.toLowerCase(),this.filterIcons()}filterIcons(){this._searchQuery?this._filteredIcons=this._iconList.filter(t=>t.includes(this._searchQuery)).slice(0,200):this._filteredIcons=this._iconList.slice(0,200)}handleIconSelect(t){this._pendingIcon=t}async handleLibraryChange(t){let o=t.target,n=this.isFreeInputLibrary(this._pendingLibrary);this._pendingLibrary=o.value;let a=this.isFreeInputLibrary(this._pendingLibrary);n!==a&&(this._pendingIcon=""),a||(this._iconList=await this.getIconsForLibrary(this._pendingLibrary),this.filterIcons())}handleColorInput(t){let o=t.target;this._pendingColor=o.value}handleFreeInput(t){let o=t.target;this._pendingIcon=o.value}handleClear(t){t.stopPropagation(),this.icon="",this.color="",this.emit("zn-change")}_handleTriggerClick(){this.disabled||this.openDialog()}render(){let t=!!this.label,o=!!this.helpText,n=!!this.icon;return u`
1653
+ `}};Z.styles=A(pv),Z.dependencies={"zn-icon":ct,"zn-opt-group":Vh,"zn-option":wr,"zn-popup":Zs,"zn-tag":el},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([H()],Z.prototype,"hasFocus",2),c([H()],Z.prototype,"displayLabel",2),c([H()],Z.prototype,"currentOption",2),c([H()],Z.prototype,"selectedOptions",2),c([H()],Z.prototype,"valueHasChanged",2),c([H()],Z.prototype,"inputPrefix",2),c([H()],Z.prototype,"_searchDisplayValue",2),c([H()],Z.prototype,"_noResultsVisible",2),c([H()],Z.prototype,"_addOptionActive",2),c([H()],Z.prototype,"_fetchedOptions",2),c([H()],Z.prototype,"_fetchLoading",2),c([H()],Z.prototype,"_fetchError",2),c([H()],Z.prototype,"_searchLoading",2),c([H()],Z.prototype,"_totalResultCount",2),c([p()],Z.prototype,"name",2),c([p({type:Boolean,attribute:"non-removable"})],Z.prototype,"nonRemovable",2),c([H()],Z.prototype,"value",1),c([p({attribute:"value",converter:{fromAttribute:t=>{if(!t||Array.isArray(t))return t;if(t.trimStart().startsWith("["))try{let o=JSON.parse(t);if(Array.isArray(o))return o}catch{}return t.includes(" ")?t.split(" "):t},toAttribute:t=>Array.isArray(t)&&t.some(o=>o.includes(" "))?JSON.stringify(t):Array.isArray(t)?t.join(" "):t}})],Z.prototype,"defaultValue",2),c([p({reflect:!0})],Z.prototype,"size",2),c([p()],Z.prototype,"placeholder",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"multiple",2),c([p({attribute:"max-options",type:Number})],Z.prototype,"maxOptions",2),c([p({attribute:"max-options-visible",type:Number})],Z.prototype,"maxOptionsVisible",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),c([p({type:Boolean})],Z.prototype,"clearable",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"open",2),c([p({type:Boolean})],Z.prototype,"hoist",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"pill",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"search",2),c([p({type:Boolean,reflect:!0,attribute:"free-text"})],Z.prototype,"freeText",2),c([p()],Z.prototype,"label",2),c([p({attribute:"label-tooltip"})],Z.prototype,"labelTooltip",2),c([p({attribute:"context-note"})],Z.prototype,"contextNote",2),c([p({reflect:!0})],Z.prototype,"placement",2),c([p({attribute:"help-text"})],Z.prototype,"helpText",2),c([p({reflect:!0})],Z.prototype,"form",2),c([p({type:Boolean,reflect:!0})],Z.prototype,"required",2),c([p({attribute:"cache-key"})],Z.prototype,"cacheKey",2),c([p({type:Boolean,attribute:"trigger-submit"})],Z.prototype,"triggerSubmit",2),c([p()],Z.prototype,"getTag",2),c([p({attribute:"select-first",type:Boolean})],Z.prototype,"selectFirst",2),c([p()],Z.prototype,"distinct",2),c([p()],Z.prototype,"conditional",2),c([p({attribute:"data-uri"})],Z.prototype,"dataUri",2),c([p({attribute:"context-data"})],Z.prototype,"contextData",2),c([p({attribute:"max-results",type:Number})],Z.prototype,"maxResults",2),c([p({attribute:"search-debounce",type:Number})],Z.prototype,"searchDebounce",2),c([p({attribute:"search-param"})],Z.prototype,"searchParam",2),c([p({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);ln("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});ln("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var De=Z;Z.define("zn-select");var hv=T`@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}:host *,:host *::before,:host *::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)}.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{height:100%}:host{display:block}.form-control-input{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}zn-dialog{--width:min(80vw,900px);--icon-color:rgb(var(--zn-text))}.icon-picker__dialog-layout{display:flex;gap:var(--zn-spacing-large);height:40vh}.icon-picker__dialog-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.icon-picker__dialog-sidebar{width:180px;flex-shrink:0}@media (max-width:640px){zn-dialog{--width:100vw}zn-dialog::part(base){max-width:100%;max-height:100%;margin:0;border-radius:0;height:100dvh;width:100vw}.icon-picker__dialog-layout{height:calc(100dvh - 8rem);flex-direction:column}.icon-picker__dialog-sidebar{width:100%;flex-shrink:0}}.icon-picker__dialog-controls{display:flex;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-small)}.icon-picker__library-select{flex:1;min-width:0}.icon-picker__color-input{width:140px;flex-shrink:0}.icon-picker__icon-input{margin-bottom:var(--zn-spacing-small)}.icon-picker__search{margin-bottom:var(--zn-spacing-small)}.icon-picker__free-input{margin-bottom:var(--zn-spacing-small)}.icon-picker__grid{display:flex;flex-wrap:wrap;gap:var(--zn-spacing-x-small);flex:1;overflow-y:auto;align-content:flex-start;border:solid 1px rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);padding:var(--zn-spacing-x-small)}.icon-picker__grid-item{display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:2px solid transparent;border-radius:var(--zn-border-radius);background:transparent;color:var(--zn-text-color);cursor:pointer;transition:var(--zn-transition-fast) background-color,var(--zn-transition-fast) border-color}.icon-picker__grid-item:hover{background-color:rgba(var(--zn-color-primary),0.1)}.icon-picker__grid-item--selected{border-color:rgb(var(--zn-color-primary));background-color:rgba(var(--zn-color-primary),0.1)}.icon-picker__no-results{width:100%;text-align:center;padding:var(--zn-spacing-large);color:rgb(var(--zn-text-muted))}.icon-picker__preview{display:flex;flex-direction:column;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-medium);background-color:rgba(var(--zn-panel-secondary),0.5);border-radius:var(--zn-border-radius);text-align:center}.icon-picker__preview--empty{color:rgb(var(--zn-text-muted))}.icon-picker__preview-name{font-size:var(--zn-font-size-medium);font-family:var(--zn-font-mono);word-break:break-all}.icon-picker__preview-library{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted))}.icon-picker__preview-hint{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted))}`;var Bt=class Bt extends S{constructor(){super(...arguments);this.formControlController=new ot(this,{assumeInteractionOn:["zn-change"]});this.name="";this.icon="";this.label="";this.library="material";this.color="";this.noColor=!1;this.noLibrary=!1;this.helpText="";this.disabled=!1;this.required=!1;this.defaultValue="";this._dialogOpen=!1;this._searchQuery="";this._iconList=[];this._filteredIcons=[];this._pendingIcon="";this._pendingLibrary="";this._pendingColor=""}get value(){return this.icon}set value(t){this.icon=t}get validity(){return this.required&&!this.icon?{valid:!1,valueMissing:!0,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1}:{valid:!0,valueMissing:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1}}get validationMessage(){return this.required&&!this.icon?"Please select an icon.":""}checkValidity(){return this.validity.valid}getForm(){return this.formControlController.getForm()}reportValidity(){return this.checkValidity()}setCustomValidity(t){this.formControlController.updateValidity()}isFreeInputLibrary(t){return Bt.freeInputLibraries.has(t)}async getIconsForLibrary(t){try{switch(t){case"brands":return(await import("./chunks/zn.CU5HCKLN.js")).brandIcons;case"line":return(await import("./chunks/zn.7VCR5ZZL.js")).lineIcons;default:{let o=await import("./chunks/zn.NKUIXDNI.js");switch(t){case"material-outlined":return o.material_outlinedIcons;case"material-round":return o.material_roundIcons;case"material-sharp":return o.material_sharpIcons;case"material-two-tone":return o.material_two_toneIcons;case"material-symbols-outlined":return o.material_symbols_outlinedIcons;default:return o.materialIcons}}}}catch{return[]}}async openDialog(){this._pendingIcon=this.icon,this._pendingLibrary=this.library,this._pendingColor=this.color,this._searchQuery="",this._iconList=await this.getIconsForLibrary(this.library),this._filteredIcons=this._iconList.slice(0,200),this._dialogOpen=!0,await this.updateComplete,this._dialog.show()}closeDialog(){this._dialog.hide(),this._dialogOpen=!1}handleConfirm(){this.icon=this._pendingIcon,this.library=this._pendingLibrary,this.color=this._pendingColor,this.closeDialog(),this.emit("zn-change")}handleCancel(){this.closeDialog()}handleSearchInput(t){let o=t.target;this._searchQuery=o.value.toLowerCase(),this.filterIcons()}filterIcons(){this._searchQuery?this._filteredIcons=this._iconList.filter(t=>t.includes(this._searchQuery)).slice(0,200):this._filteredIcons=this._iconList.slice(0,200)}handleIconSelect(t){this._pendingIcon=t}async handleLibraryChange(t){let o=t.target,n=this.isFreeInputLibrary(this._pendingLibrary);this._pendingLibrary=o.value;let a=this.isFreeInputLibrary(this._pendingLibrary);n!==a&&(this._pendingIcon=""),a||(this._iconList=await this.getIconsForLibrary(this._pendingLibrary),this.filterIcons())}handleColorInput(t){let o=t.target;this._pendingColor=o.value}handleFreeInput(t){let o=t.target;this._pendingIcon=o.value}handleClear(t){t.stopPropagation(),this.icon="",this.color="",this.emit("zn-change")}_handleTriggerClick(){this.disabled||this.openDialog()}render(){let t=!!this.label,o=!!this.helpText,n=!!this.icon;return u`
1654
1654
  <div part="form-control"
1655
1655
  class="form-control ${t?"form-control--has-label":""} ${o?"form-control--has-help-text":""}">
1656
1656
 
@@ -1809,7 +1809,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
1809
1809
  </zn-dialog>
1810
1810
  `:G}
1811
1811
 
1812
- </div>`}};Ft.styles=A(hv),Ft.dependencies={"zn-icon":ct,"zn-button":Tt,"zn-dialog":ea,"zn-input":Le,"zn-select":De,"zn-option":wr},Ft.freeInputLibraries=new Set(["gravatar","libravatar","avatar"]),c([p()],Ft.prototype,"name",2),c([p()],Ft.prototype,"icon",2),c([p()],Ft.prototype,"label",2),c([p()],Ft.prototype,"library",2),c([p()],Ft.prototype,"color",2),c([p({type:Boolean,attribute:"no-color"})],Ft.prototype,"noColor",2),c([p({type:Boolean,attribute:"no-library"})],Ft.prototype,"noLibrary",2),c([p({attribute:"help-text"})],Ft.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],Ft.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],Ft.prototype,"required",2),c([p({reflect:!0})],Ft.prototype,"form",2),c([ue()],Ft.prototype,"defaultValue",2),c([H()],Ft.prototype,"_dialogOpen",2),c([H()],Ft.prototype,"_searchQuery",2),c([H()],Ft.prototype,"_iconList",2),c([H()],Ft.prototype,"_filteredIcons",2),c([H()],Ft.prototype,"_pendingIcon",2),c([H()],Ft.prototype,"_pendingLibrary",2),c([H()],Ft.prototype,"_pendingColor",2),c([F("zn-dialog")],Ft.prototype,"_dialog",2);var Fa=Ft;var ek=Fa;Fa.define("zn-icon-picker");var uv=T`@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}:host *,:host *::before,:host *::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)}button,.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(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 !important;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-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(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-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(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}: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 ht=class extends S{constructor(){super(...arguments);this.formControlController=new ot(this,{defaultValue:t=>t.defaultValue,value:t=>{if(t.multiple){let o=typeof t.value=="string"?t.value.split(" ").filter(n=>n!==""):t.value;return o.length>0?o:""}return t.value}});this.hasSlotController=new Q(this,"help-text","[default]");this.conditionalController=new Ha(this);this.value="";this.displayValue="";this.clearOnEdit=!1;this.conditional="";this.size="medium";this.inputType="text";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 De&&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(o=>o!==""):!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 De&&!this.isEditing&&await this.input.hide(),this.conditionalController.check()}moveSlottedOptionsToSelect(){if(!(this.input instanceof De))return;Array.from(this.querySelectorAll("zn-option")).forEach(o=>{this.input.appendChild(o)})}render(){let t=this.editText,o=this.hasSlotController.test("help-text"),n=this.helpText?!0:o;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`
1812
+ </div>`}};Bt.styles=A(hv),Bt.dependencies={"zn-icon":ct,"zn-button":Tt,"zn-dialog":ea,"zn-input":Le,"zn-select":De,"zn-option":wr},Bt.freeInputLibraries=new Set(["gravatar","libravatar","avatar"]),c([p()],Bt.prototype,"name",2),c([p()],Bt.prototype,"icon",2),c([p()],Bt.prototype,"label",2),c([p()],Bt.prototype,"library",2),c([p()],Bt.prototype,"color",2),c([p({type:Boolean,attribute:"no-color"})],Bt.prototype,"noColor",2),c([p({type:Boolean,attribute:"no-library"})],Bt.prototype,"noLibrary",2),c([p({attribute:"help-text"})],Bt.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],Bt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],Bt.prototype,"required",2),c([p({reflect:!0})],Bt.prototype,"form",2),c([ue()],Bt.prototype,"defaultValue",2),c([H()],Bt.prototype,"_dialogOpen",2),c([H()],Bt.prototype,"_searchQuery",2),c([H()],Bt.prototype,"_iconList",2),c([H()],Bt.prototype,"_filteredIcons",2),c([H()],Bt.prototype,"_pendingIcon",2),c([H()],Bt.prototype,"_pendingLibrary",2),c([H()],Bt.prototype,"_pendingColor",2),c([F("zn-dialog")],Bt.prototype,"_dialog",2);var Fa=Bt;var ek=Fa;Fa.define("zn-icon-picker");var uv=T`@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}:host *,:host *::before,:host *::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)}button,.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(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 !important;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-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(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-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(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}: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 ht=class extends S{constructor(){super(...arguments);this.formControlController=new ot(this,{defaultValue:t=>t.defaultValue,value:t=>{if(t.multiple){let o=typeof t.value=="string"?t.value.split(" ").filter(n=>n!==""):t.value;return o.length>0?o:""}return t.value}});this.hasSlotController=new Q(this,"help-text","[default]");this.conditionalController=new Ha(this);this.value="";this.displayValue="";this.clearOnEdit=!1;this.conditional="";this.size="medium";this.inputType="text";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 De&&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(o=>o!==""):!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 De&&!this.isEditing&&await this.input.hide(),this.conditionalController.check()}moveSlottedOptionsToSelect(){if(!(this.input instanceof De))return;Array.from(this.querySelectorAll("zn-option")).forEach(o=>{this.input.appendChild(o)})}render(){let t=this.editText,o=this.hasSlotController.test("help-text"),n=this.helpText?!0:o;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`
1813
1813
  <div class="${N({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">
1814
1814
 
1815
1815
  <div class="ai__left" @click="${this.disabled?void 0:this.handleEditClick}">
@@ -2074,7 +2074,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
2074
2074
  <div id="secondary-pane">
2075
2075
  <slot name="secondary" @slotchange="${()=>this.requestUpdate()}"></slot>
2076
2076
  </div>
2077
- `}};Dt.styles=A(yv),c([p({attribute:"pixels",type:Boolean,reflect:!0})],Dt.prototype,"calculatePixels",2),c([p({attribute:"secondary",type:Boolean,reflect:!0})],Dt.prototype,"preferSecondarySize",2),c([p({attribute:"min-size",type:Number,reflect:!0})],Dt.prototype,"minimumPaneSize",2),c([p({attribute:"min-secondary-size",type:Number,reflect:!0})],Dt.prototype,"minimumSecondaryPaneSize",2),c([p({attribute:"max-size",type:Number,reflect:!0})],Dt.prototype,"maximumPaneSize",2),c([p({attribute:"initial-size",type:Number,reflect:!0})],Dt.prototype,"initialSize",2),c([p({attribute:"store-key",reflect:!0})],Dt.prototype,"storeKey",2),c([p({attribute:"bordered",type:Boolean,reflect:!0})],Dt.prototype,"border",2),c([p({attribute:"vertical",type:Boolean,reflect:!0})],Dt.prototype,"vertical",2),c([p({attribute:"primary-caption",reflect:!0})],Dt.prototype,"primaryCaption",2),c([p({attribute:"secondary-caption",reflect:!0})],Dt.prototype,"secondaryCaption",2),c([p({attribute:"focus-pane",type:Number,reflect:!0})],Dt.prototype,"_focusPane",2),c([p({attribute:"padded",type:Boolean,reflect:!0})],Dt.prototype,"padded",2),c([p({attribute:"padded-right",type:Boolean,reflect:!0})],Dt.prototype,"paddedRight",2),c([p({type:Boolean,reflect:!0})],Dt.prototype,"gap",2),c([p({reflect:!0})],Dt.prototype,"hide",2),c([p({attribute:"merged-navigation",type:Boolean,reflect:!0})],Dt.prototype,"mergedNavigation",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],Dt.prototype,"localStorage",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],Dt.prototype,"storeTtl",2),c([og({passive:!0})],Dt.prototype,"resize",1);var ck=Dt;Dt.define("zn-split-pane");var zv=T`@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}:host *,:host *::before,:host *::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:flex;flex-grow:1;max-height:100%;height:100%;overflow:hidden !important;container-type:inline-size}:host .relative{position:relative;flex-grow:1;max-height:100%}@container (min-width:600px){:host .relative{max-width:calc(100% - var(--zn-spacing-narrow-bar))}}@container (min-width:1100px){:host .relative{max-width:calc(100% - var(--zn-spacing-panel))}}@container (min-width:0px) and (max-width:599px){:host .relative{min-height:0}}:host .container{position:relative;display:flex;flex-direction:column-reverse;align-items:stretch;max-height:100%;max-width:100%;min-height:0;flex:1}@container (min-width:600px){:host .container{flex-direction:row}}:host #primary-content,:host .sidebar{max-height:100%;max-width:100%}:host #primary-content{flex-grow:1;min-height:100px;max-height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:var(--zn-gap,0);padding:var(--zn-base-gap,0)}:host .sidebar{width:100%;display:flex;flex-shrink:0;flex-direction:column;align-items:stretch;overflow-y:auto;overflow-x:hidden}@container (min-width:600px){:host .sidebar{min-width:var(--zn-spacing-narrow-bar);max-width:var(--zn-spacing-narrow-bar)}}@container (min-width:600px){:host .sidebar{flex-direction:row}}:host .sidebar #content{padding:var(--zn-base-gap,0);background:rgb(var(--zn-body));display:none;z-index:5;overflow-y:auto;overflow-x:hidden;position:absolute;right:0;left:0;top:var(--zn-spacing-narrow-bar);bottom:0;flex-grow:1}@container (min-width:600px){:host .sidebar #content{position:relative;inset:0}}@container (min-width:1100px){:host .sidebar #content{padding-left:var(--zn-spacing-medium,0)}}:host .sidebar #expander{cursor:pointer;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;overflow:hidden;border-bottom-width:1px;height:var(--zn-spacing-narrow-bar);width:100%;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));z-index:20;top:0;left:0;right:0;bottom:0}@container (min-width:600px){:host .sidebar #expander{height:unset;flex-direction:column;justify-content:start;min-width:var(--zn-spacing-narrow-bar);max-width:var(--zn-spacing-narrow-bar);width:var(--zn-spacing-narrow-bar);border-bottom-width:0;border-left-width:1px;padding-bottom:var(--zn-spacing-narrow-bar)}}@container (min-width:1100px){:host .sidebar #expander{display:none}}:host .sidebar #expander span{writing-mode:horizontal-tb;flex-grow:1;padding-left:var(--zn-spacing-medium);display:none}@container (min-width:600px){:host .sidebar #expander span{writing-mode:vertical-rl}}@container (min-width:600px){:host .sidebar #expander span{padding-left:0}}:host .sidebar #expander span.open{display:block}:host .sidebar #expander zn-icon{color:rgb(var(--zn-text));margin-left:var(--zn-spacing-medium);margin-right:var(--zn-spacing-medium);transition:all 500ms ease-in-out;rotate:0}@container (min-width:600px){:host .sidebar #expander zn-icon{margin-top:var(--zn-spacing-medium);margin-bottom:var(--zn-spacing-medium);rotate:90deg}}:host([flush]) #primary-content{padding:0}@container (min-width:600px){:host([open]) .relative{max-width:calc(100% - var(--zn-spacing-panel))}}@container (min-width:600px){:host([open]) .sidebar{min-width:var(--zn-spacing-panel);max-width:var(--zn-spacing-panel);width:var(--zn-spacing-panel)}}@container (min-width:600px){:host([open]) .sidebar--wide{min-width:var(--zn-spacing-lside);max-width:var(--zn-spacing-lside);width:var(--zn-spacing-lside)}}:host([open]) .sidebar #expander zn-icon{rotate:-180deg}@container (min-width:600px){:host([open]) .sidebar #expander zn-icon{rotate:-90deg}}:host([open]) .sidebar #expander.open{display:none}:host([open]) .sidebar #expander.close{display:none}@container (min-width:600px){:host([open]) .sidebar #expander.close{display:block}}:host([open]) .sidebar #expander.close-sm{display:block;font-weight:500}@container (min-width:600px){:host([open]) .sidebar #expander.close-sm{display:none}}:host([open]) .sidebar #content{display:block}@container (min-width:1100px){:host .sidebar{min-width:var(--zn-spacing-panel);max-width:var(--zn-spacing-panel);width:var(--zn-spacing-panel)}:host .sidebar--wide{min-width:var(--zn-spacing-lside);max-width:var(--zn-spacing-lside);width:var(--zn-spacing-lside)}:host .sidebar #content{display:block}:host(:not([distinct])) .sidebar{background:transparent}:host(:not([distinct])) .sidebar #content{background:transparent;padding-left:0}}:host([distinct]) .sidebar #content{background:rgba(var(--zn-panel),var(--zn-panel-opacity))}@container (min-width:600px){:host([distinct]) .sidebar{border-left-width:1px}}@container (min-width:600px) and (max-width:1099px){:host([distinct]) .sidebar #content{padding-left:0}}:host([distinct]) .sidebar #expander{border-left-width:0}:host #sidebar #content slot{display:flex;flex-direction:column;align-items:normal;gap:var(--zn-gap,0)}`;var Vo=class extends S{constructor(){super();this.open=!1;this.startScrolled=!1;this.wide=!1;this.domObserver=new Pt(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>{setTimeout(()=>this.scrollBottom(),10)}});this.addEventListener("scroll-to-bottom",()=>{setTimeout(()=>this.scrollBottom(),200)})}connectedCallback(){super.connectedCallback(),this.startScrolled&&(this.domObserver.observe(this),this.scrollBottom())}scrollBottom(){let t=this.shadowRoot?.getElementById("primary-content");t?t.scrollTop=t.scrollHeight:setTimeout(this.scrollBottom.bind(this),10)}render(){return u`
2077
+ `}};Dt.styles=A(yv),c([p({attribute:"pixels",type:Boolean,reflect:!0})],Dt.prototype,"calculatePixels",2),c([p({attribute:"secondary",type:Boolean,reflect:!0})],Dt.prototype,"preferSecondarySize",2),c([p({attribute:"min-size",type:Number,reflect:!0})],Dt.prototype,"minimumPaneSize",2),c([p({attribute:"min-secondary-size",type:Number,reflect:!0})],Dt.prototype,"minimumSecondaryPaneSize",2),c([p({attribute:"max-size",type:Number,reflect:!0})],Dt.prototype,"maximumPaneSize",2),c([p({attribute:"initial-size",type:Number,reflect:!0})],Dt.prototype,"initialSize",2),c([p({attribute:"store-key",reflect:!0})],Dt.prototype,"storeKey",2),c([p({attribute:"bordered",type:Boolean,reflect:!0})],Dt.prototype,"border",2),c([p({attribute:"vertical",type:Boolean,reflect:!0})],Dt.prototype,"vertical",2),c([p({attribute:"primary-caption",reflect:!0})],Dt.prototype,"primaryCaption",2),c([p({attribute:"secondary-caption",reflect:!0})],Dt.prototype,"secondaryCaption",2),c([p({attribute:"focus-pane",type:Number,reflect:!0})],Dt.prototype,"_focusPane",2),c([p({attribute:"padded",type:Boolean,reflect:!0})],Dt.prototype,"padded",2),c([p({attribute:"padded-right",type:Boolean,reflect:!0})],Dt.prototype,"paddedRight",2),c([p({type:Boolean,reflect:!0})],Dt.prototype,"gap",2),c([p({reflect:!0})],Dt.prototype,"hide",2),c([p({attribute:"merged-navigation",type:Boolean,reflect:!0})],Dt.prototype,"mergedNavigation",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],Dt.prototype,"localStorage",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],Dt.prototype,"storeTtl",2),c([og({passive:!0})],Dt.prototype,"resize",1);var ck=Dt;Dt.define("zn-split-pane");var zv=T`@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}:host *,:host *::before,:host *::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:flex;flex-grow:1;max-height:100%;height:100%;overflow:hidden !important;container-type:inline-size}:host .relative{position:relative;flex-grow:1;max-height:100%}@container (min-width:600px){:host .relative{max-width:calc(100% - var(--zn-spacing-narrow-bar))}}@container (min-width:1100px){:host .relative{max-width:calc(100% - var(--zn-spacing-panel))}}@container (min-width:0px) and (max-width:599px){:host .relative{min-height:0}}:host .container{position:relative;display:flex;flex-direction:column-reverse;align-items:stretch;max-height:100%;max-width:100%;min-height:0;flex:1}@container (min-width:600px){:host .container{flex-direction:row}}:host #primary-content,:host .sidebar{max-height:100%;max-width:100%}:host #primary-content{flex-grow:1;min-height:100px;max-height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:var(--zn-gap,0);padding:var(--zn-base-gap,0)}:host .sidebar{width:100%;display:flex;flex-shrink:0;flex-direction:column;align-items:stretch;overflow-y:auto;overflow-x:hidden}@container (min-width:600px){:host .sidebar{min-width:var(--zn-spacing-narrow-bar);max-width:var(--zn-spacing-narrow-bar)}}@container (min-width:600px){:host .sidebar{flex-direction:row}}:host .sidebar #content{padding:var(--zn-base-gap,0);background:rgb(var(--zn-body));display:none;z-index:5;overflow-y:auto;overflow-x:hidden;position:absolute;right:0;left:0;top:var(--zn-spacing-narrow-bar);bottom:0;flex-grow:1}@container (min-width:600px){:host .sidebar #content{position:relative;inset:0}}@container (min-width:1100px){:host .sidebar #content{padding-left:var(--zn-spacing-medium,0)}}:host .sidebar #expander{cursor:pointer;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;overflow:hidden;border-bottom-width:1px;height:var(--zn-spacing-narrow-bar);width:100%;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));z-index:20;top:0;left:0;right:0;bottom:0}@container (min-width:600px){:host .sidebar #expander{height:unset;flex-direction:column;justify-content:start;min-width:var(--zn-spacing-narrow-bar);max-width:var(--zn-spacing-narrow-bar);width:var(--zn-spacing-narrow-bar);border-bottom-width:0;border-left-width:1px;padding-bottom:var(--zn-spacing-narrow-bar)}}@container (min-width:1100px){:host .sidebar #expander{display:none}}:host .sidebar #expander span{writing-mode:horizontal-tb;flex-grow:1;padding-left:var(--zn-spacing-medium);display:none}@container (min-width:600px){:host .sidebar #expander span{writing-mode:vertical-rl}}@container (min-width:600px){:host .sidebar #expander span{padding-left:0}}:host .sidebar #expander span.open{display:block}:host .sidebar #expander zn-icon{color:rgb(var(--zn-text));margin-left:var(--zn-spacing-medium);margin-right:var(--zn-spacing-medium);transition:all 500ms ease-in-out;rotate:0}@container (min-width:600px){:host .sidebar #expander zn-icon{margin-top:var(--zn-spacing-medium);margin-bottom:var(--zn-spacing-medium);rotate:90deg}}:host([flush]) #primary-content{padding:0}@container (min-width:600px){:host([open]) .relative{max-width:calc(100% - var(--zn-spacing-panel))}}@container (min-width:600px){:host([open]) .sidebar{min-width:var(--zn-spacing-panel);max-width:var(--zn-spacing-panel);width:var(--zn-spacing-panel)}}@container (min-width:600px){:host([open]) .sidebar--wide{min-width:var(--zn-spacing-lside);max-width:var(--zn-spacing-lside);width:var(--zn-spacing-lside)}}:host([open]) .sidebar #expander zn-icon{rotate:-180deg}@container (min-width:600px){:host([open]) .sidebar #expander zn-icon{rotate:-90deg}}:host([open]) .sidebar #expander.open{display:none}:host([open]) .sidebar #expander.close{display:none}@container (min-width:600px){:host([open]) .sidebar #expander.close{display:block}}:host([open]) .sidebar #expander.close-sm{display:block;font-weight:500}@container (min-width:600px){:host([open]) .sidebar #expander.close-sm{display:none}}:host([open]) .sidebar #content{display:block}@container (min-width:1100px){:host .sidebar{min-width:var(--zn-spacing-panel);max-width:var(--zn-spacing-panel);width:var(--zn-spacing-panel)}:host .sidebar--wide{min-width:var(--zn-spacing-lside);max-width:var(--zn-spacing-lside);width:var(--zn-spacing-lside)}:host .sidebar #content{display:block}:host(:not([distinct])) .sidebar{background:transparent}:host(:not([distinct])) .sidebar #content{background:transparent;padding-left:0}}:host([distinct]) .sidebar #content{background:rgba(var(--zn-panel),var(--zn-panel-opacity))}@container (min-width:600px){:host([distinct]) .sidebar{border-left-width:1px}}@container (min-width:600px) and (max-width:1099px){:host([distinct]) .sidebar #content{padding-left:0}}:host([distinct]) .sidebar #expander{border-left-width:0}:host #sidebar #content slot{display:flex;flex-direction:column;align-items:normal;gap:var(--zn-gap,0)}`;var Vo=class extends S{constructor(){super();this.open=!1;this.startScrolled=!1;this.wide=!1;this.domObserver=new Ht(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>{setTimeout(()=>this.scrollBottom(),10)}});this.addEventListener("scroll-to-bottom",()=>{setTimeout(()=>this.scrollBottom(),200)})}connectedCallback(){super.connectedCallback(),this.startScrolled&&(this.domObserver.observe(this),this.scrollBottom())}scrollBottom(){let t=this.shadowRoot?.getElementById("primary-content");t?t.scrollTop=t.scrollHeight:setTimeout(this.scrollBottom.bind(this),10)}render(){return u`
2078
2078
  <div class="container">
2079
2079
  <div class="relative">
2080
2080
  <div id="primary-content">
@@ -2137,7 +2137,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
2137
2137
  </div>
2138
2138
  </div>
2139
2139
  </div>
2140
- `}};_r.styles=A(kv),c([p()],_r.prototype,"caption",2),c([p()],_r.prototype,"description",2),c([p()],_r.prototype,"amount",2),c([p()],_r.prototype,"type",2),c([p()],_r.prototype,"previous",2),c([p()],_r.prototype,"currency",2),c([p({type:Boolean,attribute:"show-delta"})],_r.prototype,"showDelta",2),c([p()],_r.prototype,"color",2);var mk=_r;_r.define("zn-stat");var Cv=T`@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}:host *,:host *::before,:host *::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:contents;--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 S{constructor(){super(...arguments);this.startScrolled=!1;this._footerResizeObserver=new Qt(this,{target:null,callback:()=>{this.style.setProperty("--zn-scroll-footer-height",`${this.footer?.clientHeight??0}px`)}});this._domObserver=new Pt(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>{setTimeout(()=>this.scrollEnd(),100),this.footer&&(this.style.setProperty("--zn-scroll-footer-height",`${this.footer.clientHeight}px`),this._footerResizeObserver.observe(this.footer))}})}firstUpdated(t){super.firstUpdated(t),this.startScrolled&&this.container&&setTimeout(this.scrollEnd.bind(this),10)}scrollEnd(){this.container.scrollTop=this.container.scrollHeight}connectedCallback(){super.connectedCallback(),this.startScrolled&&this._domObserver.observe(this)}render(){return u`
2140
+ `}};_r.styles=A(kv),c([p()],_r.prototype,"caption",2),c([p()],_r.prototype,"description",2),c([p()],_r.prototype,"amount",2),c([p()],_r.prototype,"type",2),c([p()],_r.prototype,"previous",2),c([p()],_r.prototype,"currency",2),c([p({type:Boolean,attribute:"show-delta"})],_r.prototype,"showDelta",2),c([p()],_r.prototype,"color",2);var mk=_r;_r.define("zn-stat");var Cv=T`@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}:host *,:host *::before,:host *::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:contents;--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 S{constructor(){super(...arguments);this.startScrolled=!1;this._footerResizeObserver=new Qt(this,{target:null,callback:()=>{this.style.setProperty("--zn-scroll-footer-height",`${this.footer?.clientHeight??0}px`)}});this._domObserver=new Ht(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>{setTimeout(()=>this.scrollEnd(),100),this.footer&&(this.style.setProperty("--zn-scroll-footer-height",`${this.footer.clientHeight}px`),this._footerResizeObserver.observe(this.footer))}})}firstUpdated(t){super.firstUpdated(t),this.startScrolled&&this.container&&setTimeout(this.scrollEnd.bind(this),10)}scrollEnd(){this.container.scrollTop=this.container.scrollHeight}connectedCallback(){super.connectedCallback(),this.startScrolled&&this._domObserver.observe(this)}render(){return u`
2141
2141
  <div class="container">
2142
2142
  <div class="scroll-header">
2143
2143
  <slot name="header"></slot>
@@ -2499,7 +2499,7 @@ import{a as _n,b as B2,c as ar,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var B
2499
2499
  </button>
2500
2500
  `):u`
2501
2501
  <div class="empty">${this.query?"No results":"Type something"}</div>`}
2502
- `}};Ln.styles=A(qv),c([p({type:Boolean,reflect:!0})],Ln.prototype,"open",2),c([p({type:String})],Ln.prototype,"query",2),c([p({type:Array})],Ln.prototype,"results",2),c([H()],Ln.prototype,"_activeIndex",2);Ln.define("zn-context-menu");var Az=ar(Or(),1);var P8=typeof global=="object"&&global&&global.Object===Object&&global,yd=P8;var H8=typeof self=="object"&&self&&self.Object===Object&&self,F8=yd||H8||Function("return this")(),Ee=F8;var B8=Ee.Symbol,go=B8;var m1=Object.prototype,V8=m1.hasOwnProperty,U8=m1.toString,gl=go?go.toStringTag:void 0;function j8(i){var r=V8.call(i,gl),t=i[gl];try{i[gl]=void 0;var o=!0}catch{}var n=U8.call(i);return o&&(r?i[gl]=t:delete i[gl]),n}var f1=j8;var G8=Object.prototype,W8=G8.toString;function K8(i){return W8.call(i)}var g1=K8;var Y8="[object Null]",X8="[object Undefined]",b1=go?go.toStringTag:void 0;function Q8(i){return i==null?i===void 0?X8:Y8:b1&&b1 in Object(i)?f1(i):g1(i)}var Uo=Q8;function J8(i){return i!=null&&typeof i=="object"}var rr=J8;var Z8=Array.isArray,bo=Z8;function t9(i){var r=typeof i;return i!=null&&(r=="object"||r=="function")}var pr=t9;function e9(i){return i}var zd=e9;var r9="[object AsyncFunction]",o9="[object Function]",n9="[object GeneratorFunction]",i9="[object Proxy]";function a9(i){if(!pr(i))return!1;var r=Uo(i);return r==o9||r==n9||r==r9||r==i9}var Ya=a9;var s9=Ee["__core-js_shared__"],wd=s9;var v1=(function(){var i=/[^.]+$/.exec(wd&&wd.keys&&wd.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function l9(i){return!!v1&&v1 in i}var x1=l9;var c9=Function.prototype,d9=c9.toString;function p9(i){if(i!=null){try{return d9.call(i)}catch{}try{return i+""}catch{}}return""}var Hn=p9;var h9=/[\\^$.*+?()[\]{}|]/g,u9=/^\[object .+?Constructor\]$/,m9=Function.prototype,f9=Object.prototype,g9=m9.toString,b9=f9.hasOwnProperty,v9=RegExp("^"+g9.call(b9).replace(h9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function x9(i){if(!pr(i)||x1(i))return!1;var r=Ya(i)?v9:u9;return r.test(Hn(i))}var y1=x9;function y9(i,r){return i?.[r]}var z1=y9;function z9(i,r){var t=z1(i,r);return y1(t)?t:void 0}var Pr=z9;var w9=Pr(Ee,"WeakMap"),_d=w9;var w1=Object.create,_9=(function(){function i(){}return function(r){if(!pr(r))return{};if(w1)return w1(r);i.prototype=r;var t=new i;return i.prototype=void 0,t}})(),_1=_9;function k9(i,r,t){switch(t.length){case 0:return i.call(r);case 1:return i.call(r,t[0]);case 2:return i.call(r,t[0],t[1]);case 3:return i.call(r,t[0],t[1],t[2])}return i.apply(r,t)}var k1=k9;function C9(i,r){var t=-1,o=i.length;for(r||(r=Array(o));++t<o;)r[t]=i[t];return r}var kd=C9;var S9=800,E9=16,T9=Date.now;function A9(i){var r=0,t=0;return function(){var o=T9(),n=E9-(o-t);if(t=o,n>0){if(++r>=S9)return arguments[0]}else r=0;return i.apply(void 0,arguments)}}var C1=A9;function $9(i){return function(){return i}}var S1=$9;var q9=(function(){try{var i=Pr(Object,"defineProperty");return i({},"",{}),i}catch{}})(),Xa=q9;var L9=Xa?function(i,r){return Xa(i,"toString",{configurable:!0,enumerable:!1,value:S1(r),writable:!0})}:zd,E1=L9;var M9=C1(E1),T1=M9;function I9(i,r){for(var t=-1,o=i==null?0:i.length;++t<o&&r(i[t],t,i)!==!1;);return i}var A1=I9;var N9=9007199254740991,D9=/^(?:0|[1-9]\d*)$/;function R9(i,r){var t=typeof i;return r=r??N9,!!r&&(t=="number"||t!="symbol"&&D9.test(i))&&i>-1&&i%1==0&&i<r}var Cd=R9;function O9(i,r,t){r=="__proto__"&&Xa?Xa(i,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):i[r]=t}var Qa=O9;function P9(i,r){return i===r||i!==i&&r!==r}var hn=P9;var H9=Object.prototype,F9=H9.hasOwnProperty;function B9(i,r,t){var o=i[r];(!(F9.call(i,r)&&hn(o,t))||t===void 0&&!(r in i))&&Qa(i,r,t)}var Sd=B9;function V9(i,r,t,o){var n=!t;t||(t={});for(var a=-1,s=r.length;++a<s;){var l=r[a],d=o?o(t[l],i[l],l,t,i):void 0;d===void 0&&(d=i[l]),n?Qa(t,l,d):Sd(t,l,d)}return t}var un=V9;var $1=Math.max;function U9(i,r,t){return r=$1(r===void 0?i.length-1:r,0),function(){for(var o=arguments,n=-1,a=$1(o.length-r,0),s=Array(a);++n<a;)s[n]=o[r+n];n=-1;for(var l=Array(r+1);++n<r;)l[n]=o[n];return l[r]=t(s),k1(i,this,l)}}var q1=U9;function j9(i,r){return T1(q1(i,r,zd),i+"")}var L1=j9;var G9=9007199254740991;function W9(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=G9}var Ed=W9;function K9(i){return i!=null&&Ed(i.length)&&!Ya(i)}var ui=K9;function Y9(i,r,t){if(!pr(t))return!1;var o=typeof r;return(o=="number"?ui(t)&&Cd(r,t.length):o=="string"&&r in t)?hn(t[r],i):!1}var M1=Y9;function X9(i){return L1(function(r,t){var o=-1,n=t.length,a=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(a=i.length>3&&typeof a=="function"?(n--,a):void 0,s&&M1(t[0],t[1],s)&&(a=n<3?void 0:a,n=1),r=Object(r);++o<n;){var l=t[o];l&&i(r,l,o,a)}return r})}var I1=X9;var Q9=Object.prototype;function J9(i){var r=i&&i.constructor,t=typeof r=="function"&&r.prototype||Q9;return i===t}var Ja=J9;function Z9(i,r){for(var t=-1,o=Array(i);++t<i;)o[t]=r(t);return o}var N1=Z9;var t6="[object Arguments]";function e6(i){return rr(i)&&Uo(i)==t6}var Tu=e6;var D1=Object.prototype,r6=D1.hasOwnProperty,o6=D1.propertyIsEnumerable,n6=Tu((function(){return arguments})())?Tu:function(i){return rr(i)&&r6.call(i,"callee")&&!o6.call(i,"callee")},bl=n6;function i6(){return!1}var R1=i6;var H1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,O1=H1&&typeof module=="object"&&module&&!module.nodeType&&module,a6=O1&&O1.exports===H1,P1=a6?Ee.Buffer:void 0,s6=P1?P1.isBuffer:void 0,l6=s6||R1,Fn=l6;var c6="[object Arguments]",d6="[object Array]",p6="[object Boolean]",h6="[object Date]",u6="[object Error]",m6="[object Function]",f6="[object Map]",g6="[object Number]",b6="[object Object]",v6="[object RegExp]",x6="[object Set]",y6="[object String]",z6="[object WeakMap]",w6="[object ArrayBuffer]",_6="[object DataView]",k6="[object Float32Array]",C6="[object Float64Array]",S6="[object Int8Array]",E6="[object Int16Array]",T6="[object Int32Array]",A6="[object Uint8Array]",$6="[object Uint8ClampedArray]",q6="[object Uint16Array]",L6="[object Uint32Array]",Yt={};Yt[k6]=Yt[C6]=Yt[S6]=Yt[E6]=Yt[T6]=Yt[A6]=Yt[$6]=Yt[q6]=Yt[L6]=!0;Yt[c6]=Yt[d6]=Yt[w6]=Yt[p6]=Yt[_6]=Yt[h6]=Yt[u6]=Yt[m6]=Yt[f6]=Yt[g6]=Yt[b6]=Yt[v6]=Yt[x6]=Yt[y6]=Yt[z6]=!1;function M6(i){return rr(i)&&Ed(i.length)&&!!Yt[Uo(i)]}var F1=M6;function I6(i){return function(r){return i(r)}}var Za=I6;var B1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vl=B1&&typeof module=="object"&&module&&!module.nodeType&&module,N6=vl&&vl.exports===B1,Au=N6&&yd.process,D6=(function(){try{var i=vl&&vl.require&&vl.require("util").types;return i||Au&&Au.binding&&Au.binding("util")}catch{}})(),Bn=D6;var V1=Bn&&Bn.isTypedArray,R6=V1?Za(V1):F1,ts=R6;var O6=Object.prototype,P6=O6.hasOwnProperty;function H6(i,r){var t=bo(i),o=!t&&bl(i),n=!t&&!o&&Fn(i),a=!t&&!o&&!n&&ts(i),s=t||o||n||a,l=s?N1(i.length,String):[],d=l.length;for(var h in i)(r||P6.call(i,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Cd(h,d)))&&l.push(h);return l}var Td=H6;function F6(i,r){return function(t){return i(r(t))}}var Ad=F6;var B6=Ad(Object.keys,Object),U1=B6;var V6=Object.prototype,U6=V6.hasOwnProperty;function j6(i){if(!Ja(i))return U1(i);var r=[];for(var t in Object(i))U6.call(i,t)&&t!="constructor"&&r.push(t);return r}var j1=j6;function G6(i){return ui(i)?Td(i):j1(i)}var es=G6;function W6(i){var r=[];if(i!=null)for(var t in Object(i))r.push(t);return r}var G1=W6;var K6=Object.prototype,Y6=K6.hasOwnProperty;function X6(i){if(!pr(i))return G1(i);var r=Ja(i),t=[];for(var o in i)o=="constructor"&&(r||!Y6.call(i,o))||t.push(o);return t}var W1=X6;function Q6(i){return ui(i)?Td(i,!0):W1(i)}var mn=Q6;var J6=Pr(Object,"create"),Vn=J6;function Z6(){this.__data__=Vn?Vn(null):{},this.size=0}var K1=Z6;function t7(i){var r=this.has(i)&&delete this.__data__[i];return this.size-=r?1:0,r}var Y1=t7;var e7="__lodash_hash_undefined__",r7=Object.prototype,o7=r7.hasOwnProperty;function n7(i){var r=this.__data__;if(Vn){var t=r[i];return t===e7?void 0:t}return o7.call(r,i)?r[i]:void 0}var X1=n7;var i7=Object.prototype,a7=i7.hasOwnProperty;function s7(i){var r=this.__data__;return Vn?r[i]!==void 0:a7.call(r,i)}var Q1=s7;var l7="__lodash_hash_undefined__";function c7(i,r){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=Vn&&r===void 0?l7:r,this}var J1=c7;function rs(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}rs.prototype.clear=K1;rs.prototype.delete=Y1;rs.prototype.get=X1;rs.prototype.has=Q1;rs.prototype.set=J1;var $u=rs;function d7(){this.__data__=[],this.size=0}var Z1=d7;function p7(i,r){for(var t=i.length;t--;)if(hn(i[t][0],r))return t;return-1}var mi=p7;var h7=Array.prototype,u7=h7.splice;function m7(i){var r=this.__data__,t=mi(r,i);if(t<0)return!1;var o=r.length-1;return t==o?r.pop():u7.call(r,t,1),--this.size,!0}var tx=m7;function f7(i){var r=this.__data__,t=mi(r,i);return t<0?void 0:r[t][1]}var ex=f7;function g7(i){return mi(this.__data__,i)>-1}var rx=g7;function b7(i,r){var t=this.__data__,o=mi(t,i);return o<0?(++this.size,t.push([i,r])):t[o][1]=r,this}var ox=b7;function os(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}os.prototype.clear=Z1;os.prototype.delete=tx;os.prototype.get=ex;os.prototype.has=rx;os.prototype.set=ox;var fi=os;var v7=Pr(Ee,"Map"),gi=v7;function x7(){this.size=0,this.__data__={hash:new $u,map:new(gi||fi),string:new $u}}var nx=x7;function y7(i){var r=typeof i;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?i!=="__proto__":i===null}var ix=y7;function z7(i,r){var t=i.__data__;return ix(r)?t[typeof r=="string"?"string":"hash"]:t.map}var bi=z7;function w7(i){var r=bi(this,i).delete(i);return this.size-=r?1:0,r}var ax=w7;function _7(i){return bi(this,i).get(i)}var sx=_7;function k7(i){return bi(this,i).has(i)}var lx=k7;function C7(i,r){var t=bi(this,i),o=t.size;return t.set(i,r),this.size+=t.size==o?0:1,this}var cx=C7;function ns(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}ns.prototype.clear=nx;ns.prototype.delete=ax;ns.prototype.get=sx;ns.prototype.has=lx;ns.prototype.set=cx;var $d=ns;function S7(i,r){for(var t=-1,o=r.length,n=i.length;++t<o;)i[n+t]=r[t];return i}var qd=S7;var E7=Ad(Object.getPrototypeOf,Object),is=E7;var T7="[object Object]",A7=Function.prototype,$7=Object.prototype,dx=A7.toString,q7=$7.hasOwnProperty,L7=dx.call(Object);function M7(i){if(!rr(i)||Uo(i)!=T7)return!1;var r=is(i);if(r===null)return!0;var t=q7.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&dx.call(t)==L7}var px=M7;function I7(){this.__data__=new fi,this.size=0}var hx=I7;function N7(i){var r=this.__data__,t=r.delete(i);return this.size=r.size,t}var ux=N7;function D7(i){return this.__data__.get(i)}var mx=D7;function R7(i){return this.__data__.has(i)}var fx=R7;var O7=200;function P7(i,r){var t=this.__data__;if(t instanceof fi){var o=t.__data__;if(!gi||o.length<O7-1)return o.push([i,r]),this.size=++t.size,this;t=this.__data__=new $d(o)}return t.set(i,r),this.size=t.size,this}var gx=P7;function as(i){var r=this.__data__=new fi(i);this.size=r.size}as.prototype.clear=hx;as.prototype.delete=ux;as.prototype.get=mx;as.prototype.has=fx;as.prototype.set=gx;var vi=as;function H7(i,r){return i&&un(r,es(r),i)}var bx=H7;function F7(i,r){return i&&un(r,mn(r),i)}var vx=F7;var wx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xx=wx&&typeof module=="object"&&module&&!module.nodeType&&module,B7=xx&&xx.exports===wx,yx=B7?Ee.Buffer:void 0,zx=yx?yx.allocUnsafe:void 0;function V7(i,r){if(r)return i.slice();var t=i.length,o=zx?zx(t):new i.constructor(t);return i.copy(o),o}var Ld=V7;function U7(i,r){for(var t=-1,o=i==null?0:i.length,n=0,a=[];++t<o;){var s=i[t];r(s,t,i)&&(a[n++]=s)}return a}var _x=U7;function j7(){return[]}var Md=j7;var G7=Object.prototype,W7=G7.propertyIsEnumerable,kx=Object.getOwnPropertySymbols,K7=kx?function(i){return i==null?[]:(i=Object(i),_x(kx(i),function(r){return W7.call(i,r)}))}:Md,ss=K7;function Y7(i,r){return un(i,ss(i),r)}var Cx=Y7;var X7=Object.getOwnPropertySymbols,Q7=X7?function(i){for(var r=[];i;)qd(r,ss(i)),i=is(i);return r}:Md,Id=Q7;function J7(i,r){return un(i,Id(i),r)}var Sx=J7;function Z7(i,r,t){var o=r(i);return bo(i)?o:qd(o,t(i))}var Nd=Z7;function tC(i){return Nd(i,es,ss)}var xl=tC;function eC(i){return Nd(i,mn,Id)}var Ex=eC;var rC=Pr(Ee,"DataView"),Dd=rC;var oC=Pr(Ee,"Promise"),Rd=oC;var nC=Pr(Ee,"Set"),Od=nC;var Tx="[object Map]",iC="[object Object]",Ax="[object Promise]",$x="[object Set]",qx="[object WeakMap]",Lx="[object DataView]",aC=Hn(Dd),sC=Hn(gi),lC=Hn(Rd),cC=Hn(Od),dC=Hn(_d),da=Uo;(Dd&&da(new Dd(new ArrayBuffer(1)))!=Lx||gi&&da(new gi)!=Tx||Rd&&da(Rd.resolve())!=Ax||Od&&da(new Od)!=$x||_d&&da(new _d)!=qx)&&(da=function(i){var r=Uo(i),t=r==iC?i.constructor:void 0,o=t?Hn(t):"";if(o)switch(o){case aC:return Lx;case sC:return Tx;case lC:return Ax;case cC:return $x;case dC:return qx}return r});var Un=da;var pC=Object.prototype,hC=pC.hasOwnProperty;function uC(i){var r=i.length,t=new i.constructor(r);return r&&typeof i[0]=="string"&&hC.call(i,"index")&&(t.index=i.index,t.input=i.input),t}var Mx=uC;var mC=Ee.Uint8Array,ls=mC;function fC(i){var r=new i.constructor(i.byteLength);return new ls(r).set(new ls(i)),r}var cs=fC;function gC(i,r){var t=r?cs(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)}var Ix=gC;var bC=/\w*$/;function vC(i){var r=new i.constructor(i.source,bC.exec(i));return r.lastIndex=i.lastIndex,r}var Nx=vC;var Dx=go?go.prototype:void 0,Rx=Dx?Dx.valueOf:void 0;function xC(i){return Rx?Object(Rx.call(i)):{}}var Ox=xC;function yC(i,r){var t=r?cs(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}var Pd=yC;var zC="[object Boolean]",wC="[object Date]",_C="[object Map]",kC="[object Number]",CC="[object RegExp]",SC="[object Set]",EC="[object String]",TC="[object Symbol]",AC="[object ArrayBuffer]",$C="[object DataView]",qC="[object Float32Array]",LC="[object Float64Array]",MC="[object Int8Array]",IC="[object Int16Array]",NC="[object Int32Array]",DC="[object Uint8Array]",RC="[object Uint8ClampedArray]",OC="[object Uint16Array]",PC="[object Uint32Array]";function HC(i,r,t){var o=i.constructor;switch(r){case AC:return cs(i);case zC:case wC:return new o(+i);case $C:return Ix(i,t);case qC:case LC:case MC:case IC:case NC:case DC:case RC:case OC:case PC:return Pd(i,t);case _C:return new o;case kC:case EC:return new o(i);case CC:return Nx(i);case SC:return new o;case TC:return Ox(i)}}var Px=HC;function FC(i){return typeof i.constructor=="function"&&!Ja(i)?_1(is(i)):{}}var Hd=FC;var BC="[object Map]";function VC(i){return rr(i)&&Un(i)==BC}var Hx=VC;var Fx=Bn&&Bn.isMap,UC=Fx?Za(Fx):Hx,Bx=UC;var jC="[object Set]";function GC(i){return rr(i)&&Un(i)==jC}var Vx=GC;var Ux=Bn&&Bn.isSet,WC=Ux?Za(Ux):Vx,jx=WC;var KC=1,YC=2,XC=4,Gx="[object Arguments]",QC="[object Array]",JC="[object Boolean]",ZC="[object Date]",tS="[object Error]",Wx="[object Function]",eS="[object GeneratorFunction]",rS="[object Map]",oS="[object Number]",Kx="[object Object]",nS="[object RegExp]",iS="[object Set]",aS="[object String]",sS="[object Symbol]",lS="[object WeakMap]",cS="[object ArrayBuffer]",dS="[object DataView]",pS="[object Float32Array]",hS="[object Float64Array]",uS="[object Int8Array]",mS="[object Int16Array]",fS="[object Int32Array]",gS="[object Uint8Array]",bS="[object Uint8ClampedArray]",vS="[object Uint16Array]",xS="[object Uint32Array]",Vt={};Vt[Gx]=Vt[QC]=Vt[cS]=Vt[dS]=Vt[JC]=Vt[ZC]=Vt[pS]=Vt[hS]=Vt[uS]=Vt[mS]=Vt[fS]=Vt[rS]=Vt[oS]=Vt[Kx]=Vt[nS]=Vt[iS]=Vt[aS]=Vt[sS]=Vt[gS]=Vt[bS]=Vt[vS]=Vt[xS]=!0;Vt[tS]=Vt[Wx]=Vt[lS]=!1;function Fd(i,r,t,o,n,a){var s,l=r&KC,d=r&YC,h=r&XC;if(t&&(s=n?t(i,o,n,a):t(i)),s!==void 0)return s;if(!pr(i))return i;var m=bo(i);if(m){if(s=Mx(i),!l)return kd(i,s)}else{var f=Un(i),b=f==Wx||f==eS;if(Fn(i))return Ld(i,l);if(f==Kx||f==Gx||b&&!n){if(s=d||b?{}:Hd(i),!l)return d?Sx(i,vx(s,i)):Cx(i,bx(s,i))}else{if(!Vt[f])return n?i:{};s=Px(i,f,l)}}a||(a=new vi);var g=a.get(i);if(g)return g;a.set(i,s),jx(i)?i.forEach(function(_){s.add(Fd(_,r,t,_,i,a))}):Bx(i)&&i.forEach(function(_,k){s.set(k,Fd(_,r,t,k,i,a))});var v=h?d?Ex:xl:d?mn:es,x=m?void 0:v(i);return A1(x||i,function(_,k){x&&(k=_,_=i[k]),Sd(s,k,Fd(_,r,t,k,i,a))}),s}var Yx=Fd;var yS=1,zS=4;function wS(i){return Yx(i,yS|zS)}var fn=wS;var _S="__lodash_hash_undefined__";function kS(i){return this.__data__.set(i,_S),this}var Xx=kS;function CS(i){return this.__data__.has(i)}var Qx=CS;function Bd(i){var r=-1,t=i==null?0:i.length;for(this.__data__=new $d;++r<t;)this.add(i[r])}Bd.prototype.add=Bd.prototype.push=Xx;Bd.prototype.has=Qx;var Jx=Bd;function SS(i,r){for(var t=-1,o=i==null?0:i.length;++t<o;)if(r(i[t],t,i))return!0;return!1}var Zx=SS;function ES(i,r){return i.has(r)}var ty=ES;var TS=1,AS=2;function $S(i,r,t,o,n,a){var s=t&TS,l=i.length,d=r.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(i),m=a.get(r);if(h&&m)return h==r&&m==i;var f=-1,b=!0,g=t&AS?new Jx:void 0;for(a.set(i,r),a.set(r,i);++f<l;){var v=i[f],x=r[f];if(o)var _=s?o(x,v,f,r,i,a):o(v,x,f,i,r,a);if(_!==void 0){if(_)continue;b=!1;break}if(g){if(!Zx(r,function(k,O){if(!ty(g,O)&&(v===k||n(v,k,t,o,a)))return g.push(O)})){b=!1;break}}else if(!(v===x||n(v,x,t,o,a))){b=!1;break}}return a.delete(i),a.delete(r),b}var Vd=$S;function qS(i){var r=-1,t=Array(i.size);return i.forEach(function(o,n){t[++r]=[n,o]}),t}var ey=qS;function LS(i){var r=-1,t=Array(i.size);return i.forEach(function(o){t[++r]=o}),t}var ry=LS;var MS=1,IS=2,NS="[object Boolean]",DS="[object Date]",RS="[object Error]",OS="[object Map]",PS="[object Number]",HS="[object RegExp]",FS="[object Set]",BS="[object String]",VS="[object Symbol]",US="[object ArrayBuffer]",jS="[object DataView]",oy=go?go.prototype:void 0,qu=oy?oy.valueOf:void 0;function GS(i,r,t,o,n,a,s){switch(t){case jS:if(i.byteLength!=r.byteLength||i.byteOffset!=r.byteOffset)return!1;i=i.buffer,r=r.buffer;case US:return!(i.byteLength!=r.byteLength||!a(new ls(i),new ls(r)));case NS:case DS:case PS:return hn(+i,+r);case RS:return i.name==r.name&&i.message==r.message;case HS:case BS:return i==r+"";case OS:var l=ey;case FS:var d=o&MS;if(l||(l=ry),i.size!=r.size&&!d)return!1;var h=s.get(i);if(h)return h==r;o|=IS,s.set(i,r);var m=Vd(l(i),l(r),o,n,a,s);return s.delete(i),m;case VS:if(qu)return qu.call(i)==qu.call(r)}return!1}var ny=GS;var WS=1,KS=Object.prototype,YS=KS.hasOwnProperty;function XS(i,r,t,o,n,a){var s=t&WS,l=xl(i),d=l.length,h=xl(r),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in r:YS.call(r,b)))return!1}var g=a.get(i),v=a.get(r);if(g&&v)return g==r&&v==i;var x=!0;a.set(i,r),a.set(r,i);for(var _=s;++f<d;){b=l[f];var k=i[b],O=r[b];if(o)var j=s?o(O,k,b,r,i,a):o(k,O,b,i,r,a);if(!(j===void 0?k===O||n(k,O,t,o,a):j)){x=!1;break}_||(_=b=="constructor")}if(x&&!_){var I=i.constructor,w=r.constructor;I!=w&&"constructor"in i&&"constructor"in r&&!(typeof I=="function"&&I instanceof I&&typeof w=="function"&&w instanceof w)&&(x=!1)}return a.delete(i),a.delete(r),x}var iy=XS;var QS=1,ay="[object Arguments]",sy="[object Array]",Ud="[object Object]",JS=Object.prototype,ly=JS.hasOwnProperty;function ZS(i,r,t,o,n,a){var s=bo(i),l=bo(r),d=s?sy:Un(i),h=l?sy:Un(r);d=d==ay?Ud:d,h=h==ay?Ud:h;var m=d==Ud,f=h==Ud,b=d==h;if(b&&Fn(i)){if(!Fn(r))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new vi),s||ts(i)?Vd(i,r,t,o,n,a):ny(i,r,d,t,o,n,a);if(!(t&QS)){var g=m&&ly.call(i,"__wrapped__"),v=f&&ly.call(r,"__wrapped__");if(g||v){var x=g?i.value():i,_=v?r.value():r;return a||(a=new vi),n(x,_,t,o,a)}}return b?(a||(a=new vi),iy(i,r,t,o,n,a)):!1}var cy=ZS;function dy(i,r,t,o,n){return i===r?!0:i==null||r==null||!rr(i)&&!rr(r)?i!==i&&r!==r:cy(i,r,t,o,dy,n)}var py=dy;function tE(i){return function(r,t,o){for(var n=-1,a=Object(r),s=o(r),l=s.length;l--;){var d=s[i?l:++n];if(t(a[d],d,a)===!1)break}return r}}var hy=tE;var eE=hy(),uy=eE;function rE(i,r,t){(t!==void 0&&!hn(i[r],t)||t===void 0&&!(r in i))&&Qa(i,r,t)}var yl=rE;function oE(i){return rr(i)&&ui(i)}var my=oE;function nE(i,r){if(!(r==="constructor"&&typeof i[r]=="function")&&r!="__proto__")return i[r]}var zl=nE;function iE(i){return un(i,mn(i))}var fy=iE;function aE(i,r,t,o,n,a,s){var l=zl(i,t),d=zl(r,t),h=s.get(d);if(h){yl(i,t,h);return}var m=a?a(l,d,t+"",i,r,s):void 0,f=m===void 0;if(f){var b=bo(d),g=!b&&Fn(d),v=!b&&!g&&ts(d);m=d,b||g||v?bo(l)?m=l:my(l)?m=kd(l):g?(f=!1,m=Ld(d,!0)):v?(f=!1,m=Pd(d,!0)):m=[]:px(d)||bl(d)?(m=l,bl(l)?m=fy(l):(!pr(l)||Ya(l))&&(m=Hd(d))):f=!1}f&&(s.set(d,m),n(m,d,o,a,s),s.delete(d)),yl(i,t,m)}var gy=aE;function by(i,r,t,o,n){i!==r&&uy(r,function(a,s){if(n||(n=new vi),pr(a))gy(i,r,s,t,by,o,n);else{var l=o?o(zl(i,s),a,s+"",i,r,n):void 0;l===void 0&&(l=a),yl(i,s,l)}},mn)}var vy=by;function sE(i,r){return py(i,r)}var pa=sE;var lE=I1(function(i,r,t){vy(i,r,t)}),Hr=lE;var kl={};B2(kl,{Attributor:()=>Cr,AttributorStore:()=>wl,BlockBlot:()=>ha,ClassAttributor:()=>Te,ContainerBlot:()=>ms,EmbedBlot:()=>se,InlineBlot:()=>jd,LeafBlot:()=>Ae,ParentBlot:()=>Fr,Registry:()=>zi,Scope:()=>X,ScrollBlot:()=>_l,StyleAttributor:()=>Br,TextBlot:()=>fs});var X=(i=>(i[i.TYPE=3]="TYPE",i[i.LEVEL=12]="LEVEL",i[i.ATTRIBUTE=13]="ATTRIBUTE",i[i.BLOT=14]="BLOT",i[i.INLINE=7]="INLINE",i[i.BLOCK=11]="BLOCK",i[i.BLOCK_BLOT=10]="BLOCK_BLOT",i[i.INLINE_BLOT=6]="INLINE_BLOT",i[i.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",i[i.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",i[i.ANY=15]="ANY",i))(X||{}),Cr=class{constructor(r,t,o={}){this.attrName=r,this.keyName=t;let n=X.TYPE&X.ATTRIBUTE;this.scope=o.scope!=null?o.scope&X.LEVEL|n:X.ATTRIBUTE,o.whitelist!=null&&(this.whitelist=o.whitelist)}static keys(r){return Array.from(r.attributes).map(t=>t.name)}add(r,t){return this.canAdd(r,t)?(r.setAttribute(this.keyName,t),!0):!1}canAdd(r,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(r){r.removeAttribute(this.keyName)}value(r){let t=r.getAttribute(this.keyName);return this.canAdd(r,t)&&t?t:""}},yi=class extends Error{constructor(r){r="[Parchment] "+r,super(r),this.message=r,this.name=this.constructor.name}},zy=class Mu{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(r,t=!1){if(r==null)return null;if(this.blots.has(r))return this.blots.get(r)||null;if(t){let o=null;try{o=r.parentNode}catch{return null}return this.find(o,t)}return null}create(r,t,o){let n=this.query(t);if(n==null)throw new yi(`Unable to create ${t} blot`);let a=n,s=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:a.create(o),l=new a(r,s,o);return Mu.blots.set(l.domNode,l),l}find(r,t=!1){return Mu.find(r,t)}query(r,t=X.ANY){let o;return typeof r=="string"?o=this.types[r]||this.attributes[r]:r instanceof Text||r.nodeType===Node.TEXT_NODE?o=this.types.text:typeof r=="number"?r&X.LEVEL&X.BLOCK?o=this.types.block:r&X.LEVEL&X.INLINE&&(o=this.types.inline):r instanceof Element&&((r.getAttribute("class")||"").split(/\s+/).some(n=>(o=this.classes[n],!!o)),o=o||this.tags[r.tagName]),o==null?null:"scope"in o&&t&X.LEVEL&o.scope&&t&X.TYPE&o.scope?o:null}register(...r){return r.map(t=>{let o="blotName"in t,n="attrName"in t;if(!o&&!n)throw new yi("Invalid definition");if(o&&t.blotName==="abstract")throw new yi("Cannot register abstract class");let a=o?t.blotName:n?t.attrName:void 0;return this.types[a]=t,n?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):o&&(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})}};zy.blots=new WeakMap;var zi=zy;function xy(i,r){return(i.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${r}-`)===0)}var Iu=class extends Cr{static keys(r){return(r.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(r,t){return this.canAdd(r,t)?(this.remove(r),r.classList.add(`${this.keyName}-${t}`),!0):!1}remove(r){xy(r,this.keyName).forEach(t=>{r.classList.remove(t)}),r.classList.length===0&&r.removeAttribute("class")}value(r){let t=(xy(r,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(r,t)?t:""}},Te=Iu;function Lu(i){let r=i.split("-"),t=r.slice(1).map(o=>o[0].toUpperCase()+o.slice(1)).join("");return r[0]+t}var Nu=class extends Cr{static keys(r){return(r.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(r,t){return this.canAdd(r,t)?(r.style[Lu(this.keyName)]=t,!0):!1}remove(r){r.style[Lu(this.keyName)]="",r.getAttribute("style")||r.removeAttribute("style")}value(r){let t=r.style[Lu(this.keyName)];return this.canAdd(r,t)?t:""}},Br=Nu,Du=class{constructor(r){this.attributes={},this.domNode=r,this.build()}attribute(r,t){t?r.add(this.domNode,t)&&(r.value(this.domNode)!=null?this.attributes[r.attrName]=r:delete this.attributes[r.attrName]):(r.remove(this.domNode),delete this.attributes[r.attrName])}build(){this.attributes={};let r=zi.find(this.domNode);if(r==null)return;let t=Cr.keys(this.domNode),o=Te.keys(this.domNode),n=Br.keys(this.domNode);t.concat(o).concat(n).forEach(a=>{let s=r.scroll.query(a,X.ATTRIBUTE);s instanceof Cr&&(this.attributes[s.attrName]=s)})}copy(r){Object.keys(this.attributes).forEach(t=>{let o=this.attributes[t].value(this.domNode);r.format(t,o)})}move(r){this.copy(r),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((r,t)=>(r[t]=this.attributes[t].value(this.domNode),r),{})}},wl=Du,wy=class{constructor(r,t){this.scroll=r,this.domNode=t,zi.blots.set(t,this),this.prev=null,this.next=null}static create(r){if(this.tagName==null)throw new yi("Blot definition missing tagName");let t,o;return Array.isArray(this.tagName)?(typeof r=="string"?(o=r.toUpperCase(),parseInt(o,10).toString()===o&&(o=parseInt(o,10))):typeof r=="number"&&(o=r),typeof o=="number"?t=document.createElement(this.tagName[o-1]):o&&this.tagName.indexOf(o)>-1?t=document.createElement(o):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 r=this.domNode.cloneNode(!1);return this.scroll.create(r)}detach(){this.parent!=null&&this.parent.removeChild(this),zi.blots.delete(this.domNode)}deleteAt(r,t){this.isolate(r,t).remove()}formatAt(r,t,o,n){let a=this.isolate(r,t);if(this.scroll.query(o,X.BLOT)!=null&&n)a.wrap(o,n);else if(this.scroll.query(o,X.ATTRIBUTE)!=null){let s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(o,n)}}insertAt(r,t,o){let n=o==null?this.scroll.create("text",t):this.scroll.create(t,o),a=this.split(r);this.parent.insertBefore(n,a||void 0)}isolate(r,t){let o=this.split(r);if(o==null)throw new Error("Attempt to isolate at end");return o.split(t),o}length(){return 1}offset(r=this.parent){return this.parent==null||this===r?0:this.parent.children.offset(this)+this.parent.offset(r)}optimize(r){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(r,t){let o=typeof r=="string"?this.scroll.create(r,t):r;return this.parent!=null&&(this.parent.insertBefore(o,this.next||void 0),this.remove()),o}split(r,t){return r===0?this:this.next}update(r,t){}wrap(r,t){let o=typeof r=="string"?this.scroll.create(r,t):r;if(this.parent!=null&&this.parent.insertBefore(o,this.next||void 0),typeof o.appendChild!="function")throw new yi(`Cannot wrap ${r}`);return o.appendChild(this),o}};wy.blotName="abstract";var _y=wy,ky=class extends _y{static value(r){return!0}index(r,t){return this.domNode===r||this.domNode.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(r,t){let o=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return r>0&&(o+=1),[this.parent.domNode,o]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};ky.scope=X.INLINE_BLOT;var cE=ky,Ae=cE,Ru=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...r){if(this.insertBefore(r[0],null),r.length>1){let t=r.slice(1);this.append(...t)}}at(r){let t=this.iterator(),o=t();for(;o&&r>0;)r-=1,o=t();return o}contains(r){let t=this.iterator(),o=t();for(;o;){if(o===r)return!0;o=t()}return!1}indexOf(r){let t=this.iterator(),o=t(),n=0;for(;o;){if(o===r)return n;n+=1,o=t()}return-1}insertBefore(r,t){r!=null&&(this.remove(r),r.next=t,t!=null?(r.prev=t.prev,t.prev!=null&&(t.prev.next=r),t.prev=r,t===this.head&&(this.head=r)):this.tail!=null?(this.tail.next=r,r.prev=this.tail,this.tail=r):(r.prev=null,this.head=this.tail=r),this.length+=1)}offset(r){let t=0,o=this.head;for(;o!=null;){if(o===r)return t;t+=o.length(),o=o.next}return-1}remove(r){this.contains(r)&&(r.prev!=null&&(r.prev.next=r.next),r.next!=null&&(r.next.prev=r.prev),r===this.head&&(this.head=r.next),r===this.tail&&(this.tail=r.prev),this.length-=1)}iterator(r=this.head){return()=>{let t=r;return r!=null&&(r=r.next),t}}find(r,t=!1){let o=this.iterator(),n=o();for(;n;){let a=n.length();if(r<a||t&&r===a&&(n.next==null||n.next.length()!==0))return[n,r];r-=a,n=o()}return[null,0]}forEach(r){let t=this.iterator(),o=t();for(;o;)r(o),o=t()}forEachAt(r,t,o){if(t<=0)return;let[n,a]=this.find(r),s=r-a,l=this.iterator(n),d=l();for(;d&&s<r+t;){let h=d.length();r>s?o(d,r-s,Math.min(t,s+h-r)):o(d,0,Math.min(h,r+t-s)),s+=h,d=l()}}map(r){return this.reduce((t,o)=>(t.push(r(o)),t),[])}reduce(r,t){let o=this.iterator(),n=o();for(;n;)t=r(t,n),n=o();return t}};function yy(i,r){let t=r.find(i);if(t)return t;try{return r.create(i)}catch{let o=r.create(X.INLINE);return Array.from(i.childNodes).forEach(n=>{o.domNode.appendChild(n)}),i.parentNode&&i.parentNode.replaceChild(o.domNode,i),o.attach(),o}}var Cy=class xi extends _y{constructor(r,t){super(r,t),this.uiNode=null,this.build()}appendChild(r){this.insertBefore(r)}attach(){super.attach(),this.children.forEach(r=>{r.attach()})}attachUI(r){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=r,xi.uiClass&&this.uiNode.classList.add(xi.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Ru,Array.from(this.domNode.childNodes).filter(r=>r!==this.uiNode).reverse().forEach(r=>{try{let t=yy(r,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof yi)return;throw t}})}deleteAt(r,t){if(r===0&&t===this.length())return this.remove();this.children.forEachAt(r,t,(o,n,a)=>{o.deleteAt(n,a)})}descendant(r,t=0){let[o,n]=this.children.find(t);return r.blotName==null&&r(o)||r.blotName!=null&&o instanceof r?[o,n]:o instanceof xi?o.descendant(r,n):[null,-1]}descendants(r,t=0,o=Number.MAX_VALUE){let n=[],a=o;return this.children.forEachAt(t,o,(s,l,d)=>{(r.blotName==null&&r(s)||r.blotName!=null&&s instanceof r)&&n.push(s),s instanceof xi&&(n=n.concat(s.descendants(r,l,a))),a-=d}),n}detach(){this.children.forEach(r=>{r.detach()}),super.detach()}enforceAllowedChildren(){let r=!1;this.children.forEach(t=>{r||this.statics.allowedChildren.some(o=>t instanceof o)||(t.statics.scope===X.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),r=!0):t instanceof xi?t.unwrap():t.remove())})}formatAt(r,t,o,n){this.children.forEachAt(r,t,(a,s,l)=>{a.formatAt(s,l,o,n)})}insertAt(r,t,o){let[n,a]=this.children.find(r);if(n)n.insertAt(a,t,o);else{let s=o==null?this.scroll.create("text",t):this.scroll.create(t,o);this.appendChild(s)}}insertBefore(r,t){r.parent!=null&&r.parent.children.remove(r);let o=null;this.children.insertBefore(r,t||null),r.parent=this,t!=null&&(o=t.domNode),(this.domNode.parentNode!==r.domNode||this.domNode.nextSibling!==o)&&this.domNode.insertBefore(r.domNode,o),r.attach()}length(){return this.children.reduce((r,t)=>r+t.length(),0)}moveChildren(r,t){this.children.forEach(o=>{r.insertBefore(o,t)})}optimize(r){if(super.optimize(r),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(r,t=!1){let[o,n]=this.children.find(r,t),a=[[this,r]];return o instanceof xi?a.concat(o.path(n,t)):(o!=null&&a.push([o,n]),a)}removeChild(r){this.children.remove(r)}replaceWith(r,t){let o=typeof r=="string"?this.scroll.create(r,t):r;return o instanceof xi&&this.moveChildren(o),super.replaceWith(o)}split(r,t=!1){if(!t){if(r===0)return this;if(r===this.length())return this.next}let o=this.clone();return this.parent&&this.parent.insertBefore(o,this.next||void 0),this.children.forEachAt(r,this.length(),(n,a,s)=>{let l=n.split(a,t);l!=null&&o.appendChild(l)}),o}splitAfter(r){let t=this.clone();for(;r.next!=null;)t.appendChild(r.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(r,t){let o=[],n=[];r.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(o.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()}),o.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=yy(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Cy.uiClass="";var dE=Cy,Fr=dE;function pE(i,r){if(Object.keys(i).length!==Object.keys(r).length)return!1;for(let t in i)if(i[t]!==r[t])return!1;return!0}var ds=class ps extends Fr{static create(r){return super.create(r)}static formats(r,t){let o=t.query(ps.blotName);if(!(o!=null&&r.tagName===o.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return r.tagName.toLowerCase()}}constructor(r,t){super(r,t),this.attributes=new wl(this.domNode)}format(r,t){if(r===this.statics.blotName&&!t)this.children.forEach(o=>{o instanceof ps||(o=o.wrap(ps.blotName,!0)),this.attributes.copy(o)}),this.unwrap();else{let o=this.scroll.query(r,X.INLINE);if(o==null)return;o instanceof Cr?this.attributes.attribute(o,t):t&&(r!==this.statics.blotName||this.formats()[r]!==t)&&this.replaceWith(r,t)}}formats(){let r=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(r[this.statics.blotName]=t),r}formatAt(r,t,o,n){this.formats()[o]!=null||this.scroll.query(o,X.ATTRIBUTE)?this.isolate(r,t).format(o,n):super.formatAt(r,t,o,n)}optimize(r){super.optimize(r);let t=this.formats();if(Object.keys(t).length===0)return this.unwrap();let o=this.next;o instanceof ps&&o.prev===this&&pE(t,o.formats())&&(o.moveChildren(this),o.remove())}replaceWith(r,t){let o=super.replaceWith(r,t);return this.attributes.copy(o),o}update(r,t){super.update(r,t),r.some(o=>o.target===this.domNode&&o.type==="attributes")&&this.attributes.build()}wrap(r,t){let o=super.wrap(r,t);return o instanceof ps&&this.attributes.move(o),o}};ds.allowedChildren=[ds,Ae],ds.blotName="inline",ds.scope=X.INLINE_BLOT,ds.tagName="SPAN";var hE=ds,jd=hE,hs=class Ou extends Fr{static create(r){return super.create(r)}static formats(r,t){let o=t.query(Ou.blotName);if(!(o!=null&&r.tagName===o.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return r.tagName.toLowerCase()}}constructor(r,t){super(r,t),this.attributes=new wl(this.domNode)}format(r,t){let o=this.scroll.query(r,X.BLOCK);o!=null&&(o instanceof Cr?this.attributes.attribute(o,t):r===this.statics.blotName&&!t?this.replaceWith(Ou.blotName):t&&(r!==this.statics.blotName||this.formats()[r]!==t)&&this.replaceWith(r,t))}formats(){let r=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(r[this.statics.blotName]=t),r}formatAt(r,t,o,n){this.scroll.query(o,X.BLOCK)!=null?this.format(o,n):super.formatAt(r,t,o,n)}insertAt(r,t,o){if(o==null||this.scroll.query(t,X.INLINE)!=null)super.insertAt(r,t,o);else{let n=this.split(r);if(n!=null){let a=this.scroll.create(t,o);n.parent.insertBefore(a,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(r,t){let o=super.replaceWith(r,t);return this.attributes.copy(o),o}update(r,t){super.update(r,t),r.some(o=>o.target===this.domNode&&o.type==="attributes")&&this.attributes.build()}};hs.blotName="block",hs.scope=X.BLOCK_BLOT,hs.tagName="P",hs.allowedChildren=[jd,hs,Ae];var uE=hs,ha=uE,Pu=class extends Fr{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(r,t){super.deleteAt(r,t),this.enforceAllowedChildren()}formatAt(r,t,o,n){super.formatAt(r,t,o,n),this.enforceAllowedChildren()}insertAt(r,t,o){super.insertAt(r,t,o),this.enforceAllowedChildren()}optimize(r){super.optimize(r),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Pu.blotName="container",Pu.scope=X.BLOCK_BLOT;var mE=Pu,ms=mE,Hu=class extends Ae{static formats(r,t){}format(r,t){super.formatAt(0,this.length(),r,t)}formatAt(r,t,o,n){r===0&&t===this.length()?this.format(o,n):super.formatAt(r,t,o,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},se=Hu,fE={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},gE=100,us=class extends Fr{constructor(r,t){super(null,t),this.registry=r,this.scroll=this,this.build(),this.observer=new MutationObserver(o=>{this.update(o)}),this.observer.observe(this.domNode,fE),this.attach()}create(r,t){return this.registry.create(this,r,t)}find(r,t=!1){let o=this.registry.find(r,t);return o?o.scroll===this?o:t?this.find(o.scroll.domNode.parentNode,!0):null:null}query(r,t=X.ANY){return this.registry.query(r,t)}register(...r){return this.registry.register(...r)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(r,t){this.update(),r===0&&t===this.length()?this.children.forEach(o=>{o.remove()}):super.deleteAt(r,t)}formatAt(r,t,o,n){this.update(),super.formatAt(r,t,o,n)}insertAt(r,t,o){this.update(),super.insertAt(r,t,o)}optimize(r=[],t={}){super.optimize(t);let o=t.mutationsMap||new WeakMap,n=Array.from(this.observer.takeRecords());for(;n.length>0;)r.push(n.pop());let a=(d,h=!0)=>{d==null||d===this||d.domNode.parentNode!=null&&(o.has(d.domNode)||o.set(d.domNode,[]),h&&a(d.parent))},s=d=>{o.has(d.domNode)&&(d instanceof Fr&&d.children.forEach(s),o.delete(d.domNode),d.optimize(t))},l=r;for(let d=0;l.length>0;d+=1){if(d>=gE)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 Fr&&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;)r.push(n.pop())}}update(r,t={}){r=r||this.observer.takeRecords();let o=new WeakMap;r.map(n=>{let a=this.find(n.target,!0);return a==null?null:o.has(a.domNode)?(o.get(a.domNode).push(n),null):(o.set(a.domNode,[n]),a)}).forEach(n=>{n!=null&&n!==this&&o.has(n.domNode)&&n.update(o.get(n.domNode)||[],t)}),t.mutationsMap=o,o.has(this.domNode)&&super.update(o.get(this.domNode),t),this.optimize(r,t)}};us.blotName="scroll",us.defaultChild=ha,us.allowedChildren=[ha,ms],us.scope=X.BLOCK_BLOT,us.tagName="DIV";var bE=us,_l=bE,Fu=class Sy extends Ae{static create(r){return document.createTextNode(r)}static value(r){return r.data}constructor(r,t){super(r,t),this.text=this.statics.value(this.domNode)}deleteAt(r,t){this.domNode.data=this.text=this.text.slice(0,r)+this.text.slice(r+t)}index(r,t){return this.domNode===r?t:-1}insertAt(r,t,o){o==null?(this.text=this.text.slice(0,r)+t+this.text.slice(r),this.domNode.data=this.text):super.insertAt(r,t,o)}length(){return this.text.length}optimize(r){super.optimize(r),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Sy&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(r,t=!1){return[this.domNode,r]}split(r,t=!1){if(!t){if(r===0)return this;if(r===this.length())return this.next}let o=this.scroll.create(this.domNode.splitText(r));return this.parent.insertBefore(o,this.next||void 0),this.text=this.statics.value(this.domNode),o}update(r,t){r.some(o=>o.type==="characterData"&&o.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Fu.blotName="text",Fu.scope=X.INLINE_BLOT;var vE=Fu,fs=vE;var _i=ar(Or(),1);var le=ar(Or(),1);var Vu=ar(Or(),1);var Cl=class extends se{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};Cl.blotName="break";Cl.tagName="BR";var hr=Cl;var ze=class extends fs{},xE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ua(i){return i.replace(/[&<>"']/g,r=>xE[r])}var gn=class gn extends jd{static compare(r,t){let o=gn.order.indexOf(r),n=gn.order.indexOf(t);return o>=0||n>=0?o-n:r===t?0:r<t?-1:1}formatAt(r,t,o,n){if(gn.compare(this.statics.blotName,o)<0&&this.scroll.query(o,X.BLOT)){let a=this.isolate(r,t);n&&a.wrap(o,n)}else super.formatAt(r,t,o,n)}optimize(r){if(super.optimize(r),this.parent instanceof gn&&gn.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(gn,"allowedChildren",[gn,hr,se,ze]),V(gn,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var Bu=gn,ur=Bu;var Ey=1,Ot=class extends ha{constructor(){super(...arguments);V(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Uu(this)),this.cache.delta}deleteAt(t,o){super.deleteAt(t,o),this.cache={}}formatAt(t,o,n,a){o<=0||(this.scroll.query(n,X.BLOCK)?t+o===this.length()&&this.format(n,a):super.formatAt(t,Math.min(o,this.length()-t-1),n,a),this.cache={})}insertAt(t,o,n){if(n!=null){super.insertAt(t,o,n),this.cache={};return}if(o.length===0)return;let a=o.split(`
2502
+ `}};Ln.styles=A(qv),c([p({type:Boolean,reflect:!0})],Ln.prototype,"open",2),c([p({type:String})],Ln.prototype,"query",2),c([p({type:Array})],Ln.prototype,"results",2),c([H()],Ln.prototype,"_activeIndex",2);Ln.define("zn-context-menu");var Az=ar(Or(),1);var P8=typeof global=="object"&&global&&global.Object===Object&&global,yd=P8;var H8=typeof self=="object"&&self&&self.Object===Object&&self,F8=yd||H8||Function("return this")(),Ee=F8;var B8=Ee.Symbol,go=B8;var m1=Object.prototype,V8=m1.hasOwnProperty,U8=m1.toString,gl=go?go.toStringTag:void 0;function j8(i){var r=V8.call(i,gl),t=i[gl];try{i[gl]=void 0;var o=!0}catch{}var n=U8.call(i);return o&&(r?i[gl]=t:delete i[gl]),n}var f1=j8;var G8=Object.prototype,W8=G8.toString;function K8(i){return W8.call(i)}var g1=K8;var Y8="[object Null]",X8="[object Undefined]",b1=go?go.toStringTag:void 0;function Q8(i){return i==null?i===void 0?X8:Y8:b1&&b1 in Object(i)?f1(i):g1(i)}var Uo=Q8;function J8(i){return i!=null&&typeof i=="object"}var rr=J8;var Z8=Array.isArray,bo=Z8;function t9(i){var r=typeof i;return i!=null&&(r=="object"||r=="function")}var pr=t9;function e9(i){return i}var zd=e9;var r9="[object AsyncFunction]",o9="[object Function]",n9="[object GeneratorFunction]",i9="[object Proxy]";function a9(i){if(!pr(i))return!1;var r=Uo(i);return r==o9||r==n9||r==r9||r==i9}var Ya=a9;var s9=Ee["__core-js_shared__"],wd=s9;var v1=(function(){var i=/[^.]+$/.exec(wd&&wd.keys&&wd.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function l9(i){return!!v1&&v1 in i}var x1=l9;var c9=Function.prototype,d9=c9.toString;function p9(i){if(i!=null){try{return d9.call(i)}catch{}try{return i+""}catch{}}return""}var Hn=p9;var h9=/[\\^$.*+?()[\]{}|]/g,u9=/^\[object .+?Constructor\]$/,m9=Function.prototype,f9=Object.prototype,g9=m9.toString,b9=f9.hasOwnProperty,v9=RegExp("^"+g9.call(b9).replace(h9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function x9(i){if(!pr(i)||x1(i))return!1;var r=Ya(i)?v9:u9;return r.test(Hn(i))}var y1=x9;function y9(i,r){return i?.[r]}var z1=y9;function z9(i,r){var t=z1(i,r);return y1(t)?t:void 0}var Pr=z9;var w9=Pr(Ee,"WeakMap"),_d=w9;var w1=Object.create,_9=(function(){function i(){}return function(r){if(!pr(r))return{};if(w1)return w1(r);i.prototype=r;var t=new i;return i.prototype=void 0,t}})(),_1=_9;function k9(i,r,t){switch(t.length){case 0:return i.call(r);case 1:return i.call(r,t[0]);case 2:return i.call(r,t[0],t[1]);case 3:return i.call(r,t[0],t[1],t[2])}return i.apply(r,t)}var k1=k9;function C9(i,r){var t=-1,o=i.length;for(r||(r=Array(o));++t<o;)r[t]=i[t];return r}var kd=C9;var S9=800,E9=16,T9=Date.now;function A9(i){var r=0,t=0;return function(){var o=T9(),n=E9-(o-t);if(t=o,n>0){if(++r>=S9)return arguments[0]}else r=0;return i.apply(void 0,arguments)}}var C1=A9;function $9(i){return function(){return i}}var S1=$9;var q9=(function(){try{var i=Pr(Object,"defineProperty");return i({},"",{}),i}catch{}})(),Xa=q9;var L9=Xa?function(i,r){return Xa(i,"toString",{configurable:!0,enumerable:!1,value:S1(r),writable:!0})}:zd,E1=L9;var M9=C1(E1),T1=M9;function I9(i,r){for(var t=-1,o=i==null?0:i.length;++t<o&&r(i[t],t,i)!==!1;);return i}var A1=I9;var N9=9007199254740991,D9=/^(?:0|[1-9]\d*)$/;function R9(i,r){var t=typeof i;return r=r??N9,!!r&&(t=="number"||t!="symbol"&&D9.test(i))&&i>-1&&i%1==0&&i<r}var Cd=R9;function O9(i,r,t){r=="__proto__"&&Xa?Xa(i,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):i[r]=t}var Qa=O9;function P9(i,r){return i===r||i!==i&&r!==r}var hn=P9;var H9=Object.prototype,F9=H9.hasOwnProperty;function B9(i,r,t){var o=i[r];(!(F9.call(i,r)&&hn(o,t))||t===void 0&&!(r in i))&&Qa(i,r,t)}var Sd=B9;function V9(i,r,t,o){var n=!t;t||(t={});for(var a=-1,s=r.length;++a<s;){var l=r[a],d=o?o(t[l],i[l],l,t,i):void 0;d===void 0&&(d=i[l]),n?Qa(t,l,d):Sd(t,l,d)}return t}var un=V9;var $1=Math.max;function U9(i,r,t){return r=$1(r===void 0?i.length-1:r,0),function(){for(var o=arguments,n=-1,a=$1(o.length-r,0),s=Array(a);++n<a;)s[n]=o[r+n];n=-1;for(var l=Array(r+1);++n<r;)l[n]=o[n];return l[r]=t(s),k1(i,this,l)}}var q1=U9;function j9(i,r){return T1(q1(i,r,zd),i+"")}var L1=j9;var G9=9007199254740991;function W9(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=G9}var Ed=W9;function K9(i){return i!=null&&Ed(i.length)&&!Ya(i)}var ui=K9;function Y9(i,r,t){if(!pr(t))return!1;var o=typeof r;return(o=="number"?ui(t)&&Cd(r,t.length):o=="string"&&r in t)?hn(t[r],i):!1}var M1=Y9;function X9(i){return L1(function(r,t){var o=-1,n=t.length,a=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(a=i.length>3&&typeof a=="function"?(n--,a):void 0,s&&M1(t[0],t[1],s)&&(a=n<3?void 0:a,n=1),r=Object(r);++o<n;){var l=t[o];l&&i(r,l,o,a)}return r})}var I1=X9;var Q9=Object.prototype;function J9(i){var r=i&&i.constructor,t=typeof r=="function"&&r.prototype||Q9;return i===t}var Ja=J9;function Z9(i,r){for(var t=-1,o=Array(i);++t<i;)o[t]=r(t);return o}var N1=Z9;var t6="[object Arguments]";function e6(i){return rr(i)&&Uo(i)==t6}var Tu=e6;var D1=Object.prototype,r6=D1.hasOwnProperty,o6=D1.propertyIsEnumerable,n6=Tu((function(){return arguments})())?Tu:function(i){return rr(i)&&r6.call(i,"callee")&&!o6.call(i,"callee")},bl=n6;function i6(){return!1}var R1=i6;var H1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,O1=H1&&typeof module=="object"&&module&&!module.nodeType&&module,a6=O1&&O1.exports===H1,P1=a6?Ee.Buffer:void 0,s6=P1?P1.isBuffer:void 0,l6=s6||R1,Fn=l6;var c6="[object Arguments]",d6="[object Array]",p6="[object Boolean]",h6="[object Date]",u6="[object Error]",m6="[object Function]",f6="[object Map]",g6="[object Number]",b6="[object Object]",v6="[object RegExp]",x6="[object Set]",y6="[object String]",z6="[object WeakMap]",w6="[object ArrayBuffer]",_6="[object DataView]",k6="[object Float32Array]",C6="[object Float64Array]",S6="[object Int8Array]",E6="[object Int16Array]",T6="[object Int32Array]",A6="[object Uint8Array]",$6="[object Uint8ClampedArray]",q6="[object Uint16Array]",L6="[object Uint32Array]",Yt={};Yt[k6]=Yt[C6]=Yt[S6]=Yt[E6]=Yt[T6]=Yt[A6]=Yt[$6]=Yt[q6]=Yt[L6]=!0;Yt[c6]=Yt[d6]=Yt[w6]=Yt[p6]=Yt[_6]=Yt[h6]=Yt[u6]=Yt[m6]=Yt[f6]=Yt[g6]=Yt[b6]=Yt[v6]=Yt[x6]=Yt[y6]=Yt[z6]=!1;function M6(i){return rr(i)&&Ed(i.length)&&!!Yt[Uo(i)]}var F1=M6;function I6(i){return function(r){return i(r)}}var Za=I6;var B1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vl=B1&&typeof module=="object"&&module&&!module.nodeType&&module,N6=vl&&vl.exports===B1,Au=N6&&yd.process,D6=(function(){try{var i=vl&&vl.require&&vl.require("util").types;return i||Au&&Au.binding&&Au.binding("util")}catch{}})(),Bn=D6;var V1=Bn&&Bn.isTypedArray,R6=V1?Za(V1):F1,ts=R6;var O6=Object.prototype,P6=O6.hasOwnProperty;function H6(i,r){var t=bo(i),o=!t&&bl(i),n=!t&&!o&&Fn(i),a=!t&&!o&&!n&&ts(i),s=t||o||n||a,l=s?N1(i.length,String):[],d=l.length;for(var h in i)(r||P6.call(i,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Cd(h,d)))&&l.push(h);return l}var Td=H6;function F6(i,r){return function(t){return i(r(t))}}var Ad=F6;var B6=Ad(Object.keys,Object),U1=B6;var V6=Object.prototype,U6=V6.hasOwnProperty;function j6(i){if(!Ja(i))return U1(i);var r=[];for(var t in Object(i))U6.call(i,t)&&t!="constructor"&&r.push(t);return r}var j1=j6;function G6(i){return ui(i)?Td(i):j1(i)}var es=G6;function W6(i){var r=[];if(i!=null)for(var t in Object(i))r.push(t);return r}var G1=W6;var K6=Object.prototype,Y6=K6.hasOwnProperty;function X6(i){if(!pr(i))return G1(i);var r=Ja(i),t=[];for(var o in i)o=="constructor"&&(r||!Y6.call(i,o))||t.push(o);return t}var W1=X6;function Q6(i){return ui(i)?Td(i,!0):W1(i)}var mn=Q6;var J6=Pr(Object,"create"),Vn=J6;function Z6(){this.__data__=Vn?Vn(null):{},this.size=0}var K1=Z6;function t7(i){var r=this.has(i)&&delete this.__data__[i];return this.size-=r?1:0,r}var Y1=t7;var e7="__lodash_hash_undefined__",r7=Object.prototype,o7=r7.hasOwnProperty;function n7(i){var r=this.__data__;if(Vn){var t=r[i];return t===e7?void 0:t}return o7.call(r,i)?r[i]:void 0}var X1=n7;var i7=Object.prototype,a7=i7.hasOwnProperty;function s7(i){var r=this.__data__;return Vn?r[i]!==void 0:a7.call(r,i)}var Q1=s7;var l7="__lodash_hash_undefined__";function c7(i,r){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=Vn&&r===void 0?l7:r,this}var J1=c7;function rs(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}rs.prototype.clear=K1;rs.prototype.delete=Y1;rs.prototype.get=X1;rs.prototype.has=Q1;rs.prototype.set=J1;var $u=rs;function d7(){this.__data__=[],this.size=0}var Z1=d7;function p7(i,r){for(var t=i.length;t--;)if(hn(i[t][0],r))return t;return-1}var mi=p7;var h7=Array.prototype,u7=h7.splice;function m7(i){var r=this.__data__,t=mi(r,i);if(t<0)return!1;var o=r.length-1;return t==o?r.pop():u7.call(r,t,1),--this.size,!0}var tx=m7;function f7(i){var r=this.__data__,t=mi(r,i);return t<0?void 0:r[t][1]}var ex=f7;function g7(i){return mi(this.__data__,i)>-1}var rx=g7;function b7(i,r){var t=this.__data__,o=mi(t,i);return o<0?(++this.size,t.push([i,r])):t[o][1]=r,this}var ox=b7;function os(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}os.prototype.clear=Z1;os.prototype.delete=tx;os.prototype.get=ex;os.prototype.has=rx;os.prototype.set=ox;var fi=os;var v7=Pr(Ee,"Map"),gi=v7;function x7(){this.size=0,this.__data__={hash:new $u,map:new(gi||fi),string:new $u}}var nx=x7;function y7(i){var r=typeof i;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?i!=="__proto__":i===null}var ix=y7;function z7(i,r){var t=i.__data__;return ix(r)?t[typeof r=="string"?"string":"hash"]:t.map}var bi=z7;function w7(i){var r=bi(this,i).delete(i);return this.size-=r?1:0,r}var ax=w7;function _7(i){return bi(this,i).get(i)}var sx=_7;function k7(i){return bi(this,i).has(i)}var lx=k7;function C7(i,r){var t=bi(this,i),o=t.size;return t.set(i,r),this.size+=t.size==o?0:1,this}var cx=C7;function ns(i){var r=-1,t=i==null?0:i.length;for(this.clear();++r<t;){var o=i[r];this.set(o[0],o[1])}}ns.prototype.clear=nx;ns.prototype.delete=ax;ns.prototype.get=sx;ns.prototype.has=lx;ns.prototype.set=cx;var $d=ns;function S7(i,r){for(var t=-1,o=r.length,n=i.length;++t<o;)i[n+t]=r[t];return i}var qd=S7;var E7=Ad(Object.getPrototypeOf,Object),is=E7;var T7="[object Object]",A7=Function.prototype,$7=Object.prototype,dx=A7.toString,q7=$7.hasOwnProperty,L7=dx.call(Object);function M7(i){if(!rr(i)||Uo(i)!=T7)return!1;var r=is(i);if(r===null)return!0;var t=q7.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&dx.call(t)==L7}var px=M7;function I7(){this.__data__=new fi,this.size=0}var hx=I7;function N7(i){var r=this.__data__,t=r.delete(i);return this.size=r.size,t}var ux=N7;function D7(i){return this.__data__.get(i)}var mx=D7;function R7(i){return this.__data__.has(i)}var fx=R7;var O7=200;function P7(i,r){var t=this.__data__;if(t instanceof fi){var o=t.__data__;if(!gi||o.length<O7-1)return o.push([i,r]),this.size=++t.size,this;t=this.__data__=new $d(o)}return t.set(i,r),this.size=t.size,this}var gx=P7;function as(i){var r=this.__data__=new fi(i);this.size=r.size}as.prototype.clear=hx;as.prototype.delete=ux;as.prototype.get=mx;as.prototype.has=fx;as.prototype.set=gx;var vi=as;function H7(i,r){return i&&un(r,es(r),i)}var bx=H7;function F7(i,r){return i&&un(r,mn(r),i)}var vx=F7;var wx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xx=wx&&typeof module=="object"&&module&&!module.nodeType&&module,B7=xx&&xx.exports===wx,yx=B7?Ee.Buffer:void 0,zx=yx?yx.allocUnsafe:void 0;function V7(i,r){if(r)return i.slice();var t=i.length,o=zx?zx(t):new i.constructor(t);return i.copy(o),o}var Ld=V7;function U7(i,r){for(var t=-1,o=i==null?0:i.length,n=0,a=[];++t<o;){var s=i[t];r(s,t,i)&&(a[n++]=s)}return a}var _x=U7;function j7(){return[]}var Md=j7;var G7=Object.prototype,W7=G7.propertyIsEnumerable,kx=Object.getOwnPropertySymbols,K7=kx?function(i){return i==null?[]:(i=Object(i),_x(kx(i),function(r){return W7.call(i,r)}))}:Md,ss=K7;function Y7(i,r){return un(i,ss(i),r)}var Cx=Y7;var X7=Object.getOwnPropertySymbols,Q7=X7?function(i){for(var r=[];i;)qd(r,ss(i)),i=is(i);return r}:Md,Id=Q7;function J7(i,r){return un(i,Id(i),r)}var Sx=J7;function Z7(i,r,t){var o=r(i);return bo(i)?o:qd(o,t(i))}var Nd=Z7;function tC(i){return Nd(i,es,ss)}var xl=tC;function eC(i){return Nd(i,mn,Id)}var Ex=eC;var rC=Pr(Ee,"DataView"),Dd=rC;var oC=Pr(Ee,"Promise"),Rd=oC;var nC=Pr(Ee,"Set"),Od=nC;var Tx="[object Map]",iC="[object Object]",Ax="[object Promise]",$x="[object Set]",qx="[object WeakMap]",Lx="[object DataView]",aC=Hn(Dd),sC=Hn(gi),lC=Hn(Rd),cC=Hn(Od),dC=Hn(_d),da=Uo;(Dd&&da(new Dd(new ArrayBuffer(1)))!=Lx||gi&&da(new gi)!=Tx||Rd&&da(Rd.resolve())!=Ax||Od&&da(new Od)!=$x||_d&&da(new _d)!=qx)&&(da=function(i){var r=Uo(i),t=r==iC?i.constructor:void 0,o=t?Hn(t):"";if(o)switch(o){case aC:return Lx;case sC:return Tx;case lC:return Ax;case cC:return $x;case dC:return qx}return r});var Un=da;var pC=Object.prototype,hC=pC.hasOwnProperty;function uC(i){var r=i.length,t=new i.constructor(r);return r&&typeof i[0]=="string"&&hC.call(i,"index")&&(t.index=i.index,t.input=i.input),t}var Mx=uC;var mC=Ee.Uint8Array,ls=mC;function fC(i){var r=new i.constructor(i.byteLength);return new ls(r).set(new ls(i)),r}var cs=fC;function gC(i,r){var t=r?cs(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)}var Ix=gC;var bC=/\w*$/;function vC(i){var r=new i.constructor(i.source,bC.exec(i));return r.lastIndex=i.lastIndex,r}var Nx=vC;var Dx=go?go.prototype:void 0,Rx=Dx?Dx.valueOf:void 0;function xC(i){return Rx?Object(Rx.call(i)):{}}var Ox=xC;function yC(i,r){var t=r?cs(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}var Pd=yC;var zC="[object Boolean]",wC="[object Date]",_C="[object Map]",kC="[object Number]",CC="[object RegExp]",SC="[object Set]",EC="[object String]",TC="[object Symbol]",AC="[object ArrayBuffer]",$C="[object DataView]",qC="[object Float32Array]",LC="[object Float64Array]",MC="[object Int8Array]",IC="[object Int16Array]",NC="[object Int32Array]",DC="[object Uint8Array]",RC="[object Uint8ClampedArray]",OC="[object Uint16Array]",PC="[object Uint32Array]";function HC(i,r,t){var o=i.constructor;switch(r){case AC:return cs(i);case zC:case wC:return new o(+i);case $C:return Ix(i,t);case qC:case LC:case MC:case IC:case NC:case DC:case RC:case OC:case PC:return Pd(i,t);case _C:return new o;case kC:case EC:return new o(i);case CC:return Nx(i);case SC:return new o;case TC:return Ox(i)}}var Px=HC;function FC(i){return typeof i.constructor=="function"&&!Ja(i)?_1(is(i)):{}}var Hd=FC;var BC="[object Map]";function VC(i){return rr(i)&&Un(i)==BC}var Hx=VC;var Fx=Bn&&Bn.isMap,UC=Fx?Za(Fx):Hx,Bx=UC;var jC="[object Set]";function GC(i){return rr(i)&&Un(i)==jC}var Vx=GC;var Ux=Bn&&Bn.isSet,WC=Ux?Za(Ux):Vx,jx=WC;var KC=1,YC=2,XC=4,Gx="[object Arguments]",QC="[object Array]",JC="[object Boolean]",ZC="[object Date]",tS="[object Error]",Wx="[object Function]",eS="[object GeneratorFunction]",rS="[object Map]",oS="[object Number]",Kx="[object Object]",nS="[object RegExp]",iS="[object Set]",aS="[object String]",sS="[object Symbol]",lS="[object WeakMap]",cS="[object ArrayBuffer]",dS="[object DataView]",pS="[object Float32Array]",hS="[object Float64Array]",uS="[object Int8Array]",mS="[object Int16Array]",fS="[object Int32Array]",gS="[object Uint8Array]",bS="[object Uint8ClampedArray]",vS="[object Uint16Array]",xS="[object Uint32Array]",Ut={};Ut[Gx]=Ut[QC]=Ut[cS]=Ut[dS]=Ut[JC]=Ut[ZC]=Ut[pS]=Ut[hS]=Ut[uS]=Ut[mS]=Ut[fS]=Ut[rS]=Ut[oS]=Ut[Kx]=Ut[nS]=Ut[iS]=Ut[aS]=Ut[sS]=Ut[gS]=Ut[bS]=Ut[vS]=Ut[xS]=!0;Ut[tS]=Ut[Wx]=Ut[lS]=!1;function Fd(i,r,t,o,n,a){var s,l=r&KC,d=r&YC,h=r&XC;if(t&&(s=n?t(i,o,n,a):t(i)),s!==void 0)return s;if(!pr(i))return i;var m=bo(i);if(m){if(s=Mx(i),!l)return kd(i,s)}else{var f=Un(i),b=f==Wx||f==eS;if(Fn(i))return Ld(i,l);if(f==Kx||f==Gx||b&&!n){if(s=d||b?{}:Hd(i),!l)return d?Sx(i,vx(s,i)):Cx(i,bx(s,i))}else{if(!Ut[f])return n?i:{};s=Px(i,f,l)}}a||(a=new vi);var g=a.get(i);if(g)return g;a.set(i,s),jx(i)?i.forEach(function(_){s.add(Fd(_,r,t,_,i,a))}):Bx(i)&&i.forEach(function(_,k){s.set(k,Fd(_,r,t,k,i,a))});var v=h?d?Ex:xl:d?mn:es,x=m?void 0:v(i);return A1(x||i,function(_,k){x&&(k=_,_=i[k]),Sd(s,k,Fd(_,r,t,k,i,a))}),s}var Yx=Fd;var yS=1,zS=4;function wS(i){return Yx(i,yS|zS)}var fn=wS;var _S="__lodash_hash_undefined__";function kS(i){return this.__data__.set(i,_S),this}var Xx=kS;function CS(i){return this.__data__.has(i)}var Qx=CS;function Bd(i){var r=-1,t=i==null?0:i.length;for(this.__data__=new $d;++r<t;)this.add(i[r])}Bd.prototype.add=Bd.prototype.push=Xx;Bd.prototype.has=Qx;var Jx=Bd;function SS(i,r){for(var t=-1,o=i==null?0:i.length;++t<o;)if(r(i[t],t,i))return!0;return!1}var Zx=SS;function ES(i,r){return i.has(r)}var ty=ES;var TS=1,AS=2;function $S(i,r,t,o,n,a){var s=t&TS,l=i.length,d=r.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(i),m=a.get(r);if(h&&m)return h==r&&m==i;var f=-1,b=!0,g=t&AS?new Jx:void 0;for(a.set(i,r),a.set(r,i);++f<l;){var v=i[f],x=r[f];if(o)var _=s?o(x,v,f,r,i,a):o(v,x,f,i,r,a);if(_!==void 0){if(_)continue;b=!1;break}if(g){if(!Zx(r,function(k,O){if(!ty(g,O)&&(v===k||n(v,k,t,o,a)))return g.push(O)})){b=!1;break}}else if(!(v===x||n(v,x,t,o,a))){b=!1;break}}return a.delete(i),a.delete(r),b}var Vd=$S;function qS(i){var r=-1,t=Array(i.size);return i.forEach(function(o,n){t[++r]=[n,o]}),t}var ey=qS;function LS(i){var r=-1,t=Array(i.size);return i.forEach(function(o){t[++r]=o}),t}var ry=LS;var MS=1,IS=2,NS="[object Boolean]",DS="[object Date]",RS="[object Error]",OS="[object Map]",PS="[object Number]",HS="[object RegExp]",FS="[object Set]",BS="[object String]",VS="[object Symbol]",US="[object ArrayBuffer]",jS="[object DataView]",oy=go?go.prototype:void 0,qu=oy?oy.valueOf:void 0;function GS(i,r,t,o,n,a,s){switch(t){case jS:if(i.byteLength!=r.byteLength||i.byteOffset!=r.byteOffset)return!1;i=i.buffer,r=r.buffer;case US:return!(i.byteLength!=r.byteLength||!a(new ls(i),new ls(r)));case NS:case DS:case PS:return hn(+i,+r);case RS:return i.name==r.name&&i.message==r.message;case HS:case BS:return i==r+"";case OS:var l=ey;case FS:var d=o&MS;if(l||(l=ry),i.size!=r.size&&!d)return!1;var h=s.get(i);if(h)return h==r;o|=IS,s.set(i,r);var m=Vd(l(i),l(r),o,n,a,s);return s.delete(i),m;case VS:if(qu)return qu.call(i)==qu.call(r)}return!1}var ny=GS;var WS=1,KS=Object.prototype,YS=KS.hasOwnProperty;function XS(i,r,t,o,n,a){var s=t&WS,l=xl(i),d=l.length,h=xl(r),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in r:YS.call(r,b)))return!1}var g=a.get(i),v=a.get(r);if(g&&v)return g==r&&v==i;var x=!0;a.set(i,r),a.set(r,i);for(var _=s;++f<d;){b=l[f];var k=i[b],O=r[b];if(o)var j=s?o(O,k,b,r,i,a):o(k,O,b,i,r,a);if(!(j===void 0?k===O||n(k,O,t,o,a):j)){x=!1;break}_||(_=b=="constructor")}if(x&&!_){var I=i.constructor,w=r.constructor;I!=w&&"constructor"in i&&"constructor"in r&&!(typeof I=="function"&&I instanceof I&&typeof w=="function"&&w instanceof w)&&(x=!1)}return a.delete(i),a.delete(r),x}var iy=XS;var QS=1,ay="[object Arguments]",sy="[object Array]",Ud="[object Object]",JS=Object.prototype,ly=JS.hasOwnProperty;function ZS(i,r,t,o,n,a){var s=bo(i),l=bo(r),d=s?sy:Un(i),h=l?sy:Un(r);d=d==ay?Ud:d,h=h==ay?Ud:h;var m=d==Ud,f=h==Ud,b=d==h;if(b&&Fn(i)){if(!Fn(r))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new vi),s||ts(i)?Vd(i,r,t,o,n,a):ny(i,r,d,t,o,n,a);if(!(t&QS)){var g=m&&ly.call(i,"__wrapped__"),v=f&&ly.call(r,"__wrapped__");if(g||v){var x=g?i.value():i,_=v?r.value():r;return a||(a=new vi),n(x,_,t,o,a)}}return b?(a||(a=new vi),iy(i,r,t,o,n,a)):!1}var cy=ZS;function dy(i,r,t,o,n){return i===r?!0:i==null||r==null||!rr(i)&&!rr(r)?i!==i&&r!==r:cy(i,r,t,o,dy,n)}var py=dy;function tE(i){return function(r,t,o){for(var n=-1,a=Object(r),s=o(r),l=s.length;l--;){var d=s[i?l:++n];if(t(a[d],d,a)===!1)break}return r}}var hy=tE;var eE=hy(),uy=eE;function rE(i,r,t){(t!==void 0&&!hn(i[r],t)||t===void 0&&!(r in i))&&Qa(i,r,t)}var yl=rE;function oE(i){return rr(i)&&ui(i)}var my=oE;function nE(i,r){if(!(r==="constructor"&&typeof i[r]=="function")&&r!="__proto__")return i[r]}var zl=nE;function iE(i){return un(i,mn(i))}var fy=iE;function aE(i,r,t,o,n,a,s){var l=zl(i,t),d=zl(r,t),h=s.get(d);if(h){yl(i,t,h);return}var m=a?a(l,d,t+"",i,r,s):void 0,f=m===void 0;if(f){var b=bo(d),g=!b&&Fn(d),v=!b&&!g&&ts(d);m=d,b||g||v?bo(l)?m=l:my(l)?m=kd(l):g?(f=!1,m=Ld(d,!0)):v?(f=!1,m=Pd(d,!0)):m=[]:px(d)||bl(d)?(m=l,bl(l)?m=fy(l):(!pr(l)||Ya(l))&&(m=Hd(d))):f=!1}f&&(s.set(d,m),n(m,d,o,a,s),s.delete(d)),yl(i,t,m)}var gy=aE;function by(i,r,t,o,n){i!==r&&uy(r,function(a,s){if(n||(n=new vi),pr(a))gy(i,r,s,t,by,o,n);else{var l=o?o(zl(i,s),a,s+"",i,r,n):void 0;l===void 0&&(l=a),yl(i,s,l)}},mn)}var vy=by;function sE(i,r){return py(i,r)}var pa=sE;var lE=I1(function(i,r,t){vy(i,r,t)}),Hr=lE;var kl={};B2(kl,{Attributor:()=>Cr,AttributorStore:()=>wl,BlockBlot:()=>ha,ClassAttributor:()=>Te,ContainerBlot:()=>ms,EmbedBlot:()=>se,InlineBlot:()=>jd,LeafBlot:()=>Ae,ParentBlot:()=>Fr,Registry:()=>zi,Scope:()=>X,ScrollBlot:()=>_l,StyleAttributor:()=>Br,TextBlot:()=>fs});var X=(i=>(i[i.TYPE=3]="TYPE",i[i.LEVEL=12]="LEVEL",i[i.ATTRIBUTE=13]="ATTRIBUTE",i[i.BLOT=14]="BLOT",i[i.INLINE=7]="INLINE",i[i.BLOCK=11]="BLOCK",i[i.BLOCK_BLOT=10]="BLOCK_BLOT",i[i.INLINE_BLOT=6]="INLINE_BLOT",i[i.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",i[i.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",i[i.ANY=15]="ANY",i))(X||{}),Cr=class{constructor(r,t,o={}){this.attrName=r,this.keyName=t;let n=X.TYPE&X.ATTRIBUTE;this.scope=o.scope!=null?o.scope&X.LEVEL|n:X.ATTRIBUTE,o.whitelist!=null&&(this.whitelist=o.whitelist)}static keys(r){return Array.from(r.attributes).map(t=>t.name)}add(r,t){return this.canAdd(r,t)?(r.setAttribute(this.keyName,t),!0):!1}canAdd(r,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(r){r.removeAttribute(this.keyName)}value(r){let t=r.getAttribute(this.keyName);return this.canAdd(r,t)&&t?t:""}},yi=class extends Error{constructor(r){r="[Parchment] "+r,super(r),this.message=r,this.name=this.constructor.name}},zy=class Mu{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(r,t=!1){if(r==null)return null;if(this.blots.has(r))return this.blots.get(r)||null;if(t){let o=null;try{o=r.parentNode}catch{return null}return this.find(o,t)}return null}create(r,t,o){let n=this.query(t);if(n==null)throw new yi(`Unable to create ${t} blot`);let a=n,s=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:a.create(o),l=new a(r,s,o);return Mu.blots.set(l.domNode,l),l}find(r,t=!1){return Mu.find(r,t)}query(r,t=X.ANY){let o;return typeof r=="string"?o=this.types[r]||this.attributes[r]:r instanceof Text||r.nodeType===Node.TEXT_NODE?o=this.types.text:typeof r=="number"?r&X.LEVEL&X.BLOCK?o=this.types.block:r&X.LEVEL&X.INLINE&&(o=this.types.inline):r instanceof Element&&((r.getAttribute("class")||"").split(/\s+/).some(n=>(o=this.classes[n],!!o)),o=o||this.tags[r.tagName]),o==null?null:"scope"in o&&t&X.LEVEL&o.scope&&t&X.TYPE&o.scope?o:null}register(...r){return r.map(t=>{let o="blotName"in t,n="attrName"in t;if(!o&&!n)throw new yi("Invalid definition");if(o&&t.blotName==="abstract")throw new yi("Cannot register abstract class");let a=o?t.blotName:n?t.attrName:void 0;return this.types[a]=t,n?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):o&&(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})}};zy.blots=new WeakMap;var zi=zy;function xy(i,r){return(i.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${r}-`)===0)}var Iu=class extends Cr{static keys(r){return(r.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(r,t){return this.canAdd(r,t)?(this.remove(r),r.classList.add(`${this.keyName}-${t}`),!0):!1}remove(r){xy(r,this.keyName).forEach(t=>{r.classList.remove(t)}),r.classList.length===0&&r.removeAttribute("class")}value(r){let t=(xy(r,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(r,t)?t:""}},Te=Iu;function Lu(i){let r=i.split("-"),t=r.slice(1).map(o=>o[0].toUpperCase()+o.slice(1)).join("");return r[0]+t}var Nu=class extends Cr{static keys(r){return(r.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(r,t){return this.canAdd(r,t)?(r.style[Lu(this.keyName)]=t,!0):!1}remove(r){r.style[Lu(this.keyName)]="",r.getAttribute("style")||r.removeAttribute("style")}value(r){let t=r.style[Lu(this.keyName)];return this.canAdd(r,t)?t:""}},Br=Nu,Du=class{constructor(r){this.attributes={},this.domNode=r,this.build()}attribute(r,t){t?r.add(this.domNode,t)&&(r.value(this.domNode)!=null?this.attributes[r.attrName]=r:delete this.attributes[r.attrName]):(r.remove(this.domNode),delete this.attributes[r.attrName])}build(){this.attributes={};let r=zi.find(this.domNode);if(r==null)return;let t=Cr.keys(this.domNode),o=Te.keys(this.domNode),n=Br.keys(this.domNode);t.concat(o).concat(n).forEach(a=>{let s=r.scroll.query(a,X.ATTRIBUTE);s instanceof Cr&&(this.attributes[s.attrName]=s)})}copy(r){Object.keys(this.attributes).forEach(t=>{let o=this.attributes[t].value(this.domNode);r.format(t,o)})}move(r){this.copy(r),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((r,t)=>(r[t]=this.attributes[t].value(this.domNode),r),{})}},wl=Du,wy=class{constructor(r,t){this.scroll=r,this.domNode=t,zi.blots.set(t,this),this.prev=null,this.next=null}static create(r){if(this.tagName==null)throw new yi("Blot definition missing tagName");let t,o;return Array.isArray(this.tagName)?(typeof r=="string"?(o=r.toUpperCase(),parseInt(o,10).toString()===o&&(o=parseInt(o,10))):typeof r=="number"&&(o=r),typeof o=="number"?t=document.createElement(this.tagName[o-1]):o&&this.tagName.indexOf(o)>-1?t=document.createElement(o):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 r=this.domNode.cloneNode(!1);return this.scroll.create(r)}detach(){this.parent!=null&&this.parent.removeChild(this),zi.blots.delete(this.domNode)}deleteAt(r,t){this.isolate(r,t).remove()}formatAt(r,t,o,n){let a=this.isolate(r,t);if(this.scroll.query(o,X.BLOT)!=null&&n)a.wrap(o,n);else if(this.scroll.query(o,X.ATTRIBUTE)!=null){let s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(o,n)}}insertAt(r,t,o){let n=o==null?this.scroll.create("text",t):this.scroll.create(t,o),a=this.split(r);this.parent.insertBefore(n,a||void 0)}isolate(r,t){let o=this.split(r);if(o==null)throw new Error("Attempt to isolate at end");return o.split(t),o}length(){return 1}offset(r=this.parent){return this.parent==null||this===r?0:this.parent.children.offset(this)+this.parent.offset(r)}optimize(r){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(r,t){let o=typeof r=="string"?this.scroll.create(r,t):r;return this.parent!=null&&(this.parent.insertBefore(o,this.next||void 0),this.remove()),o}split(r,t){return r===0?this:this.next}update(r,t){}wrap(r,t){let o=typeof r=="string"?this.scroll.create(r,t):r;if(this.parent!=null&&this.parent.insertBefore(o,this.next||void 0),typeof o.appendChild!="function")throw new yi(`Cannot wrap ${r}`);return o.appendChild(this),o}};wy.blotName="abstract";var _y=wy,ky=class extends _y{static value(r){return!0}index(r,t){return this.domNode===r||this.domNode.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(r,t){let o=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return r>0&&(o+=1),[this.parent.domNode,o]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};ky.scope=X.INLINE_BLOT;var cE=ky,Ae=cE,Ru=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...r){if(this.insertBefore(r[0],null),r.length>1){let t=r.slice(1);this.append(...t)}}at(r){let t=this.iterator(),o=t();for(;o&&r>0;)r-=1,o=t();return o}contains(r){let t=this.iterator(),o=t();for(;o;){if(o===r)return!0;o=t()}return!1}indexOf(r){let t=this.iterator(),o=t(),n=0;for(;o;){if(o===r)return n;n+=1,o=t()}return-1}insertBefore(r,t){r!=null&&(this.remove(r),r.next=t,t!=null?(r.prev=t.prev,t.prev!=null&&(t.prev.next=r),t.prev=r,t===this.head&&(this.head=r)):this.tail!=null?(this.tail.next=r,r.prev=this.tail,this.tail=r):(r.prev=null,this.head=this.tail=r),this.length+=1)}offset(r){let t=0,o=this.head;for(;o!=null;){if(o===r)return t;t+=o.length(),o=o.next}return-1}remove(r){this.contains(r)&&(r.prev!=null&&(r.prev.next=r.next),r.next!=null&&(r.next.prev=r.prev),r===this.head&&(this.head=r.next),r===this.tail&&(this.tail=r.prev),this.length-=1)}iterator(r=this.head){return()=>{let t=r;return r!=null&&(r=r.next),t}}find(r,t=!1){let o=this.iterator(),n=o();for(;n;){let a=n.length();if(r<a||t&&r===a&&(n.next==null||n.next.length()!==0))return[n,r];r-=a,n=o()}return[null,0]}forEach(r){let t=this.iterator(),o=t();for(;o;)r(o),o=t()}forEachAt(r,t,o){if(t<=0)return;let[n,a]=this.find(r),s=r-a,l=this.iterator(n),d=l();for(;d&&s<r+t;){let h=d.length();r>s?o(d,r-s,Math.min(t,s+h-r)):o(d,0,Math.min(h,r+t-s)),s+=h,d=l()}}map(r){return this.reduce((t,o)=>(t.push(r(o)),t),[])}reduce(r,t){let o=this.iterator(),n=o();for(;n;)t=r(t,n),n=o();return t}};function yy(i,r){let t=r.find(i);if(t)return t;try{return r.create(i)}catch{let o=r.create(X.INLINE);return Array.from(i.childNodes).forEach(n=>{o.domNode.appendChild(n)}),i.parentNode&&i.parentNode.replaceChild(o.domNode,i),o.attach(),o}}var Cy=class xi extends _y{constructor(r,t){super(r,t),this.uiNode=null,this.build()}appendChild(r){this.insertBefore(r)}attach(){super.attach(),this.children.forEach(r=>{r.attach()})}attachUI(r){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=r,xi.uiClass&&this.uiNode.classList.add(xi.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Ru,Array.from(this.domNode.childNodes).filter(r=>r!==this.uiNode).reverse().forEach(r=>{try{let t=yy(r,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof yi)return;throw t}})}deleteAt(r,t){if(r===0&&t===this.length())return this.remove();this.children.forEachAt(r,t,(o,n,a)=>{o.deleteAt(n,a)})}descendant(r,t=0){let[o,n]=this.children.find(t);return r.blotName==null&&r(o)||r.blotName!=null&&o instanceof r?[o,n]:o instanceof xi?o.descendant(r,n):[null,-1]}descendants(r,t=0,o=Number.MAX_VALUE){let n=[],a=o;return this.children.forEachAt(t,o,(s,l,d)=>{(r.blotName==null&&r(s)||r.blotName!=null&&s instanceof r)&&n.push(s),s instanceof xi&&(n=n.concat(s.descendants(r,l,a))),a-=d}),n}detach(){this.children.forEach(r=>{r.detach()}),super.detach()}enforceAllowedChildren(){let r=!1;this.children.forEach(t=>{r||this.statics.allowedChildren.some(o=>t instanceof o)||(t.statics.scope===X.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),r=!0):t instanceof xi?t.unwrap():t.remove())})}formatAt(r,t,o,n){this.children.forEachAt(r,t,(a,s,l)=>{a.formatAt(s,l,o,n)})}insertAt(r,t,o){let[n,a]=this.children.find(r);if(n)n.insertAt(a,t,o);else{let s=o==null?this.scroll.create("text",t):this.scroll.create(t,o);this.appendChild(s)}}insertBefore(r,t){r.parent!=null&&r.parent.children.remove(r);let o=null;this.children.insertBefore(r,t||null),r.parent=this,t!=null&&(o=t.domNode),(this.domNode.parentNode!==r.domNode||this.domNode.nextSibling!==o)&&this.domNode.insertBefore(r.domNode,o),r.attach()}length(){return this.children.reduce((r,t)=>r+t.length(),0)}moveChildren(r,t){this.children.forEach(o=>{r.insertBefore(o,t)})}optimize(r){if(super.optimize(r),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(r,t=!1){let[o,n]=this.children.find(r,t),a=[[this,r]];return o instanceof xi?a.concat(o.path(n,t)):(o!=null&&a.push([o,n]),a)}removeChild(r){this.children.remove(r)}replaceWith(r,t){let o=typeof r=="string"?this.scroll.create(r,t):r;return o instanceof xi&&this.moveChildren(o),super.replaceWith(o)}split(r,t=!1){if(!t){if(r===0)return this;if(r===this.length())return this.next}let o=this.clone();return this.parent&&this.parent.insertBefore(o,this.next||void 0),this.children.forEachAt(r,this.length(),(n,a,s)=>{let l=n.split(a,t);l!=null&&o.appendChild(l)}),o}splitAfter(r){let t=this.clone();for(;r.next!=null;)t.appendChild(r.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(r,t){let o=[],n=[];r.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(o.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()}),o.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=yy(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Cy.uiClass="";var dE=Cy,Fr=dE;function pE(i,r){if(Object.keys(i).length!==Object.keys(r).length)return!1;for(let t in i)if(i[t]!==r[t])return!1;return!0}var ds=class ps extends Fr{static create(r){return super.create(r)}static formats(r,t){let o=t.query(ps.blotName);if(!(o!=null&&r.tagName===o.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return r.tagName.toLowerCase()}}constructor(r,t){super(r,t),this.attributes=new wl(this.domNode)}format(r,t){if(r===this.statics.blotName&&!t)this.children.forEach(o=>{o instanceof ps||(o=o.wrap(ps.blotName,!0)),this.attributes.copy(o)}),this.unwrap();else{let o=this.scroll.query(r,X.INLINE);if(o==null)return;o instanceof Cr?this.attributes.attribute(o,t):t&&(r!==this.statics.blotName||this.formats()[r]!==t)&&this.replaceWith(r,t)}}formats(){let r=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(r[this.statics.blotName]=t),r}formatAt(r,t,o,n){this.formats()[o]!=null||this.scroll.query(o,X.ATTRIBUTE)?this.isolate(r,t).format(o,n):super.formatAt(r,t,o,n)}optimize(r){super.optimize(r);let t=this.formats();if(Object.keys(t).length===0)return this.unwrap();let o=this.next;o instanceof ps&&o.prev===this&&pE(t,o.formats())&&(o.moveChildren(this),o.remove())}replaceWith(r,t){let o=super.replaceWith(r,t);return this.attributes.copy(o),o}update(r,t){super.update(r,t),r.some(o=>o.target===this.domNode&&o.type==="attributes")&&this.attributes.build()}wrap(r,t){let o=super.wrap(r,t);return o instanceof ps&&this.attributes.move(o),o}};ds.allowedChildren=[ds,Ae],ds.blotName="inline",ds.scope=X.INLINE_BLOT,ds.tagName="SPAN";var hE=ds,jd=hE,hs=class Ou extends Fr{static create(r){return super.create(r)}static formats(r,t){let o=t.query(Ou.blotName);if(!(o!=null&&r.tagName===o.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return r.tagName.toLowerCase()}}constructor(r,t){super(r,t),this.attributes=new wl(this.domNode)}format(r,t){let o=this.scroll.query(r,X.BLOCK);o!=null&&(o instanceof Cr?this.attributes.attribute(o,t):r===this.statics.blotName&&!t?this.replaceWith(Ou.blotName):t&&(r!==this.statics.blotName||this.formats()[r]!==t)&&this.replaceWith(r,t))}formats(){let r=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(r[this.statics.blotName]=t),r}formatAt(r,t,o,n){this.scroll.query(o,X.BLOCK)!=null?this.format(o,n):super.formatAt(r,t,o,n)}insertAt(r,t,o){if(o==null||this.scroll.query(t,X.INLINE)!=null)super.insertAt(r,t,o);else{let n=this.split(r);if(n!=null){let a=this.scroll.create(t,o);n.parent.insertBefore(a,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(r,t){let o=super.replaceWith(r,t);return this.attributes.copy(o),o}update(r,t){super.update(r,t),r.some(o=>o.target===this.domNode&&o.type==="attributes")&&this.attributes.build()}};hs.blotName="block",hs.scope=X.BLOCK_BLOT,hs.tagName="P",hs.allowedChildren=[jd,hs,Ae];var uE=hs,ha=uE,Pu=class extends Fr{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(r,t){super.deleteAt(r,t),this.enforceAllowedChildren()}formatAt(r,t,o,n){super.formatAt(r,t,o,n),this.enforceAllowedChildren()}insertAt(r,t,o){super.insertAt(r,t,o),this.enforceAllowedChildren()}optimize(r){super.optimize(r),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Pu.blotName="container",Pu.scope=X.BLOCK_BLOT;var mE=Pu,ms=mE,Hu=class extends Ae{static formats(r,t){}format(r,t){super.formatAt(0,this.length(),r,t)}formatAt(r,t,o,n){r===0&&t===this.length()?this.format(o,n):super.formatAt(r,t,o,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},se=Hu,fE={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},gE=100,us=class extends Fr{constructor(r,t){super(null,t),this.registry=r,this.scroll=this,this.build(),this.observer=new MutationObserver(o=>{this.update(o)}),this.observer.observe(this.domNode,fE),this.attach()}create(r,t){return this.registry.create(this,r,t)}find(r,t=!1){let o=this.registry.find(r,t);return o?o.scroll===this?o:t?this.find(o.scroll.domNode.parentNode,!0):null:null}query(r,t=X.ANY){return this.registry.query(r,t)}register(...r){return this.registry.register(...r)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(r,t){this.update(),r===0&&t===this.length()?this.children.forEach(o=>{o.remove()}):super.deleteAt(r,t)}formatAt(r,t,o,n){this.update(),super.formatAt(r,t,o,n)}insertAt(r,t,o){this.update(),super.insertAt(r,t,o)}optimize(r=[],t={}){super.optimize(t);let o=t.mutationsMap||new WeakMap,n=Array.from(this.observer.takeRecords());for(;n.length>0;)r.push(n.pop());let a=(d,h=!0)=>{d==null||d===this||d.domNode.parentNode!=null&&(o.has(d.domNode)||o.set(d.domNode,[]),h&&a(d.parent))},s=d=>{o.has(d.domNode)&&(d instanceof Fr&&d.children.forEach(s),o.delete(d.domNode),d.optimize(t))},l=r;for(let d=0;l.length>0;d+=1){if(d>=gE)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 Fr&&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;)r.push(n.pop())}}update(r,t={}){r=r||this.observer.takeRecords();let o=new WeakMap;r.map(n=>{let a=this.find(n.target,!0);return a==null?null:o.has(a.domNode)?(o.get(a.domNode).push(n),null):(o.set(a.domNode,[n]),a)}).forEach(n=>{n!=null&&n!==this&&o.has(n.domNode)&&n.update(o.get(n.domNode)||[],t)}),t.mutationsMap=o,o.has(this.domNode)&&super.update(o.get(this.domNode),t),this.optimize(r,t)}};us.blotName="scroll",us.defaultChild=ha,us.allowedChildren=[ha,ms],us.scope=X.BLOCK_BLOT,us.tagName="DIV";var bE=us,_l=bE,Fu=class Sy extends Ae{static create(r){return document.createTextNode(r)}static value(r){return r.data}constructor(r,t){super(r,t),this.text=this.statics.value(this.domNode)}deleteAt(r,t){this.domNode.data=this.text=this.text.slice(0,r)+this.text.slice(r+t)}index(r,t){return this.domNode===r?t:-1}insertAt(r,t,o){o==null?(this.text=this.text.slice(0,r)+t+this.text.slice(r),this.domNode.data=this.text):super.insertAt(r,t,o)}length(){return this.text.length}optimize(r){super.optimize(r),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Sy&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(r,t=!1){return[this.domNode,r]}split(r,t=!1){if(!t){if(r===0)return this;if(r===this.length())return this.next}let o=this.scroll.create(this.domNode.splitText(r));return this.parent.insertBefore(o,this.next||void 0),this.text=this.statics.value(this.domNode),o}update(r,t){r.some(o=>o.type==="characterData"&&o.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Fu.blotName="text",Fu.scope=X.INLINE_BLOT;var vE=Fu,fs=vE;var _i=ar(Or(),1);var le=ar(Or(),1);var Vu=ar(Or(),1);var Cl=class extends se{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};Cl.blotName="break";Cl.tagName="BR";var hr=Cl;var ze=class extends fs{},xE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ua(i){return i.replace(/[&<>"']/g,r=>xE[r])}var gn=class gn extends jd{static compare(r,t){let o=gn.order.indexOf(r),n=gn.order.indexOf(t);return o>=0||n>=0?o-n:r===t?0:r<t?-1:1}formatAt(r,t,o,n){if(gn.compare(this.statics.blotName,o)<0&&this.scroll.query(o,X.BLOT)){let a=this.isolate(r,t);n&&a.wrap(o,n)}else super.formatAt(r,t,o,n)}optimize(r){if(super.optimize(r),this.parent instanceof gn&&gn.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(gn,"allowedChildren",[gn,hr,se,ze]),V(gn,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var Bu=gn,ur=Bu;var Ey=1,Ot=class extends ha{constructor(){super(...arguments);V(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Uu(this)),this.cache.delta}deleteAt(t,o){super.deleteAt(t,o),this.cache={}}formatAt(t,o,n,a){o<=0||(this.scroll.query(n,X.BLOCK)?t+o===this.length()&&this.format(n,a):super.formatAt(t,Math.min(o,this.length()-t-1),n,a),this.cache={})}insertAt(t,o,n){if(n!=null){super.insertAt(t,o,n),this.cache={};return}if(o.length===0)return;let a=o.split(`
2503
2503
  `),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((d,h)=>(l=l.split(d,!0),l.insertAt(0,h),h.length),t+s.length)}insertBefore(t,o){let{head:n}=this.children;super.insertBefore(t,o),n instanceof hr&&n.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+Ey),this.cache.length}moveChildren(t,o){super.moveChildren(t,o),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 o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o&&(t===0||t>=this.length()-Ey)){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,o);return this.cache={},n}};Ot.blotName="block";Ot.tagName="P";Ot.defaultChild=hr;Ot.allowedChildren=[hr,ur,se,ze];var Oe=class extends se{attach(){super.attach(),this.attributes=new wl(this.domNode)}delta(){return new Vu.default().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(r,t){let o=this.scroll.query(r,X.BLOCK_ATTRIBUTE);o!=null&&this.attributes.attribute(o,t)}formatAt(r,t,o,n){this.format(o,n)}insertAt(r,t,o){if(o!=null){super.insertAt(r,t,o);return}let n=t.split(`
2504
2504
  `),a=n.pop(),s=n.map(d=>{let h=this.scroll.create(Ot.blotName);return h.insertAt(0,d),h}),l=this.split(r);s.forEach(d=>{this.parent.insertBefore(d,l)}),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}};Oe.scope=X.BLOCK_BLOT;function Uu(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return i.descendants(Ae).reduce((t,o)=>o.length()===0?t:t.insert(o.value(),Vr(o,{},r)),new Vu.default).insert(`
2505
2505
  `,Vr(i))}function Vr(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return i==null||("formats"in i&&typeof i.formats=="function"&&(r={...r,...i.formats()},t&&delete r["code-token"]),i.parent==null||i.parent.statics.blotName==="scroll"||i.parent.statics.scope!==i.statics.scope)?r:Vr(i.parent,r,t)}var vo=class vo extends se{static value(){}constructor(r,t,o){super(r,t),this.selection=o,this.textNode=document.createTextNode(vo.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(r,t){if(this.savedLength!==0){super.format(r,t);return}let o=this,n=0;for(;o!=null&&o.statics.scope!==X.BLOCK_BLOT;)n+=o.offset(o.parent),o=o.parent;o!=null&&(this.savedLength=vo.CONTENTS.length,o.optimize(),o.formatAt(n,vo.CONTENTS.length,r,t),this.savedLength=0)}index(r,t){return r===this.textNode?0:super.index(r,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 r=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 ze?this.prev:null,o=t?t.length():0,n=this.next instanceof ze?this.next:null,a=n?n.text:"",{textNode:s}=this,l=s.data.split(vo.CONTENTS).join("");s.data=vo.CONTENTS;let d;if(t)d=t,(l||n)&&(t.insertAt(t.length(),l+a),n&&n.remove());else if(n)d=n,n.insertAt(0,l);else{let h=document.createTextNode(l);d=this.scroll.create(h),this.parent.insertBefore(d,this)}if(this.remove(),r){let h=(b,g)=>t&&b===t.domNode?g:b===s?o+g-1:n&&b===n.domNode?o+l.length+g:null,m=h(r.start.node,r.start.offset),f=h(r.end.node,r.end.offset);if(m!==null&&f!==null)return{startNode:d.domNode,startOffset:m,endNode:d.domNode,endOffset:f}}return null}update(r,t){if(r.some(o=>o.type==="characterData"&&o.target===this.textNode)){let o=this.restore();o&&(t.range=o)}}optimize(r){super.optimize(r);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=vo.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};V(vo,"blotName","cursor"),V(vo,"className","ql-cursor"),V(vo,"tagName","span"),V(vo,"CONTENTS","\uFEFF");var ju=vo,wi=ju;var Wu=ar(Ay(),1);var El=new WeakMap;var Ku=["error","warn","log","info"],Yu="warn";function $y(i){if(Yu&&Ku.indexOf(i)<=Ku.indexOf(Yu)){for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];console[i](...t)}}function Xu(i){return Ku.reduce((r,t)=>(r[t]=$y.bind(console,t,i),r),{})}Xu.level=i=>{Yu=i};$y.level=Xu.level;var ro=Xu;var Qu=ro("quill:events"),wE=["selectionchange","mousedown","mouseup","click"];wE.forEach(i=>{document.addEventListener(i,function(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{let a=El.get(n);a&&a.emitter&&a.emitter.handleDOM(...t)})})});var Tl=class extends Wu.default{constructor(){super(),this.domListeners={},this.on("error",Qu.error)}emit(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return Qu.log.call(Qu,...t),super.emit(...t)}handleDOM(r){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];(this.domListeners[r.type]||[]).forEach(a=>{let{node:s,handler:l}=a;(r.target===s||s.contains(r.target))&&l(r,...o)})}listenDOM(r,t,o){this.domListeners[r]||(this.domListeners[r]=[]),this.domListeners[r].push({node:t,handler:o})}};V(Tl,"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(Tl,"sources",{API:"api",SILENT:"silent",USER:"user"});var J=Tl;var Ju=ro("quill:selection"),Er=class{constructor(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=r,this.length=t}},tm=class{constructor(r,t){this.emitter=t,this.scroll=r,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Er(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 o=this.getNativeRange();o!=null&&o.start.node!==this.cursor.textNode&&this.emitter.once(J.events.SCROLL_UPDATE,(n,a)=>{try{this.root.contains(o.start.node)&&this.root.contains(o.end.node)&&this.setNativeRange(o.start.node,o.start.offset,o.end.node,o.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,(o,n)=>{if(n.range){let{startNode:a,startOffset:s,endNode:l,endOffset:d}=n.range;this.setNativeRange(a,s,l,d),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 r=this.cursor.restore();if(!r)return;setTimeout(()=>{this.setNativeRange(r.startNode,r.startOffset,r.endNode,r.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(r,t){this.scroll.update();let o=this.getNativeRange();if(!(o==null||!o.native.collapsed||this.scroll.query(r,X.BLOCK))){if(o.start.node!==this.cursor.textNode){let n=this.scroll.find(o.start.node,!1);if(n==null)return;if(n instanceof Ae){let a=n.split(o.start.offset);n.parent.insertBefore(this.cursor,a)}else n.insertBefore(this.cursor,o.start.node);this.cursor.attach()}this.cursor.format(r,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this.scroll.length();r=Math.min(r,o-1),t=Math.min(r+t,o-1)-r;let n,[a,s]=this.scroll.leaf(r);if(a==null)return null;if(t>0&&s===a.length()){let[m]=this.scroll.leaf(r+1);if(m){let[f]=this.scroll.line(r),[b]=this.scroll.line(r+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(r+t),a==null?null:([n,s]=a.position(s,!0),l.setEnd(n,s),l.getBoundingClientRect());let d="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),d="right"),h=l.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;h=a.domNode.getBoundingClientRect(),s>0&&(d="right")}return{bottom:h.top+h.height,height:h.height,left:h[d],right:h[d],top:h.top,width:0}}getNativeRange(){let r=document.getSelection();if(r==null||r.rangeCount<=0)return null;let t=r.getRangeAt(0);if(t==null)return null;let o=this.normalizeNative(t);return Ju.info("getNativeRange",o),o}getRange(){let r=this.scroll.domNode;if("isConnected"in r&&!r.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&&Zu(this.root,document.activeElement)}normalizedToRange(r){let t=[[r.start.node,r.start.offset]];r.native.collapsed||t.push([r.end.node,r.end.offset]);let o=t.map(s=>{let[l,d]=s,h=this.scroll.find(l,!0),m=h.offset(this.scroll);return d===0?m:h instanceof Ae?m+h.index(l,d):m+h.length()}),n=Math.min(Math.max(...o),this.scroll.length()-1),a=Math.min(n,...o);return new Er(a,n-a)}normalizeNative(r){if(!Zu(this.root,r.startContainer)||!r.collapsed&&!Zu(this.root,r.endContainer))return null;let t={start:{node:r.startContainer,offset:r.startOffset},end:{node:r.endContainer,offset:r.endOffset},native:r};return[t.start,t.end].forEach(o=>{let{node:n,offset:a}=o;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;o.node=n,o.offset=a}),t}rangeToNative(r){let t=this.scroll.length(),o=(n,a)=>{n=Math.min(t-1,n);let[s,l]=this.scroll.leaf(n);return s?s.position(l,a):[null,-1]};return[...o(r.index,!1),...o(r.index+r.length,!0)]}setNativeRange(r,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Ju.info("setNativeRange",r,t,o,n),r!=null&&(this.root.parentNode==null||r.parentNode==null||o.parentNode==null))return;let s=document.getSelection();if(s!=null)if(r!=null){this.hasFocus()||this.root.focus({preventScroll:!0});let{native:l}=this.getNativeRange()||{};if(l==null||a||r!==l.startContainer||t!==l.startOffset||o!==l.endContainer||n!==l.endOffset){r instanceof Element&&r.tagName==="BR"&&(t=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode),o instanceof Element&&o.tagName==="BR"&&(n=Array.from(o.parentNode.childNodes).indexOf(o),o=o.parentNode);let d=document.createRange();d.setStart(r,t),d.setEnd(o,n),s.removeAllRanges(),s.addRange(d)}}else s.removeAllRanges(),this.root.blur()}setRange(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:J.sources.API;if(typeof t=="string"&&(o=t,t=!1),Ju.info("setRange",r),r!=null){let n=this.rangeToNative(r);this.setNativeRange(...n,t)}else this.setNativeRange(null);this.update(o)}update(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J.sources.USER,t=this.lastRange,[o,n]=this.getRange();if(this.lastRange=o,this.lastNative=n,this.lastRange!=null&&(this.savedRange=this.lastRange),!pa(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,fn(this.lastRange),fn(t),r];this.emitter.emit(J.events.EDITOR_CHANGE,...a),r!==J.sources.SILENT&&this.emitter.emit(...a)}}};function Zu(i,r){try{r.parentNode}catch{return!1}return i.contains(r)}var qy=tm;var _E=/^[ -~]*$/,rm=class{constructor(r){this.scroll=r,this.delta=this.getDelta()}applyDelta(r){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();let o=Ly(r),n=new le.default;return CE(o.ops.slice()).reduce((s,l)=>{let d=le.Op.length(l),h=l.attributes||{},m=!1,f=!1;if(l.insert!=null){if(n.retain(d),typeof l.insert=="string"){let v=l.insert;f=!v.endsWith(`
@@ -3008,11 +3008,11 @@ ${ua(this.code(r,t))}
3008
3008
  <slot>${this._getLoadingState()}</slot>
3009
3009
  </div>
3010
3010
  </dialog>
3011
- `}};_o.styles=A(Gz),c([H()],_o.prototype,"hasFocus",2),c([H()],_o.prototype,"hasContentHeader",2),c([F("dialog")],_o.prototype,"dialogEl",2),c([p({type:Boolean,reflect:!0})],_o.prototype,"open",2),c([p()],_o.prototype,"uri",2),c([K("open",{waitUntilFirstUpdate:!0})],_o.prototype,"handleOpenChange",1);_o.define("zn-editor-dialog");var Wz=T`@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}:host *,:host *::before,:host *::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)}.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{height:100%}:host{--zn-toggle-margin:8px 0;display:block}.switch__wrapper{display:flex;flex-direction:column}.switch__wrapper label{flex:1;display:flex;flex-direction:column;align-items:flex-start;cursor:pointer}.switch__input-wrapper{box-sizing:border-box;text-align:left;position:relative;display:inline-flex;width:42px;height:24px;flex-shrink:0;cursor:pointer;border-radius:12px;align-items:center;background-color:rgb(var(--zn-color-tab));border:0.92px solid rgb(var(--zn-color-tab));margin:var(--zn-toggle-margin);transition:color 0.2s ease-in-out,background-color 0.4s ease-in-out,border-color 0.2s ease-in-out}:host(:focus) .switch__input-wrapper{outline:rgb(var(--zn-primary)) solid 1px}:host([checked]) .switch__input-wrapper{background-color:rgb(var(--zn-color-primary));border-color:rgb(var(--zn-color-primary))}:host([checked]) .switch__input-wrapper .switch__control{left:calc(100% - 20.32px - 0.92px)}.switch{height:100%;width:100%;padding:0;margin:0;cursor:pointer}.switch-label{margin:0;color:var(--zn-input-label-color);font-size:var(--zn-input-label-font-size-medium);font-weight:var(--zn-input-label-font-weight);line-height:var(--zn-input-label-line-height)}.switch__wrapper--small .switch-label{font-size:var(--zn-input-label-font-size-small)}.switch__wrapper--large .switch-label{font-size:var(--zn-input-label-font-size-large)}.switch__control{pointer-events:none;position:absolute;top:50%;left:0.92px;width:20.32px;height:20.32px;border-radius:50%;background:#fff;box-shadow:0 2px 4px 0 rgba(var(--zn-color-text),0.1);transform:translateY(-50%);transition:left 0.3s ease-in-out,background-color 0.4s ease-in-out;outline:none}.switch__input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.switch__wrapper--small .switch__input-wrapper{height:20px;width:35px}.switch__wrapper--small .switch__control{width:14px;height:14px}:host([checked]) .switch__wrapper--small .switch__input-wrapper .switch__control{left:calc(100% - 14px - 0.92px)}.switch__wrapper--label-left label,.switch__wrapper--label-right label{align-items:center;justify-content:space-between;gap:8px}.switch__wrapper--label-left label{flex-direction:row}.switch__wrapper--label-right label{flex-direction:row-reverse}:host([inline]){display:inline-block}.switch__wrapper--inline label{flex:none;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}.switch__wrapper--inline label .switch__input{margin-inline:1px;margin-inline-end:1px}.switch__wrapper--inline.switch__wrapper--label-right label{flex-direction:row-reverse}`;var Ut=class extends S{constructor(){super(...arguments);this.hasSlotController=new Q(this,"help-text");this.formControlController=new ot(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,o)=>t.checked=o});this.hasFocus=!1;this.title="";this.name="";this.fallbackValue="";this.size="medium";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.helpText="";this.triggerSubmit=!1;this.onText="";this.offText="";this.label="";this.labelPosition="top";this.inline=!1}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(t){this.formControlController.updateValidity(),super.firstUpdated(t)}handleBlur(){this.hasFocus=!1}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleClick(){this.checked=!this.checked,this.triggerSubmit&&this.formControlController.submit()}handleFocus(){this.hasFocus=!0}handleKeyDown(t){t.key==="ArrowLeft"&&(t.preventDefault(),this.checked=!1),t.key==="ArrowRight"&&(t.preventDefault(),this.checked=!0)}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=u``;this.fallbackValue!==""&&(t=u`
3011
+ `}};_o.styles=A(Gz),c([H()],_o.prototype,"hasFocus",2),c([H()],_o.prototype,"hasContentHeader",2),c([F("dialog")],_o.prototype,"dialogEl",2),c([p({type:Boolean,reflect:!0})],_o.prototype,"open",2),c([p()],_o.prototype,"uri",2),c([K("open",{waitUntilFirstUpdate:!0})],_o.prototype,"handleOpenChange",1);_o.define("zn-editor-dialog");var Wz=T`@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}:host *,:host *::before,:host *::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)}.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{height:100%}:host{--zn-toggle-margin:8px 0;display:block}.switch__wrapper{display:flex;flex-direction:column}.switch__wrapper label{flex:1;display:flex;flex-direction:column;align-items:flex-start;cursor:pointer}.switch__input-wrapper{box-sizing:border-box;text-align:left;position:relative;display:inline-flex;width:42px;height:24px;flex-shrink:0;cursor:pointer;border-radius:12px;align-items:center;background-color:rgb(var(--zn-color-tab));border:0.92px solid rgb(var(--zn-color-tab));margin:var(--zn-toggle-margin);transition:color 0.2s ease-in-out,background-color 0.4s ease-in-out,border-color 0.2s ease-in-out}:host(:focus) .switch__input-wrapper{outline:rgb(var(--zn-primary)) solid 1px}:host([checked]) .switch__input-wrapper{background-color:rgb(var(--zn-color-primary));border-color:rgb(var(--zn-color-primary))}:host([checked]) .switch__input-wrapper .switch__control{left:calc(100% - 20.32px - 0.92px)}.switch{height:100%;width:100%;padding:0;margin:0;cursor:pointer}.switch-label{margin:0;color:var(--zn-input-label-color);font-size:var(--zn-input-label-font-size-medium);font-weight:var(--zn-input-label-font-weight);line-height:var(--zn-input-label-line-height)}.switch__wrapper--small .switch-label{font-size:var(--zn-input-label-font-size-small)}.switch__description{display:none}.switch__wrapper--has-description .switch__description{display:block;color:var(--zn-input-help-text-color);font-size:var(--zn-input-font-size-small)}.switch__wrapper--small .switch__description{font-size:var(--zn-font-size-x-small)}.switch__wrapper--large .switch-label{font-size:var(--zn-input-label-font-size-large)}.switch__control{pointer-events:none;position:absolute;top:50%;left:0.92px;width:20.32px;height:20.32px;border-radius:50%;background:#fff;box-shadow:0 2px 4px 0 rgba(var(--zn-color-text),0.1);transform:translateY(-50%);transition:left 0.3s ease-in-out,background-color 0.4s ease-in-out;outline:none}.switch__input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.switch__wrapper--small .switch__input-wrapper{height:20px;width:35px}.switch__wrapper--small .switch__control{width:14px;height:14px}:host([checked]) .switch__wrapper--small .switch__input-wrapper .switch__control{left:calc(100% - 14px - 0.92px)}.switch__wrapper--label-left label,.switch__wrapper--label-right label{align-items:center;justify-content:space-between;gap:8px}.switch__wrapper--label-left label{flex-direction:row}.switch__wrapper--label-right label{flex-direction:row-reverse}:host([inline]){display:inline-block}.switch__wrapper--inline label{flex:none;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}.switch__wrapper--inline label .switch__input{margin-inline:1px;margin-inline-end:1px}.switch__wrapper--inline.switch__wrapper--label-right label{flex-direction:row-reverse}`;var Pt=class extends S{constructor(){super(...arguments);this.hasSlotController=new Q(this,"help-text","description");this.formControlController=new ot(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,o)=>t.checked=o});this.hasFocus=!1;this.title="";this.name="";this.fallbackValue="";this.size="medium";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.helpText="";this.triggerSubmit=!1;this.onText="";this.offText="";this.label="";this.description="";this.labelPosition="top";this.inline=!1}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(t){this.formControlController.updateValidity(),super.firstUpdated(t)}handleBlur(){this.hasFocus=!1}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleClick(){this.checked=!this.checked,this.triggerSubmit&&this.formControlController.submit()}handleFocus(){this.hasFocus=!0}handleKeyDown(t){t.key==="ArrowLeft"&&(t.preventDefault(),this.checked=!1),t.key==="ArrowRight"&&(t.preventDefault(),this.checked=!0)}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=u``;this.fallbackValue!==""&&(t=u`
3012
3012
  <input type="hidden"
3013
3013
  name=${this.name}
3014
3014
  value=${this.fallbackValue}
3015
- />`);let o=this.checked?this.onText:this.offText,n=!!o,a=this.helpText?!0:this.hasSlotController.test("help-text"),s=u`
3015
+ />`);let o=this.checked?this.onText:this.offText,n=!!o,a=this.helpText?!0:this.hasSlotController.test("help-text"),s=this.description?!0:this.hasSlotController.test("description"),l=u`
3016
3016
  <div class="switch__input-wrapper" part="base">
3017
3017
  ${t}
3018
3018
  <input
@@ -3026,7 +3026,7 @@ ${ua(this.code(r,t))}
3026
3026
  .required=${this.required}
3027
3027
  role="switch"
3028
3028
  aria-checked=${this.checked?"true":"false"}
3029
- aria-describedby="help-text"
3029
+ aria-describedby="description help-text"
3030
3030
  @click=${this.handleClick}
3031
3031
  @input=${this.handleInput}
3032
3032
  @invalid=${this.handleInvalid}
@@ -3036,14 +3036,23 @@ ${ua(this.code(r,t))}
3036
3036
  />
3037
3037
  <span part="control" class="switch__control"></span>
3038
3038
  </div>`;return u`
3039
- <div class="${N({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-help-text":a,switch__wrapper:!0,"switch__wrapper--disabled":this.disabled,"switch__wrapper--has-focus":this.hasFocus,"switch__wrapper--small":this.size==="small","switch__wrapper--medium":this.size==="medium","switch__wrapper--large":this.size==="large","switch__wrapper--inline":this.inline,"switch__wrapper--label-left":this.labelPosition==="left","switch__wrapper--label-right":this.labelPosition==="right"})}">
3039
+ <div class="${N({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-help-text":a,switch__wrapper:!0,"switch__wrapper--has-description":s,"switch__wrapper--disabled":this.disabled,"switch__wrapper--has-focus":this.hasFocus,"switch__wrapper--small":this.size==="small","switch__wrapper--medium":this.size==="medium","switch__wrapper--large":this.size==="large","switch__wrapper--inline":this.inline,"switch__wrapper--label-left":this.labelPosition==="left","switch__wrapper--label-right":this.labelPosition==="right"})}">
3040
3040
  <label>
3041
- ${this.label?u`<p class="switch-label">${this.label}</p>`:""}
3041
+ ${this.label||s?u`
3042
+ <div class="switch__label-wrapper">
3043
+ ${this.label?u`<p class="switch-label">${this.label}</p>`:""}
3044
+ <div part="description"
3045
+ id="description"
3046
+ class="switch__description"
3047
+ aria-hidden=${s?"false":"true"}>
3048
+ <slot name="description">${this.description}</slot>
3049
+ </div>
3050
+ </div>`:""}
3042
3051
  ${n?u`
3043
3052
  <zn-tooltip content="${o}">
3044
- ${s}
3053
+ ${l}
3045
3054
  </zn-tooltip>`:u`
3046
- ${s}`}
3055
+ ${l}`}
3047
3056
  </label>
3048
3057
  <div part="form-control-help-text"
3049
3058
  id="help-text"
@@ -3051,7 +3060,7 @@ ${ua(this.code(r,t))}
3051
3060
  aria-hidden=${a?"false":"true"}>
3052
3061
  <slot name="help-text">${this.helpText}</slot>
3053
3062
  </div>
3054
- </div>`}};Ut.styles=A(Wz),c([F('input[type="checkbox"]')],Ut.prototype,"input",2),c([H()],Ut.prototype,"hasFocus",2),c([p()],Ut.prototype,"title",2),c([p()],Ut.prototype,"name",2),c([p()],Ut.prototype,"value",2),c([p({attribute:"fallback"})],Ut.prototype,"fallbackValue",2),c([p({reflect:!0})],Ut.prototype,"size",2),c([p({type:Boolean,reflect:!0})],Ut.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],Ut.prototype,"checked",2),c([ue("checked")],Ut.prototype,"defaultChecked",2),c([p({reflect:!0})],Ut.prototype,"form",2),c([p({type:Boolean,reflect:!0})],Ut.prototype,"required",2),c([p({attribute:"help-text"})],Ut.prototype,"helpText",2),c([p({type:Boolean,attribute:"trigger-submit"})],Ut.prototype,"triggerSubmit",2),c([p({attribute:"on-text"})],Ut.prototype,"onText",2),c([p({attribute:"off-text"})],Ut.prototype,"offText",2),c([p()],Ut.prototype,"label",2),c([p({attribute:"label-position",reflect:!0})],Ut.prototype,"labelPosition",2),c([p({type:Boolean})],Ut.prototype,"inline",2);var hA=Ut;Ut.define("zn-toggle");var Kz=T`@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}:host *,:host *::before,:host *::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)}.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{height:100%}: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);box-shadow:var(--zn-shadow-x-small);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 zt=class extends S{constructor(){super(...arguments);this.formControlController=new ot(this,{value:t=>t.checked?t.value||"on":t.uncheckedValue||void 0,defaultValue:t=>t.defaultChecked,setValue:(t,o)=>t.checked=o});this.hasSlotController=new Q(this,"description");this.hasFocus=!1;this.title="";this.name="";this.size="medium";this.disabled=!1;this.checked=!1;this.indeterminate=!1;this.contained=!1;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"),o=this.description?!0:t,n=this.hasSlotController.test("label"),a=this.hasSlotController.test("label-tooltip"),s=this.label||n,l=this.checked||this.indeterminate?this.checkedColor||this.color:this.uncheckedColor||this.color;return u`
3063
+ </div>`}};Pt.styles=A(Wz),c([F('input[type="checkbox"]')],Pt.prototype,"input",2),c([H()],Pt.prototype,"hasFocus",2),c([p()],Pt.prototype,"title",2),c([p()],Pt.prototype,"name",2),c([p()],Pt.prototype,"value",2),c([p({attribute:"fallback"})],Pt.prototype,"fallbackValue",2),c([p({reflect:!0})],Pt.prototype,"size",2),c([p({type:Boolean,reflect:!0})],Pt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],Pt.prototype,"checked",2),c([ue("checked")],Pt.prototype,"defaultChecked",2),c([p({reflect:!0})],Pt.prototype,"form",2),c([p({type:Boolean,reflect:!0})],Pt.prototype,"required",2),c([p({attribute:"help-text"})],Pt.prototype,"helpText",2),c([p({type:Boolean,attribute:"trigger-submit"})],Pt.prototype,"triggerSubmit",2),c([p({attribute:"on-text"})],Pt.prototype,"onText",2),c([p({attribute:"off-text"})],Pt.prototype,"offText",2),c([p()],Pt.prototype,"label",2),c([p()],Pt.prototype,"description",2),c([p({attribute:"label-position",reflect:!0})],Pt.prototype,"labelPosition",2),c([p({type:Boolean})],Pt.prototype,"inline",2);var hA=Pt;Pt.define("zn-toggle");var Kz=T`@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}:host *,:host *::before,:host *::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)}.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{height:100%}: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);box-shadow:var(--zn-shadow-x-small);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 zt=class extends S{constructor(){super(...arguments);this.formControlController=new ot(this,{value:t=>t.checked?t.value||"on":t.uncheckedValue||void 0,defaultValue:t=>t.defaultChecked,setValue:(t,o)=>t.checked=o});this.hasSlotController=new Q(this,"description");this.hasFocus=!1;this.title="";this.name="";this.size="medium";this.disabled=!1;this.checked=!1;this.indeterminate=!1;this.contained=!1;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"),o=this.description?!0:t,n=this.hasSlotController.test("label"),a=this.hasSlotController.test("label-tooltip"),s=this.label||n,l=this.checked||this.indeterminate?this.checkedColor||this.color:this.uncheckedColor||this.color;return u`
3055
3064
  <div
3056
3065
  class=${N({"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":s})}>
3057
3066
 
@@ -3648,7 +3657,7 @@ ${ua(this.code(r,t))}
3648
3657
  </div>
3649
3658
  </div>
3650
3659
  </div>
3651
- `}};fe.dependencies={"zn-icon":ct,"zn-tooltip":Mo},fe.styles=A(lw),c([p()],fe.prototype,"caption",2),c([p()],fe.prototype,"description",2),c([p({type:Boolean})],fe.prototype,"stacked",2),c([p({reflect:!0})],fe.prototype,"size",2),c([p({attribute:"edit-on-hover",type:Boolean})],fe.prototype,"editOnHover",2),c([p({attribute:"help-tooltip"})],fe.prototype,"helpTooltip",2),c([p()],fe.prototype,"icon",2),c([p()],fe.prototype,"value",2),c([p({type:Boolean})],fe.prototype,"inline",2),c([p({type:Boolean})],fe.prototype,"grid",2),c([p({type:Boolean,attribute:"no-padding"})],fe.prototype,"noPadding",2),c([p({type:Boolean,attribute:"flush"})],fe.prototype,"flush",2),c([p({type:Boolean,attribute:"align-end"})],fe.prototype,"alignEnd",2),c([p({type:Boolean,attribute:"align-center"})],fe.prototype,"alignCenter",2);var kA=fe;fe.define("zn-item");var dw={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Aland",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthelemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"Bonaire",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar (Burma)",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn Islands",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Eswatini",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"East Timor",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"U.S. Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Vatican City",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VI:"U.S. Virgin Islands",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"},cw={AD:"\u{1F1E6}\u{1F1E9}",AE:"\u{1F1E6}\u{1F1EA}",AF:"\u{1F1E6}\u{1F1EB}",AG:"\u{1F1E6}\u{1F1EC}",AI:"\u{1F1E6}\u{1F1EE}",AL:"\u{1F1E6}\u{1F1F1}",AM:"\u{1F1E6}\u{1F1F2}",AO:"\u{1F1E6}\u{1F1F4}",AQ:"\u{1F1E6}\u{1F1F6}",AR:"\u{1F1E6}\u{1F1F7}",AS:"\u{1F1E6}\u{1F1F8}",AT:"\u{1F1E6}\u{1F1F9}",AU:"\u{1F1E6}\u{1F1FA}",AW:"\u{1F1E6}\u{1F1FC}",AX:"\u{1F1E6}\u{1F1FD}",AZ:"\u{1F1E6}\u{1F1FF}",BA:"\u{1F1E7}\u{1F1E6}",BB:"\u{1F1E7}\u{1F1E7}",BD:"\u{1F1E7}\u{1F1E9}",BE:"\u{1F1E7}\u{1F1EA}",BF:"\u{1F1E7}\u{1F1EB}",BG:"\u{1F1E7}\u{1F1EC}",BH:"\u{1F1E7}\u{1F1ED}",BI:"\u{1F1E7}\u{1F1EE}",BJ:"\u{1F1E7}\u{1F1EF}",BL:"\u{1F1E7}\u{1F1F1}",BM:"\u{1F1E7}\u{1F1F2}",BN:"\u{1F1E7}\u{1F1F3}",BO:"\u{1F1E7}\u{1F1F4}",BQ:"\u{1F1E7}\u{1F1F6}",BR:"\u{1F1E7}\u{1F1F7}",BS:"\u{1F1E7}\u{1F1F8}",BT:"\u{1F1E7}\u{1F1F9}",BV:"\u{1F1E7}\u{1F1FB}",BW:"\u{1F1E7}\u{1F1FC}",BY:"\u{1F1E7}\u{1F1FE}",BZ:"\u{1F1E7}\u{1F1FF}",CA:"\u{1F1E8}\u{1F1E6}",CC:"\u{1F1E8}\u{1F1E8}",CD:"\u{1F1E8}\u{1F1E9}",CF:"\u{1F1E8}\u{1F1EB}",CG:"\u{1F1E8}\u{1F1EC}",CH:"\u{1F1E8}\u{1F1ED}",CI:"\u{1F1E8}\u{1F1EE}",CK:"\u{1F1E8}\u{1F1F0}",CL:"\u{1F1E8}\u{1F1F1}",CM:"\u{1F1E8}\u{1F1F2}",CN:"\u{1F1E8}\u{1F1F3}",CO:"\u{1F1E8}\u{1F1F4}",CR:"\u{1F1E8}\u{1F1F7}",CU:"\u{1F1E8}\u{1F1FA}",CV:"\u{1F1E8}\u{1F1FB}",CW:"\u{1F1E8}\u{1F1FC}",CX:"\u{1F1E8}\u{1F1FD}",CY:"\u{1F1E8}\u{1F1FE}",CZ:"\u{1F1E8}\u{1F1FF}",DE:"\u{1F1E9}\u{1F1EA}",DJ:"\u{1F1E9}\u{1F1EF}",DK:"\u{1F1E9}\u{1F1F0}",DM:"\u{1F1E9}\u{1F1F2}",DO:"\u{1F1E9}\u{1F1F4}",DZ:"\u{1F1E9}\u{1F1FF}",EC:"\u{1F1EA}\u{1F1E8}",EE:"\u{1F1EA}\u{1F1EA}",EG:"\u{1F1EA}\u{1F1EC}",EH:"\u{1F1EA}\u{1F1ED}",ER:"\u{1F1EA}\u{1F1F7}",ES:"\u{1F1EA}\u{1F1F8}",ET:"\u{1F1EA}\u{1F1F9}",FI:"\u{1F1EB}\u{1F1EE}",FJ:"\u{1F1EB}\u{1F1EF}",FK:"\u{1F1EB}\u{1F1F0}",FM:"\u{1F1EB}\u{1F1F2}",FO:"\u{1F1EB}\u{1F1F4}",FR:"\u{1F1EB}\u{1F1F7}",GA:"\u{1F1EC}\u{1F1E6}",GB:"\u{1F1EC}\u{1F1E7}",GD:"\u{1F1EC}\u{1F1E9}",GE:"\u{1F1EC}\u{1F1EA}",GF:"\u{1F1EC}\u{1F1EB}",GG:"\u{1F1EC}\u{1F1EC}",GH:"\u{1F1EC}\u{1F1ED}",GI:"\u{1F1EC}\u{1F1EE}",GL:"\u{1F1EC}\u{1F1F1}",GM:"\u{1F1EC}\u{1F1F2}",GN:"\u{1F1EC}\u{1F1F3}",GP:"\u{1F1EC}\u{1F1F5}",GQ:"\u{1F1EC}\u{1F1F6}",GR:"\u{1F1EC}\u{1F1F7}",GS:"\u{1F1EC}\u{1F1F8}",GT:"\u{1F1EC}\u{1F1F9}",GU:"\u{1F1EC}\u{1F1FA}",GW:"\u{1F1EC}\u{1F1FC}",GY:"\u{1F1EC}\u{1F1FE}",HK:"\u{1F1ED}\u{1F1F0}",HM:"\u{1F1ED}\u{1F1F2}",HN:"\u{1F1ED}\u{1F1F3}",HR:"\u{1F1ED}\u{1F1F7}",HT:"\u{1F1ED}\u{1F1F9}",HU:"\u{1F1ED}\u{1F1FA}",ID:"\u{1F1EE}\u{1F1E9}",IE:"\u{1F1EE}\u{1F1EA}",IL:"\u{1F1EE}\u{1F1F1}",IM:"\u{1F1EE}\u{1F1F2}",IN:"\u{1F1EE}\u{1F1F3}",IO:"\u{1F1EE}\u{1F1F4}",IQ:"\u{1F1EE}\u{1F1F6}",IR:"\u{1F1EE}\u{1F1F7}",IS:"\u{1F1EE}\u{1F1F8}",IT:"\u{1F1EE}\u{1F1F9}",JE:"\u{1F1EF}\u{1F1EA}",JM:"\u{1F1EF}\u{1F1F2}",JO:"\u{1F1EF}\u{1F1F4}",JP:"\u{1F1EF}\u{1F1F5}",KE:"\u{1F1F0}\u{1F1EA}",KG:"\u{1F1F0}\u{1F1EC}",KH:"\u{1F1F0}\u{1F1ED}",KI:"\u{1F1F0}\u{1F1EE}",KM:"\u{1F1F0}\u{1F1F2}",KN:"\u{1F1F0}\u{1F1F3}",KP:"\u{1F1F0}\u{1F1F5}",KR:"\u{1F1F0}\u{1F1F7}",KW:"\u{1F1F0}\u{1F1FC}",KY:"\u{1F1F0}\u{1F1FE}",KZ:"\u{1F1F0}\u{1F1FF}",LA:"\u{1F1F1}\u{1F1E6}",LB:"\u{1F1F1}\u{1F1E7}",LC:"\u{1F1F1}\u{1F1E8}",LI:"\u{1F1F1}\u{1F1EE}",LK:"\u{1F1F1}\u{1F1F0}",LR:"\u{1F1F1}\u{1F1F7}",LS:"\u{1F1F1}\u{1F1F8}",LT:"\u{1F1F1}\u{1F1F9}",LU:"\u{1F1F1}\u{1F1FA}",LV:"\u{1F1F1}\u{1F1FB}",LY:"\u{1F1F1}\u{1F1FE}",MA:"\u{1F1F2}\u{1F1E6}",MC:"\u{1F1F2}\u{1F1E8}",MD:"\u{1F1F2}\u{1F1E9}",ME:"\u{1F1F2}\u{1F1EA}",MF:"\u{1F1F2}\u{1F1EB}",MG:"\u{1F1F2}\u{1F1EC}",MH:"\u{1F1F2}\u{1F1ED}",MK:"\u{1F1F2}\u{1F1F0}",ML:"\u{1F1F2}\u{1F1F1}",MM:"\u{1F1F2}\u{1F1F2}",MN:"\u{1F1F2}\u{1F1F3}",MO:"\u{1F1F2}\u{1F1F4}",MP:"\u{1F1F2}\u{1F1F5}",MQ:"\u{1F1F2}\u{1F1F6}",MR:"\u{1F1F2}\u{1F1F7}",MS:"\u{1F1F2}\u{1F1F8}",MT:"\u{1F1F2}\u{1F1F9}",MU:"\u{1F1F2}\u{1F1FA}",MV:"\u{1F1F2}\u{1F1FB}",MW:"\u{1F1F2}\u{1F1FC}",MX:"\u{1F1F2}\u{1F1FD}",MY:"\u{1F1F2}\u{1F1FE}",MZ:"\u{1F1F2}\u{1F1FF}",NA:"\u{1F1F3}\u{1F1E6}",NC:"\u{1F1F3}\u{1F1E8}",NE:"\u{1F1F3}\u{1F1EA}",NF:"\u{1F1F3}\u{1F1EB}",NG:"\u{1F1F3}\u{1F1EC}",NI:"\u{1F1F3}\u{1F1EE}",NL:"\u{1F1F3}\u{1F1F1}",NO:"\u{1F1F3}\u{1F1F4}",NP:"\u{1F1F3}\u{1F1F5}",NR:"\u{1F1F3}\u{1F1F7}",NU:"\u{1F1F3}\u{1F1FA}",NZ:"\u{1F1F3}\u{1F1FF}",OM:"\u{1F1F4}\u{1F1F2}",PA:"\u{1F1F5}\u{1F1E6}",PE:"\u{1F1F5}\u{1F1EA}",PF:"\u{1F1F5}\u{1F1EB}",PG:"\u{1F1F5}\u{1F1EC}",PH:"\u{1F1F5}\u{1F1ED}",PK:"\u{1F1F5}\u{1F1F0}",PL:"\u{1F1F5}\u{1F1F1}",PM:"\u{1F1F5}\u{1F1F2}",PN:"\u{1F1F5}\u{1F1F3}",PR:"\u{1F1F5}\u{1F1F7}",PS:"\u{1F1F5}\u{1F1F8}",PT:"\u{1F1F5}\u{1F1F9}",PW:"\u{1F1F5}\u{1F1FC}",PY:"\u{1F1F5}\u{1F1FE}",QA:"\u{1F1F6}\u{1F1E6}",RE:"\u{1F1F7}\u{1F1EA}",RO:"\u{1F1F7}\u{1F1F4}",RS:"\u{1F1F7}\u{1F1F8}",RU:"\u{1F1F7}\u{1F1FA}",RW:"\u{1F1F7}\u{1F1FC}",SA:"\u{1F1F8}\u{1F1E6}",SB:"\u{1F1F8}\u{1F1E7}",SC:"\u{1F1F8}\u{1F1E8}",SD:"\u{1F1F8}\u{1F1E9}",SE:"\u{1F1F8}\u{1F1EA}",SG:"\u{1F1F8}\u{1F1EC}",SH:"\u{1F1F8}\u{1F1ED}",SI:"\u{1F1F8}\u{1F1EE}",SJ:"\u{1F1F8}\u{1F1EF}",SK:"\u{1F1F8}\u{1F1F0}",SL:"\u{1F1F8}\u{1F1F1}",SM:"\u{1F1F8}\u{1F1F2}",SN:"\u{1F1F8}\u{1F1F3}",SO:"\u{1F1F8}\u{1F1F4}",SR:"\u{1F1F8}\u{1F1F7}",SS:"\u{1F1F8}\u{1F1F8}",ST:"\u{1F1F8}\u{1F1F9}",SV:"\u{1F1F8}\u{1F1FB}",SX:"\u{1F1F8}\u{1F1FD}",SY:"\u{1F1F8}\u{1F1FE}",SZ:"\u{1F1F8}\u{1F1FF}",TC:"\u{1F1F9}\u{1F1E8}",TD:"\u{1F1F9}\u{1F1E9}",TF:"\u{1F1F9}\u{1F1EB}",TG:"\u{1F1F9}\u{1F1EC}",TH:"\u{1F1F9}\u{1F1ED}",TJ:"\u{1F1F9}\u{1F1EF}",TK:"\u{1F1F9}\u{1F1F0}",TL:"\u{1F1F9}\u{1F1F1}",TM:"\u{1F1F9}\u{1F1F2}",TN:"\u{1F1F9}\u{1F1F3}",TO:"\u{1F1F9}\u{1F1F4}",TR:"\u{1F1F9}\u{1F1F7}",TT:"\u{1F1F9}\u{1F1F9}",TV:"\u{1F1F9}\u{1F1FB}",TW:"\u{1F1F9}\u{1F1FC}",TZ:"\u{1F1F9}\u{1F1FF}",UA:"\u{1F1FA}\u{1F1E6}",UG:"\u{1F1FA}\u{1F1EC}",UM:"\u{1F1FA}\u{1F1F2}",US:"\u{1F1FA}\u{1F1F8}",UY:"\u{1F1FA}\u{1F1FE}",UZ:"\u{1F1FA}\u{1F1FF}",VA:"\u{1F1FB}\u{1F1E6}",VC:"\u{1F1FB}\u{1F1E8}",VE:"\u{1F1FB}\u{1F1EA}",VG:"\u{1F1FB}\u{1F1EC}",VI:"\u{1F1FB}\u{1F1EE}",VN:"\u{1F1FB}\u{1F1F3}",VU:"\u{1F1FB}\u{1F1FA}",WF:"\u{1F1FC}\u{1F1EB}",WS:"\u{1F1FC}\u{1F1F8}",XK:"\u{1F1FD}\u{1F1F0}",YE:"\u{1F1FE}\u{1F1EA}",YT:"\u{1F1FE}\u{1F1F9}",ZA:"\u{1F1FF}\u{1F1E6}",ZM:"\u{1F1FF}\u{1F1F2}",ZW:"\u{1F1FF}\u{1F1FC}"},CA=["US","GB","CA","FR","DE","IT","ES","JP","CN","IN","BR","AU","MX","RU","ZA","KR","NL","SE","NO","FI"],SA=[...Object.keys(dw)].sort((i,r)=>i.localeCompare(r)),EA=[...CA,...SA],TA=Array.from(new Set(EA)),pw={getName:"country",getData:TA.map((i=>({key:i,value:dw[i],prefix:cw[i]?cw[i]:""})))};var uw={ALL:"Albania Lek",AED:"United Arab Emirates Dirham",AFN:"Afghanistan Afghani",ARS:"Argentina Peso",AWG:"Aruba Guilder",AUD:"Australia Dollar",AZN:"Azerbaijan New Manat",BSD:"Bahamas Dollar",BBD:"Barbados Dollar",BDT:"Bangladeshi taka",BYR:"Belarus Ruble",BZD:"Belize Dollar",BMD:"Bermuda Dollar",BOB:"Bolivia Boliviano",BAM:"Bosnia and Herzegovina Convertible Marka",BWP:"Botswana Pula",BGN:"Bulgaria Lev",BRL:"Brazil Real",BND:"Brunei Darussalam Dollar",KHR:"Cambodia Riel",CAD:"Canada Dollar",KYD:"Cayman Islands Dollar",CLP:"Chile Peso",CNY:"China Yuan Renminbi",COP:"Colombia Peso",CRC:"Costa Rica Colon",HRK:"Croatia Kuna",CUP:"Cuba Peso",CZK:"Czech Republic Koruna",DKK:"Denmark Krone",DOP:"Dominican Republic Peso",XCD:"East Caribbean Dollar",EGP:"Egypt Pound",SVC:"El Salvador Colon",EEK:"Estonia Kroon",EUR:"Euro Member Countries",FKP:"Falkland Islands (Malvinas) Pound",FJD:"Fiji Dollar",GHC:"Ghana Cedis",GIP:"Gibraltar Pound",GTQ:"Guatemala Quetzal",GGP:"Guernsey Pound",GYD:"Guyana Dollar",HNL:"Honduras Lempira",HKD:"Hong Kong Dollar",HUF:"Hungary Forint",ISK:"Iceland Krona",INR:"India Rupee",IDR:"Indonesia Rupiah",IRR:"Iran Rial",IMP:"Isle of Man Pound",ILS:"Israel Shekel",JMD:"Jamaica Dollar",JPY:"Japan Yen",JEP:"Jersey Pound",KZT:"Kazakhstan Tenge",KPW:"Korea (North) Won",KRW:"Korea (South) Won",KGS:"Kyrgyzstan Som",LAK:"Laos Kip",LVL:"Latvia Lat",LBP:"Lebanon Pound",LRD:"Liberia Dollar",LTL:"Lithuania Litas",MKD:"Macedonia Denar",MYR:"Malaysia Ringgit",MUR:"Mauritius Rupee",MXN:"Mexico Peso",MNT:"Mongolia Tughrik",MZN:"Mozambique Metical",NAD:"Namibia Dollar",NPR:"Nepal Rupee",ANG:"Netherlands Antilles Guilder",NZD:"New Zealand Dollar",NIO:"Nicaragua Cordoba",NGN:"Nigeria Naira",NOK:"Norway Krone",OMR:"Oman Rial",PKR:"Pakistan Rupee",PAB:"Panama Balboa",PYG:"Paraguay Guarani",PEN:"Peru Nuevo Sol",PHP:"Philippines Peso",PLN:"Poland Zloty",QAR:"Qatar Riyal",RON:"Romania New Leu",RUB:"Russia Ruble",SHP:"Saint Helena Pound",SAR:"Saudi Arabia Riyal",RSD:"Serbia Dinar",SCR:"Seychelles Rupee",SGD:"Singapore Dollar",SBD:"Solomon Islands Dollar",SOS:"Somalia Shilling",ZAR:"South Africa Rand",LKR:"Sri Lanka Rupee",SEK:"Sweden Krona",CHF:"Switzerland Franc",SRD:"Suriname Dollar",SYP:"Syria Pound",TWD:"Taiwan New Dollar",THB:"Thailand Baht",TTD:"Trinidad and Tobago Dollar",TRY:"Turkey Lira",TRL:"Turkey Lira",TVD:"Tuvalu Dollar",UAH:"Ukraine Hryvna",GBP:"Great British Pound",USD:"United States Dollar",UYU:"Uruguay Peso",UZS:"Uzbekistan Som",VEF:"Venezuela Bolivar",VND:"Viet Nam Dong",YER:"Yemen Rial",ZWD:"Zimbabwe Dollar"},hw={AED:"\u062F.\u0625",AFN:"\u060B",ALL:"L",AMD:"\u058F",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20BC",BAM:"KM",BBD:"$",BDT:"\u09F3",BGN:"\u043B\u0432",BHD:".\u062F.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20BF",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xA5",CNY:"\xA5",COP:"$",COU:"COU",CRC:"\u20A1",CUC:"$",CUP:"\u20B1",CVE:"$",CZK:"K\u010D",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062F\u062C",EEK:"kr",EGP:"\xA3",ERN:"Nfk",ETB:"Br",ETH:"\u039E",EUR:"\u20AC",FJD:"$",FKP:"\xA3",GBP:"\xA3",GEL:"\u20BE",GGP:"\xA3",GHC:"\u20B5",GHS:"GH\u20B5",GIP:"\xA3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20AA",IMP:"\xA3",INR:"\u20B9",IQD:"\u0639.\u062F",IRR:"\uFDFC",ISK:"kr",JEP:"\xA3",JMD:"J$",JOD:"JD",JPY:"\xA5",KES:"KSh",KGS:"\u043B\u0432",KHR:"\u17DB",KMF:"CF",KPW:"\u20A9",KRW:"\u20A9",KWD:"KD",KYD:"$",KZT:"\u20B8",LAK:"\u20AD",LBP:"\xA3",LKR:"\u20A8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043D",MMK:"K",MNT:"\u20AE",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20A8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20A6",NIO:"C$",NOK:"kr",NPR:"\u20A8",NZD:"$",OMR:"\uFDFC",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20B1",PKR:"\u20A8",PLN:"z\u0142",PYG:"Gs",QAR:"\uFDFC",RMB:"\uFFE5",RON:"lei",RSD:"\u0414\u0438\u043D.",RUB:"\u20BD",RWF:"R\u20A3",SAR:"SAR",SBD:"$",SCR:"\u20A8",SDG:"\u062C.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xA3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xA3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xA3",SZL:"E",THB:"\u0E3F",TJS:"SM",TMT:"T",TND:"\u062F.\u062A",TOP:"T$",TRL:"\u20A4",TRY:"\u20BA",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20B4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043B\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20AB",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20A3",XSU:"Sucre",XUA:"XUA",YER:"\uFDFC",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"},Fm=["USD","EUR","GBP","CAD","AUD"],AA=[...Object.keys(uw)].sort((i,r)=>i.localeCompare(r)),mw=(i=!1)=>{let r=AA.filter(n=>!Fm.includes(n)),o=[...Fm,...r].map((n=>({key:n,value:n.concat(" - ").concat(uw[n]),prefix:hw[n]?hw[n]:""})));if(i){let n={key:Fm.join(","),value:"Common - USD, EUR, GBP, CAD & AUD",prefix:""};o.unshift(n)}return{getName:"currency",getData:o}};var gw={AF:"93",AL:"355",DZ:"213",AS:"1-684",AD:"376",AO:"244",AI:"1-264",AQ:"672",AG:"1-268",AR:"54",AM:"374",AW:"297",AU:"61",AT:"43",AZ:"994",BS:"1-242",BH:"973",BD:"880",BB:"1-246",BY:"375",BE:"32",BZ:"501",BJ:"229",BM:"1-441",BT:"975",BO:"591",BA:"387",BW:"267",BR:"55",IO:"246",VG:"1-284",BN:"673",BG:"359",BF:"226",BI:"257",KH:"855",CM:"237",CA:"1",CV:"238",KY:"1-345",CF:"236",TD:"235",CL:"56",CN:"86",CX:"61",CC:"61",CO:"57",KM:"269",CK:"682",CR:"506",HR:"385",CU:"53",CW:"599",CY:"357",CZ:"420",CD:"243",DK:"45",DJ:"253",DM:"1-767",DO:"1-809",TL:"670",EC:"593",EG:"20",SV:"503",GQ:"240",ER:"291",EE:"372",ET:"251",FK:"500",FO:"298",FJ:"679",FI:"358",FR:"33",PF:"689",GA:"241",GM:"220",GE:"995",DE:"49",GH:"233",GI:"350",GR:"30",GL:"299",GD:"1-473",GU:"1-671",GT:"502",GG:"44-1481",GN:"224",GW:"245",GY:"592",HT:"509",HN:"504",HK:"852",HU:"36",IS:"354",IN:"91",ID:"62",IR:"98",IQ:"964",IE:"353",IM:"44-1624",IL:"972",IT:"39",CI:"225",JM:"1-876",JP:"81",JE:"44-1534",JO:"962",KZ:"7",KE:"254",KI:"686",XK:"383",KW:"965",KG:"996",LA:"856",LV:"371",LB:"961",LS:"266",LR:"231",LY:"218",LI:"423",LT:"370",LU:"352",MO:"853",MK:"389",MG:"261",MW:"265",MY:"60",MV:"960",ML:"223",MT:"356",MH:"692",MR:"222",MU:"230",YT:"262",MX:"52",FM:"691",MD:"373",MC:"377",MN:"976",ME:"382",MS:"1-664",MA:"212",MZ:"258",MM:"95",NA:"264",NR:"674",NP:"977",NL:"31",AN:"599",NC:"687",NZ:"64",NI:"505",NE:"227",NG:"234",NU:"683",KP:"850",MP:"1-670",NO:"47",OM:"968",PK:"92",PW:"680",PS:"970",PA:"507",PG:"675",PY:"595",PE:"51",PH:"63",PN:"64",PL:"48",PT:"351",PR:"1-787",QA:"974",CG:"242",RE:"262",RO:"40",RU:"7",RW:"250",BL:"590",SH:"290",KN:"1-869",LC:"1-758",MF:"590",PM:"508",VC:"1-784",WS:"685",SM:"378",ST:"239",SA:"966",SN:"221",RS:"381",SC:"248",SL:"232",SG:"65",SX:"1-721",SK:"421",SI:"386",SB:"677",SO:"252",ZA:"27",KR:"82",SS:"211",ES:"34",LK:"94",SD:"249",SR:"597",SJ:"47",SZ:"268",SE:"46",CH:"41",SY:"963",TW:"886",TJ:"992",TZ:"255",TH:"66",TG:"228",TK:"690",TO:"676",TT:"1-868",TN:"216",TR:"90",TM:"993",TC:"1-649",TV:"688",VI:"1-340",UG:"256",UA:"380",AE:"971",GB:"44",US:"1",UY:"598",UZ:"998",VU:"678",VA:"379",VE:"58",VN:"84",WF:"681",EH:"212",YE:"967",ZM:"260",ZW:"263"},fw={AD:"\u{1F1E6}\u{1F1E9}",AE:"\u{1F1E6}\u{1F1EA}",AF:"\u{1F1E6}\u{1F1EB}",AG:"\u{1F1E6}\u{1F1EC}",AI:"\u{1F1E6}\u{1F1EE}",AL:"\u{1F1E6}\u{1F1F1}",AM:"\u{1F1E6}\u{1F1F2}",AO:"\u{1F1E6}\u{1F1F4}",AQ:"\u{1F1E6}\u{1F1F6}",AR:"\u{1F1E6}\u{1F1F7}",AS:"\u{1F1E6}\u{1F1F8}",AT:"\u{1F1E6}\u{1F1F9}",AU:"\u{1F1E6}\u{1F1FA}",AW:"\u{1F1E6}\u{1F1FC}",AX:"\u{1F1E6}\u{1F1FD}",AZ:"\u{1F1E6}\u{1F1FF}",BA:"\u{1F1E7}\u{1F1E6}",BB:"\u{1F1E7}\u{1F1E7}",BD:"\u{1F1E7}\u{1F1E9}",BE:"\u{1F1E7}\u{1F1EA}",BF:"\u{1F1E7}\u{1F1EB}",BG:"\u{1F1E7}\u{1F1EC}",BH:"\u{1F1E7}\u{1F1ED}",BI:"\u{1F1E7}\u{1F1EE}",BJ:"\u{1F1E7}\u{1F1EF}",BL:"\u{1F1E7}\u{1F1F1}",BM:"\u{1F1E7}\u{1F1F2}",BN:"\u{1F1E7}\u{1F1F3}",BO:"\u{1F1E7}\u{1F1F4}",BQ:"\u{1F1E7}\u{1F1F6}",BR:"\u{1F1E7}\u{1F1F7}",BS:"\u{1F1E7}\u{1F1F8}",BT:"\u{1F1E7}\u{1F1F9}",BV:"\u{1F1E7}\u{1F1FB}",BW:"\u{1F1E7}\u{1F1FC}",BY:"\u{1F1E7}\u{1F1FE}",BZ:"\u{1F1E7}\u{1F1FF}",CA:"\u{1F1E8}\u{1F1E6}",CC:"\u{1F1E8}\u{1F1E8}",CD:"\u{1F1E8}\u{1F1E9}",CF:"\u{1F1E8}\u{1F1EB}",CG:"\u{1F1E8}\u{1F1EC}",CH:"\u{1F1E8}\u{1F1ED}",CI:"\u{1F1E8}\u{1F1EE}",CK:"\u{1F1E8}\u{1F1F0}",CL:"\u{1F1E8}\u{1F1F1}",CM:"\u{1F1E8}\u{1F1F2}",CN:"\u{1F1E8}\u{1F1F3}",CO:"\u{1F1E8}\u{1F1F4}",CR:"\u{1F1E8}\u{1F1F7}",CU:"\u{1F1E8}\u{1F1FA}",CV:"\u{1F1E8}\u{1F1FB}",CW:"\u{1F1E8}\u{1F1FC}",CX:"\u{1F1E8}\u{1F1FD}",CY:"\u{1F1E8}\u{1F1FE}",CZ:"\u{1F1E8}\u{1F1FF}",DE:"\u{1F1E9}\u{1F1EA}",DJ:"\u{1F1E9}\u{1F1EF}",DK:"\u{1F1E9}\u{1F1F0}",DM:"\u{1F1E9}\u{1F1F2}",DO:"\u{1F1E9}\u{1F1F4}",DZ:"\u{1F1E9}\u{1F1FF}",EC:"\u{1F1EA}\u{1F1E8}",EE:"\u{1F1EA}\u{1F1EA}",EG:"\u{1F1EA}\u{1F1EC}",EH:"\u{1F1EA}\u{1F1ED}",ER:"\u{1F1EA}\u{1F1F7}",ES:"\u{1F1EA}\u{1F1F8}",ET:"\u{1F1EA}\u{1F1F9}",FI:"\u{1F1EB}\u{1F1EE}",FJ:"\u{1F1EB}\u{1F1EF}",FK:"\u{1F1EB}\u{1F1F0}",FM:"\u{1F1EB}\u{1F1F2}",FO:"\u{1F1EB}\u{1F1F4}",FR:"\u{1F1EB}\u{1F1F7}",GA:"\u{1F1EC}\u{1F1E6}",GB:"\u{1F1EC}\u{1F1E7}",GD:"\u{1F1EC}\u{1F1E9}",GE:"\u{1F1EC}\u{1F1EA}",GF:"\u{1F1EC}\u{1F1EB}",GG:"\u{1F1EC}\u{1F1EC}",GH:"\u{1F1EC}\u{1F1ED}",GI:"\u{1F1EC}\u{1F1EE}",GL:"\u{1F1EC}\u{1F1F1}",GM:"\u{1F1EC}\u{1F1F2}",GN:"\u{1F1EC}\u{1F1F3}",GP:"\u{1F1EC}\u{1F1F5}",GQ:"\u{1F1EC}\u{1F1F6}",GR:"\u{1F1EC}\u{1F1F7}",GS:"\u{1F1EC}\u{1F1F8}",GT:"\u{1F1EC}\u{1F1F9}",GU:"\u{1F1EC}\u{1F1FA}",GW:"\u{1F1EC}\u{1F1FC}",GY:"\u{1F1EC}\u{1F1FE}",HK:"\u{1F1ED}\u{1F1F0}",HM:"\u{1F1ED}\u{1F1F2}",HN:"\u{1F1ED}\u{1F1F3}",HR:"\u{1F1ED}\u{1F1F7}",HT:"\u{1F1ED}\u{1F1F9}",HU:"\u{1F1ED}\u{1F1FA}",ID:"\u{1F1EE}\u{1F1E9}",IE:"\u{1F1EE}\u{1F1EA}",IL:"\u{1F1EE}\u{1F1F1}",IM:"\u{1F1EE}\u{1F1F2}",IN:"\u{1F1EE}\u{1F1F3}",IO:"\u{1F1EE}\u{1F1F4}",IQ:"\u{1F1EE}\u{1F1F6}",IR:"\u{1F1EE}\u{1F1F7}",IS:"\u{1F1EE}\u{1F1F8}",IT:"\u{1F1EE}\u{1F1F9}",JE:"\u{1F1EF}\u{1F1EA}",JM:"\u{1F1EF}\u{1F1F2}",JO:"\u{1F1EF}\u{1F1F4}",JP:"\u{1F1EF}\u{1F1F5}",KE:"\u{1F1F0}\u{1F1EA}",KG:"\u{1F1F0}\u{1F1EC}",KH:"\u{1F1F0}\u{1F1ED}",KI:"\u{1F1F0}\u{1F1EE}",KM:"\u{1F1F0}\u{1F1F2}",KN:"\u{1F1F0}\u{1F1F3}",KP:"\u{1F1F0}\u{1F1F5}",KR:"\u{1F1F0}\u{1F1F7}",KW:"\u{1F1F0}\u{1F1FC}",KY:"\u{1F1F0}\u{1F1FE}",KZ:"\u{1F1F0}\u{1F1FF}",LA:"\u{1F1F1}\u{1F1E6}",LB:"\u{1F1F1}\u{1F1E7}",LC:"\u{1F1F1}\u{1F1E8}",LI:"\u{1F1F1}\u{1F1EE}",LK:"\u{1F1F1}\u{1F1F0}",LR:"\u{1F1F1}\u{1F1F7}",LS:"\u{1F1F1}\u{1F1F8}",LT:"\u{1F1F1}\u{1F1F9}",LU:"\u{1F1F1}\u{1F1FA}",LV:"\u{1F1F1}\u{1F1FB}",LY:"\u{1F1F1}\u{1F1FE}",MA:"\u{1F1F2}\u{1F1E6}",MC:"\u{1F1F2}\u{1F1E8}",MD:"\u{1F1F2}\u{1F1E9}",ME:"\u{1F1F2}\u{1F1EA}",MF:"\u{1F1F2}\u{1F1EB}",MG:"\u{1F1F2}\u{1F1EC}",MH:"\u{1F1F2}\u{1F1ED}",MK:"\u{1F1F2}\u{1F1F0}",ML:"\u{1F1F2}\u{1F1F1}",MM:"\u{1F1F2}\u{1F1F2}",MN:"\u{1F1F2}\u{1F1F3}",MO:"\u{1F1F2}\u{1F1F4}",MP:"\u{1F1F2}\u{1F1F5}",MQ:"\u{1F1F2}\u{1F1F6}",MR:"\u{1F1F2}\u{1F1F7}",MS:"\u{1F1F2}\u{1F1F8}",MT:"\u{1F1F2}\u{1F1F9}",MU:"\u{1F1F2}\u{1F1FA}",MV:"\u{1F1F2}\u{1F1FB}",MW:"\u{1F1F2}\u{1F1FC}",MX:"\u{1F1F2}\u{1F1FD}",MY:"\u{1F1F2}\u{1F1FE}",MZ:"\u{1F1F2}\u{1F1FF}",NA:"\u{1F1F3}\u{1F1E6}",NC:"\u{1F1F3}\u{1F1E8}",NE:"\u{1F1F3}\u{1F1EA}",NF:"\u{1F1F3}\u{1F1EB}",NG:"\u{1F1F3}\u{1F1EC}",NI:"\u{1F1F3}\u{1F1EE}",NL:"\u{1F1F3}\u{1F1F1}",NO:"\u{1F1F3}\u{1F1F4}",NP:"\u{1F1F3}\u{1F1F5}",NR:"\u{1F1F3}\u{1F1F7}",NU:"\u{1F1F3}\u{1F1FA}",NZ:"\u{1F1F3}\u{1F1FF}",OM:"\u{1F1F4}\u{1F1F2}",PA:"\u{1F1F5}\u{1F1E6}",PE:"\u{1F1F5}\u{1F1EA}",PF:"\u{1F1F5}\u{1F1EB}",PG:"\u{1F1F5}\u{1F1EC}",PH:"\u{1F1F5}\u{1F1ED}",PK:"\u{1F1F5}\u{1F1F0}",PL:"\u{1F1F5}\u{1F1F1}",PM:"\u{1F1F5}\u{1F1F2}",PN:"\u{1F1F5}\u{1F1F3}",PR:"\u{1F1F5}\u{1F1F7}",PS:"\u{1F1F5}\u{1F1F8}",PT:"\u{1F1F5}\u{1F1F9}",PW:"\u{1F1F5}\u{1F1FC}",PY:"\u{1F1F5}\u{1F1FE}",QA:"\u{1F1F6}\u{1F1E6}",RE:"\u{1F1F7}\u{1F1EA}",RO:"\u{1F1F7}\u{1F1F4}",RS:"\u{1F1F7}\u{1F1F8}",RU:"\u{1F1F7}\u{1F1FA}",RW:"\u{1F1F7}\u{1F1FC}",SA:"\u{1F1F8}\u{1F1E6}",SB:"\u{1F1F8}\u{1F1E7}",SC:"\u{1F1F8}\u{1F1E8}",SD:"\u{1F1F8}\u{1F1E9}",SE:"\u{1F1F8}\u{1F1EA}",SG:"\u{1F1F8}\u{1F1EC}",SH:"\u{1F1F8}\u{1F1ED}",SI:"\u{1F1F8}\u{1F1EE}",SJ:"\u{1F1F8}\u{1F1EF}",SK:"\u{1F1F8}\u{1F1F0}",SL:"\u{1F1F8}\u{1F1F1}",SM:"\u{1F1F8}\u{1F1F2}",SN:"\u{1F1F8}\u{1F1F3}",SO:"\u{1F1F8}\u{1F1F4}",SR:"\u{1F1F8}\u{1F1F7}",SS:"\u{1F1F8}\u{1F1F8}",ST:"\u{1F1F8}\u{1F1F9}",SV:"\u{1F1F8}\u{1F1FB}",SX:"\u{1F1F8}\u{1F1FD}",SY:"\u{1F1F8}\u{1F1FE}",SZ:"\u{1F1F8}\u{1F1FF}",TC:"\u{1F1F9}\u{1F1E8}",TD:"\u{1F1F9}\u{1F1E9}",TF:"\u{1F1F9}\u{1F1EB}",TG:"\u{1F1F9}\u{1F1EC}",TH:"\u{1F1F9}\u{1F1ED}",TJ:"\u{1F1F9}\u{1F1EF}",TK:"\u{1F1F9}\u{1F1F0}",TL:"\u{1F1F9}\u{1F1F1}",TM:"\u{1F1F9}\u{1F1F2}",TN:"\u{1F1F9}\u{1F1F3}",TO:"\u{1F1F9}\u{1F1F4}",TR:"\u{1F1F9}\u{1F1F7}",TT:"\u{1F1F9}\u{1F1F9}",TV:"\u{1F1F9}\u{1F1FB}",TW:"\u{1F1F9}\u{1F1FC}",TZ:"\u{1F1F9}\u{1F1FF}",UA:"\u{1F1FA}\u{1F1E6}",UG:"\u{1F1FA}\u{1F1EC}",UM:"\u{1F1FA}\u{1F1F2}",US:"\u{1F1FA}\u{1F1F8}",UY:"\u{1F1FA}\u{1F1FE}",UZ:"\u{1F1FA}\u{1F1FF}",VA:"\u{1F1FB}\u{1F1E6}",VC:"\u{1F1FB}\u{1F1E8}",VE:"\u{1F1FB}\u{1F1EA}",VG:"\u{1F1FB}\u{1F1EC}",VI:"\u{1F1FB}\u{1F1EE}",VN:"\u{1F1FB}\u{1F1F3}",VU:"\u{1F1FB}\u{1F1FA}",WF:"\u{1F1FC}\u{1F1EB}",WS:"\u{1F1FC}\u{1F1F8}",XK:"\u{1F1FD}\u{1F1F0}",YE:"\u{1F1FE}\u{1F1EA}",YT:"\u{1F1FE}\u{1F1F9}",ZA:"\u{1F1FF}\u{1F1E6}",ZM:"\u{1F1FF}\u{1F1F2}",ZW:"\u{1F1FF}\u{1F1FC}"},$A=["US","GB","CA","FR","DE","IT","ES","JP","CN","IN","BR","AU","MX","RU","ZA","KR","NL","SE","NO","FI"],qA=[...Object.keys(gw)].sort((i,r)=>i.localeCompare(r)),LA=[...$A,...qA],MA=Array.from(new Set(LA)),bw={getName:"Dial Prefix",getData:MA.map((i=>({key:i,value:`${i} +(${gw[i]})`,prefix:fw[i]?fw[i]:""})))};var IA={AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming",DC:"District of Columbia",AS:"American Samoa",GU:"Guam",MP:"Northern Mariana Islands",PR:"Puerto Rico",VI:"U.S. Virgin Islands"},vw={getName:"state",getData:Object.entries(IA).map(([i,r])=>({key:i,value:r}))};var xw={getName:"Empty",getData:[]};var yw=T`@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}:host *,:host *::before,:host *::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}.color-icon{width:var(--zn-spacing-medium);height:var(--zn-spacing-medium);display:block;border-radius:var(--zn-border-radius-circle);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)}zn-select::part(listbox){max-height:300px;padding-block:0}.select__icon{font-size:var(--zn-font-size-x-large);line-height:1;display:inline-flex;align-items:center}.select__icon:empty{display:none}:host([size=small]) .select__icon{padding-inline-start:var(--zn-input-spacing-small);margin-inline-end:var(--zn-input-spacing-small)}:host([size=small]) .select__icon--end{padding-inline-start:0;padding-inline-end:var(--zn-input-spacing-small);margin-inline-end:0;margin-inline-start:auto}:host([icon-position=end][size=small]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-small) !important}:host([icon-position=start][icon-empty][size=small]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-small) !important}:host([size=medium]) .select__icon{padding-inline-start:var(--zn-input-spacing-medium);margin-inline-end:var(--zn-input-spacing-medium)}:host([size=medium]) .select__icon--end{padding-inline-start:0;padding-inline-end:var(--zn-input-spacing-medium);margin-inline-end:0;margin-inline-start:auto}:host([icon-position=end][size=medium]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-medium) !important}:host([icon-position=start][icon-empty][size=medium]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-medium) !important}:host([size=large]) .select__icon{padding-inline-start:var(--zn-input-spacing-large);margin-inline-end:var(--zn-input-spacing-large)}:host([size=large]) .select__icon--end{padding-inline-start:0;padding-inline-end:var(--zn-input-spacing-large);margin-inline-end:0;margin-inline-start:auto}:host([icon-position=end][size=large]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-large) !important}:host([icon-position=start][icon-empty][size=large]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-large) !important}:host(:not([size])) .select__icon{padding-inline-start:var(--zn-input-spacing-medium);margin-inline-end:var(--zn-input-spacing-medium)}:host(:not([size])) .select__icon--end{padding-inline-start:0;padding-inline-end:var(--zn-input-spacing-medium);margin-inline-end:0;margin-inline-start:auto}:host([icon-position=end]:not([size])) zn-select::part(combobox),:host([icon-position=start][icon-empty]:not([size])) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-medium) !important}`;var St=class extends S{constructor(){super();this.value="";this.iconPosition="none";this.size="medium";this.allowAll=!1;this.allowCommon=!1;this.label="";this.labelTooltip="";this.contextNote="";this.placement="bottom";this.helpText="";this.required=!1;this.disabled=!1;this.iconOnly=!1;this.multiple=!1;this.selectFirst=!1;this.distinct="";this.conditional="";this.formControlController=new ot(this);this.selectObserver=new Pt(this,{target:null,config:{attributes:!0,attributeFilter:["disabled"]},callback:()=>this._syncDisabledState()});this.closeOnTab=t=>{this.select.open&&t.key==="Tab"&&this.select.hide().then()};this.handleInput=t=>{let o=t.target;this.value=o.value??(this.multiple?[]:"")};this.handleClear=()=>{this.value=this.multiple?[]:""};this.blur=()=>{this.select.blur()};this.iconOnly&&this.iconPosition==="none"&&(this.iconPosition="start")}get validationMessage(){return this.select.validationMessage}get validity(){return this.select.validity}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.closeOnTab)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this.closeOnTab)}async firstUpdated(t){super.firstUpdated(t),this.select&&(await this.select.updateComplete,this.select.addEventListener("zn-change",()=>{this._updatePrefix()}),this._observeSelectDisabled()),this._updatePrefix()}async updated(t){super.updated(t),(t.has("value")||t.has("multiple"))&&this._normalizeValue(),(t.has("value")||t.has("provider")||t.has("iconPosition"))&&(this.select&&await this.select.updateComplete,this._updatePrefix())}checkValidity(){return this.select.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.select.reportValidity()}setCustomValidity(t){return this.select.setCustomValidity(t)}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.select&&(await this.select.updateComplete,await new Promise(t=>setTimeout(t,0))),this._updatePrefix()}getLocalProvider(t){switch(t){case"color":return bp;case"currency":return mw(this.allowCommon);case"country":return pw;case"phone":return bw;case"us-state":return vw;default:return xw}}render(){let t=this.getLocalProvider(this.provider),o=this.filter||[],n=t.getData;if(o.length){let a=o.map(s=>s.toUpperCase());n=t.getData.reduce((s,l)=>{let d=l.key.toUpperCase();if(d.includes(",")){let m=d.split(",").map(f=>f.trim()).filter(f=>a.includes(f));m.length>1&&s.push({...l,key:m.join(","),value:`Common - ${m.join(", ")}`})}else a.includes(d)&&s.push(l);return s},[])}if(this.provider!=="color"&&this.allowAll){let l={key:"",value:{currency:"All Currencies",country:"All Countries",phone:"All Phones","us-state":"All States"}[this.provider]||"All",prefix:""};n=[l,...n.filter(d=>d.key!==l.key)]}return u`
3660
+ `}};fe.dependencies={"zn-icon":ct,"zn-tooltip":Mo},fe.styles=A(lw),c([p()],fe.prototype,"caption",2),c([p()],fe.prototype,"description",2),c([p({type:Boolean})],fe.prototype,"stacked",2),c([p({reflect:!0})],fe.prototype,"size",2),c([p({attribute:"edit-on-hover",type:Boolean})],fe.prototype,"editOnHover",2),c([p({attribute:"help-tooltip"})],fe.prototype,"helpTooltip",2),c([p()],fe.prototype,"icon",2),c([p()],fe.prototype,"value",2),c([p({type:Boolean})],fe.prototype,"inline",2),c([p({type:Boolean})],fe.prototype,"grid",2),c([p({type:Boolean,attribute:"no-padding"})],fe.prototype,"noPadding",2),c([p({type:Boolean,attribute:"flush"})],fe.prototype,"flush",2),c([p({type:Boolean,attribute:"align-end"})],fe.prototype,"alignEnd",2),c([p({type:Boolean,attribute:"align-center"})],fe.prototype,"alignCenter",2);var kA=fe;fe.define("zn-item");var dw={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Aland",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthelemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"Bonaire",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar (Burma)",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn Islands",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Eswatini",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"East Timor",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"U.S. Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Vatican City",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VI:"U.S. Virgin Islands",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"},cw={AD:"\u{1F1E6}\u{1F1E9}",AE:"\u{1F1E6}\u{1F1EA}",AF:"\u{1F1E6}\u{1F1EB}",AG:"\u{1F1E6}\u{1F1EC}",AI:"\u{1F1E6}\u{1F1EE}",AL:"\u{1F1E6}\u{1F1F1}",AM:"\u{1F1E6}\u{1F1F2}",AO:"\u{1F1E6}\u{1F1F4}",AQ:"\u{1F1E6}\u{1F1F6}",AR:"\u{1F1E6}\u{1F1F7}",AS:"\u{1F1E6}\u{1F1F8}",AT:"\u{1F1E6}\u{1F1F9}",AU:"\u{1F1E6}\u{1F1FA}",AW:"\u{1F1E6}\u{1F1FC}",AX:"\u{1F1E6}\u{1F1FD}",AZ:"\u{1F1E6}\u{1F1FF}",BA:"\u{1F1E7}\u{1F1E6}",BB:"\u{1F1E7}\u{1F1E7}",BD:"\u{1F1E7}\u{1F1E9}",BE:"\u{1F1E7}\u{1F1EA}",BF:"\u{1F1E7}\u{1F1EB}",BG:"\u{1F1E7}\u{1F1EC}",BH:"\u{1F1E7}\u{1F1ED}",BI:"\u{1F1E7}\u{1F1EE}",BJ:"\u{1F1E7}\u{1F1EF}",BL:"\u{1F1E7}\u{1F1F1}",BM:"\u{1F1E7}\u{1F1F2}",BN:"\u{1F1E7}\u{1F1F3}",BO:"\u{1F1E7}\u{1F1F4}",BQ:"\u{1F1E7}\u{1F1F6}",BR:"\u{1F1E7}\u{1F1F7}",BS:"\u{1F1E7}\u{1F1F8}",BT:"\u{1F1E7}\u{1F1F9}",BV:"\u{1F1E7}\u{1F1FB}",BW:"\u{1F1E7}\u{1F1FC}",BY:"\u{1F1E7}\u{1F1FE}",BZ:"\u{1F1E7}\u{1F1FF}",CA:"\u{1F1E8}\u{1F1E6}",CC:"\u{1F1E8}\u{1F1E8}",CD:"\u{1F1E8}\u{1F1E9}",CF:"\u{1F1E8}\u{1F1EB}",CG:"\u{1F1E8}\u{1F1EC}",CH:"\u{1F1E8}\u{1F1ED}",CI:"\u{1F1E8}\u{1F1EE}",CK:"\u{1F1E8}\u{1F1F0}",CL:"\u{1F1E8}\u{1F1F1}",CM:"\u{1F1E8}\u{1F1F2}",CN:"\u{1F1E8}\u{1F1F3}",CO:"\u{1F1E8}\u{1F1F4}",CR:"\u{1F1E8}\u{1F1F7}",CU:"\u{1F1E8}\u{1F1FA}",CV:"\u{1F1E8}\u{1F1FB}",CW:"\u{1F1E8}\u{1F1FC}",CX:"\u{1F1E8}\u{1F1FD}",CY:"\u{1F1E8}\u{1F1FE}",CZ:"\u{1F1E8}\u{1F1FF}",DE:"\u{1F1E9}\u{1F1EA}",DJ:"\u{1F1E9}\u{1F1EF}",DK:"\u{1F1E9}\u{1F1F0}",DM:"\u{1F1E9}\u{1F1F2}",DO:"\u{1F1E9}\u{1F1F4}",DZ:"\u{1F1E9}\u{1F1FF}",EC:"\u{1F1EA}\u{1F1E8}",EE:"\u{1F1EA}\u{1F1EA}",EG:"\u{1F1EA}\u{1F1EC}",EH:"\u{1F1EA}\u{1F1ED}",ER:"\u{1F1EA}\u{1F1F7}",ES:"\u{1F1EA}\u{1F1F8}",ET:"\u{1F1EA}\u{1F1F9}",FI:"\u{1F1EB}\u{1F1EE}",FJ:"\u{1F1EB}\u{1F1EF}",FK:"\u{1F1EB}\u{1F1F0}",FM:"\u{1F1EB}\u{1F1F2}",FO:"\u{1F1EB}\u{1F1F4}",FR:"\u{1F1EB}\u{1F1F7}",GA:"\u{1F1EC}\u{1F1E6}",GB:"\u{1F1EC}\u{1F1E7}",GD:"\u{1F1EC}\u{1F1E9}",GE:"\u{1F1EC}\u{1F1EA}",GF:"\u{1F1EC}\u{1F1EB}",GG:"\u{1F1EC}\u{1F1EC}",GH:"\u{1F1EC}\u{1F1ED}",GI:"\u{1F1EC}\u{1F1EE}",GL:"\u{1F1EC}\u{1F1F1}",GM:"\u{1F1EC}\u{1F1F2}",GN:"\u{1F1EC}\u{1F1F3}",GP:"\u{1F1EC}\u{1F1F5}",GQ:"\u{1F1EC}\u{1F1F6}",GR:"\u{1F1EC}\u{1F1F7}",GS:"\u{1F1EC}\u{1F1F8}",GT:"\u{1F1EC}\u{1F1F9}",GU:"\u{1F1EC}\u{1F1FA}",GW:"\u{1F1EC}\u{1F1FC}",GY:"\u{1F1EC}\u{1F1FE}",HK:"\u{1F1ED}\u{1F1F0}",HM:"\u{1F1ED}\u{1F1F2}",HN:"\u{1F1ED}\u{1F1F3}",HR:"\u{1F1ED}\u{1F1F7}",HT:"\u{1F1ED}\u{1F1F9}",HU:"\u{1F1ED}\u{1F1FA}",ID:"\u{1F1EE}\u{1F1E9}",IE:"\u{1F1EE}\u{1F1EA}",IL:"\u{1F1EE}\u{1F1F1}",IM:"\u{1F1EE}\u{1F1F2}",IN:"\u{1F1EE}\u{1F1F3}",IO:"\u{1F1EE}\u{1F1F4}",IQ:"\u{1F1EE}\u{1F1F6}",IR:"\u{1F1EE}\u{1F1F7}",IS:"\u{1F1EE}\u{1F1F8}",IT:"\u{1F1EE}\u{1F1F9}",JE:"\u{1F1EF}\u{1F1EA}",JM:"\u{1F1EF}\u{1F1F2}",JO:"\u{1F1EF}\u{1F1F4}",JP:"\u{1F1EF}\u{1F1F5}",KE:"\u{1F1F0}\u{1F1EA}",KG:"\u{1F1F0}\u{1F1EC}",KH:"\u{1F1F0}\u{1F1ED}",KI:"\u{1F1F0}\u{1F1EE}",KM:"\u{1F1F0}\u{1F1F2}",KN:"\u{1F1F0}\u{1F1F3}",KP:"\u{1F1F0}\u{1F1F5}",KR:"\u{1F1F0}\u{1F1F7}",KW:"\u{1F1F0}\u{1F1FC}",KY:"\u{1F1F0}\u{1F1FE}",KZ:"\u{1F1F0}\u{1F1FF}",LA:"\u{1F1F1}\u{1F1E6}",LB:"\u{1F1F1}\u{1F1E7}",LC:"\u{1F1F1}\u{1F1E8}",LI:"\u{1F1F1}\u{1F1EE}",LK:"\u{1F1F1}\u{1F1F0}",LR:"\u{1F1F1}\u{1F1F7}",LS:"\u{1F1F1}\u{1F1F8}",LT:"\u{1F1F1}\u{1F1F9}",LU:"\u{1F1F1}\u{1F1FA}",LV:"\u{1F1F1}\u{1F1FB}",LY:"\u{1F1F1}\u{1F1FE}",MA:"\u{1F1F2}\u{1F1E6}",MC:"\u{1F1F2}\u{1F1E8}",MD:"\u{1F1F2}\u{1F1E9}",ME:"\u{1F1F2}\u{1F1EA}",MF:"\u{1F1F2}\u{1F1EB}",MG:"\u{1F1F2}\u{1F1EC}",MH:"\u{1F1F2}\u{1F1ED}",MK:"\u{1F1F2}\u{1F1F0}",ML:"\u{1F1F2}\u{1F1F1}",MM:"\u{1F1F2}\u{1F1F2}",MN:"\u{1F1F2}\u{1F1F3}",MO:"\u{1F1F2}\u{1F1F4}",MP:"\u{1F1F2}\u{1F1F5}",MQ:"\u{1F1F2}\u{1F1F6}",MR:"\u{1F1F2}\u{1F1F7}",MS:"\u{1F1F2}\u{1F1F8}",MT:"\u{1F1F2}\u{1F1F9}",MU:"\u{1F1F2}\u{1F1FA}",MV:"\u{1F1F2}\u{1F1FB}",MW:"\u{1F1F2}\u{1F1FC}",MX:"\u{1F1F2}\u{1F1FD}",MY:"\u{1F1F2}\u{1F1FE}",MZ:"\u{1F1F2}\u{1F1FF}",NA:"\u{1F1F3}\u{1F1E6}",NC:"\u{1F1F3}\u{1F1E8}",NE:"\u{1F1F3}\u{1F1EA}",NF:"\u{1F1F3}\u{1F1EB}",NG:"\u{1F1F3}\u{1F1EC}",NI:"\u{1F1F3}\u{1F1EE}",NL:"\u{1F1F3}\u{1F1F1}",NO:"\u{1F1F3}\u{1F1F4}",NP:"\u{1F1F3}\u{1F1F5}",NR:"\u{1F1F3}\u{1F1F7}",NU:"\u{1F1F3}\u{1F1FA}",NZ:"\u{1F1F3}\u{1F1FF}",OM:"\u{1F1F4}\u{1F1F2}",PA:"\u{1F1F5}\u{1F1E6}",PE:"\u{1F1F5}\u{1F1EA}",PF:"\u{1F1F5}\u{1F1EB}",PG:"\u{1F1F5}\u{1F1EC}",PH:"\u{1F1F5}\u{1F1ED}",PK:"\u{1F1F5}\u{1F1F0}",PL:"\u{1F1F5}\u{1F1F1}",PM:"\u{1F1F5}\u{1F1F2}",PN:"\u{1F1F5}\u{1F1F3}",PR:"\u{1F1F5}\u{1F1F7}",PS:"\u{1F1F5}\u{1F1F8}",PT:"\u{1F1F5}\u{1F1F9}",PW:"\u{1F1F5}\u{1F1FC}",PY:"\u{1F1F5}\u{1F1FE}",QA:"\u{1F1F6}\u{1F1E6}",RE:"\u{1F1F7}\u{1F1EA}",RO:"\u{1F1F7}\u{1F1F4}",RS:"\u{1F1F7}\u{1F1F8}",RU:"\u{1F1F7}\u{1F1FA}",RW:"\u{1F1F7}\u{1F1FC}",SA:"\u{1F1F8}\u{1F1E6}",SB:"\u{1F1F8}\u{1F1E7}",SC:"\u{1F1F8}\u{1F1E8}",SD:"\u{1F1F8}\u{1F1E9}",SE:"\u{1F1F8}\u{1F1EA}",SG:"\u{1F1F8}\u{1F1EC}",SH:"\u{1F1F8}\u{1F1ED}",SI:"\u{1F1F8}\u{1F1EE}",SJ:"\u{1F1F8}\u{1F1EF}",SK:"\u{1F1F8}\u{1F1F0}",SL:"\u{1F1F8}\u{1F1F1}",SM:"\u{1F1F8}\u{1F1F2}",SN:"\u{1F1F8}\u{1F1F3}",SO:"\u{1F1F8}\u{1F1F4}",SR:"\u{1F1F8}\u{1F1F7}",SS:"\u{1F1F8}\u{1F1F8}",ST:"\u{1F1F8}\u{1F1F9}",SV:"\u{1F1F8}\u{1F1FB}",SX:"\u{1F1F8}\u{1F1FD}",SY:"\u{1F1F8}\u{1F1FE}",SZ:"\u{1F1F8}\u{1F1FF}",TC:"\u{1F1F9}\u{1F1E8}",TD:"\u{1F1F9}\u{1F1E9}",TF:"\u{1F1F9}\u{1F1EB}",TG:"\u{1F1F9}\u{1F1EC}",TH:"\u{1F1F9}\u{1F1ED}",TJ:"\u{1F1F9}\u{1F1EF}",TK:"\u{1F1F9}\u{1F1F0}",TL:"\u{1F1F9}\u{1F1F1}",TM:"\u{1F1F9}\u{1F1F2}",TN:"\u{1F1F9}\u{1F1F3}",TO:"\u{1F1F9}\u{1F1F4}",TR:"\u{1F1F9}\u{1F1F7}",TT:"\u{1F1F9}\u{1F1F9}",TV:"\u{1F1F9}\u{1F1FB}",TW:"\u{1F1F9}\u{1F1FC}",TZ:"\u{1F1F9}\u{1F1FF}",UA:"\u{1F1FA}\u{1F1E6}",UG:"\u{1F1FA}\u{1F1EC}",UM:"\u{1F1FA}\u{1F1F2}",US:"\u{1F1FA}\u{1F1F8}",UY:"\u{1F1FA}\u{1F1FE}",UZ:"\u{1F1FA}\u{1F1FF}",VA:"\u{1F1FB}\u{1F1E6}",VC:"\u{1F1FB}\u{1F1E8}",VE:"\u{1F1FB}\u{1F1EA}",VG:"\u{1F1FB}\u{1F1EC}",VI:"\u{1F1FB}\u{1F1EE}",VN:"\u{1F1FB}\u{1F1F3}",VU:"\u{1F1FB}\u{1F1FA}",WF:"\u{1F1FC}\u{1F1EB}",WS:"\u{1F1FC}\u{1F1F8}",XK:"\u{1F1FD}\u{1F1F0}",YE:"\u{1F1FE}\u{1F1EA}",YT:"\u{1F1FE}\u{1F1F9}",ZA:"\u{1F1FF}\u{1F1E6}",ZM:"\u{1F1FF}\u{1F1F2}",ZW:"\u{1F1FF}\u{1F1FC}"},CA=["US","GB","CA","FR","DE","IT","ES","JP","CN","IN","BR","AU","MX","RU","ZA","KR","NL","SE","NO","FI"],SA=[...Object.keys(dw)].sort((i,r)=>i.localeCompare(r)),EA=[...CA,...SA],TA=Array.from(new Set(EA)),pw={getName:"country",getData:TA.map((i=>({key:i,value:dw[i],prefix:cw[i]?cw[i]:""})))};var uw={ALL:"Albania Lek",AED:"United Arab Emirates Dirham",AFN:"Afghanistan Afghani",ARS:"Argentina Peso",AWG:"Aruba Guilder",AUD:"Australia Dollar",AZN:"Azerbaijan New Manat",BSD:"Bahamas Dollar",BBD:"Barbados Dollar",BDT:"Bangladeshi taka",BYR:"Belarus Ruble",BZD:"Belize Dollar",BMD:"Bermuda Dollar",BOB:"Bolivia Boliviano",BAM:"Bosnia and Herzegovina Convertible Marka",BWP:"Botswana Pula",BGN:"Bulgaria Lev",BRL:"Brazil Real",BND:"Brunei Darussalam Dollar",KHR:"Cambodia Riel",CAD:"Canada Dollar",KYD:"Cayman Islands Dollar",CLP:"Chile Peso",CNY:"China Yuan Renminbi",COP:"Colombia Peso",CRC:"Costa Rica Colon",HRK:"Croatia Kuna",CUP:"Cuba Peso",CZK:"Czech Republic Koruna",DKK:"Denmark Krone",DOP:"Dominican Republic Peso",XCD:"East Caribbean Dollar",EGP:"Egypt Pound",SVC:"El Salvador Colon",EEK:"Estonia Kroon",EUR:"Euro Member Countries",FKP:"Falkland Islands (Malvinas) Pound",FJD:"Fiji Dollar",GHC:"Ghana Cedis",GIP:"Gibraltar Pound",GTQ:"Guatemala Quetzal",GGP:"Guernsey Pound",GYD:"Guyana Dollar",HNL:"Honduras Lempira",HKD:"Hong Kong Dollar",HUF:"Hungary Forint",ISK:"Iceland Krona",INR:"India Rupee",IDR:"Indonesia Rupiah",IRR:"Iran Rial",IMP:"Isle of Man Pound",ILS:"Israel Shekel",JMD:"Jamaica Dollar",JPY:"Japan Yen",JEP:"Jersey Pound",KZT:"Kazakhstan Tenge",KPW:"Korea (North) Won",KRW:"Korea (South) Won",KGS:"Kyrgyzstan Som",LAK:"Laos Kip",LVL:"Latvia Lat",LBP:"Lebanon Pound",LRD:"Liberia Dollar",LTL:"Lithuania Litas",MKD:"Macedonia Denar",MYR:"Malaysia Ringgit",MUR:"Mauritius Rupee",MXN:"Mexico Peso",MNT:"Mongolia Tughrik",MZN:"Mozambique Metical",NAD:"Namibia Dollar",NPR:"Nepal Rupee",ANG:"Netherlands Antilles Guilder",NZD:"New Zealand Dollar",NIO:"Nicaragua Cordoba",NGN:"Nigeria Naira",NOK:"Norway Krone",OMR:"Oman Rial",PKR:"Pakistan Rupee",PAB:"Panama Balboa",PYG:"Paraguay Guarani",PEN:"Peru Nuevo Sol",PHP:"Philippines Peso",PLN:"Poland Zloty",QAR:"Qatar Riyal",RON:"Romania New Leu",RUB:"Russia Ruble",SHP:"Saint Helena Pound",SAR:"Saudi Arabia Riyal",RSD:"Serbia Dinar",SCR:"Seychelles Rupee",SGD:"Singapore Dollar",SBD:"Solomon Islands Dollar",SOS:"Somalia Shilling",ZAR:"South Africa Rand",LKR:"Sri Lanka Rupee",SEK:"Sweden Krona",CHF:"Switzerland Franc",SRD:"Suriname Dollar",SYP:"Syria Pound",TWD:"Taiwan New Dollar",THB:"Thailand Baht",TTD:"Trinidad and Tobago Dollar",TRY:"Turkey Lira",TRL:"Turkey Lira",TVD:"Tuvalu Dollar",UAH:"Ukraine Hryvna",GBP:"Great British Pound",USD:"United States Dollar",UYU:"Uruguay Peso",UZS:"Uzbekistan Som",VEF:"Venezuela Bolivar",VND:"Viet Nam Dong",YER:"Yemen Rial",ZWD:"Zimbabwe Dollar"},hw={AED:"\u062F.\u0625",AFN:"\u060B",ALL:"L",AMD:"\u058F",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20BC",BAM:"KM",BBD:"$",BDT:"\u09F3",BGN:"\u043B\u0432",BHD:".\u062F.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20BF",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xA5",CNY:"\xA5",COP:"$",COU:"COU",CRC:"\u20A1",CUC:"$",CUP:"\u20B1",CVE:"$",CZK:"K\u010D",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062F\u062C",EEK:"kr",EGP:"\xA3",ERN:"Nfk",ETB:"Br",ETH:"\u039E",EUR:"\u20AC",FJD:"$",FKP:"\xA3",GBP:"\xA3",GEL:"\u20BE",GGP:"\xA3",GHC:"\u20B5",GHS:"GH\u20B5",GIP:"\xA3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20AA",IMP:"\xA3",INR:"\u20B9",IQD:"\u0639.\u062F",IRR:"\uFDFC",ISK:"kr",JEP:"\xA3",JMD:"J$",JOD:"JD",JPY:"\xA5",KES:"KSh",KGS:"\u043B\u0432",KHR:"\u17DB",KMF:"CF",KPW:"\u20A9",KRW:"\u20A9",KWD:"KD",KYD:"$",KZT:"\u20B8",LAK:"\u20AD",LBP:"\xA3",LKR:"\u20A8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043D",MMK:"K",MNT:"\u20AE",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20A8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20A6",NIO:"C$",NOK:"kr",NPR:"\u20A8",NZD:"$",OMR:"\uFDFC",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20B1",PKR:"\u20A8",PLN:"z\u0142",PYG:"Gs",QAR:"\uFDFC",RMB:"\uFFE5",RON:"lei",RSD:"\u0414\u0438\u043D.",RUB:"\u20BD",RWF:"R\u20A3",SAR:"SAR",SBD:"$",SCR:"\u20A8",SDG:"\u062C.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xA3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xA3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xA3",SZL:"E",THB:"\u0E3F",TJS:"SM",TMT:"T",TND:"\u062F.\u062A",TOP:"T$",TRL:"\u20A4",TRY:"\u20BA",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20B4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043B\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20AB",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20A3",XSU:"Sucre",XUA:"XUA",YER:"\uFDFC",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"},Fm=["USD","EUR","GBP","CAD","AUD"],AA=[...Object.keys(uw)].sort((i,r)=>i.localeCompare(r)),mw=(i=!1)=>{let r=AA.filter(n=>!Fm.includes(n)),o=[...Fm,...r].map((n=>({key:n,value:n.concat(" - ").concat(uw[n]),prefix:hw[n]?hw[n]:""})));if(i){let n={key:Fm.join(","),value:"Common - USD, EUR, GBP, CAD & AUD",prefix:""};o.unshift(n)}return{getName:"currency",getData:o}};var gw={AF:"93",AL:"355",DZ:"213",AS:"1-684",AD:"376",AO:"244",AI:"1-264",AQ:"672",AG:"1-268",AR:"54",AM:"374",AW:"297",AU:"61",AT:"43",AZ:"994",BS:"1-242",BH:"973",BD:"880",BB:"1-246",BY:"375",BE:"32",BZ:"501",BJ:"229",BM:"1-441",BT:"975",BO:"591",BA:"387",BW:"267",BR:"55",IO:"246",VG:"1-284",BN:"673",BG:"359",BF:"226",BI:"257",KH:"855",CM:"237",CA:"1",CV:"238",KY:"1-345",CF:"236",TD:"235",CL:"56",CN:"86",CX:"61",CC:"61",CO:"57",KM:"269",CK:"682",CR:"506",HR:"385",CU:"53",CW:"599",CY:"357",CZ:"420",CD:"243",DK:"45",DJ:"253",DM:"1-767",DO:"1-809",TL:"670",EC:"593",EG:"20",SV:"503",GQ:"240",ER:"291",EE:"372",ET:"251",FK:"500",FO:"298",FJ:"679",FI:"358",FR:"33",PF:"689",GA:"241",GM:"220",GE:"995",DE:"49",GH:"233",GI:"350",GR:"30",GL:"299",GD:"1-473",GU:"1-671",GT:"502",GG:"44-1481",GN:"224",GW:"245",GY:"592",HT:"509",HN:"504",HK:"852",HU:"36",IS:"354",IN:"91",ID:"62",IR:"98",IQ:"964",IE:"353",IM:"44-1624",IL:"972",IT:"39",CI:"225",JM:"1-876",JP:"81",JE:"44-1534",JO:"962",KZ:"7",KE:"254",KI:"686",XK:"383",KW:"965",KG:"996",LA:"856",LV:"371",LB:"961",LS:"266",LR:"231",LY:"218",LI:"423",LT:"370",LU:"352",MO:"853",MK:"389",MG:"261",MW:"265",MY:"60",MV:"960",ML:"223",MT:"356",MH:"692",MR:"222",MU:"230",YT:"262",MX:"52",FM:"691",MD:"373",MC:"377",MN:"976",ME:"382",MS:"1-664",MA:"212",MZ:"258",MM:"95",NA:"264",NR:"674",NP:"977",NL:"31",AN:"599",NC:"687",NZ:"64",NI:"505",NE:"227",NG:"234",NU:"683",KP:"850",MP:"1-670",NO:"47",OM:"968",PK:"92",PW:"680",PS:"970",PA:"507",PG:"675",PY:"595",PE:"51",PH:"63",PN:"64",PL:"48",PT:"351",PR:"1-787",QA:"974",CG:"242",RE:"262",RO:"40",RU:"7",RW:"250",BL:"590",SH:"290",KN:"1-869",LC:"1-758",MF:"590",PM:"508",VC:"1-784",WS:"685",SM:"378",ST:"239",SA:"966",SN:"221",RS:"381",SC:"248",SL:"232",SG:"65",SX:"1-721",SK:"421",SI:"386",SB:"677",SO:"252",ZA:"27",KR:"82",SS:"211",ES:"34",LK:"94",SD:"249",SR:"597",SJ:"47",SZ:"268",SE:"46",CH:"41",SY:"963",TW:"886",TJ:"992",TZ:"255",TH:"66",TG:"228",TK:"690",TO:"676",TT:"1-868",TN:"216",TR:"90",TM:"993",TC:"1-649",TV:"688",VI:"1-340",UG:"256",UA:"380",AE:"971",GB:"44",US:"1",UY:"598",UZ:"998",VU:"678",VA:"379",VE:"58",VN:"84",WF:"681",EH:"212",YE:"967",ZM:"260",ZW:"263"},fw={AD:"\u{1F1E6}\u{1F1E9}",AE:"\u{1F1E6}\u{1F1EA}",AF:"\u{1F1E6}\u{1F1EB}",AG:"\u{1F1E6}\u{1F1EC}",AI:"\u{1F1E6}\u{1F1EE}",AL:"\u{1F1E6}\u{1F1F1}",AM:"\u{1F1E6}\u{1F1F2}",AO:"\u{1F1E6}\u{1F1F4}",AQ:"\u{1F1E6}\u{1F1F6}",AR:"\u{1F1E6}\u{1F1F7}",AS:"\u{1F1E6}\u{1F1F8}",AT:"\u{1F1E6}\u{1F1F9}",AU:"\u{1F1E6}\u{1F1FA}",AW:"\u{1F1E6}\u{1F1FC}",AX:"\u{1F1E6}\u{1F1FD}",AZ:"\u{1F1E6}\u{1F1FF}",BA:"\u{1F1E7}\u{1F1E6}",BB:"\u{1F1E7}\u{1F1E7}",BD:"\u{1F1E7}\u{1F1E9}",BE:"\u{1F1E7}\u{1F1EA}",BF:"\u{1F1E7}\u{1F1EB}",BG:"\u{1F1E7}\u{1F1EC}",BH:"\u{1F1E7}\u{1F1ED}",BI:"\u{1F1E7}\u{1F1EE}",BJ:"\u{1F1E7}\u{1F1EF}",BL:"\u{1F1E7}\u{1F1F1}",BM:"\u{1F1E7}\u{1F1F2}",BN:"\u{1F1E7}\u{1F1F3}",BO:"\u{1F1E7}\u{1F1F4}",BQ:"\u{1F1E7}\u{1F1F6}",BR:"\u{1F1E7}\u{1F1F7}",BS:"\u{1F1E7}\u{1F1F8}",BT:"\u{1F1E7}\u{1F1F9}",BV:"\u{1F1E7}\u{1F1FB}",BW:"\u{1F1E7}\u{1F1FC}",BY:"\u{1F1E7}\u{1F1FE}",BZ:"\u{1F1E7}\u{1F1FF}",CA:"\u{1F1E8}\u{1F1E6}",CC:"\u{1F1E8}\u{1F1E8}",CD:"\u{1F1E8}\u{1F1E9}",CF:"\u{1F1E8}\u{1F1EB}",CG:"\u{1F1E8}\u{1F1EC}",CH:"\u{1F1E8}\u{1F1ED}",CI:"\u{1F1E8}\u{1F1EE}",CK:"\u{1F1E8}\u{1F1F0}",CL:"\u{1F1E8}\u{1F1F1}",CM:"\u{1F1E8}\u{1F1F2}",CN:"\u{1F1E8}\u{1F1F3}",CO:"\u{1F1E8}\u{1F1F4}",CR:"\u{1F1E8}\u{1F1F7}",CU:"\u{1F1E8}\u{1F1FA}",CV:"\u{1F1E8}\u{1F1FB}",CW:"\u{1F1E8}\u{1F1FC}",CX:"\u{1F1E8}\u{1F1FD}",CY:"\u{1F1E8}\u{1F1FE}",CZ:"\u{1F1E8}\u{1F1FF}",DE:"\u{1F1E9}\u{1F1EA}",DJ:"\u{1F1E9}\u{1F1EF}",DK:"\u{1F1E9}\u{1F1F0}",DM:"\u{1F1E9}\u{1F1F2}",DO:"\u{1F1E9}\u{1F1F4}",DZ:"\u{1F1E9}\u{1F1FF}",EC:"\u{1F1EA}\u{1F1E8}",EE:"\u{1F1EA}\u{1F1EA}",EG:"\u{1F1EA}\u{1F1EC}",EH:"\u{1F1EA}\u{1F1ED}",ER:"\u{1F1EA}\u{1F1F7}",ES:"\u{1F1EA}\u{1F1F8}",ET:"\u{1F1EA}\u{1F1F9}",FI:"\u{1F1EB}\u{1F1EE}",FJ:"\u{1F1EB}\u{1F1EF}",FK:"\u{1F1EB}\u{1F1F0}",FM:"\u{1F1EB}\u{1F1F2}",FO:"\u{1F1EB}\u{1F1F4}",FR:"\u{1F1EB}\u{1F1F7}",GA:"\u{1F1EC}\u{1F1E6}",GB:"\u{1F1EC}\u{1F1E7}",GD:"\u{1F1EC}\u{1F1E9}",GE:"\u{1F1EC}\u{1F1EA}",GF:"\u{1F1EC}\u{1F1EB}",GG:"\u{1F1EC}\u{1F1EC}",GH:"\u{1F1EC}\u{1F1ED}",GI:"\u{1F1EC}\u{1F1EE}",GL:"\u{1F1EC}\u{1F1F1}",GM:"\u{1F1EC}\u{1F1F2}",GN:"\u{1F1EC}\u{1F1F3}",GP:"\u{1F1EC}\u{1F1F5}",GQ:"\u{1F1EC}\u{1F1F6}",GR:"\u{1F1EC}\u{1F1F7}",GS:"\u{1F1EC}\u{1F1F8}",GT:"\u{1F1EC}\u{1F1F9}",GU:"\u{1F1EC}\u{1F1FA}",GW:"\u{1F1EC}\u{1F1FC}",GY:"\u{1F1EC}\u{1F1FE}",HK:"\u{1F1ED}\u{1F1F0}",HM:"\u{1F1ED}\u{1F1F2}",HN:"\u{1F1ED}\u{1F1F3}",HR:"\u{1F1ED}\u{1F1F7}",HT:"\u{1F1ED}\u{1F1F9}",HU:"\u{1F1ED}\u{1F1FA}",ID:"\u{1F1EE}\u{1F1E9}",IE:"\u{1F1EE}\u{1F1EA}",IL:"\u{1F1EE}\u{1F1F1}",IM:"\u{1F1EE}\u{1F1F2}",IN:"\u{1F1EE}\u{1F1F3}",IO:"\u{1F1EE}\u{1F1F4}",IQ:"\u{1F1EE}\u{1F1F6}",IR:"\u{1F1EE}\u{1F1F7}",IS:"\u{1F1EE}\u{1F1F8}",IT:"\u{1F1EE}\u{1F1F9}",JE:"\u{1F1EF}\u{1F1EA}",JM:"\u{1F1EF}\u{1F1F2}",JO:"\u{1F1EF}\u{1F1F4}",JP:"\u{1F1EF}\u{1F1F5}",KE:"\u{1F1F0}\u{1F1EA}",KG:"\u{1F1F0}\u{1F1EC}",KH:"\u{1F1F0}\u{1F1ED}",KI:"\u{1F1F0}\u{1F1EE}",KM:"\u{1F1F0}\u{1F1F2}",KN:"\u{1F1F0}\u{1F1F3}",KP:"\u{1F1F0}\u{1F1F5}",KR:"\u{1F1F0}\u{1F1F7}",KW:"\u{1F1F0}\u{1F1FC}",KY:"\u{1F1F0}\u{1F1FE}",KZ:"\u{1F1F0}\u{1F1FF}",LA:"\u{1F1F1}\u{1F1E6}",LB:"\u{1F1F1}\u{1F1E7}",LC:"\u{1F1F1}\u{1F1E8}",LI:"\u{1F1F1}\u{1F1EE}",LK:"\u{1F1F1}\u{1F1F0}",LR:"\u{1F1F1}\u{1F1F7}",LS:"\u{1F1F1}\u{1F1F8}",LT:"\u{1F1F1}\u{1F1F9}",LU:"\u{1F1F1}\u{1F1FA}",LV:"\u{1F1F1}\u{1F1FB}",LY:"\u{1F1F1}\u{1F1FE}",MA:"\u{1F1F2}\u{1F1E6}",MC:"\u{1F1F2}\u{1F1E8}",MD:"\u{1F1F2}\u{1F1E9}",ME:"\u{1F1F2}\u{1F1EA}",MF:"\u{1F1F2}\u{1F1EB}",MG:"\u{1F1F2}\u{1F1EC}",MH:"\u{1F1F2}\u{1F1ED}",MK:"\u{1F1F2}\u{1F1F0}",ML:"\u{1F1F2}\u{1F1F1}",MM:"\u{1F1F2}\u{1F1F2}",MN:"\u{1F1F2}\u{1F1F3}",MO:"\u{1F1F2}\u{1F1F4}",MP:"\u{1F1F2}\u{1F1F5}",MQ:"\u{1F1F2}\u{1F1F6}",MR:"\u{1F1F2}\u{1F1F7}",MS:"\u{1F1F2}\u{1F1F8}",MT:"\u{1F1F2}\u{1F1F9}",MU:"\u{1F1F2}\u{1F1FA}",MV:"\u{1F1F2}\u{1F1FB}",MW:"\u{1F1F2}\u{1F1FC}",MX:"\u{1F1F2}\u{1F1FD}",MY:"\u{1F1F2}\u{1F1FE}",MZ:"\u{1F1F2}\u{1F1FF}",NA:"\u{1F1F3}\u{1F1E6}",NC:"\u{1F1F3}\u{1F1E8}",NE:"\u{1F1F3}\u{1F1EA}",NF:"\u{1F1F3}\u{1F1EB}",NG:"\u{1F1F3}\u{1F1EC}",NI:"\u{1F1F3}\u{1F1EE}",NL:"\u{1F1F3}\u{1F1F1}",NO:"\u{1F1F3}\u{1F1F4}",NP:"\u{1F1F3}\u{1F1F5}",NR:"\u{1F1F3}\u{1F1F7}",NU:"\u{1F1F3}\u{1F1FA}",NZ:"\u{1F1F3}\u{1F1FF}",OM:"\u{1F1F4}\u{1F1F2}",PA:"\u{1F1F5}\u{1F1E6}",PE:"\u{1F1F5}\u{1F1EA}",PF:"\u{1F1F5}\u{1F1EB}",PG:"\u{1F1F5}\u{1F1EC}",PH:"\u{1F1F5}\u{1F1ED}",PK:"\u{1F1F5}\u{1F1F0}",PL:"\u{1F1F5}\u{1F1F1}",PM:"\u{1F1F5}\u{1F1F2}",PN:"\u{1F1F5}\u{1F1F3}",PR:"\u{1F1F5}\u{1F1F7}",PS:"\u{1F1F5}\u{1F1F8}",PT:"\u{1F1F5}\u{1F1F9}",PW:"\u{1F1F5}\u{1F1FC}",PY:"\u{1F1F5}\u{1F1FE}",QA:"\u{1F1F6}\u{1F1E6}",RE:"\u{1F1F7}\u{1F1EA}",RO:"\u{1F1F7}\u{1F1F4}",RS:"\u{1F1F7}\u{1F1F8}",RU:"\u{1F1F7}\u{1F1FA}",RW:"\u{1F1F7}\u{1F1FC}",SA:"\u{1F1F8}\u{1F1E6}",SB:"\u{1F1F8}\u{1F1E7}",SC:"\u{1F1F8}\u{1F1E8}",SD:"\u{1F1F8}\u{1F1E9}",SE:"\u{1F1F8}\u{1F1EA}",SG:"\u{1F1F8}\u{1F1EC}",SH:"\u{1F1F8}\u{1F1ED}",SI:"\u{1F1F8}\u{1F1EE}",SJ:"\u{1F1F8}\u{1F1EF}",SK:"\u{1F1F8}\u{1F1F0}",SL:"\u{1F1F8}\u{1F1F1}",SM:"\u{1F1F8}\u{1F1F2}",SN:"\u{1F1F8}\u{1F1F3}",SO:"\u{1F1F8}\u{1F1F4}",SR:"\u{1F1F8}\u{1F1F7}",SS:"\u{1F1F8}\u{1F1F8}",ST:"\u{1F1F8}\u{1F1F9}",SV:"\u{1F1F8}\u{1F1FB}",SX:"\u{1F1F8}\u{1F1FD}",SY:"\u{1F1F8}\u{1F1FE}",SZ:"\u{1F1F8}\u{1F1FF}",TC:"\u{1F1F9}\u{1F1E8}",TD:"\u{1F1F9}\u{1F1E9}",TF:"\u{1F1F9}\u{1F1EB}",TG:"\u{1F1F9}\u{1F1EC}",TH:"\u{1F1F9}\u{1F1ED}",TJ:"\u{1F1F9}\u{1F1EF}",TK:"\u{1F1F9}\u{1F1F0}",TL:"\u{1F1F9}\u{1F1F1}",TM:"\u{1F1F9}\u{1F1F2}",TN:"\u{1F1F9}\u{1F1F3}",TO:"\u{1F1F9}\u{1F1F4}",TR:"\u{1F1F9}\u{1F1F7}",TT:"\u{1F1F9}\u{1F1F9}",TV:"\u{1F1F9}\u{1F1FB}",TW:"\u{1F1F9}\u{1F1FC}",TZ:"\u{1F1F9}\u{1F1FF}",UA:"\u{1F1FA}\u{1F1E6}",UG:"\u{1F1FA}\u{1F1EC}",UM:"\u{1F1FA}\u{1F1F2}",US:"\u{1F1FA}\u{1F1F8}",UY:"\u{1F1FA}\u{1F1FE}",UZ:"\u{1F1FA}\u{1F1FF}",VA:"\u{1F1FB}\u{1F1E6}",VC:"\u{1F1FB}\u{1F1E8}",VE:"\u{1F1FB}\u{1F1EA}",VG:"\u{1F1FB}\u{1F1EC}",VI:"\u{1F1FB}\u{1F1EE}",VN:"\u{1F1FB}\u{1F1F3}",VU:"\u{1F1FB}\u{1F1FA}",WF:"\u{1F1FC}\u{1F1EB}",WS:"\u{1F1FC}\u{1F1F8}",XK:"\u{1F1FD}\u{1F1F0}",YE:"\u{1F1FE}\u{1F1EA}",YT:"\u{1F1FE}\u{1F1F9}",ZA:"\u{1F1FF}\u{1F1E6}",ZM:"\u{1F1FF}\u{1F1F2}",ZW:"\u{1F1FF}\u{1F1FC}"},$A=["US","GB","CA","FR","DE","IT","ES","JP","CN","IN","BR","AU","MX","RU","ZA","KR","NL","SE","NO","FI"],qA=[...Object.keys(gw)].sort((i,r)=>i.localeCompare(r)),LA=[...$A,...qA],MA=Array.from(new Set(LA)),bw={getName:"Dial Prefix",getData:MA.map((i=>({key:i,value:`${i} +(${gw[i]})`,prefix:fw[i]?fw[i]:""})))};var IA={AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming",DC:"District of Columbia",AS:"American Samoa",GU:"Guam",MP:"Northern Mariana Islands",PR:"Puerto Rico",VI:"U.S. Virgin Islands"},vw={getName:"state",getData:Object.entries(IA).map(([i,r])=>({key:i,value:r}))};var xw={getName:"Empty",getData:[]};var yw=T`@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}:host *,:host *::before,:host *::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}.color-icon{width:var(--zn-spacing-medium);height:var(--zn-spacing-medium);display:block;border-radius:var(--zn-border-radius-circle);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)}zn-select::part(listbox){max-height:300px;padding-block:0}.select__icon{font-size:var(--zn-font-size-x-large);line-height:1;display:inline-flex;align-items:center}.select__icon:empty{display:none}:host([size=small]) .select__icon{padding-inline-start:var(--zn-input-spacing-small);margin-inline-end:var(--zn-input-spacing-small)}:host([size=small]) .select__icon--end{padding-inline-start:0;padding-inline-end:var(--zn-input-spacing-small);margin-inline-end:0;margin-inline-start:auto}:host([icon-position=end][size=small]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-small) !important}:host([icon-position=start][icon-empty][size=small]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-small) !important}:host([size=medium]) .select__icon{padding-inline-start:var(--zn-input-spacing-medium);margin-inline-end:var(--zn-input-spacing-medium)}:host([size=medium]) .select__icon--end{padding-inline-start:0;padding-inline-end:var(--zn-input-spacing-medium);margin-inline-end:0;margin-inline-start:auto}:host([icon-position=end][size=medium]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-medium) !important}:host([icon-position=start][icon-empty][size=medium]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-medium) !important}:host([size=large]) .select__icon{padding-inline-start:var(--zn-input-spacing-large);margin-inline-end:var(--zn-input-spacing-large)}:host([size=large]) .select__icon--end{padding-inline-start:0;padding-inline-end:var(--zn-input-spacing-large);margin-inline-end:0;margin-inline-start:auto}:host([icon-position=end][size=large]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-large) !important}:host([icon-position=start][icon-empty][size=large]) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-large) !important}:host(:not([size])) .select__icon{padding-inline-start:var(--zn-input-spacing-medium);margin-inline-end:var(--zn-input-spacing-medium)}:host(:not([size])) .select__icon--end{padding-inline-start:0;padding-inline-end:var(--zn-input-spacing-medium);margin-inline-end:0;margin-inline-start:auto}:host([icon-position=end]:not([size])) zn-select::part(combobox),:host([icon-position=start][icon-empty]:not([size])) zn-select::part(combobox){padding-inline-start:var(--zn-input-spacing-medium) !important}`;var St=class extends S{constructor(){super();this.value="";this.iconPosition="none";this.size="medium";this.allowAll=!1;this.allowCommon=!1;this.label="";this.labelTooltip="";this.contextNote="";this.placement="bottom";this.helpText="";this.required=!1;this.disabled=!1;this.iconOnly=!1;this.multiple=!1;this.selectFirst=!1;this.distinct="";this.conditional="";this.formControlController=new ot(this);this.selectObserver=new Ht(this,{target:null,config:{attributes:!0,attributeFilter:["disabled"]},callback:()=>this._syncDisabledState()});this.closeOnTab=t=>{this.select.open&&t.key==="Tab"&&this.select.hide().then()};this.handleInput=t=>{let o=t.target;this.value=o.value??(this.multiple?[]:"")};this.handleClear=()=>{this.value=this.multiple?[]:""};this.blur=()=>{this.select.blur()};this.iconOnly&&this.iconPosition==="none"&&(this.iconPosition="start")}get validationMessage(){return this.select.validationMessage}get validity(){return this.select.validity}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.closeOnTab)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this.closeOnTab)}async firstUpdated(t){super.firstUpdated(t),this.select&&(await this.select.updateComplete,this.select.addEventListener("zn-change",()=>{this._updatePrefix()}),this._observeSelectDisabled()),this._updatePrefix()}async updated(t){super.updated(t),(t.has("value")||t.has("multiple"))&&this._normalizeValue(),(t.has("value")||t.has("provider")||t.has("iconPosition"))&&(this.select&&await this.select.updateComplete,this._updatePrefix())}checkValidity(){return this.select.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.select.reportValidity()}setCustomValidity(t){return this.select.setCustomValidity(t)}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.select&&(await this.select.updateComplete,await new Promise(t=>setTimeout(t,0))),this._updatePrefix()}getLocalProvider(t){switch(t){case"color":return bp;case"currency":return mw(this.allowCommon);case"country":return pw;case"phone":return bw;case"us-state":return vw;default:return xw}}render(){let t=this.getLocalProvider(this.provider),o=this.filter||[],n=t.getData;if(o.length){let a=o.map(s=>s.toUpperCase());n=t.getData.reduce((s,l)=>{let d=l.key.toUpperCase();if(d.includes(",")){let m=d.split(",").map(f=>f.trim()).filter(f=>a.includes(f));m.length>1&&s.push({...l,key:m.join(","),value:`Common - ${m.join(", ")}`})}else a.includes(d)&&s.push(l);return s},[])}if(this.provider!=="color"&&this.allowAll){let l={key:"",value:{currency:"All Currencies",country:"All Countries",phone:"All Phones","us-state":"All States"}[this.provider]||"All",prefix:""};n=[l,...n.filter(d=>d.key!==l.key)]}return u`
3652
3661
  <zn-select id="select"
3653
3662
  clearable=${this.clearable||G}
3654
3663
  size="${this.size}"
@@ -3833,7 +3842,7 @@ ${ua(this.code(r,t))}
3833
3842
  <zn-button icon="keyboard_arrow_down"></zn-button>
3834
3843
  </zn-button-group>
3835
3844
  </div>
3836
- `}checkValidity(){return this._isButton()&&this.button?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this._isButton()&&this.button?this.button.reportValidity():!0}setCustomValidity(t){this._isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}get validity(){return this._isButton()&&this.button?this.button.validity:Ce}get validationMessage(){return this._isButton()&&this.button?this.button.validationMessage:""}_isButton(){return this.type==="submit"||this.type==="button"||this.type==="reset"}};$r.styles=A(Tw),c([p()],$r.prototype,"caption",2),c([p()],$r.prototype,"href",2),c([p()],$r.prototype,"name",2),c([p()],$r.prototype,"value",2),c([ue()],$r.prototype,"defaultValue",2),c([p()],$r.prototype,"type",2),c([F("zn-dropdown")],$r.prototype,"dropdown",2),c([F("zn-button#trigger-btn")],$r.prototype,"button",2);var VA=$r;$r.define("zn-split-button");var Aw=T`@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}:host *,:host *::before,:host *::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)}.content-block{background-color:var(--zn-note-background,rgba(var(--zn-panel),var(--zn-panel-opacity)));border-bottom:1px solid rgb(var(--zn-border-color));padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}.content-block-header{display:flex;align-items:center;gap:var(--zn-spacing-small);width:100%;max-width:100%;padding-block:var(--zn-spacing-small);position:relative}.content-block--collapsible .content-block-header{cursor:pointer}.content-block-header__icon{display:flex;align-items:center;flex-shrink:0}.content-block-header__main{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-small);min-width:0;flex-grow:1;overflow:hidden}.content-block-header__caption{font-weight:var(--zn-text-h1-font-weight);font-size:var(--zn-text-h1-font-size);color:rgba(var(--zn-text-panel-title),100%);line-height:var(--zn-icon-size,20px);margin:0;display:flex;align-items:center;gap:var(--zn-spacing-small);flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content-block-header__subject{flex:1 1 auto;min-width:0;font-size:var(--zn-font-size-medium);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content-block-header__subject--empty{opacity:0.5}.content-block-header__description{flex:1 1 auto;min-width:0;font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text-muted));overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:none}.content-block-header__attachments{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted));flex-shrink:0;margin-left:auto}.content-block-header__actions{display:flex;align-items:center;gap:var(--zn-spacing-small);margin-left:auto;flex-shrink:0}.content-block__attachments{display:none;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--zn-spacing-small);padding-block-end:var(--zn-spacing-small)}.content-block__attachments--visible{display:flex}.content-block__attachments ::slotted(zn-chat-message-attachment){min-width:0}.content-block--short zn-sp,.content-block--short .content-block__attachments{display:none}.content-block--short .content-block-header__description{display:block}@container (max-width:599px){.content-block--short .content-block-header__description{display:none}}.text-section{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)}.text-section a{font-size:var(--zn-font-size-small);opacity:0.8}.hidden{display:none}ol{counter-reset:list-0 0}@supports (counter-set:none){ol li,ul li{counter-set:list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0}}ol,ul{padding:0;margin:0}li[data-list=checked]>.ql-ui,li[data-list=unchecked]>.ql-ui{color:#777}li{list-style-type:none;position:relative}ul>li::before{content:"•"}ol>li{counter-increment:list-0}ol>li::before{content:counter(list-0) ". "}li[data-list=checked]::before{content:"☑"}li[data-list=unchecked]::before{content:"☐"}li[data-list=checked]::before,li[data-list=unchecked]::before{color:#777}ol li::before,ul li::before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}li:has(>.ql-ui)::before{content:none;display:none}`;var He=class extends S{constructor(){super(...arguments);this.time="";this.sender="";this.avatar="";this.subject="";this.subjectPlaceholder="";this.outbound=!1;this.noCollapse=!1;this.short=!1;this.defaultDisplay="text";this.hasSlotController=new Q(this,"text","html");this.attachmentCount=0;this._textRows=[];this._footerObserver=new Pt(this,{target:null,config:{subtree:!0,childList:!0,attributes:!0,attributeFilter:["href","download","caption"]},callback:()=>this._debouncedReplace()});this._replaceDebounce=0}connectedCallback(){super.connectedCallback(),this.iframe.then(t=>{if(t.contentDocument){let o=this.htmlNodes[0];if(o){let n=o?.innerHTML??"";n=n.replace(/&nbsp;/g," "),n=n.replace(/&lt;/g,"<"),n=n.replace(/&gt;/g,">"),n=n.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");let a="<style>body,html{background-color: #ffffff}img{max-width:100%; max-height: 500px;}</style>";t.srcdoc=a+n}}t.addEventListener("load",()=>{setTimeout(()=>this._resizeIframe(t),50)})})}disconnectedCallback(){this._replaceDebounce&&(clearTimeout(this._replaceDebounce),this._replaceDebounce=0),super.disconnectedCallback()}_collapseContent(t){this.noCollapse||t.composedPath().some(n=>n instanceof HTMLElement&&n.classList.contains("content-block-header__actions"))||(this.short=!this.short,this.requestUpdate(),this.updateComplete.then(()=>{this.short||this.iframe.then(n=>{n&&!n.classList.contains("hidden")&&this._resizeIframe(n)})}))}_toggleText(){let t=this.shadowRoot?.querySelector(".text-content");this.iframe.then(o=>{t&&(o.classList.add("hidden"),t.classList.remove("hidden"))})}_toggleHtml(){let t=this.shadowRoot?.querySelector(".text-content");this.iframe.then(o=>{t&&(o.classList.remove("hidden"),t.classList.add("hidden"),setTimeout(()=>this._resizeIframe(o),0))})}_resizeIframe(t){let o=n=>{let a=n.contentDocument;if(!a)return;n.style.height="auto";let s=a.body,l=a.documentElement,d=[s?.scrollHeight??0,l?.scrollHeight??0,s?.offsetHeight??0,l?.offsetHeight??0],h=Math.max(...d);h>0&&(n.style.height=`${h}px`)};t?o(t):this.iframe.then(n=>{n?.contentDocument&&requestAnimationFrame(()=>o(n))})}handleAttachmentsSlotChange(){this.syncAttachmentCount()}syncAttachmentCount(){let t=this.shadowRoot?.querySelector('slot[name="attachments"]');this.attachmentCount=t?.assignedElements().length??0}firstUpdated(t){super.firstUpdated(t),this.syncAttachmentCount(),Promise.resolve().then(()=>this.syncAttachmentCount());let o=this.shadowRoot?.querySelectorAll(".text-section");o&&o.length>0&&o.forEach(n=>{n.innerHTML=n.innerHTML.replace(/&nbsp;/g," "),n.innerHTML=n.innerHTML.replace(/<!--[\s\S]*?-->/g,""),n.innerHTML=n.innerHTML.replace(/<\/p><br>/g,"</p>")})}render(){let t=this.getTextSections(),o=this.querySelector(':scope > [slot="footer"]')!==null,n=this.hasSlotController.test("text"),a=this.hasSlotController.test("html"),s=n&&a,l=a&&(!n||this.defaultDisplay==="html");return u`
3845
+ `}checkValidity(){return this._isButton()&&this.button?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this._isButton()&&this.button?this.button.reportValidity():!0}setCustomValidity(t){this._isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}get validity(){return this._isButton()&&this.button?this.button.validity:Ce}get validationMessage(){return this._isButton()&&this.button?this.button.validationMessage:""}_isButton(){return this.type==="submit"||this.type==="button"||this.type==="reset"}};$r.styles=A(Tw),c([p()],$r.prototype,"caption",2),c([p()],$r.prototype,"href",2),c([p()],$r.prototype,"name",2),c([p()],$r.prototype,"value",2),c([ue()],$r.prototype,"defaultValue",2),c([p()],$r.prototype,"type",2),c([F("zn-dropdown")],$r.prototype,"dropdown",2),c([F("zn-button#trigger-btn")],$r.prototype,"button",2);var VA=$r;$r.define("zn-split-button");var Aw=T`@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}:host *,:host *::before,:host *::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)}.content-block{background-color:var(--zn-note-background,rgba(var(--zn-panel),var(--zn-panel-opacity)));border-bottom:1px solid rgb(var(--zn-border-color));padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}.content-block-header{display:flex;align-items:center;gap:var(--zn-spacing-small);width:100%;max-width:100%;padding-block:var(--zn-spacing-small);position:relative}.content-block--collapsible .content-block-header{cursor:pointer}.content-block-header__icon{display:flex;align-items:center;flex-shrink:0}.content-block-header__main{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-small);min-width:0;flex-grow:1;overflow:hidden}.content-block-header__caption{font-weight:var(--zn-text-h1-font-weight);font-size:var(--zn-text-h1-font-size);color:rgba(var(--zn-text-panel-title),100%);line-height:var(--zn-icon-size,20px);margin:0;display:flex;align-items:center;gap:var(--zn-spacing-small);flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content-block-header__subject{flex:1 1 auto;min-width:0;font-size:var(--zn-font-size-medium);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content-block-header__subject--empty{opacity:0.5}.content-block-header__description{flex:1 1 auto;min-width:0;font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text-muted));overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:none}.content-block-header__attachments{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted));flex-shrink:0;margin-left:auto}.content-block-header__actions{display:flex;align-items:center;gap:var(--zn-spacing-small);margin-left:auto;flex-shrink:0}.content-block__attachments{display:none;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--zn-spacing-small);padding-block-end:var(--zn-spacing-small)}.content-block__attachments--visible{display:flex}.content-block__attachments ::slotted(zn-chat-message-attachment){min-width:0}.content-block--short zn-sp,.content-block--short .content-block__attachments{display:none}.content-block--short .content-block-header__description{display:block}@container (max-width:599px){.content-block--short .content-block-header__description{display:none}}.text-section{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)}.text-section a{font-size:var(--zn-font-size-small);opacity:0.8}.hidden{display:none}ol{counter-reset:list-0 0}@supports (counter-set:none){ol li,ul li{counter-set:list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0}}ol,ul{padding:0;margin:0}li[data-list=checked]>.ql-ui,li[data-list=unchecked]>.ql-ui{color:#777}li{list-style-type:none;position:relative}ul>li::before{content:"•"}ol>li{counter-increment:list-0}ol>li::before{content:counter(list-0) ". "}li[data-list=checked]::before{content:"☑"}li[data-list=unchecked]::before{content:"☐"}li[data-list=checked]::before,li[data-list=unchecked]::before{color:#777}ol li::before,ul li::before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}li:has(>.ql-ui)::before{content:none;display:none}`;var He=class extends S{constructor(){super(...arguments);this.time="";this.sender="";this.avatar="";this.subject="";this.subjectPlaceholder="";this.outbound=!1;this.noCollapse=!1;this.short=!1;this.defaultDisplay="text";this.hasSlotController=new Q(this,"text","html");this.attachmentCount=0;this._textRows=[];this._footerObserver=new Ht(this,{target:null,config:{subtree:!0,childList:!0,attributes:!0,attributeFilter:["href","download","caption"]},callback:()=>this._debouncedReplace()});this._replaceDebounce=0}connectedCallback(){super.connectedCallback(),this.iframe.then(t=>{if(t.contentDocument){let o=this.htmlNodes[0];if(o){let n=o?.innerHTML??"";n=n.replace(/&nbsp;/g," "),n=n.replace(/&lt;/g,"<"),n=n.replace(/&gt;/g,">"),n=n.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");let a="<style>body,html{background-color: #ffffff}img{max-width:100%; max-height: 500px;}</style>";t.srcdoc=a+n}}t.addEventListener("load",()=>{setTimeout(()=>this._resizeIframe(t),50)})})}disconnectedCallback(){this._replaceDebounce&&(clearTimeout(this._replaceDebounce),this._replaceDebounce=0),super.disconnectedCallback()}_collapseContent(t){this.noCollapse||t.composedPath().some(n=>n instanceof HTMLElement&&n.classList.contains("content-block-header__actions"))||(this.short=!this.short,this.requestUpdate(),this.updateComplete.then(()=>{this.short||this.iframe.then(n=>{n&&!n.classList.contains("hidden")&&this._resizeIframe(n)})}))}_toggleText(){let t=this.shadowRoot?.querySelector(".text-content");this.iframe.then(o=>{t&&(o.classList.add("hidden"),t.classList.remove("hidden"))})}_toggleHtml(){let t=this.shadowRoot?.querySelector(".text-content");this.iframe.then(o=>{t&&(o.classList.remove("hidden"),t.classList.add("hidden"),setTimeout(()=>this._resizeIframe(o),0))})}_resizeIframe(t){let o=n=>{let a=n.contentDocument;if(!a)return;n.style.height="auto";let s=a.body,l=a.documentElement,d=[s?.scrollHeight??0,l?.scrollHeight??0,s?.offsetHeight??0,l?.offsetHeight??0],h=Math.max(...d);h>0&&(n.style.height=`${h}px`)};t?o(t):this.iframe.then(n=>{n?.contentDocument&&requestAnimationFrame(()=>o(n))})}handleAttachmentsSlotChange(){this.syncAttachmentCount()}syncAttachmentCount(){let t=this.shadowRoot?.querySelector('slot[name="attachments"]');this.attachmentCount=t?.assignedElements().length??0}firstUpdated(t){super.firstUpdated(t),this.syncAttachmentCount(),Promise.resolve().then(()=>this.syncAttachmentCount());let o=this.shadowRoot?.querySelectorAll(".text-section");o&&o.length>0&&o.forEach(n=>{n.innerHTML=n.innerHTML.replace(/&nbsp;/g," "),n.innerHTML=n.innerHTML.replace(/<!--[\s\S]*?-->/g,""),n.innerHTML=n.innerHTML.replace(/<\/p><br>/g,"</p>")})}render(){let t=this.getTextSections(),o=this.querySelector(':scope > [slot="footer"]')!==null,n=this.hasSlotController.test("text"),a=this.hasSlotController.test("html"),s=n&&a,l=a&&(!n||this.defaultDisplay==="html");return u`
3837
3846
  <div class="${N({"content-block":!0,"content-block--outbound":this.outbound,"content-block--short":this.short,"content-block--collapsible":!this.noCollapse})}">
3838
3847
 
3839
3848
  <div class="content-block-header" @click="${this._collapseContent}">
@@ -3913,7 +3922,7 @@ ${ua(this.code(r,t))}
3913
3922
  `}render(){return u`
3914
3923
  <slot></slot>
3915
3924
  ${this.hasSubmitButton?"":this.renderDefaultButton()}
3916
- `}};Mi.styles=A($w),c([p()],Mi.prototype,"button",2);var jA=Mi;Mi.define("zn-filter-wrapper");var qw=T`@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}:host *,:host *::before,:host *::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}.container{padding-bottom:50px}.container--scroll{height:100%;width:100%;overflow:hidden;position:relative}.container--scroll .scroll-content{height:100%;width:100%;overflow:auto;box-sizing:border-box}.setting-container__dropdown{z-index:10;position:absolute;border-radius:50%;width:32px;height:32px;padding:4px;background:rgba(var(--zn-panel,0.8));box-shadow:var(--zn-shadow-small);opacity:0.7;transition-duration:0.3s;transition-property:opacity}.setting-container__dropdown:hover{background:rgba(var(--zn-panel,1))}.setting-container__dropdown--top-end{top:var(--zn-base-gap);right:calc(var(--zn-base-gap) + var(--zn-gutter));bottom:auto}.setting-container__dropdown--top-start{top:var(--zn-base-gap);right:auto;left:calc(var(--zn-base-gap) + var(--zn-gutter));bottom:auto}.setting-container__dropdown--bottom-end{bottom:calc(var(--zn-base-gap) + var(--zn-scroll-footer-height,0px));right:calc(var(--zn-base-gap) + var(--zn-gutter));top:auto}.setting-container__dropdown--bottom-start{bottom:calc(var(--zn-base-gap) + var(--zn-scroll-footer-height,0px));left:calc(var(--zn-base-gap) + var(--zn-gutter));top:auto}.setting-container__dropdown[open],.setting-container__dropdown:hover{opacity:1}.setting-container__toggle-button::part(icon){rotate:0deg;transition:rotate 0.9s ease-in-out,color 0.9s ease-in-out}.setting-container__dropdown[open] .setting-container__toggle-button::part(icon),.setting-container__toggle-button:hover::part(icon){color:rgb(var(--zn-primary));cursor:pointer;rotate:380deg}zn-button{border-radius:var(--zn-border-radius)}.pull-tab{position:absolute;top:0;right:calc(var(--zn-base-gap) + var(--zn-gutter));z-index:20;display:flex;flex-direction:column;align-items:flex-end;max-height:100%}.pull-tab__panel{display:grid;grid-template-rows:0fr;min-height:0;overflow:hidden;background-color:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-top:none;border-bottom-width:0;border-radius:0 0 0 var(--zn-border-radius);transition:grid-template-rows 0.22s ease,border-bottom-width 0s linear 0.22s;will-change:grid-template-rows}.pull-tab--open .pull-tab__panel{grid-template-rows:1fr;border-bottom-width:1px;transition:grid-template-rows 0.22s ease,border-bottom-width 0s linear 0s}.pull-tab__panel-content{min-height:0;overflow:hidden}.pull-tab__panel-content .settings-container__dropdown-content{border:none;box-shadow:none;border-radius:0;margin-bottom:0;max-width:none;width:auto}.pull-tab--expanded .pull-tab__panel-content{overflow-y:auto}.pull-tab__tab{flex-shrink:0;background-color:rgb(var(--zn-panel));color:rgb(var(--zn-text-heading));border:1px solid rgb(var(--zn-border-color));border-top:none;border-radius:0 0 10px 10px;padding:var(--zn-spacing-x-small);cursor:pointer;display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);max-height:36px;overflow:hidden;margin-top:-1px}.pull-tab__tab:hover{background-color:rgb(var(--zn-shadow))}.pull-tab__tab:focus-visible{outline:2px solid rgb(var(--zn-primary));outline-offset:-2px}.settings-container__dropdown-content{display:flex;flex-direction:column;gap:var(--zn-spacing-small);background-color:rgb(var(--zn-panel));padding:var(--zn-spacing-small);box-shadow:var(--zn-shadow-small);border-radius:var(--zn-border-radius);max-width:var(--zn-size-mpanel);width:-moz-fit-content;width:fit-content;z-index:20;border:1px solid rgb(var(--zn-border-color));margin-bottom:10px}`;var Kr=class extends S{constructor(){super(...arguments);this.filters=[];this.position="bottom-start";this.pullTab=!1;this.open=!1;this.panelExpanded=!1;this._mutationObserver=new Pt(this,{target:null,config:{childList:!0,subtree:!0,attributes:!0},callback:t=>{for(let o of t)if(!(o.type==="attributes"&&(o.attributeName==="hidden"||this.filters.some(n=>n.toggleAttribute===o.attributeName)))){this.scheduleUpdateFilters();break}}});this._updateFiltersScheduled=!1;this._hiddenElements=new Set;this.handleDocumentMouseDown=t=>{if(!this.open)return;let o=this.shadowRoot?.querySelector(".pull-tab");o&&t.composedPath().includes(o)||this.hidePullTab()};this.togglePullTab=()=>{this.open?this.hidePullTab():(this.open=!0,document.addEventListener("mousedown",this.handleDocumentMouseDown,!0),this.emit("zn-show"))};this.handlePanelTransitionEnd=t=>{t.propertyName==="grid-template-rows"&&(this.panelExpanded=this.open)};this.handleContentSlotChange=()=>{this.updateFilters()};this.handleFiltersSlotChange=()=>{this.recomputeFiltersFromSlot(),this.updateFilters()}}connectedCallback(){if(super.connectedCallback(),this._store=new sr(window.sessionStorage,this.storeKey),this.recomputeFiltersFromSlot(),this.storeKey){let t=this._store.get("filters");if(t){let o=JSON.parse(t);this.filters=this.filters.map(n=>({...n,checked:Object.prototype.hasOwnProperty.call(o,n.attribute)?o[n.attribute]:n.checked}))}}this.updateFilters(),this._mutationObserver.observe(this)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0),super.disconnectedCallback()}hidePullTab(){this.open=!1,this.panelExpanded=!1,document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0),this.emit("zn-hide")}scheduleUpdateFilters(){this._updateFiltersScheduled||(this._updateFiltersScheduled=!0,Promise.resolve().then(()=>{this._updateFiltersScheduled=!1,this.updateFilters()}))}recomputeFiltersFromSlot(){let t=new Map(this.filters.map(a=>[a.attribute,a.checked])),o=this.querySelectorAll('[slot="filter"]'),n=[];o.forEach(a=>{let s=a.getAttribute("attribute");if(!s)return;let l=a.getAttribute("default")==="true",d=t.has(s)?!!t.get(s):l,h=a.textContent||"Unnamed Filter",m=a.getAttribute("item-selector")||"*",f=a.getAttribute("toggle-attribute")||void 0;n.push({attribute:s,checked:d,label:h,itemSelector:m,toggleAttribute:f})}),this.filters=n}updateSingleFilter(t,o){let n,a=t.attribute==="*"?"":`[${t.attribute}]`;t.itemSelector&&t.itemSelector.startsWith(">")?n=It(t.itemSelector.substring(1)+a,this,""):n=this.querySelectorAll(t.itemSelector+a),n.forEach(s=>{if(t.toggleAttribute){o?s.removeAttribute(t.toggleAttribute):s.setAttribute(t.toggleAttribute,"true");return}o?this.filters.some(d=>{if(d.attribute===t.attribute||d.checked||d.toggleAttribute)return!1;let h=d.attribute==="*"?"":`[${d.attribute}]`,m;return d.itemSelector&&d.itemSelector.startsWith(">")?m=It(d.itemSelector.substring(1)+h,this,""):m=this.querySelectorAll(d.itemSelector+h),Array.from(m).includes(s)})||(s.removeAttribute("hidden"),this._hiddenElements.delete(s)):(s.setAttribute("hidden","true"),this._hiddenElements.add(s))})}updateFilters(){this._hiddenElements.forEach(t=>t.removeAttribute("hidden")),this._hiddenElements.clear(),this.filters.forEach(t=>{this.updateSingleFilter(t,t.checked)})}updateFilter(t){let o=t.target.getAttribute("data-attribute"),n=t.target.isChecked,a=this.filters.find(s=>s.attribute===o);if(a){if(this.filters=this.filters.map(s=>s.attribute===o?{...s,checked:n}:s),this.storeKey){let s=this.filters.reduce((l,d)=>(l[d.attribute]=d.checked,l),{});this._store.set("filters",JSON.stringify(s))}this.updateSingleFilter(a,n)}}render(){let t="top-start";switch(this.position){case"top-end":t="bottom-end";break;case"top-start":t="bottom-start";break;case"bottom-end":t="top-end";break;case"bottom-start":t="top-start";break}return u`
3925
+ `}};Mi.styles=A($w),c([p()],Mi.prototype,"button",2);var jA=Mi;Mi.define("zn-filter-wrapper");var qw=T`@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}:host *,:host *::before,:host *::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}.container{padding-bottom:50px}.container--scroll{height:100%;width:100%;overflow:hidden;position:relative}.container--scroll .scroll-content{height:100%;width:100%;overflow:auto;box-sizing:border-box}.setting-container__dropdown{z-index:10;position:absolute;border-radius:50%;width:32px;height:32px;padding:4px;background:rgba(var(--zn-panel,0.8));box-shadow:var(--zn-shadow-small);opacity:0.7;transition-duration:0.3s;transition-property:opacity}.setting-container__dropdown:hover{background:rgba(var(--zn-panel,1))}.setting-container__dropdown--top-end{top:var(--zn-base-gap);right:calc(var(--zn-base-gap) + var(--zn-gutter));bottom:auto}.setting-container__dropdown--top-start{top:var(--zn-base-gap);right:auto;left:calc(var(--zn-base-gap) + var(--zn-gutter));bottom:auto}.setting-container__dropdown--bottom-end{bottom:calc(var(--zn-base-gap) + var(--zn-scroll-footer-height,0px));right:calc(var(--zn-base-gap) + var(--zn-gutter));top:auto}.setting-container__dropdown--bottom-start{bottom:calc(var(--zn-base-gap) + var(--zn-scroll-footer-height,0px));left:calc(var(--zn-base-gap) + var(--zn-gutter));top:auto}.setting-container__dropdown[open],.setting-container__dropdown:hover{opacity:1}.setting-container__toggle-button::part(icon){rotate:0deg;transition:rotate 0.9s ease-in-out,color 0.9s ease-in-out}.setting-container__dropdown[open] .setting-container__toggle-button::part(icon),.setting-container__toggle-button:hover::part(icon){color:rgb(var(--zn-primary));cursor:pointer;rotate:380deg}zn-button{border-radius:var(--zn-border-radius)}.pull-tab{position:absolute;top:0;right:calc(var(--zn-base-gap) + var(--zn-gutter));z-index:20;display:flex;flex-direction:column;align-items:flex-end;max-height:100%}.pull-tab__panel{display:grid;grid-template-rows:0fr;min-height:0;overflow:hidden;background-color:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-top:none;border-bottom-width:0;border-radius:0 0 0 var(--zn-border-radius);transition:grid-template-rows 0.22s ease,border-bottom-width 0s linear 0.22s;will-change:grid-template-rows}.pull-tab--open .pull-tab__panel{grid-template-rows:1fr;border-bottom-width:1px;transition:grid-template-rows 0.22s ease,border-bottom-width 0s linear 0s}.pull-tab__panel-content{min-height:0;overflow:hidden}.pull-tab__panel-content .settings-container__dropdown-content{border:none;box-shadow:none;border-radius:0;margin-bottom:0;max-width:none;width:auto}.pull-tab--expanded .pull-tab__panel-content{overflow-y:auto}.pull-tab__tab{flex-shrink:0;background-color:rgb(var(--zn-panel));color:rgb(var(--zn-text-heading));border:1px solid rgb(var(--zn-border-color));border-top:none;border-radius:0 0 10px 10px;padding:var(--zn-spacing-x-small);cursor:pointer;display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);max-height:36px;overflow:hidden;margin-top:-1px}.pull-tab__tab:hover{background-color:rgb(var(--zn-shadow))}.pull-tab__tab:focus-visible{outline:2px solid rgb(var(--zn-primary));outline-offset:-2px}.settings-container__dropdown-content{display:flex;flex-direction:column;gap:var(--zn-spacing-small);background-color:rgb(var(--zn-panel));padding:var(--zn-spacing-small);box-shadow:var(--zn-shadow-small);border-radius:var(--zn-border-radius);max-width:var(--zn-size-mpanel);width:-moz-fit-content;width:fit-content;z-index:20;border:1px solid rgb(var(--zn-border-color));margin-bottom:10px}`;var Kr=class extends S{constructor(){super(...arguments);this.filters=[];this.position="bottom-start";this.pullTab=!1;this.open=!1;this.panelExpanded=!1;this._mutationObserver=new Ht(this,{target:null,config:{childList:!0,subtree:!0,attributes:!0},callback:t=>{for(let o of t)if(!(o.type==="attributes"&&(o.attributeName==="hidden"||this.filters.some(n=>n.toggleAttribute===o.attributeName)))){this.scheduleUpdateFilters();break}}});this._updateFiltersScheduled=!1;this._hiddenElements=new Set;this.handleDocumentMouseDown=t=>{if(!this.open)return;let o=this.shadowRoot?.querySelector(".pull-tab");o&&t.composedPath().includes(o)||this.hidePullTab()};this.togglePullTab=()=>{this.open?this.hidePullTab():(this.open=!0,document.addEventListener("mousedown",this.handleDocumentMouseDown,!0),this.emit("zn-show"))};this.handlePanelTransitionEnd=t=>{t.propertyName==="grid-template-rows"&&(this.panelExpanded=this.open)};this.handleContentSlotChange=()=>{this.updateFilters()};this.handleFiltersSlotChange=()=>{this.recomputeFiltersFromSlot(),this.updateFilters()}}connectedCallback(){if(super.connectedCallback(),this._store=new sr(window.sessionStorage,this.storeKey),this.recomputeFiltersFromSlot(),this.storeKey){let t=this._store.get("filters");if(t){let o=JSON.parse(t);this.filters=this.filters.map(n=>({...n,checked:Object.prototype.hasOwnProperty.call(o,n.attribute)?o[n.attribute]:n.checked}))}}this.updateFilters(),this._mutationObserver.observe(this)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0),super.disconnectedCallback()}hidePullTab(){this.open=!1,this.panelExpanded=!1,document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0),this.emit("zn-hide")}scheduleUpdateFilters(){this._updateFiltersScheduled||(this._updateFiltersScheduled=!0,Promise.resolve().then(()=>{this._updateFiltersScheduled=!1,this.updateFilters()}))}recomputeFiltersFromSlot(){let t=new Map(this.filters.map(a=>[a.attribute,a.checked])),o=this.querySelectorAll('[slot="filter"]'),n=[];o.forEach(a=>{let s=a.getAttribute("attribute");if(!s)return;let l=a.getAttribute("default")==="true",d=t.has(s)?!!t.get(s):l,h=a.textContent||"Unnamed Filter",m=a.getAttribute("item-selector")||"*",f=a.getAttribute("toggle-attribute")||void 0;n.push({attribute:s,checked:d,label:h,itemSelector:m,toggleAttribute:f})}),this.filters=n}updateSingleFilter(t,o){let n,a=t.attribute==="*"?"":`[${t.attribute}]`;t.itemSelector&&t.itemSelector.startsWith(">")?n=It(t.itemSelector.substring(1)+a,this,""):n=this.querySelectorAll(t.itemSelector+a),n.forEach(s=>{if(t.toggleAttribute){o?s.removeAttribute(t.toggleAttribute):s.setAttribute(t.toggleAttribute,"true");return}o?this.filters.some(d=>{if(d.attribute===t.attribute||d.checked||d.toggleAttribute)return!1;let h=d.attribute==="*"?"":`[${d.attribute}]`,m;return d.itemSelector&&d.itemSelector.startsWith(">")?m=It(d.itemSelector.substring(1)+h,this,""):m=this.querySelectorAll(d.itemSelector+h),Array.from(m).includes(s)})||(s.removeAttribute("hidden"),this._hiddenElements.delete(s)):(s.setAttribute("hidden","true"),this._hiddenElements.add(s))})}updateFilters(){this._hiddenElements.forEach(t=>t.removeAttribute("hidden")),this._hiddenElements.clear(),this.filters.forEach(t=>{this.updateSingleFilter(t,t.checked)})}updateFilter(t){let o=t.target.getAttribute("data-attribute"),n=t.target.isChecked,a=this.filters.find(s=>s.attribute===o);if(a){if(this.filters=this.filters.map(s=>s.attribute===o?{...s,checked:n}:s),this.storeKey){let s=this.filters.reduce((l,d)=>(l[d.attribute]=d.checked,l),{});this._store.set("filters",JSON.stringify(s))}this.updateSingleFilter(a,n)}}render(){let t="top-start";switch(this.position){case"top-end":t="bottom-end";break;case"top-start":t="bottom-start";break;case"bottom-end":t="top-end";break;case"bottom-start":t="top-start";break}return u`
3917
3926
  <div class="${N({container:!0,"container--scroll":!this.noScroll})}">
3918
3927
  <div class="scroll-content">
3919
3928
  <slot @slotchange="${this.handleContentSlotChange}"></slot>