PageSourceSearch

https://korzh.com/assets/metro/metro.js

js korzh.com collected 2026-09-25 15:12:50 UTC 409,811 bytes, 355 lines download raw bytes

1(()=>{var Ln=Object.defineProperty;var Hr=(t,o)=>{for(var e in o)Ln(t,e,{get:o[e],enumerable:!0})};var On=t=>!isNaN(t),Ao="YYYY-MM-DDTHH:mm:ss.sss",Kr="Invalid date",Kn=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|m{1,2}|s{1,3}/g,Wn=/(%[a-z])/gi,_n="%Y-%m-%dT%H:%M:%S.%Q%t",Xn={months:"January February March April May June July August September October November December".split(" "),monthsShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdaysShort:"Sun Mon Tue Wed Thu Fri Sat".split(" "),weekdaysMin:"Su Mo Tu We Th Fr Sa".split(" "),weekStart:0},Vr={ms:"Milliseconds",s:"Seconds",m:"Minutes",h:"Hours",D:"Date",d:"Day",M:"Month",Y:"FullYear",y:"Year",t:"Time"},N={ms:"ms",s:"second",m:"minute",h:"hour",D:"day",W:"week",d:"weekDay",M:"month",Y:"year",Y2:"year2",t:"time",c:"century",q:"quarter"},Zo=(t="")=>{throw new Error("This argument is required!")},Pr=(t,o=!0)=>{try{return o?typeof t<"u":typeof t<"u"&&t!==null}catch{return!1}},Xt=t=>typeof t>"u"||t===null,q=function(t,o,e){let r=""+t;return e&&r.length>=e?r:Array(e+1-r.length).join(o)+r},qn=class{constructor(){this.formatters=new Map,this.preprocessors=[],this.postprocessors=[]}registerFormatter(t,o){this.formatters.has(t)&&console.warn(`Formatter "${t}" is already registered. Overriding.`),this.formatters.set(t,o)}unregisterFormatter(t){this.formatters.delete(t)}addPreprocessor(t){this.preprocessors.push(t)}addPostprocessor(t){this.postprocessors.push(t)}processFormat(t,o,e){let r=o||Ao;for(let a of this.preprocessors)r=a(t,r,e)||r;for(let[a,i]of this.formatters)try{r=i(t,r,e)||r}catch(l){console.error(`Error in formatter "${a}":`,l)}for(let a of this.postprocessors)r=a(t,r,e)||r;return r}getRegisteredFormatters(){return Array.from(this.formatters.keys())}clear(){this.formatters.clear(),this.preprocessors.length=0,this.postprocessors.length=0}},Wr=new qn,Zn=class{constructor(){this.alignStrategies=new Map,this.alignEndStrategies=new Map,this.isInitialized=!1}registerAlignStrategy(t,o){this.alignStrategies.has(t)&&console.warn(`Align strategy "${t}" is already registered. Overriding.`),this.alignStrategies.set(t,o)}registerAlignEndStrategy(t,o){this.alignEndStrategies.has(t)&&console.warn(`AlignEnd strategy "${t}" is already registered. Overriding.`),this.alignEndStrategies.set(t,o)}executeAlign(t,o){return this.alignStrategies.has(o)?this.alignStrategies.get(o)(t):this.defaultAlign(t,o)}executeAlignEnd(t,o){return this.alignEndStrategies.has(o)?this.alignEndStrategies.get(o)(t):this.defaultAlignEnd(t,o)}defaultAlign(t,o){let e=t.clone?t.clone():t,r,a;switch(o){case N.ms:case"ms":r=e;break;case N.s:case"s":case"second":r=e.ms(0);break;case N.m:case"m":case"minute":r=this.executeAlign(e,"s").second(0);break;case N.h:case"h":case"hour":r=this.executeAlign(e,"m").minute(0);break;case N.D:case"D":case"day":r=this.executeAlign(e,"h").hour(0);break;case N.M:case"M":case"month":r=this.executeAlign(e,"D").day(1);break;case N.Y:case"Y":case"year":r=this.executeAlign(e,"M").month(0);break;case N.W:case"W":case"week":a=e.weekDay(),r=this.executeAlign(e,"D").addDay(-a);break;default:r=e}return r}defaultAlignEnd(t,o){let e=t.clone?t.clone():t,r,a;switch(o){case N.ms:case"ms":r=e;break;case N.s:case"s":case"second":r=e.ms(999);break;case N.m:case"m":case"minute":r=this.executeAlignEnd(e,"s").second(59);break;case N.h:case"h":case"hour":r=this.executeAlignEnd(e,"m").minute(59);break;case N.D:case"D":case"day":r=this.executeAlignEnd(e,"h").hour(23);break;case N.M:case"M":case"month":r=this.executeAlignEnd(e,"D").day(1).add(1,"M").add(-1,"D");break;case N.Y:case"Y":case"year":r=this.executeAlignEnd(e,"D").month(11).day(31);break;case N.W:case"W":case"week":a=e.weekDay(),r=this.executeAlignEnd(e,"D").addDay(6-a);break;default:r=e}return r}initializeBuiltInStrategies(){if(this.isInitialized)return;let t=[[N.ms,"ms"],[N.s,"s","second"],[N.m,"m","minute"],[N.h,"h","hour"],[N.D,"D","day"],[N.M,"M","month"],[N.Y,"Y","year"],[N.W,"W","week"]];for(let o of t){let e=o[0];for(let r of o)this.alignStrategies.set(r,a=>this.defaultAlign(a,e)),this.alignEndStrategies.set(r,a=>this.defaultAlignEnd(a,e))}this.isInitialized=!0}getRegisteredAlignStrategies(){return Array.from(this.alignStrategies.keys())}getRegisteredAlignEndStrategies(){return Array.from(this.alignEndStrategies.keys())}unregisterAlignStrategy(t){this.alignStrategies.delete(t)}unregisterAlignEndStrategy(t){this.alignEndStrategies.delete(t)}clear(){this.alignStrategies.clear(),this.alignEndStrategies.clear(),this.isInitialized=!1}},zo=new Zn,$n={months:"\u0421\u0456\u0447\u0435\u043D\u044C_\u041B\u044E\u0442\u0438\u0439_\u0411\u0435\u0440\u0435\u0437\u0435\u043D\u044C_\u041A\u0432\u0456\u0442\u0435\u043D\u044C_\u0422\u0440\u0430\u0432\u0435\u043D\u044C_\u0427\u0435\u0440\u0432\u0435\u043D\u044C_\u041B\u0438\u043F\u0435\u043D\u044C_\u0421\u0435\u0440\u043F\u0435\u043D\u044C_\u0412\u0435\u0440\u0435\u0441\u0435\u043D\u044C_\u0416\u043E\u0432\u0442\u0435\u043D\u044C_\u041B\u0438\u0441\u0442\u043E\u043F\u0430\u0434_\u0413\u0440\u0443\u0434\u0435\u043D\u044C".split("_"),monthsParental:"\u0421\u0456\u0447\u043D\u044F_\u041B\u044E\u0442\u043E\u0433\u043E_\u0411\u0435\u0440\u0435\u0437\u0435\u043D\u044F_\u041A\u0432\u0456\u0442\u043D\u044F_\u0422\u0440\u0430\u0432\u043D\u044F_\u0427\u0435\u0440\u0432\u043D\u044F_\u041B\u0438\u043F\u043D\u044F_\u0421\u0435\u0440\u043F\u043D\u044F_\u0412\u0435\u0440\u0435\u0441\u043D\u044F_\u0416\u043E\u0432\u0442\u043D\u044F_\u041B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430_\u0413\u0440\u0443\u0434\u043D\u044F".split("_"),monthsShort:"\u0421\u0456\u0447_\u041B\u044E\u0442_\u0411\u0435\u0440_\u041A\u0432\u0456_\u0422\u0440\u0430_\u0427\u0435\u0440_\u041B\u0438\u043F_\u0421\u0435\u0440_\u0412\u0435\u0440_\u0416\u043E\u0432_\u041B\u0438\u0441_\u0413\u0440\u0443".split("_"),weekdays:"\u041D\u0435\u0434\u0456\u043B\u044F_\u041F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0412\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0421\u0435\u0440\u0435\u0434\u0430_\u0427\u0435\u0442\u0432\u0435\u0440_\u041F'\u044F\u0442\u043D\u0438\u0446\u044F_\u0421\u0443\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u041D\u0435\u0434_\u041F\u043E\u043D_\u0412\u0456\u0432_\u0421\u0435\u0440_\u0427\u0435\u0442_\u041F\u0442\u043D_\u0421\u0443\u0431".split("_"),weekdaysMin:"\u041D\u0434_\u041F\u043D_\u0412\u0442_\u0421\u0440_\u0427\u0442_\u041F\u0442_\u0421\u0431".split("_"),weekStart:1},tl={months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_M\xE4r_Apr_Mai_Jun_Jul_Aug_Sep_Okt_Nov_Dez".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"Son_Mon_Die_Mit_Don_Fre_Sam".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekStart:1},ol=function(t,o){let e=t||Ao,r=y.getLocale(o||this.locale),a=this.year(),i=this.year2(),l=this.month(),s=this.day(),c=this.weekDay(),A=this.hour(),p=this.minute(),g=this.second(),h=this.ms(),d={YY:i,YYYY:a,M:l+1,MM:q(l+1,0,2),MMM:r.monthsShort[l],MMMM:r.months[l],D:s,DD:q(s,0,2),d:c,dd:r.weekdaysMin[c],ddd:r.weekdaysShort[c],dddd:r.weekdays[c],H:A,HH:q(A,0,2),m:p,mm:q(p,0,2),s:g,ss:q(g,0,2),sss:q(h,0,3)};return e.replace(Kn,(u,f)=>f||d[u])},y=class pt{constructor(){let o=[].slice.call(arguments);if(this.value=new(Function.prototype.bind.apply(Date,[this].concat(o))),this.locale="en",this.weekStart=pt.locales.en.weekStart,this.utcMode=!1,this.mutable=!0,!On(this.value.getTime()))throw new Error(Kr)}static locales={en:Xn,ua:$n,de:tl};static isDatetime(o){return o instanceof pt}static now(o=!1){return j()[o?"val":"time"]()}static parse(o=Zo()){return j(Date.parse(o))}static setLocale(o=Zo(),e=Zo()){pt.locales[o]=e}static getLocale(o="en"){return Pr(pt.locales[o],!1)?pt.locales[o]:pt.locales.en}static align(o,e){let r=j(o);return zo.executeAlign(r,e)}static alignEnd(o,e){let r=j(o);return zo.executeAlignEnd(r,e)}immutable(o){return this.mutable=!(Xt(o)||o),this}utc(){return this.utcMode||(this.utcMode=!0),this}local(){return this.utcMode&&(this.utcMode=!1),this}useLocale(o,e){return this.locale=e||Pr(pt.locales[o],!1)?o:"en",this.weekStart=pt.getLocale(this.locale).weekStart,this}clone(){let o=j(this.value);return o.locale=this.locale,o.weekStart=this.weekStart,o.mutable=this.mutable,o.utcMode=this.utcMode,o}align(o){return this.mutable?(this.value=pt.align(this,o).val(),this):this.clone().immutable(!1).align(o).immutable(!this.mutable)}alignEnd(o){return this.mutable?(this.value=pt.alignEnd(this,o).val(),this):this.clone().immutable(!1).alignEnd(o).immutable(!this.mutable)}val(o){return typeof o>"u"||o===null?this.value:this.mutable?(this.value=typeof o=="str
1ing"?Date.parse(o):typeof o=="number"?new Date(o):o,this):j(o)}year2(){return+(""+this.year()).slice(-2)}_set(o,e){let r="set"+(this.utcMode&&o!=="t"?"UTC":"")+Vr[o];if(this.mutable)return this.value[r](e),this;let a=this.clone();return a.value[r](e),a}_get(o){let e="get"+(this.utcMode&&o!=="t"?"UTC":"")+Vr[o];return this.value[e]()}_work(o,e){return!arguments.length||typeof e>"u"||e===null?this._get(o):this._set(o,e)}ms(o){return this._work("ms",o)}second(o){return this._work("s",o)}minute(o){return this._work("m",o)}hour(o){return this._work("h",o)}day(o){return this._work("D",o)}month(o){return this._work("M",o)}year(o){return this._work("Y",o)}time(o){return this._work("t",o)}weekDay(o){if(!arguments.length||Xt(o))return this.utcMode?this.value.getUTCDay():this.value.getDay();let e=this.weekDay(),r=o-e;return this.add(r,N.D)}get(o){return typeof this[o]!="function"?this:this[o]()}set(o,e){return typeof this[o]!="function"?this:this[o](e)}add(o,e){switch(e){case N.h:case"h":case"hour":return this.time(this.time()+o*60*60*1e3);case N.m:case"m":case"minute":return this.time(this.time()+o*60*1e3);case N.s:case"s":case"second":return this.time(this.time()+o*1e3);case N.ms:case"ms":return this.time(this.time()+o);case N.D:case"D":case"day":return this.day(this.day()+o);case N.W:case"W":case"week":return this.day(this.day()+o*7);case N.M:case"M":case"month":return this.month(this.month()+o);case N.Y:case"Y":case"year":return this.year(this.year()+o)}return this}addHour(o){return this.add(o,N.h)}addMinute(o){return this.add(o,N.m)}addSecond(o){return this.add(o,N.s)}addMs(o){return this.add(o,N.ms)}addDay(o){return this.add(o,N.D)}addWeek(o){return this.add(o,N.W)}addMonth(o){return this.add(o,N.M)}addYear(o){return this.add(o,N.Y)}format(o,e){let r=Wr.processFormat(this,o,e);return ol.call(this,r,e)}valueOf(){return this.value.valueOf()}toString(){return this.value.toString()}};zo.initializeBuiltInStrategies();y.alignStrategies=zo;y.formatters=Wr;var j=(...t)=>t&&t[0]instanceof y?t[0]:new y(...t),th=y.prototype.format,rl={buddhist(){return this.year()+543}};y.formatters.registerFormatter("buddhist",(t,o,e)=>{let r={BB:(t.buddhist()+"").slice(-2),BBBB:t.buddhist()};return o.replace(/(\[[^\]]+])|B{4}|B{2}/g,(a,i)=>i||r[a])});Object.assign(y.prototype,rl);var el=(t,o)=>{let e=t instanceof y?t.clone().align("month"):j(t),r=o===0||o?o:t.weekStart,a=r?e.isoWeekDay():e.weekDay(),i=y.getLocale(e.locale),l=j(),s,c=(p,g)=>{if(g===0)return p;let h=p[0];return p.slice(1).concat([h])},A={month:i.months[e.month()],days:[],weekstart:o?1:0,weekdays:c(i.weekdaysMin,r),today:l.format("YYYY-MM-DD"),weekends:[],week:[]};for(e.addDay(r?-a+1:-a),s=0;s<42;s++)A.days.push(e.format("YYYY-MM-DD")),e.add(1,"day");for(A.weekends=A.days.filter(function(p,g){return r===0?[0,6,7,13,14,20,21,27,28,34,35,41].includes(g):[5,6,12,13,19,20,26,27,33,34,40,41].includes(g)}),e=l.clone(),a=r?e.isoWeekDay():e.weekDay(),e.addDay(r?-a+1:-a),s=0;s<7;s++)A.week.push(e.format("YYYY-MM-DD")),e.add(1,"day");return A};Object.assign(y.prototype,{calendar(t){return el(this,t)}});var al={century(){return Math.ceil(this.year()/100)}};y.formatters.registerFormatter("century",(t,o,e)=>{let r={C:t.century()};return o.replace(/(\[[^\]]+])|C/g,(a,i)=>i||r[a])});Object.assign(y.prototype,al);Object.assign(y.prototype,{same(t){return this.time()===j(t).time()},compare(t,o,e="="){let r=j(t),a=j(this.value),i,l;switch(e=e||"=",["<",">",">=","<=","=","!="].includes(e)===!1&&(e="="),o=(o||"ms").toLowerCase(),i=a.align(o).time(),l=r.align(o).time(),e){case"<":return i<l;case">":return i>l;case"<=":return i<=l;case">=":return i>=l;case"=":return i===l;case"!=":return i!==l}},between(t,o){return this.younger(t)&&this.older(o)},older(t,o){return this.compare(t,o,"<")},olderOrEqual(t,o){return this.compare(t,o,"<=")},younger(t,o){return this.compare(t,o,">")},youngerOrEqual(t,o){return this.compare(t,o,">=")},equal(t,o){return this.compare(t,o,"=")},notEqual(t,o){return this.compare(t,o,"!=")},diff(t){let o=j(t),e=Math.abs(this.time()-o.time()),r=Math.abs(this.month()-o.month()+12*(this.year()-o.year()));return{ms:e,second:Math.ceil(e/1e3),minute:Math.ceil(e/(1e3*60)),hour:Math.ceil(e/(1e3*60*60)),day:Math.ceil(e/(1e3*60*60*24)),month:r,year:Math.floor(r/12)}},distance(t,o){return this.diff(t)[o]}});Object.assign(y.prototype,{isLeapYear(){let t=this.year();return t%4===0&&t%100!==0||t%400===0}});Object.assign(y.prototype,{dayOfYear(){let t=[0,31,59,90,120,151,181,212,243,273,304,334],o=this.month(),e=this.day();return t[o]+e+(o>1&&this.isLeapYear()?1:0)}});Object.assign(y.prototype,{daysInMonth(){return j(this.value).add(1,"month").day(1).add(-1,"day").day()},daysInYear(){return this.isLeapYear()?366:365},daysInYearMap(){let t=[],o=j(this.value);o.month(0).day(1);for(let e=0;e<12;e++)o.add(1,"month").add(-1,"day"),t.push(o.day()),o.day(1).add(1,"month");return t},daysInYearObj(t,o){let e=this.daysInYearMap(),r={},a=y.getLocale(t||this.locale);return e.forEach((i,l)=>r[a[o?"monthsShort":"months"][l]]=i),r}});Object.assign(y.prototype,{decade(){return Math.floor(this.year()/10)*10},decadeStart(){let t=this.decade();return(this.mutable?this:this.clone()).year(t).month(0).day(1)},decadeEnd(){let t=this.decade()+9;return(this.mutable?this:this.clone()).year(t).month(11).day(31)},decadeOfMonth(){let t=this.clone().add(1,"month").day(1).add(-1,"day").day()/3,o=this.day();return o<=t?1:o<=t*2?2:3}});Object.assign(y,{from(t,o,e){let r,a,i,l,s,c,A,p,g,h,d,u,f,b,I,D,C,Y,x,v=function(T,J){return T.map(function(O){return O.toLowerCase()}).indexOf(J.toLowerCase())},E=function(T){let J=-1,O=y.getLocale(e||"en");return Xt(T)?-1:(J=v(O.months,T),J===-1&&typeof O.monthsParental<"u"&&(J=v(O.monthsParental,T)),J===-1&&(T=T.substr(0,3),J=v(O.monthsShort,T)),J===-1?-1:J+1)},w=function(T){let J={month:["M","mm","%m"],day:["D","dd","%d"],year:["YY","YYYY","yy","yyyy","%y"],hour:["h","hh","%h"],minute:["m","mi","i","ii","%i"],second:["s","ss","%s"],ms:["sss"]},O=-1,it,P;for(let mt=0;mt<J[T].length;mt++)if(it=J[T][mt],P=i.indexOf(it),P!==-1){O=P;break}return O};if(!o)return j();if(r=t.replace(/[\/,.:\s]/g,"-"),a=o.toLowerCase().replace(/[^a-zA-Z0-9%]/g,"-"),i=a.split("-"),l=r.split("-"),r.replace(/-/g,"").trim()==="")throw new Error(Kr);return s=w("month"),c=w("day"),A=w("year"),p=w("hour"),g=w("minute"),h=w("second"),d=w("ms"),s>-1&&l[s]?isNaN(parseInt(l[s]))?(l[s]=E(l[s]),l[s]===-1&&(s=-1)):(x=parseInt(l[s]),(x<1||x>12)&&(s=-1)):s=-1,u=A>-1&&l[A]?l[A]:0,f=s>-1&&l[s]?l[s]:1,b=c>-1&&l[c]?l[c]:1,I=p>-1&&l[p]?l[p]:0,D=g>-1&&l[g]?l[g]:0,C=h>-1&&l[h]?l[h]:0,Y=d>-1&&l[d]?l[d]:0,u&&u<100?u=u<50?2e3+parseInt(u):1900+parseInt(u):u===0&&(u=new Date().getFullYear()),j(u,f-1,b,I,D,C,Y)}});var il={ampm(t){let o=this.hour()<12?"AM":"PM";return t?o.toLowerCase():o},hour12:function(t,o){let e=t;return arguments.length===0?this.hour()%12||12:(o=o||"am",o.toLowerCase()==="pm"&&(e+=12),this.hour(e))}};y.formatters.registerFormatter("hour12",(t,o,e)=>{let r=t.hour12(),a={a:"["+t.ampm(!0)+"]",A:"["+t.ampm(!1)+"]",h:r,hh:q(r,0,2)};return o.replace(/(\[[^\]]+])|a|A|h{1,2}/g,(i,l)=>l||a[i])});Object.assign(y.prototype,il);var nl={isoWeekDay(t){let o=(this.weekDay()+6)%7+1;return!arguments.length||Xt(t)?o:this.addDay(t-o)}};y.alignStrategies.registerAlignStrategy("isoWeek",t=>{let o=t.clone(),r=o.isoWeekDay()-1;return y.alignStrategies.executeAlign(o,"day").addDay(-r)});y.alignStrategies.registerAlignEndStrategy("isoWeek",t=>{let o=t.clone(),r=7-o.isoWeekDay();return y.alignStrategies.executeAlignEnd(o,"day").addDay(r)});y.formatters.registerFormatter("iso",(t,o,e)=>{let r={I:t.isoWeekDay()};return o.replace(/(\[[^\]]+])|I{1,2}/g,(a,i)=>i||r[a])});Object.assign(y.prototype,nl);Object.assign(y,{max(){return[].slice.call(arguments).map(o=>j(o)).sort((o,e)=>e.time()-o.time())[0]}});Object.assign(y.prototype,{max(){return y.max.apply(this,[this].concat([].slice.call(arguments)))}});Object.assign(y,{min(){return[].slice.call(arguments).map(o=>j(o)).sort((o,e)=>o.time()-e.time())[0]}});Object.assign(y.prototype,{min(){return y.min.apply(this,[this].concat([].slice.call(arguments)))}});var ll=y.prototype.add,sl={quarter(){let t=this.month();return t<=2?1:t<=5?2:t<=8?3:4},add(t,o){return o==="quarter"?this.month(this.month()+t*3):ll.call(this,t,o)},addQuarter(t){return this.add(t,"quarter")}};y.alignStrategies.registerAlignStrategy("quarter",t=>{let o=t.clone(),r=(o.quarter()-1)*3;return y.alignStrategies.executeAlign(o,"day").month(r).day(1)});y.alignStrategies.registerAlignEndStrategy("quarter",t=>{let o=t.clone(),r=o.quarter()*3-1,a=o.month(r).day(1),i=a.clone().add(1,"month").day(1).add(-1,"day").day();return y.alignStrategies.executeAlignEnd(a.day(i),"day")});Object.assign(y.prototype,sl);Object.assign(y,{sort(t,o){let e,r,a={};
1switch(typeof o=="string"||typeof o!="object"||Xt(o)?(a.format=Ao,a.dir=o&&o.toUpperCase()==="DESC"?"DESC":"ASC",a.returnAs="datetime"):(a.format=o.format||Ao,a.dir=(o.dir||"ASC").toUpperCase(),a.returnAs=o.format?"string":o.returnAs||"datetime"),r=t.map(i=>j(i)).sort((i,l)=>i.valueOf()-l.valueOf()),a.dir==="DESC"&&r.reverse(),a.returnAs){case"string":e=r.map(i=>i.format(a.format));break;case"date":e=r.map(i=>i.val());break;default:e=r}return e}});var cl={utcOffset(){return this.value.getTimezoneOffset()},timezone(){return this.toTimeString().replace(/.+GMT([+-])(\d{2})(\d{2}).+/,"$1$2:$3")},timezoneName(){return this.toTimeString().replace(/.+\((.+?)\)$/,"$1")}};y.formatters.registerFormatter("timezone",(t,o,e)=>{let r={Z:t.utcMode?"Z":t.timezone(),ZZ:t.timezone().replace(":",""),ZZZ:"[GMT]"+t.timezone(),z:t.timezoneName()};return o.replace(/(\[[^\]]+])|Z{1,3}|z/g,(a,i)=>i||r[a])});Object.assign(y.prototype,cl);var Lr=y.prototype.format,gt=new Map,Or=864e5,_r=6e4,Al=1e3,ml=()=>{let t=Date.now();for(let[o,e]of gt.entries())t-e.timestamp>_r&&gt.delete(o)};Object.assign(y.prototype,{weekNumber(t=0){let o=`${this.time()}_${t}`,e=gt.get(o);if(e&&Date.now()-e.timestamp<_r)return e.value;let r=this.year(),a=j(r,0,1),i=a.weekDay(),l=Math.floor((this.time()-a.time()-(this.utcOffset()-a.utcOffset())*6e4)/Or)+1,s=(i-t+7)%7,c;return s<4?(c=Math.floor((l+s-1)/7)+1,c>52&&(c=(j(r+1,0,1).weekDay()-t+7)%7<4?1:53)):(c=Math.floor((l+s-1)/7),c===0&&(t===1&&l<=7-s?c=1:c=j(r-1,11,31).weekNumber(t))),gt.size>Al&&ml(),gt.set(o,{value:c,timestamp:Date.now()}),c},isoWeekNumber(){let t=`iso_${this.time()}`;if(gt.has(t))return gt.get(t);let o=new Date(this.time());o.setHours(0,0,0,0),o.setDate(o.getDate()+3-(o.getDay()+6)%7);let e=new Date(o.getFullYear(),0,4);e.setDate(e.getDate()+3-(e.getDay()+6)%7);let r=1+Math.round(((o.getTime()-e.getTime())/Or-3+(e.getDay()+6)%7)/7);return gt.set(t,r),r},weeksInYear(t=0){let o=`weeks_${this.year()}_${t}`;if(gt.has(o))return gt.get(o);let r=j(this.year(),11,28).weekNumber(t);return r===1&&(r=52),gt.set(o,r),r},format:function(t,o){if(t=t||Ao,!/W{1,4}/.test(t))return Lr.bind(this)(t,o);let r=this.weekNumber(),a=this.isoWeekNumber(),i={W:r,WW:q(r,0,2),WWW:a,WWWW:q(a,0,2)},l=t.replace(/(\[[^\]]+])|W{1,4}/g,(s,c)=>c||i[s]);return Lr.bind(this)(l,o)}});Object.assign(y.prototype,{strftime(t,o){let e=t||_n,r=y.getLocale(o||this.locale),a=this.year(),i=this.year2(),l=this.month(),s=this.day(),c=this.weekDay(),A=this.hour(),p=this.hour12(),g=this.minute(),h=this.second(),d=this.ms(),u=this.time(),f=q(s,0,2),b=q(l+1,0,2),I=q(A,0,2),D=q(p,0,2),C=q(g,0,2),Y=q(h,0,2),x=q(d,0,3),v=this,E=function(){return j(v.value).day(v.day()-(v.weekDay()+6)%7+3)},w={"%a":r.weekdaysShort[c],"%A":r.weekdays[c],"%b":r.monthsShort[l],"%h":r.monthsShort[l],"%B":r.months[l],"%c":this.toString().substring(0,this.toString().indexOf(" (")),"%C":this.century(),"%d":f,"%D":[f,b,a].join("/"),"%e":s,"%F":[a,b,f].join("-"),"%G":E().year(),"%g":(""+E().year()).slice(2),"%H":I,"%I":D,"%j":q(this.dayOfYear(),0,3),"%k":I,"%l":D,"%m":b,"%n":l+1,"%M":C,"%p":this.ampm(),"%P":this.ampm(!0),"%s":Math.round(u/1e3),"%S":Y,"%u":this.isoWeekDay(),"%V":this.isoWeekNumber(),"%w":c,"%x":this.toLocaleDateString(),"%X":this.toLocaleTimeString(),"%y":i,"%Y":a,"%z":this.timezone().replace(":",""),"%Z":this.timezoneName(),"%r":[D,C,Y].join(":")+" "+this.ampm(),"%R":[I,C].join(":"),"%T":[I,C,Y].join(":"),"%Q":x,"%q":d,"%t":this.timezone()};return e.replace(Wn,T=>w[T]===0||w[T]?w[T]:T)}});Object.assign(y,{isToday(t){let o=j(t).align("day"),e=j().align("day");return o.time()===e.time()}});Object.assign(y.prototype,{isToday(){return y.isToday(this)},today(){let t=j();return this.mutable?this.val(t.val()):t}});Object.assign(y,{isTomorrow(t){let o=j(t).align("day"),e=j().align("day").add(1,"day");return o.time()===e.time()}});Object.assign(y.prototype,{isTomorrow(){return y.isTomorrow(this)},tomorrow(){return this.mutable?this.add(1,"day"):this.clone().immutable(!1).add(1,"day").immutable(!this.mutable)}});Object.assign(y.prototype,{toDateString(){return this.value.toDateString()},toISOString(){return this.value.toISOString()},toJSON(){return this.value.toJSON()},toGMTString(){return this.value.toGMTString()},toLocaleDateString(){return this.value.toLocaleDateString()}
1,toLocaleString(){return this.value.toLocaleString()},toLocaleTimeString(){return this.value.toLocaleTimeString()},toTimeString(){return this.value.toTimeString()},toUTCString(){return this.value.toUTCString()},toDate(){return new Date(this.value)}});Object.assign(y,{timestamp(){return new Date().getTime()/1e3}});Object.assign(y.prototype,{unix(t){let o;return!arguments.length||Xt(t)?Math.floor(this.valueOf()/1e3):(o=t*1e3,this.mutable?this.time(o):j(this.value).time(o))},timestamp(){return this.unix()}});Object.assign(y,{isYesterday(t){let o=j(t).align("day"),e=j().align("day").add(-1,"day");return o.time()===e.time()}});Object.assign(y.prototype,{isYesterday(){return y.isYesterday(this)},yesterday(){return this.mutable?this.add(-1,"day"):this.clone().immutable(!1).add(-1,"day").immutable(!this.mutable)}});var Xr=t=>{let o,e=Math.floor(t/1e3),r=Math.floor(e/60),a=Math.floor(r/60),i=Math.floor(a/24),l=Math.floor(i/30.44),s=Math.floor(l/12);return s>=1&&(o=`${s} year`),l>=1&&s<1&&(o=`${l} mon`),i>=1&&i<=30&&(o=`${i} days`),a&&a<24&&(o=`${a} hour`),r&&r>=40&&r<60&&(o="less a hour"),r&&r<40&&(o=`${r} min`),e&&e>=30&&e<60&&(o=`${e} sec`),e<30&&(o="few sec"),o};Object.assign(y,{timeLapse(t){let o=j(t),e=j(),r=e-o;return Xr(r)}});Object.assign(y.prototype,{timeLapse(){let t=j()-+this;return Xr(t)}});var pl={parseTime(t){if(!isNaN(t))return Math.abs(+t);let o=/([0-9]+d)|([0-9]{1,2}h)|([0-9]{1,2}m)|([0-9]{1,2}s)/gm,e=t.match(o);return e?e.reduce((r,a)=>{let i;return a.includes("d")?i=1e3*60*60*24*parseInt(a):a.includes("h")?i=1e3*60*60*parseInt(a):a.includes("m")?i=1e3*60*parseInt(a):a.includes("s")&&(i=1e3*parseInt(a)),r+i},0):0}};Object.assign(y,pl);Object.assign(y.prototype,{moon(){let t=["new-moon","waxing-crescent","first-quarter","waxing-gibbous","full-moon","waning-gibbous","last-quarter","waning-crescent"];return(()=>{let e=this.year(),r=this.month(),a=this.day(),i,l,s,c=i=l=s=0;return r<3&&(e--,r+=12),++r,c=365.25*e,i=30.6*r,l=c+i+a-694039.09,l/=29.5305882,s=parseInt(l),l-=s,s=Math.round(l*8),s>=8&&(s=0),{phase:s,name:t[s]}})()}});var gl="3.3.0",hl="01.09.2025, 15:52:51",dl=()=>{console.info(`%c Datetime %c v${gl} %c ${hl} `,"color: #ffffff; font-weight: bold; background: #003152","color: white; background: darkgreen","color: white; background: #0080fe;")};y.info=dl;y.correctDate=t=>j(t).addDay(1).align("day").addMinute(new Date().getTimezoneOffset());globalThis.Datetime=y;globalThis.datetime=j;(()=>{"use strict";let t=["january","february","march","april","may","june","july","august","september","october","november","december"],o=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],e=y.getLocale;y.getLocale=function(r="en"){let a=r;if(!Metro)return e.call(this,r);Metro.locales[a]||(a="en");let i=Metro.locales[a],l=t.map((g,h)=>i[g]),s=t.map((g,h)=>i[`${g}_short`]),c=o.map((g,h)=>i[g]),A=o.map((g,h)=>i[`${g}_short`]),p=o.map((g,h)=>i[`${g}_short_2`]);return{months:l,monthsShort:s,weekdays:c,weekdaysShort:A,weekdaysMin:p,weekStart:i.weekStart}}})();var fl=Object.defineProperty,ul=(t,o)=>{for(var e in o)fl(t,e,{get:o[e],enumerable:!0})},Zr={};ul(Zr,{append:()=>Pe,camelCase:()=>te,capitalize:()=>Jo,chars:()=>Zt,count:()=>ce,countChars:()=>tr,countSubstr:()=>Ae,countUniqueChars:()=>or,countUniqueWords:()=>Dl,countWords:()=>Fl,dashedName:()=>oe,decapitalize:()=>re,endsWith:()=>ye,escapeHtml:()=>me,first:()=>fe,includes:()=>je,insert:()=>ke,isAlpha:()=>Ie,isAlphaDigit:()=>Me,isBlank:()=>Fe,isDigit:()=>Ce,isEmpty:()=>mr,isLower:()=>De,isString:()=>He,isUpper:()=>Ye,kebab:()=>ee,last:()=>ue,lower:()=>So,lpad:()=>Ee,ltrim:()=>cr,matches:()=>Ve,nvl:()=>We,pad:()=>Qe,prepend:()=>Le,prune:()=>Be,repeat:()=>go,reverse:()=>ae,rpad:()=>ve,rtrim:()=>Ar,shorten:()=>Ke,shuffle:()=>ie,slice:()=>xe,snake:()=>ne,split:()=>Te,sprintf:()=>mo,startsWith:()=>Ue,strip:()=>Je,stripBoom:()=>Oe,stripTags:()=>ze,stripTagsAll:()=>Ne,substring:()=>$t,swap:()=>le,title:()=>se,trim:()=>ho,truncate:()=>sr,truncateWithAlign:()=>be,unescapeHtml:()=>ge,unique:()=>he,uniqueWords:()=>de,upper:()=>lr,vsprintf:()=>Re,words:()=>Bt,wrap:()=>Ge,wrapTag:()=>Se});var er="\\d",To="\\s\\uFEFF\\xA0",yt="\\uD800-\\uDBFF",It="\\uDC00-\\uDFFF",Nt="\\u0300-\\u036F\\u1AB0-\\u1AFF\\u1DC0-\\u1DFF\\u20D0-\\u20FF\\uFE20-\\uFE2F",$r="\\0-\\u02FF\\u0370-\\u1AAF\\u1B00-\\u1DBF\\u1E00-\\u20CF\\u2100-\\uD7FF\\uE000-\\uFE1F\\uFE30-\\uFFFF",bl="\\u2000-\\u206F",xl="\\x00-\\x2F\\x3A-\\x40\\x5B-\\x60\\x7b-\\xBF\\xD7\\xF7",Bl="\\u2700-\\u27BF",Ro="a-z\\xB5\\xDF-\\xF6\\xF8-\\xFF\\u0101\\u0103\\u0105\\u0107\\u0109\\u010B\\u010D\\u010F\\u0111\\u0113\\u0115\\u0117\\u0119\\u011B\\u011D\\u011F\\u0121\\u0123\\u0125\\u0127\\u0129\\u012B\\u012D\\u012F\\u0131\\u0133\\u0135\\u0137\\u0138\\u013A\\u013C\\u013E\\u0140\\u0142\\u0144\\u0146\\u0148\\u0149\\u014B\\u014D\\u014F\\u0151\\u0153\\u0155\\u0157\\u0159\\u015B\\u015D\\u015F\\u0161\\u0163\\u0165\\u0167\\u0169\\u016B\\u016D\\u016F\\u0171\\u0173\\u0175\\u0177\\u017A\\u017C\\u017E-\\u0180\\u0183\\u0185\\u0188\\u018C\\u018D\\u0192\\u0195\\u0199-\\u019B\\u019E\\u01A1\\u01A3\\u01A5\\u01A8\\u01AA\\u01AB\\u01AD\\u01B0\\u01B4\\u01B6\\u01B9\\u01BA\\u01BD-\\u01BF\\u01C6\\u01C9\\u01CC\\u01CE\\u01D0\\u01D2\\u01D4\\u01D6\\u01D8\\u01DA\\u01DC\\u01DD\\u01DF\\u01E1\\u01E3\\u01E5\\u01E7\\u01E9\\u01EB\\u01ED\\u01EF\\u01F0\\u01F3\\u01F5\\u01F9\\u01FB\\u01FD\\u01FF\\u0201\\u02
103\\u0205\\u0207\\u0209\\u020B\\u020D\\u020F\\u0211\\u0213\\u0215\\u0217\\u0219\\u021B\\u021D\\u021F\\u0221\\u0223\\u0225\\u0227\\u0229\\u022B\\u022D\\u022F\\u0231\\u0233-\\u0239\\u023C\\u023F\\u0240\\u0242\\u0247\\u0249\\u024B\\u024D\\u024F",jo="\\x41-\\x5a\\xc0-\\xd6\\xd8-\\xde\\u0100\\u0102\\u0104\\u0106\\u0108\\u010a\\u010c\\u010e\\u0110\\u0112\\u0114\\u0116\\u0118\\u011a\\u011c\\u011e\\u0120\\u0122\\u0124\\u0126\\u0128\\u012a\\u012c\\u012e\\u0130\\u0132\\u0134\\u0136\\u0139\\u013b\\u013d\\u013f\\u0141\\u0143\\u0145\\u0147\\u014a\\u014c\\u014e\\u0150\\u0152\\u0154\\u0156\\u0158\\u015a\\u015c\\u015e\\u0160\\u0162\\u0164\\u0166\\u0168\\u016a\\u016c\\u016e\\u0170\\u0172\\u0174\\u0176\\u0178\\u0179\\u017b\\u017d\\u0181\\u0182\\u0184\\u0186\\u0187\\u0189-\\u018b\\u018e-\\u0191\\u0193\\u0194\\u0196-\\u0198\\u019c\\u019d\\u019f\\u01a0\\u01a2\\u01a4\\u01a6\\u01a7\\u01a9\\u01ac\\u01ae\\u01af\\u01b1-\\u01b3\\u01b5\\u01b7\\u01b8\\u01bc\\u01c4\\u01c5\\u01c7\\u01c8\\u01ca\\u01cb\\u01cd\\u01cf\\u01d1\\u01d3\\u01d5\\u01d7\\u01d9\\u01db\\u01de\\u01e0\\u01e2\\u01e4\\u01e6\\u01e8\\u01ea\\u01ec\\u01ee\\u01f1\\u01f2\\u01f4\\u01f6-\\u01f8\\u01fa\\u01fc\\u01fe\\u0200\\u0202\\u0204\\u0206\\u0208\\u020a\\u020c\\u020e\\u0210\\u0212\\u0214\\u0216\\u0218\\u021a\\u021c\\u021e\\u0220\\u0222\\u0224\\u0226\\u0228\\u022a\\u022c\\u022e\\u0230\\u0232\\u023a\\u023b\\u023d\\u023e\\u0241\\u0243-\\u0246\\u0248\\u024a\\u024c\\u024e",ih=new RegExp("(["+$r+"]|["+yt+"]["+It+"]|["+yt+"](?!["+It+"])|(?:[^"+yt+"]|^)["+It+"])(["+Nt+"]+)","g"),nh=new RegExp("(["+yt+"])(["+It+"])","g"),lh=new RegExp("((?:["+$r+"]|["+yt+"]["+It+"]|["+yt+"](?!["+It+"])|(?:[^"+yt+"]|^)["+It+"])(?:["+Nt+"]+))|(["+yt+"]["+It+"])|([\\n\\r\\u2028\\u2029])|(.)","g"),sh=new RegExp("["+To+"]"),wl=new RegExp("^["+To+"]+"),El=new RegExp("["+To+"]+$"),vl=new RegExp("^"+er+"+$"),Ql=/[<>&"'`]/g,kl=/(<([^>]+)>)/ig,ar=new RegExp("(?:["+jo+"]["+Nt+"]*)?(?:["+Ro+"]["+Nt+"]*)+|(?:["+jo+"]["+Nt+"]*)+(?!["+Ro+"])|["+er+"]+|["+Bl+"]|[^"+xl+bl+To+"]+","g"),ir=/[A-Z\xC0-\xD6\xD8-\xDE]?[a-z\xDF-\xF6\xF8-\xFF]+|[A-Z\xC0-\xD6\xD8-\xDE]+(?![a-z\xDF-\xF6\xF8-\xFF])|\d+/g,yl=new RegExp("^(?:["+Ro+jo+"]["+Nt+"]*)+$"),Il=new RegExp("^((?:["+Ro+jo+"]["+Nt+"]*)|["+er+"])+$"),nr=/^[\x01-\xFF]*$/,U=(t,o="")=>!t&&typeof t!="number"&&typeof t!="boolean"?o:typeof t=="string"?t:Array.isArray(t)?t.join(""):JSON.stringify(t),qr=(t,o)=>typeof t>"u"||t===null?o:t,Bt=(t,o,e)=>{let r;return o?o instanceof RegExp?r=o:r=new RegExp(o,qr(e,"")):r=nr.test(t)?ir:ar,qr(U(t).match(r),[])},Jo=(t,o=!1)=>{let e=U(t),r=e.substring(1);return e.substring(0,1).toUpperCase()+(o?r.toLowerCase():r)},te=t=>Bt(U(t)).map((o,e)=>e===0?o.toLowerCase():Jo(o)).join(""),oe=t=>Bt(U(t)).map(o=>o.toLowerCase()).join("-"),re=t=>{let o=U(t);return o.substring(0,1).toLowerCase()+o.substr(1)},ee=(t,o="-")=>Bt(U(t)).map(e=>e.toLowerCase()).join(o),So=t=>U(t).toLowerCase(),Zt=(t,o=[])=>U(t).split("").filter(e=>!o.includes(e)),ae=(t,o)=>Zt(U(t),o).reverse().join(""),Ml=(t=[])=>{let o=[...t],e=o.length,r,a;for(;e!==0;)a=Math.floor(Math.random()*e),e-=1,r=o[e],o[e]=o[a],o[a]=r;return o},ie=t=>Ml(U(t).split("")).join(""),ne=t=>Bt(U(t)).map(o=>o.toLowerCase()).join("_"),Cl=(t,o)=>{let e=o.toLowerCase(),r=o.toUpperCase();return t+(o===e?r:e)},le=t=>U(t).split("").reduce(Cl,""),se=(t,o,e="")=>{let r=U(t),a=nr.test(r)?ir:ar,i=Array.isArray(o)?o:typeof o!="string"?[]:o.split(e);return t.replace(a,(l,s)=>s&&i.includes(r[s-1])?So(l):Jo(l))},lr=t=>U(t).toUpperCase(),ce=t=>U(t).length,Go=(t=[])=>{let o=[...t];for(let e=0;e<o.length;++e)for(let r=e+1;r<o.length;++r)o[e]===o[r]&&o.splice(r--,1);return o},tr=(t,o)=>Zt(t,o).length,or=(t,o)=>Go(Zt(t,o)).length,Ae=(t,o="")=>{let e=U(t),r=U(o);return e===""||r===""?0:e.split(r).length-1},Fl=(t,o,e)=>Bt(t,o,e).length,Dl=(t,o,e)=>Go(Bt(t,o,e)).length,Yl={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};function Ul(t){return Yl[t]}var me=t=>U(t).replace(Ql,Ul),pe={"<":/(&lt;)|(&#x0*3c;)|(&#0*60;)/gi,">":/(&gt;)|(&#x0*3e;)|(&#0*62;)/gi,"&":/(&amp;)|(&#x0*26;)|(&#0*38;)/gi,'"':/(&quot;)|(&#x0*22;)|(&#0*34;
1)/gi,"'":/(&#x0*27;)|(&#0*39;)/gi,"`":/(&#x0*60;)|(&#0*96;)/gi},Nl=Object.keys(pe);function zl(t,o){return t.replace(pe[o],o)}var ge=t=>Nl.reduce(zl,U(t)),he=(t,o)=>Go(Zt(t,o)).join(""),de=(t,o,e)=>Go(Bt(t,o,e)).join(""),$t=(t,o,e)=>U(t).substring(o,e),fe=(t,o=0)=>$t(U(t),0,o),ue=(t,o=0)=>{let e=U(t);return e?$t(e,e.length-o):""},Rl="\uFEFF",po=(t,o,e=9007199254740991)=>t<o?o:t>e?e:t,qt=t=>t===1/0?9007199254740991:t===-1/0?-9007199254740991:~~t,sr=(t,o=0,e="...")=>{let r=U(t),a=o?po(qt(o),0,9007199254740991):r.length;return $t(r,0,a)+(r.length===a?"":e)},be=(t,o=0,e="...")=>{let r=sr(t,o,"");return r.slice(t,r.lastIndexOf(" "))+e},xe=(t,o=1)=>{let e=U(t),r=[],a=Math.round(e.length/o);for(let i=0;i<o;i++)r.push($t(e,i*a,a));return r},Be=(t,o=0,e="")=>{let r=U(t),a=o?po(qt(o),0,9007199254740991):r.length,i=0,l=nr.test(r)?ir:ar;return r.replace(l,(s,c)=>{let A=c+s.length;A<=a-e.length&&(i=A)}),r.substring(0,i)+e},go=(t,o=0)=>{let e=U(t),r=o?po(qt(o),0,9007199254740991):e.length,a=e;if(o===0)return"";for(let i=0;i<r-1;i++)e+=a;return e},rr=(t,o=0)=>{let e=t.length,r=o-e;return go(t,r+1).substring(0,o)},we=(t,o="",e=0,r=!1)=>{let a=U(t),i=e?po(qt(e),0,9007199254740991):a.length,l=o.length,s=i-a.length,c=s;if(s<=0||l===0)return a;let A=rr(o,c);return r?A+a:a+A},Ee=(t,o=" ",e=0)=>we(t,o,e,!0),ve=(t,o=" ",e=0)=>we(t,o,e,!1),Qe=(t,o="",e=0)=>{let r=U(t),a=e?po(qt(e),0,9007199254740991):r.length,i=o.length,l=a-r.length,s=qt(l/2),c=l%2;return l<=0||i===0?r:rr(o,s)+r+rr(o,s+c)},ke=(t,o="",e=0)=>{let r=U(t);return r.substring(0,e)+o+r.substring(e)},jl=Array.prototype.reduce,Tl=Array.prototype.reduceRight,ho=(t,o)=>cr(Ar(t,o),o),cr=(t,o)=>{let e=U(t);if(!o)return e.replace(wl,"");if(o===""||e==="")return e;typeof o!="string"&&(o="");let r=!0;return jl.call(e,(a,i)=>r&&o.includes(i)?a:(r=!1,a+i),"")},Ar=(t,o)=>{let e=U(t);if(!o)return e.replace(El,"");if(o===""||e==="")return e;typeof o!="string"&&(o="");let r=!0;return Tl.call(e,(a,i)=>r&&o.includes(i)?a:(r=!1,i+a),"")},ye=(t,o,e)=>U(t).endsWith(o,e),Ie=t=>yl.test(U(t)),Me=t=>Il.test(U(t)),Ce=t=>vl.test(U(t)),Fe=(t,o=!0)=>o?U(t).length===0:ho(t).length===0,mr=t=>ho(t).length===0,De=t=>So(t)===t,Ye=t=>lr(t)===t,Ue=(t,o,e)=>U(t).startsWith(o,e),Ne=t=>U(t).replace(kl,""),ze=(t,o=[])=>{let e=U(t),r=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi;return e.replace(r,(a,i)=>o.includes(i)?a:"")},nt={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function Jl(t,o){let e=1,r=t.length,a,i="",l,s,c,A,p,g;for(let h=0;h<r;h++)if(typeof t[h]=="string")i+=t[h];else if(typeof t[h]=="object"){if(l=t[h],l.keys){a=o[e];for(let d=0;d<l.keys.length;d++){if(typeof a>"u")throw new Error(mo('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[d],l.keys[d-1]));a=a[l.keys[d]]}}else l.param_no?a=o[l.param_no]:a=o[e++];if(nt.not_type.test(l.type)&&nt.not_primitive.test(l.type)&&a instanceof Function&&(a=a()),nt.numeric_arg.test(l.type)&&typeof a!="number"&&isNaN(a))throw new TypeError(mo("[sprintf] expecting number but found %T",a));switch(nt.number.test(l.type)&&(p=a>=0),l.type){case"b":a=parseInt(a,10).toString(2);break;case"c":a=String.fromCharCode(parseInt(a,10));break;case"d":case"i":a=parseInt(a,10);break;case"j":a=JSON.stringify(a,null,l.width?parseInt(l.width):0);break;case"e":a=l.precision?parseFloat(a).toExponential(l.precision):parseFloat(a).toExponential();break;case"f":a=l.precision?parseFloat(a).toFixed(l.precision):parseFloat(a);break;case"g":a=l.precision?String(Number(a.toPrecision(l.precision))):parseFloat(a);break;case"o":a=(parseInt(a,10)>>>0).toString(8);break;case"s":a=String(a),a=l.precision?a.substring(0,l.precision):a;break;case"t":a=String(!!a),a=l.precision?a.substring(0,l.precision):a;break;case"T":a=Object.prototype.toString.call(a).slice(8,-1).toLowerCase(),a=l.precision?a.substring(0,l.precision):a;break;case"u":a=parseInt(a,10)>>>0;break;case"v":a=a.valueOf(),a=l.precision?a.substring(0,l.precision):a;break;case"x":a=(parseInt(a,10)>>>0).toString(16);break;case"X":a=(parseInt(a,10)>>>0).toString(16).toUpperCase();break}
1nt.json.test(l.type)?i+=a:(nt.number.test(l.type)&&(!p||l.sign)?(g=p?"+":"-",a=a.toString().replace(nt.sign,"")):g="",c=l.pad_char?l.pad_char==="0"?"0":l.pad_char.charAt(1):" ",A=l.width-(g+a).length,s=l.width&&A>0?c.repeat(A):"",i+=l.align?g+a+s:c==="0"?g+s+a:s+g+a)}return i}var $o=Object.create(null);function Sl(t){if($o[t])return $o[t];let o=t,e,r=[],a=0;for(;o;){if((e=nt.text.exec(o))!==null)r.push(e[0]);else if((e=nt.modulo.exec(o))!==null)r.push("%");else if((e=nt.placeholder.exec(o))!==null){if(e[2]){a|=1;let i=[],l=e[2],s=[];if((s=nt.key.exec(l))!==null)for(i.push(s[1]);(l=l.substring(s[0].length))!=="";)if((s=nt.key_access.exec(l))!==null)i.push(s[1]);else if((s=nt.index_access.exec(l))!==null)i.push(s[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");e[2]=i}else a|=2;if(a===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");o=o.substring(e[0].length)}return $o[t]=r}var mo=t=>Jl(Sl(t),arguments),Re=(t,o)=>mo.apply(null,[t].concat(o||[])),je=(t,o,e)=>U(t).includes(o,e),Te=(t,o=void 0,e=void 0,r=!0)=>U(t).split(o,e).map(a=>r?a.trim():a).filter(a=>r?!mr(a):!0),Je=(t,o=null,e="")=>{let r=U(t),a;return o?(a=new RegExp(o,"g"),r.replace(a,e)):r},Se=(t,o="div",e={})=>{let r=U(t),a=Object.keys(e).map(i=>`${i}="${e[i]}"`).join(" ");return a&&(a=" "+a),`<${o}${a}>${r}</${o}>`},Ge=(t,o="",e="")=>o+U(t)+e,He=t=>typeof t=="string",Ve=(t,o,e="")=>{let r=U(t),a;if(!(o instanceof RegExp)){if(a=o?ho(U(o)):"",!a)return!1;o=new RegExp(a,e)}return o.test(r)},Pe=(t,o="",e=1)=>U(t)+go(o,e),Le=(t,o="",e=1)=>go(o,e)+U(t),Oe=t=>{let o=U(t);return o===""?o:o[0]===Rl?o.substring(1):o},Ke=(t,o=5,e="...")=>t&&`${t.substring(0,o)}${e}${t.substring(t.length-o)}`,Gl=t=>typeof t>"u"||t===null,We=(t,...o)=>{if(!Gl(t))return t;if(o.length===0)throw new Error("nvl: No default value provided");for(let e of o)if(typeof e<"u"&&e!==null)return e},fo=class{constructor(t="",{mutable:o=!0}={}){this.value=t.toString(),this.mutable=o}[Symbol.toPrimitive](t){return t==="number"?+this.value:this.value}get[Symbol.toStringTag](){return"Str"}val(t){return typeof t>"u"||t===null?this.value:(this.value=t.toString(),this)}get length(){return this.value.length}immutable(t=!0){this.mutable=!t}toString(){return Array.isArray(this.value)?this.value.join(""):this.value}_result(t){return this.mutable?(this.value=t,this):pr(t)}camelCase(){return this._result(te(this.value))}capitalize(t){return this._result(Jo(this.value,t))}chars(t){return this._result(Zt(this.value,t))}count(){return ce(this.value)}countChars(t){return tr(this.value,t)}countUniqueChars(t){return or(this.value,t)}countSubstr(t){return Ae(this.value,t)}countWords(t,o){return tr(this.value,t,o)}countUniqueWords(t,o){return or(this.value,t,o)}dashedName(){return this._result(oe(this.value))}decapitalize(){return this._result(re(this.value))}endsWith(t,o){return ye(this.value,t,o)}escapeHtml(){return this._result(me(this.value))}first(){return this._result(fe(this.value))}includes(t,o){return je(this.value,t,o)}insert(t,o){return this._result(ke(this.value,t,o))}isAlpha(){return Ie(this.value)}isAlphaDigit(){return Me(this.value)}isBlank(t){return Fe(this.value,t)}isDigit(){return Ce(this.value)}isEmpty(){return mr(this.value)}isLower(){return De(this.value)}static isString(t){return He(t)}isUpper(){return Ye(this.value)}kebab(t){return this._result(ee(this.value,t))}last(t){return this._result(ue(this.value,t))}lower(){return this._result(So(this.value))}matches(t,o){return Ve(this.value,t,o)}pad(t,o){return this._result(Qe(this.value,t,o))}lpad(t,o){return this._result(Ee(this.value,t,o))}rpad(t,o){return this._result(ve(this.value,t,o))}prune(t,o){return this._result(Be(this.value,t,o))}repeat(t){return this._result(go(this.value,t))}append(t,o){return this._result(Pe(this.value,t,o))}prepend(t,o){return this._result(Le(this.value,t,o))}reverse(t){return this._result(ae(this.value,t))}shuffle(){return this._result(ie(this.value))}slice(t){return this._result(xe(this.value,t))}snake(){return this._result(ne(this.value))}split(t,o,e){return this._result(Te(this.value,t,o,e))}sprintf(...t){return this._result(mo(this.value,...t))}vsprintf(...t){return this._result(Re(this.value,...t))}startsWith(t,o){return Ue(this.value,t,o)}stripBoom(){return this._result(Oe(this.value))}stripTags(t){return this._result(ze(this.value,t))}stripTagsAll(){return this._result(Ne(this.value))}strip(t,o){return this._result(Je(this.value,t,o))}substring(t,o){return this._result($t(this.value,t,o))}swap(){return this._result(le(this.value))}title(t,o){return this._result(se(this.value,t,o))}trim(t){return this._result(ho(this.value,t))}ltrim(t){return this._result(cr(this.value,t))}rtrim(t){return this._result(Ar(this.value,t))}truncate(t,o){return this._result(sr(this.value,t,o))}truncateWithAlign(t,o){return this._result(be(this.value,t,o))}unescapeHtml(){return this._result(ge(this.value))}unique(t){return this._result(he(this.value,t))}uniqueWords(t,o){return this._result(de(this.value,t,o))}upper(){return this._result(lr(this.value))}words(t,o){return Bt(this.value,t,o)}wrap(t,o){return this._result(Ge(this.value,t,o))}wrapTag(t){return this._result(Se(this.value,t))}shorten(t,o){return this._result(Ke(this.value,t,o))}nvl(...t){return this._result(We(this.value,...t))}};Object.assign(fo,Zr);var pr=(t,o=!0)=>new fo(t,{mutable:o}),Hl="0.10.2",Vl="18.05.2025, 14:39:06",Pl=()=>{console.info(`%c String %c v${Hl} %c ${Vl} `,"color: #000000; font-weight: bold; background: #fff200","color: white;
1 background: darkgreen","color: white; background: #0080fe;")};fo.info=Pl;globalThis.Str=fo;globalThis.str=pr;var Ll=["opacity","zIndex"];function Ol(){return null}function Kl(t){return typeof t=="string"||typeof t=="boolean"||typeof t=="number"}function ao(t){let o=getComputedStyle(t),e=!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length),r=o.visibility!=="hidden"&&o.display!=="none"&&o.opacity!=="0"&&t.style.display!=="none";return e&&r}function Wl(t){let o=getComputedStyle(t);return!ao(t)||+o.opacity==0||t.hidden||o.visibility==="hidden"}function F(t){return t==null}function ot(t){return t.replace(/-([a-z])/g,function(o,e){return e.toUpperCase()})}function _l(t){return t.replace(/([A-Z])/g,function(o){return"-"+o.toLowerCase()})}function jt(t){let o;return!t||Object.prototype.toString.call(t)!=="[object Object]"?!1:(o=t.prototype!==void 0,o?o.constructor&&typeof o.constructor=="function":!0)}function zt(t){for(let o in t)if(Ct(t,o))return!1;return!0}function io(t){return t instanceof Object&&"length"in t}function Rt(t,o){return o=o||" ",t.split(o).map(function(e){return(""+e).trim()}).filter(function(e){return e!==""})}function to(t,o){return o||(o=[0,""]),t=String(t),o[0]=parseFloat(t),o[1]=t.match(/[\d.\-+]*\s*(.*)/)[1]||"",o}function oa(t,o){let e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn|fr|lh|cqw|cqh|cqi|cqb|cqmin|cqmax|q)?$/.exec(t);return typeof e[1]<"u"?e[1]:o}function _e(t,o,e){o=ot(o),["scrollLeft","scrollTop"].indexOf(o)>-1?t[o]=parseInt(e):t.style[o]=isNaN(e)||Ll.indexOf(""+o)>-1?e:parseInt(e)===0?0:e+"px"}function ra(t){return t.nodeType===1||t.nodeType===9||!+t.nodeType}function gr(t){return typeof t!="string"?void 0:t.replace(/-/g,"").toLowerCase()}function Ct(t,o){return Object.prototype.hasOwnProperty.call(t,o)}function Xe(t){let o=t||globalThis.location.hostname;return o==="localhost"||o==="127.0.0.1"||o==="[::1]"||o===""||o.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)!==null}function Xl(){return"ontouchstart"in window||navigator.maxTouchPoints>0}function ql(t){let o=t||globalThis.location.hostname;return/(^localhost)|(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2\d\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/.test(o)}function Zl(t){try{return JSON.parse(t)}catch{return t}}var et=Element.prototype.matches,m=(t,o)=>new m.init(t,o);m.version="1.5.1";m.build_time="18.05.2025, 14:45:23";m.info=()=>console.info(`%c Dom %c v${m.version} %c ${m.build_time} `,"color: white; font-weight: bold; background: #fd6a02","color: white; background: darkgreen","color: white; background: #0080fe;");m.fn=m.prototype=Object.create(Array.prototype);m.prototype.constructor=m;m.prototype.uid="";m.extend=m.fn.extend=function(){let t,o,e=arguments[0]||{},r=1,a=arguments.length;for(typeof e!="object"&&typeof e!="function"&&(e={}),r===a&&(e=this,r--);r<a;r++)if((t=arguments[r])!=null)for(o in t)Ct(t,o)&&(e[o]=t[o]);return e};m.assign=function(){let t,o,e=arguments[0]||{},r=1,a=arguments.length;for(typeof e!="object"&&typeof e!="function"&&(e={}),r===a&&(e=this,r--);r<a;r++)if((t=arguments[r])!=null)for(o in t)Ct(t,o)&&t[o]!==void 0&&(e[o]=t[o]);return e};(function(t){try{let s=new Blob([`
2            var fakeIdToId = {};
3            onmessage = function (event) {
4                var data = event.data,
5                    name = data.name,
6                    fakeId = data.fakeId,
7                    time;
8                if(data.hasOwnProperty('time')) {
9                    time = data.time;
10                }
11                switch (name) {
12                    case 'setInterval':
13                        fakeIdToId[fakeId] = setInterval(function () {
14                            postMessage({fakeId: fakeId});
15                        }, time);
16                        break;
17                    case 'clearInterval':
18                        if (fakeIdToId.hasOwnProperty (fakeId)) {
19                            clearInterval(fakeIdToId[fakeId]);
20                            delete fakeIdToId[fakeId];
21                        }
22                        break;
23                    case 'setTimeout':
24                        fakeIdToId[fakeId] = setTimeout(function () {
25                            postMessage({fakeId: fakeId});
26                            if (fakeIdToId.hasOwnProperty (fakeId)) {
27                                delete fakeIdToId[fakeId];
28                            }
29                        }, time);
30                        break;
31                    case 'clearTimeout':
32                        if (fakeIdToId.hasOwnProperty (fakeId)) {
33                            clearTimeout(fakeIdToId[fakeId]);
34                            delete fakeIdToId[fakeId];
35                        }
36                        break;
37                }
38            }
39        `]);t=window.URL.createObjectURL(s)}catch{}let o,e={},r=0,a=2147483647,i="";function l(){do r===a?r=0:r++;while(e.hasOwnProperty(r));return r}if(!(typeof Worker>"u"))try{o=new Worker(t),window.setInterval=function(s,c){let A=l();return e[A]={callback:s,parameters:Array.prototype.slice.call(arguments,2)},o.postMessage({name:"setInterval",fakeId:A,time:c}
39),A},window.clearInterval=function(s){e.hasOwnProperty(s)&&(delete e[s],o.postMessage({name:"clearInterval",fakeId:s}))},window.setTimeout=function(s,c){let A=l();return e[A]={callback:s,parameters:Array.prototype.slice.call(arguments,2),isTimeout:!0},o.postMessage({name:"setTimeout",fakeId:A,time:c}),A},window.clearTimeout=function(s){e.hasOwnProperty(s)&&(delete e[s],o.postMessage({name:"clearTimeout",fakeId:s}))},window.setImmediate=function(s){return setTimeout(s,0)},window.clearImmediate=function(s){clearTimeout(s)},o.onmessage=function(s){let c=s.data,A=c.fakeId,p,g,h;if(e.hasOwnProperty(A)&&(p=e[A],h=p.callback,g=p.parameters,p.hasOwnProperty("isTimeout")&&p.isTimeout&&delete e[A]),typeof h=="string")try{h=new Function(h)}catch(d){console.error(i+"Error parsing callback code string: ",d)}typeof h=="function"&&h.apply(window,g)},o.onerror=function(s){console.error(s)}}catch{console.log("Can't create worker for Intervals, use standard functions.")}})();m.fn.extend({_getDefaultElement(t){let o;return F(t)?o=this[0]:t instanceof HTMLElement?o=t:t instanceof m&&t.length>0?o=t[0]:typeof t=="string"?o=m(t)[0]:o=void 0,o},index:function(t){let o,e=-1;return this.length===0||(o=this._getDefaultElement(t),!o)||o&&o.parentNode&&m.each(o.parentNode.children,function(r){this===o&&(e=r)}),e},indexOf:function(t){let o,e=-1;return this.length===0||(o=this._getDefaultElement(t),!o)||this.each(function(r){this===o&&(e=r)}),e},get:function(t){return t===void 0?this:t<0?this[t+this.length]:t>this.length-1?void 0:this[t]},eq:function(t){return F(t)?this:this.length>0?m.extend(m(this.get(t)),{_prevObj:this}):this},is:function(t){let o=!1;return this.length===0?!1:t instanceof m?this.same(t):(t===":selected"?this.each(function(){this.selected&&(o=!0)}):t===":checked"?this.each(function(){this.checked&&(o=!0)}):t===":visible"?(o=!1,this.each(function(){ao(this)&&(o=!0)})):t===":hidden"?this.each(function(){let e=getComputedStyle(this);(this.getAttribute("type")==="hidden"||this.hidden||e.display==="none"||e.visibility==="hidden"||parseInt(e.opacity)===0)&&(o=!0)}):typeof t=="string"&&[":selected"].indexOf(t)===-1?this.each(function(){et.call(this,t)&&(o=!0)}):io(t)?this.each(function(){let e=this;m.each(t,function(){e===this&&(o=!0)})}):typeof t=="object"&&t.nodeType===1&&this.each(function(){this===t&&(o=!0)}),o)},same:function(t){let o=!0;return t instanceof m||(t=m(t)),this.length!==t.length?!1:(this.each(function(){t.items().indexOf(this)===-1&&(o=!1)}),o)},last:function(){return this.eq(this.length-1)},first:function(){return this.eq(0)},odd:function(){let t=this.filter(function(o,e){return(e+1)%2!==0});return m.extend(t,{_prevObj:this})},even:function(){let t=this.filter(function(o,e){return(e+1)%2===0});return m.extend(t,{_prevObj:this})},filter:function(t){if(typeof t=="string"){let o=t;t=function(e){return et.call(e,o)}}return m.extend(m.merge(m(),[].filter.call(this,t)),{_prevObj:this})},find:function(t){let o=[],e;return t instanceof m?t:(this.length===0?e=this:(this.each(function(){let r=this;typeof r.querySelectorAll>"u"||(o=o.concat([].slice.call(r.querySelectorAll(t))))}),e=m.merge(m(),o)),m.extend(e,{_prevObj:this}))},contains:function(t){return this.find(t).length>0},children:function(t){let o,e=[];return t instanceof m?t:(this.each(function(){let r=this;for(o=0;o<r.children.length;o++)r.children[o].nodeType===1&&e.push(r.children[o])}),e=t?e.filter(function(r){return et.call(r,t)}):e,m.extend(m.merge(m(),e),{_prevObj:this}))},parent:function(t){let o=[];if(this.length!==0)return t instanceof m?t:(this.each(function(){this.parentNode&&o.indexOf(this.parentNode)===-1&&o.push(this.parentNode)}),o=t?o.filter(function(e){return et.call(e,t)}):o,o.length?m.extend(m.merge(m(),o),{_prevObj:this}):void 0)},parents:function(t){let o=[];if(this.length!==0)return t instanceof m?t:(this.each(function(){let e=this.parentNode;for(;e;)e.nodeType===1&&o.indexOf(e)===-1&&(F(t)||et.call(e,t))&&o.push(e),e=e.parentNode}),m.extend(m.merge(m(),o),{_prevObj:this}))},siblings:function(t){let o=[];if(this.length!==0)return t instanceof m?t:(this.each(function(){let e=this;e.parentNode&&m.each(e.parentNode.children,function(){e!==this&&o.push(this)})}),t&&(o=o.filter(function(e){return et.call(e,t)})),m.extend(m.merge(m(),o),{_prevObj:this}))},_siblingAll:function(t,o){let e=[];
39if(this.length!==0)return o instanceof m?o:(this.each(function(){let r=this;for(;r&&(r=r[t],!!r);)e.push(r)}),o&&(e=e.filter(function(r){return et.call(r,o)})),m.extend(m.merge(m(),e),{_prevObj:this}))},_sibling:function(t,o){let e=[];if(this.length!==0)return o instanceof m?o:(this.each(function(){let r=this[t];r&&r.nodeType===1&&e.push(r)}),o&&(e=e.filter(function(r){return et.call(r,o)})),m.extend(m.merge(m(),e),{_prevObj:this}))},prev:function(t){return this._sibling("previousElementSibling",t)},next:function(t){return this._sibling("nextElementSibling",t)},prevAll:function(t){return this._siblingAll("previousElementSibling",t)},nextAll:function(t){return this._siblingAll("nextElementSibling",t)},closest:function(t){let o=[];if(this.length===0)return;if(!t)return this.parent();let e=this[0];for(;e;){if(et.call(e,t)){o.push(e);break}e=e.parentElement}return m.extend(m.merge(m(),o.reverse()),{_prevObj:this})},has:function(t){let o=[];if(this.length!==0)return this.each(function(){m(this).children(t).length>0&&o.push(this)}),m.extend(m.merge(m(),o),{_prevObj:this})},back:function(t){let o;if(t===!0)for(o=this._prevObj;o&&o._prevObj;)o=o._prevObj;else o=this._prevObj?this._prevObj:this;return o}});function qe(t,o=document.body){let e=document.createElement("script");if(e.type="text/javascript",F(t))return m(e);let r=m(t)[0];return r.src?e.src=r.src:e.textContent=r.innerText,r.type&&(e.type=r.type),r.async&&(e.async=r.async),o.appendChild(e),r.parentNode&&r.parentNode.removeChild(r),e}m.extend({script:function(t,o){if(!F(t))if(t instanceof m&&(t=t[0]),t.tagName&&t.tagName==="SCRIPT")qe(t,o);else{let e=m(t).find("script");m.each(e,function(){qe(this,o)})}},loadScript:function(t,o=document.body,e){let r=document.createElement("script");r.type="text/javascript",r.src=t,r.onload=e,o.appendChild(r)}});m.fn.extend({script:function(t){return this.each(function(){m.script(this,t)})}});m.fn.extend({_prop:function(t,o){return arguments.length===1?this.length===0?void 0:this[0][t]:(F(o)&&(o=""),this.each(function(){let e=this;e[t]=o,t==="innerHTML"&&m.script(e,e)}))},prop:function(t,o){return arguments.length===1?this._prop(t):this._prop(t,typeof o>"u"?"":o)},val:function(t){return F(t)?this.length===0?void 0:this[0].value:this.each(function(){let o=m(this);typeof this.value<"u"?this.value=t:o.html(t)})},html:function(t){let o=this,e=[];return arguments.length===0?this._prop("innerHTML"):(t instanceof m?t.each(function(){e.push(m(this).outerHTML())}):e.push(t),o._prop("innerHTML",e.join(`
40`)),this)},outerHTML:function(){return this._prop("outerHTML")},text:function(t){return arguments.length===0?this._prop("textContent"):this._prop("textContent",typeof t>"u"?"":t)},innerText:function(t){return arguments.length===0?this._prop("innerText"):this._prop("innerText",typeof t>"u"?"":t)},empty:function(){return this.each(function(){typeof this.innerHTML<"u"&&(this.innerHTML=""),typeof this.value<"u"&&(this.value="")})},clear:function(){return this.empty()}});m.each=function(t,o){let e=0;if(typeof t!="object"&&(t=[]),io(t))[].forEach.call(t,function(r,a){o.apply(r,[a,r])});else for(let r in t)Ct(t,r)&&o.apply(t[r],[r,t[r],e++]);return t};m.fn.extend({each:function(t){return m.each(this,t)}});var uo=function(t){this.expando="DATASET:UID:"+t.toUpperCase(),uo.uid++};uo.uid=-1;uo.prototype={cache:function(t){let o=t[this.expando];return o||(o={},ra(t)&&(t.nodeType?t[this.expando]=o:Object.defineProperty(t,this.expando,{value:o,configurable:!0}))),o},set:function(t,o,e){let r,a=this.cache(t);if(typeof o=="string")a[ot(o)]=e;else for(r in o)Ct(o,r)&&(a[ot(r)]=o[r]);return a},get:function(t,o){let e=o===void 0?this.cache(t):t[this.expando]&&t[this.expando][ot(o)];if(o)return e!==void 0?e:t.getAttribute&&t.getAttribute("data-"+_l(o))||void 0;e={...t[this.expando]};for(let r of t.attributes)if(r.name.startsWith("data-")){let a=r.name.slice(5);e[ot(a)]=r.value}return zt(e)?void 0:e},access:function(t,o,e){return o===void 0||o&&typeof o=="string"&&e===void 0?this.get(t,o):(this.set(t,o,e),e!==void 0?e:o)},remove:function(t,o){let e=t[this.expando];if(e!==void 0){if(o!==void 0){let r=Array.isArray(o)?o:[o];for(let a of r)delete e[ot(a)],t.removeAttribute&&t.removeAttribute("data-"+a)}
40return(o===void 0||zt(e))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando]),!0}},hasData:function(t){let o=t[this.expando];return o!==void 0&&!zt(o)}};var Mt=new uo("dom");m.extend({hasData:function(t){return Mt.hasData(t)},data:function(t,o,e){return Mt.access(t,o,e)},removeData:function(t,o){return Mt.remove(t,o)},dataSet:function(t){if(F(t))return Mt;if(["INTERNAL","DOM"].indexOf(t.toUpperCase())>-1)throw Error("You can not use reserved name for your dataset");return new uo(t)}});m.fn.extend({data:function(t,o){let e,r,a;if(this.length!==0){if(r=this[0],arguments.length===0){if(r&&(a=Mt.get(r),r.nodeType===1)){for(let i of r.attributes)if(i.name.startsWith("data-")){let l=i.name.slice(5);a[ot(l)]=i.value}}return a}return arguments.length===1&&(typeof t=="string"||Array.isArray(t))?(e=Mt.get(r,t),Zl(e)):this.each(function(){Mt.set(this,t,o)})}},removeData:function(t){return typeof t>"u"?this:this.each(function(){let o=Array.isArray(t)?t:t.split(" ").map(e=>e.trim()).filter(e=>e!=="");for(let e of o)Mt.remove(this,e)})},origin:function(t,o,e){if(this.length===0)return this;if(F(t)&&F(o))return m.data(this[0]);if(F(o)){let r=m.data(this[0],"origin-"+t);return F(r)?e:r}return this.data("origin-"+t,o),this}});m.extend({device:/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),localhost:Xe(),isLocalhost:Xe,touchable:Xl(),isPrivateAddress:ql,hashCode:function(t){let o=0,e,r;if(t.length===0)return o;for(e=0;e<t.length;e++)r=t.charCodeAt(e),o=(o<<5)-o+r,o|=0;return o},uniqueId:function(t="salt"){let o;return typeof t=="function"?o=t.name:typeof t=="string"&&t?o=t:typeof t=="string"&&t.length===0?o="salt":o=t.toString(),"dom-"+m.hashCode(o)},toArray:function(t){let o,e=[];for(o=0;o<t.length;o++)e.push(t[o]);return e},import:function(t){let o=[];return this.each(t,function(){o.push(this)}),this.merge(m(),o)},merge:function(t,o){let e=+o.length,r=0,a=t.length;for(;r<e;r++)t[a++]=o[r];return t.length=a,t},type:function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)]$/,"$1").toLowerCase()},isSelector:function(t){if(typeof t!="string"||t.length===0||t==="#"||t===".")return!1;try{return document.querySelector(t),!0}catch{return!1}},remove:function(t){return m(t).remove()},isPlainObject:jt,isEmptyObject:zt,isArrayLike:io,acceptData:ra,not:F,parseUnit:to,getUnit:oa,unit:to,isVisible:ao,isHidden:Wl,matches:function(t,o){return et.call(t,o)},random:function(t,o){return arguments.length===1&&io(t)?t[Math.floor(Math.random()*t.length)]:Math.floor(Math.random()*(o-t+1)+t)},hasProp:Ct,dark:globalThis.matchMedia&&globalThis.matchMedia("(prefers-color-scheme: dark)").matches,serializeToArray:function(t){let o=m(t)[0];if(!o||o.nodeName!=="FORM"){console.warn("Element is not a HTMLFromElement");return}let e,r,a=[];for(e=o.elements.length-1;e>=0;e=e-1)if(o.elements[e].name!=="")switch(o.elements[e].nodeName){case"INPUT":switch(o.elements[e].type){case"checkbox":case"radio":o.elements[e].checked&&a.push(o.elements[e].name+"="+encodeURIComponent(o.elements[e].value));break;case"file":break;default:a.push(o.elements[e].name+"="+encodeURIComponent(o.elements[e].value))}break;case"TEXTAREA":a.push(o.elements[e].name+"="+encodeURIComponent(o.elements[e].value));break;case"SELECT":switch(o.elements[e].type){case"select-one":a.push(o.elements[e].name+"="+encodeURIComponent(o.elements[e].value));break;case"select-multiple":for(r=o.elements[e].options.length-1;r>=0;r=r-1)o.elements[e].options[r].selected&&a.push(o.elements[e].name+"="+encodeURIComponent(o.elements[e].options[r].value));break}break;case"BUTTON":switch(o.elements[e].type){case"reset":case"submit":case"button":a.push(o.elements[e].name+"="+encodeURIComponent(o.elements[e].value));break}break}return a},serialize:function(t){return m.serializeToArray(t).join("&")},viewport:function(){let t=window,o=document,e=o.documentElement,r=o.getElementsByTagName("body")[0],a=t.innerWidth||e.clientWidth||r.clientWidth,i=t.innerHeight||e.clientHeight||r.clientHeight;return{width:a,height:i}}});m.fn.extend({items:function(){return m.toArray(this)}});var $l=Event.prototype.stopPropagation,ts=Event.prototype.preventDefault;Event.prototype.stopPropagation=function(){this.isPropagationStopped=!0,$l.apply(this,arguments)};Event.prototype.preventDefault=function(){this.isPreventedDefault=!0,ts.apply(this,arguments)};Event.prototype.stop=function(t){return t?this.stopImmediatePropagation():this.stopPropagation()};m.extend({events:[],eventHooks:{},eventUID:-1,setEventHandler:function(t){let o,e=-1,r,a;
40if(this.events.length>0){for(o=0;o<this.events.length;o++)if(this.events[o].handler===null){e=o;break}}return r={element:t.el,event:t.event,handler:t.handler,selector:t.selector,ns:t.ns,id:t.id,options:t.options},e===-1?(this.events.push(r),a=this.events.length-1):(this.events[e]=r,a=e),a},getEventHandler:function(t){if(this.events[t]!==void 0&&this.events[t]!==null)return this.events[t]=null,this.events[t].handler},off:function(){return m.each(this.events,function(){this.element.removeEventListener(this.event,this.handler,!0)}),this.events=[],this},getEvents:function(){return this.events},getEventHooks:function(){return this.eventHooks},addEventHook:function(t,o,e="before"){return m.each(Rt(t),(r,a)=>{let i=ot(`${e}-${a}`);this.eventHooks[i]=o}),this},removeEventHook:function(t,o="before"){return m.each(Rt(t),(e,r)=>{delete this.eventHooks[ot(`${o}-${r}`)]}),this},removeEventHooks:function(t){let o=this;return F(t)?this.eventHooks={}:m.each(Rt(t),function(){delete o.eventHooks[ot("before-"+this)],delete o.eventHooks[ot("after-"+this)]}),this}});m.fn.extend({on:function(t,o,e,r){if(this.length!==0)return typeof o=="function"&&(r=e||{},e=o,o=void 0),typeof r!="object"&&(r={}),this.each(function(a,i){m.each(Rt(t),(l,s)=>{let c,A=s.split("."),p=gr(A[0]),g=r.ns?r.ns:A[1],h,d;m.eventUID++,c=u=>{let f=u.target,b=m.eventHooks[ot("before-"+p)],I=m.eventHooks[ot("after-"+p)];if(typeof b=="function"&&b.call(f,u),!o)e.call(i,u);else for(;f&&f!==i;){if(et.call(f,o)&&(e.call(f,u),u.isPropagationStopped)){u.stopImmediatePropagation();break}f=f.parentNode}typeof I=="function"&&I.call(f,u),r.once&&(h=+m(i).origin("event-"+u.type+(o?":"+o:"")+(g?":"+g:"")),isNaN(h)||m.events.splice(h,1))},Object.defineProperty(c,"name",{value:e.name&&e.name!==""?e.name:"func_event_"+p+"_"+m.eventUID}),d=p+(o?":"+o:"")+(g?":"+g:""),i.addEventListener(p,c,zt(r)?!1:r),h=m.setEventHandler({el:i,event:p,handler:c,selector:o,ns:g,id:m.eventUID,options:zt(r)?!1:r}),m(i).origin("event-"+d,h)})})},one:function(t,o,e,r={}){return typeof o=="function"&&(r=e||{},e=o,o=void 0),r.once=!0,this.on.apply(this,[t,o,e,r])},off:function(t,o,e){return jt(o)&&(e=o,o=null),jt(e)||(e={}),F(t)||t.toLowerCase()==="all"?this.each(function(){let r=this;m.each(m.events,function(){let a=this;a.element===r&&(r.removeEventListener(a.event,a.handler,a.options),a.handler=null,m(r).origin("event-"+name+(a.selector?":"+a.selector:"")+(a.ns?":"+a.ns:""),null))})}):this.each(function(){let r=this;m.each(Rt(t),function(){let a=this.split("."),i=gr(a[0]),l=e.ns?e.ns:a[1],s,c;s="event-"+i+(o?":"+o:"")+(l?":"+l:""),c=m(r).origin(s),c!==void 0&&m.events[c].handler&&(r.removeEventListener(i,m.events[c].handler,m.events[c].options),m.events[c].handler=null),m(r).origin(s,null)})})},trigger:function(t,o){return this.fire(t,o)},fire:function(t,o){let e,r;if(this.length!==0)return e=gr(t),["focus","blur"].indexOf(e)>-1?(this[0][e](),this):(r=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:o}),this.each(function(){this.dispatchEvent(r)}))}});"blur focus resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu touchstart touchend touchmove touchcancel".split(" ").forEach(function(t){m.fn[t]=function(o,e,r){return arguments.length>0?this.on(t,o,e,r):this.fire(t)}});m.fn.extend({hover:function(t,o){return this.mouseenter(t).mouseleave(o||t)}});m.ready=function(t,o){document.addEventListener("DOMContentLoaded",t,o||!1)};m.load=function(t){return m(window).on("load",t)};m.unload=function(t){return m(window).on("unload",t)};m.fn.extend({unload:function(t){return this.length===0||this[0].self!==window?void 0:m.unload(t)}});m.beforeunload=function(t){return typeof t=="string"?m(window).on("beforeunload",function(o){return o.returnValue=t,t}):m(window).on("beforeunload",t)};m.fn.extend({beforeunload:function(t){return this.length===0||this[0].self!==window?void 0:m.beforeunload(t)}});m.fn.extend({ready:function(t){if(this.length&&this[0]===document&&typeof t=="function")return m.ready(t)}});m.ajax=function(t){return new Promise(function(o,e){let r=new XMLHttpRequest,a=(t.method||"GET").toUpperCase(),i=[],l=F(t.async)?!0:t.async,s=t.url,c,A=function(h,d){typeof h=="function"&&h.apply(null,d)},p=function(h){return["GET","JSON"].indexOf(h)!==-1},g=function(h){let d=[];
40return m.each(h,function(u,f){let b=Kl(f)?f:JSON.stringify(f);d.push(u+"="+b)}),d.join("&")};if(t.data instanceof HTMLFormElement){let h=t.data.getAttribute("action").trim(),d=t.data.getAttribute("method").trim();F(s)&&h&&(s=h),d&&(a=d.toUpperCase())}if(t.timeout&&(r.timeout=t.timeout),t.withCredentials&&(r.withCredentials=t.withCredentials),t.data instanceof HTMLFormElement)c=m.serialize(t.data);else if(t.data instanceof HTMLElement&&t.data.getAttribute("type")&&t.data.getAttribute("type").toLowerCase()==="file"){let h=t.data.getAttribute("name");c=new FormData;for(let d=0;d<t.data.files.length;d++)c.append(h,t.data.files[d])}else jt(t.data)?c=g(t.data):t.data instanceof FormData||typeof t.data=="string"?c=t.data:(c=new FormData,c.append("_data",JSON.stringify(t.data)));p(a)&&(s+=typeof c=="string"?"?"+c:zt(c)?"":"?"+JSON.stringify(c)),r.open(a,s,l,t.user,t.password),t.headers&&m.each(t.headers,function(h,d){r.setRequestHeader(h,d),i.push(h)}),p(a)||i.indexOf("Content-type")===-1&&t.contentType!==!1&&r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.send(c),r.addEventListener("load",function(h){if(r.readyState===4&&r.status<300){let d=t.returnValue&&t.returnValue==="xhr"?r:r.response;if(t.parseJson)try{d=JSON.parse(d)}catch{d={}}A(o,[d]),A(t.onSuccess,[h,r])}else A(e,[r]),A(t.onFail,[h,r]);A(t.onLoad,[h,r])}),m.each(["readystatechange","error","timeout","progress","loadstart","loadend","abort"],function(){let h=ot("on-"+(this==="readystatechange"?"state":this));r.addEventListener(h,function(d){A(t[h],[d,r])})})})};["GET","POST","PUT","PATCH","DELETE","JSON"].forEach(function(t){m[t.toLowerCase()]=function(o,e,r){let a={method:t==="JSON"?"GET":t,url:o,data:e,parseJson:t==="JSON"};return m.ajax(m.extend({},a,r))}});m.fn.extend({load:function(t,o,e){let r=this;return this.length&&this[0].self===window?m.load(t):m.get(t,o,e).then(function(a){r.each(function(){this.innerHTML=a})})}});m.fn.extend({style:function(t,o){let e;function r(a,i,l){return["scrollLeft","scrollTop"].includes(i)?m(a)[i]():getComputedStyle(a,l)[i]}if(!(typeof t=="string"&&this.length===0)){if(this.length===0)return this;if(e=this[0],!t||t==="all")return getComputedStyle(e,o);{let a={},i=t.split(", ").map(function(l){return(""+ot(l)).trim()});return i.length===1?r(e,i[0],o):(m.each(i,function(){let l=this;a[this]=r(e,l,o)}),a)}}},removeStyleProperty:function(t){if(F(t)||this.length===0)return this;let o=t.split(", ").map(function(e){return(""+e).trim()});return this.each(function(){let e=this;m.each(o,function(){e.style.removeProperty(this)})})},removeStyle:function(t){if(!t)return this;let o=Rt(t,", ");return this.each(function(){let e=this;m.each(o,function(){e.style[this]=""})})},css:function(t,o){return t=t||"all",typeof t=="string"&&F(o)?this.style(t):this.each(function(e,r){typeof t=="object"?m.each(t,function(a,i){_e(r,a,i)}):typeof t=="string"&&_e(r,t,o)})},cssVar:function(t,o){if(!F(t))return F(o)?getComputedStyle(this[0]).getPropertyValue("--"+t):this.each(function(){this.style.setProperty("--"+t,o)})}});m.fn.extend({addClass:function(){},removeClass:function(){},toggleClass:function(){},containsClass:function(t){return this.hasClass(t)},hasClass:function(t){if(F(t))return!1;let o=!1,e=t.split(" ").filter(r=>(""+r).trim()!=="");return this.each(function(){let r=this;m.each(e,function(){!o&&r.classList&&r.classList.contains(this)&&(o=!0)})}),o},clearClasses:function(){return this.each(function(){this.className=""})},cls:function(t=!1){return this.length===0?void 0:t?this[0].className.split(" "):this[0].className},removeClassBy:function(t){return this.each(function(){let o=m(this),e=o.cls(!0);m.each(e,function(){let r=this;r.indexOf(t)>-1&&o.removeClass(r)})})},classNames:function(){let t=Array.prototype.slice.call(arguments,0),o=[];return m.each(t,function(e,r){typeof r=="string"?o.push(r):jt(r)?m.each(r,function(a,i){i&&o.push(a)}):Ol()}),this.each(function(){this.className+=" "+o.join(" ")})}});["add","remove","toggle"].forEach(function(t){m.fn[t+"Class"]=function(o){let e=o?Array.isArray(o)?o:o.split(" ").filter(function(r){return!!r}):[];return e.length?this.each(function(){let r=this;typeof r.classList<"u"?m.each(e,function(i,l){r.classList[t](l)}):r.className+=e.join(" ")}):this}});m.parseHTML=function(t){let o,e,r=[],a,i,l=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;if(typeof t!="string"||t.trim()==="")return[];if(t=t.trim(),e=l.exec(t),e)r.push(document.createElement(e[1]));else{if(m.isSelector(t)){let s=document.querySelectorAll(t);if(s.length)for(let c of s)r.push(c);return r.length===0&&r.push(document.createTextNode(t)),r}a=document.implementation.createHTMLDocument(""),o=a.createElement("base"),o.href=document.location.href,a.head.appendChild(o),i=a.body,i.innerHTML=t;for(let s=0;s<i.childNodes.length;s++)r.push(i.childNodes[s].cloneNode(!0))}return r};m.fn.extend({_size:function(t,o){if(this.length!==0){if(F(o)){let e=this[0];if(t==="height")return e===window?window.innerHeight:e===document?e.body.clientHeight:parseInt(getComputedStyle(e).height);if(t==="width")return e===window?window.innerWidth:e===document?e.body.clientWidth:parseInt(getComputedStyle(e).width)}return this.each(function(){let e=this;e===window||e===document||(e.style[t]=isNaN(o)?o:+o==0?0:o+"px")})}},height:function(t){return this._size("height",t)},width:function(t){return this._size("width",t)},_sizeOut:function(t,o){let e,r,a,i;if(this.length===0)return;if(typeof o=="number")return this.each(function(){let c=this;if(c===window||c===document)return;let A,p=getComputedStyle(c),g=t==="width"?parseInt(p.borderLeftWidth)+parseInt(p.borderRightWidth):parseInt(p.borderTopWidth)+parseInt(p.borderBottomWidth),h=t==="width"?parseInt(p.paddingLeft)+parseInt(p.paddingRight):parseInt(p.paddingTop)+parseInt(p.paddingBottom);A=m(this)[t](o)[t]()-g-h,c.style[t]=A+"px"});let s=o===!0;return e=this[0],r=e[t==="width"?"offsetWidth":"offsetHeight"],a=getComputedStyle(e),i=r+parseInt(a[t==="width"?"marginLeft":"marginTop"])+parseInt(a[t==="width"?"marginRight":"marginBottom"]),s?i:r},outerWidth:function(t){return this._sizeOut("width",t)},outerHeight:function(t){return this._sizeOut("height",t)},padding:function(t){if(this.length===0)return;let o=getComputedStyle(this[0],t);return{top:parseInt(o.paddingTop),right:parseInt(o.paddingRight),bottom:parseInt(o.paddingBottom),left:parseInt(o.paddingLeft)}},margin:function(t){if(this.length===0)return;let o=getComputedStyle(this[0],t);return{top:parseInt(o.marginTop),right:parseInt(o.marginRight),bottom:parseInt(o.marginBottom),left:parseInt(o.marginLeft)}},border:function(t){if(this.length===0)return;let o=getComputedStyle(this[0],t);return{top:parseInt(o.borderTopWidth),right:parseInt(o.borderRightWidth),bottom:parseInt(o.borderBottomWidth),left:parseInt(o.borderLeftWidth)}}});m.fn.extend({offset:function(t){if(t===void 0){if(this.length===0)return;let o=this[0].getBoundingClientRect();return{top:o.top+(window.scrollY||window.pageYOffset||document.documentElement.scrollTop||0),left
40:o.left+(window.scrollX||window.pageXOffset||document.documentElement.scrollLeft||0)}}return this.each(function(){let{top:o,left:e}=t,r=m(this),a=getComputedStyle(this).position,i=this.getBoundingClientRect(),l={top:i.top+(window.scrollY||window.pageYOffset||0),left:i.left+(window.scrollX||window.pageXOffset||0)};a==="static"&&r.css("position","relative"),["absolute","fixed"].indexOf(a)===-1&&(o=o-l.top,e=e-l.left),o&&r.css("top",o),e&&r.css("left",e)})},position:function(t=!1){let o=0,e=0,r,a;if(this.length!==0)return r=this[0],a=getComputedStyle(r),t&&(o=parseInt(a.marginLeft),e=parseInt(a.marginTop)),{left:r.offsetLeft-o,top:r.offsetTop-e}},left:function(t,o){if(this.length!==0)return F(t)?this.position(o).left:typeof t=="boolean"?(o=t,this.position(o).left):this.each(function(){m(this).css({left:t})})},top:function(t,o=!1){if(this.length!==0)return F(t)?this.position(o).top:typeof t=="boolean"?(o=t,this.position(o).top):this.each(function(){m(this).css({top:t})})},rect:function(){return this.length===0?void 0:this[0].getBoundingClientRect()},pos:function(){if(this.length===0)return;let t=m(this[0]);return{top:parseInt(t.style("top")),left:parseInt(t.style("left"))}}});m.fn.extend({attr:function(t,o){let e={};if(!(this.length===0&&arguments.length===0))return this.length&&arguments.length===0?(m.each(this[0].attributes,function(){e[this.name]=this.value}),e):arguments.length===1&&typeof t=="string"?this.length&&this[0].nodeType===1&&this[0].hasAttribute(t)?this[0].getAttribute(t):void 0:this.each(function(){let r=this;jt(t)?m.each(t,function(a,i){r.setAttribute(a,i)}):r.setAttribute(t,o)})},removeAttr:function(t){let o;return t?(o=typeof t=="string"?t.split(",").map(function(e){return e.trim()}):t,this.each(function(){let e=this;m.each(o,function(){e.hasAttribute(this)&&e.removeAttribute(this)})})):this.each(function(e,r){let a=m(r).attr();m.each(a,function(i){r.removeAttribute(i)})})},toggleAttr:function(t,o){return this.each(function(){let e=this;F(o)?e.removeAttribute(t):e.setAttribute(t,o)})},id:function(t){return typeof t>"u"?this.length===1?m(this[0]).attr("id"):this.map(o=>m(o).attr("id")):this.each(function(){m(this).attr("id",t)})},title:function(t){return typeof t>"u"?this.length?m(this[0]).attr("title"):void 0:this.each(function(){m(this).attr("title",t)})},href:function(t){return typeof t>"u"?this.length&&this[0].tagName==="A"?this[0].href:void 0:this.each(function(){this.tagName==="A"&&(this.href=t)})},name:function(t){return typeof t>"u"?this.length&&this[0].name?this[0].name:void 0:this.each(function(){this.name&&(this.name=t)})},src:function(t){return typeof t>"u"?this.length&&this[0].src?this[0].src:void 0:this.each(function(){this.src&&(this.src=t)})}});m.extend({meta:function(t){return F(t)?m("meta"):m("meta[name='$name']".replace("$name",t))},metaBy:function(t){return F(t)?m("meta"):m("meta[$name]".replace("$name",t))},doctype:function(){return m("doctype")},html:function(){return m("html")},head:function(){return m("html").find("head")},body:function(){return m("body")},document:function(){return m(document)},window:function(){return m(window)},charset:function(t){if(t){let o=m("meta[charset]");o.length>0&&o.attr("charset",t)}return document.characterSet},lang:function(t){if(t){let o=m("html");o.length>0&&o.attr("lang",t)}return document.documentElement.lang},title:function(t){if(typeof t>"u")return document.title;document.title=t}});m.extend({bind:(t,o)=>t.bind(o)});(function(t){t.forEach(function(o){["append","prepend"].forEach(function(e){Ct(o,e)||Object.defineProperty(o,e,{configurable:!0,enumerable:!0,writable:!0,value:function(){let r=Array.prototype.slice.call(arguments),a=document.createDocumentFragment();r.forEach(function(i){let l=i instanceof Node;a.appendChild(l?i:document.createTextNode(String(i)))}),e==="prepend"?this.insertBefore(a,this.firstChild):this.appendChild(a)}})})})})([Element.prototype,Document.prototype,DocumentFragment.prototype]);var wt=function(t){let o;return typeof t=="string"?o=m.isSelector(t)?m(t):m.parseHTML(t):t instanceof HTMLElement?o=[t]:io(t)&&(o=t),o};m.fn.extend({appendText:function(t){return this.each(function(o,e){e.innerHTML+=t})},prependText:function(t){return this.each(function(o,e){e.innerHTML=t+e.innerHTML})},append:function(t){let o=wt(t);return this.each(function(e,r){m.each(o,function(){if(r===this)return;let a=e===0?this:this.cloneNode(!0);a.tagName&&a.tagName==="SCRIPT"?m.script(a,r):r.append(a)})})},appendTo:function(t){let o=wt(t);return this.each(function(e,r){m.each(o,function(a,i){r!==this&&i.append(a===0?r:r.cloneNode(!0))})})},prepend:function(t){let o=wt(t);return this.each(function(e,r){m.each(o,function(){if(r===this)return;let a=e===0?this:this.cloneNode(!0);m.script(a),a.tagName&&a.tagName!=="SCRIPT"&&r.prepend(a)})})},prependTo:function(t){let o=wt(t);return this.each(function(){let e=this;m.each(o,function(r,a){e!==this&&m(a).prepend(r===0?e:e.cloneNode(!0))})})},insertBefore:function(t){let o=wt(t);return this.each(function(){let e=this;m.each(o,function(r){if(e===this)return;let a=this.parentNode;a&&a.insertBefore(r===0?e:e.cloneNode(!0),this)})})},insertAfter:function(t){let o=wt(t);return this.each(function(){let e=this;
40m.each(o,function(r,a){if(e===this)return;let i=this.parentNode;i&&i.insertBefore(r===0?e:e.cloneNode(!0),a.nextSibling)})})},after:function(t){return this.each(function(){let o=this;typeof t=="string"?o.insertAdjacentHTML("afterend",t):m(t).insertAfter(o)})},before:function(t){return this.each(function(){let o=this;typeof t=="string"?o.insertAdjacentHTML("beforebegin",t):m(t).insertBefore(o)})},clone:function(t=!1,o=!1){let e=[];return this.each(function(){let r=this.cloneNode(t),a=m(r),i;o&&m.hasData(this)&&(i=m(this).data(),m.each(i,function(l,s){a.data(l,s)})),e.push(r)}),m.merge(m(),e)},import:function(t){let o=[];return F(t)&&(t=!1),this.each(function(){o.push(document.importNode(this,t))}),m.merge(m(),o)},adopt:function(){let t=[];return this.each(function(){t.push(document.adoptNode(this))}),m.merge(m(),t)},remove:function(t){let o=0,e,r,a=[];if(this.length!==0){for(r=t?this.filter(function(i){return et.call(i,t)}):this.items();(e=r[o])!=null;o++)e.parentNode&&(a.push(e.parentNode.removeChild(e)),m.removeData(e));return m.merge(m(),a)}},wrap:function(t){if(this.length===0)return;let o=m(wt(t));if(!o.length)return;let e=[];return this.each(function(){let r,a;for(a=o.clone(!0,!0),a.insertBefore(this),r=a;r.children().length;)r=r.children().eq(0);r.append(this),e.push(a)}),m(e)},wrapAll:function(t){let o,e,r;if(this.length!==0&&(o=m(wt(t)),!!o.length)){for(e=o.clone(!0,!0),e.insertBefore(this[0]),r=e;r.children().length;)r=r.children().eq(0);return this.each(function(){r.append(this)}),e}},wrapInner:function(t){if(this.length===0)return;let o=m(wt(t));if(!o.length)return;let e=[];return this.each(function(){let r=m(this),a=r.html(),i=o.clone(!0,!0);r.html(i.html(a)),e.push(i)}),m(e)}});m.extend({animation:{duration:1e3,ease:"linear",elements:{}}});typeof window.setupAnimation=="object"&&m.each(window.setupAnimation,function(t,o){typeof m.animation[t]<"u"&&!F(o)&&(m.animation[t]=o)});var os=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY"],rs=["opacity","zIndex"],es=["opacity","volume"],as=["scrollLeft","scrollTop"],is=["opacity","volume"];function ea(t){return t instanceof HTMLElement||t instanceof SVGElement}function ns(t,o){let e=/^(\*=|\+=|-=)/.exec(t);if(!e)return t;let r=oa(t)||0,a=parseFloat(o),i=parseFloat(t.replace(e[0],""));switch(e[0][0]){case"+":return a+i+r;case"-":return a-i+r;case"*":return a*i+r;case"/":return a/i+r}}function ls(t,o,e){return typeof t[o]<"u"?as.indexOf(o)>-1?o==="scrollLeft"?t===window?scrollX:t.scrollLeft:t===window?scrollY:t.scrollTop:t[o]||0:t.style[o]||getComputedStyle(t,e)[o]}function ss(t,o,e,r,a){F(a)&&(a=!1),o=ot(o),a&&(e=parseInt(e)),ea(t)?typeof t[o]<"u"?t[o]=e:t.style[o]=o==="transform"||o.toLowerCase().indexOf("color")>-1?e:e+r:t[o]=e}function cs(t,o,e){m.each(o,function(r,a){ss(t,r,a[0]+a[2]*e,a[3],a[4])})}function aa(t){if(!ea(t))return{};let o=t.style.transform||"",e=/(\w+)\(([^)]*)\)/g,r={},a;for(;a=e.exec(o);)r[a[1]]=a[2];return r}function hr(t){return/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t||"#000000").slice(1).map(function(e){return parseInt(e,16)})}function As(t,o){return getComputedStyle(t)[o].replace(/[^\d.,]/g,"").split(",").map(function(e){return parseInt(e)})}function ms(t,o,e){let r=[],a=aa(t);m.each(o,function(i,l){let s=l[0],c=l[1],A=l[2],p=l[3];i=""+i,(i.indexOf("rotate")>-1||i.indexOf("skew")>-1)&&p===""&&(p="deg"),i.indexOf("scale")>-1&&(p=""),i.indexOf("translate")>-1&&p===""&&(p="px"),p==="turn"?r.push(i+"("+c*e+p+")"):r.push(i+"("+(s+A*e)+p+")")}),m.each(a,function(i,l){o[i]===void 0&&r.push(i+"("+l+")")}),t.style.transform=r.join(" ")}function ps(t,o,e){m.each(o,function(r,a){let i,l=[0,0,0],s;for(i=0;i<3;i++)l[i]=Math.floor(a[0][i]+a[2][i]*e);s="rgb("+l.join(",")+")",t.style[r]=s})}function Ze(t){let o=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;return t[0]==="#"&&t.length===4?"#"+t.replace(o,function(e,r,a,i){return r+r+a+a+i+i}):t[0]==="#"?t:"#"+t}function $e(t,o,e){cs(t,o.props,e),ms(t,o.transform,e),ps(t,o.color,e)}function gs(t,o,e){let r={props:{},transform:{},color:{}},a,i,l,s,c,A,p=aa(t);return F(e)&&(e="normal"),m.each(o,function(g,h){let d=os.indexOf(""+g)>-1,u=rs.indexOf(""+g)>-1,f=(""+g).toLowerCase().indexOf("color")>-1;if(Array.isArray(h)&&h.length===1&&(h=h[0]),Array.isArray(h)?(i=f?hr(Ze(h[0])):to(h[0]),l=f?hr(Ze(h[1])):to(h[
401])):(d?i=p[g]||g==="scale"?1:0:f?i=As(t,g):i=ls(t,g,void 0),i=f?i:to(i),l=f?hr(h):to(ns(h,Array.isArray(i)?i[0]:i))),is.indexOf(""+g)>-1&&i[0]===l[0]&&(i[0]=l[0]>0?0:1),e==="reverse"&&(A=i,i=l,l=A),c=t instanceof HTMLElement&&l[1]===""&&!u&&!d?"px":l[1],f)for(s=[0,0,0],a=0;a<3;a++)s[a]=l[a]-i[a];else s=l[0]-i[0];d?r.transform[g]=[i[0],l[0],s,c]:f?r.color[g]=[i,l,s,c]:r.props[g]=[i[0],l[0],s,c,es.indexOf(""+g)===-1]}),r}function ta(t,o,e){return Math.min(Math.max(t,o),e)}var ut={linear:function(){return function(t){return t}}};ut.default=ut.linear;var dr={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){let o,e=4;for(;t<((o=Math.pow(2,--e))-1)/11;);return 1/Math.pow(4,3-e)-7.5625*Math.pow((o*3-2)/22-t,2)}},Elastic:function(t,o){F(t)&&(t=1),F(o)&&(o=.5);let e=ta(t,1,10),r=ta(o,.1,2);return function(a){return a===0||a===1?a:-e*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/e))*(Math.PI*2)/r)}}};["Quad","Cubic","Quart","Quint","Expo"].forEach(function(t,o){dr[t]=function(){return function(e){return Math.pow(e,o+2)}}});Object.keys(dr).forEach(function(t){let o=dr[t];ut["easeIn"+t]=o,ut["easeOut"+t]=function(e,r){return function(a){return 1-o(e,r)(1-a)}},ut["easeInOut"+t]=function(e,r){return function(a){return a<.5?o(e,r)(a*2)/2:1-o(e,r)(a*-2+2)/2}}});var hs={id:null,el:null,draw:{},dur:m.animation.duration,ease:m.animation.ease,loop:0,pause:0,dir:"normal",defer:0,onStart:function(){},onStop:function(){},onStopAll:function(){},onPause:function(){},onPauseAll:function(){},onResume:function(){},onResumeAll:function(){},onFrame:function(){},onDone:function(){}};function fr(t){return new Promise(function(o){let e=this,r=m.assign({},hs,{dur:m.animation.duration,ease:m.animation.ease},t),a=r.id,i=r.el,l=r.draw,s=r.dur,c=r.ease,A=r.loop,p=r.onStart,g=r.onFrame,h=r.onDone,d=r.pause,u=r.dir,f=r.defer,b={},I="linear",D=[],C=ut.linear,Y,x=u==="alternate"?"normal":u,v=!1,E=a||+(performance.now()*Math.pow(10,14));if(F(i))throw new Error("Unknown element!");if(typeof i=="string"&&(i=document.querySelector(i)),typeof l!="function"&&typeof l!="object")throw new Error("Unknown draw object. Must be a function or object!");s===0&&(s=1),u==="alternate"&&typeof A=="number"&&(A*=2),typeof c=="string"?(Y=/\(([^)]+)\)/.exec(c),I=c.split("(")[0],D=Y?Y[1].split(",").map(function(O){return parseFloat(O)}):[],C=ut[I]||ut.linear):typeof c=="function"?C=c:C=ut.linear,m.animation.elements[E]={element:i,id:null,stop:0,pause:0,loop:0,t:-1,started:0,paused:0};let w=function(){typeof l=="object"&&(b=gs(i,l,x)),typeof p=="function"&&p.apply(i),m.animation.elements[E].loop+=1,m.animation.elements[E].started=performance.now(),m.animation.elements[E].duration=s,m.animation.elements[E].id=requestAnimationFrame(J)},T=function(){cancelAnimationFrame(m.animation.elements[E].id),delete m.animation.elements[a],typeof h=="function"&&h.apply(i),o(e)},J=function(O){let it,P,{stop:mt,pause:_t,started:kt}=m.animation.elements[E];if(m.animation.elements[E].paused&&(kt=O-m.animation.elements[E].t*s,m.animation.elements[E].started=kt),P=((O-kt)/s).toFixed(4),P>1&&(P=1),P<0&&(P=0),it=C.apply(null,D)(P),m.animation.elements[E].t=P,m.animation.elements[E].p=it,_t){m.animation.elements[E].id=requestAnimationFrame(J);return}if(mt>0){mt===2&&(typeof l=="function"?l.bind(i)(1,1):$e(i,b,1)),T();return}typeof l=="function"?l.bind(i)(P,it):$e(i,b,it),typeof g=="function"&&g.apply(i,[P,it]),P<=1&&(m.animation.elements[E].id=requestAnimationFrame(J)),P>=1&&(A?(u==="alternate"&&(x=x==="normal"?"reverse":"normal"),typeof A=="boolean"?setTimeout(function(){w()},d):A>m.animation.elements[E].loop?setTimeout(function(){w()},d):T()):u==="alternate"&&!v?(x=x==="normal"?"reverse":"normal",v=!0,w()):T())};f>0?setTimeout(function(){w()},f):w()})}function oo(t,o){let e=m.animation.elements[t];typeof e>"u"||(F(o)&&(o=!0),e.stop=o===!0?2:1,typeof e.onStop=="function"&&e.onStop.apply(e.element))}function ds(t,o){m.each(m.animation.elements,function(e,r){o?typeof o=="str
40ing"?et.call(r.element,o)&&oo(e,t):o.length?m.each(o,function(){r.element===this&&oo(e,t)}):o instanceof Element&&r.element===o&&oo(e,t):oo(e,t)})}function ro(t){let o=m.animation.elements[t];typeof o>"u"||(o.pause=1,o.paused=performance.now(),typeof o.onPause=="function"&&o.onPause.apply(o.element))}function fs(t){m.each(m.animation.elements,function(o,e){t?typeof t=="string"?et.call(e.element,t)&&ro(o):t.length?m.each(t,function(){e.element===this&&ro(o)}):t instanceof Element&&e.element===t&&ro(o):ro(o)})}function eo(t){let o=m.animation.elements[t];typeof o>"u"||(o.pause=0,o.paused=0,typeof o.onResume=="function"&&o.onResume.apply(o.element))}function us(t){m.each(m.animation.elements,function(o,e){t?typeof t=="string"?et.call(e.element,t)&&eo(o):t.length?m.each(t,function(){e.element===this&&eo(o)}):t instanceof Element&&e.element===t&&eo(o):eo(o)})}var bs={loop:!1,onChainItem:null,onChainItemComplete:null,onChainComplete:null};function ia(t,o){let e=m.extend({},bs,o);if(typeof e.loop!="boolean"&&e.loop--,!Array.isArray(t))return console.warn("Chain array is not defined!"),!1;let r=function(a,i){return a.then(function(){return typeof e.onChainItem=="function"&&e.onChainItem(i),fr(i).then(function(){typeof e.onChainItemComplete=="function"&&e.onChainItemComplete(i)})})};t.reduce(r,Promise.resolve()).then(function(){typeof e.onChainComplete=="function"&&e.onChainComplete(),e.loop&&ia(t,e)})}m.easing={};m.extend(m.easing,ut);m.extend({animate:function(t){let o,e,r,a,i;return arguments.length>1?(o=m(arguments[0])[0],e=arguments[1],r=arguments[2]||m.animation.duration,a=arguments[3]||m.animation.ease,i=arguments[4],typeof r=="function"&&(i=r,a=m.animation.ease,r=m.animation.duration),typeof a=="function"&&(i=a,a=m.animation.ease),fr({el:o,draw:e,dur:r,ease:a,onDone:i})):fr(t)},chain:ia,stop:oo,stopAll:ds,resume:eo,resumeAll:us,pause:ro,pauseAll:fs});m.fn.extend({animate:function(t){let o=this,e,r,a,i,l=t,s;return s=!Array.isArray(t)&&(arguments.length>1||arguments.length===1&&typeof arguments[0].draw>"u"),s?(e=arguments[0],r=arguments[1]||m.animation.duration,a=arguments[2]||m.animation.ease,i=arguments[3],typeof r=="function"&&(i=r,r=m.animation.duration,a=m.animation.ease),typeof a=="function"&&(i=a,a=m.animation.ease),this.each(function(){return m.animate({el:this,draw:e,dur:r,ease:a,onDone:i})})):Array.isArray(t)?(m.each(t,function(){let c=this;o.each(function(){c.el=this,m.animate(c)})}),this):this.each(function(){l.el=this,m.animate(l)})},chain:function(t,o){return this.each(function(){let e=this;m.each(t,function(){this.el=e}),m.chain(t,o)})},stop:function(t){return this.each(function(){let o=this;m.each(m.animation.elements,function(e,r){r.element===o&&oo(e,t)})})},pause:function(){return this.each(function(){let t=this;m.each(m.animation.elements,function(o,e){e.element===t&&ro(o)})})},resume:function(){return this.each(function(){let t=this;m.each(m.animation.elements,function(o,e){e.element===t&&eo(o)})})}});m.extend({hidden:function(t,o,e){return t=m(t)[0],typeof o>"u"?(t.hidden=!t.hidden,this):(typeof o=="string"&&(o=o.toLowerCase()==="true"),typeof o=="function"&&(e=o,o=!t.hidden),t.hidden=o,typeof e=="function"&&(m.bind(e,t),e.call(t,arguments)),this)},hide:function(t,o){let e=m(t);t=e[0];let r=t.style.display,a=getComputedStyle(t,null).display;return e.origin("display",{inline:r,css:a}),t.style.display="none",typeof o=="function"&&(m.bind(o,t),o.call(t,arguments)),this},show:function(t,o){let r=m(t).origin("display");if(t=m(t)[0],t.style.display="",r){let a=r.inline||"",i=r.css||"";a&&a!=="none"?t.style.display=a:i==="none"&&(t.style.display="block")}else t.style.display="block";return parseInt(t.style.opacity)===0&&(t.style.opacity="1"),typeof o=="function"&&(m.bind(o,t),o.call(t,arguments)),this},visible:function(t,o,e){return o===void 0&&(o=!0),t.style.visibility=o?"visible":"hidden",typeof e=="function"&&(m.bind(e,t),e.call(t,arguments)),this},toggle:function(t,o){let e=getComputedStyle(t,null).display!=="none"?"hide":"show";return m[e](t,o)}});m.fn.extend({hide:function(){let t;return m.each(arguments,function(){typeof this=="function"&&(t=this)}),this.each(function(){m.hide(this,t)})},show:function(){let t;return m.each(arguments,function(){typeof this=="function"&&(t=this)}),this.each(function(){m.show(this,t)})},visible:function(t,o){return this.each(function(){m.visible(this,t,o)})},toggle:function(t){return this.each(function(){m.toggle(this,t)})},hidden:function(t,o){return this.each(function(){m.hidden(this,t,o)})}});m.extend({fx:{off:!1}});m.fn.extend({fadeIn:function(t,o,e){return this.each(function(){let r=this,a=m(r),i=!(!ao(r)||ao(r)&&+a.style("opacity")==0);if(F(t)&&F(o)&&F(e)?(e=null,t=m.animation.duration):typeof t=="function"&&(e=t,t=m.animation.duration),typeof o=="function"&&(e=o,o=m.animation.ease),m.fx.off&&(t=0),i)return typeof e=="function"&&m.bind(e,this)(),this;let l=a.origin("display",void 0,"block");return r.style.opacity="0",r.style.display=l,m.animate({el:r,draw:{opacity:1},dur:t,ease:o,onDone:function(){typeof e=="function"&&m.bind(e,this)()}})})},fadeOut:function(t,o,e){return this.each(function(){let r=this,a=m(r);return F(t)&&F(o)&&F(e)?(e=null,t=m.animation.duration):typeof t=="function"&&(e=t,t=m.animation.duration),typeof o=="function"&&(e=o,o=m.animation.ease),a.origin("display",a.style("display")),ao(r)?m.animate({el:r,draw:{opacity:0}
40,dur:t,ease:o,onDone:function(){this.style.display="none",typeof e=="function"&&m.bind(e,this)()}}):(typeof e=="function"&&m.bind(e,this)(),this)})},slideUp:function(t,o,e){return this.each(function(){let r=this,a=m(r),i;if(a.height()!==0)return F(t)&&F(o)&&F(e)?(e=null,t=m.animation.duration):typeof t=="function"&&(e=t,t=m.animation.duration),typeof o=="function"&&(e=o,o=m.animation.ease),i=a.height(),a.origin("height",i),a.origin("display",m(r).style("display")),a.css({overflow:"hidden"}),m.animate({el:r,draw:{height:0},dur:t,ease:o,onDone:function(){a.hide().removeStyleProperty("overflow, height"),typeof e=="function"&&m.bind(e,this)()}})})},slideDown:function(t,o,e){return this.each(function(){let r=this,a=m(r),i,l;return F(t)&&F(o)&&F(e)?(e=null,t=m.animation.duration):typeof t=="function"&&(e=t,t=m.animation.duration),typeof o=="function"&&(e=o,o=m.animation.ease),a.show().visible(!1),i=+a.origin("height",void 0,a.height()),parseInt(i)===0&&(i=r.scrollHeight),l=a.origin("display",a.style("display"),"block"),a.height(0).visible(!0),a.css({overflow:"hidden",display:l==="none"?"block":l}),m.animate({el:r,draw:{height:i},dur:t,ease:o,onDone:function(){m(r).removeStyleProperty("overflow, height, visibility"),typeof e=="function"&&m.bind(e,this)()}})})},moveTo:function(t,o,e,r,a){let i={top:o,left:t};return typeof e=="function"&&(a=e,e=m.animation.duration,r=m.animation.ease),typeof r=="function"&&(a=r,r=m.animation.ease),this.each(function(){m.animate({el:this,draw:i,dur:e,ease:r,onDone:a})})},centerTo:function(t,o,e,r,a){return typeof e=="function"&&(a=e,e=m.animation.duration,r=m.animation.ease),typeof r=="function"&&(a=r,r=m.animation.ease),this.each(function(){let i={left:t-this.clientWidth/2,top:o-this.clientHeight/2};m.animate({el:this,draw:i,dur:e,ease:r,onDone:a})})},colorTo:function(t,o,e,r){let a={color:t};return typeof o=="function"&&(r=o,o=m.animation.duration,e=m.animation.ease),typeof e=="function"&&(r=e,e=m.animation.ease),this.each(function(){m.animate({el:this,draw:a,dur:o,ease:e,onDone:r})})},backgroundTo:function(t,o,e,r){let a={backgroundColor:t};return typeof o=="function"&&(r=o,o=m.animation.duration,e=m.animation.ease),typeof e=="function"&&(r=e,e=m.animation.ease),this.each(function(){m.animate({el:this,draw:a,dur:o,ease:e,onDone:r})})},zoomIn:function(t,o,e){let r={scale:[0,1]};return typeof t=="function"&&(e=t,t=m.animation.duration,o=m.animation.ease),typeof o=="function"&&(e=o,o=m.animation.ease),this.each(function(){m.animate({el:this,draw:r,dur:t,ease:o,onDone:e})})},zoomOut:function(t=1e3,o="linear",e=()=>{}){return typeof t=="function"&&(e=t,t=m.animation.duration,o=m.animation.ease),typeof o=="function"&&(e=o,o=m.animation.ease),this.each(function(){m.animate({el:this,draw:{scale:0},dur:t,ease:o,onDone:e})})}});m.extend({scrollTop:function(t){if(F(t))return window.scrollY;window.scrollTo(window.scrollX,t)},scrollLeft:function(t){if(F(t))return window.scrollX;window.scrollTo(t,window.scrollY)},scrollTo:function(t,o){window.scrollTo(t,o)},scrollToElement:function(t){m(t).scrollTo()}});m.fn.extend({scrollTop:function(t){return F(t)?this.length===0?void 0:this[0]===window?scrollY:this[0].scrollTop:this.each(function(){if(this===window){window.scrollTo(window.scrollX,t);return}this.scrollTop=t})},scrollLeft:function(t){return F(t)?this.length===0?void 0:this[0]===window?scrollX:this[0].scrollLeft:this.each(function(){if(this===window){window.scrollTo(t,window.scrollY);return}this.scrollLeft=t})},scrollTo:function(t=!1){if(this.length===0)return this;let o=this[0].getBoundingClientRect(),e=o.left+(t?0:window.scrollX),r=o.top+(t?0:window.scrollY);return window.scrollTo(e,r),this}});m.init=function(t,o){let e,r=this;if(typeof t=="string"&&(t=t.trim()),this.uid=m.uniqueId(),!t)return this;if(typeof t=="function")return m.ready(t);if(t instanceof Element)return this.push(t),this;if(t instanceof m)return m.each(t,function(){r.push(this)}),this;if(t==="window"||t===window)return this.push(window),this;if(t==="document"||t===document)return this.push(document),this;if(t==="body"||t===document.body)return this.push(document.body),this;if(t==="html"||t===document.documentElement)return this.push(document.documentElement),this;if(t==="doctype"||t===document.doctype)return this.push(document.doctype),this;if(t&&t.nodeType)return this.push(t),this;if(io(t))return m.each(t,function(){m(this).each(function(){r.push(this)})}),this;if(typeof t!="string"&&t.self&&t.self!==window)return this;if(t==="#"||t===".")return this;if(t[0]==="@")m("[data-role]").each(function(){Rt(m(this).attr("data-role"),",").indexOf(t.slice(1))>-1&&r.push(this)});else{e=m.parseHTML(t);for(let a=0;a<e.length;a++)e[a].nodeType===1&&this.push(e[a])}return o!==void 0&&(o instanceof m?this.each(function(){m(o).append(r)}):o instanceof HTMLElement?m(o).append(r):jt(o)&&m.each(this,function(){for(let a in o)Ct(o,a)&&this.setAttribute(a,o[a])})),this};m.init.prototype=m.fn;globalThis.Dom=m;typeof $>"u"&&(globalThis.$=m);var br={};Hr(br,{EVENTS:()=>na,info:()=>Ss,useClickOutside:()=>xs,useCompose:()=>Bs,useCookie:()=>ws,useCurry:()=>Es,useDebounce:()=>vs,useEvent:()=>Qs,useId:()=>Is,useInterval:()=>Ms,useMediaQuery:()=>Cs,useMemo:()=>Fs,usePipe:()=>Ds,useQueue:()=>Ys,useState:()=>zs,useThrottle:()=>Rs,useToggle:()=>js});function xs(t,o){if(!t)return{attach:()=>{},detach:()=>{}};let e=i=>{t.contains(i.target)||o()};return{attach:()=>document.addEventListener("click",e),detach:()=>document.removeEventListener("click",e)}}function Bs(...t){if(!t.every(o=>typeof o=="function"))throw new Error("useCompose: All arguments should be functions");switch(t.length){case 0:return o=>o;case 1:return t[0];case 2:{let[o,e]=t;return(...r)=>o(e(...r))}default:return function(...e){let r=t[t.length-1](...e);for(let a=t.length-2;a>=0;a--)r=t[a](r);return r}}}function ws(t){function o(){let a=document.cookie.match(new RegExp(`(?:^|; )${t.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")}=([^;]*)`));
40return a?decodeURIComponent(a[1]):null}function e(a,i={}){i={path:"/",...i},document.cookie=`${t}=${encodeURIComponent(a)}; ${Object.keys(i).map(l=>`${l}=${i[l]}`).join("; ")}`}function r(){e("",{"max-age":-1})}return{get:o,set:e,delete:r}}function Es(t){if(typeof t!="function")throw new Error("useCurry: \u043F\u0435\u0440\u0432\u044B\u0439 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0444\u0443\u043D\u043A\u0446\u0438\u0435\u0439");return function o(...e){return e.length>=t.length?t.apply(this,e):function(...r){return o.apply(this,e.concat(r))}}}function vs(t,o,e={}){if(typeof t!="function")throw new Error("useDebounce: \u043F\u0435\u0440\u0432\u044B\u0439 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0444\u0443\u043D\u043A\u0446\u0438\u0435\u0439");if(o<0)throw new Error("useDebounce: \u0432\u0440\u0435\u043C\u044F \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043F\u043E\u043B\u043E\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u043C \u0447\u0438\u0441\u043B\u043E\u043C");let r=null,a;function i(...l){let s=this,c=e.immediate&&!r;return r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,e.immediate||(a=t.apply(s,l))},o),c&&(a=t.apply(s,l)),a}return i.cancel=function(){r!==null&&(clearTimeout(r),r=null)},i}var na=(t=>(t.LOAD="load",t.VIEWPORT="viewport",t.ATTRIBUTE="attribute",t.CHILDREN="children",t.DATA="data",t))(na||{}),Qs=({event:t,root:o,target:e,effect:r})=>{let a=typeof e=="string"?document.querySelector(e):e;if(typeof r!="function")throw Error("Side effect must be a function!");if(!a)throw Error("Please specify a target element!");switch(t){case"load":{new MutationObserver((l,s)=>{let c=document.querySelector(e);c!==null&&(r(c),s.disconnect())}).observe(document.body,{childList:!0,subtree:!0});break}case"viewport":{let l={root:o instanceof HTMLElement?o:typeof o=="string"?document.querySelector(o):null,rootMargin:"0px",threshold:.5};new IntersectionObserver((c,A)=>{for(let p of c)p.isIntersecting&&r(a)},l).observe(a);break}case"attribute":{new MutationObserver(l=>{for(let s of l)s.target===a&&s.type==="attributes"&&r(a,s.attributeName,a.getAttribute(s.attributeName))}).observe(a,{attributes:!0});break}case"children":{new MutationObserver(l=>{for(let s of l)s.target===a&&s.type==="childList"&&r(a,s.addedNodes,s.removedNodes)}).observe(a,{childList:!0,subtree:!0});break}case"data":{new MutationObserver(l=>{for(let s of l)s.target===a&&s.type==="characterData"&&r(a,a.textContent)}).observe(a,{characterData:!0});break}default:a instanceof HTMLElement&&a.addEventListener(t,i=>{r(a,i)})}},ur=new Map,ks=0;function ys(t){return t.replace(/[^a-zA-Z0-9_-]/g,"_")}function Is(t,o={}){let e=t??Symbol("id-key"),{divider:r="-",prefix:a="id",forceNew:i=!1}=o;if(!i&&ur.has(e))return ur.get(e);let l=typeof document<"u",s=1e3,c=0,A=()=>{let g;return t instanceof HTMLElement?g=t.tagName.toLowerCase():typeof t=="object"&&t!==null?g="object":t!==void 0?g=ys(String(t)):g="generic",`${a}${r}${g}${r}${ks++}`},p=A();if(l)for(;document.getElementById(p);){if(c++>s)throw new Error("useId: \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0439 ID \u043F\u043E\u0441\u043B\u0435 \u043C\u043D\u043E\u0433\u043E\u0447\u0438\u0441\u043B\u0435\u043D\u043D\u044B\u0445 \u043F\u043E\u043F\u044B\u0442\u043E\u043A");p=A()}return ur.set(e,p),p}function Ms(t,o){let e=null;function r(){e||(e=window.setInterval(()=>t(),o))}function a(){e&&(window.clearInterval(e),e=null)}return{start:r,stop:a}}function Cs(t){let o=window.matchMedia(t);function e(){return o.matches}let r=e();function a(){r=e()}return o.addEventListener("change",a),r}var Fs=(t,o={})=>{let e=new Map,{maxSize:r}=o,a=(...i)=>{let l=JSON.stringify(i);if(e.has(l))return e.get(l);let s=t(...i);if(r&&e.size>=r){let c=e.keys().next().value;typeof c=="string"&&e.delete(c)}return e.set(l,s),s};return a.clearCache=()=>(e.clear(),!0),a};function Ds(...t){if(!t.every(o=>typeof o=="function"))throw new Error("usePipe: \u0432\u0441\u0435 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u0444\u0443\u043D\u043A\u0446\u0438\u044F\u043C\u0438");switch(t.length){case 0:return o=>o;case 1:return t[0];case 2:{let[o,e]=t;return(...r)=>e(o(...r))}default:return function(...e){let r=t[0](...e);for(let a=1;a<t.length;a++)r=t[a](r);return r}}}function Ys(){let t=[];return{enqueue:o=>(t.push(o),t.length),dequeue:()=>t.shift(),peek:()=>t[0]||null,size:()=>t.length,isEmpty:()=>t.length===0,clear:()=>{t.length=0}}}var Tt=[],Us=-1,Ns=class{constructor(t){this.index=t}valueOf(){return Tt[this.index].value}toString(){let t=Tt[this.index].value;return String(t)}[Symbol.toPrimitive](t){let o=Tt[this.index].value;return t==="number"&&typeof o=="number"?o:t==="string"?String(o):o}},zs=(t,o)=>{let e=Us++;return Tt[e]||(Tt[e]={value:t}),[new Ns(e),i=>{let l=Tt[e].value,s=typeof i=="function"?i(l):i;Tt[e].value=s,typeof o=="function"&&o(s,l)}]};function Rs(t,o,e={}){if(typeof t!="function")throw new Error("useThrottle: \u043F\u0435\u0440\u0432\u044B\u0439 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0444\u0443\u043D\u043A\u0446\u0438\u0435\u0439");
40if(o<0)throw new Error("useThrottle: \u0432\u0440\u0435\u043C\u044F \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043F\u043E\u043B\u043E\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u043C \u0447\u0438\u0441\u043B\u043E\u043C");let r=null,a=null,i=null,l,s=null,{leading:c=!0,trailing:A=!0}=e;function p(){l=t.apply(i,a),a=i=null,s=Date.now()}function g(...h){let d=Date.now();!s&&!c&&(s=d);let u=o-(d-s);return a=h,i=this,u<=0||u>o?(r&&(clearTimeout(r),r=null),p()):!r&&A&&(r=setTimeout(()=>{r=null,A&&a&&p()},u)),l}return g.cancel=function(){r&&(clearTimeout(r),r=null),a=i=null,s=null},g}function js(t=!1){let o=t;return{get:()=>o,toggle:()=>(o=!o,o),set:e=>(o=e,o)}}var Ts="0.13.0",Js="07.03.2025, 23:32:05",Ss=()=>{console.info(`%c Hooks %c v${Ts} %c ${Js} `,"color: #ffffff; font-weight: bold; background: #5c2c05","color: white; background: darkgreen","color: white; background: #0080fe;")};globalThis.Hooks=br;var Gs=Object.defineProperty,Hs=(t,o)=>{for(var e in o)Gs(t,e,{get:o[e],enumerable:!0})},Br={};Hs(Br,{Primitives:()=>sa,add:()=>Ia,brighten:()=>ya,cmyk2rgb:()=>vr,cmyk2websafe:()=>xa,colorDefaultProps:()=>Vo,colorToString:()=>ga,colorType:()=>Qt,colorTypes:()=>Z,create:()=>Ps,createColor:()=>Aa,createColorScheme:()=>Ma,darken:()=>wa,desaturate:()=>Qa,equal:()=>pa,expand:()=>Ls,expandHexColor:()=>Eo,grayscale:()=>Ba,hex2hsv:()=>Ks,hex2rgb:()=>Lo,hex2websafe:()=>fa,hsl2hsv:()=>ha,hsl2websafe:()=>ba,hsv2hex:()=>Os,hsv2hsl:()=>Ko,hsv2rgb:()=>Ft,hsv2websafe:()=>ua,hueShift:()=>Ea,isCMYK:()=>so,isColor:()=>Et,isDark:()=>wr,isHEX:()=>Qo,isHSL:()=>lo,isHSLA:()=>Ht,isHSV:()=>Lt,isLight:()=>ma,isPrimitive:()=>Ca,isRGB:()=>vo,isRGBA:()=>Ut,lighten:()=>Jt,mix:()=>rt,multiply:()=>Qr,parse:()=>Po,parseColor:()=>ft,random:()=>Ws,randomColor:()=>kr,rgb2cmyk:()=>Er,rgb2hex:()=>Oo,rgb2hsv:()=>ht,rgb2websafe:()=>Ot,rgba2websafe:()=>da,saturate:()=>St,shade:()=>va,spin:()=>ka,test:()=>ca,toCMYK:()=>bo,toColor:()=>dt,toHEX:()=>vt,toHSL:()=>no,toHSLA:()=>Yt,toHSV:()=>Vt,toRGB:()=>L,toRGBA:()=>Dt,websafe:()=>xr});var K=class{constructor(t=0,o=0,e=0){this.h=t,this.s=o,this.v=e}toString(){return"hsv("+[Math.round(this.h),Math.round(this.s*100)+"%",Math.round(this.v*100)+"%"].join(",")+")"}},xo=class{constructor(t=0,o=0,e=0){this.h=t,this.s=(""+o).includes("%")?parseInt(o)/100:o,this.l=(""+e).includes("%")?parseInt(e)/100:e}toString(){return"hsl("+[Math.round(this.h),Math.round(this.s*100)+"%",Math.round(this.l*100)+"%"].join(",")+")"}},Bo=class{constructor(t=0,o=0,e=0,r=0){this.h=t,this.s=(""+o).includes("%")?parseInt(o)/100:o,this.l=(""+e).includes("%")?parseInt(e)/100:e,this.a=r}toString(){return"hsla("+[Math.round(this.h),Math.round(this.s*100)+"%",Math.round(this.l*100)+"%",parseFloat(this.a).toFixed(2)].join(",")+")"}},st=class{constructor(t=0,o=0,e=0){this.r=t,this.g=o,this.b=e}toString(){return`rgb(${this.r},${this.g},${this.b})`}},Pt=class{constructor(t=0,o=0,e=0,r=0){this.r=t,this.g=o,this.b=e,this.a=r}toString(){return`rgba(${this.r},${this.g},${this.b},${this.a})`}},wo=class{constructor(t=0,o=0,e=0,r=0){this.c=t,this.m=o,this.y=e,this.k=r}toString(){return`cmyk(${this.c},${this.m},${this.y},${this.k})`}},Gt={aliceBlue:"#f0f8ff",antiqueWhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedAlmond:"#ffebcd",blue:"#0000ff",blueViolet:"#8a2be2",brown:"#a52a2a",burlyWood:"#deb887",cadetBlue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerBlue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkBlue:"#00008b",darkCyan:"#008b8b",darkGoldenRod:"#b8860b",darkGray:"#a9a9a9",darkGreen:"#006400",darkKhaki:"#bdb76b",darkMagenta:"#8b008b",darkOliveGreen:"#556b2f",darkOrange:"#ff8c00",darkOrchid:"#9932cc",darkRed:"#8b0000",darkSalmon:"#e9967a",darkSeaGreen:"#8fbc8f",darkSlateBlue:"#483d8b",darkSlateGray:"#2f4f4f",darkTurquoise:"#00ced1",darkViolet:"#9400d3",deepPink:"#ff1493",deepSkyBlue:"#00bfff",dimGray:"#696969",dodgerBlue:"#1e90ff",fireBrick:"#b22222",floralWhite:"#fffaf0",forestGreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#DCDCDC",ghostWhite:"#F8F8FF",gold:"#ffd700",goldenRod:"#daa520",gray:"#808080",green:"#008000",greenYellow:"#adff2f",honeyDew:"#f0fff0",hotPink:"#ff69b4",indianRed:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderBlush:"#fff0f5",lawnGreen:"#7cfc00",lemonChiffon:"#fffacd",lightBlue:"#add8e6",lightCoral:"#f08080",lightCyan:"#e0ffff",lightGoldenRodYellow:"#fafad2",lightGray:"#d3d3d3",lightGreen:"#90ee90",lightPink:"#ffb6c1",lightSalmon:"#ffa07a",lightSeaGreen:"#20b2aa",lightSkyBlue:"#87cefa",lightSlateGray:"#778899",lightSteelBlue:"#b0c4de",lightYellow:"#ffffe0",lime:"#00ff00",limeGreen:"#32dc32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumAquaMarine:"#66cdaa",mediumBlue:"#0000cd",mediumOrchid:"#ba55d3",mediumPurple:"#9370db",mediumSeaGreen:"#3cb371",mediumSlateBlue:"#7b68ee",mediumSpringGreen:"#00fa9a",mediumTurquoise:"#48d1cc",mediumVioletRed:"#c71585",midnightBlue:"#191970",mintCream:"#f5fffa",mistyRose:"#ffe4e1",moccasin:"#ffe4b5",navajoWhite:"#ffdead",navy:"#000080",oldLace:"#fdd5e6",olive:"#808000",oliveDrab:"#6b8e23",orange:"#ffa500",orangeRed:"#ff4500",orchid:"#da70d6",paleGoldenRod:"#eee8aa",paleGreen:"#98fb98",paleTurquoise:"#afeeee",paleVioletRed:"#db7093",papayaWhi
40p:"#ffefd5",peachPuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderBlue:"#b0e0e6",purple:"#800080",rebeccaPurple:"#663399",red:"#ff0000",rosyBrown:"#bc8f8f",royalBlue:"#4169e1",saddleBrown:"#8b4513",salmon:"#fa8072",sandyBrown:"#f4a460",seaGreen:"#2e8b57",seaShell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",slyBlue:"#87ceeb",slateBlue:"#6a5acd",slateGray:"#708090",snow:"#fffafa",springGreen:"#00ff7f",steelBlue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whiteSmoke:"#f5f5f5",yellow:"#ffff00",yellowGreen:"#9acd32"},Ho={lime:"#a4c400",green:"#60a917",emerald:"#008a00",blue:"#00AFF0",teal:"#00aba9",cyan:"#1ba1e2",cobalt:"#0050ef",indigo:"#6a00ff",violet:"#aa00ff",pink:"#dc4fad",magenta:"#d80073",crimson:"#a20025",red:"#CE352C",orange:"#fa6800",amber:"#f0a30a",yellow:"#fff000",brown:"#825a2c",olive:"#6d8764",steel:"#647687",mauve:"#76608a",taupe:"#87794e"},la={color:function(t,o=Gt,e=void 0){return o[t]!==void 0?o[t]:e},palette:function(t=Gt){return Object.keys(t)},colors:function(t=Gt){return Object.values(t)}},sa={HSV:K,HSL:xo,HSLA:Bo,RGB:st,RGBA:Pt,CMYK:wo},Z={HEX:"hex",RGB:"rgb",RGBA:"rgba",HSV:"hsv",HSL:"hsl",HSLA:"hsla",CMYK:"cmyk",UNKNOWN:"unknown"},Vo={angle:30,algorithm:1,step:.1,distance:5,tint1:.8,tint2:.4,shade1:.6,shade2:.3,alpha:1,baseLight:"#ffffff",baseDark:"self"};function Vs(t,o){let e;switch(o){case"hex":e=t.map(function(r){return vt(r)});break;case"rgb":e=t.map(function(r){return L(r)});break;case"rgba":e=t.map(function(r){return Dt(r,opt.alpha)});break;case"hsl":e=t.map(function(r){return no(r)});break;case"hsla":e=t.map(function(r){return Yt(r,opt.alpha)});break;case"cmyk":e=t.map(function(r){return bo(r)});break;default:e=t}return e}function bt(t,o,e){return Math.max(o,Math.min(t,e))}function At(t,o,e){return t<o?o:t>e?e:t}function lt(t,o){for(t+=o;t>=360;)t-=360;for(;t<0;)t+=360;return t}var ca=t=>{let o=c=>/^#([A-Fa-f0-9]{3}){1,2}$/.test(c),e=c=>/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(c),r=c=>/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(0(\.\d+)?|1(\.0+)?)\s*\)$/.test(c),a=c=>/^hsv\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(c),i=c=>/^hsl\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(c),l=c=>/^hsla\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(0(\.\d+)?|1(\.0+)?)\s*\)$/.test(c),s=c=>/^cmyk\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(c);return o(t)||e(t)||a(t)||l(t)||l(t)||r(t)||i(t)||s(t)},Aa=(t="hex",o="#000000")=>{let e;return typeof o=="string"&&(e=ft(o)),Et(e)||(e="#000000"),dt(e,t.toLowerCase())},Ps=Aa,Eo=function(t){if(Et(t)&&typeof t!="string")return t;if(typeof t!="string")throw new Error("Value is not a string!");if(t[0]==="#"&&t.length===4){let o=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;return"#"+t.replace(o,(e,r,a,i)=>r+r+a+a+i+i)}return t[0]==="#"?t:"#"+t},Ls=Eo,wr=t=>{if(t=ft(t),!Et(t))return;let o=L(t);return(o.r*299+o.g*587+o.b*114)/1e3<128},ma=t=>!wr(t),Lt=t=>ft(t)instanceof K,lo=t=>ft(t)instanceof xo,Ht=t=>ft(t)instanceof Bo,vo=t=>ft(t)instanceof st,Ut=t=>ft(t)instanceof Pt,so=t=>ft(t)instanceof wo,Qo=t=>/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t),Et=t=>t?typeof t=="string"?ca(t):Qo(t)||vo(t)||Ut(t)||Lt(t)||lo(t)||Ht(t)||so(t):!1,Qt=t=>Qo(t)?Z.HEX:vo(t)?Z.RGB:Ut(t)?Z.RGBA:Lt(t)?Z.HSV:lo(t)?Z.HSL:Ht(t)?Z.HSLA:so(t)?Z.CMYK:Z.UNKNOWN,pa=(t,o)=>!Et(t)||!Et(o)?!1:vt(t)===vt(o),ga=t=>t.toString(),Lo=t=>{let o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(Eo(t)),e=[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)];return o?new st(...e):null},Oo=t=>"#"+((1<<24)+(t.r<<16)+(t.g<<8)+t.b).toString(16).slice(1),ht=t=>{let o=new K,e,r,a,i=t.r/255,l=t.g/255,s=t.b/255,c=Math.max(i,l,s),A=Math.min(i,l,s),p=c-A;return a=c,c===0?r=0:r=1-A/c,c===A?e=0:c===i&&l>=s?e=60*((l-s)/p):c===i&&l<s?e=60*((l-s)/p)+360:c===l?e=60*((s-i)/p)+120:c===s?e=60*((i-l)/p)+240:e=0,o.h=e,o.s=r,o.v=a,o},Ft=t=>{let o,e,r,a=t.h,i=t.s*100,l=t.v*100,s=Math.floor(a/60),c=(100-i)*l/100,A=(l-c)*(a%60/60),p=c+A,g=l-A;switch(s){case 0:o=l,e=p,r=c;break;case 1:o=g,e=l,r=c;break;case 2:o=c,e=l,r=p;break;case 3:o=c,e=g,r=l;break;case 4:o=p,e=c,r=l;break;case 5:o=l,e=c,r=g;break}return new st(Math.round(o*255/100),Math.round(e*255/100),Math.round(r*255/100))},Os=t=>Oo(Ft(t)),Ks=t=>ht(Lo(t)),Er=t=>{let o=new wo,e=t.r/255,r=t.g/255,a=t.b/255;return o.k=Math.min(1-e,1-r,1-a),o.c=1-o.k===0?0:(1-e-o.k)/(1-o.k),o.m=1-o.k===0?0:(1-r-o.k)/(1-o.k),o.y=1-o.k===0?0:(1-a-o.k)/(1-o.k),o.c=Math.round(o.c*100),o.m=Math.round(o.m*100),o.y=Math.round(o.y*100),o.k=Math.round(o.k*100),o},vr=t=>{let o=Math.floor(255*(1-t.c/100)*(1-t.k/100)),e=Math.ceil(255*(1-t.m/100)*(1-t.k/100)),r=Math.ceil(255*(1-t.y/100)*(1-t.k/100));return new st(o,e,r)},Ko=t=>{let o,e,r,a;return o=parseInt(t.h),r=(2-t.s)*t.v,e=t.s*t.v,r===0?e=0:(a=r<=1?r:2-r,a===0?e=0:e/=a),r/=2,Number.isNaN(e)&&(e=0),Number.isNaN(r)&&(r=0),new xo(o,e,r)},ha=t=>{let o,e,r,a;return o=t.h,a=t.l*2,e=t.s*(a<=1?a:2-a),r=(a+e)/2,a+e===0?e=0:e=2*e/(a+e),new K(o,e,r)},Ot=t=>new st(Math.round(t.r/51)*51,Math.round(t.g/51)*51,Math.round(t.b/51)*51),da=t=>{let o=Ot(t);return new Pt(o.r,o.g,o.b,t.a)},fa=t=>Oo(Ot(Lo(t))),ua=t=>ht(Ot(L(t))),ba=t=>Ko(ht(Ot(L(t)))),xa=t=>Er(Ot(vr(t))),xr=t=>Qo(t)?fa(t):vo(t)?Ot(t):Ut(t)?da(t):Lt(t)?ua(t):lo(t)?ba(t):so(t)?xa(t):t,dt=(t,o="rgb",e=1)=>{let r;switch(o.toLowerCase()){case"hex":r=vt(t);break;case"rgb":r=L(t);break;case"rgba":r=Dt(t,e);break;case"hsl":r=no(t);break;case"hsla":r=Yt(t,e);break;case"hsv":r=Vt(t);break;case"cmyk":r=bo(t);break;default:r=t}return r},vt=t=>typeof t=="string"&&t[0]==="#"?Eo(t):Oo(L(Po(t))),L=t=>{if(vo(t))return t;if(Ut(t))return new st(t.r,t.g,t.b);if(Lt(t))return Ft(t);if(lo(t)||Ht(t))return Ft(ha(t));if(Qo(t))return Lo(t);if(so(t))return vr(t);throw new Error("Unknown color format!")},Dt=(t,o)=>{if(Ut(t))return typeof o<"u"&&(t.a=o),t;let e=L(t);return new Pt(e.r,e.g,e.b,typeof t.a<"u"?t.a:o)},Vt=t=>Lt(t)?t:ht(L(t)),no=t=>lo(t)?t:Ko(ht(L(t))),Yt=(t,o=1)=>
40{if(Ht(t))return o&&(t.a=o),t;let e=Ko(ht(L(t)));return e.a=typeof t.a<"u"?t.a:o,new Bo(e.h,e.s,e.l,e.a)},bo=t=>so(t)?t:Er(L(t)),Ba=t=>{let o=L(t),e=Qt(t).toLowerCase(),r=Math.round(o.r*.2125+o.g*.7154+o.b*.0721),a=new st(r,r,r);return dt(a,e)},wa=(t,o=10)=>Jt(t,-1*Math.abs(o)),Jt=(t,o=10)=>{let e=Qt(t).toLowerCase(),r=Yt(t);return r.l+=o/100,r.l=bt(r.l,0,1),dt(r,e)},Ea=(t,o,e=1)=>{let r=Vt(t),a=Qt(t).toLowerCase(),i=r.h;for(i+=o;i>=360;)i-=360;for(;i<0;)i+=360;return r.h=i,dt(r,a,e)},rt=(t,o,e)=>{e=e===0?0:e||50;let r=new st(0,0,0),a=L(t),i=L(o),l=e/100;return r.r=Math.round((i.r-a.r)*l+a.r),r.g=Math.round((i.g-a.g)*l+a.g),r.b=Math.round((i.b-a.b)*l+a.b),vt(r)},Qr=(t,o)=>{let e=L(t),r=L(o),a=new st;return e.b=Math.floor(e.b*r.b/255),e.g=Math.floor(e.g*r.g/255),e.r=Math.floor(e.r*r.r/255),vt(a)},va=(t,o)=>{if(!Et(t))throw new Error(t+" is not a valid color value!");o/=100;let e=Qt(t).toLowerCase(),r=L(t),a=o<0?0:255,i=o<0?o*-1:o,l,s,c,A;return l=Math.round((a-r.r)*i)+r.r,s=Math.round((a-r.g)*i)+r.g,c=Math.round((a-r.b)*i)+r.b,(e===Z.RGBA||e===Z.HSLA)&&(A=t.a),dt(new st(l,s,c),e,A)},St=(t,o)=>{let e=Qt(t).toLowerCase(),r=Yt(t);return r.s+=o/100,r.s=bt(r.s,0,1),dt(r,e)},Qa=(t,o)=>St(t,-1*Math.abs(o)),ka=(t,o)=>{let e,r,a,i;if(!Et(t))throw new Error(t+" is not a valid color value!");return e=no(t),i=e.h+o,i>360?i=i%360:i<0&&(i=360+i%360),e.h=i,r=Qt(t).toLowerCase(),(r===Z.RGBA||r===Z.HSLA)&&(a=t.a),r==="hsl"?e:dt(e,r,a)},ya=(t,o)=>{let e=1,r=Qt(t).toLowerCase(),a=Vt(t);return(r===Z.RGBA||r===Z.HSLA)&&(e=t.a),a.v+=o/100,a.v=bt(a.v,0,1),dt(a,r,e)},Ia=(t,o,e)=>{let r=Po(t),a=Po(o),i=Dt(r,void 0),l=Dt(a,void 0),s=new Pt,c=(""+e).toLowerCase()||"hex";return s.r=Math.round((i.r+l.r)/2),s.g=Math.round((i.g+l.g)/2),s.b=Math.round((i.b+l.b)/2),s.a=Math.round((i.a+l.a)/2),dt(s,e,s.a)},Ma=(t,o,e=Z.HEX,r)=>{let a=Object.assign({},Vo,r),i,l=[],s,c,A,p,g;if(s=Vt(t),Lt(s)===!1)return console.warn("The value is a not supported color format!"),!1;switch(A=s.h,p=s.s,g=s.v,o){case"monochromatic":case"mono":{if(a.algorithm===1)c=Ft(s),c.r=At(Math.round(c.r+(255-c.r)*a.tint1),0,255),c.g=At(Math.round(c.g+(255-c.g)*a.tint1),0,255),c.b=At(Math.round(c.b+(255-c.b)*a.tint1),0,255),l.push(ht(c)),c=Ft(s),c.r=At(Math.round(c.r+(255-c.r)*a.tint2),0,255),c.g=At(Math.round(c.g+(255-c.g)*a.tint2),0,255),c.b=At(Math.round(c.b+(255-c.b)*a.tint2),0,255),l.push(ht(c)),l.push(s),c=Ft(s),c.r=At(Math.round(c.r*a.shade1),0,255),c.g=At(Math.round(c.g*a.shade1),0,255),c.b=At(Math.round(c.b*a.shade1),0,255),l.push(ht(c)),c=Ft(s),c.r=At(Math.round(c.r*a.shade2),0,255),c.g=At(Math.round(c.g*a.shade2),0,255),c.b=At(Math.round(c.b*a.shade2),0,255),l.push(ht(c));else if(a.algorithm===2)for(l.push(s),i=1;i<=a.distance;i++)g=bt(g-a.step,0,1),p=bt(p-a.step,0,1),l.push({h:A,s:p,v:g});else if(a.algorithm===3)for(l.push(s),i=1;i<=a.distance;i++)g=bt(g-a.step,0,1),l.push({h:A,s:p,v:g});else g=bt(s.v+a.step*2,0,1),l.push({h:A,s:p,v:g}),g=bt(s.v+a.step,0,1),l.push({h:A,s:p,v:g}),l.push(s),p=s.s,g=s.v,g=bt(s.v-a.step,0,1),l.push({h:A,s:p,v:g}),g=bt(s.v-a.step*2,0,1),l.push({h:A,s:p,v:g});break}case"complementary":case"complement":case"comp":{l.push(s),A=lt(s.h,180),l.push(new K(A,p,g));break}case"double-complementary":case"double-complement":case"double":{l.push(s),A=lt(A,180),l.push(new K(A,p,g)),A=lt(A,a.angle),l.push(new K(A,p,g)),A=lt(A,180),l.push(new K(A,p,g));break}case"analogous":case"analog":{A=lt(A,a.angle),l.push(new K(A,p,g)),l.push(s),A=lt(s.h,0-a.angle),l.push(new K(A,p,g));break}case"triadic":case"triad":{for(l.push(s),i=1;i<3;i++)A=lt(A,120),l.push(new K(A,p,g));break}case"tetradic":case"tetra":{l.push(s),A=lt(s.h,180),l.push(new K(A,p,g)),A=lt(s.h,-1*a.angle),l.push(new K(A,p,g)),A=lt(A,180),l.push(new K(A,p,g));break}case"square":{for(l.push(s),i=1;i<4;i++)A=lt(A,90),l.push(new K(A,p,g));break}case"split-complementary":case"split-complement":case"split":{A=lt(A,180-a.angle),l.push(new K(A,p,g)),l.push(s),A=lt(s.h,180+a.angle),l.push(new K(A,p,g));break}case"material":{var h=a.baseLight,d=a.baseDark==="self"||!a.baseDark?Qr(t,t):a.baseDark;l.push({50:rt(h,t,10),100:rt(h,t,30),200:rt(h,t,50),300:rt(h,t,70),400:rt(h,t,85),500:rt(h,t,100),600:rt(d,t,92),700:rt(d,t,83),800:rt(d,t,74),900:rt(d,t,65),A100:Jt(St(rt(d,t,15),80),65),A200:Jt(St(rt(d,t,15),80),55),A400:Jt(St(rt(h,t,100),55),10),A700:Jt(St(rt(d,t,83),65),10)});break}default:console.error("Unknown schema name")}return o==="material"?l[0]:Vs(l,e)},Ca=t=>t instanceof K||t instanceof xo||t instanceof Bo||t instanceof st||t instanceof Pt||t instanceof wo,ft=function(t){if(Ca(t))return t;let o=(""+t).toLowerCase();typeof Gt[o]<"u"&&(o=Gt[o]),typeof Ho[o]<"u"&&(o=Ho[o]);let e=o.replace(/[^\d.,%]/g,"").split(",").map(r=>isNaN(r)?r:+r);return o[0]==="#"?Eo(o):o.includes("rgba")?new Pt(e[0],e[1],e[2],e[3]):o.includes("rgb")?new st(e[0],e[1],e[2]):o.includes("cmyk")?new wo(e[0],e[1],e[2],e[3]):o.includes("hsv")?new K(e[0],e[1],e[2]):o.includes("hsla")?new Bo(e[0],e[1],e[2],e[3]):o.includes("hsl")?new xo(e[0],e[1],e[2]):o},Po=ft,kr=(t="hex",o=1)=>{let e=(s,c)=>Math.floor(s+Math.random()*(c+1-s)),r,a,i,l;return a=e(0,255),i=e(0,255),l=e(0,255),r="#"+((1<<24)+(a<<16)+(i<<8)+l).toString(16).slice(1),t==="hex"?r:dt(r,t,o)},Ws=kr,yr=class{_setValue(t){t||(t="#000000"),typeof t=="string"&&(t=ft(t)),t&&Et(t)?this._value=t:this._value=void 0}_setOptions(t){this._options=Object.assign({},Vo,t)}constructor(t="#000000",o=null){this._setValue(t),this._setOptions(o)}get options(){return this._options}set options(t){this._setOptions(t)}get value(){return this._value?this._value:void 0}set value(t){this._setValue(t)}toRGB(){if(this._value)return this._value=L(this._value),this}get rgb(){return this._value?L(this._value):void 0}toRGBA(t){if(this._value)return Ut(this._value)?t&&(this._value=Dt(this._value,t)):this._value=Dt(this._value,t||Vo.alpha),this}get rgba(){return this._value?Ut(this._value)?this._value:Dt(this._value,this._options.alpha):void 0}toHEX(){if(this._value)return this._value=vt(this._value),this}get hex(){return this._value?vt(this._value):void 0}toHSV(){if(this._value)return this._value=Vt(this._value),this}get hsv(){return this._value?Vt(this._value):void 0}toHSL(){if(this._value)return this._value=no(this._value),this}get hsl(){return this._value?no(this._value):void 0}toHSLA(t){if(this._value)return Ht(this._value)?t&&(this._value=Yt(this._value,t)):this._value=Yt(this._value,t),this}get hsla(){return this._value?Ht(this._value)?this._value:Yt(this._value,this._options.alpha):void 0}toCMYK(){if(this._value)return this._value=bo(this._value),this}get cmyk(){return this._value?bo(this._value):void 0}toWebsafe(){if(this._value)return this._value=xr(this._value),this}get websafe(){return this._value?xr(this._value):void 0}toString(){return this._value?ga(this._value):void 0}darken(t=10){if(this._value)return this._value=wa(this._value,t),this}lighten(t=10){if(this._value)return this._value=Jt(this._value,t),this}isDark(){return this._value?wr(this._value):void 0}isLight(){return this._value?ma(this._value):void 0}hueShift(t){if(this._value)return this._value=Ea(this._value,t),this}grayscale(){if(!(!this._value||this.type===Z.UNKNOWN))return this._value=
40Ba(this._value,(""+this.type).toLowerCase()),this}get type(){return Qt(this._value)}getScheme(t,o,e){return this._value?Ma(this._value,t,o,e):void 0}equal(t){return pa(this._value,t)}random(t,o){this._value=kr(t,o)}channel(t,o){let e=`${this.type}`.toUpperCase();if(["red","green","blue"].includes(t)){this.toRGB();let r={red:"r",green:"g",blue:"b"};this._value[r[t]]=o,this[`to${e}`]()}if(t==="alpha"&&this._value.a&&(this._value.a=o),["hue","saturation","value"].includes(t)){this.toHSV();let r={hue:"h",saturation:"s",value:"v"};this._value[r[t]]=o,this[`to${e}`]()}if(["lightness"].includes(t)&&(this.toHSL(),this._value.l=o,this[`to${e}`]()),["cyan","magenta","yellow","black"].includes(t)){this.toCMYK();let r={cyan:"c",magenta:"m",yellow:"y",black:"k"};this._value[r[t]]=o,this[`to${e}`]()}return this}add(t){this._setValue(Ia(this._value,t))}mix(t,o){this._setValue(rt(this._value,t,o))}multiply(t){this._setValue(Qr(this._value,t))}shade(t){this._setValue(va(this._value,t))}saturate(t){this._setValue(St(this._value,t))}
40desaturate(t){this._setValue(Qa(this._value,t))}spin(t){this._setValue(ka(this._value,t))}brighten(t){this._setValue(ya(this._value,t))}},Fa={...sa},_s="1.0.4",Xs="11.08.2024, 23:47:03",Da=()=>{console.info(`%c Farbe %c v${_s} %c ${Xs} `,"color: #ffffff; font-weight: bold; background: #ff00ff","color: white; background: darkgreen","color: white; background: #0080fe;")};globalThis.Farbe=yr;globalThis.farbe=t=>new yr(t);globalThis.Farbe.Routines=Br;globalThis.Farbe.Palette=la;globalThis.Farbe.StandardColors=Gt;globalThis.Farbe.MetroColors=Ho;globalThis.Farbe.Primitives=Fa;globalThis.Farbe.info=Da;var qs=Object.defineProperty,Zs=(t,o)=>{for(var e in o)qs(t,e,{get:o[e],enumerable:!0})};function Ya(t){return t.replace(/([A-Z])/g,function(o){return"-"+o.toLowerCase()})}function $s(t=[]){return Array.isArray(t)?t.join(" "):t.toString()}var tc=["opacity","zIndex","order","zoom"];function Ua(t={}){return typeof t=="string"?t:Object.keys(t).map(o=>{let e=Ya(o),r=t[o];return!tc.includes(e)&&!isNaN(r)&&(r+="px"),`${e}: ${r}`}).join(";")}var oc=["accesskey","autocapitalize","autofocus","contenteditable","dir","draggable","enterkeyhint","hidden","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","spellcheck","style","tabindex","title","translate","writingsuggestions"],rc=t=>{let o,e,r=[],a,i,l=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;if(typeof t=="string"){if(t=t.trim(),a=document.implementation.createHTMLDocument(""),o=a.createElement("base"),o.href=document.location.href,a.head.appendChild(o),i=a.body,e=l.exec(t),e)return document.createElement(e[1]);i.innerHTML=t;for(let s=0;s<i.childNodes.length;s++)r.push(i.childNodes[s]);return r[0]}},ec=["onauxclick","onbeforeinput","onbeforematch","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","onvolumechange","onwaiting","onwheel"],Wo=class{constructor(t={}){this.options=t,this.tag="div"}selfAttributes(){return[]}get attributes(){return this.getAttributes().join(" ")}getAttributes(){let t=[],o=["hidden","disabled","required","readonly","selected","open","multiply","default"],e=["className","style","data","tag","events"];for(let r in this.options)if(!e.includes(r)){if(o.includes(r)&&this.options[r]===!0){t.push(r);continue}(this.selfAttributes().includes(r)&&!t.includes(r)||oc.includes(r))&&t.push(`${r}="${this.options[r]}"`)}return this.classes&&t.push(`class="${this.classes}"`),this.styles&&t.push(`style="${this.styles}"`),this.dataSet&&t.push(this.dataSet),this.aria&&t.push(this.aria),t}draw(){return this.template()}get dataSet(){let{data:t={}}=this.options,o=[];for(let e in t)o.push(`data-${Ya(e)}="${t[e]}"`);return o.join(" ")}get aria(){let{aria:t={}}=this.options,o=[];for(let e in t)o.push(`aria-${e.toLowerCase()}="${t[e]}"`);return o.join(" ")}get events(){let{events:t={},control:o=!0}=this.options,e=[];for(let r in t)o&&!ec.includes(r)&&console.info(`Event ${r} for element ${this.tag} not specified in HTML specification`),e.push(`${r.toLowerCase()}="${t[r]}"`);return e.join(" ")}get classes(){return $s(this.options.class)}get styles(){return Ua(this.options.style)}template(){return""}toString(){return this.draw()}toElement(){return rc(this.draw())}},Mr=t=>{if(Array.isArray(t))return t.map(Mr).join(`
41`);if(typeof t=="string"||typeof t=="number"||typeof t=="boolean")return t;if(t.draw)return t.draw();throw new Error("Unknown element! "+t)},Q=class extends Wo{constructor(...t){let o={},e=[];
41for(let r of t)typeof r=="object"&&!(r instanceof Wo)?o=r:e.push(r);super(o),this.children=e}template(t){let o=this.options.tag?this.options.tag:this.tag;return`
42            <${o} ${this.attributes} ${this.events}>${t}</${o}>
43        `}draw(){return this.template(this.children.map(Mr).join(""))}},tt=class extends Wo{constructor(t={}){super(t),this.options=t}template(){return`
44            <${this.options.tag?this.options.tag:this.tag} ${this.attributes} ${this.events}/>
45        `}},Na=(t=[],o=document.body,e={})=>{let r,a,{clear:i=!0,where:l="beforeend"}=e;a=typeof o=="string"?document.querySelector(o):o,a instanceof HTMLElement||(a=document.body),i&&(a.innerHTML=""),Array.isArray(t)||(t=[t]),r=t.map(Mr).join(""),a.insertAdjacentHTML(l,r)},Cr=(t="",o)=>{let e=document.createElement("style");return o!==void 0&&e.setAttribute("media",o),e.appendChild(document.createTextNode(t)),document.head.appendChild(e),e},za=t=>Cr(t).sheet,Ra=(t,o,e)=>{t.insertRule(o+"{"+e+"}")},ac=(t,o)=>{if(typeof t=="string"){Cr(t,o);return}let e=za(o);for(let r in t)Ra(e,r,Ua(t[r]))},ja=async(t,o)=>{let e=await fetch(t,o),r,a;if(!e.ok)throw new Error("HTTP error: "+e.status);r=await e.text(),a=document.createElement("style"),a.appendChild(document.createTextNode(r)),document.body.appendChild(a)},Ta=async(t,o)=>{let e=await fetch(t,o),r,a;if(!e.ok)throw new Error("HTTP error: "+e.status);r=await e.text(),a=document.createElement("script"),a.appendChild(document.createTextNode(r)),document.body.appendChild(a)},_o={};Zs(_o,{Abbr:()=>qa,Address:()=>ei,Anchor:()=>Fr,Area:()=>ii,Article:()=>Za,Aside:()=>ti,AudioTag:()=>ni,Base:()=>Ga,Bdi:()=>si,Bdo:()=>ci,Blockquote:()=>Ai,Body:()=>Va,Bold:()=>li,Br:()=>Ka,Button:()=>mi,Canvas:()=>pi,Caption:()=>hi,Cite:()=>bi,Code:()=>xi,Col:()=>di,Colgroup:()=>fi,Data:()=>un,Dd:()=>Ei,Details:()=>vi,Dfn:()=>ki,Dialog:()=>xn,Div:()=>yi,Dl:()=>Bi,Dt:()=>wi,Em:()=>Ii,Embed:()=>Ci,Fieldset:()=>Di,FigCaption:()=>Ni,Figure:()=>Ui,Footer:()=>ri,Form:()=>zi,Frame:()=>ji,Frameset:()=>Ri,Head:()=>Sa,Header:()=>oi,Heading:()=>_a,Hr:()=>Wa,Html:()=>Ja,IFrame:()=>Ji,Img:()=>La,Input:()=>Oa,Ins:()=>Si,Ital:()=>Yr,Kbd:()=>Gi,Label:()=>Hi,Legend:()=>Yi,Link:()=>Ha,List:()=>Ur,ListItem:()=>Vi,Main:()=>An,Map:()=>ai,Mark:()=>Pi,Meta:()=>mn,Nav:()=>$a,NoEmbed:()=>Fi,NoFrames:()=>Ti,NoScript:()=>Li,Option:()=>Wi,OptionGroup:()=>Ki,Output:()=>_i,Paragraph:()=>Xi,Picture:()=>bn,Pre:()=>qi,Quoted:()=>Nr,Rp:()=>fn,Rt:()=>dn,Ruby:()=>hn,Script:()=>Zi,Section:()=>Xa,Select:()=>Oi,Slot:()=>Bn,Small:()=>$i,Source:()=>tn,Span:()=>Pa,Strike:()=>zr,Strong:()=>Mi,Sub:()=>on,Summary:()=>Qi,Sup:()=>rn,Table:()=>gi,TableCell:()=>Dr,TableRow:()=>ui,TableSection:()=>Xo,Template:()=>gn,Textarea:()=>en,Time:()=>an,Title:()=>pn,Track:()=>nn,Var:()=>ln,VideoTag:()=>sn,Wbr:()=>cn,a:()=>vc,abbr:()=>Qc,address:()=>Fc,anchor:()=>Ec,area:()=>Yc,article:()=>kc,aside:()=>Ic,audio:()=>Uc,b:()=>Nc,base:()=>lc,bdi:()=>zc,bdo:()=>Rc,blockquote:()=>jc,body:()=>cc,br:()=>gc,button:()=>Tc,canvas:()=>Jc,caption:()=>Gc,cite:()=>Xc,code:()=>qc,col:()=>Hc,colgroup:()=>Vc,data:()=>rm,dd:()=>tA,details:()=>oA,dfn:()=>eA,dialog:()=>am,div:()=>aA,dl:()=>Zc,dt:()=>$c,em:()=>iA,embed:()=>cA,fieldset:()=>mA,figcaption:()=>hA,figure:()=>gA,footer:()=>Cc,form:()=>dA,frame:()=>uA,frameset:()=>fA,h1:()=>dc,h2:()=>fc,h3:()=>uc,h4:()=>bc,h5:()=>xc,h6:()=>Bc,head:()=>nc,header:()=>Mc,hr:()=>hc,html:()=>ic,i:()=>lA,iframe:()=>xA,img:()=>mc,input:()=>pc,ins:()=>BA,ital:()=>nA,kbd:()=>wA,label:()=>EA,legend:()=>pA,li:()=>kA,link:()=>sc,main:()=>_A,map:()=>Dc,mark:()=>yA,meta:()=>XA,nav:()=>yc,noembed:()=>AA,noframes:()=>bA,noscript:()=>IA,ol:()=>QA,optgroup:()=>CA,option:()=>FA,output:()=>DA,p:()=>YA,picture:()=>em,pre:()=>UA,q:()=>NA,quoted:()=>zA,rp:()=>om,rt:()=>tm,ruby:()=>$A,s:()=>jA,script:()=>TA,section:()=>wc,select:()=>MA,slot:()=>im,small:()=>JA,source:()=>SA,span:()=>Ac,strike:()=>RA,strong:()=>sA,sub:()=>GA,summary:()=>rA,sup:()=>HA,table:()=>Sc,tbody:()=>Pc,td:()=>_c,template:()=>ZA,textarea:()=>VA,tfoot:()=>Oc,th:()=>Wc,thead:()=>Lc,time:()=>PA,title:()=>qA,tr:()=>Kc,track:()=>LA,ul:()=>vA,variable:()=>OA,video:()=>KA,wbr:()=>WA});var Ja=class extends Q{tag="html";selfAttributes(){return["lang"]}},ic=(...t)=>new Ja(...t),Sa=class extends Q{tag="head"},nc=(...t)=>new Sa(...t),Ga=class extends tt{tag="base";selfAttributes(){return["href","target"]}},lc=t=>new Ga(t),Ha=class extends tt{tag="link";selfAttributes(){return["href","crossorigin","rel","media","integrity","hreflang","type","referrerpolicy","sizes","imagesrcset","imagesizes","as","blocking","color","disabled","fetchpriority"]}},sc=t=>new Ha(t),Va=class extends Q{tag="body"},cc=(...t)=>new Va(...t),Pa=class extends Q{tag="span"},Ac=(...t)=>new Pa(...t),La=class extends tt{tag="img";selfAttributes(){return["align","alt","border","height","hspace","ismap","longdesc","lowsrc","src","vspace","width","usemap"]}},mc=(t="",o="",e={})=>new La({...e,src:t,alt:o}),Oa=class extends tt{tag="input";selfAttributes(){return["accept","align","alt","autocomplete","autofocus","border","checked","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","list","max","maxlength","min","multiple","name","pattern","placeholder","size","src","step","type","value"]}},pc=(t={})=>new Oa(t),Ka=class extends tt{tag="br";selfAttributes(){return["clear"]}},gc=t=>new Ka(t),Wa=class extends tt{tag="hr"},hc=t=>new Wa(t),_a=class extends Q{constructor(t="h1",...o){super(...o),this.tag=t}},co=(t="h1",...o)=>new _a(t,...o),dc=(...t)=>co("h1",...t),fc=(...t)=>co("h2",...t),uc=(...t)=>co("h3",...t),bc=(...t)=>co("h4",...t),xc=(...t)=>co("h5",...t),Bc=(...t)=>co("h6",...t),Xa=class extends Q{tag="section"},wc=(...t)=>new Xa(...t),Fr=class extends Q{tag="a";selfAttributes(){return["coords","download","hreflang","name","rel","rev","shape","target","type","href"]}},Ec=(...t)=>new Fr(...t),vc=(...t)=>new Fr(...t),qa=class extends Q{tag="abbr"},Qc=(...t)=>new qa(...t),Za=class extends Q{tag="article"},kc=(...t)=>new Za(...t),$a=class extends Q{tag="nav"},yc=(...t)=>new $a(...t),ti=class extends Q{tag="aside"},Ic=(...t)=>new ti(...t),oi=class extends Q{tag="header"},Mc=(...t)=>new oi(...t),ri=class extends Q{tag="footer"},Cc=(...t)=>new ri(...t),ei=class extends Q{tag="address"},Fc=(...t)=>new ei(...t),ai=class extends Q{tag="map";selfAttributes(){return["name"]}},Dc=(...t)=>new ai(...t),ii=class extends tt{tag="area";selfAttributes(){return["alt","coords","hreflang","nohref","shape","target","type","href"]}},Yc=(t={})=>new ii(t),ni=class extends Q{tag="audio";selfAttributes(){return["autoplay","controls","loop","preload","src"]}},Uc=(...t)=>new ni(...t),li=class extends Q{tag="b"},Nc=(...t)=>new li(...t),si=class extends Q{tag="bdi"},zc=(...t)=>new si(...t),ci=class extends Q{tag="bdo"},Rc=(...t)=>new ci(...t),Ai=class extends Q{tag="blockquote";selfAttributes(){return["cite"]}},jc=(...t)=>new Ai(...t),mi=class extends Q{tag="button";selfAttributes(){return["autofocus","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"]}},Tc=(...t)=>new mi(...t),pi=class extends Q{tag="canvas";selfAttributes(){return["width","height"]}},Jc=(...t)=>new pi(...t),gi=class extends Q{tag="table";selfAttributes(){return["align","background","bgcolor","border","bordercolor","cellpadding","cellspacing","cols","frame","height","rules","summary","width"]}},Sc=(...t)=>new gi(...t),hi=class extends Q{tag="caption";selfAttributes(){return["align","valign"]}},Gc=(...t)=>new hi(...t),di=class extends tt{tag="col";selfAttributes(){return["align","valign","char","charoff","span","width"]}},Hc=t=>new di(t),fi=class extends tt{tag="colgroup";selfAttributes(){return["align","valign","char","charoff","span","width"]}},Vc=t=>new fi(t),Xo=class extends Q{constructor(t="tbody",...o){super(...o),this.tag=t}selfAttributes(){return["align","valign","char","charoff","bgcolor"]}},Pc=(...t)=>new Xo("tbody",...t),Lc=(...t)=>new Xo("thead",...t),Oc=(...t)=>new Xo("tfoot",...t),ui=class extends Q{tag="tr";selfAttributes(){return["align","bgcolor","bordercolor","char","charoff","valign"]}},Kc=(...t)=>new ui(...t),Dr=class extends Q{constructor(t="td",...o){super(...o),this.tag=t}selfAttributes(){return["abbr","align","axis","background","bgcolor","bordercolor","char","charoff","colspan","headers","height","nowrap","rowspan","
45scope","valign","width"]}},Wc=(...t)=>new Dr("th",...t),_c=(...t)=>new Dr("td",...t),bi=class extends Q{tag="cite"},Xc=(...t)=>new bi(...t),xi=class extends Q{tag="code"},qc=(...t)=>new xi(...t),Bi=class extends Q{tag="dl"},wi=class extends Q{tag="dt"},Ei=class extends Q{tag="dd"},Zc=(...t)=>new Bi(...t),$c=(...t)=>new wi(...t),tA=(...t)=>new Ei(...t),vi=class extends Q{tag="details"},oA=(...t)=>new vi(...t),Qi=class extends Q{tag="summary"},rA=(...t)=>new Qi(...t),ki=class extends Q{tag="dfn"},eA=(...t)=>new ki(...t),yi=class extends Q{tag="div";selfAttributes(){return["align","title"]}},aA=(...t)=>new yi(...t),Ii=class extends Q{tag="em"},iA=(...t)=>new Ii(...t),Yr=class extends Q{tag="i"},nA=(...t)=>new Yr(...t),lA=(...t)=>new Yr(...t),Mi=class extends Q{tag="strong"},sA=(...t)=>new Mi(...t),Ci=class extends Q{tag="embed";selfAttributes(){return["align","height","hspace","pluginspace","src","type","vspace","width"]}},cA=(...t)=>new Ci(...t),Fi=class extends Q{tag="noembed"},AA=(...t)=>new Fi(...t),Di=class extends Q{tag="fieldset";selfAttributes(){return["form","title"]}},mA=(...t)=>new Di(...t),Yi=class extends Q{tag="legend";selfAttributes(){return["align","title"]}},pA=(...t)=>new Yi(...t),Ui=class extends Q{tag="figure"},gA=(...t)=>new Ui(...t),Ni=class extends Q{tag="figcaption"},hA=(...t)=>new Ni(...t),zi=class extends Q{tag="form";selfAttributes(){return["accept-charset","action","autocomplete","enctype","method","name","novalidate","target"]}},dA=(...t)=>new zi(...t),Ri=class extends Q{tag="frameset";selfAttributes(){return["border","bordercolor","cols","frameborder","framespacing","rows"]}},fA=(...t)=>new Ri(...t),ji=class extends tt{tag="frame";selfAttributes(){return["bordercolor","frameborder","noresize","name","src","scrolling"]}},uA=(t={})=>new ji(t),Ti=class extends Q{tag="noframes"},bA=(...t)=>new Ti(...t),Ji=class extends Q{tag="iframe";selfAttributes(){return["align","allowtransparency","frameborder","height","hspace","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","vspace","width"]}},xA=(...t)=>new Ji(...t),Si=class extends Q{tag="ins";selfAttributes(){return["cite","datetime"]}},BA=(...t)=>new Si(...t),Gi=class extends Q{tag="kbd"},wA=(...t)=>new Gi(...t),Hi=class extends Q{tag="label";selfAttributes(){return["for"]}},EA=(...t)=>new Hi(...t),Ur=class extends Q{constructor(t="ul",...o){super(...o),this.tag=t}selfAttributes(){return this.tag==="ul"?["type"]:["type","reserved","start"]}},Vi=class extends Q{tag="li";selfAttributes(){return["type","value"]}},vA=(...t)=>new Ur("ul",...t),QA=(...t)=>new Ur("ol",...t),kA=(...t)=>new Vi(...t),Pi=class extends Q{tag="mark"},yA=(...t)=>new Pi(...t),Li=class extends Q{tag="noscript"},IA=(...t)=>new Li(...t),Oi=class extends Q{tag="select";selfAttributes(){return["autofocus","form","name","size"]}},MA=(...t)=>new Oi(...t),Ki=class extends Q{tag="optgroup";selfAttributes(){return["label"]}},CA=(...t)=>new Ki(...t),Wi=class extends Q{tag="option";selfAttributes(){return["label","value"]}},FA=(...t)=>new Wi(...t),_i=class extends Q{tag="output";selfAttributes(){return["for","form","name"]}},DA=(...t)=>new _i(...t),Xi=class extends Q{tag="p";selfAttributes(){return["align"]}},YA=(...t)=>new Xi(...t),qi=class extends Q{tag="pre"},UA=(...t)=>new qi(...t),Nr=class extends Q{tag="q";selfAttributes(){return["cite"]}},NA=(...t)=>new Nr(...t),zA=(...t)=>new Nr(...t),zr=class extends Q{tag="strike"},RA=(...t)=>new zr(...t),jA=(...t)=>new zr(...t),Zi=class extends Q{tag="script";selfAttributes(){return["async","defer","language","src","type"]}},TA=(...t)=>new Zi(...t),$i=class extends Q{tag="small"},JA=(...t)=>new $i(...t),tn=class extends tt{tag="source";selfAttributes(){return["media","src","type"]}},SA=(t={})=>new tn(t),on=class extends Q{tag="sub"},GA=(...t)=>new on(...t),rn=class extends Q{tag="sup"},HA=(...t)=>new rn(...t),en=class extends Q{tag="textarea";selfAttributes(){return["autofocus","cols","form","maxlength","name","placeholder","rows","wrap"]}},VA=(...t)=>new en(...t),an=class extends Q{tag="time";selfAttributes(){return["datetime","pubdate"]}},PA=(...t)=>new an(...t),nn=class extends tt{tag="track";selfAttributes(){return["kind","src","srclang","label"]}},LA=(t={})=>new nn(t),ln=class extends Q{tag="var"},OA=(...t)=>new ln(...t),sn=class extends Q{tag="video";selfAttributes(){return["autoplay","controls","height","loop","loop","poster","preload","src","width"]}},KA=(...t)=>new sn(...t),cn=class extends tt{tag="wbr"},WA=t=>new cn(t),An=class extends Q{tag="main"},_A=(...t)=>new An(...t),mn=class extends tt{tag="meta";selfAttributes(){return["content","name","http-equiv","charset"]}},XA=t=>new mn(t),pn=class extends Q{tag="title"},qA=t=>new pn(t),gn=class extends Q{tag="template";selfAttributes(){return["shadowrootmode","shadowrootdelegatesfocus","shadowrootclonable","shadowrootserializable"]}},ZA=(...t)=>new gn(...t),hn=class extends Q{tag="ruby"},dn=class extends tt{tag="rt"},fn=class extends tt{tag="rp"},$A=(...t)=>new hn(...t),tm=t=>new dn(t),om=t=>new fn(t),un=class extends Q{tag="data"},rm=(...t)=>new un(...t),bn=class extends Q{tag="picture"},em=(...t)=>new bn(...t),xn=class extends Q{tag="dialog";selfAttributes(){return["open"]}},am=(...t)=>new xn(...t),Bn=class extends Q{tag="slot";selfAttributes(){return["name"]}},im=(...t)=>new Bn(...t),Ir={},nm="0.15.1",lm="18.05.2025, 14:41:46",wn=()=>{console.info(`%c Html.js %c v${nm} %c ${lm} `,"color: #ffffff; font-weight: bold; background: #708238","color: white;
45 background: darkgreen","color: white; background: #0080fe;")},sm=(t=globalThis)=>{for(let o in _o)globalThis[o]&&(Ir[o]=globalThis[o]),t[o]=_o[o]},cm=(t=globalThis)=>{for(let o in Ir)t[o]=Ir[o]},En={BaseElement:Wo,Tag:Q,SingleTag:tt,..._o,extract:sm,restore:cm},vn={addStyle:ac,addCssRule:Ra,createStyleSheet:za,createStyleElement:Cr};globalThis.HTML={cssLoader:ja,jsLoader:Ta,render:Na,...En,...vn,info:wn};var Jr={};Hr(Jr,{americanExpress:()=>Op,array:()=>ip,base64:()=>tp,between:()=>Xm,bigint:()=>Mm,boolean:()=>ap,bytes:()=>Zp,color:()=>Yp,compose:()=>bm,contains:()=>sg,creditCard:()=>Vp,date:()=>Fm,digits:()=>ag,diners:()=>Wp,discover:()=>Kp,domain:()=>Bp,email:()=>Hm,endsWith:()=>vm,equal:()=>gg,finite:()=>Zm,float:()=>ng,func:()=>Ym,great:()=>ug,greatOrEqual:()=>wg,hexColor:()=>Up,hslColor:()=>zp,imei:()=>sp,info:()=>yg,integer:()=>Nm,ip:()=>dp,ipv4:()=>fp,ipv6:()=>up,jcb:()=>_p,length:()=>cp,less:()=>xg,lessOrEqual:()=>vg,mastercard:()=>Lp,max:()=>Sm,maxLength:()=>mp,min:()=>Tm,minLength:()=>Ap,notNull:()=>tg,notNumber:()=>rp,number:()=>Om,object:()=>Wm,parse:()=>jr,pattern:()=>rg,pipe:()=>fm,required:()=>Pm,rgbColor:()=>Np,safeInteger:()=>Rm,safeParse:()=>hm,similar:()=>dg,startsWith:()=>wm,string:()=>Rr,symbol:()=>ym,type:()=>mg,unionPay:()=>Xp,unknown:()=>Qm,url:()=>vp,visa:()=>Pp});var Am=Object.defineProperty,Qn=Object.getOwnPropertySymbols,mm=Object.prototype.hasOwnProperty,pm=Object.prototype.propertyIsEnumerable,kn=(t,o,e)=>o in t?Am(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,gm=(t,o)=>{for(var e in o||(o={}))mm.call(o,e)&&kn(t,e,o[e]);if(Qn)for(var e of Qn(o))pm.call(o,e)&&kn(t,e,o[e]);return t},M=class extends Error{constructor(t="",o=null,e){super(t),this.message=t,this.name=o,this.value=e}},jr=(t,o)=>{let e;if(!t)throw new Error("Schema object required for parse data!");if(typeof t=="function"){if(e=t.apply(null,[o]),e instanceof M)throw e}else for(let r in t){let a=o[r],i=t[r];if(!i)throw new M(`Guard not defined for field ${r} in input data!`,"general",o);if(!o.hasOwnProperty(r))throw new M(`Field ${r} doesn't exists in input data!`,"general",o);if(typeof i=="function"){if(console.log(i.name),e=i.apply(null,[a]),e instanceof M)throw e}else jr(i,a)}return o},hm=(t,o)=>{let e;if(!t)throw new Error("Schema object required for parse data!");if(typeof t=="function"){if(e=t.apply(null,[o]),e instanceof M)return{ok:!1,error:e}}else for(let r in t){let a=o[r],i=t[r];if(i)if(typeof i=="function"){if(e=i.apply(null,[o]),e instanceof M)return{ok:!1,error:e}}else jr(i,a)}return{ok:!0,output:o}},dm=(...t)=>o=>t.reduce((e,r)=>r(e),o),fm=dm,um=(...t)=>o=>t.reduceRight((e,r)=>r(e),o),bm=um,xm="VAL must be a string",Rr=(t=xm)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"?o:new M(e,"string",o)},Kt=t=>typeof t<"u"&&t!==null,Bm="VAL must starts with START_VAL",wm=(t,o=Bm)=>{if(!Kt(t))throw new Error("START_VALUE not defined!");return function(e){let r=o.replace(/VAL/g,e).replace(/START_VAL/g,t);return typeof e=="string"&&e.startsWith(t)?e:new M(r,"startsWith",e)}},Em="VAL must end with END_VAL",vm=(t,o=Em)=>{if(!Kt(t))throw new Error("END_VALUE not defined!");return function(e){let r=o.replace(/VAL/g,e).replace(/END_VAL/g,t);return typeof e=="string"&&e.endsWith(t)?e:new M(r,"endsWith",e)}},Qm=()=>function(t){return t},km="A symbol is required",ym=(t=km)=>function(o){return typeof o=="symbol"?o:new M(t,"symbol",o)},Im="VAL must be a bigint",Mm=(t=Im)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="bigint"?o:new M(e,"bigint",o)},Cm="VAL must be valid date object or date string",Fm=(t=Cm)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="object"&&o.getTime||typeof o=="string"&&!isNaN(Date.parse(o))?o:new M(e,"date",o)},Dm="The value must be a function",Ym=(t=Dm)=>function(o){return typeof o=="function"?o:new M(t,"function",o)},Um="VAL must be an integer",Nm=(t=Um)=>function(o){let e=t.replace(/VAL/g,o);return Number.isInteger(o)?o:new M(e,"integer",o)},zm="VAL must be an safe integer",Rm=(t=zm)=>function(o){let e=t.replace(/VAL/g,o);return Number.isSafeInteger(o)?o:new M(e,"safeInteger",o)},jm="VAL must be a great then MIN_VALUE",Tm=(t,o=jm)=>{if(!Kt(t))throw new Error("MIN_VALUE not defined!");return function(e){let r=o.replace(/VAL/g,e).replace(/MIN_VALUE/g,t),a=+e;return!isNaN(a)&&a>=+t?e:new M(r,"minValue",e)}},Jm="VAL must be a less then MAX_VALUE",Sm=(t,o=Jm)=>{if(!Kt(t))throw new Error("MAX_VALUE not defined!");return function(e){let r=o.replace(/VAL/g,e).replace(/MAX_VALUE/g,t),a=+e;return!isNaN(a)&&a<=+t?e:new M(r,"maxValue",e)}},Gm="VAL must be a string in valid email format",Hm=(t=Gm)=>function(o){let e=t.replace(/VAL/g,o);
45return typeof o=="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)?o:new M(e,"email",o)},Vm="Any value required",Pm=(t=Vm)=>function(o){let e=t.replace(/VAL/g,o);return typeof o<"u"&&o!==null&&o!==""?o:new M(e,"required",o)},Lm="VAL must be a number",Om=(t=Lm)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="number"&&!isNaN(+o)?o:new M(e,"number",o)},Km="VAL must be an object",Wm=(t,o=Km)=>{if(typeof t!="object")throw new M(o.replace(/VAL/g,t),"object",t);return gm({},t)},_m="VAL must be between MIN_VAL and MAX_VAL",Xm=(t,o,e=_m)=>{if(!Kt(t))throw new Error("MIN_VALUE not defined!");if(!Kt(o))throw new Error("MAX_VALUE not defined!");return function(r){let a=e.replace(/VAL/g,r).replace(/MIN_VAL/g,t).replace(/MAX_VAL/g,o),i=+r;return!isNaN(i)&&r>=+t&&r<=+o?r:new M(a,"between",r)}},qm="VAL must be a finite number",Zm=(t=qm)=>function(o){let e=t.replace(/VAL/g,o);return Number.isFinite(o)?o:new M(e,"finite",o)},$m="VAL must be a string in valid base 64 format",tp=(t=$m)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"&&/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/.test(o)?o:new M(e,"base64",o)},op="VAL can`t be a number",rp=(t=op)=>function(o){let e=t.replace(/VAL/g,o);return isNaN(o)?o:new M(e,"notNumber",o)},ep="VAL must be a boolean",ap=(t=ep)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="boolean"?o:new M(e,"boolean",o)},yn="VAL must be an array of TYPE",ip=(t,o=yn)=>(!t&&!o&&(t=Rr(),o=yn),typeof t=="string"&&(o=t,t=Rr()),function(e){let r=o.replace(/VAL/g,e).replace(/TYPE/g,t.name);if(!Array.isArray(e))return new M(r,"array",e);for(let a of e)if(t(a)instanceof M)return new M(r,"array",e);return e}),np="VAL must be a valid EMEI",lp=t=>{let o=a=>{let i=0;for(;a>0;)i=i+a%10,a=parseInt(""+a/10,10);return i},e=(""+t).length;if(e!==15)return!1;let r=0;for(let a=e;a>=1;a--){let i=t%10;a%2===0&&(i=2*i),r+=o(i),t=parseInt(""+t/10,10)}return r%10===0},sp=(t=np)=>function(o){let e=t.replace(/VAL/g,o);return lp(o)?o:new M(e,"emei",o)},Tr="VAL must be a string or array with length N",cp=(t,o=Tr)=>function(e){let r=o.replace(/VAL/g,e).replace(/N/g,t);return(typeof e=="string"||Array.isArray(e))&&e.length===+t?e:new M(r,"length",e)},Ap=(t,o=Tr)=>function(e){let r=o.replace(/VAL/g,e).replace(/N/g,t);return(typeof e=="string"||Array.isArray(e))&&e.length>=+t?e:new M(r,"minLength",e)},mp=(t,o=Tr)=>function(e){let r=o.replace(/VAL/g,e).replace(/N/g,t);return(typeof e=="string"||Array.isArray(e))&&e.length<=+t?e:new M(r,"maxLength",e)},pp="VAL must be a valid ip address ipv4 or ipv6",gp="VAL must be a valid ipv4 address",hp="VAL must be a valid ipv6 address",In=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,Mn=/^[a-fA-F0-9]{1, 4}:[a-fA-F0-9]{1, 4}:[a-fA-F0-9]{1, 4}:[a-fA-F0-9]{1, 4}:[a-fA-F0-9]{1, 4}:[a-fA-F0-9]{1, 4}:[a-fA-F0-9]{1, 4}:[a-fA-F0-9]{1, 4}$/,dp=(t=pp)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"&&(In.test(o)||Mn.test(o))?o:new M(e,"ip",o)},fp=(t=gp)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"&&In.test(o)?o:new M(e,"ipv4",o)},up=(t=hp)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"&&Mn.test(o)?o:new M(e,"ipv6",o)},bp="VAL must be a valid domain name, xn--* for internationalized names",xp=/^((xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/,Bp=(t=bp)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"&&xp.test(o)?o:new M(e,"domain",o)},wp="VAL must be a valid url",Ep=/^(?:(?:(?:https?|ftp|wss?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i,vp=(t=wp)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"&&Ep.test(o)?o:new M(e,"url",o)},Qp="VAL must be a valid color in HEX, RGB(A), or HSL(A) format",kp="VAL must be a valid HEX color",yp="VAL must be a valid RGB(a) color",Ip="VAL must be a valid HSL(A) color",Mp=/^#(?:[\da-f]{3}){1,2}$|^#(?:[\da-f]{4}){1,2}$|^(rgb|hsl)a?\((\s*-?\d+%?\s*,){2}(\s*-?\d+%?\s*)\)$|^(rgb|hsl)a?\((\s*-?\d+%?\s*,){3}\s*(0|(0?\.\d+)|1)\)$/gmi,Cp=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,Fp=/^rgba?\((\s*-?\d+%?\s*,){2}(\s*-?\d+%?\s*)\)$|^rgba?\((\s*-?\d+%?\s*,){3}\s*(0|(0?\.\d+)|1)\)$/gmi,Dp=/^hsla?\((\s*-?\d+%?\s*,){2}(\s*-?\d+%?\s*)\)$|^hsla?\((\s*-?\d+%?\s*,){3}\s*(0|(0?\.\d+)|1)\)$/gmi,Yp=(t=Qp)=>function(o){let e=t.replace(/VAL/g,o);
45return typeof o=="string"&&Mp.test(o)?o:new M(e,"color",o)},Up=(t=kp)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"&&Cp.test(o)?o:new M(e,"hexColor",o)},Np=(t=yp)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"&&Fp.test(o)?o:new M(e,"rgbColor",o)},zp=(t=Ip)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"&&Dp.test(o)?o:new M(e,"hslColor",o)},Cn=/^4\d{12}(?:\d{3,6})?$/u,Fn=/^5[1-5]\d{2}|(?:222\d|22[3-9]\d|2[3-6]\d{2}|27[01]\d|2720)\d{12}$/u,Dn=/^3[47]\d{13}$/u,Yn=/^6(?:011|5\d{2})\d{12,15}$/u,Un=/^3(?:0[0-5]|[68]\d)\d{11,13}$/u,Nn=/^(?:2131|1800|35\d{3})\d{11}$/u,zn=/^(?:6[27]\d{14,17}|81\d{14,17})$/u,Rn="VAL must be a valid CC number (visa, mastercard, american express, discover, diners club, jcb, or union pay)",Rp="VAL must be a valid Visa card number",jp="VAL must be a valid Mastercard card number",Tp="VAL must be a valid American Express card number",Jp="VAL must be a valid DISCOVER card number",Sp="VAL must be a valid DINERS CLUB card number",Gp="VAL must be a valid JCB card number",Hp="VAL must be a valid Union Pay card number",Vp=(t=Rn)=>function(o){let e=t.replace(/VAL/g,o);return typeof o=="string"&&(Cn.test(o)||Fn.test(o)||Dn.test(o)||Yn.test(o)||Un.test(o)||Nn.test(o)||zn.test(o))?o:new M(e,"creditCard",o)},Wt=(t,o,e=Rn)=>function(r){let a=e.replace(/VAL/g,r);return typeof r=="string"&&o.test(r)?r:new M(a,t,r)},Pp=(t=Rp)=>Wt("visa",Cn,t),Lp=(t=jp)=>Wt("mastercard",Fn,t),Op=(t=Tp)=>Wt("american express",Dn,t),Kp=(t=Jp)=>Wt("discover",Yn,t),Wp=(t=Sp)=>Wt("diners club",Un,t),_p=(t=Gp)=>Wt("jcb card",Nn,t),Xp=(t=Hp)=>Wt("union pay",zn,t),qp="The length of string must be VAL bytes",Zp=(t,o=qp)=>function(e){let r=o.replace(/VAL/g,e);return typeof e=="string"&&new TextEncoder().encode(e).length===t?e:new M(r,"bytes",e)},$p="VAL can`t be null or undefined.",tg=(t=$p)=>function(o){let e=t.replace(/VAL/g,o);return Kt(o)?o:new M(e,"notNull",o)},og="The value must match the pattern",rg=(t,o=og)=>function(e){let r=o.replace(/VAL/g,e);return(typeof t=="string"?new RegExp(t,"g"):t).test(""+e)?e:new M(r,"pattern",e)},eg="VAL must contains only digits",ag=(t=eg)=>function(o){let e=t.replace(/VAL/g,o);return/^\d+$/g.test(""+o)?o:new M(e,"digits",o)},ig="VAL must be a float",ng=(t=ig)=>function(o){let e=t.replace(/VAL/g,o);return!isNaN(o)&&+n%1!==0||/^\d*\.\d+$/.test(o)?o:new M(e,"float",o)},lg="VAL must must contains OBJ",sg=(t,o=lg)=>function(e){let r=o.replace(/VAL/g,e).replace(/OBJ/g,t);return e.includes(t)?e:new M(r,"contains",e)},cg="A VAL must have type TYPE";function Ag(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)]$/,"$1").toLowerCase()}var mg=(t="string",o=cg)=>function(e){let r=o.replace(/VAL/g,e).replace(/TYPE/g,t);return t===Ag(e)?e:new M(r,"type",e)},pg="VAL must be an equal to VALUE",gg=(t,o=pg)=>function(e){let r=o.replace(/VAL/g,e).replace(/VALUE/g,t);return e===t?e:new M(r,"equal",e)},hg="VAL must be a similar to VALUE",dg=(t,o=hg)=>function(e){let r=o.replace(/VAL/g,e).replace(/VALUE/g,t);return e==t?e:new M(r,"similar",e)},fg="VAL must be a great then VALUE",ug=(t,o=fg)=>function(e){let r=o.replace(/VAL/g,e).replace(/VALUE/g,t);return e>t?e:new M(r,"great",e)},bg="VAL must be a less then VALUE",xg=(t,o=bg)=>function(e){let r=o.replace(/VAL/g,e).replace(/VALUE/g,t);return e<t?e:new M(r,"less",e)},Bg="VAL must be a great or equal to VALUE",wg=(t,o=Bg)=>function(e){let r=o.replace(/VAL/g,e).replace(/VALUE/g,t);return e>=t?e:new M(r,"greatOrEqual",e)},Eg="VAL must be a less or equal to VALUE",vg=(t,o=Eg)=>function(e){let r=o.replace(/VAL/g,e).replace(/VALUE/g,t);return e<=t?e:new M(r,"lessOrEqual",e)},Qg="0.7.3",kg="18.05.2025, 14:43:24",yg=()=>{console.info(`%c Guardian %c v${Qg} %c ${kg} `,"color: pink; font-weight: bold; background: #2b1700","color: white; background: darkgreen","color: white; background: #0080fe;")};globalThis.G=Jr;var k=class _{static DEBUG_LEVELS={NONE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,TRACE:5};static DEBUG_LEVEL=_.DEBUG_LEVELS.NONE;static log(o,e,r){if(o>_.DEBUG_LEVEL)return;let a={error:"color: #ff5555; font-weight: bold",warn:"color: #ffaa00; font-weight: bold",info:"color: #0080fe; font-weight: bold",debug:"color: #00aa00; font-weight: bold",trace:"color: #888888",data:"color: #555; font-style: italic"},i,l;switch(o){case _.DEBUG_LEVELS.ERROR:i="error",l=console.error;break;case _.DEBUG_LEVELS.WARN:i="warn",l=console.warn;break;case _.DEBUG_LEVELS.INFO:i="info",l=console.info;break;case _.DEBUG_LEVELS.DEBUG:i="debug",l=console.debug;break;case _.DEBUG_LEVELS.TRACE:i="trace",l=console.log;break;default:return}console.group(`%c Model: ${e}`,a[i]),r!==void 0&&console.log("%c Data:",a.data,r),console.groupEnd()}static error(o,e){_.log(_.DEBUG_LEVELS.ERROR,o,e)}static warn(o,e){_.log(_.DEBUG_LEVELS.WARN,o,e)}static info(o,e){_.log(_.DEBUG_LEVELS.INFO,o,e)}static debug(o,e){_.log(_.DEBUG_LEVELS.DEBUG,o,e)}static trace(o,e){_.log(_.DEBUG_LEVELS.TRACE,o,e)}},Ig="0.4.1",Mg="18.05.2025, 14:39:57",jn=class{constructor(t={}){if(k.DEBUG_LEVEL=t.debug?4:0,k.debug("[Router] Init Router"),this.routes={},this.fallbackRoute=t.fallback||"/",this.maxRedirects=t.maxRedirects||5,this.redirectCount=0,this.basePath=t.base||"",this.middleware=[],this.beforeEachHooks=[],this.after
45EachHooks=[],this.cache=new Map,this.cacheLimit=t.cacheLimit??50,this.touchStartX=0,this.enableSwipeNavigation=t.enableSwipeNavigation||!1,this.current=null,this.redirects={},this.useHash=t.useHash||!1,this.events={beforeNavigate:[],afterNavigate:[],routeNotFound:[],error:[]},this.plugins=[],this.enableSwipeNavigation&&this.initSwipeNavigation(),t.routes){k.debug("[Router] Registering routes");for(let[o,e]of Object.entries(t.routes))this.addRoute(o,e)}t.plugins&&Array.isArray(t.plugins)&&(k.debug("[Router] Registering plugins"),t.plugins.forEach(o=>{Array.isArray(o)?this.usePlugin(o[0],o[1]||{}):this.usePlugin(o)})),k.debug("[Router] Subscribing to unhandledrejection event"),window.addEventListener("unhandledrejection",this.handleError.bind(this)),k.debug("[Router] Router Initialized")}on(t,o){return k.debug(`[Router] Subscribing to event ${t}`),this.events[t]&&this.events[t].push(o),this}emit(t,...o){if(k.debug(`[Router] Emitting event ${t}`),this.events[t])for(let e of this.events[t]){let r=e(...o);if(t==="beforeNavigate"&&r===!1)return!1}return!0}initSwipeNavigation(){k.debug("[Router] Initializing swipe navigation"),k.debug("[Router] Adding touchstart event listener"),document.addEventListener("touchstart",t=>{this.touchStartX=t.touches[0].clientX},{passive:!0}),k.debug("[Router] Adding touchend event listener"),document.addEventListener("touchend",t=>{let o=t.changedTouches[0].clientX,e=this.touchStartX-o;Math.abs(e)>100&&(e>0?(k.debug("[Router] Swiping right (forward)"),window.history.forward()):(k.debug("[Router] Swiping left (backward)"),window.history.back()))},{passive:!0})}handleError(t){k.error("[Router] Error during navigation:",t),this.emit("error",t),this.routes["/error"]?this.navigateTo("/error",!0):this.navigateTo(this.fallbackRoute,!0)}sanitizePath(t){k.debug("[Router] Sanitizing path:",t);try{if(!t)return"/";let o=new URL(t,window.location.origin),e=decodeURIComponent(o.pathname);return e=e.replace(/[<>'"`;(){}]/g,"").replace(/[\u0000-\u001F\u007F-\u009F]/g,"").replace(/([^/])\/{2,}/g,"$1/").replace(/\/+/g,"/").replace(/(.+)\/$/,"$1").replace(/\.+/g,".").split("/").filter(r=>r!==".."&&r!==".").join("/"),e.startsWith("/")||(e="/"+e),this.isBlockedPath(e)?"/":(k.debug("[Router] Sanitized path:",e),e)}catch(o){return k.error("[Router] Error sanitizing path:",o),"/"}}isBlockedPath(t){return k.debug("[Router] Checking if path is blocked:",t),[/^\/(api|admin|wp-admin|wp-content|wp-includes)/i,/\.(php|asp|aspx|jsp|cgi|config|env|git|sql|htaccess)$/i,/\/(.+\/)*\.{2,}\//,/javascript:/i,/data:/i,/vbscript:/i,/file:/i].some(o=>o.test(t))}test(t){k.debug("[Router] Testing path:",t);let o=t,e=this.sanitizePath(t),r={original:o,sanitized:e,isBlocked:this.isBlockedPath(e),isModified:o!==e};return k.debug(`[Router] test result for path ${t}:`,r),r}beforeEach(t){return k.debug("[Router] Adding beforeEach hook"),this.beforeEachHooks.push(t),this}afterEach(t){return k.debug("[Router] Adding afterEach hook"),this.afterEachHooks.push(t),this}use(t){return k.debug("[Router] Adding middleware"),this.middleware.push(t),this}addRedirect(t,o){return k.debug("[Router] Adding redirect from",t,"to",o),this.redirects[t]?!1:(this.redirects[t]=o,this)}addRoute(t,o){return k.debug("[Router] Adding route",t),this.routes[t]=o,this}addNestedRoute(t,o,e){k.debug(`[Router] Adding nested route ${o} to ${t}`);let r=`${t}${o}`.replace(/\/\//g,"/");return this.addRoute(r,e),this}addLazyRoute(t,o){return k.debug("[Router] Adding lazy-loaded route",t),this.addRoute(t,async e=>{try{let r=await o();return(r.default||r)(e)}catch(r){throw r}}),this}addLazyNestedRoute(t,o,e){k.debug("[Router] Adding lazy-loaded nested route",o,"to",t);let r=`${t}${o}`.replace(/\/\//g,"/");return this.addLazyRoute(r,e),this}addFallbackRoute(t){return k.debug("[Router] Adding fallback route",t),this.fallbackRoute=t,this}add404Route(t){return k.debug("[Router] Adding 404 route",t),this.routes["/404"]=t,this}addErrorRoute(t){return k.debug("[Router] Adding error route",t),this.routes["/error"]=t,this}addProtectedRoute(t,o,e,r="/login"){return k.debug("[Router] Adding protected route",t),this.addRoute(t,async a=>{if(await e(a))return k.debug("[Router] Guard function passed, executing callback"),o(a);k.debug("[Router] Guard function failed, redirecting to",r),await this.navigateTo(r,!0)}),this}removeRoute(t){return k.debug("[Router] Removing route",t),this.routes[t]&&delete this.routes[t],this}updateRoute(t,o){return k.debug("[Router] Updating route",t),this.routes[t]&&(this.routes[t]=o),this}getRoutes(){return k.debug("[Router] Getting registered routes"),this.routes}async navigate(t){if(k.debug("[Router] Navigating to",t),this.redirectCount>this.maxRedirects){k.error("[Router] Maximum redirect limit reached, redirecting to",this.fallbackRoute),console.error("Maximum redirect limit reached"),this.redirectCount=0,this.emit
45("error",new Error("Maximum redirect limit reached")),await this.navigateTo("/error",!0);return}this.redirectCount++;let o=this.matchRoute(this.sanitizePath(t));if(o)try{if(k.debug("[Router] Route matched:",o),this.emit("beforeNavigate",o)===!1){k.debug("[Router] Navigation cancelled by beforeNavigate hook");return}if(this.redirects[o.path]){k.debug("[Router] Redirecting to",this.redirects[o.path]),await this.navigateTo(this.redirects[o.path],!0);return}this.redirectCount++;for(let e of this.middleware)k.debug("[Router] Executing middleware"),await e(o);for(let e of this.beforeEachHooks)k.debug("[Router] Executing beforeEach hook"),await e(o);k.debug("[Router] Executing route callback"),await o.callback(o.params);for(let e of this.afterEachHooks)k.debug("[Router] Executing afterEach hook"),await e(o);this.current=o,this.emit("afterNavigate",o),k.debug("[Router] Navigation completed")}catch(e){k.error("[Router] Error during navigation:",e),console.error("Navigation error:",e),this.emit("error",e),this.routes["/error"]&&this.routes["/error"](e)}else k.warn("[Router] Route not found:",t),this.redirectCount=0,this.emit("routeNotFound",t),this.routes["/404"]&&this.routes["/404"]()}async navigateTo(t,o=!1){k.debug(`[Router] Navigating to ${t} ${o?"with replace state":""}`),this.redirectCount=0;let e=new URL(t,window.location.origin);o?(k.debug("[Router] Replacing state with",e),window.history.replaceState({},"",e)):(k.debug("[Router] Pushing state with",e),window.history.pushState({},"",e)),k.debug("[Router] Navigating to",e),await this.navigate(e.pathname)}matchRoute(t){if(k.debug("[Router] Matching route for",t),this.cache.has(t))return this.cache.get(t);k.debug("[Router] Route not found in cache, performing match");let o=this._performMatch(t);if(this.cache.size>=this.cacheLimit){k.debug("[Router] Cache limit reached, removing oldest entry");let e=this.cache.keys().next().value;this.cache.delete(e)}return k.debug("[Router] Caching result for",t),this.cache.set(t,o),o}_performMatch(t){let[o,e]=t.split("?"),r=new URLSearchParams(e),a=Object.fromEntries(r);for(let i in this.routes){let l=[],s=i.replace(/:([^\/]+)/g,(A,p)=>(l.push(p),"([^/]+)")),c=t.match(new RegExp(`^${s}$`));if(c){let A=c.slice(1).reduce((p,g,h)=>(p[l[h]]=g,p),{});return{path:t,pattern:s,callback:this.routes[i],params:A,query:a}}}return null}clearCache(){k.debug("[Router] Clearing cache"),this.cache.clear()}resetRedirectCount(){k.debug("[Router] Resetting redirect count"),this.redirectCount=0}getFullPath(t){return k.debug("[Router] Getting full path for",t),this.useHash?`#${t}`:t}getPathFromLocation(){return k.debug("[Router] Getting path from location"),this.useHash?window.location.hash.slice(1)||"/":window.location.pathname}listen(){return k.debug("[Router] Starting to listen for navigation events"),this._handleNavigation=()=>{this.redirectCount=0,this.navigate(this.getPathFromLocation()).then(t=>{})},this._handleLinkClick=t=>{if(t.target.tagName==="A"){let o=t.target.getAttribute("href");if(o&&(this.useHash&&o.startsWith("#")||!this.useHash&&t.target.href.startsWith(window.location.origin))){t.preventDefault();let e=this.useHash?o.slice(1):t.target.pathname;this.redirectCount=0,this.navigateTo(e).then(r=>{})}}},k.debug("[Router] Listening for navigation events"),window.addEventListener(this.useHash?"hashchange":"popstate",this._handleNavigation),k.debug("[Router] Listening for link clicks"),document.addEventListener("click",this._handleLinkClick),this._initPlugins(),this.redirectCount=0,this.navigate(this.getPathFromLocation()).then(t=>{}),this}_initPlugins(){k.debug("[Router] Init plugins"),this.plugins.forEach(({plugin:t,options:o})=>{typeof t.onInit=="function"&&t.onInit(this,o)})}usePlugin(t,o={}){if(!t)return this;if(k.debug("[Router] Using plugin",t),typeof t=="object"&&typeof t.install=="function")k.debug("[Router] Installing plugin",t),t.install(this,o);else if(typeof t=="function")k.debug("[Router] Executing plugin",t),t(this,o);else return k.warn("Invalid plugin format. Plugin must be an object with install method or a function."),this;return k.debug("[Router] Add plugin to store",t),this.plugins.push({plugin:t,options:o}),k.debug("[Router] Plugin initialized"),this}destroy(){k.debug("[Router] Destroying router"),this.plugins.forEach(({plugin:t,options:o})=>{k.debug("[Router] Destroying plugin",t),typeof t.onDestroy=="function"&&t.onDestroy(this,o)}),k.debug("[Router] Removing event listeners"),window.removeEventListener(this.useHash?"hashc
45hange":"popstate",this._handleNavigation),document.removeEventListener("click",this._handleLinkClick),window.removeEventListener("unhandledrejection",this.handleError),this._handleNavigation=null,this._handleLinkClick=null,this.routes={},this.plugins=[],this.cache.clear(),k.debug("[Router] Router destroyed")}};jn.info=()=>{console.info(`%c Router %c v${Ig} %c ${Mg} `,"color: #ffffff; font-weight: bold; background: #ed1cab","color: white; background: darkgreen","color: white; background: #0080fe;")};var Cg=jn,Tn=Cg;globalThis.Router=Tn;var Fg=class{constructor(){this.events=new Map}on(t,o){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(o),()=>this.off(t,o)}off(t,o){this.events.has(t)&&this.events.get(t).delete(o)}emit(t,o){this.events.has(t)&&this.events.get(t).forEach(e=>{try{e(o)}catch(r){console.error(`Error when performing an event handler ${t}:`,r)}})}},Sr=Fg,Dg=`
46    <style>
47        #model-devtools-panel  { 
48            position: fixed;
49            bottom: 0;
50            right: 0;
51            width: 300px;
52            height: 400px;
53            background: #242424;
54            color: #fff;
55            border: 1px solid #333;
56            z-index: 9999;
57            font-family: monospace;
58            
59            *::-webkit-scrollbar {
60              width: 10px;
61            }
62            
63            * {
64              scrollbar-width: thin;
65            }
66            
67            .devtools-section {
68                padding: 8px;
69                margin: 4px;
70                border: 1px solid #444;
71                cursor: pointer;
72                hover: background-color: #333;
73                font-size: 12px;
74            }
75            
76            h3 {
77                margin: 0;
78                font-size: 14px;
79                border-bottom: 1px solid #333;
80                padding-bottom: 4px;
81            }
82        }
83        
84        #model-dev-tools-toggle-button {
85            position: fixed;
86            bottom: 10px;
87            right: 10px;
88            z-index: 9998;
89            height: 36px;
90            width: 36px;
91            background: #444;
92            color: white;
93            border: none;
94            border-radius: 4px;
95            cursor: pointer;
96            display: flex;
97            align-items: center;
98            justify-content: center;
99        }        
100
101        #model-devtools-time-travel-dialog {
102            position: fixed;
103            bottom: 0;
104            right: 304px;
105            background: #2a2a2a;
106            border: 1px solid #444;
107            border-radius: 4px;
108            height: 400px;
109            width: 300px;
110            z-index: 10000;
111            color: #fff;
112            font-family: monospace;
113            
114            *::-webkit-scrollbar {
115              width: 10px;
116            }
117            
118            * {
119              scrollbar-width: thin;
120            }
121            
122            .time-travel-items {
123                padding: 4px; 
124                height: calc(100% - 35px); 
125                overflow: auto;
126                position: relative;
127            }
128            
129            .time-travel-item {
130                padding: 8px;
131                margin: 4px;
132                border: 1px solid #444;
133                cursor: pointer;
134                hover: background-color: #333;
135                font-size: 12px;
136                
137                button {
138                    margin-top: 8px;
139                    background: dodgerblue;
140                }
141            }
142        }
143        
144        #model-devtools-panel, #model-devtools-time-travel-dialog {
145            button {
146                height: 20px;
147                display: inline-flex;
148                align-items: center;
149                justify-content: center;
150                font-size: 12px;
151                border-radius: 4px;
152                border: 1px solid #444;
153                background: #333;
154                color: #fff;
155                cursor: pointer;
156                
157                @media (hover: hover) {
158                    &:hover {
159                        background: #444;
160                    }
161                }
162
163                @media (hover: none) {
164                    &:hover {
165                        background: #444;
166                    }
167                }
168            }        
169        }
170        
171        .dev-tools-header {
172            padding: 8px; 
173            border-bottom: 1px solid #333; 
174            display: flex; 
175            justify-content: space-between;
176        }
177    </style>
178`,Yg=Dg,Ug=class{constructor(t,o={}){this.model=t,this.options={enabled:!0,timeTravel:!0,maxSnapshots:50,...o},this.history=[],this.currentIndex=-1,this.initializeDevTools()}initializeDevTools(){window.__MODEL_DEVTOOLS__=this,this.createDevToolsPanel(),this.setupModelListeners()}createDevToolsPanel(){let t=document.createElement("div");t.id="model-devtools-panel",t.style.cssText="display: none;";let o=document.createElement("div");o.innerHTML=`
179            ${Yg}
180            <div class="dev-tools-header">
181                <span>\u{1F6E0} Model DevTools</span>
182                <div>
183                    <button id="devtools-time-travel" title="Time Travel">\u23F1</button>
184                    <button id="devtools-close" title="Close">\xD7</button>
185                </div>
186            </div>
187        `;let e=document.createElement("div");e.style.cssText=`
188            padding: 8px;
189            height: calc(100% - 35px);
190            overflow: auto;
191        `,e.id="model-devtools-content",t.appendChild(o),t.appendChild(e),document.body.appendChild(t),this.createToggleButton(),document.getElementById("devtools-close").onclick=()=>this.togglePanel(),document.getElementById("devtools-time-travel").onclick=()=>this.showTimeTravelDialog()}showTimeTravelDialog(){let t=document.getElementById("model-devtools-time-travel-dialog");t||(t=document.createElement("div"),t.id="model-devtools-time-travel-dialog");let o=[...this.history].reverse().map((e,r)=>`
192            <div class="time-travel-item">
193                <div>Time: ${new Date(e.timestamp).toLocaleTimeString()}</div>
194                <div>Type: ${e.type}</div>
195                <div>Property: ${e.property||e.event||e.path||""}</div>
196                <div>Value: ${e.type==="computed-update"?e.newValue:typeof e.oldValue<"u"&&typeof e.newValue<"u"?`${JSON.stringify(e.oldValue)} -> ${JSON.stringify(e.newValue)}`:JSON.stringify(e.newValue||e.value||"")}</div>
197                <button style="display: none" onclick="window.__MODEL_DEVTOOLS__.timeTravel(${this.history.length-1-r})">Apply this state</button>
198            </div>
199        `).join("");t.innerHTML=`
200            <div class="dev-tools-header">
201                <span>\u23F1 Time Travel</span>
202                <div>
203                    <button style="margin-left: auto;" onclick="window.__MODEL_DEVTOOLS__.clearTimeTravel()">CLear</button>
204                    <button onclick="this.parentElement.parentElement.parentElement.remove()">\xD7</button>                
205                </div>
206            </div>
207            <div class="time-travel-items">${o||"Nothing to show!"}</div>
208        `,document.body.appendChild(t)}createToggleButton(){let t=document.createElement("button");t.id="model-dev-tools-toggle-button",t.textContent="\u{1F6E0}
208",t.title="Model DevTools",t.onclick=()=>this.togglePanel(),document.body.appendChild(t)}setupModelListeners(){this.model.store.on("change",t=>{this.logChange({type:"data-change",path:t.path,oldValue:t.oldValue,newValue:t.newValue,timestamp:Date.now()})}),this.model.store.on("*",(t,o)=>{t!=="change"&&t!=="compute"&&t!=="arrayChange"&&this.logChange({type:"store-event",event:t,data:o,timestamp:Date.now()})}),this.model.on("*",(t,o)=>{t!=="change"&&t!=="compute"&&this.logChange({type:"model-event",event:t,data:o,timestamp:Date.now()})}),this.model.store.on("compute",t=>{this.logChange({type:"computed-update",property:t.key,dependencies:Array.from(t.dependencies),newValue:t.value,timestamp:Date.now()})}),this.model.store.on("arrayChange",t=>{this.logChange({type:"array-operation",path:t.path,method:t.method,args:t.args,oldValue:t.oldValue,newValue:t.newValue,timestamp:Date.now()})})}logChange(t){this.options.enabled&&(this.options.timeTravel&&this.saveSnapshot(t),this.updateDisplay())}saveSnapshot(t){let o={...t,state:JSON.parse(JSON.stringify(this.model.data)),computed:this.getComputedValues()};this.history=this.history.slice(0,this.currentIndex+1),this.history.push(o),this.currentIndex++,this.history.length>this.options.maxSnapshots&&(this.history.shift(),this.currentIndex--)}updateDisplay(){let t=document.getElementById("model-devtools-content");if(!t)return;let o=l=>{if(l===void 0)return"undefined";if(l===null)return"null";try{return Array.isArray(l)?`Array(${l.length}) ${JSON.stringify(l,null,2)}`:JSON.stringify(l,null,2)}catch{return String(l)}},e=this.getRecentChanges(),r="";for(let l of e){let s;try{let c={...l,timestamp:new Date(l.timestamp).toLocaleTimeString()};s=JSON.stringify(c,null,2)}catch(c){s=`Error formatting change: ${c.message}`}r+=`
209            <div style="border-bottom: 1px solid #444; padding-bottom: 8px; overflow-x: auto">
210                <pre>${s}</pre>
211            </div>
212`}let a=this.getComputedValues();t.innerHTML=`
213        <div class="devtools-section">
214            <h3>Current State:</h3>
215            <pre>${o(this.model.data)}</pre>
216        </div>
217        <div class="devtools-section">
218            <h3>Computed Values:</h3>
219            <pre>${o(a)}</pre>
220        </div>
221        <div class="devtools-section">
222            <h3>DOM Dependencies:</h3>
223            <pre>${this.formatDOMDependencies()}</pre>
224        </div>
225        <div class="devtools-section">
226            <h3>Recent Changes:</h3>
227            ${r}
228        </div>
229    `,document.getElementById("model-devtools-time-travel-dialog")&&this.showTimeTravelDialog()}formatDOMDependencies(){try{let t={};return this.model.dom.domDependencies.forEach((o,e)=>{t[e]=Array.from(o).map(r=>({type:r.type,element:r.element.tagName}))}),JSON.stringify(t,null,2)}catch(t){return`Error formatting DOM dependencies: ${t.message}`}}getComputedValues(){if(!this.model.computed)return{};if(typeof this.model.computed.all=="function")return this.model.computed.all();if(this.model.computed.keys&&Array.isArray(this.model.computed.keys)){let o={};for(let e of this.model.computed.keys)o[e]=this.model.computed.getValue(e);return o}let t={};for(let o in this.model.data)this.model.computed&&typeof this.model.computed[o]<"u"&&(t[o]=this.model.data[o]);return t}getRecentChanges(){return this.history.slice(-5).reverse()}togglePanel(){let t=document.getElementById("model-devtools-panel");t&&(t.style.display=t.style.display==="none"?"block":"none"),t.style.display==="none"&&document.getElementById("model-devtools-time-travel-dialog").remove()}inspect(t){return this.model.store.get(t)}timeTravel(t){this.options.timeTravel}clearTimeTravel(){this.history=[],this.currentIndex=-1,this.showTimeTravelDialog()}startPerfMonitoring(){this.perfMetrics={updates:0,computations:0,domUpdates:0,startTime:Date.now()},this.model.store.on("change",()=>{this.perfMetrics.updates++}),this.model.store.on("compute",()=>{this.perfMetrics.computations++})}getPerfReport(){let t=(Date.now()-this.perfMetrics.startTime)/1e3;return{totalUpdates:this.perfMetrics.updates,updatesPerSecond:this.perfMetrics.updates/t,computationsPerSecond:this.perfMetrics.computations/t,domUpdatesPerSecond:this.perfMetrics.domUpdates/t}}},Ng=Ug,zg=class{constructor(){this.middlewares=[]}use(t){if(typeof t!="function"){console.error("MIDDLEWARE should be a function!");return}this.middlewares.push(t)}async process(t){let o=-1,e=async()=>{o++,o<this.middlewares.length&&await this.middlewares[o](t,e)};return await e(),t}},Rg=zg,B=class X{static DEBUG_LEVELS={NONE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,TRACE:5};static DEBUG_LEVEL=X.DEBUG_LEVELS.NONE;static log(o,e,r){if(o>X.DEBUG_LEVEL)return;let a={error:"color: #ff5555; font-weight: bold",warn:"color: #ffaa00; font-weight: bold",info:"color: #0080fe; font-weight: bold",debug:"color: #00aa00; font-weight: bold",trace:"color: #888888",data:"color: #555; font-style: italic"},i,l;switch(o){case X.DEBUG_LEVELS.ERROR:i="error",l=console.error;break;case X.DEBUG_LEVELS.WARN:i="warn",l=console.warn;break;case X.DEBUG_LEVELS.INFO:i="info",l=console.info;break;case X.DEBUG_LEVELS.DEBUG:i="debug",l=console.debug;break;case X.DEBUG_LEVELS.TRACE:i="trace",l=console.log;break;default:return}console.group(`%c Model: ${e}`,a[i]),r!==void 0&&console.log("%c Data:",a.data,r),console.groupEnd()}static error(o,e){X.log(X.DEBUG_LEVELS.ERROR,o,e)}static warn(o,e){X.log(X.DEBUG_LEVELS.WARN,o,e)}static info(o,e){X.log(X.DEBUG_LEVELS.INFO,o,e)}static debug(o,e){X.log(X.DEBUG_LEVELS.DEBUG,o,e)}static trace(o,e){X.log(X.DEBUG_LEVELS.TRACE,o,e)}},jg=class extends Sr{constructor(t={},o){B.DEBUG_LEVEL=o.options.debug?4:0,B.debug("Init ReactiveStore"),super(),this.model=o,B.DEBUG_LEVEL=this.model.options.debug?4:0,B.debug("Init ReactiveStore"),this.state=this.createReactiveProxy(t),this.watchers=new Map,this.previousState=JSON.parse(JSON.stringify(t)),B.debug("Init MiddlewareManager"),this.middleware=new Rg,B.debug("MiddlewareManager initialized"),B.debug("ReactiveStore initialized")}use(t){B.debug("Registering middleware:",t),this.middleware.use(t)}createReactiveProxy(t,o=""){return B.debug(`Creating reactive object with path ${o} for`,t),Array.isArray(t)?this.createArrayProxy(t,o):new Proxy(t,{get:(e,r)=>{if(typeof r=="symbol")return e[r];let a=e[r],i=o?`${o}.${r}`:r;return a&&typeof a=="object"?this.createReactiveProxy(a,i):a},set:async(e,r,a)=>{if(typeof r=="symbol")return e[r]=a,!0;let i=o?`${o}.${r}`:r,l=e[r];if(l===a)return!0;
229if(this.validators?.has(`${i}`)&&!this.validators.get(`${i}`)(a))return!1;this.formatters?.has(`${i}`)&&(a=this.formatters.get(`${i}`)(a)),a&&typeof a=="object"&&(a=this.createReactiveProxy(a,i));let s={prop:r,oldValue:l,newValue:a,preventDefault:!1};return await this.middleware.process(s),s.preventDefault||(e[r]=a,this.emit("change",{path:i,oldValue:l,newValue:a}),this.watchers.has(i)&&this.watchers.get(i).forEach(c=>{c(a,l)})),!0},deleteProperty:(e,r)=>{if(typeof r=="symbol")return delete e[r];let a=o?`${o}.${r}`:r,i=e[r],l=delete e[r];return l&&(this.emit("delete",{path:a,oldValue:i}),this.watchers.has(a)&&this.watchers.get(a).forEach(s=>{s(void 0,i)})),l}})}createArrayProxy(t,o){return B.debug(`Creating reactive array with path ${o} for`,t),new Proxy(t,{get:(e,r)=>{if(typeof r=="symbol")return e[r];let a=e[r];return typeof a=="function"&&["push","pop","shift","unshift","splice","sort","reverse"].includes(r)?(...i)=>{let l=[...e],s=e[r].apply(e,i),c={prop:o,oldValue:l,newValue:e,method:r,args:i,preventDefault:!1};return this.middleware.process(c).then(()=>
229{c.preventDefault||(this.emit("arrayChange",{path:o,method:r,args:i,oldValue:l,newValue:e}),this.emit("change",{path:o,oldValue:l,newValue:e,method:r,args:i}),this.watchers.has(o)&&this.watchers.get(o).forEach(A=>{A(e,l)}))}),s}:typeof r!="symbol"&&!isNaN(Number(r))&&a&&typeof a=="object"?this.createReactiveProxy(a,`${o}[${r}]`):a},set:async(e,r,a)=>{if(typeof r=="symbol")return e[r]=a,!0;let i=o?`${o}.${r}`:r,l=e[r];if(l===a)return!0;if(this.validators?.has(i)&&!this.validators.get(i)(a))return!1;this.formatters?.has(i)&&(a=this.formatters.get(i)(a)),e[r]=a,a&&typeof a=="object"&&(a=this.createReactiveProxy(a,`${o}[${r}]`));let s={prop:r,oldValue:l,newValue:a,preventDefault:!1};return await this.middleware.process(s),s.preventDefault||(e[r]=a,this.middleware.process(s).then(()=>{s.preventDefault||(this.emit("arrayChange",{path:i,method:null,args:null,oldValue:l,newValue:a}),this.emit("change",{path:i,oldValue:l,newValue:a,arrayIndex:Number(r)}),this.watchers.has(i)&&this.watchers.get(i).forEach(c=>{c(a,l)}))})),!0}})}applyArrayMethod(t,o,...e){B.debug(`Applying array method ${o} to path ${t} with args`,e);let r=this.get(t);if(!Array.isArray(r))return console.error(`\u041F\u0443\u0442\u044C ${t} \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043C\u0430\u0441\u0441\u0438\u0432\u043E\u043C!`),!1;let a=[...r],i=r[o].apply(r,e);return this.emit("arrayChange",{path:t,method:o,args:e,oldValue:a,newValue:[...r]}),this.emit("change",{path:t,oldValue:a,newValue:[...r]}),this.watchers.has(t)&&this.watchers.get(t).forEach(l=>{l([...r],a)}),i}applyArrayChanges(t,o){B.debug(`Applying custom array changes to path ${t} with callback`,o);let e=this.get(t);if(!Array.isArray(e))return console.error(`The path ${t} is not an array!`),!1;let r=[...e],a=o(e);return this.emit("arrayChange",{path:t,method:"custom",args:null,oldValue:r,newValue:[...e]}),this.emit("change",{path:t,oldValue:r,newValue:[...e]}),this.watchers.has(t)&&this.watchers.get(t).forEach(i=>{i([...e],r)}),a}detectArrayChanges(t,o=[]){B.debug("Detecting changes between arrays");let e={added:[],removed:[],moved:[]};for(let r=0;r<t.length;r++){let a=t[r],i=o.findIndex(l=>JSON.stringify(l)===JSON.stringify(a));i===-1?e.added.push({index:r,item:a}):i!==r&&e.moved.push({oldIndex:i,newIndex:r,item:a})}for(let r=0;r<o.length;r++){let a=o[r];t.findIndex(l=>JSON.stringify(l)===JSON.stringify(a))===-1&&e.removed.push({index:r,item:a})}return B.debug("Detected changes:",e),e}watch(t,o){return B.debug(`Watching path ${t} with callback`,o),this.watchers.has(t)||this.watchers.set(t,new Set),this.watchers.get(t).add(o),()=>{this.watchers.has(t)&&this.watchers.get(t).delete(o)}}get(t){if(B.debug(`Getting value at path ${t}`),!t)return this.state;let o=t.split("."),e=this.state;for(let r of o){if(e==null)return;e=e[r]}return e}set(t,o){B.debug(`Setting value at path ${t} to`,o);let e=t.split("."),r=this.state;for(let a=0;a<e.length-1;a++)r[e[a]]===void 0&&(r[e[a]]={}),r=r[e[a]];return r[e[e.length-1]]=o,o}batch(t){B.debug("Batch updating state with",t),this.previousState=JSON.parse(JSON.stringify(this.state)),typeof t=="function"?t(this.state):typeof t=="object"&&Object.entries(t).forEach(([o,e])=>{this.set(o,e)}),this.emit("batchComplete",{previousState:this.previousState,currentState:this.state})}getState(){return B.debug("Getting entire state"),this.state}getPreviousState(){return B.debug("Getting previous state"),this.previousState}toJSON(){return B.debug("Converting state to JSON"),JSON.stringify(this.state)}fromJSON(t){B.debug("Restoring state from JSON",t);let o=JSON.parse(t);this.previousState=JSON.parse(JSON.stringify(this.state)),Object.keys(this.state).forEach(e=>{delete this.state[e]}),Object.entries(o).forEach(([e,r])=>{this.state[e]=r}),this.emit("restore",{previousState:this.previousState,currentState:this.state})}addValidator(t,o){B.debug(`Adding validator for path ${t}`),this.validators||(this.validators=new Map),this.validators.set(t,o)}addFormatter(t,o){B.debug(`Adding formatter for path ${t}`),this.formatters||(this.formatters=new Map),this.formatters.set(t,o)}isValidPath(t){B.debug(`Validating path ${t}`);try{return this.get(t)!==void 0}catch(o){return B.error(`Error validating path ${t}:`,o),!1}}destroy(){this.state=null,this.watchers.clear(),this.previousState=null,B.debug("ReactiveStore destroyed")}},Tg=class{constructor(t,o){B.DEBUG_LEVEL=o.options.debug?4:0,B.debug("Init LoopManager"),this.domManager=t,this.model=o,this.loops=new Map,this.loopsIn=[],B.debug("LoopManager initialized")}parseLoops(t){B.debug("Parsing loops with data-for...");let o=t.querySelectorAll("[data-for]");B.debug("Found elements with data-for:",o.length),o.forEach(r=>{let a=r.getAttribute("data-for").trim(),i=a.match(/^\s*(\w+)(?:\s*,\s*(\w+))?\s+in\s+(\w+(?:\.\w+)*)\s*$/);if(!i){console.error("Invalid expression format data-for:",a);return}let[l,s,c,A]=i,p=this.model.store.get(A);if(!Array.isArray(p)){console.error(`The value in the ${A} path is not an array:`,p);return}let g=r.cloneNode(!0);this.loops.set(r,{template:g,itemName:s,indexName:c,arrayPath:A,parentNode:r.parentNode}),this.domManager.registerDomDependency(A,r,{type:"loop",arrayPath:A}),this.updateLoop(r)}),B.debug("Parsing loops with data-in...");let e=t.querySelectorAll("[data-in]");B.debug("Found elements with data-in:",e.length),e.forEach(r=>{let a=r.getAttribute("data-in"),i=a.match(/^\s*(\w+)\s+in\s+(\S+)\s*$/);if(!i){console.error(`Invalid data-in syntax: ${a}`);return}let[l,s,c]=i,A=r.innerHTML,p=r.parentNode,g=document.createComment(`data-in: ${a}`);r.style.display="none",p.insertBefore(g,r),this.loopsIn.push({type:"in",originalElement:r,template:A,placeholder:g,objectPath:c,keyVar:s,elements:[]});let h=this.model.store.get(c);h&&typeof h=="object"&&!Array.isArray(h)&&this.updateInLoop(this.loopsIn[this.loopsIn.length-1],h)})}
229updateInLoop(t,o){t.elements.forEach(e=>e.remove()),t.elements=[],!(!o||typeof o!="object"||Array.isArray(o))&&Object.keys(o).forEach(e=>{B.debug(`Updating loop for key: ${e}`);let r=t.originalElement.cloneNode(!0);r.removeAttribute("data-in"),r.style.display="";let a={[t.keyVar]:e};r.innerHTML=this.processTemplate(t.template,o,e,a),t.placeholder.parentNode.insertBefore(r,t.placeholder.nextSibling),t.elements.push(r),this.domManager.bindDOM(r)})}processTemplate(t,o,e,r){return B.debug("Processing template:",t),B.debug("	 With data:",o),B.debug(`	 For key: ${e}`),B.debug("	 With context:",r),t.replace(/\{\{\s*([^}]+)\s*\}\}/g,(a,i)=>{i=i.trim();let l=Object.keys(r)[0];if(i===l)return e;B.debug(`Template: Processing path: ${i}`);let s=new RegExp(`(\\w+)\\[${l}\\]`),c=i.match(s);if(c){let p=c[1],g=o;if(g&&typeof g=="object")return g[e]!==void 0?g[e]:""}let A=this.model.store.get(i);return A!==void 0?A:""})}updateLoops(t,o){B.debug("Updating data-for loops for ${path}",this.loops),this.loops.forEach((e,r)=>{e.arrayPath===t&&this.updateLoop(r)}),B.debug(`Updating data-in loops for ${t}`,this.loopsIn),this.loopsIn.forEach(e=>{if(e.type==="in"&&(e.objectPath===t||t.startsWith(e.objectPath+"."))){let r=this.model.store.get(e.objectPath);r&&typeof r=="object"&&this.updateInLoop(e,r)}})}updateLoop(t){B.debug("Updating loop for element:",t);let o=this.loops.get(t)||this.loopsIn.find(A=>A.originalElement===t)[0];if(!o){console.error("\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u0446\u0438\u043A\u043B\u0435 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430 \u0434\u043B\u044F \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430");return}let{template:e,itemName:r,indexName:a,arrayPath:i,parentNode:l}=o,s=this.model.store.get(i);if(!Array.isArray(s)){console.error("\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043C\u0430\u0441\u0441\u0438\u0432\u043E\u043C:",s);return}l.querySelectorAll(`[data-generated-for="${i}"]`).forEach(A=>A.remove()),s.forEach((A,p)=>{let g=e.cloneNode(!0);g.style.display="",g.removeAttribute("data-for"),g.setAttribute("data-generated-for",i),g.setAttribute("data-item-index",""+p),B.debug(`Creating new loop element for ${i} at index ${p}`),this.domManager.processTemplateNode(g,{[r]:A,[a||"index"]:p}),B.debug("Insert new node",g),l.insertBefore(g,t)}),t.style.display="none"}updateLoopPart(t,o,e,r){let a=this.loops.get(t);if(!a)return;let{template:i,itemName:l,indexName:s,parentNode:c}=a,A=this.model.store.get(o);if(!Array.isArray(A))return;let p=Array.from(c.querySelectorAll(`[data-generated-for="${o}"]`));if(r===void 0||p.length!==A.length)return this.updateLoop(t);let g=p[r];if(g){let h=i.cloneNode(!0);for(this.domManager.processTemplateNode(h,{[l]:A[r],[s||"index"]:r});g.firstChild;)g.removeChild(g.firstChild);for(;h.firstChild;)g.appendChild(h.firstChild);Array.from(h.attributes).forEach(d=>{g.setAttribute(d.name,d.value)})}}getLoops(){return{for:this.loops,in:this.loopsIn}}destroy(){this.loops.clear(),this.loopsIn=[],B.debug("LoopManager destroyed")}},yo=class{static evaluateExpression(t,o){try{if(t.startsWith("{{")&&t.endsWith("}}")){let e=t.substring(2,t.length-2).trim();return this.getValueFromContext(o,e)}return this.parseExpression(t,o)}catch(e){return console.error("\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0432\u044B\u0447\u0438\u0441\u043B\u0435\u043D\u0438\u0438 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F:",e),!1}}static getValueFromContext(t,o){return o?o.split(".").reduce((e,r)=>{let a=r.match(/^([^\[]+)(?:\[(\d+)\])?$/);if(a){let[i,l,s]=a,c=e?.[l];return s!==void 0&&Array.isArray(c)?c[parseInt(s,10)]:c}return e?.[r]},t):t}static parseExpression(t,o){t=t.trim();let e=t.match(/(.+?)\s*\?\s*(.+?)\s*:\s*(.+)/);if(e){let[a,i,l,s]=e;return this.parseExpression(i,o)?this.parseExpression(l,o):this.parseExpression(s,o)}if(t.includes("&&"))return t.split("&&").every(i=>this.parseExpression(i.trim(),o));if(t.includes("||"))return t.split("||").some(i=>this.parseExpression(i.trim(),o));let r=t.match(/(.+?)\s*(===|==|!==|!=|>=|<=|>|<)\s*(.+)/);if(r){let[a,i,l,s]=r,c=this.parseExpression(i.trim(),o),A=this.parseExpression(s.trim(),o);switch(l){case"==":return c==A;case"===":return c===A;case"!=":return c!=A;case"!==":return c!==A;case">":return c>A;case"<":return c<A;case">=":return c>=A;case"<=":return c<=A}}if(t.startsWith("'")&&t.endsWith("'")||t.startsWith('"')&&t.endsWith('"'))return t.substring(1,t.length-1);if(/^-?\d+(\.\d+)?$/.test(t))return parseFloat(t);if(t==="true")return!0;
229if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined")return this.getValueFromContext(o,t)}static extractVariables(t){let o=[],r=t.replace(/'[^']*'/g,"''").replace(/"[^"]*"/g,'""').match(/[a-zA-Z_][a-zA-Z0-9_]*(\.([a-zA-Z_][a-zA-Z0-9_]*))*(\[\d+\])*/g);return r&&r.forEach(a=>{let i=a.split(".")[0].split("[")[0].trim();["true","false","null","undefined"].includes(i)||o.includes(i)||o.push(i)}),o}},Jg=class{constructor(t,o){B.DEBUG_LEVEL=o.options.debug?4:0,B.debug("ConditionalManager: Init ConditionalManager"),this.dom=t,this.model=o,this.dependencies=new Map,this.conditionalGroups=[],this.subscribe(),B.debug("ConditionalManager: ConditionalManager initialized")}subscribe(){B.debug("ConditionalManager: Subscribe to store changes"),this.model.store.on("change",t=>{this.getGroupsByPath(t.path).forEach(e=>{this.updateConditionalGroup(e)})})}getGroupsByPath(t){if(!t)return[];let o=new Set;return this.conditionalGroups.forEach(e=>{e.some(a=>a.expression?a.expression.includes(t)||t.startsWith(this.extractBasePath(a.expression)):!1)&&o.add(e)}),Array.from(o)}extractBasePath(t){let o=t.match(/[a-zA-Z_][a-zA-Z0-9_]*/g);return o?o[0]:""}parseConditionals(t){B.debug("ConditionalManager: Parse conditionals (data-if, data-else-if, data-else)...");let o=t.querySelectorAll("[data-if],[data-else-if],[data-else]"),e=[],r=[];o.forEach(a=>{a.hasAttribute("data-if")?(B.debug("ConditionalManager: Found data-if in element:",a),e.length&&r.push(e),e=[{element:a,type:"if",expression:a.getAttribute("data-if")}]):a.hasAttribute("data-else-if")?(B.debug("ConditionalManager: Found data-else-if in element:",a),e.length&&this.isAdjacentNode(e[e.length-1].element,a)?e.push({element:a,type:"else-if",expression:a.getAttribute("data-else-if")}):(e.length&&r.push(e),e=[{element:a,type:"if",expression:a.getAttribute("data-else-if")}])):a.hasAttribute("data-else")&&(B.debug("ConditionalManager: Found data-else in element:",a),e.length&&this.isAdjacentNode(e[e.length-1].element,a)?(e.push({element:a,type:"else",expression:null}),r.push(e),e=[]):B.warn("data-else without previous data-if or data-else-if",a))}),e.length&&r.push(e),this.conditionalGroups=r,r.forEach(a=>this.updateConditionalGroup(a)),this.setupDependencies(o)}isAdjacentNode(t,o){let e=t.nextSibling;for(;e;){if(e===o)return!0;if(e.nodeType===1&&!this.isWhitespaceNode(e))return!1;e=e.nextSibling}return!1}isWhitespaceNode(t){return t.nodeType===3&&t.textContent.trim()===""}updateConditionalGroup(t){let o=this.model&&this.model.store?{...this.model.store.getState()}:this.model&&this.model.data?this.model.data:{},e=!1;for(let r of t)r.type==="if"||r.type==="else-if"?!e&&yo.evaluateExpression(r.expression,o)?(r.element.style.display="",e=!0):r.element.style.display="none":r.type==="else"&&(r.element.style.display=e?"none":"")}updateConditional(t,o){let e=this.findGroupForElement(t);if(e)this.updateConditionalGroup(e);else{let r=this.model&&this.model.store?{...this.model.store.getState()}:this.model&&this.model.data?this.model.data:{},a=yo.evaluateExpression(o,r);t.style.display=a?"":"none"}}findGroupForElement(t){for(let o of this.conditionalGroups||[])if(o.some(e=>e.element===t))return o;return null}setupDependencies(t){this.dependencies=new Map,t.forEach(o=>{let e;if(o.hasAttribute("data-if"))e=o.getAttribute("data-if");else if(o.hasAttribute("data-else-if"))e=o.getAttribute("data-else-if");else return;yo.extractVariables(e).forEach(a=>{this.dependencies.has(a)||this.dependencies.set(a,[]),this.dependencies.get(a).push({element:o,expression:e,type:o.hasAttribute("data-if")?"if":"else-if"})})})}getDependenciesByPath(t){let o=[];return this.dependencies.forEach((e,r)=>{(r===t||t.startsWith(r+"."))&&o.push(...e)}),o}destroy(){this.dependencies.clear(),this.conditionalGroups=[],B.debug("ConditionalManager: Destroyed")}},Sg=class{constructor(t,o){this.domManager=t,this.model=o,B.DEBUG_LEVEL=this.model.options.debug?4:0,B.debug("AttributeManager: Init AttributeManager")}parseAttributesBind(t){B.debug("AttributeManager: Parsing attributes bind with data-bind...");let o=t.querySelectorAll("[data-bind]");B.debug("AttributeManager: Found elements with data-bind:",o.length),o.forEach(e
229=>{B.debug("AttributeManager: Parsing element with data-bind:",e);let r=e.getAttribute("data-bind");try{let a=JSON.parse(r.replace(/'/g,'"'));for(let[i,l]of Object.entries(a)){let s=yo.extractVariables(l);B.debug(`AttributeManager: Found variables for ${i}:`,s),s.forEach(c=>{this.domManager.registerDomDependency(c,e,{type:"attribute",attribute:i,expression:l})}),this.updateAttributes(e,i,l)}}catch(a){console.error("An error of analysis of attachments:",a)}})}updateAttributes(t,o,e){let r={...this.model.store.getState()},a;if(e.startsWith("{{")&&e.endsWith("}}")){let l=e.substring(2,e.length-2).trim();a=this.model.store.get(l)}else a=yo.evaluateExpression(e,r);let i=t.getAttribute(o);String(a)!==i&&(a===!1||a===null||a===void 0?t.removeAttribute(o):a===!0?t.setAttribute(o,""):t.setAttribute(o,String(a)),B.debug(`AttributeManager: Updated attribute ${o} with value:`,a))}parseAttributes(t){B.debug("AttributeManager: Parsing attributes with colon...");let o=t.querySelectorAll("*");for(let e of o){let r=e.attributes;for(let a=0;a<r.length;a++){let i=r[a];if(i.name.startsWith(":")){B.debug("AttributeManager: Found attribute:",i);let l=i.name.substring(1),s=i.value;this.updateElementAttribute(e,l,s),this.domManager.registerDomDependency(s,e,{type:"attribute",attribute:l,expression:s}),e.removeAttribute(i.name)}}}}updateElementAttribute(t,o,e){let r=""+this.model.store.get(e);r===void 0||r==="undefined"||(B.debug(`AttributeManager: Updating attribute ${o} with ${r}`),o==="class"?t.className=r:o==="disabled"||o==="checked"||o==="selected"||o==="readonly"?r?t.setAttribute(o,""):t.removeAttribute(o):t.setAttribute(o,r))}update(t,o,e){B.debug("AttributeManager: Updating element:",t),B.debug(`	 Attribute: ${o} for:`,e),this.updateAttributes(t,o,e),this.updateElementAttribute(t,o,e)}},Gg=class{constructor(t,o){B.DEBUG_LEVEL=o.options.debug?4:0,B.debug("EventManager: Init EventManager"),this.domManager=t,this.model=o,this.eventHandlers=new Map,B.debug("EventManager: EventManager initialized")}parseEvents(t){B.debug("EventManager: Parsing events with @...");let o=t.querySelectorAll("*");[t,...Array.from(o)].forEach(r=>{Array.from(r.attributes||[]).forEach(i=>{if(i.name.startsWith("@")){B.debug(`EventManager: Found attribute with "@" ${i.name} in`,r);let l=i.name.substring(1),s=i.value.trim();this.bindEventHandler(r,l,s),r.removeAttribute(i.name)}})})}bindEventHandler(t,o,e){B.debug(`EventManager: Binding event handler with expression ${e} for ${o} on`,t);let r=i=>{try{let l={$model:this.model,$event:i,$data:this.model.data,$dom:this.domManager},s=e.match(/(\w+)\((.*)\)/);if(s){let c=s[1],A=s[2],p=(h,d)=>h.split(".").reduce((u,f)=>u&&u[f]!==void 0?u[f]:void 0,d),g=p(c,this.model);if(g||(g=p(c,window)),typeof g=="function"){let h=[];A.trim()&&(h=A.split(",").map(d=>(d=d.trim(),d.startsWith('"')&&d.endsWith('"')||d.startsWith("'")&&d.endsWith("'")?d.slice(1,-1):isNaN(d)?d==="$event"?(B.debug("EventManager: Requested Event",i),i):d==="$model"?(B.debug("EventManager: Requested Model",this.model),this.model):d==="$data"?(B.debug("EventManager: Requested Model Context",this.model.data),this.model.data):d==="$dom"?(B.debug("EventManager: Requested DOMManager",this.domManager),this.domManager):this.model.store.get(d):Number(d)))),g.apply(l,h)}else console.warn(`EventManager: The method '${c}' not found in a model or global space!`)}else this.model.options.useSimpleExpressions?new Function(`return ${e}`).apply(this.model.data):console.warn(`EventManager: Unknown format of the event handler: '${e}'`)}catch(l){console.error(`EventManager: Error when performing an event processor '${o}': ${l.message}`)}};this.eventHandlers.has(t)||this.eventHandlers.set(t,new Map);let a=this.eventHandlers.get(t);a.has(o)&&t.removeEventListener(o,a.get(o)),a.set(o,r),t.addEventListener(o,r)}removeEventHandler(t,o){if(B.debug(`EventManager: Removing event handler for ${o} on`,t),this.eventHandlers.has(t)){let e=this.eventHandlers.get(t);if(e.has(o)){let r=e.get(o);t.removeEventListener(o,r),e.delete(o),e.size===0&&this.eventHandlers.delete(t)}}}updateEvents(t){B.debug("EventManager: Updating events for",t),Array.from(t.attributes||[]).forEac
229h(o=>{if(o.name.startsWith("@")){let e=o.name.substring(1),r=o.value.trim();this.bindEventHandler(t,e,r),t.removeAttribute(o.name)}})}destroy(){B.debug("EventManager: Destroying EventManager"),this.eventHandlers.forEach((t,o)=>{t.forEach((e,r)=>{B.debug(`EventManager: Removing event handler for ${r} on`,o),o.removeEventListener(r,e)})}),this.eventHandlers.clear(),B.debug("EventManager: Destroyed")}},Hg=class{constructor(t){B.DEBUG_LEVEL=t.options.debug?4:0,B.debug("DOMManager: Init DOMManager"),this.model=t,this.elements=[],this.inputs=[],this.domDependencies=new Map,this.virtualDom=new Map,this.loopManager=new Tg(this,t),this.conditionalManager=new Jg(this,t),this.attributeManager=new Sg(this,t),this.eventManager=new Gg(this,t),B.debug("DOMManager: DOMManager initialized")}registerDomDependency(t,o,e){this.domDependencies.has(t)||this.domDependencies.set(t,new Set),this.domDependencies.get(t).add({element:o,...e})}processTemplateNode(t,o){if(B.debug("DOMManager: processTemplateNode",{node:t,context:o}),t.nodeType===Node.TEXT_NODE){let e=t.textContent,r=t.textContent.replace(/\{\{\s*([^}]+)\s*\}\}/g,(a,i)=>{i=i.trim();let s=o?((c,A)=>A.split(".").reduce((p,g)=>p?p[g]:void 0,c))(o,i):void 0;return s===void 0&&(s=this.model.store.get(i)),s!==void 0?s:""});e!==r&&(B.debug(`DOMManager: updated node text from ${e} to ${r}`),t.textContent=r)}else t.nodeType===Node.ELEMENT_NODE&&Array.from(t.childNodes).forEach(e=>{this.processTemplateNode(e,o)})}parse(t){B.debug("DOMManager: parse from",t);let o=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),e,r=/\{\{\s*([^}]+)\s*\}\}/g;for(;e=o.nextNode();){let i,l=e.textContent,s=l;for(r.lastIndex=0;(i=r.exec(l))!==null;){B.debug(`DOMManager: parse match found for ${l}`,i);let c=i[1].trim();this.registerDomDependency(c,e,{type:"template",template:s}),this.elements.push({node:e,propName:c,template:s})}B.debug("DOMManager: update virtual DOM set",{node:e,text:e.textContent}),this.virtualDom.set(e,e.textContent)}B.debug("DOMManager: Find inputs with data-model directive...");let a=t.querySelectorAll("[data-model]");B.debug("DOMManager: Found inputs with data-model:",a.length),a.forEach(i=>{let l=i.getAttribute("data-model");B.debug("DOMManager: Register handler for:",{input:i,property:l});let s=c=>{let A=i.type==="checkbox"||i.type==="radio"?c.target.checked:c.target.value;this.model.store.set(l,A)};i.__modelInputHandler=s,i.addEventListener("input",s),this.inputs.push({element:i,property:l})})}setInputValue(t,o){t.type==="checkbox"||t.type==="radio"?t.checked=!!o:t.value=o}updateInputs(t,o){B.debug("DOMManager: updateInputs",{propName:t,value:o}),this.inputs.forEach(e=>{e.property===t&&(B.debug("DOMManager: update input",{item:e,value:o}),this.setInputValue(e.element,o))})}updateAllDOM(){B.debug("DOMManager: updateAllDOM"),this.elements.forEach(t=>{let o=t.template;o=o.replace(/\{\{\s*([^}]+)\s*\}\}/g,(e,r)=>(r=r.trim(),this.model.store.get(r))),t.node.textContent=o,B.debug("DOMManager: updated node",{element:t,newContent:o})}),B.debug("DOMManager: update inputs"),this.inputs.forEach(t=>{B.debug("DOMManager: update input",{item:t});let o=this.model.store.get(t.property);this.setInputValue(t.element,o),B.debug("DOMManager: updated input",{item:t,value:o})})}updateDOM(t,o){if(B.debug(`DOMManager: update DOM for ${t} with ${o}`),!t){console.warn("Path is undefined in updateDOM");return}let e=o&&typeof o=="object"&&"method"in o;e&&(t=o.path||t);let r=new Set;this.domDependencies.has(t)&&this.domDependencies.get(t).forEach(c=>r.add(c));let a=t.split("."),i="";for(let c=0;c<a.length;c++)i=i?`${i}.${a[c]}`:a[c],this.domDependencies.has(i)&&this.domDependencies.get(i).forEach(A=>r.add(A));if(this.conditionalManager.getDependenciesByPath(t).forEach(c=>{c.type==="if"&&this.conditionalManager.updateConditional(c.element,c.expression)}),this.domDependencies.forEach((c,A)=>{(A.startsWith(`${t}.`)||A.startsWith(`${t}[`))&&c.forEach(p=>r.add(p))}),(Array.isArray(o)||e||typeof o=="object")&&this.loopManager.updateLoops(t,o),r.size===0)return;let s={template:[],conditional:[],loop:[],attribute:[]};r.forEach(c=>{c&&c.type&&s[c.type].push(c)}),s.template.forEach(c=>this.updateTemplateNode(c.element,c.template)),s.conditional.forEach(c=>this.conditionalManager.updateConditional(c.element,c.expression)),s.attribute.forEach(c=>this.attributeManager.update(c.element,c.attribute,c.expression)),s.loop.forEac
229h(c=>this.loopManager.updateLoopPart(c.element,c.arrayPath,o,c.index))}updateTemplateNode(t,o){let e=o.replace(/\{\{\s*([^}]+)\s*\}\}/g,(r,a)=>(a=a.trim(),this.model.store.get(a)));this.virtualDom.get(t)!==e&&(t.textContent=e,this.virtualDom.set(t,e))}isPathDependency(t,o){return o===t||o.startsWith(`${t}.`)||o.startsWith(`${t}[`)}getDependentPaths(t){let o=[];return this.domDependencies.forEach((e,r)=>{this.isPathDependency(t,r)&&o.push(r)}),o}bindDOM(t){B.debug("DOMManager: bind DOM from",t),this.loopManager.parseLoops(t),this.conditionalManager.parseConditionals(t),this.attributeManager.parseAttributesBind(t),this.attributeManager.parseAttributes(t),this.eventManager.parseEvents(t),this.parse(t),this.updateAllDOM(),B.debug("DOMManager: binding completed")}destroy(){this.inputs.forEach(({element:t})=>{t.__modelInputHandler&&(t.removeEventListener("input",t.__modelInputHandler),delete t.__modelInputHandler)}),this.elements=[],this.inputs=[],this.domDependencies.clear(),this.virtualDom.clear(),this.loopManager.destroy(),this.conditionalManager.destroy(),this.eventManager.destroy(),B.debug("DOMManager: destroyed")}},Vg=class{constructor(t,o={}){B.DEBUG_LEVEL=t.options.debug?4:0,B.debug("Model: Init ComputedProps:",o),this.model=t,this.computed=o,this.store=t.store,this.asyncCache=new Map,this.init().then(()=>{Object.getOwnPropertyNames(this.computed).forEach(e=>{if(typeof this.computed[e].getter=="function")try{let r=this.computed[e].getter.call(this.store.getState());B.debug(`Initializing computed property ${e}:`,r)}catch(r){console.error(`Error initializing computed property ${e}:`,r)}}),B.debug("Model: ComputedProps initialized")})}
229async init(){let t=[];for(let o in this.computed){let e=this.evaluate(o);t.push(e),Object.defineProperty(this.model.data,o,{get:()=>{let r=this.computed[o];return r.isAsync?this.asyncCache.get(o):r.value},enumerable:!0,configurable:!0})}await Promise.all(t);for(let o in this.computed){let e=this.computed[o].isAsync?this.asyncCache.get(o):this.computed[o].value;this.model.dom.updateDOM(o,e),this.model.dom.updateInputs(o,e)}return!0}async evaluate(t,o=!1){let e=this.computed[t],r=new Set,a=new Proxy(this.store.getState(),{get:(l,s)=>{r.add(s);let c=l[s];return c&&typeof c=="object"?new Proxy(c,{get:(A,p)=>(r.add(`${s}.${p}`),A[p])}):c}}),i=e.getter.constructor.name==="AsyncFunction";e.isAsync=i;try{let l=await e.getter.call(a);return e.dependencies=[...r],i?this.asyncCache.set(t,l):e.value=l,this.store.emit("compute",{key:t,value:l,dependencies:r,isAsync:i}),l}catch(l){throw console.error(`Error evaluating computed property "${t}":`,l),l}}async update(t){let o=[];for(let e in this.computed){let r=(async()=>{let a=await this.evaluate(e);this.model.dom.updateDOM(e,a),this.model.dom.updateInputs(e,a)})();o.push(r)}await Promise.all(o)}all(){return Object.fromEntries(Object.entries(this.computed).map(([t,o])=>[t,o.value]))}},Pg=class ko extends Sr{constructor(o,e={}){B.DEBUG_LEVEL=o.model.options.debug?4:0,B.debug("Init StateManager:",e),super(),this.store=o,this.options=Object.assign({id:"model"},e),B.debug("StateManager initialized")}static isStorageAvailable(){try{let o="__test__";return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch{return!1}}saveState(){if(!ko.isStorageAvailable())return console.warn("localStorage is not available"),null;let e={data:JSON.parse(JSON.stringify(this.store.getState())),timestamp:Date.now()};try{return localStorage.setItem(this.options.id,JSON.stringify(e)),this.emit("saveState",e),e}catch(r){return console.error("Error saving state:",r),this.emit("saveStateError",r),null}}restoreState(){if(!ko.isStorageAvailable())return console.warn("localStorage is not available"),null;try{let o=localStorage.getItem(this.options.id);if(o){let e=JSON.parse(o);return Object.assign(this.store.state,e.data),this.emit("restoreState",e),e}}catch(o){this.emit("restoreStateError",o)}}createSnapshot(){if(!ko.isStorageAvailable())return console.warn("localStorage is not available"),null;let e={data:JSON.parse(JSON.stringify(this.store.getState())),timestamp:Date.now()};return this.emit("createSnapshot",e),e}restoreSnapshot(o){return ko.isStorageAvailable()?o?(Object.assign(this.store.state,o.data),this.emit("restoreSnapshot",o),o):null:(console.warn("localStorage is not available"),null)}enableAutoSave(o=5e3){this.autoSaveInterval=setInterval(()=>{this.saveState()},o)}disableAutoSave(){clearInterval(this.autoSaveInterval)}},Lg={id:"model",useSimpleExpressions:!0,debug:!1,plugins:[],validators:[],formatters:[]},Og=class extends Sr{constructor(t={},o={}){super(),this.options={...Lg,...o},B.DEBUG_LEVEL=this.options.debug?4:0,B.debug("Creating a model with data:",t),B.debug("Configuration options:",o),this.computed={};for(let e in t)typeof t[e]=="function"&&(B.debug(`Registration calculated property "${e}"`),this.computed[e]={getter:t[e],value:null,dependencies:[]},delete t[e]);if(this.store=new jg(t,this),this.data=this.store.state,this.dom=new Hg(this),this.computedProps=new Vg(this,this.computed),this.stateManager=new Pg(this.store),this.plugins=new Map,this.options.plugins)for(let e of this.options.plugins){let{name:r,plugin:a,options:i}=e;r&&a&&typeof a=="function"&&this.registerPlugin(r,a,i)}if(this.options.validators)for(let e of this.options.validators){let{path:r,validator:a}=e;r&&a&&typeof a=="function"&&this.addValidator(r,a)}if(this.options.formatters)for(let e of this.options.formatters){let{path:r,formatter:a}=e;r&&a&&typeof a=="function"&&this.addValidator(r,a)}this.subscribe(),B.debug("The model was created successfully!")}subscribe(){B.debug("Subscribing to store changes"),this.store.on("change",t=>{this.dom.updateDOM(t.path,t.newValue),this.dom.updateInputs(t.path,t.newValue),this.computedProps.update(t.path).then(()=>{}
229),this.emit("change",t)}),this.store.on("compute",t=>this.emit("compute",t)),this.store.on("arrayChange",t=>this.emit("arrayChange",t)),this.store.on("batchComplete",t=>this.emit("batchComplete",t)),B.debug("Subscribing to state manager events"),this.stateManager.on("saveState",t=>this.emit("saveState",t)),this.stateManager.on("saveStateError",t=>this.emit("saveStateError",t)),this.stateManager.on("restoreState",t=>this.emit("restoreState",t)),this.stateManager.on("restoreStateError",t=>this.emit("restoreStateError",t)),this.stateManager.on("createSnapshot",t=>this.emit("createSnapshot",t)),this.stateManager.on("restoreSnapshot",t=>this.emit("restoreSnapshot",t))}addValidator(t,o){this.store.addValidator(t,o)}addFormatter(t,o){this.store.addFormatter(t,o)}use(t){this.store.use(t)}watch(t,o){this.store.watch(t,o)}batch(t){return this.store.batch(t)}diffArrays(t,o){return this.store.detectArrayChanges(t,o)}diff(){}validate(){let t=[],o=[];for(let e in this.computed){let r=new Set,a=this._checkCyclicDependencies(e,r);a&&t.push({type:"CYCLIC_DEPENDENCY",property:e,message:`Cyclic dependence is found: ${a.join(" -> ")}`})}return this.dom.domDependencies.forEach((e,r)=>{this.store.isValidPath(r)||o.push({type:"INVALID_PATH",path:r,message:`Property ${r} used in the template, but does not exist in the model`})}),{errors:t,warnings:o}}_checkCyclicDependencies(t,o,e=[]){if(o.has(t))return[...e,t];o.add(t),e.push(t);let r=this.computed[t];if(!r||!r.dependencies)return null;for(let a of r.dependencies)if(a in this.computed){let i=this._checkCyclicDependencies(a,new Set(o),[...e]);if(i)return i}return null}validatePath(t){return this.store.isValidPath(t)}init(t){B.debug("Initializing DOM bindings");let o=typeof t=="string"?document.querySelector(t):t;return o||(o=document.body),B.debug(`Model initialized in ${t??"body"}`),B.debug("Binding DOM"),this.dom.bindDOM(o),this.emit("init"),B.debug("Initialization complete!"),this}runDevTools(t={}){return new Ng(this,t)}save(){return this.stateManager.saveState()}restore(){return this.stateManager.restoreState()}snapshot(t){return t?this.stateManager.restoreSnapshot(t):this.stateManager.createSnapshot()}autoSave(t){t?this.stateManager.enableAutoSave(t):this.stateManager.disableAutoSave()}registerPlugin(t,o,e={}){if(this.plugins.has(t))throw new Error(`Plugin ${t} already registered`);this.plugins.set(t,new o(this,e))}usePlugin(t,o={}){let e=this.plugins.get(t);return e?(e.run(),this):(console.error(`Plugin ${t} not found`),this)}removePlugin(t){this.plugins.has(t)&&this.plugins.delete(t)}destroy(){this.dom.destroy(),this.store.destroy(),this.emit("destroy")}},Jn=Og;var Kg="0.18.1",Wg="18.05.2025, 14:40:40";Jn.info=()=>{console.info(`%c Model %c v${Kg} %c ${Wg} `,"color: white; font-weight: bold; background: #0080fe","color: white; background: darkgreen","color: white; background: #0080fe;")};var Sn=Jn;globalThis.Model=Sn;(t=>{"use strict";globalThis.__version__="5.1.20",globalThis.__build_time__="11.03.2026, 08:57:39";let o=t.meta("metro:init").attr("content"),e=t.meta("metro:cloak").attr("content"),r=t.meta("metro:cloak_duration").attr("content"),a=t.meta("metro:blur").attr("content"),i=t.meta("metro:smooth").attr("content"),l=t.meta("metro:theme").attr("content"),s=t.meta("metro:info").attr("content"),c=t.meta("metro:jquery").attr("content"),A=t.meta("metro:debug").attr("content");globalThis.METRO_INIT=o?JSON.parse(o):!0,l!==void 0&&t("html").addClass(l==="auto"?t.dark?"dark-side":"":l==="dark"?"dark-side":"light-side"),globalThis.METRO_BLUR_IMAGE=a?JSON.parse(a):!1,globalThis.jquery_present=typeof globalThis.jQuery<"u",globalThis.METRO_JQUERY=c?JSON.parse(c):!0,globalThis.useJQuery=globalThis.jquery_present&&globalThis.METRO_JQUERY,globalThis.METRO_SHOW_INFO=s?JSON.parse(s):!1,globalThis.METRO_DEBUG=A?JSON.parse(A):!1,globalThis.METRO_CLOAK_REMOVE=e?`${e}`.toLowerCase():"fade",globalThis.METRO_CLOAK_DURATION=r?Number.parseInt(r):300,globalThis.METRO_SMOOTH_SCROLL=i?JSON.parse(i):!0,globalThis.METRO_DATE_FORMAT="DD.MM.YYYY",globalThis.METRO_TIME_FORMAT="HH:mm:ss",globalThis.METRO_DATETIME_FORMAT="DD.MM.YYYY HH:mm:ss",globalThis.METRO_TIMEOUT=3e3,globalThis.METRO_MEDIA=[]})(Dom);var Gr=t=>typeof t!="string"?void 0:t.replace(/-/g,"").toLowerCase(),Gn=(t,o)=>{let e=Gr(t),r=m.extend({name:e,instanceOf:"MetroComponent"},{_super:function(a,i,l,s){this.elem=a,this.element=m(a),this.options=m.extend({},l,i),this.component=this.elem,this.locale="en",this.strings={},this._setOptionsFromDOM(),this._runtime(),this._setLocale(),s&&typeof s=="object"&&m.each(s,(c,A)=>{this[c]=A}),this._createExec()},_setOptionsFromDOM:function(){let a=this.element,i=this.options;m.each(a.data(),(l,s)=>{if(l in i)try{i[l]=JSON.parse(s)}catch{i[l]=s}})},_runtime:function(){let a=this.element,i,l=(a.attr("data-role")||"").toArray(",").map(s=>Gr(s)).filter(s=>s.trim()!=="");a.attr(`data-role-${this.name}`)||(a.attr(`data-role-${this.name}`,!0),l.indexOf(this.name)===-1&&(l.push(this.name),a.attr("data-role",l.join(","))),i=a.data("metroComponent"),i===void 0?i=[this.name]:i.push(this.name),a.data("metroComponent",i))},_createExec:function(){let a=this.options[`${this.name}Deferred`];a?setTimeout(()=>{this._create()},a):this._create()},_fireEvent:function(a,i=null,l=!1,s=!1,c=null){let A=this.element,p=this.options,g=str(a).camelCase().capitalize(!1).value,h=m.extend({},i,{__this:A[0]});return l&&(console.warn(l),console.warn(`Event: on${g}`),console.warn("Data: ",i),console.warn("Element: ",A[0])),s!==!0&&A.fire(g.toLowerCase(),i),Metro.utils.exec(p[`on${g}`],Object.values(h),c||A[0])},_fireEvents:function(...a){let i=this;if(a.length===0)return;let[l,s,c,A,p]=a,g=Array.isArray(l)?l:l.toArray(",");if(a.length===1)return m.each(g,(h,d)=>{i._fireEvent(d)}),g.length;m.each(g,function(){i._fireEvent(this,s,c,A,p)})},_setLocale:function(){let a=this.element.closest("[lang]");a.length>0?this.locale=a.attr("lang"):this.locale=m("html").attr("lang")||"en",this.strings=m.extend({},Metro.locales.en,Metro.locales[this.locale])},_addLabel:(a,i,{id:l,dir:s="ltr",className:c}={})=>
229{if(!a)return;let A=m("<label>").addClass("label-for-input").addClass(c).html(a).insertBefore(m(i));l&&A.attr("for",l),s==="rtl"&&A.addClass("rtl")},_setAttributes:(a,i)=>{if(typeof i!="object")return;let l=m(a);m.each(i,(s,c)=>{l.attr(Str.dashedName(s),c)})},_waitForRole:async function(a,i){let l=this.element,s=Gr(a);return new Promise(c=>{l.attr(`data-role-${s}`)&&c(i())})},getComponent:function(){return this.component},getComponentName:function(){return this.name}},o);return Metro.plugin(e,r),r};var qo="ontouchstart"in window,Hn={controlsPosition:{INSIDE:"inside",OUTSIDE:"outside"},groupMode:{ONE:"one",MULTI:"multi"},aspectRatio:{HD:"hd",SD:"sd",CINEMA:"cinema"},fullScreenMode:{WINDOW:"window",DESKTOP:"desktop"},position:{TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right",TOP_RIGHT:"top-right",TOP_LEFT:"top-left",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",LEFT_BOTTOM:"left-bottom",LEFT_TOP:"left-top",RIGHT_TOP:"right-top",RIGHT_BOTTOM:"right-bottom"},popoverEvents:{CLICK:"click",HOVER:"hover",FOCUS:"focus"},stepperView:{SQUARE:"square",CYCLE:"cycle",DIAMOND:"diamond"},listView:{LIST:"list",CONTENT:"content",ICONS:"icons",ICONS_MEDIUM:"icons-medium",ICONS_LARGE:"icons-large",TILES:"tiles",TABLE:"table"},events:{click:"click",start:qo?"touchstart":"mousedown",stop:qo?"touchend":"mouseup",move:qo?"touchmove":"mousemove",enter:qo?"touchstart":"mouseenter",startAll:"mousedown touchstart",stopAll:"mouseup touchend",moveAll:"mousemove touchmove",leave:"mou
229seleave",focus:"focus",blur:"blur",resize:"resize",keyup:"keyup",keydown:"keydown",keypress:"keypress",dblclick:"dblclick",input:"input",change:"change",cut:"cut",paste:"paste",scroll:"scroll",mousewheel:"mousewheel",inputchange:"change input propertychange cut paste copy drop",dragstart:"dragstart",dragend:"dragend",dragenter:"dragenter",dragover:"dragover",dragleave:"dragleave",drop:"drop",drag:"drag"},keyCode:{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,BREAK:19,CAPS:20,ESCAPE:27,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,COMMA:188},media_queries:{FS:"(min-width: 0px)",XS:"(min-width: 360px)",SM:"(min-width: 576px)",LD:"(min-width: 640px)",MD:"(min-width: 768px)",LG:"(min-width: 992px)",XL:"(min-width: 1200px)",XXL:"(min-width: 1452px)",XXXL:"(min-width: 2000px)"},media_sizes:{FS:0,XS:360,SM:576,LD:640,MD:768,LG:992,XL:1200,XXL:1452,XXXL:2e3},media_mode:{FS:"fs",XS:"xs",SM:"sm",LD:"ld",MD:"md",LG:"lg",XL:"xl",XXL:"xxl",XXXL:"xxxl"},media_modes:["fs","xs","sm","ld","md","lg","xl","xxl","xxxl"],actions:{NONE:0,REMOVE:1,HIDE:2,MINIMIZE:3,MAXIMIZE:4,CLOSE:5,RESTORE:6,SHOW:7},theme:{LIGHT:"light",DARK:"dark"}};(t=>{"use strict";if(typeof Dom>"u")throw new Error("Metro UI requires Dom library!");if(!("MutationObserver"in window))throw new Error("Metro UI requires MutationObserver!");let o="ontouchstart"in window,e=a=>typeof a!="string"?void 0:a.replace(/-/g,"").toLowerCase(),r={version:"5.1.20",build_time:"11.03.2026, 08:57:39",buildNumber:0,isTouchable:o,fullScreenEnabled:document.fullscreenEnabled,sheet:null,hotkeys:{},locales:{},utils:{},colors:{},dialog:null,pagination:null,md5:null,storage:null,export:null,animations:null,cookie:null,template:null,defaults:{},info:()=>{globalThis.METRO_SHOW_INFO&&r.welcome()},welcome:()=>{console.info(`%c METRO UI %c v${r.version} %c ${r.build_time} `,"color: pink; font-weight: bold; background: #800000","color: white; background: darkgreen","color: white; background: #0080fe;"),globalThis.$&&t.info&&t.info(),globalThis.Hooks&&Hooks.info&&Hooks.info(),globalThis.HTML&&HTML.info&&HTML.info(),globalThis.Farbe&&Farbe.info&&Farbe.info(),globalThis.Datetime&&Datetime.info&&Datetime.info(),globalThis.Str&&Str.info&&Str.info(),globalThis.G&&G.info&&G.info(),globalThis.Router&&Router.info&&Router.info(),globalThis.Model&&Model.info&&Model.info()},aboutDlg:()=>{alert(`Metro UI - v${r.version}`)},observe:()=>{let a={childList:!0,attributes:!0,subtree:!0},i=s=>{s.map(c=>{if(c.type==="attributes"&&c.attributeName!=="data-role")if(c.attributeName==="data-hotkey")r.initHotkeys([c.target],!0);else{let A=t(c.target),p=A.data("metroComponent"),g=c.attributeName,h=A.attr(g),d=c.oldValue;p!==void 0&&(A.fire("attr-change",{attr:g,newValue:h,oldValue:d,__this:A[0]}),t.each(p,function(){let u=r.getPlugin(A,this);u&&typeof u.changeAttribute=="function"&&u.changeAttribute(g,h,d)}))}else if(c.type==="childList"&&c.addedNodes.length>0){let A=[],p=[],g,h,d=c.addedNodes;if(d.length){for(let u of t(d).find("[data-hotkey]"))p.push(t(u));for(let u=0;u<d.length;u++)h=d[u],g=t(h),g.attr("data-role")!==void 0&&A.push(h),t.each(g.find("[data-role]"),function(){A.indexOf(this)===-1&&A.push(this)});A.length&&r.initWidgets(A,"observe"),p.length&&r.initHotkeys(p)}}})};new MutationObserver(i).observe(t("html")[0],a)},init:()=>{let a=t("[data-role]"),i=t("[data-hotkey]"),l=t("html");if(r.i18n.load(l.attr("lang")),r.info(),o===!0&&l.addClass("touchable-device"),r.sheet=r.utils.newCssSheet(),r.utils.addCssRule(r.sheet,"*, *::before, *::after","box-sizing: border-box;"),globalThis.METRO_MEDIA=[],t.each(r.media_queries,(s,c)=>{r.utils.media(c)&&globalThis.METRO_MEDIA.push(r.media_mode[s])}),r.observe(),r.initHotkeys(i),r.initWidgets(a,"init"),globalThis.METRO_CLOAK_REMOVE!=="fade"?(t(".m4-cloak").removeClass("m4-cloak"),t(".cloak").removeClass("cloak"),t(globalThis).fire("metro-initiated")):t(".m4-cloak, .cloak").animate({draw:{opacity:[0,1]},dur:300,onDone:()=>{t(".m4-cloak").removeClass("m4-cloak"),t(".cloak").removeClass("cloak"),t(globalThis).fire("metro-initiated")}}
229),t(document).on("click","[data-copy-to-clipboard]",function(){let s=t(this).attr("data-copy-to-clipboard");r.utils.copy2clipboard(s),r.toast&&r.toast.create(`Data ${s} copied to clipboard!`)}),METRO_SMOOTH_SCROLL){let s=document.querySelectorAll('a.smooth-scroll[href^="#"]');for(let c of s)c.addEventListener("click",A=>{A.preventDefault();let p=c.getAttribute("href");document.querySelector(p).scrollIntoView({behavior:"smooth",block:"start"})})}},initHotkeys:(a,i)=>{t.each(a,function(){let l=t(this),s=l.attr("data-hotkey")?l.attr("data-hotkey").toLowerCase():!1,c=l.attr("data-hotkey-func")?l.attr("data-hotkey-func"):!1;s!==!1&&(l.data("hotKeyBonded")===!0&&i!==!0||(r.hotkeys[s]=[this,c],l.data("hotKeyBonded",!0),l.fire("hot-key-bonded",{__this:l[0],hotkey:s,fn:c})))})},initWidgets:a=>{t.each(a,function(){let i=t(this);if(!this.hasAttribute("data-role"))return;i.attr("data-role").split(/\s*,\s*/).map(s=>{let c=r.utils.$(),A=e(s);if(c.fn[A]!==void 0&&i.attr(`data-role-${A}`)===void 0)try{c.fn[A].call(i),i.attr(`data-role-${A}`,!0);let p=i.data("metroComponent");p===void 0?p=[A]:p.push(A),i.data("metroComponent",p),i.fire("create",{__this:i[0],name:A}),t(document).fire("component-create",{element:i[0],name:A})}catch(p){throw console.error(`Error creating component ${s} for `,i[0]),p}})}),r.i18n.updateUI()},plugin:(a,i)=>{let l=e(a),s=c=>{c.fn[l]=function(A){return this.each(function(){c.data(this,l,Object.create(i).init(A,this))})}};s(Dom),globalThis.useJQuery&&s(globalThis.jQuery)},pluginExists:a=>typeof(globalThis.useJQuery?globalThis.jQuery:Dom).fn[e(a)]=="function",destroyPlugin:(a,i)=>{let l=t(a),s=e(i),c=r.getPlugin(l,s);if(typeof c>"u"){console.warn(`Component ${i} can not be destroyed: the element is not a Metro UI component.`);return}if(typeof c.destroy!="function"){console.warn(`Component ${i} can not be destroyed: method destroy not found.`);return}c.destroy();let A=l.data("metroComponent");r.utils.arrayDelete(A,s),l.data("metroComponent",A),t.removeData(l[0],s),l.removeAttr(`data-role-${s}`)},destroyPluginAll:a=>{let i=t(a),l=i.data("metroComponent");l!==void 0&&l.length>0&&t.each(l,function(){r.destroyPlugin(i[0],this)})},noop:()=>{},noop_true:()=>!0,noop_false:()=>!1,noop_arg:a=>a,requestFullScreen:a=>{a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullScreen?a.webkitRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.requestFullscreen().catch(i=>{console.warn(`Error attempting to enable full-screen mode: ${i.message} ${i.name}`)})},exitFullScreen:()=>{document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.exitFullscreen().catch(a=>{console.warn(`Error attempting to disable full-screen mode: ${a.message} ${a.name}`)})},inFullScreen:()=>(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)!==void 0,$:()=>globalThis.useJQuery?globalThis.jQuery:Dom,get$el:a=>r.$()(t(a)[0]),get$elements:a=>r.$()(t(a)),getPlugin:(a,i)=>{let l=e(i),s=r.get$el(a);return s.length?s.data(l):void 0},getPlugins:a=>{let i=r.get$el(a),l=i.data("metroComponent");return l===void 0?[]:l.map(s=>{let c=e(s);return i.data(c)})},makePlugin:(a,i,l)=>{let s=e(i),c=r.get$elements(a);if(!(!c.length||typeof c[s]!="function"))return c[s](l),r.getPlugin(c[0],i)},fetch:{status:a=>a.ok?Promise.resolve(a):Promise.reject(new Error(a.statusText)),json:a=>a.json(),text:a=>a.text(),form:a=>a.formData(),blob:a=>a.blob(),buffer:a=>a.arrayBuffer()},i18n:{language:"en",load(a="en"){r.i18n.language=r.locales[a]?a:"en",r.locale=r.locales[r.i18n.language]},add(a,i){r.locales[a]=i},get(a,i){return r.locales[i]&&r.locales[i][a]?r.locales[i][a]:""},updateUI(a,i){let l=i||t.html().attr("lang")||"en",s=a||document;if(r.locales[l]){r.i18n.load(l),t.html().attr("lang",l);for(let c of s.querySelectorAll("[data-i18n]")){let A=c.getAttribute("data-i18n");c.innerHTML=r.i18n.get(A,l)}}},extend(a){t.each(a,(i,l)=>{r.locales[i]=Object.assign({},r.locales[i],l)})}},globalMousePosition:{x:0,y:0}};return r.Component=Gn,Object.assign(r,Hn),t(document).on(r.events.moveAll,a=>{r.globalMousePosition.x=a.clientX,r.globalMousePosition.y=a.clientY}),t(globalThis).on(r.events.resize,()=>{globalThis.METRO_MEDIA=[],t.each(r.media_queries,(a,i)=>
229{r.utils.media(i)&&globalThis.METRO_MEDIA.push(r.media_mode[a])})}),globalThis.Metro=r,globalThis.METRO_INIT===!0&&t(()=>{r.init()}),r})(Dom);Metro.i18n.add("en",{weekStart:0,january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",january_short:"Jan",february_short:"Feb",march_short:"Mar",april_short:"Apr",may_short:"May",june_short:"Jun",july_short:"Jul",august_short:"Aug",september_short:"Sep",october_short:"Oct",november_short:"Nov",december_short:"Dec",sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday_short:"Sun",monday_short:"Mon",tuesday_short:"Tue",wednesday_short:"Wed",thursday_short:"Thu",friday_short:"Fri",saturday_short:"Sat",sunday_short_2:"Su",monday_short_2:"Mo",tuesday_short_2:"Tu",wednesday_short_2:"We",thursday_short_2:"Th",friday_short_2:"Fr",saturday_short_2:"Sa",label_ok:"OK",label_cancel:"Cancel",label_done:"Done",label_today:"Today",label_now:"Now",label_clear:"Clear",label_help:"Help",label_yes:"Yes",label_no:"No",label_random:"Random",label_save:"Save",label_reset:"Reset",label_submit:"Submit",label_add_user_color:"Add to swatches",label_send:"Send",label_accept:"Accept",label_cookies_title:"This site uses cookies",label_cookies_text:"This website uses cookies to ensure you get the best experience on our website.",label_choose_file:"Choose file(s)",label_drop_file:"Click or drop file(s) here",label_files_selected:"{n} file(s) selected",label_days:"days",label_hours:"hours",label_minutes:"min",label_seconds:"sec",label_month:"mon",label_months:"mon's",label_day:"day",label_year:"year",label_years:"years",label_rows_count:"Show:",label_search:"Search:",label_table_info:"Showing $1 to $2 of $3 entries",label_prev:"Prev",label_next:"Next",label_all:"All",label_inspector:"Inspector",label_goto_page:"Goto",label_enter_page:"Enter page...",label_empty:"Nothing to show",label_user_colors:"User Colors",label_tiles:"Tiles",label_list:"List",label_load_more:"Load more",label_buy:"Buy",label_buy_now:"Buy now",label_buy_today:"Buy today",label_download:"Download",label_search_results:"Search results",label_add:"Add",label_edit:"Edit",label_delete:"Delete",label_new:"New",label_sell:"Sell",label_details:"Details",label_sorting:"Sorting",label_finish:"Finish",label_play:"Play",label_pause:"Pause",label_stop:"Stop",label_mute:"Mute",label_loop:"Loop",label_on:"on",label_off:"off",label_rename_tab:"Rename tab",label_close_tab:"Close tab",label_close_other_tabs:"Close other tabs",label_close_tabs_left:"Close tabs left",label_close_tabs_right:"Close tabs right",label_close_all_tabs:"Close all tabs",label_close_inactive_tabs:"Close inactive tabs",label_clear_input:"Clear input",label_reveal_password:"Reveal password",label_hide_password:"Hide password",label_generate_random:"Generate random value",label_search_input:"Search for the entered value",label_note:"Note",label_tip:"Tip",label_info:"Info",label_warning:"Warning",label_question:"Question",label_error:"Error",label_success:"Success",label_caution:"Caution",label_alert:"Alert",label_bug:"Bug",label_fuck:"Fuck",label_important:"Important",label_shit:"Shit",label_air:"Air",label_select_all:"Select all",label_select_more:"Select...",label_select:"Select",label_filter:"Filter",label_collapse:"Collapse",label_attach:"Attach"});Metro.i18n.add("uk",{weekStart:1,january:"\u0421\u0456\u0447\u0435\u043D\u044C",february:"\u041B\u044E\u0442\u0438\u0439",march:"\u0411\u0435\u0440\u0435\u0437\u0435\u043D\u044C",april:"\u041A\u0432\u0456\u0442\u0435\u043D\u044C",may:"\u0422\u0440\u0430\u0432\u0435\u043D\u044C",june:"\u0427\u0435\u0440\u0432\u0435\u043D\u044C",july:"\u041B\u0438\u043F\u0435\u043D\u044C",august:"\u0421\u0435\u0440\u043F\u0435\u043D\u044C",september:"\u0412\u0435\u0440\u0435\u0441\u0435\u043D\u044C",october:"\u0416\u043E\u0432\u0442\u0435\u043D\u044C",november:"\u041B\u0438\u0441\u0442\u043E\u043F\u0430\u0434",december:"\u0413\u0440\u0443\u0434\u0435\u043D\u044C",january_short:"\u0421\u0456\u0447",february_short:"\u041B\u044E\u0442",march_short:"\u0411\u0435\u0440",april_short:"\u041A\u0432\u0456",may_short:"\u0422\u0440\u0430",june_short:"\u0427\u0435\u0440",july_short:"\u041B\u0438\u043F",august_short:"\u0421\u0435\u0440",september_short:"\u0412\u0435\u0440",october_short:"\u0416\u043E\u0432",november_short:"\u041B\u0438\u0441",december_short:"\u0413\u0440\u0443",sunday:"\u041D\u0435\u0434\u0456\u043B\u044F",monday:"\u041F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A",tuesday:"\u0412\u0456\u0432\u0442\u043E\u0440\u043E\u043A",wednesday:"\u0421\u0435\u0440\u0435\u0434\u0430",thursday:"\u0427\u0435\u0442\u0432\u0435\u0440",friday:"\u041F'\u044F\u0442\u043D\u0438\u0446\u044F",saturday:"\u0421\u0443\u0431\u043E\u0442\u0430",sunday_short:"\u041D\u0435\u0434",monday_short:"\u041F\u043E\u043D",tuesday_short:"\u0412\u0456\u0432",wednesday_short:"\u0421\u0435\u0440",thursday_short:"\u0427\u0435\u0442",friday_short:"\u041F\u0442\u043D",saturday_short:"\u0421\u0443\u0431",sunday_short_2:"\u
229041D\u0434",monday_short_2:"\u041F\u043D",tuesday_short_2:"\u0412\u0442",wednesday_short_2:"\u0421\u0440",thursday_short_2:"\u0427\u0442",friday_short_2:"\u041F\u0442",saturday_short_2:"\u0421\u0431",label_ok:"OK",label_cancel:"\u0412\u0456\u0434\u043C\u0456\u043D\u0430",label_done:"\u0412\u0438\u043A\u043E\u043D\u0430\u043D\u043E",label_today:"\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456",label_now:"\u0417\u0430\u0440\u0430\u0437",label_clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438",label_help:"\u0414\u043E\u043F\u043E\u043C\u043E\u0433\u0430",label_yes:"\u0422\u0430\u043A",label_no:"\u041D\u0456",label_random:"\u0412\u0438\u043F\u0430\u0434\u043A\u043E\u0432\u043E",label_save:"\u0417\u0431\u0435\u0440\u0456\u0433\u0442\u0438",label_reset:"\u0421\u043A\u0438\u043D\u0443\u0442\u0438",label_submit:"\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438",label_add_user_color:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0434\u043E \u0437\u0440\u0430\u0437\u043A\u0456\u0432",label_send:"\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438",label_accept:"\u041F\u0440\u0438\u0439\u043D\u044F\u0442\u0438",label_cookies_title:"\u0426\u0435\u0439 \u0441\u0430\u0439\u0442 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454 \u0444\u0430\u0439\u043B\u0438 cookie",label_cookies_text:"\u0426\u0435\u0439 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454 \u0444\u0430\u0439\u043B\u0438 cookie, \u0449\u043E\u0431 \u0437\u0430\u0431\u0435\u0437\u043F\u0435\u0447\u0438\u0442\u0438 \u0432\u0430\u043C \u043D\u0430\u0439\u043A\u0440\u0430\u0449\u0438\u0439 \u0434\u043E\u0441\u0432\u0456\u0434 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u0430\u043D\u043D\u044F \u043D\u0430\u0448\u043E\u0433\u043E \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0443.",label_choose_file:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0444\u0430\u0439\u043B(\u0438)",label_drop_file:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0430\u0431\u043E \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C \u0444\u0430\u0439\u043B(\u0438) \u0441\u044E\u0434\u0438",label_files_selected:"\u0412\u0438\u0431\u0440\u0430\u043D\u043E {n} \u0444\u0430\u0439\u043B(\u0456\u0432)",label_days:"\u0434\u043D\u0456",label_hours:"\u0433\u043E\u0434",label_minutes:"\u0445\u0432\u0438\u043B",label_seconds:"\u0441\u0435\u043A",label_month:"\u043C\u0456\u0441",label_months:"\u043C\u0456\u0441\u044F\u0446\u0456",label_day:"\u0434\u0435\u043D\u044C",label_year:"\u0440\u0456\u043A",label_years:"\u0440\u043E\u043A\u0456\u0432",label_rows_count:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0438:",label_search:"\u041F\u043E\u0448\u0443\u043A:",label_table_info:"\u0412\u0456\u0434\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043E \u0437 $1 \u043F\u043E $2 \u0456\u0437 $3 \u0437\u0430\u043F\u0438\u0441\u0456\u0432",label_prev:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",label_next:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",label_all:"\u0423\u0441\u0456",label_inspector:"\u0406\u043D\u0441\u043F\u0435\u043A\u0442\u043E\u0440",label_goto_page:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438",label_enter_page:"\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443...",label_empty:"\u041D\u0456\u0447\u043E\u0433\u043E \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438",label_user_colors:"\u041A\u043E\u043B\u044C\u043E\u0440\u0438 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430",label_tiles:"\u041F\u043B\u0438\u0442\u043A\u0430",label_list:"\u0421\u043F\u0438\u0441\u043E\u043A",label_load_more:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 \u0449\u0435",label_buy:"\u041A\u0443\u043F\u0438\u0442\u0438",label_buy_now:"\u041A\u0443\u043F\u0438\u0442\u0438 \u0437\u0430\u0440\u0430\u0437",label_buy_today:"\u041A\u0443\u043F\u0438\u0442\u0438 \u0441\u044C\u043E\u0433\u043E\u0434\u043D\u0456",label_download:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438",label_search_results:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0438 \u043F\u043E\u0448\u0443\u043A\u0443",label_add:"\u0414\u043E\u0434\u0430\u0442\u0438",label_edit:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438",label_delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",label_new:"\u041D\u043E\u0432\u0435",label_sell:"\u041F\u0440\u043E\u0434\u0430\u0442\u0438",label_details:"\u041F\u043E\u0434\u0440\u043E\u0431\u0438\u0446\u0456",label_sorting:"\u0421\u043E\u0440\u0442\u0443\u0432\u0430\u043D\u043D\u044F",label_finish:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438",label_play:"\u0412\u0456\u0434\u0442\u0432\u043E\u0440\u0438\u0442\u0438",label_pause:"\u041F\u0430\u0443\u0437\u0430",label_stop:"\u0417\u0443\u043F\u0438\u043D\u0438\u0442\u0438",label_mute:"\u0411\u0435\u0437 \u0437\u0432\u0443\u043A\u0443",label_loop:"\u041F\u043E\u0432\u0442\u043E\u0440\u044E\u0432\u0430\u0442\u0438",label_on:"\u0443\u0432\u043C",label_off:"\u
2290432\u0438\u043C",label_rename_tab:"\u041F\u0435\u0440\u0435\u0439\u043C\u0435\u043D\u0443\u0432\u0430\u0442\u0438 \u0432\u043A\u043B\u0430\u0434\u043A\u0443",label_close_tab:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438 \u0432\u043A\u043B\u0430\u0434\u043A\u0443",label_close_other_tabs:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438 \u0456\u043D\u0448\u0456 \u0432\u043A\u043B\u0430\u0434\u043A\u0438",label_close_tabs_left:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438 \u0432\u043A\u043B\u0430\u0434\u043A\u0438 \u043B\u0456\u0432\u043E\u0440\u0443\u0447",label_close_tabs_right:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438 \u0432\u043A\u043B\u0430\u0434\u043A\u0438 \u043F\u0440\u0430\u0432\u043E\u0440\u0443\u0447",label_close_all_tabs:"\u0417\u0430\u043A\u0440\u0438\u0439\u0442\u0435 \u0432\u0441\u0456 \u0432\u043A\u043B\u0430\u0434\u043A\u0438",label_close_inactive_tabs:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438 \u043D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u0456 \u0432\u043A\u043B\u0430\u0434\u043A\u0438",label_clear_input:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0432\u0432\u0435\u0434\u0435\u043D\u043D\u044F",label_reveal_password:"\u0412\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C",label_hide_password:"\u041F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438 \u043F\u0430\u0440\u043E\u043B\u044C",label_generate_random:"\u
2290413\u0435\u043D\u0435\u0440\u0443\u0432\u0430\u0442\u0438 \u0432\u0438\u043F\u0430\u0434\u043A\u043E\u0432e \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F",label_search_input:"\u0428\u0443\u043A\u0430\u0442\u0438 \u0432\u0432\u0435\u0434\u0435\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F",label_note:"\u041F\u0440\u0438\u043C\u0456\u0442\u043A\u0430",label_tip:"\u041F\u0456\u0434\u043A\u0430\u0437\u043A\u0430",label_info:"\u0406\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044F",label_warning:"\u0423\u0432\u0430\u0433\u0430",label_question:"\u041F\u0438\u0442\u0430\u043D\u043D\u044F",label_error:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",label_success:"\u0423\u0441\u043F\u0456\u0445",label_caution:"\u041E\u0431\u0435\u0440\u0435\u0436\u043D\u043E",label_alert:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u0436\u0435\u043D\u043D\u044F",label_bug:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",label_fuck:"\u0411\u043B\u044F",label_important:"\u0412\u0430\u0436\u043B\u0438\u0432\u043E",label_shit:"\u041E\u0442 \u043B\u0430\u0439\u043D\u043E",label_air:"\u041F\u0443\u0444\u0444\u0444...",label_select_all:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0443\u0441\u0456",label_select_more:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C...",label_select:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438",label_filter:"\u0424\u0456\u043B\u044C\u0442\u0440",label_collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",label_attach:"\u041F\u0440\u0438\u043A\u0440\u0456\u043F\u0438\u0442\u0438"});Metro.i18n.add("pt",{weekStart:0,january:"Janeiro",february:"Fevereiro",march:"Mar\xE7o",april:"Abril",may:"Maio",june:"Junho",july:"Julho",august:"Agosto",september:"Setembro",october:"Outubro",november:"Novembro",december:"Dezembro",january_short:"Jan",february_short:"Fev",march_short:"Mar",april_short:"Abr",may_short:"Mai",june_short:"Jun",july_short:"Jul",august_short:"Ago",september_short:"Set",october_short:"Out",november_short:"Nov",december_short:"Dez",sunday:"Domingo",monday:"Segunda-feira",tuesday:"Ter\xE7a-feira",wednesday:"Quarta-feira",thursday:"Quinta-feira",friday:"Sexta-feira",saturday:"S\xE1bado",sunday_short:"Dom",monday_short:"Seg",tuesday_short:"Ter",wednesday_short:"Qua",thursday_short:"Qui",friday_short:"Sex",saturday_short:"S\xE1b",sunday_short_2:"D",monday_short_2:"S",tuesday_short_2:"T",wednesday_short_2:"Q",thursday_short_2:"Q",friday_short_2:"S",saturday_short_2:"S",label_ok:"OK",label_cancel:"Cancelar",label_done:"Conclu\xEDdo",label_today:"Hoje",label_now:"Agora",label_clear:"Limpar",label_help:"Ajuda",label_yes:"Sim",label_no:"N\xE3o",label_random:"Aleat\xF3rio",label_save:"Salvar",label_reset:"Redefinir",label_submit:"Enviar",label_add_user_color:"Adicionar aos tons",label_send:"Enviar",label_accept:"Aceitar",label_cookies_title:"Este site usa cookies",label_cookies_text:"Este site utiliza cookies para garantir a melhor experi\xEAncia em nosso site.",label_choose_file:"Escolher arquivo(s)",label_drop_file:"Clique ou solte o(s) arquivo(s) aqui",label_files_selected:"{n} arquivo(s) selecionado(s)",label_days:"dias",label_hours:"horas",label_minutes:"min",label_seconds:"seg",label_month:"m\xEAs",label_months:"meses",label_day:"dia",label_year:"ano",label_years:"anos",label_rows_count:"Mostrar:",label_search:"Pesquisar:",label_table_info:"Mostrando $1 a $2 de $3 entradas",label_prev:"Anterior",label_next:"Pr\xF3ximo",label_all:"Todos",label_inspector:"Inspetor",label_goto_page:"Ir para",label_enter_page:"Digite a p\xE1gina...",label_empty:"Nada para mostrar",label_user_colors:"Cores do usu\xE1rio",label_tiles:"Blocos",label_list:"Lista",label_load_more:"Carregar mais",label_buy:"Comprar",label_buy_now:"Comprar agora",label_buy_today:"Comprar hoje",label_download:"Baixar",label_search_results:"Resultados da pesquisa",label_add:"Adicionar",label_edit:"Editar",label_delete:"Excluir",label_new:"Novo",label_sell:"Vender",label_details:"Detalhes",label_sorting:"Ordena\xE7\xE3o",label_finish:"Finalizar",label_play:"Reproduzir",label_pause:"Pausar",label_stop:"Parar",label_mute:"Silenciar",label_loop:"Repetir",label_on:"lig",label_off:"des",label_rename_tab:"Renomear aba",label_close_tab:"Fechar aba",label_close_other_tabs:"Fechar outras abas",label_close_tabs_left:"Fechar abas \xE0 esquerda",label_close_tabs_right:"Fechar abas \xE0 direita",label_close_all_tabs:"Fechar todas as abas",label_close_inactive_tabs:"Fechar abas inativas",label_clear_input
229:"Limpar entrada",label_reveal_password:"Mostrar senha",label_hide_password:"Ocultar senha",label_generate_random:"Gerar valor aleat\xF3rio",label_search_input:"Pesquisar o valor inserido",label_note:"Nota",label_tip:"Dica",label_info:"Informa\xE7\xE3o",label_warning:"Aviso",label_question:"Pergunta",label_error:"Erro",label_success:"Sucesso",label_caution:"Cuidado",label_alert:"Alerta",label_bug:"Erro",label_fuck:"Droga",label_important:"Importante",label_shit:"Merda",label_air:"Ar",label_select_all:"Selecionar tudo",label_select_more:"Selecionar...",label_select:"Selecionar",label_filter:"Filtrar",label_collapse:"Recolher",label_attach:"Anexar"});Metro.i18n.add("pt-BR",{weekStart:0,january:"Janeiro",february:"Fevereiro",march:"Mar\xE7o",april:"Abril",may:"Maio",june:"Junho",july:"Julho",august:"Agosto",september:"Setembro",october:"Outubro",november:"Novembro",december:"Dezembro",january_short:"Jan",february_short:"Fev",march_short:"Mar",april_short:"Abr",may_short:"Mai",june_short:"Jun",july_short:"Jul",august_short:"Ago",september_short:"Set",october_short:"Out",november_short:"Nov",december_short:"Dez",sunday:"Domingo",monday:"Segunda-feira",tuesday:"Ter\xE7a-feira",wednesday:"Quarta-feira",thursday:"Quinta-feira",friday:"Sexta-feira",saturday:"S\xE1bado",sunday_short:"Dom",monday_short:"Seg",tuesday_short:"Ter",wednesday_short:"Qua",thursday_short:"Qui",friday_short:"Sex",saturday_short:"S\xE1b",sunday_short_2:"Do",monday_short_2:"Se",tuesday_short_2:"Te",wednesday_short_2:"Qu",thursday_short_2:"Qi",friday_short_2:"Sx",saturday_short_2:"Sa",label_ok:"OK",label_cancel:"Cancelar",label_done:"Conclu\xEDdo",label_today:"Hoje",label_now:"Agora",label_clear:"Limpar",label_help:"Ajuda",label_yes:"Sim",label_no:"N\xE3o",label_random:"Aleat\xF3rio",label_save:"Salvar",label_reset:"Redefinir",label_submit:"Enviar",label_add_user_color:"Adicionar \xE0s amostras",label_send:"Enviar",label_accept:"Aceitar",label_cookies_title:"Este site usa cookies",label_cookies_text:"Este site usa cookies para garantir que voc\xEA tenha a melhor experi\xEAncia em nosso site.",label_choose_file:"Escolher arquivo(s)",label_drop_file:"Clique ou arraste arquivo(s) aqui",label_files_selected:"{n} arquivo(s) selecionado(s)",label_days:"dias",label_hours:"horas",label_minutes:"min",label_seconds:"seg",label_month:"m\xEAs",label_months:"meses",label_day:"dia",label_year:"ano",label_years:"anos",label_rows_count:"Mostrar:",label_search:"Pesquisar:",label_table_info:"Mostrando $1 a $2 de $3 registros",label_prev:"Anterior",label_next:"Pr\xF3ximo",label_all:"Todos",label_inspector:"Inspetor",label_goto_page:"Ir para",label_enter_page:"Digite a p\xE1gina...",label_empty:"Nada para mostrar",label_user_colors:"Cores do Usu\xE1rio",label_tiles:"Blocos",label_list:"Lista",label_load_more:"Carregar mais",label_buy:"Comprar",label_buy_now:"Compre agora",label_buy_today:"Compre hoje",label_download:"Baixar",label_search_results:"Resultados da pesquisa",label_add:"Adicionar",label_edit:"Editar",label_delete:"Excluir",label_new:"Novo",label_sell:"Vender",label_details:"Detalhes",label_sorting:"Ordena\xE7\xE3o",label_finish:"Finalizar",label_play:"Reproduzir",label_pause:"Pausar",label_stop:"Parar",label_mute:"Silenciar",label_loop:"Repetir",label_on:"ligado",label_off:"desligado",label_rename_tab:"Renomear aba",label_close_tab:"Fechar aba",label_close_other_tabs:"Fechar outras abas",label_close_tabs_left:"Fechar abas \xE0 esquerda",label_close_tabs_right:"Fechar abas \xE0 direita",label_close_all_tabs:"Fechar todas as abas",label_close_inactive_tabs:"Fechar abas inativas",label_clear_input:"Limpar entrada",label_reveal_password:"Revelar senha",label_hide_password:"Ocultar senha",label_generate_random:"Gerar valor aleat\xF3rio",label_search_input:"Pesquisar pelo valor digitado",label_note:"Nota",label_tip:"Dica",label_info:"Informa\xE7\xE3o",label_warning:"Aviso",label_question:"Pergunta",label_error:"Erro",label_success:"Sucesso",label_caution:"Cuidado",label_alert:"Alerta",label_bug:"Bug",label_fuck:"Droga",label_important:"Importante",label_shit:"Merda",label_air:"Ar",label_select_all:"Selecionar tudo",label_select_more:"Selecionar...",label_select:"Selecionar",label_filter:"Filtrar",label_collapse:"Recolher",label_attach:"Anexar"});Metro.i18n.add("es",{weekStart:0,january:"Enero",february:"Febrero",march:"Marzo",april:"Abril",may:"Mayo",june:"Junio",july:"Julio",august:"Agosto",september:"Septiembre",october:"Octubre",november:"Noviembre",december:"Diciembre",january_short:"Ene",february_short:"Feb",march_short:"Mar",april_short:"Abr",may_short:"May",june_short:"Jun",july_short:"Jul",august_short:"Ago",september_short:"Sep",october_short:"Oct",n
229ovember_short:"Nov",december_short:"Dic",sunday:"Domingo",monday:"Lunes",tuesday:"Martes",wednesday:"Mi\xE9rcoles",thursday:"Jueves",friday:"Viernes",saturday:"S\xE1bado",sunday_short:"Dom",monday_short:"Lun",tuesday_short:"Mar",wednesday_short:"Mi\xE9",thursday_short:"Jue",friday_short:"Vie",saturday_short:"S\xE1b",sunday_short_2:"D",monday_short_2:"L",tuesday_short_2:"M",wednesday_short_2:"X",thursday_short_2:"J",friday_short_2:"V",saturday_short_2:"S",label_ok:"OK",label_cancel:"Cancelar",label_done:"Hecho",label_today:"Hoy",label_now:"Ahora",label_clear:"Limpiar",label_help:"Ayuda",label_yes:"S\xED",label_no:"No",label_random:"Aleatorio",label_save:"Guardar",label_reset:"Restablecer",label_submit:"Enviar",label_add_user_color:"A\xF1adir a colores",label_send:"Enviar",label_accept:"Aceptar",label_cookies_title:"Este sitio utiliza cookies",label_cookies_text:"Este sitio web utiliza cookies para garantizar que obtenga la mejor experiencia en nuestro sitio web.",label_choose_file:"Seleccionar archivo(s)",label_drop_file:"Haga clic o suelte archivo(s) aqu\xED",label_files_selected:"{n} archivo(s) seleccionado(s)",label_days:"d\xEDas",label_hours:"horas",label_minutes:"min",label_seconds:"seg",label_month:"mes",label_months:"meses",label_day:"d\xEDa",label_year:"a\xF1o",label_years:"a\xF1os",label_rows_count:"Mostrar:",label_search:"Buscar:",label_table_info:"Mostrando $1 a $2 de $3 entradas",label_prev:"Anterior",label_next:"Siguiente",label_all:"Todo",label_inspector:"Inspector",label_goto_page:"Ir a",label_enter_page:"Introducir p\xE1gina...",label_empty:"Nada que mostrar",label_user_colors:"Colores de usuario",label_tiles:"Cuadr\xEDculas",label_list:"Lista",label_load_more:"Cargar m\xE1s",label_buy:"Comprar",label_buy_now:"Comprar ahora",label_buy_today:"Comprar hoy",label_download:"Descargar",label_search_results:"Resultados de b\xFAsqueda",label_add:"A\xF1adir",label_edit:"Editar",label_delete:"Eliminar",label_new:"Nuevo",label_sell:"Vender",label_details:"Detalles",label_sorting:"Ordenar",label_finish:"Finalizar",label_play:"Reproducir",label_pause:"Pausa",label_stop:"Detener",label_mute:"Silenciar",label_loop:"Repetir",label_on:"enc",label_off:"apa",label_rename_tab:"Renombrar pesta\xF1a",label_close_tab:"Cerrar pesta\xF1a",label_close_other_tabs:"Cerrar otras pesta\xF1as",label_close_tabs_left:"Cerrar pesta\xF1as a la izquierda",label_close_tabs_right:"Cerrar pesta\xF1as a la derecha",label_close_all_tabs:"Cerrar todas las pesta\xF1as",label_close_inactive_tabs:"Cerrar pesta\xF1as inactivas",label_clear_input:"Limpiar entrada",label_reveal_password:"Mostrar contrase\xF1a",label_hide_password:"Ocultar contrase\xF1a",label_generate_random:"Generar valor aleatorio",label_search_input:"Buscar el valor ingresado",label_note:"Nota",label_tip:"Consejo",label_info:"Informaci\xF3n",label_warning:"Advertencia",label_question:"Pregunta",label_error:"Error",label_success:"\xC9xito",label_caution:"Precauci\xF3n",label_alert:"Alerta",label_bug:"Error",label_fuck:"Maldici\xF3n",label_important:"Importante",label_shit:"Mierda",label_air:"Aire",label_select_all:"Seleccionar todo",label_select_more:"Seleccionar...",label_select:"Seleccionar",label_filter:"Filtrar",label_collapse:"Colapsar",label_attach:"Adjuntar"});Metro.i18n.add("de",{weekStart:1,january:"Januar",february:"Februar",march:"M\xE4rz",april:"April",may:"Mai",june:"Juni",july:"Juli",august:"August",september:"September",october:"Oktober",november:"November",december:"Dezember",january_short:"Jan",february_short:"Feb",march_short:"M\xE4r",april_short:"Apr",may_short:"Mai",june_short:"Jun",july_short:"Jul",august_short:"Aug",september_short:"Sep",october_short:"Okt",november_short:"Nov",december_short:"Dez",sunday:"Sonntag",monday:"Montag",tuesday:"Dienstag",wednesday:"Mittwoch",thursday:"Donnerstag",friday:"Freitag",saturday:"Samstag",sunday_short:"So",monday_short:"Mo",tuesday_short:"Di",wednesday_short:"Mi",thursday_short:"Do",friday_short:"Fr",saturday_short:"Sa",sunday_short_2:"S",monday_short_2:"M",tuesday_short_2:"D",wednesday_short_2:"M",thursday_short_2:"D",friday_short_2:"F",saturday_short_2:"S",label_ok:"OK",label_cancel:"Abbrechen",label_done:"Fertig",label_today:"Heute",label_now:"Jetzt",label_clear:"L\xF6schen",label_help:"Hilfe",label_yes:"Ja",label_no:"Nein",label_random:"Zuf\xE4llig",label_save:"Speichern",label_reset:"Zur\xFCcksetzen",label_submit:"Absenden",label_add_user_color:"Zu den Farben hinzuf\xFCgen",label_send:"Senden",label_accept:"Akzeptieren",label_cookies_title:"Diese Seite verwendet Cookies",label_cookies_text:"Diese Website verwendet Cookies, um sicherzustellen, dass Sie die beste Erfahrung auf unserer Website machen.",label_choose_file:"Datei(en) ausw\xE4hlen",label_drop_file:"Klicken oder Datei(en) hier ablegen",label_files_selected:"{n} Datei(en) ausgew\xE4hlt",label_days:"Tage",label_hours:"Stunden",label_minutes:"Min",label_seconds:"Sek",label_month:"Monat",label_months:"Monate",label_day:"Tag",label_year:"Jahr",label_years:"Jahre",label_rows_count:"Anzeigen:",label_search:"Suchen:",label_table_info:"Zeige $1 bis $2 von $3 Eintr\xE4gen",label_prev:"Zur\xFCck",label_next:"Weiter",label_all:"Alle",label_inspector:"Inspektor",label_goto_page:"Gehe zu",label_enter_page:"Seite eingeben...",label_empty:"Nichts zu zeigen",label_user_colors:"Benutzerfarben",label_tiles:"Kacheln",label_list:"Liste",label_load_more:"Mehr laden",label_buy:"Kaufen",label_buy_now:"Jetzt kaufen",label_buy_today:"Heute kaufen",label_download:"Herunterladen",label_search_results:"Suchergebnisse",label_add:"Hinzuf\xFCgen",label_edit:"Bearbeiten",label_delete:"L\xF6schen",label_new:"Neu",label_sell:"Verkaufen",label_details:"Details",label_sorting:"Sortierung",label_finish:"Beenden",label_play:"Abspielen",label_pause:"Pause",label_stop:"Stopp",label_mute:"Stummschalten",label_loop:"Wiederholen",label_on:"an",label_off:"aus",label_rename_tab:"Tab umbenennen",label_close_tab:"Tab schlie\xDFen",label_close_other_tabs:"Andere Tabs schlie\xDFen",label_close_tabs_left:"Tabs links schlie\xDFen",label_close_tabs_right:"Tabs rechts schlie\xDFen",label_close_all_tabs:"Alle Tabs schlie\xDFen",label_close_inactive_tabs:"Inaktive Tabs schlie\xDFen",label_clear_input
229:"Eingabe l\xF6schen",label_reveal_password:"Passwort anzeigen",label_hide_password:"Passwort verbergen",label_generate_random:"Zuf\xE4lligen Wert generieren",label_search_input:"Nach eingegebenem Wert suchen",label_note:"Notiz",label_tip:"Tipp",label_info:"Info",label_warning:"Warnung",label_question:"Frage",label_error:"Fehler",label_success:"Erfolg",label_caution:"Vorsicht",label_alert:"Alarm",label_bug:"Fehler",label_fuck:"Mist",label_important:"Wichtig",label_shit:"Schei\xDFe",label_air:"Luft",label_select_all:"Alles ausw\xE4hlen",label_select_more:"Mehr ausw\xE4hlen...",label_select:"Ausw\xE4hlen",label_filter:"Filter",label_collapse:"Einklappen",label_attach:"Befestigen"});Metro.i18n.add("fr",{weekStart:1,january:"Janvier",february:"F\xE9vrier",march:"Mars",april:"Avril",may:"Mai",june:"Juin",july:"Juillet",august:"Ao\xFBt",september:"Septembre",october:"Octobre",november:"Novembre",december:"D\xE9cembre",january_short:"Jan",february_short:"F\xE9v",march_short:"Mar",april_short:"Avr",may_short:"Mai",june_short:"Juin",july_short:"Juil",august_short:"Ao\xFB",september_short:"Sep",october_short:"Oct",november_short:"Nov",december_short:"D\xE9c",sunday:"Dimanche",monday:"Lundi",tuesday:"Mardi",wednesday:"Mercredi",thursday:"Jeudi",friday:"Vendredi",saturday:"Samedi",sunday_short:"Dim",monday_short:"Lun",tuesday_short:"Mar",wednesday_short:"Mer",thursday_short:"Jeu",friday_short:"Ven",saturday_short:"Sam",sunday_short_2:"D",monday_short_2:"L",tuesday_short_2:"M",wednesday_short_2:"M",thursday_short_2:"J",friday_short_2:"V",saturday_short_2:"S",label_ok:"OK",label_cancel:"Annuler",label_done:"Termin\xE9",label_today:"Aujourd'hui",label_now:"Maintenant",label_clear:"Effacer",label_help:"Aide",label_yes:"Oui",label_no:"Non",label_random:"Al\xE9atoire",label_save:"Enregistrer",label_reset:"R\xE9initialiser",label_submit:"Soumettre",label_add_user_color:"Ajouter aux couleurs",label_send:"Envoyer",label_accept:"Accepter",label_cookies_title:"Ce site utilise des cookies",label_cookies_text:"Ce site utilise des cookies pour vous garantir la meilleure exp\xE9rience sur notre site.",label_choose_file:"Choisir le(s) fichier(s)",label_drop_file:"Cliquez ou d\xE9posez le(s) fichier(s) ici",label_files_selected:"{n} fichier(s) s\xE9lectionn\xE9(s)",label_days:"jours",label_hours:"heures",label_minutes:"min",label_seconds:"sec",label_month:"mois",label_months:"mois",label_day:"jour",label_year:"ann\xE9e",label_years:"ann\xE9es",label_rows_count:"Afficher :",label_search:"Rechercher :",label_table_info:"Affichage de $1 \xE0 $2 sur $3 entr\xE9es",label_prev:"Pr\xE9c",label_next:"Suiv",label_all:"Tout",label_inspector:"Inspecteur",label_goto_page:"Aller \xE0",label_enter_page:"Entrer la page...",label_empty:"Rien \xE0 afficher",label_user_colors:"Couleurs utilisateur",label_tiles:"Tuiles",label_list:"Liste",label_load_more:"Charger plus",label_buy:"Acheter",label_buy_now:"Acheter maintenant",label_buy_today:"Acheter aujourd'hui",label_download:"T\xE9l\xE9charger",label_search_results:"R\xE9sultats de recherche",label_add:"Ajouter",label_edit:"Modifier",label_delete:"Supprimer",label_new:"Nouveau",label_sell:"Vendre",label_details:"D\xE9tails",label_sorting:"Tri",label_finish:"Terminer",label_play:"Lire",label_pause:"Pause",label_stop:"Arr\xEAter",label_mute:"Muet",label_loop:"Boucle",label_on:"act",label_off:"d\xE9s",label_rename_tab:"Renommer l'onglet",label_close_tab:"Fermer l'onglet",label_close_other_tabs:"Fermer les autres onglets",label_close_tabs_left:"Fermer les onglets \xE0 gauche",label_close_tabs_right:"Fermer les onglets \xE0 droite",label_close_all_tabs:"Fermer tous les onglets",label_close_inactive_tabs:"Fermer les onglets inactifs",label_clear_input:"Effacer l'entr\xE9e",label_reveal_password:"Afficher le mot de passe",label_hide_password:"Masquer le mot de passe",label_generate_random:"G\xE9n\xE9rer une valeur al\xE9atoire",label_search_input:"Rechercher la valeur saisie",label_note:"Note",label_tip:"Astuce",label_info:"Info",label_warning:"Avertissement",label_question:"Question",label_error:"Erreur",label_success:"Succ\xE8s",label_caution:"Prudence",label_alert:"Alerte",label_bug:"Bug",label_fuck:"Merde",label_important:"Important",label_shit:"Fichu",label_air:"Air",label_select_all:"Tout s\xE9lectionner",label_select_more:"S\xE9lectionner...",label_select:"S\xE9lectionner",label_filter:"Filtrer",label_collapse:"R\xE9duire",label_attach:"Attacher"});Metro.i18n.add("it",{weekStart:1,january:"Gennaio",february:"Febbraio",march:"Marzo",april:"Aprile",may:"Maggio",june:"Giugno",july:"Luglio",august:"Agosto",september:"Settembre",october:"Ottobre",november:"Novembre",december:"Dicembre",january_short:"Gen",february_short:"Feb",march_short:"Mar",april_short:"Apr",may_short:"Mag",june_short:"Giu",july_short:"Lug",august_short:"Ago",september_short:"Set",october_short:"Ott",november_short:"Nov",december_short:"Dic",sunday:"Domenica",monday:"Luned\xEC",tuesday:"Marted\xEC",wednesday:"Mercoled\xEC",thursday:"Gioved\xEC",friday:"Venerd\xEC",saturday:"Sabato",sunday_short:"Dom",monday_short:"Lun",tuesday_short:"Mar",wednesday_short:"Mer",thursday_short:"Gio",friday_short:"Ven",saturday_short:"Sab",sunday_short_2:"D",monday_short_2:"L",tuesday_short_2:"M",wednesday_short_2:"M",thursday_short_2:"G",friday_short_2:"V",saturday_short_2:"S",label_ok:"OK",label_cancel:"Annulla",label_done:"Fatto",label_today:"Oggi",label_now:"Adesso",label_clear:"Cancella",label_help:"Aiuto",label_yes:"S\xEC",label_no:"No",label_random:"Casuale",label_save:"Salva",label_reset:"Reimposta",label_submit:"Invia",label_add_user_color:"Aggiungi ai colori",label_send:"Invia",label_accept:"Accetta",label_cookies_title:"Questo sito utilizza i cookie",label_cookies_text:"Questo sito utilizza i cookie per garantire la migliore esperienza sul nostro 
229sito.",label_choose_file:"Scegli file",label_drop_file:"Clicca o trascina qui il file",label_files_selected:"{n} file selezionati",label_days:"giorni",label_hours:"ore",label_minutes:"min",label_seconds:"sec",label_month:"mese",label_months:"mesi",label_day:"giorno",label_year:"anno",label_years:"anni",label_rows_count:"Mostra:",label_search:"Cerca:",label_table_info:"Mostra da $1 a $2 di $3 elementi",label_prev:"Prec",label_next:"Succ",label_all:"Tutti",label_inspector:"Ispettore",label_goto_page:"Vai a",label_enter_page:"Inserisci pagina...",label_empty:"Niente da mostrare",label_user_colors:"Colori utente",label_tiles:"Piastrelle",label_list:"Lista",label_load_more:"Carica altro",label_buy:"Compra",label_buy_now:"Compra ora",label_buy_today:"Compra oggi",label_download:"Scarica",label_search_results:"Risultati di ricerca",label_add:"Aggiungi",label_edit:"Modifica",label_delete:"Elimina",label_new:"Nuovo",label_sell:"Vendi",label_details:"Dettagli",label_sorting:"Ordinamento",label_finish:"Termina",label_play:"Riproduci",label_pause:"Pausa",label_stop:"Arresta",label_mute:"Silenzia",label_loop:"Ripeti",label_on:"acc",label_off:"spe",label_rename_tab:"Rinomina scheda",label_close_tab:"Chiudi scheda",label_close_other_tabs:"Chiudi altre schede",label_close_tabs_left:"Chiudi schede a sinistra",label_close_tabs_right:"Chiudi schede a destra",label_close_all_tabs:"Chiudi tutte le schede",label_close_inactive_tabs:"Chiudi schede inattive",label_clear_input:"Cancella input",label_reveal_password:"Mostra password",label_hide_password:"Nascondi password",label_generate_random:"Genera valore casuale",label_search_input:"Cerca il valore inserito",label_note:"Nota",label_tip:"Suggerimento",label_info:"Info",label_warning:"Avviso",label_question:"Domanda",label_error:"Errore",label_success:"Successo",label_caution:"Attenzione",label_alert:"Allarme",label_bug:"Bug",label_fuck:"Cavolo",label_important:"Importante",label_shit:"Accidenti",label_air:"Aria",label_select_all:"Seleziona tutto",label_select_more:"Seleziona...",label_select:"Seleziona",label_filter:"Filtro",label_collapse:"Riduci",label_attach:"Allegare"});Metro.i18n.add("zh-CN",{weekStart:0,january:"\u4E00\u6708",february:"\u4E8C\u6708",march:"\u4E09\u6708",april:"\u56DB\u6708",may:"\u4E94\u6708",june:"\u516D\u6708",july:"\u4E03\u6708",august:"\u516B\u6708",september:"\u4E5D\u6708",october:"\u5341\u6708",november:"\u5341\u4E00\u6708",december:"\u5341\u4E8C\u6708",january_short:"1\u6708",february_short:"2\u6708",march_short:"3\u6708",april_short:"4\u6708",may_short:"5\u6708",june_short:"6\u6708",july_short:"7\u6708",august_short:"8\u6708",september_short:"9\u6708",october_short:"10\u6708",november_short:"11\u6708",december_short:"12\u6708",sunday:"\u661F\u671F\u65E5",monday:"\u661F\u671F\u4E00",tuesday:"\u661F\u671F\u4E8C",wednesday:"\u661F\u671F\u4E09",thursday:"\u661F\u671F\u56DB",friday:"\u661F\u671F\u4E94",saturday:"\u661F\u671F\u516D",sunday_short:"\u5468\u65E5",monday_short:"\u5468\u4E00",tuesday_short:"\u5468\u4E8C",wednesday_short:"\u5468\u4E09",thursday_short:"\u5468\u56DB",friday_short:"\u5468\u4E94",saturday_short:"\u5468\u516D",sunday_short_2:"\u65E5",monday_short_2:"\u4E00",tuesday_short_2:"\u4E8C",wednesday_short_2:"\u4E09",thursday_short_2:"\u56DB",friday_short_2:"\u4E94",saturday_short_2:"\u516D",label_ok:"\u786E\u5B9A",label_cancel:"\u53D6\u6D88",label_done:"\u5B8C\u6210",label_today:"\u4ECA\u5929",label_now:"\u73B0\u5728",label_clear:"\u6E05\u9664",label_help:"\u5E2E\u52A9",label_yes:"\u662F",label_no:"\u5426",label_random:"\u968F\u673A",label_save:"\u4FDD\u5B58",label_reset:"\u91CD\u7F6E",label_submit:"\u63D0\u4EA4",label_add_user_color:"\u6DFB\u52A0\u5230\u8272\u677F",label_send:"\u53D1\u9001",label_accept:"\u63A5\u53D7",label_cookies_title:"\u672C\u7AD9\u4F7F\u7528cookies",label_cookies_text:"\u672C\u7F51\u7AD9\u4F7F\u7528cookies\u4EE5\u786E\u4FDD\u60A8\u5728\u6211\u4EEC\u7684\u7F51\u7AD9\u4E0A\u83B7\u5F97\u6700\u4F73\u4F53\u9A8C\u3002",label_choose_file:"\u9009\u62E9\u6587\u4EF6",label_drop_file:"\u70B9\u51FB\u6216\u62D6\u653E\u6587\u4EF6\u5230\u8FD9\u91CC",label_files_selected:"\u5DF2\u9009\u62E9 {n} \u4E2A\u6587\u4EF6",label_days:"\u5929",label_hours:"\u5C0F\u65F6",label_minutes:"\u5206\u949F",label_seconds:"\u79D2",label_month:"\u6708",label_months:"\u6708",label_day:"\u65E5",label_year:"\u5E74",label_years:"\u5E74",label_rows_count:"\u663E\u793A\uFF1A",label_search:"\u641C\u7D22\uFF1A",label_table_info:"\u663E\u793A\u7B2C $1 \u5230 $2 \u9879\uFF0C\u5171 $3 \u9879",label_prev:"\u4E0A\u4E00\u9875",label_next:"\u4E0B\u4E00\u9875",label_all:"\u5168\u90E8",label_inspector:"\u68C0\u67E5\u5668",label_goto_page:"\u524D\u5F80",label_enter_page:"\u8F93\u5165\u9875\u7801...",label_empty:"\u6CA1\u6709\u5185\u5BB9\u53EF\u663E\u793A",label_user_colors:"\u7528\u6237\u989C\u8272",label_tiles:"\u78C1\u8D34",label_list:"\u5217\u8868",label_load_more:"\u52A0\u8F7D\u66F4\u591A",label_buy:"\u8D2D\u4E70",label_buy_now:"\u7ACB\u5373\u8D2D\u4E70",label_buy_today:"\u4ECA\u65E5\u8D2D\u4E70",label_download:"\u4E0B\u8F7D",label_search_results:"\u641C\u7D22\u7ED3\u679C",label_add:"\u6DFB\u52A0",label_edit:"\u7F16\u8F91",label_delete:"\u5220\u9664",label_new:"\u65B0\u5EFA",label_sell:"\u51FA\u552E",label_details:"\u8BE6\u60C5",label_sorting:"\u6392\u5E8F",label_finish:"\u5B8C\u6210",label_play:"\u64AD\u653E",label_pause:"\u6682\u505C",label_stop:"\u505C\u6B62",label_mute:"\u9759\u97F3",label_loop:"\u5FAA\u73AF",label_on:"\u5F00",label_off:"\u5173",label_rename_tab:"\u91CD\u547D\u540D\u6807\u7B7E",label_close_tab:"\u5173\u95ED\u6807\u7B7E",label_close_other_tabs:"\u5173\u95ED\u5176\u4ED6\u6807\u7B7E",label_close_tabs_left:"\u5173\u95ED\u5DE6\u4FA7\u6807\u7B7E",label_close_tabs_right:"\u5173\u95ED\u53F3\u4FA7\u6807\u7B7E",label_close_all_tabs:"\u5173\u95ED\u6240\u6709\u6807\u7B7E",label_close_inactive_tabs:"\u5173\u95ED\u975E\u6D3B\u52A8\u6807\u7B7E",label_clear_input
229:"\u6E05\u9664\u8F93\u5165",label_reveal_password:"\u663E\u793A\u5BC6\u7801",label_hide_password:"\u9690\u85CF\u5BC6\u7801",label_generate_random:"\u751F\u6210\u968F\u673A\u503C",label_search_input:"\u641C\u7D22\u8F93\u5165\u7684\u503C",label_note:"\u5907\u6CE8",label_tip:"\u63D0\u793A",label_info:"\u4FE1\u606F",label_warning:"\u8B66\u544A",label_question:"\u95EE\u9898",label_error:"\u9519\u8BEF",label_success:"\u6210\u529F",label_caution:"\u6CE8\u610F",label_alert:"\u8B66\u62A5",label_bug:"\u9519\u8BEF",label_fuck:"\u7CDF\u7CD5",label_important:"\u91CD\u8981",label_shit:"\u7CDF\u7CD5",label_air:"\u7A7A\u6C14",label_select_all:"\u5168\u9009",label_select_more:"\u9009\u62E9...",label_select:"\u9009\u62E9",label_filter:"\u7B5B\u9009",label_collapse:"\u6298\u53E0",label_attach:"\u9644\u52A0"});Metro.i18n.add("zh-TW",{weekStart:0,january:"\u4E00\u6708",february:"\u4E8C\u6708",march:"\u4E09\u6708",april:"\u56DB\u6708",may:"\u4E94\u6708",june:"\u516D\u6708",july:"\u4E03\u6708",august:"\u516B\u6708",september:"\u4E5D\u6708",october:"\u5341\u6708",november:"\u5341\u4E00\u6708",december:"\u5341\u4E8C\u6708",january_short:"1\u6708",february_short:"2\u6708",march_short:"3\u6708",april_short:"4\u6708",may_short:"5\u6708",june_short:"6\u6708",july_short:"7\u6708",august_short:"8\u6708",september_short:"9\u6708",october_short:"10\u6708",november_short:"11\u6708",december_short:"12\u6708",sunday:"\u661F\u671F\u65E5",monday:"\u661F\u671F\u4E00",tuesday:"\u661F\u671F\u4E8C",wednesday:"\u661F\u671F\u4E09",thursday:"\u661F\u671F\u56DB",friday:"\u661F\u671F\u4E94",saturday:"\u661F\u671F\u516D",sunday_short:"\u9031\u65E5",monday_short:"\u9031\u4E00",tuesday_short:"\u9031\u4E8C",wednesday_short:"\u9031\u4E09",thursday_short:"\u9031\u56DB",friday_short:"\u9031\u4E94",saturday_short:"\u9031\u516D",sunday_short_2:"\u65E5",monday_short_2:"\u4E00",tuesday_short_2:"\u4E8C",wednesday_short_2:"\u4E09",thursday_short_2:"\u56DB",friday_short_2:"\u4E94",saturday_short_2:"\u516D",label_ok:"\u78BA\u5B9A",label_cancel:"\u53D6\u6D88",label_done:"\u5B8C\u6210",label_today:"\u4ECA\u5929",label_now:"\u73FE\u5728",label_clear:"\u6E05\u9664",label_help:"\u8AAA\u660E",label_yes:"\u662F",label_no:"\u5426",label_random:"\u96A8\u6A5F",label_save:"\u5132\u5B58",label_reset:"\u91CD\u8A2D",label_submit:"\u63D0\u4EA4",label_add_user_color:"\u52A0\u5165\u8272\u7968",label_send:"\u50B3\u9001",label_accept:"\u63A5\u53D7",label_cookies_title:"\u6B64\u7DB2\u7AD9\u4F7F\u7528Cookie",label_cookies_text:"\u672C\u7DB2\u7AD9\u4F7F\u7528Cookie\uFF0C\u4EE5\u78BA\u4FDD\u60A8\u5728\u6211\u5011\u7DB2\u7AD9\u4E0A\u7372\u5F97\u6700\u4F73\u9AD4\u9A57\u3002",label_choose_file:"\u9078\u64C7\u6A94\u6848",label_drop_file:"\u9EDE\u64CA\u6216\u62D6\u653E\u6A94\u6848\u81F3\u6B64",label_files_selected:"\u5DF2\u9078\u64C7 {n} \u500B\u6A94\u6848",label_days:"\u5929",label_hours:"\u5C0F\u6642",label_minutes:"\u5206\u9418",label_seconds:"\u79D2",label_month:"\u6708",label_months:"\u6708",label_day:"\u65E5",label_year:"\u5E74",label_years:"\u5E74",label_rows_count:"\u986F\u793A\uFF1A",label_search:"\u641C\u5C0B\uFF1A",label_table_info:"\u986F\u793A\u7B2C $1 \u5230 $2 \u9805\uFF0C\u5171 $3 \u9805",label_prev:"\u4E0A\u4E00\u9801",label_next:"\u4E0B\u4E00\u9801",label_all:"\u5168\u90E8",label_inspector:"\u6AA2\u67E5\u5668",label_goto_page:"\u524D\u5F80",label_enter_page:"\u8F38\u5165\u9801\u78BC...",label_empty:"\u6C92\u6709\u8CC7\u6599\u53EF\u986F\u793A",label_user_colors:"\u4F7F\u7528\u8005\u984F\u8272",label_tiles:"\u78DA\u584A",label_list:"\u6E05\u55AE",label_load_more:"\u8F09\u5165\u66F4\u591A",label_buy:"\u8CFC\u8
229CB7",label_buy_now:"\u7ACB\u5373\u8CFC\u8CB7",label_buy_today:"\u4ECA\u65E5\u8CFC\u8CB7",label_download:"\u4E0B\u8F09",label_search_results:"\u641C\u5C0B\u7D50\u679C",label_add:"\u65B0\u589E",label_edit:"\u7DE8\u8F2F",label_delete:"\u522A\u9664",label_new:"\u65B0\u5EFA",label_sell:"\u51FA\u552E",label_details:"\u8A73\u7D30\u8CC7\u6599",label_sorting:"\u6392\u5E8F",label_finish:"\u5B8C\u6210",label_play:"\u64AD\u653E",label_pause:"\u66AB\u505C",label_stop:"\u505C\u6B62",label_mute:"\u975C\u97F3",label_loop:"\u5FAA\u74B0",label_on:"\u958B\u555F",label_off:"\u95DC\u9589",label_rename_tab:"\u91CD\u65B0\u547D\u540D\u5206\u9801",label_close_tab:"\u95DC\u9589\u5206\u9801",label_close_other_tabs:"\u95DC\u9589\u5176\u4ED6\u5206\u9801",label_close_tabs_left:"\u95DC\u9589\u5DE6\u5074\u5206\u9801",label_close_tabs_right:"\u95DC\u9589\u53F3\u5074\u5206\u9801",label_close_all_tabs:"\u95DC\u9589\u6240\u6709\u5206\u9801",label_close_inactive_tabs:"\u95DC\u9589\u975E\u6D3B\u52D5\u5206\u9801",label_clear_input:"\u6E05\u9664\u8F38\u5165",label_reveal_password:"\u986F\u793A\u5BC6\u78BC",label_hide_password:"\u96B1\u85CF\u5BC6\u78BC",label_generate_random:"\u7522\u751F\u96A8\u6A5F\u503C",label_search_input:"\u641C\u5C0B\u8F38\u5165\u7684\u503C",label_note:"\u5099\u8A3B",label_tip:"\u63D0\u793A",label_info:"\u8CC7\u8A0A",label_warning:"\u8B66\u544A",label_question:"\u554F\u984C",label_error:"\u932F\u8AA4",label_success:"\u6210\u529F",label_caution:"\u6CE8\u610F",label_alert:"\u8B66\u793A",label_bug:"\u932F\u8AA4",label_fuck:"\u8A72\u6B7B",label_important:"\u91CD\u8981",label_shit:"\u7CDF\u7CD5",label_air:"\u7A7A\u6C23",label_select_all:"\u5168\u9078",label_select_more:"\u9078\u64C7...",label_select:"\u9078\u64C7",label_filter:"\u7BE9\u9078",label_collapse:"\u6536\u5408",label_attach:"\u9644\u52A0"});Metro.i18n.add("hi",{weekStart:0,january:"\u091C\u0928\u0935\u0930\u0940",february:"\u092B\u0930\u0935\u0930\u0940",march:"\u092E\u093E\u0930\u094D\u091A",april:"\u0905\u092A\u094D\u0930\u0948\u0932",may:"\u092E\u0908",june:"\u091C\u0942\u0928",july:"\u091C\u0941\u0932\u093E\u0908",august:"\u0905\u0917\u0938\u094D\u0924",september:"\u0938\u093F\u0924\u0902\u092C\u0930",october:"\u0905\u0915\u094D\u091F\u0942\u092C\u0930",november:"\u0928\u0935\u0902\u092C\u0930",december:"\u0926\u093F\u0938\u0902\u092C\u0930",january_short:"\u091C\u0928",february_short:"\u092B\u0930",march_short:"\u092E\u093E\u0930\u094D\u091A",april_short:"\u0905\u092A\u094D\u0930\u0948",may_short:"\u092E\u0908",june_short:"\u091C\u0942\u0928",july_short:"\u091C\u0941\u0932",august_short:"\u0905\u0917",september_short:"\u0938\u093F\u0924",october_short:"\u0905\u0915\u094D\u091F\u0942",november_short:"\u0928\u0935",december_short:"\u0926\u093F\u0938",sunday:"\u0930\u0935\u093F\u0935\u093E\u0930",monday:"\u0938\u094B\u092E\u0935\u093E\u0930",tuesday:"\u092E\u0902\u0917\u0932\u0935\u093E\u0930",wednesday:"\u092C\u0941\u0927\u0935\u093E\u0930",thursday:"\u0917\u0941\u0930\u0941\u0935\u093E\u0930",friday:"\u0936\u0941\u0915\u094D\u0930\u0935\u093E\u0930",saturday:"\u0936\u0928\u093F\u0935\u093E\u0930",sunday_short:"\u0930\u0935\u093F",monday_short:"\u0938\u094B\u092E",tuesday_short:"\u092E\u0902\u0917\u0932",wednesday_short:"\u092C\u0941\u0927",thursday_short:"\u0917\u0941\u0930\u0941",friday_short:"\u0936\u0941\u0915\u094D\u0930",saturday_short:"\u0936\u0928\u093F",sunday_short_2:"\u0930",monday_short_2:"\u0938\u094B",tuesday_short_2:"\u092E\u0902",wednesday_short_2:"\u092C\u0941",thursday_short_2:"\u0917\u0941",friday_short_2:"\u0936\u0941",saturday_short_2:"\u0936",label_ok:"\u0920\u0940\u0915 \u0939\u0948",label_cancel:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0947\u0902",label_done:"\u0938\u092E\u093E\u092A\u094D\u0924",label_today:"\u0906\u091C",label_now:"\u0905\u092D\u0940",label_clear:"\u0938\u093E\u092B \u0915\u0930\u0947\u0902",label_help:"\u092E\u0926\u0926",label_yes:"\u0939\u093E\u0901",label_no:"\u0928\u0939\u0940\u0902",label_random:"\u
229092F\u093E\u0926\u0943\u091A\u094D\u091B\u093F\u0915",label_save:"\u0938\u0939\u0947\u091C\u0947\u0902",label_reset:"\u0930\u0940\u0938\u0947\u091F \u0915\u0930\u0947\u0902",label_submit:"\u091C\u092E\u093E \u0915\u0930\u0947\u0902",label_add_user_color:"\u0930\u0902\u0917\u094B\u0902 \u092E\u0947\u0902 \u091C\u094B\u0921\u093C\u0947\u0902",label_send:"\u092D\u0947\u091C\u0947\u0902",label_accept:"\u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0915\u0930\u0947\u0902",label_cookies_title:"\u092F\u0939 \u0938\u093E\u0907\u091F \u0915\u0941\u0915\u0940\u091C\u093C \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0924\u0940 \u0939\u0948",label_cookies_text:"\u092F\u0939 \u0935\u0947\u092C\u0938\u093E\u0907\u091F \u092F\u0939 \u0938\u0941\u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u0941\u0915\u0940\u091C\u093C \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0924\u0940 \u0939\u0948 \u0915\u093F \u0906\u092A\u0915\u094B \u0939\u092E\u093E\u0930\u0940 \u0935\u0947\u092C\u0938\u093E\u0907\u091F \u092A\u0930 \u0938\u092C\u0938\u0947 \u0905\u091A\u094D\u091B\u093E \u0905\u0928\u0941\u092D\u0935 \u092E\u093F\u0932\u0947\u0964",label_choose_file:"\u092B\u093C\u093E\u0907\u0932\u0947\u0902 \u091A\u0941\u0928\u0947\u0902",label_drop_file:"\u092F\u0939\u093E\u0902 \u0915\u094D\u0932\u093F\u0915 \u0915\u0930\u0947\u0902 \u092F\u093E \u092B\u093C\u093E\u0907\u0932\u0947\u0902 \u091B\u094B\u0921\u093C\u0947\u0902",label_files_selected:"{n} \u092B\u093C\u093E\u0907\u0932\u0947\u0902 \u091A\u0941\u0928\u0940 \u0917\u0908\u0902",label_days:"\u0926\u093F\u0928",label_hours:"\u0918\u0902\u091F\u0947",label_minutes:"\u092E\u093F\u0928\u091F",label_seconds:"\u0938\u0947\u0915\u0902\u0921",label_month:"\u092E\u0939\u0940\u0928\u093E",label_months:"\u092E\u0939\u0940\u0928\u0947",label_day:"\u0926\u093F\u0928",label_year:"\u0938\u093E\u0932",label_years:"\u0938\u093E\u0932",label_rows_count:"\u0926\u093F\u0916\u093E\u090F\u0902:",label_search:"\u0916\u094B\u091C\u0947\u0902:",label_table_info:"$1 \u0938\u0947 $2 \u0924\u0915 $3 \u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F\u092F\u093E\u0902 \u0926\u093F\u0916\u093E \u0930\u0939\u093E \u0939\u0948",label_prev:"\u092A\u093F\u091B\u0932\u093E",label_next:"\u0905\u0917\u0932\u093E",label_all:"\u0938\u092D\u0940",label_inspector:"\u0928\u093F\u0930\u0940\u0915\u094D\u0937\u0915",label_goto_page:"\u092A\u0943\u0937\u094D\u0920 \u092A\u0930 \u091C\u093E\u090F\u0902",label_enter_page:"\u092A\u0943\u0937\u094D\u0920 \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902...",label_empty:"\u0926\u093F\u0916\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u0941\u091B \u0928\u0939\u0940\u0902",label_user_colors:"\u0909\u092A\u092F\u094B\u0917\u0915\u0930\u094D\u0924\u093E \u0930\u0902\u0917",label_tiles:"\u091F\u093E\u0907\u0932\u094D\u0938",label_list:"\u0938\u0942\u091A\u0940",label_load_more:"\u0914\u0930 \u0932\u094B\u0921 \u0915\u0930\u0947\u0902",label_buy:"\u0916\u0930\u0940\u0926\u0947\u0902",label_buy_now:"\u0905\u092D\u0940 \u0916\u0930\u0940\u0926\u0947\u0902",label_buy_today:"\u0906\u091C \u0916\u0930\u0940\u0926\u0947\u0902",label_download:"\u0921\u093E\u0909\u0928\u0932\u094B\u0921 \u0915\u0930\u0947\u0902",label_search_results:"\u0916\u094B\u091C \u092A\u0930\u093F\u0923\u093E\u092E",label_add:"\u091C\u094B\u0921\u093C\u0947\u0902",label_edit:"\u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0947\u0902",label_delete:"\u0939\u091F\u093E\u090F\u0902",label_new:"\u0928\u092F\u093E",label_sell:"\u092C\u0947\u091A\u0947\u0902",label_details:"\u0935\u093F\u0935\u0930\u0923",label_sorting:"\u091B\u0902\u091F\u093E\u0908",label_finish:"\u0938\u092E\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",label_play:"\u091A\u0932\u093E\u090F\u0902",label_pause:"\u0930\u094B\u0915\u0947\u0902",label_stop:"\u092C\u0902\u0926 \u0915\u0930\u0947\u0902",label_mute:"\u092E\u094D\u092F\u0942\u091F \u0915\u0930\u0947\u0902",label_loop:"\u0926\u094B\u0939\u0930\u093E\u090F\u0902",label_on:"\u091A\u093E\u0932\u0942",label_off:"\u
229092C\u0902\u0926",label_rename_tab:"\u091F\u0948\u092C \u0915\u093E \u0928\u093E\u092E \u092C\u0926\u0932\u0947\u0902",label_close_tab:"\u091F\u0948\u092C \u092C\u0902\u0926 \u0915\u0930\u0947\u0902",label_close_other_tabs:"\u0905\u0928\u094D\u092F \u091F\u0948\u092C \u092C\u0902\u0926 \u0915\u0930\u0947\u0902",label_close_tabs_left:"\u092C\u093E\u090F\u0902 \u091F\u0948\u092C \u092C\u0902\u0926 \u0915\u0930\u0947\u0902",label_close_tabs_right:"\u0926\u093E\u090F\u0902 \u091F\u0948\u092C \u092C\u0902\u0926 \u0915\u0930\u0947\u0902",label_close_all_tabs:"\u0938\u092D\u0940 \u091F\u0948\u092C \u092C\u0902\u0926 \u0915\u0930\u0947\u0902",label_close_inactive_tabs:"\u0928\u093F\u0937\u094D\u0915\u094D\u0930\u093F\u092F \u091F\u0948\u092C \u092C\u0902\u0926 \u0915\u0930\u0947\u0902",label_clear_input:"\u0907\u0928\u092A\u0941\u091F \u0938\u093E\u092B \u0915\u0930\u0947\u0902",label_reveal_password:"\u092A\u093E\u0938\u0935\u0930\u094D\u0921 \u0926\u093F\u0916\u093E\u090F\u0902",label_hide_password:"\u092A\u093E\u0938\u0935\u0930\u094D\u0921 \u091B\u093F\u092A\u093E\u090F\u0902",label_generate_random:"\u
229092F\u093E\u0926\u0943\u091A\u094D\u091B\u093F\u0915 \u092E\u093E\u0928 \u0909\u0924\u094D\u092A\u0928\u094D\u0928 \u0915\u0930\u0947\u0902",label_search_input:"\u0926\u0930\u094D\u091C \u0915\u093F\u090F \u0917\u090F \u092E\u093E\u0928 \u0915\u094B \u0916\u094B\u091C\u0947\u0902",label_note:"\u0928\u094B\u091F",label_tip:"\u0938\u0941\u091D\u093E\u0935",label_info:"\u091C\u093E\u0928\u0915\u093E\u0930\u0940",label_warning:"\u091A\u0947\u0924\u093E\u0935\u0928\u0940",label_question:"\u092A\u094D\u0930\u0936\u094D\u0928",label_error:"\u0924\u094D\u0930\u0941\u091F\u093F",label_success:"\u0938\u092B\u0932\u0924\u093E",label_caution:"\u0938\u093E\u0935\u0927\u093E\u0928\u0940",label_alert:"\u091A\u0947\u0924\u093E\u0935\u0928\u0940",label_bug:"\u092C\u0917",label_fuck:"\u0927\u0924\u094D\u0924",label_important:"\u092E\u0939\u0924\u094D\u0935\u092A\u0942\u0930\u094D\u0923",label_shit:"\u092C\u0915\u0935\u093E\u0938",label_air:"\u0939\u0935\u093E",label_select_all:"\u0938\u092D\u0940 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",label_select_more:"\u091A\u0941\u0928\u0947\u0902...",label_select:"\u091A\u0941\u0928\u0947\u0902",label_filter:"\u092B\u093C\u093F\u0932\u094D\u091F\u0930",label_collapse:"\u0938\u0902\u0915\u0941\u091A\u093F\u0924 \u0915\u0930\u0947\u0902",label_attach:"\u0938\u0902\u0932\u0917\u094D\u0928 \u0915\u0930\u0928\u093E"});Metro.i18n.add("pl",{weekStart:1,january:"Stycze\u0144",february:"Luty",march:"Marzec",april:"Kwiecie\u0144",may:"Maj",june:"Czerwiec",july:"Lipiec",august:"Sierpie\u0144",september:"Wrzesie\u0144",october:"Pa\u017Adziernik",november:"Listopad",december:"Grudzie\u0144",january_short:"Sty",february_short:"Lut",march_short:"Mar",april_short:"Kwi",may_short:"Maj",june_short:"Cze",july_short:"Lip",august_short:"Sie",september_short:"Wrz",october_short:"Pa\u017A",november_short:"Lis",december_short:"Gru",sunday:"Niedziela",monday:"Poniedzia\u0142ek",tuesday:"Wtorek",wednesday:"\u015Aroda",thursday:"Czwartek",friday:"Pi\u0105tek",saturday:"Sobota",sunday_short:"Nd",monday_short:"Pn",tuesday_short:"Wt",wednesday_short:"\u015Ar",thursday_short:"Czw",friday_short:"Pt",saturday_short:"Sob",sunday_short_2:"N",monday_short_2:"P",tuesday_short_2:"W",wednesday_short_2:"\u015A",thursday_short_2:"C",friday_short_2:"P",saturday_short_2:"S",label_ok:"OK",label_cancel:"Anuluj",label_done:"Gotowe",label_today:"Dzisiaj",label_now:"Teraz",label_clear:"Wyczy\u015B\u0107",label_help:"Pomoc",label_yes:"Tak",label_no:"Nie",label_random:"Losowy",label_save:"Zapisz",label_reset:"Resetuj",label_submit:"Wy\u015Blij",label_add_user_color:"Dodaj do kolor\xF3w",label_send:"Wy\u015Blij",label_accept:"Akceptuj",label_cookies_title:"Ta strona u\u017Cywa plik\xF3w cookie",label_cookies_text:"Ta strona u\u017Cywa plik\xF3w cookie, aby zapewni\u0107 najlepsze do\u015Bwiadczenie na naszej stronie.",label_choose_file:"Wybierz plik(i)",label_drop_file:"Kliknij lub upu\u015B\u0107 plik(i) tutaj",label_files_selected:"Wybrano {n} plik(\xF3w)",label_days:"dni",label_hours:"godziny",label_minutes:"minuty",label_seconds:"sekundy",label_month:"miesi\u0105c",label_months:"miesi\u0105ce",label_day:"dzie\u0144",label_year:"rok",label_years:"lata",label_rows_count:"Poka\u017C:",label_search:"Szukaj:",label_table_info:"Wy\u015Bwietlanie od $1 do $2 z $3 wpis\xF3w",label_prev:"Poprzedni",label_next:"Nast\u0119pny",label_all:"Wszystko",label_inspector:"Inspektor",label_goto_page:"Id\u017A do",label_enter_page:"Wpisz stron\u0119...",label_empty:"Brak danych do wy\u015Bwietlenia",label_user_colors:"Kolory u\u017Cytkownika",label_tiles:"Kafelki",label_list:"Lista",label_load_more:"Za\u0142aduj wi\u0119cej",label_buy:"Kup",label_buy_now:"Kup teraz",label_buy_today:"Kup dzisiaj",label_download:"Pobierz",label_search_results:"Wyniki wyszukiwania",label_add:"Dodaj",label_edit:"Edytuj",label_delete:"Usu\u0144",label_new:"Nowy",label_sell:"Sprzedaj",label_details:"Szczeg\xF3\u0142y",label_sorting:"Sortowanie",label_finish:"Zako\u0144cz",label_play:"Odtw\xF3rz",label_pause:"Pauza",label_stop:"Zatrzymaj",label_mute:"Wycisz",label_loop:"Zap\u0119tl",label_on:"w\u0142\u0105",label_off:"wy\u0142",label_rename_tab:"Zmie\u0144 nazw\u0119 karty",label_close_tab:"Zamknij kart\u0119",label_close_other_tabs:"Zamknij inne karty",label_close_tabs_left:"Zamknij karty po lewej",label_close_tabs_right:"Zamknij karty po prawej",label_close_all_tabs:"Zamknij wszystkie karty",label_close_inactive_tabs:"Zamknij nieaktywne karty",label_clear_input
229:"Wyczy\u015B\u0107 pole",label_reveal_password:"Poka\u017C has\u0142o",label_hide_password:"Ukryj has\u0142o",label_generate_random:"Wygeneruj losow\u0105 warto\u015B\u0107",label_search_input:"Szukaj wprowadzonej warto\u015Bci",label_note:"Notatka",label_tip:"Wskaz\xF3wka",label_info:"Informacja",label_warning:"Ostrze\u017Cenie",label_question:"Pytanie",label_error:"B\u0142\u0105d",label_success:"Sukces",label_caution:"Uwaga",label_alert:"Alarm",label_bug:"B\u0142\u0105d",label_fuck:"Cholera",label_important:"Wa\u017Cne",label_shit:"Kurka",label_air:"Powietrze",label_select_all:"Zaznacz wszystko",label_select_more:"Wybierz...",label_select:"Wybierz",label_filter:"Filtruj",label_collapse:"Zwi\u0144",label_attach:"Przytwierdza\u0107"});(()=>{"use strict";typeof Array.prototype.shuffle!="function"&&(Array.prototype.shuffle=function(){let t=this.length,o,e;for(;t!==0;)e=Math.floor(Math.random()*t),t-=1,o=this[t],this[t]=this[e],this[e]=o;return this}),typeof Array.prototype.clone!="function"&&(Array.prototype.clone=function(){return this.slice(0)}),typeof Array.prototype.unique!="function"&&(Array.prototype.unique=function(){let t=this.concat();for(let o=0;o<t.length;++o)for(let e=o+1;e<t.length;++e)t[o]===t[e]&&t.splice(e--,1);return t}),typeof Array.prototype.pack!="function"&&(Array.prototype.pack=function(){return this.filter(t=>t!=null&&`${t}`.trim()!=="")})})();Number.prototype.format=function(t,o=3,e=",",r="."){let a=`\\d(?=(\\d{${o||3}})+${t>0?"\\D":"$"})`,i=this.toFixed(Math.max(0,~~t));return(r?i.replace(".",r):i).replace(new RegExp(a,"g"),`$&${e||","}`)};(()=>{"use strict";String.prototype.toArray=function(t=",",o="string",e="",r="en",a=!1){let i=`${this}`.split(t).map(l=>{let s;switch(o){case"int":case"integer":s=isNaN(l)?l.trim():Number.parseInt(l);break;case"number":case"float":s=isNaN(l)?l:Number.parseFloat(l);break;case"date":s=e?Datetime.from(l,e,r):datetime(l);break;case"boolean":{switch(l){case!0:case"true":case 1:case"1":case"on":case"yes":case"+":s=!0;break;default:s=!1}break}default:s=l.trim()}return s});return a?i.pack():i}})();(t=>{"use strict";t.md5=o=>{function e(S,z){return S<<z|S>>>32-z}function r(S,z){let R,V,H;R=S&2147483648,V=z&2147483648;let at=S&1073741824,W=z&1073741824;return H=(S&1073741823)+(z&1073741823),at&W?H^2147483648^R^V:at|W?H&1073741824?H^3221225472^R^V:H^1073741824^R^V:H^R^V}function a(S,z,R){return S&z|~S&R}function i(S,z,R){return S&R|z&~R}function l(S,z,R){return S^z^R}function s(S,z,R){return z^(S|~R)}function c(S,z,R,V,H,at,W){let ct=r(S,r(r(a(z,R,V),H),W));return r(e(ct,at),z)}function A(S,z,R,V,H,at,W){let ct=r(S,r(r(i(z,R,V),H),W));return r(e(ct,at),z)}function p(S,z,R,V,H,at,W){let ct=r(S,r(r(l(z,R,V),H),W));return r(e(ct,at),z)}function g(S,z,R,V,H,at,W){let ct=r(S,r(r(s(z,R,V),H),W));return r(e(ct,at),z)}function h(S){let z,R=S.length,V=R+8,at=((V-V%64)/64+1)*16,W=Array(at-1),ct=0,xt=0;for(;xt<R;)z=(xt-xt%4)/4,ct=xt%4*8,W[z]=W[z]|S.charCodeAt(xt)<<ct,xt++;return z=(xt-xt%4)/4,ct=xt%4*8,W[z]=W[z]|128<<ct,W[at-2]=R<<3,W[at-1]=R>>>29,W}function d(S){let z="",R="",V,H;for(H=0;H<=3;H++)V=S>>>H*8&255,R=`0${V.toString(16)}`,z=z+R.substr(R.length-2,2);return z}function u(S){let z=S.replace(/\r\n/g,`
230`),R="";for(let V=0;V<z.length;V++){let H=z.charCodeAt(V);H<128?R+=String.fromCharCode(H):H>127&&H<2048?(R+=String.fromCharCode(H>>6|192),R+=String.fromCharCode(H&63|128)):(R+=String.fromCharCode(H>>12|224),R+=String.fromCharCode(H>>6&63|128),R+=String.fromCharCode(H&63|128))}return R}let f=[],b,I,D,C,Y,x,v,E,w,T=7,J=12,O=17,it=22,P=5,mt=9,_t=14,kt=20,Io=4,Mo=11,Co=16,Fo=23,Do=6,Yo=10,Uo=15,No=21,Pn=u(o);for(f=h(Pn),x=1732584193,v=4023233417,E=2562383102,w=271733878,b=0;b<f.length;b+=16)I=x,D=v,C=E,Y=w,x=c(x,v,E,w,f[b],T,3614090360),w=c(w,x,v,E,f[b+1],J,3905402710),E=c(E,w,x,v,f[b+2],O,606105819),v=c(v,E,w,x,f[b+3],it,3250441966),x=c(x,v,E,w,f[b+4],T,4118548399),w=c(w,x,v,E,f[b+5],J,1200080426),E=c(E,w,x,v,f[b+6],O,2821735955),v=c(v,E,w,x,f[b+7],it,4249261313),x=c(x,v,E,w,f[b+8],T,1770035416),w=c(w,x,v,E,f[b+9],J,2336552879),E=c(E,w,x,v,f[b+10],O,4294925233),v=c(v,E,w,x,f[b+11],it,2304563134),x=c(x,v,E,w,f[b+12],T,1804603682),w=c(w,x,v,E,f[b+13],J,4254626195),E=c(E,w,x,v,f[b+14],O,2792965006),v=c(v,E,w,x,f[b+15],it,1236535329),x=A(x,v,E,w,f[b+1],P,4129170786),w=A(w,x,v,E,f[b+6],mt,3225465664),E=A(E,w,x,v,f[b+11],_t,643717713),v=A(v,E,w,x,f[b],kt,3921069994),x=A(x,v,E,w,f[b+5],P,3593408605),w=A(w,x,v,E,f[b+10],mt,38016083),E=A(E,w,x,v,f[b+15],_t,3634488961),v=A(v,E,w,x,f[b+4],kt,3889429448),x=A(x,v,E,w,f[b+9],P,568446438),w=A(w,x,v,E,f[b+14],mt,3275163606),E=A(E,w,x,v,f[b+3],_t,4107603335),v=A(v,E,w,x,f[b+8],kt,1163531501),x=A(x,v,E,w,f[b+13],P,2850285829),w=A(w,x,v,E,f[b+2],mt,4243563512),E=A(E,w,x,v,f[b+7],_t,1735328473),v=A(v,E,w,x,f[b+12],kt,2368359562),x=p(x,v,E,w,f[b+5],Io,4294588738),w=p(w,x,v,E,f[b+8],Mo,2272392833),E=p(E,w,x,v,f[b+11],Co,1839030562),v=p(v,E,w,x,f[b+14],Fo,4259657740),x=p(x,v,E,w,f[b+1],Io,2763975236),w=p(w,x,v,E,f[b+4],Mo,1272893353),E=p(E,w,x,v,f[b+7],Co,4139469664),v=p(v,E,w,x,f[b+10],Fo,3200236656),x=p(x,v,E,w,f[b+13],Io,681279174),w=p(w,x,v,E,f[b],Mo,3936430074),E=p(E,w,x,v,f[b+3],Co,3572445317),v=p(v,E,w,x,f[b+6],Fo,76029189),x=p(x,v,E,w,f[b+9],Io,3654602809),w=p(w,x,v,E,f[b+12],Mo,3873151461),E=p(E,w,x,v,f[b+15],Co,530742520),v=p(v,E,w,x,f[b+2],Fo,3299628645),x=g(x,v,E,w,f[b],Do,4096336452),w=g(w,x,v,E,f[b+7],Yo,1126891415),E=g(E,w,x,v,f[b+14],Uo,2878612391),v=g(v,E,w,x,f[b+5],No,4237533241),x=g(x,v,E,w,f[b+12],Do,1700485571),w=g(w,x,v,E,f[b+3],Yo,2399980690),E=g(E,w,x,v,f[b+10],Uo,4293915773),v=g(v,E,w,x,f[b+1],No,2240044497),x=g(x,v,E,w,f[b+8],Do,1873313359),w=g(w,x,v,E,f[b+15],Yo,4264355552),E=g(E,w,x,v,f[b+6],Uo,2734768916),v=g(v,E,w,x,f[b+13],No,1309151649),x=g(x,v,E,w,f[b+4],Do,4149444226),w=g(w,x,v,E,f[b+11],Yo,3174756917),E=g(E,w,x,v,f[b+2],Uo,718787259),v=g(v,E,w,x,f[b+9],No,3951481745),x=r(x,I),v=r(v,D),E=r(E,C),w=r(w,Y);return(d(x)+d(v)+d(E)+d(w)).toLowerCase()}})(Metro);((t,o)=>{"use strict";t.utils={elementId:e=>`${e}-${new Date().getTime()}${o.random(1,1e3)}`,secondsToTime:e=>{let r=Math.floor(e%31536e3/86400),a=Math.floor(e%31536e3%86400/3600),i=Math.floor(e%31536e3%86400%3600/60),l=Math.round(e%31536e3%86400%3600%60);return{d:r,h:a,m:i,s:l}},secondsToFormattedString:e=>{let r=Number.parseInt(e,10),a=Math.floor(r/3600),i=Math.floor((r-a*3600)/60),l=r-a*3600-i*60;return[Str.lpad(a,"0",2),Str.lpad(i,"0",2),Str.lpad(l,"0",2)].join(":")},func:e=>new Function("a",e),exec:function(e,r,a){let i;if(e==null)return!1;let l=this.isFunc(e);l===!1&&(l=this.func(e));try{i=l.apply(a,r)}catch(s){if(i=null,globalThis.METRO_THROWS===!0)throw s}return i},embedUrl:e=>{let r=e;return r.indexOf("youtu.be")!==-1&&(r=`https://www.youtube.com/embed/${e.split("/").pop()}`),`<div class='embed-container'><iframe src='${r}'></iframe></div>`},isVisible:function(e){let r=o(e)[0];
230return this.getStyleOne(r,"display")!=="none"&&this.getStyleOne(r,"visibility")!=="hidden"&&r.offsetParent!==null},isUrl:e=>/^(\.\/|\.\.\/|ftp|http|https):\/\/(\w+:?\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@\-/]))?/.test(e),isTag:e=>/^<\/?[\w\s="/.':;#-/?]+>/gi.test(e),isEmbedObject:e=>{let r=["iframe","object","embed","video"],a=!1;return o.each(r,function(){(typeof e=="string"&&e.toLowerCase()===this||e.nodeType!==void 0&&e.tagName.toLowerCase()===this)&&(a=!0)}),a},isVideoUrl:e=>/youtu\.be|youtube|twitch|vimeo/gi.test(e),isDate:function(e,r,a="en-US"){let i;if(this.isDateObject(e))return!0;try{return i=r?Datetime.from(e,r,a):datetime(e),Datetime.isDatetime(i)}catch{return!1}},isDateObject:e=>typeof e=="object"&&e.getMonth!==void 0,isInt:e=>!isNaN(e)&&+e%1===0,isFloat:e=>!isNaN(e)&&+e%1!==0||/^\d*\.\d+$/.test(e),isFunc:function(e){return this.isType(e,"function")},isObject:function(e){return this.isType(e,"object")},isObject2:e=>typeof e=="object"&&!Array.isArray(e),isType:function(e,r="undefined"){if(!this.isValue(e))return!1;if(typeof e===r||`${r}`.toLowerCase()==="tag"&&this.isTag(e)||`${r}`.toLowerCase()==="url"&&this.isUrl(e)||`${r}`.toLowerCase()==="array"&&Array.isArray(e))return e;if(r!=="string"&&this.isTag(e)||this.isUrl(e))return!1;if(typeof window[e]===r)return window[e];if(typeof e=="string"&&e.indexOf(".")===-1||typeof e=="string"&&/[/\s([]+/gm.test(e)||typeof e=="number"&&r.toLowerCase()!=="number")return!1;let a=e.split("."),i,l=window;for(i=0;i<a.length;i++)l=l[a[i]];return typeof l===r?l:!1},$:()=>globalThis.useJQuery?globalThis.jQuery:Dom,isMetroObject:(e,r)=>{let a=o(e),i=t.getPlugin(e,r);return a.length===0?(console.warn(`${r} ${e} not found!`),!1):i===void 0?(console.warn(`Element not contain role ${r}! Please add attribute data-role="${r}" to element ${e}`),!1):!0},isJQuery:e=>typeof globalThis.jQuery<"u"&&e instanceof globalThis.jQuery,isDom:e=>typeof Dom<"u"&&e instanceof Dom,isQ:function(e){return this.isJQuery(e)||this.isDom(e)},isOutsider:function(e){let r=o(e),a=r.clone();a.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),r.parent().append(a);let i=this.inViewport(a[0]);return a.remove(),!i},inViewport:function(e){let r=this.rect(e);return r.top>=0&&r.left>=0&&r.bottom<=(globalThis.innerHeight||document.documentElement.clientHeight)&&r.right<=(globalThis.innerWidth||document.documentElement.clientWidth)},viewportOutByWidth:function(e){let r=this.rect(e),a=globalThis.innerWidth||document.documentElement.clientWidth;return r.right>a},viewportOutByHeight:function(e){let r=this.rect(e),a=globalThis.innerHeight||document.documentElement.clientHeight;return r.bottom>a},viewportOut:function(e){return this.viewportOutByWidth(e)||this.viewportOutByHeight(e)},rect:e=>e.getBoundingClientRect(),getCursorPosition:function(e,r){let a=this.rect(e);return{x:this.pageXY(r).x-a.left-globalThis.scrollX,y:this.pageXY(r).y-a.top-globalThis.scrollY}},getCursorPositionX:function(e,r){return this.getCursorPosition(e,r).x},getCursorPositionY:function(e,r){return this.getCursorPosition(e,r).y},objectLength:e=>Object.keys(e).length,percent:(e,r,a)=>{if(e===0)return 0;let i=r*100/e;return a===!0?Math.round(i):Math.round(i*100)/100},objectShift:e=>{let r=0;return o.each(e,a=>{(r===0||r>a)&&(r=a)}),delete e[r],e},objectDelete:(e,r)=>{r in e&&delete e[r]},arrayDeleteByMultipleKeys:(e,r)=>{for(let a of r)delete e[a];return e.filter(a=>a!==void 0)},arrayDelete:(e,r)=>{let a=e.indexOf(r);a>-1&&e.splice(a,1)},arrayDeleteByKey:(e,r)=>{e.splice(r,1)},nvl:(e,r)=>e??r,objectClone:e=>{let r={};for(let a in e)o.hasProp(e,a)&&(r[a]=e[a]);return r},github:async function(e,r){let a=await fetch(`https://api.github.com/repos/${e}`);if(!a.ok)return;let i=await a.json();this.exec(r,[i])},pageHeight:()=>{let e=document.body,r=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)},cleanPreCode:e=>{let r=Array.prototype.slice.call(document.querySelectorAll(e),0);for(let a of r){let i=a.textContent.replace(/^[\r\n]+/,"").replace(/\s+$/g,"");if(/^\S/gm.test(i)){a.textContent=i;continue}let l,s="",c=/^[\t ]+/gm,A,p=1e3;for(;l=c.exec(i);)A=l[0].length,A<p&&(p=A,s=l[0]);p!==1e3&&(a.textContent=i.replace(new RegExp(`^${s}`,"gm"),"").trim())}},coords:e=>{let a=o(e)[0].getBoundingClientRect();return{top:a.top+globalThis.pageYOffset,left:a.left+globalThis.pageXOffset}},positionXY:function(e,r,a){switch(r){case"client":return this.clientXY(e,a);case"screen":return this.screenXY(e,a);case"page":return this.pageXY(e,a);default:return{x:0,y:0}}},clientXY:(e,r="touches")=>({x:e[r]?e[r][0].clientX:e.clientX,y:e[r]?e[r][0].clientY:e.clientY}),screenXY:(e,r="touches")=>({x:e[r]?e[r][0].screenX:e.screenX,y:e[r]?e[r][0].screenY:e.screenY}),pageXY:(e,r="touches")=>({x:e[r]?e[r][0].pageX:e.pageX,y:e[r]?e[r][0].pageY:e.pageY}),isRightMouse:e=>"which"in e?e.which===3:"button"in e?e.button===2:void 0,hiddenElementSize:(e,r=!1)=>{let a=o(e).clone(!0);a.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),o("body").append(a);let i=a.outerWidth(r),l=a.outerHeight(r);return a.remove(),{width:i,height:l}},getStyle:e=>{let r=o(e)[0];return globalThis.getComputedStyle(r)}
230,getStyleOne:function(e,r){return this.getStyle(e).getPropertyValue(r)},getInlineStyles:e=>{let r,a,i={},l=o(e)[0];for(r=0,a=l.style.length;r<a;r++){let s=l.style[r];i[s]=l.style[s]}return i},encodeURI:e=>encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),updateURIParameter:(e,r,a)=>{let i=new RegExp(`([?&])${r}=.*?(&|$)`,"i"),l=e.indexOf("?")!==-1?"&":"?";return e.match(i)?e.replace(i,`$1${r}=${a}$2`):`${e+l+r}=${a}`},getURIParameter:(e=globalThis.location.href,r="")=>{let a=r.replace(/[[\]]/g,"\\$&"),l=new RegExp(`[?&]${a}(=([^&#]*)|&|#|$)`).exec(e);return l?l[2]?decodeURIComponent(l[2].replace(/\+/g," ")):"":null},getLocales:()=>Object.keys(t.locales),addLocale:e=>{t.locales=o.extend({},t.locales,e)},aspectRatioH:(e,r)=>{if(r==="16/9")return e*9/16;if(r==="21/9")return e*9/21;if(r==="4/3")return e*3/4},aspectRatioW:(e,r)=>{if(r==="16/9")return e*16/9;if(r==="21/9")return e*21/9;if(r==="4/3")return e*4/3},valueInObject:(e,r)=>Object.values(e).indexOf(r)>-1,keyInObject:(e,r)=>Object.keys(e).indexOf(r)>-1,inObject:(e,r,a)=>e[r]!==void 0&&e[r]===a,newCssSheet:e=>{let r=document.createElement("style");return e!==void 0&&r.setAttribute("media",e),r.appendChild(document.createTextNode("")),document.head.appendChild(r),r.sheet},addCssRule:(e,r,a,i)=>{e.insertRule(`${r}{${a}}`,i)},media:e=>globalThis.matchMedia(e).matches,mediaModes:()=>globalThis.METRO_MEDIA,mediaExist:e=>globalThis.METRO_MEDIA.indexOf(e)>-1,inMedia:e=>globalThis.METRO_MEDIA.indexOf(e)>-1&&globalThis.METRO_MEDIA.indexOf(e)===globalThis.METRO_MEDIA.length-1,isValue:e=>e!=null&&e!=="",isNull:e=>e==null,isNegative:e=>Number.parseFloat(e)<0,isPositive:e=>Number.parseFloat(e)>0,isZero:e=>Number.parseFloat(e.toFixed(2))===0,between:(e,r,a,i)=>i===!0?e>=r&&e<=a:e>r&&e<a,parseMoney:e=>Number(Number.parseFloat(e.replace(/[^0-9-.]/g,""))),parseCard:e=>e.replace(/[^0-9]/g,""),parsePhone:e=>e.replace(/[^0-9+]/g,""),parseNumber:(e,r,a)=>e.replace(new RegExp(`\\${r}`,"g"),"").replace(new RegExp(`\\${a}`,"g"),"."),nearest:(e,r,a)=>{let i=e/r;return i=Math[a===!0?"floor":"ceil"](i)*r,i},bool:e=>{let r;switch(e){case!0:case"true":case 1:case"1":case"on":case"yes":case"+":r=!0;break;default:r=!1}return r},decCount:e=>e%1===0?0:e.toString().split(".")[1].length,classNames:(...e)=>{let r=[];for(let a of e)if(a)if(typeof a=="string")r.push(a);else if(t.utils.isObject(a))for(let i in a)a[i]&&r.push(i);else t.utils.nothing();return r.join(" ")},join:(...e)=>{let r=e.pop(),a=[];for(let i of e)i&&a.push(t.utils.isObject(i)?Object.values(i)[0]:i);return a.join(r)},copy2clipboard:(e,r)=>{navigator.clipboard.writeText(e).then(()=>{t.utils.exec(r,[e])})},getCssVar:e=>{let r=document.documentElement;return getComputedStyle(r).getPropertyValue(e)},scrollTo:(e,r)=>{(typeof e=="string"?o(e)[0]:e).scrollIntoView({...r,behavior:"smooth",block:"start"})},getInnerSize:e=>{let r=o(e)[0];if(!r)return{width:0,height:0};let a=getComputedStyle(r),i=r.clientWidth-parseFloat(a.paddingLeft)-parseFloat(a.paddingRight),l=r.clientHeight-parseFloat(a.paddingTop)-parseFloat(a.paddingBottom);return{width:i,height:l}},clamp:(e,r,a)=>a>0?Math.min(Math.max(e,r),a):Math.max(e,r)}})(Metro,Dom);((t,o)=>{"use strict";let e={duration:300,ease:"linear"};t.Effects={switchIn:r=>{o(r).hide().css({left:0,top:0}).show()},switchOut:r=>{o(r).hide()},switch:function(r,a){this.switchOut(r),this.switchIn(a)},slideUpIn:(r,a)=>{let i=o(r),l=i.parent().outerHeight(!0),s=o.extend({},e,a);i.css({top:l,left:0,zIndex:2}).animate({draw:{top:0,opacity:1},dur:s.duration,ease:s.ease})},slideUpOut:(r,a)=>{let i=o(r),l=i.parent().outerHeight(!0),s=o.extend({},e,a);i.css({zIndex:1}).animate({draw:{top:-l,opacity:0},dur:s.duration,ease:s.ease})},slideUp:function(r,a,i){this.slideUpOut(r,i),this.slideUpIn(a,i)},slideDownIn:(r,a)=>{let i=o(r),l=i.parent().outerHeight(!0),s=o.extend({},e,a);i.css({left:0,top:-l,zIndex:2}).animate({draw:{top:0,opacity:1},dur:s.duration,ease:s.ease})},slideDownOut:(r,a)=>{let i=o(r),l=i.parent().outerHeight(!0),s=o.extend({},e,a);i.css({zIndex:1}).animate({draw:{top:l,opacity:0},dur:s.duration,ease:s.ease})},slideDown:function(r,a,i){this.slideDownOut(r,i),this.slideDownIn(a,i)},slideLeftIn:(r,a)=>{let i=o(r),l=i.parent().outerWidth(!0),s=o.extend({},e,a);i.css({left:l,zIndex:2}).animate({draw:{left:0,opacity:1},dur:s.duration,ease:s.ease})},slideLeftOut:(r,a)=>{let i=o(r),l=i.parent().outerWidth(!0),s=o.extend({},e,a);i.css({zIndex:1}).animate({draw:{left:-l,opacity:0}
230,dur:s.duration,ease:s.ease})},slideLeft:function(r,a,i){this.slideLeftOut(r,i),this.slideLeftIn(a,i)},slideRightIn:(r,a)=>{let i=o(r),l=i.parent().outerWidth(!0),s=o.extend({},e,a);i.css({left:-l,zIndex:2}).animate({draw:{left:0,opacity:1},dur:s.duration,ease:s.ease})},slideRightOut:(r,a)=>{let i=o(r),l=i.parent().outerWidth(!0),s=o.extend({},e,a);i.css({zIndex:1}).animate({draw:{left:l,opacity:0},dur:s.duration,ease:s.ease})},slideRight:function(r,a,i){this.slideRightOut(r,i),this.slideRightIn(a,i)},fadeIn:(r,a)=>{let i=o.extend({},e,a);o(r).css({top:0,left:0,opacity:0}).animate({draw:{opacity:1},dur:i.duration,ease:i.ease})},fadeOut:(r,a)=>{let i=o.extend({},e,a);o(r).animate({draw:{opacity:0},dur:i.duration,ease:i.ease})},fade:function(r,a,i){this.fadeOut(r,i),this.fadeIn(a,i)},zoomIn:(r,a)=>{let i=o.extend({},e,a);o(r).css({top:0,left:0,opacity:0,transform:"scale(3)",zIndex:2}).animate({draw:{scale:1,opacity:1},dur:i.duration,ease:i.ease})},zoomOut:(r,a)=>{let i=o.extend({},e,a);o(r).css({zIndex:1}).animate({draw:{scale:3,opacity:0},dur:i.duration,ease:i.ease})},zoom:function(r,a,i){this.zoomOut(r,i),this.zoomIn(a,i)},swirlIn:(r,a)=>{let i=o.extend({},e,a);o(r).css({top:0,left:0,opacity:0,transform:"scale(3) rotate(180deg)",zIndex:2}).animate({draw:{scale:1,rotate:0,opacity:1},dur:i.duration,ease:i.ease})},swirlOut:(r,a)=>{let i=o.extend({},e,a);o(r).css({zIndex:1}).animate({draw:{scale:3,rotate:"180deg",opacity:0},dur:i.duration,ease:i.ease})},swirl:function(r,a,i){this.swirlOut(r,i),this.swirlIn(a,i)}}})(Metro,Dom);((t,o)=>{"use strict";let e={accordionDeferred:0,showMarker:!0,material:!1,duration:100,oneFrame:!0,showActive:!0,clsFrame:"",clsHeading:"",clsContent:"",clsAccordion:"",clsActiveFrame:"",clsActiveFrameHeading:"",clsActiveFrameContent:"",onFrameOpen:t.noop,onFrameBeforeOpen:t.noop_true,onFrameClose:t.noop,onFrameBeforeClose:t.noop_true,onAccordionCreate:t.noop};t.accordionSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroAccordionSetup<"u"&&t.accordionSetup(globalThis.metroAccordionSetup),t.Component("accordion",{init:function(r,a){return this._super(a,r,e),this},_create:function(){let r=this.element;this._createStructure(),this._createEvents(),this._fireEvent("accordionCreate",{element:r})},_createStructure:function(){let r=this,a=this.element,i=this.options,l=a.children(".frame"),s=a.children(".frame.active"),c;a.id()||a.id(Hooks.useId("accordion")),a.addClass("accordion").addClass(i.clsAccordion),l.addClass(i.clsFrame).each(function(){let A=o(this),p=A.children(".heading"),g=A.children(".content"),h=Hooks.useId("accordion-heading"),d=Hooks.useId("accordion-content");p.attr({id:h,role:"button","aria-expanded":A.hasClass("active")?"true":"false","aria-controls":d,tabindex:"0"}),g.attr({id:d,role:"region","aria-labelledby":h}),p.addClass(i.clsHeading),g.addClass(i.clsContent)}),i.showMarker===!0&&a.addClass("marker-on"),i.material===!0&&a.addClass("material"),s.length===0?c=l[0]:c=s[0],this._hideAll(),i.showActive===!0&&(i.oneFrame===!0?this._openFrame(c):o.each(s,function(){r._openFrame(this)}))},_createEvents:function(){let r=this,a=this.element,i=this.options,l=a.children(".frame.active");a.on("keydown",".heading",function(s){let c=o(this),A=c.parent();if(c.closest(".accordion")[0]!==a[0])return!1;if((s.keyCode===13||s.keyCode===32)&&(s.preventDefault(),A.hasClass("active")?l.length===1&&i.oneFrame||r._closeFrame(A):r._openFrame(A)),s.keyCode===38||s.keyCode===40){s.preventDefault();let p=a.children(".frame"),g=p.index(A),h;s.keyCode===38?h=(g-1+p.length)%p.length:h=(g+1)%p.length,p.eq(h).children(".heading").focus()}}),a.on(t.events.click,".heading",function(){let s=o(this),c=s.parent();if(s.closest(".accordion")[0]!==a[0])return!1;c.hasClass("active")?l.length===1&&i.oneFrame||r._closeFrame(c):r._openFrame(c)})},_openFrame:function(r){let a=this.element,i=this.options,l=o(r);if(t.utils.exec(i.onFrameBeforeOpen,[l[0]],a[0])===!1)return!1;i.oneFrame===!0&&this._closeAll(l[0]),l.addClass("active").addClass(i.clsActiveFrame),l.children(".heading").addClass(i.clsActiveFrameHeading),l.children(".content").addClass(i.clsActiveFrameContent).slideDown(i.duration),this._fireEvent("frameOpen",{frame:l[0]})},_closeFrame:function(r){let a=this.element,i=this.options,l=o(r);l.hasClass("active")&&t.utils.exec(i.onFrameBeforeClose,[l[0]],a[0])!==!1&&(l.removeClass("active").removeClass(i.
230clsActiveFrame),l.children(".heading").removeClass(i.clsActiveFrameHeading),l.children(".content").removeClass(i.clsActiveFrameContent).slideUp(i.duration),this._fireEvent("frameClose",{frame:l[0]}))},_closeAll:function(r){let a=this,l=this.element.children(".frame");o.each(l,function(){r!==this&&a._closeFrame(this)})},_hideAll:function(){let a=this.element.children(".frame");o.each(a,function(){o(this).children(".content").hide()})},_openAll:function(){let r=this,i=this.element.children(".frame");o.each(i,function(){r._openFrame(this)})},open:function(r){let a=this.element.children(".frame").eq(r);this._openFrame(a)},close:function(r){let a=this.element.children(".frame").eq(r);this._closeFrame(a)},toggle:function(r){let a=this.element.children(".frame").eq(r);a.hasClass("active")?this._closeFrame(a):this._openFrame(a)},getActive:function(){let a=this.element.children(".frame"),i=[];return a.each(function(l){o(this).hasClass("active")&&i.push(l)}),i},changeAttribute:(r,a)=>{},destroy:function(){let r=this.element;return r.off(t.events.click,".heading"),r}})})(Metro,Dom);((t,o)=>{"use strict";let e={appbarDeferred:0,expand:!1,expandPoint:null,duration:100,checkHamburgerColor:!1,onMenuOpen:t.noop,onMenuClose:t.noop,onBeforeMenuOpen:t.noop,onBeforeMenuClose:t.noop,onMenuCollapse:t.noop,onMenuExpand:t.noop,onAppBarCreate:t.noop};t.appBarSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroAppBarSetup<"u"&&t.appBarSetup(globalThis.metroAppBarSetup),t.Component("app-bar",{init:function(r,a){return this._super(a,r,e,{id:null}),this},_create:function(){let r=this.element;this.id=r.attr("id")||Hooks.useId(this.elem),this._createStructure(),this._createEvents(),this._fireEvent("app-bar-create",{element:r})},_createStructure:function(){let r=this.element,a=this.options,i,l,s=t.utils.getStyleOne(r,"background-color");if(r.addClass("app-bar").attr("role","navigation"),i=r.find(".hamburger"),i.length===0){i=o("<button>").attr("type","button").addClass("hamburger menu-down").attr("aria-label","Toggle menu").attr("aria-expanded","false").attr("aria-controls",`app-bar-menu-${this.id}`);for(let c=0;c<3;c++)o("<span>").addClass("line").appendTo(i)}r.prepend(i),l=r.find(".app-bar-menu"),l.length>0&&(l.attr("id",`app-bar-menu-${this.id}`),l.attr("role","menubar")),l.length===0?i.css("display","none"):(l.find("li").attr("role","menuitem"),l.find("li a").attr("tabindex","0"),l.find("li:has(ul)").attr("aria-haspopup","true"),l.find("li ul").attr("role","menu").attr("aria-hidden","true")),i.css("display")==="block"?(l.hide().addClass("collapsed"),i.removeClass("hidden")):i.addClass("hidden"),(a.expand===!0||t.utils.isValue(a.expandPoint)&&t.utils.mediaExist(a.expandPoint))&&(r.addClass("app-bar-expand"),i.addClass("hidden")),a.checkHamburgerColor},_createEvents:function(){let r=this,a=this.element,i=this.options,l=a.find(".app-bar-menu"),s=a.find(".hamburger");a.on(t.events.click,".hamburger",()=>{if(l.length===0)return;l.hasClass("collapsed")?r.open():r.close()}),s.on("keydown",c=>{(c.keyCode===13||c.keyCode===32)&&(c.preventDefault(),s.trigger("click"))}),l.find("li a").on("keydown",function(c){(c.keyCode===13||c.keyCode===32)&&(c.preventDefault(),o(this).trigger("click")),c.keyCode===27&&(c.preventDefault(),r.close(),s.focus())}),o(globalThis).on(t.events.resize,()=>{if(i.expand!==!0&&(t.utils.isValue(i.expandPoint)&&t.utils.mediaExist(i.expandPoint)?(a.addClass("app-bar-expand"),r._fireEvent("menu-expand")):(a.removeClass("app-bar-expand"),r._fireEvent("menu-collapse"))),l.length===0){s.addClass("hidden");return}l.removeClass("opened").removeClass("collapsed"),s.css("display")!=="block"?(s.addClass("hidden"),l.show()):(s.removeClass("hidden"),s.hasClass("active")?l.removeClass("collapsed").addClass("opened"):l.addClass("collapsed").removeClass("opened"))},{ns:this.id})},close:function(){let r=this.element,a=this.options,i=r.find(".app-bar-menu"),l=r.find(".hamburger");this._fireEvent("before-menu-close",{menu:i[0]}),l.attr("aria-expanded","false"),i.find("ul").attr("aria-hidden","true"),i.slideUp(a.duration,()=>{i.addClass("collapsed").removeClass("opened"),l.removeClass("active"),this._fireEvent("menu-close",{menu:i[0]})})},open:function(){let r=this.element,a=this.options,i=r.find(".app-bar-menu"),l=r.find(".hamburger");this._fireEvent("before-menu-open",{menu:i[0]}),l.attr("aria-expanded","true"),i.find("ul").attr("aria-hidden","false"),i.slideDown(a.duration,()=>{i.removeClass("collapsed").addClass("opened"),l.addClass("active"),this._fireEvent("menu-open",{menu:i[0]})})},changeAttribute:(r,a)=>{},destroy:function(){let r=this.element;r.off(t.events.click,".hamburger"),o(globalThis).off(t.events.resize,{ns:this.id}),r.remove()}})})(Metro,Dom);((t,o)=>{"use strict";let e="[data-role-dropmenu], [data-role-dropdown]",r='<svg class="dropdown-caret" aria-hidden="true" width="16" height="16" viewB
230ox="0 0 24 24"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"></path></svg>',a={dropdownDeferred:0,dropFilter:null,toggleElement:null,noClose:!1,openMode:"auto",openFunc:"show",closeFunc:"hide",height:"auto",stayOnClick:!1,onDrop:t.noop,onUp:t.noop,onDropdownCreate:t.noop};t.dropdownSetup=i=>{a=o.extend({},a,i)},typeof globalThis.metroDropdownSetup<"u"&&t.dropdownSetup(globalThis.metroDropdownSetup),t.Component("dropdown",{init:function(i,l){return this._super(l,i,a,{toggle:null,displayOrigin:null,isOpen:!1,level:0,ready:!1}),this},_create:function(){setTimeout(()=>{let i=this.element;this._createStructure(),this._createEvents(),this._fireEvent("dropdown-create",{element:i}),i.hasClass("open")&&(i.removeClass("open"),setTimeout(()=>{this.open(!0)},0)),this.ready=!0},this.options.dropdownDeferred)},_toggle:function(){let i=this.element,l=i.siblings(".menu-toggle, .dropdown-toggle, a");if(l.length===0&&(l=i.prev(),l.length===0))throw new Error("Menu toggle not found");return l[0]},_createStructure:function(){let i=this.element,l=this.options,s=i.parents("[data-role-dropdown]").length,c;i.addClass("dropdown"),l.openMode==="up"&&i.addClass("drop-up"),l.openMode==="right"&&i.addClass("drop-right"),l.openMode==="left"&&i.addClass("drop-left"),l.openMode==="down"&&i.addClass("drop-down"),c=l.toggleElement?o(l.toggleElement):o(this._toggle()),c.length&&c.append(r),this.displayOrigin=t.utils.getStyleOne(i,"display"),l.height!=="auto"&&i.css({height:l.height,"overflow-y":"auto"}),i.css("display","none"),this.toggle=c,this.level=s},_createEvents:function(){let i=this.element,l=this.options,s=this.toggle,c=i.parent();s.on(t.events.click,A=>{if(o(".active-container").removeClass("active-container"),i.css("display")!=="none"&&!i.hasClass("keep-open"))this.close(!0,i);else{if(o(e).each((p,g)=>{!i.parents("[data-role-dropdown]").is(g)&&!o(g).hasClass("keep-open")&&o(g).css("display")!=="none"&&(t.utils.isValue(l.dropFilter)?o(g).closest(l.dropFilter).length>0&&this.close(!0,g):this.close(!0,g))}),i.hasClass("horizontal")){i.css({visibility:"hidden",display:"block"});let p=0;o.each(i.children("li"),function(){p+=o(this).outerWidth(!0)}),i.css({visibility:"visible",display:"none"}),i.css("width",p+2)}this.open(!1,i),c.addClass("active-container")}A.preventDefault(),A.stopPropagation()}),l.noClose===!0&&i.addClass("keep-open").on(t.events.click,A=>{A.preventDefault(),A.stopPropagation()}),o(i).find(".disabled").on(t.events.click,A=>{A.preventDefault(),A.stopPropagation()}),l.stayOnClick===!0&&i.on(t.events.click,A=>{A.stopPropagation()})},_close:function(i,l){let s=o(i),c=t.getPlugin(s,"dropdown");if(!c.ready)return;let A=c.toggle,p=c.options,g=p.closeFunc;A?.length&&A.removeClass("active-toggle").removeClass("active-control"),c.element.parent().removeClass("active-container"),l&&(g="hide"),s[g](l?0:100,()=>{c._fireEvent("close"),c._fireEvent("up"),p.openMode==="auto"&&c.element.removeClass("drop-up drop-as-dialog")}),this.isOpen=!1},_open:function(i,l){let s=t.getPlugin(i,"dropdown"),c=s.options,A=c.openFunc;s.toggle.addClass("active-toggle").addClass("active-control"),s.element.parent().addClass("active-container"),s.element[A](l?0:100,function(){let p=o(this),g=t.utils.viewportOutByWidth(this),h=t.utils.viewportOutByHeight(this);c.openMode==="auto"&&(h&&p.addClass("drop-up"),g&&p.addClass("place-right"),t.utils.viewportOut(this)&&p.removeClass("drop-up place-right").addClass("drop-as-dialog")),s._fireEvent("open"),s._fireEvent("drop")}),this.isOpen=!0},close:function(i,l){this._close(l||this.element,i)},open:function(i,l){this._open(l||this.element,i)},toggle:function(){this.isOpen?this.close():this.open()},changeAttribute:(i,l)=>{},destroy:function(){this.toggle.off(t.events.click)}}),o(document).on(t.events.click,()=>{o(e).each(function(){let i=o(this);if(i.hasClass("keep-open")||i.hasClass("stay-open")||i.hasClass("ignore-document-click"))return;let l=t.getPlugin(i,"dropdown"),s=t.getPlugin(i,"dropmenu");l&&l.close(),s&&s.close()})})})(Metro,Dom);((t,o)=>{"use strict";let e={loop:!0,source:"img",iconClose:"\u2716",iconPrev:"\u{1F850}",iconNext:"\u{1F852}",clsNext:"",clsPrev:"",clsClose:"",clsImage:"",clsImageContainer:"",clsImageWrapper:"",clsLightbox:"",onDrawImage:t.noop,onLightboxCreate:t.noop};t.lightboxSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroLightboxSetup<"u"&&t.lightboxSetup(globalThis.metroLightboxSetup),t.Component("lightbox",{init:function(r,a){return this._super(a,r,e,{overlay:null,lightbox:null,current:null,items:[]}),this},_create:function(){let r=this.options;r.source||(r.source="img"),this._createStructure(),this._createEvents(),this._fireEvent("lightbox-create")},_createStructure:function(){let r=this.options,a;a=o(".lightbox-overlay"),a.length===0&&(a=o("<div>").addClass("lightbox-overlay").appendTo("body").hide());let i=o("<div>").addClass("lightbox").addClass(r.clsLightbox).appendTo("body").hide();o("<span>").addClass("lightbox__prev").addClass(r.clsPrev).html(r.iconPrev).appendTo(i),o("<span>").addClass("lightbox__next").addClass(r.clsNext).html(r.iconNext).appendTo(i),o("<span>").addClass("lightbox__closer").addClass(r.clsClose).html(r.iconClose).appendTo(i),o("<div>").addClass("lightbox__image").addClass(r.clsImageContainer).appendTo(i),this.component=i[0],this.lightbox=i,this.overlay=a},_createEvents:function(){let r=this,a=this.element,i=this.options,l=o(this.component);a.on(t.events.click,i.source,function(){r.open(this)}),l.on(t.events.click,".lightbox__closer",()=>{r.close()}),l.on(t.events.click,".lightbox__prev",()=>{r.prev()}),l.on(t.events.click,".lightbox__next",()=>{r.next()})},_setupItems:function(){let r=this.element,a=this.options,i=r.find(a.source);i.length!==0&&(this.items=i)},_goto:function(r){let a=this,i=this.options,l=o(r),s=o("<img>"),c,A=this.lightbox.find(".lightbox__image");A.find(".lightbox__image-wrapper").remove();let p=o("<div>").addClass("lightbox__image-wrapper").addClass(i.clsImageWrapper).attr("data-title",l.attr("alt")||l.attr("data-title")||"").appendTo(A),g=o("<div>").appendTo(p);t.makePlugin(g,"activity",{type:"cycle",style:"color"}),this.current=r,(r.tagName==="IMG"||r.tagName==="DIV")&&(c=l.attr("data-original")||l.attr("src"),s.attr("src",c),s[0].onload=function(){let h=this.height>this.width;s.addClass(h?"lightbox__image-portrait":"lightbox__image-landscape").addClass(i.clsImage),s.attr("alt",l.attr("alt")),s.appendTo(p),g.remove(),a._fireEvent("draw-image",{image:s[0],item:p[0]})})},_index:function(r){let a=-1;return this.items.each(function(i){this===r&&(a=i)}),a},next:function(){let r,a=this.current;if(r=this._index(a),r+1>=this.items.length)if(this.options.loop)r=-1;else return;this._goto(this.items[r+1])},prev:function(){let r,a=this.current;if(r=this._index(a),r-1<0)if(this.options.loop)r=this.items.length;else return;this._goto(this.items[r-1])},open:function(r){return this._setupItems(),this._goto(r),this.overlay.show(),this.lightbox.show(),this},close:function(){this.overlay.hide(),this.lightbox.hide()},changeAttribute:(r,a)=>{},destroy:function(){this.element.remove()}})})(Metro,Dom);((t,o)=>{"use strict";let e={tabsDeferred:0,expand:!1,expandPoint:null,type:"default",updateUri:!1,position:"top",align:"left",link:"",clsTabs:"",clsTabsList:"",clsTabsListItem:"",clsTabsListItemActive:"",onTab:t.noop,onTabOpen:t.noop,onTabClose:t.noop,onBeforeTab:t.noop_true,onTabsCreate:t.noop};t.tabsSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroTabsSetup<"u"&&t.tabsSetup(globalThis.metroTabsSetup),t.Component("tabs",{init:function(r,a){return this._super(a,r,e,{_targets:[],id:null}),this},_create:function(){let r=this.element,a=r.find(".active")[0];this.id=r.attr("id")||Hooks.useId(this.elem),this._createStructure(),this._createEvents(),this._open(a),this._fireEvent("tabs-create",{element:r})},_createStructure:function(){let r=this.element,a=this.options,i=r.wrap("<div>").addClass("tabs"),l;i.addClass(`tabs-${a.position}`),r.addClass("tabs-list"),r.addClass(`tabs-${a.type}`),r.addClass(`align-${a.align}`),r.data("expanded",!1);let s=o("<div>").addClass("expand-title");if(i.prepend(s),l=i.find(".hamburger"),l.length===0){l=o("<button>").attr("type","button").addClass("hamburger menu-down").appendTo(i);for(let c=0;c<3;
230c++)o("<span>").addClass("line").appendTo(l)}i.addClass(a.clsTabs),r.addClass(a.clsTabsList),r.children("li").addClass(a.clsTabsListItem),a.expand===!0?["left","right"].includes(a.position)||i.addClass("tabs-expand"):t.utils.isValue(a.expandPoint)&&t.utils.mediaExist(a.expandPoint)&&!["left","right"].includes(a.position)&&i.addClass("tabs-expand"),["left","right"].includes(a.position)&&i.addClass("tabs-expand")},_createEvents:function(){let r=this,a=this.element,i=this.options,l=a.parent();o(globalThis).on(t.events.resize,()=>{["left","right"].includes(i.position)||(i.expand===!0?["left","right"].includes(i.position)||l.addClass("tabs-expand"):t.utils.isValue(i.expandPoint)&&t.utils.mediaExist(i.expandPoint)&&!["left","right"].includes(i.position)?l.hasClass("tabs-expand")||l.addClass("tabs-expand"):l.hasClass("tabs-expand")&&l.removeClass("tabs-expand"))},{ns:this.id}),l.on(t.events.click,".hamburger, .expand-title",()=>{a.data("expanded")===!1?(a.addClass("expand"),a.data("expanded",!0),l.find(".hamburger").addClass("active")):(a.removeClass("expand"),a.data("expanded",!1),l.find(".hamburger").removeClass("active"))}),a.on(t.events.click,"li",function(s){let c=o(this).children("a"),A=c.attr("href").trim(),p=c.parent("li");if(r._fireEvent("tab",{tab:p[0],target:p.children("a").href()}),p.hasClass("active"),a.data("expanded")===!0&&(a.removeClass("expand"),a.data("expanded",!1),l.find(".hamburger").removeClass("active")),t.utils.exec(i.onBeforeTab,[p,a],p[0])!==!0)return!1;A&&(A.startsWith("#")&&typeof c.attr("data-link")>"u"?(r._open(p),s.preventDefault()):globalThis.location.href=A)}),o(globalThis).on("hashchange",()=>{let s,c;i.updateUri&&(s=globalThis.location.hash,c=r._findTabByTarget(s),r._open(o(c)))})},_findTabByTarget:function(r){let i=this.element.find("li"),l;return i.each((s,c)=>{!l&&o(c).children("a").attr("href")===r&&(l=c)}),l},_collectTargets:function(){let r=this,i=this.element.find("li");this._targets=[],o.each(i,function(){let l=o(this);if(l.hasClass("divider"))return;let s=l.find("a").attr("href").trim();s.length>1&&s[0]==="#"&&r._targets.push(s)})},_open:function(r){let a=this.element,i=this.options,l=a.find("li"),s=a.siblings(".expand-title"),c=a.find("li.active");if(l.length===0)return;this._collectTargets();let A=o(typeof r>"u"?l[0]:r),p=A.find("a"),g=p.attr("href"),h=A.index();g!==void 0&&(l.removeClass("active").removeClass(i.clsTabsListItemActive),A.parent().hasClass("d-menu")?A.parent().parent().addClass("active"):A.addClass("active"),!(typeof p.attr("data-link")<"u")&&(i.link&&o(`[data-link=${i.link}]`).each((d,u)=>{if(u===this.elem)return;let f=o(u).find("li");f.length&&f[h]&&f[h].click()}),o.each(this._targets,function(){let d=o(this);d.length>0&&d.hide()}),g!=="#"&&g[0]==="#"&&(i.updateUri&&(globalThis.location.hash=g),o(g).show()),s.html(A.find("a").html()),A.addClass(i.clsTabsListItemActive),c.is(A)||(this._fireEvent("tab-open",{tab:A[0],target:A.children("a").attr("href")}),this._fireEvent("tab-close",{tab:c[0],target:c.children("a").attr("href")}))))},next:function(){let r=this.element,a;a=r.find("li.active").next("li"),a.length>0&&this._open(a)},prev:function(){let r=this.element,a;a=r.find("li.active").prev("li"),a.length>0&&this._open(a)},openByTarget:function(r){let a=this._findTabByTarget(r);a&&this._open(o(a))},openByIndex:function(r){let i=this.element.find("li");t.utils.isValue(i[r])&&this._open(o(i[r]))},open:function(r=1){typeof r=="number"?this.openByIndex(r-1):this.openByTarget(r)},changeAttribute:()=>{},destroy:function(){let r=this.element,a=r.parent();o(globalThis).off(t.events.resize,{ns:this.id}),a.off(t.events.click,".hamburger, .expand-title"),r.off(t.events.click,"a"),r.remove()}})})(Metro,Dom);((t,o)=>{"use strict";let e={dialogDeferred:0,closeButton:!1,leaveOverlayOnClose:!1,toTop:!1,toBottom:!1,title:"",content:"",customButtons:null,actionsAlign:"right",defaultActions:!0,defaultActionButtons:"ok,cancel,help",overlay:!0,overlayColor:"#000000",overlayAlpha:.5,overlayClickClose:!1,width:"auto",height:"auto",closeAction:!0,clsDialog:"",clsTitle:"",clsContent:"",clsAction:"",clsDefaultAction:"",clsOverlay:"",autoHide:0,removeOnClose:!1,show:!1,_runtime:!1,onOk:t.noop,onCancel:t.noop,onHelp:t.noop,onShow:t.noop,onHide:t.noop,onOpen:t.noop,onClose:t.noop,onDialogCreate:t.noop};t.dialogSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroDialogSetup<"u"&&t.dialogSetup(globalThis.metroDialogSetup),t.Component("dialog",{_counter:0,init:function(r,a){return this._super(a,r,e,{interval:null,overlay:null,id:null}),this},_create:function(){this._build()},_build:function(){let r=this,a=this.element,i=this.options,l=this.strings,s=o("body"),c;if(this.id=Hooks.useId(this.elem),a.addClass("dialog"),i.title!==""&&this.setTitle(i.title),i.content!==""&&this.setContent(i.content),i.defaultActions===!0||i.customButtons){let p=a.find(".dialog-actions"),g;if(p.length===0&&(p=o("<div>").addClass("dialog-actions").addClass(`text-${i.actionsAlign}`).appendTo(a)),i.defaultActions===!0&&a.find(".dialog-actions > *").length===0)for(let d of i.defaultActionButtons.toArray(","))g=o("<button>").addClass(d!=="help"?"js-dialog-close":"").addClass(i.clsDefaultAction).html(l[`label_${d}`]),g.appendTo(p),d==="ok"&&g.on(t.events.click,()=>{t.utils.exec(i.onOk,[a])}),d==="help"&&g.on(t.events.click,()=>{t.utils.exec(i.onHelp,[a])}
230),d==="cancel"&&g.on(t.events.click,()=>{t.utils.exec(i.onCancel,[a])});let h=t.utils.isObject(i.customButtons);Array.isArray(h)&&o.each(h,function(){let d=o("<button>").addClass("button").addClass(this.cls).html(this.text||this.html||"");r._setAttributes(d,this.attr),this.onclick&&d.on(t.events.click,u=>{t.utils.isRightMouse(u)||t.utils.exec(this.onclick,[d[0],a[0]])}),d.appendTo(p)})}i.overlay===!0&&(c=this._overlay(),this.overlay=c),i.closeAction===!0&&a.on(t.events.click,".js-dialog-close",()=>{this.close()});let A=a.find("closer");A.length===0&&(A=o("<span>").addClass("closer js-dialog-close"),A.appendTo(a)),i.closeButton!==!0&&A.hide(),a.css({height:i.height,visibility:"hidden",top:"100%"}),i.width!=="auto"&&a.css({width:i.width}),a.addClass(i.clsDialog),a.find(".dialog-title").addClass(i.clsTitle),a.find(".dialog-content").addClass(i.clsContent),a.find(".dialog-actions").addClass(i.clsAction),a.appendTo(s),i.show&&this.open(),o(globalThis).on(t.events.resize,()=>{this.setPosition()},{ns:this.id}),this._fireEvent("dialog-create",{element:a})},_overlay:function(){let r=this.options,a=o("<div>");return a.addClass("overlay").addClass(r.clsOverlay),r.overlayColor==="transparent"?a.addClass("transparent"):a.css({background:Farbe.Routines.toRGBA(Farbe.Routines.parse(r.overlayColor),r.overlayAlpha)}),a},hide:function(r){let a=this.element,i=this.options,l=0;i.onHide!==t.noop&&(l=500,this._fireEvent("hide")),setTimeout(()=>{t.utils.exec(r,null,a[0]),a.css({visibility:"hidden",top:"100%"})},l)},show:function(r){let a=this.element;this.setPosition(),a.css({visibility:"visible"}),this._fireEvent("show"),t.utils.exec(r,null,a[0])},setPosition:function(){let r=this.element,a=this.options,i,l;a.toTop!==!0&&a.toBottom!==!0?(i=(o(globalThis).height()-r.outerHeight())/2,i<0&&(i=0),l="auto"):(a.toTop===!0&&(i=0,l="auto"),a.toTop!==!0&&a.toBottom===!0&&(l=0,i="auto")),r.css({top:i,bottom:l,left:(o(globalThis).width()-r.outerWidth())/2})},setContent:function(r){let a=this.element,i=a.find(".dialog-content");i.length===0&&(i=o("<div>").addClass("dialog-content"),i.appendTo(a)),t.utils.isQ(r)?r.appendTo(i):t.utils.isFunc(r)?i.html(t.utils.exec(r)):i.html(r)},setTitle:function(r){let a=this.element,i=a.find(".dialog-title");i.length===0&&(i=o("<div>").addClass("dialog-title"),i.appendTo(a)),i.html(r)},close:function(){let r=this.element,a=this.options;t.utils.bool(a.leaveOverlayOnClose)||o("body").find(".overlay").remove(),this.hide(()=>{r.data("open",!1),this._fireEvent("close"),a.removeOnClose===!0&&r.remove()})},open:function(){let r=this.element,a=this.options;a.overlay===!0&&o(".overlay").length===0&&(this.overlay.appendTo(o("body")),a.overlayClickClose===!0&&this.overlay.on(t.events.click,()=>{this.close()})),this.show(()=>{this._fireEvent("open"),r.data("open",!0),Number.parseInt(a.autoHide)>0&&setTimeout(()=>{this.close()},Number.parseInt(a.autoHide))})},toggle:function(){this.element.data("open")?this.close():this.open()},isOpen:function(){return this.element.data("open")===!0},changeAttribute:(r,a)=>{},destroy:function(){let r=this.element;r.off(t.events.click,".js-dialog-close"),r.find(".button").off(t.events.click),o(globalThis).off(t.events.resize,{ns:this.id}),r.remove()}}),t.dialog={isDialog:r=>t.utils.isMetroObject(r,"dialog"),open:function(r,a,i){if(!this.isDialog(r))return!1;let l=t.getPlugin(r,"dialog");i&&l.setTitle(i),a&&l.setContent(a),l.open()},close:function(r){if(!this.isDialog(r))return!1;t.getPlugin(o(r)[0],"dialog").close()},toggle:function(r){if(!this.isDialog(r))return!1;t.getPlugin(o(r)[0],"dialog").toggle()},isOpen:function(r){if(!this.isDialog(r))return!1;t.getPlugin(o(r)[0],"dialog").isOpen()},remove:function(r){if(!this.isDialog(r))return!1;let a=t.getPlugin(o(r)[0],"dialog");a.options.removeOnClose=!0,a.close()},create:r=>{let a=o("<div>").appendTo(o("body")),i=o.extend({},{show:!0,closeAction:!0,removeOnClose:!0},r||{});return i._runtime=!0,t.makePlugin(a,"dialog",i).element}}})(Metro,Dom);((t,o)=>{"use strict";let e={activityDeferred:0,type:"ring",style:"",size:32,boxSize:10,radius:20,onActivityCreate:t.noop};t.activitySetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroActivitySetup<"u"&&t.activitySetup(globalThis.metroActivitySetup),t.Component("activity",{init:function(r,a){return this._super(a,r,e),this},_create:function(){let r=this.element,a=this.options,i,l;r.html("").addClass(a.style==="dark"?"dark-side":a.style==="color"?"color-style":"").addClass(`activity-${a.type}`),a.size&&["ring","square","cycle","simple","atom","bars"].includes(a.type)&&r.cssVar("activity-size",`${a.size}px`),a.boxSize&&["metro"].includes(a.type)&&r.cssVar("activity-box-size",`${a.boxSize}px`);function s(){for(i=0;i<5;i++)o("<div/>").addClass("circle").appendTo(r)}function c(){for(i=0;i<4;i++)o("<div/>").addClass("square").appendTo(r)}function A(){o("<div/>").addClass("cycle").appendTo(r)}function p(){for(i=0;i<5;i++)l=o("<div/>").addClass("wrap").appendTo(r),o("<div/>").addClass("circle").appendTo(l)}function g(){o(`
231                    <svg class="circular">
232                        <circle class="path" 
233                                cx="${a.size/2}" 
234                                cy="${a.size/2}" 
235                                r="${a.size/3}" 
236                                fill="none" 
237                                stroke-width="2" 
238                                stroke-miterlimit="10"
239                        />
240                    </svg>
241                `).appendTo(r)}function h(){for(i=0;i<3;
241i++)o("<span/>").addClass("electron").appendTo(r)}function d(){for(i=0;i<6;i++)o("<span/>").addClass("bar").appendTo(r)}switch(a.type){case"metro":s();break;case"square":c();break;case"cycle":A();break;case"simple":g();break;case"atom":h();break;case"bars":d();break;default:p()}this._fireEvent("activity-create",{element:r})},changeAttribute:(r,a)=>{},destroy:function(){this.element.remove()}}),t.activity={open:(r={})=>{let a=r,i=`<div data-role="activity" data-type="${a.type?a.type:"cycle"}" data-style="${a.style?a.style:"color"}"></div>`,l=a.text?`<div class="text-center">${a.text}</div>`:"";return t.dialog.create({content:i+l,defaultActions:!1,clsContent:"d-flex flex-column flex-center bg-transparent no-shadow w-auto",clsDialog:"no-border no-shadow bg-transparent global-dialog",autoHide:a.autoHide?a.autoHide:0,overlayClickClose:a.overlayClickClose===!0,overlayColor:a.overlayColor?a.overlayColor:"#000000",overlayAlpha:a.overlayAlpha?a.overlayAlpha:.5,clsOverlay:"global-overlay"})},close:r=>{t.dialog.close(r)}}})(Metro,Dom);((t,o)=>{"use strict";globalThis.CHECKBOX_STATE={CHECKED:1,UNCHECKED:-1,INDETERMINATE:0};let e={checkboxDeferred:0,state:CHECKBOX_STATE.UNCHECKED,threeState:!1,prepend:"",append:"",caption:"",clsCheckbox:"",clsCaption:"",clsPrepend:"",clsAppend:"",onCheckboxCreate:t.noop};t.metroCheckboxSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroCheckboxSetup<"u"&&t.metroCheckboxSetup(globalThis.metroCheckboxSetup),t.Component("checkbox",{init:function(r,a){return this._super(a,r,e,{origin:{className:""},state:CHECKBOX_STATE.UNCHECKED}),this},_create:function(){let r=this.options;(r.threeState===!1&&r.state===0||r.state==="indeterminate")&&(r.state=CHECKBOX_STATE.UNCHECKED),r.state===CHECKBOX_STATE.UNCHECKED||r.state==="unchecked"?this.state=CHECKBOX_STATE.UNCHECKED:r.state===0||r.state==="indeterminate"?this.state=CHECKBOX_STATE.INDETERMINATE:this.state=CHECKBOX_STATE.CHECKED,this._createStructure(),this._createEvents(),this._fireEvent("checkbox-create")},_indeterminate:function(r=!0){let a=this.element;a[0].indeterminate=r,a.attr("data-indeterminate",r)},_createStructure:function(){let r=this.element,a=this.options,i=r.wrap("<label>").addClass("checkbox").addClass(a.clsCheckbox);r.attr("type","checkbox"),a.prepend&&i.prepend(o("<span>").addClass("caption-prepend").addClass(a.clsPrepend).addClass(a.clsCaption).html(a.prepend)),(a.append||a.caption)&&i.append(o("<span>").addClass("caption-append").addClass(a.clsAppend).addClass(a.clsCaption).html(a.append||a.caption)),r.attr("readonly")!==void 0&&r.on("click",l=>{l.preventDefault()}),this.elem.checked&&this.state!==CHECKBOX_STATE.INDETERMINATE&&(this.state=!0),this._drawState()},_drawState:function(){let r=this.elem;this._indeterminate(!1),r.checked=this.state!==CHECKBOX_STATE.UNCHECKED,this.state===CHECKBOX_STATE.INDETERMINATE&&this._indeterminate(!0)},_createEvents:function(){let r=this.element,a=this.options;r.on("click",()=>{this.state++,this.state===0&&a.threeState===!1&&(this.state=1),this.state===2&&(this.state=-1),this._drawState()})},check:function(){this.setCheckState(CHECKBOX_STATE.CHECKED)},uncheck:function(){this.setCheckState(CHECKBOX_STATE.UNCHECKED)},indeterminate:function(){this.setCheckState(CHECKBOX_STATE.INDETERMINATE)},setCheckState:function(r){return r===-1||r==="unchecked"?this.state=CHECKBOX_STATE.UNCHECKED:r===0||r==="indeterminate"?this.state=CHECKBOX_STATE.INDETERMINATE:this.state=CHECKBOX_STATE.CHECKED,this._drawState(),this},getCheckState:function(r=!1){if(!r)return this.state;switch(this.state){case-1:return"unchecked";case 0:return"indeterminate";case 1:return"checked"}},toggle:function(){this.state++,this.state===2&&(this.state=-1),this._drawState()},changeAttribute:(r,a)=>{let i=function(l){this.toggle(l)};switch(r){case"data-state":i(a);break}},destroy:function(){let r=this.element;r.off("click"),r.parent().remove()}})})(Metro,Dom);((t,o)=>{"use strict";let e={radioDeferred:0,prepend:"",append:"",caption:"",clsRadio:"",clsCaption:"",clsPrepend:"",clsAppend:"",onRadioCreate:t.noop};t.metroRadioSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroRadioSetup<"u"&&t.metroRadioSetup(globalThis.metroRadioSetup),t.Component("radio",{init:function(r,a){return this._super(a,r,e,{origin:{className:""}}),this},_create:function(){this._createStructure(),this._createEvents(),this._fireEvent("radio-create")},_createStructure:function(){let r=this.element,a=this.options,i=r.wrap("<label>").addClass("radio").addClass(a.clsCheckbox);r.attr("type","radio"),a.prepend&&i.prepend(o("<span>").addClass("caption-prepend").addClass(a.clsPrepend).addClass(a.clsCaption).html(a.prepend)),(a.append||a.caption)&&i.append(o("<span>").addClass("caption-append").addClass(a.clsAppend).addClass(a.clsCaption).html(a.append||a.caption)),r.attr("readonly")&&r.on("click",l=>{l.preventDefault()}),this.elem.checked&&(this.state=!0),this._drawState()},_drawState:()=>{},_createEvents:function(){this.element.on("click",()=>{this._drawState()})},check:function(){this.setCheckState(CHECKBOX_STATE.CHECKED)},uncheck:function(){this.setCheckState(CHECKBOX_STATE.UNCHECKED)},setCheckState:function(r=!0){return this.elem.checked=r,this._drawState(),this},getCheckState:function(r=!1){let a=this.elem.checked;if(!r)return a;switch(this.state){case!1:return"unchecked";case!0:return"checked"}},toggle:function(){this.elem.checked=!this.elem.checked,this._drawState()},changeAttribute:(r,a)=>{},destroy:function(){let r=this.element;r.off("click"),r.parent().remove()}})})(Metro,Dom);((t,o)=>{"use strict";let e={inputDeferred:0,label:"",autocomplete:null,autocompleteUrl:null,autocompleteUrlMethod:"GET",autocompleteUrlKey:null,autocompleteDivider:",",autocompleteListHeight:200,history:!1,historyPreset:"",historyDivider:"|",preventSubmit:!1,defaultValue:"",size:"default",prepend:"",append:"",searchButton:!1,clearButton:!0,revealButton:!0,randomButton:!1,clearButtonIcon:"\u2716",revealButtonIcon:"\u{1F440}",searchButtonIcon:"\u{1F50D}",randomButtonIcon:"\u{1F3B2}",customButtons:[],searchButtonClick:"submit",randomSymbols:"0123456789;abcdefghijklmnopqrstuvwxyz;ABCDEFGHIJKLMNOPQRSTUVWXYZ;<>
241!?@#$%^&*()_+",randomLength:12,prependOptions:"",prependOptionsSep:",",appendOptions:"",appendOptionsSep:",",badge:null,clsComponent:"",clsInput:"",clsPrepend:"",clsAppend:"",clsClearButton:"",clsRevealButton:"",clsCustomButton:"",clsSearchButton:"",clsRandomButton:"",clsLabel:"",onAutocompleteSelect:t.noop,onHistoryChange:t.noop,onHistoryUp:t.noop,onHistoryDown:t.noop,onClearClick:t.noop,onRevealClick:t.noop,onSearchButtonClick:t.noop,onEnterClick:t.noop,onInputCreate:t.noop};t.inputSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroInputSetup<"u"&&t.inputSetup(globalThis.metroInputSetup),t.Component("input",{init:function(r,a){return this._super(a,r,e,{history:[],historyIndex:-1,autocomplete:[],prependOptionsList:null,appendOptionsList:null}),this},_create:function(){let r=this.element;this._createStructure(),this._createEvents(),this._fireEvent("input-create",{element:r})},_createStructure:function(){let r=this,a=this.element,i=this.options,l=a.wrap("<div>").addClass(`input ${a[0].className}`),s,c,A,p,g;a.id()||a.attr("id",Hooks.useId(a[0])),t.utils.isValue(i.historyPreset)&&(o.each(i.historyPreset.toArray(i.historyDivider),function(){r.history.push(this)}),r.historyIndex=r.history.length-1),a.attr("type")===void 0&&a.attr("type","text"),s=o("<div>").addClass("button-group").appendTo(l),t.utils.isValue(a.val().trim())||a.val(i.defaultValue),i.clearButton===!0&&!a[0].readOnly&&(c=o("<button>").addClass("button input-clear-button").addClass(i.clsClearButton).attr("tabindex",-1).attr("type","button").html(i.clearButtonIcon).attr("title",this.strings.label_clear_input),c.appendTo(s)),a.attr("type")==="password"&&i.revealButton===!0&&(A=o("<button>").addClass("button input-reveal-button").addClass(i.clsRevealButton).attr("tabindex",-1).attr("type","button").html(i.revealButtonIcon).attr("title",this.strings.label_reveal_password),A.appendTo(s)),i.searchButton===!0&&(p=o("<button>").addClass("button input-search-button").addClass(i.clsSearchButton).attr("tabindex",-1).attr("type",i.searchButtonClick==="submit"?"submit":"button").html(i.searchButtonIcon).attr("title",this.strings.label_search_input),p.appendTo(s)),i.randomButton===!0&&(g=o("<button>").addClass("button input-random-button").addClass(i.clsRandomButton).attr("tabindex",-1).attr("type","button").html(i.randomButtonIcon).attr("title",this.strings.label_generate_random),g.appendTo(s));let h,d;if(i.prepend&&o("<div>").html(i.prepend).addClass("prepend").addClass(i.clsPrepend).appendTo(l),i.prependOptions){h=o("<div>").addClass("prepend-options").appendTo(l),d=o("<select data-role='select'>").addClass("options-list"),h.append(d);for(let f of i.prependOptions.toArray(i.prependOptionsSep))o("<option>").attr("value",f).html(f).appendTo(d);this.prependOptionsList=d}if(i.append&&o("<div>").html(i.append).addClass("append").addClass(i.clsAppend).appendTo(l),i.appendOptions){h=o("<div>").addClass("append-options").appendTo(l),d=o("<select data-role='select'>").addClass("options-list"),h.append(d);for(let f of i.appendOptions.toArray(i.appendOptionsSep))o("<option>").attr("value",f).html(f).appendTo(d);this.appendOptionsList=d}let u=t.utils.isObject(i.customButtons);if(Array.isArray(u)&&o.each(u,function(){let f=o("<button>");f.addClass("button input-custom-button").addClass(i.clsCustomButton).addClass(this.cls).attr("tabindex",-1).attr("type","button").html(this.text||this.html||""),r._setAttributes(f,this.attr),this.onclick&&f.on("click",b=>{t.utils.isRightMouse(b)||t.utils.exec(this.onclick,[f[0],a[0]])}),f.appendTo(s)}),t.utils.isValue(a.attr("data-exclaim"))&&l.attr("data-exclaim",a.attr("data-exclaim")),a.attr("dir")==="rtl"&&l.addClass("rtl").attr("dir","rtl"),a[0].className="",l.addClass(i.clsComponent),a.addClass(i.clsInput),i.size!=="default"&&l.css({width:i.size}),(!t.utils.isNull(i.autocomplete)||!t.utils.isNull(i.autocompleteUrl))&&o("<div>").addClass("autocomplete-list").css({maxHeight:i.autocompleteListHeight,display:"none"}).appendTo(l),t.utils.isValue(i.autocomplete)){let f=t.utils.isObject(i.autocomplete);f!==!1?this.autocomplete=f:this.autocomplete=i.autocomplete.toArray(i.autocompleteDivider)}t.utils.isValue(i.autocompleteUrl)&&fetch(i.autocompleteUrl,{method:i.autocompleteUrlMethod}).then(f=>f.text()).then(f=>{let b=[];try{b=JSON.parse(f),i.autocompleteUrlKey&&(b=b[i.autocompleteUrlKey])}catch{b=f.split(`
242`)}r.autocomplete=r.autocomplete.concat(b)}),this._addLabel(i.label,l,{className:i.clsLabel,id:a.attr("id"),dir:a.attr("dir")}),i.badge&&l.append(o("<div>").addClass("badge").html(i.badge)),a.is(":disabled")?this.disable():this.enable(),this.component=l},_hideAutocompleteList:function(){let i=this.element.closest(".input").find(".autocomplete-list");i.length>0&&i.css({display:"none"})},_createEvents:function(){let r=this,a=this.element,i=this.options,l=a.closest(".input"),s=l.find(".autocomplete-list");l.on(t.events.click,".input-clear-button",()=>{let c=a.val();a.val(t.utils.isValue(i.defaultValue)?i.defaultValue:"").fire("clear").fire("change").fire("keyup").focus(),r._hideAutocompleteList(),r._fireEvent("clear-click",{prev:c})}),l.on(t.events.click,".input-reveal-button",()=>{a.attr("type")==="password"?a.attr("type","text"):a.attr("type","password"),r._fireEvent("reveal-click",{val:a.val()})}),l.on(t.events.click,".input-search-button",function(){i.searchButtonClick!=="submit"?r._fireEvent("search-button-click",{val:r.val(),button:this}):this.form&&this.form.submit()}),l.on(t.events.click,".input-random-button",()=>{let c=r._generateRandomValue();a.val(c).fire("change").fire("keyup").focus(),r._fireEvent("random-click",{val:c})}),a.on(t.events.keyup,c=>{if(c.keyCode===t.keyCode.ESCAPE){r._hideAutocompleteList();return}if(c.keyCode===t.keyCode.TAB){r._hideAutocompleteList();return}let A=a.val().trim();i.history&&c.keyCode===t.keyCode.ENTER&&A!==""&&(a.val(""),r.history.push(A),r.historyIndex=r.history.length-1,r._fireEvent("history-change",{val:A,history:r.history,historyIndex:r.historyIndex}),i.preventSubmit===!0&&c.preventDefault()),i.history&&c.keyCode===t.keyCode.UP_ARROW&&(r.historyIndex--,r.historyIndex>=0?(a.val(""),a.val(r.history[r.historyIndex]),r._fireEvent("history-down",{val:a.val(),history:r.history,historyIndex:r.historyIndex})):r.historyIndex=0,c.preventDefault()),i.history&&c.keyCode===t.keyCode.DOWN_ARROW&&(r.historyIndex++,r.historyIndex<r.history.length?(a.val(""),a.val(r.history[r.historyIndex]),r._fireEvent("history-up",{val:a.val(),history:r.history,historyIndex:r.historyIndex})):r.historyIndex=r.history.length-1,c.preventDefault())}),a.on(t.events.keydown,c=>{c.keyCode===t.keyCode.ENTER&&r._fireEvent("enter-click",{val:a.val()})}),a.on(t.events.blur,()=>{l.removeClass("focused")}),a.on(t.events.focus,()=>{l.addClass("focused")}),a.on(t.events.input,function(){let c=this.value.toLowerCase();r._drawAutocompleteList(c)}),l.on(t.events.click,".autocomplete-list .item",function(){let c=o(this).attr("data-autocomplete-value");a.val(c),r._hideAutocompleteList(),a.trigger("change"),r._fireEvent("autocomplete-select",{value:c})})},_generateRandomValue:function(){let r=this.options,a=r.randomSymbols.split(";"),i=Math.round(r.randomLength/a.length),l=[];for(let s of a){let c=s.split(""),A=c.length;for(let p=0;p<i;p++)l.push(c[Math.floor(Math.random()*A)])}return l.shuffle().join("")},_drawAutocompleteList:function(r){let a=this,s=this.element.closest(".input").find(".autocomplete-list");if(s.length===0)return;s.html("");let c=this.autocomplete.filter(A=>A.toLowerCase().indexOf(r)>-1);s.css({display:c.length>0?"block":"none"}),o.each(c,function(){let A=this.toLowerCase().indexOf(r),p,g=o("<div>").addClass("item").attr("data-autocomplete-value",this);A===0?p=`<strong>${this.substring(0,r.length)}</strong>${this.substring(r.length)}`:p=`${this.substring(0,A)}<strong>${this.substring(A,r.length)}</strong>${this.substring(A+r.length)}`,g.html(p).appendTo(s),a._fireEvent("draw-autocomplete-item",{item:g})})},getHistory:function(){return this.history},getHistoryIndex:function(){return this.historyIndex},setHistoryIndex:function(r){this.historyIndex=r>=this.history.length?this.history.length-1:r},setHistory:function(r,a){let i=this,l=this.options;if(!r)return;typeof r!="string"&&!Array.isArray(r)&&(console.error("History must be a string or an array!"),console.dir(r));let s=typeof r=="string"?r.toArray(l.historyDivider):r;a===!0?o.each(s,function(){i.history.push(this)}):this.history=r,this.historyIndex=this.history.length-1},clear:function(){this.element.val("")},toDefault:function(){this.element.val(t.utils.isValue(this.options.defaultValue)?this.options.defaultValue:"")},disable:function(){this.element.data("disabled",!0),this.element.parent().addClass("disabled")},enable:function(){this.element.data("disabled",!1),this.element.parent().removeClass("disabled")},toggleState:function(){this.elem.disabled?this.disable():this.enable()},setAutocompleteList:function(r){let a=t.utils.isObject(r);a!==!1?this.autocomplete=a:typeof r=="string"&&(this.autocomplete=r.toArray(this.options.autocompleteDivider))},val:function(r,a=";"){let i=this.element,l=this.options;if(!t.utils.isValue(r)){let g=i.val();
242return l.prependOptions&&(g=this.prependOptionsList.val()+g),l.appendOptions&&(g=g+this.appendOptionsList.val()),g}let s=r.split(a),c="",A="";l.prependOptions&&(c=s.shift(),t.getPlugin(this.prependOptionsList,"select").val(c)),l.appendOptions&&(A=s.pop(),t.getPlugin(this.appendOptionsList,"select").val(A));let p=s.join("");i.val(p)},prependOptionsVal:function(r){this.options.prependOptions&&(t.utils.isValue(r)||this.prependOptionsList.val(),this.prependOptionsList.val(r))},appendOptionsVal:function(r){if(this.options.appendOptions){if(!t.utils.isValue(r))return this.appendOptionsList.val();this.appendOptionsList.val(r)}},changeAttribute:function(r,a){r==="disabled"&&(a==="true"?this.disable():this.enable())},destroy:function(){let r=this.element,a=this.options,i=r.parent(),l=i.find(".input-clear-button"),s=i.find(".input-reveal-button"),c=i.find(".input-custom-button");l.length>0&&l.off(t.events.click),s.length>0&&(s.off(t.events.start),s.off(t.events.stop)),c.length>0&&l.off(t.events.click),r.off(t.events.blur),r.off(t.events.focus),a.label&&i.prev("label").remove(),i.remove()}}),o(document).on(t.events.click,()=>{o(".input .autocomplete-list").hide()})})(Metro,Dom);((t,o)=>{"use strict";let e={buttongroupDeferred:0,target:"button",clsActive:"active",requiredButton:!1,mode:t.groupMode.ONE,onButtonClick:t.noop,onGroupCreate:t.noop};t.buttonGroupSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroButtonGroupSetup<"u"&&t.buttonGroupSetup(globalThis.metroButtonGroupSetup),t.Component("button-group",{init:function(r,a){return this._super(a,r,e,{active:null,id:null}),this},_create:function(){let r=this.element;this.id=Hooks.useId(this.elem),this._createStruct(),this._createEvents(),this._fireEvent("group-create",{element:r})},_createStruct:function(){let r=this,a=this.element,i=this.options;a.addClass("button-group");let l=a.find(i.target),s=a.find(i.clsActive);i.requiredButton===!0&&s.length===0&&o(l[0]).addClass(i.clsActive).addClass("js-active"),i.mode===t.groupMode.ONE&&s.length>1&&(s.removeClass("js-active").removeClass(i.clsActive),o(s[0]).addClass("js-active").addClass(i.clsActive)),a.find(".js-active").each(function(){r._fireEvent("button-click",{button:this})})},_createEvents:function(){let r=this,a=this.element,i=this.options;a.find(i.target).on(t.events.click,function(){let l=o(this);r._fireEvent("button-click",{button:this}),!(i.mode===t.groupMode.ONE&&l.hasClass("js-active"))&&(i.mode===t.groupMode.ONE?(a.find(i.target).removeClass(i.clsActive).removeClass("js-active"),l.addClass("js-active").addClass(i.clsActive)):l.toggleClass("js-active").toggleClass(i.clsActive))})},changeAttribute:(r,a)=>{},destroy:function(){let r=this.element,a=this.options;r.off(t.events.click,a.targets),r.remove()}})})(Metro,Dom);((t,o)=>{"use strict";let e={id:"",label:"",size:"normal",selectDeferred:0,clearButton:!1,clearButtonIcon:"\u2716",usePlaceholder:!1,placeholder:"",addEmptyValue:!1,emptyValue:"",duration:0,prepend:"",append:"",filterPlaceholder:"",filter:!1,dropHeight:200,dropWidth:null,dropFullSize:!1,openMode:"auto",showGroupName:!1,shortTag:!0,source:null,sourceMethod:"GET",sourceType:"json",filterSource:null,filterThreshold:500,closeOnClear:!0,clsSelect:"",clsSelectInput:"",clsPrepend:"",clsAppend:"",clsOption:"",clsOptionActive:"",clsOptionGroup:"",clsDropList:"",clsDropContainer:"",clsSelectedItem:"",clsSelectedItemAction:"",clsLabel:"",clsGroupName:"",clsFilterInput:"",onClear:t.noop,onChange:t.noop,onUp:t.noop,onDrop:t.noop,onOptions:t.noop,onItemSelect:t.noop,onItemDeselect:t.noop,onSelectCreate:t.noop,onData:r=>r};t.selectSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroSelectSetup<"u"&&t.selectSetup(globalThis.metroSelectSetup),t.Component("select",{init:function(r,a){return this._super(a,r,e,{list:null,placeholder:null,observer:null,origin:null}),this},_create:function(){let r=this.element;this.origin=r.clone(!0,!0),this._createSelect(),this._createEvents(),this._fireEvent("select-create",{element:r})},_setPlaceholder:function(){let r=this.element,a=this.options,i=r.siblings(".select-input");a.usePlaceholder===!0&&(!t.utils.isValue(r.val())||`${r.val()}`==`${a.emptyValue}`)&&i.html(a.placeholder||this.strings.label_select_more)},_addTag:function(r,a){let i=this.element,l=this.options,s,c=i.closest(".select"),A=`<span class='title'>${r}</span>`,p=o("<div>").addClass("tag").addClass(l.shortTag?"short-tag":"").addClass(l.clsSelectedItem).html(A).data("option",a);return o("<span>").addClass("action unselect-option").addClass(l.clsSelectedItemAction).html("&times;").appendTo(p),c.hasClass("large")?s="large":c.hasClass("small")?s="small":c.hasClass("medium")&&(s="medium"),p.addClass(s),p},_addOption:function(r,a,i,l,s){let c=o(r),A,p,g=this.element,h=this.options,d=t.utils.isValue(c.attr("data-template"))?c.attr("data-template").replace("$1",r.text):r.text,u=c.attr("data-display");A=o("<li>").addClass(h.clsOption).data("option",r).attr("data-text",r.text).attr("data-value",r.value?r.value:""),p=o("<a>").html(d);let f=c.attr("data-icon");if(f&&p.prepend(o("<span>").addClass("icon").html(f)),u&&(A.attr("data-display",u),d=u),A.addClass(r.className),A.data("group",s),c.is(":disabled")&&A.addClass("disabled"),c.is(":selected")){let b="";h.showGroupName&&s&&(b=`&nbsp;<span class='selected-item__group-name ${h.clsGroupName}'>${s}</span>`),l?(A.addClass("d-none"),i.append(this._addTag(p.html()+b,A))):(d=p.html()+b,g.val(r.value),i.html(d),g.fire("change",{val:r.value}),A.addClass("active"))}A.append(p).appendTo(a)},_addOptionGroup:function(r,a,i,l){let s=this,c=this.options,A=o(r);o("<li>").html(r.label).addClass("group-title").addClass(c.clsOptionGroup).appendTo(a),o.each(A.children(),function(){s._addOption(this,a,i,l,r.label)})},_createOptions:function(){let r=this,a=this.element,i=this.options,s=a.parent().find("ul").empty(),c=a.find("option[selected]").length>0,A=a[0].multiple,p=a.siblings(".select-input");a.siblings(".select-input").empty(),i.addEmptyValue===!0&&a.prepend(o(`<option ${c?"":"selected"} value='${i.emptyValue}' class='d-none'></option>`)),o.each(a.children(),function(){this.tagName==="OPTION"?r._addOption(this,s,p,A,null):this.tagName==="OPTGROUP"&&r._addOptionGroup(this,s,p,A)}),this._fireEvent("options",{selected:this.getSelected()})},_createSelect:async function(){let r=this.element,a=this.options,i=r.wrap("<label>"),l=r[0].multiple,s=Hooks.useId(i[0]),c=o("<div>").addClass("button-group"),A,p,g=Hooks.useId("select-focus-trigger"),h=o("<input type='checkbox'>").addClass("select-focus-trigger").attr("id",g);this.placeholder=o("<span>").addClass("placeholder").html(a.placeholder),i.attr("id",a.id?a.id:s).attr("for",g),i[0].className=t.utils.classNames(r[0].className,`input-${a.size}`,"select",a.clsSelect),o("<span>").addClass("dropdown-toggle").appendTo(i),l&&i.addClass("multiple"),c.appendTo(i),h.appendTo(i);let u=o("<div>").addClass("select-input").addClass(a.clsSelectInput).attr("name",`__${s}__`);A=o("<div>").addClass("drop-container").addClass(a.clsDropContainer),a.dropFullSize===!1?a.dropWidth&&A.css({width:+a.dropWidth}):i.addClass("drop-full-size"),p=o("<div>").appendTo(A);let f=o("<ul>").addClass("option-list").addClass(a.clsDropList).css({"max-height":a.dropHeight});if(o(`<input type='text' data-role='input' data-clear-button-icon="${a.clearButtonIcon}">`).attr("placeholder",a.filterPlaceholder||`${this.strings.label_filter}...`).appendTo(p).addClass(a.clsFilterInput),i.append(u),i.append(A),A.append(p),a.filter!==!0&&p.hide(),A.a
242ppend(f),a.source&&await this.fetch(a.source,{method:a.sourceMethod||"GET",headers:{"Content-Type":`application/${a.sourceType||"json"}`}}),this._createOptions(),this._setPlaceholder(),this._createDroppable(A),this.list=f,a.clearButton===!0&&!r[0].readOnly?o("<button>").addClass("button input-clear-button").addClass(a.clsClearButton).attr("tabindex",-1).attr("type","button").html(a.clearButtonIcon).appendTo(c):c.addClass("d-none"),a.prepend!==""&&!l&&o("<div>").html(a.prepend).addClass("prepend").addClass(a.clsPrepend).appendTo(i),a.append!==""&&!l&&o("<div>").html(a.append).addClass("append").addClass(a.clsAppend).appendTo(i),r.attr("dir")==="rtl"&&i.addClass("rtl").attr("dir","rtl"),a.label){let I=o("<label>").addClass("label-for-input").addClass(a.clsLabel).html(a.label).insertBefore(i);r.attr("id")?I.attr("for",r.attr("id")):I.attr("for",g),r.attr("dir")==="rtl"&&I.addClass("rtl")}r.is(":disabled")?this.disable():this.enable(),this.observer=new MutationObserver(this._updateSelect.bind(this)),this.observer.observe(r[0],{childList:!0,subtree:!0})},_createDroppable:function(r){let a=this.options,i=r.find("input"),l=this.element.closest(".select"),s=r.siblings(".dropdown-caret"),c=r.find("ul");t.makePlugin(r,"dropdown",{dropFilter:".select",duration:a.duration,toggleElement:[l],openMode:a.openMode,onDrop:()=>{let A;s.addClass("active-toggle");let p=o(".select .drop-container");o.each(p,function(){let g=o(this);if(g.is(r))return;let h=t.getPlugin(g,"dropdown");h?.close&&h.close()}),i.val("").trigger(t.events.keyup),A=c.find("li.active").length>0?o(c.find("li.active")[0]):void 0,A!==void 0&&(c[0].scrollTop=A.position().top-(c.height()-A.height())/2),this._fireEvent("drop",{list:c[0]})},onUp:()=>{s.removeClass("active-toggle"),this._fireEvent("up",{list:c[0]})}})},_updateSelect:function(r){for(let a of r)a.type==="childList"&&(a.addedNodes.length||a.removedNodes.length)&&this._createOptions()},_createEvents:function(){let r=this,a=this.element,i=this.options,l=a.closest(".select"),s=l.find(".drop-container"),c=a.siblings(".select-input"),A=s.find("input"),p=s.find("ul"),g=l.find(".input-clear-button"),h=l.find(".select-focus-trigger");h.on("focus",()=>{l.addClass("focused")}),h.on("blur",()=>{l.removeClass("focused")}),g.on(t.events.click,u=>{u.preventDefault(),u.stopPropagation(),r.clear()}),a.on(t.events.change,()=>{r._setPlaceholder()}),l.on(t.events.click,()=>{o(".focused").removeClass("focused"),l.addClass("focused")}),c.on(t.events.click,()=>{o(".focused").removeClass("focused"),l.addClass("focused")}),p.on(t.events.click,"li",function(u){if(o(this).hasClass("group-title")){u.preventDefault(),u.stopPropagation();return}let f=o(this),b=f.attr("data-display"),I=f.data("value"),D=f.data("group"),C=b||f.children("a").html(),Y=f.data("option"),x=a.find("option");i.showGroupName&&D&&(C+=`&nbsp;<span class='selected-item__group-name ${i.clsGroupName}'>${D}</span>`),a[0].multiple?(f.addClass("d-none"),c.append(r._addTag(C,f))):(p.find("li.active").removeClass("active").removeClass(i.clsOptionActive),f.addClass("active").addClass(i.clsOptionActive),c.html(C),t.getPlugin(s,"dropdown").close()),o.each(x,function(){this===Y&&(this.selected=!0)}),r._fireEvent("item-select",{val:I,option:Y,leaf:f[0]});let v=r.getSelected();r._fireEvent("change",{selected:v})}),c.on("click",".tag .action",function(u){let f=o(this).closest(".tag"),b=f.data("option"),I=b.data("option");b.removeClass("d-none"),o.each(a.find("option"),function(){this===I&&(this.selected=!1)}),f.remove(),r._fireEvent("item-deselect",{option:I});let D=r.getSelected();r._fireEvent("change",{selected:D}),u.preventDefault(),u.stopPropagation()});let d=Hooks.useDebounce(async u=>{let f=this.options,b=this.list,I=u.target.value.toLowerCase(),D=`${f.filterSource}${I}`;if(f.filterSource)await this.fetch(D,{method:f.sourceMethod||"GET",headers:{"Content-Type":`application/${f.sourceType||"json"}`}},!0);else{let C=b.find("li"),Y,x,v;for(Y=0;Y<C.length;Y++)o(C[Y]).hasClass("group-title")||(x=C[Y].getElementsByTagName("a")[0],v=x.innerHTML||x.innerText,v.toLowerCase().includes(I)?C[Y].style.display="":C[Y].style.display="none")}},i.filterThreshold);A.on(t.events.keyup,d.bind(this)),A.on(t.events.click,u=>{u.preventDefault(),u.stopPropagation()}),s.on(t.events.click,u=>{u.preventDefault(),u.stopPropagation()})},_clearOptions:function(){this.element.clear(),this.list.clear()},disable:function(){this.element.data("disabled",!0),this.element.closest(".select").addClass("disabled")},enable:function(){this.element.data("disabled",!1),this.element.closest(".select").removeClass("disabled")},toggleState:function(){this.elem.disabled?this.disable():this.enable()},reset:function(){this.observer.disconnect(),this.element.clear();for(let r of this.origin.children())this.element.append(r.cloneNode(!0));return this._createOptions(),this.observer.observe(this.elem,{childList:!0,subtree:!0}),this._fireEvent("reset"),this},getSelected:function(){let r=this.element,a=[];return r.find("option").each(function(){this.selected&&a.push(this.value)}),a},val:function(r){let a=this.element,i=this.options,l=a.siblings(".select-input"),s=a.find("option"),c=this.list.find("li"),A=[],p=!!a.attr("multiple"),g,h,d="",u,f,b;if(t.utils.isNull(r))return o.each(s,function(){this.selected&&A.push(this.value)}),p?A:A[0];o.each(s,function(){this.selected=!1}
242),c.removeClass("active").removeClass("d-none").removeClass(i.clsOptionActive),l.html("");let I=Array.isArray(r)?r:[r];o.each(I,(D,C)=>{for(g of s)if(d=g.getAttribute("data-template")?g.getAttribute("data-template").replace("$1",g.text):g.text,g.getAttribute("data-icon")&&(d=`<span class='icon'>${g.getAttribute("data-icon")}</span>`+d),`${g.value}`==`${C}`){g.selected=!0;break}for(h=0;h<c.length;h++)if(u=o(c[h]),b=u.data("group"),f=u.attr("data-value"),`${f}`==`${C}`){i.showGroupName&&b&&(d+=`&nbsp;<span class='selected-item__group-name'>${b}</span>`),a[0].multiple?(u.addClass("d-none"),l.append(this._addTag(d,u))):(u.addClass("active").addClass(i.clsOptionActive),l.html(d));break}}),this._fireEvent("change",{selected:this.getSelected()})},options:function(r,a,i){return this.data(r,a,i)},data:function(r,a,i){let l=this.element,s,c,A=i||",";return typeof a=="string"?c=a.toArray(A).map(p=>isNaN(p)?p:+p):Array.isArray(a)?c=a.slice().map(p=>isNaN(p)?p:+p):c=[],this.observer.disconnect(),l.empty(),typeof r=="string"?l.html(r):t.utils.isObject2(r)&&o.each(r,(p,g)=>{if(t.utils.isObject2(g))s=o("<optgroup label=''>").attr("label",p).appendTo(l),o.each(g,(h,d)=>{let u=o("<option>").attr("value",h).text(d).appendTo(s);c.indexOf(+h)>-1&&u.prop("selected",!0)});else{let h=o("<option>").attr("value",p).text(g).appendTo(l);c.indexOf(p)>-1&&h.prop("selected",!0)}}),this._createOptions(),this.observer.observe(l[0],{childList:!0,subtree:!0}),this},addOption:function(r,a,i){let l=this.element,s=o("<option>").attr("value",r).text(a||r);return l.append(s),i&&(l[0].multiple||l.find("option").prop("selected",!1),s.prop("selected",!0)),this},addOptions:function(r){let a=this.element,i=this;return r?(this.observer.disconnect(),Array.isArray(r)?o.each(r,function(){t.utils.isObject2(this)?i.addOption(this.val,this.title,this.selected):i.addOption(this)}):t.utils.isObject2(r)&&o.each(r,(l,s)=>{i.addOption(l,s)}),this._createOptions(),this.observer.observe(a[0],{childList:!0,subtree:!0}),this):this},removeOption:function(r){return this.element.find("option").each(function(){let l=o(this);`${l.attr("value")}`==`${r}`&&l.remove()}),this._createOptions(),this},removeOptions:function(r){let i=this.element.find("option");return!r||!Array.isArray(r)?this:(i.each(function(){let l=o(this),s=l.attr("value");r.indexOf(s)>-1&&l.remove()}),this._createOptions(),this)},fetch:async function(r,a,i=!1){let l=this.element,s=this.options,c=Object.assign({method:"GET",headers:{"Content-Type":`application/${s.sourceType}`}},a),A=await fetch(r,c);if(A.ok===!1)return;i&&this._clearOptions();let p=s.sourceType==="json"?await A.json():await A.text();p=t.utils.exec(s.onData,[p],l[0]),o.each(p,function(){let g=typeof this.text>"u"?this.value:this.text,h=typeof this.value>"u"?this.text:this.value,d=o("<option>").attr("value",h).html(g);this.icon&&d.attr("data-icon",this.icon),this.selected&&d.prop("selected",!0),d.appendTo(l)})},clear:function(){let r=this.element,a=this.options,i=r.siblings(".select-input"),l=r.siblings(".drop-container"),s=l.find("ul");r.val(a.emptyValue),r[0].multiple&&(s.find("li").removeClass("d-none"),a.closeOnClear&&l.data("dropdown").close()),i.clear(),this._setPlaceholder(),this._fireEvent("clear")},changeAttribute:function(r,a){r==="disabled"&&(a==="true"?this.disable():this.enable())},destroy:function(){let r=this.element,a=this.options,i=r.closest(".select"),l=i.find(".drop-container"),s=r.siblings(".select-input"),c=l.find("input"),A=l.find("ul"),p=i.find(".input-clear-button");i.off(t.events.click),i.off(t.events.click,".input-clear-button"),s.off(t.events.click),c.off(t.events.blur),c.off(t.events.focus),A.off(t.events.click,"li"),c.off(t.events.keyup),l.off(t.events.click),p.off(t.events.click),l.data("dropdown").destroy(),a.label&&i.prev("label").remove(),i.remove()}}),o(document).on(t.events.click,()=>{o(".select").removeClass("focused")},{ns:"blur-select-elements"})})(Metro,Dom);((t,o)=>{"use strict";let e={init:function(){return this},options:{csvDelimiter:"	",csvNewLine:`\r
243`,includeHeader:!0},setup:function(r){return this.options=o.extend({},this.options,r),this},base64:r=>globalThis.btoa(unescape(encodeURIComponent(r))),b64toBlob:(r,a="",i=512)=>{let l=globalThis.atob(r),s=[],c;for(c=0;c<l.length;c+=i){let A=l.slice(c,c+i),p=new Array(A.length);for(let h=0;h<A.length;h=h+1)p[h]=A.charCodeAt(h);let g=new globalThis.Uint8Array(p);s.push(g)}return new Blob(s,{type:a})},tableToCSV:function(r,a,i){let l,s,c,A="",p,g;l=o.extend({},this.options,i);let h=o(r)[0];if(t.utils.bool(l.includeHeader)){c=h.querySelectorAll("thead")[0];for(let d=0;d<c.rows.length;d++){p=c.rows[d];for(let u=0;u<p.cells.length;u++)g=p.cells[u],A+=(u?l.csvDelimiter:"")+g.textContent.trim();A+=l.csvNewLine}}s=h.querySelectorAll("tbody")[0];for(let d=0;d<s.rows.length;d++){p=s.rows[d];for(let u=0;u<p.cells.length;u++)g=p.cells[u],A+=(u?l.csvDelimiter:"")+g.textContent.trim();A+=l.csvNewLine}return t.utils.isValue(a)?this.createDownload(this.base64(`\uFEFF${A}`),"application/csv",a):A}
243,createDownload:function(r,a,i){let l=document.createElement("a");l.style.display="none",document.body.appendChild(l);let s=this.b64toBlob(r,a),c=globalThis.URL.createObjectURL(s);return l.href=c,l.download=i||Hooks.useId(l),l.click(),globalThis.URL.revokeObjectURL(c),document.body.removeChild(l),!0},arrayToCsv:function(r,a,i){let l,s="",c,A;for(l=o.extend({},this.options,i),c=0;c<r.length;c++)A=r[c],typeof A!="object"?s+=A+l.csvNewLine:(o.each(A,(p,g)=>{s+=(p?l.csvDelimiter:"")+g.toString()}),s+=l.csvNewLine);return t.utils.isValue(a)?this.createDownload(this.base64(`\uFEFF${s}`),"application/csv",a):s}};t.export=e.init()})(Metro,Dom);var Vn={title:void 0,format:void 0,formatMask:void 0,name:void 0,colspan:null,size:void 0,sortable:!1,sortDir:void 0,clsColumn:void 0,cls:void 0,show:!0,required:!0,field:void 0,fieldType:void 0,validator:void 0,template:void 0,type:"data"};((t,o)=>{"use strict";let e={caption:"",useCurrentSlice:!1,showInspectorButton:!1,inspectorButtonIcon:"\u{1F527}",tableDeferred:0,templateBeginToken:"<%",templateEndToken:"%>",paginationDistance:5,paginationIslandSize:3,paginationShortTrack:10,horizontalScroll:!1,horizontalScrollStop:null,check:!1,checkType:"checkbox",checkColIndex:0,checkName:null,checkStoreKey:"TABLE:$1:KEYS",rownum:!1,rownumTitle:"#",filters:null,filtersOperator:"and",head:null,body:null,source:null,static:!1,searchMinLength:1,searchThreshold:500,searchFields:null,showRowsSteps:!0,showSearch:!0,showTableInfo:!0,showPagination:!0,paginationShortMode:!0,showActivity:!0,muteTable:!0,showSkip:!1,rows:10,rowsSteps:"10,25,50,100",staticView:!1,viewSaveMode:"client",viewSavePath:"TABLE:$1:OPTIONS",sortDir:"asc",decimalSeparator:".",thousandSeparator:",",tableRowsCountTitle:null,tableSearchTitle:null,tableSearchPlaceholder:"",tableInfoTitle:null,paginationPrevTitle:null,paginationNextTitle:null,allRecordsTitle:null,inspectorTitle:null,tableSkipTitle:null,emptyTableTitle:null,activityType:"atom",activityStyle:"color",activityTimeout:100,searchWrapper:null,rowsWrapper:null,infoWrapper:null,paginationWrapper:null,skipWrapper:null,cellWrapper:!0,clsComponent:"",clsTableContainer:"",clsTable:"",clsHead:"",clsHeadRow:"",clsHeadCell:"",clsBody:"",clsBodyRow:"",clsBodyCell:"",clsCellWrapper:"",clsFooter:"",clsFooterRow:"",clsFooterCell:"",clsTableTop:"",clsRowsCount:"",clsSearch:"",clsTableBottom:"",clsTableInfo:"",clsTablePagination:"",clsPagination:"",clsTableSkip:"",clsTableSkipInput:"",clsTableSkipButton:"",clsEvenRow:"",clsOddRow:"",clsRow:"",clsEmptyTableTitle:"",onDraw:t.noop,onDrawRow:t.noop,onDrawCell:t.noop,onAppendRow:t.noop,onAppendCell:t.noop,onSortStart:t.noop,onSortStop:t.noop,onSortItemSwitch:t.noop,onSearch:t.noop,onRowsCountChange:t.noop,onDataLoad:t.noop,onDataLoadError:t.noop,onDataLoaded:t.noop,onDataLoadEnd:t.noop,onDataSaveError:t.noop,onFilterRowAccepted:t.noop,onFilterRowDeclined:t.noop,onCheckClick:t.noop,onCheckClickAll:t.noop,onCheckDraw:t.noop,onViewSave:t.noop,onViewGet:t.noop,onViewCreated:t.noop,onTableCreate:t.noop,onSkip:t.noop,onDrawHead:t.noop,onDrawFoot:t.noop,onDrawBody:t.noop,onInspectorOpen:t.noop,onInspectorClose:t.noop,onFieldShow:t.noop,onFieldHide:t.noop,onFieldToggle:t.noop,onFieldMove:t.noop,onSort:t.noop,onPageChange:t.noop,onRowClick:t.noop,onRowDblClick:t.noop,onCellClick:t.noop,onCellDblClick:t.noop};t.tableSetup=r=>{e=o.extend({},e,r)},typeof globalThis.metroTableSetup<"u"&&t.tableSetup(globalThis.metroTableSetup),t.Component("table",{init:function(r,a){return this._super(a,r,e,{currentPage:1,pagesCount:1,searchString:"",data:null,activity:null,loadActivity:null,busy:!1,filters:[],wrapperInfo:null,wrapperSearch:null,wrapperRows:null,wrapperPagination:null,wrapperSkip:null,filterIndex:null,filtersIndexes:[],component:null,inspector:null,view:{},viewDefault:{},input_interval:null,searchFields:[],id:null,sort:{dir:"asc",colIndex:0},service:[],heads:[],items:[],foots:[],filteredItems:[],currentSlice:[],index:{}}),this},_create:function(){let r=this.element,a=this.options,i=Hooks.useId(this.elem),l;if(r.id()||(console.warn("To use all table component features, please set an ID for the table element!"),r.id(i)),t.utils.isValue(a.searchFields)&&(this.searchFields=a.searchFields.toArray()),t.utils.isValue(a.head)){let A=a.head;a.head=t.utils.isObject(a.head),a.head||(console.warn(`Head ${A} defined but not exists!`),a.head=null)}if(t.utils.isValue(a.body)){let A=a.body;a.body=t.utils.isObject(a.body),a.body||(console.warn(`Body ${A} defined but not exists!`),a.body=null)}a.static===!0&&(a.showPagination=!1,a.showRowsSteps=!1,a.showSearch=!1,a.showTableInfo=!1,a.showSkip=!1,a.rows=-1);let s=o("<div>").addClass("table-component");s.insertBefore(r),l=o("<div>").addClass("table-container").addClass(a.clsTableContainer).appendTo(s),r.appendTo(l),a.horizontalScroll===!0&&l.addClass("horizontal-scroll"),!t.utils.isNull(a.horizontalScrollStop)&&t.utils.mediaExist(a.horizontalScrollStop)&&l.removeClass("horizontal-scroll"),s.addClass(a.clsComponent),this.activity=o("<div>").addClass("table-progress").appendTo(s);let c=o("<div>").appendTo(this.activity);if(t.makePlugin(c,"activity",{type:a.activityType,style:a.activityStyle}),a.showActivity!==!0&&this.activity.css({visibility:"hidden"}),this.component=s[0],a.source!==null){this._fireEvent("data-load",{source:a.source});let A=t.utils.isObject(a.source);A!==!1&&o.isPlainObject(A)?this._build(A):this.activity.show(()=>{fetch(a.source).then(t.fetch.status).then(t.fetch.json).then(p=>{if(this.activity.hide(),typeof p!="object")throw new Error("Data for table is not a object");this._fireEvent("data-loaded",{source:a.source,data:p}),this._build(p)}).catch(p=>{this.activity.hide(),this._fireEvent("data-load-error",{source:a.source,error:p})})})}else this._build()},_createIndex:function(){let r=this.options.checkColIndex;setImmediate(()=>
243{this.items.forEach((a,i)=>{this.index[a[r]]=i})})},_build:function(r){let a=this.element,i=this.options,l,s=a.attr("id"),c;i.rows=+i.rows,this.items=[],this.heads=[],this.foots=[],Array.isArray(i.head)&&(this.heads=i.head),Array.isArray(i.body)&&(this.items=i.body),t.utils.isValue(r)?this._createItemsFromJSON(r):this._createItemsFromHTML(),this._createIndex(),this.view=this._createView(),this.viewDefault=t.utils.objectClone(this.view),c=i.viewSavePath.replace("$1",s),i.viewSaveMode.toLowerCase()==="client"?(l=t.storage.getItem(c),t.utils.isValue(l)&&t.utils.objectLength(l)===t.utils.objectLength(this.view)&&(this.view=l,this._fireEvent("view-get",{source:"client",view:l})),this._final()):fetch(c).then(t.fetch.status).then(t.fetch.json).then(A=>{t.utils.isValue(A)&&t.utils.objectLength(A)===t.utils.objectLength(this.view)&&(this.view=A,this._fireEvent("view-get",{source:"server",view:A})),this._final()}).catch(A=>{this._final(),console.warn(`Warning! Error loading view for table ${a.attr("id")}: ${A}`)})},_final:function(){let r=this.element,a=this.options,i=r.attr("id");this._service(),this._createStructure(),this._createInspector(),this._createEvents(),this._fireEvent("table-create",{element:r})},_service:function(){let r=this.options;this.service=[{...Vn,title:r.rownumTitle,clsColumn:`rownum-cell ${r.rownum!==!0?"d-none":""}`,cls:`rownum-cell ${r.rownum!==!0?"d-none":""}`,type:"rownum"},{...Vn,title:r.checkType==="checkbox"?`<input type='checkbox' data-role='checkbox' class='table-service-check-all' data-style='${r.checkStyle}'>`:"",clsColumn:`check-cell ${r.check!==!0?"d-none":""}`,cls:`check-cell ${r.check!==!0?"d-none":""}`,type:"rowcheck"}]},_createView:function(){let r={};return o.each(this.heads,function(a){t.utils.isValue(this.cls)&&(this.cls=this.cls.replace("hidden","")),t.utils.isValue(this.clsColumn)&&(this.clsColumn=this.clsColumn.replace("hidden","")),r[a]={index:a,"index-view":a,show:t.utils.isValue(this.show)?this.show:!0,size:t.utils.isValue(this.size)?this.size:""}}),this._fireEvent("view-created",{view:r}),r},_createInspectorItems:function(r){let a=this,i=this.options,l,s=[],c,A=this.heads;for(r.html(""),l=0;l<A.length;l++)s[l]=null;for(o.each(A,function(p){c=o("<tr>"),c.data("index",p),c.data("index-view",p),o("<td>").html(`<input type='checkbox' data-style='${i.checkStyle}' data-role='checkbox' name='column_show_check[]' value='${p}' ${t.utils.bool(a.view[p].show)?"checked":""}>`).appendTo(c),o("<td>").html(`<div>${this.title}</div>`).appendTo(c),o("<td>").html(`<input type='number' data-role='spinner' name='column_size' value='${a.view[p].size}' data-index='${p}'>`).appendTo(c),o("<td>").html("<button class='button square js-table-inspector-field-up' type='button'>\u2191</button><button class='button square js-table-inspector-field-down' type='button'>\u2193</button>").appendTo(c),s[a.view[p]["index-view"]]=c}),l=0;l<A.length;l++)s[l].appendTo(r)},_createInspector:function(){let r=this.options,a=this.strings,i=o("<div data-role='draggable' data-drag-element='.table-inspector-header' data-drag-area='body'>").addClass("table-inspector");i.attr("for",this.element.attr("id")),o(`<div class='table-inspector-header'>${r.inspectorTitle||a.label_inspector}</div>`).appendTo(i);let l=o("<div>").addClass("table-wrap").appendTo(i),s=o("<table>").addClass("table subcompact"),c=o("<tbody>").appendTo(s);s.appendTo(l),this._createInspectorItems(c);let A=o("<div class='table-inspector-actions'>").appendTo(i);o("<button class='button primary js-table-inspector-save' type='button'>").html(a.label_save).appendTo(A),o("<button class='button secondary js-table-inspector-reset ml-2 mr-2' type='button'>").html(a.label_reset).appendTo(A),o("<button class='button link js-table-inspector-cancel place-right' type='button'>").html(a.label_cancel).appendTo(A),i.data("open",!1),this.inspector=i,o("body").append(i),this._createInspectorEvents()},_resetInspector:function(){let a=this.inspector.find("table tbody");this._createInspectorItems(a),this._createInspectorEvents()},_createHeadsFromHTML:function(){let r=this,i=this.element.find("thead");i.length>0&&o.each(i.find("tr > *"),function(){let l=o(this),s,c;if(l.hasClass("rownum-cell")||l.hasClass("check-cell"))return;
243t.utils.isValue(l.data("sort-dir"))?s=l.data("sort-dir"):l.hasClass("sort-asc")?s="asc":l.hasClass("sort-desc")?s="desc":s=void 0,c=l[0].className.replace("sortable-column",""),c=c.replace("sort-asc",""),c=c.replace("sort-desc",""),c=c.replace("hidden","");let A={type:"data",title:l.html(),name:t.utils.isValue(l.data("name"))?l.data("name"):l.text().replace(" ","_"),sortable:l.hasClass("sortable-column")||t.utils.isValue(l.data("sortable"))&&JSON.parse(l.data("sortable"))===!0,sortDir:s,format:t.utils.isValue(l.data("format"))?l.data("format"):"string",formatMask:t.utils.isValue(l.data("format-mask"))?l.data("format-mask"):null,clsColumn:t.utils.isValue(l.data("cls-column"))?l.data("cls-column"):"",cls:c,colspan:l.attr("colspan"),size:t.utils.isValue(l.data("size"))?l.data("size"):"",show:!(l.hasClass("hidden")||t.utils.isValue(l.data("show"))&&JSON.parse(l.data("show"))===!1),required:t.utils.isValue(l.data("required"))?JSON.parse(l.data("required"))===!0:!1,field:t.utils.isValue(l.data("field"))?l.data("field"):"input",fieldType:t.utils.isValue(l.data("field-type"))?l.data("field-type"):"text",validator:t.utils.isValue(l.data("validator"))?l.data("validator"):null,template:t.utils.isValue(l.data("template"))?l.data("template"):null};r.heads.push(A)})},_createFootsFromHTML:function(){let r=this,i=this.element.find("tfoot");i.length>0&&o.each(i.find("tr > *"),function(){let l=o(this),s={title:l.html(),name:t.utils.isValue(l.data("name"))?l.data("name"):!1,cls:l[0].className,colspan:l.attr("colspan")};r.foots.push(s)})},_createItemsFromHTML:function(){let r=this,i=this.element.find("tbody");i.length>0&&o.each(i.find("tr"),function(){let l=o(this),s=[];o.each(l.children("td"),function(){let c=o(this);s.push(c.html())}),r.items.push(s)}),this._createHeadsFromHTML(),this._createFootsFromHTML()},_createItemsFromJSON:function(r){let a=this,i=typeof r=="string"?JSON.parse(r):r;i.header!==void 0?a.heads=i.header:this._createHeadsFromHTML(),i.data!==void 0&&o.each(i.data,function(){let l=[];o.each(this,function(){l.push(this)}),a.items.push(l)}),i.footer!==void 0?this.foots=i.footer:this._createFootsFromHTML()},_createTableHeader:function(){let r=this.element,a=this.options,i=r.find("thead"),l,s,c=[],A,p,g=a.staticView?this._createView():this.view;if(i.length===0&&(i=o("<thead>"),r.prepend(i)),i.clear().addClass(a.clsHead),a.caption&&i.prev("caption").length===0&&o("<caption>").html(a.caption).insertBefore(i),this.heads.length===0)return i;for(l=o("<tr>").addClass(a.clsHeadRow).appendTo(i),o.each(this.service,function(){let h=[],d=o("<th>");t.utils.isValue(this.title)&&d.html(this.title),t.utils.isValue(this.size)&&d.css({width:this.size}),t.utils.isValue(this.cls)&&h.push(this.cls),h.push(a.clsHeadCell),d.addClass(h.join(" ")),l.append(d)}),p=this.heads,A=0;A<p.length;A++)c[A]=null;for(o.each(p,function(h){let d=[],u=o("<th>");u.data("index",h),t.utils.isValue(this.title)&&u.html(this.title),t.utils.isValue(this.format)&&u.attr("data-format",this.format),t.utils.isValue(this.formatMask)&&u.attr("data-format-mask",this.formatMask),t.utils.isValue(this.name)&&u.attr("data-name",this.name),t.utils.isValue(this.colspan)&&u.attr("colspan",this.colspan),t.utils.isValue(this.size)&&u.attr("data-size",this.size),t.utils.isValue(this.sortable)&&u.attr("data-sortable",this.sortable),t.utils.isValue(this.sortDir)&&u.attr("data-sort-dir",this.sortDir),t.utils.isValue(this.clsColumn)&&u.attr("data-cls-column",this.clsColumn),t.utils.isValue(this.cls)&&u.attr("data-cls",this.cls),t.utils.isValue(this.show)&&u.attr("data-show",this.show),t.utils.isValue(this.required)&&u.attr("data-required",this.required),t.utils.isValue(this.field)&&u.attr("data-field",this.field),t.utils.isValue(this.fieldType)&&u.attr("data-field-type",this.fieldType),t.utils.isValue(this.validator)&&u.attr("data-validator",this.validator),t.utils.isValue(this.template)&&u.attr("data-template",this.template),t.utils.isValue(g[h].size)&&u.css({width:g[h].size}),this.sortable===!0&&(d.push("sortable-column"),t.utils.isValue(this.sortDir)&&d.push(`sort-${this.sortDir}`)),t.utils.isValue(this.cls)&&o.each(this.cls.toArray(),function(){d.push(this)}),t.utils.bool(g[h].show)===!1&&d.indexOf("hidden")===-1&&d.push("hidden"),d.push(a.clsHeadCell),t.utils.bool(g[h].show)&&t.utils.arrayDelete(d,"hidden"),u.addClass(d.join(" ")),c[g[h]["index-view"]]=u}),A=0;A<p.length;A++)c[A].appendTo(l);this._fireEvent("draw-head",{head:i})},_createTableBody:function(){let r,a,i=this.element;a=i.find("thead"),r=i.find("tbody"),r.length===0&&(r=o("<tbody>").addClass(this.options.clsBody),a.length!==0?r.insertAfter(a):i.append(r)),r.clear()},_createTableFooter:function(){let r=this.element,a=this.options,i=r.find("tfoot"),l;if(i.length===0&&(i=o("<tfoot>").appendTo(r)),i.clear().addClass(a.clsFooter),this.foots.length===0)return;let s=o("<tr>").addClass(a.clsHeadRow).appendTo(i);o.each(this.foots,function(){l=o("<th>").appendTo(s),this.title&&l.html(this.title),this.name&&l.addClass(`foot-column-name-${this.name}`),this.cls&&l.addClass(this.cls),t.utils.isValue(this.colspan)&&l.attr("colspan",this.colspan),l.appendTo(s)}),this._fireEvent("draw-foot",{foot:i})},_createTopBlock:function(){let r=this.element,a=this.options,i=this.strings,l=o("<div>").addClass("table-top").addClass(a.clsTableTop).insertBefore(r.parent()),s,c;s=t.utils.isValue(this.wrapperSearch)?this.wrapperSearch:o("<div>").addClass("table-search-block").addClass(a.clsSearch).appendTo(l),s.addClass(a.clsSearch);let A=o("<input>").attr("type","text").attr("placeholder",a.tableSearchPlaceholder).appendTo(s);t.makePlugin(A,"input",{prepend:a.tableSearchTitle||i.label_search}),a.showSearch!==!0&&s.hide(),c=t.utils.isValue(this.wrapperRows)?this.wrapperRows:o("<div>").addClass("table-rows-block").appendTo(l),c.addClass(a.clsRowsCount);let p=o("<select>").appendTo(c);return o.each(a.rowsSteps.toArray(),function(){let g=Number.parseInt(this),h=o("<option>").attr("value",g).text(g===-1?a.allRecordsTitle||i.label_all:g).appendTo(p);g===Number.parseInt(a.rows)&&h.attr("selected","selected")}),t.makePlugin(p,"select",{filter:!1,prepend:a.tableRowsCountTitle||i.label_rows_count,onChange:g=>{Number.parseInt(g)!==a.rows&&(a.rows=g,this.currentPage=1,this._draw(),this._fireEvent("rows-count-change",{val:g}))}}),a.showInspectorButton&&o("<button>").addClass("button inspector-button").attr("type","button").html(a.inspectorButtonIcon).insertAfter(c),a.showRowsSteps!==!0&&c.hide(),l},_createBottomBlock:function(){let r=this.element,a=this.options,i=this.strings,l=o("<div>").addClass("table-bottom").addClass(a.clsTableBottom).insertAfter(r.parent()),s,c,A;return s=t.utils.isValue(this.wrapperInfo)?this.wrapperInfo:o("<div>").addClass("table-info").appendTo(l),s.addClass(a.clsTableInfo),a.showTableInfo!==!0&&s.hide(),c=t.utils.isValue(this.wrapperPagination)?this.wrapperPagination:o("<div>").addClass("table-pagination").appendTo(l),c.addClass(a.clsTablePagination),a.showPagination!==!0&&c.hide(),A=t.utils.isValue(this.wrapperSkip)?this.wrapperSkip:o("<div>").appendTo(l),A.addClass("table-skip").addClass(a.clsTableSkip),o(`<input type='text' data-role='input' placeholder="${i.label_enter_page}">`).addClass("table-skip-input").addClass(a.clsTableSkipInput).appendTo(A),o("<button>").addClass("button table-skip-button").addClass(a.clsTableSkipButton).html(a.tableSkipTitle||i.label_goto_page).appendTo(A),a.showSkip!==!0&&A.hide(),l},_createStructure:function(){let r=this,a=this.element,i=this.options,l,s=o(i.searchWra
243pper),c=o(i.infoWrapper),A=o(i.rowsWrapper),p=o(i.paginationWrapper),g=o(i.skipWrapper);s.length>0&&(this.wrapperSearch=s),c.length>0&&(this.wrapperInfo=c),A.length>0&&(this.wrapperRows=A),p.length>0&&(this.wrapperPagination=p),g.length>0&&(this.wrapperSkip=g),a.addClass(i.clsTable),this._createTableHeader(),this._createTableBody(),this._createTableFooter(),this._createTopBlock(),this._createBottomBlock();let h=!1;this.heads.length>0&&o.each(this.heads,function(u){!h&&["asc","desc"].indexOf(this.sortDir)>-1&&(h=!0,r.sort.colIndex=u,r.sort.dir=this.sortDir)}),h&&(l=a.find("thead th"),this._resetSortClass(l),o(l.get(this.sort.colIndex+r.service.length)).addClass(`sort-${this.sort.dir}`),this.sorting());let d;t.utils.isValue(i.filters)&&typeof i.filters=="string"&&o.each(i.filters.toArray(),function(){d=t.utils.isFunc(this),d!==!1&&r.filtersIndexes.push(r.addFilter(d))}),this.currentPage=1,this._draw()},_resetSortClass:r=>{o(r).removeClass("sort-asc sort-desc")},_createEvents:function(){let r=this,a=this.element,i=this.options,l=a.closest(".table-component"),s=l.find(".table-container"),c=l.find(".table-search-block input"),A=i.skipWrapper?o(i.skipWrapper).find(".table-skip-button"):l.find(".table-skip-button"),p=i.skipWrapper?o(i.skipWrapper).find(".table-skip-input"):l.find(".table-skip-input"),g,h=a.attr("id");l.find(".inspector-button").on(t.events.click,()=>{r.toggleInspector()}),A.on(t.events.click,()=>{let b=Number.parseInt(p.val().trim());if(isNaN(b)||b<=0||b>r.pagesCount)return p.val(""),!1;p.val(""),r._fireEvent("skip",{skipTo:b,skipFrom:r.currentPage}),r.page(b)}),o(globalThis).on(t.events.resize,()=>{i.horizontalScroll===!0&&(!t.utils.isNull(i.horizontalScrollStop)&&t.utils.mediaExist(i.horizontalScrollStop)?s.removeClass("horizontal-scroll"):s.addClass("horizontal-scroll"))},{ns:this.id}),a.on(t.events.click,".sortable-column",function(){if(i.muteTable===!0&&a.addClass("disabled"),r.busy)return!1;r.busy=!0;let b=o(this);r.activity.show(()=>{setImmediate(()=>{r.currentPage=1,r.sort.colIndex=b.data("index"),!b.hasClass("sort-asc")&&!b.hasClass("sort-desc")?r.sort.dir=i.sortDir:b.hasClass("sort-asc")?r.sort.dir="desc":r.sort.dir="asc",r._resetSortClass(a.find(".sortable-column")),b.addClass(`sort-${r.sort.dir}`),r.sorting(),r._draw(()=>{r.busy=!1,i.muteTable===!0&&a.removeClass("disabled")}),r._fireEvent("sort",{col:b[0],dir:r.sort.dir})})})}),a.on(t.events.click,".table-service-check",function(){let b=o(this),I=b.is(":checked"),D=`${b.val()}`,C=i.checkStoreKey.replace("$1",h),Y=t.storage,x=Y.getItem(C);b.attr("type")==="radio"&&(x=[]),I?t.utils.isValue(x)?Array(x).indexOf(D)===-1&&x.push(D):x=[D]:t.utils.isValue(x)?t.utils.arrayDelete(x,D):x=[],Y.setItem(C,x),r._fireEvent("check-click",{check:this,status:I,data:x})}),a.on(t.events.click,".table-service-check-all",function(){let b=o(this).is(":checked"),I=i.checkStoreKey.replace("$1",h),D=t.storage,C=[],Y;i.useCurrentSlice===!0?(Y=D.getItem(I,[]),b?o.each(r.currentSlice,function(){Y.indexOf(`${this[i.checkColIndex]}`)===-1&&Y.push(`${this[i.checkColIndex]}`)}):o.each(r.currentSlice,function(){let x=`${this[i.checkColIndex]}`;Y.indexOf(x)!==-1&&t.utils.arrayDelete(Y,x)}),C=Y):b?o.each(r.filteredItems,function(){C.indexOf(this[i.checkColIndex])===-1&&C.push(`${this[i.checkColIndex]}`)}):C=[],D.setItem(I,C),r._draw(),r._fireEvent("check-click-all",{check:this,status:b,data:C})}),a.on(t.events.click,"tbody > tr > td",function(){r._fireEvent("cell-click",{cell:this},!1,!1,this)}),a.on(t.events.dblclick,"tbody > tr > td",function(){r._fireEvent("cell-dbl-click",{cell:this},!1,!1,this)}),a.on(t.events.click,"tbody > tr",function(){r._fireEvent("row-click",{row:this},!1,!1,this)}),a.on(t.events.dblclick,"tbody > tr",function(){r._fireEvent("row-dbl-click",{row:this},!1,!1,this)});let u=function(){r.searchString=this.value.trim().toLowerCase(),r.currentPage=1,r._draw()};u=Hooks.useDebounce(u,i.searchThreshold),c.on(t.events.inputchange,u),t.utils.isValue(this.wrapperSearch)&&(g=this.wrapperSearch.find("input"),g.length>0&&g.on(t.events.inputchange,u));function f(b){let I=o(b),D=I.parent();r.filteredItems.length!==0&&(D.hasClass("active")||(D.hasClass("service")?I.data("page")==="prev"?(r.currentPage--,r.currentPage===0&&(r.currentPage=1)):(r.currentPage++,r.currentPage>r.pagesCount&&(r.currentPage=r.pagesCount)):r.currentPage=+I.data("page"),r._draw(),r._fireEvent("page-change",{page:r.currentPage})))}l.on(t.events.click,".pagination .page-link",function(){f(this)}),t.utils.isValue(this.wrapperPagination)&&this.wrapperPagination.on(t.events.click,".pagination .page-link",function(){f(this)}),this._createInspectorEvents(),a.on(t.events.click,".js-table-crud-button",()=>{})},_createInspectorEvents:function(){let r=this,a=this.inspector;this._removeInspectorEvents(),a.on(t.events.click,".js-table-inspector-field-up",function(){let l=o(this).closest("tr"),s=l.prev("tr"),c=l.data("index"),A;s.length!==0&&(l.insertBefore(s),l.addClass("flash"),setTimeout(()=>{l.removeClass("flash")},1e3),A=l.index(),l.data("index-view",A),r.view[c]["index-view"]=A,o.each(l.nextAll(),function(){let p=o(this);A++,p.data("index-view",A),r.view[p.data("index")]["index-view"]=A}),r._fireEvent("field-move",{field:r.heads[c],index:c,direction:"up"}),r._createTableHeader(),r._draw())}),a.on(t.events.click,".js-table-inspector-field-down",function(){let l=o(this).closest("tr"),s=l.next("tr"),c=l.data("index"),A;s.length!==0&&(l.insertAfter(s),l.addClass("flash"),setTimeout(()=>{l.removeClass("flash")},1e3),A=l.index(),l.data("index-view",A),r.view[c]["index-view"]=A,o.each(l.prevAll(),function(){let p=o(this);A--,p.data("index-view",A),r.view[p.data("index")]["index-view"]=A}),r._fireEvent("field-move",{field:r.heads[c],index:c,direction:"down"}),r._createTableHeader(),r._draw())}),a.on(t.events.click,"input[type=checkbox]",function(){let i=o(this),l=i.is(":checked"),s=i.val(),c=["cls","clsColumn"];l?(o.each(c,function(){let A=t.utils.isValue(r.heads[s][this])?r.heads[s][this].toArray(" "):[];
243t.utils.arrayDelete(A,"hidden"),r.heads[s][this]=A.join(" "),r.view[s].show=!0}),r._fireEvent("field-show",{field:r.heads[s],index:s})):(o.each(c,function(){let A=t.utils.isValue(r.heads[s][this])?r.heads[s][this].toArray(" "):[];A.indexOf("hidden")===-1&&A.push("hidden"),r.heads[s][this]=A.join(" "),r.view[s].show=!1}),r._fireEvent("field-hide",{field:r.heads[s],index:s})),r._fireEvent("field-toggle",{field:r.heads[s],index:s,status:l}),r._createTableHeader(),r._draw()}),a.find("input[type=number]").on(t.events.inputchange,function(){let i=o(this),l=i.attr("data-index"),s=Number.parseInt(i.val());r.view[l].size=s===0?"":s,r._createTableHeader()}),a.on(t.events.click,".js-table-inspector-save",()=>{r._saveTableView(),r.openInspector(!1)}),a.on(t.events.click,".js-table-inspector-cancel",()=>{r.openInspector(!1)}),a.on(t.events.click,".js-table-inspector-reset",()=>{r.resetView()})},_removeInspectorEvents:function(){let r=this.inspector;r.off(t.events.click,".js-table-inspector-field-up"),r.off(t.events.click,".js-table-inspector-field-down"),r.off(t.events.click,"input[type=checkbox]"),r.off(t.events.click,".js-table-inspector-save"),r.off(t.events.click,".js-table-inspector-cancel"),r.off(t.events.click,".js-table-inspector-reset"),r.off(t.events.inputchange,"input[type=number]")},_saveTableView:function(){let r=this.element,a=this.options,i=this.view,l=r.attr("id"),s=a.viewSavePath.replace("$1",l),c=t.storage;if(a.viewSaveMode.toLowerCase()==="client")c.setItem(s,i),this._fireEvent("view-save",{target:"client",path:a.viewSavePath,view:i});else{let A={id:r.attr("id"),view:i};fetch(s,{method:"POST",body:JSON.stringify(A),header:{"Content-type":"application/json;charset=utf-8"}}).then(t.fetch.status).then(t.fetch.text).then(p=>{this._fireEvent("view-save",{target:"server",path:a.viewSavePath,view:i,post_data:A,response:p})}).catch(p=>{this._fireEvent("data-save-error",{source:a.viewSavePath,error:p,post_data:A})})}},_info:function(r,a,i){let l=this.element,s=this.options,c=this.strings,A=l.closest(".table-component"),p=t.utils.isValue(this.wrapperInfo)?this.wrapperInfo:A.find(".table-info"),g,h=r,d=a,u=i;p.length!==0&&(d>u&&(d=u),this.items.length===0&&(h=d=u=0),g=s.tableInfoTitle||c.label_table_info,g=g.replace("$1",h),g=g.replace("$2",d),g=g.replace("$3",u),p.html(g))},_paging:function(r){let a=this.element,i=this.options,l=this.strings,s=a.closest(".table-component");this.pagesCount=Math.ceil(r/i.rows),t.pagination({length:r,rows:i.rows,current:this.currentPage,target:t.utils.isValue(this.wrapperPagination)?this.wrapperPagination:s.find(".table-pagination"),claPagination:i.clsPagination,prevTitle:i.paginationPrevTitle||l.label_prev,nextTitle:i.paginationNextTitle||l.label_next,distance:i.paginationDistance,islandSize:i.paginationIslandSize,shortTrack:i.paginationShortTrack})},_filter:function(){let r=this.options,a;return t.utils.isValue(this.searchString)&&this.searchString.length>=r.searchMinLength||this.filters.length>0?a=this.items.filter(i=>{let l="",s,c,A=0;if(this.filters.length>0){for(s=r.filtersOperator.toLowerCase()==="and",c=0;c<this.filters.length;c++)t.utils.isNull(this.filters[c])||(A++,s=r.filtersOperator.toLowerCase()==="and"?s&&t.utils.exec(this.filters[c],[i,this.heads]):s||t.utils.exec(this.filters[c],[i,this.heads]));A===0&&(s=!0)}else s=!0;this.searchFields.length>0?o.each(this.heads,(g,h)=>{this.searchFields.indexOf(h.name)>-1&&(l+=`\u2022${i[g]}`)}):l=i.join("\u2022"),l=l.replace(/[\n\r]+|[\s]{2,}/g," ").trim().toLowerCase();let p=t.utils.isValue(this.searchString)&&this.searchString.length>=r.searchMinLength?~l.indexOf(this.searchString):!0;return s=s&&p,s?this._fireEvent("filter-row-accepted",{row:i}):this._fireEvent("filter-row-declined",{row:i}),s}):a=this.items,this._fireEvent("search",{search:this.searchString,items:a}),this.filteredItems=a,a},_draw:function(r){let a=this,i=this.element,l=this.options,s=this.strings,c=i.find("tbody"),A,p,g,h,d,u,f,b,I=Number.parseInt(l.rows),D=I===-1?0:I*(+this.currentPage-1),C=I===-1?this.items.length-1:+D+I-1,Y,x=[],v=t.storage.getItem(l.checkStoreKey.replace("$1",i.attr("id"))),E=l.staticView?this.viewDefault:this.view;if(c.html(""),!this.heads.length){console.warn(`Heads is not defined for table ID ${i.attr("id")}`);return}if(Y=this._filter(),this.currentSlice=Y.slice(D,C+1),x=[],Y.length>0){for(A=D;A<=C;A++)if(u=Y[A],f=[],!!t.utils.isValue(u)){for(g=o("<tr>").addClass(l.clsBodyRow),g.data("original",u),b=A%2===0,h=o("<td>").attr("data-label","#").attr("aria-label","#").html(A+1),a.service[0].clsColumn!==void 0&&h.addClass(a.service[0].clsColumn),h.appendTo(g),h=o("<td>").attr("data-label","CHK").attr("aria-label","CHK"),l.checkType==="checkbox"?d=o(`<input type='checkbox' data-style='${l.checkStyle}' data-role='checkbox' name='${t.utils.isValue(l.checkName)?l.checkName:"table_row_check"}[]' value='${Y[A][l.checkColIndex]}'>`):d=o(`<input type='radio' data-style='${l.checkStyle}' data-role='radio' name='${t.utils.isValue(l.checkName)?l.checkName:"table_row_check"}' value='${Y[A][l.checkColIndex]}'>`),t.utils.isValue(v)&&Array.isArray(v)&&v.indexOf(`${Y[A][l.checkColIndex]}`)>-1&&(d.prop("checked",!0),x.push(u)),d.addClass("table-service-check"),this._fireEvent("check-draw",{check:d}),d.appendTo(h),a.service[1].clsColumn!==void 0&&h.addClass(a.service[1].clsColumn),h.appendTo(g),p=0;p<u.length;p++)f[p]=null;for(o.each(u,function(w){let T=this,J=o("<td>").attr("data-label",a.heads[w].title).attr("aria-label",a.heads[w].title);t.utils.isValue(a.heads[w].template)&&(T=a.heads[w].template.replace(/%VAL%/g,T)),J.html(T),J.addClass(l.clsBodyCell),t.utils.isValue(a.heads[w].clsColumn)&&J.addClass(a.heads[w].clsColumn),t.utils.bool(E[w].show)===!1&&J.addClass("hidden"),t.utils.bool(E[w].show)&&J.removeClass("hidden"),J.data("original",this),f[E[w]["index-view"]]=J,a._fireEvent("draw-cell",{td:J,val:T,cellIndex:w,head:a.heads[w],items:u}),l.cellWrapper===!0&&(T=o("<div>").addClass("data-wrapper").addClass(l.clsCellWrapper).html(J.html()),J.html("").append(T))}),p=0;p<u.length;p++)f[p].appendTo(g),a._fireEvent("append-cell",{td:f[p],tr:g,index:
243p});a._fireEvent("draw-row",{tr:g,view:a.view,heads:a.heads,items:u}),g.addClass(l.clsRow).addClass(b?l.clsEvenRow:l.clsOddRow).appendTo(c),a._fireEvent("append-row",{tr:g})}o(this.component).find(".table-service-check-all input").prop("checked",x.length)}else p=0,o.each(E,function(){this.show&&p++}),l.check===!0&&p++,l.rownum===!0&&p++,g=o("<tr>").addClass(l.clsBodyRow).appendTo(c),h=o("<td>").attr("colspan",p).addClass("text-center").html(o("<span>").addClass(l.clsEmptyTableTitle).html(l.emptyTableTitle||s.label_empty)),h.appendTo(g);this._info(D+1,C+1,Y.length),this._paging(Y.length),this.activity&&this.activity.hide(),this._fireEvent("draw"),r!==void 0&&t.utils.exec(r,null,i[0]),this._fireEvent("draw-body",{body:c})},_getItemContent:function(r){let a=this.options,i=this.locale,l,s=r[this.sort.colIndex],c=this.heads[this.sort.colIndex].format,A=!t.utils.isNull(this.heads)&&!t.utils.isNull(this.heads[this.sort.colIndex])&&t.utils.isValue(this.heads[this.sort.colIndex].formatMask)?this.heads[this.sort.colIndex].formatMask:"%Y-%m-%d",p=this.heads?.[this.sort.colIndex]&&this.heads[this.sort.colIndex].thousandSeparator?this.heads[this.sort.colIndex].thousandSeparator:a.thousandSeparator,g=this.heads?.[this.sort.colIndex]&&this.heads[this.sort.colIndex].decimalSeparator?this.heads[this.sort.colIndex].decimalSeparator:a.decimalSeparator;if(l=`${s}`.toLowerCase().replace(/[\n\r]+|[\s]{2,}/g," ").trim(),t.utils.isValue(l)&&t.utils.isValue(c))switch(["number","int","float","money"].indexOf(c)!==-1&&(l=t.utils.parseNumber(l,p,g)),c){case"date":l=A?Datetime.from(l,A,i):datetime(l);break;case"number":l=+l;break;case"int":l=Number.parseInt(l);break;case"float":l=Number.parseFloat(l);break;case"money":l=t.utils.parseMoney(l);break;case"card":l=t.utils.parseCard(l);break;case"phone":l=t.utils.parsePhone(l);break}return l},addItem:function(r,a){if(!Array.isArray(r))return console.warn("Item is not an array and can't be added"),this;this.items.push(r),a!==!1&&this.draw()},addItems:function(r,a){if(!Array.isArray(r))return console.warn("Items is not an array and can't be added"),this;for(let i of r)Array.isArray(i)&&this.items.push(i,!1);this.draw(),a!==!1&&this.draw()},updateItem:function(r,a,i){let l=this.items[this.index[r]],s=null;return t.utils.isNull(l)?(console.warn("Item is undefined for update"),this):(isNaN(a)&&this.heads.forEach((c,A)=>{c.name===a&&(s=A)}),t.utils.isNull(s)?(console.warn(`Item is undefined for update. Field ${a} not found in data structure`),this):(l[s]=i,this.items[this.index[r]]=l,this))},getItem:function(r){return this.items[this.index[r]]},deleteItem:function(r,a){let i,l=[],s=t.utils.isFunc(a);for(i=0;i<this.items.length;i++)s?t.utils.exec(a,[this.items[i][r]])&&l.push(i):this.items[i][r]===a&&l.push(i);return this.items=t.utils.arrayDeleteByMultipleKeys(this.items,l),this},deleteItemByName:function(r,a){let i,l,s=[],c=t.utils.isFunc(a);for(i=0;i<this.heads.length;i++)if(this.heads[i].name===r){l=i;break}for(i=0;i<this.items.length;i++)c?t.utils.exec(a,[this.items[i][l]])&&s.push(i):this.items[i][l]===a&&s.push(i);return this.items=t.utils.arrayDeleteByMultipleKeys(this.items,s),this},draw:function(){return this._draw(),this},sorting:function(r){return t.utils.isValue(r)&&(this.sort.dir=r),this._fireEvent("sort-start",{items:this.items}),this.items.sort((a,i)=>{let l=this._getItemContent(a),s=this._getItemContent(i),c=0;return l<s&&(c=this.sort.dir==="asc"?-1:1),l>s&&(c=this.sort.dir==="asc"?1:-1),c!==0&&this._fireEvent("sort-item-switch",{a,b:i,result:c}),c}),this._fireEvent("sort-stop",{items:this.items}),this},search:function(r){return this.searchString=r.trim().toLowerCase(),this.currentPage=1,this._draw(),this},_rebuild:function(r){let a=this,i=this.element,l=!1,s;this._createIndex(),r===!0&&(this.view=this._createView()),this._createTableHeader(),this._createTableBody(),this._createTableFooter(),this.heads.length>0&&o.each(this.heads,function(c){!l&&["asc","desc"].indexOf(this.sortDir)>-1&&(l=!0,a.sort.colIndex=c,a.sort.dir=this.sortDir)}),l&&(s=i.find(".sortable-column"),this._resetSortClass(s),o(s.get(a.sort.colIndex)).addClass(`sort-${a.sort.dir}`),this.sorting()),a.currentPage=1,a._draw()},setHeads:function(r){return this.heads=r,this},setHeadItem:function(r,a){let i,l;for(i=0;i<this.heads.length;i++)if(this.heads[i].name===r){l=i;break}return this.heads[l]=a,this},setItems:function(r){return this.items=r,this},setData:function(r){let a=this.options;return this.activity.show(()=>{this.items=[],this.heads=[],this.foots=[],Array.isArray(a.head)&&(this.heads=a.head),Array.isArray(a.body)&&(this.items=a.body),this._createItemsFromJSON(r),this._rebuild(!0),this.activity.hide()}),this},loadData:function(r,a=!0){let i=this.element,l=this.options;i.html(""),t.utils.isValue(r)?(l.source=r,this._fireEvent("data-load",{source:l.source}),this.activity.show(()=>{fetch(l.source).then(t.fetch.status).then(t.fetch.json).then(s=>{this.activity.hide(),this.items=[],this.heads=[],this.foots=[],this._fireEvent("data-loaded",{source:l.source,data:s}),Array.isArray(l.head)&&(this.heads=l.head),Array.isArray(l.body)&&(this.items=l.body),this._createItemsFromJSON(s),this._rebuild(a),this._resetInspector(),this._fireEvent("data-load-end",{source:l.source,data:s})}).catch(s=>{this.activity.hide(),this._fireEvent("data-load-error",{source:l.source,error:s})})})):this._rebuild(a)},reload:function(r){this.loadData(this.options.source,r)},clear:function(){return this.items=[],this.draw()},next:function(){if(this.items.length!==0){if(this.currentPage++,this.currentPage>this.pagesCount){this.currentPage=this.pagesCount;return}return this._draw(),this}},prev:function(){if(this.items.length!==0){if(this.currentPage--,this.currentPage===0){this.currentPage=1;return}return this._draw(),this}},first:function(){if(this.items.length!==0)return this.currentPage=1,this._draw(),this},last:function(){if(this.items.length!==0)return this.currentPage=this.pagesCount,this._draw(),this},page:function(r){let a=r;return a<=0&&(a=1),a>this.pagesCount&&(a=this.pagesCount),this.currentPage=a,this._draw(),this},addFilter:function(r,a){let i=null,l,s=t.utils.isFunc(r);if(s!==!1){for(l=0;l<this.filters.length;l++)if(t.utils.isNull(this.filters[l])){i=l,this.filters[l]=s;break}return t.utils.isNull(i)&&(this.filters.push(s),i=this.filters.length-1),a===!0&&(this.currentPage=1,this.draw()),i}},removeFilter:function(r,a){return this.filters[r]=null,a===!0&&(this.currentPage=1,this.draw()),this},removeFilters:function(r){return this.filters=[],r===!0&&(this.currentPage=1,this.draw()),this},getItems:function(){return this.items},getHeads:function(){return this.heads},getView:function(){return this.view},getFilteredItems:function(){return this.filteredItems.length>0?this.filteredItems:this.items},getSelectedItems:function(){let r=this.element,a=this.options,i=t.storage.getItem(a.checkStoreKey.replace("$1",r.attr("id"))),l=[];return t.utils.isValue(i)?(o.each(this.items,function(){i.indexOf(`${this[a.checkColIndex]}`)!==-1&&l.push(this)}),l):[]},getStoredKeys:function(){let r=this.element,a=this.options;return t.storage.getItem(a.checkStoreKey.replace("$1",r.attr("id")),[])},clearSelected:function(r){let a=this.element,i=this.options;t.storage.setItem(i.checkStoreKey.replace("$1",a.attr("id")),[]),a.find("table-service-check-all input").prop("checked",!1),r===!0&&this._draw()},getFilters:function(){return this.filters},getFiltersIndexes:function(){return this.filtersIndexes},openInspector:function(r){let a=this.inspector;r?(a.show(0,()=>{a.css({top:(o(globalThis).height()-a.outerHeight(!0))/2+pageYOffset,left:(o(globalThis).width()-a.outerWidth(!0))/2+pageXOffset}).data("open",!0)}),this._fireEvent("inspector-open",{target:a})):(a.hide().data("open",!1),this._fireEvent("inspector-close",{target:a}))},closeInspector:function(){this.openInspector(!1)},toggleInspector:function(){this.openInspector(!this.inspector.data("open"))},resetView:function(){this.view=this._createView(),this._createTableHeader(),this._createTableFooter(),this._draw(),this._resetInspector(),this._saveTableView()},rebuildIndex:function(){this._createIndex()},getIndex:function(){return this.index},export:function(r,a,i,l){let s=t.export,c=this,A=this.options,p=document.createElement("table"),g=o("<thead>").appendTo(p),h=o("<tbody>").appendTo(p),d,u,f,b=[],I,D,C,Y,x;
243if(typeof s.tableToCSV!="function")return;let v=t.utils.isValue(a)?a.toLowerCase():"all-filtered",E=t.utils.isValue(i)?i:`${element.id()||Hooks.useId()}-export.csv`;for(D=o("<tr>"),f=this.heads,u=0;u<f.length;u++)b[u]=null;for(o.each(f,function(w){t.utils.bool(c.view[w].show)!==!1&&(C=o("<th>"),t.utils.isValue(this.title)&&C.html(this.title),b[c.view[w]["index-view"]]=C)}),u=0;u<f.length;u++)t.utils.isValue(b[u])&&b[u].appendTo(D);switch(D.appendTo(g),v){case"checked":{I=this.getSelectedItems(),Y=0,x=I.length-1;break}case"view":{I=this._filter(),Y=Number.parseInt(A.rows)===-1?0:A.rows*(this.currentPage-1),x=Number.parseInt(A.rows)===-1?I.length-1:Y+A.rows-1;break}case"all":{I=this.items,Y=0,x=I.length-1;break}default:I=this._filter(),Y=0,x=I.length-1}for(d=Y;d<=x;d++)if(t.utils.isValue(I[d])){for(D=o("<tr>"),f=I[d],u=0;u<f.length;u++)b[u]=null;for(o.each(f,function(w){t.utils.bool(c.view[w].show)!==!1&&(C=o("<td>").html(this),b[c.view[w]["index-view"]]=C)}),u=0;u<f.length;u++)t.utils.isValue(b[u])&&b[u].appendTo(D);D.appendTo(h)}s.tableToCSV(p,E,l),p.remove()},changeAttribute:function(r){let a=this,i=this.element,l=this.options;function s(){l.check=t.utils.bool(i.attr("data-check")),a._service(),a._createTableHeader(),a._draw()}function c(){l.rownum=t.utils.bool(i.attr("data-rownum")),a._service(),a._createTableHeader(),a._draw()}switch(r){case"data-check":s();break;case"data-rownum":c();break}},destroy:function(){let r=this.element,a=r.closest(".table-component"),i=a.find("input"),l=a.find("select");if(i.data("input").destroy(),l.data("select").destroy(),o(globalThis).off(t.events.resize,{ns:this.id}),r.off(t.events.click,".sortable-column"),r.off(t.events.click,".table-service-check input"),r.off(t.events.click,".table-service-check-all input"),i.off(t.events.inputchange),t.utils.isValue(this.wrapperSearch)){let s=this.wrapperSearch.find("input");s.length>0&&s.off(t.events.inputchange)}a.off(t.events.click,".pagination .page-link"),t.utils.isValue(this.wrapperPagination)&&this.wrapperPagination.off(t.events.click,".pagination .page-link"),r.off(t.events.click,".js-table-crud-button"),this._removeInspectorEvents(),r.remove()}})})(Metro,Dom);((t,o)=>{"use strict";let e=`
244    <svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
245        <path d="M8.75 3.5V2C8.75 1.59 8.41 1.25 8 1.25C7.59 1.25 7.25 1.59 7.25 2V3.56C7.5 3.53 7.73 3.5 8 3.5H8.75Z"/>
246        <path d="M16.75 3.56V2C16.75 1.59 16.41 1.25 16 1.25C15.59 1.25 15.25 1.59 15.25 2V3.5H16C16.27 3.5 16.5 3.53 16.75 3.56Z"/>
247        <path d="M16.75 3.56V5C16.75 5.41 16.41 5.75 16 5.75C15.59 5.75 15.25 5.41 15.25 5V3.5H8.75V5C8.75 5.41 8.41 5.75 8 5.75C7.59 5.75 7.25 5.41 7.25 5V3.56C4.3 3.83 3 5.73 3 8.5V17C3 20 4.5 22 8 22H16C19.5 22 21 20 21 17V8.5C21 5.73 19.7 3.83 16.75 3.56ZM12 16.75H8C7.59 16.75 7.25 16.41 7.25 16C7.25 15.59 7.59 15.25 8 15.25H12C12.41 15.25 12.75 15.59 12.75 16C12.75 16.41 12.41 16.75 12 16.75ZM16 11.75H8C7.59 11.75 7.25 11.41 7.25 11C7.25 10.59 7.59 10.25 8 10.25H16C16.41 10.25 16.75 10.59 16.75 11C16.75 11.41 16.41 11.75 16 11.75Z"/>
248    </svg>
249    `,r=`
250    <svg width="800px" height="800px" viewBox="-160 0 512 512" xmlns="http://www.w3.org/2000/svg">
251        <path d="M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"/>
252    </svg>
253    `,a=`
254    <svg height="800px" width="800px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve">
255        <path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"/>
256    </svg>
257    `,i=`
258    <svg height="800px" width="800px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewB
258ox="0 0 512 512"  xml:space="preserve">
259        <path class="st0" d="M387.317,0.005H284.666h-57.332h-102.65L0,124.688v102.67v57.294v102.67l124.684,124.674h102.65h57.332
260            h102.651L512,387.321v-102.67v-57.294v-102.67L387.317,0.005z M255.45,411.299c-19.082,0-34.53-15.467-34.53-34.549
261            c0-19.053,15.447-34.52,34.53-34.52c19.082,0,34.53,15.467,34.53,34.52C289.98,395.832,274.532,411.299,255.45,411.299z
262             M283.414,278.692c0,15.448-12.516,27.964-27.964,27.964c-15.458,0-27.964-12.516-27.964-27.964l-6.566-135.368
263            c0-19.072,15.447-34.54,34.53-34.54c19.082,0,34.53,15.467,34.53,34.54L283.414,278.692z"/>
264    </svg>
265    `,c={note:e,info:r,warning:a,caution:i,alert:i,error:i,tip:`
266    <svg height="800px" width="800px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 256 256" xml:space="preserve">
267        <path d="M216.2,92.5c-5.2-5.3-13.8-5.4-19-0.1L157.8,134l-0.3,0.3c-25.5,0.1-46.2,16.8-46.2,37.3h-5.8c0-23.6,23.1-42.8,51.6-43.1
268            l-0.1-19.4c0,0-0.1-85.4-0.1-85.5c-0.7-5.8-5.6-10.3-11.7-10.3c-6.5,0-11.7,5.3-11.7,11.7c0,0.2,0,72.9,0,72.9l-5.2,0.2l-0.1-81.2
269            c0-6.5-5.3-11.7-11.8-11.7s-11.7,5.3-11.7,11.8v81h-5.6l0.1-63.6c0-6.5-5.3-11.7-11.8-11.7S75.7,28,75.7,34.4V98h-5.2l0.1-34.2
270            c0-6.5-5.3-11.7-11.8-11.7s-11.7,5.3-11.7,11.8c0,108.4,0,108.4,0,111c0,13.2,6.8,24.4,16.2,28.1v48.4h0.2v0.4l81.2-0.4v-51.1
271            c2.5-0.9,5.1-2,7.6-3.3c15.4-7.9,26.1-20.3,29.5-32.5c2.9-4.3,36.8-56.2,36.8-56.2C221.4,103.7,220.6,96.9,216.2,92.5z"/>
272    </svg>  
273    `,success:`
274        <svg width="800px" height="800px" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
275          <path d="M24,2A22,22,0,1,0,46,24,21.9,21.9,0,0,0,24,2ZM35.4,18.4l-14,14a1.9,1.9,0,0,1-2.8,0l-5.9-5.9a2.2,2.2,0,0,1-.4-2.7,2,2,0,0,1,3.1-.2L20,28.2,32.6,15.6a2,2,0,0,1,2.8,2.8Z"/>
276        </svg>    
277    `},A={directive:"note",showIcon:!0,title:"default",style:1,onDirectiveCreate:t.noop};t.directiveSetup=p=>{A=o.extend({},A,p)},typeof globalThis.metroDirectiveSetup<"u"&&t.directiveSetup(globalThis.metroDirectiveSetup),t.Component("directive",{init:function(p,g){return this._super(g,p,A,{}),this},_create:function(){this._createStructure(),this._createEvents(),this._fireEvent("directive-create")},_createStructure:function(){let p=this.element,g=this.options,h=p.wrap("<div>").addClass("directive").addClass(`directive-style-${g.style}`).addClass(`directive-${g.directive}`),d=o("<div>").addClass("directive-title").html(g.title==="default"?this.strings[`label_${g.directive.toLowerCase()}`].toUpperCase():g.title);g.showIcon&&d.prepend(o("<span>").addClass("icon").html(c[g.directive])),h.prepend(d),this.component=h},_createEvents:()=>{},changeAttribute:(p,g)=>{},destroy:function(){this.element.remove()}})})(Metro,Dom);((t,o)=>{"use strict";let e={required:a=>G.safeParse(G.required(),a).ok,length:(a,i)=>G.safeParse(G.length(+i),a).ok,minlength:(a,i)=>G.safeParse(G.minLength(+i),a).ok,maxlength:(a,i)=>G.safeParse(G.maxLength(+i),a).ok,min:(a,i)=>G.safeParse(G.min(+i),+a).ok,max:(a,i)=>G.safeParse(G.max(+i),+a).ok,email:a=>G.safeParse(G.email(),a).ok,domain:a=>G.safeParse(G.domain(),a).ok,url:a=>G.safeParse(G.url(),a).ok,date:(a,i,l)=>{try{let s=i?Datetime.from(a,i,l):datetime(a);return i?s.format(i,l)===a:!0}catch{return!1}},number:a=>G.safeParse(G.number(),+a).ok,integer:a=>G.safeParse(G.integer(),+a).ok,safeInteger:a=>G.safeParse(G.safeInteger(),+a).ok,float:a=>G.safeParse(G.float(),+a).ok,digits:a=>G.safeParse(G.digits(),a).ok,hexcolor:a=>G.safeParse(G.hexColor(),a).ok,color:a=>t.utils.isValue(a)?Farbe.Palette.color(a,Farbe.StandardColors)||Farbe.Routines.isColor(a):!1,pattern:(a,i)=>G.safeParse(G.pattern(i),a).ok,compare:(a,i)=>a==i,not:(a,i)=>a!=i,notequals:(a,i)=>a!==i,equals:(a,i)=>a===i,custom:(a,i)=>t.utils.isFunc(i)===!1?!1:t.utils.exec(i,[a]),is_control:a=>a.attr("data-role"),reset_state:a=>{let i=o(a);e.is_control(i)?i.parent().removeClass("invalid valid"):i.removeClass("invalid valid")},set_valid_state:a=>{let i=o(a);
277e.is_control(i)?i.parent().addClass("valid"):i.addClass("valid")},set_invalid_state:a=>{let i=o(a);e.is_control(i)?i.parent().addClass("invalid"):i.addClass("invalid")},reset:function(a){let i=this;return o.each(o(a).find("[data-validate]"),function(){i.reset_state(this)}),this},validate:function(a,i,l,s,c){let A=!0,p=o(a),g=p.data("validate")!==void 0?String(p.data("validate")).split(" ").map(b=>b.trim()):[],h=[],d=p.closest("form").length>0,u,f;return g.length===0?!0:(this.reset_state(p),p.attr("type")&&p.attr("type").toLowerCase()==="checkbox"?(g.indexOf("required")===-1?A=!0:A=p.is(":checked"),A===!1&&h.push("required"),i!==void 0&&(i.val+=A?0:1)):p.attr("type")&&p.attr("type").toLowerCase()==="radio"?(u=p.attr("name"),typeof u>"u"?A=!0:(f=o(`input[name=${u.replace("[","\\[").replace("]","\\]")}]:checked`),A=f.length>0),i!==void 0&&(i.val+=A?0:1)):o.each(g,function(){if(A===!1)return;let b=this.split("="),I,D,C;I=b[0],b.shift(),D=b.join("="),["compare","not","equals","notequals"].indexOf(I)>-1&&(D=d?p[0].form.elements[D].value:o(`[name=${D}]`).val()),I==="date"&&(D=p.attr("data-value-format"),C=p.attr("data-value-locale")),t.utils.isFunc(e[I])===!1?A=!0:c===!0||I==="required"||p.val().trim()!==""?A=e[I](p.val(),D,C):A=!0,A===!1&&h.push(I),i!==void 0&&(i.val+=A?0:1)}),A===!1?(this.set_invalid_state(p),i!==void 0&&i.log.push({input:p[0],name:p.attr("name"),value:p.val(),funcs:g,errors:h}),s!==void 0&&t.utils.exec(s,[p,p.val()],p[0])):(this.set_valid_state(p),l!==void 0&&t.utils.exec(l,[p,p.val()],p[0])),A)}};t.validator=e;let r={deferred:500,validatorDeferred:0,submitTimeout:200,interactiveCheck:!1,clearInvalid:0,requiredMode:!0,useRequiredClass:!0,onBeforeSubmit:t.noop_true,onSubmit:t.noop,onError:t.noop,onValidate:t.noop,onErrorForm:t.noop,onValidateForm:t.noop,onValidatorCreate:t.noop};t.validatorSetup=a=>{r=o.extend({},r,a)},typeof globalThis.metroValidatorSetup<"u"&&t.validatorSetup(globalThis.metroValidatorSetup),t.Component("validator",{init:function(a,i){return this._super(i,a,r,{_onsubmit:null,_onreset:null,result:[]}),this},_create:function(){let a=this.element,i=this.options,l=a.find("[data-validate]");a.attr("novalidate","novalidate"),setTimeout(()=>{o.each(l,function(){let s=o(this);s.data("validate").includes("required")&&i.useRequiredClass===!0&&(e.is_control(s)?s.parent().addClass("required"):s.addClass("required")),i.interactiveCheck===!0&&s.on(t.events.inputchange,function(){e.validate(this,void 0,void 0,void 0,i.requiredMode)})}),this._onsubmit=null,this._onreset=null,a[0].onsubmit!==null&&(this._onsubmit=a[0].onsubmit,a[0].onsubmit=null),a[0].onreset!==null&&(this._onreset=a[0].onreset,a[0].onreset=null),a[0].onsubmit=()=>this._submit(),a[0].onreset=()=>this._reset(),this._fireEvent("validator-create",{element:a})},i.deferred)},_reset:function(){e.reset(this.element),this._onreset!==null&&t.utils.exec(this._onreset,null,this.element[0])},_submit:function(){let a=this.element,i=this.options,l=this.elem,s=a.find("[data-validate]"),c=a.find("input[type=submit], button[type=submit]"),A={val:0,log:[]},p=o.serializeToArray(a);return c.length>0&&c.attr("disabled","disabled").addClass("disabled"),o.each(s,function(){e.validate(this,A,i.onValidate,i.onError,i.requiredMode)}),c.removeAttr("disabled").removeClass("disabled"),A.val+=t.utils.exec(i.onBeforeSubmit,[p],this.elem)===!1?1:0,A.val===0?(this._fireEvent("validate-form",{data:p}),setTimeout(()=>{t.utils.exec(i.onSubmit,[p],l),a.fire("formsubmit",{data:p}),this._onsubmit!==null&&t.utils.exec(this._onsubmit,null,l)},i.submitTimeout)):(this._fireEvent("error-form",{log:A.log,data:p}),i.clearInvalid>0&&setTimeout(()=>{o.each(s,function(){let g=o(this);e.is_control(g)?g.parent().removeClass("invalid"):g.removeClass("invalid")})},i.clearInvalid)),A.val===0},validate:function(){return this._submit()},changeAttribute:()=>{}})})(Metro,Dom);})();
278/*! Bundled license information:
279
280@olton/datetime/dist/datetime.js:
281  (*!
282   * Datetime v3.3.0.
283   * Build time: 01.09.2025, 15:52:51
284   * Copyright 2025 by Serhii Pimenov
285   * Licensed under MIT
286   *
287   * Build time: 01.09.2025 15:52:51
288   *)
289
290@olton/string/dist/string.js:
291  (*!
292   * String v0.10.2 (@olton/string)
293   * Copyright 2025 by Serhii Pimenov
294   * Built: 18.05.2025, 14:39:06
295   * Licensed under MIT
296   *)
297
298@olton/dom/dist/dom.js:
299  (*!
300   * DOM - Work with HTML elements (@olton/dom, https://metroui.org.ua)
301   * Version: 1.5.1
302   * Build date: 18.05.2025, 14:45:23
303   * Copyright 2012-2025 by Serhii Pimenov
304   * Licensed under MIT
305   *)
306
307@olton/hooks/dist/hooks.js:
308  (*!
309   * Hooks v0.13.0 (@olton/hooks)
310   * Copyright 2025 by Serhii Pimenov <[email protected]>
311   * Built: 07.03.2025, 23:32:05
312   * Licensed under MIT
313   *)
314
315@olton/farbe/dist/farbe.js:
316  (*!
317   * Farbe v1.0.11. Color Routines for JavaScript.
318   * Build: 06.08.2025, 11:05:32
319   * Copyright 2025 by Serhii Pimenov
320   * Licensed under MIT
321   *)
322
323@olton/html/dist/html.js:
324  (*!
325   * Html.js v0.15.1
326   * Description: Creating HTML Elements with JavaScript
327   * Build: 18.05.2025, 14:41:46
328   * Copyright 2025 by Serhii Pimenov
329   * Licensed under MIT
330   *)
331
332@olton/guardian/dist/guardian.js:
333  (*!
334   * Guardian v0.7.3. Data guard and validation library.
335   * Copyright 2025 Serhii Pimenov
336   * Licensed under MIT
337   * Build time: 18.05.2025 14:43:24
338   *)
339
340@olton/router/dist/router.js:
341  (*!
342   * Router v0.4.1 (Router ror SPA)
343   * Build: 18.05.2025, 14:39:57
344   * Copyright 2025 by Serhii Pimenov
345   * Licensed under MIT
346   *)
347
348@olton/model/dist/model.js:
349  (*!
350   * Model v0.18.1
351   * Build: 18.05.2025, 14:40:40
352   * Copyright 2012-2025 by Serhii Pimenov
353   * Licensed under MIT
354   *)
355*/

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.