PageSourceSearch

https://www.barnesjunior.co.uk/chunk-FMGJTS22.js

js barnesjunior.co.uk collected 2026-10-08 06:46:28 UTC 647,713 bytes, 98 lines download raw bytes

1import{a as Vt,c as On}from"./chunk-EW4BODTQ.js";import{c as $u,d as Hu,f as Il,g as xl,h as Uu}from"./chunk-HAHWC5U6.js";import{$b as pn,Ac as wp,Bc as Ep,C as Nr,Ca as Qu,Cc as qr,D as Gu,E as Hs,Eb as dp,F as Fr,Fa as So,Fb as up,Fc as Sp,G as we,Ga as hr,Gb as ii,Ha as Gs,Hb as jt,Hc as Ip,I as Tl,Ib as kl,Ic as Rl,Jb as pp,Jc as xp,Ka as ep,Kb as hp,Kc as Tp,La as Io,Lb as ni,Lc as Pp,Ma as tp,Mb as gi,Mc as mr,Nc as To,Ob as Ys,Oc as vi,Pa as Ue,Pb as Ks,Pc as Po,Qa as ip,Qb as Dl,Qc as ki,R as Wu,Ra as Br,Rb as fp,Rc as Ol,Sa as np,Sb as mp,T as zr,Tb as gp,Tc as Qs,Ub as vp,Vb as Xs,Wb as Js,Xc as $i,Ya as jr,Yb as xo,Zb as Ml,_ as Us,_b as fr,_c as kp,a as hi,aa as qu,ba as Pl,bd as Dp,c as js,ca as Yu,cd as Ll,da as fi,e as ju,f as Lr,gb as $r,gc as Al,ha as At,hb as rp,hc as Zs,i as Ce,ib as Hr,ic as _p,j as Ke,jb as ji,k as Ie,kb as op,la as Rt,lb as mi,mb as Dn,mc as bp,md as Nl,nb as sp,nd as Mp,o as Sl,ob as un,od as Ap,pa as Ku,pb as Ur,pc as Wr,pd as Fl,qa as Xu,qb as ap,qc as dt,qd as zl,rb as Gr,rc as Ze,rd as Rp,s as $s,sb as lp,sd as Op,tb as Mn,td as Lp,ua as Vr,ub as An,ud as Np,vb as cp,wa as Bi,wc as yp,xa as Ju,xb as Ws,y as kn,ya as Eo,yb as qs,za as Zu,zb as Rn,zc as Cp}from"./chunk-BJD3J64M.js";import{$b as lr,Aa as ee,Ac as Te,Ba as te,Bc as ln,Ca as Iu,Da as xu,Db as Cl,E as _o,Ea as ht,Eb as Ti,Fa as gt,Fb as wo,G as Cu,Ga as qt,Gb as Ns,H as Tn,Hb as Rr,Hc as J,I as Ne,Ia as j,Ib as Zt,Ic as Pi,Ja as vt,Jb as $,Jc as S,Ka as Tu,Kc as dr,L as bl,Lb as Bt,Lc as ur,Ld as ct,M as bo,Mc as wl,Na as Ar,Nc as ft,Ob as ie,Oc as Ge,P as yo,Pb as Mt,Pc as We,Pd as dn,Q as Se,Qb as _t,Qd as Fu,Rb as Fs,Rd as zu,Sa as Pn,Ta as li,Tb as tt,Tc as ei,U as Co,Ua as Ft,Ub as zt,Uc as Ni,Ud as Vu,Vb as Du,Vc as Ee,Vd as Bu,Wa as Jt,Wc as Ou,X as wu,Xc as rt,Y as Eu,Ya as Pu,Yc as A,Zc as Be,_a as ze,_c as lt,a as sn,bd as Fi,c as Wt,ca as yl,cd as zi,d as Ve,da as sr,db as Os,dd as Vi,e as nt,ea as Ae,ed as Lu,f as _u,fa as an,fc as Oe,fd as ti,gc as Mu,gd as El,ha as Fe,hc as oe,id as bt,j as _l,ja as Rs,jc as se,jd as Bs,k as As,kc as Au,kd as pr,l as rr,lc as Qt,ld as Or,m as or,ma as ar,mc as st,md as Nu,na as _e,nc as at,oa as Dt,oc as W,pc as y,q as xe,qa as qe,qb as ku,qc as w,qd as fe,r as bu,ra as ye,rb as ci,rc as ge,rd as be,s as xn,sa as q,sb as Ls,sc as He,sd as cn,tc as Ye,u as yu,uc as cr,ud as pi,vc as zs,wc as Vs,x as Pe,xb as E,xc as Ru,y as xi,ya as Su}from"./chunk-IIIGC2WK.js";import{a as T,b as U,c as vu,d as Gt,e as X0,f as In,g as J0,h as nr,i as k}from"./chunk-ERIHC7P2.js";var wf=X0(()=>{"use strict";var Cf;(function(t){(function(n){var e=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:a(),i=r(t);typeof e.Reflect<"u"&&(i=r(e.Reflect,i)),n(i,e),typeof e.Reflect>"u"&&(e.Reflect=t);function r(l,c){return function(p,h){Object.defineProperty(l,p,{configurable:!0,writable:!0,value:h}),c&&c(p,h)}}function o(){try{return Function("return this;")()}catch(l){}}function s(){try{return(0,eval)("(function() { return this; })()")}catch(l){}}function a(){return o()||s()}})(function(n,e){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",l={__proto__:[]}instanceof Array,c=!a&&!l,p={create:a?function(){return vl(Object.create(null))}:l?function(){return vl({__proto__:null})}:function(){return vl({})},has:c?function(I,M){return i.call(I,M)}:function(I,M){return M in I},get:c?function(I,M){return i.call(I,M)?I[M]:void 0}:function(I,M){return I[M]}},h=Object.getPrototypeOf(Function),f=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Ms(),d=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ir(),u=typeof WeakMap=="function"?WeakMap:q0(),g=r?Symbol.for("@reflect-metadata:registry"):void 0,b=mo(),m=go(b);function v(I,M,z,Q){if(ce(z)){if(!di(I))throw new TypeError;if(!xt(M))throw new TypeError;return O(I,M)}else{if(!di(I))throw new TypeError;if(!Z(M))throw new TypeError;if(!Z(Q)&&!ce(Q)&&!Ht(Q))throw new TypeError;return Ht(Q)&&(Q=void 0),z=It(z),N(I,M,z,Q)}}n("decorate",v);function _(I,M){function z(Q,me){if(!Z(Q))throw new TypeError;if(!ce(me)&&!ai(me))throw new TypeError;H(I,M,Q,me)}return z}n("metadata",_);function D(I,M,z,Q){if(!Z(z))throw new TypeError;
1return ce(Q)||(Q=It(Q)),H(I,M,z,Q)}n("defineMetadata",D);function L(I,M,z){if(!Z(M))throw new TypeError;return ce(z)||(z=It(z)),B(I,M,z)}n("hasMetadata",L);function R(I,M,z){if(!Z(M))throw new TypeError;return ce(z)||(z=It(z)),x(I,M,z)}n("hasOwnMetadata",R);function V(I,M,z){if(!Z(M))throw new TypeError;return ce(z)||(z=It(z)),G(I,M,z)}n("getMetadata",V);function C(I,M,z){if(!Z(M))throw new TypeError;return ce(z)||(z=It(z)),Y(I,M,z)}n("getOwnMetadata",C);function K(I,M){if(!Z(I))throw new TypeError;return ce(M)||(M=It(M)),pe(I,M)}n("getMetadataKeys",K);function F(I,M){if(!Z(I))throw new TypeError;return ce(M)||(M=It(M)),Me(I,M)}n("getOwnMetadataKeys",F);function P(I,M,z){if(!Z(M))throw new TypeError;if(ce(z)||(z=It(z)),!Z(M))throw new TypeError;ce(z)||(z=It(z));var Q=ui(M,z,!1);return ce(Q)?!1:Q.OrdinaryDeleteMetadata(I,M,z)}n("deleteMetadata",P);function O(I,M){for(var z=I.length-1;z>=0;--z){var Q=I[z],me=Q(M);if(!ce(me)&&!Ht(me)){if(!xt(me))throw new TypeError;M=me}}return M}function N(I,M,z,Q){for(var me=I.length-1;me>=0;--me){var ut=I[me],Tt=ut(M,z,Q);if(!ce(Tt)&&!Ht(Tt)){if(!Z(Tt))throw new TypeError;Q=Tt}}return Q}function B(I,M,z){var Q=x(I,M,z);if(Q)return!0;var me=tr(M);return Ht(me)?!1:B(I,me,z)}function x(I,M,z){var Q=ui(M,z,!1);return ce(Q)?!1:ke(Q.OrdinaryHasOwnMetadata(I,M,z))}function G(I,M,z){var Q=x(I,M,z);if(Q)return Y(I,M,z);var me=tr(M);if(!Ht(me))return G(I,me,z)}function Y(I,M,z){var Q=ui(M,z,!1);if(!ce(Q))return Q.OrdinaryGetOwnMetadata(I,M,z)}function H(I,M,z,Q){var me=ui(z,Q,!0);me.OrdinaryDefineOwnMetadata(I,M,z,Q)}function pe(I,M){var z=Me(I,M),Q=tr(I);if(Q===null)return z;var me=pe(Q,M);if(me.length<=0)return z;if(z.length<=0)return me;for(var ut=new d,Tt=[],Re=0,re=z;Re<re.length;Re++){var le=re[Re],de=ut.has(le);de||(ut.add(le),Tt.push(le))}for(var he=0,Le=me;he<Le.length;he++){var le=Le[he],de=ut.has(le);de||(ut.add(le),Tt.push(le))}return Tt}function Me(I,M){var z=ui(I,M,!1);return z?z.OrdinaryOwnMetadataKeys(I,M):[]}function Pt(I){if(I===null)return 1;switch(typeof I){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return I===null?1:6;default:return 6}}function ce(I){return I===void 0}function Ht(I){return I===null}function X(I){return typeof I=="symbol"}function Z(I){return typeof I=="object"?I!==null:typeof I=="function"}function ae(I,M){switch(Pt(I)){case 0:return I;case 1:return I;case 2:return I;case 3:return I;case 4:return I;case 5:return I}var z=M===3?"string":M===5?"number":"default",Q=Zn(I,o);if(Q!==void 0){var me=Q.call(I,z);if(Z(me))throw new TypeError;return me}return ne(I,z==="default"?"number":z)}
1function ne(I,M){if(M==="string"){var z=I.toString;if(Ut(z)){var Q=z.call(I);if(!Z(Q))return Q}var me=I.valueOf;if(Ut(me)){var Q=me.call(I);if(!Z(Q))return Q}}else{var me=I.valueOf;if(Ut(me)){var Q=me.call(I);if(!Z(Q))return Q}var ut=I.toString;if(Ut(ut)){var Q=ut.call(I);if(!Z(Q))return Q}}throw new TypeError}function ke(I){return!!I}function kt(I){return""+I}function It(I){var M=ae(I,3);return X(M)?M:kt(M)}function di(I){return Array.isArray?Array.isArray(I):I instanceof Object?I instanceof Array:Object.prototype.toString.call(I)==="[object Array]"}function Ut(I){return typeof I=="function"}function xt(I){return typeof I=="function"}function ai(I){switch(Pt(I)){case 3:return!0;case 4:return!0;default:return!1}}function nn(I,M){return I===M||I!==I&&M!==M}function Zn(I,M){var z=I[M];if(z!=null){if(!Ut(z))throw new TypeError;return z}}function rn(I){var M=Zn(I,s);if(!Ut(M))throw new TypeError;var z=M.call(I);if(!Z(z))throw new TypeError;return z}function on(I){return I.value}function Qn(I){var M=I.next();return M.done?!1:M}function er(I){var M=I.return;M&&M.call(I)}function tr(I){var M=Object.getPrototypeOf(I);if(typeof I!="function"||I===h||M!==h)return M;var z=I.prototype,Q=z&&Object.getPrototypeOf(z);if(Q==null||Q===Object.prototype)return M;var me=Q.constructor;return typeof me!="function"||me===I?M:me}function fo(){var I;!ce(g)&&typeof e.Reflect<"u"&&!(g in e.Reflect)&&typeof e.Reflect.defineMetadata=="function"&&(I=vo(e.Reflect));var M,z,Q,me=new u,ut={registerProvider:Tt,getProvider:re,setProvider:de};return ut;function Tt(he){if(!Object.isExtensible(ut))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case I===he:break;case ce(M):M=he;break;case M===he:break;case ce(z):z=he;break;case z===he:break;default:Q===void 0&&(Q=new d),Q.add(he);break}}function Re(he,Le){if(!ce(M)){if(M.isProviderFor(he,Le))return M;if(!ce(z)){if(z.isProviderFor(he,Le))return M;if(!ce(Q))for(var et=rn(Q);;){var pt=Qn(et);if(!pt)return;var Ii=on(pt);if(Ii.isProviderFor(he,Le))return er(et),Ii}}}if(!ce(I)&&I.isProviderFor(he,Le))return I}function re(he,Le){var et=me.get(he),pt;return ce(et)||(pt=et.get(Le)),ce(pt)&&(pt=Re(he,Le),ce(pt)||(ce(et)&&(et=new f,me.set(he,et)),et.set(Le,pt))),pt}function le(he){if(ce(he))throw new TypeError;return M===he||z===he||!ce(Q)&&Q.has(he)}function de(he,Le,et){if(!le(et))throw new Error("Metadata provider not registered.");var pt=re(he,Le);if(pt!==et){if(!ce(pt))return!1;var Ii=me.get(he);ce(Ii)&&(Ii=new f,me.set(he,Ii)),Ii.set(Le,et)}return!0}}function mo(){var I;return!ce(g)&&Z(e.Reflect)&&Object.isExtensible(e.Reflect)&&(I=e.Reflect[g]),ce(I)&&(I=fo()),!ce(g)&&Z(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,g,{enumerable:!1,configurable:!1,writable:!1,value:I}),I}function go(I){var M=new u,z={isProviderFor:function(le,de){var he=M.get(le);return ce(he)?!1:he.has(de)},OrdinaryDefineOwnMetadata:Tt,OrdinaryHasOwnMetadata:me,OrdinaryGetOwnMetadata:ut,OrdinaryOwnMetadataKeys:Re,OrdinaryDeleteMetadata:re};return b.registerProvider(z),z;function Q(le,de,he){var Le=M.get(le),et=!1;if(ce(Le)){if(!he)return;Le=new f,M.set(le,Le),et=!0}var pt=Le.get(de);if(ce(pt)){if(!he)return;if(pt=new f,Le.set(de,pt),!I.setProvider(le,de,z))throw Le.delete(de),et&&M.delete(le),new Error("Wrong provider for target.")}return pt}function me(le,de,he){var Le=Q(de,he,!1);return ce(Le)?!1:ke(Le.has(le))}function ut(le,de,he){var Le=Q(de,he,!1);if(!ce(Le))return Le.get(le)}function Tt(le,de,he,Le){var et=Q(he,Le,!0);et.set(le,de)}function Re(le,de){var he=[],Le=Q(le,de,!1);if(ce(Le))return he;for(var et=Le.keys(),pt=rn(et),Ii=0;;){var gu=Qn(pt);if(!gu)return he.length=Ii,he;var Y0=on(gu);try{he[Ii]=Y0}catch(K0){try{er(pt)}finally{throw K0}}Ii++}}function re(le,de,he){var Le=Q(de,he,!1);if(ce(Le)||!Le.delete(le))return!1;if(Le.size===0){var et=M.get(de);ce(et)||(et.delete(he),et.size===0&&M.delete(et))}return!0}}function vo(I){var M=I.defineMetadata,z=I.hasOwnMetadata,Q=I.getOwnMetadata,me=I.getOwnMetadataKeys,ut=I.deleteMetadata,Tt=new u,Re={isProviderFor:function(re,le){var de=Tt.get(re);return!ce(de)&&de.has(le)?!0:me(re,le).length?(ce(de)&&(de=new d,Tt.set(re,de)),de.add(le),!0):!1},OrdinaryDefineOwnMetadata:M,OrdinaryHasOwnMetadata:z,OrdinaryGetOwnMetadata:Q,OrdinaryOwnMetadataKeys:me,OrdinaryDeleteMetadata:ut};return Re}function ui(I,M,z){var Q=b.getProvider(I,M);if(!ce(Q))return Q;if(z){if(b.setProvider(I,M,m))return m;throw new Error("Illegal state.")}}function Ms(){var I={},M=[],z=(function(){function Re(re,le,de){this._index=0,this._keys=re,this._values=le,this._selector=de}return Re.prototype["@@iterator"]=function(){return this},Re.prototype[s]=function(){return this},Re.prototype.next=function(){var re=this._index;if(re>=0&&re<this._keys.length){var le=this._selector(this._keys[re],this._values[re]);return re+1>=this._keys.length?(this._index=-1,this._keys=M,this._values=M):this._index++,{value:le,done:!1}}return{value:void 0,done:!0}},Re.prototype.throw=function(re){throw this._index>=0&&(this._index=-1,this._keys=M,this._values=M),re},Re.prototype.return=function(re){return this._index>=0&&(this._index=-1,this._keys=M,this._values=M),{value:re,done:!0}},Re})(),Q=(function(){function Re(){this._keys=[],this._values=[],this._cacheKey=I,this._cacheIndex=-2}return Object.defineProperty(Re.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Re.prototype.has=function(re){return this._find(re,!1)>=0},Re.prototype.get=function(re){var le=this._find(re,!1);return le>=0?this._values[le]:void 0},Re.prototype.set=function(re,le){var de=this._find(re,!0);return this._values[de]=le,this},Re.prototype.delete=function(re){var le=this._find(re,!1);if(le>=0){for(var de=this._keys.length,he=le+1;he<de;he++)this._keys[he-1]=this._keys[he],this._values[he-1]=this._values[he];return this._keys.length--,this._values.length--,nn(re,this._cacheKey)&&(this._cacheKey=I,this._cacheIndex=-2),!0}return!1},Re.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=I,this._cacheIndex=-2},Re.prototype.keys=function(){return new z(this._keys,this._values,me)},Re.prototype.values=function(){return new z(this._keys,this._values,ut)},Re.prototype.entries=function(){return new z(this._keys,this._values,Tt)},Re.prototype["@@iterator"]=function(){return this.entries()},Re.prototype[s]=function(){return this.entries()},Re.prototype._find=function(re,le){if(!nn(this._cacheKey,re)){this._cacheIndex=-1;for(var de=0;de<this._keys.length;de++)if(nn(this._keys[de],re)){this._cacheIndex=de;break}}return this._cacheIndex<0&&le&&(this._cacheIndex=this._keys.length,this._keys.push(re),this._values.push(void 0)),this._cacheIndex},Re})();return Q;function me(Re,re){return Re}function ut(Re,re){return re}function Tt(Re,re){return[Re,re]}}function ir(){var I=(function(){function M(){this._map=new f}return Object.defineProperty(M.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),M.prototype.has=function(z){return this._map.has(z)},M.prototype.add=function(z){return this._map.set(z,z),this},M.prototype.delete=function(z){return this._map.delete(z)},M.prototype.clear=function(){this._map.clear()},M.prototype.keys=function(){return this._map.keys()},M.prototype.values=function(){return this._map.keys()},M.prototype.entries=function(){return this._map.entries()},M.prototype["@@iterator"]=function(){return this.keys()},M.prototype[s]=function(){return this.keys()},M})();return I}function q0(){var I=16,M=p.create(),z=Q();return(function(){function re(){this._key=Q()}return re.prototype.has=function(le){var de=me(le,!1);return de!==void 0?p.has(de,this._key):!1},re.prototype.get=function(le){var de=me(le,!1);return de!==void 0?p.get(de,this._key):void 0},re.prototype.set=function(le,de){var he=me(le,!0);return he[this._key]=de,this},re.prototype.delete=function(le){var de=me(le,!1);return de!==void 0?delete de[this._key]:!1},re.prototype.clear=function(){this._key=Q()},re})();function Q(){var re;do re="@@WeakMap@@"+Re();while(p.has(M,re));return M[re]=!0,re}function me(re,le){if(!i.call(re,z)){if(!le)return;Object.defineProperty(re,z,{value:p.create()})}return re[z]}function ut(re,le){for(var de=0;de<le;++de)re[de]=Math.random()*255|0;return re}function Tt(re){if(typeof Uint8Array=="function"){var le=new Uint8Array(re);return typeof crypto<"u"?crypto.getRandomValues(le):typeof msCrypto<"u"?msCrypto.getRandomValues(le):ut(le,re),le}return ut(new Array(re),re)}function Re(){var re=Tt(I);re[6]=re[6]&79|64,re[8]=re[8]&191|128;for(var le="",de=0;de<I;++de){var he=re[de];(de===4||de===6||de===8)&&(le+="-"),he<16&&(le+="0"),le+=he.toString(16).toLowerCase()}return le}}function vl(I){return I.__=void 0,delete I.__,I}})})(Cf||(Cf={}))});function Fp(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Vl(t={},n={}){let e=["__proto__","constructor","prototype"];Object.keys(n).filter(i=>
vendor: 34,590 bytes, line 1
1e.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=n[i]:Fp(n[i])&&Fp(t[i])&&Object.keys(n[i]).length>0&&Vl(t[i],n[i])})}var zp={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Xe(){let t=typeof document<"u"?document:{};return Vl(t,zp),t}var Z0={document:zp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function je(){let t=typeof window<"u"?window:{};return Vl(t,Z0),t}function hn(t=""){return t.trim().split(" ").filter(n=>!!n.trim())}function Vp(t){let n=t;Object.keys(n).forEach(e=>{try{n[e]=null}catch(i){}try{delete n[e]}catch(i){}})}function Hi(t,n=0){return setTimeout(t,n)}function Yt(){return Date.now()}function Q0(t){let n=je(),e;return n.getComputedStyle&&(e=n.getComputedStyle(t,null)),!e&&t.currentStyle&&(e=t.currentStyle),e||(e=t.style),e}function ko(t,n="x"){let e=je(),i,r,o,s=Q0(t);return e.WebKitCSSMatrix?(r=s.transform||s.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new e.WebKitCSSMatrix(r==="none"?"":r)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=o.toString().split(",")),n==="x"&&(e.WebKitCSSMatrix?r=o.m41:i.length===16?r=parseFloat(i[12]):r=parseFloat(i[4])),n==="y"&&(e.WebKitCSSMatrix?r=o.m42:i.length===16?r=parseFloat(i[13]):r=parseFloat(i[5])),r||0}function Yr(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function eg(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function ri(...t){let n=Object(t[0]);for(let e=1;e<t.length;e+=1){let i=t[e];if(i!=null&&!eg(i)){let r=Object.keys(Object(i)).filter(o=>o!=="__proto__"&&o!=="constructor"&&o!=="prototype");for(let o=0,s=r.length;o<s;o+=1){let a=r[o],l=Object.getOwnPropertyDescriptor(i,a);l!==void 0&&l.enumerable&&(Yr(n[a])&&Yr(i[a])?i[a].__swiper__?n[a]=i[a]:ri(n[a],i[a]):!Yr(n[a])&&Yr(i[a])?(n[a]={},i[a].__swiper__?n[a]=i[a]:ri(n[a],i[a])):n[a]=i[a])}}}return n}function fn(t,n,e){t.style.setProperty(n,e)}function Bl({swiper:t,targetPosition:n,side:e}){let i=je(),r=-t.translate,o=null,s,a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);let l=n>r?"next":"prev",c=(h,f)=>l==="next"&&h>=f||l==="prev"&&h<=f,p=()=>{s=new Date().getTime(),o===null&&(o=s);let h=Math.max(Math.min((s-o)/a,1),0),f=.5-Math.cos(h*Math.PI)/2,d=r+f*(n-r);if(c(d,n)&&(d=n),t.wrapperEl.scrollTo({[e]:d}),c(d,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[e]:d})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(p)};p()}function oi(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function it(t,n=""){let e=je(),i=[...t.children];return e.HTMLSlotElement&&t instanceof HTMLSlotElement&&i.push(...t.assignedElements()),n?i.filter(r=>r.matches(n)):i}function tg(t,n){let e=[n];for(;e.length>0;){let i=e.shift();if(t===i)return!0;e.push(...i.children,...i.shadowRoot?i.shadowRoot.children:[],...i.assignedElements?i.assignedElements():[])}}function Bp(t,n){let e=je(),i=n.contains(t);return!i&&e.HTMLSlotElement&&n instanceof HTMLSlotElement&&(i=[...n.assignedElements()].includes(t),i||(i=tg(t,n))),i}function Do(t){try{console.warn(t);return}catch(n){}}function yt(t,n=[]){let e=document.createElement(t);return e.classList.add(...Array.isArray(n)?n:hn(n)),e}function gr(t){let n=je(),e=Xe(),i=t.getBoundingClientRect(),r=e.body,o=t.clientTop||r.clientTop||0,s=t.clientLeft||r.clientLeft||0,a=t===n?n.scrollY:t.scrollTop,l=t===n?n.scrollX:t.scrollLeft;return{top:i.top+a-o,left:i.left+l-s}}function jp(t,n){let e=[];for(;t.previousElementSibling;){let i=t.previousElementSibling;n?i.matches(n)&&e.push(i):e.push(i),t=i}return e}function $p(t,n){let e=[];for(;t.nextElementSibling;){let i=t.nextElementSibling;n?i.matches(n)&&e.push(i):e.push(i),t=i}return e}function mn(t,n){return je().getComputedStyle(t,null).getPropertyValue(n)}function Ln(t){let n=t,e;if(n){for(e=0;(n=n.previousSibling)!==null;)n.nodeType===1&&(e+=1);return e}}function Di(t,n){let e=[],i=t.parentElement;for(;i;)n?i.matches(n)&&e.push(i):e.push(i),i=i.parentElement;return e}function Nn(t,n){function e(i){i.target===t&&(n.call(t,i),t.removeEventListener("transitionend",e))}n&&t.addEventListener("transitionend",e)}function Mo(t,n,e){let i=je();return e?t[n==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue(n==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue(n==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function De(t){return(Array.isArray(t)?t:[t]).filter(n=>!!n)}function Fn(t){return n=>Math.abs(n)>0&&t.browser&&t.browser.need3dFix&&Math.abs(n)%90===0?n+.001:n}function Ct(t,n=""){typeof trustedTypes<"u"?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(n):t.innerHTML=n}var jl;function ig(){let t=je(),n=Xe();return{smoothScroll:n.documentElement&&n.documentElement.style&&"scrollBehavior"in n.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&n instanceof t.DocumentTouch)}}function qp(){return jl||(jl=ig()),jl}var $l;function ng({userAgent:t}={}){let n=qp(),e=je(),i=e.navigator.platform,r=t||e.navigator.userAgent,o={ios:!1,android:!1},s=e.screen.width,a=e.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/),c=r.match(/(iPad)(?!\1).*OS\s([\d_]+)/),p=r.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=i==="Win32",d=i==="MacIntel",u=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&d&&n.touch&&u.indexOf(`${s}x${a}`)>=0&&(c=r.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),d=!1),l&&!f&&(o.os="android",o.android=!0),(c||h||p)&&(o.os="ios",o.ios=!0),o}function Yp(t={}){return $l||($l=ng(t)),$l}var Hl;function rg(){let t=je(),n=Yp(),e=!1;function i(){let a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(i()){let a=String(t.navigator.userAgent);if(a.includes("Version/")){let[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(p=>Number(p));e=l<16||l===16&&c<2}}let r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=i(),s=o||r&&n.ios;return{isSafari:e||o,needPerspectiveFix:e,need3dFix:s,isWebView:r}}function Kp(){return Hl||(Hl=rg()),Hl}function og({swiper:t,on:n,emit:e}){let i=je(),r=null,o=null,s=()=>{!t||t.destroyed||!t.initialized||(e("beforeResize"),e("resize"))},a=()=>{!t||t.destroyed||!t.initialized||(r=new ResizeObserver(p=>{o=i.requestAnimationFrame(()=>{let{width:h,height:f}=t,d=h,u=f;p.forEach(({contentBoxSize:g,contentRect:b,target:m})=>{m&&m!==t.el||(d=b?b.width:(g[0]||g).inlineSize,u=b?b.height:(g[0]||g).blockSize)}),(d!==h||u!==f)&&s()})}),r.observe(t.el))},l=()=>{o&&i.cancelAnimationFrame(o),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null)},c=()=>{!t||t.destroyed||!t.initialized||e("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){a();return}i.addEventListener("resize",s),i.addEventListener("orientationchange",c)}),n("destroy",()=>{l(),i.removeEventListener("resize",s),i.removeEventListener("orientationchange",c)})}function sg({swiper:t,extendParams:n,on:e,emit:i}){let r=[],o=je(),s=(c,p={})=>{let h=o.MutationObserver||o.WebkitMutationObserver,f=new h(d=>{if(t.__preventObserver__)return;if(d.length===1){i("observerUpdate",d[0]);return}let u=function(){i("observerUpdate",d[0])};o.requestAnimationFrame?o.requestAnimationFrame(u):o.setTimeout(u,0)});f.observe(c,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:t.isElement||(typeof p.childList>"u"?!0:p).childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),r.push(f)},a=()=>{if(t.params.observer){if(t.params.observeParents){let c=Di(t.hostEl);for(let p=0;p<c.length;p+=1)s(c[p])}s(t.hostEl,{childList:t.params.observeSlideChildren}),s(t.wrapperEl,{attributes:!1})}},l=()=>{r.forEach(c=>{c.disconnect()}),r.splice(0,r.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),e("init",a),e("destroy",l)}var ag={on(t,n,e){let i=this;if(!i.eventsListeners||i.destroyed||typeof n!="function")return i;let r=e?"unshift":"push";return t.split(" ").forEach(o=>{i.eventsListeners[o]||(i.eventsListeners[o]=[]),i.eventsListeners[o][r](n)}),i},once(t,n,e){let i=this;if(!i.eventsListeners||i.destroyed||typeof n!="function")return i;function r(...o){i.off(t,r),r.__emitterProxy&&delete r.__emitterProxy,n.apply(i,o)}return r.__emitterProxy=n,i.on(t,r,e)},onAny(t,n){let e=this;if(!e.eventsListeners||e.destroyed||typeof t!="function")return e;let i=n?"unshift":"push";return e.eventsAnyListeners.indexOf(t)<0&&e.eventsAnyListeners[i](t),e},offAny(t){let n=this;if(!n.eventsListeners||n.destroyed||!n.eventsAnyListeners)return n;let e=n.eventsAnyListeners.indexOf(t);return e>=0&&n.eventsAnyListeners.splice(e,1),n},off(t,n){let e=this;return!e.eventsListeners||e.destroyed||!e.eventsListeners||t.split(" ").forEach(i=>{typeof n>"u"?e.eventsListeners[i]=[]:e.eventsListeners[i]&&e.eventsListeners[i].forEach((r,o)=>{(r===n||r.__emitterProxy&&r.__emitterProxy===n)&&e.eventsListeners[i].splice(o,1)})}),e},emit(...t){let n=this;if(!n.eventsListeners||n.destroyed||!n.eventsListeners)return n;let e,i,r;return typeof t[0]=="string"||Array.isArray(t[0])?(e=t[0],i=t.slice(1,t.length),r=n):(e=t[0].events,i=t[0].data,r=t[0].context||n),i.unshift(r),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach(a=>{a.apply(r,[s,...i])}),n.eventsListeners&&n.eventsListeners[s]&&n.eventsListeners[s].forEach(a=>{a.apply(r,i)})}),n}};function lg(){let t=this,n,e,i=t.el;typeof t.params.width<"u"&&t.params.width!==null?n=t.params.width:n=i.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?e=t.params.height:e=i.clientHeight,!(n===0&&t.isHorizontal()||e===0&&t.isVertical())&&(n=n-parseInt(mn(i,"padding-left")||0,10)-parseInt(mn(i,"padding-right")||0,10),e=e-parseInt(mn(i,"padding-top")||0,10)-parseInt(mn(i,"padding-bottom")||0,10),Number.isNaN(n)&&(n=0),Number.isNaN(e)&&(e=0),Object.assign(t,{width:n,height:e,size:t.isHorizontal()?n:e}))}function cg(){let t=this;function n(F,P){return parseFloat(F.getPropertyValue(t.getDirectionLabel(P))||0)}let e=t.params,{wrapperEl:i,slidesEl:r,rtlTranslate:o,wrongRTL:s}=t,a=t.virtual&&e.virtual.enabled,l=a?t.virtual.slides.length:t.slides.length,c=it(r,`.${t.params.slideClass}, swiper-slide`),p=a?t.virtual.slides.length:c.length,h=[],f=[],d=[],u=e.slidesOffsetBefore;typeof u=="function"&&(u=e.slidesOffsetBefore.call(t));let g=e.slidesOffsetAfter;typeof g=="function"&&(g=e.slidesOffsetAfter.call(t));let b=t.snapGrid.length,m=t.slidesGrid.length,v=t.size-u-g,_=e.spaceBetween,D=-u,L=0,R=0;if(typeof v>"u")return;typeof _=="string"&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*v:typeof _=="string"&&(_=parseFloat(_)),t.virtualSize=-_-u-g,c.forEach(F=>{o?F.style.marginLeft="":F.style.marginRight="",F.style.marginBottom="",F.style.marginTop=""}),e.centeredSlides&&e.cssMode&&(fn(i,"--swiper-centered-offset-before",""),fn(i,"--swiper-centered-offset-after","")),e.cssMode&&(fn(i,"--swiper-slides-offset-before",`${u}px`),fn(i,"--swiper-slides-offset-after",`${g}px`));let V=e.grid&&e.grid.rows>1&&t.grid;V?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let C,K=e.slidesPerView==="auto"&&e.breakpoints&&Object.keys(e.breakpoints).filter(F=>typeof e.breakpoints[F].slidesPerView<"u").length>0;for(let F=0;F<p;F+=1){C=0;let P=c[F];if(!(P&&(V&&t.grid.updateSlide(F,P,c),mn(P,"display")==="none"))){if(a&&e.slidesPerView==="auto")e.virtual.slidesPerViewAutoSlideSize&&(C=e.virtual.slidesPerViewAutoSlideSize),C&&P&&(e.roundLengths&&(C=Math.floor(C)),P.style[t.getDirectionLabel("width")]=`${C}px`);else if(e.slidesPerView==="auto"){K&&(P.style[t.getDirectionLabel("width")]="");let O=getComputedStyle(P),N=P.style.transform,B=P.style.webkitTransform;if(N&&(P.style.transform="none"),B&&(P.style.webkitTransform="none"),e.roundLengths)C=t.isHorizontal()?Mo(P,"width",!0):Mo(P,"height",!0);else{let x=n(O,"width"),G=n(O,"padding-left"),Y=n(O,"padding-right"),H=n(O,"margin-left"),pe=n(O,"margin-right"),Me=O.getPropertyValue("box-sizing");if(Me&&Me==="border-box")C=x+H+pe;else{let{clientWidth:Pt,offsetWidth:ce}=P;C=x+G+Y+H+pe+(ce-Pt)}}N&&(P.style.transform=N),B&&(P.style.webkitTransform=B),e.roundLengths&&(C=Math.floor(C))}else C=(v-(e.slidesPerView-1)*_)/e.slidesPerView,e.roundLengths&&(C=Math.floor(C)),P&&(P.style[t.getDirectionLabel("width")]=`${C}px`);P&&(P.swiperSlideSize=C),d.push(C),e.centeredSlides?(D=D+C/2+L/2+_,L===0&&F!==0&&(D=D-v/2-_),F===0&&(D=D-v/2-_),Math.abs(D)<1/1e3&&(D=0),e.roundLengths&&(D=Math.floor(D)),R%e.slidesPerGroup===0&&h.push(D),f.push(D)):(e.roundLengths&&(D=Math.floor(D)),(R-Math.min(t.params.slidesPerGroupSkip,R))%t.params.slidesPerGroup===0&&h.push(D),f.push(D),D=D+C+_),t.virtualSize+=C+_,L=C,R+=1}}if(t.virtualSize=Math.max(t.virtualSize,v)+g,o&&s&&(e.effect==="slide"||e.effect==="coverflow")&&(i.style.width=`${t.virtualSize+_}px`),e.setWrapperSize&&(i.style[t.getDirectionLabel("width")]=`${t.virtualSize+_}px`),V&&t.grid.updateWrapperSize(C,h),!e.centeredSlides){let F=e.slidesPerView!=="auto"&&e.slidesPerView%1!==0,P=e.snapToSlideEdge&&!e.loop&&(e.slidesPerView==="auto"||F),O=h.length;if(P){let B;if(e.slidesPerView==="auto"){B=1;let x=0;for(let G=d.length-1;G>=0&&(x+=d[G]+(G<d.length-1?_:0),x<=v);G-=1)B=d.length-G}else B=Math.floor(e.slidesPerView);O=Math.max(p-B,0)}let N=[];for(let B=0;B<h.length;B+=1){let x=h[B];e.roundLengths&&(x=Math.floor(x)),P?B<=O&&N.push(x):h[B]<=t.virtualSize-v&&N.push(x)}h=N,Math.floor(t.virtualSize-v)-Math.floor(h[h.length-1])>1&&(P||h.push(t.virtualSize-v))}if(a&&e.loop){let F=d[0]+_;if(e.slidesPerGroup>1){let P=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/e.slidesPerGroup),O=F*e.slidesPerGroup;for(let N=0;N<P;N+=1)h.push(h[h.length-1]+O)}for(let P=0;P<t.virtual.slidesBefore+t.virtual.slidesAfter;P+=1)e.slidesPerGroup===1&&h.push(h[h.length-1]+F),f.push(f[f.length-1]+F),t.virtualSize+=F}if(h.length===0&&(h=[0]),_!==0){let F=t.isHorizontal()&&o?"marginLeft":t.getDirectionLabel("marginRight");c.filter((P,O)=>!e.cssMode||e.loop?!0:O!==c.length-1).forEach(P=>{P.style[F]=`${_}px`})}if(e.centeredSlides&&e.centeredSlidesBounds){let F=0;d.forEach(O=>{F+=O+(_||0)}),F-=_;let P=F>v?F-v:0;h=h.map(O=>O<=0?-u:O>P?P+g:O)}if(e.centerInsufficientSlides){let F=0;if(d.forEach(P=>{F+=P+(_||0)}),F-=_,F<v){let P=(v-F)/2;h.forEach((O,N)=>{h[N]=O-P}),f.forEach((O,N)=>{f[N]=O+P})}}if(Object.assign(t,{slides:c,snapGrid:h,slidesGrid:f,slidesSizesGrid:d}),e.centeredSlides&&e.cssMode&&!e.centeredSlidesBounds){fn(i,"--swiper-centered-offset-before",`${-h[0]}px`),fn(i,"--swiper-centered-offset-after",`${t.size/2-d[d.length-1]/2}px`);let F=-t.snapGrid[0],P=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(O=>O+F),t.slidesGrid=t.slidesGrid.map(O=>O+P)}if(p!==l&&t.emit("slidesLengthChange"),h.length!==b&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==m&&t.emit("slidesGridLengthChange"),e.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!a&&!e.cssMode&&(e.effect==="slide"||e.effect==="fade")){let F=`${e.containerModifierClass}backface-hidden`,P=t.el.classList.contains(F);p<=e.maxBackfaceHiddenSlides?P||t.el.classList.add(F):P&&t.el.classList.remove(F)}}function dg(t){let n=this,e=[],i=n.virtual&&n.params.virtual.enabled,r=0,o;typeof t=="number"?n.setTransition(t):t===!0&&n.setTransition(n.params.speed);let s=a=>i?n.slides[n.getSlideIndexByData(a)]:n.slides[a];if(n.params.slidesPerView!=="auto"&&n.params.slidesPerView>1)if(n.params.centeredSlides)(n.visibleSlides||[]).forEach(a=>{e.push(a)});else for(o=0;o<Math.ceil(n.params.slidesPerView);o+=1){let a=n.activeIndex+o;if(a>n.slides.length&&!i)break;e.push(s(a))}else e.push(s(n.activeIndex));for(o=0;o<e.length;o+=1)if(typeof e[o]<"u"){let a=e[o].offsetHeight;r=a>r?a:r}(r||r===0)&&(n.wrapperEl.style.height=`${r}px`)}function ug(){let t=this,n=t.slides,e=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let i=0;i<n.length;i+=1)n[i].swiperSlideOffset=(t.isHorizontal()?n[i].offsetLeft:n[i].offsetTop)-e-t.cssOverflowAdjustment()}var Hp=(t,n,e)=>{n&&!t.classList.contains(e)?t.classList.add(e):!n&&t.classList.contains(e)&&t.classList.remove(e)};function pg(t=this&&this.translate||0){let n=this,e=n.params,{slides:i,rtlTranslate:r,snapGrid:o}=n;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&n.updateSlidesOffset();let s=-t;r&&(s=t),n.visibleSlidesIndexes=[],n.visibleSlides=[];let a=e.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*n.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<i.length;l+=1){let c=i[l],p=c.swiperSlideOffset;e.cssMode&&e.centeredSlides&&(p-=i[0].swiperSlideOffset);let h=(s+(e.centeredSlides?n.minTranslate():0)-p)/(c.swiperSlideSize+a),f=(s-o[0]+(e.centeredSlides?n.minTranslate():0)-p)/(c.swiperSlideSize+a),d=-(s-p),u=d+n.slidesSizesGrid[l],g=d>=0&&d<=n.size-n.slidesSizesGrid[l],b=d>=0&&d<n.size-1||u>1&&u<=n.size||d<=0&&u>=n.size;b&&(n.visibleSlides.push(c),n.visibleSlidesIndexes.push(l)),Hp(c,b,e.slideVisibleClass),Hp(c,g,e.slideFullyVisibleClass),c.progress=r?-h:h,c.originalProgress=r?-f:f}}function hg(t){let n=this;if(typeof t>"u"){let p=n.rtlTranslate?-1:1;t=n&&n.translate&&n.translate*p||0}let e=n.params,i=n.maxTranslate()-n.minTranslate(),{progress:r,isBeginning:o,isEnd:s,progressLoop:a}=n,l=o,c=s;if(i===0)r=0,o=!0,s=!0;else{r=(t-n.minTranslate())/i;let p=Math.abs(t-n.minTranslate())<1,h=Math.abs(t-n.maxTranslate())<1;o=p||r<=0,s=h||r>=1,p&&(r=0),h&&(r=1)}if(e.loop){let p=n.getSlideIndexByData(0),h=n.getSlideIndexByData(n.slides.length-1),f=n.slidesGrid[p],d=n.slidesGrid[h],u=n.slidesGrid[n.slidesGrid.length-1],g=Math.abs(t);g>=f?a=(g-f)/u:a=(g+u-d)/u,a>1&&(a-=1)}Object.assign(n,{progress:r,progressLoop:a,isBeginning:o,isEnd:s}),(e.watchSlidesProgress||e.centeredSlides&&e.autoHeight)&&n.updateSlidesProgress(t),o&&!l&&n.emit("reachBeginning toEdge"),s&&!c&&n.emit("reachEnd toEdge"),(l&&!o||c&&!s)&&n.emit("fromEdge"),n.emit("progress",r)}var Ul=(t,n,e)=>{n&&!t.classList.contains(e)?t.classList.add(e):!n&&t.classList.contains(e)&&t.classList.remove(e)};function fg(){let t=this,{slides:n,params:e,slidesEl:i,activeIndex:r}=t,o=t.virtual&&e.virtual.enabled,s=t.grid&&e.grid&&e.grid.rows>1,a=h=>it(i,`.${e.slideClass}${h}, swiper-slide${h}`)[0],l,c,p;if(o)if(e.loop){let h=r-t.virtual.slidesBefore;h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),l=a(`[data-swiper-slide-index="${h}"]`)}else l=a(`[data-swiper-slide-index="${r}"]`);else s?(l=n.find(h=>h.column===r),p=n.find(h=>h.column===r+1),c=n.find(h=>h.column===r-1)):l=n[r];l&&(s||(p=$p(l,`.${e.slideClass}, swiper-slide`)[0],e.loop&&!p&&(p=n[0]),c=jp(l,`.${e.slideClass}, swiper-slide`)[0],e.loop&&!c===0&&(c=n[n.length-1]))),n.forEach(h=>{Ul(h,h===l,e.slideActiveClass),Ul(h,h===p,e.slideNextClass),Ul(h,h===c,e.slidePrevClass)}),t.emitSlidesClasses()}var ea=(t,n)=>{if(!t||t.destroyed||!t.params)return;let e=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,i=n.closest(e());if(i){let r=i.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(i.shadowRoot?r=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(r=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),r&&!r.lazyPreloaderManaged&&r.remove())})),r&&!r.lazyPreloaderManaged&&r.remove()}},Gl=(t,n)=>{if(!t.slides[n])return;let e=t.slides[n].querySelector('[loading="lazy"]');e&&e.removeAttribute("loading")},Yl=t=>{if(!t||t.destroyed||!t.params)return;let n=t.params.lazyPreloadPrevNext,e=t.slides.length;if(!e||!n||n<0)return;n=Math.min(n,e);let i=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){let s=r,a=[s-n];a.push(...Array.from({length:n}).map((l,c)=>s+i+c)),t.slides.forEach((l,c)=>{a.includes(l.column)&&Gl(t,c)});return}let o=r+i-1;if(t.params.rewind||t.params.loop)for(let s=r-n;s<=o+n;s+=1){let a=(s%e+e)%e;(a<r||a>o)&&Gl(t,a)}else for(let s=Math.max(r-n,0);s<=Math.min(o+n,e-1);s+=1)s!==r&&(s>o||s<r)&&Gl(t,s)};function mg(t){let{slidesGrid:n,params:e}=t,i=t.rtlTranslate?t.translate:-t.translate,r;for(let o=0;o<n.length;o+=1)typeof n[o+1]<"u"?i>=n[o]&&i<n[o+1]-(n[o+1]-n[o])/2?r=o:i>=n[o]&&i<n[o+1]&&(r=o+1):i>=n[o]&&(r=o);return e.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function gg(t){let n=this,e=n.rtlTranslate?n.translate:-n.translate,{snapGrid:i,params:r,activeIndex:o,realIndex:s,snapIndex:a}=n,l=t,c,p=d=>{let u=d-n.virtual.slidesBefore;return u<0&&(u=n.virtual.slides.length+u),u>=n.virtual.slides.length&&(u-=n.virtual.slides.length),u};if(typeof l>"u"&&(l=mg(n)),i.indexOf(e)>=0)c=i.indexOf(e);else{let d=Math.min(r.slidesPerGroupSkip,l);c=d+Math.floor((l-d)/r.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),l===o&&!n.params.loop){c!==a&&(n.snapIndex=c,n.emit("snapIndexChange"));return}if(l===o&&n.params.loop&&n.virtual&&n.params.virtual.enabled){n.realIndex=p(l);return}let h=n.grid&&r.grid&&r.grid.rows>1,f;if(n.virtual&&r.virtual.enabled)r.loop?f=p(l):f=l;else if(h){let d=n.slides.find(g=>g.column===l),u=parseInt(d.getAttribute("data-swiper-slide-index"),10);Number.isNaN(u)&&(u=Math.max(n.slides.indexOf(d),0)),f=Math.floor(u/r.grid.rows)}else if(n.slides[l]){let d=n.slides[l].getAttribute("data-swiper-slide-index");d?f=parseInt(d,10):f=l}else f=l;Object.assign(n,{previousSnapIndex:a,snapIndex:c,previousRealIndex:s,realIndex:f,previousIndex:o,activeIndex:l}),n.initialized&&Yl(n),n.emit("activeIndexChange"),n.emit("snapIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&(s!==f&&n.emit("realIndexChange"),n.emit("slideChange"))}function vg(t,n){let e=this,i=e.params,r=t.closest(`.${i.slideClass}, swiper-slide`);!r&&e.isElement&&n&&n.length>1&&n.includes(t)&&[...n.slice(n.indexOf(t)+1,n.length)].forEach(a=>{!r&&a.matches&&a.matches(`.${i.slideClass}, swiper-slide`)&&(r=a)});let o=!1,s;if(r){for(let a=0;a<e.slides.length;a+=1)if(e.slides[a]===r){o=!0,s=a;break}}if(r&&o)e.clickedSlide=r,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):e.clickedIndex=s;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}i.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}var _g={updateSize:lg,updateSlides:cg,updateAutoHeight:dg,updateSlidesOffset:ug,updateSlidesProgress:pg,updateProgress:hg,updateSlidesClasses:fg,updateActiveIndex:gg,updateClickedSlide:vg};function bg(t=this.isHorizontal()?"x":"y"){let n=this,{params:e,rtlTranslate:i,translate:r,wrapperEl:o}=n;if(e.virtualTranslate)return i?-r:r;if(e.cssMode)return r;let s=ko(o,t);return s+=n.cssOverflowAdjustment(),i&&(s=-s),s||0}function yg(t,n){let e=this,{rtlTranslate:i,params:r,wrapperEl:o,progress:s}=e,a=0,l=0,c=0;e.isHorizontal()?a=i?-t:t:l=t,r.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),e.previousTranslate=e.translate,e.translate=e.isHorizontal()?a:l,r.cssMode?o[e.isHorizontal()?"scrollLeft":"scrollTop"]=e.isHorizontal()?-a:-l:r.virtualTranslate||(e.isHorizontal()?a-=e.cssOverflowAdjustment():l-=e.cssOverflowAdjustment(),o.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`);let p,h=e.maxTranslate()-e.minTranslate();h===0?p=0:p=(t-e.minTranslate())/h,p!==s&&e.updateProgress(t),e.emit("setTranslate",e.translate,n)}function Cg(){return-this.snapGrid[0]}function wg(){return-this.snapGrid[this.snapGrid.length-1]}function Eg(t=0,n=this.params.speed,e=!0,i=!0,r){let o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;let l=o.minTranslate(),c=o.maxTranslate(),p;if(i&&t>l?p=l:i&&t<c?p=c:p=t,o.updateProgress(p),s.cssMode){let h=o.isHorizontal();if(n===0)a[h?"scrollLeft":"scrollTop"]=-p;else{if(!o.support.smoothScroll)return Bl({swiper:o,targetPosition:-p,side:h?"left":"top"}),!0;a.scrollTo({[h?"left":"top"]:-p,behavior:"smooth"})}return!0}return n===0?(o.setTransition(0),o.setTranslate(p),e&&(o.emit("beforeTransitionStart",n,r),o.emit("transitionEnd"))):(o.setTransition(n),o.setTranslate(p),e&&(o.emit("beforeTransitionStart",n,r),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(f){!o||o.destroyed||f.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,e&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var Sg={getTranslate:bg,setTranslate:yg,minTranslate:Cg,maxTranslate:wg,translateTo:Eg};function Ig(t,n){let e=this;e.params.cssMode||(e.wrapperEl.style.transitionDuration=`${t}ms`,e.wrapperEl.style.transitionDelay=t===0?"0ms":""),e.emit("setTransition",t,n)}function Xp({swiper:t,runCallbacks:n,direction:e,step:i}){let{activeIndex:r,previousIndex:o}=t,s=e;s||(r>o?s="next":r<o?s="prev":s="reset"),t.emit(`transition${i}`),n&&s==="reset"?t.emit(`slideResetTransition${i}`):n&&r!==o&&(t.emit(`slideChangeTransition${i}`),s==="next"?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`))}function xg(t=!0,n){let e=this,{params:i}=e;i.cssMode||(i.autoHeight&&e.updateAutoHeight(),Xp({swiper:e,runCallbacks:t,direction:n,step:"Start"}))}function Tg(t=!0,n){let e=this,{params:i}=e;e.animating=!1,!i.cssMode&&(e.setTransition(0),Xp({swiper:e,runCallbacks:t,direction:n,step:"End"}))}var Pg={setTransition:Ig,transitionStart:xg,transitionEnd:Tg};function kg(t=0,n,e=!0,i,r){typeof t=="string"&&(t=parseInt(t,10));let o=this,s=t;s<0&&(s=0);let{params:a,snapGrid:l,slidesGrid:c,previousIndex:p,activeIndex:h,rtlTranslate:f,wrapperEl:d,enabled:u}=o;if(!u&&!i&&!r||o.destroyed||o.animating&&a.preventInteractionOnTransition)return!1;typeof n>"u"&&(n=o.params.speed);let g=Math.min(o.params.slidesPerGroupSkip,s),b=g+Math.floor((s-g)/o.params.slidesPerGroup);b>=l.length&&(b=l.length-1);let m=-l[b];if(a.normalizeSlideIndex)for(let V=0;V<c.length;V+=1){let C=-Math.floor(m*100),K=Math.floor(c[V]*100),F=Math.floor(c[V+1]*100);typeof c[V+1]<"u"?C>=K&&C<F-(F-K)/2?s=V:C>=K&&C<F&&(s=V+1):C>=K&&(s=V)}if(o.initialized&&s!==h&&(!o.allowSlideNext&&(f?m>o.translate&&m>o.minTranslate():m<o.translate&&m<o.minTranslate())||!o.allowSlidePrev&&m>o.translate&&m>o.maxTranslate()&&(h||0)!==s))return!1;s!==(p||0)&&e&&o.emit("beforeSlideChangeStart"),o.updateProgress(m);let v;s>h?v="next":s<h?v="prev":v="reset";let _=o.virtual&&o.params.virtual.enabled;if(!(_&&r)&&(f&&-m===o.translate||!f&&m===o.translate))return o.updateActiveIndex(s),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),a.effect!=="slide"&&o.setTranslate(m),v!=="reset"&&(o.transitionStart(e,v),o.transitionEnd(e,v)),!1;if(a.cssMode){let V=o.isHorizontal(),C=f?m:-m;if(n===0)_&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),_&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{d[V?"scrollLeft":"scrollTop"]=C})):d[V?"scrollLeft":"scrollTop"]=C,_&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return Bl({swiper:o,targetPosition:C,side:V?"left":"top"}),!0;d.scrollTo({[V?"left":"top"]:C,behavior:"smooth"})}return!0}let R=Kp().isSafari;return _&&!r&&R&&o.isElement&&o.virtual.update(!1,!1,s),o.setTransition(n),o.setTranslate(m),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",n,i),o.transitionStart(e,v),n===0?o.transitionEnd(e,v):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(C){!o||o.destroyed||C.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(e,v))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function Dg(t=0,n,e=!0,i){typeof t=="string"&&(t=parseInt(t,10));let r=this;if(r.destroyed)return;typeof n>"u"&&(n=r.params.speed);let o=r.grid&&r.params.grid&&r.params.grid.rows>1,s=t;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)s=s+r.virtual.slidesBefore;else{let a;if(o){let g=s*r.params.grid.rows;a=r.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===g).column}else a=r.getSlideIndexByData(s);let l=o?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:c,slidesOffsetBefore:p,slidesOffsetAfter:h}=r.params,f=c||!!p||!!h,d=r.params.slidesPerView;d==="auto"?d=r.slidesPerViewDynamic():(d=Math.ceil(parseFloat(r.params.slidesPerView,10)),f&&d%2===0&&(d=d+1));let u=l-a<d;if(f&&(u=u||a<Math.ceil(d/2)),i&&f&&r.params.slidesPerView!=="auto"&&!o&&(u=!1),u){let g=f?a<r.activeIndex?"prev":"next":a-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:g,slideTo:!0,activeSlideIndex:g==="next"?a+1:a-l+1,slideRealIndex:g==="next"?r.realIndex:void 0})}if(o){let g=s*r.params.grid.rows;s=r.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===g).column}else s=r.getSlideIndexByData(s)}return requestAnimationFrame(()=>{r.slideTo(s,n,e,i)}),r}function Mg(t,n=!0,e){let i=this,{enabled:r,params:o,animating:s}=i;if(!r||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);let a=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));let l=i.activeIndex<o.slidesPerGroupSkip?1:a,c=i.virtual&&o.virtual.enabled;if(o.loop){if(s&&!c&&o.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,t,n,e)}),!0}return o.rewind&&i.isEnd?i.slideTo(0,t,n,e):i.slideTo(i.activeIndex+l,t,n,e)}function Ag(t,n=!0,e){let i=this,{params:r,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);let p=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!p&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}let h=a?i.translate:-i.translate;function f(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}let d=f(h),u=o.map(v=>f(v)),g=r.freeMode&&r.freeMode.enabled,b=o[u.indexOf(d)-1];if(typeof b>"u"&&(r.cssMode||g)){let v;o.forEach((_,D)=>{d>=_&&(v=D)}),typeof v<"u"&&(b=g?o[v]:o[v>0?v-1:v])}let m=0;if(typeof b<"u"&&(m=s.indexOf(b),m<0&&(m=i.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(m=m-i.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),r.rewind&&i.isBeginning){let v=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(v,t,n,e)}else if(r.loop&&i.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(m,t,n,e)}),!0;return i.slideTo(m,t,n,e)}function Rg(t,n=!0,e){let i=this;if(!i.destroyed)return typeof t>"u"&&(t=i.params.speed),i.slideTo(i.activeIndex,t,n,e)}function Og(t,n=!0,e,i=.5){let r=this;if(r.destroyed)return;typeof t>"u"&&(t=r.params.speed);let o=r.activeIndex,s=Math.min(r.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){let c=r.snapGrid[a],p=r.snapGrid[a+1];l-c>(p-c)*i&&(o+=r.params.slidesPerGroup)}else{let c=r.snapGrid[a-1],p=r.snapGrid[a];l-c<=(p-c)*i&&(o-=r.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,r.slidesGrid.length-1),r.slideTo(o,t,n,e)}function Lg(){let t=this;if(t.destroyed)return;let{params:n,slidesEl:e}=t,i=n.slidesPerView==="auto"?t.slidesPerViewDynamic():n.slidesPerView,r=t.getSlideIndexWhenGrid(t.clickedIndex),o,s=t.isElement?"swiper-slide":`.${n.slideClass}`,a=t.grid&&t.params.grid&&t.params.grid.rows>1;if(n.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),n.centeredSlides?t.slideToLoop(o):r>(a?(t.slides.length-i)/2-(t.params.grid.rows-1):t.slides.length-i)?(t.loopFix(),r=t.getSlideIndex(it(e,`${s}[data-swiper-slide-index="${o}"]`)[0]),Hi(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var Ng={slideTo:kg,slideToLoop:Dg,slideNext:Mg,slidePrev:Ag,slideReset:Rg,slideToClosest:Og,slideToClickedSlide:Lg};function Fg(t,n){let e=this,{params:i,slidesEl:r}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;let o=()=>{it(r,`.${i.slideClass}, swiper-slide`).forEach((u,g)=>{u.setAttribute("data-swiper-slide-index",g)})},s=()=>{let d=it(r,`.${i.slideBlankClass}`);d.forEach(u=>{u.remove()}),d.length>0&&(e.recalcSlides(),e.updateSlides())},a=e.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||a)&&s();let l=i.slidesPerGroup*(a?i.grid.rows:1),c=e.slides.length%l!==0,p=a&&e.slides.length%i.grid.rows!==0,h=d=>{for(let u=0;u<d;u+=1){let g=e.isElement?yt("swiper-slide",[i.slideBlankClass]):yt("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(g)}};if(c){if(i.loopAddBlankSlides){let d=l-e.slides.length%l;h(d),e.recalcSlides(),e.updateSlides()}else Do("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
1not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(p){if(i.loopAddBlankSlides){let d=i.grid.rows-e.slides.length%i.grid.rows;h(d),e.recalcSlides(),e.updateSlides()}else Do("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();let f=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;e.loopFix({slideRealIndex:t,direction:f?void 0:"next",initial:n})}function zg({slideRealIndex:t,slideTo:n=!0,direction:e,setTranslate:i,activeSlideIndex:r,initial:o,byController:s,byMousewheel:a}={}){let l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");let{slides:c,allowSlidePrev:p,allowSlideNext:h,slidesEl:f,params:d}=l,{centeredSlides:u,slidesOffsetBefore:g,slidesOffsetAfter:b,initialSlide:m}=d,v=u||!!g||!!b;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&d.virtual.enabled){n&&(!v&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):v&&l.snapIndex<d.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=p,l.allowSlideNext=h,l.emit("loopFix");return}let _=d.slidesPerView;_==="auto"?_=l.slidesPerViewDynamic():(_=Math.ceil(parseFloat(d.slidesPerView,10)),v&&_%2===0&&(_=_+1));let D=d.slidesPerGroupAuto?_:d.slidesPerGroup,L=v?Math.max(D,Math.ceil(_/2)):D;L%D!==0&&(L+=D-L%D),L+=d.loopAdditionalSlides,l.loopedSlides=L;let R=l.grid&&d.grid&&d.grid.rows>1;c.length<_+L||l.params.effect==="cards"&&c.length<_+L*2?Do("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):R&&d.grid.fill==="row"&&Do("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let V=[],C=[],K=R?Math.ceil(c.length/d.grid.rows):c.length,F=o&&K-m<_&&!v,P=F?m:l.activeIndex;typeof r>"u"?r=l.getSlideIndex(c.find(H=>H.classList.contains(d.slideActiveClass))):P=r;let O=e==="next"||!e,N=e==="prev"||!e,B=0,x=0,Y=(R?c[r].column:r)+(v&&typeof i>"u"?-_/2+.5:0);if(Y<L){B=Math.max(L-Y,D);for(let H=0;H<L-Y;H+=1){let pe=H-Math.floor(H/K)*K;if(R){let Me=K-pe-1;for(let Pt=c.length-1;Pt>=0;Pt-=1)c[Pt].column===Me&&V.push(Pt)}else V.push(K-pe-1)}}else if(Y+_>K-L){x=Math.max(Y-(K-L*2),D),F&&(x=Math.max(x,_-K+m+1));for(let H=0;H<x;H+=1){let pe=H-Math.floor(H/K)*K;R?c.forEach((Me,Pt)=>{Me.column===pe&&C.push(Pt)}):C.push(pe)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),l.params.effect==="cards"&&c.length<_+L*2&&(C.includes(r)&&C.splice(C.indexOf(r),1),V.includes(r)&&V.splice(V.indexOf(r),1)),N&&V.forEach(H=>{c[H].swiperLoopMoveDOM=!0,f.prepend(c[H]),c[H].swiperLoopMoveDOM=!1}),O&&C.forEach(H=>{c[H].swiperLoopMoveDOM=!0,f.append(c[H]),c[H].swiperLoopMoveDOM=!1}),l.recalcSlides(),d.slidesPerView==="auto"?l.updateSlides():R&&(V.length>0&&N||C.length>0&&O)&&l.slides.forEach((H,pe)=>{l.grid.updateSlide(pe,H,l.slides)}),d.watchSlidesProgress&&l.updateSlidesOffset(),n){if(V.length>0&&N){if(typeof t>"u"){let H=l.slidesGrid[P],Me=l.slidesGrid[P+B]-H;a?l.setTranslate(l.translate-Me):(l.slideTo(P+Math.ceil(B),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-Me,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-Me))}else if(i){let H=R?V.length/d.grid.rows:V.length;l.slideTo(l.activeIndex+H,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(C.length>0&&O)if(typeof t>"u"){let H=l.slidesGrid[P],Me=l.slidesGrid[P-x]-H;a?l.setTranslate(l.translate-Me):(l.slideTo(P-x,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-Me,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-Me))}else{let H=R?C.length/d.grid.rows:C.length;l.slideTo(l.activeIndex-H,0,!1,!0)}}if(l.allowSlidePrev=p,l.allowSlideNext=h,l.controller&&l.controller.control&&!s){let H={slideRealIndex:t,direction:e,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(pe=>{!pe.destroyed&&pe.params.loop&&pe.loopFix(U(T({},H),{slideTo:pe.params.slidesPerView===d.slidesPerView?n:!1}))}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix(U(T({},H),{slideTo:l.controller.control.params.slidesPerView===d.slidesPerView?n:!1}))}l.emit("loopFix")}function Vg(){let t=this,{params:n,slidesEl:e}=t;if(!n.loop||!e||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();let i=[];
vendor: 5,100 bytes, line 1
1t.slides.forEach(r=>{let o=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;i[o]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),i.forEach(r=>{e.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Bg={loopCreate:Fg,loopFix:zg,loopDestroy:Vg};function jg(t){let n=this;if(!n.params.simulateTouch||n.params.watchOverflow&&n.isLocked||n.params.cssMode)return;let e=n.params.touchEventsTarget==="container"?n.el:n.wrapperEl;n.isElement&&(n.__preventObserver__=!0),e.style.cursor="move",e.style.cursor=t?"grabbing":"grab",n.isElement&&requestAnimationFrame(()=>{n.__preventObserver__=!1})}function $g(){let t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Hg={setGrabCursor:jg,unsetGrabCursor:$g};function Ug(t,n=this){function e(i){if(!i||i===Xe()||i===je())return null;i.assignedSlot&&(i=i.assignedSlot);let r=i.closest(t);return!r&&!i.getRootNode?null:r||e(i.getRootNode().host)}return e(n)}function Up(t,n,e){let i=je(),{params:r}=t,o=r.edgeSwipeDetection,s=r.edgeSwipeThreshold;return o&&(e<=s||e>=i.innerWidth-s)?o==="prevent"?(n.preventDefault(),!0):!1:!0}function Gg(t){let n=this;if(n.destroyed)return;let e=Xe(),i=t;i.originalEvent&&(i=i.originalEvent);let r=n.touchEventsData;if(i.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else i.type==="touchstart"&&i.targetTouches.length===1&&(r.touchId=i.targetTouches[0].identifier);if(i.type==="touchstart"){Up(n,i,i.targetTouches[0].pageX);return}let{params:o,touches:s,enabled:a}=n;if(!a||!o.simulateTouch&&i.pointerType==="mouse"||n.animating&&o.preventInteractionOnTransition)return;!n.animating&&o.cssMode&&o.loop&&n.loopFix();let l=i.target;if(o.touchEventsTarget==="wrapper"&&!Bp(l,n.wrapperEl)||"which"in i&&i.which===3||"button"in i&&i.button>0||r.isTouched&&r.isMoved)return;let c=!!o.noSwipingClass&&o.noSwipingClass!=="",p=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&p&&(l=p[0]);let h=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!!(i.target&&i.target.shadowRoot);if(o.noSwiping&&(f?Ug(h,l):l.closest(h))){n.allowClick=!0;return}if(o.swipeHandler&&!l.closest(o.swipeHandler))return;s.currentX=i.pageX,s.currentY=i.pageY;let d=s.currentX,u=s.currentY;if(!Up(n,i,d))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=d,s.startY=u,r.touchStartTime=Yt(),n.allowClick=!0,n.updateSize(),n.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1);let g=!0;l.matches(r.focusableElements)&&(g=!1,l.nodeName==="SELECT"&&(r.isTouched=!1)),e.activeElement&&e.activeElement.matches(r.focusableElements)&&e.activeElement!==l&&(i.pointerType==="mouse"||i.pointerType!=="mouse"&&!l.matches(r.focusableElements))&&e.activeElement.blur();let b=g&&n.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||b)&&!l.isContentEditable&&i.preventDefault(),o.freeMode&&o.freeMode.enabled&&n.freeMode&&n.animating&&!o.cssMode&&n.freeMode.onTouchStart(),n.emit("touchStart",i)}function Wg(t){let n=Xe(),e=this;if(e.destroyed)return;let i=e.touchEventsData,{params:r,touches:o,rtlTranslate:s,enabled:a}=e;if(!a||!r.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(i.touchId!==null||l.pointerId!==i.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(R=>R.identifier===i.touchId),!c||c.identifier!==i.touchId)return}else c=l;if(!i.isTouched){i.startMoving&&i.isScrolling&&e.emit("touchMoveOpposite",l);return}let p=c.pageX,h=c.pageY;if(l.preventedByNestedSwiper){o.startX=p,o.startY=h;return}if(!e.allowTouchMove){l.target.matches(i.focusableElements)||(e.allowClick=!1),i.isTouched&&(Object.assign(o,{startX:p,startY:h,currentX:p,currentY:h}),i.touchStartTime=Yt());return}if(r.touchReleaseOnEdges&&!r.loop)if(e.isVertical()){if(h<o.startY&&e.translate<=e.maxTranslate()||h>o.startY&&e.translate>=e.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else{if(s&&(p>o.startX&&-e.translate<=e.maxTranslate()||p<o.startX&&-e.translate>=e.minTranslate()))return;if(!s&&(p<o.startX&&e.translate<=e.maxTranslate()||p>o.startX&&e.translate>=e.minTranslate()))return}if(n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l.target&&l.pointerType!=="mouse"&&n.activeElement.blur(),n.activeElement&&l.target===n.activeElement&&l.target.matches(i.focusableElements)){i.isMoved=!0,e.allowClick=!1;return}i.allowTouchCallbacks&&e.emit("touchMove",l),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=p,o.currentY=h;let f=o.currentX-o.startX,d=o.currentY-o.startY;if(e.params.threshold&&Math.sqrt(f**2+d**2)<e.params.threshold)return;if(typeof i.isScrolling>"u"){let R;e.isHorizontal()&&o.currentY===o.startY||e.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:f*f+
vendor: 4,422 bytes, line 1
1d*d>=25&&(R=Math.atan2(Math.abs(d),Math.abs(f))*180/Math.PI,i.isScrolling=e.isHorizontal()?R>r.touchAngle:90-R>r.touchAngle)}if(i.isScrolling&&e.emit("touchMoveOpposite",l),typeof i.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(i.startMoving=!0),i.isScrolling||l.type==="touchmove"&&i.preventTouchMoveFromPointerMove){i.isTouched=!1;return}if(!i.startMoving)return;e.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let u=e.isHorizontal()?f:d,g=e.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;r.oneWayMovement&&(u=Math.abs(u)*(s?1:-1),g=Math.abs(g)*(s?1:-1)),o.diff=u,u*=r.touchRatio,s&&(u=-u,g=-g);let b=e.touchesDirection;e.swipeDirection=u>0?"prev":"next",e.touchesDirection=g>0?"prev":"next";let m=e.params.loop&&!r.cssMode,v=e.touchesDirection==="next"&&e.allowSlideNext||e.touchesDirection==="prev"&&e.allowSlidePrev;if(!i.isMoved){if(m&&v&&e.loopFix({direction:e.swipeDirection}),i.startTranslate=e.getTranslate(),e.setTransition(0),e.animating){let R=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});e.wrapperEl.dispatchEvent(R)}i.allowMomentumBounce=!1,r.grabCursor&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!0),e.emit("sliderFirstMove",l)}let _;if(new Date().getTime(),r._loopSwapReset!==!1&&i.isMoved&&i.allowThresholdMove&&b!==e.touchesDirection&&m&&v&&Math.abs(u)>=1){Object.assign(o,{startX:p,startY:h,currentX:p,currentY:h,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}e.emit("sliderMove",l),i.isMoved=!0,i.currentTranslate=u+i.startTranslate;let D=!0,L=r.resistanceRatio;if(r.touchReleaseOnEdges&&(L=0),u>0?(m&&v&&!_&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?e.minTranslate()-e.slidesSizesGrid[e.activeIndex+1]-(r.slidesPerView!=="auto"&&e.slides.length-r.slidesPerView>=2?e.slidesSizesGrid[e.activeIndex+1]+e.params.spaceBetween:0)-e.params.spaceBetween:e.minTranslate())&&e.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>e.minTranslate()&&(D=!1,r.resistance&&(i.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+i.startTranslate+u)**L))):u<0&&(m&&v&&!_&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?e.maxTranslate()+e.slidesSizesGrid[e.slidesSizesGrid.length-1]+e.params.spaceBetween+(r.slidesPerView!=="auto"&&e.slides.length-r.slidesPerView>=2?e.slidesSizesGrid[e.slidesSizesGrid.length-1]+e.params.spaceBetween:0):e.maxTranslate())&&e.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:e.slides.length-(r.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<e.maxTranslate()&&(D=!1,r.resistance&&(i.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-i.startTranslate-u)**L))),D&&(l.preventedByNestedSwiper=!0),!e.allowSlideNext&&e.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!e.allowSlidePrev&&e.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!e.allowSlidePrev&&!e.allowSlideNext&&(i.currentTranslate=i.startTranslate),r.threshold>0)if(Math.abs(u)>r.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,o.diff=e.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{i.currentTranslate=i.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&e.freeMode||r.watchSlidesProgress)&&(e.updateActiveIndex(),e.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.freeMode.onTouchMove(),e.updateProgress(i.currentTranslate),e.setTranslate(i.currentTranslate))}function qg(t){let n=this;if(n.destroyed)return;let e=n.touchEventsData,i=t;i.originalEvent&&(i=i.originalEvent);let r;if(i.type==="touchend"||i.type==="touchcancel"){if(r=[...i.changedTouches].find(L=>L.identifier===e.touchId),!r||r.identifier!==e.touchId)return}else{if(e.touchId!==null||i.pointerId!==e.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(n.browser.isSafari||n.browser.isWebView)))return;e.pointerId=null,e.touchId=null;let{params:s,touches:a,rtlTranslate:l,slidesGrid:c,enabled:p}=n;
vendor: 17,045 bytes, line 1
1if(!p||!s.simulateTouch&&i.pointerType==="mouse")return;if(e.allowTouchCallbacks&&n.emit("touchEnd",i),e.allowTouchCallbacks=!1,!e.isTouched){e.isMoved&&s.grabCursor&&n.setGrabCursor(!1),e.isMoved=!1,e.startMoving=!1;return}s.grabCursor&&e.isMoved&&e.isTouched&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!1);let h=Yt(),f=h-e.touchStartTime;if(n.allowClick){let L=i.path||i.composedPath&&i.composedPath();n.updateClickedSlide(L&&L[0]||i.target,L),n.emit("tap click",i),f<300&&h-e.lastClickTime<300&&n.emit("doubleTap doubleClick",i)}if(e.lastClickTime=Yt(),Hi(()=>{n.destroyed||(n.allowClick=!0)}),!e.isTouched||!e.isMoved||!n.swipeDirection||a.diff===0&&!e.loopSwapReset||e.currentTranslate===e.startTranslate&&!e.loopSwapReset){e.isTouched=!1,e.isMoved=!1,e.startMoving=!1;return}e.isTouched=!1,e.isMoved=!1,e.startMoving=!1;let d;if(s.followFinger?d=l?n.translate:-n.translate:d=-e.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){n.freeMode.onTouchEnd({currentPos:d});return}let u=d>=-n.maxTranslate()&&!n.params.loop,g=0,b=n.slidesSizesGrid[0];for(let L=0;L<c.length;L+=L<s.slidesPerGroupSkip?1:s.slidesPerGroup){let R=L<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof c[L+R]<"u"?(u||d>=c[L]&&d<c[L+R])&&(g=L,b=c[L+R]-c[L]):(u||d>=c[L])&&(g=L,b=c[c.length-1]-c[c.length-2])}let m=null,v=null;s.rewind&&(n.isBeginning?v=s.virtual&&s.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(m=0));let _=(d-c[g])/b,D=g<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes){n.slideTo(n.activeIndex);return}n.swipeDirection==="next"&&(_>=s.longSwipesRatio?n.slideTo(s.rewind&&n.isEnd?m:g+D):n.slideTo(g)),n.swipeDirection==="prev"&&(_>1-s.longSwipesRatio?n.slideTo(g+D):v!==null&&_<0&&Math.abs(_)>s.longSwipesRatio?n.slideTo(v):n.slideTo(g))}else{if(!s.shortSwipes){n.slideTo(n.activeIndex);return}n.navigation&&(i.target===n.navigation.nextEl||i.target===n.navigation.prevEl)?i.target===n.navigation.nextEl?n.slideTo(g+D):n.slideTo(g):(n.swipeDirection==="next"&&n.slideTo(m!==null?m:g+D),n.swipeDirection==="prev"&&n.slideTo(v!==null?v:g))}}function Gp(){let t=this,{params:n,el:e}=t;if(e&&e.offsetWidth===0)return;n.breakpoints&&t.setBreakpoint();let{allowSlideNext:i,allowSlidePrev:r,snapGrid:o}=t,s=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();let a=s&&n.loop;if((n.slidesPerView==="auto"||n.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a){let l=s?t.virtual.slides:t.slides;t.slideTo(l.length-1,0,!1,!0)}else t.params.loop&&!s?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0);t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=r,t.allowSlideNext=i,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function Yg(t){let n=this;n.destroyed||n.enabled&&(n.allowClick||(n.params.preventClicks&&t.preventDefault(),n.params.preventClicksPropagation&&n.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Kg(){let t=this;if(t.destroyed)return;let{wrapperEl:n,rtlTranslate:e,enabled:i}=t;if(!i)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-n.scrollLeft:t.translate=-n.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let r,o=t.maxTranslate()-t.minTranslate();o===0?r=0:r=(t.translate-t.minTranslate())/o,r!==t.progress&&t.updateProgress(e?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Xg(t){let n=this;n.destroyed||(ea(n,t.target),!(n.params.cssMode||n.params.slidesPerView!=="auto"&&!n.params.autoHeight)&&n.update())}function Jg(){let t=this;t.destroyed||t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}var Jp=(t,n)=>{let e=Xe(),{params:i,el:r,wrapperEl:o,device:s}=t,a=!!i.nested,l=n==="on"?"addEventListener":"removeEventListener",c=n;!r||typeof r=="string"||(e[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),r[l]("touchstart",t.onTouchStart,{passive:!1}),r[l]("pointerdown",t.onTouchStart,{passive:!1}),e[l]("touchmove",t.onTouchMove,{passive:!1,capture:a}),e[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),e[l]("touchend",t.onTouchEnd,{passive:!0}),e[l]("pointerup",t.onTouchEnd,{passive:!0}),e[l]("pointercancel",t.onTouchEnd,{passive:!0}),e[l]("touchcancel",t.onTouchEnd,{passive:!0}),e[l]("pointerout",t.onTouchEnd,{passive:!0}),e[l]("pointerleave",t.onTouchEnd,{passive:!0}),e[l]("contextmenu",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",t.onClick,!0),i.cssMode&&o[l]("scroll",t.onScroll),i.updateOnWindowResize?t[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Gp,!0):t[c]("observerUpdate",Gp,!0),r[l]("load",t.onLoad,{capture:!0}))};function Zg(){let t=this,{params:n}=t;t.onTouchStart=Gg.bind(t),t.onTouchMove=Wg.bind(t),t.onTouchEnd=qg.bind(t),t.onDocumentTouchStart=Jg.bind(t),n.cssMode&&(t.onScroll=Kg.bind(t)),t.onClick=Yg.bind(t),t.onLoad=Xg.bind(t),Jp(t,"on")}function Qg(){Jp(this,"off")}var e1={attachEvents:Zg,detachEvents:Qg},Wp=(t,n)=>t.grid&&n.grid&&n.grid.rows>1;function t1(){let t=this,{realIndex:n,initialized:e,params:i,el:r}=t,o=i.breakpoints;if(!o||o&&Object.keys(o).length===0)return;let s=Xe(),a=i.breakpointsBase==="window"||!i.breakpointsBase?i.breakpointsBase:"container",l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?t.el:s.querySelector(i.breakpointsBase),c=t.getBreakpoint(o,a,l);if(!c||t.currentBreakpoint===c)return;let h=(c in o?o[c]:void 0)||t.originalParams,f=Wp(t,i),d=Wp(t,h),u=t.params.grabCursor,g=h.grabCursor,b=i.enabled;f&&!d?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!f&&d&&(r.classList.add(`${i.containerModifierClass}grid`),(h.grid.fill&&h.grid.fill==="column"||!h.grid.fill&&i.grid.fill==="column")&&r.classList.add(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),u&&!g?t.unsetGrabCursor():!u&&g&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(R=>{if(typeof h[R]>"u")return;let V=i[R]&&i[R].enabled,C=h[R]&&h[R].enabled;V&&!C&&t[R].disable(),!V&&C&&t[R].enable()});let m=h.direction&&h.direction!==i.direction,v=i.loop&&(h.slidesPerView!==i.slidesPerView||m),_=i.loop;m&&e&&t.changeDirection(),ri(t.params,h);let D=t.params.enabled,L=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),b&&!D?t.disable():!b&&D&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",h),e&&(v?(t.loopDestroy(),t.loopCreate(n),t.updateSlides()):!_&&L?(t.loopCreate(n),t.updateSlides()):_&&!L&&t.loopDestroy()),t.emit("breakpoint",h)}function i1(t,n="window",e){if(!t||n==="container"&&!e)return;let i=!1,r=je(),o=n==="window"?r.innerHeight:e.clientHeight,s=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){let l=parseFloat(a.substr(1));return{value:o*l,point:a}}return{value:a,point:a}});s.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<s.length;a+=1){let{point:l,value:c}=s[a];n==="window"?r.matchMedia(`(min-width: ${c}px)`).matches&&(i=l):c<=e.clientWidth&&(i=l)}return i||"max"}var n1={setBreakpoint:t1,getBreakpoint:i1};function r1(t,n){let e=[];return t.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(r=>{i[r]&&e.push(n+r)}):typeof i=="string"&&e.push(n+i)}),e}function o1(){let t=this,{classNames:n,params:e,rtl:i,el:r,device:o}=t,s=r1(["initialized",e.direction,{"free-mode":t.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:i},{grid:e.grid&&e.grid.rows>1},{"grid-column":e.grid&&e.grid.rows>1&&e.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":e.cssMode},{centered:e.cssMode&&e.centeredSlides},{"watch-progress":e.watchSlidesProgress}],e.containerModifierClass);n.push(...s),r.classList.add(...n),t.emitContainerClasses()}function s1(){let t=this,{el:n,classNames:e}=t;!n||typeof n=="string"||(n.classList.remove(...e),t.emitContainerClasses())}var a1={addClasses:o1,removeClasses:s1};function l1(){let t=this,{isLocked:n,params:e}=t,{slidesOffsetBefore:i}=e;if(i){let r=t.slides.length-1,o=t.slidesGrid[r]+t.slidesSizesGrid[r]+i*2;t.isLocked=t.size>o}else t.isLocked=t.snapGrid.length===1;e.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),e.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),n&&n!==t.isLocked&&(t.isEnd=!1),n!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var c1={checkOverflow:l1},ta={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function d1(t,n){return function(i={}){let r=Object.keys(i)[0],o=i[r];if(typeof o!="object"||o===null){ri(n,i);return}if(t[r]===!0&&(t[r]={enabled:!0}),r==="navigation"&&t[r]&&t[r].enabled&&!t[r].prevEl&&!t[r].nextEl&&(t[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&t[r]&&t[r].enabled&&!t[r].el&&(t[r].auto=!0),!(r in t&&"enabled"in o)){ri(n,i);return}typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),ri(n,i)}}var Wl={eventsEmitter:ag,update:_g,translate:Sg,transition:Pg,slide:Ng,loop:Bg,grabCursor:Hg,events:e1,breakpoints:n1,checkOverflow:c1,classes:a1},ql={},_i=class t{constructor(...n){let e,i;n.length===1&&n[0].constructor&&Object.prototype.toString.call(n[0]).slice(8,-1)==="Object"?i=n[0]:[e,i]=n,i||(i={}),i=ri({},i),e&&!i.el&&(i.el=e);let r=Xe();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){let l=[];return r.querySelectorAll(i.el).forEach(c=>{let p=ri({},i,{el:c});l.push(new t(p))}),l}let o=this;o.__swiper__=!0,o.support=qp(),o.device=Yp({userAgent:i.userAgent}),o.browser=Kp(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&i.modules.forEach(l=>{typeof l=="function"&&o.modules.indexOf(l)<0&&o.modules.push(l)});let s={};o.modules.forEach(l=>{l({params:i,swiper:o,extendParams:d1(i,s),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});let a=ri({},ta,s);return o.params=ri({},a,ql,i),o.originalParams=ri({},o.params),o.passedParams=ri({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach(l=>{o.on(l,o.params.on[l])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(n){return this.isHorizontal()?n:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[n]}getSlideIndex(n){let{slidesEl:e,params:i}=this,r=it(e,`.${i.slideClass}, swiper-slide`),o=Ln(r[0]);return Ln(n)-o}getSlideIndexByData(n){return this.getSlideIndex(this.slides.find(e=>e.getAttribute("data-swiper-slide-index")*1===n))}getSlideIndexWhenGrid(n){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?n=Math.floor(n/this.params.grid.rows):this.params.grid.fill==="row"&&(n=n%Math.ceil(this.slides.length/this.params.grid.rows))),n}recalcSlides(){let n=this,{slidesEl:e,params:i}=n;n.slides=it(e,`.${i.slideClass}, swiper-slide`)}enable(){let n=this;n.enabled||(n.enabled=!0,n.params.grabCursor&&n.setGrabCursor(),n.emit("enable"))}disable(){let n=this;n.enabled&&(n.enabled=!1,n.params.grabCursor&&n.unsetGrabCursor(),n.emit("disable"))}setProgress(n,e){let i=this;n=Math.min(Math.max(n,0),1);let r=i.minTranslate(),s=(i.maxTranslate()-r)*n+r;i.translateTo(s,typeof e>"u"?0:e),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){let n=this;if(!n.params._emitClasses||!n.el)return;let e=n.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(n.params.containerModifierClass)===0);n.emit("_containerClasses",e.join(" "))}getSlideClasses(n){let e=this;return e.destroyed?"":n.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(e.params.slideClass)===0).join(" ")}emitSlidesClasses(){let n=this;if(!n.params._emitClasses||!n.el)return;let e=[];n.slides.forEach(i=>{let r=n.getSlideClasses(i);e.push({slideEl:i,classNames:r}),n.emit("_slideClass",i,r)}),n.emit("_slideClasses",e)}slidesPerViewDynamic(n="current",e=!1){let i=this,{params:r,slides:o,slidesGrid:s,slidesSizesGrid:a,size:l,activeIndex:c}=i,p=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let h=o[c]?Math.ceil(o[c].swiperSlideSize):0,f;for(let d=c+1;d<o.length;d+=1)o[d]&&!f&&(h+=Math.ceil(o[d].swiperSlideSize),p+=1,h>l&&(f=!0));for(let d=c-1;d>=0;d-=1)o[d]&&!f&&(h+=o[d].swiperSlideSize,p+=1,h>l&&(f=!0))}else if(n==="current")for(let h=c+1;h<o.length;h+=1)(e?s[h]+a[h]-s[c]<l:s[h]-s[c]<l)&&(p+=1);else for(let h=c-1;h>=0;h-=1)s[c]-s[h]<l&&(p+=1);return p}update(){let n=this;if(!n||n.destroyed)return;let{snapGrid:e,params:i}=n;i.breakpoints&&n.setBreakpoint(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&ea(n,s)}),n.updateSize(),n.updateSlides(),n.updateProgress(),n.updateSlidesClasses();function r(){let s=n.rtlTranslate?n.translate*-1:n.translate,a=Math.min(Math.max(s,n.maxTranslate()),n.minTranslate());n.setTranslate(a),n.updateActiveIndex(),n.updateSlidesClasses()}let o;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode)r(),i.autoHeight&&n.updateAutoHeight();else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&n.isEnd&&!i.centeredSlides){let s=n.virtual&&i.virtual.enabled?n.virtual.slides:n.slides;o=n.slideTo(s.length-1,0,!1,!0)}else o=n.slideTo(n.activeIndex,0,!1,!0);o||r()}i.watchOverflow&&e!==n.snapGrid&&n.checkOverflow(),n.emit("update")}changeDirection(n,e=!0){let i=this,r=i.params.direction;return n||(n=r==="horizontal"?"vertical":"horizontal"),n===r||n!=="horizontal"&&n!=="vertical"||(i.el.classList.remove(`${i.params.containerModifierClass}${r}`),i.el.classList.add(`${i.params.containerModifierClass}${n}`),i.emitContainerClasses(),i.params.direction=n,i.slides.forEac
vendor: 10,177 bytes, line 1
1h(o=>{n==="vertical"?o.style.width="":o.style.height=""}),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(n){let e=this;e.rtl&&n==="rtl"||!e.rtl&&n==="ltr"||(e.rtl=n==="rtl",e.rtlTranslate=e.params.direction==="horizontal"&&e.rtl,e.rtl?(e.el.classList.add(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.el.classList.remove(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(n){let e=this;if(e.mounted)return!0;let i=n||e.params.el;if(typeof i=="string"&&(i=document.querySelector(i)),!i)return!1;i.swiper=e,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===e.params.swiperElementNodeName.toUpperCase()&&(e.isElement=!0);let r=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`,s=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(r()):it(i,r())[0];return!s&&e.params.createElements&&(s=yt("div",e.params.wrapperClass),i.append(s),it(i,`.${e.params.slideClass}`).forEach(a=>{s.append(a)})),Object.assign(e,{el:i,wrapperEl:s,slidesEl:e.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:s,hostEl:e.isElement?i.parentNode.host:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||mn(i,"direction")==="rtl",rtlTranslate:e.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||mn(i,"direction")==="rtl"),wrongRTL:mn(s,"display")==="-webkit-box"}),!0}init(n){let e=this;if(e.initialized||e.mount(n)===!1)return e;e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.loop&&e.virtual&&e.params.virtual.enabled?e.slideTo(e.params.initialSlide+e.virtual.slidesBefore,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(void 0,!0),e.attachEvents();let r=[...e.el.querySelectorAll('[loading="lazy"]')];return e.isElement&&r.push(...e.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(o=>{o.complete?ea(e,o):o.addEventListener("load",s=>{ea(e,s.target)})}),Yl(e),e.initialized=!0,Yl(e),e.emit("init"),e.emit("afterInit"),e}destroy(n=!0,e=!0){let i=this,{params:r,el:o,wrapperEl:s,slides:a}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),e&&(i.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),s&&s.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(l=>{i.off(l)}),n!==!1&&(i.el&&typeof i.el!="string"&&(i.el.swiper=null),Vp(i)),i.destroyed=!0),null}static extendDefaults(n){ri(ql,n)}static get extendedDefaults(){return ql}static get defaults(){return ta}static installModule(n){t.prototype.__modules__||(t.prototype.__modules__=[]);let e=t.prototype.__modules__;typeof n=="function"&&e.indexOf(n)<0&&e.push(n)}static use(n){return Array.isArray(n)?(n.forEach(e=>t.installModule(e)),t):(t.installModule(n),t)}};Object.keys(Wl).forEach(t=>{Object.keys(Wl[t]).forEach(n=>{_i.prototype[n]=Wl[t][n]})});_i.use([og,sg]);function Ao({swiper:t,extendParams:n,on:e,emit:i}){n({virtual:{enabled:!1,slides:[],cache:!0,slidesPerViewAutoSlideSize:320,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let r,o=Xe();t.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};let s=o.createElement("div");function a(d,u){let g=t.params.virtual;if(g.cache&&t.virtual.cache[u])return t.virtual.cache[u];let b;return g.renderSlide?(b=g.renderSlide.call(t,d,u),typeof b=="string"&&(Ct(s,b),b=s.children[0])):t.isElement?b=yt("swiper-slide"):b=yt("div",t.params.slideClass),b.setAttribute("data-swiper-slide-index",u),g.renderSlide||Ct(b,d),g.cache&&(t.virtual.cache[u]=b),b}function l(d,u,g){let{slidesPerGroup:b,centeredSlides:m,slidesPerView:v,loop:_,initialSlide:D}=t.params;if(u&&!_&&D>0)return;let{addSlidesBefore:L,addSlidesAfter:R,slidesPerViewAutoSlideSize:V}=t.params.virtual,{from:C,to:K,slides:F,slidesGrid:P,offset:O}=t.virtual;t.params.cssMode||t.updateActiveIndex();let N=typeof g>"u"?t.activeIndex||0:g,B;t.rtlTranslate?B="right":B=t.isHorizontal()?"left":"top";let x;if(v==="auto")if(V){let ne=t.size;ne||(ne=t.isHorizontal()?t.el.getBoundingClientRect().width:t.el.getBoundingClientRect().height),x=Math.max(1,Math.ceil(ne/V))}else x=1;else x=v;let G,Y;m?(G=Math.floor(x/2)+b+R,Y=Math.floor(x/2)+b+L):(G=x+(b-1)+R,Y=(_?x:b)+L);let H=N-Y,pe=N+G;_||(H=Math.max(H,0),pe=Math.min(pe,F.length-1));let Me=(t.slidesGrid[H]||0)-(t.slidesGrid[0]||0);_&&N>=Y?(H-=Y,m||(Me+=t.slidesGrid[0])):_&&N<Y&&(H=-Y,m&&(Me+=t.slidesGrid[0])),Object.assign(t.virtual,{from:H,to:pe,offset:Me,slidesGrid:t.slidesGrid,slidesBefore:Y,slidesAfter:G});function Pt(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),i("virtualUpdate")}if(C===H&&K===pe&&!d){t.slidesGrid!==P&&Me!==O&&t.slides.forEach(ne=>{ne.style[B]=`${Me-Math.abs(t.cssOverflowAdjustment())}px`}),t.updateProgress(),i("virtualUpdate");return}if(t.params.virtual.renderExternal){t.params.virtual.renderExternal.call(t,{offset:Me,from:H,to:pe,slides:(function(){let ke=[];for(let kt=H;kt<=pe;kt+=1)ke.push(F[kt]);return ke})()}),t.params.virtual.renderExternalUpdate?Pt():i("virtualUpdate");return}let ce=[],Ht=[],X=ne=>{let ke=ne;return ne<0?ke=F.length+ne:ke>=F.length&&(ke=ke-F.length),ke};if(d)t.slides.filter(ne=>ne.matches(`.${t.params.slideClass}, swiper-slide`)).forEach(ne=>{ne.remove()});else for(let ne=C;ne<=K;ne+=1)if(ne<H||ne>pe){let ke=X(ne);t.slides.filter(kt=>kt.matches(`.${t.params.slideClass}[data-swiper-slide-index="${ke}"], swiper-slide[data-swiper-slide-index="${ke}"]`)).forEach(kt=>{kt.remove()})}let Z=_?-F.length:0,ae=_?F.length*2:F.length;for(let ne=Z;ne<ae;ne+=1)if(ne>=H&&ne<=pe){let ke=X(ne);typeof K>"u"||d?Ht.push(ke):(ne>K&&Ht.push(ke),ne<C&&ce.push(ke))}if(Ht.forEach(ne=>{t.slidesEl.append(a(F[ne],ne))}),_)for(let ne=ce.length-1;ne>=0;ne-=1){let ke=ce[ne];t.slidesEl.prepend(a(F[ke],ke))}else ce.sort((ne,ke)=>ke-ne),ce.forEach(ne=>{t.slidesEl.prepend(a(F[ne],ne))});it(t.slidesEl,".swiper-slide, swiper-slide").forEach(ne=>{ne.style[B]=`${Me-Math.abs(t.cssOverflowAdjustment())}px`}),Pt()}function c(d){if(typeof d=="object"&&"length"in d)for(let u=0;u<d.length;u+=1)d[u]&&t.virtual.slides.push(d[u]);else t.virtual.slides.push(d);l(!0)}function p(d){let u=t.activeIndex,g=u+1,b=1;if(Array.isArray(d)){for(let m=0;m<d.length;m+=1)d[m]&&t.virtual.slides.unshift(d[m]);g=u+d.length,b=d.length}else t.virtual.slides.unshift(d);if(t.params.virtual.cache){let m=t.virtual.cache,v={};Object.keys(m).forEach(_=>{let D=m[_],L=D.getAttribute("data-swiper-slide-index");L&&D.setAttribute("data-swiper-slide-index",parseInt(L,10)+b),v[parseInt(_,10)+b]=D}),t.virtual.cache=v}l(!0),t.slideTo(g,0)}function h(d){if(typeof d>"u"||d===null)return;let u=t.activeIndex;if(Array.isArray(d))for(let g=d.length-1;g>=0;g-=1)t.params.virtual.cache&&(delete t.virtual.cache[d[g]],Object.keys(t.virtual.cache).forEach(b=>{b>d&&(t.virtual.cache[b-1]=t.virtual.cache[b],t.virtual.cache[b-1].setAttribute("data-swiper-slide-index",b-1),delete t.virtual.cache[b])})),t.virtual.slides.splice(d[g],1),d[g]<u&&(u-=1),u=Math.max(u,0);else t.params.virtual.cache&&(delete t.virtual.cache[d],Object.keys(t.virtual.cache).forEach(g=>{g>d&&(t.virtual.cache[g-1]=t.virtual.cache[g],t.virtual.cache[g-1].setAttribute("data-swiper-slide-index",g-1),delete t.virtual.cache[g])})),t.virtual.slides.splice(d,1),d<u&&(u-=1),u=Math.max(u,0);l(!0),t.slideTo(u,0)}function f(){t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),l(!0),t.slideTo(0,0)}e("beforeInit",()=>{if(!t.params.virtual.enabled)return;let d;if(typeof t.passedParams.virtual.slides>"u"){let u=[...t.slidesEl.children].filter(g=>g.matches(`.${t.params.slideClass}, swiper-slide`));u&&u.length&&(t.virtual.slides=[...u],d=!0,u.forEach((g,b)=>{g.setAttribute("data-swiper-slide-index",b),t.virtual.cache[b]=g,g.remove()}))}d||(t.virtual.slides=t.params.virtual.slides),t.classNames.push(`${t.params.containerModifierClass}virtual`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,l(!1,!0)}),e("setTranslate",()=>{t.params.virtual.enabled&&(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(r),r=setTimeout(()=>{l()},100)):l())}),e("init update resize",()=>{t.params.virtual.enabled&&t.params.cssMode&&fn(t.wrapperEl,"--swiper-virtual-size",`${t.virtualSize}px`)}),Object.assign(t.virtual,{appendSlide:c,prependSlide:p,removeSlide:h,removeAllSlides:f,update:l})}function Kl({swiper:t,extendParams:n,on:e,emit:i}){let r=Xe(),o=je();t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}});function s(c){if(!t.enabled)return;let{rtlTranslate:p}=t,h=c;h.originalEvent&&(h=h.originalEvent);let f=h.keyCode||h.charCode,d=t.params.keyboard.pageUpDown,u=d&&f===33,g=d&&f===34,b=f===37,m=f===39,v=f===38,_=f===40;if(!t.allowSlideNext&&(t.isHorizontal()&&m||t.isVertical()&&_||g)||!t.allowSlidePrev&&(t.isHorizontal()&&b||t.isVertical()&&v||u))return!1;if(h.shiftKey||h.altKey||h.ctrlKey||h.metaKey||r.activeElement&&(r.activeElement.isContentEditable||r.activeElement.nodeName&&(r.activeElement.nodeName.toLowerCase()==="input"||r.activeElement.nodeName.toLowerCase()==="textarea")))return;if(t.params.keyboard.onlyInViewport&&(u||g||b||m||v||_)){let L=!1;if(Di(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&Di(t.el,`.${t.params.slideActiveClass}`).length===0)return;let R=t.el,V=R.clientWidth,C=R.clientHeight,K=o.innerWidth,F=o.innerHeight,P=gr(R);p&&(P.left-=R.scrollLeft);let O=[[P.left,P.top],[P.left+V,P.top],[P.left,P.top+C],[P.left+V,P.top+C]];for(let N=0;N<O.length;N+=1){let B=O[N];if(B[0]>=0&&B[0]<=K&&B[1]>=0&&B[1]<=F){if(B[0]===0&&B[1]===0)continue;L=!0}}if(!L)return}let D=t.params.keyboard.speed;t.isHorizontal()?((u||g||b||m)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),((g||m)&&!p||(u||b)&&p)&&t.slideNext(D
vendor: 10,148 bytes, line 1
1),((u||b)&&!p||(g||m)&&p)&&t.slidePrev(D)):((u||g||v||_)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),(g||_)&&t.slideNext(D),(u||v)&&t.slidePrev(D)),i("keyPress",f)}function a(){t.keyboard.enabled||(r.addEventListener("keydown",s),t.keyboard.enabled=!0)}function l(){t.keyboard.enabled&&(r.removeEventListener("keydown",s),t.keyboard.enabled=!1)}e("init",()=>{t.params.keyboard.enabled&&a()}),e("destroy",()=>{t.keyboard.enabled&&l()}),Object.assign(t.keyboard,{enable:a,disable:l})}function Xl({swiper:t,extendParams:n,on:e,emit:i}){let r=je();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let o,s=Yt(),a,l=[];function c(v){let R=0,V=0,C=0,K=0;return"detail"in v&&(V=v.detail),"wheelDelta"in v&&(V=-v.wheelDelta/120),"wheelDeltaY"in v&&(V=-v.wheelDeltaY/120),"wheelDeltaX"in v&&(R=-v.wheelDeltaX/120),"axis"in v&&v.axis===v.HORIZONTAL_AXIS&&(R=V,V=0),C=R*10,K=V*10,"deltaY"in v&&(K=v.deltaY),"deltaX"in v&&(C=v.deltaX),v.shiftKey&&!C&&(C=K,K=0),(C||K)&&v.deltaMode&&(v.deltaMode===1?(C*=40,K*=40):(C*=800,K*=800)),C&&!R&&(R=C<1?-1:1),K&&!V&&(V=K<1?-1:1),{spinX:R,spinY:V,pixelX:C,pixelY:K}}function p(){t.enabled&&(t.mouseEntered=!0)}function h(){t.enabled&&(t.mouseEntered=!1)}function f(v){return t.params.mousewheel.thresholdDelta&&v.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&Yt()-s<t.params.mousewheel.thresholdTime?!1:v.delta>=6&&Yt()-s<60?!0:(v.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),i("scroll",v.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),i("scroll",v.raw)),s=new r.Date().getTime(),!1)}function d(v){let _=t.params.mousewheel;if(v.direction<0){if(t.isEnd&&!t.params.loop&&_.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&_.releaseOnEdges)return!0;return!1}function u(v){let _=v,D=!0;if(!t.enabled||v.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;let L=t.params.mousewheel;t.params.cssMode&&_.preventDefault();let R=t.el;t.params.mousewheel.eventsTarget!=="container"&&(R=document.querySelector(t.params.mousewheel.eventsTarget));let V=R&&R.contains(_.target);if(!t.mouseEntered&&!V&&!L.releaseOnEdges)return!0;_.originalEvent&&(_=_.originalEvent);let C=0,K=t.rtlTranslate?-1:1,F=c(_);if(L.forceToAxis)if(t.isHorizontal())if(Math.abs(F.pixelX)>Math.abs(F.pixelY))C=-F.pixelX*K;else return!0;else if(Math.abs(F.pixelY)>Math.abs(F.pixelX))C=-F.pixelY;else return!0;else C=Math.abs(F.pixelX)>Math.abs(F.pixelY)?-F.pixelX*K:-F.pixelY;if(C===0)return!0;L.invert&&(C=-C);let P=t.getTranslate()+C*L.sensitivity;if(P>=t.minTranslate()&&(P=t.minTranslate()),P<=t.maxTranslate()&&(P=t.maxTranslate()),D=t.params.loop?!0:!(P===t.minTranslate()||P===t.maxTranslate()),D&&t.params.nested&&_.stopPropagation(),!t.params.freeMode||!t.params.freeMode.enabled){let O={time:Yt(),delta:Math.abs(C),direction:Math.sign(C),raw:v};l.length>=2&&l.shift();let N=l.length?l[l.length-1]:void 0;if(l.push(O),N?(O.direction!==N.direction||O.delta>N.delta||O.time>N.time+150)&&f(O):f(O),d(O))return!0}else{let O={time:Yt(),delta:Math.abs(C),direction:Math.sign(C)},N=a&&O.time<a.time+500&&O.delta<=a.delta&&O.direction===a.direction;if(!N){a=void 0;let B=t.getTranslate()+C*L.sensitivity,x=t.isBeginning,G=t.isEnd;if(B>=t.minTranslate()&&(B=t.minTranslate()),B<=t.maxTranslate()&&(B=t.maxTranslate()),t.setTransition(0),t.setTranslate(B),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!x&&t.isBeginning||!G&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:O.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(o),o=void 0,l.length>=15&&l.shift();let Y=l.length?l[l.length-1]:void 0,H=l[0];if(l.push(O),Y&&(O.delta>Y.delta||O.direction!==Y.direction))l.splice(0);else if(l.length>=15&&O.time-H.time<500&&H.delta-O.delta>=1&&O.delta<=6){let pe=C>0?.8:.2;a=O,l.splice(0),o=Hi(()=>{t.destroyed||!t.params||t.slideToClosest(t.params.speed,!0,void 0,pe)},0)}o||(o=Hi(()=>{if(t.destroyed||!t.params)return;let pe=.5;a=O,l.splice(0),t.slideToClosest(t.params.speed,!0,void 0,pe)},500))}if(N||i("scroll",_),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),L.releaseOnEdges&&(B===t.minTranslate()||B===t.maxTranslate()))return!0}}return _.preventDefault?_.preventDefault():_.returnValue=!1,!1}function g(v){let _=t.el;t.params.mousewheel.eventsTarget!=="container"&&(_=document.querySelector(t.params.mousewheel.eventsTarget)),_[v]("mouseenter",p),_[v]("mouseleave",h),_[v]("wheel",u)}function b(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",u),!0):t.mousewheel.enabled?!1:(g("addEventListener"),t.mousewheel.enabled=!0,!0)}function m(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,u),!0):t.mousewheel.enabled?(g("removeEventListener"),t.mousewheel.enabled=!1,!0):!1}e("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&m(),t.params.mousewheel.enabled&&b()}),e("destroy",()=>{t.params.cssMode&&b(),t.mousewheel.enabled&&m()}),Object.assign(t.mousewheel,{enable:b,disable:m})}function Kr(t,n,e,i){return t.params.createElements&&Object.keys(i).forEach(r=>{if(!e[r]&&e.auto===!0){let o=it(t.el,`.${i[r]}`)[0];o||(o=yt("div",i[r]),o.className=i[r],t.el.append(o)),e[r]=o,n[r]=o}}),e}var Zp='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function Ro({swiper:t,extendParams:n,on:e,emit:i}){n({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null,arrowSvg:Zp};function r(d){let u;return d&&typeof d=="string"&&t.isElement&&(u=t.el.querySelector(d)||t.hostEl.querySelector(d),u)?u:(d&&(typeof d=="string"&&(u=[...document.querySelectorAll(d)]),t.params.uniqueNavElements&&typeof d=="string"&&u&&u.length>1&&t.el.querySelectorAll(d).length===1?u=t.el.querySelector(d):u&&u.length===1&&(u=u[0])),d&&!u?d:u)}function o(d,u){let g=t.params.navigation;d=De(d),d.forEach(b=>{b&&(b.classList[u?"add":"remove"](...g.disabledClass.split(" ")),b.tagName==="BUTTON"&&(b.disabled=u),t.params.watchOverflow&&t.enabled&&b.classList[t.isLocked?"add":"remove"](g.lockClass))})}function s(){let{nextEl:d,prevEl:u}=t.navigation;if(t.params.loop){o(u,!1),o(d,!1);return}o(u,t.isBeginning&&!t.params.rewind),o(d,t.isEnd&&!t.params.rewind)}function a(d){d.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function l(d){d.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){let d=t.params.navigation;if(t.params.navigation=Kr(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(d.nextEl||d.prevEl))return;let u=r(d.nextEl),g=r(d.prevEl);Object.assign(t.navigation,{nextEl:u,prevEl:g}),u=De(u),g=De(g);let b=(m,v)=>{if(m){if(d.addIcons&&m.matches(".swiper-button-next,.swiper-button-prev")&&!m.querySelector("svg")){let _=document.createElement("div");Ct(_,Zp),m.appendChild(_.querySelector("svg")),_.remove()}m.addEventListener("click",v==="next"?l:a)}!t.enabled&&m&&m.classList.add(...d.lockClass.split(" "))};u.forEach(m=>b(m,"next")),g.forEach(m=>b(m,"prev"))}function p(){let{nextEl:d,prevEl:u}=t.navigation;d=De(d),u=De(u);let g=(b,m)=>{b.removeEventListener("click",m==="next"?l:a),b.classList.remove(...t.params.navigation.disabledClass.split(" "))};d.forEach(b=>g(b,"next")),u.forEach(b=>g(b,"prev"))}e("init",()=>{t.params.navigation.enabled===!1?f():(c(),s())}),e("toEdge fromEdge lock unlock",()=>{s()}),e("destroy",()=>{p()}),e("enable disable",()=>{let{nextEl:d,prevEl:u}=t.navigation;if(d=De(d),u=De(u),t.enabled){s();return}[...d,...u].filter(g=>!!g).forEach(g=>g.classList.add(t.params.navigation.lockClass))}),e("click",(d,u)=>{let{nextEl:g,prevEl:b}=t.navigation;g=De(g),b=De(b);let m=u.target,v=b.includes(m)||g.includes(m);if(t.isElement&&!v){let _=u.path||u.composedPath&&u.composedPath();_&&(v=_.find(D=>g.includes(D)||b.includes(D)))}if(t.params.navigation.hideOnClick&&!v){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===m||t.pagination.el.contains(m)))return;let _;g.length?_=g[0].classList.contains(t.params.navigation.hiddenClass):b.length&&(_=b[0].classList.contains(t.params.navigation.hiddenClass)),i(_===!0?"navigationShow":"navigationHide"),[...g,...b].filter(D=>!!D).forEach(D=>D.classList.toggle(t.params.navigation.hiddenClass))}});let h=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),s()},f=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(t.navigation,{enable:h,disable:f,update:s,init:c,destroy:p})}function bi(t=""){return`.${t.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function Oo({swiper:t,extendParams:n,on:e,emit:i}){let r="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:m=>m,formatFractionTotal:m=>m,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}
1-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let o,s=0;function a(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function l(m,v){let{bulletActiveClass:_}=t.params.pagination;m&&(m=m[`${v==="prev"?"previous":"next"}ElementSibling`],m&&(m.classList.add(`${_}-${v}`),m=m[`${v==="prev"?"previous":"next"}ElementSibling`],m&&m.classList.add(`${_}-${v}-${v}`)))}function c(m,v,_){if(m=m%_,v=v%_,v===m+1)return"next";if(v===m-1)return"previous"}function p(m){let v=m.target.closest(bi(t.params.pagination.bulletClass));if(!v)return;m.preventDefault();let _=Ln(v)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===_)return;let D=c(t.realIndex,_,t.slides.length);D==="next"?t.slideNext():D==="previous"?t.slidePrev():t.slideToLoop(_)}else t.slideTo(_)}function h(){let m=t.rtl,v=t.params.pagination;if(a())return;let _=t.pagination.el;_=De(_);let D,L,R=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,V=t.params.loop?Math.ceil(R/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(L=t.previousRealIndex||0,D=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(D=t.snapIndex,L=t.previousSnapIndex):(L=t.previousIndex||0,D=t.activeIndex||0),v.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){let C=t.pagination.bullets,K,F,P;if(v.dynamicBullets&&(o=Mo(C[0],t.isHorizontal()?"width":"height",!0),_.forEach(O=>{O.style[t.isHorizontal()?"width":"height"]=`${o*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&L!==void 0&&(s+=D-(L||0),s>v.dynamicMainBullets-1?s=v.dynamicMainBullets-1:s<0&&(s=0)),K=Math.max(D-s,0),F=K+(Math.min(C.length,v.dynamicMainBullets)-1),P=(F+K)/2),C.forEach(O=>{let N=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(B=>`${v.bulletActiveClass}${B}`)].map(B=>typeof B=="string"&&B.includes(" ")?B.split(" "):B).flat();O.classList.remove(...N)}),_.length>1)C.forEach(O=>{let N=Ln(O);N===D?O.classList.add(...v.bulletActiveClass.split(" ")):t.isElement&&O.setAttribute("part","bullet"),v.dynamicBullets&&(N>=K&&N<=F&&O.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),N===K&&l(O,"prev"),N===F&&l(O,"next"))});else{let O=C[D];if(O&&O.classList.add(...v.bulletActiveClass.split(" ")),t.isElement&&C.forEach((N,B)=>{N.setAttribute("part",B===D?"bullet-active":"bullet")}),v.dynamicBullets){let N=C[K],B=C[F];for(let x=K;x<=F;x+=1)C[x]&&C[x].classList.add(...`${v.bulletActiveClass}-main`.split(" "));l(N,"prev"),l(B,"next")}}if(v.dynamicBullets){let O=Math.min(C.length,v.dynamicMainBullets+4),N=(o*O-o)/2-P*o,B=m?"right":"left";C.forEach(x=>{x.style[t.isHorizontal()?B:"top"]=`${N}px`})}}_.forEach((C,K)=>{if(v.type==="fraction"&&(C.querySelectorAll(bi(v.currentClass)).forEach(F=>{F.textContent=v.formatFractionCurrent(D+1)}),C.querySelectorAll(bi(v.totalClass)).forEach(F=>{F.textContent=v.formatFractionTotal(V)})),v.type==="progressbar"){let F;v.progressbarOpposite?F=t.isHorizontal()?"vertical":"horizontal":F=t.isHorizontal()?"horizontal":"vertical";let P=(D+1)/V,O=1,N=1;F==="horizontal"?O=P:N=P,C.querySelectorAll(bi(v.progressbarFillClass)).forEach(B=>{B.style.transform=`translate3d(0,0,0) scaleX(${O}) scaleY(${N})`,B.style.transitionDuration=`${t.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(Ct(C,v.renderCustom(t,D+1,V)),K===0&&i("paginationRender",C)):(K===0&&i("paginationRender",C),i("paginationUpdate",C)),t.params.watchOverflow&&t.enabled&&C.classList[t.isLocked?"add":"remove"](v.lockClass)})}function f(){let m=t.params.pagination;if(a())return;let v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length,_=t.pagination.el;_=De(_);let D="";if(m.type==="bullets"){let L=t.params.loop?Math.ceil(v/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&L>v&&(L=v);for(let R=0;R<L;R+=1)m.renderBullet?D+=m.renderBullet.call(t,R,m.bulletClass):D+=`<${m.bulletElement} ${t.isElement?'part="bullet"':""} class="${m.bulletClass}"></${m.bulletElement}>`}m.type==="fraction"&&(m.renderFraction?D=m.renderFraction.call(t,m.currentClass,m.totalClass):D=`<span class="${m.currentClass}"></span> / <span class="${m.totalClass}"></span>`),m.type==="progressbar"&&(m.renderProgressbar?D=m.renderProgressbar.call(t,m.progressbarFillClass):D=`<span class="${m.progressbarFillClass}"></span>`),t.pagination.bullets=[],_.forEach(L=>{m.type!=="custom"&&Ct(L,D||""),m.type==="bullets"&&t.pagination.bullets.push(...L.querySelectorAll(bi(m.bulletClass)))}),m.type!=="custom"&&i("paginationRender",_[0])}function d(){t.params.pagination=Kr(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});let m=t.params.pagination;if(!m.el)return;let v;typeof m.el=="string"&&t.isElement&&(v=t.el.querySelector(m.el)),!v&&typeof m.el=="string"&&(v=[...document.querySelectorAll(m.el)]),v||(v=m.el),!(!v||v.length===0)&&(t.params.uniqueNavElements&&typeof m.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...t.el.querySelectorAll(m.el)],v.length>1&&(v=v.find(_=>Di(_,".swiper")[0]===t.el))),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(t.pagination,{el:v}),v=De(v),v.forEach(_=>{m.type==="bullets"&&m.clickable&&_.classList.add(...(m.clickableClass||"").split(" ")),_.classList.add(m.modifierClass+m.type),_.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.type==="bullets"&&m.dynamicBullets&&(_.classList.add(`${m.modifierClass}${m.type}-dynamic`),s=0,m.dynamicMainBullets<1&&(m.dynamicMainBullets=1)),m.type==="progressbar"&&m.progressbarOpposite&&_.classList.add(m.progressbarOppositeClass),m.clickable&&_.addEventListener("click",p),t.enabled||_.classList.add(m.lockClass)}))}function u(){let m=t.params.pagination;if(a())return;let v=t.pagination.el;v&&(v=De(v),v.forEach(_=>{_.classList.remove(m.hiddenClass),_.classList.remove(m.modifierClass+m.type),_.classList.remove(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.clickable&&(_.classList.remove(...(m.clickableClass||"").split(" ")),_.removeEventListener("click",p))}
vendor: 20,090 bytes, line 1
1)),t.pagination.bullets&&t.pagination.bullets.forEach(_=>_.classList.remove(...m.bulletActiveClass.split(" ")))}e("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;let m=t.params.pagination,{el:v}=t.pagination;v=De(v),v.forEach(_=>{_.classList.remove(m.horizontalClass,m.verticalClass),_.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass)})}),e("init",()=>{t.params.pagination.enabled===!1?b():(d(),f(),h())}),e("activeIndexChange",()=>{typeof t.snapIndex>"u"&&h()}),e("snapIndexChange",()=>{h()}),e("snapGridLengthChange",()=>{f(),h()}),e("destroy",()=>{u()}),e("enable disable",()=>{let{el:m}=t.pagination;m&&(m=De(m),m.forEach(v=>v.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),e("lock unlock",()=>{h()}),e("click",(m,v)=>{let _=v.target,D=De(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&D&&D.length>0&&!_.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&_===t.navigation.nextEl||t.navigation.prevEl&&_===t.navigation.prevEl))return;let L=D[0].classList.contains(t.params.pagination.hiddenClass);i(L===!0?"paginationShow":"paginationHide"),D.forEach(R=>R.classList.toggle(t.params.pagination.hiddenClass))}});let g=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=De(m),m.forEach(v=>v.classList.remove(t.params.pagination.paginationDisabledClass))),d(),f(),h()},b=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=De(m),m.forEach(v=>v.classList.add(t.params.pagination.paginationDisabledClass))),u()};Object.assign(t.pagination,{enable:g,disable:b,render:f,update:h,init:d,destroy:u})}function Lo({swiper:t,extendParams:n,on:e,emit:i}){let r=Xe(),o=!1,s=null,a=null,l,c,p,h;n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null};function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;let{scrollbar:P,rtlTranslate:O}=t,{dragEl:N,el:B}=P,x=t.params.scrollbar,G=t.params.loop?t.progressLoop:t.progress,Y=c,H=(p-c)*G;O?(H=-H,H>0?(Y=c-H,H=0):-H+c>p&&(Y=p+H)):H<0?(Y=c+H,H=0):H+c>p&&(Y=p-H),t.isHorizontal()?(N.style.transform=`translate3d(${H}px, 0, 0)`,N.style.width=`${Y}px`):(N.style.transform=`translate3d(0px, ${H}px, 0)`,N.style.height=`${Y}px`),x.hide&&(clearTimeout(s),B.style.opacity=1,s=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function d(P){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${P}ms`)}function u(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;let{scrollbar:P}=t,{dragEl:O,el:N}=P;O.style.width="",O.style.height="",p=t.isHorizontal()?N.offsetWidth:N.offsetHeight,h=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),t.params.scrollbar.dragSize==="auto"?c=p*h:c=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?O.style.width=`${c}px`:O.style.height=`${c}px`,h>=1?N.style.display="none":N.style.display="",t.params.scrollbar.hide&&(N.style.opacity=0),t.params.watchOverflow&&t.enabled&&P.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function g(P){return t.isHorizontal()?P.clientX:P.clientY}function b(P){let{scrollbar:O,rtlTranslate:N}=t,{el:B}=O,x;x=(g(P)-gr(B)[t.isHorizontal()?"left":"top"]-(l!==null?l:c/2))/(p-c),x=Math.max(Math.min(x,1),0),N&&(x=1-x);let G=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*x;t.updateProgress(G),t.setTranslate(G),t.updateActiveIndex(),t.updateSlidesClasses()}function m(P){let O=t.params.scrollbar,{scrollbar:N,wrapperEl:B}=t,{el:x,dragEl:G}=N;o=!0,l=P.target===G?g(P)-P.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,P.preventDefault(),P.stopPropagation(),B.style.transitionDuration="100ms",G.style.transitionDuration="100ms",b(P),clearTimeout(a),x.style.transitionDuration="0ms",O.hide&&(x.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",P)}function v(P){let{scrollbar:O,wrapperEl:N}=t,{el:B,dragEl:x}=O;o&&(P.preventDefault&&P.cancelable?P.preventDefault():P.returnValue=!1,b(P),N.style.transitionDuration="0ms",B.style.transitionDuration="0ms",x.style.transitionDuration="0ms",i("scrollbarDragMove",P))}function _(P){let O=t.params.scrollbar,{scrollbar:N,wrapperEl:B}=t,{el:x}=N;o&&(o=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),O.hide&&(clearTimeout(a),a=Hi(()=>{x.style.opacity=0,x.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",P),O.snapOnRelease&&t.slideToClosest())}function D(P){let{scrollbar:O,params:N}=t,B=O.el;if(!B)return;let x=B,G=N.passiveListeners?{passive:!1,capture:!1}:!1,Y=N.passiveListeners?{passive:!0,capture:!1}:!1;if(!x)return;let H=P==="on"?"addEventListener":"removeEventListener";x[H]("pointerdown",m,G),r[H]("pointermove",v,G),r[H]("pointerup",_,Y)}function L(){!t.params.scrollbar.el||!t.scrollbar.el||D("on")}function R(){!t.params.scrollbar.el||!t.scrollbar.el||D("off")}function V(){let{scrollbar:P,el:O}=t;t.params.scrollbar=Kr(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});let N=t.params.scrollbar;if(!N.el)return;let B;if(typeof N.el=="string"&&t.isElement&&(B=t.el.querySelector(N.el)),!B&&typeof N.el=="string"){if(B=r.querySelectorAll(N.el),!B.length)return}else B||(B=N.el);t.params.uniqueNavElements&&typeof N.el=="string"&&B.length>1&&O.querySelectorAll(N.el).length===1&&(B=O.querySelector(N.el)),B.length>0&&(B=B[0]),B.classList.add(t.isHorizontal()?N.horizontalClass:N.verticalClass);let x;B&&(x=B.querySelector(bi(t.params.scrollbar.dragClass)),x||(x=yt("div",t.params.scrollbar.dragClass),B.append(x))),Object.assign(P,{el:B,dragEl:x}),N.draggable&&L(),B&&B.classList[t.enabled?"remove":"add"](...hn(t.params.scrollbar.lockClass))}function C(){let P=t.params.scrollbar,O=t.scrollbar.el;O&&O.classList.remove(...hn(t.isHorizontal()?P.horizontalClass:P.verticalClass)),R()}e("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;let P=t.params.scrollbar,{el:O}=t.scrollbar;O=De(O),O.forEach(N=>{N.classList.remove(P.horizontalClass,P.verticalClass),N.classList.add(t.isHorizontal()?P.horizontalClass:P.verticalClass)})}),e("init",()=>{t.params.scrollbar.enabled===!1?F():(V(),u(),f())}),e("update resize observerUpdate lock unlock changeDirection",()=>{u()}),e("setTranslate",()=>{f()}),e("setTransition",(P,O)=>{d(O)}),e("enable disable",()=>{let{el:P}=t.scrollbar;P&&P.classList[t.enabled?"remove":"add"](...hn(t.params.scrollbar.lockClass))}),e("destroy",()=>{C()});let K=()=>{t.el.classList.remove(...hn(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...hn(t.params.scrollbar.scrollbarDisabledClass)),V(),u(),f()},F=()=>{t.el.classList.add(...hn(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...hn(t.params.scrollbar.scrollbarDisabledClass)),C()};Object.assign(t.scrollbar,{enable:K,disable:F,updateSize:u,setTranslate:f,init:V,destroy:C})}function Jl({swiper:t,extendParams:n,on:e}){n({parallax:{enabled:!1}});let i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(a,l)=>{let{rtl:c}=t,p=c?-1:1,h=a.getAttribute("data-swiper-parallax")||"0",f=a.getAttribute("data-swiper-parallax-x"),d=a.getAttribute("data-swiper-parallax-y"),u=a.getAttribute("data-swiper-parallax-scale"),g=a.getAttribute("data-swiper-parallax-opacity"),b=a.getAttribute("data-swiper-parallax-rotate");if(f||d?(f=f||"0",d=d||"0"):t.isHorizontal()?(f=h,d="0"):(d=h,f="0"),f.indexOf("%")>=0?f=`${parseInt(f,10)*l*p}%`:f=`${f*l*p}px`,d.indexOf("%")>=0?d=`${parseInt(d,10)*l}%`:d=`${d*l}px`,typeof g<"u"&&g!==null){let v=g-(g-1)*(1-Math.abs(l));a.style.opacity=v}let m=`translate3d(${f}, ${d}, 0px)`;if(typeof u<"u"&&u!==null){let v=u-(u-1)*(1-Math.abs(l));m+=` scale(${v})`}if(b&&typeof b<"u"&&b!==null){let v=b*l*-1;m+=` rotate(${v}deg)`}a.style.transform=m},o=()=>{let{el:a,slides:l,progress:c,snapGrid:p,isElement:h}=t,f=it(a,i);t.isElement&&f.push(...it(t.hostEl,i)),f.forEach(d=>{r(d,c)}),l.forEach((d,u)=>{let g=d.progress;t.params.slidesPerGroup>1&&t.params.slidesPerView!=="auto"&&(g+=Math.ceil(u/2)-c*(p.length-1)),g=Math.min(Math.max(g,-1),1),d.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach(b=>{r(b,g)})})},s=(a=t.params.speed)=>{let{el:l,hostEl:c}=t,p=[...l.querySelectorAll(i)];t.isElement&&p.push(...c.querySelectorAll(i)),p.forEach(h=>{let f=parseInt(h.getAttribute("data-swiper-parallax-duration"),10)||a;a===0&&(f=0),h.style.transitionDuration=`${f}ms`})};e("beforeInit",()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),e("init",()=>{t.params.parallax.enabled&&o()}),e("setTranslate",()=>{t.params.parallax.enabled&&o()}),e("setTransition",(a,l)=>{t.params.parallax.enabled&&s(l)})}function No({swiper:t,extendParams:n,on:e,emit:i}){let r=je();n({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let o=1,s=!1,a=!1,l={x:0,y:0},c=-3,p,h,f=[],d={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},u={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},b=1;Object.defineProperty(t.zoom,"scale",{get(){return b},set(X){if(b!==X){let Z=d.imageEl,ae=d.slideEl;i("zoomChange",X,Z,ae)}b=X}});function m(){if(f.length<2)return 1;let X=f[0].pageX,Z=f[0].pageY,ae=f[1].pageX,ne=f[1].pageY;return Math.sqrt((ae-X)**2+(ne-Z)**2)}function v(){let X=t.params.zoom,Z=d.imageWrapEl.getAttribute("data-swiper-zoom")||X.maxRatio;if(X.limitToOriginalSize&&d.imageEl&&d.imageEl.naturalWidth){let ae=d.imageEl.naturalWidth/d.imageEl.offsetWidth;return Math.min(ae,Z)}return Z}function _(){if(f.length<2)return{x:null,y:null};let X=d.imageEl.getBoundingClientRect();return[(f[0].pageX+(f[1].pageX-f[0].pageX)/2-X.x-r.scrollX)/o,(f[0].pageY+(f[1].pageY-f[0].pageY)/2-X.y-r.scrollY)/o]}function D(){return t.isElement?"swiper-slide":`.${t.params.slideClass}`}function L(X){let Z=D();return!!(X.target.matches(Z)||t.slides.filter(ae=>ae.contains(X.target)).length>0)}function R(X){let Z=`.${t.params.zoom.containerClass}`;return!!(X.target.matches(Z)||[...t.hostEl.querySelectorAll(Z)].filter(ae=>ae.contains(X.target)).length>0)}function V(X){if(X.pointerType==="mouse"&&f.splice(0,f.length),!L(X))return;let Z=t.params.zoom;if(p=!1,h=!1,f.push(X),!(f.length<2)){if(p=!0,d.scaleStart=m(),!d.slideEl){d.slideEl=X.target.closest(`.${t.params.slideClass}, swiper-slide`),d.slideEl||(d.slideEl=t.slides[t.activeIndex]);let ae=d.slideEl.querySelector(`.${Z.containerClass}`);if(ae&&(ae=ae.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=ae,ae?d.imageWrapEl=Di(d.imageEl,`.${Z.containerClass}`)[0]:d.imageWrapEl=void 0,!d.imageWrapEl){d.imageEl=void 0;return}d.maxRatio=v()}if(d.imageEl){let[ae,ne]=_();d.originX=ae,d.originY=ne,d.imageEl.style.transitionDuration="0ms"}s=!0}}function C(X){if(!L(X))return;let Z=t.params.zoom,ae=t.zoom,ne=f.findIndex(ke=>ke.pointerId===X.pointerId);ne>=0&&(f[ne]=X),!(f.length<2)&&(h=!0,d.scaleMove=m(),d.imageEl&&(ae.scale=d.scaleMove/d.scaleStart*o,ae.scale>d.maxRatio&&(ae.scale=d.maxRatio-1+(ae.scale-d.maxRatio+1)**.5),ae.scale<Z.minRatio&&(ae.scale=Z.minRatio+1-(Z.minRatio-ae.scale+1)**.5),d.imageEl.style.transform=`translate3d(0,0,0) scale(${ae.scale})`))}function K(X){if(!L(X)||X.pointerType==="mouse"&&X.type==="pointerout")return;let Z=t.params.zoom,ae=t.zoom,ne=f.findIndex(ke=>ke.pointerId===X.pointerId);ne>=0&&f.splice(ne,1),!(!p||!h)&&(p=!1,h=!1,d.imageEl&&(ae.scale=Math.max(Math.min(ae.scale,d.maxRatio),Z.minRatio),d.imageEl.style.transitionDuration=`${t.params.speed}ms`,d.imageEl.style.transform=`translate3d(0,0,0) scale(${ae.scale})`,o=ae.scale,s=!1,ae.scale>1&&d.slideEl?d.slideEl.classList.add(`${Z.zoomedSlideClass}`):ae.scale<=1&&d.slideEl&&d.slideEl.classList.remove(`${Z.zoomedSlideClass}`),ae.scale===1&&(d.originX=0,d.originY=0,d.slideEl=void 0)))}let F;function P(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function O(){clearTimeout(F),t.touchEventsData.preventTouchMoveFromPointerMove=!0,F=setTimeout(()=>{t.destroyed||P()})}function N(X){let Z=t.device;if(!d.imageEl||u.isTouched)return;Z.android&&X.cancelable&&X.preventDefault(),u.isTouched=!0;let ae=f.length>0?f[0]:X;u.touchesStart.x=ae.pageX,u.touchesStart.y=ae.pageY}function B(X){let ae=X.pointerType==="mouse"&&t.params.zoom.panOnMouseMove;if(!L(X)||!R(X))return;let ne=t.zoom;if(!d.imageEl)return;if(!u.isTouched||!d.slideEl){ae&&Y(X);return}if(ae){Y(X);return}u.isMoved||(u.width=d.imageEl.offsetWidth||d.imageEl.clientWidth,u.height=d.imageEl.offsetHeight||d.imageEl.clientHeight,u.startX=ko(d.imageWrapEl,"x")||0,u.startY=ko(d.imageWrapEl,"y")||0,d.slideWidth=d.slideEl.offsetWidth,d.slideHeight=d.slideEl.offsetHeight,d.imageWrapEl.style.transitionDuration="0ms");let ke=u.width*ne.scale,kt=u.height*ne.scale;if(u.minX=Math.min(d.slideWidth/2-ke/2,0),u.maxX=-u.minX,u.minY=Math.min(d.slideHeight/2-kt/2,0),u.maxY=-u.minY,u.touchesCurrent.x=f.length>0?f[0].pageX:X.pageX,u.touchesCurrent.y=f.length>0?f[0].pageY:X.pageY,Math.max(Math.abs(u.touchesCurrent.x-u.touchesStart.x),Math.abs(u.touchesCurrent.y-u.touchesStart.y))>5&&(t.allowClick=!1),!u.isMoved&&!s){if(t.isHorizontal()&&(Math.floor(u.minX)===Math.floor(u.startX)&&u.touchesCurrent.x<u.touchesStart.x||Math.floor(u.maxX)===Math.floor(u.startX)&&u.touchesCurrent.x>u.touchesStart.x)){u.isTouched=!1,P();return}if(!t.isHorizontal()&&(Math.floor(u.minY)===Math.floor(u.startY)&&u.touchesCurrent.y<u.touchesStart.y||Math.floor(u.maxY)===Math.floor(u.startY)&&u.touchesCurrent.y>u.touchesStart.y)){u.isTouched=!1,P();return}}X.cancelable&&X.preventDefault(),X.stopPropagation(),O(),u.isMoved=!0;let di=(ne.scale-o)/(d.maxRatio-t.params.zoom.minRatio),{originX:Ut,originY:xt}=d;u.currentX=u.touchesCurrent.x-u.touchesStart.x+u.startX+di*(u.width-Ut*2),u.currentY=u.touchesCurrent.y-u.touchesStart.y+u.startY+di*(u.height-xt*2),u.currentX<u.minX&&(u.currentX=u.minX+1-(u.minX-u.currentX+1)**.8),u.currentX>u.maxX&&(u.currentX=u.maxX-1+(u.currentX-u.maxX+1)**.8),u.currentY<u.minY&&(u.currentY=u.minY+1-(u.minY-u.currentY+1)**.8),u.currentY>u.maxY&&(u.currentY=u.maxY-1+(u.currentY-u.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=u.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=u.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(u.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(u.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(u.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(u.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=u.touchesCurrent.x,g.prevPositionY=u.touchesCurrent.y,g.prevTime=Date.now(),d.imageWrapEl.style.transform=`translate3d(${u.currentX}px, ${u.currentY}px,0)`}function x(){let X=t.zoom;if(f.length=0,!d.imageEl)return;if(!u.isTouched||!u.isMoved){u.isTouched=!1,u.isMoved=!1;return}u.isTouched=!1,u.isMoved=!1;let Z=300,ae=300,ne=g.x*Z,ke=u.currentX+ne,kt=g.y*ae,It=u.currentY+kt;g.x!==0&&(Z=Math.abs((ke-u.currentX)/g.x)),g.y!==0&&(ae=Math.abs((It-u.currentY)/g.y));let di=Math.max(Z,ae);u.currentX=ke,u.currentY=It;let Ut=u.width*X.scale,xt=u.height*X.scale;u.minX=Math.min(d.slideWidth/2-Ut/2,0),u.maxX=-u.minX,u.minY=Math.min(d.slideHeight/2-xt/2,0),u.maxY=-u.minY,u.currentX=Math.max(Math.min(u.currentX,u.maxX),u.minX),u.currentY=Math.max(Math.min(u.currentY,u.maxY),u.minY),d.imageWrapEl.style.transitionDuration=`${di}ms`,d.imageWrapEl.style.transform=`translate3d(${u.currentX}px, ${u.currentY}px,0)`}function G(){let X=t.zoom;d.slideEl&&t.activeIndex!==t.slides.indexOf(d.slideEl)&&(d.imageEl&&(d.imageEl.style.transform="translate3d(0,0,0) scale(1)"),d.imageWrapEl&&(d.imageWrapEl.style.transform="translate3d(0,0,0)"),d.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),X.scale=1,o=1,d.slideEl=void 0,d.imageEl=void 0,d.imageWrapEl=void 0,d.originX=0,d.originY=0)}function Y(X){if(o<=1||!d.imageWrapEl||!L(X)||!R(X))return;let Z=r.getComputedStyle(d.imageWrapEl).transform,ae=new r.DOMMatrix(Z);if(!a){a=!0,l.x=X.clientX,l.y=X.clientY,u.startX=ae.e,u.startY=ae.f,u.width=d.imageEl.offsetWidth||d.imageEl.clientWidth,u.height=d.imageEl.offsetHeight||d.imageEl.clientHeight,d.slideWidth=d.slideEl.offsetWidth,d.slideHeight=d.slideEl.offsetHeight;return}let ne=(X.clientX-l.x)*c,ke=(X.clientY-l.y)*c,kt=u.width*o,It=u.height*o,di=d.slideWidth,Ut=d.slideHeight,xt=Math.min(di/2-kt/2,0),ai=-xt,nn=Math.min(Ut/2-It/2,0),Zn=-nn,rn=Math.max(Math.min(u.startX+ne,ai),xt),on=Math.max(Math.min(u.startY+ke,Zn),nn);d.imageWrapEl.style.transitionDuration="0ms",d.imageWrapEl.style.transform=`translate3d(${rn}px, ${on}px, 0)`,l.x=X.clientX,l.y=X.clientY,u.startX=rn,u.startY=on,u.currentX=rn,u.currentY=on}function H(X){let Z=t.zoom,ae=t.params.zoom;if(!d.slideEl){X&&X.target&&(d.slideEl=X.target.closest(`.${t.params.slideClass}, swiper-slide`)),d.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?d.slideEl=it(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:d.slideEl=t.slides[t.activeIndex]);let ir=d.slideEl.querySelector(`.${ae.containerClass}`);ir&&(ir=ir.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=ir,ir?d.imageWrapEl=Di(d.imageEl,`.${ae.containerClass}`)[0]:d.imageWrapEl=void 0}if(!d.imageEl||!d.imageWrapEl)return;d.maxRatio=v(),t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),d.slideEl.classList.add(`${ae.zoomedSlideClass}`);let ne,ke,kt,It,di,Ut,xt,ai,nn,Zn,rn,on,Qn,er,tr,fo,mo,go;typeof u.touchesStart.x>"u"&&X?(ne=X.pageX,ke=X.pageY):(ne=u.touchesStart.x,ke=u.touchesStart.y);let vo=o,ui=typeof X=="number"?X:null;o===1&&ui&&(ne=void 0,ke=void 0,u.touchesStart.x=void 0,u.touchesStart.y=void 0);let Ms=v();Z.scale=ui||Ms,o=ui||Ms,X&&!(o===1&&ui)?(mo=d.slideEl.offsetWidth,go=d.slideEl.offsetHeight,kt=gr(d.slideEl).left+r.scrollX,It=gr(d.slideEl).top+r.scrollY,di=kt+mo/2-ne,Ut=It+go/2-ke,nn=d.imageEl.offsetWidth||d.imageEl.clientWidth,Zn=d.imageEl.offsetHeight||d.imageEl.clientHeight,rn=nn*Z.scale,on=Zn*Z.scale,Qn=Math.min(mo/2-rn/2,0),er=Math.min(go/2-on/2,0),tr=-Qn,fo=-er,vo>0&&ui&&typeof u.currentX=="number"&&typeof u.currentY=="number"?(xt=u.currentX*Z.scale/vo,ai=u.currentY*Z.scale/vo):(xt=di*Z.scale,ai=Ut*Z.scale),xt<Qn&&(xt=Qn),xt>tr&&(xt=tr),ai<er&&(ai=er),ai>fo&&(ai=fo)):(xt=0,ai=0),ui&&Z.scale===1&&(d.originX=0,d.originY=0),u.currentX=xt,u.currentY=ai,d.imageWrapEl.style.transitionDuration="300ms",d.imageWrapEl.style.transform=`translate3d(${xt}px, ${ai}px,0)`,d.imageEl.style.transitionDuration="300ms",d.imageEl.style.transform=`translate3d(0,0,0) scale(${Z.scale})`}function pe(){let X=t.zoom,Z=t.params.zoom;if(!d.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?d.slideEl=it(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:d.slideEl=t.slides[t.activeIndex];let ae=d.slideEl.querySelector(`.${Z.containerClass}`);ae&&(ae=ae.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=ae,ae?d.imageWrapEl=Di(d.imageEl,`.${Z.containerClass}`)[0]:d.imageWrapEl=void 0}!d.imageEl||!d.imageWrapEl||(d.maxRatio=v(),t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),X.scale=1,o=1,u.currentX=void 0,u.currentY=void 0,u.touchesStart.x=void 0,u.touchesStart.y=void 0,d.imageWrapEl.style.transitionDuration="300ms",d.imageWrapEl.style.transform="translate3d(0,
10,0)",d.imageEl.style.transitionDuration="300ms",d.imageEl.style.transform="translate3d(0,0,0) scale(1)",d.slideEl.classList.remove(`${Z.zoomedSlideClass}`),d.slideEl=void 0,d.originX=0,d.originY=0,t.params.zoom.panOnMouseMove&&(l={x:0,y:0},a&&(a=!1,u.startX=0,u.startY=0)))}function Me(X){let Z=t.zoom;Z.scale&&Z.scale!==1?pe():H(X)}function Pt(){let X=t.params.passiveListeners?{passive:!0,capture:!1}:!1,Z=t.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:X,activeListenerWithCapture:Z}}function ce(){let X=t.zoom;if(X.enabled)return;X.enabled=!0;let{passiveListener:Z,activeListenerWithCapture:ae}=Pt();t.wrapperEl.addEventListener("pointerdown",V,Z),t.wrapperEl.addEventListener("pointermove",C,ae),["pointerup","pointercancel","pointerout"].forEach(ne=>{t.wrapperEl.addEventListener(ne,K,Z)}),t.wrapperEl.addEventListener("pointermove",B,ae)}function Ht(){let X=t.zoom;if(!X.enabled)return;X.enabled=!1;let{passiveListener:Z,activeListenerWithCapture:ae}=Pt();t.wrapperEl.removeEventListener("pointerdown",V,Z),t.wrapperEl.removeEventListener("pointermove",C,ae),["pointerup","pointercancel","pointerout"].forEach(ne=>{t.wrapperEl.removeEventListener(ne,K,Z)}),t.wrapperEl.removeEventListener("pointermove",B,ae)}e("init",()=>{t.params.zoom.enabled&&ce()}),e("destroy",()=>{Ht()}),e("touchStart",(X,Z)=>{t.zoom.enabled&&N(Z)}),e("touchEnd",(X,Z)=>{t.zoom.enabled&&x()}),e("doubleTap",(X,Z)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&Me(Z)}),e("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&G()}),e("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&G()}),Object.assign(t.zoom,{enable:ce,disable:Ht,in:H,out:pe,toggle:Me})}function Fo({swiper:t,extendParams:n,on:e}){n({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0};function i(l,c){let p=(function(){let u,g,b;return(m,v)=>{for(g=-1,u=m.length;u-g>1;)b=u+g>>1,m[b]<=v?g=b:u=b;return u}})();this.x=l,this.y=c,this.lastIndex=l.length-1;let h,f;return this.interpolate=function(u){return u?(f=p(this.x,u),h=f-1,(u-this.x[h])*(this.y[f]-this.y[h])/(this.x[f]-this.x[h])+this.y[h]):0},this}function r(l){t.controller.spline=t.params.loop?new i(t.slidesGrid,l.slidesGrid):new i(t.snapGrid,l.snapGrid)}function o(l,c){let p=t.controller.control,h,f,d=t.constructor;function u(g){if(g.destroyed)return;let b=t.rtlTranslate?-t.translate:t.translate;t.params.controller.by==="slide"&&(r(g),f=-t.controller.spline.interpolate(-b)),(!f||t.params.controller.by==="container")&&(h=(g.maxTranslate()-g.minTranslate())/(t.maxTranslate()-t.minTranslate()),(Number.isNaN(h)||!Number.isFinite(h))&&(h=1),f=(b-t.minTranslate())*h+g.minTranslate()),t.params.controller.inverse&&(f=g.maxTranslate()-f),g.updateProgress(f),g.setTranslate(f,t),g.updateActiveIndex(),g.updateSlidesClasses()}if(Array.isArray(p))for(let g=0;g<p.length;g+=1)p[g]!==c&&p[g]instanceof d&&u(p[g]);else p instanceof d&&c!==p&&u(p)}function s(l,c){let p=t.constructor,h=t.controller.control,f;function d(u){u.destroyed||(u.setTransition(l,t),l!==0&&(u.transitionStart(),u.params.autoHeight&&Hi(()=>{u.updateAutoHeight()}),Nn(u.wrapperEl,()=>{h&&u.transitionEnd()})))}if(Array.isArray(h))for(f=0;f<h.length;f+=1)h[f]!==c&&h[f]instanceof p&&d(h[f]);else h instanceof p&&c!==h&&d(h)}function a(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}e("beforeInit",()=>{if(typeof window<"u"&&(typeof t.params.controller.control=="string"||t.params.controller.control instanceof HTMLElement)){(typeof t.params.controller.control=="string"?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach(c=>{if(t.controller.control||(t.controller.control=[]),c&&c.swiper)t.controller.control.push(c.swiper);else if(c){let p=`${t.params.eventsPrefix}init`,h=f=>{t.controller.control.push(f.detail[0]),t.update(),c.removeEventListener(p,h)};c.addEventListener(p,h)}});return}t.controller.control=t.params.controller.control}),e("update",()=>{a()}),e("resize",()=>{a()}),e("observerUpdate",()=>{a()}),e("setTranslate",(l,c,p)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTranslate(c,p)}),e("setTransition",(l,c,p)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTransition(c,p)}),Object.assign(t.controller,{setTranslate:o,setTransition:s})}function zo({swiper:t,extendParams:n,on:e}){n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,
vendor: 16,197 bytes, line 1
1scrollOnFocus:!0,wrapperLiveRegion:!0}}),t.a11y={clicked:!1};let i=null,r,o,s=new Date().getTime();function a(x){let G=i;G.length!==0&&Ct(G,x)}function l(x=16){let G=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(x).replace(/x/g,G)}function c(x){x=De(x),x.forEach(G=>{G.setAttribute("tabIndex","0")})}function p(x){x=De(x),x.forEach(G=>{G.setAttribute("tabIndex","-1")})}function h(x,G){x=De(x),x.forEach(Y=>{Y.setAttribute("role",G)})}function f(x,G){x=De(x),x.forEach(Y=>{Y.setAttribute("aria-roledescription",G)})}function d(x,G){x=De(x),x.forEach(Y=>{Y.setAttribute("aria-label",G)})}function u(x,G){x=De(x),x.forEach(Y=>{Y.setAttribute("id",G)})}function g(x,G){x=De(x),x.forEach(Y=>{Y.setAttribute("aria-live",G)})}function b(x){x=De(x),x.forEach(G=>{G.setAttribute("aria-disabled",!0)})}function m(x){x=De(x),x.forEach(G=>{G.removeAttribute("aria-disabled")})}function v(x){if(x.keyCode!==13&&x.keyCode!==32)return;let G=t.params.a11y,Y=x.target;if(!(t.pagination&&t.pagination.el&&(Y===t.pagination.el||t.pagination.el.contains(x.target))&&!x.target.matches(bi(t.params.pagination.bulletClass)))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){let H=De(t.navigation.prevEl);De(t.navigation.nextEl).includes(Y)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?a(G.lastSlideMessage):a(G.nextSlideMessage)),H.includes(Y)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?a(G.firstSlideMessage):a(G.prevSlideMessage))}t.pagination&&Y.matches(bi(t.params.pagination.bulletClass))&&Y.click()}}function _(){if(t.params.loop||t.params.rewind||!t.navigation)return;let{nextEl:x,prevEl:G}=t.navigation;G&&(t.isBeginning?(b(G),p(G)):(m(G),c(G))),x&&(t.isEnd?(b(x),p(x)):(m(x),c(x)))}function D(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function L(){return D()&&t.params.pagination.clickable}function R(){let x=t.params.a11y;D()&&t.pagination.bullets.forEach(G=>{t.params.pagination.clickable&&(c(G),t.params.pagination.renderBullet||(h(G,"button"),d(G,x.paginationBulletMessage.replace(/\{\{index\}\}/,Ln(G)+1)))),G.matches(bi(t.params.pagination.bulletActiveClass))?G.setAttribute("aria-current","true"):G.removeAttribute("aria-current")})}let V=(x,G,Y)=>{c(x),x.tagName!=="BUTTON"&&(h(x,"button"),x.addEventListener("keydown",v)),d(x,Y)},C=x=>{o&&o!==x.target&&!o.contains(x.target)&&(r=!0),t.a11y.clicked=!0},K=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},F=x=>{s=new Date().getTime()},P=x=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus||new Date().getTime()-s<100)return;let G=x.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!G||!t.slides.includes(G))return;o=G;let Y=t.virtual&&t.params.virtual.enabled,H=(Y?parseInt(G.getAttribute("data-swiper-slide-index"),10):t.slides.indexOf(G))===t.activeIndex,pe=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(G);H||pe||x.sourceCapabilities&&x.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{r||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(G.getAttribute("data-swiper-slide-index"))),0):Y?t.slideTo(t.getSlideIndexWhenGrid(parseInt(G.getAttribute("data-swiper-slide-index"),10)),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(G)),0),r=!1)}))},O=()=>{let x=t.params.a11y;x.itemRoleDescriptionMessage&&f(t.slides,x.itemRoleDescriptionMessage),x.slideRole&&h(t.slides,x.slideRole);let G=t.slides.length;x.slideLabelMessage&&t.slides.forEach((Y,H)=>{let pe=t.params.loop?parseInt(Y.getAttribute("data-swiper-slide-index"),10):H,Me=x.slideLabelMessage.replace(/\{\{index\}\}/,pe+1).replace(/\{\{slidesLength\}\}/,G);d(Y,Me)})},N=()=>{let x=t.params.a11y;t.el.append(i);let G=t.el;x.containerRoleDescriptionMessage&&f(G,x.containerRoleDescriptionMessage),x.containerMessage&&d(G,x.containerMessage),x.containerRole&&h(G,x.containerRole);let Y=t.wrapperEl,H=x.id||Y.getAttribute("id")||`swiper-wrapper-${l(16)}`;if(u(Y,H),x.wrapperLiveRegion){let ce=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";g(Y,ce)}O();let{nextEl:pe,prevEl:Me}=t.navigation?t.navigation:{};pe=De(pe),Me=De(Me),pe&&pe.forEach(ce=>V(ce,H,x.nextSlideMessage)),Me&&Me.forEach(ce=>V(ce,H,x.prevSlideMessage)),L()&&De(t.pagination.el).forEach(Ht=>{Ht.addEventListener("keydown",v)}),Xe().addEventListener("visibilitychange",F),t.el.addEventListener("focus",P,!0),t.el.addEventListener("pointerdown",C,!0),t.el.addEventListener("pointerup",K,!0)};function B(){i&&i.remove();let{nextEl:x,prevEl:G}=t.navigation?t.navigation:{};x=De(x),G=De(G),x&&x.forEach(H=>H.removeEventListener("keydown",v)),G&&G.forEach(H=>H.removeEventListener("keydown",v)),L()&&De(t.pagination.el).forEach(pe=>{pe.removeEventListener("keydown",v)}),Xe().removeEventListener("visibilitychange",F),t.el&&typeof t.el!="string"&&(t.el.removeEventListener("focus",P,!0),t.el.removeEventListener("pointerdown",C,!0),t.el.removeEventListener("pointerup",K,!0))}e("beforeInit",()=>{i=yt("span",t.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")}),e("afterInit",()=>{t.params.a11y.enabled&&N()}),e("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&O()}),e("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&_()}),e("paginationUpdate",()=>{t.params.a11y.enabled&&R()}),e("destroy",()=>{t.params.a11y.enabled&&B()})}function Zl({swiper:t,extendParams:n,on:e}){n({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,r={},o=f=>f.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),s=f=>{let d=je(),u;f?u=new URL(f):u=d.location;let g=u.pathname.slice(1).split("/").filter(_=>_!==""),b=g.length,m=g[b-2],v=g[b-1];return{key:m,value:v}},a=(f,d)=>{let u=je();if(!i||!t.params.history.enabled)return;let g;t.params.url?g=new URL(t.params.url):g=u.location;let b=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${d}"]`):t.slides[d],m=o(b.getAttribute("data-history"));if(t.params.history.root.length>0){let _=t.params.history.root;_[_.length-1]==="/"&&(_=_.slice(0,_.length-1)),m=`${_}/${f?`${f}/`:""}${m}`}else g.pathname.includes(f)||(m=`${f?`${f}/`:""}${m}`);t.params.history.keepQuery&&(m+=g.search);let v=u.history.state;v&&v.value===m||(t.params.history.replaceState?u.history.replaceState({value:m},null,m):u.history.pushState({value:m},null,m))},l=(f,d,u)=>{if(d)for(let g=0,b=t.slides.length;g<b;g+=1){let m=t.slides[g];if(o(m.getAttribute("data-history"))===d){let _=t.getSlideIndex(m);t.slideTo(_,f,u)}}else t.slideTo(0,f,u)},c=()=>{r=s(t.params.url),l(t.params.speed,r.value,!1)},p=()=>{let f=je();if(t.params.history){if(!f.history||!f.history.pushState){t.params.history.enabled=!1,t.params.hashNavigation.enabled=!0;return}if(i=!0,r=s(t.params.url),!r.key&&!r.value){t.params.history.replaceState||f.addEventListener("popstate",c);return}l(0,r.value,t.params.runCallbacksOnInit),t.params.history.replaceState||f.addEventListener("popstate",c)}},h=()=>{let f=je();t.params.history.replaceState||f.removeEventListener("popstate",c)};e("init",()=>{t.params.history.enabled&&p()}),e("destroy",()=>{t.params.history.enabled&&h()}),e("transitionEnd _freeModeNoMomentumRelease",()=>{i&&a(t.params.history.key,t.activeIndex)}),e("slideChange",()=>{i&&t.params.cssMode&&a(t.params.history.key,t.activeIndex)})}function Ql({swiper:t,extendParams:n,emit:e,on:i}){let r=!1,o=Xe(),s=je();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(h,f){if(t.virtual&&t.params.virtual.enabled){let d=t.slides.find(g=>g.getAttribute("data-hash")===f);return d?parseInt(d.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(it(t.slidesEl,`.${t.params.slideClass}[data-hash="${f}"], swiper-slide[data-hash="${f}"]`)[0])}}});let a=()=>{e("hashChange");let h=o.location.hash.replace("#",""),f=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],d=f?f.getAttribute("data-hash"):"";if(h!==d){let u=t.params.hashNavigation.getSlideIndex(t,h);if(typeof u>"u"||Number.isNaN(u))return;t.slideTo(u)}},l=()=>{if(!r||!t.params.hashNavigation.enabled)return;let h=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],f=h?h.getAttribute("data-hash")||h.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&s.history&&s.history.replaceState?(s.history.replaceState(null,null,`#${f}`||""),e("hashSet")):(o.location.hash=f||"",e("hashSet"))},c=()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;r=!0;let h=o.location.hash.replace("#","");if(h){let d=t.params.hashNavigation.getSlideIndex(t,h);t.slideTo(d||0,0,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&s.addEventListener("hashchange",a)},p=()=>{t.params.hashNavigation.watchState&&s.removeEventListener("hashchange",a)};i("init",()=>{t.params.hashNavigation.enabled&&c()}),i("destroy",()=>{t.params.hashNavigation.enabled&&p()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{r&&l()}),i("slideChange",()=>{r&&t.params.cssMode&&l()})}function Vo({swiper:t,extendParams:n,on:e,emit:i,params:r}){t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,s,a=r&&r.autoplay?r.autoplay.delay:3e3,l=r&&r.autoplay?r.autoplay.delay:3e3,c,p=new Date().getTime(),h,f,d,u,g,b;function m(Y){!t||t.destroyed||!t.wrapperEl||Y.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",m),!(b||Y.detail&&Y.detail.bySwiperTouchMove)&&K())}let v=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?h=!0:h&&(l=c,h=!1);let Y=t.autoplay.paused?c:p+l-new Date().getTime();t.autoplay.timeLeft=Y,i("autoplayTimeLeft",Y,Y/a),s=requestAnimationFrame(()=>{v()})},_=()=>{let Y;return t.virtual&&t.params.virtual.enabled?Y=t.slides.find(pe=>pe.classList.contains("swiper-slide-active")):Y=t.slides[t.activeIndex],Y?parseInt(Y.getAttribute("data-swiper-autoplay"),10):void 0},D=()=>{let Y=t.params.autoplay.delay,H=_();return!Number.isNaN(H)&&H>0&&(Y=H),Y},L=Y=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(s),v();let H=Y;typeof H>"u"&&(H=D(),a=H,l=H),c=H;let pe=t.params.speed,Me=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(pe,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,pe,!0,!0),i("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(pe,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,pe,!0,!0),i("autoplay")),t.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{L()})))};return H>0?(clearTimeout(o),o=setTimeout(()=>{Me()},H)):requestAnimationFrame(()=>{Me()}),H},R=()=>{p=new Date().getTime(),t.autoplay.running=!0,L(),i("autoplayStart")},V=()=>{t.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(s),i("autoplayStop")},C=(Y,H)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(o),Y||(g=!0);let pe=()=>{i("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",m):K()};if(t.autoplay.paused=!0,H){pe();return}c=(c||t.params.autoplay.delay)-(new Date().getTime()-p),!(t.isEnd&&c<0&&!t.params.loop)&&(c<0&&(c=0),pe())},K=()=>{t.isEnd&&c<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(p=new Date().getTime(),g?(g=!1,L(c)):L(),t.autoplay.paused=!1,i("autoplayResume"))},F=()=>{if(t.destroyed||!t.autoplay.running)return;let Y=Xe();Y.visibilityState==="hidden"&&(g=!0,C(!0)),Y.visibilityState==="visible"&&K()},P=Y=>{Y.pointerType==="mouse"&&(g=!0,b=!0,!(t.animating||t.autoplay.paused)&&C(!0))},O=Y=>{Y.pointerType==="mouse"&&(b=!1,t.autoplay.paused&&K())},N=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",P),t.el.addEventListener("pointerleave",O))},B=()=>{t.el&&typeof t.el!="string"&&(t.el.removeEventListener("pointerenter",P),t.el.removeEventListener("pointerleave",O))},x=()=>{Xe().addEventListener("visibilitychange",F)},G=()=>{Xe().removeEventListener("visibilitychange",F)};e("init",()=>{t.params.autoplay.enabled&&(N(),x(),R())}),e("destroy",()=>{B(),G(),t.autoplay.running&&V()}),e("_freeModeStaticRelease",()=>{(d||g)&&K()}),e("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?V():C(!0,!0)}),e("beforeTransitionStart",(Y,H,pe)=>{t.destroyed||!t.autoplay.running||(pe||!t.params.autoplay.disableOnInteraction?C(!0,!0):V())}),e("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){V();return}f=!0,d=!1,g=!1,u=setTimeout(()=>{g=!0,d=!0,C(!0)},200)}}),e("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!f)){if(clearTimeout(u),clearTimeout(o),t.params.autoplay.disableOnInteraction){d=!1,f=!1;return}d&&t.params.cssMode&&K(),d=!1,f=!1}}),e("slideChange",()=>{t.destroyed||!t.autoplay.running||t.autoplay.paused&&(c=D(),a=D())}),Object.assign(t.autoplay,{start:R,stop:V,pause:C,resume:K})}function Bo({swiper:t,extendParams:n,on:e}){n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,r=!1;t.thumbs={swiper:null};function o(){let p=t.thumbs.swiper;return!p||p.destroyed?!1:p.params.virtual&&p.params.virtual.enabled}function s(){let p=t.thumbs.swiper;if(!p||p.destroyed)return;let h=p.clickedIndex,f=p.clickedSlide;if(f&&f.classList.contains(t.params.thumbs.slideThumbActiveClass)||typeof h>"u"||h===null)return;let d;p.params.loop?d=parseInt(p.clickedSlide.getAttribute("data-swiper-slide-index"),10):d=h,t.params.loop?t.slideToLoop(d):t.slideTo(d)}function a(){let{thumbs:p}=t.params;if(i)return!1;i=!0;let h=t.constructor;if(p.swiper instanceof h){if(p.swiper.destroyed)return i=!1,!1;t.thumbs.swiper=p.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(Yr(p.swiper)){let f=Object.assign({},p.swiper);Object.assign(f,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new h(f),r=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",s),o()&&t.thumbs.swiper.on("virtualUpdate",()=>{l(!1,{autoScroll:!1})}),!0}function l(p,h){let f=t.thumbs.swiper;if(!f||f.destroyed)return;let d=1,u=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(d=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),f.slides.forEach(g=>g.classList.remove(u)),f.params.loop||o())for(let g=0;g<d;g+=1)it(f.slidesEl,`[data-swiper-slide-index="${t.realIndex+g}"]`).forEach(b=>{b.classList.add(u)});else for(let g=0;g<d;g+=1)f.slides[t.realIndex+g]&&f.slides[t.realIndex+g].classList.add(u);(h?.autoScroll??!0)&&c(p?0:void 0)}function c(p){let h=t.thumbs.swiper;if(!h||h.destroyed)return;let f=h.params.slidesPerView==="auto"?h.slidesPerViewDynamic():h.params.slidesPerView,d=t.params.thumbs.autoScrollOffset,u=d&&!h.params.loop;if(t.realIndex!==h.realIndex||u){let g=h.activeIndex,b,m;if(h.params.loop){let v=h.slides.find(_=>_.getAttribute("data-swiper-slide-index")===`${t.realIndex}`);b=h.slides.indexOf(v),m=t.activeIndex>t.previousIndex?"next":"prev"}else b=t.realIndex,m=b>t.previousIndex?"next":"prev";u&&(b+=m==="next"?d:-1*d),h.visibleSlidesIndexes&&h.visibleSlidesIndexes.indexOf(b)<0&&(h.params.centeredSlides?b>g?b=b-Math.floor(f/2)+1:b=b+Math.floor(f/2)-1:b>g&&h.params.slidesPerGroup,h.slideTo(b,p))}}e("beforeInit",()=>{let{thumbs:p}=t.params;if(!(!p||!p.swiper))if(typeof p.swiper=="string"||p.swiper instanceof HTMLElement){let h=Xe(),f=()=>{let u=typeof p.swiper=="string"?h.querySelector(p.swiper):p.swiper;if(u&&u.swiper)p.swiper=u.swiper,a(),l(!0);else if(u){let g=`${t.params.eventsPrefix}
1init`,b=m=>{p.swiper=m.detail[0],u.removeEventListener(g,b),a(),l(!0),p.swiper.update(),t.update()};u.addEventListener(g,b)}return u},d=()=>{if(t.destroyed)return;f()||requestAnimationFrame(d)};requestAnimationFrame(d)}else a(),l(!0)}),e("slideChange update resize observerUpdate",()=>{l()}),e("setTransition",(p,h)=>{let f=t.thumbs.swiper;!f||f.destroyed||f.setTransition(h)}),e("beforeDestroy",()=>{let p=t.thumbs.swiper;!p||p.destroyed||r&&p.destroy()}),Object.assign(t.thumbs,{init:a,update:l})}function ec({swiper:t,extendParams:n,emit:e,once:i}){n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function r(){if(t.params.cssMode)return;let a=t.getTranslate();t.setTranslate(a),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function o(){if(t.params.cssMode)return;let{touchEventsData:a,touches:l}=t;a.velocities.length===0&&a.velocities.push({position:l[t.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:l[t.isHorizontal()?"currentX":"currentY"],time:Yt()})}function s({currentPos:a}){if(t.params.cssMode)return;let{params:l,wrapperEl:c,rtlTranslate:p,snapGrid:h,touchEventsData:f}=t,u=Yt()-f.touchStartTime;if(a<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(a>-t.maxTranslate()){t.slides.length<h.length?t.slideTo(h.length-1):t.slideTo(t.slides.length-1);return}if(l.freeMode.momentum){if(f.velocities.length>1){let R=f.velocities.pop(),V=f.velocities.pop(),C=R.position-V.position,K=R.time-V.time;t.velocity=C/K,t.velocity/=2,Math.abs(t.velocity)<l.freeMode.minimumVelocity&&(t.velocity=0),(K>150||Yt()-R.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=l.freeMode.momentumVelocityRatio,f.velocities.length=0;
vendor: 16,624 bytes, line 1
1let g=1e3*l.freeMode.momentumRatio,b=t.velocity*g,m=t.translate+b;p&&(m=-m);let v=!1,_,D=Math.abs(t.velocity)*20*l.freeMode.momentumBounceRatio,L;if(m<t.maxTranslate())l.freeMode.momentumBounce?(m+t.maxTranslate()<-D&&(m=t.maxTranslate()-D),_=t.maxTranslate(),v=!0,f.allowMomentumBounce=!0):m=t.maxTranslate(),l.loop&&l.centeredSlides&&(L=!0);else if(m>t.minTranslate())l.freeMode.momentumBounce?(m-t.minTranslate()>D&&(m=t.minTranslate()+D),_=t.minTranslate(),v=!0,f.allowMomentumBounce=!0):m=t.minTranslate(),l.loop&&l.centeredSlides&&(L=!0);else if(l.freeMode.sticky){let R;for(let V=0;V<h.length;V+=1)if(h[V]>-m){R=V;break}Math.abs(h[R]-m)<Math.abs(h[R-1]-m)||t.swipeDirection==="next"?m=h[R]:m=h[R-1],m=-m}if(L&&i("transitionEnd",()=>{t.loopFix()}),t.velocity!==0){if(p?g=Math.abs((-m-t.translate)/t.velocity):g=Math.abs((m-t.translate)/t.velocity),l.freeMode.sticky){let R=Math.abs((p?-m:m)-t.translate),V=t.slidesSizesGrid[t.activeIndex];R<V?g=l.speed:R<2*V?g=l.speed*1.5:g=l.speed*2.5}}else if(l.freeMode.sticky){t.slideToClosest();return}l.freeMode.momentumBounce&&v?(t.updateProgress(_),t.setTransition(g),t.setTranslate(m),t.transitionStart(!0,t.swipeDirection),t.animating=!0,Nn(c,()=>{!t||t.destroyed||!f.allowMomentumBounce||(e("momentumBounce"),t.setTransition(l.speed),setTimeout(()=>{t.setTranslate(_),Nn(c,()=>{!t||t.destroyed||t.transitionEnd()})},0))})):t.velocity?(e("_freeModeNoMomentumRelease"),t.updateProgress(m),t.setTransition(g),t.setTranslate(m),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,Nn(c,()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(m),t.updateActiveIndex(),t.updateSlidesClasses()}else if(l.freeMode.sticky){t.slideToClosest();return}else l.freeMode&&e("_freeModeNoMomentumRelease");(!l.freeMode.momentum||u>=l.longSwipesMs)&&(e("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}Object.assign(t,{freeMode:{onTouchStart:r,onTouchMove:o,onTouchEnd:s}})}function tc({swiper:t,extendParams:n,on:e}){n({grid:{rows:1,fill:"column"}});let i,r,o,s,a=()=>{let u=t.params.spaceBetween;return typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*t.size:typeof u=="string"&&(u=parseFloat(u)),u},l=u=>{let{slidesPerView:g}=t.params,{rows:b,fill:m}=t.params.grid,v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:u.length;o=Math.floor(v/b),Math.floor(v/b)===v/b?i=v:i=Math.ceil(v/b)*b,g!=="auto"&&m==="row"&&(i=Math.max(i,Math.floor(g)*b)),r=i/b},c=()=>{t.slides&&t.slides.forEach(u=>{u.swiperSlideGridSet&&(u.style.height="",u.style[t.getDirectionLabel("margin-top")]="")})},p=(u,g,b)=>{let{slidesPerGroup:m}=t.params,v=a(),{rows:_,fill:D}=t.params.grid,L=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:b.length,R,V,C;if(D==="row"&&m>1){let K=Math.floor(u/(m*_)),F=u-_*m*K,P=K===0?m:Math.min(Math.ceil((L-K*_*m)/_),m);C=Math.floor(F/P),V=F-C*P+K*m,R=V+C*i/_,g.style.order=R}else D==="column"?(V=Math.floor(u/_),C=u-V*_,(V>o||V===o&&C===_-1)&&(C+=1,C>=_&&(C=0,V+=1))):(C=Math.floor(u/r),V=u-C*r);g.row=C,g.column=V,g.style.height=`calc((100% - ${(_-1)*v}px) / ${_})`,g.style[t.getDirectionLabel("margin-top")]=C!==0?v&&`${v}px`:"",g.swiperSlideGridSet=!0},h=(u,g)=>{let{centeredSlides:b,roundLengths:m}=t.params,v=a(),{rows:_}=t.params.grid;if(t.virtualSize=(u+v)*i,t.virtualSize=Math.ceil(t.virtualSize/_)-v,t.params.cssMode||(t.wrapperEl.style[t.getDirectionLabel("width")]=`${t.virtualSize+v}px`),b){let D=[];for(let L=0;L<g.length;L+=1){let R=g[L];m&&(R=Math.floor(R)),g[L]<t.virtualSize+g[0]&&D.push(R)}g.splice(0,g.length),g.push(...D)}},f=()=>{s=t.params.grid&&t.params.grid.rows>1},d=()=>{let{params:u,el:g}=t,b=u.grid&&u.grid.rows>1;s&&!b?(g.classList.remove(`${u.containerModifierClass}grid`,`${u.containerModifierClass}grid-column`),o=1,t.emitContainerClasses()):!s&&b&&(g.classList.add(`${u.containerModifierClass}grid`),u.grid.fill==="column"&&g.classList.add(`${u.containerModifierClass}grid-column`),t.emitContainerClasses()),s=b};e("init",f),e("update",d),t.grid={initSlides:l,unsetSlides:c,updateSlide:p,updateWrapperSize:h}}function u1(t){let n=this,{params:e,slidesEl:i}=n;e.loop&&n.loopDestroy();let r=o=>{if(typeof o=="string"){let s=document.createElement("div");Ct(s,o),i.append(s.children[0]),Ct(s,"")}else i.append(o)};if(typeof t=="object"&&"length"in t)for(let o=0;o<t.length;o+=1)t[o]&&r(t[o]);else r(t);n.recalcSlides(),e.loop&&n.loopCreate(),(!e.observer||n.isElement)&&n.update()}function p1(t){let n=this,{params:e,activeIndex:i,slidesEl:r}=n;e.loop&&n.loopDestroy();let o=i+1,s=a=>{if(typeof a=="string"){let l=document.createElement("div");Ct(l,a),r.prepend(l.children[0]),Ct(l,"")}else r.prepend(a)};if(typeof t=="object"&&"length"in t){for(let a=0;a<t.length;a+=1)t[a]&&s(t[a]);o=i+t.length}else s(t);n.recalcSlides(),e.loop&&n.loopCreate(),(!e.observer||n.isElement)&&n.update(),n.slideTo(o,0,!1)}function h1(t,n){let e=this,{params:i,activeIndex:r,slidesEl:o}=e,s=r;i.loop&&(s-=e.loopedSlides,e.loopDestroy(),e.recalcSlides());let a=e.slides.length;if(t<=0){e.prependSlide(n);return}if(t>=a){e.appendSlide(n);return}let l=s>t?s+1:s,c=[];for(let p=a-1;p>=t;p-=1){let h=e.slides[p];h.remove(),c.unshift(h)}if(typeof n=="object"&&"length"in n){for(let p=0;p<n.length;p+=1)n[p]&&o.append(n[p]);l=s>t?s+n.length:s}else o.append(n);for(let p=0;p<c.length;p+=1)o.append(c[p]);e.recalcSlides(),i.loop&&e.loopCreate(),(!i.observer||e.isElement)&&e.update(),i.loop?e.slideTo(l+e.loopedSlides,0,!1):e.slideTo(l,0,!1)}function f1(t){let n=this,{params:e,activeIndex:i}=n,r=i;e.loop&&(r-=n.loopedSlides,n.loopDestroy());let o=r,s;if(typeof t=="object"&&"length"in t){for(let a=0;a<t.length;a+=1)s=t[a],n.slides[s]&&n.slides[s].remove(),s<o&&(o-=1);o=Math.max(o,0)}else s=t,n.slides[s]&&n.slides[s].remove(),s<o&&(o-=1),o=Math.max(o,0);n.recalcSlides(),e.loop&&n.loopCreate(),(!e.observer||n.isElement)&&n.update(),e.loop?n.slideTo(o+n.loopedSlides,0,!1):n.slideTo(o,0,!1)}function m1(){let t=this,n=[];for(let e=0;e<t.slides.length;e+=1)n.push(e);t.removeSlide(n)}function ic({swiper:t}){Object.assign(t,{appendSlide:u1.bind(t),prependSlide:p1.bind(t),addSlide:h1.bind(t),removeSlide:f1.bind(t),removeAllSlides:m1.bind(t)})}function yi(t){let{effect:n,swiper:e,on:i,setTranslate:r,setTransition:o,overwriteParams:s,perspective:a,recreateShadows:l,getEffectParams:c}=t;i("beforeInit",()=>{if(e.params.effect!==n)return;e.classNames.push(`${e.params.containerModifierClass}${n}`),a&&a()&&e.classNames.push(`${e.params.containerModifierClass}3d`);let h=s?s():{};Object.assign(e.params,h),Object.assign(e.originalParams,h)}),i("setTranslate _virtualUpdated",()=>{e.params.effect===n&&r()}),i("setTransition",(h,f)=>{e.params.effect===n&&o(f)}),i("transitionEnd",()=>{if(e.params.effect===n&&l){if(!c||!c().slideShadows)return;e.slides.forEach(h=>{h.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>f.remove())}),l()}});let p;i("virtualUpdate",()=>{e.params.effect===n&&(e.slides.length||(p=!0),requestAnimationFrame(()=>{p&&e.slides&&e.slides.length&&(r(),p=!1)}))})}function Ui(t,n){let e=oi(n);return e!==n&&(e.style.backfaceVisibility="hidden",e.style["-webkit-backface-visibility"]="hidden"),e}function zn({swiper:t,duration:n,transformElements:e,allSlides:i}){let{activeIndex:r}=t,o=s=>s.parentElement?s.parentElement:t.slides.find(l=>l.shadowRoot&&l.shadowRoot===s.parentNode);if(t.params.virtualTranslate&&n!==0){let s=!1,a;i?a=e:a=e.filter(l=>{let c=l.classList.contains("swiper-slide-transform")?o(l):l;return t.getSlideIndex(c)===r}),a.forEach(l=>{Nn(l,()=>{if(s||!t||t.destroyed)return;s=!0,t.animating=!1;let c=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(c)})})}}function jo({swiper:t,extendParams:n,on:e}){n({fadeEffect:{crossFade:!1}}),yi({effect:"fade",swiper:t,on:e,setTranslate:()=>{let{slides:o}=t,s=t.params.fadeEffect;for(let a=0;a<o.length;a+=1){let l=t.slides[a],p=-l.swiperSlideOffset;t.params.virtualTranslate||(p-=t.translate);let h=0;t.isHorizontal()||(h=p,p=0);let f=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(l.progress),0):1+Math.min(Math.max(l.progress,-1),0),d=Ui(s,l);d.style.opacity=f,d.style.transform=`translate3d(${p}px, ${h}px, 0px)`}},setTransition:o=>{let s=t.slides.map(a=>oi(a));s.forEach(a=>{a.style.transitionDuration=`${o}ms`}),zn({swiper:t,duration:o,transformElements:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function nc({swiper:t,extendParams:n,on:e}){n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});let i=(a,l,c)=>{let p=c?a.querySelector(".swiper-slide-shadow-left"):a.querySelector(".swiper-slide-shadow-top"),h=c?a.querySelector(".swiper-slide-shadow-right"):a.querySelector(".swiper-slide-shadow-bottom");p||(p=yt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"left":"top"}`.split(" ")),a.append(p)),h||(h=yt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"right":"bottom"}`.split(" ")),a.append(h)),p&&(p.style.opacity=Math.max(-l,0)),h&&(h.style.opacity=Math.max(l,0))};yi({effect:"cube",swiper:t,on:e,setTranslate:()=>{let{el:a,wrapperEl:l,slides:c,width:p,height:h,rtlTranslate:f,size:d,browser:u}=t,g=Fn(t),b=t.params.cubeEffect,m=t.isHorizontal(),v=t.virtual&&t.params.virtual.enabled,_=0,D;b.shadow&&(m?(D=t.wrapperEl.querySelector(".swiper-cube-shadow"),D||(D=yt("div","swiper-cube-shadow"),t.wrapperEl.append(D)),D.style.height=`${p}px`):(D=a.querySelector(".swiper-cube-shadow"),D||(D=yt("div","swiper-cube-shadow"),a.append(D))));for(let R=0;R<c.length;R+=1){let V=c[R],C=R;v&&(C=parseInt(V.getAttribute("data-swiper-slide-index"),10));let K=C*90,F=Math.floor(K/360);f&&(K=-K,F=Math.floor(-K/360));let P=Math.max(Math.min(V.progress,1),-1),O=0,N=0,B=0;C%4===0?(O=-F*4*d,B=0):(C-1)%4===0?(O=0,B=-F*4*d):(C-2)%4===0?(O=d+F*4*d,B=d):(C-3)%4===0&&(O=-d,B=3*d+d*4*F),f&&(O=-O),m||(N=O,O=0);let x=`rotateX(${g(m?0:-K)}deg) rotateY(${g(m?K:0)}deg) translate3d(${O}px, ${N}px, ${B}px)`;P<=1&&P>-1&&(_=C*90+P*90,f&&(_=-C*90-P*90)),V.style.transform=x,b.slideShadows&&i(V,P,m)}if(l.style.transformOrigin=`50% 50% -${d/2}px`,l.style["-webkit-transform-origin"]=`50% 50% -${d/2}px`,b.shadow)if(m)D.style.transform=`translate3d(0px, ${p/2+b.shadowOffset}px, ${-p/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${b.shadowScale})`;else{let R=Math.abs(_)-Math.floor(Math.abs(_)/90)*90,V=1.5-(Math.sin(R*2*Math.PI/360)/2+Math.cos(R*2*Math.PI/360)/2),C=b.shadowScale,K=b.shadowScale/V,F=b.shadowOffset;D.style.transform=`scale3d(${C}, 1, ${K}) translate3d(0px, ${h/2+F}px, ${-h/2/K}px) rotateX(-89.99deg)`}let L=(u.isSafari||u.isWebView)&&u.needPerspectiveFix?-d/2:0;l.style.transform=`translate3d(0px,0,${L}px) rotateX(${g(t.isHorizontal()?0:_)}deg) rotateY(${g(t.isHorizontal()?-_:0)}deg)`,l.style.setProperty("--swiper-cube-translate-z",`${L}px`)},setTransition:a=>{let{el:l,slides:c}=t;if(c.forEach(p=>{p.style.transitionDuration=`${a}ms`,p.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(h=>{h.style.transitionDuration=`${a}ms`})}),t.params.cubeEffect.shadow&&!t.isHorizontal()){let p=l.querySelector(".swiper-cube-shadow");p&&(p.style.transitionDuration=`${a}ms`)}},recreateShadows:()=>{let a=t.isHorizontal();t.slides.forEach(l=>{let c=Math.max(Math.min(l.progress,1),-1);i(l,c,a)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function Gi(t,n,e){let i=`swiper-slide-shadow${e?`-${e}`:""}${t?` swiper-slide-shadow-${t}`:""}`,r=oi(n),o=r.querySelector(`.${i.split(" ").join(".")}`);return o||(o=yt("div",i.split(" ")),r.append(o)),o}function rc({swiper:t,extendParams:n,on:e}){n({flipEffect:{slideShadows:!0,limitRotation:!0}});let i=(a,l)=>{let c=t.isHorizontal()?a.querySelector(".swiper-slide-shadow-left"):a.querySelector(".swiper-slide-shadow-top"),p=t.isHorizontal()?a.querySelector(".swiper-slide-shadow-right"):a.querySelector(".swiper-slide-shadow-bottom");c||(c=Gi("flip",a,t.isHorizontal()?"left":"top")),p||(p=Gi("flip",a,t.isHorizontal()?"right":"bottom")),c&&(c.style.opacity=Math.max(-l,0)),p&&(p.style.opacity=Math.max(l,0))};yi({effect:"flip",swiper:t,on:e,setTranslate:()=>{let{slides:a,rtlTranslate:l}=t,c=t.params.flipEffect,p=Fn(t);for(let h=0;h<a.length;h+=1){let f=a[h],d=f.progress;t.params.flipEffect.limitRotation&&(d=Math.max(Math.min(f.progress,1),-1));let u=f.swiperSlideOffset,b=-180*d,m=0,v=t.params.cssMode?-u-t.translate:-u,_=0;t.isHorizontal()?l&&(b=-b):(_=v,v=0,m=-b,b=0),f.style.zIndex=-Math.abs(Math.round(d))+a.length,c.slideShadows&&i(f,d);let D=`translate3d(${v}px, ${_}px, 0px) rotateX(${p(m)}deg) rotateY(${p(b)}deg)`,L=Ui(c,f);L.style.transform=D}},setTransition:a=>{let l=t.slides.map(c=>oi(c));l.forEach(c=>{c.style.transitionDuration=`${a}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(p=>{p.style.transitionDuration=`${a}ms`})}),zn({swiper:t,duration:a,transformElements:l})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach(a=>{let l=a.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(a.progress,1),-1)),i(a,l)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function oc({swiper:t,extendParams:n,on:e}){n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),yi({effect:"coverflow",swiper:t,on:e,setTranslate:()=>{let{width:o,height:s,slides:a,slidesSizesGrid:l}=t,c=t.params.coverflowEffect,p=t.isHorizontal(),h=t.translate,f=p?-h+o/2:-h+s/2,d=p?c.rotate:-c.rotate,u=c.depth,g=Fn(t);for(let b=0,m=a.length;b<m;b+=1){let v=a[b],_=l[b],D=v.swiperSlideOffset,L=(f-D-_/2)/_,R=typeof c.modifier=="function"?c.modifier(L):L*c.modifier,V=p?d*R:0,C=p?0:d*R,K=-u*Math.abs(R),F=c.stretch;typeof F=="string"&&F.indexOf("%")!==-1&&(F=parseFloat(c.stretch)/100*_);let P=p?0:F*R,O=p?F*R:0,N=1-(1-c.scale)*Math.abs(R);Math.abs(O)<.001&&(O=0),Math.abs(P)<.001&&(P=0),Math.abs(K)<.001&&(K=0),Math.abs(V)<.001&&(V=0),Math.abs(C)<.001&&(C=0),Math.abs(N)<.001&&(N=0);let B=`translate3d(${O}px,${P}px,${K}px)  rotateX(${g(C)}deg) rotateY(${g(V)}deg) scale(${N})`,x=Ui(c,v);if(x.style.transform=B,v.style.zIndex=-Math.abs(Math.round(R))+1,c.slideShadows){let G=p?v.querySelector(".swiper-slide-shadow-left"):v.querySelector(".swiper-slide-shadow-top"),Y=p?v.querySelector(".swiper-slide-shadow-right"):v.querySelector(".swiper-slide-shadow-bottom");G||(G=Gi("coverflow",v,p?"left":"top")),Y||(Y=Gi("coverflow",v,p?"right":"bottom")),G&&(G.style.opacity=R>0?R:0),Y&&(Y.style.opacity=-R>0?-R:0)}}},setTransition:o=>{t.slides.map(a=>oi(a)).forEach(a=>{a.style.transitionDuration=`${o}ms`,a.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(l=>{l.style.transitionDuration=`${o}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function sc({swiper:t,extendParams:n,on:e}){n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});let i=s=>typeof s=="string"?s:`${s}px`;yi({effect:"creative",swiper:t,on:e,setTranslate:()=>{let{slides:s,wrapperEl:a,slidesSizesGrid:l}=t,c=t.params.creativeEffect,{progressMultiplier:p}=c,h=t.params.centeredSlides,f=Fn(t);if(h){let d=l[0]/2-t.params.slidesOffsetBefore||0;a.style.transform=`translateX(calc(50% - ${d}px))`}for(let d=0;d<s.length;d+=1){let u=s[d],g=u.progress,b=Math.min(Math.max(u.progress,-c.limitProgress),c.limitProgress),m=b;h||(m=Math.min(Math.max(u.originalProgress,-c.limitProgress),c.limitProgress));let v=u.swiperSlideOffset,_=[t.params.cssMode?-v-t.translate:-v,0,0],D=[0,0,0],L=!1;t.isHorizontal()||(_[1]=_[0],_[0]=0);let R={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};b<0?(R=c.next,L=!0):b>0&&(R=c.prev,L=!0),_.forEach((N,B)=>{_[B]=`calc(${N}px + (${i(R.translate[B])} * ${Math.abs(b*p)}))`}),D.forEach((N,B)=>{let x=R.rotate[B]*Math.abs(b*p);D[B]=x}),u.style.zIndex=-Math.abs(Math.round(g))+s.length;let V=_.join(", "),C=`rotateX(${f(D[0])}deg) rotateY(${f(D[1])}deg) rotateZ(${f(D[2])}
1deg)`,K=m<0?`scale(${1+(1-R.scale)*m*p})`:`scale(${1-(1-R.scale)*m*p})`,F=m<0?1+(1-R.opacity)*m*p:1-(1-R.opacity)*m*p,P=`translate3d(${V}) ${C} ${K}`;if(L&&R.shadow||!L){let N=u.querySelector(".swiper-slide-shadow");if(!N&&R.shadow&&(N=Gi("creative",u)),N){let B=c.shadowPerProgress?b*(1/c.limitProgress):b;N.style.opacity=Math.min(Math.max(Math.abs(B),0),1)}}let O=Ui(c,u);O.style.transform=P,O.style.opacity=F,R.origin&&(O.style.transformOrigin=R.origin)}},setTransition:s=>{let a=t.slides.map(l=>oi(l));a.forEach(l=>{l.style.transitionDuration=`${s}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${s}ms`})}),zn({swiper:t,duration:s,transformElements:a,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}function ac({swiper:t,extendParams:n,on:e}){n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),yi({effect:"cards",swiper:t,on:e,setTranslate:()=>{let{slides:o,activeIndex:s,rtlTranslate:a}=t,l=t.params.cardsEffect,{startTranslate:c,isTouched:p}=t.touchEventsData,h=a?-t.translate:t.translate;for(let f=0;f<o.length;f+=1){let d=o[f],u=d.progress,g=Math.min(Math.max(u,-4),4),b=d.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(b-=o[0].swiperSlideOffset);let m=t.params.cssMode?-b-t.translate:-b,v=0,_=-100*Math.abs(g),D=1,L=-l.perSlideRotate*g,R=l.perSlideOffset-Math.abs(g)*.75,V=t.virtual&&t.params.virtual.enabled?t.virtual.from+f:f,C=(V===s||V===s-1)&&g>0&&g<1&&(p||t.params.cssMode)&&h<c,K=(V===s||V===s+1)&&g<0&&g>-1&&(p||t.params.cssMode)&&h>c;if(C||K){let N=(1-Math.abs((Math.abs(g)-.5)/.5))**.5;L+=-28*g*N,D+=-.5*N,R+=96*N,v=`${(l.rotate||t.isHorizontal()?-25:0)*N*Math.abs(g)}%`}if(g<0?m=`calc(${m}px ${a?"-":"+"} (${R*Math.abs(g)}%))`:g>0?m=`calc(${m}px ${a?"-":"+"} (-${R*Math.abs(g)}%))`:m=`${m}px`,!t.isHorizontal()){let N=v;v=m,m=N}let F=g<0?`${1+(1-D)*g}`:`${1-(1-D)*g}`,P=`
2        translate3d(${m}, ${v}, ${_}px)
3        rotateZ(${l.rotate?a?-L:L:0}deg)
4        scale(${F})
5      `;if(l.slideShadows){let N=d.querySelector(".swiper-slide-shadow");N||(N=Gi("cards",d)),N&&(N.style.opacity=Math.min(Math.max((Math.abs(g)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(u))+o.length;let O=Ui(l,d);O.style.transform=P}},setTransition:o=>{let s=t.slides.map(a=>oi(a));s.forEach(a=>{a.style.transitionDuration=`${o}ms`,a.querySelectorAll(".swiper-slide-shadow").forEach(l=>{l.style.transitionDuration=`${o}ms`})}),zn({swiper:t,duration:o,transformElements:s})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}var g1=[Ao,Kl,Xl,Ro,Oo,Lo,Jl,No,Fo,zo,Zl,Ql,Vo,Bo,ec,tc,ic,jo,nc,rc,oc,sc,ac];_i.use(g1);var Xr=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function vr(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ia(t,n){let e=["__proto__","constructor","prototype"];Object.keys(n).filter(i=>
vendor: 5,154 bytes, line 5
5e.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=n[i]:vr(n[i])&&vr(t[i])&&Object.keys(n[i]).length>0?n[i].__swiper__?t[i]=n[i]:ia(t[i],n[i]):t[i]=n[i]})}function Qp(t={}){return t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function eh(t={}){return t.pagination&&typeof t.pagination.el>"u"}function th(t={}){return t.scrollbar&&typeof t.scrollbar.el>"u"}function Jr(t=""){return t.replace(/-[a-z]/g,n=>n.toUpperCase().replace("-",""))}function ih({swiper:t,slides:n,passedParams:e,changedParams:i,nextEl:r,prevEl:o,scrollbarEl:s,paginationEl:a}){let l=i.filter(C=>C!=="children"&&C!=="direction"&&C!=="wrapperClass"),{params:c,pagination:p,navigation:h,scrollbar:f,virtual:d,thumbs:u}=t,g,b,m,v,_,D,L,R;i.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&!e.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(g=!0),i.includes("controller")&&e.controller&&e.controller.control&&c.controller&&!c.controller.control&&(b=!0),i.includes("pagination")&&e.pagination&&(e.pagination.el||a)&&(c.pagination||c.pagination===!1)&&p&&!p.el&&(m=!0),i.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||s)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(v=!0),i.includes("navigation")&&e.navigation&&(e.navigation.prevEl||o)&&(e.navigation.nextEl||r)&&(c.navigation||c.navigation===!1)&&h&&!h.prevEl&&!h.nextEl&&(_=!0);let V=C=>{t[C]&&(t[C].destroy(),C==="navigation"?(t.isElement&&(t[C].prevEl.remove(),t[C].nextEl.remove()),c[C].prevEl=void 0,c[C].nextEl=void 0,t[C].prevEl=void 0,t[C].nextEl=void 0):(t.isElement&&t[C].el.remove(),c[C].el=void 0,t[C].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!e.loop?D=!0:!c.loop&&e.loop?L=!0:R=!0),l.forEach(C=>{if(vr(c[C])&&vr(e[C]))Object.assign(c[C],e[C]),(C==="navigation"||C==="pagination"||C==="scrollbar")&&"enabled"in e[C]&&!e[C].enabled&&V(C);else{let K=e[C];(K===!0||K===!1)&&(C==="navigation"||C==="pagination"||C==="scrollbar")?K===!1&&V(C):c[C]=e[C]}}),l.includes("controller")&&!b&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&d&&c.virtual.enabled?(d.slides=n,d.update(!0)):i.includes("virtual")&&d&&c.virtual.enabled&&(n&&(d.slides=n),d.update(!0)),i.includes("children")&&n&&c.loop&&(R=!0),g&&u.init()&&u.update(!0),b&&(t.controller.control=c.controller.control),m&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),a.part.add("pagination"),t.el.appendChild(a)),a&&(c.pagination.el=a),p.init(),p.render(),p.update()),v&&(t.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),s.part.add("scrollbar"),t.el.appendChild(s)),s&&(c.scrollbar.el=s),f.init(),f.updateSize(),f.setTranslate()),_&&(t.isElement&&((!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),Ct(r,t.navigation.arrowSvg),r.part.add("button-next"),t.el.appendChild(r)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),Ct(o,t.navigation.arrowSvg),o.part.add("button-prev"),t.el.appendChild(o))),r&&(c.navigation.nextEl=r),o&&(c.navigation.prevEl=o),h.init(),h.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=e.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=e.allowSlidePrev),i.includes("direction")&&t.changeDirection(e.direction,!1),(D||R)&&t.loopDestroy(),(L||R)&&t.loopCreate(),t.update()}var nh=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let n;try{n=JSON.parse(t)}catch(e){n=t}return n}return t}},rh=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function lc(t,n,e){let i={},r={};ia(i,ta);let o=[...Xr,"on"],s=o.map(l=>l.replace(/_/,""));o.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(r[l]=t[l])});let a=[...t.attributes];return typeof n=="string"&&typeof e<"u"&&a.push({name:n,value:vr(e)?T({},e):e}),a.forEach(l=>{let c=rh.find(p=>l.name.startsWith(`${p}-`));if(c){let p=Jr(c),h=Jr(l.name.split(`${c}-`)[1]);typeof r[p]>"u"&&(r[p]={}),r[p]===!0&&(r[p]={enabled:!0}),r[p]===!1&&(r[p]={enabled:!1}),r[p][h]=nh(l.value)}else{let p=Jr(l.name);if(!s.includes(p))return;let h=nh(l.value);r[p]&&rh.includes(l.name)&&!vr(h)?(r[p].constructor!==Object&&(r[p]={}),r[p].enabled=!!h):r[p]=h}}),ia(i,r),i.navigation?i.navigation=T({prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},i.navigation!==!0?i.navigation:{}):i.navigation===!1&&delete i.navigation,i.scrollbar?i.scrollbar=T({el:".swiper-scrollbar"},i.scrollbar!==!0?i.scrollbar:{}):i.scrollbar===!1&&delete i.scrollbar,i.pagination?i.pagination=T({el:".swiper-pagination"},i.pagination!==!0?i.pagination:{}):i.pagination===!1&&delete i.pagination,{params:i,passedParams:r}}var v1
vendor: 16,702 bytes, line 5
5=':host{--swiper-theme-color:#007aff}:host{display:block;margin-left:auto;margin-right:auto;position:relative;z-index:1}.swiper{display:block;height:100%;list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0;position:relative;width:100%;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);width:100%;z-index:1}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){display:block;flex-shrink:0;height:100%;position:relative;transition-property:transform;width:100%}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal ::slotted(swiper-slide):last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical ::slotted(swiper-slide):last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper:after{content:"";left:0;pointer-events:none;position:absolute;top:0}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:var(--swiper-navigation-size);justify-content:center;position:absolute;width:var(--swiper-navigation-size);z-index:10}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next ::slotted(svg),.swiper-button-next svg,.swiper-button-prev ::slotted(svg),.swiper-button-prev svg{height:100%;object-fit:contain;transform-origin:center;width:100%;fill:currentColor;pointer-events:none}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.swiper-button-prev .swiper-navigation-icon,.swiper-button-prev ::slotted(.swiper-navigation-icon){transform:rotate(180deg)}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal .swiper-button-next,.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-next,.swiper-horizontal~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-horizontal .swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next,.swiper-horizontal~.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.swiper-horizontal .swiper-button-next,.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev,.swiper-horizontal~.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal .swiper-button-prev ::slotted(.swiper-navigation-icon),.swiper-horizontal.swiper-rtl .swiper-button-next .swiper-navigation-icon,.swiper-horizontal.swiper-rtl .swiper-button-next ::slotted(.swiper-navigation-icon),.swiper-horizontal.swiper-rtl~.swiper-button-next .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-next ::slotted(.swiper-navigation-icon),.swiper-horizontal~.swiper-button-prev .swiper-navigation-icon,.swiper-horizontal~.swiper-button-prev ::slotted(.swiper-navigation-icon){transform:rotate(180deg)}.swiper-horizontal.swiper-rtl .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl .swiper-button-prev ::slotted(.swiper-navigation-icon),.swiper-horizontal.swiper-rtl~.swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-prev ::slotted(.swiper-navigation-icon){transform:rotate(0deg)}.swiper-vertical .swiper-button-next,.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-next,.swiper-vertical~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px)}.swiper-vertical .swiper-button-prev .swiper-navigation-icon,.swiper-vertical .swiper-button-prev ::slotted(.swiper-navigation-icon),.swiper-vertical~.swiper-button-prev .swiper-navigation-icon,.swiper-vertical~.swiper-button-prev ::slotted(.swiper-navigation-icon){transform:rotate(-90deg)}.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto}.swiper-vertical .swiper-button-next .swiper-navigation-icon,.swiper-vertical .swiper-button-next ::slotted(.swiper-navigation-icon),.swiper-vertical~.swiper-button-next .swiper-navigation-icon,.swiper-vertical~.swiper-button-next ::slotted(.swiper-navigation-icon){transform:rotate(90deg)}.swiper-pagination{position:absolute;text-align:center;transform:translateZ(0);transition:opacity .3s;z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);display:inline-block;height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px))}button.swiper-pagination-bullet{appearance:none;border:none;box-shadow:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translate3d(0,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{display:block;margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:transform .2s,top .2s}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));height:100%;left:0;position:absolute;top:0;transform:scale(0);transform-origin:left top;width:100%}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0;width:100%}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{height:100%;left:0;top:0;width:var(--swiper-pagination-progressbar-size,4px)}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);position:absolute;top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset, 1%)*2);z-index:50}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{height:calc(100% - var(--swiper-scrollbar-sides-offset, 1%)*2);left:var(--swiper-scrollbar-left,auto);position:absolute;right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);height:100%;left:0;position:relative;top:0;width:100%}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{left:0;opacity:0;pointer-events:none;position:absolute;top:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{margin:0 auto;transition-timing-function:ease-out}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-direction:column;flex-wrap:wrap}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{bottom:0;height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0}.swiper-cube .swiper-cube-shadow:before{background:#000;bottom:0;content:"";filter:blur(50px);left:0;position:absolute;right:0;top:0}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){backface-visibility:hidden;pointer-events:none;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){backface-visibility:hidden;overflow:hidden;transform-origin:center bottom}',
vendor: 3,158 bytes, lines 5-6
5_1="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}::slotted(.swiper-slide-shadow){background:#00000026}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(270deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(90deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(0deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(180deg,#00000080,#0000)}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s linear infinite;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top:4px solid #0000;box-sizing:border-box;height:42px;left:50%;margin-left:-21px;margin-top:-21px;position:absolute;top:50%;transform-origin:50%;width:42px;z-index:10}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){backface-visibility:hidden;z-index:0}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){backface-visibility:hidden;z-index:0}::slotted(.swiper-zoom-container){align-items:center;display:flex;height:100%;justify-content:center;text-align:center;width:100%}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-height:100%;max-width:100%;object-fit:contain}",cc=class{},oh=typeof window>"u"||typeof HTMLElement>"u"?cc:HTMLElement,sh=(t,n)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){let e=new CSSStyleSheet;e.replaceSync(n),t.adoptedStyleSheets=[e]}else{let e=document.createElement("style");e.rel="stylesheet",e.textContent=n,t.appendChild(e)}},na=class extends oh{constructor(){super(),this.attachShadow({mode:"open"})}cssStyles(){return[v1,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(`
6`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){let n=this.slideSlots||0,e=[...this.querySelectorAll("[slot^=slide-]")].map(i=>parseInt(i.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=e.length?Math.max(...e)+1:0,!!this.rendered){if(this.slideSlots>n)for(let i=n;i<this.slideSlots;i+=1){let r=document.createElement("swiper-slide");r.setAttribute("part",`slide slide-${i+1}`);let o=document.createElement("slot");o.setAttribute("name",`slide-${i+1}`),r.appendChild(o),this.shadowRoot.querySelector(".swiper-wrapper").appendChild(r)}else if(this.slideSlots<n){let i=this.swiper.slides;for(let r=i.length-1;r>=0;r-=1)r>this.slideSlots&&i[r].remove()}}}
6render(){if(this.rendered)return;this.calcSlideSlots();let n=this.cssStyles();this.slideSlots>0&&(n=n.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),n.length&&sh(this.shadowRoot,n),this.cssLinks().forEach(i=>{if(this.shadowRoot.querySelector(`link[href="${i}"]`))return;let o=document.createElement("link");o.rel="stylesheet",o.href=i,this.shadowRoot.appendChild(o)});let e=document.createElement("div");e.classList.add("swiper"),e.part="container",Ct(e,`
7      <slot name="container-start"></slot>
8      <div class="swiper-wrapper" part="wrapper">
9        <slot></slot>
10        ${Array.from({length:this.slideSlots}).map((i,r)=>`
11        <swiper-slide part="slide slide-${r}">
12          <slot name="slide-${r}"></slot>
13        </swiper-slide>
14        `).join("")}
15      </div>
16      <slot name="container-end"></slot>
17      ${Qp(this.passedParams)?`
18        <div part="button-prev" class="swiper-button-prev"><slot name="button-prev"></slot></div>
19        <div part="button-next" class="swiper-button-next"><slot name="button-next"></slot></div>
20      `:""}
21      ${eh(this.passedParams)?`
22        <div part="pagination" class="swiper-pagination"></div>
23      `:""}
24      ${th(this.passedParams)?`
25        <div part="scrollbar" class="swiper-scrollbar"></div>
26      `:""}
27    `),this.shadowRoot.appendChild(e),this.rendered=!0}initialize(){if(this.swiper&&this.swiper.initialized)return;let{params:n,passedParams:e}=lc(this);this.swiperParams=n,this.passedParams=e,delete this.swiperParams.init,this.render(),this.swiper=new _i(this.shadowRoot.querySelector(".swiper"),U(T(T({},n.virtual?{}:{observer:!0}),n),{touchEventsTarget:"container",onAny:(i,...r)=>{i==="observerUpdate"&&this.calcSlideSlots();let o=n.eventsPrefix?`${n.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase(),s=new CustomEvent(o,{detail:r,bubbles:i!=="hashChange",cancelable:!0});this.dispatchEvent(s)}}))}connectedCallback(){this.swiper&&this.swiper.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.init===!1||this.getAttribute("init")==="false"||this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.swiper&&this.swiper.destroy&&this.swiper.destroy()}updateSwiperOnPropChange(n,e){let{params:i,passedParams:r}=lc(this,n,e);this.passedParams=r,this.swiperParams=i,!(this.swiper&&this.swiper.params[n]===e)&&ih(T(T(T({swiper:this.swiper,passedParams:this.passedParams,changedParams:[Jr(n)]},n==="navigation"&&r[n]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{}),n==="pagination"&&r[n]?{paginationEl:".swiper-pagination"}:{}),n==="scrollbar"&&r[n]?{scrollbarEl:".swiper-scrollbar"}:{}))}attributeChangedCallback(n,e,i){this.swiper&&this.swiper.initialized&&(e==="true"&&i===null&&(i=!1),this.updateSwiperOnPropChange(n,i))}static get observedAttributes(){return Xr.filter(e=>e.includes("_")).map(e=>e.replace(/[A-Z]/g,i=>`-${i}`).replace("_","").toLowerCase())}};Xr.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(na.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(n){this.passedParams||(this.passedParams={}),this.passedParams[t]=n,this.swiper&&this.swiper.initialized&&this.updateSwiperOnPropChange(t,n)}}))});var dc=class extends oh{constructor(){super(),this.attachShadow({mode:"open"})}render(){let n=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(sh(this.shadowRoot,_1),this.shadowRoot.appendChild(document.createElement("slot")),n){let e=document.createElement("div");e.classList.add("swiper-lazy-preloader"),e.part.add("preloader"),this.shadowRoot.appendChild(e)}}initialize(){this.render()}connectedCallback(){this.swiperLoopMoveDOM||this.initialize()}},ah=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",na),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",dc))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Xr.push(...t)});var lh=!1;function b1(){lh||typeof window>"u"||(ah(),lh=!0)}function Mi(t){return t!==!1&&t!==null&&t!==void 0}function $o(t){if(t?.modules?.length)return t.modules;let n=[],e=t??{};return Mi(e.navigation)&&n.push(Ro),Mi(e.pagination)&&n.push(Oo),Mi(e.scrollbar)&&n.push(Lo),Mi(e.autoplay)&&n.push(Vo),e.effect==="fade"&&n.push(jo),Mi(e.thumbs)&&n.push(Bo),Mi(e.controller)&&n.push(Fo),Mi(e.zoom)&&n.push(No),Mi(e.virtual)&&n.push(Ao),(Mi(e.navigation)||Mi(e.pagination)||Mi(e.scrollbar))&&n.unshift(zo),n}function y1(t,n){return new _i(t,U(T({},n),{modules:$o(n)}))}var Ho=class{constructor(){this.destroyed=!1}schedule(n,e=0){this.clearTimeout(),this.timeoutId=setTimeout(()=>{this.timeoutId=void 0,this.destroyed||n()},e)}scheduleFrame(n){this.clearFrame(),this.frameId=requestAnimationFrame(()=>{this.frameId=void 0,this.destroyed||n()})}isDestroyed(){return this.destroyed}destroy(){this.destroyed=!0,this.clearTimeout(),this.clearFrame()}clearTimeout(){this.timeoutId!==void 0&&(clearTimeout(this.timeoutId),this.timeoutId=void 0)}clearFrame(){this.frameId!==void 0&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};var Uo=class{constructor(n,e,i="0px",r=0){this.swiper=n,this.isVisible=!1,this.swiper.autoplay?.stop(),this.observer=new IntersectionObserver(o=>{let s=o[0];!s||this.swiper.destroyed||(this.isVisible=s.isIntersecting,this.isVisible?this.swiper.autoplay?.start():this.swiper.autoplay?.stop())},{rootMargin:i,threshold:r}),this.observer.observe(e)}tryStart(){this.isVisible&&!this.swiper.destroyed&&this.swiper.autoplay?.start()}destroy(){this.observer.disconnect()}};var C1=["container"],w1=["*"],E1=(()=>{class t{constructor(e){this.platformId=e,this.config=null,this.loop=null,this.initScheduler
27=new Ho,this.appliedConfig=null}ngAfterViewInit(){Ke(this.platformId)&&this.scheduleInit()}ngOnChanges(e){e.config&&this.swiperRef&&this.#t(this.config)||this.scheduleInit()}ngOnDestroy(){this.initScheduler.destroy(),this.destroySwiper()}scheduleInit(){Ke(this.platformId)&&this.initScheduler.schedule(()=>{this.initSwiper()},0)}initSwiper(){let e=this.containerRef?.nativeElement;if(!e||e.querySelectorAll("swiper-slide").length===0)return;let i=this.#e();this.swiperRef&&this.#t(this.config)||(this.destroySwiper(),Object.assign(e,i),e.initialize(),this.swiperRef=e.swiper,this.appliedConfig=i,i.autoplay&&this.swiperRef&&(this.viewportAutoplay=new Uo(this.swiperRef,e)))}#e(e=this.config){let i=U(T({},e??{}),{modules:$o(e)});return this.loop!==null&&this.loop!==void 0&&(i.loop=this.loop),i}#t(e){return Fr(this.#e(e),this.appliedConfig)}destroySwiper(){this.viewportAutoplay?.destroy(),this.viewportAutoplay=void 0;let e=this.containerRef?.nativeElement;e?.swiper&&!e.swiper.destroyed&&e.swiper.destroy(!0,!0),this.swiperRef=void 0,this.appliedConfig=null}static{this.\u0275fac=function(i){return new(i||t)($(ze))}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-swiper-container"]],viewQuery:function(i,r){if(i&1&&ft(C1,7),i&2){let o;Ge(o=We())&&(r.containerRef=o.first)}},inputs:{config:"config",loop:"loop"},features:[li],ngContentSelectors:w1,decls:3,vars:0,consts:[["container",""],["init","false",1,"swiper","swiper-container"]],template:function(i,r){i&1&&(dr(),He(0,"swiper-container",1,0),ur(2),Ye())},encapsulation:2})}}return t})();function ch(t,n,e){if(e<=1)return n-t;let i=n-t;return i>e/2&&(i-=e),i<-e/2&&(i+=e),i}function S1(t,n,e,i,r){if(r<=0||i<=0||e<=0)return{step:0,captionIndex:0,previousDisplayRealIndex:0};let o=(n%e+e)%e;if(r===1)return{step:t.step,captionIndex:0,previousDisplayRealIndex:o};let s=(t.previousDisplayRealIndex%e+e)%e,a=t.step;if(i===r)a=(o%i+i)%i;else{let c=ch(s,o,e);c===1?a+=1:c===-1?a-=1:c!==0&&(a=(o%i+i)%i)}let l=(a%r+r)%r;return{step:a,captionIndex:l,previousDisplayRealIndex:o}}var ra=new WeakMap,dh=(()=>{class t{_appRef;_injector=q(ht);_environmentInjector=q(Su);load(e){let i=this._appRef=this._appRef||this._injector.get(lr),r=ra.get(i);r||(r={loaders:new Set,refs:[]},ra.set(i,r),i.onDestroy(()=>{ra.get(i)?.refs.forEach(o=>o.destroy()),ra.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(zu(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var uc;function I1(){if(uc==null){let t=typeof document<"u"?document.head:null;uc=!!(t&&(t.createShadowRoot||t.attachShadow))}return uc}function oa(t){if(I1()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Go(t){return t.composedPath?t.composedPath()[0]:t.target}function uh(t){return t.buttons===0||t.detail===0}function ph(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}function sa(t,n=0){return x1(t)?Number(t):arguments.length===2?n:0}function x1(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Ai(t){return t instanceof Jt?t.nativeElement:t}var pc;try{pc=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){pc=!1}var hc=(()=>{class t{_platformId=q(ze);isBrowser=this._platformId?Ke(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||pc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var T1=new qe("cdk-dir-doc",{providedIn:"root",factory:()=>q(gt)}),P1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function k1(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?P1.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var fc=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Ar("ltr");change=new j;constructor(){let e=q(T1,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(k1(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var D1=20,hh=(()=>{class t{_ngZone=q(vt);_platform=q(hc);_renderer=q(Rr).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Ve;_scrolledCount=0;
vendor: 4,885 bytes, line 27
27scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=D1){return this._platform.isBrowser?new Wt(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(bl(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):xe()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Ne(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=Ai(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var M1=20,mc=(()=>{class t{_platform=q(hc);_listeners;_viewportSize=null;_change=new Ve;_document=q(gt);constructor(){let e=q(vt),i=q(Rr).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),s=-o.top||e.body?.scrollTop||i.scrollY||r.scrollTop||0,a=-o.left||e.body?.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:s,left:a}}change(e=M1){return e>0?this._change.pipe(bl(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var fh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Mt({type:t});static \u0275inj=Dt({})}return t})();var gc={},aa=class t{_appId=q(Pu);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(n,e=!1){return this._appId!=="ng"&&(n+=this._appId),gc.hasOwnProperty(n)||(gc[n]=0),`${n}${e?t._infix+"-":""}${gc[n]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})};function mh(t){return Array.isArray(t)?t:[t]}function bc(t){let n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();n.removeAttribute("id");for(let r=0;r<e.length;r++)e[r].removeAttribute("id");return i==="canvas"?_h(t,n):(i==="input"||i==="select"||i==="textarea")&&vh(t,n),gh("canvas",t,n,_h),gh("input, textarea, select",t,n,vh),n}function gh(t,n,e,i){let r=n.querySelectorAll(t);if(r.length){let o=e.querySelectorAll(t);for(let s=0;s<r.length;s++)i(r[s],o[s])}}var A1=0;function vh(t,n){n.type!=="file"&&(n.value=t.value),n.type==="radio"&&n.name&&(n.name=`mat-clone-${n.name}-${A1++}`)}function _h(t,n){let e=n.getContext("2d");if(e)try{e.drawImage(t,0,0)}catch(i){}}function xc(t){let n=t.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function yc(t,n,e){let{top:i,bottom:r,left:o,right:s}=t;return e>=i&&e<=r&&n>=o&&n<=s}function R1(t,n){let e=n.left<t.left,i=n.left+n.width>t.right,r=n.top<t.top,o=n.top+n.height>t.bottom;return e||i||r||o}function Yo(t,n,e){t.top+=n,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function bh(t,n,e,i){let{top:r,right:o,bottom:s,left:a,width:l,height:c}=t,p=l*n,h=c*n;return i>r-h&&i<s+h&&e>a-p&&e<o+p}var la=class{_document;positions=new Map;constructor(n){this._document=n}clear(){this.positions.clear()}cache(n){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}
vendor: 4,108 bytes, lines 27-40
27),n.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:xc(e)})})}handleScroll(n){let e=Go(n),i=this.positions.get(e);if(!i)return null;let r=i.scrollPosition,o,s;if(e===this._document){let c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;let a=r.top-o,l=r.left-s;return this.positions.forEach((c,p)=>{c.clientRect&&e!==p&&e.contains(p)&&Yo(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function kh(t,n){let e=t.rootNodes;if(e.length===1&&e[0].nodeType===n.ELEMENT_NODE)return e[0];let i=n.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function Tc(t,n,e){for(let i in n)if(n.hasOwnProperty(i)){let r=n[i];r?t.setProperty(i,r,e?.has(i)?"important":""):t.removeProperty(i)}return t}function Zr(t,n){let e=n?"":"none";Tc(t.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function yh(t,n,e){Tc(t.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function ca(t,n){return n&&n!="none"?t+" "+n:t}function Ch(t,n){t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=Ko(n.left,n.top)}function Ko(t,n){return`translate3d(${Math.round(t)}px, ${Math.round(n)}px, 0)`}var Wo={capture:!0},vc={passive:!1,capture:!0},O1=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=ie({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(i,r){},styles:[`@layer cdk-resets {
28  .cdk-drag-preview {
29    background: none;
30    border: none;
31    padding: 0;
32    color: inherit;
33    inset: auto;
34  }
35}
36.cdk-drag-placeholder *,
37.cdk-drag-preview * {
38  pointer-events: none !important;
39}
40`],encapsulation:2,changeDetection:0})}return t})(),ha=(()=>{class t{_ngZone=q(vt);_document=q(gt);_styleLoader=q(dh);_renderer=q(Rr).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new Ve;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=Ar([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new Ve;pointerUp=new Ve;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,vc)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,i){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(O1),this._activeDragInstances.update(r=>[...r,e]),this._activeDragInstances().length===1)){let r=i.type.startsWith("touch"),o=a=>this.pointerUp.next(a),s=[["scroll",a=>this._scroll.next(a),Wo],["selectstart",this._preventDefaultWhileDragging,vc]];r?s.push(["touchend",o,Wo],["touchcancel",o,Wo]):s.push(["mouseup",o,Wo]),r||s.push(["mousemove",a=>this.pointerMove.next(a),vc]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=s.map(([a,l,c])=>this._renderer.listen(this._document,a,l,c))})}}stopDragging(e){this._activeDragInstances.update(i=>{let r=i.indexOf(e);return r>-1?(i.splice(r,1),[...i]):i}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let i=[this._scroll];return e&&e!==this._document&&i.push(new Wt(r=>this._ngZone.runOutsideAngular(()=>{let o=this._renderer.listen(e,"scroll",s=>{this._activeDragInstances().length&&r.next(s)},Wo);return()=>{o()}}))),Tn(...i)}registerDirectiveNode(e,i){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,i)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}
40getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wh(t){let n=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*n}function L1(t){let n=getComputedStyle(t),e=_c(n,"transition-property"),i=e.find(a=>a==="transform"||a==="all");if(!i)return 0;let r=e.indexOf(i),o=_c(n,"transition-duration"),s=_c(n,"transition-delay");return wh(o[r])+wh(s[r])}function _c(t,n){return t.getPropertyValue(n).split(",").map(i=>i.trim())}var N1=new Set(["position"]),Cc=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView=null;_preview;get element(){return this._preview}constructor(n,e,i,r,o,s,a,l,c,p){this._document=n,this._rootElement=e,this._direction=i,this._initialDomRect=r,this._previewTemplate=o,this._previewClass=s,this._pickupPositionOnPage=a,this._initialTransform=l,this._zIndex=c,this._renderer=p}attach(n){this._preview=this._createPreview(),n.appendChild(this._preview),Eh(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(n){this._preview.style.transform=n}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(n){this._preview.classList.add(n)}getTransitionDuration(){return L1(this._preview)}addEventListener(n,e){return this._renderer.listen(this._preview,n,e)}_createPreview(){let n=this._previewTemplate,e=this._previewClass,i=n?n.template:null,r;if(i&&n){let o=n.matchSize?this._initialDomRect:null,s=n.viewContainer.createEmbeddedView(i,n.context);s.detectChanges(),r=kh(s,this._document),this._previewEmbeddedView=s,n.matchSize?Ch(r,o):r.style.transform=Ko(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=bc(this._rootElement),Ch(r,this._initialDomRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Tc(r.style,{"pointer-events":"none",margin:Eh(r)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},N1),Zr(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("popover","manual"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}};function Eh(t){return"showPopover"in t}var F1={passive:!0},Sh={passive:!1},z1={passive:!1,capture:!0},V1=800,Ih="cdk-drag-placeholder",xh=new Set(["position"]);function Dh(t,n,e={dragStartThreshold:5,pointerDirectionChangeThreshold:5}){let i=t.get(Zt,null,{optional:!0})||t.get(Rr).createRenderer(null,null);return new wc(n,e,t.get(gt),t.get(vt),t.get(mc),t.get(ha),i)}var wc=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview=null;_previewContainer;_placeholderRef=null;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=Ar(!1);_hasMoved=!1;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new Ve;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement=null;_rootElementTapHighlight;_pointerMoveSubscription=sn.EMPTY;_pointerUpSubscription=sn.EMPTY;_scrollSubscription=sn.EMPTY;_resizeSubscription=sn.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef=null;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(n){n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEac
vendor: 4,409 bytes, line 40
40h(e=>Zr(e,n)))}_disabled=!1;beforeStarted=new Ve;started=new Ve;released=new Ve;ended=new Ve;entered=new Ve;exited=new Ve;dropped=new Ve;moved=this._moveEvents;data;constrainPosition;constructor(n,e,i,r,o,s,a){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=s,this._renderer=a,this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new la(i),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(i=>Ai(i)),this._handles.forEach(i=>Zr(i,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){let e=Ai(n);if(e!==this._rootElement){this._removeRootElementListeners();let i=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"mousedown",this._pointerDown,Sh),i.listen(e,"touchstart",this._pointerDown,F1),i.listen(e,"dragstart",this._nativeDragStart,Sh)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?Ai(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&R1(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let n=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),i=0,r=0;e.left<n.left?i=n.left-e.left:e.right>n.right&&(i=n.right-e.right),e.top<n.top?r=n.top-e.top:e.bottom>n.bottom&&(r=n.bottom-e.bottom);let o=this._activeTransform.x,s=this._activeTransform.y,a=o+i,l=s+r;this._rootElement.style.transform=Ko(a,l),this._activeTransform={x:a,y:l},this._passiveTransform={x:a,y:l}}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),Zr(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),Zr(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){let n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){let n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}
vendor: 15,522 bytes, line 40
40_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=n=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(n);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)};_pointerMove=n=>{let e=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging()){let r=Math.abs(e.x-this._pickupPositionOnPage.x),o=Math.abs(e.y-this._pickupPositionOnPage.y);if(r+o>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),l=this._dropContainer;if(!a){this._endDragSequence(n);return}(!l||!l.isDragging()&&!l.isReceiving())&&(n.cancelable&&n.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(n)))}return}n.cancelable&&n.preventDefault();let i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{let r=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,o=this._activeTransform;o.x=i.x-r.x+this._passiveTransform.x,o.y=i.y-r.y+this._passiveTransform.y,this._applyRootElementTransform(o.x,o.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:n,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})};_pointerUp=n=>{this._endDragSequence(n)};_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){qo(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),i=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",B1,z1)}),i){let r=this._rootElement,o=r.parentNode,s=this._placeholder=this._createPlaceholderElement(),a=this._marker=this._marker||this._document.createComment("");o.insertBefore(a,r),this._initialTransform=r.style.transform||"",this._preview=new Cc(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(o,e)),yh(r,!1,xh),this._document.body.appendChild(o.replaceChild(s,r)),this.started.next({source:this,event:n}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();let i=this.isDragging(),r=qo(e),o=!r&&e.button!==0,s=this._rootElement,a=Go(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+V1>Date.now(),c=r?ph(e):uh(e);if(a&&a.draggable&&e.type==="mousedown"&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){let f=s.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=xc(this._boundaryElement));let p=this._previewTemplate;this._pickupPositionInElement=p&&p.template&&!p.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,n,e);let h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){yh(this._rootElement,!0,xh),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(n),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:n}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{let s=this._dropContainer.getItemIndex(this),a=this._dropContainer.getItemAtIndex(s+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(o,this._dropContainer,a),this._dropContainer=o,this._dropContainer.enter(this,n,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,e):this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let n=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let r=a=>{(!a||this._preview&&Go(a)===this._preview.element&&a.propertyName==="transform")&&(s(),i(),clearTimeout(o))},o=setTimeout(r,e*1.5),s=this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){let n=this._placeholderTemplate,e=n?n.template:null,i;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),i=kh(this._placeholderRef,this._document)):i=bc(this._rootElement),i.style.pointerEvents="none",i.classList.add(Ih),i}_getPointerPositionInElement(n,e,i){let r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():n,s=qo(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),l=s.pageX-o.left-a.left,c=s.pageY-o.top-a.top;return{x:o.left-n.left+l,y:o.top-n.top+c}}_getPointerPositionOnPage(n){let e=this._getViewportScrollPosition(),i=qo(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){let s=this._ownerSVGElement.getScreenCTM();if(s){let a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(n){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:r}=this.constrainPosition?this.constrainPosition(n,this,this._initialDomRect,this._pickupPositionInElement):n;if(this.lockAxis==="x"||e==="x"?r=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:o,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),p=a.top+s,h=a.bottom-(c-s),f=a.left+o,d=a.right-(l-o);i=Th(i,f,d),r=Th(r,p,h)}return{x:i,y:r}}_updatePointerDirectionDelta(n){let{x:e,y:i}=n,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,Zr(this._rootElement,n))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(n=>n()),this._rootElementCleanups=void 0}_applyRootElementTransform(n,e){let i=1/this.scale,r=Ko(n*i,e*i),o=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=o.transform&&o.transform!="none"?o.transform:""),o.transform=ca(r,this._initialTransform)}_applyPreviewTransform(n,e){let i=this._previewTemplate?.template?void 0:this._initialTransform,r=Ko(n,e);this._preview.setTransform(ca(r,i))}_getDragDistance(n){let e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(n===0&&e===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(r.width===0&&r.height===0||i.width===0&&i.height===0)return;let o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(n+=o),s>0&&(n-=s)):n=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){let e=this.dragStartDelay;return typeof e=="number"?e:qo(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){let e=this._parentPositions.handleScroll(n);if(e){let i=Go(n);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Yo(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=oa(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){let i=this._previewContainer||"global";if(i==="parent")return n;if(i==="global"){let r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Ai(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=n=>{if(this._handles.length){let e=this._getTargetHandle(n);e&&!this._disabledHandles.has(e)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()};_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}_conditionallyInsertAnchor(n,e,i){if(n===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let r=this._anchor??=bc(this._placeholder);r.classList.remove(Ih),r.classList.add("cdk-drag-anchor"),r.style.transform="",i?i.before(r):Ai(e.element).appendChild(r)}}};function Th(t,n,e){return Math.max(n,Math.min(e,t))}function qo(t){return t.type[0]==="t"}function B1(t){t.preventDefault()}function _r(t,n,e){let i=da(n,t.length-1),r=da(e,t.length-1);if(i===r)return;let o=t[i],s=r<i?-1:1;for(let a=i;a!==r;a+=s)t[a]=t[a+s];t[r]=o}function Mh(t,n,e,i){let r=da(e,t.length-1),o=da(i,n.length);t.length&&n.splice(o,0,t.splice(r,1)[0])}function da(t,n){return Math.max(0,Math.min(n,t))}var ua=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction="ltr";constructor(n){this._dragDropRegistry=n}_previousSwap={drag:null,delta:0,overlaps:!1};start(n){this.withItems(n)}sort(n,e,i,r){let o=this._itemPositions,s=this._getItemIndexFromPointerPosition(n,e,i,r);if(s===-1&&o.length>0)return null;let a=this.orientation==="horizontal",l=o.findIndex(b=>b.drag===n),c=o[s],p=o[l].clientRect,h=c.clientRect,f=l>s?1:-1,d=this._getItemOffsetPx(p,h,f),u=this._getSiblingOffsetPx(l,o,f),g=o.slice();return _r(o,l,s),o.forEach((b,m)=>{if(g[m]===b)return;let v=b.drag===n,_=v?d:u,D=v?n.getPlaceholderElement():b.drag.getRootElement();b.offset+=_;let L=Math.round(b.offset*(1/b.drag.scale));a?(D.style.transform=ca(`translate3d(${L}px, 0, 0)`,b.initialTransform),Yo(b.clientRect,0,_)):(D.style.transform=ca(`translate3d(0, ${L}px, 0)`,b.initialTransform),Yo(b.clientRect,_,0))}),this._previousSwap.overlaps=yc(h,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(n,e,i,r){let o=this._activeDraggables,s=o.indexOf(n),a=n.getPlaceholderElement();s>-1&&o.splice(s,1);let l=r==null||r<0?this._getItemIndexFromPointerPosition(n,e,i):r,c=o[l];if(c===n&&(c=o[l+1]),!c&&(l==null||l===-1||l<o.length-1)&&this._shouldEnterAsFirstChild(e,i)&&(c=o[0]),c&&!this._dragDropRegistry.isDragging(c)){let p=c.getRootElement();p.parentElement.insertBefore(a,p),o.splice(l,0,n)}else this._element.appendChild(a),o.push(n);a.style.transform="",this._cacheItemPositions()}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions()}withSortPredicate(n){this._sortPredicate=n}reset(){this._activeDraggables?.forEach(n=>{let e=n.getRootElement();if(e){let i=this._itemPositions.find(r=>r.drag===n)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(n){return this._getVisualItemPositions().findIndex(e=>e.drag===n)}getItemAtIndex(n){return this._getVisualItemPositions()[n]?.drag||null}updateOnScroll(n,e){this._itemPositions.forEach(({clientRect:i})=>{Yo(i,n,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(n){this._element=n}
vendor: 18,320 bytes, line 40
40_cacheItemPositions(){let n=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:xc(i)}}).sort((e,i)=>n?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(n,e,i){let r=this.orientation==="horizontal",o=r?e.left-n.left:e.top-n.top;return i===-1&&(o+=r?e.width-n.width:e.height-n.height),o}_getSiblingOffsetPx(n,e,i){let r=this.orientation==="horizontal",o=e[n].clientRect,s=e[n+i*-1],a=o[r?"width":"height"]*i;if(s){let l=r?"left":"top",c=r?"right":"bottom";i===-1?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,r=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let s=i[i.length-1].clientRect;return r?n>=s.right:e>=s.bottom}else{let s=i[0].clientRect;return r?n<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(n,e,i,r){let o=this.orientation==="horizontal",s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===n)return!1;if(r){let c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e<Math.floor(l.right):i>=Math.floor(l.top)&&i<Math.floor(l.bottom)});return s===-1||!this._sortPredicate(s,n)?-1:s}},Ec=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(n,e){this._document=n,this._dragDropRegistry=e}start(n){let e=this._element.childNodes;this._relatedNodes=[];for(let i=0;i<e.length;i++){let r=e[i];this._relatedNodes.push([r,r.nextSibling])}this.withItems(n)}sort(n,e,i,r){let o=this._getItemIndexFromPointerPosition(n,e,i),s=this._previousSwap;if(o===-1||this._activeItems[o]===n)return null;let a=this._activeItems[o];if(s.drag===a&&s.overlaps&&s.deltaX===r.x&&s.deltaY===r.y)return null;let l=this.getItemIndex(n),c=n.getPlaceholderElement(),p=a.getRootElement();o>l?p.after(c):p.before(c),_r(this._activeItems,l,o);let h=this._getRootNode().elementFromPoint(e,i);return s.deltaX=r.x,s.deltaY=r.y,s.drag=a,s.overlaps=p===h||p.contains(h),{previousIndex:l,currentIndex:o}}enter(n,e,i,r){let o=this._activeItems.indexOf(n);o>-1&&this._activeItems.splice(o,1);let s=r==null||r<0?this._getItemIndexFromPointerPosition(n,e,i):r;s===-1&&(s=this._getClosestItemIndexToPointer(n,e,i));let a=this._activeItems[s];a&&!this._dragDropRegistry.isDragging(a)?(this._activeItems.splice(s,0,n),a.getRootElement().before(n.getPlaceholderElement())):(this._activeItems.push(n),this._element.appendChild(n.getPlaceholderElement()))}withItems(n){this._activeItems=n.slice()}withSortPredicate(n){this._sortPredicate=n}reset(){let n=this._element,e=this._previousSwap;for(let i=this._relatedNodes.length-1;i>-1;i--){let[r,o]=this._relatedNodes[i];r.parentNode===n&&r.nextSibling!==o&&(o===null?n.appendChild(r):o.parentNode===n&&n.insertBefore(r,o))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(n){return this._activeItems.indexOf(n)}getItemAtIndex(n){return this._activeItems[n]||null}updateOnScroll(){this._activeItems.forEach(n=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(n){n!==this._element&&(this._element=n,this._rootNode=void 0)}_getItemIndexFromPointerPosition(n,e,i){let r=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(i)),o=r?this._activeItems.findIndex(s=>{let a=s.getRootElement();return r===a||a.contains(r)}):-1;return o===-1||!this._sortPredicate(o,n)?-1:o}_getRootNode(){return this._rootNode||(this._rootNode=oa(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(n,e,i){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let r=1/0,o=-1;for(let s=0;s<this._activeItems.length;s++){let a=this._activeItems[s];if(a!==n){let{x:l,y:c}=a.getRootElement().getBoundingClientRect(),p=Math.hypot(e-l,i-c);p<r&&(r=p,o=s)}}return o}},Ph=.05,Ah=.05,Ci=(function(t){return t[t.NONE=0]="NONE",t[t.UP=1]="UP",t[t.DOWN=2]="DOWN",t})(Ci||{}),Kt=(function(t){return t[t.NONE=0]="NONE",t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t})(Kt||{});function Rh(t,n){return new Sc(n,t.get(ha),t.get(gt),t.get(vt),t.get(mc))}var Sc=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis=null;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new Ve;entered=new Ve;exited=new Ve;dropped=new Ve;sorted=new Ve;receivingStarted=new Ve;receivingStopped=new Ve;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=sn.EMPTY;_verticalScrollDirection=Ci.NONE;_horizontalScrollDirection=Kt.NONE;_scrollNode;_stopScrollTimers=new Ve;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(n,e,i,r,o){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=o;let s=this.element=Ai(n);this._document=i,this.withOrientation("vertical").withElementContainer(s),e.registerDropContainer(this),this._parentPositions=new la(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,i,r){this._draggingStarted(),r==null&&this.sortingDisabled&&(r=this._draggables.indexOf(n)),this._sortStrategy.enter(n,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(n){let e=this._draggables;return this._draggables=n,n.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>n.indexOf(r)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(n){return this._direction=n,this._sortStrategy instanceof ua&&(this._sortStrategy.direction=n),this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){if(n==="mixed")this._sortStrategy=new Ec(this._document,this._dragDropRegistry);else{let e=new ua(this._dragDropRegistry);e.direction=this._direction,e.orientation=n,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,i)=>this.sortPredicate(e,i,this)),this}withScrollableParents(n){let e=this._container;return this._scrollableElements=n.indexOf(e)===-1?[e,...n]:n.slice(),this}withElementContainer(n){if(n===this._container)return this;let e=Ai(this.element),i=this._scrollableElements.indexOf(this._container),r=this._scrollableElements.indexOf(n);return i>-1&&this._scrollableElements.splice(i,1),r>-1&&this._scrollableElements.splice(r,1),this._sortStrategy&&this._sortStrategy.withElementContainer(n),this._cachedShadowRoot=null,this._scrollableElements.unshift(n),this._container=n,this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n)}getItemAtIndex(n){return this._isDragging?this._sortStrategy.getItemAtIndex(n):this._draggables[n]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,i,r){if(this.sortingDisabled||!this._domRect||!bh(this._domRect,Ph,e,i))return;let o=this._sortStrategy.sort(n,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:n})}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let i,r=Ci.NONE,o=Kt.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||bh(s.clientRect,Ph,n,e)&&([r,o]=j1(a,s.clientRect,this._direction,n,e),(r||o)&&(i=a))}),!r&&!o){let{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=Oh(l,e),o=Lh(l,n),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let n=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let n=this._container.style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),Cu(0,_l).pipe(an(this._stopScrollTimers)).subscribe(()=>{let n=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===Ci.UP?n.scrollBy(0,-e):this._verticalScrollDirection===Ci.DOWN&&n.scrollBy(0,e),this._horizontalScrollDirection===Kt.LEFT?n.scrollBy(-e,0):this._horizontalScrollDirection===Kt.RIGHT&&n.scrollBy(e,0)})};_isOverContainer(n,e){return this._domRect!=null&&yc(this._domRect,n,e)}_getSiblingContainerFromPosition(n,e,i){return this._siblings.find(r=>r._canReceive(n,e,i))}_canReceive(n,e,i){if(!this._domRect||!yc(this._domRect,e,i)||!this.enterPredicate(n,this))return!1;let r=this._getShadowRoot().elementFromPoint(e,i);return r?r===this._container||this._container.contains(r):!1}_startReceiving(n,e){let i=this._activeSiblings;!i.has(n)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(n),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:n,receiver:this,items:e}))}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:n,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(n);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let n=oa(this._container);this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let n=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}};function Oh(t,n){let{top:e,bottom:i,height:r}=t,o=r*Ah;return n>=e-o&&n<=e+o?Ci.UP:n>=i-o&&n<=i+o?Ci.DOWN:Ci.NONE}function Lh(t,n){let{left:e,right:i,width:r}=t,o=r*Ah;return n>=e-o&&n<=e+o?Kt.LEFT:n>=i-o&&n<=i+o?Kt.RIGHT:Kt.NONE}function j1(t,n,e,i,r){let o=Oh(n,r),s=Lh(n,i),a=Ci.NONE,l=Kt.NONE;if(o){let c=t.scrollTop;o===Ci.UP?c>0&&(a=Ci.UP):t.scrollHeight-c>t.clientHeight&&(a=Ci.DOWN)}if(s){let c=t.scrollLeft;e==="rtl"?s===Kt.RIGHT?c<0&&(l=Kt.RIGHT):t.scrollWidth+c>t.clientWidth&&(l=Kt.LEFT):s===Kt.LEFT?c>0&&(l=Kt.LEFT):t.scrollWidth-c>t.clientWidth&&(l=Kt.RIGHT)}return[a,l]}var $1=(()=>{class t{_injector=q(ht);constructor(){}createDrag(e,i){return Dh(this._injector,e,i)}createDropList(e){return Rh(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pa=new qe("CDK_DRAG_PARENT");var Nh=new qe("CdkDragHandle"),fa=(()=>{class t{element=q(Jt);_parentDrag=q(pa,{optional:!0,skipSelf:!0});_dragDropRegistry=q(ha);_stateChanges=new Ve;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._stateChanges.next(this)}_disabled=!1;constructor(){this._parentDrag?._addHandle(this)}ngAfterViewInit(){if(!this._parentDrag){let e=this.element.nativeElement.parentElement;for(;e;){let i=this._dragDropRegistry.getDragDirectiveForNode(e);if(i){this._parentDrag=i,i._addHandle(this);break}e=e.parentElement}}}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=_t({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",dn]},features:[bt([{provide:Nh,useExisting:t}])]})}return t})(),Fh=new qe("CDK_DRAG_CONFIG"),zh=new qe("CdkDropList"),ma=(()=>{class t{element=q(Jt);dropContainer=q(zh,{optional:!0,skipSelf:!0});_ngZone=q(vt);_viewContainerRef=q(Bt);_dir=q(fc,{optional:!0});_changeDetectorRef=q(ct);_selfHandle=q(Nh,{optional:!0,self:!0});_parentDrag=q(pa,{optional:!0,skipSelf:!0});_dragDropRegistry=q(ha);_destroyed=new Ve;_handles=new nt([]);_previewTemplate=null;_placeholderTemplate=null;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled=!1;constrainPosition;previewClass;previewContainer;scale=1;started=new j;released=new j;ended=new j;entered=new j;exited=new j;dropped=new j;moved=new Wt(e=>{let i=this._dragRef.moved.pipe(Pe(r=>({source:this,pointerPosition:r.pointerPosition,event:r.event,delta:r.delta,distance:r.distance}))).subscribe(e);return()=>{i.unsubscribe()}});_injector=q(ht);constructor(){let e=this.dropContainer,i=q(Fh,{optional:!0});this._dragRef=Dh(this._injector,this.element,{dragStartThreshold:i&&i.dragStartThreshold!=null?i.dragStartThreshold:5,pointerDirectionChangeThreshold:i&&i.pointerDirectionChangeThreshold!=null?i.pointerDirectionChangeThreshold:5,zIndex:i?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),i&&this._assignDefaults(i),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(an(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){Cl(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let i=this._handles.getValue();i.push(e),this._handles.next(i)}_removeHandle(e){let i=this._handles.getValue(),r=i.indexOf(e);r>-1&&(i.splice(r,1),this._handles.next(i))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,i=e;this.rootElementSelector&&(i=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):Ai(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof r=="object"&&r?r:sa(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(Se(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let i=this.element.nativeElement.parentElement;for(;i;){let r=this._dragDropRegistry.getDragDirectiveForNode(i);if(r){e.withParent(r._dragRef);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>
40{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){let{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:s,boundaryElement:a,draggingDisabled:l,rootElementSelector:c,previewContainer:p}=e;this.disabled=l??!1,this.dragStartDelay=r||0,this.lockAxis=i||null,o&&(this.constrainPosition=o),s&&(this.previewClass=s),a&&(this.boundaryElement=a),c&&(this.rootElementSelector=c),p&&(this.previewContainer=p)}_setupHandlesListener(){this._handles.pipe(Fe(e=>{let i=e.map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Ae(e=>Tn(...e.map(i=>i._stateChanges.pipe(sr(i))))),an(this._destroyed)).subscribe(e=>{let i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=_t({type:t,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,r){i&2&&Ee("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",dn],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Fu]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[bt([{provide:pa,useExisting:t}]),li]})}return t})(),Ic=new qe("CdkDropListGroup"),Vh=(()=>{class t{_items=new Set;disabled=!1;ngOnDestroy(){this._items.clear()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=_t({type:t,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:[2,"cdkDropListGroupDisabled","disabled",dn]},exportAs:["cdkDropListGroup"],features:[bt([{provide:Ic,useExisting:t}])]})}return t})(),ga=(()=>{class t{element=q(Jt);_changeDetectorRef=q(ct);_scrollDispatcher=q(hh);_dir=q(fc,{optional:!0});_group=q(Ic,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new Ve;_scrollableParentsResolved=!1;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation="vertical";id=q(aa).getId("cdk-drop-list-");lockAxis=null;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}_disabled=!1;sortingDisabled=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled=!1;autoScrollStep;elementContainerSelector=null;hasAnchor=!1;dropped=new j;entered=new j;exited=new j;sorted=new j;_unsortedItems=new Set;constructor(){let e=q(Fh,{optional:!0}),i=q(ht);this._dropListRef=Rh(i,this.element),this._dropListRef.data=this,e&&this._assignDefaults(e),this._dropListRef.enterPredicate=(r,o)=>this.enterPredicate(r.data,o.data),this._dropListRef.sortPredicate=(r,o,s)=>this.sortPredicate(r,o.data,s.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(e){this._unsortedItems.add(e),e._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(i=>i._dragRef))}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){let i=this._latestSortedRefs.indexOf(e._dragRef);i>-1&&(this._latestSortedRefs.splice(i,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(sr(this._dir.value),an(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{let i=mh(this.connectedTo).map(r=>{if(typeof r=="string"){let o=t._dropLists.find(s=>s.id===r);return o}return r});
40if(this._group&&this._group._items.forEach(r=>{i.indexOf(r)===-1&&i.push(r)}),!this._scrollableParentsResolved){let r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let r=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(r)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=sa(this.autoScrollStep,2),e.hasAnchor=this.hasAnchor,e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(i=>i._dragRef)),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),Tn(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:s,listOrientation:a}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=s??!1,this.orientation=a||"vertical",this.lockAxis=i||null}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=_t({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,r){i&2&&(Oe("id",r.id),Ee("cdk-drop-list-disabled",r.disabled)("cdk-drop-list-dragging",r._dropListRef.isDragging())("cdk-drop-list-receiving",r._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",dn],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",dn],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",dn],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",dn]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[bt([{provide:Ic,useValue:void 0},{provide:zh,useExisting:t}])]})}return t})();var H1=new qe("CdkDragPlaceholder"),s4=(()=>{class t{templateRef=q(Ti);_drag=q(pa,{optional:!0});data;constructor(){this._drag?._setPlaceholderTemplate(this)}ngOnDestroy(){this._drag?._resetPlaceholderTemplate(this)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=_t({type:t,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[bt([{provide:H1,useExisting:t}])]})}return t})();var Wi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Mt({type:t});static \u0275inj=Dt({providers:[$1],imports:[fh]})}return t})();var Qr=(()=>{class t{constructor(){this.registry=new Map}registerIcons(e){e.forEach(i=>this.registry.set(i.name,i.data))}hasIcon(e){return this.registry.has(e)}getIcon(e){return this.registry.has(e)||console.warn(`We could not find the Icon with the name ${e}, did you add it to the Icon registry?`),this.registry.get(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Bh={name:"align_left",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M5.5 10a1.5 1.5 0 1 0 0 3h29a1.5 1.5 0 1 0 0-3h-29zm0 13a1.5 1.5 0 1 0 0 3h37a1.5 1.5 0 1 0 0-3h-37zm1 13a1.5 1.5 0 1 0 0 3h21a1.5 1.5 0 1 0 0-3h-21z"/></svg>'};var jh={name:"calendar",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M12.5 6C8.928 6 6 8.928 6 12.5v23c0 3.572 2.928 6.5 6.5 6.5h23c3.572 0 6.5-2.928 6.5-6.5v-23C42 8.928 39.072 6 35.5 6h-23zm0 3h23c1.95 0 3.5 1.55 3.5 3.5V14H9v-1.5C9 10.55 10.55 9 12.5 9zM9 17h30v18.5c0 1.95-1.55 3.5-3.5 3.5h-23C10.55 39 9 37.45 9 35.5V17zm6.5 4a2.5 2.5 0 0 0 0 5 2.5 2.5 0 0 0 0-5zm8.5 0a2.5 2.5 0 0 0 0 5 2.5 2.5 0 0 0 0-5zm8.5 0a2.5 2.5 0 0 0 0 5 2.5 2.5 0 0 0 0-5zm-17 9a2.5 2.5 0 0 0 0 5 2.5 2.5 0 0 0 0-5zm8.5 0a2.5 2.5 0 0 0 0 5 2.5 2.5 0 0 0 0-5z"/></svg>'};var $h={name:"close",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M39.486 6.979a1.5 1.5 0 0 0-1.047.46L24 21.88 9.56 7.439a1.5 1.5 0 0 0-1.076-.455A1.5 1.5 0 0 0 7.44 9.561L21.88 24 7.439 38.44a1.5 1.5 0 1 0 2.122 2.12L24 26.122l14.44 14.44a1.5 1.5 0 1 0 2.12-2.122L26.122 24l14.44-14.44a1.5 1.5 0 0 0-1.075-2.581z"/></svg>'};var Hh={name:"contacts",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M13.5 4C10.48 4 8 6.48 8 9.5v29c0 3.02 2.48 5.5 5.5 5.5h26a1.5 1.5 0 1 0 0-3h-26a2.47 2.47 0 0 1-2.45-2H39.5a1.5 1.5 0 0 0 1.5-1.5v-28C41 6.48 38.52 4 35.5 4h-22zm0 3h22C36.898 7 38 8.102 38 9.5V36H11V9.5C11 8.102 12.102 7 13.5 7zm11 4c-2.468 0-4.5 2.032-4.5 4.5s2.032 4.5 4.5 4.5 4.5-2.032 4.5-4.5-2.032-4.5-4.5-4.5zm0 3c.846 0 1.5.654 1.5 1.5s-.654 1.5-1.5 1.5-1.5-.654-1.5-1.5.654-1.5 1.5-1.5zm-5 8a2.522 2.522 0 0 0-2.5 2.5V27c0 1.661 1.13 2.97 2.502 3.771C20.875 31.572 22.607 32 24.5 32c1.893 0 3.625-.428 4.998-1.229C30.871 29.971 32 28.661 32 27v-2.5c0-1.364-1.136-2.5-2.5-2.5h-10zm.5 3h9v2c0 .272-.215.714-1.014 1.18-.799.466-2.065.82-3.486.82-1.42 0-2.687-.354-3.486-.82
40-.8-.466-1.014-.908-1.014-1.18v-2z"/></svg>'};var Uh={name:"document",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M12.5 4C10.032 4 8 6.032 8 8.5v31c0 2.468 2.032 4.5 4.5 4.5h23c2.468 0 4.5-2.032 4.5-4.5v-21a1.5 1.5 0 0 0-.44-1.06l-.015-.016L26.56 4.439A1.5 1.5 0 0 0 25.5 4h-13zm0 3H24v8.5c0 2.468 2.032 4.5 4.5 4.5H37v19.5c0 .846-.654 1.5-1.5 1.5h-23c-.846 0-1.5-.654-1.5-1.5v-31c0-.846.654-1.5 1.5-1.5zM27 9.121 34.879 17H28.5c-.846 0-1.5-.654-1.5-1.5V9.121zM17.5 25a1.5 1.5 0 1 0 0 3h13a1.5 1.5 0 1 0 0-3h-13zm0 7a1.5 1.5 0 1 0 0 3h9a1.5 1.5 0 1 0 0-3h-9z"/></svg>'};var Gh={name:"double_left_arrows",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M23.47 4.986a1.5 1.5 0 0 0-1.03.453l-8 8a1.5 1.5 0 0 0 0 2.122l8 8a1.5 1.5 0 1 0 2.12-2.122L19.122 16H42.5a1.5 1.5 0 1 0 0-3H19.121l5.44-5.44a1.5 1.5 0 0 0-1.09-2.574zm-10 19a1.5 1.5 0 0 0-1.03.453l-8 8a1.5 1.5 0 0 0 0 2.122l8 8a1.5 1.5 0 1 0 2.12-2.122L9.122 35H32.5a1.5 1.5 0 1 0 0-3H9.121l5.44-5.44a1.5 1.5 0 0 0-1.09-2.574z"/></svg>'};var Wh={name:"facebook",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M24 4C12.972 4 4 12.972 4 24s8.972 20 20 20 20-8.972 20-20S35.028 4 24 4zm0 3c9.407 0 17 7.593 17 17 0 8.38-6.033 15.306-14 16.72V29h3.625c.504 0 .93-.377.992-.877l.375-3A1 1 0 0 0 31 24h-4v-3.5c0-1.103.897-2 2-2h2a1 1 0 0 0 1-1v-3.375a1 1 0 0 0-.91-.996c-.06-.005-1.47-.129-3.256-.129C23.427 13 21 15.616 21 20.367V24h-4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4v11.72C13.033 39.307 7 32.38 7 24c0-9.407 7.593-17 17-17z"/></svg>'},qh={name:"faq",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M17 4C9.285 4 3 10.284 3 17.998c0 2.216.584 4.285 1.504 6.148l-1.422 5.09c-.437 1.56 1.118 3.118 2.678 2.684a1.5 1.5 0 0 0 .002-.002l5.095-1.422c1.863.918 3.928 1.502 6.143 1.502.054 0 .106-.003.16-.004.976 6.77 6.805 12.004 13.84 12.004 2.215 0 4.28-.584 6.143-1.502l5.095 1.422a1.5 1.5 0 0 0 .002.002c1.56.434 3.113-1.123 2.678-2.682l-1.422-5.092c.92-1.863 1.504-3.932 1.504-6.148C45 22.284 38.715 16 31 16c-.049 0-.096.007-.145.008C29.885 9.228 24.038 4 17 4zm0 3a10.976 10.976 0 0 1 10.875 9.365 13.965 13.965 0 0 0-6.307 3.32l-3.109-7.58a1.5 1.5 0 0 0-1.49-1.125 1.5 1.5 0 0 0-.035.002 1.5 1.5 0 0 0-1.395 1.123l-4.428 10.827a1.5 1.5 0 1 0 2.778 1.136L14.734 22h4.797a13.897 13.897 0 0 0-2.48 6.994c-.017 0-.034.004-.051.004-1.945 0-3.758-.505-5.344-1.389a1.5 1.5 0 0 0-1.133-.134l-4.16 1.162 1.162-4.158a1.5 1.5 0 0 0-.134-1.135A10.916 10.916 0 0 1 6 17.998 10.976 10.976 0 0 1 17 7zm.002 9.457L18.045 19h-2.082l1.039-2.543zM31 19c6.093 0 11 4.906 11 10.998 0 1.946-.506 3.76-1.39 5.346a1.5 1.5 0 0 0-.135 1.135l1.162 4.158-4.16-1.162a1.5 1.5 0 0 0-1.133.134A10.926 10.926 0 0 1 31 40.998a10.968 10.968 0 0 1-10.975-10.477 1.5 1.5 0 0 0-.017-.369c0-.052-.008-.102-.008-.154A10.976 10.976 0 0 1 31 19zm0 4c-2.744 0-5 2.256-5 5v3c0 2.452 1.834 4.421 4.176 4.832.51.766 1.932 2.668 4.824 2.668a1.5 1.5 0 1 0 0-3c-.443 0-.764-.306-1.133-.523C35.124 34.065 36 32.657 36 31v-3c0-2.744-2.256-5-5-5zm0 3c1.122 0 2 .878 2 2v3c0 1.105-.86 1.956-1.957 1.982a1.5 1.5 0 0 0-.082.002C29.86 32.961 29 32.107 29 31v-3c0-1.122.878-2 2-2z"/></svg>'};var Yh={name:"gallery",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M12.5 5C8.375 5 5 8.375 5 12.5v18c0 4.125 3.375 7.5 7.5 7.5h18c4.125 0 7.5-3.375 7.5-7.5v-18C38 8.375 34.625 5 30.5 5h-18zm0 3h18c2.503 0 4.5 1.997 4.5 4.5v15.652l-5.25-5.08v.002A3.817 3.817 0 0 0 27.094 22h-.002c-.955 0-1.916.366-2.647 1.072a1.5 1.5 0 0 0-.002 0l-2.097 2.03-5.196-5.028a3.829 3.829 0 0 0-2.654-1.072c-.954 0-1.919.363-2.652 1.072L8 23.793V12.5C8 9.997 9.997 8 12.5 8zM40 11.514V31.5c0 4.687-3.813 8.5-8.5 8.5H11.514c1.37 1.818 3.539 3 5.986 3h14C37.841 43 43 37.841 43 31.5v-14a7.485 7.485 0 0 0-3-5.986zM27.5 13a2.5 2.5 0 0 0 0 5 2.5 2.5 0 0 0 0-5zm-13.004 9.002c.208 0 .404.07.568.228l5.125 4.957-8.039 7.778C9.816 34.785 8 32.884 8 30.5v-2.533l5.93-5.737a.79.79 0 0 1 .566-.228zM27.094 25a1.5 1.5 0 0 0 .002 0c.207 0 .405.07.568.229l7.049 6.82A4.46 4.46 0 0 1 30.5 35H16.428l10.101-9.771v.001c.165-.159.36-.23.565-.23z"/></svg>'};var Kh={name:"home",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M23.951 4a1.5 1.5 0 0 0-.879.322L8.86 15.52A7.504 7.504 0 0 0 6 21.41V40.5C6 41.864 7.136 43 8.5 43h10c1.364 0 2.5-1.136 2.5-2.5v-10c0-.295.205-.5.5-.5h5c.295 0 .5.205.5.5v10c0 1.364 1.136 2.5 2.5 2.5h10c1.364 0 2.5-1.136 2.5-2.5V21.41a7.504 7.504 0 0 0-2.86-5.89L24.929 4.322A1.5 1.5 0 0 0 23.95 4zM24 7.41l13.285 10.467A4.494 4.494 0 0 1 39 21.41V40h-9v-9.5c0-1.915-1.585-3.5-3.5-3.5h-5c-1.915 0-3.5 1.585-3.5 3.5V40H9V21.41c0-1.38.63-2.679 1.715-3.533L24 7.41z"/></svg>'}
40,Xh={name:"image",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M11.5 6C8.48 6 6 8.48 6 11.5v25c0 3.02 2.48 5.5 5.5 5.5h25c3.02 0 5.5-2.48 5.5-5.5v-25C42 8.48 39.52 6 36.5 6h-25zm0 3h25c1.398 0 2.5 1.102 2.5 2.5v20.455l-6.012-5.816a1.5 1.5 0 0 0-.002-.002A4.056 4.056 0 0 0 30.174 25a4.05 4.05 0 0 0-2.813 1.139l-2.049 1.982-6.18-5.978A4.049 4.049 0 0 0 16.319 21c-1.019 0-2.037.392-2.812 1.14a1.5 1.5 0 0 0-.002.003L9 26.5v-15C9 10.102 10.102 9 11.5 9zm19 4c-1.375 0-2.596.57-3.371 1.441C26.354 15.313 26 16.417 26 17.5c0 1.083.354 2.187 1.129 3.059C27.904 21.43 29.125 22 30.5 22s2.596-.57 3.371-1.441C34.646 19.687 35 18.583 35 17.5c0-1.083-.354-2.187-1.129-3.059C33.096 13.57 31.875 13 30.5 13zm0 3c.625 0 .904.18 1.129.434.225.253.371.65.371 1.066 0 .417-.146.813-.371 1.066-.225.254-.504.434-1.129.434s-.904-.18-1.129-.434c-.225-.253-.371-.65-.371-1.066 0-.417.146-.813.371-1.066.225-.254.504-.434 1.129-.434zm-14.182 8c.26 0 .517.094.727.297a1.5 1.5 0 0 0 .002.002l6.107 5.908L14.064 39H11.5A2.478 2.478 0 0 1 9 36.5v-5.826l6.59-6.375c.213-.206.47-.299.728-.299zm13.856 4c.265 0 .518.092.728.295L39 36.129v.371c0 1.398-1.102 2.5-2.5 2.5H18.38l11.067-10.705c.208-.2.463-.295.727-.295z"/></svg>'},Jh={name:"instagram",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M24 4C12.972 4 4 12.972 4 24s8.972 20 20 20 20-8.972 20-20S35.028 4 24 4zm0 3c9.407 0 17 7.593 17 17s-7.593 17-17 17S7 33.407 7 24 14.593 7 24 7zm0 4c-7.168 0-13 5.832-13 13s5.832 13 13 13 13-5.832 13-13-5.832-13-13-13zm0 3c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm7.5 2.5c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"/></svg>'};var Zh={name:"link",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M13 13C6.942 13 2 17.942 2 24s4.942 11 11 11h4.5a1.5 1.5 0 1 0 0-3H13c-4.436 0-8-3.564-8-8s3.564-8 8-8h4.5a1.5 1.5 0 1 0 0-3H13zm17.5 0a1.5 1.5 0 1 0 0 3H35c4.436 0 8 3.564 8 8s-3.564 8-8 8h-4.5a1.5 1.5 0 1 0 0 3H35c6.058 0 11-4.942 11-11s-4.942-11-11-11h-4.5zm-19 9.5a1.5 1.5 0 1 0 0 3h25a1.5 1.5 0 1 0 0-3h-25z"/></svg>'},Qh={name:"list",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M7.5 5A2.522 2.522 0 0 0 5 7.5v6C5 14.864 6.136 16 7.5 16h6c1.364 0 2.5-1.136 2.5-2.5v-6C16 6.136 14.864 5 13.5 5h-6zM8 8h5v5H8V8zm12.5 1a1.5 1.5 0 1 0 0 3h21a1.5 1.5 0 1 0 0-3h-21zm-13 9.5A2.522 2.522 0 0 0 5 21v6c0 1.364 1.136 2.5 2.5 2.5h6c1.364 0 2.5-1.136 2.5-2.5v-6c0-1.364-1.136-2.5-2.5-2.5h-6zm.5 3h5v5H8v-5zm12.5 1a1.5 1.5 0 1 0 0 3h21a1.5 1.5 0 1 0 0-3h-21zM7.5 32A2.522 2.522 0 0 0 5 34.5v6C5 41.864 6.136 43 7.5 43h6c1.364 0 2.5-1.136 2.5-2.5v-6c0-1.364-1.136-2.5-2.5-2.5h-6zm.5 3h5v5H8v-5zm12.5 1a1.5 1.5 0 1 0 0 3h21a1.5 1.5 0 1 0 0-3h-21z"/></svg>'},ef={name:"location",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M24 4C14.63 4 7 11.63 7 21c0 4.207 1.543 8.065 4.078 11.031l.008.008.006.008s7.232 8.252 9.806 10.709c1.725 1.644 4.477 1.644 6.202 0 2.934-2.8 9.81-10.713 9.81-10.713l.004-.006.006-.006A16.933 16.933 0 0 0 41 21c0-9.37-7.63-17-17-17zm0 3c7.75 0 14 6.25 14 14 0 3.475-1.266 6.633-3.361 9.082-.014.016-7.049 8.062-9.61 10.504a1.462 1.462 0 0 1-2.06 0c-2.14-2.042-9.588-10.48-9.61-10.504l-.002-.002A13.91 13.91 0 0 1 10 21c0-7.75 6.25-14 14-14zm0 8c-1.875 0-3.471.757-4.496 1.91C18.479 18.063 18 19.542 18 21c0 1.458.479 2.937 1.504 4.09S22.125 27 24 27c1.875 0 3.471-.757 4.496-1.91C29.521 23.937 30 22.458 30 21c0-1.458-.479-2.937-1.504-4.09S25.875 15 24 15zm0 3c1.125 0 1.779.368 2.254.902.475.535.746 1.306.746 2.098 0 .792-.271 1.563-.746 2.098-.475.534-1.129.902-2.254.902s-1.779-.368-2.254-.902C21.271 22.563 21 21.792 21 21c0-.792.271-1.563.746-2.098C22.221 18.368 22.875 18 24 18z"/></svg>'};var tf={name:"mail",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M10.5 8C6.928 8 4 10.928 4 14.5v19c0 3.572 2.928 6.5 6.5 6.5h27c3.572 0 6.5-2.928 6.5-6.5v-19c0-3.572-2.928-6.5-6.5-6.5h-27zm0 3h27c1.95 0 3.5 1.55 3.5 3.5v1.105l-17 9.19-17-9.19V14.5c0-1.95 1.55-3.5 3.5-3.5zM7 19.016l16.287 8.804a1.5 1.5 0 0 0 1.426 0L41 19.016V33.5c0 1.95-1.55 3.5-3.5 3.5h-27C8.55 37 7 35.45 7 33.5V19.016z"/></svg>'};var nf={name:"news",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M7.5 6C5.032 6 3 8.032 3 10.5v25C3 39.072 5.928 42 9.5 42h29c3.572 0 6.5-2.928 6.5-6.5v-15c0-2.468-2.032-4.5-4.5-4.5H39v-5.5C39 8.032 36.968 6 34.5 6h-27zm0 3h27c.846 0 1.5.654 1.5 1.5v6.754a1.5 1.5 0 0 0 0 .486V34.5a1.5 1.5 0 1 0 3 0V19h1.5c.846 0 1.5.654 1.5 1.5v15c0 1.95-1.55 3.5-3.5 3.5h-29C7.55 39 6 37.45 6 35.5v-25C6 9.654 6.654 9 7.5 9zm3 6a1.5 1.5 0 1 0 0 3h21a1.5 1.5 0 1 0 0-3h-21zm0 8A1.5 1.5 0 0 0 9 24.5v7a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5v-7a1.5 1.5 0 0 0-1.5-1.5h-7zm13 0a1.5 1.5 0 1 0 0 3h8a1.5 1.5 0 1 0 0-3h-8zM12 26h4v4h-4v-4zm11.5 4a1.5 1.5 0 1 0 0 3h8a1.5 1.5 0 1 0 0-3h-8z"/></svg>'};var rf={name:"single_line_text_input",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M8.5 11C5.48 11 3 13.48 3 16.5v15C3 34.52 5.48 37 8.5 37h31c3.02 0 5.5-2.48 5.5-5.5v-15c0-3.02-2.48-5.5-5.5-5.5h-31zm0 3h31c1.398 0 2.5 1.102 2.5 2.5v15c0 1.398-1.102 2.5-2.5 2.5h-31A2.478 2.478 0 0 1 6 31.5v-15C6 15.102 7.102 14 8.5 14zm1.977 2.979A1.5 1.5 0 0 0 9 18.5v11a1.5 1.5 0 1 0 3 0v-11a1.5 1.5 0 0 0-1.523-1.521z"/></svg>'};var of={name:"source_code",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M28.484 7.98a1.5 1.5 0 0 0-1.416 1.075l-9 29a1.5 1.5 0 1 0 2.864.89l9-29a1.5 1.5 0 0 0-1.448-1.965zM13.51 12.984a1.5 1.5 0 0 0-1.043.428l-10 9.5a1.5 1.5 0 0 0 0 2.176l10 9.5a1.5 1.5 0 1 0 2.066-2.176L5.678 24l8.855-8.412a1.5 1.5 0 0 0-1.023-2.604zm20.935.002a1.5 1.5 0 0 0-.978 2.602L42.322 24l-8.855 8.412a1.5 1.5 0 1 0 2.066 2.176l10-9.5a1.5 1.5 0 0 0 0-2.176l-10-9.5a1.5 1.5 0 0 0-1.088-.426z"/></svg>'};var sf={name:"twitter",data:'<svg viewBox="0 0 24 24" class="r-4qtqp9 r-yyyyoo r-dnmrzs r-bnwqim r-1plcrui r-lrvibr r-18jsvk2 r-rxcuwo r-1777fci r-m327ed r-494qqr"><g><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path></g></svg>'};var af={name:"video_call",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M10.5 9C6.928 9 4 11.928 4 15.5v17c0 3.572 2.928 6.5 6.5 6.5h17c3.572 0 6.5-2.928 6.5-6.5v-1.35l7.729 4.637A1.5 1.5 0 0 0 44 34.5v-21a1.5 1.5 0 0 0-1.545-1.5 1.5 1.5 0 0 0-.726.213L34 16.85V15.5c0-3.572-2.928-6.5-6.5-6.5h-17zm0 3h17c1.95 0 3.5 1.55 3.5 3.5v17c0 1.95-1.55 3.5-3.5 3.5h-17C8.55 36 7 34.45 7 32.5v-17c0-1.95 1.55-3.5 3.5-3.5zM41 16.15v15.7l-7-4.2v-7.3l7-4.2z"/></svg>'},lf={name:"video",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="#191919"><path d="M8.5 7C5.48 7 3 9.48 3 12.5v23C3 38.52 5.48 41 8.5 41h31c3.02 0 5.5-2.48 5.5-5.5v-23C45 9.48 42.52 7 39.5 7h-31zm0 3h31c1.398 0 2.5 1.102 2.5 2.5v23c0 1.398-1.102 2.5-2.5 2.5h-31A2.478 2.478 0 0 1 6 35.5v-23
40C6 11.102 7.102 10 8.5 10zm0 2a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm6 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm6 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm6 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm6 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm6 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm-17.762 6A1.749 1.749 0 0 0 19 19.75v8.5a1.749 1.749 0 0 0 2.611 1.521l7.5-4.25a1.748 1.748 0 0 0 0-3.042l-7.5-4.25a1.744 1.744 0 0 0-.873-.229zM8.5 33a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm6 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm6 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm6 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm6 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1zm6 0a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1h-1z"/></svg>'};var G1=["*"],eo=(()=>{class t{set name(e){this.svgIcon&&this.element.nativeElement.removeChild(this.svgIcon);let i=this.iconRegistry.getIcon(e);i&&(this.svgIcon=this.svgElementFromString(i),this.element.nativeElement.appendChild(this.svgIcon))}constructor(e,i,r){this.element=e,this.iconRegistry=i,this.document=r}svgElementFromString(e){let i=this.document.createElement("DIV");return i.innerHTML=e,i.querySelector("svg")||this.document.createElementNS("http://www.w3.org/2000/svg","path")}static{this.\u0275fac=function(i){return new(i||t)($(Jt),$(Qr),$(gt,8))}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-icon"]],inputs:{name:"name"},ngContentSelectors:G1,decls:1,vars:0,template:function(i,r){i&1&&(dr(),ur(0))},styles:["[_nghost-%COMP%]{display:inline-block}[_nghost-%COMP%]  svg{width:100%;height:100%}"],changeDetection:0})}}return t})();var qi=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Mt({type:t})}static{this.\u0275inj=Dt({imports:[Ce]})}}return t})();var q1=["container"];function Y1(t,n){}function K1(t,n){}var X1=["*"];function J1(t,n){if(t&1&&ge(0,"formly-field",0),t&2){let e=n.$implicit;W("field",e)}}var cf=["fieldComponent"];function Z1(t,n){let e=t._updateTreeValidity.bind(t);t._updateTreeValidity=()=>{},n(),t._updateTreeValidity=e}function Q1(t,n,e){if(n.id)return n.id;let i=n.type;return!i&&n.template&&(i="template"),i instanceof Pn&&(i=i.prototype.constructor.name),[t,i,n.key,e].join("_")}function mt(t){return!Vn(t.key)&&t.key!==""&&(!Array.isArray(t.key)||t.key.length>0)}function yr(t){if(!mt(t))return[];if(t._keyPath?.key!==t.key){let n=[];if(typeof t.key=="string"){let e=t.key.indexOf("[")===-1?t.key:t.key.replace(/\[(\w+)\]/g,".$1");n=e.indexOf(".")!==-1?e.split("."):[e]}else Array.isArray(t.key)?n=t.key.slice(0):n=[`${t.key}`];Lt(t,"_keyPath",{key:t.key,path:n})}return t._keyPath.path.slice(0)}var Lc=["required","pattern","minLength","maxLength","min","max"];function Xo(t,n){let e=yr(t);if(e.length===0)return;let i=t;for(;i.parent;)i=i.parent,e=[...yr(i),...e];if(n===void 0&&t.resetOnHide){let r=e.pop(),o=e.reduce((s,a)=>s[a]||{},i.model);delete o[r];return}ev(i.model,e,n)}function ev(t,n,e){for(let i=0;i<n.length-1;i++){let r=n[i];(!t[r]||!Ri(t[r]))&&(t[r]=/^\d+$/.test(n[i+1])?[]:{}),t=t[r]}t[n[n.length-1]]=Yi(e)}function Cr(t){let n=t.parent?t.parent.model:t.model;for(let e of yr(t)){if(!n)return n;n=n[e]}return n}function to(t,...n){return n.forEach(e=>{for(let i in e)Vn(t[i])||tv(t[i])?t[i]=Yi(e[i]):iv(t[i],e[i])&&to(t[i],e[i])}),t}function Vn(t){return t==null}function va(t){return t===void 0}function tv(t){return t===""}function Dc(t){return typeof t=="function"}function iv(t,n){return Ri(t)&&Ri(n)&&Object.getPrototypeOf(t)===Object.getPrototypeOf(n)&&!(Array.isArray(t)||Array.isArray(n))}function Ri(t){return t!=null&&typeof t=="object"}function hf(t){return!!t&&typeof t.then=="function"}function Yi(t){if(!Ri(t)||xn(t)||hf(t)||t instanceof Ti||t.changingThisBreaksApplicationSecurity||["RegExp","FileList","File","Blob"].indexOf(t.constructor?.name)!==-1)return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t instanceof Uint8Array)return new Uint8Array(t);if(t instanceof Uint16Array)return new Uint16Array(t);if(t instanceof Uint32Array)return new Uint32Array(t);if(t._isAMomentObject&&Dc(t.clone))return t.clone();if(t instanceof sp)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(i=>
40Yi(i));let n=Object.getPrototypeOf(t),e=Object.create(n);return e=Object.setPrototypeOf(e,n),Object.keys(t).reduce((i,r)=>{let o=Object.getOwnPropertyDescriptor(t,r);return o.get?Object.defineProperty(i,r,o):i[r]=Yi(t[r]),i},e)}function Lt(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0}),t[n]=e}function Nc(t,n,e){let i=[],r=()=>{i.forEach(s=>s()),i=[]},o=Ot(t,n,({firstChange:s,currentValue:a})=>{!s&&e(),r(),Ri(a)&&a.constructor.name==="Object"&&Object.keys(a).forEach(l=>{i.push(Nc(t,[...n,l],e))})});return()=>{o.unsubscribe(),r()}}function Ot(t,n,e){t._observers||Lt(t,"_observers",{});let i=t;for(let a=0;a<n.length-1;a++)(!i[n[a]]||!Ri(i[n[a]]))&&(i[n[a]]=/^\d+$/.test(n[a+1])?[]:{}),i=i[n[a]];let r=n[n.length-1],o=n.join(".");t._observers[o]||(t._observers[o]={value:i[r],onChange:[]});let s=t._observers[o];if(i[r]!==s.value&&(s.value=i[r]),e&&s.onChange.indexOf(e)===-1&&(s.onChange.push(e),e({currentValue:s.value,firstChange:!0}),s.onChange.length>=1&&Ri(i))){let{enumerable:a}=Object.getOwnPropertyDescriptor(i,r)||{enumerable:!0};Object.defineProperty(i,r,{enumerable:a,configurable:!0,get:()=>s.value,set:l=>{if(l!==s.value){let c=s.value;s.value=l,s.onChange.forEach(p=>p({previousValue:c,currentValue:l,firstChange:!1}))}}})}return{setValue(a,l=!0){if(a===s.value)return;let c=s.value;s.value=a,s.onChange.forEach(p=>{p!==e&&l&&p({previousValue:c,currentValue:a,firstChange:!1})})},unsubscribe(){s.onChange=s.onChange.filter(a=>a!==e),s.onChange.length===0&&delete t._observers[o]}}}function ff(t,n){if(n=Array.isArray(n)?n.join("."):n,!!t.fieldGroup)for(let e=0,i=t.fieldGroup.length;e<i;e++){let r=t.fieldGroup[e],o=Array.isArray(r.key)?r.key.join("."):r.key;if(o===n)return r;if(r.fieldGroup&&(Vn(o)||n.indexOf(`${o}.`)===0)){let s=ff(r,Vn(o)?n:n.slice(o.length+1));if(s)return s}}}function Mc(t){t._componentRefs?.forEach(n=>{n instanceof wo?n.injector.get(ct).markForCheck():n.markForCheck()})}function nv(t){return t instanceof Tu}function mf(t){let n=i=>i.hide||i.expressions?.hide||i.hideExpression,e=!t.resetOnHide||!n(t);if(!n(t)&&t.resetOnHide){let i=t.parent;for(;i&&!n(i);)i=i.parent;e=!i||!n(i)}return!e}function ba(){return+Rs.major>18||+Rs.major>=18&&+Rs.minor>=1}function rv(t,n){try{return Function(...n,`return ${t};`)}catch(e){console.error(e)}}function ov(t,n,e){return typeof t=="function"?t.apply(n,e):!!t}function sv(t,n=!1){let e=t.formControl,i=e._fields?e._fields.indexOf(t):-1;i!==-1&&e._fields.splice(i,1);let r=e.parent;if(!r)return;let o={emitEvent:n};if(r instanceof Ws){let s=r.controls.findIndex(a=>a===e);s!==-1&&r.removeAt(s,o)}else if(r instanceof Ur){let s=yr(t),a=s[s.length-1];r.get([a])===e&&r.removeControl(a,o)}e.setParent(null)}function av(t){return t.formControl?t.formControl:t.shareFormControl===!1?null:t.form?.get(yr(t))}function gf(t,n,e=!1){if(n=n||t.formControl,n._fields||Lt(n,"_fields",[]),n._fields.indexOf(t)===-1&&n._fields.push(t),!t.formControl&&n){Lt(t,"formControl",n),n.setValidators(null),n.setAsyncValidators(null),t.props.disabled=!!t.props.disabled;let a=Ot(t,["props","disabled"],({firstChange:l,currentValue:c})=>{l||(c?t.formControl.disable():t.formControl.enable())});n instanceof Gr&&n.registerOnDisabledChange(a.setValue)}if(!t.form||!mt(t))return;let i=t.form,r=yr(t),o=Cr(t);!(Vn(n.value)&&Vn(o))&&n.value!==o&&n instanceof Gr&&n.patchValue(o);for(let a=0;a<r.length-1;a++){let l=r[a];i.get([l])||i.setControl(l,new Ur({}),{emitEvent:e}),i=i.get([l])}let s=r[r.length-1];!t._hide&&i.get([s])!==n&&i.setControl(s,n,{emitEvent:e})}function Jo(t,n=!1){let e=t.status,i=t.value;t.updateValueAndValidity({emitEvent:!1,onlySelf:n}),e!==t.status&&t.statusChanges.emit(t.status),i!==t.value&&t.valueChanges.emit(t.value)}function vf(t){delete t?._fields,t.setValidators(null),t.setAsyncValidators(null),(t instanceof Ur||t instanceof Ws)&&Object.values(t.controls).forEach(n=>vf(n))}var lv=class{onPopulate(n){if(n._expressions)return;Lt(n,"_expressions",{}),Ot(n,["hide"],({currentValue:i,firstChange:r})=>{Lt(n,"_hide",!!i),(!r||r&&i===!0)&&(n.props.hidden=i,n.options._hiddenFieldsForCheck.push({f
40ield:n}))}),n.hideExpression&&Ot(n,["hideExpression"],({currentValue:i})=>{n._expressions.hide=this.parseExpressions(n,"hide",typeof i=="boolean"?()=>i:i)});let e=(i,r)=>{typeof r=="string"||Dc(r)?n._expressions[i]=this.parseExpressions(n,i,r):r instanceof Wt&&(n._expressions[i]={value$:r.pipe(Fe(o=>{this.evalExpr(n,i,o),n.options._detectChanges(n)}))})};n.expressions=n.expressions||{};for(let i of Object.keys(n.expressions))Ot(n,["expressions",i],({currentValue:r})=>{e(i,Dc(r)?(...o)=>r(n,o[3]):r)});n.expressionProperties=n.expressionProperties||{};for(let i of Object.keys(n.expressionProperties))Ot(n,["expressionProperties",i],({currentValue:r})=>e(i,r))}postPopulate(n){if(!n.parent&&!n.options.checkExpressions){let e=!1;n.options.checkExpressions=(i,r)=>{if(e)return;e=!0;let o=this.checkExpressions(i,r),s=n.options;s._hiddenFieldsForCheck.sort(a=>a.field.hide?-1:1).forEach(a=>this.changeHideState(a.field,a.field.hide??a.default,!r)),s._hiddenFieldsForCheck=[],o&&this.checkExpressions(n),e=!1}}}parseExpressions(n,e,i){let r;if(n.parent&&["hide","props.disabled"].includes(e)){let s=a=>e==="hide"?a.hide:a.props.disabled;r=()=>{let a=n.parent;for(;a.parent&&!s(a);)a=a.parent;return s(a)}}i=i||(()=>!1),typeof i=="string"&&(i=this._evalStringExpression(i,["model","formState","field"]));let o;return{callback:s=>{try{let a=ov(r?(...l)=>r(n)||i(...l):i,{field:n},[n.model,n.options.formState,n,s]);return s||o!==a&&(!Ri(a)||xn(a)||JSON.stringify(a)!==JSON.stringify(o))?(o=a,this.evalExpr(n,e,a),!0):!1}catch(a){throw a.message=`[Formly Error] [Expression "${e}"] ${a.message}`,a}}}}_evalStringExpression(n,e){return rv(n,e)}checkExpressions(n,e=!1){if(!n)return!1;let i=!1;if(n._expressions)for(let r of Object.keys(n._expressions))n._expressions[r].callback?.(e)&&(i=!0);return n.fieldGroup?.forEach(r=>this.checkExpressions(r,e)&&(i=!0)),i}changeDisabledState(n,e){n.fieldGroup&&n.fieldGroup.filter(i=>!i._expressions.hasOwnProperty("props.disabled")).forEach(i=>this.changeDisabledState(i,e)),mt(n)&&n.props.disabled!==e&&(n.props.disabled=e)}changeHideState(n,e,i){if(n.fieldGroup&&n.fieldGroup.filter(r=>r&&!r._expressions.hide).forEach(r=>this.changeHideState(r,e,i)),n.formControl&&mt(n)){Lt(n,"_hide",!!(e||n.hide));let r=n.formControl;r._fields?.length>1&&Jo(r),e===!0&&(!r._fields||r._fields.every(o=>!!o._hide))?(sv(n,!0),i&&n.resetOnHide&&(Xo(n,void 0),n.formControl.reset({value:void 0,disabled:n.formControl.disabled}),n.options.fieldChanges.next({value:void 0,field:n,type:"valueChanges"}),n.fieldGroup&&n.formControl instanceof Ws&&(n.fieldGroup.length=0))):e===!1&&(n.resetOnHide&&!va(n.defaultValue)&&va(Cr(n))&&Xo(n,n.defaultValue),gf(n,void 0,!0),n.resetOnHide&&n.fieldArray&&n.fieldGroup?.length!==n.model?.length&&n.options.build(n))}n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"hidden",value:e})}evalExpr(n,e,i){if(e.indexOf("model.")===0){let r=e.replace(/^model\./,""),o=n.fieldGroup?n:n.parent,s=n?.key===r?n.formControl:n.form.get(r);!s&&n.get(r)&&(s=n.get(r).formControl),Xo({key:r,parent:o,model:n.model},i),s&&!(Vn(s.value)&&Vn(i))&&s.value!==i&&s.patchValue(i)}else{try{let r=n,o=this._evalExpressionPath(n,e),s=o.length-1;for(let a=0;a<s;a++)r=r[o[a]];r[o[s]]=i}catch(r){throw r.message=`[Formly Error] [Expression "${e}"] ${r.message}`,r}["templateOptions.disabled","props.disabled"].includes(e)&&mt(n)&&this.changeDisabledState(n,i)}this.emitExpressionChanges(n,e,i)}emitExpressionChanges(n,e,i){n.options.fieldChanges&&n.options.fieldChanges.next({field:n,type:"expressionChanges",property:e,value:i})}_evalExpressionPath(n,e){if(n._expressions[e]&&n._expressions[e].paths)return n._expressions[e].paths;let i=[];return e.indexOf("[")===-1?i=e.split("."):e.split(/[[\]]{1,2}/).filter(r=>r).forEach(r=>{let o=r.match(/['|"](.*?)['|"]/);o?i.push(o[1]):i.push(...r.split(".").filter(s=>s))}),n._expressions[e]&&(n._expressions[e].paths=i),i}};var Ac=class{constructor(n){this.config=n,this.formId=0}prePopulate(n){let e=n.parent;this.initRootOptions(n),this.initFieldProps(n),e&&(Object.defineProperty(n,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(n,"model",{get:()=>mt(n)&&n.fieldGroup?Cr(n):e.model,configurable:!0})),Object.defineProperty(n,"get",{value:i=>ff(n,i),configurable:!0}),this.getFieldComponentInstance(n).prePopulate?.(n)}onPopulate(n){this.initFieldOptions(n),this.getFieldComponentInstance(n).onPopulate?.(n),n.fieldGroup&&n.fieldGroup.forEach((e,i)=>{e&&(Object.defineProperty(e,"parent",{get:()=>n,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0})),this.formId++})}postPopulate(n){this.getFieldComponentInstance(n).postPopulate?.(n)}initFieldProps(n){n.props??=n.templateOptions,Object.defineProperty(n,"templateOptions",{get:()=>n.props,set:e=>n.props=e,configurable:!0})}initRootOptions(n){if(n.parent)return;let e=n.options;n.options.formState=n.options.formState||{},e.showError||(e.showError=this.config.extras.showError),e.fieldChanges||Lt(e,"fieldChanges",new Ve),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._detectChanges=i=>{i._componentRefs&&Mc(i),i.fieldGroup?.forEach(r=>r&&e._detectChanges(r))},e.detectChanges=i=>{i.options.checkExpressions?.(i),e._detectChanges(i)},e.resetModel=i=>{i=Yi(i??e._initialModel),n.model&&(Object.keys(n.model).forEach(r=>delete n.model[r]),Object.assign(n.model,i||{})),ba()||Ot(e,["parentForm","submitted"]).setValue(!1,!1),e.build(n),n.form.reset(n.model)},e.updateInitialValue=i=>e._initialModel=Yi(i??n.model),n.options.updateInitialValue()}initFieldOptions(n){to(n,{id:Q1(`formly_${this.formId}`,n,n.index),hooks:{},modelOptions:{},validation:{messages:{}},props:!n.type||!mt(n)?{}:{label:"",placeholder:"",disabled:!1}}),this.config.extras.resetFieldOnHide&&n.resetOnHide!==!1&&(n.resetOnHide=!0),n.type!=="formly-template"&&(n.template||n.expressions?.template||n.expressionProperties?.template)&&(n.type="formly-template"),!n.type&&n.fieldGroup&&(n.type="formly-group"),n.type&&this.config.getMergedField(n),mt(n)&&!va(n.defaultValue)&&va(Cr(n))&&!mf(n)&&Xo(n,n.defaultValue),n.wrappers=n.wrappers||[]}getFieldComponentInstance(n){let e=()=>{let i=this.config.resolveFieldTypeRef(n),r=n._componentRefs?.slice(-1)[0];return r instanceof wo&&r?.componentType===i?.componentType&&(i=r),i?.instance};return n._proxyInstance||Lt(n,"_proxyInstance",new Proxy({},{get:(i,r)=>e()?.[r],set:(i,r,o)=>e()[r]=o})),n._proxyInstance}},Rc=class{prePopulate(n){this.root||(this.root=n),n.parent&&Object.defineProperty(n,"form",{get:()=>n.parent.formControl,configurable:!0})}onPopulate(n){n.hasOwnProperty("fieldGroup")&&!mt(n)?Lt(n,"formControl",n.form):this.addFormControl(n)}postPopulate(n){if(this.root!==n)return;if(this.root=null,this.setValidators(n)&&n.parent){let i=n.parent;for(;i;)(mt(i)||!i.parent)&&Jo(i.formControl,!0),i=i.parent}}addFormControl(n){let e=av(n);if(!n.fieldArray){if(e){if(e instanceof Gr){let i=mt(n)?Cr(n):n.defaultValue;e.defaultValue=i}}else{let i={updateOn:n.modelOptions.updateOn};if(n.fieldGroup)e=new Ur({},i);else{let r=mt(n)?Cr(n):n.defaultValue;e=new lp({value:r,disabled:!!n.props.disabled},U(T({},i),{initialValueIsDefault:!0}))}}gf(n,e)}}setValidators(n,e=!1){e===!1&&mt(n)&&n.props?.disabled&&(e=!0);let i=!1;if(n.fieldGroup?.forEach(r=>r&&this.setValidators(r,e)&&(i=!0)),mt(n)||!n.parent||!mt(n)&&!n.fieldGroup){let{formControl:r}=n;if(r&&(mt(n)&&r instanceof Gr&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),i=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),i=!0)),r.validator===null&&this.hasValidators(n,"_validators")&&(r.setValidators(()=>{let o=ji.compose(this.mergeValidators(n,"_validators"));return o?o(r):null}),i=!0),r.asyncValidator===null&&this.hasValidators(n,"_asyncValidators")&&(r.setAsyncValidators(()=>{let o=ji.composeAsync(this.mergeValidators(n,"_asyncValidators"));return o?o(r):xe(null)}),i=!0),i)){Jo(r,!0);let o=r.parent;for(let s=1;s<yr(n).length;s++)o&&(Jo(o,!0),o=o.parent)}}return i}hasValidators(n,e){let i=n.formControl;return i?._fields?.length>1&&i._fields.some(r=>r[e].length>0)||n[e].length>0?!0:n.fieldGroup?.some(r=>r?.fieldGroup&&!mt(r)&&this.hasValidators(r,e))}
40mergeValidators(n,e){let i=[],r=n.formControl;return r?._fields?.length>1?r._fields.filter(o=>!o._hide).forEach(o=>i.push(...o[e])):n[e]&&i.push(...n[e]),n.fieldGroup&&n.fieldGroup.filter(o=>o?.fieldGroup&&!mt(o)).forEach(o=>i.push(...this.mergeValidators(o,e))),i}},Oc=class{constructor(n){this.config=n}onPopulate(n){this.initFieldValidation(n,"validators"),this.initFieldValidation(n,"asyncValidators")}initFieldValidation(n,e){let i=[];if(e==="validators"&&!(n.hasOwnProperty("fieldGroup")&&!mt(n))&&i.push(this.getPredefinedFieldValidation(n)),n[e])for(let r of Object.keys(n[e]))r==="validation"?i.push(...n[e].validation.map(o=>this.wrapNgValidatorFn(n,o))):i.push(this.wrapNgValidatorFn(n,n[e][r],r));Lt(n,"_"+e,i)}getPredefinedFieldValidation(n){let e=[];return Lc.forEach(i=>Ot(n,["props",i],({currentValue:r,firstChange:o})=>{e=e.filter(s=>s!==i),i==="required"&&r!=null&&typeof r!="boolean"&&console.warn(`Formly: Invalid prop 'required' of type '${typeof r}', expected 'boolean' (Field:${n.key}).`),r!=null&&r!==!1&&e.push(i),!o&&n.formControl&&Jo(n.formControl)})),i=>e.length===0?null:ji.compose(e.map(r=>()=>{let o=n.props[r];switch(r){case"required":return ji.required(i);case"pattern":return ji.pattern(o)(i);case"minLength":let s=ji.minLength(o)(i),a=this.config.getValidatorMessage("minlength")||n.validation?.messages?.minlength?"minlength":"minLength";return s?{[a]:s.minlength}:null;case"maxLength":let l=ji.maxLength(o)(i),c=this.config.getValidatorMessage("maxlength")||n.validation?.messages?.maxlength?"maxlength":"maxLength";return l?{[c]:l.maxlength}:null;case"min":return ji.min(o)(i);case"max":return ji.max(o)(i);default:return null}}))(i)}wrapNgValidatorFn(n,e,i){let r;if(typeof e=="string"&&(r=Yi(this.config.getValidator(e))),typeof e=="object"&&e.name&&(r=Yi(this.config.getValidator(e.name)),e.options&&(r.options=e.options)),typeof e=="object"&&e.expression){let o=e,{expression:s}=o,a=Gt(o,["expression"]);r={name:i,validation:s,options:Object.keys(a).length>0?a:null}}return typeof e=="function"&&(r={name:i,validation:e}),s=>{let a=r.validation(s,n,r.options);return hf(a)?a.then(l=>this.handleResult(n,i?!!l:l,r)):xn(a)?a.pipe(Pe(l=>this.handleResult(n,i?!!l:l,r))):this.handleResult(n,i?!!a:a,r)}}handleResult(n,e,{name:i,options:r}){typeof e=="boolean"&&(e=e?null:{[i]:r||!0});let o=n.formControl;return o?._childrenErrors?.[i]?.(),Ri(e)&&Object.keys(e).forEach(s=>{let a=e[s].errorPath?e[s].errorPath:r?.errorPath,l=a?n.formControl.get(a):null;if(l){let c=e[s],{errorPath:p}=c,h=Gt(c,["errorPath"]);l.setErrors(U(T({},l.errors||{}),{[s]:h})),!o._childrenErrors&&Lt(o,"_childrenErrors",{}),o._childrenErrors[s]=()=>{let u=l.errors||{},{[s]:f}=u,d=Gt(u,[vu(s)]);l.setErrors(Object.keys(d).length===0?null:d)}}}),e}},vn=(()=>{class t{constructor(){this.field={}}set _formlyControls(e){let i=this.field;i._localFields=e.map(r=>r.control._fields||[]).flat().filter(r=>r.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=_t({type:t,viewQuery:function(i,r){if(i&1&&ft(op,5),i&2){let o;Ge(o=We())&&(r._formlyControls=o)}},inputs:{field:"field"},standalone:!1})}}return t})(),cv=(()=>{class t extends vn{get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}constructor(e){super(),this.sanitizer=e,this.innerHtml={}}static{this.\u0275fac=function(i){return new(i||t)($(kn))}}static{this.\u0275cmp=ie({type:t,selectors:[["formly-template"]],standalone:!1,features:[tt],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(i,r){i&1&&ge(0,"div",0),i&2&&W("innerHtml",r.template,ci)},encapsulation:2,changeDetection:0})}}return t})(),br=(()=>{class t{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError(e){return e.formControl?.invali
40d&&(e.formControl?.touched||e.options.parentForm?.submitted||!!e.field.validation?.show)}},this.extensions={},this.presets={},this.extensionsByPriority={},this.componentRefs={}}addConfig(e){if(Array.isArray(e)){e.forEach(i=>this.addConfig(i));return}e.types&&e.types.forEach(i=>this.setType(i)),e.validators&&e.validators.forEach(i=>this.setValidator(i)),e.wrappers&&e.wrappers.forEach(i=>this.setWrapper(i)),e.validationMessages&&e.validationMessages.forEach(i=>this.addValidatorMessage(i.name,i.message)),e.extensions&&this.setSortedExtensions(e.extensions),e.extras&&(this.extras=T(T({},this.extras),e.extras)),e.presets&&(this.presets=T(T({},this.presets),e.presets.reduce((i,r)=>U(T({},i),{[r.name]:r.config}),{})))}setType(e){Array.isArray(e)?e.forEach(i=>this.setType(i)):(this.types[e.name]||(this.types[e.name]={name:e.name}),["component","extends","defaultOptions","wrappers"].forEach(i=>{e.hasOwnProperty(i)&&(this.types[e.name][i]=e[i])}))}getType(e,i=!1){if(e instanceof Pn)return{component:e,name:e.prototype.constructor.name};if(!this.types[e]){if(i)throw new Error(`[Formly Error] The type "${e}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(e),this.types[e]}getMergedField(e={}){let i=this.getType(e.type);if(!i)return;i.defaultOptions&&to(e,i.defaultOptions);let r=i.extends&&this.getType(i.extends).defaultOptions;r&&to(e,r),e?.optionsTypes&&e.optionsTypes.forEach(s=>{let a=this.getType(s).defaultOptions;a&&to(e,a)});let o=this.resolveFieldTypeRef(e);o?.instance?.defaultOptions&&to(e,o.instance.defaultOptions),!e.wrappers&&i.wrappers&&(e.wrappers=[...i.wrappers])}resolveFieldTypeRef(e={}){let i=this.getType(e.type);if(!i||!i.component)return null;if(!this.componentRefs[i.name]){let{_viewContainerRef:r,_injector:o}=e.options;if(!r||!o)return null;let s=r.createComponent(i.component,{injector:o});this.componentRefs[i.name]=s;try{s.destroy()}catch(a){console.error(`An error occurred while destroying the Formly component type "${e.type}"`,a)}}return this.componentRefs[i.name]}clearRefs(){this.componentRefs={}}setWrapper(e){this.wrappers[e.name]=e,e.types&&e.types.forEach(i=>{this.setTypeWrapper(i,e.name)})}getWrapper(e){if(e instanceof Pn)return{component:e,name:e.prototype.constructor.name};if(!this.wrappers[e])throw new Error(`[Formly Error] The wrapper "${e}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[e]}setTypeWrapper(e,i){this.types[e]||(this.types[e]={}),this.types[e].wrappers||(this.types[e].wrappers=[]),this.types[e].wrappers.indexOf(i)===-1&&this.types[e].wrappers.push(i)}setValidator(e){this.validators[e.name]=e}getValidator(e){if(!this.validators[e])throw new Error(`[Formly Error] The validator "${e}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[e]}addValidatorMessage(e,i){this.messages[e]=i}getValidatorMessage(e){return this.messages[e]}setSortedExtensions(e){e.forEach(i=>{let r=i.priority??1;this.extensionsByPriority[r]=U(T({},this.extensionsByPriority[r]),{[i.name]:i.extension})}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((i,r)=>i-r).reduce((i,r)=>T(T({},i),this.extensionsByPriority[r]),{})}mergeExtendedType(e){if(!this.types[e].extends)return;let i=this.getType(this.types[e].extends);this.types[e].component||(this.types[e].component=i.component),this.types[e].wrappers||(this.types[e].wrappers=i.wrappers)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),_f=(()=>{class t{constructor(e){this.ref=e}ngOnChanges(){this.name=this.name||"formly-group"}static{this.\u0275fac=function(i){return new(i||t)($(Ti))}}static{this.\u0275dir=_t({type:t,selectors:[["","formlyTemplate",""]],inputs:{name:[0,"formlyTemplate","name"]},features:[li]})}}return t})(),dv=(()=>{class t extends _f{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275dir=_t({type:t,selectors:[["","formlyTemplate",""]],standalone:!1,features:[tt]})}}return t})(),_a=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac})}}return t})(),bf=(()=>{class t{get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof wo?this.componentRefs[0].location:null}constructor(e,i,r,o,s){this.config=e,this.renderer=i,this._elementRef=r,this.hostContainerRef
40=o,this.form=s,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(e){this.triggerHook("onChanges",e)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(e=>e.unsubscribe()),this.hooksObservers.forEach(e=>e()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(e,i,r=[]){if(this.containerRef===e&&(this.resetRefs(this.field),this.containerRef.clear(),r=this.field?.wrappers),r?.length>0){let[o,...s]=r,{component:a}=this.config.getWrapper(o),l=e.createComponent(a);this.attachComponentRef(l,i),Ot(l.instance,["fieldComponent"],({currentValue:c,previousValue:p,firstChange:h})=>{if(c){if(p&&p._lContainer===c._lContainer)return;let f=p?p.detach():null;f&&!f.destroyed?c.insert(f):this.renderField(c,i,s),!h&&l.changeDetectorRef.detectChanges()}})}else if(i?.type){let o=this.form?.templates?.find(a=>a.name===i.type),s;if(o)s=e.createEmbeddedView(o.ref,{$implicit:i});else{let{component:a}=this.config.getType(i.type,!0);s=e.createComponent(a)}this.attachComponentRef(s,i)}}triggerHook(e,i){if((e==="onInit"||e==="onChanges"&&i.field&&!i.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[e]&&(!i||i.field)){let r=this.field.hooks[e](this.field);if(xn(r)&&["onInit","afterContentInit","afterViewInit"].indexOf(e)!==-1){let o=r.subscribe();this.hooksObservers.push(()=>o.unsubscribe())}}e==="onChanges"&&i.field&&(this.resetRefs(i.field.previousValue),this.render())}attachComponentRef(e,i){this.componentRefs.push(e),i._componentRefs.push(e),e instanceof wo&&Object.assign(e.instance,{field:i})}render(){if(this.field){if(!this.field.options){this.detectFieldBuild=!0;return}if(this.detectFieldBuild=!1,this.hostObservers.forEach(e=>e.unsubscribe()),this.hostObservers=[Ot(this.field,["hide"],({firstChange:e,currentValue:i})=>{let r=this.containerRef;this.config.extras.lazyRender===!1?(e&&this.renderField(r,this.field),(!e||e&&i)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",i?"none":"")):i?(r.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(r,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!e&&this.field.options.detectChanges(this.field)}),Ot(this.field,["className"],({firstChange:e,currentValue:i})=>{(!e||e&&i)&&(!this.config.extras.lazyRender||this.field.hide!==!0)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",i)})],!ba())["touched","pristine","status"].forEach(e=>this.hostObservers.push(Ot(this.field,["formControl",e],({firstChange:i})=>!i&&Mc(this.field))));else if(this.field.formControl){let e=this.field.formControl.events.subscribe(()=>Mc(this.field));this.hostObservers.push(e)}}}resetRefs(e){e&&(e._localFields?e._localFields=[]:Lt(this.field,"_localFields",[]),e._componentRefs?e._componentRefs=e._componentRefs.filter(i=>this.componentRefs.indexOf(i)===-1):Lt(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(e){if(!e)return()=>{};let i=Nc(e,["props"],()=>e.options.detectChanges(e)),r=[()=>{i()}];for(let s of Object.keys(e._expressions||{})){let a=Ot(e,["_expressions",s],({currentValue:l,previousValue:c})=>{c?.subscription&&(c.subscription.unsubscribe(),c.subscription=null),xn(l.value$)&&(l.subscription=l.value$.subscribe())});r.push(()=>{e._expressions[s]?.subscription&&e._expressions[s].subscription.unsubscribe(),a.unsubscribe()})}for(let s of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){let a=Ot(e,s,({firstChange:l})=>!l&&e.options.detectChanges(e));r.push(()=>a.unsubscribe())}if(e.formControl&&!e.fieldGroup){let s=e.formControl,a=s.valueChanges.pipe(Pe(h=>(e.parsers?.map(f=>h=f(h,e)),Object.is(h,e.formControl.value)||e.formControl.setValue(h),h)),Co((h,f)=>!(h!==f||Array.isArray(h)||Ri(h))));s.value!==Cr(e)&&(a=a.pipe(sr(s.value)));let{updateOn:l,debounce:c}=e.modelOptions;(!l||l==="change")&&c?.default>0&&(a=a.pipe(yo(c.default)));let p=a.subscribe(h=>{s._fields?.length>1&&s instanceof Gr&&s.patchValue(h,{emitEvent:!1,onlySelf:!0}
40),mt(e)&&Xo(e,h),e.options.fieldChanges.next({value:h,field:e,type:"valueChanges"})});r.push(()=>p.unsubscribe())}let o=[];return Ot(e,["_localFields"],({currentValue:s})=>{o.forEach(a=>a()),o=(s||[]).map(a=>this.fieldChanges(a))}),()=>{r.forEach(s=>s()),o.forEach(s=>s())}}static{this.\u0275fac=function(i){return new(i||t)($(br),$(Zt),$(Jt),$(Bt),$(_a,8))}}static{this.\u0275cmp=ie({type:t,selectors:[["formly-field"]],viewQuery:function(i,r){if(i&1&&ft(q1,7,Bt),i&2){let o;Ge(o=We())&&(r.viewContainerRef=o.first)}},inputs:{field:"field"},features:[li],decls:2,vars:0,consts:[["container",""]],template:function(i,r){i&1&&Du(0,Y1,0,0,"ng-template",null,0,pi)},styles:["[_nghost-%COMP%]:empty{display:none}"]})}}return t})(),ya=(()=>{class t extends bf{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275cmp=ie({type:t,selectors:[["formly-field"]],standalone:!1,features:[tt],decls:2,vars:0,consts:[["container",""]],template:function(i,r){i&1&&zt(0,K1,0,0,"ng-template",null,0,pi)},styles:["[_nghost-%COMP%]:empty{display:none}"]})}}return t})(),uv=(()=>{class t extends vn{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275cmp=ie({type:t,selectors:[["formly-group"]],hostVars:2,hostBindings:function(i,r){i&2&&rt(r.field.fieldGroupClassName||"")},standalone:!1,features:[tt],ngContentSelectors:X1,decls:3,vars:0,consts:[[3,"field"]],template:function(i,r){i&1&&(dr(),st(0,J1,1,1,"formly-field",0,Au),ur(2)),i&2&&at(r.field.fieldGroup)},dependencies:[ya],encapsulation:2,changeDetection:0})}}return t})(),Zo=new qe("FORMLY_CONFIG");function df(t){return{types:[{name:"formly-group",component:uv},{name:"formly-template",component:cv}],extensions:[{name:"core",extension:new Ac(t),priority:-250},{name:"field-validation",extension:new Oc(t),priority:-200},{name:"field-form",extension:new Rc,priority:-150},{name:"field-expression",extension:new lv,priority:-100}]}}var uf=(t=[])=>({provide:Zo,multi:!0,useFactory:()=>{let n=q(Zo,{skipSelf:!0,optional:!0});return n?(n.push(t),n):t}}),Qo=(()=>{class t{constructor(e,i,r,o,s=[]){this.config=e,this.injector=i,this.viewContainerRef=r,this.parentForm=o,s&&s.forEach(a=>e.addConfig(a))}buildForm(e,i=[],r,o){this.build({fieldGroup:i,model:r,form:e,options:o})}build(e){if(!this.config.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");e.parent||this._setOptions(e),Z1(e.form,()=>{if(this._build(e),!e.parent||e.fieldArray){let i=e.options;e.parent&&mf(e)&&i._hiddenFieldsForCheck?.push({field:e,default:!1}),i.checkExpressions?.(e,!0),i._detectChanges?.(e)}})}_build(e){if(!e)return;let i=Object.values(this.config.extensions);i.forEach(r=>r.prePopulate?.(e)),i.forEach(r=>r.onPopulate?.(e)),e.fieldGroup?.forEach(r=>this._build(r)),i.forEach(r=>r.postPopulate?.(e))}_setOptions(e){e.form=e.form||new Ur({}),e.model=e.model||{},e.options=e.options||{};let i=e.options;i._viewContainerRef||Lt(i,"_viewContainerRef",this.viewContainerRef),i._injector||Lt(i,"_injector",this.injector),i.build||(i.build=(r=e)=>(this.build(r),r)),!i.parentForm&&this.parentForm&&(Lt(i,"parentForm",this.parentForm),ba()||Ot(i,["parentForm","submitted"],({firstChange:r})=>{r||i.detectChanges(e)}))}static{this.\u0275fac=function(i){return new(i||t)(ye(br),ye(ht),ye(Bt,8),ye(Rn,8),ye(Zo,8))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pv=(()=>{class t{set form(e){this.field.form=e}get form(){return this.field.form}set model(e){this.config.extras.immutable&&this._modelChangeValue===e||this.setField({model:e})}get model(){return this.field.model}set fields(e){this.setField({fieldGroup:e})}get fields(){return this.field.fieldGroup}set options(e){this.setField({options:e})}get options(){return this.field.options}set templates(e){this.fieldTemplates.templates=e}constructor(e,i,r,o){this.builder=e,this.config=i,this.ngZone=r,this.fieldTemplates=o,this.modelChange=new j,this.field={type:"formly-group"},this._modelChangeValue={},this.valueChangesUnsubscribe=()=>{}}ngDoCheck(){this.config.extras.checkExpressionOn==="changeDetectionCheck"&&this.checkExpressionChange()}ngOnChanges(e){e.fields&&this.form&&vf(this.form),(e.fields||e.form||e.model&&this._modelChangeValue!==e.model.currentValue)&&(this.valueChangesUnsubscribe(),this.builder.build(this.field),this.valueChangesUnsubscribe=this.valueChanges())}ngOnDestroy(){this.valueChangesUnsubscribe(),this.config.clearRefs()}checkExpressionChange(){this.field.options.checkExpressions?.(this.field)}valueChanges(){this.valueChangesUnsubscribe();let e=null;if(ba()){let o=this.options?.parentForm?.submitted;e=this.form.events.subscribe(()=>{o!==this.options?.parentForm?.submitted&&(this.options.detectChanges(this.field),o=this.options?.parentForm?.submitted)})}let i=[Nc(this.field.options,["formState"],()=>this.field.options.detectChanges(this.field))],r=this.field.options.fieldChanges.pipe(Ne(({field:o,type:s})=>mt(o)&&s==="valueChanges"),Ae(()=>nv(this.ngZone)?xe(null):this.ngZone.onStable.asObservable().pipe(Se(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=Yi(this.model))}));return()=>
40{i.forEach(o=>o()),e?.unsubscribe(),r.unsubscribe()}}setField(e){this.config.extras.immutable?this.field=T(T({},this.field),Yi(e)):Object.keys(e).forEach(i=>this.field[i]=e[i])}static{this.\u0275fac=function(i){return new(i||t)($(Qo),$(br),$(vt),$(_a))}}static{this.\u0275cmp=ie({type:t,selectors:[["formly-form"]],contentQueries:function(i,r,o){if(i&1&&wl(o,_f,4),i&2){let s;Ge(s=We())&&(r.templates=s)}},inputs:{form:"form",model:"model",fields:"fields",options:"options"},outputs:{modelChange:"modelChange"},features:[bt([Qo,_a]),li],decls:1,vars:1,consts:[[3,"field"]],template:function(i,r){i&1&&ge(0,"formly-field",0),i&2&&W("field",r.field)},dependencies:[bf],encapsulation:2,changeDetection:0})}}return t})(),Bn=(()=>{class t extends pv{set templates(e){this.fieldTemplates.templates=e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275cmp=ie({type:t,selectors:[["formly-form"]],contentQueries:function(i,r,o){if(i&1&&wl(o,dv,4),i&2){let s;Ge(s=We())&&(r.templates=s)}},standalone:!1,features:[bt([Qo,_a]),tt],decls:1,vars:1,consts:[[3,"field"]],template:function(i,r){i&1&&ge(0,"formly-field",0),i&2&&W("field",r.field)},dependencies:[ya],encapsulation:2,changeDetection:0})}}return t})(),hv=(()=>{class t{get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}constructor(e,i,r){this.renderer=e,this.elementRef=i,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change","wheel"],callback:(o,s)=>{switch(o){case"focus":return this.onFocus(s);case"blur":return this.onBlur(s);case"change":return this.onChange(s);default:return this.props[o](this.field,s)}}},this.document=r}ngOnChanges(e){e.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(i=>i()),this.uiEvents.events.forEach(i=>{(this.props?.[i]||["focus","blur","change"].indexOf(i)!==-1)&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,i,r=>this.uiEvents.callback(i,r)))}),this.props?.attributes&&Ot(this.field,["props","attributes"],({currentValue:i,previousValue:r})=>{r&&Object.keys(r).forEach(o=>
40this.removeAttribute(o)),i&&Object.keys(i).forEach(o=>{i[o]!=null&&this.setAttribute(o,i[o])})}),this.detachElementRef(e.field.previousValue),this.attachElementRef(e.field.currentValue),this.fieldAttrElements.length===1&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=Ot(this.field,["focus"],({currentValue:i})=>{this.toggleFocus(i)}))),e.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){let e=this.elementRef.nativeElement;this.uiAttributes=[...Lc,"tabindex","placeholder","readonly","disabled","step"].filter(i=>!e.hasAttribute||!e.hasAttribute(i))}for(let e=0;e<this.uiAttributes.length;e++){let i=this.uiAttributes[e],r=this.props[i];this.uiAttributesCache[i]!==r&&(!this.props.attributes||!this.props.attributes.hasOwnProperty(i.toLowerCase()))&&(this.uiAttributesCache[i]=r,r||r===0?this.setAttribute(i,r===!0?i:`${r}`):this.removeAttribute(i))}}ngOnDestroy(){this.uiEvents.listeners.forEach(e=>e()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(e){let i=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!i||!i.nativeElement.focus)return;let r=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:o})=>this.document.activeElement===o||o.contains(this.document.activeElement));e&&!r?Promise.resolve().then(()=>i.nativeElement.focus()):!e&&r&&Promise.resolve().then(()=>i.nativeElement.blur())}onFocus(e){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,e)}onBlur(e){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,e)}onHostChange(e){e instanceof Event||this.onChange(e)}onChange(e){this.props.change?.(this.field,e),this.field.formControl?.markAsDirty()}attachElementRef(e){e&&(e._elementRefs?.indexOf(this.elementRef)===-1?e._elementRefs.push(this.elementRef):Lt(e,"_elementRefs",[this.elementRef]))}detachElementRef(e){let i=e?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;i!==-1&&e._elementRefs.splice(i,1)}setAttribute(e,i){this.renderer.setAttribute(this.elementRef.nativeElement,e,i)}removeAttribute(e){this.renderer.removeAttribute(this.elementRef.nativeElement,e)}static{this.\u0275fac=function(i){return new(i||t)($(Zt),$(Jt),$(gt))}}static{this.\u0275dir=_t({type:t,selectors:[["","formlyAttributes",""]],hostBindings:function(i,r){i&1&&J("change",function(s){return r.onHostChange(s)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[li]})}}return t})(),$4=(()=>{class t extends hv{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275dir=_t({type:t,selectors:[["","formlyAttributes",""]],hostBindings:function(i,r){i&1&&J("change",function(s){return r.onHostChange(s)})},standalone:!1,features:[tt]})}}return t})(),fv=(()=>{class t{constructor(e){this.config=e}
40ngOnChanges(){let e=Lc.map(i=>`templateOptions.${i}`);this.errorMessage$=Tn(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(Ne(({field:i,type:r,property:o})=>i===this.field&&r==="expressionChanges"&&(o.indexOf("validation")!==-1||e.indexOf(o)!==-1))):xe(null)).pipe(sr(null),Ae(()=>xn(this.errorMessage)?this.errorMessage:xe(this.errorMessage)))}get errorMessage(){let e=this.field.formControl;for(let i in e.errors)if(e.errors.hasOwnProperty(i)){let r=this.config.getValidatorMessage(i);if(Ri(e.errors[i])){if(e.errors[i].errorPath)return;e.errors[i].message&&(r=e.errors[i].message)}return this.field.validation?.messages?.[i]&&(r=this.field.validation.messages[i]),this.field.validators?.[i]?.message&&(r=this.field.validators[i].message),this.field.asyncValidators?.[i]?.message&&(r=this.field.asyncValidators[i].message),typeof r=="function"?r(e.errors[i],this.field):r}}static{this.\u0275fac=function(i){return new(i||t)($(br))}}static{this.\u0275cmp=ie({type:t,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[li],decls:2,vars:3,template:function(i,r){i&1&&(A(0),fe(1,"async")),i&2&&Be(be(1,1,r.errorMessage$))},dependencies:[Lr],encapsulation:2,changeDetection:0})}}return t})(),Ca=(()=>{class t extends fv{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275cmp=ie({type:t,selectors:[["formly-validation-message"]],standalone:!1,features:[tt],decls:2,vars:3,template:function(i,r){i&1&&(A(0),fe(1,"async")),i&2&&Be(be(1,1,r.errorMessage$))},dependencies:[Lr],encapsulation:2,changeDetection:0})}}return t})();var H4=(()=>{class t extends vn{set _formlyControls(e){}set _staticContent(e){this.fieldComponent=e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275dir=_t({type:t,viewQuery:function(i,r){if(i&1&&ft(cf,5,Bt)(cf,7,Bt),i&2){let o;Ge(o=We())&&(r.fieldComponent=o.first),Ge(o=We())&&(r._staticContent=o.first)}},standalone:!1,features:[tt]})}}return t})(),Nt=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:Zo,multi:!0,useFactory:df,deps:[br]},uf(e),br,Qo]}}static forChild(e={}){return{ngModule:t,providers:[{provide:Zo,multi:!0,useFactory:df,deps:[br]},uf(e),Qo]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Mt({type:t})}static{this.\u0275inj=Dt({imports:[Ce]})}}return t})();var jn=new qe("CMS_CONTENT_COMPONENTS"),wa=new qe("CMS_TEMPLATE_COMPONENTS"),yf=new qe("CONFIRM_MODAL_TOKEN"),Ea="data-template-element";var Xt={};In(Xt,{getComponentMetadata:()=>gv,getPropertyMetadata:()=>mv});var mv=(t,n,e)=>{let i=[],r=e;for(;r!==Object.prototype;){let o=Reflect.getOwnMetadata(t,r)||[];i.push(...o),r=Object.getPrototypeOf(r)}return i.map(o=>({name:o,metadata:Reflect.getMetadata(n,e,o)}))},gv=(t,n)=>Reflect.getOwnMetadata(t,n);var wt={};In(wt,{COMPONENT_DESCRIPTION_META_KEY:()=>zc,PROPERTIES_META_KEY:()=>Sa,PROPERTY_META_KEY:()=>Fc,TEMPLATE_COMPONENT_DESCRIPTION_META_KEY:()=>Vc});var Fc=Symbol("PROPERTY_METADATA_KEY"),Sa=Symbol("PROPERTIES_METADATA_KEY"),zc=Symbol("SITES_COMPONENT_METADATA"),Vc=Symbol("TEMPLATE_COMPONENT_METADATA");var Z4=J0(wf());var io=t=>(e,i)=>{let r=Reflect.getOwnMetadata(Sa,e.constructor)||[];r.indexOf(i)===-1&&r.push(i),Reflect.defineMetadata(Sa,r,e.constructor);let o=Reflect.getMetadata("design:type",e,i);return o&&Object.assign(t,{_propertyType:o.name}),Reflect.defineMetadata(Fc,t,e.constructor,i)};var vv=t=>e=>Reflect.defineMetadata(zc,[t],e);var Bc=t=>n=>Reflect.defineMetadata(Vc,[t],n);var $e=(function(t){return t.TEXT="TEXT",t.NUMBER="NUMBER",t.DROPDOWN="DROPDOWN",t.MULTIDROPDOWN="MULTIDROPDOWN",t.J3_API_DROPDOWN="J3_API_DROPDOWN",t.J3_API_MULTIDROPDOWN="J3_API_MULTIDROPDOWN",t.TEXT_AREA="TEXT_AREA",t.CHECK_BOX="CHECK_BOX",t.DATE_PICKER="DATEPICKER",t.TIME_PICKER="TIME_PICKER",t.ARRAY="ARRAY",t.ARRAY_DRAG="ARRAY_DRAG",t.ARRAY_DRAG_ADVANCED="ARRAY_DRAG_ADVANCED",t.FILEUPLOAD="FILEUPLOAD",t.CUSTOM="CUSTOM",t.RADIO_BUTTON="RADIO_BUTTON",t.RADIO_BUTTON_GROUP="RADIO_BUTTON_GROUP",t.RADIO_ALIGN="RADIO_ALIGN",t.RADIO_IMAGE_DISPLAY_TYPE="RADIO_IMAGE_DISPLAY_TYPE",t.IMAGE_RESOLUTION="IMAGE_RESOLUTION",t.UNIT_INPUT="UNIT_INPUT",t.COLOR_PICKER="COLOR_PICKER",t.RANGE="RANGE",t})($e||{});var Ef={};In(Ef,{ATTACHMENTS_ORDER:()=>_v});var _v=[{label:"Name (A-Z)",value:pn.NAME_ASC},{label:"Name (Z-A)",value:pn.NAME_DESC},{label:"Start date (Publish date) ASC",value:pn.DATE_ASC},{label:"Start date (Publish date) DESC",value:pn.DATE_DESC}
40];var Ia={};In(Ia,{getComponentDataset:()=>bv,getComponentProperties:()=>Sf,shouldIgnoreProperty:()=>If});var Sf=t=>Xt.getPropertyMetadata(wt.PROPERTIES_META_KEY,wt.PROPERTY_META_KEY,t),If=(t,n)=>{let{ignoreInDataset:e,defaultValue:i}=t;return e||!we(i)&&i===n},bv=(t,n)=>{let e=Sf(n),i={};for(let r of e){let{name:o,metadata:s}=r;try{let a=t[o];if(If(s,a))continue;i[o]=fi.isDateTime(a)?a.toISO():a}catch(a){console.warn(`Failed to read property "${o}" for component dataset`,a)}}return i};function jc(t){return[t.selector].flat().filter(Boolean)[0]??""}var _n=class{constructor(n){this.type=n,this.destroyRef=q(qt),this.settingsModalActive$=new nt(!1),this.elementSettingsDesignerRequestRefresh=null}get fromDate(){return this.validFrom}set fromDate(n){this.validFrom=n}get toDate(){return this.validTo}set toDate(n){this.validTo=n}getContentPropertiesDescription(){return Xt.getPropertyMetadata(wt.PROPERTIES_META_KEY,wt.PROPERTY_META_KEY,this.type)}mapToSettingsDesigner(){let n=this;return{componentInstance:this,items:this.getContentPropertiesDescription().map(e=>U(T({},e),{value:n[e.name],metadata:e.metadata}))}}getDataset(){return Ia.getComponentDataset(this,this.type)}setDataset(n){if(!n)return;let e=this;for(let i of Object.keys(n))e[i]=n[i]}onSaveChanges(){return xe(!0)}validTime(){let n=fi.now();switch(!0){case(!we(this.validFrom)&&!we(this.validTo)):{let e=this.parseDateSafe(this.validFrom).startOf("day"),i=this.parseDateSafe(this.validTo).endOf("day");return n>e&&i>n}case(!we(this.validFrom)&&we(this.validTo)):{let e=this.parseDateSafe(this.validFrom).startOf("day");return n>e}case(we(this.validFrom)&&!we(this.validTo)):return this.parseDateSafe(this.validTo).endOf("day")>n;default:return!0}}getComponentMetadata(n){let e=Xt.getComponentMetadata(n,this.type)[0];return U(T({},e),{settingsDialogSettings:U(T({},e?.settingsDialogSettings),{advancedSettingsValidators:[e?.settingsDialogSettings?.advancedSettingsValidators||[],[{name:"J3BaseContentComponentDatesValidator",options:{errorPath:"validTo"}}]].flat()})})}beforeFormCreated(n){return n}beforeAdvancedFormCreated(n){return n}shouldShowAdvancedOptionsToggle(n){return!0}onElementSettingsFormModelChange(n){}initializeFormModel(n,e){return e}afterSettingsSaved(){}parseDateSafe(n){return jr(n)}};rr([io({displayName:"Valid from",placeholder:"yyyy-MM-dd",modifierType:$e.DATE_PICKER,group:"General",advanced:!0,validates:{validFrom:{expression:mr.isDateValid,message:"Invalid date"}}}),or("design:type",Date)],_n.prototype,"validFrom",void 0);rr([io({displayName:"Valid to",placeholder:"yyyy-MM-dd",modifierType:$e.DATE_PICKER,group:"General",advanced:!0,validates:{validFrom:{expression:mr.isDateValid,message:"Invalid date"}}}),or("design:type",Date)],_n.prototype,"validTo",void 0);var xa=(()=>{class t extends _n{constructor(e){super(e),this.type=e,this.isFocused$=new nt(!1),this.isDesignMode$=new nt(!1),this.onDesingModeChanged=new j,this.onSelectedChanged=new j,this.isEdited=new nt(!1),this.metadata=this.getComponentMetadata(wt.COMPONENT_DESCRIPTION_META_KEY)}set focused(e){this.isFocused$.next(e)}get designMode(){return this.inDesignMode}set designMode(e){this.inDesignMode!==e&&(this.inDesignMode=e,this.onDesingModeChanged.emit(e),this.isDesignMode$.next(e))}get selected(){return this.isSelected}set selected(e){e!==this.isSelected&&(this.isSelected=e,this.onSelectedChanged.emit(e))}get componentMetadata(){return this.metadata}static{this.\u0275fac=function(i){return new(i||t)($(Pn))}}static{this.\u0275cmp=ie({type:t,selectors:[["ng-component"]],inputs:{focused:"focused",designMode:"designMode",selected:"selected"},outputs:{onDesingModeChanged:"onDesingModeChanged",onSelectedChanged:"onSelectedChanged"},features:[tt],decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return t})();var Ki=class t extends _n{constructor(n){super(n),this.type=n,this.onDataChanged=new j,this.templateDesignMode=!1,this.metadata=this.getComponentMetadata(wt.TEMPLATE_COMPONENT_DESCRIPTION_META_KEY)}injectDataset(n){this.$injectedDataset=n,Object.assign(this,n)}notifyOnDatasetChanged(){let n=this;for(let e of Object.keys(this.$injectedDataset))this.$injectedDataset[e]=n[e];this.onDataChanged.emit({instance:this.$templateInstanceName,dataset:this.$injectedDataset})}get componentMetadata(){return this.metadata}static{this.\u0275fac=function(e){return new(e||t)($(Pn))}}static{this.\u0275cmp=ie({type:t,selectors:[["ng-component"]],inputs:{className:"className"},outputs:{onDataChanged:"onDataChanged"},features:[tt],decls:0,vars:0,template:function(e,i){},encapsulation:2})}};rr([io({displayName:"CSS Class",modifierType:$e.TEXT,group:"General"}),or("design:type",String)],Ki.prototype,"className",void 0);var $n=(function(t){return t[t.TEXT=0]="TEXT",t[t.MEDIA=1]="MEDIA",t[t.MODULES=2]="MODULES",t[t.EMBED=3]="EMBED",t[t.OTHER=4]="OTHER",t})($n||{});var wi=(()=>{class t{constructor(){this.document=q(gt),this.platformId=q(ze),this.documentIsAccessible=Ke(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch(i){return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),t.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.check(e)){e=encodeURIComponent(e);let r=t.getCookieRegExp(e).exec(this.document.cookie);return r?.[1]?t.safeDecodeURIComponent(r[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},i=this.document;return i.cookie&&i.cookie!==""&&i.cookie.split(";").forEach(r=>{let[o,s]=r.split("=");e[t.safeDecodeURIComponent(o.replace(/^ /,""))]=t.safeDecodeURIComponent(s)}),e}set(e,i,r,o,s,a,l,c){if(!this.documentIsAccessible)return;if(typeof r=="number"||r instanceof Date||o||s||a||l){let f={expires:r,path:o,domain:s,secure:a,sameSite:l||"Lax",partitioned:c};this.set(e,i,f);return}
40let p=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",h=r||{};if(h.expires)if(typeof h.expires=="number"){let f=new Date(new Date().getTime()+h.expires*1e3*60*60*24);p+="Expires="+f.toUTCString()+";"}else p+="Expires="+h.expires.toUTCString()+";";h.path&&(p+="Path="+h.path+";"),h.domain&&(p+="Domain="+h.domain+";"),h.secure===!1&&h.sameSite==="None"&&(h.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),h.secure&&(p+="Secure;"),h.sameSite||(h.sameSite="Lax"),p+="SameSite="+h.sameSite+";",h.partitioned&&(p+="Partitioned;"),this.document.cookie=p}delete(e,i,r,o,s="Lax"){if(!this.documentIsAccessible)return;let a=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:a,path:i,domain:r,secure:o,sameSite:s})}deleteAll(e,i,r,o="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let a in s)s.hasOwnProperty(a)&&this.delete(a,e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var is=(()=>{class t{#e;constructor(e,i,r,o,s){this.templateRef=e,this.viewContainer=i,this.store=r,this.moduleProvider=o,this.contentComponents=s,this.#e=q(qt),this.elementBlocked=!1,this.componentsDef$=s.flat().map(a=>{let l=Xt.getComponentMetadata(wt.COMPONENT_DESCRIPTION_META_KEY,a);return{component:a,metadata:l&&l.length>0?l[0]:void 0}})}set audienceTargeting(e){let i=this.componentsDef$.find(r=>r.metadata.selector===e.component.selector)?.metadata?.roles;this.groups=e.groups||[],this.availablePermissions=i?i.map(r=>r.toUpperCase()):[],this.messageRef=e.messageRef}ngOnInit(){this.moduleProvider.applicationType===fr.CLIENT&&this.updateView(),xi([this.store.select(ki.permissionSelectors.arePermissionsLoaded).pipe(Ne(e=>e),Ae(()=>this.store.select(ki.permissionSelectors.permissionsSelector)),At(this.#e),Se(1)),this.store.select(Br.myGroupsSelectors.areMyGroupsListLoaded).pipe(Ne(e=>e),Ae(()=>this.store.select(Br.myGroupsSelectors.myGroupsListSelector)),At(this.#e),Se(1))]).pipe(Se(1)).subscribe(e=>{this.userPermissions=e[0],this.userGroups=e[1],this.updateView()})}updateView(){if(this.checkPermissions()){this.viewContainer.createEmbeddedView(this.templateRef);return}this.messageRef&&this.elementBlocked&&this.viewContainer.createEmbeddedView(this.messageRef)}checkPermissions(){return this.moduleProvider.applicationType===fr.CLIENT?(this.elementBlocked=!!this.groups.length,!this.groups.length):we(this.groups)||!this.groups.length||this.userGroups.some(e=>this.groups.includes(e.id))?(this.elementBlocked=!1,!0):(this.elementBlocked=!this.userPermissions.some(e=>this.availablePermissions.includes(e.value)),this.userPermissions.some(e=>this.availablePermissions.includes(e.value)))}static{this.\u0275fac=function(i){return new(i||t)($(Ti),$(Bt),$(Rt),$(Zs),$(jn))}}static{this.\u0275dir=_t({type:t,selectors:[["","audienceTargeting",""]],inputs:{audienceTargeting:"audienceTargeting"}})}}return t})();var $c=(()=>{class t{constructor(e){this.tpl=e}static{this.\u0275fac=function(i){return new(i||t)($(Ti))}}static{this.\u0275dir=_t({type:t,selectors:[["","cmsTemplateAdditionalActions",""]]})}}return t})();var ns=(function(t){return t.DOWN="down",t.UP="up",t})(ns||{});var rs=(function(t){return t.LEFT="left",t.RIGHT="right",t})(rs||{});var os=(function(t){return t[t.INCREMENT=1]="INCREMENT",t[t.DECREMENT=-1]="DECREMENT",t})(os||{});var Ei=(function(t){return t.HTML="html",t.STYLE="style",t.SCRIPT="script",t.URL="url",t.RESOURCE="resourceUrl",t})(Ei||{});function ss(t){if(Array.isArray(t))return t;if(t==null||t==="")return[];if(typeof t=="string")try{return ss(JSON.parse(t))}catch(e){return[]}if(typeof t!="object")return[];let n=Object.keys(t);return n.length>0&&n.every(e=>/^\d+$/.test(e))?Object.values(t):[t]}function Hc(t){return ss(t).map(n=>U(T({},n),{uuid:n?.uuid??"",sections:ss(n?.sections).map(e=>U(T({},e),{items:ss(e?.items)}))}))}var no=(()=>{class t{constructor(){this.#e=new _u(1),this.rowsUpdated$=this.#e.asObservable(),this.#t=new Ve,this.reset$=this.#t.asObservable(),this.designMode=!1}#e;#t;get rows(){return this._rows}set rows(e){this._rows=Hc(e),this.#e.next()}reset(){this.#t.next()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ta={};In(Ta,{getComponentDefinitions:()=>wv});var wv=t=>t.map(n=>{let e=Xt.getComponentMetadata(wt.COMPONENT_DESCRIPTION_META_KEY,n);return{component:n,metadata:e&&e.length>0?e[0]:void 0}});var Qe={};In(Qe,{arrayDragAdvancedTransform:()=>Nv,arrayDragTransform:()=>Lv,arrayTransform:()=>Ov,chekboxTransform:()=>Mv,colorPickerTransform:()=>Uv,customSelector:()=>zv,datePickerTransform:()=>Av,dropdownInputTransform:()=>xf,fileUploadTransform:()=>Fv,imageResolutionTransform:()=>Gv,j3ApiDropdown:()=>Tf,j3ApiMultiDropdown:()=>Vv,multiDropdownInputTransform:()=>kv,numericInputTransform:()=>Tv,radioAlignTransform:()=>$v,radioButtonGroupTransform:()=>jv,radioButtonTransform:()=>Bv,radioImageDisplayTypeTransform:()=>Hv,rangeTransform:()=>Pv,textInputTransform:()=>Iv,textareaTransform:()=>Dv,timePickerTransform:()=>Rv,unitInputTransform:()=>xv});var Ev=(t,n)=>{let{dropdownSource:e}=t,i=e;return typeof i=="string"&&(i=n[i]),i instanceof Wt?i:xe(i)},Pa=(t,n)=>{let{optionsList:e}=t,i=e;return typeof i=="string"&&(i=n[i]),i instanceof Wt?i:xe(i)},Sv=(t,n)=>{let{optionsList:e}=t,i=e;return typeof i=="string"&&(i=n[i]),i instanceof Wt?i:xe(i)};var Et=(t,n)=>{let{name:e,metadata:b}=t,m=b,{placeholder:i,className:r,description:o,validates:s,displayName:a,units:l,required:c,hideExpression:p,template:h,expressions:f,defaultValue:d}=m,u=Gt(m,["placeholder","className","description","validates","displayName","units","required","hideExpression","template","expressions","defaultValue"]),g={key:e,className:r,defaultValue:d!==void 0?d:void 0,templateOptions:U(T(T({},n),u?.templateOptions),{clearable:t.metadata?.clearable!==!1,required:c,placeholder:i,template:h,units:l,label:a,description:o}),hideExpression:p,expressions:f,validators:s};if(d!==void 0&&p){g.hooks||(g.hooks={});let v=g.hooks.onChanges;g.hooks.onChanges=_=>{if(v&&v(_),!_.hide&&_.model){let D=_.model[_.key];(D==null||D==="")&&(_.model[_.key]=d,_.formControl&&_.formControl.setValue(d,{emitEvent:!1}))}}}return g},Iv=(t,n)=>U(T({},Et(t)),{type:"input"}),xv=(t,n,e={})=>U(T({},Et(t)),{type:"unit-input"}),Tv=(t,n)=>U(T({},Et(t,{type:"number"})),{type:"input"}),Pv=(t,n)=>U(T({},Et(t)),{type:"range"}),xf=(t,n)=>{let e=U(T({},Et(t,{})),{type:"ng-select"});if(e.templateOptions=U(T({},e.templateOptions),{options:Ev(t.metadata,n),valueProp:"value",labelProp:"label"}),t.name==="selectedPageId"&&n&&n.tokensMap){let i=n.tokensMap;e.hooks||(e.hooks={});let r=e.hooks.onInit;e.hooks.onInit=o=>{if(r&&r(o),o.model?.selectedPageId&&i&&i.size>0){let s=i.get(o.model.selectedPageId);s?.platform&&(o.model.selectedAccountPlatform=s.platform)}if(o.formControl){let s=o.formControl.valueChanges.subscribe(a=>{if(o.model)if(a&&i&&i.size>0){let l=i.get(a);l?.platform?o.model.selectedAccountPlatform=l.platform:o.model.selectedAccountPlatform=""}else o.model.selectedAccountPlatform=""});if(!e.hooks.onDestroy)e.hooks.onDestroy=a=>{s.unsubscribe()};else{let a=e.hooks.onDestroy;e.hooks.onDestroy=l=>{s.unsubscribe(),a(l)}}}}}return e},kv=(t,n)=>{let e=U(T({},xf(t,n)),{type:"ng-select"});return e.templateOptions&&(e.templateOptions.multiple=!0),e},Dv=(t,n)=>U(T({},Et(t,{rows:5})),{type:"textarea"}),Mv=(t,n)=>U(T({},Et(t)),{type:"checkbox"}),Av=(t,n)=>U(T({},Et(t,{rows:5})),{type:"datepicker"}),Rv=(t,n)=>U(T({},Et(t,{rows:5})),{type:"timepicker"}),Ov=(t,n)=>{let{metadata:{placeholder:e}}=t;return U(T({},Et(t,{items:{type:"string"}})),{fieldArray:{type:"input",templateOptions:{placeholder:e}},type:"array"})},Lv=(t,n)=>{let{metadata:{placeholder:e}}=t;return U(T({},Et(t,{items:{type:"string"}})),{fieldArray:{type:"input",templateOptions:{placeholder:e}},type:"array-drag"})},Nv=(t,n)=>{let{metadata:{placeholder:e}}=t;return U(T({},Et(t,{items:{type:"string"}})),{fieldArray:{type:"input",templateOptions:{placeholder:e}},type:"array-drag-advanced"})},Fv=(t,n)=>U(T({},Et(t,{type:"file-upload"})),{type:"file-upload"}),zv=(t,n)=>T({},t.metadata?.customFieldDef),Tf=(t,n,e={})=>{let{metadata:i}=t;return U(T({},Et(t,U(T({},e),{resourceName:i?.resourceName,valueProp:i?.valueProp,labelProp:i?.labelProp,customItemFilter:i?.customItemFilter,constDataQueryFilters:i?.constDataQueryFilters,orderApiResponse:i?.orderApiResponse,buildOrderQuery:i?.buildOrderQuery,buildSearchQuery:i?.buildSearchQuery}))),{type:"j3-api-select"})},Vv=(t,n)=>Tf(t,n,{multiple:!0}),Bv=(t,n)=>{let e=U(T({},Et(t,{})),{type:"radio"});return e.templateOptions=U(T({},e.templateOptions),{options:Pa(t.metadata,n),valueProp:"value",labelProp:"label"}),e},jv=(t,n)=>{let e=U(T({},Et(t,{})),{type:"radio-btn-group"});return e.templateOptions=U(T({},e.templateOptions),{options:Pa(t.metadata,n),valueProp:"value",labelProp:"label"}),e},$v=(t,n)=>{let e=U(T({},Et(t,{})),{type:"radio-align"}),i=Pa(t.metadata,n);return e.templateOptions=U(T({},e.templateOptions),{options:i,valueProp:"value",labelProp:"label",label:e.templateOptions?.label}),e.props=U(T({},e.props),{displayMode:t.metadata?.displayMode||"both"}),e},Hv=(t,n)=>{let e=U(T({},Et(t,{})),{type:"radio-image-display-type"}),i=Pa(t.metadata,n);return e.templateOptions=U(T({},e.templateOptions),{options:i,valueProp:"value",labelProp:"label",label:e.templateOptions?.label}),e.props=U(T({},e.props),{displayMode:t.metadata?.displayMode||"both"}),e},Uv=(t,n)=>{let e=U(T({},Et(t,{})),{type:"color-picker"});return e.templateOptions=T({},e.templateOptions),e},Gv=(t,n)=>{let e=U(T({},Et(t,{})),{type:"image-resolution"});return e.templateOptions=U(T({},e.templateOptions),{options:Sv(t.metadata,n),valueProp:"value",labelProp:"label",tooltipProp:"tooltip"}),e};var ka=(()=>{class t{constructor(){this.fieldTransformMap=this.createTransformMap()}transformToFormly(e,i){return(e||[]).map(r=>{let{metadata:o}=r,s=this.fieldTransformMap.get(o.modifierType);return s?s(r,i):{}})}createTransformMap(){let e=new Map;return e.set($e.TEXT,Qe.textInputTransform),e.set($e.NUMBER,Qe.numericInputTransform),e.set($e.RANGE,Qe.rangeTransform),e.set($e.DROPDOWN,Qe.dropdownInputTransform),e.set($e.MULTIDROPDOWN,Qe.multiDropdownInputTransform),e.set($e.TEXT_AREA,Qe.textareaTransform),e.set($e.CHECK_BOX,Qe.chekboxTransform),e.set($e.DATE_PICKER,Qe.datePickerTransform),e.set($e.TIME_PICKER,Qe.timePickerTransform),e.set($e.ARRAY,Qe.arrayTransform),e.set($e.ARRAY_DRAG,Qe.arrayDragTransform),e.set($e.ARRAY_DRAG_ADVANCED,Qe.arrayDragAdvancedTransform),e.set($e.FILEUPLOAD,Qe.fileUploadTransform),e.set($e.CUSTOM,Qe.customSelector),e.set($e.J3_API_DROPDOWN,Qe.j3ApiDropdown),e.set($e.UNIT_INPUT,Qe.unitInputTransform),e.set($e.J3_API_MULTIDROPDOWN,Qe.j3ApiMultiDropdown),e.set($e.RADIO_BUTTON,Qe.radioButtonTransform),e.set($e.RADIO_BUTTON_GROUP,Qe.radioButtonGroupTransform),e.set($e.RADIO_ALIGN,Qe.radioAlignTransform),e.set($e.RADIO_IMAGE_DISPLAY_TYPE,Qe.radioImageDisplayTypeTransform),e.set($e.COLOR_PICKER,Qe.colorPickerTransform),e.set($e.IMAGE_RESOLUTION,Qe.imageResolutionTransform),e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac})}}return t})();function Pf(t,n){let e=t.createElement("div");return e.innerHTML=n,{rootNodes:kf(e.childNodes)}}function kf(t){let n=[];for(let e of Array.from(t)){let i=Wv(e);i&&n.push(i)}return n}
40function Wv(t){if(t.nodeType===Node.TEXT_NODE)return{value:t.nodeValue??""};if(t.nodeType===Node.ELEMENT_NODE){let n=t;return{name:n.tagName.toLowerCase(),attrs:Array.from(n.attributes).map(e=>({name:e.name,value:e.value})),children:kf(n.childNodes)}}return null}var Da=(()=>{class t{constructor(e){this.document=e}parseHtml(e){return Pf(this.document,e)}static{this.\u0275fac=function(i){return new(i||t)(ye(gt))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac})}}return t})();function qv(t,n){if(t&1){let e=Te();y(0,"form",13),J("ngSubmit",function(){ee(e);let r=S();return te(r.onSaveChanges())}),ge(1,"formly-form",14),w()}if(t&2){let e=S();W("formGroup",e.formGroup),E(),W("model",e.formModel)("fields",e.formFieldsNormal)("options",e.formOptions)("form",e.formGroup)}}function Yv(t,n){if(t&1&&(y(0,"form",7),ge(1,"formly-form",14),w()),t&2){let e=S();W("formGroup",e.advancedFormGroup),E(),W("model",e.formModel)("fields",e.formFieldsAdvanced)("options",e.advancedFormOptions)("form",e.advancedFormGroup)}}var Ma=(()=>{class t{constructor(e,i,r,o){this.activeModal=e,this.dynamicFormService=i,this.cdr=r,this.platformId=o,this.GROUP_NOT_SPECIFED="GROUP_NOT_SPECIFED",this.$viewInitialized=!1,this.formGroup=new un({}),this.advancedFormGroup=new un({}),this.formModel={},this.formFieldsNormal=[],this.formFieldsAdvanced=[],this.formOptions={},this.advancedFormOptions={},this.showAdvanced=!1,this.isFormValid=!1,this.formSubscription=new sn}ngOnInit(){if(!this.settings)return;let{componentInstance:e,items:i,componentMetadata:r}=this.settings,o={component:e,cropPreferencesByScope:{}};if(this.formOptions={formState:o},this.advancedFormOptions={formState:o},this.formFieldsNormal=this.dynamicFormService.transformToFormly(i.filter(s=>!s?.metadata?.advanced),e),this.formFieldsAdvanced=this.dynamicFormService.transformToFormly(i.filter(s=>s?.metadata?.advanced),e),r.settingsDialogSettings){let{advancedSettingsValidators:s,standardSettingsValidators:a}=r.settingsDialogSettings;this.formFieldsNormal=[{validators:{validation:a||[]},fieldGroup:[...this.formFieldsNormal].flat()}],this.formFieldsNormal=[...e.beforeFormCreated(this.formFieldsNormal)||this.formFieldsNormal],this.formFieldsAdvanced=[{validators:{validation:s||[]},fieldGroup:[...this.formFieldsAdvanced].flat()}]}this.formFieldsAdvanced=e.beforeAdvancedFormCreated(this.formFieldsAdvanced),this.formModel=this.getFormModel(i,e)}ngAfterViewInit(){if(Ie(this.platformId)){this.$viewInitialized=!0;return}setTimeout(()=>{this.$viewInitialized=!0,this.initializeAdvancedForm(),this.setupFormSubscriptions(),this.updateFormValidity(),this.setupComponentFormSubscriptions();let e=this.settings?.componentInstance;e&&(e.elementSettingsDesignerRequestRefresh=()=>{this.formModel=T({},this.formModel),this.updateFormValidity(),this.cdr.markForCheck()}),this.applyAdvancedOptionsToggleVisibility(),this.cdr.markForCheck()})}get showAdvancedOptionsToggle(){let e=this.settings?.componentInstance;return!e||e.shouldShowAdvancedOptionsToggle(this.formModel??{})}onToggleAdvanced(){this.showAdvanced=!this.showAdvanced}onSaveChanges(){if(!this.formGroup.valid||!this.advancedFormGroup.valid||!this.settings)return;let{componentInstance:e,items:i}=this.settings,r=T(T({},this.formGroup.getRawValue()),this.advancedFormGroup.getRawValue()),o=this.omitUndefinedRecordValues(r);for(let l of i)Object.prototype.hasOwnProperty.call(o,l.name)&&(e[l.name]=o[l.name]);e.afterSettingsSaved();let s=e.getDataset?e.getDataset():{},a=T(T({},s),o);this.settings.onDatasetChanged?.(a),this.activeModal.close(),e.settingsModalActive$.next(!1)}getFormModel(e,i){let r={};for(let{name:o}of e)r[o]=Hs(i[o]);return i.initializeFormModel?i.initializeFormModel(e,r):r}dismiss(){let{componentInstance:e}=this.settings;e.settingsModalActive$.next(!1),this.activeModal.close()}setupFormSubscriptions(){this.formSubscription.add(this.formGroup.statusChanges.subscribe(()=>{this.updateFormValidity()})),this.formSubscription.add(this.advancedFormGroup.statusChanges.subscribe(()=>{this.updateFormValidity()})),this.formSubscription.add(this.formGroup.valueChanges.subscribe(()=>{this.updateFormValidity()})),this.formSubscription.add(this.advancedFormGroup.valueChanges.subscribe(()=>{this.updateFormValidity()}))}onMainFormlyModelChange(){this.applyAdvancedOptionsToggleVisibility();let e=this.settings?.componentInstance;e&&e.onElementSettingsFormModelChange(this.formModel??{}),this.cdr.markForCheck()}applyAdvancedOptionsToggleVisibility(){this.showAdvancedOptionsToggle||(this.showAdvanced=!1)}setupComponentFormSubscriptions(){if(!this.settings)return;let{componentInstance:e}=this.settings;if(e&&typeof e.setupFormSubscriptions=="function"){let i=e.setupFormSubscriptions({formModel:this.formModel,formGroup:this.formGroup,formSubscription:this.formSubscription,cdr:this.cdr});i&&this.formSubscription.add(i)}}
40updateFormValidity(){this.formGroup.updateValueAndValidity({emitEvent:!1}),this.advancedFormGroup.updateValueAndValidity({emitEvent:!1}),this.isFormValid=this.formGroup.valid&&this.advancedFormGroup.valid,this.cdr.markForCheck()}initializeAdvancedForm(){if(!this.settings)return;let{items:e}=this.settings,i=e.filter(s=>s?.metadata?.advanced),r={};i.forEach(s=>{this.formModel[s.name]!==void 0&&(r[s.name]=this.formModel[s.name])}),this.advancedFormGroup.patchValue(r);let o=this.settings.componentMetadata.settingsDialogSettings?.advancedSectionInitiallyExpanded;o===!1?this.showAdvanced=!1:o===!0?this.showAdvanced=!0:this.showAdvanced=this.hasAdvancedValues(r)}omitUndefinedRecordValues(e){let i={};for(let[r,o]of Object.entries(e))o!==void 0&&(i[r]=o);return i}hasAdvancedValues(e){return Object.values(e).some(i=>i==null?!1:typeof i=="string"?i.trim()!=="":Array.isArray(i)?i.length>0:typeof i=="object"?Object.keys(i).length>0:!0)}ngOnDestroy(){let e=this.settings?.componentInstance;e&&(e.elementSettingsDesignerRequestRefresh=null),this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)($(ni),$(ka),$(ct),$(ze))}}static{this.\u0275cmp=ie({type:t,selectors:[["element-settings-designer"]],decls:22,vars:8,consts:[[1,"p-3"],[1,"row"],[1,"col"],[1,"modal-header-title","mt-0","mb-0","ms-2"],[1,"btn","small-btn","float-end",2,"width","40px","height","40px","padding","8px",3,"click"],["name","close"],[1,"element-designer-content"],[3,"formGroup"],[1,"advanced-button",3,"click"],[1,"material-icons"],[1,"element-designer-actions"],["type","submit",1,"btn","btn-primary",3,"click","disabled"],[1,"btn","btn-secondary",3,"click"],[3,"ngSubmit","formGroup"],[3,"model","fields","options","form"]],template:function(i,r){i&1&&(y(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),A(4),w()(),y(5,"div",2)(6,"button",4),fe(7,"translate"),J("click",function(){return r.dismiss()}),ge(8,"j3-icon",5),w()()()(),y(9,"div",6),oe(10,qv,2,5,"form",7),y(11,"div",8),J("click",function(){return r.onToggleAdvanced()}),y(12,"h4"),A(13,"Advanced Options"),w(),y(14,"span",9),A(15),w()(),oe(16,Yv,2,5,"form",7),w(),y(17,"div",10)(18,"button",11),J("click",function(){return r.onSaveChanges()}),A(19," Save "),w(),y(20,"button",12),J("click",function(){return r.dismiss()}),A(21,"Cancel"),w()()),i&2&&(E(4),lt(" ",r.settings.componentMetadata.displayName," Options "),E(2),Oe("aria-label",be(7,6,"Close")),E(4),se(r.$viewInitialized?10:-1),E(5),Be(r.showAdvanced?"keyboard_arrow_up":"keyboard_arrow_down"),E(),se(r.$viewInitialized&&r.showAdvanced?16:-1),E(2),W("disabled",!r.isFormValid))},dependencies:[Ce,jt,An,Dn,Rn,Nt,Bn,Ze,qi,eo,dt],styles:[".element-designer-title[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif;margin:0;padding:20px}.element-designer-content[_ngcontent-%COMP%]{max-height:calc(100vh - 200px);overflow-y:auto;padding:0 20px 80px}.element-designer-actions[_ngcontent-%COMP%]{background-color:#fff;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;bottom:0;display:flex;gap:6px;padding:20px;position:sticky;z-index:10}.advanced-button[_ngcontent-%COMP%]{color:#078fdc;display:inline-block;margin-bottom:.5rem}.advanced-button[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{display:inline;font-size:16px;margin:0}.advanced-button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{vertical-align:bottom}"],changeDetection:0})}}return t})();function Kv(t,n){t&1&&(y(0,"div",0),A(1,"Date limitation enabled"),w())}function Xv(t,n){if(t&1){let e=Te();y(0,"div",2)(1,"div",3)(2,"button",4),fe(3,"translate"),y(4,"span",5),A(5,"open_with"),w()(),y(6,"button",6),fe(7,"translate"),J("click",function(){ee(e);let r=S();return te(r.onSettings())}),y(8,"span",5),A(9,"settings"),w()(),y(10,"button",7),fe(11,"translate"),J("click",function(){ee(e);let r=S();return te(r.onRemove())}),y(12,"span",5),A(13,"delete"),w()()()()}if(t&2){let e=S();E(2),Ee("disabled",e.layoutLocked),W("disabled",e.layoutLocked)("cdkDragHandleDisabled",e.layoutLocked),Oe("aria-label",be(3,10,"Move Element")),E(4),Oe("aria-label",be(7,12,"Element Settings")),E(4),Ee("disabled",e.layoutLocked),W("disabled",e.layoutLocked),Oe("aria-label",be(11,14,"Delete Element"))}}var Aa=(()=>{class t{get isValidDate(){try{let{validFrom:e,validTo:i}=this.builderElement?.dataset??{},r=fi.now();return mr.isDateInBorders(r.toISO(),e,i)}catch(e){return!0}}get designMode(){return this.designModeValue}set designMode(e){this.designModeValue=e,this.contentPresenter?.instance&&this.updateDesignMode(this.contentPresenter.instance,e)}get validFrom(){return this.validFromValue}set validFrom(e){this.validFromValue=e}set item(e){this.builderElement=e}constructor(e,i,r,o,s,a,l,c,p){this.platformId=e,this.componentFactory=r,this.container=o,this.modal=s,this.renderer=a,this.applicationRef=l,this.appInjector=c,this.cdr=p,this.designModeValue=!1,this.validFromValue="",this.selected=!1,this.layoutLocked=!1,this.addedItem=!1,this.components
40Def$=Ta.getComponentDefinitions(i.flat())}ngAfterViewInit(){this.initializeComponent()}ngOnDestroy(){this.contentPresenter?.destroy()}onSettings(){if(!this.componentInfo)return;this.contentPresenter?.instance.settingsModalActive$.next(!0);let e=this.modal.open(Ma,{size:"lg"});e.componentInstance.settings=T({onDatasetChanged:this.onDatasetChanged.bind(this),componentMetadata:this.contentPresenter?.instance.componentMetadata},this.contentPresenter?.instance.mapToSettingsDesigner())}onRemove(){this.layoutLocked||this.containerAPI?.removeElement(this.builderElement)}onDatasetChanged(e){this.builderElement&&(this.builderElement.dataset||(this.builderElement.dataset={}),this.builderElement.dataset=e,this.contentPresenter?.instance?.setDataset&&this.contentPresenter.instance.setDataset(e))}updateDesignMode(e,i,r=!1){if(e instanceof xa&&(e.designMode=i),e instanceof Ki&&(e.templateDesignMode=i),!(r||e&&e.validTime()))switch(i){case!1:this.builderElement.dataset=e.getDataset(),this.renderer.removeChild(this.container.element.nativeElement,this.contentContainer);break;case!0:this.initializeComponent();break}}initializeComponent(){try{let{component:e,instance:i}=this.builderElement;if(this.componentInfo=this.componentsDef$.find(a=>typeof e=="string"||e instanceof String?[a.metadata.selector].flat().includes(e):a.component===e),!this.componentInfo){console.warn(`Component ${e} not found`);return}if(Ie(this.platformId)&&this.componentInfo.metadata?.isBrowserComponentOnly){console.warn(`Component ${e} only render on browser side`);return}Ke(this.platformId)||(this.builderElement=U(T({},this.builderElement),{component:this.componentInfo.component}));let r=this.componentFactory.resolveComponentFactory(this.componentInfo.component),o=this.findServerRenderedContentContainer();if(!this.designMode&&!this.isValidDate){o&&this.renderer.removeChild(this.container.element.nativeElement,o);return}o?(this.contentContainer=o,this.contentPresenter=this.createContentPresenter(r,o)):(this.contentContainer=this.renderer.createElement("div"),this.renderer.appendChild(this.container.element.nativeElement,this.contentContainer),this.contentPresenter=r.create(this.appInjector,[],this.contentContainer));let{instance:s}=this.contentPresenter;this.updateDesignMode(s,this.designMode,!0),s instanceof xa&&(i&&(this.builderElement.dataset=i.getDataset()),s.setDataset(this.builderElement.dataset)),this.applicationRef.attachView(this.contentPresenter.hostView);try{this.builderElement.instance=s}catch(a){this.builderElement=U(T({},this.builderElement),{instance:s})}this.designMode&&this.addedItem&&this.componentInfo.metadata.showSettingsAfterAdd&&this.onSettings()}catch(e){console.error(`Failed to initialize content element ${this.builderElement?.component}`,e)}}findServerRenderedContentContainer(){if(!Ke(this.platformId)||this.designMode)return null;let e=this.container.element.nativeElement;return Array.from(e.children).find(r=>r.hasAttribute("ng-version")&&r.hasAttribute("ngh"))??null}createContentPresenter(e,i){try{return e.create(this.appInjector,[],i)}catch(r){return console.warn(`SSR hydration failed for content element ${this.builderElement?.component}, re-rendering`,r),i.removeAttribute("ngh"),Array.from(i.childNodes).forEach(o=>this.renderer.removeChild(i,o)),e.create(this.appInjector,[],i)}}parseDateSafe(e){return jr(e)}static{this.\u0275fac=function(i){return new(i||t)($(ze),$(jn),$(Ns),$(Bt),$(gi),$(Zt),$(lr),$(ht),$(ct))}}static{this.\u0275cmp=ie({type:t,selectors:[["element-content-presenter"]],inputs:{designMode:"designMode",validFrom:"validFrom",containerAPI:"containerAPI",selected:"selected",layoutLocked:"layoutLocked",addedItem:"addedItem",item:"item"},decls:3,vars:3,consts:[[1,"toggle-content-enabled"],["cdkDrag","","cdkDragRootElement","element-content-presenter",1,"site-content-section-column-items-element-content-presenter",3,"cdkDragDisabled"],[1,"settings-overlay"],[1,"site-content-section-column-items-element-settings-buttons-list"],["type","button","cdkDragHandle","","ngbTooltip","Move Element","container","body",1,"site-content-section-column-items-element-settings-buttons-list-item","site-content-section-column-items-element-settings-buttons-list-item--move",3,"disabled","cdkDragHandleDisabled"],[1,"app-icon","material-icons","site-content-section-column-items-element-settings-buttons-list-item-icon"],["type","button","ngbTooltip","Element Settings","container","body",1,"site-content-section-column-items-element-settings-buttons-list-item",3,"click"],["type","button","ngbTooltip","Delete Element","container","body",1,"site-content-section-column-items-element-settings-buttons-list-item","site-content-section-column-items-element-settings-buttons-list-item--delete",3,"click","disabled"]],template:function(i,r){i&1&&(oe(0,Kv,2,0,"div",0),y(1,"div",1),oe(2,Xv,14,16,"div",2),w()),i&2&&(se(r.designMode&&r.builderElement&&r.builderElement.instance&&(r.builderElement.instance.validFrom||r.builderElement.instance.validTo)?0:-1),E(),W("cdkDragDisabled",!r.designMode||r.layoutLocked),E(),se(r.designMode&&r.selected?2:-1))},dependencies:[Ce,Wi,ma,fa,Js,Xs,Ze,dt],encapsulation:2})}}return t})();var as=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,i){switch(i){case Ei.HTML:return this.sanitizer.bypassSecurityTrustHtml(e);case Ei.STYLE:return this.sanitizer.bypassSecurityTrustStyle(e);case Ei.SCRIPT:return this.sanitizer.bypassSecurityTrustScript(e);case Ei.URL:return this.sanitizer.bypassSecurityTrustUrl(e);case Ei.RESOURCE:return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error(`Invalid safe type specified: ${i}`)}}static{this.\u0275fac=function(i){return new(i||t)($(kn,16))}}static{this.\u0275pipe=Fs({name:"safe",type:t,pure:!0})}}return t})();var Zv=t=>({content:t}),Qv=(t,n)=>n.componentKey;function e_(t,n){if(t&1&&(ge(0,"div",9),fe(1,"safe")),t&2){let e=n.content,i=S();W("innerHTML",cn(1,1,e,i.securityTrustType.HTML),ci)}}function t_(t,n){if(t&1&&(y(0,"span",13),A(1),w()),t&2){let e=S(2).$implicit;W("ngClass",e.badgeClass),E(),lt(" ",e.badgeText," ")}}function i_(t,n){if(t&1&&ge(0,"j3-icon",14),t&2){let e=S(2).$implicit;W("name",e.icon)}}function n_(t,n){if(t&1&&(y(0,"i",15),A(1),w()),t&2){let e=S(2).$implicit;E(),Be(e.icon)}}function r_(t,n){if(t&1){let e=Te();y(0,"span",11),J("click",function(){ee(e);let r=S().$implicit,o=S(2);return te(o.onAddItem(r))}),y(1,"div",12),oe(2,t_,2,2,"span",13),oe(3,i_,1,1,"j3-icon",14)(4,n_,2,1,"i",15),w(),y(5,"span",16),A(6),w()()}if(t&2){let e=S().$implicit,i=S().$implicit,r=S(),o=ei(1);Ee("element-blocked",!e.isClickable)("element-clickable",e.isClickable)("element-muted",e.isMuted),W("ngbPopover",o)("popoverContext",pr(16,Zv,e.popoverContent))("popoverTitle",e.popoverTitle)("disablePopover",!r.hasPopover(e))("autoClose",!1),E(),Ni("background-color",r.siteCategoryColours[i]),E(),se(e.badgeText?2:-1),E(),se(r.hasJ3Icon(e.icon)?3:4),E(3),Be(e.displayName)}}function o_(t,n){if(t&1&&oe(0,r_,7,18,"span",10),t&2){let e=n.$implicit,i=S().$implicit;se(e.category===i?0:-1)}}function s_(t,n){if(t&1&&(y(0,"div",8),st(1,o_,1,1,null,null,Qv),w()),t&2){let e=S();E(),at(e.items)}}var Ra=(()=>{class t{#e;#t;
40constructor(e,i,r){this.componentsDef=e,this.activeModal=i,this.store=r,this.#e=q(qt),this.#t=q(Qr),this.securityTrustType=Ei,this.items=[],this.siteCategories=[$n.TEXT,$n.MEDIA,$n.MODULES,$n.EMBED,$n.OTHER],this.siteCategoryColours=["#C2F1EB","#FFDDCE","#C4E5F7","#DCD2EE","#E7E7E7"],this.userPermissions=[],this.contentComponentsLegacyPopoverContent=""}ngOnInit(){if(this.store){this.loadPermissionsSettingsAndFilter();return}this.filterComponents()}loadPermissionsSettingsAndFilter(){this.store.select(Ol.settingsSelectors.generalSettingsSelector.generalSettingsSelector).pipe(Fe(e=>{!e?.isLoaded&&!e?.isLoading&&this.store.dispatch(Ol.settingsActions.generalSettingsActions.LoadGeneralSettings())}),Ne(e=>e?.isLoaded),Se(1),Ae(e=>this.store.select(ki.permissionSelectors.arePermissionsLoaded).pipe(Ne(i=>i),Ae(()=>this.store.select(ki.permissionSelectors.permissionsSelector)),Ne(i=>!!i.length),Se(1),Ae(i=>xe({generalSettings:e,permissionsData:i})))),At(this.#e)).subscribe(({generalSettings:e,permissionsData:i})=>{this.userPermissions=i,this.contentComponentsLegacyPopoverContent=Lp(e.customContent,"contentComponents"),this.filterComponents(Op(e.customContent))})}filterComponents(e={}){this.items=this.componentsDef.flat().map(i=>(Xt.getComponentMetadata(wt.COMPONENT_DESCRIPTION_META_KEY,i)||[]).flat().map(r=>U(T({},r),{component:i,componentKey:jc(r)}))).flat().filter(i=>this.isElementAllowedByPermissions(i)).filter(i=>this.isElementVisibleForTenant(i,e)).map(i=>this.applyTenantUpsell(i,e))}isElementAllowedByPermissions(e){if(!we(e.selectedByUser)&&!e.selectedByUser)return!1;if(!e.roles||e.roles.length===0)return!0;if(this.userPermissions.length>0){let i=this.userPermissions.find(o=>o.value===Ue.PermissionRole.ROLE_FULL_TOKEN),r=this.userPermissions.find(o=>e.roles?.includes(o.value));return!!(i&&r)}return!0}isElementVisibleForTenant(e,i){let r=i[e.componentKey],o=zl(e.componentKey,r);return Mp(o,Nl(this.userPermissions))}applyTenantUpsell(e,i){let r=i[e.componentKey],o=zl(e.componentKey,r,this.contentComponentsLegacyPopoverContent),s=Rp(o),a=Fl(o.popover,!1),l=Ap(o,Nl(this.userPermissions)),c=Fl(o.muted,!1);return U(T({},e),{badgeText:s?.text,badgeClass:s?.badgeClass,popoverTitle:a?e.displayName:void 0,popoverContent:a?Np(o):void 0,isClickable:l,isMuted:c})}hasJ3Icon(e){return this.#t.hasIcon(e)}hasPopover(e){return!!e.popoverContent}onCloseDialog(){this.activeModal.close(!1)}onAddItem(e){e.isClickable&&(this.activeModal.close(),this.containerAPI.addElement(e,this.containerAPI.index))}static{this.\u0275fac=function(i){return new(i||t)($(jn),$(ni),$(Rt,8))}}static{this.\u0275cmp=ie({type:t,selectors:[["ng-component"]],decls:14,vars:3,consts:[["elementPopoverTpl",""],[1,"modal-head"],[1,"row"],[1,"col"],["id","modal-title",1,"modal-header-title","m-0"],["type","button","ngbAutofocus","",1,"btn","small-btn","float-end",2,"width","40px","height","40px","padding","8px","position","relative","left","8px",3,"click"],["name","close"],[1,"modal-body"],[1,"elements-container"],[1,"interactive-popover-html",3,"innerHTML"],["j3HoverInteractivePopover","","triggers","manual","popoverClass","j3-hover-interactive-popover","container","body","placement","auto",1,"element",3,"element-blocked","element-clickable","element-muted","ngbPopover","popoverContext","popoverTitle","disablePopover","autoClose"],["j3HoverInteractivePopover","","triggers","manual","popoverClass","j3-hover-interactive-popover","container","body","placement","auto",1,"element",3,"click","ngbPopover","popoverContext","popoverTitle","disablePopover","autoClose"],[1,"element-icon","position-relative"],[1,"position-absolute","top-0","start-100","translate-middle","badge","rounded-pill","element-badge",3,"ngClass"],[1,"menu-icon",3,"name"],[1,"material-icons","menu-icon"],[1,"element-title"]],template:function(i,r){i&1&&(zt(0,e_,2,4,"ng-template",null,0,pi),y(2,"div",1)(3,"div",2)(4,"div",3)(5,"h4",4),A(6,"Add Element"),w()(),y(7,"div",3)(8,"button",5),fe(9,"translate"),J("click",function(){return r.onCloseDialog()}),ge(10,"j3-icon",6),w()()()(),y(11,"div",7),st(12,s_,3,0,"div",8,Qt),w()),i&2&&(E(8),Oe("aria-label",be(9,1,"Close")),E(4),at(r.siteCategories))},dependencies:[Ce,hi,Ze,qi,eo,Ks,Ys,Ml,dt,as],styles:[".elements-container[_ngcontent-%COMP%]{align-items:flex-start;margin:0 -.5rem;padding:0}.element[_ngcontent-%COMP%]{cursor:default;justify-content:flex-start;margin:10px 2px;width:100px}.element-clickable[_ngcontent-%COMP%]{cursor:pointer}.element-icon[_ngcontent-%COMP%]{align-items:center;background:#ddd;border-radius:999px;box-sizing:border-box;display:flex;height:60px;justify-content:center;padding:10px;width:60px}.element-icon[_ngcontent-%COMP%]   .menu-icon[_ngcontent-%COMP%]{align-items:center;display:flex;font-size:40px;height:40px;justify-content:center;line-height:40px;width:40px}.element-title[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif;font-size:14px;margin-top:3px}.element-badge[_ngcontent-%COMP%]{font-size:.65rem}.element-badge.text-bg-primary[_ngcontent-%COMP%], .element-badge.text-bg-secondary[_ngcontent-%COMP%], .element-badge.text-bg-success[_ngcontent-%COMP%], .element-badge.text-bg-danger[_ngcontent-%COMP%], .element-badge.text-bg-info[_ngcontent-%COMP%], .element-badge.text-bg-dark[_ngcontent-%COMP%]{color:#fff!important}.element-badge.text-bg-warning[_ngcontent-%COMP%], .element-badge.text-bg-light[_ngcontent-%COMP%]{color:#000!important}.element-blocked[_ngcontent-%COMP%]{cursor:default!important}.element-muted.element-clickable[_ngcontent-%COMP%]{cursor:pointer}.element-muted[_ngcontent-%COMP%]   .element-icon[_ngcontent-%COMP%]{background:#fff!important;border:1px solid #adb5bd;color:#6c757d}.element-muted[_ngcontent-%COMP%]   .element-title[_ngcontent-%COMP%], .element-muted[_ngcontent-%COMP%]   .menu-icon[_ngcontent-%COMP%]{color:#6c757d}.element-popover-body[_ngcontent-%COMP%]{white-space:pre-line}"]})}}return t})();var Oa=(()=>{class t{constructor(e){this.activeModal=e,this.form=new un({})}ngOnInit(){this.fields=[{fieldGroup:[{type:"input",key:"cssClass",templateOptions:{label:"CSS Class"}}]}]}onCloseDialog(){this.activeModal.dismiss("dialog_closed")}onSaveChanges(){this.activeModal.close(this.row)}static{this.\u0275fac=function(i){return new(i||t)($(ni))}}static{this.\u0275cmp=ie({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"modal-head"],[1,"row"],[1,"col"],["id","modal-title",1,"modal-header-title","m-0"],["type","button","ngbAutofocus","",1,"btn","small-btn","float-end",2,"width","40px","height","40px","padding","8px","position","relative","left","8px",3,"click"],["name","close"],[1,"p-4","pt-0"],[3,"form","fields","model"],[1,"d-flex","gap-1"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"btn","btn-secondary",3,"click"]],template:function(i,r){i&1&&(y(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),A(4,"Row Settings"),w()(),y(5,"div",2)(6,"button",4),fe(7,"translate"),J("click",function(){return r.onCloseDialog()}),ge(8,"j3-icon",5),w()()()(),y(9,"div",6)(10,"div"),ge(11,"formly-form",7),w(),y(12,"div",8)(13,"button",9),J("click",function(){return r.onSaveChanges()}),A(14," Save "),w(),y(15,"button",10),J("click",function(){return r.onCloseDialog()}),A(16,"Cancel"),w()()()),i&2&&(E(6),Oe("aria-label",be(7,4,"Close")),E(5),W("form",r.form)("fields",r.fields)("model",r.row))},dependencies:[Ce,jt,Nt,Bn,Ze,qi,eo,dt],encapsulation:2})}}return t})();var Gc,a_=["destinationArrayForDraggableItems"],l_=["toggleButton"],c_=["menu"],qc=()=>[],d_=(t,n,e)=>({groups:t,component:n,messageRef:e}),u_=(t,n)=>n.uuid;function p_(t,n){t&1&&(y(0,"div",4),A(1),fe(2,"translate"),w()),t&2&&(E(),lt(" ",be(2,1,"Content presenter")," "))}function h_(t,n){if(t&1){let e=Te();y(0,"div",13)(1,"button",17),fe(2,"translate"),J("click",function(){ee(e);let r=S().$implicit,o=S(3);return te(o.onAddElement(r,0))}),y(3,"span",18),A(4," add_circle "),w()()()}t&2&&(E(),Oe("aria-label",be(2,1,"Add element")))}function f_(t,n){if(t&1){let e=Te();y(0,"element-content-presenter",20),fe(1,"async"),J("click",function(){ee(e);let r=S().$implicit,o=S().$implicit,s=S(3);return te(s.onSelectComponent(r,o))}),w()}if(t&2){let e=S().$implicit,i=S().$implicit,r=S().$implicit,o=S(2);Ee("selected",(o.$api==null?null:o.$api.designMode)&&i.selectedComponent===e)("hide-settings-button-list",be(1,10,o.isEdited)),W("designMode",!!(o.$api!=null&&o.$api.designMode))("containerAPI",o.$api)("item",e)("selected",!!(o.$api!=null&&o.$api.designMode)&&i.selectedComponent===e)("addedItem",o.addedItem)("layoutLocked",!!r.layoutLocked)}}function m_(t,n){t&1&&(y(0,"p",21),A(1," No permissions or Element is private "),w())}function g_(t,n){if(t&1){let e=Te();y(0,"div",13)(1,"button",22),fe(2,"translate"),J("click",function(){ee(e);let r=S().$index,o=S().$implicit,s=S(3);return te(s.onAddElement(o,r+1))}),y(3,"span",18),A(4," add_circle "),w()()()}t&2&&(E(),Oe("aria-label",be(2,1,"Add element")))}function v_(t,n){if(t&1&&(zt(0,f_,2,12,"element-content-presenter",19)(1,m_,2,0,"ng-template",null,1,pi),oe(3,g_,5,3,"div",13)),t&2){let e=n.$implicit,i=ei(2),r=S().$implicit,o=S().$implicit,s=S(2);W("audienceTargeting",Nu(2,d_,e==null||e.dataset==null?null:e.dataset.selectedGroups,e,i)),E(3),se(s.$api!=null&&s.$api.designMode&&r&&!o.layoutLocked?3:-1)}}function __(t,n){if(t&1){let e=Te();y(0,"div",14)(1,"button",23),fe(2,"translate"),J("click",function(){ee(e);let r=S().$implicit,o=S(3);return te(o.onAddElement(r,0))}),y(3,"span",18),A(4," add_circle "),w()()()}t&2&&(E(),Oe("aria-label",be(2,1,"Add element")))}function b_(t,n){t&1&&(y(0,"div",15)(1,"span",24),A(2,"lock"),w()())}function y_(t,n){t&1&&A(0," Set column size ")}function C_(t,n){t&1&&A(0," Increase column size ")}function w_(t,n){if(t&1){let e=Te();y(0,"div",16)(1,"div",25)(2,"span",26),A(3,"open_with"),w(),A(4),w(),y(5,"button",27,2),fe(7,"translate"),J("click",function(){ee(e);let r=S().$index,o=S().$implicit,s=S(2);return te(s.toggleSectionColumnMenu(o.sections[r].uuid))}),y(8,"span",28),A(9,"menu"),w()(),y(10,"div",null,3)(12,"div",29)(13,"button",30),J("click",function(){ee(e);let r=S().$index,o=S().$implicit,s=S(2);return te(s.swapSection(r,s.sectionDirection.LEFT,o))}),y(14,"span",26),A(15,"arrow_back"),w(),y(16,"span",31),A(17," Move column left "),w()(),y(18,"button",30),J("click",function(){ee(e);let r=S().$index,o=S().$implicit,s=S(2);return te(s.swapSection(r,s.sectionDirection.RIGHT,o))}),y(19,"span",26),A(20,"arrow_forward"),w(),y(21,"span",31),A(22," Move column right "),w()()(),y(23,"div",29)(24,"button",30),J("click",function(){ee(e);let r=S(4);return te(r.$api.addSection(!0))}),y(25,"span",26),A(26,"add"),w(),y(27,"span",31),A(28," Add column on left "),w()(),y(29,"button",30),J("click",function(){ee(e);let r=S(4);return te(r.$api.addSection())}),y(30,"span",26),A(31,"add"),w(),y(32,"span",31),A(33," Add column on right "),w()()(),y(34,"div",29)(35,"button",30),J("click",function(){ee(e);let r=S(4);return te(r.changeSectionSize(r.sectionSize.INCREMENT))}),y(36,"span",26),A(37,"add_circle_outline"),w(),y(38,"span",31),oe(39,y_,1,0)(40,C_,1,0),w()(),y(41,"button",30),J("click",function(){ee(e);let r=S(4);return te(r.changeSectionSize(r.sectionSize.DECREMENT))}),y(42,"span",26),A(43,"remove_circle_outline"),w(),y(44,"span",31),A(45," Decrease column size "),w()(),y(46,"button",30),J("click",function(){ee(e);let r=S(4);return te(r.setSectionSiteAuto())}),y(47,"span",26),A(48,"compare_arrows"),w(),y(49,"span",31),A(50," Set column size to auto "),w()()(),y(51,"div",29)(52,"button",30),J("click",function(){ee(e);let r=S().$implicit,o=S(3);return te(o.onRemoveSection(r))}),y(53,"span",26),A(54,"close"),w(),y(55,"span",31),A(56," Delete column "),w()()()()()}if(t&2){let e=S(),i=e.$implicit,r=e.$index,o=S().$implicit,s=S(2);E(4),lt(" Column (Size: ",i.size===0?"auto":i.size+"/12",") "),E(),Oe
40("aria-label",be(7,32,"Menu")),E(5),rt(ti("site-content-section-column-options-buttons site-content-section-column-options-buttons-",r)),Ee("active-options",(s.currentMenuColumnVisible==null?null:s.currentMenuColumnVisible.uuid)===o.sections[r].uuid&&(s.currentMenuColumnVisible==null?null:s.currentMenuColumnVisible.uuid)),E(3),Ee("disabled",s.isColumnLayoutActionDisabled(o,r<1)),W("disabled",s.isColumnLayoutActionDisabled(o,r<1)),E(5),Ee("disabled",s.isColumnLayoutActionDisabled(o,r===o.sections.length-1)),W("disabled",s.isColumnLayoutActionDisabled(o,r===o.sections.length-1)),E(6),Ee("disabled",s.isColumnLayoutActionDisabled(o,o.sections.length>11)),W("disabled",s.isColumnLayoutActionDisabled(o,o.sections.length>11)),E(5),Ee("disabled",s.isColumnLayoutActionDisabled(o,o.sections.length>11)),W("disabled",s.isColumnLayoutActionDisabled(o,o.sections.length>11)),E(6),Ee("disabled",s.isColumnLayoutActionDisabled(o,(s.selectedSection==null?null:s.selectedSection.size)>=12||s.sectionWidth>11&&(s.selectedSection==null?null:s.selectedSection.size)!==0)),W("disabled",s.isColumnLayoutActionDisabled(o,(s.selectedSection==null?null:s.selectedSection.size)>=12||s.sectionWidth>11&&(s.selectedSection==null?null:s.selectedSection.size)!==0)),E(4),se((s.selectedSection==null?null:s.selectedSection.size)===0?39:40),E(2),Ee("disabled",s.isColumnLayoutActionDisabled(o,(s.selectedSection==null?null:s.selectedSection.size)<=1)),W("disabled",s.isColumnLayoutActionDisabled(o,(s.selectedSection==null?null:s.selectedSection.size)<=1)),E(5),Ee("disabled",s.isColumnLayoutActionDisabled(o,(s.selectedSection==null?null:s.selectedSection.size)===0)),W("disabled",s.isColumnLayoutActionDisabled(o,(s.selectedSection==null?null:s.selectedSection.size)===0)),E(6),Ee("disabled",s.isColumnLayoutActionDisabled(o,o.sections.length<=1)),W("disabled",s.isColumnLayoutActionDisabled(o,o.sections.length<=1))}}function E_(t,n){if(t&1){let e=Te();y(0,"div",7),J("click",function(){let r=ee(e).$implicit,o=S(3);return te(o.setSelectedSection(r))}),y(1,"div",11)(2,"div",12,0),J("cdkDropListDropped",function(r){ee(e);let o=S(3);return te(o.onItemDropped(r))}),oe(4,h_,5,3,"div",13),st(5,v_,4,6,null,null,Qt),oe(7,__,5,3,"div",14),oe(8,b_,3,0,"div",15),w(),oe(9,w_,57,34,"div",16),w()()}if(t&2){let e=n.$implicit,i=n.$index,r=S().$implicit,o=S(2);rt(El("col-12 col-md",e.size===0?"":"-"+e.size," site-content-section-column site-content-section-column-",i,`
41            `)),Ee("selected",(o.selectedSection==null?null:o.selectedSection.uuid)===e.uuid&&o.$api.designMode)("designer",o.$api.designMode),E(2),W("cdkDropListData",e.items)("cdkDropListConnectedTo",o.$draggableContainers)("cdkDropListDisabled",!!r.layoutLocked),E(2),se(o.$api.designMode&&e&&(e.items==null?null:e.items.length)>0&&!r.layoutLocked?4:-1),E(),at(e.items??Bs(15,qc)),E(2),se(o.$api!=null&&o.$api.designMode&&e&&(e.items==null?null:e.items.length)===0&&!r.layoutLocked?7:-1),E(),se(o.$api!=null&&o.$api.designMode&&e&&(e.items==null?null:e.items.length)===0&&r.layoutLocked?8:-1),E(),se(o.$api!=null&&o.$api.designMode?9:-1)}}function S_(t,n){if(t&1){let e=Te();y(0,"div",10)(1,"div",32)(2,"div",33)(3,"span",34),A(4),w(),A(5),w(),y(6,"button",7,2),J("click",function(){ee(e);let r=S().$implicit,o=S(2);return te(o.toggleSectionRowMenu(r.uuid))}),y(8,"span"),A(9,"menu"),w()()(),y(10,"div",null,3)(12,"div",35)(13,"button",36),J("click",function(){ee(e);let r=S().$index,o=S(2);return te(o.swapRow(r,o.rowDirection.UP))}),y(14,"span",34),A(15,"arrow_upward"),w(),A(16," Move row up "),w(),y(17,"button",36),J("click",function(){ee(e);let r=S().$index,o=S(2);return te(o.swapRow(r,o.rowDirection.DOWN))}),y(18,"span",34),A(19,"arrow_downward"),w(),A(20," Move row down "),w()(),y(21,"div",35)(22,"button",7),J("click",function(){ee(e);let r=S(3);return te(r.$api.addRow(!0))}),y(23,"span",34),A(24,"add"),w(),A(25," Add row above "),w(),y(26,"button",7),J("click",function(){ee(e);let r=S(3);return te(r.$api.addRow())}),y(27,"span",34),A(28,"add"),w(),A(29," Add row below "),w()(),y(30,"div",35)(31,"button",7),J("click",function(){ee(e);let r=S(3);return te(r.rowSettings())}),y(32,"span",34),A(33,"settings"),w(),A(34," Row settings "),w(),y(35,"button",7),fe(36,"translate"),J("click",function(){ee(e);let r=S().$implicit,o=S(2);return te(o.toggleRowLayoutLock(r))}),y(37,"span",34),A(38),w(),A(39),w()(),y(40,"div",35)(41,"button",36),J("click",function(){ee(e);let r=S(3);return te(r.removeRow())}),y(42,"span",34),A(43,"close"),w(),A(44," Delete row "),w()()()()}if(t&2){let e=S(),i=e.$implicit,r=e.$index,o=S(2);E(4),Be(i.layoutLocked?"lock":"open_with"),E(),lt(" Row ",r+1," "),E(),rt(ti("site-content-section-row-options-buttons-toggle site-content-section-row-options-buttons-toggle-",r)),E(2),rt(ti("app-icon material-icons site-content-section-row-options-buttons-toggle-icon site-content-section-row-options-buttons-toggle-icon-",r)),E(2),rt(ti("site-content-section-row-options-buttons site-content-section-row-options-buttons-",r)),Ee("active-options",(o.currentMenuRowVisible==null?null:o.currentMenuRowVisible.uuid)===i.uuid),E(3),rt(ti("site-content-section-row-options-buttons-item site-content-section-row-options-buttons-item-",r)),Ee("disabled",r<1),W("disabled",r<1),E(4),rt(ti("site-content-section-row-options-buttons-item site-content-section-row-options-buttons-item-",r)),Ee("disabled",o.$api.rows.length<1||r===o.$api.rows.length-1),W("disabled",o.$api.rows.length<1||r===o.$api.rows.length-1),E(5),rt(ti("site-content-section-row-options-buttons-item site-content-section-row-options-buttons-item-",r)),E(4),rt(ti("site-content-section-row-options-buttons-item site-content-section-row-options-buttons-item-",r)),E(5),rt(ti("site-content-section-row-options-buttons-item site-content-section-row-options-buttons-item-",r)),E(4),rt(ti("site-content-section-row-options-buttons-item site-content-section-row-options-buttons-item-",r)),Oe("aria-label",be(36,46,i.layoutLocked?"Unlock layout":"Lock layout")),E(3),Be(i.layoutLocked?"lock_open":"lock"),E(),lt(" ",i.layoutLocked?"Unlock layout":"Lock layout"," "),E(2),rt(ti("site-content-section-row-options-buttons-item site-content-section-row-options-buttons-item-",r)),Ee("disabled",o.$api.rows.length<=1),W("disabled",o.$api.rows.length<=1)}}function I_(t,n){if(t&1){let e=Te();y(0,"div",7),J("click",function(){let r=ee(e).$implicit,o=S(2);return te(o.setSelectedRow(r))}),y(1,"div",8),st(2,E_,10,16,"div",9,Qt),w(),oe(4,S_,45,48,"div",10),w()}if(t&2){let e=n.$implicit,i=n.$index,r=S(2);rt(El("row site-content-section-row site-content-section-row-",i," ",e.cssClass)),Ee("designer",r.$api.designMode)("layout-locked",r.$api.designMode&&e.layoutLocked)("selected",(r.selectedRow==null?null:r.selectedRow.uuid)===e.uuid&&r.$api.designMode),E(2),at(e.sections??Bs(11,qc)),E(2),se(r.$api!=null&&r.$api.designMode?4:-1)}}function x_(t,n){if(t&1&&(y(0,"div",5),st(1,I_,5,12,"div",6,u_),w()),t&2){let e=S();E(),at(e.$api.rows??Bs(0,qc))}}var T_="cms-content-builder",ls=class Wc extends Ki{static{Gc=this}#e;constructor(e,i,r,o,s,a,l,c,p,h){super(Gc),this.platformId=e,this.moduleProvider=i,this.confirmModal=r,this.renderer=o,this.$changeDetector=s,this.modal=a,this.$api=l,this.cookieService=c,this.store=p,this.iGdprDataProvider=h,this.$draggableContainers=[],this.rowDirection=ns,this.sectionDirection=rs,this.sectionSize=os,this.selectedRow={sections:[],uuid:""},this.currentMenuColumnVisible={},this.currentMenuRowVisible={},this.isEdited=new nt(!1),this.addedItem=!1,this.cookieKey="J3CookiesAccepted"}contentBlocked(){return this.contentBlockedObserver||(this.contentBlockedObserver=this.store.select(ip.gdprSettingsSelectors.gdprSettingsSelector.gdprSettingsSelector).pipe(At(this.destroyRef),Pe(()=>!Ke(this.platformId)||this.moduleProvider.applicationType===fr.ADMIN?!1:window?.navigator?.cookieEnabled?Ue.CookieState[this.cookieService.get(this.cookieKey)]===Ue.CookieState.REJECTED:!0))),this.contentBlockedObserver}ngOnInit(){this.templateDesignMode||(this.$api.addElement=this.addElement.bind(this),this.$api.removeElement=this.removeElement.bind(this),this.$api.addRow=this.addRow.bind(this),this.$api.removeRow=this.removeRow.bind(this),this.$api.addSection=this.addSection.bind(this),this.$api.changeSectionSize=this.changeSectionSize.bind(this),this.$api.setSectionSiteAuto=this.setSectionSiteAuto.bind(this),this.$api.removeSection=this.removeSection.bind(this),this.$api.beforeSaveChanges=this.beforeSaveChanges.bind(this),this.$api.contentBlocked=this.contentBlocked.bind(this),this.$api.onNavigateToPolicy=this.onNavigateToPolicy.bind(this),this.$api.acceptCookies=this.acceptCookies.bind(this),this.$api.reset$.pipe(At(this.destroyRef)).subscribe(()=>{this.addedItem=!1,this.#e=void 0}),this.$api.rowsUpdated$.pipe(At(this.destroyRef)).subscribe(()=>{this.$changeDetector.detectChanges()}),!Ie(this.platformId)&&this.renderer.listen("window","click",e=>{let i=!0,r=!0;this.toggleButton.forEach(o=>{e.target===o.nativeElement.children[0]&&(i=!1)}),this.menu.forEach(o=>{e.target.parentNode===o.nativeElement&&(r=!1)}),i&&r&&(this.currentMenuRowVisible={},this.currentMenuColumnVisible={})}))}onNavigateToPolicy(){this.iGdprDataProvider.onNavigateToPolicy()}acceptCookies(){this.iGdprDataProvider.onCookeResponse(Ue.CookieState.ACCEPTED,this.cookieKey),this.cookieService.set("ga_enabled","true",{expires:fi.now().plus({months:6}).toJSDate(),path:"/"}),this.store.select(hr.selectEntity).pipe(Ne(e=>!we(e)),Se(1)).subscribe(e=>{this.iGdprDataProvider.initGoogleAnalytics(e),this.iGdprDataProvider.co
41okiesAccept$.next(Ue.CookieState.ACCEPTED)})}ngAfterViewInit(){this.templateDesignMode||(this.updateDraggableContainers(),this.$api.rows?.length&&this.$changeDetector.detectChanges())}setSelectedSection(e){this.selectedSection=e,this.$api.selectedSection=e,this.checkSectionsWidth()}onSelectComponent(e,i){this.templateDesignMode||!this.$api.designMode||we(e)||we(i)||e.uuid!==this.#e?.uuid&&(we(this.#e?.instance)||this.#e.instance.isFocused$.next(!1),this.#e=e,i.selectedComponent=e,e.instance&&(this.isEdited=e.instance.isEdited,e.instance.isFocused$.next(!0)))}onItemDropped(e){if(this.isItemsLayoutLocked(e.previousContainer.data)||this.isItemsLayoutLocked(e.container.data))return;let{previousContainer:i,container:r,previousIndex:o,currentIndex:s}=e;if(i===r){_r(r.data,o,s);return}Mh(i.data,r.data,o,s)}onAddElement(e,i){if(this.isSectionLayoutLocked(e))return;this.$api.index=i||0,this.setSelectedSection(e);let r=this.modal.open(Ra,{size:"element-selector"});r.componentInstance.containerAPI=this.$api,Tn(r.closed,r.dismissed).pipe(Se(1)).subscribe(o=>{console.log(o),this.addedItem=!1})}onRemoveSection(e){this.isSectionLayoutLocked(e)||(this.setSelectedSection(e),this.removeSection())}swapRow(e,i){let{rows:r}=this.$api,o=i===ns.UP?-1:1;[r[e],r[e+o]]=[r[e+o],r[e]]}swapSection(e,i,r){if(this.isRowLayoutLocked(r))return;let{sections:o}=r,s=i===rs.LEFT?-1:1;[o[e],o[e+s]]=[o[e+s],o[e]]}setSelectedRow(e){this.selectedRow=e,this.checkSectionsWidth()}beforeSaveChanges(){let e=[xe(!0)],i=this.$api.rows.map(r=>r.sections).flat().map(r=>r.items).flat();for(let{instance:r}of i)e.push(r?r.onSaveChanges():xe(!0));return xi(e).pipe(Ae(r=>xe(r.every(o=>!!o))))}addElement(e,i){this.isSectionLayoutLocked(this.selectedSection)||(this.addedItem=!0,this.selectedSection.items.splice(i,0,U(T({},e),{uuid:Vt(),parent:this.selectedSection})))}addRow(e){let i={items:[],uuid:Vt(),size:12},r=e?this.$api.rows.indexOf(this.selectedRow):this.$api.rows.indexOf(this.selectedRow)+1;this.$api.rows.splice(r,0,{sections:[i],uuid:Vt()}),this.setSelectedSection(i),this.updateDraggableContainers()}checkSections(e){return e.sections?.some(i=>!!i.items?.length)??!1}isRowLayoutLocked(e){return!!e?.layoutLocked}isColumnLayoutActionDisabled(e,i=!1){return i||this.isRowLayoutLocked(e)}toggleRowLayoutLock(e){e.layoutLocked=!e.layoutLocked,this.setSelectedRow(e),this.currentMenuColumnVisible={},this.$changeDetector.detectChanges()}rowSettings(){let e=this.modal.open(Oa,{size:"element-selector"});e.componentInstance.row=U(T({},this.selectedRow),{sections:[]}),e.closed.subscribe(i=>{this.selectedRow.cssClass=i.cssClass})}removeRow(){this.checkSections(this.selectedRow)&&this.confirmModal?this.confirmModal.confirm({title:"Remove row",message:"Are you sure you want to remove this row? All sections and content in it will be deleted.",type:"warning"}).pipe(At(this.destroyRef),Se(1)).subscribe(()=>this.deleteSelectedRow(this.selectedRow)):this.deleteSelectedRow(this.selectedRow)}deleteSelectedRow(e){this.$api.rows.splice(this.$api.rows.indexOf(e),1),this.setSelectedSection(null),this.updateDraggableContainers()}removeElement(e){if(this.isSectionLayoutLocked(e?.parent))return;let{items:i}=e.parent;e.parent.items.splice(i.indexOf(e),1),this.updateDraggableContainers()}updateDraggableContainers(){if(!(this.templateDesignMode||!this.$api?.designMode)&&(this.$draggableContainers=this.destinationArrayForDraggableItems?.toArray(),!!this.$api)){if(!we(this.$api?.rows)&&this.$api.rows.length)for(let e of this.$api.rows.map(i=>i.sections).flat())for(let i of e.items)i.parent=e;this.$changeDetector.detectChanges()}}changeSectionSize(e){if(this.isRowLayoutLocked(this.selectedRow))return;let{sections:i}=this.selectedRow;if(e===os.DECREMENT){this.selectedSection.size=this.selectedSection.size>1?this.selectedSection.size-1:Math.floor(12/i.length);return}let r=i.filter(s=>s.size===0),o=i.reduce((s,a)=>a.size===0?s+2:s+a.size,0);this.selectedSection.size!==0&&this.selectedSection.size<12&&o<12?this.selectedSection.size++:this.selectedSection.size===0?this.selectedSection.size=Math.floor((12-o+r.length)/r.length):o<12&&(this.selectedSection.size=Math.floor(12/i.length)),this.checkSectionsWidth()}setSectionSiteAuto(){this.isRowLayoutLocked(this.selectedRow)||(this.selectedSection.size=0,this.checkSectionsWidth())}addSection(e){if(this.isRowLayoutLocked(this.selectedRow))return;let{sections:i}=this.selectedRow,r=i.filter(l=>l.size===0),o=i.reduce((l,c)=>c.size===0?l+2:l+c.size,0),s=r.length===0?1:r.length,a=Math.floor((12-o)/s);if(this.sectionWidth>11&&o<12)return!1;if(o<12){let l=e?i.indexOf(this.selectedSection):i.indexOf(this.selectedSection)+1;
41i.splice(l,0,{uuid:Vt(),items:[],size:a<1?1:a})}else{let l=i.length+1,c=12%l,p=Math.floor(12/l),h=e?i.indexOf(this.selectedSection):i.indexOf(this.selectedSection)+1;i.splice(h,0,{uuid:Vt(),items:[],size:p}),i.forEach(f=>{f.size===0?f.size=0:f.size=p}),i[h].size=p+c}this.updateDraggableContainers()}removeSection(){if(this.isRowLayoutLocked(this.selectedRow))return;let{sections:e}=this.selectedRow,{rows:i}=this.$api;e.splice(e.indexOf(this.selectedSection),1),e.length===0&&(i.splice(i.indexOf(this.selectedRow),1),this.setSelectedRow(i.length===0?void 0:i[0])),this.setSelectedSection(this.selectedRow&&this.selectedRow.sections?.length>0?this.selectedRow.sections[0]:void 0),this.updateDraggableContainers()}toggleSectionColumnMenu(e){this.currentMenuColumnVisible=this.currentMenuColumnVisible.uuid===e?{}:{uuid:e},this.currentMenuRowVisible={}}toggleSectionRowMenu(e){this.currentMenuRowVisible=this.currentMenuRowVisible.uuid===e?{}:{uuid:e},this.currentMenuColumnVisible={}}isSectionLayoutLocked(e){if(!e)return!1;let i=this.$api.rows?.find(r=>r.sections?.includes(e));return this.isRowLayoutLocked(i)}isItemsLayoutLocked(e){if(!e)return!1;let i=this.$api.rows?.flatMap(r=>r.sections??[]).find(r=>r.items===e);return this.isSectionLayoutLocked(i)}checkSectionsWidth(){let e=0,i=this.selectedRow?.sections;i?.length&&(i.forEach(r=>{let o=r.size===0?2:r.size;e=e+o}),this.sectionWidth=e)}static{this.\u0275fac=function(i){return new(i||Wc)($(ze),$(Zs),$(yf,8),$(Zt),$(ct),$(gi),$(no),$(wi),$(Rt),$(Al,8))}}static{this.\u0275cmp=ie({type:Wc,selectors:[["cms-content-builder"]],viewQuery:function(i,r){if(i&1&&ft(a_,5)(l_,5)(c_,5),i&2){let o;Ge(o=We())&&(r.destinationArrayForDraggableItems=o),Ge(o=We())&&(r.toggleButton=o),Ge(o=We())&&(r.menu=o)}},inputs:{selectedSection:"selectedSection"},features:[tt],decls:3,vars:2,consts:[["destinationArrayForDraggableItems","cdkDropList"],["testTemplate",""],["toggleButton",""],["menu",""],[1,"w-100","h-100","d-block","content-builder-template-mock"],["role","main","cdkDropListGroup","",1,"site-content-container"],[3,"class","designer","layout-locked","selected"],[3,"click"],["role","region","aria-label","Content section",1,"site-content-section-column-wrapper"],[3,"class","selected","designer"],[1,"site-content-section-row-options-container"],[1,"site-content-section-column-items-container","container-for-draggable-items"],["cdkDropList","",1,"sub-container-for-draggable-items",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo","cdkDropListDisabled"],[1,"site-content-section-column-items-add-element-wrapper"],[1,"site-content-section-column-items-add-element-container"],[1,"site-content-section-column-items-add-element-container","site-content-section-column-items-layout-locked-empty"],[1,"site-content-section-column-options-container"],["color","primary",1,"site-content-section-column-items-add-element-button","site-content-section-column-items-add-element-button-top",3,"click"],[1,"material-icons-outlined"],["class","site-content-section-column-items-content-presenter content-presenter",3,"designMode","containerAPI","item","selected","hide-settings-button-list","addedItem","layoutLocked","click",4,"audienceTargeting"],[1,"site-content-section-column-items-content-presenter","content-presenter",3,"click","designMode","containerAPI","item","selected","addedItem","layoutLocked"],[1,"p-3","w-100","text-center","bg-secondary","text-white","ng-star-inserted"],["color","primary",1,"site-content-section-column-items-add-element-button","site-content-section-column-items-add-element-button-content-presenter",3,"click"],["color","primary",1,"site-content-section-column-items-add-element-button","site-content-section-column-items-add-element-button-empty-row",3,"click"],[1,"material-icons"],[1,"site-content-section-column-options-info"],[1,"app-icon","material-icons","site-content-section-column-options-info-icon"],[1,"site-content-section-column-options-buttons-toggle",3,"click"],[1,"app-icon","material-icons","site-content-section-column-options-buttons-toggle-icon"],[1,"site-content-section-column-options-buttons-wrapper"],[1,"site-content-section-column-options-buttons-item",3,"click","disabled"],[1,"site-content-section-column-options-info-text"],[1,"site-content-section-row-options-menu"],[1,"site-content-section-row-options-info"],[1,"app-icon","material-icons","site-content-section-row-options-info-icon"],[1,"site-content-section-row-options-buttons-wrapper"],[3,"click","disabled"]],template:function(i,r){i&1&&(oe(0,p_,3,3,"div",4),zs(1),oe(2,x_,3,1,"div",5),Vs()),i&2&&(se(r.templateDesignMode?0:-1),E(2),se(r.templateDesignMode?-1:2))},dependencies:[Ce,Wi,ga,Vh,Ze,is,Aa,Lr,dt],encapsulation:2})}};ls=Gc=rr([Bc({selector:T_,displayName:"Content",icon:"settings"}),or("design:paramtypes",[Object,_p,Object,Zt,ct,gi,no,wi,Rt,Al])],ls);var Df="ngh",P_=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this.$templateParser=i,this.$renderer=r,this.$contentContainer=o,this.$componentFactory=s,this.$applicationRef=a,this.injector=l,this.platformId=c,this.$viewInitialized=!1,this.$ssrHydrationAttempted=!1,this.$dataset={}
41,this.ngComponentsValue=[],this.$templateComponentsDef=e.flat().map(p=>{let h=Xt.getComponentMetadata(wt.TEMPLATE_COMPONENT_DESCRIPTION_META_KEY,p);return{component:p,metadata:h&&h.length>0?h[0]:void 0}})}get templateDef(){return this.$templateDef}set templateDef(e){this.$templateDef=e,this.initializeTemplateRenderer()}get dataset(){return this.$dataset}set dataset(e){this.$dataset=e}ngAfterViewInit(){this.$viewInitialized=!0,this.initializeTemplateRenderer()}initializeTemplateRenderer(){if(!this.$viewInitialized||!this.templateDef?.templateHtml)return;let{templateHtml:e,dataset:i,styles:r=[]}=this.templateDef,o=this.$contentContainer.element.nativeElement,s=this.$templateParser.parseHtml(e);this.tryHydrateServerRenderedTemplate(o,s.rootNodes,r)||(this.clearRenderedContent(o),this.renderStyles(o,r),this.renderTemplate(s.rootNodes,o,i))}tryHydrateServerRenderedTemplate(e,i,r){if(this.$ssrHydrationAttempted||!Ke(this.platformId)||(this.$ssrHydrationAttempted=!0,!e.firstElementChild))return!1;let o=this.matchServerRenderedStyles(e,r);return o===void 0||!this.matchServerRenderedNodes(i,o)?!1:(this.hydrateServerRenderedNodes(i,e,o),!0)}matchServerRenderedStyles(e,i){let r=Array.from(new Set(i.filter(s=>s.trim().length>0))).filter(s=>this.isAllowedStyleHref(s)),o=e.firstElementChild;for(let s of r){if(o?.localName!=="link"||o.getAttribute("href")!==s)return;o=o.nextElementSibling}return o}findTemplateComponent(e){return this.$templateComponentsDef.find(i=>i.metadata?.selector===e)}getTemplateComponentHostTag(e,i){let r=i.find(s=>s.name===Ea),o;if(r)try{o=JSON.parse(r.value.replace(/'/g,'"').replace(/,(?!\s*?[{["'\w])/g,""))?.dataset?.customTag}catch(s){o=void 0}return(o||e.metadata?.defaultTag||"div").toLowerCase()}matchServerRenderedNodes(e,i){let r=i;for(let o of e||[]){if(!this.isElementNode(o)||o.name==="script")continue;if(!r)return!1;let s=this.findTemplateComponent(o.name);if(s){let a=s.metadata?.selector??"";if(r.localName!==this.getTemplateComponentHostTag(s,o.attrs)||!r.id.startsWith(`${a}-`)||!r.hasAttribute(Df))return!1}else if(r.localName!==o.name.toLowerCase()||!this.matchServerRenderedNodes(o.children,r.firstElementChild))return!1;r=r.nextElementSibling}return r===null}hydrateServerRenderedNodes(e,i,r){let o=r;for(let s of e||[]){if(!this.isElementNode(s))continue;if(s.name==="script"){let h=this.$renderer.createElement("script");for(let f of s.attrs||[])this.$renderer.setAttribute(h,f.name,f.value);this.renderTemplate(s.children,h),this.$renderer.insertBefore(i,h,o);continue}let a=o;o=a.nextElementSibling;let l=this.findTemplateComponent(s.name);if(!l){this.hydrateServerRenderedNodes(s.children,a,a.firstElementChild);continue}let c=this.getDatasetForComponent(s.attrs),p=this.ngComponentsValue.length;try{let h=this.createAngularComponent(l.component,a,c);this.$applicationRef.attachView(h.hostView)}catch(h){console.warn("[TemplateResolver] SSR hydration failed, re-rendering component:",s.name,h),this.rerenderTemplateComponent(l,a,c,p)}}}rerenderTemplateComponent(e,i,r,o){this.ngComponentsValue.splice(o).forEach(s=>{try{this.$applicationRef.detachView(s.hostView),s.destroy()}catch(a){}}),i.removeAttribute(Df),Array.from(i.childNodes).forEach(s=>this.$renderer.removeChild(i,s));try{let s=this.createAngularComponent(e.component,i,r);this.$applicationRef.attachView(s.hostView)}catch(s){console.warn(s)}}clearRenderedContent(e){this.$contentContainer.clear(),this.ngComponentsValue.forEach(i=>{this.$applicationRef.detachView(i.hostView),i.destroy(),i.changeDetectorRef.detach()}),this.ngComponentsValue=[],Array.from(e.childNodes).forEach(i=>this.$renderer.removeChild(e,i))}renderStyles(e,i){Array.from(new Set(i.filter(o=>o.trim().length>0))).forEach(o=>{if(!this.isAllowedStyleHref(o))return;let s=this.$renderer.createElement("link");this.$renderer.setAttribute(s,"type","text/css"),this.$renderer.setAttribute(s,"rel","stylesheet"),this.$renderer.setAttribute(s,"href",o),this.$renderer.appendChild(e,s)})}isAllowedStyleHref(e){try{let i=new URL(e,"https://local.schooljotter3.com");return i.protocol==="https:"||i.protocol==="http:"}catch(i){return!1}}renderTemplate(e,i,r){for(let o of e||[]){if(this.isTextNode(o)){let h=this.$renderer.createText(o.value);this.$renderer.appendChild(i,h);continue}if(!this.isElementNode(o))continue;let{name:s,attrs:a,children:l=[]}
41=o,c=this.$templateComponentsDef.find(h=>h.metadata?.selector===s);if(!we(c)){try{let h=c?.metadata?.defaultTag||"div",f=a.find(m=>m.name===Ea),d={};try{d=f?JSON.parse(f.value.replace(/'/g,'"').replace(/,(?!\s*?[{["'\w])/g,"")):""}catch(m){f&&console.error("[TemplateResolver] JSON.parse failed (renderTemplate), selector:",s,", error:",m instanceof Error?m.message:m)}let u=this.$renderer.createElement(d.dataset?.customTag||h),g=d.dataset?.customClass?d.dataset.customClass.split(" "):[];c?.metadata?.defaultClass&&this.$renderer.addClass(u,c.metadata.defaultClass),this.$renderer.setAttribute(u,"id",`${c.metadata.selector}-${Vt()}`),d.dataset?.ariaLabel&&this.$renderer.setAttribute(u,"aria-label",d.dataset.ariaLabel),d.dataset?.ariaLabelledBy&&this.$renderer.setAttribute(u,"aria-labelledby",d.dataset.ariaLabelledBy),d.dataset?.ariaDescribedby&&this.$renderer.setAttribute(u,"aria-describedby",d.dataset.ariaDescribedby);for(let m of g)this.$renderer.addClass(u,m);this.$renderer.appendChild(i,u);let b=this.createAngularComponent(c.component,u,this.getDatasetForComponent(a));this.$applicationRef.attachView(b.hostView)}catch(h){console.warn(h)}continue}if(s==="script"&&Ie(this.platformId))continue;let p=this.$renderer.createElement(s);for(let h of a||[])this.$renderer.setAttribute(p,h.name,h.value);this.renderTemplate(l,p,r),this.$renderer.appendChild(i,p)}}getDatasetForComponent(e){let i=e.find(o=>o.name===Ea);if(!i)return;let r=i.value.replace(/'/g,'"').replace(/,(?!\s*?[{["'\w])/g,"");try{let o=JSON.parse(r),{dataset:s}=o;return s}catch(o){console.error("[TemplateResolver] JSON.parse failed (getDatasetForComponent):",o instanceof Error?o.message:o),console.error("[TemplateResolver] datasetProp",i),console.error("[TemplateResolver",e);return}}isElementNode(e){return typeof e.name=="string"&&Array.isArray(e.attrs)}isTextNode(e){return typeof e.value=="string"&&!this.isElementNode(e)}createAngularComponent(e,i,r){let s=this.$componentFactory.resolveComponentFactory(e).create(this.injector,[],i);return r&&s.instance.setDataset(r),this.ngComponentsValue.push(s),s.changeDetectorRef.detectChanges(),s}ngOnDestroy(){this.ngComponentsValue.forEach(e=>{this.$applicationRef.detachView(e.hostView),e.destroy(),e.changeDetectorRef.detach()}),this.ngComponentsValue=[]}static{this.\u0275fac=function(i){return new(i||t)($(wa),$(Da),$(Zt),$(Bt),$(Ns),$(lr),$(ht),$(ze))}}static{this.\u0275cmp=ie({type:t,selectors:[["cms-template-resolver"]],inputs:{templateDef:"templateDef",dataset:"dataset"},decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}}return t})();var Hn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Mt({type:t})}static{this.\u0275inj=Dt({})}}return t})();var k_=(t,n=[])=>[{provide:jn,useValue:t,multi:!0},{provide:wa,useValue:[...n,ls]}],Mf=(t,n=[])=>({ngModule:D_,providers:k_(t,n)}),D_=(()=>{class t{constructor(e){e.registerIcons([Kh,Bh,Gh,qh,Xh,Jh,Yh,af,Uh,Qh,nf,jh,tf,rf,sf,Wh,lf,ef,Zh,Hh,of,$h])}static WithComponents(e,i,r){return Mf(e,i||[])}static forChild(e=[],i=[]){return Mf(e,i||[])}static{this.\u0275fac=function(i){return new(i||t)(ye(Qr))}}static{this.\u0275mod=Mt({type:t})}static{this.\u0275inj=Dt({providers:[$c,Da,no,ka,is],imports:[Ce,ii,Ze.forChild(),jt,Wi,qi,Nt.forChild({validators:[{name:"J3BaseContentComponentDatesValidator",validation:mr.dateValidator}]}),xo,Hn,Aa,Ma,Ra,Oa,ls,Hn]})}}return t})();var La=()=>{let t=typeof window<"u"?window:void 0;return t&&t.tinymce?t.tinymce:null},M_=(()=>{class t{onBeforePaste=new j;onBlur=new j;onClick=new j;onCompositionEnd=new j;onCompositionStart=new j;onCompositionUpdate=new j;onContextMenu=new j;onCopy=new j;onCut=new j;onDblclick=new j;onDrag=new j;onDragDrop=new j;onDragEnd=new j;onDragGesture=new j;onDragOver=new j;onDrop=new j;onFocus=new j;onFocusIn=new j;onFocusOut=new j;onKeyDown=new j;onKeyPress=new j;onKeyUp=new j;onMouseDown=new j;onMouseEnter=new j;onMouseLeave=new j;onMouseMove=new j;onMouseOut=new j;onMouseOver=new j;onMouseUp=new j;onPaste=new j;onSelectionChange=new j;onActivate=new j;onAddUndo=new j;onBeforeAddUndo=new j;onBeforeExecCommand=new j;onBeforeGetContent=new j;onBeforeRenderUI=new j;onBeforeSetContent=new j;onChange=new j;onClearUndos=new j;onDeactivate=new j;onDirty=new j;onExecCommand=new j;onGetContent=new j;onHide=new j;onInit=new j;onInput=new j;onInitNgModel=new j;onLoadContent=new j;onNodeChange=new j;onPostProcess=new j;onPostRender=new j;onPreInit=new j;onPreProcess=new j;onProgressState=new j;onRedo=new j;onRemove=new j;onReset=new j;onResizeEditor=new j;onSaveContent=new j;onSetAttrib=new j;onObjectResizeStart=new j;onObjectResized=new j;onObjectSelected=new j;onSetContent=new j;onShow=new j;onSubmit=new j;onUndo=new j;onVisualAid=new j;static \u0275fac=function(i){return new(i||t)};static \u0275dir=_t({type:t,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onCompositionEnd:"onCompositionEnd",onCompositionStart:"onCompositionStart",onCompositionUpdate:"onCompositionUpdate",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onF
41ocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInput:"onInput",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"},standalone:!1})}return t})(),Af=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onCompositionEnd","onCompositionStart","onCompositionUpdate","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],Na=(t,n,e)=>_o(t,n).pipe(an(e)),A_=(t,n,e)=>{R_(t).forEach(r=>{let o=t[r];Na(n,r.substring(2),e).subscribe(s=>{F_(o)&&t.ngZone.run(()=>o.emit({event:s,editor:n}))})})},R_=t=>{let n=Rf(t.ignoreEvents,[]);return Rf(t.allowedEvents,Af).filter(i=>Af.includes(i)&&!n.includes(i))},Rf=(t,n)=>typeof t=="string"?t.split(",").map(e=>e.trim()):Array.isArray(t)?t:n,Of=0,O_=t=>{let e=new Date().getTime(),i=Math.floor(Math.random()*1e9);return Of++,t+"_"+i+Of+String(e)},Lf=t=>typeof t<"u"&&t.tagName.toLowerCase()==="textarea",Nf=t=>typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" "),L_=(t,n)=>Nf(t).concat(Nf(n)),N_=()=>{},Ff=t=>t==null,F_=t=>t.observed||t.observers?.length>0,zf=(t,n)=>{typeof t.mode?.set=="function"?t.mode.set(n):"setMode"in t&&typeof t.setMode=="function"&&t.setMode(n)},Vf=t=>t.options&&t.options.isRegistered("disabled"),z_=()=>t=>t.pipe(Eu(),Pe(()=>{})),V_=()=>{let t=new nt(null),n=t.pipe(Ne(Boolean),Ae(([e,i])=>{let r=e.createElement("script");return r.referrerPolicy="origin",r.type="application/javascript",r.src=i,e.head.appendChild(r),_o(r,"load").pipe(z_())}),yl({bufferSize:1,refCount:!0}));return{load:(...e)=>(t.getValue()||t.next(e),n),reinitialize:()=>{t.next(null)}}},B_=V_(),j_=new qe("TINYMCE_SCRIPT_SRC"),$_={provide:$r,useExisting:ar(()=>Fa),multi:!0},Fa=(()=>{class t extends M_{cdRef;platformId;tinymceScriptSrc;cloudChannel="8";apiKey="no-api-key";licenseKey="gpl";init;id="";initialValue;outputFormat;inline;tagName;plugins;toolbar;modelEvents="change input undo redo";allowedEvents;ignoreEvents;set readonly(e){this._readonly=e,this._editor&&zf(this._editor,e?"readonly":"design")}get readonly(){return this._readonly}set disabled(e){this._disabled=e,this._editor&&(Vf(this._editor)?this._editor.options.set("disabled",e??!1):zf(this._editor,e?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}ngZone;_elementRef;_element;_disabled;_readonly;_editor;onTouchedCallback=N_;onChangeCallback;destroy$=new Ve;constructor(e,i,r,o,s){super(),this.cdRef=r,this.platformId=o,this.tinymceScriptSrc=s,this._elementRef=e,this.ngZone=i}writeValue(e){this._editor&&this._editor.initialized?this._editor.setContent(Ff(e)?"":e):this.initialValue=e===null?void 0:e}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.disabled=e}ngAfterViewInit(){Ke(this.platformId)&&(this.id=this.id||O_("tiny-angular"),this.inline=this.inl
41ine!==void 0?this.inline!==!1:!!this.init?.inline,this.createElement(),La()!==null?this.initialise():this._element&&this._element.ownerDocument&&B_.load(this._element.ownerDocument,this.getScriptSrc()).pipe(an(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),La()!==null&&La().remove(this._editor)}createElement(){let e=typeof this.tagName=="string"?this.tagName:"div";if(this._element=document.createElement(this.inline?e:"textarea"),this._element){let i=document.getElementById(this.id);i&&i!==this._elementRef.nativeElement&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,Lf(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element)}}initialise=()=>{let e=U(T({},this.init),{selector:void 0,target:this._element,inline:this.inline,disabled:this.disabled,readonly:this.readonly,license_key:this.licenseKey,plugins:L_(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:i=>{this._editor=i,Na(i,"init",this.destroy$).subscribe(()=>{this.initEditor(i)}),A_(this,i,this.destroy$),this.init&&typeof this.init.setup=="function"&&this.init.setup(i),this.disabled===!0&&(Vf(i)?this._editor.options.set("disabled",this.disabled):this._editor.mode.set("readonly"))}});Lf(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{La().init(e)})};getScriptSrc(){return Ff(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(e){Na(e,"blur",this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.onTouchedCallback())}),Na(e,this.modelEvents,this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.emitOnChange(e))}),typeof this.initialValue=="string"&&this.ngZone.run(()=>{e.setContent(this.initialValue),e.getContent()!==this.initialValue&&this.emitOnChange(e),this.onInitNgModel!==void 0&&this.onInitNgModel.emit(e)})}emitOnChange(e){this.onChangeCallback&&this.onChangeCallback(e.getContent({format:this.outputFormat}))}static \u0275fac=function(i){return new(i||t)($(Jt),$(vt),$(ct),$(ze),$(j_,8))};static \u0275cmp=ie({type:t,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",licenseKey:"licenseKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",readonly:"readonly",disabled:"disabled"},features:[bt([$_]),tt],decls:0,vars:0,template:function(i,r){},dependencies:[Ce,ii],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return t})(),cs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Mt({type:t});static \u0275inj=Dt({imports:[Fa]})}return t})();var za=(()=>{class t{constructor(){this.#e=q(Ku),this.toasts=[]}#e;#t(e){this.toasts.push(e)}successToast(e="Success!",i,r){this.#t({id:Vt(),title:e,description:i,classname:"border border-success bg-light text-success",delay:r??5e3,type:"success"})}errorToast(e="Error!",i,r){this.#t({id:Vt(),title:e,description:i,classname:"border border-danger bg-light text-danger",delay:r,type:"error"})}neutralToast(e="Warning!",i,r){this.#t({id:Vt(),title:e,description:i,classname:"border border-dark bg-light text-dark",delay:r??5e3,type:"info"})}remove(e){this.toasts=this.toasts.filter(i=>i.id!==e)}observeAppErrors(){return this.#e.pipe(Xu(Vr.showToastError),Fe(({title:e,description:i})=>{console.log("aaaa",e,i),this.errorToast(e,i)}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Va=(()=>{class t{constructor(e,i,r,o){this.appTenantInfoService=e,this.router=i,this.platformId=r,this.moduleConfig=o}sendLog(e,i){if(!Ke(this.platformId))return;i.tenantId=this.appTenantInfoService.tenantId,i.tenant=this.appTenantInfoService.tenant.name,i.currentUrl=this.router.url;let r=new URLSearchParams;for(let[s,a]of Object.entries(i))a!=null&&r.set(s,String(a));
41let o=`${qu(this.moduleConfig.DB_URL,e)}?${r.toString()}`;fetch(o,{method:"GET",mode:"no-cors",credentials:"omit",keepalive:!0}).catch(()=>{})}static{this.\u0275fac=function(i){return new(i||t)(ye(qr),ye(zr),ye(ze),ye(Us))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac})}}return t})();var Ba=(function(t){return t.OFSTED_DETECTION="odetect",t.FILE_DOWNLOAD="wa-file-download",t.FILE_VIEW="wa-file-view",t})(Ba||{}),Si=(function(t){return t.OFSTED_DETECTION="ofstedDetection",t.FILE_DOWNLOAD="fileDownload",t.FILE_VIEW="fileView",t})(Si||{}),G_="ofstedDetection",jf=(()=>{class t extends Va{constructor(e,i,r,o,s,a,l){super(e,i,r,o),this.store=s,this.umamiEventsService=a,this.ofstedFileKeywordsService=l}addLogView(e){this.addLog(e,Si.FILE_VIEW)}addLogDownload(e){this.addLog(e,Si.FILE_DOWNLOAD)}addLogOfstedDetection(e,i){this.addLog(e,Si.OFSTED_DETECTION,i)}addLog(e,i,r){if(i!==Si.OFSTED_DETECTION){this.executeAction(i,e);return}if(r===!0){this.executeAction(i,e,"policy");return}this.store.select(vi.pageContentSelectors.selectCurrentPage).pipe(Se(1)).subscribe(o=>{if(o?.attributes?.find(l=>l?.name===G_)?.value){this.executeAction(i,e,"page_setting");return}let a=this.ofstedFileKeywordsService.matchFileName(e);a&&this.executeAction(i,e,"keyword",a)})}executeAction(e,i,r,o){i?.name||console.log("[SendLog, File] error",{action:e,file:i});let s={file:i?.name??String(i),fileType:String(i?.type??0)};e===Si.OFSTED_DETECTION&&r&&(s.trigger=r,o&&(s.keyword=o)),this.sendLog(this.getFileLogKey(e),s),this.trackUmamiEvent(e,i,r,o)}trackUmamiEvent(e,i,r,o){let s=this.buildUmamiFileEventInput(i,r,o);switch(e){case Si.FILE_VIEW:this.umamiEventsService.trackFileView(s);break;case Si.FILE_DOWNLOAD:this.umamiEventsService.trackFileDownload(s);break;case Si.OFSTED_DETECTION:this.umamiEventsService.trackOfstedDetection(s);break}}buildUmamiFileEventInput(e,i,r){let o=e,s=o.url;return{fileName:e.name??String(e),fileId:e.id,fileType:e.type??o.fileType,fileSize:e.size,fileUrl:this.resolveFileUrl(o,s),pageUrl:this.router.url,ofstedTrigger:i,ofstedKeyword:r}}resolveFileUrl(e,i){if(typeof e.originUrl=="string"&&e.originUrl.trim())return e.originUrl;if(i&&typeof i=="object"){let r=i;if(typeof r.origin=="string"&&r.origin.trim())return r.origin;if(typeof r.pdf=="string"&&r.pdf.trim())return r.pdf}if(typeof i=="string"&&i.trim())return i}getFileLogKey(e){switch(e){case Si.OFSTED_DETECTION:return Ba.OFSTED_DETECTION;case Si.FILE_DOWNLOAD:return Ba.FILE_DOWNLOAD;case Si.FILE_VIEW:return Ba.FILE_VIEW}}static{this.\u0275fac=function(i){return new(i||t)(ye(qr),ye(zr),ye(ze),ye(Us),ye(Rt),ye(Ep),ye(yp))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var dA=(()=>{class t{constructor(e){this.translateService=e,this.swalModulePromise=null}showCustomModal(e){this.getSwal().then(i=>{i.fire(e)})}confirm(e){let i=this.getModalConfig(e.type||"info"),r=e.showCancelButton!==void 0?e.showCancelButton:!0;return new Wt(o=>{this.getSwal().then(s=>{s.fire({title:e.title,text:e.message,allowOutsideClick:e.allowOutsideClick!==void 0?e.allowOutsideClick:!1,showCancelButton:r,cancelButtonText:e.cancelButtonText||this.translateService.instant("CORE.CANCEL"),confirmButtonText:e.confirmButtonText||(r?this.translateService.instant("CORE.YES"):this.translateService.instant("CORE.OK")),icon:i.icon,confirmButtonColor:i.confirmColor,background:i.background,didOpen:()=>{let a=s.getContainer();a&&(a.style.zIndex="20000"),e.didOpen?.()}}).then(a=>{a.isConfirmed&&o.next(),o.complete()})}).catch(()=>{o.complete()})})}confirmSimple(e,i,r="info"){return this.confirm({title:e,message:i,type:r})}confirmDeletion(e){return this.confirm({title:this.translateService.instant("CORE.DELETE"),message:e||this.translateService.instant("RECYCLE_BIN.confirmMoveToRecycleBin"),type:"warning"})}confirmPermanentDeletion(e){return this.confirm({title:this.translateService.instant("RECYCLE_BIN.permanentlyDelete"),message:e||this.translateService.instant("RECYCLE_BIN.confirmPermanentlyDelete"),type:"danger"})}confirmRestore(e){return this.confirm({title:this.translateService.instant("RECYCLE_BIN.restore"),message:e||this.translateService.instant("RECYCLE_BIN.confirmRestore"),type:"info"})}confirmBulkRestore(e){return this.confirm({title:this.translateService.instant("RECYCLE_BIN.restore"),message:e||this.translateService.instant("RECYCLE_BIN.confirmBulkRestore"),type:"info"})}confirmBulkDeletion(e){return this.confirm({title:this.translateService.instant("CORE.DELETE"),message:e||this.translateService.instant("RECYCLE_BIN.confirmBulkM
41oveToRecycleBin"),type:"warning"})}confirmBulkPermanentDeletion(e){return this.confirm({title:this.translateService.instant("RECYCLE_BIN.permanentlyDelete"),message:e||this.translateService.instant("RECYCLE_BIN.confirmBulkPermanentlyDelete"),type:"danger"})}errorModal(e){return this.confirm({title:"Error!",message:e,type:"danger",showCancelButton:!1})}showLoadingModal(e){this.getSwal().then(i=>{i.fire({title:e??"Loading...",allowOutsideClick:!1,didOpen(){i.showLoading()}})})}closeLoadingModal(){this.getSwal().then(e=>{e.close()})}loadSwalModule(){return this.swalModulePromise||(this.swalModulePromise=wp()),this.swalModulePromise}getSwal(){return k(this,null,function*(){return this.loadSwalModule()})}getModalConfig(e){return{info:{icon:"question",confirmColor:"#007bff",background:"#ffffff"},warning:{icon:"warning",confirmColor:"#d33",background:"#ffffff"},danger:{icon:"error",confirmColor:"#d33",background:"#ffffff"}}[e]}static{this.\u0275fac=function(i){return new(i||t)(ye(Wr))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $f=(function(t){return t.PAGE_VIEW="wa-page-view",t})($f||{}),Hf=(function(t){return t.PAGE_VIEW="pageView",t})(Hf||{}),fA=(()=>{class t extends Va{addLog(e){this.sendLog(this.getFileLogKey(Hf.PAGE_VIEW),{siteId:e.siteId,pageId:e.id,title:e.title,url:e.url})}getFileLogKey(e){return $f.PAGE_VIEW}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Uf="J3_RESOURCES_STATE_MANAGER",ro=(()=>{class t{constructor(e,i,r,o){this.platformId=e,this.resourcesService=i,this.resourcesListService=r,this.transferState=o,this.resourcesCache=Ke(this.platformId)&&this.transferState?this.transferState.get(Uf,{}):{}}getResource(e,i="SINGLE"){let r=this.resourcesCache[e];return r?xe(r):this.loadFromAPI(e,i)}loadFromAPI(e,i){return i==="LIST"?this.resourcesListService.get(e).pipe(Pe(r=>{let{success:o,result:s}=r;if(o)return this.resourcesCache[s.id]=s,this.updateServerState(),s})):this.resourcesService.get(e).pipe(Pe(r=>{let{success:o,result:s}=r;if(o)return this.resourcesCache[s.id]=s,this.updateServerState(),s}))}setResource(e,i){return i==="LIST"?this.resourcesListService.post(e).pipe(Fe(r=>{this.resourcesCache[r.id]=r,this.updateServerState()}),Pe(r=>r.id)):this.resourcesService.post(e).pipe(Fe(r=>{this.resourcesCache[r.id]=r,this.updateServerState()}),Pe(r=>r.id))}putResource(e,i){return i==="LIST"?this.resourcesListService.put(e).pipe(Fe(r=>{this.resourcesCache[r.id]=r,this.updateServerState()}),Pe(r=>r.id??"")):this.resourcesService.put(e).pipe(Fe(r=>{this.resourcesCache[r.id]=r,this.updateServerState()}),Pe(r=>r.id??""))}updateServerState(){Ke(this.platformId)||!this.transferState||this.transferState.set(Uf,this.resourcesCache)}static{this.\u0275fac=function(i){return new(i||t)(ye(ze),ye(So.ResourcesDomainService),ye(So.ResourcesListDomainService),ye(Os,8))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function q_(t,n){if(t&1&&(y(0,"p",6),A(1),fe(2,"translate"),w()),t&2){let e=S().$implicit;E(),Be(be(2,1,e.description))}}function Y_(t,n){if(t&1){let e=Te();y(0,"ngb-toast",1),J("hidden",function(){let r=ee(e).$implicit,o=S();return te(o.toastService.remove(r.id))}),y(1,"div",2)(2,"div",3),ge(3,"i"),w(),y(4,"div",4)(5,"h6",5),A(6),fe(7,"translate"),w(),oe(8,q_,3,3,"p",6),w(),y(9,"button",7),J("click",function(){let r=ee(e).$implicit,o=S();return te(o.toastService.remove(r.id))}),w()()()}if(t&2){let e=n.$implicit,i=S();rt(e.classname),W("autohide",e.delay&&e.delay>0)("delay",e.delay||0),E(3),rt(i.getIconClass(e.type)),E(3),Be(be(7,8,e.title)),E(2),se(e.description?8:-1)}}var Kc=(()=>{class t{constructor(){this.toastService=q(za)}getIconClass(e){switch(e){case"success":return"fas fa-check-circle text-success";case"error":return"fas fa-exclamation-circle text-danger";case"info":return"fas fa-info-circle text-info";case"warning":return"fas fa-exclamation-triangle text-warning";case"question":return"fas fa-question-circle text-secondary";default:return"fas fa-info-circle text-info"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["app-toasts"]],hostAttrs:["curs
41or","pointer",1,"toast-container","position-fixed","top-0","end-0","p-3",2,"z-index","1200"],decls:2,vars:0,consts:[[3,"autohide","delay","class"],[3,"hidden","autohide","delay"],[1,"d-flex","align-items-start"],[1,"me-2"],[1,"flex-grow-1"],[1,"font-weight-bold","m-0"],[1,"m-0","mt-2"],["type","button","aria-label","Close",1,"btn-close","ms-2",3,"click"]],template:function(i,r){i&1&&st(0,Y_,10,10,"ngb-toast",0,Qt),i&2&&at(r.toastService.toasts)},dependencies:[Ce,vp,gp,Ze,dt],encapsulation:2})}}return t})();var Xc=(function(t){return t.NEWS="news",t.LETTERS="letters",t})(Xc||{});function X_(t,n){if(t&1){let e=Te();He(0,"div",1)(1,"div",2),Pi("click",function(){let r=ee(e).$implicit,o=S(3);return te(o.handleOnDownload(r))})("keydown",function(r){let o=ee(e).$implicit,s=S(3);return te(s.onDownloadKeydown(r,o))}),cr(2,"i",3),He(3,"p"),A(4),Ye()()()}if(t&2){let e=n.$implicit;E(4),Be(e.name)}}function J_(t,n){if(t&1&&(He(0,"div",0),st(1,X_,5,1,"div",1,Qt),Ye()),t&2){let e=S(2);E(),at(e.attachments)}}function Z_(t,n){if(t&1&&(He(0,"div"),oe(1,J_,3,0,"div",0),Ye()),t&2){let e=S();E(),se(e.attachments.length?1:-1)}}function Q_(t,n){if(t&1){let e=Te();He(0,"li")(1,"a",5),A(2),Ye(),He(3,"i",6),Pi("click",function(){let r=ee(e).$implicit,o=S(3);return te(o.handleOnDownload(r))}),Ye()()}if(t&2){let e=n.$implicit;E(),ln("href",e.url,Ls),E(),lt(" ",e.name," ")}}function e2(t,n){if(t&1&&(He(0,"ul",4),st(1,Q_,4,2,"li",null,Qt),Ye()),t&2){let e=S(2);E(),at(e.attachments)}}function t2(t,n){if(t&1&&(He(0,"div"),oe(1,e2,3,0,"ul",4),Ye()),t&2){let e=S();E(),se(e.attachments.length?1:-1)}}var Jc=(()=>{class t{constructor(){this.#e=q(bp),this.filesLogsService=q(jf),this.attachments=[],this.attachmentLayout=Xc}#e;ngOnInit(){switch(!0){case this.orderAttBy===pn.NAME_ASC:this.attachments=this.sortbyName(!0);break;case this.orderAttBy===pn.DATE_ASC:this.attachments=this.sortbyDate(!0);break;case this.orderAttBy===pn.DATE_DESC:this.attachments=this.sortbyDate(!1);break;default:this.attachments=this.sortbyName(!1);break}}sortbyName(e){return Tl(this.attachments,i=>i.name.toLowerCase(),[e?"asc":"desc"])}sortbyDate(e){return Tl(this.attachments,["createDate"],[e?"asc":"desc"])}onDownloadKeydown(e,i){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.handleOnDownload(i))}handleOnDownload(e){let{name:i,originUrl:r,url:o,fileType:s}=e,a=r||o;this.filesLogsService.addLogDownload(e),this.#e.onDownloadFileWithExtension(i,a,s)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-attachment-item"]],inputs:{attachments:"attachments",orderAttBy:"orderAttBy",template:"template"},decls:2,vars:1,consts:[["tabindex","0",1,"single-news__attachments"],[1,"single-news__attachment-wrapper"],["role","button",1,"single-news__attachment",3,"click","keydown"],["title","Download","tabindex","0",1,"action-ico-button","fas","fa-download","mx-2"],[1,"attachments"],["target","_blank",3,"href"],["title","Download",1,"action-ico-button","fas","fa-download","mx-2",3,"click"]],template:function(i,r){if(i&1&&oe(0,Z_,2,1,"div")(1,t2,2,1,"div"),i&2){let o;se((o=r.template)===r.attachmentLayout.NEWS?0:1)}},dependencies:[Ce],encapsulation:2})}}return t})();var Zc=["primary","secondary","success","danger","warning","info","light","dark"],Qc="danger";function Wf(t){return typeof t=="string"&&Zc.includes(t)}var n2=["colorPopover"];function r2(t,n){if(t&1){let e=Te();y(0,"button",4,1),fe(2,"translate"),fe(3,"translate"),J("click",function(){ee(e);let r=S();return te(r.onTriggerClick())}),w()}if(t&2){let e=S(),i=ei(3);Ee("j3-badge-color-picker__trigger--disabled",e.disabled),W("ngClass","j3-badge-color-picker__trigger--"+e.value)("ngbPopover",i)("disabled",e.disabled),Oe("aria-label",be(2,7,e.colorLabelKey))("title",be(3,9,e.colorLabelKey))}}function o2(t,n){if(t&1&&(y(0,"span",5),fe(1,"translate"),y(2,"i",6),A(3,"block"),w()()),t&2){let e=S();Ee("j3-badge-color-picker__trigger--disabled",e.disabled),Oe("title",be(1,3,"CORE.BADGE_COLOR.unavailable"))}}function s2(t,n){if(t&1){let e=Te();y(0,"button",9),fe(1,"translate"),fe(2,"translate"),J("click",function(){let r=ee(e).$implicit,o=S(2);return te(o.selectColor(r))}),w()}if(t&2){let e=n.$implicit,i=S(2);Ee("is-selected",i.value===e),W("ngClass","j3-badge-color-picker__option--"+e),Oe("aria-pressed",i.value===e)("aria-label",be(1,
416,"CORE.BADGE_COLOR.colors."+e))("title",be(2,8,"CORE.BADGE_COLOR.colors."+e))}}function a2(t,n){if(t&1&&(y(0,"div",7),st(1,s2,3,10,"button",8,Qt),w()),t&2){let e=S();E(),at(e.colors)}}var ed=(()=>{class t{constructor(){this.#e=q(ct),this.colors=Zc,this.available=!0,this.value=Qc,this.disabled=!1,this.#t=()=>{},this.#i=()=>{}}#e;get colorLabelKey(){return`CORE.BADGE_COLOR.colors.${this.value}`}writeValue(e){this.value=Wf(e)?e:Qc,this.#e.markForCheck()}registerOnChange(e){this.#t=e}registerOnTouched(e){this.#i=e}setDisabledState(e){this.disabled=e,e&&this.colorPopover?.close(),this.#e.markForCheck()}selectColor(e){this.disabled||!this.available||(this.value=e,this.#t(e),this.#i(),this.colorPopover?.close(),this.#e.markForCheck())}onTriggerClick(){this.#i()}#t;#i;static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-badge-color-picker"]],viewQuery:function(i,r){if(i&1&&ft(n2,5),i&2){let o;Ge(o=We())&&(r.colorPopover=o.first)}},inputs:{available:"available"},features:[bt([{provide:$r,useExisting:ar(()=>t),multi:!0}])],decls:4,vars:1,consts:[["paletteTpl",""],["colorPopover","ngbPopover"],["type","button","popoverClass","j3-badge-color-picker-popover","container","body","placement","bottom","triggers","click","autoClose","outside",1,"j3-badge-color-picker__trigger",3,"ngClass","j3-badge-color-picker__trigger--disabled","ngbPopover","disabled"],["aria-hidden","true",1,"j3-badge-color-picker__trigger","j3-badge-color-picker__trigger--none",3,"j3-badge-color-picker__trigger--disabled"],["type","button","popoverClass","j3-badge-color-picker-popover","container","body","placement","bottom","triggers","click","autoClose","outside",1,"j3-badge-color-picker__trigger",3,"click","ngClass","ngbPopover","disabled"],["aria-hidden","true",1,"j3-badge-color-picker__trigger","j3-badge-color-picker__trigger--none"],[1,"material-icons"],["role","radiogroup",1,"j3-badge-color-picker__palette"],["type","button",1,"j3-badge-color-picker__option",3,"ngClass","is-selected"],["type","button",1,"j3-badge-color-picker__option",3,"click","ngClass"]],template:function(i,r){i&1&&(oe(0,r2,4,11,"button",2)(1,o2,4,5,"span",3),zt(2,a2,3,0,"ng-template",null,0,pi)),i&2&&se(r.available?0:1)},dependencies:[hi,Ks,Ys,Ze,dt],styles:["[_nghost-%COMP%]{display:inline-flex;vertical-align:middle}.j3-badge-color-picker__trigger[_ngcontent-%COMP%]{appearance:none;background-color:#cacaca;border:1px solid rgba(0,0,0,.25);border-radius:50%;box-sizing:border-box;display:inline-block;height:1.35rem;min-height:1.35rem;min-width:1.35rem;padding:0;width:1.35rem;cursor:pointer;vertical-align:middle}.j3-badge-color-picker__trigger[_ngcontent-%COMP%]:disabled, .j3-badge-color-picker__trigger--disabled[_ngcontent-%COMP%]{background-color:#d7d7d7!important;border-color:#b8b8b8!important;box-shadow:none;cursor:not-allowed;filter:grayscale(1);opacity:.75;pointer-events:none}.j3-badge-color-picker__trigger--none[_ngcontent-%COMP%]{align-items:center;background-color:#fff;color:#adb5bd;cursor:default;display:inline-flex;justify-content:center}.j3-badge-color-picker__trigger--none[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:1rem;line-height:1}.j3-badge-color-picker__trigger--none.j3-badge-color-picker__trigger--disabled[_ngcontent-%COMP%]{background-color:#e8e8e8!important;color:#b0b0b0!important}.j3-badge-color-picker__trigger--primary[_ngcontent-%COMP%]{background-color:var(--bs-primary, #078fdc)}.j3-badge-color-picker__trigger--secondary[_ngcontent-%COMP%]{background-color:var(--bs-secondary, #ebebeb)}.j3-badge-color-picker__trigger--success[_ngcontent-%COMP%]{background-color:var(--bs-success, #9ac71c)}.j3-badge-color-picker__trigger--danger[_ngcontent-%COMP%]{background-color:var(--bs-danger, #ec3000)}.j3-badge-color-picker__trigger--warning[_ngcontent-%COMP%]{background-color:var(--bs-warning, #ff9f0e)}.j3-badge-color-picker__trigger--info[_ngcontent-%COMP%]{background-color:var(--bs-info, #17a2b8)}.j3-badge-color-picker__trigger--light[_ngcontent-%COMP%]{background-color:var(--bs-light, #fbfbfb)}.j3-badge-color-picker__trigger--dark[_ngcontent-%COMP%]{background-color:var(--bs-dark, #4a4d4e)}.j3-badge-color-picker__palette[_ngcontent-%COMP%]{align-items:center;display:flex;flex-wrap:nowrap;gap:.4rem;padding:.15rem}.j3-badge-color-picker__option[_ngcontent-%COMP%]{appearance:none;background-color:#cacaca;border:1px solid rgba(0,0,0,.25);border-radius:50%;box-sizing:border-box;display:inline-block;height:1.35rem;min-height:1.35rem;min-width:1.35rem;padding:0;width:1.35rem;cursor:pointer;flex:0 0 1.35rem}.j3-badge-color-picker__option.is-selected[_ngcontent-%COMP%]{box-shadow:0 0 0 2px #fff,0 0 0 4px #212529}.j3-badge-color-picker__option--primary[_ngcontent-%COMP%]{background-color:var(--bs-primary, #078fdc)}.j3-badge-color-picker__option--secondary[_ngcontent-%COMP%]{background-color:var(--bs-secondary, #ebebeb)}.j3-badge-color-picker__option--success[_ngcontent-%COMP%]{background-color:var(--bs-success, #9ac71c)}.j3-badge-color-picker__option--danger[_ngcontent-%COMP%]{background-color:var(--bs-danger, #ec3000)}.j3-badge-color-picker__option--warning[_ngcontent-%COMP%]{background-color:var(--bs-warning, #ff9f0e)}.j3-badge-color-picker__option--info[_ngcontent-%COMP%]{background-color:var(--bs-info, #17a2b8)}.j3-badge-color-picker__option--light[_ngcontent-%COMP%]{background-color:var(--bs-light, #fbfbfb)}.j3-badge-color-picker__option--dark[_ngcontent-%COMP%]{background-color:var(--bs-dark, #4a4d4e)}  .j3-badge-color-picker-popover .popover-body{padding:.5rem}  .j3-badge-color-picker-popover .j3-badge-color-picker__option--primary{background-color:var(--bs-primary, #078fdc)}  .j3-badge-color-picker-popover .j3-badge-color-picker__option--secondary{background-color:var(--bs-secondary, #ebebeb)}  .j3-badge-color-picker-popover .j3-badge-color-picker__option--success{background-color:var(--bs-success, #9ac71c)}  .j3-badge-color-picker-popover .j3-badge-color-picker__option--danger{background-color:var(--bs-danger, #ec3000)}  .j3-badge-color-picker-popover .j3-badge-color-picker__option--warning{background-color:var(--bs-warning, #ff9f0e)}  .j3-badge-color-picker-popover .j3-badge-color-picker__option--info{background-color:var(--bs-info, #17a2b8)}  .j3-badge-color-picker-popover .j3-badge-color-picker__option--light{background-color:var(--bs-light, #fbfbfb)}  .j3-badge-color-picker-popover .j3-badge-color-picker__option--dark{background-color:var(--bs-dark, #4a4d4e)}"],changeDetection:0})}}return t})();var c2=["acceptAllButton"],d2=t=>({open:t}),u2=t=>({active:t});function p2(t,n){if(t&1){let e=Te();y(0,"section",1)(1,"div",2),J("click",function(){ee(e);let r=S();return te(r.hide())}),w(),y(2,"button",3),fe(3,"translate"),J("click",function(){ee(e);let r=S();
41return te(r.toggle())}),Iu(),y(4,"svg",4)(5,"title"),A(6,"Cookie Control Icon"),w(),y(7,"g",5),ge(8,"path",6),w(),y(9,"g",7),ge(10,"path",8),w()()(),xu(),y(11,"div",9)(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",11)(16,"div",12)(17,"h2",13),A(18,"Our use of cookies"),w(),y(19,"p",14),A(20," We use necessary cookies to make our site work. We'd also like to set optional analytics cookies to help us improve it. We won't set optional cookies unless you enable them. Using this tool will set a cookie on your device to remember your preferences. "),w(),y(21,"div",15)(22,"p"),A(23," See our "),y(24,"a",16),J("click",function(){ee(e);let r=S();return te(r.navigateToPolicy())}),A(25,"Compliance Information page"),w(),A(26," for details about our cookies and other compliance information "),w()()(),y(27,"div",17)(28,"button",18,0),J("click",function(){ee(e);let r=S();return te(r.submit(!0))}),A(30," Accept all cookies "),w(),y(31,"button",19),J("click",function(){ee(e);let r=S();return te(r.submit(!1))}),A(32," Reject all cookies "),w()()(),ge(33,"hr"),w()(),y(34,"div",11)(35,"div",12)(36,"h3",20),A(37,"Necessary cookies"),w(),y(38,"p",21),A(39," Necessary cookies enable core functionality such as security, network management, and accessibility. You may disable these by changing your browser settings, but this may affect how the website functions. "),w(),ge(40,"hr"),w()(),y(41,"div",11)(42,"div",12)(43,"div",22)(44,"div",23)(45,"div",11)(46,"div",24)(47,"h3",25),A(48,"Analytics cookies"),w(),y(49,"div",26)(50,"label",27)(51,"input",28),Vi("ngModelChange",function(r){ee(e);let o=S();return zi(o.gaCookiesAccepted,r)||(o.gaCookiesAccepted=r),te(r)}),J("input",function(r){ee(e);let o=S();return te(o.onAnalyticsChange(r.target.checked))}),w(),y(52,"span",29),A(53,"On"),w(),y(54,"span",30),A(55,"Off"),w(),ge(56,"span",31),w()()()(),y(57,"p"),A(58," We'd like to set Google Analytics cookies to help us to improve our website by collecting and reporting information on how you use it. The cookies collect information in a way that does not directly identify anyone "),w(),ge(59,"div",32)(60,"hr"),w()(),y(61,"div",33)(62,"div",23)(63,"div",11)(64,"div",24)(65,"h3",25),A(66,"Third-party cookies"),w(),y(67,"div",26)(68,"label",34)(69,"input",35),Vi("ngModelChange",function(r){ee(e);let o=S();return zi(o.thirdPartyCookiesAccepted,r)||(o.thirdPartyCookiesAccepted=r),te(r)}),J("input",function(r){ee(e);let o=S();return te(o.onThirdPartyChange(r.target.checked))}),w(),y(70,"span",29),A(71,"On"),w(),y(72,"span",30),A(73,"Off"),w(),ge(74,"span",31),w()()()(),y(75,"p"),A(76," Third-party cookies are set by websites such as facebook. For example, when liking a facebook post embeded on this website a cookie will be stored. Facebook can then later access that cookie to identify visitors and see which websites they visited. "),w(),ge(77,"div",32)(78,"hr"),w()()()(),y(79,"div",11)(80,"div",12)(81,"div")(82,"button",36),J("click",function(){ee(e);let r=S();return te(r.saveGaSettings())}),A(83," Save cookie settings "),w()()()()()()()}if(t&2){let e=S();W("ngClass",pr(7,d2,e.isVisible)),E(2),Oe("aria-label",be(3,5,"Cookie Control")),E(9),W("ngClass",pr(9,u2,e.isVisible)),E(40),Fi("ngModel",e.gaCookiesAccepted),E(18),Fi("ngModel",e.thirdPartyCookiesAccepted)}}var td=(()=>{class t{#e;#t;constructor(e,i,r){this.platformId=e,this.document=i,this.cookieService=r,this.#e=q(Rt),this.#t=q(qt),this.CookeResponse=new j,this.NavigateToPolicy=new j,this.AnaliticsResponse=new j,this.cookiesLayout=null,this.isVisible=!1,this.gaCookiesAccepted=!1,this.thirdPartyCookiesAccepted=!1,this.googleAnaliticsExists=!1}ngOnInit(){Ke(this.platformId)&&(this.#e.select(hr.selectEntity).pipe(At(this.#t),Ne(e=>!!e&&!!e?.googleAnalytics),Se(1),Fe(()=>{this.googleAnaliticsExists=!0,this.googleAnaliticsExists&&this.cookieService.get("ga_enabled")&&(this.gaCookiesAccepted=!0)})).subscribe(),this.cookieService.get("J3CookiesAccepted")==="false"&&(this.isVisible=!0,setTimeout(()=>{this.acceptAllButton?.nativeElement.focus()},0)),this.cookieService.get("J3CookiesAccepted")==="ACCEPTED"&&(this.thirdPartyCookiesAccepted=!0))}toggle(){this.isVisible=!this.isVisible}hide(){this.cookieService.get("J3CookiesAccepted")!=="false"&&(this.isVisible=!1)}submit(e){let i=e?Ue.CookieState.ACCEPTED:Ue.CookieState.REJECTED;
41this.CookeResponse.emit(i),this.gaCookiesAccepted=e,this.googleAnaliticsExists=e,this.thirdPartyCookiesAccepted=e,this.saveGaSettings(),this.hide()}onAnalyticsChange(e){this.gaCookiesAccepted=e}onThirdPartyChange(e){this.thirdPartyCookiesAccepted=e}saveGaSettings(){this.gaCookiesAccepted?this.cookieService.set("ga_enabled","true",{expires:fi.now().plus({months:6}).toJSDate(),path:"/"}):this.cookieService.delete("ga_enabled");let e=this.thirdPartyCookiesAccepted?Ue.CookieState.ACCEPTED:Ue.CookieState.REJECTED;this.CookeResponse.emit(e),this.AnaliticsResponse.emit(this.gaCookiesAccepted),this.hide()}navigateToPolicy(){this.NavigateToPolicy.emit(!0)}static{this.\u0275fac=function(i){return new(i||t)($(ze),$(gt,8),$(wi))}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-cookies-box"]],viewQuery:function(i,r){if(i&1&&ft(c2,5),i&2){let o;Ge(o=We())&&(r.acceptAllButton=o.first)}},inputs:{cookiesLayout:"cookiesLayout"},outputs:{CookeResponse:"CookeResponse",NavigateToPolicy:"NavigateToPolicy",AnaliticsResponse:"AnaliticsResponse"},decls:1,vars:1,consts:[["acceptAllButton",""],["id","ccc",3,"ngClass"],["id","ccc-overlay",3,"click"],["id","ccc-icon","aria-controls","ccc-module","accesskey","c",3,"click"],["xmlns","http://www.w3.org/2000/svg","x","0px","y","0px","viewBox","0 0 72.5 72.5","enable-background","new 0 0 72.5 72.5",0,"xml","space","preserve"],["id","triangle"],["d","M0,0l72.5,72.5H0V0z"],["id","star"],["d","M33.2,51.9l-3.9-2.6l1.6-4.4l-4.7,0.2L25,40.6l-3.7,2.9l-3.7-2.9l-1.2,4.5l-4.7-0.2l1.6,4.4l-3.9,2.6l3.9,2.6l-1.6,4.4l4.7-0.2l1.2,4.5l3.7-2.9l3.7,2.9l1.2-4.5l4.7,0.2l-1.6-4.4L33.2,51.9z M24.6,55.3c-0.3,0.4-0.8,0.8-1.3,1s-1.1,0.3-1.9,0.3c-0.9,0-1.7-0.1-2.3-0.4s-1.1-0.7-1.5-1.4c-0.4-0.7-0.6-1.6-0.6-2.6c0-1.4,0.4-2.5,1.1-3.3c0.8-0.8,1.8-1.1,3.2-1.1c1.1,0,1.9,0.2,2.6,0.7s1.1,1.1,1.4,2L23,50.9c-0.1-0.3-0.2-0.5-0.3-0.6c-0.1-0.2-0.3-0.4-0.5-0.5s-0.5-0.2-0.7-0.2c-0.6,0-1.1,0.2-1.4,0.7c-0.2,0.4-0.4,0.9-0.4,1.7c0,1,0.1,1.6,0.4,2c0.3,0.4,0.7,0.5,1.2,0.5c0.5,0,0.9-0.1,1.2-0.4s0.4-0.7,0.6-1.2l2.3,0.7C25.2,54.3,25,54.8,24.6,55.3z"],["id","ccc-module","role","region",3,"ngClass"],[1,"container","ccc-container"],[1,"row"],[1,"col-12"],["id","ccc-title"],["id","ccc-intro"],["id","ccc-statement"],[1,"ccc-link","ccc-tabbable",3,"click"],[1,"col-12","d-flex","justicy-content-between"],["id","ccc-all-cookies-button",1,"ccc-notify-button","ccc-button-solid","ccc-tabbable","ml-0","w-100",3,"click"],["id","ccc-reject-all-button",1,"ccc-notify-button","ccc-button-solid","ccc-tabbable","mr-0","w-100",3,"click"],["id","ccc-necessary-title"],["id","ccc-necessary-description"],["id","ccc-optional-categories"],["data-index","0",1,"optional-cookie"],[1,"col-12","d-flex"],[1,"optional-cookie-header"],[1,"checkbox-toggle","ccc-tabbable"],["for","analytics_cookies",1,"checkbox-toggle-label"],["id","analytics_cookies","type","checkbox",1,"checkbox-toggle-input",3,"ngModelChange","input","ngModel"],[1,"checkbox-toggle-on"],[1,"checkbox-toggle-off"],["data-index","0",1,"checkbox-toggle-toggle"],[1,"ccc-alert"],["id","ccc-optional-thirdparty"],["for","third_party_cookies",1,"checkbox-toggle-label"],["id","third_party_cookies","type","checkbox",1,"checkbox-toggle-input",3,"ngModelChange","input","ngModel"],["id","ccc-dismiss-button",1,"ccc-notify-button","ccc-button-solid","ccc-tabbable",3,"click"]],template:function(i,r){i&1&&oe(0,p2,84,11,"section",1),i&2&&se(r.cookiesLayout>=0?0:-1)},dependencies:[Ce,hi,ii,rp,mi,Mn,Ze,dt],styles:[".cookies-container{align-items:center;background:#111;display:flex;justify-content:center;opacity:.9;position:fixed;z-index:10}  .cookies-container.left-box{border-radius:5px;bottom:20px;flex-direction:column;height:auto;left:20px;padding:10px 15px;width:220px}  .cookies-container.bar{bottom:0;left:0;padding:0 15px;width:100%}  .cookies-container.bar .buttons-wrapper{display:flex;flex-wrap:wrap;margin-left:20px;width:190px}  .cookies-container.bar .buttons-wrapper .btn{flex-grow:1;margin-left:.25rem;margin-right:.25rem}  .cookies-container .cookies-message{color:#fff}  .cookies-container .cookies-message a.policy-nav-link{cursor:pointer}  #ccc{position:relative;z-index:1000}
41  #ccc .container{color:#fff;font-size:15px;height:100%;line-height:1.5;overflow-y:auto;padding:1.5rem 1.5rem 4rem}  #ccc .container h2,   #ccc .container h3{font-family:Georgia,Times New Roman,Times,serif}  #ccc .container h3{font-size:21px;line-height:1.15}  #ccc .ccc-link{cursor:pointer;text-decoration:underline}  #ccc .ccc-link:hover{cursor:pointer}  #ccc #ccc-icon{background:transparent;border:0;bottom:0;cursor:pointer;height:80px;left:0;padding:0;position:fixed;width:80px;z-index:1005}  #ccc #ccc-icon #star path{fill:#fff}  #ccc-overlay{background:#0006;display:none;height:100%;left:0;opacity:0;position:fixed;top:0;width:100%;z-index:1}  #ccc.open #ccc-overlay{display:block;opacity:1}  #ccc-module{background-color:#0276a5;bottom:0;height:100%;max-width:500px;position:fixed;transform:translate(-100%);transition:all .6s ease-in-out;width:100%;z-index:100}  #ccc-module.active{transform:translate(0);transition:all .6s ease-in-out}  #ccc-content{font-family:Open Sans,Arial,sans-serif;overflow-y:auto;padding:24px;text-align:left}  #ccc-intro p,   #ccc-statement p{margin:1em 0}  #ccc-title{font-size:25px}  #ccc a{color:#fff;fill:#fff!important;text-decoration:none}  #ccc .ccc-svg-element{display:inline-block;height:16px;margin-left:8px;position:relative;top:6px;width:16px}  #ccc hr{background-color:#fff;border:0;box-sizing:content-box;height:1px;margin:24px 0;opacity:.25}  #ccc .optional-cookie{position:relative}  #ccc .checkbox-toggle{background-color:#2f2f5f!important;border:4px solid #2f2f5f;border-radius:50px;height:30px;margin-left:auto;position:relative}  #ccc .checkbox-toggle-label{align-items:center;cursor:pointer;display:flex;height:100%;margin:0;z-index:1}  #ccc .checkbox-toggle-input{inset:0;display:block;height:100%;margin:0;padding:0;position:absolute;width:100%;z-index:-1}  #ccc .checkbox-toggle-on{flex:1;flex-basis:50%;font-size:.75em;font-weight:700;min-width:40px;padding:0 6px;text-align:center;white-space:nowrap;width:50%;z-index:2}  #ccc .checkbox-toggle-off{color:#fff!important;flex:1;flex-basis:50%;font-size:.75em;font-weight:700;min-width:40px;opacity:.65;padding:0 6px;text-align:center;white-space:nowrap;width:50%;z-index:2}  #ccc .checkbox-toggle input:checked~.checkbox-toggle-toggle{left:50%}  #ccc .checkbox-toggle-toggle{background-color:#0276a5;border-radius:50px;cursor:pointer;display:block;height:100%;left:0;position:absolute;top:0;transition:all .4s ease;width:50%;z-index:3}  .ccc-button-solid{background-color:#fff;border:2px solid #fff;border-radius:4px;color:#111125;cursor:pointer;display:block;flex-grow:1;font-size:1em;font-weight:700;line-height:1.5em;margin:5px;padding:8px 16px!important}  #ccc .ccc-info{height:100px}"],data:{animation:[$u("toggle",[xl("open",Il({opacity:"0.9"})),xl("closed",Il({opacity:0})),Uu("open <=> closed",[Hu("0.3s")])])]}})}}return t})();var f2=["positionInput"];function m2(t,n){if(t&1){let e=Te();y(0,"input",5,0),Vi("ngModelChange",function(r){ee(e);let o=S();return zi(o.editPosition,r)||(o.editPosition=r),te(r)}),J("keydown",function(r){ee(e);let o=S();return te(o.onKeyDown(r))})("blur",function(){ee(e);let r=S();return te(r.savePosition())})("input",function(r){ee(e);let o=S();return te(o.onInputChange(r))})("click",function(r){return r.stopPropagation()}),w()}if(t&2){let e=S();Fi("ngModel",e.editPosition),W("min",e.minPosition)("max",e.maxPosition)("disabled",e.disabled)("ngbTooltip",e.positionInputTooltip)}}var ds=(()=>{class t{constructor(){this.position=1,this.minPosition=1,this.maxPosition=999,this.disabled=!1,this.positionChange=new j,this.isEditing=!1,this.editPosition=1}get positionBadgeTooltip(){return this.disabled?"Position editing disabled":"Click to edit position"}get positionInputTooltip(){return`Enter position number (${this.minPosition}-${this.maxPosition}) and press Enter`}ngAfterViewInit(){this.isEditing&&this.positionInput&&(this.positionInput.nativeElement.focus(),this.positionInput.nativeElement.select())}startEditing(){this.disabled||(this.isEditing=!0,this.editPosition=this.position,setTimeout(()=>{this.positionInput&&(this.positionInput.nativeElement.focus(),this.positionInput.nativeElement.select())},0))}savePosition(){let e=Math.max(this.minPosition,Math.min(this.maxPosition,this.editPosition));e!==this.position&&(this.position=e,this.positionChange.emit(e)),this.isEditing=!1}cancelEditing(){this.isEditing=!1,this.editPosition=this.position}onKeyDown(e){e.key==="Enter"?(e.preventDefault(),this.savePosition()):e.key==="Escape"&&(e.preventDefault(),this.cancelEditing())}onInputChange(e){let i=e.target,r=parseInt(i.value,10);isNaN(r)||(this.editPosition=r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-editable-position-badge"]],viewQuery:function(i,r){if(i&1&&ft(f2,5),i&2){let o;Ge(o=We())&&(r.positionInput=o.first)}},inputs:{position:"position",minPosition:"minPosition",maxPosition:"maxPosition",disabled:"disabled"},outputs:{positionChange:"positionChange"},decls:5,vars:9,consts:[["positionInput",""],[1,"editable-position-badge"],[1,"editable-position-badge__slot"],["placement","top","container","body",1,"badge","bg-primary","item-number-badge",3,"click","ngbTooltip"],["placement","top","container","body","type","number",1,"position-input",3,"ngModel","min","max","disabled","ngbTooltip"],["placement","top","container","body","type","number",1,"position-input",3,"ngModelChange","keydown","blur","input","click","ngModel","min","max","disabled","ngbTooltip"]],template:function(i,r){i&1&&(y(0,"div",1)(1,"div",2)(2,"span",3),J("click",function(){return r.startEditing()}),A(3),w(),oe(4,m2,2,5,"input",4),w()()),i&2&&(E(),Ee("editable-position-badge__slot--editing",r.isEditing),E(),Ee("editable-position-badge__badge--hidden",r.isEditing)("disabled",r.disabled),W("ngbTooltip",r.positionBadgeTooltip),E(),lt(" ",r.position," "),E(),se(r.isEditing?4:-1))},dependencies:[Ce,ii,Hr,cp,mi,up,dp,Mn,Js,Xs],styles:[".editable-position-badge[_ngcontent-%COMP%]{display:inline-block;vertical-align:top}.editable-position-badge__slot[_ngcontent-%COMP%]{display:inline-block;position:relative;vertical-align:top}.editable-position-badge__badge--hidden[_ngcontent-%COMP%]{visibility:hidden}.editable-position-badge[_ngcontent-%COMP%]   .item-number-badge[_ngcontent-%COMP%]{cursor:pointer!important;display:block!important;font-size:14px!important;font-weight:600!important;height:auto!important;line-height:1!important;min-width:30px!important;padding:4.9px 9.1px!important;-webkit-user-select:none!important;user-select:none!important;width:auto!important}.editable-position-badge[_ngcontent-%COMP%]   .item-number-badge[_ngcontent-%COMP%]:hover:not(.disabled){opacity:.8}.editable-position-badge[_ngcontent-%COMP%]   .item-number-badge.disabled[_ngcontent-%COMP%]{cursor:not-allowed!important;opacity:.6}.editable-position-badge[_ngcontent-%COMP%]   .position-input[_ngcontent-%COMP%]{appearance:textfield;background-color:#fff;border:1px solid var(--bs-primary, #0d6efd);border-radius:var(--bs-badge-border-radius, .375rem);box-shadow:none;box-sizing:border-box;font-size:14px!important;font-weight:600!important;height:100%;inset:0;line-height:1!important;margin:0;min-height:0;padding:3.9px 8.1px!important;position:absolute;text-align:center!important;width:100%;-moz-appearance:textfield}.editable-position-badge[_ngcontent-%COMP%]   .position-input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .editable-position-badge[_ngcontent-%COMP%]   .position-input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.editable-position-badge[_ngcontent-%COMP%]   .position-input[_ngcontent-%COMP%]:focus{box-shadow:none;outline:none}"]})}}return t})();var v2=(t,n)=>({"with-background":t,"without-background":n}),_2=(t,n)=>({"with-spacing":t,"without-spacing":n}),b2=(t,n)=>({$implicit:t,index:n});function y2(t,n){if(t&1){let e=Te();y(0,"div",1),ge(1,"div"),y(2,"button",4),J("click",function(){ee(e);let r=S();return te(r.onAddItem())}),A(3),w()()}if(t&2){let e=S();E(2),W("disabled",e.disabled),E(),lt(" ",e.addButtonText," ")}}function C2(t,n){if(t&1){let e=Te();y(0,"j3-editable-position-badge",11),J("positionChange",function(r){ee(e);let o=S().$index,s=S(2);return te(s.onPositionChange(r,o))}),w()}if(t&2){let e=S().$index,i=S(2);W("position",e+1)("minPosition",1)("maxPosition",i.items.length)("disabled",i.disabled)}}function w2(t,n){t&1&&Ru(0)}function E2(t,n){if(t&1&&zt(0,w2,1,0,"ng-container",12),t&2){let e=S(),i=e.$implicit,r=e.$index,o=S(2);W("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",Or(2,b2,i,r))}}function S2(t,n){if(t&1&&(y(0,"span"),A(1),w()),t&2){let e=S().$implicit,i=S(2);E(),Be(i.getItemDisplayText(e))}}function I2(t,n){if(t&1&&(y(0,"div",6)(1,"div",7)(2,"div",8),ge(3,"div",9),w(),oe(4,C2,1,4,"j3-editable-position-badge",10),oe(5,E2,1,5,"ng-container")(6,S2,2,1,"span"),w()()),t&2){let e=n.$implicit,i=S(2);W("cdkDragData",e)("cdkDragDisabled",i.disabled)("ngClass",Or(5,_2,i.showItemSpacing,!i.showItemSpacing)),E(4),se(i.showPositionBadge?4:-1),E(),se(i.itemTemplate?5:6)}}function x2(t,n){if(t&1){let e=Te();y(0,"div",5),J("cdkDropListDropped",function(r){ee(e);let o=S();return te(o.onDrop(r))}),st(1,I2,7,8,"div",6,Mu().trackByFn,!0),w()}if(t&2){let e=S();W("cdkDropListOrientation",e.orientation),E(),at(e.items)}}function T2(t,n){if(t&1&&(y(0,"div",3),A(1),w()),t&2){let e=S();E(),lt(" ",e.emptyMessage," ")}}var id=(()=>{class t{constructor(){this.items=[],this.showPositionBadge=!0,this.disabled=!1,this.orientation="vertical",this.emptyMessage="No items to display",this.addButtonText="Add Item",this.showAddButton=!1,this.showContainerBackgroun
41d=!0,this.showItemSpacing=!0,this.itemsChange=new j,this.itemDrop=new j,this.positionChange=new j,this.addItem=new j,this.removeItem=new j}onDrop(e){e.previousIndex!==e.currentIndex&&(_r(this.items,e.previousIndex,e.currentIndex),this.updateItemOrders(),this.itemsChange.emit([...this.items]),this.itemDrop.emit(e))}onPositionChange(e,i){if(e===i+1)return;let r=e-1;r<0||r>=this.items.length||(_r(this.items,i,r),this.updateItemOrders(),this.itemsChange.emit([...this.items]),this.positionChange.emit({newPosition:e,currentIndex:i}))}onAddItem(){this.addItem.emit()}onRemoveItem(e){this.items.splice(e,1),this.updateItemOrders(),this.itemsChange.emit([...this.items]),this.removeItem.emit(e)}trackByFn(e,i){return i.id||`${i.type||"item"}-${i.order||e}`}getItemDisplayText(e){return e.name||e.title||e.caption||`Item ${e.order||0}`}updateItemOrders(){this.items.forEach((e,i)=>{e.order=i+1})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-drag-drop-list"]],inputs:{items:"items",showPositionBadge:"showPositionBadge",disabled:"disabled",orientation:"orientation",itemTemplate:"itemTemplate",emptyMessage:"emptyMessage",addButtonText:"addButtonText",showAddButton:"showAddButton",showContainerBackground:"showContainerBackground",showItemSpacing:"showItemSpacing"},outputs:{itemsChange:"itemsChange",itemDrop:"itemDrop",positionChange:"positionChange",addItem:"addItem",removeItem:"removeItem"},decls:4,vars:7,consts:[[1,"drag-drop-container",3,"ngClass"],[1,"d-flex","justify-content-between","align-items-start","mb-1"],["cdkDropList","",3,"cdkDropListOrientation"],[1,"text-center","text-muted","p-3"],[1,"btn","btn-primary",3,"click","disabled"],["cdkDropList","",3,"cdkDropListDropped","cdkDropListOrientation"],["cdkDrag","",3,"cdkDragData","cdkDragDisabled","ngClass"],[1,"d-flex","align-items-center"],["cdkDragHandle","",1,"drag-handle","me-0"],[1,"drag-handle-dots"],[1,"me-3",3,"position","minPosition","maxPosition","disabled"],[1,"me-3",3,"positionChange","position","minPosition","maxPosition","disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&(y(0,"div",0),oe(1,y2,4,2,"div",1),oe(2,x2,3,1,"div",2),oe(3,T2,2,1,"div",3),w()),i&2&&(W("ngClass",Or(4,v2,r.showContainerBackground,!r.showContainerBackground)),E(),se(r.showAddButton?1:-1),E(),se(r.items.length>0?2:-1),E(),se(r.items.length===0?3:-1))},dependencies:[Ce,hi,ju,Wi,ga,ma,fa,ds],styles:[".drag-drop-container[_ngcontent-%COMP%]{min-height:50px;position:relative}.drag-drop-container.with-background[_ngcontent-%COMP%]{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:.375rem;padding:1rem}.drag-drop-container.without-background[_ngcontent-%COMP%]{background-color:transparent;border:none;border-radius:0;padding:0}.drag-handle[_ngcontent-%COMP%]{cursor:grab;margin-left:-10px;margin-right:12px;padding:10px}.drag-handle[_ngcontent-%COMP%]:active{cursor:grabbing}.drag-handle-dots[_ngcontent-%COMP%]{background-image:radial-gradient(#999 1px,transparent 0);background-position:-19px -19px;background-size:4px 4px;height:20px;width:14px}.cdk-drag[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #dee2e6;padding:.75rem;transition:all .2s ease}.cdk-drag.with-spacing[_ngcontent-%COMP%]{border-radius:.375rem;margin-bottom:.75rem}.cdk-drag.with-spacing[_ngcontent-%COMP%]:last-child{margin-bottom:0}.cdk-drag.without-spacing[_ngcontent-%COMP%]{border-radius:0;margin-bottom:0}.cdk-drag.without-spacing[_ngcontent-%COMP%]:first-child{border-radius:.375rem .375rem 0 0}.cdk-drag.without-spacing[_ngcontent-%COMP%]:last-child{border-radius:0 0 .375rem .375rem}.cdk-drag.without-spacing[_ngcontent-%COMP%]:not(:first-child,:last-child){border-radius:0}.cdk-drag.without-spacing[_ngcontent-%COMP%]:not(:first-child){border-top:none}.cdk-drag.without-spacing[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #dee2e6}.cdk-drag[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026!important}.cdk-drag[_ngcontent-%COMP%]:active{cursor:grabbing}.cdk-drag-preview[_ngcontent-%COMP%]{border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;box-sizing:border-box;opacity:.8;transform:rotate(2deg)}.cdk-drag-placeholder[_ngcontent-%COMP%]{align-items:center;background:#f5f5f5;border:2px dashed #05f!important;display:flex;height:60px;justify-content:center;opacity:.3}.with-spacing[_ngcontent-%COMP%]   .cdk-drag-placeholder[_ngcontent-%COMP%]{border-radius:.375rem;margin:.75rem 0}.without-spacing[_ngcontent-%COMP%]   .cdk-drag-placeholder[_ngcontent-%COMP%]{border-radius:0;margin:0}.cdk-drag-placeholder[_ngcontent-%COMP%]   .btn-remove-item[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{display:none}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%]   .cdk-drag[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-receiving[_ngcontent-%COMP%]   .cdk-drag[_ngcontent-%COMP%]{border-left:3px solid #007bff}.cdk-drop-list-dragging[_ngcontent-%COMP%]   .cdk-drag-placeholder[_ngcontent-%COMP%]{background:#f5f5f5!important;border-color:#05f!important}"]})}}return t})();var us=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,i){switch(i){case"html":return this.sanitizer.bypassSecurityTrustHtml(e);case"style":return this.sanitizer.bypassSecurityTrustStyle(e);case"script":return this.sanitizer.bypassSecurityTrustScript(e);case"url":return this.sanitizer.bypassSecurityTrustUrl(e);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error(`Invalid safe type specified: ${i}`)}}static{this.\u0275fac=function(i){return new(i||t)($(kn,16))}}static{this.\u0275pipe=Fs({name:"safeUrl",type:t,pure:!0})}}return t})();var k2=/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,D2=/(?:\+|00)\d[\d\s()./-]{6,}\d|\b0\d(?:[\s()./-]*\d){8,10}\b/g,ja="j3-popover-copyable";function Yf(t){let n=t.replace(/\D/g,"");return n.length>=7&&n.length<=15}function qf(t){try{return decodeURIComponent(t)}catch(n){return t}}function M2(t,n,e){return e.some(i=>t<i.end&&n>i.start)}function A2(t){let n=[];for(let e of t.matchAll(k2))e.index!==void 0&&n.push({type:"email",value:e[0],start:e.index,end:e.index+e[0].length});for(let e of t.matchAll(D2)){if(e.index===void 0||!Yf(e[0]))continue;let i=e.index,r=i+e[0].length;M2(i,r,n)||n.push({type:"phone",value:e[0].replace(/\s+/g," ").trim(),start:i,end:r})}return n.sort((e,i)=>e.start-i.start)}function R2(t){let n=t.getAttribute("href")||"";if(n.toLowerCase().startsWith("mailto:"))return qf(n.slice(7).split("?")[0]).trim()||null;if(n.toLowerCase().startsWith("tel:")){let e=qf(n.slice(4)).trim();return Yf(e)?e:null}return null}function Kf(t,n){let e=t.createElement("button");e.type="button",e.className="j3-popover-copy-btn",e.setAttribute("title",n),e.setAttribute("aria-label",n);let i=t.createElement("span");return i.className="material-icons",i.setAttribute("aria-hidden","true"),i.textContent="content_copy",e.appendChild(i),e}function O2(t,n,e,i){if(!n.parentNode)return;let r=t.createElement("span");r.className=ja,r.setAttribute("data-copy",e),n.parentNode.insertBefore(r,n),r.appendChild(n),r.appendChild(Kf(t,i))}function L2(t,n,e){t.querySelectorAll("a[href]").forEach(i=>
41{let r=i;if(r.closest(`.${ja}`))return;let o=R2(r);o&&O2(n,r,o,e)})}function N2(t,n,e){let i=t.nodeValue;if(!i||!t.parentNode)return;let r=A2(i);if(!r.length)return;let o=n.createDocumentFragment(),s=0;for(let a of r){a.start>s&&o.appendChild(n.createTextNode(i.slice(s,a.start)));let l=n.createElement("span");l.className=ja,l.setAttribute("data-copy",a.value);let c=n.createElement("button");c.type="button",c.className="j3-popover-copy-target",c.textContent=i.slice(a.start,a.end),l.appendChild(c),l.appendChild(Kf(n,e)),o.appendChild(l),s=a.end}s<i.length&&o.appendChild(n.createTextNode(i.slice(s))),t.parentNode.replaceChild(o,t)}function F2(t){let n=t?.closest("a[href]");if(!n)return!1;let e=(n.getAttribute("href")||"").toLowerCase();return e.startsWith("mailto:")||e.startsWith("tel:")}function z2(t){let n=[],e=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_TEXT),i=e.nextNode();for(;i;){let r=i.parentElement;!r||r.closest(`.${ja}`)||F2(r)||r.tagName==="SCRIPT"||r.tagName==="STYLE"||n.push(i),i=e.nextNode()}return n}function Xf(t,n){if(!t||typeof DOMParser>"u")return t||"";let e=new DOMParser().parseFromString(`<div>${t}</div>`,"text/html"),i=e.body.firstElementChild;return i?(L2(i,e,n),z2(i).forEach(r=>{N2(r,e,n)}),i.innerHTML):t}var nd=(()=>{class t{constructor(){this.#e=q(ct),this.#t=q(za),this.#i=q(Wr),this.contentHtml=""}#e;#t;#i;set html(e){this.contentHtml=Xf(e||"",this.#i.instant("CORE.COPY.toClipboard")),this.#e.markForCheck()}onContentClick(e){let i=e.target;if(!(i instanceof Element))return;let r=i.closest("[data-copy]");if(!(r instanceof HTMLElement))return;let o=r.getAttribute("data-copy");o&&this.copyToClipboard(o,e)}copyToClipboard(e,i){i.preventDefault(),i.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{this.#t.neutralToast(this.#i.instant("CORE.COPY.copied"))},()=>{this.#t.errorToast(this.#i.instant("CORE.COPY.failed"))})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-interactive-popover-content"]],inputs:{html:"html"},decls:2,vars:4,consts:[[1,"interactive-popover-html",3,"click","innerHTML"]],template:function(i,r){i&1&&(He(0,"div",0),fe(1,"safeUrl"),Pi("click",function(s){return r.onContentClick(s)}),Ye()),i&2&&ln("innerHTML",cn(1,1,r.contentHtml,"html"),ci)},dependencies:[Ze,us],styles:["[_nghost-%COMP%]{display:block}.interactive-popover-html[_ngcontent-%COMP%]{cursor:text;-webkit-user-select:text;user-select:text;white-space:pre-line}"],changeDetection:0})}}return t})();var B2=["nativeSource"],j2=(t,n)=>n.srcset+n.type;function $2(t,n){if(t&1&&cr(0,"source",1),t&2){let e=n.$implicit;ln("srcset",e.srcset)("type",e.type),Oe("media",e.mediaSize)}}function H2(t,n){if(t&1){let e=Te();He(0,"picture"),st(1,$2,1,3,"source",1,j2),fe(3,"ngrxPush"),He(4,"img",2,0),Pi("load",function(){ee(e);let r=S();return te(r.imageLoad.emit())}),Ye()()}if(t&2){let e=S();E(),at(be(3,5,e.imagesList)),E(3),ln("src",e.arrayOrSingle(e.sourceSize)?e.imgSrc[e.mainImageSize]:e.urlExist(e.imgSrc[e.mainImageSize])?e.imgSrc[e.sourceSize]:e.generateImageLink(e.imgSrc.s,e.mainImageSize),Ls)("alt",e.alt?e.alt:"image")("title",e.title??""),Oe("loading",e.loading)("fetchpriority",e.fetchPriority)}}var rd=(()=>{class t{constructor(e){this.platformId=e,this.loading="lazy",this.fetchPriority=null,this.imageLoad=new j,this.mediaSize=Ue.ImageSize,this.pictureSizes=Ue.PicturesSizes,this.imagesList=new nt([]),this.mainImageSize=""}ngAfterViewInit(){this.imgComponentRef&&_o(this.imgComponentRef.nativeElement,"error").pipe(Se(1),Eo(()=>this.imagesList),Pe(([e,i])=>{let r=e.target,o=i.find(s=>s.srcset===r.currentSrc);return o?this.#e(o.srcset,i):i})).subscribe(e=>{this.imagesList.next(e)})}ngOnChanges(e){if(e.imgSrc||e.sourceSize)if(Nr(this.sourceSize))this.#t(this.sourceSize,!0),this.mainImageSize=this.sourceSize[this.sourceSize.length-1];else{this.#t([this.sourceSize],!1);let i=this.sourceSize.split(",");this.mainImageSize=i[i.length-1]}}arrayOrSingle(e){return Nr(e)}urlExist(e){return!we(e)}generateImageLink(e,i,r){let o=i!==Ue.PicturesSizes.L?this.mediaSize[i]:"1920";return`${(e??"").replace("400x400",`${o}x${o}`)}${r?`.${r}`:""}`}#e(e,i){let r=i.findIndex(o=>o.srcset===e);return i.splice(r,1),i}#t(e,i){let r=[];e.forEach((o,s)=>{let a="",l="";switch(!0){case e.length===1:a="",l="";break;case e.length-1===s:a=this.mediaSize[e[s-1]]?`(min-width: ${this.mediaSize[e[s-1]]+1}px)`:"";break;default:a=this.mediaSize[e[s-1]]?`(min-width: ${this.mediaSize[e[s-1]]+1}px)`:"",l=`${this.mediaSize[e[s-1]]?" and ":""}(max-width: ${this.mediaSize[e[s]]}px)`;break}let c=a!==""||l!==""?`${a}${l}`:null;we(this.imgSrc?.s)||r.push({srcset:this.generateImageLink(this.imgSrc.s,o,"webp"),mediaSize:c,type:"image/webp"}),(!we(this.imgSrc?.[o])||we(this.imgSrc?.[o])&&!we(this.imgSrc?.s))&&e.length>1&&r.push({srcset:this.urlExist(this.imgSrc[o])?this.imgSrc[o]:this.generateImageLink(this.imgSrc.s,o),mediaSize:c,type:"image/jpeg"})}),this.imagesList.next(r)}static{this.\u0275fac=function(i){return new(i||t)($(ze))}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-image"]],viewQuery:function(i,r){if(i&1&&ft(B2,5),i&2){let o;Ge(o=We())&&(r.imgComponentRef=o.first)}},inputs:{alt:"alt",title:"title",imgSrc:"imgSrc",sourceSize:"sourceSize",cssWidth:"cssWidth",cssHeight:"cssHeight",loading:"loading",fetchPriority:"fetchPriority"},outputs:{imageLoad:"imageLoad"},features:[li],decls:1,vars:1,consts:[["nativeSource",""],[3,"srcset","type"],[3,"load","src","alt","title"]],template:function(i,r){i&1&&oe(0,H2,6,7,"picture"),i&2&&se(r.imgSrc?0:-1)},dependencies:[Ce,On],styles:[`picture{max-height:inherit;max-width:inherit}picture img{max-height:inherit;max-width:100%}
42`],encapsulation:2,changeDetection:0})}}return t})();
42var si="data-element-def",od="data-inspect-id";var St=(function(t){return t.SUBMIT="SUBMIT",t.REMOVE="REMOVE",t.CANCEL="CANCEL",t})(St||{});var ot=(function(t){return t.EXTERNAL_URL="EXTERNAL_URL",t.LINK_CMS_TO_PAGE="LINK_CMS_TO_PAGE",t.MAIL="MAIL",t.LINK_TO_FILE="LINK_TO_FILE",t})(ot||{});var Jf=class{constructor(n,e){this.resourcesManager=n,this.filesLogsService=e,this.isAnchorElement=i=>i?.nodeName.toLowerCase()==="a"&&i.hasAttribute(si),this.getParentAnchor=i=>i.parentElement?this.isAnchorElement(i.parentElement)?i.parentElement:this.getParentAnchor(i.parentElement):null}navigate(n,e){let{linkType:i}=e,r=!1;switch(i){case ot.EXTERNAL_URL:case ot.MAIL:break;case ot.LINK_CMS_TO_PAGE:this.navigateToCMSPage(n,e),r=!0;break;case ot.LINK_TO_FILE:this.onResouceAnchorClicked(n),r=!0;break}return r}onResouceAnchorClicked(n){try{n.preventDefault(),n.stopPropagation();let{target:e}=n,i=this.isAnchorElement(e)?e:this.getParentAnchor(e);if(!i)return;let r=JSON.parse(decodeURIComponent(i.getAttribute(si)||"{}"));if(r?.linkType!==ot.LINK_TO_FILE||!r?.resource&&!r?.resourceId)return;let{openInNewTab:o}=r,s=r?.resource?r?.resource?.id:r?.resourceId;r?.resource?(this.filesLogsService.addLogOfstedDetection(r.resource.file),this.filesLogsService.addLogView(r.resource.file)):this.resourcesManager.getResource(s,"SINGLE").pipe(Se(1)).subscribe(l=>{this.filesLogsService.addLogOfstedDetection(l?.file),this.filesLogsService.addLogView(l?.file)});let a=`/_resources/${s}`;window.open(a,o||n.ctrlKey||n.metaKey?"_blank":"_self")}catch(e){console.warn(`ERR: cannot parse '${si}' for given selection`)}}},Zf=new qe("J3_LINK_PROVIDER");var Qf=new qe("J3_EDITOR_CLIPBOARD_IMAGE_UPLOADER");var oo=t=>{let n=t.selection.getBookmark(2,!0),e=s=>{s.preventDefault(),s.stopImmediatePropagation()};t.on("focusin",e);let i=t.getContainer();i?.setAttribute("inert",""),t.getBody()?.blur(),i?.blur();let r=()=>{t.removed||t.selection.moveToBookmark(n)};return{restoreSelection:r,resume:()=>{t.off("focusin",e),i?.removeAttribute("inert"),!t.removed&&(r(),t.focus())}}};function G2(t,n){if(t&1&&(He(0,"div",2)(1,"span",3),A(2),Ye()()),t&2){let e=S(2);Ee("spinner-border-sm",e.size==="sm")("j3-loading-spinner--md",e.size==="md")("j3-loading-spinner--lg",e.size==="lg")("j3-loading-spinner--editor",e.size==="editor")("text-primary",e.color==="primary")("text-secondary",e.color==="secondary"),E(2),Be(e.label)}}function W2(t,n){if(t&1&&(He(0,"div",4)(1,"div",5)(2,"span",3),A(3),Ye()()()),t&2){let e=S(2);Ee("j3-loading-spinner-wrapper--centered",e.centered),E(),Ee("spinner-border-sm",e.size==="sm")("j3-loading-spinner--md",e.size==="md")("j3-loading-spinner--lg",e.size==="lg")("j3-loading-spinner--editor",e.size==="editor")("text-primary",e.color==="primary")("text-secondary",e.color==="secondary"),E(2),Be(e.label)}}function q2(t,n){if(t&1&&oe(0,G2,3,13,"div",0)(1,W2,4,15,"div",1),t&2){let e=S();se(e.inline?0:1)}}var ps=(()=>{class t{constructor(){this.loading=!0,this.size="default",this.centered=!1,this.inline=!1,this.color="primary",this.label="Loading..."}get isInlineHost(){return this.inline}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-loading-spinner"]],hostVars:2,hostBindings:function(i,r){i&2&&Ee("j3-loading-spinner-host--inline",r.isInlineHost)},inputs:{loading:"loading",size:"size",centered:"centered",inline:"inline",color:"color",label:"label"},decls:1,vars:1,consts:[["role","status","aria-hidden","true",1,"spinner-border","j3-loading-spinner",3,"spinner-border-sm","j3-loading-spinner--md","j3-loading-spinner--lg","j3-loading-spinner--editor","text-primary","text-secondary"],["role","status","aria-live","polite",1,"j3-loading-spinner-wrapper",3,"j3-loading-spinner-wrapper--centered"],["role","status","aria-hidden","true",1,"spinner-border","j3-loading-spinner"],[1,"visually-hidden"],["role","status","aria-live","polite",1,"j3-loading-spinner-wrapper"],["role","status",1,"spinner-border","j3-loading-spinner"]],template:function(i,r){i&1&&oe(0,q2,2,1),i&2&&se(r.loading?0:-1)},styles:[".j3-loading-spinner-wrapper--centered[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:3rem 0}.j3-loading-spinner-host--inline[_nghost-%COMP%]{display:inline-block;vertical-align:middle}.j3-loading-spinner--md[_ngcontent-%COMP%]{height:3rem;width:3rem}.j3-loading-spinner--lg[_ngcontent-%COMP%]{height:4rem;width:4rem}
42.j3-loading-spinner--editor[_ngcontent-%COMP%]{height:80px;width:80px}"],changeDetection:0})}}return t})();function Y2(t,n){t&1&&(y(0,"div",10),ge(1,"j3-loading-spinner"),w())}function K2(t,n){if(t&1&&ge(0,"div",11),t&2){let e=S();W("innerHtml",e.preview,ci)}}var hs=(()=>{class t{constructor(e,i){this.activeModal=e,this.aiService=i,this.model={},this.preview="",this.loading=!1}get formActionType(){return St}get placeholderText(){return this.model.selectionContent?"Tell AI how to alter your selected text...":"Ask AI to generate text..."}onClose(){this.activeModal.close({formAction:St.CANCEL})}onSubmit(e){this.activeModal.close({generated:this.preview,formAction:e})}generate(){this.loading=!0,this.aiService.chat(this.model.prompt,this.model.selectionContent??void 0).subscribe({next:e=>{this.loading=!1,this.preview=e},error:()=>{this.loading=!1}})}static{this.\u0275fac=function(i){return new(i||t)($(ni),$(Qu))}}static{this.\u0275cmp=ie({type:t,selectors:[["ng-component"]],decls:18,vars:10,consts:[[1,"card"],[1,"card-header","d-flex","align-items-center","justify-content-between"],[1,"m-0"],[1,"close-icon","material-icons-outlined",3,"click"],[1,"card-body"],[1,"form-container",3,"ngSubmit"],[1,"input-group","mb-3"],["type","text","name","prompt",1,"form-control",3,"ngModelChange","ngModel","disabled","placeholder"],["type","submit",1,"btn","btn-outline-secondary",3,"disabled"],[1,"fa","fa-paper-plane"],[1,"d-flex","justify-content-center"],[1,"preview",3,"innerHtml"],[1,"card-footer","d-flex","align-items-center","justify-content-end"],["id","submitbutton",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,r){i&1&&(y(0,"div",0)(1,"div",1)(2,"h5",2),A(3,"AI Assistant"),w(),y(4,"i",3),J("click",function(){return r.onClose()}),A(5,"close"),w()(),y(6,"div",4)(7,"form",5),J("ngSubmit",function(){return r.generate()}),y(8,"div",6)(9,"input",7),Vi("ngModelChange",function(s){return zi(r.model.prompt,s)||(r.model.prompt=s),s}),w(),y(10,"button",8),fe(11,"translate"),ge(12,"i",9),w()(),oe(13,Y2,2,0,"div",10),oe(14,K2,1,1,"div",11),w()(),y(15,"div",12)(16,"button",13),J("click",function(){return r.onSubmit(r.formActionType.SUBMIT)}),A(17," Insert "),w()()()),i&2&&(E(9),Fi("ngModel",r.model.prompt),W("disabled",r.loading)("placeholder",r.placeholderText),E(),W("disabled",!r.model.prompt||r.loading),Oe("aria-label",be(11,8,"Send")),E(3),se(r.loading?13:-1),E(),se(r.preview&&!r.loading?14:-1),E(2),W("disabled",!r.preview))},dependencies:[Ce,ii,An,Hr,mi,Dn,Mn,ap,Ze,ps,dt],styles:[".close-icon[_ngcontent-%COMP%]{cursor:pointer}.preview[_ngcontent-%COMP%]{max-height:300px;overflow-y:scroll;border:1px solid #ddd;border-radius:5px;padding:5px}.card-footer[_ngcontent-%COMP%]   button[disabled][_ngcontent-%COMP%]{opacity:.2}"]})}}return t})();var J2=(t,n)=>{t.insertContent(n)},Z2=(t,n)=>{let e=n(vt),r={selectionContent:t.selection.getContent()},o=oo(t);e.run(()=>{let a=n(gi).open(hs,{backdrop:"static"});a.componentInstance.model=r,a.closed.pipe(Se(1)).subscribe(l=>{if(!l||l.formAction===St.CANCEL){o.resume();return}let{generated:c}=l;o.restoreSelection(),J2(t,c),o.resume()})})},em=(t,n)=>{let e=()=>Z2(t,n),i={icon:"ai",tooltip:"AI",onAction:e};t.ui.registry.addButton("j3AI",i),t.ui.registry.addMenuItem("j3AI",U(T({},i),{text:"AI..."})),t.addCommand("j3AICommand",e)};var so=(t,n)=>{t.windowManager.alert(n)},eb=t=>{let n="Your browser does not have access to the clipboard. Please grant access or use Ctrl+C/Cmd+C keyboard shortcuts to copy contents.";try{navigator.clipboard.writeText("").then(()=>t.execCommand("Copy")).catch(e=>{console.error("J3CopyPlugin error:",e),so(t,n)})}catch(e){so(t,n)}},tb=t=>{let n="Your browser does not have access to the clipboard. Please grant access or use Ctrl+V/Cmd+V keyboard shortcuts to paste contents.";try{navigator.clipboard.read().then(e=>{if(!e.length)return Promise.reject();let i=e[0];return i.types.includes("text/html")?i.getType("text/html"):i.getType("text/plain")}).then(e=>e.text()).then(e=>t.execCommand("mceInsertContent",!1,e)).catch(e=>{console.error("J3PastePlugin error:",e),so(t,n)})}catch(e){so(t,n)}},ib=t=>{let n="Your browser does not have access to the clipboard. Please grant access or use Ctrl+X/Cmd+X keyboard shortcuts to cut contents.";try{navigator.clipboard.writeText(t.selection.getContent()).then(()=>t.execCommand("Cut")).catch(e=>{console.error("J3CopyPlugin error:",e),so(t,n)})}catch(e){so(t,n)}},nb=t=>
42{let n={tooltip:"Copy",icon:"copy",onAction:()=>eb(t)};t.ui.registry.addButton("j3Copy",n),t.ui.registry.addMenuItem("j3Copy",U(T({},n),{text:"Copy",shortcut:"Meta+C"}))},rb=t=>{let n={tooltip:"Paste",icon:"paste",onAction:()=>tb(t)};t.ui.registry.addButton("j3Paste",n),t.ui.registry.addMenuItem("j3Paste",U(T({},n),{text:"Paste",shortcut:"Meta+V"}))},ob=t=>{let n={tooltip:"Cut",icon:"cut",onAction:()=>ib(t)};t.ui.registry.addButton("j3Cut",n),t.ui.registry.addMenuItem("j3Cut",U(T({},n),{text:"Cut",shortcut:"Meta+X"}))},tm=t=>{nb(t),rb(t),ob(t)};function ab(t,n){if(t&1&&ge(0,"formly-form",6),t&2){let e=S();W("form",e.formGroup)("fields",e.formFields)("model",e.model)}}var fs=(()=>{class t{#e;constructor(e,i,r){this.activeModal=e,this.resourceManager=i,this.dialogData=r,this.#e=q(qt),this.viewInitialized=!1,this.viewInitialized$=new nt(!1),this.modelValue={imageSize:"m"}}get formGroup(){return this.formGroupValue||(this.formGroupValue=new un({})),this.formGroupValue}get model(){return this.modelValue}set model(e){this.modelValue=e}get formFields(){return this.formFieldsValue||(this.formFieldsValue=this.defineFormFields()),this.formFieldsValue}get formActionType(){return St}ngOnInit(){this.initializeModel(this.dialogData?.formModel)}ngAfterViewInit(){setTimeout(()=>{this.model=T(T({},this.model),this.dialogData?.formModel),this.viewInitialized=!0})}onClose(){this.activeModal.close({formAction:St.CANCEL})}onSubmit(e){let i=xe(this.model);if(e===St.SUBMIT){let{resourceId:r,file:o}=this.model;i=(r?this.resourceManager.putResource.bind(this.resourceManager):this.resourceManager.setResource.bind(this.resourceManager))({id:r,file:o},"SINGLE").pipe(At(this.#e),Ae(l=>this.resourceManager.getResource(l,"SINGLE")),Pe(l=>{let{id:c,file:p}=l;return U(T({},this.model),{resourceId:c,file:p})}))}i.pipe(Se(1)).subscribe(r=>{this.activeModal.close({model:r,formAction:e})})}defineFormFields(){return[{fieldGroup:[{type:"file-upload",key:"file",templateOptions:{multipleItems:!1,allowTypes:[1],label:"Image",required:!0,openItemInEditorOnClick:!0,replaceSingleOnItemClick:!0}},{fieldGroupClassName:"row",fieldGroup:[{className:"col-6",key:"width",type:"input",templateOptions:{label:"Width"}},{className:"col-6",key:"height",type:"input",templateOptions:{label:"Height"}}]},{type:"image-resolution",key:"imageSize",defaultValue:"m",props:{label:"Image Resolution",required:!0,valueProp:"value",labelProp:"label",clearable:!1,options:[{label:"Extra Small",value:"xs",tooltip:"200px"},{label:"Small",value:"s",tooltip:"400px"},{label:"Medium",value:"m",tooltip:"800px"},{label:"Large",value:"ml",tooltip:"1300px"},{label:"Extra Large",value:"l",tooltip:"1920px"}]}},{type:"input",key:"description",templateOptions:{label:"Alternative description"}}]}]}initializeModel(e){let{resourceId:i}=e;if(i){this.resourceManager.getResource(i).pipe(Se(1)).subscribe(r=>{let o=r;this.model=U(T({},e),{file:o.file}),this.viewInitialized$.next(!0)});return}this.model=T(T({},this.model),e),this.viewInitialized$.next(!0)}static{this.\u0275fac=function(i){return new(i||t)($(ni),$(ro),$($i,8))}}static{this.\u0275cmp=ie({type:t,selectors:[["ng-component"]],decls:13,vars:5,consts:[[1,"card"],[1,"card-header","d-flex","align-items-center","justify-content-between"],[1,"m-0"],[1,"close-icon","material-icons-outlined",3,"click"],[1,"card-body"],[1,"form-container",3,"formGroup"],[3,"form","fields","model"],[1,"card-footer","d-flex","align-items-center","justify-content-end"],["id","submitbutton",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,r){i&1&&(y(0,"div",0)(1,"div",1)(2,"h5",2),A(3,"Image settings"),w(),y(4,"i",3),J("click",function(){return r.onClose()}),A(5,"close"),w()(),y(6,"div",4)(7,"form",5),oe(8,ab,1,3,"formly-form",6),fe(9,"ngrxPush"),w()(),y(10,"div",7)(11,"button",8),J("click",function(){return r.onSubmit(r.formActionType.SUBMIT)}),A(12," Submit "),w()()()),i&2&&(E(7),W("formGroup",r.formGroup),E(),se(be(9,3,r.viewInitialized$)?8:-1),E(3),W("disabled",!r.viewInitialized||!r.formGroup.valid))},dependencies:[Ce,jt,An,Dn,Rn,Nt,Bn,On],styles:[".close-icon[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Sr="data-element-def",nm=t=>t?.nodeName?.toLowerCase()==="img"&&t.hasAttribute(Sr),rm=(t,n)=>{let e=n||t.selection.getNode();return nm(e)?n:t.dom.getParent(n,"img[src]")},cb=[{size:"xs",px:200},{size:"s",px:400},{size:"m",px:800},{size:"ml",px:1300},{size:"l",px:1920}],om=t=>{let n=Math.min(Math.max(1,Math.round(t)),1920);for(let e of cb)if(e.px>=n)return e.size;return"l"},ms=t=>{let n={},l=t,{file:e,description:i}=l,r=Gt(l,["file","description"]);r.width||delete r.width,r.height||delete r.height;let o=e,s=o.icon||o.url,a=r.imageSize??"m";return n.src=s?.webp?s.webp[a]:s[a],n.alt=i||"",t.width&&(n.width=`${t.width}`),t.height&&(n.height=`${t.height}`,n.style=`max-height: ${t.height}px;`),n[Sr]=encodeURIComponent(JSON.stringify(r)),n}
42,db=(t,n,e)=>{t.dom.setAttribs(n,ms(e)),t.selection.select(n)},ub=(t,n)=>{t.insertContent(t.dom.createHTML("img",ms(n)))},pb=(t,n)=>{let e=t.selection.getNode(),i=rm(t,e);t.undoManager.transact(()=>{if(i){db(t,i,n);return}ub(t,n)})},im=(t,n)=>{let e=rm(t,t.selection.getNode()),i=n(vt),r={};if(e?.hasAttribute(Sr))try{r=JSON.parse(decodeURIComponent(e.getAttribute(Sr)||"{}")),r=U(T({},r),{description:e.getAttribute("alt"),height:e.getAttribute("height"),width:e.getAttribute("width")})}catch(s){console.warn(`ERR: cannot parse "${Sr}" for given selection`)}let o=oo(t);i.run(()=>{n(gi).open(fs,{injector:ht.create({providers:[{provide:$i,useValue:{formModel:r,showRemoveButton:!1}}],parent:n(ht)})}).closed.pipe(Se(1)).subscribe(l=>{if(!l||l.formAction===St.CANCEL){o.resume();return}let{model:c,formAction:p}=l;p===St.SUBMIT&&(o.restoreSelection(),pb(t,c)),o.resume()})})},ad=(t,n)=>{let e=t.querySelectorAll("img[data-element-def]");e.length&&e.forEach(i=>{let r=JSON.parse(decodeURIComponent(i.getAttribute(Sr)||"{}"));we(r.imageSize)&&(r.imageSize="m",i.setAttribute(Sr,JSON.stringify(r)),i.setAttribute("src",i.src.replace(/\d+x\d+/g,"800x800")))})},sm=(t,n)=>{t.ui.registry.addButton("j3Image",{icon:"image",tooltip:"Image...",onAction:()=>im(t,n)}),t.ui.registry.addMenuItem("j3Image",{icon:"image",text:"Image...",onAction:()=>im(t,n)}),t.ui.registry.addContextMenu("j3Image",{update:e=>nm(e)?["j3Image"]:[]}),t.on("SetContent",e=>{let{content:i,target:r}=e;i?.trim()&&ad(r.getBody(),n)})};var fb=(t,n)=>({"justify-content-between":t,"justify-content-end":n});function mb(t,n){if(t&1&&(y(0,"div",4)(1,"form",8),ge(2,"formly-form",9),w()()),t&2){let e=S();E(),W("formGroup",e.formGroup),E(),W("form",e.formGroup)("fields",e.formFields)("model",n)}}function gb(t,n){if(t&1){let e=Te();y(0,"button",10),J("click",function(){ee(e);let r=S();return te(r.onSubmit(r.formActionType.REMOVE))}),A(1," Remove "),w()}}var gs=(()=>{class t{#e;#t;constructor(e,i,r,o,s){this.activeModal=e,this.store=i,this.resourceManager=r,this.filesCollectionService=o,this.dialogData=s,this.#e=q(kp),this.#t=q(qt),this.viewInitialized=!1,this.modelValue=new nt(void 0),this.pageMenuLinksList=[],this.showRemoveButton=s?.showRemoveButton}get formGroup(){return this.formGroupValue||(this.formGroupValue=new un({})),this.formGroupValue}get model$(){return this.modelValue.asObservable()}get formFields(){return this.formFieldsValue||(this.formFieldsValue=this.defineFormFields()),this.formFieldsValue}get removeButton(){return this.showRemoveButton}get formActionType(){return St}ngOnInit(){this.initializeModel(this.dialogData?.formModel)}onClose(){this.activeModal.close({formAction:St.CANCEL})}onSubmit(e){let i=xe(!0);if(e===St.SUBMIT&&this.modelValue.value.linkType===ot.LINK_TO_FILE){let{resource:r,resourceId:o,file:s}=this.modelValue.value,a=r||o?this.resourceManager.putResource.bind(this.resourceManager):this.resourceManager.setResource.bind(this.resourceManager),l={id:!we(r)||!we(o)?r?.id||o:void 0,file:s};i=a(l,"SINGLE").pipe(At(this.#t),Fe(c=>{this.modelValue.value.resourceId=c}))}i.pipe(Se(1)).subscribe(()=>{this.activeModal.close({model:this.modelValue.value,formAction:e})})}defineFormFields(){return[{fieldGroup:[{type:"checkbox",key:"openInNewTab",defaultValue:!1,templateOptions:{label:"Open in new tab?"}},{type:"ng-select",key:"linkType",templateOptions:{label:"Link type",options:xe([{id:ot.EXTERNAL_URL,name:"External url"},{id:ot.LINK_CMS_TO_PAGE,name:"Link to cms page"},{id:ot.MAIL,name:"E-Mail address"},{id:ot.LINK_TO_FILE,name:"File"}]),valueProp:"id",labelProp:"name",multiple:!1,placeholder:"Select link type",required:!0}},{type:"ng-select",key:"protocol",templateOptions:{label:"Protocol",options:xe([{id:"https",name:"HTTPS"},{id:"http",name:"HTTP"}]),valueProp:"id",labelProp:"name",multiple:!1,placeholder:"Select protocol type",required:!0},hideExpression:e=>e?.linkType!==ot.EXTERNAL_URL},{type:"input",key:"url",templateOptions:{label:"URL",placeholder:"Enter url",required:!0},hideExpression:e=>e?.linkType!==ot.EXTERNAL_URL,hooks:{onInit:e=>e.formControl.valueChanges.pipe(Co(),Fe(i=>{if(this.isValidHttpUrl(i)){let r=i.split("//");this.modelValue.next(U(T({},this.modelValue.value),{url:r[1],protocol:r[0].replace(":","")}))}}))}},{type:"input",key:"mail",templateOptions:{label:"E-mail address",placeholder:"Enter e-mail address",required:!0},hideExpression:e=>e?.linkType!==ot.MAIL},{type:"ng-select",key:"page",templateOptions:{label:"CMS pages",options:this.#e.canActivate().pipe(Ne(e=>e),Ae(()=>this.store.select(To.pagesSelectors.pagesListStateSelector).pipe(Fe(({isLoaded:e,isLoading:i})=>{!e&&!i&&this.store.dispatch(To.pagesActions.pagesListActions.LoadPagesList({}))}),Ne(e=>e.isLoaded),Ae(e=>xe(Object.values(e.entities))),Pe(e=>{let i=e.filter(o=>o.draftState===Ue.DraftState.PUBLISHED),r=this.generateTreeMenu(Hs(i.sort((o,s)=>(we(o.lp)?1/0:o.lp)-(we(s.lp)?1/0:s.lp))),o=>!o.parentId||o.parentId?.trim()==="");return this.generateOptionList(r)})))),valueProp:"id",labelProp:"name",multiple:!1,placeholder:"Select page"},hideExpression:e=>e?.linkType!==ot.LINK_CMS_TO_PAGE},{type:"file-upload",key:"file",templateOptions:{multipleItems:!1,allowTypes:["all"],label:"File",required:!0,openItemInEditorOnClick:!0,replaceSingleOnItemClick:!0},hideExpression:e=>e?.linkType!==ot.LINK_TO_FILE},{type:"checkbox",key:"linkAsButton",defaultValue:!1,templateOptions:{label:"Link as button"}}]}]}isValidHttpUrl(e){let i;try{i=new URL(e)}catch(r){return!1}return i.protocol==="http:"||i.protocol==="https:"}generateOptionList(e){return e.map(i=>{this.pageMenuLinksList.push({name:`${"\u2014".repeat(i.level)}${i.title}
42`,disabled:i.type!==1,id:i.url}),i?.children&&this.generateOptionList(i.children)}),this.pageMenuLinksList}generateTreeMenu(e,i,r){let o=[];for(let s of e.filter(a=>i(a))){let a=r||0;s.parentId&&(s.parentName=e.find(l=>l.id===s.parentId)?.title),o.push(U(T({},s),{level:a,children:this.generateTreeMenu(e,l=>l.parentId===s.id,a+1)}))}return o}initializeModel(e){let{resource:i,resourceId:r}=e;if(i||r){this.resourceManager.getResource(i?.id||r).pipe(Ae(o=>{let s=o;return this.filesCollectionService.getByKey(typeof s.file=="string"?s.file:s.file.id).pipe(Pe(a=>U(T({},s),{file:a})))}),Se(1)).subscribe(o=>{this.modelValue.next(T(T({},e),o)),this.viewInitialized=!0});return}this.modelValue.next(T({},e)),this.viewInitialized=!0}static{this.\u0275fac=function(i){return new(i||t)($(ni),$(Rt),$(ro),$(tp),$($i,8))}}static{this.\u0275cmp=ie({type:t,selectors:[["ng-component"]],decls:12,vars:10,consts:[[1,"card"],[1,"card-header","d-flex","align-items-center","justify-content-between"],[1,"m-0"],[1,"close-icon","material-icons-outlined",3,"click"],[1,"card-body"],[1,"card-footer","d-flex","align-items-center",3,"ngClass"],["id","deletebutton",1,"btn","btn-danger","text-white"],["id","submitbutton",1,"btn","btn-primary",3,"click","disabled"],[1,"form-container",3,"formGroup"],[3,"form","fields","model"],["id","deletebutton",1,"btn","btn-danger","text-white",3,"click"]],template:function(i,r){if(i&1&&(y(0,"div",0)(1,"div",1)(2,"h5",2),A(3),w(),y(4,"i",3),J("click",function(){return r.onClose()}),A(5,"close"),w()(),oe(6,mb,3,4,"div",4),fe(7,"ngrxPush"),y(8,"div",5),oe(9,gb,2,0,"button",6),y(10,"button",7),J("click",function(){return r.onSubmit(r.formActionType.SUBMIT)}),A(11," Submit "),w()()()),i&2){let o;E(3),Be("Link settings"),E(3),se((o=be(7,5,r.model$))?6:-1,o),E(2),W("ngClass",Or(7,fb,r.removeButton,!r.removeButton)),E(),se(r.removeButton?9:-1),E(),W("disabled",!r.viewInitialized||!r.formGroup.valid)}},dependencies:[Ce,hi,jt,An,Dn,Rn,Nt,Bn,On],styles:[".close-icon[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0})}}return t})();var am={},ld=t=>t?.nodeName.toLowerCase()==="img"&&t.hasAttribute(si),cm=(t,n)=>{let e=n||t.selection.getNode();return ld(e),t.dom.getParent(e,"a[href]")},_b=(t,n)=>{let e=t.dom.select("img",n)[0];if(!e)return;let i=t.dom.getParents(e,"a[href]",n)[0];i&&(i.parentNode.insertBefore(e,i),t.dom.remove(i))},bb=t=>{let n=t.dom,e=t.selection,i=e.getBookmark(),r=e.getRng().cloneRange(),o=n.getParent(r.startContainer,"a[href]",t.getBody()),s=n.getParent(r.endContainer,"a[href]",t.getBody());o&&r.setStartBefore(o),s&&r.setEndAfter(s),e.setRng(r),t.execCommand("unlink"),e.moveToBookmark(i)},yb=t=>{t.undoManager.transact(()=>{try{let n=t.selection.getNode();ld(n)?_b(t,n):bb(t)}finally{t.focus()}})},Cb=t=>{if(t.hasPlugin("rtc",!0)){t.execCommand("unlink");return}yb(t)},lm=t=>{let{linkType:n,protocol:e,url:i,page:r,mail:o}=t;switch(n){case ot.EXTERNAL_URL:return`${e}://${i}`;case ot.LINK_CMS_TO_PAGE:{let s=Sp(r);return s.length?s.join("/"):"#"}case ot.MAIL:return`mailto:${o}`;case ot.LINK_TO_FILE:return"#"}},cd=(t,n)=>{let e={},s=t,{file:i,resource:r}=s,o=Gt(s,["file","resource"]);return e.href=n.sanitize(ku.URL,lm(t)),e.alt=t.title||lm(t),e.target=t.openInNewTab?"_blank":"_self",e[si]=encodeURIComponent(JSON.stringify(o)),e.class=t.linkAsButton?"text-link-button":"",e},wb=(t,n,e,i)=>{t.dom.setAttribs(n,cd(e,i)),t.selection.select(n)},Eb=(t,n,e,i)=>{let r=n?.nodeName.toLocaleLowerCase()==="img"?n:t.dom.select("img",n)[0];if(!r)return;let o=t.dom.create("a",cd(e,i));r.parentNode.insertBefore(o,r),o.appendChild(r)},Sb=(t,n,e,i)=>{if(ld(n)){Eb(t,n,e,i);return}t.execCommand("mceInsertLink",!1,cd(e,i))},Ib=(t,n,e)=>{let i=t.selection.getNode(),r=cm(t,i);t.undoManager.transact(()=>{if(r){wb(t,r,n,e);return}Sb(t,i,n,e)})},xb=(t,n)=>{let e=n(vt),i=t.selection.getContent(),r=cm(t,t.selection.getNode());if(!r&&!i?.trim()?.length)return;let o={};if(r?.nodeName?.toLowerCase()==="a")try{o=JSON.parse(decodeURIComponent(r.getAttribute(si)||"{}"))}catch(a){console.warn(`ERR: cannot parse "${si}" for given selection`)}let s=oo(t);e.run(()=>{n(gi).open(gs,{backdrop:"static",injector:ht.create({providers:[{provide:$i,useValue:{formModel:o,showRemoveButton:!Fr(o,{})}}],parent:n(ht)})}).closed.pipe(Se(1)).subscribe(c=>{if(!c||c.formAction===St.CANCEL){s.resume();return}let{model:p,formAction:h}=c;s.restoreSelection(),(h===St.SUBMIT?()=>{let d=n(kn);Ib(t,p,d)}:()=>Cb(t))(),$a(t.getBody(),n),s.resume()})})},$a=(t,n)=>{let e=t.getAttribute(od);e?clearTimeout(am[e]):(e=Vt(),t.setAttribute(od,e)),am[e]=setTimeout(()=>{let i=t.querySelectorAll("a[data-element-def]"),r=n(Zf);
42i.length&&i.forEach(o=>{try{let s=JSON.parse(decodeURIComponent(o.getAttribute(si)||"{}")),a=l=>{let c=l,p=r.navigate(c,s);return p&&(c.preventDefault(),c.stopPropagation(),c.stopImmediatePropagation()),p};o.removeEventListener("click",a),o.addEventListener("click",a)}catch(s){console.warn(`ERR: cannot parse "${si}" for given selection`)}})},200)},dm=(t,n)=>{let e=()=>xb(t,n),i={icon:"link",tooltip:"Link",onAction:e};t.ui.registry.addButton("j3Link",i),t.ui.registry.addMenuItem("j3Link",U(T({},i),{text:"Link...",shortcut:"Meta+K"})),t.addCommand("j3LinkCommand",e),t.addShortcut("Meta+K","",()=>t.execCommand("j3LinkCommand")),t.on("SetContent",r=>{let{content:o,target:s}=r;!o?.trim()||!t.mode.isReadOnly()||$a(s.getBody(),n)})};var dd=[dm,em,sm,tm],um=[$a,ad];var Pb=["tinyEditor"],kb=["previewBox"];function Db(t,n){if(t&1&&(ge(0,"div",7,1),fe(2,"ngrxPush"),fe(3,"safeUrl")),t&2){let e=S(2);rt(e.previewContainerClass||"j3-text-editor-preview-wrapper"),W("innerHTML",cn(3,5,be(2,3,e.translatedContent)||"","html"),ci)}}function Mb(t,n){if(t&1&&ge(0,"div",8),t&2){let e=S(2);W("id",Lu(e.toolbarId))}}function Ab(t,n){if(t&1){let e=Te();y(0,"editor",9),Vi("ngModelChange",function(r){ee(e);let o=S(2);return zi(o.content,r)||(o.content=r),te(r)}),A(1," > "),w()}if(t&2){let e=S(2);Fi("ngModel",e.content),W("disabled",e.disabled)("init",e.defineEditorConfig())("inline",!!e.inlineMode)}}function Rb(t,n){if(t&1&&(zs(0),zt(1,Db,4,8,"div",4)(2,Mb,1,2,"div",5)(3,Ab,2,4,"editor",6),Vs()),t&2){let e=S();E(),W("ngIf",e.disabled),E(),W("ngIf",!e.disabled&&e.inlineMode),E(),W("ngIf",!e.disabled&&!e.toggleable)}}function Ob(t,n){if(t&1&&(ge(0,"div",7,1),fe(2,"ngrxPush"),fe(3,"safeUrl")),t&2){let e=S(3);W("innerHTML",cn(3,3,be(2,1,e.translatedContent)||"","html"),ci)}}function Lb(t,n){if(t&1&&A(0),t&2){let e=S(3);Be(e.placeholder||"")}}function Nb(t,n){if(t&1){let e=Te();y(0,"div",12),J("click",function(){ee(e);let r=S(2);return te(r.enableEditor())}),zt(1,Ob,4,6,"div",13)(2,Lb,1,1,"ng-template",null,2,pi),w()}if(t&2){let e=ei(3),i=S(2);rt(ti("",i.previewContainerClass||"j3-text-editor-preview-wrapper"," j3-text-editor-preview-wrapper--toggleable")),Ni("min-height",i.toggleablePreviewMinHeight()),Ee("j3-text-editor-preview-wrapper--placeholder",!i.hasPreviewContent),E(),W("ngIf",i.hasPreviewContent)("ngIfElse",e)}}function Fb(t,n){if(t&1){let e=Te();y(0,"editor",14),Vi("ngModelChange",function(r){ee(e);let o=S(2);return zi(o.content,r)||(o.content=r),te(r)}),J("onBlur",function(){ee(e);let r=S(2);return te(r.disableEditor())}),A(1," > "),w()}if(t&2){let e=S(2);rt(e.toolbarId),Fi("ngModel",e.content),W("init",e.defineLimitedEditorConfig())}}function zb(t,n){if(t&1&&zt(0,Nb,4,9,"div",10)(1,Fb,2,4,"editor",11),t&2){let e=S();W("ngIf",!e.active),E(),W("ngIf",e.active)}}var Ha="data-j3-upload-marker",Vb=/\/img\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\//i,ud=(()=>{class t{constructor(){this.#e=q(ze),this.#t=q(gt),this.#i=q(qt),this.#n=q(ht),this.#s=q(ct),this.translateService=q(Wr),this.#r=q(Qf,{optional:!0}),this.#a=new Map,this.#c=[],this.#o=null,this.editorInitialized=new j,this.blurEvent=new j,this.translatedContentValue=xe(""),this.toolbarId=`editorToolbar-${Vt()}`,this.disabledValue=!1,this.toggleableValue=!1,this.active=!1,this.inlineModeValue=!0,this.placeholderValue="",this.blockClipboardImagesValue=!1,this.clipboardImagePasteBlockedMessageValue="",this.contentChange=new j,this.onChange=()=>{},this.onTouched=()=>{}}static{this.activeToggleableEditor=null}#e;#t;#i;#n;#s;#r;#a;#c;#o;get content(){return this.contentValue}set content(e){this.contentValue=e,this.contentChange.emit(this.contentValue),this.contentValue?.length&&(this.translatedContentValue=this.getTranslationObserver(this.content)),this.onChange(e)}get translatedContent(){return!this.translatedContentValue&&this.content?.length&&(this.translatedContentValue=this.getTranslationObserver(this.content)),this.translatedContentValue}get disabled(){return this.disabledValue}set disabled(e){this.disabledValue=e,!Ie(this.#e)&&(this.#s.detectChanges(),this.transformNodes(this.previewBox?.nativeElement))}get toggleable(){return this.toggleableValue}set toggleable(e){this.toggleableValue=e,!Ie(this.#e)&&(this.#s.detectChanges(),this.transformNodes(this.previewBox?.nativeElement))}get previewContainerClass(){return this.prevContainerClass}set previewContainerClass(e){this.prevContainerClass=e}get inlineMode(){return this.inlineModeValue}set inlineMode(e){this.inlineModeValue=e}get height(){return this.heightValue??""}set height(e){this.heightValue=e??""}get previewMinHeight(){return this.previewMinHeightValue??""}set previewMinHeight(e){this.previewMinHeightValue=e??""}get placeholder(){return this.placeholderValue}set placeholder(e){this.placeholderValue=e}get blockClipboardImages(){return this.blockClipboardImagesValue}set blockClipboardImages(e){this.blockClipboardImagesValue=e===!0}
42get clipboardImagePasteBlockedMessage(){return this.clipboardImagePasteBlockedMessageValue}set clipboardImagePasteBlockedMessage(e){this.clipboardImagePasteBlockedMessageValue=e?.trim()?e:""}get hasPreviewContent(){return(this.contentValue??"").replace(/<[^>]*>/g," ").replace(/&nbsp;/gi," ").trim().length>0}toggleablePreviewMinHeight(){let e=this.previewMinHeightValue?.trim();if(e)return e;let i=this.heightValue?.trim();return i||null}ngAfterViewInit(){Ie(this.#e)||(this.transformNodes(this.previewBox?.nativeElement),this.translateService.onLangChange.pipe(At(this.#i)).subscribe(()=>{this.translatedContentValue=this.getTranslationObserver(this.content)}),this.tinyEditor&&this.tinyEditor.registerOnTouched(this.onTouched))}writeValue(e){this.content=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e,this.tinyEditor&&this.tinyEditor.registerOnTouched(this.onTouched)}setDisabledState(e){this.disabled=e}disableEditor(){setTimeout(()=>{this.#t.querySelector("ngb-modal-window")||(this.setActiveState(!1),t.activeToggleableEditor===this&&(t.activeToggleableEditor=null))},200)}enableEditor(){t.activeToggleableEditor&&t.activeToggleableEditor!==this&&t.activeToggleableEditor.forceDisableEditor(),this.setActiveState(!0),t.activeToggleableEditor=this,this.blurEvent.emit()}ngOnDestroy(){this.#y(),t.activeToggleableEditor===this&&(t.activeToggleableEditor=null)}onSetupEditor(e){this.#o=e;for(let i of dd)i(e,this.#l.bind(this));this.#u(e),this.#m(e),this.inlineMode&&(e.on("blur",i=>{i.preventDefault(),i.stopPropagation()}),e.on("init",()=>{this.editorInitialized.emit(),e.dispatch("focus")}))}uploadPendingClipboardImages(){let e=this.#o;return!e||this.blockClipboardImagesValue||!this.#r?Promise.resolve():e.uploadImages().then(()=>{})}onEditorInstance(e){this.inlineMode&&e.dispatch("focus")}transformNodes(e){if(!(Ie(this.#e)||!e))for(let i of um)i(e,this.#l.bind(this))}defineEditorConfig(e=!1){let i=U(T({plugins:`lists help wordcount table code preview advlist fullscreen emoticons${e?" autoresize":""}`,toolbar:e?!1:`
43                undo redo | j3Copy j3Cut j3Paste | j3AI j3Link j3Image |
44                bold italic underline strikethrough |
45                fontfamily fontsize blocks |
46                alignleft aligncenter alignright alignjustify |
47                outdent indent | numlist bullist  checklist |
48                forecolor backcolor removeformat |
49                pagebreak | charmap emoticons |
50                fullscreen preview save print | ltr rtl
51                table code |
52                `,toolbar_mode:"sliding",statusbar:!e,inline:!0,contextmenu:"j3AI | j3Link | j3Image | j3Copy j3Cut j3Paste | table",menubar:!1,table_toolbar:"tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",table_default_attributes:{border:"1"},height:e?"auto":this.heightValue?this.heightValue:"350",setup:this.onSetupEditor.bind(this),resize:!e,readonly:e,min_height:e?0:100,branding:!1,convert_urls:!1},this.#p()),{fontsize_formats:"8pt=0.666rem 10pt=0.833rem 12pt=1rem 14pt=1.166rem 18pt=1.5rem 24pt=2rem 36pt=3rem",autoresize_bottom_margin:0,font_family_formats:`
53          Andale Mono=andale mono,
54          times;
55          Arial=arial,
56          helvetica,
57          sans-serif;
58          Arial Black=arial black,
59          avant garde;
60          Book Antiqua=book antiqua,
61          palatino;
62          Comic Neue=Comic Neue,
63          cursive;
64          Courier New=courier new,
65          courier;
66          Georgia=georgia,
67          palatino;
68          Helvetica=helvetica;
69          Impact=impact,
70          chicago;
71          Symbol=symbol;
72          Tahoma=tahoma,
73          arial,
74          helvetica,
75          sans-serif;
76          Terminal=terminal,
77          monaco;
78          Times New Roman=times new roman,
79          times;
80          Trebuchet MS=trebuchet ms,
81          geneva;
82          Verdana=verdana,
83          geneva;
84          Webdings=webdings;
85          Wingdings=wingdings,
86          zapf dingbats,
87          Open Sans=Open Sans;
88          `});return this.editorFonts?.length&&(i.font_family_formats=`${i.font_family_formats}${this.editorFonts.join("")}`),this.inlineMode?U(T({},i),{fixed_toolbar_container:`#${this.toolbarId}`,init_instance_callback:this.onEditorInstance.bind(this)}):i}defineLimitedEditorConfig(e=!1){let i=this.#h(),o=i!==void 0?{height:i,min_height:i}:{min_height:350};return T(U(T({plugins:"lists help wordcount code preview advlist fullscreen",toolbar:`
89                undo redo | j3Copy j3Cut j3Paste |
90                bold italic underline strikethrough |
91                blocks |
92                alignleft aligncenter alignright alignjustify |
93                numlist bullist checklist |
94                forecolor removeformat j3Link |
95                fullscreen  preview save code |
96                `,toolbar_mode:"sliding",contextmenu:"j3Link | j3Copy j3Cut j3Paste",menubar:!1},this.#p()),{setup:this.#f.bind(this),selector:this.toolbarId,inline:!1,branding:!1,convert_urls:!1,format:"text",block_formats:"Paragraph=p; Heading 1=h1; Heading 2=h2; Heading 3=h3; Heading 4=h4; Heading 5=h5; Heading 6=h6"}),o)}#h(){let e=this.heightValue?.trim();if(!e)return;let i=/^(\d+(?:\.\d+)?)\s*px$/i.exec(e);if(i){let o=Number(i[1]);return Number.isFinite(o)&&o>0?Math.round(o):void 0}let r=Number(e);if(Number.isFinite(r)&&r>0)return Math.round(r)}getTranslationObserver(e){return e?.length?this.translatedContentValue=this.translateService.get(this.content).pipe(Pe(i=>we(i)?"":i),wu(()=>{Ie(this.#e)||setTimeout(()=>this.transformNodes(this.previewBox?.nativeElement),200)})):xe("")}#l(e){return this.#n.get(e)}#f(e){this.#o=e;for(let i of dd)i(e,this.#l.bind(this));this.#u(e),this.#m(e),e.on("init",()=>{setTimeout(()=>{this.editorInitialized.emit(),e.focus()},1e3)})}forceDisableEditor(){this.setActiveState(!1)}setActiveState(e){this.active=e,!Ie(this.#e)&&this.#s.detectChanges()}#u(e){this.blockClipboardImagesValue&&e.on("PastePreProcess",i=>{let r=i.content;i.content=i.content.replace(/<img[^>]+src=["'](?:blob:|data:image)[^"']*["'][^>]*\/?>/gi,""),this.clipboardImagePasteBlockedMessageValue&&r!==i.content&&e.notificationManager.open({text:this.clipboardImagePasteBlockedMessageValue,type:"warning",timeout:4e3})})}#p(){return this.blockClipboardImagesValue?{paste_data_images:!1}:this.#r?{paste_data_images:!0,automatic_uploads:!0,images_reuse_filename:!0,images_upload_handler:(e,i)=>this.#v(e,i)}:{}}#v(e,i){let r=this.#r;if(!r)return Promise.reject(new Error("Clipboard image uploader is not configured"));let o=e.blob(),s=e.filename()||`pasted-image-${Date.now()}.png`,a=new File([o],s,{type:o.type||"image/png"}),l=e.blobUri?.()||"",c=Vt(),p=this.#o,h=this.#_(p,l,c);return yu(r.uploadClipboardImage(a,{progress:i}).pipe(Pe(f=>{let d=this.#w(f,h);return this.#a.set(c,{upload:d,marker:c,blobUri:l||void 0,fileId:this.#T(d.src),layout:h}),d.src}))).then(f=>(this.#b(),f))}#m(e){this.blockClipboardImagesValue||!this.#r||(e.on("NodeChange SetContent UploadComplete",()=>{this.#C(e)}),e.on("PastePostProcess",()=>{window.setTimeout(()=>{e.uploadImages().then(()=>{this.#C(e)})},0)}))}#_(e,i,r){if(!e)return;let o=this.#S(e),s=i?o.filter(l=>this.#I(l).includes(i)):[];if(!s.length){let l=o.filter(c=>this.#x(c)&&!c.getAttribute(Ha));s=l.length===1?l:[]}let a;for(let l of s)l.setAttribute(Ha,r),a=this.#g(l)??a;return a}#g(e){let i=e.getAttribute("width"),r=e.getAttribute("height"),o=e.getAttribute("style"),s=this.#d(i)??this.#d(e.style.width),a=this.#d(r)??this.#d(e.style.height);if(!(!i&&!r&&!o&&!s&&!a))return{widthAttr:i,heightAttr:r,styleAttr:o,displayWidth:s,displayHeight:a}}#b(){for(let e of[0,50,200,500,1e3]){let i=window.setTimeout(()=>{this.#C(this.#o)},e);this.#c.push(i)}}#y(){for(let e of this.#c)window.clearTimeout(e);this.#c.length=0}#C(e){if(!e||!this.#a.size)return;let i=this.#S(e);for(let[r,o]of[...this.#a.entries()]){let s=this.#P(i,o);!s||this.#x(s)||(this.#k(e,s,o.upload,o.layout),s.removeAttribute(Ha),this.#a.delete(r))}}#P(e,i){let r=e.find(o=>o.getAttribute(Ha)===i.marker);return r||e.find(o=>{if(this.#D(o))return!1;let s=this.#I(o);return s.includes(i.upload.src)||i.blobUri&&s.includes(i.blobUri)?!0:i.fileId?s.some(a=>this.#T(a)===i.fileId):!1})}#k(e,i,r,o){let s=o??this.#g(i),a=this.#w(r,s),l=T({},a.imageModel);if(!l.file||typeof l.file!="object"){i.setAttribute("src",a.src),l.resourceId&&i.setAttribute(si,encodeURIComponent(JSON.stringify(T(T({imageSize:l.imageSize,resourceId:l.resourceId},l.width?{width:l.width}:{}),l.height?{height:l.height}:{})))),this.#E(i,s);return}e.dom.setAttribs(i,ms(l)),this.#E(i,s)}#w(e,i){let r=i?.displayWidth??this.#d(i?.widthAttr),o=i?.displayHeight??this.#d(i?.heightAttr),s=Math.max(r??0,o??0),a=e.imageModel.file,l=T({},e.imageModel);return r?l.width=`${r}
96`:delete l.width,o?l.height=`${o}`:delete l.height,!s||!a||typeof a!="object"?{src:e.src,imageModel:l}:(l.imageSize=om(s),{src:ms(l).src||e.src,imageModel:l})}#d(e){if(!e?.trim())return;let i=/^(\d+(?:\.\d+)?)\s*px$/i.exec(e.trim()),r=i?i[1]:e.trim(),o=Number.parseFloat(r);return Number.isFinite(o)&&o>0?Math.round(o):void 0}#E(e,i){i&&(i.widthAttr?e.setAttribute("width",i.widthAttr):i.displayWidth&&e.setAttribute("width",`${i.displayWidth}`),i.heightAttr?e.setAttribute("height",i.heightAttr):i.displayHeight&&e.setAttribute("height",`${i.displayHeight}`),i.styleAttr?e.setAttribute("style",i.styleAttr):e.getAttribute("style")?.includes("max-height")&&e.removeAttribute("style"))}#S(e){return Array.from(e.getBody()?.querySelectorAll("img")??[])}#I(e){return[e.getAttribute("src")||"",e.getAttribute("data-mce-src")||"",e.src||""].filter(i=>i.length>0)}#x(e){let i=e.getAttribute("src")||e.src||"";return i.startsWith("blob:")||i.startsWith("data:")}#D(e){let i=e.getAttribute(si);if(!i)return!1;try{return!!JSON.parse(decodeURIComponent(i)).resourceId}catch(r){return!1}}#T(e){return Vb.exec(e)?.[1]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-text-editor"]],viewQuery:function(i,r){if(i&1&&ft(Pb,5)(kb,5),i&2){let o;Ge(o=We())&&(r.tinyEditor=o.first),Ge(o=We())&&(r.previewBox=o.first)}},inputs:{editorFonts:"editorFonts",content:"content",disabled:"disabled",toggleable:"toggleable",previewContainerClass:"previewContainerClass",inlineMode:"inlineMode",height:"height",previewMinHeight:"previewMinHeight",placeholder:"placeholder",blockClipboardImages:"blockClipboardImages",clipboardImagePasteBlockedMessage:"clipboardImagePasteBlockedMessage"},outputs:{editorInitialized:"editorInitialized",blurEvent:"blurEvent",contentChange:"contentChange"},features:[bt([{provide:$r,useExisting:ar(()=>t),multi:!0}])],decls:3,vars:2,consts:[["toggleableEditor",""],["previewBox",""],["emptyPreview",""],[4,"ngIf","ngIfElse"],[3,"innerHTML","class",4,"ngIf"],["class","j3-text-editor-toolbar",3,"id",4,"ngIf"],[3,"ngModel","disabled","init","inline","ngModelChange",4,"ngIf"],[3,"innerHTML"],[1,"j3-text-editor-toolbar",3,"id"],[3,"ngModelChange","ngModel","disabled","init","inline"],[3,"class","j3-text-editor-preview-wrapper--placeholder","min-height","click",4,"ngIf"],[3,"ngModel","class","init","ngModelChange","onBlur",4,"ngIf"],[3,"click"],[3,"innerHTML",4,"ngIf","ngIfElse"],[3,"ngModelChange","onBlur","ngModel","init"]],template:function(i,r){if(i&1&&zt(0,Rb,4,3,"ng-container",3)(1,zb,2,2,"ng-template",null,0,pi),i&2){let o=ei(2);W("ngIf",!r.toggleable)("ngIfElse",o)}},dependencies:[Ce,js,ii,mi,Mn,cs,Fa,us,On],styles:[".j3-text-editor-toolbar{display:flex;flex-direction:column-reverse}  .j3-text-editor-toolbar .tox{display:flex!important;visibility:visible!important}  .j3-text-editor-toolbar .tox .tox-menu{min-width:160px}  j3-text-editor{position:relative}  .j3-text-editor-preview-wrapper--toggleable{background-color:var(--j3-input-background, #fff);border:1px solid var(--j3-input-border-color, #ced4da);border-radius:var(--j3-input-border-radius, 5px);color:var(--j3-input-color, #212529);cursor:text;margin-bottom:var(--j3-input-margin-y, .3rem);margin-top:var(--j3-input-margin-y, .3rem);min-height:120px;padding:var(--j3-input-padding, .5rem 1rem);transition:all .2s ease-in-out;white-space:normal}  .j3-text-editor-preview-wrapper--toggleable:hover{border-color:var(--j3-input-border-hover-color, #6c757d)}  j3-text-editor .j3-text-editor-preview-wrapper ul,   j3-text-editor .j3-text-editor-preview-wrapper ol{margin-block:0;margin-bottom:.75em;padding-left:1.5em;white-space:normal}  j3-text-editor .j3-text-editor-preview-wrapper li{margin:0;padding:.125em 0;white-space:normal}  j3-text-editor .j3-text-editor-preview-wrapper li:last-child{padding-bottom:0}  .j3-text-editor-preview-wrapper--placeholder{color:var(--j3-input-placeholder-color, #adb5bd)}"]})}}return t})();function jb(t,n){t&1&&(He(0,"div",0),cr(1,"div",1),Ye())}var $b=(()=>{class t{constructor(){this.loading=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-loading-bar"]],inputs:{loading:"loading"},decls:1,vars:1,consts:[["role","status","aria-live","polite",1,"progress","j3-loading-bar"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","w-100"]],template:function(i,r){i&1&&oe(0,jb,2,0,"div",0),i&2&&se(r.loading?0:-1)},styles:[".j3-loading-bar[_ngcontent-%COMP%]{border-radius:0;height:4px}"],changeDetection:0})}}return t})();var pd=(()=>{class t{constructor(e,i,r){this.cookieService=e,this.activeModal=i,this.dialogData=r,this.securityTrustType=Ei}get modalSettings(){return this.dialogData.popupSettings}onPopupContentPointerEvent(e){if(e.type==="auxclick"&&e.button!==1)return;let i=e.target?.closest?.("a[href]");i instanceof HTMLAnchorElement&&this.isPopupContentNavigationalLink(i)&&this.onClose()}isPopupContentNavigationalLink(e){let i=e.getAttribute("href")?.trim();return!(i===void 0||i===""||/^javascript:/i.test(i)||i==="#"||i.startsWith("#"))}onClose(){we(this.modalSettings?.popupSettings)||(this.modalSettings?.popupSettings.publicationMode===1&&this.cookieService.get("J3CookiesAccepted")!==Ue.CookieState.REJECTED&&this.cookieService.set("popup_box_closed","true"),this.modalSettings?.popupSettings.publicationMode===2&&this.cookieService.check("popup_box_closed")&&this.cookieService.delete("popup_box_closed")),this.activeModal.close(this.modalSettings)}static{this.\u0275fac=function(i){return new(i||t)($(wi),$(ni),$($i))}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-sites-popup-box"]],decls:11,vars:5,consts:[[1,"p-4"],[1,"d-flex","justify-content-between"],["id","modal-title"],[1,"material-icons",3,"click"],[1,"content",3,"click","auxclick","innerHTML"],[1,"footer"],[1,"btn","btn-primary",3,"click"]],template:function(i,r){i&1&&(He(0,"div",0)(1,"div",1)(2,"h2",2),A(3),Ye(),He(4,"i",3),Pi("click",function(){return r.onClose()}),A(5,"close"),Ye()(),He(6,"div",4),fe(7,"safe"),Pi("click",function(s){return r.onPopupContentPointerEvent(s)})("auxclick",function(s){return r.onPopupContentPointerEvent(s)}),Ye(),He(8,"div",5)(9,"button",6),Pi("click",function(){return r.onClose()}),A(10,"OK"),Ye()()()),i&2&&(E(3),Be(r.modalSettings==null||r.modalSettings.popupSettings==null?null:r.modalSettings.popupSettings.title),E(3),ln("innerHTML",cn(7,2,r.modalSettings==null||r.modalSettings.popupSettings==null?null:r.modalSettings.popupSettings.text,r.securityTrustType.HTML),ci))},dependencies:[Ce,Hn,as],styles:[".footer[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#004087;border-color:#004087;color:#fff}.footer[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]:hover, .footer[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]:active, .footer[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]:focus{background-color:#003066;border-color:#003066;color:#fff}"]})}}return t})();var Ub=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-toggle-info-component"]],decls:3,vars:3,consts:[[1,"toggle-content-enabled"]],template:function(i,r){i&1&&(He(0,"div",0),A(1),fe(2,"translate"),Ye()),i&2&&(E(),lt(" ",be(2,1,"CORE.toggleContentEnabled")," "))},dependencies:[dt],encapsulation:2,changeDetection:0})}}return t})();var Gb=["videoElement"],Wb=["videoSource"];function qb(t,n){t&1&&(y(0,"div",4)(1,"div",6),ge(2,"j3-loading-spinner",7),y(3,"span"),A(4,"Preparing video"),w()()())}function Yb(t,n){t&1&&ge(0,"i",5)}var hd=(()=>{class t{constructor(){this.showControls=!0,this.asPoster=!1,this.mediaRefreshTick=5e3,this.processingTick=2e3,this.isProcessing=!1,this.initialClick=!0}get videoProcessing(){return this.isProcessing}set videoElement(e){if(!e)return;let{nativeElement:i}=e;this.nativeVideo=i,i.addEventListener("loadedmetadata",()=>{let{duration:r}=i;i.currentTime=r/2}),i.addEventListener("click",()=>
96{if(i.paused){i.currentTime=this.initialClick?0:i.currentTime,i.play(),this.initialClick=!1;return}i.pause()})}set videoSource(e){if(!e)return;let{nativeElement:i}=e;this.nativeSource=i,this.nativeSource.addEventListener("error",this.#e.bind(this))}ngOnDestroy(){clearTimeout(this.processingTimeoutHandler),clearTimeout(this.refreshingTimeoutHandler),this.nativeSource.removeEventListener("error",this.#e.bind(this))}#e(){this.isProcessing=!0,clearTimeout(this.processingTimeoutHandler),clearTimeout(this.refreshingTimeoutHandler),this.refreshingTimeoutHandler=setTimeout(()=>{this.nativeVideo&&this.nativeVideo.load(),this.processingTimeoutHandler=setTimeout(()=>{this.isProcessing=!1},this.processingTick)},this.mediaRefreshTick)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ie({type:t,selectors:[["j3-video"]],viewQuery:function(i,r){if(i&1&&ft(Gb,5)(Wb,5),i&2){let o;Ge(o=We())&&(r.videoElement=o.first),Ge(o=We())&&(r.videoSource=o.first)}},inputs:{src:"src",videoStyle:"videoStyle",showControls:"showControls",asPoster:"asPoster"},decls:7,vars:6,consts:[["videoElement",""],["videoSource",""],["preload","metadata",3,"controls"],["type","video/mp4",3,"src"],[1,"progress-wrapper"],[1,"btn-play","fas","fa-play-circle"],[1,"progress-content"],["size","md","label","Preparing video"]],template:function(i,r){i&1&&(y(0,"video",2,0),ge(2,"source",3,1),A(4,` Sorry, your browser doesn't support embedded videos.
97`),w(),oe(5,qb,5,0,"div",4),oe(6,Yb,1,0,"i",5)),i&2&&(Ou(r.videoStyle),W("controls",r.showControls),E(2),W("src",r.src),E(3),se(!r.asPoster&&r.videoProcessing?5:-1),E(),se(r.asPoster?6:-1))},dependencies:[Ce,ps],styles:["[_nghost-%COMP%]{z-index:1;width:100%;display:flex;justify-content:center;align-items:center;max-width:100%}[_nghost-%COMP%]   video[_ngcontent-%COMP%]{object-fit:contain;max-width:100%;max-height:100%;width:auto;height:auto}[_nghost-%COMP%]   .progress-wrapper[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;display:flex;align-content:flex-end;justify-content:flex-start;flex:auto;background:#fff}[_nghost-%COMP%]   .progress-wrapper[_ngcontent-%COMP%]   .progress-content[_ngcontent-%COMP%]{display:flex;justify-content:center;width:auto;text-align:center;align-items:center;margin:auto}[_nghost-%COMP%]   .progress-wrapper[_ngcontent-%COMP%]   .progress-content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding:20px;font-weight:bolder;font-size:20px}[_nghost-%COMP%]   .btn-play[_ngcontent-%COMP%]{color:red;position:absolute;font-size:48px;top:50%;transform:translateY(-50%)}"]})}}return t})();var Xb=t=>({"position-static":t});function Jb(t,n){t&1&&(y(0,"span"),A(1,"*"),w())}function Zb(t,n){if(t&1&&(y(0,"label",2),A(1),oe(2,Jb,2,0,"span"),w()),t&2){let e=S();Oe("for",e.id),E(),lt(" ",e.to.label," "),E(),se(e.to.required&&e.to.hideRequiredMarker!==!0?2:-1)}}function Qb(t,n){if(t&1){let e=Te();y(0,"input",6,0),J("click",function(){ee(e);let r=ei(1);return te(r.toggle())}),w(),y(2,"button",7),fe(3,"translate"),J("click",function(){ee(e);let r=ei(1);return te(r.toggle())}),w(),y(4,"button",8),fe(5,"translate"),J("click",function(){ee(e);let r=S();return te(r.reset())}),w()}if(t&2){let e=S();Ee("is-invalid",e.showError),W("formControl",e.formControl)("placeholder",e.to.placeholder)("disabled",e.to.disabled),E(2),W("disabled",e.to.disabled),Oe("aria-label",be(3,9,"Open calendar")),E(2),W("disabled",e.to.disabled),Oe("aria-label",be(5,11,"Clear"))}}function ey(t,n){if(t&1){let e=Te();y(0,"button",8),fe(1,"translate"),J("click",function(){ee(e);let r=S(2);return te(r.reset())}),w()}if(t&2){let e=S(2);W("disabled",e.to.disabled),Oe("aria-label",be(1,2,"Clear"))}}function ty(t,n){if(t&1){let e=Te();y(0,"input",9,0),J("click",function(){ee(e);let r=ei(1);return te(r.toggle())}),w(),y(2,"div",10)(3,"button",7),fe(4,"translate"),J("click",function(){ee(e);let r=ei(1);return te(r.toggle())}),w()(),y(5,"div",10),zt(6,ey,2,4,"button",11),w()}if(t&2){let e=S();Ee("is-invalid",e.showError),W("formControl",e.formControl)("placeholder",e.to.placeholder)("minDate",e.to.minDate),E(3),W("disabled",e.to.disabled),Oe("aria-label",be(4,8,"Open calendar")),E(3),W("ngIf",e.to.hideClearButton!==!0)}}
97function iy(t,n){if(t&1&&(y(0,"div",12),ge(1,"formly-validation-message",13),w()),t&2){let e=S(2);Ni("display","block"),E(),W("field",e.field)}}function ny(t,n){if(t&1&&oe(0,iy,2,3,"div",4),t&2){let e=S();se(e.showError?0:-1)}}function ry(t,n){if(t&1&&(y(0,"div",12),ge(1,"formly-validation-message",13),w()),t&2){let e=S();Ni("display","block"),E(),W("field",e.field)}}function oy(t,n){if(t&1&&(y(0,"div",5),A(1),w()),t&2){let e=S();E(),Be(e.to.description)}}var sy=(()=>{class t extends kl{constructor(){super(...arguments),this.DELIMITER="-"}fromModel(e){if(!e)return null;let i=this.parseDateSafe(e);return i.isValid?{day:i.day,month:i.month,year:i.year}:null}toModel(e){return e?fi.fromObject({day:e.day,year:e.year,month:e.month}):null}parseDateSafe(e){return jr(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac})}}return t})(),fd=(()=>{class t extends vn{reset(){this.formControl.setValue(null),this.formControl.markAsDirty()}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275cmp=ie({type:t,selectors:[["ng-component"]],features:[bt([{provide:kl,useClass:sy}]),tt],decls:8,vars:9,consts:[["d","ngbDatepicker"],[1,"mb-3"],[1,"form-label"],[1,"input-group",3,"ngClass"],[1,"invalid-feedback",3,"display"],[1,"form-text"],["ngbDatepicker","","ng-model-options","{timezone: 'utc'}",1,"form-control",3,"click","formControl","placeholder","disabled"],["type","button",1,"btn","btn-outline-secondary","calendar","m-0",3,"click","disabled"],["type","button",1,"btn","btn-outline-secondary","clear","m-0",3,"click","disabled"],["ngbDatepicker","","ng-model-options","{timezone: 'utc'}","container","body",1,"form-control",3,"click","formControl","placeholder","minDate"],[1,"input-group-append"],["class","btn btn-outline-secondary clear m-0","type","button",3,"disabled","click",4,"ngIf"],[1,"invalid-feedback"],[3,"field"]],template:function(i,r){i&1&&(y(0,"div",1),oe(1,Zb,3,3,"label",2),y(2,"div",3),oe(3,Qb,6,13)(4,ty,7,10),w(),oe(5,ny,1,1)(6,ry,2,3,"div",4),oe(7,oy,2,1,"div",5),w()),i&2&&(Ee("has-error",r.showError),E(),se(r.to.label&&r.to.hideLabel!==!0?1:-1),E(),W("ngClass",pr(7,Xb,r.key==="validFrom"||r.key==="validTo")),E(),se(r.key==="validFrom"||r.key==="validTo"?3:4),E(2),se(r.field.templateOptions.required?5:6),E(2),se(r.to.description?7:-1))},dependencies:[Ce,hi,js,jt,Hr,mi,qs,hp,pp,Nt,Ca,Ze,dt],styles:[`.btn.clear,.btn.calendar{background-position:50%;background-repeat:no-repeat;background-size:23px;height:100%;margin:0;width:34px}.btn.calendar{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAcCAYAAAAEN20fAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAEUSURBVEiJ7ZQxToVAEIY/YCHGxN6XGOIpnpaEsBSeQC9ArZbm9TZ6ADyBNzAhQGGl8Riv4BLAWAgmkpBYkH1b8FWT2WK/zJ8ZJ4qiI6XUI3ANnGKWBnht2/ZBDRK3hgVGNsCd7/ui+JkEIrKtqurLpEWaphd933+IyI3LEIdpCYCiKD6HcuOa/nwOa0ScJEnk0BJg0UTUWJRl6RxCYEzEmomsIlPU3IPW+grIAbquy+q6fluy/28RIBeRMwDXdXMgXLj/B2uimRXpui4D9sBeRLKl+1N+L+t6RwbWrZliTTTr1oxYtzVWiTQAcRxvTX+eJMnlUDaO1vpZRO5NS0x48sIwfPc87xg4B04MCzQi8hIEwe4bl1DnFMCN2zsAAAAASUVORK5CYII=)!important;border-bottom-left-radius:0;border-top-left-radius:0}.btn.clear{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgOTYgOTYwIDk2MCIgd2lkdGg9IjQ4Ij48cGF0aCBkPSJtMjQ5IDg0OS00Mi00MiAyMzEtMjMxLTIzMS0yMzEgNDItNDIgMjMxIDIzMSAyMzEtMjMxIDQyIDQyLTIzMSAyMzEgMjMxIDIzMS00MiA0Mi0yMzEtMjMxLTIzMSAyMzFaIi8+PC9zdmc+)!important;margin-left:5px}ngb-datepicker{background:#fff;z-index:1000}
98`],encapsulation:2})}}return t})();function ay(t,n){if(t&1&&(y(0,"div",1),ge(1,"formly-field",2),w()),t&2){let e=n.$implicit;E(),W("field",e)}}var md=(()=>{class t extends vn{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275cmp=ie({type:t,selectors:[["ng-component"]],features:[tt],decls:3,vars:0,consts:[[1,"datetime-picker-field","d-flex","flex-wrap","align-items-start"],[1,"datetime-picker-field__item"],[3,"field"]],template:function(i,r){i&1&&(y(0,"div",0),st(1,ay,2,1,"div",1,Qt),w()),i&2&&(E(),at(r.field.fieldGroup))},dependencies:[Nt,ya],styles:[".datetime-picker-field[_ngcontent-%COMP%]{column-gap:var(--bs-gutter-x, .5rem);row-gap:var(--bs-gutter-y, .5rem)}.datetime-picker-field__item[_ngcontent-%COMP%]{flex:1 1 0;min-width:0}"]})}}return t})();
98function ly(t,n){t&1&&(y(0,"span"),A(1,"*"),w())}function cy(t,n){if(t&1&&(y(0,"label"),A(1),oe(2,ly,2,0,"span"),w()),t&2){let e=S();Oe("for",e.id),E(),lt(" ",e.to.label," "),E(),se(e.to.required&&e.to.hideRequiredMarker!==!0?2:-1)}}function dy(t,n){if(t&1&&(y(0,"div",4),ge(1,"formly-validation-message",5),w()),t&2){let e=S();Ni("display","block"),E(),W("field",e.field)}}function uy(t,n){if(t&1&&(y(0,"div",3),A(1),w()),t&2){let e=S();E(),Be(e.to.description)}}var gd=(()=>{class t extends vn{static getTimePickerConfig(){return Object.assign(new Dl,{hourStep:1,minuteStep:10,meridian:!1,spinners:!1,readonlyInput:!1})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ft(t)))(r||t)}})()}static{this.\u0275cmp=ie({type:t,selectors:[["ng-component"]],features:[bt([{provide:Dl,useFactory:t.getTimePickerConfig}]),tt],decls:5,vars:6,consts:[[1,"form-group"],[3,"formControl"],[1,"invalid-feedback",3,"display"],[1,"form-text","text-muted"],[1,"invalid-feedback"],[3,"field"]],template:function(i,r){i&1&&(y(0,"div",0),oe(1,cy,3,3,"label"),ge(2,"ngb-timepicker",1),oe(3,dy,2,3,"div",2),oe(4,uy,2,1,"div",3),w()),i&2&&(Ee("has-error",r.showError),E(),se(r.to.label&&r.to.hideLabel!==!0?1:-1),E(),W("formControl",r.formControl),E(),se(r.showError?3:-1),E(),se(r.to.description?4:-1))},dependencies:[Ce,jt,mi,qs,mp,fp,Nt,Ca],encapsulation:2})}}return t})();var yO=[{name:"datepicker",component:fd},{name:"timepicker",component:gd},{name:"datetime-picker",component:md,defaultOptions:{wrappers:[]}}];var pm=[fd,gd,md];var jO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Mt({type:t})}static{this.\u0275inj=Dt({providers:[ro],imports:[Ce,ii,jt,Nt.forChild(),Ze.forChild(),cs,xo,Wi,qi,Hn,pm,Kc,ed,Jc,hs,td,id,ds,fs,nd,rd,ud,gs,pd,hd,cs,xo]})}}return t})();var o7=(()=>{class t{intercept(e,i){return i.handle(e).pipe(bo(r=>bu(()=>r)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac})}}return t})();var Un=new qe("J3_CORE_MODULE_PROVIDER_TOKEN");var d7=new qe("SSR_TENANT_INFO"),hm=new qe("SSR_DOMAIN");var Ua=(()=>{class t{#e="TENANT_DOMAIN";#t=new nt(!1);#i=q(hm,{optional:!0});#n;constructor(e,i,r,o){this.moduleConfig=e,this.platformId=i,this.transferState=r,this.cookieService=o}get tenant(){return this.#n}set tenant(e){Fr(this.#n,e)||(Ie(this.platformId)&&this.transferState.set(this.#e,Dp(e)),this.#n=T({},e),this.#t.next(!0))}get tenantId(){return this.#n?.id}get loaded(){return this.#t}get domain(){let i=this.#i??this.cookieService.get("x-tenant-domain"),r=typeof window<"u"?window.location?.hostname:void 0,o=Ie(this.platformId)?this.moduleConfig?.LOCAL_DOMAIN?.trim():r,s=Tp(i?.length?i:o);return s=s==="localhost"?this.moduleConfig?.LOCAL_DOMAIN?.trim():s?.trim(),s??""}loadFromState(){return this.transferState.get(this.#e,void 0)}restoreTenantFromTransferState(){if(!Ke(this.platformId)||!this.transferState?.hasKey(this.#e))return;let e=this.transferState.get(this.#e,void 0);return this.transferState.remove(this.#e),e}static{this.\u0275fac=function(i){return new(i||t)(ye(Un),ye(ze),ye(Os,8),ye(wi,8))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var P7=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:Un,useValue:e},{provide:qr,useExisting:Ua}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Mt({type:t})}static{this.\u0275inj=Dt({})}}return t})();var fm=()=>{};var gm=function(t){let n=[],e=0;for(let i=0;i<t.length;i++){let r=t.charCodeAt(i);r<128?n[e++]=r:r<2048?(n[e++]=r>>6|192,n[e++]=r&63|128):(r&64512)===55296&&i+1<t.length&&(t.charCodeAt(i+1)&64512)===56320?(r=65536+((r&1023)<<10)+(t.charCodeAt(++i)&1023),n[e++]=r>>18|240,n[e++]=r>>12&63|128,n[e++]=r>>6&63|128,n[e++]=r&63|128):(n[e++]=r>>12|224,n[e++]=r>>6&63|128,n[e++]=r&63|128)}return n},hy=function(t){let n=[],e=0,i=0;for(;e<t.length;){let r=t[e++];if(r<128)n[i++]=String.fromCharCode(r);else if(r>191&&r<224){let o=t[e++];n[i++]=String.fromCharCode((r&31)<<6|o&63)}else if(r>239&&r<365){let o=t[e++],s=t[e++],a=t[e++],l=((r&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;n[i++]=String.fromCharCode(55296+(l>>10)),n[i++]=String.fromCharCode(56320+(l&1023))}else{let o=t[e++],s=t[e++];n[i++]=String.fromCharCode((r&15)<<12|(o&63)<<6|s&63)}}return n.join("")},vm={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,n){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();let e=n?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let r=0;r<t.length;r+=3){let o=t[r],s=r+1<t.length,a=s?t[r+1]:0,l=r+2<t.length,c=l?t[r+2]:0,p=o>>2,h=(o&3)<<4|a>>4,f=(a&15)<<2|c>>6,d=c&63;l||(d=64,s||(f=64)),i.push(e[p],e[h],e[f],e[d])}return i.join("")},encodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(t):this.encodeByteArray(gm(t),n)},decodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?atob(t):hy(this.decodeStringToByteArray(t,n))},decodeStringToByteArray(t,n){this.init_();let e=n?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let r=0;r<t.length;){let o=e[t.charAt(r++)],a=r<t.length?e[t.charAt(r)]:0;++r;let c=r<t.length?e[t.charAt(r)]:64;++r;let h=r<t.length?e[t.charAt(r)]:64;if(++r,o==null||a==null||c==null||h==null)throw new _d;let f=o<<2|a>>4;if(i.push(f),c!==64){let d=a<<4&240|c>>2;if(i.push(d),h!==64){let u=c<<6&192|h;i.push(u)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}}
98,_d=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}},fy=function(t){let n=gm(t);return vm.encodeByteArray(n,!0)},yd=function(t){return fy(t).replace(/\./g,"")},Wa=function(t){try{return vm.decodeString(t,!0)}catch(n){console.error("base64Decode failed: ",n)}return null};function my(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}var gy=()=>my().__FIREBASE_DEFAULTS__,vy=()=>{if(typeof process>"u"||typeof process.env>"u")return;let t=process.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},_y=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let n=t&&Wa(t[1]);return n&&JSON.parse(n)},Cd=()=>{try{return fm()||gy()||vy()||_y()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},_m=t=>Cd()?.emulatorHosts?.[t];var wd=()=>Cd()?.config,Ed=t=>Cd()?.[`_${t}`];var Ga=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((n,e)=>{this.resolve=n,this.reject=e})}wrapCallback(n){return(e,i)=>{e?this.reject(e):this.resolve(i),typeof n=="function"&&(this.promise.catch(()=>{}),n.length===1?n(e):n(e,i))}}};function $t(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function bm(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test($t())}function ym(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function Cm(){let t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function wm(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Em(){let t=$t();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function Sm(){try{return typeof indexedDB=="object"}catch(t){return!1}}function Im(){return new Promise((t,n)=>{try{let e=!0,i="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(i);r.onsuccess=()=>{r.result.close(),e||self.indexedDB.deleteDatabase(i),t(!0)},r.onupgradeneeded=()=>{e=!1},r.onerror=()=>{n(r.error?.message||"")}}catch(e){n(e)}})}var by="FirebaseError",Oi=class t extends Error{constructor(n,e,i){super(e),this.code=n,this.customData=i,this.name=by,Object.setPrototypeOf(this,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,bn.prototype.create)}},bn=class{constructor(n,e,i){this.service=n,this.serviceName=e,this.errors=i}create(n,...e){let i=e[0]||{},r=`${this.service}/${n}`,o=this.errors[n],s=o?yy(o,i):"Error",a=`${this.serviceName}: ${s} (${r}).`;return new Oi(r,a,i)}};function yy(t,n){return t.replace(Cy,(e,i)=>{let r=n[i];return r!=null?String(r):`<${i}?>`})}var Cy=/\{\$([^}]+)}/g;function xm(t){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function Gn(t,n){if(t===n)return!0;let e=Object.keys(t),i=Object.keys(n);for(let r of e){if(!i.includes(r))return!1;let o=t[r],s=n[r];if(mm(o)&&mm(s)){if(!Gn(o,s))return!1}else if(o!==s)return!1}for(let r of i)if(!e.includes(r))return!1;return!0}function mm(t){return t!==null&&typeof t=="object"}function vs(t){let n=[];for(let[e,i]of Object.entries(t))Array.isArray(i)?i.forEach(r=>{n.push(encodeURIComponent(e)+"="+encodeURIComponent(r))}):n.push(encodeURIComponent(e)+"="+encodeURIComponent(i));return n.length?"&"+n.join("&"):""}function ao(t){let n={};return t.replace(/^\?/,"").split("&").forEach(i=>{if(i){let[r,o]=i.split("=");n[decodeURIComponent(r)]=decodeURIComponent(o)}}),n}function lo(t){let n=t.indexOf("?");if(!n)return"";let e=t.indexOf("#",n);return t.substring(n,e>0?e:void 0)}function Tm(t,n){let e=new bd(t,n);return e.subscribe.bind(e)}var bd=class{constructor(n,e){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(()=>{n(this)}).catch(i=>{this.error(i)})}next(n){this.forEachObserver(e=>{e.next(n)})}error(n){this.forEachObserver(e=>{e.error(n)}),this.close(n)}complete(){this.forEachObserver(n=>{n.complete()}),this.close()}subscribe(n,e,i){let r;if(n===void 0&&e===void 0&&i===void 0)throw new Error("Missing Observer.");wy(n,["next","error","complete"])?r=n:r={next:n,error:e,complete:i},r.next===void 0&&(r.next=vd),r.error===void 0&&(r.error=vd),r.complete===void 0&&(r.complete=vd);let o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(s){}}),this.observers.push(r),o}unsubscribeOne(n){this.observers===void 0||this.observers[n]===void 0||(delete this.observers[n],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(n){if(!this.finalized)for(let e=0;e<this.observers.length;e++)this.sendOne(e,n)}sendOne(n,e){this.task.then(()=>
vendor: 10,418 bytes, line 98
98{if(this.observers!==void 0&&this.observers[n]!==void 0)try{e(this.observers[n])}catch(i){typeof console<"u"&&console.error&&console.error(i)}})}close(n){this.finalized||(this.finalized=!0,n!==void 0&&(this.finalError=n),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}};function wy(t,n){if(typeof t!="object"||t===null)return!1;for(let e of n)if(e in t&&typeof t[e]=="function")return!0;return!1}function vd(){}var A7=14400*1e3;function yn(t){return t&&t._delegate?t._delegate:t}function qa(t){try{return(t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t).endsWith(".cloudworkstations.dev")}catch(n){return!1}}function Pm(t){return k(this,null,function*(){return(yield fetch(t,{credentials:"include"})).ok})}var Zi=class{constructor(n,e,i){this.name=n,this.instanceFactory=e,this.type=i,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(n){return this.instantiationMode=n,this}setMultipleInstances(n){return this.multipleInstances=n,this}setServiceProps(n){return this.serviceProps=n,this}setInstanceCreatedCallback(n){return this.onInstanceCreated=n,this}};var Ir="[DEFAULT]";var Sd=class{constructor(n,e){this.name=n,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(n){let e=this.normalizeInstanceIdentifier(n);if(!this.instancesDeferred.has(e)){let i=new Ga;if(this.instancesDeferred.set(e,i),this.isInitialized(e)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:e});r&&i.resolve(r)}catch(r){}}return this.instancesDeferred.get(e).promise}getImmediate(n){let e=this.normalizeInstanceIdentifier(n?.identifier),i=n?.optional??!1;if(this.isInitialized(e)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:e})}catch(r){if(i)return null;throw r}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(n){if(n.name!==this.name)throw Error(`Mismatching Component ${n.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=n,!!this.shouldAutoInitialize()){if(Sy(n))try{this.getOrInitializeService({instanceIdentifier:Ir})}catch(e){}for(let[e,i]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let o=this.getOrInitializeService({instanceIdentifier:r});i.resolve(o)}catch(o){}}}}clearInstance(n=Ir){this.instancesDeferred.delete(n),this.instancesOptions.delete(n),this.instances.delete(n)}delete(){return k(this,null,function*(){let n=Array.from(this.instances.values());yield Promise.all([...n.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...n.filter(e=>"_delete"in e).map(e=>e._delete())])})}isComponentSet(){return this.component!=null}isInitialized(n=Ir){return this.instances.has(n)}getOptions(n=Ir){return this.instancesOptions.get(n)||{}}initialize(n={}){let{options:e={}}=n,i=this.normalizeInstanceIdentifier(n.instanceIdentifier);if(this.isInitialized(i))throw Error(`${this.name}(${i}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let r=this.getOrInitializeService({instanceIdentifier:i,options:e});for(let[o,s]of this.instancesDeferred.entries()){let a=this.normalizeInstanceIdentifier(o);i===a&&s.resolve(r)}return r}onInit(n,e){let i=this.normalizeInstanceIdentifier(e),r=this.onInitCallbacks.get(i)??new Set;r.add(n),this.onInitCallbacks.set(i,r);let o=this.instances.get(i);return o&&n(o,i),()=>{r.delete(n)}}invokeOnInitCallbacks(n,e){let i=this.onInitCallbacks.get(e);if(i)for(let r of i)try{r(n,e)}catch(o){}}getOrInitializeService({instanceIdentifier:n,options:e={}}){let i=this.instances.get(n);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:Ey(n),options:e}),this.instances.set(n,i),this.instancesOptions.set(n,e),this.invokeOnInitCallbacks(i,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,i)}catch(r){}return i||null}normalizeInstanceIdentifier(n=Ir){return this.component?this.component.multipleInstances?n:Ir:n}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function Ey(t){return t===Ir?void 0:t}function Sy(t){return t.instantiationMode==="EAGER"}var Ya=class{constructor(n){this.name=n,this.providers=new Map}addComponent(n){let e=this.getProvider(n.name);if(e.isComponentSet())throw new Error(`Component ${n.name} has already been registered with ${this.name}`);e.setComponent(n)}addOrOverwriteComponent(n){this.getProvider(n.name).isComponentSet()&&this.providers.delete(n.name),this.addComponent(n)}getProvider(n){if(this.providers.has(n))return this.providers.get(n);let e=new Sd(n,this);return this.providers.set(n,e),e}getProviders(){return Array.from(this.providers.values())}};var Iy=[],Je=(function(t){return t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",t})(Je||{}),xy={debug:Je.DEBUG,verbose:Je.VERBOSE,info:Je.INFO,warn:Je.WARN,error:Je.ERROR,silent:Je.SILENT},Ty=Je.INFO,Py={[Je.DEBUG]:"log",[Je.VERBOSE]:"log",[Je.INFO]:"info",[Je.WARN]:"warn",[Je.ERROR]:"error"},ky=(t,n,...e)=>{if(n<t.logLevel)return;let i=new Date().toISOString(),r=Py[n];if(r)console[r](`[${i}]  ${t.name}:`,...e);else throw new Error(`Attempted to log a message with an invalid logType (value: ${n})`)},co=class{constructor(n){this.name=n,this._logLevel=Ty,this._logHandler=ky,this._userLogHandler=null,Iy.push(this)}get logLevel(){return this._logLevel}set logLevel(n){if(!(n in Je))throw new TypeError(`Invalid value "${n}" assigned to \`logLevel\``);this._logLevel=n}setLogLevel(n){this._logLevel=typeof n=="string"?xy[n]:n}get logHandler(){return this._logHandler}set logHandler(n){if(typeof n!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=n}get userLogHandler(){return this._userLogHandler}set userLogHandler(n){this._userLogHandler=n}debug(...n){this._userLogHandler&&this._userLogHandler(this,Je.DEBUG,...n),this._logHandler(this,Je.DEBUG,...n)}log(...n){this._userLogHandler&&this._userLogHandler(this,Je.VERBOSE,...n),this._logHandler(this,Je.VERBOSE,...n)}info(...n){this._userLogHandler&&this._userLogHandler(this,Je.INFO,...n),this._logHandler(this,Je.INFO,...n)}warn(...n){this._userLogHandler&&this._userLogHandler(this,Je.WARN,...n),this._logHandler(this,Je.WARN,...n)}error(...n){this._userLogHandler&&this._userLogHandler(this,Je.ERROR,...n),this._logHandler(this,Je.ERROR,...n)}};var Dy=(t,n)=>n.some(e=>t instanceof e),km,Dm;function My(){return km||(km=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ay(){return Dm||(Dm=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Mm=new WeakMap,xd=new WeakMap,Am=new WeakMap,Id=new WeakMap,Pd=new WeakMap;function Ry(t){let n=new Promise((e,i)=>{let r=()=>{t.removeEventListener("success",o),t.removeEventListener("error",s)},o=()=>{e(Qi(t.result)),r()},s=()=>{i(t.error),r()};t.addEventListener("success",o),t.addEventListener("error",s)});return n.then(e=>{e instanceof IDBCursor&&Mm.set(e,t)}).catch(()=>{}),Pd.set(n,t),n}function Oy(t){if(xd.has(t))return;let n=new Promise((e,i)=>{let r=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",s),t.removeEventListener("abort",s)},o=()=>{e(),r()},s=()=>{i(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",o),t.addEventListener("error",s),t.addEventListener("abort",s)});xd.set(t,n)}var Td={get(t,n,e){if(t instanceof IDBTransaction){if(n==="done")return xd.get(t);if(n==="objectStoreNames")return t.objectStoreNames||Am.get(t);if(n==="store")return e.objectStoreNames[1]?void 0:e.objectStore(e.objectStoreNames[0])}return Qi(t[n])},set(t,n,e){return t[n]=e,!0},has(t,n){return t instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in t}};function Rm(t){Td=t(Td)}function Ly(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(n,...e){let i=t.call(Ka(this),n,...e);return Am.set(i,n.sort?n.sort():[n]),Qi(i)}:Ay().includes(t)?function(...n){return t.apply(Ka(this),n),Qi(Mm.get(this))}:function(...n){return Qi(t.apply(Ka(this),n))}}function Ny(t){return typeof t=="function"?Ly(t):(t instanceof IDBTransaction&&Oy(t),Dy(t,My())?new Proxy(t,Td):t)}function Qi(t){if(t instanceof IDBRequest)return Ry(t);if(Id.has(t))return Id.get(t);let n=Ny(t);return n!==t&&(Id.set(t,n),Pd.set(n,t)),n}var Ka=t=>Pd.get(t);function Lm(t,n,{blocked:e,upgrade:i,blocking:r,terminated:o}={}){let s=indexedDB.open(t,n),a=Qi(s);return i&&s.addEventListener("upgradeneeded",l=>{i(Qi(s.result),l.oldVersion,l.newVersion,Qi(s.transaction),l)}),e&&s.addEventListener("blocked",l=>e(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),r&&l.addEventListener("versionchange",c=>r(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}var Fy=["get","getKey","getAll","getAllKeys","count"],zy=["put","add","delete","clear"],kd=new Map;function Om(t,n){if(!(t instanceof IDBDatabase&&!(n in t)&&typeof n=="string"))return;if(kd.get(n))return kd.get(n);let e=n.replace(/FromIndex$/,""),i=n!==e,r=zy.includes(e);if(!(e in(i?IDBIndex:IDBObjectStore).prototype)||!(r||Fy.includes(e)))return;let o=function(s,...a){return k(this,null,function*(){let l=this.transaction(s,r?"readwrite":"readonly"),c=l.store;return i&&(c=c.index(a.shift())),(yield Promise.all([c[e](...a),r&&l.done]))[0]})};return kd.set(n,o),o}Rm(t=>U(T({},t),{get:(n,e,i)=>Om(n,e)||t.get(n,e,i),has:(n,e)=>!!Om(n,e)||t.has(n,e)}));var Md=class{constructor(n){this.container=n}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(Vy(e)){let i=e.getImmediate();return`${i.library}/${i.version}`}else return null}).filter(e=>e).join(" ")}};function Vy(t){return t.getComponent()?.type==="VERSION"}var Ad="@firebase/app",Nm="0.14.13";var Cn=new co("@firebase/app"),By="@firebase/app-compat",jy="@firebase/analytics-compat",$y="@firebase/analytics",Hy="@firebase/app-check-compat",Uy="@firebase/app-check",Gy="@firebase/auth",Wy="@firebase/auth-compat",qy="@firebase/database",Yy="@f
98irebase/data-connect",Ky="@firebase/database-compat",Xy="@firebase/functions",Jy="@firebase/functions-compat",Zy="@firebase/installations",Qy="@firebase/installations-compat",e5="@firebase/messaging",t5="@firebase/messaging-compat",i5="@firebase/performance",n5="@firebase/performance-compat",r5="@firebase/remote-config",o5="@firebase/remote-config-compat",s5="@firebase/storage",a5="@firebase/storage-compat",l5="@firebase/firestore",c5="@firebase/ai",d5="@firebase/firestore-compat",u5="firebase",p5="12.14.0";var Rd="[DEFAULT]",h5={[Ad]:"fire-core",[By]:"fire-core-compat",[$y]:"fire-analytics",[jy]:"fire-analytics-compat",[Uy]:"fire-app-check",[Hy]:"fire-app-check-compat",[Gy]:"fire-auth",[Wy]:"fire-auth-compat",[qy]:"fire-rtdb",[Yy]:"fire-data-connect",[Ky]:"fire-rtdb-compat",[Xy]:"fire-fn",[Jy]:"fire-fn-compat",[Zy]:"fire-iid",[Qy]:"fire-iid-compat",[e5]:"fire-fcm",[t5]:"fire-fcm-compat",[i5]:"fire-perf",[n5]:"fire-perf-compat",[r5]:"fire-rc",[o5]:"fire-rc-compat",[s5]:"fire-gcs",[a5]:"fire-gcs-compat",[l5]:"fire-fst",[d5]:"fire-fst-compat",[c5]:"fire-vertex","fire-js":"fire-js",[u5]:"fire-js-all"};var _s=new Map,f5=new Map,Od=new Map;function Fm(t,n){try{t.container.addComponent(n)}catch(e){Cn.debug(`Component ${n.name} failed to register with FirebaseApp ${t.name}`,e)}}function po(t){let n=t.name;if(Od.has(n))return Cn.debug(`There were multiple attempts to register component ${n}.`),!1;Od.set(n,t);for(let e of _s.values())Fm(e,t);for(let e of f5.values())Fm(e,t);return!0}function zd(t,n){let e=t.container.getProvider("heartbeat").getImmediate({optional:!0});return e&&e.triggerHeartbeat(),t.container.getProvider(n)}function Li(t){return t==null?!1:t.settings!==void 0}var m5={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
98d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Wn=new bn("app","Firebase",m5);var Ld=class{constructor(n,e,i){this._isDeleted=!1,this._options=T({},n),this._config=T({},e),this._name=e.name,this._automaticDataCollectionEnabled=e.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new Zi("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(n){this.checkDestroyed(),this._automaticDataCollectionEnabled=n}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(n){this._isDeleted=n}checkDestroyed(){if(this.isDeleted)throw Wn.create("app-deleted",{appName:this._name})}};var ho=p5;function g5(t,n={}){let e=t;typeof n!="object"&&(n={name:n});let i=T({name:Rd,automaticDataCollectionEnabled:!0},n),r=i.name;if(typeof r!="string"||!r)throw Wn.create("bad-app-name",{appName:String(r)});if(e||(e=wd()),!e)throw Wn.create("no-options");let o=_s.get(r);if(o){if(Gn(e,o.options)&&Gn(i,o.config))return o;throw Wn.create("duplicate-app",{appName:r})}let s=new Ya(r);for(let l of Od.values())s.addComponent(l);let a=new Ld(e,i,s);return _s.set(r,a),a}function jm(t=Rd){let n=_s.get(t);if(!n&&t===Rd&&wd())return g5();if(!n)throw Wn.create("no-app",{appName:t});return n}function Z7(){return Array.from(_s.values())}function uo(t,n,e){let i=h5[t]??t;e&&(i+=`-${e}`);let r=i.match(/\s|\//),o=n.match(/\s|\//);if(r||o){let s=[`Unable to register library "${i}" with version "${n}":`];r&&s.push(`library name "${i}" contains illegal characters (whitespace or "/")`),r&&o&&s.push("and"),o&&s.push(`version name "${n}" contains illegal characters (whitespace or "/")`),Cn.warn(s.join(" "));return}po(new Zi(`${i}-version`,()=>({library:i,version:n}),"VERSION"))}var v5="firebase-heartbeat-database",_5=1,bs="firebase-heartbeat-store",Dd=null;function $m(){return Dd||(Dd=Lm(v5,_5,{upgrade:(t,n)=>{switch(n){case 0:try{t.createObjectStore(bs)}catch(e){console.warn(e)}}}}).catch(t=>{throw Wn.create("idb-open",{originalErrorMessage:t.message})})),Dd}function b5(t){return k(this,null,function*(){try{let e=(yield $m()).transaction(bs),i=yield e.objectStore(bs).get(Hm(t));return yield e.done,i}catch(n){if(n instanceof Oi)Cn.warn(n.message);else{let e=Wn.create("idb-get",{originalErrorMessage:n?.message});Cn.warn(e.message)}}})}function zm(t,n){return k(this,null,function*(){try{let i=(yield $m()).transaction(bs,"readwrite");yield i.objectStore(bs).put(n,Hm(t)),yield i.done}catch(e){if(e instanceof Oi)Cn.warn(e.message);else{let i=Wn.create("idb-set",{originalErrorMessage:e?.message});Cn.warn(i.message)}}})}function Hm(t){return`${t.name}!${t.options.appId}`}var y5=1024,C5=30,Nd=class{constructor(n){this.container=n,this._heartbeatsCache=null;let e=this.container.getProvider("app").getImmediate();this._storage=new Fd(e),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}triggerHeartbeat(){return k(this,null,function*(){try{let e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=Vm();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=yield this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===i||this._heartbeatsCache.heartbeats.some(r=>r.date===i))return;if(this._heartbeatsCache.heartbeats.push({date:i,agent:e}),this._heartbeatsCache.heartbeats.length>C5){let r=E5(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(r,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(n){Cn.warn(n)}})}getHeartbeatsHeader(){return k(this,null,function*(){try{if(this._heartbeatsCache===null&&(yield this._heartbeatsCachePromise),this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";let n=Vm(),{heartbeatsToSend:e,unsentEntries:i}=w5(this._heartbeatsCache.heartbeats),r=yd(JSON.stringify({version:2,heartbeats:e}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,yield this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}catch(n){return Cn.warn(n),""}})}};function Vm(){return new Date().toISOString().substring(0,10)}function w5(t,n=y5){let e=[],i=t.slice();for(let r of t){let o=e.find(s=>
vendor: 4,184 bytes, line 98
98s.agent===r.agent);if(o){if(o.dates.push(r.date),Bm(e)>n){o.dates.pop();break}}else if(e.push({agent:r.agent,dates:[r.date]}),Bm(e)>n){e.pop();break}i=i.slice(1)}return{heartbeatsToSend:e,unsentEntries:i}}var Fd=class{constructor(n){this.app=n,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return k(this,null,function*(){return Sm()?Im().then(()=>!0).catch(()=>!1):!1})}read(){return k(this,null,function*(){if(yield this._canUseIndexedDBPromise){let e=yield b5(this.app);return e?.heartbeats?e:{heartbeats:[]}}else return{heartbeats:[]}})}overwrite(n){return k(this,null,function*(){if(yield this._canUseIndexedDBPromise){let i=yield this.read();return zm(this.app,{lastSentHeartbeatDate:n.lastSentHeartbeatDate??i.lastSentHeartbeatDate,heartbeats:n.heartbeats})}else return})}add(n){return k(this,null,function*(){if(yield this._canUseIndexedDBPromise){let i=yield this.read();return zm(this.app,{lastSentHeartbeatDate:n.lastSentHeartbeatDate??i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...n.heartbeats]})}else return})}};function Bm(t){return yd(JSON.stringify({version:2,heartbeats:t})).length}function E5(t){if(t.length===0)return-1;let n=0,e=t[0].date;for(let i=1;i<t.length;i++)t[i].date<e&&(e=t[i].date,n=i);return n}function S5(t){po(new Zi("platform-logger",n=>new Md(n),"PRIVATE")),po(new Zi("heartbeat",n=>new Nd(n),"PRIVATE")),uo(Ad,Nm,t),uo(Ad,Nm,"esm2020"),uo("fire-js","")}S5("");function o0(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}var s0=o0,a0=new bn("auth","Firebase",o0());var tl=new co("@firebase/auth");function I5(t,...n){tl.logLevel<=Je.WARN&&tl.warn(`Auth (${ho}): ${t}`,...n)}function Ja(t,...n){tl.logLevel<=Je.ERROR&&tl.error(`Auth (${ho}): ${t}`,...n)}function tn(t,...n){throw lu(t,...n)}function xr(t,...n){return lu(t,...n)}function l0(t,n,e){let i=U(T({},s0()),{[n]:e});return new bn("auth","Firebase",i).create(n,{appName:t.name})}function Kn(t){return l0(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function lu(t,...n){if(typeof t!="string"){let e=n[0],i=[...n.slice(1)];return i[0]&&(i[0].appName=t.name),t._errorFactory.create(e,...i)}return a0.create(t,...n)}function ve(t,n,...e){if(!t)throw lu(n,...e)}function wn(t){let n="INTERNAL ASSERTION FAILED: "+t;throw Ja(n),new Error(n)}function Xn(t,n){t||wn(n)}function $d(){return typeof self<"u"&&self.location?.href||""}function x5(){return Um()==="http:"||Um()==="https:"}function Um(){return typeof self<"u"&&self.location?.protocol||null}function T5(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(x5()||Cm()||"connection"in navigator)?navigator.onLine:!0}function P5(){if(typeof navigator>"u")return null;let t=navigator;return t.languages&&t.languages[0]||t.language||null}var Tr=class{constructor(n,e){this.shortDelay=n,this.longDelay=e,Xn(e>n,"Short delay should be less than long delay!"),this.isMobile=bm()||wm()}get(){return T5()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}};function cu(t,n){Xn(t.emulator,"Emulator should always be set here");let{url:e}=t.emulator;return n?`${e}${n.startsWith("/")?n.slice(1):n}`:e}var il=class{static initialize(n,e,i){this.fetchImpl=n,e&&(this.headersImpl=e),i&&(this.responseImpl=i)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;wn("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;wn("Could not find Headers implementation, make sure you call FetchProvi
98der.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;wn("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}};var k5={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};var D5=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],M5=new Tr(3e4,6e4);function Jn(t,n){return t.tenantId&&!n.tenantId?U(T({},n),{tenantId:t.tenantId}):n}function Sn(o,s,a,l){return k(this,arguments,function*(t,n,e,i,r={}){return c0(t,r,()=>k(null,null,function*(){let c={},p={};i&&(n==="GET"?p=i:c={body:JSON.stringify(i)});let h=vs(T({key:t.config.apiKey},p)).slice(1),f=yield t._getAdditionalHeaders();f["Content-Type"]="application/json",t.languageCode&&(f["X-Firebase-Locale"]=t.languageCode);let d=T({method:n,headers:f},c);return ym()||(d.referrerPolicy="no-referrer"),t.emulatorConfig&&qa(t.emulatorConfig.host)&&(d.credentials="include"),il.fetch()(yield d0(t,t.config.apiHost,e,h),d)}))})}function c0(t,n,e){return k(this,null,function*(){t._canInitEmulator=!1;let i=T(T({},k5),n);try{let r=new Hd(t),o=yield Promise.race([e(),r.promise]);r.clearNetworkTimeout();let s=yield o.json();if("needConfirmation"in s)throw Xa(t,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{let a=o.ok?s.errorMessage:s.error.message,[l,c]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw Xa(t,"credential-already-in-use",s);if(l==="EMAIL_EXISTS")throw Xa(t,"email-already-in-use",s);if(l==="USER_DISABLED")throw Xa(t,"user-disabled",s);let p=i[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw l0(t,p,c);tn(t,p)}}catch(r){if(r instanceof Oi)throw r;tn(t,"network-request-failed",{message:String(r)})}})}function hl(o,s,a,l){return k(this,arguments,function*(t,n,e,i,r={}){let c=yield Sn(t,n,e,i,r);return"mfaPendingCredential"in c&&tn(t,"multi-factor-auth-required",{_serverResponse:c}),c})}function d0(t,n,e,i){return k(this,null,function*(){let r=`${n}${e}?${i}`,o=t,s=o.config.emulator?cu(t.config,r):`${t.config.apiScheme}://${r}`;return D5.includes(e)&&(yield o._persistenceManagerAvailable,o._getPersistenceType()==="COOKIE")?o._getPersistence()._getFinalTarget(s).toString():s})}function A5(t){switch(t){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}var Hd=class{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(n){this.auth=n,this.timer=null,this.promise=new Promise((e,i)=>{this.timer=setTimeout(()=>i(xr(this.auth,"network-request-failed")),M5.get())})}};function Xa(t,n,e){let i={appName:t.name};e.email&&(i.email=e.email),e.phoneNumber&&(i.phoneNumber=e.phoneNumber);let r=xr(t,n,i);return r.customData._tokenResponse=e,r}function Gm(t){return t!==void 0&&t.enterprise!==void 0}var Ud=class{constructor(n){if(this.siteKey="",this.recaptchaEnforcementState=[],n.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=n.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=n.recaptchaEnforcementState}getProviderEnforcementState(n){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(let e of this.recaptchaEnforcementState)if(e.provider&&e.provider===n)return A5(e.enforcementState);return null}isProviderEnabled(n){return this.getProviderEnforcementState(n)==="ENFORCE"||this.getProviderEnforcementState(n)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PRO
98VIDER")}};function R5(t,n){return k(this,null,function*(){return Sn(t,"GET","/v2/recaptchaConfig",Jn(t,n))})}function O5(t,n){return k(this,null,function*(){return Sn(t,"POST","/v1/accounts:delete",n)})}function nl(t,n){return k(this,null,function*(){return Sn(t,"POST","/v1/accounts:lookup",n)})}function Cs(t){if(t)try{let n=new Date(Number(t));if(!isNaN(n.getTime()))return n.toUTCString()}catch(n){}}function u0(t,n=!1){return k(this,null,function*(){let e=yn(t),i=yield e.getIdToken(n),r=du(i);ve(r&&r.exp&&r.auth_time&&r.iat,e.auth,"internal-error");let o=typeof r.firebase=="object"?r.firebase:void 0,s=o?.sign_in_provider;return{claims:r,token:i,authTime:Cs(Vd(r.auth_time)),issuedAtTime:Cs(Vd(r.iat)),expirationTime:Cs(Vd(r.exp)),signInProvider:s||null,signInSecondFactor:o?.sign_in_second_factor||null}})}function Vd(t){return Number(t)*1e3}function du(t){let[n,e,i]=t.split(".");if(n===void 0||e===void 0||i===void 0)return Ja("JWT malformed, contained fewer than 3 sections"),null;try{let r=Wa(e);return r?JSON.parse(r):(Ja("Failed to decode base64 JWT payload"),null)}catch(r){return Ja("Caught error parsing JWT payload as JSON",r?.toString()),null}}function Wm(t){let n=du(t);return ve(n,"internal-error"),ve(typeof n.exp<"u","internal-error"),ve(typeof n.iat<"u","internal-error"),Number(n.exp)-Number(n.iat)}function Es(t,n,e=!1){return k(this,null,function*(){if(e)return n;try{return yield n}catch(i){throw i instanceof Oi&&L5(i)&&t.auth.currentUser===t&&(yield t.auth.signOut()),i}})}function L5({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}var Gd=class{constructor(n){this.user=n,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(n){if(n){let e=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),e}else{this.errorBackoff=3e4;let i=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,i)}}schedule(n=!1){if(!this.isRunning)return;let e=this.getInterval(n);this.timerId=setTimeout(()=>k(this,null,function*(){yield this.iteration()}),e)}iteration(){return k(this,null,function*(){try{yield this.user.getIdToken(!0)}catch(n){n?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()})}};var Ss=class{constructor(n,e){this.createdAt=n,this.lastLoginAt=e,this._initializeTime()}_initializeTime(){this.lastSignInTime=Cs(this.lastLoginAt),this.creationTime=Cs(this.createdAt)}_copy(n){this.createdAt=n.createdAt,this.lastLoginAt=n.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}};function rl(t){return k(this,null,function*(){let n=t.auth,e=yield t.getIdToken(),i=yield Es(t,nl(n,{idToken:e}));ve(i?.users.length,n,"internal-error");let r=i.users[0];t._notifyReloadListener(r);let o=r.providerUserInfo?.length?h0(r.providerUserInfo):[],s=N5(t.providerData,o),a=t.isAnonymous,l=!(t.email&&r.passwordHash)&&!s?.length,c=a?l:!1,p={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:s,metadata:new Ss(r.createdAt,r.lastLoginAt),isAnonymous:c};Object.assign(t,p)})}function p0(t){return k(this,null,function*(){let n=yn(t);yield rl(n),yield n.auth._persistUserIfCurrent(n),n.auth._notifyListenersIfCurrent(n)})}function N5(t,n){return[...t.filter(i=>!n.some(r=>r.providerId===i.providerId)),...n]}function h0(t){return t.map(i=>{var r=i,{providerId:n}=r,e=Gt(r,["providerId"]);return{providerId:n,uid:e.rawId||"",displayName:e.displayName||null,email:e.email||null,phoneNumber:e.phoneNumber||null,photoURL:e.photoUrl||null}})}function F5(t,n){return k(this,null,function*(){let e=yield c0(t,{},()=>k(null,null,function*(){let i=vs({grant_type:"refresh_token",refresh_token:n}).slice(1),{tokenApiHost:r,apiKey:o}=t.config,s=yield d0(t,r,"/v1/token",`key=${o}`),a=yield t._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";let l={method:"POST",headers:a,body:i};return t.emulatorConfig&&qa(t.emulatorConfig.host)&&(l.credentials="include"),il.fetch()(s,l)}));return{accessToken:e.access_token,expiresIn:e.expires_in,refreshToken:e.refresh_token}})}function z5(t,n){return k(this,null,function*(){return Sn(t,"POST","/v2/accounts:revokeToken",Jn(t,n))})}var ws=class t{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(n){ve(n.idToken,"internal-error"),ve(typeof n.idToken<"u","internal-error"),ve(typeof n.refreshToken<"u","internal-error");let e="expiresIn"in n&&typeof n.expiresIn<"u"?Number(n.expiresIn):Wm(n.idToken);this.updateTokensAndExpiration(n.idToken,n.refreshToken,e)}updateFromIdToken(n){ve(n.length!==0,"internal-error");let e=Wm(n);this.updateTokensAndExpiration(n,null,e)}getToken(n,e=!1){return k(this,null,function*(){return!e&&this.accessToken&&!this.isExpired?this.accessToken:(ve(this.refreshToken,n,"user-token-expired"),this.refreshToken?(yield this.refresh(n,this.refreshToken),this.accessToken):null)})}clearRefreshToken(){this.refreshToken=null}refresh(n,e){return k(this,null,function*(){let{accessToken:i,refreshToken:r,expires
vendor: 11,352 bytes, line 98
98In:o}=yield F5(n,e);this.updateTokensAndExpiration(i,r,Number(o))})}updateTokensAndExpiration(n,e,i){this.refreshToken=e||null,this.accessToken=n||null,this.expirationTime=Date.now()+i*1e3}static fromJSON(n,e){let{refreshToken:i,accessToken:r,expirationTime:o}=e,s=new t;return i&&(ve(typeof i=="string","internal-error",{appName:n}),s.refreshToken=i),r&&(ve(typeof r=="string","internal-error",{appName:n}),s.accessToken=r),o&&(ve(typeof o=="number","internal-error",{appName:n}),s.expirationTime=o),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(n){this.accessToken=n.accessToken,this.refreshToken=n.refreshToken,this.expirationTime=n.expirationTime}_clone(){return Object.assign(new t,this.toJSON())}_performRefresh(){return wn("not implemented")}};function qn(t,n){ve(typeof t=="string"||typeof t>"u","internal-error",{appName:n})}var Yn=class t{constructor(o){var s=o,{uid:n,auth:e,stsTokenManager:i}=s,r=Gt(s,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Gd(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=e,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=r.displayName||null,this.email=r.email||null,this.emailVerified=r.emailVerified||!1,this.phoneNumber=r.phoneNumber||null,this.photoURL=r.photoURL||null,this.isAnonymous=r.isAnonymous||!1,this.tenantId=r.tenantId||null,this.providerData=r.providerData?[...r.providerData]:[],this.metadata=new Ss(r.createdAt||void 0,r.lastLoginAt||void 0)}getIdToken(n){return k(this,null,function*(){let e=yield Es(this,this.stsTokenManager.getToken(this.auth,n));return ve(e,this.auth,"internal-error"),this.accessToken!==e&&(this.accessToken=e,yield this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),e})}getIdTokenResult(n){return u0(this,n)}reload(){return p0(this)}_assign(n){this!==n&&(ve(this.uid===n.uid,this.auth,"internal-error"),this.displayName=n.displayName,this.photoURL=n.photoURL,this.email=n.email,this.emailVerified=n.emailVerified,this.phoneNumber=n.phoneNumber,this.isAnonymous=n.isAnonymous,this.tenantId=n.tenantId,this.providerData=n.providerData.map(e=>T({},e)),this.metadata._copy(n.metadata),this.stsTokenManager._assign(n.stsTokenManager))}_clone(n){let e=new t(U(T({},this),{auth:n,stsTokenManager:this.stsTokenManager._clone()}));return e.metadata._copy(this.metadata),e}_onReload(n){ve(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=n,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(n){this.reloadListener?this.reloadListener(n):this.reloadUserInfo=n}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(n,e=!1){return k(this,null,function*(){let i=!1;n.idToken&&n.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(n),i=!0),e&&(yield rl(this)),yield this.auth._persistUserIfCurrent(this),i&&this.auth._notifyListenersIfCurrent(this)})}delete(){return k(this,null,function*(){if(Li(this.auth.app))return Promise.reject(Kn(this.auth));let n=yield this.getIdToken();return yield Es(this,O5(this.auth,{idToken:n})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()})}toJSON(){return U(T({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(n=>T({},n)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(n,e){let i=e.displayName??void 0,r=e.email??void 0,o=e.phoneNumber??void 0,s=e.photoURL??void 0,a=e.tenantId??void 0,l=e._redirectEventId??void 0,c=e.createdAt??void 0,p=e.lastLoginAt??void 0,{uid:h,emailVerified:f,isAnonymous:d,providerData:u,stsTokenManager:g}=e;ve(h&&g,n,"internal-error");let b=ws.fromJSON(this.name,g);ve(typeof h=="string",n,"internal-error"),qn(i,n.name),qn(r,n.name),ve(typeof f=="boolean",n,"internal-error"),ve(typeof d=="boolean",n,"internal-error"),qn(o,n.name),qn(s,n.name),qn(a,n.name),qn(l,n.name),qn(c,n.name),qn(p,n.name);let m=new t({uid:h,auth:n,email:r,emailVerified:f,displayName:i,isAnonymous:d,photoURL:s,phoneNumber:o,tenantId:a,stsTokenManager:b,createdAt:c,lastLoginAt:p});return u&&Array.isArray(u)&&(m.providerData=u.map(v=>T({},v))),l&&(m._redirectEventId=l),m}static _fromIdTokenResponse(n,e,i=!1){return k(this,null,function*(){let r=new ws;r.updateFromServerResponse(e);let o=new t({uid:e.localId,auth:n,stsTokenManager:r,isAnonymous:i});return yield rl(o),o})}static _fromGetAccountInfoResponse(n,e,i){return k(this,null,function*(){let r=e.users[0];ve(r.localId!==void 0,"internal-error");let o=r.providerUserInfo!==void 0?h0(r.providerUserInfo):[],s=!(r.email&&r.passwordHash)&&!o?.length,a=new ws;a.updateFromIdToken(i);let l=new t({uid:r.localId,auth:n,stsTokenManager:a,isAnonymous:s}),c={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:o,metadata:new Ss(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!o?.length};return Object.assign(l,c),l})}};var qm=new Map;function En(t){Xn(t instanceof Function,"Expected a class definition");let n=qm.get(t);return n?(Xn(n instanceof t,"Instance stored in cache mismatched with class"),n):(n=new t,qm.set(t,n),n)}var V5=(()=>{class t{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return k(this,null,function*(){return!0})}_set(e,i){return k(this,null,function*(){this.storage[e]=i})}_get(e){return k(this,null,function*(){let i=this.storage[e];return i===void 0?null:i})}_remove(e){return k(this,null,function*(){delete this.storage[e]})}_addListener(e,i){}_removeListener(e,i){}}return t.type="NONE",t})(),Wd=V5;function Za(t,n,e){return`firebase:${t}:${n}:${e}`}var ol=class t{constructor(n,e,i){this.persistence=n,this.auth=e,this.userKey=i;let{config:r,name:o}=this.auth;this.fullUserKey=Za(this.userKey,r.apiKey,o),this.fullPersistenceKey=Za("persistence",r.apiKey,o),this.boundEventHandler=e._onStorageEvent.bind(e),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(n){return this.persistence._set(this.fullUserKey,n.toJSON())}getCurrentUser(){return k(this,null,function*(){let n=yield this.persistence._get(this.fullUserKey);if(!n)return null;if(typeof n=="string"){let e=yield nl(this.auth,{idToken:n}).catch(()=>{});return e?Yn._fromGetAccountInfoResponse(this.auth,e,n):null}return Yn._fromJSON(this.auth,n)})}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(n){return k(this,null,function*(){if(this.persistence===n)return;let e=yield this.getCurrentUser();if(yield this.removeCurrentUser(),this.persistence=n,e)return this.setCurrentUser(e)})}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(n,e,i="authUser"){return k(this,null,function*(){if(!e.length)return new t(En(Wd),n,i);let r=(yield Promise.all(e.map(c=>k(null,null,function*(){if(yield c._isAvailable())return c})))).filter(c=>c),o=r[0]||En(Wd),s=Za(i,n.config.apiKey,n.name),a=null;for(let c of e)try{let p=yield c._get(s);if(p){let h;if(typeof p=="string"){let f=yield nl(n,{idToken:p}).catch(()=>{});if(!f)break;h=yield Yn._fromGetAccountInfoResponse(n,f,p)}else h=Yn._fromJSON(n,p);c!==o&&(a=h),o=c;break}}catch(p){}let l=r.filter(c=>c._shouldAllowMigration);return!o._shouldAllowMigration||!l.length?new t(o,n,i):(o=l[0],a&&(yield o._set(s,a.toJSON())),yield Promise.all(e.map(c=>k(null,null,function*(){if(c!==o)try{yield c._remove(s)}catch(p){}}))),new t(o,n,i))})}};function Ym(t){let n=t.toLowerCase();if(n.includes("opera/")||n.includes("opr/")||n.includes("opios/"))return"Opera";if(v0(n))return"IEMobile";if(n.includes("msie")||n.includes("trident/"))return"IE";if(n.includes("edge/"))return"Edge";if(f0(n))return"Firefox";if(n.includes("silk/"))return"Silk";if(b0(n))return"Blackberry";if(y0(n))return"Webos";if(m0(n))return"Safari";if((n.includes("chrome/")||g0(n))&&!n.includes("edge/"))return"Chrome";if(_0(n))return"Android";{let e=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,i=t.match(e);if(i?.length===2)return i[1]}return"Other"}function f0(t=$t()){return/firefox\//i.test(t)}function m0(t=$t()){let n=t.toLowerCase();return n.includes("safari/")&&!n.includes("chrome/")&&!n.includes("crios/")&&!n.includes("android")}function g0(t=$t()){return/crios\//i.test(t)}function v0(t=$t()){return/iemobile/i.test(t)}function _0(t=$t()){return/android/i.test(t)}function b0(t=$t()){return/blackberry/i.test(t)}function y0(t=$t()){return/webos/i.test(t)}function uu(t=$t()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function B5(t=$t()){return uu(t)&&!!window.navigator?.standalone}function j5(){return Em()&&document.documentMode===10}function C0(t=$t()){return uu(t)||_0(t)||y0(t)||b0(t)||/windows phone/i.test(t)||v0(t)}function w0(t,n=[]){let e;switch(t){case"Browser":e=Ym($t());break;case"Worker":e=`${Ym($t())}-${t}`;break;default:e=t}let i=n.length?n.join(","):"FirebaseCore-web";return`${e}/JsCore/${ho}/${i}`}var qd=class{constructor(n){this.auth=n,this.queue=[]}pushCallback(n,e){let i=o=>new Promise((s,a)=>{try{let l=n(o);s(l)}catch(l){a(l)}});i.onAbort=e,this.queue.push(i);let r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}runMiddleware(n){return k(this,null,function*(){if(this.auth.currentUser===n)return;let e=[];try{for(let i of this.queue)yield i(n),i.onAbort&&e.push(i.onAbort)}catch(i){e.reverse();for(let r of e)try{r()}catch(o){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:i?.message})}})}};function $5(e){return k(this,arguments,function*(t,n={}){return Sn(t,"GET","/v2/passwordPolicy",Jn(t,n))})}var H5=6,Yd=class{constructor(n){let e=n.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=e.minPasswordLength??H5,e.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=e.maxPasswordLength),e.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=e.containsLowercaseCharacter),e.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=e.containsUppercaseCharacter),e.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=e.containsNumericCharacter),e.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=e.containsNonAlphanumericCharacter),this.enforcementState=n.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=n.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=n.forceUpgradeOnSignin??!1,this.schemaVersion=n.schemaVersion}
98validatePassword(n){let e={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(n,e),this.validatePasswordCharacterOptions(n,e),e.isValid&&(e.isValid=e.meetsMinPasswordLength??!0),e.isValid&&(e.isValid=e.meetsMaxPasswordLength??!0),e.isValid&&(e.isValid=e.containsLowercaseLetter??!0),e.isValid&&(e.isValid=e.containsUppercaseLetter??!0),e.isValid&&(e.isValid=e.containsNumericCharacter??!0),e.isValid&&(e.isValid=e.containsNonAlphanumericCharacter??!0),e}validatePasswordLengthOptions(n,e){let i=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;i&&(e.meetsMinPasswordLength=n.length>=i),r&&(e.meetsMaxPasswordLength=n.length<=r)}validatePasswordCharacterOptions(n,e){this.updatePasswordCharacterOptionsStatuses(e,!1,!1,!1,!1);let i;for(let r=0;r<n.length;r++)i=n.charAt(r),this.updatePasswordCharacterOptionsStatuses(e,i>="a"&&i<="z",i>="A"&&i<="Z",i>="0"&&i<="9",this.allowedNonAlphanumericCharacters.includes(i))}updatePasswordCharacterOptionsStatuses(n,e,i,r,o){this.customStrengthOptions.containsLowercaseLetter&&(n.containsLowercaseLetter||(n.containsLowercaseLetter=e)),this.customStrengthOptions.containsUppercaseLetter&&(n.containsUppercaseLetter||(n.containsUppercaseLetter=i)),this.customStrengthOptions.containsNumericCharacter&&(n.containsNumericCharacter||(n.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(n.containsNonAlphanumericCharacter||(n.containsNonAlphanumericCharacter=o))}};var Kd=class{constructor(n,e,i,r){this.app=n,this.heartbeatServiceProvider=e,this.appCheckServiceProvider=i,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new sl(this),this.idTokenSubscription=new sl(this),this.beforeStateQueue=new qd(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=a0,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=n.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise(o=>this._resolvePersistenceManagerAvailable=o)}_initializeWithPersistence(n,e){return e&&(this._popupRedirectResolver=En(e)),this._initializationPromise=this.queue(()=>k(this,null,function*(){if(!this._deleted&&(this.persistenceManager=yield ol.create(this,n),this._resolvePersistenceManagerAvailable?.(),!this._deleted)){if(this._popupRedirectResolver?._shouldInitProactively)try{yield this._popupRedirectResolver._initialize(this)}catch(i){}yield this.initializeCurrentUser(e),this.lastNotifiedUid=this.currentUser?.uid||null,!this._deleted&&(this._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){return k(this,null,function*(){if(this._deleted)return;let n=yield this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!n)){if(this.currentUser&&n&&this.currentUser.uid===n.uid){this._currentUser._assign(n),yield this.currentUser.getIdToken();return}yield this._updateCurrentUser(n,!0)}})}initializeCurrentUserFromIdToken(n){return k(this,null,function*(){try{let e=yield nl(this,{idToken:n}),i=yield Yn._fromGetAccountInfoResponse(this,e,n);yield this.directlySetCurrentUser(i)}catch(e){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",e),yield this.directlySetCurrentUser(null)}})}initializeCurrentUser(n){return k(this,null,function*(){if(Li(this.app)){let o=this.app.settings.authIdToken;return o?new Promise(s=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(o).then(s,s))}):this.directlySetCurrentUser(null)}let e=yield this.assertedPersistence.getCurrentUser(),i=e,r=!1;if(n&&this.config.authDomain){yield this.getOrInitRedirectPersistenceManager();let o=this.redirectUser?._redirectEventId,s=i?._redirectEventId,a=yield this.tryRedirectSignIn(n);(!o||o===s)&&a?.user&&(i=a.user,r=!0)}if(!i)return this.directlySetCurrentUser(null);
98if(!i._redirectEventId){if(r)try{yield this.beforeStateQueue.runMiddleware(i)}catch(o){i=e,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return ve(this._popupRedirectResolver,this,"argument-error"),yield this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)})}tryRedirectSignIn(n){return k(this,null,function*(){let e=null;try{e=yield this._popupRedirectResolver._completeRedirectFn(this,n,!0)}catch(i){yield this._setRedirectUser(null)}return e})}reloadAndSetCurrentUserOrClear(n){return k(this,null,function*(){try{yield rl(n)}catch(e){if(e?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(n)})}useDeviceLanguage(){this.languageCode=P5()}_delete(){return k(this,null,function*(){this._deleted=!0})}updateCurrentUser(n){return k(this,null,function*(){if(Li(this.app))return Promise.reject(Kn(this));let e=n?yn(n):null;return e&&ve(e.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(e&&e._clone(this))})}_updateCurrentUser(n,e=!1){return k(this,null,function*(){if(!this._deleted)return n&&ve(this.tenantId===n.tenantId,this,"tenant-id-mismatch"),e||(yield this.beforeStateQueue.runMiddleware(n)),this.queue(()=>k(this,null,function*(){yield this.directlySetCurrentUser(n),this.notifyAuthListeners()}))})}signOut(){return k(this,null,function*(){return Li(this.app)?Promise.reject(Kn(this)):(yield this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&(yield this._setRedirectUser(null)),this._updateCurrentUser(null,!0))})}setPersistence(n){return Li(this.app)?Promise.reject(Kn(this)):this.queue(()=>k(this,null,function*(){yield this.assertedPersistence.setPersistence(En(n))}))}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(n){return k(this,null,function*(){this._getPasswordPolicyInternal()||(yield this._updatePasswordPolicy());let e=this._getPasswordPolicyInternal();return e.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):e.validatePassword(n)})}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){return k(this,null,function*(){let n=yield $5(this),e=new Yd(n);this.tenantId===null?this._projectPasswordPolicy=e:this._tenantPasswordPolicies[this.tenantId]=e})}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(n){this._errorFactory=new bn("auth","Firebase",n())}onAuthStateChanged(n,e,i){return this.registerStateListener(this.authStateSubscription,n,e,i)}beforeAuthStateChanged(n,e){return this.beforeStateQueue.pushCallback(n,e)}onIdTokenChanged(n,e,i){return this.registerStateListener(this.idTokenSubscription,n,e,i)}authStateReady(){return new Promise((n,e)=>{if(this.currentUser)n();else{let i=this.onAuthStateChanged(()=>{i(),n()},e)}})}revokeAccessToken(n){return k(this,null,function*(){if(this.currentUser){let e=yield this.currentUser.getIdToken(),i={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:n,idToken:e};this.tenantId!=null&&(i.tenantId=this.tenantId),yield z5(this,i)}})}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}_setRedirectUser(n,e){return k(this,null,function*(){let i=yield this.getOrInitRedirectPersistenceManager(e);return n===null?i.removeCurrentUser():i.setCurrentUser(n)})}getOrInitRedirectPersistenceManager(n){return k(this,null,function*(){if(!this.redirectPersistenceManager){let e=n&&En(n)||this._popupRedirectResolver;ve(e,this,"argument-error"),this.redirectPersistenceManager=yield ol.create(this,[En(e._redirectPersistence)],"redirectUser"),this.redirectUser=yield this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager})}_redirectUserForId(n){return k(this,null,function*(){return this._isInitialized&&(yield this.queue(()=>k(this,null,function*(){}))),this._currentUser?._redirectEventId===n?this._currentUser:this.redirectUser?._redirectEventId===n?this.redirectUser:null})}_persistUserIfCurrent(n){return k(this,null,function*(){if(n===this.currentUser)return this.queue(()=>k(this,null,function*(){return this.directlySetCurrentUser(n)}))})}_notifyListenersIfCurrent(n){n===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let n=this.currentUser?.uid??null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(n,e,i,r){if(this._deleted)return()=>{};let o=typeof e=="function"?e:e.next.bind(e),s=!1,a=this._isInitialized?Promise.resolve():this._initializationPromise;if(ve(a,this,"internal-error"),a.then(()=>{s||o(this.currentUser)}),typeof e=="function"){let l=n.addObserver(e,i,r);return()=>{s=!0,l()}}else{let l=n.addObserver(e);return()=>{s=!0,l()}}}directlySetCurrentUser(n){return k(this,null,function*(){this.currentUser&&this.currentUser!==n&&this._currentUser._stopProactiveRefresh(),n&&this.isProactiveRefreshEnabled&&n._startProactiveRefresh(),this.currentUser=n,n?yield this.assertedPersistence.setCurrentUser(n):yield this.assertedPersistence.removeCurrentUser()})}queue(n){return this.operations=this.operations.then(n,n),this.operations}get assertedPersistence(){return ve(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(n){!n||this.frameworks.includes(n)||(this.frameworks.push(n),this.frameworks.sort(),this.clientVersion=w0(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){return k(this,null,function*(){let n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);let e=yield this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();e&&(n["X-Firebase-Client"]=e);let i=yield this._getAppCheckToken();return i&&(n["X-Firebase-AppCheck"]=i),n})}_getAppCheckToken(){return k(this,null,function*(){if(Li(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let n=yield this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return n?.error&&I5(`Error while retrieving App Check token: ${n.error}`),n?.token})}};function kr(t){return yn(t)}var sl=class{constructor(n){this.auth=n,this.observer=null,this.addObserver=Tm(e=>this.observer=e)}get next(){return ve(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}};var fl={loadJS(){return k(this,null,function*(){throw new Error("Unable to load external scripts")})},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function U5(t){fl=t}function E0(t){return fl.loadJS(t)}function G5(){return fl.recaptchaEnterpriseScript}function W5(){return fl.gapiScript}function S0(t){return`__${t}${Math.floor(Math.random()*1e6)}`}var Xd=class{constructor(){this.enterprise=new Jd}ready(n){n()}execute(n,e){return Promise.resolve("token")}render(n,e){return""}},Jd=class{ready(n){n()}execute(n,e){return Promise.resolve("token")}render(n,e){return""}};var q5="recaptcha-enterprise",I0="NO_RECAPTCHA",Zd=class{constructor(n){this.type=q5,this.auth=kr(n)}verify(n="verify",e=!1){return k(this,null,function*(){function i(o){return k(this,null,function*(){if(!e){if(o.tenantId==null&&o._agentRecaptchaConfig!=null)return o._agentRecaptchaConfig.siteKey;if(o.tenantId!=null&&o._tenantRecaptchaConfigs[o.tenantId]!==void 0)return o._tenantRecaptchaConfigs[o.tenantId].siteKey}return new Promise((s,a)=>
98k(null,null,function*(){R5(o,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(l=>{if(l.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{let c=new Ud(l);return o.tenantId==null?o._agentRecaptchaConfig=c:o._tenantRecaptchaConfigs[o.tenantId]=c,s(c.siteKey)}}).catch(l=>{a(l)})}))})}function r(o,s,a){let l=window.grecaptcha;Gm(l)?l.enterprise.ready(()=>{l.enterprise.execute(o,{action:n}).then(c=>{s(c)}).catch(()=>{s(I0)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new Xd().execute("siteKey",{action:"verify"}):new Promise((o,s)=>{i(this.auth).then(a=>{if(!e&&Gm(window.grecaptcha))r(a,o,s);else{if(typeof window>"u"){s(new Error("RecaptchaVerifier is only supported in browser"));return}let l=G5();l.length!==0&&(l+=a),E0(l).then(()=>{r(a,o,s)}).catch(c=>{s(c)})}}).catch(a=>{s(a)})})})}};function ys(t,n,e,i=!1,r=!1){return k(this,null,function*(){let o=new Zd(t),s;if(r)s=I0;else try{s=yield o.verify(e)}catch(l){s=yield o.verify(e,!0)}let a=T({},n);if(e==="mfaSmsEnrollment"||e==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in a){let l=a.phoneEnrollmentInfo.phoneNumber,c=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:l,recaptchaToken:c,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in a){let l=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:l,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return i?Object.assign(a,{captchaResp:s}):Object.assign(a,{captchaResponse:s}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a})}function Qd(t,n,e,i,r){return k(this,null,function*(){if(r==="EMAIL_PASSWORD_PROVIDER")if(t._getRecaptchaConfig()?.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){let o=yield ys(t,n,e,e==="getOobCode");return i(t,o)}else return i(t,n).catch(o=>k(null,null,function*(){if(o.code==="auth/missing-recaptcha-token"){console.log(`${e} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);let s=yield ys(t,n,e,e==="getOobCode");return i(t,s)}else return Promise.reject(o)}));else if(r==="PHONE_PROVIDER")if(t._getRecaptchaConfig()?.isProviderEnabled("PHONE_PROVIDER")){let o=yield ys(t,n,e);return i(t,o).catch(s=>k(null,null,function*(){if(t._getRecaptchaConfig()?.getProviderEnforcementState("PHONE_PROVIDER")==="AUDIT"&&(s.code==="auth/missing-recaptcha-token"||s.code==="auth/invalid-app-credential")){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${e} flow.`);let a=yield ys(t,n,e,!1,!0);return i(t,a)}return Promise.reject(s)}))}else{let o=yield ys(t,n,e,!1,!0);return i(t,o)}else return Promise.reject(r+" provider is not supported.")})}function x0(t,n){let e=zd(t,"auth");if(e.isInitialized()){let r=e.getImmediate(),o=e.getOptions();if(Gn(o,n??{}))return r;tn(r,"already-initialized")}return e.initialize({options:n})}function Y5(t,n){let e=n?.persistence||[],i=(Array.isArray(e)?e:[e]).map(En);n?.errorMap&&t._updateErrorMap(n.errorMap),t._initializeWithPersistence(i,n?.popupRedirectResolver)}function T0(t,n,e){let i=kr(t);ve(/^https?:\/\//.test(n),i,"invalid-emulator-scheme");let r=!!e?.disableWarnings,o=P0(n),{host:s,port:a}=K5(n),l=a===null?"":`:${a}`,c={url:`${o}//${s}${l}/`},p=Object.freeze({host:s,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:r})});if(!i._canInitEmulator){ve(i.config.emulator&&i.emulatorConfig,i,"emulator-config-failed"),ve(Gn(c,i.config.emulator)&&Gn(p,i.emulatorConfig),i,"emulator-config-failed");return}i.config.emulator=c,i.emulatorConfig=p,i.settings.appVerificationDisabledForTesting=!0,qa(s)?Pm(`${o}//${s}${l}`):r||X5()}function P0(t){let n=t.indexOf(":");return n<0?"":t.substr(0,n+1)}function K5(t){let n=P0(t),e=/(\/\/)?([^?#/]+)/.exec(t.substr(n.length));if(!e)return{host:"",port:null};let i=e[2].split("@").pop()||"",r=/^(\[[^\]]+\])(:|$)/.exec(i);if(r){let o=r[1];return{host:o,port:Km(i.substr(o.length+1))}}else{let[o,s]=i.split(":");return{host:o,port:Km(s)}}}function Km(t){if(!t)return null;let n=Number(t);return isNaN(n)?null:n}function X5(){function t(){let n=document.createElement("p"),e=n.style;n.innerText="Running in emulator mode. Do not use with production credentials.",e.position="fixed",e.width="100%",e.backgroundColor="#ffffff",e.border=".1em solid #000000",e.color="#b50000",e.bottom="0px",e.left="0px",e.margin="0px",e.zIndex="10000",e.textAlign="center",n.classList.add("firebase-emulator-warning"),document.body.appendChild(n)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}var Is=class{constructor(n,e){this.providerId=n,this.signInMethod=e}toJSON(){return wn("not implemented")}_getIdTokenResponse(n){return wn("not implemented")}_linkToIdToken(n,e){return wn("not implemented")}_getReauthenticationResolver(n){return wn("not implemented")}};function J5(t,n){return k(this,null,function*(){return Sn(t,"POST","/v1/accounts:signUp",n)})}function Z5(t,n){return k(this,null,function*(){return hl(t,"POST","/v1/accounts:signInWithPassword",Jn(t,n))})}function Q5(t,n){return k(this,null,function*(){return Sn(t,"POST","/v1/accounts:sendOobCode",Jn(t,n))})}function eC(t,n){return k(this,null,function*(){return Q5(t,n)})}function tC(t,n){return k(this,null,function*(){return hl(t,"POST","/v1/accounts:signInWithEmailLink",Jn(t,n))})}function iC(t,n){return k(this,null,function*(){return hl(t,"POST","/v1/accounts:signInWithEmailLink",Jn(t,n))})}var xs=class t extends Is{constructor(n,e,i,r=null){super("password",i),this._email=n,this._password=e,this._tenantId=r}static _fromEmailAndPassword(n,e){return new t(n,e,"password")}static _fromEmailAndCode(n,e,i=null){return new t(n,e,"emailLink",i)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(n){let e=typeof n=="string"?JSON.parse(n):n;if(e?.email&&e?.password){if(e.signInMethod==="password")return this._fromEmailAndPassword(e.email,e.password);if(e.signInMethod==="emailLink")return this._fromEmailAndCode(e.email,e.password,e.tenantId)}return null}_getIdTokenResponse(n){return k(this,null,function*(){switch(this.signInMethod){case"password":let e={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Qd(n,e,"signInWithPassword",Z5,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return tC(n,{email:this._email,oobCode:this._password});default:tn(n,"internal-error")}})}_linkToIdToken(n,e){return k(this,null,function*(){switch(this.signInMethod){case"password":let i={idToken:e,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Qd(n,i,"signUpPassword",J5,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return iC(n,{idToken:e,email:this._email,oobCode:this._password});default:tn(n,"internal-error")}})}_getReauthenticationResolver(n){return this._getIdTokenResponse(n)}};function Bd(t,n){return k(this,null,function*(){return hl(t,"POST","/v1/accounts:signInWithIdp",Jn(t,n))})}
98function nC(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function rC(t){let n=ao(lo(t)).link,e=n?ao(lo(n)).deep_link_id:null,i=ao(lo(t)).deep_link_id;return(i?ao(lo(i)).link:null)||i||e||n||t}var al=class t{constructor(n){let e=ao(lo(n)),i=e.apiKey??null,r=e.oobCode??null,o=nC(e.mode??null);ve(i&&r&&o,"argument-error"),this.apiKey=i,this.operation=o,this.code=r,this.continueUrl=e.continueUrl??null,this.languageCode=e.lang??null,this.tenantId=e.tenantId??null}static parseLink(n){let e=rC(n);try{return new t(e)}catch(i){return null}}};var k0=(()=>{class t{constructor(){this.providerId=t.PROVIDER_ID}static credential(e,i){return xs._fromEmailAndPassword(e,i)}static credentialWithLink(e,i){let r=al.parseLink(i);return ve(r,"argument-error"),xs._fromEmailAndCode(e,r.code,r.tenantId)}}t.PROVIDER_ID="password",t.EMAIL_PASSWORD_SIGN_IN_METHOD="password",t.EMAIL_LINK_SIGN_IN_METHOD="emailLink";return t})(),ll=class{constructor(n){this.providerId=n,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(n){this.defaultLanguageCode=n}setCustomParameters(n){return this.customParameters=n,this}getCustomParameters(){return this.customParameters}};var eu=class extends ll{constructor(){super(...arguments),this.scopes=[]}addScope(n){return this.scopes.includes(n)||this.scopes.push(n),this}getScopes(){return[...this.scopes]}};var Ts=class t{constructor(n){this.user=n.user,this.providerId=n.providerId,this._tokenResponse=n._tokenResponse,this.operationType=n.operationType}static _fromIdTokenResponse(n,e,i,r=!1){return k(this,null,function*(){let o=yield Yn._fromIdTokenResponse(n,i,r),s=Xm(i);return new t({user:o,providerId:s,_tokenResponse:i,operationType:e})})}static _forOperation(n,e,i){return k(this,null,function*(){yield n._updateTokensIfNecessary(i,!0);let r=Xm(i);return new t({user:n,providerId:r,_tokenResponse:i,operationType:e})})}};function Xm(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}var tu=class t extends Oi{constructor(n,e,i,r){super(e.code,e.message),this.operationType=i,this.user=r,Object.setPrototypeOf(this,t.prototype),this.customData={appName:n.name,tenantId:n.tenantId??void 0,_serverResponse:e.customData._serverResponse,operationType:i}}static _fromErrorAndOperation(n,e,i,r){return new t(n,e,i,r)}};function D0(t,n,e,i){return(n==="reauthenticate"?e._getReauthenticationResolver(t):e._getIdTokenResponse(t)).catch(o=>{throw o.code==="auth/multi-factor-auth-required"?tu._fromErrorAndOperation(t,o,n,i):o})}function oC(t,n,e=!1){return k(this,null,function*(){let i=yield Es(t,n._linkToIdToken(t.auth,yield t.getIdToken()),e);return Ts._forOperation(t,"link",i)})}function sC(t,n,e=!1){return k(this,null,function*(){let{auth:i}=t;if(Li(i.app))return Promise.reject(Kn(i));let r="reauthenticate";try{let o=yield Es(t,D0(i,r,n,t),e);ve(o.idToken,i,"internal-error");let s=du(o.idToken);ve(s,i,"internal-error");let{sub:a}=s;return ve(t.uid===a,i,"user-mismatch"),Ts._forOperation(t,r,o)}catch(o){throw o?.code==="auth/user-not-found"&&tn(i,"user-mismatch"),o}})}function M0(t,n,e=!1){return k(this,null,function*(){if(Li(t.app))return Promise.reject(Kn(t));let i="signIn",r=yield D0(t,i,n),o=yield Ts._fromIdTokenResponse(t,i,r);return e||(yield t._updateCurrentUser(o.user)),o})}function A0(t,n){return k(this,null,function*(){return M0(kr(t),n)})}function aC(t,n,e){ve(e.url?.length>0,t,"invalid-continue-uri"),ve(typeof e.dynamicLinkDomain>"u"||e.dynamicLinkDomain.length>0,t,"invalid-dynamic-link-domain"),ve(typeof e.linkDomain>"u"||e.linkDomain.length>0,t,"invalid-hosting-link-domain"),n.continueUrl=e.url,n.dynamicLinkDomain=e.dynamicLinkDomain,n.linkDomain=e.linkDomain,n.canHandleCodeInApp=e.handleCodeInApp,e.iOS&&(ve(e.iOS.bundleId.length>0,t,"missing-ios-bundle-id"),n.iOSBundleId=e.iOS.bundleId),e.android&&(ve(e.android.packageName.length>0,t,"missing-android-pkg-name"),n.androidInstallApp=e.android.installApp,n.androidMinimumVersionCode=e.android.minimumVersion,n.androidPackageName=e.android.packageName)}function lC(t){return k(this,null,function*(){let n=kr(t);n._getPasswordPolicyInternal()&&(yield n._updatePasswordPolicy())})}function pu(t,n,e){return k(this,null,function*(){let i=kr(t),r={requestType:"PASSWORD_RESET",email:n,clientType:"CLIENT_TYPE_WEB"};e&&aC(i,r,e),yield Qd(i,r,"getOobCode",eC,"EMAIL_PASSWORD_PROVIDER")})}function hu(t,n,e){return Li(t.app)?Promise.reject(Kn(t)):A0(yn(t),k0.credential(n,e)).catch(i=>k(null,null,function*(){throw i.code==="auth/password-does-not-meet-requirements"&&lC(t),i}))}function ml(t,n,e,i){return yn(t).onIdTokenChanged(n,e,i)}function R0(t,n,e){return yn(t).beforeAuthStateChanged(n,e)}function fu(t){return yn(t).signOut()}var cl="__sak";var dl=class{constructor(n,e){this.storageRetriever=n,this.type=e}_isAvailable(){try{return this.storage?(this.storage.setItem(cl,"1"),this.storage.removeItem(cl),Promise.resolve(!0)):Promise.resolve(!1)}catch(n){return Promise.resolve(!1)}}_set(n,e){return this.storage.setItem(n,JSON.stringify(e)),Promise.resolve()}_get(n){let e=this.storage.getItem(n);return Promise.resolve(e?JSON.parse(e):null)}_remove(n){return this.storage.removeItem(n),Promise.resolve()}get storage(){return this.storageRetriever()}};var cC=1e3,dC=10,uC=(()=>{class t extends dl{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,i)=>this.onStorageEvent(e,i),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=C0(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let i of Object.keys(this.listeners)){let r=this.storage.getItem(i),o=this.localCache[i];r!==o&&e(i,o,r)}}
vendor: 5,779 bytes, line 98
98onStorageEvent(e,i=!1){if(!e.key){this.forAllChangedKeys((a,l,c)=>{this.notifyListeners(a,c)});return}let r=e.key;i?this.detachListener():this.stopPolling();let o=()=>{let a=this.storage.getItem(r);!i&&this.localCache[r]===a||this.notifyListeners(r,a)},s=this.storage.getItem(r);j5()&&s!==e.newValue&&e.newValue!==e.oldValue?setTimeout(o,dC):o()}notifyListeners(e,i){this.localCache[e]=i;let r=this.listeners[e];if(r)for(let o of Array.from(r))o(i&&JSON.parse(i))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,i,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:i,newValue:r}),!0)})},cC)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,i){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(i)}_removeListener(e,i){this.listeners[e]&&(this.listeners[e].delete(i),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}_set(e,i){return k(this,null,function*(){yield nr(t.prototype,this,"_set").call(this,e,i),this.localCache[e]=JSON.stringify(i)})}_get(e){return k(this,null,function*(){let i=yield nr(t.prototype,this,"_get").call(this,e);return this.localCache[e]=JSON.stringify(i),i})}_remove(e){return k(this,null,function*(){yield nr(t.prototype,this,"_remove").call(this,e),delete this.localCache[e]})}}return t.type="LOCAL",t})(),O0=uC;var pC=(()=>{class t extends dl{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,i){}_removeListener(e,i){}}return t.type="SESSION",t})(),mu=pC;function hC(t){return Promise.all(t.map(n=>k(null,null,function*(){try{return{fulfilled:!0,value:yield n}}catch(e){return{fulfilled:!1,reason:e}}})))}var fC=(()=>{class t{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){let i=this.receivers.find(o=>o.isListeningto(e));if(i)return i;let r=new t(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}handleEvent(e){return k(this,null,function*(){let i=e,{eventId:r,eventType:o,data:s}=i.data,a=this.handlersMap[o];if(!a?.size)return;i.ports[0].postMessage({status:"ack",eventId:r,eventType:o});let l=Array.from(a).map(p=>k(this,null,function*(){return p(i.origin,s)})),c=yield hC(l);i.ports[0].postMessage({status:"done",eventId:r,eventType:o,response:c})})}_subscribe(e,i){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(i)}_unsubscribe(e,i){this.handlersMap[e]&&i&&this.handlersMap[e].delete(i),(!i||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}t.receivers=[];return t})();function L0(t="",n=10){let e="";for(let i=0;i<n;i++)e+=Math.floor(Math.random()*10);return t+e}var iu=class{constructor(n){this.target=n,this.handlers=new Set}removeMessageHandler(n){n.messageChannel&&(n.messageChannel.port1.removeEventListener("message",n.onMessage),n.messageChannel.port1.close()),this.handlers.delete(n)}_send(n,e,i=50){return k(this,null,function*(){let r=typeof MessageChannel<"u"?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let o,s;return new Promise((a,l)=>{let c=L0("",20);r.port1.start();let p=setTimeout(()=>{l(new Error("unsupported_event"))},i);s={messageChannel:r,onMessage(h){let f=h;if(f.data.eventId===c)switch(f.data.status){case"ack":clearTimeout(p),o=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(o),a(f.data.response);break;default:clearTimeout(p),clearTimeout(o),l(new Error("invalid_response"));break}}},this.handlers.add(s),r.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:n,eventId:c,data:e},[r.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})})}};function en(){return window}function mC(t){en().location.href=t}function N0(){return typeof en().WorkerGlobalScope<"u"&&typeof en().importScripts=="function"}function gC(){return k(this,null,function*(){if(!navigator?.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch(t){return null}})}function vC(){return navigator?.serviceWorker?.controller||null}function _C(){return N0()?self:null}var F0="firebaseLocalStorageDb",bC=1,ul="firebaseLocalStorage",z0="fbase_key",Pr=class{constructor(n){this.request=n}toPromise(){return new Promise((n,e)=>{this.request.addEventListener("success",()=>{n(this.request.result)}),this.request.addEventListener("error",()=>{e(this.request.error)})})}};function gl(t,n){return t.transaction([ul],n?"readwrite":"readonly").objectStore(ul)}function yC(){let t=indexedDB.deleteDatabase(F0);return new Pr(t).toPromise()}function V0(){let t=indexedDB.open(F0,bC);return new Promise((n,e)=>{t.addEventListener("error",()=>{e(t.error)}),t.addEventListener("upgradeneeded",()=>{let i=t.result;try{i.createObjectStore(ul,{keyPath:z0})}catch(r){e(r)}}),t.addEventListener("success",()=>k(null,null,function*(){let i=t.result;i.objectStoreNames.contains(ul)?n(i):(i.close(),yield yC(),n(yield V0()))}))})}function Jm(t,n,e){return k(this,null,function*(){let i=gl(t,!0).put({[z0]:n,value:e});return new Pr(i).toPromise()})}function CC(t,n){return k(this,null,function*(){let e=gl(t,!1).get(n),i=yield new Pr(e).toProm
98ise();return i===void 0?null:i.value})}function Zm(t,n){let e=gl(t,!0).delete(n);return new Pr(e).toPromise()}var wC=800,EC=3,SC=(()=>{class t{constructor(){this.type="LOCAL",this.dbPromise=null,this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){return k(this,null,function*(){return this.dbPromise?this.dbPromise:(this.dbPromise=V0(),this.dbPromise.catch(()=>{this.dbPromise=null}),this.dbPromise)})}_withRetries(e){return k(this,null,function*(){let i=0;for(;;)try{let r=yield this._openDb();return yield e(r)}catch(r){if(i++>EC)throw r;this.dbPromise&&((yield this.dbPromise).close(),this.dbPromise=null)}})}initializeServiceWorkerMessaging(){return k(this,null,function*(){return N0()?this.initializeReceiver():this.initializeSender()})}initializeReceiver(){return k(this,null,function*(){this.receiver=fC._getInstance(_C()),this.receiver._subscribe("keyChanged",(e,i)=>k(this,null,function*(){return{keyProcessed:(yield this._poll()).includes(i.key)}})),this.receiver._subscribe("ping",(e,i)=>k(this,null,function*(){return["keyChanged"]}))})}initializeSender(){return k(this,null,function*(){if(this.activeServiceWorker=yield gC(),!this.activeServiceWorker)return;this.sender=new iu(this.activeServiceWorker);let e=yield this.sender._send("ping",{},800);e&&e[0]?.fulfilled&&e[0]?.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)})}notifyServiceWorker(e){return k(this,null,function*(){if(!(!this.sender||!this.activeServiceWorker||vC()!==this.activeServiceWorker))try{yield this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(i){}})}_isAvailable(){return k(this,null,function*(){try{return indexedDB?(yield this._withRetries(e=>k(this,null,function*(){yield Jm(e,cl,"1"),yield Zm(e,cl)})),!0):!1}catch(e){}return!1})}_withPendingWrite(e){return k(this,null,function*(){this.pendingWrites++;try{yield e()}finally{this.pendingWrites--}})}_set(e,i){return k(this,null,function*(){return this._withPendingWrite(()=>k(this,null,function*(){return yield this._withRetries(r=>Jm(r,e,i)),this.localCache[e]=i,this.notifyServiceWorker(e)}))})}_get(e){return k(this,null,function*(){let i=yield this._withRetries(r=>CC(r,e));return this.localCache[e]=i,i})}_remove(e){return k(this,null,function*(){return this._withPendingWrite(()=>k(this,null,function*(){return yield this._withRetries(i=>Zm(i,e)),delete this.localCache[e],this.notifyServiceWorker(e)}))})}_poll(){return k(this,null,function*(){let e=yield this._withRetries(o=>{let s=gl(o,!1).getAll();return new Pr(s).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];let i=[],r=new Set;if(e.length!==0)for(let{fbase_key:o,value:s}of e)r.add(o),JSON.stringify(this.localCache[o])!==JSON.stringify(s)&&(this.notifyListeners(o,s),i.push(o));for(let o of Object.keys(this.localCache))this.localCache[o]&&!r.has(o)&&(this.notifyListeners(o,null),i.push(o));return i})}notifyListeners(e,i){this.localCache[e]=i;let r=this.listeners[e];if(r)for(let o of Array.from(r))o(i)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>k(this,null,function*(){return this._poll()}),wC)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,i){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(i)}_removeListener(e,i){this.listeners[e]&&(this.listeners[e].delete(i),this.listeners[e].size===0&&delete this.listeners[e]),Ob
98ject.keys(this.listeners).length===0&&this.stopPolling()}}return t.type="LOCAL",t})(),B0=SC;var sL=S0("rcb"),aL=new Tr(3e4,6e4);function IC(t,n){return n?En(n):(ve(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}var Ps=class extends Is{constructor(n){super("custom","custom"),this.params=n}_getIdTokenResponse(n){return Bd(n,this._buildIdpRequest())}_linkToIdToken(n,e){return Bd(n,this._buildIdpRequest(e))}_getReauthenticationResolver(n){return Bd(n,this._buildIdpRequest())}_buildIdpRequest(n){let e={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return n&&(e.idToken=n),e}};function xC(t){return M0(t.auth,new Ps(t),t.bypassAuthState)}function TC(t){let{auth:n,user:e}=t;return ve(e,n,"internal-error"),sC(e,new Ps(t),t.bypassAuthState)}function PC(t){return k(this,null,function*(){let{auth:n,user:e}=t;return ve(e,n,"internal-error"),oC(e,new Ps(t),t.bypassAuthState)})}var nu=class{constructor(n,e,i,r,o=!1){this.auth=n,this.resolver=i,this.user=r,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(e)?e:[e]}execute(){return new Promise((n,e)=>k(this,null,function*(){this.pendingPromise={resolve:n,reject:e};try{this.eventManager=yield this.resolver._initialize(this.auth),yield this.onExecution(),this.eventManager.registerConsumer(this)}catch(i){this.reject(i)}}))}onAuthEvent(n){return k(this,null,function*(){let{urlResponse:e,sessionId:i,postBody:r,tenantId:o,error:s,type:a}=n;if(s){this.reject(s);return}let l={auth:this.auth,requestUri:e,sessionId:i,tenantId:o||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(yield this.getIdpTask(a)(l))}catch(c){this.reject(c)}})}onError(n){this.reject(n)}getIdpTask(n){switch(n){case"signInViaPopup":case"signInViaRedirect":return xC;case"linkViaPopup":case"linkViaRedirect":return PC;case"reauthViaPopup":case"reauthViaRedirect":return TC;default:tn(this.auth,"internal-error")}}resolve(n){Xn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(n),this.unregisterAndCleanUp()}reject(n){Xn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(n),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}};var lL=new Tr(2e3,1e4);var kC="pendingRedirect",Qa=new Map,ru=class t extends nu{constructor(n,e,i=!1){super(n,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],e,void 0,i),this.eventId=null}execute(){return k(this,null,function*(){let n=Qa.get(this.auth._key());if(!n){try{let i=(yield DC(this.resolver,this.auth))?yield nr(t.prototype,this,"execute").call(this):null;n=()=>Promise.resolve(i)}catch(e){n=()=>Promise.reject(e)}Qa.set(this.auth._key(),n)}return this.bypassAuthState||Qa.set(this.auth._key(),()=>Promise.resolve(null)),n()})}onAuthEvent(n){return k(this,null,function*(){if(n.type==="signInViaRedirect")return nr(t.prototype,this,"onAuthEvent").call(this,n);if(n.type==="unknown"){this.resolve(null);return}if(n.eventId){let e=yield this.auth._redirectUserForId(n.eventId);if(e)return this.user=e,nr(t.prototype,this,"onAuthEvent").call(this,n);this.resolve(null)}})}onExecution(){return k(this,null,function*(){})}cleanUp(){}};function DC(t,n){return k(this,null,function*(){let e=RC(n),i=AC(t);if(!(yield i._isAvailable()))return!1;let r=(yield i._get(e))==="true";return yield i._remove(e),r})}function MC(t,n){Qa.set(t._key(),n)}function AC(t){return En(t._redirectPersistence)}function RC(t){return Za(kC,t.config.apiKey,t.name)}function OC(t,n,e=!1){return k(this,null,function*(){if(Li(t.app))return Promise.reject(Kn(t));let i=kr(t),r=IC(i,n),s=yield new ru(i,r,e).execute();return s&&!e&&(delete s.user._redirectEventId,yield i._persistUserIfCurrent(s.user),yield i._setRedirectUser(null,n)),s})}var LC=600*1e3,ou=class{constructor(n){this.auth=n,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=
98Date.now()}registerConsumer(n){this.consumers.add(n),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,n)&&(this.sendToConsumer(this.queuedRedirectEvent,n),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(n){this.consumers.delete(n)}onEvent(n){if(this.hasEventBeenHandled(n))return!1;let e=!1;return this.consumers.forEach(i=>{this.isEventForConsumer(n,i)&&(e=!0,this.sendToConsumer(n,i),this.saveEventToCache(n))}),this.hasHandledPotentialRedirect||!NC(n)||(this.hasHandledPotentialRedirect=!0,e||(this.queuedRedirectEvent=n,e=!0)),e}sendToConsumer(n,e){if(n.error&&!j0(n)){let i=n.error.code?.split("auth/")[1]||"internal-error";e.onError(xr(this.auth,i))}else e.onAuthEvent(n)}isEventForConsumer(n,e){let i=e.eventId===null||!!n.eventId&&n.eventId===e.eventId;return e.filter.includes(n.type)&&i}hasEventBeenHandled(n){return Date.now()-this.lastProcessedEventTime>=LC&&this.cachedEventUids.clear(),this.cachedEventUids.has(Qm(n))}saveEventToCache(n){this.cachedEventUids.add(Qm(n)),this.lastProcessedEventTime=Date.now()}};function Qm(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(n=>n).join("-")}function j0({type:t,error:n}){return t==="unknown"&&n?.code==="auth/no-auth-event"}function NC(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return j0(t);default:return!1}}function FC(e){return k(this,arguments,function*(t,n={}){return Sn(t,"GET","/v1/projects",n)})}var zC=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,VC=/^https?/;function BC(t){return k(this,null,function*(){if(t.config.emulator)return;let{authorizedDomains:n}=yield FC(t);for(let e of n)try{if(jC(e))return}catch(i){}tn(t,"unauthorized-domain")})}function jC(t){let n=$d(),{protocol:e,hostname:i}=new URL(n);if(t.startsWith("chrome-extension://")){let s=new URL(t);return s.hostname===""&&i===""?e==="chrome-extension:"&&t.replace("chrome-extension://","")===n.replace("chrome-extension://",""):e==="chrome-extension:"&&s.hostname===i}if(!VC.test(e))return!1;if(zC.test(t))return i===t;let r=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+r+"|"+r+")$","i").test(i)}var $C=new Tr(3e4,6e4);function e0(){let t=en().___jsl;if(t?.H){for(let n of Object.keys(t.H))if(t.H[n].r=t.H[n].r||[],t.H[n].L=t.H[n].L||[],t.H[n].r=[...t.H[n].L],t.CP)for(let e=0;e<t.CP.length;e++)t.CP[e]=null}}function HC(t){return new Promise((n,e)=>{function i(){e0(),gapi.load("gapi.iframes",{callback:()=>{n(gapi.iframes.getContext())},ontimeout:()=>{e0(),e(xr(t,"network-request-failed"))},timeout:$C.get()})}if(en().gapi?.iframes?.Iframe)n(gapi.iframes.getContext());else if(en().gapi?.load)i();else{let r=S0("iframefcb");return en()[r]=()=>{gapi.load?i():e(xr(t,"network-request-failed"))},E0(`${W5()}?onload=${r}`).catch(o=>e(o))}}).catch(n=>{throw el=null,n})}var el=null;function UC(t){return el=el||HC(t),el}var GC=new Tr(5e3,15e3),WC="__/auth/iframe",qC="emulator/auth/iframe",YC={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},KC=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function XC(t){let n=t.config;ve(n.authDomain,t,"auth-domain-config-required");let e=n.emulator?cu(n,qC):`https://${t.config.authDomain}/${WC}`,i={apiKey:n.apiKey,appName:t.name,v:ho},r=KC.get(t.config.apiHost);r&&(i.eid=r);let o=t._getFrameworks();return o.length&&(i.fw=o.join(",")),`${e}?${vs(i).slice(1)}`}function JC(t){return k(this,null,function*(){let n=yield UC(t),e=en().gapi;return ve(e,t,"internal-error"),n.open({where:document.body,url:XC(t),messageHandlersFilter:e.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:YC,dontclear:!0},i=>new Promise((r,o)=>k(null,null,function*(){yield i.restyle({setHideOnLeave:!1});let s=xr(t,"network-request-failed"),a=en().setTimeout(()=>{o(s)},GC.get());function l(){en().clearTimeout(a),r(i)}i.ping(l).then(l,()=>{o(s)})})))})}var ZC={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},QC=500,ew=600,tw="_blank",iw="http://localhost",pl=class{constructor(n){this.window=n,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(n){}}};function nw(t,n,e,i=QC,r=ew){let o=Math.max((window.screen.availHeight-r)/2,0).toString(),s=Math.max((window.screen.availWi
98dth-i)/2,0).toString(),a="",l=U(T({},ZC),{width:i.toString(),height:r.toString(),top:o,left:s}),c=$t().toLowerCase();e&&(a=g0(c)?tw:e),f0(c)&&(n=n||iw,l.scrollbars="yes");let p=Object.entries(l).reduce((f,[d,u])=>`${f}${d}=${u},`,"");if(B5(c)&&a!=="_self")return rw(n||"",a),new pl(null);let h=window.open(n||"",a,p);ve(h,t,"popup-blocked");try{h.focus()}catch(f){}return new pl(h)}function rw(t,n){let e=document.createElement("a");e.href=t,e.target=n;let i=document.createEvent("MouseEvent");i.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),e.dispatchEvent(i)}var ow="__/auth/handler",sw="emulator/auth/handler",aw=encodeURIComponent("fac");function t0(t,n,e,i,r,o){return k(this,null,function*(){ve(t.config.authDomain,t,"auth-domain-config-required"),ve(t.config.apiKey,t,"invalid-api-key");let s={apiKey:t.config.apiKey,appName:t.name,authType:e,redirectUrl:i,v:ho,eventId:r};if(n instanceof ll){n.setDefaultLanguage(t.languageCode),s.providerId=n.providerId||"",xm(n.getCustomParameters())||(s.customParameters=JSON.stringify(n.getCustomParameters()));for(let[p,h]of Object.entries(o||{}))s[p]=h}if(n instanceof eu){let p=n.getScopes().filter(h=>h!=="");p.length>0&&(s.scopes=p.join(","))}t.tenantId&&(s.tid=t.tenantId);let a=s;for(let p of Object.keys(a))a[p]===void 0&&delete a[p];let l=yield t._getAppCheckToken(),c=l?`#${aw}=${encodeURIComponent(l)}`:"";return`${lw(t)}?${vs(a).slice(1)}${c}`})}function lw({config:t}){return t.emulator?cu(t,sw):`https://${t.authDomain}/${ow}`}var jd="webStorageSupport",su=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=mu,this._completeRedirectFn=OC,this._overrideRedirectResult=MC}_openPopup(n,e,i,r){return k(this,null,function*(){Xn(this.eventManagers[n._key()]?.manager,"_initialize() not called before _openPopup()");let o=yield t0(n,e,i,$d(),r);return nw(n,o,L0())})}_openRedirect(n,e,i,r){return k(this,null,function*(){yield this._originValidation(n);let o=yield t0(n,e,i,$d(),r);return mC(o),new Promise(()=>{})})}_initialize(n){let e=n._key();if(this.eventManagers[e]){let{manager:r,promise:o}=this.eventManagers[e];return r?Promise.resolve(r):(Xn(o,"If manager is not set, promise should be"),o)}let i=this.initAndGetManager(n);return this.eventManagers[e]={promise:i},i.catch(()=>{delete this.eventManagers[e]}),i}initAndGetManager(n){return k(this,null,function*(){let e=yield JC(n),i=new ou(n);return e.register("authEvent",r=>(ve(r?.authEvent,n,"invalid-auth-event"),{status:i.onEvent(r.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[n._key()]={manager:i},this.iframes[n._key()]=e,i})}_isIframeWebStorageSupported(n,e){this.iframes[n._key()].send(jd,{type:jd},r=>{let o=r?.[0]?.[jd];o!==void 0&&e(!!o),tn(n,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(n){let e=n._key();return this.originValidationPromises[e]||(this.originValidationPromises[e]=BC(n)),this.originValidationPromises[e]}get _shouldInitProactively(){return C0()||m0()||uu()}},$0=su;var i0="@firebase/auth",n0="1.13.2";var au=class{constructor(n){this.auth=n,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}getToken(n){return k(this,null,function*(){return this.assertAuthConfigured(),yield this.auth._initializationPromise,this.auth.currentUser?{accessToken:yield this.auth.currentUser.getIdToken(n)}:null})}addAuthTokenListener(n){if(this.assertAuthConfigured(),this.internalListeners.has(n))return;let e=this.auth.onIdTokenChanged(i=>{n(i?.stsTokenManager.accessToken||null)});this.internalListeners.set(n,e),this.updateProactiveRefresh()}removeAuthTokenListener(n){this.assertAuthConfigured();let e=this.internalListeners.get(n);e&&(this.internalListeners.delete(n),e(),this.updateProactiveRefresh())}assertAuthConfigured(){ve(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}};function cw(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function dw(t){po(new Zi("auth",(n,{options:e})=>{let i=n.getProvider("app").getImmediate(),r=n.getProvider("heartbeat"),o=n.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=i.options;ve(s&&!s.includes(":"),"invalid-api-key",{appName:i.name});let l={apiKey:s,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:w0(t)},c=new Kd(i,r,o,l);return Y5(c,e),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((n,e,i)=>{n.getProvider("auth-internal").initialize()})),po(new Zi("auth-internal",n=>{let e=kr(n.getProvider("auth").getImmediate());return(i=>new au(i))(e)},"PRIVATE").setInstantiationMode("EXPLICIT")),uo(i0,n0,cw(t)),uo(i0,n0,"esm2020")}var uw=300,pw=Ed("authIdTokenMaxAge")||uw,r0=null,hw=t=>n=>k(null,null,function*(){let e=n&&(yield n.getIdTokenResult()),i=e&&(new Date().getTime()-Date.parse(e.issuedAtTime))/1e3;if(i&&i>pw)return;let r=e?.token;r0!==r&&(r0=r,yield fetch(t,{method:r?"POST":"DELETE",headers:r?{Authorization:`Bearer ${r}`}:{}}))});function Dr(t=jm()){let n=zd(t,"auth");if(n.isInitialized())return n.getImmediate();let e=x0(t,{popupRedirectResolver:$0,persistence:[B0,O0,mu]}),i=Ed("authTokenSyncURL");if(i&&typeof isSecureContext=="boolean"&&isSecureContext){let o=new URL(i,location.origin);if(location.origin===o.origin){let s=hw(o.toString());R0(e,s,()=>s(e.currentUser)),ml(e,a=>s(a))}}let r=_m("auth");return r&&T0(e,`http://${r}`),e}function fw(){return document.getElementsByTagName("head")?.[0]??document}U5({loadJS(t){return new Promise((n,e)=>{let i=document.createElement("script");i.setAttribute("src",t),i.onload=n,i.onerror=r=>{let o=xr("internal-error");o.customData=r,e(o)},i.type="text/javascript",i.charset="UTF-8",fw().appendChild(i)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});dw("Browser");var H0=(()=>{class t{static{this.AUTH_RETURN_QUERY_STORAGE_KEY="adminAuthReturnQuery"}constructor(e,i,r,o,s,a,l,c,p,h,f,d){this.http=e,this.router=i,this.appTenantInfoService=r,this.cookieService=o,this.profileDomainService=s,this.store=a,this.apiService=l,this.ngZone=c,this.moduleConfig=p,this.platformId=h,this.request=f,this.ssrResponseService=d,this.authorized$=new nt(!1),this.authorizationInitialized=new nt(!1),this.isRegistrationProcess=!1,this.logoutInProgress=!1}get authToken(){let e=`token_${this.appTenantInfoService.tenantId}`;return Ie(this.platformId)?this.request?.cookies[e]:this.cookieService?.get(e)}get idToken(){let e=`idToken_${this.appTenantInfoService.tenantId}`;return Ie(this.platformId)?this.request?.cookies?.[e]:this.cookieService?.get(e)}get parentTenant(){return Ie(this.platformId)?null:window.sessionStorage.getItem(this.parentTenantStoreKey)}set parentTenant(e){Ie(this.platformId)||window.sessionStorage.setItem(this.parentTenantStoreKey,e)}get ghostMode(){if(Ie(this.platformId))return!1;let e=window.sessionStorage.getItem(this.ghostStoreKey);return e?!!JSON.parse(e):!1}set ghostMode(e){if(!Ie(this.platformId)){if(e){window.sessionStorage.setItem(this.ghostStoreKey,`${e}`);return}window.sessionStorage.removeItem(this.ghostStoreKey)}}bindGhostSession(e){Ie(this.platformId)||(this.ghostStoreKey=`ghost-${this.appTenantInfoService.tenantId}`,this.parentTenantStoreKey=`parent_tenant-${this.appTenantInfoService.tenantId}`,this.ghostMode=!0,this.parentTenant=e)}get registrationProcess(){return this.isRegistrationProcess}set registrationProcess(e){this.isRegistrationProcess=e}
98persistAuthReturnQueryParams(){if(Ie(this.platformId))return;let e=this.router.parseUrl(this.router.url),i=this.normalizeRedirectUrl(e.queryParams.redirectUrl),r=e.queryParams.client,o=this.readStoredAuthReturnQueryParams(),s=i??o?.redirectUrl,a=r??o?.client;!s&&!a||sessionStorage.setItem(t.AUTH_RETURN_QUERY_STORAGE_KEY,JSON.stringify({redirectUrl:s,client:a}))}clearAuthReturnQueryParams(){Ie(this.platformId)||sessionStorage.removeItem(t.AUTH_RETURN_QUERY_STORAGE_KEY)}getAuthReturnQueryParams(){let e=this.router.parseUrl(this.router.url),i=this.readStoredAuthReturnQueryParams(),r=this.normalizeRedirectUrl(e.queryParams.redirectUrl)??i?.redirectUrl,o=e.queryParams.client??i?.client;return{redirectUrl:r,client:o?`${o}`:void 0}}getLoginNavigationQueryParams(){return this.buildLoginNavigationQueryParams()}initialize(e){return e===fr.CLIENT?this.initClientAuth():this.initAdminAuth()}initClientAuth(){let e=Ie(this.platformId)?"SSR":"BROWSER",i=Date.now(),r=0,o=(s,a)=>{};return this.appTenantInfoService.loaded.pipe(Ne(s=>s),Fe(()=>o("tenantInfo loaded")),Ae(()=>Ie(this.platformId)?(o("idToken path: SSR cookie"),xe(this.idToken)):(o("idToken path: Firebase onIdTokenChanged (browser)"),this.idTokenResult().pipe(Pe(s=>s?.token)))),Fe(s=>{r++,o("idToken obtained",{hasToken:!!s})}),Ae(s=>xi([xe(s),this.getAuthToken(s)])),Fe(([s,a])=>{if(o("getAuthToken resolved",{hasFirebaseToken:!!s,hasApiToken:!!a?.result,fromCache:a?.fromCache??!1}),!s||!a?.result)return;let{result:l,fromCache:c}=a;if(this.observeTokenExpiredDate(l.token),this.setIdToken(s),c){o("token from cache \u2014 skipping setToken");return}o("new token \u2014 calling setToken"),this.setToken(l)}),Ae(([s,a])=>xe(!!s&&!!a?.result)),Fe(s=>{o(`auth complete \u2014 authorized=${s}, total=${Date.now()-i}ms`),this.authorized$.next(s),s&&(this.logoutInProgress=!1),!s&&Ie(this.platformId)&&this.hasAuthCookies()&&this.clearAuthCookies(),this.authorizationInitialized.getValue()||this.authorizationInitialized.next(!0)}),Ae(()=>this.authorized$))}initAdminAuth(){return this.appTenantInfoService.loaded.pipe(Ne(e=>e),Fe(()=>{this.ghostStoreKey=`ghost-${this.appTenantInfoService.tenantId}`,this.parentTenantStoreKey=`parent_tenant-${this.appTenantInfoService.tenantId}`}),Ae(()=>Ie(this.platformId)?xe(this.request.cookies[`idToken_${this.appTenantInfoService.tenantId}`]):this.idTokenResult().pipe(Pe(e=>e?.token))),Ae(e=>e?this.isRegistrationProcess?xe(!1):this.getAuthToken(e).pipe(Fe(i=>{if(!i?.result?.token)throw new Error("Auth token exchange failed");let{result:r,fromCache:o}=i;this.observeTokenExpiredDate(r.token),this.setIdToken(e),!o&&this.setToken(r)}),Ae(()=>this.store.select(ki.permissionSelectors.permissionsStateSelector).pipe(Se(1),Fe(i=>{i.isLoaded||this.store.dispatch(ki.permissionActions.LoadPermissions())}))),Ae(()=>this.store.select(ki.permissionSelectors.arePermissionsLoaded)),Ne(i=>i),Se(1),Ae(()=>this.store.select(ki.permissionSelectors.permissionsSelector).pipe(Se(1))),Ae(i=>{if(!i.map(s=>s.value).includes(Ue.PermissionRole.ROLE_DASH_LOGIN))return xe(!0);let r=this.store.select(Br.myGroupsSelectors.myGroupsListStateSelector).pipe(Se(1),Fe(s=>{s.isLoaded||this.store.dispatch(Br.myGroupsActions.LoadMyGroupsList())})),o=this.ghostMode?this.getProfileFromParentTenant(this.parentTenant).pipe(Se(1),Fe(s=>this.store.dispatch(Qs.userActions.LoadUserMyProfileDataComplete({userData:s})))):this.store.select(Qs.userSelectors.userMyProfileStateSelector).pipe(Se(1),Fe(s=>{s.isLoaded||this.store.dispatch(Qs.userActions.LoadUserMyProfileData())}));return xi([r,o]).pipe(Pe(()=>!0))}),bo(i=>(console.error(i),this.isRegistrationProcess||this.logout(),xe(!1)))):xe(!1)),Pe(e=>!!e),Fe(e=>{this.authorized$.next(e),e&&(this.logoutInProgress=!1)}))}resetPassword(e){return pu(Dr(),e)}loginUser(e,i){return Ie(this.platformId)||localStorage.removeItem("inviteCode"),this.logoutInProgress=!1,this.authorized$.next(!1),this.clearCookies(),hu(Dr(),e,i)}get initialized(){return this.authorizationInitialized.asObservable()}get authorized(){return this.authorized$.asObservable()}get isAuthorized(){return this.authorized$.getValue()}markUnauthorized(){this.authorized$.next(!1)}clearClientSessionWithoutRedirect(){if(!this.logoutInProgress){if(this.logoutInProgress=!0,this.authorized$.next(!1),Ie(this.platformId)){this.clearAuthCookies(),this.logoutInProgress=!1;return}localStorage.removeItem("inviteCode"),this.signOutFirebaseThen(()=>{this.logoutInProgress=!1,this.clearCookies(!0),this.store.dispatch(Gs.resetStateAction()),this.store.dispatch(Vr.entered({tenant:this.appTenantInfoService.tenant,domain:this.appTenantInfoService.domain}))})}}completeRegistrationAndGoToLogin(){if(this.isRegistrationProcess=!1,Ie(this.platformId)){this.authorized$.next(!1),this.clearAuthCookies();return}localStorage.removeItem("inviteCode");let e=()=>{this.logoutInProgress=!1,this.authorized$.next(!1),this.clearCookies(!0),this.store.dispatch(Gs.resetStateAction()),this.store.dispatch(Vr.entered({tenant:this.appTenantInfoService.tenant,domain:this.appTenantInfoService.domain})),this.router.navigate(["/auth/login"],{replaceUrl:!0,queryParams:this.buildLoginNavigationQueryParams()})};if(this.logoutInProgress){this.signOutFirebaseThen(e);return}this.logoutInProgress=!0,this.apiService.save("auth/logout",{},{headers:new Sl({Anonymous:"true"})}).subscribe({next:i=>{i.error&&console.error(i.error),this.signOutFirebaseThen(e)},error:i=>{console.error(i),this.signOutFirebaseThen(e)}})}logout(e){if(this.logoutInProgress)return;if(this.logoutInProgress=!0,Ie(this.platformId)){this.authorized$.next(!1),this.clearAuthCookies(),this.logoutInProgress=!1;return}let i=this.router.url?.startsWith("/")?this.router.url:"/";localStorage.removeItem("inviteCode");let r=()=>{if(this.logoutInProgress=!1,this.authorized$.next(!1),this.clearCookies(!0),this.store.dispatch(Gs.resetStateAction()),this.store.dispatch(Vr.entered({tenant:this.appTenantInfoService.tenant,domain:this.appTenantInfoService.domain})),we(e)){let o=i&&!i.startsWith("/auth")?{redirectUrl:i}:{};this.router.navigate(["/auth/login"],{queryParams:o});return}window.location.replace("/")};this.apiService.save("auth/logout",{},{headers:new Sl({Anonymous:"true"})}).subscribe({next:o=>{o.error&&console.error(o.error),this.signOutFirebaseThen(r)},error:o=>{console.error(o),this.signOutFirebaseThen(r)}})}
98clearCookies(e=!1){if(this.clearAuthCookies(),e&&!Ie(this.platformId)&&(sessionStorage.removeItem(`ghost-${this.appTenantInfoService.tenantId}`),sessionStorage.removeItem(`parent_tenant-${this.appTenantInfoService.tenantId}`),localStorage.removeItem("inviteCode")),!Ie(this.platformId))try{this.cookieService.deleteAll(),this.cookieService.deleteAll("/")}catch(i){console.warn("cookieService.deleteAll failed:",i)}}redirectToLogin(e){let i=e||this.router.routerState.snapshot.url,r=Pl(this.appTenantInfoService.tenant.domain,["admin","auth"],{redirectUrl:i,client:!0});if(Ie(this.platformId)){this.ssrResponseService.redirect(302,r);return}window.location.replace(r)}getAuthToken(e){if(!e)return xe(void 0);let i=this.getToken(),r=this.idToken;if(i&&r===e&&!Rl(i.token))return xe({result:i,fromCache:!0});if(Rl(e))return xe(void 0);let{DB_URL:o,DB_URL_VPC:s}=this.moduleConfig,a=Ie(this.platformId)&&!!s,l=Pl(a?s:o,["auth","firebase-token"]);return this.http.post(l,{fbAuthToken:e},{headers:{Anonymous:"true"}}).pipe(Se(1),Pe(c=>c?.result?c:{result:c}),Pe(c=>({result:c.result,fromCache:!1})),bo(()=>xe(void 0)))}getToken(){let e=`token_${this.appTenantInfoService.tenantId}`,i=Ie(this.platformId)?this.request.cookies[e]:this.cookieService.get(e);return i?.trim().length?{token:i}:void 0}hasAuthCookies(){return!!this.idToken?.trim()||!!this.authToken?.trim()}clearAuthCookies(){try{this.removeCookie(`idToken_${this.appTenantInfoService.tenantId}`),this.removeCookie(`token_${this.appTenantInfoService.tenantId}`),this.removeCookie("authorization")}catch(e){console.warn("removeCookie failed:",e)}}signOutFirebaseThen(e){try{fu(Dr()).then(()=>e()).catch(i=>{console.error(i),e()})}catch(i){console.error(i),e()}}setToken(e){let i=`token_${this.appTenantInfoService.tenantId}`;return this.addOrUpdateCookie(i,e.token,e.expiresAt),e}setIdToken(e){let i=`idToken_${this.appTenantInfoService.tenantId}`;this.addOrUpdateCookie(i,e,xp(e))}addOrUpdateCookie(e,i,r){if(Ie(this.platformId)){this.ssrResponseService.setCookie(e,i,{path:"/",maxAge:this.resolveSsrCookieMaxAgeMs(r),sameSite:"lax"});return}this.cookieService.get(e)&&this.cookieService.delete(e),this.cookieService.set(e,i,{path:"/",sameSite:"Lax",expires:r})}resolveSsrCookieMaxAgeMs(e){return e===void 0?864e5:e instanceof Date?Math.max(0,e.getTime()-Date.now()):e*864e5}removeCookie(e,i="/"){if(Ie(this.platformId)){this.ssrResponseService.clearCookie(e,{path:i}),this.request.cookies[e]=void 0;return}this.cookieService.delete(e,i)}getProfileFromParentTenant(e){return this.profileDomainService.getAllProfiles().pipe(Pe(i=>i.find(r=>r.tenantId===e)))}observeTokenExpiredDate(e){if(Ie(this.platformId))return;let{exp:i}=Ip(e),o=new Date(i*1e3).getTime()-Date.now()-60*1e3;setTimeout(()=>k(this,null,function*(){let s=Dr().currentUser;s&&(yield s.getIdToken(!0))}),o)}idTokenResult(){return new Wt(e=>{let i=this.ngZone.runOutsideAngular(()=>ml(Dr(),r=>{k(this,null,function*(){try{let o=r?yield r.getIdTokenResult():null;this.ngZone.run(()=>{e.next(o)})}catch(o){this.ngZone.run(()=>{e.error(o)})}})},r=>{this.ngZone.run(()=>{e.error(r)})}
98));return()=>{i()}})}readStoredAuthReturnQueryParams(){if(Ie(this.platformId))return null;try{let e=sessionStorage.getItem(t.AUTH_RETURN_QUERY_STORAGE_KEY);return e?JSON.parse(e):null}catch(e){return null}}normalizeRedirectUrl(e){let i=`${e??""}`.trim();if(!(!i||i==="undefined"||i.startsWith("/auth")))return i}buildLoginNavigationQueryParams(){let{redirectUrl:e,client:i}=this.getAuthReturnQueryParams(),r={};return e&&(r.redirectUrl=e),i&&(r.client=i),r}getErrorMsgByFbCode(e){if(!e)return null;console.log(e);let i;switch(e){case"auth/email-already-exists":case"auth/email-already-in-use":i="The provided email is already in use by an existing user.";break;case"auth/invalid-credential":i="Invalid credential.";break;case"auth/user-not-found":i="User not found. Please check the email and try again.";break;case"auth/operation-not-allowed":i="The sign-in method is disabled for this project.";break;case"auth/too-many-requests":i="Too many requests. Please try again later.";break;case"auth/id-token-expired":i="Your login session has expired. Please log in again.";break;case"auth/id-token-revoked":i="Your login session has been revoked. Please log in again.";break;case"auth/invalid-display-name":i="Invalid display name. Please provide a valid display name.";break;case"auth/invalid-id-token":i="Invalid ID token. Please log in again.";break;case"auth/invalid-email":i="Invalid email. Please provide a valid email.";break;case"auth/invalid-password":case"auth/wrong-password":i="Invalid password. Please provide a valid password.";break;default:i="Unknown error. Try again later.";break}return i+=` ${e}`,i}static{this.\u0275fac=function(i){return new(i||t)(ye($s),ye(zr),ye(Ua),ye(wi),ye(So.ProfileDomainService),ye(Rt),ye(Yu),ye(vt),ye(Un),ye(ze),ye(Vu,8),ye(Cp))}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ks={};In(ks,{getPageContentResourceIds:()=>bw,getPageContentResourceListIds:()=>yw});var Mr=(t,n)=>t.dataset?.[n],mw=(t,n)=>{let e=new Array,i=t.dataset?.[n];if(i?.length)for(let r of i)we(r?.resourceListId)||e.push(r.resourceListId);return e},gw={"image-content-component":{imageResourceId:Mr,resourceFileId:Mr},"j3-content-video":{videoResourceId:Mr},"embed-document-content-component":{resourceId:Mr}},vw={"accordion-content-component":{accordionItems:mw},"files-list-content-component":{resourceListId:Mr},"quick-links-content-component":{resourceListId:Mr},"slideshow-content-component":{resourceListId:Mr}},_w=t=>JSON.parse(JSON.stringify(t?.contents??[],(e,i)=>{if(!(e==="instance"&&typeof i!="string"))return i})).map(e=>e.sections).map(e=>e.map(i=>i.items).flat()).flat(),U0=(t,n)=>
98{let e=[],i=_w(t).filter(r=>Gu(n).includes(r.selector.toString()));for(let r of i){let o=Nr(r.selector)?r.selector[0]:r.selector,s=n?.[o];for(let a of Object.keys(s)){let l=s[a](r,a);if(we(l))continue;let c=Nr(l)?l:[l];e.push(...c)}}return e.filter(Boolean)},bw=t=>U0(t,gw),yw=t=>U0(t,vw);var Ds={};In(Ds,{convertVariantsToTemplateDefinitions:()=>Cw,getSiteOrDefaultTemplate:()=>ww});var G0=t=>{let n=t?.trim()??"",e=n.indexOf(" (");return e>=0?n.slice(0,e).trim():n},Cw=t=>t.map(n=>{let e=[],o=n,{variants:i}=o,r=Gt(o,["variants"]);for(let s of i)e.push(U(T({},r),{name:s.name?`${r.name} (${s.name})`:r.name,styles:[s.path]}));return e}).flat(),ww=(t,n)=>{if(!t?.length)return;let e=n?.trim().toLowerCase(),i=t.find(o=>o.name?.trim().toLowerCase()===e);if(i)return i;let r=G0(n).toLowerCase();if(r){let o=t.find(s=>G0(s.name??"").toLowerCase()===r);if(o)return o}return t.find(o=>o.default)??t[0]};var W0=50,PF=(()=>{class t extends Ju{#e;#t;#i;#n;#s;#r;#a;#c;#o;#h;#l;#f;#u;#p;constructor(){super({loadingState:Bi.PENDING,constPageMode:null}),this.#e=q(Un),this.#t=q(Rt),this.#i=q(np),this.#n=q($s),this.#s=q(Wu),this.#r=q(H0),this.#a=q(ze),this.#c=q(Bu,{optional:!0}),this.selectCurrentTemplate$=this.select(e=>e.template).pipe(Ne(e=>!we(e))),this.selectPage$=this.select(e=>e.page).pipe(Ne(e=>!we(e))),this.selectContent$=this.select(e=>e.content).pipe(Ne(e=>!we(e))),this.selectConstPageMode$=this.select(e=>e.constPageMode),this.selectNotPermitted=this.select(e=>we(e.notPermitted)?!1:e.notPermitted),this.selectNotFound=this.select(e=>!!e.notFound),this.#o=this.updater((e,i)=>U(T({},e),{template:i})),this.#h=this.updater((e,i)=>T(U(T({},e),{constPageMode:null,loadingState:Bi.SUCCESS}),i)),this.#l=this.updater((e,i)=>T(U(T({},e),{loadingState:Bi.SUCCESS}),i)),this.#f=this.updater((e,i)=>U(T({},e),{content:void 0,loadingState:i,notPermitted:void 0,notFound:void 0})),this.#u=this.updater(e=>U(T({},e),{notPermitted:!0})),this.#p=this.updater(e=>U(T({},e),{notFound:!0})),this.updatePageContent=this.updater((e,i)=>U(T({},e),{content:i})),this.loadSiteTemplate=this.effect(e=>e.pipe(Ae(()=>xi([this.#t.select(Io.selectIsLoading),this.#t.select(Io.selectLoadingStatus),this.#t.select(Io.selectEntities),this.#t.select(Io.selectErrors),this.#t.select(hr.selectEntity)])),Fe(([i,r,,,o])=>{if(!i&&r===Bi.PENDING){let s=Pp({environmentMode:this.#i.templatesLoadMode,fallback:"current"}),a=o?.themeName?.trim();this.#t.dispatch(ep.loadTrigger(s==="current"&&a?{themeName:a}:{}))}}),Ne(([,i])=>i===Bi.SUCCESS||i===Bi.FAILED),Pe(([,i,r,o])=>({loadingStatus:i,errors:o,templates:Ds.convertVariantsToTemplateDefinitions(r)})),Se(1),Eo(()=>this.#t.select(hr.selectEntity)),Ae(([{loadingStatus:i,errors:r,templates:o},s])=>{if(!s)return console.error("[loadSiteTemplate] site is undefined"),As;let a=Ds.getSiteOrDefaultTemplate(o,s.themeName);if(!a){let l=i===Bi.FAILED?this.#b(r):503;return this.#y(l),console.error("[loadSiteTemplate] templateDefinition is undefined",{site:s,availableTemplates:o.map(({name:c})=>c),statusCode:l}),As}return a?.editorFonts?.length&&this.#g(a.editorFonts),this.#v(a)}),Zu({next:i=>this.#o(i),error:i=>console.error(i)}))),this.loadSiteContent=this.effect(e=>e.pipe(Ae(()=>xi([this.#t.select(To.pagesSelectors.arePagesListLoaded),this.#t.select(vi.pageContentSelectors.selectIsPageContentLoaded),this.#t.select(vi.pageContentSelectors.selectIsPageContentLoading),this.#t.select(vi.pageContentSelectors.selectCurrentPageUrl),this.#m()])),yo(W0),Ne(([i,r,o,s,a])=>{if(!i||o)return!1;let{url:l,revisionId:c}=a;switch(!0){case l.toLowerCase()===Ue.PageDefinitions.SEARCH:return this.#l({url:l,constPageMode:Ue.PageDefinitions.SEARCH}),!1;break;case l.toLowerCase()===Ue.PageDefinitions.CALENDAR:return this.#l({url:l,constPageMode:Ue.PageDefinitions.CALENDAR}),!1;case l.toLowerCase()===Ue.PageDefinitions.SITEMAP:return this.#l({url:l,constPageMode:Ue.PageDefinitions.SITEMAP}),!1}return!r&&!o||s!==l?(this.#f(Bi.LOADING),this.#t.dispatch(vi.pageContentActions.pageContentActions.LoadPageContent({url:l,revisionId:c})),!1):r}),Ne(([i,r,o])=>i&&r&&!o),Eo(()=>[this.#t.select(vi.pageContentSelectors.selectCurrentPage),this.#t.select(vi.pageContentSelectors.selectCurrentPageContent),this.#t.select(vi.pageContentSelectors.selectCurrentPageUrl),this.#t.select(vi.pageContentSelectors.selectPageContentLoadingState),this.#t.select(vi.pageContentSelectors.selectPageContentErrors)]),Ne(([,i,r,o,s,a]
98)=>s===Bi.FAILED?(a?.status===403?this.#r.isAuthorized?this.#u():this.#r.redirectToLogin(o):a?.status===404&&this.#p(),!1):!0),Pe(([,i,r,o])=>({page:i,content:r,url:o})),Ae(({page:i,content:r,url:o})=>xi([this.#t.select(Po.pageContentResourcesSelectors.selectPageContentResourcesIsLoading),this.#t.select(Po.pageContentResourcesSelectors.selectPageContentResourcesIsLoaded),this.#t.select(Po.pageContentResourcesSelectors.selectResourcePageUrl)]).pipe(yo(W0),Ne(([s,a,l])=>{if(s||!r)return!1;if(!a&&!s||l!==o){let c=ks.getPageContentResourceIds(r),p=ks.getPageContentResourceListIds(r);return this.#t.dispatch(Po.pageContentResourcesActions.LoadPageContentResources({pageUrl:o,resourceIds:c,resourceListIds:p})),!1}return a}),Pe(()=>({page:i,content:r,url:o})))),Fe(({page:i,content:r,url:o})=>{this.#h({page:i,content:r,url:o})})))}#v(e){if(!e)return console.error("[downloadTemplateFromS3] templateDefinition is undefined"),As;let{template_file:i,folder:r,styles:o,version:s}=e,a=Ll(this.#i.SITES_TEMPLATES_URL,r,i,s);return this.#n.get(a,{responseType:"text",headers:{Anonymous:"true",XTenantIgnore:"true"}}).pipe(Pe(l=>U(T({},e),{templateHtml:l,styles:(o||[]).map(c=>Ll(this.#i.SITES_TEMPLATES_URL,r,c,s))})))}#m(){return this.#e.APP_TYPE==="client"?this.#s.url.pipe(Pe(e=>({url:decodeURIComponent(e.join("/")).toLowerCase()}))):this.#s.paramMap.pipe(Pe(e=>({url:decodeURIComponent(e.get("pageUrl")??e.get("route")).toLowerCase(),revisionId:e.get("revisionId")})))}#_(e){return`https://fonts.googleapis.com/css2?${e.map(r=>{let o=r.name.replace(/ /g,"+");return r.weight?.length?`family=${o}:wght@${r.weight.join(";")}`:`family=${o}`}).join("&")}&display=swap`}#g(e){if(!Ke(this.#a)||!e.length)return;let i=this.#_(e),r="j3-google-fonts",o=document.getElementById(r);if(o){if(o.href===i)return;o.href=i;return}o=document.createElement("link"),o.id=r,o.rel="stylesheet",o.href=i,document.head.appendChild(o)}#b(e){return(Array.isArray(e)?e[0]:e)?.status===404?404:503}#y(e){let i=this.#c?.cacheEntry;i&&(i.statusCode=e,i.errorPage=!0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac})}}return t})();export{y1 as a,Ho as b,Uo as c,E1 as d,b1 as e,S1 as f,Jf as g,Zf as h,_r as i,fa as j,ma as k,ga as l,s4 as m,Wi as n,Xt as o,wt as p,io as q,vv as r,Bc as s,$e as t,Ef as u,xa as v,Ki as w,$n as x,wi as y,Hc as z,no as A,vn as B,Bn as C,$4 as D,Ca as E,H4 as F,Nt as G,P_ as H,D_ as I,j_ as J,za as K,jf as L,dA as M,fA as N,ro as O,Kc as P,Jc as Q,td as R,rd as S,ps as T,ud as U,$b as V,pd as W,Ub as X,yO as Y,jO as Z,Ds as _,o7 as $,d7 as aa,Ua as ba,P7 as ca,g5 as da,Z7 as ea,uo as fa,H0 as ga,PF as ha};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.