@@ -680,6 +681,7 @@
+
diff --git a/frontend/sw.js b/frontend/sw.js
index 2aada81..7cfec85 100644
--- a/frontend/sw.js
+++ b/frontend/sw.js
@@ -60,6 +60,7 @@ const SHELL = [
'/refresh.css',
'/theme-glass.css',
'/theme-bento-hub.css',
+ '/theme-f7.css',
'/fonts/PlusJakartaSans-latin.woff2',
'/fonts/PlusJakartaSans-latin-ext.woff2',
'/theme-glass-panel.css',
@@ -109,6 +110,8 @@ const SHELL = [
'/server-backfill.js',
'/glass-controls.js',
'/bento-hub.js',
+ '/f7-layout.js',
+ '/vendor/framework7-swipe.min.js',
'/theme-glass-controls.css',
'/saved-page.css',
'/party-dj.js',
diff --git a/frontend/theme-f7.css b/frontend/theme-f7.css
new file mode 100644
index 0000000..7329f40
--- /dev/null
+++ b/frontend/theme-f7.css
@@ -0,0 +1,139 @@
+/* Framework7 Swipe layout (html[data-layout="f7-swipe"]).
+ Keeps the classic look; only the Framework7 swipeout / sheet mechanics are
+ styled here, with the app's own tokens instead of Framework7's stylesheet. */
+
+/* ---- Swipeout rows ---- */
+[data-layout="f7-swipe"] .cards li.f7s-row {
+ list-style: none;
+ position: relative;
+ overflow: hidden;
+ border-radius: 12px;
+ transform-style: preserve-3d;
+ touch-action: pan-y;
+}
+[data-layout="f7-swipe"] .f7s-row > .swipeout-content {
+ position: relative;
+ z-index: 10;
+ background: var(--bg);
+ transition: background 0.16s, border-color 0.16s;
+}
+[data-layout="f7-swipe"] .f7s-row.swipeout-active > .swipeout-content,
+[data-layout="f7-swipe"] .f7s-row.swipeout-opened > .swipeout-content {
+ background: var(--bg-2);
+ border-color: var(--line);
+}
+[data-layout="f7-swipe"] .f7s-row.swipeout-transitioning > .swipeout-content,
+[data-layout="f7-swipe"] .f7s-row.swipeout-transitioning .f7s-act {
+ transition-duration: 0.3s;
+ transition-property: transform, left, width, background-color;
+ transition-timing-function: var(--ease, ease);
+}
+[data-layout="f7-swipe"] .f7s-row .swipeout-actions-left,
+[data-layout="f7-swipe"] .f7s-row .swipeout-actions-right {
+ position: absolute;
+ top: 0;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 0 10px;
+ direction: ltr;
+}
+[data-layout="f7-swipe"] .f7s-row .swipeout-actions-left { left: 0; }
+[data-layout="f7-swipe"] .f7s-row .swipeout-actions-right { right: 0; }
+[data-layout="f7-swipe"] .f7s-act {
+ position: relative;
+ left: 0;
+ transform: scale(0);
+ border: 1px solid var(--line, transparent);
+ border-radius: 999px;
+ padding: 10px 16px;
+ font: inherit;
+ font-size: 13px;
+ font-weight: 600;
+ color: var(--text);
+ background: var(--bg-3);
+ cursor: pointer;
+ white-space: nowrap;
+ text-decoration: none;
+ user-select: none;
+}
+[data-layout="f7-swipe"] .swipeout-actions-left .f7s-act { background: var(--accent); border-color: var(--accent); color: #fff; }
+[data-layout="f7-swipe"] .f7s-act.f7s-danger { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
+[data-layout="f7-swipe"] .f7s-row.swipeout-overswipe-active .f7s-danger { box-shadow: 0 0 0 3px var(--accent-glow); }
+/* Swipe replaces the hover-only row buttons on touch screens. */
+@media (hover: none) {
+ [data-layout="f7-swipe"] .f7s-row .card-del { display: none; }
+}
+
+/* ---- Up next sheet ---- */
+.sheet-backdrop {
+ position: fixed;
+ inset: 0;
+ z-index: 11000;
+ background: rgba(0, 0, 0, 0.45);
+ opacity: 0;
+ visibility: hidden;
+ pointer-events: none;
+ transition: opacity 0.3s, visibility 0.3s;
+}
+.sheet-backdrop.backdrop-in { opacity: 1; visibility: visible; pointer-events: auto; }
+.f7s-sheet {
+ --f7-sheet-transition-duration: 300ms;
+ position: fixed;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 12500;
+ display: none;
+ height: min(85vh, 720px);
+ overflow: hidden;
+ box-sizing: border-box;
+ border-radius: 18px 18px 0 0;
+ border: 1px solid var(--line, transparent);
+ border-bottom: 0;
+ background: var(--bg-1);
+ color: var(--text);
+ box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
+ transform: translate3d(0, 100%, 0);
+ transition-property: transform;
+ transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
+ will-change: transform;
+ padding-bottom: env(safe-area-inset-bottom);
+}
+.f7s-sheet.modal-in, .f7s-sheet.modal-out { transition-duration: var(--f7-sheet-transition-duration); }
+.f7s-sheet.not-animated { transition-duration: 0s; }
+.f7s-sheet.modal-in { display: block; transform: translate3d(0, 0, 0); }
+.f7s-sheet.modal-in-breakpoint, .f7s-sheet.modal-in-swipe-step {
+ display: block;
+ transform: translate3d(0, var(--f7-sheet-breakpoint, var(--f7-sheet-swipe-step, 0)), 0);
+}
+.f7s-sheet.modal-out { transform: translate3d(0, 100%, 0); }
+.f7s-sheet .sheet-modal-inner { height: 100%; display: flex; flex-direction: column; }
+.f7s-grab { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none; }
+.f7s-grab::before { content: ''; width: 40px; height: 5px; border-radius: 3px; background: var(--text-dim); opacity: 0.6; }
+.f7s-sheet-head { flex: none; padding: 0 18px 10px; font-weight: 700; font-size: 15px; touch-action: none; }
+.f7s-sheet-list { flex: 1; overflow-y: auto; margin: 0; padding: 0 10px 16px; list-style: none; }
+.f7s-up { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; cursor: pointer; }
+.f7s-up:active, .f7s-up:hover { background: var(--bg-2); }
+.f7s-up img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg-3); }
+.f7s-up-info { min-width: 0; }
+.f7s-up-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
+.f7s-up-ch { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
+.f7s-empty { color: var(--text-dim); padding: 12px 8px; margin: 0; }
+
+/* A grab hint on the mini bar: swipe up for Up next, sideways to skip. */
+[data-layout="f7-swipe"] #miniBar { touch-action: none; }
+[data-layout="f7-swipe"] #miniBar .mini-bar-inner { position: relative; }
+[data-layout="f7-swipe"] #miniBar .mini-bar-inner::before {
+ content: '';
+ position: absolute;
+ top: 3px;
+ left: 50%;
+ width: 32px;
+ height: 4px;
+ margin-left: -16px;
+ border-radius: 2px;
+ background: var(--text-dim);
+ opacity: 0.5;
+}
diff --git a/frontend/vendor/framework7-swipe.entry.js b/frontend/vendor/framework7-swipe.entry.js
new file mode 100644
index 0000000..ba2e277
--- /dev/null
+++ b/frontend/vendor/framework7-swipe.entry.js
@@ -0,0 +1,13 @@
+// Build: bun build framework7-swipe.entry.js --minify --format=iife (framework7@9.2.0 installed alongside)
+import Framework7 from './node_modules/framework7/components/app/app-class.js';
+import DeviceModule from './node_modules/framework7/modules/device/device.js';
+import SupportModule from './node_modules/framework7/modules/support/support.js';
+import UtilsModule from './node_modules/framework7/modules/utils/utils.js';
+import ResizeModule from './node_modules/framework7/modules/resize/resize.js';
+import TouchModule from './node_modules/framework7/modules/touch/touch.js';
+import StoreModule from './node_modules/framework7/modules/store/store.js';
+import Swipeout from './node_modules/framework7/components/swipeout/swipeout.js';
+import Modal from './node_modules/framework7/components/modal/modal.js';
+import Sheet from './node_modules/framework7/components/sheet/sheet.js';
+Framework7.use([DeviceModule, SupportModule, UtilsModule, ResizeModule, TouchModule, StoreModule, Swipeout, Modal, Sheet]);
+window.Framework7 = Framework7;
diff --git a/frontend/vendor/framework7-swipe.min.js b/frontend/vendor/framework7-swipe.min.js
new file mode 100644
index 0000000..389a64a
--- /dev/null
+++ b/frontend/vendor/framework7-swipe.min.js
@@ -0,0 +1,234 @@
+/*! Framework7 9.2.0 (core + Swipeout + Sheet subset) | MIT License | (c) 2014-2026 Vladimir Kharlampidi | https://framework7.io */
+(()=>{var E1=Object.defineProperty;var w1=(_)=>_;function k1(_,z){this[_]=w1.bind(null,z)}var s_=(_,z)=>{for(var J in z)E1(_,J,{get:z[J],enumerable:!0,configurable:!0,set:k1.bind(z,J)})};function r_(_){return _!==null&&typeof _==="object"&&"constructor"in _&&_.constructor===Object}function N_(_={},z={}){let J=["__proto__","constructor","prototype"];Object.keys(z).filter((G)=>J.indexOf(G)<0).forEach((G)=>{if(typeof _[G]>"u")_[G]=z[G];else if(r_(z[G])&&r_(_[G])&&Object.keys(z[G]).length>0)N_(_[G],z[G])})}var l_={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Q0(){let _=typeof document<"u"?document:{};return N_(_,l_),_}var v1={document:l_,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(_){if(typeof setTimeout>"u")return _(),null;return setTimeout(_,0)},cancelAnimationFrame(_){if(typeof setTimeout>"u")return;clearTimeout(_)}};function Y0(){let _=typeof window<"u"?window:{};return N_(_,v1),_}var M_={};s_(M_,{uniqueNumber:()=>o1,serializeObject:()=>w_,requestAnimationFrame:()=>E_,parseUrlQuery:()=>G7,now:()=>G_,nextTick:()=>z7,nextFrame:()=>s0,merge:()=>J7,mdPreloaderContent:()=>t1,isObject:()=>p0,iosPreloaderContent:()=>a1,id:()=>b_,getTranslate:()=>$_,flattenArray:()=>K1,extend:()=>e,eventNameToColonCase:()=>e1,deleteProps:()=>g_,colorThemeCSSStyles:()=>q7,colorThemeCSSProperties:()=>v_,colorRgbToHsl:()=>F1,colorRgbToHex:()=>z_,colorHslToRgb:()=>k_,colorHslToHsb:()=>U7,colorHsbToHsl:()=>Z7,colorHexToRgb:()=>v0,cancelAnimationFrame:()=>_7,bindMethods:()=>h_});function y0(_){return _<0?-1:_===0?0:1}function a0(_,z,J){return(1-J)*_+J*z}function b1(_,z,J){return J<_?_:J>z?z:J}function W0(_,z,J){return J<_?_:J>z?z:J}function o_(_){return(_%=360)<0&&(_+=360),_}function N0(_){return(_%=360)<0&&(_+=360),_}function D_(_,z){return[_[0]*z[0][0]+_[1]*z[0][1]+_[2]*z[0][2],_[0]*z[1][0]+_[1]*z[1][1]+_[2]*z[1][2],_[0]*z[2][0]+_[1]*z[2][1]+_[2]*z[2][2]]}var _1=[[0.41233895,0.35762064,0.18051042],[0.2126,0.7152,0.0722],[0.01932141,0.11916382,0.95034478]],g1=[[3.2413774792388685,-1.5376652402851851,-0.49885366846268053],[-0.9691452513005321,1.8758853451067872,0.04156585616912061],[0.05562093689691305,-0.20395524564742123,1.0571799111220335]],O_=[95.047,100,108.883];function j_(_,z,J){return(-16777216|(255&_)<<16|(255&z)<<8|255&J)>>>0}function t_(_){return j_(m0(_[0]),m0(_[1]),m0(_[2]))}function H_(_){return _>>16&255}function x_(_){return _>>8&255}function C_(_){return 255&_}function $1(_,z,J){let G=g1,Z=G[0][0]*_+G[0][1]*z+G[0][2]*J,U=G[1][0]*_+G[1][1]*z+G[1][2]*J,Q=G[2][0]*_+G[2][1]*z+G[2][2]*J;return j_(m0(Z),m0(U),m0(Q))}function h1(_){return D_([k0(H_(_)),k0(x_(_)),k0(C_(_))],_1)}function m1(_){let z=k0(H_(_)),J=k0(x_(_)),G=k0(C_(_)),Z=_1,U=Z[0][0]*z+Z[0][1]*J+Z[0][2]*G,Q=Z[1][0]*z+Z[1][1]*J+Z[1][2]*G,q=Z[2][0]*z+Z[2][1]*J+Z[2][2]*G,Y=Q/O_[1],X=q/O_[2],F=e0(U/O_[0]),A=e0(Y);return[116*A-16,500*(F-A),200*(A-e0(X))]}function u1(_){let z=m0($0(_));return j_(z,z,z)}function a_(_){return 116*e0(h1(_)[1]/100)-16}function $0(_){return 100*c1((_+16)/116)}function P_(_){return 116*e0(_/100)-16}function k0(_){let z=_/255;return z<=0.040449936?z/12.92*100:100*Math.pow((z+0.055)/1.055,2.4)}function m0(_){let z=_/100,J=0;return J=z<=0.0031308?12.92*z:1.055*Math.pow(z,0.4166666666666667)-0.055,b1(0,255,Math.round(255*J))}function d1(){return O_}function e0(_){return _>0.008856451679035631?Math.pow(_,0.3333333333333333):(903.2962962962963*_+16)/116}function c1(_){let z=_*_*_;return z>0.008856451679035631?z:(116*_-16)/903.2962962962963}class S0{static make(_=d1(),z=200/Math.PI*$0(50)/100,J=50,G=2,Z=!1){let U=_,Q=0.401288*U[0]+0.650173*U[1]+-0.051461*U[2],q=-0.250268*U[0]+1.204414*U[1]+0.045854*U[2],Y=-0.002079*U[0]+0.048952*U[1]+0.953127*U[2],X=0.8+G/10,F=X>=0.9?a0(0.59,0.69,10*(X-0.9)):a0(0.525,0.59,10*(X-0.8)),A=Z?1:X*(1-0.2777777777777778*Math.exp((-z-42)/92));A=A>1?1:A<0?0:A;let L=X,V=[A*(100/Q)+1-A,A*(100/q)+1-A,A*(100/Y)+1-A],K=1/(5*z+1),I=K*K*K*K,y=1-I,M=I*z+0.1*y*y*Math.cbrt(5*z),P=$0(J)/_[1],N=1.48+Math.sqrt(P),j=0.725/Math.pow(P,0.2),T=j,x=[Math.pow(M*V[0]*Q/100,0.42),Math.pow(M*V[1]*q/100,0.42),Math.pow(M*V[2]*Y/100,0.42)],E=[400*x[0]/(x[0]+27.13),400*x[1]/(x[1]+27.13),400*x[2]/(x[2]+27.13)];return new S0(P,(2*E[0]+E[1]+0.05*E[2])*j,j,T,F,L,V,M,Math.pow(M,0.25),N)}constructor(_,z,J,G,Z,U,Q,q,Y,X){this.n=_,this.aw=z,this.nbb=J,this.ncb=G,this.c=Z,this.nc=U,this.rgbD=Q,this.fl=q,this.fLRoot=Y,this.z=X}}S0.DEFAULT=S0.make();class f0{constructor(_,z,J,G,Z,U,Q,q,Y){this.hue=_,this.chroma=z,this.j=J,this.q=G,this.m=Z,this.s=U,this.jstar=Q,this.astar=q,this.bstar=Y}distance(_){let z=this.jstar-_.jstar,J=this.astar-_.astar,G=this.bstar-_.bstar,Z=Math.sqrt(z*z+J*J+G*G);return 1.41*Math.pow(Z,0.63)}static fromInt(_){return f0.fromIntInViewingConditions(_,S0.DEFAULT)}static fromIntInViewingConditions(_,z){let J=(65280&_)>>8,G=255&_,Z=k0((16711680&_)>>16),U=k0(J),Q=k0(G),q=0.41233895*Z+0.35762064*U+0.18051042*Q,Y=0.2126*Z+0.7152*U+0.0722*Q,X=0.01932141*Z+0.11916382*U+0.95034478*Q,F=0.401288*q+0.650173*Y-0.051461*X,A=-0.250268*q+1.204414*Y+0.045854*X,L=-0.002079*q+0.048952*Y+0.953127*X,V=z.rgbD[0]*F,K=z.rgbD[1]*A,I=z.rgbD[2]*L,y=Math.pow(z.fl*Math.abs(V)/100,0.42),M=Math.pow(z.fl*Math.abs(K)/100,0.42),P=Math.pow(z.fl*Math.abs(I)/100,0.42),N=400*y0(V)*y/(y+27.13),j=400*y0(K)*M/(M+27.13),T=400*y0(I)*P/(P+27.13),x=(11*N+-12*j+T)/11,E=(N+j-2*T)/9,w=(20*N+20*j+21*T)/20,G0=(40*N+20*j+T)/20,I0=180*Math.atan2(E,x)/Math.PI,a=I0<0?I0+360:I0>=360?I0-360:I0,J0=a*Math.PI/180,r=G0*z.nbb,_0=100*Math.pow(r/z.aw,z.c*z.z),c=4/z.c*Math.sqrt(_0/100)*(z.aw+4)*z.fLRoot,l=a<20.14?a+360:a,p=3846.153846153846*(0.25*(Math.cos(l*Math.PI/180+2)+3.8))*z.nc*z.ncb*Math.sqrt(x*x+E*E)/(w+0.305),h=Math.pow(p,0.9)*Math.pow(1.64-Math.pow(0.29,z.n),0.73),m=h*Math.sqrt(_0/100),n=m*z.fLRoot,u=50*Math.sqrt(h*z.c/(z.aw+4)),d=1.7000000000000002*_0/(1+0.007*_0),K0=43.859649122807014*Math.log(1+0.0228*n),L0=K0*Math.cos(J0),C0=K0*Math.sin(J0);return new f0(a,m,_0,c,n,u,d,L0,C0)}static fromJch(_,z,J){return f0.fromJchInViewingConditions(_,z,J,S0.DEFAULT)}static fromJchInViewingConditions(_,z,J,G){let Z=4/G.c*Math.sqrt(_/100)*(G.aw+4)*G.fLRoot,U=z*G.fLRoot,Q=z/Math.sqrt(_/100),q=50*Math.sqrt(Q*G.c/(G.aw+4)),Y=J*Math.PI/180,X=1.7000000000000002*_/(1+0.007*_),F=43.859649122807014*Math.log(1+0.0228*U),A=F*Math.cos(Y),L=F*Math.sin(Y);return new f0(J,z,_,Z,U,q,X,A,L)}static fromUcs(_,z,J){return f0.fromUcsInViewingConditions(_,z,J,S0.DEFAULT)}static fromUcsInViewingConditions(_,z,J,G){let Z=z,U=J,Q=Math.sqrt(Z*Z+U*U),q=(Math.exp(0.0228*Q)-1)/0.0228/G.fLRoot,Y=Math.atan2(U,Z)*(180/Math.PI);Y<0&&(Y+=360);let X=_/(1-0.007*(_-100));return f0.fromJchInViewingConditions(X,q,Y,G)}toInt(){return this.viewed(S0.DEFAULT)}viewed(_){let z=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),J=Math.pow(z/Math.pow(1.64-Math.pow(0.29,_.n),0.73),1.1111111111111112),G=this.hue*Math.PI/180,Z=0.25*(Math.cos(G+2)+3.8),U=_.aw*Math.pow(this.j/100,1/_.c/_.z),Q=Z*3846.153846153846*_.nc*_.ncb,q=U/_.nbb,Y=Math.sin(G),X=Math.cos(G),F=23*(q+0.305)*J/(23*Q+11*J*X+108*J*Y),A=F*X,L=F*Y,V=(460*q+451*A+288*L)/1403,K=(460*q-891*A-261*L)/1403,I=(460*q-220*A-6300*L)/1403,y=Math.max(0,27.13*Math.abs(V)/(400-Math.abs(V))),M=y0(V)*(100/_.fl)*Math.pow(y,2.380952380952381),P=Math.max(0,27.13*Math.abs(K)/(400-Math.abs(K))),N=y0(K)*(100/_.fl)*Math.pow(P,2.380952380952381),j=Math.max(0,27.13*Math.abs(I)/(400-Math.abs(I))),T=y0(I)*(100/_.fl)*Math.pow(j,2.380952380952381),x=M/_.rgbD[0],E=N/_.rgbD[1],w=T/_.rgbD[2];return $1(1.86206786*x-1.01125463*E+0.14918677*w,0.38752654*x+0.62144744*E-0.00897398*w,-0.0158415*x-0.03412294*E+1.04996444*w)}static fromXyzInViewingConditions(_,z,J,G){let Z=0.401288*_+0.650173*z-0.051461*J,U=-0.250268*_+1.204414*z+0.045854*J,Q=-0.002079*_+0.048952*z+0.953127*J,q=G.rgbD[0]*Z,Y=G.rgbD[1]*U,X=G.rgbD[2]*Q,F=Math.pow(G.fl*Math.abs(q)/100,0.42),A=Math.pow(G.fl*Math.abs(Y)/100,0.42),L=Math.pow(G.fl*Math.abs(X)/100,0.42),V=400*y0(q)*F/(F+27.13),K=400*y0(Y)*A/(A+27.13),I=400*y0(X)*L/(L+27.13),y=(11*V+-12*K+I)/11,M=(V+K-2*I)/9,P=(20*V+20*K+21*I)/20,N=(40*V+20*K+I)/20,j=180*Math.atan2(M,y)/Math.PI,T=j<0?j+360:j>=360?j-360:j,x=T*Math.PI/180,E=N*G.nbb,w=100*Math.pow(E/G.aw,G.c*G.z),G0=4/G.c*Math.sqrt(w/100)*(G.aw+4)*G.fLRoot,I0=T<20.14?T+360:T,a=3846.153846153846*(0.25*(Math.cos(I0*Math.PI/180+2)+3.8))*G.nc*G.ncb*Math.sqrt(y*y+M*M)/(P+0.305),J0=Math.pow(a,0.9)*Math.pow(1.64-Math.pow(0.29,G.n),0.73),r=J0*Math.sqrt(w/100),_0=r*G.fLRoot,c=50*Math.sqrt(J0*G.c/(G.aw+4)),l=1.7000000000000002*w/(1+0.007*w),p=Math.log(1+0.0228*_0)/0.0228,h=p*Math.cos(x),m=p*Math.sin(x);return new f0(T,r,w,G0,_0,c,l,h,m)}xyzInViewingConditions(_){let z=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),J=Math.pow(z/Math.pow(1.64-Math.pow(0.29,_.n),0.73),1.1111111111111112),G=this.hue*Math.PI/180,Z=0.25*(Math.cos(G+2)+3.8),U=_.aw*Math.pow(this.j/100,1/_.c/_.z),Q=Z*3846.153846153846*_.nc*_.ncb,q=U/_.nbb,Y=Math.sin(G),X=Math.cos(G),F=23*(q+0.305)*J/(23*Q+11*J*X+108*J*Y),A=F*X,L=F*Y,V=(460*q+451*A+288*L)/1403,K=(460*q-891*A-261*L)/1403,I=(460*q-220*A-6300*L)/1403,y=Math.max(0,27.13*Math.abs(V)/(400-Math.abs(V))),M=y0(V)*(100/_.fl)*Math.pow(y,2.380952380952381),P=Math.max(0,27.13*Math.abs(K)/(400-Math.abs(K))),N=y0(K)*(100/_.fl)*Math.pow(P,2.380952380952381),j=Math.max(0,27.13*Math.abs(I)/(400-Math.abs(I))),T=y0(I)*(100/_.fl)*Math.pow(j,2.380952380952381),x=M/_.rgbD[0],E=N/_.rgbD[1],w=T/_.rgbD[2];return[1.86206786*x-1.01125463*E+0.14918677*w,0.38752654*x+0.62144744*E-0.00897398*w,-0.0158415*x-0.03412294*E+1.04996444*w]}}class v{static sanitizeRadians(_){return(_+8*Math.PI)%(2*Math.PI)}static trueDelinearized(_){let z=_/100,J=0;return J=z<=0.0031308?12.92*z:1.055*Math.pow(z,0.4166666666666667)-0.055,255*J}static chromaticAdaptation(_){let z=Math.pow(Math.abs(_),0.42);return 400*y0(_)*z/(z+27.13)}static hueOf(_){let z=D_(_,v.SCALED_DISCOUNT_FROM_LINRGB),J=v.chromaticAdaptation(z[0]),G=v.chromaticAdaptation(z[1]),Z=v.chromaticAdaptation(z[2]),U=(11*J+-12*G+Z)/11,Q=(J+G-2*Z)/9;return Math.atan2(Q,U)}static areInCyclicOrder(_,z,J){return v.sanitizeRadians(z-_)
100.01||j[1]>100.01||j[2]>100.01?0:t_(j);G-=(w-J)*G/(2*w)}return 0}static solveToInt(_,z,J){if(z<0.0001||J<0.0001||J>99.9999)return u1(J);let G=(_=N0(_))/180*Math.PI,Z=$0(J),U=v.findResultByJ(G,z,Z);if(U!==0)return U;return t_(v.bisectToLimit(Z,G))}static solveToCam(_,z,J){return f0.fromInt(v.solveToInt(_,z,J))}}v.SCALED_DISCOUNT_FROM_LINRGB=[[0.001200833568784504,0.002389694492170889,0.0002795742885861124],[0.0005891086651375999,0.0029785502573438758,0.0003270666104008398],[0.00010146692491640572,0.0005364214359186694,0.0032979401770712076]],v.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],v.Y_FROM_LINRGB=[0.2126,0.7152,0.0722],v.CRITICAL_PLANES=[0.015176349177441876,0.045529047532325624,0.07588174588720938,0.10623444424209313,0.13658714259697685,0.16693984095186062,0.19729253930674434,0.2276452376616281,0.2579979360165119,0.28835063437139563,0.3188300904430532,0.350925934958123,0.3848314933096426,0.42057480301049466,0.458183274052838,0.4976837250274023,0.5391024159806381,0.5824650784040898,0.6277969426914107,0.6751227633498623,0.7244668422128921,0.775853049866786,0.829304845476233,0.8848452951698498,0.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];class b{static from(_,z,J){return new b(v.solveToInt(_,z,J))}static fromInt(_){return new b(_)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(_){this.setInternalState(v.solveToInt(_,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(_){this.setInternalState(v.solveToInt(this.internalHue,_,this.internalTone))}get tone(){return this.internalTone}set tone(_){this.setInternalState(v.solveToInt(this.internalHue,this.internalChroma,_))}setValue(_,z){this[_]=z}toString(){return`HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(_){return _>=250&&_<270}static isYellow(_){return _>=105&&_<125}static isCyan(_){return _>=170&&_<207}constructor(_){this.argb=_;let z=f0.fromInt(_);this.internalHue=z.hue,this.internalChroma=z.chroma,this.internalTone=a_(_),this.argb=_}setInternalState(_){let z=f0.fromInt(_);this.internalHue=z.hue,this.internalChroma=z.chroma,this.internalTone=a_(_),this.argb=_}inViewingConditions(_){let z=f0.fromInt(this.toInt()).xyzInViewingConditions(_),J=f0.fromXyzInViewingConditions(z[0],z[1],z[2],S0.make());return b.from(J.hue,J.chroma,P_(z[1]))}}class U0{static ratioOfTones(_,z){return _=W0(0,100,_),z=W0(0,100,z),U0.ratioOfYs($0(_),$0(z))}static ratioOfYs(_,z){let J=_>z?_:z;return(J+5)/((J===z?_:z)+5)}static lighter(_,z){if(_<0||_>100)return-1;let J=$0(_),G=z*(J+5)-5,Z=U0.ratioOfYs(G,J),U=Math.abs(Z-z);if(Z0.04)return-1;let Q=P_(G)+0.4;return Q<0||Q>100?-1:Q}static darker(_,z){if(_<0||_>100)return-1;let J=$0(_),G=(J+5)/z-5,Z=U0.ratioOfYs(J,G),U=Math.abs(Z-z);if(Z0.04)return-1;let Q=P_(G)-0.4;return Q<0||Q>100?-1:Q}static lighterUnsafe(_,z){let J=U0.lighter(_,z);return J<0?100:J}static darkerUnsafe(_,z){let J=U0.darker(_,z);return J<0?0:J}}class __{static isDisliked(_){let z=Math.round(_.hue)>=90&&Math.round(_.hue)<=111,J=Math.round(_.chroma)>16,G=Math.round(_.tone)<65;return z&&J&&G}static fixIfDisliked(_){return __.isDisliked(_)?b.from(_.hue,_.chroma,70):_}}function n1(_,z,J){if(_.name!==J.name)throw Error(`Attempting to extend color ${_.name} with color ${J.name} of different name for spec version ${z}.`);if(_.isBackground!==J.isBackground)throw Error(`Attempting to extend color ${_.name} as a ${_.isBackground?"background":"foreground"} with color ${J.name} as a ${J.isBackground?"background":"foreground"} for spec version ${z}.`)}function g(_,z,J){return n1(_,z,J),R.fromPalette({name:_.name,palette:(G)=>G.specVersion===z?J.palette(G):_.palette(G),tone:(G)=>G.specVersion===z?J.tone(G):_.tone(G),isBackground:_.isBackground,chromaMultiplier:(G)=>{let Z=G.specVersion===z?J.chromaMultiplier:_.chromaMultiplier;return Z!==void 0?Z(G):1},background:(G)=>{let Z=G.specVersion===z?J.background:_.background;return Z!==void 0?Z(G):void 0},secondBackground:(G)=>{let Z=G.specVersion===z?J.secondBackground:_.secondBackground;return Z!==void 0?Z(G):void 0},contrastCurve:(G)=>{let Z=G.specVersion===z?J.contrastCurve:_.contrastCurve;return Z!==void 0?Z(G):void 0},toneDeltaPair:(G)=>{let Z=G.specVersion===z?J.toneDeltaPair:_.toneDeltaPair;return Z!==void 0?Z(G):void 0}})}class R{static fromPalette(_){return new R(_.name??"",_.palette,_.tone??R.getInitialToneFromBackground(_.background),_.isBackground??!1,_.chromaMultiplier,_.background,_.secondBackground,_.contrastCurve,_.toneDeltaPair)}static getInitialToneFromBackground(_){return _===void 0?(z)=>50:(z)=>_(z)?_(z).getTone(z):50}constructor(_,z,J,G,Z,U,Q,q,Y){if(this.name=_,this.palette=z,this.tone=J,this.isBackground=G,this.chromaMultiplier=Z,this.background=U,this.secondBackground=Q,this.contrastCurve=q,this.toneDeltaPair=Y,this.hctCache=new Map,!U&&Q)throw Error(`Color ${_} has secondBackgrounddefined, but background is not defined.`);if(!U&&q)throw Error(`Color ${_} has contrastCurvedefined, but background is not defined.`);if(U&&!q)throw Error(`Color ${_} has backgrounddefined, but contrastCurve is not defined.`)}clone(){return R.fromPalette({name:this.name,palette:this.palette,tone:this.tone,isBackground:this.isBackground,chromaMultiplier:this.chromaMultiplier,background:this.background,secondBackground:this.secondBackground,contrastCurve:this.contrastCurve,toneDeltaPair:this.toneDeltaPair})}clearCache(){this.hctCache.clear()}getArgb(_){return this.getHct(_).toInt()}getHct(_){let z=this.hctCache.get(_);if(z!=null)return z;let J=e_(_.specVersion).getHct(_,this);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(_,J),J}getTone(_){return e_(_.specVersion).getTone(_,this)}static foregroundTone(_,z){let J=U0.lighterUnsafe(_,z),G=U0.darkerUnsafe(_,z),Z=U0.ratioOfTones(J,_),U=U0.ratioOfTones(G,_);if(R.tonePrefersLightForeground(_)){let Q=Math.abs(Z-U)<0.1&&Z=z||Z>=U||Q?J:G}return U>=z||U>=Z?G:J}static tonePrefersLightForeground(_){return Math.round(_)<60}static toneAllowsLightForeground(_){return Math.round(_)<=49}static enableLightForeground(_){return R.tonePrefersLightForeground(_)&&!R.toneAllowsLightForeground(_)?49:_}}class z1{getHct(_,z){let J=z.getTone(_);return z.palette(_).getHct(J)}getTone(_,z){let J=_.contrastLevel<0,G=z.toneDeltaPair?z.toneDeltaPair(_):void 0;if(G){let{roleA:Z,roleB:U,delta:Q,polarity:q,stayTogether:Y}=G,X=q==="nearer"||q==="lighter"&&!_.isDark||q==="darker"&&_.isDark,F=X?Z:U,A=X?U:Z,L=z.name===F.name,V=_.isDark?1:-1,K=F.tone(_),I=A.tone(_);if(z.background&&F.contrastCurve&&A.contrastCurve){let y=z.background(_),M=F.contrastCurve(_),P=A.contrastCurve(_);if(y&&M&&P){let N=y.getTone(_),j=M.get(_.contrastLevel),T=P.get(_.contrastLevel);U0.ratioOfTones(N,K)=Q||(K=W0(0,100,I-Q*V))),50<=K&&K<60?V>0?(K=60,I=Math.max(I,K+Q*V)):(K=49,I=Math.min(I,K+Q*V)):50<=I&&I<60&&(Y?V>0?(K=60,I=Math.max(I,K+Q*V)):(K=49,I=Math.min(I,K+Q*V)):I=V>0?60:49),L?K:I}{let Z=z.tone(_);if(z.background==null||z.background(_)===void 0||z.contrastCurve==null||z.contrastCurve(_)===void 0)return Z;let U=z.background(_).getTone(_),Q=z.contrastCurve(_).get(_.contrastLevel);if(U0.ratioOfTones(U,Z)>=Q||(Z=R.foregroundTone(U,Q)),J&&(Z=R.foregroundTone(U,Q)),z.isBackground&&50<=Z&&Z<60&&(Z=U0.ratioOfTones(49,U)>=Q?49:60),z.secondBackground==null||z.secondBackground(_)===void 0)return Z;let[q,Y]=[z.background,z.secondBackground],[X,F]=[q(_).getTone(_),Y(_).getTone(_)],[A,L]=[Math.max(X,F),Math.min(X,F)];if(U0.ratioOfTones(A,Z)>=Q&&U0.ratioOfTones(L,Z)>=Q)return Z;let V=U0.lighter(A,Q),K=U0.darker(L,Q),I=[];return V!==-1&&I.push(V),K!==-1&&I.push(K),R.tonePrefersLightForeground(X)||R.tonePrefersLightForeground(F)?V<0?100:V:I.length===1?I[0]:K<0?0:K}}}class G1{getHct(_,z){let J=z.palette(_),G=z.getTone(_),Z=J.hue,U=J.chroma*(z.chromaMultiplier?z.chromaMultiplier(_):1);return b.from(Z,U,G)}getTone(_,z){let J=z.toneDeltaPair?z.toneDeltaPair(_):void 0;if(J){let{roleA:G,roleB:Z,polarity:U,constraint:Q}=J,q=U==="darker"||U==="relative_lighter"&&_.isDark||U==="relative_darker"&&!_.isDark?-J.delta:J.delta,Y=z.name===G.name,X=Y?Z:G,F=(Y?G:Z).tone(_),A=X.getTone(_),L=q*(Y?1:-1);if(Q==="exact"?F=W0(0,100,A+L):Q==="nearer"?F=W0(0,100,L>0?W0(A,A+L,F):W0(A+L,A,F)):Q==="farther"&&(F=L>0?W0(A+L,100,F):W0(0,A+L,F)),z.background&&z.contrastCurve){let V=z.background(_),K=z.contrastCurve(_);if(V&&K){let I=V.getTone(_),y=K.get(_.contrastLevel);F=U0.ratioOfTones(I,F)>=y&&_.contrastLevel>=0?F:R.foregroundTone(I,y)}}return z.isBackground&&!z.name.endsWith("_fixed_dim")&&(F=F>=57?W0(65,100,F):W0(0,49,F)),F}{let G=z.tone(_);if(z.background==null||z.background(_)===void 0||z.contrastCurve==null||z.contrastCurve(_)===void 0)return G;let Z=z.background(_).getTone(_),U=z.contrastCurve(_).get(_.contrastLevel);if(G=U0.ratioOfTones(Z,G)>=U&&_.contrastLevel>=0?G:R.foregroundTone(Z,U),z.isBackground&&!z.name.endsWith("_fixed_dim")&&(G=G>=57?W0(65,100,G):W0(0,49,G)),z.secondBackground==null||z.secondBackground(_)===void 0)return G;let[Q,q]=[z.background,z.secondBackground],[Y,X]=[Q(_).getTone(_),q(_).getTone(_)],[F,A]=[Math.max(Y,X),Math.min(Y,X)];if(U0.ratioOfTones(F,G)>=U&&U0.ratioOfTones(A,G)>=U)return G;let L=U0.lighter(F,U),V=U0.darker(A,U),K=[];return L!==-1&&K.push(L),V!==-1&&K.push(V),R.tonePrefersLightForeground(Y)||R.tonePrefersLightForeground(X)?L<0?100:L:K.length===1?K[0]:V<0?0:V}}}var i1=new z1,p1=new G1;function e_(_){return _==="2025"?p1:i1}class H{static fromInt(_){let z=b.fromInt(_);return H.fromHct(z)}static fromHct(_){return new H(_.hue,_.chroma,_)}static fromHueAndChroma(_,z){let J=new J1(_,z).create();return new H(_,z,J)}constructor(_,z,J){this.hue=_,this.chroma=z,this.keyColor=J,this.cache=new Map}tone(_){let z=this.cache.get(_);return z===void 0&&(z=_==99&&b.isYellow(this.hue)?this.averageArgb(this.tone(98),this.tone(100)):b.from(this.hue,this.chroma,_).toInt(),this.cache.set(_,z)),z}getHct(_){return b.fromInt(this.tone(_))}averageArgb(_,z){let J=_>>>16&255,G=_>>>8&255,Z=255&_,U=z>>>16&255,Q=z>>>8&255,q=255&z;return(-16777216|(255&Math.round((J+U)/2))<<16|(255&Math.round((G+Q)/2))<<8|255&Math.round((Z+q)/2))>>>0}}class J1{constructor(_,z){this.hue=_,this.requestedChroma=z,this.chromaCache=new Map,this.maxChromaValue=200}create(){let _=0,z=100;for(;_=this.requestedChroma-0.01)if(Math.abs(_-50)0)return this.hctsByTempCache;let _=this.hctsByHue.concat([this.input]),z=this.tempsByHct;return _.sort((J,G)=>z.get(J)-z.get(G)),this.hctsByTempCache=_,_}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(_=5,z=12){let J=Math.round(this.input.hue),G=this.hctsByHue[J],Z=this.relativeTemperature(G),U=[G],Q=0;for(let V=0;V<360;V++){let K=o_(J+V),I=this.hctsByHue[K],y=this.relativeTemperature(I),M=Math.abs(y-Z);Z=y,Q+=M}let q=1,Y=Q/z,X=0;for(Z=this.relativeTemperature(G);U.length=U.length*Y,M=1;for(;y&&U.length=(U.length+M)*Y,M++;if(Z=I,q++,q>360){for(;U.length=U.length&&(K%=U.length),F.splice(0,0,U[K])}let L=_-A-1;for(let V=1;V=U.length&&(K%=U.length),F.push(U[K])}return F}get complement(){if(this.complementCache!=null)return this.complementCache;let _=this.coldest.hue,z=this.tempsByHct.get(this.coldest),J=this.warmest.hue,G=this.tempsByHct.get(this.warmest)-z,Z=i0.isBetween(this.input.hue,_,J),U=Z?J:_,Q=Z?_:J,q=1000,Y=this.hctsByHue[Math.round(this.input.hue)],X=1-this.inputRelativeTemperature;for(let F=0;F<=360;F+=1){let A=N0(U+1*F);if(!i0.isBetween(A,U,Q))continue;let L=this.hctsByHue[Math.round(A)],V=(this.tempsByHct.get(L)-z)/G,K=Math.abs(X-V);K=0||(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input)),this.inputRelativeTemperatureCache}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;let _=this.hctsByHue.concat([this.input]),z=new Map;for(let J of _)z.set(J,i0.rawTemperature(J));return this.tempsByHctCache=z,z}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;let _=[];for(let z=0;z<=360;z+=1){let J=b.from(z,this.input.chroma,this.input.tone);_.push(J)}return this.hctsByHueCache=_,this.hctsByHueCache}static isBetween(_,z,J){return zq.chroma)break;if(Math.abs(q.chroma-z)<0.4)break;Math.abs(q.chroma-z)_.primaryPalette,tone:(_)=>_.primaryPalette.keyColor.tone})}secondaryPaletteKeyColor(){return R.fromPalette({name:"secondary_palette_key_color",palette:(_)=>_.secondaryPalette,tone:(_)=>_.secondaryPalette.keyColor.tone})}tertiaryPaletteKeyColor(){return R.fromPalette({name:"tertiary_palette_key_color",palette:(_)=>_.tertiaryPalette,tone:(_)=>_.tertiaryPalette.keyColor.tone})}neutralPaletteKeyColor(){return R.fromPalette({name:"neutral_palette_key_color",palette:(_)=>_.neutralPalette,tone:(_)=>_.neutralPalette.keyColor.tone})}neutralVariantPaletteKeyColor(){return R.fromPalette({name:"neutral_variant_palette_key_color",palette:(_)=>_.neutralVariantPalette,tone:(_)=>_.neutralVariantPalette.keyColor.tone})}errorPaletteKeyColor(){return R.fromPalette({name:"error_palette_key_color",palette:(_)=>_.errorPalette,tone:(_)=>_.errorPalette.keyColor.tone})}background(){return R.fromPalette({name:"background",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?6:98,isBackground:!0})}onBackground(){return R.fromPalette({name:"on_background",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?90:10,background:(_)=>this.background(),contrastCurve:(_)=>new C(3,3,4.5,7)})}surface(){return R.fromPalette({name:"surface",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?6:98,isBackground:!0})}surfaceDim(){return R.fromPalette({name:"surface_dim",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?6:new C(87,87,80,75).get(_.contrastLevel),isBackground:!0})}surfaceBright(){return R.fromPalette({name:"surface_bright",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?new C(24,24,29,34).get(_.contrastLevel):98,isBackground:!0})}surfaceContainerLowest(){return R.fromPalette({name:"surface_container_lowest",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?new C(4,4,2,0).get(_.contrastLevel):100,isBackground:!0})}surfaceContainerLow(){return R.fromPalette({name:"surface_container_low",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?new C(10,10,11,12).get(_.contrastLevel):new C(96,96,96,95).get(_.contrastLevel),isBackground:!0})}surfaceContainer(){return R.fromPalette({name:"surface_container",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?new C(12,12,16,20).get(_.contrastLevel):new C(94,94,92,90).get(_.contrastLevel),isBackground:!0})}surfaceContainerHigh(){return R.fromPalette({name:"surface_container_high",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?new C(17,17,21,25).get(_.contrastLevel):new C(92,92,88,85).get(_.contrastLevel),isBackground:!0})}surfaceContainerHighest(){return R.fromPalette({name:"surface_container_highest",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?new C(22,22,26,30).get(_.contrastLevel):new C(90,90,84,80).get(_.contrastLevel),isBackground:!0})}onSurface(){return R.fromPalette({name:"on_surface",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?90:10,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(4.5,7,11,21)})}surfaceVariant(){return R.fromPalette({name:"surface_variant",palette:(_)=>_.neutralVariantPalette,tone:(_)=>_.isDark?30:90,isBackground:!0})}onSurfaceVariant(){return R.fromPalette({name:"on_surface_variant",palette:(_)=>_.neutralVariantPalette,tone:(_)=>_.isDark?80:30,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(3,4.5,7,11)})}inverseSurface(){return R.fromPalette({name:"inverse_surface",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?90:20,isBackground:!0})}inverseOnSurface(){return R.fromPalette({name:"inverse_on_surface",palette:(_)=>_.neutralPalette,tone:(_)=>_.isDark?20:95,background:(_)=>this.inverseSurface(),contrastCurve:(_)=>new C(4.5,7,11,21)})}outline(){return R.fromPalette({name:"outline",palette:(_)=>_.neutralVariantPalette,tone:(_)=>_.isDark?60:50,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1.5,3,4.5,7)})}outlineVariant(){return R.fromPalette({name:"outline_variant",palette:(_)=>_.neutralVariantPalette,tone:(_)=>_.isDark?30:80,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5)})}shadow(){return R.fromPalette({name:"shadow",palette:(_)=>_.neutralPalette,tone:(_)=>0})}scrim(){return R.fromPalette({name:"scrim",palette:(_)=>_.neutralPalette,tone:(_)=>0})}surfaceTint(){return R.fromPalette({name:"surface_tint",palette:(_)=>_.primaryPalette,tone:(_)=>_.isDark?80:40,isBackground:!0})}primary(){return R.fromPalette({name:"primary",palette:(_)=>_.primaryPalette,tone:(_)=>X0(_)?_.isDark?100:0:_.isDark?80:40,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(3,4.5,7,7),toneDeltaPair:(_)=>new t(this.primaryContainer(),this.primary(),10,"nearer",!1)})}primaryDim(){}onPrimary(){return R.fromPalette({name:"on_primary",palette:(_)=>_.primaryPalette,tone:(_)=>X0(_)?_.isDark?10:90:_.isDark?20:100,background:(_)=>this.primary(),contrastCurve:(_)=>new C(4.5,7,11,21)})}primaryContainer(){return R.fromPalette({name:"primary_container",palette:(_)=>_.primaryPalette,tone:(_)=>c0(_)?_.sourceColorHct.tone:X0(_)?_.isDark?85:25:_.isDark?30:90,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5),toneDeltaPair:(_)=>new t(this.primaryContainer(),this.primary(),10,"nearer",!1)})}onPrimaryContainer(){return R.fromPalette({name:"on_primary_container",palette:(_)=>_.primaryPalette,tone:(_)=>c0(_)?R.foregroundTone(this.primaryContainer().tone(_),4.5):X0(_)?_.isDark?0:100:_.isDark?90:30,background:(_)=>this.primaryContainer(),contrastCurve:(_)=>new C(3,4.5,7,11)})}inversePrimary(){return R.fromPalette({name:"inverse_primary",palette:(_)=>_.primaryPalette,tone:(_)=>_.isDark?40:80,background:(_)=>this.inverseSurface(),contrastCurve:(_)=>new C(3,4.5,7,7)})}secondary(){return R.fromPalette({name:"secondary",palette:(_)=>_.secondaryPalette,tone:(_)=>_.isDark?80:40,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(3,4.5,7,7),toneDeltaPair:(_)=>new t(this.secondaryContainer(),this.secondary(),10,"nearer",!1)})}secondaryDim(){}onSecondary(){return R.fromPalette({name:"on_secondary",palette:(_)=>_.secondaryPalette,tone:(_)=>X0(_)?_.isDark?10:100:_.isDark?20:100,background:(_)=>this.secondary(),contrastCurve:(_)=>new C(4.5,7,11,21)})}secondaryContainer(){return R.fromPalette({name:"secondary_container",palette:(_)=>_.secondaryPalette,tone:(_)=>{let z=_.isDark?30:90;return X0(_)?_.isDark?30:85:c0(_)?s1(_.secondaryPalette.hue,_.secondaryPalette.chroma,z,!_.isDark):z},isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5),toneDeltaPair:(_)=>new t(this.secondaryContainer(),this.secondary(),10,"nearer",!1)})}onSecondaryContainer(){return R.fromPalette({name:"on_secondary_container",palette:(_)=>_.secondaryPalette,tone:(_)=>X0(_)?_.isDark?90:10:c0(_)?R.foregroundTone(this.secondaryContainer().tone(_),4.5):_.isDark?90:30,background:(_)=>this.secondaryContainer(),contrastCurve:(_)=>new C(3,4.5,7,11)})}tertiary(){return R.fromPalette({name:"tertiary",palette:(_)=>_.tertiaryPalette,tone:(_)=>X0(_)?_.isDark?90:25:_.isDark?80:40,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(3,4.5,7,7),toneDeltaPair:(_)=>new t(this.tertiaryContainer(),this.tertiary(),10,"nearer",!1)})}tertiaryDim(){}onTertiary(){return R.fromPalette({name:"on_tertiary",palette:(_)=>_.tertiaryPalette,tone:(_)=>X0(_)?_.isDark?10:90:_.isDark?20:100,background:(_)=>this.tertiary(),contrastCurve:(_)=>new C(4.5,7,11,21)})}tertiaryContainer(){return R.fromPalette({name:"tertiary_container",palette:(_)=>_.tertiaryPalette,tone:(_)=>{if(X0(_))return _.isDark?60:49;if(!c0(_))return _.isDark?30:90;let z=_.tertiaryPalette.getHct(_.sourceColorHct.tone);return __.fixIfDisliked(z).tone},isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5),toneDeltaPair:(_)=>new t(this.tertiaryContainer(),this.tertiary(),10,"nearer",!1)})}onTertiaryContainer(){return R.fromPalette({name:"on_tertiary_container",palette:(_)=>_.tertiaryPalette,tone:(_)=>X0(_)?_.isDark?0:100:c0(_)?R.foregroundTone(this.tertiaryContainer().tone(_),4.5):_.isDark?90:30,background:(_)=>this.tertiaryContainer(),contrastCurve:(_)=>new C(3,4.5,7,11)})}error(){return R.fromPalette({name:"error",palette:(_)=>_.errorPalette,tone:(_)=>_.isDark?80:40,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(3,4.5,7,7),toneDeltaPair:(_)=>new t(this.errorContainer(),this.error(),10,"nearer",!1)})}errorDim(){}onError(){return R.fromPalette({name:"on_error",palette:(_)=>_.errorPalette,tone:(_)=>_.isDark?20:100,background:(_)=>this.error(),contrastCurve:(_)=>new C(4.5,7,11,21)})}errorContainer(){return R.fromPalette({name:"error_container",palette:(_)=>_.errorPalette,tone:(_)=>_.isDark?30:90,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5),toneDeltaPair:(_)=>new t(this.errorContainer(),this.error(),10,"nearer",!1)})}onErrorContainer(){return R.fromPalette({name:"on_error_container",palette:(_)=>_.errorPalette,tone:(_)=>X0(_)?_.isDark?90:10:_.isDark?90:30,background:(_)=>this.errorContainer(),contrastCurve:(_)=>new C(3,4.5,7,11)})}primaryFixed(){return R.fromPalette({name:"primary_fixed",palette:(_)=>_.primaryPalette,tone:(_)=>X0(_)?40:90,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5),toneDeltaPair:(_)=>new t(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",!0)})}primaryFixedDim(){return R.fromPalette({name:"primary_fixed_dim",palette:(_)=>_.primaryPalette,tone:(_)=>X0(_)?30:80,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5),toneDeltaPair:(_)=>new t(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",!0)})}onPrimaryFixed(){return R.fromPalette({name:"on_primary_fixed",palette:(_)=>_.primaryPalette,tone:(_)=>X0(_)?100:10,background:(_)=>this.primaryFixedDim(),secondBackground:(_)=>this.primaryFixed(),contrastCurve:(_)=>new C(4.5,7,11,21)})}onPrimaryFixedVariant(){return R.fromPalette({name:"on_primary_fixed_variant",palette:(_)=>_.primaryPalette,tone:(_)=>X0(_)?90:30,background:(_)=>this.primaryFixedDim(),secondBackground:(_)=>this.primaryFixed(),contrastCurve:(_)=>new C(3,4.5,7,11)})}secondaryFixed(){return R.fromPalette({name:"secondary_fixed",palette:(_)=>_.secondaryPalette,tone:(_)=>X0(_)?80:90,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5),toneDeltaPair:(_)=>new t(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",!0)})}secondaryFixedDim(){return R.fromPalette({name:"secondary_fixed_dim",palette:(_)=>_.secondaryPalette,tone:(_)=>X0(_)?70:80,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5),toneDeltaPair:(_)=>new t(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",!0)})}onSecondaryFixed(){return R.fromPalette({name:"on_secondary_fixed",palette:(_)=>_.secondaryPalette,tone:(_)=>10,background:(_)=>this.secondaryFixedDim(),secondBackground:(_)=>this.secondaryFixed(),contrastCurve:(_)=>new C(4.5,7,11,21)})}onSecondaryFixedVariant(){return R.fromPalette({name:"on_secondary_fixed_variant",palette:(_)=>_.secondaryPalette,tone:(_)=>X0(_)?25:30,background:(_)=>this.secondaryFixedDim(),secondBackground:(_)=>this.secondaryFixed(),contrastCurve:(_)=>new C(3,4.5,7,11)})}tertiaryFixed(){return R.fromPalette({name:"tertiary_fixed",palette:(_)=>_.tertiaryPalette,tone:(_)=>X0(_)?40:90,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5),toneDeltaPair:(_)=>new t(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",!0)})}tertiaryFixedDim(){return R.fromPalette({name:"tertiary_fixed_dim",palette:(_)=>_.tertiaryPalette,tone:(_)=>X0(_)?30:80,isBackground:!0,background:(_)=>this.highestSurface(_),contrastCurve:(_)=>new C(1,1,3,4.5),toneDeltaPair:(_)=>new t(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",!0)})}onTertiaryFixed(){return R.fromPalette({name:"on_tertiary_fixed",palette:(_)=>_.tertiaryPalette,tone:(_)=>X0(_)?100:10,background:(_)=>this.tertiaryFixedDim(),secondBackground:(_)=>this.tertiaryFixed(),contrastCurve:(_)=>new C(4.5,7,11,21)})}onTertiaryFixedVariant(){return R.fromPalette({name:"on_tertiary_fixed_variant",palette:(_)=>_.tertiaryPalette,tone:(_)=>X0(_)?90:30,background:(_)=>this.tertiaryFixedDim(),secondBackground:(_)=>this.tertiaryFixed(),contrastCurve:(_)=>new C(3,4.5,7,11)})}highestSurface(_){return _.isDark?this.surfaceBright():this.surfaceDim()}}function i(_,z=0,J=100,G=1){return W0(z,J,U1(_.hue,_.chroma*G,100,!0))}function g0(_,z=0,J=100){return W0(z,J,U1(_.hue,_.chroma,0,!1))}function U1(_,z,J,G){let Z=J,U=b.from(_,z,Z);for(;U.chroma100);){J+=G?-1:1;let Q=b.from(_,z,J);U.chromaz.neutralPalette,tone:(z)=>(super.surface().tone(z),z.platform==="phone"?z.isDark?4:b.isYellow(z.neutralPalette.hue)?99:z.variant===W.VIBRANT?97:98:0),isBackground:!0});return g(super.surface(),"2025",_)}surfaceDim(){let _=R.fromPalette({name:"surface_dim",palette:(z)=>z.neutralPalette,tone:(z)=>z.isDark?4:b.isYellow(z.neutralPalette.hue)?90:z.variant===W.VIBRANT?85:87,isBackground:!0,chromaMultiplier:(z)=>{if(!z.isDark){if(z.variant===W.NEUTRAL)return 2.5;if(z.variant===W.TONAL_SPOT)return 1.7;if(z.variant===W.EXPRESSIVE)return b.isYellow(z.neutralPalette.hue)?2.7:1.75;if(z.variant===W.VIBRANT)return 1.36}return 1}});return g(super.surfaceDim(),"2025",_)}surfaceBright(){let _=R.fromPalette({name:"surface_bright",palette:(z)=>z.neutralPalette,tone:(z)=>z.isDark?18:b.isYellow(z.neutralPalette.hue)?99:z.variant===W.VIBRANT?97:98,isBackground:!0,chromaMultiplier:(z)=>{if(z.isDark){if(z.variant===W.NEUTRAL)return 2.5;if(z.variant===W.TONAL_SPOT)return 1.7;if(z.variant===W.EXPRESSIVE)return b.isYellow(z.neutralPalette.hue)?2.7:1.75;if(z.variant===W.VIBRANT)return 1.36}return 1}});return g(super.surfaceBright(),"2025",_)}surfaceContainerLowest(){let _=R.fromPalette({name:"surface_container_lowest",palette:(z)=>z.neutralPalette,tone:(z)=>z.isDark?0:100,isBackground:!0});return g(super.surfaceContainerLowest(),"2025",_)}surfaceContainerLow(){let _=R.fromPalette({name:"surface_container_low",palette:(z)=>z.neutralPalette,tone:(z)=>z.platform==="phone"?z.isDark?6:b.isYellow(z.neutralPalette.hue)?98:z.variant===W.VIBRANT?95:96:15,isBackground:!0,chromaMultiplier:(z)=>{if(z.platform==="phone"){if(z.variant===W.NEUTRAL)return 1.3;if(z.variant===W.TONAL_SPOT)return 1.25;if(z.variant===W.EXPRESSIVE)return b.isYellow(z.neutralPalette.hue)?1.3:1.15;if(z.variant===W.VIBRANT)return 1.08}return 1}});return g(super.surfaceContainerLow(),"2025",_)}surfaceContainer(){let _=R.fromPalette({name:"surface_container",palette:(z)=>z.neutralPalette,tone:(z)=>z.platform==="phone"?z.isDark?9:b.isYellow(z.neutralPalette.hue)?96:z.variant===W.VIBRANT?92:94:20,isBackground:!0,chromaMultiplier:(z)=>{if(z.platform==="phone"){if(z.variant===W.NEUTRAL)return 1.6;if(z.variant===W.TONAL_SPOT)return 1.4;if(z.variant===W.EXPRESSIVE)return b.isYellow(z.neutralPalette.hue)?1.6:1.3;if(z.variant===W.VIBRANT)return 1.15}return 1}});return g(super.surfaceContainer(),"2025",_)}surfaceContainerHigh(){let _=R.fromPalette({name:"surface_container_high",palette:(z)=>z.neutralPalette,tone:(z)=>z.platform==="phone"?z.isDark?12:b.isYellow(z.neutralPalette.hue)?94:z.variant===W.VIBRANT?90:92:25,isBackground:!0,chromaMultiplier:(z)=>{if(z.platform==="phone"){if(z.variant===W.NEUTRAL)return 1.9;if(z.variant===W.TONAL_SPOT)return 1.5;if(z.variant===W.EXPRESSIVE)return b.isYellow(z.neutralPalette.hue)?1.95:1.45;if(z.variant===W.VIBRANT)return 1.22}return 1}});return g(super.surfaceContainerHigh(),"2025",_)}surfaceContainerHighest(){let _=R.fromPalette({name:"surface_container_highest",palette:(z)=>z.neutralPalette,tone:(z)=>z.isDark?15:b.isYellow(z.neutralPalette.hue)?92:z.variant===W.VIBRANT?88:90,isBackground:!0,chromaMultiplier:(z)=>z.variant===W.NEUTRAL?2.2:z.variant===W.TONAL_SPOT?1.7:z.variant===W.EXPRESSIVE?b.isYellow(z.neutralPalette.hue)?2.3:1.6:z.variant===W.VIBRANT?1.29:1});return g(super.surfaceContainerHighest(),"2025",_)}onSurface(){let _=R.fromPalette({name:"on_surface",palette:(z)=>z.neutralPalette,tone:(z)=>z.variant===W.VIBRANT?i(z.neutralPalette,0,100,1.1):R.getInitialToneFromBackground((J)=>J.platform==="phone"?this.highestSurface(J):this.surfaceContainerHigh())(z),chromaMultiplier:(z)=>{if(z.platform==="phone"){if(z.variant===W.NEUTRAL)return 2.2;if(z.variant===W.TONAL_SPOT)return 1.7;if(z.variant===W.EXPRESSIVE)return b.isYellow(z.neutralPalette.hue)?z.isDark?3:2.3:1.6}return 1},background:(z)=>z.platform==="phone"?this.highestSurface(z):this.surfaceContainerHigh(),contrastCurve:(z)=>z.isDark?S(11):S(9)});return g(super.onSurface(),"2025",_)}onSurfaceVariant(){let _=R.fromPalette({name:"on_surface_variant",palette:(z)=>z.neutralPalette,chromaMultiplier:(z)=>{if(z.platform==="phone"){if(z.variant===W.NEUTRAL)return 2.2;if(z.variant===W.TONAL_SPOT)return 1.7;if(z.variant===W.EXPRESSIVE)return b.isYellow(z.neutralPalette.hue)?z.isDark?3:2.3:1.6}return 1},background:(z)=>z.platform==="phone"?this.highestSurface(z):this.surfaceContainerHigh(),contrastCurve:(z)=>z.platform==="phone"?z.isDark?S(6):S(4.5):S(7)});return g(super.onSurfaceVariant(),"2025",_)}outline(){let _=R.fromPalette({name:"outline",palette:(z)=>z.neutralPalette,chromaMultiplier:(z)=>{if(z.platform==="phone"){if(z.variant===W.NEUTRAL)return 2.2;if(z.variant===W.TONAL_SPOT)return 1.7;if(z.variant===W.EXPRESSIVE)return b.isYellow(z.neutralPalette.hue)?z.isDark?3:2.3:1.6}return 1},background:(z)=>z.platform==="phone"?this.highestSurface(z):this.surfaceContainerHigh(),contrastCurve:(z)=>z.platform==="phone"?S(3):S(4.5)});return g(super.outline(),"2025",_)}outlineVariant(){let _=R.fromPalette({name:"outline_variant",palette:(z)=>z.neutralPalette,chromaMultiplier:(z)=>{if(z.platform==="phone"){if(z.variant===W.NEUTRAL)return 2.2;if(z.variant===W.TONAL_SPOT)return 1.7;if(z.variant===W.EXPRESSIVE)return b.isYellow(z.neutralPalette.hue)?z.isDark?3:2.3:1.6}return 1},background:(z)=>z.platform==="phone"?this.highestSurface(z):this.surfaceContainerHigh(),contrastCurve:(z)=>z.platform==="phone"?S(1.5):S(3)});return g(super.outlineVariant(),"2025",_)}inverseSurface(){let _=R.fromPalette({name:"inverse_surface",palette:(z)=>z.neutralPalette,tone:(z)=>z.isDark?98:4,isBackground:!0});return g(super.inverseSurface(),"2025",_)}inverseOnSurface(){let _=R.fromPalette({name:"inverse_on_surface",palette:(z)=>z.neutralPalette,background:(z)=>this.inverseSurface(),contrastCurve:(z)=>S(7)});return g(super.inverseOnSurface(),"2025",_)}primary(){let _=R.fromPalette({name:"primary",palette:(z)=>z.primaryPalette,tone:(z)=>z.variant===W.NEUTRAL?z.platform==="phone"?z.isDark?80:40:90:z.variant===W.TONAL_SPOT?z.platform==="phone"?z.isDark?80:i(z.primaryPalette):i(z.primaryPalette,0,90):z.variant===W.EXPRESSIVE?i(z.primaryPalette,0,b.isYellow(z.primaryPalette.hue)?25:b.isCyan(z.primaryPalette.hue)?88:98):i(z.primaryPalette,0,b.isCyan(z.primaryPalette.hue)?88:98),isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):this.surfaceContainerHigh(),contrastCurve:(z)=>z.platform==="phone"?S(4.5):S(7),toneDeltaPair:(z)=>z.platform==="phone"?new t(this.primaryContainer(),this.primary(),5,"relative_lighter",!0,"farther"):void 0});return g(super.primary(),"2025",_)}primaryDim(){return R.fromPalette({name:"primary_dim",palette:(_)=>_.primaryPalette,tone:(_)=>_.variant===W.NEUTRAL?85:_.variant===W.TONAL_SPOT?i(_.primaryPalette,0,90):i(_.primaryPalette),isBackground:!0,background:(_)=>this.surfaceContainerHigh(),contrastCurve:(_)=>S(4.5),toneDeltaPair:(_)=>new t(this.primaryDim(),this.primary(),5,"darker",!0,"farther")})}onPrimary(){let _=R.fromPalette({name:"on_primary",palette:(z)=>z.primaryPalette,background:(z)=>z.platform==="phone"?this.primary():this.primaryDim(),contrastCurve:(z)=>z.platform==="phone"?S(6):S(7)});return g(super.onPrimary(),"2025",_)}primaryContainer(){let _=R.fromPalette({name:"primary_container",palette:(z)=>z.primaryPalette,tone:(z)=>z.platform==="watch"?30:z.variant===W.NEUTRAL?z.isDark?30:90:z.variant===W.TONAL_SPOT?z.isDark?g0(z.primaryPalette,35,93):i(z.primaryPalette,0,90):z.variant===W.EXPRESSIVE?z.isDark?i(z.primaryPalette,30,93):i(z.primaryPalette,78,b.isCyan(z.primaryPalette.hue)?88:90):z.isDark?g0(z.primaryPalette,66,93):i(z.primaryPalette,66,b.isCyan(z.primaryPalette.hue)?88:93),isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):void 0,toneDeltaPair:(z)=>z.platform==="phone"?void 0:new t(this.primaryContainer(),this.primaryDim(),10,"darker",!0,"farther"),contrastCurve:(z)=>z.platform==="phone"&&z.contrastLevel>0?S(1.5):void 0});return g(super.primaryContainer(),"2025",_)}onPrimaryContainer(){let _=R.fromPalette({name:"on_primary_container",palette:(z)=>z.primaryPalette,background:(z)=>this.primaryContainer(),contrastCurve:(z)=>z.platform==="phone"?S(6):S(7)});return g(super.onPrimaryContainer(),"2025",_)}primaryFixed(){let _=R.fromPalette({name:"primary_fixed",palette:(z)=>z.primaryPalette,tone:(z)=>{let J=Object.assign({},z,{isDark:!1,contrastLevel:0});return this.primaryContainer().getTone(J)},isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):void 0,contrastCurve:(z)=>z.platform==="phone"&&z.contrastLevel>0?S(1.5):void 0});return g(super.primaryFixed(),"2025",_)}primaryFixedDim(){let _=R.fromPalette({name:"primary_fixed_dim",palette:(z)=>z.primaryPalette,tone:(z)=>this.primaryFixed().getTone(z),isBackground:!0,toneDeltaPair:(z)=>new t(this.primaryFixedDim(),this.primaryFixed(),5,"darker",!0,"exact")});return g(super.primaryFixedDim(),"2025",_)}onPrimaryFixed(){let _=R.fromPalette({name:"on_primary_fixed",palette:(z)=>z.primaryPalette,background:(z)=>this.primaryFixedDim(),contrastCurve:(z)=>S(7)});return g(super.onPrimaryFixed(),"2025",_)}onPrimaryFixedVariant(){let _=R.fromPalette({name:"on_primary_fixed_variant",palette:(z)=>z.primaryPalette,background:(z)=>this.primaryFixedDim(),contrastCurve:(z)=>S(4.5)});return g(super.onPrimaryFixedVariant(),"2025",_)}inversePrimary(){let _=R.fromPalette({name:"inverse_primary",palette:(z)=>z.primaryPalette,tone:(z)=>i(z.primaryPalette),background:(z)=>this.inverseSurface(),contrastCurve:(z)=>z.platform==="phone"?S(6):S(7)});return g(super.inversePrimary(),"2025",_)}secondary(){let _=R.fromPalette({name:"secondary",palette:(z)=>z.secondaryPalette,tone:(z)=>z.platform==="watch"?z.variant===W.NEUTRAL?90:i(z.secondaryPalette,0,90):z.variant===W.NEUTRAL?z.isDark?g0(z.secondaryPalette,0,98):i(z.secondaryPalette):z.variant===W.VIBRANT?i(z.secondaryPalette,0,z.isDark?90:98):z.isDark?80:i(z.secondaryPalette),isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):this.surfaceContainerHigh(),contrastCurve:(z)=>z.platform==="phone"?S(4.5):S(7),toneDeltaPair:(z)=>z.platform==="phone"?new t(this.secondaryContainer(),this.secondary(),5,"relative_lighter",!0,"farther"):void 0});return g(super.secondary(),"2025",_)}secondaryDim(){return R.fromPalette({name:"secondary_dim",palette:(_)=>_.secondaryPalette,tone:(_)=>_.variant===W.NEUTRAL?85:i(_.secondaryPalette,0,90),isBackground:!0,background:(_)=>this.surfaceContainerHigh(),contrastCurve:(_)=>S(4.5),toneDeltaPair:(_)=>new t(this.secondaryDim(),this.secondary(),5,"darker",!0,"farther")})}onSecondary(){let _=R.fromPalette({name:"on_secondary",palette:(z)=>z.secondaryPalette,background:(z)=>z.platform==="phone"?this.secondary():this.secondaryDim(),contrastCurve:(z)=>z.platform==="phone"?S(6):S(7)});return g(super.onSecondary(),"2025",_)}secondaryContainer(){let _=R.fromPalette({name:"secondary_container",palette:(z)=>z.secondaryPalette,tone:(z)=>z.platform==="watch"?30:z.variant===W.VIBRANT?z.isDark?g0(z.secondaryPalette,30,40):i(z.secondaryPalette,84,90):z.variant===W.EXPRESSIVE?z.isDark?15:i(z.secondaryPalette,90,95):z.isDark?25:90,isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):void 0,toneDeltaPair:(z)=>z.platform==="watch"?new t(this.secondaryContainer(),this.secondaryDim(),10,"darker",!0,"farther"):void 0,contrastCurve:(z)=>z.platform==="phone"&&z.contrastLevel>0?S(1.5):void 0});return g(super.secondaryContainer(),"2025",_)}onSecondaryContainer(){let _=R.fromPalette({name:"on_secondary_container",palette:(z)=>z.secondaryPalette,background:(z)=>this.secondaryContainer(),contrastCurve:(z)=>z.platform==="phone"?S(6):S(7)});return g(super.onSecondaryContainer(),"2025",_)}secondaryFixed(){let _=R.fromPalette({name:"secondary_fixed",palette:(z)=>z.secondaryPalette,tone:(z)=>{let J=Object.assign({},z,{isDark:!1,contrastLevel:0});return this.secondaryContainer().getTone(J)},isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):void 0,contrastCurve:(z)=>z.platform==="phone"&&z.contrastLevel>0?S(1.5):void 0});return g(super.secondaryFixed(),"2025",_)}secondaryFixedDim(){let _=R.fromPalette({name:"secondary_fixed_dim",palette:(z)=>z.secondaryPalette,tone:(z)=>this.secondaryFixed().getTone(z),isBackground:!0,toneDeltaPair:(z)=>new t(this.secondaryFixedDim(),this.secondaryFixed(),5,"darker",!0,"exact")});return g(super.secondaryFixedDim(),"2025",_)}onSecondaryFixed(){let _=R.fromPalette({name:"on_secondary_fixed",palette:(z)=>z.secondaryPalette,background:(z)=>this.secondaryFixedDim(),contrastCurve:(z)=>S(7)});return g(super.onSecondaryFixed(),"2025",_)}onSecondaryFixedVariant(){let _=R.fromPalette({name:"on_secondary_fixed_variant",palette:(z)=>z.secondaryPalette,background:(z)=>this.secondaryFixedDim(),contrastCurve:(z)=>S(4.5)});return g(super.onSecondaryFixedVariant(),"2025",_)}tertiary(){let _=R.fromPalette({name:"tertiary",palette:(z)=>z.tertiaryPalette,tone:(z)=>z.platform==="watch"?z.variant===W.TONAL_SPOT?i(z.tertiaryPalette,0,90):i(z.tertiaryPalette):z.variant===W.EXPRESSIVE||z.variant===W.VIBRANT?i(z.tertiaryPalette,0,b.isCyan(z.tertiaryPalette.hue)?88:z.isDark?98:100):z.isDark?i(z.tertiaryPalette,0,98):i(z.tertiaryPalette),isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):this.surfaceContainerHigh(),contrastCurve:(z)=>z.platform==="phone"?S(4.5):S(7),toneDeltaPair:(z)=>z.platform==="phone"?new t(this.tertiaryContainer(),this.tertiary(),5,"relative_lighter",!0,"farther"):void 0});return g(super.tertiary(),"2025",_)}tertiaryDim(){return R.fromPalette({name:"tertiary_dim",palette:(_)=>_.tertiaryPalette,tone:(_)=>_.variant===W.TONAL_SPOT?i(_.tertiaryPalette,0,90):i(_.tertiaryPalette),isBackground:!0,background:(_)=>this.surfaceContainerHigh(),contrastCurve:(_)=>S(4.5),toneDeltaPair:(_)=>new t(this.tertiaryDim(),this.tertiary(),5,"darker",!0,"farther")})}onTertiary(){let _=R.fromPalette({name:"on_tertiary",palette:(z)=>z.tertiaryPalette,background:(z)=>z.platform==="phone"?this.tertiary():this.tertiaryDim(),contrastCurve:(z)=>z.platform==="phone"?S(6):S(7)});return g(super.onTertiary(),"2025",_)}tertiaryContainer(){let _=R.fromPalette({name:"tertiary_container",palette:(z)=>z.tertiaryPalette,tone:(z)=>z.platform==="watch"?z.variant===W.TONAL_SPOT?i(z.tertiaryPalette,0,90):i(z.tertiaryPalette):z.variant===W.NEUTRAL?z.isDark?i(z.tertiaryPalette,0,93):i(z.tertiaryPalette,0,96):z.variant===W.TONAL_SPOT?i(z.tertiaryPalette,0,z.isDark?93:100):z.variant===W.EXPRESSIVE?i(z.tertiaryPalette,75,b.isCyan(z.tertiaryPalette.hue)?88:z.isDark?93:100):z.isDark?i(z.tertiaryPalette,0,93):i(z.tertiaryPalette,72,100),isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):void 0,toneDeltaPair:(z)=>z.platform==="watch"?new t(this.tertiaryContainer(),this.tertiaryDim(),10,"darker",!0,"farther"):void 0,contrastCurve:(z)=>z.platform==="phone"&&z.contrastLevel>0?S(1.5):void 0});return g(super.tertiaryContainer(),"2025",_)}onTertiaryContainer(){let _=R.fromPalette({name:"on_tertiary_container",palette:(z)=>z.tertiaryPalette,background:(z)=>this.tertiaryContainer(),contrastCurve:(z)=>z.platform==="phone"?S(6):S(7)});return g(super.onTertiaryContainer(),"2025",_)}tertiaryFixed(){let _=R.fromPalette({name:"tertiary_fixed",palette:(z)=>z.tertiaryPalette,tone:(z)=>{let J=Object.assign({},z,{isDark:!1,contrastLevel:0});return this.tertiaryContainer().getTone(J)},isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):void 0,contrastCurve:(z)=>z.platform==="phone"&&z.contrastLevel>0?S(1.5):void 0});return g(super.tertiaryFixed(),"2025",_)}tertiaryFixedDim(){let _=R.fromPalette({name:"tertiary_fixed_dim",palette:(z)=>z.tertiaryPalette,tone:(z)=>this.tertiaryFixed().getTone(z),isBackground:!0,toneDeltaPair:(z)=>new t(this.tertiaryFixedDim(),this.tertiaryFixed(),5,"darker",!0,"exact")});return g(super.tertiaryFixedDim(),"2025",_)}onTertiaryFixed(){let _=R.fromPalette({name:"on_tertiary_fixed",palette:(z)=>z.tertiaryPalette,background:(z)=>this.tertiaryFixedDim(),contrastCurve:(z)=>S(7)});return g(super.onTertiaryFixed(),"2025",_)}onTertiaryFixedVariant(){let _=R.fromPalette({name:"on_tertiary_fixed_variant",palette:(z)=>z.tertiaryPalette,background:(z)=>this.tertiaryFixedDim(),contrastCurve:(z)=>S(4.5)});return g(super.onTertiaryFixedVariant(),"2025",_)}error(){let _=R.fromPalette({name:"error",palette:(z)=>z.errorPalette,tone:(z)=>z.platform==="phone"?z.isDark?g0(z.errorPalette,0,98):i(z.errorPalette):g0(z.errorPalette),isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):this.surfaceContainerHigh(),contrastCurve:(z)=>z.platform==="phone"?S(4.5):S(7),toneDeltaPair:(z)=>z.platform==="phone"?new t(this.errorContainer(),this.error(),5,"relative_lighter",!0,"farther"):void 0});return g(super.error(),"2025",_)}errorDim(){return R.fromPalette({name:"error_dim",palette:(_)=>_.errorPalette,tone:(_)=>g0(_.errorPalette),isBackground:!0,background:(_)=>this.surfaceContainerHigh(),contrastCurve:(_)=>S(4.5),toneDeltaPair:(_)=>new t(this.errorDim(),this.error(),5,"darker",!0,"farther")})}onError(){let _=R.fromPalette({name:"on_error",palette:(z)=>z.errorPalette,background:(z)=>z.platform==="phone"?this.error():this.errorDim(),contrastCurve:(z)=>z.platform==="phone"?S(6):S(7)});return g(super.onError(),"2025",_)}errorContainer(){let _=R.fromPalette({name:"error_container",palette:(z)=>z.errorPalette,tone:(z)=>z.platform==="watch"?30:z.isDark?g0(z.errorPalette,30,93):i(z.errorPalette,0,90),isBackground:!0,background:(z)=>z.platform==="phone"?this.highestSurface(z):void 0,toneDeltaPair:(z)=>z.platform==="watch"?new t(this.errorContainer(),this.errorDim(),10,"darker",!0,"farther"):void 0,contrastCurve:(z)=>z.platform==="phone"&&z.contrastLevel>0?S(1.5):void 0});return g(super.errorContainer(),"2025",_)}onErrorContainer(){let _=R.fromPalette({name:"on_error_container",palette:(z)=>z.errorPalette,background:(z)=>this.errorContainer(),contrastCurve:(z)=>z.platform==="phone"?S(4.5):S(7)});return g(super.onErrorContainer(),"2025",_)}surfaceVariant(){let _=Object.assign(this.surfaceContainerHighest().clone(),{name:"surface_variant"});return g(super.surfaceVariant(),"2025",_)}surfaceTint(){let _=Object.assign(this.primary().clone(),{name:"surface_tint"});return g(super.surfaceTint(),"2025",_)}background(){let _=Object.assign(this.surface().clone(),{name:"background"});return g(super.background(),"2025",_)}onBackground(){let _=Object.assign(this.onSurface().clone(),{name:"on_background"});return g(super.onBackground(),"2025",_)}}class O{constructor(){this.allColors=[this.background(),this.onBackground(),this.surface(),this.surfaceDim(),this.surfaceBright(),this.surfaceContainerLowest(),this.surfaceContainerLow(),this.surfaceContainer(),this.surfaceContainerHigh(),this.surfaceContainerHighest(),this.onSurface(),this.onSurfaceVariant(),this.outline(),this.outlineVariant(),this.inverseSurface(),this.inverseOnSurface(),this.primary(),this.primaryDim(),this.onPrimary(),this.primaryContainer(),this.onPrimaryContainer(),this.primaryFixed(),this.primaryFixedDim(),this.onPrimaryFixed(),this.onPrimaryFixedVariant(),this.inversePrimary(),this.secondary(),this.secondaryDim(),this.onSecondary(),this.secondaryContainer(),this.onSecondaryContainer(),this.secondaryFixed(),this.secondaryFixedDim(),this.onSecondaryFixed(),this.onSecondaryFixedVariant(),this.tertiary(),this.tertiaryDim(),this.onTertiary(),this.tertiaryContainer(),this.onTertiaryContainer(),this.tertiaryFixed(),this.tertiaryFixedDim(),this.onTertiaryFixed(),this.onTertiaryFixedVariant(),this.error(),this.errorDim(),this.onError(),this.errorContainer(),this.onErrorContainer()].filter((_)=>_!==void 0)}highestSurface(_){return O.colorSpec.highestSurface(_)}primaryPaletteKeyColor(){return O.colorSpec.primaryPaletteKeyColor()}secondaryPaletteKeyColor(){return O.colorSpec.secondaryPaletteKeyColor()}tertiaryPaletteKeyColor(){return O.colorSpec.tertiaryPaletteKeyColor()}neutralPaletteKeyColor(){return O.colorSpec.neutralPaletteKeyColor()}neutralVariantPaletteKeyColor(){return O.colorSpec.neutralVariantPaletteKeyColor()}errorPaletteKeyColor(){return O.colorSpec.errorPaletteKeyColor()}background(){return O.colorSpec.background()}onBackground(){return O.colorSpec.onBackground()}surface(){return O.colorSpec.surface()}surfaceDim(){return O.colorSpec.surfaceDim()}surfaceBright(){return O.colorSpec.surfaceBright()}surfaceContainerLowest(){return O.colorSpec.surfaceContainerLowest()}surfaceContainerLow(){return O.colorSpec.surfaceContainerLow()}surfaceContainer(){return O.colorSpec.surfaceContainer()}surfaceContainerHigh(){return O.colorSpec.surfaceContainerHigh()}surfaceContainerHighest(){return O.colorSpec.surfaceContainerHighest()}onSurface(){return O.colorSpec.onSurface()}surfaceVariant(){return O.colorSpec.surfaceVariant()}onSurfaceVariant(){return O.colorSpec.onSurfaceVariant()}outline(){return O.colorSpec.outline()}outlineVariant(){return O.colorSpec.outlineVariant()}inverseSurface(){return O.colorSpec.inverseSurface()}inverseOnSurface(){return O.colorSpec.inverseOnSurface()}shadow(){return O.colorSpec.shadow()}scrim(){return O.colorSpec.scrim()}surfaceTint(){return O.colorSpec.surfaceTint()}primary(){return O.colorSpec.primary()}primaryDim(){return O.colorSpec.primaryDim()}onPrimary(){return O.colorSpec.onPrimary()}primaryContainer(){return O.colorSpec.primaryContainer()}onPrimaryContainer(){return O.colorSpec.onPrimaryContainer()}inversePrimary(){return O.colorSpec.inversePrimary()}primaryFixed(){return O.colorSpec.primaryFixed()}primaryFixedDim(){return O.colorSpec.primaryFixedDim()}onPrimaryFixed(){return O.colorSpec.onPrimaryFixed()}onPrimaryFixedVariant(){return O.colorSpec.onPrimaryFixedVariant()}secondary(){return O.colorSpec.secondary()}secondaryDim(){return O.colorSpec.secondaryDim()}onSecondary(){return O.colorSpec.onSecondary()}secondaryContainer(){return O.colorSpec.secondaryContainer()}onSecondaryContainer(){return O.colorSpec.onSecondaryContainer()}secondaryFixed(){return O.colorSpec.secondaryFixed()}secondaryFixedDim(){return O.colorSpec.secondaryFixedDim()}onSecondaryFixed(){return O.colorSpec.onSecondaryFixed()}onSecondaryFixedVariant(){return O.colorSpec.onSecondaryFixedVariant()}tertiary(){return O.colorSpec.tertiary()}tertiaryDim(){return O.colorSpec.tertiaryDim()}onTertiary(){return O.colorSpec.onTertiary()}tertiaryContainer(){return O.colorSpec.tertiaryContainer()}onTertiaryContainer(){return O.colorSpec.onTertiaryContainer()}tertiaryFixed(){return O.colorSpec.tertiaryFixed()}tertiaryFixedDim(){return O.colorSpec.tertiaryFixedDim()}onTertiaryFixed(){return O.colorSpec.onTertiaryFixed()}onTertiaryFixedVariant(){return O.colorSpec.onTertiaryFixedVariant()}error(){return O.colorSpec.error()}errorDim(){return O.colorSpec.errorDim()}onError(){return O.colorSpec.onError()}errorContainer(){return O.colorSpec.errorContainer()}onErrorContainer(){return O.colorSpec.onErrorContainer()}static highestSurface(_){return O.colorSpec.highestSurface(_)}}O.contentAccentToneDelta=15,O.colorSpec=new q1,O.primaryPaletteKeyColor=O.colorSpec.primaryPaletteKeyColor(),O.secondaryPaletteKeyColor=O.colorSpec.secondaryPaletteKeyColor(),O.tertiaryPaletteKeyColor=O.colorSpec.tertiaryPaletteKeyColor(),O.neutralPaletteKeyColor=O.colorSpec.neutralPaletteKeyColor(),O.neutralVariantPaletteKeyColor=O.colorSpec.neutralVariantPaletteKeyColor(),O.background=O.colorSpec.background(),O.onBackground=O.colorSpec.onBackground(),O.surface=O.colorSpec.surface(),O.surfaceDim=O.colorSpec.surfaceDim(),O.surfaceBright=O.colorSpec.surfaceBright(),O.surfaceContainerLowest=O.colorSpec.surfaceContainerLowest(),O.surfaceContainerLow=O.colorSpec.surfaceContainerLow(),O.surfaceContainer=O.colorSpec.surfaceContainer(),O.surfaceContainerHigh=O.colorSpec.surfaceContainerHigh(),O.surfaceContainerHighest=O.colorSpec.surfaceContainerHighest(),O.onSurface=O.colorSpec.onSurface(),O.surfaceVariant=O.colorSpec.surfaceVariant(),O.onSurfaceVariant=O.colorSpec.onSurfaceVariant(),O.inverseSurface=O.colorSpec.inverseSurface(),O.inverseOnSurface=O.colorSpec.inverseOnSurface(),O.outline=O.colorSpec.outline(),O.outlineVariant=O.colorSpec.outlineVariant(),O.shadow=O.colorSpec.shadow(),O.scrim=O.colorSpec.scrim(),O.surfaceTint=O.colorSpec.surfaceTint(),O.primary=O.colorSpec.primary(),O.onPrimary=O.colorSpec.onPrimary(),O.primaryContainer=O.colorSpec.primaryContainer(),O.onPrimaryContainer=O.colorSpec.onPrimaryContainer(),O.inversePrimary=O.colorSpec.inversePrimary(),O.secondary=O.colorSpec.secondary(),O.onSecondary=O.colorSpec.onSecondary(),O.secondaryContainer=O.colorSpec.secondaryContainer(),O.onSecondaryContainer=O.colorSpec.onSecondaryContainer(),O.tertiary=O.colorSpec.tertiary(),O.onTertiary=O.colorSpec.onTertiary(),O.tertiaryContainer=O.colorSpec.tertiaryContainer(),O.onTertiaryContainer=O.colorSpec.onTertiaryContainer(),O.error=O.colorSpec.error(),O.onError=O.colorSpec.onError(),O.errorContainer=O.colorSpec.errorContainer(),O.onErrorContainer=O.colorSpec.onErrorContainer(),O.primaryFixed=O.colorSpec.primaryFixed(),O.primaryFixedDim=O.colorSpec.primaryFixedDim(),O.onPrimaryFixed=O.colorSpec.onPrimaryFixed(),O.onPrimaryFixedVariant=O.colorSpec.onPrimaryFixedVariant(),O.secondaryFixed=O.colorSpec.secondaryFixed(),O.secondaryFixedDim=O.colorSpec.secondaryFixedDim(),O.onSecondaryFixed=O.colorSpec.onSecondaryFixed(),O.onSecondaryFixedVariant=O.colorSpec.onSecondaryFixedVariant(),O.tertiaryFixed=O.colorSpec.tertiaryFixed(),O.tertiaryFixedDim=O.colorSpec.tertiaryFixedDim(),O.onTertiaryFixed=O.colorSpec.onTertiaryFixed(),O.onTertiaryFixedVariant=O.colorSpec.onTertiaryFixedVariant();class z0{constructor(_){this.sourceColorArgb=_.sourceColorHct.toInt(),this.variant=_.variant,this.contrastLevel=_.contrastLevel,this.isDark=_.isDark,this.platform=_.platform??"phone",this.specVersion=_.specVersion??"2021",this.sourceColorHct=_.sourceColorHct,this.primaryPalette=_.primaryPalette??n0(this.specVersion).getPrimaryPalette(this.variant,_.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.secondaryPalette=_.secondaryPalette??n0(this.specVersion).getSecondaryPalette(this.variant,_.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.tertiaryPalette=_.tertiaryPalette??n0(this.specVersion).getTertiaryPalette(this.variant,_.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralPalette=_.neutralPalette??n0(this.specVersion).getNeutralPalette(this.variant,_.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralVariantPalette=_.neutralVariantPalette??n0(this.specVersion).getNeutralVariantPalette(this.variant,_.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.errorPalette=_.errorPalette??n0(this.specVersion).getErrorPalette(this.variant,_.sourceColorHct,this.isDark,this.platform,this.contrastLevel)??H.fromHueAndChroma(25,84),this.colors=new O}toString(){return`Scheme: variant=${W[this.variant]}, mode=${this.isDark?"dark":"light"}, platform=${this.platform}, contrastLevel=${this.contrastLevel.toFixed(1)}, seed=${this.sourceColorHct.toString()}, specVersion=${this.specVersion}`}static getPiecewiseHue(_,z,J){let G=Math.min(z.length-1,J.length),Z=_.hue;for(let U=0;U=z[U]&&Z=105&&U<125?1.6:2.3));case W.VIBRANT:let q=B0.getVibrantNeutralHue(z),Y=B0.getVibrantNeutralChroma(z,G);return H.fromHueAndChroma(q,1.29*Y);default:return super.getNeutralVariantPalette(_,z,J,G,Z)}}getErrorPalette(_,z,J,G,Z){let U=z0.getPiecewiseHue(z,[0,3,13,23,33,43,153,273,360],[12,22,32,12,22,32,22,12]);switch(_){case W.NEUTRAL:return H.fromHueAndChroma(U,G==="phone"?50:40);case W.TONAL_SPOT:return H.fromHueAndChroma(U,G==="phone"?60:48);case W.EXPRESSIVE:return H.fromHueAndChroma(U,G==="phone"?64:48);case W.VIBRANT:return H.fromHueAndChroma(U,G==="phone"?80:60);default:return super.getErrorPalette(_,z,J,G,Z)}}}var r1=new S_,l1=new B0;function n0(_){return _==="2025"?l1:r1}class V_ extends z0{constructor(_,z,J,G=z0.DEFAULT_SPEC_VERSION,Z=z0.DEFAULT_PLATFORM){super({sourceColorHct:_,variant:W.MONOCHROME,contrastLevel:J,isDark:z,platform:Z,specVersion:G})}}class A_ extends z0{constructor(_,z,J,G=z0.DEFAULT_SPEC_VERSION,Z=z0.DEFAULT_PLATFORM){super({sourceColorHct:_,variant:W.TONAL_SPOT,contrastLevel:J,isDark:z,platform:Z,specVersion:G})}}class I_ extends z0{constructor(_,z,J,G=z0.DEFAULT_SPEC_VERSION,Z=z0.DEFAULT_PLATFORM){super({sourceColorHct:_,variant:W.VIBRANT,contrastLevel:J,isDark:z,platform:Z,specVersion:G})}}function u0(_){let z=H_(_),J=x_(_),G=C_(_),Z=[z.toString(16),J.toString(16),G.toString(16)];for(let[U,Q]of Z.entries())Q.length===1&&(Z[U]="0"+Q);return"#"+Z.join("")}function W_(_){let z=(_=_.replace("#","")).length===3,J=_.length===6,G=_.length===8;if(!z&&!J&&!G)throw Error("unexpected hex "+_);let Z=0,U=0,Q=0;return z?(Z=w0(_.slice(0,1).repeat(2)),U=w0(_.slice(1,2).repeat(2)),Q=w0(_.slice(2,3).repeat(2))):J?(Z=w0(_.slice(0,2)),U=w0(_.slice(2,4)),Q=w0(_.slice(4,6))):G&&(Z=w0(_.slice(2,4)),U=w0(_.slice(4,6)),Q=w0(_.slice(6,8))),(-16777216|(255&Z)<<16|(255&U)<<8|255&Q)>>>0}function w0(_){return parseInt(_,16)}function Q1(_){let z=Math.round,J=_.length,G={};if(_.slice(0,3).toLowerCase()==="rgb")_=_.replace(" ","").split(","),G[0]=parseInt(_[0].slice(_[3].toLowerCase()==="a"?5:4),10),G[1]=parseInt(_[1],10),G[2]=parseInt(_[2],10),G[3]=_[3]?parseFloat(_[3]):-1;else{if(J<6)_=parseInt(String(_[1])+_[1]+_[2]+_[2]+_[3]+_[3]+(J>4?String(_[4])+_[4]:""),16);else _=parseInt(_.slice(1),16);G[0]=_>>16&255,G[1]=_>>8&255,G[2]=_&255,G[3]=J===9||J===5?z((_>>24&255)/255*1e4)/1e4:-1}return G}function Y1(_,z,J=0.5){let G=Math.round;_=_.trim(),z=z.trim(),J=J<0?J*-1:J;let U=Q1(_),Q=Q1(z);if(z[0]==="r")return"rgb"+(z[3]==="a"?"a(":"(")+G((Q[0]-U[0])*J+U[0])+","+G((Q[1]-U[1])*J+U[1])+","+G((Q[2]-U[2])*J+U[2])+(U[3]<0&&Q[3]<0?"":","+(U[3]>-1&&Q[3]>-1?G(((Q[3]-U[3])*J+U[3])*1e4)/1e4:Q[3]<0?U[3]:Q[3]))+")";return"#"+(4294967296+(U[3]>-1&&Q[3]>-1?G(((Q[3]-U[3])*J+U[3])*255):Q[3]>-1?G(Q[3]*255):U[3]>-1?G(U[3]*255):255)*16777216+G((Q[0]-U[0])*J+U[0])*65536+G((Q[1]-U[1])*J+U[1])*256+G((Q[2]-U[2])*J+U[2])).toString(16).slice(U[3]>-1||Q[3]>-1?1:3)}var R_=null,h0={},L_=(_="",z="default")=>{let J=`${_}-${z}`;if(h0[J])return h0[J];if(R_&&z.includes("monochrome")){let V=L_(_,z==="monochrome"?"default":"vibrant");return h0[J]={light:{...V.light,...R_.light},dark:{...V.dark,...R_.dark}},h0[J]}let G=W_(`#${_.replace("#","")}`),Z,U,Q=b.fromInt(G);if(z==="default")Z=new A_(Q,!1,0,"2025"),U=new A_(Q,!0,0,"2025");if(z==="vibrant")Z=new I_(Q,!1,0,"2025"),U=new I_(Q,!0,0,"2025");if(z.includes("monochrome"))Z=new V_(Q,!1,0,"2025"),U=new V_(Q,!0,0,"2025");let q=(V)=>{let K=V;if(V==="surface_dim")K="surface_variant";if(V==="surface_container_low")K="surface_1";if(V==="surface_container")K="surface_2";if(V==="surface_container_high")K="surface_3";if(V==="surface_container_highest")K="surface_4";return K},Y={light:{},dark:{}};Z.colors.allColors.forEach((V)=>{let K=q(V.name),I=V.getArgb(Z);Y.light[K]=I}),U.colors.allColors.forEach((V)=>{let K=q(V.name),I=V.getArgb(U);Y.dark[K]=I}),Y.light.surface_5=W_(Y1(u0(Y.light.surface_4),u0(Y.light.primary),0.05)),Y.dark.surface_5=W_(Y1(u0(Y.dark.surface_4),u0(Y.dark.primary),0.05));let X=(V)=>{return V.replace(/_/g,"-")},F=(V)=>{let K=["inverse_primary","primary","on_primary","primary_container","on_primary_container","secondary","on_secondary","secondary_container","on_secondary_container","outline","outline_variant"],I=["on_surface","on_surface_variant","inverse_on_surface","inverse_surface","surface","surface_variant","surface_1","surface_2","surface_3","surface_4","surface_5"];return(z==="default"?[...K,...I]:z==="vibrant"?[...K,...I]:I).includes(V)},A={},L={};if(Object.keys(Y.light).forEach((V)=>{if(!F(V))return;A[X(`--f7-md-${V}`)]=u0(Y.light[V])}),Object.keys(Y.dark).forEach((V)=>{if(!F(V))return;L[X(`--f7-md-${V}`)]=u0(Y.dark[V])}),z.includes("monochrome")){R_={light:A,dark:L};let V=L_(_,z==="monochrome"?"default":"vibrant");return h0[J]={light:{...V.light,...A},dark:{...V.dark,...L}},h0[J]}return h0[J]={light:A,dark:L},h0[J]};var X1=0;function o1(){return X1+=1,X1}function b_(_="xxxxxxxxxx",z="0123456789abcdef"){let J=z.length;return _.replace(/x/g,()=>z[Math.floor(Math.random()*J)])}var t1=`
+
+
+
+
+
+`.trim(),a1=`
+
+ ${[0,1,2,3,4,5,6,7].map(()=>' ').join("")}
+
+`.trim();function e1(_){let z;return _.split("").map((J,G)=>{if(J.match(/[A-Z]/)&&G!==0&&!z)return z=!0,`:${J.toLowerCase()}`;return J.toLowerCase()}).join("")}function g_(_){let z=_;Object.keys(z).forEach((J)=>{try{z[J]=null}catch(G){}try{delete z[J]}catch(G){}})}function E_(_){return Y0().requestAnimationFrame(_)}function _7(_){return Y0().cancelAnimationFrame(_)}function z7(_,z=0){return setTimeout(_,z)}function s0(_){return E_(()=>{E_(_)})}function G_(){return Date.now()}function G7(_){let z=Y0(),J={},G=_||z.location.href,Z,U,Q,q;if(typeof G==="string"&&G.length){G=G.indexOf("?")>-1?G.replace(/\S*\?/,""):"",U=G.split("&").filter((Y)=>Y!==""),q=U.length;for(Z=0;Z"u"?void 0:decodeURIComponent(Q.slice(1).join("="))||""}return J}function $_(_,z="x"){let J=Y0(),G,Z,U,Q=J.getComputedStyle(_,null);if(J.WebKitCSSMatrix){if(Z=Q.transform||Q.webkitTransform,Z.split(",").length>6)Z=Z.split(", ").map((q)=>q.replace(",",".")).join(", ");U=new J.WebKitCSSMatrix(Z==="none"?"":Z)}else U=Q.MozTransform||Q.OTransform||Q.MsTransform||Q.msTransform||Q.transform||Q.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),G=U.toString().split(",");if(z==="x")if(J.WebKitCSSMatrix)Z=U.m41;else if(G.length===16)Z=parseFloat(G[12]);else Z=parseFloat(G[4]);if(z==="y")if(J.WebKitCSSMatrix)Z=U.m42;else if(G.length===16)Z=parseFloat(G[13]);else Z=parseFloat(G[5]);return Z||0}function w_(_,z=[]){if(typeof _==="string")return _;let J=[],G="&",Z;function U(q){if(z.length>0){let Y="";for(let X=0;X{let Y;if(Array.isArray(_[q])){Y=[];for(let X=0;X<_[q].length;X+=1)if(!Array.isArray(_[q][X])&&typeof _[q][X]==="object")Z=z.slice(),Z.push(q),Z.push(String(X)),Y.push(w_(_[q][X],Z));else Y.push(`${U(q)}[]=${Q(_[q][X])}`);if(Y.length>0)J.push(Y.join(G))}else if(_[q]===null||_[q]==="")J.push(`${U(q)}=`);else if(typeof _[q]==="object"){if(Z=z.slice(),Z.push(q),Y=w_(_[q],Z),Y!=="")J.push(Y)}else if(typeof _[q]<"u"&&_[q]!=="")J.push(`${U(q)}=${Q(_[q])}`);else if(_[q]==="")J.push(U(q))}),J.join(G)}function p0(_){return typeof _==="object"&&_!==null&&_.constructor&&_.constructor===Object}function J7(..._){let z=_[0];_.splice(0,1);let J=_;for(let G=0;GZ+Z+U+U+Q+Q),J=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(z);return J?J.slice(1).map((G)=>parseInt(G,16)):null}function z_(_,z,J){return`#${[_,z,J].map((Z)=>{let U=Z.toString(16);return U.length===1?`0${U}`:U}).join("")}`}function F1(_,z,J){_/=255,z/=255,J/=255;let G=Math.max(_,z,J),Z=Math.min(_,z,J),U=G-Z,Q;if(U===0)Q=0;else if(G===_)Q=(z-J)/U%6;else if(G===z)Q=(J-_)/U+2;else if(G===J)Q=(_-z)/U+4;let q=(Z+G)/2,Y=U===0?0:U/(1-Math.abs(2*q-1));if(Q<0)Q=6+Q;return[Q*60,Y,q]}function k_(_,z,J){let G=(1-Math.abs(2*J-1))*z,Z=_/60,U=G*(1-Math.abs(Z%2-1)),Q;if(Number.isNaN(_)||typeof _>"u")Q=[0,0,0];else if(Z<=1)Q=[G,U,0];else if(Z<=2)Q=[U,G,0];else if(Z<=3)Q=[0,G,U];else if(Z<=4)Q=[0,U,G];else if(Z<=5)Q=[U,0,G];else if(Z<=6)Q=[G,0,U];let q=J-G/2;return Q.map((Y)=>Math.max(0,Math.min(255,Math.round(255*(Y+q)))))}function Z7(_,z,J){let G={h:_,s:0,l:0},Z={h:_,s:z,b:J};return G.l=(2-Z.s)*Z.b/2,G.s=G.l&&G.l<1?Z.s*Z.b/(G.l<0.5?G.l*2:2-G.l*2):G.s,[G.h,G.s,G.l]}function U7(_,z,J){let G={h:_,s:0,b:0},Z={h:_,s:z,l:J},U=Z.s*(Z.l<0.5?Z.l:1-Z.l);return G.b=Z.l+U,G.s=Z.l>0?2*U/G.b:G.s,[G.h,G.s,G.b]}var T_=(_)=>{let z=F1(..._),J=[z[0],z[1],Math.max(0,z[2]-0.08)],G=[z[0],z[1],Math.max(0,z[2]+0.08)],Z=z_(...k_(...J)),U=z_(...k_(...G));return{shade:Z,tint:U}};function v_(..._){let z,J,G;if(_.length===1)z=_[0],J=v0(z);else if(_.length===2)z=_[0],J=v0(z),G=_[1]||"default";else if(_.length===3)J=_,z=z_(...J);else if(_.length===4)J=_.slice(0,3),z=z_(...J),G=_[3]||"default";if(!J)return{};let{light:Z,dark:U}=L_(z,G),Q=T_(J),q=T_(v0(Z["--f7-md-primary"])),Y=T_(v0(U["--f7-md-primary"]));return Object.keys(Z).forEach((X)=>{if(X.includes("surface-")&&!X.includes("-rgb"))Z[`${X}-rgb`]=v0(Z[X])}),Object.keys(U).forEach((X)=>{if(X.includes("surface-")&&!X.includes("-rgb"))U[`${X}-rgb`]=v0(U[X])}),{ios:{"--f7-theme-color":"var(--f7-ios-primary)","--f7-theme-color-rgb":"var(--f7-ios-primary-rgb)","--f7-theme-color-shade":"var(--f7-ios-primary-shade)","--f7-theme-color-tint":"var(--f7-ios-primary-tint)"},md:{"--f7-theme-color":"var(--f7-md-primary)","--f7-theme-color-rgb":"var(--f7-md-primary-rgb)","--f7-theme-color-shade":"var(--f7-md-primary-shade)","--f7-theme-color-tint":"var(--f7-md-primary-tint)"},light:{"--f7-ios-primary":z,"--f7-ios-primary-shade":Q.shade,"--f7-ios-primary-tint":Q.tint,"--f7-ios-primary-rgb":J.join(", "),"--f7-md-primary-shade":q.shade,"--f7-md-primary-tint":q.tint,"--f7-md-primary-rgb":v0(Z["--f7-md-primary"]).join(", "),...Z},dark:{"--f7-md-primary-shade":Y.shade,"--f7-md-primary-tint":Y.tint,"--f7-md-primary-rgb":v0(U["--f7-md-primary"]).join(", "),...U}}}function h_(_,z){Object.keys(z).forEach((J)=>{if(p0(z[J]))Object.keys(z[J]).forEach((G)=>{if(typeof z[J][G]==="function")z[J][G]=z[J][G].bind(_)});_[J]=z[J]})}function K1(..._){let z=[];return _.forEach((J)=>{if(Array.isArray(J))z.push(...K1(...J));else z.push(J)}),z}function q7(_={},z="default"){let J=(q)=>{let Y="";return Object.keys(q).forEach((X)=>{Y+=`${X}:${q[X]};`}),Y},G=v_(_.primary,z),Z=[":root{",J(G.light),"--swiper-theme-color:var(--f7-theme-color);",...Object.keys(_).map((q)=>`--f7-color-${q}: ${_[q]};`),"}",".dark{",J(G.dark),"}",".ios, .ios .dark{",J(G.ios),"}",".md, .md .dark{",J(G.md),"}"].join(""),U={};Object.keys(_).forEach((q)=>{let Y=_[q];U[q]=v_(Y,z)});let Q="";return Object.keys(_).forEach((q)=>{let{light:Y,dark:X,ios:F,md:A}=U[q],L=`
+ --f7-ios-primary: #ffffff;
+ --f7-ios-primary-shade: #ebebeb;
+ --f7-ios-primary-tint: #ffffff;
+ --f7-ios-primary-rgb: 255, 255, 255;
+ --f7-md-primary-shade: #eee;
+ --f7-md-primary-tint: #fff;
+ --f7-md-primary-rgb: 255, 255, 255;
+ --f7-md-primary: #fff;
+ --f7-md-on-primary: #000;
+ --f7-md-primary-container: #fff;
+ --f7-md-on-primary-container: #000;
+ --f7-md-secondary: #fff;
+ --f7-md-on-secondary: #000;
+ --f7-md-secondary-container: #555;
+ --f7-md-on-secondary-container: #fff;
+ --f7-md-surface: #fff;
+ --f7-md-on-surface: #000;
+ --f7-md-surface-variant: #333;
+ --f7-md-on-surface-variant: #fff;
+ --f7-md-outline: #fff;
+ --f7-md-outline-variant: #fff;
+ --f7-md-inverse-surface: #000;
+ --f7-md-inverse-on-surface: #fff;
+ --f7-md-inverse-primary: #000;
+ --f7-md-surface-1: #f8f8f8;
+ --f7-md-surface-2: #f1f1f1;
+ --f7-md-surface-3: #e7e7e7;
+ --f7-md-surface-4: #e1e1e1;
+ --f7-md-surface-5: #d7d7d7;
+ --f7-md-surface-variant-rgb: 51, 51, 51;
+ --f7-md-on-surface-variant-rgb: 255, 255, 255;
+ --f7-md-surface-1-rgb: 248, 248, 248;
+ --f7-md-surface-2-rgb: 241, 241, 241;
+ --f7-md-surface-3-rgb: 231, 231, 231;
+ --f7-md-surface-4-rgb: 225, 225, 225;
+ --f7-md-surface-5-rgb: 215, 215, 215;
+ `,V=`
+ --f7-ios-primary: #000;
+ --f7-ios-primary-shade: #000;
+ --f7-ios-primary-tint: #232323;
+ --f7-ios-primary-rgb: 0, 0, 0;
+ --f7-md-primary-shade: #000;
+ --f7-md-primary-tint: #232323;
+ --f7-md-primary-rgb: 0, 0, 0;
+ --f7-md-primary: #000;
+ --f7-md-on-primary: #fff;
+ --f7-md-primary-container: #000;
+ --f7-md-on-primary-container: #fff;
+ --f7-md-secondary: #000;
+ --f7-md-on-secondary: #fff;
+ --f7-md-secondary-container: #aaa;
+ --f7-md-on-secondary-container: #000;
+ --f7-md-surface: #000;
+ --f7-md-on-surface: #fff;
+ --f7-md-surface-variant: #ccc;
+ --f7-md-on-surface-variant: #000;
+ --f7-md-outline: #000;
+ --f7-md-outline-variant: #000;
+ --f7-md-inverse-surface: #fff;
+ --f7-md-inverse-on-surface: #000;
+ --f7-md-inverse-primary: #fff;
+ --f7-md-surface-1: #070707;
+ --f7-md-surface-2: #161616;
+ --f7-md-surface-3: #232323;
+ --f7-md-surface-4: #303030;
+ --f7-md-surface-5: #373737;
+ --f7-md-surface-variant-rgb: 204, 204, 204;
+ --f7-md-on-surface-variant-rgb: 0, 0, 0;
+ --f7-md-surface-1-rgb: 7, 7, 7;
+ --f7-md-surface-2-rgb: 22, 22, 22;
+ --f7-md-surface-3-rgb: 35, 35, 35;
+ --f7-md-surface-4-rgb: 48, 48, 48;
+ --f7-md-surface-5-rgb: 55, 55, 55;
+ `,K=q==="white"?`
+ --f7-ios-primary: #ffffff;
+ --f7-ios-primary-shade: #ebebeb;
+ --f7-ios-primary-tint: #ffffff;
+ --f7-ios-primary-rgb: 255, 255, 255;
+ --f7-md-primary-shade: #eee;
+ --f7-md-primary-tint: #fff;
+ --f7-md-primary-rgb: 255, 255, 255;
+ --f7-md-primary: #fff;
+ --f7-md-on-primary: #000;
+ --f7-md-primary-container: #fff;
+ --f7-md-on-primary-container: #000;
+ --f7-md-secondary: #fff;
+ --f7-md-on-secondary: #000;
+ --f7-md-secondary-container: #555;
+ --f7-md-on-secondary-container: #fff;
+ --f7-md-surface: #fff;
+ --f7-md-on-surface: #000;
+ --f7-md-surface-variant: #333;
+ --f7-md-on-surface-variant: #fff;
+ --f7-md-outline: #fff;
+ --f7-md-outline-variant: #fff;
+ --f7-md-inverse-surface: #000;
+ --f7-md-inverse-on-surface: #fff;
+ --f7-md-inverse-primary: #000;
+ --f7-md-surface-1: #f8f8f8;
+ --f7-md-surface-2: #f1f1f1;
+ --f7-md-surface-3: #e7e7e7;
+ --f7-md-surface-4: #e1e1e1;
+ --f7-md-surface-5: #d7d7d7;
+ --f7-md-surface-variant-rgb: 51, 51, 51;
+ --f7-md-on-surface-variant-rgb: 255, 255, 255;
+ --f7-md-surface-1-rgb: 248, 248, 248;
+ --f7-md-surface-2-rgb: 241, 241, 241;
+ --f7-md-surface-3-rgb: 231, 231, 231;
+ --f7-md-surface-4-rgb: 225, 225, 225;
+ --f7-md-surface-5-rgb: 215, 215, 215;
+ `:q==="black"?`
+ --f7-ios-primary: #000;
+ --f7-ios-primary-shade: #000;
+ --f7-ios-primary-tint: #232323;
+ --f7-ios-primary-rgb: 0, 0, 0;
+ --f7-md-primary-shade: #000;
+ --f7-md-primary-tint: #232323;
+ --f7-md-primary-rgb: 0, 0, 0;
+ --f7-md-primary: #000;
+ --f7-md-on-primary: #fff;
+ --f7-md-primary-container: #000;
+ --f7-md-on-primary-container: #fff;
+ --f7-md-secondary: #000;
+ --f7-md-on-secondary: #fff;
+ --f7-md-secondary-container: #aaa;
+ --f7-md-on-secondary-container: #000;
+ --f7-md-surface: #000;
+ --f7-md-on-surface: #fff;
+ --f7-md-surface-variant: #ccc;
+ --f7-md-on-surface-variant: #000;
+ --f7-md-outline: #000;
+ --f7-md-outline-variant: #000;
+ --f7-md-inverse-surface: #fff;
+ --f7-md-inverse-on-surface: #000;
+ --f7-md-inverse-primary: #fff;
+ --f7-md-surface-1: #070707;
+ --f7-md-surface-2: #161616;
+ --f7-md-surface-3: #232323;
+ --f7-md-surface-4: #303030;
+ --f7-md-surface-5: #373737;
+ --f7-md-surface-variant-rgb: 204, 204, 204;
+ --f7-md-on-surface-variant-rgb: 0, 0, 0;
+ --f7-md-surface-1-rgb: 7, 7, 7;
+ --f7-md-surface-2-rgb: 22, 22, 22;
+ --f7-md-surface-3-rgb: 35, 35, 35;
+ --f7-md-surface-4-rgb: 48, 48, 48;
+ --f7-md-surface-5-rgb: 55, 55, 55;
+ `:J(Y),I=q==="white"?`
+ --f7-ios-primary: #ffffff;
+ --f7-ios-primary-shade: #ebebeb;
+ --f7-ios-primary-tint: #ffffff;
+ --f7-ios-primary-rgb: 255, 255, 255;
+ --f7-md-primary-shade: #eee;
+ --f7-md-primary-tint: #fff;
+ --f7-md-primary-rgb: 255, 255, 255;
+ --f7-md-primary: #fff;
+ --f7-md-on-primary: #000;
+ --f7-md-primary-container: #fff;
+ --f7-md-on-primary-container: #000;
+ --f7-md-secondary: #fff;
+ --f7-md-on-secondary: #000;
+ --f7-md-secondary-container: #555;
+ --f7-md-on-secondary-container: #fff;
+ --f7-md-surface: #fff;
+ --f7-md-on-surface: #000;
+ --f7-md-surface-variant: #333;
+ --f7-md-on-surface-variant: #fff;
+ --f7-md-outline: #fff;
+ --f7-md-outline-variant: #fff;
+ --f7-md-inverse-surface: #000;
+ --f7-md-inverse-on-surface: #fff;
+ --f7-md-inverse-primary: #000;
+ --f7-md-surface-1: #f8f8f8;
+ --f7-md-surface-2: #f1f1f1;
+ --f7-md-surface-3: #e7e7e7;
+ --f7-md-surface-4: #e1e1e1;
+ --f7-md-surface-5: #d7d7d7;
+ --f7-md-surface-variant-rgb: 51, 51, 51;
+ --f7-md-on-surface-variant-rgb: 255, 255, 255;
+ --f7-md-surface-1-rgb: 248, 248, 248;
+ --f7-md-surface-2-rgb: 241, 241, 241;
+ --f7-md-surface-3-rgb: 231, 231, 231;
+ --f7-md-surface-4-rgb: 225, 225, 225;
+ --f7-md-surface-5-rgb: 215, 215, 215;
+ `:q==="black"?`
+ --f7-ios-primary: #000;
+ --f7-ios-primary-shade: #000;
+ --f7-ios-primary-tint: #232323;
+ --f7-ios-primary-rgb: 0, 0, 0;
+ --f7-md-primary-shade: #000;
+ --f7-md-primary-tint: #232323;
+ --f7-md-primary-rgb: 0, 0, 0;
+ --f7-md-primary: #000;
+ --f7-md-on-primary: #fff;
+ --f7-md-primary-container: #000;
+ --f7-md-on-primary-container: #fff;
+ --f7-md-secondary: #000;
+ --f7-md-on-secondary: #fff;
+ --f7-md-secondary-container: #aaa;
+ --f7-md-on-secondary-container: #000;
+ --f7-md-surface: #000;
+ --f7-md-on-surface: #fff;
+ --f7-md-surface-variant: #ccc;
+ --f7-md-on-surface-variant: #000;
+ --f7-md-outline: #000;
+ --f7-md-outline-variant: #000;
+ --f7-md-inverse-surface: #fff;
+ --f7-md-inverse-on-surface: #000;
+ --f7-md-inverse-primary: #fff;
+ --f7-md-surface-1: #070707;
+ --f7-md-surface-2: #161616;
+ --f7-md-surface-3: #232323;
+ --f7-md-surface-4: #303030;
+ --f7-md-surface-5: #373737;
+ --f7-md-surface-variant-rgb: 204, 204, 204;
+ --f7-md-on-surface-variant-rgb: 0, 0, 0;
+ --f7-md-surface-1-rgb: 7, 7, 7;
+ --f7-md-surface-2-rgb: 22, 22, 22;
+ --f7-md-surface-3-rgb: 35, 35, 35;
+ --f7-md-surface-4-rgb: 48, 48, 48;
+ --f7-md-surface-5-rgb: 55, 55, 55;
+ `:J(X);Q+=[`.color-${q} {`,K,"--swiper-theme-color: var(--f7-theme-color);","}",`.color-${q}.dark, .color-${q} .dark, .dark .color-${q} {`,I,"--swiper-theme-color: var(--f7-theme-color);","}",`.ios .color-${q}, .ios.color-${q}, .ios .dark .color-${q}, .ios .dark.color-${q} {`,J(F),"}",`.md .color-${q}, .md.color-${q}, .md .dark .color-${q}, .md .dark.color-${q} {`,J(A),"}",`.text-color-${q} {`,`--f7-theme-color-text-color: ${_[q]};`,"}",`.bg-color-${q} {`,`--f7-theme-color-bg-color: ${_[q]};`,"}",`.border-color-${q} {`,`--f7-theme-color-border-color: ${_[q]};`,"}",`.ripple-color-${q} {`,`--f7-theme-color-ripple-color: rgba(${Y["--f7-ios-primary-rgb"]}, 0.3);`,"}"].join("")}),`${Z}${Q}`}var m_;function Q7(){let _=Y0(),z=Q0();return{touch:!!(("ontouchstart"in _)||_.DocumentTouch&&z instanceof _.DocumentTouch)}}function T0(){if(!m_)m_=Q7();return m_}var u_;function Y7({userAgent:_}={}){let z=T0(),J=Y0(),G=J.navigator.platform,Z=_||J.navigator.userAgent,U={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!!J.cordova,electron:!1,capacitor:!!J.Capacitor,nwjs:!1},Q=J.screen.width,q=J.screen.height,Y=Z.match(/(Android);?[\s\/]+([\d.]+)?/),X=Z.match(/(iPad).*OS\s([\d_]+)/),F=Z.match(/(iPod)(.*OS\s([\d_]+))?/),A=!X&&Z.match(/(iPhone\sOS|iOS|iPhone;\sCPU\sOS)\s([\d_]+)/),L=Z.indexOf("MSIE ")>=0||Z.indexOf("Trident/")>=0,V=Z.indexOf("Edge/")>=0,K=Z.indexOf("Gecko/")>=0&&Z.indexOf("Firefox/")>=0,I=G==="Win32",y=Z.toLowerCase().indexOf("electron")>=0,M=typeof nw<"u"&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.nw<"u",P=G==="MacIntel",N=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!X&&P&&z.touch&&N.indexOf(`${Q}x${q}`)>=0){if(X=Z.match(/(Version)\/([\d.]+)/),!X)X=[0,1,"13_0_0"];P=!1}if(U.ie=L,U.edge=V,U.firefox=K,Y)U.os="android",U.osVersion=Y[2],U.android=!0,U.androidChrome=Z.toLowerCase().indexOf("chrome")>=0;if(X||A||F)U.os="ios",U.ios=!0;if(A&&!F)U.osVersion=A[2].replace(/_/g,"."),U.iphone=!0;if(X)U.osVersion=X[2].replace(/_/g,"."),U.ipad=!0;if(F)U.osVersion=F[3]?F[3].replace(/_/g,"."):null,U.ipod=!0;if(U.ios&&U.osVersion&&Z.indexOf("Version/")>=0){if(U.osVersion.split(".")[0]==="10")U.osVersion=Z.toLowerCase().split("version/")[1].split(" ")[0]}if(U.webView=!!((A||X||F)&&(Z.match(/.*AppleWebKit(?!.*Safari)/i)||J.navigator.standalone))||J.matchMedia&&J.matchMedia("(display-mode: standalone)").matches,U.webview=U.webView,U.standalone=U.webView,U.desktop=!(U.ios||U.android)||y||M,U.desktop){if(U.electron=y,U.nwjs=M,U.macos=P,U.windows=I,U.macos)U.os="macos";if(U.windows)U.os="windows"}U.pixelRatio=J.devicePixelRatio||1;let j="(prefers-color-scheme: dark)",T="(prefers-color-scheme: light)";return U.prefersColorScheme=function(){let E;if(J.matchMedia&&J.matchMedia(T).matches)E="light";if(J.matchMedia&&J.matchMedia(j).matches)E="dark";return E},U}var X7=(()=>{let _=Q0();try{return Boolean(_&&_.body&&_.body.getBoundingClientRect&&_.body.getBoundingClientRect().width>0)}catch(z){return!1}})();function D0(_={},z=X7){if(!u_||z)u_=Y7(_);return u_}class O1{constructor(_=[]){let z=this;z.eventsParents=_,z.eventsListeners={}}on(_,z,J){let G=this;if(typeof z!=="function")return G;let Z=J?"unshift":"push";return _.split(" ").forEach((U)=>{if(!G.eventsListeners[U])G.eventsListeners[U]=[];G.eventsListeners[U][Z](z)}),G}once(_,z,J){let G=this;if(typeof z!=="function")return G;function Z(...U){if(G.off(_,Z),Z.f7proxy)delete Z.f7proxy;z.apply(G,U)}return Z.f7proxy=z,G.on(_,Z,J)}off(_,z){let J=this;if(!J.eventsListeners)return J;return _.split(" ").forEach((G)=>{if(typeof z>"u")J.eventsListeners[G]=[];else if(J.eventsListeners[G])J.eventsListeners[G].forEach((Z,U)=>{if(Z===z||Z.f7proxy&&Z.f7proxy===z)J.eventsListeners[G].splice(U,1)})}),J}emit(..._){let z=this;if(!z.eventsListeners)return z;let J,G,Z,U;if(typeof _[0]==="string"||Array.isArray(_[0]))J=_[0],G=_.slice(1,_.length),Z=z,U=z.eventsParents;else J=_[0].events,G=_[0].data,Z=_[0].context||z,U=_[0].local?[]:_[0].parents||z.eventsParents;let Q=Array.isArray(J)?J:J.split(" "),q=Q.map((X)=>X.replace("local::","")),Y=Q.filter((X)=>X.indexOf("local::")<0);if(q.forEach((X)=>{if(z.eventsListeners&&z.eventsListeners[X]){let F=[];z.eventsListeners[X].forEach((A)=>{F.push(A)}),F.forEach((A)=>{A.apply(Z,G)})}}),U&&U.length>0)U.forEach((X)=>{X.emit(Y,...G)});return z}}var y_=O1;class V1 extends y_{constructor(_={},z=[]){super(z);let J=this;if(J.params=_,J.params&&J.params.on)Object.keys(J.params.on).forEach((G)=>{J.on(G,J.params.on[G])})}useModuleParams(_,z){if(_.params){let J={};Object.keys(_.params).forEach((G)=>{if(typeof z[G]>"u")return;J[G]=e({},z[G])}),e(z,_.params),Object.keys(J).forEach((G)=>{e(z[G],J[G])})}}useModulesParams(_){let z=this;if(!z.modules)return;Object.keys(z.modules).forEach((J)=>{let G=z.modules[J];if(G.params)e(_,G.params)})}useModule(_="",z={}){let J=this;if(!J.modules)return;let G=typeof _==="string"?J.modules[_]:_;if(!G)return;if(G.instance)Object.keys(G.instance).forEach((Z)=>{let U=G.instance[Z];if(typeof U==="function")J[Z]=U.bind(J);else J[Z]=U});if(G.on&&J.on)Object.keys(G.on).forEach((Z)=>{J.on(Z,G.on[Z])});if(G.vnode){if(!J.vnodeHooks)J.vnodeHooks={};Object.keys(G.vnode).forEach((Z)=>{Object.keys(G.vnode[Z]).forEach((U)=>{let Q=G.vnode[Z][U];if(!J.vnodeHooks[U])J.vnodeHooks[U]={};if(!J.vnodeHooks[U][Z])J.vnodeHooks[U][Z]=[];J.vnodeHooks[U][Z].push(Q.bind(J))})})}if(G.create)G.create.bind(J)(z)}useModules(_={}){let z=this;if(!z.modules)return;Object.keys(z.modules).forEach((J)=>{let G=_[J]||{};z.useModule(J,G)})}static set components(_){let z=this;if(!z.use)return;z.use(_)}static installModule(_,...z){let J=this;if(!J.prototype.modules)J.prototype.modules={};let G=_.name||`${Object.keys(J.prototype.modules).length}_${G_()}`;if(J.prototype.modules[G]=_,_.proto)Object.keys(_.proto).forEach((Z)=>{J.prototype[Z]=_.proto[Z]});if(_.static)Object.keys(_.static).forEach((Z)=>{J[Z]=_.static[Z]});if(_.install)_.install.apply(J,z);return J}static use(_,...z){let J=this;if(Array.isArray(_))return _.forEach((G)=>J.installModule(G)),J;return J.installModule(_,...z)}}var J_=V1;var f_={};s_(f_,{width:()=>b7,value:()=>j7,val:()=>P7,trigger:()=>E7,transitionStart:()=>w7,transitionEnd:()=>k7,transition:()=>x7,transform:()=>H7,touchstart:()=>u3,touchmove:()=>c3,touchend:()=>d3,toggleClass:()=>R7,text:()=>r7,submit:()=>E3,styles:()=>c7,stop:()=>B3,siblings:()=>Y3,show:()=>d7,scrollTop:()=>M3,scrollTo:()=>L3,scrollLeft:()=>y3,scroll:()=>i3,resize:()=>n3,removeData:()=>N7,removeClass:()=>W7,removeAttr:()=>y7,remove:()=>A3,prop:()=>f7,prevAll:()=>Q3,prev:()=>q3,prependTo:()=>z3,prepend:()=>_3,parents:()=>F3,parent:()=>X3,outerWidth:()=>g7,outerHeight:()=>h7,once:()=>T7,on:()=>C7,offset:()=>m7,off:()=>S7,nextAll:()=>U3,next:()=>Z3,mouseup:()=>b3,mouseover:()=>m3,mouseout:()=>h3,mousemove:()=>v3,mouseleave:()=>$3,mouseenter:()=>g3,mousedown:()=>k3,keyup:()=>C3,keypress:()=>T3,keydown:()=>S3,is:()=>l7,insertBefore:()=>G3,insertAfter:()=>J3,index:()=>o7,html:()=>s7,hide:()=>u7,height:()=>$7,hasClass:()=>L7,focusout:()=>x3,focusin:()=>H3,focus:()=>j3,find:()=>O3,filter:()=>p7,eq:()=>t7,empty:()=>R3,each:()=>i7,detach:()=>I3,default:()=>p3,dataset:()=>D7,data:()=>B7,css:()=>n7,closest:()=>K3,click:()=>D3,children:()=>V3,change:()=>w3,blur:()=>P3,attr:()=>M7,appendTo:()=>e7,append:()=>a7,animationEnd:()=>v7,animate:()=>f3,addClass:()=>I7,add:()=>W3,$:()=>$});function A1(_){return _!==null&&typeof _==="object"&&"constructor"in _&&_.constructor===Object}function d_(_={},z={}){Object.keys(z).forEach((J)=>{if(typeof _[J]>"u")_[J]=z[J];else if(A1(z[J])&&A1(_[J])&&Object.keys(z[J]).length>0)d_(_[J],z[J])})}var I1={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function r0(){let _=typeof document<"u"?document:{};return d_(_,I1),_}var F7={document:I1,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(_){if(typeof setTimeout>"u")return _(),null;return setTimeout(_,0)},cancelAnimationFrame(_){if(typeof setTimeout>"u")return;clearTimeout(_)}};function P0(){let _=typeof window<"u"?window:{};return d_(_,F7),_}function K7(_){let z=_.__proto__;Object.defineProperty(_,"__proto__",{get(){return z},set(J){z.__proto__=J}})}class b0 extends Array{constructor(_){if(typeof _==="number")super(_);else{super(..._||[]);K7(this)}}}function Z_(_=[]){let z=[];return _.forEach((J)=>{if(Array.isArray(J))z.push(...Z_(J));else z.push(J)}),z}function W1(_,z){return Array.prototype.filter.call(_,z)}function O7(_){let z=[];for(let J=0;J<_.length;J+=1)if(z.indexOf(_[J])===-1)z.push(_[J]);return z}function V7(_){return _.toLowerCase().replace(/-(.)/g,(z,J)=>J.toUpperCase())}function A7(_,z){if(typeof _!=="string")return[_];let J=[],G=z.querySelectorAll(_);for(let Z=0;Z=0&&U.indexOf(">")>=0){let Q="div";if(U.indexOf("J.split(" ")));return this.forEach((J)=>{J.classList.add(...z)}),this}function W7(..._){let z=Z_(_.map((J)=>J.split(" ")));return this.forEach((J)=>{J.classList.remove(...z)}),this}function R7(..._){let z=Z_(_.map((J)=>J.split(" ")));this.forEach((J)=>{z.forEach((G)=>{J.classList.toggle(G)})})}function L7(..._){let z=Z_(_.map((J)=>J.split(" ")));return W1(this,(J)=>{return z.filter((G)=>J.classList.contains(G)).length>0}).length>0}function M7(_,z){if(arguments.length===1&&typeof _==="string"){if(this[0])return this[0].getAttribute(_);return}for(let J=0;J"u"){if(J=this[0],!J)return;if(J.dom7ElementDataStorage&&_ in J.dom7ElementDataStorage)return J.dom7ElementDataStorage[_];let G=J.getAttribute(`data-${_}`);if(G)return G;return}for(let G=0;G=0)z[V7(G.name.split("data-")[1])]=G.value}for(let J in z)if(z[J]==="false")z[J]=!1;else if(z[J]==="true")z[J]=!0;else if(parseFloat(z[J])===z[J]*1)z[J]*=1;return z}function P7(_){if(typeof _>"u"){let z=this[0];if(!z)return;if(z.multiple&&z.nodeName.toLowerCase()==="select"){let J=[];for(let G=0;G=0;else J.value=_}return this}function j7(_){return this.val(_)}function H7(_){for(let z=0;z=0;A-=1){let L=F[A];if(G&&L.listener===G)X.removeEventListener(q,L.proxyListener,Z),F.splice(A,1);else if(G&&L.listener&&L.listener.dom7proxy&&L.listener.dom7proxy===G)X.removeEventListener(q,L.proxyListener,Z),F.splice(A,1);else if(!G)X.removeEventListener(q,L.proxyListener,Z),F.splice(A,1)}}}return this}function T7(..._){let z=this,[J,G,Z,U]=_;if(typeof _[1]==="function")[J,Z,U]=_,G=void 0;function Q(...q){if(Z.apply(this,q),z.off(J,G,Q,U),Q.dom7proxy)delete Q.dom7proxy}return Q.dom7proxy=Z,z.on(J,G,Q,U)}function E7(..._){let z=P0(),J=_[0].split(" "),G=_[1];for(let Z=0;ZF>0),q.dispatchEvent(Y),q.dom7EventData=[],delete q.dom7EventData}}}return this}function w7(_){let z=this;function J(G){if(G.target!==this)return;_.call(this,G),z.off("transitionstart",J)}if(_)z.on("transitionstart",J);return this}function k7(_){let z=this;function J(G){if(G.target!==this)return;_.call(this,G),z.off("transitionend",J)}if(_)z.on("transitionend",J);return this}function v7(_){let z=this;function J(G){if(G.target!==this)return;_.call(this,G),z.off("animationend",J)}if(_)z.on("animationend",J);return this}function b7(){let _=P0();if(this[0]===_)return _.innerWidth;if(this.length>0)return parseFloat(this.css("width"));return null}function g7(_){if(this.length>0){if(_){let z=this.styles();return this[0].offsetWidth+parseFloat(z.getPropertyValue("margin-right"))+parseFloat(z.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function $7(){let _=P0();if(this[0]===_)return _.innerHeight;if(this.length>0)return parseFloat(this.css("height"));return null}function h7(_){if(this.length>0){if(_){let z=this.styles();return this[0].offsetHeight+parseFloat(z.getPropertyValue("margin-top"))+parseFloat(z.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function m7(){if(this.length>0){let _=P0(),z=r0(),J=this[0],G=J.getBoundingClientRect(),Z=z.body,U=J.clientTop||Z.clientTop||0,Q=J.clientLeft||Z.clientLeft||0,q=J===_?_.scrollY:J.scrollTop,Y=J===_?_.scrollX:J.scrollLeft;return{top:G.top+q-U,left:G.left+Y-Q}}return null}function u7(){for(let _=0;_{_.apply(z,[z,J])}),this}function p7(_){let z=W1(this,_);return $(z)}function s7(_){if(typeof _>"u")return this[0]?this[0].innerHTML:null;for(let z=0;z"u")return this[0]?this[0].textContent.trim():null;for(let z=0;z"u")return!1;if(typeof _==="string"){if(G.matches)return G.matches(_);if(G.webkitMatchesSelector)return G.webkitMatchesSelector(_);if(G.msMatchesSelector)return G.msMatchesSelector(_);Z=$(_);for(U=0;U"u")return this;let z=this.length;if(_>z-1)return $([]);if(_<0){let J=z+_;if(J<0)return $([]);return $([this[J]])}return $([this[_]])}function a7(..._){let z,J=r0();for(let G=0;G<_.length;G+=1){z=_[G];for(let Z=0;Z=0;G-=1)this[J].insertBefore(Z.childNodes[G],this[J].childNodes[0])}else if(_ instanceof b0)for(G=0;G<_.length;G+=1)this[J].insertBefore(_[G],this[J].childNodes[0]);else this[J].insertBefore(_,this[J].childNodes[0]);return this}function z3(_){return $(_).prepend(this),this}function G3(_){let z=$(_);for(let J=0;J1)for(let G=0;G1)for(let G=0;G0){if(_){if(this[0].nextElementSibling&&$(this[0].nextElementSibling).is(_))return $([this[0].nextElementSibling]);return $([])}if(this[0].nextElementSibling)return $([this[0].nextElementSibling]);return $([])}return $([])}function U3(_){let z=[],J=this[0];if(!J)return $([]);while(J.nextElementSibling){let G=J.nextElementSibling;if(_){if($(G).is(_))z.push(G)}else z.push(G);J=G}return $(z)}function q3(_){if(this.length>0){let z=this[0];if(_){if(z.previousElementSibling&&$(z.previousElementSibling).is(_))return $([z.previousElementSibling]);return $([])}if(z.previousElementSibling)return $([z.previousElementSibling]);return $([])}return $([])}function Q3(_){let z=[],J=this[0];if(!J)return $([]);while(J.previousElementSibling){let G=J.previousElementSibling;if(_){if($(G).is(_))z.push(G)}else z.push(G);J=G}return $(z)}function Y3(_){return this.nextAll(_).add(this.prevAll(_))}function X3(_){let z=[];for(let J=0;J"u")return $([]);if(!z.is(_))z=z.parents(_).eq(0);return z}function O3(_){let z=[];for(let J=0;J"u")U="swing";return this.each(function(){let Y=this,X,F,A,L,V,K,I,y,M=G>0||G===0,P=J>0||J===0;if(typeof U>"u")U="swing";if(M){if(X=Y.scrollTop,!Z)Y.scrollTop=G}if(P){if(F=Y.scrollLeft,!Z)Y.scrollLeft=J}if(!Z)return;if(M)A=Y.scrollHeight-Y.offsetHeight,V=Math.max(Math.min(G,A),0);if(P)L=Y.scrollWidth-Y.offsetWidth,K=Math.max(Math.min(J,L),0);let N=null;if(M&&V===X)M=!1;if(P&&K===F)P=!1;function j(T=new Date().getTime()){if(N===null)N=T;let x=Math.max(Math.min((T-N)/Z,1),0),E=U==="linear"?x:0.5-Math.cos(x*Math.PI)/2,w;if(M)I=X+E*(V-X);if(P)y=F+E*(K-F);if(M&&V>X&&I>=V)Y.scrollTop=V,w=!0;if(M&&VF&&y>=K)Y.scrollLeft=K,w=!0;if(P&&K"u"){if(U.length>0)return U[0].scrollTop;return null}return U.scrollTo(void 0,z,J,G,Z)}function y3(..._){let[z,J,G,Z]=_;if(_.length===3&&typeof G==="function")[z,J,Z,G]=_;let U=this;if(typeof z>"u"){if(U.length>0)return U[0].scrollLeft;return null}return U.scrollTo(z,void 0,J,G,Z)}function f3(_,z){let J=P0(),G=this,Z={props:Object.assign({},_),params:Object.assign({duration:300,easing:"swing"},z),elements:G,animating:!1,que:[],easingProgress(Q,q){if(Q==="swing")return 0.5-Math.cos(q*Math.PI)/2;if(typeof Q==="function")return Q(q);return q},stop(){if(Z.frameId)J.cancelAnimationFrame(Z.frameId);Z.animating=!1,Z.elements.each((Q)=>{let q=Q;delete q.dom7AnimateInstance}),Z.que=[]},done(Q){if(Z.animating=!1,Z.elements.each((q)=>{let Y=q;delete Y.dom7AnimateInstance}),Q)Q(G);if(Z.que.length>0){let q=Z.que.shift();Z.animate(q[0],q[1])}},animate(Q,q){if(Z.animating)return Z.que.push([Q,q]),Z;let Y=[];Z.elements.each((y,M)=>{let P,N,j,T,x;if(!y.dom7AnimateInstance)Z.elements[M].dom7AnimateInstance=Z;Y[M]={container:y},Object.keys(Q).forEach((E)=>{P=J.getComputedStyle(y,null).getPropertyValue(E).replace(",","."),N=parseFloat(P),j=P.replace(N,""),T=parseFloat(Q[E]),x=Q[E]+j,Y[M][E]={initialFullValue:P,initialValue:N,unit:j,finalValue:T,finalFullValue:x,currentValue:N}})});let X=null,F,A=0,L=0,V,K=!1;Z.animating=!0;function I(){F=new Date().getTime();let y,M;if(!K){if(K=!0,q.begin)q.begin(G)}if(X===null)X=F;if(q.progress)q.progress(G,Math.max(Math.min((F-X)/q.duration,1),0),X+q.duration-F<0?0:X+q.duration-F,X);if(Y.forEach((P)=>{let N=P;if(V||N.done)return;Object.keys(Q).forEach((j)=>{if(V||N.done)return;y=Math.max(Math.min((F-X)/q.duration,1),0),M=Z.easingProgress(q.easing,y);let{initialValue:T,finalValue:x,unit:E}=N[j];N[j].currentValue=T+M*(x-T);let w=N[j].currentValue;if(x>T&&w>=x||x"u"){for(let G=0;G{if(_==="$")return;$.fn[_]=f_[_]});var B=$;function U_(_={}){let{defaultSelector:z,constructor:J,domProp:G,app:Z,addMethods:U}=_,Q={create(...q){if(Z)return new J(Z,...q);return new J(...q)},get(q=z){if(q instanceof J)return q;let Y=B(q);if(Y.length===0)return;return Y[0][G]},destroy(q){let Y=Q.get(q);if(Y&&Y.destroy)return Y.destroy();return}};if(U&&Array.isArray(U))U.forEach((q)=>{Q[q]=(Y=z,...X)=>{let F=Q.get(Y);if(F&&F[q])return F[q](...X);return}});return Q}function q_(_={}){let{defaultSelector:z,constructor:J,app:G}=_;return e(U_({defaultSelector:z,constructor:J,app:G,domProp:"f7Modal"}),{open(U,Q,q){let Y=B(U);if(Y.length>1&&q){let F=B(q).parents(".page");if(F.length)Y.each((A)=>{let L=B(A);if(L.parents(F)[0]===F[0])Y=L})}if(Y.length>1)Y=Y.eq(Y.length-1);if(!Y.length)return;let X=Y[0].f7Modal;if(!X){let F=Y.dataset();X=new J(G,{el:Y,...F})}return X.open(Q)},close(U=z,Q,q){let Y=B(U);if(!Y.length)return;if(Y.length>1){let F;if(q){let A=B(q);if(A.length)F=A.parents(Y)}if(F&&F.length>0)Y=F;else Y=Y.eq(Y.length-1)}let X=Y[0].f7Modal;if(!X){let F=Y.dataset();X=new J(G,{el:Y,...F})}return X.close(Q)}})}var R1=[];function s3(_){let z=this,J=Y0(),G=Q0();return new Promise((Z,U)=>{let Q=z.instance,q,Y,X;if(!_){U(Error("Framework7: Lazy module must be specified"));return}function F(A){if(z.use(A),Q)Q.useModuleParams(A,Q.params),Q.useModule(A)}if(typeof _==="string"){let A=_.match(/([a-z0-9-]*)/i);if(_.indexOf(".")<0&&A&&A[0].length===_.length){if(!Q||Q&&!Q.params.lazyModulesPath){U(Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));return}q=`${Q.params.lazyModulesPath}/${_}/${_}.lazy.js`}else q=_}else if(typeof _==="function")X=_;else Y=_;if(X){let A=X(z,!1);if(!A){U(Error("Framework7: Can't find Framework7 component in specified component function"));return}if(z.prototype.modules&&z.prototype.modules[A.name]){Z();return}F(A),Z()}if(Y){let A=Y;if(!A){U(Error("Framework7: Can't find Framework7 component in specified component"));return}if(z.prototype.modules&&z.prototype.modules[A.name]){Z();return}F(A),Z()}if(q){if(R1.indexOf(q)>=0){Z();return}R1.push(q);let A=new Promise((V,K)=>{fetch(q).then((I)=>I.text()).then((I)=>{let M=`f7_component_loader_callback_${b_()}`,P=G.createElement("script");P.innerHTML=`window.${M} = function (Framework7, Framework7AutoInstallComponent) {return ${I.trim()}}`,B("head").append(P);let N=J[M];delete J[M],B(P).remove();let j=N(z,!1);if(!j){K(Error(`Framework7: Can't find Framework7 component in ${q} file`));return}if(z.prototype.modules&&z.prototype.modules[j.name]){V();return}F(j),V()}).catch((I)=>{K(I)})}),L=new Promise((V)=>{fetch(q.replace(".lazy.js",Q.rtl?".rtl.css":".css").replace(".js",Q.rtl?".rtl.css":".css")).then((K)=>K.text()).then((K)=>{let I=G.createElement("style");I.innerHTML=K,B("head").append(I),V()}).catch(()=>{V()})});Promise.all([A,L]).then(()=>{Z()}).catch((V)=>{U(V)})}})}var L1=s3;var r3=(_,z,...J)=>{let G=z||{},Z=J||[],U=Object.keys(G).map((q)=>{if(q[0]==="_"){if(G[q])return q.replace("_","");return""}return`${q}="${G[q]}"`}).filter((q)=>!!q).join(" ");if(["path","img","circle","polygon","line","input"].indexOf(_)>=0)return`<${_} ${U} />`.trim();let Q=Z.filter((q)=>!!q).map((q)=>Array.isArray(q)?q.join(""):q).join("");return`<${_} ${U}>${Q}${_}>`.trim()},M1=r3;class j0 extends J_{constructor(_={}){super(_);if(j0.instance&&typeof window<"u")throw Error("Framework7 is already initialized and can't be initialized more than once");let z=D0({userAgent:_.userAgent||void 0}),J=T0(),G=e({},_),Z=this;Z.device=z,Z.support=J;let U=Y0(),Q=Q0();j0.instance=Z;let q={el:"body",theme:"auto",routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,darkMode:void 0,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0,userAgent:null,url:null,mdColorScheme:"default",colors:{primary:"#007aff",red:"#ff3b30",green:"#4cd964",blue:"#2196f3",pink:"#ff2d55",yellow:"#ffcc00",orange:"#ff9500",purple:"#9c27b0",deeppurple:"#673ab7",lightblue:"#5ac8fa",teal:"#009688",lime:"#cddc39",deeporange:"#ff6b22",white:"#ffffff",black:"#000000"}};if(Z.useModulesParams(q),Z.params=e(q,_),e(Z,{name:Z.params.name,routes:Z.params.routes,theme:function(){if(Z.params.theme==="auto"){if(z.ios)return"ios";return"md"}return Z.params.theme}(),passedParams:G,online:U.navigator.onLine,colors:Z.params.colors,mdColorScheme:Z.params.mdColorScheme||"default",darkMode:Z.params.darkMode}),_.store)Z.params.store=_.store;if(Z.$el&&Z.$el[0])Z.$el[0].f7=Z;if(Z.useModules(),Z.initStore(),Z.params.init)if(z.cordova&&Z.params.initOnDeviceReady)B(Q).on("deviceready",()=>{Z.init()});else Z.init();return Z}setColorTheme(_,z){if(!_)return;let J=this;J.colors.primary=_,J.mdColorScheme=z||J.mdColorScheme,J.setColors()}setMdColorScheme(_){let z=this;z.mdColorScheme=_||z.mdColorScheme,z.setColors()}setColors(){let _=this,z=Q0();if(!_.colorsStyleEl)_.colorsStyleEl=z.createElement("style"),z.head.prepend(_.colorsStyleEl);_.colorsStyleEl.textContent=_.utils.colorThemeCSSStyles(_.colors,_.mdColorScheme)}mount(_){let z=this,J=Y0(),G=Q0(),Z=B(_||z.params.el).eq(0);if(z.$el=Z,z.$el&&z.$el[0])z.el=z.$el[0],z.el.f7=z,z.rtl=Z.css("direction")==="rtl";let U="(prefers-color-scheme: dark)",Q="(prefers-color-scheme: light)";if(z.mq={},J.matchMedia)z.mq.dark=J.matchMedia(U),z.mq.light=J.matchMedia(Q);z.colorSchemeListener=function({matches:Y,media:X}){if(!Y)return;let F=G.querySelector("html");if(X===U)F.classList.add("dark"),z.darkMode=!0,z.emit("darkModeChange",!0);else if(X===Q)F.classList.remove("dark"),z.darkMode=!1,z.emit("darkModeChange",!1)},z.emit("mount")}initStore(){let _=this;if(typeof _.params.store<"u"&&_.params.store.__store)_.store=_.params.store;else _.store=_.createStore(_.params.store)}enableAutoDarkMode(){let _=Y0(),z=Q0();if(!_.matchMedia)return;let J=this,G=z.querySelector("html");if(J.mq.dark&&J.mq.light)J.mq.dark.addEventListener("change",J.colorSchemeListener),J.mq.light.addEventListener("change",J.colorSchemeListener);if(J.mq.dark&&J.mq.dark.matches)G.classList.add("dark"),J.darkMode=!0,J.emit("darkModeChange",!0);else if(J.mq.light&&J.mq.light.matches)G.classList.remove("dark"),J.darkMode=!1,J.emit("darkModeChange",!1)}disableAutoDarkMode(){if(!Y0().matchMedia)return;let z=this;if(z.mq.dark)z.mq.dark.removeEventListener("change",z.colorSchemeListener);if(z.mq.light)z.mq.light.removeEventListener("change",z.colorSchemeListener)}setDarkMode(_){let z=this;if(_==="auto")z.enableAutoDarkMode();else z.disableAutoDarkMode(),B("html")[_?"addClass":"removeClass"]("dark"),z.darkMode=_}initAppComponent(_){let z=this;z.router.componentLoader(z.params.component,z.params.componentUrl,{componentOptions:{el:z.$el[0]}},(J)=>{if(z.$el=B(J),z.$el[0].f7=z,z.$elComponent=J.f7Component,z.el=z.$el[0],_)_()},()=>{})}init(_){let z=this;z.setColors(),z.mount(_);let J=()=>{if(z.initialized)return;if(z.$el.addClass("framework7-initializing"),z.rtl)B("html").attr("dir","rtl");if(typeof z.params.darkMode>"u")z.darkMode=B("html").hasClass("dark");else z.setDarkMode(z.params.darkMode);let G=Y0();if(G.addEventListener("offline",()=>{z.online=!1,z.emit("offline"),z.emit("connection",!1)}),G.addEventListener("online",()=>{z.online=!0,z.emit("online"),z.emit("connection",!0)}),z.$el.addClass("framework7-root"),B("html").removeClass("ios md").addClass(z.theme),z.params.iosTranslucentBars&&z.theme==="ios")B("html").addClass("ios-translucent-bars");if(z.params.iosTranslucentModals&&z.theme==="ios")B("html").addClass("ios-translucent-modals");s0(()=>{z.$el.removeClass("framework7-initializing")}),z.initialized=!0,z.emit("init")};if(z.params.component||z.params.componentUrl)z.initAppComponent(()=>{J()});else J();return z}loadModule(..._){return j0.loadModule(..._)}loadModules(..._){return j0.loadModules(..._)}getVnodeHooks(_,z){let J=this;if(!J.vnodeHooks||!J.vnodeHooks[_])return[];return J.vnodeHooks[_][z]||[]}get $(){return B}static get Dom7(){return B}static get $(){return B}static get device(){return D0()}static get support(){return T0()}static get Class(){return J_}static get Events(){return y_}}j0.$jsx=M1;j0.ModalMethods=q_;j0.ConstructorMethods=U_;j0.loadModule=L1;j0.loadModules=function(z){return Promise.all(z.map((J)=>j0.loadModule(J)))};var c_=j0;var y1={name:"device",static:{getDevice:D0},on:{init(){let _=Q0(),z=D0(),J=[],G=_.querySelector("html"),Z=_.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');if(!G)return;if(z.standalone&&z.ios&&Z&&Z.content==="black-translucent")J.push("device-full-viewport");if(J.push(`device-pixel-ratio-${Math.floor(z.pixelRatio)}`),z.os&&!z.desktop)J.push(`device-${z.os}`);else if(z.desktop){if(J.push("device-desktop"),z.os)J.push(`device-${z.os}`)}if(z.cordova)J.push("device-cordova");if(z.capacitor)J.push("device-capacitor");J.forEach((U)=>{G.classList.add(U)})}}};var f1={name:"support",static:{getSupport:T0}};var B1={name:"utils",proto:{utils:M_},static:{utils:M_}};var N1={name:"resize",create(){let _=this;_.getSize=()=>{if(!_.el)return{width:0,height:0,left:0,top:0};let z=_.$el.offset(),[J,G,Z,U]=[_.el.offsetWidth,_.el.offsetHeight,z.left,z.top];return _.width=J,_.height=G,_.left=Z,_.top=U,{width:J,height:G,left:Z,top:U}}},on:{init(){let _=this,z=Y0();_.getSize(),z.addEventListener("resize",()=>{_.emit("resize")},!1),z.addEventListener("orientationchange",()=>{_.emit("orientationchange")})},orientationchange(){let _=Q0();if(D0().ipad)_.body.scrollLeft=0,setTimeout(()=>{_.body.scrollLeft=0},0)},resize(){this.getSize()}}};function l3(){let _=this,z=D0(),J=T0(),G=Y0(),Z=Q0(),U=_.params.touch,Q=U.touchRipple&&_.theme==="md";if(z.ios&&z.webView)G.addEventListener("touchstart",()=>{});let q,Y,X,F,A,L,V,K,I,y,M,P;function N(f){let o=B(f),O0=o.parents(U.activeStateElements);if(o.closest(".no-active-state").length)return null;let Z0;if(o.is(U.activeStateElements))Z0=o;if(O0.length>0)Z0=Z0?Z0.add(O0):O0;if(Z0&&Z0.length>1){let M0=[],K_;for(let E0=0;E00}function T(){if(!K)return;K.addClass("active-state")}function x(){if(!K)return;K.removeClass("active-state"),K=null}function E(f){let o=U.touchRippleElements,O0=B(f);if(O0.is(o)){if(O0.hasClass("no-ripple"))return!1;return O0}if(O0.parents(o).length>0){let Z0=O0.parents(o).eq(0);if(Z0.hasClass("no-ripple"))return!1;return Z0}return!1}function w(f,o,O0){if(!f)return;y=_.touchRipple.create(_,f,o,O0)}function G0(){if(!y)return;y.remove(),y=void 0,M=void 0}function I0(f){if(M=E(f),!M||M.length===0){M=void 0;return}if(!j(M))G0(),w(M,q,Y);else clearTimeout(P),P=setTimeout(()=>{G0(),w(M,q,Y)},80)}function a(){clearTimeout(P),G0()}function J0(){if(!y&&M&&!F)clearTimeout(P),w(M,q,Y),setTimeout(G0,0);else G0()}function r(f){let o=N(f.target);if(o){if(o.addClass("active-state"),"which"in f&&f.which===3)setTimeout(()=>{B(".active-state").removeClass("active-state")},0)}if(Q)q=f.pageX,Y=f.pageY,I0(f.target,f.pageX,f.pageY)}function _0(){if(!U.activeStateOnMouseMove)B(".active-state").removeClass("active-state");if(Q)a()}function c(){if(B(".active-state").removeClass("active-state"),Q)J0()}function l(){if(X=null,clearTimeout(I),clearTimeout(L),U.activeState)x();if(Q)J0()}let p,h=!1,m=null,n=".dialog-button, .actions-button",u=!1,d=null;function K0(f){if(!f.isTrusted)return!0;if(F=!1,A=!1,V=!1,p=void 0,f.targetTouches.length>1){if(K)x();return!0}if(f.touches.length>1&&K)x();if(U.tapHold){if(L)clearTimeout(L);L=setTimeout(()=>{if(f&&f.touches&&f.touches.length>1)return;A=!0,f.preventDefault(),V=!0,B(f.target).trigger("taphold",f),_.emit("taphold",f)},U.tapHoldDelay)}if(X=f.target,q=f.targetTouches[0].pageX,Y=f.targetTouches[0].pageY,h=f.target.closest(".segmented-strong .button-active, .segmented-strong .tab-link-active"),u=_.theme==="ios"&&f.target.closest(n),h)m=h.closest(".segmented-strong");if(U.activeState){if(K=N(X),K&&!j(K))T();else if(K)I=setTimeout(T,80)}if(Q)I0(X,q,Y);return!0}function L0(f){if(!f.isTrusted)return;let o,O0,Z0=!0;if(f.type==="touchmove")o=f.targetTouches[0],O0=U.touchClicksDistanceThreshold;let M0=f.targetTouches[0].pageX,K_=f.targetTouches[0].pageY;if(typeof p>"u")p=!!(p||Math.abs(K_-Y)>Math.abs(M0-q));if(u||!p&&h&&m){if(f.cancelable)f.preventDefault()}if(!p&&h&&m){let d0=Z.elementFromPoint(f.targetTouches[0].clientX,f.targetTouches[0].clientY).closest(".segmented-strong .button:not(.button-active):not(.tab-link-active)");if(d0&&m.contains(d0))B(d0).trigger("click","f7Segmented"),X=d0}if(O0&&o){let{pageX:E0,pageY:d0}=o;if(Math.abs(E0-q)>O0||Math.abs(d0-Y)>O0)F=!0}else F=!0;if(F){if(V=!0,u){if(d=Z.elementFromPoint(f.targetTouches[0].clientX,f.targetTouches[0].clientY).closest(n),d&&K&&K[0]===d)Z0=!1;else if(d)setTimeout(()=>{K=N(d),T()})}if(U.tapHold)clearTimeout(L);if(U.activeState&&Z0)clearTimeout(I),x();if(Q)a()}}function C0(f){if(!f.isTrusted)return!0;if(p=void 0,h=!1,m=null,u=!1,clearTimeout(I),clearTimeout(L),d)B(d).trigger("click","f7TouchMoveActivable"),d=null;if(Z.activeElement===f.target){if(U.activeState)x();if(Q)J0();return!0}if(U.activeState)T(),setTimeout(x,0);if(Q)J0();if(U.tapHoldPreventClicks&&A||V){if(f.cancelable)f.preventDefault();return V=!0,!1}return!0}function Y_(f){let o=f&&f.detail&&f.detail==="f7Overswipe",O0=f&&f.detail&&f.detail==="f7Segmented",Z0=f&&f.detail&&f.detail==="f7TouchMoveActivable",M0=V;if(X&&f.target!==X)if(o||O0||Z0)M0=!1;else M0=!0;else if(Z0)M0=!1;if(U.tapHold&&U.tapHoldPreventClicks&&A)M0=!0;if(M0)f.stopImmediatePropagation(),f.stopPropagation(),f.preventDefault();if(U.tapHold)L=setTimeout(()=>{A=!1},z.ios||z.androidChrome?100:400);return V=!1,X=null,!M0}function x0(f,o){_.emit({events:f,data:[o]})}function t0(f){x0("click",f)}function B_(f){x0("touchstart touchstart:active",f)}function X_(f){x0("touchmove touchmove:active",f)}function F_(f){x0("touchend touchend:active",f)}function D(f){x0("touchstart:passive",f)}function s(f){x0("touchmove:passive",f)}function k(f){x0("touchend:passive",f)}let q0={passive:!0},V0={passive:!0,capture:!0},A0={passive:!1},R0={passive:!1,capture:!0};if(Z.addEventListener("click",t0,!0),Z.addEventListener(_.touchEvents.start,B_,R0),Z.addEventListener(_.touchEvents.move,X_,A0),Z.addEventListener(_.touchEvents.end,F_,A0),Z.addEventListener(_.touchEvents.start,D,V0),Z.addEventListener(_.touchEvents.move,s,q0),Z.addEventListener(_.touchEvents.end,k,q0),J.touch)_.on("click",Y_),_.on("touchstart",K0),_.on("touchmove",L0),_.on("touchend",C0),Z.addEventListener("touchcancel",l,{passive:!0});else if(U.activeState)_.on("touchstart",r),_.on("touchmove",_0),_.on("touchend",c),Z.addEventListener("pointercancel",c,{passive:!0});Z.addEventListener("contextmenu",(f)=>{if(U.disableContextMenu&&(z.ios||z.android||z.cordova||G.Capacitor&&(G.Capacitor.isNative||G.Capacitor.isNativePlatform&&G.Capacitor.isNativePlatform())))f.preventDefault();if(Q){if(K)x();J0()}})}var D1={name:"touch",params:{touch:{touchClicksDistanceThreshold:5,disableContextMenu:!1,tapHold:!1,tapHoldDelay:750,tapHoldPreventClicks:!0,activeState:!0,activeStateElements:"a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .link, .item-link, .accordion-item-toggle",activeStateOnMouseMove:!1,touchRipple:!0,touchRippleElements:".ripple, .link, .item-link, .list label.item-content, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .list.accordion-list .accordion-item-toggle",touchRippleInsetElements:".ripple-inset, .icon-only, .searchbar-disable-button, .input-clear-button, .notification-close-button, .md .navbar .link.back",touchHighlight:!0,touchHighlightElements:".toolbar-pane, .navbar .left, .navbar .right, .actions-group:not(.actions-grid .actions-group), .searchbar-input-wrap, .searchbar-disable-button, .subnavbar, .searchbar-input-wrap .autocomplete-dropdown, .messagebar-area, .notification, .toast, .fab > a"}},create(){let _=this,z=T0();e(_,{touchEvents:{start:z.touch?"touchstart":"pointerdown",move:z.touch?"touchmove":"pointermove",end:z.touch?"touchend":"pointerup"}})},on:{init:l3}};function o3(_={}){let z={__store:!0},J={..._.state||{}},G={..._.actions||{}},Z={..._.getters||{}},U=e({},J),Q=[],q={},Y={};Object.keys(Z).forEach((I)=>{q[I]=[],Y[I]=[]});let X=(I)=>{return Z[I]({state:z.state})},F=(I,y)=>{if(!q[I])q[I]=[];y.forEach((M)=>{if(q[I].indexOf(M)<0)q[I].push(M)})},A=(I,y)=>{if(!Y[I])Y[I]=[];Y[I].push(y)},L=(I)=>{Object.keys(q).filter((M)=>{return q[M].indexOf(I)>=0}).forEach((M)=>{if(!Y[M]||!Y[M].length)return;Y[M].forEach((P)=>{P(X(M))})})},V=(I)=>{Object.keys(Y).forEach((y)=>{let M=Y[y];if(M.indexOf(I)>=0)M.splice(M.indexOf(I),1)})};z.__removeCallback=(I)=>{V(I)};let K=(I,y=!0)=>{if(I==="constructor")return;Q=[];let M=X(I);F(I,Q);let N={value:M,onUpdated:(T)=>{A(I,T)}};if(!y)return N;let j=(T)=>{N.value=T};return N.__callback=j,A(I,j),N};return z.state=new Proxy(U,{set:(I,y,M)=>{return I[y]=M,L(y),!0},get:(I,y)=>{return Q.push(y),I[y]}}),z.getters=new Proxy(Z,{set:()=>!1,get:(I,y)=>{if(!I[y])return;return K(y,!0)}}),z._gettersPlain=new Proxy(Z,{set:()=>!1,get:(I,y)=>{if(!I[y])return;return K(y,!1)}}),z.dispatch=(I,y)=>{return new Promise((M,P)=>{if(!G[I])throw P(),Error(`Framework7: Store action "${I}" is not found`);let N=G[I]({state:z.state,dispatch:z.dispatch},y);M(N)})},z}var n_=o3;var P1={name:"store",static:{createStore:n_},proto:{createStore:n_}};var H0={init(){let _=this,z=Q0(),J={},G,Z,U,Q,q,Y,X,F,A,L,V,K,I,y,M,P,N,j,T,x,E,w=_.theme==="ios";function G0(r){if(!_.swipeout.allow)return;Z=!1,G=!0,U=void 0,J.x=r.type==="touchstart"?r.targetTouches[0].pageX:r.pageX,J.y=r.type==="touchstart"?r.targetTouches[0].pageY:r.pageY,Q=new Date().getTime(),Y=B(this)}function I0(r){if(!G)return;let _0=r.type==="touchmove"?r.targetTouches[0].pageX:r.pageX,c=r.type==="touchmove"?r.targetTouches[0].pageY:r.pageY;if(typeof U>"u")U=!!(U||Math.abs(c-J.y)>Math.abs(_0-J.x));if(U){Y.removeClass("swipeout-active"),G=!1;return}if(!Z){if(B(".list.sortable-opened").length>0)return;if(X=Y.find(".swipeout-content"),!_.params.swipeout.noFollow)Y.addClass("swipeout-active");if(F=Y.find(".swipeout-actions-right"),A=Y.find(".swipeout-actions-left"),L=null,V=null,M=null,P=null,T=null,j=null,A.length>0)L=A.outerWidth(),M=A.children("a"),j=A.find(".swipeout-overswipe");if(F.length>0)V=F.outerWidth(),P=F.children("a"),T=F.find(".swipeout-overswipe");if(I=Y.hasClass("swipeout-opened"),I)y=Y.find(".swipeout-actions-left.swipeout-actions-opened").length>0?"left":"right";if(Y.removeClass("swipeout-transitioning"),!_.params.swipeout.noFollow)Y.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),Y.removeClass("swipeout-opened")}if(Z=!0,r.cancelable)r.preventDefault();if(q=_0-J.x,K=q,I)if(y==="right")K-=V;else K+=L;if(K>0&&A.length===0||K<0&&F.length===0){if(!I){if(Y.removeClass("swipeout-active"),G=!1,Z=!1,X.transform(""),P&&P.length>0)P.transform("");if(M&&M.length>0)M.transform("");return}K=0}if(K<0)N="to-left";else if(K>0)N="to-right";else if(!N)N="to-left";let l,p;if(r.f7PreventSwipePanel=!0,_.params.swipeout.noFollow){if(I){if(y==="right"&&q>0)_.swipeout.close(Y);if(y==="left"&&q<0)_.swipeout.close(Y)}else{if(q<0&&F.length>0)_.swipeout.open(Y,"right");if(q>0&&A.length>0)_.swipeout.open(Y,"left")}G=!1,Z=!1;return}if(x=!1,E=!1,F.length>0){let h=K;if(p=h/V,h<-V){let m=h/-V;if(h=-V-(-h-V)**0.8,K=h,T.length>0&&m>_.params.swipeout.overswipeRatio)E=!0}if(N!=="to-left")p=0,h=0;P.each((m)=>{let n=B(m);if(typeof m.f7SwipeoutButtonOffset>"u")n[0].f7SwipeoutButtonOffset=m.offsetLeft;if(typeof m.f7SwipeoutButtonWidth>"u")n[0].f7SwipeoutButtonWidth=m.offsetWidth;l=m.f7SwipeoutButtonOffset;let u=n[0].f7SwipeoutButtonWidth;if(T.length>0&&n.hasClass("swipeout-overswipe")&&N==="to-left"){if(w){let d=E?u+l-8:u,K0=d-u;n.css({width:`${d}px`,marginLeft:E?`${-K0}px`:"0px"})}else n.css({left:`${E?-l:0}px`});if(E){if(!n.hasClass("swipeout-overswipe-active"))Y.trigger("swipeout:overswipeenter"),_.emit("swipeoutOverswipeEnter",Y[0]);n.addClass("swipeout-overswipe-active")}else{if(n.hasClass("swipeout-overswipe-active"))Y.trigger("swipeout:overswipeexit"),_.emit("swipeoutOverswipeExit",Y[0]);n.removeClass("swipeout-overswipe-active")}}if(w){let d=V-l,K0=V-l-u,L0=(-h-K0)/(d-K0);L0=Math.max(Math.min(L0,1),0),n.transform(`scale(${L0})`)}else n.transform(`translate3d(${h-l*(1+Math.max(p,-1))}px,0,0)`)})}if(A.length>0){let h=K;if(p=h/L,h>L){let m=h/V;if(h=L+(h-L)**0.8,K=h,j.length>0&&m>_.params.swipeout.overswipeRatio)x=!0}if(N!=="to-right")h=0,p=0;M.each((m,n)=>{let u=B(m);if(typeof m.f7SwipeoutButtonWidth>"u")u[0].f7SwipeoutButtonWidth=m.offsetWidth;if(typeof m.f7SwipeoutButtonOffset>"u")u[0].f7SwipeoutButtonOffset=w?m.offsetLeft:L-m.offsetLeft-m.offsetWidth;let d=u[0].f7SwipeoutButtonWidth;if(l=m.f7SwipeoutButtonOffset,j.length>0&&u.hasClass("swipeout-overswipe")&&N==="to-right"){if(w){let K0=x?L-16:d,L0=K0-d;u.css({width:`${K0}px`,marginRight:x?`${-L0}px`:"0px"})}else u.css({left:`${x?l:0}px`});if(x){if(!u.hasClass("swipeout-overswipe-active"))Y.trigger("swipeout:overswipeenter"),_.emit("swipeoutOverswipeEnter",Y[0]);u.addClass("swipeout-overswipe-active")}else{if(u.hasClass("swipeout-overswipe-active"))Y.trigger("swipeout:overswipeexit"),_.emit("swipeoutOverswipeExit",Y[0]);u.removeClass("swipeout-overswipe-active")}}if(M.length>1)u.css("z-index",M.length-n);if(w){let K0=l,L0=K0+d,C0=(h-K0)/(L0-K0);C0=Math.max(Math.min(C0,1),0),u.transform(`scale(${C0})`)}else u.transform(`translate3d(${h+l*(1-Math.min(p,1))}px,0,0)`)})}Y.trigger("swipeout",p),_.emit("swipeout",Y[0],p),X.transform(`translate3d(${K}px,0,0)`)}function a(){if(!G||!Z){G=!1,Z=!1;return}Y.removeClass("swipeout-active"),G=!1,Z=!1;let r=new Date().getTime()-Q,_0=N==="to-left"?F:A,c=N==="to-left"?V:L,l,p,h;if(r<300&&(q<-10&&N==="to-left"||q>10&&N==="to-right")||r>=300&&Math.abs(K)>c/2)l="open";else l="close";if(r<300){if(Math.abs(K)===0)l="close";if(Math.abs(K)===c)l="open"}if(l==="open"){H0.el=Y[0],Y.trigger("swipeout:open"),_.emit("swipeoutOpen",Y[0]),Y.addClass("swipeout-opened swipeout-transitioning");let n=N==="to-left"?-c:c;if(X.transform(`translate3d(${n}px,0,0)`),_0.addClass("swipeout-actions-opened"),p=N==="to-left"?P:M,p)for(h=0;h0&&M!==p)M.each((n)=>{let u=B(n);if(m=n.f7SwipeoutButtonOffset,typeof m>"u")u[0].f7SwipeoutButtonOffset=L-n.offsetLeft-n.offsetWidth;if(w)u.transform("scale(0)");else u.transform(`translate3d(${m}px,0,0)`)});if(P&&P.length>0&&P!==p)P.each((n)=>{let u=B(n);if(m=n.f7SwipeoutButtonOffset,typeof m>"u")u[0].f7SwipeoutButtonOffset=n.offsetLeft;if(w)u.transform("scale(0)");else u.transform(`translate3d(${-m}px,0,0)`)});X.transitionEnd(()=>{if(I&&l==="open"||!I&&l==="close")return;if(Y.trigger(l==="open"?"swipeout:opened":"swipeout:closed"),_.emit(l==="open"?"swipeoutOpened":"swipeoutClosed",Y[0]),Y.removeClass("swipeout-transitioning"),I&&l==="close"){if(F.length>0)P.transform("");if(A.length>0)M.transform("")}})}let J0={passive:!0};_.on("touchstart",(r)=>{if(H0.el){let _0=B(r.target);if(!(B(H0.el).is(_0[0])||_0.parents(".swipeout").is(H0.el)||_0.hasClass("modal-in")||(_0.attr("class")||"").indexOf("-backdrop")>0||_0.hasClass("actions-modal")||_0.parents(".actions-modal.modal-in, .dialog.modal-in").length>0))_.swipeout.close(H0.el)}}),B(z).on(_.touchEvents.start,"li.swipeout",G0,J0),_.on("touchmove:active",I0),_.on("touchend:passive",a)},allow:!0,el:void 0,open(..._){let z=this,[J,G,Z]=_;if(typeof _[1]==="function")[J,Z,G]=_;let U=B(J).eq(0);if(U.length===0)return;if(!U.hasClass("swipeout")||U.hasClass("swipeout-opened"))return;if(!G)if(U.find(".swipeout-actions-right").length>0)G="right";else G="left";let Q=U.find(`.swipeout-actions-${G}`),q=U.find(".swipeout-content");if(Q.length===0)return;U.trigger("swipeout:open").addClass("swipeout-opened").removeClass("swipeout-transitioning"),z.emit("swipeoutOpen",U[0]),Q.addClass("swipeout-actions-opened");let Y=Q.children("a"),X=Q.outerWidth(),F=G==="right"?-X:X;if(Y.length>1)Y.each((A,L)=>{let V=B(A);if(z.theme==="ios")V.transform("scale(1)");else if(G==="right")V.transform(`translate3d(${-A.offsetLeft}px,0,0)`);else V.css("z-index",Y.length-L).transform(`translate3d(${X-A.offsetWidth-A.offsetLeft}px,0,0)`)});U.addClass("swipeout-transitioning"),q.transitionEnd(()=>{if(U.trigger("swipeout:opened"),z.emit("swipeoutOpened",U[0]),Z)Z.call(U[0])}),s0(()=>{if(z.theme==="ios")Y.transform("scale(1)");else Y.transform(`translate3d(${F}px,0,0)`);q.transform(`translate3d(${F}px,0,0)`)}),H0.el=U[0]},close(_,z){let J=this,G=B(_).eq(0);if(G.length===0)return;if(!G.hasClass("swipeout-opened"))return;let Z=G.find(".swipeout-actions-opened").hasClass("swipeout-actions-right")?"right":"left",U=G.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),Q=U.children("a"),q=U.outerWidth();J.swipeout.allow=!1,G.trigger("swipeout:close"),J.emit("swipeoutClose",G[0]),G.removeClass("swipeout-opened").addClass("swipeout-transitioning");let Y;function X(){if(J.swipeout.allow=!0,G.hasClass("swipeout-opened"))return;if(G.removeClass("swipeout-transitioning"),Q.transform(""),G.trigger("swipeout:closed"),J.emit("swipeoutClosed",G[0]),z)z.call(G[0]);if(Y)clearTimeout(Y)}if(G.find(".swipeout-content").transform("").transitionEnd(X),Y=setTimeout(X,500),Q.each((F)=>{let A=B(F);if(J.theme==="ios")A.transform("scale(0)");else if(Z==="right")A.transform(`translate3d(${-F.offsetLeft}px,0,0)`);else A.transform(`translate3d(${q-F.offsetWidth-F.offsetLeft}px,0,0)`);let L=A[0].f7SwipeoutButtonWidth;A.css({left:"0px",width:L?`${L}px`:"",marginLeft:"0px"}).removeClass("swipeout-overswipe-active"),delete A[0].f7SwipeoutButtonWidth}),H0.el&&H0.el===G[0])H0.el=void 0},delete(_,z){let J=this,G=B(_).eq(0);if(G.length===0)return;H0.el=void 0,G.trigger("swipeout:delete"),J.emit("swipeoutDelete",G[0]),G.css({height:`${G.outerHeight()}px`}),G.transitionEnd(()=>{if(G.trigger("swipeout:deleted"),J.emit("swipeoutDeleted",G[0]),z)z.call(G[0]);if(G.parents(".virtual-list").length>0){let Z=G.parents(".virtual-list")[0].f7VirtualList,U=G[0].f7VirtualListIndex;if(Z&&typeof U<"u")Z.deleteItem(U)}else if(J.params.swipeout.removeElements)if(J.params.swipeout.removeElementsWithTimeout)setTimeout(()=>{G.remove()},J.params.swipeout.removeElementsTimeout);else G.remove();else G.removeClass("swipeout-deleting swipeout-transitioning")}),s0(()=>{G.addClass("swipeout-deleting swipeout-transitioning").css({height:"0px"}).find(".swipeout-content").transform("translate3d(-100%,0,0)")})}},j1={name:"swipeout",params:{swipeout:{actionsNoFold:!1,noFollow:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,overswipeRatio:1.2}},create(){h_(this,{swipeout:H0})},clicks:{".swipeout-open":function(z,J={}){this.swipeout.open(J.swipeout,J.side)},".swipeout-close":function(z){let J=this,G=z.closest(".swipeout");if(G.length===0)return;J.swipeout.close(G)},".swipeout-delete":function(z,J={}){let G=this,Z=z.closest(".swipeout");if(Z.length===0)return;let{confirm:U,confirmTitle:Q}=J;if(J.confirm)G.dialog.confirm(U,Q,()=>{G.swipeout.delete(Z)});else G.swipeout.delete(Z)}},on:{init(){let _=this;if(!_.params.swipeout)return;_.swipeout.init()}}};var Q_=[],l0=[];function t3(){if(l0.length===0)return;l0.shift().open()}class H1 extends J_{constructor(_,z){super(z,[_]);let J=this,G={};J.useModulesParams(G),J.params=e(G,z),J.opened=!1;let Z=J.params.containerEl?B(J.params.containerEl).eq(0):_.$el;if(!Z.length)Z=_.$el;return J.$containerEl=Z,J.containerEl=Z[0],J.useModules(),this}onOpen(){let _=this;_.opened=!0,Q_.push(_),B("html").addClass(`with-modal-${_.type.toLowerCase()}`),_.$el.trigger(`modal:open ${_.type.toLowerCase()}:open`),_.emit(`local::open modalOpen ${_.type}Open`,_)}onOpened(){let _=this;_.$el.trigger(`modal:opened ${_.type.toLowerCase()}:opened`),_.emit(`local::opened modalOpened ${_.type}Opened`,_)}onClose(){let _=this;if(_.opened=!1,!_.type||!_.$el)return;Q_.splice(Q_.indexOf(_),1),B("html").removeClass(`with-modal-${_.type.toLowerCase()}`),_.$el.trigger(`modal:close ${_.type.toLowerCase()}:close`),_.emit(`local::close modalClose ${_.type}Close`,_)}onClosed(){let _=this;if(!_.type||!_.$el)return;if(_.$el.removeClass("modal-out"),_.$el.hide(),_.params.backdrop&&(_.params.backdropUnique||_.forceBackdropUnique)&&_.$backdropEl)_.$backdropEl.remove();_.$el.trigger(`modal:closed ${_.type.toLowerCase()}:closed`),_.emit(`local::closed modalClosed ${_.type}Closed`,_)}open(_,z){let J=this,G=Q0(),Z=J.app,U=J.$el,Q=J.$backdropEl,q=J.type,Y=!0;if(typeof _<"u")Y=_;else if(typeof J.params.animate<"u")Y=J.params.animate;if(!U||U.hasClass("modal-in")){if(_===!1&&U[0]&&q!=="dialog")U[0].style.display="block";if(!z)return J}if(q==="dialog"&&Z.params.modal.queueDialogs){let L;if(B(".dialog.modal-in").length>0)L=!0;else if(Q_.length>0)Q_.forEach((V)=>{if(V.type==="dialog")L=!0});if(L)return l0.push(J),J}let X=U.parent(),F=U.parents(G).length>0;if(!X.is(J.$containerEl))J.$containerEl.append(U),J.once(`${q}Closed`,()=>{if(F)X.append(U);else U.remove()});if(U.show(),J.params.backdrop&&(J.params.backdropUnique||J.forceBackdropUnique)&&J.$backdropEl)J.$backdropEl.insertBefore(U);J._clientLeft=U[0].clientLeft;function A(){if(U.hasClass("modal-out"))J.onClosed();else if(U.hasClass("modal-in"))J.onOpened()}if(Y){if(Q)Q.removeClass("not-animated"),Q.addClass("backdrop-in");U.animationEnd(()=>{A()}),U.transitionEnd(()=>{A()}),U.removeClass("modal-out not-animated").addClass("modal-in"),J.onOpen()}else{if(Q)Q.addClass("backdrop-in not-animated");U.removeClass("modal-out").addClass("modal-in not-animated"),J.onOpen(),J.onOpened()}return J}close(_){let z=this,J=z.$el,G=z.$backdropEl,Z=!0;if(typeof _<"u")Z=_;else if(typeof z.params.animate<"u")Z=z.params.animate;if(!J||!J.hasClass("modal-in")){if(l0.indexOf(z)>=0)l0.splice(l0.indexOf(z),1);return z}if(G){let Q=!0;if(z.type==="popup")z.$el.prevAll(".popup.modal-in").add(z.$el.nextAll(".popup.modal-in")).each((q)=>{let Y=q.f7Modal;if(!Y)return;if(Y.params.closeByBackdropClick&&Y.params.backdrop&&Y.backdropEl===z.backdropEl)Q=!1});if(Q)G[Z?"removeClass":"addClass"]("not-animated"),G.removeClass("backdrop-in")}J[Z?"removeClass":"addClass"]("not-animated");function U(){if(J.hasClass("modal-out"))z.onClosed();else if(J.hasClass("modal-in"))z.onOpened()}if(Z)J.animationEnd(()=>{U()}),J.transitionEnd(()=>{U()}),J.removeClass("modal-in").addClass("modal-out"),z.onClose();else J.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),z.onClose(),z.onClosed();if(z.type==="dialog")t3();return z}destroy(){let _=this;if(_.destroyed)return;if(_.emit(`local::beforeDestroy modalBeforeDestroy ${_.type}BeforeDestroy`,_),_.$el){if(_.$el.trigger(`modal:beforedestroy ${_.type.toLowerCase()}:beforedestroy`),_.$el.length&&_.$el[0].f7Modal)delete _.$el[0].f7Modal}g_(_),_.destroyed=!0}}var o0=H1;class x1 extends o0{constructor(_,z){let J=e({backdrop:!0,closeByBackdropClick:!0,on:{}},z);super(_,J);let G=this;G.params=J;let Z;if(!G.params.el)Z=B(G.params.content);else Z=B(G.params.el);if(Z&&Z.length>0&&Z[0].f7Modal)return Z[0].f7Modal;if(Z.length===0)return G.destroy();let U;if(G.params.backdrop){if(U=_.$el.children(".custom-modal-backdrop"),U.length===0)U=B('
'),_.$el.append(U)}function Q(q){if(!G||G.destroyed)return;if(U&&q.target===U[0])G.close()}return G.on("customModalOpened",()=>{if(G.params.closeByBackdropClick&&G.params.backdrop)_.on("click",Q)}),G.on("customModalClose",()=>{if(G.params.closeByBackdropClick&&G.params.backdrop)_.off("click",Q)}),e(G,{app:_,$el:Z,el:Z[0],$backdropEl:U,backdropEl:U&&U[0],type:"customModal"}),Z[0].f7Modal=G,G}}var i_=x1;var C1={name:"modal",static:{Modal:o0,CustomModal:i_},create(){let _=this;_.customModal={create(z){return new i_(_,z)}}},params:{modal:{queueDialogs:!0}}};class S1 extends o0{constructor(_,z){let J=e({on:{}},_.params.sheet,z);super(_,J);let G=this,Z=Y0(),U=Q0(),Q=D0();if(G.params=J,typeof G.params.backdrop>"u")G.params.backdrop=_.theme!=="ios";let q;if(!G.params.el)q=B(G.params.content).filter((D)=>D.nodeType===1).eq(0);else q=B(G.params.el).eq(0);if(q&&q.length>0&&q[0].f7Modal)return q[0].f7Modal;if(q.length===0)return G.destroy();let Y;if(G.params.backdrop&&G.params.backdropEl)Y=B(G.params.backdropEl);else if(G.params.backdrop){if(G.params.backdropUnique)Y=B('
'),G.$containerEl.append(Y);else Y=G.$containerEl.children(".sheet-backdrop");if(Y.length===0)Y=B('
'),G.$containerEl.append(Y)}if(e(G,{app:_,push:q.hasClass("sheet-modal-push")||G.params.push,$el:q,el:q[0],$backdropEl:Y,backdropEl:Y&&Y[0],type:"sheet",$htmlEl:B("html")}),G.params.push)q.addClass("sheet-modal-push");let X;function F(){let D=B(G.params.scrollToEl).eq(0);if(D.length===0)return;if(X=D.parents(".page-content"),X.length===0)return;let s=parseInt(X.css("padding-top"),10),k=parseInt(X.css("padding-bottom"),10),q0=X[0].offsetHeight-s-q.height(),V0=X[0].scrollHeight-s-q.height(),A0=X.scrollTop(),R0,f=D.offset().top-s+D[0].offsetHeight;if(f>q0){let o=A0+f-q0;if(o+q0>V0){if(R0=o+q0-V0+k,q0===V0)R0=q.height();X.css({"padding-bottom":`${R0}px`})}X.scrollTop(o,300)}}function A(){if(X&&X.length>0)X.css({"padding-bottom":""})}function L(D){let s=D.target,k=B(s);if(!Q.desktop&&Q.cordova&&(Z.Keyboard&&Z.Keyboard.isVisible||Z.cordova.plugins&&Z.cordova.plugins.Keyboard&&Z.cordova.plugins.Keyboard.isVisible))return;if(k.closest(G.el).length===0){if(G.params.closeByBackdropClick&&G.params.backdrop&&G.backdropEl&&G.backdropEl===s)G.close();else if(G.params.closeByOutsideClick)G.close()}}function V(D){if(D.keyCode===27&&G.params.closeOnEscape)G.close()}let K;function I(D){return(_.height-D*2)/_.height}let y=G.params.breakpoints&&G.params.breakpoints.length>0,M=!1,P,N,j,T,x,E=!1,w,G0,I0,a,J0,r,_0,c,l,p,h,m,n,u=[],d,K0=!0;function L0(D){if(M||!(G.params.swipeToClose||G.params.swipeToStep)||!D.isTrusted)return;if(G.params.swipeHandler&&B(D.target).closest(G.params.swipeHandler).length===0)return;if(B(D.target).closest(".sortable-handler").length>0)return;if(M=!0,E=!1,P={x:D.type==="touchstart"?D.targetTouches[0].pageX:D.pageX,y:D.type==="touchstart"?D.targetTouches[0].pageY:D.pageY},T=G_(),j=void 0,w=q.hasClass("sheet-modal-top"),!G.params.swipeHandler&&D.type==="touchstart")p=B(D.target).closest(".page-content")[0]}function C0(D){if(!M||!D.isTrusted)return;if(N={x:D.type==="touchmove"?D.targetTouches[0].pageX:D.pageX,y:D.type==="touchmove"?D.targetTouches[0].pageY:D.pageY},typeof j>"u")j=!!(j||Math.abs(N.x-P.x)>Math.abs(N.y-P.y));if(j){M=!1,E=!1;return}x=P.y-N.y;let s=x<0?"to-bottom":"to-top";if(!E){if(p&&!q.hasClass("modal-in-swipe-step")){if(h=p.scrollTop,m=p.scrollHeight,n=p.offsetHeight,m!==n&&!(s==="to-bottom"&&h===0)&&!(s==="to-top"&&h===m-n)){q.transform(""),M=!1,E=!1;return}}if(G.push&&K)c=_.$el.children(".view, .views");if(J0=q[0].offsetHeight,I0=$_(q[0],"y"),w)r=G.params.swipeToClose?-J0:-G0,_0=0;else r=0,_0=G.params.swipeToClose?J0:y?u[0]:G0;E=!0}if(a=I0-x,a=Math.min(Math.max(a,r),_0),D.preventDefault(),y){let k=w?1+a/J0:1-a/J0;k=Math.abs(k),k=Math.min(Math.max(k,0),1),t0(k),x0(k)}if(G.push&&K&&!y){let k=(a-I0)/J0;if(G.params.swipeToStep)if(w)k=a/G0;else k=1-(G0-a)/G0;k=Math.abs(k),k=Math.min(Math.max(k,0),1);let q0=1-k,V0=1-(1-I(K))*q0;if(c.transition(0).forEach((A0)=>{A0.style.setProperty("transform",`translate3d(0,0,0) scale(${V0})`,"important")}),G.params.swipeToStep)c.css("border-radius",`${l*q0}px`)}if(q.transition(0).transform(`translate3d(0,${a}px,0)`),G.params.swipeToStep){let k;if(w)k=1-a/G0;else k=(G0-a)/G0;k=Math.min(Math.max(k,0),1),q.trigger("sheet:stepprogress",k),G.emit("local::stepProgress sheetStepProgress",G,k)}}function Y_(){if(M=!1,!E)return;if(E=!1,q.transform("").transition(""),G.push&&K){if(c.transition(""),!y)c.transform(""),c.css("border-radius","")}let D=x<0?"to-bottom":"to-top",s=Math.abs(x);if(s===0||a===I0)return;let k=new Date().getTime()-T;if(!G.params.swipeToStep&&!y){if(D!==(w?"to-top":"to-bottom"))return;if(k<300&&s>20||k>=300&&s>J0/2)G.close();return}let q0=w?"to-bottom":"to-top",V0=w?"to-top":"to-bottom",A0=Math.abs(a),R0=Math.abs(G0);if(k<300&&s>10&&y){if(D===q0&&typeof d<"u")if(d===z.breakpoints.length-1)G.setBreakpoint(1);else d=Math.min(u.length-1,d+1),G.setBreakpoint(z.breakpoints[d]);if(D===V0)if(d===0)G.close();else{if(typeof d>"u")d=z.breakpoints.length-1;else d=Math.max(0,d-1);G.setBreakpoint(z.breakpoints[d])}}else if(k<300&&s>10){if(D===q0&&A0R0){if(G.params.swipeToClose)G.close();else if(q.addClass("modal-in-swipe-step"),q.trigger("sheet:stepprogress",0),G.emit("local::stepProgress sheetStepProgress",G,0),G.emit("local::_swipeStep",!0),q.trigger("sheet:stepclose"),G.emit("local::stepClose sheetStepClose",G),G.push&&K)G.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),c.css("border-radius","0px")}if(D===V0&&A0<=R0){if(q.addClass("modal-in-swipe-step"),q.trigger("sheet:stepprogress",0),G.emit("local::stepProgress sheetStepProgress",G,0),G.emit("local::_swipeStep",!0),q.trigger("sheet:stepclose"),G.emit("local::stepClose sheetStepClose",G),G.push&&K)G.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),c.css("border-radius","0px")}return}if(k>=300&&y){let f=[J0,...u,0],o=f.reduce((Z0,M0)=>{return Math.abs(M0-a)=300){let f=!q.hasClass("modal-in-swipe-step");if(!f){if(A0(J0-R0)/2){if(G.params.swipeToClose)G.close()}}else if(f){if(A0>R0+(J0-R0)/2){if(G.params.swipeToClose)G.close()}else if(A0>R0/2){if(q.addClass("modal-in-swipe-step"),q.trigger("sheet:stepprogress",0),G.emit("local::stepProgress sheetStepProgress",G,0),G.emit("local::_swipeStep",!0),q.trigger("sheet:stepclose"),G.emit("local::stepClose sheetStepClose",G),G.push&&K)G.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),c.css("border-radius","0px")}}}}let x0=(D)=>{let{pushBreakpoint:s}=z;if(s===null||typeof s>"u"||!G.push||!K)return;if(D>=s)q.addClass("sheet-modal-push-in"),q.removeClass("sheet-modal-push-closing"),c.transition("").forEach((k)=>{k.style.setProperty("transform",`translate3d(0,0,0) scale(${I(K)})`,"important")}),c.css("border-radius",`${l*1}px`);else{let k=[0,...z.breakpoints,1],q0=k[k.indexOf(s)-1];if(D<=q0){if(c.transition("").css("transform",""),c.css("border-radius",""),q.removeClass("sheet-modal-push-in"),D===q0)q.addClass("sheet-modal-push-closing")}else{let V0=(D-q0)/(s-q0);q.addClass("sheet-modal-push-in").removeClass("sheet-modal-push-closing"),c.transition(0).forEach((A0)=>{A0.style.setProperty("transform",`translate3d(0,0,0) scale(${1-(1-I(K))*V0})`,"important")}),c.css("border-radius",`${l*V0}px`)}}},t0=(D)=>{let{backdrop:s,backdropBreakpoint:k}=z;if(!k||!s||!Y.length)return;if(D>=k){if(!K0)Y.transition("").css({opacity:"",pointerEvents:""});K0=!0}else{let q0=[0,...z.breakpoints,1],V0=q0[q0.indexOf(k)-1];if(D<=V0){if(K0)Y.transition("").css({opacity:0,pointerEvents:"none"});K0=!1}else{let A0=(D-V0)/(k-V0);Y.transition(0).css({opacity:A0,pointerEvents:"auto"})}}};G.calcBreakpoints=()=>{if(!y)return;let D=q[0].offsetHeight,s=q.hasClass("sheet-modal-top");u=[],G.params.breakpoints.forEach((k)=>{u.push((D-D*k)*(s?-1:1))})},G.setBreakpoint=(D)=>{if(!y)return G;if(D===1){if(!G.opened)G.open();q.removeClass("modal-in-breakpoint"),d=void 0,t0(D),x0(D),q.trigger("sheet:breakpoint",D),G.emit("local::breakpoint sheetBreakpoint",G,D)}else if(D===0)q.trigger("sheet:breakpoint",D),G.emit("local::breakpoint sheetBreakpoint",G,D),G.close();else{let s=z.breakpoints.indexOf(D);if(s<0)return G;if(!G.opened)G.open();t0(D),x0(D),q.trigger("sheet:breakpoint",D),G.emit("local::breakpoint sheetBreakpoint",G,D),d=s,q[0].style.setProperty("--f7-sheet-breakpoint",`${u[s]}px`),q.addClass("modal-in-breakpoint")}return G};let B_=()=>{if(G.calcBreakpoints(),typeof d<"u")G.setBreakpoint(z.breakpoints[d])};G.setSwipeStep=function(s=!0){let k=q.find(".sheet-modal-swipe-step").eq(0);if(!k.length)return;if(q.hasClass("sheet-modal-top"))G0=-(k.offset().top-q.offset().top+k[0].offsetHeight);else G0=q[0].offsetHeight-(k.offset().top-q.offset().top+k[0].offsetHeight);if(q[0].style.setProperty("--f7-sheet-swipe-step",`${G0}px`),!s)q.addClass("modal-in-swipe-step"),G.emit("local::_swipeStep",!0)};function X_(){if(y)B_();else G.setSwipeStep(!0)}let F_={passive:!0};if(G.params.swipeToClose||G.params.swipeToStep||y)q.on(_.touchEvents.start,L0,F_),_.on("touchmove",C0),_.on("touchend:passive",Y_),G.once("sheetDestroy",()=>{q.off(_.touchEvents.start,L0,F_),_.off("touchmove",C0),_.off("touchend:passive",Y_)});return G.on("open",()=>{if(G.params.closeOnEscape)B(U).on("keydown",V);if(q.prevAll(".popup.modal-in").addClass("popup-behind"),_.on("resize",X_),G.params.scrollToEl)F();if(G.push){if(K=parseInt(q.css("--f7-sheet-push-offset"),10),Number.isNaN(K))K=0;if(!K)K=_.theme==="ios"?44:48;if(G.$htmlEl[0].style.setProperty("--f7-sheet-push-offset",`${K}px`),q.addClass("sheet-modal-push"),!y)q.addClass("sheet-modal-push-in"),G.emit("local::pushIn",G,!0);else G.emit("local::pushIn",G,!1);if(!G.params.swipeToStep&&!y)G.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",I(K));else c=_.$el.children(".view, .views"),l=_.theme==="ios"?32:16,c.css("border-radius","0px")}if(y)G.calcBreakpoints(),G.setBreakpoint(z.breakpoints[0]);else if(G.params.swipeToStep)G.setSwipeStep(!1)}),G.on("opened",()=>{if(G.params.closeByOutsideClick||G.params.closeByBackdropClick)_.on("click",L)}),G.on("close",()=>{if(d=void 0,G.params.swipeToStep||y)q.removeClass("modal-in-swipe-step modal-in-breakpoint"),G.emit("local::_swipeStep",!1);if(_.off("resize",X_),G.params.closeOnEscape)B(U).off("keydown",V);if(G.params.scrollToEl)A();if(G.params.closeByOutsideClick||G.params.closeByBackdropClick)_.off("click",L);if(q.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),G.push&&K){if(q.removeClass("sheet-modal-push-in"),q.addClass("sheet-modal-push-closing"),G.emit("local::pushIn",G,!1),G.emit("local::pushClosing",G,!0),c)c.transform(""),c.css("border-radius","")}else G.emit("local::pushIn",G,!1),G.emit("local::pushClosing",G,!1)}),G.on("closed",()=>{if(G.push&&K)q.removeClass("sheet-modal-push-closing"),G.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),G.$htmlEl[0].style.removeProperty("--f7-sheet-push-offset")}),G.stepOpen=function(){if(q.removeClass("modal-in-swipe-step"),G.emit("local::_swipeStep",!1),G.push){if(!K){if(K=parseInt(q.css("--f7-sheet-push-offset"),10),Number.isNaN(K))K=0}if(K)G.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",I(K))}},G.stepClose=function(){if(q.addClass("modal-in-swipe-step"),G.emit("local::_swipeStep",!0),G.push)G.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale")},G.stepToggle=function(){q.toggleClass("modal-in-swipe-step"),G.emit("local::_swipeStep",q.hasClass("modal-in-swipe-step"))},q[0].f7Modal=G,G}}var p_=S1;var T1={name:"sheet",params:{sheet:{push:!1,backdrop:void 0,backdropEl:void 0,backdropUnique:!1,closeByBackdropClick:!0,closeByOutsideClick:!1,closeOnEscape:!1,swipeToClose:!1,swipeToStep:!1,breakpoints:[],backdropBreakpoint:0,pushBreakpoint:0,swipeHandler:null,containerEl:null}},static:{Sheet:p_},create(){let _=this;_.sheet=e({},q_({app:_,constructor:p_,defaultSelector:".sheet-modal.modal-in"}),{stepOpen(z){let J=_.sheet.get(z);if(J&&J.stepOpen)return J.stepOpen();return},stepClose(z){let J=_.sheet.get(z);if(J&&J.stepClose)return J.stepClose();return},stepToggle(z){let J=_.sheet.get(z);if(J&&J.stepToggle)return J.stepToggle();return},setBreakpoint(z,J){let G=_.sheet.get(z);if(G&&G.setBreakpoint)return G.setBreakpoint(J);return}})},clicks:{".sheet-open":function(z,J={}){let G=this;if(B(".sheet-modal.modal-in").length>0&&J.sheet&&B(J.sheet)[0]!==B(".sheet-modal.modal-in")[0])G.sheet.close(".sheet-modal.modal-in");G.sheet.open(J.sheet,J.animate,z)},".sheet-close":function(z,J={}){this.sheet.close(J.sheet,J.animate,z)}}};c_.use([y1,f1,B1,N1,D1,P1,j1,C1,T1]);window.Framework7=c_;})();